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-12-22 16:09+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:2878
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:1293
929 #: ../fish/guestfish-actions.pod:1297 ../fish/guestfish-actions.pod:1301
930 #: ../fish/guestfish-actions.pod:1305 ../fish/guestfish-actions.pod:1313
931 #: ../fish/guestfish-actions.pod:1317 ../fish/guestfish-actions.pod:1321
932 #: ../fish/guestfish-actions.pod:1331 ../fish/guestfish-actions.pod:1335
933 #: ../fish/guestfish-actions.pod:1339 ../fish/guestfish-actions.pod:1429
934 #: ../fish/guestfish-actions.pod:1433 ../fish/guestfish-actions.pod:1438
935 #: ../fish/guestfish-actions.pod:1443 ../fish/guestfish-actions.pod:1485
936 #: ../fish/guestfish-actions.pod:1489 ../fish/guestfish-actions.pod:1494
937 #: ../fish/guestfish-actions.pod:1750 ../fish/guestfish-actions.pod:1757
938 #: ../fish/guestfish-actions.pod:1764 ../fish/guestfish-actions.pod:2167
939 #: ../fish/guestfish-actions.pod:2173 ../fish/guestfish-actions.pod:2181
940 #: ../fish/guestfish-actions.pod:2188 ../fish/guestfish-actions.pod:2195
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:2118
953 #: ../src/guestfs-actions.pod:2122 ../src/guestfs-actions.pod:2126
954 #: ../src/guestfs-actions.pod:2130 ../src/guestfs-actions.pod:2138
955 #: ../src/guestfs-actions.pod:2142 ../src/guestfs-actions.pod:2146
956 #: ../src/guestfs-actions.pod:2156 ../src/guestfs-actions.pod:2160
957 #: ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:2302
958 #: ../src/guestfs-actions.pod:2306 ../src/guestfs-actions.pod:2311
959 #: ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2377
960 #: ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:2386
961 #: ../src/guestfs-actions.pod:2801 ../src/guestfs-actions.pod:2808
962 #: ../src/guestfs-actions.pod:2815 ../src/guestfs-actions.pod:3360
963 #: ../src/guestfs-actions.pod:3366 ../src/guestfs-actions.pod:3374
964 #: ../src/guestfs-actions.pod:3381 ../src/guestfs-actions.pod:3388
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:3048 ../src/guestfs.pod:3053 ../src/guestfs.pod:3057
978 #: ../src/guestfs.pod:3061 ../src/guestfs.pod:3065 ../src/guestfs.pod:3079
979 #: ../src/guestfs.pod:3084 ../src/guestfs.pod:3316 ../src/guestfs.pod:3320
980 #: ../src/guestfs.pod:3324 ../src/guestfs.pod:3328
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:3256
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:3339
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:4519
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:3195 ../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:3335
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:3337
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:3344
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:3349
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:3354
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:1481 ../fish/guestfish-actions.pod:1746
5398 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:18
5399 #: ../src/guestfs-actions.pod:2373 ../src/guestfs-actions.pod:2797
5400 #: ../src/guestfs-actions.pod:3356 ../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:2793
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:3069
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:972
6795 #: ../fish/guestfish-actions.pod:1007 ../fish/guestfish-actions.pod:1180
6796 #: ../fish/guestfish-actions.pod:1540 ../fish/guestfish-actions.pod:1554
6797 #: ../fish/guestfish-actions.pod:3423 ../fish/guestfish-actions.pod:3734
6798 #: ../fish/guestfish-actions.pod:3782 ../fish/guestfish-actions.pod:4700
6799 #: ../fish/guestfish-actions.pod:4720 ../fish/guestfish-actions.pod:4739
6800 #: ../fish/guestfish-actions.pod:4777 ../fish/guestfish-actions.pod:5505
6801 #: ../fish/guestfish-actions.pod:5608 ../src/guestfs-actions.pod:10
6802 #: ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326
6803 #: ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:1676
6804 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2458
6805 #: ../src/guestfs-actions.pod:2479 ../src/guestfs-actions.pod:5281
6806 #: ../src/guestfs-actions.pod:5803 ../src/guestfs-actions.pod:5903
6807 #: ../src/guestfs-actions.pod:7199 ../src/guestfs-actions.pod:7240
6808 #: ../src/guestfs-actions.pod:7271 ../src/guestfs-actions.pod:7331
6809 #: ../src/guestfs-actions.pod:8385 ../src/guestfs-actions.pod:8494
6810 #: ../src/guestfs-actions.pod:8674
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:655 ../fish/guestfish-actions.pod:866
6981 #: ../fish/guestfish-actions.pod:887 ../fish/guestfish-actions.pod:925
6982 #: ../fish/guestfish-actions.pod:934 ../fish/guestfish-actions.pod:943
6983 #: ../fish/guestfish-actions.pod:957 ../fish/guestfish-actions.pod:2202
6984 #: ../fish/guestfish-actions.pod:3250 ../fish/guestfish-actions.pod:3472
6985 #: ../fish/guestfish-actions.pod:3635 ../fish/guestfish-actions.pod:3770
6986 #: ../fish/guestfish-actions.pod:5141
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:3434
7066 #: ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5318
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:3277
7118 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:5039
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:780 ../fish/guestfish-actions.pod:864
7767 #: ../fish/guestfish-actions.pod:885 ../fish/guestfish-actions.pod:1056
7768 #: ../fish/guestfish-actions.pod:1075 ../fish/guestfish-actions.pod:1449
7769 #: ../fish/guestfish-actions.pod:4997 ../fish/guestfish-actions.pod:5009
7770 #: ../fish/guestfish-actions.pod:5020 ../fish/guestfish-actions.pod:5031
7771 #: ../fish/guestfish-actions.pod:5162 ../fish/guestfish-actions.pod:5171
7772 #: ../fish/guestfish-actions.pod:5225 ../fish/guestfish-actions.pod:5248
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
7802 #: ../fish/guestfish-actions.pod:504
7805 #| " lvuuid device\n"
7811 " lvuuid пристрій\n"
7815 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
7817 "This command returns block device attributes for C<device>. The following "
7818 "fields are usually present in the returned hash. Other fields may also be "
7823 #: ../fish/guestfish-actions.pod:511 ../src/guestfs-actions.pod:734
7830 #: ../fish/guestfish-actions.pod:513 ../src/guestfs-actions.pod:736
7832 #| msgid "The time of last access."
7833 msgid "The uuid of this device."
7834 msgstr "Час останнього доступу."
7837 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:738
7842 #: ../fish/guestfish-actions.pod:517 ../src/guestfs-actions.pod:740
7844 #| msgid "The time of last access."
7845 msgid "The label of this device."
7846 msgstr "Час останнього доступу."
7849 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:742
7854 #: ../fish/guestfish-actions.pod:521 ../src/guestfs-actions.pod:744
7855 msgid "The version of blkid command."
7859 #: ../fish/guestfish-actions.pod:523 ../src/guestfs-actions.pod:746
7864 #: ../fish/guestfish-actions.pod:525 ../src/guestfs-actions.pod:748
7865 msgid "The filesystem type or RAID of this device."
7869 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:750
7874 #: ../fish/guestfish-actions.pod:529 ../src/guestfs-actions.pod:752
7875 msgid "The usage of this device, for example C<filesystem> or C<raid>."
7879 #: ../fish/guestfish-actions.pod:533
7880 msgid "blockdev-flushbufs"
7884 #: ../fish/guestfish-actions.pod:535
7887 " blockdev-flushbufs device\n"
7892 #: ../fish/guestfish-actions.pod:537 ../src/guestfs-actions.pod:768
7894 "This tells the kernel to flush internal buffers associated with C<device>."
7898 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:551
7899 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:570
7900 #: ../fish/guestfish-actions.pod:582 ../fish/guestfish-actions.pod:595
7901 #: ../fish/guestfish-actions.pod:603 ../fish/guestfish-actions.pod:614
7902 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:630
7903 #: ../src/guestfs-actions.pod:771 ../src/guestfs-actions.pod:788
7904 #: ../src/guestfs-actions.pod:803 ../src/guestfs-actions.pod:819
7905 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:856
7906 #: ../src/guestfs-actions.pod:870 ../src/guestfs-actions.pod:888
7907 #: ../src/guestfs-actions.pod:902 ../src/guestfs-actions.pod:916
7908 msgid "This uses the L<blockdev(8)> command."
7912 #: ../fish/guestfish-actions.pod:542
7913 msgid "blockdev-getbsz"
7917 #: ../fish/guestfish-actions.pod:544
7920 " blockdev-getbsz device\n"
7925 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:783
7926 msgid "This returns the block size of a device."
7930 #: ../fish/guestfish-actions.pod:548 ../fish/guestfish-actions.pod:611
7931 #: ../src/guestfs-actions.pod:785 ../src/guestfs-actions.pod:885
7933 "(Note this is different from both I<size in blocks> and I<filesystem block "
7938 #: ../fish/guestfish-actions.pod:553
7939 msgid "blockdev-getro"
7943 #: ../fish/guestfish-actions.pod:555
7946 " blockdev-getro device\n"
7951 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:800
7953 "Returns a boolean indicating if the block device is read-only (true if read-"
7954 "only, false if not)."
7958 #: ../fish/guestfish-actions.pod:562
7959 msgid "blockdev-getsize64"
7963 #: ../fish/guestfish-actions.pod:564
7966 " blockdev-getsize64 device\n"
7971 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:815
7972 msgid "This returns the size of the device in bytes."
7976 #: ../fish/guestfish-actions.pod:568
7977 msgid "See also L</blockdev-getsz>."
7978 msgstr "Див. також L</blockdev-getsz>."
7981 #: ../fish/guestfish-actions.pod:572
7982 msgid "blockdev-getss"
7986 #: ../fish/guestfish-actions.pod:574
7989 " blockdev-getss device\n"
7994 #: ../fish/guestfish-actions.pod:576 ../src/guestfs-actions.pod:831
7996 "This returns the size of sectors on a block device. Usually 512, but can be "
7997 "larger for modern devices."
8001 #: ../fish/guestfish-actions.pod:579
8003 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
8007 #: ../fish/guestfish-actions.pod:584
8008 msgid "blockdev-getsz"
8012 #: ../fish/guestfish-actions.pod:586
8015 " blockdev-getsz device\n"
8020 #: ../fish/guestfish-actions.pod:588 ../src/guestfs-actions.pod:849
8022 "This returns the size of the device in units of 512-byte sectors (even if "
8023 "the sectorsize isn't 512 bytes ... weird)."
8027 #: ../fish/guestfish-actions.pod:591
8029 "See also L</blockdev-getss> for the real sector size of the device, and L</"
8030 "blockdev-getsize64> for the more useful I<size in bytes>."
8034 #: ../fish/guestfish-actions.pod:597
8035 msgid "blockdev-rereadpt"
8039 #: ../fish/guestfish-actions.pod:599
8042 " blockdev-rereadpt device\n"
8047 #: ../fish/guestfish-actions.pod:601 ../src/guestfs-actions.pod:868
8048 msgid "Reread the partition table on C<device>."
8052 #: ../fish/guestfish-actions.pod:605
8053 msgid "blockdev-setbsz"
8057 #: ../fish/guestfish-actions.pod:607
8060 " blockdev-setbsz device blocksize\n"
8065 #: ../fish/guestfish-actions.pod:609 ../src/guestfs-actions.pod:883
8066 msgid "This sets the block size of a device."
8070 #: ../fish/guestfish-actions.pod:616
8071 msgid "blockdev-setro"
8075 #: ../fish/guestfish-actions.pod:618
8078 " blockdev-setro device\n"
8083 #: ../fish/guestfish-actions.pod:620 ../src/guestfs-actions.pod:900
8084 msgid "Sets the block device named C<device> to read-only."
8088 #: ../fish/guestfish-actions.pod:624
8089 msgid "blockdev-setrw"
8093 #: ../fish/guestfish-actions.pod:626
8096 " blockdev-setrw device\n"
8101 #: ../fish/guestfish-actions.pod:628 ../src/guestfs-actions.pod:914
8102 msgid "Sets the block device named C<device> to read-write."
8106 #: ../fish/guestfish-actions.pod:632
8107 msgid "btrfs-filesystem-resize"
8111 #: ../fish/guestfish-actions.pod:634
8114 " btrfs-filesystem-resize mountpoint [size:N]\n"
8119 #: ../fish/guestfish-actions.pod:636 ../src/guestfs-actions.pod:936
8120 msgid "This command resizes a btrfs filesystem."
8124 #: ../fish/guestfish-actions.pod:638 ../src/guestfs-actions.pod:938
8126 "Note that unlike other resize calls, the filesystem has to be mounted and "
8127 "the parameter is the mountpoint not the device (this is a requirement of "
8132 #: ../fish/guestfish-actions.pod:642 ../fish/guestfish-actions.pod:3199
8133 #: ../fish/guestfish-actions.pod:3745 ../fish/guestfish-actions.pod:5071
8134 #: ../src/guestfs-actions.pod:942 ../src/guestfs-actions.pod:4935
8135 #: ../src/guestfs-actions.pod:5842 ../src/guestfs-actions.pod:7818
8136 msgid "The optional parameters are:"
8140 #: ../fish/guestfish-actions.pod:646 ../fish/guestfish-actions.pod:3749
8141 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:5846
8146 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:948
8148 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
8149 "resized to the maximum size."
8153 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:953
8154 msgid "See also L<btrfs(8)>."
8155 msgstr "Див. також L<btrfs(8)>."
8158 #: ../fish/guestfish-actions.pod:657
8159 msgid "case-sensitive-path"
8163 #: ../fish/guestfish-actions.pod:659
8166 " case-sensitive-path path\n"
8171 #: ../fish/guestfish-actions.pod:661 ../src/guestfs-actions.pod:987
8173 "This can be used to resolve case insensitive paths on a filesystem which is "
8174 "case sensitive. The use case is to resolve paths which you have read from "
8175 "Windows configuration files or the Windows Registry, to the true path."
8179 #: ../fish/guestfish-actions.pod:666 ../src/guestfs-actions.pod:992
8181 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
8182 "(and probably others), which is that although the underlying filesystem is "
8183 "case-insensitive, the driver exports the filesystem to Linux as case-"
8188 #: ../fish/guestfish-actions.pod:671 ../src/guestfs-actions.pod:997
8190 "One consequence of this is that special directories such as C<c:\\windows> "
8191 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
8192 "precise details of how they were created. In Windows itself this would not "
8197 #: ../fish/guestfish-actions.pod:677 ../src/guestfs-actions.pod:1003
8199 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
8204 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1006
8206 "This function resolves the true case of each element in the path and returns "
8207 "the case-sensitive path."
8211 #: ../fish/guestfish-actions.pod:683
8213 "Thus L</case-sensitive-path> (\"/Windows/System32\") might return C<\"/"
8214 "WINDOWS/system32\"> (the exact return value would depend on details of how "
8215 "the directories were originally created under Windows)."
8219 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1014
8220 msgid "I<Note>: This function does not handle drive names, backslashes etc."
8224 #: ../fish/guestfish-actions.pod:691
8225 msgid "See also L</realpath>."
8226 msgstr "Див. також L</realpath>."
8229 #: ../fish/guestfish-actions.pod:693
8234 #: ../fish/guestfish-actions.pod:695
8244 #: ../fish/guestfish-actions.pod:697 ../fish/guestfish-actions.pod:4176
8245 #: ../src/guestfs-actions.pod:1030 ../src/guestfs-actions.pod:6502
8246 msgid "Return the contents of the file named C<path>."
8250 #: ../fish/guestfish-actions.pod:699
8252 "Note that this function cannot correctly handle binary files (specifically, "
8253 "files containing C<\\0> character which is treated as end of string). For "
8254 "those you need to use the L</read-file> or L</download> functions which have "
8255 "a more complex interface."
8259 #: ../fish/guestfish-actions.pod:704 ../fish/guestfish-actions.pod:839
8260 #: ../fish/guestfish-actions.pod:851 ../fish/guestfish-actions.pod:1134
8261 #: ../fish/guestfish-actions.pod:1144 ../fish/guestfish-actions.pod:1211
8262 #: ../fish/guestfish-actions.pod:1221 ../fish/guestfish-actions.pod:1413
8263 #: ../fish/guestfish-actions.pod:1726 ../fish/guestfish-actions.pod:1736
8264 #: ../fish/guestfish-actions.pod:1786 ../fish/guestfish-actions.pod:1801
8265 #: ../fish/guestfish-actions.pod:1811 ../fish/guestfish-actions.pod:1830
8266 #: ../fish/guestfish-actions.pod:4046 ../fish/guestfish-actions.pod:4061
8267 #: ../fish/guestfish-actions.pod:4137 ../fish/guestfish-actions.pod:4154
8268 #: ../fish/guestfish-actions.pod:4169 ../fish/guestfish-actions.pod:4838
8269 #: ../fish/guestfish-actions.pod:4884 ../fish/guestfish-actions.pod:4969
8270 #: ../fish/guestfish-actions.pod:4984 ../fish/guestfish-actions.pod:5469
8271 #: ../fish/guestfish-actions.pod:5481 ../fish/guestfish-actions.pod:5499
8272 #: ../fish/guestfish-actions.pod:5516 ../fish/guestfish-actions.pod:5526
8273 #: ../fish/guestfish-actions.pod:5580 ../fish/guestfish-actions.pod:5590
8274 #: ../fish/guestfish-actions.pod:5619 ../fish/guestfish-actions.pod:5629
8275 #: ../src/guestfs-actions.pod:1040 ../src/guestfs-actions.pod:1219
8276 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1894
8277 #: ../src/guestfs-actions.pod:1913 ../src/guestfs-actions.pod:2016
8278 #: ../src/guestfs-actions.pod:2035 ../src/guestfs-actions.pod:2281
8279 #: ../src/guestfs-actions.pod:2763 ../src/guestfs-actions.pod:2782
8280 #: ../src/guestfs-actions.pod:2847 ../src/guestfs-actions.pod:2871
8281 #: ../src/guestfs-actions.pod:2888 ../src/guestfs-actions.pod:2917
8282 #: ../src/guestfs-actions.pod:6284 ../src/guestfs-actions.pod:6310
8283 #: ../src/guestfs-actions.pod:6441 ../src/guestfs-actions.pod:6467
8284 #: ../src/guestfs-actions.pod:6491 ../src/guestfs-actions.pod:7446
8285 #: ../src/guestfs-actions.pod:7501 ../src/guestfs-actions.pod:7647
8286 #: ../src/guestfs-actions.pod:7671 ../src/guestfs-actions.pod:8458
8287 #: ../src/guestfs-actions.pod:8478 ../src/guestfs-actions.pod:8511
8288 #: ../src/guestfs-actions.pod:8530 ../src/guestfs-actions.pod:8549
8289 #: ../src/guestfs-actions.pod:8640 ../src/guestfs-actions.pod:8659
8290 #: ../src/guestfs-actions.pod:8705 ../src/guestfs-actions.pod:8724
8292 "Because of the message protocol, there is a transfer limit of somewhere "
8293 "between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>."
8297 #: ../fish/guestfish-actions.pod:707
8302 #: ../fish/guestfish-actions.pod:709
8305 " checksum csumtype path\n"
8310 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1052
8312 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
8316 #: ../fish/guestfish-actions.pod:714 ../src/guestfs-actions.pod:1055
8318 "The type of checksum to compute is given by the C<csumtype> parameter which "
8319 "must have one of the following values:"
8323 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1060
8328 #: ../fish/guestfish-actions.pod:721 ../src/guestfs-actions.pod:1062
8330 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
8335 #: ../fish/guestfish-actions.pod:724 ../src/guestfs-actions.pod:1065
8340 #: ../fish/guestfish-actions.pod:726 ../src/guestfs-actions.pod:1067
8341 msgid "Compute the MD5 hash (using the C<md5sum> program)."
8345 #: ../fish/guestfish-actions.pod:728 ../src/guestfs-actions.pod:1069
8350 #: ../fish/guestfish-actions.pod:730 ../src/guestfs-actions.pod:1071
8351 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
8355 #: ../fish/guestfish-actions.pod:732 ../src/guestfs-actions.pod:1073
8360 #: ../fish/guestfish-actions.pod:734 ../src/guestfs-actions.pod:1075
8361 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
8365 #: ../fish/guestfish-actions.pod:736 ../src/guestfs-actions.pod:1077
8370 #: ../fish/guestfish-actions.pod:738 ../src/guestfs-actions.pod:1079
8371 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
8375 #: ../fish/guestfish-actions.pod:740 ../src/guestfs-actions.pod:1081
8380 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1083
8381 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
8385 #: ../fish/guestfish-actions.pod:744 ../src/guestfs-actions.pod:1085
8390 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1087
8391 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
8395 #: ../fish/guestfish-actions.pod:750 ../src/guestfs-actions.pod:1091
8396 msgid "The checksum is returned as a printable string."
8400 #: ../fish/guestfish-actions.pod:752
8401 msgid "To get the checksum for a device, use L</checksum-device>."
8405 #: ../fish/guestfish-actions.pod:754
8406 msgid "To get the checksums for many files, use L</checksums-out>."
8410 #: ../fish/guestfish-actions.pod:756
8411 msgid "checksum-device"
8412 msgstr "checksum-device"
8415 #: ../fish/guestfish-actions.pod:758
8418 " checksum-device csumtype device\n"
8423 #: ../fish/guestfish-actions.pod:760
8425 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
8426 "device named C<device>. For the types of checksums supported see the L</"
8427 "checksum> command."
8431 #: ../fish/guestfish-actions.pod:764
8432 msgid "checksums-out"
8436 #: ../fish/guestfish-actions.pod:766
8439 " checksums-out csumtype directory (sumsfile|-)\n"
8444 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1126
8446 "This command computes the checksums of all regular files in C<directory> and "
8447 "then emits a list of those checksums to the local output file C<sumsfile>."
8451 #: ../fish/guestfish-actions.pod:772 ../src/guestfs-actions.pod:1130
8453 "This can be used for verifying the integrity of a virtual machine. However "
8454 "to be properly secure you should pay attention to the output of the checksum "
8455 "command (it uses the ones from GNU coreutils). In particular when the "
8456 "filename is not printable, coreutils uses a special backslash syntax. For "
8457 "more information, see the GNU coreutils info file."
8461 #: ../fish/guestfish-actions.pod:782
8466 #: ../fish/guestfish-actions.pod:784
8469 " chmod mode path\n"
8474 #: ../fish/guestfish-actions.pod:786 ../src/guestfs-actions.pod:1149
8476 "Change the mode (permissions) of C<path> to C<mode>. Only numeric modes are "
8481 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1152
8483 "I<Note>: When using this command from guestfish, C<mode> by default would be "
8484 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
8489 #: ../fish/guestfish-actions.pod:793 ../fish/guestfish-actions.pod:3398
8490 #: ../fish/guestfish-actions.pod:3537 ../fish/guestfish-actions.pod:3547
8491 #: ../fish/guestfish-actions.pod:3557 ../src/guestfs-actions.pod:1156
8492 #: ../src/guestfs-actions.pod:5249 ../src/guestfs-actions.pod:5458
8493 #: ../src/guestfs-actions.pod:5477 ../src/guestfs-actions.pod:5496
8494 msgid "The mode actually set is affected by the umask."
8498 #: ../fish/guestfish-actions.pod:795
8503 #: ../fish/guestfish-actions.pod:797
8506 " chown owner group path\n"
8511 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1170
8512 msgid "Change the file owner to C<owner> and group to C<group>."
8516 #: ../fish/guestfish-actions.pod:801 ../fish/guestfish-actions.pod:2738
8517 #: ../src/guestfs-actions.pod:1172 ../src/guestfs-actions.pod:4167
8519 "Only numeric uid and gid are supported. If you want to use names, you will "
8520 "need to locate and parse the password file yourself (Augeas support makes "
8521 "this relatively easy)."
8525 #: ../fish/guestfish-actions.pod:805
8530 #: ../fish/guestfish-actions.pod:807
8533 " command 'arguments ...'\n"
8536 " command 'параметри...'\n"
8540 #: ../fish/guestfish-actions.pod:809 ../src/guestfs-actions.pod:1186
8542 "This call runs a command from the guest filesystem. The filesystem must be "
8543 "mounted, and must contain a compatible operating system (ie. something "
8544 "Linux, with the same or compatible processor architecture)."
8548 #: ../fish/guestfish-actions.pod:814
8550 "The single parameter is an argv-style list of arguments. The first element "
8551 "is the name of the program to run. Subsequent elements are parameters. The "
8552 "list must be non-empty (ie. must contain a program name). Note that the "
8553 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
8557 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1198
8558 msgid "The return value is anything printed to I<stdout> by the command."
8562 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1201
8564 "If the command returns a non-zero exit status, then this function returns an "
8565 "error message. The error message string is the content of I<stderr> from "
8570 #: ../fish/guestfish-actions.pod:828 ../src/guestfs-actions.pod:1205
8572 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
8573 "bin>. If you require a program from another location, you should provide "
8574 "the full path in the first parameter."
8578 #: ../fish/guestfish-actions.pod:833 ../src/guestfs-actions.pod:1210
8580 "Shared libraries and data files required by the program must be available on "
8581 "filesystems which are mounted in the correct places. It is the caller's "
8582 "responsibility to ensure all filesystems that are needed are mounted at the "
8587 #: ../fish/guestfish-actions.pod:842
8588 msgid "command-lines"
8592 #: ../fish/guestfish-actions.pod:844
8595 " command-lines 'arguments ...'\n"
8600 #: ../fish/guestfish-actions.pod:846
8602 "This is the same as L</command>, but splits the result into a list of lines."
8606 #: ../fish/guestfish-actions.pod:849
8607 msgid "See also: L</sh-lines>"
8608 msgstr "Див. також L</sh-lines>"
8611 #: ../fish/guestfish-actions.pod:854
8612 msgid "compress-device-out"
8616 #: ../fish/guestfish-actions.pod:856
8619 " compress-device-out ctype device (zdevice|-) [level:N]\n"
8624 #: ../fish/guestfish-actions.pod:858 ../src/guestfs-actions.pod:1260
8626 "This command compresses C<device> and writes it out to the local file "
8631 #: ../fish/guestfish-actions.pod:861
8633 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
8638 #: ../fish/guestfish-actions.pod:868
8639 msgid "compress-out"
8643 #: ../fish/guestfish-actions.pod:870
8646 " compress-out ctype file (zfile|-) [level:N]\n"
8651 #: ../fish/guestfish-actions.pod:872 ../src/guestfs-actions.pod:1312
8653 "This command compresses C<file> and writes it out to the local file C<zfile>."
8657 #: ../fish/guestfish-actions.pod:875 ../src/guestfs-actions.pod:1315
8659 "The compression program used is controlled by the C<ctype> parameter. "
8660 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>. "
8661 "Some compression types may not be supported by particular builds of "
8662 "libguestfs, in which case you will get an error containing the substring "
8663 "\"not supported\"."
8667 #: ../fish/guestfish-actions.pod:881 ../src/guestfs-actions.pod:1321
8669 "The optional C<level> parameter controls compression level. The meaning and "
8670 "default for this parameter depends on the compression program being used."
8674 #: ../fish/guestfish-actions.pod:889
8679 #: ../fish/guestfish-actions.pod:891
8682 " config qemuparam qemuvalue\n"
8687 #: ../fish/guestfish-actions.pod:893 ../src/guestfs-actions.pod:1362
8689 "This can be used to add arbitrary qemu command line parameters of the form "
8690 "I<-param value>. Actually it's not quite arbitrary - we prevent you from "
8691 "setting some parameters which would interfere with parameters that we use."
8695 #: ../fish/guestfish-actions.pod:898 ../src/guestfs-actions.pod:1367
8696 msgid "The first character of C<param> string must be a C<-> (dash)."
8700 #: ../fish/guestfish-actions.pod:900 ../src/guestfs-actions.pod:1369
8701 msgid "C<value> can be NULL."
8705 #: ../fish/guestfish-actions.pod:902
8706 msgid "copy-device-to-device"
8710 #: ../fish/guestfish-actions.pod:904
8713 " copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8718 #: ../fish/guestfish-actions.pod:906
8720 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
8721 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
8722 "(device|file) to a destination (device|file)."
8726 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1399
8728 "Partial copies can be made since you can specify optionally the source "
8729 "offset, destination offset and size to copy. These values are all specified "
8730 "in bytes. If not given, the offsets both default to zero, and the size "
8731 "defaults to copying as much as possible until we hit the end of the source."
8735 #: ../fish/guestfish-actions.pod:919 ../src/guestfs-actions.pod:1405
8737 "The source and destination may be the same object. However overlapping "
8738 "regions may not be copied correctly."
8742 #: ../fish/guestfish-actions.pod:922 ../src/guestfs-actions.pod:1408
8744 "If the destination is a file, it is created if required. If the destination "
8745 "file is not large enough, it is extended."
8749 #: ../fish/guestfish-actions.pod:927
8750 msgid "copy-device-to-file"
8754 #: ../fish/guestfish-actions.pod:929
8757 " copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8762 #: ../fish/guestfish-actions.pod:931 ../fish/guestfish-actions.pod:940
8763 #: ../fish/guestfish-actions.pod:949
8764 msgid "See L</copy-device-to-device> for a general overview of this call."
8768 #: ../fish/guestfish-actions.pod:936
8769 msgid "copy-file-to-device"
8773 #: ../fish/guestfish-actions.pod:938
8776 " copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8781 #: ../fish/guestfish-actions.pod:945
8782 msgid "copy-file-to-file"
8786 #: ../fish/guestfish-actions.pod:947
8789 " copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8794 #: ../fish/guestfish-actions.pod:952
8796 "This is B<not> the function you want for copying files. This is for copying "
8797 "blocks within existing files. See L</cp>, L</cp-a> and L</mv> for general "
8798 "file copying and moving functions."
8802 #: ../fish/guestfish-actions.pod:959
8807 #: ../fish/guestfish-actions.pod:961
8810 " copy-size src dest size\n"
8815 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1623
8817 "This command copies exactly C<size> bytes from one source device or file "
8818 "C<src> to another destination device or file C<dest>."
8822 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1626
8824 "Note this will fail if the source is too short or if the destination is not "
8829 #: ../fish/guestfish-actions.pod:969 ../fish/guestfish-actions.pod:1004
8831 "I<This function is deprecated.> In new code, use the L</"
8832 "copy_device_to_device> call instead."
8836 #: ../fish/guestfish-actions.pod:976
8841 #: ../fish/guestfish-actions.pod:978
8849 #: ../fish/guestfish-actions.pod:980 ../src/guestfs-actions.pod:1645
8851 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8852 "destination filename or destination directory."
8856 #: ../fish/guestfish-actions.pod:983
8861 #: ../fish/guestfish-actions.pod:985
8869 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1659
8871 "This copies a file or directory from C<src> to C<dest> recursively using the "
8876 #: ../fish/guestfish-actions.pod:990
8881 #: ../fish/guestfish-actions.pod:992
8889 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1680
8891 "This command copies from one source device or file C<src> to another "
8892 "destination device or file C<dest>. Normally you would use this to copy to "
8893 "or from a device or partition, for example to duplicate a filesystem."
8897 #: ../fish/guestfish-actions.pod:999
8899 "If the destination is a device, it must be as large or larger than the "
8900 "source file or device, otherwise the copy will fail. This command cannot do "
8901 "partial copies (see L</copy-device-to-device>)."
8905 #: ../fish/guestfish-actions.pod:1011
8910 #: ../fish/guestfish-actions.pod:1013
8920 #: ../fish/guestfish-actions.pod:1015 ../src/guestfs-actions.pod:1699
8921 msgid "This command runs the C<df> command to report disk space used."
8925 #: ../fish/guestfish-actions.pod:1017 ../fish/guestfish-actions.pod:1028
8927 "This command is mostly useful for interactive sessions. It is I<not> "
8928 "intended that you try to parse the output string. Use L</statvfs> from "
8933 #: ../fish/guestfish-actions.pod:1021
8938 #: ../fish/guestfish-actions.pod:1023
8948 #: ../fish/guestfish-actions.pod:1025 ../src/guestfs-actions.pod:1715
8950 "This command runs the C<df -h> command to report disk space used in human-"
8955 #: ../fish/guestfish-actions.pod:1032
8960 #: ../fish/guestfish-actions.pod:1034
8970 #: ../fish/guestfish-actions.pod:1036 ../src/guestfs-actions.pod:1732
8972 "This returns the kernel messages (C<dmesg> output) from the guest kernel. "
8973 "This is sometimes useful for extended debugging of problems."
8977 #: ../fish/guestfish-actions.pod:1040
8979 "Another way to get the same information is to enable verbose messages with "
8980 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8981 "before running the program."
8985 #: ../fish/guestfish-actions.pod:1045
8990 #: ../fish/guestfish-actions.pod:1047
8993 " download remotefilename (filename|-)\n"
8998 #: ../fish/guestfish-actions.pod:1049 ../fish/guestfish-actions.pod:1062
8999 #: ../src/guestfs-actions.pod:1753 ../src/guestfs-actions.pod:1778
9001 "Download file C<remotefilename> and save it as C<filename> on the local "
9006 #: ../fish/guestfish-actions.pod:1052 ../fish/guestfish-actions.pod:5221
9007 #: ../src/guestfs-actions.pod:1756 ../src/guestfs-actions.pod:8028
9008 msgid "C<filename> can also be a named pipe."
9012 #: ../fish/guestfish-actions.pod:1054
9013 msgid "See also L</upload>, L</cat>."
9017 #: ../fish/guestfish-actions.pod:1058
9018 msgid "download-offset"
9019 msgstr "download-offset"
9022 #: ../fish/guestfish-actions.pod:1060
9025 " download-offset remotefilename (filename|-) offset size\n"
9030 #: ../fish/guestfish-actions.pod:1065 ../src/guestfs-actions.pod:1781
9032 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
9033 "region must be within the file or device)."
9037 #: ../fish/guestfish-actions.pod:1068
9039 "Note that there is no limit on the amount of data that can be downloaded "
9040 "with this call, unlike with L</pread>, and this call always reads the full "
9041 "amount unless an error occurs."
9045 #: ../fish/guestfish-actions.pod:1073
9046 msgid "See also L</download>, L</pread>."
9050 #: ../fish/guestfish-actions.pod:1077
9055 #: ../fish/guestfish-actions.pod:1079
9058 " drop-caches whattodrop\n"
9063 #: ../fish/guestfish-actions.pod:1081 ../src/guestfs-actions.pod:1806
9065 "This instructs the guest kernel to drop its page cache, and/or dentries and "
9066 "inode caches. The parameter C<whattodrop> tells the kernel what precisely "
9067 "to drop, see L<http://linux-mm.org/Drop_Caches>"
9071 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1811
9072 msgid "Setting C<whattodrop> to 3 should drop everything."
9076 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1813
9078 "This automatically calls L<sync(2)> before the operation, so that the "
9079 "maximum guest memory is freed."
9083 #: ../fish/guestfish-actions.pod:1091
9088 #: ../fish/guestfish-actions.pod:1093
9098 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1826
9100 "This command runs the C<du -s> command to estimate file space usage for "
9105 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1829
9107 "C<path> can be a file or a directory. If C<path> is a directory then the "
9108 "estimate includes the contents of the directory and all subdirectories "
9113 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1833
9115 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
9119 #: ../fish/guestfish-actions.pod:1105
9124 #: ../fish/guestfish-actions.pod:1107
9127 " e2fsck-f device\n"
9132 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1851
9134 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
9135 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
9140 #: ../fish/guestfish-actions.pod:1113
9142 "This command is only needed because of L</resize2fs> (q.v.). Normally you "
9143 "should use L</fsck>."
9147 #: ../fish/guestfish-actions.pod:1116
9152 #: ../fish/guestfish-actions.pod:1118
9155 " echo-daemon 'words ...'\n"
9160 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1868
9162 "This command concatenates the list of C<words> passed with single spaces "
9163 "between them and returns the resulting string."
9167 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1871
9168 msgid "You can use this command to test the connection through to the daemon."
9172 #: ../fish/guestfish-actions.pod:1125
9173 msgid "See also L</ping-daemon>."
9174 msgstr "Див. також L</ping-daemon>."
9177 #: ../fish/guestfish-actions.pod:1127
9182 #: ../fish/guestfish-actions.pod:1129
9185 " egrep regex path\n"
9190 #: ../fish/guestfish-actions.pod:1131 ../src/guestfs-actions.pod:1887
9192 "This calls the external C<egrep> program and returns the matching lines."
9196 #: ../fish/guestfish-actions.pod:1137
9201 #: ../fish/guestfish-actions.pod:1139
9204 " egrepi regex path\n"
9209 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1906
9211 "This calls the external C<egrep -i> program and returns the matching lines."
9215 #: ../fish/guestfish-actions.pod:1147
9220 #: ../fish/guestfish-actions.pod:1149
9223 " equal file1 file2\n"
9226 " equal файл1 файл2\n"
9230 #: ../fish/guestfish-actions.pod:1151 ../src/guestfs-actions.pod:1925
9232 "This compares the two files C<file1> and C<file2> and returns true if their "
9233 "content is exactly equal, or false otherwise."
9237 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1928
9238 msgid "The external L<cmp(1)> program is used for the comparison."
9242 #: ../fish/guestfish-actions.pod:1156
9247 #: ../fish/guestfish-actions.pod:1158
9257 #: ../fish/guestfish-actions.pod:1160 ../src/guestfs-actions.pod:1940
9259 "This returns C<true> if and only if there is a file, directory (or anything) "
9260 "with the given C<path> name."
9264 #: ../fish/guestfish-actions.pod:1163
9265 msgid "See also L</is-file>, L</is-dir>, L</stat>."
9266 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
9269 #: ../fish/guestfish-actions.pod:1165
9274 #: ../fish/guestfish-actions.pod:1167
9277 " fallocate path len\n"
9280 " fallocate шлях довжина\n"
9284 #: ../fish/guestfish-actions.pod:1169 ../fish/guestfish-actions.pod:1188
9285 #: ../src/guestfs-actions.pod:1963 ../src/guestfs-actions.pod:1982
9287 "This command preallocates a file (containing zero bytes) named C<path> of "
9288 "size C<len> bytes. If the file exists already, it is overwritten."
9292 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1967
9294 "Do not confuse this with the guestfish-specific C<alloc> command which "
9295 "allocates a file in the host and attaches it as a device."
9299 #: ../fish/guestfish-actions.pod:1177
9301 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
9306 #: ../fish/guestfish-actions.pod:1184
9308 msgstr "fallocate64"
9311 #: ../fish/guestfish-actions.pod:1186
9314 " fallocate64 path len\n"
9317 " fallocate64 шлях довжина\n"
9321 #: ../fish/guestfish-actions.pod:1192
9323 "Note that this call allocates disk blocks for the file. To create a sparse "
9324 "file use L</truncate-size> instead."
9328 #: ../fish/guestfish-actions.pod:1195
9330 "The deprecated call L</fallocate> does the same, but owing to an oversight "
9331 "it only allowed 30 bit lengths to be specified, effectively limiting the "
9332 "maximum size of files created through that call to 1GB."
9336 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1994
9338 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
9339 "commands which create a file in the host and attach it as a device."
9343 #: ../fish/guestfish-actions.pod:1204
9348 #: ../fish/guestfish-actions.pod:1206
9351 " fgrep pattern path\n"
9354 " fgrep шаблон шлях\n"
9358 #: ../fish/guestfish-actions.pod:1208 ../src/guestfs-actions.pod:2009
9360 "This calls the external C<fgrep> program and returns the matching lines."
9364 #: ../fish/guestfish-actions.pod:1214
9369 #: ../fish/guestfish-actions.pod:1216
9372 " fgrepi pattern path\n"
9375 " fgrepi шаблон шлях\n"
9379 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2028
9381 "This calls the external C<fgrep -i> program and returns the matching lines."
9385 #: ../fish/guestfish-actions.pod:1224
9390 #: ../fish/guestfish-actions.pod:1226
9400 #: ../fish/guestfish-actions.pod:1228 ../src/guestfs-actions.pod:2046
9402 "This call uses the standard L<file(1)> command to determine the type or "
9403 "contents of the file."
9407 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:2049
9409 "This call will also transparently look inside various types of compressed "
9414 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2052
9416 "The exact command which runs is C<file -zb path>. Note in particular that "
9417 "the filename is not prepended to the output (the I<-b> option)."
9421 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2056
9423 "The output depends on the output of the underlying L<file(1)> command and it "
9424 "can change in future in ways beyond our control. In other words, the output "
9425 "is not guaranteed by the ABI."
9429 #: ../fish/guestfish-actions.pod:1242
9431 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
9432 "(etc), L</is-zero>."
9436 #: ../fish/guestfish-actions.pod:1245
9437 msgid "file-architecture"
9438 msgstr "file-architecture"
9441 #: ../fish/guestfish-actions.pod:1247
9444 " file-architecture filename\n"
9447 " file-architecture назва_файла\n"
9451 #: ../fish/guestfish-actions.pod:1249 ../src/guestfs-actions.pod:2074
9453 "This detects the architecture of the binary C<filename>, and returns it if "
9458 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2077
9459 msgid "Currently defined architectures are:"
9463 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2081
9468 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2083
9470 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
9471 "irrespective of the precise processor requirements of the binary."
9475 #: ../fish/guestfish-actions.pod:1261 ../src/guestfs-actions.pod:2086
9480 #: ../fish/guestfish-actions.pod:1263 ../src/guestfs-actions.pod:2088
9481 msgid "64 bit x86-64."
9485 #: ../fish/guestfish-actions.pod:1265 ../src/guestfs-actions.pod:2090
9490 #: ../fish/guestfish-actions.pod:1267 ../src/guestfs-actions.pod:2092
9491 msgid "32 bit SPARC."
9495 #: ../fish/guestfish-actions.pod:1269 ../src/guestfs-actions.pod:2094
9500 #: ../fish/guestfish-actions.pod:1271 ../src/guestfs-actions.pod:2096
9501 msgid "64 bit SPARC V9 and above."
9505 #: ../fish/guestfish-actions.pod:1273 ../src/guestfs-actions.pod:2098
9510 #: ../fish/guestfish-actions.pod:1275 ../src/guestfs-actions.pod:2100
9511 msgid "Intel Itanium."
9512 msgstr "Intel Itanium."
9515 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:2102
9520 #: ../fish/guestfish-actions.pod:1279 ../src/guestfs-actions.pod:2104
9521 msgid "32 bit Power PC."
9525 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:2106
9530 #: ../fish/guestfish-actions.pod:1283 ../src/guestfs-actions.pod:2108
9531 msgid "64 bit Power PC."
9535 #: ../fish/guestfish-actions.pod:1287 ../src/guestfs-actions.pod:2112
9536 msgid "Libguestfs may return other architecture strings in future."
9540 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:2114
9541 msgid "The function works on at least the following types of files:"
9545 #: ../fish/guestfish-actions.pod:1295 ../src/guestfs-actions.pod:2120
9546 msgid "many types of Un*x and Linux binary"
9550 #: ../fish/guestfish-actions.pod:1299 ../src/guestfs-actions.pod:2124
9551 msgid "many types of Un*x and Linux shared library"
9555 #: ../fish/guestfish-actions.pod:1303 ../src/guestfs-actions.pod:2128
9556 msgid "Windows Win32 and Win64 binaries"
9560 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:2132
9561 msgid "Windows Win32 and Win64 DLLs"
9565 #: ../fish/guestfish-actions.pod:1309 ../src/guestfs-actions.pod:2134
9566 msgid "Win32 binaries and DLLs return C<i386>."
9570 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2136
9571 msgid "Win64 binaries and DLLs return C<x86_64>."
9575 #: ../fish/guestfish-actions.pod:1315 ../src/guestfs-actions.pod:2140
9576 msgid "Linux kernel modules"
9580 #: ../fish/guestfish-actions.pod:1319 ../src/guestfs-actions.pod:2144
9581 msgid "Linux new-style initrd images"
9585 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2148
9586 msgid "some non-x86 Linux vmlinuz kernels"
9590 #: ../fish/guestfish-actions.pod:1327 ../src/guestfs-actions.pod:2152
9591 msgid "What it can't do currently:"
9595 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2158
9596 msgid "static libraries (libfoo.a)"
9600 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2162
9601 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9605 #: ../fish/guestfish-actions.pod:1341 ../src/guestfs-actions.pod:2166
9606 msgid "x86 Linux vmlinuz kernels"
9610 #: ../fish/guestfish-actions.pod:1343 ../src/guestfs-actions.pod:2168
9612 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9613 "compressed code, and are horribly hard to unpack. If you want to find the "
9614 "architecture of a kernel, use the architecture of the associated initrd or "
9615 "kernel module(s) instead."
9619 #: ../fish/guestfish-actions.pod:1350
9624 #: ../fish/guestfish-actions.pod:1352
9634 #: ../fish/guestfish-actions.pod:1354 ../src/guestfs-actions.pod:2186
9635 msgid "This command returns the size of C<file> in bytes."
9639 #: ../fish/guestfish-actions.pod:1356
9641 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
9642 "file> etc. To get the size of block devices, use L</blockdev-getsize64>."
9646 #: ../fish/guestfish-actions.pod:1360
9651 #: ../fish/guestfish-actions.pod:1362
9654 " fill c len path\n"
9659 #: ../fish/guestfish-actions.pod:1364 ../src/guestfs-actions.pod:2204
9661 "This command creates a new file called C<path>. The initial content of the "
9662 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9667 #: ../fish/guestfish-actions.pod:1368
9669 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9670 "L</truncate-size>. To create a file with a pattern of repeating bytes use "
9675 #: ../fish/guestfish-actions.pod:1373
9676 msgid "fill-pattern"
9677 msgstr "fill-pattern"
9680 #: ../fish/guestfish-actions.pod:1375
9683 " fill-pattern pattern len path\n"
9688 #: ../fish/guestfish-actions.pod:1377
9690 "This function is like L</fill> except that it creates a new file of length "
9691 "C<len> containing the repeating pattern of bytes in C<pattern>. The pattern "
9692 "is truncated if necessary to ensure the length of the file is exactly C<len> "
9697 #: ../fish/guestfish-actions.pod:1382
9702 #: ../fish/guestfish-actions.pod:1384
9712 #: ../fish/guestfish-actions.pod:1386 ../src/guestfs-actions.pod:2250
9714 "This command lists out all files and directories, recursively, starting at "
9715 "C<directory>. It is essentially equivalent to running the shell command "
9716 "C<find directory -print> but some post-processing happens on the output, "
9721 #: ../fish/guestfish-actions.pod:1391 ../src/guestfs-actions.pod:2255
9723 "This returns a list of strings I<without any prefix>. Thus if the directory "
9728 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2258
9738 #: ../fish/guestfish-actions.pod:1398
9739 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
9743 #: ../fish/guestfish-actions.pod:1401 ../src/guestfs-actions.pod:2265
9754 #: ../fish/guestfish-actions.pod:1406 ../src/guestfs-actions.pod:2270
9755 msgid "If C<directory> is not a directory, then this command returns an error."
9759 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2273
9760 msgid "The returned list is sorted."
9764 #: ../fish/guestfish-actions.pod:1411
9765 msgid "See also L</find0>."
9766 msgstr "Див. також L</find0>."
9769 #: ../fish/guestfish-actions.pod:1416
9774 #: ../fish/guestfish-actions.pod:1418
9777 " find0 directory (files|-)\n"
9780 " find0 каталог (файли|-)\n"
9784 #: ../fish/guestfish-actions.pod:1420 ../src/guestfs-actions.pod:2293
9786 "This command lists out all files and directories, recursively, starting at "
9787 "C<directory>, placing the resulting list in the external file called "
9792 #: ../fish/guestfish-actions.pod:1424
9794 "This command works the same way as L</find> with the following exceptions:"
9798 #: ../fish/guestfish-actions.pod:1431 ../src/guestfs-actions.pod:2304
9799 msgid "The resulting list is written to an external file."
9803 #: ../fish/guestfish-actions.pod:1435 ../src/guestfs-actions.pod:2308
9805 "Items (filenames) in the result are separated by C<\\0> characters. See "
9806 "L<find(1)> option I<-print0>."
9810 #: ../fish/guestfish-actions.pod:1440 ../src/guestfs-actions.pod:2313
9811 msgid "This command is not limited in the number of names that it can return."
9815 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2318
9816 msgid "The result list is not sorted."
9820 #: ../fish/guestfish-actions.pod:1451
9821 msgid "findfs-label"
9822 msgstr "findfs-label"
9825 #: ../fish/guestfish-actions.pod:1453
9828 " findfs-label label\n"
9831 " findfs-label мітка\n"
9835 #: ../fish/guestfish-actions.pod:1455 ../src/guestfs-actions.pod:2332
9837 "This command searches the filesystems and returns the one which has the "
9838 "given label. An error is returned if no such filesystem can be found."
9842 #: ../fish/guestfish-actions.pod:1459
9843 msgid "To find the label of a filesystem, use L</vfs-label>."
9844 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
9847 #: ../fish/guestfish-actions.pod:1461
9849 msgstr "findfs-uuid"
9852 #: ../fish/guestfish-actions.pod:1463
9855 " findfs-uuid uuid\n"
9858 " findfs-uuid uuid\n"
9862 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
9864 "This command searches the filesystems and returns the one which has the "
9865 "given UUID. An error is returned if no such filesystem can be found."
9869 #: ../fish/guestfish-actions.pod:1469
9870 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
9871 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
9874 #: ../fish/guestfish-actions.pod:1471
9879 #: ../fish/guestfish-actions.pod:1473
9882 " fsck fstype device\n"
9885 " fsck тип_файлової_системи пристрій\n"
9889 #: ../fish/guestfish-actions.pod:1475 ../src/guestfs-actions.pod:2367
9891 "This runs the filesystem checker (fsck) on C<device> which should have "
9892 "filesystem type C<fstype>."
9896 #: ../fish/guestfish-actions.pod:1478 ../src/guestfs-actions.pod:2370
9898 "The returned integer is the status. See L<fsck(8)> for the list of status "
9899 "codes from C<fsck>."
9903 #: ../fish/guestfish-actions.pod:1487 ../src/guestfs-actions.pod:2379
9904 msgid "Multiple status codes can be summed together."
9908 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2383
9910 "A non-zero return code can mean \"success\", for example if errors have been "
9911 "corrected on the filesystem."
9915 #: ../fish/guestfish-actions.pod:1496 ../src/guestfs-actions.pod:2388
9916 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9920 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2393
9922 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9926 #: ../fish/guestfish-actions.pod:1503
9931 #: ../fish/guestfish-actions.pod:1505
9941 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2404
9943 "Return the additional kernel options which are added to the guest kernel "
9948 #: ../fish/guestfish-actions.pod:1510 ../src/guestfs-actions.pod:2407
9949 msgid "If C<NULL> then no options are added."
9953 #: ../fish/guestfish-actions.pod:1512
9954 msgid "get-attach-method"
9955 msgstr "get-attach-method"
9958 #: ../fish/guestfish-actions.pod:1514
9961 " get-attach-method\n"
9964 " get-attach-method\n"
9968 #: ../fish/guestfish-actions.pod:1516
9969 msgid "Return the current attach method. See L</set-attach-method>."
9973 #: ../fish/guestfish-actions.pod:1518
9974 msgid "get-autosync"
9975 msgstr "get-autosync"
9978 #: ../fish/guestfish-actions.pod:1520
9988 #: ../fish/guestfish-actions.pod:1522 ../src/guestfs-actions.pod:2432
9989 msgid "Get the autosync flag."
9993 #: ../fish/guestfish-actions.pod:1524
9998 #: ../fish/guestfish-actions.pod:1526
10008 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2443
10009 msgid "Return the direct appliance mode flag."
10013 #: ../fish/guestfish-actions.pod:1530
10014 msgid "get-e2label"
10015 msgstr "get-e2label"
10018 #: ../fish/guestfish-actions.pod:1532
10021 " get-e2label device\n"
10024 " get-e2label пристрій\n"
10028 #: ../fish/guestfish-actions.pod:1534 ../src/guestfs-actions.pod:2462
10030 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
10034 #: ../fish/guestfish-actions.pod:1537
10036 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
10041 #: ../fish/guestfish-actions.pod:1544
10043 msgstr "get-e2uuid"
10046 #: ../fish/guestfish-actions.pod:1546
10049 " get-e2uuid device\n"
10052 " get-e2uuid пристрій\n"
10056 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2483
10058 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
10062 #: ../fish/guestfish-actions.pod:1551
10064 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
10069 #: ../fish/guestfish-actions.pod:1558
10070 msgid "get-memsize"
10071 msgstr "get-memsize"
10074 #: ../fish/guestfish-actions.pod:1560
10084 #: ../fish/guestfish-actions.pod:1562 ../src/guestfs-actions.pod:2496
10086 "This gets the memory size in megabytes allocated to the qemu subprocess."
10090 #: ../fish/guestfish-actions.pod:1565
10092 "If L</set-memsize> was not called on this handle, and if "
10093 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
10094 "value for memsize."
10098 #: ../fish/guestfish-actions.pod:1569 ../fish/guestfish-actions.pod:1626
10099 #: ../fish/guestfish-actions.pod:4499 ../fish/guestfish-actions.pod:4601
10100 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2595
10101 #: ../src/guestfs-actions.pod:6960 ../src/guestfs-actions.pod:7086
10103 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
10107 #: ../fish/guestfish-actions.pod:1572
10108 msgid "get-network"
10109 msgstr "get-network"
10112 #: ../fish/guestfish-actions.pod:1574
10122 #: ../fish/guestfish-actions.pod:1576 ../src/guestfs-actions.pod:2515
10123 msgid "This returns the enable network flag."
10127 #: ../fish/guestfish-actions.pod:1578
10132 #: ../fish/guestfish-actions.pod:1580
10142 #: ../fish/guestfish-actions.pod:1582 ../src/guestfs-actions.pod:2526
10143 msgid "Return the current search path."
10147 #: ../fish/guestfish-actions.pod:1584 ../src/guestfs-actions.pod:2528
10149 "This is always non-NULL. If it wasn't set already, then this will return "
10150 "the default path."
10154 #: ../fish/guestfish-actions.pod:1587
10159 #: ../fish/guestfish-actions.pod:1589
10167 #: ../fish/guestfish-actions.pod:1591 ../src/guestfs-actions.pod:2541
10168 msgid "This returns the process group flag."
10172 #: ../fish/guestfish-actions.pod:1593
10177 #: ../fish/guestfish-actions.pod:1595
10182 #: ../fish/guestfish-actions.pod:1597
10192 #: ../fish/guestfish-actions.pod:1599 ../src/guestfs-actions.pod:2552
10194 "Return the process ID of the qemu subprocess. If there is no qemu "
10195 "subprocess, then this will return an error."
10199 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2555
10200 msgid "This is an internal call used for debugging and testing."
10204 #: ../fish/guestfish-actions.pod:1604
10209 #: ../fish/guestfish-actions.pod:1606
10219 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2566
10220 msgid "Return the current qemu binary."
10224 #: ../fish/guestfish-actions.pod:1610 ../src/guestfs-actions.pod:2568
10226 "This is always non-NULL. If it wasn't set already, then this will return "
10227 "the default qemu binary name."
10231 #: ../fish/guestfish-actions.pod:1613
10232 msgid "get-recovery-proc"
10233 msgstr "get-recovery-proc"
10236 #: ../fish/guestfish-actions.pod:1615
10239 " get-recovery-proc\n"
10242 " get-recovery-proc\n"
10246 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2581
10247 msgid "Return the recovery process enabled flag."
10251 #: ../fish/guestfish-actions.pod:1619
10252 msgid "get-selinux"
10253 msgstr "get-selinux"
10256 #: ../fish/guestfish-actions.pod:1621
10266 #: ../fish/guestfish-actions.pod:1623
10268 "This returns the current setting of the selinux flag which is passed to the "
10269 "appliance at boot time. See L</set-selinux>."
10273 #: ../fish/guestfish-actions.pod:1629
10278 #: ../fish/guestfish-actions.pod:1631
10286 #: ../fish/guestfish-actions.pod:1633 ../src/guestfs-actions.pod:2607
10287 msgid "This returns the number of virtual CPUs assigned to the appliance."
10291 #: ../fish/guestfish-actions.pod:1635
10296 #: ../fish/guestfish-actions.pod:1637
10306 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2618
10308 "This returns the current state as an opaque integer. This is only useful "
10309 "for printing debug and internal error messages."
10313 #: ../fish/guestfish-actions.pod:1642 ../fish/guestfish-actions.pod:2605
10314 #: ../fish/guestfish-actions.pod:2623 ../fish/guestfish-actions.pod:2661
10315 #: ../fish/guestfish-actions.pod:2677 ../src/guestfs-actions.pod:2621
10316 #: ../src/guestfs-actions.pod:3944 ../src/guestfs-actions.pod:3973
10317 #: ../src/guestfs-actions.pod:4034 ../src/guestfs-actions.pod:4061
10318 msgid "For more information on states, see L<guestfs(3)>."
10322 #: ../fish/guestfish-actions.pod:1644
10327 #: ../fish/guestfish-actions.pod:1646
10337 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2632
10338 msgid "Return the command trace flag."
10342 #: ../fish/guestfish-actions.pod:1650
10347 #: ../fish/guestfish-actions.pod:1652
10357 #: ../fish/guestfish-actions.pod:1654
10359 "Return the current umask. By default the umask is C<022> unless it has been "
10360 "set by calling L</umask>."
10364 #: ../fish/guestfish-actions.pod:1657
10365 msgid "get-verbose"
10366 msgstr "get-verbose"
10369 #: ../fish/guestfish-actions.pod:1659
10379 #: ../fish/guestfish-actions.pod:1661 ../src/guestfs-actions.pod:2655
10380 msgid "This returns the verbose messages flag."
10384 #: ../fish/guestfish-actions.pod:1663
10389 #: ../fish/guestfish-actions.pod:1665
10399 #: ../fish/guestfish-actions.pod:1667 ../src/guestfs-actions.pod:2666
10400 msgid "This gets the SELinux security context of the daemon."
10404 #: ../fish/guestfish-actions.pod:1669
10405 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
10409 #: ../fish/guestfish-actions.pod:1672
10414 #: ../fish/guestfish-actions.pod:1674
10417 " getxattr path name\n"
10420 " getxattr шлях назва\n"
10424 #: ../fish/guestfish-actions.pod:1676
10426 "Get a single extended attribute from file C<path> named C<name>. This call "
10427 "follows symlinks. If you want to lookup an extended attribute for the "
10428 "symlink itself, use L</lgetxattr>."
10432 #: ../fish/guestfish-actions.pod:1680 ../fish/guestfish-actions.pod:2750
10434 "Normally it is better to get all extended attributes from a file in one go "
10435 "by calling L</getxattrs>. However some Linux filesystem implementations are "
10436 "buggy and do not provide a way to list out attributes. For these "
10437 "filesystems (notably ntfs-3g) you have to know the names of the extended "
10438 "attributes you want in advance and call this function."
10442 #: ../fish/guestfish-actions.pod:1687 ../fish/guestfish-actions.pod:2757
10443 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:4194
10445 "Extended attribute values are blobs of binary data. If there is no extended "
10446 "attribute named C<name>, this returns an error."
10450 #: ../fish/guestfish-actions.pod:1690
10451 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
10452 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
10455 #: ../fish/guestfish-actions.pod:1692
10460 #: ../fish/guestfish-actions.pod:1694
10463 " getxattrs path\n"
10466 " getxattrs шлях\n"
10470 #: ../fish/guestfish-actions.pod:1696 ../src/guestfs-actions.pod:2712
10472 "This call lists the extended attributes of the file or directory C<path>."
10476 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2715
10478 "At the system call level, this is a combination of the L<listxattr(2)> and "
10479 "L<getxattr(2)> calls."
10483 #: ../fish/guestfish-actions.pod:1702
10484 msgid "See also: L</lgetxattrs>, L<attr(5)>."
10485 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
10488 #: ../fish/guestfish-actions.pod:1704
10489 msgid "glob-expand"
10490 msgstr "glob-expand"
10493 #: ../fish/guestfish-actions.pod:1706
10496 " glob-expand pattern\n"
10499 " glob-expand шаблон\n"
10503 #: ../fish/guestfish-actions.pod:1708 ../src/guestfs-actions.pod:2732
10505 "This command searches for all the pathnames matching C<pattern> according to "
10506 "the wildcard expansion rules used by the shell."
10510 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2736
10512 "If no paths match, then this returns an empty list (note: not an error)."
10516 #: ../fish/guestfish-actions.pod:1715 ../src/guestfs-actions.pod:2739
10518 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
10519 "GLOB_BRACE>. See that manual page for more details."
10523 #: ../fish/guestfish-actions.pod:1719
10528 #: ../fish/guestfish-actions.pod:1721
10531 " grep regex path\n"
10534 " grepi формальний_вираз шлях\n"
10538 #: ../fish/guestfish-actions.pod:1723 ../src/guestfs-actions.pod:2756
10539 msgid "This calls the external C<grep> program and returns the matching lines."
10543 #: ../fish/guestfish-actions.pod:1729
10548 #: ../fish/guestfish-actions.pod:1731
10551 " grepi regex path\n"
10554 " grepi формальний_вираз шлях\n"
10558 #: ../fish/guestfish-actions.pod:1733 ../src/guestfs-actions.pod:2775
10560 "This calls the external C<grep -i> program and returns the matching lines."
10564 #: ../fish/guestfish-actions.pod:1739
10565 msgid "grub-install"
10566 msgstr "grub-install"
10569 #: ../fish/guestfish-actions.pod:1741
10572 " grub-install root device\n"
10575 " grub-install кореневий пристрій\n"
10579 #: ../fish/guestfish-actions.pod:1743 ../src/guestfs-actions.pod:2794
10581 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
10582 "with the root directory being C<root>."
10586 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2803
10588 "There is currently no way in the API to install grub2, which is used by most "
10589 "modern Linux guests. It is possible to run the grub2 command from the "
10590 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
10594 #: ../fish/guestfish-actions.pod:1759 ../src/guestfs-actions.pod:2810
10596 "This uses C<grub-install> from the host. Unfortunately grub is not always "
10597 "compatible with itself, so this only works in rather narrow circumstances. "
10598 "Careful testing with each guest version is advisable."
10602 #: ../fish/guestfish-actions.pod:1766 ../src/guestfs-actions.pod:2817
10604 "If grub-install reports the error \"No suitable drive was found in the "
10605 "generated device map.\" it may be that you need to create a C</boot/grub/"
10606 "device.map> file first that contains the mapping between grub device names "
10607 "and Linux device names. It is usually sufficient to create a file "
10612 #: ../fish/guestfish-actions.pod:1773 ../src/guestfs-actions.pod:2824
10615 " (hd0) /dev/vda\n"
10620 #: ../fish/guestfish-actions.pod:1775 ../src/guestfs-actions.pod:2826
10621 msgid "replacing C</dev/vda> with the name of the installation device."
10625 #: ../fish/guestfish-actions.pod:1779
10630 #: ../fish/guestfish-actions.pod:1781
10640 #: ../fish/guestfish-actions.pod:1783 ../src/guestfs-actions.pod:2840
10642 "This command returns up to the first 10 lines of a file as a list of strings."
10646 #: ../fish/guestfish-actions.pod:1789
10651 #: ../fish/guestfish-actions.pod:1791
10654 " head-n nrlines path\n"
10659 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2859
10661 "If the parameter C<nrlines> is a positive number, this returns the first "
10662 "C<nrlines> lines of the file C<path>."
10666 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2862
10668 "If the parameter C<nrlines> is a negative number, this returns lines from "
10669 "the file C<path>, excluding the last C<nrlines> lines."
10673 #: ../fish/guestfish-actions.pod:1799 ../fish/guestfish-actions.pod:4982
10674 #: ../src/guestfs-actions.pod:2865 ../src/guestfs-actions.pod:7665
10675 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
10679 #: ../fish/guestfish-actions.pod:1804
10684 #: ../fish/guestfish-actions.pod:1806
10694 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2882
10696 "This runs C<hexdump -C> on the given C<path>. The result is the human-"
10697 "readable, canonical hex dump of the file."
10701 #: ../fish/guestfish-actions.pod:1814
10703 msgstr "initrd-cat"
10706 #: ../fish/guestfish-actions.pod:1816
10709 " initrd-cat initrdpath filename\n"
10712 " initrd-cat шлях_initrd назва_файла\n"
10716 #: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2901
10718 "This command unpacks the file C<filename> from the initrd file called "
10719 "C<initrdpath>. The filename must be given I<without> the initial C</> "
10724 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2905
10726 "For example, in guestfish you could use the following command to examine the "
10727 "boot script (usually called C</init>) contained in a Linux initrd or "
10732 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2909
10735 " initrd-cat /boot/initrd-<version>.img init\n"
10740 #: ../fish/guestfish-actions.pod:1828
10741 msgid "See also L</initrd-list>."
10742 msgstr "Див. також L</initrd-list>."
10745 #: ../fish/guestfish-actions.pod:1833
10746 msgid "initrd-list"
10747 msgstr "initrd-list"
10750 #: ../fish/guestfish-actions.pod:1835
10753 " initrd-list path\n"
10756 " initrd-list шлях\n"
10760 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2928
10761 msgid "This command lists out files contained in an initrd."
10765 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2930
10767 "The files are listed without any initial C</> character. The files are "
10768 "listed in the order they appear (not necessarily alphabetical). Directory "
10769 "names are listed as separate items."
10773 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2934
10775 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
10776 "initrd. We I<only> support the newer initramfs format (compressed cpio "
10781 #: ../fish/guestfish-actions.pod:1847
10782 msgid "inotify-add-watch"
10783 msgstr "inotify-add-watch"
10786 #: ../fish/guestfish-actions.pod:1849
10789 " inotify-add-watch path mask\n"
10792 " inotify-add-watch шлях маска\n"
10796 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2951
10797 msgid "Watch C<path> for the events listed in C<mask>."
10801 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2953
10803 "Note that if C<path> is a directory then events within that directory are "
10804 "watched, but this does I<not> happen recursively (in subdirectories)."
10808 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2957
10810 "Note for non-C or non-Linux callers: the inotify events are defined by the "
10811 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
10815 #: ../fish/guestfish-actions.pod:1861
10816 msgid "inotify-close"
10817 msgstr "inotify-close"
10820 #: ../fish/guestfish-actions.pod:1863
10830 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2970
10832 "This closes the inotify handle which was previously opened by inotify_init. "
10833 "It removes all watches, throws away any pending events, and deallocates all "
10838 #: ../fish/guestfish-actions.pod:1869
10839 msgid "inotify-files"
10840 msgstr "inotify-files"
10843 #: ../fish/guestfish-actions.pod:1871
10853 #: ../fish/guestfish-actions.pod:1873
10855 "This function is a helpful wrapper around L</inotify-read> which just "
10856 "returns a list of pathnames of objects that were touched. The returned "
10857 "pathnames are sorted and deduplicated."
10861 #: ../fish/guestfish-actions.pod:1877
10862 msgid "inotify-init"
10863 msgstr "inotify-init"
10866 #: ../fish/guestfish-actions.pod:1879
10869 " inotify-init maxevents\n"
10874 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2999
10876 "This command creates a new inotify handle. The inotify subsystem can be "
10877 "used to notify events which happen to objects in the guest filesystem."
10881 #: ../fish/guestfish-actions.pod:1885
10883 "C<maxevents> is the maximum number of events which will be queued up between "
10884 "calls to L</inotify-read> or L</inotify-files>. If this is passed as C<0>, "
10885 "then the kernel (or previously set) default is used. For Linux 2.6.29 the "
10886 "default was 16384 events. Beyond this limit, the kernel throws away events, "
10887 "but records the fact that it threw them away by setting a flag "
10888 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
10892 #: ../fish/guestfish-actions.pod:1895
10894 "Before any events are generated, you have to add some watches to the "
10895 "internal watch list. See: L</inotify-add-watch>, L</inotify-rm-watch> and "
10896 "L</inotify-watch-all>."
10900 #: ../fish/guestfish-actions.pod:1901
10902 "Queued up events should be read periodically by calling L</inotify-read> (or "
10903 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>). "
10904 "If you don't read the events out often enough then you risk the internal "
10905 "queue overflowing."
10909 #: ../fish/guestfish-actions.pod:1908
10911 "The handle should be closed after use by calling L</inotify-close>. This "
10912 "also removes any watches automatically."
10916 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:3030
10918 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
10919 "by the Linux kernel, which is roughly what we expose via libguestfs. Note "
10920 "that there is one global inotify handle per libguestfs instance."
10924 #: ../fish/guestfish-actions.pod:1917
10925 msgid "inotify-read"
10926 msgstr "inotify-read"
10929 #: ../fish/guestfish-actions.pod:1919
10939 #: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:3044
10941 "Return the complete queue of events that have happened since the previous "
10946 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:3047
10947 msgid "If no events have happened, this returns an empty list."
10951 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:3049
10953 "I<Note>: In order to make sure that all events have been read, you must call "
10954 "this function repeatedly until it returns an empty list. The reason is that "
10955 "the call will read events up to the maximum appliance-to-host message size "
10956 "and leave remaining events in the queue."
10960 #: ../fish/guestfish-actions.pod:1932
10961 msgid "inotify-rm-watch"
10962 msgstr "inotify-rm-watch"
10965 #: ../fish/guestfish-actions.pod:1934
10968 " inotify-rm-watch wd\n"
10973 #: ../fish/guestfish-actions.pod:1936
10974 msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
10978 #: ../fish/guestfish-actions.pod:1939
10979 msgid "inspect-get-arch"
10980 msgstr "inspect-get-arch"
10983 #: ../fish/guestfish-actions.pod:1941
10986 " inspect-get-arch root\n"
10989 " inspect-get-arch корінь\n"
10993 #: ../fish/guestfish-actions.pod:1943
10995 "This returns the architecture of the inspected operating system. The "
10996 "possible return values are listed under L</file-architecture>."
11000 #: ../fish/guestfish-actions.pod:1947 ../src/guestfs-actions.pod:3084
11002 "If the architecture could not be determined, then the string C<unknown> is "
11007 #: ../fish/guestfish-actions.pod:1950 ../fish/guestfish-actions.pod:2045
11008 #: ../fish/guestfish-actions.pod:2124 ../fish/guestfish-actions.pod:2136
11009 #: ../fish/guestfish-actions.pod:2220 ../fish/guestfish-actions.pod:2282
11010 #: ../fish/guestfish-actions.pod:2303 ../fish/guestfish-actions.pod:2317
11011 #: ../fish/guestfish-actions.pod:2357 ../fish/guestfish-actions.pod:2397
11012 #: ../fish/guestfish-actions.pod:2410 ../fish/guestfish-actions.pod:2423
11013 #: ../fish/guestfish-actions.pod:2433 ../fish/guestfish-actions.pod:2443
11014 #: ../fish/guestfish-actions.pod:2455 ../fish/guestfish-actions.pod:2551
11015 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3087
11016 #: ../src/guestfs-actions.pod:3189 ../src/guestfs-actions.pod:3293
11017 #: ../src/guestfs-actions.pod:3312 ../src/guestfs-actions.pod:3443
11018 #: ../src/guestfs-actions.pod:3527 ../src/guestfs-actions.pod:3555
11019 #: ../src/guestfs-actions.pod:3576 ../src/guestfs-actions.pod:3629
11020 #: ../src/guestfs-actions.pod:3677 ../src/guestfs-actions.pod:3697
11021 #: ../src/guestfs-actions.pod:3717 ../src/guestfs-actions.pod:3734
11022 #: ../src/guestfs-actions.pod:3750 ../src/guestfs-actions.pod:3768
11023 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:3911
11024 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
11028 #: ../fish/guestfish-actions.pod:1952
11029 msgid "inspect-get-distro"
11030 msgstr "inspect-get-distro"
11033 #: ../fish/guestfish-actions.pod:1954
11036 " inspect-get-distro root\n"
11039 " inspect-get-distro корінь\n"
11043 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3100
11045 "This returns the distro (distribution) of the inspected operating system."
11049 #: ../fish/guestfish-actions.pod:1959 ../src/guestfs-actions.pod:3103
11050 msgid "Currently defined distros are:"
11054 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:3107
11055 msgid "\"archlinux\""
11056 msgstr "\"archlinux\""
11059 #: ../fish/guestfish-actions.pod:1965 ../src/guestfs-actions.pod:3109
11060 msgid "Arch Linux."
11061 msgstr "Arch Linux."
11064 #: ../fish/guestfish-actions.pod:1967 ../src/guestfs-actions.pod:3111
11069 #: ../fish/guestfish-actions.pod:1969 ../src/guestfs-actions.pod:3113
11074 #: ../fish/guestfish-actions.pod:1971 ../src/guestfs-actions.pod:3115
11076 msgstr "\"debian\""
11079 #: ../fish/guestfish-actions.pod:1973 ../src/guestfs-actions.pod:3117
11084 #: ../fish/guestfish-actions.pod:1975 ../src/guestfs-actions.pod:3119
11086 msgstr "\"fedora\""
11089 #: ../fish/guestfish-actions.pod:1977 ../src/guestfs-actions.pod:3121
11094 #: ../fish/guestfish-actions.pod:1979 ../src/guestfs-actions.pod:3123
11096 msgstr "\"gentoo\""
11099 #: ../fish/guestfish-actions.pod:1981 ../src/guestfs-actions.pod:3125
11104 #: ../fish/guestfish-actions.pod:1983 ../src/guestfs-actions.pod:3127
11105 msgid "\"linuxmint\""
11106 msgstr "\"linuxmint\""
11109 #: ../fish/guestfish-actions.pod:1985 ../src/guestfs-actions.pod:3129
11110 msgid "Linux Mint."
11111 msgstr "Linux Mint."
11114 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:3131
11119 #: ../fish/guestfish-actions.pod:1989 ../src/guestfs-actions.pod:3133
11124 #: ../fish/guestfish-actions.pod:1991 ../src/guestfs-actions.pod:3135
11125 msgid "\"mandriva\""
11126 msgstr "\"mandriva\""
11129 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3137
11134 #: ../fish/guestfish-actions.pod:1995 ../src/guestfs-actions.pod:3139
11139 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:3141
11144 #: ../fish/guestfish-actions.pod:1999 ../src/guestfs-actions.pod:3143
11145 msgid "\"opensuse\""
11149 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:3145
11154 #: ../fish/guestfish-actions.pod:2003 ../src/guestfs-actions.pod:3147
11156 msgstr "\"pardus\""
11159 #: ../fish/guestfish-actions.pod:2005 ../src/guestfs-actions.pod:3149
11164 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3151
11165 msgid "\"redhat-based\""
11166 msgstr "\"redhat-based\""
11169 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:3153
11170 msgid "Some Red Hat-derived distro."
11171 msgstr "Дистрибутив, що походить від Red Hat."
11174 #: ../fish/guestfish-actions.pod:2011 ../src/guestfs-actions.pod:3155
11179 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:3157
11180 msgid "Red Hat Enterprise Linux."
11181 msgstr "Red Hat Enterprise Linux."
11184 #: ../fish/guestfish-actions.pod:2015 ../src/guestfs-actions.pod:3159
11185 msgid "\"scientificlinux\""
11186 msgstr "\"scientificlinux\""
11189 #: ../fish/guestfish-actions.pod:2017 ../src/guestfs-actions.pod:3161
11190 msgid "Scientific Linux."
11191 msgstr "Scientific Linux."
11194 #: ../fish/guestfish-actions.pod:2019 ../src/guestfs-actions.pod:3163
11195 msgid "\"slackware\""
11196 msgstr "\"slackware\""
11199 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3165
11201 msgstr "Slackware."
11204 #: ../fish/guestfish-actions.pod:2023 ../src/guestfs-actions.pod:3167
11205 msgid "\"ttylinux\""
11209 #: ../fish/guestfish-actions.pod:2025 ../src/guestfs-actions.pod:3169
11214 #: ../fish/guestfish-actions.pod:2027 ../src/guestfs-actions.pod:3171
11216 msgstr "\"ubuntu\""
11219 #: ../fish/guestfish-actions.pod:2029 ../src/guestfs-actions.pod:3173
11224 #: ../fish/guestfish-actions.pod:2031 ../fish/guestfish-actions.pod:2115
11225 #: ../fish/guestfish-actions.pod:2388 ../src/guestfs-actions.pod:3175
11226 #: ../src/guestfs-actions.pod:3284 ../src/guestfs-actions.pod:3668
11227 msgid "\"unknown\""
11228 msgstr "\"unknown\""
11231 #: ../fish/guestfish-actions.pod:2033 ../src/guestfs-actions.pod:3177
11232 msgid "The distro could not be determined."
11233 msgstr "Дистрибутив, тип якого не вдалося визначити."
11236 #: ../fish/guestfish-actions.pod:2035 ../fish/guestfish-actions.pod:2372
11237 #: ../src/guestfs-actions.pod:3179 ../src/guestfs-actions.pod:3652
11238 msgid "\"windows\""
11239 msgstr "\"windows\""
11242 #: ../fish/guestfish-actions.pod:2037 ../src/guestfs-actions.pod:3181
11244 "Windows does not have distributions. This string is returned if the OS type "
11249 #: ../fish/guestfish-actions.pod:2042 ../fish/guestfish-actions.pod:2121
11250 #: ../fish/guestfish-actions.pod:2394 ../src/guestfs-actions.pod:3186
11251 #: ../src/guestfs-actions.pod:3290 ../src/guestfs-actions.pod:3674
11253 "Future versions of libguestfs may return other strings here. The caller "
11254 "should be prepared to handle any string."
11258 #: ../fish/guestfish-actions.pod:2047
11259 msgid "inspect-get-drive-mappings"
11263 #: ../fish/guestfish-actions.pod:2049
11266 " inspect-get-drive-mappings root\n"
11271 #: ../fish/guestfish-actions.pod:2051 ../src/guestfs-actions.pod:3202
11273 "This call is useful for Windows which uses a primitive system of assigning "
11274 "drive letters (like \"C:\") to partitions. This inspection API examines the "
11275 "Windows Registry to find out how disks/partitions are mapped to drive "
11276 "letters, and returns a hash table as in the example below:"
11280 #: ../fish/guestfish-actions.pod:2057 ../src/guestfs-actions.pod:3208
11283 " C => /dev/vda2\n"
11284 " E => /dev/vdb1\n"
11285 " F => /dev/vdc1\n"
11290 #: ../fish/guestfish-actions.pod:2061 ../src/guestfs-actions.pod:3212
11292 "Note that keys are drive letters. For Windows, the key is case insensitive "
11293 "and just contains the drive letter, without the customary colon separator "
11298 #: ../fish/guestfish-actions.pod:2065 ../src/guestfs-actions.pod:3216
11300 "In future we may support other operating systems that also used drive "
11301 "letters, but the keys for those might not be case insensitive and might be "
11302 "longer than 1 character. For example in OS-9, hard drives were named C<h0>, "
11307 #: ../fish/guestfish-actions.pod:2070 ../src/guestfs-actions.pod:3221
11309 "For Windows guests, currently only hard drive mappings are returned. "
11310 "Removable disks (eg. DVD-ROMs) are ignored."
11314 #: ../fish/guestfish-actions.pod:2073 ../src/guestfs-actions.pod:3224
11316 "For guests that do not use drive mappings, or if the drive mappings could "
11317 "not be determined, this returns an empty hash table."
11321 #: ../fish/guestfish-actions.pod:2076
11323 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
11324 "get-mountpoints>, L</inspect-get-filesystems>."
11328 #: ../fish/guestfish-actions.pod:2080
11329 msgid "inspect-get-filesystems"
11330 msgstr "inspect-get-filesystems"
11333 #: ../fish/guestfish-actions.pod:2082
11336 " inspect-get-filesystems root\n"
11339 " inspect-get-filesystems корінь\n"
11343 #: ../fish/guestfish-actions.pod:2084 ../src/guestfs-actions.pod:3245
11345 "This returns a list of all the filesystems that we think are associated with "
11346 "this operating system. This includes the root filesystem, other ordinary "
11347 "filesystems, and non-mounted devices like swap partitions."
11351 #: ../fish/guestfish-actions.pod:2089 ../src/guestfs-actions.pod:3250
11353 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
11354 "to be shared between operating systems."
11358 #: ../fish/guestfish-actions.pod:2092
11360 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
11361 "get-mountpoints>."
11365 #: ../fish/guestfish-actions.pod:2095
11366 msgid "inspect-get-format"
11367 msgstr "inspect-get-format"
11370 #: ../fish/guestfish-actions.pod:2097
11373 " inspect-get-format root\n"
11376 " inspect-get-format корінь\n"
11380 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3268
11382 "This returns the format of the inspected operating system. You can use it "
11383 "to detect install images, live CDs and similar."
11387 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3271
11388 msgid "Currently defined formats are:"
11392 #: ../fish/guestfish-actions.pod:2106 ../src/guestfs-actions.pod:3275
11393 msgid "\"installed\""
11394 msgstr "\"installed\""
11397 #: ../fish/guestfish-actions.pod:2108 ../src/guestfs-actions.pod:3277
11398 msgid "This is an installed operating system."
11399 msgstr "Це встановлена операційна система."
11402 #: ../fish/guestfish-actions.pod:2110 ../src/guestfs-actions.pod:3279
11403 msgid "\"installer\""
11407 #: ../fish/guestfish-actions.pod:2112 ../src/guestfs-actions.pod:3281
11409 "The disk image being inspected is not an installed operating system, but a "
11410 "I<bootable> install disk, live CD, or similar."
11414 #: ../fish/guestfish-actions.pod:2117 ../src/guestfs-actions.pod:3286
11415 msgid "The format of this disk image is not known."
11419 #: ../fish/guestfish-actions.pod:2126
11420 msgid "inspect-get-hostname"
11421 msgstr "inspect-get-hostname"
11424 #: ../fish/guestfish-actions.pod:2128
11427 " inspect-get-hostname root\n"
11430 " inspect-get-hostname корінь\n"
11434 #: ../fish/guestfish-actions.pod:2130 ../src/guestfs-actions.pod:3306
11436 "This function returns the hostname of the operating system as found by "
11437 "inspection of the guest's configuration files."
11441 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3309
11443 "If the hostname could not be determined, then the string C<unknown> is "
11448 #: ../fish/guestfish-actions.pod:2138
11449 msgid "inspect-get-icon"
11453 #: ../fish/guestfish-actions.pod:2140
11456 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
11461 #: ../fish/guestfish-actions.pod:2142 ../src/guestfs-actions.pod:3335
11463 "This function returns an icon corresponding to the inspected operating "
11464 "system. The icon is returned as a buffer containing a PNG image (re-encoded "
11465 "to PNG if necessary)."
11469 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3339
11471 "If it was not possible to get an icon this function returns a zero-length "
11472 "(non-NULL) buffer. I<Callers must check for this case>."
11476 #: ../fish/guestfish-actions.pod:2149 ../src/guestfs-actions.pod:3342
11478 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
11479 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
11480 "this file will be returned. You can disable favicons by passing the "
11481 "optional C<favicon> boolean as false (default is true)."
11485 #: ../fish/guestfish-actions.pod:2155 ../src/guestfs-actions.pod:3348
11487 "If finding the favicon fails, then we look in other places in the guest for "
11492 #: ../fish/guestfish-actions.pod:2158 ../src/guestfs-actions.pod:3351
11494 "If the optional C<highquality> boolean is true then only high quality icons "
11495 "are returned, which means only icons of high resolution with an alpha "
11496 "channel. The default (false) is to return any icon we can, even if it is of "
11497 "substandard quality."
11501 #: ../fish/guestfish-actions.pod:2169 ../src/guestfs-actions.pod:3362
11503 "Unlike most other inspection API calls, the guest's disks must be mounted up "
11504 "before you call this, since it needs to read information from the guest "
11505 "filesystem during the call."
11509 #: ../fish/guestfish-actions.pod:2175 ../src/guestfs-actions.pod:3368
11511 "B<Security:> The icon data comes from the untrusted guest, and should be "
11512 "treated with caution. PNG files have been known to contain exploits. "
11513 "Ensure that libpng (or other relevant libraries) are fully up to date before "
11514 "trying to process or display the icon."
11518 #: ../fish/guestfish-actions.pod:2183 ../src/guestfs-actions.pod:3376
11520 "The PNG image returned can be any size. It might not be square. Libguestfs "
11521 "tries to return the largest, highest quality icon available. The "
11522 "application must scale the icon to the required size."
11526 #: ../fish/guestfish-actions.pod:2190 ../src/guestfs-actions.pod:3383
11528 "Extracting icons from Windows guests requires the external C<wrestool> "
11529 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
11530 "C<pnmtopng>, C<pamcut>) from the C<netpbm> package. These must be "
11531 "installed separately."
11535 #: ../fish/guestfish-actions.pod:2197 ../src/guestfs-actions.pod:3390
11537 "Operating system icons are usually trademarks. Seek legal advice before "
11538 "using trademarks in applications."
11542 #: ../fish/guestfish-actions.pod:2204
11543 msgid "inspect-get-major-version"
11544 msgstr "inspect-get-major-version"
11547 #: ../fish/guestfish-actions.pod:2206
11550 " inspect-get-major-version root\n"
11553 " inspect-get-major-version корінь\n"
11557 #: ../fish/guestfish-actions.pod:2208 ../src/guestfs-actions.pod:3431
11559 "This returns the major version number of the inspected operating system."
11563 #: ../fish/guestfish-actions.pod:2211 ../src/guestfs-actions.pod:3434
11565 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
11566 "popular public names used by the operating system. Notably the operating "
11567 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
11568 "1). You can find out the real versions corresponding to releases of Windows "
11569 "by consulting Wikipedia or MSDN."
11573 #: ../fish/guestfish-actions.pod:2218 ../fish/guestfish-actions.pod:2229
11574 #: ../src/guestfs-actions.pod:3441 ../src/guestfs-actions.pod:3458
11575 msgid "If the version could not be determined, then C<0> is returned."
11579 #: ../fish/guestfish-actions.pod:2222
11580 msgid "inspect-get-minor-version"
11581 msgstr "inspect-get-minor-version"
11584 #: ../fish/guestfish-actions.pod:2224
11587 " inspect-get-minor-version root\n"
11590 " inspect-get-minor-version корінь\n"
11594 #: ../fish/guestfish-actions.pod:2226 ../src/guestfs-actions.pod:3455
11596 "This returns the minor version number of the inspected operating system."
11600 #: ../fish/guestfish-actions.pod:2231
11602 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
11603 "get-major-version>."
11607 #: ../fish/guestfish-actions.pod:2234
11608 msgid "inspect-get-mountpoints"
11609 msgstr "inspect-get-mountpoints"
11612 #: ../fish/guestfish-actions.pod:2236
11615 " inspect-get-mountpoints root\n"
11618 " inspect-get-mountpoints корінь\n"
11622 #: ../fish/guestfish-actions.pod:2238 ../src/guestfs-actions.pod:3473
11624 "This returns a hash of where we think the filesystems associated with this "
11625 "operating system should be mounted. Callers should note that this is at "
11626 "best an educated guess made by reading configuration files such as C</etc/"
11627 "fstab>. I<In particular note> that this may return filesystems which are "
11628 "non-existent or not mountable and callers should be prepared to handle or "
11629 "ignore failures if they try to mount them."
11633 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3482
11635 "Each element in the returned hashtable has a key which is the path of the "
11636 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
11637 "mounted there (eg. C</dev/sda1>)."
11641 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3487
11643 "Non-mounted devices such as swap devices are I<not> returned in this list."
11647 #: ../fish/guestfish-actions.pod:2255
11649 "For operating systems like Windows which still use drive letters, this call "
11650 "will only return an entry for the first drive \"mounted on\" C</>. For "
11651 "information about the mapping of drive letters to partitions, see L</inspect-"
11652 "get-drive-mappings>."
11656 #: ../fish/guestfish-actions.pod:2261
11658 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
11659 "get-filesystems>."
11663 #: ../fish/guestfish-actions.pod:2264
11664 msgid "inspect-get-package-format"
11665 msgstr "inspect-get-package-format"
11668 #: ../fish/guestfish-actions.pod:2266
11671 " inspect-get-package-format root\n"
11674 " inspect-get-package-format корінь\n"
11678 #: ../fish/guestfish-actions.pod:2268
11680 "This function and L</inspect-get-package-management> return the package "
11681 "format and package management tool used by the inspected operating system. "
11682 "For example for Fedora these functions would return C<rpm> (package format) "
11683 "and C<yum> (package management)."
11687 #: ../fish/guestfish-actions.pod:2274 ../src/guestfs-actions.pod:3519
11689 "This returns the string C<unknown> if we could not determine the package "
11690 "format I<or> if the operating system does not have a real packaging system "
11695 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3523
11697 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
11698 "C<pkgsrc>. Future versions of libguestfs may return other strings."
11702 #: ../fish/guestfish-actions.pod:2284
11703 msgid "inspect-get-package-management"
11704 msgstr "inspect-get-package-management"
11707 #: ../fish/guestfish-actions.pod:2286
11710 " inspect-get-package-management root\n"
11713 " inspect-get-package-management корінь\n"
11717 #: ../fish/guestfish-actions.pod:2288
11719 "L</inspect-get-package-format> and this function return the package format "
11720 "and package management tool used by the inspected operating system. For "
11721 "example for Fedora these functions would return C<rpm> (package format) and "
11722 "C<yum> (package management)."
11726 #: ../fish/guestfish-actions.pod:2294 ../src/guestfs-actions.pod:3546
11728 "This returns the string C<unknown> if we could not determine the package "
11729 "management tool I<or> if the operating system does not have a real packaging "
11730 "system (eg. Windows)."
11734 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3550
11736 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11737 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>. Future "
11738 "versions of libguestfs may return other strings."
11742 #: ../fish/guestfish-actions.pod:2305
11743 msgid "inspect-get-product-name"
11744 msgstr "inspect-get-product-name"
11747 #: ../fish/guestfish-actions.pod:2307
11750 " inspect-get-product-name root\n"
11753 " inspect-get-product-name корінь\n"
11757 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3568
11759 "This returns the product name of the inspected operating system. The "
11760 "product name is generally some freeform string which can be displayed to the "
11761 "user, but should not be parsed by programs."
11765 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3573
11767 "If the product name could not be determined, then the string C<unknown> is "
11772 #: ../fish/guestfish-actions.pod:2319
11773 msgid "inspect-get-product-variant"
11777 #: ../fish/guestfish-actions.pod:2321
11780 " inspect-get-product-variant root\n"
11785 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3589
11786 msgid "This returns the product variant of the inspected operating system."
11790 #: ../fish/guestfish-actions.pod:2326 ../src/guestfs-actions.pod:3592
11792 "For Windows guests, this returns the contents of the Registry key C<HKLM"
11793 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
11794 "is usually a string such as C<Client> or C<Server> (other values are "
11795 "possible). This can be used to distinguish consumer and enterprise versions "
11796 "of Windows that have the same version number (for example, Windows 7 and "
11797 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
11798 "the latter is C<Server>)."
11802 #: ../fish/guestfish-actions.pod:2335 ../src/guestfs-actions.pod:3601
11804 "For enterprise Linux guests, in future we intend this to return the product "
11805 "variant such as C<Desktop>, C<Server> and so on. But this is not "
11806 "implemented at present."
11810 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3605
11812 "If the product variant could not be determined, then the string C<unknown> "
11817 #: ../fish/guestfish-actions.pod:2342
11819 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
11820 "get-product-name>, L</inspect-get-major-version>."
11824 #: ../fish/guestfish-actions.pod:2346
11825 msgid "inspect-get-roots"
11826 msgstr "inspect-get-roots"
11829 #: ../fish/guestfish-actions.pod:2348
11832 " inspect-get-roots\n"
11835 " inspect-get-roots\n"
11839 #: ../fish/guestfish-actions.pod:2350
11841 "This function is a convenient way to get the list of root devices, as "
11842 "returned from a previous call to L</inspect-os>, but without redoing the "
11843 "whole inspection process."
11847 #: ../fish/guestfish-actions.pod:2354
11849 "This returns an empty list if either no root devices were found or the "
11850 "caller has not called L</inspect-os>."
11854 #: ../fish/guestfish-actions.pod:2359
11855 msgid "inspect-get-type"
11856 msgstr "inspect-get-type"
11859 #: ../fish/guestfish-actions.pod:2361
11862 " inspect-get-type root\n"
11865 " inspect-get-type корінь\n"
11869 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3643
11871 "This returns the type of the inspected operating system. Currently defined "
11876 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3648
11881 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3650
11882 msgid "Any Linux-based operating system."
11886 #: ../fish/guestfish-actions.pod:2374 ../src/guestfs-actions.pod:3654
11887 msgid "Any Microsoft Windows operating system."
11891 #: ../fish/guestfish-actions.pod:2376 ../src/guestfs-actions.pod:3656
11892 msgid "\"freebsd\""
11893 msgstr "\"freebsd\""
11896 #: ../fish/guestfish-actions.pod:2378 ../src/guestfs-actions.pod:3658
11901 #: ../fish/guestfish-actions.pod:2380 ../src/guestfs-actions.pod:3660
11906 #: ../fish/guestfish-actions.pod:2382 ../src/guestfs-actions.pod:3662
11911 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3664
11916 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3666
11921 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3670
11922 msgid "The operating system type could not be determined."
11926 #: ../fish/guestfish-actions.pod:2399
11927 msgid "inspect-get-windows-current-control-set"
11931 #: ../fish/guestfish-actions.pod:2401
11934 " inspect-get-windows-current-control-set root\n"
11939 #: ../fish/guestfish-actions.pod:2403 ../src/guestfs-actions.pod:3690
11941 "This returns the Windows CurrentControlSet of the inspected guest. The "
11942 "CurrentControlSet is a registry key name such as C<ControlSet001>."
11946 #: ../fish/guestfish-actions.pod:2406 ../src/guestfs-actions.pod:3693
11948 "This call assumes that the guest is Windows and that the Registry could be "
11949 "examined by inspection. If this is not the case then an error is returned."
11953 #: ../fish/guestfish-actions.pod:2412
11954 msgid "inspect-get-windows-systemroot"
11955 msgstr "inspect-get-windows-systemroot"
11958 #: ../fish/guestfish-actions.pod:2414
11961 " inspect-get-windows-systemroot root\n"
11964 " inspect-get-windows-systemroot корінь\n"
11968 #: ../fish/guestfish-actions.pod:2416 ../src/guestfs-actions.pod:3710
11970 "This returns the Windows systemroot of the inspected guest. The systemroot "
11971 "is a directory path such as C</WINDOWS>."
11975 #: ../fish/guestfish-actions.pod:2419 ../src/guestfs-actions.pod:3713
11977 "This call assumes that the guest is Windows and that the systemroot could be "
11978 "determined by inspection. If this is not the case then an error is returned."
11982 #: ../fish/guestfish-actions.pod:2425
11983 msgid "inspect-is-live"
11984 msgstr "inspect-is-live"
11987 #: ../fish/guestfish-actions.pod:2427
11990 " inspect-is-live root\n"
11993 " inspect-is-live корінь\n"
11997 #: ../fish/guestfish-actions.pod:2429
11999 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
12000 "then this returns true if a live image was detected on the disk."
12004 #: ../fish/guestfish-actions.pod:2435
12005 msgid "inspect-is-multipart"
12006 msgstr "inspect-is-multipart"
12009 #: ../fish/guestfish-actions.pod:2437
12012 " inspect-is-multipart root\n"
12015 " inspect-is-multipart корінь\n"
12019 #: ../fish/guestfish-actions.pod:2439
12021 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
12022 "then this returns true if the disk is part of a set."
12026 #: ../fish/guestfish-actions.pod:2445
12027 msgid "inspect-is-netinst"
12028 msgstr "inspect-is-netinst"
12031 #: ../fish/guestfish-actions.pod:2447
12034 " inspect-is-netinst root\n"
12037 " inspect-is-netinst корінь\n"
12041 #: ../fish/guestfish-actions.pod:2449
12043 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
12044 "then this returns true if the disk is a network installer, ie. not a self-"
12045 "contained install CD but one which is likely to require network access to "
12046 "complete the install."
12050 #: ../fish/guestfish-actions.pod:2457
12051 msgid "inspect-list-applications"
12052 msgstr "inspect-list-applications"
12055 #: ../fish/guestfish-actions.pod:2459
12058 " inspect-list-applications root\n"
12061 " inspect-list-applications кореневий_каталог\n"
12065 #: ../fish/guestfish-actions.pod:2461 ../src/guestfs-actions.pod:3780
12066 msgid "Return the list of applications installed in the operating system."
12070 #: ../fish/guestfish-actions.pod:2463
12072 "I<Note:> This call works differently from other parts of the inspection "
12073 "API. You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
12074 "then mount up the disks, before calling this. Listing applications is a "
12075 "significantly more difficult operation which requires access to the full "
12076 "filesystem. Also note that unlike the other L</inspect-get-*> calls which "
12077 "are just returning data cached in the libguestfs handle, this call actually "
12078 "reads parts of the mounted filesystems during the call."
12082 #: ../fish/guestfish-actions.pod:2473 ../src/guestfs-actions.pod:3792
12084 "This returns an empty list if the inspection code was not able to determine "
12085 "the list of applications."
12089 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3795
12090 msgid "The application structure contains the following fields:"
12094 #: ../fish/guestfish-actions.pod:2480 ../src/guestfs-actions.pod:3799
12095 msgid "C<app_name>"
12096 msgstr "C<app_name>"
12099 #: ../fish/guestfish-actions.pod:2482 ../src/guestfs-actions.pod:3801
12101 "The name of the application. For Red Hat-derived and Debian-derived Linux "
12102 "guests, this is the package name."
12106 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3804
12107 msgid "C<app_display_name>"
12108 msgstr "C<app_display_name>"
12111 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3806
12113 "The display name of the application, sometimes localized to the install "
12114 "language of the guest operating system."
12118 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3809
12120 "If unavailable this is returned as an empty string C<\"\">. Callers needing "
12121 "to display something can use C<app_name> instead."
12125 #: ../fish/guestfish-actions.pod:2493 ../src/guestfs-actions.pod:3812
12126 msgid "C<app_epoch>"
12127 msgstr "C<app_epoch>"
12130 #: ../fish/guestfish-actions.pod:2495 ../src/guestfs-actions.pod:3814
12132 "For package managers which use epochs, this contains the epoch of the "
12133 "package (an integer). If unavailable, this is returned as C<0>."
12137 #: ../fish/guestfish-actions.pod:2498 ../src/guestfs-actions.pod:3817
12138 msgid "C<app_version>"
12139 msgstr "C<app_version>"
12142 #: ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:3819
12144 "The version string of the application or package. If unavailable this is "
12145 "returned as an empty string C<\"\">."
12149 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3822
12150 msgid "C<app_release>"
12151 msgstr "C<app_release>"
12154 #: ../fish/guestfish-actions.pod:2505 ../src/guestfs-actions.pod:3824
12156 "The release string of the application or package, for package managers that "
12157 "use this. If unavailable this is returned as an empty string C<\"\">."
12161 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3828
12162 msgid "C<app_install_path>"
12163 msgstr "C<app_install_path>"
12166 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3830
12168 "The installation path of the application (on operating systems such as "
12169 "Windows which use installation paths). This path is in the format used by "
12170 "the guest operating system, it is not a libguestfs path."
12174 #: ../fish/guestfish-actions.pod:2516 ../src/guestfs-actions.pod:3835
12175 msgid "If unavailable this is returned as an empty string C<\"\">."
12179 #: ../fish/guestfish-actions.pod:2518 ../src/guestfs-actions.pod:3837
12180 msgid "C<app_trans_path>"
12181 msgstr "C<app_trans_path>"
12184 #: ../fish/guestfish-actions.pod:2520 ../src/guestfs-actions.pod:3839
12186 "The install path translated into a libguestfs path. If unavailable this is "
12187 "returned as an empty string C<\"\">."
12191 #: ../fish/guestfish-actions.pod:2523 ../src/guestfs-actions.pod:3842
12192 msgid "C<app_publisher>"
12193 msgstr "C<app_publisher>"
12196 #: ../fish/guestfish-actions.pod:2525 ../src/guestfs-actions.pod:3844
12198 "The name of the publisher of the application, for package managers that use "
12199 "this. If unavailable this is returned as an empty string C<\"\">."
12203 #: ../fish/guestfish-actions.pod:2529 ../src/guestfs-actions.pod:3848
12205 msgstr "C<app_url>"
12208 #: ../fish/guestfish-actions.pod:2531 ../src/guestfs-actions.pod:3850
12210 "The URL (eg. upstream URL) of the application. If unavailable this is "
12211 "returned as an empty string C<\"\">."
12215 #: ../fish/guestfish-actions.pod:2534 ../src/guestfs-actions.pod:3853
12216 msgid "C<app_source_package>"
12217 msgstr "C<app_source_package>"
12220 #: ../fish/guestfish-actions.pod:2536 ../src/guestfs-actions.pod:3855
12222 "For packaging systems which support this, the name of the source package. "
12223 "If unavailable this is returned as an empty string C<\"\">."
12227 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3858
12228 msgid "C<app_summary>"
12229 msgstr "C<app_summary>"
12232 #: ../fish/guestfish-actions.pod:2541 ../src/guestfs-actions.pod:3860
12234 "A short (usually one line) description of the application or package. If "
12235 "unavailable this is returned as an empty string C<\"\">."
12239 #: ../fish/guestfish-actions.pod:2544 ../src/guestfs-actions.pod:3863
12240 msgid "C<app_description>"
12241 msgstr "C<app_description>"
12244 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3865
12246 "A longer description of the application or package. If unavailable this is "
12247 "returned as an empty string C<\"\">."
12251 #: ../fish/guestfish-actions.pod:2553
12253 msgstr "inspect-os"
12256 #: ../fish/guestfish-actions.pod:2555
12266 #: ../fish/guestfish-actions.pod:2557 ../src/guestfs-actions.pod:3883
12268 "This function uses other libguestfs functions and certain heuristics to "
12269 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
12270 "for operating systems."
12274 #: ../fish/guestfish-actions.pod:2561 ../src/guestfs-actions.pod:3887
12275 msgid "The list returned is empty if no operating systems were found."
12279 #: ../fish/guestfish-actions.pod:2563 ../src/guestfs-actions.pod:3889
12281 "If one operating system was found, then this returns a list with a single "
12282 "element, which is the name of the root filesystem of this operating system. "
12283 "It is also possible for this function to return a list containing more than "
12284 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
12285 "element being the root filesystem of one of the operating systems."
12289 #: ../fish/guestfish-actions.pod:2570
12291 "You can pass the root string(s) returned to other L</inspect-get-*> "
12292 "functions in order to query further information about each operating system, "
12293 "such as the name and version."
12297 #: ../fish/guestfish-actions.pod:2575
12299 "This function uses other libguestfs features such as L</mount-ro> and L</"
12300 "umount-all> in order to mount and unmount filesystems and look at the "
12301 "contents. This should be called with no disks currently mounted. The "
12302 "function may also use Augeas, so any existing Augeas handle will be closed."
12306 #: ../fish/guestfish-actions.pod:2581 ../src/guestfs-actions.pod:3907
12308 "This function cannot decrypt encrypted disks. The caller must do that first "
12309 "(supplying the necessary keys) if the disk is encrypted."
12313 #: ../fish/guestfish-actions.pod:2587 ../fish/guestfish-actions.pod:2785
12314 #: ../fish/guestfish-actions.pod:2850
12315 msgid "See also L</list-filesystems>."
12316 msgstr "Див. також L</list-filesystems>."
12319 #: ../fish/guestfish-actions.pod:2589
12320 msgid "is-blockdev"
12321 msgstr "is-blockdev"
12324 #: ../fish/guestfish-actions.pod:2591
12327 " is-blockdev path\n"
12330 " is-blockdev шлях\n"
12334 #: ../fish/guestfish-actions.pod:2593 ../src/guestfs-actions.pod:3927
12336 "This returns C<true> if and only if there is a block device with the given "
12341 #: ../fish/guestfish-actions.pod:2596 ../fish/guestfish-actions.pod:2614
12342 #: ../fish/guestfish-actions.pod:2633 ../fish/guestfish-actions.pod:2642
12343 #: ../fish/guestfish-actions.pod:2652 ../fish/guestfish-actions.pod:2686
12344 #: ../fish/guestfish-actions.pod:2695
12345 msgid "See also L</stat>."
12346 msgstr "Див. також L</stat>."
12349 #: ../fish/guestfish-actions.pod:2598
12354 #: ../fish/guestfish-actions.pod:2600
12364 #: ../fish/guestfish-actions.pod:2602 ../src/guestfs-actions.pod:3941
12366 "This returns true iff this handle is busy processing a command (in the "
12371 #: ../fish/guestfish-actions.pod:2607
12373 msgstr "is-chardev"
12376 #: ../fish/guestfish-actions.pod:2609
12379 " is-chardev path\n"
12382 " is-chardev шлях\n"
12386 #: ../fish/guestfish-actions.pod:2611 ../src/guestfs-actions.pod:3956
12388 "This returns C<true> if and only if there is a character device with the "
12389 "given C<path> name."
12393 #: ../fish/guestfish-actions.pod:2616
12398 #: ../fish/guestfish-actions.pod:2618
12408 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:3970
12410 "This returns true iff this handle is being configured (in the C<CONFIG> "
12415 #: ../fish/guestfish-actions.pod:2625
12420 #: ../fish/guestfish-actions.pod:2627
12430 #: ../fish/guestfish-actions.pod:2629 ../src/guestfs-actions.pod:3985
12432 "This returns C<true> if and only if there is a directory with the given "
12433 "C<path> name. Note that it returns false for other objects like files."
12437 #: ../fish/guestfish-actions.pod:2635
12442 #: ../fish/guestfish-actions.pod:2637
12452 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4001
12454 "This returns C<true> if and only if there is a FIFO (named pipe) with the "
12455 "given C<path> name."
12459 #: ../fish/guestfish-actions.pod:2644
12464 #: ../fish/guestfish-actions.pod:2646
12474 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4016
12476 "This returns C<true> if and only if there is a regular file with the given "
12477 "C<path> name. Note that it returns false for other objects like directories."
12481 #: ../fish/guestfish-actions.pod:2654
12482 msgid "is-launching"
12483 msgstr "is-launching"
12486 #: ../fish/guestfish-actions.pod:2656
12496 #: ../fish/guestfish-actions.pod:2658 ../src/guestfs-actions.pod:4031
12498 "This returns true iff this handle is launching the subprocess (in the "
12499 "C<LAUNCHING> state)."
12503 #: ../fish/guestfish-actions.pod:2663
12508 #: ../fish/guestfish-actions.pod:2665
12514 " is-lv пристрій\n"
12518 #: ../fish/guestfish-actions.pod:2667 ../src/guestfs-actions.pod:4046
12520 "This command tests whether C<device> is a logical volume, and returns true "
12521 "iff this is the case."
12525 #: ../fish/guestfish-actions.pod:2670
12530 #: ../fish/guestfish-actions.pod:2672
12540 #: ../fish/guestfish-actions.pod:2674 ../src/guestfs-actions.pod:4058
12542 "This returns true iff this handle is ready to accept commands (in the "
12547 #: ../fish/guestfish-actions.pod:2679
12552 #: ../fish/guestfish-actions.pod:2681
12555 " is-socket path\n"
12558 " is-socket шлях\n"
12562 #: ../fish/guestfish-actions.pod:2683 ../src/guestfs-actions.pod:4073
12564 "This returns C<true> if and only if there is a Unix domain socket with the "
12565 "given C<path> name."
12569 #: ../fish/guestfish-actions.pod:2688
12571 msgstr "is-symlink"
12574 #: ../fish/guestfish-actions.pod:2690
12577 " is-symlink path\n"
12580 " is-symlink шлях\n"
12584 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4088
12586 "This returns C<true> if and only if there is a symbolic link with the given "
12591 #: ../fish/guestfish-actions.pod:2697
12596 #: ../fish/guestfish-actions.pod:2699
12604 #: ../fish/guestfish-actions.pod:2701 ../src/guestfs-actions.pod:4103
12606 "This returns true iff the file exists and the file is empty or it contains "
12611 #: ../fish/guestfish-actions.pod:2704
12612 msgid "is-zero-device"
12616 #: ../fish/guestfish-actions.pod:2706
12619 " is-zero-device device\n"
12624 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4116
12625 msgid "This returns true iff the device exists and contains all zero bytes."
12629 #: ../fish/guestfish-actions.pod:2710 ../src/guestfs-actions.pod:4118
12630 msgid "Note that for large devices this can take a long time to run."
12634 #: ../fish/guestfish-actions.pod:2712
12635 msgid "kill-subprocess"
12636 msgstr "kill-subprocess"
12639 #: ../fish/guestfish-actions.pod:2714
12642 " kill-subprocess\n"
12645 " kill-subprocess\n"
12649 #: ../fish/guestfish-actions.pod:2716 ../src/guestfs-actions.pod:4129
12650 msgid "This kills the qemu subprocess. You should never need to call this."
12654 #: ../fish/guestfish-actions.pod:2718
12659 #: ../fish/guestfish-actions.pod:2720
12664 #: ../fish/guestfish-actions.pod:2722
12674 #: ../fish/guestfish-actions.pod:2724 ../src/guestfs-actions.pod:4140
12676 "Internally libguestfs is implemented by running a virtual machine using "
12681 #: ../fish/guestfish-actions.pod:2727 ../src/guestfs-actions.pod:4143
12683 "You should call this after configuring the handle (eg. adding drives) but "
12684 "before performing any actions."
12688 #: ../fish/guestfish-actions.pod:2730
12693 #: ../fish/guestfish-actions.pod:2732
12696 " lchown owner group path\n"
12699 " lchown власник група шлях\n"
12703 #: ../fish/guestfish-actions.pod:2734
12705 "Change the file owner to C<owner> and group to C<group>. This is like L</"
12706 "chown> but if C<path> is a symlink then the link itself is changed, not the "
12711 #: ../fish/guestfish-actions.pod:2742
12716 #: ../fish/guestfish-actions.pod:2744
12719 " lgetxattr path name\n"
12722 " lgetxattr шлях назва\n"
12726 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4183
12728 "Get a single extended attribute from file C<path> named C<name>. If C<path> "
12729 "is a symlink, then this call returns an extended attribute from the symlink."
12733 #: ../fish/guestfish-actions.pod:2760
12734 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
12735 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
12738 #: ../fish/guestfish-actions.pod:2762
12740 msgstr "lgetxattrs"
12743 #: ../fish/guestfish-actions.pod:2764
12746 " lgetxattrs path\n"
12749 " lgetxattrs шлях\n"
12753 #: ../fish/guestfish-actions.pod:2766
12755 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
12756 "it returns the extended attributes of the link itself."
12760 #: ../fish/guestfish-actions.pod:2770
12765 #: ../fish/guestfish-actions.pod:2772
12773 #: ../fish/guestfish-actions.pod:2774 ../src/guestfs-actions.pod:4226
12775 "List all 9p filesystems attached to the guest. A list of mount tags is "
12780 #: ../fish/guestfish-actions.pod:2777
12781 msgid "list-devices"
12782 msgstr "list-devices"
12785 #: ../fish/guestfish-actions.pod:2779
12795 #: ../fish/guestfish-actions.pod:2781 ../src/guestfs-actions.pod:4240
12796 msgid "List all the block devices."
12800 #: ../fish/guestfish-actions.pod:2783 ../src/guestfs-actions.pod:4242
12801 msgid "The full block device names are returned, eg. C</dev/sda>."
12805 #: ../fish/guestfish-actions.pod:2787
12806 msgid "list-dm-devices"
12810 #: ../fish/guestfish-actions.pod:2789
12813 " list-dm-devices\n"
12818 #: ../fish/guestfish-actions.pod:2791 ../src/guestfs-actions.pod:4257
12819 msgid "List all device mapper devices."
12823 #: ../fish/guestfish-actions.pod:2793
12825 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
12826 "previous call to L</luks-open>."
12830 #: ../fish/guestfish-actions.pod:2796
12832 "Device mapper devices which correspond to logical volumes are I<not> "
12833 "returned in this list. Call L</lvs> if you want to list logical volumes."
12837 #: ../fish/guestfish-actions.pod:2800
12838 msgid "list-filesystems"
12839 msgstr "list-filesystems"
12842 #: ../fish/guestfish-actions.pod:2802
12845 " list-filesystems\n"
12848 " list-filesystems\n"
12852 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4277
12854 "This inspection command looks for filesystems on partitions, block devices "
12855 "and logical volumes, returning a list of devices containing filesystems and "
12860 #: ../fish/guestfish-actions.pod:2808 ../src/guestfs-actions.pod:4281
12862 "The return value is a hash, where the keys are the devices containing "
12863 "filesystems, and the values are the filesystem types. For example:"
12867 #: ../fish/guestfish-actions.pod:2812 ../src/guestfs-actions.pod:4285
12870 " \"/dev/sda1\" => \"ntfs\"\n"
12871 " \"/dev/sda2\" => \"ext2\"\n"
12872 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
12873 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
12878 #: ../fish/guestfish-actions.pod:2817 ../src/guestfs-actions.pod:4290
12880 "The value can have the special value \"unknown\", meaning the content of the "
12881 "device is undetermined or empty. \"swap\" means a Linux swap partition."
12885 #: ../fish/guestfish-actions.pod:2821
12887 "This command runs other libguestfs commands, which might include L</mount> "
12888 "and L</umount>, and therefore you should use this soon after launch and only "
12889 "when nothing is mounted."
12893 #: ../fish/guestfish-actions.pod:2825
12895 "Not all of the filesystems returned will be mountable. In particular, swap "
12896 "partitions are returned in the list. Also this command does not check that "
12897 "each filesystem found is valid and mountable, and some filesystems might be "
12898 "mountable but require special options. Filesystems may not all belong to a "
12899 "single logical operating system (use L</inspect-os> to look for OSes)."
12903 #: ../fish/guestfish-actions.pod:2833
12905 #| msgid "list-devices"
12906 msgid "list-md-devices"
12907 msgstr "list-devices"
12910 #: ../fish/guestfish-actions.pod:2835
12913 #| " list-devices\n"
12916 " list-md-devices\n"
12923 #: ../fish/guestfish-actions.pod:2837 ../src/guestfs-actions.pod:4319
12924 msgid "List all Linux md devices."
12928 #: ../fish/guestfish-actions.pod:2839
12929 msgid "list-partitions"
12930 msgstr "list-partitions"
12933 #: ../fish/guestfish-actions.pod:2841
12936 " list-partitions\n"
12939 " list-partitions\n"
12943 #: ../fish/guestfish-actions.pod:2843 ../src/guestfs-actions.pod:4332
12944 msgid "List all the partitions detected on all block devices."
12948 #: ../fish/guestfish-actions.pod:2845 ../src/guestfs-actions.pod:4334
12949 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12953 #: ../fish/guestfish-actions.pod:2847
12955 "This does not return logical volumes. For that you will need to call L</"
12960 #: ../fish/guestfish-actions.pod:2852
12965 #: ../fish/guestfish-actions.pod:2854
12975 #: ../fish/guestfish-actions.pod:2856 ../src/guestfs-actions.pod:4353
12977 "List the files in C<directory> (relative to the root directory, there is no "
12978 "cwd) in the format of 'ls -la'."
12982 #: ../fish/guestfish-actions.pod:2859 ../src/guestfs-actions.pod:4356
12984 "This command is mostly useful for interactive sessions. It is I<not> "
12985 "intended that you try to parse the output string."
12989 #: ../fish/guestfish-actions.pod:2862
12994 #: ../fish/guestfish-actions.pod:2864
12997 " ln target linkname\n"
13000 " ln призначення назва_посилання\n"
13004 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4371
13005 msgid "This command creates a hard link using the C<ln> command."
13009 #: ../fish/guestfish-actions.pod:2868
13014 #: ../fish/guestfish-actions.pod:2870
13017 " ln-f target linkname\n"
13020 " ln-f призначення назва_посилання\n"
13024 #: ../fish/guestfish-actions.pod:2872 ../src/guestfs-actions.pod:4384
13026 "This command creates a hard link using the C<ln -f> command. The I<-f> "
13027 "option removes the link (C<linkname>) if it exists already."
13031 #: ../fish/guestfish-actions.pod:2875
13036 #: ../fish/guestfish-actions.pod:2877
13039 " ln-s target linkname\n"
13042 " ln-s призначення назва_посилання\n"
13046 #: ../fish/guestfish-actions.pod:2879 ../src/guestfs-actions.pod:4398
13047 msgid "This command creates a symbolic link using the C<ln -s> command."
13051 #: ../fish/guestfish-actions.pod:2881
13056 #: ../fish/guestfish-actions.pod:2883
13059 " ln-sf target linkname\n"
13062 " ln-sf призначення назва_посилання\n"
13066 #: ../fish/guestfish-actions.pod:2885 ../src/guestfs-actions.pod:4411
13068 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
13069 "option removes the link (C<linkname>) if it exists already."
13073 #: ../fish/guestfish-actions.pod:2888
13074 msgid "lremovexattr"
13075 msgstr "lremovexattr"
13078 #: ../fish/guestfish-actions.pod:2890
13081 " lremovexattr xattr path\n"
13086 #: ../fish/guestfish-actions.pod:2892
13088 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
13089 "it removes an extended attribute of the link itself."
13093 #: ../fish/guestfish-actions.pod:2896
13098 #: ../fish/guestfish-actions.pod:2898
13108 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4439
13110 "List the files in C<directory> (relative to the root directory, there is no "
13111 "cwd). The '.' and '..' entries are not returned, but hidden files are shown."
13115 #: ../fish/guestfish-actions.pod:2904
13117 "This command is mostly useful for interactive sessions. Programs should "
13118 "probably use L</readdir> instead."
13122 #: ../fish/guestfish-actions.pod:2907
13127 #: ../fish/guestfish-actions.pod:2909
13130 " lsetxattr xattr val vallen path\n"
13135 #: ../fish/guestfish-actions.pod:2911
13137 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
13138 "sets an extended attribute of the link itself."
13142 #: ../fish/guestfish-actions.pod:2915
13147 #: ../fish/guestfish-actions.pod:2917
13157 #: ../fish/guestfish-actions.pod:2919 ../fish/guestfish-actions.pod:4817
13158 #: ../src/guestfs-actions.pod:4475 ../src/guestfs-actions.pod:7405
13159 msgid "Returns file information for the given C<path>."
13163 #: ../fish/guestfish-actions.pod:2921
13165 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
13166 "the link is stat-ed, not the file it refers to."
13170 #: ../fish/guestfish-actions.pod:2925 ../src/guestfs-actions.pod:4481
13171 msgid "This is the same as the C<lstat(2)> system call."
13175 #: ../fish/guestfish-actions.pod:2927
13180 #: ../fish/guestfish-actions.pod:2929
13183 " lstatlist path 'names ...'\n"
13188 #: ../fish/guestfish-actions.pod:2931
13190 "This call allows you to perform the L</lstat> operation on multiple files, "
13191 "where all files are in the directory C<path>. C<names> is the list of files "
13192 "from this directory."
13196 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4500
13198 "On return you get a list of stat structs, with a one-to-one correspondence "
13199 "to the C<names> list. If any name did not exist or could not be lstat'd, "
13200 "then the C<ino> field of that structure is set to C<-1>."
13204 #: ../fish/guestfish-actions.pod:2940
13206 "This call is intended for programs that want to efficiently list a directory "
13207 "contents without making many round-trips. See also L</lxattrlist> for a "
13208 "similarly efficient call for getting extended attributes. Very long "
13209 "directory listings might cause the protocol message size to be exceeded, "
13210 "causing this call to fail. The caller must split up such requests into "
13211 "smaller groups of names."
13215 #: ../fish/guestfish-actions.pod:2948
13216 msgid "luks-add-key"
13217 msgstr "luks-add-key"
13220 #: ../fish/guestfish-actions.pod:2950
13223 " luks-add-key device keyslot\n"
13228 #: ../fish/guestfish-actions.pod:2952 ../src/guestfs-actions.pod:4528
13230 "This command adds a new key on LUKS device C<device>. C<key> is any "
13231 "existing key, and is used to access the device. C<newkey> is the new key to "
13232 "add. C<keyslot> is the key slot that will be replaced."
13236 #: ../fish/guestfish-actions.pod:2957
13238 "Note that if C<keyslot> already contains a key, then this command will "
13239 "fail. You have to use L</luks-kill-slot> first to remove that key."
13243 #: ../fish/guestfish-actions.pod:2961 ../fish/guestfish-actions.pod:2983
13244 #: ../fish/guestfish-actions.pod:2993 ../fish/guestfish-actions.pod:3004
13245 #: ../fish/guestfish-actions.pod:3030 ../fish/guestfish-actions.pod:3040
13247 "This command has one or more key or passphrase parameters. Guestfish will "
13248 "prompt for these separately."
13252 #: ../fish/guestfish-actions.pod:2964
13254 msgstr "luks-close"
13257 #: ../fish/guestfish-actions.pod:2966
13260 " luks-close device\n"
13263 " luks-close пристрій\n"
13267 #: ../fish/guestfish-actions.pod:2968
13269 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
13270 "luks-open-ro>. The C<device> parameter must be the name of the LUKS mapping "
13271 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
13276 #: ../fish/guestfish-actions.pod:2974
13277 msgid "luks-format"
13278 msgstr "luks-format"
13281 #: ../fish/guestfish-actions.pod:2976
13284 " luks-format device keyslot\n"
13289 #: ../fish/guestfish-actions.pod:2978 ../src/guestfs-actions.pod:4569
13291 "This command erases existing data on C<device> and formats the device as a "
13292 "LUKS encrypted device. C<key> is the initial key, which is added to key "
13293 "slot C<slot>. (LUKS supports 8 key slots, numbered 0-7)."
13297 #: ../fish/guestfish-actions.pod:2986
13298 msgid "luks-format-cipher"
13299 msgstr "luks-format-cipher"
13302 #: ../fish/guestfish-actions.pod:2988
13305 " luks-format-cipher device keyslot cipher\n"
13310 #: ../fish/guestfish-actions.pod:2990
13312 "This command is the same as L</luks-format> but it also allows you to set "
13313 "the C<cipher> used."
13317 #: ../fish/guestfish-actions.pod:2996
13318 msgid "luks-kill-slot"
13319 msgstr "luks-kill-slot"
13322 #: ../fish/guestfish-actions.pod:2998
13325 " luks-kill-slot device keyslot\n"
13330 #: ../fish/guestfish-actions.pod:3000 ../src/guestfs-actions.pod:4610
13332 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
13333 "device C<device>. C<key> must be one of the I<other> keys."
13337 #: ../fish/guestfish-actions.pod:3007
13342 #: ../fish/guestfish-actions.pod:3009
13345 " luks-open device mapname\n"
13350 #: ../fish/guestfish-actions.pod:3011 ../src/guestfs-actions.pod:4630
13352 "This command opens a block device which has been encrypted according to the "
13353 "Linux Unified Key Setup (LUKS) standard."
13357 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4633
13358 msgid "C<device> is the encrypted block device or partition."
13362 #: ../fish/guestfish-actions.pod:3016 ../src/guestfs-actions.pod:4635
13364 "The caller must supply one of the keys associated with the LUKS block "
13365 "device, in the C<key> parameter."
13369 #: ../fish/guestfish-actions.pod:3019 ../src/guestfs-actions.pod:4638
13371 "This creates a new block device called C</dev/mapper/mapname>. Reads and "
13372 "writes to this block device are decrypted from and encrypted to the "
13373 "underlying C<device> respectively."
13377 #: ../fish/guestfish-actions.pod:3023
13379 "If this block device contains LVM volume groups, then calling L</vgscan> "
13380 "followed by L</vg-activate-all> will make them visible."
13384 #: ../fish/guestfish-actions.pod:3027
13385 msgid "Use L</list-dm-devices> to list all device mapper devices."
13389 #: ../fish/guestfish-actions.pod:3033
13390 msgid "luks-open-ro"
13391 msgstr "luks-open-ro"
13394 #: ../fish/guestfish-actions.pod:3035
13397 " luks-open-ro device mapname\n"
13402 #: ../fish/guestfish-actions.pod:3037
13404 "This is the same as L</luks-open> except that a read-only mapping is created."
13408 #: ../fish/guestfish-actions.pod:3043
13413 #: ../fish/guestfish-actions.pod:3045
13416 " lvcreate logvol volgroup mbytes\n"
13421 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4684
13423 "This creates an LVM logical volume called C<logvol> on the volume group "
13424 "C<volgroup>, with C<size> megabytes."
13428 #: ../fish/guestfish-actions.pod:3050
13429 msgid "lvm-canonical-lv-name"
13430 msgstr "lvm-canonical-lv-name"
13433 #: ../fish/guestfish-actions.pod:3052
13436 " lvm-canonical-lv-name lvname\n"
13441 #: ../fish/guestfish-actions.pod:3054 ../src/guestfs-actions.pod:4697
13443 "This converts alternative naming schemes for LVs that you might find to the "
13444 "canonical name. For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
13449 #: ../fish/guestfish-actions.pod:3058 ../src/guestfs-actions.pod:4701
13451 "This command returns an error if the C<lvname> parameter does not refer to a "
13456 #: ../fish/guestfish-actions.pod:3061
13457 msgid "See also L</is-lv>."
13458 msgstr "Див. також L</is-lv>."
13461 #: ../fish/guestfish-actions.pod:3063
13462 msgid "lvm-clear-filter"
13463 msgstr "lvm-clear-filter"
13466 #: ../fish/guestfish-actions.pod:3065
13469 " lvm-clear-filter\n"
13472 " lvm-clear-filter\n"
13476 #: ../fish/guestfish-actions.pod:3067
13478 "This undoes the effect of L</lvm-set-filter>. LVM will be able to see every "
13483 #: ../fish/guestfish-actions.pod:3070 ../fish/guestfish-actions.pod:3098
13484 #: ../src/guestfs-actions.pod:4719 ../src/guestfs-actions.pod:4758
13486 "This command also clears the LVM cache and performs a volume group scan."
13490 #: ../fish/guestfish-actions.pod:3073
13491 msgid "lvm-remove-all"
13492 msgstr "lvm-remove-all"
13495 #: ../fish/guestfish-actions.pod:3075
13498 " lvm-remove-all\n"
13501 " lvm-remove-all\n"
13505 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4731
13507 "This command removes all LVM logical volumes, volume groups and physical "
13512 #: ../fish/guestfish-actions.pod:3080
13513 msgid "lvm-set-filter"
13514 msgstr "lvm-set-filter"
13517 #: ../fish/guestfish-actions.pod:3082
13520 " lvm-set-filter 'devices ...'\n"
13523 " lvm-set-filter 'пристрої...'\n"
13527 #: ../fish/guestfish-actions.pod:3084 ../src/guestfs-actions.pod:4744
13529 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
13530 "block devices in the list C<devices>, and will ignore all other attached "
13535 #: ../fish/guestfish-actions.pod:3088 ../src/guestfs-actions.pod:4748
13537 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
13538 "get LVM to ignore the duplicates, otherwise LVM can get confused. Note also "
13539 "there are two types of duplication possible: either cloned PVs/VGs which "
13540 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
13541 "same name. In normal operation you cannot create this situation, but you "
13542 "can do it outside LVM, eg. by cloning disk images or by bit twiddling "
13543 "inside the LVM metadata."
13547 #: ../fish/guestfish-actions.pod:3101 ../src/guestfs-actions.pod:4761
13548 msgid "You can filter whole block devices or individual partitions."
13552 #: ../fish/guestfish-actions.pod:3103 ../src/guestfs-actions.pod:4763
13554 "You cannot use this if any VG is currently in use (eg. contains a mounted "
13555 "filesystem), even if you are not filtering out that VG."
13559 #: ../fish/guestfish-actions.pod:3107
13564 #: ../fish/guestfish-actions.pod:3109
13567 " lvremove device\n"
13570 " lvremove пристрій\n"
13574 #: ../fish/guestfish-actions.pod:3111 ../src/guestfs-actions.pod:4777
13576 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
13577 "LV, such as C</dev/VG/LV>."
13581 #: ../fish/guestfish-actions.pod:3114 ../src/guestfs-actions.pod:4780
13583 "You can also remove all LVs in a volume group by specifying the VG name, C</"
13588 #: ../fish/guestfish-actions.pod:3117
13593 #: ../fish/guestfish-actions.pod:3119
13596 " lvrename logvol newlogvol\n"
13601 #: ../fish/guestfish-actions.pod:3121 ../src/guestfs-actions.pod:4794
13602 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
13606 #: ../fish/guestfish-actions.pod:3123
13611 #: ../fish/guestfish-actions.pod:3125
13614 " lvresize device mbytes\n"
13619 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4807
13621 "This resizes (expands or shrinks) an existing LVM logical volume to "
13622 "C<mbytes>. When reducing, data in the reduced part is lost."
13626 #: ../fish/guestfish-actions.pod:3131
13627 msgid "lvresize-free"
13628 msgstr "lvresize-free"
13631 #: ../fish/guestfish-actions.pod:3133
13634 " lvresize-free lv percent\n"
13639 #: ../fish/guestfish-actions.pod:3135 ../src/guestfs-actions.pod:4822
13641 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
13642 "remaining free space in the volume group. Commonly you would call this with "
13643 "pc = 100 which expands the logical volume as much as possible, using all "
13644 "remaining free space in the volume group."
13648 #: ../fish/guestfish-actions.pod:3141
13653 #: ../fish/guestfish-actions.pod:3143
13663 #: ../fish/guestfish-actions.pod:3145 ../src/guestfs-actions.pod:4837
13665 "List all the logical volumes detected. This is the equivalent of the L<lvs"
13670 #: ../fish/guestfish-actions.pod:3148 ../src/guestfs-actions.pod:4840
13672 "This returns a list of the logical volume device names (eg. C</dev/"
13673 "VolGroup00/LogVol00>)."
13677 #: ../fish/guestfish-actions.pod:3151
13678 msgid "See also L</lvs-full>, L</list-filesystems>."
13679 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
13682 #: ../fish/guestfish-actions.pod:3153
13687 #: ../fish/guestfish-actions.pod:3155
13697 #: ../fish/guestfish-actions.pod:3157 ../src/guestfs-actions.pod:4856
13699 "List all the logical volumes detected. This is the equivalent of the L<lvs"
13700 "(8)> command. The \"full\" version includes all fields."
13704 #: ../fish/guestfish-actions.pod:3160
13709 #: ../fish/guestfish-actions.pod:3162
13715 " lvuuid пристрій\n"
13719 #: ../fish/guestfish-actions.pod:3164 ../src/guestfs-actions.pod:4871
13720 msgid "This command returns the UUID of the LVM LV C<device>."
13724 #: ../fish/guestfish-actions.pod:3166
13726 msgstr "lxattrlist"
13729 #: ../fish/guestfish-actions.pod:3168
13732 " lxattrlist path 'names ...'\n"
13737 #: ../fish/guestfish-actions.pod:3170 ../src/guestfs-actions.pod:4885
13739 "This call allows you to get the extended attributes of multiple files, where "
13740 "all files are in the directory C<path>. C<names> is the list of files from "
13745 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4889
13747 "On return you get a flat list of xattr structs which must be interpreted "
13748 "sequentially. The first xattr struct always has a zero-length C<attrname>. "
13749 "C<attrval> in this struct is zero-length to indicate there was an error "
13750 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
13751 "number (the number of following attributes for this file, which could be C<"
13752 "\"0\">). Then after the first xattr struct are the zero or more attributes "
13753 "for the first named file. This repeats for the second and subsequent files."
13757 #: ../fish/guestfish-actions.pod:3184
13759 "This call is intended for programs that want to efficiently list a directory "
13760 "contents without making many round-trips. See also L</lstatlist> for a "
13761 "similarly efficient call for getting standard stats. Very long directory "
13762 "listings might cause the protocol message size to be exceeded, causing this "
13763 "call to fail. The caller must split up such requests into smaller groups of "
13768 #: ../fish/guestfish-actions.pod:3192
13770 #| msgid "lvcreate"
13775 #: ../fish/guestfish-actions.pod:3194
13778 " md-create name 'devices ...' [missingbitmap:N] [nrdevices:N] [spare:N] [chunk:N] [level:..]\n"
13783 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4932
13785 "Create a Linux md (RAID) device named C<name> on the devices in the list "
13790 #: ../fish/guestfish-actions.pod:3203 ../src/guestfs-actions.pod:4939
13791 msgid "C<missingbitmap>"
13795 #: ../fish/guestfish-actions.pod:3205 ../src/guestfs-actions.pod:4941
13797 "A bitmap of missing devices. If a bit is set it means that a missing device "
13798 "is added to the array. The least significant bit corresponds to the first "
13799 "device in the array."
13803 #: ../fish/guestfish-actions.pod:3209 ../src/guestfs-actions.pod:4945
13805 #| msgid "For example:"
13806 msgid "As examples:"
13810 #: ../fish/guestfish-actions.pod:3211 ../src/guestfs-actions.pod:4947
13812 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x1> then the resulting "
13813 "array would be C<[E<lt>missingE<gt>, \"/dev/sda\"]>."
13817 #: ../fish/guestfish-actions.pod:3214 ../src/guestfs-actions.pod:4950
13819 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x2> then the resulting "
13820 "array would be C<[\"/dev/sda\", E<lt>missingE<gt>]>."
13824 #: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4953
13825 msgid "This defaults to C<0> (no missing devices)."
13829 #: ../fish/guestfish-actions.pod:3219 ../src/guestfs-actions.pod:4955
13831 "The length of C<devices> + the number of bits set in C<missingbitmap> must "
13832 "equal C<nrdevices> + C<spare>."
13836 #: ../fish/guestfish-actions.pod:3222 ../src/guestfs-actions.pod:4958
13839 msgid "C<nrdevices>"
13843 #: ../fish/guestfish-actions.pod:3224 ../src/guestfs-actions.pod:4960
13845 #| msgid "The number of hard links."
13846 msgid "The number of active RAID devices."
13847 msgstr "Кількість жорстких посилань."
13850 #: ../fish/guestfish-actions.pod:3226 ../src/guestfs-actions.pod:4962
13852 "If not set, this defaults to the length of C<devices> plus the number of "
13853 "bits set in C<missingbitmap>."
13857 #: ../fish/guestfish-actions.pod:3229 ../src/guestfs-actions.pod:4965
13864 #: ../fish/guestfish-actions.pod:3231 ../src/guestfs-actions.pod:4967
13866 #| msgid "The number of hard links."
13867 msgid "The number of spare devices."
13868 msgstr "Кількість жорстких посилань."
13871 #: ../fish/guestfish-actions.pod:3233 ../src/guestfs-actions.pod:4969
13872 msgid "If not set, this defaults to C<0>."
13876 #: ../fish/guestfish-actions.pod:3235 ../src/guestfs-actions.pod:4971
13881 #: ../fish/guestfish-actions.pod:3237 ../src/guestfs-actions.pod:4973
13883 #| msgid "The size in SI 1000 byte units."
13884 msgid "The chunk size in bytes."
13885 msgstr "Розмір у одиницях СІ: 1000 байтів."
13888 #: ../fish/guestfish-actions.pod:3239 ../fish/guestfish-actions.pod:3261
13889 #: ../src/guestfs-actions.pod:4975 ../src/guestfs-actions.pod:5023
13894 #: ../fish/guestfish-actions.pod:3241 ../src/guestfs-actions.pod:4977
13896 "The RAID level, which can be one of: I<linear>, I<raid0>, I<0>, I<stripe>, "
13897 "I<raid1>, I<1>, I<mirror>, I<raid4>, I<4>, I<raid5>, I<5>, I<raid6>, I<6>, "
13898 "I<raid10>, I<10>. Some of these are synonymous, and more levels may be "
13903 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:4982
13904 msgid "If not set, this defaults to C<raid1>."
13908 #: ../fish/guestfish-actions.pod:3252
13915 #: ../fish/guestfish-actions.pod:3254
13923 #: ../fish/guestfish-actions.pod:3256 ../src/guestfs-actions.pod:5018
13925 "This command exposes the output of 'mdadm -DY <md>'. The following fields "
13926 "are usually present in the returned hash. Other fields may also be present."
13930 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:5025
13931 msgid "The raid level of the MD device."
13935 #: ../fish/guestfish-actions.pod:3265 ../src/guestfs-actions.pod:5027
13942 #: ../fish/guestfish-actions.pod:3267 ../src/guestfs-actions.pod:5029
13943 msgid "The number of underlying devices in the MD device."
13947 #: ../fish/guestfish-actions.pod:3269 ../src/guestfs-actions.pod:5031
13948 msgid "C<metadata>"
13952 #: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:5033
13953 msgid "The metadata version used."
13957 #: ../fish/guestfish-actions.pod:3273 ../src/guestfs-actions.pod:5035
13959 #| msgid "B<--uuid>"
13964 #: ../fish/guestfish-actions.pod:3275 ../src/guestfs-actions.pod:5037
13965 msgid "The UUID of the MD device."
13969 #: ../fish/guestfish-actions.pod:3279 ../src/guestfs-actions.pod:5041
13971 #| msgid "The time of last access."
13972 msgid "The name of the MD device."
13973 msgstr "Час останнього доступу."
13976 #: ../fish/guestfish-actions.pod:3283
13981 #: ../fish/guestfish-actions.pod:3285
13989 #: ../fish/guestfish-actions.pod:3287 ../src/guestfs-actions.pod:5057
13991 "This command deactivates the MD array named C<md>. The device is stopped, "
13992 "but it is not destroyed or zeroed."
13996 #: ../fish/guestfish-actions.pod:3290
14001 #: ../fish/guestfish-actions.pod:3292
14011 #: ../fish/guestfish-actions.pod:3294 ../src/guestfs-actions.pod:5068
14012 msgid "Create a directory named C<path>."
14016 #: ../fish/guestfish-actions.pod:3296
14018 msgstr "mkdir-mode"
14021 #: ../fish/guestfish-actions.pod:3298
14024 " mkdir-mode path mode\n"
14027 " mkdir-mode шлях режим\n"
14031 #: ../fish/guestfish-actions.pod:3300 ../src/guestfs-actions.pod:5081
14033 "This command creates a directory, setting the initial permissions of the "
14034 "directory to C<mode>."
14038 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5084
14040 "For common Linux filesystems, the actual mode which is set will be C<mode & "
14041 "~umask & 01777>. Non-native-Linux filesystems may interpret the mode in "
14046 #: ../fish/guestfish-actions.pod:3307
14047 msgid "See also L</mkdir>, L</umask>"
14048 msgstr "Див. також L</mkdir>, L</umask>"
14051 #: ../fish/guestfish-actions.pod:3309
14056 #: ../fish/guestfish-actions.pod:3311
14066 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5100
14068 "Create a directory named C<path>, creating any parent directories as "
14069 "necessary. This is like the C<mkdir -p> shell command."
14073 #: ../fish/guestfish-actions.pod:3316
14078 #: ../fish/guestfish-actions.pod:3318
14081 " mkdtemp template\n"
14084 " mkdtemp шаблон\n"
14088 #: ../fish/guestfish-actions.pod:3320 ../src/guestfs-actions.pod:5113
14090 "This command creates a temporary directory. The C<template> parameter "
14091 "should be a full pathname for the temporary directory name with the final "
14092 "six characters being \"XXXXXX\"."
14096 #: ../fish/guestfish-actions.pod:3325 ../src/guestfs-actions.pod:5118
14098 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
14099 "being suitable for Windows filesystems."
14103 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5121
14104 msgid "The name of the temporary directory that was created is returned."
14108 #: ../fish/guestfish-actions.pod:3331 ../src/guestfs-actions.pod:5124
14109 msgid "The temporary directory is created with mode 0700 and is owned by root."
14113 #: ../fish/guestfish-actions.pod:3334 ../src/guestfs-actions.pod:5127
14115 "The caller is responsible for deleting the temporary directory and its "
14116 "contents after use."
14120 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5130
14121 msgid "See also: L<mkdtemp(3)>"
14122 msgstr "Див. також L<mkdtemp(3)>"
14125 #: ../fish/guestfish-actions.pod:3339
14130 #: ../fish/guestfish-actions.pod:3341
14133 " mke2fs-J fstype blocksize device journal\n"
14138 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5146
14140 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14141 "C<journal>. It is equivalent to the command:"
14145 #: ../fish/guestfish-actions.pod:3347 ../src/guestfs-actions.pod:5150
14148 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
14151 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
14155 #: ../fish/guestfish-actions.pod:3349
14156 msgid "See also L</mke2journal>."
14157 msgstr "Див. також L</mke2journal>."
14160 #: ../fish/guestfish-actions.pod:3351
14165 #: ../fish/guestfish-actions.pod:3353
14168 " mke2fs-JL fstype blocksize device label\n"
14173 #: ../fish/guestfish-actions.pod:3355 ../src/guestfs-actions.pod:5167
14175 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14176 "the journal labeled C<label>."
14180 #: ../fish/guestfish-actions.pod:3358
14181 msgid "See also L</mke2journal-L>."
14182 msgstr "Див. також L</mke2journal-L>."
14185 #: ../fish/guestfish-actions.pod:3360
14190 #: ../fish/guestfish-actions.pod:3362
14193 " mke2fs-JU fstype blocksize device uuid\n"
14198 #: ../fish/guestfish-actions.pod:3364 ../src/guestfs-actions.pod:5185
14200 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14201 "the journal with UUID C<uuid>."
14205 #: ../fish/guestfish-actions.pod:3367
14206 msgid "See also L</mke2journal-U>."
14207 msgstr "Див. також L</mke2journal-U>."
14210 #: ../fish/guestfish-actions.pod:3369
14211 msgid "mke2journal"
14212 msgstr "mke2journal"
14215 #: ../fish/guestfish-actions.pod:3371
14218 " mke2journal blocksize device\n"
14223 #: ../fish/guestfish-actions.pod:3373 ../src/guestfs-actions.pod:5201
14225 "This creates an ext2 external journal on C<device>. It is equivalent to the "
14230 #: ../fish/guestfish-actions.pod:3376 ../src/guestfs-actions.pod:5204
14233 " mke2fs -O journal_dev -b blocksize device\n"
14238 #: ../fish/guestfish-actions.pod:3378
14239 msgid "mke2journal-L"
14240 msgstr "mke2journal-L"
14243 #: ../fish/guestfish-actions.pod:3380
14246 " mke2journal-L blocksize label device\n"
14251 #: ../fish/guestfish-actions.pod:3382 ../src/guestfs-actions.pod:5218
14252 msgid "This creates an ext2 external journal on C<device> with label C<label>."
14256 #: ../fish/guestfish-actions.pod:3384
14257 msgid "mke2journal-U"
14258 msgstr "mke2journal-U"
14261 #: ../fish/guestfish-actions.pod:3386
14264 " mke2journal-U blocksize uuid device\n"
14269 #: ../fish/guestfish-actions.pod:3388 ../src/guestfs-actions.pod:5232
14270 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
14274 #: ../fish/guestfish-actions.pod:3390
14279 #: ../fish/guestfish-actions.pod:3392
14282 " mkfifo mode path\n"
14285 " mkfifo режим шлях\n"
14289 #: ../fish/guestfish-actions.pod:3394
14291 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
14292 "is just a convenient wrapper around L</mknod>."
14296 #: ../fish/guestfish-actions.pod:3400
14301 #: ../fish/guestfish-actions.pod:3402
14304 " mkfs fstype device\n"
14307 " mkfs тип_файлової_системи пристрій\n"
14311 #: ../fish/guestfish-actions.pod:3404 ../src/guestfs-actions.pod:5262
14313 "This creates a filesystem on C<device> (usually a partition or LVM logical "
14314 "volume). The filesystem type is C<fstype>, for example C<ext3>."
14318 #: ../fish/guestfish-actions.pod:3408
14323 #: ../fish/guestfish-actions.pod:3410
14326 " mkfs-b fstype blocksize device\n"
14331 #: ../fish/guestfish-actions.pod:3412
14333 "This call is similar to L</mkfs>, but it allows you to control the block "
14334 "size of the resulting filesystem. Supported block sizes depend on the "
14335 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
14339 #: ../fish/guestfish-actions.pod:3417 ../fish/guestfish-actions.pod:3444
14340 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5328
14342 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
14347 #: ../fish/guestfish-actions.pod:3420
14349 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
14354 #: ../fish/guestfish-actions.pod:3427
14359 #: ../fish/guestfish-actions.pod:3429
14362 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] [sectorsize:N]\n"
14367 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5315
14369 "This function creates a filesystem on C<device>. The filesystem type is "
14370 "C<fstype>, for example C<ext3>."
14374 #: ../fish/guestfish-actions.pod:3438 ../src/guestfs-actions.pod:5322
14375 msgid "C<blocksize>"
14376 msgstr "C<blocksize>"
14379 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5324
14381 "The filesystem block size. Supported block sizes depend on the filesystem "
14382 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
14387 #: ../fish/guestfish-actions.pod:3447 ../src/guestfs-actions.pod:5331
14388 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
14392 #: ../fish/guestfish-actions.pod:3449 ../src/guestfs-actions.pod:5333
14393 msgid "C<features>"
14394 msgstr "C<features>"
14397 #: ../fish/guestfish-actions.pod:3451 ../src/guestfs-actions.pod:5335
14398 msgid "This passes the I<-O> parameter to the external mkfs program."
14402 #: ../fish/guestfish-actions.pod:3453 ../src/guestfs-actions.pod:5337
14404 "For certain filesystem types, this allows extra filesystem features to be "
14405 "selected. See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
14409 #: ../fish/guestfish-actions.pod:3457 ../src/guestfs-actions.pod:5341
14411 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
14416 #: ../fish/guestfish-actions.pod:3460 ../src/guestfs-actions.pod:5344
14421 #: ../fish/guestfish-actions.pod:3462 ../src/guestfs-actions.pod:5346
14423 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
14424 "sets the inode size (only for ext2/3/4 filesystems at present)."
14428 #: ../fish/guestfish-actions.pod:3465 ../src/guestfs-actions.pod:5349
14429 msgid "C<sectorsize>"
14430 msgstr "C<sectorsize>"
14433 #: ../fish/guestfish-actions.pod:3467 ../src/guestfs-actions.pod:5351
14435 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
14436 "sets sector size for ufs filesystem."
14440 #: ../fish/guestfish-actions.pod:3474
14441 msgid "mkmountpoint"
14442 msgstr "mkmountpoint"
14445 #: ../fish/guestfish-actions.pod:3476
14448 " mkmountpoint exemptpath\n"
14453 #: ../fish/guestfish-actions.pod:3478
14455 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
14456 "to create extra mountpoints before mounting the first filesystem."
14460 #: ../fish/guestfish-actions.pod:3482 ../src/guestfs-actions.pod:5394
14462 "These calls are I<only> necessary in some very limited circumstances, mainly "
14463 "the case where you want to mount a mix of unrelated and/or read-only "
14464 "filesystems together."
14468 #: ../fish/guestfish-actions.pod:3486 ../src/guestfs-actions.pod:5398
14470 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
14471 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
14472 "inside that. You can unpack this as follows in guestfish:"
14476 #: ../fish/guestfish-actions.pod:3491 ../src/guestfs-actions.pod:5403
14479 " add-ro Fedora-11-i686-Live.iso\n"
14481 " mkmountpoint /cd\n"
14482 " mkmountpoint /sqsh\n"
14483 " mkmountpoint /ext3fs\n"
14484 " mount /dev/sda /cd\n"
14485 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14486 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14489 " add-ro Fedora-11-i686-Live.iso\n"
14491 " mkmountpoint /cd\n"
14492 " mkmountpoint /sqsh\n"
14493 " mkmountpoint /ext3fs\n"
14494 " mount /dev/sda /cd\n"
14495 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14496 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14500 #: ../fish/guestfish-actions.pod:3500 ../src/guestfs-actions.pod:5412
14501 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
14505 #: ../fish/guestfish-actions.pod:3502
14507 "L</mkmountpoint> is not compatible with L</umount-all>. You may get "
14508 "unexpected errors if you try to mix these calls. It is safest to manually "
14509 "unmount filesystems and remove mountpoints after use."
14513 #: ../fish/guestfish-actions.pod:3506
14515 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
14516 "for this to work for manual mountpoints, you must ensure that the innermost "
14517 "mountpoints have the longest pathnames, as in the example code above."
14521 #: ../fish/guestfish-actions.pod:3511 ../src/guestfs-actions.pod:5423
14523 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
14527 #: ../fish/guestfish-actions.pod:3513
14529 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
14530 "L</umount-all> to be called when the handle is closed which can also trigger "
14535 #: ../fish/guestfish-actions.pod:3517
14540 #: ../fish/guestfish-actions.pod:3519
14543 " mknod mode devmajor devminor path\n"
14548 #: ../fish/guestfish-actions.pod:3521 ../src/guestfs-actions.pod:5442
14550 "This call creates block or character special devices, or named pipes (FIFOs)."
14554 #: ../fish/guestfish-actions.pod:3524 ../src/guestfs-actions.pod:5445
14556 "The C<mode> parameter should be the mode, using the standard constants. "
14557 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
14558 "used when creating block and character special devices."
14562 #: ../fish/guestfish-actions.pod:3529
14564 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
14565 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
14566 "regular file). These constants are available in the standard Linux header "
14567 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
14568 "wrappers around this command which bitwise OR in the appropriate constant "
14573 #: ../fish/guestfish-actions.pod:3539
14578 #: ../fish/guestfish-actions.pod:3541
14581 " mknod-b mode devmajor devminor path\n"
14586 #: ../fish/guestfish-actions.pod:3543
14588 "This call creates a block device node called C<path> with mode C<mode> and "
14589 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
14590 "wrapper around L</mknod>."
14594 #: ../fish/guestfish-actions.pod:3549
14599 #: ../fish/guestfish-actions.pod:3551
14602 " mknod-c mode devmajor devminor path\n"
14607 #: ../fish/guestfish-actions.pod:3553
14609 "This call creates a char device node called C<path> with mode C<mode> and "
14610 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
14611 "wrapper around L</mknod>."
14615 #: ../fish/guestfish-actions.pod:3559
14620 #: ../fish/guestfish-actions.pod:3561
14626 " mkswap пристрій\n"
14630 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5508
14631 msgid "Create a swap partition on C<device>."
14635 #: ../fish/guestfish-actions.pod:3565
14640 #: ../fish/guestfish-actions.pod:3567
14643 " mkswap-L label device\n"
14646 " mkswap-L мітка пристрій\n"
14650 #: ../fish/guestfish-actions.pod:3569 ../src/guestfs-actions.pod:5521
14651 msgid "Create a swap partition on C<device> with label C<label>."
14655 #: ../fish/guestfish-actions.pod:3571 ../src/guestfs-actions.pod:5523
14657 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
14658 "sda>), just to a partition. This appears to be a limitation of the kernel "
14663 #: ../fish/guestfish-actions.pod:3575
14668 #: ../fish/guestfish-actions.pod:3577
14671 " mkswap-U uuid device\n"
14674 " mkswap-U uuid пристрій\n"
14678 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5538
14679 msgid "Create a swap partition on C<device> with UUID C<uuid>."
14683 #: ../fish/guestfish-actions.pod:3581
14684 msgid "mkswap-file"
14685 msgstr "mkswap-file"
14688 #: ../fish/guestfish-actions.pod:3583
14691 " mkswap-file path\n"
14694 " mkswap-file шлях\n"
14698 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5550
14699 msgid "Create a swap file."
14700 msgstr "Створити файл резервної пам’яті."
14703 #: ../fish/guestfish-actions.pod:3587
14705 "This command just writes a swap file signature to an existing file. To "
14706 "create the file itself, use something like L</fallocate>."
14710 #: ../fish/guestfish-actions.pod:3590
14715 #: ../fish/guestfish-actions.pod:3592
14718 " modprobe modulename\n"
14721 " modprobe назва_модуля\n"
14725 #: ../fish/guestfish-actions.pod:3594 ../src/guestfs-actions.pod:5565
14726 msgid "This loads a kernel module in the appliance."
14730 #: ../fish/guestfish-actions.pod:3596 ../src/guestfs-actions.pod:5567
14732 "The kernel module must have been whitelisted when libguestfs was built (see "
14733 "C<appliance/kmod.whitelist.in> in the source)."
14737 #: ../fish/guestfish-actions.pod:3599
14742 #: ../fish/guestfish-actions.pod:3601
14745 " mount device mountpoint\n"
14748 " mount пристрій точка_монтування\n"
14752 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5581
14754 "Mount a guest disk at a position in the filesystem. Block devices are named "
14755 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
14756 "those block devices contain partitions, they will have the usual names (eg. "
14757 "C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used."
14761 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5587
14763 "The rules are the same as for L<mount(2)>: A filesystem must first be "
14764 "mounted on C</> before others can be mounted. Other filesystems can only be "
14765 "mounted on directories which already exist."
14769 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5592
14771 "The mounted filesystem is writable, if we have sufficient permissions on the "
14772 "underlying device."
14776 #: ../fish/guestfish-actions.pod:3617
14778 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
14779 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
14780 "problems for users. If your program might need to work with older versions "
14781 "of libguestfs, use L</mount-options> instead (using an empty string for the "
14782 "first parameter if you don't want any options)."
14786 #: ../fish/guestfish-actions.pod:3624
14791 #: ../fish/guestfish-actions.pod:3626
14794 " mount-9p mounttag mountpoint [options:..]\n"
14799 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5621
14801 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
14806 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5624
14808 "If required, C<trans=virtio> will be automatically added to the options. "
14809 "Any other options required can be passed in the optional C<options> "
14814 #: ../fish/guestfish-actions.pod:3637
14816 msgstr "mount-loop"
14819 #: ../fish/guestfish-actions.pod:3639
14822 " mount-loop file mountpoint\n"
14827 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5663
14829 "This command lets you mount C<file> (a filesystem image in a file) on a "
14830 "mount point. It is entirely equivalent to the command C<mount -o loop file "
14835 #: ../fish/guestfish-actions.pod:3645
14836 msgid "mount-options"
14837 msgstr "mount-options"
14840 #: ../fish/guestfish-actions.pod:3647
14843 " mount-options options device mountpoint\n"
14848 #: ../fish/guestfish-actions.pod:3649
14850 "This is the same as the L</mount> command, but it allows you to set the "
14851 "mount options as for the L<mount(8)> I<-o> flag."
14855 #: ../fish/guestfish-actions.pod:3653 ../src/guestfs-actions.pod:5683
14857 "If the C<options> parameter is an empty string, then no options are passed "
14858 "(all options default to whatever the filesystem uses)."
14862 #: ../fish/guestfish-actions.pod:3657
14867 #: ../fish/guestfish-actions.pod:3659
14870 " mount-ro device mountpoint\n"
14873 " mount-ro пристрій точка_монтування\n"
14877 #: ../fish/guestfish-actions.pod:3661
14879 "This is the same as the L</mount> command, but it mounts the filesystem with "
14880 "the read-only (I<-o ro>) flag."
14884 #: ../fish/guestfish-actions.pod:3664
14889 #: ../fish/guestfish-actions.pod:3666
14892 " mount-vfs options vfstype device mountpoint\n"
14897 #: ../fish/guestfish-actions.pod:3668
14899 "This is the same as the L</mount> command, but it allows you to set both the "
14900 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
14904 #: ../fish/guestfish-actions.pod:3672
14905 msgid "mountpoints"
14906 msgstr "mountpoints"
14909 #: ../fish/guestfish-actions.pod:3674
14919 #: ../fish/guestfish-actions.pod:3676
14921 "This call is similar to L</mounts>. That call returns a list of devices. "
14922 "This one returns a hash table (map) of device name to directory where the "
14923 "device is mounted."
14927 #: ../fish/guestfish-actions.pod:3680
14932 #: ../fish/guestfish-actions.pod:3682
14942 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5744
14944 "This returns the list of currently mounted filesystems. It returns the list "
14945 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
14949 #: ../fish/guestfish-actions.pod:3687 ../src/guestfs-actions.pod:5747
14950 msgid "Some internal mounts are not shown."
14954 #: ../fish/guestfish-actions.pod:3689
14955 msgid "See also: L</mountpoints>"
14956 msgstr "Див. також L</mountpoints>"
14959 #: ../fish/guestfish-actions.pod:3691
14964 #: ../fish/guestfish-actions.pod:3693
14970 " mv джерело призначення\n"
14974 #: ../fish/guestfish-actions.pod:3695 ../src/guestfs-actions.pod:5764
14976 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14977 "destination filename or destination directory."
14981 #: ../fish/guestfish-actions.pod:3698
14982 msgid "ntfs-3g-probe"
14983 msgstr "ntfs-3g-probe"
14986 #: ../fish/guestfish-actions.pod:3700
14989 " ntfs-3g-probe true|false device\n"
14994 #: ../fish/guestfish-actions.pod:3702 ../src/guestfs-actions.pod:5778
14996 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14997 "C<device> for mountability. (Not all NTFS volumes can be mounted read-"
14998 "write, and some cannot be mounted at all)."
15002 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5782
15004 "C<rw> is a boolean flag. Set it to true if you want to test if the volume "
15005 "can be mounted read-write. Set it to false if you want to test if the "
15006 "volume can be mounted read-only."
15010 #: ../fish/guestfish-actions.pod:3710 ../src/guestfs-actions.pod:5786
15012 "The return value is an integer which C<0> if the operation would succeed, or "
15013 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
15017 #: ../fish/guestfish-actions.pod:3714
15019 msgstr "ntfsresize"
15022 #: ../fish/guestfish-actions.pod:3716
15025 " ntfsresize device\n"
15028 " ntfsresize пристрій\n"
15032 #: ../fish/guestfish-actions.pod:3718 ../fish/guestfish-actions.pod:3742
15033 #: ../src/guestfs-actions.pod:5807 ../src/guestfs-actions.pod:5839
15035 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
15036 "size of the underlying device."
15040 #: ../fish/guestfish-actions.pod:3721 ../src/guestfs-actions.pod:5810
15042 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
15043 "consistency check (for safety). You have to boot into Windows to perform "
15044 "this check and clear this condition. Furthermore, ntfsresize refuses to "
15045 "resize filesystems which have been marked in this way. So in effect it is "
15046 "not possible to call ntfsresize multiple times on a single filesystem "
15047 "without booting into Windows between each resize."
15051 #: ../fish/guestfish-actions.pod:3729 ../fish/guestfish-actions.pod:3768
15052 #: ../src/guestfs-actions.pod:5818 ../src/guestfs-actions.pod:5865
15053 msgid "See also L<ntfsresize(8)>."
15054 msgstr "Див. також L<ntfsresize(8)>."
15057 #: ../fish/guestfish-actions.pod:3731 ../fish/guestfish-actions.pod:3779
15059 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
15064 #: ../fish/guestfish-actions.pod:3738
15065 msgid "ntfsresize-opts"
15069 #: ../fish/guestfish-actions.pod:3740
15072 " ntfsresize-opts device [size:N] [force:true|false]\n"
15077 #: ../fish/guestfish-actions.pod:3751 ../src/guestfs-actions.pod:5848
15079 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
15080 "resized to fit the container (eg. partition)."
15084 #: ../fish/guestfish-actions.pod:3754 ../fish/guestfish-actions.pod:5075
15085 #: ../src/guestfs-actions.pod:5851 ../src/guestfs-actions.pod:7822
15090 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5853
15092 "If this option is true, then force the resize of the filesystem even if the "
15093 "filesystem is marked as requiring a consistency check."
15097 #: ../fish/guestfish-actions.pod:3759
15099 "After the resize operation, the filesystem is always marked as requiring a "
15100 "consistency check (for safety). You have to boot into Windows to perform "
15101 "this check and clear this condition. If you I<don't> set the C<force> "
15102 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
15103 "a single filesystem without booting into Windows between each resize."
15107 #: ../fish/guestfish-actions.pod:3772
15108 msgid "ntfsresize-size"
15109 msgstr "ntfsresize-size"
15112 #: ../fish/guestfish-actions.pod:3774
15115 " ntfsresize-size device size\n"
15120 #: ../fish/guestfish-actions.pod:3776
15122 "This command is the same as L</ntfsresize> except that it allows you to "
15123 "specify the new size (in bytes) explicitly."
15127 #: ../fish/guestfish-actions.pod:3786
15132 #: ../fish/guestfish-actions.pod:3788
15135 " part-add device prlogex startsect endsect\n"
15140 #: ../fish/guestfish-actions.pod:3790
15142 "This command adds a partition to C<device>. If there is no partition table "
15143 "on the device, call L</part-init> first."
15147 #: ../fish/guestfish-actions.pod:3793 ../src/guestfs-actions.pod:5926
15149 "The C<prlogex> parameter is the type of partition. Normally you should pass "
15150 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
15151 "C<logical>) and C<e> (or C<extended>) partition types."
15155 #: ../fish/guestfish-actions.pod:3798 ../src/guestfs-actions.pod:5931
15157 "C<startsect> and C<endsect> are the start and end of the partition in "
15158 "I<sectors>. C<endsect> may be negative, which means it counts backwards "
15159 "from the end of the disk (C<-1> is the last sector)."
15163 #: ../fish/guestfish-actions.pod:3802
15165 "Creating a partition which covers the whole disk is not so easy. Use L</"
15166 "part-disk> to do that."
15170 #: ../fish/guestfish-actions.pod:3805
15175 #: ../fish/guestfish-actions.pod:3807
15178 " part-del device partnum\n"
15183 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5949
15184 msgid "This command deletes the partition numbered C<partnum> on C<device>."
15188 #: ../fish/guestfish-actions.pod:3811 ../src/guestfs-actions.pod:5951
15190 "Note that in the case of MBR partitioning, deleting an extended partition "
15191 "also deletes any logical partitions it contains."
15195 #: ../fish/guestfish-actions.pod:3815
15200 #: ../fish/guestfish-actions.pod:3817
15203 " part-disk device parttype\n"
15206 " part-disk пристрій тип_розділу\n"
15210 #: ../fish/guestfish-actions.pod:3819
15212 "This command is simply a combination of L</part-init> followed by L</part-"
15213 "add> to create a single primary partition covering the whole disk."
15217 #: ../fish/guestfish-actions.pod:3823
15219 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
15220 "possible values are described in L</part-init>."
15224 #: ../fish/guestfish-actions.pod:3826
15225 msgid "part-get-bootable"
15226 msgstr "part-get-bootable"
15229 #: ../fish/guestfish-actions.pod:3828
15232 " part-get-bootable device partnum\n"
15237 #: ../fish/guestfish-actions.pod:3830 ../src/guestfs-actions.pod:5984
15239 "This command returns true if the partition C<partnum> on C<device> has the "
15240 "bootable flag set."
15244 #: ../fish/guestfish-actions.pod:3833
15245 msgid "See also L</part-set-bootable>."
15246 msgstr "Див. також L</part-set-bootable>."
15249 #: ../fish/guestfish-actions.pod:3835
15250 msgid "part-get-mbr-id"
15251 msgstr "part-get-mbr-id"
15254 #: ../fish/guestfish-actions.pod:3837
15257 " part-get-mbr-id device partnum\n"
15262 #: ../fish/guestfish-actions.pod:3839 ../src/guestfs-actions.pod:6000
15264 "Returns the MBR type byte (also known as the ID byte) from the numbered "
15265 "partition C<partnum>."
15269 #: ../fish/guestfish-actions.pod:3842 ../fish/guestfish-actions.pod:3986
15271 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
15272 "undefined results for other partition table types (see L</part-get-"
15277 #: ../fish/guestfish-actions.pod:3846
15278 msgid "part-get-parttype"
15279 msgstr "part-get-parttype"
15282 #: ../fish/guestfish-actions.pod:3848
15285 " part-get-parttype device\n"
15288 " part-get-parttype пристрій\n"
15292 #: ../fish/guestfish-actions.pod:3850 ../src/guestfs-actions.pod:6017
15294 "This command examines the partition table on C<device> and returns the "
15295 "partition table type (format) being used."
15299 #: ../fish/guestfish-actions.pod:3853
15301 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
15302 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
15303 "possible, although unusual. See L</part-init> for a full list."
15307 #: ../fish/guestfish-actions.pod:3858
15312 #: ../fish/guestfish-actions.pod:3860
15315 " part-init device parttype\n"
15320 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:6037
15322 "This creates an empty partition table on C<device> of one of the partition "
15323 "types listed below. Usually C<parttype> should be either C<msdos> or C<gpt> "
15324 "(for large disks)."
15328 #: ../fish/guestfish-actions.pod:3866
15330 "Initially there are no partitions. Following this, you should call L</part-"
15331 "add> for each partition required."
15335 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:6044
15336 msgid "Possible values for C<parttype> are:"
15340 #: ../fish/guestfish-actions.pod:3873 ../src/guestfs-actions.pod:6048
15345 #: ../fish/guestfish-actions.pod:3875 ../src/guestfs-actions.pod:6050
15350 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:6052
15351 msgid "Intel EFI / GPT partition table."
15355 #: ../fish/guestfish-actions.pod:3879 ../src/guestfs-actions.pod:6054
15357 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
15358 "and Intel-based Mac OS X. It also has limited backwards compatibility with "
15359 "the C<mbr> format."
15363 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:6058
15368 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:6060
15373 #: ../fish/guestfish-actions.pod:3887 ../src/guestfs-actions.pod:6062
15375 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
15376 "Windows. This partition type will B<only> work for device sizes up to 2 "
15377 "TB. For large disks we recommend using C<gpt>."
15381 #: ../fish/guestfish-actions.pod:3894 ../src/guestfs-actions.pod:6069
15383 "Other partition table types that may work but are not supported include:"
15387 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:6074
15392 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:6076
15393 msgid "AIX disk labels."
15394 msgstr "Мітки дисків AIX."
15397 #: ../fish/guestfish-actions.pod:3903 ../src/guestfs-actions.pod:6078
15402 #: ../fish/guestfish-actions.pod:3905 ../src/guestfs-actions.pod:6080
15407 #: ../fish/guestfish-actions.pod:3907 ../src/guestfs-actions.pod:6082
15408 msgid "Amiga \"Rigid Disk Block\" format."
15409 msgstr "Формат \"Rigid Disk Block\" Amiga."
15412 #: ../fish/guestfish-actions.pod:3909 ../src/guestfs-actions.pod:6084
15417 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:6086
15418 msgid "BSD disk labels."
15419 msgstr "Мітки дисків BSD."
15422 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:6088
15427 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:6090
15428 msgid "DASD, used on IBM mainframes."
15429 msgstr "DASD, використовувалися у мейнфреймах IBM."
15432 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:6092
15437 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6094
15438 msgid "MIPS/SGI volumes."
15439 msgstr "Томи MIPS/SGI."
15442 #: ../fish/guestfish-actions.pod:3921 ../src/guestfs-actions.pod:6096
15447 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:6098
15448 msgid "Old Mac partition format. Modern Macs use C<gpt>."
15449 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
15452 #: ../fish/guestfish-actions.pod:3925 ../src/guestfs-actions.pod:6100
15457 #: ../fish/guestfish-actions.pod:3927 ../src/guestfs-actions.pod:6102
15458 msgid "NEC PC-98 format, common in Japan apparently."
15459 msgstr "Формат NEC PC-98, поширений у Японії."
15462 #: ../fish/guestfish-actions.pod:3929 ../src/guestfs-actions.pod:6104
15467 #: ../fish/guestfish-actions.pod:3931 ../src/guestfs-actions.pod:6106
15468 msgid "Sun disk labels."
15469 msgstr "Мітки дисків Sun."
15472 #: ../fish/guestfish-actions.pod:3935
15477 #: ../fish/guestfish-actions.pod:3937
15480 " part-list device\n"
15483 " part-list device\n"
15487 #: ../fish/guestfish-actions.pod:3939 ../src/guestfs-actions.pod:6120
15489 "This command parses the partition table on C<device> and returns the list of "
15490 "partitions found."
15494 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6123
15495 msgid "The fields in the returned structure are:"
15499 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6127
15500 msgid "B<part_num>"
15501 msgstr "B<part_num>"
15504 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6129
15505 msgid "Partition number, counting from 1."
15509 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6131
15510 msgid "B<part_start>"
15511 msgstr "B<part_start>"
15514 #: ../fish/guestfish-actions.pod:3952
15516 "Start of the partition I<in bytes>. To get sectors you have to divide by "
15517 "the device's sector size, see L</blockdev-getss>."
15521 #: ../fish/guestfish-actions.pod:3955 ../src/guestfs-actions.pod:6136
15522 msgid "B<part_end>"
15523 msgstr "B<part_end>"
15526 #: ../fish/guestfish-actions.pod:3957 ../src/guestfs-actions.pod:6138
15527 msgid "End of the partition in bytes."
15531 #: ../fish/guestfish-actions.pod:3959 ../src/guestfs-actions.pod:6140
15532 msgid "B<part_size>"
15533 msgstr "B<part_size>"
15536 #: ../fish/guestfish-actions.pod:3961 ../src/guestfs-actions.pod:6142
15537 msgid "Size of the partition in bytes."
15541 #: ../fish/guestfish-actions.pod:3965
15542 msgid "part-set-bootable"
15543 msgstr "part-set-bootable"
15546 #: ../fish/guestfish-actions.pod:3967
15549 " part-set-bootable device partnum true|false\n"
15554 #: ../fish/guestfish-actions.pod:3969 ../src/guestfs-actions.pod:6160
15556 "This sets the bootable flag on partition numbered C<partnum> on device "
15557 "C<device>. Note that partitions are numbered from 1."
15561 #: ../fish/guestfish-actions.pod:3972 ../src/guestfs-actions.pod:6163
15563 "The bootable flag is used by some operating systems (notably Windows) to "
15564 "determine which partition to boot from. It is by no means universally "
15569 #: ../fish/guestfish-actions.pod:3976
15570 msgid "part-set-mbr-id"
15571 msgstr "part-set-mbr-id"
15574 #: ../fish/guestfish-actions.pod:3978
15577 " part-set-mbr-id device partnum idbyte\n"
15582 #: ../fish/guestfish-actions.pod:3980 ../src/guestfs-actions.pod:6179
15584 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
15585 "C<partnum> to C<idbyte>. Note that the type bytes quoted in most "
15586 "documentation are in fact hexadecimal numbers, but usually documented "
15587 "without any leading \"0x\" which might be confusing."
15591 #: ../fish/guestfish-actions.pod:3990
15592 msgid "part-set-name"
15593 msgstr "part-set-name"
15596 #: ../fish/guestfish-actions.pod:3992
15599 " part-set-name device partnum name\n"
15604 #: ../fish/guestfish-actions.pod:3994 ../src/guestfs-actions.pod:6201
15606 "This sets the partition name on partition numbered C<partnum> on device "
15607 "C<device>. Note that partitions are numbered from 1."
15611 #: ../fish/guestfish-actions.pod:3997 ../src/guestfs-actions.pod:6204
15613 "The partition name can only be set on certain types of partition table. "
15614 "This works on C<gpt> but not on C<mbr> partitions."
15618 #: ../fish/guestfish-actions.pod:4000
15619 msgid "part-to-dev"
15620 msgstr "part-to-dev"
15623 #: ../fish/guestfish-actions.pod:4002
15626 " part-to-dev partition\n"
15629 " part-to-dev розділ\n"
15633 #: ../fish/guestfish-actions.pod:4004 ../src/guestfs-actions.pod:6217
15635 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
15636 "partition number, returning the device name (eg. \"/dev/sdb\")."
15640 #: ../fish/guestfish-actions.pod:4008 ../fish/guestfish-actions.pod:4020
15642 "The named partition must exist, for example as a string returned from L</"
15643 "list-partitions>."
15647 #: ../fish/guestfish-actions.pod:4011
15648 msgid "See also L</part-to-partnum>."
15652 #: ../fish/guestfish-actions.pod:4013
15653 msgid "part-to-partnum"
15657 #: ../fish/guestfish-actions.pod:4015
15660 " part-to-partnum partition\n"
15665 #: ../fish/guestfish-actions.pod:4017 ../src/guestfs-actions.pod:6237
15667 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
15668 "partition number (eg. C<1>)."
15672 #: ../fish/guestfish-actions.pod:4023
15673 msgid "See also L</part-to-dev>."
15677 #: ../fish/guestfish-actions.pod:4025
15678 msgid "ping-daemon"
15679 msgstr "ping-daemon"
15682 #: ../fish/guestfish-actions.pod:4027
15692 #: ../fish/guestfish-actions.pod:4029 ../src/guestfs-actions.pod:6254
15694 "This is a test probe into the guestfs daemon running inside the qemu "
15695 "subprocess. Calling this function checks that the daemon responds to the "
15696 "ping message, without affecting the daemon or attached block device(s) in "
15701 #: ../fish/guestfish-actions.pod:4034
15706 #: ../fish/guestfish-actions.pod:4036
15709 " pread path count offset\n"
15714 #: ../fish/guestfish-actions.pod:4038 ../src/guestfs-actions.pod:6272
15716 "This command lets you read part of a file. It reads C<count> bytes of the "
15717 "file, starting at C<offset>, from file C<path>."
15721 #: ../fish/guestfish-actions.pod:4041 ../fish/guestfish-actions.pod:4056
15722 #: ../src/guestfs-actions.pod:6275 ../src/guestfs-actions.pod:6301
15724 "This may read fewer bytes than requested. For further details see the "
15725 "L<pread(2)> system call."
15729 #: ../fish/guestfish-actions.pod:4044
15730 msgid "See also L</pwrite>, L</pread-device>."
15731 msgstr "Див. також L</pwrite>, L</pread-device>."
15734 #: ../fish/guestfish-actions.pod:4049
15735 msgid "pread-device"
15736 msgstr "pread-device"
15739 #: ../fish/guestfish-actions.pod:4051
15742 " pread-device device count offset\n"
15747 #: ../fish/guestfish-actions.pod:4053 ../src/guestfs-actions.pod:6298
15749 "This command lets you read part of a file. It reads C<count> bytes of "
15750 "C<device>, starting at C<offset>."
15754 #: ../fish/guestfish-actions.pod:4059
15755 msgid "See also L</pread>."
15756 msgstr "Див. також L</pread>."
15759 #: ../fish/guestfish-actions.pod:4064
15764 #: ../fish/guestfish-actions.pod:4066
15767 " pvcreate device\n"
15770 " pvcreate пристрій\n"
15774 #: ../fish/guestfish-actions.pod:4068 ../src/guestfs-actions.pod:6321
15776 "This creates an LVM physical volume on the named C<device>, where C<device> "
15777 "should usually be a partition name such as C</dev/sda1>."
15781 #: ../fish/guestfish-actions.pod:4072
15786 #: ../fish/guestfish-actions.pod:4074
15789 " pvremove device\n"
15792 " pvremove пристрій\n"
15796 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6335
15798 "This wipes a physical volume C<device> so that LVM will no longer recognise "
15803 #: ../fish/guestfish-actions.pod:4079 ../src/guestfs-actions.pod:6338
15805 "The implementation uses the C<pvremove> command which refuses to wipe "
15806 "physical volumes that contain any volume groups, so you have to remove those "
15811 #: ../fish/guestfish-actions.pod:4083
15816 #: ../fish/guestfish-actions.pod:4085
15819 " pvresize device\n"
15822 " pvresize пристрій\n"
15826 #: ../fish/guestfish-actions.pod:4087 ../src/guestfs-actions.pod:6352
15828 "This resizes (expands or shrinks) an existing LVM physical volume to match "
15829 "the new size of the underlying device."
15833 #: ../fish/guestfish-actions.pod:4090
15834 msgid "pvresize-size"
15835 msgstr "pvresize-size"
15838 #: ../fish/guestfish-actions.pod:4092
15841 " pvresize-size device size\n"
15846 #: ../fish/guestfish-actions.pod:4094
15848 "This command is the same as L</pvresize> except that it allows you to "
15849 "specify the new size (in bytes) explicitly."
15853 #: ../fish/guestfish-actions.pod:4097
15858 #: ../fish/guestfish-actions.pod:4099
15868 #: ../fish/guestfish-actions.pod:4101 ../src/guestfs-actions.pod:6378
15870 "List all the physical volumes detected. This is the equivalent of the L<pvs"
15875 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6381
15877 "This returns a list of just the device names that contain PVs (eg. C</dev/"
15882 #: ../fish/guestfish-actions.pod:4107
15883 msgid "See also L</pvs-full>."
15884 msgstr "Див. також L</pvs-full>."
15887 #: ../fish/guestfish-actions.pod:4109
15892 #: ../fish/guestfish-actions.pod:4111
15902 #: ../fish/guestfish-actions.pod:4113 ../src/guestfs-actions.pod:6397
15904 "List all the physical volumes detected. This is the equivalent of the L<pvs"
15905 "(8)> command. The \"full\" version includes all fields."
15909 #: ../fish/guestfish-actions.pod:4116
15914 #: ../fish/guestfish-actions.pod:4118
15920 " pvuuid пристрій\n"
15924 #: ../fish/guestfish-actions.pod:4120 ../src/guestfs-actions.pod:6412
15925 msgid "This command returns the UUID of the LVM PV C<device>."
15929 #: ../fish/guestfish-actions.pod:4122
15934 #: ../fish/guestfish-actions.pod:4124
15937 " pwrite path content offset\n"
15942 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6428
15944 "This command writes to part of a file. It writes the data buffer C<content> "
15945 "to the file C<path> starting at offset C<offset>."
15949 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6431
15951 "This command implements the L<pwrite(2)> system call, and like that system "
15952 "call it may not write the full data requested. The return value is the "
15953 "number of bytes that were actually written to the file. This could even be "
15954 "0, although short writes are unlikely for regular files in ordinary "
15959 #: ../fish/guestfish-actions.pod:4135
15960 msgid "See also L</pread>, L</pwrite-device>."
15961 msgstr "Див. також L</pread>, L</pwrite-device>."
15964 #: ../fish/guestfish-actions.pod:4140
15965 msgid "pwrite-device"
15966 msgstr "pwrite-device"
15969 #: ../fish/guestfish-actions.pod:4142
15972 " pwrite-device device content offset\n"
15977 #: ../fish/guestfish-actions.pod:4144 ../src/guestfs-actions.pod:6455
15979 "This command writes to part of a device. It writes the data buffer "
15980 "C<content> to C<device> starting at offset C<offset>."
15984 #: ../fish/guestfish-actions.pod:4147 ../src/guestfs-actions.pod:6458
15986 "This command implements the L<pwrite(2)> system call, and like that system "
15987 "call it may not write the full data requested (although short writes to disk "
15988 "devices and partitions are probably impossible with standard Linux kernels)."
15992 #: ../fish/guestfish-actions.pod:4152
15993 msgid "See also L</pwrite>."
15994 msgstr "Див. також L</pwrite>."
15997 #: ../fish/guestfish-actions.pod:4157
16002 #: ../fish/guestfish-actions.pod:4159
16005 " read-file path\n"
16008 " read-file шлях\n"
16012 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6479
16013 msgid "This calls returns the contents of the file C<path> as a buffer."
16017 #: ../fish/guestfish-actions.pod:4164
16019 "Unlike L</cat>, this function can correctly handle files that contain "
16020 "embedded ASCII NUL characters. However unlike L</download>, this function "
16021 "is limited in the total size of file that can be handled."
16025 #: ../fish/guestfish-actions.pod:4172
16027 msgstr "read-lines"
16030 #: ../fish/guestfish-actions.pod:4174
16033 " read-lines path\n"
16036 " read-lines шлях\n"
16040 #: ../fish/guestfish-actions.pod:4178 ../src/guestfs-actions.pod:6504
16042 "The file contents are returned as a list of lines. Trailing C<LF> and "
16043 "C<CRLF> character sequences are I<not> returned."
16047 #: ../fish/guestfish-actions.pod:4181
16049 "Note that this function cannot correctly handle binary files (specifically, "
16050 "files containing C<\\0> character which is treated as end of line). For "
16051 "those you need to use the L</read-file> function which has a more complex "
16056 #: ../fish/guestfish-actions.pod:4186
16061 #: ../fish/guestfish-actions.pod:4188
16067 " readdir каталог\n"
16071 #: ../fish/guestfish-actions.pod:4190 ../src/guestfs-actions.pod:6524
16072 msgid "This returns the list of directory entries in directory C<dir>."
16076 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6526
16078 "All entries in the directory are returned, including C<.> and C<..>. The "
16079 "entries are I<not> sorted, but returned in the same order as the underlying "
16084 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6530
16086 "Also this call returns basic file type information about each file. The "
16087 "C<ftyp> field will contain one of the following characters:"
16091 #: ../fish/guestfish-actions.pod:4201 ../src/guestfs-actions.pod:6535
16096 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6537
16097 msgid "Block special"
16098 msgstr "Блоковий особливий"
16101 #: ../fish/guestfish-actions.pod:4205 ../src/guestfs-actions.pod:6539
16106 #: ../fish/guestfish-actions.pod:4207 ../src/guestfs-actions.pod:6541
16107 msgid "Char special"
16108 msgstr "Символьний особливий"
16111 #: ../fish/guestfish-actions.pod:4209 ../src/guestfs-actions.pod:6543
16116 #: ../fish/guestfish-actions.pod:4211 ../src/guestfs-actions.pod:6545
16121 #: ../fish/guestfish-actions.pod:4213 ../src/guestfs-actions.pod:6547
16126 #: ../fish/guestfish-actions.pod:4215 ../src/guestfs-actions.pod:6549
16127 msgid "FIFO (named pipe)"
16128 msgstr "FIFO (іменований канал)"
16131 #: ../fish/guestfish-actions.pod:4217 ../src/guestfs-actions.pod:6551
16136 #: ../fish/guestfish-actions.pod:4219 ../src/guestfs-actions.pod:6553
16137 msgid "Symbolic link"
16138 msgstr "Символічне посилання"
16141 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6555
16146 #: ../fish/guestfish-actions.pod:4223 ../src/guestfs-actions.pod:6557
16147 msgid "Regular file"
16148 msgstr "Звичайний файл"
16151 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6559
16156 #: ../fish/guestfish-actions.pod:4227 ../src/guestfs-actions.pod:6561
16161 #: ../fish/guestfish-actions.pod:4229 ../src/guestfs-actions.pod:6563
16166 #: ../fish/guestfish-actions.pod:4231 ../src/guestfs-actions.pod:6565
16167 msgid "Unknown file type"
16168 msgstr "Невідомий тип файла"
16171 #: ../fish/guestfish-actions.pod:4233 ../src/guestfs-actions.pod:6567
16176 #: ../fish/guestfish-actions.pod:4235 ../src/guestfs-actions.pod:6569
16178 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
16182 #: ../fish/guestfish-actions.pod:4240
16184 "This function is primarily intended for use by programs. To get a simple "
16185 "list of names, use L</ls>. To get a printable directory for human "
16186 "consumption, use L</ll>."
16190 #: ../fish/guestfish-actions.pod:4244
16195 #: ../fish/guestfish-actions.pod:4246
16205 #: ../fish/guestfish-actions.pod:4248 ../src/guestfs-actions.pod:6590
16206 msgid "This command reads the target of a symbolic link."
16210 #: ../fish/guestfish-actions.pod:4250
16211 msgid "readlinklist"
16212 msgstr "readlinklist"
16215 #: ../fish/guestfish-actions.pod:4252
16218 " readlinklist path 'names ...'\n"
16223 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6604
16225 "This call allows you to do a C<readlink> operation on multiple files, where "
16226 "all files are in the directory C<path>. C<names> is the list of files from "
16231 #: ../fish/guestfish-actions.pod:4258 ../src/guestfs-actions.pod:6608
16233 "On return you get a list of strings, with a one-to-one correspondence to the "
16234 "C<names> list. Each string is the value of the symbolic link."
16238 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6612
16240 "If the C<readlink(2)> operation fails on any name, then the corresponding "
16241 "result string is the empty string C<\"\">. However the whole operation is "
16242 "completed even if there were C<readlink(2)> errors, and so you can call this "
16243 "function with names where you don't know if they are symbolic links already "
16244 "(albeit slightly less efficient)."
16248 #: ../fish/guestfish-actions.pod:4269 ../src/guestfs-actions.pod:6619
16250 "This call is intended for programs that want to efficiently list a directory "
16251 "contents without making many round-trips. Very long directory listings "
16252 "might cause the protocol message size to be exceeded, causing this call to "
16253 "fail. The caller must split up such requests into smaller groups of names."
16257 #: ../fish/guestfish-actions.pod:4276
16262 #: ../fish/guestfish-actions.pod:4278
16272 #: ../fish/guestfish-actions.pod:4280 ../src/guestfs-actions.pod:6638
16274 "Return the canonicalized absolute pathname of C<path>. The returned path "
16275 "has no C<.>, C<..> or symbolic link path elements."
16279 #: ../fish/guestfish-actions.pod:4283
16280 msgid "removexattr"
16281 msgstr "removexattr"
16284 #: ../fish/guestfish-actions.pod:4285
16287 " removexattr xattr path\n"
16292 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6653
16294 "This call removes the extended attribute named C<xattr> of the file C<path>."
16298 #: ../fish/guestfish-actions.pod:4290
16299 msgid "See also: L</lremovexattr>, L<attr(5)>."
16300 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
16303 #: ../fish/guestfish-actions.pod:4292
16308 #: ../fish/guestfish-actions.pod:4294
16311 " resize2fs device\n"
16314 " resize2fs пристрій\n"
16318 #: ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:6668
16320 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
16321 "underlying device."
16325 #: ../fish/guestfish-actions.pod:4299
16327 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
16328 "before calling this command. For unknown reasons C<resize2fs> sometimes "
16329 "gives an error about this and sometimes not. In any case, it is always safe "
16330 "to call L</e2fsck-f> before calling this function."
16334 #: ../fish/guestfish-actions.pod:4305
16335 msgid "resize2fs-M"
16336 msgstr "resize2fs-M"
16339 #: ../fish/guestfish-actions.pod:4307
16342 " resize2fs-M device\n"
16345 " resize2fs-M пристрій\n"
16349 #: ../fish/guestfish-actions.pod:4309
16351 "This command is the same as L</resize2fs>, but the filesystem is resized to "
16352 "its minimum size. This works like the I<-M> option to the C<resize2fs> "
16357 #: ../fish/guestfish-actions.pod:4313
16359 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
16360 "and read the C<Block size> and C<Block count> values. These two numbers, "
16361 "multiplied together, give the resulting size of the minimal filesystem in "
16366 #: ../fish/guestfish-actions.pod:4318
16367 msgid "resize2fs-size"
16368 msgstr "resize2fs-size"
16371 #: ../fish/guestfish-actions.pod:4320
16374 " resize2fs-size device size\n"
16379 #: ../fish/guestfish-actions.pod:4322
16381 "This command is the same as L</resize2fs> except that it allows you to "
16382 "specify the new size (in bytes) explicitly."
16386 #: ../fish/guestfish-actions.pod:4325
16391 #: ../fish/guestfish-actions.pod:4327
16401 #: ../fish/guestfish-actions.pod:4329 ../src/guestfs-actions.pod:6720
16402 msgid "Remove the single file C<path>."
16406 #: ../fish/guestfish-actions.pod:4331
16411 #: ../fish/guestfish-actions.pod:4333
16421 #: ../fish/guestfish-actions.pod:4335 ../src/guestfs-actions.pod:6732
16423 "Remove the file or directory C<path>, recursively removing the contents if "
16424 "its a directory. This is like the C<rm -rf> shell command."
16428 #: ../fish/guestfish-actions.pod:4339
16433 #: ../fish/guestfish-actions.pod:4341
16443 #: ../fish/guestfish-actions.pod:4343 ../src/guestfs-actions.pod:6746
16444 msgid "Remove the single directory C<path>."
16448 #: ../fish/guestfish-actions.pod:4345
16449 msgid "rmmountpoint"
16450 msgstr "rmmountpoint"
16453 #: ../fish/guestfish-actions.pod:4347
16456 " rmmountpoint exemptpath\n"
16461 #: ../fish/guestfish-actions.pod:4349
16463 "This calls removes a mountpoint that was previously created with L</"
16464 "mkmountpoint>. See L</mkmountpoint> for full details."
16468 #: ../fish/guestfish-actions.pod:4353
16469 msgid "scrub-device"
16470 msgstr "scrub-device"
16473 #: ../fish/guestfish-actions.pod:4355
16476 " scrub-device device\n"
16479 " scrub-device пристрій\n"
16483 #: ../fish/guestfish-actions.pod:4357 ../src/guestfs-actions.pod:6772
16485 "This command writes patterns over C<device> to make data retrieval more "
16490 #: ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4372
16491 #: ../fish/guestfish-actions.pod:4385 ../src/guestfs-actions.pod:6775
16492 #: ../src/guestfs-actions.pod:6793 ../src/guestfs-actions.pod:6812
16494 "It is an interface to the L<scrub(1)> program. See that manual page for "
16499 #: ../fish/guestfish-actions.pod:4363
16501 msgstr "scrub-file"
16504 #: ../fish/guestfish-actions.pod:4365
16507 " scrub-file file\n"
16510 " scrub-file файл\n"
16514 #: ../fish/guestfish-actions.pod:4367 ../src/guestfs-actions.pod:6788
16516 "This command writes patterns over a file to make data retrieval more "
16521 #: ../fish/guestfish-actions.pod:4370 ../src/guestfs-actions.pod:6791
16522 msgid "The file is I<removed> after scrubbing."
16526 #: ../fish/guestfish-actions.pod:4375
16527 msgid "scrub-freespace"
16528 msgstr "scrub-freespace"
16531 #: ../fish/guestfish-actions.pod:4377
16534 " scrub-freespace dir\n"
16537 " scrub-freespace каталог\n"
16541 #: ../fish/guestfish-actions.pod:4379
16543 "This command creates the directory C<dir> and then fills it with files until "
16544 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
16545 "deletes them. The intention is to scrub any free space on the partition "
16546 "containing C<dir>."
16550 #: ../fish/guestfish-actions.pod:4388
16552 msgstr "set-append"
16555 #: ../fish/guestfish-actions.pod:4390
16560 #: ../fish/guestfish-actions.pod:4392
16563 " set-append append\n"
16568 #: ../fish/guestfish-actions.pod:4394 ../src/guestfs-actions.pod:6825
16570 "This function is used to add additional options to the guest kernel command "
16575 #: ../fish/guestfish-actions.pod:4397 ../src/guestfs-actions.pod:6828
16577 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
16578 "environment variable."
16582 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6831
16584 "Setting C<append> to C<NULL> means I<no> additional options are passed "
16585 "(libguestfs always adds a few of its own)."
16589 #: ../fish/guestfish-actions.pod:4403
16590 msgid "set-attach-method"
16591 msgstr "set-attach-method"
16594 #: ../fish/guestfish-actions.pod:4405
16595 msgid "attach-method"
16599 #: ../fish/guestfish-actions.pod:4407
16602 " set-attach-method attachmethod\n"
16607 #: ../fish/guestfish-actions.pod:4409 ../src/guestfs-actions.pod:6844
16609 "Set the method that libguestfs uses to connect to the back end guestfsd "
16610 "daemon. Possible methods are:"
16614 #: ../fish/guestfish-actions.pod:4414 ../src/guestfs-actions.pod:6849
16615 #: ../src/guestfs.pod:2917
16616 msgid "C<appliance>"
16617 msgstr "C<appliance>"
16620 #: ../fish/guestfish-actions.pod:4416 ../src/guestfs-actions.pod:6851
16622 "Launch an appliance and connect to it. This is the ordinary method and the "
16627 #: ../fish/guestfish-actions.pod:4419 ../src/guestfs-actions.pod:6854
16628 msgid "C<unix:I<path>>"
16629 msgstr "C<unix:I<шлях>>"
16632 #: ../fish/guestfish-actions.pod:4421 ../src/guestfs-actions.pod:6856
16633 msgid "Connect to the Unix domain socket I<path>."
16634 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
16637 #: ../fish/guestfish-actions.pod:4423 ../src/guestfs-actions.pod:6858
16639 "This method lets you connect to an existing daemon or (using virtio-serial) "
16640 "to a live guest. For more information, see L<guestfs(3)/ATTACHING TO "
16641 "RUNNING DAEMONS>."
16645 #: ../fish/guestfish-actions.pod:4429
16646 msgid "set-autosync"
16647 msgstr "set-autosync"
16650 #: ../fish/guestfish-actions.pod:4431
16655 #: ../fish/guestfish-actions.pod:4433
16658 " set-autosync true|false\n"
16661 " set-autosync true|false\n"
16665 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6874
16667 "If C<autosync> is true, this enables autosync. Libguestfs will make a best "
16668 "effort attempt to make filesystems consistent and synchronized when the "
16669 "handle is closed (also if the program exits without closing handles)."
16673 #: ../fish/guestfish-actions.pod:4440 ../src/guestfs-actions.pod:6879
16675 "This is enabled by default (since libguestfs 1.5.24, previously it was "
16676 "disabled by default)."
16680 #: ../fish/guestfish-actions.pod:4443
16682 msgstr "set-direct"
16685 #: ../fish/guestfish-actions.pod:4445
16690 #: ../fish/guestfish-actions.pod:4447
16693 " set-direct true|false\n"
16696 " set-direct true|false\n"
16700 #: ../fish/guestfish-actions.pod:4449 ../src/guestfs-actions.pod:6892
16702 "If the direct appliance mode flag is enabled, then stdin and stdout are "
16703 "passed directly through to the appliance once it is launched."
16707 #: ../fish/guestfish-actions.pod:4453
16709 "One consequence of this is that log messages aren't caught by the library "
16710 "and handled by L</set-log-message-callback>, but go straight to stdout."
16714 #: ../fish/guestfish-actions.pod:4457 ../src/guestfs-actions.pod:6900
16715 msgid "You probably don't want to use this unless you know what you are doing."
16719 #: ../fish/guestfish-actions.pod:4460 ../src/guestfs-actions.pod:6903
16720 msgid "The default is disabled."
16724 #: ../fish/guestfish-actions.pod:4462
16725 msgid "set-e2label"
16726 msgstr "set-e2label"
16729 #: ../fish/guestfish-actions.pod:4464
16732 " set-e2label device label\n"
16737 #: ../fish/guestfish-actions.pod:4466 ../src/guestfs-actions.pod:6916
16739 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
16740 "C<label>. Filesystem labels are limited to 16 characters."
16744 #: ../fish/guestfish-actions.pod:4470
16746 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
16747 "label on a filesystem."
16751 #: ../fish/guestfish-actions.pod:4473
16753 msgstr "set-e2uuid"
16756 #: ../fish/guestfish-actions.pod:4475
16759 " set-e2uuid device uuid\n"
16764 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6934
16766 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
16767 "C<uuid>. The format of the UUID and alternatives such as C<clear>, "
16768 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
16772 #: ../fish/guestfish-actions.pod:4482
16774 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
16775 "UUID of a filesystem."
16779 #: ../fish/guestfish-actions.pod:4485
16780 msgid "set-memsize"
16781 msgstr "set-memsize"
16784 #: ../fish/guestfish-actions.pod:4487
16789 #: ../fish/guestfish-actions.pod:4489
16792 " set-memsize memsize\n"
16797 #: ../fish/guestfish-actions.pod:4491
16799 "This sets the memory size in megabytes allocated to the qemu subprocess. "
16800 "This only has any effect if called before L</launch>."
16804 #: ../fish/guestfish-actions.pod:4495 ../src/guestfs-actions.pod:6956
16806 "You can also change this by setting the environment variable "
16807 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
16811 #: ../fish/guestfish-actions.pod:4502
16812 msgid "set-network"
16813 msgstr "set-network"
16816 #: ../fish/guestfish-actions.pod:4504
16821 #: ../fish/guestfish-actions.pod:4506
16824 " set-network true|false\n"
16827 " set-network true|false\n"
16831 #: ../fish/guestfish-actions.pod:4508 ../src/guestfs-actions.pod:6973
16833 "If C<network> is true, then the network is enabled in the libguestfs "
16834 "appliance. The default is false."
16838 #: ../fish/guestfish-actions.pod:4511 ../src/guestfs-actions.pod:6976
16840 "This affects whether commands are able to access the network (see L<guestfs"
16841 "(3)/RUNNING COMMANDS>)."
16845 #: ../fish/guestfish-actions.pod:4514
16847 "You must call this before calling L</launch>, otherwise it has no effect."
16851 #: ../fish/guestfish-actions.pod:4517
16856 #: ../fish/guestfish-actions.pod:4521
16859 " set-path searchpath\n"
16864 #: ../fish/guestfish-actions.pod:4523 ../src/guestfs-actions.pod:6992
16865 msgid "Set the path that libguestfs searches for kernel and initrd.img."
16869 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6994
16871 "The default is C<$libdir/guestfs> unless overridden by setting "
16872 "C<LIBGUESTFS_PATH> environment variable."
16876 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6997
16877 msgid "Setting C<path> to C<NULL> restores the default path."
16881 #: ../fish/guestfish-actions.pod:4530
16886 #: ../fish/guestfish-actions.pod:4532
16891 #: ../fish/guestfish-actions.pod:4534
16894 " set-pgroup true|false\n"
16899 #: ../fish/guestfish-actions.pod:4536 ../src/guestfs-actions.pod:7009
16901 "If C<pgroup> is true, child processes are placed into their own process "
16906 #: ../fish/guestfish-actions.pod:4539 ../src/guestfs-actions.pod:7012
16908 "The practical upshot of this is that signals like C<SIGINT> (from users "
16909 "pressing C<^C>) won't be received by the child process."
16913 #: ../fish/guestfish-actions.pod:4542 ../src/guestfs-actions.pod:7015
16915 "The default for this flag is false, because usually you want C<^C> to kill "
16920 #: ../fish/guestfish-actions.pod:4545
16925 #: ../fish/guestfish-actions.pod:4547
16930 #: ../fish/guestfish-actions.pod:4549
16940 #: ../fish/guestfish-actions.pod:4551 ../src/guestfs-actions.pod:7028
16941 msgid "Set the qemu binary that we will use."
16945 #: ../fish/guestfish-actions.pod:4553 ../src/guestfs-actions.pod:7030
16947 "The default is chosen when the library was compiled by the configure script."
16951 #: ../fish/guestfish-actions.pod:4556 ../src/guestfs-actions.pod:7033
16953 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
16958 #: ../fish/guestfish-actions.pod:4559 ../src/guestfs-actions.pod:7036
16959 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
16963 #: ../fish/guestfish-actions.pod:4561 ../src/guestfs-actions.pod:7038
16965 "Note that you should call this function as early as possible after creating "
16966 "the handle. This is because some pre-launch operations depend on testing "
16967 "qemu features (by running C<qemu -help>). If the qemu binary changes, we "
16968 "don't retest features, and so you might see inconsistent results. Using the "
16969 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
16970 "the qemu binary at the same time as the handle is created."
16974 #: ../fish/guestfish-actions.pod:4569
16975 msgid "set-recovery-proc"
16976 msgstr "set-recovery-proc"
16979 #: ../fish/guestfish-actions.pod:4571
16980 msgid "recovery-proc"
16981 msgstr "recovery-proc"
16984 #: ../fish/guestfish-actions.pod:4573
16987 " set-recovery-proc true|false\n"
16990 " set-recovery-proc true|false\n"
16994 #: ../fish/guestfish-actions.pod:4575
16996 "If this is called with the parameter C<false> then L</launch> does not "
16997 "create a recovery process. The purpose of the recovery process is to stop "
16998 "runaway qemu processes in the case where the main program aborts abruptly."
17002 #: ../fish/guestfish-actions.pod:4580
17004 "This only has any effect if called before L</launch>, and the default is "
17009 #: ../fish/guestfish-actions.pod:4583 ../src/guestfs-actions.pod:7064
17011 "About the only time when you would want to disable this is if the main "
17012 "process will fork itself into the background (\"daemonize\" itself). In "
17013 "this case the recovery process thinks that the main program has disappeared "
17014 "and so kills qemu, which is not very helpful."
17018 #: ../fish/guestfish-actions.pod:4589
17019 msgid "set-selinux"
17020 msgstr "set-selinux"
17023 #: ../fish/guestfish-actions.pod:4591
17028 #: ../fish/guestfish-actions.pod:4593
17031 " set-selinux true|false\n"
17034 " set-selinux true|false\n"
17038 #: ../fish/guestfish-actions.pod:4595 ../src/guestfs-actions.pod:7080
17040 "This sets the selinux flag that is passed to the appliance at boot time. "
17041 "The default is C<selinux=0> (disabled)."
17045 #: ../fish/guestfish-actions.pod:4598 ../src/guestfs-actions.pod:7083
17047 "Note that if SELinux is enabled, it is always in Permissive mode "
17048 "(C<enforcing=0>)."
17052 #: ../fish/guestfish-actions.pod:4604
17057 #: ../fish/guestfish-actions.pod:4606
17062 #: ../fish/guestfish-actions.pod:4608
17070 #: ../fish/guestfish-actions.pod:4610 ../src/guestfs-actions.pod:7099
17072 "Change the number of virtual CPUs assigned to the appliance. The default is "
17073 "C<1>. Increasing this may improve performance, though often it has no "
17078 #: ../fish/guestfish-actions.pod:4614
17079 msgid "This function must be called before L</launch>."
17083 #: ../fish/guestfish-actions.pod:4616
17088 #: ../fish/guestfish-actions.pod:4618
17093 #: ../fish/guestfish-actions.pod:4620
17096 " set-trace true|false\n"
17099 " set-trace true|false\n"
17103 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:7115
17105 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
17106 "return values are traced."
17110 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:7118
17112 "If you want to trace C API calls into libguestfs (and other libraries) then "
17113 "possibly a better way is to use the external ltrace(1) command."
17117 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:7122
17119 "Command traces are disabled unless the environment variable "
17120 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
17124 #: ../fish/guestfish-actions.pod:4632
17126 "Trace messages are normally sent to C<stderr>, unless you register a "
17127 "callback to send them somewhere else (see L</set-event-callback>)."
17131 #: ../fish/guestfish-actions.pod:4636
17132 msgid "set-verbose"
17133 msgstr "set-verbose"
17136 #: ../fish/guestfish-actions.pod:4638
17141 #: ../fish/guestfish-actions.pod:4640
17144 " set-verbose true|false\n"
17147 " set-verbose true|false\n"
17151 #: ../fish/guestfish-actions.pod:4642 ../src/guestfs-actions.pod:7139
17152 msgid "If C<verbose> is true, this turns on verbose messages."
17156 #: ../fish/guestfish-actions.pod:4644 ../src/guestfs-actions.pod:7141
17158 "Verbose messages are disabled unless the environment variable "
17159 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
17163 #: ../fish/guestfish-actions.pod:4647
17165 "Verbose messages are normally sent to C<stderr>, unless you register a "
17166 "callback to send them somewhere else (see L</set-event-callback>)."
17170 #: ../fish/guestfish-actions.pod:4651
17175 #: ../fish/guestfish-actions.pod:4653
17178 " setcon context\n"
17181 " setcon контекст\n"
17185 #: ../fish/guestfish-actions.pod:4655 ../src/guestfs-actions.pod:7158
17187 "This sets the SELinux security context of the daemon to the string "
17192 #: ../fish/guestfish-actions.pod:4658 ../src/guestfs-actions.pod:7161
17193 msgid "See the documentation about SELINUX in L<guestfs(3)>."
17197 #: ../fish/guestfish-actions.pod:4660
17202 #: ../fish/guestfish-actions.pod:4662
17205 " setxattr xattr val vallen path\n"
17210 #: ../fish/guestfish-actions.pod:4664 ../src/guestfs-actions.pod:7176
17212 "This call sets the extended attribute named C<xattr> of the file C<path> to "
17213 "the value C<val> (of length C<vallen>). The value is arbitrary 8 bit data."
17217 #: ../fish/guestfish-actions.pod:4668
17218 msgid "See also: L</lsetxattr>, L<attr(5)>."
17219 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
17222 #: ../fish/guestfish-actions.pod:4670
17227 #: ../fish/guestfish-actions.pod:4672
17230 " sfdisk device cyls heads sectors 'lines ...'\n"
17235 #: ../fish/guestfish-actions.pod:4674 ../src/guestfs-actions.pod:7203
17237 "This is a direct interface to the L<sfdisk(8)> program for creating "
17238 "partitions on block devices."
17242 #: ../fish/guestfish-actions.pod:4677 ../src/guestfs-actions.pod:7206
17243 msgid "C<device> should be a block device, for example C</dev/sda>."
17247 #: ../fish/guestfish-actions.pod:4679 ../src/guestfs-actions.pod:7208
17249 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
17250 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
17251 "H> and I<-S> parameters. If you pass C<0> for any of these, then the "
17252 "corresponding parameter is omitted. Usually for 'large' disks, you can just "
17253 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
17254 "the kernel) cannot work out the right geometry and you will need to tell it."
17258 #: ../fish/guestfish-actions.pod:4687 ../src/guestfs-actions.pod:7216
17260 "C<lines> is a list of lines that we feed to C<sfdisk>. For more information "
17261 "refer to the L<sfdisk(8)> manpage."
17265 #: ../fish/guestfish-actions.pod:4690 ../src/guestfs-actions.pod:7219
17267 "To create a single partition occupying the whole disk, you would pass "
17268 "C<lines> as a single element list, when the single element being the string "
17273 #: ../fish/guestfish-actions.pod:4694
17274 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
17275 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
17278 #: ../fish/guestfish-actions.pod:4697 ../fish/guestfish-actions.pod:4717
17279 #: ../fish/guestfish-actions.pod:4736
17281 "I<This function is deprecated.> In new code, use the L</part_add> call "
17286 #: ../fish/guestfish-actions.pod:4704
17291 #: ../fish/guestfish-actions.pod:4706
17294 " sfdiskM device 'lines ...'\n"
17299 #: ../fish/guestfish-actions.pod:4708
17301 "This is a simplified interface to the L</sfdisk> command, where partition "
17302 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
17303 "you don't need to specify the cyls, heads and sectors parameters which were "
17304 "rarely if ever used anyway."
17308 #: ../fish/guestfish-actions.pod:4714
17309 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
17311 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
17314 #: ../fish/guestfish-actions.pod:4724
17319 #: ../fish/guestfish-actions.pod:4726
17322 " sfdisk-N device partnum cyls heads sectors line\n"
17327 #: ../fish/guestfish-actions.pod:4728 ../src/guestfs-actions.pod:7275
17329 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
17330 "(note: C<n> counts from 1)."
17334 #: ../fish/guestfish-actions.pod:4731
17336 "For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
17337 "cyls/heads/sectors parameters."
17341 #: ../fish/guestfish-actions.pod:4734
17342 msgid "See also: L</part-add>"
17343 msgstr "Див. також L</part-add>"
17346 #: ../fish/guestfish-actions.pod:4743
17347 msgid "sfdisk-disk-geometry"
17348 msgstr "sfdisk-disk-geometry"
17351 #: ../fish/guestfish-actions.pod:4745
17354 " sfdisk-disk-geometry device\n"
17357 " sfdisk-disk-geometry пристрій\n"
17361 #: ../fish/guestfish-actions.pod:4747
17363 "This displays the disk geometry of C<device> read from the partition table. "
17364 "Especially in the case where the underlying block device has been resized, "
17365 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
17366 "kernel-geometry>)."
17370 #: ../fish/guestfish-actions.pod:4752 ../fish/guestfish-actions.pod:4761
17371 #: ../src/guestfs-actions.pod:7298 ../src/guestfs-actions.pod:7314
17372 msgid "The result is in human-readable format, and not designed to be parsed."
17376 #: ../fish/guestfish-actions.pod:4755
17377 msgid "sfdisk-kernel-geometry"
17378 msgstr "sfdisk-kernel-geometry"
17381 #: ../fish/guestfish-actions.pod:4757
17384 " sfdisk-kernel-geometry device\n"
17387 " sfdisk-kernel-geometry пристрій\n"
17391 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7312
17392 msgid "This displays the kernel's idea of the geometry of C<device>."
17396 #: ../fish/guestfish-actions.pod:4764
17401 #: ../fish/guestfish-actions.pod:4766
17404 " sfdisk-l device\n"
17407 " sfdisk-l пристрій\n"
17411 #: ../fish/guestfish-actions.pod:4768 ../src/guestfs-actions.pod:7335
17413 "This displays the partition table on C<device>, in the human-readable output "
17414 "of the L<sfdisk(8)> command. It is not intended to be parsed."
17418 #: ../fish/guestfish-actions.pod:4772
17419 msgid "See also: L</part-list>"
17420 msgstr "Див. також L</part-list>"
17423 #: ../fish/guestfish-actions.pod:4774
17425 "I<This function is deprecated.> In new code, use the L</part_list> call "
17430 #: ../fish/guestfish-actions.pod:4781
17435 #: ../fish/guestfish-actions.pod:4783
17445 #: ../fish/guestfish-actions.pod:4785 ../src/guestfs-actions.pod:7352
17447 "This call runs a command from the guest filesystem via the guest's C</bin/"
17452 #: ../fish/guestfish-actions.pod:4788
17453 msgid "This is like L</command>, but passes the command to:"
17457 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7357
17460 " /bin/sh -c \"command\"\n"
17465 #: ../fish/guestfish-actions.pod:4792 ../src/guestfs-actions.pod:7359
17467 "Depending on the guest's shell, this usually results in wildcards being "
17468 "expanded, shell expressions being interpolated and so on."
17472 #: ../fish/guestfish-actions.pod:4796
17473 msgid "All the provisos about L</command> apply to this call."
17477 #: ../fish/guestfish-actions.pod:4798
17482 #: ../fish/guestfish-actions.pod:4800
17485 " sh-lines command\n"
17488 " sh-lines команда\n"
17492 #: ../fish/guestfish-actions.pod:4802
17493 msgid "This is the same as L</sh>, but splits the result into a list of lines."
17497 #: ../fish/guestfish-actions.pod:4805
17498 msgid "See also: L</command-lines>"
17499 msgstr "Див. також L</command-lines>"
17502 #: ../fish/guestfish-actions.pod:4807
17507 #: ../fish/guestfish-actions.pod:4809
17513 " sleep час_у_секундах\n"
17517 #: ../fish/guestfish-actions.pod:4811 ../src/guestfs-actions.pod:7393
17518 msgid "Sleep for C<secs> seconds."
17522 #: ../fish/guestfish-actions.pod:4813
17527 #: ../fish/guestfish-actions.pod:4815
17537 #: ../fish/guestfish-actions.pod:4819 ../src/guestfs-actions.pod:7407
17538 msgid "This is the same as the C<stat(2)> system call."
17542 #: ../fish/guestfish-actions.pod:4821
17547 #: ../fish/guestfish-actions.pod:4823
17557 #: ../fish/guestfish-actions.pod:4825 ../src/guestfs-actions.pod:7421
17559 "Returns file system statistics for any mounted file system. C<path> should "
17560 "be a file or directory in the mounted file system (typically it is the mount "
17561 "point itself, but it doesn't need to be)."
17565 #: ../fish/guestfish-actions.pod:4829 ../src/guestfs-actions.pod:7425
17566 msgid "This is the same as the C<statvfs(2)> system call."
17570 #: ../fish/guestfish-actions.pod:4831
17575 #: ../fish/guestfish-actions.pod:4833
17585 #: ../fish/guestfish-actions.pod:4835 ../src/guestfs-actions.pod:7439
17587 "This runs the L<strings(1)> command on a file and returns the list of "
17588 "printable strings found."
17592 #: ../fish/guestfish-actions.pod:4841
17597 #: ../fish/guestfish-actions.pod:4843
17600 " strings-e encoding path\n"
17603 " strings-e кодування шлях\n"
17607 #: ../fish/guestfish-actions.pod:4845
17609 "This is like the L</strings> command, but allows you to specify the encoding "
17610 "of strings that are looked for in the source file C<path>."
17614 #: ../fish/guestfish-actions.pod:4849 ../src/guestfs-actions.pod:7462
17615 msgid "Allowed encodings are:"
17616 msgstr "Можливими кодуваннями є:"
17619 #: ../fish/guestfish-actions.pod:4853 ../src/guestfs-actions.pod:7466
17624 #: ../fish/guestfish-actions.pod:4855
17626 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
17627 "ISO-8859-X (this is what L</strings> uses)."
17631 #: ../fish/guestfish-actions.pod:4858 ../src/guestfs-actions.pod:7471
17636 #: ../fish/guestfish-actions.pod:4860 ../src/guestfs-actions.pod:7473
17637 msgid "Single 8-bit-byte characters."
17638 msgstr "Окремі 8-бітові-байтові символи."
17641 #: ../fish/guestfish-actions.pod:4862 ../src/guestfs-actions.pod:7475
17646 #: ../fish/guestfish-actions.pod:4864 ../src/guestfs-actions.pod:7477
17647 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
17651 #: ../fish/guestfish-actions.pod:4867 ../src/guestfs-actions.pod:7480
17652 msgid "l (lower case letter L)"
17656 #: ../fish/guestfish-actions.pod:4869 ../src/guestfs-actions.pod:7482
17658 "16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
17659 "examining binaries in Windows guests."
17663 #: ../fish/guestfish-actions.pod:4872 ../src/guestfs-actions.pod:7485
17668 #: ../fish/guestfish-actions.pod:4874 ../src/guestfs-actions.pod:7487
17669 msgid "32-bit big endian such as UCS-4BE."
17673 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7489
17678 #: ../fish/guestfish-actions.pod:4878 ../src/guestfs-actions.pod:7491
17679 msgid "32-bit little endian such as UCS-4LE."
17683 #: ../fish/guestfish-actions.pod:4882 ../src/guestfs-actions.pod:7495
17684 msgid "The returned strings are transcoded to UTF-8."
17688 #: ../fish/guestfish-actions.pod:4887
17689 msgid "swapoff-device"
17690 msgstr "swapoff-device"
17693 #: ../fish/guestfish-actions.pod:4889
17696 " swapoff-device device\n"
17699 " swapoff-device пристрій\n"
17703 #: ../fish/guestfish-actions.pod:4891
17705 "This command disables the libguestfs appliance swap device or partition "
17706 "named C<device>. See L</swapon-device>."
17710 #: ../fish/guestfish-actions.pod:4895
17711 msgid "swapoff-file"
17712 msgstr "swapoff-file"
17715 #: ../fish/guestfish-actions.pod:4897
17718 " swapoff-file file\n"
17721 " swapoff-file файл\n"
17725 #: ../fish/guestfish-actions.pod:4899 ../src/guestfs-actions.pod:7526
17726 msgid "This command disables the libguestfs appliance swap on file."
17730 #: ../fish/guestfish-actions.pod:4901
17731 msgid "swapoff-label"
17732 msgstr "swapoff-label"
17735 #: ../fish/guestfish-actions.pod:4903
17738 " swapoff-label label\n"
17741 " swapoff-label мітка\n"
17745 #: ../fish/guestfish-actions.pod:4905 ../src/guestfs-actions.pod:7538
17747 "This command disables the libguestfs appliance swap on labeled swap "
17752 #: ../fish/guestfish-actions.pod:4908
17753 msgid "swapoff-uuid"
17754 msgstr "swapoff-uuid"
17757 #: ../fish/guestfish-actions.pod:4910
17760 " swapoff-uuid uuid\n"
17763 " swapoff-uuid uuid\n"
17767 #: ../fish/guestfish-actions.pod:4912 ../src/guestfs-actions.pod:7551
17769 "This command disables the libguestfs appliance swap partition with the given "
17774 #: ../fish/guestfish-actions.pod:4915
17775 msgid "swapon-device"
17776 msgstr "swapon-device"
17779 #: ../fish/guestfish-actions.pod:4917
17782 " swapon-device device\n"
17785 " swapon-device пристрій\n"
17789 #: ../fish/guestfish-actions.pod:4919
17791 "This command enables the libguestfs appliance to use the swap device or "
17792 "partition named C<device>. The increased memory is made available for all "
17793 "commands, for example those run using L</command> or L</sh>."
17797 #: ../fish/guestfish-actions.pod:4924 ../src/guestfs-actions.pod:7569
17799 "Note that you should not swap to existing guest swap partitions unless you "
17800 "know what you are doing. They may contain hibernation information, or other "
17801 "information that the guest doesn't want you to trash. You also risk leaking "
17802 "information about the host to the guest this way. Instead, attach a new "
17803 "host device to the guest and swap on that."
17807 #: ../fish/guestfish-actions.pod:4931
17808 msgid "swapon-file"
17809 msgstr "swapon-file"
17812 #: ../fish/guestfish-actions.pod:4933
17815 " swapon-file file\n"
17818 " swapon-file файл\n"
17822 #: ../fish/guestfish-actions.pod:4935
17824 "This command enables swap to a file. See L</swapon-device> for other notes."
17828 #: ../fish/guestfish-actions.pod:4938
17829 msgid "swapon-label"
17830 msgstr "swapon-label"
17833 #: ../fish/guestfish-actions.pod:4940
17836 " swapon-label label\n"
17839 " swapon-label мітка\n"
17843 #: ../fish/guestfish-actions.pod:4942
17845 "This command enables swap to a labeled swap partition. See L</swapon-"
17846 "device> for other notes."
17850 #: ../fish/guestfish-actions.pod:4945
17851 msgid "swapon-uuid"
17852 msgstr "swapon-uuid"
17855 #: ../fish/guestfish-actions.pod:4947
17858 " swapon-uuid uuid\n"
17861 " swapon-uuid uuid\n"
17865 #: ../fish/guestfish-actions.pod:4949
17867 "This command enables swap to a swap partition with the given UUID. See L</"
17868 "swapon-device> for other notes."
17872 #: ../fish/guestfish-actions.pod:4952
17877 #: ../fish/guestfish-actions.pod:4954
17887 #: ../fish/guestfish-actions.pod:4956 ../src/guestfs-actions.pod:7624
17889 "This syncs the disk, so that any writes are flushed through to the "
17890 "underlying disk image."
17894 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7627
17896 "You should always call this if you have modified a disk image, before "
17897 "closing the handle."
17901 #: ../fish/guestfish-actions.pod:4962
17906 #: ../fish/guestfish-actions.pod:4964
17916 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7640
17918 "This command returns up to the last 10 lines of a file as a list of strings."
17922 #: ../fish/guestfish-actions.pod:4972
17927 #: ../fish/guestfish-actions.pod:4974
17930 " tail-n nrlines path\n"
17935 #: ../fish/guestfish-actions.pod:4976 ../src/guestfs-actions.pod:7659
17937 "If the parameter C<nrlines> is a positive number, this returns the last "
17938 "C<nrlines> lines of the file C<path>."
17942 #: ../fish/guestfish-actions.pod:4979 ../src/guestfs-actions.pod:7662
17944 "If the parameter C<nrlines> is a negative number, this returns lines from "
17945 "the file C<path>, starting with the C<-nrlines>th line."
17949 #: ../fish/guestfish-actions.pod:4987
17954 #: ../fish/guestfish-actions.pod:4989
17957 " tar-in (tarfile|-) directory\n"
17960 " tar-in (файл_tar|-) каталог\n"
17964 #: ../fish/guestfish-actions.pod:4991 ../src/guestfs-actions.pod:7683
17966 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
17967 "tar file) into C<directory>."
17971 #: ../fish/guestfish-actions.pod:4994
17972 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
17976 #: ../fish/guestfish-actions.pod:4999
17981 #: ../fish/guestfish-actions.pod:5001
17984 " tar-out directory (tarfile|-)\n"
17987 " tar-out каталог (файл tar|-)\n"
17991 #: ../fish/guestfish-actions.pod:5003 ../src/guestfs-actions.pod:7700
17993 "This command packs the contents of C<directory> and downloads it to local "
17998 #: ../fish/guestfish-actions.pod:5006
17999 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
18003 #: ../fish/guestfish-actions.pod:5011
18008 #: ../fish/guestfish-actions.pod:5013
18011 " tgz-in (tarball|-) directory\n"
18014 " tgz-in (архів tar|-) каталог\n"
18018 #: ../fish/guestfish-actions.pod:5015 ../src/guestfs-actions.pod:7717
18020 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
18021 "tar file) into C<directory>."
18025 #: ../fish/guestfish-actions.pod:5018
18026 msgid "To upload an uncompressed tarball, use L</tar-in>."
18030 #: ../fish/guestfish-actions.pod:5022
18035 #: ../fish/guestfish-actions.pod:5024
18038 " tgz-out directory (tarball|-)\n"
18041 " tgz-out каталог (архів tar|-)\n"
18045 #: ../fish/guestfish-actions.pod:5026 ../src/guestfs-actions.pod:7733
18047 "This command packs the contents of C<directory> and downloads it to local "
18052 #: ../fish/guestfish-actions.pod:5029
18053 msgid "To download an uncompressed tarball, use L</tar-out>."
18057 #: ../fish/guestfish-actions.pod:5033
18062 #: ../fish/guestfish-actions.pod:5035
18072 #: ../fish/guestfish-actions.pod:5037 ../src/guestfs-actions.pod:7748
18074 "Touch acts like the L<touch(1)> command. It can be used to update the "
18075 "timestamps on a file, or, if the file does not exist, to create a new zero-"
18080 #: ../fish/guestfish-actions.pod:5041 ../src/guestfs-actions.pod:7752
18082 "This command only works on regular files, and will fail on other file types "
18083 "such as directories, symbolic links, block special etc."
18087 #: ../fish/guestfish-actions.pod:5044
18092 #: ../fish/guestfish-actions.pod:5046
18102 #: ../fish/guestfish-actions.pod:5048 ../src/guestfs-actions.pod:7765
18104 "This command truncates C<path> to a zero-length file. The file must exist "
18109 #: ../fish/guestfish-actions.pod:5051
18110 msgid "truncate-size"
18111 msgstr "truncate-size"
18114 #: ../fish/guestfish-actions.pod:5053
18117 " truncate-size path size\n"
18120 " truncate-size шлях розмір\n"
18124 #: ../fish/guestfish-actions.pod:5055 ../src/guestfs-actions.pod:7779
18126 "This command truncates C<path> to size C<size> bytes. The file must exist "
18131 #: ../fish/guestfish-actions.pod:5058
18133 "If the current file size is less than C<size> then the file is extended to "
18134 "the required size with zero bytes. This creates a sparse file (ie. disk "
18135 "blocks are not allocated for the file until you write to it). To create a "
18136 "non-sparse file of zeroes, use L</fallocate64> instead."
18140 #: ../fish/guestfish-actions.pod:5064
18142 #| msgid "tune2fs-l"
18147 #: ../fish/guestfish-actions.pod:5066
18150 " tune2fs device [force:true|false] [maxmountcount:N] [mountcount:N] [errorbehavior:..] [group:N] [intervalbetweenchecks:N] [reservedblockspercentage:N] [lastmounteddirectory:..] [reservedblockscount:N] [user:N]\n"
18155 #: ../fish/guestfish-actions.pod:5068 ../src/guestfs-actions.pod:7815
18157 "This call allows you to adjust various filesystem parameters of an ext2/ext3/"
18158 "ext4 filesystem called C<device>."
18162 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7824
18164 "Force tune2fs to complete the operation even in the face of errors. This is "
18165 "the same as the tune2fs C<-f> option."
18169 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7827
18171 #| msgid "mkmountpoint"
18172 msgid "C<maxmountcount>"
18173 msgstr "mkmountpoint"
18176 #: ../fish/guestfish-actions.pod:5082 ../src/guestfs-actions.pod:7829
18178 "Set the number of mounts after which the filesystem is checked by L<e2fsck(8)"
18179 ">. If this is C<0> then the number of mounts is disregarded. This is the "
18180 "same as the tune2fs C<-c> option."
18184 #: ../fish/guestfish-actions.pod:5086 ../src/guestfs-actions.pod:7833
18186 #| msgid "mountpoints"
18187 msgid "C<mountcount>"
18188 msgstr "mountpoints"
18191 #: ../fish/guestfish-actions.pod:5088 ../src/guestfs-actions.pod:7835
18193 "Set the number of times the filesystem has been mounted. This is the same "
18194 "as the tune2fs C<-C> option."
18198 #: ../fish/guestfish-actions.pod:5091 ../src/guestfs-actions.pod:7838
18199 msgid "C<errorbehavior>"
18203 #: ../fish/guestfish-actions.pod:5093 ../src/guestfs-actions.pod:7840
18205 "Change the behavior of the kernel code when errors are detected. Possible "
18206 "values currently are: C<continue>, C<remount-ro>, C<panic>. In practice "
18207 "these options don't really make any difference, particularly for write "
18212 #: ../fish/guestfish-actions.pod:5098 ../src/guestfs-actions.pod:7845
18213 msgid "This is the same as the tune2fs C<-e> option."
18217 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7847
18219 #| msgid "B<--volgroups>"
18221 msgstr "B<--volgroups>"
18224 #: ../fish/guestfish-actions.pod:5102 ../src/guestfs-actions.pod:7849
18226 "Set the group which can use reserved filesystem blocks. This is the same as "
18227 "the tune2fs C<-g> option except that it can only be specified as a number."
18231 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7853
18232 msgid "C<intervalbetweenchecks>"
18236 #: ../fish/guestfish-actions.pod:5108 ../src/guestfs-actions.pod:7855
18238 "Adjust the maximal time between two filesystem checks (in seconds). If the "
18239 "option is passed as C<0> then time-dependent checking is disabled."
18243 #: ../fish/guestfish-actions.pod:5112 ../src/guestfs-actions.pod:7859
18244 msgid "This is the same as the tune2fs C<-i> option."
18248 #: ../fish/guestfish-actions.pod:5114 ../src/guestfs-actions.pod:7861
18249 msgid "C<reservedblockspercentage>"
18253 #: ../fish/guestfish-actions.pod:5116 ../src/guestfs-actions.pod:7863
18255 "Set the percentage of the filesystem which may only be allocated by "
18256 "privileged processes. This is the same as the tune2fs C<-m> option."
18260 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7867
18261 msgid "C<lastmounteddirectory>"
18265 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7869
18267 "Set the last mounted directory. This is the same as the tune2fs C<-M> "
18272 #: ../fish/guestfish-actions.pod:5125 ../src/guestfs-actions.pod:7872
18274 "C<reservedblockscount> Set the number of reserved filesystem blocks. This "
18275 "is the same as the tune2fs C<-r> option."
18279 #: ../fish/guestfish-actions.pod:5129 ../src/guestfs-actions.pod:7876
18284 #: ../fish/guestfish-actions.pod:5131 ../src/guestfs-actions.pod:7878
18286 "Set the user who can use the reserved filesystem blocks. This is the same "
18287 "as the tune2fs C<-u> option except that it can only be specified as a number."
18291 #: ../fish/guestfish-actions.pod:5137
18293 "To get the current values of filesystem parameters, see L</tune2fs-l>. For "
18294 "precise details of how tune2fs works, see the L<tune2fs(8)> man page."
18298 #: ../fish/guestfish-actions.pod:5143
18303 #: ../fish/guestfish-actions.pod:5145
18306 " tune2fs-l device\n"
18309 " tune2fs-l пристрій\n"
18313 #: ../fish/guestfish-actions.pod:5147 ../src/guestfs-actions.pod:7920
18315 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
18320 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7923
18322 "It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage "
18323 "for more details. The list of fields returned isn't clearly defined, and "
18324 "depends on both the version of C<tune2fs> that libguestfs was built against, "
18325 "and the filesystem itself."
18329 #: ../fish/guestfish-actions.pod:5155
18334 #: ../fish/guestfish-actions.pod:5157
18337 " txz-in (tarball|-) directory\n"
18340 " txz-in (архів tar|-) каталог\n"
18344 #: ../fish/guestfish-actions.pod:5159 ../src/guestfs-actions.pod:7943
18346 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
18347 "tar file) into C<directory>."
18351 #: ../fish/guestfish-actions.pod:5164
18356 #: ../fish/guestfish-actions.pod:5166
18359 " txz-out directory (tarball|-)\n"
18362 " txz-out каталог (архів tar|-)\n"
18366 #: ../fish/guestfish-actions.pod:5168 ../src/guestfs-actions.pod:7957
18368 "This command packs the contents of C<directory> and downloads it to local "
18369 "file C<tarball> (as an xz compressed tar archive)."
18373 #: ../fish/guestfish-actions.pod:5173
18378 #: ../fish/guestfish-actions.pod:5175
18388 #: ../fish/guestfish-actions.pod:5177 ../src/guestfs-actions.pod:7970
18390 "This function sets the mask used for creating new files and device nodes to "
18395 #: ../fish/guestfish-actions.pod:5180 ../src/guestfs-actions.pod:7973
18397 "Typical umask values would be C<022> which creates new files with "
18398 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
18399 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
18403 #: ../fish/guestfish-actions.pod:5185 ../src/guestfs-actions.pod:7978
18405 "The default umask is C<022>. This is important because it means that "
18406 "directories and device nodes will be created with C<0644> or C<0755> mode "
18407 "even if you specify C<0777>."
18411 #: ../fish/guestfish-actions.pod:5189
18412 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
18413 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
18416 #: ../fish/guestfish-actions.pod:5192 ../src/guestfs-actions.pod:7985
18417 msgid "This call returns the previous umask."
18421 #: ../fish/guestfish-actions.pod:5194
18426 #: ../fish/guestfish-actions.pod:5196
18431 #: ../fish/guestfish-actions.pod:5198
18434 " umount pathordevice\n"
18437 " umount шлях_або_пристрій\n"
18441 #: ../fish/guestfish-actions.pod:5200 ../src/guestfs-actions.pod:7997
18443 "This unmounts the given filesystem. The filesystem may be specified either "
18444 "by its mountpoint (path) or the device which contains the filesystem."
18448 #: ../fish/guestfish-actions.pod:5204
18450 msgstr "umount-all"
18453 #: ../fish/guestfish-actions.pod:5206
18454 msgid "unmount-all"
18455 msgstr "unmount-all"
18458 #: ../fish/guestfish-actions.pod:5208
18468 #: ../fish/guestfish-actions.pod:5210 ../src/guestfs-actions.pod:8010
18469 msgid "This unmounts all mounted filesystems."
18473 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:8012
18474 msgid "Some internal mounts are not unmounted by this call."
18478 #: ../fish/guestfish-actions.pod:5214
18483 #: ../fish/guestfish-actions.pod:5216
18486 " upload (filename|-) remotefilename\n"
18489 " upload (назва_файла|-) назва_віддаленого_файла\n"
18493 #: ../fish/guestfish-actions.pod:5218 ../fish/guestfish-actions.pod:5231
18494 #: ../src/guestfs-actions.pod:8025 ../src/guestfs-actions.pod:8049
18495 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
18499 #: ../fish/guestfish-actions.pod:5223
18500 msgid "See also L</download>."
18501 msgstr "Див. також L</download>."
18504 #: ../fish/guestfish-actions.pod:5227
18505 msgid "upload-offset"
18506 msgstr "upload-offset"
18509 #: ../fish/guestfish-actions.pod:5229
18512 " upload-offset (filename|-) remotefilename offset\n"
18515 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
18519 #: ../fish/guestfish-actions.pod:5234 ../src/guestfs-actions.pod:8052
18521 "C<remotefilename> is overwritten starting at the byte C<offset> specified. "
18522 "The intention is to overwrite parts of existing files or devices, although "
18523 "if a non-existant file is specified then it is created with a \"hole\" "
18524 "before C<offset>. The size of the data written is implicit in the size of "
18525 "the source C<filename>."
18529 #: ../fish/guestfish-actions.pod:5241
18531 "Note that there is no limit on the amount of data that can be uploaded with "
18532 "this call, unlike with L</pwrite>, and this call always writes the full "
18533 "amount unless an error occurs."
18537 #: ../fish/guestfish-actions.pod:5246
18538 msgid "See also L</upload>, L</pwrite>."
18539 msgstr "Див. також L</upload>, L</pwrite>."
18542 #: ../fish/guestfish-actions.pod:5250
18547 #: ../fish/guestfish-actions.pod:5252
18550 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
18555 #: ../fish/guestfish-actions.pod:5254 ../src/guestfs-actions.pod:8085
18556 msgid "This command sets the timestamps of a file with nanosecond precision."
18560 #: ../fish/guestfish-actions.pod:5257 ../src/guestfs-actions.pod:8088
18562 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
18567 #: ../fish/guestfish-actions.pod:5260 ../src/guestfs-actions.pod:8091
18569 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
18570 "nanoseconds from the epoch."
18574 #: ../fish/guestfish-actions.pod:5263 ../src/guestfs-actions.pod:8094
18576 "If the C<*nsecs> field contains the special value C<-1> then the "
18577 "corresponding timestamp is set to the current time. (The C<*secs> field is "
18578 "ignored in this case)."
18582 #: ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:8098
18584 "If the C<*nsecs> field contains the special value C<-2> then the "
18585 "corresponding timestamp is left unchanged. (The C<*secs> field is ignored "
18590 #: ../fish/guestfish-actions.pod:5271
18595 #: ../fish/guestfish-actions.pod:5273
18605 #: ../fish/guestfish-actions.pod:5275 ../src/guestfs-actions.pod:8111
18607 "Return the libguestfs version number that the program is linked against."
18611 #: ../fish/guestfish-actions.pod:5278 ../src/guestfs-actions.pod:8114
18613 "Note that because of dynamic linking this is not necessarily the version of "
18614 "libguestfs that you compiled against. You can compile the program, and then "
18615 "at runtime dynamically link against a completely different C<libguestfs.so> "
18620 #: ../fish/guestfish-actions.pod:5283 ../src/guestfs-actions.pod:8119
18622 "This call was added in version C<1.0.58>. In previous versions of "
18623 "libguestfs there was no way to get the version number. From C code you can "
18624 "use dynamic linker functions to find out if this symbol exists (if it "
18625 "doesn't, then it's an earlier version)."
18629 #: ../fish/guestfish-actions.pod:5289 ../src/guestfs-actions.pod:8125
18631 "The call returns a structure with four elements. The first three (C<major>, "
18632 "C<minor> and C<release>) are numbers and correspond to the usual version "
18633 "triplet. The fourth element (C<extra>) is a string and is normally empty, "
18634 "but may be used for distro-specific information."
18638 #: ../fish/guestfish-actions.pod:5295 ../src/guestfs-actions.pod:8131
18640 "To construct the original version string: C<$major.$minor.$release$extra>"
18644 #: ../fish/guestfish-actions.pod:5298 ../src/guestfs-actions.pod:8134
18645 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
18646 msgstr "Див також: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
18649 #: ../fish/guestfish-actions.pod:5300
18651 "I<Note:> Don't use this call to test for availability of features. In "
18652 "enterprise distributions we backport features from later versions into "
18653 "earlier versions, making this an unreliable way to test for features. Use "
18654 "L</available> instead."
18658 #: ../fish/guestfish-actions.pod:5306
18663 #: ../fish/guestfish-actions.pod:5308
18666 " vfs-label device\n"
18669 " vfs-label пристрій\n"
18673 #: ../fish/guestfish-actions.pod:5310 ../src/guestfs-actions.pod:8154
18674 msgid "This returns the filesystem label of the filesystem on C<device>."
18678 #: ../fish/guestfish-actions.pod:5313 ../src/guestfs-actions.pod:8157
18679 msgid "If the filesystem is unlabeled, this returns the empty string."
18683 #: ../fish/guestfish-actions.pod:5315
18684 msgid "To find a filesystem from the label, use L</findfs-label>."
18688 #: ../fish/guestfish-actions.pod:5317
18693 #: ../fish/guestfish-actions.pod:5319
18696 " vfs-type device\n"
18699 " vfs-type пристрій\n"
18703 #: ../fish/guestfish-actions.pod:5321 ../src/guestfs-actions.pod:8172
18705 "This command gets the filesystem type corresponding to the filesystem on "
18710 #: ../fish/guestfish-actions.pod:5324 ../src/guestfs-actions.pod:8175
18712 "For most filesystems, the result is the name of the Linux VFS module which "
18713 "would be used to mount this filesystem if you mounted it without specifying "
18714 "the filesystem type. For example a string such as C<ext3> or C<ntfs>."
18718 #: ../fish/guestfish-actions.pod:5329
18723 #: ../fish/guestfish-actions.pod:5331
18726 " vfs-uuid device\n"
18729 " vfs-uuid пристрій\n"
18733 #: ../fish/guestfish-actions.pod:5333 ../src/guestfs-actions.pod:8191
18734 msgid "This returns the filesystem UUID of the filesystem on C<device>."
18738 #: ../fish/guestfish-actions.pod:5336 ../src/guestfs-actions.pod:8194
18739 msgid "If the filesystem does not have a UUID, this returns the empty string."
18743 #: ../fish/guestfish-actions.pod:5338
18744 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
18748 #: ../fish/guestfish-actions.pod:5340
18749 msgid "vg-activate"
18750 msgstr "vg-activate"
18753 #: ../fish/guestfish-actions.pod:5342
18756 " vg-activate true|false 'volgroups ...'\n"
18761 #: ../fish/guestfish-actions.pod:5344 ../src/guestfs-actions.pod:8210
18763 "This command activates or (if C<activate> is false) deactivates all logical "
18764 "volumes in the listed volume groups C<volgroups>."
18768 #: ../fish/guestfish-actions.pod:5347 ../src/guestfs-actions.pod:8213
18769 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
18773 #: ../fish/guestfish-actions.pod:5349 ../src/guestfs-actions.pod:8215
18775 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
18776 "activated or deactivated."
18780 #: ../fish/guestfish-actions.pod:5352
18781 msgid "vg-activate-all"
18782 msgstr "vg-activate-all"
18785 #: ../fish/guestfish-actions.pod:5354
18788 " vg-activate-all true|false\n"
18791 " vg-activate-all true|false\n"
18795 #: ../fish/guestfish-actions.pod:5356 ../src/guestfs-actions.pod:8228
18797 "This command activates or (if C<activate> is false) deactivates all logical "
18798 "volumes in all volume groups."
18802 #: ../fish/guestfish-actions.pod:5359 ../src/guestfs-actions.pod:8231
18803 msgid "This command is the same as running C<vgchange -a y|n>"
18807 #: ../fish/guestfish-actions.pod:5361
18812 #: ../fish/guestfish-actions.pod:5363
18815 " vgcreate volgroup 'physvols ...'\n"
18820 #: ../fish/guestfish-actions.pod:5365 ../src/guestfs-actions.pod:8244
18822 "This creates an LVM volume group called C<volgroup> from the non-empty list "
18823 "of physical volumes C<physvols>."
18827 #: ../fish/guestfish-actions.pod:5368
18832 #: ../fish/guestfish-actions.pod:5370
18835 " vglvuuids vgname\n"
18840 #: ../fish/guestfish-actions.pod:5372 ../src/guestfs-actions.pod:8257
18842 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
18843 "volumes created in this volume group."
18847 #: ../fish/guestfish-actions.pod:5375
18849 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
18850 "logical volumes and volume groups."
18854 #: ../fish/guestfish-actions.pod:5378
18855 msgid "See also L</vgpvuuids>."
18856 msgstr "Див. також L</vgpvuuids>."
18859 #: ../fish/guestfish-actions.pod:5380
18864 #: ../fish/guestfish-actions.pod:5382
18867 " vgpvuuids vgname\n"
18872 #: ../fish/guestfish-actions.pod:5384 ../src/guestfs-actions.pod:8277
18874 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
18875 "volumes that this volume group resides on."
18879 #: ../fish/guestfish-actions.pod:5387
18881 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
18882 "physical volumes and volume groups."
18886 #: ../fish/guestfish-actions.pod:5390
18887 msgid "See also L</vglvuuids>."
18888 msgstr "Див. також L</vglvuuids>."
18891 #: ../fish/guestfish-actions.pod:5392
18896 #: ../fish/guestfish-actions.pod:5394
18899 " vgremove vgname\n"
18904 #: ../fish/guestfish-actions.pod:5396 ../src/guestfs-actions.pod:8297
18905 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
18909 #: ../fish/guestfish-actions.pod:5398 ../src/guestfs-actions.pod:8299
18911 "This also forcibly removes all logical volumes in the volume group (if any)."
18915 #: ../fish/guestfish-actions.pod:5401
18920 #: ../fish/guestfish-actions.pod:5403
18923 " vgrename volgroup newvolgroup\n"
18928 #: ../fish/guestfish-actions.pod:5405 ../src/guestfs-actions.pod:8313
18929 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
18933 #: ../fish/guestfish-actions.pod:5407
18938 #: ../fish/guestfish-actions.pod:5409
18948 #: ../fish/guestfish-actions.pod:5411 ../src/guestfs-actions.pod:8324
18950 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
18955 #: ../fish/guestfish-actions.pod:5414 ../src/guestfs-actions.pod:8327
18957 "This returns a list of just the volume group names that were detected (eg. "
18962 #: ../fish/guestfish-actions.pod:5417
18963 msgid "See also L</vgs-full>."
18964 msgstr "Див. також L</vgs-full>."
18967 #: ../fish/guestfish-actions.pod:5419
18972 #: ../fish/guestfish-actions.pod:5421
18982 #: ../fish/guestfish-actions.pod:5423 ../src/guestfs-actions.pod:8343
18984 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
18985 "> command. The \"full\" version includes all fields."
18989 #: ../fish/guestfish-actions.pod:5426
18994 #: ../fish/guestfish-actions.pod:5428
19004 #: ../fish/guestfish-actions.pod:5430 ../src/guestfs-actions.pod:8357
19006 "This rescans all block devices and rebuilds the list of LVM physical "
19007 "volumes, volume groups and logical volumes."
19011 #: ../fish/guestfish-actions.pod:5433
19016 #: ../fish/guestfish-actions.pod:5435
19024 #: ../fish/guestfish-actions.pod:5437 ../src/guestfs-actions.pod:8370
19025 msgid "This command returns the UUID of the LVM VG named C<vgname>."
19029 #: ../fish/guestfish-actions.pod:5439
19034 #: ../fish/guestfish-actions.pod:5441
19044 #: ../fish/guestfish-actions.pod:5443 ../src/guestfs-actions.pod:8410
19046 "This command counts the characters in a file, using the C<wc -c> external "
19051 #: ../fish/guestfish-actions.pod:5446
19056 #: ../fish/guestfish-actions.pod:5448
19066 #: ../fish/guestfish-actions.pod:5450 ../src/guestfs-actions.pod:8423
19068 "This command counts the lines in a file, using the C<wc -l> external command."
19072 #: ../fish/guestfish-actions.pod:5453
19077 #: ../fish/guestfish-actions.pod:5455
19087 #: ../fish/guestfish-actions.pod:5457 ../src/guestfs-actions.pod:8436
19089 "This command counts the words in a file, using the C<wc -w> external command."
19093 #: ../fish/guestfish-actions.pod:5460
19098 #: ../fish/guestfish-actions.pod:5462
19101 " write path content\n"
19104 " write шлях дані\n"
19108 #: ../fish/guestfish-actions.pod:5464 ../src/guestfs-actions.pod:8451
19110 "This call creates a file called C<path>. The content of the file is the "
19111 "string C<content> (which can contain any 8 bit data)."
19115 #: ../fish/guestfish-actions.pod:5467
19116 msgid "See also L</write-append>."
19117 msgstr "Див. також L</write-append>."
19120 #: ../fish/guestfish-actions.pod:5472
19121 msgid "write-append"
19125 #: ../fish/guestfish-actions.pod:5474
19128 " write-append path content\n"
19133 #: ../fish/guestfish-actions.pod:5476 ../src/guestfs-actions.pod:8471
19135 "This call appends C<content> to the end of file C<path>. If C<path> does "
19136 "not exist, then a new file is created."
19140 #: ../fish/guestfish-actions.pod:5479
19141 msgid "See also L</write>."
19142 msgstr "Див. також L</write>."
19145 #: ../fish/guestfish-actions.pod:5484
19147 msgstr "write-file"
19150 #: ../fish/guestfish-actions.pod:5486
19153 " write-file path content size\n"
19158 #: ../fish/guestfish-actions.pod:5488 ../src/guestfs-actions.pod:8498
19160 "This call creates a file called C<path>. The contents of the file is the "
19161 "string C<content> (which can contain any 8 bit data), with length C<size>."
19165 #: ../fish/guestfish-actions.pod:5492 ../src/guestfs-actions.pod:8502
19167 "As a special case, if C<size> is C<0> then the length is calculated using "
19168 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
19172 #: ../fish/guestfish-actions.pod:5496 ../src/guestfs-actions.pod:8506
19174 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
19175 "I<not> work, even if the length is specified."
19179 #: ../fish/guestfish-actions.pod:5502
19181 "I<This function is deprecated.> In new code, use the L</write> call instead."
19185 #: ../fish/guestfish-actions.pod:5509
19190 #: ../fish/guestfish-actions.pod:5511
19193 " zegrep regex path\n"
19196 " zegrep формальний_вираз шлях\n"
19200 #: ../fish/guestfish-actions.pod:5513 ../src/guestfs-actions.pod:8523
19202 "This calls the external C<zegrep> program and returns the matching lines."
19206 #: ../fish/guestfish-actions.pod:5519
19211 #: ../fish/guestfish-actions.pod:5521
19214 " zegrepi regex path\n"
19219 #: ../fish/guestfish-actions.pod:5523 ../src/guestfs-actions.pod:8542
19221 "This calls the external C<zegrep -i> program and returns the matching lines."
19225 #: ../fish/guestfish-actions.pod:5529
19230 #: ../fish/guestfish-actions.pod:5531
19240 #: ../fish/guestfish-actions.pod:5533 ../src/guestfs-actions.pod:8560
19241 msgid "This command writes zeroes over the first few blocks of C<device>."
19245 #: ../fish/guestfish-actions.pod:5535 ../src/guestfs-actions.pod:8562
19247 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
19248 "securely wipe the device). It should be sufficient to remove any partition "
19249 "tables, filesystem superblocks and so on."
19253 #: ../fish/guestfish-actions.pod:5539 ../fish/guestfish-actions.pod:5554
19254 #: ../src/guestfs-actions.pod:8566 ../src/guestfs-actions.pod:8592
19256 "If blocks are already zero, then this command avoids writing zeroes. This "
19257 "prevents the underlying device from becoming non-sparse or growing "
19262 #: ../fish/guestfish-actions.pod:5543
19263 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
19267 #: ../fish/guestfish-actions.pod:5546
19268 msgid "zero-device"
19269 msgstr "zero-device"
19272 #: ../fish/guestfish-actions.pod:5548
19275 " zero-device device\n"
19278 " zero-device пристрій\n"
19282 #: ../fish/guestfish-actions.pod:5550
19284 "This command writes zeroes over the entire C<device>. Compare with L</zero> "
19285 "which just zeroes the first few blocks of a device."
19289 #: ../fish/guestfish-actions.pod:5558
19294 #: ../fish/guestfish-actions.pod:5560
19297 " zerofree device\n"
19300 " zerofree пристрій\n"
19304 #: ../fish/guestfish-actions.pod:5562 ../src/guestfs-actions.pod:8611
19306 "This runs the I<zerofree> program on C<device>. This program claims to zero "
19307 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
19308 "possible to compress the filesystem more effectively."
19312 #: ../fish/guestfish-actions.pod:5567 ../src/guestfs-actions.pod:8616
19313 msgid "You should B<not> run this program if the filesystem is mounted."
19317 #: ../fish/guestfish-actions.pod:5570 ../src/guestfs-actions.pod:8619
19319 "It is possible that using this program can damage the filesystem or data on "
19324 #: ../fish/guestfish-actions.pod:5573
19329 #: ../fish/guestfish-actions.pod:5575
19332 " zfgrep pattern path\n"
19335 " zfgrep шаблон шлях\n"
19339 #: ../fish/guestfish-actions.pod:5577 ../src/guestfs-actions.pod:8633
19341 "This calls the external C<zfgrep> program and returns the matching lines."
19345 #: ../fish/guestfish-actions.pod:5583
19350 #: ../fish/guestfish-actions.pod:5585
19353 " zfgrepi pattern path\n"
19356 " zfgrepi шаблон шлях\n"
19360 #: ../fish/guestfish-actions.pod:5587 ../src/guestfs-actions.pod:8652
19362 "This calls the external C<zfgrep -i> program and returns the matching lines."
19366 #: ../fish/guestfish-actions.pod:5593
19371 #: ../fish/guestfish-actions.pod:5595
19374 " zfile meth path\n"
19377 " zfile метод шлях\n"
19381 #: ../fish/guestfish-actions.pod:5597 ../src/guestfs-actions.pod:8678
19383 "This command runs C<file> after first decompressing C<path> using C<method>."
19387 #: ../fish/guestfish-actions.pod:5600 ../src/guestfs-actions.pod:8681
19388 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
19392 #: ../fish/guestfish-actions.pod:5602
19394 "Since 1.0.63, use L</file> instead which can now process compressed files."
19398 #: ../fish/guestfish-actions.pod:5605
19400 "I<This function is deprecated.> In new code, use the L</file> call instead."
19404 #: ../fish/guestfish-actions.pod:5612
19409 #: ../fish/guestfish-actions.pod:5614
19412 " zgrep regex path\n"
19415 " zgrep формальний_вираз шлях\n"
19419 #: ../fish/guestfish-actions.pod:5616 ../src/guestfs-actions.pod:8698
19421 "This calls the external C<zgrep> program and returns the matching lines."
19425 #: ../fish/guestfish-actions.pod:5622
19430 #: ../fish/guestfish-actions.pod:5624
19433 " zgrepi regex path\n"
19436 " zgrepi формальний_вираз шлях\n"
19440 #: ../fish/guestfish-actions.pod:5626 ../src/guestfs-actions.pod:8717
19442 "This calls the external C<zgrep -i> program and returns the matching lines."
19446 #: ../fish/guestfish-commands.pod:1
19451 #: ../fish/guestfish-commands.pod:3
19456 #: ../fish/guestfish-commands.pod:5
19459 " alloc filename size\n"
19464 #: ../fish/guestfish-commands.pod:7
19466 "This creates an empty (zeroed) file of the given size, and then adds so it "
19467 "can be further examined."
19471 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:243
19472 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
19476 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:245
19477 msgid "Size can be specified using standard suffixes, eg. C<1M>."
19481 #: ../fish/guestfish-commands.pod:14
19483 "To create a sparse file, use L</sparse> instead. To create a prepared disk "
19484 "image, see L</PREPARED DISK IMAGES>."
19488 #: ../fish/guestfish-commands.pod:17
19493 #: ../fish/guestfish-commands.pod:19
19496 " copy-in local [local ...] /remotedir\n"
19501 #: ../fish/guestfish-commands.pod:21
19503 "C<copy-in> copies local files or directories recursively into the disk "
19504 "image, placing them in the directory called C</remotedir> (which must "
19505 "exist). This guestfish meta-command turns into a sequence of L</tar-in> and "
19506 "other commands as necessary."
19510 #: ../fish/guestfish-commands.pod:26
19512 "Multiple local files and directories can be specified, but the last "
19513 "parameter must always be a remote directory. Wildcards cannot be used."
19517 #: ../fish/guestfish-commands.pod:30
19522 #: ../fish/guestfish-commands.pod:32
19525 " copy-out remote [remote ...] localdir\n"
19530 #: ../fish/guestfish-commands.pod:34
19532 "C<copy-out> copies remote files or directories recursively out of the disk "
19533 "image, placing them on the host disk in a local directory called C<localdir> "
19534 "(which must exist). This guestfish meta-command turns into a sequence of L</"
19535 "download>, L</tar-out> and other commands as necessary."
19539 #: ../fish/guestfish-commands.pod:40
19541 "Multiple remote files and directories can be specified, but the last "
19542 "parameter must always be a local directory. To download to the current "
19543 "directory, use C<.> as in:"
19547 #: ../fish/guestfish-commands.pod:44
19550 " copy-out /home .\n"
19553 " copy-out /home .\n"
19557 #: ../fish/guestfish-commands.pod:46
19559 "Wildcards cannot be used in the ordinary command, but you can use them with "
19560 "the help of L</glob> like this:"
19564 #: ../fish/guestfish-commands.pod:49
19567 " glob copy-out /home/* .\n"
19570 " glob copy-out /home/* .\n"
19574 #: ../fish/guestfish-commands.pod:51
19575 msgid "delete-event"
19579 #: ../fish/guestfish-commands.pod:53
19582 " delete-event name\n"
19587 #: ../fish/guestfish-commands.pod:55
19589 "Delete the event handler which was previously registered as C<name>. If "
19590 "multiple event handlers were registered with the same name, they are all "
19595 #: ../fish/guestfish-commands.pod:59
19596 msgid "See also the guestfish commands C<event> and C<list-events>."
19600 #: ../fish/guestfish-commands.pod:61
19605 #: ../fish/guestfish-commands.pod:63
19608 " display filename\n"
19613 #: ../fish/guestfish-commands.pod:65
19615 "Use C<display> (a graphical display program) to display an image file. It "
19616 "downloads the file, and runs C<display> on it."
19620 #: ../fish/guestfish-commands.pod:68
19622 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
19623 "environment variable. For example to use the GNOME display program:"
19627 #: ../fish/guestfish-commands.pod:71
19630 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
19635 #: ../fish/guestfish-commands.pod:73
19636 msgid "See also L<display(1)>."
19637 msgstr "Див. також L<display(1)>."
19640 #: ../fish/guestfish-commands.pod:75
19645 #: ../fish/guestfish-commands.pod:77
19648 " echo [params ...]\n"
19651 " echo [параметри...]\n"
19655 #: ../fish/guestfish-commands.pod:79
19656 msgid "This echos the parameters to the terminal."
19660 #: ../fish/guestfish-commands.pod:81
19665 #: ../fish/guestfish-commands.pod:83
19670 #: ../fish/guestfish-commands.pod:85
19675 #: ../fish/guestfish-commands.pod:87
19681 " edit назва_файла\n"
19685 #: ../fish/guestfish-commands.pod:89
19687 "This is used to edit a file. It downloads the file, edits it locally using "
19688 "your editor, then uploads the result."
19692 #: ../fish/guestfish-commands.pod:92
19694 "The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
19695 "or C<emacs> you will get those corresponding editors."
19699 #: ../fish/guestfish-commands.pod:96
19704 #: ../fish/guestfish-commands.pod:98
19707 " event name eventset \"shell script ...\"\n"
19712 #: ../fish/guestfish-commands.pod:100
19714 "Register a shell script fragment which is executed when an event is raised. "
19715 "See L<guestfs(3)/guestfs_set_event_callback> for a discussion of the event "
19716 "API in libguestfs."
19720 #: ../fish/guestfish-commands.pod:104
19722 "The C<name> parameter is a name that you give to this event handler. It can "
19723 "be any string (even the empty string) and is simply there so you can delete "
19724 "the handler using the guestfish C<delete-event> command."
19728 #: ../fish/guestfish-commands.pod:109
19730 "The C<eventset> parameter is a comma-separated list of one or more events, "
19731 "for example C<close> or C<close,trace>. The special value C<*> means all "
19736 #: ../fish/guestfish-commands.pod:113
19738 "The third and final parameter is the shell script fragment (or any external "
19739 "command) that is executed when any of the events in the eventset occurs. It "
19740 "is executed using C<$SHELL -c>, or if C<$SHELL> is not set then C</bin/sh -"
19745 #: ../fish/guestfish-commands.pod:118
19747 "The shell script fragment receives callback parameters as arguments C<$1>, C<"
19748 "$2> etc. The actual event that was called is available in the environment "
19749 "variable C<$EVENT>."
19753 #: ../fish/guestfish-commands.pod:122
19756 " event \"\" close \"echo closed\"\n"
19757 " event messages appliance,library,trace \"echo $@\"\n"
19758 " event \"\" progress \"echo progress: $3/$4\"\n"
19759 " event \"\" * \"echo $EVENT $@\"\n"
19764 #: ../fish/guestfish-commands.pod:127
19765 msgid "See also the guestfish commands C<delete-event> and C<list-events>."
19769 #: ../fish/guestfish-commands.pod:129
19774 #: ../fish/guestfish-commands.pod:131
19777 " glob command args...\n"
19780 " glob команда параметри...\n"
19784 #: ../fish/guestfish-commands.pod:133
19786 "Expand wildcards in any paths in the args list, and run C<command> "
19787 "repeatedly on each matching path."
19791 #: ../fish/guestfish-commands.pod:136
19792 msgid "See L</WILDCARDS AND GLOBBING>."
19793 msgstr "Див. L</WILDCARDS AND GLOBBING>."
19796 #: ../fish/guestfish-commands.pod:138
19801 #: ../fish/guestfish-commands.pod:140
19804 " hexedit <filename|device>\n"
19805 " hexedit <filename|device> <max>\n"
19806 " hexedit <filename|device> <start> <max>\n"
19811 #: ../fish/guestfish-commands.pod:144
19813 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
19818 #: ../fish/guestfish-commands.pod:147
19820 "This command works by downloading potentially the whole file or device, "
19821 "editing it locally, then uploading it. If the file or device is large, you "
19822 "have to specify which part you wish to edit by using C<max> and/or C<start> "
19823 "C<max> parameters. C<start> and C<max> are specified in bytes, with the "
19824 "usual modifiers allowed such as C<1M> (1 megabyte)."
19828 #: ../fish/guestfish-commands.pod:154
19829 msgid "For example to edit the first few sectors of a disk you might do:"
19833 #: ../fish/guestfish-commands.pod:157
19836 " hexedit /dev/sda 1M\n"
19839 " hexedit /dev/sda 1M\n"
19843 #: ../fish/guestfish-commands.pod:159
19845 "which would allow you to edit anywhere within the first megabyte of the disk."
19849 #: ../fish/guestfish-commands.pod:162
19850 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
19854 #: ../fish/guestfish-commands.pod:164
19857 " hexedit /dev/sda1 0x400 0x400\n"
19860 " hexedit /dev/sda1 0x400 0x400\n"
19864 #: ../fish/guestfish-commands.pod:166
19865 msgid "(assuming the superblock is in the standard location)."
19869 #: ../fish/guestfish-commands.pod:168
19871 "This command requires the external L<hexedit(1)> program. You can specify "
19872 "another program to use by setting the C<HEXEDITOR> environment variable."
19876 #: ../fish/guestfish-commands.pod:172
19877 msgid "See also L</hexdump>."
19878 msgstr "Див. також L</hexdump>."
19881 #: ../fish/guestfish-commands.pod:174
19886 #: ../fish/guestfish-commands.pod:176
19894 #: ../fish/guestfish-commands.pod:178
19896 "Change the local directory, ie. the current directory of guestfish itself."
19900 #: ../fish/guestfish-commands.pod:181
19901 msgid "Note that C<!cd> won't do what you might expect."
19905 #: ../fish/guestfish-commands.pod:183
19907 #| msgid "list-devices"
19908 msgid "list-events"
19909 msgstr "list-devices"
19912 #: ../fish/guestfish-commands.pod:185
19915 #| " list-devices\n"
19925 #: ../fish/guestfish-commands.pod:187
19927 "List the event handlers registered using the guestfish C<event> command."
19931 #: ../fish/guestfish-commands.pod:190
19936 #: ../fish/guestfish-commands.pod:192
19941 #: ../fish/guestfish-commands.pod:194
19951 #: ../fish/guestfish-commands.pod:196
19952 msgid "Opens the manual page for guestfish."
19956 #: ../fish/guestfish-commands.pod:198
19961 #: ../fish/guestfish-commands.pod:200
19966 #: ../fish/guestfish-commands.pod:202
19974 #: ../fish/guestfish-commands.pod:204
19982 #: ../fish/guestfish-commands.pod:206
19983 msgid "This is used to view a file."
19987 #: ../fish/guestfish-commands.pod:208
19989 "The default viewer is C<$PAGER>. However if you use the alternate command "
19990 "C<less> you will get the C<less> command specifically."
19994 #: ../fish/guestfish-commands.pod:211
19999 #: ../fish/guestfish-commands.pod:213
20007 #: ../fish/guestfish-commands.pod:215
20009 "Close and reopen the libguestfs handle. It is not necessary to use this "
20010 "normally, because the handle is closed properly when guestfish exits. "
20011 "However this is occasionally useful for testing."
20015 #: ../fish/guestfish-commands.pod:219
20020 #: ../fish/guestfish-commands.pod:221
20023 " setenv VAR value\n"
20028 #: ../fish/guestfish-commands.pod:223
20029 msgid "Set the environment variable C<VAR> to the string C<value>."
20033 #: ../fish/guestfish-commands.pod:225
20035 "To print the value of an environment variable use a shell command such as:"
20039 #: ../fish/guestfish-commands.pod:228
20047 #: ../fish/guestfish-commands.pod:230
20052 #: ../fish/guestfish-commands.pod:232
20055 " sparse filename size\n"
20060 #: ../fish/guestfish-commands.pod:234
20062 "This creates an empty sparse file of the given size, and then adds so it can "
20063 "be further examined."
20067 #: ../fish/guestfish-commands.pod:237
20069 "In all respects it works the same as the L</alloc> command, except that the "
20070 "image file is allocated sparsely, which means that disk blocks are not "
20071 "assigned to the file until they are needed. Sparse disk files only use "
20072 "space when written to, but they are slower and there is a danger you could "
20073 "run out of real disk space during a write operation."
20077 #: ../fish/guestfish-commands.pod:247
20082 #: ../fish/guestfish-commands.pod:249
20092 #: ../fish/guestfish-commands.pod:251
20094 "This command returns a list of the optional groups known to the daemon, and "
20095 "indicates which ones are supported by this build of the libguestfs appliance."
20099 #: ../fish/guestfish-commands.pod:255
20100 msgid "See also L<guestfs(3)/AVAILABILITY>."
20101 msgstr "Див. також L<guestfs(3)/AVAILABILITY>."
20104 #: ../fish/guestfish-commands.pod:257
20109 #: ../fish/guestfish-commands.pod:259
20112 " time command args...\n"
20117 #: ../fish/guestfish-commands.pod:261
20119 "Run the command as usual, but print the elapsed time afterwards. This can "
20120 "be useful for benchmarking operations."
20124 #: ../fish/guestfish-commands.pod:264
20129 #: ../fish/guestfish-commands.pod:266
20137 #: ../fish/guestfish-commands.pod:268
20138 msgid "Remove C<VAR> from the environment."
20142 #: ../fish/guestfish.pod:5
20143 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
20147 #: ../fish/guestfish.pod:9
20150 " guestfish [--options] [commands]\n"
20155 #: ../fish/guestfish.pod:11
20163 #: ../fish/guestfish.pod:13
20166 " guestfish [--ro|--rw] -a disk.img\n"
20171 #: ../fish/guestfish.pod:15
20174 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
20179 #: ../fish/guestfish.pod:17
20182 " guestfish -d libvirt-domain\n"
20187 #: ../fish/guestfish.pod:19
20190 " guestfish [--ro|--rw] -a disk.img -i\n"
20195 #: ../fish/guestfish.pod:21
20198 " guestfish -d libvirt-domain -i\n"
20203 #: ../fish/guestfish.pod:25
20205 "Using guestfish in read/write mode on live virtual machines can be "
20206 "dangerous, potentially causing disk corruption. Use the I<--ro> (read-only) "
20207 "option to use guestfish safely if the disk image or virtual machine might be "
20212 #: ../fish/guestfish.pod:32
20214 "Guestfish is a shell and command-line tool for examining and modifying "
20215 "virtual machine filesystems. It uses libguestfs and exposes all of the "
20216 "functionality of the guestfs API, see L<guestfs(3)>."
20220 #: ../fish/guestfish.pod:36
20222 "Guestfish gives you structured access to the libguestfs API, from shell "
20223 "scripts or the command line or interactively. If you want to rescue a "
20224 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
20229 #: ../fish/guestfish.pod:43
20230 msgid "As an interactive shell"
20234 #: ../fish/guestfish.pod:45
20242 #: ../fish/guestfish.pod:47
20245 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
20246 " editing virtual machine filesystems.\n"
20251 #: ../fish/guestfish.pod:50
20254 " Type: 'help' for a list of commands\n"
20255 " 'man' to read the manual\n"
20256 " 'quit' to quit the shell\n"
20261 #: ../fish/guestfish.pod:54
20264 " ><fs> add-ro disk.img\n"
20266 " ><fs> list-filesystems\n"
20267 " /dev/sda1: ext4\n"
20268 " /dev/vg_guest/lv_root: ext4\n"
20269 " /dev/vg_guest/lv_swap: swap\n"
20270 " ><fs> mount /dev/vg_guest/lv_root /\n"
20271 " ><fs> cat /etc/fstab\n"
20273 " # Created by anaconda\n"
20280 #: ../fish/guestfish.pod:67
20281 msgid "From shell scripts"
20285 #: ../fish/guestfish.pod:69
20286 msgid "Create a new C</etc/motd> file in a guest or disk image:"
20290 #: ../fish/guestfish.pod:71
20293 " guestfish <<_EOF_\n"
20296 " mount /dev/vg_guest/lv_root /\n"
20297 " write /etc/motd \"Welcome, new users\"\n"
20303 #: ../fish/guestfish.pod:78
20304 msgid "List the LVM logical volumes in a disk image:"
20308 #: ../fish/guestfish.pod:80
20311 " guestfish -a disk.img --ro <<_EOF_\n"
20319 #: ../fish/guestfish.pod:85
20320 msgid "List all the filesystems in a disk image:"
20324 #: ../fish/guestfish.pod:87
20327 " guestfish -a disk.img --ro <<_EOF_\n"
20329 " list-filesystems\n"
20335 #: ../fish/guestfish.pod:92
20336 msgid "On one command line"
20340 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
20341 msgid "Update C</etc/resolv.conf> in a guest:"
20345 #: ../fish/guestfish.pod:96
20349 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
20350 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
20355 #: ../fish/guestfish.pod:100
20356 msgid "Edit C</boot/grub/grub.conf> interactively:"
20360 #: ../fish/guestfish.pod:102
20363 " guestfish --rw --add disk.img \\\n"
20364 " --mount /dev/vg_guest/lv_root \\\n"
20365 " --mount /dev/sda1:/boot \\\n"
20366 " edit /boot/grub/grub.conf\n"
20371 #: ../fish/guestfish.pod:107
20372 msgid "Mount disks automatically"
20376 #: ../fish/guestfish.pod:109
20378 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
20382 #: ../fish/guestfish.pod:112
20385 " guestfish --ro -a disk.img -i cat /etc/group\n"
20390 #: ../fish/guestfish.pod:114
20393 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
20398 #: ../fish/guestfish.pod:116
20399 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
20403 #: ../fish/guestfish.pod:118
20406 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
20411 #: ../fish/guestfish.pod:120
20412 msgid "As a script interpreter"
20416 #: ../fish/guestfish.pod:122
20417 msgid "Create a 100MB disk containing an ext2-formatted partition:"
20421 #: ../fish/guestfish.pod:124
20424 " #!/usr/bin/guestfish -f\n"
20425 " sparse test1.img 100M\n"
20427 " part-disk /dev/sda mbr\n"
20428 " mkfs ext2 /dev/sda1\n"
20433 #: ../fish/guestfish.pod:130
20434 msgid "Start with a prepared disk"
20438 #: ../fish/guestfish.pod:132
20440 "An alternate way to create a 100MB disk called C<test1.img> containing a "
20441 "single ext2-formatted partition:"
20445 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
20448 " guestfish -N fs\n"
20453 #: ../fish/guestfish.pod:137
20454 msgid "To list what is available do:"
20458 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
20461 " guestfish -N help | less\n"
20466 #: ../fish/guestfish.pod:141
20467 msgid "Remote control"
20468 msgstr "Дистанційне керування"
20471 #: ../fish/guestfish.pod:143
20474 " eval \"`guestfish --listen`\"\n"
20475 " guestfish --remote add-ro disk.img\n"
20476 " guestfish --remote run\n"
20477 " guestfish --remote lvs\n"
20480 " eval \"`guestfish --listen`\"\n"
20481 " guestfish --remote add-ro disk.img\n"
20482 " guestfish --remote run\n"
20483 " guestfish --remote lvs\n"
20487 #: ../fish/guestfish.pod:154
20488 msgid "Displays general help on options."
20492 #: ../fish/guestfish.pod:158
20493 msgid "B<--cmd-help>"
20494 msgstr "B<--cmd-help>"
20497 #: ../fish/guestfish.pod:160
20498 msgid "Lists all available guestfish commands."
20502 #: ../fish/guestfish.pod:162
20504 msgstr "B<-h команда>"
20507 #: ../fish/guestfish.pod:164
20508 msgid "B<--cmd-help cmd>"
20509 msgstr "B<--cmd-help команда>"
20512 #: ../fish/guestfish.pod:166
20513 msgid "Displays detailed help on a single command C<cmd>."
20517 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
20518 msgid "B<-a image>"
20519 msgstr "B<-a образ>"
20522 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
20523 msgid "B<--add image>"
20524 msgstr "B<--add образ>"
20527 #: ../fish/guestfish.pod:172
20528 msgid "Add a block device or virtual machine image to the shell."
20532 #: ../fish/guestfish.pod:177
20534 "Using this flag is mostly equivalent to using the C<add> command, with "
20535 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
20536 "the I<--format=...> flag was given."
20540 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
20542 "When used in conjunction with the I<-d> option, this specifies the libvirt "
20543 "URI to use. The default is to use the default libvirt connection."
20547 #: ../fish/guestfish.pod:189
20552 #: ../fish/guestfish.pod:191
20554 "If using the I<--listen> option and a csh-like shell, use this option. See "
20555 "section L</REMOTE CONTROL AND CSH> below."
20559 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
20560 msgid "B<-d libvirt-domain>"
20561 msgstr "B<-d домен-libvirt>"
20564 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
20565 msgid "B<--domain libvirt-domain>"
20566 msgstr "B<--domain домен-libvirt>"
20569 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
20571 "Add disks from the named libvirt domain. If the I<--ro> option is also "
20572 "used, then any libvirt domain can be used. However in write mode, only "
20573 "libvirt domains which are shut down can be named here."
20577 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
20578 msgid "Domain UUIDs can be used instead of names."
20582 #: ../fish/guestfish.pod:204
20584 "Using this flag is mostly equivalent to using the C<add-domain> command, "
20585 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
20586 "if the I<--format:...> flag was given."
20590 #: ../fish/guestfish.pod:208
20595 #: ../fish/guestfish.pod:210
20596 msgid "B<--no-dest-paths>"
20597 msgstr "B<--no-dest-paths>"
20600 #: ../fish/guestfish.pod:212
20602 "Don't tab-complete paths on the guest filesystem. It is useful to be able "
20603 "to hit the tab key to complete paths on the guest filesystem, but this "
20604 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
20605 "allow this feature to be disabled."
20609 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
20611 "When prompting for keys and passphrases, guestfish normally turns echoing "
20612 "off so you cannot see what you are typing. If you are not worried about "
20613 "Tempest attacks and there is no one else in the room you can specify this "
20614 "flag to see what you are typing."
20618 #: ../fish/guestfish.pod:224
20620 msgstr "B<-f файл>"
20623 #: ../fish/guestfish.pod:226
20624 msgid "B<--file file>"
20625 msgstr "B<--file файл>"
20628 #: ../fish/guestfish.pod:228
20629 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
20633 #: ../fish/guestfish.pod:231
20636 " #!/usr/bin/guestfish -f\n"
20639 " #!/usr/bin/guestfish -f\n"
20643 #: ../fish/guestfish.pod:244
20646 " guestfish --format=raw -a disk.img\n"
20649 " guestfish --format=raw -a disk.img\n"
20653 #: ../fish/guestfish.pod:248
20656 " guestfish --format=raw -a disk.img --format -a another.img\n"
20659 " guestfish --format=raw -a disk.img --format -a another.img\n"
20663 #: ../fish/guestfish.pod:253
20665 "If you have untrusted raw-format guest disk images, you should use this "
20666 "option to specify the disk format. This avoids a possible security problem "
20667 "with malicious guests (CVE-2010-3851). See also L</add-drive-opts>."
20671 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
20672 msgid "B<--inspector>"
20673 msgstr "B<--inspector>"
20676 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
20678 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
20679 "system and mount filesystems as they would be mounted on the real virtual "
20684 #: ../fish/guestfish.pod:266
20685 msgid "Typical usage is either:"
20689 #: ../fish/guestfish.pod:268
20692 " guestfish -d myguest -i\n"
20695 " guestfish -d myguest -i\n"
20699 #: ../fish/guestfish.pod:270
20700 msgid "(for an inactive libvirt domain called I<myguest>), or:"
20704 #: ../fish/guestfish.pod:272
20707 " guestfish --ro -d myguest -i\n"
20710 " guestfish --ro -d myguest -i\n"
20714 #: ../fish/guestfish.pod:274
20715 msgid "(for active domains, readonly), or specify the block device directly:"
20719 #: ../fish/guestfish.pod:276
20722 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
20725 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
20729 #: ../fish/guestfish.pod:278
20731 "Note that the command line syntax changed slightly over older versions of "
20732 "guestfish. You can still use the old syntax:"
20736 #: ../fish/guestfish.pod:281
20739 " guestfish [--ro] -i disk.img\n"
20742 " guestfish [--ro] -i disk.img\n"
20746 #: ../fish/guestfish.pod:283
20749 " guestfish [--ro] -i libvirt-domain\n"
20754 #: ../fish/guestfish.pod:285
20756 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
20757 "then using other commands to mount the filesystems that were found."
20761 #: ../fish/guestfish.pod:294
20762 msgid "B<--listen>"
20763 msgstr "B<--listen>"
20766 #: ../fish/guestfish.pod:296
20768 "Fork into the background and listen for remote commands. See section L</"
20769 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
20773 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
20778 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
20780 "Connect to a live virtual machine. (Experimental, see L<guestfs(3)/"
20781 "ATTACHING TO RUNNING DAEMONS>)."
20785 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
20786 msgid "B<-m dev[:mountpoint[:options]]>"
20787 msgstr "B<-m пристрій[:точка_монтування[:параметри]]>"
20790 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
20791 msgid "B<--mount dev[:mountpoint[:options]]>"
20792 msgstr "B<--mount пристрій[:точка_монтування[:параметри]]>"
20795 #: ../fish/guestfish.pod:308
20796 msgid "Mount the named partition or logical volume on the given mountpoint."
20800 #: ../fish/guestfish.pod:310
20801 msgid "If the mountpoint is omitted, it defaults to C</>."
20805 #: ../fish/guestfish.pod:312
20806 msgid "You have to mount something on C</> before most commands will work."
20810 #: ../fish/guestfish.pod:314
20812 "If any I<-m> or I<--mount> options are given, the guest is automatically "
20817 #: ../fish/guestfish.pod:317
20819 "If you don't know what filesystems a disk image contains, you can either run "
20820 "guestfish without this option, then list the partitions, filesystems and LVs "
20821 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
20822 "commands), or you can use the L<virt-filesystems(1)> program."
20826 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
20828 "The third (and rarely used) part of the mount parameter is the list of mount "
20829 "options used to mount the underlying filesystem. If this is not given, then "
20830 "the mount options are either the empty string or C<ro> (the latter if the "
20831 "I<--ro> flag is used). By specifying the mount options, you override this "
20832 "default choice. Probably the only time you would use this is to enable ACLs "
20833 "and/or extended attributes if the filesystem can support them:"
20837 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
20840 " -m /dev/sda1:/:acl,user_xattr\n"
20845 #: ../fish/guestfish.pod:333
20846 msgid "Using this flag is equivalent to using the C<mount-options> command."
20850 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
20851 #: ../resize/virt-resize.pod:441
20856 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
20857 msgid "B<--no-sync>"
20858 msgstr "B<--no-sync>"
20861 #: ../fish/guestfish.pod:339
20863 "Disable autosync. This is enabled by default. See the discussion of "
20864 "autosync in the L<guestfs(3)> manpage."
20868 #: ../fish/guestfish.pod:342
20873 #: ../fish/guestfish.pod:344
20874 msgid "B<--new type>"
20875 msgstr "B<--new тип>"
20878 #: ../fish/guestfish.pod:346
20880 msgstr "B<-N help>"
20883 #: ../fish/guestfish.pod:348
20885 "Prepare a fresh disk image formatted as \"type\". This is an alternative to "
20886 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
20887 "preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
20892 #: ../fish/guestfish.pod:353
20893 msgid "B<--progress-bars>"
20894 msgstr "B<--progress-bars>"
20897 #: ../fish/guestfish.pod:355
20898 msgid "Enable progress bars, even when guestfish is used non-interactively."
20902 #: ../fish/guestfish.pod:357
20904 "Progress bars are enabled by default when guestfish is used as an "
20905 "interactive shell."
20909 #: ../fish/guestfish.pod:360
20910 msgid "B<--no-progress-bars>"
20911 msgstr "B<--no-progress-bars>"
20914 #: ../fish/guestfish.pod:362
20915 msgid "Disable progress bars."
20919 #: ../fish/guestfish.pod:364
20920 msgid "B<--remote[=pid]>"
20921 msgstr "B<--remote[=pid]>"
20924 #: ../fish/guestfish.pod:366
20926 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
20927 "CONTROL GUESTFISH OVER A SOCKET> below."
20931 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
20932 #: ../rescue/virt-rescue.pod:189
20937 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
20938 #: ../rescue/virt-rescue.pod:191
20943 #: ../fish/guestfish.pod:373
20945 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20946 "mounts are done read-only."
20950 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:195
20952 "The option must always be used if the disk image or virtual machine might be "
20953 "running, and is generally recommended in cases where you don't need write "
20954 "access to the disk."
20958 #: ../fish/guestfish.pod:380
20960 "Note that prepared disk images created with I<-N> are not affected by this "
20961 "option. Also commands like C<add> are not affected - you have to specify "
20962 "the C<readonly:true> option explicitly if you need it."
20966 #: ../fish/guestfish.pod:384
20967 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
20971 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
20972 #: ../rescue/virt-rescue.pod:201
20973 msgid "B<--selinux>"
20974 msgstr "B<--selinux>"
20977 #: ../fish/guestfish.pod:388
20978 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
20982 #: ../fish/guestfish.pod:394
20984 "Enable very verbose messages. This is particularly useful if you find a bug."
20988 #: ../fish/guestfish.pod:401
20989 msgid "Display the guestfish / libguestfs version number and exit."
20993 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
20994 #: ../rescue/virt-rescue.pod:231
20999 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
21000 #: ../rescue/virt-rescue.pod:233
21005 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
21007 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
21008 "mounts are done read-write."
21012 #: ../fish/guestfish.pod:410
21013 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
21017 #: ../fish/guestfish.pod:414
21018 msgid "Echo each command before executing it."
21022 #: ../fish/guestfish.pod:418
21023 msgid "COMMANDS ON COMMAND LINE"
21027 #: ../fish/guestfish.pod:420
21029 "Any additional (non-option) arguments are treated as commands to execute."
21033 #: ../fish/guestfish.pod:423
21035 "Commands to execute should be separated by a colon (C<:>), where the colon "
21036 "is a separate parameter. Thus:"
21040 #: ../fish/guestfish.pod:426
21043 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
21048 #: ../fish/guestfish.pod:428
21050 "If there are no additional arguments, then we enter a shell, either an "
21051 "interactive shell with a prompt (if the input is a terminal) or a non-"
21052 "interactive shell."
21056 #: ../fish/guestfish.pod:432
21058 "In either command line mode or non-interactive shell, the first command that "
21059 "gives an error causes the whole shell to exit. In interactive mode (with a "
21060 "prompt) if a command fails, you can continue to enter commands."
21064 #: ../fish/guestfish.pod:437
21065 msgid "USING launch (OR run)"
21069 #: ../fish/guestfish.pod:439
21071 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
21072 "then launch it, then mount any disks you need, and finally issue actions/"
21073 "commands. So the general order of the day is:"
21077 #: ../fish/guestfish.pod:447
21078 msgid "add or -a/--add"
21082 #: ../fish/guestfish.pod:451
21083 msgid "launch (aka run)"
21087 #: ../fish/guestfish.pod:455
21088 msgid "mount or -m/--mount"
21092 #: ../fish/guestfish.pod:459
21093 msgid "any other commands"
21097 #: ../fish/guestfish.pod:463
21099 "C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
21100 "guest before mounting or performing any other commands."
21104 #: ../fish/guestfish.pod:466
21106 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
21107 "I<--new> options were given then C<run> is done automatically, simply "
21108 "because guestfish can't perform the action you asked for without doing this."
21112 #: ../fish/guestfish.pod:471
21113 msgid "OPENING DISKS FOR READ AND WRITE"
21117 #: ../fish/guestfish.pod:473
21119 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
21120 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
21121 "I<-i> and I<-m> open disk images read-only or for writing."
21125 #: ../fish/guestfish.pod:478
21127 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
21128 "opening disk images supplied on the command line for write. To open a disk "
21129 "image read-only you have to do I<-a image --ro>."
21133 #: ../fish/guestfish.pod:482
21135 "This matters: If you accidentally open a live VM disk image writable then "
21136 "you will cause irreversible disk corruption."
21140 #: ../fish/guestfish.pod:485
21142 "In a future libguestfs we intend to change the default the other way. Disk "
21143 "images will be opened read-only. You will have to either specify "
21144 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
21145 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
21146 "access for disk images specified by those other command line options."
21150 #: ../fish/guestfish.pod:492
21152 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
21153 "which does nothing (it is already the default). However it is highly "
21154 "recommended that you use this option to indicate that you need write access, "
21155 "and prepare your scripts for the day when this option will be required for "
21160 #: ../fish/guestfish.pod:498
21162 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
21163 "other libguestfs program apart from guestfish and guestmount."
21167 #: ../fish/guestfish.pod:501
21172 #: ../fish/guestfish.pod:503
21174 "You can quote ordinary parameters using either single or double quotes. For "
21179 #: ../fish/guestfish.pod:506
21182 " add \"file with a space.img\"\n"
21187 #: ../fish/guestfish.pod:508
21190 " rm '/file name'\n"
21195 #: ../fish/guestfish.pod:510
21203 #: ../fish/guestfish.pod:512
21205 "A few commands require a list of strings to be passed. For these, use a "
21206 "whitespace-separated list, enclosed in quotes. Strings containing "
21207 "whitespace to be passed through must be enclosed in single quotes. A "
21208 "literal single quote must be escaped with a backslash."
21212 #: ../fish/guestfish.pod:517
21215 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
21216 " command \"/bin/echo 'foo bar'\"\n"
21217 " command \"/bin/echo \\'foo\\'\"\n"
21222 #: ../fish/guestfish.pod:521
21223 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
21227 #: ../fish/guestfish.pod:523
21229 "In double-quoted arguments (only) use backslash to insert special characters:"
21233 #: ../fish/guestfish.pod:528
21238 #: ../fish/guestfish.pod:530
21239 msgid "Alert (bell) character."
21240 msgstr "Символ гудка (дзвінка)."
21243 #: ../fish/guestfish.pod:532
21248 #: ../fish/guestfish.pod:534
21249 msgid "Backspace character."
21253 #: ../fish/guestfish.pod:536
21258 #: ../fish/guestfish.pod:538
21259 msgid "Form feed character."
21263 #: ../fish/guestfish.pod:540
21268 #: ../fish/guestfish.pod:542
21269 msgid "Newline character."
21273 #: ../fish/guestfish.pod:544
21278 #: ../fish/guestfish.pod:546
21279 msgid "Carriage return character."
21280 msgstr "Символ повернення каретки."
21283 #: ../fish/guestfish.pod:548
21288 #: ../fish/guestfish.pod:550
21289 msgid "Horizontal tab character."
21290 msgstr "Символ горизонтальної табуляції"
21293 #: ../fish/guestfish.pod:552
21298 #: ../fish/guestfish.pod:554
21299 msgid "Vertical tab character."
21300 msgstr "Символ вертикальної табуляції."
21303 #: ../fish/guestfish.pod:556
21308 #: ../fish/guestfish.pod:558
21309 msgid "A literal double quote character."
21313 #: ../fish/guestfish.pod:560
21318 #: ../fish/guestfish.pod:562
21320 "A character with octal value I<ooo>. There must be precisely 3 octal digits "
21325 #: ../fish/guestfish.pod:565
21330 #: ../fish/guestfish.pod:567
21332 "A character with hex value I<hh>. There must be precisely 2 hex digits."
21336 #: ../fish/guestfish.pod:570
21338 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
21343 #: ../fish/guestfish.pod:573
21348 #: ../fish/guestfish.pod:575
21349 msgid "A literal backslash character."
21353 #: ../fish/guestfish.pod:579
21354 msgid "OPTIONAL ARGUMENTS"
21358 #: ../fish/guestfish.pod:581
21360 "Some commands take optional arguments. These arguments appear in this "
21361 "documentation as C<[argname:..]>. You can use them as in these examples:"
21365 #: ../fish/guestfish.pod:585
21368 " add-drive-opts filename\n"
21373 #: ../fish/guestfish.pod:587
21376 " add-drive-opts filename readonly:true\n"
21381 #: ../fish/guestfish.pod:589
21384 " add-drive-opts filename format:qcow2 readonly:false\n"
21389 #: ../fish/guestfish.pod:591
21391 "Each optional argument can appear at most once. All optional arguments must "
21392 "appear after the required ones."
21396 #: ../fish/guestfish.pod:594
21401 #: ../fish/guestfish.pod:596
21403 "This section applies to all commands which can take integers as parameters."
21407 #: ../fish/guestfish.pod:599
21408 msgid "SIZE SUFFIX"
21412 #: ../fish/guestfish.pod:601
21414 "When the command takes a parameter measured in bytes, you can use one of the "
21415 "following suffixes to specify kilobytes, megabytes and larger sizes:"
21419 #: ../fish/guestfish.pod:607
21420 msgid "B<k> or B<K> or B<KiB>"
21421 msgstr "B<k>, B<K> або B<KiB>"
21424 #: ../fish/guestfish.pod:609
21425 msgid "The size in kilobytes (multiplied by 1024)."
21426 msgstr "Розмір у кілобайтах (у одному кілобайті 1024 байтів)."
21429 #: ../fish/guestfish.pod:611
21434 #: ../fish/guestfish.pod:613
21435 msgid "The size in SI 1000 byte units."
21436 msgstr "Розмір у одиницях СІ: 1000 байтів."
21439 #: ../fish/guestfish.pod:615
21440 msgid "B<M> or B<MiB>"
21441 msgstr "B<M> або B<MiB>"
21444 #: ../fish/guestfish.pod:617
21445 msgid "The size in megabytes (multiplied by 1048576)."
21446 msgstr "Розмір у мегабайтах (у одному мегабайті 1048576 байтів)."
21449 #: ../fish/guestfish.pod:619
21454 #: ../fish/guestfish.pod:621
21455 msgid "The size in SI 1000000 byte units."
21456 msgstr "Розмір у одиницях СІ: 1000000 байтів."
21459 #: ../fish/guestfish.pod:623
21460 msgid "B<G> or B<GiB>"
21461 msgstr "B<G> або B<GiB>"
21464 #: ../fish/guestfish.pod:625
21465 msgid "The size in gigabytes (multiplied by 2**30)."
21466 msgstr "Розмір у гігабайтах (з множником 2**30)."
21469 #: ../fish/guestfish.pod:627
21474 #: ../fish/guestfish.pod:629
21475 msgid "The size in SI 10**9 byte units."
21476 msgstr "Розмір у одиницях СІ: 10**9 байтів."
21479 #: ../fish/guestfish.pod:631
21480 msgid "B<T> or B<TiB>"
21481 msgstr "B<T> або B<TiB>"
21484 #: ../fish/guestfish.pod:633
21485 msgid "The size in terabytes (multiplied by 2**40)."
21486 msgstr "Розмір у терабайтах (з множником 2**40)."
21489 #: ../fish/guestfish.pod:635
21494 #: ../fish/guestfish.pod:637
21495 msgid "The size in SI 10**12 byte units."
21496 msgstr "Розмір у одиницях СІ: 10**12 байтів."
21499 #: ../fish/guestfish.pod:639
21500 msgid "B<P> or B<PiB>"
21501 msgstr "B<P> або B<PiB>"
21504 #: ../fish/guestfish.pod:641
21505 msgid "The size in petabytes (multiplied by 2**50)."
21506 msgstr "Розмір у петабайтах (у одному петабайті 2**50 байтів)."
21509 #: ../fish/guestfish.pod:643
21514 #: ../fish/guestfish.pod:645
21515 msgid "The size in SI 10**15 byte units."
21516 msgstr "Розмір у одиницях СІ: 10**15 байтів."
21519 #: ../fish/guestfish.pod:647
21520 msgid "B<E> or B<EiB>"
21521 msgstr "B<E> або B<EiB>"
21524 #: ../fish/guestfish.pod:649
21525 msgid "The size in exabytes (multiplied by 2**60)."
21526 msgstr "Розмір у ексабайтах (у одному ексабайті 2**60 байтів)."
21529 #: ../fish/guestfish.pod:651
21534 #: ../fish/guestfish.pod:653
21535 msgid "The size in SI 10**18 byte units."
21536 msgstr "Розмір у одиницях СІ: 10**18 байтів."
21539 #: ../fish/guestfish.pod:655
21540 msgid "B<Z> or B<ZiB>"
21541 msgstr "B<Z> або B<ZiB>"
21544 #: ../fish/guestfish.pod:657
21545 msgid "The size in zettabytes (multiplied by 2**70)."
21546 msgstr "Розмір у зетабайтах (у одному зетабайті 2**70 байтів)."
21549 #: ../fish/guestfish.pod:659
21554 #: ../fish/guestfish.pod:661
21555 msgid "The size in SI 10**21 byte units."
21556 msgstr "Розмір у одиницях СІ: 10**21 байтів."
21559 #: ../fish/guestfish.pod:663
21560 msgid "B<Y> or B<YiB>"
21561 msgstr "B<Y> або B<YiB>"
21564 #: ../fish/guestfish.pod:665
21565 msgid "The size in yottabytes (multiplied by 2**80)."
21566 msgstr "Розмір у йотабайтах (у одному йотабайті 2**80 байтів)."
21569 #: ../fish/guestfish.pod:667
21574 #: ../fish/guestfish.pod:669
21575 msgid "The size in SI 10**24 byte units."
21576 msgstr "Розмір у одиницях СІ: 10**24 байтів."
21579 #: ../fish/guestfish.pod:675
21582 " truncate-size /file 1G\n"
21587 #: ../fish/guestfish.pod:677
21588 msgid "would truncate the file to 1 gigabyte."
21592 #: ../fish/guestfish.pod:679
21594 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
21595 "the parameter to L</memsize> is specified in megabytes already). Adding a "
21596 "suffix will probably not do what you expect."
21600 #: ../fish/guestfish.pod:683
21601 msgid "OCTAL AND HEXADECIMAL NUMBERS"
21605 #: ../fish/guestfish.pod:685
21607 "For specifying the radix (base) use the C convention: C<0> to prefix an "
21608 "octal number or C<0x> to prefix a hexadecimal number. For example:"
21612 #: ../fish/guestfish.pod:688
21615 " 1234 decimal number 1234\n"
21616 " 02322 octal number, equivalent to decimal 1234\n"
21617 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
21622 #: ../fish/guestfish.pod:692
21624 "When using the C<chmod> command, you almost always want to specify an octal "
21625 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
21626 "L<chmod(1)> program):"
21630 #: ../fish/guestfish.pod:696
21633 " chmod 0777 /public # OK\n"
21634 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
21639 #: ../fish/guestfish.pod:699
21641 "Commands that return numbers usually print them in decimal, but some "
21642 "commands print numbers in other radices (eg. C<umask> prints the mode in "
21643 "octal, preceeded by C<0>)."
21647 #: ../fish/guestfish.pod:703
21648 msgid "WILDCARDS AND GLOBBING"
21652 #: ../fish/guestfish.pod:705
21654 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
21655 "(globbing) by default. So for example the following will not do what you "
21660 #: ../fish/guestfish.pod:709
21668 #: ../fish/guestfish.pod:711
21670 "Assuming you don't have a directory called literally C</home/*> then the "
21671 "above command will return an error."
21675 #: ../fish/guestfish.pod:714
21676 msgid "To perform wildcard expansion, use the C<glob> command."
21680 #: ../fish/guestfish.pod:716
21683 " glob rm-rf /home/*\n"
21688 #: ../fish/guestfish.pod:718
21690 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
21691 "many times), equivalent to:"
21695 #: ../fish/guestfish.pod:721
21698 " rm-rf /home/jim\n"
21699 " rm-rf /home/joe\n"
21700 " rm-rf /home/mary\n"
21705 #: ../fish/guestfish.pod:725
21706 msgid "C<glob> only works on simple guest paths and not on device names."
21710 #: ../fish/guestfish.pod:727
21712 "If you have several parameters, each containing a wildcard, then glob will "
21713 "perform a Cartesian product."
21717 #: ../fish/guestfish.pod:730
21722 #: ../fish/guestfish.pod:732
21724 "Any line which starts with a I<#> character is treated as a comment and "
21725 "ignored. The I<#> can optionally be preceeded by whitespace, but B<not> by "
21726 "a command. For example:"
21730 #: ../fish/guestfish.pod:736
21733 " # this is a comment\n"
21734 " # this is a comment\n"
21735 " foo # NOT a comment\n"
21740 #: ../fish/guestfish.pod:740
21741 msgid "Blank lines are also ignored."
21745 #: ../fish/guestfish.pod:742
21746 msgid "RUNNING COMMANDS LOCALLY"
21750 #: ../fish/guestfish.pod:744
21752 "Any line which starts with a I<!> character is treated as a command sent to "
21753 "the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
21757 #: ../fish/guestfish.pod:748
21761 " tgz-out /remote local/remote-data.tar.gz\n"
21766 #: ../fish/guestfish.pod:751
21768 "will create a directory C<local> on the host, and then export the contents "
21769 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
21770 "(See C<tgz-out>)."
21774 #: ../fish/guestfish.pod:755
21776 "To change the local directory, use the C<lcd> command. C<!cd> will have no "
21777 "effect, due to the way that subprocesses work in Unix."
21781 #: ../fish/guestfish.pod:758
21782 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
21786 #: ../fish/guestfish.pod:760
21788 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
21789 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
21790 "and executed as guestfish commands."
21794 #: ../fish/guestfish.pod:764
21796 "Thus you can use shell script to construct arbitrary guestfish commands "
21797 "which are then parsed by guestfish."
21801 #: ../fish/guestfish.pod:767
21803 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
21804 "through C</foo.100>) using guestfish commands alone. However this is simple "
21805 "if we use a shell script to create the guestfish commands for us:"
21809 #: ../fish/guestfish.pod:772
21812 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
21817 #: ../fish/guestfish.pod:774
21818 msgid "or with names like C</foo.001>:"
21822 #: ../fish/guestfish.pod:776
21825 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
21830 #: ../fish/guestfish.pod:778
21832 "When using guestfish interactively it can be helpful to just run the shell "
21833 "script first (ie. remove the initial C<E<lt>> character so it is just an "
21834 "ordinary I<!> local command), see what guestfish commands it would run, and "
21835 "when you are happy with those prepend the C<E<lt>> character to run the "
21836 "guestfish commands for real."
21840 #: ../fish/guestfish.pod:784
21845 #: ../fish/guestfish.pod:786
21847 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
21848 "command (a guestfish command) to the second command (any host command). For "
21853 #: ../fish/guestfish.pod:790
21856 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
21861 #: ../fish/guestfish.pod:792
21863 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
21864 "program). The above command would list all accounts in the guest filesystem "
21865 "which have UID 0, ie. root accounts including backdoors. Other examples:"
21869 #: ../fish/guestfish.pod:797
21872 " hexdump /bin/ls | head\n"
21873 " list-devices | tail -1\n"
21874 " tgz-out / - | tar ztf -\n"
21879 #: ../fish/guestfish.pod:801
21881 "The space before the pipe symbol is required, any space after the pipe "
21882 "symbol is optional. Everything after the pipe symbol is just passed "
21883 "straight to the host shell, so it can contain redirections, globs and "
21884 "anything else that makes sense on the host side."
21888 #: ../fish/guestfish.pod:806
21890 "To use a literal argument which begins with a pipe symbol, you have to quote "
21895 #: ../fish/guestfish.pod:809
21903 #: ../fish/guestfish.pod:811
21904 msgid "HOME DIRECTORIES"
21908 #: ../fish/guestfish.pod:813
21910 "If a parameter starts with the character C<~> then the tilde may be expanded "
21911 "as a home directory path (either C<~> for the current user's home directory, "
21912 "or C<~user> for another user)."
21916 #: ../fish/guestfish.pod:817
21918 "Note that home directory expansion happens for users known I<on the host>, "
21919 "not in the guest filesystem."
21923 #: ../fish/guestfish.pod:820
21925 "To use a literal argument which begins with a tilde, you have to quote it, "
21930 #: ../fish/guestfish.pod:823
21938 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
21939 msgid "ENCRYPTED DISKS"
21940 msgstr "ЗАШИФРОВАНІ ДИСКИ"
21943 #: ../fish/guestfish.pod:827
21945 "Libguestfs has some support for Linux guests encrypted according to the "
21946 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
21947 "disk encryption systems used by modern Linux guests. Currently only LVM-on-"
21948 "LUKS is supported."
21952 #: ../fish/guestfish.pod:832
21953 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
21957 #: ../fish/guestfish.pod:834
21960 " ><fs> vfs-type /dev/sda2\n"
21966 #: ../fish/guestfish.pod:837
21968 "Then open those devices using L</luks-open>. This creates a device-mapper "
21969 "device called C</dev/mapper/luksdev>."
21973 #: ../fish/guestfish.pod:840
21976 " ><fs> luks-open /dev/sda2 luksdev\n"
21977 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
21982 #: ../fish/guestfish.pod:843
21984 "Finally you have to tell LVM to scan for volume groups on the newly created "
21989 #: ../fish/guestfish.pod:846
21993 " vg-activate-all true\n"
21998 #: ../fish/guestfish.pod:849
21999 msgid "The logical volume(s) can now be mounted in the usual way."
22003 #: ../fish/guestfish.pod:851
22005 "Before closing a LUKS device you must unmount any logical volumes on it and "
22006 "deactivate the volume groups by calling C<vg-activate false VG> on each "
22007 "one. Then you can close the mapper device:"
22011 #: ../fish/guestfish.pod:855
22014 " vg-activate false /dev/VG\n"
22015 " luks-close /dev/mapper/luksdev\n"
22020 #: ../fish/guestfish.pod:860
22022 "If a path is prefixed with C<win:> then you can use Windows-style drive "
22023 "letters and paths (with some limitations). The following commands are "
22028 #: ../fish/guestfish.pod:864
22031 " file /WINDOWS/system32/config/system.LOG\n"
22036 #: ../fish/guestfish.pod:866
22039 " file win:\\windows\\system32\\config\\system.log\n"
22044 #: ../fish/guestfish.pod:868
22047 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
22052 #: ../fish/guestfish.pod:870
22054 "The parameter is rewritten \"behind the scenes\" by looking up the position "
22055 "where the drive is mounted, prepending that to the path, changing all "
22056 "backslash characters to forward slash, then resolving the result using L</"
22057 "case-sensitive-path>. For example if the E: drive was mounted on C</e> then "
22058 "the parameter might be rewritten like this:"
22062 #: ../fish/guestfish.pod:876
22065 " win:e:\\foo\\bar => /e/FOO/bar\n"
22070 #: ../fish/guestfish.pod:878
22071 msgid "This only works in argument positions that expect a path."
22075 #: ../fish/guestfish.pod:880
22076 msgid "UPLOADING AND DOWNLOADING FILES"
22080 #: ../fish/guestfish.pod:882
22082 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
22083 "others which upload from or download to a local file, you can use the "
22084 "special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
22088 #: ../fish/guestfish.pod:886
22096 #: ../fish/guestfish.pod:888
22098 "reads stdin and creates from that a file C</foo> in the disk image, and:"
22102 #: ../fish/guestfish.pod:891
22105 " tar-out /etc - | tar tf -\n"
22110 #: ../fish/guestfish.pod:893
22112 "writes the tarball to stdout and then pipes that into the external \"tar\" "
22113 "command (see L</PIPES>)."
22117 #: ../fish/guestfish.pod:896
22119 "When using C<-> to read from stdin, the input is read up to the end of "
22120 "stdin. You can also use a special \"heredoc\"-like syntax to read up to "
22121 "some arbitrary end marker:"
22125 #: ../fish/guestfish.pod:900
22128 " upload -<<END /foo\n"
22137 #: ../fish/guestfish.pod:906
22139 "Any string of characters can be used instead of C<END>. The end marker must "
22140 "appear on a line of its own, without any preceeding or following characters "
22141 "(not even spaces)."
22145 #: ../fish/guestfish.pod:910
22147 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
22148 "upload local files (so-called \"FileIn\" parameters in the generator)."
22152 #: ../fish/guestfish.pod:913
22153 msgid "EXIT ON ERROR BEHAVIOUR"
22157 #: ../fish/guestfish.pod:915
22159 "By default, guestfish will ignore any errors when in interactive mode (ie. "
22160 "taking commands from a human over a tty), and will exit on the first error "
22161 "in non-interactive mode (scripts, commands given on the command line)."
22165 #: ../fish/guestfish.pod:920
22167 "If you prefix a command with a I<-> character, then that command will not "
22168 "cause guestfish to exit, even if that (one) command returns an error."
22172 #: ../fish/guestfish.pod:924
22173 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
22177 #: ../fish/guestfish.pod:926
22179 "Guestfish can be remote-controlled over a socket. This is useful "
22180 "particularly in shell scripts where you want to make several different "
22181 "changes to a filesystem, but you don't want the overhead of starting up a "
22182 "guestfish process each time."
22186 #: ../fish/guestfish.pod:931
22187 msgid "Start a guestfish server process using:"
22191 #: ../fish/guestfish.pod:933
22194 " eval \"`guestfish --listen`\"\n"
22199 #: ../fish/guestfish.pod:935
22200 msgid "and then send it commands by doing:"
22204 #: ../fish/guestfish.pod:937
22207 " guestfish --remote cmd [...]\n"
22212 #: ../fish/guestfish.pod:939
22213 msgid "To cause the server to exit, send it the exit command:"
22217 #: ../fish/guestfish.pod:943
22219 "Note that the server will normally exit if there is an error in a command. "
22220 "You can change this in the usual way. See section L</EXIT ON ERROR "
22225 #: ../fish/guestfish.pod:947
22226 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
22230 #: ../fish/guestfish.pod:949
22232 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
22233 "is how the I<--remote> option knows where to send the commands. You can "
22234 "have several guestfish listener processes running using:"
22238 #: ../fish/guestfish.pod:953
22241 " eval \"`guestfish --listen`\"\n"
22242 " pid1=$GUESTFISH_PID\n"
22243 " eval \"`guestfish --listen`\"\n"
22244 " pid2=$GUESTFISH_PID\n"
22246 " guestfish --remote=$pid1 cmd\n"
22247 " guestfish --remote=$pid2 cmd\n"
22252 #: ../fish/guestfish.pod:961
22253 msgid "REMOTE CONTROL AND CSH"
22257 #: ../fish/guestfish.pod:963
22259 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
22264 #: ../fish/guestfish.pod:966
22267 " eval \"`guestfish --listen --csh`\"\n"
22272 #: ../fish/guestfish.pod:968
22273 msgid "REMOTE CONTROL DETAILS"
22277 #: ../fish/guestfish.pod:970
22279 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
22280 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
22281 "and C<$PID> is the process ID of the server."
22285 #: ../fish/guestfish.pod:974
22286 msgid "Guestfish client and server versions must match exactly."
22290 #: ../fish/guestfish.pod:976
22291 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
22295 #: ../fish/guestfish.pod:978
22297 "From Bash, you can use the following code which creates a guestfish "
22298 "instance, correctly quotes the command line, handles failure to start, and "
22299 "cleans up guestfish when the script exits:"
22303 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
22311 #: ../fish/guestfish.pod:986
22314 " guestfish[0]=\"guestfish\"\n"
22315 " guestfish[1]=\"--listen\"\n"
22316 " guestfish[2]=\"--ro\"\n"
22317 " guestfish[3]=\"-a\"\n"
22318 " guestfish[4]=\"disk.img\"\n"
22323 #: ../fish/guestfish.pod:992
22326 " GUESTFISH_PID=\n"
22327 " eval $(\"${guestfish[@]}\")\n"
22328 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
22329 " echo \"error: guestfish didn't start up, see error messages above\"\n"
22336 #: ../fish/guestfish.pod:999
22339 " cleanup_guestfish ()\n"
22341 " guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
22343 " trap cleanup_guestfish EXIT ERR\n"
22348 #: ../fish/guestfish.pod:1005
22351 " guestfish --remote -- run\n"
22356 #: ../fish/guestfish.pod:1007
22364 #: ../fish/guestfish.pod:1009
22365 msgid "REMOTE CONTROL RUN COMMAND HANGING"
22369 #: ../fish/guestfish.pod:1011
22371 "Using the C<run> (or C<launch>) command remotely in a command substitution "
22372 "context hangs, ie. don't do (note the backquotes):"
22376 #: ../fish/guestfish.pod:1014
22379 " a=`guestfish --remote run`\n"
22384 #: ../fish/guestfish.pod:1016
22386 "Since the C<run> command produces no output on stdout, this is not useful "
22387 "anyway. For further information see L<https://bugzilla.redhat.com/show_bug."
22392 #: ../fish/guestfish.pod:1020
22393 msgid "PREPARED DISK IMAGES"
22397 #: ../fish/guestfish.pod:1022
22399 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
22400 "preformatted disk images that guestfish can make for you to save typing. "
22401 "This is particularly useful for testing purposes. This option is used "
22402 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
22403 "can be mixed with I<-a>)."
22407 #: ../fish/guestfish.pod:1028
22409 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
22410 "the second and so on. Existing files in the current directory are "
22415 #: ../fish/guestfish.pod:1032
22417 "The type briefly describes how the disk should be sized, partitioned, how "
22418 "filesystem(s) should be created, and how content should be added. "
22419 "Optionally the type can be followed by extra parameters, separated by C<:> "
22420 "(colon) characters. For example, I<-N fs> creates a default 100MB, sparsely-"
22421 "allocated disk, containing a single partition, with the partition formatted "
22422 "as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
22427 #: ../fish/guestfish.pod:1040
22428 msgid "To list the available types and any extra parameters they take, run:"
22432 #: ../fish/guestfish.pod:1044
22434 "Note that the prepared filesystem is not mounted. You would usually have to "
22435 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
22439 #: ../fish/guestfish.pod:1048
22441 "If any I<-N> or I<--new> options are given, the guest is automatically "
22446 #: ../fish/guestfish.pod:1053
22447 msgid "Create a 100MB disk with an ext4-formatted partition:"
22451 #: ../fish/guestfish.pod:1055
22454 " guestfish -N fs:ext4\n"
22459 #: ../fish/guestfish.pod:1057
22460 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
22464 #: ../fish/guestfish.pod:1059
22467 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
22472 #: ../fish/guestfish.pod:1061
22473 msgid "Create a blank 200MB disk:"
22477 #: ../fish/guestfish.pod:1063
22480 " guestfish -N disk:200M\n"
22485 #: ../fish/guestfish.pod:1065
22486 msgid "PROGRESS BARS"
22490 #: ../fish/guestfish.pod:1067
22492 "Some (not all) long-running commands send progress notification messages as "
22493 "they are running. Guestfish turns these messages into progress bars."
22497 #: ../fish/guestfish.pod:1071
22499 "When a command that supports progress bars takes longer than two seconds to "
22500 "run, and if progress bars are enabled, then you will see one appearing below "
22505 #: ../fish/guestfish.pod:1075
22508 " ><fs> copy-size /large-file /another-file 2048M\n"
22509 " / 10% [#####-----------------------------------------] 00:30\n"
22514 #: ../fish/guestfish.pod:1078
22516 "The spinner on the left hand side moves round once for every progress "
22517 "notification received from the backend. This is a (reasonably) golden "
22518 "assurance that the command is \"doing something\" even if the progress bar "
22519 "is not moving, because the command is able to send the progress "
22520 "notifications. When the bar reaches 100% and the command finishes, the "
22521 "spinner disappears."
22525 #: ../fish/guestfish.pod:1085
22527 "Progress bars are enabled by default when guestfish is used interactively. "
22528 "You can enable them even for non-interactive modes using I<--progress-bars>, "
22529 "and you can disable them completely using I<--no-progress-bars>."
22533 #: ../fish/guestfish.pod:1090
22534 msgid "GUESTFISH COMMANDS"
22538 #: ../fish/guestfish.pod:1092
22540 "The commands in this section are guestfish convenience commands, in other "
22541 "words, they are not part of the L<guestfs(3)> API."
22545 #: ../fish/guestfish.pod:1095
22550 #: ../fish/guestfish.pod:1097
22562 #: ../fish/guestfish.pod:1100
22563 msgid "Without any parameter, this provides general help."
22564 msgstr "Без параметра показує загальну довідкову інформацію."
22567 #: ../fish/guestfish.pod:1102
22568 msgid "With a C<cmd> parameter, this displays detailed help for that command."
22572 #: ../fish/guestfish.pod:1104
22573 msgid "quit | exit"
22577 #: ../fish/guestfish.pod:1106
22578 msgid "This exits guestfish. You can also use C<^D> key."
22582 #: ../fish/guestfish.pod:1108
22583 msgid "@FISH_COMMANDS@"
22587 #: ../fish/guestfish.pod:1110
22592 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
22597 #: ../fish/guestfish.pod:1116
22599 "guestfish returns 0 if the commands completed without error, or 1 if there "
22604 #: ../fish/guestfish.pod:1123
22609 #: ../fish/guestfish.pod:1125
22611 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
22616 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3199
22617 msgid "FEBOOTSTRAP_KERNEL"
22621 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3201
22622 msgid "FEBOOTSTRAP_MODULES"
22626 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3203
22628 "These two environment variables allow the kernel that libguestfs uses in the "
22629 "appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
22630 "most recent host kernel is chosen. For more information about kernel "
22631 "selection, see L<febootstrap-supermin-helper(8)>. This feature is only "
22632 "available in febootstrap E<ge> 3.8."
22636 #: ../fish/guestfish.pod:1138
22637 msgid "GUESTFISH_DISPLAY_IMAGE"
22641 #: ../fish/guestfish.pod:1140
22643 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
22644 "If not set, it uses L<display(1)>."
22648 #: ../fish/guestfish.pod:1143
22649 msgid "GUESTFISH_PID"
22653 #: ../fish/guestfish.pod:1145
22655 "Used with the I<--remote> option to specify the remote guestfish process to "
22656 "control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
22660 #: ../fish/guestfish.pod:1149
22665 #: ../fish/guestfish.pod:1151
22667 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
22668 "not specified, the external L<hexedit(1)> program is used."
22672 #: ../fish/guestfish.pod:1155
22677 #: ../fish/guestfish.pod:1157
22679 "If compiled with GNU readline support, various files in the home directory "
22680 "can be used. See L</FILES>."
22684 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3209
22685 msgid "LIBGUESTFS_APPEND"
22689 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3211
22690 msgid "Pass additional options to the guest kernel."
22694 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3213
22695 msgid "LIBGUESTFS_DEBUG"
22696 msgstr "LIBGUESTFS_DEBUG"
22699 #: ../fish/guestfish.pod:1166
22701 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
22702 "effect as using the B<-v> option."
22706 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3218
22707 msgid "LIBGUESTFS_MEMSIZE"
22708 msgstr "LIBGUESTFS_MEMSIZE"
22711 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3220
22713 "Set the memory allocated to the qemu process, in megabytes. For example:"
22717 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3223
22720 " LIBGUESTFS_MEMSIZE=700\n"
22723 " LIBGUESTFS_MEMSIZE=700\n"
22727 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3225
22728 msgid "LIBGUESTFS_PATH"
22732 #: ../fish/guestfish.pod:1178
22734 "Set the path that guestfish uses to search for kernel and initrd.img. See "
22735 "the discussion of paths in L<guestfs(3)>."
22739 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3230
22740 msgid "LIBGUESTFS_QEMU"
22744 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3232
22746 "Set the default qemu binary that libguestfs uses. If not set, then the qemu "
22747 "which was found at compile time by the configure script is used."
22751 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3238
22752 msgid "LIBGUESTFS_TRACE"
22756 #: ../fish/guestfish.pod:1189
22757 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
22761 #: ../fish/guestfish.pod:1191
22763 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
22766 #: ../fish/guestfish.pod:1193
22768 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
22773 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:260
22774 #: ../src/guestfs.pod:3243
22779 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3245
22781 "Location of temporary directory, defaults to C</tmp> except for the cached "
22782 "supermin appliance which defaults to C</var/tmp>."
22786 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3248
22788 "If libguestfs was compiled to use the supermin appliance then the real "
22789 "appliance is cached in this directory, shared between all handles belonging "
22790 "to the same EUID. You can use C<$TMPDIR> to configure another directory to "
22791 "use in case C</var/tmp> is not large enough."
22795 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
22796 #: ../rescue/virt-rescue.pod:310
22801 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
22802 #: ../rescue/virt-rescue.pod:314
22803 msgid "$HOME/.libguestfs-tools.rc"
22807 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
22808 #: ../rescue/virt-rescue.pod:316
22809 msgid "/etc/libguestfs-tools.conf"
22813 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
22814 #: ../rescue/virt-rescue.pod:318
22816 "This configuration file controls the default read-only or read-write mode "
22817 "(I<--ro> or I<--rw>)."
22821 #: ../fish/guestfish.pod:1220
22822 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
22823 msgstr "Див. L</OPENING DISKS FOR READ AND WRITE>."
22826 #: ../fish/guestfish.pod:1222
22827 msgid "$HOME/.guestfish"
22831 #: ../fish/guestfish.pod:1224
22833 "If compiled with GNU readline support, then the command history is saved in "
22838 #: ../fish/guestfish.pod:1227
22839 msgid "$HOME/.inputrc"
22843 #: ../fish/guestfish.pod:1229
22844 msgid "/etc/inputrc"
22848 #: ../fish/guestfish.pod:1231
22850 "If compiled with GNU readline support, then these files can be used to "
22851 "configure readline. For further information, please see L<readline(3)/"
22852 "INITIALIZATION FILE>."
22856 #: ../fish/guestfish.pod:1235
22857 msgid "To write rules which only apply to guestfish, use:"
22861 #: ../fish/guestfish.pod:1237
22871 #: ../fish/guestfish.pod:1241
22873 "Variables that you can set in inputrc that change the behaviour of guestfish "
22874 "in useful ways include:"
22878 #: ../fish/guestfish.pod:1246
22879 msgid "completion-ignore-case (default: on)"
22883 #: ../fish/guestfish.pod:1248
22885 "By default, guestfish will ignore case when tab-completing paths on the "
22890 #: ../fish/guestfish.pod:1251
22893 " set completion-ignore-case off\n"
22898 #: ../fish/guestfish.pod:1253
22899 msgid "to make guestfish case sensitive."
22903 #: ../fish/guestfish.pod:1257
22908 #: ../fish/guestfish.pod:1259
22909 msgid "test2.img (etc)"
22913 #: ../fish/guestfish.pod:1261
22915 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
22916 "will be created in the file C<test1.img> in the current directory. The "
22917 "second use of I<-N> will use C<test2.img> and so on. Any existing file with "
22918 "the same name will be overwritten."
22922 #: ../fish/guestfish.pod:1270
22924 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
22925 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
22926 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
22927 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
22928 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
22929 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
22930 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
22934 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3341
22935 #: ../test-tool/libguestfs-test-tool.pod:112
22936 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
22940 #: ../fish/virt-copy-in.pod:5
22942 "virt-copy-in - Copy files and directories into a virtual machine disk image."
22946 #: ../fish/virt-copy-in.pod:9
22949 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
22954 #: ../fish/virt-copy-in.pod:11
22957 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
22962 #: ../fish/virt-copy-in.pod:15
22964 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
22965 "causing disk corruption. The virtual machine must be shut down before you "
22966 "use this command."
22970 #: ../fish/virt-copy-in.pod:21
22972 "C<virt-copy-in> copies files and directories from the local disk into a "
22973 "virtual machine disk image or named libvirt domain."
22977 #: ../fish/virt-copy-in.pod:24
22979 "You can give one of more filenames and directories on the command line. "
22980 "Directories are copied in recursively. The final parameter must be the "
22981 "destination directory in the disk image which must be an absolute path "
22982 "starting with a C</> character."
22986 #: ../fish/virt-copy-in.pod:33
22989 " virt-copy-in -d MyGuest resolv.conf /etc\n"
22994 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
22995 msgid "Upload a home directory to a guest:"
22999 #: ../fish/virt-copy-in.pod:37
23002 " virt-copy-in -d MyGuest skel /home\n"
23007 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
23008 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
23009 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
23013 #: ../fish/virt-copy-in.pod:41
23015 "This command is just a simple shell script wrapper around the L<guestfish(1)"
23016 "> C<copy-in> command. For anything more complex than a trivial copy, you "
23017 "are probably better off using guestfish directly."
23021 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
23022 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
23024 "Since the shell script just passes options straight to guestfish, read "
23025 "L<guestfish(1)> to see the full list of options."
23029 #: ../fish/virt-copy-in.pod:52
23031 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
23032 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
23036 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
23037 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
23038 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
23042 #: ../fish/virt-copy-out.pod:5
23044 "virt-copy-out - Copy files and directories out of a virtual machine disk "
23049 #: ../fish/virt-copy-out.pod:9
23052 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
23057 #: ../fish/virt-copy-out.pod:11
23060 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
23065 #: ../fish/virt-copy-out.pod:15
23067 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
23068 "image or named libvirt domain."
23072 #: ../fish/virt-copy-out.pod:18
23074 "You can give one of more filenames and directories on the command line. "
23075 "Directories are copied out recursively."
23079 #: ../fish/virt-copy-out.pod:23
23080 msgid "Download the home directories from a virtual machine:"
23084 #: ../fish/virt-copy-out.pod:25
23088 " virt-copy-out -d MyGuest /home homes\n"
23093 #: ../fish/virt-copy-out.pod:30
23095 "This command is just a simple shell script wrapper around the L<guestfish(1)"
23096 "> C<copy-out> command. For anything more complex than a trivial copy, you "
23097 "are probably better off using guestfish directly."
23101 #: ../fish/virt-copy-out.pod:41
23103 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
23104 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
23108 #: ../fish/virt-tar-in.pod:5
23109 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
23113 #: ../fish/virt-tar-in.pod:9
23116 " virt-tar-in -a disk.img data.tar /destination\n"
23121 #: ../fish/virt-tar-in.pod:11
23124 " virt-tar-in -d domain data.tar /destination\n"
23129 #: ../fish/virt-tar-in.pod:13
23132 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
23137 #: ../fish/virt-tar-in.pod:17
23139 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
23140 "causing disk corruption. The virtual machine must be shut down before you "
23141 "use this command."
23145 #: ../fish/virt-tar-in.pod:23
23147 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
23148 "image or named libvirt domain."
23152 #: ../fish/virt-tar-in.pod:26
23154 "The first parameter is the tar file. Use C<-> to read the tar file from "
23155 "standard input. The second parameter is the absolute target directory to "
23160 #: ../fish/virt-tar-in.pod:34
23163 " virt-tar-in -d MyGuest homes.tar /home\n"
23168 #: ../fish/virt-tar-in.pod:38
23170 "This command is just a simple shell script wrapper around the L<guestfish(1)"
23171 "> C<tar-in> command. For anything more complex than a trivial copy, you are "
23172 "probably better off using guestfish directly."
23176 #: ../fish/virt-tar-in.pod:49
23178 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
23179 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
23184 #: ../fish/virt-tar-out.pod:5
23186 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
23190 #: ../fish/virt-tar-out.pod:9
23193 " virt-tar-out -a disk.img /dir files.tar\n"
23198 #: ../fish/virt-tar-out.pod:11
23201 " virt-tar-out -d domain /dir files.tar\n"
23206 #: ../fish/virt-tar-out.pod:13
23209 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
23214 #: ../fish/virt-tar-out.pod:17
23216 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
23220 #: ../fish/virt-tar-out.pod:20
23222 "The first parameter is the absolute path of the virtual machine directory. "
23223 "The second parameter is the tar file to write. Use C<-> to write to "
23228 #: ../fish/virt-tar-out.pod:26
23229 msgid "Download the home directories from a guest:"
23233 #: ../fish/virt-tar-out.pod:28
23236 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
23241 #: ../fish/virt-tar-out.pod:32
23243 "This command is just a simple shell script wrapper around the L<guestfish(1)"
23244 "> C<tar-out> command. For anything more complex than a trivial copy, you "
23245 "are probably better off using guestfish directly."
23249 #: ../fish/virt-tar-out.pod:43
23251 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
23252 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
23256 #: ../fuse/guestmount.pod:5
23258 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
23262 #: ../fuse/guestmount.pod:9
23265 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
23270 #: ../fuse/guestmount.pod:11
23273 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
23278 #: ../fuse/guestmount.pod:13
23281 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
23286 #: ../fuse/guestmount.pod:17
23288 "You must I<not> use C<guestmount> in read-write mode on live virtual "
23289 "machines. If you do this, you risk disk corruption in the VM."
23293 #: ../fuse/guestmount.pod:22
23295 "The guestmount program can be used to mount virtual machine filesystems and "
23296 "other disk images on the host. It uses libguestfs for access to the guest "
23297 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
23298 "a mountable device."
23302 #: ../fuse/guestmount.pod:27
23304 "Along with other options, you have to give at least one device (I<-a> "
23305 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
23306 "option) or use the I<-i> inspection option or the I<--live> option. How "
23307 "this works is better explained in the L<guestfish(1)> manual page, or by "
23308 "looking at the examples below."
23312 #: ../fuse/guestmount.pod:33
23314 "FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
23315 "by you, and the filesystem will not be visible to any other users unless you "
23316 "make certain global configuration changes to C</etc/fuse.conf>. To unmount "
23317 "the filesystem, use the C<fusermount -u> command."
23321 #: ../fuse/guestmount.pod:41
23323 "For a typical Windows guest which has its main filesystem on the first "
23328 #: ../fuse/guestmount.pod:44
23331 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
23336 #: ../fuse/guestmount.pod:46
23338 "For a typical Linux guest which has a /boot filesystem on the first "
23339 "partition, and the root filesystem on a logical volume:"
23343 #: ../fuse/guestmount.pod:49
23346 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
23351 #: ../fuse/guestmount.pod:51
23352 msgid "To get libguestfs to detect guest mountpoints for you:"
23356 #: ../fuse/guestmount.pod:53
23359 " guestmount -a guest.img -i --ro /mnt\n"
23364 #: ../fuse/guestmount.pod:55
23365 msgid "For a libvirt guest called \"Guest\" you could do:"
23369 #: ../fuse/guestmount.pod:57
23372 " guestmount -d Guest -i --ro /mnt\n"
23377 #: ../fuse/guestmount.pod:59
23379 "If you don't know what filesystems are contained in a guest or disk image, "
23380 "use L<virt-filesystems(1)> first:"
23384 #: ../fuse/guestmount.pod:62
23387 " virt-filesystems MyGuest\n"
23392 #: ../fuse/guestmount.pod:64
23394 "If you want to trace the libguestfs calls but without excessive debugging "
23395 "information, we recommend:"
23399 #: ../fuse/guestmount.pod:67
23402 " guestmount [...] --trace /mnt\n"
23407 #: ../fuse/guestmount.pod:69
23408 msgid "If you want to debug the program, we recommend:"
23412 #: ../fuse/guestmount.pod:71
23415 " guestmount [...] --trace --verbose /mnt\n"
23420 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:96
23421 #: ../resize/virt-resize.pod:627
23426 #: ../fuse/guestmount.pod:75
23427 msgid "Other users cannot see the filesystem by default"
23431 #: ../fuse/guestmount.pod:77
23433 "If you mount a filesystem as one user (eg. root), then other users will not "
23434 "be able to see it by default. The fix is to add the FUSE C<allow_other> "
23435 "option when mounting:"
23439 #: ../fuse/guestmount.pod:81
23442 " sudo guestmount [...] -o allow_other /mnt\n"
23447 #: ../fuse/guestmount.pod:83
23448 msgid "Enabling FUSE"
23452 #: ../fuse/guestmount.pod:85
23454 "On some distros, you may need to add yourself to a special group (eg. "
23455 "C<fuse>) before you can use any FUSE filesystem. This is necessary on "
23456 "Debian and derivatives."
23460 #: ../fuse/guestmount.pod:89
23462 "On other distros, no special group is required. It is not necessary on "
23463 "Fedora or Red Hat Enterprise Linux."
23467 #: ../fuse/guestmount.pod:100
23468 msgid "Add a block device or virtual machine image."
23472 #: ../fuse/guestmount.pod:123
23473 msgid "B<--dir-cache-timeout N>"
23474 msgstr "B<--dir-cache-timeout N>"
23477 #: ../fuse/guestmount.pod:125
23479 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
23480 "seconds. The readdir cache [actually, there are several semi-independent "
23481 "caches] is populated after a readdir(2) call with the stat and extended "
23482 "attributes of the files in the directory, in anticipation that they will be "
23483 "requested soon after."
23487 #: ../fuse/guestmount.pod:131
23489 "There is also a different attribute cache implemented by FUSE (see the FUSE "
23490 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
23491 "requests, only cache existing ones."
23495 #: ../fuse/guestmount.pod:151
23497 "If you have untrusted raw-format guest disk images, you should use this "
23498 "option to specify the disk format. This avoids a possible security problem "
23499 "with malicious guests (CVE-2010-3851). See also L<guestfs(3)/"
23500 "guestfs_add_drive_opts>."
23504 #: ../fuse/guestmount.pod:156
23505 msgid "B<--fuse-help>"
23506 msgstr "B<--fuse-help>"
23509 #: ../fuse/guestmount.pod:158
23510 msgid "Display help on special FUSE options (see I<-o> below)."
23514 #: ../fuse/guestmount.pod:162
23515 msgid "Display brief help and exit."
23519 #: ../fuse/guestmount.pod:186
23521 "Mount the named partition or logical volume on the given mountpoint B<in the "
23522 "guest> (this has nothing to do with mountpoints in the host)."
23526 #: ../fuse/guestmount.pod:189
23528 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
23529 "something on C</>."
23533 #: ../fuse/guestmount.pod:206
23535 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
23536 "unmounted. If you specify this option, then we don't attempt to sync the "
23537 "disk. See the discussion of autosync in the L<guestfs(3)> manpage."
23541 #: ../fuse/guestmount.pod:211
23542 msgid "B<-o option>"
23543 msgstr "B<-o параметр>"
23546 #: ../fuse/guestmount.pod:213
23547 msgid "B<--option option>"
23548 msgstr "B<--option параметр>"
23551 #: ../fuse/guestmount.pod:215
23552 msgid "Pass extra options to FUSE."
23556 #: ../fuse/guestmount.pod:217
23558 "To get a list of all the extra options supported by FUSE, use the command "
23559 "below. Note that only the FUSE I<-o> options can be passed, and only some "
23560 "of them are a good idea."
23564 #: ../fuse/guestmount.pod:221
23567 " guestmount --fuse-help\n"
23572 #: ../fuse/guestmount.pod:223
23573 msgid "Some potentially useful FUSE options:"
23577 #: ../fuse/guestmount.pod:227
23578 msgid "B<-o allow_other>"
23582 #: ../fuse/guestmount.pod:229
23583 msgid "Allow other users to see the filesystem."
23587 #: ../fuse/guestmount.pod:231
23588 msgid "B<-o attr_timeout=N>"
23589 msgstr "B<-o attr_timeout=N>"
23592 #: ../fuse/guestmount.pod:233
23593 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
23597 #: ../fuse/guestmount.pod:235
23598 msgid "B<-o kernel_cache>"
23602 #: ../fuse/guestmount.pod:237
23604 "Allow the kernel to cache files (reduces the number of reads that have to go "
23605 "through the L<guestfs(3)> API). This is generally a good idea if you can "
23606 "afford the extra memory usage."
23610 #: ../fuse/guestmount.pod:241
23611 msgid "B<-o uid=N> B<-o gid=N>"
23612 msgstr "B<-o uid=N> B<-o gid=N>"
23615 #: ../fuse/guestmount.pod:243
23617 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
23618 "the chosen values."
23622 #: ../fuse/guestmount.pod:252
23624 "Add devices and mount everything read-only. Also disallow writes and make "
23625 "the disk appear read-only to FUSE."
23629 #: ../fuse/guestmount.pod:255
23631 "This is highly recommended if you are not going to edit the guest disk. If "
23632 "the guest is running and this option is I<not> supplied, then there is a "
23633 "strong risk of disk corruption in the guest. We try to prevent this from "
23634 "happening, but it is not always possible."
23638 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:199
23639 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23640 msgstr "Див. також L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23643 #: ../fuse/guestmount.pod:264
23644 msgid "Enable SELinux support for the guest."
23648 #: ../fuse/guestmount.pod:270
23649 msgid "Enable verbose messages from underlying libguestfs."
23653 #: ../fuse/guestmount.pod:276
23654 msgid "Display the program version and exit."
23658 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
23659 #: ../rescue/virt-rescue.pod:238 ../rescue/virt-rescue.pod:321
23660 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23661 msgstr "Див. L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23664 #: ../fuse/guestmount.pod:289
23666 msgstr "B<--trace>"
23669 #: ../fuse/guestmount.pod:291
23670 msgid "Trace libguestfs calls and entry into each FUSE function."
23674 #: ../fuse/guestmount.pod:293
23675 msgid "This also stops the daemon from forking into the background."
23679 #: ../fuse/guestmount.pod:319
23681 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23682 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
23685 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23686 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
23690 #: ../fuse/guestmount.pod:334
23691 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
23695 #: ../inspector/virt-inspector.pod:5
23697 "virt-inspector - Display operating system version and other information "
23698 "about a virtual machine"
23702 #: ../inspector/virt-inspector.pod:9
23705 " virt-inspector [--options] -d domname\n"
23710 #: ../inspector/virt-inspector.pod:11
23713 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
23718 #: ../inspector/virt-inspector.pod:15
23721 " virt-inspector domname\n"
23726 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
23729 " virt-inspector disk.img [disk.img ...]\n"
23734 #: ../inspector/virt-inspector.pod:21
23736 "B<virt-inspector> examines a virtual machine or disk image and tries to "
23737 "determine the version of the operating system and other information about "
23738 "the virtual machine."
23742 #: ../inspector/virt-inspector.pod:25
23743 msgid "Virt-inspector produces XML output for feeding into other programs."
23747 #: ../inspector/virt-inspector.pod:27
23749 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
23750 "the libvirt domain (see: C<virsh list --all>)."
23754 #: ../inspector/virt-inspector.pod:30
23756 "You can also run virt-inspector directly on disk images from a single "
23757 "virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain "
23758 "has several block devices, in which case you should list several I<-a> "
23759 "options one after another, with the first corresponding to the guest's C</"
23760 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
23764 #: ../inspector/virt-inspector.pod:37
23766 "You can also run virt-inspector on install disks, live CDs, bootable USB "
23767 "keys and similar."
23771 #: ../inspector/virt-inspector.pod:40
23773 "Virt-inspector can only inspect and report upon I<one domain at a time>. To "
23774 "inspect several virtual machines, you have to run virt-inspector several "
23775 "times (for example, from a shell script for-loop)."
23779 #: ../inspector/virt-inspector.pod:45
23781 "Because virt-inspector needs direct access to guest images, it won't "
23782 "normally work over remote libvirt connections."
23786 #: ../inspector/virt-inspector.pod:48
23788 "All of the information available from virt-inspector is also available "
23789 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
23790 "The same information can also be fetched using guestfish or via libguestfs "
23791 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
23792 "WITH OTHER PROGRAMMING LANGUAGES>)."
23796 #: ../inspector/virt-inspector.pod:81
23798 "Libvirt is only used if you specify a C<domname> on the command line. If "
23799 "you specify guest block devices directly (I<-a>), then libvirt is not used "
23804 #: ../inspector/virt-inspector.pod:94
23806 "When prompting for keys and passphrases, virt-inspector normally turns "
23807 "echoing off so you cannot see what you are typing. If you are not worried "
23808 "about Tempest attacks and there is no one else in the room you can specify "
23809 "this flag to see what you are typing."
23813 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
23814 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
23815 #: ../tools/virt-win-reg.pl:144
23817 "Specify the format of disk images given on the command line. If this is "
23818 "omitted then the format is autodetected from the content of the disk image."
23822 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
23823 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
23824 #: ../tools/virt-win-reg.pl:148
23826 "If disk images are requested from libvirt, then this program asks libvirt "
23827 "for this information. In this case, the value of the format parameter is "
23832 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:397
23833 #: ../resize/virt-resize.pod:489 ../sparsify/virt-sparsify.pod:144
23834 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
23835 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
23837 "If working with untrusted raw-format guest disk images, you should ensure "
23838 "the format is always specified."
23842 #: ../inspector/virt-inspector.pod:135
23844 #| msgid "B<--parts>"
23845 msgid "B<--xpath> query"
23846 msgstr "B<--parts>"
23849 #: ../inspector/virt-inspector.pod:137
23851 "Perform an XPath query on the XML on stdin, and print the result on stdout. "
23852 "In this mode virt-inspector simply runs an XPath query; all other inspection "
23853 "functions are disabled. See L</XPATH QUERIES> below for some examples."
23857 #: ../inspector/virt-inspector.pod:146
23858 msgid "Previous versions of virt-inspector allowed you to write either:"
23862 #: ../inspector/virt-inspector.pod:152
23865 " virt-inspector guestname\n"
23870 #: ../inspector/virt-inspector.pod:160
23875 #: ../inspector/virt-inspector.pod:162
23877 "The virt-inspector XML is described precisely in a RELAX NG schema file "
23878 "C<virt-inspector.rng> which is supplied with libguestfs. This section is "
23879 "just an overview."
23883 #: ../inspector/virt-inspector.pod:166
23885 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
23886 "more E<lt>operatingsystemE<gt> elements. You would only see more than one "
23887 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
23888 "which is vanishingly rare in real world VMs."
23892 #: ../inspector/virt-inspector.pod:171
23893 msgid "E<lt>operatingsystemE<gt>"
23897 #: ../inspector/virt-inspector.pod:173
23899 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
23900 "describe the operating system, its architecture, the descriptive \"product "
23901 "name\" string, the type of OS and so on, as in this example:"
23905 #: ../inspector/virt-inspector.pod:177
23908 " <operatingsystems>\n"
23909 " <operatingsystem>\n"
23910 " <root>/dev/sda2</root>\n"
23911 " <name>windows</name>\n"
23912 " <arch>i386</arch>\n"
23913 " <distro>windows</distro>\n"
23914 " <product_name>Windows 7 Enterprise</product_name>\n"
23915 " <product_variant>Client</product_variant>\n"
23916 " <major_version>6</major_version>\n"
23917 " <minor_version>1</minor_version>\n"
23918 " <windows_systemroot>/Windows</windows_systemroot>\n"
23919 " <format>installed</format>\n"
23924 #: ../inspector/virt-inspector.pod:190
23926 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
23927 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
23928 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
23929 "architecture. The other fields are fairly self-explanatory, but because "
23930 "these fields are taken directly from the libguestfs inspection API you can "
23931 "find precise information from L<guestfs(3)/INSPECTION>."
23935 #: ../inspector/virt-inspector.pod:198
23937 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
23938 "of view of libguestfs (block devices may have completely different names "
23939 "inside the VM itself)."
23943 #: ../inspector/virt-inspector.pod:202
23944 msgid "E<lt>mountpointsE<gt>"
23948 #: ../inspector/virt-inspector.pod:204
23950 "Un*x-like guests typically have multiple filesystems which are mounted at "
23951 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
23952 "element which looks like this:"
23956 #: ../inspector/virt-inspector.pod:208
23959 " <operatingsystems>\n"
23960 " <operatingsystem>\n"
23963 " <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
23964 " <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
23965 " </mountpoints>\n"
23970 #: ../inspector/virt-inspector.pod:216
23972 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
23973 "and may have completely different names inside the guest. Only mountable "
23974 "filesystems appear in this list, not things like swap devices."
23978 #: ../inspector/virt-inspector.pod:221
23979 msgid "E<lt>filesystemsE<gt>"
23983 #: ../inspector/virt-inspector.pod:223
23985 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
23986 "filesystems belonging to the guest, including swap and empty partitions. "
23987 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
23988 "this OS or shared with this OS and other OSes)."
23992 #: ../inspector/virt-inspector.pod:229
23993 msgid "You might see something like this:"
23997 #: ../inspector/virt-inspector.pod:231
24000 " <operatingsystems>\n"
24001 " <operatingsystem>\n"
24004 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
24005 " <type>ext4</type>\n"
24006 " <label>Fedora-13-x86_64</label>\n"
24007 " <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
24013 #: ../inspector/virt-inspector.pod:241
24015 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
24016 "the label, and the UUID."
24020 #: ../inspector/virt-inspector.pod:244
24021 msgid "E<lt>applicationsE<gt>"
24025 #: ../inspector/virt-inspector.pod:246
24027 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
24028 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
24033 #: ../inspector/virt-inspector.pod:250
24035 "E<lt>package_formatE<gt>, if present, describes the packaging system used. "
24036 "Typical values would be C<rpm> and C<deb>."
24040 #: ../inspector/virt-inspector.pod:253
24042 "E<lt>package_managementE<gt>, if present, describes the package manager. "
24043 "Typical values include C<yum>, C<up2date> and C<apt>"
24047 #: ../inspector/virt-inspector.pod:256
24048 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
24052 #: ../inspector/virt-inspector.pod:259
24055 " <operatingsystems>\n"
24056 " <operatingsystem>\n"
24058 " <applications>\n"
24060 " <name>coreutils</name>\n"
24061 " <version>8.5</version>\n"
24062 " <release>1</release>\n"
24063 " </application>\n"
24068 #: ../inspector/virt-inspector.pod:269
24070 "The version and release fields may not be available for some types guests. "
24071 "Other fields are possible, see L<guestfs(3)/"
24072 "guestfs_inspect_list_applications>."
24076 #: ../inspector/virt-inspector.pod:273
24077 msgid "E<lt>drive_mappingsE<gt>"
24081 #: ../inspector/virt-inspector.pod:275
24083 "For operating systems like Windows which use drive letters, virt-inspector "
24084 "is able to find out how drive letters map to filesystems."
24088 #: ../inspector/virt-inspector.pod:279
24091 " <operatingsystems>\n"
24092 " <operatingsystem>\n"
24094 " <drive_mappings>\n"
24095 " <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
24096 " <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
24097 " </drive_mappings>\n"
24102 #: ../inspector/virt-inspector.pod:287
24104 "In the example above, drive C maps to the filesystem on the second partition "
24105 "on the first disk, and drive E maps to the filesystem on the first partition "
24106 "on the second disk."
24110 #: ../inspector/virt-inspector.pod:291
24112 "Note that this only covers permanent local filesystem mappings, not things "
24113 "like network shares. Furthermore NTFS volume mount points may not be listed "
24118 #: ../inspector/virt-inspector.pod:295
24119 msgid "E<lt>iconE<gt>"
24123 #: ../inspector/virt-inspector.pod:297
24125 "Virt-inspector is sometimes able to extract an icon or logo for the guest. "
24126 "The icon is returned as base64-encoded PNG data. Note that the icon can be "
24127 "very large and high quality."
24131 #: ../inspector/virt-inspector.pod:301
24134 " <operatingsystems>\n"
24135 " <operatingsystem>\n"
24138 " iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
24139 " [... many lines of base64 data ...]\n"
24145 #: ../inspector/virt-inspector.pod:309
24147 "To display the icon, you have to extract it and convert the base64 data back "
24148 "to a binary file. Use an XPath query or simply an editor to extract the "
24149 "data, then use the coreutils L<base64(1)> program to do the conversion back "
24154 #: ../inspector/virt-inspector.pod:314
24157 " base64 -i -d < icon.data > icon.png\n"
24162 #: ../inspector/virt-inspector.pod:316
24163 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
24167 #: ../inspector/virt-inspector.pod:318
24169 "Virt-inspector can detect some operating system installers on install disks, "
24170 "live CDs, bootable USB keys and more."
24174 #: ../inspector/virt-inspector.pod:321
24176 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
24177 "fields may be present to indicate a live CD, network installer, or one part "
24178 "of a multipart CD. For example:"
24182 #: ../inspector/virt-inspector.pod:325
24185 " <operatingsystems>\n"
24186 " <operatingsystem>\n"
24187 " <root>/dev/sda</root>\n"
24188 " <name>linux</name>\n"
24189 " <arch>i386</arch>\n"
24190 " <distro>ubuntu</distro>\n"
24191 " <product_name>Ubuntu 10.10 "Maverick Meerkat"</product_name>\n"
24192 " <major_version>10</major_version>\n"
24193 " <minor_version>10</minor_version>\n"
24194 " <format>installer</format>\n"
24200 #: ../inspector/virt-inspector.pod:337
24201 msgid "XPATH QUERIES"
24205 #: ../inspector/virt-inspector.pod:339
24207 "Virt-inspector includes built in support for running XPath queries. The "
24208 "reason for including XPath support directly in virt-inspector is simply that "
24209 "there are no good and widely available command line programs that can do "
24210 "XPath queries. The only good one is L<xmlstarlet(1)> and that is not "
24211 "available on Red Hat Enterprise Linux."
24215 #: ../inspector/virt-inspector.pod:346
24217 "To perform an XPath query, use the I<--xpath> option. Note that in this "
24218 "mode, virt-inspector simply reads XML from stdin and outputs the query "
24219 "result on stdout. All other inspection features are disabled in this mode."
24223 #: ../inspector/virt-inspector.pod:353
24226 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
24228 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
24229 " <type>ext4</type>\n"
24235 #: ../inspector/virt-inspector.pod:359
24238 " $ virt-inspector -d Guest | \\\n"
24239 " virt-inspector --xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
24245 #: ../inspector/virt-inspector.pod:363
24248 " $ virt-inspector -d Guest | \\\n"
24249 " virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
24250 " [displays the guest icon, if there is one]\n"
24255 #: ../inspector/virt-inspector.pod:374
24256 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
24260 #: ../inspector/virt-inspector.pod:376
24262 "Early versions of libguestfs shipped with a different virt-inspector program "
24263 "written in Perl (the current version is written in C). The XML output of "
24264 "the Perl virt-inspector was different and it could also output in other "
24265 "formats like text."
24269 #: ../inspector/virt-inspector.pod:381
24271 "The old virt-inspector is no longer supported or shipped with libguestfs."
24275 #: ../inspector/virt-inspector.pod:384
24277 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
24278 "versions of virt-inspector with different names:"
24282 #: ../inspector/virt-inspector.pod:387
24285 " virt-inspector Old Perl version.\n"
24286 " virt-inspector2 New C version.\n"
24291 #: ../inspector/virt-inspector.pod:397
24293 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
24294 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
24298 #: ../inspector/virt-inspector.pod:414
24299 msgid "Matthew Booth L<mbooth@redhat.com>"
24303 #: ../java/examples/guestfs-java.pod:5
24304 msgid "guestfs-java - How to use libguestfs from Java"
24308 #: ../java/examples/guestfs-java.pod:9
24311 " import com.redhat.et.libguestfs.*;\n"
24316 #: ../java/examples/guestfs-java.pod:11
24319 " GuestFS g = new GuestFS ();\n"
24320 " g.add_drive_opts (\"disk.img\", null);\n"
24326 #: ../java/examples/guestfs-java.pod:17
24328 "This manual page documents how to call libguestfs from the Java programming "
24329 "language. This page just documents the differences from the C API and gives "
24330 "some examples. If you are not familiar with using libguestfs, you also need "
24331 "to read L<guestfs(3)>."
24335 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
24336 msgid "CLOSING THE HANDLE"
24340 #: ../java/examples/guestfs-java.pod:24
24342 "The handle is closed when it is reaped by the garbage collector. Because "
24343 "libguestfs handles include a lot of state, it is also possible to close (and "
24344 "hence free) them explicitly by calling the C<close> method."
24348 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
24349 #: ../python/examples/guestfs-python.pod:21
24350 #: ../ruby/examples/guestfs-ruby.pod:22
24355 #: ../java/examples/guestfs-java.pod:31
24357 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
24358 "exception. This has a single parameter which is the error message (a "
24363 #: ../java/examples/guestfs-java.pod:35
24364 msgid "Calling any method on a closed handle raises the same exception."
24368 #: ../java/examples/guestfs-java.pod:47
24370 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
24371 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
24372 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
24376 #: ../ocaml/examples/guestfs-ocaml.pod:5
24377 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
24381 #: ../ocaml/examples/guestfs-ocaml.pod:9
24382 msgid "Module style:"
24386 #: ../ocaml/examples/guestfs-ocaml.pod:11
24389 " let g = Guestfs.create () in\n"
24390 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
24391 " Guestfs.launch g;\n"
24396 #: ../ocaml/examples/guestfs-ocaml.pod:15
24397 msgid "Object-oriented style:"
24401 #: ../ocaml/examples/guestfs-ocaml.pod:17
24404 " let g = new Guestfs.guestfs () in\n"
24405 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
24411 #: ../ocaml/examples/guestfs-ocaml.pod:21
24414 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
24416 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
24421 #: ../ocaml/examples/guestfs-ocaml.pod:27
24423 "This manual page documents how to call libguestfs from the OCaml programming "
24424 "language. This page just documents the differences from the C API and gives "
24425 "some examples. If you are not familiar with using libguestfs, you also need "
24426 "to read L<guestfs(3)>."
24430 #: ../ocaml/examples/guestfs-ocaml.pod:32
24431 msgid "PROGRAMMING STYLES"
24435 #: ../ocaml/examples/guestfs-ocaml.pod:34
24437 "There are two different programming styles supported by the OCaml bindings. "
24438 "You can use a module style, with each C function mapped to an OCaml function:"
24442 #: ../ocaml/examples/guestfs-ocaml.pod:38
24445 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
24450 #: ../ocaml/examples/guestfs-ocaml.pod:40
24455 #: ../ocaml/examples/guestfs-ocaml.pod:42
24458 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
24463 #: ../ocaml/examples/guestfs-ocaml.pod:44
24465 "Alternately you can use an object-oriented style, calling methods on the "
24466 "class C<Guestfs.guestfs>:"
24470 #: ../ocaml/examples/guestfs-ocaml.pod:47
24473 " method set_verbose : bool -> unit\n"
24478 #: ../ocaml/examples/guestfs-ocaml.pod:49
24480 "The object-oriented style is usually briefer, and the minor performance "
24481 "penalty isn't noticable in the general overhead of performing libguestfs "
24486 #: ../ocaml/examples/guestfs-ocaml.pod:55
24488 "The handle is closed when it is reaped by the garbage collector. Because "
24489 "libguestfs handles include a lot of state, it is also possible to close (and "
24490 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
24495 #: ../ocaml/examples/guestfs-ocaml.pod:62
24497 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
24498 "exception. This has a single parameter which is the error message (a "
24503 #: ../ocaml/examples/guestfs-ocaml.pod:66
24505 "Calling any function/method on a closed handle raises C<Guestfs."
24506 "Handle_closed>. The single parameter is the name of the function that you "
24511 #: ../ocaml/examples/guestfs-ocaml.pod:80
24513 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24514 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
24515 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
24519 #: ../perl/examples/guestfs-perl.pod:5
24520 msgid "guestfs-perl - How to use libguestfs from Perl"
24524 #: ../perl/examples/guestfs-perl.pod:9
24527 " use Sys::Guestfs;\n"
24532 #: ../perl/examples/guestfs-perl.pod:11
24535 " my $h = Sys::Guestfs->new ();\n"
24536 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
24537 " $h->launch ();\n"
24538 " $h->mount_options ('', '/dev/sda1', '/');\n"
24539 " $h->touch ('/hello');\n"
24545 #: ../perl/examples/guestfs-perl.pod:20
24547 "This manual page documents how to call libguestfs from the Perl programming "
24548 "language. This page just documents the differences from the C API and gives "
24549 "some examples. If you are not familiar with using libguestfs, you also need "
24550 "to read L<guestfs(3)>. To read the full Perl API, see L<Sys::Guestfs(3)>."
24554 #: ../perl/examples/guestfs-perl.pod:26
24559 #: ../perl/examples/guestfs-perl.pod:28
24561 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
24566 #: ../perl/examples/guestfs-perl.pod:41
24568 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
24569 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
24570 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
24574 #: ../python/examples/guestfs-python.pod:5
24575 msgid "guestfs-python - How to use libguestfs from Python"
24579 #: ../python/examples/guestfs-python.pod:9
24582 #| " guestfs_h *g = guestfs_create ();\n"
24583 #| " guestfs_add_drive_ro (g, \"disk.img\");\n"
24584 #| " guestfs_launch (g);\n"
24587 " import guestfs\n"
24588 " g = guestfs.GuestFS ()\n"
24589 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
24593 " guestfs_h *g = guestfs_create ();\n"
24594 " guestfs_add_drive_ro (g, \"disk.img\");\n"
24595 " guestfs_launch (g);\n"
24599 #: ../python/examples/guestfs-python.pod:16
24601 "This manual page documents how to call libguestfs from the Python "
24602 "programming language. This page just documents the differences from the C "
24603 "API and gives some examples. If you are not familiar with using libguestfs, "
24604 "you also need to read L<guestfs(3)>."
24608 #: ../python/examples/guestfs-python.pod:23
24610 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
24611 "single string argument which is the error message."
24615 #: ../python/examples/guestfs-python.pod:26
24616 msgid "MORE DOCUMENTATION"
24620 #: ../python/examples/guestfs-python.pod:28
24625 #: ../python/examples/guestfs-python.pod:30
24629 " >>> import guestfs\n"
24630 " >>> help (guestfs)\n"
24635 #: ../python/examples/guestfs-python.pod:44
24637 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24638 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
24639 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
24643 #: ../rescue/virt-rescue.pod:5
24644 msgid "virt-rescue - Run a rescue shell on a virtual machine"
24648 #: ../rescue/virt-rescue.pod:9
24651 " virt-rescue [--options] -d domname\n"
24656 #: ../rescue/virt-rescue.pod:11
24659 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
24664 #: ../rescue/virt-rescue.pod:13
24667 #| " virt-filesystems --format=raw -a disk.img\n"
24670 " virt-rescue --suggest (-d domname | -a disk.img ...)\n"
24673 " virt-filesystems --format=raw -a диск.img\n"
24677 #: ../rescue/virt-rescue.pod:17
24680 " virt-rescue [--options] domname\n"
24685 #: ../rescue/virt-rescue.pod:19
24688 " virt-rescue [--options] disk.img [disk.img ...]\n"
24693 #: ../rescue/virt-rescue.pod:23
24695 "You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
24696 "probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
24697 "you from doing this, but doesn't catch all cases."
24701 #: ../rescue/virt-rescue.pod:27
24703 "However if you use the I<--ro> (read only) option, then you can attach a "
24704 "shell to a live virtual machine. The results might be strange or "
24705 "inconsistent at times but you won't get disk corruption."
24709 #: ../rescue/virt-rescue.pod:33
24711 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
24712 "need for a CD. virt-rescue gives you a rescue shell and some simple "
24713 "recovery tools which you can use to examine or rescue a virtual machine or "
24718 #: ../rescue/virt-rescue.pod:38
24720 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
24721 "on disk image(s):"
24725 #: ../rescue/virt-rescue.pod:41
24728 " virt-rescue -d GuestName\n"
24733 #: ../rescue/virt-rescue.pod:43
24736 " virt-rescue --ro -a /path/to/disk.img\n"
24741 #: ../rescue/virt-rescue.pod:45
24744 " virt-rescue -a /dev/sdc\n"
24749 #: ../rescue/virt-rescue.pod:47
24750 msgid "For live VMs you I<must> use the --ro option."
24754 #: ../rescue/virt-rescue.pod:49
24756 "When you run virt-rescue on a virtual machine or disk image, you are placed "
24757 "in an interactive bash shell where you can use many ordinary Linux "
24758 "commands. What you see in C</> (C</bin>, C</lib> etc) is the rescue "
24759 "appliance. You must mount the virtual machine's filesystems by hand. There "
24760 "is an empty directory called C</sysroot> where you can mount filesystems."
24764 #: ../rescue/virt-rescue.pod:56
24766 "You can get virt-rescue to suggest mount commands for you by using the I<--"
24767 "suggest> option (in another terminal):"
24771 #: ../rescue/virt-rescue.pod:59
24774 " $ virt-rescue --suggest -d Fedora15\n"
24775 " Inspecting the virtual machine or disk image ...\n"
24780 #: ../rescue/virt-rescue.pod:62
24783 " This disk contains one or more operating systems. You can use these\n"
24784 " mount commands in virt-rescue (at the ><rescue> prompt) to mount the\n"
24790 #: ../rescue/virt-rescue.pod:66
24793 " # /dev/vg_f15x32/lv_root is the root of a linux operating system\n"
24794 " # type: linux, distro: fedora, version: 15.0\n"
24795 " # Fedora release 15 (Lovelock)\n"
24800 #: ../rescue/virt-rescue.pod:70
24803 " mount /dev/vg_f15x32/lv_root /sysroot/\n"
24804 " mount /dev/vda1 /sysroot/boot\n"
24805 " mount --bind /dev /sysroot/dev\n"
24806 " mount --bind /dev/pts /sysroot/dev/pts\n"
24807 " mount --bind /proc /sysroot/proc\n"
24808 " mount --bind /sys /sysroot/sys\n"
24813 #: ../rescue/virt-rescue.pod:77
24815 "Another way is to list the logical volumes (with L<lvs(8)>) and partitions "
24816 "(with L<parted(8)>) and mount them by hand:"
24820 #: ../rescue/virt-rescue.pod:80
24824 " LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
24825 " lv_root vg_f15x32 -wi-a- 8.83G\n"
24826 " lv_swap vg_f15x32 -wi-a- 992.00M\n"
24827 " ><rescue> mount /dev/vg_f15x32/lv_root /sysroot\n"
24828 " ><rescue> mount /dev/vda1 /sysroot/boot\n"
24829 " ><rescue> ls /sysroot\n"
24834 #: ../rescue/virt-rescue.pod:88
24836 "Another command to list available filesystems is L<virt-filesystems(1)>."
24840 #: ../rescue/virt-rescue.pod:91
24842 "To run commands in a Linux guest (for example, grub), you should chroot into "
24843 "the /sysroot directory first:"
24847 #: ../rescue/virt-rescue.pod:94
24850 " ><rescue> chroot /sysroot\n"
24855 #: ../rescue/virt-rescue.pod:98
24857 "Virt-rescue can be used on I<any> disk image file or device, not just a "
24858 "virtual machine. For example you can use it on a blank file if you want to "
24859 "partition that file (although we would recommend using L<guestfish(1)> "
24860 "instead as it is more suitable for this purpose). You can even use virt-"
24861 "rescue on things like SD cards."
24865 #: ../rescue/virt-rescue.pod:104
24867 "Virt-rescue does not require root. You only need to run it as root if you "
24868 "need root to open the disk image."
24872 #: ../rescue/virt-rescue.pod:107
24874 "This tool is just designed for quick interactive hacking on a virtual "
24875 "machine. For more structured access to a virtual machine disk image, you "
24876 "should use L<guestfs(3)>. To get a structured shell that you can use to "
24877 "make scripted changes to guests, use L<guestfish(1)>."
24881 #: ../rescue/virt-rescue.pod:131
24882 msgid "B<--append kernelopts>"
24883 msgstr "B<--append параметри_ядра>"
24886 #: ../rescue/virt-rescue.pod:133
24887 msgid "Pass additional options to the rescue kernel."
24891 #: ../rescue/virt-rescue.pod:163
24894 " virt-rescue --format=raw -a disk.img\n"
24899 #: ../rescue/virt-rescue.pod:167
24902 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
24907 #: ../rescue/virt-rescue.pod:176
24912 #: ../rescue/virt-rescue.pod:178
24913 msgid "B<--memsize MB>"
24914 msgstr "B<--memsize МБ>"
24917 #: ../rescue/virt-rescue.pod:180
24919 "Change the amount of memory allocated to the rescue system. The default is "
24920 "set by libguestfs and is small but adequate for running system tools. The "
24921 "occasional program might need more memory. The parameter is specified in "
24926 #: ../rescue/virt-rescue.pod:185
24927 msgid "B<--network>"
24928 msgstr "B<--network>"
24931 #: ../rescue/virt-rescue.pod:187
24932 msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
24936 #: ../rescue/virt-rescue.pod:193
24937 msgid "Open the image read-only."
24941 #: ../rescue/virt-rescue.pod:203
24943 "Enable SELinux in the rescue appliance. You should read L<guestfs(3)/"
24944 "SELINUX> before using this option."
24948 #: ../rescue/virt-rescue.pod:206
24953 #: ../rescue/virt-rescue.pod:208
24954 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
24958 #: ../rescue/virt-rescue.pod:210
24960 #| msgid "B<--quiet>"
24961 msgid "B<--suggest>"
24962 msgstr "B<--quiet>"
24965 #: ../rescue/virt-rescue.pod:212
24967 "Inspect the disk image and suggest what mount commands should be used to "
24968 "mount the disks. You should use the I<--suggest> option in a second "
24969 "terminal, then paste the commands into another virt-rescue."
24973 #: ../rescue/virt-rescue.pod:216
24975 "This option implies I<--ro> and is safe to use even if the guest is up or if "
24976 "another virt-rescue is running."
24980 #: ../rescue/virt-rescue.pod:235
24982 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
24983 "are done read-write."
24987 #: ../rescue/virt-rescue.pod:248
24988 msgid "Previous versions of virt-rescue allowed you to write either:"
24992 #: ../rescue/virt-rescue.pod:250
24995 " virt-rescue disk.img [disk.img ...]\n"
25000 #: ../rescue/virt-rescue.pod:254
25003 " virt-rescue guestname\n"
25008 #: ../rescue/virt-rescue.pod:262
25013 #: ../rescue/virt-rescue.pod:264
25015 "Adding the I<--network> option enables QEMU user networking in the rescue "
25016 "appliance. There are some differences between user networking and ordinary "
25021 #: ../rescue/virt-rescue.pod:270
25022 msgid "ping does not work"
25026 #: ../rescue/virt-rescue.pod:272
25028 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
25029 "send the ping packets, and because virt-rescue must be able to run as non-"
25030 "root, QEMU user networking is not able to emulate the L<ping(8)> command. "
25031 "The ping command will appear to resolve addresses but will not be able to "
25032 "send or receive any packets. This does not mean that the network is not "
25037 #: ../rescue/virt-rescue.pod:279
25038 msgid "cannot receive connections"
25042 #: ../rescue/virt-rescue.pod:281
25043 msgid "QEMU user networking cannot receive incoming connections."
25047 #: ../rescue/virt-rescue.pod:283
25048 msgid "making TCP connections"
25052 #: ../rescue/virt-rescue.pod:285
25054 "The virt-rescue appliance needs to be small and so does not include many "
25055 "network tools. In particular there is no L<telnet(1)> command. You can "
25056 "make TCP connections from the shell using the magical C</dev/tcp/"
25057 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
25061 #: ../rescue/virt-rescue.pod:290
25064 " exec 3<>/dev/tcp/redhat.com/80\n"
25065 " echo \"GET /\" >&3\n"
25071 #: ../rescue/virt-rescue.pod:294
25072 msgid "See L<bash(1)> for more details."
25076 #: ../rescue/virt-rescue.pod:300
25078 "Several environment variables affect virt-rescue. See L<guestfs(3)/"
25079 "ENVIRONMENT VARIABLES> for the complete list."
25083 #: ../rescue/virt-rescue.pod:327
25086 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
25087 #| "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
25089 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
25090 "filesystems(1)>, L<http://libguestfs.org/>."
25092 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
25093 "tar-out(1)>, L<http://libguestfs.org/>."
25096 #: ../resize/virt-resize.pod:5
25097 msgid "virt-resize - Resize a virtual machine disk"
25101 #: ../resize/virt-resize.pod:9
25104 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
25105 " [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
25106 " [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
25111 #: ../resize/virt-resize.pod:15
25113 "Virt-resize is a tool which can resize a virtual machine disk, making it "
25114 "larger or smaller overall, and resizing or deleting any partitions contained "
25119 #: ../resize/virt-resize.pod:19
25121 "Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
25122 "not> be used on live virtual machines - for consistent results, shut the "
25123 "virtual machine down before resizing it."
25127 #: ../resize/virt-resize.pod:23
25129 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
25130 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
25134 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:603
25135 #: ../sparsify/virt-sparsify.pod:227 ../src/guestfs.pod:484
25136 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
25141 #: ../resize/virt-resize.pod:33
25143 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
25144 "fill the extra 5GB of space."
25148 #: ../resize/virt-resize.pod:36
25151 " virt-filesystems --long -h --all -a olddisk\n"
25156 #: ../resize/virt-resize.pod:38
25159 " truncate -r olddisk newdisk\n"
25160 " truncate -s +5G newdisk\n"
25165 #: ../resize/virt-resize.pod:41
25168 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
25169 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
25174 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:610
25175 #: ../sparsify/virt-sparsify.pod:234 ../src/guestfs.pod:490
25176 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
25181 #: ../resize/virt-resize.pod:46
25183 "As above, but make the /boot partition 200MB bigger, while giving the "
25184 "remaining space to /dev/sda2:"
25188 #: ../resize/virt-resize.pod:49
25191 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
25192 " olddisk newdisk\n"
25197 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:616
25198 #: ../sparsify/virt-sparsify.pod:240 ../src/guestfs.pod:501
25199 #: ../src/guestfs.pod:1451
25204 #: ../resize/virt-resize.pod:54
25206 "As in the first example, but expand a logical volume as the final step. "
25207 "This is what you would typically use for Linux guests that use LVM:"
25211 #: ../resize/virt-resize.pod:58
25214 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
25215 " olddisk newdisk\n"
25220 #: ../resize/virt-resize.pod:61
25225 #: ../resize/virt-resize.pod:63
25227 "As in the first example, but the output format will be qcow2 instead of a "
25232 #: ../resize/virt-resize.pod:66
25235 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
25236 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
25241 #: ../resize/virt-resize.pod:71
25242 msgid "DETAILED USAGE"
25243 msgstr "ДОКЛАДНІШЕ ЩОДО ВИКОРИСТАННЯ"
25246 #: ../resize/virt-resize.pod:73
25247 msgid "EXPANDING A VIRTUAL MACHINE DISK"
25248 msgstr "РОЗШИРЕННЯ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
25251 #: ../resize/virt-resize.pod:77
25252 msgid "1. Shut down the virtual machine"
25256 #: ../resize/virt-resize.pod:79
25257 msgid "2. Locate input disk image"
25261 #: ../resize/virt-resize.pod:81
25263 "Locate the input disk image (ie. the file or device on the host containing "
25264 "the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
25265 "dumpxml> like this to find the disk image name:"
25269 #: ../resize/virt-resize.pod:85
25272 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
25273 " Found 1 nodes:\n"
25275 " <source dev=\"/dev/vg/lv_guest\" />\n"
25280 #: ../resize/virt-resize.pod:90
25281 msgid "3. Look at current sizing"
25285 #: ../resize/virt-resize.pod:92
25286 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
25290 #: ../resize/virt-resize.pod:95
25293 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
25294 " Name Type Size Parent\n"
25295 " /dev/sda1 partition 101M /dev/sda\n"
25296 " /dev/sda2 partition 7.9G /dev/sda\n"
25297 " /dev/sda device 8.0G -\n"
25302 #: ../resize/virt-resize.pod:101
25304 "(This example is a virtual machine with an 8 GB disk which we would like to "
25305 "expand up to 10 GB)."
25309 #: ../resize/virt-resize.pod:104
25310 msgid "4. Create output disk"
25314 #: ../resize/virt-resize.pod:106
25316 "Virt-resize cannot do in-place disk modifications. You have to have space "
25317 "to store the resized output disk."
25321 #: ../resize/virt-resize.pod:109
25323 "To store the resized disk image in a file, create a file of a suitable size:"
25327 #: ../resize/virt-resize.pod:112
25330 " # rm -f outdisk\n"
25331 " # truncate -s 10G outdisk\n"
25336 #: ../resize/virt-resize.pod:115
25337 msgid "Or use L<lvcreate(1)> to create a logical volume:"
25341 #: ../resize/virt-resize.pod:117
25344 " # lvcreate -L 10G -n lv_name vg_name\n"
25349 #: ../resize/virt-resize.pod:119
25350 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
25354 #: ../resize/virt-resize.pod:121
25357 " # virsh pool-list\n"
25358 " # virsh vol-create-as poolname newvol 10G\n"
25363 #: ../resize/virt-resize.pod:124
25365 msgstr "5. Зміна розміру"
25368 #: ../resize/virt-resize.pod:126
25370 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
25371 "file) and the output disk. The output disk is the one created in the "
25376 #: ../resize/virt-resize.pod:130
25379 " # virt-resize indisk outdisk\n"
25384 #: ../resize/virt-resize.pod:132
25386 "This command just copies disk image C<indisk> to disk image C<outdisk> "
25387 "I<without> resizing or changing any existing partitions. If C<outdisk> is "
25388 "larger, then an extra, empty partition is created at the end of the disk "
25389 "covering the extra space. If C<outdisk> is smaller, then it will give an "
25394 #: ../resize/virt-resize.pod:138
25396 "More realistically you'd want to expand existing partitions in the disk "
25397 "image by passing extra options (for the full list see the L</OPTIONS> "
25402 #: ../resize/virt-resize.pod:142
25404 "L</--expand> is the most useful option. It expands the named partition "
25405 "within the disk to fill any extra space:"
25409 #: ../resize/virt-resize.pod:145
25412 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
25417 #: ../resize/virt-resize.pod:147
25419 "(In this case, an extra partition is I<not> created at the end of the disk, "
25420 "because there will be no unused space)."
25424 #: ../resize/virt-resize.pod:150
25426 "L</--resize> is the other commonly used option. The following would "
25427 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
25428 "rest of the available space:"
25432 #: ../resize/virt-resize.pod:154
25435 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
25436 " indisk outdisk\n"
25441 #: ../resize/virt-resize.pod:157
25443 "If the expanded partition in the image contains a filesystem or LVM PV, then "
25444 "if virt-resize knows how, it will resize the contents, the equivalent of "
25445 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
25446 "or L<btrfs(8)>. However virt-resize does not know how to resize some "
25447 "filesystems, so you would have to online resize them after booting the guest."
25451 #: ../resize/virt-resize.pod:164
25452 msgid "Other options are covered below."
25456 #: ../resize/virt-resize.pod:166
25458 msgstr "6. Перевірка"
25461 #: ../resize/virt-resize.pod:168
25462 msgid "Thoroughly test the new disk image I<before> discarding the old one."
25466 #: ../resize/virt-resize.pod:170
25467 msgid "If you are using libvirt, edit the XML to point at the new disk:"
25471 #: ../resize/virt-resize.pod:172
25474 " # virsh edit guestname\n"
25479 #: ../resize/virt-resize.pod:174
25481 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
25482 "html#elementsDisks>"
25486 #: ../resize/virt-resize.pod:177
25487 msgid "Then start up the domain with the new, resized disk:"
25491 #: ../resize/virt-resize.pod:179
25494 " # virsh start guestname\n"
25499 #: ../resize/virt-resize.pod:181
25501 "and check that it still works. See also the L</NOTES> section below for "
25502 "additional information."
25506 #: ../resize/virt-resize.pod:184
25507 msgid "7. Resize LVs etc inside the guest"
25511 #: ../resize/virt-resize.pod:186
25512 msgid "(This can also be done offline using L<guestfish(1)>)"
25516 #: ../resize/virt-resize.pod:188
25518 "Once the guest has booted you should see the new space available, at least "
25519 "for filesystems that virt-resize knows how to resize, and for PVs. The user "
25520 "may need to resize LVs inside PVs, and also resize filesystem types that "
25521 "virt-resize does not know how to expand."
25525 #: ../resize/virt-resize.pod:195
25526 msgid "SHRINKING A VIRTUAL MACHINE DISK"
25530 #: ../resize/virt-resize.pod:197
25532 "Shrinking is somewhat more complex than expanding, and only an overview is "
25537 #: ../resize/virt-resize.pod:200
25539 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
25540 "filesystems). The user has to shrink content before passing the disk image "
25541 "to virt-resize, and virt-resize will check that the content has been shrunk "
25546 #: ../resize/virt-resize.pod:205
25547 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
25551 #: ../resize/virt-resize.pod:207
25553 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
25554 "steps 3 and 4 above to allocate a new disk image."
25558 #: ../resize/virt-resize.pod:210
25560 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
25564 #: ../resize/virt-resize.pod:213
25565 msgid "IGNORING OR DELETING PARTITIONS"
25569 #: ../resize/virt-resize.pod:215
25571 "virt-resize also gives a convenient way to ignore or delete partitions when "
25572 "copying from the input disk to the output disk. Ignoring a partition speeds "
25573 "up the copy where you don't care about the existing contents of a "
25574 "partition. Deleting a partition removes it completely, but note that it "
25575 "also renumbers any partitions after the one which is deleted, which can "
25576 "leave some guests unbootable."
25580 #: ../resize/virt-resize.pod:222
25581 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
25585 #: ../resize/virt-resize.pod:224
25587 "If the input disk is in qcow2 format, then you may prefer that the output is "
25588 "in qcow2 format as well. Alternately, virt-resize can convert the format on "
25589 "the fly. The output format is simply determined by the format of the empty "
25590 "output container that you provide. Thus to create qcow2 output, use:"
25594 #: ../resize/virt-resize.pod:230
25597 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
25602 #: ../resize/virt-resize.pod:232
25603 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
25607 #: ../resize/virt-resize.pod:234
25608 msgid "Similarly, to get non-sparse raw output use:"
25612 #: ../resize/virt-resize.pod:236
25615 " fallocate -l size outdisk\n"
25620 #: ../resize/virt-resize.pod:238
25622 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
25623 "dev/zero of=outdisk bs=1M count=..>)"
25627 #: ../resize/virt-resize.pod:241
25628 msgid "LOGICAL PARTITIONS"
25632 #: ../resize/virt-resize.pod:243
25634 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
25635 "tables) cannot be resized."
25639 #: ../resize/virt-resize.pod:246
25641 "To understand what is going on, firstly one of the four partitions C</dev/"
25642 "sda1-4> will have MBR partition type C<05> or C<0f>. This is called the "
25643 "B<extended partition>. Use L<virt-filesystems(1)> to see the MBR partition "
25648 #: ../resize/virt-resize.pod:251
25649 msgid "Logical partitions live inside the extended partition."
25653 #: ../resize/virt-resize.pod:253
25655 "The extended partition can be expanded, but not shrunk (unless you force it, "
25656 "which is not advisable). When the extended partition is copied across, all "
25657 "the logical partitions contained inside are copied over implicitly. Virt-"
25658 "resize does not look inside the extended partition, so it copies the logical "
25659 "partitions blindly."
25663 #: ../resize/virt-resize.pod:259
25665 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
25666 "line. Doing so will give an error."
25670 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
25671 msgid "Display help."
25675 #: ../resize/virt-resize.pod:270
25676 msgid "B<--align-first auto>"
25680 #: ../resize/virt-resize.pod:272
25681 msgid "B<--align-first never>"
25685 #: ../resize/virt-resize.pod:274
25686 msgid "B<--align-first always>"
25690 #: ../resize/virt-resize.pod:276
25692 "Align the first partition for improved performance (see also the I<--"
25693 "alignment> option)."
25697 #: ../resize/virt-resize.pod:279
25699 "The default is I<--align-first auto> which only aligns the first partition "
25700 "if it is safe to do so. That is, only when we know how to fix the "
25701 "bootloader automatically, and at the moment that can only be done for "
25706 #: ../resize/virt-resize.pod:284
25708 "I<--align-first never> means we never move the first partition. This is the "
25709 "safest option. Try this if the guest does not boot after resizing."
25713 #: ../resize/virt-resize.pod:288
25715 "I<--align-first always> means we always align the first partition (if it "
25716 "needs to be aligned). For some guests this will break the bootloader, "
25717 "making the guest unbootable."
25721 #: ../resize/virt-resize.pod:292
25722 msgid "B<--alignment N>"
25726 #: ../resize/virt-resize.pod:294
25728 "Set the alignment of partitions to C<N> sectors. The default in virt-resize "
25729 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
25733 #: ../resize/virt-resize.pod:298
25735 "Assuming 512 byte sector size inside the guest, here are some suitable "
25740 #: ../resize/virt-resize.pod:303
25741 msgid "I<--alignment 1> (512 bytes)"
25745 #: ../resize/virt-resize.pod:305
25747 "The partitions would be packed together as closely as possible, but would be "
25748 "completely unaligned. In some cases this can cause very poor performance. "
25749 "See L<virt-alignment-scan(1)> for further details."
25753 #: ../resize/virt-resize.pod:309
25754 msgid "I<--alignment 8> (4K)"
25758 #: ../resize/virt-resize.pod:311
25760 "This would be the minimum acceptable alignment for reasonable performance on "
25765 #: ../resize/virt-resize.pod:314
25766 msgid "I<--alignment 128> (64K)"
25770 #: ../resize/virt-resize.pod:316
25772 "This alignment provides good performance when the host is using high end "
25777 #: ../resize/virt-resize.pod:319
25778 msgid "I<--alignment 2048> (1M)"
25782 #: ../resize/virt-resize.pod:321
25784 "This is the standard alignment used by all newly installed guests since "
25789 #: ../resize/virt-resize.pod:326
25794 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
25795 #: ../tools/virt-win-reg.pl:120
25797 msgstr "B<--debug>"
25800 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
25801 msgid "Enable debugging messages."
25805 #: ../resize/virt-resize.pod:332 ../sparsify/virt-sparsify.pod:131
25807 #| msgid "B<--debug>"
25808 msgid "B<--debug-gc>"
25809 msgstr "B<--debug>"
25812 #: ../resize/virt-resize.pod:334
25814 "Debug garbage collection and memory allocation. This is only useful when "
25815 "debugging memory problems in virt-resize or the OCaml libguestfs bindings."
25819 #: ../resize/virt-resize.pod:338
25820 msgid "B<--delete part>"
25821 msgstr "B<--delete розділ>"
25824 #: ../resize/virt-resize.pod:340
25826 "Delete the named partition. It would be more accurate to describe this as "
25827 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
25828 "the original disk image is left intact."
25832 #: ../resize/virt-resize.pod:344
25834 "Note that when you delete a partition, then anything contained in the "
25835 "partition is also deleted. Furthermore, this causes any partitions that "
25836 "come after to be I<renumbered>, which can easily make your guest unbootable."
25840 #: ../resize/virt-resize.pod:349 ../resize/virt-resize.pod:410
25841 #: ../resize/virt-resize.pod:537 ../sparsify/virt-sparsify.pod:157
25842 msgid "You can give this option multiple times."
25846 #: ../resize/virt-resize.pod:351
25847 msgid "B<--expand part>"
25848 msgstr "B<--expand розділ>"
25851 #: ../resize/virt-resize.pod:353
25853 "Expand the named partition so it uses up all extra space (space left over "
25854 "after any other resize changes that you request have been done)."
25858 #: ../resize/virt-resize.pod:356
25860 "If virt-resize knows how, it will expand the direct content of the "
25861 "partition. For example, if the partition is an LVM PV, it will expand the "
25862 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
25863 "content it doesn't know about alone."
25867 #: ../resize/virt-resize.pod:361
25868 msgid "Currently virt-resize can resize:"
25872 #: ../resize/virt-resize.pod:367
25873 msgid "ext2, ext3 and ext4 filesystems."
25877 #: ../resize/virt-resize.pod:371
25878 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
25882 #: ../resize/virt-resize.pod:373
25884 "The filesystem must have been shut down consistently last time it was used. "
25885 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
25886 "consistency check, so at the first boot after resizing Windows will check "
25891 #: ../resize/virt-resize.pod:380
25893 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
25894 "inside the PV, but see the I<--LV-expand> option. The user could also "
25895 "resize LVs as desired after boot."
25899 #: ../resize/virt-resize.pod:386
25900 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
25904 #: ../resize/virt-resize.pod:390 ../resize/virt-resize.pod:565
25905 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
25909 #: ../resize/virt-resize.pod:392 ../sparsify/virt-sparsify.pod:137
25910 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
25911 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
25912 msgid "B<--format> raw"
25913 msgstr "B<--format> raw"
25916 #: ../resize/virt-resize.pod:394 ../sparsify/virt-sparsify.pod:141
25918 "Specify the format of the input disk image. If this flag is not given then "
25919 "it is auto-detected from the image itself."
25923 #: ../resize/virt-resize.pod:400
25925 "Note that this option I<does not> affect the output format. See L</QCOW2 "
25926 "AND NON-SPARSE RAW FORMATS>."
25930 #: ../resize/virt-resize.pod:403
25931 msgid "B<--ignore part>"
25932 msgstr "B<--ignore розділ>"
25935 #: ../resize/virt-resize.pod:405
25937 "Ignore the named partition. Effectively this means the partition is "
25938 "allocated on the destination disk, but the content is not copied across from "
25939 "the source disk. The content of the partition will be blank (all zero "
25944 #: ../resize/virt-resize.pod:412
25945 msgid "B<--LV-expand logvol>"
25946 msgstr "B<--LV-expand логічний_том>"
25949 #: ../resize/virt-resize.pod:414
25951 "This takes the logical volume and, as a final step, expands it to fill all "
25952 "the space available in its volume group. A typical usage, assuming a Linux "
25953 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
25954 "lv_root> would be:"
25958 #: ../resize/virt-resize.pod:419
25961 " virt-resize indisk outdisk \\\n"
25962 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
25967 #: ../resize/virt-resize.pod:422
25969 "This would first expand the partition (and PV), and then expand the root "
25970 "device to fill the extra space in the PV."
25974 #: ../resize/virt-resize.pod:425
25976 "The contents of the LV are also resized if virt-resize knows how to do "
25977 "that. You can stop virt-resize from trying to expand the content by using "
25978 "the option I<--no-expand-content>."
25982 #: ../resize/virt-resize.pod:429
25983 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
25987 #: ../resize/virt-resize.pod:431
25989 "You can give this option multiple times, I<but> it doesn't make sense to do "
25990 "this unless the logical volumes you specify are all in different volume "
25995 #: ../resize/virt-resize.pod:435 ../sparsify/virt-sparsify.pod:159
25996 msgid "B<--machine-readable>"
26000 #: ../resize/virt-resize.pod:437 ../sparsify/virt-sparsify.pod:161
26002 "This option is used to make the output more machine friendly when being "
26003 "parsed by other programs. See L</MACHINE READABLE OUTPUT> below."
26007 #: ../resize/virt-resize.pod:443
26008 msgid "B<--dryrun>"
26009 msgstr "B<--dryrun>"
26012 #: ../resize/virt-resize.pod:445
26013 msgid "Print a summary of what would be done, but don't do anything."
26017 #: ../resize/virt-resize.pod:447
26018 msgid "B<--no-copy-boot-loader>"
26019 msgstr "B<--no-copy-boot-loader>"
26022 #: ../resize/virt-resize.pod:449
26024 "By default, virt-resize copies over some sectors at the start of the disk "
26025 "(up to the beginning of the first partition). Commonly these sectors "
26026 "contain the Master Boot Record (MBR) and the boot loader, and are required "
26027 "in order for the guest to boot correctly."
26031 #: ../resize/virt-resize.pod:454
26033 "If you specify this flag, then this initial copy is not done. You may need "
26034 "to reinstall the boot loader in this case."
26038 #: ../resize/virt-resize.pod:457
26039 msgid "B<--no-extra-partition>"
26040 msgstr "B<--no-extra-partition>"
26043 #: ../resize/virt-resize.pod:459
26045 "By default, virt-resize creates an extra partition if there is any extra, "
26046 "unused space after all resizing has happened. Use this option to prevent "
26047 "the extra partition from being created. If you do this then the extra space "
26048 "will be inaccessible until you run fdisk, parted, or some other partitioning "
26049 "tool in the guest."
26053 #: ../resize/virt-resize.pod:465
26055 "Note that if the surplus space is smaller than 10 MB, no extra partition "
26060 #: ../resize/virt-resize.pod:468
26061 msgid "B<--no-expand-content>"
26062 msgstr "B<--no-expand-content>"
26065 #: ../resize/virt-resize.pod:470
26067 "By default, virt-resize will try to expand the direct contents of "
26068 "partitions, if it knows how (see I<--expand> option above)."
26072 #: ../resize/virt-resize.pod:473
26074 "If you give the I<--no-expand-content> option then virt-resize will not "
26079 #: ../resize/virt-resize.pod:476
26080 msgid "B<--ntfsresize-force>"
26081 msgstr "B<--ntfsresize-force>"
26084 #: ../resize/virt-resize.pod:478
26086 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
26087 "the NTFS disk is marked as needing a consistency check. You have to use "
26088 "this option if you want to resize a Windows guest multiple times without "
26089 "booting into Windows between each resize."
26093 #: ../resize/virt-resize.pod:484
26094 msgid "B<--output-format> raw"
26095 msgstr "B<--output-format> raw"
26098 #: ../resize/virt-resize.pod:486
26100 "Specify the format of the output disk image. If this flag is not given then "
26101 "it is auto-detected from the image itself."
26105 #: ../resize/virt-resize.pod:492
26107 "Note that this option I<does not create> the output format. This option "
26108 "just tells libguestfs what it is so it doesn't try to guess it. You still "
26109 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
26110 "SPARSE RAW FORMATS>."
26114 #: ../resize/virt-resize.pod:501
26115 msgid "Don't print the summary."
26119 #: ../resize/virt-resize.pod:503
26120 msgid "B<--resize part=size>"
26121 msgstr "B<--resize розділ=розмір>"
26124 #: ../resize/virt-resize.pod:505
26126 "Resize the named partition (expanding or shrinking it) so that it has the "
26131 #: ../resize/virt-resize.pod:508
26133 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
26134 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
26135 "size; or as a relative number or percentage. For example:"
26139 #: ../resize/virt-resize.pod:514
26142 " --resize /dev/sda2=10G\n"
26147 #: ../resize/virt-resize.pod:516
26150 " --resize /dev/sda4=90%\n"
26155 #: ../resize/virt-resize.pod:518
26158 " --resize /dev/sda2=+1G\n"
26163 #: ../resize/virt-resize.pod:520
26166 " --resize /dev/sda2=-200M\n"
26171 #: ../resize/virt-resize.pod:522
26174 " --resize /dev/sda1=+128K\n"
26179 #: ../resize/virt-resize.pod:524
26182 " --resize /dev/sda1=+10%\n"
26187 #: ../resize/virt-resize.pod:526
26190 " --resize /dev/sda1=-10%\n"
26195 #: ../resize/virt-resize.pod:528
26197 "You can increase the size of any partition. Virt-resize will expand the "
26198 "direct content of the partition if it knows how (see I<--expand> below)."
26202 #: ../resize/virt-resize.pod:532
26204 "You can only I<decrease> the size of partitions that contain filesystems or "
26205 "PVs which have already been shrunk. Virt-resize will check this has been "
26206 "done before proceeding, or else will print an error (see also I<--resize-"
26211 #: ../resize/virt-resize.pod:539
26212 msgid "B<--resize-force part=size>"
26213 msgstr "B<--resize-force розділ=розмір>"
26216 #: ../resize/virt-resize.pod:541
26218 "This is the same as I<--resize> except that it will let you decrease the "
26219 "size of any partition. Generally this means you will lose any data which "
26220 "was at the end of the partition you shrink, but you may not care about that "
26221 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
26222 "as a swap partition)."
26226 #: ../resize/virt-resize.pod:547
26227 msgid "See also the I<--ignore> option."
26231 #: ../resize/virt-resize.pod:549
26232 msgid "B<--shrink part>"
26233 msgstr "B<--shrink розділ>"
26236 #: ../resize/virt-resize.pod:551
26238 "Shrink the named partition until the overall disk image fits in the "
26239 "destination. The named partition B<must> contain a filesystem or PV which "
26240 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
26241 "online tools). Virt-resize will check this and give an error if it has not "
26246 #: ../resize/virt-resize.pod:557
26248 "The amount by which the overall disk must be shrunk (after carrying out all "
26249 "other operations requested by the user) is called the \"deficit\". For "
26250 "example, a straight copy (assume no other operations) from a 5GB disk image "
26251 "to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
26252 "would give an error unless the user specified a partition to shrink and that "
26253 "partition had more than a gigabyte of free space."
26257 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:201
26258 msgid "MACHINE READABLE OUTPUT"
26262 #: ../resize/virt-resize.pod:577
26264 "The I<--machine-readable> option can be used to make the output more machine "
26265 "friendly, which is useful when calling virt-resize from other programs, GUIs "
26270 #: ../resize/virt-resize.pod:581 ../sparsify/virt-sparsify.pod:207
26271 msgid "There are two ways to use this option."
26275 #: ../resize/virt-resize.pod:583
26277 "Firstly use the option on its own to query the capabilities of the virt-"
26278 "resize binary. Typical output looks like this:"
26282 #: ../resize/virt-resize.pod:586
26285 " $ virt-resize --machine-readable\n"
26287 " ntfsresize-force\n"
26295 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:217
26297 "A list of features is printed, one per line, and the program exits with "
26302 #: ../resize/virt-resize.pod:596 ../sparsify/virt-sparsify.pod:220
26304 "Secondly use the option in conjunction with other options to make the "
26305 "regular program output more machine friendly."
26309 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:223
26310 msgid "At the moment this means:"
26314 #: ../resize/virt-resize.pod:605 ../sparsify/virt-sparsify.pod:229
26316 "Progress bar messages can be parsed from stdout by looking for this regular "
26321 #: ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:232
26324 " ^[0-9]+/[0-9]+$\n"
26329 #: ../resize/virt-resize.pod:612 ../sparsify/virt-sparsify.pod:236
26331 "The calling program should treat messages sent to stdout (except for "
26332 "progress bar messages) as status messages. They can be logged and/or "
26333 "displayed to the user."
26337 #: ../resize/virt-resize.pod:618
26339 "The calling program should treat messages sent to stderr as error messages. "
26340 "In addition, virt-resize exits with a non-zero status code if there was a "
26345 #: ../resize/virt-resize.pod:624
26347 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
26348 "readable> option and will return an error."
26352 #: ../resize/virt-resize.pod:629
26353 msgid "\"Partition 1 does not end on cylinder boundary.\""
26357 #: ../resize/virt-resize.pod:631
26359 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
26360 "alignment> parameter). Usually this means the partitions will not be "
26361 "aligned to the ancient CHS geometry. However CHS geometry is meaningless "
26362 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
26363 "drives. Alignment of partitions to cylinders is not required by any modern "
26364 "operating system."
26368 #: ../resize/virt-resize.pod:638
26369 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
26373 #: ../resize/virt-resize.pod:640
26375 "In Windows Vista and later versions, Microsoft switched to using a separate "
26376 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
26377 "and C</dev/sda2> is the main (C:) drive. Resizing the first (boot) "
26378 "partition causes the bootloader to fail with C<0xC0000225> error. Resizing "
26379 "the second partition (ie. C: drive) should work."
26383 #: ../resize/virt-resize.pod:647
26385 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
26386 "NTFS partitions have been expanded. This is just a safety check and (unless "
26387 "it find errors) is nothing to worry about."
26391 #: ../resize/virt-resize.pod:651
26392 msgid "GUEST BOOT STUCK AT \"GRUB\""
26396 #: ../resize/virt-resize.pod:653
26398 "If a Linux guest does not boot after resizing, and the boot is stuck after "
26399 "printing C<GRUB> on the console, try reinstalling grub."
26403 #: ../resize/virt-resize.pod:656
26406 " guestfish -i -a newdisk\n"
26407 " ><fs> cat /boot/grub/device.map\n"
26408 " # check the contents of this file are sensible or\n"
26409 " # edit the file if necessary\n"
26410 " ><fs> grub-install / /dev/vda\n"
26416 #: ../resize/virt-resize.pod:663
26418 "For more flexible guest reconfiguration, including if you need to specify "
26419 "other parameters to grub-install, use L<virt-rescue(1)>."
26423 #: ../resize/virt-resize.pod:666
26424 msgid "ALTERNATIVE TOOLS"
26428 #: ../resize/virt-resize.pod:668
26430 "There are several proprietary tools for resizing partitions. We won't "
26431 "mention any here."
26435 #: ../resize/virt-resize.pod:671
26437 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
26438 "operations on disk images. They can resize and move partitions, but I don't "
26439 "think they can do anything with the contents, and they certainly don't "
26444 #: ../resize/virt-resize.pod:676
26446 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
26447 "but at a much lower level. You will probably end up hand-calculating sector "
26448 "offsets, which is something that virt-resize was designed to avoid. If you "
26449 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
26454 #: ../resize/virt-resize.pod:696
26456 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
26457 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
26458 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
26459 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
26460 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
26464 #: ../ruby/examples/guestfs-ruby.pod:5
26465 msgid "guestfs-ruby - How to use libguestfs from Ruby"
26469 #: ../ruby/examples/guestfs-ruby.pod:9
26472 " require 'guestfs'\n"
26473 " g = Guestfs::Guestfs.new()\n"
26474 " g.add_drive_opts(\"disk.img\",\n"
26475 " :readonly => 1, :format => \"raw\")\n"
26481 #: ../ruby/examples/guestfs-ruby.pod:17
26483 "This manual page documents how to call libguestfs from the Ruby programming "
26484 "language. This page just documents the differences from the C API and gives "
26485 "some examples. If you are not familiar with using libguestfs, you also need "
26486 "to read L<guestfs(3)>."
26490 #: ../ruby/examples/guestfs-ruby.pod:24
26492 "Errors from libguestfs functions are mapped into the C<Error> exception. "
26493 "This has a single parameter which is the error message (a string)."
26497 #: ../ruby/examples/guestfs-ruby.pod:38
26499 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
26500 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
26501 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
26505 #: ../sparsify/virt-sparsify.pod:5
26506 msgid "virt-sparsify - Make a virtual machine disk sparse"
26510 #: ../sparsify/virt-sparsify.pod:9
26513 " virt-sparsify [--options] indisk outdisk\n"
26518 #: ../sparsify/virt-sparsify.pod:13
26520 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
26521 "image) sparse a.k.a. thin-provisioned. This means that free space within "
26522 "the disk image can be converted back to free space on the host."
26526 #: ../sparsify/virt-sparsify.pod:18
26528 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
26529 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
26533 #: ../sparsify/virt-sparsify.pod:21
26535 "Virt-sparsify can also convert between some disk formats, for example "
26536 "converting a raw disk image to a thin-provisioned qcow2 image."
26540 #: ../sparsify/virt-sparsify.pod:24
26542 "Virt-sparsify can operate on any disk image, not just ones from virtual "
26543 "machines. If a virtual machine has more than one attached disk, you must "
26544 "sparsify each one separately."
26548 #: ../sparsify/virt-sparsify.pod:28
26549 msgid "IMPORTANT LIMITATIONS"
26553 #: ../sparsify/virt-sparsify.pod:34
26555 "Virt-sparsify does not do in-place modifications. It copies from a source "
26556 "image to a destination image, leaving the source unchanged. I<Check that "
26557 "the sparsification was successful before deleting the source image>."
26561 #: ../sparsify/virt-sparsify.pod:41
26562 msgid "The virtual machine I<must be shut down> before using this tool."
26566 #: ../sparsify/virt-sparsify.pod:45
26568 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
26569 "(1 temporary copy + 1 destination image). This is in the worst case and "
26570 "usually much less space is required."
26574 #: ../sparsify/virt-sparsify.pod:51
26576 "Virt-sparsify cannot resize disk images. To do that, use L<virt-resize(1)>."
26580 #: ../sparsify/virt-sparsify.pod:56
26581 msgid "Virt-sparsify cannot handle encrypted disks."
26585 #: ../sparsify/virt-sparsify.pod:60
26587 "Virt-sparsify cannot yet sparsify the space between partitions. Note that "
26588 "this space is often used for critical items like bootloaders so it's not "
26593 #: ../sparsify/virt-sparsify.pod:66
26595 "Virt-sparsify does not yet know how to sparsify swapspace. It is not safe "
26596 "to do this unless we can be sure there is no hibernation data, so at the "
26597 "moment swap partitions are ignored."
26601 #: ../sparsify/virt-sparsify.pod:72
26603 "You may also want to read the manual pages for the associated tools L<virt-"
26604 "filesystems(1)> and L<virt-df(1)> before starting."
26608 #: ../sparsify/virt-sparsify.pod:77
26609 msgid "Typical usage is:"
26613 #: ../sparsify/virt-sparsify.pod:79
26616 " virt-sparsify indisk outdisk\n"
26621 #: ../sparsify/virt-sparsify.pod:81
26623 "which copies C<indisk> to C<outdisk>, making the output sparse. C<outdisk> "
26624 "is created, or overwritten if it already exists. The format of the input "
26625 "disk is detected (eg. qcow2) and the same format is used for the output disk."
26629 #: ../sparsify/virt-sparsify.pod:86
26630 msgid "To convert between formats, use the I<--convert> option:"
26634 #: ../sparsify/virt-sparsify.pod:88
26637 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
26642 #: ../sparsify/virt-sparsify.pod:90
26644 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
26645 "can find within the source disk image. You can get it to ignore (don't zero "
26646 "free space on) certain filesystems by doing:"
26650 #: ../sparsify/virt-sparsify.pod:94
26653 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
26658 #: ../sparsify/virt-sparsify.pod:96
26660 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
26664 #: ../sparsify/virt-sparsify.pod:107
26666 #| msgid "B<--parts>"
26667 msgid "B<--compress>"
26668 msgstr "B<--parts>"
26671 #: ../sparsify/virt-sparsify.pod:109
26673 "Compress the output file. This I<only> works if the output format is "
26678 #: ../sparsify/virt-sparsify.pod:112
26679 msgid "B<--convert> raw"
26683 #: ../sparsify/virt-sparsify.pod:114
26684 msgid "B<--convert> qcow2"
26688 #: ../sparsify/virt-sparsify.pod:116
26689 msgid "B<--convert> [other formats]"
26693 #: ../sparsify/virt-sparsify.pod:118
26695 "Use C<output-format> as the format for the destination image. If this is "
26696 "not specified, then the input format is used."
26700 #: ../sparsify/virt-sparsify.pod:121
26702 "Supported and known-working output formats are: C<raw>, C<qcow2>, C<vdi>."
26706 #: ../sparsify/virt-sparsify.pod:123
26708 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
26709 "C<vmdk>, but support for other formats is reliant on qemu."
26713 #: ../sparsify/virt-sparsify.pod:126
26715 "Specifying the I<--convert> option is usually a good idea, because then virt-"
26716 "sparsify doesn't need to try to guess the input format."
26720 #: ../sparsify/virt-sparsify.pod:129
26721 msgid "For fine-tuning the output format, see: I<--compress>, I<-o>."
26725 #: ../sparsify/virt-sparsify.pod:133
26727 "Debug garbage collection and memory allocation. This is only useful when "
26728 "debugging memory problems in virt-sparsify or the OCaml libguestfs bindings."
26732 #: ../sparsify/virt-sparsify.pod:139
26733 msgid "B<--format> qcow2"
26737 #: ../sparsify/virt-sparsify.pod:147
26738 msgid "B<--ignore> filesystem"
26742 #: ../sparsify/virt-sparsify.pod:149
26743 msgid "B<--ignore> volgroup"
26747 #: ../sparsify/virt-sparsify.pod:151
26749 "Ignore the named filesystem. Free space on the filesystem will not be "
26750 "zeroed, but existing blocks of zeroes will still be sparsified."
26754 #: ../sparsify/virt-sparsify.pod:154
26756 "In the second form, this ignores the named volume group. Use the volume "
26757 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
26761 #: ../sparsify/virt-sparsify.pod:165
26763 #| msgid "B<--option option>"
26764 msgid "B<-o> option[,option,...]"
26765 msgstr "B<--option параметр>"
26768 #: ../sparsify/virt-sparsify.pod:167
26770 "Pass I<-o> option(s) to the L<qemu-img(1)> command to fine-tune the output "
26771 "format. Options available depend on the output format (see I<--convert>) "
26772 "and the installed version of the qemu-img program."
26776 #: ../sparsify/virt-sparsify.pod:171
26778 "You should use I<-o> at most once. To pass multiple options, separate them "
26783 #: ../sparsify/virt-sparsify.pod:174
26786 " virt-sparsify --convert qcow2 \\\n"
26787 " -o cluster_size=512,preallocation=metadata ...\n"
26792 #: ../sparsify/virt-sparsify.pod:181
26793 msgid "This disables progress bars and other unnecessary output."
26797 #: ../sparsify/virt-sparsify.pod:203
26799 "The I<--machine-readable> option can be used to make the output more machine "
26800 "friendly, which is useful when calling virt-sparsify from other programs, "
26805 #: ../sparsify/virt-sparsify.pod:209
26807 "Firstly use the option on its own to query the capabilities of the virt-"
26808 "sparsify binary. Typical output looks like this:"
26812 #: ../sparsify/virt-sparsify.pod:212
26815 " $ virt-sparsify --machine-readable\n"
26823 #: ../sparsify/virt-sparsify.pod:242
26825 "The calling program should treat messages sent to stderr as error messages. "
26826 "In addition, virt-sparsify exits with a non-zero status code if there was a "
26831 #: ../sparsify/virt-sparsify.pod:248
26833 "All versions of virt-sparsify have supported the I<--machine-readable> "
26838 #: ../sparsify/virt-sparsify.pod:262
26840 "Location of the temporary directory used for the potentially large temporary "
26845 #: ../sparsify/virt-sparsify.pod:265
26847 "You should ensure there is enough free space in the worst case for a full "
26848 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
26849 "to another directory that has enough space."
26853 #: ../sparsify/virt-sparsify.pod:269
26854 msgid "This defaults to C</tmp>."
26858 #: ../sparsify/virt-sparsify.pod:273
26860 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
26864 #: ../sparsify/virt-sparsify.pod:277
26866 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
26867 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
26868 "(1)>, L<http://libguestfs.org/>."
26872 #: ../src/guestfs-actions.pod:1
26873 msgid "guestfs_add_cdrom"
26877 #: ../src/guestfs-actions.pod:3
26881 " guestfs_add_cdrom (guestfs_h *g,\n"
26882 " const char *filename);\n"
26887 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
26888 #: ../src/guestfs-actions.pod:323
26890 "I<This function is deprecated.> In new code, use the L</"
26891 "guestfs_add_drive_opts> call instead."
26895 #: ../src/guestfs-actions.pod:24
26897 "This call checks for the existence of C<filename>. This stops you from "
26898 "specifying other types of drive which are supported by qemu such as C<nbd:> "
26899 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call "
26904 #: ../src/guestfs-actions.pod:31
26906 "If you just want to add an ISO file (often you use this as an efficient way "
26907 "to transfer large files into the guest), then you should probably use "
26908 "C<guestfs_add_drive_ro> instead."
26912 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
26913 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
26914 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
26915 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
26916 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
26917 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
26918 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
26919 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
26920 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:773
26921 #: ../src/guestfs-actions.pod:872 ../src/guestfs-actions.pod:890
26922 #: ../src/guestfs-actions.pod:904 ../src/guestfs-actions.pod:918
26923 #: ../src/guestfs-actions.pod:955 ../src/guestfs-actions.pod:1138
26924 #: ../src/guestfs-actions.pod:1158 ../src/guestfs-actions.pod:1176
26925 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1325
26926 #: ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1411
26927 #: ../src/guestfs-actions.pod:1464 ../src/guestfs-actions.pod:1517
26928 #: ../src/guestfs-actions.pod:1575 ../src/guestfs-actions.pod:1629
26929 #: ../src/guestfs-actions.pod:1648 ../src/guestfs-actions.pod:1662
26930 #: ../src/guestfs-actions.pod:1690 ../src/guestfs-actions.pod:1760
26931 #: ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:1816
26932 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1971
26933 #: ../src/guestfs-actions.pod:1998 ../src/guestfs-actions.pod:2213
26934 #: ../src/guestfs-actions.pod:2235 ../src/guestfs-actions.pod:2322
26935 #: ../src/guestfs-actions.pod:2830 ../src/guestfs-actions.pod:2974
26936 #: ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3070
26937 #: ../src/guestfs-actions.pod:4131 ../src/guestfs-actions.pod:4146
26938 #: ../src/guestfs-actions.pod:4171 ../src/guestfs-actions.pod:4373
26939 #: ../src/guestfs-actions.pod:4387 ../src/guestfs-actions.pod:4400
26940 #: ../src/guestfs-actions.pod:4414 ../src/guestfs-actions.pod:4429
26941 #: ../src/guestfs-actions.pod:4465 ../src/guestfs-actions.pod:4537
26942 #: ../src/guestfs-actions.pod:4557 ../src/guestfs-actions.pod:4574
26943 #: ../src/guestfs-actions.pod:4594 ../src/guestfs-actions.pod:4614
26944 #: ../src/guestfs-actions.pod:4649 ../src/guestfs-actions.pod:4668
26945 #: ../src/guestfs-actions.pod:4687 ../src/guestfs-actions.pod:4722
26946 #: ../src/guestfs-actions.pod:4734 ../src/guestfs-actions.pod:4767
26947 #: ../src/guestfs-actions.pod:4783 ../src/guestfs-actions.pod:4796
26948 #: ../src/guestfs-actions.pod:4811 ../src/guestfs-actions.pod:4828
26949 #: ../src/guestfs-actions.pod:4986 ../src/guestfs-actions.pod:5060
26950 #: ../src/guestfs-actions.pod:5070 ../src/guestfs-actions.pod:5090
26951 #: ../src/guestfs-actions.pod:5103 ../src/guestfs-actions.pod:5154
26952 #: ../src/guestfs-actions.pod:5172 ../src/guestfs-actions.pod:5190
26953 #: ../src/guestfs-actions.pod:5206 ../src/guestfs-actions.pod:5220
26954 #: ../src/guestfs-actions.pod:5234 ../src/guestfs-actions.pod:5251
26955 #: ../src/guestfs-actions.pod:5266 ../src/guestfs-actions.pod:5293
26956 #: ../src/guestfs-actions.pod:5356 ../src/guestfs-actions.pod:5429
26957 #: ../src/guestfs-actions.pod:5460 ../src/guestfs-actions.pod:5479
26958 #: ../src/guestfs-actions.pod:5498 ../src/guestfs-actions.pod:5510
26959 #: ../src/guestfs-actions.pod:5527 ../src/guestfs-actions.pod:5540
26960 #: ../src/guestfs-actions.pod:5555 ../src/guestfs-actions.pod:5570
26961 #: ../src/guestfs-actions.pod:5602 ../src/guestfs-actions.pod:5628
26962 #: ../src/guestfs-actions.pod:5667 ../src/guestfs-actions.pod:5687
26963 #: ../src/guestfs-actions.pod:5701 ../src/guestfs-actions.pod:5718
26964 #: ../src/guestfs-actions.pod:5767 ../src/guestfs-actions.pod:5820
26965 #: ../src/guestfs-actions.pod:5867 ../src/guestfs-actions.pod:5910
26966 #: ../src/guestfs-actions.pod:5938 ../src/guestfs-actions.pod:5955
26967 #: ../src/guestfs-actions.pod:5973 ../src/guestfs-actions.pod:6110
26968 #: ../src/guestfs-actions.pod:6167 ../src/guestfs-actions.pod:6189
26969 #: ../src/guestfs-actions.pod:6207 ../src/guestfs-actions.pod:6259
26970 #: ../src/guestfs-actions.pod:6325 ../src/guestfs-actions.pod:6342
26971 #: ../src/guestfs-actions.pod:6355 ../src/guestfs-actions.pod:6369
26972 #: ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6677
26973 #: ../src/guestfs-actions.pod:6696 ../src/guestfs-actions.pod:6710
26974 #: ../src/guestfs-actions.pod:6722 ../src/guestfs-actions.pod:6736
26975 #: ../src/guestfs-actions.pod:6748 ../src/guestfs-actions.pod:6762
26976 #: ../src/guestfs-actions.pod:6778 ../src/guestfs-actions.pod:6796
26977 #: ../src/guestfs-actions.pod:6815 ../src/guestfs-actions.pod:6834
26978 #: ../src/guestfs-actions.pod:6864 ../src/guestfs-actions.pod:6882
26979 #: ../src/guestfs-actions.pod:6905 ../src/guestfs-actions.pod:6923
26980 #: ../src/guestfs-actions.pod:6942 ../src/guestfs-actions.pod:6963
26981 #: ../src/guestfs-actions.pod:6982 ../src/guestfs-actions.pod:6999
26982 #: ../src/guestfs-actions.pod:7018 ../src/guestfs-actions.pod:7046
26983 #: ../src/guestfs-actions.pod:7070 ../src/guestfs-actions.pod:7089
26984 #: ../src/guestfs-actions.pod:7105 ../src/guestfs-actions.pod:7129
26985 #: ../src/guestfs-actions.pod:7148 ../src/guestfs-actions.pod:7163
26986 #: ../src/guestfs-actions.pod:7182 ../src/guestfs-actions.pod:7226
26987 #: ../src/guestfs-actions.pod:7253 ../src/guestfs-actions.pod:7283
26988 #: ../src/guestfs-actions.pod:7395 ../src/guestfs-actions.pod:7516
26989 #: ../src/guestfs-actions.pod:7528 ../src/guestfs-actions.pod:7541
26990 #: ../src/guestfs-actions.pod:7554 ../src/guestfs-actions.pod:7576
26991 #: ../src/guestfs-actions.pod:7589 ../src/guestfs-actions.pod:7602
26992 #: ../src/guestfs-actions.pod:7615 ../src/guestfs-actions.pod:7630
26993 #: ../src/guestfs-actions.pod:7689 ../src/guestfs-actions.pod:7706
26994 #: ../src/guestfs-actions.pod:7722 ../src/guestfs-actions.pod:7738
26995 #: ../src/guestfs-actions.pod:7755 ../src/guestfs-actions.pod:7768
26996 #: ../src/guestfs-actions.pod:7788 ../src/guestfs-actions.pod:7888
26997 #: ../src/guestfs-actions.pod:7946 ../src/guestfs-actions.pod:7960
26998 #: ../src/guestfs-actions.pod:8001 ../src/guestfs-actions.pod:8014
26999 #: ../src/guestfs-actions.pod:8032 ../src/guestfs-actions.pod:8066
27000 #: ../src/guestfs-actions.pod:8102 ../src/guestfs-actions.pod:8218
27001 #: ../src/guestfs-actions.pod:8233 ../src/guestfs-actions.pod:8247
27002 #: ../src/guestfs-actions.pod:8302 ../src/guestfs-actions.pod:8315
27003 #: ../src/guestfs-actions.pod:8360 ../src/guestfs-actions.pod:8400
27004 #: ../src/guestfs-actions.pod:8456 ../src/guestfs-actions.pod:8476
27005 #: ../src/guestfs-actions.pod:8509 ../src/guestfs-actions.pod:8573
27006 #: ../src/guestfs-actions.pod:8596 ../src/guestfs-actions.pod:8622
27007 msgid "This function returns 0 on success or -1 on error."
27011 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
27012 #: ../src/guestfs-actions.pod:1373 ../src/guestfs-actions.pod:2436
27013 #: ../src/guestfs-actions.pod:2534 ../src/guestfs-actions.pod:2659
27014 #: ../src/guestfs-actions.pod:4133 ../src/guestfs-actions.pod:4153
27015 #: ../src/guestfs-actions.pod:5604 ../src/guestfs-actions.pod:6884
27016 #: ../src/guestfs-actions.pod:7001 ../src/guestfs-actions.pod:7150
27017 #: ../src/guestfs-actions.pod:7632 ../src/guestfs-actions.pod:7757
27018 #: ../src/guestfs-actions.pod:8402
27019 msgid "(Added in 0.3)"
27020 msgstr "(Додано у 0.3)"
27023 #: ../src/guestfs-actions.pod:41
27024 msgid "guestfs_add_domain"
27028 #: ../src/guestfs-actions.pod:43
27032 " guestfs_add_domain (guestfs_h *g,\n"
27033 " const char *dom,\n"
27039 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
27040 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:1253
27041 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:1383
27042 #: ../src/guestfs-actions.pod:1452 ../src/guestfs-actions.pod:1505
27043 #: ../src/guestfs-actions.pod:1558 ../src/guestfs-actions.pod:3327
27044 #: ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:5305
27045 #: ../src/guestfs-actions.pod:5614 ../src/guestfs-actions.pod:5831
27046 #: ../src/guestfs-actions.pod:7799
27048 "You may supply a list of optional arguments to this call. Use zero or more "
27049 "of the following pairs of parameters, and terminate the list with C<-1> on "
27050 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
27054 #: ../src/guestfs-actions.pod:53
27057 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
27058 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
27059 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
27060 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
27061 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
27062 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
27067 #: ../src/guestfs-actions.pod:60
27069 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
27070 "It works by connecting to libvirt, requesting the domain and domain XML from "
27071 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
27076 #: ../src/guestfs-actions.pod:141
27078 "The other optional parameters are passed directly through to "
27079 "C<guestfs_add_drive_opts>."
27083 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
27084 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:790
27085 #: ../src/guestfs-actions.pod:821 ../src/guestfs-actions.pod:839
27086 #: ../src/guestfs-actions.pod:858 ../src/guestfs-actions.pod:1836
27087 #: ../src/guestfs-actions.pod:2192 ../src/guestfs-actions.pod:2395
27088 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:2557
27089 #: ../src/guestfs-actions.pod:2609 ../src/guestfs-actions.pod:2623
27090 #: ../src/guestfs-actions.pod:2646 ../src/guestfs-actions.pod:2961
27091 #: ../src/guestfs-actions.pod:3445 ../src/guestfs-actions.pod:3463
27092 #: ../src/guestfs-actions.pod:5790 ../src/guestfs-actions.pod:6007
27093 #: ../src/guestfs-actions.pod:6245 ../src/guestfs-actions.pod:6439
27094 #: ../src/guestfs-actions.pod:6465 ../src/guestfs-actions.pod:7987
27095 #: ../src/guestfs-actions.pod:8413 ../src/guestfs-actions.pod:8426
27096 #: ../src/guestfs-actions.pod:8439
27097 msgid "On error this function returns -1."
27101 #: ../src/guestfs-actions.pod:146
27102 msgid "(Added in 1.7.4)"
27103 msgstr "(Додано у 1.7.4)"
27106 #: ../src/guestfs-actions.pod:148
27107 msgid "guestfs_add_domain_va"
27111 #: ../src/guestfs-actions.pod:150
27115 " guestfs_add_domain_va (guestfs_h *g,\n"
27116 " const char *dom,\n"
27117 " va_list args);\n"
27122 #: ../src/guestfs-actions.pod:155
27123 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
27127 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
27128 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
27129 #: ../src/guestfs-actions.pod:968 ../src/guestfs-actions.pod:979
27130 #: ../src/guestfs-actions.pod:1281 ../src/guestfs-actions.pod:1294
27131 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1353
27132 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1442
27133 #: ../src/guestfs-actions.pod:1483 ../src/guestfs-actions.pod:1495
27134 #: ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1548
27135 #: ../src/guestfs-actions.pod:1594 ../src/guestfs-actions.pod:1606
27136 #: ../src/guestfs-actions.pod:3411 ../src/guestfs-actions.pod:3423
27137 #: ../src/guestfs-actions.pod:4998 ../src/guestfs-actions.pod:5010
27138 #: ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5382
27139 #: ../src/guestfs-actions.pod:5642 ../src/guestfs-actions.pod:5654
27140 #: ../src/guestfs-actions.pod:5880 ../src/guestfs-actions.pod:5891
27141 #: ../src/guestfs-actions.pod:7901 ../src/guestfs-actions.pod:7912
27142 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
27143 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
27146 #: ../src/guestfs-actions.pod:159
27147 msgid "guestfs_add_domain_argv"
27148 msgstr "guestfs_add_domain_argv"
27151 #: ../src/guestfs-actions.pod:161
27155 " guestfs_add_domain_argv (guestfs_h *g,\n"
27156 " const char *dom,\n"
27157 " const struct guestfs_add_domain_argv *optargs);\n"
27162 #: ../src/guestfs-actions.pod:166
27163 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
27167 #: ../src/guestfs-actions.pod:170
27168 msgid "guestfs_add_drive"
27172 #: ../src/guestfs-actions.pod:172
27176 " guestfs_add_drive (guestfs_h *g,\n"
27177 " const char *filename);\n"
27182 #: ../src/guestfs-actions.pod:176
27184 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
27185 "optional parameters, so the disk is added writable, with the format being "
27186 "detected automatically."
27190 #: ../src/guestfs-actions.pod:180
27192 "Automatic detection of the format opens you up to a potential security hole "
27193 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
27194 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
27195 "you should think about replacing calls to this function with calls to "
27196 "C<guestfs_add_drive_opts>, and specifying the format."
27200 #: ../src/guestfs-actions.pod:191
27201 msgid "guestfs_add_drive_opts"
27205 #: ../src/guestfs-actions.pod:193
27209 " guestfs_add_drive_opts (guestfs_h *g,\n"
27210 " const char *filename,\n"
27216 #: ../src/guestfs-actions.pod:203
27219 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
27220 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
27221 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
27222 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
27227 #: ../src/guestfs-actions.pod:233
27229 "This forces the image format. If you omit this (or use C<guestfs_add_drive> "
27230 "or C<guestfs_add_drive_ro>) then the format is automatically detected. "
27231 "Possible formats include C<raw> and C<qcow2>."
27235 #: ../src/guestfs-actions.pod:244
27237 "This rarely-used option lets you emulate the behaviour of the deprecated "
27238 "C<guestfs_add_drive_with_if> call (q.v.)"
27242 #: ../src/guestfs-actions.pod:256
27243 msgid "(Added in 1.5.23)"
27244 msgstr "(Додано у 1.5.23)"
27247 #: ../src/guestfs-actions.pod:258
27248 msgid "guestfs_add_drive_opts_va"
27252 #: ../src/guestfs-actions.pod:260
27256 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
27257 " const char *filename,\n"
27258 " va_list args);\n"
27263 #: ../src/guestfs-actions.pod:265
27264 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
27268 #: ../src/guestfs-actions.pod:269
27269 msgid "guestfs_add_drive_opts_argv"
27273 #: ../src/guestfs-actions.pod:271
27277 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
27278 " const char *filename,\n"
27279 " const struct guestfs_add_drive_opts_argv *optargs);\n"
27284 #: ../src/guestfs-actions.pod:276
27285 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
27289 #: ../src/guestfs-actions.pod:280
27290 msgid "guestfs_add_drive_ro"
27294 #: ../src/guestfs-actions.pod:282
27298 " guestfs_add_drive_ro (guestfs_h *g,\n"
27299 " const char *filename);\n"
27304 #: ../src/guestfs-actions.pod:286
27306 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
27307 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
27308 "disk is added read-only, with the format being detected automatically."
27312 #: ../src/guestfs-actions.pod:293
27313 msgid "(Added in 1.0.38)"
27314 msgstr "(Додано у 1.0.38)"
27317 #: ../src/guestfs-actions.pod:295
27318 msgid "guestfs_add_drive_ro_with_if"
27322 #: ../src/guestfs-actions.pod:297
27326 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
27327 " const char *filename,\n"
27328 " const char *iface);\n"
27333 #: ../src/guestfs-actions.pod:309
27335 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
27336 "QEMU interface emulation to use at run time."
27340 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
27341 #: ../src/guestfs-actions.pod:2920
27342 msgid "(Added in 1.0.84)"
27343 msgstr "(Додано у 1.0.84)"
27346 #: ../src/guestfs-actions.pod:316
27347 msgid "guestfs_add_drive_with_if"
27351 #: ../src/guestfs-actions.pod:318
27355 " guestfs_add_drive_with_if (guestfs_h *g,\n"
27356 " const char *filename,\n"
27357 " const char *iface);\n"
27362 #: ../src/guestfs-actions.pod:330
27364 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
27365 "QEMU interface emulation to use at run time."
27369 #: ../src/guestfs-actions.pod:337
27370 msgid "guestfs_aug_clear"
27374 #: ../src/guestfs-actions.pod:339
27378 " guestfs_aug_clear (guestfs_h *g,\n"
27379 " const char *augpath);\n"
27384 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2648
27385 msgid "(Added in 1.3.4)"
27386 msgstr "(Додано у 1.3.4)"
27389 #: ../src/guestfs-actions.pod:350
27390 msgid "guestfs_aug_close"
27394 #: ../src/guestfs-actions.pod:352
27398 " guestfs_aug_close (guestfs_h *g);\n"
27403 #: ../src/guestfs-actions.pod:355
27405 "Close the current Augeas handle and free up any resources used by it. After "
27406 "calling this, you have to call C<guestfs_aug_init> again before you can use "
27407 "any other Augeas functions."
27411 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
27412 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
27413 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
27414 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
27415 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
27416 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
27417 #: ../src/guestfs-actions.pod:6516
27418 msgid "(Added in 0.7)"
27419 msgstr "(Додано у 0.7)"
27422 #: ../src/guestfs-actions.pod:364
27423 msgid "guestfs_aug_defnode"
27427 #: ../src/guestfs-actions.pod:366
27430 " struct guestfs_int_bool *\n"
27431 " guestfs_aug_defnode (guestfs_h *g,\n"
27432 " const char *name,\n"
27433 " const char *expr,\n"
27434 " const char *val);\n"
27439 #: ../src/guestfs-actions.pod:375
27441 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
27442 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
27443 "containing that single node."
27447 #: ../src/guestfs-actions.pod:383
27449 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
27450 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
27454 #: ../src/guestfs-actions.pod:389
27455 msgid "guestfs_aug_defvar"
27459 #: ../src/guestfs-actions.pod:391
27463 " guestfs_aug_defvar (guestfs_h *g,\n"
27464 " const char *name,\n"
27465 " const char *expr);\n"
27470 #: ../src/guestfs-actions.pod:407
27471 msgid "guestfs_aug_get"
27472 msgstr "guestfs_aug_get"
27475 #: ../src/guestfs-actions.pod:409
27479 " guestfs_aug_get (guestfs_h *g,\n"
27480 " const char *augpath);\n"
27484 " guestfs_aug_get (guestfs_h *g,\n"
27485 " const char *augpath);\n"
27489 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:1019
27490 #: ../src/guestfs-actions.pod:1037 ../src/guestfs-actions.pod:1097
27491 #: ../src/guestfs-actions.pod:1113 ../src/guestfs-actions.pod:1216
27492 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1722
27493 #: ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1875
27494 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:2175
27495 #: ../src/guestfs-actions.pod:2338 ../src/guestfs-actions.pod:2355
27496 #: ../src/guestfs-actions.pod:2422 ../src/guestfs-actions.pod:2465
27497 #: ../src/guestfs-actions.pod:2486 ../src/guestfs-actions.pod:2671
27498 #: ../src/guestfs-actions.pod:2885 ../src/guestfs-actions.pod:3089
27499 #: ../src/guestfs-actions.pod:3191 ../src/guestfs-actions.pod:3295
27500 #: ../src/guestfs-actions.pod:3314 ../src/guestfs-actions.pod:3529
27501 #: ../src/guestfs-actions.pod:3557 ../src/guestfs-actions.pod:3578
27502 #: ../src/guestfs-actions.pod:3612 ../src/guestfs-actions.pod:3679
27503 #: ../src/guestfs-actions.pod:3699 ../src/guestfs-actions.pod:3719
27504 #: ../src/guestfs-actions.pod:4359 ../src/guestfs-actions.pod:4706
27505 #: ../src/guestfs-actions.pod:4873 ../src/guestfs-actions.pod:5132
27506 #: ../src/guestfs-actions.pod:6025 ../src/guestfs-actions.pod:6226
27507 #: ../src/guestfs-actions.pod:6414 ../src/guestfs-actions.pod:6592
27508 #: ../src/guestfs-actions.pod:6641 ../src/guestfs-actions.pod:7301
27509 #: ../src/guestfs-actions.pod:7317 ../src/guestfs-actions.pod:7341
27510 #: ../src/guestfs-actions.pod:7365 ../src/guestfs-actions.pod:8161
27511 #: ../src/guestfs-actions.pod:8180 ../src/guestfs-actions.pod:8198
27512 #: ../src/guestfs-actions.pod:8372 ../src/guestfs-actions.pod:8686
27514 "This function returns a string, or NULL on error. I<The caller must free "
27515 "the returned string after use>."
27519 #: ../src/guestfs-actions.pod:421
27520 msgid "guestfs_aug_init"
27521 msgstr "guestfs_aug_init"
27524 #: ../src/guestfs-actions.pod:423
27528 " guestfs_aug_init (guestfs_h *g,\n"
27529 " const char *root,\n"
27534 " guestfs_aug_init (guestfs_h *g,\n"
27535 " const char *root,\n"
27540 #: ../src/guestfs-actions.pod:432
27541 msgid "You must call this before using any other C<guestfs_aug_*> commands."
27545 #: ../src/guestfs-actions.pod:457
27547 "This option is only useful when debugging Augeas lenses. Use of this option "
27548 "may require additional memory for the libguestfs appliance. You may need to "
27549 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
27550 "C<guestfs_set_memsize>."
27554 #: ../src/guestfs-actions.pod:472
27555 msgid "Do not load the tree in C<guestfs_aug_init>."
27559 #: ../src/guestfs-actions.pod:476
27560 msgid "To close the handle, you can call C<guestfs_aug_close>."
27564 #: ../src/guestfs-actions.pod:484
27565 msgid "guestfs_aug_insert"
27566 msgstr "guestfs_aug_insert"
27569 #: ../src/guestfs-actions.pod:486
27573 " guestfs_aug_insert (guestfs_h *g,\n"
27574 " const char *augpath,\n"
27575 " const char *label,\n"
27580 " guestfs_aug_insert (guestfs_h *g,\n"
27581 " const char *augpath,\n"
27582 " const char *label,\n"
27587 #: ../src/guestfs-actions.pod:504
27588 msgid "guestfs_aug_load"
27589 msgstr "guestfs_aug_load"
27592 #: ../src/guestfs-actions.pod:506
27596 " guestfs_aug_load (guestfs_h *g);\n"
27600 " guestfs_aug_load (guestfs_h *g);\n"
27604 #: ../src/guestfs-actions.pod:518
27605 msgid "guestfs_aug_ls"
27606 msgstr "guestfs_aug_ls"
27609 #: ../src/guestfs-actions.pod:520
27613 " guestfs_aug_ls (guestfs_h *g,\n"
27614 " const char *augpath);\n"
27618 " guestfs_aug_ls (guestfs_h *g,\n"
27619 " const char *augpath);\n"
27623 #: ../src/guestfs-actions.pod:524
27625 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
27626 "sorting the resulting nodes into alphabetical order."
27630 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
27631 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1235
27632 #: ../src/guestfs-actions.pod:1890 ../src/guestfs-actions.pod:1909
27633 #: ../src/guestfs-actions.pod:2012 ../src/guestfs-actions.pod:2031
27634 #: ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:2743
27635 #: ../src/guestfs-actions.pod:2759 ../src/guestfs-actions.pod:2778
27636 #: ../src/guestfs-actions.pod:2843 ../src/guestfs-actions.pod:2867
27637 #: ../src/guestfs-actions.pod:2938 ../src/guestfs-actions.pod:2987
27638 #: ../src/guestfs-actions.pod:3256 ../src/guestfs-actions.pod:3631
27639 #: ../src/guestfs-actions.pod:3915 ../src/guestfs-actions.pod:4229
27640 #: ../src/guestfs-actions.pod:4246 ../src/guestfs-actions.pod:4266
27641 #: ../src/guestfs-actions.pod:4321 ../src/guestfs-actions.pod:4341
27642 #: ../src/guestfs-actions.pod:4446 ../src/guestfs-actions.pod:4845
27643 #: ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:6386
27644 #: ../src/guestfs-actions.pod:6512 ../src/guestfs-actions.pod:6626
27645 #: ../src/guestfs-actions.pod:7381 ../src/guestfs-actions.pod:7442
27646 #: ../src/guestfs-actions.pod:7497 ../src/guestfs-actions.pod:7643
27647 #: ../src/guestfs-actions.pod:7667 ../src/guestfs-actions.pod:8265
27648 #: ../src/guestfs-actions.pod:8285 ../src/guestfs-actions.pod:8332
27649 #: ../src/guestfs-actions.pod:8526 ../src/guestfs-actions.pod:8545
27650 #: ../src/guestfs-actions.pod:8636 ../src/guestfs-actions.pod:8655
27651 #: ../src/guestfs-actions.pod:8701 ../src/guestfs-actions.pod:8720
27653 "This function returns a NULL-terminated array of strings (like L<environ(3)"
27654 ">), or NULL if there was an error. I<The caller must free the strings and "
27655 "the array after use>."
27659 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1160
27660 #: ../src/guestfs-actions.pod:1178 ../src/guestfs-actions.pod:1947
27661 #: ../src/guestfs-actions.pod:3993 ../src/guestfs-actions.pod:4024
27662 #: ../src/guestfs-actions.pod:4689 ../src/guestfs-actions.pod:4736
27663 #: ../src/guestfs-actions.pod:5072 ../src/guestfs-actions.pod:5105
27664 #: ../src/guestfs-actions.pod:5268 ../src/guestfs-actions.pod:5755
27665 #: ../src/guestfs-actions.pod:6327 ../src/guestfs-actions.pod:6724
27666 #: ../src/guestfs-actions.pod:6738 ../src/guestfs-actions.pod:6750
27667 #: ../src/guestfs-actions.pod:7228 ../src/guestfs-actions.pod:8003
27668 #: ../src/guestfs-actions.pod:8016 ../src/guestfs-actions.pod:8249
27669 #: ../src/guestfs-actions.pod:8514
27670 msgid "(Added in 0.8)"
27671 msgstr "(Додано у 0.8)"
27674 #: ../src/guestfs-actions.pod:533
27675 msgid "guestfs_aug_match"
27676 msgstr "guestfs_aug_match"
27679 #: ../src/guestfs-actions.pod:535
27683 " guestfs_aug_match (guestfs_h *g,\n"
27684 " const char *augpath);\n"
27688 " guestfs_aug_match (guestfs_h *g,\n"
27689 " const char *augpath);\n"
27693 #: ../src/guestfs-actions.pod:549
27694 msgid "guestfs_aug_mv"
27695 msgstr "guestfs_aug_mv"
27698 #: ../src/guestfs-actions.pod:551
27702 " guestfs_aug_mv (guestfs_h *g,\n"
27703 " const char *src,\n"
27704 " const char *dest);\n"
27708 " guestfs_aug_mv (guestfs_h *g,\n"
27709 " const char *src,\n"
27710 " const char *dest);\n"
27714 #: ../src/guestfs-actions.pod:563
27715 msgid "guestfs_aug_rm"
27716 msgstr "guestfs_aug_rm"
27719 #: ../src/guestfs-actions.pod:565
27723 " guestfs_aug_rm (guestfs_h *g,\n"
27724 " const char *augpath);\n"
27728 " guestfs_aug_rm (guestfs_h *g,\n"
27729 " const char *augpath);\n"
27733 #: ../src/guestfs-actions.pod:577
27734 msgid "guestfs_aug_save"
27735 msgstr "guestfs_aug_save"
27738 #: ../src/guestfs-actions.pod:579
27742 " guestfs_aug_save (guestfs_h *g);\n"
27746 " guestfs_aug_save (guestfs_h *g);\n"
27750 #: ../src/guestfs-actions.pod:584
27752 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
27757 #: ../src/guestfs-actions.pod:591
27758 msgid "guestfs_aug_set"
27759 msgstr "guestfs_aug_set"
27762 #: ../src/guestfs-actions.pod:593
27766 " guestfs_aug_set (guestfs_h *g,\n"
27767 " const char *augpath,\n"
27768 " const char *val);\n"
27772 " guestfs_aug_set (guestfs_h *g,\n"
27773 " const char *augpath,\n"
27774 " const char *val);\n"
27778 #: ../src/guestfs-actions.pod:600
27780 "In the Augeas API, it is possible to clear a node by setting the value to "
27781 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
27782 "this call. Instead you must use the C<guestfs_aug_clear> call."
27786 #: ../src/guestfs-actions.pod:609
27787 msgid "guestfs_available"
27788 msgstr "guestfs_available"
27791 #: ../src/guestfs-actions.pod:611
27795 " guestfs_available (guestfs_h *g,\n"
27796 " char *const *groups);\n"
27800 " guestfs_available (guestfs_h *g,\n"
27801 " char *const *groups);\n"
27805 #: ../src/guestfs-actions.pod:619
27807 "The libguestfs groups, and the functions that those groups correspond to, "
27808 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
27809 "runtime by calling C<guestfs_available_all_groups>."
27813 #: ../src/guestfs-actions.pod:643
27814 msgid "You must call C<guestfs_launch> before calling this function."
27818 #: ../src/guestfs-actions.pod:665
27820 "This call was added in version C<1.0.80>. In previous versions of "
27821 "libguestfs all you could do would be to speculatively execute a command to "
27822 "find out if the daemon implemented it. See also C<guestfs_version>."
27826 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1692
27827 msgid "(Added in 1.0.80)"
27828 msgstr "(Додано у 1.0.80)"
27831 #: ../src/guestfs-actions.pod:676
27832 msgid "guestfs_available_all_groups"
27833 msgstr "guestfs_available_all_groups"
27836 #: ../src/guestfs-actions.pod:678
27840 " guestfs_available_all_groups (guestfs_h *g);\n"
27844 " guestfs_available_all_groups (guestfs_h *g);\n"
27848 #: ../src/guestfs-actions.pod:681
27850 "This command returns a list of all optional groups that this daemon knows "
27851 "about. Note this returns both supported and unsupported groups. To find "
27852 "out which ones the daemon can actually support you have to call "
27853 "C<guestfs_available> on each member of the returned list."
27857 #: ../src/guestfs-actions.pod:687
27858 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
27862 #: ../src/guestfs-actions.pod:693
27863 msgid "(Added in 1.3.15)"
27864 msgstr "(Додано у 1.3.15)"
27867 #: ../src/guestfs-actions.pod:695
27868 msgid "guestfs_base64_in"
27869 msgstr "guestfs_base64_in"
27872 #: ../src/guestfs-actions.pod:697
27876 " guestfs_base64_in (guestfs_h *g,\n"
27877 " const char *base64file,\n"
27878 " const char *filename);\n"
27882 " guestfs_base64_in (guestfs_h *g,\n"
27883 " const char *base64file,\n"
27884 " const char *filename);\n"
27888 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
27889 msgid "(Added in 1.3.5)"
27890 msgstr "(Додано у 1.3.5)"
27893 #: ../src/guestfs-actions.pod:709
27894 msgid "guestfs_base64_out"
27895 msgstr "guestfs_base64_out"
27898 #: ../src/guestfs-actions.pod:711
27902 " guestfs_base64_out (guestfs_h *g,\n"
27903 " const char *filename,\n"
27904 " const char *base64file);\n"
27908 " guestfs_base64_out (guestfs_h *g,\n"
27909 " const char *filename,\n"
27910 " const char *base64file);\n"
27914 #: ../src/guestfs-actions.pod:723
27916 #| msgid "guestfs_lvuuid"
27917 msgid "guestfs_blkid"
27918 msgstr "guestfs_lvuuid"
27921 #: ../src/guestfs-actions.pod:725
27925 #| " guestfs_lvuuid (guestfs_h *g,\n"
27926 #| " const char *device);\n"
27930 " guestfs_blkid (guestfs_h *g,\n"
27931 " const char *device);\n"
27935 " guestfs_lvuuid (guestfs_h *g,\n"
27936 " const char *device);\n"
27940 #: ../src/guestfs-actions.pod:756 ../src/guestfs-actions.pod:3231
27941 #: ../src/guestfs-actions.pod:3499 ../src/guestfs-actions.pod:4306
27942 #: ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5731
27943 #: ../src/guestfs-actions.pod:7928
27945 "This function returns a NULL-terminated array of strings, or NULL if there "
27946 "was an error. The array of strings will always have length C<2n+1>, where "
27947 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
27948 "caller must free the strings and the array after use>."
27952 #: ../src/guestfs-actions.pod:762
27953 msgid "guestfs_blockdev_flushbufs"
27954 msgstr "guestfs_blockdev_flushbufs"
27957 #: ../src/guestfs-actions.pod:764
27961 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
27962 " const char *device);\n"
27966 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
27967 " const char *device);\n"
27971 #: ../src/guestfs-actions.pod:775 ../src/guestfs-actions.pod:792
27972 #: ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:823
27973 #: ../src/guestfs-actions.pod:841 ../src/guestfs-actions.pod:860
27974 #: ../src/guestfs-actions.pod:874 ../src/guestfs-actions.pod:892
27975 #: ../src/guestfs-actions.pod:906 ../src/guestfs-actions.pod:920
27976 msgid "(Added in 0.9.3)"
27977 msgstr "(Додано у 0.9.3)"
27980 #: ../src/guestfs-actions.pod:777
27981 msgid "guestfs_blockdev_getbsz"
27982 msgstr "guestfs_blockdev_getbsz"
27985 #: ../src/guestfs-actions.pod:779
27989 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
27990 " const char *device);\n"
27994 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
27995 " const char *device);\n"
27999 #: ../src/guestfs-actions.pod:794
28000 msgid "guestfs_blockdev_getro"
28001 msgstr "guestfs_blockdev_getro"
28004 #: ../src/guestfs-actions.pod:796
28008 " guestfs_blockdev_getro (guestfs_h *g,\n"
28009 " const char *device);\n"
28013 " guestfs_blockdev_getro (guestfs_h *g,\n"
28014 " const char *device);\n"
28018 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:1930
28019 #: ../src/guestfs-actions.pod:1945 ../src/guestfs-actions.pod:2434
28020 #: ../src/guestfs-actions.pod:2445 ../src/guestfs-actions.pod:2517
28021 #: ../src/guestfs-actions.pod:2543 ../src/guestfs-actions.pod:2583
28022 #: ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2634
28023 #: ../src/guestfs-actions.pod:2657 ../src/guestfs-actions.pod:3736
28024 #: ../src/guestfs-actions.pod:3752 ../src/guestfs-actions.pod:3770
28025 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:3946
28026 #: ../src/guestfs-actions.pod:3961 ../src/guestfs-actions.pod:3975
28027 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:4006
28028 #: ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:4036
28029 #: ../src/guestfs-actions.pod:4049 ../src/guestfs-actions.pod:4063
28030 #: ../src/guestfs-actions.pod:4078 ../src/guestfs-actions.pod:4093
28031 #: ../src/guestfs-actions.pod:4106 ../src/guestfs-actions.pod:4120
28032 #: ../src/guestfs-actions.pod:5989
28033 msgid "This function returns a C truth value on success or -1 on error."
28037 #: ../src/guestfs-actions.pod:809
28038 msgid "guestfs_blockdev_getsize64"
28039 msgstr "guestfs_blockdev_getsize64"
28042 #: ../src/guestfs-actions.pod:811
28046 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
28047 " const char *device);\n"
28051 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
28052 " const char *device);\n"
28056 #: ../src/guestfs-actions.pod:817
28057 msgid "See also C<guestfs_blockdev_getsz>."
28061 #: ../src/guestfs-actions.pod:825
28062 msgid "guestfs_blockdev_getss"
28063 msgstr "guestfs_blockdev_getss"
28066 #: ../src/guestfs-actions.pod:827
28070 " guestfs_blockdev_getss (guestfs_h *g,\n"
28071 " const char *device);\n"
28075 " guestfs_blockdev_getss (guestfs_h *g,\n"
28076 " const char *device);\n"
28080 #: ../src/guestfs-actions.pod:834
28082 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
28087 #: ../src/guestfs-actions.pod:843
28088 msgid "guestfs_blockdev_getsz"
28089 msgstr "guestfs_blockdev_getsz"
28092 #: ../src/guestfs-actions.pod:845
28096 " guestfs_blockdev_getsz (guestfs_h *g,\n"
28097 " const char *device);\n"
28101 " guestfs_blockdev_getsz (guestfs_h *g,\n"
28102 " const char *device);\n"
28106 #: ../src/guestfs-actions.pod:852
28108 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
28109 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
28113 #: ../src/guestfs-actions.pod:862
28114 msgid "guestfs_blockdev_rereadpt"
28115 msgstr "guestfs_blockdev_rereadpt"
28118 #: ../src/guestfs-actions.pod:864
28122 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
28123 " const char *device);\n"
28127 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
28128 " const char *device);\n"
28132 #: ../src/guestfs-actions.pod:876
28133 msgid "guestfs_blockdev_setbsz"
28134 msgstr "guestfs_blockdev_setbsz"
28137 #: ../src/guestfs-actions.pod:878
28141 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
28142 " const char *device,\n"
28143 " int blocksize);\n"
28147 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
28148 " const char *device,\n"
28149 " int blocksize);\n"
28153 #: ../src/guestfs-actions.pod:894
28154 msgid "guestfs_blockdev_setro"
28155 msgstr "guestfs_blockdev_setro"
28158 #: ../src/guestfs-actions.pod:896
28162 " guestfs_blockdev_setro (guestfs_h *g,\n"
28163 " const char *device);\n"
28167 " guestfs_blockdev_setro (guestfs_h *g,\n"
28168 " const char *device);\n"
28172 #: ../src/guestfs-actions.pod:908
28173 msgid "guestfs_blockdev_setrw"
28174 msgstr "guestfs_blockdev_setrw"
28177 #: ../src/guestfs-actions.pod:910
28181 " guestfs_blockdev_setrw (guestfs_h *g,\n"
28182 " const char *device);\n"
28186 " guestfs_blockdev_setrw (guestfs_h *g,\n"
28187 " const char *device);\n"
28191 #: ../src/guestfs-actions.pod:922
28192 msgid "guestfs_btrfs_filesystem_resize"
28193 msgstr "guestfs_btrfs_filesystem_resize"
28196 #: ../src/guestfs-actions.pod:924
28200 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
28201 " const char *mountpoint,\n"
28206 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
28207 " const char *mountpoint,\n"
28212 #: ../src/guestfs-actions.pod:934
28215 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
28218 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
28222 #: ../src/guestfs-actions.pod:957
28223 msgid "(Added in 1.11.17)"
28224 msgstr "(Додано у 1.11.17)"
28227 #: ../src/guestfs-actions.pod:959
28228 msgid "guestfs_btrfs_filesystem_resize_va"
28229 msgstr "guestfs_btrfs_filesystem_resize_va"
28232 #: ../src/guestfs-actions.pod:961
28236 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
28237 " const char *mountpoint,\n"
28238 " va_list args);\n"
28242 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
28243 " const char *mountpoint,\n"
28244 " va_list args);\n"
28248 #: ../src/guestfs-actions.pod:966
28249 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
28253 #: ../src/guestfs-actions.pod:970
28254 msgid "guestfs_btrfs_filesystem_resize_argv"
28255 msgstr "guestfs_btrfs_filesystem_resize_argv"
28258 #: ../src/guestfs-actions.pod:972
28262 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
28263 " const char *mountpoint,\n"
28264 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
28268 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
28269 " const char *mountpoint,\n"
28270 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
28274 #: ../src/guestfs-actions.pod:977
28275 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
28279 #: ../src/guestfs-actions.pod:981
28280 msgid "guestfs_case_sensitive_path"
28284 #: ../src/guestfs-actions.pod:983
28288 " guestfs_case_sensitive_path (guestfs_h *g,\n"
28289 " const char *path);\n"
28294 #: ../src/guestfs-actions.pod:1009
28296 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return C<"
28297 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
28298 "how the directories were originally created under Windows)."
28302 #: ../src/guestfs-actions.pod:1017
28303 msgid "See also C<guestfs_realpath>."
28307 #: ../src/guestfs-actions.pod:1022 ../src/guestfs-actions.pod:8183
28308 msgid "(Added in 1.0.75)"
28309 msgstr "(Додано у 1.0.75)"
28312 #: ../src/guestfs-actions.pod:1024
28313 msgid "guestfs_cat"
28317 #: ../src/guestfs-actions.pod:1026
28321 " guestfs_cat (guestfs_h *g,\n"
28322 " const char *path);\n"
28327 #: ../src/guestfs-actions.pod:1032
28329 "Note that this function cannot correctly handle binary files (specifically, "
28330 "files containing C<\\0> character which is treated as end of string). For "
28331 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
28332 "functions which have a more complex interface."
28336 #: ../src/guestfs-actions.pod:1043 ../src/guestfs-actions.pod:4250
28337 #: ../src/guestfs-actions.pod:4345 ../src/guestfs-actions.pod:4362
28338 #: ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:4849
28339 #: ../src/guestfs-actions.pod:4863 ../src/guestfs-actions.pod:6390
28340 #: ../src/guestfs-actions.pod:6404 ../src/guestfs-actions.pod:8336
28341 #: ../src/guestfs-actions.pod:8350
28342 msgid "(Added in 0.4)"
28343 msgstr "(Додано у 0.4)"
28346 #: ../src/guestfs-actions.pod:1045
28347 msgid "guestfs_checksum"
28351 #: ../src/guestfs-actions.pod:1047
28355 " guestfs_checksum (guestfs_h *g,\n"
28356 " const char *csumtype,\n"
28357 " const char *path);\n"
28362 #: ../src/guestfs-actions.pod:1093
28363 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
28367 #: ../src/guestfs-actions.pod:1095
28368 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
28372 #: ../src/guestfs-actions.pod:1100 ../src/guestfs-actions.pod:1767
28373 #: ../src/guestfs-actions.pod:2625 ../src/guestfs-actions.pod:3948
28374 #: ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4038
28375 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:8039
28376 msgid "(Added in 1.0.2)"
28377 msgstr "(Додано у 1.0.2)"
28380 #: ../src/guestfs-actions.pod:1102
28381 msgid "guestfs_checksum_device"
28385 #: ../src/guestfs-actions.pod:1104
28389 " guestfs_checksum_device (guestfs_h *g,\n"
28390 " const char *csumtype,\n"
28391 " const char *device);\n"
28396 #: ../src/guestfs-actions.pod:1109
28398 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
28399 "device named C<device>. For the types of checksums supported see the "
28400 "C<guestfs_checksum> command."
28404 #: ../src/guestfs-actions.pod:1116 ../src/guestfs-actions.pod:5822
28405 #: ../src/guestfs-actions.pod:5957 ../src/guestfs-actions.pod:5991
28406 #: ../src/guestfs-actions.pod:6009 ../src/guestfs-actions.pod:6191
28407 #: ../src/guestfs-actions.pod:7948 ../src/guestfs-actions.pod:7962
28408 #: ../src/guestfs-actions.pod:8362
28409 msgid "(Added in 1.3.2)"
28410 msgstr "(Додано у 1.3.2)"
28413 #: ../src/guestfs-actions.pod:1118
28414 msgid "guestfs_checksums_out"
28418 #: ../src/guestfs-actions.pod:1120
28422 " guestfs_checksums_out (guestfs_h *g,\n"
28423 " const char *csumtype,\n"
28424 " const char *directory,\n"
28425 " const char *sumsfile);\n"
28430 #: ../src/guestfs-actions.pod:1140
28431 msgid "(Added in 1.3.7)"
28432 msgstr "(Додано у 1.3.7)"
28435 #: ../src/guestfs-actions.pod:1142
28436 msgid "guestfs_chmod"
28440 #: ../src/guestfs-actions.pod:1144
28444 " guestfs_chmod (guestfs_h *g,\n"
28446 " const char *path);\n"
28451 #: ../src/guestfs-actions.pod:1162
28452 msgid "guestfs_chown"
28456 #: ../src/guestfs-actions.pod:1164
28460 " guestfs_chown (guestfs_h *g,\n"
28463 " const char *path);\n"
28468 #: ../src/guestfs-actions.pod:1180
28469 msgid "guestfs_command"
28473 #: ../src/guestfs-actions.pod:1182
28477 " guestfs_command (guestfs_h *g,\n"
28478 " char *const *arguments);\n"
28483 #: ../src/guestfs-actions.pod:1191
28485 "The single parameter is an argv-style list of arguments. The first element "
28486 "is the name of the program to run. Subsequent elements are parameters. The "
28487 "list must be non-empty (ie. must contain a program name). Note that the "
28488 "command runs directly, and is I<not> invoked via the shell (see "
28493 #: ../src/guestfs-actions.pod:1222 ../src/guestfs-actions.pod:1242
28494 #: ../src/guestfs-actions.pod:2066
28495 msgid "(Added in 0.9.1)"
28496 msgstr "(Додано у 0.9.1)"
28499 #: ../src/guestfs-actions.pod:1224
28500 msgid "guestfs_command_lines"
28504 #: ../src/guestfs-actions.pod:1226
28508 " guestfs_command_lines (guestfs_h *g,\n"
28509 " char *const *arguments);\n"
28514 #: ../src/guestfs-actions.pod:1230
28516 "This is the same as C<guestfs_command>, but splits the result into a list of "
28521 #: ../src/guestfs-actions.pod:1233
28522 msgid "See also: C<guestfs_sh_lines>"
28526 #: ../src/guestfs-actions.pod:1244
28527 msgid "guestfs_compress_device_out"
28531 #: ../src/guestfs-actions.pod:1246
28535 " guestfs_compress_device_out (guestfs_h *g,\n"
28536 " const char *ctype,\n"
28537 " const char *device,\n"
28538 " const char *zdevice,\n"
28544 #: ../src/guestfs-actions.pod:1258
28547 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
28552 #: ../src/guestfs-actions.pod:1263
28554 "The C<ctype> and optional C<level> parameters have the same meaning as in "
28555 "C<guestfs_compress_out>."
28559 #: ../src/guestfs-actions.pod:1268 ../src/guestfs-actions.pod:1327
28560 #: ../src/guestfs-actions.pod:2611 ../src/guestfs-actions.pod:7107
28561 msgid "(Added in 1.13.15)"
28565 #: ../src/guestfs-actions.pod:1270
28566 msgid "guestfs_compress_device_out_va"
28570 #: ../src/guestfs-actions.pod:1272
28574 " guestfs_compress_device_out_va (guestfs_h *g,\n"
28575 " const char *ctype,\n"
28576 " const char *device,\n"
28577 " const char *zdevice,\n"
28578 " va_list args);\n"
28583 #: ../src/guestfs-actions.pod:1279
28584 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
28588 #: ../src/guestfs-actions.pod:1283
28589 msgid "guestfs_compress_device_out_argv"
28593 #: ../src/guestfs-actions.pod:1285
28597 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
28598 " const char *ctype,\n"
28599 " const char *device,\n"
28600 " const char *zdevice,\n"
28601 " const struct guestfs_compress_device_out_argv *optargs);\n"
28606 #: ../src/guestfs-actions.pod:1292
28607 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
28611 #: ../src/guestfs-actions.pod:1296
28612 msgid "guestfs_compress_out"
28616 #: ../src/guestfs-actions.pod:1298
28620 " guestfs_compress_out (guestfs_h *g,\n"
28621 " const char *ctype,\n"
28622 " const char *file,\n"
28623 " const char *zfile,\n"
28629 #: ../src/guestfs-actions.pod:1310
28632 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
28637 #: ../src/guestfs-actions.pod:1329
28638 msgid "guestfs_compress_out_va"
28642 #: ../src/guestfs-actions.pod:1331
28646 " guestfs_compress_out_va (guestfs_h *g,\n"
28647 " const char *ctype,\n"
28648 " const char *file,\n"
28649 " const char *zfile,\n"
28650 " va_list args);\n"
28655 #: ../src/guestfs-actions.pod:1338
28656 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
28660 #: ../src/guestfs-actions.pod:1342
28661 msgid "guestfs_compress_out_argv"
28665 #: ../src/guestfs-actions.pod:1344
28669 " guestfs_compress_out_argv (guestfs_h *g,\n"
28670 " const char *ctype,\n"
28671 " const char *file,\n"
28672 " const char *zfile,\n"
28673 " const struct guestfs_compress_out_argv *optargs);\n"
28678 #: ../src/guestfs-actions.pod:1351
28679 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
28683 #: ../src/guestfs-actions.pod:1355
28684 msgid "guestfs_config"
28688 #: ../src/guestfs-actions.pod:1357
28692 " guestfs_config (guestfs_h *g,\n"
28693 " const char *qemuparam,\n"
28694 " const char *qemuvalue);\n"
28699 #: ../src/guestfs-actions.pod:1375
28700 msgid "guestfs_copy_device_to_device"
28704 #: ../src/guestfs-actions.pod:1377
28708 " guestfs_copy_device_to_device (guestfs_h *g,\n"
28709 " const char *src,\n"
28710 " const char *dest,\n"
28716 #: ../src/guestfs-actions.pod:1388
28719 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
28720 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
28721 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
28726 #: ../src/guestfs-actions.pod:1392
28728 "The four calls C<guestfs_copy_device_to_device>, "
28729 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
28730 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
28731 "destination (device|file)."
28735 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466
28736 #: ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:1577
28737 #: ../src/guestfs-actions.pod:1631 ../src/guestfs-actions.pod:1762
28738 #: ../src/guestfs-actions.pod:1793 ../src/guestfs-actions.pod:1838
28739 #: ../src/guestfs-actions.pod:2215 ../src/guestfs-actions.pod:2237
28740 #: ../src/guestfs-actions.pod:4148 ../src/guestfs-actions.pod:8034
28741 #: ../src/guestfs-actions.pod:8068 ../src/guestfs-actions.pod:8575
28742 #: ../src/guestfs-actions.pod:8598
28744 "This long-running command can generate progress notification messages so "
28745 "that the caller can display a progress bar or indicator. To receive these "
28746 "messages, the caller must register a progress event callback. See L<guestfs"
28747 "(3)/GUESTFS_EVENT_PROGRESS>."
28751 #: ../src/guestfs-actions.pod:1418 ../src/guestfs-actions.pod:1471
28752 #: ../src/guestfs-actions.pod:1524 ../src/guestfs-actions.pod:1582
28753 #: ../src/guestfs-actions.pod:6247
28755 #| msgid "(Added in 1.3.5)"
28756 msgid "(Added in 1.13.25)"
28757 msgstr "(Додано у 1.3.5)"
28760 #: ../src/guestfs-actions.pod:1420
28761 msgid "guestfs_copy_device_to_device_va"
28765 #: ../src/guestfs-actions.pod:1422
28769 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
28770 " const char *src,\n"
28771 " const char *dest,\n"
28772 " va_list args);\n"
28777 #: ../src/guestfs-actions.pod:1428
28778 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
28782 #: ../src/guestfs-actions.pod:1432
28783 msgid "guestfs_copy_device_to_device_argv"
28787 #: ../src/guestfs-actions.pod:1434
28791 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
28792 " const char *src,\n"
28793 " const char *dest,\n"
28794 " const struct guestfs_copy_device_to_device_argv *optargs);\n"
28799 #: ../src/guestfs-actions.pod:1440
28800 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
28804 #: ../src/guestfs-actions.pod:1444
28805 msgid "guestfs_copy_device_to_file"
28809 #: ../src/guestfs-actions.pod:1446
28813 " guestfs_copy_device_to_file (guestfs_h *g,\n"
28814 " const char *src,\n"
28815 " const char *dest,\n"
28821 #: ../src/guestfs-actions.pod:1457
28824 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
28825 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
28826 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
28831 #: ../src/guestfs-actions.pod:1461 ../src/guestfs-actions.pod:1514
28832 #: ../src/guestfs-actions.pod:1567
28834 "See C<guestfs_copy_device_to_device> for a general overview of this call."
28838 #: ../src/guestfs-actions.pod:1473
28839 msgid "guestfs_copy_device_to_file_va"
28843 #: ../src/guestfs-actions.pod:1475
28847 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
28848 " const char *src,\n"
28849 " const char *dest,\n"
28850 " va_list args);\n"
28855 #: ../src/guestfs-actions.pod:1481
28856 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
28860 #: ../src/guestfs-actions.pod:1485
28861 msgid "guestfs_copy_device_to_file_argv"
28865 #: ../src/guestfs-actions.pod:1487
28869 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
28870 " const char *src,\n"
28871 " const char *dest,\n"
28872 " const struct guestfs_copy_device_to_file_argv *optargs);\n"
28877 #: ../src/guestfs-actions.pod:1493
28878 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
28882 #: ../src/guestfs-actions.pod:1497
28883 msgid "guestfs_copy_file_to_device"
28887 #: ../src/guestfs-actions.pod:1499
28891 " guestfs_copy_file_to_device (guestfs_h *g,\n"
28892 " const char *src,\n"
28893 " const char *dest,\n"
28899 #: ../src/guestfs-actions.pod:1510
28902 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
28903 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
28904 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
28909 #: ../src/guestfs-actions.pod:1526
28910 msgid "guestfs_copy_file_to_device_va"
28914 #: ../src/guestfs-actions.pod:1528
28918 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
28919 " const char *src,\n"
28920 " const char *dest,\n"
28921 " va_list args);\n"
28926 #: ../src/guestfs-actions.pod:1534
28927 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
28931 #: ../src/guestfs-actions.pod:1538
28932 msgid "guestfs_copy_file_to_device_argv"
28936 #: ../src/guestfs-actions.pod:1540
28940 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
28941 " const char *src,\n"
28942 " const char *dest,\n"
28943 " const struct guestfs_copy_file_to_device_argv *optargs);\n"
28948 #: ../src/guestfs-actions.pod:1546
28949 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
28953 #: ../src/guestfs-actions.pod:1550
28954 msgid "guestfs_copy_file_to_file"
28958 #: ../src/guestfs-actions.pod:1552
28962 " guestfs_copy_file_to_file (guestfs_h *g,\n"
28963 " const char *src,\n"
28964 " const char *dest,\n"
28970 #: ../src/guestfs-actions.pod:1563
28973 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
28974 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
28975 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
28980 #: ../src/guestfs-actions.pod:1570
28982 "This is B<not> the function you want for copying files. This is for copying "
28983 "blocks within existing files. See C<guestfs_cp>, C<guestfs_cp_a> and "
28984 "C<guestfs_mv> for general file copying and moving functions."
28988 #: ../src/guestfs-actions.pod:1584
28989 msgid "guestfs_copy_file_to_file_va"
28993 #: ../src/guestfs-actions.pod:1586
28997 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
28998 " const char *src,\n"
28999 " const char *dest,\n"
29000 " va_list args);\n"
29005 #: ../src/guestfs-actions.pod:1592
29006 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
29010 #: ../src/guestfs-actions.pod:1596
29011 msgid "guestfs_copy_file_to_file_argv"
29015 #: ../src/guestfs-actions.pod:1598
29019 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
29020 " const char *src,\n"
29021 " const char *dest,\n"
29022 " const struct guestfs_copy_file_to_file_argv *optargs);\n"
29027 #: ../src/guestfs-actions.pod:1604
29028 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
29032 #: ../src/guestfs-actions.pod:1608
29033 msgid "guestfs_copy_size"
29037 #: ../src/guestfs-actions.pod:1610
29041 " guestfs_copy_size (guestfs_h *g,\n"
29042 " const char *src,\n"
29043 " const char *dest,\n"
29044 " int64_t size);\n"
29049 #: ../src/guestfs-actions.pod:1616 ../src/guestfs-actions.pod:1673
29051 "I<This function is deprecated.> In new code, use the L</"
29052 "guestfs_copy_device_to_device> call instead."
29056 #: ../src/guestfs-actions.pod:1636 ../src/guestfs-actions.pod:4876
29057 #: ../src/guestfs-actions.pod:6417 ../src/guestfs-actions.pod:8269
29058 #: ../src/guestfs-actions.pod:8289 ../src/guestfs-actions.pod:8375
29059 msgid "(Added in 1.0.87)"
29060 msgstr "(Додано у 1.0.87)"
29063 #: ../src/guestfs-actions.pod:1638
29068 #: ../src/guestfs-actions.pod:1640
29072 " guestfs_cp (guestfs_h *g,\n"
29073 " const char *src,\n"
29074 " const char *dest);\n"
29079 #: ../src/guestfs-actions.pod:1650 ../src/guestfs-actions.pod:1664
29080 #: ../src/guestfs-actions.pod:1744 ../src/guestfs-actions.pod:1818
29081 #: ../src/guestfs-actions.pod:1932 ../src/guestfs-actions.pod:5769
29082 #: ../src/guestfs-actions.pod:6261
29083 msgid "(Added in 1.0.18)"
29084 msgstr "(Додано у 1.0.18)"
29087 #: ../src/guestfs-actions.pod:1652
29088 msgid "guestfs_cp_a"
29092 #: ../src/guestfs-actions.pod:1654
29096 " guestfs_cp_a (guestfs_h *g,\n"
29097 " const char *src,\n"
29098 " const char *dest);\n"
29103 #: ../src/guestfs-actions.pod:1666
29108 #: ../src/guestfs-actions.pod:1668
29112 " guestfs_dd (guestfs_h *g,\n"
29113 " const char *src,\n"
29114 " const char *dest);\n"
29119 #: ../src/guestfs-actions.pod:1685
29121 "If the destination is a device, it must be as large or larger than the "
29122 "source file or device, otherwise the copy will fail. This command cannot do "
29123 "partial copies (see C<guestfs_copy_device_to_device>)."
29127 #: ../src/guestfs-actions.pod:1694
29132 #: ../src/guestfs-actions.pod:1696
29136 " guestfs_df (guestfs_h *g);\n"
29141 #: ../src/guestfs-actions.pod:1701 ../src/guestfs-actions.pod:1718
29143 "This command is mostly useful for interactive sessions. It is I<not> "
29144 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
29149 #: ../src/guestfs-actions.pod:1708 ../src/guestfs-actions.pod:1725
29150 #: ../src/guestfs-actions.pod:1843 ../src/guestfs-actions.pod:2850
29151 #: ../src/guestfs-actions.pod:2874 ../src/guestfs-actions.pod:2942
29152 #: ../src/guestfs-actions.pod:5135 ../src/guestfs-actions.pod:5669
29153 #: ../src/guestfs-actions.pod:7650 ../src/guestfs-actions.pod:7674
29154 #: ../src/guestfs-actions.pod:8415 ../src/guestfs-actions.pod:8428
29155 #: ../src/guestfs-actions.pod:8441
29156 msgid "(Added in 1.0.54)"
29157 msgstr "(Додано у 1.0.54)"
29160 #: ../src/guestfs-actions.pod:1710
29161 msgid "guestfs_df_h"
29165 #: ../src/guestfs-actions.pod:1712
29169 " guestfs_df_h (guestfs_h *g);\n"
29174 #: ../src/guestfs-actions.pod:1727
29175 msgid "guestfs_dmesg"
29179 #: ../src/guestfs-actions.pod:1729
29183 " guestfs_dmesg (guestfs_h *g);\n"
29188 #: ../src/guestfs-actions.pod:1736
29190 "Another way to get the same information is to enable verbose messages with "
29191 "C<guestfs_set_verbose> or by setting the environment variable "
29192 "C<LIBGUESTFS_DEBUG=1> before running the program."
29196 #: ../src/guestfs-actions.pod:1746
29197 msgid "guestfs_download"
29201 #: ../src/guestfs-actions.pod:1748
29205 " guestfs_download (guestfs_h *g,\n"
29206 " const char *remotefilename,\n"
29207 " const char *filename);\n"
29212 #: ../src/guestfs-actions.pod:1758
29213 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
29217 #: ../src/guestfs-actions.pod:1769
29218 msgid "guestfs_download_offset"
29222 #: ../src/guestfs-actions.pod:1771
29226 " guestfs_download_offset (guestfs_h *g,\n"
29227 " const char *remotefilename,\n"
29228 " const char *filename,\n"
29229 " int64_t offset,\n"
29230 " int64_t size);\n"
29235 #: ../src/guestfs-actions.pod:1784
29237 "Note that there is no limit on the amount of data that can be downloaded "
29238 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
29239 "full amount unless an error occurs."
29243 #: ../src/guestfs-actions.pod:1789
29244 msgid "See also C<guestfs_download>, C<guestfs_pread>."
29248 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:8073
29249 msgid "(Added in 1.5.17)"
29250 msgstr "(Додано у 1.5.17)"
29253 #: ../src/guestfs-actions.pod:1800
29254 msgid "guestfs_drop_caches"
29258 #: ../src/guestfs-actions.pod:1802
29262 " guestfs_drop_caches (guestfs_h *g,\n"
29263 " int whattodrop);\n"
29268 #: ../src/guestfs-actions.pod:1820
29273 #: ../src/guestfs-actions.pod:1822
29277 " guestfs_du (guestfs_h *g,\n"
29278 " const char *path);\n"
29283 #: ../src/guestfs-actions.pod:1845
29284 msgid "guestfs_e2fsck_f"
29288 #: ../src/guestfs-actions.pod:1847
29292 " guestfs_e2fsck_f (guestfs_h *g,\n"
29293 " const char *device);\n"
29298 #: ../src/guestfs-actions.pod:1855
29300 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
29301 "Normally you should use C<guestfs_fsck>."
29305 #: ../src/guestfs-actions.pod:1860
29306 msgid "(Added in 1.0.29)"
29307 msgstr "(Додано у 1.0.29)"
29310 #: ../src/guestfs-actions.pod:1862
29311 msgid "guestfs_echo_daemon"
29312 msgstr "guestfs_echo_daemon"
29315 #: ../src/guestfs-actions.pod:1864
29319 " guestfs_echo_daemon (guestfs_h *g,\n"
29320 " char *const *words);\n"
29324 " guestfs_echo_daemon (guestfs_h *g,\n"
29325 " char *const *words);\n"
29329 #: ../src/guestfs-actions.pod:1873
29330 msgid "See also C<guestfs_ping_daemon>."
29334 #: ../src/guestfs-actions.pod:1878 ../src/guestfs-actions.pod:2636
29335 #: ../src/guestfs-actions.pod:7131
29336 msgid "(Added in 1.0.69)"
29337 msgstr "(Додано у 1.0.69)"
29340 #: ../src/guestfs-actions.pod:1880
29341 msgid "guestfs_egrep"
29342 msgstr "guestfs_egrep"
29345 #: ../src/guestfs-actions.pod:1882
29349 " guestfs_egrep (guestfs_h *g,\n"
29350 " const char *regex,\n"
29351 " const char *path);\n"
29355 " guestfs_egrep (guestfs_h *g,\n"
29356 " const char *regex,\n"
29357 " const char *path);\n"
29361 #: ../src/guestfs-actions.pod:1897 ../src/guestfs-actions.pod:1916
29362 #: ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:2019
29363 #: ../src/guestfs-actions.pod:2038 ../src/guestfs-actions.pod:2766
29364 #: ../src/guestfs-actions.pod:2785 ../src/guestfs-actions.pod:2963
29365 #: ../src/guestfs-actions.pod:2976 ../src/guestfs-actions.pod:2991
29366 #: ../src/guestfs-actions.pod:3037 ../src/guestfs-actions.pod:3059
29367 #: ../src/guestfs-actions.pod:3072 ../src/guestfs-actions.pod:4375
29368 #: ../src/guestfs-actions.pod:4389 ../src/guestfs-actions.pod:4402
29369 #: ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:5557
29370 #: ../src/guestfs-actions.pod:6595 ../src/guestfs-actions.pod:6644
29371 #: ../src/guestfs-actions.pod:7518 ../src/guestfs-actions.pod:7530
29372 #: ../src/guestfs-actions.pod:7543 ../src/guestfs-actions.pod:7556
29373 #: ../src/guestfs-actions.pod:7578 ../src/guestfs-actions.pod:7591
29374 #: ../src/guestfs-actions.pod:7604 ../src/guestfs-actions.pod:7617
29375 #: ../src/guestfs-actions.pod:8533 ../src/guestfs-actions.pod:8552
29376 #: ../src/guestfs-actions.pod:8643 ../src/guestfs-actions.pod:8662
29377 #: ../src/guestfs-actions.pod:8708 ../src/guestfs-actions.pod:8727
29378 msgid "(Added in 1.0.66)"
29379 msgstr "(Додано у 1.0.66)"
29382 #: ../src/guestfs-actions.pod:1899
29383 msgid "guestfs_egrepi"
29384 msgstr "guestfs_egrepi"
29387 #: ../src/guestfs-actions.pod:1901
29391 " guestfs_egrepi (guestfs_h *g,\n"
29392 " const char *regex,\n"
29393 " const char *path);\n"
29398 #: ../src/guestfs-actions.pod:1918
29399 msgid "guestfs_equal"
29403 #: ../src/guestfs-actions.pod:1920
29407 " guestfs_equal (guestfs_h *g,\n"
29408 " const char *file1,\n"
29409 " const char *file2);\n"
29414 #: ../src/guestfs-actions.pod:1934
29415 msgid "guestfs_exists"
29419 #: ../src/guestfs-actions.pod:1936
29423 " guestfs_exists (guestfs_h *g,\n"
29424 " const char *path);\n"
29429 #: ../src/guestfs-actions.pod:1943
29430 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
29434 #: ../src/guestfs-actions.pod:1949
29435 msgid "guestfs_fallocate"
29439 #: ../src/guestfs-actions.pod:1951
29443 " guestfs_fallocate (guestfs_h *g,\n"
29444 " const char *path,\n"
29450 #: ../src/guestfs-actions.pod:1956
29452 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
29457 #: ../src/guestfs-actions.pod:1975
29458 msgid "guestfs_fallocate64"
29462 #: ../src/guestfs-actions.pod:1977
29466 " guestfs_fallocate64 (guestfs_h *g,\n"
29467 " const char *path,\n"
29473 #: ../src/guestfs-actions.pod:1986
29475 "Note that this call allocates disk blocks for the file. To create a sparse "
29476 "file use C<guestfs_truncate_size> instead."
29480 #: ../src/guestfs-actions.pod:1989
29482 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
29483 "oversight it only allowed 30 bit lengths to be specified, effectively "
29484 "limiting the maximum size of files created through that call to 1GB."
29488 #: ../src/guestfs-actions.pod:2000
29489 msgid "(Added in 1.3.17)"
29490 msgstr "(Додано у 1.3.17)"
29493 #: ../src/guestfs-actions.pod:2002
29494 msgid "guestfs_fgrep"
29498 #: ../src/guestfs-actions.pod:2004
29502 " guestfs_fgrep (guestfs_h *g,\n"
29503 " const char *pattern,\n"
29504 " const char *path);\n"
29509 #: ../src/guestfs-actions.pod:2021
29510 msgid "guestfs_fgrepi"
29514 #: ../src/guestfs-actions.pod:2023
29518 " guestfs_fgrepi (guestfs_h *g,\n"
29519 " const char *pattern,\n"
29520 " const char *path);\n"
29525 #: ../src/guestfs-actions.pod:2040
29526 msgid "guestfs_file"
29530 #: ../src/guestfs-actions.pod:2042
29534 " guestfs_file (guestfs_h *g,\n"
29535 " const char *path);\n"
29540 #: ../src/guestfs-actions.pod:2060
29542 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
29543 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
29547 #: ../src/guestfs-actions.pod:2068
29548 msgid "guestfs_file_architecture"
29552 #: ../src/guestfs-actions.pod:2070
29556 " guestfs_file_architecture (guestfs_h *g,\n"
29557 " const char *filename);\n"
29562 #: ../src/guestfs-actions.pod:2178 ../src/guestfs-actions.pod:2341
29563 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:3092
29564 #: ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3260
29565 #: ../src/guestfs-actions.pod:3447 ../src/guestfs-actions.pod:3465
29566 #: ../src/guestfs-actions.pod:3505 ../src/guestfs-actions.pod:3581
29567 #: ../src/guestfs-actions.pod:3682 ../src/guestfs-actions.pod:3919
29568 #: ../src/guestfs-actions.pod:4051
29569 msgid "(Added in 1.5.3)"
29570 msgstr "(Додано у 1.5.3)"
29573 #: ../src/guestfs-actions.pod:2180
29574 msgid "guestfs_filesize"
29578 #: ../src/guestfs-actions.pod:2182
29582 " guestfs_filesize (guestfs_h *g,\n"
29583 " const char *file);\n"
29588 #: ../src/guestfs-actions.pod:2188
29590 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
29591 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
29592 "devices, use C<guestfs_blockdev_getsize64>."
29596 #: ../src/guestfs-actions.pod:2194
29597 msgid "(Added in 1.0.82)"
29598 msgstr "(Додано у 1.0.82)"
29601 #: ../src/guestfs-actions.pod:2196
29602 msgid "guestfs_fill"
29606 #: ../src/guestfs-actions.pod:2198
29610 " guestfs_fill (guestfs_h *g,\n"
29613 " const char *path);\n"
29618 #: ../src/guestfs-actions.pod:2208
29620 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
29621 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
29622 "bytes use C<guestfs_fill_pattern>."
29626 #: ../src/guestfs-actions.pod:2220
29627 msgid "(Added in 1.0.79)"
29628 msgstr "(Додано у 1.0.79)"
29631 #: ../src/guestfs-actions.pod:2222
29632 msgid "guestfs_fill_pattern"
29636 #: ../src/guestfs-actions.pod:2224
29640 " guestfs_fill_pattern (guestfs_h *g,\n"
29641 " const char *pattern,\n"
29643 " const char *path);\n"
29648 #: ../src/guestfs-actions.pod:2230
29650 "This function is like C<guestfs_fill> except that it creates a new file of "
29651 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
29652 "pattern is truncated if necessary to ensure the length of the file is "
29653 "exactly C<len> bytes."
29657 #: ../src/guestfs-actions.pod:2242
29658 msgid "(Added in 1.3.12)"
29659 msgstr "(Додано у 1.3.12)"
29662 #: ../src/guestfs-actions.pod:2244
29663 msgid "guestfs_find"
29667 #: ../src/guestfs-actions.pod:2246
29671 " guestfs_find (guestfs_h *g,\n"
29672 " const char *directory);\n"
29677 #: ../src/guestfs-actions.pod:2262
29679 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
29683 #: ../src/guestfs-actions.pod:2275
29684 msgid "See also C<guestfs_find0>."
29688 #: ../src/guestfs-actions.pod:2284 ../src/guestfs-actions.pod:4813
29689 #: ../src/guestfs-actions.pod:6679
29690 msgid "(Added in 1.0.27)"
29691 msgstr "(Додано у 1.0.27)"
29694 #: ../src/guestfs-actions.pod:2286
29695 msgid "guestfs_find0"
29699 #: ../src/guestfs-actions.pod:2288
29703 " guestfs_find0 (guestfs_h *g,\n"
29704 " const char *directory,\n"
29705 " const char *files);\n"
29710 #: ../src/guestfs-actions.pod:2297
29712 "This command works the same way as C<guestfs_find> with the following "
29717 #: ../src/guestfs-actions.pod:2324
29718 msgid "(Added in 1.0.74)"
29719 msgstr "(Додано у 1.0.74)"
29722 #: ../src/guestfs-actions.pod:2326
29723 msgid "guestfs_findfs_label"
29727 #: ../src/guestfs-actions.pod:2328
29731 " guestfs_findfs_label (guestfs_h *g,\n"
29732 " const char *label);\n"
29737 #: ../src/guestfs-actions.pod:2336
29738 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
29742 #: ../src/guestfs-actions.pod:2343
29743 msgid "guestfs_findfs_uuid"
29747 #: ../src/guestfs-actions.pod:2345
29751 " guestfs_findfs_uuid (guestfs_h *g,\n"
29752 " const char *uuid);\n"
29757 #: ../src/guestfs-actions.pod:2353
29758 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
29762 #: ../src/guestfs-actions.pod:2360
29763 msgid "guestfs_fsck"
29767 #: ../src/guestfs-actions.pod:2362
29771 " guestfs_fsck (guestfs_h *g,\n"
29772 " const char *fstype,\n"
29773 " const char *device);\n"
29778 #: ../src/guestfs-actions.pod:2397 ../src/guestfs-actions.pod:8580
29779 msgid "(Added in 1.0.16)"
29780 msgstr "(Додано у 1.0.16)"
29783 #: ../src/guestfs-actions.pod:2399
29784 msgid "guestfs_get_append"
29788 #: ../src/guestfs-actions.pod:2401
29792 " guestfs_get_append (guestfs_h *g);\n"
29797 #: ../src/guestfs-actions.pod:2409
29799 "This function returns a string which may be NULL. There is no way to return "
29800 "an error from this function. The string is owned by the guest handle and "
29801 "must I<not> be freed."
29805 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:6357
29806 #: ../src/guestfs-actions.pod:6836 ../src/guestfs-actions.pod:7285
29807 #: ../src/guestfs-actions.pod:7304 ../src/guestfs-actions.pod:7320
29808 #: ../src/guestfs-actions.pod:7344 ../src/guestfs-actions.pod:8220
29809 #: ../src/guestfs-actions.pod:8235 ../src/guestfs-actions.pod:8624
29810 msgid "(Added in 1.0.26)"
29811 msgstr "(Додано у 1.0.26)"
29814 #: ../src/guestfs-actions.pod:2415
29815 msgid "guestfs_get_attach_method"
29819 #: ../src/guestfs-actions.pod:2417
29823 " guestfs_get_attach_method (guestfs_h *g);\n"
29828 #: ../src/guestfs-actions.pod:2420
29829 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
29833 #: ../src/guestfs-actions.pod:2425 ../src/guestfs-actions.pod:6866
29834 msgid "(Added in 1.9.8)"
29835 msgstr "(Додано у 1.9.8)"
29838 #: ../src/guestfs-actions.pod:2427
29839 msgid "guestfs_get_autosync"
29843 #: ../src/guestfs-actions.pod:2429
29847 " guestfs_get_autosync (guestfs_h *g);\n"
29852 #: ../src/guestfs-actions.pod:2438
29853 msgid "guestfs_get_direct"
29857 #: ../src/guestfs-actions.pod:2440
29861 " guestfs_get_direct (guestfs_h *g);\n"
29866 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:6907
29867 msgid "(Added in 1.0.72)"
29868 msgstr "(Додано у 1.0.72)"
29871 #: ../src/guestfs-actions.pod:2449
29872 msgid "guestfs_get_e2label"
29876 #: ../src/guestfs-actions.pod:2451
29880 " guestfs_get_e2label (guestfs_h *g,\n"
29881 " const char *device);\n"
29886 #: ../src/guestfs-actions.pod:2455
29888 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
29893 #: ../src/guestfs-actions.pod:2468 ../src/guestfs-actions.pod:2489
29894 #: ../src/guestfs-actions.pod:6925 ../src/guestfs-actions.pod:6944
29895 msgid "(Added in 1.0.15)"
29896 msgstr "(Додано у 1.0.15)"
29899 #: ../src/guestfs-actions.pod:2470
29900 msgid "guestfs_get_e2uuid"
29904 #: ../src/guestfs-actions.pod:2472
29908 " guestfs_get_e2uuid (guestfs_h *g,\n"
29909 " const char *device);\n"
29914 #: ../src/guestfs-actions.pod:2476
29916 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
29921 #: ../src/guestfs-actions.pod:2491
29922 msgid "guestfs_get_memsize"
29926 #: ../src/guestfs-actions.pod:2493
29930 " guestfs_get_memsize (guestfs_h *g);\n"
29935 #: ../src/guestfs-actions.pod:2499
29937 "If C<guestfs_set_memsize> was not called on this handle, and if "
29938 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
29939 "value for memsize."
29943 #: ../src/guestfs-actions.pod:2508 ../src/guestfs-actions.pod:5253
29944 #: ../src/guestfs-actions.pod:5462 ../src/guestfs-actions.pod:5481
29945 #: ../src/guestfs-actions.pod:5500 ../src/guestfs-actions.pod:5512
29946 #: ../src/guestfs-actions.pod:5529 ../src/guestfs-actions.pod:5542
29947 #: ../src/guestfs-actions.pod:6582 ../src/guestfs-actions.pod:6965
29948 #: ../src/guestfs-actions.pod:7255 ../src/guestfs-actions.pod:7989
29949 msgid "(Added in 1.0.55)"
29950 msgstr "(Додано у 1.0.55)"
29953 #: ../src/guestfs-actions.pod:2510
29954 msgid "guestfs_get_network"
29958 #: ../src/guestfs-actions.pod:2512
29962 " guestfs_get_network (guestfs_h *g);\n"
29967 #: ../src/guestfs-actions.pod:2519 ../src/guestfs-actions.pod:6984
29968 msgid "(Added in 1.5.4)"
29969 msgstr "(Додано у 1.5.4)"
29972 #: ../src/guestfs-actions.pod:2521
29973 msgid "guestfs_get_path"
29977 #: ../src/guestfs-actions.pod:2523
29981 " guestfs_get_path (guestfs_h *g);\n"
29986 #: ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:2571
29988 "This function returns a string, or NULL on error. The string is owned by "
29989 "the guest handle and must I<not> be freed."
29993 #: ../src/guestfs-actions.pod:2536
29994 msgid "guestfs_get_pgroup"
29998 #: ../src/guestfs-actions.pod:2538
30002 " guestfs_get_pgroup (guestfs_h *g);\n"
30007 #: ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:7020
30008 #: ../src/guestfs-actions.pod:8481
30009 msgid "(Added in 1.11.18)"
30010 msgstr "(Додано у 1.11.18)"
30013 #: ../src/guestfs-actions.pod:2547
30014 msgid "guestfs_get_pid"
30018 #: ../src/guestfs-actions.pod:2549
30022 " guestfs_get_pid (guestfs_h *g);\n"
30027 #: ../src/guestfs-actions.pod:2559
30028 msgid "(Added in 1.0.56)"
30029 msgstr "(Додано у 1.0.56)"
30032 #: ../src/guestfs-actions.pod:2561
30033 msgid "guestfs_get_qemu"
30037 #: ../src/guestfs-actions.pod:2563
30041 " guestfs_get_qemu (guestfs_h *g);\n"
30046 #: ../src/guestfs-actions.pod:2574 ../src/guestfs-actions.pod:7048
30047 msgid "(Added in 1.0.6)"
30048 msgstr "(Додано у 1.0.6)"
30051 #: ../src/guestfs-actions.pod:2576
30052 msgid "guestfs_get_recovery_proc"
30056 #: ../src/guestfs-actions.pod:2578
30060 " guestfs_get_recovery_proc (guestfs_h *g);\n"
30065 #: ../src/guestfs-actions.pod:2585 ../src/guestfs-actions.pod:4173
30066 #: ../src/guestfs-actions.pod:4517 ../src/guestfs-actions.pod:4911
30067 #: ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:6287
30068 #: ../src/guestfs-actions.pod:6630 ../src/guestfs-actions.pod:7072
30069 #: ../src/guestfs-actions.pod:7770 ../src/guestfs-actions.pod:7790
30070 #: ../src/guestfs-actions.pod:8104
30071 msgid "(Added in 1.0.77)"
30072 msgstr "(Додано у 1.0.77)"
30075 #: ../src/guestfs-actions.pod:2587
30076 msgid "guestfs_get_selinux"
30080 #: ../src/guestfs-actions.pod:2589
30084 " guestfs_get_selinux (guestfs_h *g);\n"
30089 #: ../src/guestfs-actions.pod:2592
30091 "This returns the current setting of the selinux flag which is passed to the "
30092 "appliance at boot time. See C<guestfs_set_selinux>."
30096 #: ../src/guestfs-actions.pod:2600 ../src/guestfs-actions.pod:2674
30097 #: ../src/guestfs-actions.pod:7091 ../src/guestfs-actions.pod:7165
30098 msgid "(Added in 1.0.67)"
30099 msgstr "(Додано у 1.0.67)"
30102 #: ../src/guestfs-actions.pod:2602
30103 msgid "guestfs_get_smp"
30107 #: ../src/guestfs-actions.pod:2604
30111 " guestfs_get_smp (guestfs_h *g);\n"
30116 #: ../src/guestfs-actions.pod:2613
30117 msgid "guestfs_get_state"
30121 #: ../src/guestfs-actions.pod:2615
30125 " guestfs_get_state (guestfs_h *g);\n"
30130 #: ../src/guestfs-actions.pod:2627
30131 msgid "guestfs_get_trace"
30135 #: ../src/guestfs-actions.pod:2629
30139 " guestfs_get_trace (guestfs_h *g);\n"
30144 #: ../src/guestfs-actions.pod:2638
30145 msgid "guestfs_get_umask"
30149 #: ../src/guestfs-actions.pod:2640
30153 " guestfs_get_umask (guestfs_h *g);\n"
30158 #: ../src/guestfs-actions.pod:2643
30160 "Return the current umask. By default the umask is C<022> unless it has been "
30161 "set by calling C<guestfs_umask>."
30165 #: ../src/guestfs-actions.pod:2650
30166 msgid "guestfs_get_verbose"
30170 #: ../src/guestfs-actions.pod:2652
30174 " guestfs_get_verbose (guestfs_h *g);\n"
30179 #: ../src/guestfs-actions.pod:2661
30180 msgid "guestfs_getcon"
30184 #: ../src/guestfs-actions.pod:2663
30188 " guestfs_getcon (guestfs_h *g);\n"
30193 #: ../src/guestfs-actions.pod:2668
30195 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
30199 #: ../src/guestfs-actions.pod:2676
30200 msgid "guestfs_getxattr"
30204 #: ../src/guestfs-actions.pod:2678
30208 " guestfs_getxattr (guestfs_h *g,\n"
30209 " const char *path,\n"
30210 " const char *name,\n"
30211 " size_t *size_r);\n"
30216 #: ../src/guestfs-actions.pod:2684
30218 "Get a single extended attribute from file C<path> named C<name>. This call "
30219 "follows symlinks. If you want to lookup an extended attribute for the "
30220 "symlink itself, use C<guestfs_lgetxattr>."
30224 #: ../src/guestfs-actions.pod:2688 ../src/guestfs-actions.pod:4187
30226 "Normally it is better to get all extended attributes from a file in one go "
30227 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
30228 "implementations are buggy and do not provide a way to list out attributes. "
30229 "For these filesystems (notably ntfs-3g) you have to know the names of the "
30230 "extended attributes you want in advance and call this function."
30234 #: ../src/guestfs-actions.pod:2698
30235 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
30239 #: ../src/guestfs-actions.pod:2700 ../src/guestfs-actions.pod:2913
30240 #: ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:4199
30241 #: ../src/guestfs-actions.pod:6280 ../src/guestfs-actions.pod:6306
30242 #: ../src/guestfs-actions.pod:6487
30244 "This function returns a buffer, or NULL on error. The size of the returned "
30245 "buffer is written to C<*size_r>. I<The caller must free the returned buffer "
30250 #: ../src/guestfs-actions.pod:2704 ../src/guestfs-actions.pod:4203
30251 msgid "(Added in 1.7.24)"
30252 msgstr "(Додано у 1.7.24)"
30255 #: ../src/guestfs-actions.pod:2706
30256 msgid "guestfs_getxattrs"
30260 #: ../src/guestfs-actions.pod:2708
30263 " struct guestfs_xattr_list *\n"
30264 " guestfs_getxattrs (guestfs_h *g,\n"
30265 " const char *path);\n"
30270 #: ../src/guestfs-actions.pod:2718
30271 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
30275 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:4215
30276 #: ../src/guestfs-actions.pod:4907
30278 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
30279 "an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
30283 #: ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:4219
30284 #: ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:4467
30285 #: ../src/guestfs-actions.pod:6660 ../src/guestfs-actions.pod:7184
30286 #: ../src/guestfs-actions.pod:8689
30287 msgid "(Added in 1.0.59)"
30288 msgstr "(Додано у 1.0.59)"
30291 #: ../src/guestfs-actions.pod:2726
30292 msgid "guestfs_glob_expand"
30296 #: ../src/guestfs-actions.pod:2728
30300 " guestfs_glob_expand (guestfs_h *g,\n"
30301 " const char *pattern);\n"
30306 #: ../src/guestfs-actions.pod:2747 ../src/guestfs-actions.pod:7368
30307 #: ../src/guestfs-actions.pod:7385
30308 msgid "(Added in 1.0.50)"
30309 msgstr "(Додано у 1.0.50)"
30312 #: ../src/guestfs-actions.pod:2749
30313 msgid "guestfs_grep"
30317 #: ../src/guestfs-actions.pod:2751
30321 " guestfs_grep (guestfs_h *g,\n"
30322 " const char *regex,\n"
30323 " const char *path);\n"
30328 #: ../src/guestfs-actions.pod:2768
30329 msgid "guestfs_grepi"
30333 #: ../src/guestfs-actions.pod:2770
30337 " guestfs_grepi (guestfs_h *g,\n"
30338 " const char *regex,\n"
30339 " const char *path);\n"
30344 #: ../src/guestfs-actions.pod:2787
30345 msgid "guestfs_grub_install"
30349 #: ../src/guestfs-actions.pod:2789
30353 " guestfs_grub_install (guestfs_h *g,\n"
30354 " const char *root,\n"
30355 " const char *device);\n"
30360 #: ../src/guestfs-actions.pod:2832
30361 msgid "(Added in 1.0.17)"
30362 msgstr "(Додано у 1.0.17)"
30365 #: ../src/guestfs-actions.pod:2834
30366 msgid "guestfs_head"
30370 #: ../src/guestfs-actions.pod:2836
30374 " guestfs_head (guestfs_h *g,\n"
30375 " const char *path);\n"
30380 #: ../src/guestfs-actions.pod:2852
30381 msgid "guestfs_head_n"
30385 #: ../src/guestfs-actions.pod:2854
30389 " guestfs_head_n (guestfs_h *g,\n"
30391 " const char *path);\n"
30396 #: ../src/guestfs-actions.pod:2876
30397 msgid "guestfs_hexdump"
30401 #: ../src/guestfs-actions.pod:2878
30405 " guestfs_hexdump (guestfs_h *g,\n"
30406 " const char *path);\n"
30411 #: ../src/guestfs-actions.pod:2891 ../src/guestfs-actions.pod:7449
30412 #: ../src/guestfs-actions.pod:7504
30413 msgid "(Added in 1.0.22)"
30414 msgstr "(Додано у 1.0.22)"
30417 #: ../src/guestfs-actions.pod:2893
30418 msgid "guestfs_initrd_cat"
30422 #: ../src/guestfs-actions.pod:2895
30426 " guestfs_initrd_cat (guestfs_h *g,\n"
30427 " const char *initrdpath,\n"
30428 " const char *filename,\n"
30429 " size_t *size_r);\n"
30434 #: ../src/guestfs-actions.pod:2911
30435 msgid "See also C<guestfs_initrd_list>."
30439 #: ../src/guestfs-actions.pod:2922
30440 msgid "guestfs_initrd_list"
30444 #: ../src/guestfs-actions.pod:2924
30448 " guestfs_initrd_list (guestfs_h *g,\n"
30449 " const char *path);\n"
30454 #: ../src/guestfs-actions.pod:2944
30455 msgid "guestfs_inotify_add_watch"
30459 #: ../src/guestfs-actions.pod:2946
30463 " guestfs_inotify_add_watch (guestfs_h *g,\n"
30464 " const char *path,\n"
30470 #: ../src/guestfs-actions.pod:2965
30471 msgid "guestfs_inotify_close"
30475 #: ../src/guestfs-actions.pod:2967
30479 " guestfs_inotify_close (guestfs_h *g);\n"
30484 #: ../src/guestfs-actions.pod:2978
30485 msgid "guestfs_inotify_files"
30489 #: ../src/guestfs-actions.pod:2980
30493 " guestfs_inotify_files (guestfs_h *g);\n"
30498 #: ../src/guestfs-actions.pod:2983
30500 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
30501 "returns a list of pathnames of objects that were touched. The returned "
30502 "pathnames are sorted and deduplicated."
30506 #: ../src/guestfs-actions.pod:2993
30507 msgid "guestfs_inotify_init"
30511 #: ../src/guestfs-actions.pod:2995
30515 " guestfs_inotify_init (guestfs_h *g,\n"
30516 " int maxevents);\n"
30521 #: ../src/guestfs-actions.pod:3003
30523 "C<maxevents> is the maximum number of events which will be queued up between "
30524 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
30525 "passed as C<0>, then the kernel (or previously set) default is used. For "
30526 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
30527 "throws away events, but records the fact that it threw them away by setting "
30528 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
30529 "C<guestfs_inotify_read>)."
30533 #: ../src/guestfs-actions.pod:3013
30535 "Before any events are generated, you have to add some watches to the "
30536 "internal watch list. See: C<guestfs_inotify_add_watch>, "
30537 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
30541 #: ../src/guestfs-actions.pod:3019
30543 "Queued up events should be read periodically by calling "
30544 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
30545 "wrapper around C<guestfs_inotify_read>). If you don't read the events out "
30546 "often enough then you risk the internal queue overflowing."
30550 #: ../src/guestfs-actions.pod:3026
30552 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
30553 "This also removes any watches automatically."
30557 #: ../src/guestfs-actions.pod:3039
30558 msgid "guestfs_inotify_read"
30562 #: ../src/guestfs-actions.pod:3041
30565 " struct guestfs_inotify_event_list *\n"
30566 " guestfs_inotify_read (guestfs_h *g);\n"
30571 #: ../src/guestfs-actions.pod:3055
30573 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
30574 "there was an error. I<The caller must call "
30575 "C<guestfs_free_inotify_event_list> after use>."
30579 #: ../src/guestfs-actions.pod:3061
30580 msgid "guestfs_inotify_rm_watch"
30584 #: ../src/guestfs-actions.pod:3063
30588 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
30594 #: ../src/guestfs-actions.pod:3067
30596 "Remove a previously defined inotify watch. See C<guestfs_inotify_add_watch>."
30600 #: ../src/guestfs-actions.pod:3074
30601 msgid "guestfs_inspect_get_arch"
30605 #: ../src/guestfs-actions.pod:3076
30609 " guestfs_inspect_get_arch (guestfs_h *g,\n"
30610 " const char *root);\n"
30615 #: ../src/guestfs-actions.pod:3080
30617 "This returns the architecture of the inspected operating system. The "
30618 "possible return values are listed under C<guestfs_file_architecture>."
30622 #: ../src/guestfs-actions.pod:3094
30623 msgid "guestfs_inspect_get_distro"
30627 #: ../src/guestfs-actions.pod:3096
30631 " guestfs_inspect_get_distro (guestfs_h *g,\n"
30632 " const char *root);\n"
30637 #: ../src/guestfs-actions.pod:3196
30638 msgid "guestfs_inspect_get_drive_mappings"
30642 #: ../src/guestfs-actions.pod:3198
30646 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
30647 " const char *root);\n"
30652 #: ../src/guestfs-actions.pod:3227
30654 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
30655 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
30659 #: ../src/guestfs-actions.pod:3237 ../src/guestfs-actions.pod:3702
30660 msgid "(Added in 1.9.17)"
30661 msgstr "(Додано у 1.9.17)"
30664 #: ../src/guestfs-actions.pod:3239
30665 msgid "guestfs_inspect_get_filesystems"
30669 #: ../src/guestfs-actions.pod:3241
30673 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
30674 " const char *root);\n"
30679 #: ../src/guestfs-actions.pod:3253
30681 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
30682 "C<guestfs_inspect_get_mountpoints>."
30686 #: ../src/guestfs-actions.pod:3262
30687 msgid "guestfs_inspect_get_format"
30691 #: ../src/guestfs-actions.pod:3264
30695 " guestfs_inspect_get_format (guestfs_h *g,\n"
30696 " const char *root);\n"
30701 #: ../src/guestfs-actions.pod:3298 ../src/guestfs-actions.pod:3738
30702 #: ../src/guestfs-actions.pod:3754 ../src/guestfs-actions.pod:3772
30703 #: ../src/guestfs-actions.pod:6698
30704 msgid "(Added in 1.9.4)"
30705 msgstr "(Додано у 1.9.4)"
30708 #: ../src/guestfs-actions.pod:3300
30709 msgid "guestfs_inspect_get_hostname"
30713 #: ../src/guestfs-actions.pod:3302
30717 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
30718 " const char *root);\n"
30723 #: ../src/guestfs-actions.pod:3317
30724 msgid "(Added in 1.7.9)"
30725 msgstr "(Додано у 1.7.9)"
30728 #: ../src/guestfs-actions.pod:3319
30729 msgid "guestfs_inspect_get_icon"
30733 #: ../src/guestfs-actions.pod:3321
30737 " guestfs_inspect_get_icon (guestfs_h *g,\n"
30738 " const char *root,\n"
30739 " size_t *size_r,\n"
30745 #: ../src/guestfs-actions.pod:3332
30748 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
30749 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
30754 #: ../src/guestfs-actions.pod:3399 ../src/guestfs-actions.pod:4233
30755 #: ../src/guestfs-actions.pod:5630
30756 msgid "(Added in 1.11.12)"
30757 msgstr "(Додано у 1.11.12)"
30760 #: ../src/guestfs-actions.pod:3401
30761 msgid "guestfs_inspect_get_icon_va"
30765 #: ../src/guestfs-actions.pod:3403
30769 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
30770 " const char *root,\n"
30771 " size_t *size_r,\n"
30772 " va_list args);\n"
30777 #: ../src/guestfs-actions.pod:3409
30778 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
30782 #: ../src/guestfs-actions.pod:3413
30783 msgid "guestfs_inspect_get_icon_argv"
30787 #: ../src/guestfs-actions.pod:3415
30791 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
30792 " const char *root,\n"
30793 " size_t *size_r,\n"
30794 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
30799 #: ../src/guestfs-actions.pod:3421
30800 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
30804 #: ../src/guestfs-actions.pod:3425
30805 msgid "guestfs_inspect_get_major_version"
30809 #: ../src/guestfs-actions.pod:3427
30813 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
30814 " const char *root);\n"
30819 #: ../src/guestfs-actions.pod:3449
30820 msgid "guestfs_inspect_get_minor_version"
30824 #: ../src/guestfs-actions.pod:3451
30828 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
30829 " const char *root);\n"
30834 #: ../src/guestfs-actions.pod:3460
30836 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
30837 "C<guestfs_inspect_get_major_version>."
30841 #: ../src/guestfs-actions.pod:3467
30842 msgid "guestfs_inspect_get_mountpoints"
30846 #: ../src/guestfs-actions.pod:3469
30850 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
30851 " const char *root);\n"
30856 #: ../src/guestfs-actions.pod:3490
30858 "For operating systems like Windows which still use drive letters, this call "
30859 "will only return an entry for the first drive \"mounted on\" C</>. For "
30860 "information about the mapping of drive letters to partitions, see "
30861 "C<guestfs_inspect_get_drive_mappings>."
30865 #: ../src/guestfs-actions.pod:3496
30867 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
30868 "C<guestfs_inspect_get_filesystems>."
30872 #: ../src/guestfs-actions.pod:3507
30873 msgid "guestfs_inspect_get_package_format"
30877 #: ../src/guestfs-actions.pod:3509
30881 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
30882 " const char *root);\n"
30887 #: ../src/guestfs-actions.pod:3513
30889 "This function and C<guestfs_inspect_get_package_management> return the "
30890 "package format and package management tool used by the inspected operating "
30891 "system. For example for Fedora these functions would return C<rpm> (package "
30892 "format) and C<yum> (package management)."
30896 #: ../src/guestfs-actions.pod:3532 ../src/guestfs-actions.pod:3560
30897 msgid "(Added in 1.7.5)"
30898 msgstr "(Додано у 1.7.5)"
30901 #: ../src/guestfs-actions.pod:3534
30902 msgid "guestfs_inspect_get_package_management"
30906 #: ../src/guestfs-actions.pod:3536
30910 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
30911 " const char *root);\n"
30916 #: ../src/guestfs-actions.pod:3540
30918 "C<guestfs_inspect_get_package_format> and this function return the package "
30919 "format and package management tool used by the inspected operating system. "
30920 "For example for Fedora these functions would return C<rpm> (package format) "
30921 "and C<yum> (package management)."
30925 #: ../src/guestfs-actions.pod:3562
30926 msgid "guestfs_inspect_get_product_name"
30930 #: ../src/guestfs-actions.pod:3564
30934 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
30935 " const char *root);\n"
30940 #: ../src/guestfs-actions.pod:3583
30941 msgid "guestfs_inspect_get_product_variant"
30945 #: ../src/guestfs-actions.pod:3585
30949 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
30950 " const char *root);\n"
30955 #: ../src/guestfs-actions.pod:3608
30957 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
30958 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
30962 #: ../src/guestfs-actions.pod:3615
30963 msgid "(Added in 1.9.13)"
30964 msgstr "(Додано у 1.9.13)"
30967 #: ../src/guestfs-actions.pod:3617
30968 msgid "guestfs_inspect_get_roots"
30972 #: ../src/guestfs-actions.pod:3619
30976 " guestfs_inspect_get_roots (guestfs_h *g);\n"
30981 #: ../src/guestfs-actions.pod:3622
30983 "This function is a convenient way to get the list of root devices, as "
30984 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
30985 "the whole inspection process."
30989 #: ../src/guestfs-actions.pod:3626
30991 "This returns an empty list if either no root devices were found or the "
30992 "caller has not called C<guestfs_inspect_os>."
30996 #: ../src/guestfs-actions.pod:3635
30997 msgid "(Added in 1.7.3)"
30998 msgstr "(Додано у 1.7.3)"
31001 #: ../src/guestfs-actions.pod:3637
31002 msgid "guestfs_inspect_get_type"
31006 #: ../src/guestfs-actions.pod:3639
31010 " guestfs_inspect_get_type (guestfs_h *g,\n"
31011 " const char *root);\n"
31016 #: ../src/guestfs-actions.pod:3684
31017 msgid "guestfs_inspect_get_windows_current_control_set"
31021 #: ../src/guestfs-actions.pod:3686
31025 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
31026 " const char *root);\n"
31031 #: ../src/guestfs-actions.pod:3704
31032 msgid "guestfs_inspect_get_windows_systemroot"
31036 #: ../src/guestfs-actions.pod:3706
31040 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
31041 " const char *root);\n"
31046 #: ../src/guestfs-actions.pod:3722
31047 msgid "(Added in 1.5.25)"
31048 msgstr "(Додано у 1.5.25)"
31051 #: ../src/guestfs-actions.pod:3724
31052 msgid "guestfs_inspect_is_live"
31056 #: ../src/guestfs-actions.pod:3726
31060 " guestfs_inspect_is_live (guestfs_h *g,\n"
31061 " const char *root);\n"
31066 #: ../src/guestfs-actions.pod:3730
31068 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
31069 "disk), then this returns true if a live image was detected on the disk."
31073 #: ../src/guestfs-actions.pod:3740
31074 msgid "guestfs_inspect_is_multipart"
31078 #: ../src/guestfs-actions.pod:3742
31082 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
31083 " const char *root);\n"
31088 #: ../src/guestfs-actions.pod:3746
31090 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
31091 "disk), then this returns true if the disk is part of a set."
31095 #: ../src/guestfs-actions.pod:3756
31096 msgid "guestfs_inspect_is_netinst"
31100 #: ../src/guestfs-actions.pod:3758
31104 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
31105 " const char *root);\n"
31110 #: ../src/guestfs-actions.pod:3762
31112 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
31113 "disk), then this returns true if the disk is a network installer, ie. not a "
31114 "self-contained install CD but one which is likely to require network access "
31115 "to complete the install."
31119 #: ../src/guestfs-actions.pod:3774
31120 msgid "guestfs_inspect_list_applications"
31124 #: ../src/guestfs-actions.pod:3776
31127 " struct guestfs_application_list *\n"
31128 " guestfs_inspect_list_applications (guestfs_h *g,\n"
31129 " const char *root);\n"
31134 #: ../src/guestfs-actions.pod:3782
31136 "I<Note:> This call works differently from other parts of the inspection "
31137 "API. You have to call C<guestfs_inspect_os>, then "
31138 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
31139 "this. Listing applications is a significantly more difficult operation "
31140 "which requires access to the full filesystem. Also note that unlike the "
31141 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
31142 "the libguestfs handle, this call actually reads parts of the mounted "
31143 "filesystems during the call."
31147 #: ../src/guestfs-actions.pod:3872
31149 "This function returns a C<struct guestfs_application_list *>, or NULL if "
31150 "there was an error. I<The caller must call C<guestfs_free_application_list> "
31155 #: ../src/guestfs-actions.pod:3876
31156 msgid "(Added in 1.7.8)"
31157 msgstr "(Додано у 1.7.8)"
31160 #: ../src/guestfs-actions.pod:3878
31161 msgid "guestfs_inspect_os"
31165 #: ../src/guestfs-actions.pod:3880
31169 " guestfs_inspect_os (guestfs_h *g);\n"
31174 #: ../src/guestfs-actions.pod:3896
31176 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
31177 "functions in order to query further information about each operating system, "
31178 "such as the name and version."
31182 #: ../src/guestfs-actions.pod:3901
31184 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
31185 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
31186 "the contents. This should be called with no disks currently mounted. The "
31187 "function may also use Augeas, so any existing Augeas handle will be closed."
31191 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:4244
31192 #: ../src/guestfs-actions.pod:4339
31193 msgid "See also C<guestfs_list_filesystems>."
31197 #: ../src/guestfs-actions.pod:3921
31198 msgid "guestfs_is_blockdev"
31202 #: ../src/guestfs-actions.pod:3923
31206 " guestfs_is_blockdev (guestfs_h *g,\n"
31207 " const char *path);\n"
31212 #: ../src/guestfs-actions.pod:3930 ../src/guestfs-actions.pod:3959
31213 #: ../src/guestfs-actions.pod:3989 ../src/guestfs-actions.pod:4004
31214 #: ../src/guestfs-actions.pod:4020 ../src/guestfs-actions.pod:4076
31215 #: ../src/guestfs-actions.pod:4091
31216 msgid "See also C<guestfs_stat>."
31220 #: ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3963
31221 #: ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4080
31222 #: ../src/guestfs-actions.pod:4095
31223 msgid "(Added in 1.5.10)"
31224 msgstr "(Додано у 1.5.10)"
31227 #: ../src/guestfs-actions.pod:3936
31228 msgid "guestfs_is_busy"
31232 #: ../src/guestfs-actions.pod:3938
31236 " guestfs_is_busy (guestfs_h *g);\n"
31241 #: ../src/guestfs-actions.pod:3950
31242 msgid "guestfs_is_chardev"
31246 #: ../src/guestfs-actions.pod:3952
31250 " guestfs_is_chardev (guestfs_h *g,\n"
31251 " const char *path);\n"
31256 #: ../src/guestfs-actions.pod:3965
31257 msgid "guestfs_is_config"
31261 #: ../src/guestfs-actions.pod:3967
31265 " guestfs_is_config (guestfs_h *g);\n"
31270 #: ../src/guestfs-actions.pod:3979
31271 msgid "guestfs_is_dir"
31275 #: ../src/guestfs-actions.pod:3981
31279 " guestfs_is_dir (guestfs_h *g,\n"
31280 " const char *path);\n"
31285 #: ../src/guestfs-actions.pod:3995
31286 msgid "guestfs_is_fifo"
31290 #: ../src/guestfs-actions.pod:3997
31294 " guestfs_is_fifo (guestfs_h *g,\n"
31295 " const char *path);\n"
31300 #: ../src/guestfs-actions.pod:4010
31301 msgid "guestfs_is_file"
31305 #: ../src/guestfs-actions.pod:4012
31309 " guestfs_is_file (guestfs_h *g,\n"
31310 " const char *path);\n"
31315 #: ../src/guestfs-actions.pod:4026
31316 msgid "guestfs_is_launching"
31320 #: ../src/guestfs-actions.pod:4028
31324 " guestfs_is_launching (guestfs_h *g);\n"
31329 #: ../src/guestfs-actions.pod:4040
31330 msgid "guestfs_is_lv"
31334 #: ../src/guestfs-actions.pod:4042
31338 " guestfs_is_lv (guestfs_h *g,\n"
31339 " const char *device);\n"
31344 #: ../src/guestfs-actions.pod:4053
31345 msgid "guestfs_is_ready"
31349 #: ../src/guestfs-actions.pod:4055
31353 " guestfs_is_ready (guestfs_h *g);\n"
31358 #: ../src/guestfs-actions.pod:4067
31359 msgid "guestfs_is_socket"
31363 #: ../src/guestfs-actions.pod:4069
31367 " guestfs_is_socket (guestfs_h *g,\n"
31368 " const char *path);\n"
31373 #: ../src/guestfs-actions.pod:4082
31374 msgid "guestfs_is_symlink"
31378 #: ../src/guestfs-actions.pod:4084
31382 " guestfs_is_symlink (guestfs_h *g,\n"
31383 " const char *path);\n"
31388 #: ../src/guestfs-actions.pod:4097
31389 msgid "guestfs_is_zero"
31393 #: ../src/guestfs-actions.pod:4099
31397 " guestfs_is_zero (guestfs_h *g,\n"
31398 " const char *path);\n"
31403 #: ../src/guestfs-actions.pod:4108 ../src/guestfs-actions.pod:4122
31404 msgid "(Added in 1.11.8)"
31405 msgstr "(Додано у 1.11.8)"
31408 #: ../src/guestfs-actions.pod:4110
31409 msgid "guestfs_is_zero_device"
31413 #: ../src/guestfs-actions.pod:4112
31417 " guestfs_is_zero_device (guestfs_h *g,\n"
31418 " const char *device);\n"
31423 #: ../src/guestfs-actions.pod:4124
31424 msgid "guestfs_kill_subprocess"
31428 #: ../src/guestfs-actions.pod:4126
31432 " guestfs_kill_subprocess (guestfs_h *g);\n"
31437 #: ../src/guestfs-actions.pod:4135
31438 msgid "guestfs_launch"
31442 #: ../src/guestfs-actions.pod:4137
31446 " guestfs_launch (guestfs_h *g);\n"
31451 #: ../src/guestfs-actions.pod:4155
31452 msgid "guestfs_lchown"
31456 #: ../src/guestfs-actions.pod:4157
31460 " guestfs_lchown (guestfs_h *g,\n"
31463 " const char *path);\n"
31468 #: ../src/guestfs-actions.pod:4163
31470 "Change the file owner to C<owner> and group to C<group>. This is like "
31471 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
31472 "changed, not the target."
31476 #: ../src/guestfs-actions.pod:4175
31477 msgid "guestfs_lgetxattr"
31481 #: ../src/guestfs-actions.pod:4177
31485 " guestfs_lgetxattr (guestfs_h *g,\n"
31486 " const char *path,\n"
31487 " const char *name,\n"
31488 " size_t *size_r);\n"
31493 #: ../src/guestfs-actions.pod:4197
31494 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
31498 #: ../src/guestfs-actions.pod:4205
31499 msgid "guestfs_lgetxattrs"
31503 #: ../src/guestfs-actions.pod:4207
31506 " struct guestfs_xattr_list *\n"
31507 " guestfs_lgetxattrs (guestfs_h *g,\n"
31508 " const char *path);\n"
31513 #: ../src/guestfs-actions.pod:4211
31515 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
31516 "then it returns the extended attributes of the link itself."
31520 #: ../src/guestfs-actions.pod:4221
31521 msgid "guestfs_list_9p"
31525 #: ../src/guestfs-actions.pod:4223
31529 " guestfs_list_9p (guestfs_h *g);\n"
31534 #: ../src/guestfs-actions.pod:4235
31535 msgid "guestfs_list_devices"
31539 #: ../src/guestfs-actions.pod:4237
31543 " guestfs_list_devices (guestfs_h *g);\n"
31548 #: ../src/guestfs-actions.pod:4252
31549 msgid "guestfs_list_dm_devices"
31553 #: ../src/guestfs-actions.pod:4254
31557 " guestfs_list_dm_devices (guestfs_h *g);\n"
31562 #: ../src/guestfs-actions.pod:4259
31564 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
31565 "previous call to C<guestfs_luks_open>."
31569 #: ../src/guestfs-actions.pod:4262
31571 "Device mapper devices which correspond to logical volumes are I<not> "
31572 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
31577 #: ../src/guestfs-actions.pod:4270 ../src/guestfs-actions.pod:5869
31578 msgid "(Added in 1.11.15)"
31579 msgstr "(Додано у 1.11.15)"
31582 #: ../src/guestfs-actions.pod:4272
31583 msgid "guestfs_list_filesystems"
31587 #: ../src/guestfs-actions.pod:4274
31591 " guestfs_list_filesystems (guestfs_h *g);\n"
31596 #: ../src/guestfs-actions.pod:4294
31598 "This command runs other libguestfs commands, which might include "
31599 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
31600 "soon after launch and only when nothing is mounted."
31604 #: ../src/guestfs-actions.pod:4298
31606 "Not all of the filesystems returned will be mountable. In particular, swap "
31607 "partitions are returned in the list. Also this command does not check that "
31608 "each filesystem found is valid and mountable, and some filesystems might be "
31609 "mountable but require special options. Filesystems may not all belong to a "
31610 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
31614 #: ../src/guestfs-actions.pod:4312 ../src/guestfs-actions.pod:6229
31615 msgid "(Added in 1.5.15)"
31616 msgstr "(Додано у 1.5.15)"
31619 #: ../src/guestfs-actions.pod:4314
31621 #| msgid "guestfs_zero_device"
31622 msgid "guestfs_list_md_devices"
31623 msgstr "guestfs_zero_device"
31626 #: ../src/guestfs-actions.pod:4316
31630 #| " guestfs_lvs (guestfs_h *g);\n"
31634 " guestfs_list_md_devices (guestfs_h *g);\n"
31638 " guestfs_lvs (guestfs_h *g);\n"
31642 #: ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:7890
31644 #| msgid "(Added in 1.5.4)"
31645 msgid "(Added in 1.15.4)"
31646 msgstr "(Додано у 1.5.4)"
31649 #: ../src/guestfs-actions.pod:4327
31650 msgid "guestfs_list_partitions"
31651 msgstr "guestfs_list_partitions"
31654 #: ../src/guestfs-actions.pod:4329
31658 " guestfs_list_partitions (guestfs_h *g);\n"
31662 " guestfs_list_partitions (guestfs_h *g);\n"
31666 #: ../src/guestfs-actions.pod:4336
31668 "This does not return logical volumes. For that you will need to call "
31673 #: ../src/guestfs-actions.pod:4347
31675 msgstr "guestfs_ll"
31678 #: ../src/guestfs-actions.pod:4349
31682 " guestfs_ll (guestfs_h *g,\n"
31683 " const char *directory);\n"
31687 " guestfs_ll (guestfs_h *g,\n"
31688 " const char *directory);\n"
31692 #: ../src/guestfs-actions.pod:4364
31694 msgstr "guestfs_ln"
31697 #: ../src/guestfs-actions.pod:4366
31701 " guestfs_ln (guestfs_h *g,\n"
31702 " const char *target,\n"
31703 " const char *linkname);\n"
31707 " guestfs_ln (guestfs_h *g,\n"
31708 " const char *target,\n"
31709 " const char *linkname);\n"
31713 #: ../src/guestfs-actions.pod:4377
31714 msgid "guestfs_ln_f"
31715 msgstr "guestfs_ln_f"
31718 #: ../src/guestfs-actions.pod:4379
31722 " guestfs_ln_f (guestfs_h *g,\n"
31723 " const char *target,\n"
31724 " const char *linkname);\n"
31728 " guestfs_ln_f (guestfs_h *g,\n"
31729 " const char *target,\n"
31730 " const char *linkname);\n"
31734 #: ../src/guestfs-actions.pod:4391
31735 msgid "guestfs_ln_s"
31736 msgstr "guestfs_ln_s"
31739 #: ../src/guestfs-actions.pod:4393
31743 " guestfs_ln_s (guestfs_h *g,\n"
31744 " const char *target,\n"
31745 " const char *linkname);\n"
31749 " guestfs_ln_s (guestfs_h *g,\n"
31750 " const char *target,\n"
31751 " const char *linkname);\n"
31755 #: ../src/guestfs-actions.pod:4404
31756 msgid "guestfs_ln_sf"
31757 msgstr "guestfs_ln_sf"
31760 #: ../src/guestfs-actions.pod:4406
31764 " guestfs_ln_sf (guestfs_h *g,\n"
31765 " const char *target,\n"
31766 " const char *linkname);\n"
31770 " guestfs_ln_sf (guestfs_h *g,\n"
31771 " const char *target,\n"
31772 " const char *linkname);\n"
31776 #: ../src/guestfs-actions.pod:4418
31777 msgid "guestfs_lremovexattr"
31778 msgstr "guestfs_lremovexattr"
31781 #: ../src/guestfs-actions.pod:4420
31785 " guestfs_lremovexattr (guestfs_h *g,\n"
31786 " const char *xattr,\n"
31787 " const char *path);\n"
31791 " guestfs_lremovexattr (guestfs_h *g,\n"
31792 " const char *xattr,\n"
31793 " const char *path);\n"
31797 #: ../src/guestfs-actions.pod:4425
31799 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
31800 "link, then it removes an extended attribute of the link itself."
31804 #: ../src/guestfs-actions.pod:4433
31806 msgstr "guestfs_ls"
31809 #: ../src/guestfs-actions.pod:4435
31813 " guestfs_ls (guestfs_h *g,\n"
31814 " const char *directory);\n"
31818 " guestfs_ls (guestfs_h *g,\n"
31819 " const char *directory);\n"
31823 #: ../src/guestfs-actions.pod:4443
31825 "This command is mostly useful for interactive sessions. Programs should "
31826 "probably use C<guestfs_readdir> instead."
31830 #: ../src/guestfs-actions.pod:4452
31831 msgid "guestfs_lsetxattr"
31832 msgstr "guestfs_lsetxattr"
31835 #: ../src/guestfs-actions.pod:4454
31839 " guestfs_lsetxattr (guestfs_h *g,\n"
31840 " const char *xattr,\n"
31841 " const char *val,\n"
31843 " const char *path);\n"
31847 " guestfs_lsetxattr (guestfs_h *g,\n"
31848 " const char *xattr,\n"
31849 " const char *val,\n"
31851 " const char *path);\n"
31855 #: ../src/guestfs-actions.pod:4461
31857 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
31858 "then it sets an extended attribute of the link itself."
31862 #: ../src/guestfs-actions.pod:4469
31863 msgid "guestfs_lstat"
31864 msgstr "guestfs_lstat"
31867 #: ../src/guestfs-actions.pod:4471
31870 " struct guestfs_stat *\n"
31871 " guestfs_lstat (guestfs_h *g,\n"
31872 " const char *path);\n"
31875 " struct guestfs_stat *\n"
31876 " guestfs_lstat (guestfs_h *g,\n"
31877 " const char *path);\n"
31881 #: ../src/guestfs-actions.pod:4477
31883 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
31884 "link, then the link is stat-ed, not the file it refers to."
31888 #: ../src/guestfs-actions.pod:4483 ../src/guestfs-actions.pod:7409
31890 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
31891 "error. I<The caller must call C<guestfs_free_stat> after use>."
31895 #: ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:7413
31896 #: ../src/guestfs-actions.pod:7431 ../src/guestfs-actions.pod:7934
31897 msgid "(Added in 0.9.2)"
31898 msgstr "(Додано у 0.9.2)"
31901 #: ../src/guestfs-actions.pod:4489
31902 msgid "guestfs_lstatlist"
31903 msgstr "guestfs_lstatlist"
31906 #: ../src/guestfs-actions.pod:4491
31909 " struct guestfs_stat_list *\n"
31910 " guestfs_lstatlist (guestfs_h *g,\n"
31911 " const char *path,\n"
31912 " char *const *names);\n"
31915 " struct guestfs_stat_list *\n"
31916 " guestfs_lstatlist (guestfs_h *g,\n"
31917 " const char *path,\n"
31918 " char *const *names);\n"
31922 #: ../src/guestfs-actions.pod:4496
31924 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
31925 "files, where all files are in the directory C<path>. C<names> is the list "
31926 "of files from this directory."
31930 #: ../src/guestfs-actions.pod:4505
31932 "This call is intended for programs that want to efficiently list a directory "
31933 "contents without making many round-trips. See also C<guestfs_lxattrlist> "
31934 "for a similarly efficient call for getting extended attributes. Very long "
31935 "directory listings might cause the protocol message size to be exceeded, "
31936 "causing this call to fail. The caller must split up such requests into "
31937 "smaller groups of names."
31941 #: ../src/guestfs-actions.pod:4513
31943 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
31944 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
31948 #: ../src/guestfs-actions.pod:4519
31949 msgid "guestfs_luks_add_key"
31950 msgstr "guestfs_luks_add_key"
31953 #: ../src/guestfs-actions.pod:4521
31957 " guestfs_luks_add_key (guestfs_h *g,\n"
31958 " const char *device,\n"
31959 " const char *key,\n"
31960 " const char *newkey,\n"
31965 " guestfs_luks_add_key (guestfs_h *g,\n"
31966 " const char *device,\n"
31967 " const char *key,\n"
31968 " const char *newkey,\n"
31973 #: ../src/guestfs-actions.pod:4533
31975 "Note that if C<keyslot> already contains a key, then this command will "
31976 "fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
31980 #: ../src/guestfs-actions.pod:4539 ../src/guestfs-actions.pod:4576
31981 #: ../src/guestfs-actions.pod:4596 ../src/guestfs-actions.pod:4616
31982 #: ../src/guestfs-actions.pod:4651 ../src/guestfs-actions.pod:4670
31984 "This function takes a key or passphrase parameter which could contain "
31985 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
31990 #: ../src/guestfs-actions.pod:4543 ../src/guestfs-actions.pod:4580
31991 #: ../src/guestfs-actions.pod:4600 ../src/guestfs-actions.pod:4620
31992 msgid "(Added in 1.5.2)"
31993 msgstr "(Додано у 1.5.2)"
31996 #: ../src/guestfs-actions.pod:4545
31997 msgid "guestfs_luks_close"
31998 msgstr "guestfs_luks_close"
32001 #: ../src/guestfs-actions.pod:4547
32005 " guestfs_luks_close (guestfs_h *g,\n"
32006 " const char *device);\n"
32010 " guestfs_luks_close (guestfs_h *g,\n"
32011 " const char *device);\n"
32015 #: ../src/guestfs-actions.pod:4551
32017 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
32018 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
32019 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
32020 "underlying block device."
32024 #: ../src/guestfs-actions.pod:4559 ../src/guestfs-actions.pod:4655
32025 #: ../src/guestfs-actions.pod:4674 ../src/guestfs-actions.pod:4724
32026 #: ../src/guestfs-actions.pod:4769
32027 msgid "(Added in 1.5.1)"
32028 msgstr "(Додано у 1.5.1)"
32031 #: ../src/guestfs-actions.pod:4561
32032 msgid "guestfs_luks_format"
32033 msgstr "guestfs_luks_format"
32036 #: ../src/guestfs-actions.pod:4563
32040 " guestfs_luks_format (guestfs_h *g,\n"
32041 " const char *device,\n"
32042 " const char *key,\n"
32047 " guestfs_luks_format (guestfs_h *g,\n"
32048 " const char *device,\n"
32049 " const char *key,\n"
32054 #: ../src/guestfs-actions.pod:4582
32055 msgid "guestfs_luks_format_cipher"
32056 msgstr "guestfs_luks_format_cipher"
32059 #: ../src/guestfs-actions.pod:4584
32063 " guestfs_luks_format_cipher (guestfs_h *g,\n"
32064 " const char *device,\n"
32065 " const char *key,\n"
32067 " const char *cipher);\n"
32071 " guestfs_luks_format_cipher (guestfs_h *g,\n"
32072 " const char *device,\n"
32073 " const char *key,\n"
32075 " const char *cipher);\n"
32079 #: ../src/guestfs-actions.pod:4591
32081 "This command is the same as C<guestfs_luks_format> but it also allows you to "
32082 "set the C<cipher> used."
32086 #: ../src/guestfs-actions.pod:4602
32087 msgid "guestfs_luks_kill_slot"
32088 msgstr "guestfs_luks_kill_slot"
32091 #: ../src/guestfs-actions.pod:4604
32095 " guestfs_luks_kill_slot (guestfs_h *g,\n"
32096 " const char *device,\n"
32097 " const char *key,\n"
32102 " guestfs_luks_kill_slot (guestfs_h *g,\n"
32103 " const char *device,\n"
32104 " const char *key,\n"
32109 #: ../src/guestfs-actions.pod:4622
32110 msgid "guestfs_luks_open"
32111 msgstr "guestfs_luks_open"
32114 #: ../src/guestfs-actions.pod:4624
32118 " guestfs_luks_open (guestfs_h *g,\n"
32119 " const char *device,\n"
32120 " const char *key,\n"
32121 " const char *mapname);\n"
32125 " guestfs_luks_open (guestfs_h *g,\n"
32126 " const char *device,\n"
32127 " const char *key,\n"
32128 " const char *mapname);\n"
32132 #: ../src/guestfs-actions.pod:4642
32134 "If this block device contains LVM volume groups, then calling "
32135 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
32140 #: ../src/guestfs-actions.pod:4646
32141 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
32145 #: ../src/guestfs-actions.pod:4657
32146 msgid "guestfs_luks_open_ro"
32147 msgstr "guestfs_luks_open_ro"
32150 #: ../src/guestfs-actions.pod:4659
32154 " guestfs_luks_open_ro (guestfs_h *g,\n"
32155 " const char *device,\n"
32156 " const char *key,\n"
32157 " const char *mapname);\n"
32161 " guestfs_luks_open_ro (guestfs_h *g,\n"
32162 " const char *device,\n"
32163 " const char *key,\n"
32164 " const char *mapname);\n"
32168 #: ../src/guestfs-actions.pod:4665
32170 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
32175 #: ../src/guestfs-actions.pod:4676
32176 msgid "guestfs_lvcreate"
32177 msgstr "guestfs_lvcreate"
32180 #: ../src/guestfs-actions.pod:4678
32184 " guestfs_lvcreate (guestfs_h *g,\n"
32185 " const char *logvol,\n"
32186 " const char *volgroup,\n"
32191 " guestfs_lvcreate (guestfs_h *g,\n"
32192 " const char *logvol,\n"
32193 " const char *volgroup,\n"
32198 #: ../src/guestfs-actions.pod:4691
32199 msgid "guestfs_lvm_canonical_lv_name"
32200 msgstr "guestfs_lvm_canonical_lv_name"
32203 #: ../src/guestfs-actions.pod:4693
32207 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
32208 " const char *lvname);\n"
32212 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
32213 " const char *lvname);\n"
32217 #: ../src/guestfs-actions.pod:4704
32218 msgid "See also C<guestfs_is_lv>."
32222 #: ../src/guestfs-actions.pod:4709
32223 msgid "(Added in 1.5.24)"
32224 msgstr "(Додано у 1.5.24)"
32227 #: ../src/guestfs-actions.pod:4711
32228 msgid "guestfs_lvm_clear_filter"
32229 msgstr "guestfs_lvm_clear_filter"
32232 #: ../src/guestfs-actions.pod:4713
32236 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
32240 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
32244 #: ../src/guestfs-actions.pod:4716
32246 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
32247 "see every block device."
32251 #: ../src/guestfs-actions.pod:4726
32252 msgid "guestfs_lvm_remove_all"
32253 msgstr "guestfs_lvm_remove_all"
32256 #: ../src/guestfs-actions.pod:4728
32260 " guestfs_lvm_remove_all (guestfs_h *g);\n"
32264 " guestfs_lvm_remove_all (guestfs_h *g);\n"
32268 #: ../src/guestfs-actions.pod:4738
32269 msgid "guestfs_lvm_set_filter"
32270 msgstr "guestfs_lvm_set_filter"
32273 #: ../src/guestfs-actions.pod:4740
32277 " guestfs_lvm_set_filter (guestfs_h *g,\n"
32278 " char *const *devices);\n"
32282 " guestfs_lvm_set_filter (guestfs_h *g,\n"
32283 " char *const *devices);\n"
32287 #: ../src/guestfs-actions.pod:4771
32288 msgid "guestfs_lvremove"
32289 msgstr "guestfs_lvremove"
32292 #: ../src/guestfs-actions.pod:4773
32296 " guestfs_lvremove (guestfs_h *g,\n"
32297 " const char *device);\n"
32301 " guestfs_lvremove (guestfs_h *g,\n"
32302 " const char *device);\n"
32306 #: ../src/guestfs-actions.pod:4785 ../src/guestfs-actions.pod:6344
32307 #: ../src/guestfs-actions.pod:8304
32308 msgid "(Added in 1.0.13)"
32309 msgstr "(Додано у 1.0.13)"
32312 #: ../src/guestfs-actions.pod:4787
32313 msgid "guestfs_lvrename"
32314 msgstr "guestfs_lvrename"
32317 #: ../src/guestfs-actions.pod:4789
32321 " guestfs_lvrename (guestfs_h *g,\n"
32322 " const char *logvol,\n"
32323 " const char *newlogvol);\n"
32327 " guestfs_lvrename (guestfs_h *g,\n"
32328 " const char *logvol,\n"
32329 " const char *newlogvol);\n"
32333 #: ../src/guestfs-actions.pod:4798 ../src/guestfs-actions.pod:8317
32334 msgid "(Added in 1.0.83)"
32335 msgstr "(Додано у 1.0.83)"
32338 #: ../src/guestfs-actions.pod:4800
32339 msgid "guestfs_lvresize"
32340 msgstr "guestfs_lvresize"
32343 #: ../src/guestfs-actions.pod:4802
32347 " guestfs_lvresize (guestfs_h *g,\n"
32348 " const char *device,\n"
32353 " guestfs_lvresize (guestfs_h *g,\n"
32354 " const char *device,\n"
32359 #: ../src/guestfs-actions.pod:4815
32360 msgid "guestfs_lvresize_free"
32361 msgstr "guestfs_lvresize_free"
32364 #: ../src/guestfs-actions.pod:4817
32368 " guestfs_lvresize_free (guestfs_h *g,\n"
32369 " const char *lv,\n"
32374 " guestfs_lvresize_free (guestfs_h *g,\n"
32375 " const char *lv,\n"
32380 #: ../src/guestfs-actions.pod:4830
32381 msgid "(Added in 1.3.3)"
32382 msgstr "(Додано у 1.3.3)"
32385 #: ../src/guestfs-actions.pod:4832
32386 msgid "guestfs_lvs"
32387 msgstr "guestfs_lvs"
32390 #: ../src/guestfs-actions.pod:4834
32394 " guestfs_lvs (guestfs_h *g);\n"
32398 " guestfs_lvs (guestfs_h *g);\n"
32402 #: ../src/guestfs-actions.pod:4843
32403 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
32407 #: ../src/guestfs-actions.pod:4851
32408 msgid "guestfs_lvs_full"
32409 msgstr "guestfs_lvs_full"
32412 #: ../src/guestfs-actions.pod:4853
32415 " struct guestfs_lvm_lv_list *\n"
32416 " guestfs_lvs_full (guestfs_h *g);\n"
32419 " struct guestfs_lvm_lv_list *\n"
32420 " guestfs_lvs_full (guestfs_h *g);\n"
32424 #: ../src/guestfs-actions.pod:4859
32426 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
32427 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
32431 #: ../src/guestfs-actions.pod:4865
32432 msgid "guestfs_lvuuid"
32433 msgstr "guestfs_lvuuid"
32436 #: ../src/guestfs-actions.pod:4867
32440 " guestfs_lvuuid (guestfs_h *g,\n"
32441 " const char *device);\n"
32445 " guestfs_lvuuid (guestfs_h *g,\n"
32446 " const char *device);\n"
32450 #: ../src/guestfs-actions.pod:4878
32451 msgid "guestfs_lxattrlist"
32452 msgstr "guestfs_lxattrlist"
32455 #: ../src/guestfs-actions.pod:4880
32458 " struct guestfs_xattr_list *\n"
32459 " guestfs_lxattrlist (guestfs_h *g,\n"
32460 " const char *path,\n"
32461 " char *const *names);\n"
32464 " struct guestfs_xattr_list *\n"
32465 " guestfs_lxattrlist (guestfs_h *g,\n"
32466 " const char *path,\n"
32467 " char *const *names);\n"
32471 #: ../src/guestfs-actions.pod:4899
32473 "This call is intended for programs that want to efficiently list a directory "
32474 "contents without making many round-trips. See also C<guestfs_lstatlist> for "
32475 "a similarly efficient call for getting standard stats. Very long directory "
32476 "listings might cause the protocol message size to be exceeded, causing this "
32477 "call to fail. The caller must split up such requests into smaller groups of "
32482 #: ../src/guestfs-actions.pod:4913
32484 #| msgid "guestfs_create"
32485 msgid "guestfs_md_create"
32486 msgstr "guestfs_create"
32489 #: ../src/guestfs-actions.pod:4915
32493 #| " guestfs_mkfs_opts (guestfs_h *g,\n"
32494 #| " const char *fstype,\n"
32495 #| " const char *device,\n"
32500 " guestfs_md_create (guestfs_h *g,\n"
32501 " const char *name,\n"
32502 " char *const *devices,\n"
32507 " guestfs_mkfs_opts (guestfs_h *g,\n"
32508 " const char *fstype,\n"
32509 " const char *device,\n"
32514 #: ../src/guestfs-actions.pod:4926
32517 " GUESTFS_MD_CREATE_MISSINGBITMAP, int64_t missingbitmap,\n"
32518 " GUESTFS_MD_CREATE_NRDEVICES, int nrdevices,\n"
32519 " GUESTFS_MD_CREATE_SPARE, int spare,\n"
32520 " GUESTFS_MD_CREATE_CHUNK, int64_t chunk,\n"
32521 " GUESTFS_MD_CREATE_LEVEL, const char *level,\n"
32526 #: ../src/guestfs-actions.pod:4988
32528 #| msgid "guestfs_create"
32529 msgid "guestfs_md_create_va"
32530 msgstr "guestfs_create"
32533 #: ../src/guestfs-actions.pod:4990
32537 #| " guestfs_mkfs_opts_va (guestfs_h *g,\n"
32538 #| " const char *fstype,\n"
32539 #| " const char *device,\n"
32540 #| " va_list args);\n"
32544 " guestfs_md_create_va (guestfs_h *g,\n"
32545 " const char *name,\n"
32546 " char *const *devices,\n"
32547 " va_list args);\n"
32551 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
32552 " const char *fstype,\n"
32553 " const char *device,\n"
32554 " va_list args);\n"
32558 #: ../src/guestfs-actions.pod:4996
32559 msgid "This is the \"va_list variant\" of L</guestfs_md_create>."
32563 #: ../src/guestfs-actions.pod:5000
32565 #| msgid "guestfs_create"
32566 msgid "guestfs_md_create_argv"
32567 msgstr "guestfs_create"
32570 #: ../src/guestfs-actions.pod:5002
32574 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32575 #| " const char *fstype,\n"
32576 #| " const char *device,\n"
32577 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
32581 " guestfs_md_create_argv (guestfs_h *g,\n"
32582 " const char *name,\n"
32583 " char *const *devices,\n"
32584 " const struct guestfs_md_create_argv *optargs);\n"
32588 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32589 " const char *fstype,\n"
32590 " const char *device,\n"
32591 " const struct guestfs_mkfs_opts_argv *optargs);\n"
32595 #: ../src/guestfs-actions.pod:5008
32596 msgid "This is the \"argv variant\" of L</guestfs_md_create>."
32600 #: ../src/guestfs-actions.pod:5012
32602 #| msgid "guestfs_aug_get"
32603 msgid "guestfs_md_detail"
32604 msgstr "guestfs_aug_get"
32607 #: ../src/guestfs-actions.pod:5014
32611 #| " guestfs_aug_get (guestfs_h *g,\n"
32612 #| " const char *augpath);\n"
32616 " guestfs_md_detail (guestfs_h *g,\n"
32617 " const char *md);\n"
32621 " guestfs_aug_get (guestfs_h *g,\n"
32622 " const char *augpath);\n"
32626 #: ../src/guestfs-actions.pod:5051
32628 #| msgid "guestfs_mkdir_p"
32629 msgid "guestfs_md_stop"
32630 msgstr "guestfs_mkdir_p"
32633 #: ../src/guestfs-actions.pod:5053
32637 #| " guestfs_mkdir_p (guestfs_h *g,\n"
32638 #| " const char *path);\n"
32642 " guestfs_md_stop (guestfs_h *g,\n"
32643 " const char *md);\n"
32647 " guestfs_mkdir_p (guestfs_h *g,\n"
32648 " const char *path);\n"
32652 #: ../src/guestfs-actions.pod:5062
32653 msgid "guestfs_mkdir"
32654 msgstr "guestfs_mkdir"
32657 #: ../src/guestfs-actions.pod:5064
32661 " guestfs_mkdir (guestfs_h *g,\n"
32662 " const char *path);\n"
32666 " guestfs_mkdir (guestfs_h *g,\n"
32667 " const char *path);\n"
32671 #: ../src/guestfs-actions.pod:5074
32672 msgid "guestfs_mkdir_mode"
32673 msgstr "guestfs_mkdir_mode"
32676 #: ../src/guestfs-actions.pod:5076
32680 " guestfs_mkdir_mode (guestfs_h *g,\n"
32681 " const char *path,\n"
32686 " guestfs_mkdir_mode (guestfs_h *g,\n"
32687 " const char *path,\n"
32692 #: ../src/guestfs-actions.pod:5088
32693 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
32697 #: ../src/guestfs-actions.pod:5094
32698 msgid "guestfs_mkdir_p"
32699 msgstr "guestfs_mkdir_p"
32702 #: ../src/guestfs-actions.pod:5096
32706 " guestfs_mkdir_p (guestfs_h *g,\n"
32707 " const char *path);\n"
32711 " guestfs_mkdir_p (guestfs_h *g,\n"
32712 " const char *path);\n"
32716 #: ../src/guestfs-actions.pod:5107
32717 msgid "guestfs_mkdtemp"
32718 msgstr "guestfs_mkdtemp"
32721 #: ../src/guestfs-actions.pod:5109
32725 " guestfs_mkdtemp (guestfs_h *g,\n"
32726 " const char *template);\n"
32730 " guestfs_mkdtemp (guestfs_h *g,\n"
32731 " const char *template);\n"
32735 #: ../src/guestfs-actions.pod:5137
32736 msgid "guestfs_mke2fs_J"
32737 msgstr "guestfs_mke2fs_J"
32740 #: ../src/guestfs-actions.pod:5139
32744 " guestfs_mke2fs_J (guestfs_h *g,\n"
32745 " const char *fstype,\n"
32746 " int blocksize,\n"
32747 " const char *device,\n"
32748 " const char *journal);\n"
32752 " guestfs_mke2fs_J (guestfs_h *g,\n"
32753 " const char *fstype,\n"
32754 " int blocksize,\n"
32755 " const char *device,\n"
32756 " const char *journal);\n"
32760 #: ../src/guestfs-actions.pod:5152
32761 msgid "See also C<guestfs_mke2journal>."
32765 #: ../src/guestfs-actions.pod:5156 ../src/guestfs-actions.pod:5174
32766 #: ../src/guestfs-actions.pod:5192 ../src/guestfs-actions.pod:5208
32767 #: ../src/guestfs-actions.pod:5222 ../src/guestfs-actions.pod:5236
32768 #: ../src/guestfs-actions.pod:5295 ../src/guestfs-actions.pod:5572
32769 msgid "(Added in 1.0.68)"
32770 msgstr "(Додано у 1.0.68)"
32773 #: ../src/guestfs-actions.pod:5158
32774 msgid "guestfs_mke2fs_JL"
32775 msgstr "guestfs_mke2fs_JL"
32778 #: ../src/guestfs-actions.pod:5160
32782 " guestfs_mke2fs_JL (guestfs_h *g,\n"
32783 " const char *fstype,\n"
32784 " int blocksize,\n"
32785 " const char *device,\n"
32786 " const char *label);\n"
32790 " guestfs_mke2fs_JL (guestfs_h *g,\n"
32791 " const char *fstype,\n"
32792 " int blocksize,\n"
32793 " const char *device,\n"
32794 " const char *label);\n"
32798 #: ../src/guestfs-actions.pod:5170
32799 msgid "See also C<guestfs_mke2journal_L>."
32803 #: ../src/guestfs-actions.pod:5176
32804 msgid "guestfs_mke2fs_JU"
32805 msgstr "guestfs_mke2fs_JU"
32808 #: ../src/guestfs-actions.pod:5178
32812 " guestfs_mke2fs_JU (guestfs_h *g,\n"
32813 " const char *fstype,\n"
32814 " int blocksize,\n"
32815 " const char *device,\n"
32816 " const char *uuid);\n"
32820 " guestfs_mke2fs_JU (guestfs_h *g,\n"
32821 " const char *fstype,\n"
32822 " int blocksize,\n"
32823 " const char *device,\n"
32824 " const char *uuid);\n"
32828 #: ../src/guestfs-actions.pod:5188
32829 msgid "See also C<guestfs_mke2journal_U>."
32833 #: ../src/guestfs-actions.pod:5194
32834 msgid "guestfs_mke2journal"
32835 msgstr "guestfs_mke2journal"
32838 #: ../src/guestfs-actions.pod:5196
32842 " guestfs_mke2journal (guestfs_h *g,\n"
32843 " int blocksize,\n"
32844 " const char *device);\n"
32848 " guestfs_mke2journal (guestfs_h *g,\n"
32849 " int blocksize,\n"
32850 " const char *device);\n"
32854 #: ../src/guestfs-actions.pod:5210
32855 msgid "guestfs_mke2journal_L"
32856 msgstr "guestfs_mke2journal_L"
32859 #: ../src/guestfs-actions.pod:5212
32863 " guestfs_mke2journal_L (guestfs_h *g,\n"
32864 " int blocksize,\n"
32865 " const char *label,\n"
32866 " const char *device);\n"
32870 " guestfs_mke2journal_L (guestfs_h *g,\n"
32871 " int blocksize,\n"
32872 " const char *label,\n"
32873 " const char *device);\n"
32877 #: ../src/guestfs-actions.pod:5224
32878 msgid "guestfs_mke2journal_U"
32879 msgstr "guestfs_mke2journal_U"
32882 #: ../src/guestfs-actions.pod:5226
32886 " guestfs_mke2journal_U (guestfs_h *g,\n"
32887 " int blocksize,\n"
32888 " const char *uuid,\n"
32889 " const char *device);\n"
32893 " guestfs_mke2journal_U (guestfs_h *g,\n"
32894 " int blocksize,\n"
32895 " const char *uuid,\n"
32896 " const char *device);\n"
32900 #: ../src/guestfs-actions.pod:5238
32901 msgid "guestfs_mkfifo"
32902 msgstr "guestfs_mkfifo"
32905 #: ../src/guestfs-actions.pod:5240
32909 " guestfs_mkfifo (guestfs_h *g,\n"
32911 " const char *path);\n"
32915 " guestfs_mkfifo (guestfs_h *g,\n"
32917 " const char *path);\n"
32921 #: ../src/guestfs-actions.pod:5245
32923 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
32924 "is just a convenient wrapper around C<guestfs_mknod>."
32928 #: ../src/guestfs-actions.pod:5255
32929 msgid "guestfs_mkfs"
32930 msgstr "guestfs_mkfs"
32933 #: ../src/guestfs-actions.pod:5257
32937 " guestfs_mkfs (guestfs_h *g,\n"
32938 " const char *fstype,\n"
32939 " const char *device);\n"
32943 " guestfs_mkfs (guestfs_h *g,\n"
32944 " const char *fstype,\n"
32945 " const char *device);\n"
32949 #: ../src/guestfs-actions.pod:5270
32950 msgid "guestfs_mkfs_b"
32951 msgstr "guestfs_mkfs_b"
32954 #: ../src/guestfs-actions.pod:5272
32958 " guestfs_mkfs_b (guestfs_h *g,\n"
32959 " const char *fstype,\n"
32960 " int blocksize,\n"
32961 " const char *device);\n"
32965 " guestfs_mkfs_b (guestfs_h *g,\n"
32966 " const char *fstype,\n"
32967 " int blocksize,\n"
32968 " const char *device);\n"
32972 #: ../src/guestfs-actions.pod:5278
32974 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
32979 #: ../src/guestfs-actions.pod:5285
32981 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
32982 "block size of the resulting filesystem. Supported block sizes depend on the "
32983 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
32987 #: ../src/guestfs-actions.pod:5297
32988 msgid "guestfs_mkfs_opts"
32989 msgstr "guestfs_mkfs_opts"
32992 #: ../src/guestfs-actions.pod:5299
32996 " guestfs_mkfs_opts (guestfs_h *g,\n"
32997 " const char *fstype,\n"
32998 " const char *device,\n"
33003 " guestfs_mkfs_opts (guestfs_h *g,\n"
33004 " const char *fstype,\n"
33005 " const char *device,\n"
33010 #: ../src/guestfs-actions.pod:5310
33013 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
33014 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
33015 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
33016 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
33021 #: ../src/guestfs-actions.pod:5358
33022 msgid "(Added in 1.7.19)"
33023 msgstr "(Додано у 1.7.19)"
33026 #: ../src/guestfs-actions.pod:5360
33027 msgid "guestfs_mkfs_opts_va"
33028 msgstr "guestfs_mkfs_opts_va"
33031 #: ../src/guestfs-actions.pod:5362
33035 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
33036 " const char *fstype,\n"
33037 " const char *device,\n"
33038 " va_list args);\n"
33042 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
33043 " const char *fstype,\n"
33044 " const char *device,\n"
33045 " va_list args);\n"
33049 #: ../src/guestfs-actions.pod:5368
33050 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
33054 #: ../src/guestfs-actions.pod:5372
33055 msgid "guestfs_mkfs_opts_argv"
33056 msgstr "guestfs_mkfs_opts_argv"
33059 #: ../src/guestfs-actions.pod:5374
33063 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
33064 " const char *fstype,\n"
33065 " const char *device,\n"
33066 " const struct guestfs_mkfs_opts_argv *optargs);\n"
33070 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
33071 " const char *fstype,\n"
33072 " const char *device,\n"
33073 " const struct guestfs_mkfs_opts_argv *optargs);\n"
33077 #: ../src/guestfs-actions.pod:5380
33078 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
33082 #: ../src/guestfs-actions.pod:5384
33083 msgid "guestfs_mkmountpoint"
33084 msgstr "guestfs_mkmountpoint"
33087 #: ../src/guestfs-actions.pod:5386
33091 " guestfs_mkmountpoint (guestfs_h *g,\n"
33092 " const char *exemptpath);\n"
33096 " guestfs_mkmountpoint (guestfs_h *g,\n"
33097 " const char *exemptpath);\n"
33101 #: ../src/guestfs-actions.pod:5390
33103 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
33104 "that can be used to create extra mountpoints before mounting the first "
33109 #: ../src/guestfs-actions.pod:5414
33111 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
33112 "may get unexpected errors if you try to mix these calls. It is safest to "
33113 "manually unmount filesystems and remove mountpoints after use."
33117 #: ../src/guestfs-actions.pod:5418
33119 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
33120 "first, so for this to work for manual mountpoints, you must ensure that the "
33121 "innermost mountpoints have the longest pathnames, as in the example code "
33126 #: ../src/guestfs-actions.pod:5425
33128 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
33129 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
33130 "can also trigger these issues."
33134 #: ../src/guestfs-actions.pod:5431 ../src/guestfs-actions.pod:5737
33135 #: ../src/guestfs-actions.pod:6764
33136 msgid "(Added in 1.0.62)"
33137 msgstr "(Додано у 1.0.62)"
33140 #: ../src/guestfs-actions.pod:5433
33141 msgid "guestfs_mknod"
33145 #: ../src/guestfs-actions.pod:5435
33149 " guestfs_mknod (guestfs_h *g,\n"
33153 " const char *path);\n"
33158 #: ../src/guestfs-actions.pod:5450
33160 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
33161 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
33162 "regular file). These constants are available in the standard Linux header "
33163 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
33164 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
33165 "the appropriate constant for you."
33169 #: ../src/guestfs-actions.pod:5464
33170 msgid "guestfs_mknod_b"
33174 #: ../src/guestfs-actions.pod:5466
33178 " guestfs_mknod_b (guestfs_h *g,\n"
33182 " const char *path);\n"
33187 #: ../src/guestfs-actions.pod:5473
33189 "This call creates a block device node called C<path> with mode C<mode> and "
33190 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
33191 "wrapper around C<guestfs_mknod>."
33195 #: ../src/guestfs-actions.pod:5483
33196 msgid "guestfs_mknod_c"
33200 #: ../src/guestfs-actions.pod:5485
33204 " guestfs_mknod_c (guestfs_h *g,\n"
33208 " const char *path);\n"
33213 #: ../src/guestfs-actions.pod:5492
33215 "This call creates a char device node called C<path> with mode C<mode> and "
33216 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
33217 "wrapper around C<guestfs_mknod>."
33221 #: ../src/guestfs-actions.pod:5502
33222 msgid "guestfs_mkswap"
33226 #: ../src/guestfs-actions.pod:5504
33230 " guestfs_mkswap (guestfs_h *g,\n"
33231 " const char *device);\n"
33236 #: ../src/guestfs-actions.pod:5514
33237 msgid "guestfs_mkswap_L"
33241 #: ../src/guestfs-actions.pod:5516
33245 " guestfs_mkswap_L (guestfs_h *g,\n"
33246 " const char *label,\n"
33247 " const char *device);\n"
33252 #: ../src/guestfs-actions.pod:5531
33253 msgid "guestfs_mkswap_U"
33257 #: ../src/guestfs-actions.pod:5533
33261 " guestfs_mkswap_U (guestfs_h *g,\n"
33262 " const char *uuid,\n"
33263 " const char *device);\n"
33268 #: ../src/guestfs-actions.pod:5544
33269 msgid "guestfs_mkswap_file"
33273 #: ../src/guestfs-actions.pod:5546
33277 " guestfs_mkswap_file (guestfs_h *g,\n"
33278 " const char *path);\n"
33283 #: ../src/guestfs-actions.pod:5552
33285 "This command just writes a swap file signature to an existing file. To "
33286 "create the file itself, use something like C<guestfs_fallocate>."
33290 #: ../src/guestfs-actions.pod:5559
33291 msgid "guestfs_modprobe"
33295 #: ../src/guestfs-actions.pod:5561
33299 " guestfs_modprobe (guestfs_h *g,\n"
33300 " const char *modulename);\n"
33305 #: ../src/guestfs-actions.pod:5574
33306 msgid "guestfs_mount"
33310 #: ../src/guestfs-actions.pod:5576
33314 " guestfs_mount (guestfs_h *g,\n"
33315 " const char *device,\n"
33316 " const char *mountpoint);\n"
33321 #: ../src/guestfs-actions.pod:5595
33323 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
33324 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
33325 "problems for users. If your program might need to work with older versions "
33326 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
33327 "for the first parameter if you don't want any options)."
33331 #: ../src/guestfs-actions.pod:5606
33332 msgid "guestfs_mount_9p"
33336 #: ../src/guestfs-actions.pod:5608
33340 " guestfs_mount_9p (guestfs_h *g,\n"
33341 " const char *mounttag,\n"
33342 " const char *mountpoint,\n"
33348 #: ../src/guestfs-actions.pod:5619
33351 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
33356 #: ../src/guestfs-actions.pod:5632
33357 msgid "guestfs_mount_9p_va"
33361 #: ../src/guestfs-actions.pod:5634
33365 " guestfs_mount_9p_va (guestfs_h *g,\n"
33366 " const char *mounttag,\n"
33367 " const char *mountpoint,\n"
33368 " va_list args);\n"
33373 #: ../src/guestfs-actions.pod:5640
33374 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
33378 #: ../src/guestfs-actions.pod:5644
33379 msgid "guestfs_mount_9p_argv"
33383 #: ../src/guestfs-actions.pod:5646
33387 " guestfs_mount_9p_argv (guestfs_h *g,\n"
33388 " const char *mounttag,\n"
33389 " const char *mountpoint,\n"
33390 " const struct guestfs_mount_9p_argv *optargs);\n"
33395 #: ../src/guestfs-actions.pod:5652
33396 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
33400 #: ../src/guestfs-actions.pod:5656
33401 msgid "guestfs_mount_loop"
33405 #: ../src/guestfs-actions.pod:5658
33409 " guestfs_mount_loop (guestfs_h *g,\n"
33410 " const char *file,\n"
33411 " const char *mountpoint);\n"
33416 #: ../src/guestfs-actions.pod:5671
33417 msgid "guestfs_mount_options"
33421 #: ../src/guestfs-actions.pod:5673
33425 " guestfs_mount_options (guestfs_h *g,\n"
33426 " const char *options,\n"
33427 " const char *device,\n"
33428 " const char *mountpoint);\n"
33433 #: ../src/guestfs-actions.pod:5679
33435 "This is the same as the C<guestfs_mount> command, but it allows you to set "
33436 "the mount options as for the L<mount(8)> I<-o> flag."
33440 #: ../src/guestfs-actions.pod:5689 ../src/guestfs-actions.pod:5703
33441 #: ../src/guestfs-actions.pod:5720
33442 msgid "(Added in 1.0.10)"
33443 msgstr "(Додано у 1.0.10)"
33446 #: ../src/guestfs-actions.pod:5691
33447 msgid "guestfs_mount_ro"
33451 #: ../src/guestfs-actions.pod:5693
33455 " guestfs_mount_ro (guestfs_h *g,\n"
33456 " const char *device,\n"
33457 " const char *mountpoint);\n"
33462 #: ../src/guestfs-actions.pod:5698
33464 "This is the same as the C<guestfs_mount> command, but it mounts the "
33465 "filesystem with the read-only (I<-o ro>) flag."
33469 #: ../src/guestfs-actions.pod:5705
33470 msgid "guestfs_mount_vfs"
33474 #: ../src/guestfs-actions.pod:5707
33478 " guestfs_mount_vfs (guestfs_h *g,\n"
33479 " const char *options,\n"
33480 " const char *vfstype,\n"
33481 " const char *device,\n"
33482 " const char *mountpoint);\n"
33487 #: ../src/guestfs-actions.pod:5714
33489 "This is the same as the C<guestfs_mount> command, but it allows you to set "
33490 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
33495 #: ../src/guestfs-actions.pod:5722
33496 msgid "guestfs_mountpoints"
33500 #: ../src/guestfs-actions.pod:5724
33504 " guestfs_mountpoints (guestfs_h *g);\n"
33509 #: ../src/guestfs-actions.pod:5727
33511 "This call is similar to C<guestfs_mounts>. That call returns a list of "
33512 "devices. This one returns a hash table (map) of device name to directory "
33513 "where the device is mounted."
33517 #: ../src/guestfs-actions.pod:5739
33518 msgid "guestfs_mounts"
33522 #: ../src/guestfs-actions.pod:5741
33526 " guestfs_mounts (guestfs_h *g);\n"
33531 #: ../src/guestfs-actions.pod:5749
33532 msgid "See also: C<guestfs_mountpoints>"
33536 #: ../src/guestfs-actions.pod:5757
33541 #: ../src/guestfs-actions.pod:5759
33545 " guestfs_mv (guestfs_h *g,\n"
33546 " const char *src,\n"
33547 " const char *dest);\n"
33552 #: ../src/guestfs-actions.pod:5771
33553 msgid "guestfs_ntfs_3g_probe"
33557 #: ../src/guestfs-actions.pod:5773
33561 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
33563 " const char *device);\n"
33568 #: ../src/guestfs-actions.pod:5792
33569 msgid "(Added in 1.0.43)"
33570 msgstr "(Додано у 1.0.43)"
33573 #: ../src/guestfs-actions.pod:5794
33574 msgid "guestfs_ntfsresize"
33578 #: ../src/guestfs-actions.pod:5796
33582 " guestfs_ntfsresize (guestfs_h *g,\n"
33583 " const char *device);\n"
33588 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:5900
33590 "I<This function is deprecated.> In new code, use the L</"
33591 "guestfs_ntfsresize_opts> call instead."
33595 #: ../src/guestfs-actions.pod:5824
33596 msgid "guestfs_ntfsresize_opts"
33600 #: ../src/guestfs-actions.pod:5826
33604 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
33605 " const char *device,\n"
33611 #: ../src/guestfs-actions.pod:5836
33614 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
33615 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
33620 #: ../src/guestfs-actions.pod:5856
33622 "After the resize operation, the filesystem is always marked as requiring a "
33623 "consistency check (for safety). You have to boot into Windows to perform "
33624 "this check and clear this condition. If you I<don't> set the C<force> "
33625 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
33626 "times on a single filesystem without booting into Windows between each "
33631 #: ../src/guestfs-actions.pod:5871
33632 msgid "guestfs_ntfsresize_opts_va"
33636 #: ../src/guestfs-actions.pod:5873
33640 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
33641 " const char *device,\n"
33642 " va_list args);\n"
33647 #: ../src/guestfs-actions.pod:5878
33648 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
33652 #: ../src/guestfs-actions.pod:5882
33653 msgid "guestfs_ntfsresize_opts_argv"
33657 #: ../src/guestfs-actions.pod:5884
33661 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
33662 " const char *device,\n"
33663 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
33668 #: ../src/guestfs-actions.pod:5889
33669 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
33673 #: ../src/guestfs-actions.pod:5893
33674 msgid "guestfs_ntfsresize_size"
33678 #: ../src/guestfs-actions.pod:5895
33682 " guestfs_ntfsresize_size (guestfs_h *g,\n"
33683 " const char *device,\n"
33684 " int64_t size);\n"
33689 #: ../src/guestfs-actions.pod:5907
33691 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
33692 "to specify the new size (in bytes) explicitly."
33696 #: ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:6371
33697 #: ../src/guestfs-actions.pod:6444 ../src/guestfs-actions.pod:6712
33698 #: ../src/guestfs-actions.pod:8461
33699 msgid "(Added in 1.3.14)"
33700 msgstr "(Додано у 1.3.14)"
33703 #: ../src/guestfs-actions.pod:5914
33704 msgid "guestfs_part_add"
33708 #: ../src/guestfs-actions.pod:5916
33712 " guestfs_part_add (guestfs_h *g,\n"
33713 " const char *device,\n"
33714 " const char *prlogex,\n"
33715 " int64_t startsect,\n"
33716 " int64_t endsect);\n"
33721 #: ../src/guestfs-actions.pod:5923
33723 "This command adds a partition to C<device>. If there is no partition table "
33724 "on the device, call C<guestfs_part_init> first."
33728 #: ../src/guestfs-actions.pod:5935
33730 "Creating a partition which covers the whole disk is not so easy. Use "
33731 "C<guestfs_part_disk> to do that."
33735 #: ../src/guestfs-actions.pod:5940 ../src/guestfs-actions.pod:5975
33736 #: ../src/guestfs-actions.pod:6028 ../src/guestfs-actions.pod:6112
33737 #: ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6169
33738 #: ../src/guestfs-actions.pod:6209
33739 msgid "(Added in 1.0.78)"
33740 msgstr "(Додано у 1.0.78)"
33743 #: ../src/guestfs-actions.pod:5942
33744 msgid "guestfs_part_del"
33748 #: ../src/guestfs-actions.pod:5944
33752 " guestfs_part_del (guestfs_h *g,\n"
33753 " const char *device,\n"
33759 #: ../src/guestfs-actions.pod:5959
33760 msgid "guestfs_part_disk"
33764 #: ../src/guestfs-actions.pod:5961
33768 " guestfs_part_disk (guestfs_h *g,\n"
33769 " const char *device,\n"
33770 " const char *parttype);\n"
33775 #: ../src/guestfs-actions.pod:5966
33777 "This command is simply a combination of C<guestfs_part_init> followed by "
33778 "C<guestfs_part_add> to create a single primary partition covering the whole "
33783 #: ../src/guestfs-actions.pod:5970
33785 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
33786 "possible values are described in C<guestfs_part_init>."
33790 #: ../src/guestfs-actions.pod:5977
33791 msgid "guestfs_part_get_bootable"
33795 #: ../src/guestfs-actions.pod:5979
33799 " guestfs_part_get_bootable (guestfs_h *g,\n"
33800 " const char *device,\n"
33806 #: ../src/guestfs-actions.pod:5987
33807 msgid "See also C<guestfs_part_set_bootable>."
33811 #: ../src/guestfs-actions.pod:5993
33812 msgid "guestfs_part_get_mbr_id"
33816 #: ../src/guestfs-actions.pod:5995
33820 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
33821 " const char *device,\n"
33827 #: ../src/guestfs-actions.pod:6003 ../src/guestfs-actions.pod:6185
33829 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
33830 "undefined results for other partition table types (see "
33831 "C<guestfs_part_get_parttype>)."
33835 #: ../src/guestfs-actions.pod:6011
33836 msgid "guestfs_part_get_parttype"
33840 #: ../src/guestfs-actions.pod:6013
33844 " guestfs_part_get_parttype (guestfs_h *g,\n"
33845 " const char *device);\n"
33850 #: ../src/guestfs-actions.pod:6020
33852 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
33853 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
33854 "possible, although unusual. See C<guestfs_part_init> for a full list."
33858 #: ../src/guestfs-actions.pod:6030
33859 msgid "guestfs_part_init"
33863 #: ../src/guestfs-actions.pod:6032
33867 " guestfs_part_init (guestfs_h *g,\n"
33868 " const char *device,\n"
33869 " const char *parttype);\n"
33874 #: ../src/guestfs-actions.pod:6041
33876 "Initially there are no partitions. Following this, you should call "
33877 "C<guestfs_part_add> for each partition required."
33881 #: ../src/guestfs-actions.pod:6114
33882 msgid "guestfs_part_list"
33883 msgstr "guestfs_part_list"
33886 #: ../src/guestfs-actions.pod:6116
33889 " struct guestfs_partition_list *\n"
33890 " guestfs_part_list (guestfs_h *g,\n"
33891 " const char *device);\n"
33894 " struct guestfs_partition_list *\n"
33895 " guestfs_part_list (guestfs_h *g,\n"
33896 " const char *device);\n"
33900 #: ../src/guestfs-actions.pod:6133
33902 "Start of the partition I<in bytes>. To get sectors you have to divide by "
33903 "the device's sector size, see C<guestfs_blockdev_getss>."
33907 #: ../src/guestfs-actions.pod:6146
33909 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
33910 "was an error. I<The caller must call C<guestfs_free_partition_list> after "
33915 #: ../src/guestfs-actions.pod:6152
33916 msgid "guestfs_part_set_bootable"
33920 #: ../src/guestfs-actions.pod:6154
33924 " guestfs_part_set_bootable (guestfs_h *g,\n"
33925 " const char *device,\n"
33927 " int bootable);\n"
33932 #: ../src/guestfs-actions.pod:6171
33933 msgid "guestfs_part_set_mbr_id"
33937 #: ../src/guestfs-actions.pod:6173
33941 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
33942 " const char *device,\n"
33949 #: ../src/guestfs-actions.pod:6193
33950 msgid "guestfs_part_set_name"
33954 #: ../src/guestfs-actions.pod:6195
33958 " guestfs_part_set_name (guestfs_h *g,\n"
33959 " const char *device,\n"
33961 " const char *name);\n"
33966 #: ../src/guestfs-actions.pod:6211
33967 msgid "guestfs_part_to_dev"
33971 #: ../src/guestfs-actions.pod:6213
33975 " guestfs_part_to_dev (guestfs_h *g,\n"
33976 " const char *partition);\n"
33981 #: ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6240
33983 "The named partition must exist, for example as a string returned from "
33984 "C<guestfs_list_partitions>."
33988 #: ../src/guestfs-actions.pod:6224
33989 msgid "See also C<guestfs_part_to_partnum>."
33993 #: ../src/guestfs-actions.pod:6231
33994 msgid "guestfs_part_to_partnum"
33998 #: ../src/guestfs-actions.pod:6233
34002 " guestfs_part_to_partnum (guestfs_h *g,\n"
34003 " const char *partition);\n"
34008 #: ../src/guestfs-actions.pod:6243
34009 msgid "See also C<guestfs_part_to_dev>."
34013 #: ../src/guestfs-actions.pod:6249
34014 msgid "guestfs_ping_daemon"
34018 #: ../src/guestfs-actions.pod:6251
34022 " guestfs_ping_daemon (guestfs_h *g);\n"
34027 #: ../src/guestfs-actions.pod:6263
34028 msgid "guestfs_pread"
34032 #: ../src/guestfs-actions.pod:6265
34036 " guestfs_pread (guestfs_h *g,\n"
34037 " const char *path,\n"
34039 " int64_t offset,\n"
34040 " size_t *size_r);\n"
34045 #: ../src/guestfs-actions.pod:6278
34046 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
34050 #: ../src/guestfs-actions.pod:6289
34051 msgid "guestfs_pread_device"
34055 #: ../src/guestfs-actions.pod:6291
34059 " guestfs_pread_device (guestfs_h *g,\n"
34060 " const char *device,\n"
34062 " int64_t offset,\n"
34063 " size_t *size_r);\n"
34068 #: ../src/guestfs-actions.pod:6304
34069 msgid "See also C<guestfs_pread>."
34073 #: ../src/guestfs-actions.pod:6313
34074 msgid "(Added in 1.5.21)"
34075 msgstr "(Додано у 1.5.21)"
34078 #: ../src/guestfs-actions.pod:6315
34079 msgid "guestfs_pvcreate"
34083 #: ../src/guestfs-actions.pod:6317
34087 " guestfs_pvcreate (guestfs_h *g,\n"
34088 " const char *device);\n"
34093 #: ../src/guestfs-actions.pod:6329
34094 msgid "guestfs_pvremove"
34098 #: ../src/guestfs-actions.pod:6331
34102 " guestfs_pvremove (guestfs_h *g,\n"
34103 " const char *device);\n"
34108 #: ../src/guestfs-actions.pod:6346
34109 msgid "guestfs_pvresize"
34113 #: ../src/guestfs-actions.pod:6348
34117 " guestfs_pvresize (guestfs_h *g,\n"
34118 " const char *device);\n"
34123 #: ../src/guestfs-actions.pod:6359
34124 msgid "guestfs_pvresize_size"
34128 #: ../src/guestfs-actions.pod:6361
34132 " guestfs_pvresize_size (guestfs_h *g,\n"
34133 " const char *device,\n"
34134 " int64_t size);\n"
34139 #: ../src/guestfs-actions.pod:6366
34141 "This command is the same as C<guestfs_pvresize> except that it allows you to "
34142 "specify the new size (in bytes) explicitly."
34146 #: ../src/guestfs-actions.pod:6373
34147 msgid "guestfs_pvs"
34151 #: ../src/guestfs-actions.pod:6375
34155 " guestfs_pvs (guestfs_h *g);\n"
34160 #: ../src/guestfs-actions.pod:6384
34161 msgid "See also C<guestfs_pvs_full>."
34165 #: ../src/guestfs-actions.pod:6392
34166 msgid "guestfs_pvs_full"
34170 #: ../src/guestfs-actions.pod:6394
34173 " struct guestfs_lvm_pv_list *\n"
34174 " guestfs_pvs_full (guestfs_h *g);\n"
34179 #: ../src/guestfs-actions.pod:6400
34181 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
34182 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
34186 #: ../src/guestfs-actions.pod:6406
34187 msgid "guestfs_pvuuid"
34191 #: ../src/guestfs-actions.pod:6408
34195 " guestfs_pvuuid (guestfs_h *g,\n"
34196 " const char *device);\n"
34201 #: ../src/guestfs-actions.pod:6419
34202 msgid "guestfs_pwrite"
34206 #: ../src/guestfs-actions.pod:6421
34210 " guestfs_pwrite (guestfs_h *g,\n"
34211 " const char *path,\n"
34212 " const char *content,\n"
34213 " size_t content_size,\n"
34214 " int64_t offset);\n"
34219 #: ../src/guestfs-actions.pod:6437
34220 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
34224 #: ../src/guestfs-actions.pod:6446
34225 msgid "guestfs_pwrite_device"
34229 #: ../src/guestfs-actions.pod:6448
34233 " guestfs_pwrite_device (guestfs_h *g,\n"
34234 " const char *device,\n"
34235 " const char *content,\n"
34236 " size_t content_size,\n"
34237 " int64_t offset);\n"
34242 #: ../src/guestfs-actions.pod:6463
34243 msgid "See also C<guestfs_pwrite>."
34247 #: ../src/guestfs-actions.pod:6470
34248 msgid "(Added in 1.5.20)"
34249 msgstr "(Додано у 1.5.20)"
34252 #: ../src/guestfs-actions.pod:6472
34253 msgid "guestfs_read_file"
34257 #: ../src/guestfs-actions.pod:6474
34261 " guestfs_read_file (guestfs_h *g,\n"
34262 " const char *path,\n"
34263 " size_t *size_r);\n"
34268 #: ../src/guestfs-actions.pod:6482
34270 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
34271 "embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
34272 "function is limited in the total size of file that can be handled."
34276 #: ../src/guestfs-actions.pod:6494
34277 msgid "(Added in 1.0.63)"
34278 msgstr "(Додано у 1.0.63)"
34281 #: ../src/guestfs-actions.pod:6496
34282 msgid "guestfs_read_lines"
34286 #: ../src/guestfs-actions.pod:6498
34290 " guestfs_read_lines (guestfs_h *g,\n"
34291 " const char *path);\n"
34296 #: ../src/guestfs-actions.pod:6507
34298 "Note that this function cannot correctly handle binary files (specifically, "
34299 "files containing C<\\0> character which is treated as end of line). For "
34300 "those you need to use the C<guestfs_read_file> function which has a more "
34301 "complex interface."
34305 #: ../src/guestfs-actions.pod:6518
34306 msgid "guestfs_readdir"
34310 #: ../src/guestfs-actions.pod:6520
34313 " struct guestfs_dirent_list *\n"
34314 " guestfs_readdir (guestfs_h *g,\n"
34315 " const char *dir);\n"
34320 #: ../src/guestfs-actions.pod:6574
34322 "This function is primarily intended for use by programs. To get a simple "
34323 "list of names, use C<guestfs_ls>. To get a printable directory for human "
34324 "consumption, use C<guestfs_ll>."
34328 #: ../src/guestfs-actions.pod:6578
34330 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
34331 "was an error. I<The caller must call C<guestfs_free_dirent_list> after use>."
34335 #: ../src/guestfs-actions.pod:6584
34336 msgid "guestfs_readlink"
34340 #: ../src/guestfs-actions.pod:6586
34344 " guestfs_readlink (guestfs_h *g,\n"
34345 " const char *path);\n"
34350 #: ../src/guestfs-actions.pod:6597
34351 msgid "guestfs_readlinklist"
34355 #: ../src/guestfs-actions.pod:6599
34359 " guestfs_readlinklist (guestfs_h *g,\n"
34360 " const char *path,\n"
34361 " char *const *names);\n"
34366 #: ../src/guestfs-actions.pod:6632
34367 msgid "guestfs_realpath"
34371 #: ../src/guestfs-actions.pod:6634
34375 " guestfs_realpath (guestfs_h *g,\n"
34376 " const char *path);\n"
34381 #: ../src/guestfs-actions.pod:6646
34382 msgid "guestfs_removexattr"
34386 #: ../src/guestfs-actions.pod:6648
34390 " guestfs_removexattr (guestfs_h *g,\n"
34391 " const char *xattr,\n"
34392 " const char *path);\n"
34397 #: ../src/guestfs-actions.pod:6656
34398 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
34402 #: ../src/guestfs-actions.pod:6662
34403 msgid "guestfs_resize2fs"
34407 #: ../src/guestfs-actions.pod:6664
34411 " guestfs_resize2fs (guestfs_h *g,\n"
34412 " const char *device);\n"
34417 #: ../src/guestfs-actions.pod:6671
34419 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
34420 "C<device> before calling this command. For unknown reasons C<resize2fs> "
34421 "sometimes gives an error about this and sometimes not. In any case, it is "
34422 "always safe to call C<guestfs_e2fsck_f> before calling this function."
34426 #: ../src/guestfs-actions.pod:6681
34427 msgid "guestfs_resize2fs_M"
34431 #: ../src/guestfs-actions.pod:6683
34435 " guestfs_resize2fs_M (guestfs_h *g,\n"
34436 " const char *device);\n"
34441 #: ../src/guestfs-actions.pod:6687
34443 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
34444 "resized to its minimum size. This works like the I<-M> option to the "
34445 "C<resize2fs> command."
34449 #: ../src/guestfs-actions.pod:6691
34451 "To get the resulting size of the filesystem you should call "
34452 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
34453 "These two numbers, multiplied together, give the resulting size of the "
34454 "minimal filesystem in bytes."
34458 #: ../src/guestfs-actions.pod:6700
34459 msgid "guestfs_resize2fs_size"
34463 #: ../src/guestfs-actions.pod:6702
34467 " guestfs_resize2fs_size (guestfs_h *g,\n"
34468 " const char *device,\n"
34469 " int64_t size);\n"
34474 #: ../src/guestfs-actions.pod:6707
34476 "This command is the same as C<guestfs_resize2fs> except that it allows you "
34477 "to specify the new size (in bytes) explicitly."
34481 #: ../src/guestfs-actions.pod:6714
34486 #: ../src/guestfs-actions.pod:6716
34490 " guestfs_rm (guestfs_h *g,\n"
34491 " const char *path);\n"
34496 #: ../src/guestfs-actions.pod:6726
34497 msgid "guestfs_rm_rf"
34501 #: ../src/guestfs-actions.pod:6728
34505 " guestfs_rm_rf (guestfs_h *g,\n"
34506 " const char *path);\n"
34511 #: ../src/guestfs-actions.pod:6740
34512 msgid "guestfs_rmdir"
34516 #: ../src/guestfs-actions.pod:6742
34520 " guestfs_rmdir (guestfs_h *g,\n"
34521 " const char *path);\n"
34526 #: ../src/guestfs-actions.pod:6752
34527 msgid "guestfs_rmmountpoint"
34531 #: ../src/guestfs-actions.pod:6754
34535 " guestfs_rmmountpoint (guestfs_h *g,\n"
34536 " const char *exemptpath);\n"
34541 #: ../src/guestfs-actions.pod:6758
34543 "This calls removes a mountpoint that was previously created with "
34544 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
34548 #: ../src/guestfs-actions.pod:6766
34549 msgid "guestfs_scrub_device"
34553 #: ../src/guestfs-actions.pod:6768
34557 " guestfs_scrub_device (guestfs_h *g,\n"
34558 " const char *device);\n"
34563 #: ../src/guestfs-actions.pod:6780 ../src/guestfs-actions.pod:6798
34564 #: ../src/guestfs-actions.pod:6817
34565 msgid "(Added in 1.0.52)"
34566 msgstr "(Додано у 1.0.52)"
34569 #: ../src/guestfs-actions.pod:6782
34570 msgid "guestfs_scrub_file"
34574 #: ../src/guestfs-actions.pod:6784
34578 " guestfs_scrub_file (guestfs_h *g,\n"
34579 " const char *file);\n"
34584 #: ../src/guestfs-actions.pod:6800
34585 msgid "guestfs_scrub_freespace"
34589 #: ../src/guestfs-actions.pod:6802
34593 " guestfs_scrub_freespace (guestfs_h *g,\n"
34594 " const char *dir);\n"
34599 #: ../src/guestfs-actions.pod:6806
34601 "This command creates the directory C<dir> and then fills it with files until "
34602 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
34603 "and deletes them. The intention is to scrub any free space on the partition "
34604 "containing C<dir>."
34608 #: ../src/guestfs-actions.pod:6819
34609 msgid "guestfs_set_append"
34613 #: ../src/guestfs-actions.pod:6821
34617 " guestfs_set_append (guestfs_h *g,\n"
34618 " const char *append);\n"
34623 #: ../src/guestfs-actions.pod:6838
34624 msgid "guestfs_set_attach_method"
34628 #: ../src/guestfs-actions.pod:6840
34632 " guestfs_set_attach_method (guestfs_h *g,\n"
34633 " const char *attachmethod);\n"
34638 #: ../src/guestfs-actions.pod:6868
34639 msgid "guestfs_set_autosync"
34643 #: ../src/guestfs-actions.pod:6870
34647 " guestfs_set_autosync (guestfs_h *g,\n"
34648 " int autosync);\n"
34653 #: ../src/guestfs-actions.pod:6886
34654 msgid "guestfs_set_direct"
34658 #: ../src/guestfs-actions.pod:6888
34662 " guestfs_set_direct (guestfs_h *g,\n"
34668 #: ../src/guestfs-actions.pod:6896
34670 "One consequence of this is that log messages aren't caught by the library "
34671 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
34676 #: ../src/guestfs-actions.pod:6909
34677 msgid "guestfs_set_e2label"
34681 #: ../src/guestfs-actions.pod:6911
34685 " guestfs_set_e2label (guestfs_h *g,\n"
34686 " const char *device,\n"
34687 " const char *label);\n"
34692 #: ../src/guestfs-actions.pod:6920
34694 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
34695 "the existing label on a filesystem."
34699 #: ../src/guestfs-actions.pod:6927
34700 msgid "guestfs_set_e2uuid"
34704 #: ../src/guestfs-actions.pod:6929
34708 " guestfs_set_e2uuid (guestfs_h *g,\n"
34709 " const char *device,\n"
34710 " const char *uuid);\n"
34715 #: ../src/guestfs-actions.pod:6939
34717 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
34718 "the existing UUID of a filesystem."
34722 #: ../src/guestfs-actions.pod:6946
34723 msgid "guestfs_set_memsize"
34727 #: ../src/guestfs-actions.pod:6948
34731 " guestfs_set_memsize (guestfs_h *g,\n"
34737 #: ../src/guestfs-actions.pod:6952
34739 "This sets the memory size in megabytes allocated to the qemu subprocess. "
34740 "This only has any effect if called before C<guestfs_launch>."
34744 #: ../src/guestfs-actions.pod:6967
34745 msgid "guestfs_set_network"
34749 #: ../src/guestfs-actions.pod:6969
34753 " guestfs_set_network (guestfs_h *g,\n"
34759 #: ../src/guestfs-actions.pod:6979
34761 "You must call this before calling C<guestfs_launch>, otherwise it has no "
34766 #: ../src/guestfs-actions.pod:6986
34767 msgid "guestfs_set_path"
34771 #: ../src/guestfs-actions.pod:6988
34775 " guestfs_set_path (guestfs_h *g,\n"
34776 " const char *searchpath);\n"
34781 #: ../src/guestfs-actions.pod:7003
34782 msgid "guestfs_set_pgroup"
34786 #: ../src/guestfs-actions.pod:7005
34790 " guestfs_set_pgroup (guestfs_h *g,\n"
34796 #: ../src/guestfs-actions.pod:7022
34797 msgid "guestfs_set_qemu"
34801 #: ../src/guestfs-actions.pod:7024
34805 " guestfs_set_qemu (guestfs_h *g,\n"
34806 " const char *qemu);\n"
34811 #: ../src/guestfs-actions.pod:7050
34812 msgid "guestfs_set_recovery_proc"
34816 #: ../src/guestfs-actions.pod:7052
34820 " guestfs_set_recovery_proc (guestfs_h *g,\n"
34821 " int recoveryproc);\n"
34826 #: ../src/guestfs-actions.pod:7056
34828 "If this is called with the parameter C<false> then C<guestfs_launch> does "
34829 "not create a recovery process. The purpose of the recovery process is to "
34830 "stop runaway qemu processes in the case where the main program aborts "
34835 #: ../src/guestfs-actions.pod:7061
34837 "This only has any effect if called before C<guestfs_launch>, and the default "
34842 #: ../src/guestfs-actions.pod:7074
34843 msgid "guestfs_set_selinux"
34847 #: ../src/guestfs-actions.pod:7076
34851 " guestfs_set_selinux (guestfs_h *g,\n"
34857 #: ../src/guestfs-actions.pod:7093
34858 msgid "guestfs_set_smp"
34862 #: ../src/guestfs-actions.pod:7095
34866 " guestfs_set_smp (guestfs_h *g,\n"
34872 #: ../src/guestfs-actions.pod:7103
34873 msgid "This function must be called before C<guestfs_launch>."
34877 #: ../src/guestfs-actions.pod:7109
34878 msgid "guestfs_set_trace"
34882 #: ../src/guestfs-actions.pod:7111
34886 " guestfs_set_trace (guestfs_h *g,\n"
34892 #: ../src/guestfs-actions.pod:7125
34894 "Trace messages are normally sent to C<stderr>, unless you register a "
34895 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
34899 #: ../src/guestfs-actions.pod:7133
34900 msgid "guestfs_set_verbose"
34904 #: ../src/guestfs-actions.pod:7135
34908 " guestfs_set_verbose (guestfs_h *g,\n"
34914 #: ../src/guestfs-actions.pod:7144
34916 "Verbose messages are normally sent to C<stderr>, unless you register a "
34917 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
34921 #: ../src/guestfs-actions.pod:7152
34922 msgid "guestfs_setcon"
34926 #: ../src/guestfs-actions.pod:7154
34930 " guestfs_setcon (guestfs_h *g,\n"
34931 " const char *context);\n"
34936 #: ../src/guestfs-actions.pod:7167
34937 msgid "guestfs_setxattr"
34941 #: ../src/guestfs-actions.pod:7169
34945 " guestfs_setxattr (guestfs_h *g,\n"
34946 " const char *xattr,\n"
34947 " const char *val,\n"
34949 " const char *path);\n"
34954 #: ../src/guestfs-actions.pod:7180
34955 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
34959 #: ../src/guestfs-actions.pod:7186
34960 msgid "guestfs_sfdisk"
34964 #: ../src/guestfs-actions.pod:7188
34968 " guestfs_sfdisk (guestfs_h *g,\n"
34969 " const char *device,\n"
34973 " char *const *lines);\n"
34978 #: ../src/guestfs-actions.pod:7196 ../src/guestfs-actions.pod:7237
34979 #: ../src/guestfs-actions.pod:7268
34981 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
34986 #: ../src/guestfs-actions.pod:7223
34988 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
34992 #: ../src/guestfs-actions.pod:7230
34993 msgid "guestfs_sfdiskM"
34997 #: ../src/guestfs-actions.pod:7232
35001 " guestfs_sfdiskM (guestfs_h *g,\n"
35002 " const char *device,\n"
35003 " char *const *lines);\n"
35008 #: ../src/guestfs-actions.pod:7244
35010 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
35011 "partition sizes are specified in megabytes only (rounded to the nearest "
35012 "cylinder) and you don't need to specify the cyls, heads and sectors "
35013 "parameters which were rarely if ever used anyway."
35017 #: ../src/guestfs-actions.pod:7250
35019 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
35020 "C<guestfs_part_disk>"
35024 #: ../src/guestfs-actions.pod:7257
35025 msgid "guestfs_sfdisk_N"
35029 #: ../src/guestfs-actions.pod:7259
35033 " guestfs_sfdisk_N (guestfs_h *g,\n"
35034 " const char *device,\n"
35039 " const char *line);\n"
35044 #: ../src/guestfs-actions.pod:7278
35046 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
35047 "for the cyls/heads/sectors parameters."
35051 #: ../src/guestfs-actions.pod:7281
35052 msgid "See also: C<guestfs_part_add>"
35056 #: ../src/guestfs-actions.pod:7287
35057 msgid "guestfs_sfdisk_disk_geometry"
35061 #: ../src/guestfs-actions.pod:7289
35065 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
35066 " const char *device);\n"
35071 #: ../src/guestfs-actions.pod:7293
35073 "This displays the disk geometry of C<device> read from the partition table. "
35074 "Especially in the case where the underlying block device has been resized, "
35075 "this can be different from the kernel's idea of the geometry (see "
35076 "C<guestfs_sfdisk_kernel_geometry>)."
35080 #: ../src/guestfs-actions.pod:7306
35081 msgid "guestfs_sfdisk_kernel_geometry"
35085 #: ../src/guestfs-actions.pod:7308
35089 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
35090 " const char *device);\n"
35095 #: ../src/guestfs-actions.pod:7322
35096 msgid "guestfs_sfdisk_l"
35100 #: ../src/guestfs-actions.pod:7324
35104 " guestfs_sfdisk_l (guestfs_h *g,\n"
35105 " const char *device);\n"
35110 #: ../src/guestfs-actions.pod:7328
35112 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
35117 #: ../src/guestfs-actions.pod:7339
35118 msgid "See also: C<guestfs_part_list>"
35122 #: ../src/guestfs-actions.pod:7346
35127 #: ../src/guestfs-actions.pod:7348
35131 " guestfs_sh (guestfs_h *g,\n"
35132 " const char *command);\n"
35137 #: ../src/guestfs-actions.pod:7355
35138 msgid "This is like C<guestfs_command>, but passes the command to:"
35142 #: ../src/guestfs-actions.pod:7363
35143 msgid "All the provisos about C<guestfs_command> apply to this call."
35147 #: ../src/guestfs-actions.pod:7370
35148 msgid "guestfs_sh_lines"
35152 #: ../src/guestfs-actions.pod:7372
35156 " guestfs_sh_lines (guestfs_h *g,\n"
35157 " const char *command);\n"
35162 #: ../src/guestfs-actions.pod:7376
35164 "This is the same as C<guestfs_sh>, but splits the result into a list of "
35169 #: ../src/guestfs-actions.pod:7379
35170 msgid "See also: C<guestfs_command_lines>"
35174 #: ../src/guestfs-actions.pod:7387
35175 msgid "guestfs_sleep"
35179 #: ../src/guestfs-actions.pod:7389
35183 " guestfs_sleep (guestfs_h *g,\n"
35189 #: ../src/guestfs-actions.pod:7397
35190 msgid "(Added in 1.0.41)"
35191 msgstr "(Додано у 1.0.41)"
35194 #: ../src/guestfs-actions.pod:7399 ../src/guestfs-structs.pod:109
35195 msgid "guestfs_stat"
35199 #: ../src/guestfs-actions.pod:7401
35202 " struct guestfs_stat *\n"
35203 " guestfs_stat (guestfs_h *g,\n"
35204 " const char *path);\n"
35209 #: ../src/guestfs-actions.pod:7415 ../src/guestfs-structs.pod:135
35210 msgid "guestfs_statvfs"
35214 #: ../src/guestfs-actions.pod:7417
35217 " struct guestfs_statvfs *\n"
35218 " guestfs_statvfs (guestfs_h *g,\n"
35219 " const char *path);\n"
35224 #: ../src/guestfs-actions.pod:7427
35226 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
35227 "error. I<The caller must call C<guestfs_free_statvfs> after use>."
35231 #: ../src/guestfs-actions.pod:7433
35232 msgid "guestfs_strings"
35236 #: ../src/guestfs-actions.pod:7435
35240 " guestfs_strings (guestfs_h *g,\n"
35241 " const char *path);\n"
35246 #: ../src/guestfs-actions.pod:7451
35247 msgid "guestfs_strings_e"
35251 #: ../src/guestfs-actions.pod:7453
35255 " guestfs_strings_e (guestfs_h *g,\n"
35256 " const char *encoding,\n"
35257 " const char *path);\n"
35262 #: ../src/guestfs-actions.pod:7458
35264 "This is like the C<guestfs_strings> command, but allows you to specify the "
35265 "encoding of strings that are looked for in the source file C<path>."
35269 #: ../src/guestfs-actions.pod:7468
35271 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
35272 "ISO-8859-X (this is what C<guestfs_strings> uses)."
35276 #: ../src/guestfs-actions.pod:7506
35277 msgid "guestfs_swapoff_device"
35281 #: ../src/guestfs-actions.pod:7508
35285 " guestfs_swapoff_device (guestfs_h *g,\n"
35286 " const char *device);\n"
35291 #: ../src/guestfs-actions.pod:7512
35293 "This command disables the libguestfs appliance swap device or partition "
35294 "named C<device>. See C<guestfs_swapon_device>."
35298 #: ../src/guestfs-actions.pod:7520
35299 msgid "guestfs_swapoff_file"
35303 #: ../src/guestfs-actions.pod:7522
35307 " guestfs_swapoff_file (guestfs_h *g,\n"
35308 " const char *file);\n"
35313 #: ../src/guestfs-actions.pod:7532
35314 msgid "guestfs_swapoff_label"
35318 #: ../src/guestfs-actions.pod:7534
35322 " guestfs_swapoff_label (guestfs_h *g,\n"
35323 " const char *label);\n"
35328 #: ../src/guestfs-actions.pod:7545
35329 msgid "guestfs_swapoff_uuid"
35333 #: ../src/guestfs-actions.pod:7547
35337 " guestfs_swapoff_uuid (guestfs_h *g,\n"
35338 " const char *uuid);\n"
35343 #: ../src/guestfs-actions.pod:7558
35344 msgid "guestfs_swapon_device"
35348 #: ../src/guestfs-actions.pod:7560
35352 " guestfs_swapon_device (guestfs_h *g,\n"
35353 " const char *device);\n"
35358 #: ../src/guestfs-actions.pod:7564
35360 "This command enables the libguestfs appliance to use the swap device or "
35361 "partition named C<device>. The increased memory is made available for all "
35362 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
35366 #: ../src/guestfs-actions.pod:7580
35367 msgid "guestfs_swapon_file"
35371 #: ../src/guestfs-actions.pod:7582
35375 " guestfs_swapon_file (guestfs_h *g,\n"
35376 " const char *file);\n"
35381 #: ../src/guestfs-actions.pod:7586
35383 "This command enables swap to a file. See C<guestfs_swapon_device> for other "
35388 #: ../src/guestfs-actions.pod:7593
35389 msgid "guestfs_swapon_label"
35393 #: ../src/guestfs-actions.pod:7595
35397 " guestfs_swapon_label (guestfs_h *g,\n"
35398 " const char *label);\n"
35403 #: ../src/guestfs-actions.pod:7599
35405 "This command enables swap to a labeled swap partition. See "
35406 "C<guestfs_swapon_device> for other notes."
35410 #: ../src/guestfs-actions.pod:7606
35411 msgid "guestfs_swapon_uuid"
35415 #: ../src/guestfs-actions.pod:7608
35419 " guestfs_swapon_uuid (guestfs_h *g,\n"
35420 " const char *uuid);\n"
35425 #: ../src/guestfs-actions.pod:7612
35427 "This command enables swap to a swap partition with the given UUID. See "
35428 "C<guestfs_swapon_device> for other notes."
35432 #: ../src/guestfs-actions.pod:7619
35433 msgid "guestfs_sync"
35437 #: ../src/guestfs-actions.pod:7621
35441 " guestfs_sync (guestfs_h *g);\n"
35446 #: ../src/guestfs-actions.pod:7634
35447 msgid "guestfs_tail"
35451 #: ../src/guestfs-actions.pod:7636
35455 " guestfs_tail (guestfs_h *g,\n"
35456 " const char *path);\n"
35461 #: ../src/guestfs-actions.pod:7652
35462 msgid "guestfs_tail_n"
35466 #: ../src/guestfs-actions.pod:7654
35470 " guestfs_tail_n (guestfs_h *g,\n"
35472 " const char *path);\n"
35477 #: ../src/guestfs-actions.pod:7676
35478 msgid "guestfs_tar_in"
35482 #: ../src/guestfs-actions.pod:7678
35486 " guestfs_tar_in (guestfs_h *g,\n"
35487 " const char *tarfile,\n"
35488 " const char *directory);\n"
35493 #: ../src/guestfs-actions.pod:7686
35495 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
35499 #: ../src/guestfs-actions.pod:7691 ../src/guestfs-actions.pod:7708
35500 #: ../src/guestfs-actions.pod:7724 ../src/guestfs-actions.pod:7740
35501 msgid "(Added in 1.0.3)"
35502 msgstr "(Додано у 1.0.3)"
35505 #: ../src/guestfs-actions.pod:7693
35506 msgid "guestfs_tar_out"
35510 #: ../src/guestfs-actions.pod:7695
35514 " guestfs_tar_out (guestfs_h *g,\n"
35515 " const char *directory,\n"
35516 " const char *tarfile);\n"
35521 #: ../src/guestfs-actions.pod:7703
35523 "To download a compressed tarball, use C<guestfs_tgz_out> or "
35524 "C<guestfs_txz_out>."
35528 #: ../src/guestfs-actions.pod:7710
35529 msgid "guestfs_tgz_in"
35533 #: ../src/guestfs-actions.pod:7712
35537 " guestfs_tgz_in (guestfs_h *g,\n"
35538 " const char *tarball,\n"
35539 " const char *directory);\n"
35544 #: ../src/guestfs-actions.pod:7720
35545 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
35549 #: ../src/guestfs-actions.pod:7726
35550 msgid "guestfs_tgz_out"
35554 #: ../src/guestfs-actions.pod:7728
35558 " guestfs_tgz_out (guestfs_h *g,\n"
35559 " const char *directory,\n"
35560 " const char *tarball);\n"
35565 #: ../src/guestfs-actions.pod:7736
35566 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
35570 #: ../src/guestfs-actions.pod:7742
35571 msgid "guestfs_touch"
35575 #: ../src/guestfs-actions.pod:7744
35579 " guestfs_touch (guestfs_h *g,\n"
35580 " const char *path);\n"
35585 #: ../src/guestfs-actions.pod:7759
35586 msgid "guestfs_truncate"
35590 #: ../src/guestfs-actions.pod:7761
35594 " guestfs_truncate (guestfs_h *g,\n"
35595 " const char *path);\n"
35600 #: ../src/guestfs-actions.pod:7772
35601 msgid "guestfs_truncate_size"
35605 #: ../src/guestfs-actions.pod:7774
35609 " guestfs_truncate_size (guestfs_h *g,\n"
35610 " const char *path,\n"
35611 " int64_t size);\n"
35616 #: ../src/guestfs-actions.pod:7782
35618 "If the current file size is less than C<size> then the file is extended to "
35619 "the required size with zero bytes. This creates a sparse file (ie. disk "
35620 "blocks are not allocated for the file until you write to it). To create a "
35621 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
35625 #: ../src/guestfs-actions.pod:7792
35627 #| msgid "guestfs_mke2fs_J"
35628 msgid "guestfs_tune2fs"
35629 msgstr "guestfs_mke2fs_J"
35632 #: ../src/guestfs-actions.pod:7794
35636 #| " guestfs_lvresize (guestfs_h *g,\n"
35637 #| " const char *device,\n"
35638 #| " int mbytes);\n"
35642 " guestfs_tune2fs (guestfs_h *g,\n"
35643 " const char *device,\n"
35648 " guestfs_lvresize (guestfs_h *g,\n"
35649 " const char *device,\n"
35654 #: ../src/guestfs-actions.pod:7804
35657 " GUESTFS_TUNE2FS_FORCE, int force,\n"
35658 " GUESTFS_TUNE2FS_MAXMOUNTCOUNT, int maxmountcount,\n"
35659 " GUESTFS_TUNE2FS_MOUNTCOUNT, int mountcount,\n"
35660 " GUESTFS_TUNE2FS_ERRORBEHAVIOR, const char *errorbehavior,\n"
35661 " GUESTFS_TUNE2FS_GROUP, int64_t group,\n"
35662 " GUESTFS_TUNE2FS_INTERVALBETWEENCHECKS, int intervalbetweenchecks,\n"
35663 " GUESTFS_TUNE2FS_RESERVEDBLOCKSPERCENTAGE, int reservedblockspercentage,\n"
35664 " GUESTFS_TUNE2FS_LASTMOUNTEDDIRECTORY, const char *lastmounteddirectory,\n"
35665 " GUESTFS_TUNE2FS_RESERVEDBLOCKSCOUNT, int64_t reservedblockscount,\n"
35666 " GUESTFS_TUNE2FS_USER, int64_t user,\n"
35671 #: ../src/guestfs-actions.pod:7884
35673 "To get the current values of filesystem parameters, see "
35674 "C<guestfs_tune2fs_l>. For precise details of how tune2fs works, see the "
35675 "L<tune2fs(8)> man page."
35679 #: ../src/guestfs-actions.pod:7892
35681 #| msgid "guestfs_mke2fs_J"
35682 msgid "guestfs_tune2fs_va"
35683 msgstr "guestfs_mke2fs_J"
35686 #: ../src/guestfs-actions.pod:7894
35690 #| " guestfs_lvresize (guestfs_h *g,\n"
35691 #| " const char *device,\n"
35692 #| " int mbytes);\n"
35696 " guestfs_tune2fs_va (guestfs_h *g,\n"
35697 " const char *device,\n"
35698 " va_list args);\n"
35702 " guestfs_lvresize (guestfs_h *g,\n"
35703 " const char *device,\n"
35708 #: ../src/guestfs-actions.pod:7899
35709 msgid "This is the \"va_list variant\" of L</guestfs_tune2fs>."
35713 #: ../src/guestfs-actions.pod:7903
35715 #| msgid "guestfs_mke2fs_J"
35716 msgid "guestfs_tune2fs_argv"
35717 msgstr "guestfs_mke2fs_J"
35720 #: ../src/guestfs-actions.pod:7905
35724 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
35725 #| " const char *fstype,\n"
35726 #| " const char *device,\n"
35727 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
35731 " guestfs_tune2fs_argv (guestfs_h *g,\n"
35732 " const char *device,\n"
35733 " const struct guestfs_tune2fs_argv *optargs);\n"
35737 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
35738 " const char *fstype,\n"
35739 " const char *device,\n"
35740 " const struct guestfs_mkfs_opts_argv *optargs);\n"
35744 #: ../src/guestfs-actions.pod:7910
35745 msgid "This is the \"argv variant\" of L</guestfs_tune2fs>."
35749 #: ../src/guestfs-actions.pod:7914
35750 msgid "guestfs_tune2fs_l"
35754 #: ../src/guestfs-actions.pod:7916
35758 " guestfs_tune2fs_l (guestfs_h *g,\n"
35759 " const char *device);\n"
35764 #: ../src/guestfs-actions.pod:7936
35765 msgid "guestfs_txz_in"
35769 #: ../src/guestfs-actions.pod:7938
35773 " guestfs_txz_in (guestfs_h *g,\n"
35774 " const char *tarball,\n"
35775 " const char *directory);\n"
35780 #: ../src/guestfs-actions.pod:7950
35781 msgid "guestfs_txz_out"
35785 #: ../src/guestfs-actions.pod:7952
35789 " guestfs_txz_out (guestfs_h *g,\n"
35790 " const char *directory,\n"
35791 " const char *tarball);\n"
35796 #: ../src/guestfs-actions.pod:7964
35797 msgid "guestfs_umask"
35801 #: ../src/guestfs-actions.pod:7966
35805 " guestfs_umask (guestfs_h *g,\n"
35811 #: ../src/guestfs-actions.pod:7982
35813 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
35814 "C<guestfs_mkdir>."
35818 #: ../src/guestfs-actions.pod:7991
35819 msgid "guestfs_umount"
35823 #: ../src/guestfs-actions.pod:7993
35827 " guestfs_umount (guestfs_h *g,\n"
35828 " const char *pathordevice);\n"
35833 #: ../src/guestfs-actions.pod:8005
35834 msgid "guestfs_umount_all"
35838 #: ../src/guestfs-actions.pod:8007
35842 " guestfs_umount_all (guestfs_h *g);\n"
35847 #: ../src/guestfs-actions.pod:8018
35848 msgid "guestfs_upload"
35852 #: ../src/guestfs-actions.pod:8020
35856 " guestfs_upload (guestfs_h *g,\n"
35857 " const char *filename,\n"
35858 " const char *remotefilename);\n"
35863 #: ../src/guestfs-actions.pod:8030
35864 msgid "See also C<guestfs_download>."
35868 #: ../src/guestfs-actions.pod:8041
35869 msgid "guestfs_upload_offset"
35873 #: ../src/guestfs-actions.pod:8043
35877 " guestfs_upload_offset (guestfs_h *g,\n"
35878 " const char *filename,\n"
35879 " const char *remotefilename,\n"
35880 " int64_t offset);\n"
35885 #: ../src/guestfs-actions.pod:8059
35887 "Note that there is no limit on the amount of data that can be uploaded with "
35888 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
35889 "full amount unless an error occurs."
35893 #: ../src/guestfs-actions.pod:8064
35894 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
35898 #: ../src/guestfs-actions.pod:8075
35899 msgid "guestfs_utimens"
35903 #: ../src/guestfs-actions.pod:8077
35907 " guestfs_utimens (guestfs_h *g,\n"
35908 " const char *path,\n"
35909 " int64_t atsecs,\n"
35910 " int64_t atnsecs,\n"
35911 " int64_t mtsecs,\n"
35912 " int64_t mtnsecs);\n"
35917 #: ../src/guestfs-actions.pod:8106 ../src/guestfs-structs.pod:175
35918 msgid "guestfs_version"
35922 #: ../src/guestfs-actions.pod:8108
35925 " struct guestfs_version *\n"
35926 " guestfs_version (guestfs_h *g);\n"
35931 #: ../src/guestfs-actions.pod:8136
35933 "I<Note:> Don't use this call to test for availability of features. In "
35934 "enterprise distributions we backport features from later versions into "
35935 "earlier versions, making this an unreliable way to test for features. Use "
35936 "C<guestfs_available> instead."
35940 #: ../src/guestfs-actions.pod:8142
35942 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
35943 "error. I<The caller must call C<guestfs_free_version> after use>."
35947 #: ../src/guestfs-actions.pod:8146
35948 msgid "(Added in 1.0.58)"
35949 msgstr "(Додано у 1.0.58)"
35952 #: ../src/guestfs-actions.pod:8148
35953 msgid "guestfs_vfs_label"
35957 #: ../src/guestfs-actions.pod:8150
35961 " guestfs_vfs_label (guestfs_h *g,\n"
35962 " const char *device);\n"
35967 #: ../src/guestfs-actions.pod:8159
35968 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
35972 #: ../src/guestfs-actions.pod:8164 ../src/guestfs-actions.pod:8201
35973 msgid "(Added in 1.3.18)"
35974 msgstr "(Додано у 1.3.18)"
35977 #: ../src/guestfs-actions.pod:8166
35978 msgid "guestfs_vfs_type"
35982 #: ../src/guestfs-actions.pod:8168
35986 " guestfs_vfs_type (guestfs_h *g,\n"
35987 " const char *device);\n"
35992 #: ../src/guestfs-actions.pod:8185
35993 msgid "guestfs_vfs_uuid"
35997 #: ../src/guestfs-actions.pod:8187
36001 " guestfs_vfs_uuid (guestfs_h *g,\n"
36002 " const char *device);\n"
36007 #: ../src/guestfs-actions.pod:8196
36008 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
36012 #: ../src/guestfs-actions.pod:8203
36013 msgid "guestfs_vg_activate"
36017 #: ../src/guestfs-actions.pod:8205
36021 " guestfs_vg_activate (guestfs_h *g,\n"
36023 " char *const *volgroups);\n"
36028 #: ../src/guestfs-actions.pod:8222
36029 msgid "guestfs_vg_activate_all"
36033 #: ../src/guestfs-actions.pod:8224
36037 " guestfs_vg_activate_all (guestfs_h *g,\n"
36038 " int activate);\n"
36043 #: ../src/guestfs-actions.pod:8237
36044 msgid "guestfs_vgcreate"
36048 #: ../src/guestfs-actions.pod:8239
36052 " guestfs_vgcreate (guestfs_h *g,\n"
36053 " const char *volgroup,\n"
36054 " char *const *physvols);\n"
36059 #: ../src/guestfs-actions.pod:8251
36060 msgid "guestfs_vglvuuids"
36064 #: ../src/guestfs-actions.pod:8253
36068 " guestfs_vglvuuids (guestfs_h *g,\n"
36069 " const char *vgname);\n"
36074 #: ../src/guestfs-actions.pod:8260
36076 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
36077 "associate logical volumes and volume groups."
36081 #: ../src/guestfs-actions.pod:8263
36082 msgid "See also C<guestfs_vgpvuuids>."
36086 #: ../src/guestfs-actions.pod:8271
36087 msgid "guestfs_vgpvuuids"
36091 #: ../src/guestfs-actions.pod:8273
36095 " guestfs_vgpvuuids (guestfs_h *g,\n"
36096 " const char *vgname);\n"
36101 #: ../src/guestfs-actions.pod:8280
36103 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
36104 "associate physical volumes and volume groups."
36108 #: ../src/guestfs-actions.pod:8283
36109 msgid "See also C<guestfs_vglvuuids>."
36113 #: ../src/guestfs-actions.pod:8291
36114 msgid "guestfs_vgremove"
36118 #: ../src/guestfs-actions.pod:8293
36122 " guestfs_vgremove (guestfs_h *g,\n"
36123 " const char *vgname);\n"
36128 #: ../src/guestfs-actions.pod:8306
36129 msgid "guestfs_vgrename"
36133 #: ../src/guestfs-actions.pod:8308
36137 " guestfs_vgrename (guestfs_h *g,\n"
36138 " const char *volgroup,\n"
36139 " const char *newvolgroup);\n"
36144 #: ../src/guestfs-actions.pod:8319
36145 msgid "guestfs_vgs"
36149 #: ../src/guestfs-actions.pod:8321
36153 " guestfs_vgs (guestfs_h *g);\n"
36158 #: ../src/guestfs-actions.pod:8330
36159 msgid "See also C<guestfs_vgs_full>."
36163 #: ../src/guestfs-actions.pod:8338
36164 msgid "guestfs_vgs_full"
36168 #: ../src/guestfs-actions.pod:8340
36171 " struct guestfs_lvm_vg_list *\n"
36172 " guestfs_vgs_full (guestfs_h *g);\n"
36177 #: ../src/guestfs-actions.pod:8346
36179 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
36180 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
36184 #: ../src/guestfs-actions.pod:8352
36185 msgid "guestfs_vgscan"
36189 #: ../src/guestfs-actions.pod:8354
36193 " guestfs_vgscan (guestfs_h *g);\n"
36198 #: ../src/guestfs-actions.pod:8364
36199 msgid "guestfs_vguuid"
36203 #: ../src/guestfs-actions.pod:8366
36207 " guestfs_vguuid (guestfs_h *g,\n"
36208 " const char *vgname);\n"
36213 #: ../src/guestfs-actions.pod:8377
36214 msgid "guestfs_wait_ready"
36218 #: ../src/guestfs-actions.pod:8379
36222 " guestfs_wait_ready (guestfs_h *g);\n"
36227 #: ../src/guestfs-actions.pod:8382
36229 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
36234 #: ../src/guestfs-actions.pod:8389
36235 msgid "This function is a no op."
36239 #: ../src/guestfs-actions.pod:8391
36241 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
36242 "calling C<guestfs_launch> to wait for the launch to complete. However this "
36243 "is no longer necessary because C<guestfs_launch> now does the waiting."
36247 #: ../src/guestfs-actions.pod:8396
36249 "If you see any calls to this function in code then you can just remove them, "
36250 "unless you want to retain compatibility with older versions of the API."
36254 #: ../src/guestfs-actions.pod:8404
36255 msgid "guestfs_wc_c"
36259 #: ../src/guestfs-actions.pod:8406
36263 " guestfs_wc_c (guestfs_h *g,\n"
36264 " const char *path);\n"
36269 #: ../src/guestfs-actions.pod:8417
36270 msgid "guestfs_wc_l"
36274 #: ../src/guestfs-actions.pod:8419
36278 " guestfs_wc_l (guestfs_h *g,\n"
36279 " const char *path);\n"
36284 #: ../src/guestfs-actions.pod:8430
36285 msgid "guestfs_wc_w"
36289 #: ../src/guestfs-actions.pod:8432
36293 " guestfs_wc_w (guestfs_h *g,\n"
36294 " const char *path);\n"
36299 #: ../src/guestfs-actions.pod:8443
36300 msgid "guestfs_write"
36304 #: ../src/guestfs-actions.pod:8445
36308 " guestfs_write (guestfs_h *g,\n"
36309 " const char *path,\n"
36310 " const char *content,\n"
36311 " size_t content_size);\n"
36316 #: ../src/guestfs-actions.pod:8454
36317 msgid "See also C<guestfs_write_append>."
36321 #: ../src/guestfs-actions.pod:8463
36322 msgid "guestfs_write_append"
36326 #: ../src/guestfs-actions.pod:8465
36330 " guestfs_write_append (guestfs_h *g,\n"
36331 " const char *path,\n"
36332 " const char *content,\n"
36333 " size_t content_size);\n"
36338 #: ../src/guestfs-actions.pod:8474
36339 msgid "See also C<guestfs_write>."
36343 #: ../src/guestfs-actions.pod:8483
36344 msgid "guestfs_write_file"
36345 msgstr "guestfs_write_file"
36348 #: ../src/guestfs-actions.pod:8485
36352 " guestfs_write_file (guestfs_h *g,\n"
36353 " const char *path,\n"
36354 " const char *content,\n"
36359 " guestfs_write_file (guestfs_h *g,\n"
36360 " const char *path,\n"
36361 " const char *content,\n"
36366 #: ../src/guestfs-actions.pod:8491
36368 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
36373 #: ../src/guestfs-actions.pod:8516
36374 msgid "guestfs_zegrep"
36375 msgstr "guestfs_zegrep"
36378 #: ../src/guestfs-actions.pod:8518
36382 " guestfs_zegrep (guestfs_h *g,\n"
36383 " const char *regex,\n"
36384 " const char *path);\n"
36388 " guestfs_zegrep (guestfs_h *g,\n"
36389 " const char *regex,\n"
36390 " const char *path);\n"
36394 #: ../src/guestfs-actions.pod:8535
36395 msgid "guestfs_zegrepi"
36396 msgstr "guestfs_zegrepi"
36399 #: ../src/guestfs-actions.pod:8537
36403 " guestfs_zegrepi (guestfs_h *g,\n"
36404 " const char *regex,\n"
36405 " const char *path);\n"
36409 " guestfs_zegrepi (guestfs_h *g,\n"
36410 " const char *regex,\n"
36411 " const char *path);\n"
36415 #: ../src/guestfs-actions.pod:8554
36416 msgid "guestfs_zero"
36417 msgstr "guestfs_zero"
36420 #: ../src/guestfs-actions.pod:8556
36424 " guestfs_zero (guestfs_h *g,\n"
36425 " const char *device);\n"
36429 " guestfs_zero (guestfs_h *g,\n"
36430 " const char *device);\n"
36434 #: ../src/guestfs-actions.pod:8570
36436 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
36437 "C<guestfs_is_zero_device>"
36441 #: ../src/guestfs-actions.pod:8582
36442 msgid "guestfs_zero_device"
36443 msgstr "guestfs_zero_device"
36446 #: ../src/guestfs-actions.pod:8584
36450 " guestfs_zero_device (guestfs_h *g,\n"
36451 " const char *device);\n"
36455 " guestfs_zero_device (guestfs_h *g,\n"
36456 " const char *device);\n"
36460 #: ../src/guestfs-actions.pod:8588
36462 "This command writes zeroes over the entire C<device>. Compare with "
36463 "C<guestfs_zero> which just zeroes the first few blocks of a device."
36467 #: ../src/guestfs-actions.pod:8603
36468 msgid "(Added in 1.3.1)"
36469 msgstr "(Додано у 1.3.1)"
36472 #: ../src/guestfs-actions.pod:8605
36473 msgid "guestfs_zerofree"
36474 msgstr "guestfs_zerofree"
36477 #: ../src/guestfs-actions.pod:8607
36481 " guestfs_zerofree (guestfs_h *g,\n"
36482 " const char *device);\n"
36486 " guestfs_zerofree (guestfs_h *g,\n"
36487 " const char *device);\n"
36491 #: ../src/guestfs-actions.pod:8626
36492 msgid "guestfs_zfgrep"
36493 msgstr "guestfs_zfgrep"
36496 #: ../src/guestfs-actions.pod:8628
36500 " guestfs_zfgrep (guestfs_h *g,\n"
36501 " const char *pattern,\n"
36502 " const char *path);\n"
36506 " guestfs_zfgrep (guestfs_h *g,\n"
36507 " const char *pattern,\n"
36508 " const char *path);\n"
36512 #: ../src/guestfs-actions.pod:8645
36513 msgid "guestfs_zfgrepi"
36514 msgstr "guestfs_zfgrepi"
36517 #: ../src/guestfs-actions.pod:8647
36521 " guestfs_zfgrepi (guestfs_h *g,\n"
36522 " const char *pattern,\n"
36523 " const char *path);\n"
36527 " guestfs_zfgrepi (guestfs_h *g,\n"
36528 " const char *pattern,\n"
36529 " const char *path);\n"
36533 #: ../src/guestfs-actions.pod:8664
36534 msgid "guestfs_zfile"
36535 msgstr "guestfs_zfile"
36538 #: ../src/guestfs-actions.pod:8666
36542 " guestfs_zfile (guestfs_h *g,\n"
36543 " const char *meth,\n"
36544 " const char *path);\n"
36548 " guestfs_zfile (guestfs_h *g,\n"
36549 " const char *meth,\n"
36550 " const char *path);\n"
36554 #: ../src/guestfs-actions.pod:8671
36556 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
36561 #: ../src/guestfs-actions.pod:8683
36563 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
36568 #: ../src/guestfs-actions.pod:8691
36569 msgid "guestfs_zgrep"
36570 msgstr "guestfs_zgrep"
36573 #: ../src/guestfs-actions.pod:8693
36577 " guestfs_zgrep (guestfs_h *g,\n"
36578 " const char *regex,\n"
36579 " const char *path);\n"
36583 " guestfs_zgrep (guestfs_h *g,\n"
36584 " const char *regex,\n"
36585 " const char *path);\n"
36589 #: ../src/guestfs-actions.pod:8710
36590 msgid "guestfs_zgrepi"
36591 msgstr "guestfs_zgrepi"
36594 #: ../src/guestfs-actions.pod:8712
36598 " guestfs_zgrepi (guestfs_h *g,\n"
36599 " const char *regex,\n"
36600 " const char *path);\n"
36604 " guestfs_zgrepi (guestfs_h *g,\n"
36605 " const char *regex,\n"
36606 " const char *path);\n"
36610 #: ../src/guestfs-availability.pod:3
36615 #: ../src/guestfs-availability.pod:5
36617 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
36618 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
36619 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
36620 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
36621 "L</guestfs_aug_save> L</guestfs_aug_set>"
36625 #: ../src/guestfs-availability.pod:21
36630 #: ../src/guestfs-availability.pod:23
36631 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
36635 #: ../src/guestfs-availability.pod:26
36640 #: ../src/guestfs-availability.pod:28
36641 msgid "The following functions: L</guestfs_grub_install>"
36645 #: ../src/guestfs-availability.pod:31
36647 msgstr "B<inotify>"
36650 #: ../src/guestfs-availability.pod:33
36652 "The following functions: L</guestfs_inotify_add_watch> L</"
36653 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
36654 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
36658 #: ../src/guestfs-availability.pod:41
36659 msgid "B<linuxfsuuid>"
36660 msgstr "B<linuxfsuuid>"
36663 #: ../src/guestfs-availability.pod:43
36665 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
36666 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
36670 #: ../src/guestfs-availability.pod:50
36671 msgid "B<linuxmodules>"
36672 msgstr "B<linuxmodules>"
36675 #: ../src/guestfs-availability.pod:52
36676 msgid "The following functions: L</guestfs_modprobe>"
36680 #: ../src/guestfs-availability.pod:55
36681 msgid "B<linuxxattrs>"
36682 msgstr "B<linuxxattrs>"
36685 #: ../src/guestfs-availability.pod:57
36687 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
36688 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
36689 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
36690 "guestfs_setxattr>"
36694 #: ../src/guestfs-availability.pod:68
36699 #: ../src/guestfs-availability.pod:70
36701 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
36702 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
36703 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
36707 #: ../src/guestfs-availability.pod:79
36712 #: ../src/guestfs-availability.pod:81
36714 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
36715 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
36716 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
36717 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
36718 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
36719 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
36720 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
36724 #: ../src/guestfs-availability.pod:104
36729 #: ../src/guestfs-availability.pod:106
36731 "The following functions: L</guestfs_md_create> L</guestfs_md_detail> L</"
36736 #: ../src/guestfs-availability.pod:111
36741 #: ../src/guestfs-availability.pod:113
36743 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
36744 "guestfs_mknod_b> L</guestfs_mknod_c>"
36748 #: ../src/guestfs-availability.pod:119
36753 #: ../src/guestfs-availability.pod:121
36754 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
36758 #: ../src/guestfs-availability.pod:124
36759 msgid "B<ntfsprogs>"
36760 msgstr "B<ntfsprogs>"
36763 #: ../src/guestfs-availability.pod:126
36765 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
36766 "L</guestfs_ntfsresize_size>"
36770 #: ../src/guestfs-availability.pod:131
36771 msgid "B<realpath>"
36772 msgstr "B<realpath>"
36775 #: ../src/guestfs-availability.pod:133
36776 msgid "The following functions: L</guestfs_realpath>"
36780 #: ../src/guestfs-availability.pod:136
36785 #: ../src/guestfs-availability.pod:138
36787 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
36788 "guestfs_scrub_freespace>"
36792 #: ../src/guestfs-availability.pod:143
36794 msgstr "B<selinux>"
36797 #: ../src/guestfs-availability.pod:145
36798 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
36802 #: ../src/guestfs-availability.pod:149
36807 #: ../src/guestfs-availability.pod:151
36808 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
36812 #: ../src/guestfs-availability.pod:155
36813 msgid "B<zerofree>"
36814 msgstr "B<zerofree>"
36817 #: ../src/guestfs-availability.pod:157
36818 msgid "The following functions: L</guestfs_zerofree>"
36822 #: ../src/guestfs-structs.pod:1
36823 msgid "guestfs_int_bool"
36827 #: ../src/guestfs-structs.pod:3
36830 " struct guestfs_int_bool {\n"
36838 #: ../src/guestfs-structs.pod:8
36841 " struct guestfs_int_bool_list {\n"
36842 " uint32_t len; /* Number of elements in list. */\n"
36843 " struct guestfs_int_bool *val; /* Elements. */\n"
36849 #: ../src/guestfs-structs.pod:13
36852 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
36853 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
36858 #: ../src/guestfs-structs.pod:16
36859 msgid "guestfs_lvm_pv"
36863 #: ../src/guestfs-structs.pod:18
36866 " struct guestfs_lvm_pv {\n"
36867 " char *pv_name;\n"
36868 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
36869 " char pv_uuid[32];\n"
36871 " uint64_t pv_size;\n"
36872 " uint64_t dev_size;\n"
36873 " uint64_t pv_free;\n"
36874 " uint64_t pv_used;\n"
36875 " char *pv_attr;\n"
36876 " int64_t pv_pe_count;\n"
36877 " int64_t pv_pe_alloc_count;\n"
36878 " char *pv_tags;\n"
36879 " uint64_t pe_start;\n"
36880 " int64_t pv_mda_count;\n"
36881 " uint64_t pv_mda_free;\n"
36887 #: ../src/guestfs-structs.pod:36
36890 " struct guestfs_lvm_pv_list {\n"
36891 " uint32_t len; /* Number of elements in list. */\n"
36892 " struct guestfs_lvm_pv *val; /* Elements. */\n"
36898 #: ../src/guestfs-structs.pod:41
36901 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
36902 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
36907 #: ../src/guestfs-structs.pod:44
36908 msgid "guestfs_lvm_vg"
36912 #: ../src/guestfs-structs.pod:46
36915 " struct guestfs_lvm_vg {\n"
36916 " char *vg_name;\n"
36917 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
36918 " char vg_uuid[32];\n"
36920 " char *vg_attr;\n"
36921 " uint64_t vg_size;\n"
36922 " uint64_t vg_free;\n"
36923 " char *vg_sysid;\n"
36924 " uint64_t vg_extent_size;\n"
36925 " int64_t vg_extent_count;\n"
36926 " int64_t vg_free_count;\n"
36927 " int64_t max_lv;\n"
36928 " int64_t max_pv;\n"
36929 " int64_t pv_count;\n"
36930 " int64_t lv_count;\n"
36931 " int64_t snap_count;\n"
36932 " int64_t vg_seqno;\n"
36933 " char *vg_tags;\n"
36934 " int64_t vg_mda_count;\n"
36935 " uint64_t vg_mda_free;\n"
36941 #: ../src/guestfs-structs.pod:69
36944 " struct guestfs_lvm_vg_list {\n"
36945 " uint32_t len; /* Number of elements in list. */\n"
36946 " struct guestfs_lvm_vg *val; /* Elements. */\n"
36952 #: ../src/guestfs-structs.pod:74
36955 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
36956 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
36961 #: ../src/guestfs-structs.pod:77
36962 msgid "guestfs_lvm_lv"
36966 #: ../src/guestfs-structs.pod:79
36969 " struct guestfs_lvm_lv {\n"
36970 " char *lv_name;\n"
36971 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
36972 " char lv_uuid[32];\n"
36973 " char *lv_attr;\n"
36974 " int64_t lv_major;\n"
36975 " int64_t lv_minor;\n"
36976 " int64_t lv_kernel_major;\n"
36977 " int64_t lv_kernel_minor;\n"
36978 " uint64_t lv_size;\n"
36979 " int64_t seg_count;\n"
36981 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
36982 " float snap_percent;\n"
36983 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
36984 " float copy_percent;\n"
36985 " char *move_pv;\n"
36986 " char *lv_tags;\n"
36987 " char *mirror_log;\n"
36988 " char *modules;\n"
36994 #: ../src/guestfs-structs.pod:101
36997 " struct guestfs_lvm_lv_list {\n"
36998 " uint32_t len; /* Number of elements in list. */\n"
36999 " struct guestfs_lvm_lv *val; /* Elements. */\n"
37005 #: ../src/guestfs-structs.pod:106
37008 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
37009 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
37014 #: ../src/guestfs-structs.pod:111
37017 " struct guestfs_stat {\n"
37021 " int64_t nlink;\n"
37026 " int64_t blksize;\n"
37027 " int64_t blocks;\n"
37028 " int64_t atime;\n"
37029 " int64_t mtime;\n"
37030 " int64_t ctime;\n"
37036 #: ../src/guestfs-structs.pod:127
37039 " struct guestfs_stat_list {\n"
37040 " uint32_t len; /* Number of elements in list. */\n"
37041 " struct guestfs_stat *val; /* Elements. */\n"
37047 #: ../src/guestfs-structs.pod:132
37050 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
37051 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
37056 #: ../src/guestfs-structs.pod:137
37059 " struct guestfs_statvfs {\n"
37060 " int64_t bsize;\n"
37061 " int64_t frsize;\n"
37062 " int64_t blocks;\n"
37063 " int64_t bfree;\n"
37064 " int64_t bavail;\n"
37065 " int64_t files;\n"
37066 " int64_t ffree;\n"
37067 " int64_t favail;\n"
37070 " int64_t namemax;\n"
37076 #: ../src/guestfs-structs.pod:151
37079 " struct guestfs_statvfs_list {\n"
37080 " uint32_t len; /* Number of elements in list. */\n"
37081 " struct guestfs_statvfs *val; /* Elements. */\n"
37087 #: ../src/guestfs-structs.pod:156
37090 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
37091 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
37096 #: ../src/guestfs-structs.pod:159
37097 msgid "guestfs_dirent"
37101 #: ../src/guestfs-structs.pod:161
37104 " struct guestfs_dirent {\n"
37113 #: ../src/guestfs-structs.pod:167
37116 " struct guestfs_dirent_list {\n"
37117 " uint32_t len; /* Number of elements in list. */\n"
37118 " struct guestfs_dirent *val; /* Elements. */\n"
37124 #: ../src/guestfs-structs.pod:172
37127 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
37128 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
37133 #: ../src/guestfs-structs.pod:177
37136 " struct guestfs_version {\n"
37137 " int64_t major;\n"
37138 " int64_t minor;\n"
37139 " int64_t release;\n"
37146 #: ../src/guestfs-structs.pod:184
37149 " struct guestfs_version_list {\n"
37150 " uint32_t len; /* Number of elements in list. */\n"
37151 " struct guestfs_version *val; /* Elements. */\n"
37157 #: ../src/guestfs-structs.pod:189
37160 " void guestfs_free_version (struct guestfs_free_version *);\n"
37161 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
37166 #: ../src/guestfs-structs.pod:192
37167 msgid "guestfs_xattr"
37171 #: ../src/guestfs-structs.pod:194
37174 " struct guestfs_xattr {\n"
37175 " char *attrname;\n"
37176 " /* The next two fields describe a byte array. */\n"
37177 " uint32_t attrval_len;\n"
37178 " char *attrval;\n"
37184 #: ../src/guestfs-structs.pod:201
37187 " struct guestfs_xattr_list {\n"
37188 " uint32_t len; /* Number of elements in list. */\n"
37189 " struct guestfs_xattr *val; /* Elements. */\n"
37195 #: ../src/guestfs-structs.pod:206
37198 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
37199 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
37204 #: ../src/guestfs-structs.pod:209
37205 msgid "guestfs_inotify_event"
37209 #: ../src/guestfs-structs.pod:211
37212 " struct guestfs_inotify_event {\n"
37213 " int64_t in_wd;\n"
37214 " uint32_t in_mask;\n"
37215 " uint32_t in_cookie;\n"
37216 " char *in_name;\n"
37222 #: ../src/guestfs-structs.pod:218
37225 " struct guestfs_inotify_event_list {\n"
37226 " uint32_t len; /* Number of elements in list. */\n"
37227 " struct guestfs_inotify_event *val; /* Elements. */\n"
37233 #: ../src/guestfs-structs.pod:223
37236 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
37237 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
37242 #: ../src/guestfs-structs.pod:226
37243 msgid "guestfs_partition"
37247 #: ../src/guestfs-structs.pod:228
37250 " struct guestfs_partition {\n"
37251 " int32_t part_num;\n"
37252 " uint64_t part_start;\n"
37253 " uint64_t part_end;\n"
37254 " uint64_t part_size;\n"
37260 #: ../src/guestfs-structs.pod:235
37263 " struct guestfs_partition_list {\n"
37264 " uint32_t len; /* Number of elements in list. */\n"
37265 " struct guestfs_partition *val; /* Elements. */\n"
37271 #: ../src/guestfs-structs.pod:240
37274 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
37275 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
37280 #: ../src/guestfs-structs.pod:243
37281 msgid "guestfs_application"
37285 #: ../src/guestfs-structs.pod:245
37288 " struct guestfs_application {\n"
37289 " char *app_name;\n"
37290 " char *app_display_name;\n"
37291 " int32_t app_epoch;\n"
37292 " char *app_version;\n"
37293 " char *app_release;\n"
37294 " char *app_install_path;\n"
37295 " char *app_trans_path;\n"
37296 " char *app_publisher;\n"
37297 " char *app_url;\n"
37298 " char *app_source_package;\n"
37299 " char *app_summary;\n"
37300 " char *app_description;\n"
37306 #: ../src/guestfs-structs.pod:260
37309 " struct guestfs_application_list {\n"
37310 " uint32_t len; /* Number of elements in list. */\n"
37311 " struct guestfs_application *val; /* Elements. */\n"
37317 #: ../src/guestfs-structs.pod:265
37320 " void guestfs_free_application (struct guestfs_free_application *);\n"
37321 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
37326 #: ../src/guestfs.pod:5
37327 msgid "guestfs - Library for accessing and modifying virtual machine images"
37329 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
37333 #: ../src/guestfs.pod:11
37336 " guestfs_h *g = guestfs_create ();\n"
37337 " guestfs_add_drive (g, \"guest.img\");\n"
37338 " guestfs_launch (g);\n"
37339 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37340 " guestfs_touch (g, \"/hello\");\n"
37341 " guestfs_umount (g, \"/\");\n"
37342 " guestfs_close (g);\n"
37345 " guestfs_h *g = guestfs_create ();\n"
37346 " guestfs_add_drive (g, \"guest.img\");\n"
37347 " guestfs_launch (g);\n"
37348 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37349 " guestfs_touch (g, \"/hello\");\n"
37350 " guestfs_umount (g, \"/\");\n"
37351 " guestfs_close (g);\n"
37355 #: ../src/guestfs.pod:25
37357 "Libguestfs is a library for accessing and modifying guest disk images. "
37358 "Amongst the things this is good for: making batch configuration changes to "
37359 "guests, getting disk used/free statistics (see also: virt-df), migrating "
37360 "between virtualization systems (see also: virt-p2v), performing partial "
37361 "backups, performing partial guest clones, cloning guests and changing "
37362 "registry/UUID/hostname info, and much else besides."
37366 #: ../src/guestfs.pod:33
37368 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
37369 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
37370 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
37375 #: ../src/guestfs.pod:38
37377 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
37378 "what filesystem is in each LV, etc.). It can also run commands in the "
37379 "context of the guest. Also you can access filesystems over FUSE."
37383 #: ../src/guestfs.pod:43
37385 "Libguestfs is a library that can be linked with C and C++ management "
37386 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
37387 "PHP, Erlang, Haskell or C#). You can also use it from shell scripts or the "
37392 #: ../src/guestfs.pod:48
37394 "You don't need to be root to use libguestfs, although obviously you do need "
37395 "enough permissions to access the disk images."
37399 #: ../src/guestfs.pod:51
37401 "Libguestfs is a large API because it can do many things. For a gentle "
37402 "introduction, please read the L</API OVERVIEW> section next."
37406 #: ../src/guestfs.pod:54
37408 "There are also some example programs in the L<guestfs-examples(3)> manual "
37413 #: ../src/guestfs.pod:57
37414 msgid "API OVERVIEW"
37418 #: ../src/guestfs.pod:59
37420 "This section provides a gentler overview of the libguestfs API. We also try "
37421 "to group API calls together, where that may not be obvious from reading "
37422 "about the individual calls in the main section of this manual."
37426 #: ../src/guestfs.pod:64
37431 #: ../src/guestfs.pod:66
37433 "Before you can use libguestfs calls, you have to create a handle. Then you "
37434 "must add at least one disk image to the handle, followed by launching the "
37435 "handle, then performing whatever operations you want, and finally closing "
37436 "the handle. By convention we use the single letter C<g> for the name of the "
37437 "handle variable, although of course you can use any name you want."
37441 #: ../src/guestfs.pod:73
37442 msgid "The general structure of all libguestfs-using programs looks like this:"
37446 #: ../src/guestfs.pod:76
37449 " guestfs_h *g = guestfs_create ();\n"
37452 " guestfs_h *g = guestfs_create ();\n"
37456 #: ../src/guestfs.pod:78
37459 " /* Call guestfs_add_drive additional times if there are\n"
37460 " * multiple disk images.\n"
37462 " guestfs_add_drive (g, \"guest.img\");\n"
37467 #: ../src/guestfs.pod:83
37470 " /* Most manipulation calls won't work until you've launched\n"
37471 " * the handle 'g'. You have to do this _after_ adding drives\n"
37472 " * and _before_ other commands.\n"
37474 " guestfs_launch (g);\n"
37479 #: ../src/guestfs.pod:89
37482 " /* Now you can examine what partitions, LVs etc are available.\n"
37484 " char **partitions = guestfs_list_partitions (g);\n"
37485 " char **logvols = guestfs_lvs (g);\n"
37488 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
37490 " char **partitions = guestfs_list_partitions (g);\n"
37491 " char **logvols = guestfs_lvs (g);\n"
37495 #: ../src/guestfs.pod:94
37498 " /* To access a filesystem in the image, you must mount it.\n"
37500 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37503 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
37505 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37509 #: ../src/guestfs.pod:98
37512 " /* Now you can perform filesystem actions on the guest\n"
37515 " guestfs_touch (g, \"/hello\");\n"
37518 " /* Тепер ви можете виконувати дії з файловою системою на\n"
37519 " * образі диска операційної системи.\n"
37521 " guestfs_touch (g, \"/hello\");\n"
37525 #: ../src/guestfs.pod:103
37528 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
37529 " * it is done automatically when you close the handle. See\n"
37530 " * discussion of autosync in this page.\n"
37532 " guestfs_sync (g);\n"
37537 #: ../src/guestfs.pod:109
37540 " /* Close the handle 'g'. */\n"
37541 " guestfs_close (g);\n"
37544 " /* Закрити дескриптор 'g'. */\n"
37545 " guestfs_close (g);\n"
37549 #: ../src/guestfs.pod:112
37551 "The code above doesn't include any error checking. In real code you should "
37552 "check return values carefully for errors. In general all functions that "
37553 "return integers return C<-1> on error, and all functions that return "
37554 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
37555 "how to handle errors, and consult the documentation for each function call "
37556 "below to see precisely how they return error indications. See L<guestfs-"
37557 "examples(3)> for fully worked examples."
37561 #: ../src/guestfs.pod:121
37562 msgid "DISK IMAGES"
37563 msgstr "ОБРАЗИ ДИСКІВ"
37566 #: ../src/guestfs.pod:123
37568 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
37569 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
37570 "actual block device, or simply an empty file of zeroes that you have created "
37571 "through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
37576 #: ../src/guestfs.pod:129
37578 "The call you should use in modern code for adding drives is L</"
37579 "guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
37580 "specifying that the format is raw, do:"
37584 #: ../src/guestfs.pod:133
37587 " guestfs_add_drive_opts (g, filename,\n"
37588 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37592 " guestfs_add_drive_opts (g, filename,\n"
37593 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37598 #: ../src/guestfs.pod:137
37599 msgid "You can add a disk read-only using:"
37600 msgstr "Ви можете додати диск у режимі лише читання:"
37603 #: ../src/guestfs.pod:139
37606 " guestfs_add_drive_opts (g, filename,\n"
37607 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37608 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37612 " guestfs_add_drive_opts (g, filename,\n"
37613 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37614 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37619 #: ../src/guestfs.pod:144
37621 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
37622 "libguestfs won't modify the file."
37626 #: ../src/guestfs.pod:147
37628 "Be extremely cautious if the disk image is in use, eg. if it is being used "
37629 "by a virtual machine. Adding it read-write will almost certainly cause disk "
37630 "corruption, but adding it read-only is safe."
37634 #: ../src/guestfs.pod:151
37636 "You must add at least one disk image, and you may add multiple disk images. "
37637 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
37638 "first one you added), C</dev/sdb> (for the second one you added), etc."
37642 #: ../src/guestfs.pod:156
37644 "Once L</guestfs_launch> has been called you cannot add any more images. You "
37645 "can call L</guestfs_list_devices> to get a list of the device names, in the "
37646 "order that you added them. See also L</BLOCK DEVICE NAMING> below."
37650 #: ../src/guestfs.pod:161
37652 msgstr "МОНТУВАННЯ"
37655 #: ../src/guestfs.pod:163
37657 "Before you can read or write files, create directories and so on in a disk "
37658 "image that contains filesystems, you have to mount those filesystems using "
37659 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that "
37660 "a disk image contains (for example) one partition with a filesystem on that "
37661 "partition, then you can mount it directly:"
37665 #: ../src/guestfs.pod:170
37668 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
37671 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
37675 #: ../src/guestfs.pod:172
37677 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
37678 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
37679 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
37680 "that these are libguestfs virtual devices, and are nothing to do with host "
37685 #: ../src/guestfs.pod:178
37687 "If you are given a disk image and you don't know what it contains then you "
37688 "have to find out. Libguestfs can do that too: use L</"
37689 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
37690 "LVs, and either try mounting each to see what is mountable, or else examine "
37691 "them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
37692 "filesystems, use L</guestfs_list_filesystems>."
37696 #: ../src/guestfs.pod:186
37698 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
37699 "L</INSPECTION> below). But you might find it easier to look at higher level "
37700 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
37704 #: ../src/guestfs.pod:191
37706 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
37707 "several other variations of the C<guestfs_mount_*> call."
37711 #: ../src/guestfs.pod:194
37712 msgid "FILESYSTEM ACCESS AND MODIFICATION"
37713 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
37716 #: ../src/guestfs.pod:196
37718 "The majority of the libguestfs API consists of fairly low-level calls for "
37719 "accessing and modifying the files, directories, symlinks etc on mounted "
37720 "filesystems. There are over a hundred such calls which you can find listed "
37721 "in detail below in this man page, and we don't even pretend to cover them "
37722 "all in this overview."
37726 #: ../src/guestfs.pod:202
37728 "Specify filenames as full paths, starting with C<\"/\"> and including the "
37731 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
37732 "точкою монтування."
37735 #: ../src/guestfs.pod:205
37737 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
37738 "the file called C<\"etc/passwd\"> then you could do:"
37740 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
37741 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
37745 #: ../src/guestfs.pod:208
37748 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
37751 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
37755 #: ../src/guestfs.pod:210
37757 "This would return C<data> as a newly allocated buffer containing the full "
37758 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
37759 "or C<NULL> if there was an error."
37763 #: ../src/guestfs.pod:214
37765 "As another example, to create a top-level directory on that filesystem "
37766 "called C<\"var\"> you would do:"
37770 #: ../src/guestfs.pod:217
37773 " guestfs_mkdir (g, \"/var\");\n"
37776 " guestfs_mkdir (g, \"/var\");\n"
37780 #: ../src/guestfs.pod:219
37781 msgid "To create a symlink you could do:"
37782 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
37785 #: ../src/guestfs.pod:221
37788 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
37789 " \"/etc/rc3.d/S30portmap\");\n"
37792 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
37793 " \"/etc/rc3.d/S30portmap\");\n"
37797 #: ../src/guestfs.pod:224
37799 "Libguestfs will reject attempts to use relative paths and there is no "
37800 "concept of a current working directory."
37804 #: ../src/guestfs.pod:227
37806 "Libguestfs can return errors in many situations: for example if the "
37807 "filesystem isn't writable, or if a file or directory that you requested "
37808 "doesn't exist. If you are using the C API (documented here) you have to "
37809 "check for those error conditions after each call. (Other language bindings "
37810 "turn these errors into exceptions)."
37814 #: ../src/guestfs.pod:233
37816 "File writes are affected by the per-handle umask, set by calling L</"
37817 "guestfs_umask> and defaulting to 022. See L</UMASK>."
37821 #: ../src/guestfs.pod:236
37822 msgid "PARTITIONING"
37823 msgstr "ПОДІЛ НА РОЗДІЛИ"
37826 #: ../src/guestfs.pod:238
37828 "Libguestfs contains API calls to read, create and modify partition tables on "
37833 #: ../src/guestfs.pod:241
37835 "In the common case where you want to create a single partition covering the "
37836 "whole disk, you should use the L</guestfs_part_disk> call:"
37840 #: ../src/guestfs.pod:245
37843 " const char *parttype = \"mbr\";\n"
37844 " if (disk_is_larger_than_2TB)\n"
37845 " parttype = \"gpt\";\n"
37846 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
37849 " const char *parttype = \"mbr\";\n"
37850 " if (disk_is_larger_than_2TB)\n"
37851 " parttype = \"gpt\";\n"
37852 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
37856 #: ../src/guestfs.pod:250
37858 "Obviously this effectively wipes anything that was on that disk image before."
37862 #: ../src/guestfs.pod:253
37867 #: ../src/guestfs.pod:255
37869 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
37870 "guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense unless "
37871 "you familiarize yourself with the concepts of physical volumes, volume "
37872 "groups and logical volumes."
37876 #: ../src/guestfs.pod:260
37878 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
37879 "tldp.org/HOWTO/LVM-HOWTO/>."
37883 #: ../src/guestfs.pod:263
37884 msgid "DOWNLOADING"
37885 msgstr "ОТРИМАННЯ ДАНИХ"
37888 #: ../src/guestfs.pod:265
37890 "Use L</guestfs_cat> to download small, text only files. This call is "
37891 "limited to files which are less than 2 MB and which cannot contain any ASCII "
37892 "NUL (C<\\0>) characters. However the API is very simple to use."
37896 #: ../src/guestfs.pod:269
37898 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
37899 "bit data, since it returns a (pointer, size) pair. However it is still "
37900 "limited to \"small\" files, less than 2 MB."
37904 #: ../src/guestfs.pod:273
37906 "L</guestfs_download> can be used to download any file, with no limits on "
37907 "content or size (even files larger than 4 GB)."
37911 #: ../src/guestfs.pod:276
37913 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
37917 #: ../src/guestfs.pod:279
37919 msgstr "ВИВАНТАЖЕННЯ"
37922 #: ../src/guestfs.pod:281
37924 "It's often the case that you want to write a file or files to the disk image."
37928 #: ../src/guestfs.pod:284
37930 "To write a small file with fixed content, use L</guestfs_write>. To create "
37931 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
37932 "guestfs_fallocate64> (with all disk blocks allocated). There are a variety "
37933 "of other functions for creating test files, for example L</guestfs_fill> and "
37934 "L</guestfs_fill_pattern>."
37938 #: ../src/guestfs.pod:290
37940 "To upload a single file, use L</guestfs_upload>. This call has no limits on "
37941 "file content or size (even files larger than 4 GB)."
37945 #: ../src/guestfs.pod:293
37947 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
37951 #: ../src/guestfs.pod:295
37953 "However the fastest way to upload I<large numbers of arbitrary files> is to "
37954 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
37955 ">), then attach this using L</guestfs_add_drive_ro>. If you add the drive "
37956 "in a predictable way (eg. adding it last after all other drives) then you "
37957 "can get the device name from L</guestfs_list_devices> and mount it directly "
37958 "using L</guestfs_mount_ro>. Note that squashfs images are sometimes non-"
37959 "portable between kernel versions, and they don't support labels or UUIDs. "
37960 "If you want to pre-build an image or you need to mount it using a label or "
37961 "UUID, use an ISO image instead."
37965 #: ../src/guestfs.pod:306
37967 msgstr "КОПІЮВАННЯ"
37970 #: ../src/guestfs.pod:308
37972 "There are various different commands for copying between files and devices "
37973 "and in and out of the guest filesystem. These are summarised in the table "
37978 #: ../src/guestfs.pod:314
37979 msgid "B<file> to B<file>"
37980 msgstr "B<файл> у B<файл>"
37983 #: ../src/guestfs.pod:316
37985 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
37986 "directories recursively."
37990 #: ../src/guestfs.pod:319
37992 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
37996 #: ../src/guestfs.pod:322
37997 msgid "B<file> to B<device>"
38001 #: ../src/guestfs.pod:324
38002 msgid "B<device> to B<file>"
38006 #: ../src/guestfs.pod:326
38007 msgid "B<device> to B<device>"
38011 #: ../src/guestfs.pod:328
38013 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
38014 "guestfs_copy_device_to_device>."
38018 #: ../src/guestfs.pod:331
38019 msgid "Example: duplicate the contents of an LV:"
38023 #: ../src/guestfs.pod:333
38026 " guestfs_copy_device_to_device (g,\n"
38027 " \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
38028 " /* -1 marks the end of the list of optional parameters */\n"
38034 #: ../src/guestfs.pod:338
38036 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
38037 "(C</dev/VG/Original>). To copy less than the whole source device, use the "
38038 "optional C<size> parameter:"
38042 #: ../src/guestfs.pod:342
38045 " guestfs_copy_device_to_device (g,\n"
38046 " \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
38047 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
38053 #: ../src/guestfs.pod:347
38054 msgid "B<file on the host> to B<file or device>"
38058 #: ../src/guestfs.pod:349
38059 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
38063 #: ../src/guestfs.pod:351
38064 msgid "B<file or device> to B<file on the host>"
38068 #: ../src/guestfs.pod:353
38069 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
38073 #: ../src/guestfs.pod:357
38074 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
38078 #: ../src/guestfs.pod:359
38080 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
38081 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
38082 "appears you can only upload and download to files. However many Un*x-like "
38083 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
38084 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
38085 "and arbitrary file descriptor N."
38089 #: ../src/guestfs.pod:367
38090 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
38094 #: ../src/guestfs.pod:370
38097 " guestfs_download (g, filename, \"/dev/stdout\");\n"
38100 " guestfs_download (g, filename, \"/dev/stdout\");\n"
38104 #: ../src/guestfs.pod:372
38105 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
38109 #: ../src/guestfs.pod:374
38112 " char devfd[64];\n"
38113 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
38114 " guestfs_tar_out (g, \"/\", devfd);\n"
38117 " char devfd[64];\n"
38118 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
38119 " guestfs_tar_out (g, \"/\", devfd);\n"
38123 #: ../src/guestfs.pod:378
38124 msgid "LISTING FILES"
38125 msgstr "СПИСКИ ФАЙЛІВ"
38128 #: ../src/guestfs.pod:380
38130 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
38131 "L<guestfish(1)>-equivalent command C<ll>)."
38135 #: ../src/guestfs.pod:383
38137 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
38138 "programs, as a flat list of strings."
38142 #: ../src/guestfs.pod:386
38144 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
38145 "directory, plus additional information about each one. It is more "
38146 "equivalent to using the L<readdir(3)> call on a local filesystem."
38150 #: ../src/guestfs.pod:390
38152 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
38156 #: ../src/guestfs.pod:393
38157 msgid "RUNNING COMMANDS"
38158 msgstr "ВИКОНАННЯ КОМАНД"
38161 #: ../src/guestfs.pod:395
38163 "Although libguestfs is primarily an API for manipulating files inside guest "
38164 "images, we also provide some limited facilities for running commands inside "
38169 #: ../src/guestfs.pod:399
38170 msgid "There are many limitations to this:"
38174 #: ../src/guestfs.pod:405
38176 "The kernel version that the command runs under will be different from what "
38181 #: ../src/guestfs.pod:410
38183 "If the command needs to communicate with daemons, then most likely they "
38184 "won't be running."
38188 #: ../src/guestfs.pod:415
38189 msgid "The command will be running in limited memory."
38193 #: ../src/guestfs.pod:419
38195 "The network may not be available unless you enable it (see L</"
38196 "guestfs_set_network>)."
38200 #: ../src/guestfs.pod:424
38201 msgid "Only supports Linux guests (not Windows, BSD, etc)."
38205 #: ../src/guestfs.pod:428
38207 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
38211 #: ../src/guestfs.pod:433
38213 "For SELinux guests, you may need to enable SELinux and load policy first. "
38214 "See L</SELINUX> in this manpage."
38218 #: ../src/guestfs.pod:438
38220 "I<Security:> It is not safe to run commands from untrusted, possibly "
38221 "malicious guests. These commands may attempt to exploit your program by "
38222 "sending unexpected output. They could also try to exploit the Linux kernel "
38223 "or qemu provided by the libguestfs appliance. They could use the network "
38224 "provided by the libguestfs appliance to bypass ordinary network partitions "
38225 "and firewalls. They could use the elevated privileges or different SELinux "
38226 "context of your program to their advantage."
38230 #: ../src/guestfs.pod:447
38232 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
38233 "(a script which runs when the guest next boots normally), and to have this "
38234 "script run the commands you want in the normal context of the running guest, "
38235 "network security and so on. For information about other security issues, "
38236 "see L</SECURITY>."
38240 #: ../src/guestfs.pod:455
38242 "The two main API calls to run commands are L</guestfs_command> and L</"
38243 "guestfs_sh> (there are also variations)."
38247 #: ../src/guestfs.pod:458
38249 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
38250 "shell globs, redirections, etc will work."
38254 #: ../src/guestfs.pod:461
38255 msgid "CONFIGURATION FILES"
38256 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
38259 #: ../src/guestfs.pod:463
38261 "To read and write configuration files in Linux guest filesystems, we "
38262 "strongly recommend using Augeas. For example, Augeas understands how to "
38263 "read and write, say, a Linux shadow password file or X.org configuration "
38264 "file, and so avoids you having to write that code."
38268 #: ../src/guestfs.pod:468
38270 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
38271 "document Augeas itself here because there is excellent documentation on the "
38272 "L<http://augeas.net/> website."
38276 #: ../src/guestfs.pod:472
38278 "If you don't want to use Augeas (you fool!) then try calling L</"
38279 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
38284 #: ../src/guestfs.pod:476
38289 #: ../src/guestfs.pod:478
38291 "We support SELinux guests. To ensure that labeling happens correctly in "
38292 "SELinux guests, you need to enable SELinux and load the guest's policy:"
38296 #: ../src/guestfs.pod:486
38297 msgid "Before launching, do:"
38301 #: ../src/guestfs.pod:488
38304 " guestfs_set_selinux (g, 1);\n"
38307 " guestfs_set_selinux (g, 1);\n"
38311 #: ../src/guestfs.pod:492
38313 "After mounting the guest's filesystem(s), load the policy. This is best "
38314 "done by running the L<load_policy(8)> command in the guest itself:"
38318 #: ../src/guestfs.pod:496
38321 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
38324 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
38328 #: ../src/guestfs.pod:498
38330 "(Older versions of C<load_policy> require you to specify the name of the "
38335 #: ../src/guestfs.pod:503
38337 "Optionally, set the security context for the API. The correct security "
38338 "context to use can only be known by inspecting the guest. As an example:"
38342 #: ../src/guestfs.pod:507
38345 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
38348 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
38352 #: ../src/guestfs.pod:511
38353 msgid "This will work for running commands and editing existing files."
38357 #: ../src/guestfs.pod:513
38359 "When new files are created, you may need to label them explicitly, for "
38360 "example by running the external command C<restorecon pathname>."
38364 #: ../src/guestfs.pod:517
38369 #: ../src/guestfs.pod:519
38371 "Certain calls are affected by the current file mode creation mask (the "
38372 "\"umask\"). In particular ones which create files or directories, such as "
38373 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
38374 "either the default mode that the file is created with or modifies the mode "
38379 #: ../src/guestfs.pod:525
38381 "The default umask is C<022>, so files are created with modes such as C<0644> "
38382 "and directories with C<0755>."
38386 #: ../src/guestfs.pod:528
38388 "There are two ways to avoid being affected by umask. Either set umask to 0 "
38389 "(call C<guestfs_umask (g, 0)> early after launching). Or call L</"
38390 "guestfs_chmod> after creating each file or directory."
38394 #: ../src/guestfs.pod:532
38395 msgid "For more information about umask, see L<umask(2)>."
38399 #: ../src/guestfs.pod:536
38401 "Libguestfs allows you to access Linux guests which have been encrypted using "
38402 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
38403 "standard. This includes nearly all whole disk encryption systems used by "
38404 "modern Linux guests."
38408 #: ../src/guestfs.pod:542
38410 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
38411 "returns the string C<crypto_LUKS>)."
38415 #: ../src/guestfs.pod:545
38417 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
38418 "will require the passphrase!"
38422 #: ../src/guestfs.pod:548
38424 "Opening a LUKS device creates a new device mapper device called C</dev/"
38425 "mapper/mapname> (where C<mapname> is the string you supply to L</"
38426 "guestfs_luks_open>). Reads and writes to this mapper device are decrypted "
38427 "from and encrypted to the underlying block device respectively."
38431 #: ../src/guestfs.pod:554
38433 "LVM volume groups on the device can be made visible by calling L</"
38434 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical volume"
38435 "(s) can now be mounted in the usual way."
38439 #: ../src/guestfs.pod:558
38441 "Use the reverse process to close a LUKS device. Unmount any logical volumes "
38442 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
38443 "[\"/dev/VG\"])>. Then close the mapper device by calling L</"
38444 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
38445 "underlying encrypted block device)."
38449 #: ../src/guestfs.pod:565
38454 #: ../src/guestfs.pod:567
38456 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
38457 "contains operating systems, an install CD or a live CD. (These APIs used to "
38458 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
38459 "version 1.5.3 the most frequently used part of this library has been "
38460 "rewritten in C and moved into the core code)."
38464 #: ../src/guestfs.pod:574
38466 "Add all disks belonging to the unknown virtual machine and call L</"
38467 "guestfs_launch> in the usual way."
38471 #: ../src/guestfs.pod:577
38473 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
38474 "and certain heuristics, and returns a list of operating systems that were "
38475 "found. An empty list means none were found. A single element is the root "
38476 "filesystem of the operating system. For dual- or multi-boot guests, "
38477 "multiple roots can be returned, each one corresponding to a separate "
38478 "operating system. (Multi-boot virtual machines are extremely rare in the "
38479 "world of virtualization, but since this scenario can happen, we have built "
38480 "libguestfs to deal with it.)"
38484 #: ../src/guestfs.pod:586
38486 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
38487 "to get additional details about that operating system. For example, call L</"
38488 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
38489 "Windows and Linux-based operating systems respectively."
38493 #: ../src/guestfs.pod:592
38495 "Un*x-like and Linux-based operating systems usually consist of several "
38496 "filesystems which are mounted at boot time (for example, a separate boot "
38497 "partition mounted on C</boot>). The inspection rules are able to detect how "
38498 "filesystems correspond to mount points. Call "
38499 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
38500 "hash table like this example:"
38504 #: ../src/guestfs.pod:599
38507 " /boot => /dev/sda1\n"
38508 " / => /dev/vg_guest/lv_root\n"
38509 " /usr => /dev/vg_guest/lv_usr\n"
38512 " /boot => /dev/sda1\n"
38513 " / => /dev/vg_guest/lv_root\n"
38514 " /usr => /dev/vg_guest/lv_usr\n"
38518 #: ../src/guestfs.pod:603
38520 "The caller can then make calls to L</guestfs_mount_options> to mount the "
38521 "filesystems as suggested."
38525 #: ../src/guestfs.pod:606
38527 "Be careful to mount filesystems in the right order (eg. C</> before C</"
38528 "usr>). Sorting the keys of the hash by length, shortest first, should work."
38532 #: ../src/guestfs.pod:610
38534 "Inspection currently only works for some common operating systems. "
38535 "Contributors are welcome to send patches for other operating systems that we "
38536 "currently cannot detect."
38540 #: ../src/guestfs.pod:614
38542 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
38543 "for more details. The L</guestfs_inspect_os> function just ignores any "
38544 "encrypted devices."
38548 #: ../src/guestfs.pod:618
38550 "A note on the implementation: The call L</guestfs_inspect_os> performs "
38551 "inspection and caches the results in the guest handle. Subsequent calls to "
38552 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
38553 "read the disks. If you change the content of the guest disks, you can redo "
38554 "inspection by calling L</guestfs_inspect_os> again. (L</"
38555 "guestfs_inspect_list_applications> works a little differently from the other "
38556 "calls and does read the disks. See documentation for that function for "
38561 #: ../src/guestfs.pod:627
38562 msgid "INSPECTING INSTALL DISKS"
38566 #: ../src/guestfs.pod:629
38568 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
38573 #: ../src/guestfs.pod:632
38575 "Call L</guestfs_inspect_get_format> to return the format of the operating "
38576 "system, which currently can be C<installed> (a regular operating system) or "
38577 "C<installer> (some sort of install disk)."
38581 #: ../src/guestfs.pod:636
38583 "Further information is available about the operating system that can be "
38584 "installed using the regular inspection APIs like L</"
38585 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
38589 #: ../src/guestfs.pod:641
38591 "Some additional information specific to installer disks is also available "
38592 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
38593 "guestfs_inspect_is_multipart> calls."
38597 #: ../src/guestfs.pod:646
38598 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
38602 #: ../src/guestfs.pod:648
38604 "Libguestfs can mount NTFS partitions. It does this using the L<http://www."
38605 "ntfs-3g.org/> driver."
38609 #: ../src/guestfs.pod:651
38610 msgid "DRIVE LETTERS AND PATHS"
38611 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
38614 #: ../src/guestfs.pod:653
38616 "DOS and Windows still use drive letters, and the filesystems are always "
38617 "treated as case insensitive by Windows itself, and therefore you might find "
38618 "a Windows configuration file referring to a path like C<c:\\windows"
38619 "\\system32>. When the filesystem is mounted in libguestfs, that directory "
38620 "might be referred to as C</WINDOWS/System32>."
38624 #: ../src/guestfs.pod:659
38626 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
38627 "L</guestfs_inspect_get_drive_mappings>)"
38631 #: ../src/guestfs.pod:662
38633 "Dealing with separator characters (backslash vs forward slash) is outside "
38634 "the scope of libguestfs, but usually a simple character replacement will "
38639 #: ../src/guestfs.pod:666
38641 "To resolve the case insensitivity of paths, call L</"
38642 "guestfs_case_sensitive_path>."
38646 #: ../src/guestfs.pod:669
38647 msgid "ACCESSING THE WINDOWS REGISTRY"
38648 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
38651 #: ../src/guestfs.pod:671
38653 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
38654 "files, through the library C<hivex> which is part of the libguestfs project "
38655 "although ships as a separate tarball. You have to locate and download the "
38656 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
38657 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
38658 "reg(1)> for more help on this issue."
38662 #: ../src/guestfs.pod:679
38663 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
38664 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
38667 #: ../src/guestfs.pod:681
38669 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
38670 "provide something which looks like a Linux symlink. The way it tries to do "
38671 "the rewriting is described here:"
38675 #: ../src/guestfs.pod:685
38677 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
38680 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
38684 #: ../src/guestfs.pod:687
38686 "The essential problem is that ntfs-3g simply does not have enough "
38687 "information to do a correct job. NTFS links can contain drive letters and "
38688 "references to external device GUIDs that ntfs-3g has no way of resolving. "
38689 "It is almost certainly the case that libguestfs callers should ignore what "
38690 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
38694 #: ../src/guestfs.pod:694
38696 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
38697 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
38698 "attribute, and read the raw reparse data from that (you can find the format "
38699 "documented in various places around the web)."
38703 #: ../src/guestfs.pod:699
38704 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
38708 #: ../src/guestfs.pod:701
38710 "There are other useful extended attributes that can be read from ntfs-3g "
38711 "filesystems (using L</guestfs_getxattr>). See:"
38715 #: ../src/guestfs.pod:704
38717 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
38719 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
38722 #: ../src/guestfs.pod:706
38723 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
38724 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
38727 #: ../src/guestfs.pod:708
38729 "Although we don't want to discourage you from using the C API, we will "
38730 "mention here that the same API is also available in other languages."
38734 #: ../src/guestfs.pod:711
38736 "The API is broadly identical in all supported languages. This means that "
38737 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
38738 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
38739 "OCaml. In other words, a straightforward, predictable isomorphism between "
38744 #: ../src/guestfs.pod:717
38746 "Error messages are automatically transformed into exceptions if the language "
38751 #: ../src/guestfs.pod:720
38753 "We don't try to \"object orientify\" parts of the API in OO languages, "
38754 "although contributors are welcome to write higher level APIs above what we "
38755 "provide in their favourite languages if they wish."
38759 #: ../src/guestfs.pod:726
38764 #: ../src/guestfs.pod:728
38766 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
38767 "identical to the C API. C++ classes and exceptions are not used."
38771 #: ../src/guestfs.pod:732
38776 #: ../src/guestfs.pod:734
38778 "The C# bindings are highly experimental. Please read the warnings at the "
38779 "top of C<csharp/Libguestfs.cs>."
38783 #: ../src/guestfs.pod:737
38788 #: ../src/guestfs.pod:739
38789 msgid "See L<guestfs-erlang(3)>."
38793 #: ../src/guestfs.pod:741
38795 msgstr "B<Haskell>"
38798 #: ../src/guestfs.pod:743
38800 "This is the only language binding that is working but incomplete. Only "
38801 "calls which return simple integers have been bound in Haskell, and we are "
38802 "looking for help to complete this binding."
38806 #: ../src/guestfs.pod:747
38811 #: ../src/guestfs.pod:749
38813 "Full documentation is contained in the Javadoc which is distributed with "
38814 "libguestfs. For examples, see L<guestfs-java(3)>."
38818 #: ../src/guestfs.pod:752
38823 #: ../src/guestfs.pod:754
38824 msgid "See L<guestfs-ocaml(3)>."
38825 msgstr "Див. L<guestfs-ocaml(3)>."
38828 #: ../src/guestfs.pod:756
38833 #: ../src/guestfs.pod:758
38834 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
38835 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
38838 #: ../src/guestfs.pod:760
38843 #: ../src/guestfs.pod:762
38845 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
38846 "the php-libguestfs package for your distribution."
38850 #: ../src/guestfs.pod:765
38851 msgid "The PHP binding only works correctly on 64 bit machines."
38855 #: ../src/guestfs.pod:767
38860 #: ../src/guestfs.pod:769
38861 msgid "See L<guestfs-python(3)>."
38862 msgstr "Див. L<guestfs-python(3)>."
38865 #: ../src/guestfs.pod:771
38870 #: ../src/guestfs.pod:773
38871 msgid "See L<guestfs-ruby(3)>."
38872 msgstr "Див. L<guestfs-ruby(3)>."
38875 #: ../src/guestfs.pod:775
38876 msgid "B<shell scripts>"
38877 msgstr "B<скрипти оболонки>"
38880 #: ../src/guestfs.pod:777
38881 msgid "See L<guestfish(1)>."
38882 msgstr "Див. L<guestfish(1)>."
38885 #: ../src/guestfs.pod:781
38886 msgid "LIBGUESTFS GOTCHAS"
38890 #: ../src/guestfs.pod:783
38892 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
38893 "system [...] that works in the way it is documented but is counterintuitive "
38894 "and almost invites mistakes.\""
38898 #: ../src/guestfs.pod:787
38900 "Since we developed libguestfs and the associated tools, there are several "
38901 "things we would have designed differently, but are now stuck with for "
38902 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
38903 "release, you can expect these to change. Beware of them."
38907 #: ../src/guestfs.pod:795
38908 msgid "Autosync / forgetting to sync."
38912 #: ../src/guestfs.pod:797
38914 "I<Update:> Autosync is enabled by default for all API users starting from "
38915 "libguestfs 1.5.24. This section only applies to older versions."
38919 #: ../src/guestfs.pod:800
38921 "When modifying a filesystem from C or another language, you B<must> unmount "
38922 "all filesystems and call L</guestfs_sync> explicitly before you close the "
38923 "libguestfs handle. You can also call:"
38927 #: ../src/guestfs.pod:804
38930 " guestfs_set_autosync (g, 1);\n"
38933 " guestfs_set_autosync (g, 1);\n"
38937 #: ../src/guestfs.pod:806
38939 "to have the unmount/sync done automatically for you when the handle 'g' is "
38940 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
38944 #: ../src/guestfs.pod:810
38946 "If you forget to do this, then it is entirely possible that your changes "
38947 "won't be written out, or will be partially written, or (very rarely) that "
38948 "you'll get disk corruption."
38952 #: ../src/guestfs.pod:814
38954 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
38955 "guestfish scripts that forget to sync will work just fine, which can make "
38956 "this very puzzling if you are trying to debug a problem."
38960 #: ../src/guestfs.pod:818
38961 msgid "Mount option C<-o sync> should not be the default."
38965 #: ../src/guestfs.pod:820
38967 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
38968 "libguestfs 1.13.16. This section only applies to older versions."
38972 #: ../src/guestfs.pod:823
38974 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
38975 "However C<-o sync> does not add any reliability benefit, but does have a "
38976 "very large performance impact."
38980 #: ../src/guestfs.pod:827
38982 "The work around is to use L</guestfs_mount_options> and set the mount "
38983 "options that you actually want to use."
38987 #: ../src/guestfs.pod:830
38988 msgid "Read-only should be the default."
38992 #: ../src/guestfs.pod:832
38994 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
38995 "specify I<--rw> if you want to make changes to the image."
38999 #: ../src/guestfs.pod:835
39000 msgid "This would reduce the potential to corrupt live VM images."
39004 #: ../src/guestfs.pod:837
39006 "Note that many filesystems change the disk when you just mount and unmount, "
39007 "even if you didn't perform any writes. You need to use L</"
39008 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
39012 #: ../src/guestfs.pod:841
39013 msgid "guestfish command line is hard to use."
39017 #: ../src/guestfs.pod:843
39019 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
39020 "examination). It tries to run a guestfish command C<disk.img> which doesn't "
39021 "exist, so it fails. In earlier versions of guestfish the error message was "
39022 "also unintuitive, but we have corrected this since. Like the Bourne shell, "
39023 "we should have used C<guestfish -c command> to run commands."
39027 #: ../src/guestfs.pod:850
39028 msgid "guestfish megabyte modifiers don't work right on all commands"
39032 #: ../src/guestfs.pod:852
39034 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
39035 "other modifiers). What guestfish actually does is to multiply the number "
39036 "part by the modifier part and pass the result to the C API. However this "
39037 "doesn't work for a few APIs which aren't expecting bytes, but are already "
39038 "expecting some other unit (eg. megabytes)."
39042 #: ../src/guestfs.pod:859
39043 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
39047 #: ../src/guestfs.pod:861
39050 " lvcreate LV VG 100M\n"
39053 " lvcreate LV VG 100M\n"
39057 #: ../src/guestfs.pod:863
39059 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
39060 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
39061 "megabytes * megabytes) logical volume. The error message you get from this "
39062 "is also a little obscure."
39066 #: ../src/guestfs.pod:868
39068 "This could be fixed in the generator by specially marking parameters and "
39069 "return values which take bytes or other units."
39073 #: ../src/guestfs.pod:871
39074 msgid "Ambiguity between devices and paths"
39078 #: ../src/guestfs.pod:873
39080 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
39081 "sdb2>) and a similar pathname. A file might just happen to be called "
39082 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
39086 #: ../src/guestfs.pod:878
39088 "In the current API we usually resolve this ambiguity by having two separate "
39089 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
39090 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
39091 "detecting if the path supplied begins with C</dev/>."
39095 #: ../src/guestfs.pod:884
39097 "To avoid both the ambiguity and the need to duplicate some calls, we could "
39098 "make paths/devices into structured names. One way to do this would be to "
39099 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
39100 "aspect of grub. Another way would be to use a structured type, equivalent "
39101 "to this OCaml type:"
39105 #: ../src/guestfs.pod:890
39108 " type path = Path of string | Device of int | Partition of int * int\n"
39113 #: ../src/guestfs.pod:892
39114 msgid "which would allow you to pass arguments like:"
39118 #: ../src/guestfs.pod:894
39121 " Path \"/foo/bar\"\n"
39122 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
39123 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
39124 " Path \"/dev/sdb2\" (* not a device *)\n"
39129 #: ../src/guestfs.pod:899
39131 "As you can see there are still problems to resolve even with this "
39132 "representation. Also consider how it might work in guestfish."
39136 #: ../src/guestfs.pod:904
39137 msgid "KEYS AND PASSPHRASES"
39138 msgstr "КЛЮЧІ І ПАРОЛІ"
39141 #: ../src/guestfs.pod:906
39143 "Certain libguestfs calls take a parameter that contains sensitive key "
39144 "material, passed in as a C string."
39148 #: ../src/guestfs.pod:909
39150 "In the future we would hope to change the libguestfs implementation so that "
39151 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
39152 "swap. However this is I<not> done at the moment, because of the complexity "
39153 "of such an implementation."
39157 #: ../src/guestfs.pod:914
39159 "Therefore you should be aware that any key parameter you pass to libguestfs "
39160 "might end up being written out to the swap partition. If this is a concern, "
39161 "scrub the swap partition or don't use libguestfs on encrypted devices."
39165 #: ../src/guestfs.pod:919
39166 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
39170 #: ../src/guestfs.pod:921
39172 "All high-level libguestfs actions are synchronous. If you want to use "
39173 "libguestfs asynchronously then you must create a thread."
39177 #: ../src/guestfs.pod:924
39179 "Only use the handle from a single thread. Either use the handle exclusively "
39180 "from one thread, or provide your own mutex so that two threads cannot issue "
39181 "calls on the same handle at the same time."
39185 #: ../src/guestfs.pod:928
39187 "See the graphical program guestfs-browser for one possible architecture for "
39188 "multithreaded programs using libvirt and libguestfs."
39192 #: ../src/guestfs.pod:931
39197 #: ../src/guestfs.pod:933
39199 "Libguestfs needs a supermin appliance, which it finds by looking along an "
39204 #: ../src/guestfs.pod:936
39206 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
39207 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
39211 #: ../src/guestfs.pod:939
39213 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
39214 "to change the directories that libguestfs will search in. The value is a "
39215 "colon-separated list of paths. The current directory is I<not> searched "
39216 "unless the path contains an empty element or C<.>. For example "
39217 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
39218 "then C</usr/lib/guestfs>."
39222 #: ../src/guestfs.pod:946
39223 msgid "QEMU WRAPPERS"
39227 #: ../src/guestfs.pod:948
39229 "If you want to compile your own qemu, run qemu from a non-standard location, "
39230 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
39235 #: ../src/guestfs.pod:952
39237 "There is one important rule to remember: you I<must C<exec qemu>> as the "
39238 "last command in the shell script (so that qemu replaces the shell and "
39239 "becomes the direct child of the libguestfs-using program). If you don't do "
39240 "this, then the qemu process won't be cleaned up correctly."
39244 #: ../src/guestfs.pod:957
39246 "Here is an example of a wrapper, where I have built my own copy of qemu from "
39251 #: ../src/guestfs.pod:960
39255 " qemudir=/home/rjones/d/qemu\n"
39256 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
39260 " qemudir=/home/rjones/d/qemu\n"
39261 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
39265 #: ../src/guestfs.pod:964
39267 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
39268 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
39273 #: ../src/guestfs.pod:968
39276 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
39279 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
39283 #: ../src/guestfs.pod:970
39285 "Note that libguestfs also calls qemu with the -help and -version options in "
39286 "order to determine features."
39290 #: ../src/guestfs.pod:973
39292 "Wrappers can also be used to edit the options passed to qemu. In the "
39293 "following example, the C<-machine ...> option (C<-machine> and the following "
39294 "argument) are removed from the command line and replaced with C<-machine pc,"
39295 "accel=tcg>. The while loop iterates over the options until it finds the "
39296 "right one to remove, putting the remaining options into the C<args> array."
39300 #: ../src/guestfs.pod:982
39304 " while [ $# -gt 0 ]; do\n"
39305 " case \"$1\" in\n"
39309 " args[i]=\"$1\"\n"
39318 #: ../src/guestfs.pod:994
39321 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
39326 #: ../src/guestfs.pod:996
39327 msgid "ATTACHING TO RUNNING DAEMONS"
39328 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
39331 #: ../src/guestfs.pod:998
39333 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
39334 "babies. Use with caution."
39338 #: ../src/guestfs.pod:1001
39340 "I<Note (2):> This section explains how to attach to a running daemon from a "
39341 "low level perspective. For most users, simply using virt tools such as "
39342 "L<guestfish(1)> with the I<--live> option will \"just work\"."
39346 #: ../src/guestfs.pod:1005
39347 msgid "Using guestfs_set_attach_method"
39348 msgstr "За допомогою guestfs_set_attach_method"
39351 #: ../src/guestfs.pod:1007
39353 "By calling L</guestfs_set_attach_method> you can change how the library "
39354 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
39355 "ARCHITECTURE> for some background)."
39359 #: ../src/guestfs.pod:1011
39361 "The normal attach method is C<appliance>, where a small appliance is created "
39362 "containing the daemon, and then the library connects to this."
39366 #: ../src/guestfs.pod:1014
39368 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
39369 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
39370 "daemon over the Unix domain socket."
39374 #: ../src/guestfs.pod:1018
39376 "The normal use for this is to connect to a running virtual machine that "
39377 "contains a C<guestfsd> daemon, and send commands so you can read and write "
39378 "files inside the live virtual machine."
39382 #: ../src/guestfs.pod:1022
39383 msgid "Using guestfs_add_domain with live flag"
39384 msgstr "За допомогою guestfs_add_domain з прапорцем live"
39387 #: ../src/guestfs.pod:1024
39389 "L</guestfs_add_domain> provides some help for getting the correct attach "
39390 "method. If you pass the C<live> option to this function, then (if the "
39391 "virtual machine is running) it will examine the libvirt XML looking for a "
39392 "virtio-serial channel to connect to:"
39396 #: ../src/guestfs.pod:1030
39403 " <channel type='unix'>\n"
39404 " <source mode='bind' path='/path/to/socket'/>\n"
39405 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
39416 " <channel type='unix'>\n"
39417 " <source mode='bind' path='/path/to/socket'/>\n"
39418 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
39426 #: ../src/guestfs.pod:1042
39428 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
39429 "method to C<unix:/path/to/socket>."
39433 #: ../src/guestfs.pod:1045
39435 "Some of the libguestfs tools (including guestfish) support a I<--live> "
39436 "option which is passed through to L</guestfs_add_domain> thus allowing you "
39437 "to attach to and modify live virtual machines."
39441 #: ../src/guestfs.pod:1049
39443 "The virtual machine needs to have been set up beforehand so that it has the "
39444 "virtio-serial channel and so that guestfsd is running inside it."
39448 #: ../src/guestfs.pod:1053
39449 msgid "ABI GUARANTEE"
39450 msgstr "ГАРАНТІЯ ЩОДО ABI"
39453 #: ../src/guestfs.pod:1055
39455 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
39456 "actions as outlined in this section. Although we will deprecate some "
39457 "actions, for example if they get replaced by newer calls, we will keep the "
39458 "old actions forever. This allows you the developer to program in confidence "
39459 "against the libguestfs API."
39463 #: ../src/guestfs.pod:1061
39464 msgid "BLOCK DEVICE NAMING"
39465 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
39468 #: ../src/guestfs.pod:1063
39470 "In the kernel there is now quite a profusion of schemata for naming block "
39471 "devices (in this context, by I<block device> I mean a physical or virtual "
39472 "hard drive). The original Linux IDE driver used names starting with C</dev/"
39473 "hd*>. SCSI devices have historically used a different naming scheme, C</dev/"
39474 "sd*>. When the Linux kernel I<libata> driver became a popular replacement "
39475 "for the old IDE driver (particularly for SATA devices) those devices also "
39476 "used the C</dev/sd*> scheme. Additionally we now have virtual machines with "
39477 "paravirtualized drivers. This has created several different naming systems, "
39478 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
39482 #: ../src/guestfs.pod:1075
39484 "As discussed above, libguestfs uses a qemu appliance running an embedded "
39485 "Linux kernel to access block devices. We can run a variety of appliances "
39486 "based on a variety of Linux kernels."
39490 #: ../src/guestfs.pod:1079
39492 "This causes a problem for libguestfs because many API calls use device or "
39493 "partition names. Working scripts and the recipe (example) scripts that we "
39494 "make available over the internet could fail if the naming scheme changes."
39498 #: ../src/guestfs.pod:1084
39500 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
39501 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
39502 "required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
39503 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
39507 #: ../src/guestfs.pod:1090
39509 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
39510 "L</guestfs_list_partitions> and similar calls return the true names of the "
39511 "devices and partitions as known to the appliance."
39515 #: ../src/guestfs.pod:1095
39516 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
39520 #: ../src/guestfs.pod:1097
39522 "Usually this translation is transparent. However in some (very rare) cases "
39523 "you may need to know the exact algorithm. Such cases include where you use "
39524 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
39525 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
39529 #: ../src/guestfs.pod:1103
39531 "The algorithm is applied only to I<parameters> which are known to be either "
39532 "device or partition names. Return values from functions such as L</"
39533 "guestfs_list_devices> are never changed."
39537 #: ../src/guestfs.pod:1111
39538 msgid "Is the string a parameter which is a device or partition name?"
39542 #: ../src/guestfs.pod:1115
39543 msgid "Does the string begin with C</dev/sd>?"
39544 msgstr "Чи починається рядок з C</dev/sd>?"
39547 #: ../src/guestfs.pod:1119
39549 "Does the named device exist? If so, we use that device. However if I<not> "
39550 "then we continue with this algorithm."
39554 #: ../src/guestfs.pod:1124
39555 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
39559 #: ../src/guestfs.pod:1126
39560 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
39564 #: ../src/guestfs.pod:1128
39565 msgid "If that named device exists, use it. If not, continue."
39569 #: ../src/guestfs.pod:1132
39570 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
39574 #: ../src/guestfs.pod:1134
39575 msgid "If that named device exists, use it. If not, return an error."
39579 #: ../src/guestfs.pod:1138
39580 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
39584 #: ../src/guestfs.pod:1140
39586 "Although the standard naming scheme and automatic translation is useful for "
39587 "simple programs and guestfish scripts, for larger programs it is best not to "
39588 "rely on this mechanism."
39592 #: ../src/guestfs.pod:1144
39594 "Where possible for maximum future portability programs using libguestfs "
39595 "should use these future-proof techniques:"
39599 #: ../src/guestfs.pod:1151
39601 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
39602 "device names, and then use those names directly."
39606 #: ../src/guestfs.pod:1154
39608 "Since those device names exist by definition, they will never be translated."
39612 #: ../src/guestfs.pod:1159
39614 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
39615 "filesystem labels."
39619 #: ../src/guestfs.pod:1166
39621 "This section discusses security implications of using libguestfs, "
39622 "particularly with untrusted or malicious guests or disk images."
39626 #: ../src/guestfs.pod:1169
39627 msgid "GENERAL SECURITY CONSIDERATIONS"
39628 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
39631 #: ../src/guestfs.pod:1171
39633 "Be careful with any files or data that you download from a guest (by "
39634 "\"download\" we mean not just the L</guestfs_download> command but any "
39635 "command that reads files, filenames, directories or anything else from a "
39636 "disk image). An attacker could manipulate the data to fool your program "
39637 "into doing the wrong thing. Consider cases such as:"
39641 #: ../src/guestfs.pod:1181
39642 msgid "the data (file etc) not being present"
39646 #: ../src/guestfs.pod:1185
39647 msgid "being present but empty"
39651 #: ../src/guestfs.pod:1189
39652 msgid "being much larger than normal"
39656 #: ../src/guestfs.pod:1193
39657 msgid "containing arbitrary 8 bit data"
39661 #: ../src/guestfs.pod:1197
39662 msgid "being in an unexpected character encoding"
39666 #: ../src/guestfs.pod:1201
39667 msgid "containing homoglyphs."
39671 #: ../src/guestfs.pod:1205
39672 msgid "SECURITY OF MOUNTING FILESYSTEMS"
39673 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
39676 #: ../src/guestfs.pod:1207
39678 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
39679 "(VFS) module can sometimes be escalated into exploits by deliberately "
39680 "creating a malicious, malformed filesystem. These exploits are very severe "
39681 "for two reasons. Firstly there are very many filesystem drivers in the "
39682 "kernel, and many of them are infrequently used and not much developer "
39683 "attention has been paid to the code. Linux userspace helps potential "
39684 "crackers by detecting the filesystem type and automatically choosing the "
39685 "right VFS driver, even if that filesystem type is obscure or unexpected for "
39686 "the administrator. Secondly, a kernel-level exploit is like a local root "
39687 "exploit (worse in some ways), giving immediate and total access to the "
39688 "system right down to the hardware level."
39692 #: ../src/guestfs.pod:1220
39694 "That explains why you should never mount a filesystem from an untrusted "
39695 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
39696 "inside a qemu virtual machine, usually running as a non-root user. The "
39697 "attacker would need to write a filesystem which first exploited the kernel, "
39698 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
39699 "the libguestfs protocol, and finally to be as serious as the host kernel "
39700 "exploit it would need to escalate its privileges to root. This multi-step "
39701 "escalation, performed by a static piece of data, is thought to be extremely "
39702 "hard to do, although we never say 'never' about security issues."
39706 #: ../src/guestfs.pod:1231
39708 "In any case callers can reduce the attack surface by forcing the filesystem "
39709 "type when mounting (use L</guestfs_mount_vfs>)."
39713 #: ../src/guestfs.pod:1234
39714 msgid "PROTOCOL SECURITY"
39715 msgstr "ЗАХИСТ ПРОТОКОЛУ"
39718 #: ../src/guestfs.pod:1236
39720 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
39721 "defined upper message size. However a program that uses libguestfs must "
39722 "also take care - for example you can write a program that downloads a binary "
39723 "from a disk image and executes it locally, and no amount of protocol "
39724 "security will save you from the consequences."
39728 #: ../src/guestfs.pod:1242
39729 msgid "INSPECTION SECURITY"
39733 #: ../src/guestfs.pod:1244
39735 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
39736 "directly from the guest, and these could contain any 8 bit data. Callers "
39737 "should be careful to escape these before printing them to a structured file "
39738 "(for example, use HTML escaping if creating a web page)."
39742 #: ../src/guestfs.pod:1250
39744 "Guest configuration may be altered in unusual ways by the administrator of "
39745 "the virtual machine, and may not reflect reality (particularly for untrusted "
39746 "or actively malicious guests). For example we parse the hostname from "
39747 "configuration files like C</etc/sysconfig/network> that we find in the "
39748 "guest, but the guest administrator can easily manipulate these files to "
39749 "provide the wrong hostname."
39753 #: ../src/guestfs.pod:1258
39755 "The inspection API parses guest configuration using two external libraries: "
39756 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
39757 "designed to be robust in the face of malicious data, although denial of "
39758 "service attacks are still possible, for example with oversized configuration "
39763 #: ../src/guestfs.pod:1264
39764 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
39765 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
39768 #: ../src/guestfs.pod:1266
39770 "Be very cautious about running commands from the guest. By running a "
39771 "command in the guest, you are giving CPU time to a binary that you do not "
39772 "control, under the same user account as the library, albeit wrapped in qemu "
39773 "virtualization. More information and alternatives can be found in the "
39774 "section L</RUNNING COMMANDS>."
39778 #: ../src/guestfs.pod:1272
39779 msgid "CVE-2010-3851"
39780 msgstr "CVE-2010-3851"
39783 #: ../src/guestfs.pod:1274
39784 msgid "https://bugzilla.redhat.com/642934"
39785 msgstr "https://bugzilla.redhat.com/642934"
39788 #: ../src/guestfs.pod:1276
39790 "This security bug concerns the automatic disk format detection that qemu "
39791 "does on disk images."
39795 #: ../src/guestfs.pod:1279
39797 "A raw disk image is just the raw bytes, there is no header. Other disk "
39798 "images like qcow2 contain a special header. Qemu deals with this by looking "
39799 "for one of the known headers, and if none is found then assuming the disk "
39800 "image must be raw."
39804 #: ../src/guestfs.pod:1284
39806 "This allows a guest which has been given a raw disk image to write some "
39807 "other header. At next boot (or when the disk image is accessed by "
39808 "libguestfs) qemu would do autodetection and think the disk image format was, "
39809 "say, qcow2 based on the header written by the guest."
39813 #: ../src/guestfs.pod:1289
39815 "This in itself would not be a problem, but qcow2 offers many features, one "
39816 "of which is to allow a disk image to refer to another image (called the "
39817 "\"backing disk\"). It does this by placing the path to the backing disk "
39818 "into the qcow2 header. This path is not validated and could point to any "
39819 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
39820 "\"holes\" in the qcow2 disk image, which of course is completely under the "
39821 "control of the attacker."
39825 #: ../src/guestfs.pod:1297
39827 "In libguestfs this is rather hard to exploit except under two circumstances:"
39831 #: ../src/guestfs.pod:1304
39832 msgid "You have enabled the network or have opened the disk in write mode."
39836 #: ../src/guestfs.pod:1308
39838 "You are also running untrusted code from the guest (see L</RUNNING "
39843 #: ../src/guestfs.pod:1313
39845 "The way to avoid this is to specify the expected disk format when adding "
39846 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
39847 "should always do this if the disk is raw format, and it's a good idea for "
39852 #: ../src/guestfs.pod:1318
39854 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
39855 "format is fetched from libvirt and passed through."
39859 #: ../src/guestfs.pod:1321
39861 "For libguestfs tools, use the I<--format> command line parameter as "
39866 #: ../src/guestfs.pod:1324
39867 msgid "CONNECTION MANAGEMENT"
39868 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
39871 #: ../src/guestfs.pod:1326
39872 msgid "guestfs_h *"
39873 msgstr "guestfs_h *"
39876 #: ../src/guestfs.pod:1328
39878 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
39879 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
39880 "handle and release all resources used."
39884 #: ../src/guestfs.pod:1332
39886 "For information on using multiple handles and threads, see the section L</"
39887 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
39891 #: ../src/guestfs.pod:1335
39892 msgid "guestfs_create"
39893 msgstr "guestfs_create"
39896 #: ../src/guestfs.pod:1337
39899 " guestfs_h *guestfs_create (void);\n"
39902 " guestfs_h *guestfs_create (void);\n"
39906 #: ../src/guestfs.pod:1339
39907 msgid "Create a connection handle."
39908 msgstr "Створити дескриптор з’єднання."
39911 #: ../src/guestfs.pod:1341
39913 "On success this returns a non-NULL pointer to a handle. On error it returns "
39918 #: ../src/guestfs.pod:1344
39920 "You have to \"configure\" the handle after creating it. This includes "
39921 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
39922 "handle at least once."
39926 #: ../src/guestfs.pod:1348
39927 msgid "After configuring the handle, you have to call L</guestfs_launch>."
39931 #: ../src/guestfs.pod:1350
39933 "You may also want to configure error handling for the handle. See the L</"
39934 "ERROR HANDLING> section below."
39938 #: ../src/guestfs.pod:1353
39939 msgid "guestfs_close"
39940 msgstr "guestfs_close"
39943 #: ../src/guestfs.pod:1355
39946 " void guestfs_close (guestfs_h *g);\n"
39949 " void guestfs_close (guestfs_h *g);\n"
39953 #: ../src/guestfs.pod:1357
39954 msgid "This closes the connection handle and frees up all resources used."
39958 #: ../src/guestfs.pod:1359
39960 "If autosync was set on the handle and the handle was launched, then this "
39961 "implicitly calls various functions to unmount filesystems and sync the "
39962 "disk. See L</guestfs_set_autosync> for more details."
39966 #: ../src/guestfs.pod:1363
39967 msgid "If a close callback was set on the handle, then it is called."
39971 #: ../src/guestfs.pod:1365
39972 msgid "ERROR HANDLING"
39973 msgstr "ОБРОБКА ПОМИЛОК"
39976 #: ../src/guestfs.pod:1367
39978 "API functions can return errors. For example, almost all functions that "
39979 "return C<int> will return C<-1> to indicate an error."
39983 #: ../src/guestfs.pod:1370
39985 "Additional information is available for errors: an error message string and "
39986 "optionally an error number (errno) if the thing that failed was a system "
39991 #: ../src/guestfs.pod:1374
39993 "You can get at the additional information about the last error on the handle "
39994 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
39995 "up an error handler with L</guestfs_set_error_handler>."
39999 #: ../src/guestfs.pod:1379
40001 "When the handle is created, a default error handler is installed which "
40002 "prints the error message string to C<stderr>. For small short-running "
40003 "command line programs it is sufficient to do:"
40007 #: ../src/guestfs.pod:1383
40010 " if (guestfs_launch (g) == -1)\n"
40011 " exit (EXIT_FAILURE);\n"
40014 " if (guestfs_launch (g) == -1)\n"
40015 " exit (EXIT_FAILURE);\n"
40019 #: ../src/guestfs.pod:1386
40021 "since the default error handler will ensure that an error message has been "
40022 "printed to C<stderr> before the program exits."
40026 #: ../src/guestfs.pod:1389
40028 "For other programs the caller will almost certainly want to install an "
40029 "alternate error handler or do error handling in-line like this:"
40033 #: ../src/guestfs.pod:1392
40036 " /* This disables the default behaviour of printing errors\n"
40038 " guestfs_set_error_handler (g, NULL, NULL);\n"
40043 #: ../src/guestfs.pod:1396
40046 " if (guestfs_launch (g) == -1) {\n"
40047 " /* Examine the error message and print it etc. */\n"
40048 " char *msg = guestfs_last_error (g);\n"
40049 " int errnum = guestfs_last_errno (g);\n"
40050 " fprintf (stderr, \"%s\", msg);\n"
40051 " if (errnum != 0)\n"
40052 " fprintf (stderr, \": %s\", strerror (errnum));\n"
40053 " fprintf (stderr, \"\\n\");\n"
40060 #: ../src/guestfs.pod:1407
40062 "Out of memory errors are handled differently. The default action is to call "
40063 "L<abort(3)>. If this is undesirable, then you can set a handler using L</"
40064 "guestfs_set_out_of_memory_handler>."
40068 #: ../src/guestfs.pod:1411
40070 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
40071 "because there is no handle if this happens there is no way to get additional "
40072 "error information. However L</guestfs_create> is supposed to be a "
40073 "lightweight operation which can only fail because of insufficient memory (it "
40074 "returns NULL in this case)."
40078 #: ../src/guestfs.pod:1417
40079 msgid "guestfs_last_error"
40080 msgstr "guestfs_last_error"
40083 #: ../src/guestfs.pod:1419
40086 " const char *guestfs_last_error (guestfs_h *g);\n"
40089 " const char *guestfs_last_error (guestfs_h *g);\n"
40093 #: ../src/guestfs.pod:1421
40095 "This returns the last error message that happened on C<g>. If there has not "
40096 "been an error since the handle was created, then this returns C<NULL>."
40100 #: ../src/guestfs.pod:1425
40102 "The lifetime of the returned string is until the next error occurs, or L</"
40103 "guestfs_close> is called."
40107 #: ../src/guestfs.pod:1428
40108 msgid "guestfs_last_errno"
40109 msgstr "guestfs_last_errno"
40112 #: ../src/guestfs.pod:1430
40115 " int guestfs_last_errno (guestfs_h *g);\n"
40118 " int guestfs_last_errno (guestfs_h *g);\n"
40122 #: ../src/guestfs.pod:1432
40123 msgid "This returns the last error number (errno) that happened on C<g>."
40127 #: ../src/guestfs.pod:1434
40128 msgid "If successful, an errno integer not equal to zero is returned."
40132 #: ../src/guestfs.pod:1436
40134 "If no error, this returns 0. This call can return 0 in three situations:"
40138 #: ../src/guestfs.pod:1443
40139 msgid "There has not been any error on the handle."
40143 #: ../src/guestfs.pod:1447
40145 "There has been an error but the errno was meaningless. This corresponds to "
40146 "the case where the error did not come from a failed system call, but for "
40147 "some other reason."
40151 #: ../src/guestfs.pod:1453
40153 "There was an error from a failed system call, but for some reason the errno "
40154 "was not captured and returned. This usually indicates a bug in libguestfs."
40158 #: ../src/guestfs.pod:1459
40160 "Libguestfs tries to convert the errno from inside the applicance into a "
40161 "corresponding errno for the caller (not entirely trivial: the appliance "
40162 "might be running a completely different operating system from the library "
40163 "and error numbers are not standardized across Un*xen). If this could not be "
40164 "done, then the error is translated to C<EINVAL>. In practice this should "
40165 "only happen in very rare circumstances."
40169 #: ../src/guestfs.pod:1467
40170 msgid "guestfs_set_error_handler"
40171 msgstr "guestfs_set_error_handler"
40174 #: ../src/guestfs.pod:1469
40177 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
40179 " const char *msg);\n"
40180 " void guestfs_set_error_handler (guestfs_h *g,\n"
40181 " guestfs_error_handler_cb cb,\n"
40182 " void *opaque);\n"
40185 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
40187 " const char *msg);\n"
40188 " void guestfs_set_error_handler (guestfs_h *g,\n"
40189 " guestfs_error_handler_cb cb,\n"
40190 " void *opaque);\n"
40194 #: ../src/guestfs.pod:1476
40196 "The callback C<cb> will be called if there is an error. The parameters "
40197 "passed to the callback are an opaque data pointer and the error message "
40202 #: ../src/guestfs.pod:1480
40204 "C<errno> is not passed to the callback. To get that the callback must call "
40205 "L</guestfs_last_errno>."
40209 #: ../src/guestfs.pod:1483
40211 "Note that the message string C<msg> is freed as soon as the callback "
40212 "function returns, so if you want to stash it somewhere you must make your "
40217 #: ../src/guestfs.pod:1487
40218 msgid "The default handler prints messages on C<stderr>."
40222 #: ../src/guestfs.pod:1489
40223 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
40227 #: ../src/guestfs.pod:1491
40228 msgid "guestfs_get_error_handler"
40229 msgstr "guestfs_get_error_handler"
40232 #: ../src/guestfs.pod:1493
40235 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
40236 " void **opaque_rtn);\n"
40239 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
40240 " void **opaque_rtn);\n"
40244 #: ../src/guestfs.pod:1496
40245 msgid "Returns the current error handler callback."
40249 #: ../src/guestfs.pod:1498
40250 msgid "guestfs_set_out_of_memory_handler"
40251 msgstr "guestfs_set_out_of_memory_handler"
40254 #: ../src/guestfs.pod:1500
40257 " typedef void (*guestfs_abort_cb) (void);\n"
40258 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
40259 " guestfs_abort_cb);\n"
40264 #: ../src/guestfs.pod:1504
40266 "The callback C<cb> will be called if there is an out of memory situation. "
40267 "I<Note this callback must not return>."
40271 #: ../src/guestfs.pod:1507
40272 msgid "The default is to call L<abort(3)>."
40276 #: ../src/guestfs.pod:1509
40278 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
40282 #: ../src/guestfs.pod:1512
40283 msgid "guestfs_get_out_of_memory_handler"
40284 msgstr "guestfs_get_out_of_memory_handler"
40287 #: ../src/guestfs.pod:1514
40290 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
40293 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
40297 #: ../src/guestfs.pod:1516
40298 msgid "This returns the current out of memory handler."
40302 #: ../src/guestfs.pod:1518
40304 msgstr "ВИКЛИКИ API"
40307 #: ../src/guestfs.pod:1522
40312 #: ../src/guestfs.pod:1524
40317 #: ../src/guestfs.pod:1526
40318 msgid "AVAILABILITY"
40319 msgstr "ДОСТУПНІСТЬ"
40322 #: ../src/guestfs.pod:1528
40323 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
40324 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
40327 #: ../src/guestfs.pod:1530
40329 "Using L</guestfs_available> you can test availability of the following "
40330 "groups of functions. This test queries the appliance to see if the "
40331 "appliance you are currently using supports the functionality."
40335 #: ../src/guestfs.pod:1535
40336 msgid "@AVAILABILITY@"
40337 msgstr "@AVAILABILITY@"
40340 #: ../src/guestfs.pod:1537
40341 msgid "GUESTFISH supported COMMAND"
40345 #: ../src/guestfs.pod:1539
40347 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
40348 "prints out the available groups and whether they are supported by this build "
40349 "of libguestfs. Note however that you have to do C<run> first."
40353 #: ../src/guestfs.pod:1544
40354 msgid "SINGLE CALLS AT COMPILE TIME"
40358 #: ../src/guestfs.pod:1546
40360 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
40361 "function, such as:"
40365 #: ../src/guestfs.pod:1549
40368 " #define LIBGUESTFS_HAVE_DD 1\n"
40371 " #define LIBGUESTFS_HAVE_DD 1\n"
40375 #: ../src/guestfs.pod:1551
40376 msgid "if L</guestfs_dd> is available."
40380 #: ../src/guestfs.pod:1553
40382 "Before version 1.5.8, if you needed to test whether a single libguestfs "
40383 "function is available at compile time, we recommended using build tools such "
40384 "as autoconf or cmake. For example in autotools you could use:"
40388 #: ../src/guestfs.pod:1558
40391 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
40392 " AC_CHECK_FUNCS([guestfs_dd])\n"
40395 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
40396 " AC_CHECK_FUNCS([guestfs_dd])\n"
40400 #: ../src/guestfs.pod:1561
40402 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
40407 #: ../src/guestfs.pod:1564
40408 msgid "SINGLE CALLS AT RUN TIME"
40412 #: ../src/guestfs.pod:1566
40414 "Testing at compile time doesn't guarantee that a function really exists in "
40415 "the library. The reason is that you might be dynamically linked against a "
40416 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
40417 "This situation unfortunately results in a segmentation fault, which is a "
40418 "shortcoming of the C dynamic linking system itself."
40422 #: ../src/guestfs.pod:1573
40424 "You can use L<dlopen(3)> to test if a function is available at run time, as "
40425 "in this example program (note that you still need the compile time check as "
40430 #: ../src/guestfs.pod:1577
40433 " #include <stdio.h>\n"
40434 " #include <stdlib.h>\n"
40435 " #include <unistd.h>\n"
40436 " #include <dlfcn.h>\n"
40437 " #include <guestfs.h>\n"
40440 " #include <stdio.h>\n"
40441 " #include <stdlib.h>\n"
40442 " #include <unistd.h>\n"
40443 " #include <dlfcn.h>\n"
40444 " #include <guestfs.h>\n"
40448 #: ../src/guestfs.pod:1583
40453 " #ifdef LIBGUESTFS_HAVE_DD\n"
40455 " int has_function;\n"
40460 " #ifdef LIBGUESTFS_HAVE_DD\n"
40462 " int has_function;\n"
40466 #: ../src/guestfs.pod:1589
40469 " /* Test if the function guestfs_dd is really available. */\n"
40470 " dl = dlopen (NULL, RTLD_LAZY);\n"
40472 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
40473 " exit (EXIT_FAILURE);\n"
40475 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
40481 #: ../src/guestfs.pod:1598
40484 " if (!has_function)\n"
40485 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
40487 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
40488 " /* Now it's safe to call\n"
40489 " guestfs_dd (g, \"foo\", \"bar\");\n"
40493 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
40500 #: ../src/guestfs.pod:1611
40502 "You may think the above is an awful lot of hassle, and it is. There are "
40503 "other ways outside of the C linking system to ensure that this kind of "
40504 "incompatibility never arises, such as using package versioning:"
40508 #: ../src/guestfs.pod:1616
40511 " Requires: libguestfs >= 1.0.80\n"
40516 #: ../src/guestfs.pod:1618
40517 msgid "CALLS WITH OPTIONAL ARGUMENTS"
40521 #: ../src/guestfs.pod:1620
40523 "A recent feature of the API is the introduction of calls which take optional "
40524 "arguments. In C these are declared 3 ways. The main way is as a call which "
40525 "takes variable arguments (ie. C<...>), as in this example:"
40529 #: ../src/guestfs.pod:1625
40532 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
40535 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
40539 #: ../src/guestfs.pod:1627
40541 "Call this with a list of optional arguments, terminated by C<-1>. So to "
40542 "call with no optional arguments specified:"
40546 #: ../src/guestfs.pod:1630
40549 " guestfs_add_drive_opts (g, filename, -1);\n"
40552 " guestfs_add_drive_opts (g, filename, -1);\n"
40556 #: ../src/guestfs.pod:1632
40557 msgid "With a single optional argument:"
40561 #: ../src/guestfs.pod:1634
40564 " guestfs_add_drive_opts (g, filename,\n"
40565 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40569 " guestfs_add_drive_opts (g, filename,\n"
40570 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40575 #: ../src/guestfs.pod:1638
40580 #: ../src/guestfs.pod:1640
40583 " guestfs_add_drive_opts (g, filename,\n"
40584 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40585 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
40589 " guestfs_add_drive_opts (g, filename,\n"
40590 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40591 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
40596 #: ../src/guestfs.pod:1645
40598 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
40603 #: ../src/guestfs.pod:1648
40604 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
40608 #: ../src/guestfs.pod:1650
40610 "The second variant has the same name with the suffix C<_va>, which works the "
40611 "same way but takes a C<va_list>. See the C manual for details. For the "
40612 "example function, this is declared:"
40616 #: ../src/guestfs.pod:1654
40619 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
40620 " va_list args);\n"
40623 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
40624 " va_list args);\n"
40628 #: ../src/guestfs.pod:1657
40629 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
40633 #: ../src/guestfs.pod:1659
40635 "The third variant is useful where you need to construct these calls. You "
40636 "pass in a structure where you fill in the optional fields. The structure "
40637 "has a bitmask as the first element which you must set to indicate which "
40638 "fields you have filled in. For our example function the structure and call "
40643 #: ../src/guestfs.pod:1665
40646 " struct guestfs_add_drive_opts_argv {\n"
40647 " uint64_t bitmask;\n"
40649 " const char *format;\n"
40652 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
40653 " const struct guestfs_add_drive_opts_argv *optargs);\n"
40656 " struct guestfs_add_drive_opts_argv {\n"
40657 " uint64_t bitmask;\n"
40659 " const char *format;\n"
40662 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
40663 " const struct guestfs_add_drive_opts_argv *optargs);\n"
40667 #: ../src/guestfs.pod:1674
40668 msgid "You could call it like this:"
40672 #: ../src/guestfs.pod:1676
40675 " struct guestfs_add_drive_opts_argv optargs = {\n"
40676 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
40677 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
40678 " .readonly = 1,\n"
40679 " .format = \"qcow2\"\n"
40683 " struct guestfs_add_drive_opts_argv optargs = {\n"
40684 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
40685 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
40686 " .readonly = 1,\n"
40687 " .format = \"qcow2\"\n"
40692 #: ../src/guestfs.pod:1683
40695 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
40698 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
40702 #: ../src/guestfs.pod:1691
40703 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
40707 #: ../src/guestfs.pod:1696
40708 msgid "You do not need to fill in all fields of the structure."
40712 #: ../src/guestfs.pod:1700
40714 "There must be a one-to-one correspondence between fields of the structure "
40715 "that are filled in, and bits set in the bitmask."
40719 #: ../src/guestfs.pod:1705
40720 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
40724 #: ../src/guestfs.pod:1707
40726 "In other languages, optional arguments are expressed in the way that is "
40727 "natural for that language. We refer you to the language-specific "
40728 "documentation for more details on that."
40732 #: ../src/guestfs.pod:1711
40733 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
40737 #: ../src/guestfs.pod:1713
40738 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
40742 #: ../src/guestfs.pod:1715
40744 "B<Note:> This section documents the generic event mechanism introduced in "
40745 "libguestfs 1.10, which you should use in new code if possible. The old "
40746 "functions C<guestfs_set_log_message_callback>, "
40747 "C<guestfs_set_subprocess_quit_callback>, "
40748 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
40749 "C<guestfs_set_progress_callback> are no longer documented in this manual "
40750 "page. Because of the ABI guarantee, the old functions continue to work."
40754 #: ../src/guestfs.pod:1724
40756 "Handles generate events when certain things happen, such as log messages "
40757 "being generated, progress messages during long-running operations, or the "
40758 "handle being closed. The API calls described below let you register a "
40759 "callback to be called when events happen. You can register multiple "
40760 "callbacks (for the same, different or overlapping sets of events), and "
40761 "individually remove callbacks. If callbacks are not removed, then they "
40762 "remain in force until the handle is closed."
40766 #: ../src/guestfs.pod:1732
40768 "In the current implementation, events are only generated synchronously: that "
40769 "means that events (and hence callbacks) can only happen while you are in the "
40770 "middle of making another libguestfs call. The callback is called in the "
40775 #: ../src/guestfs.pod:1737
40777 "Events may contain a payload, usually nothing (void), an array of 64 bit "
40778 "unsigned integers, or a message buffer. Payloads are discussed later on."
40782 #: ../src/guestfs.pod:1741
40783 msgid "CLASSES OF EVENTS"
40787 #: ../src/guestfs.pod:1745
40788 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
40792 #: ../src/guestfs.pod:1748
40794 "The callback function will be called while the handle is being closed "
40795 "(synchronously from L</guestfs_close>)."
40799 #: ../src/guestfs.pod:1751
40801 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
40802 "handles that are open when the program exits. This means that this callback "
40803 "might be called indirectly from L<exit(3)>, which can cause unexpected "
40804 "problems in higher-level languages (eg. if your HLL interpreter has already "
40805 "been cleaned up by the time this is called, and if your callback then jumps "
40806 "into some HLL function)."
40810 #: ../src/guestfs.pod:1758
40812 "If no callback is registered: the handle is closed without any callback "
40817 #: ../src/guestfs.pod:1761
40818 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
40822 #: ../src/guestfs.pod:1764
40824 "The callback function will be called when the child process quits, either "
40825 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
40826 "corresponds to a transition from any state to the CONFIG state)."
40830 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
40831 msgid "If no callback is registered: the event is ignored."
40835 #: ../src/guestfs.pod:1770
40836 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
40840 #: ../src/guestfs.pod:1773
40842 "The callback function will be called when the child process becomes ready "
40843 "first time after it has been launched. (This corresponds to a transition "
40844 "from LAUNCHING to the READY state)."
40848 #: ../src/guestfs.pod:1779
40849 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
40853 #: ../src/guestfs.pod:1782
40855 "Some long-running operations can generate progress messages. If this "
40856 "callback is registered, then it will be called each time a progress message "
40857 "is generated (usually two seconds after the operation started, and three "
40858 "times per second thereafter until it completes, although the frequency may "
40859 "change in future versions)."
40863 #: ../src/guestfs.pod:1788
40865 "The callback receives in the payload four unsigned 64 bit numbers which are "
40866 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
40870 #: ../src/guestfs.pod:1791
40872 "The units of C<total> are not defined, although for some operations C<total> "
40873 "may relate in some way to the amount of data to be transferred (eg. in bytes "
40874 "or megabytes), and C<position> may be the portion which has been transferred."
40878 #: ../src/guestfs.pod:1796
40879 msgid "The only defined and stable parts of the API are:"
40883 #: ../src/guestfs.pod:1802
40885 "The callback can display to the user some type of progress bar or indicator "
40886 "which shows the ratio of C<position>:C<total>."
40890 #: ../src/guestfs.pod:1807
40891 msgid "0 E<lt>= C<position> E<lt>= C<total>"
40895 #: ../src/guestfs.pod:1811
40897 "If any progress notification is sent during a call, then a final progress "
40898 "notification is always sent when C<position> = C<total> (I<unless> the call "
40899 "fails with an error)."
40903 #: ../src/guestfs.pod:1815
40905 "This is to simplify caller code, so callers can easily set the progress "
40906 "indicator to \"100%\" at the end of the operation, without requiring special "
40907 "code to detect this case."
40911 #: ../src/guestfs.pod:1821
40913 "For some calls we are unable to estimate the progress of the call, but we "
40914 "can still generate progress messages to indicate activity. This is known as "
40915 "\"pulse mode\", and is directly supported by certain progress bar "
40916 "implementations (eg. GtkProgressBar)."
40920 #: ../src/guestfs.pod:1826
40922 "For these calls, zero or more progress messages are generated with "
40923 "C<position = 0> and C<total = 1>, followed by a final message with "
40924 "C<position = total = 1>."
40928 #: ../src/guestfs.pod:1830
40930 "As noted above, if the call fails with an error then the final message may "
40931 "not be generated."
40935 #: ../src/guestfs.pod:1835
40937 "The callback also receives the procedure number (C<proc_nr>) and serial "
40938 "number (C<serial>) of the call. These are only useful for debugging "
40939 "protocol issues, and the callback can normally ignore them. The callback "
40940 "may want to print these numbers in error messages or debugging messages."
40944 #: ../src/guestfs.pod:1841
40945 msgid "If no callback is registered: progress messages are discarded."
40949 #: ../src/guestfs.pod:1843
40950 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
40954 #: ../src/guestfs.pod:1846
40956 "The callback function is called whenever a log message is generated by qemu, "
40957 "the appliance kernel, guestfsd (daemon), or utility programs."
40961 #: ../src/guestfs.pod:1849
40963 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
40964 "guestfs_launch>) then additional debug messages are generated."
40968 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
40970 "If no callback is registered: the messages are discarded unless the verbose "
40971 "flag is set in which case they are sent to stderr. You can override the "
40972 "printing of verbose messages to stderr by setting up a callback."
40976 #: ../src/guestfs.pod:1857
40977 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
40981 #: ../src/guestfs.pod:1860
40983 "The callback function is called whenever a log message is generated by the "
40984 "library part of libguestfs."
40988 #: ../src/guestfs.pod:1863
40990 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
40991 "messages are generated."
40995 #: ../src/guestfs.pod:1871
40996 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
41000 #: ../src/guestfs.pod:1874
41002 "The callback function is called whenever a trace message is generated. This "
41003 "only applies if the trace flag (L</guestfs_set_trace>) is set."
41007 #: ../src/guestfs.pod:1877
41009 "If no callback is registered: the messages are sent to stderr. You can "
41010 "override the printing of trace messages to stderr by setting up a callback."
41014 #: ../src/guestfs.pod:1881
41015 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
41019 #: ../src/guestfs.pod:1884
41021 "The callback function is called whenever a libguestfs function is entered."
41025 #: ../src/guestfs.pod:1887
41027 "The payload is a string which contains the name of the function that we are "
41028 "entering (not including C<guestfs_> prefix)."
41032 #: ../src/guestfs.pod:1890
41034 "Note that libguestfs functions can call themselves, so you may see many "
41035 "events from a single call. A few libguestfs functions do not generate this "
41040 #: ../src/guestfs.pod:1898
41041 msgid "guestfs_set_event_callback"
41045 #: ../src/guestfs.pod:1900
41048 " int guestfs_set_event_callback (guestfs_h *g,\n"
41049 " guestfs_event_callback cb,\n"
41050 " uint64_t event_bitmask,\n"
41052 " void *opaque);\n"
41057 #: ../src/guestfs.pod:1906
41059 "This function registers a callback (C<cb>) for all event classes in the "
41060 "C<event_bitmask>."
41064 #: ../src/guestfs.pod:1909
41066 "For example, to register for all log message events, you could call this "
41067 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. "
41068 "To register a single callback for all possible classes of events, use "
41069 "C<GUESTFS_EVENT_ALL>."
41073 #: ../src/guestfs.pod:1915
41074 msgid "C<flags> should always be passed as 0."
41078 #: ../src/guestfs.pod:1917
41080 "C<opaque> is an opaque pointer which is passed to the callback. You can use "
41081 "it for any purpose."
41085 #: ../src/guestfs.pod:1920
41087 "The return value is the event handle (an integer) which you can use to "
41088 "delete the callback (see below)."
41092 #: ../src/guestfs.pod:1923
41094 "If there is an error, this function returns C<-1>, and sets the error in the "
41095 "handle in the usual way (see L</guestfs_last_error> etc.)"
41099 #: ../src/guestfs.pod:1926
41101 "Callbacks remain in effect until they are deleted, or until the handle is "
41106 #: ../src/guestfs.pod:1929
41108 "In the case where multiple callbacks are registered for a particular event "
41109 "class, all of the callbacks are called. The order in which multiple "
41110 "callbacks are called is not defined."
41114 #: ../src/guestfs.pod:1933
41115 msgid "guestfs_delete_event_callback"
41119 #: ../src/guestfs.pod:1935
41122 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
41127 #: ../src/guestfs.pod:1937
41129 "Delete a callback that was previously registered. C<event_handle> should be "
41130 "the integer that was returned by a previous call to "
41131 "C<guestfs_set_event_callback> on the same handle."
41135 #: ../src/guestfs.pod:1941
41136 msgid "guestfs_event_callback"
41140 #: ../src/guestfs.pod:1943
41143 " typedef void (*guestfs_event_callback) (\n"
41146 " uint64_t event,\n"
41147 " int event_handle,\n"
41149 " const char *buf, size_t buf_len,\n"
41150 " const uint64_t *array, size_t array_len);\n"
41155 #: ../src/guestfs.pod:1952
41157 "This is the type of the event callback function that you have to provide."
41161 #: ../src/guestfs.pod:1955
41163 "The basic parameters are: the handle (C<g>), the opaque user pointer "
41164 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
41165 "handle, and C<flags> which in the current API you should ignore."
41169 #: ../src/guestfs.pod:1959
41171 "The remaining parameters contain the event payload (if any). Each event may "
41172 "contain a payload, which usually relates to the event class, but for future "
41173 "proofing your code should be written to handle any payload for any event "
41178 #: ../src/guestfs.pod:1964
41180 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
41181 "there is no message buffer). Note that this message buffer can contain "
41182 "arbitrary 8 bit data, including NUL bytes."
41186 #: ../src/guestfs.pod:1968
41188 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
41189 "moment this is only used for progress messages."
41193 #: ../src/guestfs.pod:1971
41194 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
41198 #: ../src/guestfs.pod:1973
41200 "One motivation for the generic event API was to allow GUI programs to "
41201 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
41202 "unconditionally to C<stderr>."
41206 #: ../src/guestfs.pod:1977
41208 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
41209 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
41210 "messages are not events; you must capture error messages separately)."
41214 #: ../src/guestfs.pod:1982
41216 "Programs have to set up a callback to capture the classes of events of "
41221 #: ../src/guestfs.pod:1985
41225 " guestfs_set_event_callback\n"
41226 " (g, message_callback,\n"
41227 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
41228 " GUESTFS_EVENT_TRACE,\n"
41229 " 0, NULL) == -1)\n"
41230 " if (eh == -1) {\n"
41231 " // handle error in the usual way\n"
41237 #: ../src/guestfs.pod:1995
41239 "The callback can then direct messages to the appropriate place. In this "
41240 "example, messages are directed to syslog:"
41244 #: ../src/guestfs.pod:1998
41248 " message_callback (\n"
41251 " uint64_t event,\n"
41252 " int event_handle,\n"
41254 " const char *buf, size_t buf_len,\n"
41255 " const uint64_t *array, size_t array_len)\n"
41257 " const int priority = LOG_USER|LOG_INFO;\n"
41258 " if (buf_len > 0)\n"
41259 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
41265 #: ../src/guestfs.pod:2013
41266 msgid "CANCELLING LONG TRANSFERS"
41270 #: ../src/guestfs.pod:2015
41272 "Some operations can be cancelled by the caller while they are in progress. "
41273 "Currently only operations that involve uploading or downloading data can be "
41274 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
41275 "parameters in the generator)."
41279 #: ../src/guestfs.pod:2020
41280 msgid "guestfs_user_cancel"
41284 #: ../src/guestfs.pod:2022
41287 " void guestfs_user_cancel (guestfs_h *g);\n"
41292 #: ../src/guestfs.pod:2024
41294 "C<guestfs_user_cancel> cancels the current upload or download operation."
41298 #: ../src/guestfs.pod:2027
41300 "Unlike most other libguestfs calls, this function is signal safe and thread "
41301 "safe. You can call it from a signal handler or from another thread, without "
41302 "needing to do any locking."
41306 #: ../src/guestfs.pod:2031
41308 "The transfer that was in progress (if there is one) will stop shortly "
41309 "afterwards, and will return an error. The errno (see L</"
41310 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
41311 "out if the operation was cancelled or failed because of another error."
41315 #: ../src/guestfs.pod:2037
41317 "No cleanup is performed: for example, if a file was being uploaded then "
41318 "after cancellation there may be a partially uploaded file. It is the "
41319 "caller's responsibility to clean up if necessary."
41323 #: ../src/guestfs.pod:2041
41324 msgid "There are two common places that you might call C<guestfs_user_cancel>."
41328 #: ../src/guestfs.pod:2043
41330 "In an interactive text-based program, you might call it from a C<SIGINT> "
41331 "signal handler so that pressing C<^C> cancels the current operation. (You "
41332 "also need to call L</guestfs_set_pgroup> so that child processes don't "
41333 "receive the C<^C> signal)."
41337 #: ../src/guestfs.pod:2048
41339 "In a graphical program, when the main thread is displaying a progress bar "
41340 "with a cancel button, wire up the cancel button to call this function."
41344 #: ../src/guestfs.pod:2052
41345 msgid "PRIVATE DATA AREA"
41349 #: ../src/guestfs.pod:2054
41351 "You can attach named pieces of private data to the libguestfs handle, fetch "
41352 "them by name, and walk over them, for the lifetime of the handle. This is "
41353 "called the private data area and is only available from the C API."
41357 #: ../src/guestfs.pod:2059
41358 msgid "To attach a named piece of data, use the following call:"
41362 #: ../src/guestfs.pod:2061
41365 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
41368 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
41372 #: ../src/guestfs.pod:2063
41374 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
41375 "pointer (which can be C<NULL>). Any previous item with the same key is "
41380 #: ../src/guestfs.pod:2067
41382 "You can use any C<key> you want, but your key should I<not> start with an "
41383 "underscore character. Keys beginning with an underscore character are "
41384 "reserved for internal libguestfs purposes (eg. for implementing language "
41385 "bindings). It is recommended that you prefix the key with some unique "
41386 "string to avoid collisions with other users."
41390 #: ../src/guestfs.pod:2073
41391 msgid "To retrieve the pointer, use:"
41395 #: ../src/guestfs.pod:2075
41398 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
41401 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
41405 #: ../src/guestfs.pod:2077
41407 "This function returns C<NULL> if either no data is found associated with "
41408 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
41413 #: ../src/guestfs.pod:2081
41415 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
41416 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
41417 "all. In particular, libguestfs does I<not> try to free the data when the "
41418 "handle is closed. If the data must be freed, then the caller must either "
41419 "free it before calling L</guestfs_close> or must set up a close callback to "
41420 "do it (see L</GUESTFS_EVENT_CLOSE>)."
41424 #: ../src/guestfs.pod:2088
41425 msgid "To walk over all entries, use these two functions:"
41429 #: ../src/guestfs.pod:2090
41432 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
41437 #: ../src/guestfs.pod:2092
41440 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
41445 #: ../src/guestfs.pod:2094
41447 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
41448 "not have any particular meaning -- keys are not returned in any defined "
41449 "order). A pointer to the key is returned in C<*key_rtn> and the "
41450 "corresponding data pointer is returned from the function. C<NULL> is "
41451 "returned if there are no keys stored in the handle."
41455 #: ../src/guestfs.pod:2100
41457 "C<guestfs_next_private> returns the next key, pointer pair. The return "
41458 "value of this function is also C<NULL> is there are no further entries to "
41463 #: ../src/guestfs.pod:2104
41464 msgid "Notes about walking over entries:"
41468 #: ../src/guestfs.pod:2110
41470 "You must not call C<guestfs_set_private> while walking over the entries."
41474 #: ../src/guestfs.pod:2115
41476 "The handle maintains an internal iterator which is reset when you call "
41477 "C<guestfs_first_private>. This internal iterator is invalidated when you "
41478 "call C<guestfs_set_private>."
41482 #: ../src/guestfs.pod:2121
41483 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
41487 #: ../src/guestfs.pod:2123
41490 " guestfs_set_private (g, key, NULL);\n"
41495 #: ../src/guestfs.pod:2125
41496 msgid "then that C<key> is not returned when walking."
41500 #: ../src/guestfs.pod:2129
41502 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
41503 "C<guestfs_next_private> or C<guestfs_set_private>."
41507 #: ../src/guestfs.pod:2135
41509 "The following example code shows how to print all keys and data pointers "
41510 "that are associated with the handle C<g>:"
41514 #: ../src/guestfs.pod:2138
41517 " const char *key;\n"
41518 " void *data = guestfs_first_private (g, &key);\n"
41519 " while (data != NULL)\n"
41521 " printf (\"key = %s, data = %p\\n\", key, data);\n"
41522 " data = guestfs_next_private (g, &key);\n"
41528 #: ../src/guestfs.pod:2146
41530 "More commonly you are only interested in keys that begin with an application-"
41531 "specific prefix C<foo_>. Modify the loop like so:"
41535 #: ../src/guestfs.pod:2149
41538 " const char *key;\n"
41539 " void *data = guestfs_first_private (g, &key);\n"
41540 " while (data != NULL)\n"
41542 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
41543 " printf (\"key = %s, data = %p\\n\", key, data);\n"
41544 " data = guestfs_next_private (g, &key);\n"
41550 #: ../src/guestfs.pod:2158
41552 "If you need to modify keys while walking, then you have to jump back to the "
41553 "beginning of the loop. For example, to delete all keys prefixed with "
41558 #: ../src/guestfs.pod:2162
41561 " const char *key;\n"
41564 " data = guestfs_first_private (g, &key);\n"
41565 " while (data != NULL)\n"
41567 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
41569 " guestfs_set_private (g, key, NULL);\n"
41570 " /* note that 'key' pointer is now invalid, and so is\n"
41571 " the internal iterator */\n"
41574 " data = guestfs_next_private (g, &key);\n"
41580 #: ../src/guestfs.pod:2178
41582 "Note that the above loop is guaranteed to terminate because the keys are "
41583 "being deleted, but other manipulations of keys within the loop might not "
41584 "terminate unless you also maintain an indication of which keys have been "
41589 #: ../src/guestfs.pod:2183
41594 #: ../src/guestfs.pod:2185
41596 "The libguestfs C library can be probed using systemtap or DTrace. This is "
41597 "true of any library, not just libguestfs. However libguestfs also contains "
41598 "static markers to help in probing internal operations."
41602 #: ../src/guestfs.pod:2189
41603 msgid "You can list all the static markers by doing:"
41607 #: ../src/guestfs.pod:2191
41610 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
41611 " .provider(\"guestfs\").mark(\"*\")'\n"
41616 #: ../src/guestfs.pod:2194
41618 "B<Note:> These static markers are I<not> part of the stable API and may "
41619 "change in future versions."
41623 #: ../src/guestfs.pod:2197
41624 msgid "SYSTEMTAP SCRIPT EXAMPLE"
41628 #: ../src/guestfs.pod:2199
41630 "This script contains examples of displaying both the static markers and some "
41631 "ordinary C entry points:"
41635 #: ../src/guestfs.pod:2202
41643 #: ../src/guestfs.pod:2204
41646 " function display_time () {\n"
41647 " now = gettimeofday_us ();\n"
41650 " delta = now - last;\n"
41656 #: ../src/guestfs.pod:2211
41659 " printf (\"%d (+%d):\", now, delta);\n"
41665 #: ../src/guestfs.pod:2214
41670 " printf (\"ready\\n\");\n"
41676 #: ../src/guestfs.pod:2219
41679 " /* Display all calls to static markers. */\n"
41680 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
41681 " .provider(\"guestfs\").mark(\"*\") ? {\n"
41682 " display_time();\n"
41683 " printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
41689 #: ../src/guestfs.pod:2226
41692 " /* Display all calls to guestfs_mkfs* functions. */\n"
41693 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
41694 " .function(\"guestfs_mkfs*\") ? {\n"
41695 " display_time();\n"
41696 " printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
41702 #: ../src/guestfs.pod:2233
41704 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
41705 "program. Note that you either have to be root, or you have to add yourself "
41706 "to several special stap groups. Consult the systemtap documentation for "
41707 "more information."
41711 #: ../src/guestfs.pod:2238
41714 " # stap /tmp/test.stap\n"
41720 #: ../src/guestfs.pod:2241
41721 msgid "In another terminal, run a guestfish command such as this:"
41725 #: ../src/guestfs.pod:2245
41726 msgid "In the first terminal, stap trace output similar to this is shown:"
41730 #: ../src/guestfs.pod:2247
41733 " 1318248056692655 (+0):\tlaunch_start\n"
41734 " 1318248056692850 (+195): launch_build_appliance_start\n"
41735 " 1318248056818285 (+125435): launch_build_appliance_end\n"
41736 " 1318248056838059 (+19774): launch_run_qemu\n"
41737 " 1318248061071167 (+4233108): launch_end\n"
41738 " 1318248061280324 (+209157): guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
41743 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
41748 #: ../src/guestfs.pod:2256
41750 "<!-- old anchor for the next section --> <a name="
41751 "\"state_machine_and_low_level_event_api\"/>"
41753 "<!-- old anchor for the next section --> <a name="
41754 "\"state_machine_and_low_level_event_api\"/>"
41757 #: ../src/guestfs.pod:2261
41758 msgid "ARCHITECTURE"
41759 msgstr "АРХІТЕКТУРА"
41762 #: ../src/guestfs.pod:2263
41764 "Internally, libguestfs is implemented by running an appliance (a special "
41765 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
41766 "process of the main program."
41770 #: ../src/guestfs.pod:2267
41773 " ___________________\n"
41775 " | main program |\n"
41777 " | | child process / appliance\n"
41778 " | | __________________________\n"
41780 " +-------------------+ RPC | +-----------------+ |\n"
41781 " | libguestfs <--------------------> guestfsd | |\n"
41782 " | | | +-----------------+ |\n"
41783 " \\___________________/ | | Linux kernel | |\n"
41784 " | +--^--------------+ |\n"
41785 " \\_________|________________/\n"
41787 " _______v______\n"
41790 " | disk image |\n"
41791 " \\______________/\n"
41796 #: ../src/guestfs.pod:2287
41798 "The library, linked to the main program, creates the child process and hence "
41799 "the appliance in the L</guestfs_launch> function."
41803 #: ../src/guestfs.pod:2290
41805 "Inside the appliance is a Linux kernel and a complete stack of userspace "
41806 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
41807 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
41808 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
41809 "API calls and RPC calls to the daemon. Lastly the disk image(s) are "
41810 "attached to the qemu process which translates device access by the "
41811 "appliance's Linux kernel into accesses to the image."
41815 #: ../src/guestfs.pod:2299
41817 "A common misunderstanding is that the appliance \"is\" the virtual machine. "
41818 "Although the disk image you are attached to might also be used by some "
41819 "virtual machine, libguestfs doesn't know or care about this. (But you will "
41820 "care if both libguestfs's qemu process and your virtual machine are trying "
41821 "to update the disk image at the same time, since these usually results in "
41822 "massive disk corruption)."
41826 #: ../src/guestfs.pod:2306
41827 msgid "STATE MACHINE"
41828 msgstr "СКІНЧЕННИЙ АВТОМАТ"
41831 #: ../src/guestfs.pod:2308
41832 msgid "libguestfs uses a state machine to model the child process:"
41836 #: ../src/guestfs.pod:2310
41840 " guestfs_create\n"
41848 " / | \\ \\ guestfs_launch\n"
41849 " / | _\\__V______\n"
41851 " / | | LAUNCHING |\n"
41852 " / | \\___________/\n"
41854 " / | guestfs_launch\n"
41856 " ______ / __|____V\n"
41857 " / \\ ------> / \\\n"
41858 " | BUSY | | READY |\n"
41859 " \\______/ <------ \\________/\n"
41864 #: ../src/guestfs.pod:2332
41866 "The normal transitions are (1) CONFIG (when the handle is created, but there "
41867 "is no child process), (2) LAUNCHING (when the child process is booting up), "
41868 "(3) alternating between READY and BUSY as commands are issued to, and "
41869 "carried out by, the child process."
41873 #: ../src/guestfs.pod:2337
41875 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
41876 "asynchronously at any time (eg. due to some internal error), and that causes "
41877 "the state to transition back to CONFIG."
41881 #: ../src/guestfs.pod:2341
41883 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
41884 "issued when in the CONFIG state."
41888 #: ../src/guestfs.pod:2344
41890 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
41891 "L</guestfs_launch> blocks until the child process is READY to accept "
41892 "commands (or until some failure or timeout). L</guestfs_launch> internally "
41893 "moves the state from CONFIG to LAUNCHING while it is running."
41897 #: ../src/guestfs.pod:2350
41899 "API actions such as L</guestfs_mount> can only be issued when in the READY "
41900 "state. These API calls block waiting for the command to be carried out (ie. "
41901 "the state to transition to BUSY and then back to READY). There are no non-"
41902 "blocking versions, and no way to issue more than one command per handle at "
41907 #: ../src/guestfs.pod:2356
41909 "Finally, the child process sends asynchronous messages back to the main "
41910 "program, such as kernel log messages. You can register a callback to "
41911 "receive these messages."
41915 #: ../src/guestfs.pod:2360
41920 #: ../src/guestfs.pod:2362
41921 msgid "APPLIANCE BOOT PROCESS"
41925 #: ../src/guestfs.pod:2364
41927 "This process has evolved and continues to evolve. The description here "
41928 "corresponds only to the current version of libguestfs and is provided for "
41929 "information only."
41933 #: ../src/guestfs.pod:2368
41935 "In order to follow the stages involved below, enable libguestfs debugging "
41936 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
41940 #: ../src/guestfs.pod:2373
41941 msgid "Create the appliance"
41945 #: ../src/guestfs.pod:2375
41947 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
41948 "initrd and the appliance."
41952 #: ../src/guestfs.pod:2378
41954 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
41955 "directory if C<TMPDIR> is set)."
41959 #: ../src/guestfs.pod:2381
41961 "For a complete description of how the appliance is created and cached, read "
41962 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
41966 #: ../src/guestfs.pod:2385
41967 msgid "Start qemu and boot the kernel"
41971 #: ../src/guestfs.pod:2387
41972 msgid "qemu is invoked to boot the kernel."
41976 #: ../src/guestfs.pod:2389
41977 msgid "Run the initrd"
41981 #: ../src/guestfs.pod:2391
41983 "C<febootstrap-supermin-helper> builds a small initrd. The initrd is not the "
41984 "appliance. The purpose of the initrd is to load enough kernel modules in "
41985 "order that the appliance itself can be mounted and started."
41989 #: ../src/guestfs.pod:2395
41991 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
41996 #: ../src/guestfs.pod:2398
41998 "When the initrd has started you will see messages showing that kernel "
41999 "modules are being loaded, similar to this:"
42003 #: ../src/guestfs.pod:2401
42006 " febootstrap: ext2 mini initrd starting up\n"
42007 " febootstrap: mounting /sys\n"
42008 " febootstrap: internal insmod libcrc32c.ko\n"
42009 " febootstrap: internal insmod crc32c-intel.ko\n"
42014 #: ../src/guestfs.pod:2406
42015 msgid "Find and mount the appliance device"
42019 #: ../src/guestfs.pod:2408
42021 "The appliance is a sparse file containing an ext2 filesystem which contains "
42022 "a familiar (although reduced in size) Linux operating system. It would "
42023 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
42027 #: ../src/guestfs.pod:2412
42029 "The regular disks being inspected by libguestfs are the first devices "
42030 "exposed by qemu (eg. as C</dev/vda>)."
42034 #: ../src/guestfs.pod:2415
42036 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
42037 "there was only one regular disk)."
42041 #: ../src/guestfs.pod:2418
42043 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
42044 "and switch root into the appliance, and run C</init> from the appliance."
42048 #: ../src/guestfs.pod:2422
42049 msgid "If this works successfully you will see messages such as:"
42053 #: ../src/guestfs.pod:2424
42056 " febootstrap: picked /sys/block/vdb/dev as root device\n"
42057 " febootstrap: creating /dev/root as block special 252:16\n"
42058 " febootstrap: mounting new root on /root\n"
42059 " febootstrap: chroot\n"
42060 " Starting /init script ...\n"
42065 #: ../src/guestfs.pod:2430
42067 "Note that C<Starting /init script ...> indicates that the appliance's init "
42068 "script is now running."
42072 #: ../src/guestfs.pod:2433
42073 msgid "Initialize the appliance"
42077 #: ../src/guestfs.pod:2435
42079 "The appliance itself now initializes itself. This involves starting certain "
42080 "processes like C<udev>, possibly printing some debug information, and "
42081 "finally running the daemon (C<guestfsd>)."
42085 #: ../src/guestfs.pod:2439
42090 #: ../src/guestfs.pod:2441
42092 "Finally the daemon (C<guestfsd>) runs inside the appliance. If it runs you "
42097 #: ../src/guestfs.pod:2444
42100 " verbose daemon enabled\n"
42105 #: ../src/guestfs.pod:2446
42107 "The daemon expects to see a named virtio-serial port exposed by qemu and "
42108 "connected on the other end to the library."
42112 #: ../src/guestfs.pod:2449
42114 "The daemon connects to this port (and hence to the library) and sends a four "
42115 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
42116 "protocol (see below)."
42120 #: ../src/guestfs.pod:2455
42121 msgid "COMMUNICATION PROTOCOL"
42125 #: ../src/guestfs.pod:2457
42127 "Don't rely on using this protocol directly. This section documents how it "
42128 "currently works, but it may change at any time."
42132 #: ../src/guestfs.pod:2460
42134 "The protocol used to talk between the library and the daemon running inside "
42135 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
42136 "1014, RFC 1832, RFC 4506)."
42140 #: ../src/guestfs.pod:2464
42142 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
42143 "this file is automatically generated)."
42147 #: ../src/guestfs.pod:2467
42149 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
42150 "and C<FileOut> parameters, which are handled with very simple request/reply "
42151 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
42152 "parameters, which use the same request and reply messages, but they may also "
42153 "be followed by files sent using a chunked encoding."
42157 #: ../src/guestfs.pod:2474
42158 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
42162 #: ../src/guestfs.pod:2476
42163 msgid "For ordinary functions, the request message is:"
42167 #: ../src/guestfs.pod:2478
42170 " total length (header + arguments,\n"
42171 " but not including the length word itself)\n"
42172 " struct guestfs_message_header (encoded as XDR)\n"
42173 " struct guestfs_<foo>_args (encoded as XDR)\n"
42178 #: ../src/guestfs.pod:2483
42180 "The total length field allows the daemon to allocate a fixed size buffer "
42181 "into which it slurps the rest of the message. As a result, the total length "
42182 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
42183 "effective size of any request is limited to somewhere under this size."
42187 #: ../src/guestfs.pod:2489
42189 "Note also that many functions don't take any arguments, in which case the "
42190 "C<guestfs_I<foo>_args> is completely omitted."
42194 #: ../src/guestfs.pod:2492
42196 "The header contains the procedure number (C<guestfs_proc>) which is how the "
42197 "receiver knows what type of args structure to expect, or none at all."
42201 #: ../src/guestfs.pod:2496
42203 "For functions that take optional arguments, the optional arguments are "
42204 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
42205 "arguments. A bitmask in the header indicates which optional arguments are "
42206 "meaningful. The bitmask is also checked to see if it contains bits set "
42207 "which the daemon does not know about (eg. if more optional arguments were "
42208 "added in a later version of the library), and this causes the call to be "
42213 #: ../src/guestfs.pod:2504
42214 msgid "The reply message for ordinary functions is:"
42218 #: ../src/guestfs.pod:2506
42221 " total length (header + ret,\n"
42222 " but not including the length word itself)\n"
42223 " struct guestfs_message_header (encoded as XDR)\n"
42224 " struct guestfs_<foo>_ret (encoded as XDR)\n"
42229 #: ../src/guestfs.pod:2511
42231 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
42232 "functions that return no formal return values."
42236 #: ../src/guestfs.pod:2514
42238 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
42242 #: ../src/guestfs.pod:2517
42244 "In the case of an error, a flag is set in the header, and the reply message "
42245 "is slightly changed:"
42249 #: ../src/guestfs.pod:2520
42252 " total length (header + error,\n"
42253 " but not including the length word itself)\n"
42254 " struct guestfs_message_header (encoded as XDR)\n"
42255 " struct guestfs_message_error (encoded as XDR)\n"
42260 #: ../src/guestfs.pod:2525
42262 "The C<guestfs_message_error> structure contains the error message as a "
42267 #: ../src/guestfs.pod:2528
42268 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
42272 #: ../src/guestfs.pod:2530
42274 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
42275 "The normal request message is sent (see above). However this is followed by "
42276 "a sequence of file chunks."
42280 #: ../src/guestfs.pod:2534
42283 " total length (header + arguments,\n"
42284 " but not including the length word itself,\n"
42285 " and not including the chunks)\n"
42286 " struct guestfs_message_header (encoded as XDR)\n"
42287 " struct guestfs_<foo>_args (encoded as XDR)\n"
42288 " sequence of chunks for FileIn param #0\n"
42289 " sequence of chunks for FileIn param #1 etc.\n"
42294 #: ../src/guestfs.pod:2542
42295 msgid "The \"sequence of chunks\" is:"
42299 #: ../src/guestfs.pod:2544
42302 " length of chunk (not including length word itself)\n"
42303 " struct guestfs_chunk (encoded as XDR)\n"
42304 " length of chunk\n"
42305 " struct guestfs_chunk (encoded as XDR)\n"
42307 " length of chunk\n"
42308 " struct guestfs_chunk (with data.data_len == 0)\n"
42313 #: ../src/guestfs.pod:2552
42315 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
42316 "is set in the final chunk to indicate either successful completion or early "
42321 #: ../src/guestfs.pod:2556
42323 "At time of writing there are no functions that have more than one FileIn "
42324 "parameter. However this is (theoretically) supported, by sending the "
42325 "sequence of chunks for each FileIn parameter one after another (from left to "
42330 #: ../src/guestfs.pod:2561
42332 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
42333 "transfer. The library does this by sending a chunk with a special flag set "
42334 "to indicate cancellation. When the daemon sees this, it cancels the whole "
42335 "RPC, does I<not> send any reply, and goes back to reading the next request."
42339 #: ../src/guestfs.pod:2567
42341 "The daemon may also cancel. It does this by writing a special word "
42342 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
42343 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
42344 "cancel chunk). The special word is chosen so that even if cancellation "
42345 "happens right at the end of the transfer (after the library has finished "
42346 "writing and has started listening for the reply), the \"spurious\" cancel "
42347 "flag will not be confused with the reply message."
42351 #: ../src/guestfs.pod:2576
42353 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
42354 "limit), and also files where the size is not known in advance (eg. from "
42355 "pipes or sockets). However the chunks are rather small "
42356 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
42357 "to keep much in memory."
42361 #: ../src/guestfs.pod:2582
42362 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
42366 #: ../src/guestfs.pod:2584
42368 "The protocol for FileOut parameters is exactly the same as for FileIn "
42369 "parameters, but with the roles of daemon and library reversed."
42373 #: ../src/guestfs.pod:2587
42376 " total length (header + ret,\n"
42377 " but not including the length word itself,\n"
42378 " and not including the chunks)\n"
42379 " struct guestfs_message_header (encoded as XDR)\n"
42380 " struct guestfs_<foo>_ret (encoded as XDR)\n"
42381 " sequence of chunks for FileOut param #0\n"
42382 " sequence of chunks for FileOut param #1 etc.\n"
42387 #: ../src/guestfs.pod:2595
42388 msgid "INITIAL MESSAGE"
42392 #: ../src/guestfs.pod:2597
42394 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
42395 "which indicates that the guest and daemon is alive. This is what L</"
42396 "guestfs_launch> waits for."
42400 #: ../src/guestfs.pod:2601
42401 msgid "PROGRESS NOTIFICATION MESSAGES"
42405 #: ../src/guestfs.pod:2603
42407 "The daemon may send progress notification messages at any time. These are "
42408 "distinguished by the normal length word being replaced by "
42409 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
42413 #: ../src/guestfs.pod:2607
42415 "The library turns them into progress callbacks (see L</"
42416 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
42421 #: ../src/guestfs.pod:2611
42423 "The daemon self-limits the frequency of progress messages it sends (see "
42424 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
42429 #: ../src/guestfs.pod:2615
42430 msgid "LIBGUESTFS VERSION NUMBERS"
42434 #: ../src/guestfs.pod:2617
42436 "Since April 2010, libguestfs has started to make separate development and "
42437 "stable releases, along with corresponding branches in our git repository. "
42438 "These separate releases can be identified by version number:"
42442 #: ../src/guestfs.pod:2622
42445 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
42446 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
42452 " | `-------- sub-version\n"
42454 " `------ always '1' because we don't change the ABI\n"
42459 #: ../src/guestfs.pod:2633
42460 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
42464 #: ../src/guestfs.pod:2635
42466 "As time passes we cherry pick fixes from the development branch and backport "
42467 "those into the stable branch, the effect being that the stable branch should "
42468 "get more stable and less buggy over time. So the stable releases are ideal "
42469 "for people who don't need new features but would just like the software to "
42474 #: ../src/guestfs.pod:2641
42475 msgid "Our criteria for backporting changes are:"
42479 #: ../src/guestfs.pod:2647
42481 "Documentation changes which don't affect any code are backported unless the "
42482 "documentation refers to a future feature which is not in stable."
42486 #: ../src/guestfs.pod:2653
42488 "Bug fixes which are not controversial, fix obvious problems, and have been "
42489 "well tested are backported."
42493 #: ../src/guestfs.pod:2658
42495 "Simple rearrangements of code which shouldn't affect how it works get "
42496 "backported. This is so that the code in the two branches doesn't get too "
42497 "far out of step, allowing us to backport future fixes more easily."
42501 #: ../src/guestfs.pod:2664
42503 "We I<don't> backport new features, new APIs, new tools etc, except in one "
42504 "exceptional case: the new feature is required in order to implement an "
42505 "important bug fix."
42509 #: ../src/guestfs.pod:2670
42511 "A new stable branch starts when we think the new features in development are "
42512 "substantial and compelling enough over the current stable branch to warrant "
42513 "it. When that happens we create new stable and development versions 1.N.0 "
42514 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
42515 "stable at this point, but by backporting fixes from development, that branch "
42516 "will stabilize over time."
42520 #: ../src/guestfs.pod:2678
42521 msgid "EXTENDING LIBGUESTFS"
42525 #: ../src/guestfs.pod:2680
42526 msgid "ADDING A NEW API ACTION"
42530 #: ../src/guestfs.pod:2682
42532 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
42533 "documentation) are generated, and this makes it easy to extend the "
42538 #: ../src/guestfs.pod:2686
42539 msgid "To add a new API action there are two changes:"
42543 #: ../src/guestfs.pod:2692
42545 "You need to add a description of the call (name, parameters, return type, "
42546 "tests, documentation) to C<generator/generator_actions.ml>."
42550 #: ../src/guestfs.pod:2695
42552 "There are two sorts of API action, depending on whether the call goes "
42553 "through to the daemon in the appliance, or is serviced entirely by the "
42554 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
42555 "former, since the sync is done in the appliance. L</guestfs_set_trace> is "
42556 "an example of the latter, since a trace flag is maintained in the handle and "
42557 "all tracing is done on the library side."
42561 #: ../src/guestfs.pod:2703
42563 "Most new actions are of the first type, and get added to the "
42564 "C<daemon_functions> list. Each function has a unique procedure number used "
42565 "in the RPC protocol which is assigned to that action when we publish "
42566 "libguestfs and cannot be reused. Take the latest procedure number and "
42571 #: ../src/guestfs.pod:2709
42573 "For library-only actions of the second type, add to the "
42574 "C<non_daemon_functions> list. Since these functions are serviced by the "
42575 "library and do not travel over the RPC mechanism to the daemon, these "
42576 "functions do not need a procedure number, and so the procedure number is set "
42581 #: ../src/guestfs.pod:2717
42582 msgid "Implement the action (in C):"
42586 #: ../src/guestfs.pod:2719
42588 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
42589 "C<daemon/> directory."
42593 #: ../src/guestfs.pod:2722
42595 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
42596 "(note: double underscore) in the C<src/> directory."
42600 #: ../src/guestfs.pod:2725
42601 msgid "In either case, use another function as an example of what to do."
42605 #: ../src/guestfs.pod:2729
42606 msgid "After making these changes, use C<make> to compile."
42610 #: ../src/guestfs.pod:2731
42612 "Note that you don't need to implement the RPC, language bindings, manual "
42613 "pages or anything else. It's all automatically generated from the OCaml "
42618 #: ../src/guestfs.pod:2735
42619 msgid "ADDING TESTS FOR AN API ACTION"
42623 #: ../src/guestfs.pod:2737
42625 "You can supply zero or as many tests as you want per API call. The tests "
42626 "can either be added as part of the API description (C<generator/"
42627 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
42628 "into C<tests/*/>. Note that adding a script to C<tests/*/> is slower, so if "
42629 "possible use the first method."
42633 #: ../src/guestfs.pod:2744
42635 "The following describes the test environment used when you add an API test "
42636 "in C<generator_actions.ml>."
42640 #: ../src/guestfs.pod:2747
42641 msgid "The test environment has 4 block devices:"
42645 #: ../src/guestfs.pod:2751
42646 msgid "C</dev/sda> 500MB"
42647 msgstr "C</dev/sda> 500 МБ"
42650 #: ../src/guestfs.pod:2753
42651 msgid "General block device for testing."
42655 #: ../src/guestfs.pod:2755
42656 msgid "C</dev/sdb> 50MB"
42657 msgstr "C</dev/sdb> 50 МБ"
42660 #: ../src/guestfs.pod:2757
42662 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
42667 #: ../src/guestfs.pod:2760
42668 msgid "C</dev/sdc> 10MB"
42669 msgstr "C</dev/sdc> 10 МБ"
42672 #: ../src/guestfs.pod:2762
42673 msgid "Used in a few tests where two block devices are needed."
42677 #: ../src/guestfs.pod:2764
42678 msgid "C</dev/sdd>"
42679 msgstr "C</dev/sdd>"
42682 #: ../src/guestfs.pod:2766
42683 msgid "ISO with fixed content (see C<images/test.iso>)."
42687 #: ../src/guestfs.pod:2770
42689 "To be able to run the tests in a reasonable amount of time, the libguestfs "
42690 "appliance and block devices are reused between tests. So don't try testing "
42691 "L</guestfs_kill_subprocess> :-x"
42695 #: ../src/guestfs.pod:2774
42697 "Each test starts with an initial scenario, selected using one of the "
42698 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
42699 "initialize the disks mentioned above in a particular way as documented in "
42700 "C<generator_types.ml>. You should not assume anything about the previous "
42701 "contents of other disks that are not initialized."
42705 #: ../src/guestfs.pod:2780
42707 "You can add a prerequisite clause to any individual test. This is a run-"
42708 "time check, which, if it fails, causes the test to be skipped. Useful if "
42709 "testing a command which might not work on all variations of libguestfs "
42710 "builds. A test that has prerequisite of C<Always> means to run "
42715 #: ../src/guestfs.pod:2786
42717 "In addition, packagers can skip individual tests by setting environment "
42718 "variables before running C<make check>."
42722 #: ../src/guestfs.pod:2789
42725 " SKIP_TEST_<CMD>_<NUM>=1\n"
42730 #: ../src/guestfs.pod:2791
42731 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
42735 #: ../src/guestfs.pod:2795
42738 " SKIP_TEST_<CMD>=1\n"
42743 #: ../src/guestfs.pod:2797
42744 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
42748 #: ../src/guestfs.pod:2799
42749 msgid "Packagers can run only certain tests by setting for example:"
42753 #: ../src/guestfs.pod:2801
42756 " TEST_ONLY=\"vfs_type zerofree\"\n"
42761 #: ../src/guestfs.pod:2803
42763 "See C<tests/c-api/tests.c> for more details of how these environment "
42768 #: ../src/guestfs.pod:2806
42769 msgid "DEBUGGING NEW API ACTIONS"
42773 #: ../src/guestfs.pod:2808
42774 msgid "Test new actions work before submitting them."
42778 #: ../src/guestfs.pod:2810
42779 msgid "You can use guestfish to try out new commands."
42783 #: ../src/guestfs.pod:2812
42785 "Debugging the daemon is a problem because it runs inside a minimal "
42786 "environment. However you can fprintf messages in the daemon to stderr, and "
42787 "they will show up if you use C<guestfish -v>."
42791 #: ../src/guestfs.pod:2816
42792 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
42796 #: ../src/guestfs.pod:2818
42798 "Our C source code generally adheres to some basic code-formatting "
42799 "conventions. The existing code base is not totally consistent on this "
42800 "front, but we do prefer that contributed code be formatted similarly. In "
42801 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
42802 "indentation level, and other than that, follow the K&R style."
42806 #: ../src/guestfs.pod:2824
42808 "If you use Emacs, add the following to one of one of your start-up files (e."
42809 "g., ~/.emacs), to help ensure that you get indentation right:"
42813 #: ../src/guestfs.pod:2827
42816 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
42817 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
42818 " (add-hook 'find-file-hook\n"
42819 " '(lambda () (if (and buffer-file-name\n"
42820 " (string-match \"/libguestfs\\\\>\"\n"
42821 " (buffer-file-name))\n"
42822 " (not (string-equal mode-name \"Change Log\"))\n"
42823 " (not (string-equal mode-name \"Makefile\")))\n"
42824 " (setq indent-tabs-mode nil))))\n"
42829 #: ../src/guestfs.pod:2837
42832 " ;;; When editing C sources in libguestfs, use this style.\n"
42833 " (defun libguestfs-c-mode ()\n"
42834 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
42836 " (c-set-style \"K&R\")\n"
42837 " (setq c-indent-level 2)\n"
42838 " (setq c-basic-offset 2))\n"
42839 " (add-hook 'c-mode-hook\n"
42840 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
42841 " (buffer-file-name))\n"
42842 " (libguestfs-c-mode))))\n"
42847 #: ../src/guestfs.pod:2849
42848 msgid "Enable warnings when compiling (and fix any problems this finds):"
42852 #: ../src/guestfs.pod:2852
42855 " ./configure --enable-gcc-warnings\n"
42858 " ./configure --enable-gcc-warnings\n"
42862 #: ../src/guestfs.pod:2854
42863 msgid "Useful targets are:"
42867 #: ../src/guestfs.pod:2856
42870 " make syntax-check # checks the syntax of the C code\n"
42871 " make check # runs the test suite\n"
42876 #: ../src/guestfs.pod:2859
42877 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
42881 #: ../src/guestfs.pod:2861
42883 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
42884 "which are used to do shell quoting."
42888 #: ../src/guestfs.pod:2866
42893 #: ../src/guestfs.pod:2868
42895 "Simple shell quoted string. Any spaces or other shell characters are "
42900 #: ../src/guestfs.pod:2871
42905 #: ../src/guestfs.pod:2873
42907 "Same as C<%Q> except the string is treated as a path which is prefixed by "
42912 #: ../src/guestfs.pod:2880
42915 " asprintf (&cmd, \"cat %R\", path);\n"
42918 " asprintf (&cmd, \"cat %R\", path);\n"
42922 #: ../src/guestfs.pod:2882
42923 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
42927 #: ../src/guestfs.pod:2884
42929 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
42930 "{,r,v,rv}()> functions. These parameters do NOT need to be quoted because "
42931 "they are not passed via the shell (instead, straight to exec). You probably "
42932 "want to use the C<sysroot_path()> function however."
42936 #: ../src/guestfs.pod:2890
42937 msgid "SUBMITTING YOUR NEW API ACTIONS"
42941 #: ../src/guestfs.pod:2892
42943 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
42944 "libguestfs> and CC to L<rjones@redhat.com>."
42948 #: ../src/guestfs.pod:2896
42949 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
42953 #: ../src/guestfs.pod:2898
42954 msgid "We support i18n (gettext anyhow) in the library."
42958 #: ../src/guestfs.pod:2900
42960 "However many messages come from the daemon, and we don't translate those at "
42961 "the moment. One reason is that the appliance generally has all locale files "
42962 "removed from it, because they take up a lot of space. So we'd have to readd "
42963 "some of those, as well as copying our PO files into the appliance."
42967 #: ../src/guestfs.pod:2906
42969 "Debugging messages are never translated, since they are intended for the "
42974 #: ../src/guestfs.pod:2909
42975 msgid "SOURCE CODE SUBDIRECTORIES"
42979 #: ../src/guestfs.pod:2913
42984 #: ../src/guestfs.pod:2915
42985 msgid "L<virt-alignment-scan(1)> command and documentation."
42989 #: ../src/guestfs.pod:2919
42990 msgid "The libguestfs appliance, build scripts and so on."
42994 #: ../src/guestfs.pod:2921
42999 #: ../src/guestfs.pod:2923
43001 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
43006 #: ../src/guestfs.pod:2926
43011 #: ../src/guestfs.pod:2928
43013 "Tools for cloning virtual machines. Currently contains L<virt-sysprep(1)> "
43014 "command and documentation."
43018 #: ../src/guestfs.pod:2931
43020 msgstr "C<contrib>"
43023 #: ../src/guestfs.pod:2933
43024 msgid "Outside contributions, experimental parts."
43028 #: ../src/guestfs.pod:2935
43033 #: ../src/guestfs.pod:2937
43035 "The daemon that runs inside the libguestfs appliance and carries out actions."
43039 #: ../src/guestfs.pod:2940
43044 #: ../src/guestfs.pod:2942
43045 msgid "L<virt-df(1)> command and documentation."
43049 #: ../src/guestfs.pod:2944
43054 #: ../src/guestfs.pod:2946
43055 msgid "L<virt-edit(1)> command and documentation."
43059 #: ../src/guestfs.pod:2948
43060 msgid "C<examples>"
43061 msgstr "C<examples>"
43064 #: ../src/guestfs.pod:2950
43065 msgid "C API example code."
43066 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
43069 #: ../src/guestfs.pod:2952
43074 #: ../src/guestfs.pod:2954
43076 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
43077 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
43078 "L<virt-tar-out(1)>."
43082 #: ../src/guestfs.pod:2958
43087 #: ../src/guestfs.pod:2960
43089 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
43093 #: ../src/guestfs.pod:2962
43094 msgid "C<generator>"
43095 msgstr "C<generator>"
43098 #: ../src/guestfs.pod:2964
43100 "The crucially important generator, used to automatically generate large "
43101 "amounts of boilerplate C code for things like RPC and bindings."
43105 #: ../src/guestfs.pod:2967
43106 msgid "C<inspector>"
43107 msgstr "C<inspector>"
43110 #: ../src/guestfs.pod:2969
43111 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
43115 #: ../src/guestfs.pod:2971
43120 #: ../src/guestfs.pod:2973
43121 msgid "Logo used on the website. The fish is called Arthur by the way."
43125 #: ../src/guestfs.pod:2975
43130 #: ../src/guestfs.pod:2977
43131 msgid "M4 macros used by autoconf."
43135 #: ../src/guestfs.pod:2979
43140 #: ../src/guestfs.pod:2981
43141 msgid "Translations of simple gettext strings."
43142 msgstr "Переклади простих рядків gettext."
43145 #: ../src/guestfs.pod:2983
43147 msgstr "C<po-docs>"
43150 #: ../src/guestfs.pod:2985
43152 "The build infrastructure and PO files for translations of manpages and POD "
43153 "files. Eventually this will be combined with the C<po> directory, but that "
43154 "is rather complicated."
43158 #: ../src/guestfs.pod:2989
43163 #: ../src/guestfs.pod:2991
43164 msgid "L<virt-rescue(1)> command and documentation."
43168 #: ../src/guestfs.pod:2993
43173 #: ../src/guestfs.pod:2995
43174 msgid "L<virt-resize(1)> command and documentation."
43178 #: ../src/guestfs.pod:2997
43179 msgid "C<sparsify>"
43183 #: ../src/guestfs.pod:2999
43184 msgid "L<virt-sparsify(1)> command and documentation."
43188 #: ../src/guestfs.pod:3001
43193 #: ../src/guestfs.pod:3003
43194 msgid "Source code to the C library."
43198 #: ../src/guestfs.pod:3005
43199 msgid "C<test-tool>"
43200 msgstr "C<test-tool>"
43203 #: ../src/guestfs.pod:3007
43205 "Test tool for end users to test if their qemu/kernel combination will work "
43210 #: ../src/guestfs.pod:3010
43212 #| msgid "C<capitests>"
43214 msgstr "C<capitests>"
43217 #: ../src/guestfs.pod:3012
43221 msgstr "6. Перевірка"
43224 #: ../src/guestfs.pod:3014
43229 #: ../src/guestfs.pod:3016
43231 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
43235 #: ../src/guestfs.pod:3018
43240 #: ../src/guestfs.pod:3020
43245 #: ../src/guestfs.pod:3022
43247 msgstr "C<haskell>"
43250 #: ../src/guestfs.pod:3024
43255 #: ../src/guestfs.pod:3026
43260 #: ../src/guestfs.pod:3028
43265 #: ../src/guestfs.pod:3030
43270 #: ../src/guestfs.pod:3032
43275 #: ../src/guestfs.pod:3034
43280 #: ../src/guestfs.pod:3036
43281 msgid "Language bindings."
43282 msgstr "Прив’язки до мов програмування."
43285 #: ../src/guestfs.pod:3040
43286 msgid "MAKING A STABLE RELEASE"
43290 #: ../src/guestfs.pod:3042
43292 "When we make a stable release, there are several steps documented here. See "
43293 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
43298 #: ../src/guestfs.pod:3050
43300 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
43304 #: ../src/guestfs.pod:3055
43305 msgid "Finalize RELEASE-NOTES."
43309 #: ../src/guestfs.pod:3059
43310 msgid "Update ROADMAP."
43314 #: ../src/guestfs.pod:3063
43315 msgid "Run C<src/api-support/update-from-tarballs.sh>."
43319 #: ../src/guestfs.pod:3067
43320 msgid "Push and pull from Transifex."
43324 #: ../src/guestfs.pod:3071
43332 #: ../src/guestfs.pod:3073
43333 msgid "to push the latest POT files to Transifex. Then run:"
43337 #: ../src/guestfs.pod:3075
43345 #: ../src/guestfs.pod:3077
43346 msgid "which is a wrapper to pull the latest translated C<*.po> files."
43350 #: ../src/guestfs.pod:3081
43352 "Create new stable and development directories under L<http://libguestfs.org/"
43357 #: ../src/guestfs.pod:3086
43358 msgid "Create the branch in git:"
43362 #: ../src/guestfs.pod:3088
43365 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
43366 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
43367 " git branch stable-1.XX\n"
43368 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
43373 #: ../src/guestfs.pod:3095
43378 #: ../src/guestfs.pod:3097
43379 msgid "PROTOCOL LIMITS"
43380 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
43383 #: ../src/guestfs.pod:3099
43385 "Internally libguestfs uses a message-based protocol to pass API calls and "
43386 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
43387 "plenty more detail about this). The maximum message size used by the "
43388 "protocol is slightly less than 4 MB. For some API calls you may need to be "
43389 "aware of this limit. The API calls which may be affected are individually "
43390 "documented, with a link back to this section of the documentation."
43394 #: ../src/guestfs.pod:3107
43396 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
43397 "a simple string. Because this string is at some point internally encoded as "
43398 "a message, the maximum size that it can return is slightly under 4 MB. If "
43399 "the requested file is larger than this then you will get an error."
43403 #: ../src/guestfs.pod:3113
43405 "In order to transfer large files into and out of the guest filesystem, you "
43406 "need to use particular calls that support this. The sections L</UPLOADING> "
43407 "and L</DOWNLOADING> document how to do this."
43411 #: ../src/guestfs.pod:3117
43413 "You might also consider mounting the disk image using our FUSE filesystem "
43414 "support (L<guestmount(1)>)."
43418 #: ../src/guestfs.pod:3120
43419 msgid "MAXIMUM NUMBER OF DISKS"
43423 #: ../src/guestfs.pod:3122
43424 msgid "When using virtio disks (the default) the current limit is B<25> disks."
43428 #: ../src/guestfs.pod:3125
43430 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
43431 "slots. However febootstrap only understands disks with names C</dev/vda> "
43432 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
43437 #: ../src/guestfs.pod:3130
43439 "We are working to substantially raise this limit in future versions but it "
43440 "requires complex changes to qemu."
43444 #: ../src/guestfs.pod:3133
43446 "In future versions of libguestfs it should also be possible to \"hot plug\" "
43447 "disks (add and remove disks after calling L</guestfs_launch>). This also "
43448 "requires changes to qemu."
43452 #: ../src/guestfs.pod:3137
43453 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
43457 #: ../src/guestfs.pod:3139
43458 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
43462 #: ../src/guestfs.pod:3141
43464 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
43465 "vda>, and C</dev/vda1> through C</dev/vda15>)."
43469 #: ../src/guestfs.pod:3144
43471 "If you attach a disk with more than 15 partitions, the extra partitions are "
43472 "ignored by libguestfs."
43476 #: ../src/guestfs.pod:3147
43477 msgid "MAXIMUM SIZE OF A DISK"
43481 #: ../src/guestfs.pod:3149
43482 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
43486 #: ../src/guestfs.pod:3151
43488 "We have tested block devices up to 1 exabyte (2**60 or "
43489 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
43494 #: ../src/guestfs.pod:3155
43496 "Although libguestfs probably does not impose any limit, the underlying host "
43497 "storage will. If you store disk images on a host ext4 filesystem, then the "
43498 "maximum size will be limited by the maximum ext4 file size (currently 16 "
43499 "TB). If you store disk images as host logical volumes then you are limited "
43500 "by the maximum size of an LV."
43504 #: ../src/guestfs.pod:3161
43506 "For the hugest disk image files, we recommend using XFS on the host for "
43511 #: ../src/guestfs.pod:3164
43512 msgid "MAXIMUM SIZE OF A PARTITION"
43516 #: ../src/guestfs.pod:3166
43518 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
43519 "numbers. Assuming a 512 byte sector size, this means that MBR cannot "
43520 "address a partition located beyond 2 TB on the disk."
43524 #: ../src/guestfs.pod:3170
43526 "It is recommended that you use GPT partitions on disks which are larger than "
43527 "this size. GPT uses 64 bit sector numbers and so can address partitions "
43528 "which are theoretically larger than the largest disk we could support."
43532 #: ../src/guestfs.pod:3175
43533 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
43537 #: ../src/guestfs.pod:3177
43539 "This depends on the filesystem type. libguestfs itself does not impose any "
43540 "known limit. Consult Wikipedia or the filesystem documentation to find out "
43541 "what these limits are."
43545 #: ../src/guestfs.pod:3181
43546 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
43550 #: ../src/guestfs.pod:3183
43552 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
43553 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
43554 "uploads and downloads."
43558 #: ../src/guestfs.pod:3187
43559 msgid "INSPECTION LIMITS"
43563 #: ../src/guestfs.pod:3189
43565 "The inspection code has several arbitrary limits on things like the size of "
43566 "Windows Registry hive it will read, and the length of product name. These "
43567 "are intended to stop a malicious guest from consuming arbitrary amounts of "
43568 "memory and disk space on the host, and should not be reached in practice. "
43569 "See the source code for more information."
43573 #: ../src/guestfs.pod:3215
43575 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
43576 "effect as calling C<guestfs_set_verbose (g, 1)>."
43580 #: ../src/guestfs.pod:3227
43582 "Set the path that libguestfs uses to search for a supermin appliance. See "
43583 "the discussion of paths in section L</PATH> above."
43587 #: ../src/guestfs.pod:3236
43588 msgid "See also L</QEMU WRAPPERS> above."
43592 #: ../src/guestfs.pod:3240
43594 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
43595 "effect as calling C<guestfs_set_trace (g, 1)>."
43599 #: ../src/guestfs.pod:3258
43601 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
43602 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
43603 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
43604 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
43605 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
43606 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
43607 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
43608 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<guestfs-"
43609 "testing(1)>, L<qemu(1)>, L<febootstrap(1)>, L<febootstrap-supermin-helper(8)"
43610 ">, L<hivex(3)>, L<stap(1)>, L<http://libguestfs.org/>."
43614 #: ../src/guestfs.pod:3295
43616 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
43617 "(8)>, L<disktype(1)>."
43621 #: ../src/guestfs.pod:3302 ../tools/virt-make-fs.pl:571
43622 #: ../tools/virt-win-reg.pl:772
43627 #: ../src/guestfs.pod:3304
43628 msgid "To get a list of bugs against libguestfs use this link:"
43630 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
43634 #: ../src/guestfs.pod:3306
43636 "L<https://bugzilla.redhat.com/buglist.cgi?"
43637 "component=libguestfs&product=Virtualization+Tools>"
43639 "L<https://bugzilla.redhat.com/buglist.cgi?"
43640 "component=libguestfs&product=Virtualization+Tools>"
43643 #: ../src/guestfs.pod:3308
43644 msgid "To report a new bug against libguestfs use this link:"
43645 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
43648 #: ../src/guestfs.pod:3310
43650 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
43651 "component=libguestfs&product=Virtualization+Tools>"
43653 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
43654 "component=libguestfs&product=Virtualization+Tools>"
43657 #: ../src/guestfs.pod:3312
43658 msgid "When reporting a bug, please check:"
43662 #: ../src/guestfs.pod:3318
43663 msgid "That the bug hasn't been reported already."
43667 #: ../src/guestfs.pod:3322
43668 msgid "That you are testing a recent version."
43672 #: ../src/guestfs.pod:3326
43673 msgid "Describe the bug accurately, and give a way to reproduce it."
43677 #: ../src/guestfs.pod:3330
43679 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
43684 #: ../test-tool/libguestfs-test-tool.pod:5
43685 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
43689 #: ../test-tool/libguestfs-test-tool.pod:9
43692 " libguestfs-test-tool [--options]\n"
43697 #: ../test-tool/libguestfs-test-tool.pod:13
43699 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
43700 "to check basic libguestfs functionality is working. This is needed because "
43701 "libguestfs occasionally breaks for reasons beyond our control: usually "
43702 "because of changes in the underlying qemu or kernel packages, or the host "
43707 #: ../test-tool/libguestfs-test-tool.pod:19
43708 msgid "If you suspect a problem in libguestfs, then just run:"
43712 #: ../test-tool/libguestfs-test-tool.pod:21
43715 " libguestfs-test-tool\n"
43720 #: ../test-tool/libguestfs-test-tool.pod:23
43721 msgid "It will print lots of diagnostic messages."
43725 #: ../test-tool/libguestfs-test-tool.pod:25
43726 msgid "If it runs to completion successfully, you will see this near the end:"
43730 #: ../test-tool/libguestfs-test-tool.pod:27
43733 " ===== TEST FINISHED OK =====\n"
43738 #: ../test-tool/libguestfs-test-tool.pod:29
43739 msgid "and the test tool will exit with code 0."
43743 #: ../test-tool/libguestfs-test-tool.pod:31
43745 "If it fails (and/or exits with non-zero error code), please paste the "
43746 "I<complete, unedited> output of the test tool into a bug report. More "
43747 "information about reporting bugs can be found on the L<http://libguestfs.org/"
43752 #: ../test-tool/libguestfs-test-tool.pod:42
43753 msgid "Display short usage information and exit."
43757 #: ../test-tool/libguestfs-test-tool.pod:44
43758 msgid "B<--qemu qemu_binary>"
43762 #: ../test-tool/libguestfs-test-tool.pod:46
43764 "If you have downloaded another qemu binary, point this option at the full "
43765 "path of the binary to try it."
43769 #: ../test-tool/libguestfs-test-tool.pod:49
43770 msgid "B<--qemudir qemu_source_dir>"
43774 #: ../test-tool/libguestfs-test-tool.pod:51
43776 "If you have compiled qemu from source, point this option at the source "
43777 "directory to try it."
43781 #: ../test-tool/libguestfs-test-tool.pod:54
43786 #: ../test-tool/libguestfs-test-tool.pod:56
43787 msgid "B<--timeout N>"
43791 #: ../test-tool/libguestfs-test-tool.pod:58
43793 "Set the launch timeout to C<N> seconds. The default is 600 seconds (10 "
43794 "minutes) which does not usually need to be adjusted."
43798 #: ../test-tool/libguestfs-test-tool.pod:63
43799 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
43803 #: ../test-tool/libguestfs-test-tool.pod:65
43805 "If you have compiled another version of qemu from source and would like to "
43806 "try that, then you can use the I<--qemudir> option to point to the qemu "
43807 "source directory."
43811 #: ../test-tool/libguestfs-test-tool.pod:69
43813 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
43814 "option to point to the binary."
43818 #: ../test-tool/libguestfs-test-tool.pod:72
43820 "Note when using these options, you can ignore the business of qemu wrapper "
43821 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
43822 "wrapper script for you if one is needed."
43826 #: ../test-tool/libguestfs-test-tool.pod:76
43827 msgid "TRYING OUT A DIFFERENT KERNEL"
43831 #: ../test-tool/libguestfs-test-tool.pod:78
43833 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
43834 "libguestfs tries. You do this by setting the environment variables "
43835 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
43839 #: ../test-tool/libguestfs-test-tool.pod:82
43841 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
43846 #: ../test-tool/libguestfs-test-tool.pod:85
43847 msgid "SELF-DIAGNOSIS"
43851 #: ../test-tool/libguestfs-test-tool.pod:87
43853 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
43854 "produced by libguestfs-test-tool and/or possible errors."
43858 #: ../test-tool/libguestfs-test-tool.pod:92
43860 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
43861 "I<1> if there was an error."
43865 #: ../test-tool/libguestfs-test-tool.pod:97
43867 "For the full list of environment variables which may affect libguestfs, "
43868 "please see the L<guestfs(3)> manual page."
43872 #: ../test-tool/libguestfs-test-tool.pod:102
43873 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
43877 #: ../tools/virt-list-filesystems.pl:32
43879 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
43883 #: ../tools/virt-list-filesystems.pl:36
43886 " virt-list-filesystems [--options] domname\n"
43891 #: ../tools/virt-list-filesystems.pl:38
43894 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
43899 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
43901 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
43906 #: ../tools/virt-list-filesystems.pl:45
43908 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
43909 "are contained in a virtual machine or disk image."
43913 #: ../tools/virt-list-filesystems.pl:49
43915 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
43916 "functionality. For more complex cases you should look at the L<guestfish(1)"
43921 #: ../tools/virt-list-filesystems.pl:112
43923 "With this option, C<virt-list-filesystems> displays the type of each "
43924 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
43928 #: ../tools/virt-list-filesystems.pl:119
43933 #: ../tools/virt-list-filesystems.pl:123
43935 "Normally we only show mountable filesystems. If this option is given then "
43936 "swap devices are shown too."
43940 #: ../tools/virt-list-filesystems.pl:197
43942 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
43943 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
43944 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43946 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
43947 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
43948 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43951 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
43952 msgid "Copyright (C) 2009 Red Hat Inc."
43953 msgstr "© Red Hat Inc., 2009"
43956 #: ../tools/virt-list-partitions.pl:32
43958 "virt-list-partitions - List partitions in a virtual machine or disk image"
43962 #: ../tools/virt-list-partitions.pl:36
43965 " virt-list-partitions [--options] domname\n"
43968 " virt-list-partitions [--параметри] назва_домену\n"
43972 #: ../tools/virt-list-partitions.pl:38
43975 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
43978 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
43982 #: ../tools/virt-list-partitions.pl:45
43984 "C<virt-list-partitions> is a command line tool to list the partitions that "
43985 "are contained in a virtual machine or disk image. It is mainly useful as a "
43986 "first step to using L<virt-resize(1)>."
43990 #: ../tools/virt-list-partitions.pl:50
43992 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
43993 "functionality. For more complex cases you should look at the L<guestfish(1)"
43998 #: ../tools/virt-list-partitions.pl:113
43999 msgid "Show sizes in human-readable form (eg. \"1G\")."
44003 #: ../tools/virt-list-partitions.pl:123
44005 "With this option, C<virt-list-partitions> displays the type and size of each "
44006 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
44010 #: ../tools/virt-list-partitions.pl:130
44015 #: ../tools/virt-list-partitions.pl:132
44017 msgstr "B<--total>"
44020 #: ../tools/virt-list-partitions.pl:134
44022 "Display the total size of each block device (as a separate row or rows)."
44026 #: ../tools/virt-list-partitions.pl:267
44028 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
44029 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
44030 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
44032 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
44033 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
44034 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
44037 #: ../tools/virt-list-partitions.pl:283
44038 msgid "Copyright (C) 2009-2010 Red Hat Inc."
44039 msgstr "© Red Hat Inc., 2009–2010"
44042 #: ../tools/virt-make-fs.pl:37
44043 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
44047 #: ../tools/virt-make-fs.pl:41
44050 " virt-make-fs [--options] input.tar output.img\n"
44055 #: ../tools/virt-make-fs.pl:43
44058 " virt-make-fs [--options] input.tar.gz output.img\n"
44063 #: ../tools/virt-make-fs.pl:45
44066 " virt-make-fs [--options] directory output.img\n"
44071 #: ../tools/virt-make-fs.pl:49
44073 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
44074 "archive or some files in a directory. It is similar to tools like L<mkisofs"
44075 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, it can "
44076 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
44077 "you want to attach these filesystems to existing virtual machines (eg. to "
44078 "import large amounts of read-only data to a VM)."
44082 #: ../tools/virt-make-fs.pl:57
44083 msgid "Basic usage is:"
44087 #: ../tools/virt-make-fs.pl:59
44090 " virt-make-fs input output.img\n"
44095 #: ../tools/virt-make-fs.pl:61
44097 "where C<input> is either a directory containing files that you want to add, "
44098 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
44099 "C<output.img> is a disk image. The input type is detected automatically. "
44100 "The output disk image defaults to a raw ext2 sparse image unless you specify "
44101 "extra flags (see L</OPTIONS> below)."
44105 #: ../tools/virt-make-fs.pl:67
44106 msgid "FILESYSTEM TYPE"
44107 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
44110 #: ../tools/virt-make-fs.pl:69
44112 "The default filesystem type is C<ext2>. Just about any filesystem type that "
44113 "libguestfs supports can be used (but I<not> read-only formats like "
44114 "ISO9660). Here are some of the more common choices:"
44118 #: ../tools/virt-make-fs.pl:75
44123 #: ../tools/virt-make-fs.pl:77
44125 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
44126 "you are not going to use the filesystem in a way that requires the journal, "
44127 "then this is just wasted overhead."
44131 #: ../tools/virt-make-fs.pl:81
44132 msgid "I<ntfs> or I<vfat>"
44133 msgstr "I<ntfs> або I<vfat>"
44136 #: ../tools/virt-make-fs.pl:83
44137 msgid "Useful if exporting data to a Windows guest."
44141 #: ../tools/virt-make-fs.pl:85
44143 "I<Note for vfat>: The tar archive or local directory must only contain files "
44144 "which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
44145 "program running within libguestfs is unable to change the ownership of non-"
44146 "root files, since vfat itself does not support this."
44150 #: ../tools/virt-make-fs.pl:90
44155 #: ../tools/virt-make-fs.pl:92
44157 "Lower overhead than C<ext2>, but certain limitations on filename length and "
44158 "total filesystem size."
44162 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
44163 #: ../tools/virt-make-fs.pl:149
44168 #: ../tools/virt-make-fs.pl:99
44171 " virt-make-fs --type=minix input minixfs.img\n"
44176 #: ../tools/virt-make-fs.pl:101
44177 msgid "TO PARTITION OR NOT TO PARTITION"
44181 #: ../tools/virt-make-fs.pl:103
44182 msgid "Optionally virt-make-fs can add a partition table to the output disk."
44186 #: ../tools/virt-make-fs.pl:105
44188 "Adding a partition can make the disk image more compatible with certain "
44189 "virtualized operating systems which don't expect to see a filesystem "
44190 "directly located on a block device (Linux doesn't care and will happily "
44191 "handle both types)."
44195 #: ../tools/virt-make-fs.pl:110
44197 "On the other hand, if you have a partition table then the output image is no "
44198 "longer a straight filesystem. For example you cannot run L<fsck(8)> "
44199 "directly on a partitioned disk image. (However libguestfs tools such as "
44200 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
44204 #: ../tools/virt-make-fs.pl:118
44205 msgid "Add an MBR partition:"
44209 #: ../tools/virt-make-fs.pl:120
44212 " virt-make-fs --partition -- input disk.img\n"
44217 #: ../tools/virt-make-fs.pl:122
44219 "If the output disk image could be terabyte-sized or larger, it's better to "
44220 "use an EFI/GPT-compatible partition table:"
44224 #: ../tools/virt-make-fs.pl:125
44227 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
44232 #: ../tools/virt-make-fs.pl:127
44233 msgid "EXTRA SPACE"
44237 #: ../tools/virt-make-fs.pl:129
44239 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
44240 "the files that it contains, but might have extra space. Depending on how "
44241 "you are going to use the output, you might think this extra space is wasted "
44242 "and want to minimize it, or you might want to leave space so that more files "
44243 "can be added later. Virt-make-fs defaults to minimizing the extra space, "
44244 "but you can use the I<--size> flag to leave space in the filesystem if you "
44249 #: ../tools/virt-make-fs.pl:137
44251 "An alternative way to leave extra space but not make the output image any "
44252 "bigger is to use an alternative disk image format (instead of the default "
44253 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
44254 "image format (check your hypervisor supports this before using it). This "
44255 "allows you to choose a large I<--size> but the extra space won't actually be "
44256 "allocated in the image until you try to store something in it."
44260 #: ../tools/virt-make-fs.pl:145
44262 "Don't forget that you can also use local commands including L<resize2fs(8)> "
44263 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
44264 "to build another image from scratch."
44268 #: ../tools/virt-make-fs.pl:151
44271 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
44274 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
44278 #: ../tools/virt-make-fs.pl:179
44279 msgid "Enable debugging information."
44280 msgstr "Увімкнути виведення діагностичних даних."
44283 #: ../tools/virt-make-fs.pl:185
44284 msgid "B<--size=E<lt>NE<gt>>"
44285 msgstr "B<--size=E<lt>NE<gt>>"
44288 #: ../tools/virt-make-fs.pl:187
44289 msgid "B<--size=+E<lt>NE<gt>>"
44290 msgstr "B<--size=+E<lt>NE<gt>>"
44293 #: ../tools/virt-make-fs.pl:189
44294 msgid "B<-s E<lt>NE<gt>>"
44295 msgstr "B<-s E<lt>NE<gt>>"
44298 #: ../tools/virt-make-fs.pl:191
44299 msgid "B<-s +E<lt>NE<gt>>"
44300 msgstr "B<-s +E<lt>NE<gt>>"
44303 #: ../tools/virt-make-fs.pl:193
44305 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
44309 #: ../tools/virt-make-fs.pl:196
44311 "If this option is I<not> given, then the output image will be just large "
44312 "enough to contain all the files, with not much wasted space."
44316 #: ../tools/virt-make-fs.pl:199
44318 "To choose a fixed size output disk, specify an absolute number followed by b/"
44319 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
44320 "Petabytes or Exabytes. This must be large enough to contain all the input "
44321 "files, else you will get an error."
44325 #: ../tools/virt-make-fs.pl:204
44327 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
44328 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
44329 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
44330 "the input files, and (approximately) an extra 200 MB free space."
44334 #: ../tools/virt-make-fs.pl:210
44336 "Note that virt-make-fs estimates free space, and therefore will not produce "
44337 "filesystems containing precisely the free space requested. (It is much more "
44338 "expensive and time-consuming to produce a filesystem which has precisely the "
44339 "desired free space)."
44343 #: ../tools/virt-make-fs.pl:219
44344 msgid "B<--format=E<lt>fmtE<gt>>"
44348 #: ../tools/virt-make-fs.pl:221
44349 msgid "B<-F E<lt>fmtE<gt>>"
44353 #: ../tools/virt-make-fs.pl:223
44354 msgid "Choose the output disk image format."
44358 #: ../tools/virt-make-fs.pl:225
44359 msgid "The default is C<raw> (raw sparse disk image)."
44363 #: ../tools/virt-make-fs.pl:227
44365 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
44366 "that would really make sense here is C<qcow2>."
44370 #: ../tools/virt-make-fs.pl:234
44371 msgid "B<--type=E<lt>fsE<gt>>"
44375 #: ../tools/virt-make-fs.pl:236
44376 msgid "B<-t E<lt>fsE<gt>>"
44380 #: ../tools/virt-make-fs.pl:238
44381 msgid "Choose the output filesystem type."
44385 #: ../tools/virt-make-fs.pl:240
44386 msgid "The default is C<ext2>."
44387 msgstr "Типовим значенням є C<ext2>."
44390 #: ../tools/virt-make-fs.pl:242
44392 "Any filesystem which is supported read-write by libguestfs can be used here."
44396 #: ../tools/virt-make-fs.pl:249
44397 msgid "B<--partition>"
44398 msgstr "B<--partition>"
44401 #: ../tools/virt-make-fs.pl:251
44402 msgid "B<--partition=E<lt>parttypeE<gt>>"
44406 #: ../tools/virt-make-fs.pl:253
44408 "If specified, this flag adds an MBR partition table to the output disk image."
44412 #: ../tools/virt-make-fs.pl:256
44414 "You can change the partition table type, eg. I<--partition=gpt> for large "
44419 #: ../tools/virt-make-fs.pl:259
44421 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
44422 "might consider the next parameter to be the partition type. For example:"
44426 #: ../tools/virt-make-fs.pl:263
44429 " virt-make-fs --partition input.tar output.img\n"
44434 #: ../tools/virt-make-fs.pl:265
44436 "would cause virt-make-fs to think you wanted to use a partition type of "
44437 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
44438 "dash) between options and the input and output arguments:"
44442 #: ../tools/virt-make-fs.pl:269
44445 " virt-make-fs --partition -- input.tar output.img\n"
44450 #: ../tools/virt-make-fs.pl:271
44451 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
44455 #: ../tools/virt-make-fs.pl:559
44457 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
44458 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
44459 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
44461 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
44462 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
44463 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
44466 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
44468 "When reporting bugs, please enable debugging and capture the I<complete> "
44473 #: ../tools/virt-make-fs.pl:576
44476 " export LIBGUESTFS_DEBUG=1\n"
44477 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
44480 " export LIBGUESTFS_DEBUG=1\n"
44481 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
44485 #: ../tools/virt-make-fs.pl:579
44487 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
44492 #: ../tools/virt-tar.pl:33
44493 msgid "virt-tar - Extract or upload files to a virtual machine"
44497 #: ../tools/virt-tar.pl:37
44500 " virt-tar [--options] -x domname directory tarball\n"
44505 #: ../tools/virt-tar.pl:39
44508 " virt-tar [--options] -u domname tarball directory\n"
44513 #: ../tools/virt-tar.pl:41
44516 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
44521 #: ../tools/virt-tar.pl:43
44524 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
44529 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
44534 #: ../tools/virt-tar.pl:47
44536 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
44537 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
44541 #: ../tools/virt-tar.pl:52
44542 msgid "Download C</home> from the VM into a local tarball:"
44546 #: ../tools/virt-tar.pl:54
44549 " virt-tar -x domname /home home.tar\n"
44554 #: ../tools/virt-tar.pl:56
44557 " virt-tar -zx domname /home home.tar.gz\n"
44562 #: ../tools/virt-tar.pl:58
44563 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
44567 #: ../tools/virt-tar.pl:60
44570 " virt-tar -u domname uploadstuff.tar /tmp\n"
44575 #: ../tools/virt-tar.pl:62
44578 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
44583 #: ../tools/virt-tar.pl:66
44585 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
44586 "virtual machines. If you do this, you risk disk corruption in the VM. "
44587 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
44591 #: ../tools/virt-tar.pl:71
44593 "You can use I<-x> (extract) on live virtual machines, but you might get "
44594 "inconsistent results or errors if there is filesystem activity inside the "
44595 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
44596 "work, but the only way to guarantee consistent results is if the virtual "
44597 "machine is shut down."
44601 #: ../tools/virt-tar.pl:79
44603 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
44604 "parts of a guest filesystem. There are many possibilities: making backups, "
44605 "uploading data files, snooping on guest activity, fixing or customizing "
44610 #: ../tools/virt-tar.pl:84
44612 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
44613 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
44614 "should look at the L<guestfish(1)> tool."
44618 #: ../tools/virt-tar.pl:88
44620 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
44621 "its contents (recursively) from the virtual machine into a local tarball. "
44622 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
44623 "virtual machine. You cannot use these two options together."
44627 #: ../tools/virt-tar.pl:94
44629 "In addition, you may need to use the I<-z> (gZip) option to enable "
44630 "compression. When uploading, you have to specify I<-z> if the upload file "
44631 "is compressed because virt-tar won't detect this on its own."
44635 #: ../tools/virt-tar.pl:98
44637 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
44638 "example it cannot do PKZip files or bzip2 compression. If you want that "
44639 "then you'll have to rebuild the tarballs yourself. (This is a limitation of "
44640 "the L<libguestfs(3)> API)."
44644 #: ../tools/virt-tar.pl:160
44645 msgid "B<--extract>"
44646 msgstr "B<--extract>"
44649 #: ../tools/virt-tar.pl:162
44650 msgid "B<--download>"
44651 msgstr "B<--download>"
44654 #: ../tools/virt-tar.pl:164
44659 #: ../tools/virt-tar.pl:166
44660 msgid "B<--upload>"
44661 msgstr "B<--upload>"
44664 #: ../tools/virt-tar.pl:168
44666 "Use I<-x> to extract (download) a directory from a virtual machine to a "
44671 #: ../tools/virt-tar.pl:171
44673 "Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
44674 "Please read the L</WARNING> section above before using this option."
44678 #: ../tools/virt-tar.pl:175
44679 msgid "You must specify exactly one of these options."
44683 #: ../tools/virt-tar.pl:181
44688 #: ../tools/virt-tar.pl:183
44693 #: ../tools/virt-tar.pl:185
44694 msgid "Specify that the input or output tarball is gzip-compressed."
44698 #: ../tools/virt-tar.pl:298
44700 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
44701 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
44702 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
44705 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
44706 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
44707 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
44711 #: ../tools/virt-win-reg.pl:37
44713 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
44717 #: ../tools/virt-win-reg.pl:41
44720 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
44725 #: ../tools/virt-win-reg.pl:43
44728 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
44733 #: ../tools/virt-win-reg.pl:45
44736 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
44741 #: ../tools/virt-win-reg.pl:47
44744 " virt-win-reg --merge domname [input.reg ...]\n"
44749 #: ../tools/virt-win-reg.pl:49
44752 " virt-win-reg [--options] disk.img ... # instead of domname\n"
44757 #: ../tools/virt-win-reg.pl:53
44759 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
44760 "virtual machines. If you do this, you I<will> get irreversible disk "
44761 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
44762 "but doesn't catch all cases."
44766 #: ../tools/virt-win-reg.pl:58
44768 "Modifying the Windows Registry is an inherently risky operation. The format "
44769 "is deliberately obscure and undocumented, and Registry changes can leave the "
44770 "system unbootable. Therefore when using the I<--merge> option, make sure "
44771 "you have a reliable backup first."
44775 #: ../tools/virt-win-reg.pl:65
44777 "This program can export and merge Windows Registry entries from a Windows "
44782 #: ../tools/virt-win-reg.pl:68
44784 "The first parameter is the libvirt guest name or the raw disk image of a "
44789 #: ../tools/virt-win-reg.pl:71
44791 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
44792 "exported (recursively). For example:"
44796 #: ../tools/virt-win-reg.pl:74
44799 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
44802 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
44806 #: ../tools/virt-win-reg.pl:76
44808 "You can also display single values from within registry keys, for example:"
44812 #: ../tools/virt-win-reg.pl:79
44815 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
44816 " $ virt-win-reg Windows7 $cvkey ProductName\n"
44817 " Windows 7 Enterprise\n"
44820 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
44821 " $ virt-win-reg Windows7 $cvkey ProductName\n"
44822 " Windows 7 Enterprise\n"
44826 #: ../tools/virt-win-reg.pl:83
44828 "With I<--merge>, you can merge a textual regedit file into the Windows "
44833 #: ../tools/virt-win-reg.pl:86
44836 " $ virt-win-reg --merge Windows7 changes.reg\n"
44839 " $ virt-win-reg --merge Windows7 changes.reg\n"
44843 #: ../tools/virt-win-reg.pl:90
44845 "This program is only meant for simple access to the registry. If you want "
44846 "to do complicated things with the registry, we suggest you download the "
44847 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
44848 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
44849 "L<hivexregedit(1)>."
44853 #: ../tools/virt-win-reg.pl:159
44855 msgstr "B<--merge>"
44858 #: ../tools/virt-win-reg.pl:161
44860 "In merge mode, this merges a textual regedit file into the Windows Registry "
44861 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
44862 "displays or exports Registry entries instead."
44866 #: ../tools/virt-win-reg.pl:165
44868 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
44869 "result in disk corruption. However exporting (without this flag) is always "
44874 #: ../tools/virt-win-reg.pl:173
44875 msgid "B<--encoding> UTF-16LE|ASCII"
44876 msgstr "B<--encoding> UTF-16LE|ASCII"
44879 #: ../tools/virt-win-reg.pl:175
44881 "When merging (only), you may need to specify the encoding for strings to be "
44882 "used in the hive file. This is explained in detail in L<Win::Hivex::Regedit"
44883 "(3)/ENCODING STRINGS>."
44887 #: ../tools/virt-win-reg.pl:179
44889 "The default is to use UTF-16LE, which should work with recent versions of "
44894 #: ../tools/virt-win-reg.pl:186
44895 msgid "B<--unsafe-printable-strings>"
44896 msgstr "B<--unsafe-printable-strings>"
44899 #: ../tools/virt-win-reg.pl:188
44901 "When exporting (only), assume strings are UTF-16LE and print them as strings "
44902 "instead of hex sequences. Remove the final zero codepoint from strings if "
44907 #: ../tools/virt-win-reg.pl:192
44909 "This is unsafe and does not preserve the fidelity of strings in the original "
44910 "Registry for various reasons:"
44914 #: ../tools/virt-win-reg.pl:199
44916 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
44917 "other encodings will be corrupted by this transformation."
44921 #: ../tools/virt-win-reg.pl:204
44923 "Assumes that everything which has type 1 or 2 is really a string and that "
44924 "everything else is not a string, but the type field in real Registries is "
44929 #: ../tools/virt-win-reg.pl:210
44931 "Loses information about whether a zero codepoint followed the string in the "
44936 #: ../tools/virt-win-reg.pl:215
44938 "This all happens because the Registry itself contains no information about "
44939 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
44943 #: ../tools/virt-win-reg.pl:219
44945 "You should only use this option for quick hacking and debugging of the "
44946 "Registry contents, and I<never> use it if the output is going to be passed "
44947 "into another program or stored in another Registry."
44951 #: ../tools/virt-win-reg.pl:556
44952 msgid "SUPPORTED SYSTEMS"
44953 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
44956 #: ../tools/virt-win-reg.pl:558
44958 "The program currently supports Windows NT-derived guests starting with "
44959 "Windows XP through to at least Windows 7."
44963 #: ../tools/virt-win-reg.pl:561
44964 msgid "The following Registry keys are supported:"
44968 #: ../tools/virt-win-reg.pl:565
44969 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
44970 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
44973 #: ../tools/virt-win-reg.pl:567
44974 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
44975 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
44978 #: ../tools/virt-win-reg.pl:569
44979 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
44980 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
44983 #: ../tools/virt-win-reg.pl:571
44984 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
44985 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
44988 #: ../tools/virt-win-reg.pl:573
44989 msgid "C<HKEY_USERS\\.DEFAULT>"
44990 msgstr "C<HKEY_USERS\\.DEFAULT>"
44993 #: ../tools/virt-win-reg.pl:575
44994 msgid "C<HKEY_USERS\\I<SID>>"
44995 msgstr "C<HKEY_USERS\\I<SID>>"
44998 #: ../tools/virt-win-reg.pl:577
44999 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
45003 #: ../tools/virt-win-reg.pl:579
45004 msgid "C<HKEY_USERS\\I<username>>"
45005 msgstr "C<HKEY_USERS\\I<користувач>>"
45008 #: ../tools/virt-win-reg.pl:581
45010 "where I<username> is a local user name (this is a libguestfs extension)."
45014 #: ../tools/virt-win-reg.pl:585
45016 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
45021 #: ../tools/virt-win-reg.pl:588
45023 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
45024 "supported (there is no \"current user\")."
45028 #: ../tools/virt-win-reg.pl:591
45033 #: ../tools/virt-win-reg.pl:593
45035 "C<virt-win-reg> expects that regedit files have already been reencoded in "
45036 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
45037 "style line endings. Since Windows regedit files are often in UTF-16LE with "
45038 "Windows-style line endings, you may need to reencode the whole file before "
45039 "or after processing."
45043 #: ../tools/virt-win-reg.pl:599
45045 "To reencode a file from Windows format to Linux (before processing it with "
45046 "the I<--merge> option), you would do something like this:"
45050 #: ../tools/virt-win-reg.pl:602
45053 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
45056 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
45060 #: ../tools/virt-win-reg.pl:604
45062 "To go in the opposite direction, after exporting and before sending the file "
45063 "to a Windows user, do something like this:"
45067 #: ../tools/virt-win-reg.pl:607
45070 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
45073 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
45077 #: ../tools/virt-win-reg.pl:609
45078 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
45082 #: ../tools/virt-win-reg.pl:611
45084 "If you are unsure about the current encoding, use the L<file(1)> command. "
45085 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
45086 "style (CRLF) line endings, like this:"
45090 #: ../tools/virt-win-reg.pl:615
45093 " $ file software.reg\n"
45094 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
45095 " with CRLF line terminators\n"
45100 #: ../tools/virt-win-reg.pl:619
45101 msgid "This file would need conversion before you could I<--merge> it."
45105 #: ../tools/virt-win-reg.pl:621
45106 msgid "CurrentControlSet etc."
45110 #: ../tools/virt-win-reg.pl:623
45112 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
45113 "Registry at the level of the hive file, and therefore you cannot modify "
45118 #: ../tools/virt-win-reg.pl:627
45120 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
45121 "circumstances it might refer to another control set. The way to find out is "
45122 "to look at the C<HKLM\\SYSTEM\\Select> key:"
45126 #: ../tools/virt-win-reg.pl:631
45129 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
45130 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
45131 " \"Current\"=dword:00000001\n"
45132 " \"Default\"=dword:00000001\n"
45133 " \"Failed\"=dword:00000000\n"
45134 " \"LastKnownGood\"=dword:00000002\n"
45137 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
45138 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
45139 " \"Current\"=dword:00000001\n"
45140 " \"Default\"=dword:00000001\n"
45141 " \"Failed\"=dword:00000000\n"
45142 " \"LastKnownGood\"=dword:00000002\n"
45146 #: ../tools/virt-win-reg.pl:638
45147 msgid "\"Current\" is the one which Windows will choose when it boots."
45151 #: ../tools/virt-win-reg.pl:640
45153 "Similarly, other C<Current...> keys in the path may need to be replaced."
45157 #: ../tools/virt-win-reg.pl:643
45158 msgid "DELETING REGISTRY KEYS AND VALUES"
45162 #: ../tools/virt-win-reg.pl:645
45163 msgid "To delete a whole registry key, use the syntax:"
45167 #: ../tools/virt-win-reg.pl:647
45170 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
45175 #: ../tools/virt-win-reg.pl:649
45176 msgid "To delete a single value within a key, use the syntax:"
45180 #: ../tools/virt-win-reg.pl:651
45183 " [HKEY_LOCAL_MACHINE\\Foo]\n"
45189 #: ../tools/virt-win-reg.pl:654
45190 msgid "WINDOWS TIPS"
45194 #: ../tools/virt-win-reg.pl:656
45196 "Note that some of these tips modify the guest disk image. The guest I<must> "
45197 "be shut off, else you will get disk corruption."
45201 #: ../tools/virt-win-reg.pl:659
45202 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
45206 #: ../tools/virt-win-reg.pl:661
45208 "Prepare a DOS batch script, VBScript or executable. Upload this using "
45209 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
45210 "is uploaded into C<C:\\>:"
45214 #: ../tools/virt-win-reg.pl:665
45217 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
45220 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
45224 #: ../tools/virt-win-reg.pl:667
45225 msgid "Prepare a regedit file containing the registry change:"
45229 #: ../tools/virt-win-reg.pl:669
45232 " cat > test.reg <<'EOF'\n"
45233 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
45234 " \"Test\"=\"c:\\\\test.bat\"\n"
45238 " cat > test.reg <<'EOF'\n"
45239 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
45240 " \"Test\"=\"c:\\\\test.bat\"\n"
45245 #: ../tools/virt-win-reg.pl:674
45247 "In this example we use the key C<RunOnce> which means that the script will "
45248 "run precisely once when the first user logs in. If you want it to run every "
45249 "time a user logs in, replace C<RunOnce> with C<Run>."
45253 #: ../tools/virt-win-reg.pl:678
45254 msgid "Now update the registry:"
45255 msgstr "Оновіть регістр:"
45258 #: ../tools/virt-win-reg.pl:680
45261 " virt-win-reg --merge WindowsGuest test.reg\n"
45266 #: ../tools/virt-win-reg.pl:682
45267 msgid "INSTALLING A SERVICE"
45271 #: ../tools/virt-win-reg.pl:684
45273 "This section assumes you are familiar with Windows services, and you either "
45274 "have a program which handles the Windows Service Control Protocol directly "
45275 "or you want to run any program using a service wrapper like SrvAny or the "
45280 #: ../tools/virt-win-reg.pl:689
45282 "First upload the program and optionally the service wrapper. In this case "
45283 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
45287 #: ../tools/virt-win-reg.pl:693
45290 " guestfish -i -d WindowsGuest <<EOF\n"
45291 " upload rhsrvany.exe /rhsrvany.exe\n"
45292 " upload test.exe /test.exe\n"
45296 " guestfish -i -d WindowsGuest <<EOF\n"
45297 " upload rhsrvany.exe /rhsrvany.exe\n"
45298 " upload test.exe /test.exe\n"
45303 #: ../tools/virt-win-reg.pl:698
45305 "Prepare a regedit file containing the registry changes. In this example, "
45306 "the first registry change is needed for the service itself or the service "
45307 "wrapper (if used). The second registry change is only needed because I am "
45308 "using the RHSrvAny service wrapper."
45312 #: ../tools/virt-win-reg.pl:703
45315 " cat > service.reg <<'EOF'\n"
45316 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
45317 " \"Type\"=dword:00000010\n"
45318 " \"Start\"=dword:00000002\n"
45319 " \"ErrorControl\"=dword:00000001\n"
45320 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
45321 " \"DisplayName\"=\"RHSrvAny\"\n"
45322 " \"ObjectName\"=\"NetworkService\"\n"
45325 " cat > service.reg <<'EOF'\n"
45326 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
45327 " \"Type\"=dword:00000010\n"
45328 " \"Start\"=dword:00000002\n"
45329 " \"ErrorControl\"=dword:00000001\n"
45330 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
45331 " \"DisplayName\"=\"RHSrvAny\"\n"
45332 " \"ObjectName\"=\"NetworkService\"\n"
45336 #: ../tools/virt-win-reg.pl:712
45339 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
45340 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
45341 " \"PWD\"=\"c:\\\\Temp\"\n"
45345 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
45346 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
45347 " \"PWD\"=\"c:\\\\Temp\"\n"
45352 #: ../tools/virt-win-reg.pl:723
45354 "For use of C<ControlSet001> see the section above in this manual page. You "
45355 "may need to adjust this according to the control set that is in use by the "
45360 #: ../tools/virt-win-reg.pl:729
45362 "C<\"ObjectName\"> controls the privileges that the service will have. An "
45363 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
45364 "privileged account."
45368 #: ../tools/virt-win-reg.pl:735
45370 "For the meaning of the magic numbers, see this Microsoft KB article: "
45371 "L<http://support.microsoft.com/kb/103000>."
45375 #: ../tools/virt-win-reg.pl:740
45376 msgid "Update the registry:"
45377 msgstr "Оновіть регістр:"
45380 #: ../tools/virt-win-reg.pl:742
45383 " virt-win-reg --merge WindowsGuest service.reg\n"
45388 #: ../tools/virt-win-reg.pl:746
45390 "Be careful when passing parameters containing C<\\> (backslash) in the "
45391 "shell. Usually you will have to use 'single quotes' or double backslashes "
45392 "(but not both) to protect them from the shell."
45396 #: ../tools/virt-win-reg.pl:750
45397 msgid "Paths and value names are case-insensitive."
45401 #: ../tools/virt-win-reg.pl:759
45403 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
45404 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
45405 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
45407 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
45408 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
45409 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
45412 #: ../tools/virt-win-reg.pl:777
45415 " export LIBGUESTFS_DEBUG=1\n"
45416 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
45421 #: ../tools/virt-win-reg.pl:780
45423 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
45427 #~ msgid "C<caution>"
45428 #~ msgstr "C<caution>"
45431 #~| msgid "C<capitests>"
45432 #~ msgid "C<extratests>"
45433 #~ msgstr "C<capitests>"
45435 #~ msgid "C<images>"
45436 #~ msgstr "C<images>"
45438 #~ msgid "C<regressions>"
45439 #~ msgstr "C<regressions>"
45441 #~ msgid "Regression tests."
45442 #~ msgstr "Тести на регресії."