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-29 14:22+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:31
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:112
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:116
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:118
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:120
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:122
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:128
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:135
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:137
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:139
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:142
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:145
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:147
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:149
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:152
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:154
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:156
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:161 ../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:165
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:169
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:172
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:171
497 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:493
498 #: ../sparsify/virt-sparsify.pod:173
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:219 ../sparsify/virt-sparsify.pod:177
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:221 ../sparsify/virt-sparsify.pod:179
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:223 ../sparsify/virt-sparsify.pod:181
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:225 ../resize/virt-resize.pod:561
545 #: ../sparsify/virt-sparsify.pod:183
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:227 ../resize/virt-resize.pod:563
556 #: ../sparsify/virt-sparsify.pod:185 ../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:229 ../resize/virt-resize.pod:565
568 #: ../sparsify/virt-sparsify.pod:187 ../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:240 ../sparsify/virt-sparsify.pod:189
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:242 ../sparsify/virt-sparsify.pod:191
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:303 ../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:305 ../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:245
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:3067 ../src/guestfs.pod:3072 ../src/guestfs.pod:3076
978 #: ../src/guestfs.pod:3080 ../src/guestfs.pod:3084 ../src/guestfs.pod:3098
979 #: ../src/guestfs.pod:3103 ../src/guestfs.pod:3335 ../src/guestfs.pod:3339
980 #: ../src/guestfs.pod:3343 ../src/guestfs.pod:3347
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:325
1045 #: ../resize/virt-resize.pod:688 ../ruby/examples/guestfs-ruby.pod:36
1046 #: ../sparsify/virt-sparsify.pod:269 ../src/guestfs.pod:3275
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:334
1066 #: ../resize/virt-resize.pod:711 ../sparsify/virt-sparsify.pod:282
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:336 ../resize/virt-resize.pod:713
1079 #: ../sparsify/virt-sparsify.pod:284 ../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:338
1098 #: ../resize/virt-resize.pod:715 ../ruby/examples/guestfs-ruby.pod:52
1099 #: ../sparsify/virt-sparsify.pod:286 ../src/guestfs.pod:3358
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:288
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:342 ../resize/virt-resize.pod:719
1122 #: ../sparsify/virt-sparsify.pod:290 ../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:347 ../resize/virt-resize.pod:724
1142 #: ../sparsify/virt-sparsify.pod:295 ../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:352 ../resize/virt-resize.pod:729
1166 #: ../sparsify/virt-sparsify.pod:300 ../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:124
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:246
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:252
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:256
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:260
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:247
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:15
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:4488
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:340
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:21
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:298 ../sparsify/virt-sparsify.pod:250
4697 #: ../src/guestfs.pod:3214 ../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:3354
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:3356
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:3363
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:3368
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:3373
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:3088
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:3392 ../fish/guestfish-actions.pod:3703
6798 #: ../fish/guestfish-actions.pod:3751 ../fish/guestfish-actions.pod:4669
6799 #: ../fish/guestfish-actions.pod:4689 ../fish/guestfish-actions.pod:4708
6800 #: ../fish/guestfish-actions.pod:4746 ../fish/guestfish-actions.pod:5474
6801 #: ../fish/guestfish-actions.pod:5577 ../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:5242
6806 #: ../src/guestfs-actions.pod:5764 ../src/guestfs-actions.pod:5864
6807 #: ../src/guestfs-actions.pod:7160 ../src/guestfs-actions.pod:7201
6808 #: ../src/guestfs-actions.pod:7232 ../src/guestfs-actions.pod:7292
6809 #: ../src/guestfs-actions.pod:8346 ../src/guestfs-actions.pod:8455
6810 #: ../src/guestfs-actions.pod:8635
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:3219 ../fish/guestfish-actions.pod:3441
6985 #: ../fish/guestfish-actions.pod:3604 ../fish/guestfish-actions.pod:3739
6986 #: ../fish/guestfish-actions.pod:5110
6988 "This command has one or more optional arguments. See L</OPTIONAL ARGUMENTS>."
6992 #: ../fish/guestfish-actions.pod:127
6997 #: ../fish/guestfish-actions.pod:129
7000 " add-drive filename\n"
7003 " add-drive назва_файла\n"
7007 #: ../fish/guestfish-actions.pod:131
7009 "This function is the equivalent of calling L</add-drive-opts> with no "
7010 "optional parameters, so the disk is added writable, with the format being "
7011 "detected automatically."
7015 #: ../fish/guestfish-actions.pod:135
7017 "Automatic detection of the format opens you up to a potential security hole "
7018 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
7019 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
7020 "you should think about replacing calls to this function with calls to L</add-"
7021 "drive-opts>, and specifying the format."
7025 #: ../fish/guestfish-actions.pod:142
7026 msgid "add-drive-opts"
7027 msgstr "add-drive-opts"
7030 #: ../fish/guestfish-actions.pod:144
7035 #: ../fish/guestfish-actions.pod:146
7038 " add-drive-opts filename [readonly:true|false] [format:..] [iface:..] [name:..]\n"
7043 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
7045 "This function adds a virtual machine disk image C<filename> to libguestfs. "
7046 "The first time you call this function, the disk appears as C</dev/sda>, the "
7047 "second time as C</dev/sdb>, and so on."
7051 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
7053 "You don't necessarily need to be root when using libguestfs. However you "
7054 "obviously do need sufficient permissions to access the filename for whatever "
7055 "operations you want to perform (ie. read access if you just want to read the "
7056 "image or write access if you want to modify the image)."
7060 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
7061 msgid "This call checks that C<filename> exists."
7065 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3403
7066 #: ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5279
7067 msgid "The optional arguments are:"
7071 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
7073 msgstr "C<readonly>"
7076 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
7078 "If true then the image is treated as read-only. Writes are still allowed, "
7079 "but they are stored in a temporary snapshot overlay which is discarded at "
7080 "the end. The disk that you add is not modified."
7084 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
7089 #: ../fish/guestfish-actions.pod:173
7091 "This forces the image format. If you omit this (or use L</add-drive> or L</"
7092 "add-drive-ro>) then the format is automatically detected. Possible formats "
7093 "include C<raw> and C<qcow2>."
7097 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
7099 "Automatic detection of the format opens you up to a potential security hole "
7100 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
7101 "RHBZ#642934. Specifying the format closes this security hole."
7105 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
7110 #: ../fish/guestfish-actions.pod:184
7112 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
7113 "add-drive-with-if> call (q.v.)"
7117 #: ../fish/guestfish-actions.pod:187 ../fish/guestfish-actions.pod:3246
7118 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:5000
7123 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
7125 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
7126 "a hint to the guest inspection process if it is available."
7130 #: ../fish/guestfish-actions.pod:196
7131 msgid "add-drive-ro"
7132 msgstr "add-drive-ro"
7135 #: ../fish/guestfish-actions.pod:198
7140 #: ../fish/guestfish-actions.pod:200
7143 " add-drive-ro filename\n"
7148 #: ../fish/guestfish-actions.pod:202
7150 "This function is the equivalent of calling L</add-drive-opts> with the "
7151 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
7152 "is added read-only, with the format being detected automatically."
7156 #: ../fish/guestfish-actions.pod:207
7157 msgid "add-drive-ro-with-if"
7161 #: ../fish/guestfish-actions.pod:209
7164 " add-drive-ro-with-if filename iface\n"
7169 #: ../fish/guestfish-actions.pod:211
7171 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
7172 "interface emulation to use at run time."
7176 #: ../fish/guestfish-actions.pod:221
7177 msgid "add-drive-with-if"
7181 #: ../fish/guestfish-actions.pod:223
7184 " add-drive-with-if filename iface\n"
7189 #: ../fish/guestfish-actions.pod:225
7191 "This is the same as L</add-drive> but it allows you to specify the QEMU "
7192 "interface emulation to use at run time."
7196 #: ../fish/guestfish-actions.pod:235
7201 #: ../fish/guestfish-actions.pod:237
7204 " aug-clear augpath\n"
7209 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
7211 "Set the value associated with C<path> to C<NULL>. This is the same as the "
7212 "L<augtool(1)> C<clear> command."
7216 #: ../fish/guestfish-actions.pod:242
7221 #: ../fish/guestfish-actions.pod:244
7229 #: ../fish/guestfish-actions.pod:246
7231 "Close the current Augeas handle and free up any resources used by it. After "
7232 "calling this, you have to call L</aug-init> again before you can use any "
7233 "other Augeas functions."
7237 #: ../fish/guestfish-actions.pod:251
7242 #: ../fish/guestfish-actions.pod:253
7245 " aug-defnode name expr val\n"
7250 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
7252 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
7256 #: ../fish/guestfish-actions.pod:258
7258 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
7259 "calling L</aug-set> C<expr>, C<value>. C<name> will be the nodeset "
7260 "containing that single node."
7264 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
7266 "On success this returns a pair containing the number of nodes in the "
7267 "nodeset, and a boolean flag if a node was created."
7271 #: ../fish/guestfish-actions.pod:266
7276 #: ../fish/guestfish-actions.pod:268
7279 " aug-defvar name expr\n"
7284 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
7286 "Defines an Augeas variable C<name> whose value is the result of evaluating "
7287 "C<expr>. If C<expr> is NULL, then C<name> is undefined."
7291 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
7293 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
7294 "evaluates to something which is not a nodeset."
7298 #: ../fish/guestfish-actions.pod:277
7303 #: ../fish/guestfish-actions.pod:279
7306 " aug-get augpath\n"
7311 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
7313 "Look up the value associated with C<path>. If C<path> matches exactly one "
7314 "node, the C<value> is returned."
7318 #: ../fish/guestfish-actions.pod:284
7323 #: ../fish/guestfish-actions.pod:286
7326 " aug-init root flags\n"
7331 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
7333 "Create a new Augeas handle for editing configuration files. If there was "
7334 "any previous Augeas handle associated with this guestfs session, then it is "
7339 #: ../fish/guestfish-actions.pod:292
7340 msgid "You must call this before using any other L</aug-*> commands."
7344 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
7346 "C<root> is the filesystem root. C<root> must not be NULL, use C</> instead."
7350 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
7352 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
7353 "logical I<or> of the following integers:"
7357 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
7358 msgid "C<AUG_SAVE_BACKUP> = 1"
7359 msgstr "C<AUG_SAVE_BACKUP> = 1"
7362 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
7363 msgid "Keep the original file with a C<.augsave> extension."
7367 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
7368 msgid "C<AUG_SAVE_NEWFILE> = 2"
7369 msgstr "C<AUG_SAVE_NEWFILE> = 2"
7372 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
7374 "Save changes into a file with extension C<.augnew>, and do not overwrite "
7375 "original. Overrides C<AUG_SAVE_BACKUP>."
7379 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
7380 msgid "C<AUG_TYPE_CHECK> = 4"
7381 msgstr "C<AUG_TYPE_CHECK> = 4"
7384 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
7385 msgid "Typecheck lenses."
7389 #: ../fish/guestfish-actions.pod:317
7391 "This option is only useful when debugging Augeas lenses. Use of this option "
7392 "may require additional memory for the libguestfs appliance. You may need to "
7393 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
7397 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
7398 msgid "C<AUG_NO_STDINC> = 8"
7399 msgstr "C<AUG_NO_STDINC> = 8"
7402 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
7403 msgid "Do not use standard load path for modules."
7407 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
7408 msgid "C<AUG_SAVE_NOOP> = 16"
7409 msgstr "C<AUG_SAVE_NOOP> = 16"
7412 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
7413 msgid "Make save a no-op, just record what would have been changed."
7417 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
7418 msgid "C<AUG_NO_LOAD> = 32"
7419 msgstr "C<AUG_NO_LOAD> = 32"
7422 #: ../fish/guestfish-actions.pod:332
7423 msgid "Do not load the tree in L</aug-init>."
7427 #: ../fish/guestfish-actions.pod:336
7428 msgid "To close the handle, you can call L</aug-close>."
7432 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
7433 msgid "To find out more about Augeas, see L<http://augeas.net/>."
7437 #: ../fish/guestfish-actions.pod:340
7442 #: ../fish/guestfish-actions.pod:342
7445 " aug-insert augpath label true|false\n"
7450 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
7452 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
7453 "or after C<path> (depending on the boolean flag C<before>)."
7457 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
7459 "C<path> must match exactly one existing node in the tree, and C<label> must "
7460 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
7464 #: ../fish/guestfish-actions.pod:352
7469 #: ../fish/guestfish-actions.pod:354
7477 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
7478 msgid "Load files into the tree."
7479 msgstr "Завантажити файли до ієрархії."
7482 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
7483 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
7487 #: ../fish/guestfish-actions.pod:361
7492 #: ../fish/guestfish-actions.pod:363
7500 #: ../fish/guestfish-actions.pod:365
7502 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
7503 "resulting nodes into alphabetical order."
7507 #: ../fish/guestfish-actions.pod:368
7512 #: ../fish/guestfish-actions.pod:370
7515 " aug-match augpath\n"
7520 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
7522 "Returns a list of paths which match the path expression C<path>. The "
7523 "returned paths are sufficiently qualified so that they match exactly one "
7524 "node in the current tree."
7528 #: ../fish/guestfish-actions.pod:376
7533 #: ../fish/guestfish-actions.pod:378
7536 " aug-mv src dest\n"
7541 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
7543 "Move the node C<src> to C<dest>. C<src> must match exactly one node. "
7544 "C<dest> is overwritten if it exists."
7548 #: ../fish/guestfish-actions.pod:383
7553 #: ../fish/guestfish-actions.pod:385
7561 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
7562 msgid "Remove C<path> and all of its children."
7566 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
7567 msgid "On success this returns the number of entries which were removed."
7571 #: ../fish/guestfish-actions.pod:391
7576 #: ../fish/guestfish-actions.pod:393
7584 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
7585 msgid "This writes all pending changes to disk."
7589 #: ../fish/guestfish-actions.pod:397
7591 "The flags which were passed to L</aug-init> affect exactly how files are "
7596 #: ../fish/guestfish-actions.pod:400
7601 #: ../fish/guestfish-actions.pod:402
7604 " aug-set augpath val\n"
7609 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
7610 msgid "Set the value associated with C<path> to C<val>."
7614 #: ../fish/guestfish-actions.pod:406
7616 "In the Augeas API, it is possible to clear a node by setting the value to "
7617 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
7618 "this call. Instead you must use the L</aug-clear> call."
7622 #: ../fish/guestfish-actions.pod:411
7627 #: ../fish/guestfish-actions.pod:413
7630 " available 'groups ...'\n"
7635 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
7637 "This command is used to check the availability of some groups of "
7638 "functionality in the appliance, which not all builds of the libguestfs "
7639 "appliance will be able to provide."
7643 #: ../fish/guestfish-actions.pod:419
7645 "The libguestfs groups, and the functions that those groups correspond to, "
7646 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
7647 "runtime by calling L</available-all-groups>."
7651 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
7653 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7654 "\"]> would check for the availability of the Linux inotify functions and "
7655 "Augeas (configuration file editing) functions."
7659 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
7660 msgid "The command returns no error if I<all> requested groups are available."
7664 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
7666 "It fails with an error if one or more of the requested groups is unavailable "
7671 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
7673 "If an unknown group name is included in the list of groups then an error is "
7678 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
7680 msgstr "I<Нотатки:>"
7683 #: ../fish/guestfish-actions.pod:443
7684 msgid "You must call L</launch> before calling this function."
7688 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
7690 "The reason is because we don't know what groups are supported by the "
7691 "appliance/daemon until it is running and can be queried."
7695 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
7697 "If a group of functions is available, this does not necessarily mean that "
7698 "they will work. You still have to check for errors when calling individual "
7699 "API functions even if they are available."
7703 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
7705 "It is usually the job of distro packagers to build complete functionality "
7706 "into the libguestfs appliance. Upstream libguestfs, if built from source "
7707 "with all requirements satisfied, will support everything."
7711 #: ../fish/guestfish-actions.pod:465
7713 "This call was added in version C<1.0.80>. In previous versions of "
7714 "libguestfs all you could do would be to speculatively execute a command to "
7715 "find out if the daemon implemented it. See also L</version>."
7719 #: ../fish/guestfish-actions.pod:472
7720 msgid "available-all-groups"
7724 #: ../fish/guestfish-actions.pod:474
7727 " available-all-groups\n"
7732 #: ../fish/guestfish-actions.pod:476
7734 "This command returns a list of all optional groups that this daemon knows "
7735 "about. Note this returns both supported and unsupported groups. To find "
7736 "out which ones the daemon can actually support you have to call L</"
7737 "available> on each member of the returned list."
7741 #: ../fish/guestfish-actions.pod:482
7742 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
7746 #: ../fish/guestfish-actions.pod:484
7751 #: ../fish/guestfish-actions.pod:486
7754 " base64-in (base64file|-) filename\n"
7759 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
7761 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7765 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500
7766 #: ../fish/guestfish-actions.pod:749 ../fish/guestfish-actions.pod:833
7767 #: ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:1025
7768 #: ../fish/guestfish-actions.pod:1044 ../fish/guestfish-actions.pod:1418
7769 #: ../fish/guestfish-actions.pod:4966 ../fish/guestfish-actions.pod:4978
7770 #: ../fish/guestfish-actions.pod:4989 ../fish/guestfish-actions.pod:5000
7771 #: ../fish/guestfish-actions.pod:5131 ../fish/guestfish-actions.pod:5140
7772 #: ../fish/guestfish-actions.pod:5194 ../fish/guestfish-actions.pod:5217
7773 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
7777 #: ../fish/guestfish-actions.pod:493
7782 #: ../fish/guestfish-actions.pod:495
7785 " base64-out filename (base64file|-)\n"
7790 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
7792 "This command downloads the contents of C<filename>, writing it out to local "
7793 "file C<base64file> encoded as base64."
7797 #: ../fish/guestfish-actions.pod:502
7798 msgid "blockdev-flushbufs"
7802 #: ../fish/guestfish-actions.pod:504
7805 " blockdev-flushbufs device\n"
7810 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
7812 "This tells the kernel to flush internal buffers associated with C<device>."
7816 #: ../fish/guestfish-actions.pod:509 ../fish/guestfish-actions.pod:520
7817 #: ../fish/guestfish-actions.pod:529 ../fish/guestfish-actions.pod:539
7818 #: ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:564
7819 #: ../fish/guestfish-actions.pod:572 ../fish/guestfish-actions.pod:583
7820 #: ../fish/guestfish-actions.pod:591 ../fish/guestfish-actions.pod:599
7821 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:749
7822 #: ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:780
7823 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:817
7824 #: ../src/guestfs-actions.pod:831 ../src/guestfs-actions.pod:849
7825 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:877
7826 msgid "This uses the L<blockdev(8)> command."
7830 #: ../fish/guestfish-actions.pod:511
7831 msgid "blockdev-getbsz"
7835 #: ../fish/guestfish-actions.pod:513
7838 " blockdev-getbsz device\n"
7843 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
7844 msgid "This returns the block size of a device."
7848 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580
7849 #: ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
7851 "(Note this is different from both I<size in blocks> and I<filesystem block "
7856 #: ../fish/guestfish-actions.pod:522
7857 msgid "blockdev-getro"
7861 #: ../fish/guestfish-actions.pod:524
7864 " blockdev-getro device\n"
7869 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
7871 "Returns a boolean indicating if the block device is read-only (true if read-"
7872 "only, false if not)."
7876 #: ../fish/guestfish-actions.pod:531
7877 msgid "blockdev-getsize64"
7881 #: ../fish/guestfish-actions.pod:533
7884 " blockdev-getsize64 device\n"
7889 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
7890 msgid "This returns the size of the device in bytes."
7894 #: ../fish/guestfish-actions.pod:537
7895 msgid "See also L</blockdev-getsz>."
7896 msgstr "Див. також L</blockdev-getsz>."
7899 #: ../fish/guestfish-actions.pod:541
7900 msgid "blockdev-getss"
7904 #: ../fish/guestfish-actions.pod:543
7907 " blockdev-getss device\n"
7912 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
7914 "This returns the size of sectors on a block device. Usually 512, but can be "
7915 "larger for modern devices."
7919 #: ../fish/guestfish-actions.pod:548
7921 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7925 #: ../fish/guestfish-actions.pod:553
7926 msgid "blockdev-getsz"
7930 #: ../fish/guestfish-actions.pod:555
7933 " blockdev-getsz device\n"
7938 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
7940 "This returns the size of the device in units of 512-byte sectors (even if "
7941 "the sectorsize isn't 512 bytes ... weird)."
7945 #: ../fish/guestfish-actions.pod:560
7947 "See also L</blockdev-getss> for the real sector size of the device, and L</"
7948 "blockdev-getsize64> for the more useful I<size in bytes>."
7952 #: ../fish/guestfish-actions.pod:566
7953 msgid "blockdev-rereadpt"
7957 #: ../fish/guestfish-actions.pod:568
7960 " blockdev-rereadpt device\n"
7965 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
7966 msgid "Reread the partition table on C<device>."
7970 #: ../fish/guestfish-actions.pod:574
7971 msgid "blockdev-setbsz"
7975 #: ../fish/guestfish-actions.pod:576
7978 " blockdev-setbsz device blocksize\n"
7983 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
7984 msgid "This sets the block size of a device."
7988 #: ../fish/guestfish-actions.pod:585
7989 msgid "blockdev-setro"
7993 #: ../fish/guestfish-actions.pod:587
7996 " blockdev-setro device\n"
8001 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
8002 msgid "Sets the block device named C<device> to read-only."
8006 #: ../fish/guestfish-actions.pod:593
8007 msgid "blockdev-setrw"
8011 #: ../fish/guestfish-actions.pod:595
8014 " blockdev-setrw device\n"
8019 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
8020 msgid "Sets the block device named C<device> to read-write."
8024 #: ../fish/guestfish-actions.pod:601
8025 msgid "btrfs-filesystem-resize"
8029 #: ../fish/guestfish-actions.pod:603
8032 " btrfs-filesystem-resize mountpoint [size:N]\n"
8037 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
8038 msgid "This command resizes a btrfs filesystem."
8042 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
8044 "Note that unlike other resize calls, the filesystem has to be mounted and "
8045 "the parameter is the mountpoint not the device (this is a requirement of "
8050 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3168
8051 #: ../fish/guestfish-actions.pod:3714 ../fish/guestfish-actions.pod:5040
8052 #: ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:4896
8053 #: ../src/guestfs-actions.pod:5803 ../src/guestfs-actions.pod:7779
8054 msgid "The optional parameters are:"
8058 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3718
8059 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5807
8064 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
8066 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
8067 "resized to the maximum size."
8071 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
8072 msgid "See also L<btrfs(8)>."
8073 msgstr "Див. також L<btrfs(8)>."
8076 #: ../fish/guestfish-actions.pod:626
8077 msgid "case-sensitive-path"
8081 #: ../fish/guestfish-actions.pod:628
8084 " case-sensitive-path path\n"
8089 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
8091 "This can be used to resolve case insensitive paths on a filesystem which is "
8092 "case sensitive. The use case is to resolve paths which you have read from "
8093 "Windows configuration files or the Windows Registry, to the true path."
8097 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
8099 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
8100 "(and probably others), which is that although the underlying filesystem is "
8101 "case-insensitive, the driver exports the filesystem to Linux as case-"
8106 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
8108 "One consequence of this is that special directories such as C<c:\\windows> "
8109 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
8110 "precise details of how they were created. In Windows itself this would not "
8115 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
8117 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
8122 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
8124 "This function resolves the true case of each element in the path and returns "
8125 "the case-sensitive path."
8129 #: ../fish/guestfish-actions.pod:652
8131 "Thus L</case-sensitive-path> (\"/Windows/System32\") might return C<\"/"
8132 "WINDOWS/system32\"> (the exact return value would depend on details of how "
8133 "the directories were originally created under Windows)."
8137 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
8138 msgid "I<Note>: This function does not handle drive names, backslashes etc."
8142 #: ../fish/guestfish-actions.pod:660
8143 msgid "See also L</realpath>."
8144 msgstr "Див. також L</realpath>."
8147 #: ../fish/guestfish-actions.pod:662
8152 #: ../fish/guestfish-actions.pod:664
8162 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4145
8163 #: ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6463
8164 msgid "Return the contents of the file named C<path>."
8168 #: ../fish/guestfish-actions.pod:668
8170 "Note that this function cannot correctly handle binary files (specifically, "
8171 "files containing C<\\0> character which is treated as end of string). For "
8172 "those you need to use the L</read-file> or L</download> functions which have "
8173 "a more complex interface."
8177 #: ../fish/guestfish-actions.pod:673 ../fish/guestfish-actions.pod:808
8178 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:1103
8179 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1180
8180 #: ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1382
8181 #: ../fish/guestfish-actions.pod:1695 ../fish/guestfish-actions.pod:1705
8182 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1770
8183 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1799
8184 #: ../fish/guestfish-actions.pod:4015 ../fish/guestfish-actions.pod:4030
8185 #: ../fish/guestfish-actions.pod:4106 ../fish/guestfish-actions.pod:4123
8186 #: ../fish/guestfish-actions.pod:4138 ../fish/guestfish-actions.pod:4807
8187 #: ../fish/guestfish-actions.pod:4853 ../fish/guestfish-actions.pod:4938
8188 #: ../fish/guestfish-actions.pod:4953 ../fish/guestfish-actions.pod:5438
8189 #: ../fish/guestfish-actions.pod:5450 ../fish/guestfish-actions.pod:5468
8190 #: ../fish/guestfish-actions.pod:5485 ../fish/guestfish-actions.pod:5495
8191 #: ../fish/guestfish-actions.pod:5549 ../fish/guestfish-actions.pod:5559
8192 #: ../fish/guestfish-actions.pod:5588 ../fish/guestfish-actions.pod:5598
8193 #: ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1180
8194 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1855
8195 #: ../src/guestfs-actions.pod:1874 ../src/guestfs-actions.pod:1977
8196 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:2242
8197 #: ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:2743
8198 #: ../src/guestfs-actions.pod:2808 ../src/guestfs-actions.pod:2832
8199 #: ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2878
8200 #: ../src/guestfs-actions.pod:6245 ../src/guestfs-actions.pod:6271
8201 #: ../src/guestfs-actions.pod:6402 ../src/guestfs-actions.pod:6428
8202 #: ../src/guestfs-actions.pod:6452 ../src/guestfs-actions.pod:7407
8203 #: ../src/guestfs-actions.pod:7462 ../src/guestfs-actions.pod:7608
8204 #: ../src/guestfs-actions.pod:7632 ../src/guestfs-actions.pod:8419
8205 #: ../src/guestfs-actions.pod:8439 ../src/guestfs-actions.pod:8472
8206 #: ../src/guestfs-actions.pod:8491 ../src/guestfs-actions.pod:8510
8207 #: ../src/guestfs-actions.pod:8601 ../src/guestfs-actions.pod:8620
8208 #: ../src/guestfs-actions.pod:8666 ../src/guestfs-actions.pod:8685
8210 "Because of the message protocol, there is a transfer limit of somewhere "
8211 "between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>."
8215 #: ../fish/guestfish-actions.pod:676
8220 #: ../fish/guestfish-actions.pod:678
8223 " checksum csumtype path\n"
8228 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
8230 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
8234 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
8236 "The type of checksum to compute is given by the C<csumtype> parameter which "
8237 "must have one of the following values:"
8241 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
8246 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
8248 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
8253 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
8258 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
8259 msgid "Compute the MD5 hash (using the C<md5sum> program)."
8263 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
8268 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
8269 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
8273 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
8278 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
8279 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
8283 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
8288 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
8289 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
8293 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
8298 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
8299 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
8303 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
8308 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
8309 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
8313 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
8314 msgid "The checksum is returned as a printable string."
8318 #: ../fish/guestfish-actions.pod:721
8319 msgid "To get the checksum for a device, use L</checksum-device>."
8323 #: ../fish/guestfish-actions.pod:723
8324 msgid "To get the checksums for many files, use L</checksums-out>."
8328 #: ../fish/guestfish-actions.pod:725
8329 msgid "checksum-device"
8330 msgstr "checksum-device"
8333 #: ../fish/guestfish-actions.pod:727
8336 " checksum-device csumtype device\n"
8341 #: ../fish/guestfish-actions.pod:729
8343 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
8344 "device named C<device>. For the types of checksums supported see the L</"
8345 "checksum> command."
8349 #: ../fish/guestfish-actions.pod:733
8350 msgid "checksums-out"
8354 #: ../fish/guestfish-actions.pod:735
8357 " checksums-out csumtype directory (sumsfile|-)\n"
8362 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
8364 "This command computes the checksums of all regular files in C<directory> and "
8365 "then emits a list of those checksums to the local output file C<sumsfile>."
8369 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
8371 "This can be used for verifying the integrity of a virtual machine. However "
8372 "to be properly secure you should pay attention to the output of the checksum "
8373 "command (it uses the ones from GNU coreutils). In particular when the "
8374 "filename is not printable, coreutils uses a special backslash syntax. For "
8375 "more information, see the GNU coreutils info file."
8379 #: ../fish/guestfish-actions.pod:751
8384 #: ../fish/guestfish-actions.pod:753
8387 " chmod mode path\n"
8392 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
8394 "Change the mode (permissions) of C<path> to C<mode>. Only numeric modes are "
8399 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
8401 "I<Note>: When using this command from guestfish, C<mode> by default would be "
8402 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
8407 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3367
8408 #: ../fish/guestfish-actions.pod:3506 ../fish/guestfish-actions.pod:3516
8409 #: ../fish/guestfish-actions.pod:3526 ../src/guestfs-actions.pod:1117
8410 #: ../src/guestfs-actions.pod:5210 ../src/guestfs-actions.pod:5419
8411 #: ../src/guestfs-actions.pod:5438 ../src/guestfs-actions.pod:5457
8412 msgid "The mode actually set is affected by the umask."
8416 #: ../fish/guestfish-actions.pod:764
8421 #: ../fish/guestfish-actions.pod:766
8424 " chown owner group path\n"
8429 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
8430 msgid "Change the file owner to C<owner> and group to C<group>."
8434 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2707
8435 #: ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4128
8437 "Only numeric uid and gid are supported. If you want to use names, you will "
8438 "need to locate and parse the password file yourself (Augeas support makes "
8439 "this relatively easy)."
8443 #: ../fish/guestfish-actions.pod:774
8448 #: ../fish/guestfish-actions.pod:776
8451 " command 'arguments ...'\n"
8454 " command 'параметри...'\n"
8458 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
8460 "This call runs a command from the guest filesystem. The filesystem must be "
8461 "mounted, and must contain a compatible operating system (ie. something "
8462 "Linux, with the same or compatible processor architecture)."
8466 #: ../fish/guestfish-actions.pod:783
8468 "The single parameter is an argv-style list of arguments. The first element "
8469 "is the name of the program to run. Subsequent elements are parameters. The "
8470 "list must be non-empty (ie. must contain a program name). Note that the "
8471 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
8475 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
8476 msgid "The return value is anything printed to I<stdout> by the command."
8480 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
8482 "If the command returns a non-zero exit status, then this function returns an "
8483 "error message. The error message string is the content of I<stderr> from "
8488 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
8490 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
8491 "bin>. If you require a program from another location, you should provide "
8492 "the full path in the first parameter."
8496 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
8498 "Shared libraries and data files required by the program must be available on "
8499 "filesystems which are mounted in the correct places. It is the caller's "
8500 "responsibility to ensure all filesystems that are needed are mounted at the "
8505 #: ../fish/guestfish-actions.pod:811
8506 msgid "command-lines"
8510 #: ../fish/guestfish-actions.pod:813
8513 " command-lines 'arguments ...'\n"
8518 #: ../fish/guestfish-actions.pod:815
8520 "This is the same as L</command>, but splits the result into a list of lines."
8524 #: ../fish/guestfish-actions.pod:818
8525 msgid "See also: L</sh-lines>"
8526 msgstr "Див. також L</sh-lines>"
8529 #: ../fish/guestfish-actions.pod:823
8530 msgid "compress-device-out"
8534 #: ../fish/guestfish-actions.pod:825
8537 " compress-device-out ctype device (zdevice|-) [level:N]\n"
8542 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
8544 "This command compresses C<device> and writes it out to the local file "
8549 #: ../fish/guestfish-actions.pod:830
8551 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
8556 #: ../fish/guestfish-actions.pod:837
8557 msgid "compress-out"
8561 #: ../fish/guestfish-actions.pod:839
8564 " compress-out ctype file (zfile|-) [level:N]\n"
8569 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
8571 "This command compresses C<file> and writes it out to the local file C<zfile>."
8575 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
8577 "The compression program used is controlled by the C<ctype> parameter. "
8578 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>. "
8579 "Some compression types may not be supported by particular builds of "
8580 "libguestfs, in which case you will get an error containing the substring "
8581 "\"not supported\"."
8585 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
8587 "The optional C<level> parameter controls compression level. The meaning and "
8588 "default for this parameter depends on the compression program being used."
8592 #: ../fish/guestfish-actions.pod:858
8597 #: ../fish/guestfish-actions.pod:860
8600 " config qemuparam qemuvalue\n"
8605 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
8607 "This can be used to add arbitrary qemu command line parameters of the form "
8608 "I<-param value>. Actually it's not quite arbitrary - we prevent you from "
8609 "setting some parameters which would interfere with parameters that we use."
8613 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
8614 msgid "The first character of C<param> string must be a C<-> (dash)."
8618 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
8619 msgid "C<value> can be NULL."
8623 #: ../fish/guestfish-actions.pod:871
8624 msgid "copy-device-to-device"
8628 #: ../fish/guestfish-actions.pod:873
8631 " copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8636 #: ../fish/guestfish-actions.pod:875
8638 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
8639 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
8640 "(device|file) to a destination (device|file)."
8644 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
8646 "Partial copies can be made since you can specify optionally the source "
8647 "offset, destination offset and size to copy. These values are all specified "
8648 "in bytes. If not given, the offsets both default to zero, and the size "
8649 "defaults to copying as much as possible until we hit the end of the source."
8653 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
8655 "The source and destination may be the same object. However overlapping "
8656 "regions may not be copied correctly."
8660 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
8662 "If the destination is a file, it is created if required. If the destination "
8663 "file is not large enough, it is extended."
8667 #: ../fish/guestfish-actions.pod:896
8668 msgid "copy-device-to-file"
8672 #: ../fish/guestfish-actions.pod:898
8675 " copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8680 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909
8681 #: ../fish/guestfish-actions.pod:918
8682 msgid "See L</copy-device-to-device> for a general overview of this call."
8686 #: ../fish/guestfish-actions.pod:905
8687 msgid "copy-file-to-device"
8691 #: ../fish/guestfish-actions.pod:907
8694 " copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8699 #: ../fish/guestfish-actions.pod:914
8700 msgid "copy-file-to-file"
8704 #: ../fish/guestfish-actions.pod:916
8707 " copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8712 #: ../fish/guestfish-actions.pod:921
8714 "This is B<not> the function you want for copying files. This is for copying "
8715 "blocks within existing files. See L</cp>, L</cp-a> and L</mv> for general "
8716 "file copying and moving functions."
8720 #: ../fish/guestfish-actions.pod:928
8725 #: ../fish/guestfish-actions.pod:930
8728 " copy-size src dest size\n"
8733 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1584
8735 "This command copies exactly C<size> bytes from one source device or file "
8736 "C<src> to another destination device or file C<dest>."
8740 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1587
8742 "Note this will fail if the source is too short or if the destination is not "
8747 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
8749 "I<This function is deprecated.> In new code, use the L</"
8750 "copy_device_to_device> call instead."
8754 #: ../fish/guestfish-actions.pod:945
8759 #: ../fish/guestfish-actions.pod:947
8767 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1606
8769 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8770 "destination filename or destination directory."
8774 #: ../fish/guestfish-actions.pod:952
8779 #: ../fish/guestfish-actions.pod:954
8787 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1620
8789 "This copies a file or directory from C<src> to C<dest> recursively using the "
8794 #: ../fish/guestfish-actions.pod:959
8799 #: ../fish/guestfish-actions.pod:961
8807 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1641
8809 "This command copies from one source device or file C<src> to another "
8810 "destination device or file C<dest>. Normally you would use this to copy to "
8811 "or from a device or partition, for example to duplicate a filesystem."
8815 #: ../fish/guestfish-actions.pod:968
8817 "If the destination is a device, it must be as large or larger than the "
8818 "source file or device, otherwise the copy will fail. This command cannot do "
8819 "partial copies (see L</copy-device-to-device>)."
8823 #: ../fish/guestfish-actions.pod:980
8828 #: ../fish/guestfish-actions.pod:982
8838 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1660
8839 msgid "This command runs the C<df> command to report disk space used."
8843 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
8845 "This command is mostly useful for interactive sessions. It is I<not> "
8846 "intended that you try to parse the output string. Use L</statvfs> from "
8851 #: ../fish/guestfish-actions.pod:990
8856 #: ../fish/guestfish-actions.pod:992
8866 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1676
8868 "This command runs the C<df -h> command to report disk space used in human-"
8873 #: ../fish/guestfish-actions.pod:1001
8878 #: ../fish/guestfish-actions.pod:1003
8888 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1693
8890 "This returns the kernel messages (C<dmesg> output) from the guest kernel. "
8891 "This is sometimes useful for extended debugging of problems."
8895 #: ../fish/guestfish-actions.pod:1009
8897 "Another way to get the same information is to enable verbose messages with "
8898 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8899 "before running the program."
8903 #: ../fish/guestfish-actions.pod:1014
8908 #: ../fish/guestfish-actions.pod:1016
8911 " download remotefilename (filename|-)\n"
8916 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031
8917 #: ../src/guestfs-actions.pod:1714 ../src/guestfs-actions.pod:1739
8919 "Download file C<remotefilename> and save it as C<filename> on the local "
8924 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5190
8925 #: ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:7989
8926 msgid "C<filename> can also be a named pipe."
8930 #: ../fish/guestfish-actions.pod:1023
8931 msgid "See also L</upload>, L</cat>."
8935 #: ../fish/guestfish-actions.pod:1027
8936 msgid "download-offset"
8937 msgstr "download-offset"
8940 #: ../fish/guestfish-actions.pod:1029
8943 " download-offset remotefilename (filename|-) offset size\n"
8948 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1742
8950 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8951 "region must be within the file or device)."
8955 #: ../fish/guestfish-actions.pod:1037
8957 "Note that there is no limit on the amount of data that can be downloaded "
8958 "with this call, unlike with L</pread>, and this call always reads the full "
8959 "amount unless an error occurs."
8963 #: ../fish/guestfish-actions.pod:1042
8964 msgid "See also L</download>, L</pread>."
8968 #: ../fish/guestfish-actions.pod:1046
8973 #: ../fish/guestfish-actions.pod:1048
8976 " drop-caches whattodrop\n"
8981 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1767
8983 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8984 "inode caches. The parameter C<whattodrop> tells the kernel what precisely "
8985 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8989 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1772
8990 msgid "Setting C<whattodrop> to 3 should drop everything."
8994 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1774
8996 "This automatically calls L<sync(2)> before the operation, so that the "
8997 "maximum guest memory is freed."
9001 #: ../fish/guestfish-actions.pod:1060
9006 #: ../fish/guestfish-actions.pod:1062
9016 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1787
9018 "This command runs the C<du -s> command to estimate file space usage for "
9023 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1790
9025 "C<path> can be a file or a directory. If C<path> is a directory then the "
9026 "estimate includes the contents of the directory and all subdirectories "
9031 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1794
9033 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
9037 #: ../fish/guestfish-actions.pod:1074
9042 #: ../fish/guestfish-actions.pod:1076
9045 " e2fsck-f device\n"
9050 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1812
9052 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
9053 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
9058 #: ../fish/guestfish-actions.pod:1082
9060 "This command is only needed because of L</resize2fs> (q.v.). Normally you "
9061 "should use L</fsck>."
9065 #: ../fish/guestfish-actions.pod:1085
9070 #: ../fish/guestfish-actions.pod:1087
9073 " echo-daemon 'words ...'\n"
9078 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1829
9080 "This command concatenates the list of C<words> passed with single spaces "
9081 "between them and returns the resulting string."
9085 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1832
9086 msgid "You can use this command to test the connection through to the daemon."
9090 #: ../fish/guestfish-actions.pod:1094
9091 msgid "See also L</ping-daemon>."
9092 msgstr "Див. також L</ping-daemon>."
9095 #: ../fish/guestfish-actions.pod:1096
9100 #: ../fish/guestfish-actions.pod:1098
9103 " egrep regex path\n"
9108 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1848
9110 "This calls the external C<egrep> program and returns the matching lines."
9114 #: ../fish/guestfish-actions.pod:1106
9119 #: ../fish/guestfish-actions.pod:1108
9122 " egrepi regex path\n"
9127 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1867
9129 "This calls the external C<egrep -i> program and returns the matching lines."
9133 #: ../fish/guestfish-actions.pod:1116
9138 #: ../fish/guestfish-actions.pod:1118
9141 " equal file1 file2\n"
9144 " equal файл1 файл2\n"
9148 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1886
9150 "This compares the two files C<file1> and C<file2> and returns true if their "
9151 "content is exactly equal, or false otherwise."
9155 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1889
9156 msgid "The external L<cmp(1)> program is used for the comparison."
9160 #: ../fish/guestfish-actions.pod:1125
9165 #: ../fish/guestfish-actions.pod:1127
9175 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1901
9177 "This returns C<true> if and only if there is a file, directory (or anything) "
9178 "with the given C<path> name."
9182 #: ../fish/guestfish-actions.pod:1132
9183 msgid "See also L</is-file>, L</is-dir>, L</stat>."
9184 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
9187 #: ../fish/guestfish-actions.pod:1134
9192 #: ../fish/guestfish-actions.pod:1136
9195 " fallocate path len\n"
9198 " fallocate шлях довжина\n"
9202 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157
9203 #: ../src/guestfs-actions.pod:1924 ../src/guestfs-actions.pod:1943
9205 "This command preallocates a file (containing zero bytes) named C<path> of "
9206 "size C<len> bytes. If the file exists already, it is overwritten."
9210 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1928
9212 "Do not confuse this with the guestfish-specific C<alloc> command which "
9213 "allocates a file in the host and attaches it as a device."
9217 #: ../fish/guestfish-actions.pod:1146
9219 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
9224 #: ../fish/guestfish-actions.pod:1153
9226 msgstr "fallocate64"
9229 #: ../fish/guestfish-actions.pod:1155
9232 " fallocate64 path len\n"
9235 " fallocate64 шлях довжина\n"
9239 #: ../fish/guestfish-actions.pod:1161
9241 "Note that this call allocates disk blocks for the file. To create a sparse "
9242 "file use L</truncate-size> instead."
9246 #: ../fish/guestfish-actions.pod:1164
9248 "The deprecated call L</fallocate> does the same, but owing to an oversight "
9249 "it only allowed 30 bit lengths to be specified, effectively limiting the "
9250 "maximum size of files created through that call to 1GB."
9254 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1955
9256 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
9257 "commands which create a file in the host and attach it as a device."
9261 #: ../fish/guestfish-actions.pod:1173
9266 #: ../fish/guestfish-actions.pod:1175
9269 " fgrep pattern path\n"
9272 " fgrep шаблон шлях\n"
9276 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1970
9278 "This calls the external C<fgrep> program and returns the matching lines."
9282 #: ../fish/guestfish-actions.pod:1183
9287 #: ../fish/guestfish-actions.pod:1185
9290 " fgrepi pattern path\n"
9293 " fgrepi шаблон шлях\n"
9297 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1989
9299 "This calls the external C<fgrep -i> program and returns the matching lines."
9303 #: ../fish/guestfish-actions.pod:1193
9308 #: ../fish/guestfish-actions.pod:1195
9318 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:2007
9320 "This call uses the standard L<file(1)> command to determine the type or "
9321 "contents of the file."
9325 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2010
9327 "This call will also transparently look inside various types of compressed "
9332 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2013
9334 "The exact command which runs is C<file -zb path>. Note in particular that "
9335 "the filename is not prepended to the output (the I<-b> option)."
9339 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2017
9341 "The output depends on the output of the underlying L<file(1)> command and it "
9342 "can change in future in ways beyond our control. In other words, the output "
9343 "is not guaranteed by the ABI."
9347 #: ../fish/guestfish-actions.pod:1211
9349 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
9350 "(etc), L</is-zero>."
9354 #: ../fish/guestfish-actions.pod:1214
9355 msgid "file-architecture"
9356 msgstr "file-architecture"
9359 #: ../fish/guestfish-actions.pod:1216
9362 " file-architecture filename\n"
9365 " file-architecture назва_файла\n"
9369 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2035
9371 "This detects the architecture of the binary C<filename>, and returns it if "
9376 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2038
9377 msgid "Currently defined architectures are:"
9381 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2042
9386 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2044
9388 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
9389 "irrespective of the precise processor requirements of the binary."
9393 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2047
9398 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2049
9399 msgid "64 bit x86-64."
9403 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2051
9408 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2053
9409 msgid "32 bit SPARC."
9413 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2055
9418 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2057
9419 msgid "64 bit SPARC V9 and above."
9423 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2059
9428 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2061
9429 msgid "Intel Itanium."
9430 msgstr "Intel Itanium."
9433 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2063
9438 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2065
9439 msgid "32 bit Power PC."
9443 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2067
9448 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2069
9449 msgid "64 bit Power PC."
9453 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2073
9454 msgid "Libguestfs may return other architecture strings in future."
9458 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2075
9459 msgid "The function works on at least the following types of files:"
9463 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2081
9464 msgid "many types of Un*x and Linux binary"
9468 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2085
9469 msgid "many types of Un*x and Linux shared library"
9473 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2089
9474 msgid "Windows Win32 and Win64 binaries"
9478 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2093
9479 msgid "Windows Win32 and Win64 DLLs"
9483 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2095
9484 msgid "Win32 binaries and DLLs return C<i386>."
9488 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2097
9489 msgid "Win64 binaries and DLLs return C<x86_64>."
9493 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2101
9494 msgid "Linux kernel modules"
9498 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2105
9499 msgid "Linux new-style initrd images"
9503 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2109
9504 msgid "some non-x86 Linux vmlinuz kernels"
9508 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2113
9509 msgid "What it can't do currently:"
9513 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2119
9514 msgid "static libraries (libfoo.a)"
9518 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2123
9519 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9523 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2127
9524 msgid "x86 Linux vmlinuz kernels"
9528 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2129
9530 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9531 "compressed code, and are horribly hard to unpack. If you want to find the "
9532 "architecture of a kernel, use the architecture of the associated initrd or "
9533 "kernel module(s) instead."
9537 #: ../fish/guestfish-actions.pod:1319
9542 #: ../fish/guestfish-actions.pod:1321
9552 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2147
9553 msgid "This command returns the size of C<file> in bytes."
9557 #: ../fish/guestfish-actions.pod:1325
9559 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
9560 "file> etc. To get the size of block devices, use L</blockdev-getsize64>."
9564 #: ../fish/guestfish-actions.pod:1329
9569 #: ../fish/guestfish-actions.pod:1331
9572 " fill c len path\n"
9577 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2165
9579 "This command creates a new file called C<path>. The initial content of the "
9580 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9585 #: ../fish/guestfish-actions.pod:1337
9587 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9588 "L</truncate-size>. To create a file with a pattern of repeating bytes use "
9593 #: ../fish/guestfish-actions.pod:1342
9594 msgid "fill-pattern"
9595 msgstr "fill-pattern"
9598 #: ../fish/guestfish-actions.pod:1344
9601 " fill-pattern pattern len path\n"
9606 #: ../fish/guestfish-actions.pod:1346
9608 "This function is like L</fill> except that it creates a new file of length "
9609 "C<len> containing the repeating pattern of bytes in C<pattern>. The pattern "
9610 "is truncated if necessary to ensure the length of the file is exactly C<len> "
9615 #: ../fish/guestfish-actions.pod:1351
9620 #: ../fish/guestfish-actions.pod:1353
9630 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2211
9632 "This command lists out all files and directories, recursively, starting at "
9633 "C<directory>. It is essentially equivalent to running the shell command "
9634 "C<find directory -print> but some post-processing happens on the output, "
9639 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2216
9641 "This returns a list of strings I<without any prefix>. Thus if the directory "
9646 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2219
9656 #: ../fish/guestfish-actions.pod:1367
9657 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
9661 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2226
9672 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2231
9673 msgid "If C<directory> is not a directory, then this command returns an error."
9677 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2234
9678 msgid "The returned list is sorted."
9682 #: ../fish/guestfish-actions.pod:1380
9683 msgid "See also L</find0>."
9684 msgstr "Див. також L</find0>."
9687 #: ../fish/guestfish-actions.pod:1385
9692 #: ../fish/guestfish-actions.pod:1387
9695 " find0 directory (files|-)\n"
9698 " find0 каталог (файли|-)\n"
9702 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2254
9704 "This command lists out all files and directories, recursively, starting at "
9705 "C<directory>, placing the resulting list in the external file called "
9710 #: ../fish/guestfish-actions.pod:1393
9712 "This command works the same way as L</find> with the following exceptions:"
9716 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2265
9717 msgid "The resulting list is written to an external file."
9721 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2269
9723 "Items (filenames) in the result are separated by C<\\0> characters. See "
9724 "L<find(1)> option I<-print0>."
9728 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2274
9729 msgid "This command is not limited in the number of names that it can return."
9733 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2279
9734 msgid "The result list is not sorted."
9738 #: ../fish/guestfish-actions.pod:1420
9739 msgid "findfs-label"
9740 msgstr "findfs-label"
9743 #: ../fish/guestfish-actions.pod:1422
9746 " findfs-label label\n"
9749 " findfs-label мітка\n"
9753 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2293
9755 "This command searches the filesystems and returns the one which has the "
9756 "given label. An error is returned if no such filesystem can be found."
9760 #: ../fish/guestfish-actions.pod:1428
9761 msgid "To find the label of a filesystem, use L</vfs-label>."
9762 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
9765 #: ../fish/guestfish-actions.pod:1430
9767 msgstr "findfs-uuid"
9770 #: ../fish/guestfish-actions.pod:1432
9773 " findfs-uuid uuid\n"
9776 " findfs-uuid uuid\n"
9780 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2310
9782 "This command searches the filesystems and returns the one which has the "
9783 "given UUID. An error is returned if no such filesystem can be found."
9787 #: ../fish/guestfish-actions.pod:1438
9788 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
9789 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
9792 #: ../fish/guestfish-actions.pod:1440
9797 #: ../fish/guestfish-actions.pod:1442
9800 " fsck fstype device\n"
9803 " fsck тип_файлової_системи пристрій\n"
9807 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2328
9809 "This runs the filesystem checker (fsck) on C<device> which should have "
9810 "filesystem type C<fstype>."
9814 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2331
9816 "The returned integer is the status. See L<fsck(8)> for the list of status "
9817 "codes from C<fsck>."
9821 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2340
9822 msgid "Multiple status codes can be summed together."
9826 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2344
9828 "A non-zero return code can mean \"success\", for example if errors have been "
9829 "corrected on the filesystem."
9833 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
9834 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9838 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2354
9840 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9844 #: ../fish/guestfish-actions.pod:1472
9849 #: ../fish/guestfish-actions.pod:1474
9859 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2365
9861 "Return the additional kernel options which are added to the guest kernel "
9866 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2368
9867 msgid "If C<NULL> then no options are added."
9871 #: ../fish/guestfish-actions.pod:1481
9872 msgid "get-attach-method"
9873 msgstr "get-attach-method"
9876 #: ../fish/guestfish-actions.pod:1483
9879 " get-attach-method\n"
9882 " get-attach-method\n"
9886 #: ../fish/guestfish-actions.pod:1485
9887 msgid "Return the current attach method. See L</set-attach-method>."
9891 #: ../fish/guestfish-actions.pod:1487
9892 msgid "get-autosync"
9893 msgstr "get-autosync"
9896 #: ../fish/guestfish-actions.pod:1489
9906 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2393
9907 msgid "Get the autosync flag."
9911 #: ../fish/guestfish-actions.pod:1493
9916 #: ../fish/guestfish-actions.pod:1495
9926 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2404
9927 msgid "Return the direct appliance mode flag."
9931 #: ../fish/guestfish-actions.pod:1499
9933 msgstr "get-e2label"
9936 #: ../fish/guestfish-actions.pod:1501
9939 " get-e2label device\n"
9942 " get-e2label пристрій\n"
9946 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2423
9948 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9952 #: ../fish/guestfish-actions.pod:1506
9954 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9959 #: ../fish/guestfish-actions.pod:1513
9964 #: ../fish/guestfish-actions.pod:1515
9967 " get-e2uuid device\n"
9970 " get-e2uuid пристрій\n"
9974 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2444
9976 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9980 #: ../fish/guestfish-actions.pod:1520
9982 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9987 #: ../fish/guestfish-actions.pod:1527
9989 msgstr "get-memsize"
9992 #: ../fish/guestfish-actions.pod:1529
10002 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2457
10004 "This gets the memory size in megabytes allocated to the qemu subprocess."
10008 #: ../fish/guestfish-actions.pod:1534
10010 "If L</set-memsize> was not called on this handle, and if "
10011 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
10012 "value for memsize."
10016 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595
10017 #: ../fish/guestfish-actions.pod:4468 ../fish/guestfish-actions.pod:4570
10018 #: ../src/guestfs-actions.pod:2464 ../src/guestfs-actions.pod:2556
10019 #: ../src/guestfs-actions.pod:6921 ../src/guestfs-actions.pod:7047
10021 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
10025 #: ../fish/guestfish-actions.pod:1541
10026 msgid "get-network"
10027 msgstr "get-network"
10030 #: ../fish/guestfish-actions.pod:1543
10040 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2476
10041 msgid "This returns the enable network flag."
10045 #: ../fish/guestfish-actions.pod:1547
10050 #: ../fish/guestfish-actions.pod:1549
10060 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2487
10061 msgid "Return the current search path."
10065 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2489
10067 "This is always non-NULL. If it wasn't set already, then this will return "
10068 "the default path."
10072 #: ../fish/guestfish-actions.pod:1556
10077 #: ../fish/guestfish-actions.pod:1558
10085 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2502
10086 msgid "This returns the process group flag."
10090 #: ../fish/guestfish-actions.pod:1562
10095 #: ../fish/guestfish-actions.pod:1564
10100 #: ../fish/guestfish-actions.pod:1566
10110 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2513
10112 "Return the process ID of the qemu subprocess. If there is no qemu "
10113 "subprocess, then this will return an error."
10117 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2516
10118 msgid "This is an internal call used for debugging and testing."
10122 #: ../fish/guestfish-actions.pod:1573
10127 #: ../fish/guestfish-actions.pod:1575
10137 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2527
10138 msgid "Return the current qemu binary."
10142 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2529
10144 "This is always non-NULL. If it wasn't set already, then this will return "
10145 "the default qemu binary name."
10149 #: ../fish/guestfish-actions.pod:1582
10150 msgid "get-recovery-proc"
10151 msgstr "get-recovery-proc"
10154 #: ../fish/guestfish-actions.pod:1584
10157 " get-recovery-proc\n"
10160 " get-recovery-proc\n"
10164 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2542
10165 msgid "Return the recovery process enabled flag."
10169 #: ../fish/guestfish-actions.pod:1588
10170 msgid "get-selinux"
10171 msgstr "get-selinux"
10174 #: ../fish/guestfish-actions.pod:1590
10184 #: ../fish/guestfish-actions.pod:1592
10186 "This returns the current setting of the selinux flag which is passed to the "
10187 "appliance at boot time. See L</set-selinux>."
10191 #: ../fish/guestfish-actions.pod:1598
10196 #: ../fish/guestfish-actions.pod:1600
10204 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2568
10205 msgid "This returns the number of virtual CPUs assigned to the appliance."
10209 #: ../fish/guestfish-actions.pod:1604
10214 #: ../fish/guestfish-actions.pod:1606
10224 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2579
10226 "This returns the current state as an opaque integer. This is only useful "
10227 "for printing debug and internal error messages."
10231 #: ../fish/guestfish-actions.pod:1611 ../fish/guestfish-actions.pod:2574
10232 #: ../fish/guestfish-actions.pod:2592 ../fish/guestfish-actions.pod:2630
10233 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:2582
10234 #: ../src/guestfs-actions.pod:3905 ../src/guestfs-actions.pod:3934
10235 #: ../src/guestfs-actions.pod:3995 ../src/guestfs-actions.pod:4022
10236 msgid "For more information on states, see L<guestfs(3)>."
10240 #: ../fish/guestfish-actions.pod:1613
10245 #: ../fish/guestfish-actions.pod:1615
10255 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2593
10256 msgid "Return the command trace flag."
10260 #: ../fish/guestfish-actions.pod:1619
10265 #: ../fish/guestfish-actions.pod:1621
10275 #: ../fish/guestfish-actions.pod:1623
10277 "Return the current umask. By default the umask is C<022> unless it has been "
10278 "set by calling L</umask>."
10282 #: ../fish/guestfish-actions.pod:1626
10283 msgid "get-verbose"
10284 msgstr "get-verbose"
10287 #: ../fish/guestfish-actions.pod:1628
10297 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2616
10298 msgid "This returns the verbose messages flag."
10302 #: ../fish/guestfish-actions.pod:1632
10307 #: ../fish/guestfish-actions.pod:1634
10317 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2627
10318 msgid "This gets the SELinux security context of the daemon."
10322 #: ../fish/guestfish-actions.pod:1638
10323 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
10327 #: ../fish/guestfish-actions.pod:1641
10332 #: ../fish/guestfish-actions.pod:1643
10335 " getxattr path name\n"
10338 " getxattr шлях назва\n"
10342 #: ../fish/guestfish-actions.pod:1645
10344 "Get a single extended attribute from file C<path> named C<name>. This call "
10345 "follows symlinks. If you want to lookup an extended attribute for the "
10346 "symlink itself, use L</lgetxattr>."
10350 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2719
10352 "Normally it is better to get all extended attributes from a file in one go "
10353 "by calling L</getxattrs>. However some Linux filesystem implementations are "
10354 "buggy and do not provide a way to list out attributes. For these "
10355 "filesystems (notably ntfs-3g) you have to know the names of the extended "
10356 "attributes you want in advance and call this function."
10360 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2726
10361 #: ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:4155
10363 "Extended attribute values are blobs of binary data. If there is no extended "
10364 "attribute named C<name>, this returns an error."
10368 #: ../fish/guestfish-actions.pod:1659
10369 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
10370 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
10373 #: ../fish/guestfish-actions.pod:1661
10378 #: ../fish/guestfish-actions.pod:1663
10381 " getxattrs path\n"
10384 " getxattrs шлях\n"
10388 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2673
10390 "This call lists the extended attributes of the file or directory C<path>."
10394 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2676
10396 "At the system call level, this is a combination of the L<listxattr(2)> and "
10397 "L<getxattr(2)> calls."
10401 #: ../fish/guestfish-actions.pod:1671
10402 msgid "See also: L</lgetxattrs>, L<attr(5)>."
10403 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
10406 #: ../fish/guestfish-actions.pod:1673
10407 msgid "glob-expand"
10408 msgstr "glob-expand"
10411 #: ../fish/guestfish-actions.pod:1675
10414 " glob-expand pattern\n"
10417 " glob-expand шаблон\n"
10421 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2693
10423 "This command searches for all the pathnames matching C<pattern> according to "
10424 "the wildcard expansion rules used by the shell."
10428 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2697
10430 "If no paths match, then this returns an empty list (note: not an error)."
10434 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2700
10436 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
10437 "GLOB_BRACE>. See that manual page for more details."
10441 #: ../fish/guestfish-actions.pod:1688
10446 #: ../fish/guestfish-actions.pod:1690
10449 " grep regex path\n"
10452 " grepi формальний_вираз шлях\n"
10456 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2717
10457 msgid "This calls the external C<grep> program and returns the matching lines."
10461 #: ../fish/guestfish-actions.pod:1698
10466 #: ../fish/guestfish-actions.pod:1700
10469 " grepi regex path\n"
10472 " grepi формальний_вираз шлях\n"
10476 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2736
10478 "This calls the external C<grep -i> program and returns the matching lines."
10482 #: ../fish/guestfish-actions.pod:1708
10483 msgid "grub-install"
10484 msgstr "grub-install"
10487 #: ../fish/guestfish-actions.pod:1710
10490 " grub-install root device\n"
10493 " grub-install кореневий пристрій\n"
10497 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2755
10499 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
10500 "with the root directory being C<root>."
10504 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2764
10506 "There is currently no way in the API to install grub2, which is used by most "
10507 "modern Linux guests. It is possible to run the grub2 command from the "
10508 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
10512 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2771
10514 "This uses C<grub-install> from the host. Unfortunately grub is not always "
10515 "compatible with itself, so this only works in rather narrow circumstances. "
10516 "Careful testing with each guest version is advisable."
10520 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2778
10522 "If grub-install reports the error \"No suitable drive was found in the "
10523 "generated device map.\" it may be that you need to create a C</boot/grub/"
10524 "device.map> file first that contains the mapping between grub device names "
10525 "and Linux device names. It is usually sufficient to create a file "
10530 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2785
10533 " (hd0) /dev/vda\n"
10538 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2787
10539 msgid "replacing C</dev/vda> with the name of the installation device."
10543 #: ../fish/guestfish-actions.pod:1748
10548 #: ../fish/guestfish-actions.pod:1750
10558 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2801
10560 "This command returns up to the first 10 lines of a file as a list of strings."
10564 #: ../fish/guestfish-actions.pod:1758
10569 #: ../fish/guestfish-actions.pod:1760
10572 " head-n nrlines path\n"
10577 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2820
10579 "If the parameter C<nrlines> is a positive number, this returns the first "
10580 "C<nrlines> lines of the file C<path>."
10584 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2823
10586 "If the parameter C<nrlines> is a negative number, this returns lines from "
10587 "the file C<path>, excluding the last C<nrlines> lines."
10591 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4951
10592 #: ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:7626
10593 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
10597 #: ../fish/guestfish-actions.pod:1773
10602 #: ../fish/guestfish-actions.pod:1775
10612 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2843
10614 "This runs C<hexdump -C> on the given C<path>. The result is the human-"
10615 "readable, canonical hex dump of the file."
10619 #: ../fish/guestfish-actions.pod:1783
10621 msgstr "initrd-cat"
10624 #: ../fish/guestfish-actions.pod:1785
10627 " initrd-cat initrdpath filename\n"
10630 " initrd-cat шлях_initrd назва_файла\n"
10634 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2862
10636 "This command unpacks the file C<filename> from the initrd file called "
10637 "C<initrdpath>. The filename must be given I<without> the initial C</> "
10642 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2866
10644 "For example, in guestfish you could use the following command to examine the "
10645 "boot script (usually called C</init>) contained in a Linux initrd or "
10650 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2870
10653 " initrd-cat /boot/initrd-<version>.img init\n"
10658 #: ../fish/guestfish-actions.pod:1797
10659 msgid "See also L</initrd-list>."
10660 msgstr "Див. також L</initrd-list>."
10663 #: ../fish/guestfish-actions.pod:1802
10664 msgid "initrd-list"
10665 msgstr "initrd-list"
10668 #: ../fish/guestfish-actions.pod:1804
10671 " initrd-list path\n"
10674 " initrd-list шлях\n"
10678 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2889
10679 msgid "This command lists out files contained in an initrd."
10683 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2891
10685 "The files are listed without any initial C</> character. The files are "
10686 "listed in the order they appear (not necessarily alphabetical). Directory "
10687 "names are listed as separate items."
10691 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2895
10693 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
10694 "initrd. We I<only> support the newer initramfs format (compressed cpio "
10699 #: ../fish/guestfish-actions.pod:1816
10700 msgid "inotify-add-watch"
10701 msgstr "inotify-add-watch"
10704 #: ../fish/guestfish-actions.pod:1818
10707 " inotify-add-watch path mask\n"
10710 " inotify-add-watch шлях маска\n"
10714 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2912
10715 msgid "Watch C<path> for the events listed in C<mask>."
10719 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2914
10721 "Note that if C<path> is a directory then events within that directory are "
10722 "watched, but this does I<not> happen recursively (in subdirectories)."
10726 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2918
10728 "Note for non-C or non-Linux callers: the inotify events are defined by the "
10729 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
10733 #: ../fish/guestfish-actions.pod:1830
10734 msgid "inotify-close"
10735 msgstr "inotify-close"
10738 #: ../fish/guestfish-actions.pod:1832
10748 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2931
10750 "This closes the inotify handle which was previously opened by inotify_init. "
10751 "It removes all watches, throws away any pending events, and deallocates all "
10756 #: ../fish/guestfish-actions.pod:1838
10757 msgid "inotify-files"
10758 msgstr "inotify-files"
10761 #: ../fish/guestfish-actions.pod:1840
10771 #: ../fish/guestfish-actions.pod:1842
10773 "This function is a helpful wrapper around L</inotify-read> which just "
10774 "returns a list of pathnames of objects that were touched. The returned "
10775 "pathnames are sorted and deduplicated."
10779 #: ../fish/guestfish-actions.pod:1846
10780 msgid "inotify-init"
10781 msgstr "inotify-init"
10784 #: ../fish/guestfish-actions.pod:1848
10787 " inotify-init maxevents\n"
10792 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2960
10794 "This command creates a new inotify handle. The inotify subsystem can be "
10795 "used to notify events which happen to objects in the guest filesystem."
10799 #: ../fish/guestfish-actions.pod:1854
10801 "C<maxevents> is the maximum number of events which will be queued up between "
10802 "calls to L</inotify-read> or L</inotify-files>. If this is passed as C<0>, "
10803 "then the kernel (or previously set) default is used. For Linux 2.6.29 the "
10804 "default was 16384 events. Beyond this limit, the kernel throws away events, "
10805 "but records the fact that it threw them away by setting a flag "
10806 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
10810 #: ../fish/guestfish-actions.pod:1864
10812 "Before any events are generated, you have to add some watches to the "
10813 "internal watch list. See: L</inotify-add-watch>, L</inotify-rm-watch> and "
10814 "L</inotify-watch-all>."
10818 #: ../fish/guestfish-actions.pod:1870
10820 "Queued up events should be read periodically by calling L</inotify-read> (or "
10821 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>). "
10822 "If you don't read the events out often enough then you risk the internal "
10823 "queue overflowing."
10827 #: ../fish/guestfish-actions.pod:1877
10829 "The handle should be closed after use by calling L</inotify-close>. This "
10830 "also removes any watches automatically."
10834 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2991
10836 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
10837 "by the Linux kernel, which is roughly what we expose via libguestfs. Note "
10838 "that there is one global inotify handle per libguestfs instance."
10842 #: ../fish/guestfish-actions.pod:1886
10843 msgid "inotify-read"
10844 msgstr "inotify-read"
10847 #: ../fish/guestfish-actions.pod:1888
10857 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:3005
10859 "Return the complete queue of events that have happened since the previous "
10864 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3008
10865 msgid "If no events have happened, this returns an empty list."
10869 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3010
10871 "I<Note>: In order to make sure that all events have been read, you must call "
10872 "this function repeatedly until it returns an empty list. The reason is that "
10873 "the call will read events up to the maximum appliance-to-host message size "
10874 "and leave remaining events in the queue."
10878 #: ../fish/guestfish-actions.pod:1901
10879 msgid "inotify-rm-watch"
10880 msgstr "inotify-rm-watch"
10883 #: ../fish/guestfish-actions.pod:1903
10886 " inotify-rm-watch wd\n"
10891 #: ../fish/guestfish-actions.pod:1905
10892 msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
10896 #: ../fish/guestfish-actions.pod:1908
10897 msgid "inspect-get-arch"
10898 msgstr "inspect-get-arch"
10901 #: ../fish/guestfish-actions.pod:1910
10904 " inspect-get-arch root\n"
10907 " inspect-get-arch корінь\n"
10911 #: ../fish/guestfish-actions.pod:1912
10913 "This returns the architecture of the inspected operating system. The "
10914 "possible return values are listed under L</file-architecture>."
10918 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3045
10920 "If the architecture could not be determined, then the string C<unknown> is "
10925 #: ../fish/guestfish-actions.pod:1919 ../fish/guestfish-actions.pod:2014
10926 #: ../fish/guestfish-actions.pod:2093 ../fish/guestfish-actions.pod:2105
10927 #: ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2251
10928 #: ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2286
10929 #: ../fish/guestfish-actions.pod:2326 ../fish/guestfish-actions.pod:2366
10930 #: ../fish/guestfish-actions.pod:2379 ../fish/guestfish-actions.pod:2392
10931 #: ../fish/guestfish-actions.pod:2402 ../fish/guestfish-actions.pod:2412
10932 #: ../fish/guestfish-actions.pod:2424 ../fish/guestfish-actions.pod:2520
10933 #: ../fish/guestfish-actions.pod:2554 ../src/guestfs-actions.pod:3048
10934 #: ../src/guestfs-actions.pod:3150 ../src/guestfs-actions.pod:3254
10935 #: ../src/guestfs-actions.pod:3273 ../src/guestfs-actions.pod:3404
10936 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3516
10937 #: ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3590
10938 #: ../src/guestfs-actions.pod:3638 ../src/guestfs-actions.pod:3658
10939 #: ../src/guestfs-actions.pod:3678 ../src/guestfs-actions.pod:3695
10940 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3729
10941 #: ../src/guestfs-actions.pod:3831 ../src/guestfs-actions.pod:3872
10942 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10946 #: ../fish/guestfish-actions.pod:1921
10947 msgid "inspect-get-distro"
10948 msgstr "inspect-get-distro"
10951 #: ../fish/guestfish-actions.pod:1923
10954 " inspect-get-distro root\n"
10957 " inspect-get-distro корінь\n"
10961 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3061
10963 "This returns the distro (distribution) of the inspected operating system."
10967 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3064
10968 msgid "Currently defined distros are:"
10972 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3068
10973 msgid "\"archlinux\""
10974 msgstr "\"archlinux\""
10977 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3070
10978 msgid "Arch Linux."
10979 msgstr "Arch Linux."
10982 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3072
10987 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3074
10992 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3076
10994 msgstr "\"debian\""
10997 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3078
11002 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3080
11004 msgstr "\"fedora\""
11007 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3082
11012 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3084
11014 msgstr "\"gentoo\""
11017 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3086
11022 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3088
11023 msgid "\"linuxmint\""
11024 msgstr "\"linuxmint\""
11027 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3090
11028 msgid "Linux Mint."
11029 msgstr "Linux Mint."
11032 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3092
11037 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3094
11042 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3096
11043 msgid "\"mandriva\""
11044 msgstr "\"mandriva\""
11047 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3098
11052 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3100
11057 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3102
11062 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3104
11063 msgid "\"opensuse\""
11067 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3106
11072 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3108
11074 msgstr "\"pardus\""
11077 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3110
11082 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3112
11083 msgid "\"redhat-based\""
11084 msgstr "\"redhat-based\""
11087 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3114
11088 msgid "Some Red Hat-derived distro."
11089 msgstr "Дистрибутив, що походить від Red Hat."
11092 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3116
11097 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3118
11098 msgid "Red Hat Enterprise Linux."
11099 msgstr "Red Hat Enterprise Linux."
11102 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3120
11103 msgid "\"scientificlinux\""
11104 msgstr "\"scientificlinux\""
11107 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3122
11108 msgid "Scientific Linux."
11109 msgstr "Scientific Linux."
11112 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3124
11113 msgid "\"slackware\""
11114 msgstr "\"slackware\""
11117 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3126
11119 msgstr "Slackware."
11122 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3128
11123 msgid "\"ttylinux\""
11127 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3130
11132 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3132
11134 msgstr "\"ubuntu\""
11137 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3134
11142 #: ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2084
11143 #: ../fish/guestfish-actions.pod:2357 ../src/guestfs-actions.pod:3136
11144 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3629
11145 msgid "\"unknown\""
11146 msgstr "\"unknown\""
11149 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3138
11150 msgid "The distro could not be determined."
11151 msgstr "Дистрибутив, тип якого не вдалося визначити."
11154 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341
11155 #: ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3613
11156 msgid "\"windows\""
11157 msgstr "\"windows\""
11160 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3142
11162 "Windows does not have distributions. This string is returned if the OS type "
11167 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2090
11168 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3147
11169 #: ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3635
11171 "Future versions of libguestfs may return other strings here. The caller "
11172 "should be prepared to handle any string."
11176 #: ../fish/guestfish-actions.pod:2016
11177 msgid "inspect-get-drive-mappings"
11181 #: ../fish/guestfish-actions.pod:2018
11184 " inspect-get-drive-mappings root\n"
11189 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3163
11191 "This call is useful for Windows which uses a primitive system of assigning "
11192 "drive letters (like \"C:\") to partitions. This inspection API examines the "
11193 "Windows Registry to find out how disks/partitions are mapped to drive "
11194 "letters, and returns a hash table as in the example below:"
11198 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3169
11201 " C => /dev/vda2\n"
11202 " E => /dev/vdb1\n"
11203 " F => /dev/vdc1\n"
11208 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3173
11210 "Note that keys are drive letters. For Windows, the key is case insensitive "
11211 "and just contains the drive letter, without the customary colon separator "
11216 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3177
11218 "In future we may support other operating systems that also used drive "
11219 "letters, but the keys for those might not be case insensitive and might be "
11220 "longer than 1 character. For example in OS-9, hard drives were named C<h0>, "
11225 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3182
11227 "For Windows guests, currently only hard drive mappings are returned. "
11228 "Removable disks (eg. DVD-ROMs) are ignored."
11232 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3185
11234 "For guests that do not use drive mappings, or if the drive mappings could "
11235 "not be determined, this returns an empty hash table."
11239 #: ../fish/guestfish-actions.pod:2045
11241 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
11242 "get-mountpoints>, L</inspect-get-filesystems>."
11246 #: ../fish/guestfish-actions.pod:2049
11247 msgid "inspect-get-filesystems"
11248 msgstr "inspect-get-filesystems"
11251 #: ../fish/guestfish-actions.pod:2051
11254 " inspect-get-filesystems root\n"
11257 " inspect-get-filesystems корінь\n"
11261 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3206
11263 "This returns a list of all the filesystems that we think are associated with "
11264 "this operating system. This includes the root filesystem, other ordinary "
11265 "filesystems, and non-mounted devices like swap partitions."
11269 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3211
11271 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
11272 "to be shared between operating systems."
11276 #: ../fish/guestfish-actions.pod:2061
11278 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
11279 "get-mountpoints>."
11283 #: ../fish/guestfish-actions.pod:2064
11284 msgid "inspect-get-format"
11285 msgstr "inspect-get-format"
11288 #: ../fish/guestfish-actions.pod:2066
11291 " inspect-get-format root\n"
11294 " inspect-get-format корінь\n"
11298 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3229
11300 "This returns the format of the inspected operating system. You can use it "
11301 "to detect install images, live CDs and similar."
11305 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3232
11306 msgid "Currently defined formats are:"
11310 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3236
11311 msgid "\"installed\""
11312 msgstr "\"installed\""
11315 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3238
11316 msgid "This is an installed operating system."
11317 msgstr "Це встановлена операційна система."
11320 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3240
11321 msgid "\"installer\""
11325 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3242
11327 "The disk image being inspected is not an installed operating system, but a "
11328 "I<bootable> install disk, live CD, or similar."
11332 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3247
11333 msgid "The format of this disk image is not known."
11337 #: ../fish/guestfish-actions.pod:2095
11338 msgid "inspect-get-hostname"
11339 msgstr "inspect-get-hostname"
11342 #: ../fish/guestfish-actions.pod:2097
11345 " inspect-get-hostname root\n"
11348 " inspect-get-hostname корінь\n"
11352 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3267
11354 "This function returns the hostname of the operating system as found by "
11355 "inspection of the guest's configuration files."
11359 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3270
11361 "If the hostname could not be determined, then the string C<unknown> is "
11366 #: ../fish/guestfish-actions.pod:2107
11367 msgid "inspect-get-icon"
11371 #: ../fish/guestfish-actions.pod:2109
11374 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
11379 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3296
11381 "This function returns an icon corresponding to the inspected operating "
11382 "system. The icon is returned as a buffer containing a PNG image (re-encoded "
11383 "to PNG if necessary)."
11387 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3300
11389 "If it was not possible to get an icon this function returns a zero-length "
11390 "(non-NULL) buffer. I<Callers must check for this case>."
11394 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3303
11396 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
11397 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
11398 "this file will be returned. You can disable favicons by passing the "
11399 "optional C<favicon> boolean as false (default is true)."
11403 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3309
11405 "If finding the favicon fails, then we look in other places in the guest for "
11410 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3312
11412 "If the optional C<highquality> boolean is true then only high quality icons "
11413 "are returned, which means only icons of high resolution with an alpha "
11414 "channel. The default (false) is to return any icon we can, even if it is of "
11415 "substandard quality."
11419 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3323
11421 "Unlike most other inspection API calls, the guest's disks must be mounted up "
11422 "before you call this, since it needs to read information from the guest "
11423 "filesystem during the call."
11427 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3329
11429 "B<Security:> The icon data comes from the untrusted guest, and should be "
11430 "treated with caution. PNG files have been known to contain exploits. "
11431 "Ensure that libpng (or other relevant libraries) are fully up to date before "
11432 "trying to process or display the icon."
11436 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3337
11438 "The PNG image returned can be any size. It might not be square. Libguestfs "
11439 "tries to return the largest, highest quality icon available. The "
11440 "application must scale the icon to the required size."
11444 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3344
11446 "Extracting icons from Windows guests requires the external C<wrestool> "
11447 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
11448 "C<pnmtopng>, C<pamcut>) from the C<netpbm> package. These must be "
11449 "installed separately."
11453 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3351
11455 "Operating system icons are usually trademarks. Seek legal advice before "
11456 "using trademarks in applications."
11460 #: ../fish/guestfish-actions.pod:2173
11461 msgid "inspect-get-major-version"
11462 msgstr "inspect-get-major-version"
11465 #: ../fish/guestfish-actions.pod:2175
11468 " inspect-get-major-version root\n"
11471 " inspect-get-major-version корінь\n"
11475 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3392
11477 "This returns the major version number of the inspected operating system."
11481 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3395
11483 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
11484 "popular public names used by the operating system. Notably the operating "
11485 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
11486 "1). You can find out the real versions corresponding to releases of Windows "
11487 "by consulting Wikipedia or MSDN."
11491 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198
11492 #: ../src/guestfs-actions.pod:3402 ../src/guestfs-actions.pod:3419
11493 msgid "If the version could not be determined, then C<0> is returned."
11497 #: ../fish/guestfish-actions.pod:2191
11498 msgid "inspect-get-minor-version"
11499 msgstr "inspect-get-minor-version"
11502 #: ../fish/guestfish-actions.pod:2193
11505 " inspect-get-minor-version root\n"
11508 " inspect-get-minor-version корінь\n"
11512 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3416
11514 "This returns the minor version number of the inspected operating system."
11518 #: ../fish/guestfish-actions.pod:2200
11520 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
11521 "get-major-version>."
11525 #: ../fish/guestfish-actions.pod:2203
11526 msgid "inspect-get-mountpoints"
11527 msgstr "inspect-get-mountpoints"
11530 #: ../fish/guestfish-actions.pod:2205
11533 " inspect-get-mountpoints root\n"
11536 " inspect-get-mountpoints корінь\n"
11540 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3434
11542 "This returns a hash of where we think the filesystems associated with this "
11543 "operating system should be mounted. Callers should note that this is at "
11544 "best an educated guess made by reading configuration files such as C</etc/"
11545 "fstab>. I<In particular note> that this may return filesystems which are "
11546 "non-existent or not mountable and callers should be prepared to handle or "
11547 "ignore failures if they try to mount them."
11551 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3443
11553 "Each element in the returned hashtable has a key which is the path of the "
11554 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
11555 "mounted there (eg. C</dev/sda1>)."
11559 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3448
11561 "Non-mounted devices such as swap devices are I<not> returned in this list."
11565 #: ../fish/guestfish-actions.pod:2224
11567 "For operating systems like Windows which still use drive letters, this call "
11568 "will only return an entry for the first drive \"mounted on\" C</>. For "
11569 "information about the mapping of drive letters to partitions, see L</inspect-"
11570 "get-drive-mappings>."
11574 #: ../fish/guestfish-actions.pod:2230
11576 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
11577 "get-filesystems>."
11581 #: ../fish/guestfish-actions.pod:2233
11582 msgid "inspect-get-package-format"
11583 msgstr "inspect-get-package-format"
11586 #: ../fish/guestfish-actions.pod:2235
11589 " inspect-get-package-format root\n"
11592 " inspect-get-package-format корінь\n"
11596 #: ../fish/guestfish-actions.pod:2237
11598 "This function and L</inspect-get-package-management> return the package "
11599 "format and package management tool used by the inspected operating system. "
11600 "For example for Fedora these functions would return C<rpm> (package format) "
11601 "and C<yum> (package management)."
11605 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3480
11607 "This returns the string C<unknown> if we could not determine the package "
11608 "format I<or> if the operating system does not have a real packaging system "
11613 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3484
11615 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
11616 "C<pkgsrc>. Future versions of libguestfs may return other strings."
11620 #: ../fish/guestfish-actions.pod:2253
11621 msgid "inspect-get-package-management"
11622 msgstr "inspect-get-package-management"
11625 #: ../fish/guestfish-actions.pod:2255
11628 " inspect-get-package-management root\n"
11631 " inspect-get-package-management корінь\n"
11635 #: ../fish/guestfish-actions.pod:2257
11637 "L</inspect-get-package-format> and this function return the package format "
11638 "and package management tool used by the inspected operating system. For "
11639 "example for Fedora these functions would return C<rpm> (package format) and "
11640 "C<yum> (package management)."
11644 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3507
11646 "This returns the string C<unknown> if we could not determine the package "
11647 "management tool I<or> if the operating system does not have a real packaging "
11648 "system (eg. Windows)."
11652 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3511
11654 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11655 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>. Future "
11656 "versions of libguestfs may return other strings."
11660 #: ../fish/guestfish-actions.pod:2274
11661 msgid "inspect-get-product-name"
11662 msgstr "inspect-get-product-name"
11665 #: ../fish/guestfish-actions.pod:2276
11668 " inspect-get-product-name root\n"
11671 " inspect-get-product-name корінь\n"
11675 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3529
11677 "This returns the product name of the inspected operating system. The "
11678 "product name is generally some freeform string which can be displayed to the "
11679 "user, but should not be parsed by programs."
11683 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3534
11685 "If the product name could not be determined, then the string C<unknown> is "
11690 #: ../fish/guestfish-actions.pod:2288
11691 msgid "inspect-get-product-variant"
11695 #: ../fish/guestfish-actions.pod:2290
11698 " inspect-get-product-variant root\n"
11703 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3550
11704 msgid "This returns the product variant of the inspected operating system."
11708 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3553
11710 "For Windows guests, this returns the contents of the Registry key C<HKLM"
11711 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
11712 "is usually a string such as C<Client> or C<Server> (other values are "
11713 "possible). This can be used to distinguish consumer and enterprise versions "
11714 "of Windows that have the same version number (for example, Windows 7 and "
11715 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
11716 "the latter is C<Server>)."
11720 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3562
11722 "For enterprise Linux guests, in future we intend this to return the product "
11723 "variant such as C<Desktop>, C<Server> and so on. But this is not "
11724 "implemented at present."
11728 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3566
11730 "If the product variant could not be determined, then the string C<unknown> "
11735 #: ../fish/guestfish-actions.pod:2311
11737 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
11738 "get-product-name>, L</inspect-get-major-version>."
11742 #: ../fish/guestfish-actions.pod:2315
11743 msgid "inspect-get-roots"
11744 msgstr "inspect-get-roots"
11747 #: ../fish/guestfish-actions.pod:2317
11750 " inspect-get-roots\n"
11753 " inspect-get-roots\n"
11757 #: ../fish/guestfish-actions.pod:2319
11759 "This function is a convenient way to get the list of root devices, as "
11760 "returned from a previous call to L</inspect-os>, but without redoing the "
11761 "whole inspection process."
11765 #: ../fish/guestfish-actions.pod:2323
11767 "This returns an empty list if either no root devices were found or the "
11768 "caller has not called L</inspect-os>."
11772 #: ../fish/guestfish-actions.pod:2328
11773 msgid "inspect-get-type"
11774 msgstr "inspect-get-type"
11777 #: ../fish/guestfish-actions.pod:2330
11780 " inspect-get-type root\n"
11783 " inspect-get-type корінь\n"
11787 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3604
11789 "This returns the type of the inspected operating system. Currently defined "
11794 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3609
11799 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3611
11800 msgid "Any Linux-based operating system."
11804 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3615
11805 msgid "Any Microsoft Windows operating system."
11809 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3617
11810 msgid "\"freebsd\""
11811 msgstr "\"freebsd\""
11814 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3619
11819 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3621
11824 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3623
11829 #: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3625
11834 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3627
11839 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3631
11840 msgid "The operating system type could not be determined."
11844 #: ../fish/guestfish-actions.pod:2368
11845 msgid "inspect-get-windows-current-control-set"
11849 #: ../fish/guestfish-actions.pod:2370
11852 " inspect-get-windows-current-control-set root\n"
11857 #: ../fish/guestfish-actions.pod:2372 ../src/guestfs-actions.pod:3651
11859 "This returns the Windows CurrentControlSet of the inspected guest. The "
11860 "CurrentControlSet is a registry key name such as C<ControlSet001>."
11864 #: ../fish/guestfish-actions.pod:2375 ../src/guestfs-actions.pod:3654
11866 "This call assumes that the guest is Windows and that the Registry could be "
11867 "examined by inspection. If this is not the case then an error is returned."
11871 #: ../fish/guestfish-actions.pod:2381
11872 msgid "inspect-get-windows-systemroot"
11873 msgstr "inspect-get-windows-systemroot"
11876 #: ../fish/guestfish-actions.pod:2383
11879 " inspect-get-windows-systemroot root\n"
11882 " inspect-get-windows-systemroot корінь\n"
11886 #: ../fish/guestfish-actions.pod:2385 ../src/guestfs-actions.pod:3671
11888 "This returns the Windows systemroot of the inspected guest. The systemroot "
11889 "is a directory path such as C</WINDOWS>."
11893 #: ../fish/guestfish-actions.pod:2388 ../src/guestfs-actions.pod:3674
11895 "This call assumes that the guest is Windows and that the systemroot could be "
11896 "determined by inspection. If this is not the case then an error is returned."
11900 #: ../fish/guestfish-actions.pod:2394
11901 msgid "inspect-is-live"
11902 msgstr "inspect-is-live"
11905 #: ../fish/guestfish-actions.pod:2396
11908 " inspect-is-live root\n"
11911 " inspect-is-live корінь\n"
11915 #: ../fish/guestfish-actions.pod:2398
11917 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11918 "then this returns true if a live image was detected on the disk."
11922 #: ../fish/guestfish-actions.pod:2404
11923 msgid "inspect-is-multipart"
11924 msgstr "inspect-is-multipart"
11927 #: ../fish/guestfish-actions.pod:2406
11930 " inspect-is-multipart root\n"
11933 " inspect-is-multipart корінь\n"
11937 #: ../fish/guestfish-actions.pod:2408
11939 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11940 "then this returns true if the disk is part of a set."
11944 #: ../fish/guestfish-actions.pod:2414
11945 msgid "inspect-is-netinst"
11946 msgstr "inspect-is-netinst"
11949 #: ../fish/guestfish-actions.pod:2416
11952 " inspect-is-netinst root\n"
11955 " inspect-is-netinst корінь\n"
11959 #: ../fish/guestfish-actions.pod:2418
11961 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11962 "then this returns true if the disk is a network installer, ie. not a self-"
11963 "contained install CD but one which is likely to require network access to "
11964 "complete the install."
11968 #: ../fish/guestfish-actions.pod:2426
11969 msgid "inspect-list-applications"
11970 msgstr "inspect-list-applications"
11973 #: ../fish/guestfish-actions.pod:2428
11976 " inspect-list-applications root\n"
11979 " inspect-list-applications кореневий_каталог\n"
11983 #: ../fish/guestfish-actions.pod:2430 ../src/guestfs-actions.pod:3741
11984 msgid "Return the list of applications installed in the operating system."
11988 #: ../fish/guestfish-actions.pod:2432
11990 "I<Note:> This call works differently from other parts of the inspection "
11991 "API. You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
11992 "then mount up the disks, before calling this. Listing applications is a "
11993 "significantly more difficult operation which requires access to the full "
11994 "filesystem. Also note that unlike the other L</inspect-get-*> calls which "
11995 "are just returning data cached in the libguestfs handle, this call actually "
11996 "reads parts of the mounted filesystems during the call."
12000 #: ../fish/guestfish-actions.pod:2442 ../src/guestfs-actions.pod:3753
12002 "This returns an empty list if the inspection code was not able to determine "
12003 "the list of applications."
12007 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3756
12008 msgid "The application structure contains the following fields:"
12012 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3760
12013 msgid "C<app_name>"
12014 msgstr "C<app_name>"
12017 #: ../fish/guestfish-actions.pod:2451 ../src/guestfs-actions.pod:3762
12019 "The name of the application. For Red Hat-derived and Debian-derived Linux "
12020 "guests, this is the package name."
12024 #: ../fish/guestfish-actions.pod:2454 ../src/guestfs-actions.pod:3765
12025 msgid "C<app_display_name>"
12026 msgstr "C<app_display_name>"
12029 #: ../fish/guestfish-actions.pod:2456 ../src/guestfs-actions.pod:3767
12031 "The display name of the application, sometimes localized to the install "
12032 "language of the guest operating system."
12036 #: ../fish/guestfish-actions.pod:2459 ../src/guestfs-actions.pod:3770
12038 "If unavailable this is returned as an empty string C<\"\">. Callers needing "
12039 "to display something can use C<app_name> instead."
12043 #: ../fish/guestfish-actions.pod:2462 ../src/guestfs-actions.pod:3773
12044 msgid "C<app_epoch>"
12045 msgstr "C<app_epoch>"
12048 #: ../fish/guestfish-actions.pod:2464 ../src/guestfs-actions.pod:3775
12050 "For package managers which use epochs, this contains the epoch of the "
12051 "package (an integer). If unavailable, this is returned as C<0>."
12055 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3778
12056 msgid "C<app_version>"
12057 msgstr "C<app_version>"
12060 #: ../fish/guestfish-actions.pod:2469 ../src/guestfs-actions.pod:3780
12062 "The version string of the application or package. If unavailable this is "
12063 "returned as an empty string C<\"\">."
12067 #: ../fish/guestfish-actions.pod:2472 ../src/guestfs-actions.pod:3783
12068 msgid "C<app_release>"
12069 msgstr "C<app_release>"
12072 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3785
12074 "The release string of the application or package, for package managers that "
12075 "use this. If unavailable this is returned as an empty string C<\"\">."
12079 #: ../fish/guestfish-actions.pod:2478 ../src/guestfs-actions.pod:3789
12080 msgid "C<app_install_path>"
12081 msgstr "C<app_install_path>"
12084 #: ../fish/guestfish-actions.pod:2480 ../src/guestfs-actions.pod:3791
12086 "The installation path of the application (on operating systems such as "
12087 "Windows which use installation paths). This path is in the format used by "
12088 "the guest operating system, it is not a libguestfs path."
12092 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3796
12093 msgid "If unavailable this is returned as an empty string C<\"\">."
12097 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3798
12098 msgid "C<app_trans_path>"
12099 msgstr "C<app_trans_path>"
12102 #: ../fish/guestfish-actions.pod:2489 ../src/guestfs-actions.pod:3800
12104 "The install path translated into a libguestfs path. If unavailable this is "
12105 "returned as an empty string C<\"\">."
12109 #: ../fish/guestfish-actions.pod:2492 ../src/guestfs-actions.pod:3803
12110 msgid "C<app_publisher>"
12111 msgstr "C<app_publisher>"
12114 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3805
12116 "The name of the publisher of the application, for package managers that use "
12117 "this. If unavailable this is returned as an empty string C<\"\">."
12121 #: ../fish/guestfish-actions.pod:2498 ../src/guestfs-actions.pod:3809
12123 msgstr "C<app_url>"
12126 #: ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:3811
12128 "The URL (eg. upstream URL) of the application. If unavailable this is "
12129 "returned as an empty string C<\"\">."
12133 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3814
12134 msgid "C<app_source_package>"
12135 msgstr "C<app_source_package>"
12138 #: ../fish/guestfish-actions.pod:2505 ../src/guestfs-actions.pod:3816
12140 "For packaging systems which support this, the name of the source package. "
12141 "If unavailable this is returned as an empty string C<\"\">."
12145 #: ../fish/guestfish-actions.pod:2508 ../src/guestfs-actions.pod:3819
12146 msgid "C<app_summary>"
12147 msgstr "C<app_summary>"
12150 #: ../fish/guestfish-actions.pod:2510 ../src/guestfs-actions.pod:3821
12152 "A short (usually one line) description of the application or package. If "
12153 "unavailable this is returned as an empty string C<\"\">."
12157 #: ../fish/guestfish-actions.pod:2513 ../src/guestfs-actions.pod:3824
12158 msgid "C<app_description>"
12159 msgstr "C<app_description>"
12162 #: ../fish/guestfish-actions.pod:2515 ../src/guestfs-actions.pod:3826
12164 "A longer description of the application or package. If unavailable this is "
12165 "returned as an empty string C<\"\">."
12169 #: ../fish/guestfish-actions.pod:2522
12171 msgstr "inspect-os"
12174 #: ../fish/guestfish-actions.pod:2524
12184 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3844
12186 "This function uses other libguestfs functions and certain heuristics to "
12187 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
12188 "for operating systems."
12192 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3848
12193 msgid "The list returned is empty if no operating systems were found."
12197 #: ../fish/guestfish-actions.pod:2532 ../src/guestfs-actions.pod:3850
12199 "If one operating system was found, then this returns a list with a single "
12200 "element, which is the name of the root filesystem of this operating system. "
12201 "It is also possible for this function to return a list containing more than "
12202 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
12203 "element being the root filesystem of one of the operating systems."
12207 #: ../fish/guestfish-actions.pod:2539
12209 "You can pass the root string(s) returned to other L</inspect-get-*> "
12210 "functions in order to query further information about each operating system, "
12211 "such as the name and version."
12215 #: ../fish/guestfish-actions.pod:2544
12217 "This function uses other libguestfs features such as L</mount-ro> and L</"
12218 "umount-all> in order to mount and unmount filesystems and look at the "
12219 "contents. This should be called with no disks currently mounted. The "
12220 "function may also use Augeas, so any existing Augeas handle will be closed."
12224 #: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3868
12226 "This function cannot decrypt encrypted disks. The caller must do that first "
12227 "(supplying the necessary keys) if the disk is encrypted."
12231 #: ../fish/guestfish-actions.pod:2556 ../fish/guestfish-actions.pod:2754
12232 #: ../fish/guestfish-actions.pod:2819
12233 msgid "See also L</list-filesystems>."
12234 msgstr "Див. також L</list-filesystems>."
12237 #: ../fish/guestfish-actions.pod:2558
12238 msgid "is-blockdev"
12239 msgstr "is-blockdev"
12242 #: ../fish/guestfish-actions.pod:2560
12245 " is-blockdev path\n"
12248 " is-blockdev шлях\n"
12252 #: ../fish/guestfish-actions.pod:2562 ../src/guestfs-actions.pod:3888
12254 "This returns C<true> if and only if there is a block device with the given "
12259 #: ../fish/guestfish-actions.pod:2565 ../fish/guestfish-actions.pod:2583
12260 #: ../fish/guestfish-actions.pod:2602 ../fish/guestfish-actions.pod:2611
12261 #: ../fish/guestfish-actions.pod:2621 ../fish/guestfish-actions.pod:2655
12262 #: ../fish/guestfish-actions.pod:2664
12263 msgid "See also L</stat>."
12264 msgstr "Див. також L</stat>."
12267 #: ../fish/guestfish-actions.pod:2567
12272 #: ../fish/guestfish-actions.pod:2569
12282 #: ../fish/guestfish-actions.pod:2571 ../src/guestfs-actions.pod:3902
12284 "This returns true iff this handle is busy processing a command (in the "
12289 #: ../fish/guestfish-actions.pod:2576
12291 msgstr "is-chardev"
12294 #: ../fish/guestfish-actions.pod:2578
12297 " is-chardev path\n"
12300 " is-chardev шлях\n"
12304 #: ../fish/guestfish-actions.pod:2580 ../src/guestfs-actions.pod:3917
12306 "This returns C<true> if and only if there is a character device with the "
12307 "given C<path> name."
12311 #: ../fish/guestfish-actions.pod:2585
12316 #: ../fish/guestfish-actions.pod:2587
12326 #: ../fish/guestfish-actions.pod:2589 ../src/guestfs-actions.pod:3931
12328 "This returns true iff this handle is being configured (in the C<CONFIG> "
12333 #: ../fish/guestfish-actions.pod:2594
12338 #: ../fish/guestfish-actions.pod:2596
12348 #: ../fish/guestfish-actions.pod:2598 ../src/guestfs-actions.pod:3946
12350 "This returns C<true> if and only if there is a directory with the given "
12351 "C<path> name. Note that it returns false for other objects like files."
12355 #: ../fish/guestfish-actions.pod:2604
12360 #: ../fish/guestfish-actions.pod:2606
12370 #: ../fish/guestfish-actions.pod:2608 ../src/guestfs-actions.pod:3962
12372 "This returns C<true> if and only if there is a FIFO (named pipe) with the "
12373 "given C<path> name."
12377 #: ../fish/guestfish-actions.pod:2613
12382 #: ../fish/guestfish-actions.pod:2615
12392 #: ../fish/guestfish-actions.pod:2617 ../src/guestfs-actions.pod:3977
12394 "This returns C<true> if and only if there is a regular file with the given "
12395 "C<path> name. Note that it returns false for other objects like directories."
12399 #: ../fish/guestfish-actions.pod:2623
12400 msgid "is-launching"
12401 msgstr "is-launching"
12404 #: ../fish/guestfish-actions.pod:2625
12414 #: ../fish/guestfish-actions.pod:2627 ../src/guestfs-actions.pod:3992
12416 "This returns true iff this handle is launching the subprocess (in the "
12417 "C<LAUNCHING> state)."
12421 #: ../fish/guestfish-actions.pod:2632
12426 #: ../fish/guestfish-actions.pod:2634
12432 " is-lv пристрій\n"
12436 #: ../fish/guestfish-actions.pod:2636 ../src/guestfs-actions.pod:4007
12438 "This command tests whether C<device> is a logical volume, and returns true "
12439 "iff this is the case."
12443 #: ../fish/guestfish-actions.pod:2639
12448 #: ../fish/guestfish-actions.pod:2641
12458 #: ../fish/guestfish-actions.pod:2643 ../src/guestfs-actions.pod:4019
12460 "This returns true iff this handle is ready to accept commands (in the "
12465 #: ../fish/guestfish-actions.pod:2648
12470 #: ../fish/guestfish-actions.pod:2650
12473 " is-socket path\n"
12476 " is-socket шлях\n"
12480 #: ../fish/guestfish-actions.pod:2652 ../src/guestfs-actions.pod:4034
12482 "This returns C<true> if and only if there is a Unix domain socket with the "
12483 "given C<path> name."
12487 #: ../fish/guestfish-actions.pod:2657
12489 msgstr "is-symlink"
12492 #: ../fish/guestfish-actions.pod:2659
12495 " is-symlink path\n"
12498 " is-symlink шлях\n"
12502 #: ../fish/guestfish-actions.pod:2661 ../src/guestfs-actions.pod:4049
12504 "This returns C<true> if and only if there is a symbolic link with the given "
12509 #: ../fish/guestfish-actions.pod:2666
12514 #: ../fish/guestfish-actions.pod:2668
12522 #: ../fish/guestfish-actions.pod:2670 ../src/guestfs-actions.pod:4064
12524 "This returns true iff the file exists and the file is empty or it contains "
12529 #: ../fish/guestfish-actions.pod:2673
12530 msgid "is-zero-device"
12534 #: ../fish/guestfish-actions.pod:2675
12537 " is-zero-device device\n"
12542 #: ../fish/guestfish-actions.pod:2677 ../src/guestfs-actions.pod:4077
12543 msgid "This returns true iff the device exists and contains all zero bytes."
12547 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:4079
12548 msgid "Note that for large devices this can take a long time to run."
12552 #: ../fish/guestfish-actions.pod:2681
12553 msgid "kill-subprocess"
12554 msgstr "kill-subprocess"
12557 #: ../fish/guestfish-actions.pod:2683
12560 " kill-subprocess\n"
12563 " kill-subprocess\n"
12567 #: ../fish/guestfish-actions.pod:2685 ../src/guestfs-actions.pod:4090
12568 msgid "This kills the qemu subprocess. You should never need to call this."
12572 #: ../fish/guestfish-actions.pod:2687
12577 #: ../fish/guestfish-actions.pod:2689
12582 #: ../fish/guestfish-actions.pod:2691
12592 #: ../fish/guestfish-actions.pod:2693 ../src/guestfs-actions.pod:4101
12594 "Internally libguestfs is implemented by running a virtual machine using "
12599 #: ../fish/guestfish-actions.pod:2696 ../src/guestfs-actions.pod:4104
12601 "You should call this after configuring the handle (eg. adding drives) but "
12602 "before performing any actions."
12606 #: ../fish/guestfish-actions.pod:2699
12611 #: ../fish/guestfish-actions.pod:2701
12614 " lchown owner group path\n"
12617 " lchown власник група шлях\n"
12621 #: ../fish/guestfish-actions.pod:2703
12623 "Change the file owner to C<owner> and group to C<group>. This is like L</"
12624 "chown> but if C<path> is a symlink then the link itself is changed, not the "
12629 #: ../fish/guestfish-actions.pod:2711
12634 #: ../fish/guestfish-actions.pod:2713
12637 " lgetxattr path name\n"
12640 " lgetxattr шлях назва\n"
12644 #: ../fish/guestfish-actions.pod:2715 ../src/guestfs-actions.pod:4144
12646 "Get a single extended attribute from file C<path> named C<name>. If C<path> "
12647 "is a symlink, then this call returns an extended attribute from the symlink."
12651 #: ../fish/guestfish-actions.pod:2729
12652 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
12653 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
12656 #: ../fish/guestfish-actions.pod:2731
12658 msgstr "lgetxattrs"
12661 #: ../fish/guestfish-actions.pod:2733
12664 " lgetxattrs path\n"
12667 " lgetxattrs шлях\n"
12671 #: ../fish/guestfish-actions.pod:2735
12673 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
12674 "it returns the extended attributes of the link itself."
12678 #: ../fish/guestfish-actions.pod:2739
12683 #: ../fish/guestfish-actions.pod:2741
12691 #: ../fish/guestfish-actions.pod:2743 ../src/guestfs-actions.pod:4187
12693 "List all 9p filesystems attached to the guest. A list of mount tags is "
12698 #: ../fish/guestfish-actions.pod:2746
12699 msgid "list-devices"
12700 msgstr "list-devices"
12703 #: ../fish/guestfish-actions.pod:2748
12713 #: ../fish/guestfish-actions.pod:2750 ../src/guestfs-actions.pod:4201
12714 msgid "List all the block devices."
12718 #: ../fish/guestfish-actions.pod:2752 ../src/guestfs-actions.pod:4203
12719 msgid "The full block device names are returned, eg. C</dev/sda>."
12723 #: ../fish/guestfish-actions.pod:2756
12724 msgid "list-dm-devices"
12728 #: ../fish/guestfish-actions.pod:2758
12731 " list-dm-devices\n"
12736 #: ../fish/guestfish-actions.pod:2760 ../src/guestfs-actions.pod:4218
12737 msgid "List all device mapper devices."
12741 #: ../fish/guestfish-actions.pod:2762
12743 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
12744 "previous call to L</luks-open>."
12748 #: ../fish/guestfish-actions.pod:2765
12750 "Device mapper devices which correspond to logical volumes are I<not> "
12751 "returned in this list. Call L</lvs> if you want to list logical volumes."
12755 #: ../fish/guestfish-actions.pod:2769
12756 msgid "list-filesystems"
12757 msgstr "list-filesystems"
12760 #: ../fish/guestfish-actions.pod:2771
12763 " list-filesystems\n"
12766 " list-filesystems\n"
12770 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4238
12772 "This inspection command looks for filesystems on partitions, block devices "
12773 "and logical volumes, returning a list of devices containing filesystems and "
12778 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4242
12780 "The return value is a hash, where the keys are the devices containing "
12781 "filesystems, and the values are the filesystem types. For example:"
12785 #: ../fish/guestfish-actions.pod:2781 ../src/guestfs-actions.pod:4246
12788 " \"/dev/sda1\" => \"ntfs\"\n"
12789 " \"/dev/sda2\" => \"ext2\"\n"
12790 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
12791 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
12796 #: ../fish/guestfish-actions.pod:2786 ../src/guestfs-actions.pod:4251
12798 "The value can have the special value \"unknown\", meaning the content of the "
12799 "device is undetermined or empty. \"swap\" means a Linux swap partition."
12803 #: ../fish/guestfish-actions.pod:2790
12805 "This command runs other libguestfs commands, which might include L</mount> "
12806 "and L</umount>, and therefore you should use this soon after launch and only "
12807 "when nothing is mounted."
12811 #: ../fish/guestfish-actions.pod:2794
12813 "Not all of the filesystems returned will be mountable. In particular, swap "
12814 "partitions are returned in the list. Also this command does not check that "
12815 "each filesystem found is valid and mountable, and some filesystems might be "
12816 "mountable but require special options. Filesystems may not all belong to a "
12817 "single logical operating system (use L</inspect-os> to look for OSes)."
12821 #: ../fish/guestfish-actions.pod:2802
12823 #| msgid "list-devices"
12824 msgid "list-md-devices"
12825 msgstr "list-devices"
12828 #: ../fish/guestfish-actions.pod:2804
12831 #| " list-devices\n"
12834 " list-md-devices\n"
12841 #: ../fish/guestfish-actions.pod:2806 ../src/guestfs-actions.pod:4280
12842 msgid "List all Linux md devices."
12846 #: ../fish/guestfish-actions.pod:2808
12847 msgid "list-partitions"
12848 msgstr "list-partitions"
12851 #: ../fish/guestfish-actions.pod:2810
12854 " list-partitions\n"
12857 " list-partitions\n"
12861 #: ../fish/guestfish-actions.pod:2812 ../src/guestfs-actions.pod:4293
12862 msgid "List all the partitions detected on all block devices."
12866 #: ../fish/guestfish-actions.pod:2814 ../src/guestfs-actions.pod:4295
12867 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12871 #: ../fish/guestfish-actions.pod:2816
12873 "This does not return logical volumes. For that you will need to call L</"
12878 #: ../fish/guestfish-actions.pod:2821
12883 #: ../fish/guestfish-actions.pod:2823
12893 #: ../fish/guestfish-actions.pod:2825 ../src/guestfs-actions.pod:4314
12895 "List the files in C<directory> (relative to the root directory, there is no "
12896 "cwd) in the format of 'ls -la'."
12900 #: ../fish/guestfish-actions.pod:2828 ../src/guestfs-actions.pod:4317
12902 "This command is mostly useful for interactive sessions. It is I<not> "
12903 "intended that you try to parse the output string."
12907 #: ../fish/guestfish-actions.pod:2831
12912 #: ../fish/guestfish-actions.pod:2833
12915 " ln target linkname\n"
12918 " ln призначення назва_посилання\n"
12922 #: ../fish/guestfish-actions.pod:2835 ../src/guestfs-actions.pod:4332
12923 msgid "This command creates a hard link using the C<ln> command."
12927 #: ../fish/guestfish-actions.pod:2837
12932 #: ../fish/guestfish-actions.pod:2839
12935 " ln-f target linkname\n"
12938 " ln-f призначення назва_посилання\n"
12942 #: ../fish/guestfish-actions.pod:2841 ../src/guestfs-actions.pod:4345
12944 "This command creates a hard link using the C<ln -f> command. The I<-f> "
12945 "option removes the link (C<linkname>) if it exists already."
12949 #: ../fish/guestfish-actions.pod:2844
12954 #: ../fish/guestfish-actions.pod:2846
12957 " ln-s target linkname\n"
12960 " ln-s призначення назва_посилання\n"
12964 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4359
12965 msgid "This command creates a symbolic link using the C<ln -s> command."
12969 #: ../fish/guestfish-actions.pod:2850
12974 #: ../fish/guestfish-actions.pod:2852
12977 " ln-sf target linkname\n"
12980 " ln-sf призначення назва_посилання\n"
12984 #: ../fish/guestfish-actions.pod:2854 ../src/guestfs-actions.pod:4372
12986 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12987 "option removes the link (C<linkname>) if it exists already."
12991 #: ../fish/guestfish-actions.pod:2857
12992 msgid "lremovexattr"
12993 msgstr "lremovexattr"
12996 #: ../fish/guestfish-actions.pod:2859
12999 " lremovexattr xattr path\n"
13004 #: ../fish/guestfish-actions.pod:2861
13006 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
13007 "it removes an extended attribute of the link itself."
13011 #: ../fish/guestfish-actions.pod:2865
13016 #: ../fish/guestfish-actions.pod:2867
13026 #: ../fish/guestfish-actions.pod:2869 ../src/guestfs-actions.pod:4400
13028 "List the files in C<directory> (relative to the root directory, there is no "
13029 "cwd). The '.' and '..' entries are not returned, but hidden files are shown."
13033 #: ../fish/guestfish-actions.pod:2873
13035 "This command is mostly useful for interactive sessions. Programs should "
13036 "probably use L</readdir> instead."
13040 #: ../fish/guestfish-actions.pod:2876
13045 #: ../fish/guestfish-actions.pod:2878
13048 " lsetxattr xattr val vallen path\n"
13053 #: ../fish/guestfish-actions.pod:2880
13055 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
13056 "sets an extended attribute of the link itself."
13060 #: ../fish/guestfish-actions.pod:2884
13065 #: ../fish/guestfish-actions.pod:2886
13075 #: ../fish/guestfish-actions.pod:2888 ../fish/guestfish-actions.pod:4786
13076 #: ../src/guestfs-actions.pod:4436 ../src/guestfs-actions.pod:7366
13077 msgid "Returns file information for the given C<path>."
13081 #: ../fish/guestfish-actions.pod:2890
13083 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
13084 "the link is stat-ed, not the file it refers to."
13088 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4442
13089 msgid "This is the same as the C<lstat(2)> system call."
13093 #: ../fish/guestfish-actions.pod:2896
13098 #: ../fish/guestfish-actions.pod:2898
13101 " lstatlist path 'names ...'\n"
13106 #: ../fish/guestfish-actions.pod:2900
13108 "This call allows you to perform the L</lstat> operation on multiple files, "
13109 "where all files are in the directory C<path>. C<names> is the list of files "
13110 "from this directory."
13114 #: ../fish/guestfish-actions.pod:2904 ../src/guestfs-actions.pod:4461
13116 "On return you get a list of stat structs, with a one-to-one correspondence "
13117 "to the C<names> list. If any name did not exist or could not be lstat'd, "
13118 "then the C<ino> field of that structure is set to C<-1>."
13122 #: ../fish/guestfish-actions.pod:2909
13124 "This call is intended for programs that want to efficiently list a directory "
13125 "contents without making many round-trips. See also L</lxattrlist> for a "
13126 "similarly efficient call for getting extended attributes. Very long "
13127 "directory listings might cause the protocol message size to be exceeded, "
13128 "causing this call to fail. The caller must split up such requests into "
13129 "smaller groups of names."
13133 #: ../fish/guestfish-actions.pod:2917
13134 msgid "luks-add-key"
13135 msgstr "luks-add-key"
13138 #: ../fish/guestfish-actions.pod:2919
13141 " luks-add-key device keyslot\n"
13146 #: ../fish/guestfish-actions.pod:2921 ../src/guestfs-actions.pod:4489
13148 "This command adds a new key on LUKS device C<device>. C<key> is any "
13149 "existing key, and is used to access the device. C<newkey> is the new key to "
13150 "add. C<keyslot> is the key slot that will be replaced."
13154 #: ../fish/guestfish-actions.pod:2926
13156 "Note that if C<keyslot> already contains a key, then this command will "
13157 "fail. You have to use L</luks-kill-slot> first to remove that key."
13161 #: ../fish/guestfish-actions.pod:2930 ../fish/guestfish-actions.pod:2952
13162 #: ../fish/guestfish-actions.pod:2962 ../fish/guestfish-actions.pod:2973
13163 #: ../fish/guestfish-actions.pod:2999 ../fish/guestfish-actions.pod:3009
13165 "This command has one or more key or passphrase parameters. Guestfish will "
13166 "prompt for these separately."
13170 #: ../fish/guestfish-actions.pod:2933
13172 msgstr "luks-close"
13175 #: ../fish/guestfish-actions.pod:2935
13178 " luks-close device\n"
13181 " luks-close пристрій\n"
13185 #: ../fish/guestfish-actions.pod:2937
13187 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
13188 "luks-open-ro>. The C<device> parameter must be the name of the LUKS mapping "
13189 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
13194 #: ../fish/guestfish-actions.pod:2943
13195 msgid "luks-format"
13196 msgstr "luks-format"
13199 #: ../fish/guestfish-actions.pod:2945
13202 " luks-format device keyslot\n"
13207 #: ../fish/guestfish-actions.pod:2947 ../src/guestfs-actions.pod:4530
13209 "This command erases existing data on C<device> and formats the device as a "
13210 "LUKS encrypted device. C<key> is the initial key, which is added to key "
13211 "slot C<slot>. (LUKS supports 8 key slots, numbered 0-7)."
13215 #: ../fish/guestfish-actions.pod:2955
13216 msgid "luks-format-cipher"
13217 msgstr "luks-format-cipher"
13220 #: ../fish/guestfish-actions.pod:2957
13223 " luks-format-cipher device keyslot cipher\n"
13228 #: ../fish/guestfish-actions.pod:2959
13230 "This command is the same as L</luks-format> but it also allows you to set "
13231 "the C<cipher> used."
13235 #: ../fish/guestfish-actions.pod:2965
13236 msgid "luks-kill-slot"
13237 msgstr "luks-kill-slot"
13240 #: ../fish/guestfish-actions.pod:2967
13243 " luks-kill-slot device keyslot\n"
13248 #: ../fish/guestfish-actions.pod:2969 ../src/guestfs-actions.pod:4571
13250 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
13251 "device C<device>. C<key> must be one of the I<other> keys."
13255 #: ../fish/guestfish-actions.pod:2976
13260 #: ../fish/guestfish-actions.pod:2978
13263 " luks-open device mapname\n"
13268 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4591
13270 "This command opens a block device which has been encrypted according to the "
13271 "Linux Unified Key Setup (LUKS) standard."
13275 #: ../fish/guestfish-actions.pod:2983 ../src/guestfs-actions.pod:4594
13276 msgid "C<device> is the encrypted block device or partition."
13280 #: ../fish/guestfish-actions.pod:2985 ../src/guestfs-actions.pod:4596
13282 "The caller must supply one of the keys associated with the LUKS block "
13283 "device, in the C<key> parameter."
13287 #: ../fish/guestfish-actions.pod:2988 ../src/guestfs-actions.pod:4599
13289 "This creates a new block device called C</dev/mapper/mapname>. Reads and "
13290 "writes to this block device are decrypted from and encrypted to the "
13291 "underlying C<device> respectively."
13295 #: ../fish/guestfish-actions.pod:2992
13297 "If this block device contains LVM volume groups, then calling L</vgscan> "
13298 "followed by L</vg-activate-all> will make them visible."
13302 #: ../fish/guestfish-actions.pod:2996
13303 msgid "Use L</list-dm-devices> to list all device mapper devices."
13307 #: ../fish/guestfish-actions.pod:3002
13308 msgid "luks-open-ro"
13309 msgstr "luks-open-ro"
13312 #: ../fish/guestfish-actions.pod:3004
13315 " luks-open-ro device mapname\n"
13320 #: ../fish/guestfish-actions.pod:3006
13322 "This is the same as L</luks-open> except that a read-only mapping is created."
13326 #: ../fish/guestfish-actions.pod:3012
13331 #: ../fish/guestfish-actions.pod:3014
13334 " lvcreate logvol volgroup mbytes\n"
13339 #: ../fish/guestfish-actions.pod:3016 ../src/guestfs-actions.pod:4645
13341 "This creates an LVM logical volume called C<logvol> on the volume group "
13342 "C<volgroup>, with C<size> megabytes."
13346 #: ../fish/guestfish-actions.pod:3019
13347 msgid "lvm-canonical-lv-name"
13348 msgstr "lvm-canonical-lv-name"
13351 #: ../fish/guestfish-actions.pod:3021
13354 " lvm-canonical-lv-name lvname\n"
13359 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4658
13361 "This converts alternative naming schemes for LVs that you might find to the "
13362 "canonical name. For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
13367 #: ../fish/guestfish-actions.pod:3027 ../src/guestfs-actions.pod:4662
13369 "This command returns an error if the C<lvname> parameter does not refer to a "
13374 #: ../fish/guestfish-actions.pod:3030
13375 msgid "See also L</is-lv>."
13376 msgstr "Див. також L</is-lv>."
13379 #: ../fish/guestfish-actions.pod:3032
13380 msgid "lvm-clear-filter"
13381 msgstr "lvm-clear-filter"
13384 #: ../fish/guestfish-actions.pod:3034
13387 " lvm-clear-filter\n"
13390 " lvm-clear-filter\n"
13394 #: ../fish/guestfish-actions.pod:3036
13396 "This undoes the effect of L</lvm-set-filter>. LVM will be able to see every "
13401 #: ../fish/guestfish-actions.pod:3039 ../fish/guestfish-actions.pod:3067
13402 #: ../src/guestfs-actions.pod:4680 ../src/guestfs-actions.pod:4719
13404 "This command also clears the LVM cache and performs a volume group scan."
13408 #: ../fish/guestfish-actions.pod:3042
13409 msgid "lvm-remove-all"
13410 msgstr "lvm-remove-all"
13413 #: ../fish/guestfish-actions.pod:3044
13416 " lvm-remove-all\n"
13419 " lvm-remove-all\n"
13423 #: ../fish/guestfish-actions.pod:3046 ../src/guestfs-actions.pod:4692
13425 "This command removes all LVM logical volumes, volume groups and physical "
13430 #: ../fish/guestfish-actions.pod:3049
13431 msgid "lvm-set-filter"
13432 msgstr "lvm-set-filter"
13435 #: ../fish/guestfish-actions.pod:3051
13438 " lvm-set-filter 'devices ...'\n"
13441 " lvm-set-filter 'пристрої...'\n"
13445 #: ../fish/guestfish-actions.pod:3053 ../src/guestfs-actions.pod:4705
13447 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
13448 "block devices in the list C<devices>, and will ignore all other attached "
13453 #: ../fish/guestfish-actions.pod:3057 ../src/guestfs-actions.pod:4709
13455 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
13456 "get LVM to ignore the duplicates, otherwise LVM can get confused. Note also "
13457 "there are two types of duplication possible: either cloned PVs/VGs which "
13458 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
13459 "same name. In normal operation you cannot create this situation, but you "
13460 "can do it outside LVM, eg. by cloning disk images or by bit twiddling "
13461 "inside the LVM metadata."
13465 #: ../fish/guestfish-actions.pod:3070 ../src/guestfs-actions.pod:4722
13466 msgid "You can filter whole block devices or individual partitions."
13470 #: ../fish/guestfish-actions.pod:3072 ../src/guestfs-actions.pod:4724
13472 "You cannot use this if any VG is currently in use (eg. contains a mounted "
13473 "filesystem), even if you are not filtering out that VG."
13477 #: ../fish/guestfish-actions.pod:3076
13482 #: ../fish/guestfish-actions.pod:3078
13485 " lvremove device\n"
13488 " lvremove пристрій\n"
13492 #: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4738
13494 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
13495 "LV, such as C</dev/VG/LV>."
13499 #: ../fish/guestfish-actions.pod:3083 ../src/guestfs-actions.pod:4741
13501 "You can also remove all LVs in a volume group by specifying the VG name, C</"
13506 #: ../fish/guestfish-actions.pod:3086
13511 #: ../fish/guestfish-actions.pod:3088
13514 " lvrename logvol newlogvol\n"
13519 #: ../fish/guestfish-actions.pod:3090 ../src/guestfs-actions.pod:4755
13520 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
13524 #: ../fish/guestfish-actions.pod:3092
13529 #: ../fish/guestfish-actions.pod:3094
13532 " lvresize device mbytes\n"
13537 #: ../fish/guestfish-actions.pod:3096 ../src/guestfs-actions.pod:4768
13539 "This resizes (expands or shrinks) an existing LVM logical volume to "
13540 "C<mbytes>. When reducing, data in the reduced part is lost."
13544 #: ../fish/guestfish-actions.pod:3100
13545 msgid "lvresize-free"
13546 msgstr "lvresize-free"
13549 #: ../fish/guestfish-actions.pod:3102
13552 " lvresize-free lv percent\n"
13557 #: ../fish/guestfish-actions.pod:3104 ../src/guestfs-actions.pod:4783
13559 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
13560 "remaining free space in the volume group. Commonly you would call this with "
13561 "pc = 100 which expands the logical volume as much as possible, using all "
13562 "remaining free space in the volume group."
13566 #: ../fish/guestfish-actions.pod:3110
13571 #: ../fish/guestfish-actions.pod:3112
13581 #: ../fish/guestfish-actions.pod:3114 ../src/guestfs-actions.pod:4798
13583 "List all the logical volumes detected. This is the equivalent of the L<lvs"
13588 #: ../fish/guestfish-actions.pod:3117 ../src/guestfs-actions.pod:4801
13590 "This returns a list of the logical volume device names (eg. C</dev/"
13591 "VolGroup00/LogVol00>)."
13595 #: ../fish/guestfish-actions.pod:3120
13596 msgid "See also L</lvs-full>, L</list-filesystems>."
13597 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
13600 #: ../fish/guestfish-actions.pod:3122
13605 #: ../fish/guestfish-actions.pod:3124
13615 #: ../fish/guestfish-actions.pod:3126 ../src/guestfs-actions.pod:4817
13617 "List all the logical volumes detected. This is the equivalent of the L<lvs"
13618 "(8)> command. The \"full\" version includes all fields."
13622 #: ../fish/guestfish-actions.pod:3129
13627 #: ../fish/guestfish-actions.pod:3131
13633 " lvuuid пристрій\n"
13637 #: ../fish/guestfish-actions.pod:3133 ../src/guestfs-actions.pod:4832
13638 msgid "This command returns the UUID of the LVM LV C<device>."
13642 #: ../fish/guestfish-actions.pod:3135
13644 msgstr "lxattrlist"
13647 #: ../fish/guestfish-actions.pod:3137
13650 " lxattrlist path 'names ...'\n"
13655 #: ../fish/guestfish-actions.pod:3139 ../src/guestfs-actions.pod:4846
13657 "This call allows you to get the extended attributes of multiple files, where "
13658 "all files are in the directory C<path>. C<names> is the list of files from "
13663 #: ../fish/guestfish-actions.pod:3143 ../src/guestfs-actions.pod:4850
13665 "On return you get a flat list of xattr structs which must be interpreted "
13666 "sequentially. The first xattr struct always has a zero-length C<attrname>. "
13667 "C<attrval> in this struct is zero-length to indicate there was an error "
13668 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
13669 "number (the number of following attributes for this file, which could be C<"
13670 "\"0\">). Then after the first xattr struct are the zero or more attributes "
13671 "for the first named file. This repeats for the second and subsequent files."
13675 #: ../fish/guestfish-actions.pod:3153
13677 "This call is intended for programs that want to efficiently list a directory "
13678 "contents without making many round-trips. See also L</lstatlist> for a "
13679 "similarly efficient call for getting standard stats. Very long directory "
13680 "listings might cause the protocol message size to be exceeded, causing this "
13681 "call to fail. The caller must split up such requests into smaller groups of "
13686 #: ../fish/guestfish-actions.pod:3161
13688 #| msgid "lvcreate"
13693 #: ../fish/guestfish-actions.pod:3163
13696 " md-create name 'devices ...' [missingbitmap:N] [nrdevices:N] [spare:N] [chunk:N] [level:..]\n"
13701 #: ../fish/guestfish-actions.pod:3165 ../src/guestfs-actions.pod:4893
13703 "Create a Linux md (RAID) device named C<name> on the devices in the list "
13708 #: ../fish/guestfish-actions.pod:3172 ../src/guestfs-actions.pod:4900
13709 msgid "C<missingbitmap>"
13713 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4902
13715 "A bitmap of missing devices. If a bit is set it means that a missing device "
13716 "is added to the array. The least significant bit corresponds to the first "
13717 "device in the array."
13721 #: ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:4906
13723 #| msgid "For example:"
13724 msgid "As examples:"
13728 #: ../fish/guestfish-actions.pod:3180 ../src/guestfs-actions.pod:4908
13730 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x1> then the resulting "
13731 "array would be C<[E<lt>missingE<gt>, \"/dev/sda\"]>."
13735 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4911
13737 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x2> then the resulting "
13738 "array would be C<[\"/dev/sda\", E<lt>missingE<gt>]>."
13742 #: ../fish/guestfish-actions.pod:3186 ../src/guestfs-actions.pod:4914
13743 msgid "This defaults to C<0> (no missing devices)."
13747 #: ../fish/guestfish-actions.pod:3188 ../src/guestfs-actions.pod:4916
13749 "The length of C<devices> + the number of bits set in C<missingbitmap> must "
13750 "equal C<nrdevices> + C<spare>."
13754 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4919
13757 msgid "C<nrdevices>"
13761 #: ../fish/guestfish-actions.pod:3193 ../src/guestfs-actions.pod:4921
13763 #| msgid "The number of hard links."
13764 msgid "The number of active RAID devices."
13765 msgstr "Кількість жорстких посилань."
13768 #: ../fish/guestfish-actions.pod:3195 ../src/guestfs-actions.pod:4923
13770 "If not set, this defaults to the length of C<devices> plus the number of "
13771 "bits set in C<missingbitmap>."
13775 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4926
13782 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4928
13784 #| msgid "The number of hard links."
13785 msgid "The number of spare devices."
13786 msgstr "Кількість жорстких посилань."
13789 #: ../fish/guestfish-actions.pod:3202 ../src/guestfs-actions.pod:4930
13790 msgid "If not set, this defaults to C<0>."
13794 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4932
13799 #: ../fish/guestfish-actions.pod:3206 ../src/guestfs-actions.pod:4934
13801 #| msgid "The size in SI 1000 byte units."
13802 msgid "The chunk size in bytes."
13803 msgstr "Розмір у одиницях СІ: 1000 байтів."
13806 #: ../fish/guestfish-actions.pod:3208 ../fish/guestfish-actions.pod:3230
13807 #: ../src/guestfs-actions.pod:4936 ../src/guestfs-actions.pod:4984
13812 #: ../fish/guestfish-actions.pod:3210 ../src/guestfs-actions.pod:4938
13814 "The RAID level, which can be one of: I<linear>, I<raid0>, I<0>, I<stripe>, "
13815 "I<raid1>, I<1>, I<mirror>, I<raid4>, I<4>, I<raid5>, I<5>, I<raid6>, I<6>, "
13816 "I<raid10>, I<10>. Some of these are synonymous, and more levels may be "
13821 #: ../fish/guestfish-actions.pod:3215 ../src/guestfs-actions.pod:4943
13822 msgid "If not set, this defaults to C<raid1>."
13826 #: ../fish/guestfish-actions.pod:3221
13833 #: ../fish/guestfish-actions.pod:3223
13841 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4979
13843 "This command exposes the output of 'mdadm -DY <md>'. The following fields "
13844 "are usually present in the returned hash. Other fields may also be present."
13848 #: ../fish/guestfish-actions.pod:3232 ../src/guestfs-actions.pod:4986
13849 msgid "The raid level of the MD device."
13853 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4988
13860 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4990
13861 msgid "The number of underlying devices in the MD device."
13865 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4992
13866 msgid "C<metadata>"
13870 #: ../fish/guestfish-actions.pod:3240 ../src/guestfs-actions.pod:4994
13871 msgid "The metadata version used."
13875 #: ../fish/guestfish-actions.pod:3242 ../src/guestfs-actions.pod:4996
13877 #| msgid "B<--uuid>"
13882 #: ../fish/guestfish-actions.pod:3244 ../src/guestfs-actions.pod:4998
13883 msgid "The UUID of the MD device."
13887 #: ../fish/guestfish-actions.pod:3248 ../src/guestfs-actions.pod:5002
13889 #| msgid "The time of last access."
13890 msgid "The name of the MD device."
13891 msgstr "Час останнього доступу."
13894 #: ../fish/guestfish-actions.pod:3252
13899 #: ../fish/guestfish-actions.pod:3254
13907 #: ../fish/guestfish-actions.pod:3256 ../src/guestfs-actions.pod:5018
13909 "This command deactivates the MD array named C<md>. The device is stopped, "
13910 "but it is not destroyed or zeroed."
13914 #: ../fish/guestfish-actions.pod:3259
13919 #: ../fish/guestfish-actions.pod:3261
13929 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:5029
13930 msgid "Create a directory named C<path>."
13934 #: ../fish/guestfish-actions.pod:3265
13936 msgstr "mkdir-mode"
13939 #: ../fish/guestfish-actions.pod:3267
13942 " mkdir-mode path mode\n"
13945 " mkdir-mode шлях режим\n"
13949 #: ../fish/guestfish-actions.pod:3269 ../src/guestfs-actions.pod:5042
13951 "This command creates a directory, setting the initial permissions of the "
13952 "directory to C<mode>."
13956 #: ../fish/guestfish-actions.pod:3272 ../src/guestfs-actions.pod:5045
13958 "For common Linux filesystems, the actual mode which is set will be C<mode & "
13959 "~umask & 01777>. Non-native-Linux filesystems may interpret the mode in "
13964 #: ../fish/guestfish-actions.pod:3276
13965 msgid "See also L</mkdir>, L</umask>"
13966 msgstr "Див. також L</mkdir>, L</umask>"
13969 #: ../fish/guestfish-actions.pod:3278
13974 #: ../fish/guestfish-actions.pod:3280
13984 #: ../fish/guestfish-actions.pod:3282 ../src/guestfs-actions.pod:5061
13986 "Create a directory named C<path>, creating any parent directories as "
13987 "necessary. This is like the C<mkdir -p> shell command."
13991 #: ../fish/guestfish-actions.pod:3285
13996 #: ../fish/guestfish-actions.pod:3287
13999 " mkdtemp template\n"
14002 " mkdtemp шаблон\n"
14006 #: ../fish/guestfish-actions.pod:3289 ../src/guestfs-actions.pod:5074
14008 "This command creates a temporary directory. The C<template> parameter "
14009 "should be a full pathname for the temporary directory name with the final "
14010 "six characters being \"XXXXXX\"."
14014 #: ../fish/guestfish-actions.pod:3294 ../src/guestfs-actions.pod:5079
14016 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
14017 "being suitable for Windows filesystems."
14021 #: ../fish/guestfish-actions.pod:3297 ../src/guestfs-actions.pod:5082
14022 msgid "The name of the temporary directory that was created is returned."
14026 #: ../fish/guestfish-actions.pod:3300 ../src/guestfs-actions.pod:5085
14027 msgid "The temporary directory is created with mode 0700 and is owned by root."
14031 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5088
14033 "The caller is responsible for deleting the temporary directory and its "
14034 "contents after use."
14038 #: ../fish/guestfish-actions.pod:3306 ../src/guestfs-actions.pod:5091
14039 msgid "See also: L<mkdtemp(3)>"
14040 msgstr "Див. також L<mkdtemp(3)>"
14043 #: ../fish/guestfish-actions.pod:3308
14048 #: ../fish/guestfish-actions.pod:3310
14051 " mke2fs-J fstype blocksize device journal\n"
14056 #: ../fish/guestfish-actions.pod:3312 ../src/guestfs-actions.pod:5107
14058 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14059 "C<journal>. It is equivalent to the command:"
14063 #: ../fish/guestfish-actions.pod:3316 ../src/guestfs-actions.pod:5111
14066 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
14069 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
14073 #: ../fish/guestfish-actions.pod:3318
14074 msgid "See also L</mke2journal>."
14075 msgstr "Див. також L</mke2journal>."
14078 #: ../fish/guestfish-actions.pod:3320
14083 #: ../fish/guestfish-actions.pod:3322
14086 " mke2fs-JL fstype blocksize device label\n"
14091 #: ../fish/guestfish-actions.pod:3324 ../src/guestfs-actions.pod:5128
14093 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14094 "the journal labeled C<label>."
14098 #: ../fish/guestfish-actions.pod:3327
14099 msgid "See also L</mke2journal-L>."
14100 msgstr "Див. також L</mke2journal-L>."
14103 #: ../fish/guestfish-actions.pod:3329
14108 #: ../fish/guestfish-actions.pod:3331
14111 " mke2fs-JU fstype blocksize device uuid\n"
14116 #: ../fish/guestfish-actions.pod:3333 ../src/guestfs-actions.pod:5146
14118 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14119 "the journal with UUID C<uuid>."
14123 #: ../fish/guestfish-actions.pod:3336
14124 msgid "See also L</mke2journal-U>."
14125 msgstr "Див. також L</mke2journal-U>."
14128 #: ../fish/guestfish-actions.pod:3338
14129 msgid "mke2journal"
14130 msgstr "mke2journal"
14133 #: ../fish/guestfish-actions.pod:3340
14136 " mke2journal blocksize device\n"
14141 #: ../fish/guestfish-actions.pod:3342 ../src/guestfs-actions.pod:5162
14143 "This creates an ext2 external journal on C<device>. It is equivalent to the "
14148 #: ../fish/guestfish-actions.pod:3345 ../src/guestfs-actions.pod:5165
14151 " mke2fs -O journal_dev -b blocksize device\n"
14156 #: ../fish/guestfish-actions.pod:3347
14157 msgid "mke2journal-L"
14158 msgstr "mke2journal-L"
14161 #: ../fish/guestfish-actions.pod:3349
14164 " mke2journal-L blocksize label device\n"
14169 #: ../fish/guestfish-actions.pod:3351 ../src/guestfs-actions.pod:5179
14170 msgid "This creates an ext2 external journal on C<device> with label C<label>."
14174 #: ../fish/guestfish-actions.pod:3353
14175 msgid "mke2journal-U"
14176 msgstr "mke2journal-U"
14179 #: ../fish/guestfish-actions.pod:3355
14182 " mke2journal-U blocksize uuid device\n"
14187 #: ../fish/guestfish-actions.pod:3357 ../src/guestfs-actions.pod:5193
14188 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
14192 #: ../fish/guestfish-actions.pod:3359
14197 #: ../fish/guestfish-actions.pod:3361
14200 " mkfifo mode path\n"
14203 " mkfifo режим шлях\n"
14207 #: ../fish/guestfish-actions.pod:3363
14209 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
14210 "is just a convenient wrapper around L</mknod>."
14214 #: ../fish/guestfish-actions.pod:3369
14219 #: ../fish/guestfish-actions.pod:3371
14222 " mkfs fstype device\n"
14225 " mkfs тип_файлової_системи пристрій\n"
14229 #: ../fish/guestfish-actions.pod:3373 ../src/guestfs-actions.pod:5223
14231 "This creates a filesystem on C<device> (usually a partition or LVM logical "
14232 "volume). The filesystem type is C<fstype>, for example C<ext3>."
14236 #: ../fish/guestfish-actions.pod:3377
14241 #: ../fish/guestfish-actions.pod:3379
14244 " mkfs-b fstype blocksize device\n"
14249 #: ../fish/guestfish-actions.pod:3381
14251 "This call is similar to L</mkfs>, but it allows you to control the block "
14252 "size of the resulting filesystem. Supported block sizes depend on the "
14253 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
14257 #: ../fish/guestfish-actions.pod:3386 ../fish/guestfish-actions.pod:3413
14258 #: ../src/guestfs-actions.pod:5251 ../src/guestfs-actions.pod:5289
14260 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
14265 #: ../fish/guestfish-actions.pod:3389
14267 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
14272 #: ../fish/guestfish-actions.pod:3396
14277 #: ../fish/guestfish-actions.pod:3398
14280 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] [sectorsize:N]\n"
14285 #: ../fish/guestfish-actions.pod:3400 ../src/guestfs-actions.pod:5276
14287 "This function creates a filesystem on C<device>. The filesystem type is "
14288 "C<fstype>, for example C<ext3>."
14292 #: ../fish/guestfish-actions.pod:3407 ../src/guestfs-actions.pod:5283
14293 msgid "C<blocksize>"
14294 msgstr "C<blocksize>"
14297 #: ../fish/guestfish-actions.pod:3409 ../src/guestfs-actions.pod:5285
14299 "The filesystem block size. Supported block sizes depend on the filesystem "
14300 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
14305 #: ../fish/guestfish-actions.pod:3416 ../src/guestfs-actions.pod:5292
14306 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
14310 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5294
14311 msgid "C<features>"
14312 msgstr "C<features>"
14315 #: ../fish/guestfish-actions.pod:3420 ../src/guestfs-actions.pod:5296
14316 msgid "This passes the I<-O> parameter to the external mkfs program."
14320 #: ../fish/guestfish-actions.pod:3422 ../src/guestfs-actions.pod:5298
14322 "For certain filesystem types, this allows extra filesystem features to be "
14323 "selected. See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
14327 #: ../fish/guestfish-actions.pod:3426 ../src/guestfs-actions.pod:5302
14329 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
14334 #: ../fish/guestfish-actions.pod:3429 ../src/guestfs-actions.pod:5305
14339 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5307
14341 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
14342 "sets the inode size (only for ext2/3/4 filesystems at present)."
14346 #: ../fish/guestfish-actions.pod:3434 ../src/guestfs-actions.pod:5310
14347 msgid "C<sectorsize>"
14348 msgstr "C<sectorsize>"
14351 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5312
14353 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
14354 "sets sector size for ufs filesystem."
14358 #: ../fish/guestfish-actions.pod:3443
14359 msgid "mkmountpoint"
14360 msgstr "mkmountpoint"
14363 #: ../fish/guestfish-actions.pod:3445
14366 " mkmountpoint exemptpath\n"
14371 #: ../fish/guestfish-actions.pod:3447
14373 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
14374 "to create extra mountpoints before mounting the first filesystem."
14378 #: ../fish/guestfish-actions.pod:3451 ../src/guestfs-actions.pod:5355
14380 "These calls are I<only> necessary in some very limited circumstances, mainly "
14381 "the case where you want to mount a mix of unrelated and/or read-only "
14382 "filesystems together."
14386 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5359
14388 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
14389 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
14390 "inside that. You can unpack this as follows in guestfish:"
14394 #: ../fish/guestfish-actions.pod:3460 ../src/guestfs-actions.pod:5364
14397 " add-ro Fedora-11-i686-Live.iso\n"
14399 " mkmountpoint /cd\n"
14400 " mkmountpoint /sqsh\n"
14401 " mkmountpoint /ext3fs\n"
14402 " mount /dev/sda /cd\n"
14403 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14404 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14407 " add-ro Fedora-11-i686-Live.iso\n"
14409 " mkmountpoint /cd\n"
14410 " mkmountpoint /sqsh\n"
14411 " mkmountpoint /ext3fs\n"
14412 " mount /dev/sda /cd\n"
14413 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14414 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14418 #: ../fish/guestfish-actions.pod:3469 ../src/guestfs-actions.pod:5373
14419 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
14423 #: ../fish/guestfish-actions.pod:3471
14425 "L</mkmountpoint> is not compatible with L</umount-all>. You may get "
14426 "unexpected errors if you try to mix these calls. It is safest to manually "
14427 "unmount filesystems and remove mountpoints after use."
14431 #: ../fish/guestfish-actions.pod:3475
14433 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
14434 "for this to work for manual mountpoints, you must ensure that the innermost "
14435 "mountpoints have the longest pathnames, as in the example code above."
14439 #: ../fish/guestfish-actions.pod:3480 ../src/guestfs-actions.pod:5384
14441 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
14445 #: ../fish/guestfish-actions.pod:3482
14447 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
14448 "L</umount-all> to be called when the handle is closed which can also trigger "
14453 #: ../fish/guestfish-actions.pod:3486
14458 #: ../fish/guestfish-actions.pod:3488
14461 " mknod mode devmajor devminor path\n"
14466 #: ../fish/guestfish-actions.pod:3490 ../src/guestfs-actions.pod:5403
14468 "This call creates block or character special devices, or named pipes (FIFOs)."
14472 #: ../fish/guestfish-actions.pod:3493 ../src/guestfs-actions.pod:5406
14474 "The C<mode> parameter should be the mode, using the standard constants. "
14475 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
14476 "used when creating block and character special devices."
14480 #: ../fish/guestfish-actions.pod:3498
14482 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
14483 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
14484 "regular file). These constants are available in the standard Linux header "
14485 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
14486 "wrappers around this command which bitwise OR in the appropriate constant "
14491 #: ../fish/guestfish-actions.pod:3508
14496 #: ../fish/guestfish-actions.pod:3510
14499 " mknod-b mode devmajor devminor path\n"
14504 #: ../fish/guestfish-actions.pod:3512
14506 "This call creates a block device node called C<path> with mode C<mode> and "
14507 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
14508 "wrapper around L</mknod>."
14512 #: ../fish/guestfish-actions.pod:3518
14517 #: ../fish/guestfish-actions.pod:3520
14520 " mknod-c mode devmajor devminor path\n"
14525 #: ../fish/guestfish-actions.pod:3522
14527 "This call creates a char device node called C<path> with mode C<mode> and "
14528 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
14529 "wrapper around L</mknod>."
14533 #: ../fish/guestfish-actions.pod:3528
14538 #: ../fish/guestfish-actions.pod:3530
14544 " mkswap пристрій\n"
14548 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5469
14549 msgid "Create a swap partition on C<device>."
14553 #: ../fish/guestfish-actions.pod:3534
14558 #: ../fish/guestfish-actions.pod:3536
14561 " mkswap-L label device\n"
14564 " mkswap-L мітка пристрій\n"
14568 #: ../fish/guestfish-actions.pod:3538 ../src/guestfs-actions.pod:5482
14569 msgid "Create a swap partition on C<device> with label C<label>."
14573 #: ../fish/guestfish-actions.pod:3540 ../src/guestfs-actions.pod:5484
14575 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
14576 "sda>), just to a partition. This appears to be a limitation of the kernel "
14581 #: ../fish/guestfish-actions.pod:3544
14586 #: ../fish/guestfish-actions.pod:3546
14589 " mkswap-U uuid device\n"
14592 " mkswap-U uuid пристрій\n"
14596 #: ../fish/guestfish-actions.pod:3548 ../src/guestfs-actions.pod:5499
14597 msgid "Create a swap partition on C<device> with UUID C<uuid>."
14601 #: ../fish/guestfish-actions.pod:3550
14602 msgid "mkswap-file"
14603 msgstr "mkswap-file"
14606 #: ../fish/guestfish-actions.pod:3552
14609 " mkswap-file path\n"
14612 " mkswap-file шлях\n"
14616 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5511
14617 msgid "Create a swap file."
14618 msgstr "Створити файл резервної пам’яті."
14621 #: ../fish/guestfish-actions.pod:3556
14623 "This command just writes a swap file signature to an existing file. To "
14624 "create the file itself, use something like L</fallocate>."
14628 #: ../fish/guestfish-actions.pod:3559
14633 #: ../fish/guestfish-actions.pod:3561
14636 " modprobe modulename\n"
14639 " modprobe назва_модуля\n"
14643 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5526
14644 msgid "This loads a kernel module in the appliance."
14648 #: ../fish/guestfish-actions.pod:3565 ../src/guestfs-actions.pod:5528
14650 "The kernel module must have been whitelisted when libguestfs was built (see "
14651 "C<appliance/kmod.whitelist.in> in the source)."
14655 #: ../fish/guestfish-actions.pod:3568
14660 #: ../fish/guestfish-actions.pod:3570
14663 " mount device mountpoint\n"
14666 " mount пристрій точка_монтування\n"
14670 #: ../fish/guestfish-actions.pod:3572 ../src/guestfs-actions.pod:5542
14672 "Mount a guest disk at a position in the filesystem. Block devices are named "
14673 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
14674 "those block devices contain partitions, they will have the usual names (eg. "
14675 "C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used."
14679 #: ../fish/guestfish-actions.pod:3578 ../src/guestfs-actions.pod:5548
14681 "The rules are the same as for L<mount(2)>: A filesystem must first be "
14682 "mounted on C</> before others can be mounted. Other filesystems can only be "
14683 "mounted on directories which already exist."
14687 #: ../fish/guestfish-actions.pod:3583 ../src/guestfs-actions.pod:5553
14689 "The mounted filesystem is writable, if we have sufficient permissions on the "
14690 "underlying device."
14694 #: ../fish/guestfish-actions.pod:3586
14696 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
14697 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
14698 "problems for users. If your program might need to work with older versions "
14699 "of libguestfs, use L</mount-options> instead (using an empty string for the "
14700 "first parameter if you don't want any options)."
14704 #: ../fish/guestfish-actions.pod:3593
14709 #: ../fish/guestfish-actions.pod:3595
14712 " mount-9p mounttag mountpoint [options:..]\n"
14717 #: ../fish/guestfish-actions.pod:3597 ../src/guestfs-actions.pod:5582
14719 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
14724 #: ../fish/guestfish-actions.pod:3600 ../src/guestfs-actions.pod:5585
14726 "If required, C<trans=virtio> will be automatically added to the options. "
14727 "Any other options required can be passed in the optional C<options> "
14732 #: ../fish/guestfish-actions.pod:3606
14734 msgstr "mount-loop"
14737 #: ../fish/guestfish-actions.pod:3608
14740 " mount-loop file mountpoint\n"
14745 #: ../fish/guestfish-actions.pod:3610 ../src/guestfs-actions.pod:5624
14747 "This command lets you mount C<file> (a filesystem image in a file) on a "
14748 "mount point. It is entirely equivalent to the command C<mount -o loop file "
14753 #: ../fish/guestfish-actions.pod:3614
14754 msgid "mount-options"
14755 msgstr "mount-options"
14758 #: ../fish/guestfish-actions.pod:3616
14761 " mount-options options device mountpoint\n"
14766 #: ../fish/guestfish-actions.pod:3618
14768 "This is the same as the L</mount> command, but it allows you to set the "
14769 "mount options as for the L<mount(8)> I<-o> flag."
14773 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5644
14775 "If the C<options> parameter is an empty string, then no options are passed "
14776 "(all options default to whatever the filesystem uses)."
14780 #: ../fish/guestfish-actions.pod:3626
14785 #: ../fish/guestfish-actions.pod:3628
14788 " mount-ro device mountpoint\n"
14791 " mount-ro пристрій точка_монтування\n"
14795 #: ../fish/guestfish-actions.pod:3630
14797 "This is the same as the L</mount> command, but it mounts the filesystem with "
14798 "the read-only (I<-o ro>) flag."
14802 #: ../fish/guestfish-actions.pod:3633
14807 #: ../fish/guestfish-actions.pod:3635
14810 " mount-vfs options vfstype device mountpoint\n"
14815 #: ../fish/guestfish-actions.pod:3637
14817 "This is the same as the L</mount> command, but it allows you to set both the "
14818 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
14822 #: ../fish/guestfish-actions.pod:3641
14823 msgid "mountpoints"
14824 msgstr "mountpoints"
14827 #: ../fish/guestfish-actions.pod:3643
14837 #: ../fish/guestfish-actions.pod:3645
14839 "This call is similar to L</mounts>. That call returns a list of devices. "
14840 "This one returns a hash table (map) of device name to directory where the "
14841 "device is mounted."
14845 #: ../fish/guestfish-actions.pod:3649
14850 #: ../fish/guestfish-actions.pod:3651
14860 #: ../fish/guestfish-actions.pod:3653 ../src/guestfs-actions.pod:5705
14862 "This returns the list of currently mounted filesystems. It returns the list "
14863 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
14867 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5708
14868 msgid "Some internal mounts are not shown."
14872 #: ../fish/guestfish-actions.pod:3658
14873 msgid "See also: L</mountpoints>"
14874 msgstr "Див. також L</mountpoints>"
14877 #: ../fish/guestfish-actions.pod:3660
14882 #: ../fish/guestfish-actions.pod:3662
14888 " mv джерело призначення\n"
14892 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5725
14894 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14895 "destination filename or destination directory."
14899 #: ../fish/guestfish-actions.pod:3667
14900 msgid "ntfs-3g-probe"
14901 msgstr "ntfs-3g-probe"
14904 #: ../fish/guestfish-actions.pod:3669
14907 " ntfs-3g-probe true|false device\n"
14912 #: ../fish/guestfish-actions.pod:3671 ../src/guestfs-actions.pod:5739
14914 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14915 "C<device> for mountability. (Not all NTFS volumes can be mounted read-"
14916 "write, and some cannot be mounted at all)."
14920 #: ../fish/guestfish-actions.pod:3675 ../src/guestfs-actions.pod:5743
14922 "C<rw> is a boolean flag. Set it to true if you want to test if the volume "
14923 "can be mounted read-write. Set it to false if you want to test if the "
14924 "volume can be mounted read-only."
14928 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5747
14930 "The return value is an integer which C<0> if the operation would succeed, or "
14931 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
14935 #: ../fish/guestfish-actions.pod:3683
14937 msgstr "ntfsresize"
14940 #: ../fish/guestfish-actions.pod:3685
14943 " ntfsresize device\n"
14946 " ntfsresize пристрій\n"
14950 #: ../fish/guestfish-actions.pod:3687 ../fish/guestfish-actions.pod:3711
14951 #: ../src/guestfs-actions.pod:5768 ../src/guestfs-actions.pod:5800
14953 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
14954 "size of the underlying device."
14958 #: ../fish/guestfish-actions.pod:3690 ../src/guestfs-actions.pod:5771
14960 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
14961 "consistency check (for safety). You have to boot into Windows to perform "
14962 "this check and clear this condition. Furthermore, ntfsresize refuses to "
14963 "resize filesystems which have been marked in this way. So in effect it is "
14964 "not possible to call ntfsresize multiple times on a single filesystem "
14965 "without booting into Windows between each resize."
14969 #: ../fish/guestfish-actions.pod:3698 ../fish/guestfish-actions.pod:3737
14970 #: ../src/guestfs-actions.pod:5779 ../src/guestfs-actions.pod:5826
14971 msgid "See also L<ntfsresize(8)>."
14972 msgstr "Див. також L<ntfsresize(8)>."
14975 #: ../fish/guestfish-actions.pod:3700 ../fish/guestfish-actions.pod:3748
14977 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
14982 #: ../fish/guestfish-actions.pod:3707
14983 msgid "ntfsresize-opts"
14987 #: ../fish/guestfish-actions.pod:3709
14990 " ntfsresize-opts device [size:N] [force:true|false]\n"
14995 #: ../fish/guestfish-actions.pod:3720 ../src/guestfs-actions.pod:5809
14997 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
14998 "resized to fit the container (eg. partition)."
15002 #: ../fish/guestfish-actions.pod:3723 ../fish/guestfish-actions.pod:5044
15003 #: ../src/guestfs-actions.pod:5812 ../src/guestfs-actions.pod:7783
15008 #: ../fish/guestfish-actions.pod:3725 ../src/guestfs-actions.pod:5814
15010 "If this option is true, then force the resize of the filesystem even if the "
15011 "filesystem is marked as requiring a consistency check."
15015 #: ../fish/guestfish-actions.pod:3728
15017 "After the resize operation, the filesystem is always marked as requiring a "
15018 "consistency check (for safety). You have to boot into Windows to perform "
15019 "this check and clear this condition. If you I<don't> set the C<force> "
15020 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
15021 "a single filesystem without booting into Windows between each resize."
15025 #: ../fish/guestfish-actions.pod:3741
15026 msgid "ntfsresize-size"
15027 msgstr "ntfsresize-size"
15030 #: ../fish/guestfish-actions.pod:3743
15033 " ntfsresize-size device size\n"
15038 #: ../fish/guestfish-actions.pod:3745
15040 "This command is the same as L</ntfsresize> except that it allows you to "
15041 "specify the new size (in bytes) explicitly."
15045 #: ../fish/guestfish-actions.pod:3755
15050 #: ../fish/guestfish-actions.pod:3757
15053 " part-add device prlogex startsect endsect\n"
15058 #: ../fish/guestfish-actions.pod:3759
15060 "This command adds a partition to C<device>. If there is no partition table "
15061 "on the device, call L</part-init> first."
15065 #: ../fish/guestfish-actions.pod:3762 ../src/guestfs-actions.pod:5887
15067 "The C<prlogex> parameter is the type of partition. Normally you should pass "
15068 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
15069 "C<logical>) and C<e> (or C<extended>) partition types."
15073 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5892
15075 "C<startsect> and C<endsect> are the start and end of the partition in "
15076 "I<sectors>. C<endsect> may be negative, which means it counts backwards "
15077 "from the end of the disk (C<-1> is the last sector)."
15081 #: ../fish/guestfish-actions.pod:3771
15083 "Creating a partition which covers the whole disk is not so easy. Use L</"
15084 "part-disk> to do that."
15088 #: ../fish/guestfish-actions.pod:3774
15093 #: ../fish/guestfish-actions.pod:3776
15096 " part-del device partnum\n"
15101 #: ../fish/guestfish-actions.pod:3778 ../src/guestfs-actions.pod:5910
15102 msgid "This command deletes the partition numbered C<partnum> on C<device>."
15106 #: ../fish/guestfish-actions.pod:3780 ../src/guestfs-actions.pod:5912
15108 "Note that in the case of MBR partitioning, deleting an extended partition "
15109 "also deletes any logical partitions it contains."
15113 #: ../fish/guestfish-actions.pod:3784
15118 #: ../fish/guestfish-actions.pod:3786
15121 " part-disk device parttype\n"
15124 " part-disk пристрій тип_розділу\n"
15128 #: ../fish/guestfish-actions.pod:3788
15130 "This command is simply a combination of L</part-init> followed by L</part-"
15131 "add> to create a single primary partition covering the whole disk."
15135 #: ../fish/guestfish-actions.pod:3792
15137 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
15138 "possible values are described in L</part-init>."
15142 #: ../fish/guestfish-actions.pod:3795
15143 msgid "part-get-bootable"
15144 msgstr "part-get-bootable"
15147 #: ../fish/guestfish-actions.pod:3797
15150 " part-get-bootable device partnum\n"
15155 #: ../fish/guestfish-actions.pod:3799 ../src/guestfs-actions.pod:5945
15157 "This command returns true if the partition C<partnum> on C<device> has the "
15158 "bootable flag set."
15162 #: ../fish/guestfish-actions.pod:3802
15163 msgid "See also L</part-set-bootable>."
15164 msgstr "Див. також L</part-set-bootable>."
15167 #: ../fish/guestfish-actions.pod:3804
15168 msgid "part-get-mbr-id"
15169 msgstr "part-get-mbr-id"
15172 #: ../fish/guestfish-actions.pod:3806
15175 " part-get-mbr-id device partnum\n"
15180 #: ../fish/guestfish-actions.pod:3808 ../src/guestfs-actions.pod:5961
15182 "Returns the MBR type byte (also known as the ID byte) from the numbered "
15183 "partition C<partnum>."
15187 #: ../fish/guestfish-actions.pod:3811 ../fish/guestfish-actions.pod:3955
15189 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
15190 "undefined results for other partition table types (see L</part-get-"
15195 #: ../fish/guestfish-actions.pod:3815
15196 msgid "part-get-parttype"
15197 msgstr "part-get-parttype"
15200 #: ../fish/guestfish-actions.pod:3817
15203 " part-get-parttype device\n"
15206 " part-get-parttype пристрій\n"
15210 #: ../fish/guestfish-actions.pod:3819 ../src/guestfs-actions.pod:5978
15212 "This command examines the partition table on C<device> and returns the "
15213 "partition table type (format) being used."
15217 #: ../fish/guestfish-actions.pod:3822
15219 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
15220 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
15221 "possible, although unusual. See L</part-init> for a full list."
15225 #: ../fish/guestfish-actions.pod:3827
15230 #: ../fish/guestfish-actions.pod:3829
15233 " part-init device parttype\n"
15238 #: ../fish/guestfish-actions.pod:3831 ../src/guestfs-actions.pod:5998
15240 "This creates an empty partition table on C<device> of one of the partition "
15241 "types listed below. Usually C<parttype> should be either C<msdos> or C<gpt> "
15242 "(for large disks)."
15246 #: ../fish/guestfish-actions.pod:3835
15248 "Initially there are no partitions. Following this, you should call L</part-"
15249 "add> for each partition required."
15253 #: ../fish/guestfish-actions.pod:3838 ../src/guestfs-actions.pod:6005
15254 msgid "Possible values for C<parttype> are:"
15258 #: ../fish/guestfish-actions.pod:3842 ../src/guestfs-actions.pod:6009
15263 #: ../fish/guestfish-actions.pod:3844 ../src/guestfs-actions.pod:6011
15268 #: ../fish/guestfish-actions.pod:3846 ../src/guestfs-actions.pod:6013
15269 msgid "Intel EFI / GPT partition table."
15273 #: ../fish/guestfish-actions.pod:3848 ../src/guestfs-actions.pod:6015
15275 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
15276 "and Intel-based Mac OS X. It also has limited backwards compatibility with "
15277 "the C<mbr> format."
15281 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:6019
15286 #: ../fish/guestfish-actions.pod:3854 ../src/guestfs-actions.pod:6021
15291 #: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:6023
15293 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
15294 "Windows. This partition type will B<only> work for device sizes up to 2 "
15295 "TB. For large disks we recommend using C<gpt>."
15299 #: ../fish/guestfish-actions.pod:3863 ../src/guestfs-actions.pod:6030
15301 "Other partition table types that may work but are not supported include:"
15305 #: ../fish/guestfish-actions.pod:3868 ../src/guestfs-actions.pod:6035
15310 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:6037
15311 msgid "AIX disk labels."
15312 msgstr "Мітки дисків AIX."
15315 #: ../fish/guestfish-actions.pod:3872 ../src/guestfs-actions.pod:6039
15320 #: ../fish/guestfish-actions.pod:3874 ../src/guestfs-actions.pod:6041
15325 #: ../fish/guestfish-actions.pod:3876 ../src/guestfs-actions.pod:6043
15326 msgid "Amiga \"Rigid Disk Block\" format."
15327 msgstr "Формат \"Rigid Disk Block\" Amiga."
15330 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:6045
15335 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:6047
15336 msgid "BSD disk labels."
15337 msgstr "Мітки дисків BSD."
15340 #: ../fish/guestfish-actions.pod:3882 ../src/guestfs-actions.pod:6049
15345 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:6051
15346 msgid "DASD, used on IBM mainframes."
15347 msgstr "DASD, використовувалися у мейнфреймах IBM."
15350 #: ../fish/guestfish-actions.pod:3886 ../src/guestfs-actions.pod:6053
15355 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:6055
15356 msgid "MIPS/SGI volumes."
15357 msgstr "Томи MIPS/SGI."
15360 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:6057
15365 #: ../fish/guestfish-actions.pod:3892 ../src/guestfs-actions.pod:6059
15366 msgid "Old Mac partition format. Modern Macs use C<gpt>."
15367 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
15370 #: ../fish/guestfish-actions.pod:3894 ../src/guestfs-actions.pod:6061
15375 #: ../fish/guestfish-actions.pod:3896 ../src/guestfs-actions.pod:6063
15376 msgid "NEC PC-98 format, common in Japan apparently."
15377 msgstr "Формат NEC PC-98, поширений у Японії."
15380 #: ../fish/guestfish-actions.pod:3898 ../src/guestfs-actions.pod:6065
15385 #: ../fish/guestfish-actions.pod:3900 ../src/guestfs-actions.pod:6067
15386 msgid "Sun disk labels."
15387 msgstr "Мітки дисків Sun."
15390 #: ../fish/guestfish-actions.pod:3904
15395 #: ../fish/guestfish-actions.pod:3906
15398 " part-list device\n"
15401 " part-list device\n"
15405 #: ../fish/guestfish-actions.pod:3908 ../src/guestfs-actions.pod:6081
15407 "This command parses the partition table on C<device> and returns the list of "
15408 "partitions found."
15412 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:6084
15413 msgid "The fields in the returned structure are:"
15417 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:6088
15418 msgid "B<part_num>"
15419 msgstr "B<part_num>"
15422 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:6090
15423 msgid "Partition number, counting from 1."
15427 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6092
15428 msgid "B<part_start>"
15429 msgstr "B<part_start>"
15432 #: ../fish/guestfish-actions.pod:3921
15434 "Start of the partition I<in bytes>. To get sectors you have to divide by "
15435 "the device's sector size, see L</blockdev-getss>."
15439 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:6097
15440 msgid "B<part_end>"
15441 msgstr "B<part_end>"
15444 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6099
15445 msgid "End of the partition in bytes."
15449 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6101
15450 msgid "B<part_size>"
15451 msgstr "B<part_size>"
15454 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6103
15455 msgid "Size of the partition in bytes."
15459 #: ../fish/guestfish-actions.pod:3934
15460 msgid "part-set-bootable"
15461 msgstr "part-set-bootable"
15464 #: ../fish/guestfish-actions.pod:3936
15467 " part-set-bootable device partnum true|false\n"
15472 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6121
15474 "This sets the bootable flag on partition numbered C<partnum> on device "
15475 "C<device>. Note that partitions are numbered from 1."
15479 #: ../fish/guestfish-actions.pod:3941 ../src/guestfs-actions.pod:6124
15481 "The bootable flag is used by some operating systems (notably Windows) to "
15482 "determine which partition to boot from. It is by no means universally "
15487 #: ../fish/guestfish-actions.pod:3945
15488 msgid "part-set-mbr-id"
15489 msgstr "part-set-mbr-id"
15492 #: ../fish/guestfish-actions.pod:3947
15495 " part-set-mbr-id device partnum idbyte\n"
15500 #: ../fish/guestfish-actions.pod:3949 ../src/guestfs-actions.pod:6140
15502 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
15503 "C<partnum> to C<idbyte>. Note that the type bytes quoted in most "
15504 "documentation are in fact hexadecimal numbers, but usually documented "
15505 "without any leading \"0x\" which might be confusing."
15509 #: ../fish/guestfish-actions.pod:3959
15510 msgid "part-set-name"
15511 msgstr "part-set-name"
15514 #: ../fish/guestfish-actions.pod:3961
15517 " part-set-name device partnum name\n"
15522 #: ../fish/guestfish-actions.pod:3963 ../src/guestfs-actions.pod:6162
15524 "This sets the partition name on partition numbered C<partnum> on device "
15525 "C<device>. Note that partitions are numbered from 1."
15529 #: ../fish/guestfish-actions.pod:3966 ../src/guestfs-actions.pod:6165
15531 "The partition name can only be set on certain types of partition table. "
15532 "This works on C<gpt> but not on C<mbr> partitions."
15536 #: ../fish/guestfish-actions.pod:3969
15537 msgid "part-to-dev"
15538 msgstr "part-to-dev"
15541 #: ../fish/guestfish-actions.pod:3971
15544 " part-to-dev partition\n"
15547 " part-to-dev розділ\n"
15551 #: ../fish/guestfish-actions.pod:3973 ../src/guestfs-actions.pod:6178
15553 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
15554 "partition number, returning the device name (eg. \"/dev/sdb\")."
15558 #: ../fish/guestfish-actions.pod:3977 ../fish/guestfish-actions.pod:3989
15560 "The named partition must exist, for example as a string returned from L</"
15561 "list-partitions>."
15565 #: ../fish/guestfish-actions.pod:3980
15566 msgid "See also L</part-to-partnum>."
15570 #: ../fish/guestfish-actions.pod:3982
15571 msgid "part-to-partnum"
15575 #: ../fish/guestfish-actions.pod:3984
15578 " part-to-partnum partition\n"
15583 #: ../fish/guestfish-actions.pod:3986 ../src/guestfs-actions.pod:6198
15585 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
15586 "partition number (eg. C<1>)."
15590 #: ../fish/guestfish-actions.pod:3992
15591 msgid "See also L</part-to-dev>."
15595 #: ../fish/guestfish-actions.pod:3994
15596 msgid "ping-daemon"
15597 msgstr "ping-daemon"
15600 #: ../fish/guestfish-actions.pod:3996
15610 #: ../fish/guestfish-actions.pod:3998 ../src/guestfs-actions.pod:6215
15612 "This is a test probe into the guestfs daemon running inside the qemu "
15613 "subprocess. Calling this function checks that the daemon responds to the "
15614 "ping message, without affecting the daemon or attached block device(s) in "
15619 #: ../fish/guestfish-actions.pod:4003
15624 #: ../fish/guestfish-actions.pod:4005
15627 " pread path count offset\n"
15632 #: ../fish/guestfish-actions.pod:4007 ../src/guestfs-actions.pod:6233
15634 "This command lets you read part of a file. It reads C<count> bytes of the "
15635 "file, starting at C<offset>, from file C<path>."
15639 #: ../fish/guestfish-actions.pod:4010 ../fish/guestfish-actions.pod:4025
15640 #: ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6262
15642 "This may read fewer bytes than requested. For further details see the "
15643 "L<pread(2)> system call."
15647 #: ../fish/guestfish-actions.pod:4013
15648 msgid "See also L</pwrite>, L</pread-device>."
15649 msgstr "Див. також L</pwrite>, L</pread-device>."
15652 #: ../fish/guestfish-actions.pod:4018
15653 msgid "pread-device"
15654 msgstr "pread-device"
15657 #: ../fish/guestfish-actions.pod:4020
15660 " pread-device device count offset\n"
15665 #: ../fish/guestfish-actions.pod:4022 ../src/guestfs-actions.pod:6259
15667 "This command lets you read part of a file. It reads C<count> bytes of "
15668 "C<device>, starting at C<offset>."
15672 #: ../fish/guestfish-actions.pod:4028
15673 msgid "See also L</pread>."
15674 msgstr "Див. також L</pread>."
15677 #: ../fish/guestfish-actions.pod:4033
15682 #: ../fish/guestfish-actions.pod:4035
15685 " pvcreate device\n"
15688 " pvcreate пристрій\n"
15692 #: ../fish/guestfish-actions.pod:4037 ../src/guestfs-actions.pod:6282
15694 "This creates an LVM physical volume on the named C<device>, where C<device> "
15695 "should usually be a partition name such as C</dev/sda1>."
15699 #: ../fish/guestfish-actions.pod:4041
15704 #: ../fish/guestfish-actions.pod:4043
15707 " pvremove device\n"
15710 " pvremove пристрій\n"
15714 #: ../fish/guestfish-actions.pod:4045 ../src/guestfs-actions.pod:6296
15716 "This wipes a physical volume C<device> so that LVM will no longer recognise "
15721 #: ../fish/guestfish-actions.pod:4048 ../src/guestfs-actions.pod:6299
15723 "The implementation uses the C<pvremove> command which refuses to wipe "
15724 "physical volumes that contain any volume groups, so you have to remove those "
15729 #: ../fish/guestfish-actions.pod:4052
15734 #: ../fish/guestfish-actions.pod:4054
15737 " pvresize device\n"
15740 " pvresize пристрій\n"
15744 #: ../fish/guestfish-actions.pod:4056 ../src/guestfs-actions.pod:6313
15746 "This resizes (expands or shrinks) an existing LVM physical volume to match "
15747 "the new size of the underlying device."
15751 #: ../fish/guestfish-actions.pod:4059
15752 msgid "pvresize-size"
15753 msgstr "pvresize-size"
15756 #: ../fish/guestfish-actions.pod:4061
15759 " pvresize-size device size\n"
15764 #: ../fish/guestfish-actions.pod:4063
15766 "This command is the same as L</pvresize> except that it allows you to "
15767 "specify the new size (in bytes) explicitly."
15771 #: ../fish/guestfish-actions.pod:4066
15776 #: ../fish/guestfish-actions.pod:4068
15786 #: ../fish/guestfish-actions.pod:4070 ../src/guestfs-actions.pod:6339
15788 "List all the physical volumes detected. This is the equivalent of the L<pvs"
15793 #: ../fish/guestfish-actions.pod:4073 ../src/guestfs-actions.pod:6342
15795 "This returns a list of just the device names that contain PVs (eg. C</dev/"
15800 #: ../fish/guestfish-actions.pod:4076
15801 msgid "See also L</pvs-full>."
15802 msgstr "Див. також L</pvs-full>."
15805 #: ../fish/guestfish-actions.pod:4078
15810 #: ../fish/guestfish-actions.pod:4080
15820 #: ../fish/guestfish-actions.pod:4082 ../src/guestfs-actions.pod:6358
15822 "List all the physical volumes detected. This is the equivalent of the L<pvs"
15823 "(8)> command. The \"full\" version includes all fields."
15827 #: ../fish/guestfish-actions.pod:4085
15832 #: ../fish/guestfish-actions.pod:4087
15838 " pvuuid пристрій\n"
15842 #: ../fish/guestfish-actions.pod:4089 ../src/guestfs-actions.pod:6373
15843 msgid "This command returns the UUID of the LVM PV C<device>."
15847 #: ../fish/guestfish-actions.pod:4091
15852 #: ../fish/guestfish-actions.pod:4093
15855 " pwrite path content offset\n"
15860 #: ../fish/guestfish-actions.pod:4095 ../src/guestfs-actions.pod:6389
15862 "This command writes to part of a file. It writes the data buffer C<content> "
15863 "to the file C<path> starting at offset C<offset>."
15867 #: ../fish/guestfish-actions.pod:4098 ../src/guestfs-actions.pod:6392
15869 "This command implements the L<pwrite(2)> system call, and like that system "
15870 "call it may not write the full data requested. The return value is the "
15871 "number of bytes that were actually written to the file. This could even be "
15872 "0, although short writes are unlikely for regular files in ordinary "
15877 #: ../fish/guestfish-actions.pod:4104
15878 msgid "See also L</pread>, L</pwrite-device>."
15879 msgstr "Див. також L</pread>, L</pwrite-device>."
15882 #: ../fish/guestfish-actions.pod:4109
15883 msgid "pwrite-device"
15884 msgstr "pwrite-device"
15887 #: ../fish/guestfish-actions.pod:4111
15890 " pwrite-device device content offset\n"
15895 #: ../fish/guestfish-actions.pod:4113 ../src/guestfs-actions.pod:6416
15897 "This command writes to part of a device. It writes the data buffer "
15898 "C<content> to C<device> starting at offset C<offset>."
15902 #: ../fish/guestfish-actions.pod:4116 ../src/guestfs-actions.pod:6419
15904 "This command implements the L<pwrite(2)> system call, and like that system "
15905 "call it may not write the full data requested (although short writes to disk "
15906 "devices and partitions are probably impossible with standard Linux kernels)."
15910 #: ../fish/guestfish-actions.pod:4121
15911 msgid "See also L</pwrite>."
15912 msgstr "Див. також L</pwrite>."
15915 #: ../fish/guestfish-actions.pod:4126
15920 #: ../fish/guestfish-actions.pod:4128
15923 " read-file path\n"
15926 " read-file шлях\n"
15930 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6440
15931 msgid "This calls returns the contents of the file C<path> as a buffer."
15935 #: ../fish/guestfish-actions.pod:4133
15937 "Unlike L</cat>, this function can correctly handle files that contain "
15938 "embedded ASCII NUL characters. However unlike L</download>, this function "
15939 "is limited in the total size of file that can be handled."
15943 #: ../fish/guestfish-actions.pod:4141
15945 msgstr "read-lines"
15948 #: ../fish/guestfish-actions.pod:4143
15951 " read-lines path\n"
15954 " read-lines шлях\n"
15958 #: ../fish/guestfish-actions.pod:4147 ../src/guestfs-actions.pod:6465
15960 "The file contents are returned as a list of lines. Trailing C<LF> and "
15961 "C<CRLF> character sequences are I<not> returned."
15965 #: ../fish/guestfish-actions.pod:4150
15967 "Note that this function cannot correctly handle binary files (specifically, "
15968 "files containing C<\\0> character which is treated as end of line). For "
15969 "those you need to use the L</read-file> function which has a more complex "
15974 #: ../fish/guestfish-actions.pod:4155
15979 #: ../fish/guestfish-actions.pod:4157
15985 " readdir каталог\n"
15989 #: ../fish/guestfish-actions.pod:4159 ../src/guestfs-actions.pod:6485
15990 msgid "This returns the list of directory entries in directory C<dir>."
15994 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6487
15996 "All entries in the directory are returned, including C<.> and C<..>. The "
15997 "entries are I<not> sorted, but returned in the same order as the underlying "
16002 #: ../fish/guestfish-actions.pod:4165 ../src/guestfs-actions.pod:6491
16004 "Also this call returns basic file type information about each file. The "
16005 "C<ftyp> field will contain one of the following characters:"
16009 #: ../fish/guestfish-actions.pod:4170 ../src/guestfs-actions.pod:6496
16014 #: ../fish/guestfish-actions.pod:4172 ../src/guestfs-actions.pod:6498
16015 msgid "Block special"
16016 msgstr "Блоковий особливий"
16019 #: ../fish/guestfish-actions.pod:4174 ../src/guestfs-actions.pod:6500
16024 #: ../fish/guestfish-actions.pod:4176 ../src/guestfs-actions.pod:6502
16025 msgid "Char special"
16026 msgstr "Символьний особливий"
16029 #: ../fish/guestfish-actions.pod:4178 ../src/guestfs-actions.pod:6504
16034 #: ../fish/guestfish-actions.pod:4180 ../src/guestfs-actions.pod:6506
16039 #: ../fish/guestfish-actions.pod:4182 ../src/guestfs-actions.pod:6508
16044 #: ../fish/guestfish-actions.pod:4184 ../src/guestfs-actions.pod:6510
16045 msgid "FIFO (named pipe)"
16046 msgstr "FIFO (іменований канал)"
16049 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6512
16054 #: ../fish/guestfish-actions.pod:4188 ../src/guestfs-actions.pod:6514
16055 msgid "Symbolic link"
16056 msgstr "Символічне посилання"
16059 #: ../fish/guestfish-actions.pod:4190 ../src/guestfs-actions.pod:6516
16064 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6518
16065 msgid "Regular file"
16066 msgstr "Звичайний файл"
16069 #: ../fish/guestfish-actions.pod:4194 ../src/guestfs-actions.pod:6520
16074 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6522
16079 #: ../fish/guestfish-actions.pod:4198 ../src/guestfs-actions.pod:6524
16084 #: ../fish/guestfish-actions.pod:4200 ../src/guestfs-actions.pod:6526
16085 msgid "Unknown file type"
16086 msgstr "Невідомий тип файла"
16089 #: ../fish/guestfish-actions.pod:4202 ../src/guestfs-actions.pod:6528
16094 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6530
16096 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
16100 #: ../fish/guestfish-actions.pod:4209
16102 "This function is primarily intended for use by programs. To get a simple "
16103 "list of names, use L</ls>. To get a printable directory for human "
16104 "consumption, use L</ll>."
16108 #: ../fish/guestfish-actions.pod:4213
16113 #: ../fish/guestfish-actions.pod:4215
16123 #: ../fish/guestfish-actions.pod:4217 ../src/guestfs-actions.pod:6551
16124 msgid "This command reads the target of a symbolic link."
16128 #: ../fish/guestfish-actions.pod:4219
16129 msgid "readlinklist"
16130 msgstr "readlinklist"
16133 #: ../fish/guestfish-actions.pod:4221
16136 " readlinklist path 'names ...'\n"
16141 #: ../fish/guestfish-actions.pod:4223 ../src/guestfs-actions.pod:6565
16143 "This call allows you to do a C<readlink> operation on multiple files, where "
16144 "all files are in the directory C<path>. C<names> is the list of files from "
16149 #: ../fish/guestfish-actions.pod:4227 ../src/guestfs-actions.pod:6569
16151 "On return you get a list of strings, with a one-to-one correspondence to the "
16152 "C<names> list. Each string is the value of the symbolic link."
16156 #: ../fish/guestfish-actions.pod:4231 ../src/guestfs-actions.pod:6573
16158 "If the C<readlink(2)> operation fails on any name, then the corresponding "
16159 "result string is the empty string C<\"\">. However the whole operation is "
16160 "completed even if there were C<readlink(2)> errors, and so you can call this "
16161 "function with names where you don't know if they are symbolic links already "
16162 "(albeit slightly less efficient)."
16166 #: ../fish/guestfish-actions.pod:4238 ../src/guestfs-actions.pod:6580
16168 "This call is intended for programs that want to efficiently list a directory "
16169 "contents without making many round-trips. Very long directory listings "
16170 "might cause the protocol message size to be exceeded, causing this call to "
16171 "fail. The caller must split up such requests into smaller groups of names."
16175 #: ../fish/guestfish-actions.pod:4245
16180 #: ../fish/guestfish-actions.pod:4247
16190 #: ../fish/guestfish-actions.pod:4249 ../src/guestfs-actions.pod:6599
16192 "Return the canonicalized absolute pathname of C<path>. The returned path "
16193 "has no C<.>, C<..> or symbolic link path elements."
16197 #: ../fish/guestfish-actions.pod:4252
16198 msgid "removexattr"
16199 msgstr "removexattr"
16202 #: ../fish/guestfish-actions.pod:4254
16205 " removexattr xattr path\n"
16210 #: ../fish/guestfish-actions.pod:4256 ../src/guestfs-actions.pod:6614
16212 "This call removes the extended attribute named C<xattr> of the file C<path>."
16216 #: ../fish/guestfish-actions.pod:4259
16217 msgid "See also: L</lremovexattr>, L<attr(5)>."
16218 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
16221 #: ../fish/guestfish-actions.pod:4261
16226 #: ../fish/guestfish-actions.pod:4263
16229 " resize2fs device\n"
16232 " resize2fs пристрій\n"
16236 #: ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:6629
16238 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
16239 "underlying device."
16243 #: ../fish/guestfish-actions.pod:4268
16245 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
16246 "before calling this command. For unknown reasons C<resize2fs> sometimes "
16247 "gives an error about this and sometimes not. In any case, it is always safe "
16248 "to call L</e2fsck-f> before calling this function."
16252 #: ../fish/guestfish-actions.pod:4274
16253 msgid "resize2fs-M"
16254 msgstr "resize2fs-M"
16257 #: ../fish/guestfish-actions.pod:4276
16260 " resize2fs-M device\n"
16263 " resize2fs-M пристрій\n"
16267 #: ../fish/guestfish-actions.pod:4278
16269 "This command is the same as L</resize2fs>, but the filesystem is resized to "
16270 "its minimum size. This works like the I<-M> option to the C<resize2fs> "
16275 #: ../fish/guestfish-actions.pod:4282
16277 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
16278 "and read the C<Block size> and C<Block count> values. These two numbers, "
16279 "multiplied together, give the resulting size of the minimal filesystem in "
16284 #: ../fish/guestfish-actions.pod:4287
16285 msgid "resize2fs-size"
16286 msgstr "resize2fs-size"
16289 #: ../fish/guestfish-actions.pod:4289
16292 " resize2fs-size device size\n"
16297 #: ../fish/guestfish-actions.pod:4291
16299 "This command is the same as L</resize2fs> except that it allows you to "
16300 "specify the new size (in bytes) explicitly."
16304 #: ../fish/guestfish-actions.pod:4294
16309 #: ../fish/guestfish-actions.pod:4296
16319 #: ../fish/guestfish-actions.pod:4298 ../src/guestfs-actions.pod:6681
16320 msgid "Remove the single file C<path>."
16324 #: ../fish/guestfish-actions.pod:4300
16329 #: ../fish/guestfish-actions.pod:4302
16339 #: ../fish/guestfish-actions.pod:4304 ../src/guestfs-actions.pod:6693
16341 "Remove the file or directory C<path>, recursively removing the contents if "
16342 "its a directory. This is like the C<rm -rf> shell command."
16346 #: ../fish/guestfish-actions.pod:4308
16351 #: ../fish/guestfish-actions.pod:4310
16361 #: ../fish/guestfish-actions.pod:4312 ../src/guestfs-actions.pod:6707
16362 msgid "Remove the single directory C<path>."
16366 #: ../fish/guestfish-actions.pod:4314
16367 msgid "rmmountpoint"
16368 msgstr "rmmountpoint"
16371 #: ../fish/guestfish-actions.pod:4316
16374 " rmmountpoint exemptpath\n"
16379 #: ../fish/guestfish-actions.pod:4318
16381 "This calls removes a mountpoint that was previously created with L</"
16382 "mkmountpoint>. See L</mkmountpoint> for full details."
16386 #: ../fish/guestfish-actions.pod:4322
16387 msgid "scrub-device"
16388 msgstr "scrub-device"
16391 #: ../fish/guestfish-actions.pod:4324
16394 " scrub-device device\n"
16397 " scrub-device пристрій\n"
16401 #: ../fish/guestfish-actions.pod:4326 ../src/guestfs-actions.pod:6733
16403 "This command writes patterns over C<device> to make data retrieval more "
16408 #: ../fish/guestfish-actions.pod:4329 ../fish/guestfish-actions.pod:4341
16409 #: ../fish/guestfish-actions.pod:4354 ../src/guestfs-actions.pod:6736
16410 #: ../src/guestfs-actions.pod:6754 ../src/guestfs-actions.pod:6773
16412 "It is an interface to the L<scrub(1)> program. See that manual page for "
16417 #: ../fish/guestfish-actions.pod:4332
16419 msgstr "scrub-file"
16422 #: ../fish/guestfish-actions.pod:4334
16425 " scrub-file file\n"
16428 " scrub-file файл\n"
16432 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6749
16434 "This command writes patterns over a file to make data retrieval more "
16439 #: ../fish/guestfish-actions.pod:4339 ../src/guestfs-actions.pod:6752
16440 msgid "The file is I<removed> after scrubbing."
16444 #: ../fish/guestfish-actions.pod:4344
16445 msgid "scrub-freespace"
16446 msgstr "scrub-freespace"
16449 #: ../fish/guestfish-actions.pod:4346
16452 " scrub-freespace dir\n"
16455 " scrub-freespace каталог\n"
16459 #: ../fish/guestfish-actions.pod:4348
16461 "This command creates the directory C<dir> and then fills it with files until "
16462 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
16463 "deletes them. The intention is to scrub any free space on the partition "
16464 "containing C<dir>."
16468 #: ../fish/guestfish-actions.pod:4357
16470 msgstr "set-append"
16473 #: ../fish/guestfish-actions.pod:4359
16478 #: ../fish/guestfish-actions.pod:4361
16481 " set-append append\n"
16486 #: ../fish/guestfish-actions.pod:4363 ../src/guestfs-actions.pod:6786
16488 "This function is used to add additional options to the guest kernel command "
16493 #: ../fish/guestfish-actions.pod:4366 ../src/guestfs-actions.pod:6789
16495 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
16496 "environment variable."
16500 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6792
16502 "Setting C<append> to C<NULL> means I<no> additional options are passed "
16503 "(libguestfs always adds a few of its own)."
16507 #: ../fish/guestfish-actions.pod:4372
16508 msgid "set-attach-method"
16509 msgstr "set-attach-method"
16512 #: ../fish/guestfish-actions.pod:4374
16513 msgid "attach-method"
16517 #: ../fish/guestfish-actions.pod:4376
16520 " set-attach-method attachmethod\n"
16525 #: ../fish/guestfish-actions.pod:4378 ../src/guestfs-actions.pod:6805
16527 "Set the method that libguestfs uses to connect to the back end guestfsd "
16528 "daemon. Possible methods are:"
16532 #: ../fish/guestfish-actions.pod:4383 ../src/guestfs-actions.pod:6810
16533 #: ../src/guestfs.pod:2916
16534 msgid "C<appliance>"
16535 msgstr "C<appliance>"
16538 #: ../fish/guestfish-actions.pod:4385 ../src/guestfs-actions.pod:6812
16540 "Launch an appliance and connect to it. This is the ordinary method and the "
16545 #: ../fish/guestfish-actions.pod:4388 ../src/guestfs-actions.pod:6815
16546 msgid "C<unix:I<path>>"
16547 msgstr "C<unix:I<шлях>>"
16550 #: ../fish/guestfish-actions.pod:4390 ../src/guestfs-actions.pod:6817
16551 msgid "Connect to the Unix domain socket I<path>."
16552 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
16555 #: ../fish/guestfish-actions.pod:4392 ../src/guestfs-actions.pod:6819
16557 "This method lets you connect to an existing daemon or (using virtio-serial) "
16558 "to a live guest. For more information, see L<guestfs(3)/ATTACHING TO "
16559 "RUNNING DAEMONS>."
16563 #: ../fish/guestfish-actions.pod:4398
16564 msgid "set-autosync"
16565 msgstr "set-autosync"
16568 #: ../fish/guestfish-actions.pod:4400
16573 #: ../fish/guestfish-actions.pod:4402
16576 " set-autosync true|false\n"
16579 " set-autosync true|false\n"
16583 #: ../fish/guestfish-actions.pod:4404 ../src/guestfs-actions.pod:6835
16585 "If C<autosync> is true, this enables autosync. Libguestfs will make a best "
16586 "effort attempt to make filesystems consistent and synchronized when the "
16587 "handle is closed (also if the program exits without closing handles)."
16591 #: ../fish/guestfish-actions.pod:4409 ../src/guestfs-actions.pod:6840
16593 "This is enabled by default (since libguestfs 1.5.24, previously it was "
16594 "disabled by default)."
16598 #: ../fish/guestfish-actions.pod:4412
16600 msgstr "set-direct"
16603 #: ../fish/guestfish-actions.pod:4414
16608 #: ../fish/guestfish-actions.pod:4416
16611 " set-direct true|false\n"
16614 " set-direct true|false\n"
16618 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6853
16620 "If the direct appliance mode flag is enabled, then stdin and stdout are "
16621 "passed directly through to the appliance once it is launched."
16625 #: ../fish/guestfish-actions.pod:4422
16627 "One consequence of this is that log messages aren't caught by the library "
16628 "and handled by L</set-log-message-callback>, but go straight to stdout."
16632 #: ../fish/guestfish-actions.pod:4426 ../src/guestfs-actions.pod:6861
16633 msgid "You probably don't want to use this unless you know what you are doing."
16637 #: ../fish/guestfish-actions.pod:4429 ../src/guestfs-actions.pod:6864
16638 msgid "The default is disabled."
16642 #: ../fish/guestfish-actions.pod:4431
16643 msgid "set-e2label"
16644 msgstr "set-e2label"
16647 #: ../fish/guestfish-actions.pod:4433
16650 " set-e2label device label\n"
16655 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6877
16657 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
16658 "C<label>. Filesystem labels are limited to 16 characters."
16662 #: ../fish/guestfish-actions.pod:4439
16664 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
16665 "label on a filesystem."
16669 #: ../fish/guestfish-actions.pod:4442
16671 msgstr "set-e2uuid"
16674 #: ../fish/guestfish-actions.pod:4444
16677 " set-e2uuid device uuid\n"
16682 #: ../fish/guestfish-actions.pod:4446 ../src/guestfs-actions.pod:6895
16684 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
16685 "C<uuid>. The format of the UUID and alternatives such as C<clear>, "
16686 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
16690 #: ../fish/guestfish-actions.pod:4451
16692 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
16693 "UUID of a filesystem."
16697 #: ../fish/guestfish-actions.pod:4454
16698 msgid "set-memsize"
16699 msgstr "set-memsize"
16702 #: ../fish/guestfish-actions.pod:4456
16707 #: ../fish/guestfish-actions.pod:4458
16710 " set-memsize memsize\n"
16715 #: ../fish/guestfish-actions.pod:4460
16717 "This sets the memory size in megabytes allocated to the qemu subprocess. "
16718 "This only has any effect if called before L</launch>."
16722 #: ../fish/guestfish-actions.pod:4464 ../src/guestfs-actions.pod:6917
16724 "You can also change this by setting the environment variable "
16725 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
16729 #: ../fish/guestfish-actions.pod:4471
16730 msgid "set-network"
16731 msgstr "set-network"
16734 #: ../fish/guestfish-actions.pod:4473
16739 #: ../fish/guestfish-actions.pod:4475
16742 " set-network true|false\n"
16745 " set-network true|false\n"
16749 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6934
16751 "If C<network> is true, then the network is enabled in the libguestfs "
16752 "appliance. The default is false."
16756 #: ../fish/guestfish-actions.pod:4480 ../src/guestfs-actions.pod:6937
16758 "This affects whether commands are able to access the network (see L<guestfs"
16759 "(3)/RUNNING COMMANDS>)."
16763 #: ../fish/guestfish-actions.pod:4483
16765 "You must call this before calling L</launch>, otherwise it has no effect."
16769 #: ../fish/guestfish-actions.pod:4486
16774 #: ../fish/guestfish-actions.pod:4490
16777 " set-path searchpath\n"
16782 #: ../fish/guestfish-actions.pod:4492 ../src/guestfs-actions.pod:6953
16783 msgid "Set the path that libguestfs searches for kernel and initrd.img."
16787 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6955
16789 "The default is C<$libdir/guestfs> unless overridden by setting "
16790 "C<LIBGUESTFS_PATH> environment variable."
16794 #: ../fish/guestfish-actions.pod:4497 ../src/guestfs-actions.pod:6958
16795 msgid "Setting C<path> to C<NULL> restores the default path."
16799 #: ../fish/guestfish-actions.pod:4499
16804 #: ../fish/guestfish-actions.pod:4501
16809 #: ../fish/guestfish-actions.pod:4503
16812 " set-pgroup true|false\n"
16817 #: ../fish/guestfish-actions.pod:4505 ../src/guestfs-actions.pod:6970
16819 "If C<pgroup> is true, child processes are placed into their own process "
16824 #: ../fish/guestfish-actions.pod:4508 ../src/guestfs-actions.pod:6973
16826 "The practical upshot of this is that signals like C<SIGINT> (from users "
16827 "pressing C<^C>) won't be received by the child process."
16831 #: ../fish/guestfish-actions.pod:4511 ../src/guestfs-actions.pod:6976
16833 "The default for this flag is false, because usually you want C<^C> to kill "
16838 #: ../fish/guestfish-actions.pod:4514
16843 #: ../fish/guestfish-actions.pod:4516
16848 #: ../fish/guestfish-actions.pod:4518
16858 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6989
16859 msgid "Set the qemu binary that we will use."
16863 #: ../fish/guestfish-actions.pod:4522 ../src/guestfs-actions.pod:6991
16865 "The default is chosen when the library was compiled by the configure script."
16869 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6994
16871 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
16876 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6997
16877 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
16881 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6999
16883 "Note that you should call this function as early as possible after creating "
16884 "the handle. This is because some pre-launch operations depend on testing "
16885 "qemu features (by running C<qemu -help>). If the qemu binary changes, we "
16886 "don't retest features, and so you might see inconsistent results. Using the "
16887 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
16888 "the qemu binary at the same time as the handle is created."
16892 #: ../fish/guestfish-actions.pod:4538
16893 msgid "set-recovery-proc"
16894 msgstr "set-recovery-proc"
16897 #: ../fish/guestfish-actions.pod:4540
16898 msgid "recovery-proc"
16899 msgstr "recovery-proc"
16902 #: ../fish/guestfish-actions.pod:4542
16905 " set-recovery-proc true|false\n"
16908 " set-recovery-proc true|false\n"
16912 #: ../fish/guestfish-actions.pod:4544
16914 "If this is called with the parameter C<false> then L</launch> does not "
16915 "create a recovery process. The purpose of the recovery process is to stop "
16916 "runaway qemu processes in the case where the main program aborts abruptly."
16920 #: ../fish/guestfish-actions.pod:4549
16922 "This only has any effect if called before L</launch>, and the default is "
16927 #: ../fish/guestfish-actions.pod:4552 ../src/guestfs-actions.pod:7025
16929 "About the only time when you would want to disable this is if the main "
16930 "process will fork itself into the background (\"daemonize\" itself). In "
16931 "this case the recovery process thinks that the main program has disappeared "
16932 "and so kills qemu, which is not very helpful."
16936 #: ../fish/guestfish-actions.pod:4558
16937 msgid "set-selinux"
16938 msgstr "set-selinux"
16941 #: ../fish/guestfish-actions.pod:4560
16946 #: ../fish/guestfish-actions.pod:4562
16949 " set-selinux true|false\n"
16952 " set-selinux true|false\n"
16956 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:7041
16958 "This sets the selinux flag that is passed to the appliance at boot time. "
16959 "The default is C<selinux=0> (disabled)."
16963 #: ../fish/guestfish-actions.pod:4567 ../src/guestfs-actions.pod:7044
16965 "Note that if SELinux is enabled, it is always in Permissive mode "
16966 "(C<enforcing=0>)."
16970 #: ../fish/guestfish-actions.pod:4573
16975 #: ../fish/guestfish-actions.pod:4575
16980 #: ../fish/guestfish-actions.pod:4577
16988 #: ../fish/guestfish-actions.pod:4579 ../src/guestfs-actions.pod:7060
16990 "Change the number of virtual CPUs assigned to the appliance. The default is "
16991 "C<1>. Increasing this may improve performance, though often it has no "
16996 #: ../fish/guestfish-actions.pod:4583
16997 msgid "This function must be called before L</launch>."
17001 #: ../fish/guestfish-actions.pod:4585
17006 #: ../fish/guestfish-actions.pod:4587
17011 #: ../fish/guestfish-actions.pod:4589
17014 " set-trace true|false\n"
17017 " set-trace true|false\n"
17021 #: ../fish/guestfish-actions.pod:4591 ../src/guestfs-actions.pod:7076
17023 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
17024 "return values are traced."
17028 #: ../fish/guestfish-actions.pod:4594 ../src/guestfs-actions.pod:7079
17030 "If you want to trace C API calls into libguestfs (and other libraries) then "
17031 "possibly a better way is to use the external ltrace(1) command."
17035 #: ../fish/guestfish-actions.pod:4598 ../src/guestfs-actions.pod:7083
17037 "Command traces are disabled unless the environment variable "
17038 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
17042 #: ../fish/guestfish-actions.pod:4601
17044 "Trace messages are normally sent to C<stderr>, unless you register a "
17045 "callback to send them somewhere else (see L</set-event-callback>)."
17049 #: ../fish/guestfish-actions.pod:4605
17050 msgid "set-verbose"
17051 msgstr "set-verbose"
17054 #: ../fish/guestfish-actions.pod:4607
17059 #: ../fish/guestfish-actions.pod:4609
17062 " set-verbose true|false\n"
17065 " set-verbose true|false\n"
17069 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:7100
17070 msgid "If C<verbose> is true, this turns on verbose messages."
17074 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:7102
17076 "Verbose messages are disabled unless the environment variable "
17077 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
17081 #: ../fish/guestfish-actions.pod:4616
17083 "Verbose messages are normally sent to C<stderr>, unless you register a "
17084 "callback to send them somewhere else (see L</set-event-callback>)."
17088 #: ../fish/guestfish-actions.pod:4620
17093 #: ../fish/guestfish-actions.pod:4622
17096 " setcon context\n"
17099 " setcon контекст\n"
17103 #: ../fish/guestfish-actions.pod:4624 ../src/guestfs-actions.pod:7119
17105 "This sets the SELinux security context of the daemon to the string "
17110 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:7122
17111 msgid "See the documentation about SELINUX in L<guestfs(3)>."
17115 #: ../fish/guestfish-actions.pod:4629
17120 #: ../fish/guestfish-actions.pod:4631
17123 " setxattr xattr val vallen path\n"
17128 #: ../fish/guestfish-actions.pod:4633 ../src/guestfs-actions.pod:7137
17130 "This call sets the extended attribute named C<xattr> of the file C<path> to "
17131 "the value C<val> (of length C<vallen>). The value is arbitrary 8 bit data."
17135 #: ../fish/guestfish-actions.pod:4637
17136 msgid "See also: L</lsetxattr>, L<attr(5)>."
17137 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
17140 #: ../fish/guestfish-actions.pod:4639
17145 #: ../fish/guestfish-actions.pod:4641
17148 " sfdisk device cyls heads sectors 'lines ...'\n"
17153 #: ../fish/guestfish-actions.pod:4643 ../src/guestfs-actions.pod:7164
17155 "This is a direct interface to the L<sfdisk(8)> program for creating "
17156 "partitions on block devices."
17160 #: ../fish/guestfish-actions.pod:4646 ../src/guestfs-actions.pod:7167
17161 msgid "C<device> should be a block device, for example C</dev/sda>."
17165 #: ../fish/guestfish-actions.pod:4648 ../src/guestfs-actions.pod:7169
17167 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
17168 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
17169 "H> and I<-S> parameters. If you pass C<0> for any of these, then the "
17170 "corresponding parameter is omitted. Usually for 'large' disks, you can just "
17171 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
17172 "the kernel) cannot work out the right geometry and you will need to tell it."
17176 #: ../fish/guestfish-actions.pod:4656 ../src/guestfs-actions.pod:7177
17178 "C<lines> is a list of lines that we feed to C<sfdisk>. For more information "
17179 "refer to the L<sfdisk(8)> manpage."
17183 #: ../fish/guestfish-actions.pod:4659 ../src/guestfs-actions.pod:7180
17185 "To create a single partition occupying the whole disk, you would pass "
17186 "C<lines> as a single element list, when the single element being the string "
17191 #: ../fish/guestfish-actions.pod:4663
17192 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
17193 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
17196 #: ../fish/guestfish-actions.pod:4666 ../fish/guestfish-actions.pod:4686
17197 #: ../fish/guestfish-actions.pod:4705
17199 "I<This function is deprecated.> In new code, use the L</part_add> call "
17204 #: ../fish/guestfish-actions.pod:4673
17209 #: ../fish/guestfish-actions.pod:4675
17212 " sfdiskM device 'lines ...'\n"
17217 #: ../fish/guestfish-actions.pod:4677
17219 "This is a simplified interface to the L</sfdisk> command, where partition "
17220 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
17221 "you don't need to specify the cyls, heads and sectors parameters which were "
17222 "rarely if ever used anyway."
17226 #: ../fish/guestfish-actions.pod:4683
17227 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
17229 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
17232 #: ../fish/guestfish-actions.pod:4693
17237 #: ../fish/guestfish-actions.pod:4695
17240 " sfdisk-N device partnum cyls heads sectors line\n"
17245 #: ../fish/guestfish-actions.pod:4697 ../src/guestfs-actions.pod:7236
17247 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
17248 "(note: C<n> counts from 1)."
17252 #: ../fish/guestfish-actions.pod:4700
17254 "For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
17255 "cyls/heads/sectors parameters."
17259 #: ../fish/guestfish-actions.pod:4703
17260 msgid "See also: L</part-add>"
17261 msgstr "Див. також L</part-add>"
17264 #: ../fish/guestfish-actions.pod:4712
17265 msgid "sfdisk-disk-geometry"
17266 msgstr "sfdisk-disk-geometry"
17269 #: ../fish/guestfish-actions.pod:4714
17272 " sfdisk-disk-geometry device\n"
17275 " sfdisk-disk-geometry пристрій\n"
17279 #: ../fish/guestfish-actions.pod:4716
17281 "This displays the disk geometry of C<device> read from the partition table. "
17282 "Especially in the case where the underlying block device has been resized, "
17283 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
17284 "kernel-geometry>)."
17288 #: ../fish/guestfish-actions.pod:4721 ../fish/guestfish-actions.pod:4730
17289 #: ../src/guestfs-actions.pod:7259 ../src/guestfs-actions.pod:7275
17290 msgid "The result is in human-readable format, and not designed to be parsed."
17294 #: ../fish/guestfish-actions.pod:4724
17295 msgid "sfdisk-kernel-geometry"
17296 msgstr "sfdisk-kernel-geometry"
17299 #: ../fish/guestfish-actions.pod:4726
17302 " sfdisk-kernel-geometry device\n"
17305 " sfdisk-kernel-geometry пристрій\n"
17309 #: ../fish/guestfish-actions.pod:4728 ../src/guestfs-actions.pod:7273
17310 msgid "This displays the kernel's idea of the geometry of C<device>."
17314 #: ../fish/guestfish-actions.pod:4733
17319 #: ../fish/guestfish-actions.pod:4735
17322 " sfdisk-l device\n"
17325 " sfdisk-l пристрій\n"
17329 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7296
17331 "This displays the partition table on C<device>, in the human-readable output "
17332 "of the L<sfdisk(8)> command. It is not intended to be parsed."
17336 #: ../fish/guestfish-actions.pod:4741
17337 msgid "See also: L</part-list>"
17338 msgstr "Див. також L</part-list>"
17341 #: ../fish/guestfish-actions.pod:4743
17343 "I<This function is deprecated.> In new code, use the L</part_list> call "
17348 #: ../fish/guestfish-actions.pod:4750
17353 #: ../fish/guestfish-actions.pod:4752
17363 #: ../fish/guestfish-actions.pod:4754 ../src/guestfs-actions.pod:7313
17365 "This call runs a command from the guest filesystem via the guest's C</bin/"
17370 #: ../fish/guestfish-actions.pod:4757
17371 msgid "This is like L</command>, but passes the command to:"
17375 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7318
17378 " /bin/sh -c \"command\"\n"
17383 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7320
17385 "Depending on the guest's shell, this usually results in wildcards being "
17386 "expanded, shell expressions being interpolated and so on."
17390 #: ../fish/guestfish-actions.pod:4765
17391 msgid "All the provisos about L</command> apply to this call."
17395 #: ../fish/guestfish-actions.pod:4767
17400 #: ../fish/guestfish-actions.pod:4769
17403 " sh-lines command\n"
17406 " sh-lines команда\n"
17410 #: ../fish/guestfish-actions.pod:4771
17411 msgid "This is the same as L</sh>, but splits the result into a list of lines."
17415 #: ../fish/guestfish-actions.pod:4774
17416 msgid "See also: L</command-lines>"
17417 msgstr "Див. також L</command-lines>"
17420 #: ../fish/guestfish-actions.pod:4776
17425 #: ../fish/guestfish-actions.pod:4778
17431 " sleep час_у_секундах\n"
17435 #: ../fish/guestfish-actions.pod:4780 ../src/guestfs-actions.pod:7354
17436 msgid "Sleep for C<secs> seconds."
17440 #: ../fish/guestfish-actions.pod:4782
17445 #: ../fish/guestfish-actions.pod:4784
17455 #: ../fish/guestfish-actions.pod:4788 ../src/guestfs-actions.pod:7368
17456 msgid "This is the same as the C<stat(2)> system call."
17460 #: ../fish/guestfish-actions.pod:4790
17465 #: ../fish/guestfish-actions.pod:4792
17475 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7382
17477 "Returns file system statistics for any mounted file system. C<path> should "
17478 "be a file or directory in the mounted file system (typically it is the mount "
17479 "point itself, but it doesn't need to be)."
17483 #: ../fish/guestfish-actions.pod:4798 ../src/guestfs-actions.pod:7386
17484 msgid "This is the same as the C<statvfs(2)> system call."
17488 #: ../fish/guestfish-actions.pod:4800
17493 #: ../fish/guestfish-actions.pod:4802
17503 #: ../fish/guestfish-actions.pod:4804 ../src/guestfs-actions.pod:7400
17505 "This runs the L<strings(1)> command on a file and returns the list of "
17506 "printable strings found."
17510 #: ../fish/guestfish-actions.pod:4810
17515 #: ../fish/guestfish-actions.pod:4812
17518 " strings-e encoding path\n"
17521 " strings-e кодування шлях\n"
17525 #: ../fish/guestfish-actions.pod:4814
17527 "This is like the L</strings> command, but allows you to specify the encoding "
17528 "of strings that are looked for in the source file C<path>."
17532 #: ../fish/guestfish-actions.pod:4818 ../src/guestfs-actions.pod:7423
17533 msgid "Allowed encodings are:"
17534 msgstr "Можливими кодуваннями є:"
17537 #: ../fish/guestfish-actions.pod:4822 ../src/guestfs-actions.pod:7427
17542 #: ../fish/guestfish-actions.pod:4824
17544 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
17545 "ISO-8859-X (this is what L</strings> uses)."
17549 #: ../fish/guestfish-actions.pod:4827 ../src/guestfs-actions.pod:7432
17554 #: ../fish/guestfish-actions.pod:4829 ../src/guestfs-actions.pod:7434
17555 msgid "Single 8-bit-byte characters."
17556 msgstr "Окремі 8-бітові-байтові символи."
17559 #: ../fish/guestfish-actions.pod:4831 ../src/guestfs-actions.pod:7436
17564 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7438
17565 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
17569 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7441
17570 msgid "l (lower case letter L)"
17574 #: ../fish/guestfish-actions.pod:4838 ../src/guestfs-actions.pod:7443
17576 "16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
17577 "examining binaries in Windows guests."
17581 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7446
17586 #: ../fish/guestfish-actions.pod:4843 ../src/guestfs-actions.pod:7448
17587 msgid "32-bit big endian such as UCS-4BE."
17591 #: ../fish/guestfish-actions.pod:4845 ../src/guestfs-actions.pod:7450
17596 #: ../fish/guestfish-actions.pod:4847 ../src/guestfs-actions.pod:7452
17597 msgid "32-bit little endian such as UCS-4LE."
17601 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7456
17602 msgid "The returned strings are transcoded to UTF-8."
17606 #: ../fish/guestfish-actions.pod:4856
17607 msgid "swapoff-device"
17608 msgstr "swapoff-device"
17611 #: ../fish/guestfish-actions.pod:4858
17614 " swapoff-device device\n"
17617 " swapoff-device пристрій\n"
17621 #: ../fish/guestfish-actions.pod:4860
17623 "This command disables the libguestfs appliance swap device or partition "
17624 "named C<device>. See L</swapon-device>."
17628 #: ../fish/guestfish-actions.pod:4864
17629 msgid "swapoff-file"
17630 msgstr "swapoff-file"
17633 #: ../fish/guestfish-actions.pod:4866
17636 " swapoff-file file\n"
17639 " swapoff-file файл\n"
17643 #: ../fish/guestfish-actions.pod:4868 ../src/guestfs-actions.pod:7487
17644 msgid "This command disables the libguestfs appliance swap on file."
17648 #: ../fish/guestfish-actions.pod:4870
17649 msgid "swapoff-label"
17650 msgstr "swapoff-label"
17653 #: ../fish/guestfish-actions.pod:4872
17656 " swapoff-label label\n"
17659 " swapoff-label мітка\n"
17663 #: ../fish/guestfish-actions.pod:4874 ../src/guestfs-actions.pod:7499
17665 "This command disables the libguestfs appliance swap on labeled swap "
17670 #: ../fish/guestfish-actions.pod:4877
17671 msgid "swapoff-uuid"
17672 msgstr "swapoff-uuid"
17675 #: ../fish/guestfish-actions.pod:4879
17678 " swapoff-uuid uuid\n"
17681 " swapoff-uuid uuid\n"
17685 #: ../fish/guestfish-actions.pod:4881 ../src/guestfs-actions.pod:7512
17687 "This command disables the libguestfs appliance swap partition with the given "
17692 #: ../fish/guestfish-actions.pod:4884
17693 msgid "swapon-device"
17694 msgstr "swapon-device"
17697 #: ../fish/guestfish-actions.pod:4886
17700 " swapon-device device\n"
17703 " swapon-device пристрій\n"
17707 #: ../fish/guestfish-actions.pod:4888
17709 "This command enables the libguestfs appliance to use the swap device or "
17710 "partition named C<device>. The increased memory is made available for all "
17711 "commands, for example those run using L</command> or L</sh>."
17715 #: ../fish/guestfish-actions.pod:4893 ../src/guestfs-actions.pod:7530
17717 "Note that you should not swap to existing guest swap partitions unless you "
17718 "know what you are doing. They may contain hibernation information, or other "
17719 "information that the guest doesn't want you to trash. You also risk leaking "
17720 "information about the host to the guest this way. Instead, attach a new "
17721 "host device to the guest and swap on that."
17725 #: ../fish/guestfish-actions.pod:4900
17726 msgid "swapon-file"
17727 msgstr "swapon-file"
17730 #: ../fish/guestfish-actions.pod:4902
17733 " swapon-file file\n"
17736 " swapon-file файл\n"
17740 #: ../fish/guestfish-actions.pod:4904
17742 "This command enables swap to a file. See L</swapon-device> for other notes."
17746 #: ../fish/guestfish-actions.pod:4907
17747 msgid "swapon-label"
17748 msgstr "swapon-label"
17751 #: ../fish/guestfish-actions.pod:4909
17754 " swapon-label label\n"
17757 " swapon-label мітка\n"
17761 #: ../fish/guestfish-actions.pod:4911
17763 "This command enables swap to a labeled swap partition. See L</swapon-"
17764 "device> for other notes."
17768 #: ../fish/guestfish-actions.pod:4914
17769 msgid "swapon-uuid"
17770 msgstr "swapon-uuid"
17773 #: ../fish/guestfish-actions.pod:4916
17776 " swapon-uuid uuid\n"
17779 " swapon-uuid uuid\n"
17783 #: ../fish/guestfish-actions.pod:4918
17785 "This command enables swap to a swap partition with the given UUID. See L</"
17786 "swapon-device> for other notes."
17790 #: ../fish/guestfish-actions.pod:4921
17795 #: ../fish/guestfish-actions.pod:4923
17805 #: ../fish/guestfish-actions.pod:4925 ../src/guestfs-actions.pod:7585
17807 "This syncs the disk, so that any writes are flushed through to the "
17808 "underlying disk image."
17812 #: ../fish/guestfish-actions.pod:4928 ../src/guestfs-actions.pod:7588
17814 "You should always call this if you have modified a disk image, before "
17815 "closing the handle."
17819 #: ../fish/guestfish-actions.pod:4931
17824 #: ../fish/guestfish-actions.pod:4933
17834 #: ../fish/guestfish-actions.pod:4935 ../src/guestfs-actions.pod:7601
17836 "This command returns up to the last 10 lines of a file as a list of strings."
17840 #: ../fish/guestfish-actions.pod:4941
17845 #: ../fish/guestfish-actions.pod:4943
17848 " tail-n nrlines path\n"
17853 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7620
17855 "If the parameter C<nrlines> is a positive number, this returns the last "
17856 "C<nrlines> lines of the file C<path>."
17860 #: ../fish/guestfish-actions.pod:4948 ../src/guestfs-actions.pod:7623
17862 "If the parameter C<nrlines> is a negative number, this returns lines from "
17863 "the file C<path>, starting with the C<-nrlines>th line."
17867 #: ../fish/guestfish-actions.pod:4956
17872 #: ../fish/guestfish-actions.pod:4958
17875 " tar-in (tarfile|-) directory\n"
17878 " tar-in (файл_tar|-) каталог\n"
17882 #: ../fish/guestfish-actions.pod:4960 ../src/guestfs-actions.pod:7644
17884 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
17885 "tar file) into C<directory>."
17889 #: ../fish/guestfish-actions.pod:4963
17890 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
17894 #: ../fish/guestfish-actions.pod:4968
17899 #: ../fish/guestfish-actions.pod:4970
17902 " tar-out directory (tarfile|-)\n"
17905 " tar-out каталог (файл tar|-)\n"
17909 #: ../fish/guestfish-actions.pod:4972 ../src/guestfs-actions.pod:7661
17911 "This command packs the contents of C<directory> and downloads it to local "
17916 #: ../fish/guestfish-actions.pod:4975
17917 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
17921 #: ../fish/guestfish-actions.pod:4980
17926 #: ../fish/guestfish-actions.pod:4982
17929 " tgz-in (tarball|-) directory\n"
17932 " tgz-in (архів tar|-) каталог\n"
17936 #: ../fish/guestfish-actions.pod:4984 ../src/guestfs-actions.pod:7678
17938 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
17939 "tar file) into C<directory>."
17943 #: ../fish/guestfish-actions.pod:4987
17944 msgid "To upload an uncompressed tarball, use L</tar-in>."
17948 #: ../fish/guestfish-actions.pod:4991
17953 #: ../fish/guestfish-actions.pod:4993
17956 " tgz-out directory (tarball|-)\n"
17959 " tgz-out каталог (архів tar|-)\n"
17963 #: ../fish/guestfish-actions.pod:4995 ../src/guestfs-actions.pod:7694
17965 "This command packs the contents of C<directory> and downloads it to local "
17970 #: ../fish/guestfish-actions.pod:4998
17971 msgid "To download an uncompressed tarball, use L</tar-out>."
17975 #: ../fish/guestfish-actions.pod:5002
17980 #: ../fish/guestfish-actions.pod:5004
17990 #: ../fish/guestfish-actions.pod:5006 ../src/guestfs-actions.pod:7709
17992 "Touch acts like the L<touch(1)> command. It can be used to update the "
17993 "timestamps on a file, or, if the file does not exist, to create a new zero-"
17998 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7713
18000 "This command only works on regular files, and will fail on other file types "
18001 "such as directories, symbolic links, block special etc."
18005 #: ../fish/guestfish-actions.pod:5013
18010 #: ../fish/guestfish-actions.pod:5015
18020 #: ../fish/guestfish-actions.pod:5017 ../src/guestfs-actions.pod:7726
18022 "This command truncates C<path> to a zero-length file. The file must exist "
18027 #: ../fish/guestfish-actions.pod:5020
18028 msgid "truncate-size"
18029 msgstr "truncate-size"
18032 #: ../fish/guestfish-actions.pod:5022
18035 " truncate-size path size\n"
18038 " truncate-size шлях розмір\n"
18042 #: ../fish/guestfish-actions.pod:5024 ../src/guestfs-actions.pod:7740
18044 "This command truncates C<path> to size C<size> bytes. The file must exist "
18049 #: ../fish/guestfish-actions.pod:5027
18051 "If the current file size is less than C<size> then the file is extended to "
18052 "the required size with zero bytes. This creates a sparse file (ie. disk "
18053 "blocks are not allocated for the file until you write to it). To create a "
18054 "non-sparse file of zeroes, use L</fallocate64> instead."
18058 #: ../fish/guestfish-actions.pod:5033
18060 #| msgid "tune2fs-l"
18065 #: ../fish/guestfish-actions.pod:5035
18068 " tune2fs device [force:true|false] [maxmountcount:N] [mountcount:N] [errorbehavior:..] [group:N] [intervalbetweenchecks:N] [reservedblockspercentage:N] [lastmounteddirectory:..] [reservedblockscount:N] [user:N]\n"
18073 #: ../fish/guestfish-actions.pod:5037 ../src/guestfs-actions.pod:7776
18075 "This call allows you to adjust various filesystem parameters of an ext2/ext3/"
18076 "ext4 filesystem called C<device>."
18080 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7785
18082 "Force tune2fs to complete the operation even in the face of errors. This is "
18083 "the same as the tune2fs C<-f> option."
18087 #: ../fish/guestfish-actions.pod:5049 ../src/guestfs-actions.pod:7788
18089 #| msgid "mkmountpoint"
18090 msgid "C<maxmountcount>"
18091 msgstr "mkmountpoint"
18094 #: ../fish/guestfish-actions.pod:5051 ../src/guestfs-actions.pod:7790
18096 "Set the number of mounts after which the filesystem is checked by L<e2fsck(8)"
18097 ">. If this is C<0> then the number of mounts is disregarded. This is the "
18098 "same as the tune2fs C<-c> option."
18102 #: ../fish/guestfish-actions.pod:5055 ../src/guestfs-actions.pod:7794
18104 #| msgid "mountpoints"
18105 msgid "C<mountcount>"
18106 msgstr "mountpoints"
18109 #: ../fish/guestfish-actions.pod:5057 ../src/guestfs-actions.pod:7796
18111 "Set the number of times the filesystem has been mounted. This is the same "
18112 "as the tune2fs C<-C> option."
18116 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7799
18117 msgid "C<errorbehavior>"
18121 #: ../fish/guestfish-actions.pod:5062 ../src/guestfs-actions.pod:7801
18123 "Change the behavior of the kernel code when errors are detected. Possible "
18124 "values currently are: C<continue>, C<remount-ro>, C<panic>. In practice "
18125 "these options don't really make any difference, particularly for write "
18130 #: ../fish/guestfish-actions.pod:5067 ../src/guestfs-actions.pod:7806
18131 msgid "This is the same as the tune2fs C<-e> option."
18135 #: ../fish/guestfish-actions.pod:5069 ../src/guestfs-actions.pod:7808
18137 #| msgid "B<--volgroups>"
18139 msgstr "B<--volgroups>"
18142 #: ../fish/guestfish-actions.pod:5071 ../src/guestfs-actions.pod:7810
18144 "Set the group which can use reserved filesystem blocks. This is the same as "
18145 "the tune2fs C<-g> option except that it can only be specified as a number."
18149 #: ../fish/guestfish-actions.pod:5075 ../src/guestfs-actions.pod:7814
18150 msgid "C<intervalbetweenchecks>"
18154 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7816
18156 "Adjust the maximal time between two filesystem checks (in seconds). If the "
18157 "option is passed as C<0> then time-dependent checking is disabled."
18161 #: ../fish/guestfish-actions.pod:5081 ../src/guestfs-actions.pod:7820
18162 msgid "This is the same as the tune2fs C<-i> option."
18166 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7822
18167 msgid "C<reservedblockspercentage>"
18171 #: ../fish/guestfish-actions.pod:5085 ../src/guestfs-actions.pod:7824
18173 "Set the percentage of the filesystem which may only be allocated by "
18174 "privileged processes. This is the same as the tune2fs C<-m> option."
18178 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7828
18179 msgid "C<lastmounteddirectory>"
18183 #: ../fish/guestfish-actions.pod:5091 ../src/guestfs-actions.pod:7830
18185 "Set the last mounted directory. This is the same as the tune2fs C<-M> "
18190 #: ../fish/guestfish-actions.pod:5094 ../src/guestfs-actions.pod:7833
18192 "C<reservedblockscount> Set the number of reserved filesystem blocks. This "
18193 "is the same as the tune2fs C<-r> option."
18197 #: ../fish/guestfish-actions.pod:5098 ../src/guestfs-actions.pod:7837
18202 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7839
18204 "Set the user who can use the reserved filesystem blocks. This is the same "
18205 "as the tune2fs C<-u> option except that it can only be specified as a number."
18209 #: ../fish/guestfish-actions.pod:5106
18211 "To get the current values of filesystem parameters, see L</tune2fs-l>. For "
18212 "precise details of how tune2fs works, see the L<tune2fs(8)> man page."
18216 #: ../fish/guestfish-actions.pod:5112
18221 #: ../fish/guestfish-actions.pod:5114
18224 " tune2fs-l device\n"
18227 " tune2fs-l пристрій\n"
18231 #: ../fish/guestfish-actions.pod:5116 ../src/guestfs-actions.pod:7881
18233 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
18238 #: ../fish/guestfish-actions.pod:5119 ../src/guestfs-actions.pod:7884
18240 "It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage "
18241 "for more details. The list of fields returned isn't clearly defined, and "
18242 "depends on both the version of C<tune2fs> that libguestfs was built against, "
18243 "and the filesystem itself."
18247 #: ../fish/guestfish-actions.pod:5124
18252 #: ../fish/guestfish-actions.pod:5126
18255 " txz-in (tarball|-) directory\n"
18258 " txz-in (архів tar|-) каталог\n"
18262 #: ../fish/guestfish-actions.pod:5128 ../src/guestfs-actions.pod:7904
18264 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
18265 "tar file) into C<directory>."
18269 #: ../fish/guestfish-actions.pod:5133
18274 #: ../fish/guestfish-actions.pod:5135
18277 " txz-out directory (tarball|-)\n"
18280 " txz-out каталог (архів tar|-)\n"
18284 #: ../fish/guestfish-actions.pod:5137 ../src/guestfs-actions.pod:7918
18286 "This command packs the contents of C<directory> and downloads it to local "
18287 "file C<tarball> (as an xz compressed tar archive)."
18291 #: ../fish/guestfish-actions.pod:5142
18296 #: ../fish/guestfish-actions.pod:5144
18306 #: ../fish/guestfish-actions.pod:5146 ../src/guestfs-actions.pod:7931
18308 "This function sets the mask used for creating new files and device nodes to "
18313 #: ../fish/guestfish-actions.pod:5149 ../src/guestfs-actions.pod:7934
18315 "Typical umask values would be C<022> which creates new files with "
18316 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
18317 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
18321 #: ../fish/guestfish-actions.pod:5154 ../src/guestfs-actions.pod:7939
18323 "The default umask is C<022>. This is important because it means that "
18324 "directories and device nodes will be created with C<0644> or C<0755> mode "
18325 "even if you specify C<0777>."
18329 #: ../fish/guestfish-actions.pod:5158
18330 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
18331 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
18334 #: ../fish/guestfish-actions.pod:5161 ../src/guestfs-actions.pod:7946
18335 msgid "This call returns the previous umask."
18339 #: ../fish/guestfish-actions.pod:5163
18344 #: ../fish/guestfish-actions.pod:5165
18349 #: ../fish/guestfish-actions.pod:5167
18352 " umount pathordevice\n"
18355 " umount шлях_або_пристрій\n"
18359 #: ../fish/guestfish-actions.pod:5169 ../src/guestfs-actions.pod:7958
18361 "This unmounts the given filesystem. The filesystem may be specified either "
18362 "by its mountpoint (path) or the device which contains the filesystem."
18366 #: ../fish/guestfish-actions.pod:5173
18368 msgstr "umount-all"
18371 #: ../fish/guestfish-actions.pod:5175
18372 msgid "unmount-all"
18373 msgstr "unmount-all"
18376 #: ../fish/guestfish-actions.pod:5177
18386 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7971
18387 msgid "This unmounts all mounted filesystems."
18391 #: ../fish/guestfish-actions.pod:5181 ../src/guestfs-actions.pod:7973
18392 msgid "Some internal mounts are not unmounted by this call."
18396 #: ../fish/guestfish-actions.pod:5183
18401 #: ../fish/guestfish-actions.pod:5185
18404 " upload (filename|-) remotefilename\n"
18407 " upload (назва_файла|-) назва_віддаленого_файла\n"
18411 #: ../fish/guestfish-actions.pod:5187 ../fish/guestfish-actions.pod:5200
18412 #: ../src/guestfs-actions.pod:7986 ../src/guestfs-actions.pod:8010
18413 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
18417 #: ../fish/guestfish-actions.pod:5192
18418 msgid "See also L</download>."
18419 msgstr "Див. також L</download>."
18422 #: ../fish/guestfish-actions.pod:5196
18423 msgid "upload-offset"
18424 msgstr "upload-offset"
18427 #: ../fish/guestfish-actions.pod:5198
18430 " upload-offset (filename|-) remotefilename offset\n"
18433 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
18437 #: ../fish/guestfish-actions.pod:5203 ../src/guestfs-actions.pod:8013
18439 "C<remotefilename> is overwritten starting at the byte C<offset> specified. "
18440 "The intention is to overwrite parts of existing files or devices, although "
18441 "if a non-existant file is specified then it is created with a \"hole\" "
18442 "before C<offset>. The size of the data written is implicit in the size of "
18443 "the source C<filename>."
18447 #: ../fish/guestfish-actions.pod:5210
18449 "Note that there is no limit on the amount of data that can be uploaded with "
18450 "this call, unlike with L</pwrite>, and this call always writes the full "
18451 "amount unless an error occurs."
18455 #: ../fish/guestfish-actions.pod:5215
18456 msgid "See also L</upload>, L</pwrite>."
18457 msgstr "Див. також L</upload>, L</pwrite>."
18460 #: ../fish/guestfish-actions.pod:5219
18465 #: ../fish/guestfish-actions.pod:5221
18468 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
18473 #: ../fish/guestfish-actions.pod:5223 ../src/guestfs-actions.pod:8046
18474 msgid "This command sets the timestamps of a file with nanosecond precision."
18478 #: ../fish/guestfish-actions.pod:5226 ../src/guestfs-actions.pod:8049
18480 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
18485 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:8052
18487 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
18488 "nanoseconds from the epoch."
18492 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:8055
18494 "If the C<*nsecs> field contains the special value C<-1> then the "
18495 "corresponding timestamp is set to the current time. (The C<*secs> field is "
18496 "ignored in this case)."
18500 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:8059
18502 "If the C<*nsecs> field contains the special value C<-2> then the "
18503 "corresponding timestamp is left unchanged. (The C<*secs> field is ignored "
18508 #: ../fish/guestfish-actions.pod:5240
18513 #: ../fish/guestfish-actions.pod:5242
18523 #: ../fish/guestfish-actions.pod:5244 ../src/guestfs-actions.pod:8072
18525 "Return the libguestfs version number that the program is linked against."
18529 #: ../fish/guestfish-actions.pod:5247 ../src/guestfs-actions.pod:8075
18531 "Note that because of dynamic linking this is not necessarily the version of "
18532 "libguestfs that you compiled against. You can compile the program, and then "
18533 "at runtime dynamically link against a completely different C<libguestfs.so> "
18538 #: ../fish/guestfish-actions.pod:5252 ../src/guestfs-actions.pod:8080
18540 "This call was added in version C<1.0.58>. In previous versions of "
18541 "libguestfs there was no way to get the version number. From C code you can "
18542 "use dynamic linker functions to find out if this symbol exists (if it "
18543 "doesn't, then it's an earlier version)."
18547 #: ../fish/guestfish-actions.pod:5258 ../src/guestfs-actions.pod:8086
18549 "The call returns a structure with four elements. The first three (C<major>, "
18550 "C<minor> and C<release>) are numbers and correspond to the usual version "
18551 "triplet. The fourth element (C<extra>) is a string and is normally empty, "
18552 "but may be used for distro-specific information."
18556 #: ../fish/guestfish-actions.pod:5264 ../src/guestfs-actions.pod:8092
18558 "To construct the original version string: C<$major.$minor.$release$extra>"
18562 #: ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:8095
18563 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
18564 msgstr "Див також: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
18567 #: ../fish/guestfish-actions.pod:5269
18569 "I<Note:> Don't use this call to test for availability of features. In "
18570 "enterprise distributions we backport features from later versions into "
18571 "earlier versions, making this an unreliable way to test for features. Use "
18572 "L</available> instead."
18576 #: ../fish/guestfish-actions.pod:5275
18581 #: ../fish/guestfish-actions.pod:5277
18584 " vfs-label device\n"
18587 " vfs-label пристрій\n"
18591 #: ../fish/guestfish-actions.pod:5279 ../src/guestfs-actions.pod:8115
18592 msgid "This returns the filesystem label of the filesystem on C<device>."
18596 #: ../fish/guestfish-actions.pod:5282 ../src/guestfs-actions.pod:8118
18597 msgid "If the filesystem is unlabeled, this returns the empty string."
18601 #: ../fish/guestfish-actions.pod:5284
18602 msgid "To find a filesystem from the label, use L</findfs-label>."
18606 #: ../fish/guestfish-actions.pod:5286
18611 #: ../fish/guestfish-actions.pod:5288
18614 " vfs-type device\n"
18617 " vfs-type пристрій\n"
18621 #: ../fish/guestfish-actions.pod:5290 ../src/guestfs-actions.pod:8133
18623 "This command gets the filesystem type corresponding to the filesystem on "
18628 #: ../fish/guestfish-actions.pod:5293 ../src/guestfs-actions.pod:8136
18630 "For most filesystems, the result is the name of the Linux VFS module which "
18631 "would be used to mount this filesystem if you mounted it without specifying "
18632 "the filesystem type. For example a string such as C<ext3> or C<ntfs>."
18636 #: ../fish/guestfish-actions.pod:5298
18641 #: ../fish/guestfish-actions.pod:5300
18644 " vfs-uuid device\n"
18647 " vfs-uuid пристрій\n"
18651 #: ../fish/guestfish-actions.pod:5302 ../src/guestfs-actions.pod:8152
18652 msgid "This returns the filesystem UUID of the filesystem on C<device>."
18656 #: ../fish/guestfish-actions.pod:5305 ../src/guestfs-actions.pod:8155
18657 msgid "If the filesystem does not have a UUID, this returns the empty string."
18661 #: ../fish/guestfish-actions.pod:5307
18662 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
18666 #: ../fish/guestfish-actions.pod:5309
18667 msgid "vg-activate"
18668 msgstr "vg-activate"
18671 #: ../fish/guestfish-actions.pod:5311
18674 " vg-activate true|false 'volgroups ...'\n"
18679 #: ../fish/guestfish-actions.pod:5313 ../src/guestfs-actions.pod:8171
18681 "This command activates or (if C<activate> is false) deactivates all logical "
18682 "volumes in the listed volume groups C<volgroups>."
18686 #: ../fish/guestfish-actions.pod:5316 ../src/guestfs-actions.pod:8174
18687 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
18691 #: ../fish/guestfish-actions.pod:5318 ../src/guestfs-actions.pod:8176
18693 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
18694 "activated or deactivated."
18698 #: ../fish/guestfish-actions.pod:5321
18699 msgid "vg-activate-all"
18700 msgstr "vg-activate-all"
18703 #: ../fish/guestfish-actions.pod:5323
18706 " vg-activate-all true|false\n"
18709 " vg-activate-all true|false\n"
18713 #: ../fish/guestfish-actions.pod:5325 ../src/guestfs-actions.pod:8189
18715 "This command activates or (if C<activate> is false) deactivates all logical "
18716 "volumes in all volume groups."
18720 #: ../fish/guestfish-actions.pod:5328 ../src/guestfs-actions.pod:8192
18721 msgid "This command is the same as running C<vgchange -a y|n>"
18725 #: ../fish/guestfish-actions.pod:5330
18730 #: ../fish/guestfish-actions.pod:5332
18733 " vgcreate volgroup 'physvols ...'\n"
18738 #: ../fish/guestfish-actions.pod:5334 ../src/guestfs-actions.pod:8205
18740 "This creates an LVM volume group called C<volgroup> from the non-empty list "
18741 "of physical volumes C<physvols>."
18745 #: ../fish/guestfish-actions.pod:5337
18750 #: ../fish/guestfish-actions.pod:5339
18753 " vglvuuids vgname\n"
18758 #: ../fish/guestfish-actions.pod:5341 ../src/guestfs-actions.pod:8218
18760 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
18761 "volumes created in this volume group."
18765 #: ../fish/guestfish-actions.pod:5344
18767 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
18768 "logical volumes and volume groups."
18772 #: ../fish/guestfish-actions.pod:5347
18773 msgid "See also L</vgpvuuids>."
18774 msgstr "Див. також L</vgpvuuids>."
18777 #: ../fish/guestfish-actions.pod:5349
18782 #: ../fish/guestfish-actions.pod:5351
18785 " vgpvuuids vgname\n"
18790 #: ../fish/guestfish-actions.pod:5353 ../src/guestfs-actions.pod:8238
18792 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
18793 "volumes that this volume group resides on."
18797 #: ../fish/guestfish-actions.pod:5356
18799 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
18800 "physical volumes and volume groups."
18804 #: ../fish/guestfish-actions.pod:5359
18805 msgid "See also L</vglvuuids>."
18806 msgstr "Див. також L</vglvuuids>."
18809 #: ../fish/guestfish-actions.pod:5361
18814 #: ../fish/guestfish-actions.pod:5363
18817 " vgremove vgname\n"
18822 #: ../fish/guestfish-actions.pod:5365 ../src/guestfs-actions.pod:8258
18823 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
18827 #: ../fish/guestfish-actions.pod:5367 ../src/guestfs-actions.pod:8260
18829 "This also forcibly removes all logical volumes in the volume group (if any)."
18833 #: ../fish/guestfish-actions.pod:5370
18838 #: ../fish/guestfish-actions.pod:5372
18841 " vgrename volgroup newvolgroup\n"
18846 #: ../fish/guestfish-actions.pod:5374 ../src/guestfs-actions.pod:8274
18847 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
18851 #: ../fish/guestfish-actions.pod:5376
18856 #: ../fish/guestfish-actions.pod:5378
18866 #: ../fish/guestfish-actions.pod:5380 ../src/guestfs-actions.pod:8285
18868 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
18873 #: ../fish/guestfish-actions.pod:5383 ../src/guestfs-actions.pod:8288
18875 "This returns a list of just the volume group names that were detected (eg. "
18880 #: ../fish/guestfish-actions.pod:5386
18881 msgid "See also L</vgs-full>."
18882 msgstr "Див. також L</vgs-full>."
18885 #: ../fish/guestfish-actions.pod:5388
18890 #: ../fish/guestfish-actions.pod:5390
18900 #: ../fish/guestfish-actions.pod:5392 ../src/guestfs-actions.pod:8304
18902 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
18903 "> command. The \"full\" version includes all fields."
18907 #: ../fish/guestfish-actions.pod:5395
18912 #: ../fish/guestfish-actions.pod:5397
18922 #: ../fish/guestfish-actions.pod:5399 ../src/guestfs-actions.pod:8318
18924 "This rescans all block devices and rebuilds the list of LVM physical "
18925 "volumes, volume groups and logical volumes."
18929 #: ../fish/guestfish-actions.pod:5402
18934 #: ../fish/guestfish-actions.pod:5404
18942 #: ../fish/guestfish-actions.pod:5406 ../src/guestfs-actions.pod:8331
18943 msgid "This command returns the UUID of the LVM VG named C<vgname>."
18947 #: ../fish/guestfish-actions.pod:5408
18952 #: ../fish/guestfish-actions.pod:5410
18962 #: ../fish/guestfish-actions.pod:5412 ../src/guestfs-actions.pod:8371
18964 "This command counts the characters in a file, using the C<wc -c> external "
18969 #: ../fish/guestfish-actions.pod:5415
18974 #: ../fish/guestfish-actions.pod:5417
18984 #: ../fish/guestfish-actions.pod:5419 ../src/guestfs-actions.pod:8384
18986 "This command counts the lines in a file, using the C<wc -l> external command."
18990 #: ../fish/guestfish-actions.pod:5422
18995 #: ../fish/guestfish-actions.pod:5424
19005 #: ../fish/guestfish-actions.pod:5426 ../src/guestfs-actions.pod:8397
19007 "This command counts the words in a file, using the C<wc -w> external command."
19011 #: ../fish/guestfish-actions.pod:5429
19016 #: ../fish/guestfish-actions.pod:5431
19019 " write path content\n"
19022 " write шлях дані\n"
19026 #: ../fish/guestfish-actions.pod:5433 ../src/guestfs-actions.pod:8412
19028 "This call creates a file called C<path>. The content of the file is the "
19029 "string C<content> (which can contain any 8 bit data)."
19033 #: ../fish/guestfish-actions.pod:5436
19034 msgid "See also L</write-append>."
19035 msgstr "Див. також L</write-append>."
19038 #: ../fish/guestfish-actions.pod:5441
19039 msgid "write-append"
19043 #: ../fish/guestfish-actions.pod:5443
19046 " write-append path content\n"
19051 #: ../fish/guestfish-actions.pod:5445 ../src/guestfs-actions.pod:8432
19053 "This call appends C<content> to the end of file C<path>. If C<path> does "
19054 "not exist, then a new file is created."
19058 #: ../fish/guestfish-actions.pod:5448
19059 msgid "See also L</write>."
19060 msgstr "Див. також L</write>."
19063 #: ../fish/guestfish-actions.pod:5453
19065 msgstr "write-file"
19068 #: ../fish/guestfish-actions.pod:5455
19071 " write-file path content size\n"
19076 #: ../fish/guestfish-actions.pod:5457 ../src/guestfs-actions.pod:8459
19078 "This call creates a file called C<path>. The contents of the file is the "
19079 "string C<content> (which can contain any 8 bit data), with length C<size>."
19083 #: ../fish/guestfish-actions.pod:5461 ../src/guestfs-actions.pod:8463
19085 "As a special case, if C<size> is C<0> then the length is calculated using "
19086 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
19090 #: ../fish/guestfish-actions.pod:5465 ../src/guestfs-actions.pod:8467
19092 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
19093 "I<not> work, even if the length is specified."
19097 #: ../fish/guestfish-actions.pod:5471
19099 "I<This function is deprecated.> In new code, use the L</write> call instead."
19103 #: ../fish/guestfish-actions.pod:5478
19108 #: ../fish/guestfish-actions.pod:5480
19111 " zegrep regex path\n"
19114 " zegrep формальний_вираз шлях\n"
19118 #: ../fish/guestfish-actions.pod:5482 ../src/guestfs-actions.pod:8484
19120 "This calls the external C<zegrep> program and returns the matching lines."
19124 #: ../fish/guestfish-actions.pod:5488
19129 #: ../fish/guestfish-actions.pod:5490
19132 " zegrepi regex path\n"
19137 #: ../fish/guestfish-actions.pod:5492 ../src/guestfs-actions.pod:8503
19139 "This calls the external C<zegrep -i> program and returns the matching lines."
19143 #: ../fish/guestfish-actions.pod:5498
19148 #: ../fish/guestfish-actions.pod:5500
19158 #: ../fish/guestfish-actions.pod:5502 ../src/guestfs-actions.pod:8521
19159 msgid "This command writes zeroes over the first few blocks of C<device>."
19163 #: ../fish/guestfish-actions.pod:5504 ../src/guestfs-actions.pod:8523
19165 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
19166 "securely wipe the device). It should be sufficient to remove any partition "
19167 "tables, filesystem superblocks and so on."
19171 #: ../fish/guestfish-actions.pod:5508 ../fish/guestfish-actions.pod:5523
19172 #: ../src/guestfs-actions.pod:8527 ../src/guestfs-actions.pod:8553
19174 "If blocks are already zero, then this command avoids writing zeroes. This "
19175 "prevents the underlying device from becoming non-sparse or growing "
19180 #: ../fish/guestfish-actions.pod:5512
19181 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
19185 #: ../fish/guestfish-actions.pod:5515
19186 msgid "zero-device"
19187 msgstr "zero-device"
19190 #: ../fish/guestfish-actions.pod:5517
19193 " zero-device device\n"
19196 " zero-device пристрій\n"
19200 #: ../fish/guestfish-actions.pod:5519
19202 "This command writes zeroes over the entire C<device>. Compare with L</zero> "
19203 "which just zeroes the first few blocks of a device."
19207 #: ../fish/guestfish-actions.pod:5527
19212 #: ../fish/guestfish-actions.pod:5529
19215 " zerofree device\n"
19218 " zerofree пристрій\n"
19222 #: ../fish/guestfish-actions.pod:5531 ../src/guestfs-actions.pod:8572
19224 "This runs the I<zerofree> program on C<device>. This program claims to zero "
19225 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
19226 "possible to compress the filesystem more effectively."
19230 #: ../fish/guestfish-actions.pod:5536 ../src/guestfs-actions.pod:8577
19231 msgid "You should B<not> run this program if the filesystem is mounted."
19235 #: ../fish/guestfish-actions.pod:5539 ../src/guestfs-actions.pod:8580
19237 "It is possible that using this program can damage the filesystem or data on "
19242 #: ../fish/guestfish-actions.pod:5542
19247 #: ../fish/guestfish-actions.pod:5544
19250 " zfgrep pattern path\n"
19253 " zfgrep шаблон шлях\n"
19257 #: ../fish/guestfish-actions.pod:5546 ../src/guestfs-actions.pod:8594
19259 "This calls the external C<zfgrep> program and returns the matching lines."
19263 #: ../fish/guestfish-actions.pod:5552
19268 #: ../fish/guestfish-actions.pod:5554
19271 " zfgrepi pattern path\n"
19274 " zfgrepi шаблон шлях\n"
19278 #: ../fish/guestfish-actions.pod:5556 ../src/guestfs-actions.pod:8613
19280 "This calls the external C<zfgrep -i> program and returns the matching lines."
19284 #: ../fish/guestfish-actions.pod:5562
19289 #: ../fish/guestfish-actions.pod:5564
19292 " zfile meth path\n"
19295 " zfile метод шлях\n"
19299 #: ../fish/guestfish-actions.pod:5566 ../src/guestfs-actions.pod:8639
19301 "This command runs C<file> after first decompressing C<path> using C<method>."
19305 #: ../fish/guestfish-actions.pod:5569 ../src/guestfs-actions.pod:8642
19306 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
19310 #: ../fish/guestfish-actions.pod:5571
19312 "Since 1.0.63, use L</file> instead which can now process compressed files."
19316 #: ../fish/guestfish-actions.pod:5574
19318 "I<This function is deprecated.> In new code, use the L</file> call instead."
19322 #: ../fish/guestfish-actions.pod:5581
19327 #: ../fish/guestfish-actions.pod:5583
19330 " zgrep regex path\n"
19333 " zgrep формальний_вираз шлях\n"
19337 #: ../fish/guestfish-actions.pod:5585 ../src/guestfs-actions.pod:8659
19339 "This calls the external C<zgrep> program and returns the matching lines."
19343 #: ../fish/guestfish-actions.pod:5591
19348 #: ../fish/guestfish-actions.pod:5593
19351 " zgrepi regex path\n"
19354 " zgrepi формальний_вираз шлях\n"
19358 #: ../fish/guestfish-actions.pod:5595 ../src/guestfs-actions.pod:8678
19360 "This calls the external C<zgrep -i> program and returns the matching lines."
19364 #: ../fish/guestfish-commands.pod:1
19369 #: ../fish/guestfish-commands.pod:3
19374 #: ../fish/guestfish-commands.pod:5
19377 " alloc filename size\n"
19382 #: ../fish/guestfish-commands.pod:7
19384 "This creates an empty (zeroed) file of the given size, and then adds so it "
19385 "can be further examined."
19389 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
19390 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
19394 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
19395 msgid "Size can be specified using standard suffixes, eg. C<1M>."
19399 #: ../fish/guestfish-commands.pod:14
19401 "To create a sparse file, use L</sparse> instead. To create a prepared disk "
19402 "image, see L</PREPARED DISK IMAGES>."
19406 #: ../fish/guestfish-commands.pod:17
19411 #: ../fish/guestfish-commands.pod:19
19414 " copy-in local [local ...] /remotedir\n"
19419 #: ../fish/guestfish-commands.pod:21
19421 "C<copy-in> copies local files or directories recursively into the disk "
19422 "image, placing them in the directory called C</remotedir> (which must "
19423 "exist). This guestfish meta-command turns into a sequence of L</tar-in> and "
19424 "other commands as necessary."
19428 #: ../fish/guestfish-commands.pod:26
19430 "Multiple local files and directories can be specified, but the last "
19431 "parameter must always be a remote directory. Wildcards cannot be used."
19435 #: ../fish/guestfish-commands.pod:30
19440 #: ../fish/guestfish-commands.pod:32
19443 " copy-out remote [remote ...] localdir\n"
19448 #: ../fish/guestfish-commands.pod:34
19450 "C<copy-out> copies remote files or directories recursively out of the disk "
19451 "image, placing them on the host disk in a local directory called C<localdir> "
19452 "(which must exist). This guestfish meta-command turns into a sequence of L</"
19453 "download>, L</tar-out> and other commands as necessary."
19457 #: ../fish/guestfish-commands.pod:40
19459 "Multiple remote files and directories can be specified, but the last "
19460 "parameter must always be a local directory. To download to the current "
19461 "directory, use C<.> as in:"
19465 #: ../fish/guestfish-commands.pod:44
19468 " copy-out /home .\n"
19471 " copy-out /home .\n"
19475 #: ../fish/guestfish-commands.pod:46
19477 "Wildcards cannot be used in the ordinary command, but you can use them with "
19478 "the help of L</glob> like this:"
19482 #: ../fish/guestfish-commands.pod:49
19485 " glob copy-out /home/* .\n"
19488 " glob copy-out /home/* .\n"
19492 #: ../fish/guestfish-commands.pod:51
19497 #: ../fish/guestfish-commands.pod:53
19500 " display filename\n"
19505 #: ../fish/guestfish-commands.pod:55
19507 "Use C<display> (a graphical display program) to display an image file. It "
19508 "downloads the file, and runs C<display> on it."
19512 #: ../fish/guestfish-commands.pod:58
19514 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
19515 "environment variable. For example to use the GNOME display program:"
19519 #: ../fish/guestfish-commands.pod:61
19522 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
19527 #: ../fish/guestfish-commands.pod:63
19528 msgid "See also L<display(1)>."
19529 msgstr "Див. також L<display(1)>."
19532 #: ../fish/guestfish-commands.pod:65
19537 #: ../fish/guestfish-commands.pod:67
19540 " echo [params ...]\n"
19543 " echo [параметри...]\n"
19547 #: ../fish/guestfish-commands.pod:69
19548 msgid "This echos the parameters to the terminal."
19552 #: ../fish/guestfish-commands.pod:71
19557 #: ../fish/guestfish-commands.pod:73
19562 #: ../fish/guestfish-commands.pod:75
19567 #: ../fish/guestfish-commands.pod:77
19573 " edit назва_файла\n"
19577 #: ../fish/guestfish-commands.pod:79
19579 "This is used to edit a file. It downloads the file, edits it locally using "
19580 "your editor, then uploads the result."
19584 #: ../fish/guestfish-commands.pod:82
19586 "The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
19587 "or C<emacs> you will get those corresponding editors."
19591 #: ../fish/guestfish-commands.pod:86
19596 #: ../fish/guestfish-commands.pod:88
19599 " glob command args...\n"
19602 " glob команда параметри...\n"
19606 #: ../fish/guestfish-commands.pod:90
19608 "Expand wildcards in any paths in the args list, and run C<command> "
19609 "repeatedly on each matching path."
19613 #: ../fish/guestfish-commands.pod:93
19614 msgid "See L</WILDCARDS AND GLOBBING>."
19615 msgstr "Див. L</WILDCARDS AND GLOBBING>."
19618 #: ../fish/guestfish-commands.pod:95
19623 #: ../fish/guestfish-commands.pod:97
19626 " hexedit <filename|device>\n"
19627 " hexedit <filename|device> <max>\n"
19628 " hexedit <filename|device> <start> <max>\n"
19633 #: ../fish/guestfish-commands.pod:101
19635 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
19640 #: ../fish/guestfish-commands.pod:104
19642 "This command works by downloading potentially the whole file or device, "
19643 "editing it locally, then uploading it. If the file or device is large, you "
19644 "have to specify which part you wish to edit by using C<max> and/or C<start> "
19645 "C<max> parameters. C<start> and C<max> are specified in bytes, with the "
19646 "usual modifiers allowed such as C<1M> (1 megabyte)."
19650 #: ../fish/guestfish-commands.pod:111
19651 msgid "For example to edit the first few sectors of a disk you might do:"
19655 #: ../fish/guestfish-commands.pod:114
19658 " hexedit /dev/sda 1M\n"
19661 " hexedit /dev/sda 1M\n"
19665 #: ../fish/guestfish-commands.pod:116
19667 "which would allow you to edit anywhere within the first megabyte of the disk."
19671 #: ../fish/guestfish-commands.pod:119
19672 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
19676 #: ../fish/guestfish-commands.pod:121
19679 " hexedit /dev/sda1 0x400 0x400\n"
19682 " hexedit /dev/sda1 0x400 0x400\n"
19686 #: ../fish/guestfish-commands.pod:123
19687 msgid "(assuming the superblock is in the standard location)."
19691 #: ../fish/guestfish-commands.pod:125
19693 "This command requires the external L<hexedit(1)> program. You can specify "
19694 "another program to use by setting the C<HEXEDITOR> environment variable."
19698 #: ../fish/guestfish-commands.pod:129
19699 msgid "See also L</hexdump>."
19700 msgstr "Див. також L</hexdump>."
19703 #: ../fish/guestfish-commands.pod:131
19708 #: ../fish/guestfish-commands.pod:133
19716 #: ../fish/guestfish-commands.pod:135
19718 "Change the local directory, ie. the current directory of guestfish itself."
19722 #: ../fish/guestfish-commands.pod:138
19723 msgid "Note that C<!cd> won't do what you might expect."
19727 #: ../fish/guestfish-commands.pod:140
19732 #: ../fish/guestfish-commands.pod:142
19737 #: ../fish/guestfish-commands.pod:144
19747 #: ../fish/guestfish-commands.pod:146
19748 msgid "Opens the manual page for guestfish."
19752 #: ../fish/guestfish-commands.pod:148
19757 #: ../fish/guestfish-commands.pod:150
19762 #: ../fish/guestfish-commands.pod:152
19770 #: ../fish/guestfish-commands.pod:154
19778 #: ../fish/guestfish-commands.pod:156
19779 msgid "This is used to view a file."
19783 #: ../fish/guestfish-commands.pod:158
19785 "The default viewer is C<$PAGER>. However if you use the alternate command "
19786 "C<less> you will get the C<less> command specifically."
19790 #: ../fish/guestfish-commands.pod:161
19795 #: ../fish/guestfish-commands.pod:163
19803 #: ../fish/guestfish-commands.pod:165
19805 "Close and reopen the libguestfs handle. It is not necessary to use this "
19806 "normally, because the handle is closed properly when guestfish exits. "
19807 "However this is occasionally useful for testing."
19811 #: ../fish/guestfish-commands.pod:169
19816 #: ../fish/guestfish-commands.pod:171
19819 " setenv VAR value\n"
19824 #: ../fish/guestfish-commands.pod:173
19825 msgid "Set the environment variable C<VAR> to the string C<value>."
19829 #: ../fish/guestfish-commands.pod:175
19831 "To print the value of an environment variable use a shell command such as:"
19835 #: ../fish/guestfish-commands.pod:178
19843 #: ../fish/guestfish-commands.pod:180
19848 #: ../fish/guestfish-commands.pod:182
19851 " sparse filename size\n"
19856 #: ../fish/guestfish-commands.pod:184
19858 "This creates an empty sparse file of the given size, and then adds so it can "
19859 "be further examined."
19863 #: ../fish/guestfish-commands.pod:187
19865 "In all respects it works the same as the L</alloc> command, except that the "
19866 "image file is allocated sparsely, which means that disk blocks are not "
19867 "assigned to the file until they are needed. Sparse disk files only use "
19868 "space when written to, but they are slower and there is a danger you could "
19869 "run out of real disk space during a write operation."
19873 #: ../fish/guestfish-commands.pod:197
19878 #: ../fish/guestfish-commands.pod:199
19888 #: ../fish/guestfish-commands.pod:201
19890 "This command returns a list of the optional groups known to the daemon, and "
19891 "indicates which ones are supported by this build of the libguestfs appliance."
19895 #: ../fish/guestfish-commands.pod:205
19896 msgid "See also L<guestfs(3)/AVAILABILITY>."
19897 msgstr "Див. також L<guestfs(3)/AVAILABILITY>."
19900 #: ../fish/guestfish-commands.pod:207
19905 #: ../fish/guestfish-commands.pod:209
19908 " time command args...\n"
19913 #: ../fish/guestfish-commands.pod:211
19915 "Run the command as usual, but print the elapsed time afterwards. This can "
19916 "be useful for benchmarking operations."
19920 #: ../fish/guestfish-commands.pod:214
19925 #: ../fish/guestfish-commands.pod:216
19933 #: ../fish/guestfish-commands.pod:218
19934 msgid "Remove C<VAR> from the environment."
19938 #: ../fish/guestfish.pod:5
19939 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
19943 #: ../fish/guestfish.pod:9
19946 " guestfish [--options] [commands]\n"
19951 #: ../fish/guestfish.pod:11
19959 #: ../fish/guestfish.pod:13
19962 " guestfish [--ro|--rw] -a disk.img\n"
19967 #: ../fish/guestfish.pod:15
19970 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
19975 #: ../fish/guestfish.pod:17
19978 " guestfish -d libvirt-domain\n"
19983 #: ../fish/guestfish.pod:19
19986 " guestfish [--ro|--rw] -a disk.img -i\n"
19991 #: ../fish/guestfish.pod:21
19994 " guestfish -d libvirt-domain -i\n"
19999 #: ../fish/guestfish.pod:25
20001 "Using guestfish in read/write mode on live virtual machines can be "
20002 "dangerous, potentially causing disk corruption. Use the I<--ro> (read-only) "
20003 "option to use guestfish safely if the disk image or virtual machine might be "
20008 #: ../fish/guestfish.pod:32
20010 "Guestfish is a shell and command-line tool for examining and modifying "
20011 "virtual machine filesystems. It uses libguestfs and exposes all of the "
20012 "functionality of the guestfs API, see L<guestfs(3)>."
20016 #: ../fish/guestfish.pod:36
20018 "Guestfish gives you structured access to the libguestfs API, from shell "
20019 "scripts or the command line or interactively. If you want to rescue a "
20020 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
20025 #: ../fish/guestfish.pod:43
20026 msgid "As an interactive shell"
20030 #: ../fish/guestfish.pod:45
20038 #: ../fish/guestfish.pod:47
20041 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
20042 " editing virtual machine filesystems.\n"
20047 #: ../fish/guestfish.pod:50
20050 " Type: 'help' for a list of commands\n"
20051 " 'man' to read the manual\n"
20052 " 'quit' to quit the shell\n"
20057 #: ../fish/guestfish.pod:54
20060 " ><fs> add-ro disk.img\n"
20062 " ><fs> list-filesystems\n"
20063 " /dev/sda1: ext4\n"
20064 " /dev/vg_guest/lv_root: ext4\n"
20065 " /dev/vg_guest/lv_swap: swap\n"
20066 " ><fs> mount /dev/vg_guest/lv_root /\n"
20067 " ><fs> cat /etc/fstab\n"
20069 " # Created by anaconda\n"
20076 #: ../fish/guestfish.pod:67
20077 msgid "From shell scripts"
20081 #: ../fish/guestfish.pod:69
20082 msgid "Create a new C</etc/motd> file in a guest or disk image:"
20086 #: ../fish/guestfish.pod:71
20089 " guestfish <<_EOF_\n"
20092 " mount /dev/vg_guest/lv_root /\n"
20093 " write /etc/motd \"Welcome, new users\"\n"
20099 #: ../fish/guestfish.pod:78
20100 msgid "List the LVM logical volumes in a disk image:"
20104 #: ../fish/guestfish.pod:80
20107 " guestfish -a disk.img --ro <<_EOF_\n"
20115 #: ../fish/guestfish.pod:85
20116 msgid "List all the filesystems in a disk image:"
20120 #: ../fish/guestfish.pod:87
20123 " guestfish -a disk.img --ro <<_EOF_\n"
20125 " list-filesystems\n"
20131 #: ../fish/guestfish.pod:92
20132 msgid "On one command line"
20136 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
20137 msgid "Update C</etc/resolv.conf> in a guest:"
20141 #: ../fish/guestfish.pod:96
20145 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
20146 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
20151 #: ../fish/guestfish.pod:100
20152 msgid "Edit C</boot/grub/grub.conf> interactively:"
20156 #: ../fish/guestfish.pod:102
20159 " guestfish --rw --add disk.img \\\n"
20160 " --mount /dev/vg_guest/lv_root \\\n"
20161 " --mount /dev/sda1:/boot \\\n"
20162 " edit /boot/grub/grub.conf\n"
20167 #: ../fish/guestfish.pod:107
20168 msgid "Mount disks automatically"
20172 #: ../fish/guestfish.pod:109
20174 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
20178 #: ../fish/guestfish.pod:112
20181 " guestfish --ro -a disk.img -i cat /etc/group\n"
20186 #: ../fish/guestfish.pod:114
20189 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
20194 #: ../fish/guestfish.pod:116
20195 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
20199 #: ../fish/guestfish.pod:118
20202 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
20207 #: ../fish/guestfish.pod:120
20208 msgid "As a script interpreter"
20212 #: ../fish/guestfish.pod:122
20213 msgid "Create a 100MB disk containing an ext2-formatted partition:"
20217 #: ../fish/guestfish.pod:124
20220 " #!/usr/bin/guestfish -f\n"
20221 " sparse test1.img 100M\n"
20223 " part-disk /dev/sda mbr\n"
20224 " mkfs ext2 /dev/sda1\n"
20229 #: ../fish/guestfish.pod:130
20230 msgid "Start with a prepared disk"
20234 #: ../fish/guestfish.pod:132
20236 "An alternate way to create a 100MB disk called C<test1.img> containing a "
20237 "single ext2-formatted partition:"
20241 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
20244 " guestfish -N fs\n"
20249 #: ../fish/guestfish.pod:137
20250 msgid "To list what is available do:"
20254 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
20257 " guestfish -N help | less\n"
20262 #: ../fish/guestfish.pod:141
20263 msgid "Remote control"
20264 msgstr "Дистанційне керування"
20267 #: ../fish/guestfish.pod:143
20270 " eval \"`guestfish --listen`\"\n"
20271 " guestfish --remote add-ro disk.img\n"
20272 " guestfish --remote run\n"
20273 " guestfish --remote lvs\n"
20276 " eval \"`guestfish --listen`\"\n"
20277 " guestfish --remote add-ro disk.img\n"
20278 " guestfish --remote run\n"
20279 " guestfish --remote lvs\n"
20283 #: ../fish/guestfish.pod:154
20284 msgid "Displays general help on options."
20288 #: ../fish/guestfish.pod:158
20289 msgid "B<--cmd-help>"
20290 msgstr "B<--cmd-help>"
20293 #: ../fish/guestfish.pod:160
20294 msgid "Lists all available guestfish commands."
20298 #: ../fish/guestfish.pod:162
20300 msgstr "B<-h команда>"
20303 #: ../fish/guestfish.pod:164
20304 msgid "B<--cmd-help cmd>"
20305 msgstr "B<--cmd-help команда>"
20308 #: ../fish/guestfish.pod:166
20309 msgid "Displays detailed help on a single command C<cmd>."
20313 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
20314 msgid "B<-a image>"
20315 msgstr "B<-a образ>"
20318 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
20319 msgid "B<--add image>"
20320 msgstr "B<--add образ>"
20323 #: ../fish/guestfish.pod:172
20324 msgid "Add a block device or virtual machine image to the shell."
20328 #: ../fish/guestfish.pod:177
20330 "Using this flag is mostly equivalent to using the C<add> command, with "
20331 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
20332 "the I<--format=...> flag was given."
20336 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
20338 "When used in conjunction with the I<-d> option, this specifies the libvirt "
20339 "URI to use. The default is to use the default libvirt connection."
20343 #: ../fish/guestfish.pod:189
20348 #: ../fish/guestfish.pod:191
20350 "If using the I<--listen> option and a csh-like shell, use this option. See "
20351 "section L</REMOTE CONTROL AND CSH> below."
20355 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
20356 msgid "B<-d libvirt-domain>"
20357 msgstr "B<-d домен-libvirt>"
20360 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
20361 msgid "B<--domain libvirt-domain>"
20362 msgstr "B<--domain домен-libvirt>"
20365 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
20367 "Add disks from the named libvirt domain. If the I<--ro> option is also "
20368 "used, then any libvirt domain can be used. However in write mode, only "
20369 "libvirt domains which are shut down can be named here."
20373 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
20374 msgid "Domain UUIDs can be used instead of names."
20378 #: ../fish/guestfish.pod:204
20380 "Using this flag is mostly equivalent to using the C<add-domain> command, "
20381 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
20382 "if the I<--format:...> flag was given."
20386 #: ../fish/guestfish.pod:208
20391 #: ../fish/guestfish.pod:210
20392 msgid "B<--no-dest-paths>"
20393 msgstr "B<--no-dest-paths>"
20396 #: ../fish/guestfish.pod:212
20398 "Don't tab-complete paths on the guest filesystem. It is useful to be able "
20399 "to hit the tab key to complete paths on the guest filesystem, but this "
20400 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
20401 "allow this feature to be disabled."
20405 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
20407 "When prompting for keys and passphrases, guestfish normally turns echoing "
20408 "off so you cannot see what you are typing. If you are not worried about "
20409 "Tempest attacks and there is no one else in the room you can specify this "
20410 "flag to see what you are typing."
20414 #: ../fish/guestfish.pod:224
20416 msgstr "B<-f файл>"
20419 #: ../fish/guestfish.pod:226
20420 msgid "B<--file file>"
20421 msgstr "B<--file файл>"
20424 #: ../fish/guestfish.pod:228
20425 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
20429 #: ../fish/guestfish.pod:231
20432 " #!/usr/bin/guestfish -f\n"
20435 " #!/usr/bin/guestfish -f\n"
20439 #: ../fish/guestfish.pod:244
20442 " guestfish --format=raw -a disk.img\n"
20445 " guestfish --format=raw -a disk.img\n"
20449 #: ../fish/guestfish.pod:248
20452 " guestfish --format=raw -a disk.img --format -a another.img\n"
20455 " guestfish --format=raw -a disk.img --format -a another.img\n"
20459 #: ../fish/guestfish.pod:253
20461 "If you have untrusted raw-format guest disk images, you should use this "
20462 "option to specify the disk format. This avoids a possible security problem "
20463 "with malicious guests (CVE-2010-3851). See also L</add-drive-opts>."
20467 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
20468 msgid "B<--inspector>"
20469 msgstr "B<--inspector>"
20472 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
20474 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
20475 "system and mount filesystems as they would be mounted on the real virtual "
20480 #: ../fish/guestfish.pod:266
20481 msgid "Typical usage is either:"
20485 #: ../fish/guestfish.pod:268
20488 " guestfish -d myguest -i\n"
20491 " guestfish -d myguest -i\n"
20495 #: ../fish/guestfish.pod:270
20496 msgid "(for an inactive libvirt domain called I<myguest>), or:"
20500 #: ../fish/guestfish.pod:272
20503 " guestfish --ro -d myguest -i\n"
20506 " guestfish --ro -d myguest -i\n"
20510 #: ../fish/guestfish.pod:274
20511 msgid "(for active domains, readonly), or specify the block device directly:"
20515 #: ../fish/guestfish.pod:276
20518 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
20521 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
20525 #: ../fish/guestfish.pod:278
20527 "Note that the command line syntax changed slightly over older versions of "
20528 "guestfish. You can still use the old syntax:"
20532 #: ../fish/guestfish.pod:281
20535 " guestfish [--ro] -i disk.img\n"
20538 " guestfish [--ro] -i disk.img\n"
20542 #: ../fish/guestfish.pod:283
20545 " guestfish [--ro] -i libvirt-domain\n"
20550 #: ../fish/guestfish.pod:285
20552 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
20553 "then using other commands to mount the filesystems that were found."
20557 #: ../fish/guestfish.pod:294
20558 msgid "B<--listen>"
20559 msgstr "B<--listen>"
20562 #: ../fish/guestfish.pod:296
20564 "Fork into the background and listen for remote commands. See section L</"
20565 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
20569 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
20574 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
20576 "Connect to a live virtual machine. (Experimental, see L<guestfs(3)/"
20577 "ATTACHING TO RUNNING DAEMONS>)."
20581 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
20582 msgid "B<-m dev[:mountpoint[:options]]>"
20583 msgstr "B<-m пристрій[:точка_монтування[:параметри]]>"
20586 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
20587 msgid "B<--mount dev[:mountpoint[:options]]>"
20588 msgstr "B<--mount пристрій[:точка_монтування[:параметри]]>"
20591 #: ../fish/guestfish.pod:308
20592 msgid "Mount the named partition or logical volume on the given mountpoint."
20596 #: ../fish/guestfish.pod:310
20597 msgid "If the mountpoint is omitted, it defaults to C</>."
20601 #: ../fish/guestfish.pod:312
20602 msgid "You have to mount something on C</> before most commands will work."
20606 #: ../fish/guestfish.pod:314
20608 "If any I<-m> or I<--mount> options are given, the guest is automatically "
20613 #: ../fish/guestfish.pod:317
20615 "If you don't know what filesystems a disk image contains, you can either run "
20616 "guestfish without this option, then list the partitions, filesystems and LVs "
20617 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
20618 "commands), or you can use the L<virt-filesystems(1)> program."
20622 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
20624 "The third (and rarely used) part of the mount parameter is the list of mount "
20625 "options used to mount the underlying filesystem. If this is not given, then "
20626 "the mount options are either the empty string or C<ro> (the latter if the "
20627 "I<--ro> flag is used). By specifying the mount options, you override this "
20628 "default choice. Probably the only time you would use this is to enable ACLs "
20629 "and/or extended attributes if the filesystem can support them:"
20633 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
20636 " -m /dev/sda1:/:acl,user_xattr\n"
20641 #: ../fish/guestfish.pod:333
20642 msgid "Using this flag is equivalent to using the C<mount-options> command."
20646 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
20647 #: ../resize/virt-resize.pod:435
20652 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
20653 msgid "B<--no-sync>"
20654 msgstr "B<--no-sync>"
20657 #: ../fish/guestfish.pod:339
20659 "Disable autosync. This is enabled by default. See the discussion of "
20660 "autosync in the L<guestfs(3)> manpage."
20664 #: ../fish/guestfish.pod:342
20669 #: ../fish/guestfish.pod:344
20670 msgid "B<--new type>"
20671 msgstr "B<--new тип>"
20674 #: ../fish/guestfish.pod:346
20676 msgstr "B<-N help>"
20679 #: ../fish/guestfish.pod:348
20681 "Prepare a fresh disk image formatted as \"type\". This is an alternative to "
20682 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
20683 "preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
20688 #: ../fish/guestfish.pod:353
20689 msgid "B<--progress-bars>"
20690 msgstr "B<--progress-bars>"
20693 #: ../fish/guestfish.pod:355
20694 msgid "Enable progress bars, even when guestfish is used non-interactively."
20698 #: ../fish/guestfish.pod:357
20700 "Progress bars are enabled by default when guestfish is used as an "
20701 "interactive shell."
20705 #: ../fish/guestfish.pod:360
20706 msgid "B<--no-progress-bars>"
20707 msgstr "B<--no-progress-bars>"
20710 #: ../fish/guestfish.pod:362
20711 msgid "Disable progress bars."
20715 #: ../fish/guestfish.pod:364
20716 msgid "B<--remote[=pid]>"
20717 msgstr "B<--remote[=pid]>"
20720 #: ../fish/guestfish.pod:366
20722 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
20723 "CONTROL GUESTFISH OVER A SOCKET> below."
20727 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
20728 #: ../rescue/virt-rescue.pod:189
20733 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
20734 #: ../rescue/virt-rescue.pod:191
20739 #: ../fish/guestfish.pod:373
20741 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20742 "mounts are done read-only."
20746 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:195
20748 "The option must always be used if the disk image or virtual machine might be "
20749 "running, and is generally recommended in cases where you don't need write "
20750 "access to the disk."
20754 #: ../fish/guestfish.pod:380
20756 "Note that prepared disk images created with I<-N> are not affected by this "
20757 "option. Also commands like C<add> are not affected - you have to specify "
20758 "the C<readonly:true> option explicitly if you need it."
20762 #: ../fish/guestfish.pod:384
20763 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
20767 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
20768 #: ../rescue/virt-rescue.pod:201
20769 msgid "B<--selinux>"
20770 msgstr "B<--selinux>"
20773 #: ../fish/guestfish.pod:388
20774 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
20778 #: ../fish/guestfish.pod:394
20780 "Enable very verbose messages. This is particularly useful if you find a bug."
20784 #: ../fish/guestfish.pod:401
20785 msgid "Display the guestfish / libguestfs version number and exit."
20789 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
20790 #: ../rescue/virt-rescue.pod:231
20795 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
20796 #: ../rescue/virt-rescue.pod:233
20801 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
20803 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20804 "mounts are done read-write."
20808 #: ../fish/guestfish.pod:410
20809 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
20813 #: ../fish/guestfish.pod:414
20814 msgid "Echo each command before executing it."
20818 #: ../fish/guestfish.pod:418
20819 msgid "COMMANDS ON COMMAND LINE"
20823 #: ../fish/guestfish.pod:420
20825 "Any additional (non-option) arguments are treated as commands to execute."
20829 #: ../fish/guestfish.pod:423
20831 "Commands to execute should be separated by a colon (C<:>), where the colon "
20832 "is a separate parameter. Thus:"
20836 #: ../fish/guestfish.pod:426
20839 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
20844 #: ../fish/guestfish.pod:428
20846 "If there are no additional arguments, then we enter a shell, either an "
20847 "interactive shell with a prompt (if the input is a terminal) or a non-"
20848 "interactive shell."
20852 #: ../fish/guestfish.pod:432
20854 "In either command line mode or non-interactive shell, the first command that "
20855 "gives an error causes the whole shell to exit. In interactive mode (with a "
20856 "prompt) if a command fails, you can continue to enter commands."
20860 #: ../fish/guestfish.pod:437
20861 msgid "USING launch (OR run)"
20865 #: ../fish/guestfish.pod:439
20867 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
20868 "then launch it, then mount any disks you need, and finally issue actions/"
20869 "commands. So the general order of the day is:"
20873 #: ../fish/guestfish.pod:447
20874 msgid "add or -a/--add"
20878 #: ../fish/guestfish.pod:451
20879 msgid "launch (aka run)"
20883 #: ../fish/guestfish.pod:455
20884 msgid "mount or -m/--mount"
20888 #: ../fish/guestfish.pod:459
20889 msgid "any other commands"
20893 #: ../fish/guestfish.pod:463
20895 "C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
20896 "guest before mounting or performing any other commands."
20900 #: ../fish/guestfish.pod:466
20902 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
20903 "I<--new> options were given then C<run> is done automatically, simply "
20904 "because guestfish can't perform the action you asked for without doing this."
20908 #: ../fish/guestfish.pod:471
20909 msgid "OPENING DISKS FOR READ AND WRITE"
20913 #: ../fish/guestfish.pod:473
20915 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
20916 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
20917 "I<-i> and I<-m> open disk images read-only or for writing."
20921 #: ../fish/guestfish.pod:478
20923 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
20924 "opening disk images supplied on the command line for write. To open a disk "
20925 "image read-only you have to do I<-a image --ro>."
20929 #: ../fish/guestfish.pod:482
20931 "This matters: If you accidentally open a live VM disk image writable then "
20932 "you will cause irreversible disk corruption."
20936 #: ../fish/guestfish.pod:485
20938 "In a future libguestfs we intend to change the default the other way. Disk "
20939 "images will be opened read-only. You will have to either specify "
20940 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
20941 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
20942 "access for disk images specified by those other command line options."
20946 #: ../fish/guestfish.pod:492
20948 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
20949 "which does nothing (it is already the default). However it is highly "
20950 "recommended that you use this option to indicate that you need write access, "
20951 "and prepare your scripts for the day when this option will be required for "
20956 #: ../fish/guestfish.pod:498
20958 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
20959 "other libguestfs program apart from guestfish and guestmount."
20963 #: ../fish/guestfish.pod:501
20968 #: ../fish/guestfish.pod:503
20970 "You can quote ordinary parameters using either single or double quotes. For "
20975 #: ../fish/guestfish.pod:506
20978 " add \"file with a space.img\"\n"
20983 #: ../fish/guestfish.pod:508
20986 " rm '/file name'\n"
20991 #: ../fish/guestfish.pod:510
20999 #: ../fish/guestfish.pod:512
21001 "A few commands require a list of strings to be passed. For these, use a "
21002 "whitespace-separated list, enclosed in quotes. Strings containing "
21003 "whitespace to be passed through must be enclosed in single quotes. A "
21004 "literal single quote must be escaped with a backslash."
21008 #: ../fish/guestfish.pod:517
21011 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
21012 " command \"/bin/echo 'foo bar'\"\n"
21013 " command \"/bin/echo \\'foo\\'\"\n"
21018 #: ../fish/guestfish.pod:521
21019 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
21023 #: ../fish/guestfish.pod:523
21025 "In double-quoted arguments (only) use backslash to insert special characters:"
21029 #: ../fish/guestfish.pod:528
21034 #: ../fish/guestfish.pod:530
21035 msgid "Alert (bell) character."
21036 msgstr "Символ гудка (дзвінка)."
21039 #: ../fish/guestfish.pod:532
21044 #: ../fish/guestfish.pod:534
21045 msgid "Backspace character."
21049 #: ../fish/guestfish.pod:536
21054 #: ../fish/guestfish.pod:538
21055 msgid "Form feed character."
21059 #: ../fish/guestfish.pod:540
21064 #: ../fish/guestfish.pod:542
21065 msgid "Newline character."
21069 #: ../fish/guestfish.pod:544
21074 #: ../fish/guestfish.pod:546
21075 msgid "Carriage return character."
21076 msgstr "Символ повернення каретки."
21079 #: ../fish/guestfish.pod:548
21084 #: ../fish/guestfish.pod:550
21085 msgid "Horizontal tab character."
21086 msgstr "Символ горизонтальної табуляції"
21089 #: ../fish/guestfish.pod:552
21094 #: ../fish/guestfish.pod:554
21095 msgid "Vertical tab character."
21096 msgstr "Символ вертикальної табуляції."
21099 #: ../fish/guestfish.pod:556
21104 #: ../fish/guestfish.pod:558
21105 msgid "A literal double quote character."
21109 #: ../fish/guestfish.pod:560
21114 #: ../fish/guestfish.pod:562
21116 "A character with octal value I<ooo>. There must be precisely 3 octal digits "
21121 #: ../fish/guestfish.pod:565
21126 #: ../fish/guestfish.pod:567
21128 "A character with hex value I<hh>. There must be precisely 2 hex digits."
21132 #: ../fish/guestfish.pod:570
21134 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
21139 #: ../fish/guestfish.pod:573
21144 #: ../fish/guestfish.pod:575
21145 msgid "A literal backslash character."
21149 #: ../fish/guestfish.pod:579
21150 msgid "OPTIONAL ARGUMENTS"
21154 #: ../fish/guestfish.pod:581
21156 "Some commands take optional arguments. These arguments appear in this "
21157 "documentation as C<[argname:..]>. You can use them as in these examples:"
21161 #: ../fish/guestfish.pod:585
21164 " add-drive-opts filename\n"
21169 #: ../fish/guestfish.pod:587
21172 " add-drive-opts filename readonly:true\n"
21177 #: ../fish/guestfish.pod:589
21180 " add-drive-opts filename format:qcow2 readonly:false\n"
21185 #: ../fish/guestfish.pod:591
21187 "Each optional argument can appear at most once. All optional arguments must "
21188 "appear after the required ones."
21192 #: ../fish/guestfish.pod:594
21197 #: ../fish/guestfish.pod:596
21199 "This section applies to all commands which can take integers as parameters."
21203 #: ../fish/guestfish.pod:599
21204 msgid "SIZE SUFFIX"
21208 #: ../fish/guestfish.pod:601
21210 "When the command takes a parameter measured in bytes, you can use one of the "
21211 "following suffixes to specify kilobytes, megabytes and larger sizes:"
21215 #: ../fish/guestfish.pod:607
21216 msgid "B<k> or B<K> or B<KiB>"
21217 msgstr "B<k>, B<K> або B<KiB>"
21220 #: ../fish/guestfish.pod:609
21221 msgid "The size in kilobytes (multiplied by 1024)."
21222 msgstr "Розмір у кілобайтах (у одному кілобайті 1024 байтів)."
21225 #: ../fish/guestfish.pod:611
21230 #: ../fish/guestfish.pod:613
21231 msgid "The size in SI 1000 byte units."
21232 msgstr "Розмір у одиницях СІ: 1000 байтів."
21235 #: ../fish/guestfish.pod:615
21236 msgid "B<M> or B<MiB>"
21237 msgstr "B<M> або B<MiB>"
21240 #: ../fish/guestfish.pod:617
21241 msgid "The size in megabytes (multiplied by 1048576)."
21242 msgstr "Розмір у мегабайтах (у одному мегабайті 1048576 байтів)."
21245 #: ../fish/guestfish.pod:619
21250 #: ../fish/guestfish.pod:621
21251 msgid "The size in SI 1000000 byte units."
21252 msgstr "Розмір у одиницях СІ: 1000000 байтів."
21255 #: ../fish/guestfish.pod:623
21256 msgid "B<G> or B<GiB>"
21257 msgstr "B<G> або B<GiB>"
21260 #: ../fish/guestfish.pod:625
21261 msgid "The size in gigabytes (multiplied by 2**30)."
21262 msgstr "Розмір у гігабайтах (з множником 2**30)."
21265 #: ../fish/guestfish.pod:627
21270 #: ../fish/guestfish.pod:629
21271 msgid "The size in SI 10**9 byte units."
21272 msgstr "Розмір у одиницях СІ: 10**9 байтів."
21275 #: ../fish/guestfish.pod:631
21276 msgid "B<T> or B<TiB>"
21277 msgstr "B<T> або B<TiB>"
21280 #: ../fish/guestfish.pod:633
21281 msgid "The size in terabytes (multiplied by 2**40)."
21282 msgstr "Розмір у терабайтах (з множником 2**40)."
21285 #: ../fish/guestfish.pod:635
21290 #: ../fish/guestfish.pod:637
21291 msgid "The size in SI 10**12 byte units."
21292 msgstr "Розмір у одиницях СІ: 10**12 байтів."
21295 #: ../fish/guestfish.pod:639
21296 msgid "B<P> or B<PiB>"
21297 msgstr "B<P> або B<PiB>"
21300 #: ../fish/guestfish.pod:641
21301 msgid "The size in petabytes (multiplied by 2**50)."
21302 msgstr "Розмір у петабайтах (у одному петабайті 2**50 байтів)."
21305 #: ../fish/guestfish.pod:643
21310 #: ../fish/guestfish.pod:645
21311 msgid "The size in SI 10**15 byte units."
21312 msgstr "Розмір у одиницях СІ: 10**15 байтів."
21315 #: ../fish/guestfish.pod:647
21316 msgid "B<E> or B<EiB>"
21317 msgstr "B<E> або B<EiB>"
21320 #: ../fish/guestfish.pod:649
21321 msgid "The size in exabytes (multiplied by 2**60)."
21322 msgstr "Розмір у ексабайтах (у одному ексабайті 2**60 байтів)."
21325 #: ../fish/guestfish.pod:651
21330 #: ../fish/guestfish.pod:653
21331 msgid "The size in SI 10**18 byte units."
21332 msgstr "Розмір у одиницях СІ: 10**18 байтів."
21335 #: ../fish/guestfish.pod:655
21336 msgid "B<Z> or B<ZiB>"
21337 msgstr "B<Z> або B<ZiB>"
21340 #: ../fish/guestfish.pod:657
21341 msgid "The size in zettabytes (multiplied by 2**70)."
21342 msgstr "Розмір у зетабайтах (у одному зетабайті 2**70 байтів)."
21345 #: ../fish/guestfish.pod:659
21350 #: ../fish/guestfish.pod:661
21351 msgid "The size in SI 10**21 byte units."
21352 msgstr "Розмір у одиницях СІ: 10**21 байтів."
21355 #: ../fish/guestfish.pod:663
21356 msgid "B<Y> or B<YiB>"
21357 msgstr "B<Y> або B<YiB>"
21360 #: ../fish/guestfish.pod:665
21361 msgid "The size in yottabytes (multiplied by 2**80)."
21362 msgstr "Розмір у йотабайтах (у одному йотабайті 2**80 байтів)."
21365 #: ../fish/guestfish.pod:667
21370 #: ../fish/guestfish.pod:669
21371 msgid "The size in SI 10**24 byte units."
21372 msgstr "Розмір у одиницях СІ: 10**24 байтів."
21375 #: ../fish/guestfish.pod:675
21378 " truncate-size /file 1G\n"
21383 #: ../fish/guestfish.pod:677
21384 msgid "would truncate the file to 1 gigabyte."
21388 #: ../fish/guestfish.pod:679
21390 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
21391 "the parameter to L</memsize> is specified in megabytes already). Adding a "
21392 "suffix will probably not do what you expect."
21396 #: ../fish/guestfish.pod:683
21397 msgid "OCTAL AND HEXADECIMAL NUMBERS"
21401 #: ../fish/guestfish.pod:685
21403 "For specifying the radix (base) use the C convention: C<0> to prefix an "
21404 "octal number or C<0x> to prefix a hexadecimal number. For example:"
21408 #: ../fish/guestfish.pod:688
21411 " 1234 decimal number 1234\n"
21412 " 02322 octal number, equivalent to decimal 1234\n"
21413 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
21418 #: ../fish/guestfish.pod:692
21420 "When using the C<chmod> command, you almost always want to specify an octal "
21421 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
21422 "L<chmod(1)> program):"
21426 #: ../fish/guestfish.pod:696
21429 " chmod 0777 /public # OK\n"
21430 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
21435 #: ../fish/guestfish.pod:699
21437 "Commands that return numbers usually print them in decimal, but some "
21438 "commands print numbers in other radices (eg. C<umask> prints the mode in "
21439 "octal, preceeded by C<0>)."
21443 #: ../fish/guestfish.pod:703
21444 msgid "WILDCARDS AND GLOBBING"
21448 #: ../fish/guestfish.pod:705
21450 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
21451 "(globbing) by default. So for example the following will not do what you "
21456 #: ../fish/guestfish.pod:709
21464 #: ../fish/guestfish.pod:711
21466 "Assuming you don't have a directory called literally C</home/*> then the "
21467 "above command will return an error."
21471 #: ../fish/guestfish.pod:714
21472 msgid "To perform wildcard expansion, use the C<glob> command."
21476 #: ../fish/guestfish.pod:716
21479 " glob rm-rf /home/*\n"
21484 #: ../fish/guestfish.pod:718
21486 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
21487 "many times), equivalent to:"
21491 #: ../fish/guestfish.pod:721
21494 " rm-rf /home/jim\n"
21495 " rm-rf /home/joe\n"
21496 " rm-rf /home/mary\n"
21501 #: ../fish/guestfish.pod:725
21502 msgid "C<glob> only works on simple guest paths and not on device names."
21506 #: ../fish/guestfish.pod:727
21508 "If you have several parameters, each containing a wildcard, then glob will "
21509 "perform a Cartesian product."
21513 #: ../fish/guestfish.pod:730
21518 #: ../fish/guestfish.pod:732
21520 "Any line which starts with a I<#> character is treated as a comment and "
21521 "ignored. The I<#> can optionally be preceeded by whitespace, but B<not> by "
21522 "a command. For example:"
21526 #: ../fish/guestfish.pod:736
21529 " # this is a comment\n"
21530 " # this is a comment\n"
21531 " foo # NOT a comment\n"
21536 #: ../fish/guestfish.pod:740
21537 msgid "Blank lines are also ignored."
21541 #: ../fish/guestfish.pod:742
21542 msgid "RUNNING COMMANDS LOCALLY"
21546 #: ../fish/guestfish.pod:744
21548 "Any line which starts with a I<!> character is treated as a command sent to "
21549 "the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
21553 #: ../fish/guestfish.pod:748
21557 " tgz-out /remote local/remote-data.tar.gz\n"
21562 #: ../fish/guestfish.pod:751
21564 "will create a directory C<local> on the host, and then export the contents "
21565 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
21566 "(See C<tgz-out>)."
21570 #: ../fish/guestfish.pod:755
21572 "To change the local directory, use the C<lcd> command. C<!cd> will have no "
21573 "effect, due to the way that subprocesses work in Unix."
21577 #: ../fish/guestfish.pod:758
21578 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
21582 #: ../fish/guestfish.pod:760
21584 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
21585 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
21586 "and executed as guestfish commands."
21590 #: ../fish/guestfish.pod:764
21592 "Thus you can use shell script to construct arbitrary guestfish commands "
21593 "which are then parsed by guestfish."
21597 #: ../fish/guestfish.pod:767
21599 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
21600 "through C</foo.100>) using guestfish commands alone. However this is simple "
21601 "if we use a shell script to create the guestfish commands for us:"
21605 #: ../fish/guestfish.pod:772
21608 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
21613 #: ../fish/guestfish.pod:774
21614 msgid "or with names like C</foo.001>:"
21618 #: ../fish/guestfish.pod:776
21621 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
21626 #: ../fish/guestfish.pod:778
21628 "When using guestfish interactively it can be helpful to just run the shell "
21629 "script first (ie. remove the initial C<E<lt>> character so it is just an "
21630 "ordinary I<!> local command), see what guestfish commands it would run, and "
21631 "when you are happy with those prepend the C<E<lt>> character to run the "
21632 "guestfish commands for real."
21636 #: ../fish/guestfish.pod:784
21641 #: ../fish/guestfish.pod:786
21643 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
21644 "command (a guestfish command) to the second command (any host command). For "
21649 #: ../fish/guestfish.pod:790
21652 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
21657 #: ../fish/guestfish.pod:792
21659 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
21660 "program). The above command would list all accounts in the guest filesystem "
21661 "which have UID 0, ie. root accounts including backdoors. Other examples:"
21665 #: ../fish/guestfish.pod:797
21668 " hexdump /bin/ls | head\n"
21669 " list-devices | tail -1\n"
21670 " tgz-out / - | tar ztf -\n"
21675 #: ../fish/guestfish.pod:801
21677 "The space before the pipe symbol is required, any space after the pipe "
21678 "symbol is optional. Everything after the pipe symbol is just passed "
21679 "straight to the host shell, so it can contain redirections, globs and "
21680 "anything else that makes sense on the host side."
21684 #: ../fish/guestfish.pod:806
21686 "To use a literal argument which begins with a pipe symbol, you have to quote "
21691 #: ../fish/guestfish.pod:809
21699 #: ../fish/guestfish.pod:811
21700 msgid "HOME DIRECTORIES"
21704 #: ../fish/guestfish.pod:813
21706 "If a parameter starts with the character C<~> then the tilde may be expanded "
21707 "as a home directory path (either C<~> for the current user's home directory, "
21708 "or C<~user> for another user)."
21712 #: ../fish/guestfish.pod:817
21714 "Note that home directory expansion happens for users known I<on the host>, "
21715 "not in the guest filesystem."
21719 #: ../fish/guestfish.pod:820
21721 "To use a literal argument which begins with a tilde, you have to quote it, "
21726 #: ../fish/guestfish.pod:823
21734 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
21735 msgid "ENCRYPTED DISKS"
21736 msgstr "ЗАШИФРОВАНІ ДИСКИ"
21739 #: ../fish/guestfish.pod:827
21741 "Libguestfs has some support for Linux guests encrypted according to the "
21742 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
21743 "disk encryption systems used by modern Linux guests. Currently only LVM-on-"
21744 "LUKS is supported."
21748 #: ../fish/guestfish.pod:832
21749 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
21753 #: ../fish/guestfish.pod:834
21756 " ><fs> vfs-type /dev/sda2\n"
21762 #: ../fish/guestfish.pod:837
21764 "Then open those devices using L</luks-open>. This creates a device-mapper "
21765 "device called C</dev/mapper/luksdev>."
21769 #: ../fish/guestfish.pod:840
21772 " ><fs> luks-open /dev/sda2 luksdev\n"
21773 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
21778 #: ../fish/guestfish.pod:843
21780 "Finally you have to tell LVM to scan for volume groups on the newly created "
21785 #: ../fish/guestfish.pod:846
21789 " vg-activate-all true\n"
21794 #: ../fish/guestfish.pod:849
21795 msgid "The logical volume(s) can now be mounted in the usual way."
21799 #: ../fish/guestfish.pod:851
21801 "Before closing a LUKS device you must unmount any logical volumes on it and "
21802 "deactivate the volume groups by calling C<vg-activate false VG> on each "
21803 "one. Then you can close the mapper device:"
21807 #: ../fish/guestfish.pod:855
21810 " vg-activate false /dev/VG\n"
21811 " luks-close /dev/mapper/luksdev\n"
21816 #: ../fish/guestfish.pod:860
21818 "If a path is prefixed with C<win:> then you can use Windows-style drive "
21819 "letters and paths (with some limitations). The following commands are "
21824 #: ../fish/guestfish.pod:864
21827 " file /WINDOWS/system32/config/system.LOG\n"
21832 #: ../fish/guestfish.pod:866
21835 " file win:\\windows\\system32\\config\\system.log\n"
21840 #: ../fish/guestfish.pod:868
21843 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
21848 #: ../fish/guestfish.pod:870
21850 "The parameter is rewritten \"behind the scenes\" by looking up the position "
21851 "where the drive is mounted, prepending that to the path, changing all "
21852 "backslash characters to forward slash, then resolving the result using L</"
21853 "case-sensitive-path>. For example if the E: drive was mounted on C</e> then "
21854 "the parameter might be rewritten like this:"
21858 #: ../fish/guestfish.pod:876
21861 " win:e:\\foo\\bar => /e/FOO/bar\n"
21866 #: ../fish/guestfish.pod:878
21867 msgid "This only works in argument positions that expect a path."
21871 #: ../fish/guestfish.pod:880
21872 msgid "UPLOADING AND DOWNLOADING FILES"
21876 #: ../fish/guestfish.pod:882
21878 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
21879 "others which upload from or download to a local file, you can use the "
21880 "special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
21884 #: ../fish/guestfish.pod:886
21892 #: ../fish/guestfish.pod:888
21894 "reads stdin and creates from that a file C</foo> in the disk image, and:"
21898 #: ../fish/guestfish.pod:891
21901 " tar-out /etc - | tar tf -\n"
21906 #: ../fish/guestfish.pod:893
21908 "writes the tarball to stdout and then pipes that into the external \"tar\" "
21909 "command (see L</PIPES>)."
21913 #: ../fish/guestfish.pod:896
21915 "When using C<-> to read from stdin, the input is read up to the end of "
21916 "stdin. You can also use a special \"heredoc\"-like syntax to read up to "
21917 "some arbitrary end marker:"
21921 #: ../fish/guestfish.pod:900
21924 " upload -<<END /foo\n"
21933 #: ../fish/guestfish.pod:906
21935 "Any string of characters can be used instead of C<END>. The end marker must "
21936 "appear on a line of its own, without any preceeding or following characters "
21937 "(not even spaces)."
21941 #: ../fish/guestfish.pod:910
21943 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
21944 "upload local files (so-called \"FileIn\" parameters in the generator)."
21948 #: ../fish/guestfish.pod:913
21949 msgid "EXIT ON ERROR BEHAVIOUR"
21953 #: ../fish/guestfish.pod:915
21955 "By default, guestfish will ignore any errors when in interactive mode (ie. "
21956 "taking commands from a human over a tty), and will exit on the first error "
21957 "in non-interactive mode (scripts, commands given on the command line)."
21961 #: ../fish/guestfish.pod:920
21963 "If you prefix a command with a I<-> character, then that command will not "
21964 "cause guestfish to exit, even if that (one) command returns an error."
21968 #: ../fish/guestfish.pod:924
21969 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
21973 #: ../fish/guestfish.pod:926
21975 "Guestfish can be remote-controlled over a socket. This is useful "
21976 "particularly in shell scripts where you want to make several different "
21977 "changes to a filesystem, but you don't want the overhead of starting up a "
21978 "guestfish process each time."
21982 #: ../fish/guestfish.pod:931
21983 msgid "Start a guestfish server process using:"
21987 #: ../fish/guestfish.pod:933
21990 " eval \"`guestfish --listen`\"\n"
21995 #: ../fish/guestfish.pod:935
21996 msgid "and then send it commands by doing:"
22000 #: ../fish/guestfish.pod:937
22003 " guestfish --remote cmd [...]\n"
22008 #: ../fish/guestfish.pod:939
22009 msgid "To cause the server to exit, send it the exit command:"
22013 #: ../fish/guestfish.pod:943
22015 "Note that the server will normally exit if there is an error in a command. "
22016 "You can change this in the usual way. See section L</EXIT ON ERROR "
22021 #: ../fish/guestfish.pod:947
22022 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
22026 #: ../fish/guestfish.pod:949
22028 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
22029 "is how the I<--remote> option knows where to send the commands. You can "
22030 "have several guestfish listener processes running using:"
22034 #: ../fish/guestfish.pod:953
22037 " eval \"`guestfish --listen`\"\n"
22038 " pid1=$GUESTFISH_PID\n"
22039 " eval \"`guestfish --listen`\"\n"
22040 " pid2=$GUESTFISH_PID\n"
22042 " guestfish --remote=$pid1 cmd\n"
22043 " guestfish --remote=$pid2 cmd\n"
22048 #: ../fish/guestfish.pod:961
22049 msgid "REMOTE CONTROL AND CSH"
22053 #: ../fish/guestfish.pod:963
22055 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
22060 #: ../fish/guestfish.pod:966
22063 " eval \"`guestfish --listen --csh`\"\n"
22068 #: ../fish/guestfish.pod:968
22069 msgid "REMOTE CONTROL DETAILS"
22073 #: ../fish/guestfish.pod:970
22075 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
22076 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
22077 "and C<$PID> is the process ID of the server."
22081 #: ../fish/guestfish.pod:974
22082 msgid "Guestfish client and server versions must match exactly."
22086 #: ../fish/guestfish.pod:976
22087 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
22091 #: ../fish/guestfish.pod:978
22093 "From Bash, you can use the following code which creates a guestfish "
22094 "instance, correctly quotes the command line, handles failure to start, and "
22095 "cleans up guestfish when the script exits:"
22099 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
22107 #: ../fish/guestfish.pod:986
22110 " guestfish[0]=\"guestfish\"\n"
22111 " guestfish[1]=\"--listen\"\n"
22112 " guestfish[2]=\"--ro\"\n"
22113 " guestfish[3]=\"-a\"\n"
22114 " guestfish[4]=\"disk.img\"\n"
22119 #: ../fish/guestfish.pod:992
22122 " GUESTFISH_PID=\n"
22123 " eval $(\"${guestfish[@]}\")\n"
22124 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
22125 " echo \"error: guestfish didn't start up, see error messages above\"\n"
22132 #: ../fish/guestfish.pod:999
22135 " cleanup_guestfish ()\n"
22137 " guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
22139 " trap cleanup_guestfish EXIT ERR\n"
22144 #: ../fish/guestfish.pod:1005
22147 " guestfish --remote -- run\n"
22152 #: ../fish/guestfish.pod:1007
22160 #: ../fish/guestfish.pod:1009
22161 msgid "REMOTE CONTROL RUN COMMAND HANGING"
22165 #: ../fish/guestfish.pod:1011
22167 "Using the C<run> (or C<launch>) command remotely in a command substitution "
22168 "context hangs, ie. don't do (note the backquotes):"
22172 #: ../fish/guestfish.pod:1014
22175 " a=`guestfish --remote run`\n"
22180 #: ../fish/guestfish.pod:1016
22182 "Since the C<run> command produces no output on stdout, this is not useful "
22183 "anyway. For further information see L<https://bugzilla.redhat.com/show_bug."
22188 #: ../fish/guestfish.pod:1020
22189 msgid "PREPARED DISK IMAGES"
22193 #: ../fish/guestfish.pod:1022
22195 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
22196 "preformatted disk images that guestfish can make for you to save typing. "
22197 "This is particularly useful for testing purposes. This option is used "
22198 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
22199 "can be mixed with I<-a>)."
22203 #: ../fish/guestfish.pod:1028
22205 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
22206 "the second and so on. Existing files in the current directory are "
22211 #: ../fish/guestfish.pod:1032
22213 "The type briefly describes how the disk should be sized, partitioned, how "
22214 "filesystem(s) should be created, and how content should be added. "
22215 "Optionally the type can be followed by extra parameters, separated by C<:> "
22216 "(colon) characters. For example, I<-N fs> creates a default 100MB, sparsely-"
22217 "allocated disk, containing a single partition, with the partition formatted "
22218 "as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
22223 #: ../fish/guestfish.pod:1040
22224 msgid "To list the available types and any extra parameters they take, run:"
22228 #: ../fish/guestfish.pod:1044
22230 "Note that the prepared filesystem is not mounted. You would usually have to "
22231 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
22235 #: ../fish/guestfish.pod:1048
22237 "If any I<-N> or I<--new> options are given, the guest is automatically "
22242 #: ../fish/guestfish.pod:1053
22243 msgid "Create a 100MB disk with an ext4-formatted partition:"
22247 #: ../fish/guestfish.pod:1055
22250 " guestfish -N fs:ext4\n"
22255 #: ../fish/guestfish.pod:1057
22256 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
22260 #: ../fish/guestfish.pod:1059
22263 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
22268 #: ../fish/guestfish.pod:1061
22269 msgid "Create a blank 200MB disk:"
22273 #: ../fish/guestfish.pod:1063
22276 " guestfish -N disk:200M\n"
22281 #: ../fish/guestfish.pod:1065
22282 msgid "PROGRESS BARS"
22286 #: ../fish/guestfish.pod:1067
22288 "Some (not all) long-running commands send progress notification messages as "
22289 "they are running. Guestfish turns these messages into progress bars."
22293 #: ../fish/guestfish.pod:1071
22295 "When a command that supports progress bars takes longer than two seconds to "
22296 "run, and if progress bars are enabled, then you will see one appearing below "
22301 #: ../fish/guestfish.pod:1075
22304 " ><fs> copy-size /large-file /another-file 2048M\n"
22305 " / 10% [#####-----------------------------------------] 00:30\n"
22310 #: ../fish/guestfish.pod:1078
22312 "The spinner on the left hand side moves round once for every progress "
22313 "notification received from the backend. This is a (reasonably) golden "
22314 "assurance that the command is \"doing something\" even if the progress bar "
22315 "is not moving, because the command is able to send the progress "
22316 "notifications. When the bar reaches 100% and the command finishes, the "
22317 "spinner disappears."
22321 #: ../fish/guestfish.pod:1085
22323 "Progress bars are enabled by default when guestfish is used interactively. "
22324 "You can enable them even for non-interactive modes using I<--progress-bars>, "
22325 "and you can disable them completely using I<--no-progress-bars>."
22329 #: ../fish/guestfish.pod:1090
22330 msgid "GUESTFISH COMMANDS"
22334 #: ../fish/guestfish.pod:1092
22336 "The commands in this section are guestfish convenience commands, in other "
22337 "words, they are not part of the L<guestfs(3)> API."
22341 #: ../fish/guestfish.pod:1095
22346 #: ../fish/guestfish.pod:1097
22358 #: ../fish/guestfish.pod:1100
22359 msgid "Without any parameter, this provides general help."
22360 msgstr "Без параметра показує загальну довідкову інформацію."
22363 #: ../fish/guestfish.pod:1102
22364 msgid "With a C<cmd> parameter, this displays detailed help for that command."
22368 #: ../fish/guestfish.pod:1104
22369 msgid "quit | exit"
22373 #: ../fish/guestfish.pod:1106
22374 msgid "This exits guestfish. You can also use C<^D> key."
22378 #: ../fish/guestfish.pod:1108
22379 msgid "@FISH_COMMANDS@"
22383 #: ../fish/guestfish.pod:1110
22388 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
22393 #: ../fish/guestfish.pod:1116
22395 "guestfish returns 0 if the commands completed without error, or 1 if there "
22400 #: ../fish/guestfish.pod:1123
22405 #: ../fish/guestfish.pod:1125
22407 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
22412 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3218
22413 msgid "FEBOOTSTRAP_KERNEL"
22417 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3220
22418 msgid "FEBOOTSTRAP_MODULES"
22422 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3222
22424 "These two environment variables allow the kernel that libguestfs uses in the "
22425 "appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
22426 "most recent host kernel is chosen. For more information about kernel "
22427 "selection, see L<febootstrap-supermin-helper(8)>. This feature is only "
22428 "available in febootstrap E<ge> 3.8."
22432 #: ../fish/guestfish.pod:1138
22433 msgid "GUESTFISH_DISPLAY_IMAGE"
22437 #: ../fish/guestfish.pod:1140
22439 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
22440 "If not set, it uses L<display(1)>."
22444 #: ../fish/guestfish.pod:1143
22445 msgid "GUESTFISH_PID"
22449 #: ../fish/guestfish.pod:1145
22451 "Used with the I<--remote> option to specify the remote guestfish process to "
22452 "control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
22456 #: ../fish/guestfish.pod:1149
22461 #: ../fish/guestfish.pod:1151
22463 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
22464 "not specified, the external L<hexedit(1)> program is used."
22468 #: ../fish/guestfish.pod:1155
22473 #: ../fish/guestfish.pod:1157
22475 "If compiled with GNU readline support, various files in the home directory "
22476 "can be used. See L</FILES>."
22480 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3228
22481 msgid "LIBGUESTFS_APPEND"
22485 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3230
22486 msgid "Pass additional options to the guest kernel."
22490 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3232
22491 msgid "LIBGUESTFS_DEBUG"
22492 msgstr "LIBGUESTFS_DEBUG"
22495 #: ../fish/guestfish.pod:1166
22497 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
22498 "effect as using the B<-v> option."
22502 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3237
22503 msgid "LIBGUESTFS_MEMSIZE"
22504 msgstr "LIBGUESTFS_MEMSIZE"
22507 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3239
22509 "Set the memory allocated to the qemu process, in megabytes. For example:"
22513 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3242
22516 " LIBGUESTFS_MEMSIZE=700\n"
22519 " LIBGUESTFS_MEMSIZE=700\n"
22523 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3244
22524 msgid "LIBGUESTFS_PATH"
22528 #: ../fish/guestfish.pod:1178
22530 "Set the path that guestfish uses to search for kernel and initrd.img. See "
22531 "the discussion of paths in L<guestfs(3)>."
22535 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3249
22536 msgid "LIBGUESTFS_QEMU"
22540 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3251
22542 "Set the default qemu binary that libguestfs uses. If not set, then the qemu "
22543 "which was found at compile time by the configure script is used."
22547 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3257
22548 msgid "LIBGUESTFS_TRACE"
22552 #: ../fish/guestfish.pod:1189
22553 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
22557 #: ../fish/guestfish.pod:1191
22559 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
22562 #: ../fish/guestfish.pod:1193
22564 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
22569 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:254
22570 #: ../src/guestfs.pod:3262
22575 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3264
22577 "Location of temporary directory, defaults to C</tmp> except for the cached "
22578 "supermin appliance which defaults to C</var/tmp>."
22582 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3267
22584 "If libguestfs was compiled to use the supermin appliance then the real "
22585 "appliance is cached in this directory, shared between all handles belonging "
22586 "to the same EUID. You can use C<$TMPDIR> to configure another directory to "
22587 "use in case C</var/tmp> is not large enough."
22591 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
22592 #: ../rescue/virt-rescue.pod:310
22597 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
22598 #: ../rescue/virt-rescue.pod:314
22599 msgid "$HOME/.libguestfs-tools.rc"
22603 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
22604 #: ../rescue/virt-rescue.pod:316
22605 msgid "/etc/libguestfs-tools.conf"
22609 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
22610 #: ../rescue/virt-rescue.pod:318
22612 "This configuration file controls the default read-only or read-write mode "
22613 "(I<--ro> or I<--rw>)."
22617 #: ../fish/guestfish.pod:1220
22618 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
22619 msgstr "Див. L</OPENING DISKS FOR READ AND WRITE>."
22622 #: ../fish/guestfish.pod:1222
22623 msgid "$HOME/.guestfish"
22627 #: ../fish/guestfish.pod:1224
22629 "If compiled with GNU readline support, then the command history is saved in "
22634 #: ../fish/guestfish.pod:1227
22635 msgid "$HOME/.inputrc"
22639 #: ../fish/guestfish.pod:1229
22640 msgid "/etc/inputrc"
22644 #: ../fish/guestfish.pod:1231
22646 "If compiled with GNU readline support, then these files can be used to "
22647 "configure readline. For further information, please see L<readline(3)/"
22648 "INITIALIZATION FILE>."
22652 #: ../fish/guestfish.pod:1235
22653 msgid "To write rules which only apply to guestfish, use:"
22657 #: ../fish/guestfish.pod:1237
22667 #: ../fish/guestfish.pod:1241
22669 "Variables that you can set in inputrc that change the behaviour of guestfish "
22670 "in useful ways include:"
22674 #: ../fish/guestfish.pod:1246
22675 msgid "completion-ignore-case (default: on)"
22679 #: ../fish/guestfish.pod:1248
22681 "By default, guestfish will ignore case when tab-completing paths on the "
22686 #: ../fish/guestfish.pod:1251
22689 " set completion-ignore-case off\n"
22694 #: ../fish/guestfish.pod:1253
22695 msgid "to make guestfish case sensitive."
22699 #: ../fish/guestfish.pod:1257
22704 #: ../fish/guestfish.pod:1259
22705 msgid "test2.img (etc)"
22709 #: ../fish/guestfish.pod:1261
22711 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
22712 "will be created in the file C<test1.img> in the current directory. The "
22713 "second use of I<-N> will use C<test2.img> and so on. Any existing file with "
22714 "the same name will be overwritten."
22718 #: ../fish/guestfish.pod:1270
22720 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
22721 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
22722 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
22723 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
22724 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
22725 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
22726 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
22730 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3360
22731 #: ../test-tool/libguestfs-test-tool.pod:112
22732 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
22736 #: ../fish/virt-copy-in.pod:5
22738 "virt-copy-in - Copy files and directories into a virtual machine disk image."
22742 #: ../fish/virt-copy-in.pod:9
22745 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
22750 #: ../fish/virt-copy-in.pod:11
22753 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
22758 #: ../fish/virt-copy-in.pod:15
22760 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
22761 "causing disk corruption. The virtual machine must be shut down before you "
22762 "use this command."
22766 #: ../fish/virt-copy-in.pod:21
22768 "C<virt-copy-in> copies files and directories from the local disk into a "
22769 "virtual machine disk image or named libvirt domain."
22773 #: ../fish/virt-copy-in.pod:24
22775 "You can give one of more filenames and directories on the command line. "
22776 "Directories are copied in recursively. The final parameter must be the "
22777 "destination directory in the disk image which must be an absolute path "
22778 "starting with a C</> character."
22782 #: ../fish/virt-copy-in.pod:33
22785 " virt-copy-in -d MyGuest resolv.conf /etc\n"
22790 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
22791 msgid "Upload a home directory to a guest:"
22795 #: ../fish/virt-copy-in.pod:37
22798 " virt-copy-in -d MyGuest skel /home\n"
22803 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
22804 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
22805 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
22809 #: ../fish/virt-copy-in.pod:41
22811 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22812 "> C<copy-in> command. For anything more complex than a trivial copy, you "
22813 "are probably better off using guestfish directly."
22817 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
22818 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
22820 "Since the shell script just passes options straight to guestfish, read "
22821 "L<guestfish(1)> to see the full list of options."
22825 #: ../fish/virt-copy-in.pod:52
22827 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
22828 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
22832 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
22833 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
22834 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
22838 #: ../fish/virt-copy-out.pod:5
22840 "virt-copy-out - Copy files and directories out of a virtual machine disk "
22845 #: ../fish/virt-copy-out.pod:9
22848 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
22853 #: ../fish/virt-copy-out.pod:11
22856 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
22861 #: ../fish/virt-copy-out.pod:15
22863 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
22864 "image or named libvirt domain."
22868 #: ../fish/virt-copy-out.pod:18
22870 "You can give one of more filenames and directories on the command line. "
22871 "Directories are copied out recursively."
22875 #: ../fish/virt-copy-out.pod:23
22876 msgid "Download the home directories from a virtual machine:"
22880 #: ../fish/virt-copy-out.pod:25
22884 " virt-copy-out -d MyGuest /home homes\n"
22889 #: ../fish/virt-copy-out.pod:30
22891 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22892 "> C<copy-out> command. For anything more complex than a trivial copy, you "
22893 "are probably better off using guestfish directly."
22897 #: ../fish/virt-copy-out.pod:41
22899 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
22900 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
22904 #: ../fish/virt-tar-in.pod:5
22905 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
22909 #: ../fish/virt-tar-in.pod:9
22912 " virt-tar-in -a disk.img data.tar /destination\n"
22917 #: ../fish/virt-tar-in.pod:11
22920 " virt-tar-in -d domain data.tar /destination\n"
22925 #: ../fish/virt-tar-in.pod:13
22928 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
22933 #: ../fish/virt-tar-in.pod:17
22935 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
22936 "causing disk corruption. The virtual machine must be shut down before you "
22937 "use this command."
22941 #: ../fish/virt-tar-in.pod:23
22943 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
22944 "image or named libvirt domain."
22948 #: ../fish/virt-tar-in.pod:26
22950 "The first parameter is the tar file. Use C<-> to read the tar file from "
22951 "standard input. The second parameter is the absolute target directory to "
22956 #: ../fish/virt-tar-in.pod:34
22959 " virt-tar-in -d MyGuest homes.tar /home\n"
22964 #: ../fish/virt-tar-in.pod:38
22966 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22967 "> C<tar-in> command. For anything more complex than a trivial copy, you are "
22968 "probably better off using guestfish directly."
22972 #: ../fish/virt-tar-in.pod:49
22974 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
22975 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
22980 #: ../fish/virt-tar-out.pod:5
22982 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
22986 #: ../fish/virt-tar-out.pod:9
22989 " virt-tar-out -a disk.img /dir files.tar\n"
22994 #: ../fish/virt-tar-out.pod:11
22997 " virt-tar-out -d domain /dir files.tar\n"
23002 #: ../fish/virt-tar-out.pod:13
23005 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
23010 #: ../fish/virt-tar-out.pod:17
23012 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
23016 #: ../fish/virt-tar-out.pod:20
23018 "The first parameter is the absolute path of the virtual machine directory. "
23019 "The second parameter is the tar file to write. Use C<-> to write to "
23024 #: ../fish/virt-tar-out.pod:26
23025 msgid "Download the home directories from a guest:"
23029 #: ../fish/virt-tar-out.pod:28
23032 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
23037 #: ../fish/virt-tar-out.pod:32
23039 "This command is just a simple shell script wrapper around the L<guestfish(1)"
23040 "> C<tar-out> command. For anything more complex than a trivial copy, you "
23041 "are probably better off using guestfish directly."
23045 #: ../fish/virt-tar-out.pod:43
23047 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
23048 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
23052 #: ../fuse/guestmount.pod:5
23054 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
23058 #: ../fuse/guestmount.pod:9
23061 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
23066 #: ../fuse/guestmount.pod:11
23069 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
23074 #: ../fuse/guestmount.pod:13
23077 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
23082 #: ../fuse/guestmount.pod:17
23084 "You must I<not> use C<guestmount> in read-write mode on live virtual "
23085 "machines. If you do this, you risk disk corruption in the VM."
23089 #: ../fuse/guestmount.pod:22
23091 "The guestmount program can be used to mount virtual machine filesystems and "
23092 "other disk images on the host. It uses libguestfs for access to the guest "
23093 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
23094 "a mountable device."
23098 #: ../fuse/guestmount.pod:27
23100 "Along with other options, you have to give at least one device (I<-a> "
23101 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
23102 "option) or use the I<-i> inspection option or the I<--live> option. How "
23103 "this works is better explained in the L<guestfish(1)> manual page, or by "
23104 "looking at the examples below."
23108 #: ../fuse/guestmount.pod:33
23110 "FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
23111 "by you, and the filesystem will not be visible to any other users unless you "
23112 "make certain global configuration changes to C</etc/fuse.conf>. To unmount "
23113 "the filesystem, use the C<fusermount -u> command."
23117 #: ../fuse/guestmount.pod:41
23119 "For a typical Windows guest which has its main filesystem on the first "
23124 #: ../fuse/guestmount.pod:44
23127 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
23132 #: ../fuse/guestmount.pod:46
23134 "For a typical Linux guest which has a /boot filesystem on the first "
23135 "partition, and the root filesystem on a logical volume:"
23139 #: ../fuse/guestmount.pod:49
23142 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
23147 #: ../fuse/guestmount.pod:51
23148 msgid "To get libguestfs to detect guest mountpoints for you:"
23152 #: ../fuse/guestmount.pod:53
23155 " guestmount -a guest.img -i --ro /mnt\n"
23160 #: ../fuse/guestmount.pod:55
23161 msgid "For a libvirt guest called \"Guest\" you could do:"
23165 #: ../fuse/guestmount.pod:57
23168 " guestmount -d Guest -i --ro /mnt\n"
23173 #: ../fuse/guestmount.pod:59
23175 "If you don't know what filesystems are contained in a guest or disk image, "
23176 "use L<virt-filesystems(1)> first:"
23180 #: ../fuse/guestmount.pod:62
23183 " virt-filesystems MyGuest\n"
23188 #: ../fuse/guestmount.pod:64
23190 "If you want to trace the libguestfs calls but without excessive debugging "
23191 "information, we recommend:"
23195 #: ../fuse/guestmount.pod:67
23198 " guestmount [...] --trace /mnt\n"
23203 #: ../fuse/guestmount.pod:69
23204 msgid "If you want to debug the program, we recommend:"
23208 #: ../fuse/guestmount.pod:71
23211 " guestmount [...] --trace --verbose /mnt\n"
23216 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:96
23217 #: ../resize/virt-resize.pod:621
23222 #: ../fuse/guestmount.pod:75
23223 msgid "Other users cannot see the filesystem by default"
23227 #: ../fuse/guestmount.pod:77
23229 "If you mount a filesystem as one user (eg. root), then other users will not "
23230 "be able to see it by default. The fix is to add the FUSE C<allow_other> "
23231 "option when mounting:"
23235 #: ../fuse/guestmount.pod:81
23238 " sudo guestmount [...] -o allow_other /mnt\n"
23243 #: ../fuse/guestmount.pod:83
23244 msgid "Enabling FUSE"
23248 #: ../fuse/guestmount.pod:85
23250 "On some distros, you may need to add yourself to a special group (eg. "
23251 "C<fuse>) before you can use any FUSE filesystem. This is necessary on "
23252 "Debian and derivatives."
23256 #: ../fuse/guestmount.pod:89
23258 "On other distros, no special group is required. It is not necessary on "
23259 "Fedora or Red Hat Enterprise Linux."
23263 #: ../fuse/guestmount.pod:100
23264 msgid "Add a block device or virtual machine image."
23268 #: ../fuse/guestmount.pod:123
23269 msgid "B<--dir-cache-timeout N>"
23270 msgstr "B<--dir-cache-timeout N>"
23273 #: ../fuse/guestmount.pod:125
23275 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
23276 "seconds. The readdir cache [actually, there are several semi-independent "
23277 "caches] is populated after a readdir(2) call with the stat and extended "
23278 "attributes of the files in the directory, in anticipation that they will be "
23279 "requested soon after."
23283 #: ../fuse/guestmount.pod:131
23285 "There is also a different attribute cache implemented by FUSE (see the FUSE "
23286 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
23287 "requests, only cache existing ones."
23291 #: ../fuse/guestmount.pod:151
23293 "If you have untrusted raw-format guest disk images, you should use this "
23294 "option to specify the disk format. This avoids a possible security problem "
23295 "with malicious guests (CVE-2010-3851). See also L<guestfs(3)/"
23296 "guestfs_add_drive_opts>."
23300 #: ../fuse/guestmount.pod:156
23301 msgid "B<--fuse-help>"
23302 msgstr "B<--fuse-help>"
23305 #: ../fuse/guestmount.pod:158
23306 msgid "Display help on special FUSE options (see I<-o> below)."
23310 #: ../fuse/guestmount.pod:162
23311 msgid "Display brief help and exit."
23315 #: ../fuse/guestmount.pod:186
23317 "Mount the named partition or logical volume on the given mountpoint B<in the "
23318 "guest> (this has nothing to do with mountpoints in the host)."
23322 #: ../fuse/guestmount.pod:189
23324 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
23325 "something on C</>."
23329 #: ../fuse/guestmount.pod:206
23331 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
23332 "unmounted. If you specify this option, then we don't attempt to sync the "
23333 "disk. See the discussion of autosync in the L<guestfs(3)> manpage."
23337 #: ../fuse/guestmount.pod:211
23338 msgid "B<-o option>"
23339 msgstr "B<-o параметр>"
23342 #: ../fuse/guestmount.pod:213
23343 msgid "B<--option option>"
23344 msgstr "B<--option параметр>"
23347 #: ../fuse/guestmount.pod:215
23348 msgid "Pass extra options to FUSE."
23352 #: ../fuse/guestmount.pod:217
23354 "To get a list of all the extra options supported by FUSE, use the command "
23355 "below. Note that only the FUSE I<-o> options can be passed, and only some "
23356 "of them are a good idea."
23360 #: ../fuse/guestmount.pod:221
23363 " guestmount --fuse-help\n"
23368 #: ../fuse/guestmount.pod:223
23369 msgid "Some potentially useful FUSE options:"
23373 #: ../fuse/guestmount.pod:227
23374 msgid "B<-o allow_other>"
23378 #: ../fuse/guestmount.pod:229
23379 msgid "Allow other users to see the filesystem."
23383 #: ../fuse/guestmount.pod:231
23384 msgid "B<-o attr_timeout=N>"
23385 msgstr "B<-o attr_timeout=N>"
23388 #: ../fuse/guestmount.pod:233
23389 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
23393 #: ../fuse/guestmount.pod:235
23394 msgid "B<-o kernel_cache>"
23398 #: ../fuse/guestmount.pod:237
23400 "Allow the kernel to cache files (reduces the number of reads that have to go "
23401 "through the L<guestfs(3)> API). This is generally a good idea if you can "
23402 "afford the extra memory usage."
23406 #: ../fuse/guestmount.pod:241
23407 msgid "B<-o uid=N> B<-o gid=N>"
23408 msgstr "B<-o uid=N> B<-o gid=N>"
23411 #: ../fuse/guestmount.pod:243
23413 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
23414 "the chosen values."
23418 #: ../fuse/guestmount.pod:252
23420 "Add devices and mount everything read-only. Also disallow writes and make "
23421 "the disk appear read-only to FUSE."
23425 #: ../fuse/guestmount.pod:255
23427 "This is highly recommended if you are not going to edit the guest disk. If "
23428 "the guest is running and this option is I<not> supplied, then there is a "
23429 "strong risk of disk corruption in the guest. We try to prevent this from "
23430 "happening, but it is not always possible."
23434 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:199
23435 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23436 msgstr "Див. також L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23439 #: ../fuse/guestmount.pod:264
23440 msgid "Enable SELinux support for the guest."
23444 #: ../fuse/guestmount.pod:270
23445 msgid "Enable verbose messages from underlying libguestfs."
23449 #: ../fuse/guestmount.pod:276
23450 msgid "Display the program version and exit."
23454 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
23455 #: ../rescue/virt-rescue.pod:238 ../rescue/virt-rescue.pod:321
23456 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23457 msgstr "Див. L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23460 #: ../fuse/guestmount.pod:289
23462 msgstr "B<--trace>"
23465 #: ../fuse/guestmount.pod:291
23466 msgid "Trace libguestfs calls and entry into each FUSE function."
23470 #: ../fuse/guestmount.pod:293
23471 msgid "This also stops the daemon from forking into the background."
23475 #: ../fuse/guestmount.pod:319
23477 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23478 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
23481 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23482 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
23486 #: ../fuse/guestmount.pod:334
23487 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
23491 #: ../inspector/virt-inspector.pod:5
23493 "virt-inspector - Display operating system version and other information "
23494 "about a virtual machine"
23498 #: ../inspector/virt-inspector.pod:9
23501 " virt-inspector [--options] -d domname\n"
23506 #: ../inspector/virt-inspector.pod:11
23509 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
23514 #: ../inspector/virt-inspector.pod:15
23517 " virt-inspector domname\n"
23522 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
23525 " virt-inspector disk.img [disk.img ...]\n"
23530 #: ../inspector/virt-inspector.pod:21
23532 "B<virt-inspector> examines a virtual machine or disk image and tries to "
23533 "determine the version of the operating system and other information about "
23534 "the virtual machine."
23538 #: ../inspector/virt-inspector.pod:25
23539 msgid "Virt-inspector produces XML output for feeding into other programs."
23543 #: ../inspector/virt-inspector.pod:27
23545 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
23546 "the libvirt domain (see: C<virsh list --all>)."
23550 #: ../inspector/virt-inspector.pod:30
23552 "You can also run virt-inspector directly on disk images from a single "
23553 "virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain "
23554 "has several block devices, in which case you should list several I<-a> "
23555 "options one after another, with the first corresponding to the guest's C</"
23556 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
23560 #: ../inspector/virt-inspector.pod:37
23562 "You can also run virt-inspector on install disks, live CDs, bootable USB "
23563 "keys and similar."
23567 #: ../inspector/virt-inspector.pod:40
23569 "Virt-inspector can only inspect and report upon I<one domain at a time>. To "
23570 "inspect several virtual machines, you have to run virt-inspector several "
23571 "times (for example, from a shell script for-loop)."
23575 #: ../inspector/virt-inspector.pod:45
23577 "Because virt-inspector needs direct access to guest images, it won't "
23578 "normally work over remote libvirt connections."
23582 #: ../inspector/virt-inspector.pod:48
23584 "All of the information available from virt-inspector is also available "
23585 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
23586 "The same information can also be fetched using guestfish or via libguestfs "
23587 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
23588 "WITH OTHER PROGRAMMING LANGUAGES>)."
23592 #: ../inspector/virt-inspector.pod:81
23594 "Libvirt is only used if you specify a C<domname> on the command line. If "
23595 "you specify guest block devices directly (I<-a>), then libvirt is not used "
23600 #: ../inspector/virt-inspector.pod:94
23602 "When prompting for keys and passphrases, virt-inspector normally turns "
23603 "echoing off so you cannot see what you are typing. If you are not worried "
23604 "about Tempest attacks and there is no one else in the room you can specify "
23605 "this flag to see what you are typing."
23609 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
23610 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
23611 #: ../tools/virt-win-reg.pl:144
23613 "Specify the format of disk images given on the command line. If this is "
23614 "omitted then the format is autodetected from the content of the disk image."
23618 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
23619 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
23620 #: ../tools/virt-win-reg.pl:148
23622 "If disk images are requested from libvirt, then this program asks libvirt "
23623 "for this information. In this case, the value of the format parameter is "
23628 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:391
23629 #: ../resize/virt-resize.pod:483 ../sparsify/virt-sparsify.pod:138
23630 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
23631 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
23633 "If working with untrusted raw-format guest disk images, you should ensure "
23634 "the format is always specified."
23638 #: ../inspector/virt-inspector.pod:135
23640 #| msgid "B<--parts>"
23641 msgid "B<--xpath> query"
23642 msgstr "B<--parts>"
23645 #: ../inspector/virt-inspector.pod:137
23647 "Perform an XPath query on the XML on stdin, and print the result on stdout. "
23648 "In this mode virt-inspector simply runs an XPath query; all other inspection "
23649 "functions are disabled. See L</XPATH QUERIES> below for some examples."
23653 #: ../inspector/virt-inspector.pod:146
23654 msgid "Previous versions of virt-inspector allowed you to write either:"
23658 #: ../inspector/virt-inspector.pod:152
23661 " virt-inspector guestname\n"
23666 #: ../inspector/virt-inspector.pod:160
23671 #: ../inspector/virt-inspector.pod:162
23673 "The virt-inspector XML is described precisely in a RELAX NG schema file "
23674 "C<virt-inspector.rng> which is supplied with libguestfs. This section is "
23675 "just an overview."
23679 #: ../inspector/virt-inspector.pod:166
23681 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
23682 "more E<lt>operatingsystemE<gt> elements. You would only see more than one "
23683 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
23684 "which is vanishingly rare in real world VMs."
23688 #: ../inspector/virt-inspector.pod:171
23689 msgid "E<lt>operatingsystemE<gt>"
23693 #: ../inspector/virt-inspector.pod:173
23695 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
23696 "describe the operating system, its architecture, the descriptive \"product "
23697 "name\" string, the type of OS and so on, as in this example:"
23701 #: ../inspector/virt-inspector.pod:177
23704 " <operatingsystems>\n"
23705 " <operatingsystem>\n"
23706 " <root>/dev/sda2</root>\n"
23707 " <name>windows</name>\n"
23708 " <arch>i386</arch>\n"
23709 " <distro>windows</distro>\n"
23710 " <product_name>Windows 7 Enterprise</product_name>\n"
23711 " <product_variant>Client</product_variant>\n"
23712 " <major_version>6</major_version>\n"
23713 " <minor_version>1</minor_version>\n"
23714 " <windows_systemroot>/Windows</windows_systemroot>\n"
23715 " <format>installed</format>\n"
23720 #: ../inspector/virt-inspector.pod:190
23722 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
23723 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
23724 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
23725 "architecture. The other fields are fairly self-explanatory, but because "
23726 "these fields are taken directly from the libguestfs inspection API you can "
23727 "find precise information from L<guestfs(3)/INSPECTION>."
23731 #: ../inspector/virt-inspector.pod:198
23733 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
23734 "of view of libguestfs (block devices may have completely different names "
23735 "inside the VM itself)."
23739 #: ../inspector/virt-inspector.pod:202
23740 msgid "E<lt>mountpointsE<gt>"
23744 #: ../inspector/virt-inspector.pod:204
23746 "Un*x-like guests typically have multiple filesystems which are mounted at "
23747 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
23748 "element which looks like this:"
23752 #: ../inspector/virt-inspector.pod:208
23755 " <operatingsystems>\n"
23756 " <operatingsystem>\n"
23759 " <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
23760 " <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
23761 " </mountpoints>\n"
23766 #: ../inspector/virt-inspector.pod:216
23768 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
23769 "and may have completely different names inside the guest. Only mountable "
23770 "filesystems appear in this list, not things like swap devices."
23774 #: ../inspector/virt-inspector.pod:221
23775 msgid "E<lt>filesystemsE<gt>"
23779 #: ../inspector/virt-inspector.pod:223
23781 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
23782 "filesystems belonging to the guest, including swap and empty partitions. "
23783 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
23784 "this OS or shared with this OS and other OSes)."
23788 #: ../inspector/virt-inspector.pod:229
23789 msgid "You might see something like this:"
23793 #: ../inspector/virt-inspector.pod:231
23796 " <operatingsystems>\n"
23797 " <operatingsystem>\n"
23800 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
23801 " <type>ext4</type>\n"
23802 " <label>Fedora-13-x86_64</label>\n"
23803 " <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
23809 #: ../inspector/virt-inspector.pod:241
23811 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
23812 "the label, and the UUID."
23816 #: ../inspector/virt-inspector.pod:244
23817 msgid "E<lt>applicationsE<gt>"
23821 #: ../inspector/virt-inspector.pod:246
23823 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
23824 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
23829 #: ../inspector/virt-inspector.pod:250
23831 "E<lt>package_formatE<gt>, if present, describes the packaging system used. "
23832 "Typical values would be C<rpm> and C<deb>."
23836 #: ../inspector/virt-inspector.pod:253
23838 "E<lt>package_managementE<gt>, if present, describes the package manager. "
23839 "Typical values include C<yum>, C<up2date> and C<apt>"
23843 #: ../inspector/virt-inspector.pod:256
23844 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
23848 #: ../inspector/virt-inspector.pod:259
23851 " <operatingsystems>\n"
23852 " <operatingsystem>\n"
23854 " <applications>\n"
23856 " <name>coreutils</name>\n"
23857 " <version>8.5</version>\n"
23858 " <release>1</release>\n"
23859 " </application>\n"
23864 #: ../inspector/virt-inspector.pod:269
23866 "The version and release fields may not be available for some types guests. "
23867 "Other fields are possible, see L<guestfs(3)/"
23868 "guestfs_inspect_list_applications>."
23872 #: ../inspector/virt-inspector.pod:273
23873 msgid "E<lt>drive_mappingsE<gt>"
23877 #: ../inspector/virt-inspector.pod:275
23879 "For operating systems like Windows which use drive letters, virt-inspector "
23880 "is able to find out how drive letters map to filesystems."
23884 #: ../inspector/virt-inspector.pod:279
23887 " <operatingsystems>\n"
23888 " <operatingsystem>\n"
23890 " <drive_mappings>\n"
23891 " <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
23892 " <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
23893 " </drive_mappings>\n"
23898 #: ../inspector/virt-inspector.pod:287
23900 "In the example above, drive C maps to the filesystem on the second partition "
23901 "on the first disk, and drive E maps to the filesystem on the first partition "
23902 "on the second disk."
23906 #: ../inspector/virt-inspector.pod:291
23908 "Note that this only covers permanent local filesystem mappings, not things "
23909 "like network shares. Furthermore NTFS volume mount points may not be listed "
23914 #: ../inspector/virt-inspector.pod:295
23915 msgid "E<lt>iconE<gt>"
23919 #: ../inspector/virt-inspector.pod:297
23921 "Virt-inspector is sometimes able to extract an icon or logo for the guest. "
23922 "The icon is returned as base64-encoded PNG data. Note that the icon can be "
23923 "very large and high quality."
23927 #: ../inspector/virt-inspector.pod:301
23930 " <operatingsystems>\n"
23931 " <operatingsystem>\n"
23934 " iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
23935 " [... many lines of base64 data ...]\n"
23941 #: ../inspector/virt-inspector.pod:309
23943 "To display the icon, you have to extract it and convert the base64 data back "
23944 "to a binary file. Use an XPath query or simply an editor to extract the "
23945 "data, then use the coreutils L<base64(1)> program to do the conversion back "
23950 #: ../inspector/virt-inspector.pod:314
23953 " base64 -i -d < icon.data > icon.png\n"
23958 #: ../inspector/virt-inspector.pod:316
23959 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
23963 #: ../inspector/virt-inspector.pod:318
23965 "Virt-inspector can detect some operating system installers on install disks, "
23966 "live CDs, bootable USB keys and more."
23970 #: ../inspector/virt-inspector.pod:321
23972 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
23973 "fields may be present to indicate a live CD, network installer, or one part "
23974 "of a multipart CD. For example:"
23978 #: ../inspector/virt-inspector.pod:325
23981 " <operatingsystems>\n"
23982 " <operatingsystem>\n"
23983 " <root>/dev/sda</root>\n"
23984 " <name>linux</name>\n"
23985 " <arch>i386</arch>\n"
23986 " <distro>ubuntu</distro>\n"
23987 " <product_name>Ubuntu 10.10 "Maverick Meerkat"</product_name>\n"
23988 " <major_version>10</major_version>\n"
23989 " <minor_version>10</minor_version>\n"
23990 " <format>installer</format>\n"
23996 #: ../inspector/virt-inspector.pod:337
23997 msgid "XPATH QUERIES"
24001 #: ../inspector/virt-inspector.pod:339
24003 "Virt-inspector includes built in support for running XPath queries. The "
24004 "reason for including XPath support directly in virt-inspector is simply that "
24005 "there are no good and widely available command line programs that can do "
24006 "XPath queries. The only good one is L<xmlstarlet(1)> and that is not "
24007 "available on Red Hat Enterprise Linux."
24011 #: ../inspector/virt-inspector.pod:346
24013 "To perform an XPath query, use the I<--xpath> option. Note that in this "
24014 "mode, virt-inspector simply reads XML from stdin and outputs the query "
24015 "result on stdout. All other inspection features are disabled in this mode."
24019 #: ../inspector/virt-inspector.pod:353
24022 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
24024 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
24025 " <type>ext4</type>\n"
24031 #: ../inspector/virt-inspector.pod:359
24034 " $ virt-inspector -d Guest | \\\n"
24035 " virt-inspector --xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
24041 #: ../inspector/virt-inspector.pod:363
24044 " $ virt-inspector -d Guest | \\\n"
24045 " virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
24046 " [displays the guest icon, if there is one]\n"
24051 #: ../inspector/virt-inspector.pod:374
24052 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
24056 #: ../inspector/virt-inspector.pod:376
24058 "Early versions of libguestfs shipped with a different virt-inspector program "
24059 "written in Perl (the current version is written in C). The XML output of "
24060 "the Perl virt-inspector was different and it could also output in other "
24061 "formats like text."
24065 #: ../inspector/virt-inspector.pod:381
24067 "The old virt-inspector is no longer supported or shipped with libguestfs."
24071 #: ../inspector/virt-inspector.pod:384
24073 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
24074 "versions of virt-inspector with different names:"
24078 #: ../inspector/virt-inspector.pod:387
24081 " virt-inspector Old Perl version.\n"
24082 " virt-inspector2 New C version.\n"
24087 #: ../inspector/virt-inspector.pod:397
24089 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
24090 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
24094 #: ../inspector/virt-inspector.pod:414
24095 msgid "Matthew Booth L<mbooth@redhat.com>"
24099 #: ../java/examples/guestfs-java.pod:5
24100 msgid "guestfs-java - How to use libguestfs from Java"
24104 #: ../java/examples/guestfs-java.pod:9
24107 " import com.redhat.et.libguestfs.*;\n"
24112 #: ../java/examples/guestfs-java.pod:11
24115 " GuestFS g = new GuestFS ();\n"
24116 " g.add_drive_opts (\"disk.img\", null);\n"
24122 #: ../java/examples/guestfs-java.pod:17
24124 "This manual page documents how to call libguestfs from the Java programming "
24125 "language. This page just documents the differences from the C API and gives "
24126 "some examples. If you are not familiar with using libguestfs, you also need "
24127 "to read L<guestfs(3)>."
24131 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
24132 msgid "CLOSING THE HANDLE"
24136 #: ../java/examples/guestfs-java.pod:24
24138 "The handle is closed when it is reaped by the garbage collector. Because "
24139 "libguestfs handles include a lot of state, it is also possible to close (and "
24140 "hence free) them explicitly by calling the C<close> method."
24144 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
24145 #: ../python/examples/guestfs-python.pod:21
24146 #: ../ruby/examples/guestfs-ruby.pod:22
24151 #: ../java/examples/guestfs-java.pod:31
24153 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
24154 "exception. This has a single parameter which is the error message (a "
24159 #: ../java/examples/guestfs-java.pod:35
24160 msgid "Calling any method on a closed handle raises the same exception."
24164 #: ../java/examples/guestfs-java.pod:47
24166 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
24167 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
24168 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
24172 #: ../ocaml/examples/guestfs-ocaml.pod:5
24173 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
24177 #: ../ocaml/examples/guestfs-ocaml.pod:9
24178 msgid "Module style:"
24182 #: ../ocaml/examples/guestfs-ocaml.pod:11
24185 " let g = Guestfs.create () in\n"
24186 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
24187 " Guestfs.launch g;\n"
24192 #: ../ocaml/examples/guestfs-ocaml.pod:15
24193 msgid "Object-oriented style:"
24197 #: ../ocaml/examples/guestfs-ocaml.pod:17
24200 " let g = new Guestfs.guestfs () in\n"
24201 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
24207 #: ../ocaml/examples/guestfs-ocaml.pod:21
24210 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
24212 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
24217 #: ../ocaml/examples/guestfs-ocaml.pod:27
24219 "This manual page documents how to call libguestfs from the OCaml programming "
24220 "language. This page just documents the differences from the C API and gives "
24221 "some examples. If you are not familiar with using libguestfs, you also need "
24222 "to read L<guestfs(3)>."
24226 #: ../ocaml/examples/guestfs-ocaml.pod:32
24227 msgid "PROGRAMMING STYLES"
24231 #: ../ocaml/examples/guestfs-ocaml.pod:34
24233 "There are two different programming styles supported by the OCaml bindings. "
24234 "You can use a module style, with each C function mapped to an OCaml function:"
24238 #: ../ocaml/examples/guestfs-ocaml.pod:38
24241 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
24246 #: ../ocaml/examples/guestfs-ocaml.pod:40
24251 #: ../ocaml/examples/guestfs-ocaml.pod:42
24254 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
24259 #: ../ocaml/examples/guestfs-ocaml.pod:44
24261 "Alternately you can use an object-oriented style, calling methods on the "
24262 "class C<Guestfs.guestfs>:"
24266 #: ../ocaml/examples/guestfs-ocaml.pod:47
24269 " method set_verbose : bool -> unit\n"
24274 #: ../ocaml/examples/guestfs-ocaml.pod:49
24276 "The object-oriented style is usually briefer, and the minor performance "
24277 "penalty isn't noticable in the general overhead of performing libguestfs "
24282 #: ../ocaml/examples/guestfs-ocaml.pod:55
24284 "The handle is closed when it is reaped by the garbage collector. Because "
24285 "libguestfs handles include a lot of state, it is also possible to close (and "
24286 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
24291 #: ../ocaml/examples/guestfs-ocaml.pod:62
24293 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
24294 "exception. This has a single parameter which is the error message (a "
24299 #: ../ocaml/examples/guestfs-ocaml.pod:66
24301 "Calling any function/method on a closed handle raises C<Guestfs."
24302 "Handle_closed>. The single parameter is the name of the function that you "
24307 #: ../ocaml/examples/guestfs-ocaml.pod:80
24309 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24310 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
24311 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
24315 #: ../perl/examples/guestfs-perl.pod:5
24316 msgid "guestfs-perl - How to use libguestfs from Perl"
24320 #: ../perl/examples/guestfs-perl.pod:9
24323 " use Sys::Guestfs;\n"
24328 #: ../perl/examples/guestfs-perl.pod:11
24331 " my $h = Sys::Guestfs->new ();\n"
24332 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
24333 " $h->launch ();\n"
24334 " $h->mount_options ('', '/dev/sda1', '/');\n"
24335 " $h->touch ('/hello');\n"
24341 #: ../perl/examples/guestfs-perl.pod:20
24343 "This manual page documents how to call libguestfs from the Perl programming "
24344 "language. This page just documents the differences from the C API and gives "
24345 "some examples. If you are not familiar with using libguestfs, you also need "
24346 "to read L<guestfs(3)>. To read the full Perl API, see L<Sys::Guestfs(3)>."
24350 #: ../perl/examples/guestfs-perl.pod:26
24355 #: ../perl/examples/guestfs-perl.pod:28
24357 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
24362 #: ../perl/examples/guestfs-perl.pod:41
24364 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
24365 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
24366 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
24370 #: ../python/examples/guestfs-python.pod:5
24371 msgid "guestfs-python - How to use libguestfs from Python"
24375 #: ../python/examples/guestfs-python.pod:9
24378 " import guestfs\n"
24379 " g = guestfs.GuestFS ()\n"
24380 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
24386 #: ../python/examples/guestfs-python.pod:16
24388 "This manual page documents how to call libguestfs from the Python "
24389 "programming language. This page just documents the differences from the C "
24390 "API and gives some examples. If you are not familiar with using libguestfs, "
24391 "you also need to read L<guestfs(3)>."
24395 #: ../python/examples/guestfs-python.pod:23
24397 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
24398 "single string argument which is the error message."
24402 #: ../python/examples/guestfs-python.pod:26
24403 msgid "MORE DOCUMENTATION"
24407 #: ../python/examples/guestfs-python.pod:28
24412 #: ../python/examples/guestfs-python.pod:30
24416 " >>> import guestfs\n"
24417 " >>> help (guestfs)\n"
24422 #: ../python/examples/guestfs-python.pod:44
24424 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24425 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
24426 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
24430 #: ../rescue/virt-rescue.pod:5
24431 msgid "virt-rescue - Run a rescue shell on a virtual machine"
24435 #: ../rescue/virt-rescue.pod:9
24438 " virt-rescue [--options] -d domname\n"
24443 #: ../rescue/virt-rescue.pod:11
24446 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
24451 #: ../rescue/virt-rescue.pod:13
24454 #| " virt-filesystems --format=raw -a disk.img\n"
24457 " virt-rescue --suggest (-d domname | -a disk.img ...)\n"
24460 " virt-filesystems --format=raw -a диск.img\n"
24464 #: ../rescue/virt-rescue.pod:17
24467 " virt-rescue [--options] domname\n"
24472 #: ../rescue/virt-rescue.pod:19
24475 " virt-rescue [--options] disk.img [disk.img ...]\n"
24480 #: ../rescue/virt-rescue.pod:23
24482 "You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
24483 "probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
24484 "you from doing this, but doesn't catch all cases."
24488 #: ../rescue/virt-rescue.pod:27
24490 "However if you use the I<--ro> (read only) option, then you can attach a "
24491 "shell to a live virtual machine. The results might be strange or "
24492 "inconsistent at times but you won't get disk corruption."
24496 #: ../rescue/virt-rescue.pod:33
24498 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
24499 "need for a CD. virt-rescue gives you a rescue shell and some simple "
24500 "recovery tools which you can use to examine or rescue a virtual machine or "
24505 #: ../rescue/virt-rescue.pod:38
24507 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
24508 "on disk image(s):"
24512 #: ../rescue/virt-rescue.pod:41
24515 " virt-rescue -d GuestName\n"
24520 #: ../rescue/virt-rescue.pod:43
24523 " virt-rescue --ro -a /path/to/disk.img\n"
24528 #: ../rescue/virt-rescue.pod:45
24531 " virt-rescue -a /dev/sdc\n"
24536 #: ../rescue/virt-rescue.pod:47
24537 msgid "For live VMs you I<must> use the --ro option."
24541 #: ../rescue/virt-rescue.pod:49
24543 "When you run virt-rescue on a virtual machine or disk image, you are placed "
24544 "in an interactive bash shell where you can use many ordinary Linux "
24545 "commands. What you see in C</> (C</bin>, C</lib> etc) is the rescue "
24546 "appliance. You must mount the virtual machine's filesystems by hand. There "
24547 "is an empty directory called C</sysroot> where you can mount filesystems."
24551 #: ../rescue/virt-rescue.pod:56
24553 "You can get virt-rescue to suggest mount commands for you by using the I<--"
24554 "suggest> option (in another terminal):"
24558 #: ../rescue/virt-rescue.pod:59
24561 " $ virt-rescue --suggest -d Fedora15\n"
24562 " Inspecting the virtual machine or disk image ...\n"
24567 #: ../rescue/virt-rescue.pod:62
24570 " This disk contains one or more operating systems. You can use these\n"
24571 " mount commands in virt-rescue (at the ><rescue> prompt) to mount the\n"
24577 #: ../rescue/virt-rescue.pod:66
24580 " # /dev/vg_f15x32/lv_root is the root of a linux operating system\n"
24581 " # type: linux, distro: fedora, version: 15.0\n"
24582 " # Fedora release 15 (Lovelock)\n"
24587 #: ../rescue/virt-rescue.pod:70
24590 " mount /dev/vg_f15x32/lv_root /sysroot/\n"
24591 " mount /dev/vda1 /sysroot/boot\n"
24592 " mount --bind /dev /sysroot/dev\n"
24593 " mount --bind /dev/pts /sysroot/dev/pts\n"
24594 " mount --bind /proc /sysroot/proc\n"
24595 " mount --bind /sys /sysroot/sys\n"
24600 #: ../rescue/virt-rescue.pod:77
24602 "Another way is to list the logical volumes (with L<lvs(8)>) and partitions "
24603 "(with L<parted(8)>) and mount them by hand:"
24607 #: ../rescue/virt-rescue.pod:80
24611 " LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
24612 " lv_root vg_f15x32 -wi-a- 8.83G\n"
24613 " lv_swap vg_f15x32 -wi-a- 992.00M\n"
24614 " ><rescue> mount /dev/vg_f15x32/lv_root /sysroot\n"
24615 " ><rescue> mount /dev/vda1 /sysroot/boot\n"
24616 " ><rescue> ls /sysroot\n"
24621 #: ../rescue/virt-rescue.pod:88
24623 "Another command to list available filesystems is L<virt-filesystems(1)>."
24627 #: ../rescue/virt-rescue.pod:91
24629 "To run commands in a Linux guest (for example, grub), you should chroot into "
24630 "the /sysroot directory first:"
24634 #: ../rescue/virt-rescue.pod:94
24637 " ><rescue> chroot /sysroot\n"
24642 #: ../rescue/virt-rescue.pod:98
24644 "Virt-rescue can be used on I<any> disk image file or device, not just a "
24645 "virtual machine. For example you can use it on a blank file if you want to "
24646 "partition that file (although we would recommend using L<guestfish(1)> "
24647 "instead as it is more suitable for this purpose). You can even use virt-"
24648 "rescue on things like SD cards."
24652 #: ../rescue/virt-rescue.pod:104
24654 "Virt-rescue does not require root. You only need to run it as root if you "
24655 "need root to open the disk image."
24659 #: ../rescue/virt-rescue.pod:107
24661 "This tool is just designed for quick interactive hacking on a virtual "
24662 "machine. For more structured access to a virtual machine disk image, you "
24663 "should use L<guestfs(3)>. To get a structured shell that you can use to "
24664 "make scripted changes to guests, use L<guestfish(1)>."
24668 #: ../rescue/virt-rescue.pod:131
24669 msgid "B<--append kernelopts>"
24670 msgstr "B<--append параметри_ядра>"
24673 #: ../rescue/virt-rescue.pod:133
24674 msgid "Pass additional options to the rescue kernel."
24678 #: ../rescue/virt-rescue.pod:163
24681 " virt-rescue --format=raw -a disk.img\n"
24686 #: ../rescue/virt-rescue.pod:167
24689 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
24694 #: ../rescue/virt-rescue.pod:176
24699 #: ../rescue/virt-rescue.pod:178
24700 msgid "B<--memsize MB>"
24701 msgstr "B<--memsize МБ>"
24704 #: ../rescue/virt-rescue.pod:180
24706 "Change the amount of memory allocated to the rescue system. The default is "
24707 "set by libguestfs and is small but adequate for running system tools. The "
24708 "occasional program might need more memory. The parameter is specified in "
24713 #: ../rescue/virt-rescue.pod:185
24714 msgid "B<--network>"
24715 msgstr "B<--network>"
24718 #: ../rescue/virt-rescue.pod:187
24719 msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
24723 #: ../rescue/virt-rescue.pod:193
24724 msgid "Open the image read-only."
24728 #: ../rescue/virt-rescue.pod:203
24730 "Enable SELinux in the rescue appliance. You should read L<guestfs(3)/"
24731 "SELINUX> before using this option."
24735 #: ../rescue/virt-rescue.pod:206
24740 #: ../rescue/virt-rescue.pod:208
24741 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
24745 #: ../rescue/virt-rescue.pod:210
24747 #| msgid "B<--quiet>"
24748 msgid "B<--suggest>"
24749 msgstr "B<--quiet>"
24752 #: ../rescue/virt-rescue.pod:212
24754 "Inspect the disk image and suggest what mount commands should be used to "
24755 "mount the disks. You should use the I<--suggest> option in a second "
24756 "terminal, then paste the commands into another virt-rescue."
24760 #: ../rescue/virt-rescue.pod:216
24762 "This option implies I<--ro> and is safe to use even if the guest is up or if "
24763 "another virt-rescue is running."
24767 #: ../rescue/virt-rescue.pod:235
24769 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
24770 "are done read-write."
24774 #: ../rescue/virt-rescue.pod:248
24775 msgid "Previous versions of virt-rescue allowed you to write either:"
24779 #: ../rescue/virt-rescue.pod:250
24782 " virt-rescue disk.img [disk.img ...]\n"
24787 #: ../rescue/virt-rescue.pod:254
24790 " virt-rescue guestname\n"
24795 #: ../rescue/virt-rescue.pod:262
24800 #: ../rescue/virt-rescue.pod:264
24802 "Adding the I<--network> option enables QEMU user networking in the rescue "
24803 "appliance. There are some differences between user networking and ordinary "
24808 #: ../rescue/virt-rescue.pod:270
24809 msgid "ping does not work"
24813 #: ../rescue/virt-rescue.pod:272
24815 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
24816 "send the ping packets, and because virt-rescue must be able to run as non-"
24817 "root, QEMU user networking is not able to emulate the L<ping(8)> command. "
24818 "The ping command will appear to resolve addresses but will not be able to "
24819 "send or receive any packets. This does not mean that the network is not "
24824 #: ../rescue/virt-rescue.pod:279
24825 msgid "cannot receive connections"
24829 #: ../rescue/virt-rescue.pod:281
24830 msgid "QEMU user networking cannot receive incoming connections."
24834 #: ../rescue/virt-rescue.pod:283
24835 msgid "making TCP connections"
24839 #: ../rescue/virt-rescue.pod:285
24841 "The virt-rescue appliance needs to be small and so does not include many "
24842 "network tools. In particular there is no L<telnet(1)> command. You can "
24843 "make TCP connections from the shell using the magical C</dev/tcp/"
24844 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
24848 #: ../rescue/virt-rescue.pod:290
24851 " exec 3<>/dev/tcp/redhat.com/80\n"
24852 " echo \"GET /\" >&3\n"
24858 #: ../rescue/virt-rescue.pod:294
24859 msgid "See L<bash(1)> for more details."
24863 #: ../rescue/virt-rescue.pod:300
24865 "Several environment variables affect virt-rescue. See L<guestfs(3)/"
24866 "ENVIRONMENT VARIABLES> for the complete list."
24870 #: ../rescue/virt-rescue.pod:327
24873 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
24874 #| "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
24876 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
24877 "filesystems(1)>, L<http://libguestfs.org/>."
24879 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
24880 "tar-out(1)>, L<http://libguestfs.org/>."
24883 #: ../resize/virt-resize.pod:5
24884 msgid "virt-resize - Resize a virtual machine disk"
24888 #: ../resize/virt-resize.pod:9
24891 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
24892 " [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
24893 " [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
24898 #: ../resize/virt-resize.pod:15
24900 "Virt-resize is a tool which can resize a virtual machine disk, making it "
24901 "larger or smaller overall, and resizing or deleting any partitions contained "
24906 #: ../resize/virt-resize.pod:19
24908 "Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
24909 "not> be used on live virtual machines - for consistent results, shut the "
24910 "virtual machine down before resizing it."
24914 #: ../resize/virt-resize.pod:23
24916 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
24917 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
24921 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597
24922 #: ../sparsify/virt-sparsify.pod:221 ../src/guestfs.pod:484
24923 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
24928 #: ../resize/virt-resize.pod:33
24930 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
24931 "fill the extra 5GB of space."
24935 #: ../resize/virt-resize.pod:36
24938 " virt-filesystems --long -h --all -a olddisk\n"
24943 #: ../resize/virt-resize.pod:38
24946 " truncate -r olddisk newdisk\n"
24947 " truncate -s +5G newdisk\n"
24952 #: ../resize/virt-resize.pod:41
24955 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
24956 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
24961 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604
24962 #: ../sparsify/virt-sparsify.pod:228 ../src/guestfs.pod:490
24963 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
24968 #: ../resize/virt-resize.pod:46
24970 "As above, but make the /boot partition 200MB bigger, while giving the "
24971 "remaining space to /dev/sda2:"
24975 #: ../resize/virt-resize.pod:49
24978 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24979 " olddisk newdisk\n"
24984 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610
24985 #: ../sparsify/virt-sparsify.pod:234 ../src/guestfs.pod:501
24986 #: ../src/guestfs.pod:1451
24991 #: ../resize/virt-resize.pod:54
24993 "As in the first example, but expand a logical volume as the final step. "
24994 "This is what you would typically use for Linux guests that use LVM:"
24998 #: ../resize/virt-resize.pod:58
25001 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
25002 " olddisk newdisk\n"
25007 #: ../resize/virt-resize.pod:61
25012 #: ../resize/virt-resize.pod:63
25014 "As in the first example, but the output format will be qcow2 instead of a "
25019 #: ../resize/virt-resize.pod:66
25022 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
25023 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
25028 #: ../resize/virt-resize.pod:71
25029 msgid "DETAILED USAGE"
25030 msgstr "ДОКЛАДНІШЕ ЩОДО ВИКОРИСТАННЯ"
25033 #: ../resize/virt-resize.pod:73
25034 msgid "EXPANDING A VIRTUAL MACHINE DISK"
25035 msgstr "РОЗШИРЕННЯ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
25038 #: ../resize/virt-resize.pod:77
25039 msgid "1. Shut down the virtual machine"
25043 #: ../resize/virt-resize.pod:79
25044 msgid "2. Locate input disk image"
25048 #: ../resize/virt-resize.pod:81
25050 "Locate the input disk image (ie. the file or device on the host containing "
25051 "the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
25052 "dumpxml> like this to find the disk image name:"
25056 #: ../resize/virt-resize.pod:85
25059 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
25060 " Found 1 nodes:\n"
25062 " <source dev=\"/dev/vg/lv_guest\" />\n"
25067 #: ../resize/virt-resize.pod:90
25068 msgid "3. Look at current sizing"
25072 #: ../resize/virt-resize.pod:92
25073 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
25077 #: ../resize/virt-resize.pod:95
25080 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
25081 " Name Type Size Parent\n"
25082 " /dev/sda1 partition 101M /dev/sda\n"
25083 " /dev/sda2 partition 7.9G /dev/sda\n"
25084 " /dev/sda device 8.0G -\n"
25089 #: ../resize/virt-resize.pod:101
25091 "(This example is a virtual machine with an 8 GB disk which we would like to "
25092 "expand up to 10 GB)."
25096 #: ../resize/virt-resize.pod:104
25097 msgid "4. Create output disk"
25101 #: ../resize/virt-resize.pod:106
25103 "Virt-resize cannot do in-place disk modifications. You have to have space "
25104 "to store the resized output disk."
25108 #: ../resize/virt-resize.pod:109
25110 "To store the resized disk image in a file, create a file of a suitable size:"
25114 #: ../resize/virt-resize.pod:112
25117 " # rm -f outdisk\n"
25118 " # truncate -s 10G outdisk\n"
25123 #: ../resize/virt-resize.pod:115
25124 msgid "Or use L<lvcreate(1)> to create a logical volume:"
25128 #: ../resize/virt-resize.pod:117
25131 " # lvcreate -L 10G -n lv_name vg_name\n"
25136 #: ../resize/virt-resize.pod:119
25137 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
25141 #: ../resize/virt-resize.pod:121
25144 " # virsh pool-list\n"
25145 " # virsh vol-create-as poolname newvol 10G\n"
25150 #: ../resize/virt-resize.pod:124
25152 msgstr "5. Зміна розміру"
25155 #: ../resize/virt-resize.pod:126
25157 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
25158 "file) and the output disk. The output disk is the one created in the "
25163 #: ../resize/virt-resize.pod:130
25166 " # virt-resize indisk outdisk\n"
25171 #: ../resize/virt-resize.pod:132
25173 "This command just copies disk image C<indisk> to disk image C<outdisk> "
25174 "I<without> resizing or changing any existing partitions. If C<outdisk> is "
25175 "larger, then an extra, empty partition is created at the end of the disk "
25176 "covering the extra space. If C<outdisk> is smaller, then it will give an "
25181 #: ../resize/virt-resize.pod:138
25183 "More realistically you'd want to expand existing partitions in the disk "
25184 "image by passing extra options (for the full list see the L</OPTIONS> "
25189 #: ../resize/virt-resize.pod:142
25191 "L</--expand> is the most useful option. It expands the named partition "
25192 "within the disk to fill any extra space:"
25196 #: ../resize/virt-resize.pod:145
25199 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
25204 #: ../resize/virt-resize.pod:147
25206 "(In this case, an extra partition is I<not> created at the end of the disk, "
25207 "because there will be no unused space)."
25211 #: ../resize/virt-resize.pod:150
25213 "L</--resize> is the other commonly used option. The following would "
25214 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
25215 "rest of the available space:"
25219 #: ../resize/virt-resize.pod:154
25222 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
25223 " indisk outdisk\n"
25228 #: ../resize/virt-resize.pod:157
25230 "If the expanded partition in the image contains a filesystem or LVM PV, then "
25231 "if virt-resize knows how, it will resize the contents, the equivalent of "
25232 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
25233 "or L<btrfs(8)>. However virt-resize does not know how to resize some "
25234 "filesystems, so you would have to online resize them after booting the guest."
25238 #: ../resize/virt-resize.pod:164
25239 msgid "Other options are covered below."
25243 #: ../resize/virt-resize.pod:166
25245 msgstr "6. Перевірка"
25248 #: ../resize/virt-resize.pod:168
25249 msgid "Thoroughly test the new disk image I<before> discarding the old one."
25253 #: ../resize/virt-resize.pod:170
25254 msgid "If you are using libvirt, edit the XML to point at the new disk:"
25258 #: ../resize/virt-resize.pod:172
25261 " # virsh edit guestname\n"
25266 #: ../resize/virt-resize.pod:174
25268 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
25269 "html#elementsDisks>"
25273 #: ../resize/virt-resize.pod:177
25274 msgid "Then start up the domain with the new, resized disk:"
25278 #: ../resize/virt-resize.pod:179
25281 " # virsh start guestname\n"
25286 #: ../resize/virt-resize.pod:181
25288 "and check that it still works. See also the L</NOTES> section below for "
25289 "additional information."
25293 #: ../resize/virt-resize.pod:184
25294 msgid "7. Resize LVs etc inside the guest"
25298 #: ../resize/virt-resize.pod:186
25299 msgid "(This can also be done offline using L<guestfish(1)>)"
25303 #: ../resize/virt-resize.pod:188
25305 "Once the guest has booted you should see the new space available, at least "
25306 "for filesystems that virt-resize knows how to resize, and for PVs. The user "
25307 "may need to resize LVs inside PVs, and also resize filesystem types that "
25308 "virt-resize does not know how to expand."
25312 #: ../resize/virt-resize.pod:195
25313 msgid "SHRINKING A VIRTUAL MACHINE DISK"
25317 #: ../resize/virt-resize.pod:197
25319 "Shrinking is somewhat more complex than expanding, and only an overview is "
25324 #: ../resize/virt-resize.pod:200
25326 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
25327 "filesystems). The user has to shrink content before passing the disk image "
25328 "to virt-resize, and virt-resize will check that the content has been shrunk "
25333 #: ../resize/virt-resize.pod:205
25334 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
25338 #: ../resize/virt-resize.pod:207
25340 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
25341 "steps 3 and 4 above to allocate a new disk image."
25345 #: ../resize/virt-resize.pod:210
25347 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
25351 #: ../resize/virt-resize.pod:213
25352 msgid "IGNORING OR DELETING PARTITIONS"
25356 #: ../resize/virt-resize.pod:215
25358 "virt-resize also gives a convenient way to ignore or delete partitions when "
25359 "copying from the input disk to the output disk. Ignoring a partition speeds "
25360 "up the copy where you don't care about the existing contents of a "
25361 "partition. Deleting a partition removes it completely, but note that it "
25362 "also renumbers any partitions after the one which is deleted, which can "
25363 "leave some guests unbootable."
25367 #: ../resize/virt-resize.pod:222
25368 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
25372 #: ../resize/virt-resize.pod:224
25374 "If the input disk is in qcow2 format, then you may prefer that the output is "
25375 "in qcow2 format as well. Alternately, virt-resize can convert the format on "
25376 "the fly. The output format is simply determined by the format of the empty "
25377 "output container that you provide. Thus to create qcow2 output, use:"
25381 #: ../resize/virt-resize.pod:230
25384 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
25389 #: ../resize/virt-resize.pod:232
25390 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
25394 #: ../resize/virt-resize.pod:234
25395 msgid "Similarly, to get non-sparse raw output use:"
25399 #: ../resize/virt-resize.pod:236
25402 " fallocate -l size outdisk\n"
25407 #: ../resize/virt-resize.pod:238
25409 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
25410 "dev/zero of=outdisk bs=1M count=..>)"
25414 #: ../resize/virt-resize.pod:241
25415 msgid "LOGICAL PARTITIONS"
25419 #: ../resize/virt-resize.pod:243
25421 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
25422 "tables) cannot be resized."
25426 #: ../resize/virt-resize.pod:246
25428 "To understand what is going on, firstly one of the four partitions C</dev/"
25429 "sda1-4> will have MBR partition type C<05> or C<0f>. This is called the "
25430 "B<extended partition>. Use L<virt-filesystems(1)> to see the MBR partition "
25435 #: ../resize/virt-resize.pod:251
25436 msgid "Logical partitions live inside the extended partition."
25440 #: ../resize/virt-resize.pod:253
25442 "The extended partition can be expanded, but not shrunk (unless you force it, "
25443 "which is not advisable). When the extended partition is copied across, all "
25444 "the logical partitions contained inside are copied over implicitly. Virt-"
25445 "resize does not look inside the extended partition, so it copies the logical "
25446 "partitions blindly."
25450 #: ../resize/virt-resize.pod:259
25452 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
25453 "line. Doing so will give an error."
25457 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
25458 msgid "Display help."
25462 #: ../resize/virt-resize.pod:270
25463 msgid "B<--align-first auto>"
25467 #: ../resize/virt-resize.pod:272
25468 msgid "B<--align-first never>"
25472 #: ../resize/virt-resize.pod:274
25473 msgid "B<--align-first always>"
25477 #: ../resize/virt-resize.pod:276
25479 "Align the first partition for improved performance (see also the I<--"
25480 "alignment> option)."
25484 #: ../resize/virt-resize.pod:279
25486 "The default is I<--align-first auto> which only aligns the first partition "
25487 "if it is safe to do so. That is, only when we know how to fix the "
25488 "bootloader automatically, and at the moment that can only be done for "
25493 #: ../resize/virt-resize.pod:284
25495 "I<--align-first never> means we never move the first partition. This is the "
25496 "safest option. Try this if the guest does not boot after resizing."
25500 #: ../resize/virt-resize.pod:288
25502 "I<--align-first always> means we always align the first partition (if it "
25503 "needs to be aligned). For some guests this will break the bootloader, "
25504 "making the guest unbootable."
25508 #: ../resize/virt-resize.pod:292
25509 msgid "B<--alignment N>"
25513 #: ../resize/virt-resize.pod:294
25515 "Set the alignment of partitions to C<N> sectors. The default in virt-resize "
25516 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
25520 #: ../resize/virt-resize.pod:298
25522 "Assuming 512 byte sector size inside the guest, here are some suitable "
25527 #: ../resize/virt-resize.pod:303
25528 msgid "I<--alignment 1> (512 bytes)"
25532 #: ../resize/virt-resize.pod:305
25534 "The partitions would be packed together as closely as possible, but would be "
25535 "completely unaligned. In some cases this can cause very poor performance. "
25536 "See L<virt-alignment-scan(1)> for further details."
25540 #: ../resize/virt-resize.pod:309
25541 msgid "I<--alignment 8> (4K)"
25545 #: ../resize/virt-resize.pod:311
25547 "This would be the minimum acceptable alignment for reasonable performance on "
25552 #: ../resize/virt-resize.pod:314
25553 msgid "I<--alignment 128> (64K)"
25557 #: ../resize/virt-resize.pod:316
25559 "This alignment provides good performance when the host is using high end "
25564 #: ../resize/virt-resize.pod:319
25565 msgid "I<--alignment 2048> (1M)"
25569 #: ../resize/virt-resize.pod:321
25571 "This is the standard alignment used by all newly installed guests since "
25576 #: ../resize/virt-resize.pod:326
25581 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
25582 #: ../tools/virt-win-reg.pl:120
25584 msgstr "B<--debug>"
25587 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
25588 msgid "Enable debugging messages."
25592 #: ../resize/virt-resize.pod:332
25593 msgid "B<--delete part>"
25594 msgstr "B<--delete розділ>"
25597 #: ../resize/virt-resize.pod:334
25599 "Delete the named partition. It would be more accurate to describe this as "
25600 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
25601 "the original disk image is left intact."
25605 #: ../resize/virt-resize.pod:338
25607 "Note that when you delete a partition, then anything contained in the "
25608 "partition is also deleted. Furthermore, this causes any partitions that "
25609 "come after to be I<renumbered>, which can easily make your guest unbootable."
25613 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404
25614 #: ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:151
25615 msgid "You can give this option multiple times."
25619 #: ../resize/virt-resize.pod:345
25620 msgid "B<--expand part>"
25621 msgstr "B<--expand розділ>"
25624 #: ../resize/virt-resize.pod:347
25626 "Expand the named partition so it uses up all extra space (space left over "
25627 "after any other resize changes that you request have been done)."
25631 #: ../resize/virt-resize.pod:350
25633 "If virt-resize knows how, it will expand the direct content of the "
25634 "partition. For example, if the partition is an LVM PV, it will expand the "
25635 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
25636 "content it doesn't know about alone."
25640 #: ../resize/virt-resize.pod:355
25641 msgid "Currently virt-resize can resize:"
25645 #: ../resize/virt-resize.pod:361
25646 msgid "ext2, ext3 and ext4 filesystems."
25650 #: ../resize/virt-resize.pod:365
25651 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
25655 #: ../resize/virt-resize.pod:367
25657 "The filesystem must have been shut down consistently last time it was used. "
25658 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
25659 "consistency check, so at the first boot after resizing Windows will check "
25664 #: ../resize/virt-resize.pod:374
25666 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
25667 "inside the PV, but see the I<--LV-expand> option. The user could also "
25668 "resize LVs as desired after boot."
25672 #: ../resize/virt-resize.pod:380
25673 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
25677 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
25678 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
25682 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:131
25683 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
25684 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
25685 msgid "B<--format> raw"
25686 msgstr "B<--format> raw"
25689 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:135
25691 "Specify the format of the input disk image. If this flag is not given then "
25692 "it is auto-detected from the image itself."
25696 #: ../resize/virt-resize.pod:394
25698 "Note that this option I<does not> affect the output format. See L</QCOW2 "
25699 "AND NON-SPARSE RAW FORMATS>."
25703 #: ../resize/virt-resize.pod:397
25704 msgid "B<--ignore part>"
25705 msgstr "B<--ignore розділ>"
25708 #: ../resize/virt-resize.pod:399
25710 "Ignore the named partition. Effectively this means the partition is "
25711 "allocated on the destination disk, but the content is not copied across from "
25712 "the source disk. The content of the partition will be blank (all zero "
25717 #: ../resize/virt-resize.pod:406
25718 msgid "B<--LV-expand logvol>"
25719 msgstr "B<--LV-expand логічний_том>"
25722 #: ../resize/virt-resize.pod:408
25724 "This takes the logical volume and, as a final step, expands it to fill all "
25725 "the space available in its volume group. A typical usage, assuming a Linux "
25726 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
25727 "lv_root> would be:"
25731 #: ../resize/virt-resize.pod:413
25734 " virt-resize indisk outdisk \\\n"
25735 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
25740 #: ../resize/virt-resize.pod:416
25742 "This would first expand the partition (and PV), and then expand the root "
25743 "device to fill the extra space in the PV."
25747 #: ../resize/virt-resize.pod:419
25749 "The contents of the LV are also resized if virt-resize knows how to do "
25750 "that. You can stop virt-resize from trying to expand the content by using "
25751 "the option I<--no-expand-content>."
25755 #: ../resize/virt-resize.pod:423
25756 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
25760 #: ../resize/virt-resize.pod:425
25762 "You can give this option multiple times, I<but> it doesn't make sense to do "
25763 "this unless the logical volumes you specify are all in different volume "
25768 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:153
25769 msgid "B<--machine-readable>"
25773 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:155
25775 "This option is used to make the output more machine friendly when being "
25776 "parsed by other programs. See L</MACHINE READABLE OUTPUT> below."
25780 #: ../resize/virt-resize.pod:437
25781 msgid "B<--dryrun>"
25782 msgstr "B<--dryrun>"
25785 #: ../resize/virt-resize.pod:439
25786 msgid "Print a summary of what would be done, but don't do anything."
25790 #: ../resize/virt-resize.pod:441
25791 msgid "B<--no-copy-boot-loader>"
25792 msgstr "B<--no-copy-boot-loader>"
25795 #: ../resize/virt-resize.pod:443
25797 "By default, virt-resize copies over some sectors at the start of the disk "
25798 "(up to the beginning of the first partition). Commonly these sectors "
25799 "contain the Master Boot Record (MBR) and the boot loader, and are required "
25800 "in order for the guest to boot correctly."
25804 #: ../resize/virt-resize.pod:448
25806 "If you specify this flag, then this initial copy is not done. You may need "
25807 "to reinstall the boot loader in this case."
25811 #: ../resize/virt-resize.pod:451
25812 msgid "B<--no-extra-partition>"
25813 msgstr "B<--no-extra-partition>"
25816 #: ../resize/virt-resize.pod:453
25818 "By default, virt-resize creates an extra partition if there is any extra, "
25819 "unused space after all resizing has happened. Use this option to prevent "
25820 "the extra partition from being created. If you do this then the extra space "
25821 "will be inaccessible until you run fdisk, parted, or some other partitioning "
25822 "tool in the guest."
25826 #: ../resize/virt-resize.pod:459
25828 "Note that if the surplus space is smaller than 10 MB, no extra partition "
25833 #: ../resize/virt-resize.pod:462
25834 msgid "B<--no-expand-content>"
25835 msgstr "B<--no-expand-content>"
25838 #: ../resize/virt-resize.pod:464
25840 "By default, virt-resize will try to expand the direct contents of "
25841 "partitions, if it knows how (see I<--expand> option above)."
25845 #: ../resize/virt-resize.pod:467
25847 "If you give the I<--no-expand-content> option then virt-resize will not "
25852 #: ../resize/virt-resize.pod:470
25853 msgid "B<--ntfsresize-force>"
25854 msgstr "B<--ntfsresize-force>"
25857 #: ../resize/virt-resize.pod:472
25859 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
25860 "the NTFS disk is marked as needing a consistency check. You have to use "
25861 "this option if you want to resize a Windows guest multiple times without "
25862 "booting into Windows between each resize."
25866 #: ../resize/virt-resize.pod:478
25867 msgid "B<--output-format> raw"
25868 msgstr "B<--output-format> raw"
25871 #: ../resize/virt-resize.pod:480
25873 "Specify the format of the output disk image. If this flag is not given then "
25874 "it is auto-detected from the image itself."
25878 #: ../resize/virt-resize.pod:486
25880 "Note that this option I<does not create> the output format. This option "
25881 "just tells libguestfs what it is so it doesn't try to guess it. You still "
25882 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
25883 "SPARSE RAW FORMATS>."
25887 #: ../resize/virt-resize.pod:495
25888 msgid "Don't print the summary."
25892 #: ../resize/virt-resize.pod:497
25893 msgid "B<--resize part=size>"
25894 msgstr "B<--resize розділ=розмір>"
25897 #: ../resize/virt-resize.pod:499
25899 "Resize the named partition (expanding or shrinking it) so that it has the "
25904 #: ../resize/virt-resize.pod:502
25906 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
25907 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
25908 "size; or as a relative number or percentage. For example:"
25912 #: ../resize/virt-resize.pod:508
25915 " --resize /dev/sda2=10G\n"
25920 #: ../resize/virt-resize.pod:510
25923 " --resize /dev/sda4=90%\n"
25928 #: ../resize/virt-resize.pod:512
25931 " --resize /dev/sda2=+1G\n"
25936 #: ../resize/virt-resize.pod:514
25939 " --resize /dev/sda2=-200M\n"
25944 #: ../resize/virt-resize.pod:516
25947 " --resize /dev/sda1=+128K\n"
25952 #: ../resize/virt-resize.pod:518
25955 " --resize /dev/sda1=+10%\n"
25960 #: ../resize/virt-resize.pod:520
25963 " --resize /dev/sda1=-10%\n"
25968 #: ../resize/virt-resize.pod:522
25970 "You can increase the size of any partition. Virt-resize will expand the "
25971 "direct content of the partition if it knows how (see I<--expand> below)."
25975 #: ../resize/virt-resize.pod:526
25977 "You can only I<decrease> the size of partitions that contain filesystems or "
25978 "PVs which have already been shrunk. Virt-resize will check this has been "
25979 "done before proceeding, or else will print an error (see also I<--resize-"
25984 #: ../resize/virt-resize.pod:533
25985 msgid "B<--resize-force part=size>"
25986 msgstr "B<--resize-force розділ=розмір>"
25989 #: ../resize/virt-resize.pod:535
25991 "This is the same as I<--resize> except that it will let you decrease the "
25992 "size of any partition. Generally this means you will lose any data which "
25993 "was at the end of the partition you shrink, but you may not care about that "
25994 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
25995 "as a swap partition)."
25999 #: ../resize/virt-resize.pod:541
26000 msgid "See also the I<--ignore> option."
26004 #: ../resize/virt-resize.pod:543
26005 msgid "B<--shrink part>"
26006 msgstr "B<--shrink розділ>"
26009 #: ../resize/virt-resize.pod:545
26011 "Shrink the named partition until the overall disk image fits in the "
26012 "destination. The named partition B<must> contain a filesystem or PV which "
26013 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
26014 "online tools). Virt-resize will check this and give an error if it has not "
26019 #: ../resize/virt-resize.pod:551
26021 "The amount by which the overall disk must be shrunk (after carrying out all "
26022 "other operations requested by the user) is called the \"deficit\". For "
26023 "example, a straight copy (assume no other operations) from a 5GB disk image "
26024 "to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
26025 "would give an error unless the user specified a partition to shrink and that "
26026 "partition had more than a gigabyte of free space."
26030 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:195
26031 msgid "MACHINE READABLE OUTPUT"
26035 #: ../resize/virt-resize.pod:571
26037 "The I<--machine-readable> option can be used to make the output more machine "
26038 "friendly, which is useful when calling virt-resize from other programs, GUIs "
26043 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:201
26044 msgid "There are two ways to use this option."
26048 #: ../resize/virt-resize.pod:577
26050 "Firstly use the option on its own to query the capabilities of the virt-"
26051 "resize binary. Typical output looks like this:"
26055 #: ../resize/virt-resize.pod:580
26058 " $ virt-resize --machine-readable\n"
26060 " ntfsresize-force\n"
26068 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:211
26070 "A list of features is printed, one per line, and the program exits with "
26075 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:214
26077 "Secondly use the option in conjunction with other options to make the "
26078 "regular program output more machine friendly."
26082 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:217
26083 msgid "At the moment this means:"
26087 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:223
26089 "Progress bar messages can be parsed from stdout by looking for this regular "
26094 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:226
26097 " ^[0-9]+/[0-9]+$\n"
26102 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:230
26104 "The calling program should treat messages sent to stdout (except for "
26105 "progress bar messages) as status messages. They can be logged and/or "
26106 "displayed to the user."
26110 #: ../resize/virt-resize.pod:612
26112 "The calling program should treat messages sent to stderr as error messages. "
26113 "In addition, virt-resize exits with a non-zero status code if there was a "
26118 #: ../resize/virt-resize.pod:618
26120 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
26121 "readable> option and will return an error."
26125 #: ../resize/virt-resize.pod:623
26126 msgid "\"Partition 1 does not end on cylinder boundary.\""
26130 #: ../resize/virt-resize.pod:625
26132 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
26133 "alignment> parameter). Usually this means the partitions will not be "
26134 "aligned to the ancient CHS geometry. However CHS geometry is meaningless "
26135 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
26136 "drives. Alignment of partitions to cylinders is not required by any modern "
26137 "operating system."
26141 #: ../resize/virt-resize.pod:632
26142 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
26146 #: ../resize/virt-resize.pod:634
26148 "In Windows Vista and later versions, Microsoft switched to using a separate "
26149 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
26150 "and C</dev/sda2> is the main (C:) drive. Resizing the first (boot) "
26151 "partition causes the bootloader to fail with C<0xC0000225> error. Resizing "
26152 "the second partition (ie. C: drive) should work."
26156 #: ../resize/virt-resize.pod:641
26158 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
26159 "NTFS partitions have been expanded. This is just a safety check and (unless "
26160 "it find errors) is nothing to worry about."
26164 #: ../resize/virt-resize.pod:645
26165 msgid "GUEST BOOT STUCK AT \"GRUB\""
26169 #: ../resize/virt-resize.pod:647
26171 "If a Linux guest does not boot after resizing, and the boot is stuck after "
26172 "printing C<GRUB> on the console, try reinstalling grub."
26176 #: ../resize/virt-resize.pod:650
26179 " guestfish -i -a newdisk\n"
26180 " ><fs> cat /boot/grub/device.map\n"
26181 " # check the contents of this file are sensible or\n"
26182 " # edit the file if necessary\n"
26183 " ><fs> grub-install / /dev/vda\n"
26189 #: ../resize/virt-resize.pod:657
26191 "For more flexible guest reconfiguration, including if you need to specify "
26192 "other parameters to grub-install, use L<virt-rescue(1)>."
26196 #: ../resize/virt-resize.pod:660
26197 msgid "ALTERNATIVE TOOLS"
26201 #: ../resize/virt-resize.pod:662
26203 "There are several proprietary tools for resizing partitions. We won't "
26204 "mention any here."
26208 #: ../resize/virt-resize.pod:665
26210 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
26211 "operations on disk images. They can resize and move partitions, but I don't "
26212 "think they can do anything with the contents, and they certainly don't "
26217 #: ../resize/virt-resize.pod:670
26219 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
26220 "but at a much lower level. You will probably end up hand-calculating sector "
26221 "offsets, which is something that virt-resize was designed to avoid. If you "
26222 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
26227 #: ../resize/virt-resize.pod:690
26229 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
26230 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
26231 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
26232 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
26233 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
26237 #: ../ruby/examples/guestfs-ruby.pod:5
26238 msgid "guestfs-ruby - How to use libguestfs from Ruby"
26242 #: ../ruby/examples/guestfs-ruby.pod:9
26245 " require 'guestfs'\n"
26246 " g = Guestfs::Guestfs.new()\n"
26247 " g.add_drive_opts(\"disk.img\",\n"
26248 " :readonly => 1, :format => \"raw\")\n"
26254 #: ../ruby/examples/guestfs-ruby.pod:17
26256 "This manual page documents how to call libguestfs from the Ruby programming "
26257 "language. This page just documents the differences from the C API and gives "
26258 "some examples. If you are not familiar with using libguestfs, you also need "
26259 "to read L<guestfs(3)>."
26263 #: ../ruby/examples/guestfs-ruby.pod:24
26265 "Errors from libguestfs functions are mapped into the C<Error> exception. "
26266 "This has a single parameter which is the error message (a string)."
26270 #: ../ruby/examples/guestfs-ruby.pod:38
26272 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
26273 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
26274 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
26278 #: ../sparsify/virt-sparsify.pod:5
26279 msgid "virt-sparsify - Make a virtual machine disk sparse"
26283 #: ../sparsify/virt-sparsify.pod:9
26286 " virt-sparsify [--options] indisk outdisk\n"
26291 #: ../sparsify/virt-sparsify.pod:13
26293 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
26294 "image) sparse a.k.a. thin-provisioned. This means that free space within "
26295 "the disk image can be converted back to free space on the host."
26299 #: ../sparsify/virt-sparsify.pod:18
26301 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
26302 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
26306 #: ../sparsify/virt-sparsify.pod:21
26308 "Virt-sparsify can also convert between some disk formats, for example "
26309 "converting a raw disk image to a thin-provisioned qcow2 image."
26313 #: ../sparsify/virt-sparsify.pod:24
26315 "Virt-sparsify can operate on any disk image, not just ones from virtual "
26316 "machines. If a virtual machine has more than one attached disk, you must "
26317 "sparsify each one separately."
26321 #: ../sparsify/virt-sparsify.pod:28
26322 msgid "IMPORTANT LIMITATIONS"
26326 #: ../sparsify/virt-sparsify.pod:34
26328 "Virt-sparsify does not do in-place modifications. It copies from a source "
26329 "image to a destination image, leaving the source unchanged. I<Check that "
26330 "the sparsification was successful before deleting the source image>."
26334 #: ../sparsify/virt-sparsify.pod:41
26335 msgid "The virtual machine I<must be shut down> before using this tool."
26339 #: ../sparsify/virt-sparsify.pod:45
26341 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
26342 "(1 temporary copy + 1 destination image). This is in the worst case and "
26343 "usually much less space is required."
26347 #: ../sparsify/virt-sparsify.pod:51
26349 "Virt-sparsify cannot resize disk images. To do that, use L<virt-resize(1)>."
26353 #: ../sparsify/virt-sparsify.pod:56
26354 msgid "Virt-sparsify cannot handle encrypted disks."
26358 #: ../sparsify/virt-sparsify.pod:60
26360 "Virt-sparsify cannot yet sparsify the space between partitions. Note that "
26361 "this space is often used for critical items like bootloaders so it's not "
26366 #: ../sparsify/virt-sparsify.pod:66
26368 "Virt-sparsify does not yet know how to sparsify swapspace. It is not safe "
26369 "to do this unless we can be sure there is no hibernation data, so at the "
26370 "moment swap partitions are ignored."
26374 #: ../sparsify/virt-sparsify.pod:72
26376 "You may also want to read the manual pages for the associated tools L<virt-"
26377 "filesystems(1)> and L<virt-df(1)> before starting."
26381 #: ../sparsify/virt-sparsify.pod:77
26382 msgid "Typical usage is:"
26386 #: ../sparsify/virt-sparsify.pod:79
26389 " virt-sparsify indisk outdisk\n"
26394 #: ../sparsify/virt-sparsify.pod:81
26396 "which copies C<indisk> to C<outdisk>, making the output sparse. C<outdisk> "
26397 "is created, or overwritten if it already exists. The format of the input "
26398 "disk is detected (eg. qcow2) and the same format is used for the output disk."
26402 #: ../sparsify/virt-sparsify.pod:86
26403 msgid "To convert between formats, use the I<--convert> option:"
26407 #: ../sparsify/virt-sparsify.pod:88
26410 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
26415 #: ../sparsify/virt-sparsify.pod:90
26417 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
26418 "can find within the source disk image. You can get it to ignore (don't zero "
26419 "free space on) certain filesystems by doing:"
26423 #: ../sparsify/virt-sparsify.pod:94
26426 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
26431 #: ../sparsify/virt-sparsify.pod:96
26433 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
26437 #: ../sparsify/virt-sparsify.pod:107
26439 #| msgid "B<--parts>"
26440 msgid "B<--compress>"
26441 msgstr "B<--parts>"
26444 #: ../sparsify/virt-sparsify.pod:109
26446 "Compress the output file. This I<only> works if the output format is "
26451 #: ../sparsify/virt-sparsify.pod:112
26452 msgid "B<--convert> raw"
26456 #: ../sparsify/virt-sparsify.pod:114
26457 msgid "B<--convert> qcow2"
26461 #: ../sparsify/virt-sparsify.pod:116
26462 msgid "B<--convert> [other formats]"
26466 #: ../sparsify/virt-sparsify.pod:118
26468 "Use C<output-format> as the format for the destination image. If this is "
26469 "not specified, then the input format is used."
26473 #: ../sparsify/virt-sparsify.pod:121
26475 "Supported and known-working output formats are: C<raw>, C<qcow2>, C<vdi>."
26479 #: ../sparsify/virt-sparsify.pod:123
26481 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
26482 "C<vmdk>, but support for other formats is reliant on qemu."
26486 #: ../sparsify/virt-sparsify.pod:126
26488 "Specifying the I<--convert> option is usually a good idea, because then virt-"
26489 "sparsify doesn't need to try to guess the input format."
26493 #: ../sparsify/virt-sparsify.pod:129
26494 msgid "For fine-tuning the output format, see: I<--compress>, I<-o>."
26498 #: ../sparsify/virt-sparsify.pod:133
26499 msgid "B<--format> qcow2"
26503 #: ../sparsify/virt-sparsify.pod:141
26504 msgid "B<--ignore> filesystem"
26508 #: ../sparsify/virt-sparsify.pod:143
26509 msgid "B<--ignore> volgroup"
26513 #: ../sparsify/virt-sparsify.pod:145
26515 "Ignore the named filesystem. Free space on the filesystem will not be "
26516 "zeroed, but existing blocks of zeroes will still be sparsified."
26520 #: ../sparsify/virt-sparsify.pod:148
26522 "In the second form, this ignores the named volume group. Use the volume "
26523 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
26527 #: ../sparsify/virt-sparsify.pod:159
26529 #| msgid "B<--option option>"
26530 msgid "B<-o> option[,option,...]"
26531 msgstr "B<--option параметр>"
26534 #: ../sparsify/virt-sparsify.pod:161
26536 "Pass I<-o> option(s) to the L<qemu-img(1)> command to fine-tune the output "
26537 "format. Options available depend on the output format (see I<--convert>) "
26538 "and the installed version of the qemu-img program."
26542 #: ../sparsify/virt-sparsify.pod:165
26544 "You should use I<-o> at most once. To pass multiple options, separate them "
26549 #: ../sparsify/virt-sparsify.pod:168
26552 " virt-sparsify --convert qcow2 \\\n"
26553 " -o cluster_size=512,preallocation=metadata ...\n"
26558 #: ../sparsify/virt-sparsify.pod:175
26559 msgid "This disables progress bars and other unnecessary output."
26563 #: ../sparsify/virt-sparsify.pod:197
26565 "The I<--machine-readable> option can be used to make the output more machine "
26566 "friendly, which is useful when calling virt-sparsify from other programs, "
26571 #: ../sparsify/virt-sparsify.pod:203
26573 "Firstly use the option on its own to query the capabilities of the virt-"
26574 "sparsify binary. Typical output looks like this:"
26578 #: ../sparsify/virt-sparsify.pod:206
26581 " $ virt-sparsify --machine-readable\n"
26589 #: ../sparsify/virt-sparsify.pod:236
26591 "The calling program should treat messages sent to stderr as error messages. "
26592 "In addition, virt-sparsify exits with a non-zero status code if there was a "
26597 #: ../sparsify/virt-sparsify.pod:242
26599 "All versions of virt-sparsify have supported the I<--machine-readable> "
26604 #: ../sparsify/virt-sparsify.pod:256
26606 "Location of the temporary directory used for the potentially large temporary "
26611 #: ../sparsify/virt-sparsify.pod:259
26613 "You should ensure there is enough free space in the worst case for a full "
26614 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
26615 "to another directory that has enough space."
26619 #: ../sparsify/virt-sparsify.pod:263
26620 msgid "This defaults to C</tmp>."
26624 #: ../sparsify/virt-sparsify.pod:267
26626 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
26630 #: ../sparsify/virt-sparsify.pod:271
26632 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
26633 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
26634 "(1)>, L<http://libguestfs.org/>."
26638 #: ../src/guestfs-actions.pod:1
26639 msgid "guestfs_add_cdrom"
26643 #: ../src/guestfs-actions.pod:3
26647 " guestfs_add_cdrom (guestfs_h *g,\n"
26648 " const char *filename);\n"
26653 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
26654 #: ../src/guestfs-actions.pod:323
26656 "I<This function is deprecated.> In new code, use the L</"
26657 "guestfs_add_drive_opts> call instead."
26661 #: ../src/guestfs-actions.pod:24
26663 "This call checks for the existence of C<filename>. This stops you from "
26664 "specifying other types of drive which are supported by qemu such as C<nbd:> "
26665 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call "
26670 #: ../src/guestfs-actions.pod:31
26672 "If you just want to add an ISO file (often you use this as an efficient way "
26673 "to transfer large files into the guest), then you should probably use "
26674 "C<guestfs_add_drive_ro> instead."
26678 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
26679 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
26680 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
26681 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
26682 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
26683 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
26684 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
26685 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
26686 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734
26687 #: ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851
26688 #: ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879
26689 #: ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099
26690 #: ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137
26691 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286
26692 #: ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372
26693 #: ../src/guestfs-actions.pod:1425 ../src/guestfs-actions.pod:1478
26694 #: ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1590
26695 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1623
26696 #: ../src/guestfs-actions.pod:1651 ../src/guestfs-actions.pod:1721
26697 #: ../src/guestfs-actions.pod:1752 ../src/guestfs-actions.pod:1777
26698 #: ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1932
26699 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2174
26700 #: ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2283
26701 #: ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2935
26702 #: ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3031
26703 #: ../src/guestfs-actions.pod:4092 ../src/guestfs-actions.pod:4107
26704 #: ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:4334
26705 #: ../src/guestfs-actions.pod:4348 ../src/guestfs-actions.pod:4361
26706 #: ../src/guestfs-actions.pod:4375 ../src/guestfs-actions.pod:4390
26707 #: ../src/guestfs-actions.pod:4426 ../src/guestfs-actions.pod:4498
26708 #: ../src/guestfs-actions.pod:4518 ../src/guestfs-actions.pod:4535
26709 #: ../src/guestfs-actions.pod:4555 ../src/guestfs-actions.pod:4575
26710 #: ../src/guestfs-actions.pod:4610 ../src/guestfs-actions.pod:4629
26711 #: ../src/guestfs-actions.pod:4648 ../src/guestfs-actions.pod:4683
26712 #: ../src/guestfs-actions.pod:4695 ../src/guestfs-actions.pod:4728
26713 #: ../src/guestfs-actions.pod:4744 ../src/guestfs-actions.pod:4757
26714 #: ../src/guestfs-actions.pod:4772 ../src/guestfs-actions.pod:4789
26715 #: ../src/guestfs-actions.pod:4947 ../src/guestfs-actions.pod:5021
26716 #: ../src/guestfs-actions.pod:5031 ../src/guestfs-actions.pod:5051
26717 #: ../src/guestfs-actions.pod:5064 ../src/guestfs-actions.pod:5115
26718 #: ../src/guestfs-actions.pod:5133 ../src/guestfs-actions.pod:5151
26719 #: ../src/guestfs-actions.pod:5167 ../src/guestfs-actions.pod:5181
26720 #: ../src/guestfs-actions.pod:5195 ../src/guestfs-actions.pod:5212
26721 #: ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:5254
26722 #: ../src/guestfs-actions.pod:5317 ../src/guestfs-actions.pod:5390
26723 #: ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:5440
26724 #: ../src/guestfs-actions.pod:5459 ../src/guestfs-actions.pod:5471
26725 #: ../src/guestfs-actions.pod:5488 ../src/guestfs-actions.pod:5501
26726 #: ../src/guestfs-actions.pod:5516 ../src/guestfs-actions.pod:5531
26727 #: ../src/guestfs-actions.pod:5563 ../src/guestfs-actions.pod:5589
26728 #: ../src/guestfs-actions.pod:5628 ../src/guestfs-actions.pod:5648
26729 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5679
26730 #: ../src/guestfs-actions.pod:5728 ../src/guestfs-actions.pod:5781
26731 #: ../src/guestfs-actions.pod:5828 ../src/guestfs-actions.pod:5871
26732 #: ../src/guestfs-actions.pod:5899 ../src/guestfs-actions.pod:5916
26733 #: ../src/guestfs-actions.pod:5934 ../src/guestfs-actions.pod:6071
26734 #: ../src/guestfs-actions.pod:6128 ../src/guestfs-actions.pod:6150
26735 #: ../src/guestfs-actions.pod:6168 ../src/guestfs-actions.pod:6220
26736 #: ../src/guestfs-actions.pod:6286 ../src/guestfs-actions.pod:6303
26737 #: ../src/guestfs-actions.pod:6316 ../src/guestfs-actions.pod:6330
26738 #: ../src/guestfs-actions.pod:6619 ../src/guestfs-actions.pod:6638
26739 #: ../src/guestfs-actions.pod:6657 ../src/guestfs-actions.pod:6671
26740 #: ../src/guestfs-actions.pod:6683 ../src/guestfs-actions.pod:6697
26741 #: ../src/guestfs-actions.pod:6709 ../src/guestfs-actions.pod:6723
26742 #: ../src/guestfs-actions.pod:6739 ../src/guestfs-actions.pod:6757
26743 #: ../src/guestfs-actions.pod:6776 ../src/guestfs-actions.pod:6795
26744 #: ../src/guestfs-actions.pod:6825 ../src/guestfs-actions.pod:6843
26745 #: ../src/guestfs-actions.pod:6866 ../src/guestfs-actions.pod:6884
26746 #: ../src/guestfs-actions.pod:6903 ../src/guestfs-actions.pod:6924
26747 #: ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6960
26748 #: ../src/guestfs-actions.pod:6979 ../src/guestfs-actions.pod:7007
26749 #: ../src/guestfs-actions.pod:7031 ../src/guestfs-actions.pod:7050
26750 #: ../src/guestfs-actions.pod:7066 ../src/guestfs-actions.pod:7090
26751 #: ../src/guestfs-actions.pod:7109 ../src/guestfs-actions.pod:7124
26752 #: ../src/guestfs-actions.pod:7143 ../src/guestfs-actions.pod:7187
26753 #: ../src/guestfs-actions.pod:7214 ../src/guestfs-actions.pod:7244
26754 #: ../src/guestfs-actions.pod:7356 ../src/guestfs-actions.pod:7477
26755 #: ../src/guestfs-actions.pod:7489 ../src/guestfs-actions.pod:7502
26756 #: ../src/guestfs-actions.pod:7515 ../src/guestfs-actions.pod:7537
26757 #: ../src/guestfs-actions.pod:7550 ../src/guestfs-actions.pod:7563
26758 #: ../src/guestfs-actions.pod:7576 ../src/guestfs-actions.pod:7591
26759 #: ../src/guestfs-actions.pod:7650 ../src/guestfs-actions.pod:7667
26760 #: ../src/guestfs-actions.pod:7683 ../src/guestfs-actions.pod:7699
26761 #: ../src/guestfs-actions.pod:7716 ../src/guestfs-actions.pod:7729
26762 #: ../src/guestfs-actions.pod:7749 ../src/guestfs-actions.pod:7849
26763 #: ../src/guestfs-actions.pod:7907 ../src/guestfs-actions.pod:7921
26764 #: ../src/guestfs-actions.pod:7962 ../src/guestfs-actions.pod:7975
26765 #: ../src/guestfs-actions.pod:7993 ../src/guestfs-actions.pod:8027
26766 #: ../src/guestfs-actions.pod:8063 ../src/guestfs-actions.pod:8179
26767 #: ../src/guestfs-actions.pod:8194 ../src/guestfs-actions.pod:8208
26768 #: ../src/guestfs-actions.pod:8263 ../src/guestfs-actions.pod:8276
26769 #: ../src/guestfs-actions.pod:8321 ../src/guestfs-actions.pod:8361
26770 #: ../src/guestfs-actions.pod:8417 ../src/guestfs-actions.pod:8437
26771 #: ../src/guestfs-actions.pod:8470 ../src/guestfs-actions.pod:8534
26772 #: ../src/guestfs-actions.pod:8557 ../src/guestfs-actions.pod:8583
26773 msgid "This function returns 0 on success or -1 on error."
26777 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
26778 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2397
26779 #: ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2620
26780 #: ../src/guestfs-actions.pod:4094 ../src/guestfs-actions.pod:4114
26781 #: ../src/guestfs-actions.pod:5565 ../src/guestfs-actions.pod:6845
26782 #: ../src/guestfs-actions.pod:6962 ../src/guestfs-actions.pod:7111
26783 #: ../src/guestfs-actions.pod:7593 ../src/guestfs-actions.pod:7718
26784 #: ../src/guestfs-actions.pod:8363
26785 msgid "(Added in 0.3)"
26786 msgstr "(Додано у 0.3)"
26789 #: ../src/guestfs-actions.pod:41
26790 msgid "guestfs_add_domain"
26794 #: ../src/guestfs-actions.pod:43
26798 " guestfs_add_domain (guestfs_h *g,\n"
26799 " const char *dom,\n"
26805 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
26806 #: ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214
26807 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344
26808 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466
26809 #: ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:3288
26810 #: ../src/guestfs-actions.pod:4882 ../src/guestfs-actions.pod:5266
26811 #: ../src/guestfs-actions.pod:5575 ../src/guestfs-actions.pod:5792
26812 #: ../src/guestfs-actions.pod:7760
26814 "You may supply a list of optional arguments to this call. Use zero or more "
26815 "of the following pairs of parameters, and terminate the list with C<-1> on "
26816 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
26820 #: ../src/guestfs-actions.pod:53
26823 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
26824 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
26825 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
26826 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
26827 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
26828 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
26833 #: ../src/guestfs-actions.pod:60
26835 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
26836 "It works by connecting to libvirt, requesting the domain and domain XML from "
26837 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
26842 #: ../src/guestfs-actions.pod:141
26844 "The other optional parameters are passed directly through to "
26845 "C<guestfs_add_drive_opts>."
26849 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
26850 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751
26851 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
26852 #: ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1797
26853 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2356
26854 #: ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2518
26855 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2584
26856 #: ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2922
26857 #: ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424
26858 #: ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5968
26859 #: ../src/guestfs-actions.pod:6206 ../src/guestfs-actions.pod:6400
26860 #: ../src/guestfs-actions.pod:6426 ../src/guestfs-actions.pod:7948
26861 #: ../src/guestfs-actions.pod:8374 ../src/guestfs-actions.pod:8387
26862 #: ../src/guestfs-actions.pod:8400
26863 msgid "On error this function returns -1."
26867 #: ../src/guestfs-actions.pod:146
26868 msgid "(Added in 1.7.4)"
26869 msgstr "(Додано у 1.7.4)"
26872 #: ../src/guestfs-actions.pod:148
26873 msgid "guestfs_add_domain_va"
26877 #: ../src/guestfs-actions.pod:150
26881 " guestfs_add_domain_va (guestfs_h *g,\n"
26882 " const char *dom,\n"
26883 " va_list args);\n"
26888 #: ../src/guestfs-actions.pod:155
26889 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
26893 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
26894 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
26895 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940
26896 #: ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255
26897 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314
26898 #: ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1403
26899 #: ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456
26900 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1509
26901 #: ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1567
26902 #: ../src/guestfs-actions.pod:3372 ../src/guestfs-actions.pod:3384
26903 #: ../src/guestfs-actions.pod:4959 ../src/guestfs-actions.pod:4971
26904 #: ../src/guestfs-actions.pod:5331 ../src/guestfs-actions.pod:5343
26905 #: ../src/guestfs-actions.pod:5603 ../src/guestfs-actions.pod:5615
26906 #: ../src/guestfs-actions.pod:5841 ../src/guestfs-actions.pod:5852
26907 #: ../src/guestfs-actions.pod:7862 ../src/guestfs-actions.pod:7873
26908 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
26909 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
26912 #: ../src/guestfs-actions.pod:159
26913 msgid "guestfs_add_domain_argv"
26914 msgstr "guestfs_add_domain_argv"
26917 #: ../src/guestfs-actions.pod:161
26921 " guestfs_add_domain_argv (guestfs_h *g,\n"
26922 " const char *dom,\n"
26923 " const struct guestfs_add_domain_argv *optargs);\n"
26928 #: ../src/guestfs-actions.pod:166
26929 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
26933 #: ../src/guestfs-actions.pod:170
26934 msgid "guestfs_add_drive"
26938 #: ../src/guestfs-actions.pod:172
26942 " guestfs_add_drive (guestfs_h *g,\n"
26943 " const char *filename);\n"
26948 #: ../src/guestfs-actions.pod:176
26950 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
26951 "optional parameters, so the disk is added writable, with the format being "
26952 "detected automatically."
26956 #: ../src/guestfs-actions.pod:180
26958 "Automatic detection of the format opens you up to a potential security hole "
26959 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
26960 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
26961 "you should think about replacing calls to this function with calls to "
26962 "C<guestfs_add_drive_opts>, and specifying the format."
26966 #: ../src/guestfs-actions.pod:191
26967 msgid "guestfs_add_drive_opts"
26971 #: ../src/guestfs-actions.pod:193
26975 " guestfs_add_drive_opts (guestfs_h *g,\n"
26976 " const char *filename,\n"
26982 #: ../src/guestfs-actions.pod:203
26985 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
26986 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
26987 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
26988 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
26993 #: ../src/guestfs-actions.pod:233
26995 "This forces the image format. If you omit this (or use C<guestfs_add_drive> "
26996 "or C<guestfs_add_drive_ro>) then the format is automatically detected. "
26997 "Possible formats include C<raw> and C<qcow2>."
27001 #: ../src/guestfs-actions.pod:244
27003 "This rarely-used option lets you emulate the behaviour of the deprecated "
27004 "C<guestfs_add_drive_with_if> call (q.v.)"
27008 #: ../src/guestfs-actions.pod:256
27009 msgid "(Added in 1.5.23)"
27010 msgstr "(Додано у 1.5.23)"
27013 #: ../src/guestfs-actions.pod:258
27014 msgid "guestfs_add_drive_opts_va"
27018 #: ../src/guestfs-actions.pod:260
27022 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
27023 " const char *filename,\n"
27024 " va_list args);\n"
27029 #: ../src/guestfs-actions.pod:265
27030 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
27034 #: ../src/guestfs-actions.pod:269
27035 msgid "guestfs_add_drive_opts_argv"
27039 #: ../src/guestfs-actions.pod:271
27043 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
27044 " const char *filename,\n"
27045 " const struct guestfs_add_drive_opts_argv *optargs);\n"
27050 #: ../src/guestfs-actions.pod:276
27051 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
27055 #: ../src/guestfs-actions.pod:280
27056 msgid "guestfs_add_drive_ro"
27060 #: ../src/guestfs-actions.pod:282
27064 " guestfs_add_drive_ro (guestfs_h *g,\n"
27065 " const char *filename);\n"
27070 #: ../src/guestfs-actions.pod:286
27072 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
27073 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
27074 "disk is added read-only, with the format being detected automatically."
27078 #: ../src/guestfs-actions.pod:293
27079 msgid "(Added in 1.0.38)"
27080 msgstr "(Додано у 1.0.38)"
27083 #: ../src/guestfs-actions.pod:295
27084 msgid "guestfs_add_drive_ro_with_if"
27088 #: ../src/guestfs-actions.pod:297
27092 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
27093 " const char *filename,\n"
27094 " const char *iface);\n"
27099 #: ../src/guestfs-actions.pod:309
27101 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
27102 "QEMU interface emulation to use at run time."
27106 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
27107 #: ../src/guestfs-actions.pod:2881
27108 msgid "(Added in 1.0.84)"
27109 msgstr "(Додано у 1.0.84)"
27112 #: ../src/guestfs-actions.pod:316
27113 msgid "guestfs_add_drive_with_if"
27117 #: ../src/guestfs-actions.pod:318
27121 " guestfs_add_drive_with_if (guestfs_h *g,\n"
27122 " const char *filename,\n"
27123 " const char *iface);\n"
27128 #: ../src/guestfs-actions.pod:330
27130 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
27131 "QEMU interface emulation to use at run time."
27135 #: ../src/guestfs-actions.pod:337
27136 msgid "guestfs_aug_clear"
27140 #: ../src/guestfs-actions.pod:339
27144 " guestfs_aug_clear (guestfs_h *g,\n"
27145 " const char *augpath);\n"
27150 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
27151 msgid "(Added in 1.3.4)"
27152 msgstr "(Додано у 1.3.4)"
27155 #: ../src/guestfs-actions.pod:350
27156 msgid "guestfs_aug_close"
27160 #: ../src/guestfs-actions.pod:352
27164 " guestfs_aug_close (guestfs_h *g);\n"
27169 #: ../src/guestfs-actions.pod:355
27171 "Close the current Augeas handle and free up any resources used by it. After "
27172 "calling this, you have to call C<guestfs_aug_init> again before you can use "
27173 "any other Augeas functions."
27177 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
27178 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
27179 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
27180 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
27181 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
27182 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
27183 #: ../src/guestfs-actions.pod:6477
27184 msgid "(Added in 0.7)"
27185 msgstr "(Додано у 0.7)"
27188 #: ../src/guestfs-actions.pod:364
27189 msgid "guestfs_aug_defnode"
27193 #: ../src/guestfs-actions.pod:366
27196 " struct guestfs_int_bool *\n"
27197 " guestfs_aug_defnode (guestfs_h *g,\n"
27198 " const char *name,\n"
27199 " const char *expr,\n"
27200 " const char *val);\n"
27205 #: ../src/guestfs-actions.pod:375
27207 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
27208 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
27209 "containing that single node."
27213 #: ../src/guestfs-actions.pod:383
27215 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
27216 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
27220 #: ../src/guestfs-actions.pod:389
27221 msgid "guestfs_aug_defvar"
27225 #: ../src/guestfs-actions.pod:391
27229 " guestfs_aug_defvar (guestfs_h *g,\n"
27230 " const char *name,\n"
27231 " const char *expr);\n"
27236 #: ../src/guestfs-actions.pod:407
27237 msgid "guestfs_aug_get"
27238 msgstr "guestfs_aug_get"
27241 #: ../src/guestfs-actions.pod:409
27245 " guestfs_aug_get (guestfs_h *g,\n"
27246 " const char *augpath);\n"
27250 " guestfs_aug_get (guestfs_h *g,\n"
27251 " const char *augpath);\n"
27255 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980
27256 #: ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058
27257 #: ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177
27258 #: ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1683
27259 #: ../src/guestfs-actions.pod:1702 ../src/guestfs-actions.pod:1836
27260 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2136
27261 #: ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2316
27262 #: ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2426
27263 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2632
27264 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3050
27265 #: ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3256
27266 #: ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3490
27267 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3539
27268 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3640
27269 #: ../src/guestfs-actions.pod:3660 ../src/guestfs-actions.pod:3680
27270 #: ../src/guestfs-actions.pod:4320 ../src/guestfs-actions.pod:4667
27271 #: ../src/guestfs-actions.pod:4834 ../src/guestfs-actions.pod:5093
27272 #: ../src/guestfs-actions.pod:5986 ../src/guestfs-actions.pod:6187
27273 #: ../src/guestfs-actions.pod:6375 ../src/guestfs-actions.pod:6553
27274 #: ../src/guestfs-actions.pod:6602 ../src/guestfs-actions.pod:7262
27275 #: ../src/guestfs-actions.pod:7278 ../src/guestfs-actions.pod:7302
27276 #: ../src/guestfs-actions.pod:7326 ../src/guestfs-actions.pod:8122
27277 #: ../src/guestfs-actions.pod:8141 ../src/guestfs-actions.pod:8159
27278 #: ../src/guestfs-actions.pod:8333 ../src/guestfs-actions.pod:8647
27280 "This function returns a string, or NULL on error. I<The caller must free "
27281 "the returned string after use>."
27285 #: ../src/guestfs-actions.pod:421
27286 msgid "guestfs_aug_init"
27287 msgstr "guestfs_aug_init"
27290 #: ../src/guestfs-actions.pod:423
27294 " guestfs_aug_init (guestfs_h *g,\n"
27295 " const char *root,\n"
27300 " guestfs_aug_init (guestfs_h *g,\n"
27301 " const char *root,\n"
27306 #: ../src/guestfs-actions.pod:432
27307 msgid "You must call this before using any other C<guestfs_aug_*> commands."
27311 #: ../src/guestfs-actions.pod:457
27313 "This option is only useful when debugging Augeas lenses. Use of this option "
27314 "may require additional memory for the libguestfs appliance. You may need to "
27315 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
27316 "C<guestfs_set_memsize>."
27320 #: ../src/guestfs-actions.pod:472
27321 msgid "Do not load the tree in C<guestfs_aug_init>."
27325 #: ../src/guestfs-actions.pod:476
27326 msgid "To close the handle, you can call C<guestfs_aug_close>."
27330 #: ../src/guestfs-actions.pod:484
27331 msgid "guestfs_aug_insert"
27332 msgstr "guestfs_aug_insert"
27335 #: ../src/guestfs-actions.pod:486
27339 " guestfs_aug_insert (guestfs_h *g,\n"
27340 " const char *augpath,\n"
27341 " const char *label,\n"
27346 " guestfs_aug_insert (guestfs_h *g,\n"
27347 " const char *augpath,\n"
27348 " const char *label,\n"
27353 #: ../src/guestfs-actions.pod:504
27354 msgid "guestfs_aug_load"
27355 msgstr "guestfs_aug_load"
27358 #: ../src/guestfs-actions.pod:506
27362 " guestfs_aug_load (guestfs_h *g);\n"
27366 " guestfs_aug_load (guestfs_h *g);\n"
27370 #: ../src/guestfs-actions.pod:518
27371 msgid "guestfs_aug_ls"
27372 msgstr "guestfs_aug_ls"
27375 #: ../src/guestfs-actions.pod:520
27379 " guestfs_aug_ls (guestfs_h *g,\n"
27380 " const char *augpath);\n"
27384 " guestfs_aug_ls (guestfs_h *g,\n"
27385 " const char *augpath);\n"
27389 #: ../src/guestfs-actions.pod:524
27391 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
27392 "sorting the resulting nodes into alphabetical order."
27396 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
27397 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196
27398 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870
27399 #: ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:1992
27400 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2704
27401 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2739
27402 #: ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:2828
27403 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:2948
27404 #: ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3592
27405 #: ../src/guestfs-actions.pod:3876 ../src/guestfs-actions.pod:4190
27406 #: ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4227
27407 #: ../src/guestfs-actions.pod:4282 ../src/guestfs-actions.pod:4302
27408 #: ../src/guestfs-actions.pod:4407 ../src/guestfs-actions.pod:4806
27409 #: ../src/guestfs-actions.pod:5712 ../src/guestfs-actions.pod:6347
27410 #: ../src/guestfs-actions.pod:6473 ../src/guestfs-actions.pod:6587
27411 #: ../src/guestfs-actions.pod:7342 ../src/guestfs-actions.pod:7403
27412 #: ../src/guestfs-actions.pod:7458 ../src/guestfs-actions.pod:7604
27413 #: ../src/guestfs-actions.pod:7628 ../src/guestfs-actions.pod:8226
27414 #: ../src/guestfs-actions.pod:8246 ../src/guestfs-actions.pod:8293
27415 #: ../src/guestfs-actions.pod:8487 ../src/guestfs-actions.pod:8506
27416 #: ../src/guestfs-actions.pod:8597 ../src/guestfs-actions.pod:8616
27417 #: ../src/guestfs-actions.pod:8662 ../src/guestfs-actions.pod:8681
27419 "This function returns a NULL-terminated array of strings (like L<environ(3)"
27420 ">), or NULL if there was an error. I<The caller must free the strings and "
27421 "the array after use>."
27425 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121
27426 #: ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1908
27427 #: ../src/guestfs-actions.pod:3954 ../src/guestfs-actions.pod:3985
27428 #: ../src/guestfs-actions.pod:4650 ../src/guestfs-actions.pod:4697
27429 #: ../src/guestfs-actions.pod:5033 ../src/guestfs-actions.pod:5066
27430 #: ../src/guestfs-actions.pod:5229 ../src/guestfs-actions.pod:5716
27431 #: ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:6685
27432 #: ../src/guestfs-actions.pod:6699 ../src/guestfs-actions.pod:6711
27433 #: ../src/guestfs-actions.pod:7189 ../src/guestfs-actions.pod:7964
27434 #: ../src/guestfs-actions.pod:7977 ../src/guestfs-actions.pod:8210
27435 #: ../src/guestfs-actions.pod:8475
27436 msgid "(Added in 0.8)"
27437 msgstr "(Додано у 0.8)"
27440 #: ../src/guestfs-actions.pod:533
27441 msgid "guestfs_aug_match"
27442 msgstr "guestfs_aug_match"
27445 #: ../src/guestfs-actions.pod:535
27449 " guestfs_aug_match (guestfs_h *g,\n"
27450 " const char *augpath);\n"
27454 " guestfs_aug_match (guestfs_h *g,\n"
27455 " const char *augpath);\n"
27459 #: ../src/guestfs-actions.pod:549
27460 msgid "guestfs_aug_mv"
27461 msgstr "guestfs_aug_mv"
27464 #: ../src/guestfs-actions.pod:551
27468 " guestfs_aug_mv (guestfs_h *g,\n"
27469 " const char *src,\n"
27470 " const char *dest);\n"
27474 " guestfs_aug_mv (guestfs_h *g,\n"
27475 " const char *src,\n"
27476 " const char *dest);\n"
27480 #: ../src/guestfs-actions.pod:563
27481 msgid "guestfs_aug_rm"
27482 msgstr "guestfs_aug_rm"
27485 #: ../src/guestfs-actions.pod:565
27489 " guestfs_aug_rm (guestfs_h *g,\n"
27490 " const char *augpath);\n"
27494 " guestfs_aug_rm (guestfs_h *g,\n"
27495 " const char *augpath);\n"
27499 #: ../src/guestfs-actions.pod:577
27500 msgid "guestfs_aug_save"
27501 msgstr "guestfs_aug_save"
27504 #: ../src/guestfs-actions.pod:579
27508 " guestfs_aug_save (guestfs_h *g);\n"
27512 " guestfs_aug_save (guestfs_h *g);\n"
27516 #: ../src/guestfs-actions.pod:584
27518 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
27523 #: ../src/guestfs-actions.pod:591
27524 msgid "guestfs_aug_set"
27525 msgstr "guestfs_aug_set"
27528 #: ../src/guestfs-actions.pod:593
27532 " guestfs_aug_set (guestfs_h *g,\n"
27533 " const char *augpath,\n"
27534 " const char *val);\n"
27538 " guestfs_aug_set (guestfs_h *g,\n"
27539 " const char *augpath,\n"
27540 " const char *val);\n"
27544 #: ../src/guestfs-actions.pod:600
27546 "In the Augeas API, it is possible to clear a node by setting the value to "
27547 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
27548 "this call. Instead you must use the C<guestfs_aug_clear> call."
27552 #: ../src/guestfs-actions.pod:609
27553 msgid "guestfs_available"
27554 msgstr "guestfs_available"
27557 #: ../src/guestfs-actions.pod:611
27561 " guestfs_available (guestfs_h *g,\n"
27562 " char *const *groups);\n"
27566 " guestfs_available (guestfs_h *g,\n"
27567 " char *const *groups);\n"
27571 #: ../src/guestfs-actions.pod:619
27573 "The libguestfs groups, and the functions that those groups correspond to, "
27574 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
27575 "runtime by calling C<guestfs_available_all_groups>."
27579 #: ../src/guestfs-actions.pod:643
27580 msgid "You must call C<guestfs_launch> before calling this function."
27584 #: ../src/guestfs-actions.pod:665
27586 "This call was added in version C<1.0.80>. In previous versions of "
27587 "libguestfs all you could do would be to speculatively execute a command to "
27588 "find out if the daemon implemented it. See also C<guestfs_version>."
27592 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
27593 msgid "(Added in 1.0.80)"
27594 msgstr "(Додано у 1.0.80)"
27597 #: ../src/guestfs-actions.pod:676
27598 msgid "guestfs_available_all_groups"
27599 msgstr "guestfs_available_all_groups"
27602 #: ../src/guestfs-actions.pod:678
27606 " guestfs_available_all_groups (guestfs_h *g);\n"
27610 " guestfs_available_all_groups (guestfs_h *g);\n"
27614 #: ../src/guestfs-actions.pod:681
27616 "This command returns a list of all optional groups that this daemon knows "
27617 "about. Note this returns both supported and unsupported groups. To find "
27618 "out which ones the daemon can actually support you have to call "
27619 "C<guestfs_available> on each member of the returned list."
27623 #: ../src/guestfs-actions.pod:687
27624 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
27628 #: ../src/guestfs-actions.pod:693
27629 msgid "(Added in 1.3.15)"
27630 msgstr "(Додано у 1.3.15)"
27633 #: ../src/guestfs-actions.pod:695
27634 msgid "guestfs_base64_in"
27635 msgstr "guestfs_base64_in"
27638 #: ../src/guestfs-actions.pod:697
27642 " guestfs_base64_in (guestfs_h *g,\n"
27643 " const char *base64file,\n"
27644 " const char *filename);\n"
27648 " guestfs_base64_in (guestfs_h *g,\n"
27649 " const char *base64file,\n"
27650 " const char *filename);\n"
27654 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
27655 msgid "(Added in 1.3.5)"
27656 msgstr "(Додано у 1.3.5)"
27659 #: ../src/guestfs-actions.pod:709
27660 msgid "guestfs_base64_out"
27661 msgstr "guestfs_base64_out"
27664 #: ../src/guestfs-actions.pod:711
27668 " guestfs_base64_out (guestfs_h *g,\n"
27669 " const char *filename,\n"
27670 " const char *base64file);\n"
27674 " guestfs_base64_out (guestfs_h *g,\n"
27675 " const char *filename,\n"
27676 " const char *base64file);\n"
27680 #: ../src/guestfs-actions.pod:723
27681 msgid "guestfs_blockdev_flushbufs"
27682 msgstr "guestfs_blockdev_flushbufs"
27685 #: ../src/guestfs-actions.pod:725
27689 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
27690 " const char *device);\n"
27694 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
27695 " const char *device);\n"
27699 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753
27700 #: ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784
27701 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821
27702 #: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853
27703 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
27704 msgid "(Added in 0.9.3)"
27705 msgstr "(Додано у 0.9.3)"
27708 #: ../src/guestfs-actions.pod:738
27709 msgid "guestfs_blockdev_getbsz"
27710 msgstr "guestfs_blockdev_getbsz"
27713 #: ../src/guestfs-actions.pod:740
27717 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
27718 " const char *device);\n"
27722 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
27723 " const char *device);\n"
27727 #: ../src/guestfs-actions.pod:755
27728 msgid "guestfs_blockdev_getro"
27729 msgstr "guestfs_blockdev_getro"
27732 #: ../src/guestfs-actions.pod:757
27736 " guestfs_blockdev_getro (guestfs_h *g,\n"
27737 " const char *device);\n"
27741 " guestfs_blockdev_getro (guestfs_h *g,\n"
27742 " const char *device);\n"
27746 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1891
27747 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:2395
27748 #: ../src/guestfs-actions.pod:2406 ../src/guestfs-actions.pod:2478
27749 #: ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2544
27750 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2595
27751 #: ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:3697
27752 #: ../src/guestfs-actions.pod:3713 ../src/guestfs-actions.pod:3731
27753 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3907
27754 #: ../src/guestfs-actions.pod:3922 ../src/guestfs-actions.pod:3936
27755 #: ../src/guestfs-actions.pod:3952 ../src/guestfs-actions.pod:3967
27756 #: ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:3997
27757 #: ../src/guestfs-actions.pod:4010 ../src/guestfs-actions.pod:4024
27758 #: ../src/guestfs-actions.pod:4039 ../src/guestfs-actions.pod:4054
27759 #: ../src/guestfs-actions.pod:4067 ../src/guestfs-actions.pod:4081
27760 #: ../src/guestfs-actions.pod:5950
27761 msgid "This function returns a C truth value on success or -1 on error."
27765 #: ../src/guestfs-actions.pod:770
27766 msgid "guestfs_blockdev_getsize64"
27767 msgstr "guestfs_blockdev_getsize64"
27770 #: ../src/guestfs-actions.pod:772
27774 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
27775 " const char *device);\n"
27779 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
27780 " const char *device);\n"
27784 #: ../src/guestfs-actions.pod:778
27785 msgid "See also C<guestfs_blockdev_getsz>."
27789 #: ../src/guestfs-actions.pod:786
27790 msgid "guestfs_blockdev_getss"
27791 msgstr "guestfs_blockdev_getss"
27794 #: ../src/guestfs-actions.pod:788
27798 " guestfs_blockdev_getss (guestfs_h *g,\n"
27799 " const char *device);\n"
27803 " guestfs_blockdev_getss (guestfs_h *g,\n"
27804 " const char *device);\n"
27808 #: ../src/guestfs-actions.pod:795
27810 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
27815 #: ../src/guestfs-actions.pod:804
27816 msgid "guestfs_blockdev_getsz"
27817 msgstr "guestfs_blockdev_getsz"
27820 #: ../src/guestfs-actions.pod:806
27824 " guestfs_blockdev_getsz (guestfs_h *g,\n"
27825 " const char *device);\n"
27829 " guestfs_blockdev_getsz (guestfs_h *g,\n"
27830 " const char *device);\n"
27834 #: ../src/guestfs-actions.pod:813
27836 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
27837 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
27841 #: ../src/guestfs-actions.pod:823
27842 msgid "guestfs_blockdev_rereadpt"
27843 msgstr "guestfs_blockdev_rereadpt"
27846 #: ../src/guestfs-actions.pod:825
27850 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
27851 " const char *device);\n"
27855 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
27856 " const char *device);\n"
27860 #: ../src/guestfs-actions.pod:837
27861 msgid "guestfs_blockdev_setbsz"
27862 msgstr "guestfs_blockdev_setbsz"
27865 #: ../src/guestfs-actions.pod:839
27869 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
27870 " const char *device,\n"
27871 " int blocksize);\n"
27875 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
27876 " const char *device,\n"
27877 " int blocksize);\n"
27881 #: ../src/guestfs-actions.pod:855
27882 msgid "guestfs_blockdev_setro"
27883 msgstr "guestfs_blockdev_setro"
27886 #: ../src/guestfs-actions.pod:857
27890 " guestfs_blockdev_setro (guestfs_h *g,\n"
27891 " const char *device);\n"
27895 " guestfs_blockdev_setro (guestfs_h *g,\n"
27896 " const char *device);\n"
27900 #: ../src/guestfs-actions.pod:869
27901 msgid "guestfs_blockdev_setrw"
27902 msgstr "guestfs_blockdev_setrw"
27905 #: ../src/guestfs-actions.pod:871
27909 " guestfs_blockdev_setrw (guestfs_h *g,\n"
27910 " const char *device);\n"
27914 " guestfs_blockdev_setrw (guestfs_h *g,\n"
27915 " const char *device);\n"
27919 #: ../src/guestfs-actions.pod:883
27920 msgid "guestfs_btrfs_filesystem_resize"
27921 msgstr "guestfs_btrfs_filesystem_resize"
27924 #: ../src/guestfs-actions.pod:885
27928 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
27929 " const char *mountpoint,\n"
27934 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
27935 " const char *mountpoint,\n"
27940 #: ../src/guestfs-actions.pod:895
27943 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
27946 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
27950 #: ../src/guestfs-actions.pod:918
27951 msgid "(Added in 1.11.17)"
27952 msgstr "(Додано у 1.11.17)"
27955 #: ../src/guestfs-actions.pod:920
27956 msgid "guestfs_btrfs_filesystem_resize_va"
27957 msgstr "guestfs_btrfs_filesystem_resize_va"
27960 #: ../src/guestfs-actions.pod:922
27964 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
27965 " const char *mountpoint,\n"
27966 " va_list args);\n"
27970 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
27971 " const char *mountpoint,\n"
27972 " va_list args);\n"
27976 #: ../src/guestfs-actions.pod:927
27977 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
27981 #: ../src/guestfs-actions.pod:931
27982 msgid "guestfs_btrfs_filesystem_resize_argv"
27983 msgstr "guestfs_btrfs_filesystem_resize_argv"
27986 #: ../src/guestfs-actions.pod:933
27990 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
27991 " const char *mountpoint,\n"
27992 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
27996 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
27997 " const char *mountpoint,\n"
27998 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
28002 #: ../src/guestfs-actions.pod:938
28003 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
28007 #: ../src/guestfs-actions.pod:942
28008 msgid "guestfs_case_sensitive_path"
28012 #: ../src/guestfs-actions.pod:944
28016 " guestfs_case_sensitive_path (guestfs_h *g,\n"
28017 " const char *path);\n"
28022 #: ../src/guestfs-actions.pod:970
28024 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return C<"
28025 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
28026 "how the directories were originally created under Windows)."
28030 #: ../src/guestfs-actions.pod:978
28031 msgid "See also C<guestfs_realpath>."
28035 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:8144
28036 msgid "(Added in 1.0.75)"
28037 msgstr "(Додано у 1.0.75)"
28040 #: ../src/guestfs-actions.pod:985
28041 msgid "guestfs_cat"
28045 #: ../src/guestfs-actions.pod:987
28049 " guestfs_cat (guestfs_h *g,\n"
28050 " const char *path);\n"
28055 #: ../src/guestfs-actions.pod:993
28057 "Note that this function cannot correctly handle binary files (specifically, "
28058 "files containing C<\\0> character which is treated as end of string). For "
28059 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
28060 "functions which have a more complex interface."
28064 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4211
28065 #: ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:4323
28066 #: ../src/guestfs-actions.pod:4411 ../src/guestfs-actions.pod:4810
28067 #: ../src/guestfs-actions.pod:4824 ../src/guestfs-actions.pod:6351
28068 #: ../src/guestfs-actions.pod:6365 ../src/guestfs-actions.pod:8297
28069 #: ../src/guestfs-actions.pod:8311
28070 msgid "(Added in 0.4)"
28071 msgstr "(Додано у 0.4)"
28074 #: ../src/guestfs-actions.pod:1006
28075 msgid "guestfs_checksum"
28079 #: ../src/guestfs-actions.pod:1008
28083 " guestfs_checksum (guestfs_h *g,\n"
28084 " const char *csumtype,\n"
28085 " const char *path);\n"
28090 #: ../src/guestfs-actions.pod:1054
28091 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
28095 #: ../src/guestfs-actions.pod:1056
28096 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
28100 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1728
28101 #: ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3909
28102 #: ../src/guestfs-actions.pod:3938 ../src/guestfs-actions.pod:3999
28103 #: ../src/guestfs-actions.pod:4026 ../src/guestfs-actions.pod:8000
28104 msgid "(Added in 1.0.2)"
28105 msgstr "(Додано у 1.0.2)"
28108 #: ../src/guestfs-actions.pod:1063
28109 msgid "guestfs_checksum_device"
28113 #: ../src/guestfs-actions.pod:1065
28117 " guestfs_checksum_device (guestfs_h *g,\n"
28118 " const char *csumtype,\n"
28119 " const char *device);\n"
28124 #: ../src/guestfs-actions.pod:1070
28126 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
28127 "device named C<device>. For the types of checksums supported see the "
28128 "C<guestfs_checksum> command."
28132 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5783
28133 #: ../src/guestfs-actions.pod:5918 ../src/guestfs-actions.pod:5952
28134 #: ../src/guestfs-actions.pod:5970 ../src/guestfs-actions.pod:6152
28135 #: ../src/guestfs-actions.pod:7909 ../src/guestfs-actions.pod:7923
28136 #: ../src/guestfs-actions.pod:8323
28137 msgid "(Added in 1.3.2)"
28138 msgstr "(Додано у 1.3.2)"
28141 #: ../src/guestfs-actions.pod:1079
28142 msgid "guestfs_checksums_out"
28146 #: ../src/guestfs-actions.pod:1081
28150 " guestfs_checksums_out (guestfs_h *g,\n"
28151 " const char *csumtype,\n"
28152 " const char *directory,\n"
28153 " const char *sumsfile);\n"
28158 #: ../src/guestfs-actions.pod:1101
28159 msgid "(Added in 1.3.7)"
28160 msgstr "(Додано у 1.3.7)"
28163 #: ../src/guestfs-actions.pod:1103
28164 msgid "guestfs_chmod"
28168 #: ../src/guestfs-actions.pod:1105
28172 " guestfs_chmod (guestfs_h *g,\n"
28174 " const char *path);\n"
28179 #: ../src/guestfs-actions.pod:1123
28180 msgid "guestfs_chown"
28184 #: ../src/guestfs-actions.pod:1125
28188 " guestfs_chown (guestfs_h *g,\n"
28191 " const char *path);\n"
28196 #: ../src/guestfs-actions.pod:1141
28197 msgid "guestfs_command"
28201 #: ../src/guestfs-actions.pod:1143
28205 " guestfs_command (guestfs_h *g,\n"
28206 " char *const *arguments);\n"
28211 #: ../src/guestfs-actions.pod:1152
28213 "The single parameter is an argv-style list of arguments. The first element "
28214 "is the name of the program to run. Subsequent elements are parameters. The "
28215 "list must be non-empty (ie. must contain a program name). Note that the "
28216 "command runs directly, and is I<not> invoked via the shell (see "
28221 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203
28222 #: ../src/guestfs-actions.pod:2027
28223 msgid "(Added in 0.9.1)"
28224 msgstr "(Додано у 0.9.1)"
28227 #: ../src/guestfs-actions.pod:1185
28228 msgid "guestfs_command_lines"
28232 #: ../src/guestfs-actions.pod:1187
28236 " guestfs_command_lines (guestfs_h *g,\n"
28237 " char *const *arguments);\n"
28242 #: ../src/guestfs-actions.pod:1191
28244 "This is the same as C<guestfs_command>, but splits the result into a list of "
28249 #: ../src/guestfs-actions.pod:1194
28250 msgid "See also: C<guestfs_sh_lines>"
28254 #: ../src/guestfs-actions.pod:1205
28255 msgid "guestfs_compress_device_out"
28259 #: ../src/guestfs-actions.pod:1207
28263 " guestfs_compress_device_out (guestfs_h *g,\n"
28264 " const char *ctype,\n"
28265 " const char *device,\n"
28266 " const char *zdevice,\n"
28272 #: ../src/guestfs-actions.pod:1219
28275 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
28280 #: ../src/guestfs-actions.pod:1224
28282 "The C<ctype> and optional C<level> parameters have the same meaning as in "
28283 "C<guestfs_compress_out>."
28287 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288
28288 #: ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:7068
28289 msgid "(Added in 1.13.15)"
28293 #: ../src/guestfs-actions.pod:1231
28294 msgid "guestfs_compress_device_out_va"
28298 #: ../src/guestfs-actions.pod:1233
28302 " guestfs_compress_device_out_va (guestfs_h *g,\n"
28303 " const char *ctype,\n"
28304 " const char *device,\n"
28305 " const char *zdevice,\n"
28306 " va_list args);\n"
28311 #: ../src/guestfs-actions.pod:1240
28312 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
28316 #: ../src/guestfs-actions.pod:1244
28317 msgid "guestfs_compress_device_out_argv"
28321 #: ../src/guestfs-actions.pod:1246
28325 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
28326 " const char *ctype,\n"
28327 " const char *device,\n"
28328 " const char *zdevice,\n"
28329 " const struct guestfs_compress_device_out_argv *optargs);\n"
28334 #: ../src/guestfs-actions.pod:1253
28335 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
28339 #: ../src/guestfs-actions.pod:1257
28340 msgid "guestfs_compress_out"
28344 #: ../src/guestfs-actions.pod:1259
28348 " guestfs_compress_out (guestfs_h *g,\n"
28349 " const char *ctype,\n"
28350 " const char *file,\n"
28351 " const char *zfile,\n"
28357 #: ../src/guestfs-actions.pod:1271
28360 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
28365 #: ../src/guestfs-actions.pod:1290
28366 msgid "guestfs_compress_out_va"
28370 #: ../src/guestfs-actions.pod:1292
28374 " guestfs_compress_out_va (guestfs_h *g,\n"
28375 " const char *ctype,\n"
28376 " const char *file,\n"
28377 " const char *zfile,\n"
28378 " va_list args);\n"
28383 #: ../src/guestfs-actions.pod:1299
28384 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
28388 #: ../src/guestfs-actions.pod:1303
28389 msgid "guestfs_compress_out_argv"
28393 #: ../src/guestfs-actions.pod:1305
28397 " guestfs_compress_out_argv (guestfs_h *g,\n"
28398 " const char *ctype,\n"
28399 " const char *file,\n"
28400 " const char *zfile,\n"
28401 " const struct guestfs_compress_out_argv *optargs);\n"
28406 #: ../src/guestfs-actions.pod:1312
28407 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
28411 #: ../src/guestfs-actions.pod:1316
28412 msgid "guestfs_config"
28416 #: ../src/guestfs-actions.pod:1318
28420 " guestfs_config (guestfs_h *g,\n"
28421 " const char *qemuparam,\n"
28422 " const char *qemuvalue);\n"
28427 #: ../src/guestfs-actions.pod:1336
28428 msgid "guestfs_copy_device_to_device"
28432 #: ../src/guestfs-actions.pod:1338
28436 " guestfs_copy_device_to_device (guestfs_h *g,\n"
28437 " const char *src,\n"
28438 " const char *dest,\n"
28444 #: ../src/guestfs-actions.pod:1349
28447 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
28448 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
28449 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
28454 #: ../src/guestfs-actions.pod:1353
28456 "The four calls C<guestfs_copy_device_to_device>, "
28457 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
28458 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
28459 "destination (device|file)."
28463 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1427
28464 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1538
28465 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:1723
28466 #: ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:1799
28467 #: ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2198
28468 #: ../src/guestfs-actions.pod:4109 ../src/guestfs-actions.pod:7995
28469 #: ../src/guestfs-actions.pod:8029 ../src/guestfs-actions.pod:8536
28470 #: ../src/guestfs-actions.pod:8559
28472 "This long-running command can generate progress notification messages so "
28473 "that the caller can display a progress bar or indicator. To receive these "
28474 "messages, the caller must register a progress event callback. See L<guestfs"
28475 "(3)/GUESTFS_EVENT_PROGRESS>."
28479 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432
28480 #: ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543
28481 #: ../src/guestfs-actions.pod:6208
28483 #| msgid "(Added in 1.3.5)"
28484 msgid "(Added in 1.13.25)"
28485 msgstr "(Додано у 1.3.5)"
28488 #: ../src/guestfs-actions.pod:1381
28489 msgid "guestfs_copy_device_to_device_va"
28493 #: ../src/guestfs-actions.pod:1383
28497 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
28498 " const char *src,\n"
28499 " const char *dest,\n"
28500 " va_list args);\n"
28505 #: ../src/guestfs-actions.pod:1389
28506 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
28510 #: ../src/guestfs-actions.pod:1393
28511 msgid "guestfs_copy_device_to_device_argv"
28515 #: ../src/guestfs-actions.pod:1395
28519 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
28520 " const char *src,\n"
28521 " const char *dest,\n"
28522 " const struct guestfs_copy_device_to_device_argv *optargs);\n"
28527 #: ../src/guestfs-actions.pod:1401
28528 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
28532 #: ../src/guestfs-actions.pod:1405
28533 msgid "guestfs_copy_device_to_file"
28537 #: ../src/guestfs-actions.pod:1407
28541 " guestfs_copy_device_to_file (guestfs_h *g,\n"
28542 " const char *src,\n"
28543 " const char *dest,\n"
28549 #: ../src/guestfs-actions.pod:1418
28552 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
28553 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
28554 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
28559 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475
28560 #: ../src/guestfs-actions.pod:1528
28562 "See C<guestfs_copy_device_to_device> for a general overview of this call."
28566 #: ../src/guestfs-actions.pod:1434
28567 msgid "guestfs_copy_device_to_file_va"
28571 #: ../src/guestfs-actions.pod:1436
28575 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
28576 " const char *src,\n"
28577 " const char *dest,\n"
28578 " va_list args);\n"
28583 #: ../src/guestfs-actions.pod:1442
28584 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
28588 #: ../src/guestfs-actions.pod:1446
28589 msgid "guestfs_copy_device_to_file_argv"
28593 #: ../src/guestfs-actions.pod:1448
28597 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
28598 " const char *src,\n"
28599 " const char *dest,\n"
28600 " const struct guestfs_copy_device_to_file_argv *optargs);\n"
28605 #: ../src/guestfs-actions.pod:1454
28606 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
28610 #: ../src/guestfs-actions.pod:1458
28611 msgid "guestfs_copy_file_to_device"
28615 #: ../src/guestfs-actions.pod:1460
28619 " guestfs_copy_file_to_device (guestfs_h *g,\n"
28620 " const char *src,\n"
28621 " const char *dest,\n"
28627 #: ../src/guestfs-actions.pod:1471
28630 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
28631 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
28632 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
28637 #: ../src/guestfs-actions.pod:1487
28638 msgid "guestfs_copy_file_to_device_va"
28642 #: ../src/guestfs-actions.pod:1489
28646 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
28647 " const char *src,\n"
28648 " const char *dest,\n"
28649 " va_list args);\n"
28654 #: ../src/guestfs-actions.pod:1495
28655 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
28659 #: ../src/guestfs-actions.pod:1499
28660 msgid "guestfs_copy_file_to_device_argv"
28664 #: ../src/guestfs-actions.pod:1501
28668 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
28669 " const char *src,\n"
28670 " const char *dest,\n"
28671 " const struct guestfs_copy_file_to_device_argv *optargs);\n"
28676 #: ../src/guestfs-actions.pod:1507
28677 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
28681 #: ../src/guestfs-actions.pod:1511
28682 msgid "guestfs_copy_file_to_file"
28686 #: ../src/guestfs-actions.pod:1513
28690 " guestfs_copy_file_to_file (guestfs_h *g,\n"
28691 " const char *src,\n"
28692 " const char *dest,\n"
28698 #: ../src/guestfs-actions.pod:1524
28701 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
28702 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
28703 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
28708 #: ../src/guestfs-actions.pod:1531
28710 "This is B<not> the function you want for copying files. This is for copying "
28711 "blocks within existing files. See C<guestfs_cp>, C<guestfs_cp_a> and "
28712 "C<guestfs_mv> for general file copying and moving functions."
28716 #: ../src/guestfs-actions.pod:1545
28717 msgid "guestfs_copy_file_to_file_va"
28721 #: ../src/guestfs-actions.pod:1547
28725 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
28726 " const char *src,\n"
28727 " const char *dest,\n"
28728 " va_list args);\n"
28733 #: ../src/guestfs-actions.pod:1553
28734 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
28738 #: ../src/guestfs-actions.pod:1557
28739 msgid "guestfs_copy_file_to_file_argv"
28743 #: ../src/guestfs-actions.pod:1559
28747 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
28748 " const char *src,\n"
28749 " const char *dest,\n"
28750 " const struct guestfs_copy_file_to_file_argv *optargs);\n"
28755 #: ../src/guestfs-actions.pod:1565
28756 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
28760 #: ../src/guestfs-actions.pod:1569
28761 msgid "guestfs_copy_size"
28765 #: ../src/guestfs-actions.pod:1571
28769 " guestfs_copy_size (guestfs_h *g,\n"
28770 " const char *src,\n"
28771 " const char *dest,\n"
28772 " int64_t size);\n"
28777 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
28779 "I<This function is deprecated.> In new code, use the L</"
28780 "guestfs_copy_device_to_device> call instead."
28784 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4837
28785 #: ../src/guestfs-actions.pod:6378 ../src/guestfs-actions.pod:8230
28786 #: ../src/guestfs-actions.pod:8250 ../src/guestfs-actions.pod:8336
28787 msgid "(Added in 1.0.87)"
28788 msgstr "(Додано у 1.0.87)"
28791 #: ../src/guestfs-actions.pod:1599
28796 #: ../src/guestfs-actions.pod:1601
28800 " guestfs_cp (guestfs_h *g,\n"
28801 " const char *src,\n"
28802 " const char *dest);\n"
28807 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1625
28808 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1779
28809 #: ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:5730
28810 #: ../src/guestfs-actions.pod:6222
28811 msgid "(Added in 1.0.18)"
28812 msgstr "(Додано у 1.0.18)"
28815 #: ../src/guestfs-actions.pod:1613
28816 msgid "guestfs_cp_a"
28820 #: ../src/guestfs-actions.pod:1615
28824 " guestfs_cp_a (guestfs_h *g,\n"
28825 " const char *src,\n"
28826 " const char *dest);\n"
28831 #: ../src/guestfs-actions.pod:1627
28836 #: ../src/guestfs-actions.pod:1629
28840 " guestfs_dd (guestfs_h *g,\n"
28841 " const char *src,\n"
28842 " const char *dest);\n"
28847 #: ../src/guestfs-actions.pod:1646
28849 "If the destination is a device, it must be as large or larger than the "
28850 "source file or device, otherwise the copy will fail. This command cannot do "
28851 "partial copies (see C<guestfs_copy_device_to_device>)."
28855 #: ../src/guestfs-actions.pod:1655
28860 #: ../src/guestfs-actions.pod:1657
28864 " guestfs_df (guestfs_h *g);\n"
28869 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
28871 "This command is mostly useful for interactive sessions. It is I<not> "
28872 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
28877 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1686
28878 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2811
28879 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2903
28880 #: ../src/guestfs-actions.pod:5096 ../src/guestfs-actions.pod:5630
28881 #: ../src/guestfs-actions.pod:7611 ../src/guestfs-actions.pod:7635
28882 #: ../src/guestfs-actions.pod:8376 ../src/guestfs-actions.pod:8389
28883 #: ../src/guestfs-actions.pod:8402
28884 msgid "(Added in 1.0.54)"
28885 msgstr "(Додано у 1.0.54)"
28888 #: ../src/guestfs-actions.pod:1671
28889 msgid "guestfs_df_h"
28893 #: ../src/guestfs-actions.pod:1673
28897 " guestfs_df_h (guestfs_h *g);\n"
28902 #: ../src/guestfs-actions.pod:1688
28903 msgid "guestfs_dmesg"
28907 #: ../src/guestfs-actions.pod:1690
28911 " guestfs_dmesg (guestfs_h *g);\n"
28916 #: ../src/guestfs-actions.pod:1697
28918 "Another way to get the same information is to enable verbose messages with "
28919 "C<guestfs_set_verbose> or by setting the environment variable "
28920 "C<LIBGUESTFS_DEBUG=1> before running the program."
28924 #: ../src/guestfs-actions.pod:1707
28925 msgid "guestfs_download"
28929 #: ../src/guestfs-actions.pod:1709
28933 " guestfs_download (guestfs_h *g,\n"
28934 " const char *remotefilename,\n"
28935 " const char *filename);\n"
28940 #: ../src/guestfs-actions.pod:1719
28941 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
28945 #: ../src/guestfs-actions.pod:1730
28946 msgid "guestfs_download_offset"
28950 #: ../src/guestfs-actions.pod:1732
28954 " guestfs_download_offset (guestfs_h *g,\n"
28955 " const char *remotefilename,\n"
28956 " const char *filename,\n"
28957 " int64_t offset,\n"
28958 " int64_t size);\n"
28963 #: ../src/guestfs-actions.pod:1745
28965 "Note that there is no limit on the amount of data that can be downloaded "
28966 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
28967 "full amount unless an error occurs."
28971 #: ../src/guestfs-actions.pod:1750
28972 msgid "See also C<guestfs_download>, C<guestfs_pread>."
28976 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:8034
28977 msgid "(Added in 1.5.17)"
28978 msgstr "(Додано у 1.5.17)"
28981 #: ../src/guestfs-actions.pod:1761
28982 msgid "guestfs_drop_caches"
28986 #: ../src/guestfs-actions.pod:1763
28990 " guestfs_drop_caches (guestfs_h *g,\n"
28991 " int whattodrop);\n"
28996 #: ../src/guestfs-actions.pod:1781
29001 #: ../src/guestfs-actions.pod:1783
29005 " guestfs_du (guestfs_h *g,\n"
29006 " const char *path);\n"
29011 #: ../src/guestfs-actions.pod:1806
29012 msgid "guestfs_e2fsck_f"
29016 #: ../src/guestfs-actions.pod:1808
29020 " guestfs_e2fsck_f (guestfs_h *g,\n"
29021 " const char *device);\n"
29026 #: ../src/guestfs-actions.pod:1816
29028 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
29029 "Normally you should use C<guestfs_fsck>."
29033 #: ../src/guestfs-actions.pod:1821
29034 msgid "(Added in 1.0.29)"
29035 msgstr "(Додано у 1.0.29)"
29038 #: ../src/guestfs-actions.pod:1823
29039 msgid "guestfs_echo_daemon"
29040 msgstr "guestfs_echo_daemon"
29043 #: ../src/guestfs-actions.pod:1825
29047 " guestfs_echo_daemon (guestfs_h *g,\n"
29048 " char *const *words);\n"
29052 " guestfs_echo_daemon (guestfs_h *g,\n"
29053 " char *const *words);\n"
29057 #: ../src/guestfs-actions.pod:1834
29058 msgid "See also C<guestfs_ping_daemon>."
29062 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597
29063 #: ../src/guestfs-actions.pod:7092
29064 msgid "(Added in 1.0.69)"
29065 msgstr "(Додано у 1.0.69)"
29068 #: ../src/guestfs-actions.pod:1841
29069 msgid "guestfs_egrep"
29070 msgstr "guestfs_egrep"
29073 #: ../src/guestfs-actions.pod:1843
29077 " guestfs_egrep (guestfs_h *g,\n"
29078 " const char *regex,\n"
29079 " const char *path);\n"
29083 " guestfs_egrep (guestfs_h *g,\n"
29084 " const char *regex,\n"
29085 " const char *path);\n"
29089 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1877
29090 #: ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1980
29091 #: ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:2727
29092 #: ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2924
29093 #: ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2952
29094 #: ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3020
29095 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:4336
29096 #: ../src/guestfs-actions.pod:4350 ../src/guestfs-actions.pod:4363
29097 #: ../src/guestfs-actions.pod:4377 ../src/guestfs-actions.pod:5518
29098 #: ../src/guestfs-actions.pod:6556 ../src/guestfs-actions.pod:6605
29099 #: ../src/guestfs-actions.pod:7479 ../src/guestfs-actions.pod:7491
29100 #: ../src/guestfs-actions.pod:7504 ../src/guestfs-actions.pod:7517
29101 #: ../src/guestfs-actions.pod:7539 ../src/guestfs-actions.pod:7552
29102 #: ../src/guestfs-actions.pod:7565 ../src/guestfs-actions.pod:7578
29103 #: ../src/guestfs-actions.pod:8494 ../src/guestfs-actions.pod:8513
29104 #: ../src/guestfs-actions.pod:8604 ../src/guestfs-actions.pod:8623
29105 #: ../src/guestfs-actions.pod:8669 ../src/guestfs-actions.pod:8688
29106 msgid "(Added in 1.0.66)"
29107 msgstr "(Додано у 1.0.66)"
29110 #: ../src/guestfs-actions.pod:1860
29111 msgid "guestfs_egrepi"
29112 msgstr "guestfs_egrepi"
29115 #: ../src/guestfs-actions.pod:1862
29119 " guestfs_egrepi (guestfs_h *g,\n"
29120 " const char *regex,\n"
29121 " const char *path);\n"
29126 #: ../src/guestfs-actions.pod:1879
29127 msgid "guestfs_equal"
29131 #: ../src/guestfs-actions.pod:1881
29135 " guestfs_equal (guestfs_h *g,\n"
29136 " const char *file1,\n"
29137 " const char *file2);\n"
29142 #: ../src/guestfs-actions.pod:1895
29143 msgid "guestfs_exists"
29147 #: ../src/guestfs-actions.pod:1897
29151 " guestfs_exists (guestfs_h *g,\n"
29152 " const char *path);\n"
29157 #: ../src/guestfs-actions.pod:1904
29158 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
29162 #: ../src/guestfs-actions.pod:1910
29163 msgid "guestfs_fallocate"
29167 #: ../src/guestfs-actions.pod:1912
29171 " guestfs_fallocate (guestfs_h *g,\n"
29172 " const char *path,\n"
29178 #: ../src/guestfs-actions.pod:1917
29180 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
29185 #: ../src/guestfs-actions.pod:1936
29186 msgid "guestfs_fallocate64"
29190 #: ../src/guestfs-actions.pod:1938
29194 " guestfs_fallocate64 (guestfs_h *g,\n"
29195 " const char *path,\n"
29201 #: ../src/guestfs-actions.pod:1947
29203 "Note that this call allocates disk blocks for the file. To create a sparse "
29204 "file use C<guestfs_truncate_size> instead."
29208 #: ../src/guestfs-actions.pod:1950
29210 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
29211 "oversight it only allowed 30 bit lengths to be specified, effectively "
29212 "limiting the maximum size of files created through that call to 1GB."
29216 #: ../src/guestfs-actions.pod:1961
29217 msgid "(Added in 1.3.17)"
29218 msgstr "(Додано у 1.3.17)"
29221 #: ../src/guestfs-actions.pod:1963
29222 msgid "guestfs_fgrep"
29226 #: ../src/guestfs-actions.pod:1965
29230 " guestfs_fgrep (guestfs_h *g,\n"
29231 " const char *pattern,\n"
29232 " const char *path);\n"
29237 #: ../src/guestfs-actions.pod:1982
29238 msgid "guestfs_fgrepi"
29242 #: ../src/guestfs-actions.pod:1984
29246 " guestfs_fgrepi (guestfs_h *g,\n"
29247 " const char *pattern,\n"
29248 " const char *path);\n"
29253 #: ../src/guestfs-actions.pod:2001
29254 msgid "guestfs_file"
29258 #: ../src/guestfs-actions.pod:2003
29262 " guestfs_file (guestfs_h *g,\n"
29263 " const char *path);\n"
29268 #: ../src/guestfs-actions.pod:2021
29270 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
29271 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
29275 #: ../src/guestfs-actions.pod:2029
29276 msgid "guestfs_file_architecture"
29280 #: ../src/guestfs-actions.pod:2031
29284 " guestfs_file_architecture (guestfs_h *g,\n"
29285 " const char *filename);\n"
29290 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:2302
29291 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3053
29292 #: ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3221
29293 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426
29294 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3542
29295 #: ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:3880
29296 #: ../src/guestfs-actions.pod:4012
29297 msgid "(Added in 1.5.3)"
29298 msgstr "(Додано у 1.5.3)"
29301 #: ../src/guestfs-actions.pod:2141
29302 msgid "guestfs_filesize"
29306 #: ../src/guestfs-actions.pod:2143
29310 " guestfs_filesize (guestfs_h *g,\n"
29311 " const char *file);\n"
29316 #: ../src/guestfs-actions.pod:2149
29318 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
29319 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
29320 "devices, use C<guestfs_blockdev_getsize64>."
29324 #: ../src/guestfs-actions.pod:2155
29325 msgid "(Added in 1.0.82)"
29326 msgstr "(Додано у 1.0.82)"
29329 #: ../src/guestfs-actions.pod:2157
29330 msgid "guestfs_fill"
29334 #: ../src/guestfs-actions.pod:2159
29338 " guestfs_fill (guestfs_h *g,\n"
29341 " const char *path);\n"
29346 #: ../src/guestfs-actions.pod:2169
29348 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
29349 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
29350 "bytes use C<guestfs_fill_pattern>."
29354 #: ../src/guestfs-actions.pod:2181
29355 msgid "(Added in 1.0.79)"
29356 msgstr "(Додано у 1.0.79)"
29359 #: ../src/guestfs-actions.pod:2183
29360 msgid "guestfs_fill_pattern"
29364 #: ../src/guestfs-actions.pod:2185
29368 " guestfs_fill_pattern (guestfs_h *g,\n"
29369 " const char *pattern,\n"
29371 " const char *path);\n"
29376 #: ../src/guestfs-actions.pod:2191
29378 "This function is like C<guestfs_fill> except that it creates a new file of "
29379 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
29380 "pattern is truncated if necessary to ensure the length of the file is "
29381 "exactly C<len> bytes."
29385 #: ../src/guestfs-actions.pod:2203
29386 msgid "(Added in 1.3.12)"
29387 msgstr "(Додано у 1.3.12)"
29390 #: ../src/guestfs-actions.pod:2205
29391 msgid "guestfs_find"
29395 #: ../src/guestfs-actions.pod:2207
29399 " guestfs_find (guestfs_h *g,\n"
29400 " const char *directory);\n"
29405 #: ../src/guestfs-actions.pod:2223
29407 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
29411 #: ../src/guestfs-actions.pod:2236
29412 msgid "See also C<guestfs_find0>."
29416 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4774
29417 #: ../src/guestfs-actions.pod:6640
29418 msgid "(Added in 1.0.27)"
29419 msgstr "(Додано у 1.0.27)"
29422 #: ../src/guestfs-actions.pod:2247
29423 msgid "guestfs_find0"
29427 #: ../src/guestfs-actions.pod:2249
29431 " guestfs_find0 (guestfs_h *g,\n"
29432 " const char *directory,\n"
29433 " const char *files);\n"
29438 #: ../src/guestfs-actions.pod:2258
29440 "This command works the same way as C<guestfs_find> with the following "
29445 #: ../src/guestfs-actions.pod:2285
29446 msgid "(Added in 1.0.74)"
29447 msgstr "(Додано у 1.0.74)"
29450 #: ../src/guestfs-actions.pod:2287
29451 msgid "guestfs_findfs_label"
29455 #: ../src/guestfs-actions.pod:2289
29459 " guestfs_findfs_label (guestfs_h *g,\n"
29460 " const char *label);\n"
29465 #: ../src/guestfs-actions.pod:2297
29466 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
29470 #: ../src/guestfs-actions.pod:2304
29471 msgid "guestfs_findfs_uuid"
29475 #: ../src/guestfs-actions.pod:2306
29479 " guestfs_findfs_uuid (guestfs_h *g,\n"
29480 " const char *uuid);\n"
29485 #: ../src/guestfs-actions.pod:2314
29486 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
29490 #: ../src/guestfs-actions.pod:2321
29491 msgid "guestfs_fsck"
29495 #: ../src/guestfs-actions.pod:2323
29499 " guestfs_fsck (guestfs_h *g,\n"
29500 " const char *fstype,\n"
29501 " const char *device);\n"
29506 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8541
29507 msgid "(Added in 1.0.16)"
29508 msgstr "(Додано у 1.0.16)"
29511 #: ../src/guestfs-actions.pod:2360
29512 msgid "guestfs_get_append"
29516 #: ../src/guestfs-actions.pod:2362
29520 " guestfs_get_append (guestfs_h *g);\n"
29525 #: ../src/guestfs-actions.pod:2370
29527 "This function returns a string which may be NULL. There is no way to return "
29528 "an error from this function. The string is owned by the guest handle and "
29529 "must I<not> be freed."
29533 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6318
29534 #: ../src/guestfs-actions.pod:6797 ../src/guestfs-actions.pod:7246
29535 #: ../src/guestfs-actions.pod:7265 ../src/guestfs-actions.pod:7281
29536 #: ../src/guestfs-actions.pod:7305 ../src/guestfs-actions.pod:8181
29537 #: ../src/guestfs-actions.pod:8196 ../src/guestfs-actions.pod:8585
29538 msgid "(Added in 1.0.26)"
29539 msgstr "(Додано у 1.0.26)"
29542 #: ../src/guestfs-actions.pod:2376
29543 msgid "guestfs_get_attach_method"
29547 #: ../src/guestfs-actions.pod:2378
29551 " guestfs_get_attach_method (guestfs_h *g);\n"
29556 #: ../src/guestfs-actions.pod:2381
29557 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
29561 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6827
29562 msgid "(Added in 1.9.8)"
29563 msgstr "(Додано у 1.9.8)"
29566 #: ../src/guestfs-actions.pod:2388
29567 msgid "guestfs_get_autosync"
29571 #: ../src/guestfs-actions.pod:2390
29575 " guestfs_get_autosync (guestfs_h *g);\n"
29580 #: ../src/guestfs-actions.pod:2399
29581 msgid "guestfs_get_direct"
29585 #: ../src/guestfs-actions.pod:2401
29589 " guestfs_get_direct (guestfs_h *g);\n"
29594 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6868
29595 msgid "(Added in 1.0.72)"
29596 msgstr "(Додано у 1.0.72)"
29599 #: ../src/guestfs-actions.pod:2410
29600 msgid "guestfs_get_e2label"
29604 #: ../src/guestfs-actions.pod:2412
29608 " guestfs_get_e2label (guestfs_h *g,\n"
29609 " const char *device);\n"
29614 #: ../src/guestfs-actions.pod:2416
29616 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
29621 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450
29622 #: ../src/guestfs-actions.pod:6886 ../src/guestfs-actions.pod:6905
29623 msgid "(Added in 1.0.15)"
29624 msgstr "(Додано у 1.0.15)"
29627 #: ../src/guestfs-actions.pod:2431
29628 msgid "guestfs_get_e2uuid"
29632 #: ../src/guestfs-actions.pod:2433
29636 " guestfs_get_e2uuid (guestfs_h *g,\n"
29637 " const char *device);\n"
29642 #: ../src/guestfs-actions.pod:2437
29644 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
29649 #: ../src/guestfs-actions.pod:2452
29650 msgid "guestfs_get_memsize"
29654 #: ../src/guestfs-actions.pod:2454
29658 " guestfs_get_memsize (guestfs_h *g);\n"
29663 #: ../src/guestfs-actions.pod:2460
29665 "If C<guestfs_set_memsize> was not called on this handle, and if "
29666 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
29667 "value for memsize."
29671 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5214
29672 #: ../src/guestfs-actions.pod:5423 ../src/guestfs-actions.pod:5442
29673 #: ../src/guestfs-actions.pod:5461 ../src/guestfs-actions.pod:5473
29674 #: ../src/guestfs-actions.pod:5490 ../src/guestfs-actions.pod:5503
29675 #: ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6926
29676 #: ../src/guestfs-actions.pod:7216 ../src/guestfs-actions.pod:7950
29677 msgid "(Added in 1.0.55)"
29678 msgstr "(Додано у 1.0.55)"
29681 #: ../src/guestfs-actions.pod:2471
29682 msgid "guestfs_get_network"
29686 #: ../src/guestfs-actions.pod:2473
29690 " guestfs_get_network (guestfs_h *g);\n"
29695 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6945
29696 msgid "(Added in 1.5.4)"
29697 msgstr "(Додано у 1.5.4)"
29700 #: ../src/guestfs-actions.pod:2482
29701 msgid "guestfs_get_path"
29705 #: ../src/guestfs-actions.pod:2484
29709 " guestfs_get_path (guestfs_h *g);\n"
29714 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
29716 "This function returns a string, or NULL on error. The string is owned by "
29717 "the guest handle and must I<not> be freed."
29721 #: ../src/guestfs-actions.pod:2497
29722 msgid "guestfs_get_pgroup"
29726 #: ../src/guestfs-actions.pod:2499
29730 " guestfs_get_pgroup (guestfs_h *g);\n"
29735 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6981
29736 #: ../src/guestfs-actions.pod:8442
29737 msgid "(Added in 1.11.18)"
29738 msgstr "(Додано у 1.11.18)"
29741 #: ../src/guestfs-actions.pod:2508
29742 msgid "guestfs_get_pid"
29746 #: ../src/guestfs-actions.pod:2510
29750 " guestfs_get_pid (guestfs_h *g);\n"
29755 #: ../src/guestfs-actions.pod:2520
29756 msgid "(Added in 1.0.56)"
29757 msgstr "(Додано у 1.0.56)"
29760 #: ../src/guestfs-actions.pod:2522
29761 msgid "guestfs_get_qemu"
29765 #: ../src/guestfs-actions.pod:2524
29769 " guestfs_get_qemu (guestfs_h *g);\n"
29774 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:7009
29775 msgid "(Added in 1.0.6)"
29776 msgstr "(Додано у 1.0.6)"
29779 #: ../src/guestfs-actions.pod:2537
29780 msgid "guestfs_get_recovery_proc"
29784 #: ../src/guestfs-actions.pod:2539
29788 " guestfs_get_recovery_proc (guestfs_h *g);\n"
29793 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4134
29794 #: ../src/guestfs-actions.pod:4478 ../src/guestfs-actions.pod:4872
29795 #: ../src/guestfs-actions.pod:5053 ../src/guestfs-actions.pod:6248
29796 #: ../src/guestfs-actions.pod:6591 ../src/guestfs-actions.pod:7033
29797 #: ../src/guestfs-actions.pod:7731 ../src/guestfs-actions.pod:7751
29798 #: ../src/guestfs-actions.pod:8065
29799 msgid "(Added in 1.0.77)"
29800 msgstr "(Додано у 1.0.77)"
29803 #: ../src/guestfs-actions.pod:2548
29804 msgid "guestfs_get_selinux"
29808 #: ../src/guestfs-actions.pod:2550
29812 " guestfs_get_selinux (guestfs_h *g);\n"
29817 #: ../src/guestfs-actions.pod:2553
29819 "This returns the current setting of the selinux flag which is passed to the "
29820 "appliance at boot time. See C<guestfs_set_selinux>."
29824 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635
29825 #: ../src/guestfs-actions.pod:7052 ../src/guestfs-actions.pod:7126
29826 msgid "(Added in 1.0.67)"
29827 msgstr "(Додано у 1.0.67)"
29830 #: ../src/guestfs-actions.pod:2563
29831 msgid "guestfs_get_smp"
29835 #: ../src/guestfs-actions.pod:2565
29839 " guestfs_get_smp (guestfs_h *g);\n"
29844 #: ../src/guestfs-actions.pod:2574
29845 msgid "guestfs_get_state"
29849 #: ../src/guestfs-actions.pod:2576
29853 " guestfs_get_state (guestfs_h *g);\n"
29858 #: ../src/guestfs-actions.pod:2588
29859 msgid "guestfs_get_trace"
29863 #: ../src/guestfs-actions.pod:2590
29867 " guestfs_get_trace (guestfs_h *g);\n"
29872 #: ../src/guestfs-actions.pod:2599
29873 msgid "guestfs_get_umask"
29877 #: ../src/guestfs-actions.pod:2601
29881 " guestfs_get_umask (guestfs_h *g);\n"
29886 #: ../src/guestfs-actions.pod:2604
29888 "Return the current umask. By default the umask is C<022> unless it has been "
29889 "set by calling C<guestfs_umask>."
29893 #: ../src/guestfs-actions.pod:2611
29894 msgid "guestfs_get_verbose"
29898 #: ../src/guestfs-actions.pod:2613
29902 " guestfs_get_verbose (guestfs_h *g);\n"
29907 #: ../src/guestfs-actions.pod:2622
29908 msgid "guestfs_getcon"
29912 #: ../src/guestfs-actions.pod:2624
29916 " guestfs_getcon (guestfs_h *g);\n"
29921 #: ../src/guestfs-actions.pod:2629
29923 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
29927 #: ../src/guestfs-actions.pod:2637
29928 msgid "guestfs_getxattr"
29932 #: ../src/guestfs-actions.pod:2639
29936 " guestfs_getxattr (guestfs_h *g,\n"
29937 " const char *path,\n"
29938 " const char *name,\n"
29939 " size_t *size_r);\n"
29944 #: ../src/guestfs-actions.pod:2645
29946 "Get a single extended attribute from file C<path> named C<name>. This call "
29947 "follows symlinks. If you want to lookup an extended attribute for the "
29948 "symlink itself, use C<guestfs_lgetxattr>."
29952 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4148
29954 "Normally it is better to get all extended attributes from a file in one go "
29955 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
29956 "implementations are buggy and do not provide a way to list out attributes. "
29957 "For these filesystems (notably ntfs-3g) you have to know the names of the "
29958 "extended attributes you want in advance and call this function."
29962 #: ../src/guestfs-actions.pod:2659
29963 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
29967 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874
29968 #: ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4160
29969 #: ../src/guestfs-actions.pod:6241 ../src/guestfs-actions.pod:6267
29970 #: ../src/guestfs-actions.pod:6448
29972 "This function returns a buffer, or NULL on error. The size of the returned "
29973 "buffer is written to C<*size_r>. I<The caller must free the returned buffer "
29978 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4164
29979 msgid "(Added in 1.7.24)"
29980 msgstr "(Додано у 1.7.24)"
29983 #: ../src/guestfs-actions.pod:2667
29984 msgid "guestfs_getxattrs"
29988 #: ../src/guestfs-actions.pod:2669
29991 " struct guestfs_xattr_list *\n"
29992 " guestfs_getxattrs (guestfs_h *g,\n"
29993 " const char *path);\n"
29998 #: ../src/guestfs-actions.pod:2679
29999 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
30003 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4176
30004 #: ../src/guestfs-actions.pod:4868
30006 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
30007 "an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
30011 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4180
30012 #: ../src/guestfs-actions.pod:4392 ../src/guestfs-actions.pod:4428
30013 #: ../src/guestfs-actions.pod:6621 ../src/guestfs-actions.pod:7145
30014 #: ../src/guestfs-actions.pod:8650
30015 msgid "(Added in 1.0.59)"
30016 msgstr "(Додано у 1.0.59)"
30019 #: ../src/guestfs-actions.pod:2687
30020 msgid "guestfs_glob_expand"
30024 #: ../src/guestfs-actions.pod:2689
30028 " guestfs_glob_expand (guestfs_h *g,\n"
30029 " const char *pattern);\n"
30034 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7329
30035 #: ../src/guestfs-actions.pod:7346
30036 msgid "(Added in 1.0.50)"
30037 msgstr "(Додано у 1.0.50)"
30040 #: ../src/guestfs-actions.pod:2710
30041 msgid "guestfs_grep"
30045 #: ../src/guestfs-actions.pod:2712
30049 " guestfs_grep (guestfs_h *g,\n"
30050 " const char *regex,\n"
30051 " const char *path);\n"
30056 #: ../src/guestfs-actions.pod:2729
30057 msgid "guestfs_grepi"
30061 #: ../src/guestfs-actions.pod:2731
30065 " guestfs_grepi (guestfs_h *g,\n"
30066 " const char *regex,\n"
30067 " const char *path);\n"
30072 #: ../src/guestfs-actions.pod:2748
30073 msgid "guestfs_grub_install"
30077 #: ../src/guestfs-actions.pod:2750
30081 " guestfs_grub_install (guestfs_h *g,\n"
30082 " const char *root,\n"
30083 " const char *device);\n"
30088 #: ../src/guestfs-actions.pod:2793
30089 msgid "(Added in 1.0.17)"
30090 msgstr "(Додано у 1.0.17)"
30093 #: ../src/guestfs-actions.pod:2795
30094 msgid "guestfs_head"
30098 #: ../src/guestfs-actions.pod:2797
30102 " guestfs_head (guestfs_h *g,\n"
30103 " const char *path);\n"
30108 #: ../src/guestfs-actions.pod:2813
30109 msgid "guestfs_head_n"
30113 #: ../src/guestfs-actions.pod:2815
30117 " guestfs_head_n (guestfs_h *g,\n"
30119 " const char *path);\n"
30124 #: ../src/guestfs-actions.pod:2837
30125 msgid "guestfs_hexdump"
30129 #: ../src/guestfs-actions.pod:2839
30133 " guestfs_hexdump (guestfs_h *g,\n"
30134 " const char *path);\n"
30139 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7410
30140 #: ../src/guestfs-actions.pod:7465
30141 msgid "(Added in 1.0.22)"
30142 msgstr "(Додано у 1.0.22)"
30145 #: ../src/guestfs-actions.pod:2854
30146 msgid "guestfs_initrd_cat"
30150 #: ../src/guestfs-actions.pod:2856
30154 " guestfs_initrd_cat (guestfs_h *g,\n"
30155 " const char *initrdpath,\n"
30156 " const char *filename,\n"
30157 " size_t *size_r);\n"
30162 #: ../src/guestfs-actions.pod:2872
30163 msgid "See also C<guestfs_initrd_list>."
30167 #: ../src/guestfs-actions.pod:2883
30168 msgid "guestfs_initrd_list"
30172 #: ../src/guestfs-actions.pod:2885
30176 " guestfs_initrd_list (guestfs_h *g,\n"
30177 " const char *path);\n"
30182 #: ../src/guestfs-actions.pod:2905
30183 msgid "guestfs_inotify_add_watch"
30187 #: ../src/guestfs-actions.pod:2907
30191 " guestfs_inotify_add_watch (guestfs_h *g,\n"
30192 " const char *path,\n"
30198 #: ../src/guestfs-actions.pod:2926
30199 msgid "guestfs_inotify_close"
30203 #: ../src/guestfs-actions.pod:2928
30207 " guestfs_inotify_close (guestfs_h *g);\n"
30212 #: ../src/guestfs-actions.pod:2939
30213 msgid "guestfs_inotify_files"
30217 #: ../src/guestfs-actions.pod:2941
30221 " guestfs_inotify_files (guestfs_h *g);\n"
30226 #: ../src/guestfs-actions.pod:2944
30228 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
30229 "returns a list of pathnames of objects that were touched. The returned "
30230 "pathnames are sorted and deduplicated."
30234 #: ../src/guestfs-actions.pod:2954
30235 msgid "guestfs_inotify_init"
30239 #: ../src/guestfs-actions.pod:2956
30243 " guestfs_inotify_init (guestfs_h *g,\n"
30244 " int maxevents);\n"
30249 #: ../src/guestfs-actions.pod:2964
30251 "C<maxevents> is the maximum number of events which will be queued up between "
30252 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
30253 "passed as C<0>, then the kernel (or previously set) default is used. For "
30254 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
30255 "throws away events, but records the fact that it threw them away by setting "
30256 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
30257 "C<guestfs_inotify_read>)."
30261 #: ../src/guestfs-actions.pod:2974
30263 "Before any events are generated, you have to add some watches to the "
30264 "internal watch list. See: C<guestfs_inotify_add_watch>, "
30265 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
30269 #: ../src/guestfs-actions.pod:2980
30271 "Queued up events should be read periodically by calling "
30272 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
30273 "wrapper around C<guestfs_inotify_read>). If you don't read the events out "
30274 "often enough then you risk the internal queue overflowing."
30278 #: ../src/guestfs-actions.pod:2987
30280 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
30281 "This also removes any watches automatically."
30285 #: ../src/guestfs-actions.pod:3000
30286 msgid "guestfs_inotify_read"
30290 #: ../src/guestfs-actions.pod:3002
30293 " struct guestfs_inotify_event_list *\n"
30294 " guestfs_inotify_read (guestfs_h *g);\n"
30299 #: ../src/guestfs-actions.pod:3016
30301 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
30302 "there was an error. I<The caller must call "
30303 "C<guestfs_free_inotify_event_list> after use>."
30307 #: ../src/guestfs-actions.pod:3022
30308 msgid "guestfs_inotify_rm_watch"
30312 #: ../src/guestfs-actions.pod:3024
30316 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
30322 #: ../src/guestfs-actions.pod:3028
30324 "Remove a previously defined inotify watch. See C<guestfs_inotify_add_watch>."
30328 #: ../src/guestfs-actions.pod:3035
30329 msgid "guestfs_inspect_get_arch"
30333 #: ../src/guestfs-actions.pod:3037
30337 " guestfs_inspect_get_arch (guestfs_h *g,\n"
30338 " const char *root);\n"
30343 #: ../src/guestfs-actions.pod:3041
30345 "This returns the architecture of the inspected operating system. The "
30346 "possible return values are listed under C<guestfs_file_architecture>."
30350 #: ../src/guestfs-actions.pod:3055
30351 msgid "guestfs_inspect_get_distro"
30355 #: ../src/guestfs-actions.pod:3057
30359 " guestfs_inspect_get_distro (guestfs_h *g,\n"
30360 " const char *root);\n"
30365 #: ../src/guestfs-actions.pod:3157
30366 msgid "guestfs_inspect_get_drive_mappings"
30370 #: ../src/guestfs-actions.pod:3159
30374 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
30375 " const char *root);\n"
30380 #: ../src/guestfs-actions.pod:3188
30382 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
30383 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
30387 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460
30388 #: ../src/guestfs-actions.pod:4267 ../src/guestfs-actions.pod:5006
30389 #: ../src/guestfs-actions.pod:5692 ../src/guestfs-actions.pod:7889
30391 "This function returns a NULL-terminated array of strings, or NULL if there "
30392 "was an error. The array of strings will always have length C<2n+1>, where "
30393 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
30394 "caller must free the strings and the array after use>."
30398 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3663
30399 msgid "(Added in 1.9.17)"
30400 msgstr "(Додано у 1.9.17)"
30403 #: ../src/guestfs-actions.pod:3200
30404 msgid "guestfs_inspect_get_filesystems"
30408 #: ../src/guestfs-actions.pod:3202
30412 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
30413 " const char *root);\n"
30418 #: ../src/guestfs-actions.pod:3214
30420 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
30421 "C<guestfs_inspect_get_mountpoints>."
30425 #: ../src/guestfs-actions.pod:3223
30426 msgid "guestfs_inspect_get_format"
30430 #: ../src/guestfs-actions.pod:3225
30434 " guestfs_inspect_get_format (guestfs_h *g,\n"
30435 " const char *root);\n"
30440 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3699
30441 #: ../src/guestfs-actions.pod:3715 ../src/guestfs-actions.pod:3733
30442 #: ../src/guestfs-actions.pod:6659
30443 msgid "(Added in 1.9.4)"
30444 msgstr "(Додано у 1.9.4)"
30447 #: ../src/guestfs-actions.pod:3261
30448 msgid "guestfs_inspect_get_hostname"
30452 #: ../src/guestfs-actions.pod:3263
30456 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
30457 " const char *root);\n"
30462 #: ../src/guestfs-actions.pod:3278
30463 msgid "(Added in 1.7.9)"
30464 msgstr "(Додано у 1.7.9)"
30467 #: ../src/guestfs-actions.pod:3280
30468 msgid "guestfs_inspect_get_icon"
30472 #: ../src/guestfs-actions.pod:3282
30476 " guestfs_inspect_get_icon (guestfs_h *g,\n"
30477 " const char *root,\n"
30478 " size_t *size_r,\n"
30484 #: ../src/guestfs-actions.pod:3293
30487 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
30488 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
30493 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4194
30494 #: ../src/guestfs-actions.pod:5591
30495 msgid "(Added in 1.11.12)"
30496 msgstr "(Додано у 1.11.12)"
30499 #: ../src/guestfs-actions.pod:3362
30500 msgid "guestfs_inspect_get_icon_va"
30504 #: ../src/guestfs-actions.pod:3364
30508 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
30509 " const char *root,\n"
30510 " size_t *size_r,\n"
30511 " va_list args);\n"
30516 #: ../src/guestfs-actions.pod:3370
30517 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
30521 #: ../src/guestfs-actions.pod:3374
30522 msgid "guestfs_inspect_get_icon_argv"
30526 #: ../src/guestfs-actions.pod:3376
30530 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
30531 " const char *root,\n"
30532 " size_t *size_r,\n"
30533 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
30538 #: ../src/guestfs-actions.pod:3382
30539 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
30543 #: ../src/guestfs-actions.pod:3386
30544 msgid "guestfs_inspect_get_major_version"
30548 #: ../src/guestfs-actions.pod:3388
30552 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
30553 " const char *root);\n"
30558 #: ../src/guestfs-actions.pod:3410
30559 msgid "guestfs_inspect_get_minor_version"
30563 #: ../src/guestfs-actions.pod:3412
30567 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
30568 " const char *root);\n"
30573 #: ../src/guestfs-actions.pod:3421
30575 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
30576 "C<guestfs_inspect_get_major_version>."
30580 #: ../src/guestfs-actions.pod:3428
30581 msgid "guestfs_inspect_get_mountpoints"
30585 #: ../src/guestfs-actions.pod:3430
30589 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
30590 " const char *root);\n"
30595 #: ../src/guestfs-actions.pod:3451
30597 "For operating systems like Windows which still use drive letters, this call "
30598 "will only return an entry for the first drive \"mounted on\" C</>. For "
30599 "information about the mapping of drive letters to partitions, see "
30600 "C<guestfs_inspect_get_drive_mappings>."
30604 #: ../src/guestfs-actions.pod:3457
30606 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
30607 "C<guestfs_inspect_get_filesystems>."
30611 #: ../src/guestfs-actions.pod:3468
30612 msgid "guestfs_inspect_get_package_format"
30616 #: ../src/guestfs-actions.pod:3470
30620 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
30621 " const char *root);\n"
30626 #: ../src/guestfs-actions.pod:3474
30628 "This function and C<guestfs_inspect_get_package_management> return the "
30629 "package format and package management tool used by the inspected operating "
30630 "system. For example for Fedora these functions would return C<rpm> (package "
30631 "format) and C<yum> (package management)."
30635 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
30636 msgid "(Added in 1.7.5)"
30637 msgstr "(Додано у 1.7.5)"
30640 #: ../src/guestfs-actions.pod:3495
30641 msgid "guestfs_inspect_get_package_management"
30645 #: ../src/guestfs-actions.pod:3497
30649 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
30650 " const char *root);\n"
30655 #: ../src/guestfs-actions.pod:3501
30657 "C<guestfs_inspect_get_package_format> and this function return the package "
30658 "format and package management tool used by the inspected operating system. "
30659 "For example for Fedora these functions would return C<rpm> (package format) "
30660 "and C<yum> (package management)."
30664 #: ../src/guestfs-actions.pod:3523
30665 msgid "guestfs_inspect_get_product_name"
30669 #: ../src/guestfs-actions.pod:3525
30673 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
30674 " const char *root);\n"
30679 #: ../src/guestfs-actions.pod:3544
30680 msgid "guestfs_inspect_get_product_variant"
30684 #: ../src/guestfs-actions.pod:3546
30688 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
30689 " const char *root);\n"
30694 #: ../src/guestfs-actions.pod:3569
30696 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
30697 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
30701 #: ../src/guestfs-actions.pod:3576
30702 msgid "(Added in 1.9.13)"
30703 msgstr "(Додано у 1.9.13)"
30706 #: ../src/guestfs-actions.pod:3578
30707 msgid "guestfs_inspect_get_roots"
30711 #: ../src/guestfs-actions.pod:3580
30715 " guestfs_inspect_get_roots (guestfs_h *g);\n"
30720 #: ../src/guestfs-actions.pod:3583
30722 "This function is a convenient way to get the list of root devices, as "
30723 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
30724 "the whole inspection process."
30728 #: ../src/guestfs-actions.pod:3587
30730 "This returns an empty list if either no root devices were found or the "
30731 "caller has not called C<guestfs_inspect_os>."
30735 #: ../src/guestfs-actions.pod:3596
30736 msgid "(Added in 1.7.3)"
30737 msgstr "(Додано у 1.7.3)"
30740 #: ../src/guestfs-actions.pod:3598
30741 msgid "guestfs_inspect_get_type"
30745 #: ../src/guestfs-actions.pod:3600
30749 " guestfs_inspect_get_type (guestfs_h *g,\n"
30750 " const char *root);\n"
30755 #: ../src/guestfs-actions.pod:3645
30756 msgid "guestfs_inspect_get_windows_current_control_set"
30760 #: ../src/guestfs-actions.pod:3647
30764 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
30765 " const char *root);\n"
30770 #: ../src/guestfs-actions.pod:3665
30771 msgid "guestfs_inspect_get_windows_systemroot"
30775 #: ../src/guestfs-actions.pod:3667
30779 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
30780 " const char *root);\n"
30785 #: ../src/guestfs-actions.pod:3683
30786 msgid "(Added in 1.5.25)"
30787 msgstr "(Додано у 1.5.25)"
30790 #: ../src/guestfs-actions.pod:3685
30791 msgid "guestfs_inspect_is_live"
30795 #: ../src/guestfs-actions.pod:3687
30799 " guestfs_inspect_is_live (guestfs_h *g,\n"
30800 " const char *root);\n"
30805 #: ../src/guestfs-actions.pod:3691
30807 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30808 "disk), then this returns true if a live image was detected on the disk."
30812 #: ../src/guestfs-actions.pod:3701
30813 msgid "guestfs_inspect_is_multipart"
30817 #: ../src/guestfs-actions.pod:3703
30821 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
30822 " const char *root);\n"
30827 #: ../src/guestfs-actions.pod:3707
30829 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30830 "disk), then this returns true if the disk is part of a set."
30834 #: ../src/guestfs-actions.pod:3717
30835 msgid "guestfs_inspect_is_netinst"
30839 #: ../src/guestfs-actions.pod:3719
30843 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
30844 " const char *root);\n"
30849 #: ../src/guestfs-actions.pod:3723
30851 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30852 "disk), then this returns true if the disk is a network installer, ie. not a "
30853 "self-contained install CD but one which is likely to require network access "
30854 "to complete the install."
30858 #: ../src/guestfs-actions.pod:3735
30859 msgid "guestfs_inspect_list_applications"
30863 #: ../src/guestfs-actions.pod:3737
30866 " struct guestfs_application_list *\n"
30867 " guestfs_inspect_list_applications (guestfs_h *g,\n"
30868 " const char *root);\n"
30873 #: ../src/guestfs-actions.pod:3743
30875 "I<Note:> This call works differently from other parts of the inspection "
30876 "API. You have to call C<guestfs_inspect_os>, then "
30877 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
30878 "this. Listing applications is a significantly more difficult operation "
30879 "which requires access to the full filesystem. Also note that unlike the "
30880 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
30881 "the libguestfs handle, this call actually reads parts of the mounted "
30882 "filesystems during the call."
30886 #: ../src/guestfs-actions.pod:3833
30888 "This function returns a C<struct guestfs_application_list *>, or NULL if "
30889 "there was an error. I<The caller must call C<guestfs_free_application_list> "
30894 #: ../src/guestfs-actions.pod:3837
30895 msgid "(Added in 1.7.8)"
30896 msgstr "(Додано у 1.7.8)"
30899 #: ../src/guestfs-actions.pod:3839
30900 msgid "guestfs_inspect_os"
30904 #: ../src/guestfs-actions.pod:3841
30908 " guestfs_inspect_os (guestfs_h *g);\n"
30913 #: ../src/guestfs-actions.pod:3857
30915 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
30916 "functions in order to query further information about each operating system, "
30917 "such as the name and version."
30921 #: ../src/guestfs-actions.pod:3862
30923 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
30924 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
30925 "the contents. This should be called with no disks currently mounted. The "
30926 "function may also use Augeas, so any existing Augeas handle will be closed."
30930 #: ../src/guestfs-actions.pod:3874 ../src/guestfs-actions.pod:4205
30931 #: ../src/guestfs-actions.pod:4300
30932 msgid "See also C<guestfs_list_filesystems>."
30936 #: ../src/guestfs-actions.pod:3882
30937 msgid "guestfs_is_blockdev"
30941 #: ../src/guestfs-actions.pod:3884
30945 " guestfs_is_blockdev (guestfs_h *g,\n"
30946 " const char *path);\n"
30951 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3920
30952 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3965
30953 #: ../src/guestfs-actions.pod:3981 ../src/guestfs-actions.pod:4037
30954 #: ../src/guestfs-actions.pod:4052
30955 msgid "See also C<guestfs_stat>."
30959 #: ../src/guestfs-actions.pod:3895 ../src/guestfs-actions.pod:3924
30960 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:4041
30961 #: ../src/guestfs-actions.pod:4056
30962 msgid "(Added in 1.5.10)"
30963 msgstr "(Додано у 1.5.10)"
30966 #: ../src/guestfs-actions.pod:3897
30967 msgid "guestfs_is_busy"
30971 #: ../src/guestfs-actions.pod:3899
30975 " guestfs_is_busy (guestfs_h *g);\n"
30980 #: ../src/guestfs-actions.pod:3911
30981 msgid "guestfs_is_chardev"
30985 #: ../src/guestfs-actions.pod:3913
30989 " guestfs_is_chardev (guestfs_h *g,\n"
30990 " const char *path);\n"
30995 #: ../src/guestfs-actions.pod:3926
30996 msgid "guestfs_is_config"
31000 #: ../src/guestfs-actions.pod:3928
31004 " guestfs_is_config (guestfs_h *g);\n"
31009 #: ../src/guestfs-actions.pod:3940
31010 msgid "guestfs_is_dir"
31014 #: ../src/guestfs-actions.pod:3942
31018 " guestfs_is_dir (guestfs_h *g,\n"
31019 " const char *path);\n"
31024 #: ../src/guestfs-actions.pod:3956
31025 msgid "guestfs_is_fifo"
31029 #: ../src/guestfs-actions.pod:3958
31033 " guestfs_is_fifo (guestfs_h *g,\n"
31034 " const char *path);\n"
31039 #: ../src/guestfs-actions.pod:3971
31040 msgid "guestfs_is_file"
31044 #: ../src/guestfs-actions.pod:3973
31048 " guestfs_is_file (guestfs_h *g,\n"
31049 " const char *path);\n"
31054 #: ../src/guestfs-actions.pod:3987
31055 msgid "guestfs_is_launching"
31059 #: ../src/guestfs-actions.pod:3989
31063 " guestfs_is_launching (guestfs_h *g);\n"
31068 #: ../src/guestfs-actions.pod:4001
31069 msgid "guestfs_is_lv"
31073 #: ../src/guestfs-actions.pod:4003
31077 " guestfs_is_lv (guestfs_h *g,\n"
31078 " const char *device);\n"
31083 #: ../src/guestfs-actions.pod:4014
31084 msgid "guestfs_is_ready"
31088 #: ../src/guestfs-actions.pod:4016
31092 " guestfs_is_ready (guestfs_h *g);\n"
31097 #: ../src/guestfs-actions.pod:4028
31098 msgid "guestfs_is_socket"
31102 #: ../src/guestfs-actions.pod:4030
31106 " guestfs_is_socket (guestfs_h *g,\n"
31107 " const char *path);\n"
31112 #: ../src/guestfs-actions.pod:4043
31113 msgid "guestfs_is_symlink"
31117 #: ../src/guestfs-actions.pod:4045
31121 " guestfs_is_symlink (guestfs_h *g,\n"
31122 " const char *path);\n"
31127 #: ../src/guestfs-actions.pod:4058
31128 msgid "guestfs_is_zero"
31132 #: ../src/guestfs-actions.pod:4060
31136 " guestfs_is_zero (guestfs_h *g,\n"
31137 " const char *path);\n"
31142 #: ../src/guestfs-actions.pod:4069 ../src/guestfs-actions.pod:4083
31143 msgid "(Added in 1.11.8)"
31144 msgstr "(Додано у 1.11.8)"
31147 #: ../src/guestfs-actions.pod:4071
31148 msgid "guestfs_is_zero_device"
31152 #: ../src/guestfs-actions.pod:4073
31156 " guestfs_is_zero_device (guestfs_h *g,\n"
31157 " const char *device);\n"
31162 #: ../src/guestfs-actions.pod:4085
31163 msgid "guestfs_kill_subprocess"
31167 #: ../src/guestfs-actions.pod:4087
31171 " guestfs_kill_subprocess (guestfs_h *g);\n"
31176 #: ../src/guestfs-actions.pod:4096
31177 msgid "guestfs_launch"
31181 #: ../src/guestfs-actions.pod:4098
31185 " guestfs_launch (guestfs_h *g);\n"
31190 #: ../src/guestfs-actions.pod:4116
31191 msgid "guestfs_lchown"
31195 #: ../src/guestfs-actions.pod:4118
31199 " guestfs_lchown (guestfs_h *g,\n"
31202 " const char *path);\n"
31207 #: ../src/guestfs-actions.pod:4124
31209 "Change the file owner to C<owner> and group to C<group>. This is like "
31210 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
31211 "changed, not the target."
31215 #: ../src/guestfs-actions.pod:4136
31216 msgid "guestfs_lgetxattr"
31220 #: ../src/guestfs-actions.pod:4138
31224 " guestfs_lgetxattr (guestfs_h *g,\n"
31225 " const char *path,\n"
31226 " const char *name,\n"
31227 " size_t *size_r);\n"
31232 #: ../src/guestfs-actions.pod:4158
31233 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
31237 #: ../src/guestfs-actions.pod:4166
31238 msgid "guestfs_lgetxattrs"
31242 #: ../src/guestfs-actions.pod:4168
31245 " struct guestfs_xattr_list *\n"
31246 " guestfs_lgetxattrs (guestfs_h *g,\n"
31247 " const char *path);\n"
31252 #: ../src/guestfs-actions.pod:4172
31254 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
31255 "then it returns the extended attributes of the link itself."
31259 #: ../src/guestfs-actions.pod:4182
31260 msgid "guestfs_list_9p"
31264 #: ../src/guestfs-actions.pod:4184
31268 " guestfs_list_9p (guestfs_h *g);\n"
31273 #: ../src/guestfs-actions.pod:4196
31274 msgid "guestfs_list_devices"
31278 #: ../src/guestfs-actions.pod:4198
31282 " guestfs_list_devices (guestfs_h *g);\n"
31287 #: ../src/guestfs-actions.pod:4213
31288 msgid "guestfs_list_dm_devices"
31292 #: ../src/guestfs-actions.pod:4215
31296 " guestfs_list_dm_devices (guestfs_h *g);\n"
31301 #: ../src/guestfs-actions.pod:4220
31303 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
31304 "previous call to C<guestfs_luks_open>."
31308 #: ../src/guestfs-actions.pod:4223
31310 "Device mapper devices which correspond to logical volumes are I<not> "
31311 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
31316 #: ../src/guestfs-actions.pod:4231 ../src/guestfs-actions.pod:5830
31317 msgid "(Added in 1.11.15)"
31318 msgstr "(Додано у 1.11.15)"
31321 #: ../src/guestfs-actions.pod:4233
31322 msgid "guestfs_list_filesystems"
31326 #: ../src/guestfs-actions.pod:4235
31330 " guestfs_list_filesystems (guestfs_h *g);\n"
31335 #: ../src/guestfs-actions.pod:4255
31337 "This command runs other libguestfs commands, which might include "
31338 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
31339 "soon after launch and only when nothing is mounted."
31343 #: ../src/guestfs-actions.pod:4259
31345 "Not all of the filesystems returned will be mountable. In particular, swap "
31346 "partitions are returned in the list. Also this command does not check that "
31347 "each filesystem found is valid and mountable, and some filesystems might be "
31348 "mountable but require special options. Filesystems may not all belong to a "
31349 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
31353 #: ../src/guestfs-actions.pod:4273 ../src/guestfs-actions.pod:6190
31354 msgid "(Added in 1.5.15)"
31355 msgstr "(Додано у 1.5.15)"
31358 #: ../src/guestfs-actions.pod:4275
31360 #| msgid "guestfs_zero_device"
31361 msgid "guestfs_list_md_devices"
31362 msgstr "guestfs_zero_device"
31365 #: ../src/guestfs-actions.pod:4277
31369 #| " guestfs_lvs (guestfs_h *g);\n"
31373 " guestfs_list_md_devices (guestfs_h *g);\n"
31377 " guestfs_lvs (guestfs_h *g);\n"
31381 #: ../src/guestfs-actions.pod:4286 ../src/guestfs-actions.pod:7851
31383 #| msgid "(Added in 1.5.4)"
31384 msgid "(Added in 1.15.4)"
31385 msgstr "(Додано у 1.5.4)"
31388 #: ../src/guestfs-actions.pod:4288
31389 msgid "guestfs_list_partitions"
31390 msgstr "guestfs_list_partitions"
31393 #: ../src/guestfs-actions.pod:4290
31397 " guestfs_list_partitions (guestfs_h *g);\n"
31401 " guestfs_list_partitions (guestfs_h *g);\n"
31405 #: ../src/guestfs-actions.pod:4297
31407 "This does not return logical volumes. For that you will need to call "
31412 #: ../src/guestfs-actions.pod:4308
31414 msgstr "guestfs_ll"
31417 #: ../src/guestfs-actions.pod:4310
31421 " guestfs_ll (guestfs_h *g,\n"
31422 " const char *directory);\n"
31426 " guestfs_ll (guestfs_h *g,\n"
31427 " const char *directory);\n"
31431 #: ../src/guestfs-actions.pod:4325
31433 msgstr "guestfs_ln"
31436 #: ../src/guestfs-actions.pod:4327
31440 " guestfs_ln (guestfs_h *g,\n"
31441 " const char *target,\n"
31442 " const char *linkname);\n"
31446 " guestfs_ln (guestfs_h *g,\n"
31447 " const char *target,\n"
31448 " const char *linkname);\n"
31452 #: ../src/guestfs-actions.pod:4338
31453 msgid "guestfs_ln_f"
31454 msgstr "guestfs_ln_f"
31457 #: ../src/guestfs-actions.pod:4340
31461 " guestfs_ln_f (guestfs_h *g,\n"
31462 " const char *target,\n"
31463 " const char *linkname);\n"
31467 " guestfs_ln_f (guestfs_h *g,\n"
31468 " const char *target,\n"
31469 " const char *linkname);\n"
31473 #: ../src/guestfs-actions.pod:4352
31474 msgid "guestfs_ln_s"
31475 msgstr "guestfs_ln_s"
31478 #: ../src/guestfs-actions.pod:4354
31482 " guestfs_ln_s (guestfs_h *g,\n"
31483 " const char *target,\n"
31484 " const char *linkname);\n"
31488 " guestfs_ln_s (guestfs_h *g,\n"
31489 " const char *target,\n"
31490 " const char *linkname);\n"
31494 #: ../src/guestfs-actions.pod:4365
31495 msgid "guestfs_ln_sf"
31496 msgstr "guestfs_ln_sf"
31499 #: ../src/guestfs-actions.pod:4367
31503 " guestfs_ln_sf (guestfs_h *g,\n"
31504 " const char *target,\n"
31505 " const char *linkname);\n"
31509 " guestfs_ln_sf (guestfs_h *g,\n"
31510 " const char *target,\n"
31511 " const char *linkname);\n"
31515 #: ../src/guestfs-actions.pod:4379
31516 msgid "guestfs_lremovexattr"
31517 msgstr "guestfs_lremovexattr"
31520 #: ../src/guestfs-actions.pod:4381
31524 " guestfs_lremovexattr (guestfs_h *g,\n"
31525 " const char *xattr,\n"
31526 " const char *path);\n"
31530 " guestfs_lremovexattr (guestfs_h *g,\n"
31531 " const char *xattr,\n"
31532 " const char *path);\n"
31536 #: ../src/guestfs-actions.pod:4386
31538 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
31539 "link, then it removes an extended attribute of the link itself."
31543 #: ../src/guestfs-actions.pod:4394
31545 msgstr "guestfs_ls"
31548 #: ../src/guestfs-actions.pod:4396
31552 " guestfs_ls (guestfs_h *g,\n"
31553 " const char *directory);\n"
31557 " guestfs_ls (guestfs_h *g,\n"
31558 " const char *directory);\n"
31562 #: ../src/guestfs-actions.pod:4404
31564 "This command is mostly useful for interactive sessions. Programs should "
31565 "probably use C<guestfs_readdir> instead."
31569 #: ../src/guestfs-actions.pod:4413
31570 msgid "guestfs_lsetxattr"
31571 msgstr "guestfs_lsetxattr"
31574 #: ../src/guestfs-actions.pod:4415
31578 " guestfs_lsetxattr (guestfs_h *g,\n"
31579 " const char *xattr,\n"
31580 " const char *val,\n"
31582 " const char *path);\n"
31586 " guestfs_lsetxattr (guestfs_h *g,\n"
31587 " const char *xattr,\n"
31588 " const char *val,\n"
31590 " const char *path);\n"
31594 #: ../src/guestfs-actions.pod:4422
31596 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
31597 "then it sets an extended attribute of the link itself."
31601 #: ../src/guestfs-actions.pod:4430
31602 msgid "guestfs_lstat"
31603 msgstr "guestfs_lstat"
31606 #: ../src/guestfs-actions.pod:4432
31609 " struct guestfs_stat *\n"
31610 " guestfs_lstat (guestfs_h *g,\n"
31611 " const char *path);\n"
31614 " struct guestfs_stat *\n"
31615 " guestfs_lstat (guestfs_h *g,\n"
31616 " const char *path);\n"
31620 #: ../src/guestfs-actions.pod:4438
31622 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
31623 "link, then the link is stat-ed, not the file it refers to."
31627 #: ../src/guestfs-actions.pod:4444 ../src/guestfs-actions.pod:7370
31629 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
31630 "error. I<The caller must call C<guestfs_free_stat> after use>."
31634 #: ../src/guestfs-actions.pod:4448 ../src/guestfs-actions.pod:7374
31635 #: ../src/guestfs-actions.pod:7392 ../src/guestfs-actions.pod:7895
31636 msgid "(Added in 0.9.2)"
31637 msgstr "(Додано у 0.9.2)"
31640 #: ../src/guestfs-actions.pod:4450
31641 msgid "guestfs_lstatlist"
31642 msgstr "guestfs_lstatlist"
31645 #: ../src/guestfs-actions.pod:4452
31648 " struct guestfs_stat_list *\n"
31649 " guestfs_lstatlist (guestfs_h *g,\n"
31650 " const char *path,\n"
31651 " char *const *names);\n"
31654 " struct guestfs_stat_list *\n"
31655 " guestfs_lstatlist (guestfs_h *g,\n"
31656 " const char *path,\n"
31657 " char *const *names);\n"
31661 #: ../src/guestfs-actions.pod:4457
31663 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
31664 "files, where all files are in the directory C<path>. C<names> is the list "
31665 "of files from this directory."
31669 #: ../src/guestfs-actions.pod:4466
31671 "This call is intended for programs that want to efficiently list a directory "
31672 "contents without making many round-trips. See also C<guestfs_lxattrlist> "
31673 "for a similarly efficient call for getting extended attributes. Very long "
31674 "directory listings might cause the protocol message size to be exceeded, "
31675 "causing this call to fail. The caller must split up such requests into "
31676 "smaller groups of names."
31680 #: ../src/guestfs-actions.pod:4474
31682 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
31683 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
31687 #: ../src/guestfs-actions.pod:4480
31688 msgid "guestfs_luks_add_key"
31689 msgstr "guestfs_luks_add_key"
31692 #: ../src/guestfs-actions.pod:4482
31696 " guestfs_luks_add_key (guestfs_h *g,\n"
31697 " const char *device,\n"
31698 " const char *key,\n"
31699 " const char *newkey,\n"
31704 " guestfs_luks_add_key (guestfs_h *g,\n"
31705 " const char *device,\n"
31706 " const char *key,\n"
31707 " const char *newkey,\n"
31712 #: ../src/guestfs-actions.pod:4494
31714 "Note that if C<keyslot> already contains a key, then this command will "
31715 "fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
31719 #: ../src/guestfs-actions.pod:4500 ../src/guestfs-actions.pod:4537
31720 #: ../src/guestfs-actions.pod:4557 ../src/guestfs-actions.pod:4577
31721 #: ../src/guestfs-actions.pod:4612 ../src/guestfs-actions.pod:4631
31723 "This function takes a key or passphrase parameter which could contain "
31724 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
31729 #: ../src/guestfs-actions.pod:4504 ../src/guestfs-actions.pod:4541
31730 #: ../src/guestfs-actions.pod:4561 ../src/guestfs-actions.pod:4581
31731 msgid "(Added in 1.5.2)"
31732 msgstr "(Додано у 1.5.2)"
31735 #: ../src/guestfs-actions.pod:4506
31736 msgid "guestfs_luks_close"
31737 msgstr "guestfs_luks_close"
31740 #: ../src/guestfs-actions.pod:4508
31744 " guestfs_luks_close (guestfs_h *g,\n"
31745 " const char *device);\n"
31749 " guestfs_luks_close (guestfs_h *g,\n"
31750 " const char *device);\n"
31754 #: ../src/guestfs-actions.pod:4512
31756 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
31757 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
31758 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
31759 "underlying block device."
31763 #: ../src/guestfs-actions.pod:4520 ../src/guestfs-actions.pod:4616
31764 #: ../src/guestfs-actions.pod:4635 ../src/guestfs-actions.pod:4685
31765 #: ../src/guestfs-actions.pod:4730
31766 msgid "(Added in 1.5.1)"
31767 msgstr "(Додано у 1.5.1)"
31770 #: ../src/guestfs-actions.pod:4522
31771 msgid "guestfs_luks_format"
31772 msgstr "guestfs_luks_format"
31775 #: ../src/guestfs-actions.pod:4524
31779 " guestfs_luks_format (guestfs_h *g,\n"
31780 " const char *device,\n"
31781 " const char *key,\n"
31786 " guestfs_luks_format (guestfs_h *g,\n"
31787 " const char *device,\n"
31788 " const char *key,\n"
31793 #: ../src/guestfs-actions.pod:4543
31794 msgid "guestfs_luks_format_cipher"
31795 msgstr "guestfs_luks_format_cipher"
31798 #: ../src/guestfs-actions.pod:4545
31802 " guestfs_luks_format_cipher (guestfs_h *g,\n"
31803 " const char *device,\n"
31804 " const char *key,\n"
31806 " const char *cipher);\n"
31810 " guestfs_luks_format_cipher (guestfs_h *g,\n"
31811 " const char *device,\n"
31812 " const char *key,\n"
31814 " const char *cipher);\n"
31818 #: ../src/guestfs-actions.pod:4552
31820 "This command is the same as C<guestfs_luks_format> but it also allows you to "
31821 "set the C<cipher> used."
31825 #: ../src/guestfs-actions.pod:4563
31826 msgid "guestfs_luks_kill_slot"
31827 msgstr "guestfs_luks_kill_slot"
31830 #: ../src/guestfs-actions.pod:4565
31834 " guestfs_luks_kill_slot (guestfs_h *g,\n"
31835 " const char *device,\n"
31836 " const char *key,\n"
31841 " guestfs_luks_kill_slot (guestfs_h *g,\n"
31842 " const char *device,\n"
31843 " const char *key,\n"
31848 #: ../src/guestfs-actions.pod:4583
31849 msgid "guestfs_luks_open"
31850 msgstr "guestfs_luks_open"
31853 #: ../src/guestfs-actions.pod:4585
31857 " guestfs_luks_open (guestfs_h *g,\n"
31858 " const char *device,\n"
31859 " const char *key,\n"
31860 " const char *mapname);\n"
31864 " guestfs_luks_open (guestfs_h *g,\n"
31865 " const char *device,\n"
31866 " const char *key,\n"
31867 " const char *mapname);\n"
31871 #: ../src/guestfs-actions.pod:4603
31873 "If this block device contains LVM volume groups, then calling "
31874 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
31879 #: ../src/guestfs-actions.pod:4607
31880 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
31884 #: ../src/guestfs-actions.pod:4618
31885 msgid "guestfs_luks_open_ro"
31886 msgstr "guestfs_luks_open_ro"
31889 #: ../src/guestfs-actions.pod:4620
31893 " guestfs_luks_open_ro (guestfs_h *g,\n"
31894 " const char *device,\n"
31895 " const char *key,\n"
31896 " const char *mapname);\n"
31900 " guestfs_luks_open_ro (guestfs_h *g,\n"
31901 " const char *device,\n"
31902 " const char *key,\n"
31903 " const char *mapname);\n"
31907 #: ../src/guestfs-actions.pod:4626
31909 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
31914 #: ../src/guestfs-actions.pod:4637
31915 msgid "guestfs_lvcreate"
31916 msgstr "guestfs_lvcreate"
31919 #: ../src/guestfs-actions.pod:4639
31923 " guestfs_lvcreate (guestfs_h *g,\n"
31924 " const char *logvol,\n"
31925 " const char *volgroup,\n"
31930 " guestfs_lvcreate (guestfs_h *g,\n"
31931 " const char *logvol,\n"
31932 " const char *volgroup,\n"
31937 #: ../src/guestfs-actions.pod:4652
31938 msgid "guestfs_lvm_canonical_lv_name"
31939 msgstr "guestfs_lvm_canonical_lv_name"
31942 #: ../src/guestfs-actions.pod:4654
31946 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
31947 " const char *lvname);\n"
31951 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
31952 " const char *lvname);\n"
31956 #: ../src/guestfs-actions.pod:4665
31957 msgid "See also C<guestfs_is_lv>."
31961 #: ../src/guestfs-actions.pod:4670
31962 msgid "(Added in 1.5.24)"
31963 msgstr "(Додано у 1.5.24)"
31966 #: ../src/guestfs-actions.pod:4672
31967 msgid "guestfs_lvm_clear_filter"
31968 msgstr "guestfs_lvm_clear_filter"
31971 #: ../src/guestfs-actions.pod:4674
31975 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
31979 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
31983 #: ../src/guestfs-actions.pod:4677
31985 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
31986 "see every block device."
31990 #: ../src/guestfs-actions.pod:4687
31991 msgid "guestfs_lvm_remove_all"
31992 msgstr "guestfs_lvm_remove_all"
31995 #: ../src/guestfs-actions.pod:4689
31999 " guestfs_lvm_remove_all (guestfs_h *g);\n"
32003 " guestfs_lvm_remove_all (guestfs_h *g);\n"
32007 #: ../src/guestfs-actions.pod:4699
32008 msgid "guestfs_lvm_set_filter"
32009 msgstr "guestfs_lvm_set_filter"
32012 #: ../src/guestfs-actions.pod:4701
32016 " guestfs_lvm_set_filter (guestfs_h *g,\n"
32017 " char *const *devices);\n"
32021 " guestfs_lvm_set_filter (guestfs_h *g,\n"
32022 " char *const *devices);\n"
32026 #: ../src/guestfs-actions.pod:4732
32027 msgid "guestfs_lvremove"
32028 msgstr "guestfs_lvremove"
32031 #: ../src/guestfs-actions.pod:4734
32035 " guestfs_lvremove (guestfs_h *g,\n"
32036 " const char *device);\n"
32040 " guestfs_lvremove (guestfs_h *g,\n"
32041 " const char *device);\n"
32045 #: ../src/guestfs-actions.pod:4746 ../src/guestfs-actions.pod:6305
32046 #: ../src/guestfs-actions.pod:8265
32047 msgid "(Added in 1.0.13)"
32048 msgstr "(Додано у 1.0.13)"
32051 #: ../src/guestfs-actions.pod:4748
32052 msgid "guestfs_lvrename"
32053 msgstr "guestfs_lvrename"
32056 #: ../src/guestfs-actions.pod:4750
32060 " guestfs_lvrename (guestfs_h *g,\n"
32061 " const char *logvol,\n"
32062 " const char *newlogvol);\n"
32066 " guestfs_lvrename (guestfs_h *g,\n"
32067 " const char *logvol,\n"
32068 " const char *newlogvol);\n"
32072 #: ../src/guestfs-actions.pod:4759 ../src/guestfs-actions.pod:8278
32073 msgid "(Added in 1.0.83)"
32074 msgstr "(Додано у 1.0.83)"
32077 #: ../src/guestfs-actions.pod:4761
32078 msgid "guestfs_lvresize"
32079 msgstr "guestfs_lvresize"
32082 #: ../src/guestfs-actions.pod:4763
32086 " guestfs_lvresize (guestfs_h *g,\n"
32087 " const char *device,\n"
32092 " guestfs_lvresize (guestfs_h *g,\n"
32093 " const char *device,\n"
32098 #: ../src/guestfs-actions.pod:4776
32099 msgid "guestfs_lvresize_free"
32100 msgstr "guestfs_lvresize_free"
32103 #: ../src/guestfs-actions.pod:4778
32107 " guestfs_lvresize_free (guestfs_h *g,\n"
32108 " const char *lv,\n"
32113 " guestfs_lvresize_free (guestfs_h *g,\n"
32114 " const char *lv,\n"
32119 #: ../src/guestfs-actions.pod:4791
32120 msgid "(Added in 1.3.3)"
32121 msgstr "(Додано у 1.3.3)"
32124 #: ../src/guestfs-actions.pod:4793
32125 msgid "guestfs_lvs"
32126 msgstr "guestfs_lvs"
32129 #: ../src/guestfs-actions.pod:4795
32133 " guestfs_lvs (guestfs_h *g);\n"
32137 " guestfs_lvs (guestfs_h *g);\n"
32141 #: ../src/guestfs-actions.pod:4804
32142 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
32146 #: ../src/guestfs-actions.pod:4812
32147 msgid "guestfs_lvs_full"
32148 msgstr "guestfs_lvs_full"
32151 #: ../src/guestfs-actions.pod:4814
32154 " struct guestfs_lvm_lv_list *\n"
32155 " guestfs_lvs_full (guestfs_h *g);\n"
32158 " struct guestfs_lvm_lv_list *\n"
32159 " guestfs_lvs_full (guestfs_h *g);\n"
32163 #: ../src/guestfs-actions.pod:4820
32165 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
32166 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
32170 #: ../src/guestfs-actions.pod:4826
32171 msgid "guestfs_lvuuid"
32172 msgstr "guestfs_lvuuid"
32175 #: ../src/guestfs-actions.pod:4828
32179 " guestfs_lvuuid (guestfs_h *g,\n"
32180 " const char *device);\n"
32184 " guestfs_lvuuid (guestfs_h *g,\n"
32185 " const char *device);\n"
32189 #: ../src/guestfs-actions.pod:4839
32190 msgid "guestfs_lxattrlist"
32191 msgstr "guestfs_lxattrlist"
32194 #: ../src/guestfs-actions.pod:4841
32197 " struct guestfs_xattr_list *\n"
32198 " guestfs_lxattrlist (guestfs_h *g,\n"
32199 " const char *path,\n"
32200 " char *const *names);\n"
32203 " struct guestfs_xattr_list *\n"
32204 " guestfs_lxattrlist (guestfs_h *g,\n"
32205 " const char *path,\n"
32206 " char *const *names);\n"
32210 #: ../src/guestfs-actions.pod:4860
32212 "This call is intended for programs that want to efficiently list a directory "
32213 "contents without making many round-trips. See also C<guestfs_lstatlist> for "
32214 "a similarly efficient call for getting standard stats. Very long directory "
32215 "listings might cause the protocol message size to be exceeded, causing this "
32216 "call to fail. The caller must split up such requests into smaller groups of "
32221 #: ../src/guestfs-actions.pod:4874
32223 #| msgid "guestfs_create"
32224 msgid "guestfs_md_create"
32225 msgstr "guestfs_create"
32228 #: ../src/guestfs-actions.pod:4876
32232 #| " guestfs_mkfs_opts (guestfs_h *g,\n"
32233 #| " const char *fstype,\n"
32234 #| " const char *device,\n"
32239 " guestfs_md_create (guestfs_h *g,\n"
32240 " const char *name,\n"
32241 " char *const *devices,\n"
32246 " guestfs_mkfs_opts (guestfs_h *g,\n"
32247 " const char *fstype,\n"
32248 " const char *device,\n"
32253 #: ../src/guestfs-actions.pod:4887
32256 " GUESTFS_MD_CREATE_MISSINGBITMAP, int64_t missingbitmap,\n"
32257 " GUESTFS_MD_CREATE_NRDEVICES, int nrdevices,\n"
32258 " GUESTFS_MD_CREATE_SPARE, int spare,\n"
32259 " GUESTFS_MD_CREATE_CHUNK, int64_t chunk,\n"
32260 " GUESTFS_MD_CREATE_LEVEL, const char *level,\n"
32265 #: ../src/guestfs-actions.pod:4949
32267 #| msgid "guestfs_create"
32268 msgid "guestfs_md_create_va"
32269 msgstr "guestfs_create"
32272 #: ../src/guestfs-actions.pod:4951
32276 #| " guestfs_mkfs_opts_va (guestfs_h *g,\n"
32277 #| " const char *fstype,\n"
32278 #| " const char *device,\n"
32279 #| " va_list args);\n"
32283 " guestfs_md_create_va (guestfs_h *g,\n"
32284 " const char *name,\n"
32285 " char *const *devices,\n"
32286 " va_list args);\n"
32290 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
32291 " const char *fstype,\n"
32292 " const char *device,\n"
32293 " va_list args);\n"
32297 #: ../src/guestfs-actions.pod:4957
32298 msgid "This is the \"va_list variant\" of L</guestfs_md_create>."
32302 #: ../src/guestfs-actions.pod:4961
32304 #| msgid "guestfs_create"
32305 msgid "guestfs_md_create_argv"
32306 msgstr "guestfs_create"
32309 #: ../src/guestfs-actions.pod:4963
32313 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32314 #| " const char *fstype,\n"
32315 #| " const char *device,\n"
32316 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
32320 " guestfs_md_create_argv (guestfs_h *g,\n"
32321 " const char *name,\n"
32322 " char *const *devices,\n"
32323 " const struct guestfs_md_create_argv *optargs);\n"
32327 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32328 " const char *fstype,\n"
32329 " const char *device,\n"
32330 " const struct guestfs_mkfs_opts_argv *optargs);\n"
32334 #: ../src/guestfs-actions.pod:4969
32335 msgid "This is the \"argv variant\" of L</guestfs_md_create>."
32339 #: ../src/guestfs-actions.pod:4973
32341 #| msgid "guestfs_aug_get"
32342 msgid "guestfs_md_detail"
32343 msgstr "guestfs_aug_get"
32346 #: ../src/guestfs-actions.pod:4975
32350 #| " guestfs_aug_get (guestfs_h *g,\n"
32351 #| " const char *augpath);\n"
32355 " guestfs_md_detail (guestfs_h *g,\n"
32356 " const char *md);\n"
32360 " guestfs_aug_get (guestfs_h *g,\n"
32361 " const char *augpath);\n"
32365 #: ../src/guestfs-actions.pod:5012
32367 #| msgid "guestfs_mkdir_p"
32368 msgid "guestfs_md_stop"
32369 msgstr "guestfs_mkdir_p"
32372 #: ../src/guestfs-actions.pod:5014
32376 #| " guestfs_mkdir_p (guestfs_h *g,\n"
32377 #| " const char *path);\n"
32381 " guestfs_md_stop (guestfs_h *g,\n"
32382 " const char *md);\n"
32386 " guestfs_mkdir_p (guestfs_h *g,\n"
32387 " const char *path);\n"
32391 #: ../src/guestfs-actions.pod:5023
32392 msgid "guestfs_mkdir"
32393 msgstr "guestfs_mkdir"
32396 #: ../src/guestfs-actions.pod:5025
32400 " guestfs_mkdir (guestfs_h *g,\n"
32401 " const char *path);\n"
32405 " guestfs_mkdir (guestfs_h *g,\n"
32406 " const char *path);\n"
32410 #: ../src/guestfs-actions.pod:5035
32411 msgid "guestfs_mkdir_mode"
32412 msgstr "guestfs_mkdir_mode"
32415 #: ../src/guestfs-actions.pod:5037
32419 " guestfs_mkdir_mode (guestfs_h *g,\n"
32420 " const char *path,\n"
32425 " guestfs_mkdir_mode (guestfs_h *g,\n"
32426 " const char *path,\n"
32431 #: ../src/guestfs-actions.pod:5049
32432 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
32436 #: ../src/guestfs-actions.pod:5055
32437 msgid "guestfs_mkdir_p"
32438 msgstr "guestfs_mkdir_p"
32441 #: ../src/guestfs-actions.pod:5057
32445 " guestfs_mkdir_p (guestfs_h *g,\n"
32446 " const char *path);\n"
32450 " guestfs_mkdir_p (guestfs_h *g,\n"
32451 " const char *path);\n"
32455 #: ../src/guestfs-actions.pod:5068
32456 msgid "guestfs_mkdtemp"
32457 msgstr "guestfs_mkdtemp"
32460 #: ../src/guestfs-actions.pod:5070
32464 " guestfs_mkdtemp (guestfs_h *g,\n"
32465 " const char *template);\n"
32469 " guestfs_mkdtemp (guestfs_h *g,\n"
32470 " const char *template);\n"
32474 #: ../src/guestfs-actions.pod:5098
32475 msgid "guestfs_mke2fs_J"
32476 msgstr "guestfs_mke2fs_J"
32479 #: ../src/guestfs-actions.pod:5100
32483 " guestfs_mke2fs_J (guestfs_h *g,\n"
32484 " const char *fstype,\n"
32485 " int blocksize,\n"
32486 " const char *device,\n"
32487 " const char *journal);\n"
32491 " guestfs_mke2fs_J (guestfs_h *g,\n"
32492 " const char *fstype,\n"
32493 " int blocksize,\n"
32494 " const char *device,\n"
32495 " const char *journal);\n"
32499 #: ../src/guestfs-actions.pod:5113
32500 msgid "See also C<guestfs_mke2journal>."
32504 #: ../src/guestfs-actions.pod:5117 ../src/guestfs-actions.pod:5135
32505 #: ../src/guestfs-actions.pod:5153 ../src/guestfs-actions.pod:5169
32506 #: ../src/guestfs-actions.pod:5183 ../src/guestfs-actions.pod:5197
32507 #: ../src/guestfs-actions.pod:5256 ../src/guestfs-actions.pod:5533
32508 msgid "(Added in 1.0.68)"
32509 msgstr "(Додано у 1.0.68)"
32512 #: ../src/guestfs-actions.pod:5119
32513 msgid "guestfs_mke2fs_JL"
32514 msgstr "guestfs_mke2fs_JL"
32517 #: ../src/guestfs-actions.pod:5121
32521 " guestfs_mke2fs_JL (guestfs_h *g,\n"
32522 " const char *fstype,\n"
32523 " int blocksize,\n"
32524 " const char *device,\n"
32525 " const char *label);\n"
32529 " guestfs_mke2fs_JL (guestfs_h *g,\n"
32530 " const char *fstype,\n"
32531 " int blocksize,\n"
32532 " const char *device,\n"
32533 " const char *label);\n"
32537 #: ../src/guestfs-actions.pod:5131
32538 msgid "See also C<guestfs_mke2journal_L>."
32542 #: ../src/guestfs-actions.pod:5137
32543 msgid "guestfs_mke2fs_JU"
32544 msgstr "guestfs_mke2fs_JU"
32547 #: ../src/guestfs-actions.pod:5139
32551 " guestfs_mke2fs_JU (guestfs_h *g,\n"
32552 " const char *fstype,\n"
32553 " int blocksize,\n"
32554 " const char *device,\n"
32555 " const char *uuid);\n"
32559 " guestfs_mke2fs_JU (guestfs_h *g,\n"
32560 " const char *fstype,\n"
32561 " int blocksize,\n"
32562 " const char *device,\n"
32563 " const char *uuid);\n"
32567 #: ../src/guestfs-actions.pod:5149
32568 msgid "See also C<guestfs_mke2journal_U>."
32572 #: ../src/guestfs-actions.pod:5155
32573 msgid "guestfs_mke2journal"
32574 msgstr "guestfs_mke2journal"
32577 #: ../src/guestfs-actions.pod:5157
32581 " guestfs_mke2journal (guestfs_h *g,\n"
32582 " int blocksize,\n"
32583 " const char *device);\n"
32587 " guestfs_mke2journal (guestfs_h *g,\n"
32588 " int blocksize,\n"
32589 " const char *device);\n"
32593 #: ../src/guestfs-actions.pod:5171
32594 msgid "guestfs_mke2journal_L"
32595 msgstr "guestfs_mke2journal_L"
32598 #: ../src/guestfs-actions.pod:5173
32602 " guestfs_mke2journal_L (guestfs_h *g,\n"
32603 " int blocksize,\n"
32604 " const char *label,\n"
32605 " const char *device);\n"
32609 " guestfs_mke2journal_L (guestfs_h *g,\n"
32610 " int blocksize,\n"
32611 " const char *label,\n"
32612 " const char *device);\n"
32616 #: ../src/guestfs-actions.pod:5185
32617 msgid "guestfs_mke2journal_U"
32618 msgstr "guestfs_mke2journal_U"
32621 #: ../src/guestfs-actions.pod:5187
32625 " guestfs_mke2journal_U (guestfs_h *g,\n"
32626 " int blocksize,\n"
32627 " const char *uuid,\n"
32628 " const char *device);\n"
32632 " guestfs_mke2journal_U (guestfs_h *g,\n"
32633 " int blocksize,\n"
32634 " const char *uuid,\n"
32635 " const char *device);\n"
32639 #: ../src/guestfs-actions.pod:5199
32640 msgid "guestfs_mkfifo"
32641 msgstr "guestfs_mkfifo"
32644 #: ../src/guestfs-actions.pod:5201
32648 " guestfs_mkfifo (guestfs_h *g,\n"
32650 " const char *path);\n"
32654 " guestfs_mkfifo (guestfs_h *g,\n"
32656 " const char *path);\n"
32660 #: ../src/guestfs-actions.pod:5206
32662 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
32663 "is just a convenient wrapper around C<guestfs_mknod>."
32667 #: ../src/guestfs-actions.pod:5216
32668 msgid "guestfs_mkfs"
32669 msgstr "guestfs_mkfs"
32672 #: ../src/guestfs-actions.pod:5218
32676 " guestfs_mkfs (guestfs_h *g,\n"
32677 " const char *fstype,\n"
32678 " const char *device);\n"
32682 " guestfs_mkfs (guestfs_h *g,\n"
32683 " const char *fstype,\n"
32684 " const char *device);\n"
32688 #: ../src/guestfs-actions.pod:5231
32689 msgid "guestfs_mkfs_b"
32690 msgstr "guestfs_mkfs_b"
32693 #: ../src/guestfs-actions.pod:5233
32697 " guestfs_mkfs_b (guestfs_h *g,\n"
32698 " const char *fstype,\n"
32699 " int blocksize,\n"
32700 " const char *device);\n"
32704 " guestfs_mkfs_b (guestfs_h *g,\n"
32705 " const char *fstype,\n"
32706 " int blocksize,\n"
32707 " const char *device);\n"
32711 #: ../src/guestfs-actions.pod:5239
32713 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
32718 #: ../src/guestfs-actions.pod:5246
32720 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
32721 "block size of the resulting filesystem. Supported block sizes depend on the "
32722 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
32726 #: ../src/guestfs-actions.pod:5258
32727 msgid "guestfs_mkfs_opts"
32728 msgstr "guestfs_mkfs_opts"
32731 #: ../src/guestfs-actions.pod:5260
32735 " guestfs_mkfs_opts (guestfs_h *g,\n"
32736 " const char *fstype,\n"
32737 " const char *device,\n"
32742 " guestfs_mkfs_opts (guestfs_h *g,\n"
32743 " const char *fstype,\n"
32744 " const char *device,\n"
32749 #: ../src/guestfs-actions.pod:5271
32752 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
32753 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
32754 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
32755 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
32760 #: ../src/guestfs-actions.pod:5319
32761 msgid "(Added in 1.7.19)"
32762 msgstr "(Додано у 1.7.19)"
32765 #: ../src/guestfs-actions.pod:5321
32766 msgid "guestfs_mkfs_opts_va"
32767 msgstr "guestfs_mkfs_opts_va"
32770 #: ../src/guestfs-actions.pod:5323
32774 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
32775 " const char *fstype,\n"
32776 " const char *device,\n"
32777 " va_list args);\n"
32781 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
32782 " const char *fstype,\n"
32783 " const char *device,\n"
32784 " va_list args);\n"
32788 #: ../src/guestfs-actions.pod:5329
32789 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
32793 #: ../src/guestfs-actions.pod:5333
32794 msgid "guestfs_mkfs_opts_argv"
32795 msgstr "guestfs_mkfs_opts_argv"
32798 #: ../src/guestfs-actions.pod:5335
32802 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32803 " const char *fstype,\n"
32804 " const char *device,\n"
32805 " const struct guestfs_mkfs_opts_argv *optargs);\n"
32809 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32810 " const char *fstype,\n"
32811 " const char *device,\n"
32812 " const struct guestfs_mkfs_opts_argv *optargs);\n"
32816 #: ../src/guestfs-actions.pod:5341
32817 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
32821 #: ../src/guestfs-actions.pod:5345
32822 msgid "guestfs_mkmountpoint"
32823 msgstr "guestfs_mkmountpoint"
32826 #: ../src/guestfs-actions.pod:5347
32830 " guestfs_mkmountpoint (guestfs_h *g,\n"
32831 " const char *exemptpath);\n"
32835 " guestfs_mkmountpoint (guestfs_h *g,\n"
32836 " const char *exemptpath);\n"
32840 #: ../src/guestfs-actions.pod:5351
32842 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
32843 "that can be used to create extra mountpoints before mounting the first "
32848 #: ../src/guestfs-actions.pod:5375
32850 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
32851 "may get unexpected errors if you try to mix these calls. It is safest to "
32852 "manually unmount filesystems and remove mountpoints after use."
32856 #: ../src/guestfs-actions.pod:5379
32858 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
32859 "first, so for this to work for manual mountpoints, you must ensure that the "
32860 "innermost mountpoints have the longest pathnames, as in the example code "
32865 #: ../src/guestfs-actions.pod:5386
32867 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
32868 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
32869 "can also trigger these issues."
32873 #: ../src/guestfs-actions.pod:5392 ../src/guestfs-actions.pod:5698
32874 #: ../src/guestfs-actions.pod:6725
32875 msgid "(Added in 1.0.62)"
32876 msgstr "(Додано у 1.0.62)"
32879 #: ../src/guestfs-actions.pod:5394
32880 msgid "guestfs_mknod"
32884 #: ../src/guestfs-actions.pod:5396
32888 " guestfs_mknod (guestfs_h *g,\n"
32892 " const char *path);\n"
32897 #: ../src/guestfs-actions.pod:5411
32899 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
32900 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
32901 "regular file). These constants are available in the standard Linux header "
32902 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
32903 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
32904 "the appropriate constant for you."
32908 #: ../src/guestfs-actions.pod:5425
32909 msgid "guestfs_mknod_b"
32913 #: ../src/guestfs-actions.pod:5427
32917 " guestfs_mknod_b (guestfs_h *g,\n"
32921 " const char *path);\n"
32926 #: ../src/guestfs-actions.pod:5434
32928 "This call creates a block device node called C<path> with mode C<mode> and "
32929 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
32930 "wrapper around C<guestfs_mknod>."
32934 #: ../src/guestfs-actions.pod:5444
32935 msgid "guestfs_mknod_c"
32939 #: ../src/guestfs-actions.pod:5446
32943 " guestfs_mknod_c (guestfs_h *g,\n"
32947 " const char *path);\n"
32952 #: ../src/guestfs-actions.pod:5453
32954 "This call creates a char device node called C<path> with mode C<mode> and "
32955 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
32956 "wrapper around C<guestfs_mknod>."
32960 #: ../src/guestfs-actions.pod:5463
32961 msgid "guestfs_mkswap"
32965 #: ../src/guestfs-actions.pod:5465
32969 " guestfs_mkswap (guestfs_h *g,\n"
32970 " const char *device);\n"
32975 #: ../src/guestfs-actions.pod:5475
32976 msgid "guestfs_mkswap_L"
32980 #: ../src/guestfs-actions.pod:5477
32984 " guestfs_mkswap_L (guestfs_h *g,\n"
32985 " const char *label,\n"
32986 " const char *device);\n"
32991 #: ../src/guestfs-actions.pod:5492
32992 msgid "guestfs_mkswap_U"
32996 #: ../src/guestfs-actions.pod:5494
33000 " guestfs_mkswap_U (guestfs_h *g,\n"
33001 " const char *uuid,\n"
33002 " const char *device);\n"
33007 #: ../src/guestfs-actions.pod:5505
33008 msgid "guestfs_mkswap_file"
33012 #: ../src/guestfs-actions.pod:5507
33016 " guestfs_mkswap_file (guestfs_h *g,\n"
33017 " const char *path);\n"
33022 #: ../src/guestfs-actions.pod:5513
33024 "This command just writes a swap file signature to an existing file. To "
33025 "create the file itself, use something like C<guestfs_fallocate>."
33029 #: ../src/guestfs-actions.pod:5520
33030 msgid "guestfs_modprobe"
33034 #: ../src/guestfs-actions.pod:5522
33038 " guestfs_modprobe (guestfs_h *g,\n"
33039 " const char *modulename);\n"
33044 #: ../src/guestfs-actions.pod:5535
33045 msgid "guestfs_mount"
33049 #: ../src/guestfs-actions.pod:5537
33053 " guestfs_mount (guestfs_h *g,\n"
33054 " const char *device,\n"
33055 " const char *mountpoint);\n"
33060 #: ../src/guestfs-actions.pod:5556
33062 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
33063 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
33064 "problems for users. If your program might need to work with older versions "
33065 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
33066 "for the first parameter if you don't want any options)."
33070 #: ../src/guestfs-actions.pod:5567
33071 msgid "guestfs_mount_9p"
33075 #: ../src/guestfs-actions.pod:5569
33079 " guestfs_mount_9p (guestfs_h *g,\n"
33080 " const char *mounttag,\n"
33081 " const char *mountpoint,\n"
33087 #: ../src/guestfs-actions.pod:5580
33090 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
33095 #: ../src/guestfs-actions.pod:5593
33096 msgid "guestfs_mount_9p_va"
33100 #: ../src/guestfs-actions.pod:5595
33104 " guestfs_mount_9p_va (guestfs_h *g,\n"
33105 " const char *mounttag,\n"
33106 " const char *mountpoint,\n"
33107 " va_list args);\n"
33112 #: ../src/guestfs-actions.pod:5601
33113 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
33117 #: ../src/guestfs-actions.pod:5605
33118 msgid "guestfs_mount_9p_argv"
33122 #: ../src/guestfs-actions.pod:5607
33126 " guestfs_mount_9p_argv (guestfs_h *g,\n"
33127 " const char *mounttag,\n"
33128 " const char *mountpoint,\n"
33129 " const struct guestfs_mount_9p_argv *optargs);\n"
33134 #: ../src/guestfs-actions.pod:5613
33135 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
33139 #: ../src/guestfs-actions.pod:5617
33140 msgid "guestfs_mount_loop"
33144 #: ../src/guestfs-actions.pod:5619
33148 " guestfs_mount_loop (guestfs_h *g,\n"
33149 " const char *file,\n"
33150 " const char *mountpoint);\n"
33155 #: ../src/guestfs-actions.pod:5632
33156 msgid "guestfs_mount_options"
33160 #: ../src/guestfs-actions.pod:5634
33164 " guestfs_mount_options (guestfs_h *g,\n"
33165 " const char *options,\n"
33166 " const char *device,\n"
33167 " const char *mountpoint);\n"
33172 #: ../src/guestfs-actions.pod:5640
33174 "This is the same as the C<guestfs_mount> command, but it allows you to set "
33175 "the mount options as for the L<mount(8)> I<-o> flag."
33179 #: ../src/guestfs-actions.pod:5650 ../src/guestfs-actions.pod:5664
33180 #: ../src/guestfs-actions.pod:5681
33181 msgid "(Added in 1.0.10)"
33182 msgstr "(Додано у 1.0.10)"
33185 #: ../src/guestfs-actions.pod:5652
33186 msgid "guestfs_mount_ro"
33190 #: ../src/guestfs-actions.pod:5654
33194 " guestfs_mount_ro (guestfs_h *g,\n"
33195 " const char *device,\n"
33196 " const char *mountpoint);\n"
33201 #: ../src/guestfs-actions.pod:5659
33203 "This is the same as the C<guestfs_mount> command, but it mounts the "
33204 "filesystem with the read-only (I<-o ro>) flag."
33208 #: ../src/guestfs-actions.pod:5666
33209 msgid "guestfs_mount_vfs"
33213 #: ../src/guestfs-actions.pod:5668
33217 " guestfs_mount_vfs (guestfs_h *g,\n"
33218 " const char *options,\n"
33219 " const char *vfstype,\n"
33220 " const char *device,\n"
33221 " const char *mountpoint);\n"
33226 #: ../src/guestfs-actions.pod:5675
33228 "This is the same as the C<guestfs_mount> command, but it allows you to set "
33229 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
33234 #: ../src/guestfs-actions.pod:5683
33235 msgid "guestfs_mountpoints"
33239 #: ../src/guestfs-actions.pod:5685
33243 " guestfs_mountpoints (guestfs_h *g);\n"
33248 #: ../src/guestfs-actions.pod:5688
33250 "This call is similar to C<guestfs_mounts>. That call returns a list of "
33251 "devices. This one returns a hash table (map) of device name to directory "
33252 "where the device is mounted."
33256 #: ../src/guestfs-actions.pod:5700
33257 msgid "guestfs_mounts"
33261 #: ../src/guestfs-actions.pod:5702
33265 " guestfs_mounts (guestfs_h *g);\n"
33270 #: ../src/guestfs-actions.pod:5710
33271 msgid "See also: C<guestfs_mountpoints>"
33275 #: ../src/guestfs-actions.pod:5718
33280 #: ../src/guestfs-actions.pod:5720
33284 " guestfs_mv (guestfs_h *g,\n"
33285 " const char *src,\n"
33286 " const char *dest);\n"
33291 #: ../src/guestfs-actions.pod:5732
33292 msgid "guestfs_ntfs_3g_probe"
33296 #: ../src/guestfs-actions.pod:5734
33300 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
33302 " const char *device);\n"
33307 #: ../src/guestfs-actions.pod:5753
33308 msgid "(Added in 1.0.43)"
33309 msgstr "(Додано у 1.0.43)"
33312 #: ../src/guestfs-actions.pod:5755
33313 msgid "guestfs_ntfsresize"
33317 #: ../src/guestfs-actions.pod:5757
33321 " guestfs_ntfsresize (guestfs_h *g,\n"
33322 " const char *device);\n"
33327 #: ../src/guestfs-actions.pod:5761 ../src/guestfs-actions.pod:5861
33329 "I<This function is deprecated.> In new code, use the L</"
33330 "guestfs_ntfsresize_opts> call instead."
33334 #: ../src/guestfs-actions.pod:5785
33335 msgid "guestfs_ntfsresize_opts"
33339 #: ../src/guestfs-actions.pod:5787
33343 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
33344 " const char *device,\n"
33350 #: ../src/guestfs-actions.pod:5797
33353 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
33354 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
33359 #: ../src/guestfs-actions.pod:5817
33361 "After the resize operation, the filesystem is always marked as requiring a "
33362 "consistency check (for safety). You have to boot into Windows to perform "
33363 "this check and clear this condition. If you I<don't> set the C<force> "
33364 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
33365 "times on a single filesystem without booting into Windows between each "
33370 #: ../src/guestfs-actions.pod:5832
33371 msgid "guestfs_ntfsresize_opts_va"
33375 #: ../src/guestfs-actions.pod:5834
33379 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
33380 " const char *device,\n"
33381 " va_list args);\n"
33386 #: ../src/guestfs-actions.pod:5839
33387 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
33391 #: ../src/guestfs-actions.pod:5843
33392 msgid "guestfs_ntfsresize_opts_argv"
33396 #: ../src/guestfs-actions.pod:5845
33400 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
33401 " const char *device,\n"
33402 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
33407 #: ../src/guestfs-actions.pod:5850
33408 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
33412 #: ../src/guestfs-actions.pod:5854
33413 msgid "guestfs_ntfsresize_size"
33417 #: ../src/guestfs-actions.pod:5856
33421 " guestfs_ntfsresize_size (guestfs_h *g,\n"
33422 " const char *device,\n"
33423 " int64_t size);\n"
33428 #: ../src/guestfs-actions.pod:5868
33430 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
33431 "to specify the new size (in bytes) explicitly."
33435 #: ../src/guestfs-actions.pod:5873 ../src/guestfs-actions.pod:6332
33436 #: ../src/guestfs-actions.pod:6405 ../src/guestfs-actions.pod:6673
33437 #: ../src/guestfs-actions.pod:8422
33438 msgid "(Added in 1.3.14)"
33439 msgstr "(Додано у 1.3.14)"
33442 #: ../src/guestfs-actions.pod:5875
33443 msgid "guestfs_part_add"
33447 #: ../src/guestfs-actions.pod:5877
33451 " guestfs_part_add (guestfs_h *g,\n"
33452 " const char *device,\n"
33453 " const char *prlogex,\n"
33454 " int64_t startsect,\n"
33455 " int64_t endsect);\n"
33460 #: ../src/guestfs-actions.pod:5884
33462 "This command adds a partition to C<device>. If there is no partition table "
33463 "on the device, call C<guestfs_part_init> first."
33467 #: ../src/guestfs-actions.pod:5896
33469 "Creating a partition which covers the whole disk is not so easy. Use "
33470 "C<guestfs_part_disk> to do that."
33474 #: ../src/guestfs-actions.pod:5901 ../src/guestfs-actions.pod:5936
33475 #: ../src/guestfs-actions.pod:5989 ../src/guestfs-actions.pod:6073
33476 #: ../src/guestfs-actions.pod:6111 ../src/guestfs-actions.pod:6130
33477 #: ../src/guestfs-actions.pod:6170
33478 msgid "(Added in 1.0.78)"
33479 msgstr "(Додано у 1.0.78)"
33482 #: ../src/guestfs-actions.pod:5903
33483 msgid "guestfs_part_del"
33487 #: ../src/guestfs-actions.pod:5905
33491 " guestfs_part_del (guestfs_h *g,\n"
33492 " const char *device,\n"
33498 #: ../src/guestfs-actions.pod:5920
33499 msgid "guestfs_part_disk"
33503 #: ../src/guestfs-actions.pod:5922
33507 " guestfs_part_disk (guestfs_h *g,\n"
33508 " const char *device,\n"
33509 " const char *parttype);\n"
33514 #: ../src/guestfs-actions.pod:5927
33516 "This command is simply a combination of C<guestfs_part_init> followed by "
33517 "C<guestfs_part_add> to create a single primary partition covering the whole "
33522 #: ../src/guestfs-actions.pod:5931
33524 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
33525 "possible values are described in C<guestfs_part_init>."
33529 #: ../src/guestfs-actions.pod:5938
33530 msgid "guestfs_part_get_bootable"
33534 #: ../src/guestfs-actions.pod:5940
33538 " guestfs_part_get_bootable (guestfs_h *g,\n"
33539 " const char *device,\n"
33545 #: ../src/guestfs-actions.pod:5948
33546 msgid "See also C<guestfs_part_set_bootable>."
33550 #: ../src/guestfs-actions.pod:5954
33551 msgid "guestfs_part_get_mbr_id"
33555 #: ../src/guestfs-actions.pod:5956
33559 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
33560 " const char *device,\n"
33566 #: ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:6146
33568 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
33569 "undefined results for other partition table types (see "
33570 "C<guestfs_part_get_parttype>)."
33574 #: ../src/guestfs-actions.pod:5972
33575 msgid "guestfs_part_get_parttype"
33579 #: ../src/guestfs-actions.pod:5974
33583 " guestfs_part_get_parttype (guestfs_h *g,\n"
33584 " const char *device);\n"
33589 #: ../src/guestfs-actions.pod:5981
33591 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
33592 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
33593 "possible, although unusual. See C<guestfs_part_init> for a full list."
33597 #: ../src/guestfs-actions.pod:5991
33598 msgid "guestfs_part_init"
33602 #: ../src/guestfs-actions.pod:5993
33606 " guestfs_part_init (guestfs_h *g,\n"
33607 " const char *device,\n"
33608 " const char *parttype);\n"
33613 #: ../src/guestfs-actions.pod:6002
33615 "Initially there are no partitions. Following this, you should call "
33616 "C<guestfs_part_add> for each partition required."
33620 #: ../src/guestfs-actions.pod:6075
33621 msgid "guestfs_part_list"
33622 msgstr "guestfs_part_list"
33625 #: ../src/guestfs-actions.pod:6077
33628 " struct guestfs_partition_list *\n"
33629 " guestfs_part_list (guestfs_h *g,\n"
33630 " const char *device);\n"
33633 " struct guestfs_partition_list *\n"
33634 " guestfs_part_list (guestfs_h *g,\n"
33635 " const char *device);\n"
33639 #: ../src/guestfs-actions.pod:6094
33641 "Start of the partition I<in bytes>. To get sectors you have to divide by "
33642 "the device's sector size, see C<guestfs_blockdev_getss>."
33646 #: ../src/guestfs-actions.pod:6107
33648 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
33649 "was an error. I<The caller must call C<guestfs_free_partition_list> after "
33654 #: ../src/guestfs-actions.pod:6113
33655 msgid "guestfs_part_set_bootable"
33659 #: ../src/guestfs-actions.pod:6115
33663 " guestfs_part_set_bootable (guestfs_h *g,\n"
33664 " const char *device,\n"
33666 " int bootable);\n"
33671 #: ../src/guestfs-actions.pod:6132
33672 msgid "guestfs_part_set_mbr_id"
33676 #: ../src/guestfs-actions.pod:6134
33680 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
33681 " const char *device,\n"
33688 #: ../src/guestfs-actions.pod:6154
33689 msgid "guestfs_part_set_name"
33693 #: ../src/guestfs-actions.pod:6156
33697 " guestfs_part_set_name (guestfs_h *g,\n"
33698 " const char *device,\n"
33700 " const char *name);\n"
33705 #: ../src/guestfs-actions.pod:6172
33706 msgid "guestfs_part_to_dev"
33710 #: ../src/guestfs-actions.pod:6174
33714 " guestfs_part_to_dev (guestfs_h *g,\n"
33715 " const char *partition);\n"
33720 #: ../src/guestfs-actions.pod:6182 ../src/guestfs-actions.pod:6201
33722 "The named partition must exist, for example as a string returned from "
33723 "C<guestfs_list_partitions>."
33727 #: ../src/guestfs-actions.pod:6185
33728 msgid "See also C<guestfs_part_to_partnum>."
33732 #: ../src/guestfs-actions.pod:6192
33733 msgid "guestfs_part_to_partnum"
33737 #: ../src/guestfs-actions.pod:6194
33741 " guestfs_part_to_partnum (guestfs_h *g,\n"
33742 " const char *partition);\n"
33747 #: ../src/guestfs-actions.pod:6204
33748 msgid "See also C<guestfs_part_to_dev>."
33752 #: ../src/guestfs-actions.pod:6210
33753 msgid "guestfs_ping_daemon"
33757 #: ../src/guestfs-actions.pod:6212
33761 " guestfs_ping_daemon (guestfs_h *g);\n"
33766 #: ../src/guestfs-actions.pod:6224
33767 msgid "guestfs_pread"
33771 #: ../src/guestfs-actions.pod:6226
33775 " guestfs_pread (guestfs_h *g,\n"
33776 " const char *path,\n"
33778 " int64_t offset,\n"
33779 " size_t *size_r);\n"
33784 #: ../src/guestfs-actions.pod:6239
33785 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
33789 #: ../src/guestfs-actions.pod:6250
33790 msgid "guestfs_pread_device"
33794 #: ../src/guestfs-actions.pod:6252
33798 " guestfs_pread_device (guestfs_h *g,\n"
33799 " const char *device,\n"
33801 " int64_t offset,\n"
33802 " size_t *size_r);\n"
33807 #: ../src/guestfs-actions.pod:6265
33808 msgid "See also C<guestfs_pread>."
33812 #: ../src/guestfs-actions.pod:6274
33813 msgid "(Added in 1.5.21)"
33814 msgstr "(Додано у 1.5.21)"
33817 #: ../src/guestfs-actions.pod:6276
33818 msgid "guestfs_pvcreate"
33822 #: ../src/guestfs-actions.pod:6278
33826 " guestfs_pvcreate (guestfs_h *g,\n"
33827 " const char *device);\n"
33832 #: ../src/guestfs-actions.pod:6290
33833 msgid "guestfs_pvremove"
33837 #: ../src/guestfs-actions.pod:6292
33841 " guestfs_pvremove (guestfs_h *g,\n"
33842 " const char *device);\n"
33847 #: ../src/guestfs-actions.pod:6307
33848 msgid "guestfs_pvresize"
33852 #: ../src/guestfs-actions.pod:6309
33856 " guestfs_pvresize (guestfs_h *g,\n"
33857 " const char *device);\n"
33862 #: ../src/guestfs-actions.pod:6320
33863 msgid "guestfs_pvresize_size"
33867 #: ../src/guestfs-actions.pod:6322
33871 " guestfs_pvresize_size (guestfs_h *g,\n"
33872 " const char *device,\n"
33873 " int64_t size);\n"
33878 #: ../src/guestfs-actions.pod:6327
33880 "This command is the same as C<guestfs_pvresize> except that it allows you to "
33881 "specify the new size (in bytes) explicitly."
33885 #: ../src/guestfs-actions.pod:6334
33886 msgid "guestfs_pvs"
33890 #: ../src/guestfs-actions.pod:6336
33894 " guestfs_pvs (guestfs_h *g);\n"
33899 #: ../src/guestfs-actions.pod:6345
33900 msgid "See also C<guestfs_pvs_full>."
33904 #: ../src/guestfs-actions.pod:6353
33905 msgid "guestfs_pvs_full"
33909 #: ../src/guestfs-actions.pod:6355
33912 " struct guestfs_lvm_pv_list *\n"
33913 " guestfs_pvs_full (guestfs_h *g);\n"
33918 #: ../src/guestfs-actions.pod:6361
33920 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
33921 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
33925 #: ../src/guestfs-actions.pod:6367
33926 msgid "guestfs_pvuuid"
33930 #: ../src/guestfs-actions.pod:6369
33934 " guestfs_pvuuid (guestfs_h *g,\n"
33935 " const char *device);\n"
33940 #: ../src/guestfs-actions.pod:6380
33941 msgid "guestfs_pwrite"
33945 #: ../src/guestfs-actions.pod:6382
33949 " guestfs_pwrite (guestfs_h *g,\n"
33950 " const char *path,\n"
33951 " const char *content,\n"
33952 " size_t content_size,\n"
33953 " int64_t offset);\n"
33958 #: ../src/guestfs-actions.pod:6398
33959 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
33963 #: ../src/guestfs-actions.pod:6407
33964 msgid "guestfs_pwrite_device"
33968 #: ../src/guestfs-actions.pod:6409
33972 " guestfs_pwrite_device (guestfs_h *g,\n"
33973 " const char *device,\n"
33974 " const char *content,\n"
33975 " size_t content_size,\n"
33976 " int64_t offset);\n"
33981 #: ../src/guestfs-actions.pod:6424
33982 msgid "See also C<guestfs_pwrite>."
33986 #: ../src/guestfs-actions.pod:6431
33987 msgid "(Added in 1.5.20)"
33988 msgstr "(Додано у 1.5.20)"
33991 #: ../src/guestfs-actions.pod:6433
33992 msgid "guestfs_read_file"
33996 #: ../src/guestfs-actions.pod:6435
34000 " guestfs_read_file (guestfs_h *g,\n"
34001 " const char *path,\n"
34002 " size_t *size_r);\n"
34007 #: ../src/guestfs-actions.pod:6443
34009 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
34010 "embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
34011 "function is limited in the total size of file that can be handled."
34015 #: ../src/guestfs-actions.pod:6455
34016 msgid "(Added in 1.0.63)"
34017 msgstr "(Додано у 1.0.63)"
34020 #: ../src/guestfs-actions.pod:6457
34021 msgid "guestfs_read_lines"
34025 #: ../src/guestfs-actions.pod:6459
34029 " guestfs_read_lines (guestfs_h *g,\n"
34030 " const char *path);\n"
34035 #: ../src/guestfs-actions.pod:6468
34037 "Note that this function cannot correctly handle binary files (specifically, "
34038 "files containing C<\\0> character which is treated as end of line). For "
34039 "those you need to use the C<guestfs_read_file> function which has a more "
34040 "complex interface."
34044 #: ../src/guestfs-actions.pod:6479
34045 msgid "guestfs_readdir"
34049 #: ../src/guestfs-actions.pod:6481
34052 " struct guestfs_dirent_list *\n"
34053 " guestfs_readdir (guestfs_h *g,\n"
34054 " const char *dir);\n"
34059 #: ../src/guestfs-actions.pod:6535
34061 "This function is primarily intended for use by programs. To get a simple "
34062 "list of names, use C<guestfs_ls>. To get a printable directory for human "
34063 "consumption, use C<guestfs_ll>."
34067 #: ../src/guestfs-actions.pod:6539
34069 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
34070 "was an error. I<The caller must call C<guestfs_free_dirent_list> after use>."
34074 #: ../src/guestfs-actions.pod:6545
34075 msgid "guestfs_readlink"
34079 #: ../src/guestfs-actions.pod:6547
34083 " guestfs_readlink (guestfs_h *g,\n"
34084 " const char *path);\n"
34089 #: ../src/guestfs-actions.pod:6558
34090 msgid "guestfs_readlinklist"
34094 #: ../src/guestfs-actions.pod:6560
34098 " guestfs_readlinklist (guestfs_h *g,\n"
34099 " const char *path,\n"
34100 " char *const *names);\n"
34105 #: ../src/guestfs-actions.pod:6593
34106 msgid "guestfs_realpath"
34110 #: ../src/guestfs-actions.pod:6595
34114 " guestfs_realpath (guestfs_h *g,\n"
34115 " const char *path);\n"
34120 #: ../src/guestfs-actions.pod:6607
34121 msgid "guestfs_removexattr"
34125 #: ../src/guestfs-actions.pod:6609
34129 " guestfs_removexattr (guestfs_h *g,\n"
34130 " const char *xattr,\n"
34131 " const char *path);\n"
34136 #: ../src/guestfs-actions.pod:6617
34137 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
34141 #: ../src/guestfs-actions.pod:6623
34142 msgid "guestfs_resize2fs"
34146 #: ../src/guestfs-actions.pod:6625
34150 " guestfs_resize2fs (guestfs_h *g,\n"
34151 " const char *device);\n"
34156 #: ../src/guestfs-actions.pod:6632
34158 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
34159 "C<device> before calling this command. For unknown reasons C<resize2fs> "
34160 "sometimes gives an error about this and sometimes not. In any case, it is "
34161 "always safe to call C<guestfs_e2fsck_f> before calling this function."
34165 #: ../src/guestfs-actions.pod:6642
34166 msgid "guestfs_resize2fs_M"
34170 #: ../src/guestfs-actions.pod:6644
34174 " guestfs_resize2fs_M (guestfs_h *g,\n"
34175 " const char *device);\n"
34180 #: ../src/guestfs-actions.pod:6648
34182 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
34183 "resized to its minimum size. This works like the I<-M> option to the "
34184 "C<resize2fs> command."
34188 #: ../src/guestfs-actions.pod:6652
34190 "To get the resulting size of the filesystem you should call "
34191 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
34192 "These two numbers, multiplied together, give the resulting size of the "
34193 "minimal filesystem in bytes."
34197 #: ../src/guestfs-actions.pod:6661
34198 msgid "guestfs_resize2fs_size"
34202 #: ../src/guestfs-actions.pod:6663
34206 " guestfs_resize2fs_size (guestfs_h *g,\n"
34207 " const char *device,\n"
34208 " int64_t size);\n"
34213 #: ../src/guestfs-actions.pod:6668
34215 "This command is the same as C<guestfs_resize2fs> except that it allows you "
34216 "to specify the new size (in bytes) explicitly."
34220 #: ../src/guestfs-actions.pod:6675
34225 #: ../src/guestfs-actions.pod:6677
34229 " guestfs_rm (guestfs_h *g,\n"
34230 " const char *path);\n"
34235 #: ../src/guestfs-actions.pod:6687
34236 msgid "guestfs_rm_rf"
34240 #: ../src/guestfs-actions.pod:6689
34244 " guestfs_rm_rf (guestfs_h *g,\n"
34245 " const char *path);\n"
34250 #: ../src/guestfs-actions.pod:6701
34251 msgid "guestfs_rmdir"
34255 #: ../src/guestfs-actions.pod:6703
34259 " guestfs_rmdir (guestfs_h *g,\n"
34260 " const char *path);\n"
34265 #: ../src/guestfs-actions.pod:6713
34266 msgid "guestfs_rmmountpoint"
34270 #: ../src/guestfs-actions.pod:6715
34274 " guestfs_rmmountpoint (guestfs_h *g,\n"
34275 " const char *exemptpath);\n"
34280 #: ../src/guestfs-actions.pod:6719
34282 "This calls removes a mountpoint that was previously created with "
34283 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
34287 #: ../src/guestfs-actions.pod:6727
34288 msgid "guestfs_scrub_device"
34292 #: ../src/guestfs-actions.pod:6729
34296 " guestfs_scrub_device (guestfs_h *g,\n"
34297 " const char *device);\n"
34302 #: ../src/guestfs-actions.pod:6741 ../src/guestfs-actions.pod:6759
34303 #: ../src/guestfs-actions.pod:6778
34304 msgid "(Added in 1.0.52)"
34305 msgstr "(Додано у 1.0.52)"
34308 #: ../src/guestfs-actions.pod:6743
34309 msgid "guestfs_scrub_file"
34313 #: ../src/guestfs-actions.pod:6745
34317 " guestfs_scrub_file (guestfs_h *g,\n"
34318 " const char *file);\n"
34323 #: ../src/guestfs-actions.pod:6761
34324 msgid "guestfs_scrub_freespace"
34328 #: ../src/guestfs-actions.pod:6763
34332 " guestfs_scrub_freespace (guestfs_h *g,\n"
34333 " const char *dir);\n"
34338 #: ../src/guestfs-actions.pod:6767
34340 "This command creates the directory C<dir> and then fills it with files until "
34341 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
34342 "and deletes them. The intention is to scrub any free space on the partition "
34343 "containing C<dir>."
34347 #: ../src/guestfs-actions.pod:6780
34348 msgid "guestfs_set_append"
34352 #: ../src/guestfs-actions.pod:6782
34356 " guestfs_set_append (guestfs_h *g,\n"
34357 " const char *append);\n"
34362 #: ../src/guestfs-actions.pod:6799
34363 msgid "guestfs_set_attach_method"
34367 #: ../src/guestfs-actions.pod:6801
34371 " guestfs_set_attach_method (guestfs_h *g,\n"
34372 " const char *attachmethod);\n"
34377 #: ../src/guestfs-actions.pod:6829
34378 msgid "guestfs_set_autosync"
34382 #: ../src/guestfs-actions.pod:6831
34386 " guestfs_set_autosync (guestfs_h *g,\n"
34387 " int autosync);\n"
34392 #: ../src/guestfs-actions.pod:6847
34393 msgid "guestfs_set_direct"
34397 #: ../src/guestfs-actions.pod:6849
34401 " guestfs_set_direct (guestfs_h *g,\n"
34407 #: ../src/guestfs-actions.pod:6857
34409 "One consequence of this is that log messages aren't caught by the library "
34410 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
34415 #: ../src/guestfs-actions.pod:6870
34416 msgid "guestfs_set_e2label"
34420 #: ../src/guestfs-actions.pod:6872
34424 " guestfs_set_e2label (guestfs_h *g,\n"
34425 " const char *device,\n"
34426 " const char *label);\n"
34431 #: ../src/guestfs-actions.pod:6881
34433 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
34434 "the existing label on a filesystem."
34438 #: ../src/guestfs-actions.pod:6888
34439 msgid "guestfs_set_e2uuid"
34443 #: ../src/guestfs-actions.pod:6890
34447 " guestfs_set_e2uuid (guestfs_h *g,\n"
34448 " const char *device,\n"
34449 " const char *uuid);\n"
34454 #: ../src/guestfs-actions.pod:6900
34456 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
34457 "the existing UUID of a filesystem."
34461 #: ../src/guestfs-actions.pod:6907
34462 msgid "guestfs_set_memsize"
34466 #: ../src/guestfs-actions.pod:6909
34470 " guestfs_set_memsize (guestfs_h *g,\n"
34476 #: ../src/guestfs-actions.pod:6913
34478 "This sets the memory size in megabytes allocated to the qemu subprocess. "
34479 "This only has any effect if called before C<guestfs_launch>."
34483 #: ../src/guestfs-actions.pod:6928
34484 msgid "guestfs_set_network"
34488 #: ../src/guestfs-actions.pod:6930
34492 " guestfs_set_network (guestfs_h *g,\n"
34498 #: ../src/guestfs-actions.pod:6940
34500 "You must call this before calling C<guestfs_launch>, otherwise it has no "
34505 #: ../src/guestfs-actions.pod:6947
34506 msgid "guestfs_set_path"
34510 #: ../src/guestfs-actions.pod:6949
34514 " guestfs_set_path (guestfs_h *g,\n"
34515 " const char *searchpath);\n"
34520 #: ../src/guestfs-actions.pod:6964
34521 msgid "guestfs_set_pgroup"
34525 #: ../src/guestfs-actions.pod:6966
34529 " guestfs_set_pgroup (guestfs_h *g,\n"
34535 #: ../src/guestfs-actions.pod:6983
34536 msgid "guestfs_set_qemu"
34540 #: ../src/guestfs-actions.pod:6985
34544 " guestfs_set_qemu (guestfs_h *g,\n"
34545 " const char *qemu);\n"
34550 #: ../src/guestfs-actions.pod:7011
34551 msgid "guestfs_set_recovery_proc"
34555 #: ../src/guestfs-actions.pod:7013
34559 " guestfs_set_recovery_proc (guestfs_h *g,\n"
34560 " int recoveryproc);\n"
34565 #: ../src/guestfs-actions.pod:7017
34567 "If this is called with the parameter C<false> then C<guestfs_launch> does "
34568 "not create a recovery process. The purpose of the recovery process is to "
34569 "stop runaway qemu processes in the case where the main program aborts "
34574 #: ../src/guestfs-actions.pod:7022
34576 "This only has any effect if called before C<guestfs_launch>, and the default "
34581 #: ../src/guestfs-actions.pod:7035
34582 msgid "guestfs_set_selinux"
34586 #: ../src/guestfs-actions.pod:7037
34590 " guestfs_set_selinux (guestfs_h *g,\n"
34596 #: ../src/guestfs-actions.pod:7054
34597 msgid "guestfs_set_smp"
34601 #: ../src/guestfs-actions.pod:7056
34605 " guestfs_set_smp (guestfs_h *g,\n"
34611 #: ../src/guestfs-actions.pod:7064
34612 msgid "This function must be called before C<guestfs_launch>."
34616 #: ../src/guestfs-actions.pod:7070
34617 msgid "guestfs_set_trace"
34621 #: ../src/guestfs-actions.pod:7072
34625 " guestfs_set_trace (guestfs_h *g,\n"
34631 #: ../src/guestfs-actions.pod:7086
34633 "Trace messages are normally sent to C<stderr>, unless you register a "
34634 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
34638 #: ../src/guestfs-actions.pod:7094
34639 msgid "guestfs_set_verbose"
34643 #: ../src/guestfs-actions.pod:7096
34647 " guestfs_set_verbose (guestfs_h *g,\n"
34653 #: ../src/guestfs-actions.pod:7105
34655 "Verbose messages are normally sent to C<stderr>, unless you register a "
34656 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
34660 #: ../src/guestfs-actions.pod:7113
34661 msgid "guestfs_setcon"
34665 #: ../src/guestfs-actions.pod:7115
34669 " guestfs_setcon (guestfs_h *g,\n"
34670 " const char *context);\n"
34675 #: ../src/guestfs-actions.pod:7128
34676 msgid "guestfs_setxattr"
34680 #: ../src/guestfs-actions.pod:7130
34684 " guestfs_setxattr (guestfs_h *g,\n"
34685 " const char *xattr,\n"
34686 " const char *val,\n"
34688 " const char *path);\n"
34693 #: ../src/guestfs-actions.pod:7141
34694 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
34698 #: ../src/guestfs-actions.pod:7147
34699 msgid "guestfs_sfdisk"
34703 #: ../src/guestfs-actions.pod:7149
34707 " guestfs_sfdisk (guestfs_h *g,\n"
34708 " const char *device,\n"
34712 " char *const *lines);\n"
34717 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7198
34718 #: ../src/guestfs-actions.pod:7229
34720 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
34725 #: ../src/guestfs-actions.pod:7184
34727 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
34731 #: ../src/guestfs-actions.pod:7191
34732 msgid "guestfs_sfdiskM"
34736 #: ../src/guestfs-actions.pod:7193
34740 " guestfs_sfdiskM (guestfs_h *g,\n"
34741 " const char *device,\n"
34742 " char *const *lines);\n"
34747 #: ../src/guestfs-actions.pod:7205
34749 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
34750 "partition sizes are specified in megabytes only (rounded to the nearest "
34751 "cylinder) and you don't need to specify the cyls, heads and sectors "
34752 "parameters which were rarely if ever used anyway."
34756 #: ../src/guestfs-actions.pod:7211
34758 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
34759 "C<guestfs_part_disk>"
34763 #: ../src/guestfs-actions.pod:7218
34764 msgid "guestfs_sfdisk_N"
34768 #: ../src/guestfs-actions.pod:7220
34772 " guestfs_sfdisk_N (guestfs_h *g,\n"
34773 " const char *device,\n"
34778 " const char *line);\n"
34783 #: ../src/guestfs-actions.pod:7239
34785 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
34786 "for the cyls/heads/sectors parameters."
34790 #: ../src/guestfs-actions.pod:7242
34791 msgid "See also: C<guestfs_part_add>"
34795 #: ../src/guestfs-actions.pod:7248
34796 msgid "guestfs_sfdisk_disk_geometry"
34800 #: ../src/guestfs-actions.pod:7250
34804 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
34805 " const char *device);\n"
34810 #: ../src/guestfs-actions.pod:7254
34812 "This displays the disk geometry of C<device> read from the partition table. "
34813 "Especially in the case where the underlying block device has been resized, "
34814 "this can be different from the kernel's idea of the geometry (see "
34815 "C<guestfs_sfdisk_kernel_geometry>)."
34819 #: ../src/guestfs-actions.pod:7267
34820 msgid "guestfs_sfdisk_kernel_geometry"
34824 #: ../src/guestfs-actions.pod:7269
34828 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
34829 " const char *device);\n"
34834 #: ../src/guestfs-actions.pod:7283
34835 msgid "guestfs_sfdisk_l"
34839 #: ../src/guestfs-actions.pod:7285
34843 " guestfs_sfdisk_l (guestfs_h *g,\n"
34844 " const char *device);\n"
34849 #: ../src/guestfs-actions.pod:7289
34851 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
34856 #: ../src/guestfs-actions.pod:7300
34857 msgid "See also: C<guestfs_part_list>"
34861 #: ../src/guestfs-actions.pod:7307
34866 #: ../src/guestfs-actions.pod:7309
34870 " guestfs_sh (guestfs_h *g,\n"
34871 " const char *command);\n"
34876 #: ../src/guestfs-actions.pod:7316
34877 msgid "This is like C<guestfs_command>, but passes the command to:"
34881 #: ../src/guestfs-actions.pod:7324
34882 msgid "All the provisos about C<guestfs_command> apply to this call."
34886 #: ../src/guestfs-actions.pod:7331
34887 msgid "guestfs_sh_lines"
34891 #: ../src/guestfs-actions.pod:7333
34895 " guestfs_sh_lines (guestfs_h *g,\n"
34896 " const char *command);\n"
34901 #: ../src/guestfs-actions.pod:7337
34903 "This is the same as C<guestfs_sh>, but splits the result into a list of "
34908 #: ../src/guestfs-actions.pod:7340
34909 msgid "See also: C<guestfs_command_lines>"
34913 #: ../src/guestfs-actions.pod:7348
34914 msgid "guestfs_sleep"
34918 #: ../src/guestfs-actions.pod:7350
34922 " guestfs_sleep (guestfs_h *g,\n"
34928 #: ../src/guestfs-actions.pod:7358
34929 msgid "(Added in 1.0.41)"
34930 msgstr "(Додано у 1.0.41)"
34933 #: ../src/guestfs-actions.pod:7360 ../src/guestfs-structs.pod:109
34934 msgid "guestfs_stat"
34938 #: ../src/guestfs-actions.pod:7362
34941 " struct guestfs_stat *\n"
34942 " guestfs_stat (guestfs_h *g,\n"
34943 " const char *path);\n"
34948 #: ../src/guestfs-actions.pod:7376 ../src/guestfs-structs.pod:135
34949 msgid "guestfs_statvfs"
34953 #: ../src/guestfs-actions.pod:7378
34956 " struct guestfs_statvfs *\n"
34957 " guestfs_statvfs (guestfs_h *g,\n"
34958 " const char *path);\n"
34963 #: ../src/guestfs-actions.pod:7388
34965 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
34966 "error. I<The caller must call C<guestfs_free_statvfs> after use>."
34970 #: ../src/guestfs-actions.pod:7394
34971 msgid "guestfs_strings"
34975 #: ../src/guestfs-actions.pod:7396
34979 " guestfs_strings (guestfs_h *g,\n"
34980 " const char *path);\n"
34985 #: ../src/guestfs-actions.pod:7412
34986 msgid "guestfs_strings_e"
34990 #: ../src/guestfs-actions.pod:7414
34994 " guestfs_strings_e (guestfs_h *g,\n"
34995 " const char *encoding,\n"
34996 " const char *path);\n"
35001 #: ../src/guestfs-actions.pod:7419
35003 "This is like the C<guestfs_strings> command, but allows you to specify the "
35004 "encoding of strings that are looked for in the source file C<path>."
35008 #: ../src/guestfs-actions.pod:7429
35010 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
35011 "ISO-8859-X (this is what C<guestfs_strings> uses)."
35015 #: ../src/guestfs-actions.pod:7467
35016 msgid "guestfs_swapoff_device"
35020 #: ../src/guestfs-actions.pod:7469
35024 " guestfs_swapoff_device (guestfs_h *g,\n"
35025 " const char *device);\n"
35030 #: ../src/guestfs-actions.pod:7473
35032 "This command disables the libguestfs appliance swap device or partition "
35033 "named C<device>. See C<guestfs_swapon_device>."
35037 #: ../src/guestfs-actions.pod:7481
35038 msgid "guestfs_swapoff_file"
35042 #: ../src/guestfs-actions.pod:7483
35046 " guestfs_swapoff_file (guestfs_h *g,\n"
35047 " const char *file);\n"
35052 #: ../src/guestfs-actions.pod:7493
35053 msgid "guestfs_swapoff_label"
35057 #: ../src/guestfs-actions.pod:7495
35061 " guestfs_swapoff_label (guestfs_h *g,\n"
35062 " const char *label);\n"
35067 #: ../src/guestfs-actions.pod:7506
35068 msgid "guestfs_swapoff_uuid"
35072 #: ../src/guestfs-actions.pod:7508
35076 " guestfs_swapoff_uuid (guestfs_h *g,\n"
35077 " const char *uuid);\n"
35082 #: ../src/guestfs-actions.pod:7519
35083 msgid "guestfs_swapon_device"
35087 #: ../src/guestfs-actions.pod:7521
35091 " guestfs_swapon_device (guestfs_h *g,\n"
35092 " const char *device);\n"
35097 #: ../src/guestfs-actions.pod:7525
35099 "This command enables the libguestfs appliance to use the swap device or "
35100 "partition named C<device>. The increased memory is made available for all "
35101 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
35105 #: ../src/guestfs-actions.pod:7541
35106 msgid "guestfs_swapon_file"
35110 #: ../src/guestfs-actions.pod:7543
35114 " guestfs_swapon_file (guestfs_h *g,\n"
35115 " const char *file);\n"
35120 #: ../src/guestfs-actions.pod:7547
35122 "This command enables swap to a file. See C<guestfs_swapon_device> for other "
35127 #: ../src/guestfs-actions.pod:7554
35128 msgid "guestfs_swapon_label"
35132 #: ../src/guestfs-actions.pod:7556
35136 " guestfs_swapon_label (guestfs_h *g,\n"
35137 " const char *label);\n"
35142 #: ../src/guestfs-actions.pod:7560
35144 "This command enables swap to a labeled swap partition. See "
35145 "C<guestfs_swapon_device> for other notes."
35149 #: ../src/guestfs-actions.pod:7567
35150 msgid "guestfs_swapon_uuid"
35154 #: ../src/guestfs-actions.pod:7569
35158 " guestfs_swapon_uuid (guestfs_h *g,\n"
35159 " const char *uuid);\n"
35164 #: ../src/guestfs-actions.pod:7573
35166 "This command enables swap to a swap partition with the given UUID. See "
35167 "C<guestfs_swapon_device> for other notes."
35171 #: ../src/guestfs-actions.pod:7580
35172 msgid "guestfs_sync"
35176 #: ../src/guestfs-actions.pod:7582
35180 " guestfs_sync (guestfs_h *g);\n"
35185 #: ../src/guestfs-actions.pod:7595
35186 msgid "guestfs_tail"
35190 #: ../src/guestfs-actions.pod:7597
35194 " guestfs_tail (guestfs_h *g,\n"
35195 " const char *path);\n"
35200 #: ../src/guestfs-actions.pod:7613
35201 msgid "guestfs_tail_n"
35205 #: ../src/guestfs-actions.pod:7615
35209 " guestfs_tail_n (guestfs_h *g,\n"
35211 " const char *path);\n"
35216 #: ../src/guestfs-actions.pod:7637
35217 msgid "guestfs_tar_in"
35221 #: ../src/guestfs-actions.pod:7639
35225 " guestfs_tar_in (guestfs_h *g,\n"
35226 " const char *tarfile,\n"
35227 " const char *directory);\n"
35232 #: ../src/guestfs-actions.pod:7647
35234 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
35238 #: ../src/guestfs-actions.pod:7652 ../src/guestfs-actions.pod:7669
35239 #: ../src/guestfs-actions.pod:7685 ../src/guestfs-actions.pod:7701
35240 msgid "(Added in 1.0.3)"
35241 msgstr "(Додано у 1.0.3)"
35244 #: ../src/guestfs-actions.pod:7654
35245 msgid "guestfs_tar_out"
35249 #: ../src/guestfs-actions.pod:7656
35253 " guestfs_tar_out (guestfs_h *g,\n"
35254 " const char *directory,\n"
35255 " const char *tarfile);\n"
35260 #: ../src/guestfs-actions.pod:7664
35262 "To download a compressed tarball, use C<guestfs_tgz_out> or "
35263 "C<guestfs_txz_out>."
35267 #: ../src/guestfs-actions.pod:7671
35268 msgid "guestfs_tgz_in"
35272 #: ../src/guestfs-actions.pod:7673
35276 " guestfs_tgz_in (guestfs_h *g,\n"
35277 " const char *tarball,\n"
35278 " const char *directory);\n"
35283 #: ../src/guestfs-actions.pod:7681
35284 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
35288 #: ../src/guestfs-actions.pod:7687
35289 msgid "guestfs_tgz_out"
35293 #: ../src/guestfs-actions.pod:7689
35297 " guestfs_tgz_out (guestfs_h *g,\n"
35298 " const char *directory,\n"
35299 " const char *tarball);\n"
35304 #: ../src/guestfs-actions.pod:7697
35305 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
35309 #: ../src/guestfs-actions.pod:7703
35310 msgid "guestfs_touch"
35314 #: ../src/guestfs-actions.pod:7705
35318 " guestfs_touch (guestfs_h *g,\n"
35319 " const char *path);\n"
35324 #: ../src/guestfs-actions.pod:7720
35325 msgid "guestfs_truncate"
35329 #: ../src/guestfs-actions.pod:7722
35333 " guestfs_truncate (guestfs_h *g,\n"
35334 " const char *path);\n"
35339 #: ../src/guestfs-actions.pod:7733
35340 msgid "guestfs_truncate_size"
35344 #: ../src/guestfs-actions.pod:7735
35348 " guestfs_truncate_size (guestfs_h *g,\n"
35349 " const char *path,\n"
35350 " int64_t size);\n"
35355 #: ../src/guestfs-actions.pod:7743
35357 "If the current file size is less than C<size> then the file is extended to "
35358 "the required size with zero bytes. This creates a sparse file (ie. disk "
35359 "blocks are not allocated for the file until you write to it). To create a "
35360 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
35364 #: ../src/guestfs-actions.pod:7753
35366 #| msgid "guestfs_mke2fs_J"
35367 msgid "guestfs_tune2fs"
35368 msgstr "guestfs_mke2fs_J"
35371 #: ../src/guestfs-actions.pod:7755
35375 #| " guestfs_lvresize (guestfs_h *g,\n"
35376 #| " const char *device,\n"
35377 #| " int mbytes);\n"
35381 " guestfs_tune2fs (guestfs_h *g,\n"
35382 " const char *device,\n"
35387 " guestfs_lvresize (guestfs_h *g,\n"
35388 " const char *device,\n"
35393 #: ../src/guestfs-actions.pod:7765
35396 " GUESTFS_TUNE2FS_FORCE, int force,\n"
35397 " GUESTFS_TUNE2FS_MAXMOUNTCOUNT, int maxmountcount,\n"
35398 " GUESTFS_TUNE2FS_MOUNTCOUNT, int mountcount,\n"
35399 " GUESTFS_TUNE2FS_ERRORBEHAVIOR, const char *errorbehavior,\n"
35400 " GUESTFS_TUNE2FS_GROUP, int64_t group,\n"
35401 " GUESTFS_TUNE2FS_INTERVALBETWEENCHECKS, int intervalbetweenchecks,\n"
35402 " GUESTFS_TUNE2FS_RESERVEDBLOCKSPERCENTAGE, int reservedblockspercentage,\n"
35403 " GUESTFS_TUNE2FS_LASTMOUNTEDDIRECTORY, const char *lastmounteddirectory,\n"
35404 " GUESTFS_TUNE2FS_RESERVEDBLOCKSCOUNT, int64_t reservedblockscount,\n"
35405 " GUESTFS_TUNE2FS_USER, int64_t user,\n"
35410 #: ../src/guestfs-actions.pod:7845
35412 "To get the current values of filesystem parameters, see "
35413 "C<guestfs_tune2fs_l>. For precise details of how tune2fs works, see the "
35414 "L<tune2fs(8)> man page."
35418 #: ../src/guestfs-actions.pod:7853
35420 #| msgid "guestfs_mke2fs_J"
35421 msgid "guestfs_tune2fs_va"
35422 msgstr "guestfs_mke2fs_J"
35425 #: ../src/guestfs-actions.pod:7855
35429 #| " guestfs_lvresize (guestfs_h *g,\n"
35430 #| " const char *device,\n"
35431 #| " int mbytes);\n"
35435 " guestfs_tune2fs_va (guestfs_h *g,\n"
35436 " const char *device,\n"
35437 " va_list args);\n"
35441 " guestfs_lvresize (guestfs_h *g,\n"
35442 " const char *device,\n"
35447 #: ../src/guestfs-actions.pod:7860
35448 msgid "This is the \"va_list variant\" of L</guestfs_tune2fs>."
35452 #: ../src/guestfs-actions.pod:7864
35454 #| msgid "guestfs_mke2fs_J"
35455 msgid "guestfs_tune2fs_argv"
35456 msgstr "guestfs_mke2fs_J"
35459 #: ../src/guestfs-actions.pod:7866
35463 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
35464 #| " const char *fstype,\n"
35465 #| " const char *device,\n"
35466 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
35470 " guestfs_tune2fs_argv (guestfs_h *g,\n"
35471 " const char *device,\n"
35472 " const struct guestfs_tune2fs_argv *optargs);\n"
35476 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
35477 " const char *fstype,\n"
35478 " const char *device,\n"
35479 " const struct guestfs_mkfs_opts_argv *optargs);\n"
35483 #: ../src/guestfs-actions.pod:7871
35484 msgid "This is the \"argv variant\" of L</guestfs_tune2fs>."
35488 #: ../src/guestfs-actions.pod:7875
35489 msgid "guestfs_tune2fs_l"
35493 #: ../src/guestfs-actions.pod:7877
35497 " guestfs_tune2fs_l (guestfs_h *g,\n"
35498 " const char *device);\n"
35503 #: ../src/guestfs-actions.pod:7897
35504 msgid "guestfs_txz_in"
35508 #: ../src/guestfs-actions.pod:7899
35512 " guestfs_txz_in (guestfs_h *g,\n"
35513 " const char *tarball,\n"
35514 " const char *directory);\n"
35519 #: ../src/guestfs-actions.pod:7911
35520 msgid "guestfs_txz_out"
35524 #: ../src/guestfs-actions.pod:7913
35528 " guestfs_txz_out (guestfs_h *g,\n"
35529 " const char *directory,\n"
35530 " const char *tarball);\n"
35535 #: ../src/guestfs-actions.pod:7925
35536 msgid "guestfs_umask"
35540 #: ../src/guestfs-actions.pod:7927
35544 " guestfs_umask (guestfs_h *g,\n"
35550 #: ../src/guestfs-actions.pod:7943
35552 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
35553 "C<guestfs_mkdir>."
35557 #: ../src/guestfs-actions.pod:7952
35558 msgid "guestfs_umount"
35562 #: ../src/guestfs-actions.pod:7954
35566 " guestfs_umount (guestfs_h *g,\n"
35567 " const char *pathordevice);\n"
35572 #: ../src/guestfs-actions.pod:7966
35573 msgid "guestfs_umount_all"
35577 #: ../src/guestfs-actions.pod:7968
35581 " guestfs_umount_all (guestfs_h *g);\n"
35586 #: ../src/guestfs-actions.pod:7979
35587 msgid "guestfs_upload"
35591 #: ../src/guestfs-actions.pod:7981
35595 " guestfs_upload (guestfs_h *g,\n"
35596 " const char *filename,\n"
35597 " const char *remotefilename);\n"
35602 #: ../src/guestfs-actions.pod:7991
35603 msgid "See also C<guestfs_download>."
35607 #: ../src/guestfs-actions.pod:8002
35608 msgid "guestfs_upload_offset"
35612 #: ../src/guestfs-actions.pod:8004
35616 " guestfs_upload_offset (guestfs_h *g,\n"
35617 " const char *filename,\n"
35618 " const char *remotefilename,\n"
35619 " int64_t offset);\n"
35624 #: ../src/guestfs-actions.pod:8020
35626 "Note that there is no limit on the amount of data that can be uploaded with "
35627 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
35628 "full amount unless an error occurs."
35632 #: ../src/guestfs-actions.pod:8025
35633 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
35637 #: ../src/guestfs-actions.pod:8036
35638 msgid "guestfs_utimens"
35642 #: ../src/guestfs-actions.pod:8038
35646 " guestfs_utimens (guestfs_h *g,\n"
35647 " const char *path,\n"
35648 " int64_t atsecs,\n"
35649 " int64_t atnsecs,\n"
35650 " int64_t mtsecs,\n"
35651 " int64_t mtnsecs);\n"
35656 #: ../src/guestfs-actions.pod:8067 ../src/guestfs-structs.pod:175
35657 msgid "guestfs_version"
35661 #: ../src/guestfs-actions.pod:8069
35664 " struct guestfs_version *\n"
35665 " guestfs_version (guestfs_h *g);\n"
35670 #: ../src/guestfs-actions.pod:8097
35672 "I<Note:> Don't use this call to test for availability of features. In "
35673 "enterprise distributions we backport features from later versions into "
35674 "earlier versions, making this an unreliable way to test for features. Use "
35675 "C<guestfs_available> instead."
35679 #: ../src/guestfs-actions.pod:8103
35681 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
35682 "error. I<The caller must call C<guestfs_free_version> after use>."
35686 #: ../src/guestfs-actions.pod:8107
35687 msgid "(Added in 1.0.58)"
35688 msgstr "(Додано у 1.0.58)"
35691 #: ../src/guestfs-actions.pod:8109
35692 msgid "guestfs_vfs_label"
35696 #: ../src/guestfs-actions.pod:8111
35700 " guestfs_vfs_label (guestfs_h *g,\n"
35701 " const char *device);\n"
35706 #: ../src/guestfs-actions.pod:8120
35707 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
35711 #: ../src/guestfs-actions.pod:8125 ../src/guestfs-actions.pod:8162
35712 msgid "(Added in 1.3.18)"
35713 msgstr "(Додано у 1.3.18)"
35716 #: ../src/guestfs-actions.pod:8127
35717 msgid "guestfs_vfs_type"
35721 #: ../src/guestfs-actions.pod:8129
35725 " guestfs_vfs_type (guestfs_h *g,\n"
35726 " const char *device);\n"
35731 #: ../src/guestfs-actions.pod:8146
35732 msgid "guestfs_vfs_uuid"
35736 #: ../src/guestfs-actions.pod:8148
35740 " guestfs_vfs_uuid (guestfs_h *g,\n"
35741 " const char *device);\n"
35746 #: ../src/guestfs-actions.pod:8157
35747 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
35751 #: ../src/guestfs-actions.pod:8164
35752 msgid "guestfs_vg_activate"
35756 #: ../src/guestfs-actions.pod:8166
35760 " guestfs_vg_activate (guestfs_h *g,\n"
35762 " char *const *volgroups);\n"
35767 #: ../src/guestfs-actions.pod:8183
35768 msgid "guestfs_vg_activate_all"
35772 #: ../src/guestfs-actions.pod:8185
35776 " guestfs_vg_activate_all (guestfs_h *g,\n"
35777 " int activate);\n"
35782 #: ../src/guestfs-actions.pod:8198
35783 msgid "guestfs_vgcreate"
35787 #: ../src/guestfs-actions.pod:8200
35791 " guestfs_vgcreate (guestfs_h *g,\n"
35792 " const char *volgroup,\n"
35793 " char *const *physvols);\n"
35798 #: ../src/guestfs-actions.pod:8212
35799 msgid "guestfs_vglvuuids"
35803 #: ../src/guestfs-actions.pod:8214
35807 " guestfs_vglvuuids (guestfs_h *g,\n"
35808 " const char *vgname);\n"
35813 #: ../src/guestfs-actions.pod:8221
35815 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
35816 "associate logical volumes and volume groups."
35820 #: ../src/guestfs-actions.pod:8224
35821 msgid "See also C<guestfs_vgpvuuids>."
35825 #: ../src/guestfs-actions.pod:8232
35826 msgid "guestfs_vgpvuuids"
35830 #: ../src/guestfs-actions.pod:8234
35834 " guestfs_vgpvuuids (guestfs_h *g,\n"
35835 " const char *vgname);\n"
35840 #: ../src/guestfs-actions.pod:8241
35842 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
35843 "associate physical volumes and volume groups."
35847 #: ../src/guestfs-actions.pod:8244
35848 msgid "See also C<guestfs_vglvuuids>."
35852 #: ../src/guestfs-actions.pod:8252
35853 msgid "guestfs_vgremove"
35857 #: ../src/guestfs-actions.pod:8254
35861 " guestfs_vgremove (guestfs_h *g,\n"
35862 " const char *vgname);\n"
35867 #: ../src/guestfs-actions.pod:8267
35868 msgid "guestfs_vgrename"
35872 #: ../src/guestfs-actions.pod:8269
35876 " guestfs_vgrename (guestfs_h *g,\n"
35877 " const char *volgroup,\n"
35878 " const char *newvolgroup);\n"
35883 #: ../src/guestfs-actions.pod:8280
35884 msgid "guestfs_vgs"
35888 #: ../src/guestfs-actions.pod:8282
35892 " guestfs_vgs (guestfs_h *g);\n"
35897 #: ../src/guestfs-actions.pod:8291
35898 msgid "See also C<guestfs_vgs_full>."
35902 #: ../src/guestfs-actions.pod:8299
35903 msgid "guestfs_vgs_full"
35907 #: ../src/guestfs-actions.pod:8301
35910 " struct guestfs_lvm_vg_list *\n"
35911 " guestfs_vgs_full (guestfs_h *g);\n"
35916 #: ../src/guestfs-actions.pod:8307
35918 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
35919 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
35923 #: ../src/guestfs-actions.pod:8313
35924 msgid "guestfs_vgscan"
35928 #: ../src/guestfs-actions.pod:8315
35932 " guestfs_vgscan (guestfs_h *g);\n"
35937 #: ../src/guestfs-actions.pod:8325
35938 msgid "guestfs_vguuid"
35942 #: ../src/guestfs-actions.pod:8327
35946 " guestfs_vguuid (guestfs_h *g,\n"
35947 " const char *vgname);\n"
35952 #: ../src/guestfs-actions.pod:8338
35953 msgid "guestfs_wait_ready"
35957 #: ../src/guestfs-actions.pod:8340
35961 " guestfs_wait_ready (guestfs_h *g);\n"
35966 #: ../src/guestfs-actions.pod:8343
35968 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
35973 #: ../src/guestfs-actions.pod:8350
35974 msgid "This function is a no op."
35978 #: ../src/guestfs-actions.pod:8352
35980 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
35981 "calling C<guestfs_launch> to wait for the launch to complete. However this "
35982 "is no longer necessary because C<guestfs_launch> now does the waiting."
35986 #: ../src/guestfs-actions.pod:8357
35988 "If you see any calls to this function in code then you can just remove them, "
35989 "unless you want to retain compatibility with older versions of the API."
35993 #: ../src/guestfs-actions.pod:8365
35994 msgid "guestfs_wc_c"
35998 #: ../src/guestfs-actions.pod:8367
36002 " guestfs_wc_c (guestfs_h *g,\n"
36003 " const char *path);\n"
36008 #: ../src/guestfs-actions.pod:8378
36009 msgid "guestfs_wc_l"
36013 #: ../src/guestfs-actions.pod:8380
36017 " guestfs_wc_l (guestfs_h *g,\n"
36018 " const char *path);\n"
36023 #: ../src/guestfs-actions.pod:8391
36024 msgid "guestfs_wc_w"
36028 #: ../src/guestfs-actions.pod:8393
36032 " guestfs_wc_w (guestfs_h *g,\n"
36033 " const char *path);\n"
36038 #: ../src/guestfs-actions.pod:8404
36039 msgid "guestfs_write"
36043 #: ../src/guestfs-actions.pod:8406
36047 " guestfs_write (guestfs_h *g,\n"
36048 " const char *path,\n"
36049 " const char *content,\n"
36050 " size_t content_size);\n"
36055 #: ../src/guestfs-actions.pod:8415
36056 msgid "See also C<guestfs_write_append>."
36060 #: ../src/guestfs-actions.pod:8424
36061 msgid "guestfs_write_append"
36065 #: ../src/guestfs-actions.pod:8426
36069 " guestfs_write_append (guestfs_h *g,\n"
36070 " const char *path,\n"
36071 " const char *content,\n"
36072 " size_t content_size);\n"
36077 #: ../src/guestfs-actions.pod:8435
36078 msgid "See also C<guestfs_write>."
36082 #: ../src/guestfs-actions.pod:8444
36083 msgid "guestfs_write_file"
36084 msgstr "guestfs_write_file"
36087 #: ../src/guestfs-actions.pod:8446
36091 " guestfs_write_file (guestfs_h *g,\n"
36092 " const char *path,\n"
36093 " const char *content,\n"
36098 " guestfs_write_file (guestfs_h *g,\n"
36099 " const char *path,\n"
36100 " const char *content,\n"
36105 #: ../src/guestfs-actions.pod:8452
36107 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
36112 #: ../src/guestfs-actions.pod:8477
36113 msgid "guestfs_zegrep"
36114 msgstr "guestfs_zegrep"
36117 #: ../src/guestfs-actions.pod:8479
36121 " guestfs_zegrep (guestfs_h *g,\n"
36122 " const char *regex,\n"
36123 " const char *path);\n"
36127 " guestfs_zegrep (guestfs_h *g,\n"
36128 " const char *regex,\n"
36129 " const char *path);\n"
36133 #: ../src/guestfs-actions.pod:8496
36134 msgid "guestfs_zegrepi"
36135 msgstr "guestfs_zegrepi"
36138 #: ../src/guestfs-actions.pod:8498
36142 " guestfs_zegrepi (guestfs_h *g,\n"
36143 " const char *regex,\n"
36144 " const char *path);\n"
36148 " guestfs_zegrepi (guestfs_h *g,\n"
36149 " const char *regex,\n"
36150 " const char *path);\n"
36154 #: ../src/guestfs-actions.pod:8515
36155 msgid "guestfs_zero"
36156 msgstr "guestfs_zero"
36159 #: ../src/guestfs-actions.pod:8517
36163 " guestfs_zero (guestfs_h *g,\n"
36164 " const char *device);\n"
36168 " guestfs_zero (guestfs_h *g,\n"
36169 " const char *device);\n"
36173 #: ../src/guestfs-actions.pod:8531
36175 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
36176 "C<guestfs_is_zero_device>"
36180 #: ../src/guestfs-actions.pod:8543
36181 msgid "guestfs_zero_device"
36182 msgstr "guestfs_zero_device"
36185 #: ../src/guestfs-actions.pod:8545
36189 " guestfs_zero_device (guestfs_h *g,\n"
36190 " const char *device);\n"
36194 " guestfs_zero_device (guestfs_h *g,\n"
36195 " const char *device);\n"
36199 #: ../src/guestfs-actions.pod:8549
36201 "This command writes zeroes over the entire C<device>. Compare with "
36202 "C<guestfs_zero> which just zeroes the first few blocks of a device."
36206 #: ../src/guestfs-actions.pod:8564
36207 msgid "(Added in 1.3.1)"
36208 msgstr "(Додано у 1.3.1)"
36211 #: ../src/guestfs-actions.pod:8566
36212 msgid "guestfs_zerofree"
36213 msgstr "guestfs_zerofree"
36216 #: ../src/guestfs-actions.pod:8568
36220 " guestfs_zerofree (guestfs_h *g,\n"
36221 " const char *device);\n"
36225 " guestfs_zerofree (guestfs_h *g,\n"
36226 " const char *device);\n"
36230 #: ../src/guestfs-actions.pod:8587
36231 msgid "guestfs_zfgrep"
36232 msgstr "guestfs_zfgrep"
36235 #: ../src/guestfs-actions.pod:8589
36239 " guestfs_zfgrep (guestfs_h *g,\n"
36240 " const char *pattern,\n"
36241 " const char *path);\n"
36245 " guestfs_zfgrep (guestfs_h *g,\n"
36246 " const char *pattern,\n"
36247 " const char *path);\n"
36251 #: ../src/guestfs-actions.pod:8606
36252 msgid "guestfs_zfgrepi"
36253 msgstr "guestfs_zfgrepi"
36256 #: ../src/guestfs-actions.pod:8608
36260 " guestfs_zfgrepi (guestfs_h *g,\n"
36261 " const char *pattern,\n"
36262 " const char *path);\n"
36266 " guestfs_zfgrepi (guestfs_h *g,\n"
36267 " const char *pattern,\n"
36268 " const char *path);\n"
36272 #: ../src/guestfs-actions.pod:8625
36273 msgid "guestfs_zfile"
36274 msgstr "guestfs_zfile"
36277 #: ../src/guestfs-actions.pod:8627
36281 " guestfs_zfile (guestfs_h *g,\n"
36282 " const char *meth,\n"
36283 " const char *path);\n"
36287 " guestfs_zfile (guestfs_h *g,\n"
36288 " const char *meth,\n"
36289 " const char *path);\n"
36293 #: ../src/guestfs-actions.pod:8632
36295 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
36300 #: ../src/guestfs-actions.pod:8644
36302 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
36307 #: ../src/guestfs-actions.pod:8652
36308 msgid "guestfs_zgrep"
36309 msgstr "guestfs_zgrep"
36312 #: ../src/guestfs-actions.pod:8654
36316 " guestfs_zgrep (guestfs_h *g,\n"
36317 " const char *regex,\n"
36318 " const char *path);\n"
36322 " guestfs_zgrep (guestfs_h *g,\n"
36323 " const char *regex,\n"
36324 " const char *path);\n"
36328 #: ../src/guestfs-actions.pod:8671
36329 msgid "guestfs_zgrepi"
36330 msgstr "guestfs_zgrepi"
36333 #: ../src/guestfs-actions.pod:8673
36337 " guestfs_zgrepi (guestfs_h *g,\n"
36338 " const char *regex,\n"
36339 " const char *path);\n"
36343 " guestfs_zgrepi (guestfs_h *g,\n"
36344 " const char *regex,\n"
36345 " const char *path);\n"
36349 #: ../src/guestfs-availability.pod:3
36354 #: ../src/guestfs-availability.pod:5
36356 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
36357 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
36358 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
36359 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
36360 "L</guestfs_aug_save> L</guestfs_aug_set>"
36364 #: ../src/guestfs-availability.pod:21
36369 #: ../src/guestfs-availability.pod:23
36370 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
36374 #: ../src/guestfs-availability.pod:26
36379 #: ../src/guestfs-availability.pod:28
36380 msgid "The following functions: L</guestfs_grub_install>"
36384 #: ../src/guestfs-availability.pod:31
36386 msgstr "B<inotify>"
36389 #: ../src/guestfs-availability.pod:33
36391 "The following functions: L</guestfs_inotify_add_watch> L</"
36392 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
36393 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
36397 #: ../src/guestfs-availability.pod:41
36398 msgid "B<linuxfsuuid>"
36399 msgstr "B<linuxfsuuid>"
36402 #: ../src/guestfs-availability.pod:43
36404 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
36405 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
36409 #: ../src/guestfs-availability.pod:50
36410 msgid "B<linuxmodules>"
36411 msgstr "B<linuxmodules>"
36414 #: ../src/guestfs-availability.pod:52
36415 msgid "The following functions: L</guestfs_modprobe>"
36419 #: ../src/guestfs-availability.pod:55
36420 msgid "B<linuxxattrs>"
36421 msgstr "B<linuxxattrs>"
36424 #: ../src/guestfs-availability.pod:57
36426 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
36427 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
36428 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
36429 "guestfs_setxattr>"
36433 #: ../src/guestfs-availability.pod:68
36438 #: ../src/guestfs-availability.pod:70
36440 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
36441 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
36442 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
36446 #: ../src/guestfs-availability.pod:79
36451 #: ../src/guestfs-availability.pod:81
36453 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
36454 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
36455 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
36456 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
36457 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
36458 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
36459 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
36463 #: ../src/guestfs-availability.pod:104
36468 #: ../src/guestfs-availability.pod:106
36470 "The following functions: L</guestfs_md_create> L</guestfs_md_detail> L</"
36475 #: ../src/guestfs-availability.pod:111
36480 #: ../src/guestfs-availability.pod:113
36482 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
36483 "guestfs_mknod_b> L</guestfs_mknod_c>"
36487 #: ../src/guestfs-availability.pod:119
36492 #: ../src/guestfs-availability.pod:121
36493 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
36497 #: ../src/guestfs-availability.pod:124
36498 msgid "B<ntfsprogs>"
36499 msgstr "B<ntfsprogs>"
36502 #: ../src/guestfs-availability.pod:126
36504 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
36505 "L</guestfs_ntfsresize_size>"
36509 #: ../src/guestfs-availability.pod:131
36510 msgid "B<realpath>"
36511 msgstr "B<realpath>"
36514 #: ../src/guestfs-availability.pod:133
36515 msgid "The following functions: L</guestfs_realpath>"
36519 #: ../src/guestfs-availability.pod:136
36524 #: ../src/guestfs-availability.pod:138
36526 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
36527 "guestfs_scrub_freespace>"
36531 #: ../src/guestfs-availability.pod:143
36533 msgstr "B<selinux>"
36536 #: ../src/guestfs-availability.pod:145
36537 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
36541 #: ../src/guestfs-availability.pod:149
36546 #: ../src/guestfs-availability.pod:151
36547 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
36551 #: ../src/guestfs-availability.pod:155
36552 msgid "B<zerofree>"
36553 msgstr "B<zerofree>"
36556 #: ../src/guestfs-availability.pod:157
36557 msgid "The following functions: L</guestfs_zerofree>"
36561 #: ../src/guestfs-structs.pod:1
36562 msgid "guestfs_int_bool"
36566 #: ../src/guestfs-structs.pod:3
36569 " struct guestfs_int_bool {\n"
36577 #: ../src/guestfs-structs.pod:8
36580 " struct guestfs_int_bool_list {\n"
36581 " uint32_t len; /* Number of elements in list. */\n"
36582 " struct guestfs_int_bool *val; /* Elements. */\n"
36588 #: ../src/guestfs-structs.pod:13
36591 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
36592 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
36597 #: ../src/guestfs-structs.pod:16
36598 msgid "guestfs_lvm_pv"
36602 #: ../src/guestfs-structs.pod:18
36605 " struct guestfs_lvm_pv {\n"
36606 " char *pv_name;\n"
36607 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
36608 " char pv_uuid[32];\n"
36610 " uint64_t pv_size;\n"
36611 " uint64_t dev_size;\n"
36612 " uint64_t pv_free;\n"
36613 " uint64_t pv_used;\n"
36614 " char *pv_attr;\n"
36615 " int64_t pv_pe_count;\n"
36616 " int64_t pv_pe_alloc_count;\n"
36617 " char *pv_tags;\n"
36618 " uint64_t pe_start;\n"
36619 " int64_t pv_mda_count;\n"
36620 " uint64_t pv_mda_free;\n"
36626 #: ../src/guestfs-structs.pod:36
36629 " struct guestfs_lvm_pv_list {\n"
36630 " uint32_t len; /* Number of elements in list. */\n"
36631 " struct guestfs_lvm_pv *val; /* Elements. */\n"
36637 #: ../src/guestfs-structs.pod:41
36640 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
36641 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
36646 #: ../src/guestfs-structs.pod:44
36647 msgid "guestfs_lvm_vg"
36651 #: ../src/guestfs-structs.pod:46
36654 " struct guestfs_lvm_vg {\n"
36655 " char *vg_name;\n"
36656 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
36657 " char vg_uuid[32];\n"
36659 " char *vg_attr;\n"
36660 " uint64_t vg_size;\n"
36661 " uint64_t vg_free;\n"
36662 " char *vg_sysid;\n"
36663 " uint64_t vg_extent_size;\n"
36664 " int64_t vg_extent_count;\n"
36665 " int64_t vg_free_count;\n"
36666 " int64_t max_lv;\n"
36667 " int64_t max_pv;\n"
36668 " int64_t pv_count;\n"
36669 " int64_t lv_count;\n"
36670 " int64_t snap_count;\n"
36671 " int64_t vg_seqno;\n"
36672 " char *vg_tags;\n"
36673 " int64_t vg_mda_count;\n"
36674 " uint64_t vg_mda_free;\n"
36680 #: ../src/guestfs-structs.pod:69
36683 " struct guestfs_lvm_vg_list {\n"
36684 " uint32_t len; /* Number of elements in list. */\n"
36685 " struct guestfs_lvm_vg *val; /* Elements. */\n"
36691 #: ../src/guestfs-structs.pod:74
36694 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
36695 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
36700 #: ../src/guestfs-structs.pod:77
36701 msgid "guestfs_lvm_lv"
36705 #: ../src/guestfs-structs.pod:79
36708 " struct guestfs_lvm_lv {\n"
36709 " char *lv_name;\n"
36710 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
36711 " char lv_uuid[32];\n"
36712 " char *lv_attr;\n"
36713 " int64_t lv_major;\n"
36714 " int64_t lv_minor;\n"
36715 " int64_t lv_kernel_major;\n"
36716 " int64_t lv_kernel_minor;\n"
36717 " uint64_t lv_size;\n"
36718 " int64_t seg_count;\n"
36720 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
36721 " float snap_percent;\n"
36722 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
36723 " float copy_percent;\n"
36724 " char *move_pv;\n"
36725 " char *lv_tags;\n"
36726 " char *mirror_log;\n"
36727 " char *modules;\n"
36733 #: ../src/guestfs-structs.pod:101
36736 " struct guestfs_lvm_lv_list {\n"
36737 " uint32_t len; /* Number of elements in list. */\n"
36738 " struct guestfs_lvm_lv *val; /* Elements. */\n"
36744 #: ../src/guestfs-structs.pod:106
36747 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
36748 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
36753 #: ../src/guestfs-structs.pod:111
36756 " struct guestfs_stat {\n"
36760 " int64_t nlink;\n"
36765 " int64_t blksize;\n"
36766 " int64_t blocks;\n"
36767 " int64_t atime;\n"
36768 " int64_t mtime;\n"
36769 " int64_t ctime;\n"
36775 #: ../src/guestfs-structs.pod:127
36778 " struct guestfs_stat_list {\n"
36779 " uint32_t len; /* Number of elements in list. */\n"
36780 " struct guestfs_stat *val; /* Elements. */\n"
36786 #: ../src/guestfs-structs.pod:132
36789 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
36790 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
36795 #: ../src/guestfs-structs.pod:137
36798 " struct guestfs_statvfs {\n"
36799 " int64_t bsize;\n"
36800 " int64_t frsize;\n"
36801 " int64_t blocks;\n"
36802 " int64_t bfree;\n"
36803 " int64_t bavail;\n"
36804 " int64_t files;\n"
36805 " int64_t ffree;\n"
36806 " int64_t favail;\n"
36809 " int64_t namemax;\n"
36815 #: ../src/guestfs-structs.pod:151
36818 " struct guestfs_statvfs_list {\n"
36819 " uint32_t len; /* Number of elements in list. */\n"
36820 " struct guestfs_statvfs *val; /* Elements. */\n"
36826 #: ../src/guestfs-structs.pod:156
36829 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
36830 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
36835 #: ../src/guestfs-structs.pod:159
36836 msgid "guestfs_dirent"
36840 #: ../src/guestfs-structs.pod:161
36843 " struct guestfs_dirent {\n"
36852 #: ../src/guestfs-structs.pod:167
36855 " struct guestfs_dirent_list {\n"
36856 " uint32_t len; /* Number of elements in list. */\n"
36857 " struct guestfs_dirent *val; /* Elements. */\n"
36863 #: ../src/guestfs-structs.pod:172
36866 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
36867 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
36872 #: ../src/guestfs-structs.pod:177
36875 " struct guestfs_version {\n"
36876 " int64_t major;\n"
36877 " int64_t minor;\n"
36878 " int64_t release;\n"
36885 #: ../src/guestfs-structs.pod:184
36888 " struct guestfs_version_list {\n"
36889 " uint32_t len; /* Number of elements in list. */\n"
36890 " struct guestfs_version *val; /* Elements. */\n"
36896 #: ../src/guestfs-structs.pod:189
36899 " void guestfs_free_version (struct guestfs_free_version *);\n"
36900 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
36905 #: ../src/guestfs-structs.pod:192
36906 msgid "guestfs_xattr"
36910 #: ../src/guestfs-structs.pod:194
36913 " struct guestfs_xattr {\n"
36914 " char *attrname;\n"
36915 " /* The next two fields describe a byte array. */\n"
36916 " uint32_t attrval_len;\n"
36917 " char *attrval;\n"
36923 #: ../src/guestfs-structs.pod:201
36926 " struct guestfs_xattr_list {\n"
36927 " uint32_t len; /* Number of elements in list. */\n"
36928 " struct guestfs_xattr *val; /* Elements. */\n"
36934 #: ../src/guestfs-structs.pod:206
36937 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
36938 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
36943 #: ../src/guestfs-structs.pod:209
36944 msgid "guestfs_inotify_event"
36948 #: ../src/guestfs-structs.pod:211
36951 " struct guestfs_inotify_event {\n"
36952 " int64_t in_wd;\n"
36953 " uint32_t in_mask;\n"
36954 " uint32_t in_cookie;\n"
36955 " char *in_name;\n"
36961 #: ../src/guestfs-structs.pod:218
36964 " struct guestfs_inotify_event_list {\n"
36965 " uint32_t len; /* Number of elements in list. */\n"
36966 " struct guestfs_inotify_event *val; /* Elements. */\n"
36972 #: ../src/guestfs-structs.pod:223
36975 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
36976 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
36981 #: ../src/guestfs-structs.pod:226
36982 msgid "guestfs_partition"
36986 #: ../src/guestfs-structs.pod:228
36989 " struct guestfs_partition {\n"
36990 " int32_t part_num;\n"
36991 " uint64_t part_start;\n"
36992 " uint64_t part_end;\n"
36993 " uint64_t part_size;\n"
36999 #: ../src/guestfs-structs.pod:235
37002 " struct guestfs_partition_list {\n"
37003 " uint32_t len; /* Number of elements in list. */\n"
37004 " struct guestfs_partition *val; /* Elements. */\n"
37010 #: ../src/guestfs-structs.pod:240
37013 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
37014 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
37019 #: ../src/guestfs-structs.pod:243
37020 msgid "guestfs_application"
37024 #: ../src/guestfs-structs.pod:245
37027 " struct guestfs_application {\n"
37028 " char *app_name;\n"
37029 " char *app_display_name;\n"
37030 " int32_t app_epoch;\n"
37031 " char *app_version;\n"
37032 " char *app_release;\n"
37033 " char *app_install_path;\n"
37034 " char *app_trans_path;\n"
37035 " char *app_publisher;\n"
37036 " char *app_url;\n"
37037 " char *app_source_package;\n"
37038 " char *app_summary;\n"
37039 " char *app_description;\n"
37045 #: ../src/guestfs-structs.pod:260
37048 " struct guestfs_application_list {\n"
37049 " uint32_t len; /* Number of elements in list. */\n"
37050 " struct guestfs_application *val; /* Elements. */\n"
37056 #: ../src/guestfs-structs.pod:265
37059 " void guestfs_free_application (struct guestfs_free_application *);\n"
37060 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
37065 #: ../src/guestfs.pod:5
37066 msgid "guestfs - Library for accessing and modifying virtual machine images"
37068 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
37072 #: ../src/guestfs.pod:11
37075 " guestfs_h *g = guestfs_create ();\n"
37076 " guestfs_add_drive (g, \"guest.img\");\n"
37077 " guestfs_launch (g);\n"
37078 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37079 " guestfs_touch (g, \"/hello\");\n"
37080 " guestfs_umount (g, \"/\");\n"
37081 " guestfs_close (g);\n"
37084 " guestfs_h *g = guestfs_create ();\n"
37085 " guestfs_add_drive (g, \"guest.img\");\n"
37086 " guestfs_launch (g);\n"
37087 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37088 " guestfs_touch (g, \"/hello\");\n"
37089 " guestfs_umount (g, \"/\");\n"
37090 " guestfs_close (g);\n"
37094 #: ../src/guestfs.pod:25
37096 "Libguestfs is a library for accessing and modifying guest disk images. "
37097 "Amongst the things this is good for: making batch configuration changes to "
37098 "guests, getting disk used/free statistics (see also: virt-df), migrating "
37099 "between virtualization systems (see also: virt-p2v), performing partial "
37100 "backups, performing partial guest clones, cloning guests and changing "
37101 "registry/UUID/hostname info, and much else besides."
37105 #: ../src/guestfs.pod:33
37107 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
37108 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
37109 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
37114 #: ../src/guestfs.pod:38
37116 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
37117 "what filesystem is in each LV, etc.). It can also run commands in the "
37118 "context of the guest. Also you can access filesystems over FUSE."
37122 #: ../src/guestfs.pod:43
37124 "Libguestfs is a library that can be linked with C and C++ management "
37125 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
37126 "PHP, Erlang, Haskell or C#). You can also use it from shell scripts or the "
37131 #: ../src/guestfs.pod:48
37133 "You don't need to be root to use libguestfs, although obviously you do need "
37134 "enough permissions to access the disk images."
37138 #: ../src/guestfs.pod:51
37140 "Libguestfs is a large API because it can do many things. For a gentle "
37141 "introduction, please read the L</API OVERVIEW> section next."
37145 #: ../src/guestfs.pod:54
37147 "There are also some example programs in the L<guestfs-examples(3)> manual "
37152 #: ../src/guestfs.pod:57
37153 msgid "API OVERVIEW"
37157 #: ../src/guestfs.pod:59
37159 "This section provides a gentler overview of the libguestfs API. We also try "
37160 "to group API calls together, where that may not be obvious from reading "
37161 "about the individual calls in the main section of this manual."
37165 #: ../src/guestfs.pod:64
37170 #: ../src/guestfs.pod:66
37172 "Before you can use libguestfs calls, you have to create a handle. Then you "
37173 "must add at least one disk image to the handle, followed by launching the "
37174 "handle, then performing whatever operations you want, and finally closing "
37175 "the handle. By convention we use the single letter C<g> for the name of the "
37176 "handle variable, although of course you can use any name you want."
37180 #: ../src/guestfs.pod:73
37181 msgid "The general structure of all libguestfs-using programs looks like this:"
37185 #: ../src/guestfs.pod:76
37188 " guestfs_h *g = guestfs_create ();\n"
37191 " guestfs_h *g = guestfs_create ();\n"
37195 #: ../src/guestfs.pod:78
37198 " /* Call guestfs_add_drive additional times if there are\n"
37199 " * multiple disk images.\n"
37201 " guestfs_add_drive (g, \"guest.img\");\n"
37206 #: ../src/guestfs.pod:83
37209 " /* Most manipulation calls won't work until you've launched\n"
37210 " * the handle 'g'. You have to do this _after_ adding drives\n"
37211 " * and _before_ other commands.\n"
37213 " guestfs_launch (g);\n"
37218 #: ../src/guestfs.pod:89
37221 " /* Now you can examine what partitions, LVs etc are available.\n"
37223 " char **partitions = guestfs_list_partitions (g);\n"
37224 " char **logvols = guestfs_lvs (g);\n"
37227 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
37229 " char **partitions = guestfs_list_partitions (g);\n"
37230 " char **logvols = guestfs_lvs (g);\n"
37234 #: ../src/guestfs.pod:94
37237 " /* To access a filesystem in the image, you must mount it.\n"
37239 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37242 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
37244 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37248 #: ../src/guestfs.pod:98
37251 " /* Now you can perform filesystem actions on the guest\n"
37254 " guestfs_touch (g, \"/hello\");\n"
37257 " /* Тепер ви можете виконувати дії з файловою системою на\n"
37258 " * образі диска операційної системи.\n"
37260 " guestfs_touch (g, \"/hello\");\n"
37264 #: ../src/guestfs.pod:103
37267 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
37268 " * it is done automatically when you close the handle. See\n"
37269 " * discussion of autosync in this page.\n"
37271 " guestfs_sync (g);\n"
37276 #: ../src/guestfs.pod:109
37279 " /* Close the handle 'g'. */\n"
37280 " guestfs_close (g);\n"
37283 " /* Закрити дескриптор 'g'. */\n"
37284 " guestfs_close (g);\n"
37288 #: ../src/guestfs.pod:112
37290 "The code above doesn't include any error checking. In real code you should "
37291 "check return values carefully for errors. In general all functions that "
37292 "return integers return C<-1> on error, and all functions that return "
37293 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
37294 "how to handle errors, and consult the documentation for each function call "
37295 "below to see precisely how they return error indications. See L<guestfs-"
37296 "examples(3)> for fully worked examples."
37300 #: ../src/guestfs.pod:121
37301 msgid "DISK IMAGES"
37302 msgstr "ОБРАЗИ ДИСКІВ"
37305 #: ../src/guestfs.pod:123
37307 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
37308 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
37309 "actual block device, or simply an empty file of zeroes that you have created "
37310 "through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
37315 #: ../src/guestfs.pod:129
37317 "The call you should use in modern code for adding drives is L</"
37318 "guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
37319 "specifying that the format is raw, do:"
37323 #: ../src/guestfs.pod:133
37326 " guestfs_add_drive_opts (g, filename,\n"
37327 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37331 " guestfs_add_drive_opts (g, filename,\n"
37332 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37337 #: ../src/guestfs.pod:137
37338 msgid "You can add a disk read-only using:"
37339 msgstr "Ви можете додати диск у режимі лише читання:"
37342 #: ../src/guestfs.pod:139
37345 " guestfs_add_drive_opts (g, filename,\n"
37346 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37347 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37351 " guestfs_add_drive_opts (g, filename,\n"
37352 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37353 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37358 #: ../src/guestfs.pod:144
37360 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
37361 "libguestfs won't modify the file."
37365 #: ../src/guestfs.pod:147
37367 "Be extremely cautious if the disk image is in use, eg. if it is being used "
37368 "by a virtual machine. Adding it read-write will almost certainly cause disk "
37369 "corruption, but adding it read-only is safe."
37373 #: ../src/guestfs.pod:151
37375 "You must add at least one disk image, and you may add multiple disk images. "
37376 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
37377 "first one you added), C</dev/sdb> (for the second one you added), etc."
37381 #: ../src/guestfs.pod:156
37383 "Once L</guestfs_launch> has been called you cannot add any more images. You "
37384 "can call L</guestfs_list_devices> to get a list of the device names, in the "
37385 "order that you added them. See also L</BLOCK DEVICE NAMING> below."
37389 #: ../src/guestfs.pod:161
37391 msgstr "МОНТУВАННЯ"
37394 #: ../src/guestfs.pod:163
37396 "Before you can read or write files, create directories and so on in a disk "
37397 "image that contains filesystems, you have to mount those filesystems using "
37398 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that "
37399 "a disk image contains (for example) one partition with a filesystem on that "
37400 "partition, then you can mount it directly:"
37404 #: ../src/guestfs.pod:170
37407 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
37410 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
37414 #: ../src/guestfs.pod:172
37416 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
37417 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
37418 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
37419 "that these are libguestfs virtual devices, and are nothing to do with host "
37424 #: ../src/guestfs.pod:178
37426 "If you are given a disk image and you don't know what it contains then you "
37427 "have to find out. Libguestfs can do that too: use L</"
37428 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
37429 "LVs, and either try mounting each to see what is mountable, or else examine "
37430 "them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
37431 "filesystems, use L</guestfs_list_filesystems>."
37435 #: ../src/guestfs.pod:186
37437 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
37438 "L</INSPECTION> below). But you might find it easier to look at higher level "
37439 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
37443 #: ../src/guestfs.pod:191
37445 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
37446 "several other variations of the C<guestfs_mount_*> call."
37450 #: ../src/guestfs.pod:194
37451 msgid "FILESYSTEM ACCESS AND MODIFICATION"
37452 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
37455 #: ../src/guestfs.pod:196
37457 "The majority of the libguestfs API consists of fairly low-level calls for "
37458 "accessing and modifying the files, directories, symlinks etc on mounted "
37459 "filesystems. There are over a hundred such calls which you can find listed "
37460 "in detail below in this man page, and we don't even pretend to cover them "
37461 "all in this overview."
37465 #: ../src/guestfs.pod:202
37467 "Specify filenames as full paths, starting with C<\"/\"> and including the "
37470 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
37471 "точкою монтування."
37474 #: ../src/guestfs.pod:205
37476 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
37477 "the file called C<\"etc/passwd\"> then you could do:"
37479 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
37480 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
37484 #: ../src/guestfs.pod:208
37487 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
37490 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
37494 #: ../src/guestfs.pod:210
37496 "This would return C<data> as a newly allocated buffer containing the full "
37497 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
37498 "or C<NULL> if there was an error."
37502 #: ../src/guestfs.pod:214
37504 "As another example, to create a top-level directory on that filesystem "
37505 "called C<\"var\"> you would do:"
37509 #: ../src/guestfs.pod:217
37512 " guestfs_mkdir (g, \"/var\");\n"
37515 " guestfs_mkdir (g, \"/var\");\n"
37519 #: ../src/guestfs.pod:219
37520 msgid "To create a symlink you could do:"
37521 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
37524 #: ../src/guestfs.pod:221
37527 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
37528 " \"/etc/rc3.d/S30portmap\");\n"
37531 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
37532 " \"/etc/rc3.d/S30portmap\");\n"
37536 #: ../src/guestfs.pod:224
37538 "Libguestfs will reject attempts to use relative paths and there is no "
37539 "concept of a current working directory."
37543 #: ../src/guestfs.pod:227
37545 "Libguestfs can return errors in many situations: for example if the "
37546 "filesystem isn't writable, or if a file or directory that you requested "
37547 "doesn't exist. If you are using the C API (documented here) you have to "
37548 "check for those error conditions after each call. (Other language bindings "
37549 "turn these errors into exceptions)."
37553 #: ../src/guestfs.pod:233
37555 "File writes are affected by the per-handle umask, set by calling L</"
37556 "guestfs_umask> and defaulting to 022. See L</UMASK>."
37560 #: ../src/guestfs.pod:236
37561 msgid "PARTITIONING"
37562 msgstr "ПОДІЛ НА РОЗДІЛИ"
37565 #: ../src/guestfs.pod:238
37567 "Libguestfs contains API calls to read, create and modify partition tables on "
37572 #: ../src/guestfs.pod:241
37574 "In the common case where you want to create a single partition covering the "
37575 "whole disk, you should use the L</guestfs_part_disk> call:"
37579 #: ../src/guestfs.pod:245
37582 " const char *parttype = \"mbr\";\n"
37583 " if (disk_is_larger_than_2TB)\n"
37584 " parttype = \"gpt\";\n"
37585 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
37588 " const char *parttype = \"mbr\";\n"
37589 " if (disk_is_larger_than_2TB)\n"
37590 " parttype = \"gpt\";\n"
37591 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
37595 #: ../src/guestfs.pod:250
37597 "Obviously this effectively wipes anything that was on that disk image before."
37601 #: ../src/guestfs.pod:253
37606 #: ../src/guestfs.pod:255
37608 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
37609 "guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense unless "
37610 "you familiarize yourself with the concepts of physical volumes, volume "
37611 "groups and logical volumes."
37615 #: ../src/guestfs.pod:260
37617 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
37618 "tldp.org/HOWTO/LVM-HOWTO/>."
37622 #: ../src/guestfs.pod:263
37623 msgid "DOWNLOADING"
37624 msgstr "ОТРИМАННЯ ДАНИХ"
37627 #: ../src/guestfs.pod:265
37629 "Use L</guestfs_cat> to download small, text only files. This call is "
37630 "limited to files which are less than 2 MB and which cannot contain any ASCII "
37631 "NUL (C<\\0>) characters. However the API is very simple to use."
37635 #: ../src/guestfs.pod:269
37637 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
37638 "bit data, since it returns a (pointer, size) pair. However it is still "
37639 "limited to \"small\" files, less than 2 MB."
37643 #: ../src/guestfs.pod:273
37645 "L</guestfs_download> can be used to download any file, with no limits on "
37646 "content or size (even files larger than 4 GB)."
37650 #: ../src/guestfs.pod:276
37652 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
37656 #: ../src/guestfs.pod:279
37658 msgstr "ВИВАНТАЖЕННЯ"
37661 #: ../src/guestfs.pod:281
37663 "It's often the case that you want to write a file or files to the disk image."
37667 #: ../src/guestfs.pod:284
37669 "To write a small file with fixed content, use L</guestfs_write>. To create "
37670 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
37671 "guestfs_fallocate64> (with all disk blocks allocated). There are a variety "
37672 "of other functions for creating test files, for example L</guestfs_fill> and "
37673 "L</guestfs_fill_pattern>."
37677 #: ../src/guestfs.pod:290
37679 "To upload a single file, use L</guestfs_upload>. This call has no limits on "
37680 "file content or size (even files larger than 4 GB)."
37684 #: ../src/guestfs.pod:293
37686 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
37690 #: ../src/guestfs.pod:295
37692 "However the fastest way to upload I<large numbers of arbitrary files> is to "
37693 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
37694 ">), then attach this using L</guestfs_add_drive_ro>. If you add the drive "
37695 "in a predictable way (eg. adding it last after all other drives) then you "
37696 "can get the device name from L</guestfs_list_devices> and mount it directly "
37697 "using L</guestfs_mount_ro>. Note that squashfs images are sometimes non-"
37698 "portable between kernel versions, and they don't support labels or UUIDs. "
37699 "If you want to pre-build an image or you need to mount it using a label or "
37700 "UUID, use an ISO image instead."
37704 #: ../src/guestfs.pod:306
37706 msgstr "КОПІЮВАННЯ"
37709 #: ../src/guestfs.pod:308
37711 "There are various different commands for copying between files and devices "
37712 "and in and out of the guest filesystem. These are summarised in the table "
37717 #: ../src/guestfs.pod:314
37718 msgid "B<file> to B<file>"
37719 msgstr "B<файл> у B<файл>"
37722 #: ../src/guestfs.pod:316
37724 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
37725 "directories recursively."
37729 #: ../src/guestfs.pod:319
37731 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
37735 #: ../src/guestfs.pod:322
37736 msgid "B<file> to B<device>"
37740 #: ../src/guestfs.pod:324
37741 msgid "B<device> to B<file>"
37745 #: ../src/guestfs.pod:326
37746 msgid "B<device> to B<device>"
37750 #: ../src/guestfs.pod:328
37752 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
37753 "guestfs_copy_device_to_device>."
37757 #: ../src/guestfs.pod:331
37758 msgid "Example: duplicate the contents of an LV:"
37762 #: ../src/guestfs.pod:333
37765 " guestfs_copy_device_to_device (g,\n"
37766 " \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
37767 " /* -1 marks the end of the list of optional parameters */\n"
37773 #: ../src/guestfs.pod:338
37775 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
37776 "(C</dev/VG/Original>). To copy less than the whole source device, use the "
37777 "optional C<size> parameter:"
37781 #: ../src/guestfs.pod:342
37784 " guestfs_copy_device_to_device (g,\n"
37785 " \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
37786 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
37792 #: ../src/guestfs.pod:347
37793 msgid "B<file on the host> to B<file or device>"
37797 #: ../src/guestfs.pod:349
37798 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
37802 #: ../src/guestfs.pod:351
37803 msgid "B<file or device> to B<file on the host>"
37807 #: ../src/guestfs.pod:353
37808 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
37812 #: ../src/guestfs.pod:357
37813 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
37817 #: ../src/guestfs.pod:359
37819 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
37820 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
37821 "appears you can only upload and download to files. However many Un*x-like "
37822 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
37823 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
37824 "and arbitrary file descriptor N."
37828 #: ../src/guestfs.pod:367
37829 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
37833 #: ../src/guestfs.pod:370
37836 " guestfs_download (g, filename, \"/dev/stdout\");\n"
37839 " guestfs_download (g, filename, \"/dev/stdout\");\n"
37843 #: ../src/guestfs.pod:372
37844 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
37848 #: ../src/guestfs.pod:374
37851 " char devfd[64];\n"
37852 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
37853 " guestfs_tar_out (g, \"/\", devfd);\n"
37856 " char devfd[64];\n"
37857 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
37858 " guestfs_tar_out (g, \"/\", devfd);\n"
37862 #: ../src/guestfs.pod:378
37863 msgid "LISTING FILES"
37864 msgstr "СПИСКИ ФАЙЛІВ"
37867 #: ../src/guestfs.pod:380
37869 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
37870 "L<guestfish(1)>-equivalent command C<ll>)."
37874 #: ../src/guestfs.pod:383
37876 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
37877 "programs, as a flat list of strings."
37881 #: ../src/guestfs.pod:386
37883 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
37884 "directory, plus additional information about each one. It is more "
37885 "equivalent to using the L<readdir(3)> call on a local filesystem."
37889 #: ../src/guestfs.pod:390
37891 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
37895 #: ../src/guestfs.pod:393
37896 msgid "RUNNING COMMANDS"
37897 msgstr "ВИКОНАННЯ КОМАНД"
37900 #: ../src/guestfs.pod:395
37902 "Although libguestfs is primarily an API for manipulating files inside guest "
37903 "images, we also provide some limited facilities for running commands inside "
37908 #: ../src/guestfs.pod:399
37909 msgid "There are many limitations to this:"
37913 #: ../src/guestfs.pod:405
37915 "The kernel version that the command runs under will be different from what "
37920 #: ../src/guestfs.pod:410
37922 "If the command needs to communicate with daemons, then most likely they "
37923 "won't be running."
37927 #: ../src/guestfs.pod:415
37928 msgid "The command will be running in limited memory."
37932 #: ../src/guestfs.pod:419
37934 "The network may not be available unless you enable it (see L</"
37935 "guestfs_set_network>)."
37939 #: ../src/guestfs.pod:424
37940 msgid "Only supports Linux guests (not Windows, BSD, etc)."
37944 #: ../src/guestfs.pod:428
37946 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
37950 #: ../src/guestfs.pod:433
37952 "For SELinux guests, you may need to enable SELinux and load policy first. "
37953 "See L</SELINUX> in this manpage."
37957 #: ../src/guestfs.pod:438
37959 "I<Security:> It is not safe to run commands from untrusted, possibly "
37960 "malicious guests. These commands may attempt to exploit your program by "
37961 "sending unexpected output. They could also try to exploit the Linux kernel "
37962 "or qemu provided by the libguestfs appliance. They could use the network "
37963 "provided by the libguestfs appliance to bypass ordinary network partitions "
37964 "and firewalls. They could use the elevated privileges or different SELinux "
37965 "context of your program to their advantage."
37969 #: ../src/guestfs.pod:447
37971 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
37972 "(a script which runs when the guest next boots normally), and to have this "
37973 "script run the commands you want in the normal context of the running guest, "
37974 "network security and so on. For information about other security issues, "
37975 "see L</SECURITY>."
37979 #: ../src/guestfs.pod:455
37981 "The two main API calls to run commands are L</guestfs_command> and L</"
37982 "guestfs_sh> (there are also variations)."
37986 #: ../src/guestfs.pod:458
37988 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
37989 "shell globs, redirections, etc will work."
37993 #: ../src/guestfs.pod:461
37994 msgid "CONFIGURATION FILES"
37995 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
37998 #: ../src/guestfs.pod:463
38000 "To read and write configuration files in Linux guest filesystems, we "
38001 "strongly recommend using Augeas. For example, Augeas understands how to "
38002 "read and write, say, a Linux shadow password file or X.org configuration "
38003 "file, and so avoids you having to write that code."
38007 #: ../src/guestfs.pod:468
38009 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
38010 "document Augeas itself here because there is excellent documentation on the "
38011 "L<http://augeas.net/> website."
38015 #: ../src/guestfs.pod:472
38017 "If you don't want to use Augeas (you fool!) then try calling L</"
38018 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
38023 #: ../src/guestfs.pod:476
38028 #: ../src/guestfs.pod:478
38030 "We support SELinux guests. To ensure that labeling happens correctly in "
38031 "SELinux guests, you need to enable SELinux and load the guest's policy:"
38035 #: ../src/guestfs.pod:486
38036 msgid "Before launching, do:"
38040 #: ../src/guestfs.pod:488
38043 " guestfs_set_selinux (g, 1);\n"
38046 " guestfs_set_selinux (g, 1);\n"
38050 #: ../src/guestfs.pod:492
38052 "After mounting the guest's filesystem(s), load the policy. This is best "
38053 "done by running the L<load_policy(8)> command in the guest itself:"
38057 #: ../src/guestfs.pod:496
38060 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
38063 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
38067 #: ../src/guestfs.pod:498
38069 "(Older versions of C<load_policy> require you to specify the name of the "
38074 #: ../src/guestfs.pod:503
38076 "Optionally, set the security context for the API. The correct security "
38077 "context to use can only be known by inspecting the guest. As an example:"
38081 #: ../src/guestfs.pod:507
38084 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
38087 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
38091 #: ../src/guestfs.pod:511
38092 msgid "This will work for running commands and editing existing files."
38096 #: ../src/guestfs.pod:513
38098 "When new files are created, you may need to label them explicitly, for "
38099 "example by running the external command C<restorecon pathname>."
38103 #: ../src/guestfs.pod:517
38108 #: ../src/guestfs.pod:519
38110 "Certain calls are affected by the current file mode creation mask (the "
38111 "\"umask\"). In particular ones which create files or directories, such as "
38112 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
38113 "either the default mode that the file is created with or modifies the mode "
38118 #: ../src/guestfs.pod:525
38120 "The default umask is C<022>, so files are created with modes such as C<0644> "
38121 "and directories with C<0755>."
38125 #: ../src/guestfs.pod:528
38127 "There are two ways to avoid being affected by umask. Either set umask to 0 "
38128 "(call C<guestfs_umask (g, 0)> early after launching). Or call L</"
38129 "guestfs_chmod> after creating each file or directory."
38133 #: ../src/guestfs.pod:532
38134 msgid "For more information about umask, see L<umask(2)>."
38138 #: ../src/guestfs.pod:536
38140 "Libguestfs allows you to access Linux guests which have been encrypted using "
38141 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
38142 "standard. This includes nearly all whole disk encryption systems used by "
38143 "modern Linux guests."
38147 #: ../src/guestfs.pod:542
38149 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
38150 "returns the string C<crypto_LUKS>)."
38154 #: ../src/guestfs.pod:545
38156 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
38157 "will require the passphrase!"
38161 #: ../src/guestfs.pod:548
38163 "Opening a LUKS device creates a new device mapper device called C</dev/"
38164 "mapper/mapname> (where C<mapname> is the string you supply to L</"
38165 "guestfs_luks_open>). Reads and writes to this mapper device are decrypted "
38166 "from and encrypted to the underlying block device respectively."
38170 #: ../src/guestfs.pod:554
38172 "LVM volume groups on the device can be made visible by calling L</"
38173 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical volume"
38174 "(s) can now be mounted in the usual way."
38178 #: ../src/guestfs.pod:558
38180 "Use the reverse process to close a LUKS device. Unmount any logical volumes "
38181 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
38182 "[\"/dev/VG\"])>. Then close the mapper device by calling L</"
38183 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
38184 "underlying encrypted block device)."
38188 #: ../src/guestfs.pod:565
38193 #: ../src/guestfs.pod:567
38195 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
38196 "contains operating systems, an install CD or a live CD. (These APIs used to "
38197 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
38198 "version 1.5.3 the most frequently used part of this library has been "
38199 "rewritten in C and moved into the core code)."
38203 #: ../src/guestfs.pod:574
38205 "Add all disks belonging to the unknown virtual machine and call L</"
38206 "guestfs_launch> in the usual way."
38210 #: ../src/guestfs.pod:577
38212 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
38213 "and certain heuristics, and returns a list of operating systems that were "
38214 "found. An empty list means none were found. A single element is the root "
38215 "filesystem of the operating system. For dual- or multi-boot guests, "
38216 "multiple roots can be returned, each one corresponding to a separate "
38217 "operating system. (Multi-boot virtual machines are extremely rare in the "
38218 "world of virtualization, but since this scenario can happen, we have built "
38219 "libguestfs to deal with it.)"
38223 #: ../src/guestfs.pod:586
38225 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
38226 "to get additional details about that operating system. For example, call L</"
38227 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
38228 "Windows and Linux-based operating systems respectively."
38232 #: ../src/guestfs.pod:592
38234 "Un*x-like and Linux-based operating systems usually consist of several "
38235 "filesystems which are mounted at boot time (for example, a separate boot "
38236 "partition mounted on C</boot>). The inspection rules are able to detect how "
38237 "filesystems correspond to mount points. Call "
38238 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
38239 "hash table like this example:"
38243 #: ../src/guestfs.pod:599
38246 " /boot => /dev/sda1\n"
38247 " / => /dev/vg_guest/lv_root\n"
38248 " /usr => /dev/vg_guest/lv_usr\n"
38251 " /boot => /dev/sda1\n"
38252 " / => /dev/vg_guest/lv_root\n"
38253 " /usr => /dev/vg_guest/lv_usr\n"
38257 #: ../src/guestfs.pod:603
38259 "The caller can then make calls to L</guestfs_mount_options> to mount the "
38260 "filesystems as suggested."
38264 #: ../src/guestfs.pod:606
38266 "Be careful to mount filesystems in the right order (eg. C</> before C</"
38267 "usr>). Sorting the keys of the hash by length, shortest first, should work."
38271 #: ../src/guestfs.pod:610
38273 "Inspection currently only works for some common operating systems. "
38274 "Contributors are welcome to send patches for other operating systems that we "
38275 "currently cannot detect."
38279 #: ../src/guestfs.pod:614
38281 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
38282 "for more details. The L</guestfs_inspect_os> function just ignores any "
38283 "encrypted devices."
38287 #: ../src/guestfs.pod:618
38289 "A note on the implementation: The call L</guestfs_inspect_os> performs "
38290 "inspection and caches the results in the guest handle. Subsequent calls to "
38291 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
38292 "read the disks. If you change the content of the guest disks, you can redo "
38293 "inspection by calling L</guestfs_inspect_os> again. (L</"
38294 "guestfs_inspect_list_applications> works a little differently from the other "
38295 "calls and does read the disks. See documentation for that function for "
38300 #: ../src/guestfs.pod:627
38301 msgid "INSPECTING INSTALL DISKS"
38305 #: ../src/guestfs.pod:629
38307 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
38312 #: ../src/guestfs.pod:632
38314 "Call L</guestfs_inspect_get_format> to return the format of the operating "
38315 "system, which currently can be C<installed> (a regular operating system) or "
38316 "C<installer> (some sort of install disk)."
38320 #: ../src/guestfs.pod:636
38322 "Further information is available about the operating system that can be "
38323 "installed using the regular inspection APIs like L</"
38324 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
38328 #: ../src/guestfs.pod:641
38330 "Some additional information specific to installer disks is also available "
38331 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
38332 "guestfs_inspect_is_multipart> calls."
38336 #: ../src/guestfs.pod:646
38337 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
38341 #: ../src/guestfs.pod:648
38343 "Libguestfs can mount NTFS partitions. It does this using the L<http://www."
38344 "ntfs-3g.org/> driver."
38348 #: ../src/guestfs.pod:651
38349 msgid "DRIVE LETTERS AND PATHS"
38350 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
38353 #: ../src/guestfs.pod:653
38355 "DOS and Windows still use drive letters, and the filesystems are always "
38356 "treated as case insensitive by Windows itself, and therefore you might find "
38357 "a Windows configuration file referring to a path like C<c:\\windows"
38358 "\\system32>. When the filesystem is mounted in libguestfs, that directory "
38359 "might be referred to as C</WINDOWS/System32>."
38363 #: ../src/guestfs.pod:659
38365 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
38366 "L</guestfs_inspect_get_drive_mappings>)"
38370 #: ../src/guestfs.pod:662
38372 "Dealing with separator characters (backslash vs forward slash) is outside "
38373 "the scope of libguestfs, but usually a simple character replacement will "
38378 #: ../src/guestfs.pod:666
38380 "To resolve the case insensitivity of paths, call L</"
38381 "guestfs_case_sensitive_path>."
38385 #: ../src/guestfs.pod:669
38386 msgid "ACCESSING THE WINDOWS REGISTRY"
38387 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
38390 #: ../src/guestfs.pod:671
38392 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
38393 "files, through the library C<hivex> which is part of the libguestfs project "
38394 "although ships as a separate tarball. You have to locate and download the "
38395 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
38396 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
38397 "reg(1)> for more help on this issue."
38401 #: ../src/guestfs.pod:679
38402 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
38403 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
38406 #: ../src/guestfs.pod:681
38408 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
38409 "provide something which looks like a Linux symlink. The way it tries to do "
38410 "the rewriting is described here:"
38414 #: ../src/guestfs.pod:685
38416 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
38419 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
38423 #: ../src/guestfs.pod:687
38425 "The essential problem is that ntfs-3g simply does not have enough "
38426 "information to do a correct job. NTFS links can contain drive letters and "
38427 "references to external device GUIDs that ntfs-3g has no way of resolving. "
38428 "It is almost certainly the case that libguestfs callers should ignore what "
38429 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
38433 #: ../src/guestfs.pod:694
38435 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
38436 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
38437 "attribute, and read the raw reparse data from that (you can find the format "
38438 "documented in various places around the web)."
38442 #: ../src/guestfs.pod:699
38443 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
38447 #: ../src/guestfs.pod:701
38449 "There are other useful extended attributes that can be read from ntfs-3g "
38450 "filesystems (using L</guestfs_getxattr>). See:"
38454 #: ../src/guestfs.pod:704
38456 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
38458 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
38461 #: ../src/guestfs.pod:706
38462 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
38463 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
38466 #: ../src/guestfs.pod:708
38468 "Although we don't want to discourage you from using the C API, we will "
38469 "mention here that the same API is also available in other languages."
38473 #: ../src/guestfs.pod:711
38475 "The API is broadly identical in all supported languages. This means that "
38476 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
38477 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
38478 "OCaml. In other words, a straightforward, predictable isomorphism between "
38483 #: ../src/guestfs.pod:717
38485 "Error messages are automatically transformed into exceptions if the language "
38490 #: ../src/guestfs.pod:720
38492 "We don't try to \"object orientify\" parts of the API in OO languages, "
38493 "although contributors are welcome to write higher level APIs above what we "
38494 "provide in their favourite languages if they wish."
38498 #: ../src/guestfs.pod:726
38503 #: ../src/guestfs.pod:728
38505 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
38506 "identical to the C API. C++ classes and exceptions are not used."
38510 #: ../src/guestfs.pod:732
38515 #: ../src/guestfs.pod:734
38517 "The C# bindings are highly experimental. Please read the warnings at the "
38518 "top of C<csharp/Libguestfs.cs>."
38522 #: ../src/guestfs.pod:737
38527 #: ../src/guestfs.pod:739
38528 msgid "See L<guestfs-erlang(3)>."
38532 #: ../src/guestfs.pod:741
38534 msgstr "B<Haskell>"
38537 #: ../src/guestfs.pod:743
38539 "This is the only language binding that is working but incomplete. Only "
38540 "calls which return simple integers have been bound in Haskell, and we are "
38541 "looking for help to complete this binding."
38545 #: ../src/guestfs.pod:747
38550 #: ../src/guestfs.pod:749
38552 "Full documentation is contained in the Javadoc which is distributed with "
38553 "libguestfs. For examples, see L<guestfs-java(3)>."
38557 #: ../src/guestfs.pod:752
38562 #: ../src/guestfs.pod:754
38563 msgid "See L<guestfs-ocaml(3)>."
38564 msgstr "Див. L<guestfs-ocaml(3)>."
38567 #: ../src/guestfs.pod:756
38572 #: ../src/guestfs.pod:758
38573 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
38574 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
38577 #: ../src/guestfs.pod:760
38582 #: ../src/guestfs.pod:762
38584 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
38585 "the php-libguestfs package for your distribution."
38589 #: ../src/guestfs.pod:765
38590 msgid "The PHP binding only works correctly on 64 bit machines."
38594 #: ../src/guestfs.pod:767
38599 #: ../src/guestfs.pod:769
38600 msgid "See L<guestfs-python(3)>."
38601 msgstr "Див. L<guestfs-python(3)>."
38604 #: ../src/guestfs.pod:771
38609 #: ../src/guestfs.pod:773
38610 msgid "See L<guestfs-ruby(3)>."
38611 msgstr "Див. L<guestfs-ruby(3)>."
38614 #: ../src/guestfs.pod:775
38615 msgid "B<shell scripts>"
38616 msgstr "B<скрипти оболонки>"
38619 #: ../src/guestfs.pod:777
38620 msgid "See L<guestfish(1)>."
38621 msgstr "Див. L<guestfish(1)>."
38624 #: ../src/guestfs.pod:781
38625 msgid "LIBGUESTFS GOTCHAS"
38629 #: ../src/guestfs.pod:783
38631 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
38632 "system [...] that works in the way it is documented but is counterintuitive "
38633 "and almost invites mistakes.\""
38637 #: ../src/guestfs.pod:787
38639 "Since we developed libguestfs and the associated tools, there are several "
38640 "things we would have designed differently, but are now stuck with for "
38641 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
38642 "release, you can expect these to change. Beware of them."
38646 #: ../src/guestfs.pod:795
38647 msgid "Autosync / forgetting to sync."
38651 #: ../src/guestfs.pod:797
38653 "I<Update:> Autosync is enabled by default for all API users starting from "
38654 "libguestfs 1.5.24. This section only applies to older versions."
38658 #: ../src/guestfs.pod:800
38660 "When modifying a filesystem from C or another language, you B<must> unmount "
38661 "all filesystems and call L</guestfs_sync> explicitly before you close the "
38662 "libguestfs handle. You can also call:"
38666 #: ../src/guestfs.pod:804
38669 " guestfs_set_autosync (g, 1);\n"
38672 " guestfs_set_autosync (g, 1);\n"
38676 #: ../src/guestfs.pod:806
38678 "to have the unmount/sync done automatically for you when the handle 'g' is "
38679 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
38683 #: ../src/guestfs.pod:810
38685 "If you forget to do this, then it is entirely possible that your changes "
38686 "won't be written out, or will be partially written, or (very rarely) that "
38687 "you'll get disk corruption."
38691 #: ../src/guestfs.pod:814
38693 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
38694 "guestfish scripts that forget to sync will work just fine, which can make "
38695 "this very puzzling if you are trying to debug a problem."
38699 #: ../src/guestfs.pod:818
38700 msgid "Mount option C<-o sync> should not be the default."
38704 #: ../src/guestfs.pod:820
38706 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
38707 "libguestfs 1.13.16. This section only applies to older versions."
38711 #: ../src/guestfs.pod:823
38713 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
38714 "However C<-o sync> does not add any reliability benefit, but does have a "
38715 "very large performance impact."
38719 #: ../src/guestfs.pod:827
38721 "The work around is to use L</guestfs_mount_options> and set the mount "
38722 "options that you actually want to use."
38726 #: ../src/guestfs.pod:830
38727 msgid "Read-only should be the default."
38731 #: ../src/guestfs.pod:832
38733 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
38734 "specify I<--rw> if you want to make changes to the image."
38738 #: ../src/guestfs.pod:835
38739 msgid "This would reduce the potential to corrupt live VM images."
38743 #: ../src/guestfs.pod:837
38745 "Note that many filesystems change the disk when you just mount and unmount, "
38746 "even if you didn't perform any writes. You need to use L</"
38747 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
38751 #: ../src/guestfs.pod:841
38752 msgid "guestfish command line is hard to use."
38756 #: ../src/guestfs.pod:843
38758 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
38759 "examination). It tries to run a guestfish command C<disk.img> which doesn't "
38760 "exist, so it fails. In earlier versions of guestfish the error message was "
38761 "also unintuitive, but we have corrected this since. Like the Bourne shell, "
38762 "we should have used C<guestfish -c command> to run commands."
38766 #: ../src/guestfs.pod:850
38767 msgid "guestfish megabyte modifiers don't work right on all commands"
38771 #: ../src/guestfs.pod:852
38773 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
38774 "other modifiers). What guestfish actually does is to multiply the number "
38775 "part by the modifier part and pass the result to the C API. However this "
38776 "doesn't work for a few APIs which aren't expecting bytes, but are already "
38777 "expecting some other unit (eg. megabytes)."
38781 #: ../src/guestfs.pod:859
38782 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
38786 #: ../src/guestfs.pod:861
38789 " lvcreate LV VG 100M\n"
38792 " lvcreate LV VG 100M\n"
38796 #: ../src/guestfs.pod:863
38798 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
38799 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
38800 "megabytes * megabytes) logical volume. The error message you get from this "
38801 "is also a little obscure."
38805 #: ../src/guestfs.pod:868
38807 "This could be fixed in the generator by specially marking parameters and "
38808 "return values which take bytes or other units."
38812 #: ../src/guestfs.pod:871
38813 msgid "Ambiguity between devices and paths"
38817 #: ../src/guestfs.pod:873
38819 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
38820 "sdb2>) and a similar pathname. A file might just happen to be called "
38821 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
38825 #: ../src/guestfs.pod:878
38827 "In the current API we usually resolve this ambiguity by having two separate "
38828 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
38829 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
38830 "detecting if the path supplied begins with C</dev/>."
38834 #: ../src/guestfs.pod:884
38836 "To avoid both the ambiguity and the need to duplicate some calls, we could "
38837 "make paths/devices into structured names. One way to do this would be to "
38838 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
38839 "aspect of grub. Another way would be to use a structured type, equivalent "
38840 "to this OCaml type:"
38844 #: ../src/guestfs.pod:890
38847 " type path = Path of string | Device of int | Partition of int * int\n"
38852 #: ../src/guestfs.pod:892
38853 msgid "which would allow you to pass arguments like:"
38857 #: ../src/guestfs.pod:894
38860 " Path \"/foo/bar\"\n"
38861 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
38862 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
38863 " Path \"/dev/sdb2\" (* not a device *)\n"
38868 #: ../src/guestfs.pod:899
38870 "As you can see there are still problems to resolve even with this "
38871 "representation. Also consider how it might work in guestfish."
38875 #: ../src/guestfs.pod:904
38876 msgid "KEYS AND PASSPHRASES"
38877 msgstr "КЛЮЧІ І ПАРОЛІ"
38880 #: ../src/guestfs.pod:906
38882 "Certain libguestfs calls take a parameter that contains sensitive key "
38883 "material, passed in as a C string."
38887 #: ../src/guestfs.pod:909
38889 "In the future we would hope to change the libguestfs implementation so that "
38890 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
38891 "swap. However this is I<not> done at the moment, because of the complexity "
38892 "of such an implementation."
38896 #: ../src/guestfs.pod:914
38898 "Therefore you should be aware that any key parameter you pass to libguestfs "
38899 "might end up being written out to the swap partition. If this is a concern, "
38900 "scrub the swap partition or don't use libguestfs on encrypted devices."
38904 #: ../src/guestfs.pod:919
38905 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
38909 #: ../src/guestfs.pod:921
38911 "All high-level libguestfs actions are synchronous. If you want to use "
38912 "libguestfs asynchronously then you must create a thread."
38916 #: ../src/guestfs.pod:924
38918 "Only use the handle from a single thread. Either use the handle exclusively "
38919 "from one thread, or provide your own mutex so that two threads cannot issue "
38920 "calls on the same handle at the same time."
38924 #: ../src/guestfs.pod:928
38926 "See the graphical program guestfs-browser for one possible architecture for "
38927 "multithreaded programs using libvirt and libguestfs."
38931 #: ../src/guestfs.pod:931
38936 #: ../src/guestfs.pod:933
38938 "Libguestfs needs a supermin appliance, which it finds by looking along an "
38943 #: ../src/guestfs.pod:936
38945 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
38946 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
38950 #: ../src/guestfs.pod:939
38952 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
38953 "to change the directories that libguestfs will search in. The value is a "
38954 "colon-separated list of paths. The current directory is I<not> searched "
38955 "unless the path contains an empty element or C<.>. For example "
38956 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
38957 "then C</usr/lib/guestfs>."
38961 #: ../src/guestfs.pod:946
38962 msgid "QEMU WRAPPERS"
38966 #: ../src/guestfs.pod:948
38968 "If you want to compile your own qemu, run qemu from a non-standard location, "
38969 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
38974 #: ../src/guestfs.pod:952
38976 "There is one important rule to remember: you I<must C<exec qemu>> as the "
38977 "last command in the shell script (so that qemu replaces the shell and "
38978 "becomes the direct child of the libguestfs-using program). If you don't do "
38979 "this, then the qemu process won't be cleaned up correctly."
38983 #: ../src/guestfs.pod:957
38985 "Here is an example of a wrapper, where I have built my own copy of qemu from "
38990 #: ../src/guestfs.pod:960
38994 " qemudir=/home/rjones/d/qemu\n"
38995 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
38999 " qemudir=/home/rjones/d/qemu\n"
39000 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
39004 #: ../src/guestfs.pod:964
39006 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
39007 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
39012 #: ../src/guestfs.pod:968
39015 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
39018 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
39022 #: ../src/guestfs.pod:970
39024 "Note that libguestfs also calls qemu with the -help and -version options in "
39025 "order to determine features."
39029 #: ../src/guestfs.pod:973
39031 "Wrappers can also be used to edit the options passed to qemu. In the "
39032 "following example, the C<-machine ...> option (C<-machine> and the following "
39033 "argument) are removed from the command line and replaced with C<-machine pc,"
39034 "accel=tcg>. The while loop iterates over the options until it finds the "
39035 "right one to remove, putting the remaining options into the C<args> array."
39039 #: ../src/guestfs.pod:982
39043 " while [ $# -gt 0 ]; do\n"
39044 " case \"$1\" in\n"
39048 " args[i]=\"$1\"\n"
39057 #: ../src/guestfs.pod:994
39060 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
39065 #: ../src/guestfs.pod:996
39066 msgid "ATTACHING TO RUNNING DAEMONS"
39067 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
39070 #: ../src/guestfs.pod:998
39072 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
39073 "babies. Use with caution."
39077 #: ../src/guestfs.pod:1001
39079 "I<Note (2):> This section explains how to attach to a running daemon from a "
39080 "low level perspective. For most users, simply using virt tools such as "
39081 "L<guestfish(1)> with the I<--live> option will \"just work\"."
39085 #: ../src/guestfs.pod:1005
39086 msgid "Using guestfs_set_attach_method"
39087 msgstr "За допомогою guestfs_set_attach_method"
39090 #: ../src/guestfs.pod:1007
39092 "By calling L</guestfs_set_attach_method> you can change how the library "
39093 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
39094 "ARCHITECTURE> for some background)."
39098 #: ../src/guestfs.pod:1011
39100 "The normal attach method is C<appliance>, where a small appliance is created "
39101 "containing the daemon, and then the library connects to this."
39105 #: ../src/guestfs.pod:1014
39107 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
39108 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
39109 "daemon over the Unix domain socket."
39113 #: ../src/guestfs.pod:1018
39115 "The normal use for this is to connect to a running virtual machine that "
39116 "contains a C<guestfsd> daemon, and send commands so you can read and write "
39117 "files inside the live virtual machine."
39121 #: ../src/guestfs.pod:1022
39122 msgid "Using guestfs_add_domain with live flag"
39123 msgstr "За допомогою guestfs_add_domain з прапорцем live"
39126 #: ../src/guestfs.pod:1024
39128 "L</guestfs_add_domain> provides some help for getting the correct attach "
39129 "method. If you pass the C<live> option to this function, then (if the "
39130 "virtual machine is running) it will examine the libvirt XML looking for a "
39131 "virtio-serial channel to connect to:"
39135 #: ../src/guestfs.pod:1030
39142 " <channel type='unix'>\n"
39143 " <source mode='bind' path='/path/to/socket'/>\n"
39144 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
39155 " <channel type='unix'>\n"
39156 " <source mode='bind' path='/path/to/socket'/>\n"
39157 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
39165 #: ../src/guestfs.pod:1042
39167 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
39168 "method to C<unix:/path/to/socket>."
39172 #: ../src/guestfs.pod:1045
39174 "Some of the libguestfs tools (including guestfish) support a I<--live> "
39175 "option which is passed through to L</guestfs_add_domain> thus allowing you "
39176 "to attach to and modify live virtual machines."
39180 #: ../src/guestfs.pod:1049
39182 "The virtual machine needs to have been set up beforehand so that it has the "
39183 "virtio-serial channel and so that guestfsd is running inside it."
39187 #: ../src/guestfs.pod:1053
39188 msgid "ABI GUARANTEE"
39189 msgstr "ГАРАНТІЯ ЩОДО ABI"
39192 #: ../src/guestfs.pod:1055
39194 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
39195 "actions as outlined in this section. Although we will deprecate some "
39196 "actions, for example if they get replaced by newer calls, we will keep the "
39197 "old actions forever. This allows you the developer to program in confidence "
39198 "against the libguestfs API."
39202 #: ../src/guestfs.pod:1061
39203 msgid "BLOCK DEVICE NAMING"
39204 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
39207 #: ../src/guestfs.pod:1063
39209 "In the kernel there is now quite a profusion of schemata for naming block "
39210 "devices (in this context, by I<block device> I mean a physical or virtual "
39211 "hard drive). The original Linux IDE driver used names starting with C</dev/"
39212 "hd*>. SCSI devices have historically used a different naming scheme, C</dev/"
39213 "sd*>. When the Linux kernel I<libata> driver became a popular replacement "
39214 "for the old IDE driver (particularly for SATA devices) those devices also "
39215 "used the C</dev/sd*> scheme. Additionally we now have virtual machines with "
39216 "paravirtualized drivers. This has created several different naming systems, "
39217 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
39221 #: ../src/guestfs.pod:1075
39223 "As discussed above, libguestfs uses a qemu appliance running an embedded "
39224 "Linux kernel to access block devices. We can run a variety of appliances "
39225 "based on a variety of Linux kernels."
39229 #: ../src/guestfs.pod:1079
39231 "This causes a problem for libguestfs because many API calls use device or "
39232 "partition names. Working scripts and the recipe (example) scripts that we "
39233 "make available over the internet could fail if the naming scheme changes."
39237 #: ../src/guestfs.pod:1084
39239 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
39240 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
39241 "required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
39242 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
39246 #: ../src/guestfs.pod:1090
39248 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
39249 "L</guestfs_list_partitions> and similar calls return the true names of the "
39250 "devices and partitions as known to the appliance."
39254 #: ../src/guestfs.pod:1095
39255 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
39259 #: ../src/guestfs.pod:1097
39261 "Usually this translation is transparent. However in some (very rare) cases "
39262 "you may need to know the exact algorithm. Such cases include where you use "
39263 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
39264 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
39268 #: ../src/guestfs.pod:1103
39270 "The algorithm is applied only to I<parameters> which are known to be either "
39271 "device or partition names. Return values from functions such as L</"
39272 "guestfs_list_devices> are never changed."
39276 #: ../src/guestfs.pod:1111
39277 msgid "Is the string a parameter which is a device or partition name?"
39281 #: ../src/guestfs.pod:1115
39282 msgid "Does the string begin with C</dev/sd>?"
39283 msgstr "Чи починається рядок з C</dev/sd>?"
39286 #: ../src/guestfs.pod:1119
39288 "Does the named device exist? If so, we use that device. However if I<not> "
39289 "then we continue with this algorithm."
39293 #: ../src/guestfs.pod:1124
39294 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
39298 #: ../src/guestfs.pod:1126
39299 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
39303 #: ../src/guestfs.pod:1128
39304 msgid "If that named device exists, use it. If not, continue."
39308 #: ../src/guestfs.pod:1132
39309 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
39313 #: ../src/guestfs.pod:1134
39314 msgid "If that named device exists, use it. If not, return an error."
39318 #: ../src/guestfs.pod:1138
39319 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
39323 #: ../src/guestfs.pod:1140
39325 "Although the standard naming scheme and automatic translation is useful for "
39326 "simple programs and guestfish scripts, for larger programs it is best not to "
39327 "rely on this mechanism."
39331 #: ../src/guestfs.pod:1144
39333 "Where possible for maximum future portability programs using libguestfs "
39334 "should use these future-proof techniques:"
39338 #: ../src/guestfs.pod:1151
39340 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
39341 "device names, and then use those names directly."
39345 #: ../src/guestfs.pod:1154
39347 "Since those device names exist by definition, they will never be translated."
39351 #: ../src/guestfs.pod:1159
39353 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
39354 "filesystem labels."
39358 #: ../src/guestfs.pod:1166
39360 "This section discusses security implications of using libguestfs, "
39361 "particularly with untrusted or malicious guests or disk images."
39365 #: ../src/guestfs.pod:1169
39366 msgid "GENERAL SECURITY CONSIDERATIONS"
39367 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
39370 #: ../src/guestfs.pod:1171
39372 "Be careful with any files or data that you download from a guest (by "
39373 "\"download\" we mean not just the L</guestfs_download> command but any "
39374 "command that reads files, filenames, directories or anything else from a "
39375 "disk image). An attacker could manipulate the data to fool your program "
39376 "into doing the wrong thing. Consider cases such as:"
39380 #: ../src/guestfs.pod:1181
39381 msgid "the data (file etc) not being present"
39385 #: ../src/guestfs.pod:1185
39386 msgid "being present but empty"
39390 #: ../src/guestfs.pod:1189
39391 msgid "being much larger than normal"
39395 #: ../src/guestfs.pod:1193
39396 msgid "containing arbitrary 8 bit data"
39400 #: ../src/guestfs.pod:1197
39401 msgid "being in an unexpected character encoding"
39405 #: ../src/guestfs.pod:1201
39406 msgid "containing homoglyphs."
39410 #: ../src/guestfs.pod:1205
39411 msgid "SECURITY OF MOUNTING FILESYSTEMS"
39412 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
39415 #: ../src/guestfs.pod:1207
39417 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
39418 "(VFS) module can sometimes be escalated into exploits by deliberately "
39419 "creating a malicious, malformed filesystem. These exploits are very severe "
39420 "for two reasons. Firstly there are very many filesystem drivers in the "
39421 "kernel, and many of them are infrequently used and not much developer "
39422 "attention has been paid to the code. Linux userspace helps potential "
39423 "crackers by detecting the filesystem type and automatically choosing the "
39424 "right VFS driver, even if that filesystem type is obscure or unexpected for "
39425 "the administrator. Secondly, a kernel-level exploit is like a local root "
39426 "exploit (worse in some ways), giving immediate and total access to the "
39427 "system right down to the hardware level."
39431 #: ../src/guestfs.pod:1220
39433 "That explains why you should never mount a filesystem from an untrusted "
39434 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
39435 "inside a qemu virtual machine, usually running as a non-root user. The "
39436 "attacker would need to write a filesystem which first exploited the kernel, "
39437 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
39438 "the libguestfs protocol, and finally to be as serious as the host kernel "
39439 "exploit it would need to escalate its privileges to root. This multi-step "
39440 "escalation, performed by a static piece of data, is thought to be extremely "
39441 "hard to do, although we never say 'never' about security issues."
39445 #: ../src/guestfs.pod:1231
39447 "In any case callers can reduce the attack surface by forcing the filesystem "
39448 "type when mounting (use L</guestfs_mount_vfs>)."
39452 #: ../src/guestfs.pod:1234
39453 msgid "PROTOCOL SECURITY"
39454 msgstr "ЗАХИСТ ПРОТОКОЛУ"
39457 #: ../src/guestfs.pod:1236
39459 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
39460 "defined upper message size. However a program that uses libguestfs must "
39461 "also take care - for example you can write a program that downloads a binary "
39462 "from a disk image and executes it locally, and no amount of protocol "
39463 "security will save you from the consequences."
39467 #: ../src/guestfs.pod:1242
39468 msgid "INSPECTION SECURITY"
39472 #: ../src/guestfs.pod:1244
39474 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
39475 "directly from the guest, and these could contain any 8 bit data. Callers "
39476 "should be careful to escape these before printing them to a structured file "
39477 "(for example, use HTML escaping if creating a web page)."
39481 #: ../src/guestfs.pod:1250
39483 "Guest configuration may be altered in unusual ways by the administrator of "
39484 "the virtual machine, and may not reflect reality (particularly for untrusted "
39485 "or actively malicious guests). For example we parse the hostname from "
39486 "configuration files like C</etc/sysconfig/network> that we find in the "
39487 "guest, but the guest administrator can easily manipulate these files to "
39488 "provide the wrong hostname."
39492 #: ../src/guestfs.pod:1258
39494 "The inspection API parses guest configuration using two external libraries: "
39495 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
39496 "designed to be robust in the face of malicious data, although denial of "
39497 "service attacks are still possible, for example with oversized configuration "
39502 #: ../src/guestfs.pod:1264
39503 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
39504 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
39507 #: ../src/guestfs.pod:1266
39509 "Be very cautious about running commands from the guest. By running a "
39510 "command in the guest, you are giving CPU time to a binary that you do not "
39511 "control, under the same user account as the library, albeit wrapped in qemu "
39512 "virtualization. More information and alternatives can be found in the "
39513 "section L</RUNNING COMMANDS>."
39517 #: ../src/guestfs.pod:1272
39518 msgid "CVE-2010-3851"
39519 msgstr "CVE-2010-3851"
39522 #: ../src/guestfs.pod:1274
39523 msgid "https://bugzilla.redhat.com/642934"
39524 msgstr "https://bugzilla.redhat.com/642934"
39527 #: ../src/guestfs.pod:1276
39529 "This security bug concerns the automatic disk format detection that qemu "
39530 "does on disk images."
39534 #: ../src/guestfs.pod:1279
39536 "A raw disk image is just the raw bytes, there is no header. Other disk "
39537 "images like qcow2 contain a special header. Qemu deals with this by looking "
39538 "for one of the known headers, and if none is found then assuming the disk "
39539 "image must be raw."
39543 #: ../src/guestfs.pod:1284
39545 "This allows a guest which has been given a raw disk image to write some "
39546 "other header. At next boot (or when the disk image is accessed by "
39547 "libguestfs) qemu would do autodetection and think the disk image format was, "
39548 "say, qcow2 based on the header written by the guest."
39552 #: ../src/guestfs.pod:1289
39554 "This in itself would not be a problem, but qcow2 offers many features, one "
39555 "of which is to allow a disk image to refer to another image (called the "
39556 "\"backing disk\"). It does this by placing the path to the backing disk "
39557 "into the qcow2 header. This path is not validated and could point to any "
39558 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
39559 "\"holes\" in the qcow2 disk image, which of course is completely under the "
39560 "control of the attacker."
39564 #: ../src/guestfs.pod:1297
39566 "In libguestfs this is rather hard to exploit except under two circumstances:"
39570 #: ../src/guestfs.pod:1304
39571 msgid "You have enabled the network or have opened the disk in write mode."
39575 #: ../src/guestfs.pod:1308
39577 "You are also running untrusted code from the guest (see L</RUNNING "
39582 #: ../src/guestfs.pod:1313
39584 "The way to avoid this is to specify the expected disk format when adding "
39585 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
39586 "should always do this if the disk is raw format, and it's a good idea for "
39591 #: ../src/guestfs.pod:1318
39593 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
39594 "format is fetched from libvirt and passed through."
39598 #: ../src/guestfs.pod:1321
39600 "For libguestfs tools, use the I<--format> command line parameter as "
39605 #: ../src/guestfs.pod:1324
39606 msgid "CONNECTION MANAGEMENT"
39607 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
39610 #: ../src/guestfs.pod:1326
39611 msgid "guestfs_h *"
39612 msgstr "guestfs_h *"
39615 #: ../src/guestfs.pod:1328
39617 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
39618 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
39619 "handle and release all resources used."
39623 #: ../src/guestfs.pod:1332
39625 "For information on using multiple handles and threads, see the section L</"
39626 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
39630 #: ../src/guestfs.pod:1335
39631 msgid "guestfs_create"
39632 msgstr "guestfs_create"
39635 #: ../src/guestfs.pod:1337
39638 " guestfs_h *guestfs_create (void);\n"
39641 " guestfs_h *guestfs_create (void);\n"
39645 #: ../src/guestfs.pod:1339
39646 msgid "Create a connection handle."
39647 msgstr "Створити дескриптор з’єднання."
39650 #: ../src/guestfs.pod:1341
39652 "On success this returns a non-NULL pointer to a handle. On error it returns "
39657 #: ../src/guestfs.pod:1344
39659 "You have to \"configure\" the handle after creating it. This includes "
39660 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
39661 "handle at least once."
39665 #: ../src/guestfs.pod:1348
39666 msgid "After configuring the handle, you have to call L</guestfs_launch>."
39670 #: ../src/guestfs.pod:1350
39672 "You may also want to configure error handling for the handle. See the L</"
39673 "ERROR HANDLING> section below."
39677 #: ../src/guestfs.pod:1353
39678 msgid "guestfs_close"
39679 msgstr "guestfs_close"
39682 #: ../src/guestfs.pod:1355
39685 " void guestfs_close (guestfs_h *g);\n"
39688 " void guestfs_close (guestfs_h *g);\n"
39692 #: ../src/guestfs.pod:1357
39693 msgid "This closes the connection handle and frees up all resources used."
39697 #: ../src/guestfs.pod:1359
39699 "If autosync was set on the handle and the handle was launched, then this "
39700 "implicitly calls various functions to unmount filesystems and sync the "
39701 "disk. See L</guestfs_set_autosync> for more details."
39705 #: ../src/guestfs.pod:1363
39706 msgid "If a close callback was set on the handle, then it is called."
39710 #: ../src/guestfs.pod:1365
39711 msgid "ERROR HANDLING"
39712 msgstr "ОБРОБКА ПОМИЛОК"
39715 #: ../src/guestfs.pod:1367
39717 "API functions can return errors. For example, almost all functions that "
39718 "return C<int> will return C<-1> to indicate an error."
39722 #: ../src/guestfs.pod:1370
39724 "Additional information is available for errors: an error message string and "
39725 "optionally an error number (errno) if the thing that failed was a system "
39730 #: ../src/guestfs.pod:1374
39732 "You can get at the additional information about the last error on the handle "
39733 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
39734 "up an error handler with L</guestfs_set_error_handler>."
39738 #: ../src/guestfs.pod:1379
39740 "When the handle is created, a default error handler is installed which "
39741 "prints the error message string to C<stderr>. For small short-running "
39742 "command line programs it is sufficient to do:"
39746 #: ../src/guestfs.pod:1383
39749 " if (guestfs_launch (g) == -1)\n"
39750 " exit (EXIT_FAILURE);\n"
39753 " if (guestfs_launch (g) == -1)\n"
39754 " exit (EXIT_FAILURE);\n"
39758 #: ../src/guestfs.pod:1386
39760 "since the default error handler will ensure that an error message has been "
39761 "printed to C<stderr> before the program exits."
39765 #: ../src/guestfs.pod:1389
39767 "For other programs the caller will almost certainly want to install an "
39768 "alternate error handler or do error handling in-line like this:"
39772 #: ../src/guestfs.pod:1392
39775 " /* This disables the default behaviour of printing errors\n"
39777 " guestfs_set_error_handler (g, NULL, NULL);\n"
39782 #: ../src/guestfs.pod:1396
39785 " if (guestfs_launch (g) == -1) {\n"
39786 " /* Examine the error message and print it etc. */\n"
39787 " char *msg = guestfs_last_error (g);\n"
39788 " int errnum = guestfs_last_errno (g);\n"
39789 " fprintf (stderr, \"%s\", msg);\n"
39790 " if (errnum != 0)\n"
39791 " fprintf (stderr, \": %s\", strerror (errnum));\n"
39792 " fprintf (stderr, \"\\n\");\n"
39799 #: ../src/guestfs.pod:1407
39801 "Out of memory errors are handled differently. The default action is to call "
39802 "L<abort(3)>. If this is undesirable, then you can set a handler using L</"
39803 "guestfs_set_out_of_memory_handler>."
39807 #: ../src/guestfs.pod:1411
39809 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
39810 "because there is no handle if this happens there is no way to get additional "
39811 "error information. However L</guestfs_create> is supposed to be a "
39812 "lightweight operation which can only fail because of insufficient memory (it "
39813 "returns NULL in this case)."
39817 #: ../src/guestfs.pod:1417
39818 msgid "guestfs_last_error"
39819 msgstr "guestfs_last_error"
39822 #: ../src/guestfs.pod:1419
39825 " const char *guestfs_last_error (guestfs_h *g);\n"
39828 " const char *guestfs_last_error (guestfs_h *g);\n"
39832 #: ../src/guestfs.pod:1421
39834 "This returns the last error message that happened on C<g>. If there has not "
39835 "been an error since the handle was created, then this returns C<NULL>."
39839 #: ../src/guestfs.pod:1425
39841 "The lifetime of the returned string is until the next error occurs, or L</"
39842 "guestfs_close> is called."
39846 #: ../src/guestfs.pod:1428
39847 msgid "guestfs_last_errno"
39848 msgstr "guestfs_last_errno"
39851 #: ../src/guestfs.pod:1430
39854 " int guestfs_last_errno (guestfs_h *g);\n"
39857 " int guestfs_last_errno (guestfs_h *g);\n"
39861 #: ../src/guestfs.pod:1432
39862 msgid "This returns the last error number (errno) that happened on C<g>."
39866 #: ../src/guestfs.pod:1434
39867 msgid "If successful, an errno integer not equal to zero is returned."
39871 #: ../src/guestfs.pod:1436
39873 "If no error, this returns 0. This call can return 0 in three situations:"
39877 #: ../src/guestfs.pod:1443
39878 msgid "There has not been any error on the handle."
39882 #: ../src/guestfs.pod:1447
39884 "There has been an error but the errno was meaningless. This corresponds to "
39885 "the case where the error did not come from a failed system call, but for "
39886 "some other reason."
39890 #: ../src/guestfs.pod:1453
39892 "There was an error from a failed system call, but for some reason the errno "
39893 "was not captured and returned. This usually indicates a bug in libguestfs."
39897 #: ../src/guestfs.pod:1459
39899 "Libguestfs tries to convert the errno from inside the applicance into a "
39900 "corresponding errno for the caller (not entirely trivial: the appliance "
39901 "might be running a completely different operating system from the library "
39902 "and error numbers are not standardized across Un*xen). If this could not be "
39903 "done, then the error is translated to C<EINVAL>. In practice this should "
39904 "only happen in very rare circumstances."
39908 #: ../src/guestfs.pod:1467
39909 msgid "guestfs_set_error_handler"
39910 msgstr "guestfs_set_error_handler"
39913 #: ../src/guestfs.pod:1469
39916 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
39918 " const char *msg);\n"
39919 " void guestfs_set_error_handler (guestfs_h *g,\n"
39920 " guestfs_error_handler_cb cb,\n"
39921 " void *opaque);\n"
39924 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
39926 " const char *msg);\n"
39927 " void guestfs_set_error_handler (guestfs_h *g,\n"
39928 " guestfs_error_handler_cb cb,\n"
39929 " void *opaque);\n"
39933 #: ../src/guestfs.pod:1476
39935 "The callback C<cb> will be called if there is an error. The parameters "
39936 "passed to the callback are an opaque data pointer and the error message "
39941 #: ../src/guestfs.pod:1480
39943 "C<errno> is not passed to the callback. To get that the callback must call "
39944 "L</guestfs_last_errno>."
39948 #: ../src/guestfs.pod:1483
39950 "Note that the message string C<msg> is freed as soon as the callback "
39951 "function returns, so if you want to stash it somewhere you must make your "
39956 #: ../src/guestfs.pod:1487
39957 msgid "The default handler prints messages on C<stderr>."
39961 #: ../src/guestfs.pod:1489
39962 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
39966 #: ../src/guestfs.pod:1491
39967 msgid "guestfs_get_error_handler"
39968 msgstr "guestfs_get_error_handler"
39971 #: ../src/guestfs.pod:1493
39974 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
39975 " void **opaque_rtn);\n"
39978 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
39979 " void **opaque_rtn);\n"
39983 #: ../src/guestfs.pod:1496
39984 msgid "Returns the current error handler callback."
39988 #: ../src/guestfs.pod:1498
39989 msgid "guestfs_set_out_of_memory_handler"
39990 msgstr "guestfs_set_out_of_memory_handler"
39993 #: ../src/guestfs.pod:1500
39996 " typedef void (*guestfs_abort_cb) (void);\n"
39997 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
39998 " guestfs_abort_cb);\n"
40003 #: ../src/guestfs.pod:1504
40005 "The callback C<cb> will be called if there is an out of memory situation. "
40006 "I<Note this callback must not return>."
40010 #: ../src/guestfs.pod:1507
40011 msgid "The default is to call L<abort(3)>."
40015 #: ../src/guestfs.pod:1509
40017 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
40021 #: ../src/guestfs.pod:1512
40022 msgid "guestfs_get_out_of_memory_handler"
40023 msgstr "guestfs_get_out_of_memory_handler"
40026 #: ../src/guestfs.pod:1514
40029 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
40032 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
40036 #: ../src/guestfs.pod:1516
40037 msgid "This returns the current out of memory handler."
40041 #: ../src/guestfs.pod:1518
40043 msgstr "ВИКЛИКИ API"
40046 #: ../src/guestfs.pod:1522
40051 #: ../src/guestfs.pod:1524
40056 #: ../src/guestfs.pod:1526
40057 msgid "AVAILABILITY"
40058 msgstr "ДОСТУПНІСТЬ"
40061 #: ../src/guestfs.pod:1528
40062 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
40063 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
40066 #: ../src/guestfs.pod:1530
40068 "Using L</guestfs_available> you can test availability of the following "
40069 "groups of functions. This test queries the appliance to see if the "
40070 "appliance you are currently using supports the functionality."
40074 #: ../src/guestfs.pod:1535
40075 msgid "@AVAILABILITY@"
40076 msgstr "@AVAILABILITY@"
40079 #: ../src/guestfs.pod:1537
40080 msgid "GUESTFISH supported COMMAND"
40084 #: ../src/guestfs.pod:1539
40086 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
40087 "prints out the available groups and whether they are supported by this build "
40088 "of libguestfs. Note however that you have to do C<run> first."
40092 #: ../src/guestfs.pod:1544
40093 msgid "SINGLE CALLS AT COMPILE TIME"
40097 #: ../src/guestfs.pod:1546
40099 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
40100 "function, such as:"
40104 #: ../src/guestfs.pod:1549
40107 " #define LIBGUESTFS_HAVE_DD 1\n"
40110 " #define LIBGUESTFS_HAVE_DD 1\n"
40114 #: ../src/guestfs.pod:1551
40115 msgid "if L</guestfs_dd> is available."
40119 #: ../src/guestfs.pod:1553
40121 "Before version 1.5.8, if you needed to test whether a single libguestfs "
40122 "function is available at compile time, we recommended using build tools such "
40123 "as autoconf or cmake. For example in autotools you could use:"
40127 #: ../src/guestfs.pod:1558
40130 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
40131 " AC_CHECK_FUNCS([guestfs_dd])\n"
40134 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
40135 " AC_CHECK_FUNCS([guestfs_dd])\n"
40139 #: ../src/guestfs.pod:1561
40141 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
40146 #: ../src/guestfs.pod:1564
40147 msgid "SINGLE CALLS AT RUN TIME"
40151 #: ../src/guestfs.pod:1566
40153 "Testing at compile time doesn't guarantee that a function really exists in "
40154 "the library. The reason is that you might be dynamically linked against a "
40155 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
40156 "This situation unfortunately results in a segmentation fault, which is a "
40157 "shortcoming of the C dynamic linking system itself."
40161 #: ../src/guestfs.pod:1573
40163 "You can use L<dlopen(3)> to test if a function is available at run time, as "
40164 "in this example program (note that you still need the compile time check as "
40169 #: ../src/guestfs.pod:1577
40172 " #include <stdio.h>\n"
40173 " #include <stdlib.h>\n"
40174 " #include <unistd.h>\n"
40175 " #include <dlfcn.h>\n"
40176 " #include <guestfs.h>\n"
40179 " #include <stdio.h>\n"
40180 " #include <stdlib.h>\n"
40181 " #include <unistd.h>\n"
40182 " #include <dlfcn.h>\n"
40183 " #include <guestfs.h>\n"
40187 #: ../src/guestfs.pod:1583
40192 " #ifdef LIBGUESTFS_HAVE_DD\n"
40194 " int has_function;\n"
40199 " #ifdef LIBGUESTFS_HAVE_DD\n"
40201 " int has_function;\n"
40205 #: ../src/guestfs.pod:1589
40208 " /* Test if the function guestfs_dd is really available. */\n"
40209 " dl = dlopen (NULL, RTLD_LAZY);\n"
40211 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
40212 " exit (EXIT_FAILURE);\n"
40214 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
40220 #: ../src/guestfs.pod:1598
40223 " if (!has_function)\n"
40224 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
40226 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
40227 " /* Now it's safe to call\n"
40228 " guestfs_dd (g, \"foo\", \"bar\");\n"
40232 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
40239 #: ../src/guestfs.pod:1611
40241 "You may think the above is an awful lot of hassle, and it is. There are "
40242 "other ways outside of the C linking system to ensure that this kind of "
40243 "incompatibility never arises, such as using package versioning:"
40247 #: ../src/guestfs.pod:1616
40250 " Requires: libguestfs >= 1.0.80\n"
40255 #: ../src/guestfs.pod:1618
40256 msgid "CALLS WITH OPTIONAL ARGUMENTS"
40260 #: ../src/guestfs.pod:1620
40262 "A recent feature of the API is the introduction of calls which take optional "
40263 "arguments. In C these are declared 3 ways. The main way is as a call which "
40264 "takes variable arguments (ie. C<...>), as in this example:"
40268 #: ../src/guestfs.pod:1625
40271 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
40274 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
40278 #: ../src/guestfs.pod:1627
40280 "Call this with a list of optional arguments, terminated by C<-1>. So to "
40281 "call with no optional arguments specified:"
40285 #: ../src/guestfs.pod:1630
40288 " guestfs_add_drive_opts (g, filename, -1);\n"
40291 " guestfs_add_drive_opts (g, filename, -1);\n"
40295 #: ../src/guestfs.pod:1632
40296 msgid "With a single optional argument:"
40300 #: ../src/guestfs.pod:1634
40303 " guestfs_add_drive_opts (g, filename,\n"
40304 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40308 " guestfs_add_drive_opts (g, filename,\n"
40309 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40314 #: ../src/guestfs.pod:1638
40319 #: ../src/guestfs.pod:1640
40322 " guestfs_add_drive_opts (g, filename,\n"
40323 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40324 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
40328 " guestfs_add_drive_opts (g, filename,\n"
40329 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40330 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
40335 #: ../src/guestfs.pod:1645
40337 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
40342 #: ../src/guestfs.pod:1648
40343 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
40347 #: ../src/guestfs.pod:1650
40349 "The second variant has the same name with the suffix C<_va>, which works the "
40350 "same way but takes a C<va_list>. See the C manual for details. For the "
40351 "example function, this is declared:"
40355 #: ../src/guestfs.pod:1654
40358 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
40359 " va_list args);\n"
40362 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
40363 " va_list args);\n"
40367 #: ../src/guestfs.pod:1657
40368 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
40372 #: ../src/guestfs.pod:1659
40374 "The third variant is useful where you need to construct these calls. You "
40375 "pass in a structure where you fill in the optional fields. The structure "
40376 "has a bitmask as the first element which you must set to indicate which "
40377 "fields you have filled in. For our example function the structure and call "
40382 #: ../src/guestfs.pod:1665
40385 " struct guestfs_add_drive_opts_argv {\n"
40386 " uint64_t bitmask;\n"
40388 " const char *format;\n"
40391 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
40392 " const struct guestfs_add_drive_opts_argv *optargs);\n"
40395 " struct guestfs_add_drive_opts_argv {\n"
40396 " uint64_t bitmask;\n"
40398 " const char *format;\n"
40401 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
40402 " const struct guestfs_add_drive_opts_argv *optargs);\n"
40406 #: ../src/guestfs.pod:1674
40407 msgid "You could call it like this:"
40411 #: ../src/guestfs.pod:1676
40414 " struct guestfs_add_drive_opts_argv optargs = {\n"
40415 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
40416 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
40417 " .readonly = 1,\n"
40418 " .format = \"qcow2\"\n"
40422 " struct guestfs_add_drive_opts_argv optargs = {\n"
40423 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
40424 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
40425 " .readonly = 1,\n"
40426 " .format = \"qcow2\"\n"
40431 #: ../src/guestfs.pod:1683
40434 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
40437 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
40441 #: ../src/guestfs.pod:1691
40442 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
40446 #: ../src/guestfs.pod:1696
40447 msgid "You do not need to fill in all fields of the structure."
40451 #: ../src/guestfs.pod:1700
40453 "There must be a one-to-one correspondence between fields of the structure "
40454 "that are filled in, and bits set in the bitmask."
40458 #: ../src/guestfs.pod:1705
40459 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
40463 #: ../src/guestfs.pod:1707
40465 "In other languages, optional arguments are expressed in the way that is "
40466 "natural for that language. We refer you to the language-specific "
40467 "documentation for more details on that."
40471 #: ../src/guestfs.pod:1711
40472 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
40476 #: ../src/guestfs.pod:1713
40477 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
40481 #: ../src/guestfs.pod:1715
40483 "B<Note:> This section documents the generic event mechanism introduced in "
40484 "libguestfs 1.10, which you should use in new code if possible. The old "
40485 "functions C<guestfs_set_log_message_callback>, "
40486 "C<guestfs_set_subprocess_quit_callback>, "
40487 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
40488 "C<guestfs_set_progress_callback> are no longer documented in this manual "
40489 "page. Because of the ABI guarantee, the old functions continue to work."
40493 #: ../src/guestfs.pod:1724
40495 "Handles generate events when certain things happen, such as log messages "
40496 "being generated, progress messages during long-running operations, or the "
40497 "handle being closed. The API calls described below let you register a "
40498 "callback to be called when events happen. You can register multiple "
40499 "callbacks (for the same, different or overlapping sets of events), and "
40500 "individually remove callbacks. If callbacks are not removed, then they "
40501 "remain in force until the handle is closed."
40505 #: ../src/guestfs.pod:1732
40507 "In the current implementation, events are only generated synchronously: that "
40508 "means that events (and hence callbacks) can only happen while you are in the "
40509 "middle of making another libguestfs call. The callback is called in the "
40514 #: ../src/guestfs.pod:1737
40516 "Events may contain a payload, usually nothing (void), an array of 64 bit "
40517 "unsigned integers, or a message buffer. Payloads are discussed later on."
40521 #: ../src/guestfs.pod:1741
40522 msgid "CLASSES OF EVENTS"
40526 #: ../src/guestfs.pod:1745
40527 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
40531 #: ../src/guestfs.pod:1748
40533 "The callback function will be called while the handle is being closed "
40534 "(synchronously from L</guestfs_close>)."
40538 #: ../src/guestfs.pod:1751
40540 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
40541 "handles that are open when the program exits. This means that this callback "
40542 "might be called indirectly from L<exit(3)>, which can cause unexpected "
40543 "problems in higher-level languages (eg. if your HLL interpreter has already "
40544 "been cleaned up by the time this is called, and if your callback then jumps "
40545 "into some HLL function)."
40549 #: ../src/guestfs.pod:1758
40551 "If no callback is registered: the handle is closed without any callback "
40556 #: ../src/guestfs.pod:1761
40557 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
40561 #: ../src/guestfs.pod:1764
40563 "The callback function will be called when the child process quits, either "
40564 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
40565 "corresponds to a transition from any state to the CONFIG state)."
40569 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
40570 msgid "If no callback is registered: the event is ignored."
40574 #: ../src/guestfs.pod:1770
40575 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
40579 #: ../src/guestfs.pod:1773
40581 "The callback function will be called when the child process becomes ready "
40582 "first time after it has been launched. (This corresponds to a transition "
40583 "from LAUNCHING to the READY state)."
40587 #: ../src/guestfs.pod:1779
40588 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
40592 #: ../src/guestfs.pod:1782
40594 "Some long-running operations can generate progress messages. If this "
40595 "callback is registered, then it will be called each time a progress message "
40596 "is generated (usually two seconds after the operation started, and three "
40597 "times per second thereafter until it completes, although the frequency may "
40598 "change in future versions)."
40602 #: ../src/guestfs.pod:1788
40604 "The callback receives in the payload four unsigned 64 bit numbers which are "
40605 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
40609 #: ../src/guestfs.pod:1791
40611 "The units of C<total> are not defined, although for some operations C<total> "
40612 "may relate in some way to the amount of data to be transferred (eg. in bytes "
40613 "or megabytes), and C<position> may be the portion which has been transferred."
40617 #: ../src/guestfs.pod:1796
40618 msgid "The only defined and stable parts of the API are:"
40622 #: ../src/guestfs.pod:1802
40624 "The callback can display to the user some type of progress bar or indicator "
40625 "which shows the ratio of C<position>:C<total>."
40629 #: ../src/guestfs.pod:1807
40630 msgid "0 E<lt>= C<position> E<lt>= C<total>"
40634 #: ../src/guestfs.pod:1811
40636 "If any progress notification is sent during a call, then a final progress "
40637 "notification is always sent when C<position> = C<total> (I<unless> the call "
40638 "fails with an error)."
40642 #: ../src/guestfs.pod:1815
40644 "This is to simplify caller code, so callers can easily set the progress "
40645 "indicator to \"100%\" at the end of the operation, without requiring special "
40646 "code to detect this case."
40650 #: ../src/guestfs.pod:1821
40652 "For some calls we are unable to estimate the progress of the call, but we "
40653 "can still generate progress messages to indicate activity. This is known as "
40654 "\"pulse mode\", and is directly supported by certain progress bar "
40655 "implementations (eg. GtkProgressBar)."
40659 #: ../src/guestfs.pod:1826
40661 "For these calls, zero or more progress messages are generated with "
40662 "C<position = 0> and C<total = 1>, followed by a final message with "
40663 "C<position = total = 1>."
40667 #: ../src/guestfs.pod:1830
40669 "As noted above, if the call fails with an error then the final message may "
40670 "not be generated."
40674 #: ../src/guestfs.pod:1835
40676 "The callback also receives the procedure number (C<proc_nr>) and serial "
40677 "number (C<serial>) of the call. These are only useful for debugging "
40678 "protocol issues, and the callback can normally ignore them. The callback "
40679 "may want to print these numbers in error messages or debugging messages."
40683 #: ../src/guestfs.pod:1841
40684 msgid "If no callback is registered: progress messages are discarded."
40688 #: ../src/guestfs.pod:1843
40689 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
40693 #: ../src/guestfs.pod:1846
40695 "The callback function is called whenever a log message is generated by qemu, "
40696 "the appliance kernel, guestfsd (daemon), or utility programs."
40700 #: ../src/guestfs.pod:1849
40702 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
40703 "guestfs_launch>) then additional debug messages are generated."
40707 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
40709 "If no callback is registered: the messages are discarded unless the verbose "
40710 "flag is set in which case they are sent to stderr. You can override the "
40711 "printing of verbose messages to stderr by setting up a callback."
40715 #: ../src/guestfs.pod:1857
40716 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
40720 #: ../src/guestfs.pod:1860
40722 "The callback function is called whenever a log message is generated by the "
40723 "library part of libguestfs."
40727 #: ../src/guestfs.pod:1863
40729 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
40730 "messages are generated."
40734 #: ../src/guestfs.pod:1871
40735 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
40739 #: ../src/guestfs.pod:1874
40741 "The callback function is called whenever a trace message is generated. This "
40742 "only applies if the trace flag (L</guestfs_set_trace>) is set."
40746 #: ../src/guestfs.pod:1877
40748 "If no callback is registered: the messages are sent to stderr. You can "
40749 "override the printing of trace messages to stderr by setting up a callback."
40753 #: ../src/guestfs.pod:1881
40754 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
40758 #: ../src/guestfs.pod:1884
40760 "The callback function is called whenever a libguestfs function is entered."
40764 #: ../src/guestfs.pod:1887
40766 "The payload is a string which contains the name of the function that we are "
40767 "entering (not including C<guestfs_> prefix)."
40771 #: ../src/guestfs.pod:1890
40773 "Note that libguestfs functions can call themselves, so you may see many "
40774 "events from a single call. A few libguestfs functions do not generate this "
40779 #: ../src/guestfs.pod:1898
40780 msgid "guestfs_set_event_callback"
40784 #: ../src/guestfs.pod:1900
40787 " int guestfs_set_event_callback (guestfs_h *g,\n"
40788 " guestfs_event_callback cb,\n"
40789 " uint64_t event_bitmask,\n"
40791 " void *opaque);\n"
40796 #: ../src/guestfs.pod:1906
40798 "This function registers a callback (C<cb>) for all event classes in the "
40799 "C<event_bitmask>."
40803 #: ../src/guestfs.pod:1909
40805 "For example, to register for all log message events, you could call this "
40806 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. "
40807 "To register a single callback for all possible classes of events, use "
40808 "C<GUESTFS_EVENT_ALL>."
40812 #: ../src/guestfs.pod:1915
40813 msgid "C<flags> should always be passed as 0."
40817 #: ../src/guestfs.pod:1917
40819 "C<opaque> is an opaque pointer which is passed to the callback. You can use "
40820 "it for any purpose."
40824 #: ../src/guestfs.pod:1920
40826 "The return value is the event handle (an integer) which you can use to "
40827 "delete the callback (see below)."
40831 #: ../src/guestfs.pod:1923
40833 "If there is an error, this function returns C<-1>, and sets the error in the "
40834 "handle in the usual way (see L</guestfs_last_error> etc.)"
40838 #: ../src/guestfs.pod:1926
40840 "Callbacks remain in effect until they are deleted, or until the handle is "
40845 #: ../src/guestfs.pod:1929
40847 "In the case where multiple callbacks are registered for a particular event "
40848 "class, all of the callbacks are called. The order in which multiple "
40849 "callbacks are called is not defined."
40853 #: ../src/guestfs.pod:1933
40854 msgid "guestfs_delete_event_callback"
40858 #: ../src/guestfs.pod:1935
40861 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
40866 #: ../src/guestfs.pod:1937
40868 "Delete a callback that was previously registered. C<event_handle> should be "
40869 "the integer that was returned by a previous call to "
40870 "C<guestfs_set_event_callback> on the same handle."
40874 #: ../src/guestfs.pod:1941
40875 msgid "guestfs_event_callback"
40879 #: ../src/guestfs.pod:1943
40882 " typedef void (*guestfs_event_callback) (\n"
40885 " uint64_t event,\n"
40886 " int event_handle,\n"
40888 " const char *buf, size_t buf_len,\n"
40889 " const uint64_t *array, size_t array_len);\n"
40894 #: ../src/guestfs.pod:1952
40896 "This is the type of the event callback function that you have to provide."
40900 #: ../src/guestfs.pod:1955
40902 "The basic parameters are: the handle (C<g>), the opaque user pointer "
40903 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
40904 "handle, and C<flags> which in the current API you should ignore."
40908 #: ../src/guestfs.pod:1959
40910 "The remaining parameters contain the event payload (if any). Each event may "
40911 "contain a payload, which usually relates to the event class, but for future "
40912 "proofing your code should be written to handle any payload for any event "
40917 #: ../src/guestfs.pod:1964
40919 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
40920 "there is no message buffer). Note that this message buffer can contain "
40921 "arbitrary 8 bit data, including NUL bytes."
40925 #: ../src/guestfs.pod:1968
40927 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
40928 "moment this is only used for progress messages."
40932 #: ../src/guestfs.pod:1971
40933 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
40937 #: ../src/guestfs.pod:1973
40939 "One motivation for the generic event API was to allow GUI programs to "
40940 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
40941 "unconditionally to C<stderr>."
40945 #: ../src/guestfs.pod:1977
40947 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
40948 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
40949 "messages are not events; you must capture error messages separately)."
40953 #: ../src/guestfs.pod:1982
40955 "Programs have to set up a callback to capture the classes of events of "
40960 #: ../src/guestfs.pod:1985
40964 " guestfs_set_event_callback\n"
40965 " (g, message_callback,\n"
40966 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
40967 " GUESTFS_EVENT_TRACE,\n"
40968 " 0, NULL) == -1)\n"
40969 " if (eh == -1) {\n"
40970 " // handle error in the usual way\n"
40976 #: ../src/guestfs.pod:1995
40978 "The callback can then direct messages to the appropriate place. In this "
40979 "example, messages are directed to syslog:"
40983 #: ../src/guestfs.pod:1998
40987 " message_callback (\n"
40990 " uint64_t event,\n"
40991 " int event_handle,\n"
40993 " const char *buf, size_t buf_len,\n"
40994 " const uint64_t *array, size_t array_len)\n"
40996 " const int priority = LOG_USER|LOG_INFO;\n"
40997 " if (buf_len > 0)\n"
40998 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
41004 #: ../src/guestfs.pod:2013
41005 msgid "CANCELLING LONG TRANSFERS"
41009 #: ../src/guestfs.pod:2015
41011 "Some operations can be cancelled by the caller while they are in progress. "
41012 "Currently only operations that involve uploading or downloading data can be "
41013 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
41014 "parameters in the generator)."
41018 #: ../src/guestfs.pod:2020
41019 msgid "guestfs_user_cancel"
41023 #: ../src/guestfs.pod:2022
41026 " void guestfs_user_cancel (guestfs_h *g);\n"
41031 #: ../src/guestfs.pod:2024
41033 "C<guestfs_user_cancel> cancels the current upload or download operation."
41037 #: ../src/guestfs.pod:2027
41039 "Unlike most other libguestfs calls, this function is signal safe and thread "
41040 "safe. You can call it from a signal handler or from another thread, without "
41041 "needing to do any locking."
41045 #: ../src/guestfs.pod:2031
41047 "The transfer that was in progress (if there is one) will stop shortly "
41048 "afterwards, and will return an error. The errno (see L</"
41049 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
41050 "out if the operation was cancelled or failed because of another error."
41054 #: ../src/guestfs.pod:2037
41056 "No cleanup is performed: for example, if a file was being uploaded then "
41057 "after cancellation there may be a partially uploaded file. It is the "
41058 "caller's responsibility to clean up if necessary."
41062 #: ../src/guestfs.pod:2041
41063 msgid "There are two common places that you might call C<guestfs_user_cancel>."
41067 #: ../src/guestfs.pod:2043
41069 "In an interactive text-based program, you might call it from a C<SIGINT> "
41070 "signal handler so that pressing C<^C> cancels the current operation. (You "
41071 "also need to call L</guestfs_set_pgroup> so that child processes don't "
41072 "receive the C<^C> signal)."
41076 #: ../src/guestfs.pod:2048
41078 "In a graphical program, when the main thread is displaying a progress bar "
41079 "with a cancel button, wire up the cancel button to call this function."
41083 #: ../src/guestfs.pod:2052
41084 msgid "PRIVATE DATA AREA"
41088 #: ../src/guestfs.pod:2054
41090 "You can attach named pieces of private data to the libguestfs handle, fetch "
41091 "them by name, and walk over them, for the lifetime of the handle. This is "
41092 "called the private data area and is only available from the C API."
41096 #: ../src/guestfs.pod:2059
41097 msgid "To attach a named piece of data, use the following call:"
41101 #: ../src/guestfs.pod:2061
41104 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
41107 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
41111 #: ../src/guestfs.pod:2063
41113 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
41114 "pointer (which can be C<NULL>). Any previous item with the same key is "
41119 #: ../src/guestfs.pod:2067
41121 "You can use any C<key> you want, but your key should I<not> start with an "
41122 "underscore character. Keys beginning with an underscore character are "
41123 "reserved for internal libguestfs purposes (eg. for implementing language "
41124 "bindings). It is recommended that you prefix the key with some unique "
41125 "string to avoid collisions with other users."
41129 #: ../src/guestfs.pod:2073
41130 msgid "To retrieve the pointer, use:"
41134 #: ../src/guestfs.pod:2075
41137 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
41140 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
41144 #: ../src/guestfs.pod:2077
41146 "This function returns C<NULL> if either no data is found associated with "
41147 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
41152 #: ../src/guestfs.pod:2081
41154 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
41155 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
41156 "all. In particular, libguestfs does I<not> try to free the data when the "
41157 "handle is closed. If the data must be freed, then the caller must either "
41158 "free it before calling L</guestfs_close> or must set up a close callback to "
41159 "do it (see L</GUESTFS_EVENT_CLOSE>)."
41163 #: ../src/guestfs.pod:2088
41164 msgid "To walk over all entries, use these two functions:"
41168 #: ../src/guestfs.pod:2090
41171 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
41176 #: ../src/guestfs.pod:2092
41179 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
41184 #: ../src/guestfs.pod:2094
41186 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
41187 "not have any particular meaning -- keys are not returned in any defined "
41188 "order). A pointer to the key is returned in C<*key_rtn> and the "
41189 "corresponding data pointer is returned from the function. C<NULL> is "
41190 "returned if there are no keys stored in the handle."
41194 #: ../src/guestfs.pod:2100
41196 "C<guestfs_next_private> returns the next key, pointer pair. The return "
41197 "value of this function is also C<NULL> is there are no further entries to "
41202 #: ../src/guestfs.pod:2104
41203 msgid "Notes about walking over entries:"
41207 #: ../src/guestfs.pod:2110
41209 "You must not call C<guestfs_set_private> while walking over the entries."
41213 #: ../src/guestfs.pod:2115
41215 "The handle maintains an internal iterator which is reset when you call "
41216 "C<guestfs_first_private>. This internal iterator is invalidated when you "
41217 "call C<guestfs_set_private>."
41221 #: ../src/guestfs.pod:2121
41222 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
41226 #: ../src/guestfs.pod:2123
41229 " guestfs_set_private (g, key, NULL);\n"
41234 #: ../src/guestfs.pod:2125
41235 msgid "then that C<key> is not returned when walking."
41239 #: ../src/guestfs.pod:2129
41241 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
41242 "C<guestfs_next_private> or C<guestfs_set_private>."
41246 #: ../src/guestfs.pod:2135
41248 "The following example code shows how to print all keys and data pointers "
41249 "that are associated with the handle C<g>:"
41253 #: ../src/guestfs.pod:2138
41256 " const char *key;\n"
41257 " void *data = guestfs_first_private (g, &key);\n"
41258 " while (data != NULL)\n"
41260 " printf (\"key = %s, data = %p\\n\", key, data);\n"
41261 " data = guestfs_next_private (g, &key);\n"
41267 #: ../src/guestfs.pod:2146
41269 "More commonly you are only interested in keys that begin with an application-"
41270 "specific prefix C<foo_>. Modify the loop like so:"
41274 #: ../src/guestfs.pod:2149
41277 " const char *key;\n"
41278 " void *data = guestfs_first_private (g, &key);\n"
41279 " while (data != NULL)\n"
41281 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
41282 " printf (\"key = %s, data = %p\\n\", key, data);\n"
41283 " data = guestfs_next_private (g, &key);\n"
41289 #: ../src/guestfs.pod:2158
41291 "If you need to modify keys while walking, then you have to jump back to the "
41292 "beginning of the loop. For example, to delete all keys prefixed with "
41297 #: ../src/guestfs.pod:2162
41300 " const char *key;\n"
41303 " data = guestfs_first_private (g, &key);\n"
41304 " while (data != NULL)\n"
41306 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
41308 " guestfs_set_private (g, key, NULL);\n"
41309 " /* note that 'key' pointer is now invalid, and so is\n"
41310 " the internal iterator */\n"
41313 " data = guestfs_next_private (g, &key);\n"
41319 #: ../src/guestfs.pod:2178
41321 "Note that the above loop is guaranteed to terminate because the keys are "
41322 "being deleted, but other manipulations of keys within the loop might not "
41323 "terminate unless you also maintain an indication of which keys have been "
41328 #: ../src/guestfs.pod:2183
41333 #: ../src/guestfs.pod:2185
41335 "The libguestfs C library can be probed using systemtap or DTrace. This is "
41336 "true of any library, not just libguestfs. However libguestfs also contains "
41337 "static markers to help in probing internal operations."
41341 #: ../src/guestfs.pod:2189
41342 msgid "You can list all the static markers by doing:"
41346 #: ../src/guestfs.pod:2191
41349 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
41350 " .provider(\"guestfs\").mark(\"*\")'\n"
41355 #: ../src/guestfs.pod:2194
41357 "B<Note:> These static markers are I<not> part of the stable API and may "
41358 "change in future versions."
41362 #: ../src/guestfs.pod:2197
41363 msgid "SYSTEMTAP SCRIPT EXAMPLE"
41367 #: ../src/guestfs.pod:2199
41369 "This script contains examples of displaying both the static markers and some "
41370 "ordinary C entry points:"
41374 #: ../src/guestfs.pod:2202
41382 #: ../src/guestfs.pod:2204
41385 " function display_time () {\n"
41386 " now = gettimeofday_us ();\n"
41389 " delta = now - last;\n"
41395 #: ../src/guestfs.pod:2211
41398 " printf (\"%d (+%d):\", now, delta);\n"
41404 #: ../src/guestfs.pod:2214
41409 " printf (\"ready\\n\");\n"
41415 #: ../src/guestfs.pod:2219
41418 " /* Display all calls to static markers. */\n"
41419 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
41420 " .provider(\"guestfs\").mark(\"*\") ? {\n"
41421 " display_time();\n"
41422 " printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
41428 #: ../src/guestfs.pod:2226
41431 " /* Display all calls to guestfs_mkfs* functions. */\n"
41432 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
41433 " .function(\"guestfs_mkfs*\") ? {\n"
41434 " display_time();\n"
41435 " printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
41441 #: ../src/guestfs.pod:2233
41443 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
41444 "program. Note that you either have to be root, or you have to add yourself "
41445 "to several special stap groups. Consult the systemtap documentation for "
41446 "more information."
41450 #: ../src/guestfs.pod:2238
41453 " # stap /tmp/test.stap\n"
41459 #: ../src/guestfs.pod:2241
41460 msgid "In another terminal, run a guestfish command such as this:"
41464 #: ../src/guestfs.pod:2245
41465 msgid "In the first terminal, stap trace output similar to this is shown:"
41469 #: ../src/guestfs.pod:2247
41472 " 1318248056692655 (+0):\tlaunch_start\n"
41473 " 1318248056692850 (+195): launch_build_appliance_start\n"
41474 " 1318248056818285 (+125435): launch_build_appliance_end\n"
41475 " 1318248056838059 (+19774): launch_run_qemu\n"
41476 " 1318248061071167 (+4233108): launch_end\n"
41477 " 1318248061280324 (+209157): guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
41482 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
41487 #: ../src/guestfs.pod:2256
41489 "<!-- old anchor for the next section --> <a name="
41490 "\"state_machine_and_low_level_event_api\"/>"
41492 "<!-- old anchor for the next section --> <a name="
41493 "\"state_machine_and_low_level_event_api\"/>"
41496 #: ../src/guestfs.pod:2261
41497 msgid "ARCHITECTURE"
41498 msgstr "АРХІТЕКТУРА"
41501 #: ../src/guestfs.pod:2263
41503 "Internally, libguestfs is implemented by running an appliance (a special "
41504 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
41505 "process of the main program."
41509 #: ../src/guestfs.pod:2267
41512 " ___________________\n"
41514 " | main program |\n"
41516 " | | child process / appliance\n"
41517 " | | __________________________\n"
41519 " +-------------------+ RPC | +-----------------+ |\n"
41520 " | libguestfs <--------------------> guestfsd | |\n"
41521 " | | | +-----------------+ |\n"
41522 " \\___________________/ | | Linux kernel | |\n"
41523 " | +--^--------------+ |\n"
41524 " \\_________|________________/\n"
41526 " _______v______\n"
41529 " | disk image |\n"
41530 " \\______________/\n"
41535 #: ../src/guestfs.pod:2287
41537 "The library, linked to the main program, creates the child process and hence "
41538 "the appliance in the L</guestfs_launch> function."
41542 #: ../src/guestfs.pod:2290
41544 "Inside the appliance is a Linux kernel and a complete stack of userspace "
41545 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
41546 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
41547 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
41548 "API calls and RPC calls to the daemon. Lastly the disk image(s) are "
41549 "attached to the qemu process which translates device access by the "
41550 "appliance's Linux kernel into accesses to the image."
41554 #: ../src/guestfs.pod:2299
41556 "A common misunderstanding is that the appliance \"is\" the virtual machine. "
41557 "Although the disk image you are attached to might also be used by some "
41558 "virtual machine, libguestfs doesn't know or care about this. (But you will "
41559 "care if both libguestfs's qemu process and your virtual machine are trying "
41560 "to update the disk image at the same time, since these usually results in "
41561 "massive disk corruption)."
41565 #: ../src/guestfs.pod:2306
41566 msgid "STATE MACHINE"
41567 msgstr "СКІНЧЕННИЙ АВТОМАТ"
41570 #: ../src/guestfs.pod:2308
41571 msgid "libguestfs uses a state machine to model the child process:"
41575 #: ../src/guestfs.pod:2310
41579 " guestfs_create\n"
41587 " / | \\ \\ guestfs_launch\n"
41588 " / | _\\__V______\n"
41590 " / | | LAUNCHING |\n"
41591 " / | \\___________/\n"
41593 " / | guestfs_launch\n"
41595 " ______ / __|____V\n"
41596 " / \\ ------> / \\\n"
41597 " | BUSY | | READY |\n"
41598 " \\______/ <------ \\________/\n"
41603 #: ../src/guestfs.pod:2332
41605 "The normal transitions are (1) CONFIG (when the handle is created, but there "
41606 "is no child process), (2) LAUNCHING (when the child process is booting up), "
41607 "(3) alternating between READY and BUSY as commands are issued to, and "
41608 "carried out by, the child process."
41612 #: ../src/guestfs.pod:2337
41614 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
41615 "asynchronously at any time (eg. due to some internal error), and that causes "
41616 "the state to transition back to CONFIG."
41620 #: ../src/guestfs.pod:2341
41622 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
41623 "issued when in the CONFIG state."
41627 #: ../src/guestfs.pod:2344
41629 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
41630 "L</guestfs_launch> blocks until the child process is READY to accept "
41631 "commands (or until some failure or timeout). L</guestfs_launch> internally "
41632 "moves the state from CONFIG to LAUNCHING while it is running."
41636 #: ../src/guestfs.pod:2350
41638 "API actions such as L</guestfs_mount> can only be issued when in the READY "
41639 "state. These API calls block waiting for the command to be carried out (ie. "
41640 "the state to transition to BUSY and then back to READY). There are no non-"
41641 "blocking versions, and no way to issue more than one command per handle at "
41646 #: ../src/guestfs.pod:2356
41648 "Finally, the child process sends asynchronous messages back to the main "
41649 "program, such as kernel log messages. You can register a callback to "
41650 "receive these messages."
41654 #: ../src/guestfs.pod:2360
41659 #: ../src/guestfs.pod:2362
41660 msgid "APPLIANCE BOOT PROCESS"
41664 #: ../src/guestfs.pod:2364
41666 "This process has evolved and continues to evolve. The description here "
41667 "corresponds only to the current version of libguestfs and is provided for "
41668 "information only."
41672 #: ../src/guestfs.pod:2368
41674 "In order to follow the stages involved below, enable libguestfs debugging "
41675 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
41679 #: ../src/guestfs.pod:2373
41680 msgid "Create the appliance"
41684 #: ../src/guestfs.pod:2375
41686 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
41687 "initrd and the appliance."
41691 #: ../src/guestfs.pod:2378
41693 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
41694 "directory if C<TMPDIR> is set)."
41698 #: ../src/guestfs.pod:2381
41700 "For a complete description of how the appliance is created and cached, read "
41701 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
41705 #: ../src/guestfs.pod:2385
41706 msgid "Start qemu and boot the kernel"
41710 #: ../src/guestfs.pod:2387
41711 msgid "qemu is invoked to boot the kernel."
41715 #: ../src/guestfs.pod:2389
41716 msgid "Run the initrd"
41720 #: ../src/guestfs.pod:2391
41722 "C<febootstrap-supermin-helper> builds a small initrd. The initrd is not the "
41723 "appliance. The purpose of the initrd is to load enough kernel modules in "
41724 "order that the appliance itself can be mounted and started."
41728 #: ../src/guestfs.pod:2395
41730 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
41735 #: ../src/guestfs.pod:2398
41737 "When the initrd has started you will see messages showing that kernel "
41738 "modules are being loaded, similar to this:"
41742 #: ../src/guestfs.pod:2401
41745 " febootstrap: ext2 mini initrd starting up\n"
41746 " febootstrap: mounting /sys\n"
41747 " febootstrap: internal insmod libcrc32c.ko\n"
41748 " febootstrap: internal insmod crc32c-intel.ko\n"
41753 #: ../src/guestfs.pod:2406
41754 msgid "Find and mount the appliance device"
41758 #: ../src/guestfs.pod:2408
41760 "The appliance is a sparse file containing an ext2 filesystem which contains "
41761 "a familiar (although reduced in size) Linux operating system. It would "
41762 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
41766 #: ../src/guestfs.pod:2412
41768 "The regular disks being inspected by libguestfs are the first devices "
41769 "exposed by qemu (eg. as C</dev/vda>)."
41773 #: ../src/guestfs.pod:2415
41775 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
41776 "there was only one regular disk)."
41780 #: ../src/guestfs.pod:2418
41782 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
41783 "and switch root into the appliance, and run C</init> from the appliance."
41787 #: ../src/guestfs.pod:2422
41788 msgid "If this works successfully you will see messages such as:"
41792 #: ../src/guestfs.pod:2424
41795 " febootstrap: picked /sys/block/vdb/dev as root device\n"
41796 " febootstrap: creating /dev/root as block special 252:16\n"
41797 " febootstrap: mounting new root on /root\n"
41798 " febootstrap: chroot\n"
41799 " Starting /init script ...\n"
41804 #: ../src/guestfs.pod:2430
41806 "Note that C<Starting /init script ...> indicates that the appliance's init "
41807 "script is now running."
41811 #: ../src/guestfs.pod:2433
41812 msgid "Initialize the appliance"
41816 #: ../src/guestfs.pod:2435
41818 "The appliance itself now initializes itself. This involves starting certain "
41819 "processes like C<udev>, possibly printing some debug information, and "
41820 "finally running the daemon (C<guestfsd>)."
41824 #: ../src/guestfs.pod:2439
41829 #: ../src/guestfs.pod:2441
41831 "Finally the daemon (C<guestfsd>) runs inside the appliance. If it runs you "
41836 #: ../src/guestfs.pod:2444
41839 " verbose daemon enabled\n"
41844 #: ../src/guestfs.pod:2446
41846 "The daemon expects to see a named virtio-serial port exposed by qemu and "
41847 "connected on the other end to the library."
41851 #: ../src/guestfs.pod:2449
41853 "The daemon connects to this port (and hence to the library) and sends a four "
41854 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
41855 "protocol (see below)."
41859 #: ../src/guestfs.pod:2455
41860 msgid "COMMUNICATION PROTOCOL"
41864 #: ../src/guestfs.pod:2457
41866 "Don't rely on using this protocol directly. This section documents how it "
41867 "currently works, but it may change at any time."
41871 #: ../src/guestfs.pod:2460
41873 "The protocol used to talk between the library and the daemon running inside "
41874 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
41875 "1014, RFC 1832, RFC 4506)."
41879 #: ../src/guestfs.pod:2464
41881 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
41882 "this file is automatically generated)."
41886 #: ../src/guestfs.pod:2467
41888 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
41889 "and C<FileOut> parameters, which are handled with very simple request/reply "
41890 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
41891 "parameters, which use the same request and reply messages, but they may also "
41892 "be followed by files sent using a chunked encoding."
41896 #: ../src/guestfs.pod:2474
41897 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
41901 #: ../src/guestfs.pod:2476
41902 msgid "For ordinary functions, the request message is:"
41906 #: ../src/guestfs.pod:2478
41909 " total length (header + arguments,\n"
41910 " but not including the length word itself)\n"
41911 " struct guestfs_message_header (encoded as XDR)\n"
41912 " struct guestfs_<foo>_args (encoded as XDR)\n"
41917 #: ../src/guestfs.pod:2483
41919 "The total length field allows the daemon to allocate a fixed size buffer "
41920 "into which it slurps the rest of the message. As a result, the total length "
41921 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
41922 "effective size of any request is limited to somewhere under this size."
41926 #: ../src/guestfs.pod:2489
41928 "Note also that many functions don't take any arguments, in which case the "
41929 "C<guestfs_I<foo>_args> is completely omitted."
41933 #: ../src/guestfs.pod:2492
41935 "The header contains the procedure number (C<guestfs_proc>) which is how the "
41936 "receiver knows what type of args structure to expect, or none at all."
41940 #: ../src/guestfs.pod:2496
41942 "For functions that take optional arguments, the optional arguments are "
41943 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
41944 "arguments. A bitmask in the header indicates which optional arguments are "
41945 "meaningful. The bitmask is also checked to see if it contains bits set "
41946 "which the daemon does not know about (eg. if more optional arguments were "
41947 "added in a later version of the library), and this causes the call to be "
41952 #: ../src/guestfs.pod:2504
41953 msgid "The reply message for ordinary functions is:"
41957 #: ../src/guestfs.pod:2506
41960 " total length (header + ret,\n"
41961 " but not including the length word itself)\n"
41962 " struct guestfs_message_header (encoded as XDR)\n"
41963 " struct guestfs_<foo>_ret (encoded as XDR)\n"
41968 #: ../src/guestfs.pod:2511
41970 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
41971 "functions that return no formal return values."
41975 #: ../src/guestfs.pod:2514
41977 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
41981 #: ../src/guestfs.pod:2517
41983 "In the case of an error, a flag is set in the header, and the reply message "
41984 "is slightly changed:"
41988 #: ../src/guestfs.pod:2520
41991 " total length (header + error,\n"
41992 " but not including the length word itself)\n"
41993 " struct guestfs_message_header (encoded as XDR)\n"
41994 " struct guestfs_message_error (encoded as XDR)\n"
41999 #: ../src/guestfs.pod:2525
42001 "The C<guestfs_message_error> structure contains the error message as a "
42006 #: ../src/guestfs.pod:2528
42007 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
42011 #: ../src/guestfs.pod:2530
42013 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
42014 "The normal request message is sent (see above). However this is followed by "
42015 "a sequence of file chunks."
42019 #: ../src/guestfs.pod:2534
42022 " total length (header + arguments,\n"
42023 " but not including the length word itself,\n"
42024 " and not including the chunks)\n"
42025 " struct guestfs_message_header (encoded as XDR)\n"
42026 " struct guestfs_<foo>_args (encoded as XDR)\n"
42027 " sequence of chunks for FileIn param #0\n"
42028 " sequence of chunks for FileIn param #1 etc.\n"
42033 #: ../src/guestfs.pod:2542
42034 msgid "The \"sequence of chunks\" is:"
42038 #: ../src/guestfs.pod:2544
42041 " length of chunk (not including length word itself)\n"
42042 " struct guestfs_chunk (encoded as XDR)\n"
42043 " length of chunk\n"
42044 " struct guestfs_chunk (encoded as XDR)\n"
42046 " length of chunk\n"
42047 " struct guestfs_chunk (with data.data_len == 0)\n"
42052 #: ../src/guestfs.pod:2552
42054 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
42055 "is set in the final chunk to indicate either successful completion or early "
42060 #: ../src/guestfs.pod:2556
42062 "At time of writing there are no functions that have more than one FileIn "
42063 "parameter. However this is (theoretically) supported, by sending the "
42064 "sequence of chunks for each FileIn parameter one after another (from left to "
42069 #: ../src/guestfs.pod:2561
42071 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
42072 "transfer. The library does this by sending a chunk with a special flag set "
42073 "to indicate cancellation. When the daemon sees this, it cancels the whole "
42074 "RPC, does I<not> send any reply, and goes back to reading the next request."
42078 #: ../src/guestfs.pod:2567
42080 "The daemon may also cancel. It does this by writing a special word "
42081 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
42082 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
42083 "cancel chunk). The special word is chosen so that even if cancellation "
42084 "happens right at the end of the transfer (after the library has finished "
42085 "writing and has started listening for the reply), the \"spurious\" cancel "
42086 "flag will not be confused with the reply message."
42090 #: ../src/guestfs.pod:2576
42092 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
42093 "limit), and also files where the size is not known in advance (eg. from "
42094 "pipes or sockets). However the chunks are rather small "
42095 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
42096 "to keep much in memory."
42100 #: ../src/guestfs.pod:2582
42101 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
42105 #: ../src/guestfs.pod:2584
42107 "The protocol for FileOut parameters is exactly the same as for FileIn "
42108 "parameters, but with the roles of daemon and library reversed."
42112 #: ../src/guestfs.pod:2587
42115 " total length (header + ret,\n"
42116 " but not including the length word itself,\n"
42117 " and not including the chunks)\n"
42118 " struct guestfs_message_header (encoded as XDR)\n"
42119 " struct guestfs_<foo>_ret (encoded as XDR)\n"
42120 " sequence of chunks for FileOut param #0\n"
42121 " sequence of chunks for FileOut param #1 etc.\n"
42126 #: ../src/guestfs.pod:2595
42127 msgid "INITIAL MESSAGE"
42131 #: ../src/guestfs.pod:2597
42133 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
42134 "which indicates that the guest and daemon is alive. This is what L</"
42135 "guestfs_launch> waits for."
42139 #: ../src/guestfs.pod:2601
42140 msgid "PROGRESS NOTIFICATION MESSAGES"
42144 #: ../src/guestfs.pod:2603
42146 "The daemon may send progress notification messages at any time. These are "
42147 "distinguished by the normal length word being replaced by "
42148 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
42152 #: ../src/guestfs.pod:2607
42154 "The library turns them into progress callbacks (see L</"
42155 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
42160 #: ../src/guestfs.pod:2611
42162 "The daemon self-limits the frequency of progress messages it sends (see "
42163 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
42168 #: ../src/guestfs.pod:2615
42169 msgid "LIBGUESTFS VERSION NUMBERS"
42173 #: ../src/guestfs.pod:2617
42175 "Since April 2010, libguestfs has started to make separate development and "
42176 "stable releases, along with corresponding branches in our git repository. "
42177 "These separate releases can be identified by version number:"
42181 #: ../src/guestfs.pod:2622
42184 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
42185 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
42191 " | `-------- sub-version\n"
42193 " `------ always '1' because we don't change the ABI\n"
42198 #: ../src/guestfs.pod:2633
42199 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
42203 #: ../src/guestfs.pod:2635
42205 "As time passes we cherry pick fixes from the development branch and backport "
42206 "those into the stable branch, the effect being that the stable branch should "
42207 "get more stable and less buggy over time. So the stable releases are ideal "
42208 "for people who don't need new features but would just like the software to "
42213 #: ../src/guestfs.pod:2641
42214 msgid "Our criteria for backporting changes are:"
42218 #: ../src/guestfs.pod:2647
42220 "Documentation changes which don't affect any code are backported unless the "
42221 "documentation refers to a future feature which is not in stable."
42225 #: ../src/guestfs.pod:2653
42227 "Bug fixes which are not controversial, fix obvious problems, and have been "
42228 "well tested are backported."
42232 #: ../src/guestfs.pod:2658
42234 "Simple rearrangements of code which shouldn't affect how it works get "
42235 "backported. This is so that the code in the two branches doesn't get too "
42236 "far out of step, allowing us to backport future fixes more easily."
42240 #: ../src/guestfs.pod:2664
42242 "We I<don't> backport new features, new APIs, new tools etc, except in one "
42243 "exceptional case: the new feature is required in order to implement an "
42244 "important bug fix."
42248 #: ../src/guestfs.pod:2670
42250 "A new stable branch starts when we think the new features in development are "
42251 "substantial and compelling enough over the current stable branch to warrant "
42252 "it. When that happens we create new stable and development versions 1.N.0 "
42253 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
42254 "stable at this point, but by backporting fixes from development, that branch "
42255 "will stabilize over time."
42259 #: ../src/guestfs.pod:2678
42260 msgid "EXTENDING LIBGUESTFS"
42264 #: ../src/guestfs.pod:2680
42265 msgid "ADDING A NEW API ACTION"
42269 #: ../src/guestfs.pod:2682
42271 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
42272 "documentation) are generated, and this makes it easy to extend the "
42277 #: ../src/guestfs.pod:2686
42278 msgid "To add a new API action there are two changes:"
42282 #: ../src/guestfs.pod:2692
42284 "You need to add a description of the call (name, parameters, return type, "
42285 "tests, documentation) to C<generator/generator_actions.ml>."
42289 #: ../src/guestfs.pod:2695
42291 "There are two sorts of API action, depending on whether the call goes "
42292 "through to the daemon in the appliance, or is serviced entirely by the "
42293 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
42294 "former, since the sync is done in the appliance. L</guestfs_set_trace> is "
42295 "an example of the latter, since a trace flag is maintained in the handle and "
42296 "all tracing is done on the library side."
42300 #: ../src/guestfs.pod:2703
42302 "Most new actions are of the first type, and get added to the "
42303 "C<daemon_functions> list. Each function has a unique procedure number used "
42304 "in the RPC protocol which is assigned to that action when we publish "
42305 "libguestfs and cannot be reused. Take the latest procedure number and "
42310 #: ../src/guestfs.pod:2709
42312 "For library-only actions of the second type, add to the "
42313 "C<non_daemon_functions> list. Since these functions are serviced by the "
42314 "library and do not travel over the RPC mechanism to the daemon, these "
42315 "functions do not need a procedure number, and so the procedure number is set "
42320 #: ../src/guestfs.pod:2717
42321 msgid "Implement the action (in C):"
42325 #: ../src/guestfs.pod:2719
42327 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
42328 "C<daemon/> directory."
42332 #: ../src/guestfs.pod:2722
42334 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
42335 "(note: double underscore) in the C<src/> directory."
42339 #: ../src/guestfs.pod:2725
42340 msgid "In either case, use another function as an example of what to do."
42344 #: ../src/guestfs.pod:2729
42345 msgid "After making these changes, use C<make> to compile."
42349 #: ../src/guestfs.pod:2731
42351 "Note that you don't need to implement the RPC, language bindings, manual "
42352 "pages or anything else. It's all automatically generated from the OCaml "
42357 #: ../src/guestfs.pod:2735
42358 msgid "ADDING TESTS FOR AN API ACTION"
42362 #: ../src/guestfs.pod:2737
42364 "You can supply zero or as many tests as you want per API call. The tests "
42365 "can either be added as part of the API description (C<generator/"
42366 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
42367 "into C<regressions/>. Note that adding a script to C<regressions/> is "
42368 "slower, so if possible use the first method."
42372 #: ../src/guestfs.pod:2743
42374 "The following describes the test environment used when you add an API test "
42375 "in C<generator_actions.ml>."
42379 #: ../src/guestfs.pod:2746
42380 msgid "The test environment has 4 block devices:"
42384 #: ../src/guestfs.pod:2750
42385 msgid "C</dev/sda> 500MB"
42386 msgstr "C</dev/sda> 500 МБ"
42389 #: ../src/guestfs.pod:2752
42390 msgid "General block device for testing."
42394 #: ../src/guestfs.pod:2754
42395 msgid "C</dev/sdb> 50MB"
42396 msgstr "C</dev/sdb> 50 МБ"
42399 #: ../src/guestfs.pod:2756
42401 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
42406 #: ../src/guestfs.pod:2759
42407 msgid "C</dev/sdc> 10MB"
42408 msgstr "C</dev/sdc> 10 МБ"
42411 #: ../src/guestfs.pod:2761
42412 msgid "Used in a few tests where two block devices are needed."
42416 #: ../src/guestfs.pod:2763
42417 msgid "C</dev/sdd>"
42418 msgstr "C</dev/sdd>"
42421 #: ../src/guestfs.pod:2765
42422 msgid "ISO with fixed content (see C<images/test.iso>)."
42426 #: ../src/guestfs.pod:2769
42428 "To be able to run the tests in a reasonable amount of time, the libguestfs "
42429 "appliance and block devices are reused between tests. So don't try testing "
42430 "L</guestfs_kill_subprocess> :-x"
42434 #: ../src/guestfs.pod:2773
42436 "Each test starts with an initial scenario, selected using one of the "
42437 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
42438 "initialize the disks mentioned above in a particular way as documented in "
42439 "C<generator_types.ml>. You should not assume anything about the previous "
42440 "contents of other disks that are not initialized."
42444 #: ../src/guestfs.pod:2779
42446 "You can add a prerequisite clause to any individual test. This is a run-"
42447 "time check, which, if it fails, causes the test to be skipped. Useful if "
42448 "testing a command which might not work on all variations of libguestfs "
42449 "builds. A test that has prerequisite of C<Always> means to run "
42454 #: ../src/guestfs.pod:2785
42456 "In addition, packagers can skip individual tests by setting environment "
42457 "variables before running C<make check>."
42461 #: ../src/guestfs.pod:2788
42464 " SKIP_TEST_<CMD>_<NUM>=1\n"
42469 #: ../src/guestfs.pod:2790
42470 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
42474 #: ../src/guestfs.pod:2794
42477 " SKIP_TEST_<CMD>=1\n"
42482 #: ../src/guestfs.pod:2796
42483 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
42487 #: ../src/guestfs.pod:2798
42488 msgid "Packagers can run only certain tests by setting for example:"
42492 #: ../src/guestfs.pod:2800
42495 " TEST_ONLY=\"vfs_type zerofree\"\n"
42500 #: ../src/guestfs.pod:2802
42502 "See C<capitests/tests.c> for more details of how these environment variables "
42507 #: ../src/guestfs.pod:2805
42508 msgid "DEBUGGING NEW API ACTIONS"
42512 #: ../src/guestfs.pod:2807
42513 msgid "Test new actions work before submitting them."
42517 #: ../src/guestfs.pod:2809
42518 msgid "You can use guestfish to try out new commands."
42522 #: ../src/guestfs.pod:2811
42524 "Debugging the daemon is a problem because it runs inside a minimal "
42525 "environment. However you can fprintf messages in the daemon to stderr, and "
42526 "they will show up if you use C<guestfish -v>."
42530 #: ../src/guestfs.pod:2815
42531 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
42535 #: ../src/guestfs.pod:2817
42537 "Our C source code generally adheres to some basic code-formatting "
42538 "conventions. The existing code base is not totally consistent on this "
42539 "front, but we do prefer that contributed code be formatted similarly. In "
42540 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
42541 "indentation level, and other than that, follow the K&R style."
42545 #: ../src/guestfs.pod:2823
42547 "If you use Emacs, add the following to one of one of your start-up files (e."
42548 "g., ~/.emacs), to help ensure that you get indentation right:"
42552 #: ../src/guestfs.pod:2826
42555 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
42556 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
42557 " (add-hook 'find-file-hook\n"
42558 " '(lambda () (if (and buffer-file-name\n"
42559 " (string-match \"/libguestfs\\\\>\"\n"
42560 " (buffer-file-name))\n"
42561 " (not (string-equal mode-name \"Change Log\"))\n"
42562 " (not (string-equal mode-name \"Makefile\")))\n"
42563 " (setq indent-tabs-mode nil))))\n"
42568 #: ../src/guestfs.pod:2836
42571 " ;;; When editing C sources in libguestfs, use this style.\n"
42572 " (defun libguestfs-c-mode ()\n"
42573 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
42575 " (c-set-style \"K&R\")\n"
42576 " (setq c-indent-level 2)\n"
42577 " (setq c-basic-offset 2))\n"
42578 " (add-hook 'c-mode-hook\n"
42579 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
42580 " (buffer-file-name))\n"
42581 " (libguestfs-c-mode))))\n"
42586 #: ../src/guestfs.pod:2848
42587 msgid "Enable warnings when compiling (and fix any problems this finds):"
42591 #: ../src/guestfs.pod:2851
42594 " ./configure --enable-gcc-warnings\n"
42597 " ./configure --enable-gcc-warnings\n"
42601 #: ../src/guestfs.pod:2853
42602 msgid "Useful targets are:"
42606 #: ../src/guestfs.pod:2855
42609 " make syntax-check # checks the syntax of the C code\n"
42610 " make check # runs the test suite\n"
42615 #: ../src/guestfs.pod:2858
42616 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
42620 #: ../src/guestfs.pod:2860
42622 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
42623 "which are used to do shell quoting."
42627 #: ../src/guestfs.pod:2865
42632 #: ../src/guestfs.pod:2867
42634 "Simple shell quoted string. Any spaces or other shell characters are "
42639 #: ../src/guestfs.pod:2870
42644 #: ../src/guestfs.pod:2872
42646 "Same as C<%Q> except the string is treated as a path which is prefixed by "
42651 #: ../src/guestfs.pod:2879
42654 " asprintf (&cmd, \"cat %R\", path);\n"
42657 " asprintf (&cmd, \"cat %R\", path);\n"
42661 #: ../src/guestfs.pod:2881
42662 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
42666 #: ../src/guestfs.pod:2883
42668 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
42669 "{,r,v,rv}()> functions. These parameters do NOT need to be quoted because "
42670 "they are not passed via the shell (instead, straight to exec). You probably "
42671 "want to use the C<sysroot_path()> function however."
42675 #: ../src/guestfs.pod:2889
42676 msgid "SUBMITTING YOUR NEW API ACTIONS"
42680 #: ../src/guestfs.pod:2891
42682 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
42683 "libguestfs> and CC to L<rjones@redhat.com>."
42687 #: ../src/guestfs.pod:2895
42688 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
42692 #: ../src/guestfs.pod:2897
42693 msgid "We support i18n (gettext anyhow) in the library."
42697 #: ../src/guestfs.pod:2899
42699 "However many messages come from the daemon, and we don't translate those at "
42700 "the moment. One reason is that the appliance generally has all locale files "
42701 "removed from it, because they take up a lot of space. So we'd have to readd "
42702 "some of those, as well as copying our PO files into the appliance."
42706 #: ../src/guestfs.pod:2905
42708 "Debugging messages are never translated, since they are intended for the "
42713 #: ../src/guestfs.pod:2908
42714 msgid "SOURCE CODE SUBDIRECTORIES"
42718 #: ../src/guestfs.pod:2912
42723 #: ../src/guestfs.pod:2914
42724 msgid "L<virt-alignment-scan(1)> command and documentation."
42728 #: ../src/guestfs.pod:2918
42729 msgid "The libguestfs appliance, build scripts and so on."
42733 #: ../src/guestfs.pod:2920
42734 msgid "C<capitests>"
42735 msgstr "C<capitests>"
42738 #: ../src/guestfs.pod:2922
42739 msgid "Automated tests of the C API."
42743 #: ../src/guestfs.pod:2924
42748 #: ../src/guestfs.pod:2926
42750 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
42755 #: ../src/guestfs.pod:2929
42757 msgstr "C<caution>"
42760 #: ../src/guestfs.pod:2931
42762 "Safety and liveness tests of components that libguestfs depends upon (not of "
42763 "libguestfs itself). Mainly this is for qemu and the kernel."
42767 #: ../src/guestfs.pod:2934
42772 #: ../src/guestfs.pod:2936
42774 "Tools for cloning virtual machines. Currently contains L<virt-sysprep(1)> "
42775 "command and documentation."
42779 #: ../src/guestfs.pod:2939
42781 msgstr "C<contrib>"
42784 #: ../src/guestfs.pod:2941
42785 msgid "Outside contributions, experimental parts."
42789 #: ../src/guestfs.pod:2943
42794 #: ../src/guestfs.pod:2945
42796 "The daemon that runs inside the libguestfs appliance and carries out actions."
42800 #: ../src/guestfs.pod:2948
42805 #: ../src/guestfs.pod:2950
42806 msgid "L<virt-df(1)> command and documentation."
42810 #: ../src/guestfs.pod:2952
42815 #: ../src/guestfs.pod:2954
42816 msgid "L<virt-edit(1)> command and documentation."
42820 #: ../src/guestfs.pod:2956
42821 msgid "C<examples>"
42822 msgstr "C<examples>"
42825 #: ../src/guestfs.pod:2958
42826 msgid "C API example code."
42827 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
42830 #: ../src/guestfs.pod:2960
42832 #| msgid "C<capitests>"
42833 msgid "C<extratests>"
42834 msgstr "C<capitests>"
42837 #: ../src/guestfs.pod:2962
42839 "Extra tests. These are not run by default because they require special "
42840 "tools or configuration."
42844 #: ../src/guestfs.pod:2965
42849 #: ../src/guestfs.pod:2967
42851 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
42852 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
42853 "L<virt-tar-out(1)>."
42857 #: ../src/guestfs.pod:2971
42862 #: ../src/guestfs.pod:2973
42864 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
42868 #: ../src/guestfs.pod:2975
42869 msgid "C<generator>"
42870 msgstr "C<generator>"
42873 #: ../src/guestfs.pod:2977
42875 "The crucially important generator, used to automatically generate large "
42876 "amounts of boilerplate C code for things like RPC and bindings."
42880 #: ../src/guestfs.pod:2980
42885 #: ../src/guestfs.pod:2982
42886 msgid "Files used by the test suite."
42890 #: ../src/guestfs.pod:2984
42891 msgid "Some \"phony\" guest images which we test against."
42895 #: ../src/guestfs.pod:2986
42896 msgid "C<inspector>"
42897 msgstr "C<inspector>"
42900 #: ../src/guestfs.pod:2988
42901 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
42905 #: ../src/guestfs.pod:2990
42910 #: ../src/guestfs.pod:2992
42911 msgid "Logo used on the website. The fish is called Arthur by the way."
42915 #: ../src/guestfs.pod:2994
42920 #: ../src/guestfs.pod:2996
42921 msgid "M4 macros used by autoconf."
42925 #: ../src/guestfs.pod:2998
42930 #: ../src/guestfs.pod:3000
42931 msgid "Translations of simple gettext strings."
42932 msgstr "Переклади простих рядків gettext."
42935 #: ../src/guestfs.pod:3002
42937 msgstr "C<po-docs>"
42940 #: ../src/guestfs.pod:3004
42942 "The build infrastructure and PO files for translations of manpages and POD "
42943 "files. Eventually this will be combined with the C<po> directory, but that "
42944 "is rather complicated."
42948 #: ../src/guestfs.pod:3008
42949 msgid "C<regressions>"
42950 msgstr "C<regressions>"
42953 #: ../src/guestfs.pod:3010
42954 msgid "Regression tests."
42955 msgstr "Тести на регресії."
42958 #: ../src/guestfs.pod:3012
42963 #: ../src/guestfs.pod:3014
42964 msgid "L<virt-rescue(1)> command and documentation."
42968 #: ../src/guestfs.pod:3016
42973 #: ../src/guestfs.pod:3018
42974 msgid "L<virt-resize(1)> command and documentation."
42978 #: ../src/guestfs.pod:3020
42979 msgid "C<sparsify>"
42983 #: ../src/guestfs.pod:3022
42984 msgid "L<virt-sparsify(1)> command and documentation."
42988 #: ../src/guestfs.pod:3024
42993 #: ../src/guestfs.pod:3026
42994 msgid "Source code to the C library."
42998 #: ../src/guestfs.pod:3028
43003 #: ../src/guestfs.pod:3030
43005 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
43009 #: ../src/guestfs.pod:3032
43010 msgid "C<test-tool>"
43011 msgstr "C<test-tool>"
43014 #: ../src/guestfs.pod:3034
43016 "Test tool for end users to test if their qemu/kernel combination will work "
43021 #: ../src/guestfs.pod:3037
43026 #: ../src/guestfs.pod:3039
43031 #: ../src/guestfs.pod:3041
43033 msgstr "C<haskell>"
43036 #: ../src/guestfs.pod:3043
43041 #: ../src/guestfs.pod:3045
43046 #: ../src/guestfs.pod:3047
43051 #: ../src/guestfs.pod:3049
43056 #: ../src/guestfs.pod:3051
43061 #: ../src/guestfs.pod:3053
43066 #: ../src/guestfs.pod:3055
43067 msgid "Language bindings."
43068 msgstr "Прив’язки до мов програмування."
43071 #: ../src/guestfs.pod:3059
43072 msgid "MAKING A STABLE RELEASE"
43076 #: ../src/guestfs.pod:3061
43078 "When we make a stable release, there are several steps documented here. See "
43079 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
43084 #: ../src/guestfs.pod:3069
43086 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
43090 #: ../src/guestfs.pod:3074
43091 msgid "Finalize RELEASE-NOTES."
43095 #: ../src/guestfs.pod:3078
43096 msgid "Update ROADMAP."
43100 #: ../src/guestfs.pod:3082
43101 msgid "Run C<src/api-support/update-from-tarballs.sh>."
43105 #: ../src/guestfs.pod:3086
43106 msgid "Push and pull from Transifex."
43110 #: ../src/guestfs.pod:3090
43118 #: ../src/guestfs.pod:3092
43119 msgid "to push the latest POT files to Transifex. Then run:"
43123 #: ../src/guestfs.pod:3094
43131 #: ../src/guestfs.pod:3096
43132 msgid "which is a wrapper to pull the latest translated C<*.po> files."
43136 #: ../src/guestfs.pod:3100
43138 "Create new stable and development directories under L<http://libguestfs.org/"
43143 #: ../src/guestfs.pod:3105
43144 msgid "Create the branch in git:"
43148 #: ../src/guestfs.pod:3107
43151 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
43152 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
43153 " git branch stable-1.XX\n"
43154 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
43159 #: ../src/guestfs.pod:3114
43164 #: ../src/guestfs.pod:3116
43165 msgid "PROTOCOL LIMITS"
43166 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
43169 #: ../src/guestfs.pod:3118
43171 "Internally libguestfs uses a message-based protocol to pass API calls and "
43172 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
43173 "plenty more detail about this). The maximum message size used by the "
43174 "protocol is slightly less than 4 MB. For some API calls you may need to be "
43175 "aware of this limit. The API calls which may be affected are individually "
43176 "documented, with a link back to this section of the documentation."
43180 #: ../src/guestfs.pod:3126
43182 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
43183 "a simple string. Because this string is at some point internally encoded as "
43184 "a message, the maximum size that it can return is slightly under 4 MB. If "
43185 "the requested file is larger than this then you will get an error."
43189 #: ../src/guestfs.pod:3132
43191 "In order to transfer large files into and out of the guest filesystem, you "
43192 "need to use particular calls that support this. The sections L</UPLOADING> "
43193 "and L</DOWNLOADING> document how to do this."
43197 #: ../src/guestfs.pod:3136
43199 "You might also consider mounting the disk image using our FUSE filesystem "
43200 "support (L<guestmount(1)>)."
43204 #: ../src/guestfs.pod:3139
43205 msgid "MAXIMUM NUMBER OF DISKS"
43209 #: ../src/guestfs.pod:3141
43210 msgid "When using virtio disks (the default) the current limit is B<25> disks."
43214 #: ../src/guestfs.pod:3144
43216 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
43217 "slots. However febootstrap only understands disks with names C</dev/vda> "
43218 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
43223 #: ../src/guestfs.pod:3149
43225 "We are working to substantially raise this limit in future versions but it "
43226 "requires complex changes to qemu."
43230 #: ../src/guestfs.pod:3152
43232 "In future versions of libguestfs it should also be possible to \"hot plug\" "
43233 "disks (add and remove disks after calling L</guestfs_launch>). This also "
43234 "requires changes to qemu."
43238 #: ../src/guestfs.pod:3156
43239 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
43243 #: ../src/guestfs.pod:3158
43244 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
43248 #: ../src/guestfs.pod:3160
43250 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
43251 "vda>, and C</dev/vda1> through C</dev/vda15>)."
43255 #: ../src/guestfs.pod:3163
43257 "If you attach a disk with more than 15 partitions, the extra partitions are "
43258 "ignored by libguestfs."
43262 #: ../src/guestfs.pod:3166
43263 msgid "MAXIMUM SIZE OF A DISK"
43267 #: ../src/guestfs.pod:3168
43268 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
43272 #: ../src/guestfs.pod:3170
43274 "We have tested block devices up to 1 exabyte (2**60 or "
43275 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
43280 #: ../src/guestfs.pod:3174
43282 "Although libguestfs probably does not impose any limit, the underlying host "
43283 "storage will. If you store disk images on a host ext4 filesystem, then the "
43284 "maximum size will be limited by the maximum ext4 file size (currently 16 "
43285 "TB). If you store disk images as host logical volumes then you are limited "
43286 "by the maximum size of an LV."
43290 #: ../src/guestfs.pod:3180
43292 "For the hugest disk image files, we recommend using XFS on the host for "
43297 #: ../src/guestfs.pod:3183
43298 msgid "MAXIMUM SIZE OF A PARTITION"
43302 #: ../src/guestfs.pod:3185
43304 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
43305 "numbers. Assuming a 512 byte sector size, this means that MBR cannot "
43306 "address a partition located beyond 2 TB on the disk."
43310 #: ../src/guestfs.pod:3189
43312 "It is recommended that you use GPT partitions on disks which are larger than "
43313 "this size. GPT uses 64 bit sector numbers and so can address partitions "
43314 "which are theoretically larger than the largest disk we could support."
43318 #: ../src/guestfs.pod:3194
43319 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
43323 #: ../src/guestfs.pod:3196
43325 "This depends on the filesystem type. libguestfs itself does not impose any "
43326 "known limit. Consult Wikipedia or the filesystem documentation to find out "
43327 "what these limits are."
43331 #: ../src/guestfs.pod:3200
43332 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
43336 #: ../src/guestfs.pod:3202
43338 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
43339 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
43340 "uploads and downloads."
43344 #: ../src/guestfs.pod:3206
43345 msgid "INSPECTION LIMITS"
43349 #: ../src/guestfs.pod:3208
43351 "The inspection code has several arbitrary limits on things like the size of "
43352 "Windows Registry hive it will read, and the length of product name. These "
43353 "are intended to stop a malicious guest from consuming arbitrary amounts of "
43354 "memory and disk space on the host, and should not be reached in practice. "
43355 "See the source code for more information."
43359 #: ../src/guestfs.pod:3234
43361 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
43362 "effect as calling C<guestfs_set_verbose (g, 1)>."
43366 #: ../src/guestfs.pod:3246
43368 "Set the path that libguestfs uses to search for a supermin appliance. See "
43369 "the discussion of paths in section L</PATH> above."
43373 #: ../src/guestfs.pod:3255
43374 msgid "See also L</QEMU WRAPPERS> above."
43378 #: ../src/guestfs.pod:3259
43380 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
43381 "effect as calling C<guestfs_set_trace (g, 1)>."
43385 #: ../src/guestfs.pod:3277
43387 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
43388 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
43389 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
43390 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
43391 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
43392 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
43393 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
43394 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<guestfs-"
43395 "testing(1)>, L<qemu(1)>, L<febootstrap(1)>, L<febootstrap-supermin-helper(8)"
43396 ">, L<hivex(3)>, L<stap(1)>, L<http://libguestfs.org/>."
43400 #: ../src/guestfs.pod:3314
43402 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
43403 "(8)>, L<disktype(1)>."
43407 #: ../src/guestfs.pod:3321 ../tools/virt-make-fs.pl:571
43408 #: ../tools/virt-win-reg.pl:772
43413 #: ../src/guestfs.pod:3323
43414 msgid "To get a list of bugs against libguestfs use this link:"
43416 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
43420 #: ../src/guestfs.pod:3325
43422 "L<https://bugzilla.redhat.com/buglist.cgi?"
43423 "component=libguestfs&product=Virtualization+Tools>"
43425 "L<https://bugzilla.redhat.com/buglist.cgi?"
43426 "component=libguestfs&product=Virtualization+Tools>"
43429 #: ../src/guestfs.pod:3327
43430 msgid "To report a new bug against libguestfs use this link:"
43431 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
43434 #: ../src/guestfs.pod:3329
43436 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
43437 "component=libguestfs&product=Virtualization+Tools>"
43439 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
43440 "component=libguestfs&product=Virtualization+Tools>"
43443 #: ../src/guestfs.pod:3331
43444 msgid "When reporting a bug, please check:"
43448 #: ../src/guestfs.pod:3337
43449 msgid "That the bug hasn't been reported already."
43453 #: ../src/guestfs.pod:3341
43454 msgid "That you are testing a recent version."
43458 #: ../src/guestfs.pod:3345
43459 msgid "Describe the bug accurately, and give a way to reproduce it."
43463 #: ../src/guestfs.pod:3349
43465 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
43470 #: ../test-tool/libguestfs-test-tool.pod:5
43471 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
43475 #: ../test-tool/libguestfs-test-tool.pod:9
43478 " libguestfs-test-tool [--options]\n"
43483 #: ../test-tool/libguestfs-test-tool.pod:13
43485 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
43486 "to check basic libguestfs functionality is working. This is needed because "
43487 "libguestfs occasionally breaks for reasons beyond our control: usually "
43488 "because of changes in the underlying qemu or kernel packages, or the host "
43493 #: ../test-tool/libguestfs-test-tool.pod:19
43494 msgid "If you suspect a problem in libguestfs, then just run:"
43498 #: ../test-tool/libguestfs-test-tool.pod:21
43501 " libguestfs-test-tool\n"
43506 #: ../test-tool/libguestfs-test-tool.pod:23
43507 msgid "It will print lots of diagnostic messages."
43511 #: ../test-tool/libguestfs-test-tool.pod:25
43512 msgid "If it runs to completion successfully, you will see this near the end:"
43516 #: ../test-tool/libguestfs-test-tool.pod:27
43519 " ===== TEST FINISHED OK =====\n"
43524 #: ../test-tool/libguestfs-test-tool.pod:29
43525 msgid "and the test tool will exit with code 0."
43529 #: ../test-tool/libguestfs-test-tool.pod:31
43531 "If it fails (and/or exits with non-zero error code), please paste the "
43532 "I<complete, unedited> output of the test tool into a bug report. More "
43533 "information about reporting bugs can be found on the L<http://libguestfs.org/"
43538 #: ../test-tool/libguestfs-test-tool.pod:42
43539 msgid "Display short usage information and exit."
43543 #: ../test-tool/libguestfs-test-tool.pod:44
43544 msgid "B<--qemu qemu_binary>"
43548 #: ../test-tool/libguestfs-test-tool.pod:46
43550 "If you have downloaded another qemu binary, point this option at the full "
43551 "path of the binary to try it."
43555 #: ../test-tool/libguestfs-test-tool.pod:49
43556 msgid "B<--qemudir qemu_source_dir>"
43560 #: ../test-tool/libguestfs-test-tool.pod:51
43562 "If you have compiled qemu from source, point this option at the source "
43563 "directory to try it."
43567 #: ../test-tool/libguestfs-test-tool.pod:54
43572 #: ../test-tool/libguestfs-test-tool.pod:56
43573 msgid "B<--timeout N>"
43577 #: ../test-tool/libguestfs-test-tool.pod:58
43579 "Set the launch timeout to C<N> seconds. The default is 600 seconds (10 "
43580 "minutes) which does not usually need to be adjusted."
43584 #: ../test-tool/libguestfs-test-tool.pod:63
43585 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
43589 #: ../test-tool/libguestfs-test-tool.pod:65
43591 "If you have compiled another version of qemu from source and would like to "
43592 "try that, then you can use the I<--qemudir> option to point to the qemu "
43593 "source directory."
43597 #: ../test-tool/libguestfs-test-tool.pod:69
43599 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
43600 "option to point to the binary."
43604 #: ../test-tool/libguestfs-test-tool.pod:72
43606 "Note when using these options, you can ignore the business of qemu wrapper "
43607 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
43608 "wrapper script for you if one is needed."
43612 #: ../test-tool/libguestfs-test-tool.pod:76
43613 msgid "TRYING OUT A DIFFERENT KERNEL"
43617 #: ../test-tool/libguestfs-test-tool.pod:78
43619 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
43620 "libguestfs tries. You do this by setting the environment variables "
43621 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
43625 #: ../test-tool/libguestfs-test-tool.pod:82
43627 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
43632 #: ../test-tool/libguestfs-test-tool.pod:85
43633 msgid "SELF-DIAGNOSIS"
43637 #: ../test-tool/libguestfs-test-tool.pod:87
43639 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
43640 "produced by libguestfs-test-tool and/or possible errors."
43644 #: ../test-tool/libguestfs-test-tool.pod:92
43646 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
43647 "I<1> if there was an error."
43651 #: ../test-tool/libguestfs-test-tool.pod:97
43653 "For the full list of environment variables which may affect libguestfs, "
43654 "please see the L<guestfs(3)> manual page."
43658 #: ../test-tool/libguestfs-test-tool.pod:102
43659 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
43663 #: ../tools/virt-list-filesystems.pl:32
43665 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
43669 #: ../tools/virt-list-filesystems.pl:36
43672 " virt-list-filesystems [--options] domname\n"
43677 #: ../tools/virt-list-filesystems.pl:38
43680 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
43685 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
43687 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
43692 #: ../tools/virt-list-filesystems.pl:45
43694 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
43695 "are contained in a virtual machine or disk image."
43699 #: ../tools/virt-list-filesystems.pl:49
43701 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
43702 "functionality. For more complex cases you should look at the L<guestfish(1)"
43707 #: ../tools/virt-list-filesystems.pl:112
43709 "With this option, C<virt-list-filesystems> displays the type of each "
43710 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
43714 #: ../tools/virt-list-filesystems.pl:119
43719 #: ../tools/virt-list-filesystems.pl:123
43721 "Normally we only show mountable filesystems. If this option is given then "
43722 "swap devices are shown too."
43726 #: ../tools/virt-list-filesystems.pl:197
43728 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
43729 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
43730 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43732 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
43733 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
43734 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43737 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
43738 msgid "Copyright (C) 2009 Red Hat Inc."
43739 msgstr "© Red Hat Inc., 2009"
43742 #: ../tools/virt-list-partitions.pl:32
43744 "virt-list-partitions - List partitions in a virtual machine or disk image"
43748 #: ../tools/virt-list-partitions.pl:36
43751 " virt-list-partitions [--options] domname\n"
43754 " virt-list-partitions [--параметри] назва_домену\n"
43758 #: ../tools/virt-list-partitions.pl:38
43761 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
43764 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
43768 #: ../tools/virt-list-partitions.pl:45
43770 "C<virt-list-partitions> is a command line tool to list the partitions that "
43771 "are contained in a virtual machine or disk image. It is mainly useful as a "
43772 "first step to using L<virt-resize(1)>."
43776 #: ../tools/virt-list-partitions.pl:50
43778 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
43779 "functionality. For more complex cases you should look at the L<guestfish(1)"
43784 #: ../tools/virt-list-partitions.pl:113
43785 msgid "Show sizes in human-readable form (eg. \"1G\")."
43789 #: ../tools/virt-list-partitions.pl:123
43791 "With this option, C<virt-list-partitions> displays the type and size of each "
43792 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
43796 #: ../tools/virt-list-partitions.pl:130
43801 #: ../tools/virt-list-partitions.pl:132
43803 msgstr "B<--total>"
43806 #: ../tools/virt-list-partitions.pl:134
43808 "Display the total size of each block device (as a separate row or rows)."
43812 #: ../tools/virt-list-partitions.pl:267
43814 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
43815 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
43816 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43818 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
43819 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
43820 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43823 #: ../tools/virt-list-partitions.pl:283
43824 msgid "Copyright (C) 2009-2010 Red Hat Inc."
43825 msgstr "© Red Hat Inc., 2009–2010"
43828 #: ../tools/virt-make-fs.pl:37
43829 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
43833 #: ../tools/virt-make-fs.pl:41
43836 " virt-make-fs [--options] input.tar output.img\n"
43841 #: ../tools/virt-make-fs.pl:43
43844 " virt-make-fs [--options] input.tar.gz output.img\n"
43849 #: ../tools/virt-make-fs.pl:45
43852 " virt-make-fs [--options] directory output.img\n"
43857 #: ../tools/virt-make-fs.pl:49
43859 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
43860 "archive or some files in a directory. It is similar to tools like L<mkisofs"
43861 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, it can "
43862 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
43863 "you want to attach these filesystems to existing virtual machines (eg. to "
43864 "import large amounts of read-only data to a VM)."
43868 #: ../tools/virt-make-fs.pl:57
43869 msgid "Basic usage is:"
43873 #: ../tools/virt-make-fs.pl:59
43876 " virt-make-fs input output.img\n"
43881 #: ../tools/virt-make-fs.pl:61
43883 "where C<input> is either a directory containing files that you want to add, "
43884 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
43885 "C<output.img> is a disk image. The input type is detected automatically. "
43886 "The output disk image defaults to a raw ext2 sparse image unless you specify "
43887 "extra flags (see L</OPTIONS> below)."
43891 #: ../tools/virt-make-fs.pl:67
43892 msgid "FILESYSTEM TYPE"
43893 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
43896 #: ../tools/virt-make-fs.pl:69
43898 "The default filesystem type is C<ext2>. Just about any filesystem type that "
43899 "libguestfs supports can be used (but I<not> read-only formats like "
43900 "ISO9660). Here are some of the more common choices:"
43904 #: ../tools/virt-make-fs.pl:75
43909 #: ../tools/virt-make-fs.pl:77
43911 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
43912 "you are not going to use the filesystem in a way that requires the journal, "
43913 "then this is just wasted overhead."
43917 #: ../tools/virt-make-fs.pl:81
43918 msgid "I<ntfs> or I<vfat>"
43919 msgstr "I<ntfs> або I<vfat>"
43922 #: ../tools/virt-make-fs.pl:83
43923 msgid "Useful if exporting data to a Windows guest."
43927 #: ../tools/virt-make-fs.pl:85
43929 "I<Note for vfat>: The tar archive or local directory must only contain files "
43930 "which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
43931 "program running within libguestfs is unable to change the ownership of non-"
43932 "root files, since vfat itself does not support this."
43936 #: ../tools/virt-make-fs.pl:90
43941 #: ../tools/virt-make-fs.pl:92
43943 "Lower overhead than C<ext2>, but certain limitations on filename length and "
43944 "total filesystem size."
43948 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
43949 #: ../tools/virt-make-fs.pl:149
43954 #: ../tools/virt-make-fs.pl:99
43957 " virt-make-fs --type=minix input minixfs.img\n"
43962 #: ../tools/virt-make-fs.pl:101
43963 msgid "TO PARTITION OR NOT TO PARTITION"
43967 #: ../tools/virt-make-fs.pl:103
43968 msgid "Optionally virt-make-fs can add a partition table to the output disk."
43972 #: ../tools/virt-make-fs.pl:105
43974 "Adding a partition can make the disk image more compatible with certain "
43975 "virtualized operating systems which don't expect to see a filesystem "
43976 "directly located on a block device (Linux doesn't care and will happily "
43977 "handle both types)."
43981 #: ../tools/virt-make-fs.pl:110
43983 "On the other hand, if you have a partition table then the output image is no "
43984 "longer a straight filesystem. For example you cannot run L<fsck(8)> "
43985 "directly on a partitioned disk image. (However libguestfs tools such as "
43986 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
43990 #: ../tools/virt-make-fs.pl:118
43991 msgid "Add an MBR partition:"
43995 #: ../tools/virt-make-fs.pl:120
43998 " virt-make-fs --partition -- input disk.img\n"
44003 #: ../tools/virt-make-fs.pl:122
44005 "If the output disk image could be terabyte-sized or larger, it's better to "
44006 "use an EFI/GPT-compatible partition table:"
44010 #: ../tools/virt-make-fs.pl:125
44013 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
44018 #: ../tools/virt-make-fs.pl:127
44019 msgid "EXTRA SPACE"
44023 #: ../tools/virt-make-fs.pl:129
44025 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
44026 "the files that it contains, but might have extra space. Depending on how "
44027 "you are going to use the output, you might think this extra space is wasted "
44028 "and want to minimize it, or you might want to leave space so that more files "
44029 "can be added later. Virt-make-fs defaults to minimizing the extra space, "
44030 "but you can use the I<--size> flag to leave space in the filesystem if you "
44035 #: ../tools/virt-make-fs.pl:137
44037 "An alternative way to leave extra space but not make the output image any "
44038 "bigger is to use an alternative disk image format (instead of the default "
44039 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
44040 "image format (check your hypervisor supports this before using it). This "
44041 "allows you to choose a large I<--size> but the extra space won't actually be "
44042 "allocated in the image until you try to store something in it."
44046 #: ../tools/virt-make-fs.pl:145
44048 "Don't forget that you can also use local commands including L<resize2fs(8)> "
44049 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
44050 "to build another image from scratch."
44054 #: ../tools/virt-make-fs.pl:151
44057 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
44060 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
44064 #: ../tools/virt-make-fs.pl:179
44065 msgid "Enable debugging information."
44066 msgstr "Увімкнути виведення діагностичних даних."
44069 #: ../tools/virt-make-fs.pl:185
44070 msgid "B<--size=E<lt>NE<gt>>"
44071 msgstr "B<--size=E<lt>NE<gt>>"
44074 #: ../tools/virt-make-fs.pl:187
44075 msgid "B<--size=+E<lt>NE<gt>>"
44076 msgstr "B<--size=+E<lt>NE<gt>>"
44079 #: ../tools/virt-make-fs.pl:189
44080 msgid "B<-s E<lt>NE<gt>>"
44081 msgstr "B<-s E<lt>NE<gt>>"
44084 #: ../tools/virt-make-fs.pl:191
44085 msgid "B<-s +E<lt>NE<gt>>"
44086 msgstr "B<-s +E<lt>NE<gt>>"
44089 #: ../tools/virt-make-fs.pl:193
44091 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
44095 #: ../tools/virt-make-fs.pl:196
44097 "If this option is I<not> given, then the output image will be just large "
44098 "enough to contain all the files, with not much wasted space."
44102 #: ../tools/virt-make-fs.pl:199
44104 "To choose a fixed size output disk, specify an absolute number followed by b/"
44105 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
44106 "Petabytes or Exabytes. This must be large enough to contain all the input "
44107 "files, else you will get an error."
44111 #: ../tools/virt-make-fs.pl:204
44113 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
44114 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
44115 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
44116 "the input files, and (approximately) an extra 200 MB free space."
44120 #: ../tools/virt-make-fs.pl:210
44122 "Note that virt-make-fs estimates free space, and therefore will not produce "
44123 "filesystems containing precisely the free space requested. (It is much more "
44124 "expensive and time-consuming to produce a filesystem which has precisely the "
44125 "desired free space)."
44129 #: ../tools/virt-make-fs.pl:219
44130 msgid "B<--format=E<lt>fmtE<gt>>"
44134 #: ../tools/virt-make-fs.pl:221
44135 msgid "B<-F E<lt>fmtE<gt>>"
44139 #: ../tools/virt-make-fs.pl:223
44140 msgid "Choose the output disk image format."
44144 #: ../tools/virt-make-fs.pl:225
44145 msgid "The default is C<raw> (raw sparse disk image)."
44149 #: ../tools/virt-make-fs.pl:227
44151 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
44152 "that would really make sense here is C<qcow2>."
44156 #: ../tools/virt-make-fs.pl:234
44157 msgid "B<--type=E<lt>fsE<gt>>"
44161 #: ../tools/virt-make-fs.pl:236
44162 msgid "B<-t E<lt>fsE<gt>>"
44166 #: ../tools/virt-make-fs.pl:238
44167 msgid "Choose the output filesystem type."
44171 #: ../tools/virt-make-fs.pl:240
44172 msgid "The default is C<ext2>."
44173 msgstr "Типовим значенням є C<ext2>."
44176 #: ../tools/virt-make-fs.pl:242
44178 "Any filesystem which is supported read-write by libguestfs can be used here."
44182 #: ../tools/virt-make-fs.pl:249
44183 msgid "B<--partition>"
44184 msgstr "B<--partition>"
44187 #: ../tools/virt-make-fs.pl:251
44188 msgid "B<--partition=E<lt>parttypeE<gt>>"
44192 #: ../tools/virt-make-fs.pl:253
44194 "If specified, this flag adds an MBR partition table to the output disk image."
44198 #: ../tools/virt-make-fs.pl:256
44200 "You can change the partition table type, eg. I<--partition=gpt> for large "
44205 #: ../tools/virt-make-fs.pl:259
44207 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
44208 "might consider the next parameter to be the partition type. For example:"
44212 #: ../tools/virt-make-fs.pl:263
44215 " virt-make-fs --partition input.tar output.img\n"
44220 #: ../tools/virt-make-fs.pl:265
44222 "would cause virt-make-fs to think you wanted to use a partition type of "
44223 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
44224 "dash) between options and the input and output arguments:"
44228 #: ../tools/virt-make-fs.pl:269
44231 " virt-make-fs --partition -- input.tar output.img\n"
44236 #: ../tools/virt-make-fs.pl:271
44237 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
44241 #: ../tools/virt-make-fs.pl:559
44243 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
44244 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
44245 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
44247 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
44248 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
44249 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
44252 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
44254 "When reporting bugs, please enable debugging and capture the I<complete> "
44259 #: ../tools/virt-make-fs.pl:576
44262 " export LIBGUESTFS_DEBUG=1\n"
44263 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
44266 " export LIBGUESTFS_DEBUG=1\n"
44267 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
44271 #: ../tools/virt-make-fs.pl:579
44273 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
44278 #: ../tools/virt-tar.pl:33
44279 msgid "virt-tar - Extract or upload files to a virtual machine"
44283 #: ../tools/virt-tar.pl:37
44286 " virt-tar [--options] -x domname directory tarball\n"
44291 #: ../tools/virt-tar.pl:39
44294 " virt-tar [--options] -u domname tarball directory\n"
44299 #: ../tools/virt-tar.pl:41
44302 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
44307 #: ../tools/virt-tar.pl:43
44310 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
44315 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
44320 #: ../tools/virt-tar.pl:47
44322 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
44323 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
44327 #: ../tools/virt-tar.pl:52
44328 msgid "Download C</home> from the VM into a local tarball:"
44332 #: ../tools/virt-tar.pl:54
44335 " virt-tar -x domname /home home.tar\n"
44340 #: ../tools/virt-tar.pl:56
44343 " virt-tar -zx domname /home home.tar.gz\n"
44348 #: ../tools/virt-tar.pl:58
44349 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
44353 #: ../tools/virt-tar.pl:60
44356 " virt-tar -u domname uploadstuff.tar /tmp\n"
44361 #: ../tools/virt-tar.pl:62
44364 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
44369 #: ../tools/virt-tar.pl:66
44371 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
44372 "virtual machines. If you do this, you risk disk corruption in the VM. "
44373 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
44377 #: ../tools/virt-tar.pl:71
44379 "You can use I<-x> (extract) on live virtual machines, but you might get "
44380 "inconsistent results or errors if there is filesystem activity inside the "
44381 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
44382 "work, but the only way to guarantee consistent results is if the virtual "
44383 "machine is shut down."
44387 #: ../tools/virt-tar.pl:79
44389 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
44390 "parts of a guest filesystem. There are many possibilities: making backups, "
44391 "uploading data files, snooping on guest activity, fixing or customizing "
44396 #: ../tools/virt-tar.pl:84
44398 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
44399 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
44400 "should look at the L<guestfish(1)> tool."
44404 #: ../tools/virt-tar.pl:88
44406 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
44407 "its contents (recursively) from the virtual machine into a local tarball. "
44408 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
44409 "virtual machine. You cannot use these two options together."
44413 #: ../tools/virt-tar.pl:94
44415 "In addition, you may need to use the I<-z> (gZip) option to enable "
44416 "compression. When uploading, you have to specify I<-z> if the upload file "
44417 "is compressed because virt-tar won't detect this on its own."
44421 #: ../tools/virt-tar.pl:98
44423 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
44424 "example it cannot do PKZip files or bzip2 compression. If you want that "
44425 "then you'll have to rebuild the tarballs yourself. (This is a limitation of "
44426 "the L<libguestfs(3)> API)."
44430 #: ../tools/virt-tar.pl:160
44431 msgid "B<--extract>"
44432 msgstr "B<--extract>"
44435 #: ../tools/virt-tar.pl:162
44436 msgid "B<--download>"
44437 msgstr "B<--download>"
44440 #: ../tools/virt-tar.pl:164
44445 #: ../tools/virt-tar.pl:166
44446 msgid "B<--upload>"
44447 msgstr "B<--upload>"
44450 #: ../tools/virt-tar.pl:168
44452 "Use I<-x> to extract (download) a directory from a virtual machine to a "
44457 #: ../tools/virt-tar.pl:171
44459 "Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
44460 "Please read the L</WARNING> section above before using this option."
44464 #: ../tools/virt-tar.pl:175
44465 msgid "You must specify exactly one of these options."
44469 #: ../tools/virt-tar.pl:181
44474 #: ../tools/virt-tar.pl:183
44479 #: ../tools/virt-tar.pl:185
44480 msgid "Specify that the input or output tarball is gzip-compressed."
44484 #: ../tools/virt-tar.pl:298
44486 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
44487 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
44488 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
44491 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
44492 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
44493 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
44497 #: ../tools/virt-win-reg.pl:37
44499 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
44503 #: ../tools/virt-win-reg.pl:41
44506 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
44511 #: ../tools/virt-win-reg.pl:43
44514 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
44519 #: ../tools/virt-win-reg.pl:45
44522 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
44527 #: ../tools/virt-win-reg.pl:47
44530 " virt-win-reg --merge domname [input.reg ...]\n"
44535 #: ../tools/virt-win-reg.pl:49
44538 " virt-win-reg [--options] disk.img ... # instead of domname\n"
44543 #: ../tools/virt-win-reg.pl:53
44545 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
44546 "virtual machines. If you do this, you I<will> get irreversible disk "
44547 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
44548 "but doesn't catch all cases."
44552 #: ../tools/virt-win-reg.pl:58
44554 "Modifying the Windows Registry is an inherently risky operation. The format "
44555 "is deliberately obscure and undocumented, and Registry changes can leave the "
44556 "system unbootable. Therefore when using the I<--merge> option, make sure "
44557 "you have a reliable backup first."
44561 #: ../tools/virt-win-reg.pl:65
44563 "This program can export and merge Windows Registry entries from a Windows "
44568 #: ../tools/virt-win-reg.pl:68
44570 "The first parameter is the libvirt guest name or the raw disk image of a "
44575 #: ../tools/virt-win-reg.pl:71
44577 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
44578 "exported (recursively). For example:"
44582 #: ../tools/virt-win-reg.pl:74
44585 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
44588 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
44592 #: ../tools/virt-win-reg.pl:76
44594 "You can also display single values from within registry keys, for example:"
44598 #: ../tools/virt-win-reg.pl:79
44601 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
44602 " $ virt-win-reg Windows7 $cvkey ProductName\n"
44603 " Windows 7 Enterprise\n"
44606 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
44607 " $ virt-win-reg Windows7 $cvkey ProductName\n"
44608 " Windows 7 Enterprise\n"
44612 #: ../tools/virt-win-reg.pl:83
44614 "With I<--merge>, you can merge a textual regedit file into the Windows "
44619 #: ../tools/virt-win-reg.pl:86
44622 " $ virt-win-reg --merge Windows7 changes.reg\n"
44625 " $ virt-win-reg --merge Windows7 changes.reg\n"
44629 #: ../tools/virt-win-reg.pl:90
44631 "This program is only meant for simple access to the registry. If you want "
44632 "to do complicated things with the registry, we suggest you download the "
44633 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
44634 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
44635 "L<hivexregedit(1)>."
44639 #: ../tools/virt-win-reg.pl:159
44641 msgstr "B<--merge>"
44644 #: ../tools/virt-win-reg.pl:161
44646 "In merge mode, this merges a textual regedit file into the Windows Registry "
44647 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
44648 "displays or exports Registry entries instead."
44652 #: ../tools/virt-win-reg.pl:165
44654 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
44655 "result in disk corruption. However exporting (without this flag) is always "
44660 #: ../tools/virt-win-reg.pl:173
44661 msgid "B<--encoding> UTF-16LE|ASCII"
44662 msgstr "B<--encoding> UTF-16LE|ASCII"
44665 #: ../tools/virt-win-reg.pl:175
44667 "When merging (only), you may need to specify the encoding for strings to be "
44668 "used in the hive file. This is explained in detail in L<Win::Hivex::Regedit"
44669 "(3)/ENCODING STRINGS>."
44673 #: ../tools/virt-win-reg.pl:179
44675 "The default is to use UTF-16LE, which should work with recent versions of "
44680 #: ../tools/virt-win-reg.pl:186
44681 msgid "B<--unsafe-printable-strings>"
44682 msgstr "B<--unsafe-printable-strings>"
44685 #: ../tools/virt-win-reg.pl:188
44687 "When exporting (only), assume strings are UTF-16LE and print them as strings "
44688 "instead of hex sequences. Remove the final zero codepoint from strings if "
44693 #: ../tools/virt-win-reg.pl:192
44695 "This is unsafe and does not preserve the fidelity of strings in the original "
44696 "Registry for various reasons:"
44700 #: ../tools/virt-win-reg.pl:199
44702 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
44703 "other encodings will be corrupted by this transformation."
44707 #: ../tools/virt-win-reg.pl:204
44709 "Assumes that everything which has type 1 or 2 is really a string and that "
44710 "everything else is not a string, but the type field in real Registries is "
44715 #: ../tools/virt-win-reg.pl:210
44717 "Loses information about whether a zero codepoint followed the string in the "
44722 #: ../tools/virt-win-reg.pl:215
44724 "This all happens because the Registry itself contains no information about "
44725 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
44729 #: ../tools/virt-win-reg.pl:219
44731 "You should only use this option for quick hacking and debugging of the "
44732 "Registry contents, and I<never> use it if the output is going to be passed "
44733 "into another program or stored in another Registry."
44737 #: ../tools/virt-win-reg.pl:556
44738 msgid "SUPPORTED SYSTEMS"
44739 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
44742 #: ../tools/virt-win-reg.pl:558
44744 "The program currently supports Windows NT-derived guests starting with "
44745 "Windows XP through to at least Windows 7."
44749 #: ../tools/virt-win-reg.pl:561
44750 msgid "The following Registry keys are supported:"
44754 #: ../tools/virt-win-reg.pl:565
44755 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
44756 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
44759 #: ../tools/virt-win-reg.pl:567
44760 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
44761 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
44764 #: ../tools/virt-win-reg.pl:569
44765 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
44766 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
44769 #: ../tools/virt-win-reg.pl:571
44770 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
44771 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
44774 #: ../tools/virt-win-reg.pl:573
44775 msgid "C<HKEY_USERS\\.DEFAULT>"
44776 msgstr "C<HKEY_USERS\\.DEFAULT>"
44779 #: ../tools/virt-win-reg.pl:575
44780 msgid "C<HKEY_USERS\\I<SID>>"
44781 msgstr "C<HKEY_USERS\\I<SID>>"
44784 #: ../tools/virt-win-reg.pl:577
44785 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
44789 #: ../tools/virt-win-reg.pl:579
44790 msgid "C<HKEY_USERS\\I<username>>"
44791 msgstr "C<HKEY_USERS\\I<користувач>>"
44794 #: ../tools/virt-win-reg.pl:581
44796 "where I<username> is a local user name (this is a libguestfs extension)."
44800 #: ../tools/virt-win-reg.pl:585
44802 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
44807 #: ../tools/virt-win-reg.pl:588
44809 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
44810 "supported (there is no \"current user\")."
44814 #: ../tools/virt-win-reg.pl:591
44819 #: ../tools/virt-win-reg.pl:593
44821 "C<virt-win-reg> expects that regedit files have already been reencoded in "
44822 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
44823 "style line endings. Since Windows regedit files are often in UTF-16LE with "
44824 "Windows-style line endings, you may need to reencode the whole file before "
44825 "or after processing."
44829 #: ../tools/virt-win-reg.pl:599
44831 "To reencode a file from Windows format to Linux (before processing it with "
44832 "the I<--merge> option), you would do something like this:"
44836 #: ../tools/virt-win-reg.pl:602
44839 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
44842 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
44846 #: ../tools/virt-win-reg.pl:604
44848 "To go in the opposite direction, after exporting and before sending the file "
44849 "to a Windows user, do something like this:"
44853 #: ../tools/virt-win-reg.pl:607
44856 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
44859 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
44863 #: ../tools/virt-win-reg.pl:609
44864 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
44868 #: ../tools/virt-win-reg.pl:611
44870 "If you are unsure about the current encoding, use the L<file(1)> command. "
44871 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
44872 "style (CRLF) line endings, like this:"
44876 #: ../tools/virt-win-reg.pl:615
44879 " $ file software.reg\n"
44880 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
44881 " with CRLF line terminators\n"
44886 #: ../tools/virt-win-reg.pl:619
44887 msgid "This file would need conversion before you could I<--merge> it."
44891 #: ../tools/virt-win-reg.pl:621
44892 msgid "CurrentControlSet etc."
44896 #: ../tools/virt-win-reg.pl:623
44898 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
44899 "Registry at the level of the hive file, and therefore you cannot modify "
44904 #: ../tools/virt-win-reg.pl:627
44906 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
44907 "circumstances it might refer to another control set. The way to find out is "
44908 "to look at the C<HKLM\\SYSTEM\\Select> key:"
44912 #: ../tools/virt-win-reg.pl:631
44915 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
44916 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
44917 " \"Current\"=dword:00000001\n"
44918 " \"Default\"=dword:00000001\n"
44919 " \"Failed\"=dword:00000000\n"
44920 " \"LastKnownGood\"=dword:00000002\n"
44923 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
44924 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
44925 " \"Current\"=dword:00000001\n"
44926 " \"Default\"=dword:00000001\n"
44927 " \"Failed\"=dword:00000000\n"
44928 " \"LastKnownGood\"=dword:00000002\n"
44932 #: ../tools/virt-win-reg.pl:638
44933 msgid "\"Current\" is the one which Windows will choose when it boots."
44937 #: ../tools/virt-win-reg.pl:640
44939 "Similarly, other C<Current...> keys in the path may need to be replaced."
44943 #: ../tools/virt-win-reg.pl:643
44944 msgid "DELETING REGISTRY KEYS AND VALUES"
44948 #: ../tools/virt-win-reg.pl:645
44949 msgid "To delete a whole registry key, use the syntax:"
44953 #: ../tools/virt-win-reg.pl:647
44956 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
44961 #: ../tools/virt-win-reg.pl:649
44962 msgid "To delete a single value within a key, use the syntax:"
44966 #: ../tools/virt-win-reg.pl:651
44969 " [HKEY_LOCAL_MACHINE\\Foo]\n"
44975 #: ../tools/virt-win-reg.pl:654
44976 msgid "WINDOWS TIPS"
44980 #: ../tools/virt-win-reg.pl:656
44982 "Note that some of these tips modify the guest disk image. The guest I<must> "
44983 "be shut off, else you will get disk corruption."
44987 #: ../tools/virt-win-reg.pl:659
44988 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
44992 #: ../tools/virt-win-reg.pl:661
44994 "Prepare a DOS batch script, VBScript or executable. Upload this using "
44995 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
44996 "is uploaded into C<C:\\>:"
45000 #: ../tools/virt-win-reg.pl:665
45003 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
45006 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
45010 #: ../tools/virt-win-reg.pl:667
45011 msgid "Prepare a regedit file containing the registry change:"
45015 #: ../tools/virt-win-reg.pl:669
45018 " cat > test.reg <<'EOF'\n"
45019 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
45020 " \"Test\"=\"c:\\\\test.bat\"\n"
45024 " cat > test.reg <<'EOF'\n"
45025 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
45026 " \"Test\"=\"c:\\\\test.bat\"\n"
45031 #: ../tools/virt-win-reg.pl:674
45033 "In this example we use the key C<RunOnce> which means that the script will "
45034 "run precisely once when the first user logs in. If you want it to run every "
45035 "time a user logs in, replace C<RunOnce> with C<Run>."
45039 #: ../tools/virt-win-reg.pl:678
45040 msgid "Now update the registry:"
45041 msgstr "Оновіть регістр:"
45044 #: ../tools/virt-win-reg.pl:680
45047 " virt-win-reg --merge WindowsGuest test.reg\n"
45052 #: ../tools/virt-win-reg.pl:682
45053 msgid "INSTALLING A SERVICE"
45057 #: ../tools/virt-win-reg.pl:684
45059 "This section assumes you are familiar with Windows services, and you either "
45060 "have a program which handles the Windows Service Control Protocol directly "
45061 "or you want to run any program using a service wrapper like SrvAny or the "
45066 #: ../tools/virt-win-reg.pl:689
45068 "First upload the program and optionally the service wrapper. In this case "
45069 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
45073 #: ../tools/virt-win-reg.pl:693
45076 " guestfish -i -d WindowsGuest <<EOF\n"
45077 " upload rhsrvany.exe /rhsrvany.exe\n"
45078 " upload test.exe /test.exe\n"
45082 " guestfish -i -d WindowsGuest <<EOF\n"
45083 " upload rhsrvany.exe /rhsrvany.exe\n"
45084 " upload test.exe /test.exe\n"
45089 #: ../tools/virt-win-reg.pl:698
45091 "Prepare a regedit file containing the registry changes. In this example, "
45092 "the first registry change is needed for the service itself or the service "
45093 "wrapper (if used). The second registry change is only needed because I am "
45094 "using the RHSrvAny service wrapper."
45098 #: ../tools/virt-win-reg.pl:703
45101 " cat > service.reg <<'EOF'\n"
45102 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
45103 " \"Type\"=dword:00000010\n"
45104 " \"Start\"=dword:00000002\n"
45105 " \"ErrorControl\"=dword:00000001\n"
45106 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
45107 " \"DisplayName\"=\"RHSrvAny\"\n"
45108 " \"ObjectName\"=\"NetworkService\"\n"
45111 " cat > service.reg <<'EOF'\n"
45112 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
45113 " \"Type\"=dword:00000010\n"
45114 " \"Start\"=dword:00000002\n"
45115 " \"ErrorControl\"=dword:00000001\n"
45116 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
45117 " \"DisplayName\"=\"RHSrvAny\"\n"
45118 " \"ObjectName\"=\"NetworkService\"\n"
45122 #: ../tools/virt-win-reg.pl:712
45125 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
45126 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
45127 " \"PWD\"=\"c:\\\\Temp\"\n"
45131 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
45132 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
45133 " \"PWD\"=\"c:\\\\Temp\"\n"
45138 #: ../tools/virt-win-reg.pl:723
45140 "For use of C<ControlSet001> see the section above in this manual page. You "
45141 "may need to adjust this according to the control set that is in use by the "
45146 #: ../tools/virt-win-reg.pl:729
45148 "C<\"ObjectName\"> controls the privileges that the service will have. An "
45149 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
45150 "privileged account."
45154 #: ../tools/virt-win-reg.pl:735
45156 "For the meaning of the magic numbers, see this Microsoft KB article: "
45157 "L<http://support.microsoft.com/kb/103000>."
45161 #: ../tools/virt-win-reg.pl:740
45162 msgid "Update the registry:"
45163 msgstr "Оновіть регістр:"
45166 #: ../tools/virt-win-reg.pl:742
45169 " virt-win-reg --merge WindowsGuest service.reg\n"
45174 #: ../tools/virt-win-reg.pl:746
45176 "Be careful when passing parameters containing C<\\> (backslash) in the "
45177 "shell. Usually you will have to use 'single quotes' or double backslashes "
45178 "(but not both) to protect them from the shell."
45182 #: ../tools/virt-win-reg.pl:750
45183 msgid "Paths and value names are case-insensitive."
45187 #: ../tools/virt-win-reg.pl:759
45189 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
45190 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
45191 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
45193 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
45194 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
45195 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
45198 #: ../tools/virt-win-reg.pl:777
45201 " export LIBGUESTFS_DEBUG=1\n"
45202 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
45207 #: ../tools/virt-win-reg.pl:780
45209 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."