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 21:47+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:497
492 #: ../sparsify/virt-sparsify.pod:177
497 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:499
498 #: ../sparsify/virt-sparsify.pod:179
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:183
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:185
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:187
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:567
545 #: ../sparsify/virt-sparsify.pod:189
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:569
556 #: ../sparsify/virt-sparsify.pod:191 ../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:571
568 #: ../sparsify/virt-sparsify.pod:193 ../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:195
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:197
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:682
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:684
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:689 ../sparsify/virt-sparsify.pod:251
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:365 ../resize/virt-resize.pod:369
945 #: ../resize/virt-resize.pod:378 ../resize/virt-resize.pod:384
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:694 ../ruby/examples/guestfs-ruby.pod:36
1046 #: ../sparsify/virt-sparsify.pod:275 ../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:717 ../sparsify/virt-sparsify.pod:288
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:719
1079 #: ../sparsify/virt-sparsify.pod:290 ../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:721 ../ruby/examples/guestfs-ruby.pod:52
1099 #: ../sparsify/virt-sparsify.pod:292 ../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:294
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:725
1122 #: ../sparsify/virt-sparsify.pod:296 ../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:730
1142 #: ../sparsify/virt-sparsify.pod:301 ../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:735
1166 #: ../sparsify/virt-sparsify.pod:306 ../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:691 ../sparsify/virt-sparsify.pod:253
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:723 ../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:256
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:441
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:260
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:627
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:397
23629 #: ../resize/virt-resize.pod:489 ../sparsify/virt-sparsify.pod:144
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:603
24922 #: ../sparsify/virt-sparsify.pod:227 ../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:610
24962 #: ../sparsify/virt-sparsify.pod:234 ../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:616
24985 #: ../sparsify/virt-sparsify.pod:240 ../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 ../sparsify/virt-sparsify.pod:131
25594 #| msgid "B<--debug>"
25595 msgid "B<--debug-gc>"
25596 msgstr "B<--debug>"
25599 #: ../resize/virt-resize.pod:334
25601 "Debug garbage collection and memory allocation. This is only useful when "
25602 "debugging memory problems in virt-resize or the OCaml libguestfs bindings."
25606 #: ../resize/virt-resize.pod:338
25607 msgid "B<--delete part>"
25608 msgstr "B<--delete розділ>"
25611 #: ../resize/virt-resize.pod:340
25613 "Delete the named partition. It would be more accurate to describe this as "
25614 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
25615 "the original disk image is left intact."
25619 #: ../resize/virt-resize.pod:344
25621 "Note that when you delete a partition, then anything contained in the "
25622 "partition is also deleted. Furthermore, this causes any partitions that "
25623 "come after to be I<renumbered>, which can easily make your guest unbootable."
25627 #: ../resize/virt-resize.pod:349 ../resize/virt-resize.pod:410
25628 #: ../resize/virt-resize.pod:537 ../sparsify/virt-sparsify.pod:157
25629 msgid "You can give this option multiple times."
25633 #: ../resize/virt-resize.pod:351
25634 msgid "B<--expand part>"
25635 msgstr "B<--expand розділ>"
25638 #: ../resize/virt-resize.pod:353
25640 "Expand the named partition so it uses up all extra space (space left over "
25641 "after any other resize changes that you request have been done)."
25645 #: ../resize/virt-resize.pod:356
25647 "If virt-resize knows how, it will expand the direct content of the "
25648 "partition. For example, if the partition is an LVM PV, it will expand the "
25649 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
25650 "content it doesn't know about alone."
25654 #: ../resize/virt-resize.pod:361
25655 msgid "Currently virt-resize can resize:"
25659 #: ../resize/virt-resize.pod:367
25660 msgid "ext2, ext3 and ext4 filesystems."
25664 #: ../resize/virt-resize.pod:371
25665 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
25669 #: ../resize/virt-resize.pod:373
25671 "The filesystem must have been shut down consistently last time it was used. "
25672 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
25673 "consistency check, so at the first boot after resizing Windows will check "
25678 #: ../resize/virt-resize.pod:380
25680 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
25681 "inside the PV, but see the I<--LV-expand> option. The user could also "
25682 "resize LVs as desired after boot."
25686 #: ../resize/virt-resize.pod:386
25687 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
25691 #: ../resize/virt-resize.pod:390 ../resize/virt-resize.pod:565
25692 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
25696 #: ../resize/virt-resize.pod:392 ../sparsify/virt-sparsify.pod:137
25697 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
25698 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
25699 msgid "B<--format> raw"
25700 msgstr "B<--format> raw"
25703 #: ../resize/virt-resize.pod:394 ../sparsify/virt-sparsify.pod:141
25705 "Specify the format of the input disk image. If this flag is not given then "
25706 "it is auto-detected from the image itself."
25710 #: ../resize/virt-resize.pod:400
25712 "Note that this option I<does not> affect the output format. See L</QCOW2 "
25713 "AND NON-SPARSE RAW FORMATS>."
25717 #: ../resize/virt-resize.pod:403
25718 msgid "B<--ignore part>"
25719 msgstr "B<--ignore розділ>"
25722 #: ../resize/virt-resize.pod:405
25724 "Ignore the named partition. Effectively this means the partition is "
25725 "allocated on the destination disk, but the content is not copied across from "
25726 "the source disk. The content of the partition will be blank (all zero "
25731 #: ../resize/virt-resize.pod:412
25732 msgid "B<--LV-expand logvol>"
25733 msgstr "B<--LV-expand логічний_том>"
25736 #: ../resize/virt-resize.pod:414
25738 "This takes the logical volume and, as a final step, expands it to fill all "
25739 "the space available in its volume group. A typical usage, assuming a Linux "
25740 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
25741 "lv_root> would be:"
25745 #: ../resize/virt-resize.pod:419
25748 " virt-resize indisk outdisk \\\n"
25749 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
25754 #: ../resize/virt-resize.pod:422
25756 "This would first expand the partition (and PV), and then expand the root "
25757 "device to fill the extra space in the PV."
25761 #: ../resize/virt-resize.pod:425
25763 "The contents of the LV are also resized if virt-resize knows how to do "
25764 "that. You can stop virt-resize from trying to expand the content by using "
25765 "the option I<--no-expand-content>."
25769 #: ../resize/virt-resize.pod:429
25770 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
25774 #: ../resize/virt-resize.pod:431
25776 "You can give this option multiple times, I<but> it doesn't make sense to do "
25777 "this unless the logical volumes you specify are all in different volume "
25782 #: ../resize/virt-resize.pod:435 ../sparsify/virt-sparsify.pod:159
25783 msgid "B<--machine-readable>"
25787 #: ../resize/virt-resize.pod:437 ../sparsify/virt-sparsify.pod:161
25789 "This option is used to make the output more machine friendly when being "
25790 "parsed by other programs. See L</MACHINE READABLE OUTPUT> below."
25794 #: ../resize/virt-resize.pod:443
25795 msgid "B<--dryrun>"
25796 msgstr "B<--dryrun>"
25799 #: ../resize/virt-resize.pod:445
25800 msgid "Print a summary of what would be done, but don't do anything."
25804 #: ../resize/virt-resize.pod:447
25805 msgid "B<--no-copy-boot-loader>"
25806 msgstr "B<--no-copy-boot-loader>"
25809 #: ../resize/virt-resize.pod:449
25811 "By default, virt-resize copies over some sectors at the start of the disk "
25812 "(up to the beginning of the first partition). Commonly these sectors "
25813 "contain the Master Boot Record (MBR) and the boot loader, and are required "
25814 "in order for the guest to boot correctly."
25818 #: ../resize/virt-resize.pod:454
25820 "If you specify this flag, then this initial copy is not done. You may need "
25821 "to reinstall the boot loader in this case."
25825 #: ../resize/virt-resize.pod:457
25826 msgid "B<--no-extra-partition>"
25827 msgstr "B<--no-extra-partition>"
25830 #: ../resize/virt-resize.pod:459
25832 "By default, virt-resize creates an extra partition if there is any extra, "
25833 "unused space after all resizing has happened. Use this option to prevent "
25834 "the extra partition from being created. If you do this then the extra space "
25835 "will be inaccessible until you run fdisk, parted, or some other partitioning "
25836 "tool in the guest."
25840 #: ../resize/virt-resize.pod:465
25842 "Note that if the surplus space is smaller than 10 MB, no extra partition "
25847 #: ../resize/virt-resize.pod:468
25848 msgid "B<--no-expand-content>"
25849 msgstr "B<--no-expand-content>"
25852 #: ../resize/virt-resize.pod:470
25854 "By default, virt-resize will try to expand the direct contents of "
25855 "partitions, if it knows how (see I<--expand> option above)."
25859 #: ../resize/virt-resize.pod:473
25861 "If you give the I<--no-expand-content> option then virt-resize will not "
25866 #: ../resize/virt-resize.pod:476
25867 msgid "B<--ntfsresize-force>"
25868 msgstr "B<--ntfsresize-force>"
25871 #: ../resize/virt-resize.pod:478
25873 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
25874 "the NTFS disk is marked as needing a consistency check. You have to use "
25875 "this option if you want to resize a Windows guest multiple times without "
25876 "booting into Windows between each resize."
25880 #: ../resize/virt-resize.pod:484
25881 msgid "B<--output-format> raw"
25882 msgstr "B<--output-format> raw"
25885 #: ../resize/virt-resize.pod:486
25887 "Specify the format of the output disk image. If this flag is not given then "
25888 "it is auto-detected from the image itself."
25892 #: ../resize/virt-resize.pod:492
25894 "Note that this option I<does not create> the output format. This option "
25895 "just tells libguestfs what it is so it doesn't try to guess it. You still "
25896 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
25897 "SPARSE RAW FORMATS>."
25901 #: ../resize/virt-resize.pod:501
25902 msgid "Don't print the summary."
25906 #: ../resize/virt-resize.pod:503
25907 msgid "B<--resize part=size>"
25908 msgstr "B<--resize розділ=розмір>"
25911 #: ../resize/virt-resize.pod:505
25913 "Resize the named partition (expanding or shrinking it) so that it has the "
25918 #: ../resize/virt-resize.pod:508
25920 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
25921 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
25922 "size; or as a relative number or percentage. For example:"
25926 #: ../resize/virt-resize.pod:514
25929 " --resize /dev/sda2=10G\n"
25934 #: ../resize/virt-resize.pod:516
25937 " --resize /dev/sda4=90%\n"
25942 #: ../resize/virt-resize.pod:518
25945 " --resize /dev/sda2=+1G\n"
25950 #: ../resize/virt-resize.pod:520
25953 " --resize /dev/sda2=-200M\n"
25958 #: ../resize/virt-resize.pod:522
25961 " --resize /dev/sda1=+128K\n"
25966 #: ../resize/virt-resize.pod:524
25969 " --resize /dev/sda1=+10%\n"
25974 #: ../resize/virt-resize.pod:526
25977 " --resize /dev/sda1=-10%\n"
25982 #: ../resize/virt-resize.pod:528
25984 "You can increase the size of any partition. Virt-resize will expand the "
25985 "direct content of the partition if it knows how (see I<--expand> below)."
25989 #: ../resize/virt-resize.pod:532
25991 "You can only I<decrease> the size of partitions that contain filesystems or "
25992 "PVs which have already been shrunk. Virt-resize will check this has been "
25993 "done before proceeding, or else will print an error (see also I<--resize-"
25998 #: ../resize/virt-resize.pod:539
25999 msgid "B<--resize-force part=size>"
26000 msgstr "B<--resize-force розділ=розмір>"
26003 #: ../resize/virt-resize.pod:541
26005 "This is the same as I<--resize> except that it will let you decrease the "
26006 "size of any partition. Generally this means you will lose any data which "
26007 "was at the end of the partition you shrink, but you may not care about that "
26008 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
26009 "as a swap partition)."
26013 #: ../resize/virt-resize.pod:547
26014 msgid "See also the I<--ignore> option."
26018 #: ../resize/virt-resize.pod:549
26019 msgid "B<--shrink part>"
26020 msgstr "B<--shrink розділ>"
26023 #: ../resize/virt-resize.pod:551
26025 "Shrink the named partition until the overall disk image fits in the "
26026 "destination. The named partition B<must> contain a filesystem or PV which "
26027 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
26028 "online tools). Virt-resize will check this and give an error if it has not "
26033 #: ../resize/virt-resize.pod:557
26035 "The amount by which the overall disk must be shrunk (after carrying out all "
26036 "other operations requested by the user) is called the \"deficit\". For "
26037 "example, a straight copy (assume no other operations) from a 5GB disk image "
26038 "to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
26039 "would give an error unless the user specified a partition to shrink and that "
26040 "partition had more than a gigabyte of free space."
26044 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:201
26045 msgid "MACHINE READABLE OUTPUT"
26049 #: ../resize/virt-resize.pod:577
26051 "The I<--machine-readable> option can be used to make the output more machine "
26052 "friendly, which is useful when calling virt-resize from other programs, GUIs "
26057 #: ../resize/virt-resize.pod:581 ../sparsify/virt-sparsify.pod:207
26058 msgid "There are two ways to use this option."
26062 #: ../resize/virt-resize.pod:583
26064 "Firstly use the option on its own to query the capabilities of the virt-"
26065 "resize binary. Typical output looks like this:"
26069 #: ../resize/virt-resize.pod:586
26072 " $ virt-resize --machine-readable\n"
26074 " ntfsresize-force\n"
26082 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:217
26084 "A list of features is printed, one per line, and the program exits with "
26089 #: ../resize/virt-resize.pod:596 ../sparsify/virt-sparsify.pod:220
26091 "Secondly use the option in conjunction with other options to make the "
26092 "regular program output more machine friendly."
26096 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:223
26097 msgid "At the moment this means:"
26101 #: ../resize/virt-resize.pod:605 ../sparsify/virt-sparsify.pod:229
26103 "Progress bar messages can be parsed from stdout by looking for this regular "
26108 #: ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:232
26111 " ^[0-9]+/[0-9]+$\n"
26116 #: ../resize/virt-resize.pod:612 ../sparsify/virt-sparsify.pod:236
26118 "The calling program should treat messages sent to stdout (except for "
26119 "progress bar messages) as status messages. They can be logged and/or "
26120 "displayed to the user."
26124 #: ../resize/virt-resize.pod:618
26126 "The calling program should treat messages sent to stderr as error messages. "
26127 "In addition, virt-resize exits with a non-zero status code if there was a "
26132 #: ../resize/virt-resize.pod:624
26134 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
26135 "readable> option and will return an error."
26139 #: ../resize/virt-resize.pod:629
26140 msgid "\"Partition 1 does not end on cylinder boundary.\""
26144 #: ../resize/virt-resize.pod:631
26146 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
26147 "alignment> parameter). Usually this means the partitions will not be "
26148 "aligned to the ancient CHS geometry. However CHS geometry is meaningless "
26149 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
26150 "drives. Alignment of partitions to cylinders is not required by any modern "
26151 "operating system."
26155 #: ../resize/virt-resize.pod:638
26156 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
26160 #: ../resize/virt-resize.pod:640
26162 "In Windows Vista and later versions, Microsoft switched to using a separate "
26163 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
26164 "and C</dev/sda2> is the main (C:) drive. Resizing the first (boot) "
26165 "partition causes the bootloader to fail with C<0xC0000225> error. Resizing "
26166 "the second partition (ie. C: drive) should work."
26170 #: ../resize/virt-resize.pod:647
26172 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
26173 "NTFS partitions have been expanded. This is just a safety check and (unless "
26174 "it find errors) is nothing to worry about."
26178 #: ../resize/virt-resize.pod:651
26179 msgid "GUEST BOOT STUCK AT \"GRUB\""
26183 #: ../resize/virt-resize.pod:653
26185 "If a Linux guest does not boot after resizing, and the boot is stuck after "
26186 "printing C<GRUB> on the console, try reinstalling grub."
26190 #: ../resize/virt-resize.pod:656
26193 " guestfish -i -a newdisk\n"
26194 " ><fs> cat /boot/grub/device.map\n"
26195 " # check the contents of this file are sensible or\n"
26196 " # edit the file if necessary\n"
26197 " ><fs> grub-install / /dev/vda\n"
26203 #: ../resize/virt-resize.pod:663
26205 "For more flexible guest reconfiguration, including if you need to specify "
26206 "other parameters to grub-install, use L<virt-rescue(1)>."
26210 #: ../resize/virt-resize.pod:666
26211 msgid "ALTERNATIVE TOOLS"
26215 #: ../resize/virt-resize.pod:668
26217 "There are several proprietary tools for resizing partitions. We won't "
26218 "mention any here."
26222 #: ../resize/virt-resize.pod:671
26224 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
26225 "operations on disk images. They can resize and move partitions, but I don't "
26226 "think they can do anything with the contents, and they certainly don't "
26231 #: ../resize/virt-resize.pod:676
26233 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
26234 "but at a much lower level. You will probably end up hand-calculating sector "
26235 "offsets, which is something that virt-resize was designed to avoid. If you "
26236 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
26241 #: ../resize/virt-resize.pod:696
26243 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
26244 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
26245 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
26246 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
26247 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
26251 #: ../ruby/examples/guestfs-ruby.pod:5
26252 msgid "guestfs-ruby - How to use libguestfs from Ruby"
26256 #: ../ruby/examples/guestfs-ruby.pod:9
26259 " require 'guestfs'\n"
26260 " g = Guestfs::Guestfs.new()\n"
26261 " g.add_drive_opts(\"disk.img\",\n"
26262 " :readonly => 1, :format => \"raw\")\n"
26268 #: ../ruby/examples/guestfs-ruby.pod:17
26270 "This manual page documents how to call libguestfs from the Ruby programming "
26271 "language. This page just documents the differences from the C API and gives "
26272 "some examples. If you are not familiar with using libguestfs, you also need "
26273 "to read L<guestfs(3)>."
26277 #: ../ruby/examples/guestfs-ruby.pod:24
26279 "Errors from libguestfs functions are mapped into the C<Error> exception. "
26280 "This has a single parameter which is the error message (a string)."
26284 #: ../ruby/examples/guestfs-ruby.pod:38
26286 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
26287 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
26288 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
26292 #: ../sparsify/virt-sparsify.pod:5
26293 msgid "virt-sparsify - Make a virtual machine disk sparse"
26297 #: ../sparsify/virt-sparsify.pod:9
26300 " virt-sparsify [--options] indisk outdisk\n"
26305 #: ../sparsify/virt-sparsify.pod:13
26307 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
26308 "image) sparse a.k.a. thin-provisioned. This means that free space within "
26309 "the disk image can be converted back to free space on the host."
26313 #: ../sparsify/virt-sparsify.pod:18
26315 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
26316 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
26320 #: ../sparsify/virt-sparsify.pod:21
26322 "Virt-sparsify can also convert between some disk formats, for example "
26323 "converting a raw disk image to a thin-provisioned qcow2 image."
26327 #: ../sparsify/virt-sparsify.pod:24
26329 "Virt-sparsify can operate on any disk image, not just ones from virtual "
26330 "machines. If a virtual machine has more than one attached disk, you must "
26331 "sparsify each one separately."
26335 #: ../sparsify/virt-sparsify.pod:28
26336 msgid "IMPORTANT LIMITATIONS"
26340 #: ../sparsify/virt-sparsify.pod:34
26342 "Virt-sparsify does not do in-place modifications. It copies from a source "
26343 "image to a destination image, leaving the source unchanged. I<Check that "
26344 "the sparsification was successful before deleting the source image>."
26348 #: ../sparsify/virt-sparsify.pod:41
26349 msgid "The virtual machine I<must be shut down> before using this tool."
26353 #: ../sparsify/virt-sparsify.pod:45
26355 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
26356 "(1 temporary copy + 1 destination image). This is in the worst case and "
26357 "usually much less space is required."
26361 #: ../sparsify/virt-sparsify.pod:51
26363 "Virt-sparsify cannot resize disk images. To do that, use L<virt-resize(1)>."
26367 #: ../sparsify/virt-sparsify.pod:56
26368 msgid "Virt-sparsify cannot handle encrypted disks."
26372 #: ../sparsify/virt-sparsify.pod:60
26374 "Virt-sparsify cannot yet sparsify the space between partitions. Note that "
26375 "this space is often used for critical items like bootloaders so it's not "
26380 #: ../sparsify/virt-sparsify.pod:66
26382 "Virt-sparsify does not yet know how to sparsify swapspace. It is not safe "
26383 "to do this unless we can be sure there is no hibernation data, so at the "
26384 "moment swap partitions are ignored."
26388 #: ../sparsify/virt-sparsify.pod:72
26390 "You may also want to read the manual pages for the associated tools L<virt-"
26391 "filesystems(1)> and L<virt-df(1)> before starting."
26395 #: ../sparsify/virt-sparsify.pod:77
26396 msgid "Typical usage is:"
26400 #: ../sparsify/virt-sparsify.pod:79
26403 " virt-sparsify indisk outdisk\n"
26408 #: ../sparsify/virt-sparsify.pod:81
26410 "which copies C<indisk> to C<outdisk>, making the output sparse. C<outdisk> "
26411 "is created, or overwritten if it already exists. The format of the input "
26412 "disk is detected (eg. qcow2) and the same format is used for the output disk."
26416 #: ../sparsify/virt-sparsify.pod:86
26417 msgid "To convert between formats, use the I<--convert> option:"
26421 #: ../sparsify/virt-sparsify.pod:88
26424 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
26429 #: ../sparsify/virt-sparsify.pod:90
26431 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
26432 "can find within the source disk image. You can get it to ignore (don't zero "
26433 "free space on) certain filesystems by doing:"
26437 #: ../sparsify/virt-sparsify.pod:94
26440 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
26445 #: ../sparsify/virt-sparsify.pod:96
26447 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
26451 #: ../sparsify/virt-sparsify.pod:107
26453 #| msgid "B<--parts>"
26454 msgid "B<--compress>"
26455 msgstr "B<--parts>"
26458 #: ../sparsify/virt-sparsify.pod:109
26460 "Compress the output file. This I<only> works if the output format is "
26465 #: ../sparsify/virt-sparsify.pod:112
26466 msgid "B<--convert> raw"
26470 #: ../sparsify/virt-sparsify.pod:114
26471 msgid "B<--convert> qcow2"
26475 #: ../sparsify/virt-sparsify.pod:116
26476 msgid "B<--convert> [other formats]"
26480 #: ../sparsify/virt-sparsify.pod:118
26482 "Use C<output-format> as the format for the destination image. If this is "
26483 "not specified, then the input format is used."
26487 #: ../sparsify/virt-sparsify.pod:121
26489 "Supported and known-working output formats are: C<raw>, C<qcow2>, C<vdi>."
26493 #: ../sparsify/virt-sparsify.pod:123
26495 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
26496 "C<vmdk>, but support for other formats is reliant on qemu."
26500 #: ../sparsify/virt-sparsify.pod:126
26502 "Specifying the I<--convert> option is usually a good idea, because then virt-"
26503 "sparsify doesn't need to try to guess the input format."
26507 #: ../sparsify/virt-sparsify.pod:129
26508 msgid "For fine-tuning the output format, see: I<--compress>, I<-o>."
26512 #: ../sparsify/virt-sparsify.pod:133
26514 "Debug garbage collection and memory allocation. This is only useful when "
26515 "debugging memory problems in virt-sparsify or the OCaml libguestfs bindings."
26519 #: ../sparsify/virt-sparsify.pod:139
26520 msgid "B<--format> qcow2"
26524 #: ../sparsify/virt-sparsify.pod:147
26525 msgid "B<--ignore> filesystem"
26529 #: ../sparsify/virt-sparsify.pod:149
26530 msgid "B<--ignore> volgroup"
26534 #: ../sparsify/virt-sparsify.pod:151
26536 "Ignore the named filesystem. Free space on the filesystem will not be "
26537 "zeroed, but existing blocks of zeroes will still be sparsified."
26541 #: ../sparsify/virt-sparsify.pod:154
26543 "In the second form, this ignores the named volume group. Use the volume "
26544 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
26548 #: ../sparsify/virt-sparsify.pod:165
26550 #| msgid "B<--option option>"
26551 msgid "B<-o> option[,option,...]"
26552 msgstr "B<--option параметр>"
26555 #: ../sparsify/virt-sparsify.pod:167
26557 "Pass I<-o> option(s) to the L<qemu-img(1)> command to fine-tune the output "
26558 "format. Options available depend on the output format (see I<--convert>) "
26559 "and the installed version of the qemu-img program."
26563 #: ../sparsify/virt-sparsify.pod:171
26565 "You should use I<-o> at most once. To pass multiple options, separate them "
26570 #: ../sparsify/virt-sparsify.pod:174
26573 " virt-sparsify --convert qcow2 \\\n"
26574 " -o cluster_size=512,preallocation=metadata ...\n"
26579 #: ../sparsify/virt-sparsify.pod:181
26580 msgid "This disables progress bars and other unnecessary output."
26584 #: ../sparsify/virt-sparsify.pod:203
26586 "The I<--machine-readable> option can be used to make the output more machine "
26587 "friendly, which is useful when calling virt-sparsify from other programs, "
26592 #: ../sparsify/virt-sparsify.pod:209
26594 "Firstly use the option on its own to query the capabilities of the virt-"
26595 "sparsify binary. Typical output looks like this:"
26599 #: ../sparsify/virt-sparsify.pod:212
26602 " $ virt-sparsify --machine-readable\n"
26610 #: ../sparsify/virt-sparsify.pod:242
26612 "The calling program should treat messages sent to stderr as error messages. "
26613 "In addition, virt-sparsify exits with a non-zero status code if there was a "
26618 #: ../sparsify/virt-sparsify.pod:248
26620 "All versions of virt-sparsify have supported the I<--machine-readable> "
26625 #: ../sparsify/virt-sparsify.pod:262
26627 "Location of the temporary directory used for the potentially large temporary "
26632 #: ../sparsify/virt-sparsify.pod:265
26634 "You should ensure there is enough free space in the worst case for a full "
26635 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
26636 "to another directory that has enough space."
26640 #: ../sparsify/virt-sparsify.pod:269
26641 msgid "This defaults to C</tmp>."
26645 #: ../sparsify/virt-sparsify.pod:273
26647 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
26651 #: ../sparsify/virt-sparsify.pod:277
26653 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
26654 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
26655 "(1)>, L<http://libguestfs.org/>."
26659 #: ../src/guestfs-actions.pod:1
26660 msgid "guestfs_add_cdrom"
26664 #: ../src/guestfs-actions.pod:3
26668 " guestfs_add_cdrom (guestfs_h *g,\n"
26669 " const char *filename);\n"
26674 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
26675 #: ../src/guestfs-actions.pod:323
26677 "I<This function is deprecated.> In new code, use the L</"
26678 "guestfs_add_drive_opts> call instead."
26682 #: ../src/guestfs-actions.pod:24
26684 "This call checks for the existence of C<filename>. This stops you from "
26685 "specifying other types of drive which are supported by qemu such as C<nbd:> "
26686 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call "
26691 #: ../src/guestfs-actions.pod:31
26693 "If you just want to add an ISO file (often you use this as an efficient way "
26694 "to transfer large files into the guest), then you should probably use "
26695 "C<guestfs_add_drive_ro> instead."
26699 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
26700 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
26701 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
26702 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
26703 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
26704 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
26705 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
26706 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
26707 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734
26708 #: ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851
26709 #: ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879
26710 #: ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099
26711 #: ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137
26712 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286
26713 #: ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372
26714 #: ../src/guestfs-actions.pod:1425 ../src/guestfs-actions.pod:1478
26715 #: ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1590
26716 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1623
26717 #: ../src/guestfs-actions.pod:1651 ../src/guestfs-actions.pod:1721
26718 #: ../src/guestfs-actions.pod:1752 ../src/guestfs-actions.pod:1777
26719 #: ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1932
26720 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2174
26721 #: ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2283
26722 #: ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2935
26723 #: ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3031
26724 #: ../src/guestfs-actions.pod:4092 ../src/guestfs-actions.pod:4107
26725 #: ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:4334
26726 #: ../src/guestfs-actions.pod:4348 ../src/guestfs-actions.pod:4361
26727 #: ../src/guestfs-actions.pod:4375 ../src/guestfs-actions.pod:4390
26728 #: ../src/guestfs-actions.pod:4426 ../src/guestfs-actions.pod:4498
26729 #: ../src/guestfs-actions.pod:4518 ../src/guestfs-actions.pod:4535
26730 #: ../src/guestfs-actions.pod:4555 ../src/guestfs-actions.pod:4575
26731 #: ../src/guestfs-actions.pod:4610 ../src/guestfs-actions.pod:4629
26732 #: ../src/guestfs-actions.pod:4648 ../src/guestfs-actions.pod:4683
26733 #: ../src/guestfs-actions.pod:4695 ../src/guestfs-actions.pod:4728
26734 #: ../src/guestfs-actions.pod:4744 ../src/guestfs-actions.pod:4757
26735 #: ../src/guestfs-actions.pod:4772 ../src/guestfs-actions.pod:4789
26736 #: ../src/guestfs-actions.pod:4947 ../src/guestfs-actions.pod:5021
26737 #: ../src/guestfs-actions.pod:5031 ../src/guestfs-actions.pod:5051
26738 #: ../src/guestfs-actions.pod:5064 ../src/guestfs-actions.pod:5115
26739 #: ../src/guestfs-actions.pod:5133 ../src/guestfs-actions.pod:5151
26740 #: ../src/guestfs-actions.pod:5167 ../src/guestfs-actions.pod:5181
26741 #: ../src/guestfs-actions.pod:5195 ../src/guestfs-actions.pod:5212
26742 #: ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:5254
26743 #: ../src/guestfs-actions.pod:5317 ../src/guestfs-actions.pod:5390
26744 #: ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:5440
26745 #: ../src/guestfs-actions.pod:5459 ../src/guestfs-actions.pod:5471
26746 #: ../src/guestfs-actions.pod:5488 ../src/guestfs-actions.pod:5501
26747 #: ../src/guestfs-actions.pod:5516 ../src/guestfs-actions.pod:5531
26748 #: ../src/guestfs-actions.pod:5563 ../src/guestfs-actions.pod:5589
26749 #: ../src/guestfs-actions.pod:5628 ../src/guestfs-actions.pod:5648
26750 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5679
26751 #: ../src/guestfs-actions.pod:5728 ../src/guestfs-actions.pod:5781
26752 #: ../src/guestfs-actions.pod:5828 ../src/guestfs-actions.pod:5871
26753 #: ../src/guestfs-actions.pod:5899 ../src/guestfs-actions.pod:5916
26754 #: ../src/guestfs-actions.pod:5934 ../src/guestfs-actions.pod:6071
26755 #: ../src/guestfs-actions.pod:6128 ../src/guestfs-actions.pod:6150
26756 #: ../src/guestfs-actions.pod:6168 ../src/guestfs-actions.pod:6220
26757 #: ../src/guestfs-actions.pod:6286 ../src/guestfs-actions.pod:6303
26758 #: ../src/guestfs-actions.pod:6316 ../src/guestfs-actions.pod:6330
26759 #: ../src/guestfs-actions.pod:6619 ../src/guestfs-actions.pod:6638
26760 #: ../src/guestfs-actions.pod:6657 ../src/guestfs-actions.pod:6671
26761 #: ../src/guestfs-actions.pod:6683 ../src/guestfs-actions.pod:6697
26762 #: ../src/guestfs-actions.pod:6709 ../src/guestfs-actions.pod:6723
26763 #: ../src/guestfs-actions.pod:6739 ../src/guestfs-actions.pod:6757
26764 #: ../src/guestfs-actions.pod:6776 ../src/guestfs-actions.pod:6795
26765 #: ../src/guestfs-actions.pod:6825 ../src/guestfs-actions.pod:6843
26766 #: ../src/guestfs-actions.pod:6866 ../src/guestfs-actions.pod:6884
26767 #: ../src/guestfs-actions.pod:6903 ../src/guestfs-actions.pod:6924
26768 #: ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6960
26769 #: ../src/guestfs-actions.pod:6979 ../src/guestfs-actions.pod:7007
26770 #: ../src/guestfs-actions.pod:7031 ../src/guestfs-actions.pod:7050
26771 #: ../src/guestfs-actions.pod:7066 ../src/guestfs-actions.pod:7090
26772 #: ../src/guestfs-actions.pod:7109 ../src/guestfs-actions.pod:7124
26773 #: ../src/guestfs-actions.pod:7143 ../src/guestfs-actions.pod:7187
26774 #: ../src/guestfs-actions.pod:7214 ../src/guestfs-actions.pod:7244
26775 #: ../src/guestfs-actions.pod:7356 ../src/guestfs-actions.pod:7477
26776 #: ../src/guestfs-actions.pod:7489 ../src/guestfs-actions.pod:7502
26777 #: ../src/guestfs-actions.pod:7515 ../src/guestfs-actions.pod:7537
26778 #: ../src/guestfs-actions.pod:7550 ../src/guestfs-actions.pod:7563
26779 #: ../src/guestfs-actions.pod:7576 ../src/guestfs-actions.pod:7591
26780 #: ../src/guestfs-actions.pod:7650 ../src/guestfs-actions.pod:7667
26781 #: ../src/guestfs-actions.pod:7683 ../src/guestfs-actions.pod:7699
26782 #: ../src/guestfs-actions.pod:7716 ../src/guestfs-actions.pod:7729
26783 #: ../src/guestfs-actions.pod:7749 ../src/guestfs-actions.pod:7849
26784 #: ../src/guestfs-actions.pod:7907 ../src/guestfs-actions.pod:7921
26785 #: ../src/guestfs-actions.pod:7962 ../src/guestfs-actions.pod:7975
26786 #: ../src/guestfs-actions.pod:7993 ../src/guestfs-actions.pod:8027
26787 #: ../src/guestfs-actions.pod:8063 ../src/guestfs-actions.pod:8179
26788 #: ../src/guestfs-actions.pod:8194 ../src/guestfs-actions.pod:8208
26789 #: ../src/guestfs-actions.pod:8263 ../src/guestfs-actions.pod:8276
26790 #: ../src/guestfs-actions.pod:8321 ../src/guestfs-actions.pod:8361
26791 #: ../src/guestfs-actions.pod:8417 ../src/guestfs-actions.pod:8437
26792 #: ../src/guestfs-actions.pod:8470 ../src/guestfs-actions.pod:8534
26793 #: ../src/guestfs-actions.pod:8557 ../src/guestfs-actions.pod:8583
26794 msgid "This function returns 0 on success or -1 on error."
26798 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
26799 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2397
26800 #: ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2620
26801 #: ../src/guestfs-actions.pod:4094 ../src/guestfs-actions.pod:4114
26802 #: ../src/guestfs-actions.pod:5565 ../src/guestfs-actions.pod:6845
26803 #: ../src/guestfs-actions.pod:6962 ../src/guestfs-actions.pod:7111
26804 #: ../src/guestfs-actions.pod:7593 ../src/guestfs-actions.pod:7718
26805 #: ../src/guestfs-actions.pod:8363
26806 msgid "(Added in 0.3)"
26807 msgstr "(Додано у 0.3)"
26810 #: ../src/guestfs-actions.pod:41
26811 msgid "guestfs_add_domain"
26815 #: ../src/guestfs-actions.pod:43
26819 " guestfs_add_domain (guestfs_h *g,\n"
26820 " const char *dom,\n"
26826 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
26827 #: ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214
26828 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344
26829 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466
26830 #: ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:3288
26831 #: ../src/guestfs-actions.pod:4882 ../src/guestfs-actions.pod:5266
26832 #: ../src/guestfs-actions.pod:5575 ../src/guestfs-actions.pod:5792
26833 #: ../src/guestfs-actions.pod:7760
26835 "You may supply a list of optional arguments to this call. Use zero or more "
26836 "of the following pairs of parameters, and terminate the list with C<-1> on "
26837 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
26841 #: ../src/guestfs-actions.pod:53
26844 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
26845 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
26846 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
26847 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
26848 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
26849 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
26854 #: ../src/guestfs-actions.pod:60
26856 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
26857 "It works by connecting to libvirt, requesting the domain and domain XML from "
26858 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
26863 #: ../src/guestfs-actions.pod:141
26865 "The other optional parameters are passed directly through to "
26866 "C<guestfs_add_drive_opts>."
26870 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
26871 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751
26872 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
26873 #: ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1797
26874 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2356
26875 #: ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2518
26876 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2584
26877 #: ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2922
26878 #: ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424
26879 #: ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5968
26880 #: ../src/guestfs-actions.pod:6206 ../src/guestfs-actions.pod:6400
26881 #: ../src/guestfs-actions.pod:6426 ../src/guestfs-actions.pod:7948
26882 #: ../src/guestfs-actions.pod:8374 ../src/guestfs-actions.pod:8387
26883 #: ../src/guestfs-actions.pod:8400
26884 msgid "On error this function returns -1."
26888 #: ../src/guestfs-actions.pod:146
26889 msgid "(Added in 1.7.4)"
26890 msgstr "(Додано у 1.7.4)"
26893 #: ../src/guestfs-actions.pod:148
26894 msgid "guestfs_add_domain_va"
26898 #: ../src/guestfs-actions.pod:150
26902 " guestfs_add_domain_va (guestfs_h *g,\n"
26903 " const char *dom,\n"
26904 " va_list args);\n"
26909 #: ../src/guestfs-actions.pod:155
26910 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
26914 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
26915 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
26916 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940
26917 #: ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255
26918 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314
26919 #: ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1403
26920 #: ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456
26921 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1509
26922 #: ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1567
26923 #: ../src/guestfs-actions.pod:3372 ../src/guestfs-actions.pod:3384
26924 #: ../src/guestfs-actions.pod:4959 ../src/guestfs-actions.pod:4971
26925 #: ../src/guestfs-actions.pod:5331 ../src/guestfs-actions.pod:5343
26926 #: ../src/guestfs-actions.pod:5603 ../src/guestfs-actions.pod:5615
26927 #: ../src/guestfs-actions.pod:5841 ../src/guestfs-actions.pod:5852
26928 #: ../src/guestfs-actions.pod:7862 ../src/guestfs-actions.pod:7873
26929 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
26930 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
26933 #: ../src/guestfs-actions.pod:159
26934 msgid "guestfs_add_domain_argv"
26935 msgstr "guestfs_add_domain_argv"
26938 #: ../src/guestfs-actions.pod:161
26942 " guestfs_add_domain_argv (guestfs_h *g,\n"
26943 " const char *dom,\n"
26944 " const struct guestfs_add_domain_argv *optargs);\n"
26949 #: ../src/guestfs-actions.pod:166
26950 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
26954 #: ../src/guestfs-actions.pod:170
26955 msgid "guestfs_add_drive"
26959 #: ../src/guestfs-actions.pod:172
26963 " guestfs_add_drive (guestfs_h *g,\n"
26964 " const char *filename);\n"
26969 #: ../src/guestfs-actions.pod:176
26971 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
26972 "optional parameters, so the disk is added writable, with the format being "
26973 "detected automatically."
26977 #: ../src/guestfs-actions.pod:180
26979 "Automatic detection of the format opens you up to a potential security hole "
26980 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
26981 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
26982 "you should think about replacing calls to this function with calls to "
26983 "C<guestfs_add_drive_opts>, and specifying the format."
26987 #: ../src/guestfs-actions.pod:191
26988 msgid "guestfs_add_drive_opts"
26992 #: ../src/guestfs-actions.pod:193
26996 " guestfs_add_drive_opts (guestfs_h *g,\n"
26997 " const char *filename,\n"
27003 #: ../src/guestfs-actions.pod:203
27006 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
27007 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
27008 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
27009 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
27014 #: ../src/guestfs-actions.pod:233
27016 "This forces the image format. If you omit this (or use C<guestfs_add_drive> "
27017 "or C<guestfs_add_drive_ro>) then the format is automatically detected. "
27018 "Possible formats include C<raw> and C<qcow2>."
27022 #: ../src/guestfs-actions.pod:244
27024 "This rarely-used option lets you emulate the behaviour of the deprecated "
27025 "C<guestfs_add_drive_with_if> call (q.v.)"
27029 #: ../src/guestfs-actions.pod:256
27030 msgid "(Added in 1.5.23)"
27031 msgstr "(Додано у 1.5.23)"
27034 #: ../src/guestfs-actions.pod:258
27035 msgid "guestfs_add_drive_opts_va"
27039 #: ../src/guestfs-actions.pod:260
27043 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
27044 " const char *filename,\n"
27045 " va_list args);\n"
27050 #: ../src/guestfs-actions.pod:265
27051 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
27055 #: ../src/guestfs-actions.pod:269
27056 msgid "guestfs_add_drive_opts_argv"
27060 #: ../src/guestfs-actions.pod:271
27064 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
27065 " const char *filename,\n"
27066 " const struct guestfs_add_drive_opts_argv *optargs);\n"
27071 #: ../src/guestfs-actions.pod:276
27072 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
27076 #: ../src/guestfs-actions.pod:280
27077 msgid "guestfs_add_drive_ro"
27081 #: ../src/guestfs-actions.pod:282
27085 " guestfs_add_drive_ro (guestfs_h *g,\n"
27086 " const char *filename);\n"
27091 #: ../src/guestfs-actions.pod:286
27093 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
27094 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
27095 "disk is added read-only, with the format being detected automatically."
27099 #: ../src/guestfs-actions.pod:293
27100 msgid "(Added in 1.0.38)"
27101 msgstr "(Додано у 1.0.38)"
27104 #: ../src/guestfs-actions.pod:295
27105 msgid "guestfs_add_drive_ro_with_if"
27109 #: ../src/guestfs-actions.pod:297
27113 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
27114 " const char *filename,\n"
27115 " const char *iface);\n"
27120 #: ../src/guestfs-actions.pod:309
27122 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
27123 "QEMU interface emulation to use at run time."
27127 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
27128 #: ../src/guestfs-actions.pod:2881
27129 msgid "(Added in 1.0.84)"
27130 msgstr "(Додано у 1.0.84)"
27133 #: ../src/guestfs-actions.pod:316
27134 msgid "guestfs_add_drive_with_if"
27138 #: ../src/guestfs-actions.pod:318
27142 " guestfs_add_drive_with_if (guestfs_h *g,\n"
27143 " const char *filename,\n"
27144 " const char *iface);\n"
27149 #: ../src/guestfs-actions.pod:330
27151 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
27152 "QEMU interface emulation to use at run time."
27156 #: ../src/guestfs-actions.pod:337
27157 msgid "guestfs_aug_clear"
27161 #: ../src/guestfs-actions.pod:339
27165 " guestfs_aug_clear (guestfs_h *g,\n"
27166 " const char *augpath);\n"
27171 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
27172 msgid "(Added in 1.3.4)"
27173 msgstr "(Додано у 1.3.4)"
27176 #: ../src/guestfs-actions.pod:350
27177 msgid "guestfs_aug_close"
27181 #: ../src/guestfs-actions.pod:352
27185 " guestfs_aug_close (guestfs_h *g);\n"
27190 #: ../src/guestfs-actions.pod:355
27192 "Close the current Augeas handle and free up any resources used by it. After "
27193 "calling this, you have to call C<guestfs_aug_init> again before you can use "
27194 "any other Augeas functions."
27198 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
27199 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
27200 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
27201 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
27202 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
27203 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
27204 #: ../src/guestfs-actions.pod:6477
27205 msgid "(Added in 0.7)"
27206 msgstr "(Додано у 0.7)"
27209 #: ../src/guestfs-actions.pod:364
27210 msgid "guestfs_aug_defnode"
27214 #: ../src/guestfs-actions.pod:366
27217 " struct guestfs_int_bool *\n"
27218 " guestfs_aug_defnode (guestfs_h *g,\n"
27219 " const char *name,\n"
27220 " const char *expr,\n"
27221 " const char *val);\n"
27226 #: ../src/guestfs-actions.pod:375
27228 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
27229 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
27230 "containing that single node."
27234 #: ../src/guestfs-actions.pod:383
27236 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
27237 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
27241 #: ../src/guestfs-actions.pod:389
27242 msgid "guestfs_aug_defvar"
27246 #: ../src/guestfs-actions.pod:391
27250 " guestfs_aug_defvar (guestfs_h *g,\n"
27251 " const char *name,\n"
27252 " const char *expr);\n"
27257 #: ../src/guestfs-actions.pod:407
27258 msgid "guestfs_aug_get"
27259 msgstr "guestfs_aug_get"
27262 #: ../src/guestfs-actions.pod:409
27266 " guestfs_aug_get (guestfs_h *g,\n"
27267 " const char *augpath);\n"
27271 " guestfs_aug_get (guestfs_h *g,\n"
27272 " const char *augpath);\n"
27276 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980
27277 #: ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058
27278 #: ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177
27279 #: ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1683
27280 #: ../src/guestfs-actions.pod:1702 ../src/guestfs-actions.pod:1836
27281 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2136
27282 #: ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2316
27283 #: ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2426
27284 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2632
27285 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3050
27286 #: ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3256
27287 #: ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3490
27288 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3539
27289 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3640
27290 #: ../src/guestfs-actions.pod:3660 ../src/guestfs-actions.pod:3680
27291 #: ../src/guestfs-actions.pod:4320 ../src/guestfs-actions.pod:4667
27292 #: ../src/guestfs-actions.pod:4834 ../src/guestfs-actions.pod:5093
27293 #: ../src/guestfs-actions.pod:5986 ../src/guestfs-actions.pod:6187
27294 #: ../src/guestfs-actions.pod:6375 ../src/guestfs-actions.pod:6553
27295 #: ../src/guestfs-actions.pod:6602 ../src/guestfs-actions.pod:7262
27296 #: ../src/guestfs-actions.pod:7278 ../src/guestfs-actions.pod:7302
27297 #: ../src/guestfs-actions.pod:7326 ../src/guestfs-actions.pod:8122
27298 #: ../src/guestfs-actions.pod:8141 ../src/guestfs-actions.pod:8159
27299 #: ../src/guestfs-actions.pod:8333 ../src/guestfs-actions.pod:8647
27301 "This function returns a string, or NULL on error. I<The caller must free "
27302 "the returned string after use>."
27306 #: ../src/guestfs-actions.pod:421
27307 msgid "guestfs_aug_init"
27308 msgstr "guestfs_aug_init"
27311 #: ../src/guestfs-actions.pod:423
27315 " guestfs_aug_init (guestfs_h *g,\n"
27316 " const char *root,\n"
27321 " guestfs_aug_init (guestfs_h *g,\n"
27322 " const char *root,\n"
27327 #: ../src/guestfs-actions.pod:432
27328 msgid "You must call this before using any other C<guestfs_aug_*> commands."
27332 #: ../src/guestfs-actions.pod:457
27334 "This option is only useful when debugging Augeas lenses. Use of this option "
27335 "may require additional memory for the libguestfs appliance. You may need to "
27336 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
27337 "C<guestfs_set_memsize>."
27341 #: ../src/guestfs-actions.pod:472
27342 msgid "Do not load the tree in C<guestfs_aug_init>."
27346 #: ../src/guestfs-actions.pod:476
27347 msgid "To close the handle, you can call C<guestfs_aug_close>."
27351 #: ../src/guestfs-actions.pod:484
27352 msgid "guestfs_aug_insert"
27353 msgstr "guestfs_aug_insert"
27356 #: ../src/guestfs-actions.pod:486
27360 " guestfs_aug_insert (guestfs_h *g,\n"
27361 " const char *augpath,\n"
27362 " const char *label,\n"
27367 " guestfs_aug_insert (guestfs_h *g,\n"
27368 " const char *augpath,\n"
27369 " const char *label,\n"
27374 #: ../src/guestfs-actions.pod:504
27375 msgid "guestfs_aug_load"
27376 msgstr "guestfs_aug_load"
27379 #: ../src/guestfs-actions.pod:506
27383 " guestfs_aug_load (guestfs_h *g);\n"
27387 " guestfs_aug_load (guestfs_h *g);\n"
27391 #: ../src/guestfs-actions.pod:518
27392 msgid "guestfs_aug_ls"
27393 msgstr "guestfs_aug_ls"
27396 #: ../src/guestfs-actions.pod:520
27400 " guestfs_aug_ls (guestfs_h *g,\n"
27401 " const char *augpath);\n"
27405 " guestfs_aug_ls (guestfs_h *g,\n"
27406 " const char *augpath);\n"
27410 #: ../src/guestfs-actions.pod:524
27412 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
27413 "sorting the resulting nodes into alphabetical order."
27417 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
27418 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196
27419 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870
27420 #: ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:1992
27421 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2704
27422 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2739
27423 #: ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:2828
27424 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:2948
27425 #: ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3592
27426 #: ../src/guestfs-actions.pod:3876 ../src/guestfs-actions.pod:4190
27427 #: ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4227
27428 #: ../src/guestfs-actions.pod:4282 ../src/guestfs-actions.pod:4302
27429 #: ../src/guestfs-actions.pod:4407 ../src/guestfs-actions.pod:4806
27430 #: ../src/guestfs-actions.pod:5712 ../src/guestfs-actions.pod:6347
27431 #: ../src/guestfs-actions.pod:6473 ../src/guestfs-actions.pod:6587
27432 #: ../src/guestfs-actions.pod:7342 ../src/guestfs-actions.pod:7403
27433 #: ../src/guestfs-actions.pod:7458 ../src/guestfs-actions.pod:7604
27434 #: ../src/guestfs-actions.pod:7628 ../src/guestfs-actions.pod:8226
27435 #: ../src/guestfs-actions.pod:8246 ../src/guestfs-actions.pod:8293
27436 #: ../src/guestfs-actions.pod:8487 ../src/guestfs-actions.pod:8506
27437 #: ../src/guestfs-actions.pod:8597 ../src/guestfs-actions.pod:8616
27438 #: ../src/guestfs-actions.pod:8662 ../src/guestfs-actions.pod:8681
27440 "This function returns a NULL-terminated array of strings (like L<environ(3)"
27441 ">), or NULL if there was an error. I<The caller must free the strings and "
27442 "the array after use>."
27446 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121
27447 #: ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1908
27448 #: ../src/guestfs-actions.pod:3954 ../src/guestfs-actions.pod:3985
27449 #: ../src/guestfs-actions.pod:4650 ../src/guestfs-actions.pod:4697
27450 #: ../src/guestfs-actions.pod:5033 ../src/guestfs-actions.pod:5066
27451 #: ../src/guestfs-actions.pod:5229 ../src/guestfs-actions.pod:5716
27452 #: ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:6685
27453 #: ../src/guestfs-actions.pod:6699 ../src/guestfs-actions.pod:6711
27454 #: ../src/guestfs-actions.pod:7189 ../src/guestfs-actions.pod:7964
27455 #: ../src/guestfs-actions.pod:7977 ../src/guestfs-actions.pod:8210
27456 #: ../src/guestfs-actions.pod:8475
27457 msgid "(Added in 0.8)"
27458 msgstr "(Додано у 0.8)"
27461 #: ../src/guestfs-actions.pod:533
27462 msgid "guestfs_aug_match"
27463 msgstr "guestfs_aug_match"
27466 #: ../src/guestfs-actions.pod:535
27470 " guestfs_aug_match (guestfs_h *g,\n"
27471 " const char *augpath);\n"
27475 " guestfs_aug_match (guestfs_h *g,\n"
27476 " const char *augpath);\n"
27480 #: ../src/guestfs-actions.pod:549
27481 msgid "guestfs_aug_mv"
27482 msgstr "guestfs_aug_mv"
27485 #: ../src/guestfs-actions.pod:551
27489 " guestfs_aug_mv (guestfs_h *g,\n"
27490 " const char *src,\n"
27491 " const char *dest);\n"
27495 " guestfs_aug_mv (guestfs_h *g,\n"
27496 " const char *src,\n"
27497 " const char *dest);\n"
27501 #: ../src/guestfs-actions.pod:563
27502 msgid "guestfs_aug_rm"
27503 msgstr "guestfs_aug_rm"
27506 #: ../src/guestfs-actions.pod:565
27510 " guestfs_aug_rm (guestfs_h *g,\n"
27511 " const char *augpath);\n"
27515 " guestfs_aug_rm (guestfs_h *g,\n"
27516 " const char *augpath);\n"
27520 #: ../src/guestfs-actions.pod:577
27521 msgid "guestfs_aug_save"
27522 msgstr "guestfs_aug_save"
27525 #: ../src/guestfs-actions.pod:579
27529 " guestfs_aug_save (guestfs_h *g);\n"
27533 " guestfs_aug_save (guestfs_h *g);\n"
27537 #: ../src/guestfs-actions.pod:584
27539 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
27544 #: ../src/guestfs-actions.pod:591
27545 msgid "guestfs_aug_set"
27546 msgstr "guestfs_aug_set"
27549 #: ../src/guestfs-actions.pod:593
27553 " guestfs_aug_set (guestfs_h *g,\n"
27554 " const char *augpath,\n"
27555 " const char *val);\n"
27559 " guestfs_aug_set (guestfs_h *g,\n"
27560 " const char *augpath,\n"
27561 " const char *val);\n"
27565 #: ../src/guestfs-actions.pod:600
27567 "In the Augeas API, it is possible to clear a node by setting the value to "
27568 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
27569 "this call. Instead you must use the C<guestfs_aug_clear> call."
27573 #: ../src/guestfs-actions.pod:609
27574 msgid "guestfs_available"
27575 msgstr "guestfs_available"
27578 #: ../src/guestfs-actions.pod:611
27582 " guestfs_available (guestfs_h *g,\n"
27583 " char *const *groups);\n"
27587 " guestfs_available (guestfs_h *g,\n"
27588 " char *const *groups);\n"
27592 #: ../src/guestfs-actions.pod:619
27594 "The libguestfs groups, and the functions that those groups correspond to, "
27595 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
27596 "runtime by calling C<guestfs_available_all_groups>."
27600 #: ../src/guestfs-actions.pod:643
27601 msgid "You must call C<guestfs_launch> before calling this function."
27605 #: ../src/guestfs-actions.pod:665
27607 "This call was added in version C<1.0.80>. In previous versions of "
27608 "libguestfs all you could do would be to speculatively execute a command to "
27609 "find out if the daemon implemented it. See also C<guestfs_version>."
27613 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
27614 msgid "(Added in 1.0.80)"
27615 msgstr "(Додано у 1.0.80)"
27618 #: ../src/guestfs-actions.pod:676
27619 msgid "guestfs_available_all_groups"
27620 msgstr "guestfs_available_all_groups"
27623 #: ../src/guestfs-actions.pod:678
27627 " guestfs_available_all_groups (guestfs_h *g);\n"
27631 " guestfs_available_all_groups (guestfs_h *g);\n"
27635 #: ../src/guestfs-actions.pod:681
27637 "This command returns a list of all optional groups that this daemon knows "
27638 "about. Note this returns both supported and unsupported groups. To find "
27639 "out which ones the daemon can actually support you have to call "
27640 "C<guestfs_available> on each member of the returned list."
27644 #: ../src/guestfs-actions.pod:687
27645 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
27649 #: ../src/guestfs-actions.pod:693
27650 msgid "(Added in 1.3.15)"
27651 msgstr "(Додано у 1.3.15)"
27654 #: ../src/guestfs-actions.pod:695
27655 msgid "guestfs_base64_in"
27656 msgstr "guestfs_base64_in"
27659 #: ../src/guestfs-actions.pod:697
27663 " guestfs_base64_in (guestfs_h *g,\n"
27664 " const char *base64file,\n"
27665 " const char *filename);\n"
27669 " guestfs_base64_in (guestfs_h *g,\n"
27670 " const char *base64file,\n"
27671 " const char *filename);\n"
27675 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
27676 msgid "(Added in 1.3.5)"
27677 msgstr "(Додано у 1.3.5)"
27680 #: ../src/guestfs-actions.pod:709
27681 msgid "guestfs_base64_out"
27682 msgstr "guestfs_base64_out"
27685 #: ../src/guestfs-actions.pod:711
27689 " guestfs_base64_out (guestfs_h *g,\n"
27690 " const char *filename,\n"
27691 " const char *base64file);\n"
27695 " guestfs_base64_out (guestfs_h *g,\n"
27696 " const char *filename,\n"
27697 " const char *base64file);\n"
27701 #: ../src/guestfs-actions.pod:723
27702 msgid "guestfs_blockdev_flushbufs"
27703 msgstr "guestfs_blockdev_flushbufs"
27706 #: ../src/guestfs-actions.pod:725
27710 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
27711 " const char *device);\n"
27715 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
27716 " const char *device);\n"
27720 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753
27721 #: ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784
27722 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821
27723 #: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853
27724 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
27725 msgid "(Added in 0.9.3)"
27726 msgstr "(Додано у 0.9.3)"
27729 #: ../src/guestfs-actions.pod:738
27730 msgid "guestfs_blockdev_getbsz"
27731 msgstr "guestfs_blockdev_getbsz"
27734 #: ../src/guestfs-actions.pod:740
27738 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
27739 " const char *device);\n"
27743 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
27744 " const char *device);\n"
27748 #: ../src/guestfs-actions.pod:755
27749 msgid "guestfs_blockdev_getro"
27750 msgstr "guestfs_blockdev_getro"
27753 #: ../src/guestfs-actions.pod:757
27757 " guestfs_blockdev_getro (guestfs_h *g,\n"
27758 " const char *device);\n"
27762 " guestfs_blockdev_getro (guestfs_h *g,\n"
27763 " const char *device);\n"
27767 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1891
27768 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:2395
27769 #: ../src/guestfs-actions.pod:2406 ../src/guestfs-actions.pod:2478
27770 #: ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2544
27771 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2595
27772 #: ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:3697
27773 #: ../src/guestfs-actions.pod:3713 ../src/guestfs-actions.pod:3731
27774 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3907
27775 #: ../src/guestfs-actions.pod:3922 ../src/guestfs-actions.pod:3936
27776 #: ../src/guestfs-actions.pod:3952 ../src/guestfs-actions.pod:3967
27777 #: ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:3997
27778 #: ../src/guestfs-actions.pod:4010 ../src/guestfs-actions.pod:4024
27779 #: ../src/guestfs-actions.pod:4039 ../src/guestfs-actions.pod:4054
27780 #: ../src/guestfs-actions.pod:4067 ../src/guestfs-actions.pod:4081
27781 #: ../src/guestfs-actions.pod:5950
27782 msgid "This function returns a C truth value on success or -1 on error."
27786 #: ../src/guestfs-actions.pod:770
27787 msgid "guestfs_blockdev_getsize64"
27788 msgstr "guestfs_blockdev_getsize64"
27791 #: ../src/guestfs-actions.pod:772
27795 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
27796 " const char *device);\n"
27800 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
27801 " const char *device);\n"
27805 #: ../src/guestfs-actions.pod:778
27806 msgid "See also C<guestfs_blockdev_getsz>."
27810 #: ../src/guestfs-actions.pod:786
27811 msgid "guestfs_blockdev_getss"
27812 msgstr "guestfs_blockdev_getss"
27815 #: ../src/guestfs-actions.pod:788
27819 " guestfs_blockdev_getss (guestfs_h *g,\n"
27820 " const char *device);\n"
27824 " guestfs_blockdev_getss (guestfs_h *g,\n"
27825 " const char *device);\n"
27829 #: ../src/guestfs-actions.pod:795
27831 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
27836 #: ../src/guestfs-actions.pod:804
27837 msgid "guestfs_blockdev_getsz"
27838 msgstr "guestfs_blockdev_getsz"
27841 #: ../src/guestfs-actions.pod:806
27845 " guestfs_blockdev_getsz (guestfs_h *g,\n"
27846 " const char *device);\n"
27850 " guestfs_blockdev_getsz (guestfs_h *g,\n"
27851 " const char *device);\n"
27855 #: ../src/guestfs-actions.pod:813
27857 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
27858 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
27862 #: ../src/guestfs-actions.pod:823
27863 msgid "guestfs_blockdev_rereadpt"
27864 msgstr "guestfs_blockdev_rereadpt"
27867 #: ../src/guestfs-actions.pod:825
27871 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
27872 " const char *device);\n"
27876 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
27877 " const char *device);\n"
27881 #: ../src/guestfs-actions.pod:837
27882 msgid "guestfs_blockdev_setbsz"
27883 msgstr "guestfs_blockdev_setbsz"
27886 #: ../src/guestfs-actions.pod:839
27890 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
27891 " const char *device,\n"
27892 " int blocksize);\n"
27896 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
27897 " const char *device,\n"
27898 " int blocksize);\n"
27902 #: ../src/guestfs-actions.pod:855
27903 msgid "guestfs_blockdev_setro"
27904 msgstr "guestfs_blockdev_setro"
27907 #: ../src/guestfs-actions.pod:857
27911 " guestfs_blockdev_setro (guestfs_h *g,\n"
27912 " const char *device);\n"
27916 " guestfs_blockdev_setro (guestfs_h *g,\n"
27917 " const char *device);\n"
27921 #: ../src/guestfs-actions.pod:869
27922 msgid "guestfs_blockdev_setrw"
27923 msgstr "guestfs_blockdev_setrw"
27926 #: ../src/guestfs-actions.pod:871
27930 " guestfs_blockdev_setrw (guestfs_h *g,\n"
27931 " const char *device);\n"
27935 " guestfs_blockdev_setrw (guestfs_h *g,\n"
27936 " const char *device);\n"
27940 #: ../src/guestfs-actions.pod:883
27941 msgid "guestfs_btrfs_filesystem_resize"
27942 msgstr "guestfs_btrfs_filesystem_resize"
27945 #: ../src/guestfs-actions.pod:885
27949 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
27950 " const char *mountpoint,\n"
27955 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
27956 " const char *mountpoint,\n"
27961 #: ../src/guestfs-actions.pod:895
27964 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
27967 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
27971 #: ../src/guestfs-actions.pod:918
27972 msgid "(Added in 1.11.17)"
27973 msgstr "(Додано у 1.11.17)"
27976 #: ../src/guestfs-actions.pod:920
27977 msgid "guestfs_btrfs_filesystem_resize_va"
27978 msgstr "guestfs_btrfs_filesystem_resize_va"
27981 #: ../src/guestfs-actions.pod:922
27985 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
27986 " const char *mountpoint,\n"
27987 " va_list args);\n"
27991 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
27992 " const char *mountpoint,\n"
27993 " va_list args);\n"
27997 #: ../src/guestfs-actions.pod:927
27998 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
28002 #: ../src/guestfs-actions.pod:931
28003 msgid "guestfs_btrfs_filesystem_resize_argv"
28004 msgstr "guestfs_btrfs_filesystem_resize_argv"
28007 #: ../src/guestfs-actions.pod:933
28011 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
28012 " const char *mountpoint,\n"
28013 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
28017 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
28018 " const char *mountpoint,\n"
28019 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
28023 #: ../src/guestfs-actions.pod:938
28024 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
28028 #: ../src/guestfs-actions.pod:942
28029 msgid "guestfs_case_sensitive_path"
28033 #: ../src/guestfs-actions.pod:944
28037 " guestfs_case_sensitive_path (guestfs_h *g,\n"
28038 " const char *path);\n"
28043 #: ../src/guestfs-actions.pod:970
28045 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return C<"
28046 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
28047 "how the directories were originally created under Windows)."
28051 #: ../src/guestfs-actions.pod:978
28052 msgid "See also C<guestfs_realpath>."
28056 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:8144
28057 msgid "(Added in 1.0.75)"
28058 msgstr "(Додано у 1.0.75)"
28061 #: ../src/guestfs-actions.pod:985
28062 msgid "guestfs_cat"
28066 #: ../src/guestfs-actions.pod:987
28070 " guestfs_cat (guestfs_h *g,\n"
28071 " const char *path);\n"
28076 #: ../src/guestfs-actions.pod:993
28078 "Note that this function cannot correctly handle binary files (specifically, "
28079 "files containing C<\\0> character which is treated as end of string). For "
28080 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
28081 "functions which have a more complex interface."
28085 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4211
28086 #: ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:4323
28087 #: ../src/guestfs-actions.pod:4411 ../src/guestfs-actions.pod:4810
28088 #: ../src/guestfs-actions.pod:4824 ../src/guestfs-actions.pod:6351
28089 #: ../src/guestfs-actions.pod:6365 ../src/guestfs-actions.pod:8297
28090 #: ../src/guestfs-actions.pod:8311
28091 msgid "(Added in 0.4)"
28092 msgstr "(Додано у 0.4)"
28095 #: ../src/guestfs-actions.pod:1006
28096 msgid "guestfs_checksum"
28100 #: ../src/guestfs-actions.pod:1008
28104 " guestfs_checksum (guestfs_h *g,\n"
28105 " const char *csumtype,\n"
28106 " const char *path);\n"
28111 #: ../src/guestfs-actions.pod:1054
28112 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
28116 #: ../src/guestfs-actions.pod:1056
28117 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
28121 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1728
28122 #: ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3909
28123 #: ../src/guestfs-actions.pod:3938 ../src/guestfs-actions.pod:3999
28124 #: ../src/guestfs-actions.pod:4026 ../src/guestfs-actions.pod:8000
28125 msgid "(Added in 1.0.2)"
28126 msgstr "(Додано у 1.0.2)"
28129 #: ../src/guestfs-actions.pod:1063
28130 msgid "guestfs_checksum_device"
28134 #: ../src/guestfs-actions.pod:1065
28138 " guestfs_checksum_device (guestfs_h *g,\n"
28139 " const char *csumtype,\n"
28140 " const char *device);\n"
28145 #: ../src/guestfs-actions.pod:1070
28147 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
28148 "device named C<device>. For the types of checksums supported see the "
28149 "C<guestfs_checksum> command."
28153 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5783
28154 #: ../src/guestfs-actions.pod:5918 ../src/guestfs-actions.pod:5952
28155 #: ../src/guestfs-actions.pod:5970 ../src/guestfs-actions.pod:6152
28156 #: ../src/guestfs-actions.pod:7909 ../src/guestfs-actions.pod:7923
28157 #: ../src/guestfs-actions.pod:8323
28158 msgid "(Added in 1.3.2)"
28159 msgstr "(Додано у 1.3.2)"
28162 #: ../src/guestfs-actions.pod:1079
28163 msgid "guestfs_checksums_out"
28167 #: ../src/guestfs-actions.pod:1081
28171 " guestfs_checksums_out (guestfs_h *g,\n"
28172 " const char *csumtype,\n"
28173 " const char *directory,\n"
28174 " const char *sumsfile);\n"
28179 #: ../src/guestfs-actions.pod:1101
28180 msgid "(Added in 1.3.7)"
28181 msgstr "(Додано у 1.3.7)"
28184 #: ../src/guestfs-actions.pod:1103
28185 msgid "guestfs_chmod"
28189 #: ../src/guestfs-actions.pod:1105
28193 " guestfs_chmod (guestfs_h *g,\n"
28195 " const char *path);\n"
28200 #: ../src/guestfs-actions.pod:1123
28201 msgid "guestfs_chown"
28205 #: ../src/guestfs-actions.pod:1125
28209 " guestfs_chown (guestfs_h *g,\n"
28212 " const char *path);\n"
28217 #: ../src/guestfs-actions.pod:1141
28218 msgid "guestfs_command"
28222 #: ../src/guestfs-actions.pod:1143
28226 " guestfs_command (guestfs_h *g,\n"
28227 " char *const *arguments);\n"
28232 #: ../src/guestfs-actions.pod:1152
28234 "The single parameter is an argv-style list of arguments. The first element "
28235 "is the name of the program to run. Subsequent elements are parameters. The "
28236 "list must be non-empty (ie. must contain a program name). Note that the "
28237 "command runs directly, and is I<not> invoked via the shell (see "
28242 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203
28243 #: ../src/guestfs-actions.pod:2027
28244 msgid "(Added in 0.9.1)"
28245 msgstr "(Додано у 0.9.1)"
28248 #: ../src/guestfs-actions.pod:1185
28249 msgid "guestfs_command_lines"
28253 #: ../src/guestfs-actions.pod:1187
28257 " guestfs_command_lines (guestfs_h *g,\n"
28258 " char *const *arguments);\n"
28263 #: ../src/guestfs-actions.pod:1191
28265 "This is the same as C<guestfs_command>, but splits the result into a list of "
28270 #: ../src/guestfs-actions.pod:1194
28271 msgid "See also: C<guestfs_sh_lines>"
28275 #: ../src/guestfs-actions.pod:1205
28276 msgid "guestfs_compress_device_out"
28280 #: ../src/guestfs-actions.pod:1207
28284 " guestfs_compress_device_out (guestfs_h *g,\n"
28285 " const char *ctype,\n"
28286 " const char *device,\n"
28287 " const char *zdevice,\n"
28293 #: ../src/guestfs-actions.pod:1219
28296 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
28301 #: ../src/guestfs-actions.pod:1224
28303 "The C<ctype> and optional C<level> parameters have the same meaning as in "
28304 "C<guestfs_compress_out>."
28308 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288
28309 #: ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:7068
28310 msgid "(Added in 1.13.15)"
28314 #: ../src/guestfs-actions.pod:1231
28315 msgid "guestfs_compress_device_out_va"
28319 #: ../src/guestfs-actions.pod:1233
28323 " guestfs_compress_device_out_va (guestfs_h *g,\n"
28324 " const char *ctype,\n"
28325 " const char *device,\n"
28326 " const char *zdevice,\n"
28327 " va_list args);\n"
28332 #: ../src/guestfs-actions.pod:1240
28333 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
28337 #: ../src/guestfs-actions.pod:1244
28338 msgid "guestfs_compress_device_out_argv"
28342 #: ../src/guestfs-actions.pod:1246
28346 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
28347 " const char *ctype,\n"
28348 " const char *device,\n"
28349 " const char *zdevice,\n"
28350 " const struct guestfs_compress_device_out_argv *optargs);\n"
28355 #: ../src/guestfs-actions.pod:1253
28356 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
28360 #: ../src/guestfs-actions.pod:1257
28361 msgid "guestfs_compress_out"
28365 #: ../src/guestfs-actions.pod:1259
28369 " guestfs_compress_out (guestfs_h *g,\n"
28370 " const char *ctype,\n"
28371 " const char *file,\n"
28372 " const char *zfile,\n"
28378 #: ../src/guestfs-actions.pod:1271
28381 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
28386 #: ../src/guestfs-actions.pod:1290
28387 msgid "guestfs_compress_out_va"
28391 #: ../src/guestfs-actions.pod:1292
28395 " guestfs_compress_out_va (guestfs_h *g,\n"
28396 " const char *ctype,\n"
28397 " const char *file,\n"
28398 " const char *zfile,\n"
28399 " va_list args);\n"
28404 #: ../src/guestfs-actions.pod:1299
28405 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
28409 #: ../src/guestfs-actions.pod:1303
28410 msgid "guestfs_compress_out_argv"
28414 #: ../src/guestfs-actions.pod:1305
28418 " guestfs_compress_out_argv (guestfs_h *g,\n"
28419 " const char *ctype,\n"
28420 " const char *file,\n"
28421 " const char *zfile,\n"
28422 " const struct guestfs_compress_out_argv *optargs);\n"
28427 #: ../src/guestfs-actions.pod:1312
28428 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
28432 #: ../src/guestfs-actions.pod:1316
28433 msgid "guestfs_config"
28437 #: ../src/guestfs-actions.pod:1318
28441 " guestfs_config (guestfs_h *g,\n"
28442 " const char *qemuparam,\n"
28443 " const char *qemuvalue);\n"
28448 #: ../src/guestfs-actions.pod:1336
28449 msgid "guestfs_copy_device_to_device"
28453 #: ../src/guestfs-actions.pod:1338
28457 " guestfs_copy_device_to_device (guestfs_h *g,\n"
28458 " const char *src,\n"
28459 " const char *dest,\n"
28465 #: ../src/guestfs-actions.pod:1349
28468 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
28469 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
28470 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
28475 #: ../src/guestfs-actions.pod:1353
28477 "The four calls C<guestfs_copy_device_to_device>, "
28478 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
28479 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
28480 "destination (device|file)."
28484 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1427
28485 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1538
28486 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:1723
28487 #: ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:1799
28488 #: ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2198
28489 #: ../src/guestfs-actions.pod:4109 ../src/guestfs-actions.pod:7995
28490 #: ../src/guestfs-actions.pod:8029 ../src/guestfs-actions.pod:8536
28491 #: ../src/guestfs-actions.pod:8559
28493 "This long-running command can generate progress notification messages so "
28494 "that the caller can display a progress bar or indicator. To receive these "
28495 "messages, the caller must register a progress event callback. See L<guestfs"
28496 "(3)/GUESTFS_EVENT_PROGRESS>."
28500 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432
28501 #: ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543
28502 #: ../src/guestfs-actions.pod:6208
28504 #| msgid "(Added in 1.3.5)"
28505 msgid "(Added in 1.13.25)"
28506 msgstr "(Додано у 1.3.5)"
28509 #: ../src/guestfs-actions.pod:1381
28510 msgid "guestfs_copy_device_to_device_va"
28514 #: ../src/guestfs-actions.pod:1383
28518 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
28519 " const char *src,\n"
28520 " const char *dest,\n"
28521 " va_list args);\n"
28526 #: ../src/guestfs-actions.pod:1389
28527 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
28531 #: ../src/guestfs-actions.pod:1393
28532 msgid "guestfs_copy_device_to_device_argv"
28536 #: ../src/guestfs-actions.pod:1395
28540 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
28541 " const char *src,\n"
28542 " const char *dest,\n"
28543 " const struct guestfs_copy_device_to_device_argv *optargs);\n"
28548 #: ../src/guestfs-actions.pod:1401
28549 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
28553 #: ../src/guestfs-actions.pod:1405
28554 msgid "guestfs_copy_device_to_file"
28558 #: ../src/guestfs-actions.pod:1407
28562 " guestfs_copy_device_to_file (guestfs_h *g,\n"
28563 " const char *src,\n"
28564 " const char *dest,\n"
28570 #: ../src/guestfs-actions.pod:1418
28573 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
28574 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
28575 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
28580 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475
28581 #: ../src/guestfs-actions.pod:1528
28583 "See C<guestfs_copy_device_to_device> for a general overview of this call."
28587 #: ../src/guestfs-actions.pod:1434
28588 msgid "guestfs_copy_device_to_file_va"
28592 #: ../src/guestfs-actions.pod:1436
28596 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
28597 " const char *src,\n"
28598 " const char *dest,\n"
28599 " va_list args);\n"
28604 #: ../src/guestfs-actions.pod:1442
28605 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
28609 #: ../src/guestfs-actions.pod:1446
28610 msgid "guestfs_copy_device_to_file_argv"
28614 #: ../src/guestfs-actions.pod:1448
28618 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
28619 " const char *src,\n"
28620 " const char *dest,\n"
28621 " const struct guestfs_copy_device_to_file_argv *optargs);\n"
28626 #: ../src/guestfs-actions.pod:1454
28627 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
28631 #: ../src/guestfs-actions.pod:1458
28632 msgid "guestfs_copy_file_to_device"
28636 #: ../src/guestfs-actions.pod:1460
28640 " guestfs_copy_file_to_device (guestfs_h *g,\n"
28641 " const char *src,\n"
28642 " const char *dest,\n"
28648 #: ../src/guestfs-actions.pod:1471
28651 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
28652 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
28653 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
28658 #: ../src/guestfs-actions.pod:1487
28659 msgid "guestfs_copy_file_to_device_va"
28663 #: ../src/guestfs-actions.pod:1489
28667 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
28668 " const char *src,\n"
28669 " const char *dest,\n"
28670 " va_list args);\n"
28675 #: ../src/guestfs-actions.pod:1495
28676 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
28680 #: ../src/guestfs-actions.pod:1499
28681 msgid "guestfs_copy_file_to_device_argv"
28685 #: ../src/guestfs-actions.pod:1501
28689 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
28690 " const char *src,\n"
28691 " const char *dest,\n"
28692 " const struct guestfs_copy_file_to_device_argv *optargs);\n"
28697 #: ../src/guestfs-actions.pod:1507
28698 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
28702 #: ../src/guestfs-actions.pod:1511
28703 msgid "guestfs_copy_file_to_file"
28707 #: ../src/guestfs-actions.pod:1513
28711 " guestfs_copy_file_to_file (guestfs_h *g,\n"
28712 " const char *src,\n"
28713 " const char *dest,\n"
28719 #: ../src/guestfs-actions.pod:1524
28722 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
28723 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
28724 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
28729 #: ../src/guestfs-actions.pod:1531
28731 "This is B<not> the function you want for copying files. This is for copying "
28732 "blocks within existing files. See C<guestfs_cp>, C<guestfs_cp_a> and "
28733 "C<guestfs_mv> for general file copying and moving functions."
28737 #: ../src/guestfs-actions.pod:1545
28738 msgid "guestfs_copy_file_to_file_va"
28742 #: ../src/guestfs-actions.pod:1547
28746 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
28747 " const char *src,\n"
28748 " const char *dest,\n"
28749 " va_list args);\n"
28754 #: ../src/guestfs-actions.pod:1553
28755 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
28759 #: ../src/guestfs-actions.pod:1557
28760 msgid "guestfs_copy_file_to_file_argv"
28764 #: ../src/guestfs-actions.pod:1559
28768 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
28769 " const char *src,\n"
28770 " const char *dest,\n"
28771 " const struct guestfs_copy_file_to_file_argv *optargs);\n"
28776 #: ../src/guestfs-actions.pod:1565
28777 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
28781 #: ../src/guestfs-actions.pod:1569
28782 msgid "guestfs_copy_size"
28786 #: ../src/guestfs-actions.pod:1571
28790 " guestfs_copy_size (guestfs_h *g,\n"
28791 " const char *src,\n"
28792 " const char *dest,\n"
28793 " int64_t size);\n"
28798 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
28800 "I<This function is deprecated.> In new code, use the L</"
28801 "guestfs_copy_device_to_device> call instead."
28805 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4837
28806 #: ../src/guestfs-actions.pod:6378 ../src/guestfs-actions.pod:8230
28807 #: ../src/guestfs-actions.pod:8250 ../src/guestfs-actions.pod:8336
28808 msgid "(Added in 1.0.87)"
28809 msgstr "(Додано у 1.0.87)"
28812 #: ../src/guestfs-actions.pod:1599
28817 #: ../src/guestfs-actions.pod:1601
28821 " guestfs_cp (guestfs_h *g,\n"
28822 " const char *src,\n"
28823 " const char *dest);\n"
28828 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1625
28829 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1779
28830 #: ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:5730
28831 #: ../src/guestfs-actions.pod:6222
28832 msgid "(Added in 1.0.18)"
28833 msgstr "(Додано у 1.0.18)"
28836 #: ../src/guestfs-actions.pod:1613
28837 msgid "guestfs_cp_a"
28841 #: ../src/guestfs-actions.pod:1615
28845 " guestfs_cp_a (guestfs_h *g,\n"
28846 " const char *src,\n"
28847 " const char *dest);\n"
28852 #: ../src/guestfs-actions.pod:1627
28857 #: ../src/guestfs-actions.pod:1629
28861 " guestfs_dd (guestfs_h *g,\n"
28862 " const char *src,\n"
28863 " const char *dest);\n"
28868 #: ../src/guestfs-actions.pod:1646
28870 "If the destination is a device, it must be as large or larger than the "
28871 "source file or device, otherwise the copy will fail. This command cannot do "
28872 "partial copies (see C<guestfs_copy_device_to_device>)."
28876 #: ../src/guestfs-actions.pod:1655
28881 #: ../src/guestfs-actions.pod:1657
28885 " guestfs_df (guestfs_h *g);\n"
28890 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
28892 "This command is mostly useful for interactive sessions. It is I<not> "
28893 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
28898 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1686
28899 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2811
28900 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2903
28901 #: ../src/guestfs-actions.pod:5096 ../src/guestfs-actions.pod:5630
28902 #: ../src/guestfs-actions.pod:7611 ../src/guestfs-actions.pod:7635
28903 #: ../src/guestfs-actions.pod:8376 ../src/guestfs-actions.pod:8389
28904 #: ../src/guestfs-actions.pod:8402
28905 msgid "(Added in 1.0.54)"
28906 msgstr "(Додано у 1.0.54)"
28909 #: ../src/guestfs-actions.pod:1671
28910 msgid "guestfs_df_h"
28914 #: ../src/guestfs-actions.pod:1673
28918 " guestfs_df_h (guestfs_h *g);\n"
28923 #: ../src/guestfs-actions.pod:1688
28924 msgid "guestfs_dmesg"
28928 #: ../src/guestfs-actions.pod:1690
28932 " guestfs_dmesg (guestfs_h *g);\n"
28937 #: ../src/guestfs-actions.pod:1697
28939 "Another way to get the same information is to enable verbose messages with "
28940 "C<guestfs_set_verbose> or by setting the environment variable "
28941 "C<LIBGUESTFS_DEBUG=1> before running the program."
28945 #: ../src/guestfs-actions.pod:1707
28946 msgid "guestfs_download"
28950 #: ../src/guestfs-actions.pod:1709
28954 " guestfs_download (guestfs_h *g,\n"
28955 " const char *remotefilename,\n"
28956 " const char *filename);\n"
28961 #: ../src/guestfs-actions.pod:1719
28962 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
28966 #: ../src/guestfs-actions.pod:1730
28967 msgid "guestfs_download_offset"
28971 #: ../src/guestfs-actions.pod:1732
28975 " guestfs_download_offset (guestfs_h *g,\n"
28976 " const char *remotefilename,\n"
28977 " const char *filename,\n"
28978 " int64_t offset,\n"
28979 " int64_t size);\n"
28984 #: ../src/guestfs-actions.pod:1745
28986 "Note that there is no limit on the amount of data that can be downloaded "
28987 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
28988 "full amount unless an error occurs."
28992 #: ../src/guestfs-actions.pod:1750
28993 msgid "See also C<guestfs_download>, C<guestfs_pread>."
28997 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:8034
28998 msgid "(Added in 1.5.17)"
28999 msgstr "(Додано у 1.5.17)"
29002 #: ../src/guestfs-actions.pod:1761
29003 msgid "guestfs_drop_caches"
29007 #: ../src/guestfs-actions.pod:1763
29011 " guestfs_drop_caches (guestfs_h *g,\n"
29012 " int whattodrop);\n"
29017 #: ../src/guestfs-actions.pod:1781
29022 #: ../src/guestfs-actions.pod:1783
29026 " guestfs_du (guestfs_h *g,\n"
29027 " const char *path);\n"
29032 #: ../src/guestfs-actions.pod:1806
29033 msgid "guestfs_e2fsck_f"
29037 #: ../src/guestfs-actions.pod:1808
29041 " guestfs_e2fsck_f (guestfs_h *g,\n"
29042 " const char *device);\n"
29047 #: ../src/guestfs-actions.pod:1816
29049 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
29050 "Normally you should use C<guestfs_fsck>."
29054 #: ../src/guestfs-actions.pod:1821
29055 msgid "(Added in 1.0.29)"
29056 msgstr "(Додано у 1.0.29)"
29059 #: ../src/guestfs-actions.pod:1823
29060 msgid "guestfs_echo_daemon"
29061 msgstr "guestfs_echo_daemon"
29064 #: ../src/guestfs-actions.pod:1825
29068 " guestfs_echo_daemon (guestfs_h *g,\n"
29069 " char *const *words);\n"
29073 " guestfs_echo_daemon (guestfs_h *g,\n"
29074 " char *const *words);\n"
29078 #: ../src/guestfs-actions.pod:1834
29079 msgid "See also C<guestfs_ping_daemon>."
29083 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597
29084 #: ../src/guestfs-actions.pod:7092
29085 msgid "(Added in 1.0.69)"
29086 msgstr "(Додано у 1.0.69)"
29089 #: ../src/guestfs-actions.pod:1841
29090 msgid "guestfs_egrep"
29091 msgstr "guestfs_egrep"
29094 #: ../src/guestfs-actions.pod:1843
29098 " guestfs_egrep (guestfs_h *g,\n"
29099 " const char *regex,\n"
29100 " const char *path);\n"
29104 " guestfs_egrep (guestfs_h *g,\n"
29105 " const char *regex,\n"
29106 " const char *path);\n"
29110 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1877
29111 #: ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1980
29112 #: ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:2727
29113 #: ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2924
29114 #: ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2952
29115 #: ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3020
29116 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:4336
29117 #: ../src/guestfs-actions.pod:4350 ../src/guestfs-actions.pod:4363
29118 #: ../src/guestfs-actions.pod:4377 ../src/guestfs-actions.pod:5518
29119 #: ../src/guestfs-actions.pod:6556 ../src/guestfs-actions.pod:6605
29120 #: ../src/guestfs-actions.pod:7479 ../src/guestfs-actions.pod:7491
29121 #: ../src/guestfs-actions.pod:7504 ../src/guestfs-actions.pod:7517
29122 #: ../src/guestfs-actions.pod:7539 ../src/guestfs-actions.pod:7552
29123 #: ../src/guestfs-actions.pod:7565 ../src/guestfs-actions.pod:7578
29124 #: ../src/guestfs-actions.pod:8494 ../src/guestfs-actions.pod:8513
29125 #: ../src/guestfs-actions.pod:8604 ../src/guestfs-actions.pod:8623
29126 #: ../src/guestfs-actions.pod:8669 ../src/guestfs-actions.pod:8688
29127 msgid "(Added in 1.0.66)"
29128 msgstr "(Додано у 1.0.66)"
29131 #: ../src/guestfs-actions.pod:1860
29132 msgid "guestfs_egrepi"
29133 msgstr "guestfs_egrepi"
29136 #: ../src/guestfs-actions.pod:1862
29140 " guestfs_egrepi (guestfs_h *g,\n"
29141 " const char *regex,\n"
29142 " const char *path);\n"
29147 #: ../src/guestfs-actions.pod:1879
29148 msgid "guestfs_equal"
29152 #: ../src/guestfs-actions.pod:1881
29156 " guestfs_equal (guestfs_h *g,\n"
29157 " const char *file1,\n"
29158 " const char *file2);\n"
29163 #: ../src/guestfs-actions.pod:1895
29164 msgid "guestfs_exists"
29168 #: ../src/guestfs-actions.pod:1897
29172 " guestfs_exists (guestfs_h *g,\n"
29173 " const char *path);\n"
29178 #: ../src/guestfs-actions.pod:1904
29179 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
29183 #: ../src/guestfs-actions.pod:1910
29184 msgid "guestfs_fallocate"
29188 #: ../src/guestfs-actions.pod:1912
29192 " guestfs_fallocate (guestfs_h *g,\n"
29193 " const char *path,\n"
29199 #: ../src/guestfs-actions.pod:1917
29201 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
29206 #: ../src/guestfs-actions.pod:1936
29207 msgid "guestfs_fallocate64"
29211 #: ../src/guestfs-actions.pod:1938
29215 " guestfs_fallocate64 (guestfs_h *g,\n"
29216 " const char *path,\n"
29222 #: ../src/guestfs-actions.pod:1947
29224 "Note that this call allocates disk blocks for the file. To create a sparse "
29225 "file use C<guestfs_truncate_size> instead."
29229 #: ../src/guestfs-actions.pod:1950
29231 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
29232 "oversight it only allowed 30 bit lengths to be specified, effectively "
29233 "limiting the maximum size of files created through that call to 1GB."
29237 #: ../src/guestfs-actions.pod:1961
29238 msgid "(Added in 1.3.17)"
29239 msgstr "(Додано у 1.3.17)"
29242 #: ../src/guestfs-actions.pod:1963
29243 msgid "guestfs_fgrep"
29247 #: ../src/guestfs-actions.pod:1965
29251 " guestfs_fgrep (guestfs_h *g,\n"
29252 " const char *pattern,\n"
29253 " const char *path);\n"
29258 #: ../src/guestfs-actions.pod:1982
29259 msgid "guestfs_fgrepi"
29263 #: ../src/guestfs-actions.pod:1984
29267 " guestfs_fgrepi (guestfs_h *g,\n"
29268 " const char *pattern,\n"
29269 " const char *path);\n"
29274 #: ../src/guestfs-actions.pod:2001
29275 msgid "guestfs_file"
29279 #: ../src/guestfs-actions.pod:2003
29283 " guestfs_file (guestfs_h *g,\n"
29284 " const char *path);\n"
29289 #: ../src/guestfs-actions.pod:2021
29291 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
29292 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
29296 #: ../src/guestfs-actions.pod:2029
29297 msgid "guestfs_file_architecture"
29301 #: ../src/guestfs-actions.pod:2031
29305 " guestfs_file_architecture (guestfs_h *g,\n"
29306 " const char *filename);\n"
29311 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:2302
29312 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3053
29313 #: ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3221
29314 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426
29315 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3542
29316 #: ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:3880
29317 #: ../src/guestfs-actions.pod:4012
29318 msgid "(Added in 1.5.3)"
29319 msgstr "(Додано у 1.5.3)"
29322 #: ../src/guestfs-actions.pod:2141
29323 msgid "guestfs_filesize"
29327 #: ../src/guestfs-actions.pod:2143
29331 " guestfs_filesize (guestfs_h *g,\n"
29332 " const char *file);\n"
29337 #: ../src/guestfs-actions.pod:2149
29339 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
29340 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
29341 "devices, use C<guestfs_blockdev_getsize64>."
29345 #: ../src/guestfs-actions.pod:2155
29346 msgid "(Added in 1.0.82)"
29347 msgstr "(Додано у 1.0.82)"
29350 #: ../src/guestfs-actions.pod:2157
29351 msgid "guestfs_fill"
29355 #: ../src/guestfs-actions.pod:2159
29359 " guestfs_fill (guestfs_h *g,\n"
29362 " const char *path);\n"
29367 #: ../src/guestfs-actions.pod:2169
29369 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
29370 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
29371 "bytes use C<guestfs_fill_pattern>."
29375 #: ../src/guestfs-actions.pod:2181
29376 msgid "(Added in 1.0.79)"
29377 msgstr "(Додано у 1.0.79)"
29380 #: ../src/guestfs-actions.pod:2183
29381 msgid "guestfs_fill_pattern"
29385 #: ../src/guestfs-actions.pod:2185
29389 " guestfs_fill_pattern (guestfs_h *g,\n"
29390 " const char *pattern,\n"
29392 " const char *path);\n"
29397 #: ../src/guestfs-actions.pod:2191
29399 "This function is like C<guestfs_fill> except that it creates a new file of "
29400 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
29401 "pattern is truncated if necessary to ensure the length of the file is "
29402 "exactly C<len> bytes."
29406 #: ../src/guestfs-actions.pod:2203
29407 msgid "(Added in 1.3.12)"
29408 msgstr "(Додано у 1.3.12)"
29411 #: ../src/guestfs-actions.pod:2205
29412 msgid "guestfs_find"
29416 #: ../src/guestfs-actions.pod:2207
29420 " guestfs_find (guestfs_h *g,\n"
29421 " const char *directory);\n"
29426 #: ../src/guestfs-actions.pod:2223
29428 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
29432 #: ../src/guestfs-actions.pod:2236
29433 msgid "See also C<guestfs_find0>."
29437 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4774
29438 #: ../src/guestfs-actions.pod:6640
29439 msgid "(Added in 1.0.27)"
29440 msgstr "(Додано у 1.0.27)"
29443 #: ../src/guestfs-actions.pod:2247
29444 msgid "guestfs_find0"
29448 #: ../src/guestfs-actions.pod:2249
29452 " guestfs_find0 (guestfs_h *g,\n"
29453 " const char *directory,\n"
29454 " const char *files);\n"
29459 #: ../src/guestfs-actions.pod:2258
29461 "This command works the same way as C<guestfs_find> with the following "
29466 #: ../src/guestfs-actions.pod:2285
29467 msgid "(Added in 1.0.74)"
29468 msgstr "(Додано у 1.0.74)"
29471 #: ../src/guestfs-actions.pod:2287
29472 msgid "guestfs_findfs_label"
29476 #: ../src/guestfs-actions.pod:2289
29480 " guestfs_findfs_label (guestfs_h *g,\n"
29481 " const char *label);\n"
29486 #: ../src/guestfs-actions.pod:2297
29487 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
29491 #: ../src/guestfs-actions.pod:2304
29492 msgid "guestfs_findfs_uuid"
29496 #: ../src/guestfs-actions.pod:2306
29500 " guestfs_findfs_uuid (guestfs_h *g,\n"
29501 " const char *uuid);\n"
29506 #: ../src/guestfs-actions.pod:2314
29507 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
29511 #: ../src/guestfs-actions.pod:2321
29512 msgid "guestfs_fsck"
29516 #: ../src/guestfs-actions.pod:2323
29520 " guestfs_fsck (guestfs_h *g,\n"
29521 " const char *fstype,\n"
29522 " const char *device);\n"
29527 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8541
29528 msgid "(Added in 1.0.16)"
29529 msgstr "(Додано у 1.0.16)"
29532 #: ../src/guestfs-actions.pod:2360
29533 msgid "guestfs_get_append"
29537 #: ../src/guestfs-actions.pod:2362
29541 " guestfs_get_append (guestfs_h *g);\n"
29546 #: ../src/guestfs-actions.pod:2370
29548 "This function returns a string which may be NULL. There is no way to return "
29549 "an error from this function. The string is owned by the guest handle and "
29550 "must I<not> be freed."
29554 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6318
29555 #: ../src/guestfs-actions.pod:6797 ../src/guestfs-actions.pod:7246
29556 #: ../src/guestfs-actions.pod:7265 ../src/guestfs-actions.pod:7281
29557 #: ../src/guestfs-actions.pod:7305 ../src/guestfs-actions.pod:8181
29558 #: ../src/guestfs-actions.pod:8196 ../src/guestfs-actions.pod:8585
29559 msgid "(Added in 1.0.26)"
29560 msgstr "(Додано у 1.0.26)"
29563 #: ../src/guestfs-actions.pod:2376
29564 msgid "guestfs_get_attach_method"
29568 #: ../src/guestfs-actions.pod:2378
29572 " guestfs_get_attach_method (guestfs_h *g);\n"
29577 #: ../src/guestfs-actions.pod:2381
29578 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
29582 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6827
29583 msgid "(Added in 1.9.8)"
29584 msgstr "(Додано у 1.9.8)"
29587 #: ../src/guestfs-actions.pod:2388
29588 msgid "guestfs_get_autosync"
29592 #: ../src/guestfs-actions.pod:2390
29596 " guestfs_get_autosync (guestfs_h *g);\n"
29601 #: ../src/guestfs-actions.pod:2399
29602 msgid "guestfs_get_direct"
29606 #: ../src/guestfs-actions.pod:2401
29610 " guestfs_get_direct (guestfs_h *g);\n"
29615 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6868
29616 msgid "(Added in 1.0.72)"
29617 msgstr "(Додано у 1.0.72)"
29620 #: ../src/guestfs-actions.pod:2410
29621 msgid "guestfs_get_e2label"
29625 #: ../src/guestfs-actions.pod:2412
29629 " guestfs_get_e2label (guestfs_h *g,\n"
29630 " const char *device);\n"
29635 #: ../src/guestfs-actions.pod:2416
29637 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
29642 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450
29643 #: ../src/guestfs-actions.pod:6886 ../src/guestfs-actions.pod:6905
29644 msgid "(Added in 1.0.15)"
29645 msgstr "(Додано у 1.0.15)"
29648 #: ../src/guestfs-actions.pod:2431
29649 msgid "guestfs_get_e2uuid"
29653 #: ../src/guestfs-actions.pod:2433
29657 " guestfs_get_e2uuid (guestfs_h *g,\n"
29658 " const char *device);\n"
29663 #: ../src/guestfs-actions.pod:2437
29665 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
29670 #: ../src/guestfs-actions.pod:2452
29671 msgid "guestfs_get_memsize"
29675 #: ../src/guestfs-actions.pod:2454
29679 " guestfs_get_memsize (guestfs_h *g);\n"
29684 #: ../src/guestfs-actions.pod:2460
29686 "If C<guestfs_set_memsize> was not called on this handle, and if "
29687 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
29688 "value for memsize."
29692 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5214
29693 #: ../src/guestfs-actions.pod:5423 ../src/guestfs-actions.pod:5442
29694 #: ../src/guestfs-actions.pod:5461 ../src/guestfs-actions.pod:5473
29695 #: ../src/guestfs-actions.pod:5490 ../src/guestfs-actions.pod:5503
29696 #: ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6926
29697 #: ../src/guestfs-actions.pod:7216 ../src/guestfs-actions.pod:7950
29698 msgid "(Added in 1.0.55)"
29699 msgstr "(Додано у 1.0.55)"
29702 #: ../src/guestfs-actions.pod:2471
29703 msgid "guestfs_get_network"
29707 #: ../src/guestfs-actions.pod:2473
29711 " guestfs_get_network (guestfs_h *g);\n"
29716 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6945
29717 msgid "(Added in 1.5.4)"
29718 msgstr "(Додано у 1.5.4)"
29721 #: ../src/guestfs-actions.pod:2482
29722 msgid "guestfs_get_path"
29726 #: ../src/guestfs-actions.pod:2484
29730 " guestfs_get_path (guestfs_h *g);\n"
29735 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
29737 "This function returns a string, or NULL on error. The string is owned by "
29738 "the guest handle and must I<not> be freed."
29742 #: ../src/guestfs-actions.pod:2497
29743 msgid "guestfs_get_pgroup"
29747 #: ../src/guestfs-actions.pod:2499
29751 " guestfs_get_pgroup (guestfs_h *g);\n"
29756 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6981
29757 #: ../src/guestfs-actions.pod:8442
29758 msgid "(Added in 1.11.18)"
29759 msgstr "(Додано у 1.11.18)"
29762 #: ../src/guestfs-actions.pod:2508
29763 msgid "guestfs_get_pid"
29767 #: ../src/guestfs-actions.pod:2510
29771 " guestfs_get_pid (guestfs_h *g);\n"
29776 #: ../src/guestfs-actions.pod:2520
29777 msgid "(Added in 1.0.56)"
29778 msgstr "(Додано у 1.0.56)"
29781 #: ../src/guestfs-actions.pod:2522
29782 msgid "guestfs_get_qemu"
29786 #: ../src/guestfs-actions.pod:2524
29790 " guestfs_get_qemu (guestfs_h *g);\n"
29795 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:7009
29796 msgid "(Added in 1.0.6)"
29797 msgstr "(Додано у 1.0.6)"
29800 #: ../src/guestfs-actions.pod:2537
29801 msgid "guestfs_get_recovery_proc"
29805 #: ../src/guestfs-actions.pod:2539
29809 " guestfs_get_recovery_proc (guestfs_h *g);\n"
29814 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4134
29815 #: ../src/guestfs-actions.pod:4478 ../src/guestfs-actions.pod:4872
29816 #: ../src/guestfs-actions.pod:5053 ../src/guestfs-actions.pod:6248
29817 #: ../src/guestfs-actions.pod:6591 ../src/guestfs-actions.pod:7033
29818 #: ../src/guestfs-actions.pod:7731 ../src/guestfs-actions.pod:7751
29819 #: ../src/guestfs-actions.pod:8065
29820 msgid "(Added in 1.0.77)"
29821 msgstr "(Додано у 1.0.77)"
29824 #: ../src/guestfs-actions.pod:2548
29825 msgid "guestfs_get_selinux"
29829 #: ../src/guestfs-actions.pod:2550
29833 " guestfs_get_selinux (guestfs_h *g);\n"
29838 #: ../src/guestfs-actions.pod:2553
29840 "This returns the current setting of the selinux flag which is passed to the "
29841 "appliance at boot time. See C<guestfs_set_selinux>."
29845 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635
29846 #: ../src/guestfs-actions.pod:7052 ../src/guestfs-actions.pod:7126
29847 msgid "(Added in 1.0.67)"
29848 msgstr "(Додано у 1.0.67)"
29851 #: ../src/guestfs-actions.pod:2563
29852 msgid "guestfs_get_smp"
29856 #: ../src/guestfs-actions.pod:2565
29860 " guestfs_get_smp (guestfs_h *g);\n"
29865 #: ../src/guestfs-actions.pod:2574
29866 msgid "guestfs_get_state"
29870 #: ../src/guestfs-actions.pod:2576
29874 " guestfs_get_state (guestfs_h *g);\n"
29879 #: ../src/guestfs-actions.pod:2588
29880 msgid "guestfs_get_trace"
29884 #: ../src/guestfs-actions.pod:2590
29888 " guestfs_get_trace (guestfs_h *g);\n"
29893 #: ../src/guestfs-actions.pod:2599
29894 msgid "guestfs_get_umask"
29898 #: ../src/guestfs-actions.pod:2601
29902 " guestfs_get_umask (guestfs_h *g);\n"
29907 #: ../src/guestfs-actions.pod:2604
29909 "Return the current umask. By default the umask is C<022> unless it has been "
29910 "set by calling C<guestfs_umask>."
29914 #: ../src/guestfs-actions.pod:2611
29915 msgid "guestfs_get_verbose"
29919 #: ../src/guestfs-actions.pod:2613
29923 " guestfs_get_verbose (guestfs_h *g);\n"
29928 #: ../src/guestfs-actions.pod:2622
29929 msgid "guestfs_getcon"
29933 #: ../src/guestfs-actions.pod:2624
29937 " guestfs_getcon (guestfs_h *g);\n"
29942 #: ../src/guestfs-actions.pod:2629
29944 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
29948 #: ../src/guestfs-actions.pod:2637
29949 msgid "guestfs_getxattr"
29953 #: ../src/guestfs-actions.pod:2639
29957 " guestfs_getxattr (guestfs_h *g,\n"
29958 " const char *path,\n"
29959 " const char *name,\n"
29960 " size_t *size_r);\n"
29965 #: ../src/guestfs-actions.pod:2645
29967 "Get a single extended attribute from file C<path> named C<name>. This call "
29968 "follows symlinks. If you want to lookup an extended attribute for the "
29969 "symlink itself, use C<guestfs_lgetxattr>."
29973 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4148
29975 "Normally it is better to get all extended attributes from a file in one go "
29976 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
29977 "implementations are buggy and do not provide a way to list out attributes. "
29978 "For these filesystems (notably ntfs-3g) you have to know the names of the "
29979 "extended attributes you want in advance and call this function."
29983 #: ../src/guestfs-actions.pod:2659
29984 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
29988 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874
29989 #: ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4160
29990 #: ../src/guestfs-actions.pod:6241 ../src/guestfs-actions.pod:6267
29991 #: ../src/guestfs-actions.pod:6448
29993 "This function returns a buffer, or NULL on error. The size of the returned "
29994 "buffer is written to C<*size_r>. I<The caller must free the returned buffer "
29999 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4164
30000 msgid "(Added in 1.7.24)"
30001 msgstr "(Додано у 1.7.24)"
30004 #: ../src/guestfs-actions.pod:2667
30005 msgid "guestfs_getxattrs"
30009 #: ../src/guestfs-actions.pod:2669
30012 " struct guestfs_xattr_list *\n"
30013 " guestfs_getxattrs (guestfs_h *g,\n"
30014 " const char *path);\n"
30019 #: ../src/guestfs-actions.pod:2679
30020 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
30024 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4176
30025 #: ../src/guestfs-actions.pod:4868
30027 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
30028 "an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
30032 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4180
30033 #: ../src/guestfs-actions.pod:4392 ../src/guestfs-actions.pod:4428
30034 #: ../src/guestfs-actions.pod:6621 ../src/guestfs-actions.pod:7145
30035 #: ../src/guestfs-actions.pod:8650
30036 msgid "(Added in 1.0.59)"
30037 msgstr "(Додано у 1.0.59)"
30040 #: ../src/guestfs-actions.pod:2687
30041 msgid "guestfs_glob_expand"
30045 #: ../src/guestfs-actions.pod:2689
30049 " guestfs_glob_expand (guestfs_h *g,\n"
30050 " const char *pattern);\n"
30055 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7329
30056 #: ../src/guestfs-actions.pod:7346
30057 msgid "(Added in 1.0.50)"
30058 msgstr "(Додано у 1.0.50)"
30061 #: ../src/guestfs-actions.pod:2710
30062 msgid "guestfs_grep"
30066 #: ../src/guestfs-actions.pod:2712
30070 " guestfs_grep (guestfs_h *g,\n"
30071 " const char *regex,\n"
30072 " const char *path);\n"
30077 #: ../src/guestfs-actions.pod:2729
30078 msgid "guestfs_grepi"
30082 #: ../src/guestfs-actions.pod:2731
30086 " guestfs_grepi (guestfs_h *g,\n"
30087 " const char *regex,\n"
30088 " const char *path);\n"
30093 #: ../src/guestfs-actions.pod:2748
30094 msgid "guestfs_grub_install"
30098 #: ../src/guestfs-actions.pod:2750
30102 " guestfs_grub_install (guestfs_h *g,\n"
30103 " const char *root,\n"
30104 " const char *device);\n"
30109 #: ../src/guestfs-actions.pod:2793
30110 msgid "(Added in 1.0.17)"
30111 msgstr "(Додано у 1.0.17)"
30114 #: ../src/guestfs-actions.pod:2795
30115 msgid "guestfs_head"
30119 #: ../src/guestfs-actions.pod:2797
30123 " guestfs_head (guestfs_h *g,\n"
30124 " const char *path);\n"
30129 #: ../src/guestfs-actions.pod:2813
30130 msgid "guestfs_head_n"
30134 #: ../src/guestfs-actions.pod:2815
30138 " guestfs_head_n (guestfs_h *g,\n"
30140 " const char *path);\n"
30145 #: ../src/guestfs-actions.pod:2837
30146 msgid "guestfs_hexdump"
30150 #: ../src/guestfs-actions.pod:2839
30154 " guestfs_hexdump (guestfs_h *g,\n"
30155 " const char *path);\n"
30160 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7410
30161 #: ../src/guestfs-actions.pod:7465
30162 msgid "(Added in 1.0.22)"
30163 msgstr "(Додано у 1.0.22)"
30166 #: ../src/guestfs-actions.pod:2854
30167 msgid "guestfs_initrd_cat"
30171 #: ../src/guestfs-actions.pod:2856
30175 " guestfs_initrd_cat (guestfs_h *g,\n"
30176 " const char *initrdpath,\n"
30177 " const char *filename,\n"
30178 " size_t *size_r);\n"
30183 #: ../src/guestfs-actions.pod:2872
30184 msgid "See also C<guestfs_initrd_list>."
30188 #: ../src/guestfs-actions.pod:2883
30189 msgid "guestfs_initrd_list"
30193 #: ../src/guestfs-actions.pod:2885
30197 " guestfs_initrd_list (guestfs_h *g,\n"
30198 " const char *path);\n"
30203 #: ../src/guestfs-actions.pod:2905
30204 msgid "guestfs_inotify_add_watch"
30208 #: ../src/guestfs-actions.pod:2907
30212 " guestfs_inotify_add_watch (guestfs_h *g,\n"
30213 " const char *path,\n"
30219 #: ../src/guestfs-actions.pod:2926
30220 msgid "guestfs_inotify_close"
30224 #: ../src/guestfs-actions.pod:2928
30228 " guestfs_inotify_close (guestfs_h *g);\n"
30233 #: ../src/guestfs-actions.pod:2939
30234 msgid "guestfs_inotify_files"
30238 #: ../src/guestfs-actions.pod:2941
30242 " guestfs_inotify_files (guestfs_h *g);\n"
30247 #: ../src/guestfs-actions.pod:2944
30249 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
30250 "returns a list of pathnames of objects that were touched. The returned "
30251 "pathnames are sorted and deduplicated."
30255 #: ../src/guestfs-actions.pod:2954
30256 msgid "guestfs_inotify_init"
30260 #: ../src/guestfs-actions.pod:2956
30264 " guestfs_inotify_init (guestfs_h *g,\n"
30265 " int maxevents);\n"
30270 #: ../src/guestfs-actions.pod:2964
30272 "C<maxevents> is the maximum number of events which will be queued up between "
30273 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
30274 "passed as C<0>, then the kernel (or previously set) default is used. For "
30275 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
30276 "throws away events, but records the fact that it threw them away by setting "
30277 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
30278 "C<guestfs_inotify_read>)."
30282 #: ../src/guestfs-actions.pod:2974
30284 "Before any events are generated, you have to add some watches to the "
30285 "internal watch list. See: C<guestfs_inotify_add_watch>, "
30286 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
30290 #: ../src/guestfs-actions.pod:2980
30292 "Queued up events should be read periodically by calling "
30293 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
30294 "wrapper around C<guestfs_inotify_read>). If you don't read the events out "
30295 "often enough then you risk the internal queue overflowing."
30299 #: ../src/guestfs-actions.pod:2987
30301 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
30302 "This also removes any watches automatically."
30306 #: ../src/guestfs-actions.pod:3000
30307 msgid "guestfs_inotify_read"
30311 #: ../src/guestfs-actions.pod:3002
30314 " struct guestfs_inotify_event_list *\n"
30315 " guestfs_inotify_read (guestfs_h *g);\n"
30320 #: ../src/guestfs-actions.pod:3016
30322 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
30323 "there was an error. I<The caller must call "
30324 "C<guestfs_free_inotify_event_list> after use>."
30328 #: ../src/guestfs-actions.pod:3022
30329 msgid "guestfs_inotify_rm_watch"
30333 #: ../src/guestfs-actions.pod:3024
30337 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
30343 #: ../src/guestfs-actions.pod:3028
30345 "Remove a previously defined inotify watch. See C<guestfs_inotify_add_watch>."
30349 #: ../src/guestfs-actions.pod:3035
30350 msgid "guestfs_inspect_get_arch"
30354 #: ../src/guestfs-actions.pod:3037
30358 " guestfs_inspect_get_arch (guestfs_h *g,\n"
30359 " const char *root);\n"
30364 #: ../src/guestfs-actions.pod:3041
30366 "This returns the architecture of the inspected operating system. The "
30367 "possible return values are listed under C<guestfs_file_architecture>."
30371 #: ../src/guestfs-actions.pod:3055
30372 msgid "guestfs_inspect_get_distro"
30376 #: ../src/guestfs-actions.pod:3057
30380 " guestfs_inspect_get_distro (guestfs_h *g,\n"
30381 " const char *root);\n"
30386 #: ../src/guestfs-actions.pod:3157
30387 msgid "guestfs_inspect_get_drive_mappings"
30391 #: ../src/guestfs-actions.pod:3159
30395 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
30396 " const char *root);\n"
30401 #: ../src/guestfs-actions.pod:3188
30403 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
30404 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
30408 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460
30409 #: ../src/guestfs-actions.pod:4267 ../src/guestfs-actions.pod:5006
30410 #: ../src/guestfs-actions.pod:5692 ../src/guestfs-actions.pod:7889
30412 "This function returns a NULL-terminated array of strings, or NULL if there "
30413 "was an error. The array of strings will always have length C<2n+1>, where "
30414 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
30415 "caller must free the strings and the array after use>."
30419 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3663
30420 msgid "(Added in 1.9.17)"
30421 msgstr "(Додано у 1.9.17)"
30424 #: ../src/guestfs-actions.pod:3200
30425 msgid "guestfs_inspect_get_filesystems"
30429 #: ../src/guestfs-actions.pod:3202
30433 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
30434 " const char *root);\n"
30439 #: ../src/guestfs-actions.pod:3214
30441 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
30442 "C<guestfs_inspect_get_mountpoints>."
30446 #: ../src/guestfs-actions.pod:3223
30447 msgid "guestfs_inspect_get_format"
30451 #: ../src/guestfs-actions.pod:3225
30455 " guestfs_inspect_get_format (guestfs_h *g,\n"
30456 " const char *root);\n"
30461 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3699
30462 #: ../src/guestfs-actions.pod:3715 ../src/guestfs-actions.pod:3733
30463 #: ../src/guestfs-actions.pod:6659
30464 msgid "(Added in 1.9.4)"
30465 msgstr "(Додано у 1.9.4)"
30468 #: ../src/guestfs-actions.pod:3261
30469 msgid "guestfs_inspect_get_hostname"
30473 #: ../src/guestfs-actions.pod:3263
30477 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
30478 " const char *root);\n"
30483 #: ../src/guestfs-actions.pod:3278
30484 msgid "(Added in 1.7.9)"
30485 msgstr "(Додано у 1.7.9)"
30488 #: ../src/guestfs-actions.pod:3280
30489 msgid "guestfs_inspect_get_icon"
30493 #: ../src/guestfs-actions.pod:3282
30497 " guestfs_inspect_get_icon (guestfs_h *g,\n"
30498 " const char *root,\n"
30499 " size_t *size_r,\n"
30505 #: ../src/guestfs-actions.pod:3293
30508 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
30509 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
30514 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4194
30515 #: ../src/guestfs-actions.pod:5591
30516 msgid "(Added in 1.11.12)"
30517 msgstr "(Додано у 1.11.12)"
30520 #: ../src/guestfs-actions.pod:3362
30521 msgid "guestfs_inspect_get_icon_va"
30525 #: ../src/guestfs-actions.pod:3364
30529 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
30530 " const char *root,\n"
30531 " size_t *size_r,\n"
30532 " va_list args);\n"
30537 #: ../src/guestfs-actions.pod:3370
30538 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
30542 #: ../src/guestfs-actions.pod:3374
30543 msgid "guestfs_inspect_get_icon_argv"
30547 #: ../src/guestfs-actions.pod:3376
30551 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
30552 " const char *root,\n"
30553 " size_t *size_r,\n"
30554 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
30559 #: ../src/guestfs-actions.pod:3382
30560 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
30564 #: ../src/guestfs-actions.pod:3386
30565 msgid "guestfs_inspect_get_major_version"
30569 #: ../src/guestfs-actions.pod:3388
30573 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
30574 " const char *root);\n"
30579 #: ../src/guestfs-actions.pod:3410
30580 msgid "guestfs_inspect_get_minor_version"
30584 #: ../src/guestfs-actions.pod:3412
30588 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
30589 " const char *root);\n"
30594 #: ../src/guestfs-actions.pod:3421
30596 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
30597 "C<guestfs_inspect_get_major_version>."
30601 #: ../src/guestfs-actions.pod:3428
30602 msgid "guestfs_inspect_get_mountpoints"
30606 #: ../src/guestfs-actions.pod:3430
30610 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
30611 " const char *root);\n"
30616 #: ../src/guestfs-actions.pod:3451
30618 "For operating systems like Windows which still use drive letters, this call "
30619 "will only return an entry for the first drive \"mounted on\" C</>. For "
30620 "information about the mapping of drive letters to partitions, see "
30621 "C<guestfs_inspect_get_drive_mappings>."
30625 #: ../src/guestfs-actions.pod:3457
30627 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
30628 "C<guestfs_inspect_get_filesystems>."
30632 #: ../src/guestfs-actions.pod:3468
30633 msgid "guestfs_inspect_get_package_format"
30637 #: ../src/guestfs-actions.pod:3470
30641 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
30642 " const char *root);\n"
30647 #: ../src/guestfs-actions.pod:3474
30649 "This function and C<guestfs_inspect_get_package_management> return the "
30650 "package format and package management tool used by the inspected operating "
30651 "system. For example for Fedora these functions would return C<rpm> (package "
30652 "format) and C<yum> (package management)."
30656 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
30657 msgid "(Added in 1.7.5)"
30658 msgstr "(Додано у 1.7.5)"
30661 #: ../src/guestfs-actions.pod:3495
30662 msgid "guestfs_inspect_get_package_management"
30666 #: ../src/guestfs-actions.pod:3497
30670 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
30671 " const char *root);\n"
30676 #: ../src/guestfs-actions.pod:3501
30678 "C<guestfs_inspect_get_package_format> and this function return the package "
30679 "format and package management tool used by the inspected operating system. "
30680 "For example for Fedora these functions would return C<rpm> (package format) "
30681 "and C<yum> (package management)."
30685 #: ../src/guestfs-actions.pod:3523
30686 msgid "guestfs_inspect_get_product_name"
30690 #: ../src/guestfs-actions.pod:3525
30694 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
30695 " const char *root);\n"
30700 #: ../src/guestfs-actions.pod:3544
30701 msgid "guestfs_inspect_get_product_variant"
30705 #: ../src/guestfs-actions.pod:3546
30709 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
30710 " const char *root);\n"
30715 #: ../src/guestfs-actions.pod:3569
30717 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
30718 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
30722 #: ../src/guestfs-actions.pod:3576
30723 msgid "(Added in 1.9.13)"
30724 msgstr "(Додано у 1.9.13)"
30727 #: ../src/guestfs-actions.pod:3578
30728 msgid "guestfs_inspect_get_roots"
30732 #: ../src/guestfs-actions.pod:3580
30736 " guestfs_inspect_get_roots (guestfs_h *g);\n"
30741 #: ../src/guestfs-actions.pod:3583
30743 "This function is a convenient way to get the list of root devices, as "
30744 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
30745 "the whole inspection process."
30749 #: ../src/guestfs-actions.pod:3587
30751 "This returns an empty list if either no root devices were found or the "
30752 "caller has not called C<guestfs_inspect_os>."
30756 #: ../src/guestfs-actions.pod:3596
30757 msgid "(Added in 1.7.3)"
30758 msgstr "(Додано у 1.7.3)"
30761 #: ../src/guestfs-actions.pod:3598
30762 msgid "guestfs_inspect_get_type"
30766 #: ../src/guestfs-actions.pod:3600
30770 " guestfs_inspect_get_type (guestfs_h *g,\n"
30771 " const char *root);\n"
30776 #: ../src/guestfs-actions.pod:3645
30777 msgid "guestfs_inspect_get_windows_current_control_set"
30781 #: ../src/guestfs-actions.pod:3647
30785 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
30786 " const char *root);\n"
30791 #: ../src/guestfs-actions.pod:3665
30792 msgid "guestfs_inspect_get_windows_systemroot"
30796 #: ../src/guestfs-actions.pod:3667
30800 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
30801 " const char *root);\n"
30806 #: ../src/guestfs-actions.pod:3683
30807 msgid "(Added in 1.5.25)"
30808 msgstr "(Додано у 1.5.25)"
30811 #: ../src/guestfs-actions.pod:3685
30812 msgid "guestfs_inspect_is_live"
30816 #: ../src/guestfs-actions.pod:3687
30820 " guestfs_inspect_is_live (guestfs_h *g,\n"
30821 " const char *root);\n"
30826 #: ../src/guestfs-actions.pod:3691
30828 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30829 "disk), then this returns true if a live image was detected on the disk."
30833 #: ../src/guestfs-actions.pod:3701
30834 msgid "guestfs_inspect_is_multipart"
30838 #: ../src/guestfs-actions.pod:3703
30842 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
30843 " const char *root);\n"
30848 #: ../src/guestfs-actions.pod:3707
30850 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30851 "disk), then this returns true if the disk is part of a set."
30855 #: ../src/guestfs-actions.pod:3717
30856 msgid "guestfs_inspect_is_netinst"
30860 #: ../src/guestfs-actions.pod:3719
30864 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
30865 " const char *root);\n"
30870 #: ../src/guestfs-actions.pod:3723
30872 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30873 "disk), then this returns true if the disk is a network installer, ie. not a "
30874 "self-contained install CD but one which is likely to require network access "
30875 "to complete the install."
30879 #: ../src/guestfs-actions.pod:3735
30880 msgid "guestfs_inspect_list_applications"
30884 #: ../src/guestfs-actions.pod:3737
30887 " struct guestfs_application_list *\n"
30888 " guestfs_inspect_list_applications (guestfs_h *g,\n"
30889 " const char *root);\n"
30894 #: ../src/guestfs-actions.pod:3743
30896 "I<Note:> This call works differently from other parts of the inspection "
30897 "API. You have to call C<guestfs_inspect_os>, then "
30898 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
30899 "this. Listing applications is a significantly more difficult operation "
30900 "which requires access to the full filesystem. Also note that unlike the "
30901 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
30902 "the libguestfs handle, this call actually reads parts of the mounted "
30903 "filesystems during the call."
30907 #: ../src/guestfs-actions.pod:3833
30909 "This function returns a C<struct guestfs_application_list *>, or NULL if "
30910 "there was an error. I<The caller must call C<guestfs_free_application_list> "
30915 #: ../src/guestfs-actions.pod:3837
30916 msgid "(Added in 1.7.8)"
30917 msgstr "(Додано у 1.7.8)"
30920 #: ../src/guestfs-actions.pod:3839
30921 msgid "guestfs_inspect_os"
30925 #: ../src/guestfs-actions.pod:3841
30929 " guestfs_inspect_os (guestfs_h *g);\n"
30934 #: ../src/guestfs-actions.pod:3857
30936 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
30937 "functions in order to query further information about each operating system, "
30938 "such as the name and version."
30942 #: ../src/guestfs-actions.pod:3862
30944 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
30945 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
30946 "the contents. This should be called with no disks currently mounted. The "
30947 "function may also use Augeas, so any existing Augeas handle will be closed."
30951 #: ../src/guestfs-actions.pod:3874 ../src/guestfs-actions.pod:4205
30952 #: ../src/guestfs-actions.pod:4300
30953 msgid "See also C<guestfs_list_filesystems>."
30957 #: ../src/guestfs-actions.pod:3882
30958 msgid "guestfs_is_blockdev"
30962 #: ../src/guestfs-actions.pod:3884
30966 " guestfs_is_blockdev (guestfs_h *g,\n"
30967 " const char *path);\n"
30972 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3920
30973 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3965
30974 #: ../src/guestfs-actions.pod:3981 ../src/guestfs-actions.pod:4037
30975 #: ../src/guestfs-actions.pod:4052
30976 msgid "See also C<guestfs_stat>."
30980 #: ../src/guestfs-actions.pod:3895 ../src/guestfs-actions.pod:3924
30981 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:4041
30982 #: ../src/guestfs-actions.pod:4056
30983 msgid "(Added in 1.5.10)"
30984 msgstr "(Додано у 1.5.10)"
30987 #: ../src/guestfs-actions.pod:3897
30988 msgid "guestfs_is_busy"
30992 #: ../src/guestfs-actions.pod:3899
30996 " guestfs_is_busy (guestfs_h *g);\n"
31001 #: ../src/guestfs-actions.pod:3911
31002 msgid "guestfs_is_chardev"
31006 #: ../src/guestfs-actions.pod:3913
31010 " guestfs_is_chardev (guestfs_h *g,\n"
31011 " const char *path);\n"
31016 #: ../src/guestfs-actions.pod:3926
31017 msgid "guestfs_is_config"
31021 #: ../src/guestfs-actions.pod:3928
31025 " guestfs_is_config (guestfs_h *g);\n"
31030 #: ../src/guestfs-actions.pod:3940
31031 msgid "guestfs_is_dir"
31035 #: ../src/guestfs-actions.pod:3942
31039 " guestfs_is_dir (guestfs_h *g,\n"
31040 " const char *path);\n"
31045 #: ../src/guestfs-actions.pod:3956
31046 msgid "guestfs_is_fifo"
31050 #: ../src/guestfs-actions.pod:3958
31054 " guestfs_is_fifo (guestfs_h *g,\n"
31055 " const char *path);\n"
31060 #: ../src/guestfs-actions.pod:3971
31061 msgid "guestfs_is_file"
31065 #: ../src/guestfs-actions.pod:3973
31069 " guestfs_is_file (guestfs_h *g,\n"
31070 " const char *path);\n"
31075 #: ../src/guestfs-actions.pod:3987
31076 msgid "guestfs_is_launching"
31080 #: ../src/guestfs-actions.pod:3989
31084 " guestfs_is_launching (guestfs_h *g);\n"
31089 #: ../src/guestfs-actions.pod:4001
31090 msgid "guestfs_is_lv"
31094 #: ../src/guestfs-actions.pod:4003
31098 " guestfs_is_lv (guestfs_h *g,\n"
31099 " const char *device);\n"
31104 #: ../src/guestfs-actions.pod:4014
31105 msgid "guestfs_is_ready"
31109 #: ../src/guestfs-actions.pod:4016
31113 " guestfs_is_ready (guestfs_h *g);\n"
31118 #: ../src/guestfs-actions.pod:4028
31119 msgid "guestfs_is_socket"
31123 #: ../src/guestfs-actions.pod:4030
31127 " guestfs_is_socket (guestfs_h *g,\n"
31128 " const char *path);\n"
31133 #: ../src/guestfs-actions.pod:4043
31134 msgid "guestfs_is_symlink"
31138 #: ../src/guestfs-actions.pod:4045
31142 " guestfs_is_symlink (guestfs_h *g,\n"
31143 " const char *path);\n"
31148 #: ../src/guestfs-actions.pod:4058
31149 msgid "guestfs_is_zero"
31153 #: ../src/guestfs-actions.pod:4060
31157 " guestfs_is_zero (guestfs_h *g,\n"
31158 " const char *path);\n"
31163 #: ../src/guestfs-actions.pod:4069 ../src/guestfs-actions.pod:4083
31164 msgid "(Added in 1.11.8)"
31165 msgstr "(Додано у 1.11.8)"
31168 #: ../src/guestfs-actions.pod:4071
31169 msgid "guestfs_is_zero_device"
31173 #: ../src/guestfs-actions.pod:4073
31177 " guestfs_is_zero_device (guestfs_h *g,\n"
31178 " const char *device);\n"
31183 #: ../src/guestfs-actions.pod:4085
31184 msgid "guestfs_kill_subprocess"
31188 #: ../src/guestfs-actions.pod:4087
31192 " guestfs_kill_subprocess (guestfs_h *g);\n"
31197 #: ../src/guestfs-actions.pod:4096
31198 msgid "guestfs_launch"
31202 #: ../src/guestfs-actions.pod:4098
31206 " guestfs_launch (guestfs_h *g);\n"
31211 #: ../src/guestfs-actions.pod:4116
31212 msgid "guestfs_lchown"
31216 #: ../src/guestfs-actions.pod:4118
31220 " guestfs_lchown (guestfs_h *g,\n"
31223 " const char *path);\n"
31228 #: ../src/guestfs-actions.pod:4124
31230 "Change the file owner to C<owner> and group to C<group>. This is like "
31231 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
31232 "changed, not the target."
31236 #: ../src/guestfs-actions.pod:4136
31237 msgid "guestfs_lgetxattr"
31241 #: ../src/guestfs-actions.pod:4138
31245 " guestfs_lgetxattr (guestfs_h *g,\n"
31246 " const char *path,\n"
31247 " const char *name,\n"
31248 " size_t *size_r);\n"
31253 #: ../src/guestfs-actions.pod:4158
31254 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
31258 #: ../src/guestfs-actions.pod:4166
31259 msgid "guestfs_lgetxattrs"
31263 #: ../src/guestfs-actions.pod:4168
31266 " struct guestfs_xattr_list *\n"
31267 " guestfs_lgetxattrs (guestfs_h *g,\n"
31268 " const char *path);\n"
31273 #: ../src/guestfs-actions.pod:4172
31275 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
31276 "then it returns the extended attributes of the link itself."
31280 #: ../src/guestfs-actions.pod:4182
31281 msgid "guestfs_list_9p"
31285 #: ../src/guestfs-actions.pod:4184
31289 " guestfs_list_9p (guestfs_h *g);\n"
31294 #: ../src/guestfs-actions.pod:4196
31295 msgid "guestfs_list_devices"
31299 #: ../src/guestfs-actions.pod:4198
31303 " guestfs_list_devices (guestfs_h *g);\n"
31308 #: ../src/guestfs-actions.pod:4213
31309 msgid "guestfs_list_dm_devices"
31313 #: ../src/guestfs-actions.pod:4215
31317 " guestfs_list_dm_devices (guestfs_h *g);\n"
31322 #: ../src/guestfs-actions.pod:4220
31324 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
31325 "previous call to C<guestfs_luks_open>."
31329 #: ../src/guestfs-actions.pod:4223
31331 "Device mapper devices which correspond to logical volumes are I<not> "
31332 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
31337 #: ../src/guestfs-actions.pod:4231 ../src/guestfs-actions.pod:5830
31338 msgid "(Added in 1.11.15)"
31339 msgstr "(Додано у 1.11.15)"
31342 #: ../src/guestfs-actions.pod:4233
31343 msgid "guestfs_list_filesystems"
31347 #: ../src/guestfs-actions.pod:4235
31351 " guestfs_list_filesystems (guestfs_h *g);\n"
31356 #: ../src/guestfs-actions.pod:4255
31358 "This command runs other libguestfs commands, which might include "
31359 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
31360 "soon after launch and only when nothing is mounted."
31364 #: ../src/guestfs-actions.pod:4259
31366 "Not all of the filesystems returned will be mountable. In particular, swap "
31367 "partitions are returned in the list. Also this command does not check that "
31368 "each filesystem found is valid and mountable, and some filesystems might be "
31369 "mountable but require special options. Filesystems may not all belong to a "
31370 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
31374 #: ../src/guestfs-actions.pod:4273 ../src/guestfs-actions.pod:6190
31375 msgid "(Added in 1.5.15)"
31376 msgstr "(Додано у 1.5.15)"
31379 #: ../src/guestfs-actions.pod:4275
31381 #| msgid "guestfs_zero_device"
31382 msgid "guestfs_list_md_devices"
31383 msgstr "guestfs_zero_device"
31386 #: ../src/guestfs-actions.pod:4277
31390 #| " guestfs_lvs (guestfs_h *g);\n"
31394 " guestfs_list_md_devices (guestfs_h *g);\n"
31398 " guestfs_lvs (guestfs_h *g);\n"
31402 #: ../src/guestfs-actions.pod:4286 ../src/guestfs-actions.pod:7851
31404 #| msgid "(Added in 1.5.4)"
31405 msgid "(Added in 1.15.4)"
31406 msgstr "(Додано у 1.5.4)"
31409 #: ../src/guestfs-actions.pod:4288
31410 msgid "guestfs_list_partitions"
31411 msgstr "guestfs_list_partitions"
31414 #: ../src/guestfs-actions.pod:4290
31418 " guestfs_list_partitions (guestfs_h *g);\n"
31422 " guestfs_list_partitions (guestfs_h *g);\n"
31426 #: ../src/guestfs-actions.pod:4297
31428 "This does not return logical volumes. For that you will need to call "
31433 #: ../src/guestfs-actions.pod:4308
31435 msgstr "guestfs_ll"
31438 #: ../src/guestfs-actions.pod:4310
31442 " guestfs_ll (guestfs_h *g,\n"
31443 " const char *directory);\n"
31447 " guestfs_ll (guestfs_h *g,\n"
31448 " const char *directory);\n"
31452 #: ../src/guestfs-actions.pod:4325
31454 msgstr "guestfs_ln"
31457 #: ../src/guestfs-actions.pod:4327
31461 " guestfs_ln (guestfs_h *g,\n"
31462 " const char *target,\n"
31463 " const char *linkname);\n"
31467 " guestfs_ln (guestfs_h *g,\n"
31468 " const char *target,\n"
31469 " const char *linkname);\n"
31473 #: ../src/guestfs-actions.pod:4338
31474 msgid "guestfs_ln_f"
31475 msgstr "guestfs_ln_f"
31478 #: ../src/guestfs-actions.pod:4340
31482 " guestfs_ln_f (guestfs_h *g,\n"
31483 " const char *target,\n"
31484 " const char *linkname);\n"
31488 " guestfs_ln_f (guestfs_h *g,\n"
31489 " const char *target,\n"
31490 " const char *linkname);\n"
31494 #: ../src/guestfs-actions.pod:4352
31495 msgid "guestfs_ln_s"
31496 msgstr "guestfs_ln_s"
31499 #: ../src/guestfs-actions.pod:4354
31503 " guestfs_ln_s (guestfs_h *g,\n"
31504 " const char *target,\n"
31505 " const char *linkname);\n"
31509 " guestfs_ln_s (guestfs_h *g,\n"
31510 " const char *target,\n"
31511 " const char *linkname);\n"
31515 #: ../src/guestfs-actions.pod:4365
31516 msgid "guestfs_ln_sf"
31517 msgstr "guestfs_ln_sf"
31520 #: ../src/guestfs-actions.pod:4367
31524 " guestfs_ln_sf (guestfs_h *g,\n"
31525 " const char *target,\n"
31526 " const char *linkname);\n"
31530 " guestfs_ln_sf (guestfs_h *g,\n"
31531 " const char *target,\n"
31532 " const char *linkname);\n"
31536 #: ../src/guestfs-actions.pod:4379
31537 msgid "guestfs_lremovexattr"
31538 msgstr "guestfs_lremovexattr"
31541 #: ../src/guestfs-actions.pod:4381
31545 " guestfs_lremovexattr (guestfs_h *g,\n"
31546 " const char *xattr,\n"
31547 " const char *path);\n"
31551 " guestfs_lremovexattr (guestfs_h *g,\n"
31552 " const char *xattr,\n"
31553 " const char *path);\n"
31557 #: ../src/guestfs-actions.pod:4386
31559 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
31560 "link, then it removes an extended attribute of the link itself."
31564 #: ../src/guestfs-actions.pod:4394
31566 msgstr "guestfs_ls"
31569 #: ../src/guestfs-actions.pod:4396
31573 " guestfs_ls (guestfs_h *g,\n"
31574 " const char *directory);\n"
31578 " guestfs_ls (guestfs_h *g,\n"
31579 " const char *directory);\n"
31583 #: ../src/guestfs-actions.pod:4404
31585 "This command is mostly useful for interactive sessions. Programs should "
31586 "probably use C<guestfs_readdir> instead."
31590 #: ../src/guestfs-actions.pod:4413
31591 msgid "guestfs_lsetxattr"
31592 msgstr "guestfs_lsetxattr"
31595 #: ../src/guestfs-actions.pod:4415
31599 " guestfs_lsetxattr (guestfs_h *g,\n"
31600 " const char *xattr,\n"
31601 " const char *val,\n"
31603 " const char *path);\n"
31607 " guestfs_lsetxattr (guestfs_h *g,\n"
31608 " const char *xattr,\n"
31609 " const char *val,\n"
31611 " const char *path);\n"
31615 #: ../src/guestfs-actions.pod:4422
31617 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
31618 "then it sets an extended attribute of the link itself."
31622 #: ../src/guestfs-actions.pod:4430
31623 msgid "guestfs_lstat"
31624 msgstr "guestfs_lstat"
31627 #: ../src/guestfs-actions.pod:4432
31630 " struct guestfs_stat *\n"
31631 " guestfs_lstat (guestfs_h *g,\n"
31632 " const char *path);\n"
31635 " struct guestfs_stat *\n"
31636 " guestfs_lstat (guestfs_h *g,\n"
31637 " const char *path);\n"
31641 #: ../src/guestfs-actions.pod:4438
31643 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
31644 "link, then the link is stat-ed, not the file it refers to."
31648 #: ../src/guestfs-actions.pod:4444 ../src/guestfs-actions.pod:7370
31650 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
31651 "error. I<The caller must call C<guestfs_free_stat> after use>."
31655 #: ../src/guestfs-actions.pod:4448 ../src/guestfs-actions.pod:7374
31656 #: ../src/guestfs-actions.pod:7392 ../src/guestfs-actions.pod:7895
31657 msgid "(Added in 0.9.2)"
31658 msgstr "(Додано у 0.9.2)"
31661 #: ../src/guestfs-actions.pod:4450
31662 msgid "guestfs_lstatlist"
31663 msgstr "guestfs_lstatlist"
31666 #: ../src/guestfs-actions.pod:4452
31669 " struct guestfs_stat_list *\n"
31670 " guestfs_lstatlist (guestfs_h *g,\n"
31671 " const char *path,\n"
31672 " char *const *names);\n"
31675 " struct guestfs_stat_list *\n"
31676 " guestfs_lstatlist (guestfs_h *g,\n"
31677 " const char *path,\n"
31678 " char *const *names);\n"
31682 #: ../src/guestfs-actions.pod:4457
31684 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
31685 "files, where all files are in the directory C<path>. C<names> is the list "
31686 "of files from this directory."
31690 #: ../src/guestfs-actions.pod:4466
31692 "This call is intended for programs that want to efficiently list a directory "
31693 "contents without making many round-trips. See also C<guestfs_lxattrlist> "
31694 "for a similarly efficient call for getting extended attributes. Very long "
31695 "directory listings might cause the protocol message size to be exceeded, "
31696 "causing this call to fail. The caller must split up such requests into "
31697 "smaller groups of names."
31701 #: ../src/guestfs-actions.pod:4474
31703 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
31704 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
31708 #: ../src/guestfs-actions.pod:4480
31709 msgid "guestfs_luks_add_key"
31710 msgstr "guestfs_luks_add_key"
31713 #: ../src/guestfs-actions.pod:4482
31717 " guestfs_luks_add_key (guestfs_h *g,\n"
31718 " const char *device,\n"
31719 " const char *key,\n"
31720 " const char *newkey,\n"
31725 " guestfs_luks_add_key (guestfs_h *g,\n"
31726 " const char *device,\n"
31727 " const char *key,\n"
31728 " const char *newkey,\n"
31733 #: ../src/guestfs-actions.pod:4494
31735 "Note that if C<keyslot> already contains a key, then this command will "
31736 "fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
31740 #: ../src/guestfs-actions.pod:4500 ../src/guestfs-actions.pod:4537
31741 #: ../src/guestfs-actions.pod:4557 ../src/guestfs-actions.pod:4577
31742 #: ../src/guestfs-actions.pod:4612 ../src/guestfs-actions.pod:4631
31744 "This function takes a key or passphrase parameter which could contain "
31745 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
31750 #: ../src/guestfs-actions.pod:4504 ../src/guestfs-actions.pod:4541
31751 #: ../src/guestfs-actions.pod:4561 ../src/guestfs-actions.pod:4581
31752 msgid "(Added in 1.5.2)"
31753 msgstr "(Додано у 1.5.2)"
31756 #: ../src/guestfs-actions.pod:4506
31757 msgid "guestfs_luks_close"
31758 msgstr "guestfs_luks_close"
31761 #: ../src/guestfs-actions.pod:4508
31765 " guestfs_luks_close (guestfs_h *g,\n"
31766 " const char *device);\n"
31770 " guestfs_luks_close (guestfs_h *g,\n"
31771 " const char *device);\n"
31775 #: ../src/guestfs-actions.pod:4512
31777 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
31778 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
31779 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
31780 "underlying block device."
31784 #: ../src/guestfs-actions.pod:4520 ../src/guestfs-actions.pod:4616
31785 #: ../src/guestfs-actions.pod:4635 ../src/guestfs-actions.pod:4685
31786 #: ../src/guestfs-actions.pod:4730
31787 msgid "(Added in 1.5.1)"
31788 msgstr "(Додано у 1.5.1)"
31791 #: ../src/guestfs-actions.pod:4522
31792 msgid "guestfs_luks_format"
31793 msgstr "guestfs_luks_format"
31796 #: ../src/guestfs-actions.pod:4524
31800 " guestfs_luks_format (guestfs_h *g,\n"
31801 " const char *device,\n"
31802 " const char *key,\n"
31807 " guestfs_luks_format (guestfs_h *g,\n"
31808 " const char *device,\n"
31809 " const char *key,\n"
31814 #: ../src/guestfs-actions.pod:4543
31815 msgid "guestfs_luks_format_cipher"
31816 msgstr "guestfs_luks_format_cipher"
31819 #: ../src/guestfs-actions.pod:4545
31823 " guestfs_luks_format_cipher (guestfs_h *g,\n"
31824 " const char *device,\n"
31825 " const char *key,\n"
31827 " const char *cipher);\n"
31831 " guestfs_luks_format_cipher (guestfs_h *g,\n"
31832 " const char *device,\n"
31833 " const char *key,\n"
31835 " const char *cipher);\n"
31839 #: ../src/guestfs-actions.pod:4552
31841 "This command is the same as C<guestfs_luks_format> but it also allows you to "
31842 "set the C<cipher> used."
31846 #: ../src/guestfs-actions.pod:4563
31847 msgid "guestfs_luks_kill_slot"
31848 msgstr "guestfs_luks_kill_slot"
31851 #: ../src/guestfs-actions.pod:4565
31855 " guestfs_luks_kill_slot (guestfs_h *g,\n"
31856 " const char *device,\n"
31857 " const char *key,\n"
31862 " guestfs_luks_kill_slot (guestfs_h *g,\n"
31863 " const char *device,\n"
31864 " const char *key,\n"
31869 #: ../src/guestfs-actions.pod:4583
31870 msgid "guestfs_luks_open"
31871 msgstr "guestfs_luks_open"
31874 #: ../src/guestfs-actions.pod:4585
31878 " guestfs_luks_open (guestfs_h *g,\n"
31879 " const char *device,\n"
31880 " const char *key,\n"
31881 " const char *mapname);\n"
31885 " guestfs_luks_open (guestfs_h *g,\n"
31886 " const char *device,\n"
31887 " const char *key,\n"
31888 " const char *mapname);\n"
31892 #: ../src/guestfs-actions.pod:4603
31894 "If this block device contains LVM volume groups, then calling "
31895 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
31900 #: ../src/guestfs-actions.pod:4607
31901 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
31905 #: ../src/guestfs-actions.pod:4618
31906 msgid "guestfs_luks_open_ro"
31907 msgstr "guestfs_luks_open_ro"
31910 #: ../src/guestfs-actions.pod:4620
31914 " guestfs_luks_open_ro (guestfs_h *g,\n"
31915 " const char *device,\n"
31916 " const char *key,\n"
31917 " const char *mapname);\n"
31921 " guestfs_luks_open_ro (guestfs_h *g,\n"
31922 " const char *device,\n"
31923 " const char *key,\n"
31924 " const char *mapname);\n"
31928 #: ../src/guestfs-actions.pod:4626
31930 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
31935 #: ../src/guestfs-actions.pod:4637
31936 msgid "guestfs_lvcreate"
31937 msgstr "guestfs_lvcreate"
31940 #: ../src/guestfs-actions.pod:4639
31944 " guestfs_lvcreate (guestfs_h *g,\n"
31945 " const char *logvol,\n"
31946 " const char *volgroup,\n"
31951 " guestfs_lvcreate (guestfs_h *g,\n"
31952 " const char *logvol,\n"
31953 " const char *volgroup,\n"
31958 #: ../src/guestfs-actions.pod:4652
31959 msgid "guestfs_lvm_canonical_lv_name"
31960 msgstr "guestfs_lvm_canonical_lv_name"
31963 #: ../src/guestfs-actions.pod:4654
31967 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
31968 " const char *lvname);\n"
31972 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
31973 " const char *lvname);\n"
31977 #: ../src/guestfs-actions.pod:4665
31978 msgid "See also C<guestfs_is_lv>."
31982 #: ../src/guestfs-actions.pod:4670
31983 msgid "(Added in 1.5.24)"
31984 msgstr "(Додано у 1.5.24)"
31987 #: ../src/guestfs-actions.pod:4672
31988 msgid "guestfs_lvm_clear_filter"
31989 msgstr "guestfs_lvm_clear_filter"
31992 #: ../src/guestfs-actions.pod:4674
31996 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
32000 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
32004 #: ../src/guestfs-actions.pod:4677
32006 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
32007 "see every block device."
32011 #: ../src/guestfs-actions.pod:4687
32012 msgid "guestfs_lvm_remove_all"
32013 msgstr "guestfs_lvm_remove_all"
32016 #: ../src/guestfs-actions.pod:4689
32020 " guestfs_lvm_remove_all (guestfs_h *g);\n"
32024 " guestfs_lvm_remove_all (guestfs_h *g);\n"
32028 #: ../src/guestfs-actions.pod:4699
32029 msgid "guestfs_lvm_set_filter"
32030 msgstr "guestfs_lvm_set_filter"
32033 #: ../src/guestfs-actions.pod:4701
32037 " guestfs_lvm_set_filter (guestfs_h *g,\n"
32038 " char *const *devices);\n"
32042 " guestfs_lvm_set_filter (guestfs_h *g,\n"
32043 " char *const *devices);\n"
32047 #: ../src/guestfs-actions.pod:4732
32048 msgid "guestfs_lvremove"
32049 msgstr "guestfs_lvremove"
32052 #: ../src/guestfs-actions.pod:4734
32056 " guestfs_lvremove (guestfs_h *g,\n"
32057 " const char *device);\n"
32061 " guestfs_lvremove (guestfs_h *g,\n"
32062 " const char *device);\n"
32066 #: ../src/guestfs-actions.pod:4746 ../src/guestfs-actions.pod:6305
32067 #: ../src/guestfs-actions.pod:8265
32068 msgid "(Added in 1.0.13)"
32069 msgstr "(Додано у 1.0.13)"
32072 #: ../src/guestfs-actions.pod:4748
32073 msgid "guestfs_lvrename"
32074 msgstr "guestfs_lvrename"
32077 #: ../src/guestfs-actions.pod:4750
32081 " guestfs_lvrename (guestfs_h *g,\n"
32082 " const char *logvol,\n"
32083 " const char *newlogvol);\n"
32087 " guestfs_lvrename (guestfs_h *g,\n"
32088 " const char *logvol,\n"
32089 " const char *newlogvol);\n"
32093 #: ../src/guestfs-actions.pod:4759 ../src/guestfs-actions.pod:8278
32094 msgid "(Added in 1.0.83)"
32095 msgstr "(Додано у 1.0.83)"
32098 #: ../src/guestfs-actions.pod:4761
32099 msgid "guestfs_lvresize"
32100 msgstr "guestfs_lvresize"
32103 #: ../src/guestfs-actions.pod:4763
32107 " guestfs_lvresize (guestfs_h *g,\n"
32108 " const char *device,\n"
32113 " guestfs_lvresize (guestfs_h *g,\n"
32114 " const char *device,\n"
32119 #: ../src/guestfs-actions.pod:4776
32120 msgid "guestfs_lvresize_free"
32121 msgstr "guestfs_lvresize_free"
32124 #: ../src/guestfs-actions.pod:4778
32128 " guestfs_lvresize_free (guestfs_h *g,\n"
32129 " const char *lv,\n"
32134 " guestfs_lvresize_free (guestfs_h *g,\n"
32135 " const char *lv,\n"
32140 #: ../src/guestfs-actions.pod:4791
32141 msgid "(Added in 1.3.3)"
32142 msgstr "(Додано у 1.3.3)"
32145 #: ../src/guestfs-actions.pod:4793
32146 msgid "guestfs_lvs"
32147 msgstr "guestfs_lvs"
32150 #: ../src/guestfs-actions.pod:4795
32154 " guestfs_lvs (guestfs_h *g);\n"
32158 " guestfs_lvs (guestfs_h *g);\n"
32162 #: ../src/guestfs-actions.pod:4804
32163 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
32167 #: ../src/guestfs-actions.pod:4812
32168 msgid "guestfs_lvs_full"
32169 msgstr "guestfs_lvs_full"
32172 #: ../src/guestfs-actions.pod:4814
32175 " struct guestfs_lvm_lv_list *\n"
32176 " guestfs_lvs_full (guestfs_h *g);\n"
32179 " struct guestfs_lvm_lv_list *\n"
32180 " guestfs_lvs_full (guestfs_h *g);\n"
32184 #: ../src/guestfs-actions.pod:4820
32186 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
32187 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
32191 #: ../src/guestfs-actions.pod:4826
32192 msgid "guestfs_lvuuid"
32193 msgstr "guestfs_lvuuid"
32196 #: ../src/guestfs-actions.pod:4828
32200 " guestfs_lvuuid (guestfs_h *g,\n"
32201 " const char *device);\n"
32205 " guestfs_lvuuid (guestfs_h *g,\n"
32206 " const char *device);\n"
32210 #: ../src/guestfs-actions.pod:4839
32211 msgid "guestfs_lxattrlist"
32212 msgstr "guestfs_lxattrlist"
32215 #: ../src/guestfs-actions.pod:4841
32218 " struct guestfs_xattr_list *\n"
32219 " guestfs_lxattrlist (guestfs_h *g,\n"
32220 " const char *path,\n"
32221 " char *const *names);\n"
32224 " struct guestfs_xattr_list *\n"
32225 " guestfs_lxattrlist (guestfs_h *g,\n"
32226 " const char *path,\n"
32227 " char *const *names);\n"
32231 #: ../src/guestfs-actions.pod:4860
32233 "This call is intended for programs that want to efficiently list a directory "
32234 "contents without making many round-trips. See also C<guestfs_lstatlist> for "
32235 "a similarly efficient call for getting standard stats. Very long directory "
32236 "listings might cause the protocol message size to be exceeded, causing this "
32237 "call to fail. The caller must split up such requests into smaller groups of "
32242 #: ../src/guestfs-actions.pod:4874
32244 #| msgid "guestfs_create"
32245 msgid "guestfs_md_create"
32246 msgstr "guestfs_create"
32249 #: ../src/guestfs-actions.pod:4876
32253 #| " guestfs_mkfs_opts (guestfs_h *g,\n"
32254 #| " const char *fstype,\n"
32255 #| " const char *device,\n"
32260 " guestfs_md_create (guestfs_h *g,\n"
32261 " const char *name,\n"
32262 " char *const *devices,\n"
32267 " guestfs_mkfs_opts (guestfs_h *g,\n"
32268 " const char *fstype,\n"
32269 " const char *device,\n"
32274 #: ../src/guestfs-actions.pod:4887
32277 " GUESTFS_MD_CREATE_MISSINGBITMAP, int64_t missingbitmap,\n"
32278 " GUESTFS_MD_CREATE_NRDEVICES, int nrdevices,\n"
32279 " GUESTFS_MD_CREATE_SPARE, int spare,\n"
32280 " GUESTFS_MD_CREATE_CHUNK, int64_t chunk,\n"
32281 " GUESTFS_MD_CREATE_LEVEL, const char *level,\n"
32286 #: ../src/guestfs-actions.pod:4949
32288 #| msgid "guestfs_create"
32289 msgid "guestfs_md_create_va"
32290 msgstr "guestfs_create"
32293 #: ../src/guestfs-actions.pod:4951
32297 #| " guestfs_mkfs_opts_va (guestfs_h *g,\n"
32298 #| " const char *fstype,\n"
32299 #| " const char *device,\n"
32300 #| " va_list args);\n"
32304 " guestfs_md_create_va (guestfs_h *g,\n"
32305 " const char *name,\n"
32306 " char *const *devices,\n"
32307 " va_list args);\n"
32311 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
32312 " const char *fstype,\n"
32313 " const char *device,\n"
32314 " va_list args);\n"
32318 #: ../src/guestfs-actions.pod:4957
32319 msgid "This is the \"va_list variant\" of L</guestfs_md_create>."
32323 #: ../src/guestfs-actions.pod:4961
32325 #| msgid "guestfs_create"
32326 msgid "guestfs_md_create_argv"
32327 msgstr "guestfs_create"
32330 #: ../src/guestfs-actions.pod:4963
32334 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32335 #| " const char *fstype,\n"
32336 #| " const char *device,\n"
32337 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
32341 " guestfs_md_create_argv (guestfs_h *g,\n"
32342 " const char *name,\n"
32343 " char *const *devices,\n"
32344 " const struct guestfs_md_create_argv *optargs);\n"
32348 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32349 " const char *fstype,\n"
32350 " const char *device,\n"
32351 " const struct guestfs_mkfs_opts_argv *optargs);\n"
32355 #: ../src/guestfs-actions.pod:4969
32356 msgid "This is the \"argv variant\" of L</guestfs_md_create>."
32360 #: ../src/guestfs-actions.pod:4973
32362 #| msgid "guestfs_aug_get"
32363 msgid "guestfs_md_detail"
32364 msgstr "guestfs_aug_get"
32367 #: ../src/guestfs-actions.pod:4975
32371 #| " guestfs_aug_get (guestfs_h *g,\n"
32372 #| " const char *augpath);\n"
32376 " guestfs_md_detail (guestfs_h *g,\n"
32377 " const char *md);\n"
32381 " guestfs_aug_get (guestfs_h *g,\n"
32382 " const char *augpath);\n"
32386 #: ../src/guestfs-actions.pod:5012
32388 #| msgid "guestfs_mkdir_p"
32389 msgid "guestfs_md_stop"
32390 msgstr "guestfs_mkdir_p"
32393 #: ../src/guestfs-actions.pod:5014
32397 #| " guestfs_mkdir_p (guestfs_h *g,\n"
32398 #| " const char *path);\n"
32402 " guestfs_md_stop (guestfs_h *g,\n"
32403 " const char *md);\n"
32407 " guestfs_mkdir_p (guestfs_h *g,\n"
32408 " const char *path);\n"
32412 #: ../src/guestfs-actions.pod:5023
32413 msgid "guestfs_mkdir"
32414 msgstr "guestfs_mkdir"
32417 #: ../src/guestfs-actions.pod:5025
32421 " guestfs_mkdir (guestfs_h *g,\n"
32422 " const char *path);\n"
32426 " guestfs_mkdir (guestfs_h *g,\n"
32427 " const char *path);\n"
32431 #: ../src/guestfs-actions.pod:5035
32432 msgid "guestfs_mkdir_mode"
32433 msgstr "guestfs_mkdir_mode"
32436 #: ../src/guestfs-actions.pod:5037
32440 " guestfs_mkdir_mode (guestfs_h *g,\n"
32441 " const char *path,\n"
32446 " guestfs_mkdir_mode (guestfs_h *g,\n"
32447 " const char *path,\n"
32452 #: ../src/guestfs-actions.pod:5049
32453 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
32457 #: ../src/guestfs-actions.pod:5055
32458 msgid "guestfs_mkdir_p"
32459 msgstr "guestfs_mkdir_p"
32462 #: ../src/guestfs-actions.pod:5057
32466 " guestfs_mkdir_p (guestfs_h *g,\n"
32467 " const char *path);\n"
32471 " guestfs_mkdir_p (guestfs_h *g,\n"
32472 " const char *path);\n"
32476 #: ../src/guestfs-actions.pod:5068
32477 msgid "guestfs_mkdtemp"
32478 msgstr "guestfs_mkdtemp"
32481 #: ../src/guestfs-actions.pod:5070
32485 " guestfs_mkdtemp (guestfs_h *g,\n"
32486 " const char *template);\n"
32490 " guestfs_mkdtemp (guestfs_h *g,\n"
32491 " const char *template);\n"
32495 #: ../src/guestfs-actions.pod:5098
32496 msgid "guestfs_mke2fs_J"
32497 msgstr "guestfs_mke2fs_J"
32500 #: ../src/guestfs-actions.pod:5100
32504 " guestfs_mke2fs_J (guestfs_h *g,\n"
32505 " const char *fstype,\n"
32506 " int blocksize,\n"
32507 " const char *device,\n"
32508 " const char *journal);\n"
32512 " guestfs_mke2fs_J (guestfs_h *g,\n"
32513 " const char *fstype,\n"
32514 " int blocksize,\n"
32515 " const char *device,\n"
32516 " const char *journal);\n"
32520 #: ../src/guestfs-actions.pod:5113
32521 msgid "See also C<guestfs_mke2journal>."
32525 #: ../src/guestfs-actions.pod:5117 ../src/guestfs-actions.pod:5135
32526 #: ../src/guestfs-actions.pod:5153 ../src/guestfs-actions.pod:5169
32527 #: ../src/guestfs-actions.pod:5183 ../src/guestfs-actions.pod:5197
32528 #: ../src/guestfs-actions.pod:5256 ../src/guestfs-actions.pod:5533
32529 msgid "(Added in 1.0.68)"
32530 msgstr "(Додано у 1.0.68)"
32533 #: ../src/guestfs-actions.pod:5119
32534 msgid "guestfs_mke2fs_JL"
32535 msgstr "guestfs_mke2fs_JL"
32538 #: ../src/guestfs-actions.pod:5121
32542 " guestfs_mke2fs_JL (guestfs_h *g,\n"
32543 " const char *fstype,\n"
32544 " int blocksize,\n"
32545 " const char *device,\n"
32546 " const char *label);\n"
32550 " guestfs_mke2fs_JL (guestfs_h *g,\n"
32551 " const char *fstype,\n"
32552 " int blocksize,\n"
32553 " const char *device,\n"
32554 " const char *label);\n"
32558 #: ../src/guestfs-actions.pod:5131
32559 msgid "See also C<guestfs_mke2journal_L>."
32563 #: ../src/guestfs-actions.pod:5137
32564 msgid "guestfs_mke2fs_JU"
32565 msgstr "guestfs_mke2fs_JU"
32568 #: ../src/guestfs-actions.pod:5139
32572 " guestfs_mke2fs_JU (guestfs_h *g,\n"
32573 " const char *fstype,\n"
32574 " int blocksize,\n"
32575 " const char *device,\n"
32576 " const char *uuid);\n"
32580 " guestfs_mke2fs_JU (guestfs_h *g,\n"
32581 " const char *fstype,\n"
32582 " int blocksize,\n"
32583 " const char *device,\n"
32584 " const char *uuid);\n"
32588 #: ../src/guestfs-actions.pod:5149
32589 msgid "See also C<guestfs_mke2journal_U>."
32593 #: ../src/guestfs-actions.pod:5155
32594 msgid "guestfs_mke2journal"
32595 msgstr "guestfs_mke2journal"
32598 #: ../src/guestfs-actions.pod:5157
32602 " guestfs_mke2journal (guestfs_h *g,\n"
32603 " int blocksize,\n"
32604 " const char *device);\n"
32608 " guestfs_mke2journal (guestfs_h *g,\n"
32609 " int blocksize,\n"
32610 " const char *device);\n"
32614 #: ../src/guestfs-actions.pod:5171
32615 msgid "guestfs_mke2journal_L"
32616 msgstr "guestfs_mke2journal_L"
32619 #: ../src/guestfs-actions.pod:5173
32623 " guestfs_mke2journal_L (guestfs_h *g,\n"
32624 " int blocksize,\n"
32625 " const char *label,\n"
32626 " const char *device);\n"
32630 " guestfs_mke2journal_L (guestfs_h *g,\n"
32631 " int blocksize,\n"
32632 " const char *label,\n"
32633 " const char *device);\n"
32637 #: ../src/guestfs-actions.pod:5185
32638 msgid "guestfs_mke2journal_U"
32639 msgstr "guestfs_mke2journal_U"
32642 #: ../src/guestfs-actions.pod:5187
32646 " guestfs_mke2journal_U (guestfs_h *g,\n"
32647 " int blocksize,\n"
32648 " const char *uuid,\n"
32649 " const char *device);\n"
32653 " guestfs_mke2journal_U (guestfs_h *g,\n"
32654 " int blocksize,\n"
32655 " const char *uuid,\n"
32656 " const char *device);\n"
32660 #: ../src/guestfs-actions.pod:5199
32661 msgid "guestfs_mkfifo"
32662 msgstr "guestfs_mkfifo"
32665 #: ../src/guestfs-actions.pod:5201
32669 " guestfs_mkfifo (guestfs_h *g,\n"
32671 " const char *path);\n"
32675 " guestfs_mkfifo (guestfs_h *g,\n"
32677 " const char *path);\n"
32681 #: ../src/guestfs-actions.pod:5206
32683 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
32684 "is just a convenient wrapper around C<guestfs_mknod>."
32688 #: ../src/guestfs-actions.pod:5216
32689 msgid "guestfs_mkfs"
32690 msgstr "guestfs_mkfs"
32693 #: ../src/guestfs-actions.pod:5218
32697 " guestfs_mkfs (guestfs_h *g,\n"
32698 " const char *fstype,\n"
32699 " const char *device);\n"
32703 " guestfs_mkfs (guestfs_h *g,\n"
32704 " const char *fstype,\n"
32705 " const char *device);\n"
32709 #: ../src/guestfs-actions.pod:5231
32710 msgid "guestfs_mkfs_b"
32711 msgstr "guestfs_mkfs_b"
32714 #: ../src/guestfs-actions.pod:5233
32718 " guestfs_mkfs_b (guestfs_h *g,\n"
32719 " const char *fstype,\n"
32720 " int blocksize,\n"
32721 " const char *device);\n"
32725 " guestfs_mkfs_b (guestfs_h *g,\n"
32726 " const char *fstype,\n"
32727 " int blocksize,\n"
32728 " const char *device);\n"
32732 #: ../src/guestfs-actions.pod:5239
32734 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
32739 #: ../src/guestfs-actions.pod:5246
32741 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
32742 "block size of the resulting filesystem. Supported block sizes depend on the "
32743 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
32747 #: ../src/guestfs-actions.pod:5258
32748 msgid "guestfs_mkfs_opts"
32749 msgstr "guestfs_mkfs_opts"
32752 #: ../src/guestfs-actions.pod:5260
32756 " guestfs_mkfs_opts (guestfs_h *g,\n"
32757 " const char *fstype,\n"
32758 " const char *device,\n"
32763 " guestfs_mkfs_opts (guestfs_h *g,\n"
32764 " const char *fstype,\n"
32765 " const char *device,\n"
32770 #: ../src/guestfs-actions.pod:5271
32773 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
32774 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
32775 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
32776 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
32781 #: ../src/guestfs-actions.pod:5319
32782 msgid "(Added in 1.7.19)"
32783 msgstr "(Додано у 1.7.19)"
32786 #: ../src/guestfs-actions.pod:5321
32787 msgid "guestfs_mkfs_opts_va"
32788 msgstr "guestfs_mkfs_opts_va"
32791 #: ../src/guestfs-actions.pod:5323
32795 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
32796 " const char *fstype,\n"
32797 " const char *device,\n"
32798 " va_list args);\n"
32802 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
32803 " const char *fstype,\n"
32804 " const char *device,\n"
32805 " va_list args);\n"
32809 #: ../src/guestfs-actions.pod:5329
32810 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
32814 #: ../src/guestfs-actions.pod:5333
32815 msgid "guestfs_mkfs_opts_argv"
32816 msgstr "guestfs_mkfs_opts_argv"
32819 #: ../src/guestfs-actions.pod:5335
32823 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32824 " const char *fstype,\n"
32825 " const char *device,\n"
32826 " const struct guestfs_mkfs_opts_argv *optargs);\n"
32830 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32831 " const char *fstype,\n"
32832 " const char *device,\n"
32833 " const struct guestfs_mkfs_opts_argv *optargs);\n"
32837 #: ../src/guestfs-actions.pod:5341
32838 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
32842 #: ../src/guestfs-actions.pod:5345
32843 msgid "guestfs_mkmountpoint"
32844 msgstr "guestfs_mkmountpoint"
32847 #: ../src/guestfs-actions.pod:5347
32851 " guestfs_mkmountpoint (guestfs_h *g,\n"
32852 " const char *exemptpath);\n"
32856 " guestfs_mkmountpoint (guestfs_h *g,\n"
32857 " const char *exemptpath);\n"
32861 #: ../src/guestfs-actions.pod:5351
32863 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
32864 "that can be used to create extra mountpoints before mounting the first "
32869 #: ../src/guestfs-actions.pod:5375
32871 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
32872 "may get unexpected errors if you try to mix these calls. It is safest to "
32873 "manually unmount filesystems and remove mountpoints after use."
32877 #: ../src/guestfs-actions.pod:5379
32879 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
32880 "first, so for this to work for manual mountpoints, you must ensure that the "
32881 "innermost mountpoints have the longest pathnames, as in the example code "
32886 #: ../src/guestfs-actions.pod:5386
32888 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
32889 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
32890 "can also trigger these issues."
32894 #: ../src/guestfs-actions.pod:5392 ../src/guestfs-actions.pod:5698
32895 #: ../src/guestfs-actions.pod:6725
32896 msgid "(Added in 1.0.62)"
32897 msgstr "(Додано у 1.0.62)"
32900 #: ../src/guestfs-actions.pod:5394
32901 msgid "guestfs_mknod"
32905 #: ../src/guestfs-actions.pod:5396
32909 " guestfs_mknod (guestfs_h *g,\n"
32913 " const char *path);\n"
32918 #: ../src/guestfs-actions.pod:5411
32920 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
32921 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
32922 "regular file). These constants are available in the standard Linux header "
32923 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
32924 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
32925 "the appropriate constant for you."
32929 #: ../src/guestfs-actions.pod:5425
32930 msgid "guestfs_mknod_b"
32934 #: ../src/guestfs-actions.pod:5427
32938 " guestfs_mknod_b (guestfs_h *g,\n"
32942 " const char *path);\n"
32947 #: ../src/guestfs-actions.pod:5434
32949 "This call creates a block device node called C<path> with mode C<mode> and "
32950 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
32951 "wrapper around C<guestfs_mknod>."
32955 #: ../src/guestfs-actions.pod:5444
32956 msgid "guestfs_mknod_c"
32960 #: ../src/guestfs-actions.pod:5446
32964 " guestfs_mknod_c (guestfs_h *g,\n"
32968 " const char *path);\n"
32973 #: ../src/guestfs-actions.pod:5453
32975 "This call creates a char device node called C<path> with mode C<mode> and "
32976 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
32977 "wrapper around C<guestfs_mknod>."
32981 #: ../src/guestfs-actions.pod:5463
32982 msgid "guestfs_mkswap"
32986 #: ../src/guestfs-actions.pod:5465
32990 " guestfs_mkswap (guestfs_h *g,\n"
32991 " const char *device);\n"
32996 #: ../src/guestfs-actions.pod:5475
32997 msgid "guestfs_mkswap_L"
33001 #: ../src/guestfs-actions.pod:5477
33005 " guestfs_mkswap_L (guestfs_h *g,\n"
33006 " const char *label,\n"
33007 " const char *device);\n"
33012 #: ../src/guestfs-actions.pod:5492
33013 msgid "guestfs_mkswap_U"
33017 #: ../src/guestfs-actions.pod:5494
33021 " guestfs_mkswap_U (guestfs_h *g,\n"
33022 " const char *uuid,\n"
33023 " const char *device);\n"
33028 #: ../src/guestfs-actions.pod:5505
33029 msgid "guestfs_mkswap_file"
33033 #: ../src/guestfs-actions.pod:5507
33037 " guestfs_mkswap_file (guestfs_h *g,\n"
33038 " const char *path);\n"
33043 #: ../src/guestfs-actions.pod:5513
33045 "This command just writes a swap file signature to an existing file. To "
33046 "create the file itself, use something like C<guestfs_fallocate>."
33050 #: ../src/guestfs-actions.pod:5520
33051 msgid "guestfs_modprobe"
33055 #: ../src/guestfs-actions.pod:5522
33059 " guestfs_modprobe (guestfs_h *g,\n"
33060 " const char *modulename);\n"
33065 #: ../src/guestfs-actions.pod:5535
33066 msgid "guestfs_mount"
33070 #: ../src/guestfs-actions.pod:5537
33074 " guestfs_mount (guestfs_h *g,\n"
33075 " const char *device,\n"
33076 " const char *mountpoint);\n"
33081 #: ../src/guestfs-actions.pod:5556
33083 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
33084 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
33085 "problems for users. If your program might need to work with older versions "
33086 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
33087 "for the first parameter if you don't want any options)."
33091 #: ../src/guestfs-actions.pod:5567
33092 msgid "guestfs_mount_9p"
33096 #: ../src/guestfs-actions.pod:5569
33100 " guestfs_mount_9p (guestfs_h *g,\n"
33101 " const char *mounttag,\n"
33102 " const char *mountpoint,\n"
33108 #: ../src/guestfs-actions.pod:5580
33111 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
33116 #: ../src/guestfs-actions.pod:5593
33117 msgid "guestfs_mount_9p_va"
33121 #: ../src/guestfs-actions.pod:5595
33125 " guestfs_mount_9p_va (guestfs_h *g,\n"
33126 " const char *mounttag,\n"
33127 " const char *mountpoint,\n"
33128 " va_list args);\n"
33133 #: ../src/guestfs-actions.pod:5601
33134 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
33138 #: ../src/guestfs-actions.pod:5605
33139 msgid "guestfs_mount_9p_argv"
33143 #: ../src/guestfs-actions.pod:5607
33147 " guestfs_mount_9p_argv (guestfs_h *g,\n"
33148 " const char *mounttag,\n"
33149 " const char *mountpoint,\n"
33150 " const struct guestfs_mount_9p_argv *optargs);\n"
33155 #: ../src/guestfs-actions.pod:5613
33156 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
33160 #: ../src/guestfs-actions.pod:5617
33161 msgid "guestfs_mount_loop"
33165 #: ../src/guestfs-actions.pod:5619
33169 " guestfs_mount_loop (guestfs_h *g,\n"
33170 " const char *file,\n"
33171 " const char *mountpoint);\n"
33176 #: ../src/guestfs-actions.pod:5632
33177 msgid "guestfs_mount_options"
33181 #: ../src/guestfs-actions.pod:5634
33185 " guestfs_mount_options (guestfs_h *g,\n"
33186 " const char *options,\n"
33187 " const char *device,\n"
33188 " const char *mountpoint);\n"
33193 #: ../src/guestfs-actions.pod:5640
33195 "This is the same as the C<guestfs_mount> command, but it allows you to set "
33196 "the mount options as for the L<mount(8)> I<-o> flag."
33200 #: ../src/guestfs-actions.pod:5650 ../src/guestfs-actions.pod:5664
33201 #: ../src/guestfs-actions.pod:5681
33202 msgid "(Added in 1.0.10)"
33203 msgstr "(Додано у 1.0.10)"
33206 #: ../src/guestfs-actions.pod:5652
33207 msgid "guestfs_mount_ro"
33211 #: ../src/guestfs-actions.pod:5654
33215 " guestfs_mount_ro (guestfs_h *g,\n"
33216 " const char *device,\n"
33217 " const char *mountpoint);\n"
33222 #: ../src/guestfs-actions.pod:5659
33224 "This is the same as the C<guestfs_mount> command, but it mounts the "
33225 "filesystem with the read-only (I<-o ro>) flag."
33229 #: ../src/guestfs-actions.pod:5666
33230 msgid "guestfs_mount_vfs"
33234 #: ../src/guestfs-actions.pod:5668
33238 " guestfs_mount_vfs (guestfs_h *g,\n"
33239 " const char *options,\n"
33240 " const char *vfstype,\n"
33241 " const char *device,\n"
33242 " const char *mountpoint);\n"
33247 #: ../src/guestfs-actions.pod:5675
33249 "This is the same as the C<guestfs_mount> command, but it allows you to set "
33250 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
33255 #: ../src/guestfs-actions.pod:5683
33256 msgid "guestfs_mountpoints"
33260 #: ../src/guestfs-actions.pod:5685
33264 " guestfs_mountpoints (guestfs_h *g);\n"
33269 #: ../src/guestfs-actions.pod:5688
33271 "This call is similar to C<guestfs_mounts>. That call returns a list of "
33272 "devices. This one returns a hash table (map) of device name to directory "
33273 "where the device is mounted."
33277 #: ../src/guestfs-actions.pod:5700
33278 msgid "guestfs_mounts"
33282 #: ../src/guestfs-actions.pod:5702
33286 " guestfs_mounts (guestfs_h *g);\n"
33291 #: ../src/guestfs-actions.pod:5710
33292 msgid "See also: C<guestfs_mountpoints>"
33296 #: ../src/guestfs-actions.pod:5718
33301 #: ../src/guestfs-actions.pod:5720
33305 " guestfs_mv (guestfs_h *g,\n"
33306 " const char *src,\n"
33307 " const char *dest);\n"
33312 #: ../src/guestfs-actions.pod:5732
33313 msgid "guestfs_ntfs_3g_probe"
33317 #: ../src/guestfs-actions.pod:5734
33321 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
33323 " const char *device);\n"
33328 #: ../src/guestfs-actions.pod:5753
33329 msgid "(Added in 1.0.43)"
33330 msgstr "(Додано у 1.0.43)"
33333 #: ../src/guestfs-actions.pod:5755
33334 msgid "guestfs_ntfsresize"
33338 #: ../src/guestfs-actions.pod:5757
33342 " guestfs_ntfsresize (guestfs_h *g,\n"
33343 " const char *device);\n"
33348 #: ../src/guestfs-actions.pod:5761 ../src/guestfs-actions.pod:5861
33350 "I<This function is deprecated.> In new code, use the L</"
33351 "guestfs_ntfsresize_opts> call instead."
33355 #: ../src/guestfs-actions.pod:5785
33356 msgid "guestfs_ntfsresize_opts"
33360 #: ../src/guestfs-actions.pod:5787
33364 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
33365 " const char *device,\n"
33371 #: ../src/guestfs-actions.pod:5797
33374 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
33375 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
33380 #: ../src/guestfs-actions.pod:5817
33382 "After the resize operation, the filesystem is always marked as requiring a "
33383 "consistency check (for safety). You have to boot into Windows to perform "
33384 "this check and clear this condition. If you I<don't> set the C<force> "
33385 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
33386 "times on a single filesystem without booting into Windows between each "
33391 #: ../src/guestfs-actions.pod:5832
33392 msgid "guestfs_ntfsresize_opts_va"
33396 #: ../src/guestfs-actions.pod:5834
33400 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
33401 " const char *device,\n"
33402 " va_list args);\n"
33407 #: ../src/guestfs-actions.pod:5839
33408 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
33412 #: ../src/guestfs-actions.pod:5843
33413 msgid "guestfs_ntfsresize_opts_argv"
33417 #: ../src/guestfs-actions.pod:5845
33421 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
33422 " const char *device,\n"
33423 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
33428 #: ../src/guestfs-actions.pod:5850
33429 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
33433 #: ../src/guestfs-actions.pod:5854
33434 msgid "guestfs_ntfsresize_size"
33438 #: ../src/guestfs-actions.pod:5856
33442 " guestfs_ntfsresize_size (guestfs_h *g,\n"
33443 " const char *device,\n"
33444 " int64_t size);\n"
33449 #: ../src/guestfs-actions.pod:5868
33451 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
33452 "to specify the new size (in bytes) explicitly."
33456 #: ../src/guestfs-actions.pod:5873 ../src/guestfs-actions.pod:6332
33457 #: ../src/guestfs-actions.pod:6405 ../src/guestfs-actions.pod:6673
33458 #: ../src/guestfs-actions.pod:8422
33459 msgid "(Added in 1.3.14)"
33460 msgstr "(Додано у 1.3.14)"
33463 #: ../src/guestfs-actions.pod:5875
33464 msgid "guestfs_part_add"
33468 #: ../src/guestfs-actions.pod:5877
33472 " guestfs_part_add (guestfs_h *g,\n"
33473 " const char *device,\n"
33474 " const char *prlogex,\n"
33475 " int64_t startsect,\n"
33476 " int64_t endsect);\n"
33481 #: ../src/guestfs-actions.pod:5884
33483 "This command adds a partition to C<device>. If there is no partition table "
33484 "on the device, call C<guestfs_part_init> first."
33488 #: ../src/guestfs-actions.pod:5896
33490 "Creating a partition which covers the whole disk is not so easy. Use "
33491 "C<guestfs_part_disk> to do that."
33495 #: ../src/guestfs-actions.pod:5901 ../src/guestfs-actions.pod:5936
33496 #: ../src/guestfs-actions.pod:5989 ../src/guestfs-actions.pod:6073
33497 #: ../src/guestfs-actions.pod:6111 ../src/guestfs-actions.pod:6130
33498 #: ../src/guestfs-actions.pod:6170
33499 msgid "(Added in 1.0.78)"
33500 msgstr "(Додано у 1.0.78)"
33503 #: ../src/guestfs-actions.pod:5903
33504 msgid "guestfs_part_del"
33508 #: ../src/guestfs-actions.pod:5905
33512 " guestfs_part_del (guestfs_h *g,\n"
33513 " const char *device,\n"
33519 #: ../src/guestfs-actions.pod:5920
33520 msgid "guestfs_part_disk"
33524 #: ../src/guestfs-actions.pod:5922
33528 " guestfs_part_disk (guestfs_h *g,\n"
33529 " const char *device,\n"
33530 " const char *parttype);\n"
33535 #: ../src/guestfs-actions.pod:5927
33537 "This command is simply a combination of C<guestfs_part_init> followed by "
33538 "C<guestfs_part_add> to create a single primary partition covering the whole "
33543 #: ../src/guestfs-actions.pod:5931
33545 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
33546 "possible values are described in C<guestfs_part_init>."
33550 #: ../src/guestfs-actions.pod:5938
33551 msgid "guestfs_part_get_bootable"
33555 #: ../src/guestfs-actions.pod:5940
33559 " guestfs_part_get_bootable (guestfs_h *g,\n"
33560 " const char *device,\n"
33566 #: ../src/guestfs-actions.pod:5948
33567 msgid "See also C<guestfs_part_set_bootable>."
33571 #: ../src/guestfs-actions.pod:5954
33572 msgid "guestfs_part_get_mbr_id"
33576 #: ../src/guestfs-actions.pod:5956
33580 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
33581 " const char *device,\n"
33587 #: ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:6146
33589 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
33590 "undefined results for other partition table types (see "
33591 "C<guestfs_part_get_parttype>)."
33595 #: ../src/guestfs-actions.pod:5972
33596 msgid "guestfs_part_get_parttype"
33600 #: ../src/guestfs-actions.pod:5974
33604 " guestfs_part_get_parttype (guestfs_h *g,\n"
33605 " const char *device);\n"
33610 #: ../src/guestfs-actions.pod:5981
33612 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
33613 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
33614 "possible, although unusual. See C<guestfs_part_init> for a full list."
33618 #: ../src/guestfs-actions.pod:5991
33619 msgid "guestfs_part_init"
33623 #: ../src/guestfs-actions.pod:5993
33627 " guestfs_part_init (guestfs_h *g,\n"
33628 " const char *device,\n"
33629 " const char *parttype);\n"
33634 #: ../src/guestfs-actions.pod:6002
33636 "Initially there are no partitions. Following this, you should call "
33637 "C<guestfs_part_add> for each partition required."
33641 #: ../src/guestfs-actions.pod:6075
33642 msgid "guestfs_part_list"
33643 msgstr "guestfs_part_list"
33646 #: ../src/guestfs-actions.pod:6077
33649 " struct guestfs_partition_list *\n"
33650 " guestfs_part_list (guestfs_h *g,\n"
33651 " const char *device);\n"
33654 " struct guestfs_partition_list *\n"
33655 " guestfs_part_list (guestfs_h *g,\n"
33656 " const char *device);\n"
33660 #: ../src/guestfs-actions.pod:6094
33662 "Start of the partition I<in bytes>. To get sectors you have to divide by "
33663 "the device's sector size, see C<guestfs_blockdev_getss>."
33667 #: ../src/guestfs-actions.pod:6107
33669 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
33670 "was an error. I<The caller must call C<guestfs_free_partition_list> after "
33675 #: ../src/guestfs-actions.pod:6113
33676 msgid "guestfs_part_set_bootable"
33680 #: ../src/guestfs-actions.pod:6115
33684 " guestfs_part_set_bootable (guestfs_h *g,\n"
33685 " const char *device,\n"
33687 " int bootable);\n"
33692 #: ../src/guestfs-actions.pod:6132
33693 msgid "guestfs_part_set_mbr_id"
33697 #: ../src/guestfs-actions.pod:6134
33701 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
33702 " const char *device,\n"
33709 #: ../src/guestfs-actions.pod:6154
33710 msgid "guestfs_part_set_name"
33714 #: ../src/guestfs-actions.pod:6156
33718 " guestfs_part_set_name (guestfs_h *g,\n"
33719 " const char *device,\n"
33721 " const char *name);\n"
33726 #: ../src/guestfs-actions.pod:6172
33727 msgid "guestfs_part_to_dev"
33731 #: ../src/guestfs-actions.pod:6174
33735 " guestfs_part_to_dev (guestfs_h *g,\n"
33736 " const char *partition);\n"
33741 #: ../src/guestfs-actions.pod:6182 ../src/guestfs-actions.pod:6201
33743 "The named partition must exist, for example as a string returned from "
33744 "C<guestfs_list_partitions>."
33748 #: ../src/guestfs-actions.pod:6185
33749 msgid "See also C<guestfs_part_to_partnum>."
33753 #: ../src/guestfs-actions.pod:6192
33754 msgid "guestfs_part_to_partnum"
33758 #: ../src/guestfs-actions.pod:6194
33762 " guestfs_part_to_partnum (guestfs_h *g,\n"
33763 " const char *partition);\n"
33768 #: ../src/guestfs-actions.pod:6204
33769 msgid "See also C<guestfs_part_to_dev>."
33773 #: ../src/guestfs-actions.pod:6210
33774 msgid "guestfs_ping_daemon"
33778 #: ../src/guestfs-actions.pod:6212
33782 " guestfs_ping_daemon (guestfs_h *g);\n"
33787 #: ../src/guestfs-actions.pod:6224
33788 msgid "guestfs_pread"
33792 #: ../src/guestfs-actions.pod:6226
33796 " guestfs_pread (guestfs_h *g,\n"
33797 " const char *path,\n"
33799 " int64_t offset,\n"
33800 " size_t *size_r);\n"
33805 #: ../src/guestfs-actions.pod:6239
33806 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
33810 #: ../src/guestfs-actions.pod:6250
33811 msgid "guestfs_pread_device"
33815 #: ../src/guestfs-actions.pod:6252
33819 " guestfs_pread_device (guestfs_h *g,\n"
33820 " const char *device,\n"
33822 " int64_t offset,\n"
33823 " size_t *size_r);\n"
33828 #: ../src/guestfs-actions.pod:6265
33829 msgid "See also C<guestfs_pread>."
33833 #: ../src/guestfs-actions.pod:6274
33834 msgid "(Added in 1.5.21)"
33835 msgstr "(Додано у 1.5.21)"
33838 #: ../src/guestfs-actions.pod:6276
33839 msgid "guestfs_pvcreate"
33843 #: ../src/guestfs-actions.pod:6278
33847 " guestfs_pvcreate (guestfs_h *g,\n"
33848 " const char *device);\n"
33853 #: ../src/guestfs-actions.pod:6290
33854 msgid "guestfs_pvremove"
33858 #: ../src/guestfs-actions.pod:6292
33862 " guestfs_pvremove (guestfs_h *g,\n"
33863 " const char *device);\n"
33868 #: ../src/guestfs-actions.pod:6307
33869 msgid "guestfs_pvresize"
33873 #: ../src/guestfs-actions.pod:6309
33877 " guestfs_pvresize (guestfs_h *g,\n"
33878 " const char *device);\n"
33883 #: ../src/guestfs-actions.pod:6320
33884 msgid "guestfs_pvresize_size"
33888 #: ../src/guestfs-actions.pod:6322
33892 " guestfs_pvresize_size (guestfs_h *g,\n"
33893 " const char *device,\n"
33894 " int64_t size);\n"
33899 #: ../src/guestfs-actions.pod:6327
33901 "This command is the same as C<guestfs_pvresize> except that it allows you to "
33902 "specify the new size (in bytes) explicitly."
33906 #: ../src/guestfs-actions.pod:6334
33907 msgid "guestfs_pvs"
33911 #: ../src/guestfs-actions.pod:6336
33915 " guestfs_pvs (guestfs_h *g);\n"
33920 #: ../src/guestfs-actions.pod:6345
33921 msgid "See also C<guestfs_pvs_full>."
33925 #: ../src/guestfs-actions.pod:6353
33926 msgid "guestfs_pvs_full"
33930 #: ../src/guestfs-actions.pod:6355
33933 " struct guestfs_lvm_pv_list *\n"
33934 " guestfs_pvs_full (guestfs_h *g);\n"
33939 #: ../src/guestfs-actions.pod:6361
33941 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
33942 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
33946 #: ../src/guestfs-actions.pod:6367
33947 msgid "guestfs_pvuuid"
33951 #: ../src/guestfs-actions.pod:6369
33955 " guestfs_pvuuid (guestfs_h *g,\n"
33956 " const char *device);\n"
33961 #: ../src/guestfs-actions.pod:6380
33962 msgid "guestfs_pwrite"
33966 #: ../src/guestfs-actions.pod:6382
33970 " guestfs_pwrite (guestfs_h *g,\n"
33971 " const char *path,\n"
33972 " const char *content,\n"
33973 " size_t content_size,\n"
33974 " int64_t offset);\n"
33979 #: ../src/guestfs-actions.pod:6398
33980 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
33984 #: ../src/guestfs-actions.pod:6407
33985 msgid "guestfs_pwrite_device"
33989 #: ../src/guestfs-actions.pod:6409
33993 " guestfs_pwrite_device (guestfs_h *g,\n"
33994 " const char *device,\n"
33995 " const char *content,\n"
33996 " size_t content_size,\n"
33997 " int64_t offset);\n"
34002 #: ../src/guestfs-actions.pod:6424
34003 msgid "See also C<guestfs_pwrite>."
34007 #: ../src/guestfs-actions.pod:6431
34008 msgid "(Added in 1.5.20)"
34009 msgstr "(Додано у 1.5.20)"
34012 #: ../src/guestfs-actions.pod:6433
34013 msgid "guestfs_read_file"
34017 #: ../src/guestfs-actions.pod:6435
34021 " guestfs_read_file (guestfs_h *g,\n"
34022 " const char *path,\n"
34023 " size_t *size_r);\n"
34028 #: ../src/guestfs-actions.pod:6443
34030 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
34031 "embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
34032 "function is limited in the total size of file that can be handled."
34036 #: ../src/guestfs-actions.pod:6455
34037 msgid "(Added in 1.0.63)"
34038 msgstr "(Додано у 1.0.63)"
34041 #: ../src/guestfs-actions.pod:6457
34042 msgid "guestfs_read_lines"
34046 #: ../src/guestfs-actions.pod:6459
34050 " guestfs_read_lines (guestfs_h *g,\n"
34051 " const char *path);\n"
34056 #: ../src/guestfs-actions.pod:6468
34058 "Note that this function cannot correctly handle binary files (specifically, "
34059 "files containing C<\\0> character which is treated as end of line). For "
34060 "those you need to use the C<guestfs_read_file> function which has a more "
34061 "complex interface."
34065 #: ../src/guestfs-actions.pod:6479
34066 msgid "guestfs_readdir"
34070 #: ../src/guestfs-actions.pod:6481
34073 " struct guestfs_dirent_list *\n"
34074 " guestfs_readdir (guestfs_h *g,\n"
34075 " const char *dir);\n"
34080 #: ../src/guestfs-actions.pod:6535
34082 "This function is primarily intended for use by programs. To get a simple "
34083 "list of names, use C<guestfs_ls>. To get a printable directory for human "
34084 "consumption, use C<guestfs_ll>."
34088 #: ../src/guestfs-actions.pod:6539
34090 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
34091 "was an error. I<The caller must call C<guestfs_free_dirent_list> after use>."
34095 #: ../src/guestfs-actions.pod:6545
34096 msgid "guestfs_readlink"
34100 #: ../src/guestfs-actions.pod:6547
34104 " guestfs_readlink (guestfs_h *g,\n"
34105 " const char *path);\n"
34110 #: ../src/guestfs-actions.pod:6558
34111 msgid "guestfs_readlinklist"
34115 #: ../src/guestfs-actions.pod:6560
34119 " guestfs_readlinklist (guestfs_h *g,\n"
34120 " const char *path,\n"
34121 " char *const *names);\n"
34126 #: ../src/guestfs-actions.pod:6593
34127 msgid "guestfs_realpath"
34131 #: ../src/guestfs-actions.pod:6595
34135 " guestfs_realpath (guestfs_h *g,\n"
34136 " const char *path);\n"
34141 #: ../src/guestfs-actions.pod:6607
34142 msgid "guestfs_removexattr"
34146 #: ../src/guestfs-actions.pod:6609
34150 " guestfs_removexattr (guestfs_h *g,\n"
34151 " const char *xattr,\n"
34152 " const char *path);\n"
34157 #: ../src/guestfs-actions.pod:6617
34158 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
34162 #: ../src/guestfs-actions.pod:6623
34163 msgid "guestfs_resize2fs"
34167 #: ../src/guestfs-actions.pod:6625
34171 " guestfs_resize2fs (guestfs_h *g,\n"
34172 " const char *device);\n"
34177 #: ../src/guestfs-actions.pod:6632
34179 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
34180 "C<device> before calling this command. For unknown reasons C<resize2fs> "
34181 "sometimes gives an error about this and sometimes not. In any case, it is "
34182 "always safe to call C<guestfs_e2fsck_f> before calling this function."
34186 #: ../src/guestfs-actions.pod:6642
34187 msgid "guestfs_resize2fs_M"
34191 #: ../src/guestfs-actions.pod:6644
34195 " guestfs_resize2fs_M (guestfs_h *g,\n"
34196 " const char *device);\n"
34201 #: ../src/guestfs-actions.pod:6648
34203 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
34204 "resized to its minimum size. This works like the I<-M> option to the "
34205 "C<resize2fs> command."
34209 #: ../src/guestfs-actions.pod:6652
34211 "To get the resulting size of the filesystem you should call "
34212 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
34213 "These two numbers, multiplied together, give the resulting size of the "
34214 "minimal filesystem in bytes."
34218 #: ../src/guestfs-actions.pod:6661
34219 msgid "guestfs_resize2fs_size"
34223 #: ../src/guestfs-actions.pod:6663
34227 " guestfs_resize2fs_size (guestfs_h *g,\n"
34228 " const char *device,\n"
34229 " int64_t size);\n"
34234 #: ../src/guestfs-actions.pod:6668
34236 "This command is the same as C<guestfs_resize2fs> except that it allows you "
34237 "to specify the new size (in bytes) explicitly."
34241 #: ../src/guestfs-actions.pod:6675
34246 #: ../src/guestfs-actions.pod:6677
34250 " guestfs_rm (guestfs_h *g,\n"
34251 " const char *path);\n"
34256 #: ../src/guestfs-actions.pod:6687
34257 msgid "guestfs_rm_rf"
34261 #: ../src/guestfs-actions.pod:6689
34265 " guestfs_rm_rf (guestfs_h *g,\n"
34266 " const char *path);\n"
34271 #: ../src/guestfs-actions.pod:6701
34272 msgid "guestfs_rmdir"
34276 #: ../src/guestfs-actions.pod:6703
34280 " guestfs_rmdir (guestfs_h *g,\n"
34281 " const char *path);\n"
34286 #: ../src/guestfs-actions.pod:6713
34287 msgid "guestfs_rmmountpoint"
34291 #: ../src/guestfs-actions.pod:6715
34295 " guestfs_rmmountpoint (guestfs_h *g,\n"
34296 " const char *exemptpath);\n"
34301 #: ../src/guestfs-actions.pod:6719
34303 "This calls removes a mountpoint that was previously created with "
34304 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
34308 #: ../src/guestfs-actions.pod:6727
34309 msgid "guestfs_scrub_device"
34313 #: ../src/guestfs-actions.pod:6729
34317 " guestfs_scrub_device (guestfs_h *g,\n"
34318 " const char *device);\n"
34323 #: ../src/guestfs-actions.pod:6741 ../src/guestfs-actions.pod:6759
34324 #: ../src/guestfs-actions.pod:6778
34325 msgid "(Added in 1.0.52)"
34326 msgstr "(Додано у 1.0.52)"
34329 #: ../src/guestfs-actions.pod:6743
34330 msgid "guestfs_scrub_file"
34334 #: ../src/guestfs-actions.pod:6745
34338 " guestfs_scrub_file (guestfs_h *g,\n"
34339 " const char *file);\n"
34344 #: ../src/guestfs-actions.pod:6761
34345 msgid "guestfs_scrub_freespace"
34349 #: ../src/guestfs-actions.pod:6763
34353 " guestfs_scrub_freespace (guestfs_h *g,\n"
34354 " const char *dir);\n"
34359 #: ../src/guestfs-actions.pod:6767
34361 "This command creates the directory C<dir> and then fills it with files until "
34362 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
34363 "and deletes them. The intention is to scrub any free space on the partition "
34364 "containing C<dir>."
34368 #: ../src/guestfs-actions.pod:6780
34369 msgid "guestfs_set_append"
34373 #: ../src/guestfs-actions.pod:6782
34377 " guestfs_set_append (guestfs_h *g,\n"
34378 " const char *append);\n"
34383 #: ../src/guestfs-actions.pod:6799
34384 msgid "guestfs_set_attach_method"
34388 #: ../src/guestfs-actions.pod:6801
34392 " guestfs_set_attach_method (guestfs_h *g,\n"
34393 " const char *attachmethod);\n"
34398 #: ../src/guestfs-actions.pod:6829
34399 msgid "guestfs_set_autosync"
34403 #: ../src/guestfs-actions.pod:6831
34407 " guestfs_set_autosync (guestfs_h *g,\n"
34408 " int autosync);\n"
34413 #: ../src/guestfs-actions.pod:6847
34414 msgid "guestfs_set_direct"
34418 #: ../src/guestfs-actions.pod:6849
34422 " guestfs_set_direct (guestfs_h *g,\n"
34428 #: ../src/guestfs-actions.pod:6857
34430 "One consequence of this is that log messages aren't caught by the library "
34431 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
34436 #: ../src/guestfs-actions.pod:6870
34437 msgid "guestfs_set_e2label"
34441 #: ../src/guestfs-actions.pod:6872
34445 " guestfs_set_e2label (guestfs_h *g,\n"
34446 " const char *device,\n"
34447 " const char *label);\n"
34452 #: ../src/guestfs-actions.pod:6881
34454 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
34455 "the existing label on a filesystem."
34459 #: ../src/guestfs-actions.pod:6888
34460 msgid "guestfs_set_e2uuid"
34464 #: ../src/guestfs-actions.pod:6890
34468 " guestfs_set_e2uuid (guestfs_h *g,\n"
34469 " const char *device,\n"
34470 " const char *uuid);\n"
34475 #: ../src/guestfs-actions.pod:6900
34477 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
34478 "the existing UUID of a filesystem."
34482 #: ../src/guestfs-actions.pod:6907
34483 msgid "guestfs_set_memsize"
34487 #: ../src/guestfs-actions.pod:6909
34491 " guestfs_set_memsize (guestfs_h *g,\n"
34497 #: ../src/guestfs-actions.pod:6913
34499 "This sets the memory size in megabytes allocated to the qemu subprocess. "
34500 "This only has any effect if called before C<guestfs_launch>."
34504 #: ../src/guestfs-actions.pod:6928
34505 msgid "guestfs_set_network"
34509 #: ../src/guestfs-actions.pod:6930
34513 " guestfs_set_network (guestfs_h *g,\n"
34519 #: ../src/guestfs-actions.pod:6940
34521 "You must call this before calling C<guestfs_launch>, otherwise it has no "
34526 #: ../src/guestfs-actions.pod:6947
34527 msgid "guestfs_set_path"
34531 #: ../src/guestfs-actions.pod:6949
34535 " guestfs_set_path (guestfs_h *g,\n"
34536 " const char *searchpath);\n"
34541 #: ../src/guestfs-actions.pod:6964
34542 msgid "guestfs_set_pgroup"
34546 #: ../src/guestfs-actions.pod:6966
34550 " guestfs_set_pgroup (guestfs_h *g,\n"
34556 #: ../src/guestfs-actions.pod:6983
34557 msgid "guestfs_set_qemu"
34561 #: ../src/guestfs-actions.pod:6985
34565 " guestfs_set_qemu (guestfs_h *g,\n"
34566 " const char *qemu);\n"
34571 #: ../src/guestfs-actions.pod:7011
34572 msgid "guestfs_set_recovery_proc"
34576 #: ../src/guestfs-actions.pod:7013
34580 " guestfs_set_recovery_proc (guestfs_h *g,\n"
34581 " int recoveryproc);\n"
34586 #: ../src/guestfs-actions.pod:7017
34588 "If this is called with the parameter C<false> then C<guestfs_launch> does "
34589 "not create a recovery process. The purpose of the recovery process is to "
34590 "stop runaway qemu processes in the case where the main program aborts "
34595 #: ../src/guestfs-actions.pod:7022
34597 "This only has any effect if called before C<guestfs_launch>, and the default "
34602 #: ../src/guestfs-actions.pod:7035
34603 msgid "guestfs_set_selinux"
34607 #: ../src/guestfs-actions.pod:7037
34611 " guestfs_set_selinux (guestfs_h *g,\n"
34617 #: ../src/guestfs-actions.pod:7054
34618 msgid "guestfs_set_smp"
34622 #: ../src/guestfs-actions.pod:7056
34626 " guestfs_set_smp (guestfs_h *g,\n"
34632 #: ../src/guestfs-actions.pod:7064
34633 msgid "This function must be called before C<guestfs_launch>."
34637 #: ../src/guestfs-actions.pod:7070
34638 msgid "guestfs_set_trace"
34642 #: ../src/guestfs-actions.pod:7072
34646 " guestfs_set_trace (guestfs_h *g,\n"
34652 #: ../src/guestfs-actions.pod:7086
34654 "Trace messages are normally sent to C<stderr>, unless you register a "
34655 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
34659 #: ../src/guestfs-actions.pod:7094
34660 msgid "guestfs_set_verbose"
34664 #: ../src/guestfs-actions.pod:7096
34668 " guestfs_set_verbose (guestfs_h *g,\n"
34674 #: ../src/guestfs-actions.pod:7105
34676 "Verbose messages are normally sent to C<stderr>, unless you register a "
34677 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
34681 #: ../src/guestfs-actions.pod:7113
34682 msgid "guestfs_setcon"
34686 #: ../src/guestfs-actions.pod:7115
34690 " guestfs_setcon (guestfs_h *g,\n"
34691 " const char *context);\n"
34696 #: ../src/guestfs-actions.pod:7128
34697 msgid "guestfs_setxattr"
34701 #: ../src/guestfs-actions.pod:7130
34705 " guestfs_setxattr (guestfs_h *g,\n"
34706 " const char *xattr,\n"
34707 " const char *val,\n"
34709 " const char *path);\n"
34714 #: ../src/guestfs-actions.pod:7141
34715 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
34719 #: ../src/guestfs-actions.pod:7147
34720 msgid "guestfs_sfdisk"
34724 #: ../src/guestfs-actions.pod:7149
34728 " guestfs_sfdisk (guestfs_h *g,\n"
34729 " const char *device,\n"
34733 " char *const *lines);\n"
34738 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7198
34739 #: ../src/guestfs-actions.pod:7229
34741 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
34746 #: ../src/guestfs-actions.pod:7184
34748 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
34752 #: ../src/guestfs-actions.pod:7191
34753 msgid "guestfs_sfdiskM"
34757 #: ../src/guestfs-actions.pod:7193
34761 " guestfs_sfdiskM (guestfs_h *g,\n"
34762 " const char *device,\n"
34763 " char *const *lines);\n"
34768 #: ../src/guestfs-actions.pod:7205
34770 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
34771 "partition sizes are specified in megabytes only (rounded to the nearest "
34772 "cylinder) and you don't need to specify the cyls, heads and sectors "
34773 "parameters which were rarely if ever used anyway."
34777 #: ../src/guestfs-actions.pod:7211
34779 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
34780 "C<guestfs_part_disk>"
34784 #: ../src/guestfs-actions.pod:7218
34785 msgid "guestfs_sfdisk_N"
34789 #: ../src/guestfs-actions.pod:7220
34793 " guestfs_sfdisk_N (guestfs_h *g,\n"
34794 " const char *device,\n"
34799 " const char *line);\n"
34804 #: ../src/guestfs-actions.pod:7239
34806 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
34807 "for the cyls/heads/sectors parameters."
34811 #: ../src/guestfs-actions.pod:7242
34812 msgid "See also: C<guestfs_part_add>"
34816 #: ../src/guestfs-actions.pod:7248
34817 msgid "guestfs_sfdisk_disk_geometry"
34821 #: ../src/guestfs-actions.pod:7250
34825 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
34826 " const char *device);\n"
34831 #: ../src/guestfs-actions.pod:7254
34833 "This displays the disk geometry of C<device> read from the partition table. "
34834 "Especially in the case where the underlying block device has been resized, "
34835 "this can be different from the kernel's idea of the geometry (see "
34836 "C<guestfs_sfdisk_kernel_geometry>)."
34840 #: ../src/guestfs-actions.pod:7267
34841 msgid "guestfs_sfdisk_kernel_geometry"
34845 #: ../src/guestfs-actions.pod:7269
34849 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
34850 " const char *device);\n"
34855 #: ../src/guestfs-actions.pod:7283
34856 msgid "guestfs_sfdisk_l"
34860 #: ../src/guestfs-actions.pod:7285
34864 " guestfs_sfdisk_l (guestfs_h *g,\n"
34865 " const char *device);\n"
34870 #: ../src/guestfs-actions.pod:7289
34872 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
34877 #: ../src/guestfs-actions.pod:7300
34878 msgid "See also: C<guestfs_part_list>"
34882 #: ../src/guestfs-actions.pod:7307
34887 #: ../src/guestfs-actions.pod:7309
34891 " guestfs_sh (guestfs_h *g,\n"
34892 " const char *command);\n"
34897 #: ../src/guestfs-actions.pod:7316
34898 msgid "This is like C<guestfs_command>, but passes the command to:"
34902 #: ../src/guestfs-actions.pod:7324
34903 msgid "All the provisos about C<guestfs_command> apply to this call."
34907 #: ../src/guestfs-actions.pod:7331
34908 msgid "guestfs_sh_lines"
34912 #: ../src/guestfs-actions.pod:7333
34916 " guestfs_sh_lines (guestfs_h *g,\n"
34917 " const char *command);\n"
34922 #: ../src/guestfs-actions.pod:7337
34924 "This is the same as C<guestfs_sh>, but splits the result into a list of "
34929 #: ../src/guestfs-actions.pod:7340
34930 msgid "See also: C<guestfs_command_lines>"
34934 #: ../src/guestfs-actions.pod:7348
34935 msgid "guestfs_sleep"
34939 #: ../src/guestfs-actions.pod:7350
34943 " guestfs_sleep (guestfs_h *g,\n"
34949 #: ../src/guestfs-actions.pod:7358
34950 msgid "(Added in 1.0.41)"
34951 msgstr "(Додано у 1.0.41)"
34954 #: ../src/guestfs-actions.pod:7360 ../src/guestfs-structs.pod:109
34955 msgid "guestfs_stat"
34959 #: ../src/guestfs-actions.pod:7362
34962 " struct guestfs_stat *\n"
34963 " guestfs_stat (guestfs_h *g,\n"
34964 " const char *path);\n"
34969 #: ../src/guestfs-actions.pod:7376 ../src/guestfs-structs.pod:135
34970 msgid "guestfs_statvfs"
34974 #: ../src/guestfs-actions.pod:7378
34977 " struct guestfs_statvfs *\n"
34978 " guestfs_statvfs (guestfs_h *g,\n"
34979 " const char *path);\n"
34984 #: ../src/guestfs-actions.pod:7388
34986 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
34987 "error. I<The caller must call C<guestfs_free_statvfs> after use>."
34991 #: ../src/guestfs-actions.pod:7394
34992 msgid "guestfs_strings"
34996 #: ../src/guestfs-actions.pod:7396
35000 " guestfs_strings (guestfs_h *g,\n"
35001 " const char *path);\n"
35006 #: ../src/guestfs-actions.pod:7412
35007 msgid "guestfs_strings_e"
35011 #: ../src/guestfs-actions.pod:7414
35015 " guestfs_strings_e (guestfs_h *g,\n"
35016 " const char *encoding,\n"
35017 " const char *path);\n"
35022 #: ../src/guestfs-actions.pod:7419
35024 "This is like the C<guestfs_strings> command, but allows you to specify the "
35025 "encoding of strings that are looked for in the source file C<path>."
35029 #: ../src/guestfs-actions.pod:7429
35031 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
35032 "ISO-8859-X (this is what C<guestfs_strings> uses)."
35036 #: ../src/guestfs-actions.pod:7467
35037 msgid "guestfs_swapoff_device"
35041 #: ../src/guestfs-actions.pod:7469
35045 " guestfs_swapoff_device (guestfs_h *g,\n"
35046 " const char *device);\n"
35051 #: ../src/guestfs-actions.pod:7473
35053 "This command disables the libguestfs appliance swap device or partition "
35054 "named C<device>. See C<guestfs_swapon_device>."
35058 #: ../src/guestfs-actions.pod:7481
35059 msgid "guestfs_swapoff_file"
35063 #: ../src/guestfs-actions.pod:7483
35067 " guestfs_swapoff_file (guestfs_h *g,\n"
35068 " const char *file);\n"
35073 #: ../src/guestfs-actions.pod:7493
35074 msgid "guestfs_swapoff_label"
35078 #: ../src/guestfs-actions.pod:7495
35082 " guestfs_swapoff_label (guestfs_h *g,\n"
35083 " const char *label);\n"
35088 #: ../src/guestfs-actions.pod:7506
35089 msgid "guestfs_swapoff_uuid"
35093 #: ../src/guestfs-actions.pod:7508
35097 " guestfs_swapoff_uuid (guestfs_h *g,\n"
35098 " const char *uuid);\n"
35103 #: ../src/guestfs-actions.pod:7519
35104 msgid "guestfs_swapon_device"
35108 #: ../src/guestfs-actions.pod:7521
35112 " guestfs_swapon_device (guestfs_h *g,\n"
35113 " const char *device);\n"
35118 #: ../src/guestfs-actions.pod:7525
35120 "This command enables the libguestfs appliance to use the swap device or "
35121 "partition named C<device>. The increased memory is made available for all "
35122 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
35126 #: ../src/guestfs-actions.pod:7541
35127 msgid "guestfs_swapon_file"
35131 #: ../src/guestfs-actions.pod:7543
35135 " guestfs_swapon_file (guestfs_h *g,\n"
35136 " const char *file);\n"
35141 #: ../src/guestfs-actions.pod:7547
35143 "This command enables swap to a file. See C<guestfs_swapon_device> for other "
35148 #: ../src/guestfs-actions.pod:7554
35149 msgid "guestfs_swapon_label"
35153 #: ../src/guestfs-actions.pod:7556
35157 " guestfs_swapon_label (guestfs_h *g,\n"
35158 " const char *label);\n"
35163 #: ../src/guestfs-actions.pod:7560
35165 "This command enables swap to a labeled swap partition. See "
35166 "C<guestfs_swapon_device> for other notes."
35170 #: ../src/guestfs-actions.pod:7567
35171 msgid "guestfs_swapon_uuid"
35175 #: ../src/guestfs-actions.pod:7569
35179 " guestfs_swapon_uuid (guestfs_h *g,\n"
35180 " const char *uuid);\n"
35185 #: ../src/guestfs-actions.pod:7573
35187 "This command enables swap to a swap partition with the given UUID. See "
35188 "C<guestfs_swapon_device> for other notes."
35192 #: ../src/guestfs-actions.pod:7580
35193 msgid "guestfs_sync"
35197 #: ../src/guestfs-actions.pod:7582
35201 " guestfs_sync (guestfs_h *g);\n"
35206 #: ../src/guestfs-actions.pod:7595
35207 msgid "guestfs_tail"
35211 #: ../src/guestfs-actions.pod:7597
35215 " guestfs_tail (guestfs_h *g,\n"
35216 " const char *path);\n"
35221 #: ../src/guestfs-actions.pod:7613
35222 msgid "guestfs_tail_n"
35226 #: ../src/guestfs-actions.pod:7615
35230 " guestfs_tail_n (guestfs_h *g,\n"
35232 " const char *path);\n"
35237 #: ../src/guestfs-actions.pod:7637
35238 msgid "guestfs_tar_in"
35242 #: ../src/guestfs-actions.pod:7639
35246 " guestfs_tar_in (guestfs_h *g,\n"
35247 " const char *tarfile,\n"
35248 " const char *directory);\n"
35253 #: ../src/guestfs-actions.pod:7647
35255 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
35259 #: ../src/guestfs-actions.pod:7652 ../src/guestfs-actions.pod:7669
35260 #: ../src/guestfs-actions.pod:7685 ../src/guestfs-actions.pod:7701
35261 msgid "(Added in 1.0.3)"
35262 msgstr "(Додано у 1.0.3)"
35265 #: ../src/guestfs-actions.pod:7654
35266 msgid "guestfs_tar_out"
35270 #: ../src/guestfs-actions.pod:7656
35274 " guestfs_tar_out (guestfs_h *g,\n"
35275 " const char *directory,\n"
35276 " const char *tarfile);\n"
35281 #: ../src/guestfs-actions.pod:7664
35283 "To download a compressed tarball, use C<guestfs_tgz_out> or "
35284 "C<guestfs_txz_out>."
35288 #: ../src/guestfs-actions.pod:7671
35289 msgid "guestfs_tgz_in"
35293 #: ../src/guestfs-actions.pod:7673
35297 " guestfs_tgz_in (guestfs_h *g,\n"
35298 " const char *tarball,\n"
35299 " const char *directory);\n"
35304 #: ../src/guestfs-actions.pod:7681
35305 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
35309 #: ../src/guestfs-actions.pod:7687
35310 msgid "guestfs_tgz_out"
35314 #: ../src/guestfs-actions.pod:7689
35318 " guestfs_tgz_out (guestfs_h *g,\n"
35319 " const char *directory,\n"
35320 " const char *tarball);\n"
35325 #: ../src/guestfs-actions.pod:7697
35326 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
35330 #: ../src/guestfs-actions.pod:7703
35331 msgid "guestfs_touch"
35335 #: ../src/guestfs-actions.pod:7705
35339 " guestfs_touch (guestfs_h *g,\n"
35340 " const char *path);\n"
35345 #: ../src/guestfs-actions.pod:7720
35346 msgid "guestfs_truncate"
35350 #: ../src/guestfs-actions.pod:7722
35354 " guestfs_truncate (guestfs_h *g,\n"
35355 " const char *path);\n"
35360 #: ../src/guestfs-actions.pod:7733
35361 msgid "guestfs_truncate_size"
35365 #: ../src/guestfs-actions.pod:7735
35369 " guestfs_truncate_size (guestfs_h *g,\n"
35370 " const char *path,\n"
35371 " int64_t size);\n"
35376 #: ../src/guestfs-actions.pod:7743
35378 "If the current file size is less than C<size> then the file is extended to "
35379 "the required size with zero bytes. This creates a sparse file (ie. disk "
35380 "blocks are not allocated for the file until you write to it). To create a "
35381 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
35385 #: ../src/guestfs-actions.pod:7753
35387 #| msgid "guestfs_mke2fs_J"
35388 msgid "guestfs_tune2fs"
35389 msgstr "guestfs_mke2fs_J"
35392 #: ../src/guestfs-actions.pod:7755
35396 #| " guestfs_lvresize (guestfs_h *g,\n"
35397 #| " const char *device,\n"
35398 #| " int mbytes);\n"
35402 " guestfs_tune2fs (guestfs_h *g,\n"
35403 " const char *device,\n"
35408 " guestfs_lvresize (guestfs_h *g,\n"
35409 " const char *device,\n"
35414 #: ../src/guestfs-actions.pod:7765
35417 " GUESTFS_TUNE2FS_FORCE, int force,\n"
35418 " GUESTFS_TUNE2FS_MAXMOUNTCOUNT, int maxmountcount,\n"
35419 " GUESTFS_TUNE2FS_MOUNTCOUNT, int mountcount,\n"
35420 " GUESTFS_TUNE2FS_ERRORBEHAVIOR, const char *errorbehavior,\n"
35421 " GUESTFS_TUNE2FS_GROUP, int64_t group,\n"
35422 " GUESTFS_TUNE2FS_INTERVALBETWEENCHECKS, int intervalbetweenchecks,\n"
35423 " GUESTFS_TUNE2FS_RESERVEDBLOCKSPERCENTAGE, int reservedblockspercentage,\n"
35424 " GUESTFS_TUNE2FS_LASTMOUNTEDDIRECTORY, const char *lastmounteddirectory,\n"
35425 " GUESTFS_TUNE2FS_RESERVEDBLOCKSCOUNT, int64_t reservedblockscount,\n"
35426 " GUESTFS_TUNE2FS_USER, int64_t user,\n"
35431 #: ../src/guestfs-actions.pod:7845
35433 "To get the current values of filesystem parameters, see "
35434 "C<guestfs_tune2fs_l>. For precise details of how tune2fs works, see the "
35435 "L<tune2fs(8)> man page."
35439 #: ../src/guestfs-actions.pod:7853
35441 #| msgid "guestfs_mke2fs_J"
35442 msgid "guestfs_tune2fs_va"
35443 msgstr "guestfs_mke2fs_J"
35446 #: ../src/guestfs-actions.pod:7855
35450 #| " guestfs_lvresize (guestfs_h *g,\n"
35451 #| " const char *device,\n"
35452 #| " int mbytes);\n"
35456 " guestfs_tune2fs_va (guestfs_h *g,\n"
35457 " const char *device,\n"
35458 " va_list args);\n"
35462 " guestfs_lvresize (guestfs_h *g,\n"
35463 " const char *device,\n"
35468 #: ../src/guestfs-actions.pod:7860
35469 msgid "This is the \"va_list variant\" of L</guestfs_tune2fs>."
35473 #: ../src/guestfs-actions.pod:7864
35475 #| msgid "guestfs_mke2fs_J"
35476 msgid "guestfs_tune2fs_argv"
35477 msgstr "guestfs_mke2fs_J"
35480 #: ../src/guestfs-actions.pod:7866
35484 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
35485 #| " const char *fstype,\n"
35486 #| " const char *device,\n"
35487 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
35491 " guestfs_tune2fs_argv (guestfs_h *g,\n"
35492 " const char *device,\n"
35493 " const struct guestfs_tune2fs_argv *optargs);\n"
35497 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
35498 " const char *fstype,\n"
35499 " const char *device,\n"
35500 " const struct guestfs_mkfs_opts_argv *optargs);\n"
35504 #: ../src/guestfs-actions.pod:7871
35505 msgid "This is the \"argv variant\" of L</guestfs_tune2fs>."
35509 #: ../src/guestfs-actions.pod:7875
35510 msgid "guestfs_tune2fs_l"
35514 #: ../src/guestfs-actions.pod:7877
35518 " guestfs_tune2fs_l (guestfs_h *g,\n"
35519 " const char *device);\n"
35524 #: ../src/guestfs-actions.pod:7897
35525 msgid "guestfs_txz_in"
35529 #: ../src/guestfs-actions.pod:7899
35533 " guestfs_txz_in (guestfs_h *g,\n"
35534 " const char *tarball,\n"
35535 " const char *directory);\n"
35540 #: ../src/guestfs-actions.pod:7911
35541 msgid "guestfs_txz_out"
35545 #: ../src/guestfs-actions.pod:7913
35549 " guestfs_txz_out (guestfs_h *g,\n"
35550 " const char *directory,\n"
35551 " const char *tarball);\n"
35556 #: ../src/guestfs-actions.pod:7925
35557 msgid "guestfs_umask"
35561 #: ../src/guestfs-actions.pod:7927
35565 " guestfs_umask (guestfs_h *g,\n"
35571 #: ../src/guestfs-actions.pod:7943
35573 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
35574 "C<guestfs_mkdir>."
35578 #: ../src/guestfs-actions.pod:7952
35579 msgid "guestfs_umount"
35583 #: ../src/guestfs-actions.pod:7954
35587 " guestfs_umount (guestfs_h *g,\n"
35588 " const char *pathordevice);\n"
35593 #: ../src/guestfs-actions.pod:7966
35594 msgid "guestfs_umount_all"
35598 #: ../src/guestfs-actions.pod:7968
35602 " guestfs_umount_all (guestfs_h *g);\n"
35607 #: ../src/guestfs-actions.pod:7979
35608 msgid "guestfs_upload"
35612 #: ../src/guestfs-actions.pod:7981
35616 " guestfs_upload (guestfs_h *g,\n"
35617 " const char *filename,\n"
35618 " const char *remotefilename);\n"
35623 #: ../src/guestfs-actions.pod:7991
35624 msgid "See also C<guestfs_download>."
35628 #: ../src/guestfs-actions.pod:8002
35629 msgid "guestfs_upload_offset"
35633 #: ../src/guestfs-actions.pod:8004
35637 " guestfs_upload_offset (guestfs_h *g,\n"
35638 " const char *filename,\n"
35639 " const char *remotefilename,\n"
35640 " int64_t offset);\n"
35645 #: ../src/guestfs-actions.pod:8020
35647 "Note that there is no limit on the amount of data that can be uploaded with "
35648 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
35649 "full amount unless an error occurs."
35653 #: ../src/guestfs-actions.pod:8025
35654 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
35658 #: ../src/guestfs-actions.pod:8036
35659 msgid "guestfs_utimens"
35663 #: ../src/guestfs-actions.pod:8038
35667 " guestfs_utimens (guestfs_h *g,\n"
35668 " const char *path,\n"
35669 " int64_t atsecs,\n"
35670 " int64_t atnsecs,\n"
35671 " int64_t mtsecs,\n"
35672 " int64_t mtnsecs);\n"
35677 #: ../src/guestfs-actions.pod:8067 ../src/guestfs-structs.pod:175
35678 msgid "guestfs_version"
35682 #: ../src/guestfs-actions.pod:8069
35685 " struct guestfs_version *\n"
35686 " guestfs_version (guestfs_h *g);\n"
35691 #: ../src/guestfs-actions.pod:8097
35693 "I<Note:> Don't use this call to test for availability of features. In "
35694 "enterprise distributions we backport features from later versions into "
35695 "earlier versions, making this an unreliable way to test for features. Use "
35696 "C<guestfs_available> instead."
35700 #: ../src/guestfs-actions.pod:8103
35702 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
35703 "error. I<The caller must call C<guestfs_free_version> after use>."
35707 #: ../src/guestfs-actions.pod:8107
35708 msgid "(Added in 1.0.58)"
35709 msgstr "(Додано у 1.0.58)"
35712 #: ../src/guestfs-actions.pod:8109
35713 msgid "guestfs_vfs_label"
35717 #: ../src/guestfs-actions.pod:8111
35721 " guestfs_vfs_label (guestfs_h *g,\n"
35722 " const char *device);\n"
35727 #: ../src/guestfs-actions.pod:8120
35728 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
35732 #: ../src/guestfs-actions.pod:8125 ../src/guestfs-actions.pod:8162
35733 msgid "(Added in 1.3.18)"
35734 msgstr "(Додано у 1.3.18)"
35737 #: ../src/guestfs-actions.pod:8127
35738 msgid "guestfs_vfs_type"
35742 #: ../src/guestfs-actions.pod:8129
35746 " guestfs_vfs_type (guestfs_h *g,\n"
35747 " const char *device);\n"
35752 #: ../src/guestfs-actions.pod:8146
35753 msgid "guestfs_vfs_uuid"
35757 #: ../src/guestfs-actions.pod:8148
35761 " guestfs_vfs_uuid (guestfs_h *g,\n"
35762 " const char *device);\n"
35767 #: ../src/guestfs-actions.pod:8157
35768 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
35772 #: ../src/guestfs-actions.pod:8164
35773 msgid "guestfs_vg_activate"
35777 #: ../src/guestfs-actions.pod:8166
35781 " guestfs_vg_activate (guestfs_h *g,\n"
35783 " char *const *volgroups);\n"
35788 #: ../src/guestfs-actions.pod:8183
35789 msgid "guestfs_vg_activate_all"
35793 #: ../src/guestfs-actions.pod:8185
35797 " guestfs_vg_activate_all (guestfs_h *g,\n"
35798 " int activate);\n"
35803 #: ../src/guestfs-actions.pod:8198
35804 msgid "guestfs_vgcreate"
35808 #: ../src/guestfs-actions.pod:8200
35812 " guestfs_vgcreate (guestfs_h *g,\n"
35813 " const char *volgroup,\n"
35814 " char *const *physvols);\n"
35819 #: ../src/guestfs-actions.pod:8212
35820 msgid "guestfs_vglvuuids"
35824 #: ../src/guestfs-actions.pod:8214
35828 " guestfs_vglvuuids (guestfs_h *g,\n"
35829 " const char *vgname);\n"
35834 #: ../src/guestfs-actions.pod:8221
35836 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
35837 "associate logical volumes and volume groups."
35841 #: ../src/guestfs-actions.pod:8224
35842 msgid "See also C<guestfs_vgpvuuids>."
35846 #: ../src/guestfs-actions.pod:8232
35847 msgid "guestfs_vgpvuuids"
35851 #: ../src/guestfs-actions.pod:8234
35855 " guestfs_vgpvuuids (guestfs_h *g,\n"
35856 " const char *vgname);\n"
35861 #: ../src/guestfs-actions.pod:8241
35863 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
35864 "associate physical volumes and volume groups."
35868 #: ../src/guestfs-actions.pod:8244
35869 msgid "See also C<guestfs_vglvuuids>."
35873 #: ../src/guestfs-actions.pod:8252
35874 msgid "guestfs_vgremove"
35878 #: ../src/guestfs-actions.pod:8254
35882 " guestfs_vgremove (guestfs_h *g,\n"
35883 " const char *vgname);\n"
35888 #: ../src/guestfs-actions.pod:8267
35889 msgid "guestfs_vgrename"
35893 #: ../src/guestfs-actions.pod:8269
35897 " guestfs_vgrename (guestfs_h *g,\n"
35898 " const char *volgroup,\n"
35899 " const char *newvolgroup);\n"
35904 #: ../src/guestfs-actions.pod:8280
35905 msgid "guestfs_vgs"
35909 #: ../src/guestfs-actions.pod:8282
35913 " guestfs_vgs (guestfs_h *g);\n"
35918 #: ../src/guestfs-actions.pod:8291
35919 msgid "See also C<guestfs_vgs_full>."
35923 #: ../src/guestfs-actions.pod:8299
35924 msgid "guestfs_vgs_full"
35928 #: ../src/guestfs-actions.pod:8301
35931 " struct guestfs_lvm_vg_list *\n"
35932 " guestfs_vgs_full (guestfs_h *g);\n"
35937 #: ../src/guestfs-actions.pod:8307
35939 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
35940 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
35944 #: ../src/guestfs-actions.pod:8313
35945 msgid "guestfs_vgscan"
35949 #: ../src/guestfs-actions.pod:8315
35953 " guestfs_vgscan (guestfs_h *g);\n"
35958 #: ../src/guestfs-actions.pod:8325
35959 msgid "guestfs_vguuid"
35963 #: ../src/guestfs-actions.pod:8327
35967 " guestfs_vguuid (guestfs_h *g,\n"
35968 " const char *vgname);\n"
35973 #: ../src/guestfs-actions.pod:8338
35974 msgid "guestfs_wait_ready"
35978 #: ../src/guestfs-actions.pod:8340
35982 " guestfs_wait_ready (guestfs_h *g);\n"
35987 #: ../src/guestfs-actions.pod:8343
35989 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
35994 #: ../src/guestfs-actions.pod:8350
35995 msgid "This function is a no op."
35999 #: ../src/guestfs-actions.pod:8352
36001 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
36002 "calling C<guestfs_launch> to wait for the launch to complete. However this "
36003 "is no longer necessary because C<guestfs_launch> now does the waiting."
36007 #: ../src/guestfs-actions.pod:8357
36009 "If you see any calls to this function in code then you can just remove them, "
36010 "unless you want to retain compatibility with older versions of the API."
36014 #: ../src/guestfs-actions.pod:8365
36015 msgid "guestfs_wc_c"
36019 #: ../src/guestfs-actions.pod:8367
36023 " guestfs_wc_c (guestfs_h *g,\n"
36024 " const char *path);\n"
36029 #: ../src/guestfs-actions.pod:8378
36030 msgid "guestfs_wc_l"
36034 #: ../src/guestfs-actions.pod:8380
36038 " guestfs_wc_l (guestfs_h *g,\n"
36039 " const char *path);\n"
36044 #: ../src/guestfs-actions.pod:8391
36045 msgid "guestfs_wc_w"
36049 #: ../src/guestfs-actions.pod:8393
36053 " guestfs_wc_w (guestfs_h *g,\n"
36054 " const char *path);\n"
36059 #: ../src/guestfs-actions.pod:8404
36060 msgid "guestfs_write"
36064 #: ../src/guestfs-actions.pod:8406
36068 " guestfs_write (guestfs_h *g,\n"
36069 " const char *path,\n"
36070 " const char *content,\n"
36071 " size_t content_size);\n"
36076 #: ../src/guestfs-actions.pod:8415
36077 msgid "See also C<guestfs_write_append>."
36081 #: ../src/guestfs-actions.pod:8424
36082 msgid "guestfs_write_append"
36086 #: ../src/guestfs-actions.pod:8426
36090 " guestfs_write_append (guestfs_h *g,\n"
36091 " const char *path,\n"
36092 " const char *content,\n"
36093 " size_t content_size);\n"
36098 #: ../src/guestfs-actions.pod:8435
36099 msgid "See also C<guestfs_write>."
36103 #: ../src/guestfs-actions.pod:8444
36104 msgid "guestfs_write_file"
36105 msgstr "guestfs_write_file"
36108 #: ../src/guestfs-actions.pod:8446
36112 " guestfs_write_file (guestfs_h *g,\n"
36113 " const char *path,\n"
36114 " const char *content,\n"
36119 " guestfs_write_file (guestfs_h *g,\n"
36120 " const char *path,\n"
36121 " const char *content,\n"
36126 #: ../src/guestfs-actions.pod:8452
36128 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
36133 #: ../src/guestfs-actions.pod:8477
36134 msgid "guestfs_zegrep"
36135 msgstr "guestfs_zegrep"
36138 #: ../src/guestfs-actions.pod:8479
36142 " guestfs_zegrep (guestfs_h *g,\n"
36143 " const char *regex,\n"
36144 " const char *path);\n"
36148 " guestfs_zegrep (guestfs_h *g,\n"
36149 " const char *regex,\n"
36150 " const char *path);\n"
36154 #: ../src/guestfs-actions.pod:8496
36155 msgid "guestfs_zegrepi"
36156 msgstr "guestfs_zegrepi"
36159 #: ../src/guestfs-actions.pod:8498
36163 " guestfs_zegrepi (guestfs_h *g,\n"
36164 " const char *regex,\n"
36165 " const char *path);\n"
36169 " guestfs_zegrepi (guestfs_h *g,\n"
36170 " const char *regex,\n"
36171 " const char *path);\n"
36175 #: ../src/guestfs-actions.pod:8515
36176 msgid "guestfs_zero"
36177 msgstr "guestfs_zero"
36180 #: ../src/guestfs-actions.pod:8517
36184 " guestfs_zero (guestfs_h *g,\n"
36185 " const char *device);\n"
36189 " guestfs_zero (guestfs_h *g,\n"
36190 " const char *device);\n"
36194 #: ../src/guestfs-actions.pod:8531
36196 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
36197 "C<guestfs_is_zero_device>"
36201 #: ../src/guestfs-actions.pod:8543
36202 msgid "guestfs_zero_device"
36203 msgstr "guestfs_zero_device"
36206 #: ../src/guestfs-actions.pod:8545
36210 " guestfs_zero_device (guestfs_h *g,\n"
36211 " const char *device);\n"
36215 " guestfs_zero_device (guestfs_h *g,\n"
36216 " const char *device);\n"
36220 #: ../src/guestfs-actions.pod:8549
36222 "This command writes zeroes over the entire C<device>. Compare with "
36223 "C<guestfs_zero> which just zeroes the first few blocks of a device."
36227 #: ../src/guestfs-actions.pod:8564
36228 msgid "(Added in 1.3.1)"
36229 msgstr "(Додано у 1.3.1)"
36232 #: ../src/guestfs-actions.pod:8566
36233 msgid "guestfs_zerofree"
36234 msgstr "guestfs_zerofree"
36237 #: ../src/guestfs-actions.pod:8568
36241 " guestfs_zerofree (guestfs_h *g,\n"
36242 " const char *device);\n"
36246 " guestfs_zerofree (guestfs_h *g,\n"
36247 " const char *device);\n"
36251 #: ../src/guestfs-actions.pod:8587
36252 msgid "guestfs_zfgrep"
36253 msgstr "guestfs_zfgrep"
36256 #: ../src/guestfs-actions.pod:8589
36260 " guestfs_zfgrep (guestfs_h *g,\n"
36261 " const char *pattern,\n"
36262 " const char *path);\n"
36266 " guestfs_zfgrep (guestfs_h *g,\n"
36267 " const char *pattern,\n"
36268 " const char *path);\n"
36272 #: ../src/guestfs-actions.pod:8606
36273 msgid "guestfs_zfgrepi"
36274 msgstr "guestfs_zfgrepi"
36277 #: ../src/guestfs-actions.pod:8608
36281 " guestfs_zfgrepi (guestfs_h *g,\n"
36282 " const char *pattern,\n"
36283 " const char *path);\n"
36287 " guestfs_zfgrepi (guestfs_h *g,\n"
36288 " const char *pattern,\n"
36289 " const char *path);\n"
36293 #: ../src/guestfs-actions.pod:8625
36294 msgid "guestfs_zfile"
36295 msgstr "guestfs_zfile"
36298 #: ../src/guestfs-actions.pod:8627
36302 " guestfs_zfile (guestfs_h *g,\n"
36303 " const char *meth,\n"
36304 " const char *path);\n"
36308 " guestfs_zfile (guestfs_h *g,\n"
36309 " const char *meth,\n"
36310 " const char *path);\n"
36314 #: ../src/guestfs-actions.pod:8632
36316 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
36321 #: ../src/guestfs-actions.pod:8644
36323 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
36328 #: ../src/guestfs-actions.pod:8652
36329 msgid "guestfs_zgrep"
36330 msgstr "guestfs_zgrep"
36333 #: ../src/guestfs-actions.pod:8654
36337 " guestfs_zgrep (guestfs_h *g,\n"
36338 " const char *regex,\n"
36339 " const char *path);\n"
36343 " guestfs_zgrep (guestfs_h *g,\n"
36344 " const char *regex,\n"
36345 " const char *path);\n"
36349 #: ../src/guestfs-actions.pod:8671
36350 msgid "guestfs_zgrepi"
36351 msgstr "guestfs_zgrepi"
36354 #: ../src/guestfs-actions.pod:8673
36358 " guestfs_zgrepi (guestfs_h *g,\n"
36359 " const char *regex,\n"
36360 " const char *path);\n"
36364 " guestfs_zgrepi (guestfs_h *g,\n"
36365 " const char *regex,\n"
36366 " const char *path);\n"
36370 #: ../src/guestfs-availability.pod:3
36375 #: ../src/guestfs-availability.pod:5
36377 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
36378 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
36379 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
36380 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
36381 "L</guestfs_aug_save> L</guestfs_aug_set>"
36385 #: ../src/guestfs-availability.pod:21
36390 #: ../src/guestfs-availability.pod:23
36391 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
36395 #: ../src/guestfs-availability.pod:26
36400 #: ../src/guestfs-availability.pod:28
36401 msgid "The following functions: L</guestfs_grub_install>"
36405 #: ../src/guestfs-availability.pod:31
36407 msgstr "B<inotify>"
36410 #: ../src/guestfs-availability.pod:33
36412 "The following functions: L</guestfs_inotify_add_watch> L</"
36413 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
36414 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
36418 #: ../src/guestfs-availability.pod:41
36419 msgid "B<linuxfsuuid>"
36420 msgstr "B<linuxfsuuid>"
36423 #: ../src/guestfs-availability.pod:43
36425 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
36426 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
36430 #: ../src/guestfs-availability.pod:50
36431 msgid "B<linuxmodules>"
36432 msgstr "B<linuxmodules>"
36435 #: ../src/guestfs-availability.pod:52
36436 msgid "The following functions: L</guestfs_modprobe>"
36440 #: ../src/guestfs-availability.pod:55
36441 msgid "B<linuxxattrs>"
36442 msgstr "B<linuxxattrs>"
36445 #: ../src/guestfs-availability.pod:57
36447 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
36448 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
36449 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
36450 "guestfs_setxattr>"
36454 #: ../src/guestfs-availability.pod:68
36459 #: ../src/guestfs-availability.pod:70
36461 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
36462 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
36463 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
36467 #: ../src/guestfs-availability.pod:79
36472 #: ../src/guestfs-availability.pod:81
36474 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
36475 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
36476 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
36477 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
36478 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
36479 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
36480 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
36484 #: ../src/guestfs-availability.pod:104
36489 #: ../src/guestfs-availability.pod:106
36491 "The following functions: L</guestfs_md_create> L</guestfs_md_detail> L</"
36496 #: ../src/guestfs-availability.pod:111
36501 #: ../src/guestfs-availability.pod:113
36503 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
36504 "guestfs_mknod_b> L</guestfs_mknod_c>"
36508 #: ../src/guestfs-availability.pod:119
36513 #: ../src/guestfs-availability.pod:121
36514 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
36518 #: ../src/guestfs-availability.pod:124
36519 msgid "B<ntfsprogs>"
36520 msgstr "B<ntfsprogs>"
36523 #: ../src/guestfs-availability.pod:126
36525 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
36526 "L</guestfs_ntfsresize_size>"
36530 #: ../src/guestfs-availability.pod:131
36531 msgid "B<realpath>"
36532 msgstr "B<realpath>"
36535 #: ../src/guestfs-availability.pod:133
36536 msgid "The following functions: L</guestfs_realpath>"
36540 #: ../src/guestfs-availability.pod:136
36545 #: ../src/guestfs-availability.pod:138
36547 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
36548 "guestfs_scrub_freespace>"
36552 #: ../src/guestfs-availability.pod:143
36554 msgstr "B<selinux>"
36557 #: ../src/guestfs-availability.pod:145
36558 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
36562 #: ../src/guestfs-availability.pod:149
36567 #: ../src/guestfs-availability.pod:151
36568 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
36572 #: ../src/guestfs-availability.pod:155
36573 msgid "B<zerofree>"
36574 msgstr "B<zerofree>"
36577 #: ../src/guestfs-availability.pod:157
36578 msgid "The following functions: L</guestfs_zerofree>"
36582 #: ../src/guestfs-structs.pod:1
36583 msgid "guestfs_int_bool"
36587 #: ../src/guestfs-structs.pod:3
36590 " struct guestfs_int_bool {\n"
36598 #: ../src/guestfs-structs.pod:8
36601 " struct guestfs_int_bool_list {\n"
36602 " uint32_t len; /* Number of elements in list. */\n"
36603 " struct guestfs_int_bool *val; /* Elements. */\n"
36609 #: ../src/guestfs-structs.pod:13
36612 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
36613 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
36618 #: ../src/guestfs-structs.pod:16
36619 msgid "guestfs_lvm_pv"
36623 #: ../src/guestfs-structs.pod:18
36626 " struct guestfs_lvm_pv {\n"
36627 " char *pv_name;\n"
36628 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
36629 " char pv_uuid[32];\n"
36631 " uint64_t pv_size;\n"
36632 " uint64_t dev_size;\n"
36633 " uint64_t pv_free;\n"
36634 " uint64_t pv_used;\n"
36635 " char *pv_attr;\n"
36636 " int64_t pv_pe_count;\n"
36637 " int64_t pv_pe_alloc_count;\n"
36638 " char *pv_tags;\n"
36639 " uint64_t pe_start;\n"
36640 " int64_t pv_mda_count;\n"
36641 " uint64_t pv_mda_free;\n"
36647 #: ../src/guestfs-structs.pod:36
36650 " struct guestfs_lvm_pv_list {\n"
36651 " uint32_t len; /* Number of elements in list. */\n"
36652 " struct guestfs_lvm_pv *val; /* Elements. */\n"
36658 #: ../src/guestfs-structs.pod:41
36661 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
36662 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
36667 #: ../src/guestfs-structs.pod:44
36668 msgid "guestfs_lvm_vg"
36672 #: ../src/guestfs-structs.pod:46
36675 " struct guestfs_lvm_vg {\n"
36676 " char *vg_name;\n"
36677 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
36678 " char vg_uuid[32];\n"
36680 " char *vg_attr;\n"
36681 " uint64_t vg_size;\n"
36682 " uint64_t vg_free;\n"
36683 " char *vg_sysid;\n"
36684 " uint64_t vg_extent_size;\n"
36685 " int64_t vg_extent_count;\n"
36686 " int64_t vg_free_count;\n"
36687 " int64_t max_lv;\n"
36688 " int64_t max_pv;\n"
36689 " int64_t pv_count;\n"
36690 " int64_t lv_count;\n"
36691 " int64_t snap_count;\n"
36692 " int64_t vg_seqno;\n"
36693 " char *vg_tags;\n"
36694 " int64_t vg_mda_count;\n"
36695 " uint64_t vg_mda_free;\n"
36701 #: ../src/guestfs-structs.pod:69
36704 " struct guestfs_lvm_vg_list {\n"
36705 " uint32_t len; /* Number of elements in list. */\n"
36706 " struct guestfs_lvm_vg *val; /* Elements. */\n"
36712 #: ../src/guestfs-structs.pod:74
36715 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
36716 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
36721 #: ../src/guestfs-structs.pod:77
36722 msgid "guestfs_lvm_lv"
36726 #: ../src/guestfs-structs.pod:79
36729 " struct guestfs_lvm_lv {\n"
36730 " char *lv_name;\n"
36731 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
36732 " char lv_uuid[32];\n"
36733 " char *lv_attr;\n"
36734 " int64_t lv_major;\n"
36735 " int64_t lv_minor;\n"
36736 " int64_t lv_kernel_major;\n"
36737 " int64_t lv_kernel_minor;\n"
36738 " uint64_t lv_size;\n"
36739 " int64_t seg_count;\n"
36741 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
36742 " float snap_percent;\n"
36743 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
36744 " float copy_percent;\n"
36745 " char *move_pv;\n"
36746 " char *lv_tags;\n"
36747 " char *mirror_log;\n"
36748 " char *modules;\n"
36754 #: ../src/guestfs-structs.pod:101
36757 " struct guestfs_lvm_lv_list {\n"
36758 " uint32_t len; /* Number of elements in list. */\n"
36759 " struct guestfs_lvm_lv *val; /* Elements. */\n"
36765 #: ../src/guestfs-structs.pod:106
36768 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
36769 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
36774 #: ../src/guestfs-structs.pod:111
36777 " struct guestfs_stat {\n"
36781 " int64_t nlink;\n"
36786 " int64_t blksize;\n"
36787 " int64_t blocks;\n"
36788 " int64_t atime;\n"
36789 " int64_t mtime;\n"
36790 " int64_t ctime;\n"
36796 #: ../src/guestfs-structs.pod:127
36799 " struct guestfs_stat_list {\n"
36800 " uint32_t len; /* Number of elements in list. */\n"
36801 " struct guestfs_stat *val; /* Elements. */\n"
36807 #: ../src/guestfs-structs.pod:132
36810 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
36811 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
36816 #: ../src/guestfs-structs.pod:137
36819 " struct guestfs_statvfs {\n"
36820 " int64_t bsize;\n"
36821 " int64_t frsize;\n"
36822 " int64_t blocks;\n"
36823 " int64_t bfree;\n"
36824 " int64_t bavail;\n"
36825 " int64_t files;\n"
36826 " int64_t ffree;\n"
36827 " int64_t favail;\n"
36830 " int64_t namemax;\n"
36836 #: ../src/guestfs-structs.pod:151
36839 " struct guestfs_statvfs_list {\n"
36840 " uint32_t len; /* Number of elements in list. */\n"
36841 " struct guestfs_statvfs *val; /* Elements. */\n"
36847 #: ../src/guestfs-structs.pod:156
36850 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
36851 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
36856 #: ../src/guestfs-structs.pod:159
36857 msgid "guestfs_dirent"
36861 #: ../src/guestfs-structs.pod:161
36864 " struct guestfs_dirent {\n"
36873 #: ../src/guestfs-structs.pod:167
36876 " struct guestfs_dirent_list {\n"
36877 " uint32_t len; /* Number of elements in list. */\n"
36878 " struct guestfs_dirent *val; /* Elements. */\n"
36884 #: ../src/guestfs-structs.pod:172
36887 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
36888 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
36893 #: ../src/guestfs-structs.pod:177
36896 " struct guestfs_version {\n"
36897 " int64_t major;\n"
36898 " int64_t minor;\n"
36899 " int64_t release;\n"
36906 #: ../src/guestfs-structs.pod:184
36909 " struct guestfs_version_list {\n"
36910 " uint32_t len; /* Number of elements in list. */\n"
36911 " struct guestfs_version *val; /* Elements. */\n"
36917 #: ../src/guestfs-structs.pod:189
36920 " void guestfs_free_version (struct guestfs_free_version *);\n"
36921 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
36926 #: ../src/guestfs-structs.pod:192
36927 msgid "guestfs_xattr"
36931 #: ../src/guestfs-structs.pod:194
36934 " struct guestfs_xattr {\n"
36935 " char *attrname;\n"
36936 " /* The next two fields describe a byte array. */\n"
36937 " uint32_t attrval_len;\n"
36938 " char *attrval;\n"
36944 #: ../src/guestfs-structs.pod:201
36947 " struct guestfs_xattr_list {\n"
36948 " uint32_t len; /* Number of elements in list. */\n"
36949 " struct guestfs_xattr *val; /* Elements. */\n"
36955 #: ../src/guestfs-structs.pod:206
36958 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
36959 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
36964 #: ../src/guestfs-structs.pod:209
36965 msgid "guestfs_inotify_event"
36969 #: ../src/guestfs-structs.pod:211
36972 " struct guestfs_inotify_event {\n"
36973 " int64_t in_wd;\n"
36974 " uint32_t in_mask;\n"
36975 " uint32_t in_cookie;\n"
36976 " char *in_name;\n"
36982 #: ../src/guestfs-structs.pod:218
36985 " struct guestfs_inotify_event_list {\n"
36986 " uint32_t len; /* Number of elements in list. */\n"
36987 " struct guestfs_inotify_event *val; /* Elements. */\n"
36993 #: ../src/guestfs-structs.pod:223
36996 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
36997 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
37002 #: ../src/guestfs-structs.pod:226
37003 msgid "guestfs_partition"
37007 #: ../src/guestfs-structs.pod:228
37010 " struct guestfs_partition {\n"
37011 " int32_t part_num;\n"
37012 " uint64_t part_start;\n"
37013 " uint64_t part_end;\n"
37014 " uint64_t part_size;\n"
37020 #: ../src/guestfs-structs.pod:235
37023 " struct guestfs_partition_list {\n"
37024 " uint32_t len; /* Number of elements in list. */\n"
37025 " struct guestfs_partition *val; /* Elements. */\n"
37031 #: ../src/guestfs-structs.pod:240
37034 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
37035 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
37040 #: ../src/guestfs-structs.pod:243
37041 msgid "guestfs_application"
37045 #: ../src/guestfs-structs.pod:245
37048 " struct guestfs_application {\n"
37049 " char *app_name;\n"
37050 " char *app_display_name;\n"
37051 " int32_t app_epoch;\n"
37052 " char *app_version;\n"
37053 " char *app_release;\n"
37054 " char *app_install_path;\n"
37055 " char *app_trans_path;\n"
37056 " char *app_publisher;\n"
37057 " char *app_url;\n"
37058 " char *app_source_package;\n"
37059 " char *app_summary;\n"
37060 " char *app_description;\n"
37066 #: ../src/guestfs-structs.pod:260
37069 " struct guestfs_application_list {\n"
37070 " uint32_t len; /* Number of elements in list. */\n"
37071 " struct guestfs_application *val; /* Elements. */\n"
37077 #: ../src/guestfs-structs.pod:265
37080 " void guestfs_free_application (struct guestfs_free_application *);\n"
37081 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
37086 #: ../src/guestfs.pod:5
37087 msgid "guestfs - Library for accessing and modifying virtual machine images"
37089 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
37093 #: ../src/guestfs.pod:11
37096 " guestfs_h *g = guestfs_create ();\n"
37097 " guestfs_add_drive (g, \"guest.img\");\n"
37098 " guestfs_launch (g);\n"
37099 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37100 " guestfs_touch (g, \"/hello\");\n"
37101 " guestfs_umount (g, \"/\");\n"
37102 " guestfs_close (g);\n"
37105 " guestfs_h *g = guestfs_create ();\n"
37106 " guestfs_add_drive (g, \"guest.img\");\n"
37107 " guestfs_launch (g);\n"
37108 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37109 " guestfs_touch (g, \"/hello\");\n"
37110 " guestfs_umount (g, \"/\");\n"
37111 " guestfs_close (g);\n"
37115 #: ../src/guestfs.pod:25
37117 "Libguestfs is a library for accessing and modifying guest disk images. "
37118 "Amongst the things this is good for: making batch configuration changes to "
37119 "guests, getting disk used/free statistics (see also: virt-df), migrating "
37120 "between virtualization systems (see also: virt-p2v), performing partial "
37121 "backups, performing partial guest clones, cloning guests and changing "
37122 "registry/UUID/hostname info, and much else besides."
37126 #: ../src/guestfs.pod:33
37128 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
37129 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
37130 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
37135 #: ../src/guestfs.pod:38
37137 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
37138 "what filesystem is in each LV, etc.). It can also run commands in the "
37139 "context of the guest. Also you can access filesystems over FUSE."
37143 #: ../src/guestfs.pod:43
37145 "Libguestfs is a library that can be linked with C and C++ management "
37146 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
37147 "PHP, Erlang, Haskell or C#). You can also use it from shell scripts or the "
37152 #: ../src/guestfs.pod:48
37154 "You don't need to be root to use libguestfs, although obviously you do need "
37155 "enough permissions to access the disk images."
37159 #: ../src/guestfs.pod:51
37161 "Libguestfs is a large API because it can do many things. For a gentle "
37162 "introduction, please read the L</API OVERVIEW> section next."
37166 #: ../src/guestfs.pod:54
37168 "There are also some example programs in the L<guestfs-examples(3)> manual "
37173 #: ../src/guestfs.pod:57
37174 msgid "API OVERVIEW"
37178 #: ../src/guestfs.pod:59
37180 "This section provides a gentler overview of the libguestfs API. We also try "
37181 "to group API calls together, where that may not be obvious from reading "
37182 "about the individual calls in the main section of this manual."
37186 #: ../src/guestfs.pod:64
37191 #: ../src/guestfs.pod:66
37193 "Before you can use libguestfs calls, you have to create a handle. Then you "
37194 "must add at least one disk image to the handle, followed by launching the "
37195 "handle, then performing whatever operations you want, and finally closing "
37196 "the handle. By convention we use the single letter C<g> for the name of the "
37197 "handle variable, although of course you can use any name you want."
37201 #: ../src/guestfs.pod:73
37202 msgid "The general structure of all libguestfs-using programs looks like this:"
37206 #: ../src/guestfs.pod:76
37209 " guestfs_h *g = guestfs_create ();\n"
37212 " guestfs_h *g = guestfs_create ();\n"
37216 #: ../src/guestfs.pod:78
37219 " /* Call guestfs_add_drive additional times if there are\n"
37220 " * multiple disk images.\n"
37222 " guestfs_add_drive (g, \"guest.img\");\n"
37227 #: ../src/guestfs.pod:83
37230 " /* Most manipulation calls won't work until you've launched\n"
37231 " * the handle 'g'. You have to do this _after_ adding drives\n"
37232 " * and _before_ other commands.\n"
37234 " guestfs_launch (g);\n"
37239 #: ../src/guestfs.pod:89
37242 " /* Now you can examine what partitions, LVs etc are available.\n"
37244 " char **partitions = guestfs_list_partitions (g);\n"
37245 " char **logvols = guestfs_lvs (g);\n"
37248 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
37250 " char **partitions = guestfs_list_partitions (g);\n"
37251 " char **logvols = guestfs_lvs (g);\n"
37255 #: ../src/guestfs.pod:94
37258 " /* To access a filesystem in the image, you must mount it.\n"
37260 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37263 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
37265 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37269 #: ../src/guestfs.pod:98
37272 " /* Now you can perform filesystem actions on the guest\n"
37275 " guestfs_touch (g, \"/hello\");\n"
37278 " /* Тепер ви можете виконувати дії з файловою системою на\n"
37279 " * образі диска операційної системи.\n"
37281 " guestfs_touch (g, \"/hello\");\n"
37285 #: ../src/guestfs.pod:103
37288 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
37289 " * it is done automatically when you close the handle. See\n"
37290 " * discussion of autosync in this page.\n"
37292 " guestfs_sync (g);\n"
37297 #: ../src/guestfs.pod:109
37300 " /* Close the handle 'g'. */\n"
37301 " guestfs_close (g);\n"
37304 " /* Закрити дескриптор 'g'. */\n"
37305 " guestfs_close (g);\n"
37309 #: ../src/guestfs.pod:112
37311 "The code above doesn't include any error checking. In real code you should "
37312 "check return values carefully for errors. In general all functions that "
37313 "return integers return C<-1> on error, and all functions that return "
37314 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
37315 "how to handle errors, and consult the documentation for each function call "
37316 "below to see precisely how they return error indications. See L<guestfs-"
37317 "examples(3)> for fully worked examples."
37321 #: ../src/guestfs.pod:121
37322 msgid "DISK IMAGES"
37323 msgstr "ОБРАЗИ ДИСКІВ"
37326 #: ../src/guestfs.pod:123
37328 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
37329 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
37330 "actual block device, or simply an empty file of zeroes that you have created "
37331 "through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
37336 #: ../src/guestfs.pod:129
37338 "The call you should use in modern code for adding drives is L</"
37339 "guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
37340 "specifying that the format is raw, do:"
37344 #: ../src/guestfs.pod:133
37347 " guestfs_add_drive_opts (g, filename,\n"
37348 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37352 " guestfs_add_drive_opts (g, filename,\n"
37353 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37358 #: ../src/guestfs.pod:137
37359 msgid "You can add a disk read-only using:"
37360 msgstr "Ви можете додати диск у режимі лише читання:"
37363 #: ../src/guestfs.pod:139
37366 " guestfs_add_drive_opts (g, filename,\n"
37367 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37368 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37372 " guestfs_add_drive_opts (g, filename,\n"
37373 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37374 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37379 #: ../src/guestfs.pod:144
37381 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
37382 "libguestfs won't modify the file."
37386 #: ../src/guestfs.pod:147
37388 "Be extremely cautious if the disk image is in use, eg. if it is being used "
37389 "by a virtual machine. Adding it read-write will almost certainly cause disk "
37390 "corruption, but adding it read-only is safe."
37394 #: ../src/guestfs.pod:151
37396 "You must add at least one disk image, and you may add multiple disk images. "
37397 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
37398 "first one you added), C</dev/sdb> (for the second one you added), etc."
37402 #: ../src/guestfs.pod:156
37404 "Once L</guestfs_launch> has been called you cannot add any more images. You "
37405 "can call L</guestfs_list_devices> to get a list of the device names, in the "
37406 "order that you added them. See also L</BLOCK DEVICE NAMING> below."
37410 #: ../src/guestfs.pod:161
37412 msgstr "МОНТУВАННЯ"
37415 #: ../src/guestfs.pod:163
37417 "Before you can read or write files, create directories and so on in a disk "
37418 "image that contains filesystems, you have to mount those filesystems using "
37419 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that "
37420 "a disk image contains (for example) one partition with a filesystem on that "
37421 "partition, then you can mount it directly:"
37425 #: ../src/guestfs.pod:170
37428 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
37431 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
37435 #: ../src/guestfs.pod:172
37437 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
37438 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
37439 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
37440 "that these are libguestfs virtual devices, and are nothing to do with host "
37445 #: ../src/guestfs.pod:178
37447 "If you are given a disk image and you don't know what it contains then you "
37448 "have to find out. Libguestfs can do that too: use L</"
37449 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
37450 "LVs, and either try mounting each to see what is mountable, or else examine "
37451 "them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
37452 "filesystems, use L</guestfs_list_filesystems>."
37456 #: ../src/guestfs.pod:186
37458 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
37459 "L</INSPECTION> below). But you might find it easier to look at higher level "
37460 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
37464 #: ../src/guestfs.pod:191
37466 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
37467 "several other variations of the C<guestfs_mount_*> call."
37471 #: ../src/guestfs.pod:194
37472 msgid "FILESYSTEM ACCESS AND MODIFICATION"
37473 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
37476 #: ../src/guestfs.pod:196
37478 "The majority of the libguestfs API consists of fairly low-level calls for "
37479 "accessing and modifying the files, directories, symlinks etc on mounted "
37480 "filesystems. There are over a hundred such calls which you can find listed "
37481 "in detail below in this man page, and we don't even pretend to cover them "
37482 "all in this overview."
37486 #: ../src/guestfs.pod:202
37488 "Specify filenames as full paths, starting with C<\"/\"> and including the "
37491 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
37492 "точкою монтування."
37495 #: ../src/guestfs.pod:205
37497 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
37498 "the file called C<\"etc/passwd\"> then you could do:"
37500 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
37501 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
37505 #: ../src/guestfs.pod:208
37508 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
37511 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
37515 #: ../src/guestfs.pod:210
37517 "This would return C<data> as a newly allocated buffer containing the full "
37518 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
37519 "or C<NULL> if there was an error."
37523 #: ../src/guestfs.pod:214
37525 "As another example, to create a top-level directory on that filesystem "
37526 "called C<\"var\"> you would do:"
37530 #: ../src/guestfs.pod:217
37533 " guestfs_mkdir (g, \"/var\");\n"
37536 " guestfs_mkdir (g, \"/var\");\n"
37540 #: ../src/guestfs.pod:219
37541 msgid "To create a symlink you could do:"
37542 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
37545 #: ../src/guestfs.pod:221
37548 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
37549 " \"/etc/rc3.d/S30portmap\");\n"
37552 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
37553 " \"/etc/rc3.d/S30portmap\");\n"
37557 #: ../src/guestfs.pod:224
37559 "Libguestfs will reject attempts to use relative paths and there is no "
37560 "concept of a current working directory."
37564 #: ../src/guestfs.pod:227
37566 "Libguestfs can return errors in many situations: for example if the "
37567 "filesystem isn't writable, or if a file or directory that you requested "
37568 "doesn't exist. If you are using the C API (documented here) you have to "
37569 "check for those error conditions after each call. (Other language bindings "
37570 "turn these errors into exceptions)."
37574 #: ../src/guestfs.pod:233
37576 "File writes are affected by the per-handle umask, set by calling L</"
37577 "guestfs_umask> and defaulting to 022. See L</UMASK>."
37581 #: ../src/guestfs.pod:236
37582 msgid "PARTITIONING"
37583 msgstr "ПОДІЛ НА РОЗДІЛИ"
37586 #: ../src/guestfs.pod:238
37588 "Libguestfs contains API calls to read, create and modify partition tables on "
37593 #: ../src/guestfs.pod:241
37595 "In the common case where you want to create a single partition covering the "
37596 "whole disk, you should use the L</guestfs_part_disk> call:"
37600 #: ../src/guestfs.pod:245
37603 " const char *parttype = \"mbr\";\n"
37604 " if (disk_is_larger_than_2TB)\n"
37605 " parttype = \"gpt\";\n"
37606 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
37609 " const char *parttype = \"mbr\";\n"
37610 " if (disk_is_larger_than_2TB)\n"
37611 " parttype = \"gpt\";\n"
37612 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
37616 #: ../src/guestfs.pod:250
37618 "Obviously this effectively wipes anything that was on that disk image before."
37622 #: ../src/guestfs.pod:253
37627 #: ../src/guestfs.pod:255
37629 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
37630 "guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense unless "
37631 "you familiarize yourself with the concepts of physical volumes, volume "
37632 "groups and logical volumes."
37636 #: ../src/guestfs.pod:260
37638 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
37639 "tldp.org/HOWTO/LVM-HOWTO/>."
37643 #: ../src/guestfs.pod:263
37644 msgid "DOWNLOADING"
37645 msgstr "ОТРИМАННЯ ДАНИХ"
37648 #: ../src/guestfs.pod:265
37650 "Use L</guestfs_cat> to download small, text only files. This call is "
37651 "limited to files which are less than 2 MB and which cannot contain any ASCII "
37652 "NUL (C<\\0>) characters. However the API is very simple to use."
37656 #: ../src/guestfs.pod:269
37658 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
37659 "bit data, since it returns a (pointer, size) pair. However it is still "
37660 "limited to \"small\" files, less than 2 MB."
37664 #: ../src/guestfs.pod:273
37666 "L</guestfs_download> can be used to download any file, with no limits on "
37667 "content or size (even files larger than 4 GB)."
37671 #: ../src/guestfs.pod:276
37673 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
37677 #: ../src/guestfs.pod:279
37679 msgstr "ВИВАНТАЖЕННЯ"
37682 #: ../src/guestfs.pod:281
37684 "It's often the case that you want to write a file or files to the disk image."
37688 #: ../src/guestfs.pod:284
37690 "To write a small file with fixed content, use L</guestfs_write>. To create "
37691 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
37692 "guestfs_fallocate64> (with all disk blocks allocated). There are a variety "
37693 "of other functions for creating test files, for example L</guestfs_fill> and "
37694 "L</guestfs_fill_pattern>."
37698 #: ../src/guestfs.pod:290
37700 "To upload a single file, use L</guestfs_upload>. This call has no limits on "
37701 "file content or size (even files larger than 4 GB)."
37705 #: ../src/guestfs.pod:293
37707 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
37711 #: ../src/guestfs.pod:295
37713 "However the fastest way to upload I<large numbers of arbitrary files> is to "
37714 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
37715 ">), then attach this using L</guestfs_add_drive_ro>. If you add the drive "
37716 "in a predictable way (eg. adding it last after all other drives) then you "
37717 "can get the device name from L</guestfs_list_devices> and mount it directly "
37718 "using L</guestfs_mount_ro>. Note that squashfs images are sometimes non-"
37719 "portable between kernel versions, and they don't support labels or UUIDs. "
37720 "If you want to pre-build an image or you need to mount it using a label or "
37721 "UUID, use an ISO image instead."
37725 #: ../src/guestfs.pod:306
37727 msgstr "КОПІЮВАННЯ"
37730 #: ../src/guestfs.pod:308
37732 "There are various different commands for copying between files and devices "
37733 "and in and out of the guest filesystem. These are summarised in the table "
37738 #: ../src/guestfs.pod:314
37739 msgid "B<file> to B<file>"
37740 msgstr "B<файл> у B<файл>"
37743 #: ../src/guestfs.pod:316
37745 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
37746 "directories recursively."
37750 #: ../src/guestfs.pod:319
37752 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
37756 #: ../src/guestfs.pod:322
37757 msgid "B<file> to B<device>"
37761 #: ../src/guestfs.pod:324
37762 msgid "B<device> to B<file>"
37766 #: ../src/guestfs.pod:326
37767 msgid "B<device> to B<device>"
37771 #: ../src/guestfs.pod:328
37773 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
37774 "guestfs_copy_device_to_device>."
37778 #: ../src/guestfs.pod:331
37779 msgid "Example: duplicate the contents of an LV:"
37783 #: ../src/guestfs.pod:333
37786 " guestfs_copy_device_to_device (g,\n"
37787 " \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
37788 " /* -1 marks the end of the list of optional parameters */\n"
37794 #: ../src/guestfs.pod:338
37796 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
37797 "(C</dev/VG/Original>). To copy less than the whole source device, use the "
37798 "optional C<size> parameter:"
37802 #: ../src/guestfs.pod:342
37805 " guestfs_copy_device_to_device (g,\n"
37806 " \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
37807 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
37813 #: ../src/guestfs.pod:347
37814 msgid "B<file on the host> to B<file or device>"
37818 #: ../src/guestfs.pod:349
37819 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
37823 #: ../src/guestfs.pod:351
37824 msgid "B<file or device> to B<file on the host>"
37828 #: ../src/guestfs.pod:353
37829 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
37833 #: ../src/guestfs.pod:357
37834 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
37838 #: ../src/guestfs.pod:359
37840 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
37841 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
37842 "appears you can only upload and download to files. However many Un*x-like "
37843 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
37844 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
37845 "and arbitrary file descriptor N."
37849 #: ../src/guestfs.pod:367
37850 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
37854 #: ../src/guestfs.pod:370
37857 " guestfs_download (g, filename, \"/dev/stdout\");\n"
37860 " guestfs_download (g, filename, \"/dev/stdout\");\n"
37864 #: ../src/guestfs.pod:372
37865 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
37869 #: ../src/guestfs.pod:374
37872 " char devfd[64];\n"
37873 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
37874 " guestfs_tar_out (g, \"/\", devfd);\n"
37877 " char devfd[64];\n"
37878 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
37879 " guestfs_tar_out (g, \"/\", devfd);\n"
37883 #: ../src/guestfs.pod:378
37884 msgid "LISTING FILES"
37885 msgstr "СПИСКИ ФАЙЛІВ"
37888 #: ../src/guestfs.pod:380
37890 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
37891 "L<guestfish(1)>-equivalent command C<ll>)."
37895 #: ../src/guestfs.pod:383
37897 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
37898 "programs, as a flat list of strings."
37902 #: ../src/guestfs.pod:386
37904 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
37905 "directory, plus additional information about each one. It is more "
37906 "equivalent to using the L<readdir(3)> call on a local filesystem."
37910 #: ../src/guestfs.pod:390
37912 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
37916 #: ../src/guestfs.pod:393
37917 msgid "RUNNING COMMANDS"
37918 msgstr "ВИКОНАННЯ КОМАНД"
37921 #: ../src/guestfs.pod:395
37923 "Although libguestfs is primarily an API for manipulating files inside guest "
37924 "images, we also provide some limited facilities for running commands inside "
37929 #: ../src/guestfs.pod:399
37930 msgid "There are many limitations to this:"
37934 #: ../src/guestfs.pod:405
37936 "The kernel version that the command runs under will be different from what "
37941 #: ../src/guestfs.pod:410
37943 "If the command needs to communicate with daemons, then most likely they "
37944 "won't be running."
37948 #: ../src/guestfs.pod:415
37949 msgid "The command will be running in limited memory."
37953 #: ../src/guestfs.pod:419
37955 "The network may not be available unless you enable it (see L</"
37956 "guestfs_set_network>)."
37960 #: ../src/guestfs.pod:424
37961 msgid "Only supports Linux guests (not Windows, BSD, etc)."
37965 #: ../src/guestfs.pod:428
37967 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
37971 #: ../src/guestfs.pod:433
37973 "For SELinux guests, you may need to enable SELinux and load policy first. "
37974 "See L</SELINUX> in this manpage."
37978 #: ../src/guestfs.pod:438
37980 "I<Security:> It is not safe to run commands from untrusted, possibly "
37981 "malicious guests. These commands may attempt to exploit your program by "
37982 "sending unexpected output. They could also try to exploit the Linux kernel "
37983 "or qemu provided by the libguestfs appliance. They could use the network "
37984 "provided by the libguestfs appliance to bypass ordinary network partitions "
37985 "and firewalls. They could use the elevated privileges or different SELinux "
37986 "context of your program to their advantage."
37990 #: ../src/guestfs.pod:447
37992 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
37993 "(a script which runs when the guest next boots normally), and to have this "
37994 "script run the commands you want in the normal context of the running guest, "
37995 "network security and so on. For information about other security issues, "
37996 "see L</SECURITY>."
38000 #: ../src/guestfs.pod:455
38002 "The two main API calls to run commands are L</guestfs_command> and L</"
38003 "guestfs_sh> (there are also variations)."
38007 #: ../src/guestfs.pod:458
38009 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
38010 "shell globs, redirections, etc will work."
38014 #: ../src/guestfs.pod:461
38015 msgid "CONFIGURATION FILES"
38016 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
38019 #: ../src/guestfs.pod:463
38021 "To read and write configuration files in Linux guest filesystems, we "
38022 "strongly recommend using Augeas. For example, Augeas understands how to "
38023 "read and write, say, a Linux shadow password file or X.org configuration "
38024 "file, and so avoids you having to write that code."
38028 #: ../src/guestfs.pod:468
38030 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
38031 "document Augeas itself here because there is excellent documentation on the "
38032 "L<http://augeas.net/> website."
38036 #: ../src/guestfs.pod:472
38038 "If you don't want to use Augeas (you fool!) then try calling L</"
38039 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
38044 #: ../src/guestfs.pod:476
38049 #: ../src/guestfs.pod:478
38051 "We support SELinux guests. To ensure that labeling happens correctly in "
38052 "SELinux guests, you need to enable SELinux and load the guest's policy:"
38056 #: ../src/guestfs.pod:486
38057 msgid "Before launching, do:"
38061 #: ../src/guestfs.pod:488
38064 " guestfs_set_selinux (g, 1);\n"
38067 " guestfs_set_selinux (g, 1);\n"
38071 #: ../src/guestfs.pod:492
38073 "After mounting the guest's filesystem(s), load the policy. This is best "
38074 "done by running the L<load_policy(8)> command in the guest itself:"
38078 #: ../src/guestfs.pod:496
38081 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
38084 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
38088 #: ../src/guestfs.pod:498
38090 "(Older versions of C<load_policy> require you to specify the name of the "
38095 #: ../src/guestfs.pod:503
38097 "Optionally, set the security context for the API. The correct security "
38098 "context to use can only be known by inspecting the guest. As an example:"
38102 #: ../src/guestfs.pod:507
38105 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
38108 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
38112 #: ../src/guestfs.pod:511
38113 msgid "This will work for running commands and editing existing files."
38117 #: ../src/guestfs.pod:513
38119 "When new files are created, you may need to label them explicitly, for "
38120 "example by running the external command C<restorecon pathname>."
38124 #: ../src/guestfs.pod:517
38129 #: ../src/guestfs.pod:519
38131 "Certain calls are affected by the current file mode creation mask (the "
38132 "\"umask\"). In particular ones which create files or directories, such as "
38133 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
38134 "either the default mode that the file is created with or modifies the mode "
38139 #: ../src/guestfs.pod:525
38141 "The default umask is C<022>, so files are created with modes such as C<0644> "
38142 "and directories with C<0755>."
38146 #: ../src/guestfs.pod:528
38148 "There are two ways to avoid being affected by umask. Either set umask to 0 "
38149 "(call C<guestfs_umask (g, 0)> early after launching). Or call L</"
38150 "guestfs_chmod> after creating each file or directory."
38154 #: ../src/guestfs.pod:532
38155 msgid "For more information about umask, see L<umask(2)>."
38159 #: ../src/guestfs.pod:536
38161 "Libguestfs allows you to access Linux guests which have been encrypted using "
38162 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
38163 "standard. This includes nearly all whole disk encryption systems used by "
38164 "modern Linux guests."
38168 #: ../src/guestfs.pod:542
38170 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
38171 "returns the string C<crypto_LUKS>)."
38175 #: ../src/guestfs.pod:545
38177 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
38178 "will require the passphrase!"
38182 #: ../src/guestfs.pod:548
38184 "Opening a LUKS device creates a new device mapper device called C</dev/"
38185 "mapper/mapname> (where C<mapname> is the string you supply to L</"
38186 "guestfs_luks_open>). Reads and writes to this mapper device are decrypted "
38187 "from and encrypted to the underlying block device respectively."
38191 #: ../src/guestfs.pod:554
38193 "LVM volume groups on the device can be made visible by calling L</"
38194 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical volume"
38195 "(s) can now be mounted in the usual way."
38199 #: ../src/guestfs.pod:558
38201 "Use the reverse process to close a LUKS device. Unmount any logical volumes "
38202 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
38203 "[\"/dev/VG\"])>. Then close the mapper device by calling L</"
38204 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
38205 "underlying encrypted block device)."
38209 #: ../src/guestfs.pod:565
38214 #: ../src/guestfs.pod:567
38216 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
38217 "contains operating systems, an install CD or a live CD. (These APIs used to "
38218 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
38219 "version 1.5.3 the most frequently used part of this library has been "
38220 "rewritten in C and moved into the core code)."
38224 #: ../src/guestfs.pod:574
38226 "Add all disks belonging to the unknown virtual machine and call L</"
38227 "guestfs_launch> in the usual way."
38231 #: ../src/guestfs.pod:577
38233 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
38234 "and certain heuristics, and returns a list of operating systems that were "
38235 "found. An empty list means none were found. A single element is the root "
38236 "filesystem of the operating system. For dual- or multi-boot guests, "
38237 "multiple roots can be returned, each one corresponding to a separate "
38238 "operating system. (Multi-boot virtual machines are extremely rare in the "
38239 "world of virtualization, but since this scenario can happen, we have built "
38240 "libguestfs to deal with it.)"
38244 #: ../src/guestfs.pod:586
38246 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
38247 "to get additional details about that operating system. For example, call L</"
38248 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
38249 "Windows and Linux-based operating systems respectively."
38253 #: ../src/guestfs.pod:592
38255 "Un*x-like and Linux-based operating systems usually consist of several "
38256 "filesystems which are mounted at boot time (for example, a separate boot "
38257 "partition mounted on C</boot>). The inspection rules are able to detect how "
38258 "filesystems correspond to mount points. Call "
38259 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
38260 "hash table like this example:"
38264 #: ../src/guestfs.pod:599
38267 " /boot => /dev/sda1\n"
38268 " / => /dev/vg_guest/lv_root\n"
38269 " /usr => /dev/vg_guest/lv_usr\n"
38272 " /boot => /dev/sda1\n"
38273 " / => /dev/vg_guest/lv_root\n"
38274 " /usr => /dev/vg_guest/lv_usr\n"
38278 #: ../src/guestfs.pod:603
38280 "The caller can then make calls to L</guestfs_mount_options> to mount the "
38281 "filesystems as suggested."
38285 #: ../src/guestfs.pod:606
38287 "Be careful to mount filesystems in the right order (eg. C</> before C</"
38288 "usr>). Sorting the keys of the hash by length, shortest first, should work."
38292 #: ../src/guestfs.pod:610
38294 "Inspection currently only works for some common operating systems. "
38295 "Contributors are welcome to send patches for other operating systems that we "
38296 "currently cannot detect."
38300 #: ../src/guestfs.pod:614
38302 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
38303 "for more details. The L</guestfs_inspect_os> function just ignores any "
38304 "encrypted devices."
38308 #: ../src/guestfs.pod:618
38310 "A note on the implementation: The call L</guestfs_inspect_os> performs "
38311 "inspection and caches the results in the guest handle. Subsequent calls to "
38312 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
38313 "read the disks. If you change the content of the guest disks, you can redo "
38314 "inspection by calling L</guestfs_inspect_os> again. (L</"
38315 "guestfs_inspect_list_applications> works a little differently from the other "
38316 "calls and does read the disks. See documentation for that function for "
38321 #: ../src/guestfs.pod:627
38322 msgid "INSPECTING INSTALL DISKS"
38326 #: ../src/guestfs.pod:629
38328 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
38333 #: ../src/guestfs.pod:632
38335 "Call L</guestfs_inspect_get_format> to return the format of the operating "
38336 "system, which currently can be C<installed> (a regular operating system) or "
38337 "C<installer> (some sort of install disk)."
38341 #: ../src/guestfs.pod:636
38343 "Further information is available about the operating system that can be "
38344 "installed using the regular inspection APIs like L</"
38345 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
38349 #: ../src/guestfs.pod:641
38351 "Some additional information specific to installer disks is also available "
38352 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
38353 "guestfs_inspect_is_multipart> calls."
38357 #: ../src/guestfs.pod:646
38358 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
38362 #: ../src/guestfs.pod:648
38364 "Libguestfs can mount NTFS partitions. It does this using the L<http://www."
38365 "ntfs-3g.org/> driver."
38369 #: ../src/guestfs.pod:651
38370 msgid "DRIVE LETTERS AND PATHS"
38371 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
38374 #: ../src/guestfs.pod:653
38376 "DOS and Windows still use drive letters, and the filesystems are always "
38377 "treated as case insensitive by Windows itself, and therefore you might find "
38378 "a Windows configuration file referring to a path like C<c:\\windows"
38379 "\\system32>. When the filesystem is mounted in libguestfs, that directory "
38380 "might be referred to as C</WINDOWS/System32>."
38384 #: ../src/guestfs.pod:659
38386 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
38387 "L</guestfs_inspect_get_drive_mappings>)"
38391 #: ../src/guestfs.pod:662
38393 "Dealing with separator characters (backslash vs forward slash) is outside "
38394 "the scope of libguestfs, but usually a simple character replacement will "
38399 #: ../src/guestfs.pod:666
38401 "To resolve the case insensitivity of paths, call L</"
38402 "guestfs_case_sensitive_path>."
38406 #: ../src/guestfs.pod:669
38407 msgid "ACCESSING THE WINDOWS REGISTRY"
38408 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
38411 #: ../src/guestfs.pod:671
38413 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
38414 "files, through the library C<hivex> which is part of the libguestfs project "
38415 "although ships as a separate tarball. You have to locate and download the "
38416 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
38417 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
38418 "reg(1)> for more help on this issue."
38422 #: ../src/guestfs.pod:679
38423 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
38424 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
38427 #: ../src/guestfs.pod:681
38429 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
38430 "provide something which looks like a Linux symlink. The way it tries to do "
38431 "the rewriting is described here:"
38435 #: ../src/guestfs.pod:685
38437 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
38440 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
38444 #: ../src/guestfs.pod:687
38446 "The essential problem is that ntfs-3g simply does not have enough "
38447 "information to do a correct job. NTFS links can contain drive letters and "
38448 "references to external device GUIDs that ntfs-3g has no way of resolving. "
38449 "It is almost certainly the case that libguestfs callers should ignore what "
38450 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
38454 #: ../src/guestfs.pod:694
38456 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
38457 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
38458 "attribute, and read the raw reparse data from that (you can find the format "
38459 "documented in various places around the web)."
38463 #: ../src/guestfs.pod:699
38464 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
38468 #: ../src/guestfs.pod:701
38470 "There are other useful extended attributes that can be read from ntfs-3g "
38471 "filesystems (using L</guestfs_getxattr>). See:"
38475 #: ../src/guestfs.pod:704
38477 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
38479 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
38482 #: ../src/guestfs.pod:706
38483 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
38484 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
38487 #: ../src/guestfs.pod:708
38489 "Although we don't want to discourage you from using the C API, we will "
38490 "mention here that the same API is also available in other languages."
38494 #: ../src/guestfs.pod:711
38496 "The API is broadly identical in all supported languages. This means that "
38497 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
38498 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
38499 "OCaml. In other words, a straightforward, predictable isomorphism between "
38504 #: ../src/guestfs.pod:717
38506 "Error messages are automatically transformed into exceptions if the language "
38511 #: ../src/guestfs.pod:720
38513 "We don't try to \"object orientify\" parts of the API in OO languages, "
38514 "although contributors are welcome to write higher level APIs above what we "
38515 "provide in their favourite languages if they wish."
38519 #: ../src/guestfs.pod:726
38524 #: ../src/guestfs.pod:728
38526 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
38527 "identical to the C API. C++ classes and exceptions are not used."
38531 #: ../src/guestfs.pod:732
38536 #: ../src/guestfs.pod:734
38538 "The C# bindings are highly experimental. Please read the warnings at the "
38539 "top of C<csharp/Libguestfs.cs>."
38543 #: ../src/guestfs.pod:737
38548 #: ../src/guestfs.pod:739
38549 msgid "See L<guestfs-erlang(3)>."
38553 #: ../src/guestfs.pod:741
38555 msgstr "B<Haskell>"
38558 #: ../src/guestfs.pod:743
38560 "This is the only language binding that is working but incomplete. Only "
38561 "calls which return simple integers have been bound in Haskell, and we are "
38562 "looking for help to complete this binding."
38566 #: ../src/guestfs.pod:747
38571 #: ../src/guestfs.pod:749
38573 "Full documentation is contained in the Javadoc which is distributed with "
38574 "libguestfs. For examples, see L<guestfs-java(3)>."
38578 #: ../src/guestfs.pod:752
38583 #: ../src/guestfs.pod:754
38584 msgid "See L<guestfs-ocaml(3)>."
38585 msgstr "Див. L<guestfs-ocaml(3)>."
38588 #: ../src/guestfs.pod:756
38593 #: ../src/guestfs.pod:758
38594 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
38595 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
38598 #: ../src/guestfs.pod:760
38603 #: ../src/guestfs.pod:762
38605 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
38606 "the php-libguestfs package for your distribution."
38610 #: ../src/guestfs.pod:765
38611 msgid "The PHP binding only works correctly on 64 bit machines."
38615 #: ../src/guestfs.pod:767
38620 #: ../src/guestfs.pod:769
38621 msgid "See L<guestfs-python(3)>."
38622 msgstr "Див. L<guestfs-python(3)>."
38625 #: ../src/guestfs.pod:771
38630 #: ../src/guestfs.pod:773
38631 msgid "See L<guestfs-ruby(3)>."
38632 msgstr "Див. L<guestfs-ruby(3)>."
38635 #: ../src/guestfs.pod:775
38636 msgid "B<shell scripts>"
38637 msgstr "B<скрипти оболонки>"
38640 #: ../src/guestfs.pod:777
38641 msgid "See L<guestfish(1)>."
38642 msgstr "Див. L<guestfish(1)>."
38645 #: ../src/guestfs.pod:781
38646 msgid "LIBGUESTFS GOTCHAS"
38650 #: ../src/guestfs.pod:783
38652 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
38653 "system [...] that works in the way it is documented but is counterintuitive "
38654 "and almost invites mistakes.\""
38658 #: ../src/guestfs.pod:787
38660 "Since we developed libguestfs and the associated tools, there are several "
38661 "things we would have designed differently, but are now stuck with for "
38662 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
38663 "release, you can expect these to change. Beware of them."
38667 #: ../src/guestfs.pod:795
38668 msgid "Autosync / forgetting to sync."
38672 #: ../src/guestfs.pod:797
38674 "I<Update:> Autosync is enabled by default for all API users starting from "
38675 "libguestfs 1.5.24. This section only applies to older versions."
38679 #: ../src/guestfs.pod:800
38681 "When modifying a filesystem from C or another language, you B<must> unmount "
38682 "all filesystems and call L</guestfs_sync> explicitly before you close the "
38683 "libguestfs handle. You can also call:"
38687 #: ../src/guestfs.pod:804
38690 " guestfs_set_autosync (g, 1);\n"
38693 " guestfs_set_autosync (g, 1);\n"
38697 #: ../src/guestfs.pod:806
38699 "to have the unmount/sync done automatically for you when the handle 'g' is "
38700 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
38704 #: ../src/guestfs.pod:810
38706 "If you forget to do this, then it is entirely possible that your changes "
38707 "won't be written out, or will be partially written, or (very rarely) that "
38708 "you'll get disk corruption."
38712 #: ../src/guestfs.pod:814
38714 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
38715 "guestfish scripts that forget to sync will work just fine, which can make "
38716 "this very puzzling if you are trying to debug a problem."
38720 #: ../src/guestfs.pod:818
38721 msgid "Mount option C<-o sync> should not be the default."
38725 #: ../src/guestfs.pod:820
38727 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
38728 "libguestfs 1.13.16. This section only applies to older versions."
38732 #: ../src/guestfs.pod:823
38734 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
38735 "However C<-o sync> does not add any reliability benefit, but does have a "
38736 "very large performance impact."
38740 #: ../src/guestfs.pod:827
38742 "The work around is to use L</guestfs_mount_options> and set the mount "
38743 "options that you actually want to use."
38747 #: ../src/guestfs.pod:830
38748 msgid "Read-only should be the default."
38752 #: ../src/guestfs.pod:832
38754 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
38755 "specify I<--rw> if you want to make changes to the image."
38759 #: ../src/guestfs.pod:835
38760 msgid "This would reduce the potential to corrupt live VM images."
38764 #: ../src/guestfs.pod:837
38766 "Note that many filesystems change the disk when you just mount and unmount, "
38767 "even if you didn't perform any writes. You need to use L</"
38768 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
38772 #: ../src/guestfs.pod:841
38773 msgid "guestfish command line is hard to use."
38777 #: ../src/guestfs.pod:843
38779 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
38780 "examination). It tries to run a guestfish command C<disk.img> which doesn't "
38781 "exist, so it fails. In earlier versions of guestfish the error message was "
38782 "also unintuitive, but we have corrected this since. Like the Bourne shell, "
38783 "we should have used C<guestfish -c command> to run commands."
38787 #: ../src/guestfs.pod:850
38788 msgid "guestfish megabyte modifiers don't work right on all commands"
38792 #: ../src/guestfs.pod:852
38794 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
38795 "other modifiers). What guestfish actually does is to multiply the number "
38796 "part by the modifier part and pass the result to the C API. However this "
38797 "doesn't work for a few APIs which aren't expecting bytes, but are already "
38798 "expecting some other unit (eg. megabytes)."
38802 #: ../src/guestfs.pod:859
38803 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
38807 #: ../src/guestfs.pod:861
38810 " lvcreate LV VG 100M\n"
38813 " lvcreate LV VG 100M\n"
38817 #: ../src/guestfs.pod:863
38819 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
38820 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
38821 "megabytes * megabytes) logical volume. The error message you get from this "
38822 "is also a little obscure."
38826 #: ../src/guestfs.pod:868
38828 "This could be fixed in the generator by specially marking parameters and "
38829 "return values which take bytes or other units."
38833 #: ../src/guestfs.pod:871
38834 msgid "Ambiguity between devices and paths"
38838 #: ../src/guestfs.pod:873
38840 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
38841 "sdb2>) and a similar pathname. A file might just happen to be called "
38842 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
38846 #: ../src/guestfs.pod:878
38848 "In the current API we usually resolve this ambiguity by having two separate "
38849 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
38850 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
38851 "detecting if the path supplied begins with C</dev/>."
38855 #: ../src/guestfs.pod:884
38857 "To avoid both the ambiguity and the need to duplicate some calls, we could "
38858 "make paths/devices into structured names. One way to do this would be to "
38859 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
38860 "aspect of grub. Another way would be to use a structured type, equivalent "
38861 "to this OCaml type:"
38865 #: ../src/guestfs.pod:890
38868 " type path = Path of string | Device of int | Partition of int * int\n"
38873 #: ../src/guestfs.pod:892
38874 msgid "which would allow you to pass arguments like:"
38878 #: ../src/guestfs.pod:894
38881 " Path \"/foo/bar\"\n"
38882 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
38883 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
38884 " Path \"/dev/sdb2\" (* not a device *)\n"
38889 #: ../src/guestfs.pod:899
38891 "As you can see there are still problems to resolve even with this "
38892 "representation. Also consider how it might work in guestfish."
38896 #: ../src/guestfs.pod:904
38897 msgid "KEYS AND PASSPHRASES"
38898 msgstr "КЛЮЧІ І ПАРОЛІ"
38901 #: ../src/guestfs.pod:906
38903 "Certain libguestfs calls take a parameter that contains sensitive key "
38904 "material, passed in as a C string."
38908 #: ../src/guestfs.pod:909
38910 "In the future we would hope to change the libguestfs implementation so that "
38911 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
38912 "swap. However this is I<not> done at the moment, because of the complexity "
38913 "of such an implementation."
38917 #: ../src/guestfs.pod:914
38919 "Therefore you should be aware that any key parameter you pass to libguestfs "
38920 "might end up being written out to the swap partition. If this is a concern, "
38921 "scrub the swap partition or don't use libguestfs on encrypted devices."
38925 #: ../src/guestfs.pod:919
38926 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
38930 #: ../src/guestfs.pod:921
38932 "All high-level libguestfs actions are synchronous. If you want to use "
38933 "libguestfs asynchronously then you must create a thread."
38937 #: ../src/guestfs.pod:924
38939 "Only use the handle from a single thread. Either use the handle exclusively "
38940 "from one thread, or provide your own mutex so that two threads cannot issue "
38941 "calls on the same handle at the same time."
38945 #: ../src/guestfs.pod:928
38947 "See the graphical program guestfs-browser for one possible architecture for "
38948 "multithreaded programs using libvirt and libguestfs."
38952 #: ../src/guestfs.pod:931
38957 #: ../src/guestfs.pod:933
38959 "Libguestfs needs a supermin appliance, which it finds by looking along an "
38964 #: ../src/guestfs.pod:936
38966 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
38967 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
38971 #: ../src/guestfs.pod:939
38973 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
38974 "to change the directories that libguestfs will search in. The value is a "
38975 "colon-separated list of paths. The current directory is I<not> searched "
38976 "unless the path contains an empty element or C<.>. For example "
38977 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
38978 "then C</usr/lib/guestfs>."
38982 #: ../src/guestfs.pod:946
38983 msgid "QEMU WRAPPERS"
38987 #: ../src/guestfs.pod:948
38989 "If you want to compile your own qemu, run qemu from a non-standard location, "
38990 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
38995 #: ../src/guestfs.pod:952
38997 "There is one important rule to remember: you I<must C<exec qemu>> as the "
38998 "last command in the shell script (so that qemu replaces the shell and "
38999 "becomes the direct child of the libguestfs-using program). If you don't do "
39000 "this, then the qemu process won't be cleaned up correctly."
39004 #: ../src/guestfs.pod:957
39006 "Here is an example of a wrapper, where I have built my own copy of qemu from "
39011 #: ../src/guestfs.pod:960
39015 " qemudir=/home/rjones/d/qemu\n"
39016 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
39020 " qemudir=/home/rjones/d/qemu\n"
39021 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
39025 #: ../src/guestfs.pod:964
39027 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
39028 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
39033 #: ../src/guestfs.pod:968
39036 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
39039 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
39043 #: ../src/guestfs.pod:970
39045 "Note that libguestfs also calls qemu with the -help and -version options in "
39046 "order to determine features."
39050 #: ../src/guestfs.pod:973
39052 "Wrappers can also be used to edit the options passed to qemu. In the "
39053 "following example, the C<-machine ...> option (C<-machine> and the following "
39054 "argument) are removed from the command line and replaced with C<-machine pc,"
39055 "accel=tcg>. The while loop iterates over the options until it finds the "
39056 "right one to remove, putting the remaining options into the C<args> array."
39060 #: ../src/guestfs.pod:982
39064 " while [ $# -gt 0 ]; do\n"
39065 " case \"$1\" in\n"
39069 " args[i]=\"$1\"\n"
39078 #: ../src/guestfs.pod:994
39081 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
39086 #: ../src/guestfs.pod:996
39087 msgid "ATTACHING TO RUNNING DAEMONS"
39088 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
39091 #: ../src/guestfs.pod:998
39093 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
39094 "babies. Use with caution."
39098 #: ../src/guestfs.pod:1001
39100 "I<Note (2):> This section explains how to attach to a running daemon from a "
39101 "low level perspective. For most users, simply using virt tools such as "
39102 "L<guestfish(1)> with the I<--live> option will \"just work\"."
39106 #: ../src/guestfs.pod:1005
39107 msgid "Using guestfs_set_attach_method"
39108 msgstr "За допомогою guestfs_set_attach_method"
39111 #: ../src/guestfs.pod:1007
39113 "By calling L</guestfs_set_attach_method> you can change how the library "
39114 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
39115 "ARCHITECTURE> for some background)."
39119 #: ../src/guestfs.pod:1011
39121 "The normal attach method is C<appliance>, where a small appliance is created "
39122 "containing the daemon, and then the library connects to this."
39126 #: ../src/guestfs.pod:1014
39128 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
39129 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
39130 "daemon over the Unix domain socket."
39134 #: ../src/guestfs.pod:1018
39136 "The normal use for this is to connect to a running virtual machine that "
39137 "contains a C<guestfsd> daemon, and send commands so you can read and write "
39138 "files inside the live virtual machine."
39142 #: ../src/guestfs.pod:1022
39143 msgid "Using guestfs_add_domain with live flag"
39144 msgstr "За допомогою guestfs_add_domain з прапорцем live"
39147 #: ../src/guestfs.pod:1024
39149 "L</guestfs_add_domain> provides some help for getting the correct attach "
39150 "method. If you pass the C<live> option to this function, then (if the "
39151 "virtual machine is running) it will examine the libvirt XML looking for a "
39152 "virtio-serial channel to connect to:"
39156 #: ../src/guestfs.pod:1030
39163 " <channel type='unix'>\n"
39164 " <source mode='bind' path='/path/to/socket'/>\n"
39165 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
39176 " <channel type='unix'>\n"
39177 " <source mode='bind' path='/path/to/socket'/>\n"
39178 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
39186 #: ../src/guestfs.pod:1042
39188 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
39189 "method to C<unix:/path/to/socket>."
39193 #: ../src/guestfs.pod:1045
39195 "Some of the libguestfs tools (including guestfish) support a I<--live> "
39196 "option which is passed through to L</guestfs_add_domain> thus allowing you "
39197 "to attach to and modify live virtual machines."
39201 #: ../src/guestfs.pod:1049
39203 "The virtual machine needs to have been set up beforehand so that it has the "
39204 "virtio-serial channel and so that guestfsd is running inside it."
39208 #: ../src/guestfs.pod:1053
39209 msgid "ABI GUARANTEE"
39210 msgstr "ГАРАНТІЯ ЩОДО ABI"
39213 #: ../src/guestfs.pod:1055
39215 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
39216 "actions as outlined in this section. Although we will deprecate some "
39217 "actions, for example if they get replaced by newer calls, we will keep the "
39218 "old actions forever. This allows you the developer to program in confidence "
39219 "against the libguestfs API."
39223 #: ../src/guestfs.pod:1061
39224 msgid "BLOCK DEVICE NAMING"
39225 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
39228 #: ../src/guestfs.pod:1063
39230 "In the kernel there is now quite a profusion of schemata for naming block "
39231 "devices (in this context, by I<block device> I mean a physical or virtual "
39232 "hard drive). The original Linux IDE driver used names starting with C</dev/"
39233 "hd*>. SCSI devices have historically used a different naming scheme, C</dev/"
39234 "sd*>. When the Linux kernel I<libata> driver became a popular replacement "
39235 "for the old IDE driver (particularly for SATA devices) those devices also "
39236 "used the C</dev/sd*> scheme. Additionally we now have virtual machines with "
39237 "paravirtualized drivers. This has created several different naming systems, "
39238 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
39242 #: ../src/guestfs.pod:1075
39244 "As discussed above, libguestfs uses a qemu appliance running an embedded "
39245 "Linux kernel to access block devices. We can run a variety of appliances "
39246 "based on a variety of Linux kernels."
39250 #: ../src/guestfs.pod:1079
39252 "This causes a problem for libguestfs because many API calls use device or "
39253 "partition names. Working scripts and the recipe (example) scripts that we "
39254 "make available over the internet could fail if the naming scheme changes."
39258 #: ../src/guestfs.pod:1084
39260 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
39261 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
39262 "required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
39263 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
39267 #: ../src/guestfs.pod:1090
39269 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
39270 "L</guestfs_list_partitions> and similar calls return the true names of the "
39271 "devices and partitions as known to the appliance."
39275 #: ../src/guestfs.pod:1095
39276 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
39280 #: ../src/guestfs.pod:1097
39282 "Usually this translation is transparent. However in some (very rare) cases "
39283 "you may need to know the exact algorithm. Such cases include where you use "
39284 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
39285 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
39289 #: ../src/guestfs.pod:1103
39291 "The algorithm is applied only to I<parameters> which are known to be either "
39292 "device or partition names. Return values from functions such as L</"
39293 "guestfs_list_devices> are never changed."
39297 #: ../src/guestfs.pod:1111
39298 msgid "Is the string a parameter which is a device or partition name?"
39302 #: ../src/guestfs.pod:1115
39303 msgid "Does the string begin with C</dev/sd>?"
39304 msgstr "Чи починається рядок з C</dev/sd>?"
39307 #: ../src/guestfs.pod:1119
39309 "Does the named device exist? If so, we use that device. However if I<not> "
39310 "then we continue with this algorithm."
39314 #: ../src/guestfs.pod:1124
39315 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
39319 #: ../src/guestfs.pod:1126
39320 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
39324 #: ../src/guestfs.pod:1128
39325 msgid "If that named device exists, use it. If not, continue."
39329 #: ../src/guestfs.pod:1132
39330 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
39334 #: ../src/guestfs.pod:1134
39335 msgid "If that named device exists, use it. If not, return an error."
39339 #: ../src/guestfs.pod:1138
39340 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
39344 #: ../src/guestfs.pod:1140
39346 "Although the standard naming scheme and automatic translation is useful for "
39347 "simple programs and guestfish scripts, for larger programs it is best not to "
39348 "rely on this mechanism."
39352 #: ../src/guestfs.pod:1144
39354 "Where possible for maximum future portability programs using libguestfs "
39355 "should use these future-proof techniques:"
39359 #: ../src/guestfs.pod:1151
39361 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
39362 "device names, and then use those names directly."
39366 #: ../src/guestfs.pod:1154
39368 "Since those device names exist by definition, they will never be translated."
39372 #: ../src/guestfs.pod:1159
39374 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
39375 "filesystem labels."
39379 #: ../src/guestfs.pod:1166
39381 "This section discusses security implications of using libguestfs, "
39382 "particularly with untrusted or malicious guests or disk images."
39386 #: ../src/guestfs.pod:1169
39387 msgid "GENERAL SECURITY CONSIDERATIONS"
39388 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
39391 #: ../src/guestfs.pod:1171
39393 "Be careful with any files or data that you download from a guest (by "
39394 "\"download\" we mean not just the L</guestfs_download> command but any "
39395 "command that reads files, filenames, directories or anything else from a "
39396 "disk image). An attacker could manipulate the data to fool your program "
39397 "into doing the wrong thing. Consider cases such as:"
39401 #: ../src/guestfs.pod:1181
39402 msgid "the data (file etc) not being present"
39406 #: ../src/guestfs.pod:1185
39407 msgid "being present but empty"
39411 #: ../src/guestfs.pod:1189
39412 msgid "being much larger than normal"
39416 #: ../src/guestfs.pod:1193
39417 msgid "containing arbitrary 8 bit data"
39421 #: ../src/guestfs.pod:1197
39422 msgid "being in an unexpected character encoding"
39426 #: ../src/guestfs.pod:1201
39427 msgid "containing homoglyphs."
39431 #: ../src/guestfs.pod:1205
39432 msgid "SECURITY OF MOUNTING FILESYSTEMS"
39433 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
39436 #: ../src/guestfs.pod:1207
39438 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
39439 "(VFS) module can sometimes be escalated into exploits by deliberately "
39440 "creating a malicious, malformed filesystem. These exploits are very severe "
39441 "for two reasons. Firstly there are very many filesystem drivers in the "
39442 "kernel, and many of them are infrequently used and not much developer "
39443 "attention has been paid to the code. Linux userspace helps potential "
39444 "crackers by detecting the filesystem type and automatically choosing the "
39445 "right VFS driver, even if that filesystem type is obscure or unexpected for "
39446 "the administrator. Secondly, a kernel-level exploit is like a local root "
39447 "exploit (worse in some ways), giving immediate and total access to the "
39448 "system right down to the hardware level."
39452 #: ../src/guestfs.pod:1220
39454 "That explains why you should never mount a filesystem from an untrusted "
39455 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
39456 "inside a qemu virtual machine, usually running as a non-root user. The "
39457 "attacker would need to write a filesystem which first exploited the kernel, "
39458 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
39459 "the libguestfs protocol, and finally to be as serious as the host kernel "
39460 "exploit it would need to escalate its privileges to root. This multi-step "
39461 "escalation, performed by a static piece of data, is thought to be extremely "
39462 "hard to do, although we never say 'never' about security issues."
39466 #: ../src/guestfs.pod:1231
39468 "In any case callers can reduce the attack surface by forcing the filesystem "
39469 "type when mounting (use L</guestfs_mount_vfs>)."
39473 #: ../src/guestfs.pod:1234
39474 msgid "PROTOCOL SECURITY"
39475 msgstr "ЗАХИСТ ПРОТОКОЛУ"
39478 #: ../src/guestfs.pod:1236
39480 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
39481 "defined upper message size. However a program that uses libguestfs must "
39482 "also take care - for example you can write a program that downloads a binary "
39483 "from a disk image and executes it locally, and no amount of protocol "
39484 "security will save you from the consequences."
39488 #: ../src/guestfs.pod:1242
39489 msgid "INSPECTION SECURITY"
39493 #: ../src/guestfs.pod:1244
39495 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
39496 "directly from the guest, and these could contain any 8 bit data. Callers "
39497 "should be careful to escape these before printing them to a structured file "
39498 "(for example, use HTML escaping if creating a web page)."
39502 #: ../src/guestfs.pod:1250
39504 "Guest configuration may be altered in unusual ways by the administrator of "
39505 "the virtual machine, and may not reflect reality (particularly for untrusted "
39506 "or actively malicious guests). For example we parse the hostname from "
39507 "configuration files like C</etc/sysconfig/network> that we find in the "
39508 "guest, but the guest administrator can easily manipulate these files to "
39509 "provide the wrong hostname."
39513 #: ../src/guestfs.pod:1258
39515 "The inspection API parses guest configuration using two external libraries: "
39516 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
39517 "designed to be robust in the face of malicious data, although denial of "
39518 "service attacks are still possible, for example with oversized configuration "
39523 #: ../src/guestfs.pod:1264
39524 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
39525 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
39528 #: ../src/guestfs.pod:1266
39530 "Be very cautious about running commands from the guest. By running a "
39531 "command in the guest, you are giving CPU time to a binary that you do not "
39532 "control, under the same user account as the library, albeit wrapped in qemu "
39533 "virtualization. More information and alternatives can be found in the "
39534 "section L</RUNNING COMMANDS>."
39538 #: ../src/guestfs.pod:1272
39539 msgid "CVE-2010-3851"
39540 msgstr "CVE-2010-3851"
39543 #: ../src/guestfs.pod:1274
39544 msgid "https://bugzilla.redhat.com/642934"
39545 msgstr "https://bugzilla.redhat.com/642934"
39548 #: ../src/guestfs.pod:1276
39550 "This security bug concerns the automatic disk format detection that qemu "
39551 "does on disk images."
39555 #: ../src/guestfs.pod:1279
39557 "A raw disk image is just the raw bytes, there is no header. Other disk "
39558 "images like qcow2 contain a special header. Qemu deals with this by looking "
39559 "for one of the known headers, and if none is found then assuming the disk "
39560 "image must be raw."
39564 #: ../src/guestfs.pod:1284
39566 "This allows a guest which has been given a raw disk image to write some "
39567 "other header. At next boot (or when the disk image is accessed by "
39568 "libguestfs) qemu would do autodetection and think the disk image format was, "
39569 "say, qcow2 based on the header written by the guest."
39573 #: ../src/guestfs.pod:1289
39575 "This in itself would not be a problem, but qcow2 offers many features, one "
39576 "of which is to allow a disk image to refer to another image (called the "
39577 "\"backing disk\"). It does this by placing the path to the backing disk "
39578 "into the qcow2 header. This path is not validated and could point to any "
39579 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
39580 "\"holes\" in the qcow2 disk image, which of course is completely under the "
39581 "control of the attacker."
39585 #: ../src/guestfs.pod:1297
39587 "In libguestfs this is rather hard to exploit except under two circumstances:"
39591 #: ../src/guestfs.pod:1304
39592 msgid "You have enabled the network or have opened the disk in write mode."
39596 #: ../src/guestfs.pod:1308
39598 "You are also running untrusted code from the guest (see L</RUNNING "
39603 #: ../src/guestfs.pod:1313
39605 "The way to avoid this is to specify the expected disk format when adding "
39606 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
39607 "should always do this if the disk is raw format, and it's a good idea for "
39612 #: ../src/guestfs.pod:1318
39614 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
39615 "format is fetched from libvirt and passed through."
39619 #: ../src/guestfs.pod:1321
39621 "For libguestfs tools, use the I<--format> command line parameter as "
39626 #: ../src/guestfs.pod:1324
39627 msgid "CONNECTION MANAGEMENT"
39628 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
39631 #: ../src/guestfs.pod:1326
39632 msgid "guestfs_h *"
39633 msgstr "guestfs_h *"
39636 #: ../src/guestfs.pod:1328
39638 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
39639 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
39640 "handle and release all resources used."
39644 #: ../src/guestfs.pod:1332
39646 "For information on using multiple handles and threads, see the section L</"
39647 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
39651 #: ../src/guestfs.pod:1335
39652 msgid "guestfs_create"
39653 msgstr "guestfs_create"
39656 #: ../src/guestfs.pod:1337
39659 " guestfs_h *guestfs_create (void);\n"
39662 " guestfs_h *guestfs_create (void);\n"
39666 #: ../src/guestfs.pod:1339
39667 msgid "Create a connection handle."
39668 msgstr "Створити дескриптор з’єднання."
39671 #: ../src/guestfs.pod:1341
39673 "On success this returns a non-NULL pointer to a handle. On error it returns "
39678 #: ../src/guestfs.pod:1344
39680 "You have to \"configure\" the handle after creating it. This includes "
39681 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
39682 "handle at least once."
39686 #: ../src/guestfs.pod:1348
39687 msgid "After configuring the handle, you have to call L</guestfs_launch>."
39691 #: ../src/guestfs.pod:1350
39693 "You may also want to configure error handling for the handle. See the L</"
39694 "ERROR HANDLING> section below."
39698 #: ../src/guestfs.pod:1353
39699 msgid "guestfs_close"
39700 msgstr "guestfs_close"
39703 #: ../src/guestfs.pod:1355
39706 " void guestfs_close (guestfs_h *g);\n"
39709 " void guestfs_close (guestfs_h *g);\n"
39713 #: ../src/guestfs.pod:1357
39714 msgid "This closes the connection handle and frees up all resources used."
39718 #: ../src/guestfs.pod:1359
39720 "If autosync was set on the handle and the handle was launched, then this "
39721 "implicitly calls various functions to unmount filesystems and sync the "
39722 "disk. See L</guestfs_set_autosync> for more details."
39726 #: ../src/guestfs.pod:1363
39727 msgid "If a close callback was set on the handle, then it is called."
39731 #: ../src/guestfs.pod:1365
39732 msgid "ERROR HANDLING"
39733 msgstr "ОБРОБКА ПОМИЛОК"
39736 #: ../src/guestfs.pod:1367
39738 "API functions can return errors. For example, almost all functions that "
39739 "return C<int> will return C<-1> to indicate an error."
39743 #: ../src/guestfs.pod:1370
39745 "Additional information is available for errors: an error message string and "
39746 "optionally an error number (errno) if the thing that failed was a system "
39751 #: ../src/guestfs.pod:1374
39753 "You can get at the additional information about the last error on the handle "
39754 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
39755 "up an error handler with L</guestfs_set_error_handler>."
39759 #: ../src/guestfs.pod:1379
39761 "When the handle is created, a default error handler is installed which "
39762 "prints the error message string to C<stderr>. For small short-running "
39763 "command line programs it is sufficient to do:"
39767 #: ../src/guestfs.pod:1383
39770 " if (guestfs_launch (g) == -1)\n"
39771 " exit (EXIT_FAILURE);\n"
39774 " if (guestfs_launch (g) == -1)\n"
39775 " exit (EXIT_FAILURE);\n"
39779 #: ../src/guestfs.pod:1386
39781 "since the default error handler will ensure that an error message has been "
39782 "printed to C<stderr> before the program exits."
39786 #: ../src/guestfs.pod:1389
39788 "For other programs the caller will almost certainly want to install an "
39789 "alternate error handler or do error handling in-line like this:"
39793 #: ../src/guestfs.pod:1392
39796 " /* This disables the default behaviour of printing errors\n"
39798 " guestfs_set_error_handler (g, NULL, NULL);\n"
39803 #: ../src/guestfs.pod:1396
39806 " if (guestfs_launch (g) == -1) {\n"
39807 " /* Examine the error message and print it etc. */\n"
39808 " char *msg = guestfs_last_error (g);\n"
39809 " int errnum = guestfs_last_errno (g);\n"
39810 " fprintf (stderr, \"%s\", msg);\n"
39811 " if (errnum != 0)\n"
39812 " fprintf (stderr, \": %s\", strerror (errnum));\n"
39813 " fprintf (stderr, \"\\n\");\n"
39820 #: ../src/guestfs.pod:1407
39822 "Out of memory errors are handled differently. The default action is to call "
39823 "L<abort(3)>. If this is undesirable, then you can set a handler using L</"
39824 "guestfs_set_out_of_memory_handler>."
39828 #: ../src/guestfs.pod:1411
39830 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
39831 "because there is no handle if this happens there is no way to get additional "
39832 "error information. However L</guestfs_create> is supposed to be a "
39833 "lightweight operation which can only fail because of insufficient memory (it "
39834 "returns NULL in this case)."
39838 #: ../src/guestfs.pod:1417
39839 msgid "guestfs_last_error"
39840 msgstr "guestfs_last_error"
39843 #: ../src/guestfs.pod:1419
39846 " const char *guestfs_last_error (guestfs_h *g);\n"
39849 " const char *guestfs_last_error (guestfs_h *g);\n"
39853 #: ../src/guestfs.pod:1421
39855 "This returns the last error message that happened on C<g>. If there has not "
39856 "been an error since the handle was created, then this returns C<NULL>."
39860 #: ../src/guestfs.pod:1425
39862 "The lifetime of the returned string is until the next error occurs, or L</"
39863 "guestfs_close> is called."
39867 #: ../src/guestfs.pod:1428
39868 msgid "guestfs_last_errno"
39869 msgstr "guestfs_last_errno"
39872 #: ../src/guestfs.pod:1430
39875 " int guestfs_last_errno (guestfs_h *g);\n"
39878 " int guestfs_last_errno (guestfs_h *g);\n"
39882 #: ../src/guestfs.pod:1432
39883 msgid "This returns the last error number (errno) that happened on C<g>."
39887 #: ../src/guestfs.pod:1434
39888 msgid "If successful, an errno integer not equal to zero is returned."
39892 #: ../src/guestfs.pod:1436
39894 "If no error, this returns 0. This call can return 0 in three situations:"
39898 #: ../src/guestfs.pod:1443
39899 msgid "There has not been any error on the handle."
39903 #: ../src/guestfs.pod:1447
39905 "There has been an error but the errno was meaningless. This corresponds to "
39906 "the case where the error did not come from a failed system call, but for "
39907 "some other reason."
39911 #: ../src/guestfs.pod:1453
39913 "There was an error from a failed system call, but for some reason the errno "
39914 "was not captured and returned. This usually indicates a bug in libguestfs."
39918 #: ../src/guestfs.pod:1459
39920 "Libguestfs tries to convert the errno from inside the applicance into a "
39921 "corresponding errno for the caller (not entirely trivial: the appliance "
39922 "might be running a completely different operating system from the library "
39923 "and error numbers are not standardized across Un*xen). If this could not be "
39924 "done, then the error is translated to C<EINVAL>. In practice this should "
39925 "only happen in very rare circumstances."
39929 #: ../src/guestfs.pod:1467
39930 msgid "guestfs_set_error_handler"
39931 msgstr "guestfs_set_error_handler"
39934 #: ../src/guestfs.pod:1469
39937 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
39939 " const char *msg);\n"
39940 " void guestfs_set_error_handler (guestfs_h *g,\n"
39941 " guestfs_error_handler_cb cb,\n"
39942 " void *opaque);\n"
39945 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
39947 " const char *msg);\n"
39948 " void guestfs_set_error_handler (guestfs_h *g,\n"
39949 " guestfs_error_handler_cb cb,\n"
39950 " void *opaque);\n"
39954 #: ../src/guestfs.pod:1476
39956 "The callback C<cb> will be called if there is an error. The parameters "
39957 "passed to the callback are an opaque data pointer and the error message "
39962 #: ../src/guestfs.pod:1480
39964 "C<errno> is not passed to the callback. To get that the callback must call "
39965 "L</guestfs_last_errno>."
39969 #: ../src/guestfs.pod:1483
39971 "Note that the message string C<msg> is freed as soon as the callback "
39972 "function returns, so if you want to stash it somewhere you must make your "
39977 #: ../src/guestfs.pod:1487
39978 msgid "The default handler prints messages on C<stderr>."
39982 #: ../src/guestfs.pod:1489
39983 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
39987 #: ../src/guestfs.pod:1491
39988 msgid "guestfs_get_error_handler"
39989 msgstr "guestfs_get_error_handler"
39992 #: ../src/guestfs.pod:1493
39995 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
39996 " void **opaque_rtn);\n"
39999 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
40000 " void **opaque_rtn);\n"
40004 #: ../src/guestfs.pod:1496
40005 msgid "Returns the current error handler callback."
40009 #: ../src/guestfs.pod:1498
40010 msgid "guestfs_set_out_of_memory_handler"
40011 msgstr "guestfs_set_out_of_memory_handler"
40014 #: ../src/guestfs.pod:1500
40017 " typedef void (*guestfs_abort_cb) (void);\n"
40018 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
40019 " guestfs_abort_cb);\n"
40024 #: ../src/guestfs.pod:1504
40026 "The callback C<cb> will be called if there is an out of memory situation. "
40027 "I<Note this callback must not return>."
40031 #: ../src/guestfs.pod:1507
40032 msgid "The default is to call L<abort(3)>."
40036 #: ../src/guestfs.pod:1509
40038 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
40042 #: ../src/guestfs.pod:1512
40043 msgid "guestfs_get_out_of_memory_handler"
40044 msgstr "guestfs_get_out_of_memory_handler"
40047 #: ../src/guestfs.pod:1514
40050 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
40053 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
40057 #: ../src/guestfs.pod:1516
40058 msgid "This returns the current out of memory handler."
40062 #: ../src/guestfs.pod:1518
40064 msgstr "ВИКЛИКИ API"
40067 #: ../src/guestfs.pod:1522
40072 #: ../src/guestfs.pod:1524
40077 #: ../src/guestfs.pod:1526
40078 msgid "AVAILABILITY"
40079 msgstr "ДОСТУПНІСТЬ"
40082 #: ../src/guestfs.pod:1528
40083 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
40084 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
40087 #: ../src/guestfs.pod:1530
40089 "Using L</guestfs_available> you can test availability of the following "
40090 "groups of functions. This test queries the appliance to see if the "
40091 "appliance you are currently using supports the functionality."
40095 #: ../src/guestfs.pod:1535
40096 msgid "@AVAILABILITY@"
40097 msgstr "@AVAILABILITY@"
40100 #: ../src/guestfs.pod:1537
40101 msgid "GUESTFISH supported COMMAND"
40105 #: ../src/guestfs.pod:1539
40107 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
40108 "prints out the available groups and whether they are supported by this build "
40109 "of libguestfs. Note however that you have to do C<run> first."
40113 #: ../src/guestfs.pod:1544
40114 msgid "SINGLE CALLS AT COMPILE TIME"
40118 #: ../src/guestfs.pod:1546
40120 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
40121 "function, such as:"
40125 #: ../src/guestfs.pod:1549
40128 " #define LIBGUESTFS_HAVE_DD 1\n"
40131 " #define LIBGUESTFS_HAVE_DD 1\n"
40135 #: ../src/guestfs.pod:1551
40136 msgid "if L</guestfs_dd> is available."
40140 #: ../src/guestfs.pod:1553
40142 "Before version 1.5.8, if you needed to test whether a single libguestfs "
40143 "function is available at compile time, we recommended using build tools such "
40144 "as autoconf or cmake. For example in autotools you could use:"
40148 #: ../src/guestfs.pod:1558
40151 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
40152 " AC_CHECK_FUNCS([guestfs_dd])\n"
40155 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
40156 " AC_CHECK_FUNCS([guestfs_dd])\n"
40160 #: ../src/guestfs.pod:1561
40162 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
40167 #: ../src/guestfs.pod:1564
40168 msgid "SINGLE CALLS AT RUN TIME"
40172 #: ../src/guestfs.pod:1566
40174 "Testing at compile time doesn't guarantee that a function really exists in "
40175 "the library. The reason is that you might be dynamically linked against a "
40176 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
40177 "This situation unfortunately results in a segmentation fault, which is a "
40178 "shortcoming of the C dynamic linking system itself."
40182 #: ../src/guestfs.pod:1573
40184 "You can use L<dlopen(3)> to test if a function is available at run time, as "
40185 "in this example program (note that you still need the compile time check as "
40190 #: ../src/guestfs.pod:1577
40193 " #include <stdio.h>\n"
40194 " #include <stdlib.h>\n"
40195 " #include <unistd.h>\n"
40196 " #include <dlfcn.h>\n"
40197 " #include <guestfs.h>\n"
40200 " #include <stdio.h>\n"
40201 " #include <stdlib.h>\n"
40202 " #include <unistd.h>\n"
40203 " #include <dlfcn.h>\n"
40204 " #include <guestfs.h>\n"
40208 #: ../src/guestfs.pod:1583
40213 " #ifdef LIBGUESTFS_HAVE_DD\n"
40215 " int has_function;\n"
40220 " #ifdef LIBGUESTFS_HAVE_DD\n"
40222 " int has_function;\n"
40226 #: ../src/guestfs.pod:1589
40229 " /* Test if the function guestfs_dd is really available. */\n"
40230 " dl = dlopen (NULL, RTLD_LAZY);\n"
40232 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
40233 " exit (EXIT_FAILURE);\n"
40235 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
40241 #: ../src/guestfs.pod:1598
40244 " if (!has_function)\n"
40245 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
40247 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
40248 " /* Now it's safe to call\n"
40249 " guestfs_dd (g, \"foo\", \"bar\");\n"
40253 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
40260 #: ../src/guestfs.pod:1611
40262 "You may think the above is an awful lot of hassle, and it is. There are "
40263 "other ways outside of the C linking system to ensure that this kind of "
40264 "incompatibility never arises, such as using package versioning:"
40268 #: ../src/guestfs.pod:1616
40271 " Requires: libguestfs >= 1.0.80\n"
40276 #: ../src/guestfs.pod:1618
40277 msgid "CALLS WITH OPTIONAL ARGUMENTS"
40281 #: ../src/guestfs.pod:1620
40283 "A recent feature of the API is the introduction of calls which take optional "
40284 "arguments. In C these are declared 3 ways. The main way is as a call which "
40285 "takes variable arguments (ie. C<...>), as in this example:"
40289 #: ../src/guestfs.pod:1625
40292 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
40295 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
40299 #: ../src/guestfs.pod:1627
40301 "Call this with a list of optional arguments, terminated by C<-1>. So to "
40302 "call with no optional arguments specified:"
40306 #: ../src/guestfs.pod:1630
40309 " guestfs_add_drive_opts (g, filename, -1);\n"
40312 " guestfs_add_drive_opts (g, filename, -1);\n"
40316 #: ../src/guestfs.pod:1632
40317 msgid "With a single optional argument:"
40321 #: ../src/guestfs.pod:1634
40324 " guestfs_add_drive_opts (g, filename,\n"
40325 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40329 " guestfs_add_drive_opts (g, filename,\n"
40330 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40335 #: ../src/guestfs.pod:1638
40340 #: ../src/guestfs.pod:1640
40343 " guestfs_add_drive_opts (g, filename,\n"
40344 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40345 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
40349 " guestfs_add_drive_opts (g, filename,\n"
40350 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40351 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
40356 #: ../src/guestfs.pod:1645
40358 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
40363 #: ../src/guestfs.pod:1648
40364 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
40368 #: ../src/guestfs.pod:1650
40370 "The second variant has the same name with the suffix C<_va>, which works the "
40371 "same way but takes a C<va_list>. See the C manual for details. For the "
40372 "example function, this is declared:"
40376 #: ../src/guestfs.pod:1654
40379 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
40380 " va_list args);\n"
40383 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
40384 " va_list args);\n"
40388 #: ../src/guestfs.pod:1657
40389 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
40393 #: ../src/guestfs.pod:1659
40395 "The third variant is useful where you need to construct these calls. You "
40396 "pass in a structure where you fill in the optional fields. The structure "
40397 "has a bitmask as the first element which you must set to indicate which "
40398 "fields you have filled in. For our example function the structure and call "
40403 #: ../src/guestfs.pod:1665
40406 " struct guestfs_add_drive_opts_argv {\n"
40407 " uint64_t bitmask;\n"
40409 " const char *format;\n"
40412 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
40413 " const struct guestfs_add_drive_opts_argv *optargs);\n"
40416 " struct guestfs_add_drive_opts_argv {\n"
40417 " uint64_t bitmask;\n"
40419 " const char *format;\n"
40422 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
40423 " const struct guestfs_add_drive_opts_argv *optargs);\n"
40427 #: ../src/guestfs.pod:1674
40428 msgid "You could call it like this:"
40432 #: ../src/guestfs.pod:1676
40435 " struct guestfs_add_drive_opts_argv optargs = {\n"
40436 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
40437 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
40438 " .readonly = 1,\n"
40439 " .format = \"qcow2\"\n"
40443 " struct guestfs_add_drive_opts_argv optargs = {\n"
40444 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
40445 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
40446 " .readonly = 1,\n"
40447 " .format = \"qcow2\"\n"
40452 #: ../src/guestfs.pod:1683
40455 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
40458 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
40462 #: ../src/guestfs.pod:1691
40463 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
40467 #: ../src/guestfs.pod:1696
40468 msgid "You do not need to fill in all fields of the structure."
40472 #: ../src/guestfs.pod:1700
40474 "There must be a one-to-one correspondence between fields of the structure "
40475 "that are filled in, and bits set in the bitmask."
40479 #: ../src/guestfs.pod:1705
40480 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
40484 #: ../src/guestfs.pod:1707
40486 "In other languages, optional arguments are expressed in the way that is "
40487 "natural for that language. We refer you to the language-specific "
40488 "documentation for more details on that."
40492 #: ../src/guestfs.pod:1711
40493 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
40497 #: ../src/guestfs.pod:1713
40498 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
40502 #: ../src/guestfs.pod:1715
40504 "B<Note:> This section documents the generic event mechanism introduced in "
40505 "libguestfs 1.10, which you should use in new code if possible. The old "
40506 "functions C<guestfs_set_log_message_callback>, "
40507 "C<guestfs_set_subprocess_quit_callback>, "
40508 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
40509 "C<guestfs_set_progress_callback> are no longer documented in this manual "
40510 "page. Because of the ABI guarantee, the old functions continue to work."
40514 #: ../src/guestfs.pod:1724
40516 "Handles generate events when certain things happen, such as log messages "
40517 "being generated, progress messages during long-running operations, or the "
40518 "handle being closed. The API calls described below let you register a "
40519 "callback to be called when events happen. You can register multiple "
40520 "callbacks (for the same, different or overlapping sets of events), and "
40521 "individually remove callbacks. If callbacks are not removed, then they "
40522 "remain in force until the handle is closed."
40526 #: ../src/guestfs.pod:1732
40528 "In the current implementation, events are only generated synchronously: that "
40529 "means that events (and hence callbacks) can only happen while you are in the "
40530 "middle of making another libguestfs call. The callback is called in the "
40535 #: ../src/guestfs.pod:1737
40537 "Events may contain a payload, usually nothing (void), an array of 64 bit "
40538 "unsigned integers, or a message buffer. Payloads are discussed later on."
40542 #: ../src/guestfs.pod:1741
40543 msgid "CLASSES OF EVENTS"
40547 #: ../src/guestfs.pod:1745
40548 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
40552 #: ../src/guestfs.pod:1748
40554 "The callback function will be called while the handle is being closed "
40555 "(synchronously from L</guestfs_close>)."
40559 #: ../src/guestfs.pod:1751
40561 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
40562 "handles that are open when the program exits. This means that this callback "
40563 "might be called indirectly from L<exit(3)>, which can cause unexpected "
40564 "problems in higher-level languages (eg. if your HLL interpreter has already "
40565 "been cleaned up by the time this is called, and if your callback then jumps "
40566 "into some HLL function)."
40570 #: ../src/guestfs.pod:1758
40572 "If no callback is registered: the handle is closed without any callback "
40577 #: ../src/guestfs.pod:1761
40578 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
40582 #: ../src/guestfs.pod:1764
40584 "The callback function will be called when the child process quits, either "
40585 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
40586 "corresponds to a transition from any state to the CONFIG state)."
40590 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
40591 msgid "If no callback is registered: the event is ignored."
40595 #: ../src/guestfs.pod:1770
40596 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
40600 #: ../src/guestfs.pod:1773
40602 "The callback function will be called when the child process becomes ready "
40603 "first time after it has been launched. (This corresponds to a transition "
40604 "from LAUNCHING to the READY state)."
40608 #: ../src/guestfs.pod:1779
40609 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
40613 #: ../src/guestfs.pod:1782
40615 "Some long-running operations can generate progress messages. If this "
40616 "callback is registered, then it will be called each time a progress message "
40617 "is generated (usually two seconds after the operation started, and three "
40618 "times per second thereafter until it completes, although the frequency may "
40619 "change in future versions)."
40623 #: ../src/guestfs.pod:1788
40625 "The callback receives in the payload four unsigned 64 bit numbers which are "
40626 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
40630 #: ../src/guestfs.pod:1791
40632 "The units of C<total> are not defined, although for some operations C<total> "
40633 "may relate in some way to the amount of data to be transferred (eg. in bytes "
40634 "or megabytes), and C<position> may be the portion which has been transferred."
40638 #: ../src/guestfs.pod:1796
40639 msgid "The only defined and stable parts of the API are:"
40643 #: ../src/guestfs.pod:1802
40645 "The callback can display to the user some type of progress bar or indicator "
40646 "which shows the ratio of C<position>:C<total>."
40650 #: ../src/guestfs.pod:1807
40651 msgid "0 E<lt>= C<position> E<lt>= C<total>"
40655 #: ../src/guestfs.pod:1811
40657 "If any progress notification is sent during a call, then a final progress "
40658 "notification is always sent when C<position> = C<total> (I<unless> the call "
40659 "fails with an error)."
40663 #: ../src/guestfs.pod:1815
40665 "This is to simplify caller code, so callers can easily set the progress "
40666 "indicator to \"100%\" at the end of the operation, without requiring special "
40667 "code to detect this case."
40671 #: ../src/guestfs.pod:1821
40673 "For some calls we are unable to estimate the progress of the call, but we "
40674 "can still generate progress messages to indicate activity. This is known as "
40675 "\"pulse mode\", and is directly supported by certain progress bar "
40676 "implementations (eg. GtkProgressBar)."
40680 #: ../src/guestfs.pod:1826
40682 "For these calls, zero or more progress messages are generated with "
40683 "C<position = 0> and C<total = 1>, followed by a final message with "
40684 "C<position = total = 1>."
40688 #: ../src/guestfs.pod:1830
40690 "As noted above, if the call fails with an error then the final message may "
40691 "not be generated."
40695 #: ../src/guestfs.pod:1835
40697 "The callback also receives the procedure number (C<proc_nr>) and serial "
40698 "number (C<serial>) of the call. These are only useful for debugging "
40699 "protocol issues, and the callback can normally ignore them. The callback "
40700 "may want to print these numbers in error messages or debugging messages."
40704 #: ../src/guestfs.pod:1841
40705 msgid "If no callback is registered: progress messages are discarded."
40709 #: ../src/guestfs.pod:1843
40710 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
40714 #: ../src/guestfs.pod:1846
40716 "The callback function is called whenever a log message is generated by qemu, "
40717 "the appliance kernel, guestfsd (daemon), or utility programs."
40721 #: ../src/guestfs.pod:1849
40723 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
40724 "guestfs_launch>) then additional debug messages are generated."
40728 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
40730 "If no callback is registered: the messages are discarded unless the verbose "
40731 "flag is set in which case they are sent to stderr. You can override the "
40732 "printing of verbose messages to stderr by setting up a callback."
40736 #: ../src/guestfs.pod:1857
40737 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
40741 #: ../src/guestfs.pod:1860
40743 "The callback function is called whenever a log message is generated by the "
40744 "library part of libguestfs."
40748 #: ../src/guestfs.pod:1863
40750 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
40751 "messages are generated."
40755 #: ../src/guestfs.pod:1871
40756 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
40760 #: ../src/guestfs.pod:1874
40762 "The callback function is called whenever a trace message is generated. This "
40763 "only applies if the trace flag (L</guestfs_set_trace>) is set."
40767 #: ../src/guestfs.pod:1877
40769 "If no callback is registered: the messages are sent to stderr. You can "
40770 "override the printing of trace messages to stderr by setting up a callback."
40774 #: ../src/guestfs.pod:1881
40775 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
40779 #: ../src/guestfs.pod:1884
40781 "The callback function is called whenever a libguestfs function is entered."
40785 #: ../src/guestfs.pod:1887
40787 "The payload is a string which contains the name of the function that we are "
40788 "entering (not including C<guestfs_> prefix)."
40792 #: ../src/guestfs.pod:1890
40794 "Note that libguestfs functions can call themselves, so you may see many "
40795 "events from a single call. A few libguestfs functions do not generate this "
40800 #: ../src/guestfs.pod:1898
40801 msgid "guestfs_set_event_callback"
40805 #: ../src/guestfs.pod:1900
40808 " int guestfs_set_event_callback (guestfs_h *g,\n"
40809 " guestfs_event_callback cb,\n"
40810 " uint64_t event_bitmask,\n"
40812 " void *opaque);\n"
40817 #: ../src/guestfs.pod:1906
40819 "This function registers a callback (C<cb>) for all event classes in the "
40820 "C<event_bitmask>."
40824 #: ../src/guestfs.pod:1909
40826 "For example, to register for all log message events, you could call this "
40827 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. "
40828 "To register a single callback for all possible classes of events, use "
40829 "C<GUESTFS_EVENT_ALL>."
40833 #: ../src/guestfs.pod:1915
40834 msgid "C<flags> should always be passed as 0."
40838 #: ../src/guestfs.pod:1917
40840 "C<opaque> is an opaque pointer which is passed to the callback. You can use "
40841 "it for any purpose."
40845 #: ../src/guestfs.pod:1920
40847 "The return value is the event handle (an integer) which you can use to "
40848 "delete the callback (see below)."
40852 #: ../src/guestfs.pod:1923
40854 "If there is an error, this function returns C<-1>, and sets the error in the "
40855 "handle in the usual way (see L</guestfs_last_error> etc.)"
40859 #: ../src/guestfs.pod:1926
40861 "Callbacks remain in effect until they are deleted, or until the handle is "
40866 #: ../src/guestfs.pod:1929
40868 "In the case where multiple callbacks are registered for a particular event "
40869 "class, all of the callbacks are called. The order in which multiple "
40870 "callbacks are called is not defined."
40874 #: ../src/guestfs.pod:1933
40875 msgid "guestfs_delete_event_callback"
40879 #: ../src/guestfs.pod:1935
40882 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
40887 #: ../src/guestfs.pod:1937
40889 "Delete a callback that was previously registered. C<event_handle> should be "
40890 "the integer that was returned by a previous call to "
40891 "C<guestfs_set_event_callback> on the same handle."
40895 #: ../src/guestfs.pod:1941
40896 msgid "guestfs_event_callback"
40900 #: ../src/guestfs.pod:1943
40903 " typedef void (*guestfs_event_callback) (\n"
40906 " uint64_t event,\n"
40907 " int event_handle,\n"
40909 " const char *buf, size_t buf_len,\n"
40910 " const uint64_t *array, size_t array_len);\n"
40915 #: ../src/guestfs.pod:1952
40917 "This is the type of the event callback function that you have to provide."
40921 #: ../src/guestfs.pod:1955
40923 "The basic parameters are: the handle (C<g>), the opaque user pointer "
40924 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
40925 "handle, and C<flags> which in the current API you should ignore."
40929 #: ../src/guestfs.pod:1959
40931 "The remaining parameters contain the event payload (if any). Each event may "
40932 "contain a payload, which usually relates to the event class, but for future "
40933 "proofing your code should be written to handle any payload for any event "
40938 #: ../src/guestfs.pod:1964
40940 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
40941 "there is no message buffer). Note that this message buffer can contain "
40942 "arbitrary 8 bit data, including NUL bytes."
40946 #: ../src/guestfs.pod:1968
40948 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
40949 "moment this is only used for progress messages."
40953 #: ../src/guestfs.pod:1971
40954 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
40958 #: ../src/guestfs.pod:1973
40960 "One motivation for the generic event API was to allow GUI programs to "
40961 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
40962 "unconditionally to C<stderr>."
40966 #: ../src/guestfs.pod:1977
40968 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
40969 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
40970 "messages are not events; you must capture error messages separately)."
40974 #: ../src/guestfs.pod:1982
40976 "Programs have to set up a callback to capture the classes of events of "
40981 #: ../src/guestfs.pod:1985
40985 " guestfs_set_event_callback\n"
40986 " (g, message_callback,\n"
40987 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
40988 " GUESTFS_EVENT_TRACE,\n"
40989 " 0, NULL) == -1)\n"
40990 " if (eh == -1) {\n"
40991 " // handle error in the usual way\n"
40997 #: ../src/guestfs.pod:1995
40999 "The callback can then direct messages to the appropriate place. In this "
41000 "example, messages are directed to syslog:"
41004 #: ../src/guestfs.pod:1998
41008 " message_callback (\n"
41011 " uint64_t event,\n"
41012 " int event_handle,\n"
41014 " const char *buf, size_t buf_len,\n"
41015 " const uint64_t *array, size_t array_len)\n"
41017 " const int priority = LOG_USER|LOG_INFO;\n"
41018 " if (buf_len > 0)\n"
41019 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
41025 #: ../src/guestfs.pod:2013
41026 msgid "CANCELLING LONG TRANSFERS"
41030 #: ../src/guestfs.pod:2015
41032 "Some operations can be cancelled by the caller while they are in progress. "
41033 "Currently only operations that involve uploading or downloading data can be "
41034 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
41035 "parameters in the generator)."
41039 #: ../src/guestfs.pod:2020
41040 msgid "guestfs_user_cancel"
41044 #: ../src/guestfs.pod:2022
41047 " void guestfs_user_cancel (guestfs_h *g);\n"
41052 #: ../src/guestfs.pod:2024
41054 "C<guestfs_user_cancel> cancels the current upload or download operation."
41058 #: ../src/guestfs.pod:2027
41060 "Unlike most other libguestfs calls, this function is signal safe and thread "
41061 "safe. You can call it from a signal handler or from another thread, without "
41062 "needing to do any locking."
41066 #: ../src/guestfs.pod:2031
41068 "The transfer that was in progress (if there is one) will stop shortly "
41069 "afterwards, and will return an error. The errno (see L</"
41070 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
41071 "out if the operation was cancelled or failed because of another error."
41075 #: ../src/guestfs.pod:2037
41077 "No cleanup is performed: for example, if a file was being uploaded then "
41078 "after cancellation there may be a partially uploaded file. It is the "
41079 "caller's responsibility to clean up if necessary."
41083 #: ../src/guestfs.pod:2041
41084 msgid "There are two common places that you might call C<guestfs_user_cancel>."
41088 #: ../src/guestfs.pod:2043
41090 "In an interactive text-based program, you might call it from a C<SIGINT> "
41091 "signal handler so that pressing C<^C> cancels the current operation. (You "
41092 "also need to call L</guestfs_set_pgroup> so that child processes don't "
41093 "receive the C<^C> signal)."
41097 #: ../src/guestfs.pod:2048
41099 "In a graphical program, when the main thread is displaying a progress bar "
41100 "with a cancel button, wire up the cancel button to call this function."
41104 #: ../src/guestfs.pod:2052
41105 msgid "PRIVATE DATA AREA"
41109 #: ../src/guestfs.pod:2054
41111 "You can attach named pieces of private data to the libguestfs handle, fetch "
41112 "them by name, and walk over them, for the lifetime of the handle. This is "
41113 "called the private data area and is only available from the C API."
41117 #: ../src/guestfs.pod:2059
41118 msgid "To attach a named piece of data, use the following call:"
41122 #: ../src/guestfs.pod:2061
41125 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
41128 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
41132 #: ../src/guestfs.pod:2063
41134 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
41135 "pointer (which can be C<NULL>). Any previous item with the same key is "
41140 #: ../src/guestfs.pod:2067
41142 "You can use any C<key> you want, but your key should I<not> start with an "
41143 "underscore character. Keys beginning with an underscore character are "
41144 "reserved for internal libguestfs purposes (eg. for implementing language "
41145 "bindings). It is recommended that you prefix the key with some unique "
41146 "string to avoid collisions with other users."
41150 #: ../src/guestfs.pod:2073
41151 msgid "To retrieve the pointer, use:"
41155 #: ../src/guestfs.pod:2075
41158 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
41161 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
41165 #: ../src/guestfs.pod:2077
41167 "This function returns C<NULL> if either no data is found associated with "
41168 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
41173 #: ../src/guestfs.pod:2081
41175 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
41176 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
41177 "all. In particular, libguestfs does I<not> try to free the data when the "
41178 "handle is closed. If the data must be freed, then the caller must either "
41179 "free it before calling L</guestfs_close> or must set up a close callback to "
41180 "do it (see L</GUESTFS_EVENT_CLOSE>)."
41184 #: ../src/guestfs.pod:2088
41185 msgid "To walk over all entries, use these two functions:"
41189 #: ../src/guestfs.pod:2090
41192 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
41197 #: ../src/guestfs.pod:2092
41200 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
41205 #: ../src/guestfs.pod:2094
41207 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
41208 "not have any particular meaning -- keys are not returned in any defined "
41209 "order). A pointer to the key is returned in C<*key_rtn> and the "
41210 "corresponding data pointer is returned from the function. C<NULL> is "
41211 "returned if there are no keys stored in the handle."
41215 #: ../src/guestfs.pod:2100
41217 "C<guestfs_next_private> returns the next key, pointer pair. The return "
41218 "value of this function is also C<NULL> is there are no further entries to "
41223 #: ../src/guestfs.pod:2104
41224 msgid "Notes about walking over entries:"
41228 #: ../src/guestfs.pod:2110
41230 "You must not call C<guestfs_set_private> while walking over the entries."
41234 #: ../src/guestfs.pod:2115
41236 "The handle maintains an internal iterator which is reset when you call "
41237 "C<guestfs_first_private>. This internal iterator is invalidated when you "
41238 "call C<guestfs_set_private>."
41242 #: ../src/guestfs.pod:2121
41243 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
41247 #: ../src/guestfs.pod:2123
41250 " guestfs_set_private (g, key, NULL);\n"
41255 #: ../src/guestfs.pod:2125
41256 msgid "then that C<key> is not returned when walking."
41260 #: ../src/guestfs.pod:2129
41262 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
41263 "C<guestfs_next_private> or C<guestfs_set_private>."
41267 #: ../src/guestfs.pod:2135
41269 "The following example code shows how to print all keys and data pointers "
41270 "that are associated with the handle C<g>:"
41274 #: ../src/guestfs.pod:2138
41277 " const char *key;\n"
41278 " void *data = guestfs_first_private (g, &key);\n"
41279 " while (data != NULL)\n"
41281 " printf (\"key = %s, data = %p\\n\", key, data);\n"
41282 " data = guestfs_next_private (g, &key);\n"
41288 #: ../src/guestfs.pod:2146
41290 "More commonly you are only interested in keys that begin with an application-"
41291 "specific prefix C<foo_>. Modify the loop like so:"
41295 #: ../src/guestfs.pod:2149
41298 " const char *key;\n"
41299 " void *data = guestfs_first_private (g, &key);\n"
41300 " while (data != NULL)\n"
41302 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
41303 " printf (\"key = %s, data = %p\\n\", key, data);\n"
41304 " data = guestfs_next_private (g, &key);\n"
41310 #: ../src/guestfs.pod:2158
41312 "If you need to modify keys while walking, then you have to jump back to the "
41313 "beginning of the loop. For example, to delete all keys prefixed with "
41318 #: ../src/guestfs.pod:2162
41321 " const char *key;\n"
41324 " data = guestfs_first_private (g, &key);\n"
41325 " while (data != NULL)\n"
41327 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
41329 " guestfs_set_private (g, key, NULL);\n"
41330 " /* note that 'key' pointer is now invalid, and so is\n"
41331 " the internal iterator */\n"
41334 " data = guestfs_next_private (g, &key);\n"
41340 #: ../src/guestfs.pod:2178
41342 "Note that the above loop is guaranteed to terminate because the keys are "
41343 "being deleted, but other manipulations of keys within the loop might not "
41344 "terminate unless you also maintain an indication of which keys have been "
41349 #: ../src/guestfs.pod:2183
41354 #: ../src/guestfs.pod:2185
41356 "The libguestfs C library can be probed using systemtap or DTrace. This is "
41357 "true of any library, not just libguestfs. However libguestfs also contains "
41358 "static markers to help in probing internal operations."
41362 #: ../src/guestfs.pod:2189
41363 msgid "You can list all the static markers by doing:"
41367 #: ../src/guestfs.pod:2191
41370 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
41371 " .provider(\"guestfs\").mark(\"*\")'\n"
41376 #: ../src/guestfs.pod:2194
41378 "B<Note:> These static markers are I<not> part of the stable API and may "
41379 "change in future versions."
41383 #: ../src/guestfs.pod:2197
41384 msgid "SYSTEMTAP SCRIPT EXAMPLE"
41388 #: ../src/guestfs.pod:2199
41390 "This script contains examples of displaying both the static markers and some "
41391 "ordinary C entry points:"
41395 #: ../src/guestfs.pod:2202
41403 #: ../src/guestfs.pod:2204
41406 " function display_time () {\n"
41407 " now = gettimeofday_us ();\n"
41410 " delta = now - last;\n"
41416 #: ../src/guestfs.pod:2211
41419 " printf (\"%d (+%d):\", now, delta);\n"
41425 #: ../src/guestfs.pod:2214
41430 " printf (\"ready\\n\");\n"
41436 #: ../src/guestfs.pod:2219
41439 " /* Display all calls to static markers. */\n"
41440 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
41441 " .provider(\"guestfs\").mark(\"*\") ? {\n"
41442 " display_time();\n"
41443 " printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
41449 #: ../src/guestfs.pod:2226
41452 " /* Display all calls to guestfs_mkfs* functions. */\n"
41453 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
41454 " .function(\"guestfs_mkfs*\") ? {\n"
41455 " display_time();\n"
41456 " printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
41462 #: ../src/guestfs.pod:2233
41464 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
41465 "program. Note that you either have to be root, or you have to add yourself "
41466 "to several special stap groups. Consult the systemtap documentation for "
41467 "more information."
41471 #: ../src/guestfs.pod:2238
41474 " # stap /tmp/test.stap\n"
41480 #: ../src/guestfs.pod:2241
41481 msgid "In another terminal, run a guestfish command such as this:"
41485 #: ../src/guestfs.pod:2245
41486 msgid "In the first terminal, stap trace output similar to this is shown:"
41490 #: ../src/guestfs.pod:2247
41493 " 1318248056692655 (+0):\tlaunch_start\n"
41494 " 1318248056692850 (+195): launch_build_appliance_start\n"
41495 " 1318248056818285 (+125435): launch_build_appliance_end\n"
41496 " 1318248056838059 (+19774): launch_run_qemu\n"
41497 " 1318248061071167 (+4233108): launch_end\n"
41498 " 1318248061280324 (+209157): guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
41503 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
41508 #: ../src/guestfs.pod:2256
41510 "<!-- old anchor for the next section --> <a name="
41511 "\"state_machine_and_low_level_event_api\"/>"
41513 "<!-- old anchor for the next section --> <a name="
41514 "\"state_machine_and_low_level_event_api\"/>"
41517 #: ../src/guestfs.pod:2261
41518 msgid "ARCHITECTURE"
41519 msgstr "АРХІТЕКТУРА"
41522 #: ../src/guestfs.pod:2263
41524 "Internally, libguestfs is implemented by running an appliance (a special "
41525 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
41526 "process of the main program."
41530 #: ../src/guestfs.pod:2267
41533 " ___________________\n"
41535 " | main program |\n"
41537 " | | child process / appliance\n"
41538 " | | __________________________\n"
41540 " +-------------------+ RPC | +-----------------+ |\n"
41541 " | libguestfs <--------------------> guestfsd | |\n"
41542 " | | | +-----------------+ |\n"
41543 " \\___________________/ | | Linux kernel | |\n"
41544 " | +--^--------------+ |\n"
41545 " \\_________|________________/\n"
41547 " _______v______\n"
41550 " | disk image |\n"
41551 " \\______________/\n"
41556 #: ../src/guestfs.pod:2287
41558 "The library, linked to the main program, creates the child process and hence "
41559 "the appliance in the L</guestfs_launch> function."
41563 #: ../src/guestfs.pod:2290
41565 "Inside the appliance is a Linux kernel and a complete stack of userspace "
41566 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
41567 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
41568 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
41569 "API calls and RPC calls to the daemon. Lastly the disk image(s) are "
41570 "attached to the qemu process which translates device access by the "
41571 "appliance's Linux kernel into accesses to the image."
41575 #: ../src/guestfs.pod:2299
41577 "A common misunderstanding is that the appliance \"is\" the virtual machine. "
41578 "Although the disk image you are attached to might also be used by some "
41579 "virtual machine, libguestfs doesn't know or care about this. (But you will "
41580 "care if both libguestfs's qemu process and your virtual machine are trying "
41581 "to update the disk image at the same time, since these usually results in "
41582 "massive disk corruption)."
41586 #: ../src/guestfs.pod:2306
41587 msgid "STATE MACHINE"
41588 msgstr "СКІНЧЕННИЙ АВТОМАТ"
41591 #: ../src/guestfs.pod:2308
41592 msgid "libguestfs uses a state machine to model the child process:"
41596 #: ../src/guestfs.pod:2310
41600 " guestfs_create\n"
41608 " / | \\ \\ guestfs_launch\n"
41609 " / | _\\__V______\n"
41611 " / | | LAUNCHING |\n"
41612 " / | \\___________/\n"
41614 " / | guestfs_launch\n"
41616 " ______ / __|____V\n"
41617 " / \\ ------> / \\\n"
41618 " | BUSY | | READY |\n"
41619 " \\______/ <------ \\________/\n"
41624 #: ../src/guestfs.pod:2332
41626 "The normal transitions are (1) CONFIG (when the handle is created, but there "
41627 "is no child process), (2) LAUNCHING (when the child process is booting up), "
41628 "(3) alternating between READY and BUSY as commands are issued to, and "
41629 "carried out by, the child process."
41633 #: ../src/guestfs.pod:2337
41635 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
41636 "asynchronously at any time (eg. due to some internal error), and that causes "
41637 "the state to transition back to CONFIG."
41641 #: ../src/guestfs.pod:2341
41643 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
41644 "issued when in the CONFIG state."
41648 #: ../src/guestfs.pod:2344
41650 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
41651 "L</guestfs_launch> blocks until the child process is READY to accept "
41652 "commands (or until some failure or timeout). L</guestfs_launch> internally "
41653 "moves the state from CONFIG to LAUNCHING while it is running."
41657 #: ../src/guestfs.pod:2350
41659 "API actions such as L</guestfs_mount> can only be issued when in the READY "
41660 "state. These API calls block waiting for the command to be carried out (ie. "
41661 "the state to transition to BUSY and then back to READY). There are no non-"
41662 "blocking versions, and no way to issue more than one command per handle at "
41667 #: ../src/guestfs.pod:2356
41669 "Finally, the child process sends asynchronous messages back to the main "
41670 "program, such as kernel log messages. You can register a callback to "
41671 "receive these messages."
41675 #: ../src/guestfs.pod:2360
41680 #: ../src/guestfs.pod:2362
41681 msgid "APPLIANCE BOOT PROCESS"
41685 #: ../src/guestfs.pod:2364
41687 "This process has evolved and continues to evolve. The description here "
41688 "corresponds only to the current version of libguestfs and is provided for "
41689 "information only."
41693 #: ../src/guestfs.pod:2368
41695 "In order to follow the stages involved below, enable libguestfs debugging "
41696 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
41700 #: ../src/guestfs.pod:2373
41701 msgid "Create the appliance"
41705 #: ../src/guestfs.pod:2375
41707 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
41708 "initrd and the appliance."
41712 #: ../src/guestfs.pod:2378
41714 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
41715 "directory if C<TMPDIR> is set)."
41719 #: ../src/guestfs.pod:2381
41721 "For a complete description of how the appliance is created and cached, read "
41722 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
41726 #: ../src/guestfs.pod:2385
41727 msgid "Start qemu and boot the kernel"
41731 #: ../src/guestfs.pod:2387
41732 msgid "qemu is invoked to boot the kernel."
41736 #: ../src/guestfs.pod:2389
41737 msgid "Run the initrd"
41741 #: ../src/guestfs.pod:2391
41743 "C<febootstrap-supermin-helper> builds a small initrd. The initrd is not the "
41744 "appliance. The purpose of the initrd is to load enough kernel modules in "
41745 "order that the appliance itself can be mounted and started."
41749 #: ../src/guestfs.pod:2395
41751 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
41756 #: ../src/guestfs.pod:2398
41758 "When the initrd has started you will see messages showing that kernel "
41759 "modules are being loaded, similar to this:"
41763 #: ../src/guestfs.pod:2401
41766 " febootstrap: ext2 mini initrd starting up\n"
41767 " febootstrap: mounting /sys\n"
41768 " febootstrap: internal insmod libcrc32c.ko\n"
41769 " febootstrap: internal insmod crc32c-intel.ko\n"
41774 #: ../src/guestfs.pod:2406
41775 msgid "Find and mount the appliance device"
41779 #: ../src/guestfs.pod:2408
41781 "The appliance is a sparse file containing an ext2 filesystem which contains "
41782 "a familiar (although reduced in size) Linux operating system. It would "
41783 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
41787 #: ../src/guestfs.pod:2412
41789 "The regular disks being inspected by libguestfs are the first devices "
41790 "exposed by qemu (eg. as C</dev/vda>)."
41794 #: ../src/guestfs.pod:2415
41796 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
41797 "there was only one regular disk)."
41801 #: ../src/guestfs.pod:2418
41803 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
41804 "and switch root into the appliance, and run C</init> from the appliance."
41808 #: ../src/guestfs.pod:2422
41809 msgid "If this works successfully you will see messages such as:"
41813 #: ../src/guestfs.pod:2424
41816 " febootstrap: picked /sys/block/vdb/dev as root device\n"
41817 " febootstrap: creating /dev/root as block special 252:16\n"
41818 " febootstrap: mounting new root on /root\n"
41819 " febootstrap: chroot\n"
41820 " Starting /init script ...\n"
41825 #: ../src/guestfs.pod:2430
41827 "Note that C<Starting /init script ...> indicates that the appliance's init "
41828 "script is now running."
41832 #: ../src/guestfs.pod:2433
41833 msgid "Initialize the appliance"
41837 #: ../src/guestfs.pod:2435
41839 "The appliance itself now initializes itself. This involves starting certain "
41840 "processes like C<udev>, possibly printing some debug information, and "
41841 "finally running the daemon (C<guestfsd>)."
41845 #: ../src/guestfs.pod:2439
41850 #: ../src/guestfs.pod:2441
41852 "Finally the daemon (C<guestfsd>) runs inside the appliance. If it runs you "
41857 #: ../src/guestfs.pod:2444
41860 " verbose daemon enabled\n"
41865 #: ../src/guestfs.pod:2446
41867 "The daemon expects to see a named virtio-serial port exposed by qemu and "
41868 "connected on the other end to the library."
41872 #: ../src/guestfs.pod:2449
41874 "The daemon connects to this port (and hence to the library) and sends a four "
41875 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
41876 "protocol (see below)."
41880 #: ../src/guestfs.pod:2455
41881 msgid "COMMUNICATION PROTOCOL"
41885 #: ../src/guestfs.pod:2457
41887 "Don't rely on using this protocol directly. This section documents how it "
41888 "currently works, but it may change at any time."
41892 #: ../src/guestfs.pod:2460
41894 "The protocol used to talk between the library and the daemon running inside "
41895 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
41896 "1014, RFC 1832, RFC 4506)."
41900 #: ../src/guestfs.pod:2464
41902 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
41903 "this file is automatically generated)."
41907 #: ../src/guestfs.pod:2467
41909 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
41910 "and C<FileOut> parameters, which are handled with very simple request/reply "
41911 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
41912 "parameters, which use the same request and reply messages, but they may also "
41913 "be followed by files sent using a chunked encoding."
41917 #: ../src/guestfs.pod:2474
41918 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
41922 #: ../src/guestfs.pod:2476
41923 msgid "For ordinary functions, the request message is:"
41927 #: ../src/guestfs.pod:2478
41930 " total length (header + arguments,\n"
41931 " but not including the length word itself)\n"
41932 " struct guestfs_message_header (encoded as XDR)\n"
41933 " struct guestfs_<foo>_args (encoded as XDR)\n"
41938 #: ../src/guestfs.pod:2483
41940 "The total length field allows the daemon to allocate a fixed size buffer "
41941 "into which it slurps the rest of the message. As a result, the total length "
41942 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
41943 "effective size of any request is limited to somewhere under this size."
41947 #: ../src/guestfs.pod:2489
41949 "Note also that many functions don't take any arguments, in which case the "
41950 "C<guestfs_I<foo>_args> is completely omitted."
41954 #: ../src/guestfs.pod:2492
41956 "The header contains the procedure number (C<guestfs_proc>) which is how the "
41957 "receiver knows what type of args structure to expect, or none at all."
41961 #: ../src/guestfs.pod:2496
41963 "For functions that take optional arguments, the optional arguments are "
41964 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
41965 "arguments. A bitmask in the header indicates which optional arguments are "
41966 "meaningful. The bitmask is also checked to see if it contains bits set "
41967 "which the daemon does not know about (eg. if more optional arguments were "
41968 "added in a later version of the library), and this causes the call to be "
41973 #: ../src/guestfs.pod:2504
41974 msgid "The reply message for ordinary functions is:"
41978 #: ../src/guestfs.pod:2506
41981 " total length (header + ret,\n"
41982 " but not including the length word itself)\n"
41983 " struct guestfs_message_header (encoded as XDR)\n"
41984 " struct guestfs_<foo>_ret (encoded as XDR)\n"
41989 #: ../src/guestfs.pod:2511
41991 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
41992 "functions that return no formal return values."
41996 #: ../src/guestfs.pod:2514
41998 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
42002 #: ../src/guestfs.pod:2517
42004 "In the case of an error, a flag is set in the header, and the reply message "
42005 "is slightly changed:"
42009 #: ../src/guestfs.pod:2520
42012 " total length (header + error,\n"
42013 " but not including the length word itself)\n"
42014 " struct guestfs_message_header (encoded as XDR)\n"
42015 " struct guestfs_message_error (encoded as XDR)\n"
42020 #: ../src/guestfs.pod:2525
42022 "The C<guestfs_message_error> structure contains the error message as a "
42027 #: ../src/guestfs.pod:2528
42028 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
42032 #: ../src/guestfs.pod:2530
42034 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
42035 "The normal request message is sent (see above). However this is followed by "
42036 "a sequence of file chunks."
42040 #: ../src/guestfs.pod:2534
42043 " total length (header + arguments,\n"
42044 " but not including the length word itself,\n"
42045 " and not including the chunks)\n"
42046 " struct guestfs_message_header (encoded as XDR)\n"
42047 " struct guestfs_<foo>_args (encoded as XDR)\n"
42048 " sequence of chunks for FileIn param #0\n"
42049 " sequence of chunks for FileIn param #1 etc.\n"
42054 #: ../src/guestfs.pod:2542
42055 msgid "The \"sequence of chunks\" is:"
42059 #: ../src/guestfs.pod:2544
42062 " length of chunk (not including length word itself)\n"
42063 " struct guestfs_chunk (encoded as XDR)\n"
42064 " length of chunk\n"
42065 " struct guestfs_chunk (encoded as XDR)\n"
42067 " length of chunk\n"
42068 " struct guestfs_chunk (with data.data_len == 0)\n"
42073 #: ../src/guestfs.pod:2552
42075 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
42076 "is set in the final chunk to indicate either successful completion or early "
42081 #: ../src/guestfs.pod:2556
42083 "At time of writing there are no functions that have more than one FileIn "
42084 "parameter. However this is (theoretically) supported, by sending the "
42085 "sequence of chunks for each FileIn parameter one after another (from left to "
42090 #: ../src/guestfs.pod:2561
42092 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
42093 "transfer. The library does this by sending a chunk with a special flag set "
42094 "to indicate cancellation. When the daemon sees this, it cancels the whole "
42095 "RPC, does I<not> send any reply, and goes back to reading the next request."
42099 #: ../src/guestfs.pod:2567
42101 "The daemon may also cancel. It does this by writing a special word "
42102 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
42103 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
42104 "cancel chunk). The special word is chosen so that even if cancellation "
42105 "happens right at the end of the transfer (after the library has finished "
42106 "writing and has started listening for the reply), the \"spurious\" cancel "
42107 "flag will not be confused with the reply message."
42111 #: ../src/guestfs.pod:2576
42113 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
42114 "limit), and also files where the size is not known in advance (eg. from "
42115 "pipes or sockets). However the chunks are rather small "
42116 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
42117 "to keep much in memory."
42121 #: ../src/guestfs.pod:2582
42122 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
42126 #: ../src/guestfs.pod:2584
42128 "The protocol for FileOut parameters is exactly the same as for FileIn "
42129 "parameters, but with the roles of daemon and library reversed."
42133 #: ../src/guestfs.pod:2587
42136 " total length (header + ret,\n"
42137 " but not including the length word itself,\n"
42138 " and not including the chunks)\n"
42139 " struct guestfs_message_header (encoded as XDR)\n"
42140 " struct guestfs_<foo>_ret (encoded as XDR)\n"
42141 " sequence of chunks for FileOut param #0\n"
42142 " sequence of chunks for FileOut param #1 etc.\n"
42147 #: ../src/guestfs.pod:2595
42148 msgid "INITIAL MESSAGE"
42152 #: ../src/guestfs.pod:2597
42154 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
42155 "which indicates that the guest and daemon is alive. This is what L</"
42156 "guestfs_launch> waits for."
42160 #: ../src/guestfs.pod:2601
42161 msgid "PROGRESS NOTIFICATION MESSAGES"
42165 #: ../src/guestfs.pod:2603
42167 "The daemon may send progress notification messages at any time. These are "
42168 "distinguished by the normal length word being replaced by "
42169 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
42173 #: ../src/guestfs.pod:2607
42175 "The library turns them into progress callbacks (see L</"
42176 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
42181 #: ../src/guestfs.pod:2611
42183 "The daemon self-limits the frequency of progress messages it sends (see "
42184 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
42189 #: ../src/guestfs.pod:2615
42190 msgid "LIBGUESTFS VERSION NUMBERS"
42194 #: ../src/guestfs.pod:2617
42196 "Since April 2010, libguestfs has started to make separate development and "
42197 "stable releases, along with corresponding branches in our git repository. "
42198 "These separate releases can be identified by version number:"
42202 #: ../src/guestfs.pod:2622
42205 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
42206 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
42212 " | `-------- sub-version\n"
42214 " `------ always '1' because we don't change the ABI\n"
42219 #: ../src/guestfs.pod:2633
42220 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
42224 #: ../src/guestfs.pod:2635
42226 "As time passes we cherry pick fixes from the development branch and backport "
42227 "those into the stable branch, the effect being that the stable branch should "
42228 "get more stable and less buggy over time. So the stable releases are ideal "
42229 "for people who don't need new features but would just like the software to "
42234 #: ../src/guestfs.pod:2641
42235 msgid "Our criteria for backporting changes are:"
42239 #: ../src/guestfs.pod:2647
42241 "Documentation changes which don't affect any code are backported unless the "
42242 "documentation refers to a future feature which is not in stable."
42246 #: ../src/guestfs.pod:2653
42248 "Bug fixes which are not controversial, fix obvious problems, and have been "
42249 "well tested are backported."
42253 #: ../src/guestfs.pod:2658
42255 "Simple rearrangements of code which shouldn't affect how it works get "
42256 "backported. This is so that the code in the two branches doesn't get too "
42257 "far out of step, allowing us to backport future fixes more easily."
42261 #: ../src/guestfs.pod:2664
42263 "We I<don't> backport new features, new APIs, new tools etc, except in one "
42264 "exceptional case: the new feature is required in order to implement an "
42265 "important bug fix."
42269 #: ../src/guestfs.pod:2670
42271 "A new stable branch starts when we think the new features in development are "
42272 "substantial and compelling enough over the current stable branch to warrant "
42273 "it. When that happens we create new stable and development versions 1.N.0 "
42274 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
42275 "stable at this point, but by backporting fixes from development, that branch "
42276 "will stabilize over time."
42280 #: ../src/guestfs.pod:2678
42281 msgid "EXTENDING LIBGUESTFS"
42285 #: ../src/guestfs.pod:2680
42286 msgid "ADDING A NEW API ACTION"
42290 #: ../src/guestfs.pod:2682
42292 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
42293 "documentation) are generated, and this makes it easy to extend the "
42298 #: ../src/guestfs.pod:2686
42299 msgid "To add a new API action there are two changes:"
42303 #: ../src/guestfs.pod:2692
42305 "You need to add a description of the call (name, parameters, return type, "
42306 "tests, documentation) to C<generator/generator_actions.ml>."
42310 #: ../src/guestfs.pod:2695
42312 "There are two sorts of API action, depending on whether the call goes "
42313 "through to the daemon in the appliance, or is serviced entirely by the "
42314 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
42315 "former, since the sync is done in the appliance. L</guestfs_set_trace> is "
42316 "an example of the latter, since a trace flag is maintained in the handle and "
42317 "all tracing is done on the library side."
42321 #: ../src/guestfs.pod:2703
42323 "Most new actions are of the first type, and get added to the "
42324 "C<daemon_functions> list. Each function has a unique procedure number used "
42325 "in the RPC protocol which is assigned to that action when we publish "
42326 "libguestfs and cannot be reused. Take the latest procedure number and "
42331 #: ../src/guestfs.pod:2709
42333 "For library-only actions of the second type, add to the "
42334 "C<non_daemon_functions> list. Since these functions are serviced by the "
42335 "library and do not travel over the RPC mechanism to the daemon, these "
42336 "functions do not need a procedure number, and so the procedure number is set "
42341 #: ../src/guestfs.pod:2717
42342 msgid "Implement the action (in C):"
42346 #: ../src/guestfs.pod:2719
42348 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
42349 "C<daemon/> directory."
42353 #: ../src/guestfs.pod:2722
42355 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
42356 "(note: double underscore) in the C<src/> directory."
42360 #: ../src/guestfs.pod:2725
42361 msgid "In either case, use another function as an example of what to do."
42365 #: ../src/guestfs.pod:2729
42366 msgid "After making these changes, use C<make> to compile."
42370 #: ../src/guestfs.pod:2731
42372 "Note that you don't need to implement the RPC, language bindings, manual "
42373 "pages or anything else. It's all automatically generated from the OCaml "
42378 #: ../src/guestfs.pod:2735
42379 msgid "ADDING TESTS FOR AN API ACTION"
42383 #: ../src/guestfs.pod:2737
42385 "You can supply zero or as many tests as you want per API call. The tests "
42386 "can either be added as part of the API description (C<generator/"
42387 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
42388 "into C<regressions/>. Note that adding a script to C<regressions/> is "
42389 "slower, so if possible use the first method."
42393 #: ../src/guestfs.pod:2743
42395 "The following describes the test environment used when you add an API test "
42396 "in C<generator_actions.ml>."
42400 #: ../src/guestfs.pod:2746
42401 msgid "The test environment has 4 block devices:"
42405 #: ../src/guestfs.pod:2750
42406 msgid "C</dev/sda> 500MB"
42407 msgstr "C</dev/sda> 500 МБ"
42410 #: ../src/guestfs.pod:2752
42411 msgid "General block device for testing."
42415 #: ../src/guestfs.pod:2754
42416 msgid "C</dev/sdb> 50MB"
42417 msgstr "C</dev/sdb> 50 МБ"
42420 #: ../src/guestfs.pod:2756
42422 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
42427 #: ../src/guestfs.pod:2759
42428 msgid "C</dev/sdc> 10MB"
42429 msgstr "C</dev/sdc> 10 МБ"
42432 #: ../src/guestfs.pod:2761
42433 msgid "Used in a few tests where two block devices are needed."
42437 #: ../src/guestfs.pod:2763
42438 msgid "C</dev/sdd>"
42439 msgstr "C</dev/sdd>"
42442 #: ../src/guestfs.pod:2765
42443 msgid "ISO with fixed content (see C<images/test.iso>)."
42447 #: ../src/guestfs.pod:2769
42449 "To be able to run the tests in a reasonable amount of time, the libguestfs "
42450 "appliance and block devices are reused between tests. So don't try testing "
42451 "L</guestfs_kill_subprocess> :-x"
42455 #: ../src/guestfs.pod:2773
42457 "Each test starts with an initial scenario, selected using one of the "
42458 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
42459 "initialize the disks mentioned above in a particular way as documented in "
42460 "C<generator_types.ml>. You should not assume anything about the previous "
42461 "contents of other disks that are not initialized."
42465 #: ../src/guestfs.pod:2779
42467 "You can add a prerequisite clause to any individual test. This is a run-"
42468 "time check, which, if it fails, causes the test to be skipped. Useful if "
42469 "testing a command which might not work on all variations of libguestfs "
42470 "builds. A test that has prerequisite of C<Always> means to run "
42475 #: ../src/guestfs.pod:2785
42477 "In addition, packagers can skip individual tests by setting environment "
42478 "variables before running C<make check>."
42482 #: ../src/guestfs.pod:2788
42485 " SKIP_TEST_<CMD>_<NUM>=1\n"
42490 #: ../src/guestfs.pod:2790
42491 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
42495 #: ../src/guestfs.pod:2794
42498 " SKIP_TEST_<CMD>=1\n"
42503 #: ../src/guestfs.pod:2796
42504 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
42508 #: ../src/guestfs.pod:2798
42509 msgid "Packagers can run only certain tests by setting for example:"
42513 #: ../src/guestfs.pod:2800
42516 " TEST_ONLY=\"vfs_type zerofree\"\n"
42521 #: ../src/guestfs.pod:2802
42523 "See C<capitests/tests.c> for more details of how these environment variables "
42528 #: ../src/guestfs.pod:2805
42529 msgid "DEBUGGING NEW API ACTIONS"
42533 #: ../src/guestfs.pod:2807
42534 msgid "Test new actions work before submitting them."
42538 #: ../src/guestfs.pod:2809
42539 msgid "You can use guestfish to try out new commands."
42543 #: ../src/guestfs.pod:2811
42545 "Debugging the daemon is a problem because it runs inside a minimal "
42546 "environment. However you can fprintf messages in the daemon to stderr, and "
42547 "they will show up if you use C<guestfish -v>."
42551 #: ../src/guestfs.pod:2815
42552 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
42556 #: ../src/guestfs.pod:2817
42558 "Our C source code generally adheres to some basic code-formatting "
42559 "conventions. The existing code base is not totally consistent on this "
42560 "front, but we do prefer that contributed code be formatted similarly. In "
42561 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
42562 "indentation level, and other than that, follow the K&R style."
42566 #: ../src/guestfs.pod:2823
42568 "If you use Emacs, add the following to one of one of your start-up files (e."
42569 "g., ~/.emacs), to help ensure that you get indentation right:"
42573 #: ../src/guestfs.pod:2826
42576 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
42577 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
42578 " (add-hook 'find-file-hook\n"
42579 " '(lambda () (if (and buffer-file-name\n"
42580 " (string-match \"/libguestfs\\\\>\"\n"
42581 " (buffer-file-name))\n"
42582 " (not (string-equal mode-name \"Change Log\"))\n"
42583 " (not (string-equal mode-name \"Makefile\")))\n"
42584 " (setq indent-tabs-mode nil))))\n"
42589 #: ../src/guestfs.pod:2836
42592 " ;;; When editing C sources in libguestfs, use this style.\n"
42593 " (defun libguestfs-c-mode ()\n"
42594 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
42596 " (c-set-style \"K&R\")\n"
42597 " (setq c-indent-level 2)\n"
42598 " (setq c-basic-offset 2))\n"
42599 " (add-hook 'c-mode-hook\n"
42600 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
42601 " (buffer-file-name))\n"
42602 " (libguestfs-c-mode))))\n"
42607 #: ../src/guestfs.pod:2848
42608 msgid "Enable warnings when compiling (and fix any problems this finds):"
42612 #: ../src/guestfs.pod:2851
42615 " ./configure --enable-gcc-warnings\n"
42618 " ./configure --enable-gcc-warnings\n"
42622 #: ../src/guestfs.pod:2853
42623 msgid "Useful targets are:"
42627 #: ../src/guestfs.pod:2855
42630 " make syntax-check # checks the syntax of the C code\n"
42631 " make check # runs the test suite\n"
42636 #: ../src/guestfs.pod:2858
42637 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
42641 #: ../src/guestfs.pod:2860
42643 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
42644 "which are used to do shell quoting."
42648 #: ../src/guestfs.pod:2865
42653 #: ../src/guestfs.pod:2867
42655 "Simple shell quoted string. Any spaces or other shell characters are "
42660 #: ../src/guestfs.pod:2870
42665 #: ../src/guestfs.pod:2872
42667 "Same as C<%Q> except the string is treated as a path which is prefixed by "
42672 #: ../src/guestfs.pod:2879
42675 " asprintf (&cmd, \"cat %R\", path);\n"
42678 " asprintf (&cmd, \"cat %R\", path);\n"
42682 #: ../src/guestfs.pod:2881
42683 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
42687 #: ../src/guestfs.pod:2883
42689 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
42690 "{,r,v,rv}()> functions. These parameters do NOT need to be quoted because "
42691 "they are not passed via the shell (instead, straight to exec). You probably "
42692 "want to use the C<sysroot_path()> function however."
42696 #: ../src/guestfs.pod:2889
42697 msgid "SUBMITTING YOUR NEW API ACTIONS"
42701 #: ../src/guestfs.pod:2891
42703 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
42704 "libguestfs> and CC to L<rjones@redhat.com>."
42708 #: ../src/guestfs.pod:2895
42709 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
42713 #: ../src/guestfs.pod:2897
42714 msgid "We support i18n (gettext anyhow) in the library."
42718 #: ../src/guestfs.pod:2899
42720 "However many messages come from the daemon, and we don't translate those at "
42721 "the moment. One reason is that the appliance generally has all locale files "
42722 "removed from it, because they take up a lot of space. So we'd have to readd "
42723 "some of those, as well as copying our PO files into the appliance."
42727 #: ../src/guestfs.pod:2905
42729 "Debugging messages are never translated, since they are intended for the "
42734 #: ../src/guestfs.pod:2908
42735 msgid "SOURCE CODE SUBDIRECTORIES"
42739 #: ../src/guestfs.pod:2912
42744 #: ../src/guestfs.pod:2914
42745 msgid "L<virt-alignment-scan(1)> command and documentation."
42749 #: ../src/guestfs.pod:2918
42750 msgid "The libguestfs appliance, build scripts and so on."
42754 #: ../src/guestfs.pod:2920
42755 msgid "C<capitests>"
42756 msgstr "C<capitests>"
42759 #: ../src/guestfs.pod:2922
42760 msgid "Automated tests of the C API."
42764 #: ../src/guestfs.pod:2924
42769 #: ../src/guestfs.pod:2926
42771 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
42776 #: ../src/guestfs.pod:2929
42778 msgstr "C<caution>"
42781 #: ../src/guestfs.pod:2931
42783 "Safety and liveness tests of components that libguestfs depends upon (not of "
42784 "libguestfs itself). Mainly this is for qemu and the kernel."
42788 #: ../src/guestfs.pod:2934
42793 #: ../src/guestfs.pod:2936
42795 "Tools for cloning virtual machines. Currently contains L<virt-sysprep(1)> "
42796 "command and documentation."
42800 #: ../src/guestfs.pod:2939
42802 msgstr "C<contrib>"
42805 #: ../src/guestfs.pod:2941
42806 msgid "Outside contributions, experimental parts."
42810 #: ../src/guestfs.pod:2943
42815 #: ../src/guestfs.pod:2945
42817 "The daemon that runs inside the libguestfs appliance and carries out actions."
42821 #: ../src/guestfs.pod:2948
42826 #: ../src/guestfs.pod:2950
42827 msgid "L<virt-df(1)> command and documentation."
42831 #: ../src/guestfs.pod:2952
42836 #: ../src/guestfs.pod:2954
42837 msgid "L<virt-edit(1)> command and documentation."
42841 #: ../src/guestfs.pod:2956
42842 msgid "C<examples>"
42843 msgstr "C<examples>"
42846 #: ../src/guestfs.pod:2958
42847 msgid "C API example code."
42848 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
42851 #: ../src/guestfs.pod:2960
42853 #| msgid "C<capitests>"
42854 msgid "C<extratests>"
42855 msgstr "C<capitests>"
42858 #: ../src/guestfs.pod:2962
42860 "Extra tests. These are not run by default because they require special "
42861 "tools or configuration."
42865 #: ../src/guestfs.pod:2965
42870 #: ../src/guestfs.pod:2967
42872 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
42873 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
42874 "L<virt-tar-out(1)>."
42878 #: ../src/guestfs.pod:2971
42883 #: ../src/guestfs.pod:2973
42885 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
42889 #: ../src/guestfs.pod:2975
42890 msgid "C<generator>"
42891 msgstr "C<generator>"
42894 #: ../src/guestfs.pod:2977
42896 "The crucially important generator, used to automatically generate large "
42897 "amounts of boilerplate C code for things like RPC and bindings."
42901 #: ../src/guestfs.pod:2980
42906 #: ../src/guestfs.pod:2982
42907 msgid "Files used by the test suite."
42911 #: ../src/guestfs.pod:2984
42912 msgid "Some \"phony\" guest images which we test against."
42916 #: ../src/guestfs.pod:2986
42917 msgid "C<inspector>"
42918 msgstr "C<inspector>"
42921 #: ../src/guestfs.pod:2988
42922 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
42926 #: ../src/guestfs.pod:2990
42931 #: ../src/guestfs.pod:2992
42932 msgid "Logo used on the website. The fish is called Arthur by the way."
42936 #: ../src/guestfs.pod:2994
42941 #: ../src/guestfs.pod:2996
42942 msgid "M4 macros used by autoconf."
42946 #: ../src/guestfs.pod:2998
42951 #: ../src/guestfs.pod:3000
42952 msgid "Translations of simple gettext strings."
42953 msgstr "Переклади простих рядків gettext."
42956 #: ../src/guestfs.pod:3002
42958 msgstr "C<po-docs>"
42961 #: ../src/guestfs.pod:3004
42963 "The build infrastructure and PO files for translations of manpages and POD "
42964 "files. Eventually this will be combined with the C<po> directory, but that "
42965 "is rather complicated."
42969 #: ../src/guestfs.pod:3008
42970 msgid "C<regressions>"
42971 msgstr "C<regressions>"
42974 #: ../src/guestfs.pod:3010
42975 msgid "Regression tests."
42976 msgstr "Тести на регресії."
42979 #: ../src/guestfs.pod:3012
42984 #: ../src/guestfs.pod:3014
42985 msgid "L<virt-rescue(1)> command and documentation."
42989 #: ../src/guestfs.pod:3016
42994 #: ../src/guestfs.pod:3018
42995 msgid "L<virt-resize(1)> command and documentation."
42999 #: ../src/guestfs.pod:3020
43000 msgid "C<sparsify>"
43004 #: ../src/guestfs.pod:3022
43005 msgid "L<virt-sparsify(1)> command and documentation."
43009 #: ../src/guestfs.pod:3024
43014 #: ../src/guestfs.pod:3026
43015 msgid "Source code to the C library."
43019 #: ../src/guestfs.pod:3028
43024 #: ../src/guestfs.pod:3030
43026 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
43030 #: ../src/guestfs.pod:3032
43031 msgid "C<test-tool>"
43032 msgstr "C<test-tool>"
43035 #: ../src/guestfs.pod:3034
43037 "Test tool for end users to test if their qemu/kernel combination will work "
43042 #: ../src/guestfs.pod:3037
43047 #: ../src/guestfs.pod:3039
43052 #: ../src/guestfs.pod:3041
43054 msgstr "C<haskell>"
43057 #: ../src/guestfs.pod:3043
43062 #: ../src/guestfs.pod:3045
43067 #: ../src/guestfs.pod:3047
43072 #: ../src/guestfs.pod:3049
43077 #: ../src/guestfs.pod:3051
43082 #: ../src/guestfs.pod:3053
43087 #: ../src/guestfs.pod:3055
43088 msgid "Language bindings."
43089 msgstr "Прив’язки до мов програмування."
43092 #: ../src/guestfs.pod:3059
43093 msgid "MAKING A STABLE RELEASE"
43097 #: ../src/guestfs.pod:3061
43099 "When we make a stable release, there are several steps documented here. See "
43100 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
43105 #: ../src/guestfs.pod:3069
43107 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
43111 #: ../src/guestfs.pod:3074
43112 msgid "Finalize RELEASE-NOTES."
43116 #: ../src/guestfs.pod:3078
43117 msgid "Update ROADMAP."
43121 #: ../src/guestfs.pod:3082
43122 msgid "Run C<src/api-support/update-from-tarballs.sh>."
43126 #: ../src/guestfs.pod:3086
43127 msgid "Push and pull from Transifex."
43131 #: ../src/guestfs.pod:3090
43139 #: ../src/guestfs.pod:3092
43140 msgid "to push the latest POT files to Transifex. Then run:"
43144 #: ../src/guestfs.pod:3094
43152 #: ../src/guestfs.pod:3096
43153 msgid "which is a wrapper to pull the latest translated C<*.po> files."
43157 #: ../src/guestfs.pod:3100
43159 "Create new stable and development directories under L<http://libguestfs.org/"
43164 #: ../src/guestfs.pod:3105
43165 msgid "Create the branch in git:"
43169 #: ../src/guestfs.pod:3107
43172 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
43173 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
43174 " git branch stable-1.XX\n"
43175 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
43180 #: ../src/guestfs.pod:3114
43185 #: ../src/guestfs.pod:3116
43186 msgid "PROTOCOL LIMITS"
43187 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
43190 #: ../src/guestfs.pod:3118
43192 "Internally libguestfs uses a message-based protocol to pass API calls and "
43193 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
43194 "plenty more detail about this). The maximum message size used by the "
43195 "protocol is slightly less than 4 MB. For some API calls you may need to be "
43196 "aware of this limit. The API calls which may be affected are individually "
43197 "documented, with a link back to this section of the documentation."
43201 #: ../src/guestfs.pod:3126
43203 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
43204 "a simple string. Because this string is at some point internally encoded as "
43205 "a message, the maximum size that it can return is slightly under 4 MB. If "
43206 "the requested file is larger than this then you will get an error."
43210 #: ../src/guestfs.pod:3132
43212 "In order to transfer large files into and out of the guest filesystem, you "
43213 "need to use particular calls that support this. The sections L</UPLOADING> "
43214 "and L</DOWNLOADING> document how to do this."
43218 #: ../src/guestfs.pod:3136
43220 "You might also consider mounting the disk image using our FUSE filesystem "
43221 "support (L<guestmount(1)>)."
43225 #: ../src/guestfs.pod:3139
43226 msgid "MAXIMUM NUMBER OF DISKS"
43230 #: ../src/guestfs.pod:3141
43231 msgid "When using virtio disks (the default) the current limit is B<25> disks."
43235 #: ../src/guestfs.pod:3144
43237 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
43238 "slots. However febootstrap only understands disks with names C</dev/vda> "
43239 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
43244 #: ../src/guestfs.pod:3149
43246 "We are working to substantially raise this limit in future versions but it "
43247 "requires complex changes to qemu."
43251 #: ../src/guestfs.pod:3152
43253 "In future versions of libguestfs it should also be possible to \"hot plug\" "
43254 "disks (add and remove disks after calling L</guestfs_launch>). This also "
43255 "requires changes to qemu."
43259 #: ../src/guestfs.pod:3156
43260 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
43264 #: ../src/guestfs.pod:3158
43265 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
43269 #: ../src/guestfs.pod:3160
43271 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
43272 "vda>, and C</dev/vda1> through C</dev/vda15>)."
43276 #: ../src/guestfs.pod:3163
43278 "If you attach a disk with more than 15 partitions, the extra partitions are "
43279 "ignored by libguestfs."
43283 #: ../src/guestfs.pod:3166
43284 msgid "MAXIMUM SIZE OF A DISK"
43288 #: ../src/guestfs.pod:3168
43289 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
43293 #: ../src/guestfs.pod:3170
43295 "We have tested block devices up to 1 exabyte (2**60 or "
43296 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
43301 #: ../src/guestfs.pod:3174
43303 "Although libguestfs probably does not impose any limit, the underlying host "
43304 "storage will. If you store disk images on a host ext4 filesystem, then the "
43305 "maximum size will be limited by the maximum ext4 file size (currently 16 "
43306 "TB). If you store disk images as host logical volumes then you are limited "
43307 "by the maximum size of an LV."
43311 #: ../src/guestfs.pod:3180
43313 "For the hugest disk image files, we recommend using XFS on the host for "
43318 #: ../src/guestfs.pod:3183
43319 msgid "MAXIMUM SIZE OF A PARTITION"
43323 #: ../src/guestfs.pod:3185
43325 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
43326 "numbers. Assuming a 512 byte sector size, this means that MBR cannot "
43327 "address a partition located beyond 2 TB on the disk."
43331 #: ../src/guestfs.pod:3189
43333 "It is recommended that you use GPT partitions on disks which are larger than "
43334 "this size. GPT uses 64 bit sector numbers and so can address partitions "
43335 "which are theoretically larger than the largest disk we could support."
43339 #: ../src/guestfs.pod:3194
43340 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
43344 #: ../src/guestfs.pod:3196
43346 "This depends on the filesystem type. libguestfs itself does not impose any "
43347 "known limit. Consult Wikipedia or the filesystem documentation to find out "
43348 "what these limits are."
43352 #: ../src/guestfs.pod:3200
43353 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
43357 #: ../src/guestfs.pod:3202
43359 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
43360 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
43361 "uploads and downloads."
43365 #: ../src/guestfs.pod:3206
43366 msgid "INSPECTION LIMITS"
43370 #: ../src/guestfs.pod:3208
43372 "The inspection code has several arbitrary limits on things like the size of "
43373 "Windows Registry hive it will read, and the length of product name. These "
43374 "are intended to stop a malicious guest from consuming arbitrary amounts of "
43375 "memory and disk space on the host, and should not be reached in practice. "
43376 "See the source code for more information."
43380 #: ../src/guestfs.pod:3234
43382 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
43383 "effect as calling C<guestfs_set_verbose (g, 1)>."
43387 #: ../src/guestfs.pod:3246
43389 "Set the path that libguestfs uses to search for a supermin appliance. See "
43390 "the discussion of paths in section L</PATH> above."
43394 #: ../src/guestfs.pod:3255
43395 msgid "See also L</QEMU WRAPPERS> above."
43399 #: ../src/guestfs.pod:3259
43401 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
43402 "effect as calling C<guestfs_set_trace (g, 1)>."
43406 #: ../src/guestfs.pod:3277
43408 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
43409 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
43410 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
43411 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
43412 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
43413 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
43414 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
43415 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<guestfs-"
43416 "testing(1)>, L<qemu(1)>, L<febootstrap(1)>, L<febootstrap-supermin-helper(8)"
43417 ">, L<hivex(3)>, L<stap(1)>, L<http://libguestfs.org/>."
43421 #: ../src/guestfs.pod:3314
43423 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
43424 "(8)>, L<disktype(1)>."
43428 #: ../src/guestfs.pod:3321 ../tools/virt-make-fs.pl:571
43429 #: ../tools/virt-win-reg.pl:772
43434 #: ../src/guestfs.pod:3323
43435 msgid "To get a list of bugs against libguestfs use this link:"
43437 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
43441 #: ../src/guestfs.pod:3325
43443 "L<https://bugzilla.redhat.com/buglist.cgi?"
43444 "component=libguestfs&product=Virtualization+Tools>"
43446 "L<https://bugzilla.redhat.com/buglist.cgi?"
43447 "component=libguestfs&product=Virtualization+Tools>"
43450 #: ../src/guestfs.pod:3327
43451 msgid "To report a new bug against libguestfs use this link:"
43452 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
43455 #: ../src/guestfs.pod:3329
43457 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
43458 "component=libguestfs&product=Virtualization+Tools>"
43460 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
43461 "component=libguestfs&product=Virtualization+Tools>"
43464 #: ../src/guestfs.pod:3331
43465 msgid "When reporting a bug, please check:"
43469 #: ../src/guestfs.pod:3337
43470 msgid "That the bug hasn't been reported already."
43474 #: ../src/guestfs.pod:3341
43475 msgid "That you are testing a recent version."
43479 #: ../src/guestfs.pod:3345
43480 msgid "Describe the bug accurately, and give a way to reproduce it."
43484 #: ../src/guestfs.pod:3349
43486 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
43491 #: ../test-tool/libguestfs-test-tool.pod:5
43492 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
43496 #: ../test-tool/libguestfs-test-tool.pod:9
43499 " libguestfs-test-tool [--options]\n"
43504 #: ../test-tool/libguestfs-test-tool.pod:13
43506 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
43507 "to check basic libguestfs functionality is working. This is needed because "
43508 "libguestfs occasionally breaks for reasons beyond our control: usually "
43509 "because of changes in the underlying qemu or kernel packages, or the host "
43514 #: ../test-tool/libguestfs-test-tool.pod:19
43515 msgid "If you suspect a problem in libguestfs, then just run:"
43519 #: ../test-tool/libguestfs-test-tool.pod:21
43522 " libguestfs-test-tool\n"
43527 #: ../test-tool/libguestfs-test-tool.pod:23
43528 msgid "It will print lots of diagnostic messages."
43532 #: ../test-tool/libguestfs-test-tool.pod:25
43533 msgid "If it runs to completion successfully, you will see this near the end:"
43537 #: ../test-tool/libguestfs-test-tool.pod:27
43540 " ===== TEST FINISHED OK =====\n"
43545 #: ../test-tool/libguestfs-test-tool.pod:29
43546 msgid "and the test tool will exit with code 0."
43550 #: ../test-tool/libguestfs-test-tool.pod:31
43552 "If it fails (and/or exits with non-zero error code), please paste the "
43553 "I<complete, unedited> output of the test tool into a bug report. More "
43554 "information about reporting bugs can be found on the L<http://libguestfs.org/"
43559 #: ../test-tool/libguestfs-test-tool.pod:42
43560 msgid "Display short usage information and exit."
43564 #: ../test-tool/libguestfs-test-tool.pod:44
43565 msgid "B<--qemu qemu_binary>"
43569 #: ../test-tool/libguestfs-test-tool.pod:46
43571 "If you have downloaded another qemu binary, point this option at the full "
43572 "path of the binary to try it."
43576 #: ../test-tool/libguestfs-test-tool.pod:49
43577 msgid "B<--qemudir qemu_source_dir>"
43581 #: ../test-tool/libguestfs-test-tool.pod:51
43583 "If you have compiled qemu from source, point this option at the source "
43584 "directory to try it."
43588 #: ../test-tool/libguestfs-test-tool.pod:54
43593 #: ../test-tool/libguestfs-test-tool.pod:56
43594 msgid "B<--timeout N>"
43598 #: ../test-tool/libguestfs-test-tool.pod:58
43600 "Set the launch timeout to C<N> seconds. The default is 600 seconds (10 "
43601 "minutes) which does not usually need to be adjusted."
43605 #: ../test-tool/libguestfs-test-tool.pod:63
43606 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
43610 #: ../test-tool/libguestfs-test-tool.pod:65
43612 "If you have compiled another version of qemu from source and would like to "
43613 "try that, then you can use the I<--qemudir> option to point to the qemu "
43614 "source directory."
43618 #: ../test-tool/libguestfs-test-tool.pod:69
43620 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
43621 "option to point to the binary."
43625 #: ../test-tool/libguestfs-test-tool.pod:72
43627 "Note when using these options, you can ignore the business of qemu wrapper "
43628 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
43629 "wrapper script for you if one is needed."
43633 #: ../test-tool/libguestfs-test-tool.pod:76
43634 msgid "TRYING OUT A DIFFERENT KERNEL"
43638 #: ../test-tool/libguestfs-test-tool.pod:78
43640 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
43641 "libguestfs tries. You do this by setting the environment variables "
43642 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
43646 #: ../test-tool/libguestfs-test-tool.pod:82
43648 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
43653 #: ../test-tool/libguestfs-test-tool.pod:85
43654 msgid "SELF-DIAGNOSIS"
43658 #: ../test-tool/libguestfs-test-tool.pod:87
43660 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
43661 "produced by libguestfs-test-tool and/or possible errors."
43665 #: ../test-tool/libguestfs-test-tool.pod:92
43667 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
43668 "I<1> if there was an error."
43672 #: ../test-tool/libguestfs-test-tool.pod:97
43674 "For the full list of environment variables which may affect libguestfs, "
43675 "please see the L<guestfs(3)> manual page."
43679 #: ../test-tool/libguestfs-test-tool.pod:102
43680 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
43684 #: ../tools/virt-list-filesystems.pl:32
43686 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
43690 #: ../tools/virt-list-filesystems.pl:36
43693 " virt-list-filesystems [--options] domname\n"
43698 #: ../tools/virt-list-filesystems.pl:38
43701 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
43706 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
43708 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
43713 #: ../tools/virt-list-filesystems.pl:45
43715 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
43716 "are contained in a virtual machine or disk image."
43720 #: ../tools/virt-list-filesystems.pl:49
43722 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
43723 "functionality. For more complex cases you should look at the L<guestfish(1)"
43728 #: ../tools/virt-list-filesystems.pl:112
43730 "With this option, C<virt-list-filesystems> displays the type of each "
43731 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
43735 #: ../tools/virt-list-filesystems.pl:119
43740 #: ../tools/virt-list-filesystems.pl:123
43742 "Normally we only show mountable filesystems. If this option is given then "
43743 "swap devices are shown too."
43747 #: ../tools/virt-list-filesystems.pl:197
43749 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
43750 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
43751 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43753 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
43754 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
43755 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43758 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
43759 msgid "Copyright (C) 2009 Red Hat Inc."
43760 msgstr "© Red Hat Inc., 2009"
43763 #: ../tools/virt-list-partitions.pl:32
43765 "virt-list-partitions - List partitions in a virtual machine or disk image"
43769 #: ../tools/virt-list-partitions.pl:36
43772 " virt-list-partitions [--options] domname\n"
43775 " virt-list-partitions [--параметри] назва_домену\n"
43779 #: ../tools/virt-list-partitions.pl:38
43782 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
43785 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
43789 #: ../tools/virt-list-partitions.pl:45
43791 "C<virt-list-partitions> is a command line tool to list the partitions that "
43792 "are contained in a virtual machine or disk image. It is mainly useful as a "
43793 "first step to using L<virt-resize(1)>."
43797 #: ../tools/virt-list-partitions.pl:50
43799 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
43800 "functionality. For more complex cases you should look at the L<guestfish(1)"
43805 #: ../tools/virt-list-partitions.pl:113
43806 msgid "Show sizes in human-readable form (eg. \"1G\")."
43810 #: ../tools/virt-list-partitions.pl:123
43812 "With this option, C<virt-list-partitions> displays the type and size of each "
43813 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
43817 #: ../tools/virt-list-partitions.pl:130
43822 #: ../tools/virt-list-partitions.pl:132
43824 msgstr "B<--total>"
43827 #: ../tools/virt-list-partitions.pl:134
43829 "Display the total size of each block device (as a separate row or rows)."
43833 #: ../tools/virt-list-partitions.pl:267
43835 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
43836 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
43837 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43839 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
43840 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
43841 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43844 #: ../tools/virt-list-partitions.pl:283
43845 msgid "Copyright (C) 2009-2010 Red Hat Inc."
43846 msgstr "© Red Hat Inc., 2009–2010"
43849 #: ../tools/virt-make-fs.pl:37
43850 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
43854 #: ../tools/virt-make-fs.pl:41
43857 " virt-make-fs [--options] input.tar output.img\n"
43862 #: ../tools/virt-make-fs.pl:43
43865 " virt-make-fs [--options] input.tar.gz output.img\n"
43870 #: ../tools/virt-make-fs.pl:45
43873 " virt-make-fs [--options] directory output.img\n"
43878 #: ../tools/virt-make-fs.pl:49
43880 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
43881 "archive or some files in a directory. It is similar to tools like L<mkisofs"
43882 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, it can "
43883 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
43884 "you want to attach these filesystems to existing virtual machines (eg. to "
43885 "import large amounts of read-only data to a VM)."
43889 #: ../tools/virt-make-fs.pl:57
43890 msgid "Basic usage is:"
43894 #: ../tools/virt-make-fs.pl:59
43897 " virt-make-fs input output.img\n"
43902 #: ../tools/virt-make-fs.pl:61
43904 "where C<input> is either a directory containing files that you want to add, "
43905 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
43906 "C<output.img> is a disk image. The input type is detected automatically. "
43907 "The output disk image defaults to a raw ext2 sparse image unless you specify "
43908 "extra flags (see L</OPTIONS> below)."
43912 #: ../tools/virt-make-fs.pl:67
43913 msgid "FILESYSTEM TYPE"
43914 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
43917 #: ../tools/virt-make-fs.pl:69
43919 "The default filesystem type is C<ext2>. Just about any filesystem type that "
43920 "libguestfs supports can be used (but I<not> read-only formats like "
43921 "ISO9660). Here are some of the more common choices:"
43925 #: ../tools/virt-make-fs.pl:75
43930 #: ../tools/virt-make-fs.pl:77
43932 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
43933 "you are not going to use the filesystem in a way that requires the journal, "
43934 "then this is just wasted overhead."
43938 #: ../tools/virt-make-fs.pl:81
43939 msgid "I<ntfs> or I<vfat>"
43940 msgstr "I<ntfs> або I<vfat>"
43943 #: ../tools/virt-make-fs.pl:83
43944 msgid "Useful if exporting data to a Windows guest."
43948 #: ../tools/virt-make-fs.pl:85
43950 "I<Note for vfat>: The tar archive or local directory must only contain files "
43951 "which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
43952 "program running within libguestfs is unable to change the ownership of non-"
43953 "root files, since vfat itself does not support this."
43957 #: ../tools/virt-make-fs.pl:90
43962 #: ../tools/virt-make-fs.pl:92
43964 "Lower overhead than C<ext2>, but certain limitations on filename length and "
43965 "total filesystem size."
43969 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
43970 #: ../tools/virt-make-fs.pl:149
43975 #: ../tools/virt-make-fs.pl:99
43978 " virt-make-fs --type=minix input minixfs.img\n"
43983 #: ../tools/virt-make-fs.pl:101
43984 msgid "TO PARTITION OR NOT TO PARTITION"
43988 #: ../tools/virt-make-fs.pl:103
43989 msgid "Optionally virt-make-fs can add a partition table to the output disk."
43993 #: ../tools/virt-make-fs.pl:105
43995 "Adding a partition can make the disk image more compatible with certain "
43996 "virtualized operating systems which don't expect to see a filesystem "
43997 "directly located on a block device (Linux doesn't care and will happily "
43998 "handle both types)."
44002 #: ../tools/virt-make-fs.pl:110
44004 "On the other hand, if you have a partition table then the output image is no "
44005 "longer a straight filesystem. For example you cannot run L<fsck(8)> "
44006 "directly on a partitioned disk image. (However libguestfs tools such as "
44007 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
44011 #: ../tools/virt-make-fs.pl:118
44012 msgid "Add an MBR partition:"
44016 #: ../tools/virt-make-fs.pl:120
44019 " virt-make-fs --partition -- input disk.img\n"
44024 #: ../tools/virt-make-fs.pl:122
44026 "If the output disk image could be terabyte-sized or larger, it's better to "
44027 "use an EFI/GPT-compatible partition table:"
44031 #: ../tools/virt-make-fs.pl:125
44034 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
44039 #: ../tools/virt-make-fs.pl:127
44040 msgid "EXTRA SPACE"
44044 #: ../tools/virt-make-fs.pl:129
44046 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
44047 "the files that it contains, but might have extra space. Depending on how "
44048 "you are going to use the output, you might think this extra space is wasted "
44049 "and want to minimize it, or you might want to leave space so that more files "
44050 "can be added later. Virt-make-fs defaults to minimizing the extra space, "
44051 "but you can use the I<--size> flag to leave space in the filesystem if you "
44056 #: ../tools/virt-make-fs.pl:137
44058 "An alternative way to leave extra space but not make the output image any "
44059 "bigger is to use an alternative disk image format (instead of the default "
44060 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
44061 "image format (check your hypervisor supports this before using it). This "
44062 "allows you to choose a large I<--size> but the extra space won't actually be "
44063 "allocated in the image until you try to store something in it."
44067 #: ../tools/virt-make-fs.pl:145
44069 "Don't forget that you can also use local commands including L<resize2fs(8)> "
44070 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
44071 "to build another image from scratch."
44075 #: ../tools/virt-make-fs.pl:151
44078 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
44081 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
44085 #: ../tools/virt-make-fs.pl:179
44086 msgid "Enable debugging information."
44087 msgstr "Увімкнути виведення діагностичних даних."
44090 #: ../tools/virt-make-fs.pl:185
44091 msgid "B<--size=E<lt>NE<gt>>"
44092 msgstr "B<--size=E<lt>NE<gt>>"
44095 #: ../tools/virt-make-fs.pl:187
44096 msgid "B<--size=+E<lt>NE<gt>>"
44097 msgstr "B<--size=+E<lt>NE<gt>>"
44100 #: ../tools/virt-make-fs.pl:189
44101 msgid "B<-s E<lt>NE<gt>>"
44102 msgstr "B<-s E<lt>NE<gt>>"
44105 #: ../tools/virt-make-fs.pl:191
44106 msgid "B<-s +E<lt>NE<gt>>"
44107 msgstr "B<-s +E<lt>NE<gt>>"
44110 #: ../tools/virt-make-fs.pl:193
44112 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
44116 #: ../tools/virt-make-fs.pl:196
44118 "If this option is I<not> given, then the output image will be just large "
44119 "enough to contain all the files, with not much wasted space."
44123 #: ../tools/virt-make-fs.pl:199
44125 "To choose a fixed size output disk, specify an absolute number followed by b/"
44126 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
44127 "Petabytes or Exabytes. This must be large enough to contain all the input "
44128 "files, else you will get an error."
44132 #: ../tools/virt-make-fs.pl:204
44134 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
44135 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
44136 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
44137 "the input files, and (approximately) an extra 200 MB free space."
44141 #: ../tools/virt-make-fs.pl:210
44143 "Note that virt-make-fs estimates free space, and therefore will not produce "
44144 "filesystems containing precisely the free space requested. (It is much more "
44145 "expensive and time-consuming to produce a filesystem which has precisely the "
44146 "desired free space)."
44150 #: ../tools/virt-make-fs.pl:219
44151 msgid "B<--format=E<lt>fmtE<gt>>"
44155 #: ../tools/virt-make-fs.pl:221
44156 msgid "B<-F E<lt>fmtE<gt>>"
44160 #: ../tools/virt-make-fs.pl:223
44161 msgid "Choose the output disk image format."
44165 #: ../tools/virt-make-fs.pl:225
44166 msgid "The default is C<raw> (raw sparse disk image)."
44170 #: ../tools/virt-make-fs.pl:227
44172 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
44173 "that would really make sense here is C<qcow2>."
44177 #: ../tools/virt-make-fs.pl:234
44178 msgid "B<--type=E<lt>fsE<gt>>"
44182 #: ../tools/virt-make-fs.pl:236
44183 msgid "B<-t E<lt>fsE<gt>>"
44187 #: ../tools/virt-make-fs.pl:238
44188 msgid "Choose the output filesystem type."
44192 #: ../tools/virt-make-fs.pl:240
44193 msgid "The default is C<ext2>."
44194 msgstr "Типовим значенням є C<ext2>."
44197 #: ../tools/virt-make-fs.pl:242
44199 "Any filesystem which is supported read-write by libguestfs can be used here."
44203 #: ../tools/virt-make-fs.pl:249
44204 msgid "B<--partition>"
44205 msgstr "B<--partition>"
44208 #: ../tools/virt-make-fs.pl:251
44209 msgid "B<--partition=E<lt>parttypeE<gt>>"
44213 #: ../tools/virt-make-fs.pl:253
44215 "If specified, this flag adds an MBR partition table to the output disk image."
44219 #: ../tools/virt-make-fs.pl:256
44221 "You can change the partition table type, eg. I<--partition=gpt> for large "
44226 #: ../tools/virt-make-fs.pl:259
44228 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
44229 "might consider the next parameter to be the partition type. For example:"
44233 #: ../tools/virt-make-fs.pl:263
44236 " virt-make-fs --partition input.tar output.img\n"
44241 #: ../tools/virt-make-fs.pl:265
44243 "would cause virt-make-fs to think you wanted to use a partition type of "
44244 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
44245 "dash) between options and the input and output arguments:"
44249 #: ../tools/virt-make-fs.pl:269
44252 " virt-make-fs --partition -- input.tar output.img\n"
44257 #: ../tools/virt-make-fs.pl:271
44258 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
44262 #: ../tools/virt-make-fs.pl:559
44264 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
44265 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
44266 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
44268 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
44269 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
44270 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
44273 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
44275 "When reporting bugs, please enable debugging and capture the I<complete> "
44280 #: ../tools/virt-make-fs.pl:576
44283 " export LIBGUESTFS_DEBUG=1\n"
44284 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
44287 " export LIBGUESTFS_DEBUG=1\n"
44288 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
44292 #: ../tools/virt-make-fs.pl:579
44294 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
44299 #: ../tools/virt-tar.pl:33
44300 msgid "virt-tar - Extract or upload files to a virtual machine"
44304 #: ../tools/virt-tar.pl:37
44307 " virt-tar [--options] -x domname directory tarball\n"
44312 #: ../tools/virt-tar.pl:39
44315 " virt-tar [--options] -u domname tarball directory\n"
44320 #: ../tools/virt-tar.pl:41
44323 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
44328 #: ../tools/virt-tar.pl:43
44331 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
44336 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
44341 #: ../tools/virt-tar.pl:47
44343 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
44344 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
44348 #: ../tools/virt-tar.pl:52
44349 msgid "Download C</home> from the VM into a local tarball:"
44353 #: ../tools/virt-tar.pl:54
44356 " virt-tar -x domname /home home.tar\n"
44361 #: ../tools/virt-tar.pl:56
44364 " virt-tar -zx domname /home home.tar.gz\n"
44369 #: ../tools/virt-tar.pl:58
44370 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
44374 #: ../tools/virt-tar.pl:60
44377 " virt-tar -u domname uploadstuff.tar /tmp\n"
44382 #: ../tools/virt-tar.pl:62
44385 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
44390 #: ../tools/virt-tar.pl:66
44392 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
44393 "virtual machines. If you do this, you risk disk corruption in the VM. "
44394 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
44398 #: ../tools/virt-tar.pl:71
44400 "You can use I<-x> (extract) on live virtual machines, but you might get "
44401 "inconsistent results or errors if there is filesystem activity inside the "
44402 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
44403 "work, but the only way to guarantee consistent results is if the virtual "
44404 "machine is shut down."
44408 #: ../tools/virt-tar.pl:79
44410 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
44411 "parts of a guest filesystem. There are many possibilities: making backups, "
44412 "uploading data files, snooping on guest activity, fixing or customizing "
44417 #: ../tools/virt-tar.pl:84
44419 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
44420 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
44421 "should look at the L<guestfish(1)> tool."
44425 #: ../tools/virt-tar.pl:88
44427 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
44428 "its contents (recursively) from the virtual machine into a local tarball. "
44429 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
44430 "virtual machine. You cannot use these two options together."
44434 #: ../tools/virt-tar.pl:94
44436 "In addition, you may need to use the I<-z> (gZip) option to enable "
44437 "compression. When uploading, you have to specify I<-z> if the upload file "
44438 "is compressed because virt-tar won't detect this on its own."
44442 #: ../tools/virt-tar.pl:98
44444 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
44445 "example it cannot do PKZip files or bzip2 compression. If you want that "
44446 "then you'll have to rebuild the tarballs yourself. (This is a limitation of "
44447 "the L<libguestfs(3)> API)."
44451 #: ../tools/virt-tar.pl:160
44452 msgid "B<--extract>"
44453 msgstr "B<--extract>"
44456 #: ../tools/virt-tar.pl:162
44457 msgid "B<--download>"
44458 msgstr "B<--download>"
44461 #: ../tools/virt-tar.pl:164
44466 #: ../tools/virt-tar.pl:166
44467 msgid "B<--upload>"
44468 msgstr "B<--upload>"
44471 #: ../tools/virt-tar.pl:168
44473 "Use I<-x> to extract (download) a directory from a virtual machine to a "
44478 #: ../tools/virt-tar.pl:171
44480 "Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
44481 "Please read the L</WARNING> section above before using this option."
44485 #: ../tools/virt-tar.pl:175
44486 msgid "You must specify exactly one of these options."
44490 #: ../tools/virt-tar.pl:181
44495 #: ../tools/virt-tar.pl:183
44500 #: ../tools/virt-tar.pl:185
44501 msgid "Specify that the input or output tarball is gzip-compressed."
44505 #: ../tools/virt-tar.pl:298
44507 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
44508 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
44509 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
44512 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
44513 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
44514 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
44518 #: ../tools/virt-win-reg.pl:37
44520 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
44524 #: ../tools/virt-win-reg.pl:41
44527 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
44532 #: ../tools/virt-win-reg.pl:43
44535 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
44540 #: ../tools/virt-win-reg.pl:45
44543 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
44548 #: ../tools/virt-win-reg.pl:47
44551 " virt-win-reg --merge domname [input.reg ...]\n"
44556 #: ../tools/virt-win-reg.pl:49
44559 " virt-win-reg [--options] disk.img ... # instead of domname\n"
44564 #: ../tools/virt-win-reg.pl:53
44566 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
44567 "virtual machines. If you do this, you I<will> get irreversible disk "
44568 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
44569 "but doesn't catch all cases."
44573 #: ../tools/virt-win-reg.pl:58
44575 "Modifying the Windows Registry is an inherently risky operation. The format "
44576 "is deliberately obscure and undocumented, and Registry changes can leave the "
44577 "system unbootable. Therefore when using the I<--merge> option, make sure "
44578 "you have a reliable backup first."
44582 #: ../tools/virt-win-reg.pl:65
44584 "This program can export and merge Windows Registry entries from a Windows "
44589 #: ../tools/virt-win-reg.pl:68
44591 "The first parameter is the libvirt guest name or the raw disk image of a "
44596 #: ../tools/virt-win-reg.pl:71
44598 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
44599 "exported (recursively). For example:"
44603 #: ../tools/virt-win-reg.pl:74
44606 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
44609 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
44613 #: ../tools/virt-win-reg.pl:76
44615 "You can also display single values from within registry keys, for example:"
44619 #: ../tools/virt-win-reg.pl:79
44622 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
44623 " $ virt-win-reg Windows7 $cvkey ProductName\n"
44624 " Windows 7 Enterprise\n"
44627 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
44628 " $ virt-win-reg Windows7 $cvkey ProductName\n"
44629 " Windows 7 Enterprise\n"
44633 #: ../tools/virt-win-reg.pl:83
44635 "With I<--merge>, you can merge a textual regedit file into the Windows "
44640 #: ../tools/virt-win-reg.pl:86
44643 " $ virt-win-reg --merge Windows7 changes.reg\n"
44646 " $ virt-win-reg --merge Windows7 changes.reg\n"
44650 #: ../tools/virt-win-reg.pl:90
44652 "This program is only meant for simple access to the registry. If you want "
44653 "to do complicated things with the registry, we suggest you download the "
44654 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
44655 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
44656 "L<hivexregedit(1)>."
44660 #: ../tools/virt-win-reg.pl:159
44662 msgstr "B<--merge>"
44665 #: ../tools/virt-win-reg.pl:161
44667 "In merge mode, this merges a textual regedit file into the Windows Registry "
44668 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
44669 "displays or exports Registry entries instead."
44673 #: ../tools/virt-win-reg.pl:165
44675 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
44676 "result in disk corruption. However exporting (without this flag) is always "
44681 #: ../tools/virt-win-reg.pl:173
44682 msgid "B<--encoding> UTF-16LE|ASCII"
44683 msgstr "B<--encoding> UTF-16LE|ASCII"
44686 #: ../tools/virt-win-reg.pl:175
44688 "When merging (only), you may need to specify the encoding for strings to be "
44689 "used in the hive file. This is explained in detail in L<Win::Hivex::Regedit"
44690 "(3)/ENCODING STRINGS>."
44694 #: ../tools/virt-win-reg.pl:179
44696 "The default is to use UTF-16LE, which should work with recent versions of "
44701 #: ../tools/virt-win-reg.pl:186
44702 msgid "B<--unsafe-printable-strings>"
44703 msgstr "B<--unsafe-printable-strings>"
44706 #: ../tools/virt-win-reg.pl:188
44708 "When exporting (only), assume strings are UTF-16LE and print them as strings "
44709 "instead of hex sequences. Remove the final zero codepoint from strings if "
44714 #: ../tools/virt-win-reg.pl:192
44716 "This is unsafe and does not preserve the fidelity of strings in the original "
44717 "Registry for various reasons:"
44721 #: ../tools/virt-win-reg.pl:199
44723 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
44724 "other encodings will be corrupted by this transformation."
44728 #: ../tools/virt-win-reg.pl:204
44730 "Assumes that everything which has type 1 or 2 is really a string and that "
44731 "everything else is not a string, but the type field in real Registries is "
44736 #: ../tools/virt-win-reg.pl:210
44738 "Loses information about whether a zero codepoint followed the string in the "
44743 #: ../tools/virt-win-reg.pl:215
44745 "This all happens because the Registry itself contains no information about "
44746 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
44750 #: ../tools/virt-win-reg.pl:219
44752 "You should only use this option for quick hacking and debugging of the "
44753 "Registry contents, and I<never> use it if the output is going to be passed "
44754 "into another program or stored in another Registry."
44758 #: ../tools/virt-win-reg.pl:556
44759 msgid "SUPPORTED SYSTEMS"
44760 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
44763 #: ../tools/virt-win-reg.pl:558
44765 "The program currently supports Windows NT-derived guests starting with "
44766 "Windows XP through to at least Windows 7."
44770 #: ../tools/virt-win-reg.pl:561
44771 msgid "The following Registry keys are supported:"
44775 #: ../tools/virt-win-reg.pl:565
44776 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
44777 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
44780 #: ../tools/virt-win-reg.pl:567
44781 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
44782 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
44785 #: ../tools/virt-win-reg.pl:569
44786 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
44787 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
44790 #: ../tools/virt-win-reg.pl:571
44791 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
44792 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
44795 #: ../tools/virt-win-reg.pl:573
44796 msgid "C<HKEY_USERS\\.DEFAULT>"
44797 msgstr "C<HKEY_USERS\\.DEFAULT>"
44800 #: ../tools/virt-win-reg.pl:575
44801 msgid "C<HKEY_USERS\\I<SID>>"
44802 msgstr "C<HKEY_USERS\\I<SID>>"
44805 #: ../tools/virt-win-reg.pl:577
44806 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
44810 #: ../tools/virt-win-reg.pl:579
44811 msgid "C<HKEY_USERS\\I<username>>"
44812 msgstr "C<HKEY_USERS\\I<користувач>>"
44815 #: ../tools/virt-win-reg.pl:581
44817 "where I<username> is a local user name (this is a libguestfs extension)."
44821 #: ../tools/virt-win-reg.pl:585
44823 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
44828 #: ../tools/virt-win-reg.pl:588
44830 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
44831 "supported (there is no \"current user\")."
44835 #: ../tools/virt-win-reg.pl:591
44840 #: ../tools/virt-win-reg.pl:593
44842 "C<virt-win-reg> expects that regedit files have already been reencoded in "
44843 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
44844 "style line endings. Since Windows regedit files are often in UTF-16LE with "
44845 "Windows-style line endings, you may need to reencode the whole file before "
44846 "or after processing."
44850 #: ../tools/virt-win-reg.pl:599
44852 "To reencode a file from Windows format to Linux (before processing it with "
44853 "the I<--merge> option), you would do something like this:"
44857 #: ../tools/virt-win-reg.pl:602
44860 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
44863 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
44867 #: ../tools/virt-win-reg.pl:604
44869 "To go in the opposite direction, after exporting and before sending the file "
44870 "to a Windows user, do something like this:"
44874 #: ../tools/virt-win-reg.pl:607
44877 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
44880 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
44884 #: ../tools/virt-win-reg.pl:609
44885 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
44889 #: ../tools/virt-win-reg.pl:611
44891 "If you are unsure about the current encoding, use the L<file(1)> command. "
44892 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
44893 "style (CRLF) line endings, like this:"
44897 #: ../tools/virt-win-reg.pl:615
44900 " $ file software.reg\n"
44901 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
44902 " with CRLF line terminators\n"
44907 #: ../tools/virt-win-reg.pl:619
44908 msgid "This file would need conversion before you could I<--merge> it."
44912 #: ../tools/virt-win-reg.pl:621
44913 msgid "CurrentControlSet etc."
44917 #: ../tools/virt-win-reg.pl:623
44919 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
44920 "Registry at the level of the hive file, and therefore you cannot modify "
44925 #: ../tools/virt-win-reg.pl:627
44927 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
44928 "circumstances it might refer to another control set. The way to find out is "
44929 "to look at the C<HKLM\\SYSTEM\\Select> key:"
44933 #: ../tools/virt-win-reg.pl:631
44936 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
44937 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
44938 " \"Current\"=dword:00000001\n"
44939 " \"Default\"=dword:00000001\n"
44940 " \"Failed\"=dword:00000000\n"
44941 " \"LastKnownGood\"=dword:00000002\n"
44944 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
44945 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
44946 " \"Current\"=dword:00000001\n"
44947 " \"Default\"=dword:00000001\n"
44948 " \"Failed\"=dword:00000000\n"
44949 " \"LastKnownGood\"=dword:00000002\n"
44953 #: ../tools/virt-win-reg.pl:638
44954 msgid "\"Current\" is the one which Windows will choose when it boots."
44958 #: ../tools/virt-win-reg.pl:640
44960 "Similarly, other C<Current...> keys in the path may need to be replaced."
44964 #: ../tools/virt-win-reg.pl:643
44965 msgid "DELETING REGISTRY KEYS AND VALUES"
44969 #: ../tools/virt-win-reg.pl:645
44970 msgid "To delete a whole registry key, use the syntax:"
44974 #: ../tools/virt-win-reg.pl:647
44977 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
44982 #: ../tools/virt-win-reg.pl:649
44983 msgid "To delete a single value within a key, use the syntax:"
44987 #: ../tools/virt-win-reg.pl:651
44990 " [HKEY_LOCAL_MACHINE\\Foo]\n"
44996 #: ../tools/virt-win-reg.pl:654
44997 msgid "WINDOWS TIPS"
45001 #: ../tools/virt-win-reg.pl:656
45003 "Note that some of these tips modify the guest disk image. The guest I<must> "
45004 "be shut off, else you will get disk corruption."
45008 #: ../tools/virt-win-reg.pl:659
45009 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
45013 #: ../tools/virt-win-reg.pl:661
45015 "Prepare a DOS batch script, VBScript or executable. Upload this using "
45016 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
45017 "is uploaded into C<C:\\>:"
45021 #: ../tools/virt-win-reg.pl:665
45024 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
45027 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
45031 #: ../tools/virt-win-reg.pl:667
45032 msgid "Prepare a regedit file containing the registry change:"
45036 #: ../tools/virt-win-reg.pl:669
45039 " cat > test.reg <<'EOF'\n"
45040 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
45041 " \"Test\"=\"c:\\\\test.bat\"\n"
45045 " cat > test.reg <<'EOF'\n"
45046 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
45047 " \"Test\"=\"c:\\\\test.bat\"\n"
45052 #: ../tools/virt-win-reg.pl:674
45054 "In this example we use the key C<RunOnce> which means that the script will "
45055 "run precisely once when the first user logs in. If you want it to run every "
45056 "time a user logs in, replace C<RunOnce> with C<Run>."
45060 #: ../tools/virt-win-reg.pl:678
45061 msgid "Now update the registry:"
45062 msgstr "Оновіть регістр:"
45065 #: ../tools/virt-win-reg.pl:680
45068 " virt-win-reg --merge WindowsGuest test.reg\n"
45073 #: ../tools/virt-win-reg.pl:682
45074 msgid "INSTALLING A SERVICE"
45078 #: ../tools/virt-win-reg.pl:684
45080 "This section assumes you are familiar with Windows services, and you either "
45081 "have a program which handles the Windows Service Control Protocol directly "
45082 "or you want to run any program using a service wrapper like SrvAny or the "
45087 #: ../tools/virt-win-reg.pl:689
45089 "First upload the program and optionally the service wrapper. In this case "
45090 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
45094 #: ../tools/virt-win-reg.pl:693
45097 " guestfish -i -d WindowsGuest <<EOF\n"
45098 " upload rhsrvany.exe /rhsrvany.exe\n"
45099 " upload test.exe /test.exe\n"
45103 " guestfish -i -d WindowsGuest <<EOF\n"
45104 " upload rhsrvany.exe /rhsrvany.exe\n"
45105 " upload test.exe /test.exe\n"
45110 #: ../tools/virt-win-reg.pl:698
45112 "Prepare a regedit file containing the registry changes. In this example, "
45113 "the first registry change is needed for the service itself or the service "
45114 "wrapper (if used). The second registry change is only needed because I am "
45115 "using the RHSrvAny service wrapper."
45119 #: ../tools/virt-win-reg.pl:703
45122 " cat > service.reg <<'EOF'\n"
45123 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
45124 " \"Type\"=dword:00000010\n"
45125 " \"Start\"=dword:00000002\n"
45126 " \"ErrorControl\"=dword:00000001\n"
45127 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
45128 " \"DisplayName\"=\"RHSrvAny\"\n"
45129 " \"ObjectName\"=\"NetworkService\"\n"
45132 " cat > service.reg <<'EOF'\n"
45133 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
45134 " \"Type\"=dword:00000010\n"
45135 " \"Start\"=dword:00000002\n"
45136 " \"ErrorControl\"=dword:00000001\n"
45137 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
45138 " \"DisplayName\"=\"RHSrvAny\"\n"
45139 " \"ObjectName\"=\"NetworkService\"\n"
45143 #: ../tools/virt-win-reg.pl:712
45146 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
45147 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
45148 " \"PWD\"=\"c:\\\\Temp\"\n"
45152 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
45153 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
45154 " \"PWD\"=\"c:\\\\Temp\"\n"
45159 #: ../tools/virt-win-reg.pl:723
45161 "For use of C<ControlSet001> see the section above in this manual page. You "
45162 "may need to adjust this according to the control set that is in use by the "
45167 #: ../tools/virt-win-reg.pl:729
45169 "C<\"ObjectName\"> controls the privileges that the service will have. An "
45170 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
45171 "privileged account."
45175 #: ../tools/virt-win-reg.pl:735
45177 "For the meaning of the magic numbers, see this Microsoft KB article: "
45178 "L<http://support.microsoft.com/kb/103000>."
45182 #: ../tools/virt-win-reg.pl:740
45183 msgid "Update the registry:"
45184 msgstr "Оновіть регістр:"
45187 #: ../tools/virt-win-reg.pl:742
45190 " virt-win-reg --merge WindowsGuest service.reg\n"
45195 #: ../tools/virt-win-reg.pl:746
45197 "Be careful when passing parameters containing C<\\> (backslash) in the "
45198 "shell. Usually you will have to use 'single quotes' or double backslashes "
45199 "(but not both) to protect them from the shell."
45203 #: ../tools/virt-win-reg.pl:750
45204 msgid "Paths and value names are case-insensitive."
45208 #: ../tools/virt-win-reg.pl:759
45210 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
45211 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
45212 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
45214 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
45215 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
45216 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
45219 #: ../tools/virt-win-reg.pl:777
45222 " export LIBGUESTFS_DEBUG=1\n"
45223 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
45228 #: ../tools/virt-win-reg.pl:780
45230 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."