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-03 11:24+0000\n"
12 "PO-Revision-Date: 2011-10-27 09:15+0000\n"
13 "Last-Translator: rjones <rjones@redhat.com>\n"
14 "Language-Team: Ukrainian <trans-uk@lists.fedoraproject.org>\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
20 "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
23 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3
24 #: ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
25 #: ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
26 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
27 #: ../examples/guestfs-recipes.pod:14 ../examples/guestfs-testing.pod:3
28 #: ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3
29 #: ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3
30 #: ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3
31 #: ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3
32 #: ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3
33 #: ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3
34 #: ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3
35 #: ../sparsify/virt-sparsify.pod:3 ../src/guestfs.pod:3
36 #: ../test-tool/libguestfs-test-tool.pod:3
37 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
38 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
39 #: ../tools/virt-win-reg.pl:35
44 #: ../align/virt-alignment-scan.pod:5
45 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
49 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7
50 #: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
51 #: ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
52 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
53 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
54 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
55 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
56 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
57 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
58 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
59 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
60 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
61 #: ../test-tool/libguestfs-test-tool.pod:7
62 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
63 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
64 #: ../tools/virt-win-reg.pl:39
66 msgstr "КОРОТКИЙ ОПИС"
69 #: ../align/virt-alignment-scan.pod:9
72 " virt-alignment-scan [--options] -d domname\n"
77 #: ../align/virt-alignment-scan.pod:11
80 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
85 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19
86 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
87 #: ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
88 #: ../erlang/examples/guestfs-erlang.pod:16
89 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
90 #: ../examples/guestfs-testing.pod:7 ../fish/guestfish.pod:30
91 #: ../fish/virt-copy-in.pod:19 ../fish/virt-copy-out.pod:13
92 #: ../fish/virt-tar-in.pod:21 ../fish/virt-tar-out.pod:15
93 #: ../fuse/guestmount.pod:20 ../inspector/virt-inspector.pod:19
94 #: ../java/examples/guestfs-java.pod:15 ../ocaml/examples/guestfs-ocaml.pod:25
95 #: ../perl/examples/guestfs-perl.pod:18
96 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:31
97 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
98 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
99 #: ../test-tool/libguestfs-test-tool.pod:11
100 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
101 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
102 #: ../tools/virt-win-reg.pl:63
107 #: ../align/virt-alignment-scan.pod:15
109 "When older operating systems install themselves, the partitioning tools "
110 "place partitions at a sector misaligned with the underlying storage "
111 "(commonly the first partition starts on sector C<63>). Misaligned "
112 "partitions can result in an operating system issuing more I/O than should be "
117 #: ../align/virt-alignment-scan.pod:21
119 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
120 "machines and disk images and warns you if there are alignment problems."
124 #: ../align/virt-alignment-scan.pod:25
126 "Currently there is no virt tool for fixing alignment problems. You can only "
127 "reinstall the guest operating system. The following NetApp document "
128 "summarises the problem and possible solutions: L<http://media.netapp.com/"
129 "documents/tr-3747.pdf>"
133 #: ../align/virt-alignment-scan.pod:30
138 #: ../align/virt-alignment-scan.pod:32
139 msgid "To run this tool on a disk image directly, use the I<-a> option:"
143 #: ../align/virt-alignment-scan.pod:34
146 " $ virt-alignment-scan -a winxp.img\n"
147 " /dev/sda1 32256 512 bad (alignment < 4K)\n"
152 #: ../align/virt-alignment-scan.pod:37
155 " $ virt-alignment-scan -a fedora16.img\n"
156 " /dev/sda1 1048576 1024K ok\n"
157 " /dev/sda2 2097152 2048K ok\n"
158 " /dev/sda3 526385152 2048K ok\n"
163 #: ../align/virt-alignment-scan.pod:42
165 "To run the tool on a guest known to libvirt, use the I<-d> option and "
166 "possibly the I<-c> option:"
170 #: ../align/virt-alignment-scan.pod:45
173 " # virt-alignment-scan -d RHEL5\n"
174 " /dev/sda1 32256 512 bad (alignment < 4K)\n"
175 " /dev/sda2 106928640 512 bad (alignment < 4K)\n"
180 #: ../align/virt-alignment-scan.pod:49
183 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
184 " /dev/sda1 1048576 1024K ok\n"
185 " /dev/sda2 105906176 1024K ok\n"
186 " /dev/sdb1 65536 64K ok\n"
191 #: ../align/virt-alignment-scan.pod:54
193 "The output consists of 4 or more whitespace-separated columns. Only the "
194 "first 4 columns are signficant if you want to parse this from a program. "
199 #: ../align/virt-alignment-scan.pod:60
204 #: ../align/virt-alignment-scan.pod:62
206 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
207 "on the first block device)"
211 #: ../align/virt-alignment-scan.pod:65
216 #: ../align/virt-alignment-scan.pod:67
217 msgid "the start of the partition in bytes"
221 #: ../align/virt-alignment-scan.pod:69
226 #: ../align/virt-alignment-scan.pod:71
227 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
231 #: ../align/virt-alignment-scan.pod:73
236 #: ../align/virt-alignment-scan.pod:75
238 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
239 "can cause performance problems"
243 #: ../align/virt-alignment-scan.pod:78
248 #: ../align/virt-alignment-scan.pod:80
249 msgid "optional free-text explanation."
253 #: ../align/virt-alignment-scan.pod:84
255 "The exit code from the program changes depending on whether poorly aligned "
256 "partitions were found. See L</EXIT STATUS> below."
260 #: ../align/virt-alignment-scan.pod:87
261 msgid "If you just want the exit code with no output, use the I<-q> option."
265 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62
266 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261
267 #: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
268 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
269 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
270 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92
271 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:112
272 #: ../resize/virt-resize.pod:262 ../sparsify/virt-sparsify.pod:99
273 #: ../test-tool/libguestfs-test-tool.pod:36
274 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
275 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
276 #: ../tools/virt-win-reg.pl:96
281 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
282 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
283 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
284 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
285 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:116
286 #: ../resize/virt-resize.pod:266 ../sparsify/virt-sparsify.pod:103
287 #: ../test-tool/libguestfs-test-tool.pod:40
288 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
289 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
290 #: ../tools/virt-win-reg.pl:104
295 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
296 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
297 #: ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
298 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:118
299 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
300 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
301 #: ../tools/virt-win-reg.pl:106
302 msgid "Display brief help."
303 msgstr "Показати коротку довідку."
306 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70
307 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269
308 #: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
309 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:120
314 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72
315 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271
316 #: ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
317 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:122
318 msgid "B<--add> file"
319 msgstr "B<--add> файл"
322 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
323 msgid "Add I<file> which should be a disk image from a virtual machine."
327 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78
328 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277
329 #: ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
330 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
331 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:128
333 "The format of the disk image is auto-detected. To override this and force a "
334 "particular format use the I<--format=..> option."
338 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81
339 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291
340 #: ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78
341 #: ../rescue/virt-rescue.pod:135
343 msgstr "B<-c> адреса"
346 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83
347 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293
348 #: ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80
349 #: ../rescue/virt-rescue.pod:137
350 msgid "B<--connect> URI"
351 msgstr "B<--connect> адреса"
354 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85
355 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295
356 #: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
357 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:139
358 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
359 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
361 "If using libvirt, connect to the given I<URI>. If omitted, then we connect "
362 "to the default libvirt hypervisor."
366 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88
367 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298
368 #: ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85
369 #: ../rescue/virt-rescue.pod:142
371 "If you specify guest block devices directly (I<-a>), then libvirt is not "
376 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91
377 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307
378 #: ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
379 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:145
384 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93
385 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309
386 #: ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
387 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:147
388 msgid "B<--domain> guest"
389 msgstr "B<--domain> гість"
392 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95
393 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311
394 #: ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
395 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:149
397 "Add all the disks from the named libvirt guest. Domain UUIDs can be used "
402 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105
403 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
404 #: ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101
405 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142
406 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:152
407 msgid "B<--format=raw|qcow2|..>"
408 msgstr "B<--format=raw|qcow2|..>"
411 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107
412 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
413 #: ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103
414 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
415 #: ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101
416 #: ../rescue/virt-rescue.pod:154
421 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109
422 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
423 #: ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105
424 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
425 #: ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:156
427 "The default for the I<-a> option is to auto-detect the format of the disk "
428 "image. Using this forces the disk format for I<-a> options which follow on "
429 "the command line. Using I<--format> with no argument switches back to auto-"
430 "detection for subsequent I<-a> options."
434 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114
435 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
436 #: ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110
437 #: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
438 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:351
439 #: ../rescue/virt-rescue.pod:161 ../src/guestfs.pod:2877
444 #: ../align/virt-alignment-scan.pod:134
447 " virt-alignment-scan --format=raw -a disk.img\n"
452 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
453 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
454 #: ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114
455 #: ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
456 #: ../rescue/virt-rescue.pod:165
457 msgid "forces raw format (no auto-detection) for C<disk.img>."
461 #: ../align/virt-alignment-scan.pod:138
464 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
469 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122
470 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
471 #: ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118
472 #: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
473 #: ../rescue/virt-rescue.pod:169
475 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
476 "detection for C<another.img>."
480 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125
481 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
482 #: ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121
483 #: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:172
485 "If you have untrusted raw-format guest disk images, you should use this "
486 "option to specify the disk format. This avoids a possible security problem "
487 "with malicious guests (CVE-2010-3851)."
491 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:497
492 #: ../sparsify/virt-sparsify.pod:177
497 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:499
498 #: ../sparsify/virt-sparsify.pod:179
503 #: ../align/virt-alignment-scan.pod:151
505 "Don't produce any output. Just set the exit code (see L</EXIT STATUS> "
510 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
511 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
512 #: ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173
513 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
514 #: ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119
515 #: ../rescue/virt-rescue.pod:219 ../sparsify/virt-sparsify.pod:183
520 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136
521 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
522 #: ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175
523 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
524 #: ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121
525 #: ../rescue/virt-rescue.pod:221 ../sparsify/virt-sparsify.pod:185
527 msgstr "B<--verbose>"
530 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138
531 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
532 #: ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177
533 #: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123
534 #: ../rescue/virt-rescue.pod:223 ../sparsify/virt-sparsify.pod:187
535 msgid "Enable verbose messages for debugging."
539 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140
540 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
541 #: ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179
542 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
543 #: ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125
544 #: ../rescue/virt-rescue.pod:225 ../resize/virt-resize.pod:567
545 #: ../sparsify/virt-sparsify.pod:189
550 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
551 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
552 #: ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181
553 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
554 #: ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127
555 #: ../rescue/virt-rescue.pod:227 ../resize/virt-resize.pod:569
556 #: ../sparsify/virt-sparsify.pod:191 ../tools/virt-list-filesystems.pl:69
557 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
558 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
560 msgstr "B<--version>"
563 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
564 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
565 #: ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183
566 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
567 #: ../rescue/virt-rescue.pod:229 ../resize/virt-resize.pod:571
568 #: ../sparsify/virt-sparsify.pod:193 ../tools/virt-list-filesystems.pl:71
569 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
570 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
571 msgid "Display version number and exit."
572 msgstr "Показати дані щодо версії і завершити роботу."
575 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
576 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
577 #: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185
578 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
579 #: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131
580 #: ../rescue/virt-rescue.pod:240 ../sparsify/virt-sparsify.pod:195
581 #: ../tools/virt-tar.pl:158
586 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
587 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
588 #: ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187
589 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
590 #: ../rescue/virt-rescue.pod:242 ../sparsify/virt-sparsify.pod:197
591 msgid "Enable tracing of libguestfs API calls."
595 #: ../align/virt-alignment-scan.pod:172
596 msgid "RECOMMENDED ALIGNMENT"
600 #: ../align/virt-alignment-scan.pod:174
602 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
603 "first sector of the first partition at sector 63, with a 512 byte sector "
604 "size. This happens because of a historical accident. Drives have to report "
605 "a cylinder / head / sector (CHS) geometry to the BIOS. The geometry is "
606 "completely meaningless on modern drives, but it happens that the geometry "
607 "reported always has 63 sectors per track. The operating system therefore "
608 "places the first partition at the start of the second \"track\", at sector "
613 #: ../align/virt-alignment-scan.pod:183
615 "When the guest OS is virtualized, the host operating system and hypervisor "
616 "may prefer accesses aligned to one of:"
620 #: ../align/virt-alignment-scan.pod:188
625 #: ../align/virt-alignment-scan.pod:190
627 "if the host OS uses local storage directly on hard drive partitions, and the "
628 "hard drive has 512 byte physical sectors."
632 #: ../align/virt-alignment-scan.pod:193
637 #: ../align/virt-alignment-scan.pod:195
639 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
640 "backed storage on filesystems with 4Kbyte block size; or for some types of "
641 "network-attached storage."
645 #: ../align/virt-alignment-scan.pod:199
650 #: ../align/virt-alignment-scan.pod:201
652 "for high-end network-attached storage. This is the optimal block size for "
653 "some NetApp hardware."
657 #: ../align/virt-alignment-scan.pod:204
662 #: ../align/virt-alignment-scan.pod:206
663 msgid "see L</1 MB PARTITION ALIGNMENT> below."
667 #: ../align/virt-alignment-scan.pod:210
669 "Partitions which are not aligned correctly to the underlying storage cause "
670 "extra I/O. For example:"
674 #: ../align/virt-alignment-scan.pod:213
678 " +--------------------------+------\n"
680 " | filesystem block |\n"
681 " ---+------------------+------+-------------------+-----+---\n"
682 " | host block | host block |\n"
684 " ---+-------------------------+-------------------------+---\n"
689 #: ../align/virt-alignment-scan.pod:222
691 "In this example, each time a 4K guest block is read, two blocks on the host "
692 "must be accessed (so twice as much I/O is done). When a 4K guest block is "
693 "written, two host blocks must first be read, the old and new data combined, "
694 "and the two blocks written back (4x I/O)."
698 #: ../align/virt-alignment-scan.pod:227
699 msgid "LINUX HOST BLOCK AND I/O SIZE"
703 #: ../align/virt-alignment-scan.pod:229
705 "New versions of the Linux kernel expose the physical and logical block size, "
706 "and minimum and recommended I/O size."
710 #: ../align/virt-alignment-scan.pod:232
711 msgid "For a typical consumer hard drive with 512 byte sectors:"
715 #: ../align/virt-alignment-scan.pod:234
718 " $ cat /sys/block/sda/queue/hw_sector_size\n"
720 " $ cat /sys/block/sda/queue/physical_block_size\n"
722 " $ cat /sys/block/sda/queue/logical_block_size\n"
724 " $ cat /sys/block/sda/queue/minimum_io_size\n"
726 " $ cat /sys/block/sda/queue/optimal_io_size\n"
732 #: ../align/virt-alignment-scan.pod:245
733 msgid "For a new consumer hard drive with 4Kbyte sectors:"
737 #: ../align/virt-alignment-scan.pod:247
740 " $ cat /sys/block/sda/queue/hw_sector_size\n"
742 " $ cat /sys/block/sda/queue/physical_block_size\n"
744 " $ cat /sys/block/sda/queue/logical_block_size\n"
746 " $ cat /sys/block/sda/queue/minimum_io_size\n"
748 " $ cat /sys/block/sda/queue/optimal_io_size\n"
754 #: ../align/virt-alignment-scan.pod:258
755 msgid "For a NetApp LUN:"
759 #: ../align/virt-alignment-scan.pod:260
762 " $ cat /sys/block/sdc/queue/logical_block_size\n"
764 " $ cat /sys/block/sdc/queue/physical_block_size\n"
766 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
768 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
774 #: ../align/virt-alignment-scan.pod:269
776 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
777 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
781 #: ../align/virt-alignment-scan.pod:273
783 "For detailed information about what these numbers mean, see L<http://docs."
784 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
785 "Storage_Administration_Guide/newstorage-iolimits.html>"
789 #: ../align/virt-alignment-scan.pod:276
791 "[Thanks to Matt Booth for providing 4K drive data. Thanks to Mike Snitzer "
792 "for providing NetApp data and additional information.]"
796 #: ../align/virt-alignment-scan.pod:279
797 msgid "1 MB PARTITION ALIGNMENT"
801 #: ../align/virt-alignment-scan.pod:281
803 "Microsoft picked 1 MB as the default alignment for all partitions starting "
804 "with Windows 2008 Server, and Linux has followed this."
808 #: ../align/virt-alignment-scan.pod:284
810 "Assuming 512 byte sectors in the guest, you will now see the first partition "
811 "starting at sector 2048, and subsequent partitions (if any) will start at a "
812 "multiple of 2048 sectors."
816 #: ../align/virt-alignment-scan.pod:288
818 "1 MB alignment is compatible with all current alignment requirements (4K, "
819 "64K) and provides room for future growth in physical block sizes."
823 #: ../align/virt-alignment-scan.pod:291
824 msgid "SETTING ALIGNMENT"
828 #: ../align/virt-alignment-scan.pod:293
830 "L<virt-resize(1)> can change the alignment of the partitions of some "
831 "guests. Currently it can fully align all the partitions of all Windows "
832 "guests, and it will fix the bootloader where necessary. For Linux guests, "
833 "it can align the second and subsequent partitions, so the majority of OS "
834 "accesses except at boot will be aligned."
838 #: ../align/virt-alignment-scan.pod:299
840 "Another way to correct partition alignment problems is to reinstall your "
841 "guest operating systems. If you install operating systems from templates, "
842 "ensure these have correct partition alignment too."
846 #: ../align/virt-alignment-scan.pod:303
848 "For older versions of Windows, the following NetApp document contains useful "
849 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
853 #: ../align/virt-alignment-scan.pod:306
855 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
856 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
857 ">. Do not use the Kickstart C<part> command. The NetApp document above "
858 "contains an example."
862 #: ../align/virt-alignment-scan.pod:311 ../cat/virt-cat.pod:231
863 #: ../cat/virt-filesystems.pod:373 ../cat/virt-ls.pod:483
864 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:241
865 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:367
866 #: ../rescue/virt-rescue.pod:303 ../resize/virt-resize.pod:682
867 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
868 #: ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289
869 #: ../tools/virt-win-reg.pl:744
870 msgid "SHELL QUOTING"
874 #: ../align/virt-alignment-scan.pod:313 ../cat/virt-cat.pod:233
875 #: ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485
876 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:243
877 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:369
878 #: ../rescue/virt-rescue.pod:305 ../resize/virt-resize.pod:684
879 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
880 #: ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291
881 #: ../tools/virt-win-reg.pl:752
883 "Libvirt guest names can contain arbitrary characters, some of which have "
884 "meaning to the shell such as C<#> and space. You may need to quote or "
885 "escape these characters on the command line. See the shell manual page L<sh"
890 #: ../align/virt-alignment-scan.pod:318 ../cat/virt-cat.pod:238
891 #: ../cat/virt-filesystems.pod:380 ../cat/virt-ls.pod:490
892 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:248
893 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
894 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:390
895 #: ../resize/virt-resize.pod:689 ../sparsify/virt-sparsify.pod:251
896 #: ../test-tool/libguestfs-test-tool.pod:90
901 #: ../align/virt-alignment-scan.pod:320
902 msgid "This program returns:"
906 #: ../align/virt-alignment-scan.pod:324 ../align/virt-alignment-scan.pod:330
907 #: ../align/virt-alignment-scan.pod:336 ../align/virt-alignment-scan.pod:343
908 #: ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187
909 #: ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202
910 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
911 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
912 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
913 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
914 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
915 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
916 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
917 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
918 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
919 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
920 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
921 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
922 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
923 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
924 #: ../examples/guestfs-testing.pod:110 ../examples/guestfs-testing.pod:114
925 #: ../examples/guestfs-testing.pod:118 ../fish/guestfish-actions.pod:13
926 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:441
927 #: ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:456
928 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod: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:3067 ../src/guestfs.pod:3072 ../src/guestfs.pod:3076
978 #: ../src/guestfs.pod:3080 ../src/guestfs.pod:3084 ../src/guestfs.pod:3098
979 #: ../src/guestfs.pod:3103 ../src/guestfs.pod:3335 ../src/guestfs.pod:3339
980 #: ../src/guestfs.pod:3343 ../src/guestfs.pod:3347
981 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
982 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:721
983 #: ../tools/virt-win-reg.pl:727 ../tools/virt-win-reg.pl:733
988 #: ../align/virt-alignment-scan.pod:326
993 #: ../align/virt-alignment-scan.pod:328
995 "successful exit, all partitions are aligned E<ge> 64K for best performance"
999 #: ../align/virt-alignment-scan.pod:332
1004 #: ../align/virt-alignment-scan.pod:334
1005 msgid "an error scanning the disk image or guest"
1009 #: ../align/virt-alignment-scan.pod:338
1014 #: ../align/virt-alignment-scan.pod:340
1016 "successful exit, some partitions have alignment E<lt> 64K which can result "
1017 "in poor performance on high end network storage"
1021 #: ../align/virt-alignment-scan.pod:345
1026 #: ../align/virt-alignment-scan.pod:347
1028 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1029 "poor performance on most hypervisors"
1033 #: ../align/virt-alignment-scan.pod:352 ../cat/virt-cat.pod:243
1034 #: ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495
1035 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:253
1036 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1037 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1038 #: ../examples/guestfs-testing.pod:291 ../fish/guestfish.pod:1268
1039 #: ../fish/virt-copy-in.pod:50 ../fish/virt-copy-out.pod:39
1040 #: ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41
1041 #: ../fuse/guestmount.pod:317 ../inspector/virt-inspector.pod:395
1042 #: ../java/examples/guestfs-java.pod:45 ../ocaml/examples/guestfs-ocaml.pod:78
1043 #: ../perl/examples/guestfs-perl.pod:39
1044 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:325
1045 #: ../resize/virt-resize.pod:694 ../ruby/examples/guestfs-ruby.pod:36
1046 #: ../sparsify/virt-sparsify.pod:275 ../src/guestfs.pod:3275
1047 #: ../test-tool/libguestfs-test-tool.pod:100
1048 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1049 #: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296
1050 #: ../tools/virt-win-reg.pl:757
1052 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
1055 #: ../align/virt-alignment-scan.pod:354
1057 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1058 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1062 #: ../align/virt-alignment-scan.pod:361 ../cat/virt-cat.pod:252
1063 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507
1064 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:261
1065 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:334
1066 #: ../resize/virt-resize.pod:717 ../sparsify/virt-sparsify.pod:288
1067 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1068 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311
1069 #: ../tools/virt-win-reg.pl:783
1074 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:254
1075 #: ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509
1076 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:263
1077 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:410
1078 #: ../rescue/virt-rescue.pod:336 ../resize/virt-resize.pod:719
1079 #: ../sparsify/virt-sparsify.pod:290 ../tools/virt-list-filesystems.pl:210
1080 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584
1081 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
1082 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1083 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1086 #: ../align/virt-alignment-scan.pod:365 ../cat/virt-cat.pod:256
1087 #: ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511
1088 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:265
1089 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1090 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1091 #: ../examples/guestfs-testing.pod:302 ../fish/guestfish.pod:1300
1092 #: ../fish/virt-copy-in.pod:64 ../fish/virt-copy-out.pod:53
1093 #: ../fish/virt-tar-in.pod:62 ../fish/virt-tar-out.pod:55
1094 #: ../fuse/guestmount.pod:332 ../inspector/virt-inspector.pod:418
1095 #: ../java/examples/guestfs-java.pod:62 ../ocaml/examples/guestfs-ocaml.pod:95
1096 #: ../perl/examples/guestfs-perl.pod:56
1097 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:338
1098 #: ../resize/virt-resize.pod:721 ../ruby/examples/guestfs-ruby.pod:52
1099 #: ../sparsify/virt-sparsify.pod:292 ../src/guestfs.pod:3358
1100 #: ../test-tool/libguestfs-test-tool.pod:110
1101 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1102 #: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315
1103 #: ../tools/virt-win-reg.pl:787
1105 msgstr "АВТОРСЬКІ ПРАВА"
1108 #: ../align/virt-alignment-scan.pod:367 ../clone/virt-sysprep.pod:507
1109 #: ../sparsify/virt-sparsify.pod:294
1110 msgid "Copyright (C) 2011 Red Hat Inc."
1114 #: ../align/virt-alignment-scan.pod:369 ../cat/virt-cat.pod:260
1115 #: ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515
1116 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:269
1117 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1118 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1119 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1120 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:422
1121 #: ../rescue/virt-rescue.pod:342 ../resize/virt-resize.pod:725
1122 #: ../sparsify/virt-sparsify.pod:296 ../test-tool/libguestfs-test-tool.pod:115
1123 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1124 #: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319
1125 #: ../tools/virt-win-reg.pl:791
1127 "This program is free software; you can redistribute it and/or modify it "
1128 "under the terms of the GNU General Public License as published by the Free "
1129 "Software Foundation; either version 2 of the License, or (at your option) "
1130 "any later version."
1134 #: ../align/virt-alignment-scan.pod:374 ../cat/virt-cat.pod:265
1135 #: ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520
1136 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:274
1137 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1138 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1139 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1140 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:427
1141 #: ../rescue/virt-rescue.pod:347 ../resize/virt-resize.pod:730
1142 #: ../sparsify/virt-sparsify.pod:301 ../test-tool/libguestfs-test-tool.pod:120
1143 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1144 #: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324
1145 #: ../tools/virt-win-reg.pl:796
1147 "This program is distributed in the hope that it will be useful, but WITHOUT "
1148 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1149 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for "
1152 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
1153 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
1154 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
1155 "дізнатися з GNU General Public License."
1158 #: ../align/virt-alignment-scan.pod:379 ../cat/virt-cat.pod:270
1159 #: ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525
1160 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:279
1161 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1162 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1163 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1164 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:432
1165 #: ../rescue/virt-rescue.pod:352 ../resize/virt-resize.pod:735
1166 #: ../sparsify/virt-sparsify.pod:306 ../test-tool/libguestfs-test-tool.pod:125
1167 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1168 #: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329
1169 #: ../tools/virt-win-reg.pl:801
1171 "You should have received a copy of the GNU General Public License along with "
1172 "this program; if not, write to the Free Software Foundation, Inc., 51 "
1173 "Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
1175 "Ви маєте отримати копію GNU General Public License разом з цією програмою; "
1176 "якщо це не так, повідомте про факт за адресою Free Software Foundation, "
1177 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
1180 #: ../cat/virt-cat.pod:5
1181 msgid "virt-cat - Display files in a virtual machine"
1182 msgstr "virt-cat — показ файлів у віртуальній машині"
1185 #: ../cat/virt-cat.pod:9
1188 " virt-cat [--options] -d domname file [file ...]\n"
1191 " virt-cat [--параметри] -d назва_домену файл [файл...]\n"
1195 #: ../cat/virt-cat.pod:11
1198 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1201 " virt-cat [--параметри] -a диск.img [-a диск.img ...] файл [файл...]\n"
1205 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1206 #: ../inspector/virt-inspector.pod:13
1208 msgstr "Застарілий стиль:"
1211 #: ../cat/virt-cat.pod:15
1214 " virt-cat domname file\n"
1217 " virt-cat назва_домену файл\n"
1221 #: ../cat/virt-cat.pod:17
1224 " virt-cat disk.img file\n"
1227 " virt-cat диск.img файл\n"
1231 #: ../cat/virt-cat.pod:21
1233 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1234 "C<file> exists in the named virtual machine (or disk image)."
1236 "C<virt-cat> — інструмент командного рядка для показу вмісту C<файла>, який "
1237 "зберігається у вказаній віртуальній машині (або образі диска)."
1240 #: ../cat/virt-cat.pod:24
1242 "Multiple filenames can be given, in which case they are concatenated "
1243 "together. Each filename must be a full path, starting at the root directory "
1244 "(starting with '/')."
1246 "Ви можете вказати декілька назв файлів. Вміст таких файлів буде об’єднано. "
1247 "Назви файлів слід вказувати повністю (разом зі шляхом), починаючи з "
1248 "кореневого каталогу (тобто назва має починатися з «/»)."
1251 #: ../cat/virt-cat.pod:28
1253 "C<virt-cat> can be used to quickly view a file. To edit a file, use C<virt-"
1254 "edit>. For more complex cases you should look at the L<guestfish(1)> tool "
1255 "(see L</USING GUESTFISH> below)."
1257 "C<virt-cat> можна скористатися для пришвидшення перегляду файла. Для "
1258 "редагування даних слід користуватися C<virt-edit>. Для виконання складніших "
1259 "дій можна скористатися програмою L<guestfish(1)> (див. L</USING GUESTFISH> "
1263 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1264 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1265 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1266 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1267 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1268 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1269 #: ../tools/virt-tar.pl:50
1274 #: ../cat/virt-cat.pod:34
1276 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1278 "Показ файла C</etc/fstab> з віртуальної машини libvirt з назвою C<mydomain>:"
1281 #: ../cat/virt-cat.pod:37
1284 " virt-cat -d mydomain /etc/fstab\n"
1287 " virt-cat -d mydomain /etc/fstab\n"
1291 #: ../cat/virt-cat.pod:39
1292 msgid "List syslog messages from a VM disk image file:"
1294 "Показ списку повідомлень syslog з файла образу диска віртуальної машини:"
1297 #: ../cat/virt-cat.pod:41
1300 " virt-cat -a disk.img /var/log/messages | tail\n"
1303 " virt-cat -a disk.img /var/log/messages | tail\n"
1307 #: ../cat/virt-cat.pod:43
1308 msgid "Find out what DHCP IP address a VM acquired:"
1309 msgstr "Визначення IP-адреси DHCP, використаної віртуальною машиною:"
1312 #: ../cat/virt-cat.pod:45
1315 " virt-cat -d mydomain /var/log/messages | \\\n"
1316 " grep 'dhclient: bound to' | tail\n"
1319 " virt-cat -d mydomain /var/log/messages | \\\n"
1320 " grep 'dhclient: bound to' | tail\n"
1324 #: ../cat/virt-cat.pod:48
1325 msgid "Find out what packages were recently installed:"
1326 msgstr "Пошук нещодавно встановлених пакунків:"
1329 #: ../cat/virt-cat.pod:50
1332 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1335 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1339 #: ../cat/virt-cat.pod:52
1340 msgid "Find out who is logged on inside a virtual machine:"
1341 msgstr "Визначення користувачів, які працюють у віртуальній машині:"
1344 #: ../cat/virt-cat.pod:54
1347 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1351 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1356 #: ../cat/virt-cat.pod:57
1357 msgid "or who was logged on:"
1358 msgstr "або тих, які у ній працювали:"
1361 #: ../cat/virt-cat.pod:59
1364 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1365 " last -f /tmp/wtmp\n"
1368 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1369 " last -f /tmp/wtmp\n"
1373 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1374 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1375 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:124
1377 "Add I<file> which should be a disk image from a virtual machine. If the "
1378 "virtual machine has multiple block devices, you must supply all of them with "
1379 "separate I<-a> options."
1383 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1384 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1385 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1386 msgid "B<--echo-keys>"
1387 msgstr "B<--echo-keys>"
1390 #: ../cat/virt-cat.pod:100
1392 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1393 "so you cannot see what you are typing. If you are not worried about Tempest "
1394 "attacks and there is no one else in the room you can specify this flag to "
1395 "see what you are typing."
1399 #: ../cat/virt-cat.pod:116
1402 " virt-cat --format=raw -a disk.img file\n"
1405 " virt-cat --format=raw -a disk.img file\n"
1409 #: ../cat/virt-cat.pod:120
1412 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1415 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1419 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1420 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1421 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1422 msgid "B<--keys-from-stdin>"
1423 msgstr "B<--keys-from-stdin>"
1426 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1427 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1428 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1430 "Read key or passphrase parameters from stdin. The default is to try to read "
1431 "passphrases from the user by opening C</dev/tty>."
1435 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1436 #: ../inspector/virt-inspector.pod:144 ../rescue/virt-rescue.pod:246
1437 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1441 #: ../cat/virt-cat.pod:154
1442 msgid "Previous versions of virt-cat allowed you to write either:"
1446 #: ../cat/virt-cat.pod:156
1449 " virt-cat disk.img [disk.img ...] file\n"
1454 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1455 #: ../inspector/virt-inspector.pod:150 ../rescue/virt-rescue.pod:252
1460 #: ../cat/virt-cat.pod:160
1463 " virt-cat guestname file\n"
1468 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1469 #: ../inspector/virt-inspector.pod:154 ../rescue/virt-rescue.pod:256
1471 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1472 "the confusing case where a disk image might have the same name as a guest."
1476 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1477 #: ../inspector/virt-inspector.pod:158 ../rescue/virt-rescue.pod:260
1478 msgid "For compatibility the old style is still supported."
1482 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1483 msgid "WINDOWS PATHS"
1484 msgstr "ШЛЯХИ У WINDOWS"
1487 #: ../cat/virt-cat.pod:170
1489 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1490 "paths (eg. C<E:\\foo\\bar.txt>)."
1494 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1495 msgid "If and only if the guest is running Windows then:"
1499 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1501 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1502 "to the correct filesystem."
1506 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1508 "Any backslash (C<\\>) characters in the path are replaced with forward "
1509 "slashes so that libguestfs can process it."
1513 #: ../cat/virt-cat.pod:189
1515 "The path is resolved case insensitively to locate the file that should be "
1520 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1521 msgid "There are some known shortcomings:"
1525 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1526 msgid "Some NTFS symbolic links may not be followed correctly."
1530 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1531 msgid "NTFS junction points that cross filesystems are not followed."
1535 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1536 msgid "USING GUESTFISH"
1537 msgstr "ВИКОРИСТАННЯ GUESTFISH"
1540 #: ../cat/virt-cat.pod:210
1542 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1543 "C<virt-cat> doesn't work."
1547 #: ../cat/virt-cat.pod:213
1548 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1552 #: ../cat/virt-cat.pod:215
1555 " guestfish --ro -i -d domname download file -\n"
1560 #: ../cat/virt-cat.pod:217
1562 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1563 "path to the file. Note the final C<-> (meaning \"output to stdout\")."
1567 #: ../cat/virt-cat.pod:221
1569 "The command above uses libguestfs's guest inspection feature and so does not "
1570 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1571 "disk images that don't contain guests. To display a file from a disk image "
1576 #: ../cat/virt-cat.pod:226
1579 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1584 #: ../cat/virt-cat.pod:228
1586 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1587 "the disk image, and C<file> is the full path to the file."
1591 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382
1592 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:250 ../edit/virt-edit.pod:351
1593 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:392
1594 #: ../resize/virt-resize.pod:691 ../sparsify/virt-sparsify.pod:253
1596 "This program returns 0 if successful, or non-zero if there was an error."
1600 #: ../cat/virt-cat.pod:245
1602 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1603 "tar-out(1)>, L<http://libguestfs.org/>."
1605 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1606 "tar-out(1)>, L<http://libguestfs.org/>."
1609 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:420
1610 #: ../resize/virt-resize.pod:723 ../tools/virt-make-fs.pl:588
1611 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1612 msgstr "©Red Hat Inc., 2010–2011"
1615 #: ../cat/virt-filesystems.pod:5
1617 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1618 "virtual machine or disk image"
1622 #: ../cat/virt-filesystems.pod:9
1625 " virt-filesystems [--options] -d domname\n"
1628 " virt-filesystems [--параметри] -d назва_домену\n"
1632 #: ../cat/virt-filesystems.pod:11
1635 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1640 #: ../cat/virt-filesystems.pod:15
1642 "This tool allows you to discover filesystems, partitions, logical volumes, "
1643 "and their sizes in a disk image or virtual machine. It is a replacement for "
1644 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1648 #: ../cat/virt-filesystems.pod:20
1650 "One use for this tool is from shell scripts to iterate over all filesystems "
1651 "from a disk image:"
1655 #: ../cat/virt-filesystems.pod:23
1658 " for fs in $(virt-filesystems -a disk.img); do\n"
1663 " for fs in $(virt-filesystems -a disk.img); do\n"
1669 #: ../cat/virt-filesystems.pod:27
1671 "Another use is to list partitions before using another tool to modify those "
1672 "partitions (such as L<virt-resize(1)>). If you are curious about what an "
1673 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1677 #: ../cat/virt-filesystems.pod:32
1679 "Various command line options control what this program displays. You need "
1680 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1681 "guest respectively. If you just specify that then the program shows "
1682 "filesystems found, one per line, like this:"
1686 #: ../cat/virt-filesystems.pod:37
1689 " $ virt-filesystems -a disk.img\n"
1691 " /dev/vg_guest/lv_root\n"
1694 " $ virt-filesystems -a disk.img\n"
1696 " /dev/vg_guest/lv_root\n"
1700 #: ../cat/virt-filesystems.pod:41
1702 "If you add I<-l> or I<--long> then the output includes extra information:"
1706 #: ../cat/virt-filesystems.pod:44
1709 " $ virt-filesystems -a disk.img -l\n"
1710 " Name Type VFS Label Size\n"
1711 " /dev/sda1 filesystem ext4 boot 524288000\n"
1712 " /dev/vg_guest/lv_root filesystem ext4 root 10212081664\n"
1717 #: ../cat/virt-filesystems.pod:49
1719 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1724 #: ../cat/virt-filesystems.pod:52
1727 " $ virt-filesystems -a disk.img --extra\n"
1729 " /dev/vg_guest/lv_root\n"
1730 " /dev/vg_guest/lv_swap\n"
1731 " /dev/vg_guest/lv_data\n"
1734 " $ virt-filesystems -a disk.img --extra\n"
1736 " /dev/vg_guest/lv_root\n"
1737 " /dev/vg_guest/lv_swap\n"
1738 " /dev/vg_guest/lv_data\n"
1742 #: ../cat/virt-filesystems.pod:58
1744 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1748 #: ../cat/virt-filesystems.pod:60
1751 " $ virt-filesystems -a disk.img --partitions\n"
1756 " $ virt-filesystems -a disk.img --partitions\n"
1762 #: ../cat/virt-filesystems.pod:64
1764 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1765 "volumes>, I<--block-devices> to list those items."
1769 #: ../cat/virt-filesystems.pod:67
1771 "You can use these options in combination as well (if you want a combination "
1772 "including filesystems, you have to add I<--filesystems>). Notice that some "
1773 "items fall into several categories (eg. C</dev/sda1> might be both a "
1774 "partition and a filesystem). These items are listed several times. To get "
1775 "a list which includes absolutely everything that virt-filesystems knows "
1776 "about, use the I<--all> option."
1780 #: ../cat/virt-filesystems.pod:74
1782 "UUIDs (because they are quite long) are not shown by default. Add the I<--"
1783 "uuid> option to display device and filesystem UUIDs in the long output."
1787 #: ../cat/virt-filesystems.pod:78
1789 "I<--all --long --uuid> is a useful combination to display all possible "
1790 "information about everything."
1794 #: ../cat/virt-filesystems.pod:81
1797 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1798 " Name Type VFS Label Size Parent UUID\n"
1799 " /dev/sda1 filesystem ntfs System Reserved 100M - F81C92571C92112C\n"
1800 " /dev/sda2 filesystem ntfs - 20G - F2E8996AE8992E3B\n"
1801 " /dev/sda1 partition - - 100M /dev/sda -\n"
1802 " /dev/sda2 partition - - 20G /dev/sda -\n"
1803 " /dev/sda device - - 20G - -\n"
1808 #: ../cat/virt-filesystems.pod:89
1810 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1814 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1819 #: ../cat/virt-filesystems.pod:112
1821 "Display everything. This is currently the same as specifying these options: "
1822 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1823 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>. (More may be "
1824 "added to this list in future)."
1828 #: ../cat/virt-filesystems.pod:117
1829 msgid "See also I<--long>."
1830 msgstr "Див. також I<--long>."
1833 #: ../cat/virt-filesystems.pod:119
1834 msgid "B<--blkdevs>"
1835 msgstr "B<--blkdevs>"
1838 #: ../cat/virt-filesystems.pod:121
1839 msgid "B<--block-devices>"
1840 msgstr "B<--block-devices>"
1843 #: ../cat/virt-filesystems.pod:123
1844 msgid "Display block devices."
1845 msgstr "Показати список блокових пристроїв."
1848 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1853 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1855 "Write out the results in CSV format (comma-separated values). This format "
1856 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1857 "ABOUT CSV FORMAT> below."
1861 #: ../cat/virt-filesystems.pod:150
1863 "When prompting for keys and passphrases, virt-filesystems normally turns "
1864 "echoing off so you cannot see what you are typing. If you are not worried "
1865 "about Tempest attacks and there is no one else in the room you can specify "
1866 "this flag to see what you are typing."
1870 #: ../cat/virt-filesystems.pod:155
1875 #: ../cat/virt-filesystems.pod:157
1877 "This causes filesystems that are not ordinary, mountable filesystems to be "
1878 "displayed. This category includes swapspace, and filesystems that are empty "
1879 "or contain unknown data."
1883 #: ../cat/virt-filesystems.pod:161
1884 msgid "This option implies I<--filesystems>."
1888 #: ../cat/virt-filesystems.pod:163
1889 msgid "B<--filesystems>"
1890 msgstr "B<--filesystems>"
1893 #: ../cat/virt-filesystems.pod:165
1895 "Display mountable filesystems. If no display option was selected then this "
1896 "option is implied."
1900 #: ../cat/virt-filesystems.pod:168
1901 msgid "With I<--extra>, non-mountable filesystems are shown too."
1905 #: ../cat/virt-filesystems.pod:181
1908 " virt-filesystems --format=raw -a disk.img\n"
1911 " virt-filesystems --format=raw -a диск.img\n"
1915 #: ../cat/virt-filesystems.pod:185
1918 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1923 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1924 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1925 #: ../tools/virt-list-partitions.pl:109
1930 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1931 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1932 msgid "B<--human-readable>"
1933 msgstr "B<--human-readable>"
1936 #: ../cat/virt-filesystems.pod:198
1937 msgid "In I<--long> mode, display sizes in human-readable format."
1941 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1942 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1947 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1948 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1953 #: ../cat/virt-filesystems.pod:209
1954 msgid "Display extra columns of data (\"long format\")."
1958 #: ../cat/virt-filesystems.pod:211
1959 msgid "A title row is added unless you also specify I<--no-title>."
1963 #: ../cat/virt-filesystems.pod:213
1965 "The extra columns displayed depend on what output you select, and the "
1966 "ordering of columns may change in future versions. Use the title row, I<--"
1967 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1972 #: ../cat/virt-filesystems.pod:218
1974 "Use I<-h> if you want sizes to be displayed in human-readable format. The "
1975 "default is to show raw numbers of I<bytes>."
1979 #: ../cat/virt-filesystems.pod:221
1980 msgid "Use I<--uuid> to display UUIDs too."
1984 #: ../cat/virt-filesystems.pod:223
1989 #: ../cat/virt-filesystems.pod:225
1990 msgid "B<--logvols>"
1991 msgstr "B<--logvols>"
1994 #: ../cat/virt-filesystems.pod:227
1995 msgid "B<--logical-volumes>"
1996 msgstr "B<--logical-volumes>"
1999 #: ../cat/virt-filesystems.pod:229
2001 "Display LVM logical volumes. In this mode, these are displayed irrespective "
2002 "of whether the LVs contain filesystems."
2006 #: ../cat/virt-filesystems.pod:232
2007 msgid "B<--no-title>"
2008 msgstr "B<--no-title>"
2011 #: ../cat/virt-filesystems.pod:234
2012 msgid "In I<--long> mode, don't add a title row."
2016 #: ../cat/virt-filesystems.pod:236
2018 "Note that the order of the columns is not fixed, and may change in future "
2019 "versions of virt-filesystems, so using this option may give you unexpected "
2024 #: ../cat/virt-filesystems.pod:240
2029 #: ../cat/virt-filesystems.pod:242
2030 msgid "B<--partitions>"
2031 msgstr "B<--partitions>"
2034 #: ../cat/virt-filesystems.pod:244
2036 "Display partitions. In this mode, these are displayed irrespective of "
2037 "whether the partitions contain filesystems."
2041 #: ../cat/virt-filesystems.pod:247
2046 #: ../cat/virt-filesystems.pod:249
2047 msgid "B<--physvols>"
2048 msgstr "B<--physvols>"
2051 #: ../cat/virt-filesystems.pod:251
2052 msgid "B<--physical-volumes>"
2053 msgstr "B<--physical-volumes>"
2056 #: ../cat/virt-filesystems.pod:253
2057 msgid "Display LVM physical volumes."
2061 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
2066 #: ../cat/virt-filesystems.pod:257
2071 #: ../cat/virt-filesystems.pod:259
2072 msgid "In I<--long> mode, display UUIDs as well."
2076 #: ../cat/virt-filesystems.pod:273
2081 #: ../cat/virt-filesystems.pod:275
2082 msgid "B<--volgroups>"
2083 msgstr "B<--volgroups>"
2086 #: ../cat/virt-filesystems.pod:277
2087 msgid "B<--volume-groups>"
2088 msgstr "B<--volume-groups>"
2091 #: ../cat/virt-filesystems.pod:279
2092 msgid "Display LVM volume groups."
2096 #: ../cat/virt-filesystems.pod:287
2101 #: ../cat/virt-filesystems.pod:289
2103 "Note that columns in the output are subject to reordering and change in "
2104 "future versions of this tool."
2108 #: ../cat/virt-filesystems.pod:294
2113 #: ../cat/virt-filesystems.pod:296
2114 msgid "The filesystem, partition, block device or LVM name."
2118 #: ../cat/virt-filesystems.pod:298
2120 "For device and partition names these are displayed as canonical libguestfs "
2121 "names, so that for example C</dev/sda2> is the second partition on the first "
2126 #: ../cat/virt-filesystems.pod:302
2128 "If the I<--long> option is B<not> specified, then only the name column is "
2129 "shown in the output."
2133 #: ../cat/virt-filesystems.pod:305
2138 #: ../cat/virt-filesystems.pod:307
2139 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2143 #: ../cat/virt-filesystems.pod:309
2148 #: ../cat/virt-filesystems.pod:311
2150 "If there is a filesystem, then this column displays the filesystem type if "
2151 "one could be detected, eg. C<ext4>."
2155 #: ../cat/virt-filesystems.pod:314
2160 #: ../cat/virt-filesystems.pod:316
2162 "If the object has a label (used for identifying and mounting filesystems) "
2163 "then this column contains the label."
2167 #: ../cat/virt-filesystems.pod:319
2172 #: ../cat/virt-filesystems.pod:321
2174 "The partition type byte, displayed as a two digit hexadecimal number. A "
2175 "comprehensive list of partition types can be found here: L<http://www.win."
2176 "tue.nl/~aeb/partitions/partition_types-1.html>"
2180 #: ../cat/virt-filesystems.pod:325
2181 msgid "This is only applicable for DOS (MBR) partitions."
2185 #: ../cat/virt-filesystems.pod:327
2190 #: ../cat/virt-filesystems.pod:329
2192 "The size of the object in bytes. If the I<--human> option is used then the "
2193 "size is displayed in a human-readable form."
2197 #: ../cat/virt-filesystems.pod:332
2202 #: ../cat/virt-filesystems.pod:334
2204 "The parent column records the parent relationship between objects. For "
2205 "example, if the object is a partition, then this column contains the name of "
2206 "the containing device. If the object is a logical volume, then this column "
2207 "is the name of the volume group."
2211 #: ../cat/virt-filesystems.pod:339
2216 #: ../cat/virt-filesystems.pod:341
2218 "If the object has a UUID (used for identifying and mounting filesystems and "
2219 "block devices) then this column contains the UUID as a string."
2223 #: ../cat/virt-filesystems.pod:345
2224 msgid "The UUID is only displayed if the I<--uuid> option is given."
2228 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459
2229 #: ../df/virt-df.pod:217
2230 msgid "NOTE ABOUT CSV FORMAT"
2234 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461
2235 #: ../df/virt-df.pod:219
2237 "Comma-separated values (CSV) is a deceptive format. It I<seems> like it "
2238 "should be easy to parse, but it is definitely not easy to parse."
2242 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464
2243 #: ../df/virt-df.pod:222
2245 "Myth: Just split fields at commas. Reality: This does I<not> work "
2246 "reliably. This example has two columns:"
2250 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467
2251 #: ../df/virt-df.pod:225
2254 " \"foo,bar\",baz\n"
2259 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469
2260 #: ../df/virt-df.pod:227
2262 "Myth: Read the file one line at a time. Reality: This does I<not> work "
2263 "reliably. This example has one row:"
2267 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472
2268 #: ../df/virt-df.pod:230
2277 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475
2278 #: ../df/virt-df.pod:233
2280 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2281 "packaged in major Linux distributions)."
2285 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478
2286 #: ../df/virt-df.pod:236
2288 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2289 "or Python's built-in csv library)."
2293 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481
2294 #: ../df/virt-df.pod:239
2295 msgid "Most spreadsheets and databases can import CSV directly."
2299 #: ../cat/virt-filesystems.pod:387
2301 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2302 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2305 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2306 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2310 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
2311 msgid "Copyright (C) 2010 Red Hat Inc."
2312 msgstr "©Red Hat Inc., 2010"
2315 #: ../cat/virt-ls.pod:5
2316 msgid "virt-ls - List files in a virtual machine"
2320 #: ../cat/virt-ls.pod:9
2323 " virt-ls [--options] -d domname directory [directory ...]\n"
2328 #: ../cat/virt-ls.pod:11
2331 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2336 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:15
2338 msgstr "Старий стиль:"
2341 #: ../cat/virt-ls.pod:15
2344 " virt-ls [--options] domname directory\n"
2349 #: ../cat/virt-ls.pod:17
2352 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2357 #: ../cat/virt-ls.pod:21
2359 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2360 "more from a virtual machine or disk image."
2364 #: ../cat/virt-ls.pod:24
2366 "Multiple directory names can be given, in which case the output from each is "
2371 #: ../cat/virt-ls.pod:27
2373 "To list directories from a libvirt guest use the I<-d> option to specify the "
2374 "name of the guest. For a disk image, use the I<-a> option."
2378 #: ../cat/virt-ls.pod:31
2380 "C<virt-ls> can do many simple file listings. For more complicated cases you "
2381 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2386 #: ../cat/virt-ls.pod:37
2387 msgid "Get a list of all files and directories in a virtual machine:"
2391 #: ../cat/virt-ls.pod:39
2394 " virt-ls -R -d guest /\n"
2399 #: ../cat/virt-ls.pod:41 ../examples/guestfs-testing.pod:182
2400 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2404 #: ../cat/virt-ls.pod:43
2407 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2412 #: ../cat/virt-ls.pod:45 ../examples/guestfs-testing.pod:186
2413 msgid "List all public-writable directories in a Linux virtual machine:"
2417 #: ../cat/virt-ls.pod:47
2420 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2425 #: ../cat/virt-ls.pod:49 ../examples/guestfs-testing.pod:190
2426 msgid "List all Unix domain sockets in a Linux virtual machine:"
2430 #: ../cat/virt-ls.pod:51
2433 " virt-ls -lR -d guest / | grep '^s'\n"
2438 #: ../cat/virt-ls.pod:53 ../examples/guestfs-testing.pod:194
2439 msgid "List all regular files with filenames ending in '.png':"
2443 #: ../cat/virt-ls.pod:55
2446 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2451 #: ../cat/virt-ls.pod:57
2452 msgid "To display files larger than 10MB in home directories:"
2456 #: ../cat/virt-ls.pod:59
2459 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2464 #: ../cat/virt-ls.pod:61 ../examples/guestfs-testing.pod:202
2465 msgid "Find everything modified in the last 7 days:"
2469 #: ../cat/virt-ls.pod:63
2472 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2477 #: ../cat/virt-ls.pod:65 ../examples/guestfs-testing.pod:206
2478 msgid "Find regular files modified in the last 24 hours:"
2482 #: ../cat/virt-ls.pod:67
2485 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2490 #: ../cat/virt-ls.pod:69
2491 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2495 #: ../cat/virt-ls.pod:71
2497 "Find the differences between files in a guest and an earlier snapshot of the "
2502 #: ../cat/virt-ls.pod:74
2505 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2506 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2507 " diff -u old new | less\n"
2512 #: ../cat/virt-ls.pod:78
2514 "The commands above won't find files where the content has changed but the "
2515 "metadata (eg. file size and modification date) is the same. To do that, you "
2516 "need to add the I<--checksum> parameter to both C<virt-ls> commands. I<--"
2517 "checksum> can be quite slow since it has to read and compute a checksum of "
2518 "every regular file in the virtual machine."
2522 #: ../cat/virt-ls.pod:84
2523 msgid "OUTPUT MODES"
2524 msgstr "РЕЖИМИ ВИВЕДЕННЯ ДАНИХ"
2527 #: ../cat/virt-ls.pod:86
2529 "C<virt-ls> has four output modes, controlled by different combinations of "
2530 "the I<-l> and I<-R> options."
2534 #: ../cat/virt-ls.pod:89
2535 msgid "SIMPLE LISTING"
2536 msgstr "ПРОСТИЙ СПИСОК"
2539 #: ../cat/virt-ls.pod:91
2540 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2544 #: ../cat/virt-ls.pod:93
2547 " $ virt-ls -d guest /\n"
2553 " $ virt-ls -d guest /\n"
2560 #: ../cat/virt-ls.pod:98
2561 msgid "LONG LISTING"
2562 msgstr "ДОВГИЙ СПИСОК"
2565 #: ../cat/virt-ls.pod:100
2567 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2568 "(more specifically, like the C<guestfs_ll> function)."
2572 #: ../cat/virt-ls.pod:103
2575 " $ virt-ls -l -d guest /\n"
2577 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
2578 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
2582 " $ virt-ls -l -d guest /\n"
2584 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
2585 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
2590 #: ../cat/virt-ls.pod:109
2592 "Note that while this is useful for displaying a directory, do not try "
2593 "parsing this output in another program. Use L</RECURSIVE LONG LISTING> "
2598 #: ../cat/virt-ls.pod:113
2599 msgid "RECURSIVE LISTING"
2600 msgstr "РЕКУРСИВНИЙ СПИСОК"
2603 #: ../cat/virt-ls.pod:115
2605 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2606 "and directories recursively:"
2610 #: ../cat/virt-ls.pod:118
2613 " $ virt-ls -R -d guest /tmp\n"
2619 " $ virt-ls -R -d guest /tmp\n"
2626 #: ../cat/virt-ls.pod:123
2628 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2629 "converts C<\\0> characters to C<\\n>."
2633 #: ../cat/virt-ls.pod:126
2634 msgid "RECURSIVE LONG LISTING"
2635 msgstr "РЕКУРСИВНИЙ ДОВГИЙ СПИСОК"
2638 #: ../cat/virt-ls.pod:128
2640 "Using I<-lR> options together changes the output to display directories "
2641 "recursively, with file stats, and optionally other features such as "
2642 "checksums and extended attributes."
2646 #: ../cat/virt-ls.pod:132
2648 "Most of the interesting features of C<virt-ls> are only available when using "
2653 #: ../cat/virt-ls.pod:135
2655 "The fields are normally space-separated. Filenames are B<not> quoted, so "
2656 "you cannot use the output in another program (because filenames can contain "
2657 "spaces and other unsafe characters). If the guest was untrusted and someone "
2658 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2659 "on you by creating filenames with embedded newline characters. To B<safely> "
2660 "parse the output in another program, use the I<--csv> (Comma-Separated "
2665 #: ../cat/virt-ls.pod:143
2667 "Note that this output format is completely unrelated to the C<ls -lR> "
2672 #: ../cat/virt-ls.pod:146
2675 " $ virt-ls -lR -d guest /bin\n"
2676 " d 0555 4096 /bin\n"
2677 " - 0755 123 /bin/alsaunmute\n"
2678 " - 0755 28328 /bin/arch\n"
2679 " l 0777 4 /bin/awk -> gawk\n"
2680 " - 0755 27216 /bin/basename\n"
2681 " - 0755 943360 /bin/bash\n"
2685 " $ virt-ls -lR -d guest /bin\n"
2686 " d 0555 4096 /bin\n"
2687 " - 0755 123 /bin/alsaunmute\n"
2688 " - 0755 28328 /bin/arch\n"
2689 " l 0777 4 /bin/awk -> gawk\n"
2690 " - 0755 27216 /bin/basename\n"
2691 " - 0755 943360 /bin/bash\n"
2696 #: ../cat/virt-ls.pod:155
2697 msgid "These basic fields are always shown:"
2701 #: ../cat/virt-ls.pod:159
2706 #: ../cat/virt-ls.pod:161
2708 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2709 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2710 "link), C<s> (socket) or C<u> (unknown)."
2714 #: ../cat/virt-ls.pod:171
2716 msgstr "права доступу"
2719 #: ../cat/virt-ls.pod:173
2720 msgid "The Unix permissions, displayed as a 4 digit octal number."
2724 #: ../cat/virt-ls.pod:175
2729 #: ../cat/virt-ls.pod:177
2731 "The size of the file. This is shown in bytes unless I<-h> or I<--human-"
2732 "readable> option is given, in which case this is shown as a human-readable "
2737 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod: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:3214 ../test-tool/libguestfs-test-tool.pod:95
4698 msgid "ENVIRONMENT VARIABLES"
4699 msgstr "ЗМІННІ СЕРЕДОВИЩА"
4702 #: ../edit/virt-edit.pod:333
4707 #: ../edit/virt-edit.pod:335
4709 "If set, this string is used as the editor. It may contain arguments, eg. C<"
4714 #: ../edit/virt-edit.pod:338
4715 msgid "If not set, C<vi> is used."
4719 #: ../edit/virt-edit.pod:356
4721 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4722 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4723 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4725 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4726 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4727 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4730 #: ../erlang/examples/guestfs-erlang.pod:5
4731 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4735 #: ../erlang/examples/guestfs-erlang.pod:9
4738 " {ok, G} = guestfs:create(),\n"
4739 " ok = guestfs:add_drive_opts(G, Disk,\n"
4740 " [{format, \"raw\"}, {readonly, true}]),\n"
4741 " ok = guestfs:launch(G),\n"
4742 " [Device] = guestfs:list_devices(G),\n"
4743 " ok = guestfs:close(G).\n"
4748 #: ../erlang/examples/guestfs-erlang.pod:18
4750 "This manual page documents how to call libguestfs from the Erlang "
4751 "programming language. This page just documents the differences from the C "
4752 "API and gives some examples. If you are not familiar with using libguestfs, "
4753 "you also need to read L<guestfs(3)>."
4757 #: ../erlang/examples/guestfs-erlang.pod:23
4758 msgid "OPENING AND CLOSING THE HANDLE"
4762 #: ../erlang/examples/guestfs-erlang.pod:25
4764 "The Erlang bindings are implemented using an external program called C<erl-"
4765 "guestfs>. This program must be on the current PATH, or else you should "
4766 "specify the full path to the program:"
4770 #: ../erlang/examples/guestfs-erlang.pod:29
4773 " {ok, G} = guestfs:create().\n"
4778 #: ../erlang/examples/guestfs-erlang.pod:31
4781 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4786 #: ../erlang/examples/guestfs-erlang.pod:33
4787 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4791 #: ../erlang/examples/guestfs-erlang.pod:36
4792 msgid "To close the handle:"
4796 #: ../erlang/examples/guestfs-erlang.pod:38
4799 " ok = guestfs:close(G).\n"
4804 #: ../erlang/examples/guestfs-erlang.pod:40
4805 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4809 #: ../erlang/examples/guestfs-erlang.pod:42
4811 "For functions that take optional arguments, the first arguments are the non-"
4812 "optional ones. The last argument is a list of tuples supplying the "
4813 "remaining optional arguments."
4817 #: ../erlang/examples/guestfs-erlang.pod:46
4820 " ok = guestfs:add_drive_opts(G, Disk,\n"
4821 " [{format, \"raw\"}, {readonly, true}]).\n"
4826 #: ../erlang/examples/guestfs-erlang.pod:49
4827 msgid "If the last argument would be an empty list, you can also omit it:"
4831 #: ../erlang/examples/guestfs-erlang.pod:51
4834 " ok = guestfs:add_drive_opts(G, Disk).\n"
4839 #: ../erlang/examples/guestfs-erlang.pod:53
4840 msgid "RETURN VALUES AND ERRORS"
4844 #: ../erlang/examples/guestfs-erlang.pod:55
4846 "On success, most functions return a C<Result> term (which could be a list, "
4847 "string, tuple etc.). If there is nothing for the function to return, then "
4848 "the atom C<ok> is returned."
4852 #: ../erlang/examples/guestfs-erlang.pod:59
4853 msgid "On error, you would see one of the following tuples:"
4857 #: ../erlang/examples/guestfs-erlang.pod:63
4858 msgid "C<{error, Msg, Errno}>"
4862 #: ../erlang/examples/guestfs-erlang.pod:65
4863 msgid "This indicates an ordinary error from the function."
4867 #: ../erlang/examples/guestfs-erlang.pod:67
4869 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4874 #: ../erlang/examples/guestfs-erlang.pod:70
4875 msgid "C<Errno> can be zero. See L<guestfs(3)/guestfs_last_errno>."
4879 #: ../erlang/examples/guestfs-erlang.pod:72
4880 msgid "C<{unknown, Function}>"
4884 #: ../erlang/examples/guestfs-erlang.pod:74
4886 "This indicates that the function you called is not known. Generally this "
4887 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4888 "which you should not do."
4892 #: ../erlang/examples/guestfs-erlang.pod:78
4893 msgid "C<Function> is the name of the unknown function."
4897 #: ../erlang/examples/guestfs-erlang.pod:80
4898 msgid "C<{unknownarg, Arg}>"
4902 #: ../erlang/examples/guestfs-erlang.pod:82
4904 "This indicates that you called a function with optional arguments, with an "
4905 "unknown argument name."
4909 #: ../erlang/examples/guestfs-erlang.pod:85
4910 msgid "C<Arg> is the name of the unknown argument."
4914 #: ../erlang/examples/guestfs-erlang.pod:89
4915 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4916 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4917 #: ../python/examples/guestfs-python.pod:34
4918 #: ../ruby/examples/guestfs-ruby.pod:28
4919 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4920 msgstr "ПРИКЛАД 1. СТВОРЕННЯ ОБРАЗУ ДИСКА"
4923 #: ../erlang/examples/guestfs-erlang.pod:91
4924 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4925 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4926 #: ../python/examples/guestfs-python.pod:36
4927 #: ../ruby/examples/guestfs-ruby.pod:30
4932 #: ../erlang/examples/guestfs-erlang.pod:93
4933 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4934 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4935 #: ../python/examples/guestfs-python.pod:38
4936 #: ../ruby/examples/guestfs-ruby.pod:32
4937 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4938 msgstr "ПРИКЛАД 2. ПЕРЕВІРКА ОБРАЗУ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
4941 #: ../erlang/examples/guestfs-erlang.pod:95
4942 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4943 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4944 #: ../python/examples/guestfs-python.pod:40
4945 #: ../ruby/examples/guestfs-ruby.pod:34
4950 #: ../erlang/examples/guestfs-erlang.pod:99
4952 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4953 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4954 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>."
4958 #: ../erlang/examples/guestfs-erlang.pod:110
4959 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4960 #: ../examples/guestfs-testing.pod:298 ../fish/guestfish.pod:1296
4961 #: ../fish/virt-copy-in.pod:60 ../fish/virt-copy-out.pod:49
4962 #: ../fish/virt-tar-in.pod:58 ../fish/virt-tar-out.pod:51
4963 #: ../fuse/guestmount.pod:328 ../inspector/virt-inspector.pod:404
4964 #: ../java/examples/guestfs-java.pod:58 ../ocaml/examples/guestfs-ocaml.pod:91
4965 #: ../perl/examples/guestfs-perl.pod:52
4966 #: ../python/examples/guestfs-python.pod:54
4967 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3354
4968 #: ../test-tool/libguestfs-test-tool.pod:106
4973 #: ../erlang/examples/guestfs-erlang.pod:112
4974 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4975 #: ../examples/guestfs-testing.pod:300 ../fish/guestfish.pod:1298
4976 #: ../fish/virt-copy-in.pod:62 ../fish/virt-copy-out.pod:51
4977 #: ../fish/virt-tar-in.pod:60 ../fish/virt-tar-out.pod:53
4978 #: ../fuse/guestmount.pod:330 ../java/examples/guestfs-java.pod:60
4979 #: ../ocaml/examples/guestfs-ocaml.pod:93 ../perl/examples/guestfs-perl.pod:54
4980 #: ../python/examples/guestfs-python.pod:56
4981 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3356
4982 #: ../test-tool/libguestfs-test-tool.pod:108
4983 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4984 msgstr "Richard W.M. Jones (C<rjones at redhat dot com>)"
4987 #: ../erlang/examples/guestfs-erlang.pod:116
4988 #: ../examples/guestfs-testing.pod:304 ../java/examples/guestfs-java.pod:64
4989 #: ../perl/examples/guestfs-perl.pod:58
4990 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4994 #: ../erlang/examples/guestfs-erlang.pod:118
4995 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4996 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4997 #: ../perl/examples/guestfs-perl.pod:60
4998 #: ../python/examples/guestfs-python.pod:62
4999 #: ../ruby/examples/guestfs-ruby.pod:56
5001 "The examples in this manual page may be freely copied, modified and "
5002 "distributed without any restrictions."
5006 #: ../erlang/examples/guestfs-erlang.pod:121
5007 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
5008 #: ../examples/guestfs-testing.pod:306 ../java/examples/guestfs-java.pod:69
5009 #: ../ocaml/examples/guestfs-ocaml.pod:102
5010 #: ../perl/examples/guestfs-perl.pod:63
5011 #: ../python/examples/guestfs-python.pod:65
5012 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3363
5014 "This library is free software; you can redistribute it and/or modify it "
5015 "under the terms of the GNU Lesser General Public License as published by the "
5016 "Free Software Foundation; either version 2 of the License, or (at your "
5017 "option) any later version."
5021 #: ../erlang/examples/guestfs-erlang.pod:126
5022 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
5023 #: ../examples/guestfs-testing.pod:311 ../java/examples/guestfs-java.pod:74
5024 #: ../ocaml/examples/guestfs-ocaml.pod:107
5025 #: ../perl/examples/guestfs-perl.pod:68
5026 #: ../python/examples/guestfs-python.pod:70
5027 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3368
5029 "This library is distributed in the hope that it will be useful, but WITHOUT "
5030 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
5031 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License "
5036 #: ../erlang/examples/guestfs-erlang.pod:131
5037 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
5038 #: ../examples/guestfs-testing.pod:316 ../java/examples/guestfs-java.pod:79
5039 #: ../ocaml/examples/guestfs-ocaml.pod:112
5040 #: ../perl/examples/guestfs-perl.pod:73
5041 #: ../python/examples/guestfs-python.pod:75
5042 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3373
5044 "You should have received a copy of the GNU Lesser General Public License "
5045 "along with this library; if not, write to the Free Software Foundation, "
5046 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
5050 #: ../examples/guestfs-examples.pod:5
5051 msgid "guestfs-examples - Examples of using libguestfs from C"
5055 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
5058 " #include <guestfs.h>\n"
5061 " #include <guestfs.h>\n"
5065 #: ../examples/guestfs-examples.pod:11
5068 " guestfs_h *g = guestfs_create ();\n"
5069 " guestfs_add_drive_ro (g, \"disk.img\");\n"
5070 " guestfs_launch (g);\n"
5073 " guestfs_h *g = guestfs_create ();\n"
5074 " guestfs_add_drive_ro (g, \"disk.img\");\n"
5075 " guestfs_launch (g);\n"
5079 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
5082 " cc prog.c -o prog -lguestfs\n"
5084 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5087 " cc prog.c -o prog -lguestfs\n"
5089 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5093 #: ../examples/guestfs-examples.pod:21
5095 "This manual page contains examples of calling libguestfs from the C "
5096 "programming language. If you are not familiar with using libguestfs, you "
5097 "also need to read L<guestfs(3)>."
5101 #: ../examples/guestfs-examples.pod:35
5103 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
5104 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
5105 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5109 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
5110 #: ../python/examples/guestfs-python.pod:60
5111 #: ../ruby/examples/guestfs-ruby.pod:54
5112 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
5116 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
5121 #: ../examples/guestfs-recipes.pod:5
5123 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
5124 "here. The only way which works for both sorts of output is to just write "
5125 "the URL directly. Do NOT use L<...> for URLs."
5129 #: ../examples/guestfs-recipes.pod:9
5131 "We break with tradition here and don't use ALL CAPS for the section "
5132 "headings, as this makes them much easier to read."
5136 #: ../examples/guestfs-recipes.pod:16
5137 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
5141 #: ../examples/guestfs-recipes.pod:20
5143 "This page contains recipes for and links to things you can do using "
5144 "libguestfs, L<guestfish(1)> and the virt tools."
5148 #: ../examples/guestfs-recipes.pod:23
5149 msgid "Audit a virtual machine for setuid files"
5153 #: ../examples/guestfs-recipes.pod:25
5155 "The link below contains a small program which can be used to audit a Linux "
5156 "virtual machine to see what setuid and setgid files it contains."
5160 #: ../examples/guestfs-recipes.pod:28
5162 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
5167 #: ../examples/guestfs-recipes.pod:30
5168 msgid "Change the background image in a Windows XP VM"
5172 #: ../examples/guestfs-recipes.pod:32
5174 "The links below explain how to use L<guestfish(1)> to change the background "
5175 "image for a user of a Windows XP VM. Unfortunately the technique appears to "
5176 "be substantially different for each version of Windows."
5180 #: ../examples/guestfs-recipes.pod:37
5182 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
5183 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
5187 #: ../examples/guestfs-recipes.pod:40
5188 msgid "Cloning a virtual machine (Linux)"
5192 #: ../examples/guestfs-recipes.pod:42
5194 "The guestfish technique described in the link below works well for most "
5195 "Linux VMs. Depending on the Linux distro you may need to change the paths "
5200 #: ../examples/guestfs-recipes.pod:46
5202 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5207 #: ../examples/guestfs-recipes.pod:48
5209 "Avoid L<virt-clone(1)>. Currently what to do about virt-clone is under "
5214 #: ../examples/guestfs-recipes.pod:51
5215 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5219 #: ../examples/guestfs-recipes.pod:53
5220 msgid "Cloning a virtual machine (Windows)"
5224 #: ../examples/guestfs-recipes.pod:55
5226 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5227 "straightforward. Currently there is code in the Aeolus Oz project which "
5228 "does this (using libguestfs). As part of our review of the virt-clone tool, "
5229 "we may add sysprepping ability."
5233 #: ../examples/guestfs-recipes.pod:60
5235 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5236 "list/2011-May/msg00019.html"
5240 #: ../examples/guestfs-recipes.pod:63
5241 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5245 #: ../examples/guestfs-recipes.pod:65
5246 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5250 #: ../examples/guestfs-recipes.pod:67
5253 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5258 #: ../examples/guestfs-recipes.pod:69
5259 msgid "To export just a subdirectory, eg. C</files>, do:"
5263 #: ../examples/guestfs-recipes.pod:71
5266 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5271 #: ../examples/guestfs-recipes.pod:73
5272 msgid "Create empty disk images"
5276 #: ../examples/guestfs-recipes.pod:75
5278 "You can use the L<guestfish(1)> I<-N> option to create empty disk images. "
5279 "The useful guide below explains the options available."
5283 #: ../examples/guestfs-recipes.pod:78
5285 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5290 #: ../examples/guestfs-recipes.pod:80
5291 msgid "Dump raw filesystem content from inside a disk image or VM"
5295 #: ../examples/guestfs-recipes.pod:82
5297 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5298 "filesystem content from any filesystem in a disk image or a VM (even one "
5299 "which is encrypted or buried inside an LV):"
5303 #: ../examples/guestfs-recipes.pod:86
5306 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5311 #: ../examples/guestfs-recipes.pod:88
5314 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5319 #: ../examples/guestfs-recipes.pod:90
5320 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5324 #: ../examples/guestfs-recipes.pod:92
5325 msgid "Edit grub configuration in a VM"
5329 #: ../examples/guestfs-recipes.pod:94
5330 msgid "You can use this to:"
5334 #: ../examples/guestfs-recipes.pod:100
5335 msgid "Fix a virtual machine that does not boot."
5339 #: ../examples/guestfs-recipes.pod:104
5340 msgid "Change which kernel is used to boot the VM."
5344 #: ../examples/guestfs-recipes.pod:108
5345 msgid "Change kernel command line options."
5349 #: ../examples/guestfs-recipes.pod:112
5350 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5354 #: ../examples/guestfs-recipes.pod:114
5357 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5362 #: ../examples/guestfs-recipes.pod:116
5364 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5369 #: ../examples/guestfs-recipes.pod:119
5372 " virt-rescue -d BrokenGuest\n"
5377 #: ../examples/guestfs-recipes.pod:121
5378 msgid "Export any directory from a VM"
5382 #: ../examples/guestfs-recipes.pod:123
5384 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5388 #: ../examples/guestfs-recipes.pod:126 ../examples/guestfs-testing.pod:93
5391 " virt-copy-out -d Guest /home .\n"
5396 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5397 #: ../fish/guestfish-actions.pod: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:2792
6085 #: ../examples/guestfs-testing.pod:56
6088 " virt-alignment-scan -d Guest\n"
6093 #: ../examples/guestfs-testing.pod:58
6094 msgid "Does the alignment report match how the guest partitions are aligned?"
6098 #: ../examples/guestfs-testing.pod:60
6101 #| " virt-cat domname file\n"
6103 msgid "Run virt-cat on some files in guests."
6105 " virt-cat назва_домену файл\n"
6109 #: ../examples/guestfs-testing.pod:62
6110 msgid "L<virt-cat(1)> can display files from guests. For a Linux guest, try:"
6114 #: ../examples/guestfs-testing.pod:64
6117 #| " virt-cat -d mydomain /etc/fstab\n"
6120 " virt-cat LinuxGuest /etc/passwd\n"
6123 " virt-cat -d mydomain /etc/fstab\n"
6127 #: ../examples/guestfs-testing.pod:66
6128 msgid "A recent feature is support for Windows paths, for example:"
6132 #: ../examples/guestfs-testing.pod:68
6135 " virt-cat WindowsGuest 'c:\\windows\\win.ini'\n"
6140 #: ../examples/guestfs-testing.pod:70
6142 "An even better test is if you have a Windows guest with multiple drives. Do "
6143 "C<D:>, C<E:> etc paths work correctly?"
6147 #: ../examples/guestfs-testing.pod:73
6148 msgid "B<*> Copy some files into a B<shut off> guest."
6152 #: ../examples/guestfs-testing.pod:75
6154 "L<virt-copy-in(1)> can recursively copy files and directories into a guest "
6159 #: ../examples/guestfs-testing.pod:78
6162 " virt-copy-in -d Guest /etc /tmp\n"
6167 #: ../examples/guestfs-testing.pod:80
6169 "This should copy local directory C</etc> to C</tmp/etc> in the guest "
6170 "(recursively). If you boot the guest, can you see all of the copied files "
6175 #: ../examples/guestfs-testing.pod:84
6176 msgid "Shut the guest down and try copying multiple files and directories:"
6180 #: ../examples/guestfs-testing.pod:86
6183 " virt-copy-in -d Guest /home /etc/issue /tmp\n"
6188 #: ../examples/guestfs-testing.pod:88
6189 msgid "Copy some files out of a guest."
6193 #: ../examples/guestfs-testing.pod:90
6195 "L<virt-copy-out(1)> can recursively copy files and directories out of a "
6196 "guest or disk image."
6200 #: ../examples/guestfs-testing.pod:95
6201 msgid "Note the final space and period in the command is not a typo."
6205 #: ../examples/guestfs-testing.pod:97
6206 msgid "This should copy C</home> from the guest into the current directory."
6210 #: ../examples/guestfs-testing.pod:99
6211 msgid "Run virt-df."
6215 #: ../examples/guestfs-testing.pod:101
6216 msgid "L<virt-df(1)> lists disk space. Run:"
6220 #: ../examples/guestfs-testing.pod:103
6233 #: ../examples/guestfs-testing.pod:105
6235 "You can try comparing this to the results from L<df(1)> inside the guest, "
6236 "but there are some provisos:"
6240 #: ../examples/guestfs-testing.pod:112
6241 msgid "The guest must be idle."
6245 #: ../examples/guestfs-testing.pod:116
6246 msgid "The guest disks must be synched using L<sync(1)>."
6250 #: ../examples/guestfs-testing.pod:120
6252 "Any action such as booting the guest will write log files causing the "
6253 "numbers to change."
6257 #: ../examples/guestfs-testing.pod:125
6259 "We don't guarantee that the numbers will be identical even under these "
6260 "circumstances. They should be similar. It would indicate a bug if you saw "
6261 "greatly differing numbers."
6265 #: ../examples/guestfs-testing.pod:129
6266 msgid "Try importing virt-df CSV output into a spreadsheet or database."
6270 #: ../examples/guestfs-testing.pod:131 ../src/guestfs.pod:3088
6275 #: ../examples/guestfs-testing.pod:133
6278 " virt-df --csv > /tmp/report.csv\n"
6283 #: ../examples/guestfs-testing.pod:135
6285 "Now try to load this into your favorite spreadsheet or database. Are the "
6286 "results reproduced faithfully in the spreadsheet/database?"
6290 #: ../examples/guestfs-testing.pod:138
6292 "http://www.postgresql.org/docs/8.1/static/sql-copy.html http://dev.mysql.com/"
6293 "doc/refman/5.1/en/load-data.html"
6297 #: ../examples/guestfs-testing.pod:141
6298 msgid "B<*> Edit a file in a B<shut off> guest."
6302 #: ../examples/guestfs-testing.pod:143
6304 "L<virt-edit(1)> can edit files in guests. Try this command on a RHEL or "
6309 #: ../examples/guestfs-testing.pod:146
6312 " virt-edit LinuxGuest /etc/sysconfig/network\n"
6317 #: ../examples/guestfs-testing.pod:148
6318 msgid "On other Linux guests try editing other files such as:"
6322 #: ../examples/guestfs-testing.pod:150
6325 " virt-edit LinuxGuest /etc/motd\n"
6330 #: ../examples/guestfs-testing.pod:152
6331 msgid "Are the changes seen inside the guest when it is booted?"
6335 #: ../examples/guestfs-testing.pod:154
6336 msgid "Display the filesystems / partitions / LVs in a guest."
6340 #: ../examples/guestfs-testing.pod:156
6342 "L<virt-filesystems(1)> can be used to display filesystems in a guest. Try "
6343 "this command on any disk image or guest:"
6347 #: ../examples/guestfs-testing.pod:159
6350 #| " virt-filesystems --format=raw -a disk.img\n"
6353 " virt-filesystems -a /path/to/disk.img --all --long -h\n"
6356 " virt-filesystems --format=raw -a диск.img\n"
6360 #: ../examples/guestfs-testing.pod:163
6363 #| " virt-filesystems [--options] -d domname\n"
6366 " virt-filesystems -d Guest --all --long -h\n"
6369 " virt-filesystems [--параметри] -d назва_домену\n"
6373 #: ../examples/guestfs-testing.pod:165
6374 msgid "Do the results match what is seen in the guest?"
6378 #: ../examples/guestfs-testing.pod:167
6379 msgid "Run virt-inspector on all your guests."
6383 #: ../examples/guestfs-testing.pod:169
6385 "Use L<virt-inspector(1)> to get a report on all of your guests or disk "
6390 #: ../examples/guestfs-testing.pod:172
6393 #| " virt-cat disk.img file\n"
6396 " virt-inspector -a /path/to/disk.img | less\n"
6399 " virt-cat диск.img файл\n"
6403 #: ../examples/guestfs-testing.pod:176
6406 " virt-inspector -d Guest | less\n"
6411 #: ../examples/guestfs-testing.pod:178
6412 msgid "Do the results match what is actually in the guest?"
6416 #: ../examples/guestfs-testing.pod:180
6417 msgid "Try the auditing features of virt-ls on all your guests."
6421 #: ../examples/guestfs-testing.pod:184
6424 #| " $ virt-ls -R -d guest /tmp\n"
6430 " virt-ls -lR -d Guest / | grep '^- [42]'\n"
6433 " $ virt-ls -R -d guest /tmp\n"
6440 #: ../examples/guestfs-testing.pod:188
6443 #| " $ virt-ls -R -d guest /tmp\n"
6449 " virt-ls -lR -d Guest / | grep '^d ...7'\n"
6452 " $ virt-ls -R -d guest /tmp\n"
6459 #: ../examples/guestfs-testing.pod:192
6462 #| " $ virt-ls -R -d guest /tmp\n"
6468 " virt-ls -lR -d Guest / | grep '^s'\n"
6471 " $ virt-ls -R -d guest /tmp\n"
6478 #: ../examples/guestfs-testing.pod:196
6481 " virt-ls -lR -d Guest / | grep -i '^-.*\\.png$'\n"
6486 #: ../examples/guestfs-testing.pod:198
6487 msgid "Display files larger than 10MB in home directories:"
6491 #: ../examples/guestfs-testing.pod:200
6494 " virt-ls -lR -d Guest /home | awk '$3 > 10*1024*1024'\n"
6499 #: ../examples/guestfs-testing.pod:204
6502 " virt-ls -lR -d Guest --time-days / | awk '$6 <= 7'\n"
6507 #: ../examples/guestfs-testing.pod:208
6510 " virt-ls -lR -d Guest --time-days / | grep '^-' | awk '$6 < 1'\n"
6515 #: ../examples/guestfs-testing.pod:210
6516 msgid "Do the results match what is in the guest?"
6520 #: ../examples/guestfs-testing.pod:212
6521 msgid "Create a disk image from a tarball."
6525 #: ../examples/guestfs-testing.pod:214
6527 "Use L<virt-make-fs(1)> to create a disk image from any tarball that you "
6532 #: ../examples/guestfs-testing.pod:217
6535 " virt-make-fs --partition=mbr --type=vfat /any/tarball.tar.gz output.img\n"
6540 #: ../examples/guestfs-testing.pod:219
6542 "Add 'output.img' as a raw disk to an existing guest. Check the guest can "
6543 "see the files. This test is particularly useful if you try it with a "
6548 #: ../examples/guestfs-testing.pod:223
6549 msgid "Try other partitioning schemes, eg. I<--partition=gpt>."
6553 #: ../examples/guestfs-testing.pod:225
6554 msgid "Try other filesystem formats, eg. I<--type=ntfs>, I<--type=ext2>."
6558 #: ../examples/guestfs-testing.pod:227
6559 msgid "B<*> Run virt-rescue on a B<shut off> disk image or guest."
6563 #: ../examples/guestfs-testing.pod:229
6565 "Use L<virt-rescue(1)> to examine, rescue or repair a B<shut off> guest or "
6570 #: ../examples/guestfs-testing.pod:232
6573 #| " virt-cat disk.img file\n"
6576 " virt-rescue -a /path/to/disk.img\n"
6579 " virt-cat диск.img файл\n"
6583 #: ../examples/guestfs-testing.pod:236
6586 " virt-rescue -d Guest\n"
6591 #: ../examples/guestfs-testing.pod:238
6592 msgid "Can you use ordinary shell commands to examine the guest?"
6596 #: ../examples/guestfs-testing.pod:240
6597 msgid "B<*> Resize your guests."
6601 #: ../examples/guestfs-testing.pod:242
6603 "Use L<virt-resize(1)> to give a guest some more disk space. For example, if "
6604 "you have a disk image that is smaller than 30G, increase it to 30G by doing:"
6608 #: ../examples/guestfs-testing.pod:246
6611 " truncate -s 30G newdisk.img\n"
6612 " virt-filesystems -a /path/to/olddisk.img --all --long -h\n"
6613 " virt-resize /path/to/olddisk.img newdisk.img --expand /dev/sda1\n"
6614 " qemu-kvm -m 1024 -hda newdisk.img\n"
6619 #: ../examples/guestfs-testing.pod:251
6620 msgid "Does the guest still boot? Try expanding other partitions."
6624 #: ../examples/guestfs-testing.pod:253
6625 msgid "B<*> Sparsify a guest disk."
6629 #: ../examples/guestfs-testing.pod:255
6630 msgid "Using L<virt-sparsify(1)>, make a disk image more sparse:"
6634 #: ../examples/guestfs-testing.pod:257
6637 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
6640 " virt-sparsify /path/to/olddisk.img newdisk.img\n"
6643 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
6647 #: ../examples/guestfs-testing.pod:259
6649 "Is C<newdisk.img> still bootable after sparsifying? Is the resulting disk "
6650 "image smaller (use C<du> to check)?"
6654 #: ../examples/guestfs-testing.pod:262
6655 msgid "B<*> \"sysprep\" a B<shut off> Linux guest."
6659 #: ../examples/guestfs-testing.pod:264
6661 "Note that this really will mess up an existing guest, so it's better to "
6662 "clone the guest before trying this."
6666 #: ../examples/guestfs-testing.pod:267
6669 " virt-sysprep --hostname newhost.example.com -a /path/to/disk.img\n"
6674 #: ../examples/guestfs-testing.pod:269
6676 "Was the sysprep successful? After booting, what changes were made and were "
6681 #: ../examples/guestfs-testing.pod:272
6682 msgid "Dump the Windows Registry from your Windows guests."
6686 #: ../examples/guestfs-testing.pod:274
6688 "Use L<virt-win-reg(1)> to dump out the Windows Registry from any Windows "
6689 "guests that you have."
6693 #: ../examples/guestfs-testing.pod:277
6696 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\Software' |\n"
6702 #: ../examples/guestfs-testing.pod:280
6705 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\System' |\n"
6711 #: ../examples/guestfs-testing.pod:283
6712 msgid "Does the output match running C<regedit> inside the guest?"
6716 #: ../examples/guestfs-testing.pod:285
6718 "A recent feature is the ability to dump user registries, so try this, "
6719 "replacing I<username> with the name of a local user in the guest:"
6723 #: ../examples/guestfs-testing.pod:288
6726 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKEY_USERS\\username' |\n"
6732 #: ../examples/guestfs-testing.pod:293
6735 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
6736 #| "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
6738 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<http://libguestfs."
6741 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
6742 "tar-out(1)>, L<http://libguestfs.org/>."
6745 #: ../fish/guestfish-actions.pod:1
6750 #: ../fish/guestfish-actions.pod:3
6753 " add-cdrom filename\n"
6758 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
6759 msgid "This function adds a virtual CD-ROM disk image to the guest."
6763 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
6764 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
6768 #: ../fish/guestfish-actions.pod:15
6770 "This call checks for the existence of C<filename>. This stops you from "
6771 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6772 "and C<http:> URLs. To specify those, use the general L</config> call "
6777 #: ../fish/guestfish-actions.pod:22
6779 "If you just want to add an ISO file (often you use this as an efficient way "
6780 "to transfer large files into the guest), then you should probably use L</add-"
6781 "drive-ro> instead."
6785 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214
6786 #: ../fish/guestfish-actions.pod:228
6788 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
6793 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217
6794 #: ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod: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:2916
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:193
19472 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
19476 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
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
19579 #: ../fish/guestfish-commands.pod:53
19582 " display filename\n"
19587 #: ../fish/guestfish-commands.pod:55
19589 "Use C<display> (a graphical display program) to display an image file. It "
19590 "downloads the file, and runs C<display> on it."
19594 #: ../fish/guestfish-commands.pod:58
19596 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
19597 "environment variable. For example to use the GNOME display program:"
19601 #: ../fish/guestfish-commands.pod:61
19604 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
19609 #: ../fish/guestfish-commands.pod:63
19610 msgid "See also L<display(1)>."
19611 msgstr "Див. також L<display(1)>."
19614 #: ../fish/guestfish-commands.pod:65
19619 #: ../fish/guestfish-commands.pod:67
19622 " echo [params ...]\n"
19625 " echo [параметри...]\n"
19629 #: ../fish/guestfish-commands.pod:69
19630 msgid "This echos the parameters to the terminal."
19634 #: ../fish/guestfish-commands.pod:71
19639 #: ../fish/guestfish-commands.pod:73
19644 #: ../fish/guestfish-commands.pod:75
19649 #: ../fish/guestfish-commands.pod:77
19655 " edit назва_файла\n"
19659 #: ../fish/guestfish-commands.pod:79
19661 "This is used to edit a file. It downloads the file, edits it locally using "
19662 "your editor, then uploads the result."
19666 #: ../fish/guestfish-commands.pod:82
19668 "The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
19669 "or C<emacs> you will get those corresponding editors."
19673 #: ../fish/guestfish-commands.pod:86
19678 #: ../fish/guestfish-commands.pod:88
19681 " glob command args...\n"
19684 " glob команда параметри...\n"
19688 #: ../fish/guestfish-commands.pod:90
19690 "Expand wildcards in any paths in the args list, and run C<command> "
19691 "repeatedly on each matching path."
19695 #: ../fish/guestfish-commands.pod:93
19696 msgid "See L</WILDCARDS AND GLOBBING>."
19697 msgstr "Див. L</WILDCARDS AND GLOBBING>."
19700 #: ../fish/guestfish-commands.pod:95
19705 #: ../fish/guestfish-commands.pod:97
19708 " hexedit <filename|device>\n"
19709 " hexedit <filename|device> <max>\n"
19710 " hexedit <filename|device> <start> <max>\n"
19715 #: ../fish/guestfish-commands.pod:101
19717 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
19722 #: ../fish/guestfish-commands.pod:104
19724 "This command works by downloading potentially the whole file or device, "
19725 "editing it locally, then uploading it. If the file or device is large, you "
19726 "have to specify which part you wish to edit by using C<max> and/or C<start> "
19727 "C<max> parameters. C<start> and C<max> are specified in bytes, with the "
19728 "usual modifiers allowed such as C<1M> (1 megabyte)."
19732 #: ../fish/guestfish-commands.pod:111
19733 msgid "For example to edit the first few sectors of a disk you might do:"
19737 #: ../fish/guestfish-commands.pod:114
19740 " hexedit /dev/sda 1M\n"
19743 " hexedit /dev/sda 1M\n"
19747 #: ../fish/guestfish-commands.pod:116
19749 "which would allow you to edit anywhere within the first megabyte of the disk."
19753 #: ../fish/guestfish-commands.pod:119
19754 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
19758 #: ../fish/guestfish-commands.pod:121
19761 " hexedit /dev/sda1 0x400 0x400\n"
19764 " hexedit /dev/sda1 0x400 0x400\n"
19768 #: ../fish/guestfish-commands.pod:123
19769 msgid "(assuming the superblock is in the standard location)."
19773 #: ../fish/guestfish-commands.pod:125
19775 "This command requires the external L<hexedit(1)> program. You can specify "
19776 "another program to use by setting the C<HEXEDITOR> environment variable."
19780 #: ../fish/guestfish-commands.pod:129
19781 msgid "See also L</hexdump>."
19782 msgstr "Див. також L</hexdump>."
19785 #: ../fish/guestfish-commands.pod:131
19790 #: ../fish/guestfish-commands.pod:133
19798 #: ../fish/guestfish-commands.pod:135
19800 "Change the local directory, ie. the current directory of guestfish itself."
19804 #: ../fish/guestfish-commands.pod:138
19805 msgid "Note that C<!cd> won't do what you might expect."
19809 #: ../fish/guestfish-commands.pod:140
19814 #: ../fish/guestfish-commands.pod:142
19819 #: ../fish/guestfish-commands.pod:144
19829 #: ../fish/guestfish-commands.pod:146
19830 msgid "Opens the manual page for guestfish."
19834 #: ../fish/guestfish-commands.pod:148
19839 #: ../fish/guestfish-commands.pod:150
19844 #: ../fish/guestfish-commands.pod:152
19852 #: ../fish/guestfish-commands.pod:154
19860 #: ../fish/guestfish-commands.pod:156
19861 msgid "This is used to view a file."
19865 #: ../fish/guestfish-commands.pod:158
19867 "The default viewer is C<$PAGER>. However if you use the alternate command "
19868 "C<less> you will get the C<less> command specifically."
19872 #: ../fish/guestfish-commands.pod:161
19877 #: ../fish/guestfish-commands.pod:163
19885 #: ../fish/guestfish-commands.pod:165
19887 "Close and reopen the libguestfs handle. It is not necessary to use this "
19888 "normally, because the handle is closed properly when guestfish exits. "
19889 "However this is occasionally useful for testing."
19893 #: ../fish/guestfish-commands.pod:169
19898 #: ../fish/guestfish-commands.pod:171
19901 " setenv VAR value\n"
19906 #: ../fish/guestfish-commands.pod:173
19907 msgid "Set the environment variable C<VAR> to the string C<value>."
19911 #: ../fish/guestfish-commands.pod:175
19913 "To print the value of an environment variable use a shell command such as:"
19917 #: ../fish/guestfish-commands.pod:178
19925 #: ../fish/guestfish-commands.pod:180
19930 #: ../fish/guestfish-commands.pod:182
19933 " sparse filename size\n"
19938 #: ../fish/guestfish-commands.pod:184
19940 "This creates an empty sparse file of the given size, and then adds so it can "
19941 "be further examined."
19945 #: ../fish/guestfish-commands.pod:187
19947 "In all respects it works the same as the L</alloc> command, except that the "
19948 "image file is allocated sparsely, which means that disk blocks are not "
19949 "assigned to the file until they are needed. Sparse disk files only use "
19950 "space when written to, but they are slower and there is a danger you could "
19951 "run out of real disk space during a write operation."
19955 #: ../fish/guestfish-commands.pod:197
19960 #: ../fish/guestfish-commands.pod:199
19970 #: ../fish/guestfish-commands.pod:201
19972 "This command returns a list of the optional groups known to the daemon, and "
19973 "indicates which ones are supported by this build of the libguestfs appliance."
19977 #: ../fish/guestfish-commands.pod:205
19978 msgid "See also L<guestfs(3)/AVAILABILITY>."
19979 msgstr "Див. також L<guestfs(3)/AVAILABILITY>."
19982 #: ../fish/guestfish-commands.pod:207
19987 #: ../fish/guestfish-commands.pod:209
19990 " time command args...\n"
19995 #: ../fish/guestfish-commands.pod:211
19997 "Run the command as usual, but print the elapsed time afterwards. This can "
19998 "be useful for benchmarking operations."
20002 #: ../fish/guestfish-commands.pod:214
20007 #: ../fish/guestfish-commands.pod:216
20015 #: ../fish/guestfish-commands.pod:218
20016 msgid "Remove C<VAR> from the environment."
20020 #: ../fish/guestfish.pod:5
20021 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
20025 #: ../fish/guestfish.pod:9
20028 " guestfish [--options] [commands]\n"
20033 #: ../fish/guestfish.pod:11
20041 #: ../fish/guestfish.pod:13
20044 " guestfish [--ro|--rw] -a disk.img\n"
20049 #: ../fish/guestfish.pod:15
20052 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
20057 #: ../fish/guestfish.pod:17
20060 " guestfish -d libvirt-domain\n"
20065 #: ../fish/guestfish.pod:19
20068 " guestfish [--ro|--rw] -a disk.img -i\n"
20073 #: ../fish/guestfish.pod:21
20076 " guestfish -d libvirt-domain -i\n"
20081 #: ../fish/guestfish.pod:25
20083 "Using guestfish in read/write mode on live virtual machines can be "
20084 "dangerous, potentially causing disk corruption. Use the I<--ro> (read-only) "
20085 "option to use guestfish safely if the disk image or virtual machine might be "
20090 #: ../fish/guestfish.pod:32
20092 "Guestfish is a shell and command-line tool for examining and modifying "
20093 "virtual machine filesystems. It uses libguestfs and exposes all of the "
20094 "functionality of the guestfs API, see L<guestfs(3)>."
20098 #: ../fish/guestfish.pod:36
20100 "Guestfish gives you structured access to the libguestfs API, from shell "
20101 "scripts or the command line or interactively. If you want to rescue a "
20102 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
20107 #: ../fish/guestfish.pod:43
20108 msgid "As an interactive shell"
20112 #: ../fish/guestfish.pod:45
20120 #: ../fish/guestfish.pod:47
20123 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
20124 " editing virtual machine filesystems.\n"
20129 #: ../fish/guestfish.pod:50
20132 " Type: 'help' for a list of commands\n"
20133 " 'man' to read the manual\n"
20134 " 'quit' to quit the shell\n"
20139 #: ../fish/guestfish.pod:54
20142 " ><fs> add-ro disk.img\n"
20144 " ><fs> list-filesystems\n"
20145 " /dev/sda1: ext4\n"
20146 " /dev/vg_guest/lv_root: ext4\n"
20147 " /dev/vg_guest/lv_swap: swap\n"
20148 " ><fs> mount /dev/vg_guest/lv_root /\n"
20149 " ><fs> cat /etc/fstab\n"
20151 " # Created by anaconda\n"
20158 #: ../fish/guestfish.pod:67
20159 msgid "From shell scripts"
20163 #: ../fish/guestfish.pod:69
20164 msgid "Create a new C</etc/motd> file in a guest or disk image:"
20168 #: ../fish/guestfish.pod:71
20171 " guestfish <<_EOF_\n"
20174 " mount /dev/vg_guest/lv_root /\n"
20175 " write /etc/motd \"Welcome, new users\"\n"
20181 #: ../fish/guestfish.pod:78
20182 msgid "List the LVM logical volumes in a disk image:"
20186 #: ../fish/guestfish.pod:80
20189 " guestfish -a disk.img --ro <<_EOF_\n"
20197 #: ../fish/guestfish.pod:85
20198 msgid "List all the filesystems in a disk image:"
20202 #: ../fish/guestfish.pod:87
20205 " guestfish -a disk.img --ro <<_EOF_\n"
20207 " list-filesystems\n"
20213 #: ../fish/guestfish.pod:92
20214 msgid "On one command line"
20218 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
20219 msgid "Update C</etc/resolv.conf> in a guest:"
20223 #: ../fish/guestfish.pod:96
20227 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
20228 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
20233 #: ../fish/guestfish.pod:100
20234 msgid "Edit C</boot/grub/grub.conf> interactively:"
20238 #: ../fish/guestfish.pod:102
20241 " guestfish --rw --add disk.img \\\n"
20242 " --mount /dev/vg_guest/lv_root \\\n"
20243 " --mount /dev/sda1:/boot \\\n"
20244 " edit /boot/grub/grub.conf\n"
20249 #: ../fish/guestfish.pod:107
20250 msgid "Mount disks automatically"
20254 #: ../fish/guestfish.pod:109
20256 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
20260 #: ../fish/guestfish.pod:112
20263 " guestfish --ro -a disk.img -i cat /etc/group\n"
20268 #: ../fish/guestfish.pod:114
20271 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
20276 #: ../fish/guestfish.pod:116
20277 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
20281 #: ../fish/guestfish.pod:118
20284 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
20289 #: ../fish/guestfish.pod:120
20290 msgid "As a script interpreter"
20294 #: ../fish/guestfish.pod:122
20295 msgid "Create a 100MB disk containing an ext2-formatted partition:"
20299 #: ../fish/guestfish.pod:124
20302 " #!/usr/bin/guestfish -f\n"
20303 " sparse test1.img 100M\n"
20305 " part-disk /dev/sda mbr\n"
20306 " mkfs ext2 /dev/sda1\n"
20311 #: ../fish/guestfish.pod:130
20312 msgid "Start with a prepared disk"
20316 #: ../fish/guestfish.pod:132
20318 "An alternate way to create a 100MB disk called C<test1.img> containing a "
20319 "single ext2-formatted partition:"
20323 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
20326 " guestfish -N fs\n"
20331 #: ../fish/guestfish.pod:137
20332 msgid "To list what is available do:"
20336 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
20339 " guestfish -N help | less\n"
20344 #: ../fish/guestfish.pod:141
20345 msgid "Remote control"
20346 msgstr "Дистанційне керування"
20349 #: ../fish/guestfish.pod:143
20352 " eval \"`guestfish --listen`\"\n"
20353 " guestfish --remote add-ro disk.img\n"
20354 " guestfish --remote run\n"
20355 " guestfish --remote lvs\n"
20358 " eval \"`guestfish --listen`\"\n"
20359 " guestfish --remote add-ro disk.img\n"
20360 " guestfish --remote run\n"
20361 " guestfish --remote lvs\n"
20365 #: ../fish/guestfish.pod:154
20366 msgid "Displays general help on options."
20370 #: ../fish/guestfish.pod:158
20371 msgid "B<--cmd-help>"
20372 msgstr "B<--cmd-help>"
20375 #: ../fish/guestfish.pod:160
20376 msgid "Lists all available guestfish commands."
20380 #: ../fish/guestfish.pod:162
20382 msgstr "B<-h команда>"
20385 #: ../fish/guestfish.pod:164
20386 msgid "B<--cmd-help cmd>"
20387 msgstr "B<--cmd-help команда>"
20390 #: ../fish/guestfish.pod:166
20391 msgid "Displays detailed help on a single command C<cmd>."
20395 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
20396 msgid "B<-a image>"
20397 msgstr "B<-a образ>"
20400 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
20401 msgid "B<--add image>"
20402 msgstr "B<--add образ>"
20405 #: ../fish/guestfish.pod:172
20406 msgid "Add a block device or virtual machine image to the shell."
20410 #: ../fish/guestfish.pod:177
20412 "Using this flag is mostly equivalent to using the C<add> command, with "
20413 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
20414 "the I<--format=...> flag was given."
20418 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
20420 "When used in conjunction with the I<-d> option, this specifies the libvirt "
20421 "URI to use. The default is to use the default libvirt connection."
20425 #: ../fish/guestfish.pod:189
20430 #: ../fish/guestfish.pod:191
20432 "If using the I<--listen> option and a csh-like shell, use this option. See "
20433 "section L</REMOTE CONTROL AND CSH> below."
20437 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
20438 msgid "B<-d libvirt-domain>"
20439 msgstr "B<-d домен-libvirt>"
20442 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
20443 msgid "B<--domain libvirt-domain>"
20444 msgstr "B<--domain домен-libvirt>"
20447 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
20449 "Add disks from the named libvirt domain. If the I<--ro> option is also "
20450 "used, then any libvirt domain can be used. However in write mode, only "
20451 "libvirt domains which are shut down can be named here."
20455 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
20456 msgid "Domain UUIDs can be used instead of names."
20460 #: ../fish/guestfish.pod:204
20462 "Using this flag is mostly equivalent to using the C<add-domain> command, "
20463 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
20464 "if the I<--format:...> flag was given."
20468 #: ../fish/guestfish.pod:208
20473 #: ../fish/guestfish.pod:210
20474 msgid "B<--no-dest-paths>"
20475 msgstr "B<--no-dest-paths>"
20478 #: ../fish/guestfish.pod:212
20480 "Don't tab-complete paths on the guest filesystem. It is useful to be able "
20481 "to hit the tab key to complete paths on the guest filesystem, but this "
20482 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
20483 "allow this feature to be disabled."
20487 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
20489 "When prompting for keys and passphrases, guestfish normally turns echoing "
20490 "off so you cannot see what you are typing. If you are not worried about "
20491 "Tempest attacks and there is no one else in the room you can specify this "
20492 "flag to see what you are typing."
20496 #: ../fish/guestfish.pod:224
20498 msgstr "B<-f файл>"
20501 #: ../fish/guestfish.pod:226
20502 msgid "B<--file file>"
20503 msgstr "B<--file файл>"
20506 #: ../fish/guestfish.pod:228
20507 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
20511 #: ../fish/guestfish.pod:231
20514 " #!/usr/bin/guestfish -f\n"
20517 " #!/usr/bin/guestfish -f\n"
20521 #: ../fish/guestfish.pod:244
20524 " guestfish --format=raw -a disk.img\n"
20527 " guestfish --format=raw -a disk.img\n"
20531 #: ../fish/guestfish.pod:248
20534 " guestfish --format=raw -a disk.img --format -a another.img\n"
20537 " guestfish --format=raw -a disk.img --format -a another.img\n"
20541 #: ../fish/guestfish.pod:253
20543 "If you have untrusted raw-format guest disk images, you should use this "
20544 "option to specify the disk format. This avoids a possible security problem "
20545 "with malicious guests (CVE-2010-3851). See also L</add-drive-opts>."
20549 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
20550 msgid "B<--inspector>"
20551 msgstr "B<--inspector>"
20554 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
20556 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
20557 "system and mount filesystems as they would be mounted on the real virtual "
20562 #: ../fish/guestfish.pod:266
20563 msgid "Typical usage is either:"
20567 #: ../fish/guestfish.pod:268
20570 " guestfish -d myguest -i\n"
20573 " guestfish -d myguest -i\n"
20577 #: ../fish/guestfish.pod:270
20578 msgid "(for an inactive libvirt domain called I<myguest>), or:"
20582 #: ../fish/guestfish.pod:272
20585 " guestfish --ro -d myguest -i\n"
20588 " guestfish --ro -d myguest -i\n"
20592 #: ../fish/guestfish.pod:274
20593 msgid "(for active domains, readonly), or specify the block device directly:"
20597 #: ../fish/guestfish.pod:276
20600 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
20603 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
20607 #: ../fish/guestfish.pod:278
20609 "Note that the command line syntax changed slightly over older versions of "
20610 "guestfish. You can still use the old syntax:"
20614 #: ../fish/guestfish.pod:281
20617 " guestfish [--ro] -i disk.img\n"
20620 " guestfish [--ro] -i disk.img\n"
20624 #: ../fish/guestfish.pod:283
20627 " guestfish [--ro] -i libvirt-domain\n"
20632 #: ../fish/guestfish.pod:285
20634 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
20635 "then using other commands to mount the filesystems that were found."
20639 #: ../fish/guestfish.pod:294
20640 msgid "B<--listen>"
20641 msgstr "B<--listen>"
20644 #: ../fish/guestfish.pod:296
20646 "Fork into the background and listen for remote commands. See section L</"
20647 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
20651 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
20656 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
20658 "Connect to a live virtual machine. (Experimental, see L<guestfs(3)/"
20659 "ATTACHING TO RUNNING DAEMONS>)."
20663 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
20664 msgid "B<-m dev[:mountpoint[:options]]>"
20665 msgstr "B<-m пристрій[:точка_монтування[:параметри]]>"
20668 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
20669 msgid "B<--mount dev[:mountpoint[:options]]>"
20670 msgstr "B<--mount пристрій[:точка_монтування[:параметри]]>"
20673 #: ../fish/guestfish.pod:308
20674 msgid "Mount the named partition or logical volume on the given mountpoint."
20678 #: ../fish/guestfish.pod:310
20679 msgid "If the mountpoint is omitted, it defaults to C</>."
20683 #: ../fish/guestfish.pod:312
20684 msgid "You have to mount something on C</> before most commands will work."
20688 #: ../fish/guestfish.pod:314
20690 "If any I<-m> or I<--mount> options are given, the guest is automatically "
20695 #: ../fish/guestfish.pod:317
20697 "If you don't know what filesystems a disk image contains, you can either run "
20698 "guestfish without this option, then list the partitions, filesystems and LVs "
20699 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
20700 "commands), or you can use the L<virt-filesystems(1)> program."
20704 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
20706 "The third (and rarely used) part of the mount parameter is the list of mount "
20707 "options used to mount the underlying filesystem. If this is not given, then "
20708 "the mount options are either the empty string or C<ro> (the latter if the "
20709 "I<--ro> flag is used). By specifying the mount options, you override this "
20710 "default choice. Probably the only time you would use this is to enable ACLs "
20711 "and/or extended attributes if the filesystem can support them:"
20715 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
20718 " -m /dev/sda1:/:acl,user_xattr\n"
20723 #: ../fish/guestfish.pod:333
20724 msgid "Using this flag is equivalent to using the C<mount-options> command."
20728 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
20729 #: ../resize/virt-resize.pod:441
20734 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
20735 msgid "B<--no-sync>"
20736 msgstr "B<--no-sync>"
20739 #: ../fish/guestfish.pod:339
20741 "Disable autosync. This is enabled by default. See the discussion of "
20742 "autosync in the L<guestfs(3)> manpage."
20746 #: ../fish/guestfish.pod:342
20751 #: ../fish/guestfish.pod:344
20752 msgid "B<--new type>"
20753 msgstr "B<--new тип>"
20756 #: ../fish/guestfish.pod:346
20758 msgstr "B<-N help>"
20761 #: ../fish/guestfish.pod:348
20763 "Prepare a fresh disk image formatted as \"type\". This is an alternative to "
20764 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
20765 "preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
20770 #: ../fish/guestfish.pod:353
20771 msgid "B<--progress-bars>"
20772 msgstr "B<--progress-bars>"
20775 #: ../fish/guestfish.pod:355
20776 msgid "Enable progress bars, even when guestfish is used non-interactively."
20780 #: ../fish/guestfish.pod:357
20782 "Progress bars are enabled by default when guestfish is used as an "
20783 "interactive shell."
20787 #: ../fish/guestfish.pod:360
20788 msgid "B<--no-progress-bars>"
20789 msgstr "B<--no-progress-bars>"
20792 #: ../fish/guestfish.pod:362
20793 msgid "Disable progress bars."
20797 #: ../fish/guestfish.pod:364
20798 msgid "B<--remote[=pid]>"
20799 msgstr "B<--remote[=pid]>"
20802 #: ../fish/guestfish.pod:366
20804 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
20805 "CONTROL GUESTFISH OVER A SOCKET> below."
20809 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
20810 #: ../rescue/virt-rescue.pod:189
20815 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
20816 #: ../rescue/virt-rescue.pod:191
20821 #: ../fish/guestfish.pod:373
20823 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20824 "mounts are done read-only."
20828 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:195
20830 "The option must always be used if the disk image or virtual machine might be "
20831 "running, and is generally recommended in cases where you don't need write "
20832 "access to the disk."
20836 #: ../fish/guestfish.pod:380
20838 "Note that prepared disk images created with I<-N> are not affected by this "
20839 "option. Also commands like C<add> are not affected - you have to specify "
20840 "the C<readonly:true> option explicitly if you need it."
20844 #: ../fish/guestfish.pod:384
20845 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
20849 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
20850 #: ../rescue/virt-rescue.pod:201
20851 msgid "B<--selinux>"
20852 msgstr "B<--selinux>"
20855 #: ../fish/guestfish.pod:388
20856 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
20860 #: ../fish/guestfish.pod:394
20862 "Enable very verbose messages. This is particularly useful if you find a bug."
20866 #: ../fish/guestfish.pod:401
20867 msgid "Display the guestfish / libguestfs version number and exit."
20871 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
20872 #: ../rescue/virt-rescue.pod:231
20877 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
20878 #: ../rescue/virt-rescue.pod:233
20883 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
20885 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20886 "mounts are done read-write."
20890 #: ../fish/guestfish.pod:410
20891 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
20895 #: ../fish/guestfish.pod:414
20896 msgid "Echo each command before executing it."
20900 #: ../fish/guestfish.pod:418
20901 msgid "COMMANDS ON COMMAND LINE"
20905 #: ../fish/guestfish.pod:420
20907 "Any additional (non-option) arguments are treated as commands to execute."
20911 #: ../fish/guestfish.pod:423
20913 "Commands to execute should be separated by a colon (C<:>), where the colon "
20914 "is a separate parameter. Thus:"
20918 #: ../fish/guestfish.pod:426
20921 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
20926 #: ../fish/guestfish.pod:428
20928 "If there are no additional arguments, then we enter a shell, either an "
20929 "interactive shell with a prompt (if the input is a terminal) or a non-"
20930 "interactive shell."
20934 #: ../fish/guestfish.pod:432
20936 "In either command line mode or non-interactive shell, the first command that "
20937 "gives an error causes the whole shell to exit. In interactive mode (with a "
20938 "prompt) if a command fails, you can continue to enter commands."
20942 #: ../fish/guestfish.pod:437
20943 msgid "USING launch (OR run)"
20947 #: ../fish/guestfish.pod:439
20949 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
20950 "then launch it, then mount any disks you need, and finally issue actions/"
20951 "commands. So the general order of the day is:"
20955 #: ../fish/guestfish.pod:447
20956 msgid "add or -a/--add"
20960 #: ../fish/guestfish.pod:451
20961 msgid "launch (aka run)"
20965 #: ../fish/guestfish.pod:455
20966 msgid "mount or -m/--mount"
20970 #: ../fish/guestfish.pod:459
20971 msgid "any other commands"
20975 #: ../fish/guestfish.pod:463
20977 "C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
20978 "guest before mounting or performing any other commands."
20982 #: ../fish/guestfish.pod:466
20984 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
20985 "I<--new> options were given then C<run> is done automatically, simply "
20986 "because guestfish can't perform the action you asked for without doing this."
20990 #: ../fish/guestfish.pod:471
20991 msgid "OPENING DISKS FOR READ AND WRITE"
20995 #: ../fish/guestfish.pod:473
20997 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
20998 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
20999 "I<-i> and I<-m> open disk images read-only or for writing."
21003 #: ../fish/guestfish.pod:478
21005 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
21006 "opening disk images supplied on the command line for write. To open a disk "
21007 "image read-only you have to do I<-a image --ro>."
21011 #: ../fish/guestfish.pod:482
21013 "This matters: If you accidentally open a live VM disk image writable then "
21014 "you will cause irreversible disk corruption."
21018 #: ../fish/guestfish.pod:485
21020 "In a future libguestfs we intend to change the default the other way. Disk "
21021 "images will be opened read-only. You will have to either specify "
21022 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
21023 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
21024 "access for disk images specified by those other command line options."
21028 #: ../fish/guestfish.pod:492
21030 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
21031 "which does nothing (it is already the default). However it is highly "
21032 "recommended that you use this option to indicate that you need write access, "
21033 "and prepare your scripts for the day when this option will be required for "
21038 #: ../fish/guestfish.pod:498
21040 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
21041 "other libguestfs program apart from guestfish and guestmount."
21045 #: ../fish/guestfish.pod:501
21050 #: ../fish/guestfish.pod:503
21052 "You can quote ordinary parameters using either single or double quotes. For "
21057 #: ../fish/guestfish.pod:506
21060 " add \"file with a space.img\"\n"
21065 #: ../fish/guestfish.pod:508
21068 " rm '/file name'\n"
21073 #: ../fish/guestfish.pod:510
21081 #: ../fish/guestfish.pod:512
21083 "A few commands require a list of strings to be passed. For these, use a "
21084 "whitespace-separated list, enclosed in quotes. Strings containing "
21085 "whitespace to be passed through must be enclosed in single quotes. A "
21086 "literal single quote must be escaped with a backslash."
21090 #: ../fish/guestfish.pod:517
21093 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
21094 " command \"/bin/echo 'foo bar'\"\n"
21095 " command \"/bin/echo \\'foo\\'\"\n"
21100 #: ../fish/guestfish.pod:521
21101 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
21105 #: ../fish/guestfish.pod:523
21107 "In double-quoted arguments (only) use backslash to insert special characters:"
21111 #: ../fish/guestfish.pod:528
21116 #: ../fish/guestfish.pod:530
21117 msgid "Alert (bell) character."
21118 msgstr "Символ гудка (дзвінка)."
21121 #: ../fish/guestfish.pod:532
21126 #: ../fish/guestfish.pod:534
21127 msgid "Backspace character."
21131 #: ../fish/guestfish.pod:536
21136 #: ../fish/guestfish.pod:538
21137 msgid "Form feed character."
21141 #: ../fish/guestfish.pod:540
21146 #: ../fish/guestfish.pod:542
21147 msgid "Newline character."
21151 #: ../fish/guestfish.pod:544
21156 #: ../fish/guestfish.pod:546
21157 msgid "Carriage return character."
21158 msgstr "Символ повернення каретки."
21161 #: ../fish/guestfish.pod:548
21166 #: ../fish/guestfish.pod:550
21167 msgid "Horizontal tab character."
21168 msgstr "Символ горизонтальної табуляції"
21171 #: ../fish/guestfish.pod:552
21176 #: ../fish/guestfish.pod:554
21177 msgid "Vertical tab character."
21178 msgstr "Символ вертикальної табуляції."
21181 #: ../fish/guestfish.pod:556
21186 #: ../fish/guestfish.pod:558
21187 msgid "A literal double quote character."
21191 #: ../fish/guestfish.pod:560
21196 #: ../fish/guestfish.pod:562
21198 "A character with octal value I<ooo>. There must be precisely 3 octal digits "
21203 #: ../fish/guestfish.pod:565
21208 #: ../fish/guestfish.pod:567
21210 "A character with hex value I<hh>. There must be precisely 2 hex digits."
21214 #: ../fish/guestfish.pod:570
21216 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
21221 #: ../fish/guestfish.pod:573
21226 #: ../fish/guestfish.pod:575
21227 msgid "A literal backslash character."
21231 #: ../fish/guestfish.pod:579
21232 msgid "OPTIONAL ARGUMENTS"
21236 #: ../fish/guestfish.pod:581
21238 "Some commands take optional arguments. These arguments appear in this "
21239 "documentation as C<[argname:..]>. You can use them as in these examples:"
21243 #: ../fish/guestfish.pod:585
21246 " add-drive-opts filename\n"
21251 #: ../fish/guestfish.pod:587
21254 " add-drive-opts filename readonly:true\n"
21259 #: ../fish/guestfish.pod:589
21262 " add-drive-opts filename format:qcow2 readonly:false\n"
21267 #: ../fish/guestfish.pod:591
21269 "Each optional argument can appear at most once. All optional arguments must "
21270 "appear after the required ones."
21274 #: ../fish/guestfish.pod:594
21279 #: ../fish/guestfish.pod:596
21281 "This section applies to all commands which can take integers as parameters."
21285 #: ../fish/guestfish.pod:599
21286 msgid "SIZE SUFFIX"
21290 #: ../fish/guestfish.pod:601
21292 "When the command takes a parameter measured in bytes, you can use one of the "
21293 "following suffixes to specify kilobytes, megabytes and larger sizes:"
21297 #: ../fish/guestfish.pod:607
21298 msgid "B<k> or B<K> or B<KiB>"
21299 msgstr "B<k>, B<K> або B<KiB>"
21302 #: ../fish/guestfish.pod:609
21303 msgid "The size in kilobytes (multiplied by 1024)."
21304 msgstr "Розмір у кілобайтах (у одному кілобайті 1024 байтів)."
21307 #: ../fish/guestfish.pod:611
21312 #: ../fish/guestfish.pod:613
21313 msgid "The size in SI 1000 byte units."
21314 msgstr "Розмір у одиницях СІ: 1000 байтів."
21317 #: ../fish/guestfish.pod:615
21318 msgid "B<M> or B<MiB>"
21319 msgstr "B<M> або B<MiB>"
21322 #: ../fish/guestfish.pod:617
21323 msgid "The size in megabytes (multiplied by 1048576)."
21324 msgstr "Розмір у мегабайтах (у одному мегабайті 1048576 байтів)."
21327 #: ../fish/guestfish.pod:619
21332 #: ../fish/guestfish.pod:621
21333 msgid "The size in SI 1000000 byte units."
21334 msgstr "Розмір у одиницях СІ: 1000000 байтів."
21337 #: ../fish/guestfish.pod:623
21338 msgid "B<G> or B<GiB>"
21339 msgstr "B<G> або B<GiB>"
21342 #: ../fish/guestfish.pod:625
21343 msgid "The size in gigabytes (multiplied by 2**30)."
21344 msgstr "Розмір у гігабайтах (з множником 2**30)."
21347 #: ../fish/guestfish.pod:627
21352 #: ../fish/guestfish.pod:629
21353 msgid "The size in SI 10**9 byte units."
21354 msgstr "Розмір у одиницях СІ: 10**9 байтів."
21357 #: ../fish/guestfish.pod:631
21358 msgid "B<T> or B<TiB>"
21359 msgstr "B<T> або B<TiB>"
21362 #: ../fish/guestfish.pod:633
21363 msgid "The size in terabytes (multiplied by 2**40)."
21364 msgstr "Розмір у терабайтах (з множником 2**40)."
21367 #: ../fish/guestfish.pod:635
21372 #: ../fish/guestfish.pod:637
21373 msgid "The size in SI 10**12 byte units."
21374 msgstr "Розмір у одиницях СІ: 10**12 байтів."
21377 #: ../fish/guestfish.pod:639
21378 msgid "B<P> or B<PiB>"
21379 msgstr "B<P> або B<PiB>"
21382 #: ../fish/guestfish.pod:641
21383 msgid "The size in petabytes (multiplied by 2**50)."
21384 msgstr "Розмір у петабайтах (у одному петабайті 2**50 байтів)."
21387 #: ../fish/guestfish.pod:643
21392 #: ../fish/guestfish.pod:645
21393 msgid "The size in SI 10**15 byte units."
21394 msgstr "Розмір у одиницях СІ: 10**15 байтів."
21397 #: ../fish/guestfish.pod:647
21398 msgid "B<E> or B<EiB>"
21399 msgstr "B<E> або B<EiB>"
21402 #: ../fish/guestfish.pod:649
21403 msgid "The size in exabytes (multiplied by 2**60)."
21404 msgstr "Розмір у ексабайтах (у одному ексабайті 2**60 байтів)."
21407 #: ../fish/guestfish.pod:651
21412 #: ../fish/guestfish.pod:653
21413 msgid "The size in SI 10**18 byte units."
21414 msgstr "Розмір у одиницях СІ: 10**18 байтів."
21417 #: ../fish/guestfish.pod:655
21418 msgid "B<Z> or B<ZiB>"
21419 msgstr "B<Z> або B<ZiB>"
21422 #: ../fish/guestfish.pod:657
21423 msgid "The size in zettabytes (multiplied by 2**70)."
21424 msgstr "Розмір у зетабайтах (у одному зетабайті 2**70 байтів)."
21427 #: ../fish/guestfish.pod:659
21432 #: ../fish/guestfish.pod:661
21433 msgid "The size in SI 10**21 byte units."
21434 msgstr "Розмір у одиницях СІ: 10**21 байтів."
21437 #: ../fish/guestfish.pod:663
21438 msgid "B<Y> or B<YiB>"
21439 msgstr "B<Y> або B<YiB>"
21442 #: ../fish/guestfish.pod:665
21443 msgid "The size in yottabytes (multiplied by 2**80)."
21444 msgstr "Розмір у йотабайтах (у одному йотабайті 2**80 байтів)."
21447 #: ../fish/guestfish.pod:667
21452 #: ../fish/guestfish.pod:669
21453 msgid "The size in SI 10**24 byte units."
21454 msgstr "Розмір у одиницях СІ: 10**24 байтів."
21457 #: ../fish/guestfish.pod:675
21460 " truncate-size /file 1G\n"
21465 #: ../fish/guestfish.pod:677
21466 msgid "would truncate the file to 1 gigabyte."
21470 #: ../fish/guestfish.pod:679
21472 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
21473 "the parameter to L</memsize> is specified in megabytes already). Adding a "
21474 "suffix will probably not do what you expect."
21478 #: ../fish/guestfish.pod:683
21479 msgid "OCTAL AND HEXADECIMAL NUMBERS"
21483 #: ../fish/guestfish.pod:685
21485 "For specifying the radix (base) use the C convention: C<0> to prefix an "
21486 "octal number or C<0x> to prefix a hexadecimal number. For example:"
21490 #: ../fish/guestfish.pod:688
21493 " 1234 decimal number 1234\n"
21494 " 02322 octal number, equivalent to decimal 1234\n"
21495 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
21500 #: ../fish/guestfish.pod:692
21502 "When using the C<chmod> command, you almost always want to specify an octal "
21503 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
21504 "L<chmod(1)> program):"
21508 #: ../fish/guestfish.pod:696
21511 " chmod 0777 /public # OK\n"
21512 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
21517 #: ../fish/guestfish.pod:699
21519 "Commands that return numbers usually print them in decimal, but some "
21520 "commands print numbers in other radices (eg. C<umask> prints the mode in "
21521 "octal, preceeded by C<0>)."
21525 #: ../fish/guestfish.pod:703
21526 msgid "WILDCARDS AND GLOBBING"
21530 #: ../fish/guestfish.pod:705
21532 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
21533 "(globbing) by default. So for example the following will not do what you "
21538 #: ../fish/guestfish.pod:709
21546 #: ../fish/guestfish.pod:711
21548 "Assuming you don't have a directory called literally C</home/*> then the "
21549 "above command will return an error."
21553 #: ../fish/guestfish.pod:714
21554 msgid "To perform wildcard expansion, use the C<glob> command."
21558 #: ../fish/guestfish.pod:716
21561 " glob rm-rf /home/*\n"
21566 #: ../fish/guestfish.pod:718
21568 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
21569 "many times), equivalent to:"
21573 #: ../fish/guestfish.pod:721
21576 " rm-rf /home/jim\n"
21577 " rm-rf /home/joe\n"
21578 " rm-rf /home/mary\n"
21583 #: ../fish/guestfish.pod:725
21584 msgid "C<glob> only works on simple guest paths and not on device names."
21588 #: ../fish/guestfish.pod:727
21590 "If you have several parameters, each containing a wildcard, then glob will "
21591 "perform a Cartesian product."
21595 #: ../fish/guestfish.pod:730
21600 #: ../fish/guestfish.pod:732
21602 "Any line which starts with a I<#> character is treated as a comment and "
21603 "ignored. The I<#> can optionally be preceeded by whitespace, but B<not> by "
21604 "a command. For example:"
21608 #: ../fish/guestfish.pod:736
21611 " # this is a comment\n"
21612 " # this is a comment\n"
21613 " foo # NOT a comment\n"
21618 #: ../fish/guestfish.pod:740
21619 msgid "Blank lines are also ignored."
21623 #: ../fish/guestfish.pod:742
21624 msgid "RUNNING COMMANDS LOCALLY"
21628 #: ../fish/guestfish.pod:744
21630 "Any line which starts with a I<!> character is treated as a command sent to "
21631 "the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
21635 #: ../fish/guestfish.pod:748
21639 " tgz-out /remote local/remote-data.tar.gz\n"
21644 #: ../fish/guestfish.pod:751
21646 "will create a directory C<local> on the host, and then export the contents "
21647 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
21648 "(See C<tgz-out>)."
21652 #: ../fish/guestfish.pod:755
21654 "To change the local directory, use the C<lcd> command. C<!cd> will have no "
21655 "effect, due to the way that subprocesses work in Unix."
21659 #: ../fish/guestfish.pod:758
21660 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
21664 #: ../fish/guestfish.pod:760
21666 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
21667 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
21668 "and executed as guestfish commands."
21672 #: ../fish/guestfish.pod:764
21674 "Thus you can use shell script to construct arbitrary guestfish commands "
21675 "which are then parsed by guestfish."
21679 #: ../fish/guestfish.pod:767
21681 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
21682 "through C</foo.100>) using guestfish commands alone. However this is simple "
21683 "if we use a shell script to create the guestfish commands for us:"
21687 #: ../fish/guestfish.pod:772
21690 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
21695 #: ../fish/guestfish.pod:774
21696 msgid "or with names like C</foo.001>:"
21700 #: ../fish/guestfish.pod:776
21703 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
21708 #: ../fish/guestfish.pod:778
21710 "When using guestfish interactively it can be helpful to just run the shell "
21711 "script first (ie. remove the initial C<E<lt>> character so it is just an "
21712 "ordinary I<!> local command), see what guestfish commands it would run, and "
21713 "when you are happy with those prepend the C<E<lt>> character to run the "
21714 "guestfish commands for real."
21718 #: ../fish/guestfish.pod:784
21723 #: ../fish/guestfish.pod:786
21725 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
21726 "command (a guestfish command) to the second command (any host command). For "
21731 #: ../fish/guestfish.pod:790
21734 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
21739 #: ../fish/guestfish.pod:792
21741 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
21742 "program). The above command would list all accounts in the guest filesystem "
21743 "which have UID 0, ie. root accounts including backdoors. Other examples:"
21747 #: ../fish/guestfish.pod:797
21750 " hexdump /bin/ls | head\n"
21751 " list-devices | tail -1\n"
21752 " tgz-out / - | tar ztf -\n"
21757 #: ../fish/guestfish.pod:801
21759 "The space before the pipe symbol is required, any space after the pipe "
21760 "symbol is optional. Everything after the pipe symbol is just passed "
21761 "straight to the host shell, so it can contain redirections, globs and "
21762 "anything else that makes sense on the host side."
21766 #: ../fish/guestfish.pod:806
21768 "To use a literal argument which begins with a pipe symbol, you have to quote "
21773 #: ../fish/guestfish.pod:809
21781 #: ../fish/guestfish.pod:811
21782 msgid "HOME DIRECTORIES"
21786 #: ../fish/guestfish.pod:813
21788 "If a parameter starts with the character C<~> then the tilde may be expanded "
21789 "as a home directory path (either C<~> for the current user's home directory, "
21790 "or C<~user> for another user)."
21794 #: ../fish/guestfish.pod:817
21796 "Note that home directory expansion happens for users known I<on the host>, "
21797 "not in the guest filesystem."
21801 #: ../fish/guestfish.pod:820
21803 "To use a literal argument which begins with a tilde, you have to quote it, "
21808 #: ../fish/guestfish.pod:823
21816 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
21817 msgid "ENCRYPTED DISKS"
21818 msgstr "ЗАШИФРОВАНІ ДИСКИ"
21821 #: ../fish/guestfish.pod:827
21823 "Libguestfs has some support for Linux guests encrypted according to the "
21824 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
21825 "disk encryption systems used by modern Linux guests. Currently only LVM-on-"
21826 "LUKS is supported."
21830 #: ../fish/guestfish.pod:832
21831 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
21835 #: ../fish/guestfish.pod:834
21838 " ><fs> vfs-type /dev/sda2\n"
21844 #: ../fish/guestfish.pod:837
21846 "Then open those devices using L</luks-open>. This creates a device-mapper "
21847 "device called C</dev/mapper/luksdev>."
21851 #: ../fish/guestfish.pod:840
21854 " ><fs> luks-open /dev/sda2 luksdev\n"
21855 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
21860 #: ../fish/guestfish.pod:843
21862 "Finally you have to tell LVM to scan for volume groups on the newly created "
21867 #: ../fish/guestfish.pod:846
21871 " vg-activate-all true\n"
21876 #: ../fish/guestfish.pod:849
21877 msgid "The logical volume(s) can now be mounted in the usual way."
21881 #: ../fish/guestfish.pod:851
21883 "Before closing a LUKS device you must unmount any logical volumes on it and "
21884 "deactivate the volume groups by calling C<vg-activate false VG> on each "
21885 "one. Then you can close the mapper device:"
21889 #: ../fish/guestfish.pod:855
21892 " vg-activate false /dev/VG\n"
21893 " luks-close /dev/mapper/luksdev\n"
21898 #: ../fish/guestfish.pod:860
21900 "If a path is prefixed with C<win:> then you can use Windows-style drive "
21901 "letters and paths (with some limitations). The following commands are "
21906 #: ../fish/guestfish.pod:864
21909 " file /WINDOWS/system32/config/system.LOG\n"
21914 #: ../fish/guestfish.pod:866
21917 " file win:\\windows\\system32\\config\\system.log\n"
21922 #: ../fish/guestfish.pod:868
21925 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
21930 #: ../fish/guestfish.pod:870
21932 "The parameter is rewritten \"behind the scenes\" by looking up the position "
21933 "where the drive is mounted, prepending that to the path, changing all "
21934 "backslash characters to forward slash, then resolving the result using L</"
21935 "case-sensitive-path>. For example if the E: drive was mounted on C</e> then "
21936 "the parameter might be rewritten like this:"
21940 #: ../fish/guestfish.pod:876
21943 " win:e:\\foo\\bar => /e/FOO/bar\n"
21948 #: ../fish/guestfish.pod:878
21949 msgid "This only works in argument positions that expect a path."
21953 #: ../fish/guestfish.pod:880
21954 msgid "UPLOADING AND DOWNLOADING FILES"
21958 #: ../fish/guestfish.pod:882
21960 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
21961 "others which upload from or download to a local file, you can use the "
21962 "special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
21966 #: ../fish/guestfish.pod:886
21974 #: ../fish/guestfish.pod:888
21976 "reads stdin and creates from that a file C</foo> in the disk image, and:"
21980 #: ../fish/guestfish.pod:891
21983 " tar-out /etc - | tar tf -\n"
21988 #: ../fish/guestfish.pod:893
21990 "writes the tarball to stdout and then pipes that into the external \"tar\" "
21991 "command (see L</PIPES>)."
21995 #: ../fish/guestfish.pod:896
21997 "When using C<-> to read from stdin, the input is read up to the end of "
21998 "stdin. You can also use a special \"heredoc\"-like syntax to read up to "
21999 "some arbitrary end marker:"
22003 #: ../fish/guestfish.pod:900
22006 " upload -<<END /foo\n"
22015 #: ../fish/guestfish.pod:906
22017 "Any string of characters can be used instead of C<END>. The end marker must "
22018 "appear on a line of its own, without any preceeding or following characters "
22019 "(not even spaces)."
22023 #: ../fish/guestfish.pod:910
22025 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
22026 "upload local files (so-called \"FileIn\" parameters in the generator)."
22030 #: ../fish/guestfish.pod:913
22031 msgid "EXIT ON ERROR BEHAVIOUR"
22035 #: ../fish/guestfish.pod:915
22037 "By default, guestfish will ignore any errors when in interactive mode (ie. "
22038 "taking commands from a human over a tty), and will exit on the first error "
22039 "in non-interactive mode (scripts, commands given on the command line)."
22043 #: ../fish/guestfish.pod:920
22045 "If you prefix a command with a I<-> character, then that command will not "
22046 "cause guestfish to exit, even if that (one) command returns an error."
22050 #: ../fish/guestfish.pod:924
22051 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
22055 #: ../fish/guestfish.pod:926
22057 "Guestfish can be remote-controlled over a socket. This is useful "
22058 "particularly in shell scripts where you want to make several different "
22059 "changes to a filesystem, but you don't want the overhead of starting up a "
22060 "guestfish process each time."
22064 #: ../fish/guestfish.pod:931
22065 msgid "Start a guestfish server process using:"
22069 #: ../fish/guestfish.pod:933
22072 " eval \"`guestfish --listen`\"\n"
22077 #: ../fish/guestfish.pod:935
22078 msgid "and then send it commands by doing:"
22082 #: ../fish/guestfish.pod:937
22085 " guestfish --remote cmd [...]\n"
22090 #: ../fish/guestfish.pod:939
22091 msgid "To cause the server to exit, send it the exit command:"
22095 #: ../fish/guestfish.pod:943
22097 "Note that the server will normally exit if there is an error in a command. "
22098 "You can change this in the usual way. See section L</EXIT ON ERROR "
22103 #: ../fish/guestfish.pod:947
22104 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
22108 #: ../fish/guestfish.pod:949
22110 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
22111 "is how the I<--remote> option knows where to send the commands. You can "
22112 "have several guestfish listener processes running using:"
22116 #: ../fish/guestfish.pod:953
22119 " eval \"`guestfish --listen`\"\n"
22120 " pid1=$GUESTFISH_PID\n"
22121 " eval \"`guestfish --listen`\"\n"
22122 " pid2=$GUESTFISH_PID\n"
22124 " guestfish --remote=$pid1 cmd\n"
22125 " guestfish --remote=$pid2 cmd\n"
22130 #: ../fish/guestfish.pod:961
22131 msgid "REMOTE CONTROL AND CSH"
22135 #: ../fish/guestfish.pod:963
22137 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
22142 #: ../fish/guestfish.pod:966
22145 " eval \"`guestfish --listen --csh`\"\n"
22150 #: ../fish/guestfish.pod:968
22151 msgid "REMOTE CONTROL DETAILS"
22155 #: ../fish/guestfish.pod:970
22157 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
22158 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
22159 "and C<$PID> is the process ID of the server."
22163 #: ../fish/guestfish.pod:974
22164 msgid "Guestfish client and server versions must match exactly."
22168 #: ../fish/guestfish.pod:976
22169 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
22173 #: ../fish/guestfish.pod:978
22175 "From Bash, you can use the following code which creates a guestfish "
22176 "instance, correctly quotes the command line, handles failure to start, and "
22177 "cleans up guestfish when the script exits:"
22181 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
22189 #: ../fish/guestfish.pod:986
22192 " guestfish[0]=\"guestfish\"\n"
22193 " guestfish[1]=\"--listen\"\n"
22194 " guestfish[2]=\"--ro\"\n"
22195 " guestfish[3]=\"-a\"\n"
22196 " guestfish[4]=\"disk.img\"\n"
22201 #: ../fish/guestfish.pod:992
22204 " GUESTFISH_PID=\n"
22205 " eval $(\"${guestfish[@]}\")\n"
22206 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
22207 " echo \"error: guestfish didn't start up, see error messages above\"\n"
22214 #: ../fish/guestfish.pod:999
22217 " cleanup_guestfish ()\n"
22219 " guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
22221 " trap cleanup_guestfish EXIT ERR\n"
22226 #: ../fish/guestfish.pod:1005
22229 " guestfish --remote -- run\n"
22234 #: ../fish/guestfish.pod:1007
22242 #: ../fish/guestfish.pod:1009
22243 msgid "REMOTE CONTROL RUN COMMAND HANGING"
22247 #: ../fish/guestfish.pod:1011
22249 "Using the C<run> (or C<launch>) command remotely in a command substitution "
22250 "context hangs, ie. don't do (note the backquotes):"
22254 #: ../fish/guestfish.pod:1014
22257 " a=`guestfish --remote run`\n"
22262 #: ../fish/guestfish.pod:1016
22264 "Since the C<run> command produces no output on stdout, this is not useful "
22265 "anyway. For further information see L<https://bugzilla.redhat.com/show_bug."
22270 #: ../fish/guestfish.pod:1020
22271 msgid "PREPARED DISK IMAGES"
22275 #: ../fish/guestfish.pod:1022
22277 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
22278 "preformatted disk images that guestfish can make for you to save typing. "
22279 "This is particularly useful for testing purposes. This option is used "
22280 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
22281 "can be mixed with I<-a>)."
22285 #: ../fish/guestfish.pod:1028
22287 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
22288 "the second and so on. Existing files in the current directory are "
22293 #: ../fish/guestfish.pod:1032
22295 "The type briefly describes how the disk should be sized, partitioned, how "
22296 "filesystem(s) should be created, and how content should be added. "
22297 "Optionally the type can be followed by extra parameters, separated by C<:> "
22298 "(colon) characters. For example, I<-N fs> creates a default 100MB, sparsely-"
22299 "allocated disk, containing a single partition, with the partition formatted "
22300 "as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
22305 #: ../fish/guestfish.pod:1040
22306 msgid "To list the available types and any extra parameters they take, run:"
22310 #: ../fish/guestfish.pod:1044
22312 "Note that the prepared filesystem is not mounted. You would usually have to "
22313 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
22317 #: ../fish/guestfish.pod:1048
22319 "If any I<-N> or I<--new> options are given, the guest is automatically "
22324 #: ../fish/guestfish.pod:1053
22325 msgid "Create a 100MB disk with an ext4-formatted partition:"
22329 #: ../fish/guestfish.pod:1055
22332 " guestfish -N fs:ext4\n"
22337 #: ../fish/guestfish.pod:1057
22338 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
22342 #: ../fish/guestfish.pod:1059
22345 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
22350 #: ../fish/guestfish.pod:1061
22351 msgid "Create a blank 200MB disk:"
22355 #: ../fish/guestfish.pod:1063
22358 " guestfish -N disk:200M\n"
22363 #: ../fish/guestfish.pod:1065
22364 msgid "PROGRESS BARS"
22368 #: ../fish/guestfish.pod:1067
22370 "Some (not all) long-running commands send progress notification messages as "
22371 "they are running. Guestfish turns these messages into progress bars."
22375 #: ../fish/guestfish.pod:1071
22377 "When a command that supports progress bars takes longer than two seconds to "
22378 "run, and if progress bars are enabled, then you will see one appearing below "
22383 #: ../fish/guestfish.pod:1075
22386 " ><fs> copy-size /large-file /another-file 2048M\n"
22387 " / 10% [#####-----------------------------------------] 00:30\n"
22392 #: ../fish/guestfish.pod:1078
22394 "The spinner on the left hand side moves round once for every progress "
22395 "notification received from the backend. This is a (reasonably) golden "
22396 "assurance that the command is \"doing something\" even if the progress bar "
22397 "is not moving, because the command is able to send the progress "
22398 "notifications. When the bar reaches 100% and the command finishes, the "
22399 "spinner disappears."
22403 #: ../fish/guestfish.pod:1085
22405 "Progress bars are enabled by default when guestfish is used interactively. "
22406 "You can enable them even for non-interactive modes using I<--progress-bars>, "
22407 "and you can disable them completely using I<--no-progress-bars>."
22411 #: ../fish/guestfish.pod:1090
22412 msgid "GUESTFISH COMMANDS"
22416 #: ../fish/guestfish.pod:1092
22418 "The commands in this section are guestfish convenience commands, in other "
22419 "words, they are not part of the L<guestfs(3)> API."
22423 #: ../fish/guestfish.pod:1095
22428 #: ../fish/guestfish.pod:1097
22440 #: ../fish/guestfish.pod:1100
22441 msgid "Without any parameter, this provides general help."
22442 msgstr "Без параметра показує загальну довідкову інформацію."
22445 #: ../fish/guestfish.pod:1102
22446 msgid "With a C<cmd> parameter, this displays detailed help for that command."
22450 #: ../fish/guestfish.pod:1104
22451 msgid "quit | exit"
22455 #: ../fish/guestfish.pod:1106
22456 msgid "This exits guestfish. You can also use C<^D> key."
22460 #: ../fish/guestfish.pod:1108
22461 msgid "@FISH_COMMANDS@"
22465 #: ../fish/guestfish.pod:1110
22470 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
22475 #: ../fish/guestfish.pod:1116
22477 "guestfish returns 0 if the commands completed without error, or 1 if there "
22482 #: ../fish/guestfish.pod:1123
22487 #: ../fish/guestfish.pod:1125
22489 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
22494 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3218
22495 msgid "FEBOOTSTRAP_KERNEL"
22499 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3220
22500 msgid "FEBOOTSTRAP_MODULES"
22504 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3222
22506 "These two environment variables allow the kernel that libguestfs uses in the "
22507 "appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
22508 "most recent host kernel is chosen. For more information about kernel "
22509 "selection, see L<febootstrap-supermin-helper(8)>. This feature is only "
22510 "available in febootstrap E<ge> 3.8."
22514 #: ../fish/guestfish.pod:1138
22515 msgid "GUESTFISH_DISPLAY_IMAGE"
22519 #: ../fish/guestfish.pod:1140
22521 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
22522 "If not set, it uses L<display(1)>."
22526 #: ../fish/guestfish.pod:1143
22527 msgid "GUESTFISH_PID"
22531 #: ../fish/guestfish.pod:1145
22533 "Used with the I<--remote> option to specify the remote guestfish process to "
22534 "control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
22538 #: ../fish/guestfish.pod:1149
22543 #: ../fish/guestfish.pod:1151
22545 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
22546 "not specified, the external L<hexedit(1)> program is used."
22550 #: ../fish/guestfish.pod:1155
22555 #: ../fish/guestfish.pod:1157
22557 "If compiled with GNU readline support, various files in the home directory "
22558 "can be used. See L</FILES>."
22562 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3228
22563 msgid "LIBGUESTFS_APPEND"
22567 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3230
22568 msgid "Pass additional options to the guest kernel."
22572 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3232
22573 msgid "LIBGUESTFS_DEBUG"
22574 msgstr "LIBGUESTFS_DEBUG"
22577 #: ../fish/guestfish.pod:1166
22579 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
22580 "effect as using the B<-v> option."
22584 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3237
22585 msgid "LIBGUESTFS_MEMSIZE"
22586 msgstr "LIBGUESTFS_MEMSIZE"
22589 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3239
22591 "Set the memory allocated to the qemu process, in megabytes. For example:"
22595 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3242
22598 " LIBGUESTFS_MEMSIZE=700\n"
22601 " LIBGUESTFS_MEMSIZE=700\n"
22605 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3244
22606 msgid "LIBGUESTFS_PATH"
22610 #: ../fish/guestfish.pod:1178
22612 "Set the path that guestfish uses to search for kernel and initrd.img. See "
22613 "the discussion of paths in L<guestfs(3)>."
22617 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3249
22618 msgid "LIBGUESTFS_QEMU"
22622 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3251
22624 "Set the default qemu binary that libguestfs uses. If not set, then the qemu "
22625 "which was found at compile time by the configure script is used."
22629 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3257
22630 msgid "LIBGUESTFS_TRACE"
22634 #: ../fish/guestfish.pod:1189
22635 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
22639 #: ../fish/guestfish.pod:1191
22641 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
22644 #: ../fish/guestfish.pod:1193
22646 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
22651 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:260
22652 #: ../src/guestfs.pod:3262
22657 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3264
22659 "Location of temporary directory, defaults to C</tmp> except for the cached "
22660 "supermin appliance which defaults to C</var/tmp>."
22664 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3267
22666 "If libguestfs was compiled to use the supermin appliance then the real "
22667 "appliance is cached in this directory, shared between all handles belonging "
22668 "to the same EUID. You can use C<$TMPDIR> to configure another directory to "
22669 "use in case C</var/tmp> is not large enough."
22673 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
22674 #: ../rescue/virt-rescue.pod:310
22679 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
22680 #: ../rescue/virt-rescue.pod:314
22681 msgid "$HOME/.libguestfs-tools.rc"
22685 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
22686 #: ../rescue/virt-rescue.pod:316
22687 msgid "/etc/libguestfs-tools.conf"
22691 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
22692 #: ../rescue/virt-rescue.pod:318
22694 "This configuration file controls the default read-only or read-write mode "
22695 "(I<--ro> or I<--rw>)."
22699 #: ../fish/guestfish.pod:1220
22700 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
22701 msgstr "Див. L</OPENING DISKS FOR READ AND WRITE>."
22704 #: ../fish/guestfish.pod:1222
22705 msgid "$HOME/.guestfish"
22709 #: ../fish/guestfish.pod:1224
22711 "If compiled with GNU readline support, then the command history is saved in "
22716 #: ../fish/guestfish.pod:1227
22717 msgid "$HOME/.inputrc"
22721 #: ../fish/guestfish.pod:1229
22722 msgid "/etc/inputrc"
22726 #: ../fish/guestfish.pod:1231
22728 "If compiled with GNU readline support, then these files can be used to "
22729 "configure readline. For further information, please see L<readline(3)/"
22730 "INITIALIZATION FILE>."
22734 #: ../fish/guestfish.pod:1235
22735 msgid "To write rules which only apply to guestfish, use:"
22739 #: ../fish/guestfish.pod:1237
22749 #: ../fish/guestfish.pod:1241
22751 "Variables that you can set in inputrc that change the behaviour of guestfish "
22752 "in useful ways include:"
22756 #: ../fish/guestfish.pod:1246
22757 msgid "completion-ignore-case (default: on)"
22761 #: ../fish/guestfish.pod:1248
22763 "By default, guestfish will ignore case when tab-completing paths on the "
22768 #: ../fish/guestfish.pod:1251
22771 " set completion-ignore-case off\n"
22776 #: ../fish/guestfish.pod:1253
22777 msgid "to make guestfish case sensitive."
22781 #: ../fish/guestfish.pod:1257
22786 #: ../fish/guestfish.pod:1259
22787 msgid "test2.img (etc)"
22791 #: ../fish/guestfish.pod:1261
22793 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
22794 "will be created in the file C<test1.img> in the current directory. The "
22795 "second use of I<-N> will use C<test2.img> and so on. Any existing file with "
22796 "the same name will be overwritten."
22800 #: ../fish/guestfish.pod:1270
22802 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
22803 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
22804 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
22805 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
22806 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
22807 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
22808 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
22812 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3360
22813 #: ../test-tool/libguestfs-test-tool.pod:112
22814 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
22818 #: ../fish/virt-copy-in.pod:5
22820 "virt-copy-in - Copy files and directories into a virtual machine disk image."
22824 #: ../fish/virt-copy-in.pod:9
22827 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
22832 #: ../fish/virt-copy-in.pod:11
22835 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
22840 #: ../fish/virt-copy-in.pod:15
22842 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
22843 "causing disk corruption. The virtual machine must be shut down before you "
22844 "use this command."
22848 #: ../fish/virt-copy-in.pod:21
22850 "C<virt-copy-in> copies files and directories from the local disk into a "
22851 "virtual machine disk image or named libvirt domain."
22855 #: ../fish/virt-copy-in.pod:24
22857 "You can give one of more filenames and directories on the command line. "
22858 "Directories are copied in recursively. The final parameter must be the "
22859 "destination directory in the disk image which must be an absolute path "
22860 "starting with a C</> character."
22864 #: ../fish/virt-copy-in.pod:33
22867 " virt-copy-in -d MyGuest resolv.conf /etc\n"
22872 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
22873 msgid "Upload a home directory to a guest:"
22877 #: ../fish/virt-copy-in.pod:37
22880 " virt-copy-in -d MyGuest skel /home\n"
22885 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
22886 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
22887 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
22891 #: ../fish/virt-copy-in.pod:41
22893 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22894 "> C<copy-in> command. For anything more complex than a trivial copy, you "
22895 "are probably better off using guestfish directly."
22899 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
22900 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
22902 "Since the shell script just passes options straight to guestfish, read "
22903 "L<guestfish(1)> to see the full list of options."
22907 #: ../fish/virt-copy-in.pod:52
22909 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
22910 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
22914 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
22915 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
22916 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
22920 #: ../fish/virt-copy-out.pod:5
22922 "virt-copy-out - Copy files and directories out of a virtual machine disk "
22927 #: ../fish/virt-copy-out.pod:9
22930 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
22935 #: ../fish/virt-copy-out.pod:11
22938 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
22943 #: ../fish/virt-copy-out.pod:15
22945 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
22946 "image or named libvirt domain."
22950 #: ../fish/virt-copy-out.pod:18
22952 "You can give one of more filenames and directories on the command line. "
22953 "Directories are copied out recursively."
22957 #: ../fish/virt-copy-out.pod:23
22958 msgid "Download the home directories from a virtual machine:"
22962 #: ../fish/virt-copy-out.pod:25
22966 " virt-copy-out -d MyGuest /home homes\n"
22971 #: ../fish/virt-copy-out.pod:30
22973 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22974 "> C<copy-out> command. For anything more complex than a trivial copy, you "
22975 "are probably better off using guestfish directly."
22979 #: ../fish/virt-copy-out.pod:41
22981 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
22982 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
22986 #: ../fish/virt-tar-in.pod:5
22987 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
22991 #: ../fish/virt-tar-in.pod:9
22994 " virt-tar-in -a disk.img data.tar /destination\n"
22999 #: ../fish/virt-tar-in.pod:11
23002 " virt-tar-in -d domain data.tar /destination\n"
23007 #: ../fish/virt-tar-in.pod:13
23010 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
23015 #: ../fish/virt-tar-in.pod:17
23017 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
23018 "causing disk corruption. The virtual machine must be shut down before you "
23019 "use this command."
23023 #: ../fish/virt-tar-in.pod:23
23025 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
23026 "image or named libvirt domain."
23030 #: ../fish/virt-tar-in.pod:26
23032 "The first parameter is the tar file. Use C<-> to read the tar file from "
23033 "standard input. The second parameter is the absolute target directory to "
23038 #: ../fish/virt-tar-in.pod:34
23041 " virt-tar-in -d MyGuest homes.tar /home\n"
23046 #: ../fish/virt-tar-in.pod:38
23048 "This command is just a simple shell script wrapper around the L<guestfish(1)"
23049 "> C<tar-in> command. For anything more complex than a trivial copy, you are "
23050 "probably better off using guestfish directly."
23054 #: ../fish/virt-tar-in.pod:49
23056 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
23057 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
23062 #: ../fish/virt-tar-out.pod:5
23064 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
23068 #: ../fish/virt-tar-out.pod:9
23071 " virt-tar-out -a disk.img /dir files.tar\n"
23076 #: ../fish/virt-tar-out.pod:11
23079 " virt-tar-out -d domain /dir files.tar\n"
23084 #: ../fish/virt-tar-out.pod:13
23087 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
23092 #: ../fish/virt-tar-out.pod:17
23094 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
23098 #: ../fish/virt-tar-out.pod:20
23100 "The first parameter is the absolute path of the virtual machine directory. "
23101 "The second parameter is the tar file to write. Use C<-> to write to "
23106 #: ../fish/virt-tar-out.pod:26
23107 msgid "Download the home directories from a guest:"
23111 #: ../fish/virt-tar-out.pod:28
23114 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
23119 #: ../fish/virt-tar-out.pod:32
23121 "This command is just a simple shell script wrapper around the L<guestfish(1)"
23122 "> C<tar-out> command. For anything more complex than a trivial copy, you "
23123 "are probably better off using guestfish directly."
23127 #: ../fish/virt-tar-out.pod:43
23129 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
23130 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
23134 #: ../fuse/guestmount.pod:5
23136 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
23140 #: ../fuse/guestmount.pod:9
23143 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
23148 #: ../fuse/guestmount.pod:11
23151 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
23156 #: ../fuse/guestmount.pod:13
23159 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
23164 #: ../fuse/guestmount.pod:17
23166 "You must I<not> use C<guestmount> in read-write mode on live virtual "
23167 "machines. If you do this, you risk disk corruption in the VM."
23171 #: ../fuse/guestmount.pod:22
23173 "The guestmount program can be used to mount virtual machine filesystems and "
23174 "other disk images on the host. It uses libguestfs for access to the guest "
23175 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
23176 "a mountable device."
23180 #: ../fuse/guestmount.pod:27
23182 "Along with other options, you have to give at least one device (I<-a> "
23183 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
23184 "option) or use the I<-i> inspection option or the I<--live> option. How "
23185 "this works is better explained in the L<guestfish(1)> manual page, or by "
23186 "looking at the examples below."
23190 #: ../fuse/guestmount.pod:33
23192 "FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
23193 "by you, and the filesystem will not be visible to any other users unless you "
23194 "make certain global configuration changes to C</etc/fuse.conf>. To unmount "
23195 "the filesystem, use the C<fusermount -u> command."
23199 #: ../fuse/guestmount.pod:41
23201 "For a typical Windows guest which has its main filesystem on the first "
23206 #: ../fuse/guestmount.pod:44
23209 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
23214 #: ../fuse/guestmount.pod:46
23216 "For a typical Linux guest which has a /boot filesystem on the first "
23217 "partition, and the root filesystem on a logical volume:"
23221 #: ../fuse/guestmount.pod:49
23224 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
23229 #: ../fuse/guestmount.pod:51
23230 msgid "To get libguestfs to detect guest mountpoints for you:"
23234 #: ../fuse/guestmount.pod:53
23237 " guestmount -a guest.img -i --ro /mnt\n"
23242 #: ../fuse/guestmount.pod:55
23243 msgid "For a libvirt guest called \"Guest\" you could do:"
23247 #: ../fuse/guestmount.pod:57
23250 " guestmount -d Guest -i --ro /mnt\n"
23255 #: ../fuse/guestmount.pod:59
23257 "If you don't know what filesystems are contained in a guest or disk image, "
23258 "use L<virt-filesystems(1)> first:"
23262 #: ../fuse/guestmount.pod:62
23265 " virt-filesystems MyGuest\n"
23270 #: ../fuse/guestmount.pod:64
23272 "If you want to trace the libguestfs calls but without excessive debugging "
23273 "information, we recommend:"
23277 #: ../fuse/guestmount.pod:67
23280 " guestmount [...] --trace /mnt\n"
23285 #: ../fuse/guestmount.pod:69
23286 msgid "If you want to debug the program, we recommend:"
23290 #: ../fuse/guestmount.pod:71
23293 " guestmount [...] --trace --verbose /mnt\n"
23298 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:96
23299 #: ../resize/virt-resize.pod:627
23304 #: ../fuse/guestmount.pod:75
23305 msgid "Other users cannot see the filesystem by default"
23309 #: ../fuse/guestmount.pod:77
23311 "If you mount a filesystem as one user (eg. root), then other users will not "
23312 "be able to see it by default. The fix is to add the FUSE C<allow_other> "
23313 "option when mounting:"
23317 #: ../fuse/guestmount.pod:81
23320 " sudo guestmount [...] -o allow_other /mnt\n"
23325 #: ../fuse/guestmount.pod:83
23326 msgid "Enabling FUSE"
23330 #: ../fuse/guestmount.pod:85
23332 "On some distros, you may need to add yourself to a special group (eg. "
23333 "C<fuse>) before you can use any FUSE filesystem. This is necessary on "
23334 "Debian and derivatives."
23338 #: ../fuse/guestmount.pod:89
23340 "On other distros, no special group is required. It is not necessary on "
23341 "Fedora or Red Hat Enterprise Linux."
23345 #: ../fuse/guestmount.pod:100
23346 msgid "Add a block device or virtual machine image."
23350 #: ../fuse/guestmount.pod:123
23351 msgid "B<--dir-cache-timeout N>"
23352 msgstr "B<--dir-cache-timeout N>"
23355 #: ../fuse/guestmount.pod:125
23357 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
23358 "seconds. The readdir cache [actually, there are several semi-independent "
23359 "caches] is populated after a readdir(2) call with the stat and extended "
23360 "attributes of the files in the directory, in anticipation that they will be "
23361 "requested soon after."
23365 #: ../fuse/guestmount.pod:131
23367 "There is also a different attribute cache implemented by FUSE (see the FUSE "
23368 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
23369 "requests, only cache existing ones."
23373 #: ../fuse/guestmount.pod:151
23375 "If you have untrusted raw-format guest disk images, you should use this "
23376 "option to specify the disk format. This avoids a possible security problem "
23377 "with malicious guests (CVE-2010-3851). See also L<guestfs(3)/"
23378 "guestfs_add_drive_opts>."
23382 #: ../fuse/guestmount.pod:156
23383 msgid "B<--fuse-help>"
23384 msgstr "B<--fuse-help>"
23387 #: ../fuse/guestmount.pod:158
23388 msgid "Display help on special FUSE options (see I<-o> below)."
23392 #: ../fuse/guestmount.pod:162
23393 msgid "Display brief help and exit."
23397 #: ../fuse/guestmount.pod:186
23399 "Mount the named partition or logical volume on the given mountpoint B<in the "
23400 "guest> (this has nothing to do with mountpoints in the host)."
23404 #: ../fuse/guestmount.pod:189
23406 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
23407 "something on C</>."
23411 #: ../fuse/guestmount.pod:206
23413 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
23414 "unmounted. If you specify this option, then we don't attempt to sync the "
23415 "disk. See the discussion of autosync in the L<guestfs(3)> manpage."
23419 #: ../fuse/guestmount.pod:211
23420 msgid "B<-o option>"
23421 msgstr "B<-o параметр>"
23424 #: ../fuse/guestmount.pod:213
23425 msgid "B<--option option>"
23426 msgstr "B<--option параметр>"
23429 #: ../fuse/guestmount.pod:215
23430 msgid "Pass extra options to FUSE."
23434 #: ../fuse/guestmount.pod:217
23436 "To get a list of all the extra options supported by FUSE, use the command "
23437 "below. Note that only the FUSE I<-o> options can be passed, and only some "
23438 "of them are a good idea."
23442 #: ../fuse/guestmount.pod:221
23445 " guestmount --fuse-help\n"
23450 #: ../fuse/guestmount.pod:223
23451 msgid "Some potentially useful FUSE options:"
23455 #: ../fuse/guestmount.pod:227
23456 msgid "B<-o allow_other>"
23460 #: ../fuse/guestmount.pod:229
23461 msgid "Allow other users to see the filesystem."
23465 #: ../fuse/guestmount.pod:231
23466 msgid "B<-o attr_timeout=N>"
23467 msgstr "B<-o attr_timeout=N>"
23470 #: ../fuse/guestmount.pod:233
23471 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
23475 #: ../fuse/guestmount.pod:235
23476 msgid "B<-o kernel_cache>"
23480 #: ../fuse/guestmount.pod:237
23482 "Allow the kernel to cache files (reduces the number of reads that have to go "
23483 "through the L<guestfs(3)> API). This is generally a good idea if you can "
23484 "afford the extra memory usage."
23488 #: ../fuse/guestmount.pod:241
23489 msgid "B<-o uid=N> B<-o gid=N>"
23490 msgstr "B<-o uid=N> B<-o gid=N>"
23493 #: ../fuse/guestmount.pod:243
23495 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
23496 "the chosen values."
23500 #: ../fuse/guestmount.pod:252
23502 "Add devices and mount everything read-only. Also disallow writes and make "
23503 "the disk appear read-only to FUSE."
23507 #: ../fuse/guestmount.pod:255
23509 "This is highly recommended if you are not going to edit the guest disk. If "
23510 "the guest is running and this option is I<not> supplied, then there is a "
23511 "strong risk of disk corruption in the guest. We try to prevent this from "
23512 "happening, but it is not always possible."
23516 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:199
23517 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23518 msgstr "Див. також L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23521 #: ../fuse/guestmount.pod:264
23522 msgid "Enable SELinux support for the guest."
23526 #: ../fuse/guestmount.pod:270
23527 msgid "Enable verbose messages from underlying libguestfs."
23531 #: ../fuse/guestmount.pod:276
23532 msgid "Display the program version and exit."
23536 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
23537 #: ../rescue/virt-rescue.pod:238 ../rescue/virt-rescue.pod:321
23538 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23539 msgstr "Див. L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23542 #: ../fuse/guestmount.pod:289
23544 msgstr "B<--trace>"
23547 #: ../fuse/guestmount.pod:291
23548 msgid "Trace libguestfs calls and entry into each FUSE function."
23552 #: ../fuse/guestmount.pod:293
23553 msgid "This also stops the daemon from forking into the background."
23557 #: ../fuse/guestmount.pod:319
23559 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23560 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
23563 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23564 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
23568 #: ../fuse/guestmount.pod:334
23569 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
23573 #: ../inspector/virt-inspector.pod:5
23575 "virt-inspector - Display operating system version and other information "
23576 "about a virtual machine"
23580 #: ../inspector/virt-inspector.pod:9
23583 " virt-inspector [--options] -d domname\n"
23588 #: ../inspector/virt-inspector.pod:11
23591 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
23596 #: ../inspector/virt-inspector.pod:15
23599 " virt-inspector domname\n"
23604 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
23607 " virt-inspector disk.img [disk.img ...]\n"
23612 #: ../inspector/virt-inspector.pod:21
23614 "B<virt-inspector> examines a virtual machine or disk image and tries to "
23615 "determine the version of the operating system and other information about "
23616 "the virtual machine."
23620 #: ../inspector/virt-inspector.pod:25
23621 msgid "Virt-inspector produces XML output for feeding into other programs."
23625 #: ../inspector/virt-inspector.pod:27
23627 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
23628 "the libvirt domain (see: C<virsh list --all>)."
23632 #: ../inspector/virt-inspector.pod:30
23634 "You can also run virt-inspector directly on disk images from a single "
23635 "virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain "
23636 "has several block devices, in which case you should list several I<-a> "
23637 "options one after another, with the first corresponding to the guest's C</"
23638 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
23642 #: ../inspector/virt-inspector.pod:37
23644 "You can also run virt-inspector on install disks, live CDs, bootable USB "
23645 "keys and similar."
23649 #: ../inspector/virt-inspector.pod:40
23651 "Virt-inspector can only inspect and report upon I<one domain at a time>. To "
23652 "inspect several virtual machines, you have to run virt-inspector several "
23653 "times (for example, from a shell script for-loop)."
23657 #: ../inspector/virt-inspector.pod:45
23659 "Because virt-inspector needs direct access to guest images, it won't "
23660 "normally work over remote libvirt connections."
23664 #: ../inspector/virt-inspector.pod:48
23666 "All of the information available from virt-inspector is also available "
23667 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
23668 "The same information can also be fetched using guestfish or via libguestfs "
23669 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
23670 "WITH OTHER PROGRAMMING LANGUAGES>)."
23674 #: ../inspector/virt-inspector.pod:81
23676 "Libvirt is only used if you specify a C<domname> on the command line. If "
23677 "you specify guest block devices directly (I<-a>), then libvirt is not used "
23682 #: ../inspector/virt-inspector.pod:94
23684 "When prompting for keys and passphrases, virt-inspector normally turns "
23685 "echoing off so you cannot see what you are typing. If you are not worried "
23686 "about Tempest attacks and there is no one else in the room you can specify "
23687 "this flag to see what you are typing."
23691 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
23692 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
23693 #: ../tools/virt-win-reg.pl:144
23695 "Specify the format of disk images given on the command line. If this is "
23696 "omitted then the format is autodetected from the content of the disk image."
23700 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
23701 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
23702 #: ../tools/virt-win-reg.pl:148
23704 "If disk images are requested from libvirt, then this program asks libvirt "
23705 "for this information. In this case, the value of the format parameter is "
23710 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:397
23711 #: ../resize/virt-resize.pod:489 ../sparsify/virt-sparsify.pod:144
23712 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
23713 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
23715 "If working with untrusted raw-format guest disk images, you should ensure "
23716 "the format is always specified."
23720 #: ../inspector/virt-inspector.pod:135
23722 #| msgid "B<--parts>"
23723 msgid "B<--xpath> query"
23724 msgstr "B<--parts>"
23727 #: ../inspector/virt-inspector.pod:137
23729 "Perform an XPath query on the XML on stdin, and print the result on stdout. "
23730 "In this mode virt-inspector simply runs an XPath query; all other inspection "
23731 "functions are disabled. See L</XPATH QUERIES> below for some examples."
23735 #: ../inspector/virt-inspector.pod:146
23736 msgid "Previous versions of virt-inspector allowed you to write either:"
23740 #: ../inspector/virt-inspector.pod:152
23743 " virt-inspector guestname\n"
23748 #: ../inspector/virt-inspector.pod:160
23753 #: ../inspector/virt-inspector.pod:162
23755 "The virt-inspector XML is described precisely in a RELAX NG schema file "
23756 "C<virt-inspector.rng> which is supplied with libguestfs. This section is "
23757 "just an overview."
23761 #: ../inspector/virt-inspector.pod:166
23763 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
23764 "more E<lt>operatingsystemE<gt> elements. You would only see more than one "
23765 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
23766 "which is vanishingly rare in real world VMs."
23770 #: ../inspector/virt-inspector.pod:171
23771 msgid "E<lt>operatingsystemE<gt>"
23775 #: ../inspector/virt-inspector.pod:173
23777 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
23778 "describe the operating system, its architecture, the descriptive \"product "
23779 "name\" string, the type of OS and so on, as in this example:"
23783 #: ../inspector/virt-inspector.pod:177
23786 " <operatingsystems>\n"
23787 " <operatingsystem>\n"
23788 " <root>/dev/sda2</root>\n"
23789 " <name>windows</name>\n"
23790 " <arch>i386</arch>\n"
23791 " <distro>windows</distro>\n"
23792 " <product_name>Windows 7 Enterprise</product_name>\n"
23793 " <product_variant>Client</product_variant>\n"
23794 " <major_version>6</major_version>\n"
23795 " <minor_version>1</minor_version>\n"
23796 " <windows_systemroot>/Windows</windows_systemroot>\n"
23797 " <format>installed</format>\n"
23802 #: ../inspector/virt-inspector.pod:190
23804 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
23805 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
23806 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
23807 "architecture. The other fields are fairly self-explanatory, but because "
23808 "these fields are taken directly from the libguestfs inspection API you can "
23809 "find precise information from L<guestfs(3)/INSPECTION>."
23813 #: ../inspector/virt-inspector.pod:198
23815 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
23816 "of view of libguestfs (block devices may have completely different names "
23817 "inside the VM itself)."
23821 #: ../inspector/virt-inspector.pod:202
23822 msgid "E<lt>mountpointsE<gt>"
23826 #: ../inspector/virt-inspector.pod:204
23828 "Un*x-like guests typically have multiple filesystems which are mounted at "
23829 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
23830 "element which looks like this:"
23834 #: ../inspector/virt-inspector.pod:208
23837 " <operatingsystems>\n"
23838 " <operatingsystem>\n"
23841 " <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
23842 " <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
23843 " </mountpoints>\n"
23848 #: ../inspector/virt-inspector.pod:216
23850 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
23851 "and may have completely different names inside the guest. Only mountable "
23852 "filesystems appear in this list, not things like swap devices."
23856 #: ../inspector/virt-inspector.pod:221
23857 msgid "E<lt>filesystemsE<gt>"
23861 #: ../inspector/virt-inspector.pod:223
23863 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
23864 "filesystems belonging to the guest, including swap and empty partitions. "
23865 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
23866 "this OS or shared with this OS and other OSes)."
23870 #: ../inspector/virt-inspector.pod:229
23871 msgid "You might see something like this:"
23875 #: ../inspector/virt-inspector.pod:231
23878 " <operatingsystems>\n"
23879 " <operatingsystem>\n"
23882 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
23883 " <type>ext4</type>\n"
23884 " <label>Fedora-13-x86_64</label>\n"
23885 " <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
23891 #: ../inspector/virt-inspector.pod:241
23893 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
23894 "the label, and the UUID."
23898 #: ../inspector/virt-inspector.pod:244
23899 msgid "E<lt>applicationsE<gt>"
23903 #: ../inspector/virt-inspector.pod:246
23905 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
23906 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
23911 #: ../inspector/virt-inspector.pod:250
23913 "E<lt>package_formatE<gt>, if present, describes the packaging system used. "
23914 "Typical values would be C<rpm> and C<deb>."
23918 #: ../inspector/virt-inspector.pod:253
23920 "E<lt>package_managementE<gt>, if present, describes the package manager. "
23921 "Typical values include C<yum>, C<up2date> and C<apt>"
23925 #: ../inspector/virt-inspector.pod:256
23926 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
23930 #: ../inspector/virt-inspector.pod:259
23933 " <operatingsystems>\n"
23934 " <operatingsystem>\n"
23936 " <applications>\n"
23938 " <name>coreutils</name>\n"
23939 " <version>8.5</version>\n"
23940 " <release>1</release>\n"
23941 " </application>\n"
23946 #: ../inspector/virt-inspector.pod:269
23948 "The version and release fields may not be available for some types guests. "
23949 "Other fields are possible, see L<guestfs(3)/"
23950 "guestfs_inspect_list_applications>."
23954 #: ../inspector/virt-inspector.pod:273
23955 msgid "E<lt>drive_mappingsE<gt>"
23959 #: ../inspector/virt-inspector.pod:275
23961 "For operating systems like Windows which use drive letters, virt-inspector "
23962 "is able to find out how drive letters map to filesystems."
23966 #: ../inspector/virt-inspector.pod:279
23969 " <operatingsystems>\n"
23970 " <operatingsystem>\n"
23972 " <drive_mappings>\n"
23973 " <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
23974 " <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
23975 " </drive_mappings>\n"
23980 #: ../inspector/virt-inspector.pod:287
23982 "In the example above, drive C maps to the filesystem on the second partition "
23983 "on the first disk, and drive E maps to the filesystem on the first partition "
23984 "on the second disk."
23988 #: ../inspector/virt-inspector.pod:291
23990 "Note that this only covers permanent local filesystem mappings, not things "
23991 "like network shares. Furthermore NTFS volume mount points may not be listed "
23996 #: ../inspector/virt-inspector.pod:295
23997 msgid "E<lt>iconE<gt>"
24001 #: ../inspector/virt-inspector.pod:297
24003 "Virt-inspector is sometimes able to extract an icon or logo for the guest. "
24004 "The icon is returned as base64-encoded PNG data. Note that the icon can be "
24005 "very large and high quality."
24009 #: ../inspector/virt-inspector.pod:301
24012 " <operatingsystems>\n"
24013 " <operatingsystem>\n"
24016 " iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
24017 " [... many lines of base64 data ...]\n"
24023 #: ../inspector/virt-inspector.pod:309
24025 "To display the icon, you have to extract it and convert the base64 data back "
24026 "to a binary file. Use an XPath query or simply an editor to extract the "
24027 "data, then use the coreutils L<base64(1)> program to do the conversion back "
24032 #: ../inspector/virt-inspector.pod:314
24035 " base64 -i -d < icon.data > icon.png\n"
24040 #: ../inspector/virt-inspector.pod:316
24041 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
24045 #: ../inspector/virt-inspector.pod:318
24047 "Virt-inspector can detect some operating system installers on install disks, "
24048 "live CDs, bootable USB keys and more."
24052 #: ../inspector/virt-inspector.pod:321
24054 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
24055 "fields may be present to indicate a live CD, network installer, or one part "
24056 "of a multipart CD. For example:"
24060 #: ../inspector/virt-inspector.pod:325
24063 " <operatingsystems>\n"
24064 " <operatingsystem>\n"
24065 " <root>/dev/sda</root>\n"
24066 " <name>linux</name>\n"
24067 " <arch>i386</arch>\n"
24068 " <distro>ubuntu</distro>\n"
24069 " <product_name>Ubuntu 10.10 "Maverick Meerkat"</product_name>\n"
24070 " <major_version>10</major_version>\n"
24071 " <minor_version>10</minor_version>\n"
24072 " <format>installer</format>\n"
24078 #: ../inspector/virt-inspector.pod:337
24079 msgid "XPATH QUERIES"
24083 #: ../inspector/virt-inspector.pod:339
24085 "Virt-inspector includes built in support for running XPath queries. The "
24086 "reason for including XPath support directly in virt-inspector is simply that "
24087 "there are no good and widely available command line programs that can do "
24088 "XPath queries. The only good one is L<xmlstarlet(1)> and that is not "
24089 "available on Red Hat Enterprise Linux."
24093 #: ../inspector/virt-inspector.pod:346
24095 "To perform an XPath query, use the I<--xpath> option. Note that in this "
24096 "mode, virt-inspector simply reads XML from stdin and outputs the query "
24097 "result on stdout. All other inspection features are disabled in this mode."
24101 #: ../inspector/virt-inspector.pod:353
24104 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
24106 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
24107 " <type>ext4</type>\n"
24113 #: ../inspector/virt-inspector.pod:359
24116 " $ virt-inspector -d Guest | \\\n"
24117 " virt-inspector --xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
24123 #: ../inspector/virt-inspector.pod:363
24126 " $ virt-inspector -d Guest | \\\n"
24127 " virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
24128 " [displays the guest icon, if there is one]\n"
24133 #: ../inspector/virt-inspector.pod:374
24134 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
24138 #: ../inspector/virt-inspector.pod:376
24140 "Early versions of libguestfs shipped with a different virt-inspector program "
24141 "written in Perl (the current version is written in C). The XML output of "
24142 "the Perl virt-inspector was different and it could also output in other "
24143 "formats like text."
24147 #: ../inspector/virt-inspector.pod:381
24149 "The old virt-inspector is no longer supported or shipped with libguestfs."
24153 #: ../inspector/virt-inspector.pod:384
24155 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
24156 "versions of virt-inspector with different names:"
24160 #: ../inspector/virt-inspector.pod:387
24163 " virt-inspector Old Perl version.\n"
24164 " virt-inspector2 New C version.\n"
24169 #: ../inspector/virt-inspector.pod:397
24171 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
24172 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
24176 #: ../inspector/virt-inspector.pod:414
24177 msgid "Matthew Booth L<mbooth@redhat.com>"
24181 #: ../java/examples/guestfs-java.pod:5
24182 msgid "guestfs-java - How to use libguestfs from Java"
24186 #: ../java/examples/guestfs-java.pod:9
24189 " import com.redhat.et.libguestfs.*;\n"
24194 #: ../java/examples/guestfs-java.pod:11
24197 " GuestFS g = new GuestFS ();\n"
24198 " g.add_drive_opts (\"disk.img\", null);\n"
24204 #: ../java/examples/guestfs-java.pod:17
24206 "This manual page documents how to call libguestfs from the Java programming "
24207 "language. This page just documents the differences from the C API and gives "
24208 "some examples. If you are not familiar with using libguestfs, you also need "
24209 "to read L<guestfs(3)>."
24213 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
24214 msgid "CLOSING THE HANDLE"
24218 #: ../java/examples/guestfs-java.pod:24
24220 "The handle is closed when it is reaped by the garbage collector. Because "
24221 "libguestfs handles include a lot of state, it is also possible to close (and "
24222 "hence free) them explicitly by calling the C<close> method."
24226 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
24227 #: ../python/examples/guestfs-python.pod:21
24228 #: ../ruby/examples/guestfs-ruby.pod:22
24233 #: ../java/examples/guestfs-java.pod:31
24235 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
24236 "exception. This has a single parameter which is the error message (a "
24241 #: ../java/examples/guestfs-java.pod:35
24242 msgid "Calling any method on a closed handle raises the same exception."
24246 #: ../java/examples/guestfs-java.pod:47
24248 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
24249 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
24250 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
24254 #: ../ocaml/examples/guestfs-ocaml.pod:5
24255 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
24259 #: ../ocaml/examples/guestfs-ocaml.pod:9
24260 msgid "Module style:"
24264 #: ../ocaml/examples/guestfs-ocaml.pod:11
24267 " let g = Guestfs.create () in\n"
24268 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
24269 " Guestfs.launch g;\n"
24274 #: ../ocaml/examples/guestfs-ocaml.pod:15
24275 msgid "Object-oriented style:"
24279 #: ../ocaml/examples/guestfs-ocaml.pod:17
24282 " let g = new Guestfs.guestfs () in\n"
24283 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
24289 #: ../ocaml/examples/guestfs-ocaml.pod:21
24292 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
24294 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
24299 #: ../ocaml/examples/guestfs-ocaml.pod:27
24301 "This manual page documents how to call libguestfs from the OCaml programming "
24302 "language. This page just documents the differences from the C API and gives "
24303 "some examples. If you are not familiar with using libguestfs, you also need "
24304 "to read L<guestfs(3)>."
24308 #: ../ocaml/examples/guestfs-ocaml.pod:32
24309 msgid "PROGRAMMING STYLES"
24313 #: ../ocaml/examples/guestfs-ocaml.pod:34
24315 "There are two different programming styles supported by the OCaml bindings. "
24316 "You can use a module style, with each C function mapped to an OCaml function:"
24320 #: ../ocaml/examples/guestfs-ocaml.pod:38
24323 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
24328 #: ../ocaml/examples/guestfs-ocaml.pod:40
24333 #: ../ocaml/examples/guestfs-ocaml.pod:42
24336 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
24341 #: ../ocaml/examples/guestfs-ocaml.pod:44
24343 "Alternately you can use an object-oriented style, calling methods on the "
24344 "class C<Guestfs.guestfs>:"
24348 #: ../ocaml/examples/guestfs-ocaml.pod:47
24351 " method set_verbose : bool -> unit\n"
24356 #: ../ocaml/examples/guestfs-ocaml.pod:49
24358 "The object-oriented style is usually briefer, and the minor performance "
24359 "penalty isn't noticable in the general overhead of performing libguestfs "
24364 #: ../ocaml/examples/guestfs-ocaml.pod:55
24366 "The handle is closed when it is reaped by the garbage collector. Because "
24367 "libguestfs handles include a lot of state, it is also possible to close (and "
24368 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
24373 #: ../ocaml/examples/guestfs-ocaml.pod:62
24375 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
24376 "exception. This has a single parameter which is the error message (a "
24381 #: ../ocaml/examples/guestfs-ocaml.pod:66
24383 "Calling any function/method on a closed handle raises C<Guestfs."
24384 "Handle_closed>. The single parameter is the name of the function that you "
24389 #: ../ocaml/examples/guestfs-ocaml.pod:80
24391 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24392 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
24393 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
24397 #: ../perl/examples/guestfs-perl.pod:5
24398 msgid "guestfs-perl - How to use libguestfs from Perl"
24402 #: ../perl/examples/guestfs-perl.pod:9
24405 " use Sys::Guestfs;\n"
24410 #: ../perl/examples/guestfs-perl.pod:11
24413 " my $h = Sys::Guestfs->new ();\n"
24414 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
24415 " $h->launch ();\n"
24416 " $h->mount_options ('', '/dev/sda1', '/');\n"
24417 " $h->touch ('/hello');\n"
24423 #: ../perl/examples/guestfs-perl.pod:20
24425 "This manual page documents how to call libguestfs from the Perl programming "
24426 "language. This page just documents the differences from the C API and gives "
24427 "some examples. If you are not familiar with using libguestfs, you also need "
24428 "to read L<guestfs(3)>. To read the full Perl API, see L<Sys::Guestfs(3)>."
24432 #: ../perl/examples/guestfs-perl.pod:26
24437 #: ../perl/examples/guestfs-perl.pod:28
24439 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
24444 #: ../perl/examples/guestfs-perl.pod:41
24446 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
24447 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
24448 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
24452 #: ../python/examples/guestfs-python.pod:5
24453 msgid "guestfs-python - How to use libguestfs from Python"
24457 #: ../python/examples/guestfs-python.pod:9
24460 " import guestfs\n"
24461 " g = guestfs.GuestFS ()\n"
24462 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
24468 #: ../python/examples/guestfs-python.pod:16
24470 "This manual page documents how to call libguestfs from the Python "
24471 "programming language. This page just documents the differences from the C "
24472 "API and gives some examples. If you are not familiar with using libguestfs, "
24473 "you also need to read L<guestfs(3)>."
24477 #: ../python/examples/guestfs-python.pod:23
24479 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
24480 "single string argument which is the error message."
24484 #: ../python/examples/guestfs-python.pod:26
24485 msgid "MORE DOCUMENTATION"
24489 #: ../python/examples/guestfs-python.pod:28
24494 #: ../python/examples/guestfs-python.pod:30
24498 " >>> import guestfs\n"
24499 " >>> help (guestfs)\n"
24504 #: ../python/examples/guestfs-python.pod:44
24506 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24507 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
24508 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
24512 #: ../rescue/virt-rescue.pod:5
24513 msgid "virt-rescue - Run a rescue shell on a virtual machine"
24517 #: ../rescue/virt-rescue.pod:9
24520 " virt-rescue [--options] -d domname\n"
24525 #: ../rescue/virt-rescue.pod:11
24528 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
24533 #: ../rescue/virt-rescue.pod:13
24536 #| " virt-filesystems --format=raw -a disk.img\n"
24539 " virt-rescue --suggest (-d domname | -a disk.img ...)\n"
24542 " virt-filesystems --format=raw -a диск.img\n"
24546 #: ../rescue/virt-rescue.pod:17
24549 " virt-rescue [--options] domname\n"
24554 #: ../rescue/virt-rescue.pod:19
24557 " virt-rescue [--options] disk.img [disk.img ...]\n"
24562 #: ../rescue/virt-rescue.pod:23
24564 "You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
24565 "probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
24566 "you from doing this, but doesn't catch all cases."
24570 #: ../rescue/virt-rescue.pod:27
24572 "However if you use the I<--ro> (read only) option, then you can attach a "
24573 "shell to a live virtual machine. The results might be strange or "
24574 "inconsistent at times but you won't get disk corruption."
24578 #: ../rescue/virt-rescue.pod:33
24580 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
24581 "need for a CD. virt-rescue gives you a rescue shell and some simple "
24582 "recovery tools which you can use to examine or rescue a virtual machine or "
24587 #: ../rescue/virt-rescue.pod:38
24589 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
24590 "on disk image(s):"
24594 #: ../rescue/virt-rescue.pod:41
24597 " virt-rescue -d GuestName\n"
24602 #: ../rescue/virt-rescue.pod:43
24605 " virt-rescue --ro -a /path/to/disk.img\n"
24610 #: ../rescue/virt-rescue.pod:45
24613 " virt-rescue -a /dev/sdc\n"
24618 #: ../rescue/virt-rescue.pod:47
24619 msgid "For live VMs you I<must> use the --ro option."
24623 #: ../rescue/virt-rescue.pod:49
24625 "When you run virt-rescue on a virtual machine or disk image, you are placed "
24626 "in an interactive bash shell where you can use many ordinary Linux "
24627 "commands. What you see in C</> (C</bin>, C</lib> etc) is the rescue "
24628 "appliance. You must mount the virtual machine's filesystems by hand. There "
24629 "is an empty directory called C</sysroot> where you can mount filesystems."
24633 #: ../rescue/virt-rescue.pod:56
24635 "You can get virt-rescue to suggest mount commands for you by using the I<--"
24636 "suggest> option (in another terminal):"
24640 #: ../rescue/virt-rescue.pod:59
24643 " $ virt-rescue --suggest -d Fedora15\n"
24644 " Inspecting the virtual machine or disk image ...\n"
24649 #: ../rescue/virt-rescue.pod:62
24652 " This disk contains one or more operating systems. You can use these\n"
24653 " mount commands in virt-rescue (at the ><rescue> prompt) to mount the\n"
24659 #: ../rescue/virt-rescue.pod:66
24662 " # /dev/vg_f15x32/lv_root is the root of a linux operating system\n"
24663 " # type: linux, distro: fedora, version: 15.0\n"
24664 " # Fedora release 15 (Lovelock)\n"
24669 #: ../rescue/virt-rescue.pod:70
24672 " mount /dev/vg_f15x32/lv_root /sysroot/\n"
24673 " mount /dev/vda1 /sysroot/boot\n"
24674 " mount --bind /dev /sysroot/dev\n"
24675 " mount --bind /dev/pts /sysroot/dev/pts\n"
24676 " mount --bind /proc /sysroot/proc\n"
24677 " mount --bind /sys /sysroot/sys\n"
24682 #: ../rescue/virt-rescue.pod:77
24684 "Another way is to list the logical volumes (with L<lvs(8)>) and partitions "
24685 "(with L<parted(8)>) and mount them by hand:"
24689 #: ../rescue/virt-rescue.pod:80
24693 " LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
24694 " lv_root vg_f15x32 -wi-a- 8.83G\n"
24695 " lv_swap vg_f15x32 -wi-a- 992.00M\n"
24696 " ><rescue> mount /dev/vg_f15x32/lv_root /sysroot\n"
24697 " ><rescue> mount /dev/vda1 /sysroot/boot\n"
24698 " ><rescue> ls /sysroot\n"
24703 #: ../rescue/virt-rescue.pod:88
24705 "Another command to list available filesystems is L<virt-filesystems(1)>."
24709 #: ../rescue/virt-rescue.pod:91
24711 "To run commands in a Linux guest (for example, grub), you should chroot into "
24712 "the /sysroot directory first:"
24716 #: ../rescue/virt-rescue.pod:94
24719 " ><rescue> chroot /sysroot\n"
24724 #: ../rescue/virt-rescue.pod:98
24726 "Virt-rescue can be used on I<any> disk image file or device, not just a "
24727 "virtual machine. For example you can use it on a blank file if you want to "
24728 "partition that file (although we would recommend using L<guestfish(1)> "
24729 "instead as it is more suitable for this purpose). You can even use virt-"
24730 "rescue on things like SD cards."
24734 #: ../rescue/virt-rescue.pod:104
24736 "Virt-rescue does not require root. You only need to run it as root if you "
24737 "need root to open the disk image."
24741 #: ../rescue/virt-rescue.pod:107
24743 "This tool is just designed for quick interactive hacking on a virtual "
24744 "machine. For more structured access to a virtual machine disk image, you "
24745 "should use L<guestfs(3)>. To get a structured shell that you can use to "
24746 "make scripted changes to guests, use L<guestfish(1)>."
24750 #: ../rescue/virt-rescue.pod:131
24751 msgid "B<--append kernelopts>"
24752 msgstr "B<--append параметри_ядра>"
24755 #: ../rescue/virt-rescue.pod:133
24756 msgid "Pass additional options to the rescue kernel."
24760 #: ../rescue/virt-rescue.pod:163
24763 " virt-rescue --format=raw -a disk.img\n"
24768 #: ../rescue/virt-rescue.pod:167
24771 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
24776 #: ../rescue/virt-rescue.pod:176
24781 #: ../rescue/virt-rescue.pod:178
24782 msgid "B<--memsize MB>"
24783 msgstr "B<--memsize МБ>"
24786 #: ../rescue/virt-rescue.pod:180
24788 "Change the amount of memory allocated to the rescue system. The default is "
24789 "set by libguestfs and is small but adequate for running system tools. The "
24790 "occasional program might need more memory. The parameter is specified in "
24795 #: ../rescue/virt-rescue.pod:185
24796 msgid "B<--network>"
24797 msgstr "B<--network>"
24800 #: ../rescue/virt-rescue.pod:187
24801 msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
24805 #: ../rescue/virt-rescue.pod:193
24806 msgid "Open the image read-only."
24810 #: ../rescue/virt-rescue.pod:203
24812 "Enable SELinux in the rescue appliance. You should read L<guestfs(3)/"
24813 "SELINUX> before using this option."
24817 #: ../rescue/virt-rescue.pod:206
24822 #: ../rescue/virt-rescue.pod:208
24823 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
24827 #: ../rescue/virt-rescue.pod:210
24829 #| msgid "B<--quiet>"
24830 msgid "B<--suggest>"
24831 msgstr "B<--quiet>"
24834 #: ../rescue/virt-rescue.pod:212
24836 "Inspect the disk image and suggest what mount commands should be used to "
24837 "mount the disks. You should use the I<--suggest> option in a second "
24838 "terminal, then paste the commands into another virt-rescue."
24842 #: ../rescue/virt-rescue.pod:216
24844 "This option implies I<--ro> and is safe to use even if the guest is up or if "
24845 "another virt-rescue is running."
24849 #: ../rescue/virt-rescue.pod:235
24851 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
24852 "are done read-write."
24856 #: ../rescue/virt-rescue.pod:248
24857 msgid "Previous versions of virt-rescue allowed you to write either:"
24861 #: ../rescue/virt-rescue.pod:250
24864 " virt-rescue disk.img [disk.img ...]\n"
24869 #: ../rescue/virt-rescue.pod:254
24872 " virt-rescue guestname\n"
24877 #: ../rescue/virt-rescue.pod:262
24882 #: ../rescue/virt-rescue.pod:264
24884 "Adding the I<--network> option enables QEMU user networking in the rescue "
24885 "appliance. There are some differences between user networking and ordinary "
24890 #: ../rescue/virt-rescue.pod:270
24891 msgid "ping does not work"
24895 #: ../rescue/virt-rescue.pod:272
24897 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
24898 "send the ping packets, and because virt-rescue must be able to run as non-"
24899 "root, QEMU user networking is not able to emulate the L<ping(8)> command. "
24900 "The ping command will appear to resolve addresses but will not be able to "
24901 "send or receive any packets. This does not mean that the network is not "
24906 #: ../rescue/virt-rescue.pod:279
24907 msgid "cannot receive connections"
24911 #: ../rescue/virt-rescue.pod:281
24912 msgid "QEMU user networking cannot receive incoming connections."
24916 #: ../rescue/virt-rescue.pod:283
24917 msgid "making TCP connections"
24921 #: ../rescue/virt-rescue.pod:285
24923 "The virt-rescue appliance needs to be small and so does not include many "
24924 "network tools. In particular there is no L<telnet(1)> command. You can "
24925 "make TCP connections from the shell using the magical C</dev/tcp/"
24926 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
24930 #: ../rescue/virt-rescue.pod:290
24933 " exec 3<>/dev/tcp/redhat.com/80\n"
24934 " echo \"GET /\" >&3\n"
24940 #: ../rescue/virt-rescue.pod:294
24941 msgid "See L<bash(1)> for more details."
24945 #: ../rescue/virt-rescue.pod:300
24947 "Several environment variables affect virt-rescue. See L<guestfs(3)/"
24948 "ENVIRONMENT VARIABLES> for the complete list."
24952 #: ../rescue/virt-rescue.pod:327
24955 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
24956 #| "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
24958 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
24959 "filesystems(1)>, L<http://libguestfs.org/>."
24961 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
24962 "tar-out(1)>, L<http://libguestfs.org/>."
24965 #: ../resize/virt-resize.pod:5
24966 msgid "virt-resize - Resize a virtual machine disk"
24970 #: ../resize/virt-resize.pod:9
24973 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
24974 " [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
24975 " [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
24980 #: ../resize/virt-resize.pod:15
24982 "Virt-resize is a tool which can resize a virtual machine disk, making it "
24983 "larger or smaller overall, and resizing or deleting any partitions contained "
24988 #: ../resize/virt-resize.pod:19
24990 "Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
24991 "not> be used on live virtual machines - for consistent results, shut the "
24992 "virtual machine down before resizing it."
24996 #: ../resize/virt-resize.pod:23
24998 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
24999 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
25003 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:603
25004 #: ../sparsify/virt-sparsify.pod:227 ../src/guestfs.pod:484
25005 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
25010 #: ../resize/virt-resize.pod:33
25012 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
25013 "fill the extra 5GB of space."
25017 #: ../resize/virt-resize.pod:36
25020 " virt-filesystems --long -h --all -a olddisk\n"
25025 #: ../resize/virt-resize.pod:38
25028 " truncate -r olddisk newdisk\n"
25029 " truncate -s +5G newdisk\n"
25034 #: ../resize/virt-resize.pod:41
25037 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
25038 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
25043 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:610
25044 #: ../sparsify/virt-sparsify.pod:234 ../src/guestfs.pod:490
25045 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
25050 #: ../resize/virt-resize.pod:46
25052 "As above, but make the /boot partition 200MB bigger, while giving the "
25053 "remaining space to /dev/sda2:"
25057 #: ../resize/virt-resize.pod:49
25060 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
25061 " olddisk newdisk\n"
25066 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:616
25067 #: ../sparsify/virt-sparsify.pod:240 ../src/guestfs.pod:501
25068 #: ../src/guestfs.pod:1451
25073 #: ../resize/virt-resize.pod:54
25075 "As in the first example, but expand a logical volume as the final step. "
25076 "This is what you would typically use for Linux guests that use LVM:"
25080 #: ../resize/virt-resize.pod:58
25083 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
25084 " olddisk newdisk\n"
25089 #: ../resize/virt-resize.pod:61
25094 #: ../resize/virt-resize.pod:63
25096 "As in the first example, but the output format will be qcow2 instead of a "
25101 #: ../resize/virt-resize.pod:66
25104 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
25105 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
25110 #: ../resize/virt-resize.pod:71
25111 msgid "DETAILED USAGE"
25112 msgstr "ДОКЛАДНІШЕ ЩОДО ВИКОРИСТАННЯ"
25115 #: ../resize/virt-resize.pod:73
25116 msgid "EXPANDING A VIRTUAL MACHINE DISK"
25117 msgstr "РОЗШИРЕННЯ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
25120 #: ../resize/virt-resize.pod:77
25121 msgid "1. Shut down the virtual machine"
25125 #: ../resize/virt-resize.pod:79
25126 msgid "2. Locate input disk image"
25130 #: ../resize/virt-resize.pod:81
25132 "Locate the input disk image (ie. the file or device on the host containing "
25133 "the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
25134 "dumpxml> like this to find the disk image name:"
25138 #: ../resize/virt-resize.pod:85
25141 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
25142 " Found 1 nodes:\n"
25144 " <source dev=\"/dev/vg/lv_guest\" />\n"
25149 #: ../resize/virt-resize.pod:90
25150 msgid "3. Look at current sizing"
25154 #: ../resize/virt-resize.pod:92
25155 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
25159 #: ../resize/virt-resize.pod:95
25162 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
25163 " Name Type Size Parent\n"
25164 " /dev/sda1 partition 101M /dev/sda\n"
25165 " /dev/sda2 partition 7.9G /dev/sda\n"
25166 " /dev/sda device 8.0G -\n"
25171 #: ../resize/virt-resize.pod:101
25173 "(This example is a virtual machine with an 8 GB disk which we would like to "
25174 "expand up to 10 GB)."
25178 #: ../resize/virt-resize.pod:104
25179 msgid "4. Create output disk"
25183 #: ../resize/virt-resize.pod:106
25185 "Virt-resize cannot do in-place disk modifications. You have to have space "
25186 "to store the resized output disk."
25190 #: ../resize/virt-resize.pod:109
25192 "To store the resized disk image in a file, create a file of a suitable size:"
25196 #: ../resize/virt-resize.pod:112
25199 " # rm -f outdisk\n"
25200 " # truncate -s 10G outdisk\n"
25205 #: ../resize/virt-resize.pod:115
25206 msgid "Or use L<lvcreate(1)> to create a logical volume:"
25210 #: ../resize/virt-resize.pod:117
25213 " # lvcreate -L 10G -n lv_name vg_name\n"
25218 #: ../resize/virt-resize.pod:119
25219 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
25223 #: ../resize/virt-resize.pod:121
25226 " # virsh pool-list\n"
25227 " # virsh vol-create-as poolname newvol 10G\n"
25232 #: ../resize/virt-resize.pod:124
25234 msgstr "5. Зміна розміру"
25237 #: ../resize/virt-resize.pod:126
25239 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
25240 "file) and the output disk. The output disk is the one created in the "
25245 #: ../resize/virt-resize.pod:130
25248 " # virt-resize indisk outdisk\n"
25253 #: ../resize/virt-resize.pod:132
25255 "This command just copies disk image C<indisk> to disk image C<outdisk> "
25256 "I<without> resizing or changing any existing partitions. If C<outdisk> is "
25257 "larger, then an extra, empty partition is created at the end of the disk "
25258 "covering the extra space. If C<outdisk> is smaller, then it will give an "
25263 #: ../resize/virt-resize.pod:138
25265 "More realistically you'd want to expand existing partitions in the disk "
25266 "image by passing extra options (for the full list see the L</OPTIONS> "
25271 #: ../resize/virt-resize.pod:142
25273 "L</--expand> is the most useful option. It expands the named partition "
25274 "within the disk to fill any extra space:"
25278 #: ../resize/virt-resize.pod:145
25281 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
25286 #: ../resize/virt-resize.pod:147
25288 "(In this case, an extra partition is I<not> created at the end of the disk, "
25289 "because there will be no unused space)."
25293 #: ../resize/virt-resize.pod:150
25295 "L</--resize> is the other commonly used option. The following would "
25296 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
25297 "rest of the available space:"
25301 #: ../resize/virt-resize.pod:154
25304 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
25305 " indisk outdisk\n"
25310 #: ../resize/virt-resize.pod:157
25312 "If the expanded partition in the image contains a filesystem or LVM PV, then "
25313 "if virt-resize knows how, it will resize the contents, the equivalent of "
25314 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
25315 "or L<btrfs(8)>. However virt-resize does not know how to resize some "
25316 "filesystems, so you would have to online resize them after booting the guest."
25320 #: ../resize/virt-resize.pod:164
25321 msgid "Other options are covered below."
25325 #: ../resize/virt-resize.pod:166
25327 msgstr "6. Перевірка"
25330 #: ../resize/virt-resize.pod:168
25331 msgid "Thoroughly test the new disk image I<before> discarding the old one."
25335 #: ../resize/virt-resize.pod:170
25336 msgid "If you are using libvirt, edit the XML to point at the new disk:"
25340 #: ../resize/virt-resize.pod:172
25343 " # virsh edit guestname\n"
25348 #: ../resize/virt-resize.pod:174
25350 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
25351 "html#elementsDisks>"
25355 #: ../resize/virt-resize.pod:177
25356 msgid "Then start up the domain with the new, resized disk:"
25360 #: ../resize/virt-resize.pod:179
25363 " # virsh start guestname\n"
25368 #: ../resize/virt-resize.pod:181
25370 "and check that it still works. See also the L</NOTES> section below for "
25371 "additional information."
25375 #: ../resize/virt-resize.pod:184
25376 msgid "7. Resize LVs etc inside the guest"
25380 #: ../resize/virt-resize.pod:186
25381 msgid "(This can also be done offline using L<guestfish(1)>)"
25385 #: ../resize/virt-resize.pod:188
25387 "Once the guest has booted you should see the new space available, at least "
25388 "for filesystems that virt-resize knows how to resize, and for PVs. The user "
25389 "may need to resize LVs inside PVs, and also resize filesystem types that "
25390 "virt-resize does not know how to expand."
25394 #: ../resize/virt-resize.pod:195
25395 msgid "SHRINKING A VIRTUAL MACHINE DISK"
25399 #: ../resize/virt-resize.pod:197
25401 "Shrinking is somewhat more complex than expanding, and only an overview is "
25406 #: ../resize/virt-resize.pod:200
25408 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
25409 "filesystems). The user has to shrink content before passing the disk image "
25410 "to virt-resize, and virt-resize will check that the content has been shrunk "
25415 #: ../resize/virt-resize.pod:205
25416 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
25420 #: ../resize/virt-resize.pod:207
25422 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
25423 "steps 3 and 4 above to allocate a new disk image."
25427 #: ../resize/virt-resize.pod:210
25429 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
25433 #: ../resize/virt-resize.pod:213
25434 msgid "IGNORING OR DELETING PARTITIONS"
25438 #: ../resize/virt-resize.pod:215
25440 "virt-resize also gives a convenient way to ignore or delete partitions when "
25441 "copying from the input disk to the output disk. Ignoring a partition speeds "
25442 "up the copy where you don't care about the existing contents of a "
25443 "partition. Deleting a partition removes it completely, but note that it "
25444 "also renumbers any partitions after the one which is deleted, which can "
25445 "leave some guests unbootable."
25449 #: ../resize/virt-resize.pod:222
25450 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
25454 #: ../resize/virt-resize.pod:224
25456 "If the input disk is in qcow2 format, then you may prefer that the output is "
25457 "in qcow2 format as well. Alternately, virt-resize can convert the format on "
25458 "the fly. The output format is simply determined by the format of the empty "
25459 "output container that you provide. Thus to create qcow2 output, use:"
25463 #: ../resize/virt-resize.pod:230
25466 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
25471 #: ../resize/virt-resize.pod:232
25472 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
25476 #: ../resize/virt-resize.pod:234
25477 msgid "Similarly, to get non-sparse raw output use:"
25481 #: ../resize/virt-resize.pod:236
25484 " fallocate -l size outdisk\n"
25489 #: ../resize/virt-resize.pod:238
25491 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
25492 "dev/zero of=outdisk bs=1M count=..>)"
25496 #: ../resize/virt-resize.pod:241
25497 msgid "LOGICAL PARTITIONS"
25501 #: ../resize/virt-resize.pod:243
25503 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
25504 "tables) cannot be resized."
25508 #: ../resize/virt-resize.pod:246
25510 "To understand what is going on, firstly one of the four partitions C</dev/"
25511 "sda1-4> will have MBR partition type C<05> or C<0f>. This is called the "
25512 "B<extended partition>. Use L<virt-filesystems(1)> to see the MBR partition "
25517 #: ../resize/virt-resize.pod:251
25518 msgid "Logical partitions live inside the extended partition."
25522 #: ../resize/virt-resize.pod:253
25524 "The extended partition can be expanded, but not shrunk (unless you force it, "
25525 "which is not advisable). When the extended partition is copied across, all "
25526 "the logical partitions contained inside are copied over implicitly. Virt-"
25527 "resize does not look inside the extended partition, so it copies the logical "
25528 "partitions blindly."
25532 #: ../resize/virt-resize.pod:259
25534 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
25535 "line. Doing so will give an error."
25539 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
25540 msgid "Display help."
25544 #: ../resize/virt-resize.pod:270
25545 msgid "B<--align-first auto>"
25549 #: ../resize/virt-resize.pod:272
25550 msgid "B<--align-first never>"
25554 #: ../resize/virt-resize.pod:274
25555 msgid "B<--align-first always>"
25559 #: ../resize/virt-resize.pod:276
25561 "Align the first partition for improved performance (see also the I<--"
25562 "alignment> option)."
25566 #: ../resize/virt-resize.pod:279
25568 "The default is I<--align-first auto> which only aligns the first partition "
25569 "if it is safe to do so. That is, only when we know how to fix the "
25570 "bootloader automatically, and at the moment that can only be done for "
25575 #: ../resize/virt-resize.pod:284
25577 "I<--align-first never> means we never move the first partition. This is the "
25578 "safest option. Try this if the guest does not boot after resizing."
25582 #: ../resize/virt-resize.pod:288
25584 "I<--align-first always> means we always align the first partition (if it "
25585 "needs to be aligned). For some guests this will break the bootloader, "
25586 "making the guest unbootable."
25590 #: ../resize/virt-resize.pod:292
25591 msgid "B<--alignment N>"
25595 #: ../resize/virt-resize.pod:294
25597 "Set the alignment of partitions to C<N> sectors. The default in virt-resize "
25598 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
25602 #: ../resize/virt-resize.pod:298
25604 "Assuming 512 byte sector size inside the guest, here are some suitable "
25609 #: ../resize/virt-resize.pod:303
25610 msgid "I<--alignment 1> (512 bytes)"
25614 #: ../resize/virt-resize.pod:305
25616 "The partitions would be packed together as closely as possible, but would be "
25617 "completely unaligned. In some cases this can cause very poor performance. "
25618 "See L<virt-alignment-scan(1)> for further details."
25622 #: ../resize/virt-resize.pod:309
25623 msgid "I<--alignment 8> (4K)"
25627 #: ../resize/virt-resize.pod:311
25629 "This would be the minimum acceptable alignment for reasonable performance on "
25634 #: ../resize/virt-resize.pod:314
25635 msgid "I<--alignment 128> (64K)"
25639 #: ../resize/virt-resize.pod:316
25641 "This alignment provides good performance when the host is using high end "
25646 #: ../resize/virt-resize.pod:319
25647 msgid "I<--alignment 2048> (1M)"
25651 #: ../resize/virt-resize.pod:321
25653 "This is the standard alignment used by all newly installed guests since "
25658 #: ../resize/virt-resize.pod:326
25663 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
25664 #: ../tools/virt-win-reg.pl:120
25666 msgstr "B<--debug>"
25669 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
25670 msgid "Enable debugging messages."
25674 #: ../resize/virt-resize.pod:332 ../sparsify/virt-sparsify.pod:131
25676 #| msgid "B<--debug>"
25677 msgid "B<--debug-gc>"
25678 msgstr "B<--debug>"
25681 #: ../resize/virt-resize.pod:334
25683 "Debug garbage collection and memory allocation. This is only useful when "
25684 "debugging memory problems in virt-resize or the OCaml libguestfs bindings."
25688 #: ../resize/virt-resize.pod:338
25689 msgid "B<--delete part>"
25690 msgstr "B<--delete розділ>"
25693 #: ../resize/virt-resize.pod:340
25695 "Delete the named partition. It would be more accurate to describe this as "
25696 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
25697 "the original disk image is left intact."
25701 #: ../resize/virt-resize.pod:344
25703 "Note that when you delete a partition, then anything contained in the "
25704 "partition is also deleted. Furthermore, this causes any partitions that "
25705 "come after to be I<renumbered>, which can easily make your guest unbootable."
25709 #: ../resize/virt-resize.pod:349 ../resize/virt-resize.pod:410
25710 #: ../resize/virt-resize.pod:537 ../sparsify/virt-sparsify.pod:157
25711 msgid "You can give this option multiple times."
25715 #: ../resize/virt-resize.pod:351
25716 msgid "B<--expand part>"
25717 msgstr "B<--expand розділ>"
25720 #: ../resize/virt-resize.pod:353
25722 "Expand the named partition so it uses up all extra space (space left over "
25723 "after any other resize changes that you request have been done)."
25727 #: ../resize/virt-resize.pod:356
25729 "If virt-resize knows how, it will expand the direct content of the "
25730 "partition. For example, if the partition is an LVM PV, it will expand the "
25731 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
25732 "content it doesn't know about alone."
25736 #: ../resize/virt-resize.pod:361
25737 msgid "Currently virt-resize can resize:"
25741 #: ../resize/virt-resize.pod:367
25742 msgid "ext2, ext3 and ext4 filesystems."
25746 #: ../resize/virt-resize.pod:371
25747 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
25751 #: ../resize/virt-resize.pod:373
25753 "The filesystem must have been shut down consistently last time it was used. "
25754 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
25755 "consistency check, so at the first boot after resizing Windows will check "
25760 #: ../resize/virt-resize.pod:380
25762 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
25763 "inside the PV, but see the I<--LV-expand> option. The user could also "
25764 "resize LVs as desired after boot."
25768 #: ../resize/virt-resize.pod:386
25769 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
25773 #: ../resize/virt-resize.pod:390 ../resize/virt-resize.pod:565
25774 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
25778 #: ../resize/virt-resize.pod:392 ../sparsify/virt-sparsify.pod:137
25779 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
25780 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
25781 msgid "B<--format> raw"
25782 msgstr "B<--format> raw"
25785 #: ../resize/virt-resize.pod:394 ../sparsify/virt-sparsify.pod:141
25787 "Specify the format of the input disk image. If this flag is not given then "
25788 "it is auto-detected from the image itself."
25792 #: ../resize/virt-resize.pod:400
25794 "Note that this option I<does not> affect the output format. See L</QCOW2 "
25795 "AND NON-SPARSE RAW FORMATS>."
25799 #: ../resize/virt-resize.pod:403
25800 msgid "B<--ignore part>"
25801 msgstr "B<--ignore розділ>"
25804 #: ../resize/virt-resize.pod:405
25806 "Ignore the named partition. Effectively this means the partition is "
25807 "allocated on the destination disk, but the content is not copied across from "
25808 "the source disk. The content of the partition will be blank (all zero "
25813 #: ../resize/virt-resize.pod:412
25814 msgid "B<--LV-expand logvol>"
25815 msgstr "B<--LV-expand логічний_том>"
25818 #: ../resize/virt-resize.pod:414
25820 "This takes the logical volume and, as a final step, expands it to fill all "
25821 "the space available in its volume group. A typical usage, assuming a Linux "
25822 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
25823 "lv_root> would be:"
25827 #: ../resize/virt-resize.pod:419
25830 " virt-resize indisk outdisk \\\n"
25831 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
25836 #: ../resize/virt-resize.pod:422
25838 "This would first expand the partition (and PV), and then expand the root "
25839 "device to fill the extra space in the PV."
25843 #: ../resize/virt-resize.pod:425
25845 "The contents of the LV are also resized if virt-resize knows how to do "
25846 "that. You can stop virt-resize from trying to expand the content by using "
25847 "the option I<--no-expand-content>."
25851 #: ../resize/virt-resize.pod:429
25852 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
25856 #: ../resize/virt-resize.pod:431
25858 "You can give this option multiple times, I<but> it doesn't make sense to do "
25859 "this unless the logical volumes you specify are all in different volume "
25864 #: ../resize/virt-resize.pod:435 ../sparsify/virt-sparsify.pod:159
25865 msgid "B<--machine-readable>"
25869 #: ../resize/virt-resize.pod:437 ../sparsify/virt-sparsify.pod:161
25871 "This option is used to make the output more machine friendly when being "
25872 "parsed by other programs. See L</MACHINE READABLE OUTPUT> below."
25876 #: ../resize/virt-resize.pod:443
25877 msgid "B<--dryrun>"
25878 msgstr "B<--dryrun>"
25881 #: ../resize/virt-resize.pod:445
25882 msgid "Print a summary of what would be done, but don't do anything."
25886 #: ../resize/virt-resize.pod:447
25887 msgid "B<--no-copy-boot-loader>"
25888 msgstr "B<--no-copy-boot-loader>"
25891 #: ../resize/virt-resize.pod:449
25893 "By default, virt-resize copies over some sectors at the start of the disk "
25894 "(up to the beginning of the first partition). Commonly these sectors "
25895 "contain the Master Boot Record (MBR) and the boot loader, and are required "
25896 "in order for the guest to boot correctly."
25900 #: ../resize/virt-resize.pod:454
25902 "If you specify this flag, then this initial copy is not done. You may need "
25903 "to reinstall the boot loader in this case."
25907 #: ../resize/virt-resize.pod:457
25908 msgid "B<--no-extra-partition>"
25909 msgstr "B<--no-extra-partition>"
25912 #: ../resize/virt-resize.pod:459
25914 "By default, virt-resize creates an extra partition if there is any extra, "
25915 "unused space after all resizing has happened. Use this option to prevent "
25916 "the extra partition from being created. If you do this then the extra space "
25917 "will be inaccessible until you run fdisk, parted, or some other partitioning "
25918 "tool in the guest."
25922 #: ../resize/virt-resize.pod:465
25924 "Note that if the surplus space is smaller than 10 MB, no extra partition "
25929 #: ../resize/virt-resize.pod:468
25930 msgid "B<--no-expand-content>"
25931 msgstr "B<--no-expand-content>"
25934 #: ../resize/virt-resize.pod:470
25936 "By default, virt-resize will try to expand the direct contents of "
25937 "partitions, if it knows how (see I<--expand> option above)."
25941 #: ../resize/virt-resize.pod:473
25943 "If you give the I<--no-expand-content> option then virt-resize will not "
25948 #: ../resize/virt-resize.pod:476
25949 msgid "B<--ntfsresize-force>"
25950 msgstr "B<--ntfsresize-force>"
25953 #: ../resize/virt-resize.pod:478
25955 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
25956 "the NTFS disk is marked as needing a consistency check. You have to use "
25957 "this option if you want to resize a Windows guest multiple times without "
25958 "booting into Windows between each resize."
25962 #: ../resize/virt-resize.pod:484
25963 msgid "B<--output-format> raw"
25964 msgstr "B<--output-format> raw"
25967 #: ../resize/virt-resize.pod:486
25969 "Specify the format of the output disk image. If this flag is not given then "
25970 "it is auto-detected from the image itself."
25974 #: ../resize/virt-resize.pod:492
25976 "Note that this option I<does not create> the output format. This option "
25977 "just tells libguestfs what it is so it doesn't try to guess it. You still "
25978 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
25979 "SPARSE RAW FORMATS>."
25983 #: ../resize/virt-resize.pod:501
25984 msgid "Don't print the summary."
25988 #: ../resize/virt-resize.pod:503
25989 msgid "B<--resize part=size>"
25990 msgstr "B<--resize розділ=розмір>"
25993 #: ../resize/virt-resize.pod:505
25995 "Resize the named partition (expanding or shrinking it) so that it has the "
26000 #: ../resize/virt-resize.pod:508
26002 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
26003 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
26004 "size; or as a relative number or percentage. For example:"
26008 #: ../resize/virt-resize.pod:514
26011 " --resize /dev/sda2=10G\n"
26016 #: ../resize/virt-resize.pod:516
26019 " --resize /dev/sda4=90%\n"
26024 #: ../resize/virt-resize.pod:518
26027 " --resize /dev/sda2=+1G\n"
26032 #: ../resize/virt-resize.pod:520
26035 " --resize /dev/sda2=-200M\n"
26040 #: ../resize/virt-resize.pod:522
26043 " --resize /dev/sda1=+128K\n"
26048 #: ../resize/virt-resize.pod:524
26051 " --resize /dev/sda1=+10%\n"
26056 #: ../resize/virt-resize.pod:526
26059 " --resize /dev/sda1=-10%\n"
26064 #: ../resize/virt-resize.pod:528
26066 "You can increase the size of any partition. Virt-resize will expand the "
26067 "direct content of the partition if it knows how (see I<--expand> below)."
26071 #: ../resize/virt-resize.pod:532
26073 "You can only I<decrease> the size of partitions that contain filesystems or "
26074 "PVs which have already been shrunk. Virt-resize will check this has been "
26075 "done before proceeding, or else will print an error (see also I<--resize-"
26080 #: ../resize/virt-resize.pod:539
26081 msgid "B<--resize-force part=size>"
26082 msgstr "B<--resize-force розділ=розмір>"
26085 #: ../resize/virt-resize.pod:541
26087 "This is the same as I<--resize> except that it will let you decrease the "
26088 "size of any partition. Generally this means you will lose any data which "
26089 "was at the end of the partition you shrink, but you may not care about that "
26090 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
26091 "as a swap partition)."
26095 #: ../resize/virt-resize.pod:547
26096 msgid "See also the I<--ignore> option."
26100 #: ../resize/virt-resize.pod:549
26101 msgid "B<--shrink part>"
26102 msgstr "B<--shrink розділ>"
26105 #: ../resize/virt-resize.pod:551
26107 "Shrink the named partition until the overall disk image fits in the "
26108 "destination. The named partition B<must> contain a filesystem or PV which "
26109 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
26110 "online tools). Virt-resize will check this and give an error if it has not "
26115 #: ../resize/virt-resize.pod:557
26117 "The amount by which the overall disk must be shrunk (after carrying out all "
26118 "other operations requested by the user) is called the \"deficit\". For "
26119 "example, a straight copy (assume no other operations) from a 5GB disk image "
26120 "to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
26121 "would give an error unless the user specified a partition to shrink and that "
26122 "partition had more than a gigabyte of free space."
26126 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:201
26127 msgid "MACHINE READABLE OUTPUT"
26131 #: ../resize/virt-resize.pod:577
26133 "The I<--machine-readable> option can be used to make the output more machine "
26134 "friendly, which is useful when calling virt-resize from other programs, GUIs "
26139 #: ../resize/virt-resize.pod:581 ../sparsify/virt-sparsify.pod:207
26140 msgid "There are two ways to use this option."
26144 #: ../resize/virt-resize.pod:583
26146 "Firstly use the option on its own to query the capabilities of the virt-"
26147 "resize binary. Typical output looks like this:"
26151 #: ../resize/virt-resize.pod:586
26154 " $ virt-resize --machine-readable\n"
26156 " ntfsresize-force\n"
26164 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:217
26166 "A list of features is printed, one per line, and the program exits with "
26171 #: ../resize/virt-resize.pod:596 ../sparsify/virt-sparsify.pod:220
26173 "Secondly use the option in conjunction with other options to make the "
26174 "regular program output more machine friendly."
26178 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:223
26179 msgid "At the moment this means:"
26183 #: ../resize/virt-resize.pod:605 ../sparsify/virt-sparsify.pod:229
26185 "Progress bar messages can be parsed from stdout by looking for this regular "
26190 #: ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:232
26193 " ^[0-9]+/[0-9]+$\n"
26198 #: ../resize/virt-resize.pod:612 ../sparsify/virt-sparsify.pod:236
26200 "The calling program should treat messages sent to stdout (except for "
26201 "progress bar messages) as status messages. They can be logged and/or "
26202 "displayed to the user."
26206 #: ../resize/virt-resize.pod:618
26208 "The calling program should treat messages sent to stderr as error messages. "
26209 "In addition, virt-resize exits with a non-zero status code if there was a "
26214 #: ../resize/virt-resize.pod:624
26216 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
26217 "readable> option and will return an error."
26221 #: ../resize/virt-resize.pod:629
26222 msgid "\"Partition 1 does not end on cylinder boundary.\""
26226 #: ../resize/virt-resize.pod:631
26228 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
26229 "alignment> parameter). Usually this means the partitions will not be "
26230 "aligned to the ancient CHS geometry. However CHS geometry is meaningless "
26231 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
26232 "drives. Alignment of partitions to cylinders is not required by any modern "
26233 "operating system."
26237 #: ../resize/virt-resize.pod:638
26238 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
26242 #: ../resize/virt-resize.pod:640
26244 "In Windows Vista and later versions, Microsoft switched to using a separate "
26245 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
26246 "and C</dev/sda2> is the main (C:) drive. Resizing the first (boot) "
26247 "partition causes the bootloader to fail with C<0xC0000225> error. Resizing "
26248 "the second partition (ie. C: drive) should work."
26252 #: ../resize/virt-resize.pod:647
26254 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
26255 "NTFS partitions have been expanded. This is just a safety check and (unless "
26256 "it find errors) is nothing to worry about."
26260 #: ../resize/virt-resize.pod:651
26261 msgid "GUEST BOOT STUCK AT \"GRUB\""
26265 #: ../resize/virt-resize.pod:653
26267 "If a Linux guest does not boot after resizing, and the boot is stuck after "
26268 "printing C<GRUB> on the console, try reinstalling grub."
26272 #: ../resize/virt-resize.pod:656
26275 " guestfish -i -a newdisk\n"
26276 " ><fs> cat /boot/grub/device.map\n"
26277 " # check the contents of this file are sensible or\n"
26278 " # edit the file if necessary\n"
26279 " ><fs> grub-install / /dev/vda\n"
26285 #: ../resize/virt-resize.pod:663
26287 "For more flexible guest reconfiguration, including if you need to specify "
26288 "other parameters to grub-install, use L<virt-rescue(1)>."
26292 #: ../resize/virt-resize.pod:666
26293 msgid "ALTERNATIVE TOOLS"
26297 #: ../resize/virt-resize.pod:668
26299 "There are several proprietary tools for resizing partitions. We won't "
26300 "mention any here."
26304 #: ../resize/virt-resize.pod:671
26306 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
26307 "operations on disk images. They can resize and move partitions, but I don't "
26308 "think they can do anything with the contents, and they certainly don't "
26313 #: ../resize/virt-resize.pod:676
26315 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
26316 "but at a much lower level. You will probably end up hand-calculating sector "
26317 "offsets, which is something that virt-resize was designed to avoid. If you "
26318 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
26323 #: ../resize/virt-resize.pod:696
26325 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
26326 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
26327 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
26328 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
26329 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
26333 #: ../ruby/examples/guestfs-ruby.pod:5
26334 msgid "guestfs-ruby - How to use libguestfs from Ruby"
26338 #: ../ruby/examples/guestfs-ruby.pod:9
26341 " require 'guestfs'\n"
26342 " g = Guestfs::Guestfs.new()\n"
26343 " g.add_drive_opts(\"disk.img\",\n"
26344 " :readonly => 1, :format => \"raw\")\n"
26350 #: ../ruby/examples/guestfs-ruby.pod:17
26352 "This manual page documents how to call libguestfs from the Ruby programming "
26353 "language. This page just documents the differences from the C API and gives "
26354 "some examples. If you are not familiar with using libguestfs, you also need "
26355 "to read L<guestfs(3)>."
26359 #: ../ruby/examples/guestfs-ruby.pod:24
26361 "Errors from libguestfs functions are mapped into the C<Error> exception. "
26362 "This has a single parameter which is the error message (a string)."
26366 #: ../ruby/examples/guestfs-ruby.pod:38
26368 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
26369 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
26370 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
26374 #: ../sparsify/virt-sparsify.pod:5
26375 msgid "virt-sparsify - Make a virtual machine disk sparse"
26379 #: ../sparsify/virt-sparsify.pod:9
26382 " virt-sparsify [--options] indisk outdisk\n"
26387 #: ../sparsify/virt-sparsify.pod:13
26389 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
26390 "image) sparse a.k.a. thin-provisioned. This means that free space within "
26391 "the disk image can be converted back to free space on the host."
26395 #: ../sparsify/virt-sparsify.pod:18
26397 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
26398 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
26402 #: ../sparsify/virt-sparsify.pod:21
26404 "Virt-sparsify can also convert between some disk formats, for example "
26405 "converting a raw disk image to a thin-provisioned qcow2 image."
26409 #: ../sparsify/virt-sparsify.pod:24
26411 "Virt-sparsify can operate on any disk image, not just ones from virtual "
26412 "machines. If a virtual machine has more than one attached disk, you must "
26413 "sparsify each one separately."
26417 #: ../sparsify/virt-sparsify.pod:28
26418 msgid "IMPORTANT LIMITATIONS"
26422 #: ../sparsify/virt-sparsify.pod:34
26424 "Virt-sparsify does not do in-place modifications. It copies from a source "
26425 "image to a destination image, leaving the source unchanged. I<Check that "
26426 "the sparsification was successful before deleting the source image>."
26430 #: ../sparsify/virt-sparsify.pod:41
26431 msgid "The virtual machine I<must be shut down> before using this tool."
26435 #: ../sparsify/virt-sparsify.pod:45
26437 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
26438 "(1 temporary copy + 1 destination image). This is in the worst case and "
26439 "usually much less space is required."
26443 #: ../sparsify/virt-sparsify.pod:51
26445 "Virt-sparsify cannot resize disk images. To do that, use L<virt-resize(1)>."
26449 #: ../sparsify/virt-sparsify.pod:56
26450 msgid "Virt-sparsify cannot handle encrypted disks."
26454 #: ../sparsify/virt-sparsify.pod:60
26456 "Virt-sparsify cannot yet sparsify the space between partitions. Note that "
26457 "this space is often used for critical items like bootloaders so it's not "
26462 #: ../sparsify/virt-sparsify.pod:66
26464 "Virt-sparsify does not yet know how to sparsify swapspace. It is not safe "
26465 "to do this unless we can be sure there is no hibernation data, so at the "
26466 "moment swap partitions are ignored."
26470 #: ../sparsify/virt-sparsify.pod:72
26472 "You may also want to read the manual pages for the associated tools L<virt-"
26473 "filesystems(1)> and L<virt-df(1)> before starting."
26477 #: ../sparsify/virt-sparsify.pod:77
26478 msgid "Typical usage is:"
26482 #: ../sparsify/virt-sparsify.pod:79
26485 " virt-sparsify indisk outdisk\n"
26490 #: ../sparsify/virt-sparsify.pod:81
26492 "which copies C<indisk> to C<outdisk>, making the output sparse. C<outdisk> "
26493 "is created, or overwritten if it already exists. The format of the input "
26494 "disk is detected (eg. qcow2) and the same format is used for the output disk."
26498 #: ../sparsify/virt-sparsify.pod:86
26499 msgid "To convert between formats, use the I<--convert> option:"
26503 #: ../sparsify/virt-sparsify.pod:88
26506 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
26511 #: ../sparsify/virt-sparsify.pod:90
26513 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
26514 "can find within the source disk image. You can get it to ignore (don't zero "
26515 "free space on) certain filesystems by doing:"
26519 #: ../sparsify/virt-sparsify.pod:94
26522 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
26527 #: ../sparsify/virt-sparsify.pod:96
26529 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
26533 #: ../sparsify/virt-sparsify.pod:107
26535 #| msgid "B<--parts>"
26536 msgid "B<--compress>"
26537 msgstr "B<--parts>"
26540 #: ../sparsify/virt-sparsify.pod:109
26542 "Compress the output file. This I<only> works if the output format is "
26547 #: ../sparsify/virt-sparsify.pod:112
26548 msgid "B<--convert> raw"
26552 #: ../sparsify/virt-sparsify.pod:114
26553 msgid "B<--convert> qcow2"
26557 #: ../sparsify/virt-sparsify.pod:116
26558 msgid "B<--convert> [other formats]"
26562 #: ../sparsify/virt-sparsify.pod:118
26564 "Use C<output-format> as the format for the destination image. If this is "
26565 "not specified, then the input format is used."
26569 #: ../sparsify/virt-sparsify.pod:121
26571 "Supported and known-working output formats are: C<raw>, C<qcow2>, C<vdi>."
26575 #: ../sparsify/virt-sparsify.pod:123
26577 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
26578 "C<vmdk>, but support for other formats is reliant on qemu."
26582 #: ../sparsify/virt-sparsify.pod:126
26584 "Specifying the I<--convert> option is usually a good idea, because then virt-"
26585 "sparsify doesn't need to try to guess the input format."
26589 #: ../sparsify/virt-sparsify.pod:129
26590 msgid "For fine-tuning the output format, see: I<--compress>, I<-o>."
26594 #: ../sparsify/virt-sparsify.pod:133
26596 "Debug garbage collection and memory allocation. This is only useful when "
26597 "debugging memory problems in virt-sparsify or the OCaml libguestfs bindings."
26601 #: ../sparsify/virt-sparsify.pod:139
26602 msgid "B<--format> qcow2"
26606 #: ../sparsify/virt-sparsify.pod:147
26607 msgid "B<--ignore> filesystem"
26611 #: ../sparsify/virt-sparsify.pod:149
26612 msgid "B<--ignore> volgroup"
26616 #: ../sparsify/virt-sparsify.pod:151
26618 "Ignore the named filesystem. Free space on the filesystem will not be "
26619 "zeroed, but existing blocks of zeroes will still be sparsified."
26623 #: ../sparsify/virt-sparsify.pod:154
26625 "In the second form, this ignores the named volume group. Use the volume "
26626 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
26630 #: ../sparsify/virt-sparsify.pod:165
26632 #| msgid "B<--option option>"
26633 msgid "B<-o> option[,option,...]"
26634 msgstr "B<--option параметр>"
26637 #: ../sparsify/virt-sparsify.pod:167
26639 "Pass I<-o> option(s) to the L<qemu-img(1)> command to fine-tune the output "
26640 "format. Options available depend on the output format (see I<--convert>) "
26641 "and the installed version of the qemu-img program."
26645 #: ../sparsify/virt-sparsify.pod:171
26647 "You should use I<-o> at most once. To pass multiple options, separate them "
26652 #: ../sparsify/virt-sparsify.pod:174
26655 " virt-sparsify --convert qcow2 \\\n"
26656 " -o cluster_size=512,preallocation=metadata ...\n"
26661 #: ../sparsify/virt-sparsify.pod:181
26662 msgid "This disables progress bars and other unnecessary output."
26666 #: ../sparsify/virt-sparsify.pod:203
26668 "The I<--machine-readable> option can be used to make the output more machine "
26669 "friendly, which is useful when calling virt-sparsify from other programs, "
26674 #: ../sparsify/virt-sparsify.pod:209
26676 "Firstly use the option on its own to query the capabilities of the virt-"
26677 "sparsify binary. Typical output looks like this:"
26681 #: ../sparsify/virt-sparsify.pod:212
26684 " $ virt-sparsify --machine-readable\n"
26692 #: ../sparsify/virt-sparsify.pod:242
26694 "The calling program should treat messages sent to stderr as error messages. "
26695 "In addition, virt-sparsify exits with a non-zero status code if there was a "
26700 #: ../sparsify/virt-sparsify.pod:248
26702 "All versions of virt-sparsify have supported the I<--machine-readable> "
26707 #: ../sparsify/virt-sparsify.pod:262
26709 "Location of the temporary directory used for the potentially large temporary "
26714 #: ../sparsify/virt-sparsify.pod:265
26716 "You should ensure there is enough free space in the worst case for a full "
26717 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
26718 "to another directory that has enough space."
26722 #: ../sparsify/virt-sparsify.pod:269
26723 msgid "This defaults to C</tmp>."
26727 #: ../sparsify/virt-sparsify.pod:273
26729 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
26733 #: ../sparsify/virt-sparsify.pod:277
26735 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
26736 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
26737 "(1)>, L<http://libguestfs.org/>."
26741 #: ../src/guestfs-actions.pod:1
26742 msgid "guestfs_add_cdrom"
26746 #: ../src/guestfs-actions.pod:3
26750 " guestfs_add_cdrom (guestfs_h *g,\n"
26751 " const char *filename);\n"
26756 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
26757 #: ../src/guestfs-actions.pod:323
26759 "I<This function is deprecated.> In new code, use the L</"
26760 "guestfs_add_drive_opts> call instead."
26764 #: ../src/guestfs-actions.pod:24
26766 "This call checks for the existence of C<filename>. This stops you from "
26767 "specifying other types of drive which are supported by qemu such as C<nbd:> "
26768 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call "
26773 #: ../src/guestfs-actions.pod:31
26775 "If you just want to add an ISO file (often you use this as an efficient way "
26776 "to transfer large files into the guest), then you should probably use "
26777 "C<guestfs_add_drive_ro> instead."
26781 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
26782 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
26783 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
26784 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
26785 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
26786 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
26787 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
26788 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
26789 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:773
26790 #: ../src/guestfs-actions.pod:872 ../src/guestfs-actions.pod:890
26791 #: ../src/guestfs-actions.pod:904 ../src/guestfs-actions.pod:918
26792 #: ../src/guestfs-actions.pod:955 ../src/guestfs-actions.pod:1138
26793 #: ../src/guestfs-actions.pod:1158 ../src/guestfs-actions.pod:1176
26794 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1325
26795 #: ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1411
26796 #: ../src/guestfs-actions.pod:1464 ../src/guestfs-actions.pod:1517
26797 #: ../src/guestfs-actions.pod:1575 ../src/guestfs-actions.pod:1629
26798 #: ../src/guestfs-actions.pod:1648 ../src/guestfs-actions.pod:1662
26799 #: ../src/guestfs-actions.pod:1690 ../src/guestfs-actions.pod:1760
26800 #: ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:1816
26801 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1971
26802 #: ../src/guestfs-actions.pod:1998 ../src/guestfs-actions.pod:2213
26803 #: ../src/guestfs-actions.pod:2235 ../src/guestfs-actions.pod:2322
26804 #: ../src/guestfs-actions.pod:2830 ../src/guestfs-actions.pod:2974
26805 #: ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3070
26806 #: ../src/guestfs-actions.pod:4131 ../src/guestfs-actions.pod:4146
26807 #: ../src/guestfs-actions.pod:4171 ../src/guestfs-actions.pod:4373
26808 #: ../src/guestfs-actions.pod:4387 ../src/guestfs-actions.pod:4400
26809 #: ../src/guestfs-actions.pod:4414 ../src/guestfs-actions.pod:4429
26810 #: ../src/guestfs-actions.pod:4465 ../src/guestfs-actions.pod:4537
26811 #: ../src/guestfs-actions.pod:4557 ../src/guestfs-actions.pod:4574
26812 #: ../src/guestfs-actions.pod:4594 ../src/guestfs-actions.pod:4614
26813 #: ../src/guestfs-actions.pod:4649 ../src/guestfs-actions.pod:4668
26814 #: ../src/guestfs-actions.pod:4687 ../src/guestfs-actions.pod:4722
26815 #: ../src/guestfs-actions.pod:4734 ../src/guestfs-actions.pod:4767
26816 #: ../src/guestfs-actions.pod:4783 ../src/guestfs-actions.pod:4796
26817 #: ../src/guestfs-actions.pod:4811 ../src/guestfs-actions.pod:4828
26818 #: ../src/guestfs-actions.pod:4986 ../src/guestfs-actions.pod:5060
26819 #: ../src/guestfs-actions.pod:5070 ../src/guestfs-actions.pod:5090
26820 #: ../src/guestfs-actions.pod:5103 ../src/guestfs-actions.pod:5154
26821 #: ../src/guestfs-actions.pod:5172 ../src/guestfs-actions.pod:5190
26822 #: ../src/guestfs-actions.pod:5206 ../src/guestfs-actions.pod:5220
26823 #: ../src/guestfs-actions.pod:5234 ../src/guestfs-actions.pod:5251
26824 #: ../src/guestfs-actions.pod:5266 ../src/guestfs-actions.pod:5293
26825 #: ../src/guestfs-actions.pod:5356 ../src/guestfs-actions.pod:5429
26826 #: ../src/guestfs-actions.pod:5460 ../src/guestfs-actions.pod:5479
26827 #: ../src/guestfs-actions.pod:5498 ../src/guestfs-actions.pod:5510
26828 #: ../src/guestfs-actions.pod:5527 ../src/guestfs-actions.pod:5540
26829 #: ../src/guestfs-actions.pod:5555 ../src/guestfs-actions.pod:5570
26830 #: ../src/guestfs-actions.pod:5602 ../src/guestfs-actions.pod:5628
26831 #: ../src/guestfs-actions.pod:5667 ../src/guestfs-actions.pod:5687
26832 #: ../src/guestfs-actions.pod:5701 ../src/guestfs-actions.pod:5718
26833 #: ../src/guestfs-actions.pod:5767 ../src/guestfs-actions.pod:5820
26834 #: ../src/guestfs-actions.pod:5867 ../src/guestfs-actions.pod:5910
26835 #: ../src/guestfs-actions.pod:5938 ../src/guestfs-actions.pod:5955
26836 #: ../src/guestfs-actions.pod:5973 ../src/guestfs-actions.pod:6110
26837 #: ../src/guestfs-actions.pod:6167 ../src/guestfs-actions.pod:6189
26838 #: ../src/guestfs-actions.pod:6207 ../src/guestfs-actions.pod:6259
26839 #: ../src/guestfs-actions.pod:6325 ../src/guestfs-actions.pod:6342
26840 #: ../src/guestfs-actions.pod:6355 ../src/guestfs-actions.pod:6369
26841 #: ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6677
26842 #: ../src/guestfs-actions.pod:6696 ../src/guestfs-actions.pod:6710
26843 #: ../src/guestfs-actions.pod:6722 ../src/guestfs-actions.pod:6736
26844 #: ../src/guestfs-actions.pod:6748 ../src/guestfs-actions.pod:6762
26845 #: ../src/guestfs-actions.pod:6778 ../src/guestfs-actions.pod:6796
26846 #: ../src/guestfs-actions.pod:6815 ../src/guestfs-actions.pod:6834
26847 #: ../src/guestfs-actions.pod:6864 ../src/guestfs-actions.pod:6882
26848 #: ../src/guestfs-actions.pod:6905 ../src/guestfs-actions.pod:6923
26849 #: ../src/guestfs-actions.pod:6942 ../src/guestfs-actions.pod:6963
26850 #: ../src/guestfs-actions.pod:6982 ../src/guestfs-actions.pod:6999
26851 #: ../src/guestfs-actions.pod:7018 ../src/guestfs-actions.pod:7046
26852 #: ../src/guestfs-actions.pod:7070 ../src/guestfs-actions.pod:7089
26853 #: ../src/guestfs-actions.pod:7105 ../src/guestfs-actions.pod:7129
26854 #: ../src/guestfs-actions.pod:7148 ../src/guestfs-actions.pod:7163
26855 #: ../src/guestfs-actions.pod:7182 ../src/guestfs-actions.pod:7226
26856 #: ../src/guestfs-actions.pod:7253 ../src/guestfs-actions.pod:7283
26857 #: ../src/guestfs-actions.pod:7395 ../src/guestfs-actions.pod:7516
26858 #: ../src/guestfs-actions.pod:7528 ../src/guestfs-actions.pod:7541
26859 #: ../src/guestfs-actions.pod:7554 ../src/guestfs-actions.pod:7576
26860 #: ../src/guestfs-actions.pod:7589 ../src/guestfs-actions.pod:7602
26861 #: ../src/guestfs-actions.pod:7615 ../src/guestfs-actions.pod:7630
26862 #: ../src/guestfs-actions.pod:7689 ../src/guestfs-actions.pod:7706
26863 #: ../src/guestfs-actions.pod:7722 ../src/guestfs-actions.pod:7738
26864 #: ../src/guestfs-actions.pod:7755 ../src/guestfs-actions.pod:7768
26865 #: ../src/guestfs-actions.pod:7788 ../src/guestfs-actions.pod:7888
26866 #: ../src/guestfs-actions.pod:7946 ../src/guestfs-actions.pod:7960
26867 #: ../src/guestfs-actions.pod:8001 ../src/guestfs-actions.pod:8014
26868 #: ../src/guestfs-actions.pod:8032 ../src/guestfs-actions.pod:8066
26869 #: ../src/guestfs-actions.pod:8102 ../src/guestfs-actions.pod:8218
26870 #: ../src/guestfs-actions.pod:8233 ../src/guestfs-actions.pod:8247
26871 #: ../src/guestfs-actions.pod:8302 ../src/guestfs-actions.pod:8315
26872 #: ../src/guestfs-actions.pod:8360 ../src/guestfs-actions.pod:8400
26873 #: ../src/guestfs-actions.pod:8456 ../src/guestfs-actions.pod:8476
26874 #: ../src/guestfs-actions.pod:8509 ../src/guestfs-actions.pod:8573
26875 #: ../src/guestfs-actions.pod:8596 ../src/guestfs-actions.pod:8622
26876 msgid "This function returns 0 on success or -1 on error."
26880 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
26881 #: ../src/guestfs-actions.pod:1373 ../src/guestfs-actions.pod:2436
26882 #: ../src/guestfs-actions.pod:2534 ../src/guestfs-actions.pod:2659
26883 #: ../src/guestfs-actions.pod:4133 ../src/guestfs-actions.pod:4153
26884 #: ../src/guestfs-actions.pod:5604 ../src/guestfs-actions.pod:6884
26885 #: ../src/guestfs-actions.pod:7001 ../src/guestfs-actions.pod:7150
26886 #: ../src/guestfs-actions.pod:7632 ../src/guestfs-actions.pod:7757
26887 #: ../src/guestfs-actions.pod:8402
26888 msgid "(Added in 0.3)"
26889 msgstr "(Додано у 0.3)"
26892 #: ../src/guestfs-actions.pod:41
26893 msgid "guestfs_add_domain"
26897 #: ../src/guestfs-actions.pod:43
26901 " guestfs_add_domain (guestfs_h *g,\n"
26902 " const char *dom,\n"
26908 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
26909 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:1253
26910 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:1383
26911 #: ../src/guestfs-actions.pod:1452 ../src/guestfs-actions.pod:1505
26912 #: ../src/guestfs-actions.pod:1558 ../src/guestfs-actions.pod:3327
26913 #: ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:5305
26914 #: ../src/guestfs-actions.pod:5614 ../src/guestfs-actions.pod:5831
26915 #: ../src/guestfs-actions.pod:7799
26917 "You may supply a list of optional arguments to this call. Use zero or more "
26918 "of the following pairs of parameters, and terminate the list with C<-1> on "
26919 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
26923 #: ../src/guestfs-actions.pod:53
26926 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
26927 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
26928 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
26929 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
26930 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
26931 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
26936 #: ../src/guestfs-actions.pod:60
26938 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
26939 "It works by connecting to libvirt, requesting the domain and domain XML from "
26940 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
26945 #: ../src/guestfs-actions.pod:141
26947 "The other optional parameters are passed directly through to "
26948 "C<guestfs_add_drive_opts>."
26952 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
26953 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:790
26954 #: ../src/guestfs-actions.pod:821 ../src/guestfs-actions.pod:839
26955 #: ../src/guestfs-actions.pod:858 ../src/guestfs-actions.pod:1836
26956 #: ../src/guestfs-actions.pod:2192 ../src/guestfs-actions.pod:2395
26957 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:2557
26958 #: ../src/guestfs-actions.pod:2609 ../src/guestfs-actions.pod:2623
26959 #: ../src/guestfs-actions.pod:2646 ../src/guestfs-actions.pod:2961
26960 #: ../src/guestfs-actions.pod:3445 ../src/guestfs-actions.pod:3463
26961 #: ../src/guestfs-actions.pod:5790 ../src/guestfs-actions.pod:6007
26962 #: ../src/guestfs-actions.pod:6245 ../src/guestfs-actions.pod:6439
26963 #: ../src/guestfs-actions.pod:6465 ../src/guestfs-actions.pod:7987
26964 #: ../src/guestfs-actions.pod:8413 ../src/guestfs-actions.pod:8426
26965 #: ../src/guestfs-actions.pod:8439
26966 msgid "On error this function returns -1."
26970 #: ../src/guestfs-actions.pod:146
26971 msgid "(Added in 1.7.4)"
26972 msgstr "(Додано у 1.7.4)"
26975 #: ../src/guestfs-actions.pod:148
26976 msgid "guestfs_add_domain_va"
26980 #: ../src/guestfs-actions.pod:150
26984 " guestfs_add_domain_va (guestfs_h *g,\n"
26985 " const char *dom,\n"
26986 " va_list args);\n"
26991 #: ../src/guestfs-actions.pod:155
26992 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
26996 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
26997 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
26998 #: ../src/guestfs-actions.pod:968 ../src/guestfs-actions.pod:979
26999 #: ../src/guestfs-actions.pod:1281 ../src/guestfs-actions.pod:1294
27000 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1353
27001 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1442
27002 #: ../src/guestfs-actions.pod:1483 ../src/guestfs-actions.pod:1495
27003 #: ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1548
27004 #: ../src/guestfs-actions.pod:1594 ../src/guestfs-actions.pod:1606
27005 #: ../src/guestfs-actions.pod:3411 ../src/guestfs-actions.pod:3423
27006 #: ../src/guestfs-actions.pod:4998 ../src/guestfs-actions.pod:5010
27007 #: ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5382
27008 #: ../src/guestfs-actions.pod:5642 ../src/guestfs-actions.pod:5654
27009 #: ../src/guestfs-actions.pod:5880 ../src/guestfs-actions.pod:5891
27010 #: ../src/guestfs-actions.pod:7901 ../src/guestfs-actions.pod:7912
27011 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
27012 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
27015 #: ../src/guestfs-actions.pod:159
27016 msgid "guestfs_add_domain_argv"
27017 msgstr "guestfs_add_domain_argv"
27020 #: ../src/guestfs-actions.pod:161
27024 " guestfs_add_domain_argv (guestfs_h *g,\n"
27025 " const char *dom,\n"
27026 " const struct guestfs_add_domain_argv *optargs);\n"
27031 #: ../src/guestfs-actions.pod:166
27032 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
27036 #: ../src/guestfs-actions.pod:170
27037 msgid "guestfs_add_drive"
27041 #: ../src/guestfs-actions.pod:172
27045 " guestfs_add_drive (guestfs_h *g,\n"
27046 " const char *filename);\n"
27051 #: ../src/guestfs-actions.pod:176
27053 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
27054 "optional parameters, so the disk is added writable, with the format being "
27055 "detected automatically."
27059 #: ../src/guestfs-actions.pod:180
27061 "Automatic detection of the format opens you up to a potential security hole "
27062 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
27063 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
27064 "you should think about replacing calls to this function with calls to "
27065 "C<guestfs_add_drive_opts>, and specifying the format."
27069 #: ../src/guestfs-actions.pod:191
27070 msgid "guestfs_add_drive_opts"
27074 #: ../src/guestfs-actions.pod:193
27078 " guestfs_add_drive_opts (guestfs_h *g,\n"
27079 " const char *filename,\n"
27085 #: ../src/guestfs-actions.pod:203
27088 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
27089 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
27090 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
27091 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
27096 #: ../src/guestfs-actions.pod:233
27098 "This forces the image format. If you omit this (or use C<guestfs_add_drive> "
27099 "or C<guestfs_add_drive_ro>) then the format is automatically detected. "
27100 "Possible formats include C<raw> and C<qcow2>."
27104 #: ../src/guestfs-actions.pod:244
27106 "This rarely-used option lets you emulate the behaviour of the deprecated "
27107 "C<guestfs_add_drive_with_if> call (q.v.)"
27111 #: ../src/guestfs-actions.pod:256
27112 msgid "(Added in 1.5.23)"
27113 msgstr "(Додано у 1.5.23)"
27116 #: ../src/guestfs-actions.pod:258
27117 msgid "guestfs_add_drive_opts_va"
27121 #: ../src/guestfs-actions.pod:260
27125 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
27126 " const char *filename,\n"
27127 " va_list args);\n"
27132 #: ../src/guestfs-actions.pod:265
27133 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
27137 #: ../src/guestfs-actions.pod:269
27138 msgid "guestfs_add_drive_opts_argv"
27142 #: ../src/guestfs-actions.pod:271
27146 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
27147 " const char *filename,\n"
27148 " const struct guestfs_add_drive_opts_argv *optargs);\n"
27153 #: ../src/guestfs-actions.pod:276
27154 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
27158 #: ../src/guestfs-actions.pod:280
27159 msgid "guestfs_add_drive_ro"
27163 #: ../src/guestfs-actions.pod:282
27167 " guestfs_add_drive_ro (guestfs_h *g,\n"
27168 " const char *filename);\n"
27173 #: ../src/guestfs-actions.pod:286
27175 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
27176 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
27177 "disk is added read-only, with the format being detected automatically."
27181 #: ../src/guestfs-actions.pod:293
27182 msgid "(Added in 1.0.38)"
27183 msgstr "(Додано у 1.0.38)"
27186 #: ../src/guestfs-actions.pod:295
27187 msgid "guestfs_add_drive_ro_with_if"
27191 #: ../src/guestfs-actions.pod:297
27195 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
27196 " const char *filename,\n"
27197 " const char *iface);\n"
27202 #: ../src/guestfs-actions.pod:309
27204 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
27205 "QEMU interface emulation to use at run time."
27209 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
27210 #: ../src/guestfs-actions.pod:2920
27211 msgid "(Added in 1.0.84)"
27212 msgstr "(Додано у 1.0.84)"
27215 #: ../src/guestfs-actions.pod:316
27216 msgid "guestfs_add_drive_with_if"
27220 #: ../src/guestfs-actions.pod:318
27224 " guestfs_add_drive_with_if (guestfs_h *g,\n"
27225 " const char *filename,\n"
27226 " const char *iface);\n"
27231 #: ../src/guestfs-actions.pod:330
27233 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
27234 "QEMU interface emulation to use at run time."
27238 #: ../src/guestfs-actions.pod:337
27239 msgid "guestfs_aug_clear"
27243 #: ../src/guestfs-actions.pod:339
27247 " guestfs_aug_clear (guestfs_h *g,\n"
27248 " const char *augpath);\n"
27253 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2648
27254 msgid "(Added in 1.3.4)"
27255 msgstr "(Додано у 1.3.4)"
27258 #: ../src/guestfs-actions.pod:350
27259 msgid "guestfs_aug_close"
27263 #: ../src/guestfs-actions.pod:352
27267 " guestfs_aug_close (guestfs_h *g);\n"
27272 #: ../src/guestfs-actions.pod:355
27274 "Close the current Augeas handle and free up any resources used by it. After "
27275 "calling this, you have to call C<guestfs_aug_init> again before you can use "
27276 "any other Augeas functions."
27280 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
27281 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
27282 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
27283 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
27284 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
27285 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
27286 #: ../src/guestfs-actions.pod:6516
27287 msgid "(Added in 0.7)"
27288 msgstr "(Додано у 0.7)"
27291 #: ../src/guestfs-actions.pod:364
27292 msgid "guestfs_aug_defnode"
27296 #: ../src/guestfs-actions.pod:366
27299 " struct guestfs_int_bool *\n"
27300 " guestfs_aug_defnode (guestfs_h *g,\n"
27301 " const char *name,\n"
27302 " const char *expr,\n"
27303 " const char *val);\n"
27308 #: ../src/guestfs-actions.pod:375
27310 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
27311 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
27312 "containing that single node."
27316 #: ../src/guestfs-actions.pod:383
27318 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
27319 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
27323 #: ../src/guestfs-actions.pod:389
27324 msgid "guestfs_aug_defvar"
27328 #: ../src/guestfs-actions.pod:391
27332 " guestfs_aug_defvar (guestfs_h *g,\n"
27333 " const char *name,\n"
27334 " const char *expr);\n"
27339 #: ../src/guestfs-actions.pod:407
27340 msgid "guestfs_aug_get"
27341 msgstr "guestfs_aug_get"
27344 #: ../src/guestfs-actions.pod:409
27348 " guestfs_aug_get (guestfs_h *g,\n"
27349 " const char *augpath);\n"
27353 " guestfs_aug_get (guestfs_h *g,\n"
27354 " const char *augpath);\n"
27358 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:1019
27359 #: ../src/guestfs-actions.pod:1037 ../src/guestfs-actions.pod:1097
27360 #: ../src/guestfs-actions.pod:1113 ../src/guestfs-actions.pod:1216
27361 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1722
27362 #: ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1875
27363 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:2175
27364 #: ../src/guestfs-actions.pod:2338 ../src/guestfs-actions.pod:2355
27365 #: ../src/guestfs-actions.pod:2422 ../src/guestfs-actions.pod:2465
27366 #: ../src/guestfs-actions.pod:2486 ../src/guestfs-actions.pod:2671
27367 #: ../src/guestfs-actions.pod:2885 ../src/guestfs-actions.pod:3089
27368 #: ../src/guestfs-actions.pod:3191 ../src/guestfs-actions.pod:3295
27369 #: ../src/guestfs-actions.pod:3314 ../src/guestfs-actions.pod:3529
27370 #: ../src/guestfs-actions.pod:3557 ../src/guestfs-actions.pod:3578
27371 #: ../src/guestfs-actions.pod:3612 ../src/guestfs-actions.pod:3679
27372 #: ../src/guestfs-actions.pod:3699 ../src/guestfs-actions.pod:3719
27373 #: ../src/guestfs-actions.pod:4359 ../src/guestfs-actions.pod:4706
27374 #: ../src/guestfs-actions.pod:4873 ../src/guestfs-actions.pod:5132
27375 #: ../src/guestfs-actions.pod:6025 ../src/guestfs-actions.pod:6226
27376 #: ../src/guestfs-actions.pod:6414 ../src/guestfs-actions.pod:6592
27377 #: ../src/guestfs-actions.pod:6641 ../src/guestfs-actions.pod:7301
27378 #: ../src/guestfs-actions.pod:7317 ../src/guestfs-actions.pod:7341
27379 #: ../src/guestfs-actions.pod:7365 ../src/guestfs-actions.pod:8161
27380 #: ../src/guestfs-actions.pod:8180 ../src/guestfs-actions.pod:8198
27381 #: ../src/guestfs-actions.pod:8372 ../src/guestfs-actions.pod:8686
27383 "This function returns a string, or NULL on error. I<The caller must free "
27384 "the returned string after use>."
27388 #: ../src/guestfs-actions.pod:421
27389 msgid "guestfs_aug_init"
27390 msgstr "guestfs_aug_init"
27393 #: ../src/guestfs-actions.pod:423
27397 " guestfs_aug_init (guestfs_h *g,\n"
27398 " const char *root,\n"
27403 " guestfs_aug_init (guestfs_h *g,\n"
27404 " const char *root,\n"
27409 #: ../src/guestfs-actions.pod:432
27410 msgid "You must call this before using any other C<guestfs_aug_*> commands."
27414 #: ../src/guestfs-actions.pod:457
27416 "This option is only useful when debugging Augeas lenses. Use of this option "
27417 "may require additional memory for the libguestfs appliance. You may need to "
27418 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
27419 "C<guestfs_set_memsize>."
27423 #: ../src/guestfs-actions.pod:472
27424 msgid "Do not load the tree in C<guestfs_aug_init>."
27428 #: ../src/guestfs-actions.pod:476
27429 msgid "To close the handle, you can call C<guestfs_aug_close>."
27433 #: ../src/guestfs-actions.pod:484
27434 msgid "guestfs_aug_insert"
27435 msgstr "guestfs_aug_insert"
27438 #: ../src/guestfs-actions.pod:486
27442 " guestfs_aug_insert (guestfs_h *g,\n"
27443 " const char *augpath,\n"
27444 " const char *label,\n"
27449 " guestfs_aug_insert (guestfs_h *g,\n"
27450 " const char *augpath,\n"
27451 " const char *label,\n"
27456 #: ../src/guestfs-actions.pod:504
27457 msgid "guestfs_aug_load"
27458 msgstr "guestfs_aug_load"
27461 #: ../src/guestfs-actions.pod:506
27465 " guestfs_aug_load (guestfs_h *g);\n"
27469 " guestfs_aug_load (guestfs_h *g);\n"
27473 #: ../src/guestfs-actions.pod:518
27474 msgid "guestfs_aug_ls"
27475 msgstr "guestfs_aug_ls"
27478 #: ../src/guestfs-actions.pod:520
27482 " guestfs_aug_ls (guestfs_h *g,\n"
27483 " const char *augpath);\n"
27487 " guestfs_aug_ls (guestfs_h *g,\n"
27488 " const char *augpath);\n"
27492 #: ../src/guestfs-actions.pod:524
27494 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
27495 "sorting the resulting nodes into alphabetical order."
27499 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
27500 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1235
27501 #: ../src/guestfs-actions.pod:1890 ../src/guestfs-actions.pod:1909
27502 #: ../src/guestfs-actions.pod:2012 ../src/guestfs-actions.pod:2031
27503 #: ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:2743
27504 #: ../src/guestfs-actions.pod:2759 ../src/guestfs-actions.pod:2778
27505 #: ../src/guestfs-actions.pod:2843 ../src/guestfs-actions.pod:2867
27506 #: ../src/guestfs-actions.pod:2938 ../src/guestfs-actions.pod:2987
27507 #: ../src/guestfs-actions.pod:3256 ../src/guestfs-actions.pod:3631
27508 #: ../src/guestfs-actions.pod:3915 ../src/guestfs-actions.pod:4229
27509 #: ../src/guestfs-actions.pod:4246 ../src/guestfs-actions.pod:4266
27510 #: ../src/guestfs-actions.pod:4321 ../src/guestfs-actions.pod:4341
27511 #: ../src/guestfs-actions.pod:4446 ../src/guestfs-actions.pod:4845
27512 #: ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:6386
27513 #: ../src/guestfs-actions.pod:6512 ../src/guestfs-actions.pod:6626
27514 #: ../src/guestfs-actions.pod:7381 ../src/guestfs-actions.pod:7442
27515 #: ../src/guestfs-actions.pod:7497 ../src/guestfs-actions.pod:7643
27516 #: ../src/guestfs-actions.pod:7667 ../src/guestfs-actions.pod:8265
27517 #: ../src/guestfs-actions.pod:8285 ../src/guestfs-actions.pod:8332
27518 #: ../src/guestfs-actions.pod:8526 ../src/guestfs-actions.pod:8545
27519 #: ../src/guestfs-actions.pod:8636 ../src/guestfs-actions.pod:8655
27520 #: ../src/guestfs-actions.pod:8701 ../src/guestfs-actions.pod:8720
27522 "This function returns a NULL-terminated array of strings (like L<environ(3)"
27523 ">), or NULL if there was an error. I<The caller must free the strings and "
27524 "the array after use>."
27528 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1160
27529 #: ../src/guestfs-actions.pod:1178 ../src/guestfs-actions.pod:1947
27530 #: ../src/guestfs-actions.pod:3993 ../src/guestfs-actions.pod:4024
27531 #: ../src/guestfs-actions.pod:4689 ../src/guestfs-actions.pod:4736
27532 #: ../src/guestfs-actions.pod:5072 ../src/guestfs-actions.pod:5105
27533 #: ../src/guestfs-actions.pod:5268 ../src/guestfs-actions.pod:5755
27534 #: ../src/guestfs-actions.pod:6327 ../src/guestfs-actions.pod:6724
27535 #: ../src/guestfs-actions.pod:6738 ../src/guestfs-actions.pod:6750
27536 #: ../src/guestfs-actions.pod:7228 ../src/guestfs-actions.pod:8003
27537 #: ../src/guestfs-actions.pod:8016 ../src/guestfs-actions.pod:8249
27538 #: ../src/guestfs-actions.pod:8514
27539 msgid "(Added in 0.8)"
27540 msgstr "(Додано у 0.8)"
27543 #: ../src/guestfs-actions.pod:533
27544 msgid "guestfs_aug_match"
27545 msgstr "guestfs_aug_match"
27548 #: ../src/guestfs-actions.pod:535
27552 " guestfs_aug_match (guestfs_h *g,\n"
27553 " const char *augpath);\n"
27557 " guestfs_aug_match (guestfs_h *g,\n"
27558 " const char *augpath);\n"
27562 #: ../src/guestfs-actions.pod:549
27563 msgid "guestfs_aug_mv"
27564 msgstr "guestfs_aug_mv"
27567 #: ../src/guestfs-actions.pod:551
27571 " guestfs_aug_mv (guestfs_h *g,\n"
27572 " const char *src,\n"
27573 " const char *dest);\n"
27577 " guestfs_aug_mv (guestfs_h *g,\n"
27578 " const char *src,\n"
27579 " const char *dest);\n"
27583 #: ../src/guestfs-actions.pod:563
27584 msgid "guestfs_aug_rm"
27585 msgstr "guestfs_aug_rm"
27588 #: ../src/guestfs-actions.pod:565
27592 " guestfs_aug_rm (guestfs_h *g,\n"
27593 " const char *augpath);\n"
27597 " guestfs_aug_rm (guestfs_h *g,\n"
27598 " const char *augpath);\n"
27602 #: ../src/guestfs-actions.pod:577
27603 msgid "guestfs_aug_save"
27604 msgstr "guestfs_aug_save"
27607 #: ../src/guestfs-actions.pod:579
27611 " guestfs_aug_save (guestfs_h *g);\n"
27615 " guestfs_aug_save (guestfs_h *g);\n"
27619 #: ../src/guestfs-actions.pod:584
27621 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
27626 #: ../src/guestfs-actions.pod:591
27627 msgid "guestfs_aug_set"
27628 msgstr "guestfs_aug_set"
27631 #: ../src/guestfs-actions.pod:593
27635 " guestfs_aug_set (guestfs_h *g,\n"
27636 " const char *augpath,\n"
27637 " const char *val);\n"
27641 " guestfs_aug_set (guestfs_h *g,\n"
27642 " const char *augpath,\n"
27643 " const char *val);\n"
27647 #: ../src/guestfs-actions.pod:600
27649 "In the Augeas API, it is possible to clear a node by setting the value to "
27650 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
27651 "this call. Instead you must use the C<guestfs_aug_clear> call."
27655 #: ../src/guestfs-actions.pod:609
27656 msgid "guestfs_available"
27657 msgstr "guestfs_available"
27660 #: ../src/guestfs-actions.pod:611
27664 " guestfs_available (guestfs_h *g,\n"
27665 " char *const *groups);\n"
27669 " guestfs_available (guestfs_h *g,\n"
27670 " char *const *groups);\n"
27674 #: ../src/guestfs-actions.pod:619
27676 "The libguestfs groups, and the functions that those groups correspond to, "
27677 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
27678 "runtime by calling C<guestfs_available_all_groups>."
27682 #: ../src/guestfs-actions.pod:643
27683 msgid "You must call C<guestfs_launch> before calling this function."
27687 #: ../src/guestfs-actions.pod:665
27689 "This call was added in version C<1.0.80>. In previous versions of "
27690 "libguestfs all you could do would be to speculatively execute a command to "
27691 "find out if the daemon implemented it. See also C<guestfs_version>."
27695 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1692
27696 msgid "(Added in 1.0.80)"
27697 msgstr "(Додано у 1.0.80)"
27700 #: ../src/guestfs-actions.pod:676
27701 msgid "guestfs_available_all_groups"
27702 msgstr "guestfs_available_all_groups"
27705 #: ../src/guestfs-actions.pod:678
27709 " guestfs_available_all_groups (guestfs_h *g);\n"
27713 " guestfs_available_all_groups (guestfs_h *g);\n"
27717 #: ../src/guestfs-actions.pod:681
27719 "This command returns a list of all optional groups that this daemon knows "
27720 "about. Note this returns both supported and unsupported groups. To find "
27721 "out which ones the daemon can actually support you have to call "
27722 "C<guestfs_available> on each member of the returned list."
27726 #: ../src/guestfs-actions.pod:687
27727 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
27731 #: ../src/guestfs-actions.pod:693
27732 msgid "(Added in 1.3.15)"
27733 msgstr "(Додано у 1.3.15)"
27736 #: ../src/guestfs-actions.pod:695
27737 msgid "guestfs_base64_in"
27738 msgstr "guestfs_base64_in"
27741 #: ../src/guestfs-actions.pod:697
27745 " guestfs_base64_in (guestfs_h *g,\n"
27746 " const char *base64file,\n"
27747 " const char *filename);\n"
27751 " guestfs_base64_in (guestfs_h *g,\n"
27752 " const char *base64file,\n"
27753 " const char *filename);\n"
27757 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
27758 msgid "(Added in 1.3.5)"
27759 msgstr "(Додано у 1.3.5)"
27762 #: ../src/guestfs-actions.pod:709
27763 msgid "guestfs_base64_out"
27764 msgstr "guestfs_base64_out"
27767 #: ../src/guestfs-actions.pod:711
27771 " guestfs_base64_out (guestfs_h *g,\n"
27772 " const char *filename,\n"
27773 " const char *base64file);\n"
27777 " guestfs_base64_out (guestfs_h *g,\n"
27778 " const char *filename,\n"
27779 " const char *base64file);\n"
27783 #: ../src/guestfs-actions.pod:723
27785 #| msgid "guestfs_lvuuid"
27786 msgid "guestfs_blkid"
27787 msgstr "guestfs_lvuuid"
27790 #: ../src/guestfs-actions.pod:725
27794 #| " guestfs_lvuuid (guestfs_h *g,\n"
27795 #| " const char *device);\n"
27799 " guestfs_blkid (guestfs_h *g,\n"
27800 " const char *device);\n"
27804 " guestfs_lvuuid (guestfs_h *g,\n"
27805 " const char *device);\n"
27809 #: ../src/guestfs-actions.pod:756 ../src/guestfs-actions.pod:3231
27810 #: ../src/guestfs-actions.pod:3499 ../src/guestfs-actions.pod:4306
27811 #: ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5731
27812 #: ../src/guestfs-actions.pod:7928
27814 "This function returns a NULL-terminated array of strings, or NULL if there "
27815 "was an error. The array of strings will always have length C<2n+1>, where "
27816 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
27817 "caller must free the strings and the array after use>."
27821 #: ../src/guestfs-actions.pod:762
27822 msgid "guestfs_blockdev_flushbufs"
27823 msgstr "guestfs_blockdev_flushbufs"
27826 #: ../src/guestfs-actions.pod:764
27830 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
27831 " const char *device);\n"
27835 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
27836 " const char *device);\n"
27840 #: ../src/guestfs-actions.pod:775 ../src/guestfs-actions.pod:792
27841 #: ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:823
27842 #: ../src/guestfs-actions.pod:841 ../src/guestfs-actions.pod:860
27843 #: ../src/guestfs-actions.pod:874 ../src/guestfs-actions.pod:892
27844 #: ../src/guestfs-actions.pod:906 ../src/guestfs-actions.pod:920
27845 msgid "(Added in 0.9.3)"
27846 msgstr "(Додано у 0.9.3)"
27849 #: ../src/guestfs-actions.pod:777
27850 msgid "guestfs_blockdev_getbsz"
27851 msgstr "guestfs_blockdev_getbsz"
27854 #: ../src/guestfs-actions.pod:779
27858 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
27859 " const char *device);\n"
27863 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
27864 " const char *device);\n"
27868 #: ../src/guestfs-actions.pod:794
27869 msgid "guestfs_blockdev_getro"
27870 msgstr "guestfs_blockdev_getro"
27873 #: ../src/guestfs-actions.pod:796
27877 " guestfs_blockdev_getro (guestfs_h *g,\n"
27878 " const char *device);\n"
27882 " guestfs_blockdev_getro (guestfs_h *g,\n"
27883 " const char *device);\n"
27887 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:1930
27888 #: ../src/guestfs-actions.pod:1945 ../src/guestfs-actions.pod:2434
27889 #: ../src/guestfs-actions.pod:2445 ../src/guestfs-actions.pod:2517
27890 #: ../src/guestfs-actions.pod:2543 ../src/guestfs-actions.pod:2583
27891 #: ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2634
27892 #: ../src/guestfs-actions.pod:2657 ../src/guestfs-actions.pod:3736
27893 #: ../src/guestfs-actions.pod:3752 ../src/guestfs-actions.pod:3770
27894 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:3946
27895 #: ../src/guestfs-actions.pod:3961 ../src/guestfs-actions.pod:3975
27896 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:4006
27897 #: ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:4036
27898 #: ../src/guestfs-actions.pod:4049 ../src/guestfs-actions.pod:4063
27899 #: ../src/guestfs-actions.pod:4078 ../src/guestfs-actions.pod:4093
27900 #: ../src/guestfs-actions.pod:4106 ../src/guestfs-actions.pod:4120
27901 #: ../src/guestfs-actions.pod:5989
27902 msgid "This function returns a C truth value on success or -1 on error."
27906 #: ../src/guestfs-actions.pod:809
27907 msgid "guestfs_blockdev_getsize64"
27908 msgstr "guestfs_blockdev_getsize64"
27911 #: ../src/guestfs-actions.pod:811
27915 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
27916 " const char *device);\n"
27920 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
27921 " const char *device);\n"
27925 #: ../src/guestfs-actions.pod:817
27926 msgid "See also C<guestfs_blockdev_getsz>."
27930 #: ../src/guestfs-actions.pod:825
27931 msgid "guestfs_blockdev_getss"
27932 msgstr "guestfs_blockdev_getss"
27935 #: ../src/guestfs-actions.pod:827
27939 " guestfs_blockdev_getss (guestfs_h *g,\n"
27940 " const char *device);\n"
27944 " guestfs_blockdev_getss (guestfs_h *g,\n"
27945 " const char *device);\n"
27949 #: ../src/guestfs-actions.pod:834
27951 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
27956 #: ../src/guestfs-actions.pod:843
27957 msgid "guestfs_blockdev_getsz"
27958 msgstr "guestfs_blockdev_getsz"
27961 #: ../src/guestfs-actions.pod:845
27965 " guestfs_blockdev_getsz (guestfs_h *g,\n"
27966 " const char *device);\n"
27970 " guestfs_blockdev_getsz (guestfs_h *g,\n"
27971 " const char *device);\n"
27975 #: ../src/guestfs-actions.pod:852
27977 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
27978 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
27982 #: ../src/guestfs-actions.pod:862
27983 msgid "guestfs_blockdev_rereadpt"
27984 msgstr "guestfs_blockdev_rereadpt"
27987 #: ../src/guestfs-actions.pod:864
27991 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
27992 " const char *device);\n"
27996 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
27997 " const char *device);\n"
28001 #: ../src/guestfs-actions.pod:876
28002 msgid "guestfs_blockdev_setbsz"
28003 msgstr "guestfs_blockdev_setbsz"
28006 #: ../src/guestfs-actions.pod:878
28010 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
28011 " const char *device,\n"
28012 " int blocksize);\n"
28016 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
28017 " const char *device,\n"
28018 " int blocksize);\n"
28022 #: ../src/guestfs-actions.pod:894
28023 msgid "guestfs_blockdev_setro"
28024 msgstr "guestfs_blockdev_setro"
28027 #: ../src/guestfs-actions.pod:896
28031 " guestfs_blockdev_setro (guestfs_h *g,\n"
28032 " const char *device);\n"
28036 " guestfs_blockdev_setro (guestfs_h *g,\n"
28037 " const char *device);\n"
28041 #: ../src/guestfs-actions.pod:908
28042 msgid "guestfs_blockdev_setrw"
28043 msgstr "guestfs_blockdev_setrw"
28046 #: ../src/guestfs-actions.pod:910
28050 " guestfs_blockdev_setrw (guestfs_h *g,\n"
28051 " const char *device);\n"
28055 " guestfs_blockdev_setrw (guestfs_h *g,\n"
28056 " const char *device);\n"
28060 #: ../src/guestfs-actions.pod:922
28061 msgid "guestfs_btrfs_filesystem_resize"
28062 msgstr "guestfs_btrfs_filesystem_resize"
28065 #: ../src/guestfs-actions.pod:924
28069 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
28070 " const char *mountpoint,\n"
28075 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
28076 " const char *mountpoint,\n"
28081 #: ../src/guestfs-actions.pod:934
28084 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
28087 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
28091 #: ../src/guestfs-actions.pod:957
28092 msgid "(Added in 1.11.17)"
28093 msgstr "(Додано у 1.11.17)"
28096 #: ../src/guestfs-actions.pod:959
28097 msgid "guestfs_btrfs_filesystem_resize_va"
28098 msgstr "guestfs_btrfs_filesystem_resize_va"
28101 #: ../src/guestfs-actions.pod:961
28105 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
28106 " const char *mountpoint,\n"
28107 " va_list args);\n"
28111 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
28112 " const char *mountpoint,\n"
28113 " va_list args);\n"
28117 #: ../src/guestfs-actions.pod:966
28118 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
28122 #: ../src/guestfs-actions.pod:970
28123 msgid "guestfs_btrfs_filesystem_resize_argv"
28124 msgstr "guestfs_btrfs_filesystem_resize_argv"
28127 #: ../src/guestfs-actions.pod:972
28131 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
28132 " const char *mountpoint,\n"
28133 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
28137 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
28138 " const char *mountpoint,\n"
28139 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
28143 #: ../src/guestfs-actions.pod:977
28144 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
28148 #: ../src/guestfs-actions.pod:981
28149 msgid "guestfs_case_sensitive_path"
28153 #: ../src/guestfs-actions.pod:983
28157 " guestfs_case_sensitive_path (guestfs_h *g,\n"
28158 " const char *path);\n"
28163 #: ../src/guestfs-actions.pod:1009
28165 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return C<"
28166 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
28167 "how the directories were originally created under Windows)."
28171 #: ../src/guestfs-actions.pod:1017
28172 msgid "See also C<guestfs_realpath>."
28176 #: ../src/guestfs-actions.pod:1022 ../src/guestfs-actions.pod:8183
28177 msgid "(Added in 1.0.75)"
28178 msgstr "(Додано у 1.0.75)"
28181 #: ../src/guestfs-actions.pod:1024
28182 msgid "guestfs_cat"
28186 #: ../src/guestfs-actions.pod:1026
28190 " guestfs_cat (guestfs_h *g,\n"
28191 " const char *path);\n"
28196 #: ../src/guestfs-actions.pod:1032
28198 "Note that this function cannot correctly handle binary files (specifically, "
28199 "files containing C<\\0> character which is treated as end of string). For "
28200 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
28201 "functions which have a more complex interface."
28205 #: ../src/guestfs-actions.pod:1043 ../src/guestfs-actions.pod:4250
28206 #: ../src/guestfs-actions.pod:4345 ../src/guestfs-actions.pod:4362
28207 #: ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:4849
28208 #: ../src/guestfs-actions.pod:4863 ../src/guestfs-actions.pod:6390
28209 #: ../src/guestfs-actions.pod:6404 ../src/guestfs-actions.pod:8336
28210 #: ../src/guestfs-actions.pod:8350
28211 msgid "(Added in 0.4)"
28212 msgstr "(Додано у 0.4)"
28215 #: ../src/guestfs-actions.pod:1045
28216 msgid "guestfs_checksum"
28220 #: ../src/guestfs-actions.pod:1047
28224 " guestfs_checksum (guestfs_h *g,\n"
28225 " const char *csumtype,\n"
28226 " const char *path);\n"
28231 #: ../src/guestfs-actions.pod:1093
28232 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
28236 #: ../src/guestfs-actions.pod:1095
28237 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
28241 #: ../src/guestfs-actions.pod:1100 ../src/guestfs-actions.pod:1767
28242 #: ../src/guestfs-actions.pod:2625 ../src/guestfs-actions.pod:3948
28243 #: ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4038
28244 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:8039
28245 msgid "(Added in 1.0.2)"
28246 msgstr "(Додано у 1.0.2)"
28249 #: ../src/guestfs-actions.pod:1102
28250 msgid "guestfs_checksum_device"
28254 #: ../src/guestfs-actions.pod:1104
28258 " guestfs_checksum_device (guestfs_h *g,\n"
28259 " const char *csumtype,\n"
28260 " const char *device);\n"
28265 #: ../src/guestfs-actions.pod:1109
28267 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
28268 "device named C<device>. For the types of checksums supported see the "
28269 "C<guestfs_checksum> command."
28273 #: ../src/guestfs-actions.pod:1116 ../src/guestfs-actions.pod:5822
28274 #: ../src/guestfs-actions.pod:5957 ../src/guestfs-actions.pod:5991
28275 #: ../src/guestfs-actions.pod:6009 ../src/guestfs-actions.pod:6191
28276 #: ../src/guestfs-actions.pod:7948 ../src/guestfs-actions.pod:7962
28277 #: ../src/guestfs-actions.pod:8362
28278 msgid "(Added in 1.3.2)"
28279 msgstr "(Додано у 1.3.2)"
28282 #: ../src/guestfs-actions.pod:1118
28283 msgid "guestfs_checksums_out"
28287 #: ../src/guestfs-actions.pod:1120
28291 " guestfs_checksums_out (guestfs_h *g,\n"
28292 " const char *csumtype,\n"
28293 " const char *directory,\n"
28294 " const char *sumsfile);\n"
28299 #: ../src/guestfs-actions.pod:1140
28300 msgid "(Added in 1.3.7)"
28301 msgstr "(Додано у 1.3.7)"
28304 #: ../src/guestfs-actions.pod:1142
28305 msgid "guestfs_chmod"
28309 #: ../src/guestfs-actions.pod:1144
28313 " guestfs_chmod (guestfs_h *g,\n"
28315 " const char *path);\n"
28320 #: ../src/guestfs-actions.pod:1162
28321 msgid "guestfs_chown"
28325 #: ../src/guestfs-actions.pod:1164
28329 " guestfs_chown (guestfs_h *g,\n"
28332 " const char *path);\n"
28337 #: ../src/guestfs-actions.pod:1180
28338 msgid "guestfs_command"
28342 #: ../src/guestfs-actions.pod:1182
28346 " guestfs_command (guestfs_h *g,\n"
28347 " char *const *arguments);\n"
28352 #: ../src/guestfs-actions.pod:1191
28354 "The single parameter is an argv-style list of arguments. The first element "
28355 "is the name of the program to run. Subsequent elements are parameters. The "
28356 "list must be non-empty (ie. must contain a program name). Note that the "
28357 "command runs directly, and is I<not> invoked via the shell (see "
28362 #: ../src/guestfs-actions.pod:1222 ../src/guestfs-actions.pod:1242
28363 #: ../src/guestfs-actions.pod:2066
28364 msgid "(Added in 0.9.1)"
28365 msgstr "(Додано у 0.9.1)"
28368 #: ../src/guestfs-actions.pod:1224
28369 msgid "guestfs_command_lines"
28373 #: ../src/guestfs-actions.pod:1226
28377 " guestfs_command_lines (guestfs_h *g,\n"
28378 " char *const *arguments);\n"
28383 #: ../src/guestfs-actions.pod:1230
28385 "This is the same as C<guestfs_command>, but splits the result into a list of "
28390 #: ../src/guestfs-actions.pod:1233
28391 msgid "See also: C<guestfs_sh_lines>"
28395 #: ../src/guestfs-actions.pod:1244
28396 msgid "guestfs_compress_device_out"
28400 #: ../src/guestfs-actions.pod:1246
28404 " guestfs_compress_device_out (guestfs_h *g,\n"
28405 " const char *ctype,\n"
28406 " const char *device,\n"
28407 " const char *zdevice,\n"
28413 #: ../src/guestfs-actions.pod:1258
28416 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
28421 #: ../src/guestfs-actions.pod:1263
28423 "The C<ctype> and optional C<level> parameters have the same meaning as in "
28424 "C<guestfs_compress_out>."
28428 #: ../src/guestfs-actions.pod:1268 ../src/guestfs-actions.pod:1327
28429 #: ../src/guestfs-actions.pod:2611 ../src/guestfs-actions.pod:7107
28430 msgid "(Added in 1.13.15)"
28434 #: ../src/guestfs-actions.pod:1270
28435 msgid "guestfs_compress_device_out_va"
28439 #: ../src/guestfs-actions.pod:1272
28443 " guestfs_compress_device_out_va (guestfs_h *g,\n"
28444 " const char *ctype,\n"
28445 " const char *device,\n"
28446 " const char *zdevice,\n"
28447 " va_list args);\n"
28452 #: ../src/guestfs-actions.pod:1279
28453 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
28457 #: ../src/guestfs-actions.pod:1283
28458 msgid "guestfs_compress_device_out_argv"
28462 #: ../src/guestfs-actions.pod:1285
28466 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
28467 " const char *ctype,\n"
28468 " const char *device,\n"
28469 " const char *zdevice,\n"
28470 " const struct guestfs_compress_device_out_argv *optargs);\n"
28475 #: ../src/guestfs-actions.pod:1292
28476 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
28480 #: ../src/guestfs-actions.pod:1296
28481 msgid "guestfs_compress_out"
28485 #: ../src/guestfs-actions.pod:1298
28489 " guestfs_compress_out (guestfs_h *g,\n"
28490 " const char *ctype,\n"
28491 " const char *file,\n"
28492 " const char *zfile,\n"
28498 #: ../src/guestfs-actions.pod:1310
28501 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
28506 #: ../src/guestfs-actions.pod:1329
28507 msgid "guestfs_compress_out_va"
28511 #: ../src/guestfs-actions.pod:1331
28515 " guestfs_compress_out_va (guestfs_h *g,\n"
28516 " const char *ctype,\n"
28517 " const char *file,\n"
28518 " const char *zfile,\n"
28519 " va_list args);\n"
28524 #: ../src/guestfs-actions.pod:1338
28525 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
28529 #: ../src/guestfs-actions.pod:1342
28530 msgid "guestfs_compress_out_argv"
28534 #: ../src/guestfs-actions.pod:1344
28538 " guestfs_compress_out_argv (guestfs_h *g,\n"
28539 " const char *ctype,\n"
28540 " const char *file,\n"
28541 " const char *zfile,\n"
28542 " const struct guestfs_compress_out_argv *optargs);\n"
28547 #: ../src/guestfs-actions.pod:1351
28548 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
28552 #: ../src/guestfs-actions.pod:1355
28553 msgid "guestfs_config"
28557 #: ../src/guestfs-actions.pod:1357
28561 " guestfs_config (guestfs_h *g,\n"
28562 " const char *qemuparam,\n"
28563 " const char *qemuvalue);\n"
28568 #: ../src/guestfs-actions.pod:1375
28569 msgid "guestfs_copy_device_to_device"
28573 #: ../src/guestfs-actions.pod:1377
28577 " guestfs_copy_device_to_device (guestfs_h *g,\n"
28578 " const char *src,\n"
28579 " const char *dest,\n"
28585 #: ../src/guestfs-actions.pod:1388
28588 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
28589 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
28590 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
28595 #: ../src/guestfs-actions.pod:1392
28597 "The four calls C<guestfs_copy_device_to_device>, "
28598 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
28599 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
28600 "destination (device|file)."
28604 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466
28605 #: ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:1577
28606 #: ../src/guestfs-actions.pod:1631 ../src/guestfs-actions.pod:1762
28607 #: ../src/guestfs-actions.pod:1793 ../src/guestfs-actions.pod:1838
28608 #: ../src/guestfs-actions.pod:2215 ../src/guestfs-actions.pod:2237
28609 #: ../src/guestfs-actions.pod:4148 ../src/guestfs-actions.pod:8034
28610 #: ../src/guestfs-actions.pod:8068 ../src/guestfs-actions.pod:8575
28611 #: ../src/guestfs-actions.pod:8598
28613 "This long-running command can generate progress notification messages so "
28614 "that the caller can display a progress bar or indicator. To receive these "
28615 "messages, the caller must register a progress event callback. See L<guestfs"
28616 "(3)/GUESTFS_EVENT_PROGRESS>."
28620 #: ../src/guestfs-actions.pod:1418 ../src/guestfs-actions.pod:1471
28621 #: ../src/guestfs-actions.pod:1524 ../src/guestfs-actions.pod:1582
28622 #: ../src/guestfs-actions.pod:6247
28624 #| msgid "(Added in 1.3.5)"
28625 msgid "(Added in 1.13.25)"
28626 msgstr "(Додано у 1.3.5)"
28629 #: ../src/guestfs-actions.pod:1420
28630 msgid "guestfs_copy_device_to_device_va"
28634 #: ../src/guestfs-actions.pod:1422
28638 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
28639 " const char *src,\n"
28640 " const char *dest,\n"
28641 " va_list args);\n"
28646 #: ../src/guestfs-actions.pod:1428
28647 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
28651 #: ../src/guestfs-actions.pod:1432
28652 msgid "guestfs_copy_device_to_device_argv"
28656 #: ../src/guestfs-actions.pod:1434
28660 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
28661 " const char *src,\n"
28662 " const char *dest,\n"
28663 " const struct guestfs_copy_device_to_device_argv *optargs);\n"
28668 #: ../src/guestfs-actions.pod:1440
28669 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
28673 #: ../src/guestfs-actions.pod:1444
28674 msgid "guestfs_copy_device_to_file"
28678 #: ../src/guestfs-actions.pod:1446
28682 " guestfs_copy_device_to_file (guestfs_h *g,\n"
28683 " const char *src,\n"
28684 " const char *dest,\n"
28690 #: ../src/guestfs-actions.pod:1457
28693 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
28694 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
28695 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
28700 #: ../src/guestfs-actions.pod:1461 ../src/guestfs-actions.pod:1514
28701 #: ../src/guestfs-actions.pod:1567
28703 "See C<guestfs_copy_device_to_device> for a general overview of this call."
28707 #: ../src/guestfs-actions.pod:1473
28708 msgid "guestfs_copy_device_to_file_va"
28712 #: ../src/guestfs-actions.pod:1475
28716 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
28717 " const char *src,\n"
28718 " const char *dest,\n"
28719 " va_list args);\n"
28724 #: ../src/guestfs-actions.pod:1481
28725 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
28729 #: ../src/guestfs-actions.pod:1485
28730 msgid "guestfs_copy_device_to_file_argv"
28734 #: ../src/guestfs-actions.pod:1487
28738 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
28739 " const char *src,\n"
28740 " const char *dest,\n"
28741 " const struct guestfs_copy_device_to_file_argv *optargs);\n"
28746 #: ../src/guestfs-actions.pod:1493
28747 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
28751 #: ../src/guestfs-actions.pod:1497
28752 msgid "guestfs_copy_file_to_device"
28756 #: ../src/guestfs-actions.pod:1499
28760 " guestfs_copy_file_to_device (guestfs_h *g,\n"
28761 " const char *src,\n"
28762 " const char *dest,\n"
28768 #: ../src/guestfs-actions.pod:1510
28771 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
28772 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
28773 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
28778 #: ../src/guestfs-actions.pod:1526
28779 msgid "guestfs_copy_file_to_device_va"
28783 #: ../src/guestfs-actions.pod:1528
28787 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
28788 " const char *src,\n"
28789 " const char *dest,\n"
28790 " va_list args);\n"
28795 #: ../src/guestfs-actions.pod:1534
28796 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
28800 #: ../src/guestfs-actions.pod:1538
28801 msgid "guestfs_copy_file_to_device_argv"
28805 #: ../src/guestfs-actions.pod:1540
28809 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
28810 " const char *src,\n"
28811 " const char *dest,\n"
28812 " const struct guestfs_copy_file_to_device_argv *optargs);\n"
28817 #: ../src/guestfs-actions.pod:1546
28818 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
28822 #: ../src/guestfs-actions.pod:1550
28823 msgid "guestfs_copy_file_to_file"
28827 #: ../src/guestfs-actions.pod:1552
28831 " guestfs_copy_file_to_file (guestfs_h *g,\n"
28832 " const char *src,\n"
28833 " const char *dest,\n"
28839 #: ../src/guestfs-actions.pod:1563
28842 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
28843 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
28844 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
28849 #: ../src/guestfs-actions.pod:1570
28851 "This is B<not> the function you want for copying files. This is for copying "
28852 "blocks within existing files. See C<guestfs_cp>, C<guestfs_cp_a> and "
28853 "C<guestfs_mv> for general file copying and moving functions."
28857 #: ../src/guestfs-actions.pod:1584
28858 msgid "guestfs_copy_file_to_file_va"
28862 #: ../src/guestfs-actions.pod:1586
28866 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
28867 " const char *src,\n"
28868 " const char *dest,\n"
28869 " va_list args);\n"
28874 #: ../src/guestfs-actions.pod:1592
28875 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
28879 #: ../src/guestfs-actions.pod:1596
28880 msgid "guestfs_copy_file_to_file_argv"
28884 #: ../src/guestfs-actions.pod:1598
28888 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
28889 " const char *src,\n"
28890 " const char *dest,\n"
28891 " const struct guestfs_copy_file_to_file_argv *optargs);\n"
28896 #: ../src/guestfs-actions.pod:1604
28897 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
28901 #: ../src/guestfs-actions.pod:1608
28902 msgid "guestfs_copy_size"
28906 #: ../src/guestfs-actions.pod:1610
28910 " guestfs_copy_size (guestfs_h *g,\n"
28911 " const char *src,\n"
28912 " const char *dest,\n"
28913 " int64_t size);\n"
28918 #: ../src/guestfs-actions.pod:1616 ../src/guestfs-actions.pod:1673
28920 "I<This function is deprecated.> In new code, use the L</"
28921 "guestfs_copy_device_to_device> call instead."
28925 #: ../src/guestfs-actions.pod:1636 ../src/guestfs-actions.pod:4876
28926 #: ../src/guestfs-actions.pod:6417 ../src/guestfs-actions.pod:8269
28927 #: ../src/guestfs-actions.pod:8289 ../src/guestfs-actions.pod:8375
28928 msgid "(Added in 1.0.87)"
28929 msgstr "(Додано у 1.0.87)"
28932 #: ../src/guestfs-actions.pod:1638
28937 #: ../src/guestfs-actions.pod:1640
28941 " guestfs_cp (guestfs_h *g,\n"
28942 " const char *src,\n"
28943 " const char *dest);\n"
28948 #: ../src/guestfs-actions.pod:1650 ../src/guestfs-actions.pod:1664
28949 #: ../src/guestfs-actions.pod:1744 ../src/guestfs-actions.pod:1818
28950 #: ../src/guestfs-actions.pod:1932 ../src/guestfs-actions.pod:5769
28951 #: ../src/guestfs-actions.pod:6261
28952 msgid "(Added in 1.0.18)"
28953 msgstr "(Додано у 1.0.18)"
28956 #: ../src/guestfs-actions.pod:1652
28957 msgid "guestfs_cp_a"
28961 #: ../src/guestfs-actions.pod:1654
28965 " guestfs_cp_a (guestfs_h *g,\n"
28966 " const char *src,\n"
28967 " const char *dest);\n"
28972 #: ../src/guestfs-actions.pod:1666
28977 #: ../src/guestfs-actions.pod:1668
28981 " guestfs_dd (guestfs_h *g,\n"
28982 " const char *src,\n"
28983 " const char *dest);\n"
28988 #: ../src/guestfs-actions.pod:1685
28990 "If the destination is a device, it must be as large or larger than the "
28991 "source file or device, otherwise the copy will fail. This command cannot do "
28992 "partial copies (see C<guestfs_copy_device_to_device>)."
28996 #: ../src/guestfs-actions.pod:1694
29001 #: ../src/guestfs-actions.pod:1696
29005 " guestfs_df (guestfs_h *g);\n"
29010 #: ../src/guestfs-actions.pod:1701 ../src/guestfs-actions.pod:1718
29012 "This command is mostly useful for interactive sessions. It is I<not> "
29013 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
29018 #: ../src/guestfs-actions.pod:1708 ../src/guestfs-actions.pod:1725
29019 #: ../src/guestfs-actions.pod:1843 ../src/guestfs-actions.pod:2850
29020 #: ../src/guestfs-actions.pod:2874 ../src/guestfs-actions.pod:2942
29021 #: ../src/guestfs-actions.pod:5135 ../src/guestfs-actions.pod:5669
29022 #: ../src/guestfs-actions.pod:7650 ../src/guestfs-actions.pod:7674
29023 #: ../src/guestfs-actions.pod:8415 ../src/guestfs-actions.pod:8428
29024 #: ../src/guestfs-actions.pod:8441
29025 msgid "(Added in 1.0.54)"
29026 msgstr "(Додано у 1.0.54)"
29029 #: ../src/guestfs-actions.pod:1710
29030 msgid "guestfs_df_h"
29034 #: ../src/guestfs-actions.pod:1712
29038 " guestfs_df_h (guestfs_h *g);\n"
29043 #: ../src/guestfs-actions.pod:1727
29044 msgid "guestfs_dmesg"
29048 #: ../src/guestfs-actions.pod:1729
29052 " guestfs_dmesg (guestfs_h *g);\n"
29057 #: ../src/guestfs-actions.pod:1736
29059 "Another way to get the same information is to enable verbose messages with "
29060 "C<guestfs_set_verbose> or by setting the environment variable "
29061 "C<LIBGUESTFS_DEBUG=1> before running the program."
29065 #: ../src/guestfs-actions.pod:1746
29066 msgid "guestfs_download"
29070 #: ../src/guestfs-actions.pod:1748
29074 " guestfs_download (guestfs_h *g,\n"
29075 " const char *remotefilename,\n"
29076 " const char *filename);\n"
29081 #: ../src/guestfs-actions.pod:1758
29082 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
29086 #: ../src/guestfs-actions.pod:1769
29087 msgid "guestfs_download_offset"
29091 #: ../src/guestfs-actions.pod:1771
29095 " guestfs_download_offset (guestfs_h *g,\n"
29096 " const char *remotefilename,\n"
29097 " const char *filename,\n"
29098 " int64_t offset,\n"
29099 " int64_t size);\n"
29104 #: ../src/guestfs-actions.pod:1784
29106 "Note that there is no limit on the amount of data that can be downloaded "
29107 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
29108 "full amount unless an error occurs."
29112 #: ../src/guestfs-actions.pod:1789
29113 msgid "See also C<guestfs_download>, C<guestfs_pread>."
29117 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:8073
29118 msgid "(Added in 1.5.17)"
29119 msgstr "(Додано у 1.5.17)"
29122 #: ../src/guestfs-actions.pod:1800
29123 msgid "guestfs_drop_caches"
29127 #: ../src/guestfs-actions.pod:1802
29131 " guestfs_drop_caches (guestfs_h *g,\n"
29132 " int whattodrop);\n"
29137 #: ../src/guestfs-actions.pod:1820
29142 #: ../src/guestfs-actions.pod:1822
29146 " guestfs_du (guestfs_h *g,\n"
29147 " const char *path);\n"
29152 #: ../src/guestfs-actions.pod:1845
29153 msgid "guestfs_e2fsck_f"
29157 #: ../src/guestfs-actions.pod:1847
29161 " guestfs_e2fsck_f (guestfs_h *g,\n"
29162 " const char *device);\n"
29167 #: ../src/guestfs-actions.pod:1855
29169 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
29170 "Normally you should use C<guestfs_fsck>."
29174 #: ../src/guestfs-actions.pod:1860
29175 msgid "(Added in 1.0.29)"
29176 msgstr "(Додано у 1.0.29)"
29179 #: ../src/guestfs-actions.pod:1862
29180 msgid "guestfs_echo_daemon"
29181 msgstr "guestfs_echo_daemon"
29184 #: ../src/guestfs-actions.pod:1864
29188 " guestfs_echo_daemon (guestfs_h *g,\n"
29189 " char *const *words);\n"
29193 " guestfs_echo_daemon (guestfs_h *g,\n"
29194 " char *const *words);\n"
29198 #: ../src/guestfs-actions.pod:1873
29199 msgid "See also C<guestfs_ping_daemon>."
29203 #: ../src/guestfs-actions.pod:1878 ../src/guestfs-actions.pod:2636
29204 #: ../src/guestfs-actions.pod:7131
29205 msgid "(Added in 1.0.69)"
29206 msgstr "(Додано у 1.0.69)"
29209 #: ../src/guestfs-actions.pod:1880
29210 msgid "guestfs_egrep"
29211 msgstr "guestfs_egrep"
29214 #: ../src/guestfs-actions.pod:1882
29218 " guestfs_egrep (guestfs_h *g,\n"
29219 " const char *regex,\n"
29220 " const char *path);\n"
29224 " guestfs_egrep (guestfs_h *g,\n"
29225 " const char *regex,\n"
29226 " const char *path);\n"
29230 #: ../src/guestfs-actions.pod:1897 ../src/guestfs-actions.pod:1916
29231 #: ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:2019
29232 #: ../src/guestfs-actions.pod:2038 ../src/guestfs-actions.pod:2766
29233 #: ../src/guestfs-actions.pod:2785 ../src/guestfs-actions.pod:2963
29234 #: ../src/guestfs-actions.pod:2976 ../src/guestfs-actions.pod:2991
29235 #: ../src/guestfs-actions.pod:3037 ../src/guestfs-actions.pod:3059
29236 #: ../src/guestfs-actions.pod:3072 ../src/guestfs-actions.pod:4375
29237 #: ../src/guestfs-actions.pod:4389 ../src/guestfs-actions.pod:4402
29238 #: ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:5557
29239 #: ../src/guestfs-actions.pod:6595 ../src/guestfs-actions.pod:6644
29240 #: ../src/guestfs-actions.pod:7518 ../src/guestfs-actions.pod:7530
29241 #: ../src/guestfs-actions.pod:7543 ../src/guestfs-actions.pod:7556
29242 #: ../src/guestfs-actions.pod:7578 ../src/guestfs-actions.pod:7591
29243 #: ../src/guestfs-actions.pod:7604 ../src/guestfs-actions.pod:7617
29244 #: ../src/guestfs-actions.pod:8533 ../src/guestfs-actions.pod:8552
29245 #: ../src/guestfs-actions.pod:8643 ../src/guestfs-actions.pod:8662
29246 #: ../src/guestfs-actions.pod:8708 ../src/guestfs-actions.pod:8727
29247 msgid "(Added in 1.0.66)"
29248 msgstr "(Додано у 1.0.66)"
29251 #: ../src/guestfs-actions.pod:1899
29252 msgid "guestfs_egrepi"
29253 msgstr "guestfs_egrepi"
29256 #: ../src/guestfs-actions.pod:1901
29260 " guestfs_egrepi (guestfs_h *g,\n"
29261 " const char *regex,\n"
29262 " const char *path);\n"
29267 #: ../src/guestfs-actions.pod:1918
29268 msgid "guestfs_equal"
29272 #: ../src/guestfs-actions.pod:1920
29276 " guestfs_equal (guestfs_h *g,\n"
29277 " const char *file1,\n"
29278 " const char *file2);\n"
29283 #: ../src/guestfs-actions.pod:1934
29284 msgid "guestfs_exists"
29288 #: ../src/guestfs-actions.pod:1936
29292 " guestfs_exists (guestfs_h *g,\n"
29293 " const char *path);\n"
29298 #: ../src/guestfs-actions.pod:1943
29299 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
29303 #: ../src/guestfs-actions.pod:1949
29304 msgid "guestfs_fallocate"
29308 #: ../src/guestfs-actions.pod:1951
29312 " guestfs_fallocate (guestfs_h *g,\n"
29313 " const char *path,\n"
29319 #: ../src/guestfs-actions.pod:1956
29321 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
29326 #: ../src/guestfs-actions.pod:1975
29327 msgid "guestfs_fallocate64"
29331 #: ../src/guestfs-actions.pod:1977
29335 " guestfs_fallocate64 (guestfs_h *g,\n"
29336 " const char *path,\n"
29342 #: ../src/guestfs-actions.pod:1986
29344 "Note that this call allocates disk blocks for the file. To create a sparse "
29345 "file use C<guestfs_truncate_size> instead."
29349 #: ../src/guestfs-actions.pod:1989
29351 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
29352 "oversight it only allowed 30 bit lengths to be specified, effectively "
29353 "limiting the maximum size of files created through that call to 1GB."
29357 #: ../src/guestfs-actions.pod:2000
29358 msgid "(Added in 1.3.17)"
29359 msgstr "(Додано у 1.3.17)"
29362 #: ../src/guestfs-actions.pod:2002
29363 msgid "guestfs_fgrep"
29367 #: ../src/guestfs-actions.pod:2004
29371 " guestfs_fgrep (guestfs_h *g,\n"
29372 " const char *pattern,\n"
29373 " const char *path);\n"
29378 #: ../src/guestfs-actions.pod:2021
29379 msgid "guestfs_fgrepi"
29383 #: ../src/guestfs-actions.pod:2023
29387 " guestfs_fgrepi (guestfs_h *g,\n"
29388 " const char *pattern,\n"
29389 " const char *path);\n"
29394 #: ../src/guestfs-actions.pod:2040
29395 msgid "guestfs_file"
29399 #: ../src/guestfs-actions.pod:2042
29403 " guestfs_file (guestfs_h *g,\n"
29404 " const char *path);\n"
29409 #: ../src/guestfs-actions.pod:2060
29411 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
29412 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
29416 #: ../src/guestfs-actions.pod:2068
29417 msgid "guestfs_file_architecture"
29421 #: ../src/guestfs-actions.pod:2070
29425 " guestfs_file_architecture (guestfs_h *g,\n"
29426 " const char *filename);\n"
29431 #: ../src/guestfs-actions.pod:2178 ../src/guestfs-actions.pod:2341
29432 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:3092
29433 #: ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3260
29434 #: ../src/guestfs-actions.pod:3447 ../src/guestfs-actions.pod:3465
29435 #: ../src/guestfs-actions.pod:3505 ../src/guestfs-actions.pod:3581
29436 #: ../src/guestfs-actions.pod:3682 ../src/guestfs-actions.pod:3919
29437 #: ../src/guestfs-actions.pod:4051
29438 msgid "(Added in 1.5.3)"
29439 msgstr "(Додано у 1.5.3)"
29442 #: ../src/guestfs-actions.pod:2180
29443 msgid "guestfs_filesize"
29447 #: ../src/guestfs-actions.pod:2182
29451 " guestfs_filesize (guestfs_h *g,\n"
29452 " const char *file);\n"
29457 #: ../src/guestfs-actions.pod:2188
29459 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
29460 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
29461 "devices, use C<guestfs_blockdev_getsize64>."
29465 #: ../src/guestfs-actions.pod:2194
29466 msgid "(Added in 1.0.82)"
29467 msgstr "(Додано у 1.0.82)"
29470 #: ../src/guestfs-actions.pod:2196
29471 msgid "guestfs_fill"
29475 #: ../src/guestfs-actions.pod:2198
29479 " guestfs_fill (guestfs_h *g,\n"
29482 " const char *path);\n"
29487 #: ../src/guestfs-actions.pod:2208
29489 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
29490 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
29491 "bytes use C<guestfs_fill_pattern>."
29495 #: ../src/guestfs-actions.pod:2220
29496 msgid "(Added in 1.0.79)"
29497 msgstr "(Додано у 1.0.79)"
29500 #: ../src/guestfs-actions.pod:2222
29501 msgid "guestfs_fill_pattern"
29505 #: ../src/guestfs-actions.pod:2224
29509 " guestfs_fill_pattern (guestfs_h *g,\n"
29510 " const char *pattern,\n"
29512 " const char *path);\n"
29517 #: ../src/guestfs-actions.pod:2230
29519 "This function is like C<guestfs_fill> except that it creates a new file of "
29520 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
29521 "pattern is truncated if necessary to ensure the length of the file is "
29522 "exactly C<len> bytes."
29526 #: ../src/guestfs-actions.pod:2242
29527 msgid "(Added in 1.3.12)"
29528 msgstr "(Додано у 1.3.12)"
29531 #: ../src/guestfs-actions.pod:2244
29532 msgid "guestfs_find"
29536 #: ../src/guestfs-actions.pod:2246
29540 " guestfs_find (guestfs_h *g,\n"
29541 " const char *directory);\n"
29546 #: ../src/guestfs-actions.pod:2262
29548 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
29552 #: ../src/guestfs-actions.pod:2275
29553 msgid "See also C<guestfs_find0>."
29557 #: ../src/guestfs-actions.pod:2284 ../src/guestfs-actions.pod:4813
29558 #: ../src/guestfs-actions.pod:6679
29559 msgid "(Added in 1.0.27)"
29560 msgstr "(Додано у 1.0.27)"
29563 #: ../src/guestfs-actions.pod:2286
29564 msgid "guestfs_find0"
29568 #: ../src/guestfs-actions.pod:2288
29572 " guestfs_find0 (guestfs_h *g,\n"
29573 " const char *directory,\n"
29574 " const char *files);\n"
29579 #: ../src/guestfs-actions.pod:2297
29581 "This command works the same way as C<guestfs_find> with the following "
29586 #: ../src/guestfs-actions.pod:2324
29587 msgid "(Added in 1.0.74)"
29588 msgstr "(Додано у 1.0.74)"
29591 #: ../src/guestfs-actions.pod:2326
29592 msgid "guestfs_findfs_label"
29596 #: ../src/guestfs-actions.pod:2328
29600 " guestfs_findfs_label (guestfs_h *g,\n"
29601 " const char *label);\n"
29606 #: ../src/guestfs-actions.pod:2336
29607 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
29611 #: ../src/guestfs-actions.pod:2343
29612 msgid "guestfs_findfs_uuid"
29616 #: ../src/guestfs-actions.pod:2345
29620 " guestfs_findfs_uuid (guestfs_h *g,\n"
29621 " const char *uuid);\n"
29626 #: ../src/guestfs-actions.pod:2353
29627 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
29631 #: ../src/guestfs-actions.pod:2360
29632 msgid "guestfs_fsck"
29636 #: ../src/guestfs-actions.pod:2362
29640 " guestfs_fsck (guestfs_h *g,\n"
29641 " const char *fstype,\n"
29642 " const char *device);\n"
29647 #: ../src/guestfs-actions.pod:2397 ../src/guestfs-actions.pod:8580
29648 msgid "(Added in 1.0.16)"
29649 msgstr "(Додано у 1.0.16)"
29652 #: ../src/guestfs-actions.pod:2399
29653 msgid "guestfs_get_append"
29657 #: ../src/guestfs-actions.pod:2401
29661 " guestfs_get_append (guestfs_h *g);\n"
29666 #: ../src/guestfs-actions.pod:2409
29668 "This function returns a string which may be NULL. There is no way to return "
29669 "an error from this function. The string is owned by the guest handle and "
29670 "must I<not> be freed."
29674 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:6357
29675 #: ../src/guestfs-actions.pod:6836 ../src/guestfs-actions.pod:7285
29676 #: ../src/guestfs-actions.pod:7304 ../src/guestfs-actions.pod:7320
29677 #: ../src/guestfs-actions.pod:7344 ../src/guestfs-actions.pod:8220
29678 #: ../src/guestfs-actions.pod:8235 ../src/guestfs-actions.pod:8624
29679 msgid "(Added in 1.0.26)"
29680 msgstr "(Додано у 1.0.26)"
29683 #: ../src/guestfs-actions.pod:2415
29684 msgid "guestfs_get_attach_method"
29688 #: ../src/guestfs-actions.pod:2417
29692 " guestfs_get_attach_method (guestfs_h *g);\n"
29697 #: ../src/guestfs-actions.pod:2420
29698 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
29702 #: ../src/guestfs-actions.pod:2425 ../src/guestfs-actions.pod:6866
29703 msgid "(Added in 1.9.8)"
29704 msgstr "(Додано у 1.9.8)"
29707 #: ../src/guestfs-actions.pod:2427
29708 msgid "guestfs_get_autosync"
29712 #: ../src/guestfs-actions.pod:2429
29716 " guestfs_get_autosync (guestfs_h *g);\n"
29721 #: ../src/guestfs-actions.pod:2438
29722 msgid "guestfs_get_direct"
29726 #: ../src/guestfs-actions.pod:2440
29730 " guestfs_get_direct (guestfs_h *g);\n"
29735 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:6907
29736 msgid "(Added in 1.0.72)"
29737 msgstr "(Додано у 1.0.72)"
29740 #: ../src/guestfs-actions.pod:2449
29741 msgid "guestfs_get_e2label"
29745 #: ../src/guestfs-actions.pod:2451
29749 " guestfs_get_e2label (guestfs_h *g,\n"
29750 " const char *device);\n"
29755 #: ../src/guestfs-actions.pod:2455
29757 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
29762 #: ../src/guestfs-actions.pod:2468 ../src/guestfs-actions.pod:2489
29763 #: ../src/guestfs-actions.pod:6925 ../src/guestfs-actions.pod:6944
29764 msgid "(Added in 1.0.15)"
29765 msgstr "(Додано у 1.0.15)"
29768 #: ../src/guestfs-actions.pod:2470
29769 msgid "guestfs_get_e2uuid"
29773 #: ../src/guestfs-actions.pod:2472
29777 " guestfs_get_e2uuid (guestfs_h *g,\n"
29778 " const char *device);\n"
29783 #: ../src/guestfs-actions.pod:2476
29785 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
29790 #: ../src/guestfs-actions.pod:2491
29791 msgid "guestfs_get_memsize"
29795 #: ../src/guestfs-actions.pod:2493
29799 " guestfs_get_memsize (guestfs_h *g);\n"
29804 #: ../src/guestfs-actions.pod:2499
29806 "If C<guestfs_set_memsize> was not called on this handle, and if "
29807 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
29808 "value for memsize."
29812 #: ../src/guestfs-actions.pod:2508 ../src/guestfs-actions.pod:5253
29813 #: ../src/guestfs-actions.pod:5462 ../src/guestfs-actions.pod:5481
29814 #: ../src/guestfs-actions.pod:5500 ../src/guestfs-actions.pod:5512
29815 #: ../src/guestfs-actions.pod:5529 ../src/guestfs-actions.pod:5542
29816 #: ../src/guestfs-actions.pod:6582 ../src/guestfs-actions.pod:6965
29817 #: ../src/guestfs-actions.pod:7255 ../src/guestfs-actions.pod:7989
29818 msgid "(Added in 1.0.55)"
29819 msgstr "(Додано у 1.0.55)"
29822 #: ../src/guestfs-actions.pod:2510
29823 msgid "guestfs_get_network"
29827 #: ../src/guestfs-actions.pod:2512
29831 " guestfs_get_network (guestfs_h *g);\n"
29836 #: ../src/guestfs-actions.pod:2519 ../src/guestfs-actions.pod:6984
29837 msgid "(Added in 1.5.4)"
29838 msgstr "(Додано у 1.5.4)"
29841 #: ../src/guestfs-actions.pod:2521
29842 msgid "guestfs_get_path"
29846 #: ../src/guestfs-actions.pod:2523
29850 " guestfs_get_path (guestfs_h *g);\n"
29855 #: ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:2571
29857 "This function returns a string, or NULL on error. The string is owned by "
29858 "the guest handle and must I<not> be freed."
29862 #: ../src/guestfs-actions.pod:2536
29863 msgid "guestfs_get_pgroup"
29867 #: ../src/guestfs-actions.pod:2538
29871 " guestfs_get_pgroup (guestfs_h *g);\n"
29876 #: ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:7020
29877 #: ../src/guestfs-actions.pod:8481
29878 msgid "(Added in 1.11.18)"
29879 msgstr "(Додано у 1.11.18)"
29882 #: ../src/guestfs-actions.pod:2547
29883 msgid "guestfs_get_pid"
29887 #: ../src/guestfs-actions.pod:2549
29891 " guestfs_get_pid (guestfs_h *g);\n"
29896 #: ../src/guestfs-actions.pod:2559
29897 msgid "(Added in 1.0.56)"
29898 msgstr "(Додано у 1.0.56)"
29901 #: ../src/guestfs-actions.pod:2561
29902 msgid "guestfs_get_qemu"
29906 #: ../src/guestfs-actions.pod:2563
29910 " guestfs_get_qemu (guestfs_h *g);\n"
29915 #: ../src/guestfs-actions.pod:2574 ../src/guestfs-actions.pod:7048
29916 msgid "(Added in 1.0.6)"
29917 msgstr "(Додано у 1.0.6)"
29920 #: ../src/guestfs-actions.pod:2576
29921 msgid "guestfs_get_recovery_proc"
29925 #: ../src/guestfs-actions.pod:2578
29929 " guestfs_get_recovery_proc (guestfs_h *g);\n"
29934 #: ../src/guestfs-actions.pod:2585 ../src/guestfs-actions.pod:4173
29935 #: ../src/guestfs-actions.pod:4517 ../src/guestfs-actions.pod:4911
29936 #: ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:6287
29937 #: ../src/guestfs-actions.pod:6630 ../src/guestfs-actions.pod:7072
29938 #: ../src/guestfs-actions.pod:7770 ../src/guestfs-actions.pod:7790
29939 #: ../src/guestfs-actions.pod:8104
29940 msgid "(Added in 1.0.77)"
29941 msgstr "(Додано у 1.0.77)"
29944 #: ../src/guestfs-actions.pod:2587
29945 msgid "guestfs_get_selinux"
29949 #: ../src/guestfs-actions.pod:2589
29953 " guestfs_get_selinux (guestfs_h *g);\n"
29958 #: ../src/guestfs-actions.pod:2592
29960 "This returns the current setting of the selinux flag which is passed to the "
29961 "appliance at boot time. See C<guestfs_set_selinux>."
29965 #: ../src/guestfs-actions.pod:2600 ../src/guestfs-actions.pod:2674
29966 #: ../src/guestfs-actions.pod:7091 ../src/guestfs-actions.pod:7165
29967 msgid "(Added in 1.0.67)"
29968 msgstr "(Додано у 1.0.67)"
29971 #: ../src/guestfs-actions.pod:2602
29972 msgid "guestfs_get_smp"
29976 #: ../src/guestfs-actions.pod:2604
29980 " guestfs_get_smp (guestfs_h *g);\n"
29985 #: ../src/guestfs-actions.pod:2613
29986 msgid "guestfs_get_state"
29990 #: ../src/guestfs-actions.pod:2615
29994 " guestfs_get_state (guestfs_h *g);\n"
29999 #: ../src/guestfs-actions.pod:2627
30000 msgid "guestfs_get_trace"
30004 #: ../src/guestfs-actions.pod:2629
30008 " guestfs_get_trace (guestfs_h *g);\n"
30013 #: ../src/guestfs-actions.pod:2638
30014 msgid "guestfs_get_umask"
30018 #: ../src/guestfs-actions.pod:2640
30022 " guestfs_get_umask (guestfs_h *g);\n"
30027 #: ../src/guestfs-actions.pod:2643
30029 "Return the current umask. By default the umask is C<022> unless it has been "
30030 "set by calling C<guestfs_umask>."
30034 #: ../src/guestfs-actions.pod:2650
30035 msgid "guestfs_get_verbose"
30039 #: ../src/guestfs-actions.pod:2652
30043 " guestfs_get_verbose (guestfs_h *g);\n"
30048 #: ../src/guestfs-actions.pod:2661
30049 msgid "guestfs_getcon"
30053 #: ../src/guestfs-actions.pod:2663
30057 " guestfs_getcon (guestfs_h *g);\n"
30062 #: ../src/guestfs-actions.pod:2668
30064 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
30068 #: ../src/guestfs-actions.pod:2676
30069 msgid "guestfs_getxattr"
30073 #: ../src/guestfs-actions.pod:2678
30077 " guestfs_getxattr (guestfs_h *g,\n"
30078 " const char *path,\n"
30079 " const char *name,\n"
30080 " size_t *size_r);\n"
30085 #: ../src/guestfs-actions.pod:2684
30087 "Get a single extended attribute from file C<path> named C<name>. This call "
30088 "follows symlinks. If you want to lookup an extended attribute for the "
30089 "symlink itself, use C<guestfs_lgetxattr>."
30093 #: ../src/guestfs-actions.pod:2688 ../src/guestfs-actions.pod:4187
30095 "Normally it is better to get all extended attributes from a file in one go "
30096 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
30097 "implementations are buggy and do not provide a way to list out attributes. "
30098 "For these filesystems (notably ntfs-3g) you have to know the names of the "
30099 "extended attributes you want in advance and call this function."
30103 #: ../src/guestfs-actions.pod:2698
30104 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
30108 #: ../src/guestfs-actions.pod:2700 ../src/guestfs-actions.pod:2913
30109 #: ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:4199
30110 #: ../src/guestfs-actions.pod:6280 ../src/guestfs-actions.pod:6306
30111 #: ../src/guestfs-actions.pod:6487
30113 "This function returns a buffer, or NULL on error. The size of the returned "
30114 "buffer is written to C<*size_r>. I<The caller must free the returned buffer "
30119 #: ../src/guestfs-actions.pod:2704 ../src/guestfs-actions.pod:4203
30120 msgid "(Added in 1.7.24)"
30121 msgstr "(Додано у 1.7.24)"
30124 #: ../src/guestfs-actions.pod:2706
30125 msgid "guestfs_getxattrs"
30129 #: ../src/guestfs-actions.pod:2708
30132 " struct guestfs_xattr_list *\n"
30133 " guestfs_getxattrs (guestfs_h *g,\n"
30134 " const char *path);\n"
30139 #: ../src/guestfs-actions.pod:2718
30140 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
30144 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:4215
30145 #: ../src/guestfs-actions.pod:4907
30147 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
30148 "an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
30152 #: ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:4219
30153 #: ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:4467
30154 #: ../src/guestfs-actions.pod:6660 ../src/guestfs-actions.pod:7184
30155 #: ../src/guestfs-actions.pod:8689
30156 msgid "(Added in 1.0.59)"
30157 msgstr "(Додано у 1.0.59)"
30160 #: ../src/guestfs-actions.pod:2726
30161 msgid "guestfs_glob_expand"
30165 #: ../src/guestfs-actions.pod:2728
30169 " guestfs_glob_expand (guestfs_h *g,\n"
30170 " const char *pattern);\n"
30175 #: ../src/guestfs-actions.pod:2747 ../src/guestfs-actions.pod:7368
30176 #: ../src/guestfs-actions.pod:7385
30177 msgid "(Added in 1.0.50)"
30178 msgstr "(Додано у 1.0.50)"
30181 #: ../src/guestfs-actions.pod:2749
30182 msgid "guestfs_grep"
30186 #: ../src/guestfs-actions.pod:2751
30190 " guestfs_grep (guestfs_h *g,\n"
30191 " const char *regex,\n"
30192 " const char *path);\n"
30197 #: ../src/guestfs-actions.pod:2768
30198 msgid "guestfs_grepi"
30202 #: ../src/guestfs-actions.pod:2770
30206 " guestfs_grepi (guestfs_h *g,\n"
30207 " const char *regex,\n"
30208 " const char *path);\n"
30213 #: ../src/guestfs-actions.pod:2787
30214 msgid "guestfs_grub_install"
30218 #: ../src/guestfs-actions.pod:2789
30222 " guestfs_grub_install (guestfs_h *g,\n"
30223 " const char *root,\n"
30224 " const char *device);\n"
30229 #: ../src/guestfs-actions.pod:2832
30230 msgid "(Added in 1.0.17)"
30231 msgstr "(Додано у 1.0.17)"
30234 #: ../src/guestfs-actions.pod:2834
30235 msgid "guestfs_head"
30239 #: ../src/guestfs-actions.pod:2836
30243 " guestfs_head (guestfs_h *g,\n"
30244 " const char *path);\n"
30249 #: ../src/guestfs-actions.pod:2852
30250 msgid "guestfs_head_n"
30254 #: ../src/guestfs-actions.pod:2854
30258 " guestfs_head_n (guestfs_h *g,\n"
30260 " const char *path);\n"
30265 #: ../src/guestfs-actions.pod:2876
30266 msgid "guestfs_hexdump"
30270 #: ../src/guestfs-actions.pod:2878
30274 " guestfs_hexdump (guestfs_h *g,\n"
30275 " const char *path);\n"
30280 #: ../src/guestfs-actions.pod:2891 ../src/guestfs-actions.pod:7449
30281 #: ../src/guestfs-actions.pod:7504
30282 msgid "(Added in 1.0.22)"
30283 msgstr "(Додано у 1.0.22)"
30286 #: ../src/guestfs-actions.pod:2893
30287 msgid "guestfs_initrd_cat"
30291 #: ../src/guestfs-actions.pod:2895
30295 " guestfs_initrd_cat (guestfs_h *g,\n"
30296 " const char *initrdpath,\n"
30297 " const char *filename,\n"
30298 " size_t *size_r);\n"
30303 #: ../src/guestfs-actions.pod:2911
30304 msgid "See also C<guestfs_initrd_list>."
30308 #: ../src/guestfs-actions.pod:2922
30309 msgid "guestfs_initrd_list"
30313 #: ../src/guestfs-actions.pod:2924
30317 " guestfs_initrd_list (guestfs_h *g,\n"
30318 " const char *path);\n"
30323 #: ../src/guestfs-actions.pod:2944
30324 msgid "guestfs_inotify_add_watch"
30328 #: ../src/guestfs-actions.pod:2946
30332 " guestfs_inotify_add_watch (guestfs_h *g,\n"
30333 " const char *path,\n"
30339 #: ../src/guestfs-actions.pod:2965
30340 msgid "guestfs_inotify_close"
30344 #: ../src/guestfs-actions.pod:2967
30348 " guestfs_inotify_close (guestfs_h *g);\n"
30353 #: ../src/guestfs-actions.pod:2978
30354 msgid "guestfs_inotify_files"
30358 #: ../src/guestfs-actions.pod:2980
30362 " guestfs_inotify_files (guestfs_h *g);\n"
30367 #: ../src/guestfs-actions.pod:2983
30369 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
30370 "returns a list of pathnames of objects that were touched. The returned "
30371 "pathnames are sorted and deduplicated."
30375 #: ../src/guestfs-actions.pod:2993
30376 msgid "guestfs_inotify_init"
30380 #: ../src/guestfs-actions.pod:2995
30384 " guestfs_inotify_init (guestfs_h *g,\n"
30385 " int maxevents);\n"
30390 #: ../src/guestfs-actions.pod:3003
30392 "C<maxevents> is the maximum number of events which will be queued up between "
30393 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
30394 "passed as C<0>, then the kernel (or previously set) default is used. For "
30395 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
30396 "throws away events, but records the fact that it threw them away by setting "
30397 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
30398 "C<guestfs_inotify_read>)."
30402 #: ../src/guestfs-actions.pod:3013
30404 "Before any events are generated, you have to add some watches to the "
30405 "internal watch list. See: C<guestfs_inotify_add_watch>, "
30406 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
30410 #: ../src/guestfs-actions.pod:3019
30412 "Queued up events should be read periodically by calling "
30413 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
30414 "wrapper around C<guestfs_inotify_read>). If you don't read the events out "
30415 "often enough then you risk the internal queue overflowing."
30419 #: ../src/guestfs-actions.pod:3026
30421 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
30422 "This also removes any watches automatically."
30426 #: ../src/guestfs-actions.pod:3039
30427 msgid "guestfs_inotify_read"
30431 #: ../src/guestfs-actions.pod:3041
30434 " struct guestfs_inotify_event_list *\n"
30435 " guestfs_inotify_read (guestfs_h *g);\n"
30440 #: ../src/guestfs-actions.pod:3055
30442 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
30443 "there was an error. I<The caller must call "
30444 "C<guestfs_free_inotify_event_list> after use>."
30448 #: ../src/guestfs-actions.pod:3061
30449 msgid "guestfs_inotify_rm_watch"
30453 #: ../src/guestfs-actions.pod:3063
30457 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
30463 #: ../src/guestfs-actions.pod:3067
30465 "Remove a previously defined inotify watch. See C<guestfs_inotify_add_watch>."
30469 #: ../src/guestfs-actions.pod:3074
30470 msgid "guestfs_inspect_get_arch"
30474 #: ../src/guestfs-actions.pod:3076
30478 " guestfs_inspect_get_arch (guestfs_h *g,\n"
30479 " const char *root);\n"
30484 #: ../src/guestfs-actions.pod:3080
30486 "This returns the architecture of the inspected operating system. The "
30487 "possible return values are listed under C<guestfs_file_architecture>."
30491 #: ../src/guestfs-actions.pod:3094
30492 msgid "guestfs_inspect_get_distro"
30496 #: ../src/guestfs-actions.pod:3096
30500 " guestfs_inspect_get_distro (guestfs_h *g,\n"
30501 " const char *root);\n"
30506 #: ../src/guestfs-actions.pod:3196
30507 msgid "guestfs_inspect_get_drive_mappings"
30511 #: ../src/guestfs-actions.pod:3198
30515 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
30516 " const char *root);\n"
30521 #: ../src/guestfs-actions.pod:3227
30523 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
30524 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
30528 #: ../src/guestfs-actions.pod:3237 ../src/guestfs-actions.pod:3702
30529 msgid "(Added in 1.9.17)"
30530 msgstr "(Додано у 1.9.17)"
30533 #: ../src/guestfs-actions.pod:3239
30534 msgid "guestfs_inspect_get_filesystems"
30538 #: ../src/guestfs-actions.pod:3241
30542 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
30543 " const char *root);\n"
30548 #: ../src/guestfs-actions.pod:3253
30550 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
30551 "C<guestfs_inspect_get_mountpoints>."
30555 #: ../src/guestfs-actions.pod:3262
30556 msgid "guestfs_inspect_get_format"
30560 #: ../src/guestfs-actions.pod:3264
30564 " guestfs_inspect_get_format (guestfs_h *g,\n"
30565 " const char *root);\n"
30570 #: ../src/guestfs-actions.pod:3298 ../src/guestfs-actions.pod:3738
30571 #: ../src/guestfs-actions.pod:3754 ../src/guestfs-actions.pod:3772
30572 #: ../src/guestfs-actions.pod:6698
30573 msgid "(Added in 1.9.4)"
30574 msgstr "(Додано у 1.9.4)"
30577 #: ../src/guestfs-actions.pod:3300
30578 msgid "guestfs_inspect_get_hostname"
30582 #: ../src/guestfs-actions.pod:3302
30586 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
30587 " const char *root);\n"
30592 #: ../src/guestfs-actions.pod:3317
30593 msgid "(Added in 1.7.9)"
30594 msgstr "(Додано у 1.7.9)"
30597 #: ../src/guestfs-actions.pod:3319
30598 msgid "guestfs_inspect_get_icon"
30602 #: ../src/guestfs-actions.pod:3321
30606 " guestfs_inspect_get_icon (guestfs_h *g,\n"
30607 " const char *root,\n"
30608 " size_t *size_r,\n"
30614 #: ../src/guestfs-actions.pod:3332
30617 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
30618 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
30623 #: ../src/guestfs-actions.pod:3399 ../src/guestfs-actions.pod:4233
30624 #: ../src/guestfs-actions.pod:5630
30625 msgid "(Added in 1.11.12)"
30626 msgstr "(Додано у 1.11.12)"
30629 #: ../src/guestfs-actions.pod:3401
30630 msgid "guestfs_inspect_get_icon_va"
30634 #: ../src/guestfs-actions.pod:3403
30638 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
30639 " const char *root,\n"
30640 " size_t *size_r,\n"
30641 " va_list args);\n"
30646 #: ../src/guestfs-actions.pod:3409
30647 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
30651 #: ../src/guestfs-actions.pod:3413
30652 msgid "guestfs_inspect_get_icon_argv"
30656 #: ../src/guestfs-actions.pod:3415
30660 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
30661 " const char *root,\n"
30662 " size_t *size_r,\n"
30663 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
30668 #: ../src/guestfs-actions.pod:3421
30669 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
30673 #: ../src/guestfs-actions.pod:3425
30674 msgid "guestfs_inspect_get_major_version"
30678 #: ../src/guestfs-actions.pod:3427
30682 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
30683 " const char *root);\n"
30688 #: ../src/guestfs-actions.pod:3449
30689 msgid "guestfs_inspect_get_minor_version"
30693 #: ../src/guestfs-actions.pod:3451
30697 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
30698 " const char *root);\n"
30703 #: ../src/guestfs-actions.pod:3460
30705 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
30706 "C<guestfs_inspect_get_major_version>."
30710 #: ../src/guestfs-actions.pod:3467
30711 msgid "guestfs_inspect_get_mountpoints"
30715 #: ../src/guestfs-actions.pod:3469
30719 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
30720 " const char *root);\n"
30725 #: ../src/guestfs-actions.pod:3490
30727 "For operating systems like Windows which still use drive letters, this call "
30728 "will only return an entry for the first drive \"mounted on\" C</>. For "
30729 "information about the mapping of drive letters to partitions, see "
30730 "C<guestfs_inspect_get_drive_mappings>."
30734 #: ../src/guestfs-actions.pod:3496
30736 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
30737 "C<guestfs_inspect_get_filesystems>."
30741 #: ../src/guestfs-actions.pod:3507
30742 msgid "guestfs_inspect_get_package_format"
30746 #: ../src/guestfs-actions.pod:3509
30750 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
30751 " const char *root);\n"
30756 #: ../src/guestfs-actions.pod:3513
30758 "This function and C<guestfs_inspect_get_package_management> return the "
30759 "package format and package management tool used by the inspected operating "
30760 "system. For example for Fedora these functions would return C<rpm> (package "
30761 "format) and C<yum> (package management)."
30765 #: ../src/guestfs-actions.pod:3532 ../src/guestfs-actions.pod:3560
30766 msgid "(Added in 1.7.5)"
30767 msgstr "(Додано у 1.7.5)"
30770 #: ../src/guestfs-actions.pod:3534
30771 msgid "guestfs_inspect_get_package_management"
30775 #: ../src/guestfs-actions.pod:3536
30779 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
30780 " const char *root);\n"
30785 #: ../src/guestfs-actions.pod:3540
30787 "C<guestfs_inspect_get_package_format> and this function return the package "
30788 "format and package management tool used by the inspected operating system. "
30789 "For example for Fedora these functions would return C<rpm> (package format) "
30790 "and C<yum> (package management)."
30794 #: ../src/guestfs-actions.pod:3562
30795 msgid "guestfs_inspect_get_product_name"
30799 #: ../src/guestfs-actions.pod:3564
30803 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
30804 " const char *root);\n"
30809 #: ../src/guestfs-actions.pod:3583
30810 msgid "guestfs_inspect_get_product_variant"
30814 #: ../src/guestfs-actions.pod:3585
30818 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
30819 " const char *root);\n"
30824 #: ../src/guestfs-actions.pod:3608
30826 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
30827 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
30831 #: ../src/guestfs-actions.pod:3615
30832 msgid "(Added in 1.9.13)"
30833 msgstr "(Додано у 1.9.13)"
30836 #: ../src/guestfs-actions.pod:3617
30837 msgid "guestfs_inspect_get_roots"
30841 #: ../src/guestfs-actions.pod:3619
30845 " guestfs_inspect_get_roots (guestfs_h *g);\n"
30850 #: ../src/guestfs-actions.pod:3622
30852 "This function is a convenient way to get the list of root devices, as "
30853 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
30854 "the whole inspection process."
30858 #: ../src/guestfs-actions.pod:3626
30860 "This returns an empty list if either no root devices were found or the "
30861 "caller has not called C<guestfs_inspect_os>."
30865 #: ../src/guestfs-actions.pod:3635
30866 msgid "(Added in 1.7.3)"
30867 msgstr "(Додано у 1.7.3)"
30870 #: ../src/guestfs-actions.pod:3637
30871 msgid "guestfs_inspect_get_type"
30875 #: ../src/guestfs-actions.pod:3639
30879 " guestfs_inspect_get_type (guestfs_h *g,\n"
30880 " const char *root);\n"
30885 #: ../src/guestfs-actions.pod:3684
30886 msgid "guestfs_inspect_get_windows_current_control_set"
30890 #: ../src/guestfs-actions.pod:3686
30894 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
30895 " const char *root);\n"
30900 #: ../src/guestfs-actions.pod:3704
30901 msgid "guestfs_inspect_get_windows_systemroot"
30905 #: ../src/guestfs-actions.pod:3706
30909 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
30910 " const char *root);\n"
30915 #: ../src/guestfs-actions.pod:3722
30916 msgid "(Added in 1.5.25)"
30917 msgstr "(Додано у 1.5.25)"
30920 #: ../src/guestfs-actions.pod:3724
30921 msgid "guestfs_inspect_is_live"
30925 #: ../src/guestfs-actions.pod:3726
30929 " guestfs_inspect_is_live (guestfs_h *g,\n"
30930 " const char *root);\n"
30935 #: ../src/guestfs-actions.pod:3730
30937 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30938 "disk), then this returns true if a live image was detected on the disk."
30942 #: ../src/guestfs-actions.pod:3740
30943 msgid "guestfs_inspect_is_multipart"
30947 #: ../src/guestfs-actions.pod:3742
30951 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
30952 " const char *root);\n"
30957 #: ../src/guestfs-actions.pod:3746
30959 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30960 "disk), then this returns true if the disk is part of a set."
30964 #: ../src/guestfs-actions.pod:3756
30965 msgid "guestfs_inspect_is_netinst"
30969 #: ../src/guestfs-actions.pod:3758
30973 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
30974 " const char *root);\n"
30979 #: ../src/guestfs-actions.pod:3762
30981 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30982 "disk), then this returns true if the disk is a network installer, ie. not a "
30983 "self-contained install CD but one which is likely to require network access "
30984 "to complete the install."
30988 #: ../src/guestfs-actions.pod:3774
30989 msgid "guestfs_inspect_list_applications"
30993 #: ../src/guestfs-actions.pod:3776
30996 " struct guestfs_application_list *\n"
30997 " guestfs_inspect_list_applications (guestfs_h *g,\n"
30998 " const char *root);\n"
31003 #: ../src/guestfs-actions.pod:3782
31005 "I<Note:> This call works differently from other parts of the inspection "
31006 "API. You have to call C<guestfs_inspect_os>, then "
31007 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
31008 "this. Listing applications is a significantly more difficult operation "
31009 "which requires access to the full filesystem. Also note that unlike the "
31010 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
31011 "the libguestfs handle, this call actually reads parts of the mounted "
31012 "filesystems during the call."
31016 #: ../src/guestfs-actions.pod:3872
31018 "This function returns a C<struct guestfs_application_list *>, or NULL if "
31019 "there was an error. I<The caller must call C<guestfs_free_application_list> "
31024 #: ../src/guestfs-actions.pod:3876
31025 msgid "(Added in 1.7.8)"
31026 msgstr "(Додано у 1.7.8)"
31029 #: ../src/guestfs-actions.pod:3878
31030 msgid "guestfs_inspect_os"
31034 #: ../src/guestfs-actions.pod:3880
31038 " guestfs_inspect_os (guestfs_h *g);\n"
31043 #: ../src/guestfs-actions.pod:3896
31045 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
31046 "functions in order to query further information about each operating system, "
31047 "such as the name and version."
31051 #: ../src/guestfs-actions.pod:3901
31053 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
31054 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
31055 "the contents. This should be called with no disks currently mounted. The "
31056 "function may also use Augeas, so any existing Augeas handle will be closed."
31060 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:4244
31061 #: ../src/guestfs-actions.pod:4339
31062 msgid "See also C<guestfs_list_filesystems>."
31066 #: ../src/guestfs-actions.pod:3921
31067 msgid "guestfs_is_blockdev"
31071 #: ../src/guestfs-actions.pod:3923
31075 " guestfs_is_blockdev (guestfs_h *g,\n"
31076 " const char *path);\n"
31081 #: ../src/guestfs-actions.pod:3930 ../src/guestfs-actions.pod:3959
31082 #: ../src/guestfs-actions.pod:3989 ../src/guestfs-actions.pod:4004
31083 #: ../src/guestfs-actions.pod:4020 ../src/guestfs-actions.pod:4076
31084 #: ../src/guestfs-actions.pod:4091
31085 msgid "See also C<guestfs_stat>."
31089 #: ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3963
31090 #: ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4080
31091 #: ../src/guestfs-actions.pod:4095
31092 msgid "(Added in 1.5.10)"
31093 msgstr "(Додано у 1.5.10)"
31096 #: ../src/guestfs-actions.pod:3936
31097 msgid "guestfs_is_busy"
31101 #: ../src/guestfs-actions.pod:3938
31105 " guestfs_is_busy (guestfs_h *g);\n"
31110 #: ../src/guestfs-actions.pod:3950
31111 msgid "guestfs_is_chardev"
31115 #: ../src/guestfs-actions.pod:3952
31119 " guestfs_is_chardev (guestfs_h *g,\n"
31120 " const char *path);\n"
31125 #: ../src/guestfs-actions.pod:3965
31126 msgid "guestfs_is_config"
31130 #: ../src/guestfs-actions.pod:3967
31134 " guestfs_is_config (guestfs_h *g);\n"
31139 #: ../src/guestfs-actions.pod:3979
31140 msgid "guestfs_is_dir"
31144 #: ../src/guestfs-actions.pod:3981
31148 " guestfs_is_dir (guestfs_h *g,\n"
31149 " const char *path);\n"
31154 #: ../src/guestfs-actions.pod:3995
31155 msgid "guestfs_is_fifo"
31159 #: ../src/guestfs-actions.pod:3997
31163 " guestfs_is_fifo (guestfs_h *g,\n"
31164 " const char *path);\n"
31169 #: ../src/guestfs-actions.pod:4010
31170 msgid "guestfs_is_file"
31174 #: ../src/guestfs-actions.pod:4012
31178 " guestfs_is_file (guestfs_h *g,\n"
31179 " const char *path);\n"
31184 #: ../src/guestfs-actions.pod:4026
31185 msgid "guestfs_is_launching"
31189 #: ../src/guestfs-actions.pod:4028
31193 " guestfs_is_launching (guestfs_h *g);\n"
31198 #: ../src/guestfs-actions.pod:4040
31199 msgid "guestfs_is_lv"
31203 #: ../src/guestfs-actions.pod:4042
31207 " guestfs_is_lv (guestfs_h *g,\n"
31208 " const char *device);\n"
31213 #: ../src/guestfs-actions.pod:4053
31214 msgid "guestfs_is_ready"
31218 #: ../src/guestfs-actions.pod:4055
31222 " guestfs_is_ready (guestfs_h *g);\n"
31227 #: ../src/guestfs-actions.pod:4067
31228 msgid "guestfs_is_socket"
31232 #: ../src/guestfs-actions.pod:4069
31236 " guestfs_is_socket (guestfs_h *g,\n"
31237 " const char *path);\n"
31242 #: ../src/guestfs-actions.pod:4082
31243 msgid "guestfs_is_symlink"
31247 #: ../src/guestfs-actions.pod:4084
31251 " guestfs_is_symlink (guestfs_h *g,\n"
31252 " const char *path);\n"
31257 #: ../src/guestfs-actions.pod:4097
31258 msgid "guestfs_is_zero"
31262 #: ../src/guestfs-actions.pod:4099
31266 " guestfs_is_zero (guestfs_h *g,\n"
31267 " const char *path);\n"
31272 #: ../src/guestfs-actions.pod:4108 ../src/guestfs-actions.pod:4122
31273 msgid "(Added in 1.11.8)"
31274 msgstr "(Додано у 1.11.8)"
31277 #: ../src/guestfs-actions.pod:4110
31278 msgid "guestfs_is_zero_device"
31282 #: ../src/guestfs-actions.pod:4112
31286 " guestfs_is_zero_device (guestfs_h *g,\n"
31287 " const char *device);\n"
31292 #: ../src/guestfs-actions.pod:4124
31293 msgid "guestfs_kill_subprocess"
31297 #: ../src/guestfs-actions.pod:4126
31301 " guestfs_kill_subprocess (guestfs_h *g);\n"
31306 #: ../src/guestfs-actions.pod:4135
31307 msgid "guestfs_launch"
31311 #: ../src/guestfs-actions.pod:4137
31315 " guestfs_launch (guestfs_h *g);\n"
31320 #: ../src/guestfs-actions.pod:4155
31321 msgid "guestfs_lchown"
31325 #: ../src/guestfs-actions.pod:4157
31329 " guestfs_lchown (guestfs_h *g,\n"
31332 " const char *path);\n"
31337 #: ../src/guestfs-actions.pod:4163
31339 "Change the file owner to C<owner> and group to C<group>. This is like "
31340 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
31341 "changed, not the target."
31345 #: ../src/guestfs-actions.pod:4175
31346 msgid "guestfs_lgetxattr"
31350 #: ../src/guestfs-actions.pod:4177
31354 " guestfs_lgetxattr (guestfs_h *g,\n"
31355 " const char *path,\n"
31356 " const char *name,\n"
31357 " size_t *size_r);\n"
31362 #: ../src/guestfs-actions.pod:4197
31363 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
31367 #: ../src/guestfs-actions.pod:4205
31368 msgid "guestfs_lgetxattrs"
31372 #: ../src/guestfs-actions.pod:4207
31375 " struct guestfs_xattr_list *\n"
31376 " guestfs_lgetxattrs (guestfs_h *g,\n"
31377 " const char *path);\n"
31382 #: ../src/guestfs-actions.pod:4211
31384 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
31385 "then it returns the extended attributes of the link itself."
31389 #: ../src/guestfs-actions.pod:4221
31390 msgid "guestfs_list_9p"
31394 #: ../src/guestfs-actions.pod:4223
31398 " guestfs_list_9p (guestfs_h *g);\n"
31403 #: ../src/guestfs-actions.pod:4235
31404 msgid "guestfs_list_devices"
31408 #: ../src/guestfs-actions.pod:4237
31412 " guestfs_list_devices (guestfs_h *g);\n"
31417 #: ../src/guestfs-actions.pod:4252
31418 msgid "guestfs_list_dm_devices"
31422 #: ../src/guestfs-actions.pod:4254
31426 " guestfs_list_dm_devices (guestfs_h *g);\n"
31431 #: ../src/guestfs-actions.pod:4259
31433 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
31434 "previous call to C<guestfs_luks_open>."
31438 #: ../src/guestfs-actions.pod:4262
31440 "Device mapper devices which correspond to logical volumes are I<not> "
31441 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
31446 #: ../src/guestfs-actions.pod:4270 ../src/guestfs-actions.pod:5869
31447 msgid "(Added in 1.11.15)"
31448 msgstr "(Додано у 1.11.15)"
31451 #: ../src/guestfs-actions.pod:4272
31452 msgid "guestfs_list_filesystems"
31456 #: ../src/guestfs-actions.pod:4274
31460 " guestfs_list_filesystems (guestfs_h *g);\n"
31465 #: ../src/guestfs-actions.pod:4294
31467 "This command runs other libguestfs commands, which might include "
31468 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
31469 "soon after launch and only when nothing is mounted."
31473 #: ../src/guestfs-actions.pod:4298
31475 "Not all of the filesystems returned will be mountable. In particular, swap "
31476 "partitions are returned in the list. Also this command does not check that "
31477 "each filesystem found is valid and mountable, and some filesystems might be "
31478 "mountable but require special options. Filesystems may not all belong to a "
31479 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
31483 #: ../src/guestfs-actions.pod:4312 ../src/guestfs-actions.pod:6229
31484 msgid "(Added in 1.5.15)"
31485 msgstr "(Додано у 1.5.15)"
31488 #: ../src/guestfs-actions.pod:4314
31490 #| msgid "guestfs_zero_device"
31491 msgid "guestfs_list_md_devices"
31492 msgstr "guestfs_zero_device"
31495 #: ../src/guestfs-actions.pod:4316
31499 #| " guestfs_lvs (guestfs_h *g);\n"
31503 " guestfs_list_md_devices (guestfs_h *g);\n"
31507 " guestfs_lvs (guestfs_h *g);\n"
31511 #: ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:7890
31513 #| msgid "(Added in 1.5.4)"
31514 msgid "(Added in 1.15.4)"
31515 msgstr "(Додано у 1.5.4)"
31518 #: ../src/guestfs-actions.pod:4327
31519 msgid "guestfs_list_partitions"
31520 msgstr "guestfs_list_partitions"
31523 #: ../src/guestfs-actions.pod:4329
31527 " guestfs_list_partitions (guestfs_h *g);\n"
31531 " guestfs_list_partitions (guestfs_h *g);\n"
31535 #: ../src/guestfs-actions.pod:4336
31537 "This does not return logical volumes. For that you will need to call "
31542 #: ../src/guestfs-actions.pod:4347
31544 msgstr "guestfs_ll"
31547 #: ../src/guestfs-actions.pod:4349
31551 " guestfs_ll (guestfs_h *g,\n"
31552 " const char *directory);\n"
31556 " guestfs_ll (guestfs_h *g,\n"
31557 " const char *directory);\n"
31561 #: ../src/guestfs-actions.pod:4364
31563 msgstr "guestfs_ln"
31566 #: ../src/guestfs-actions.pod:4366
31570 " guestfs_ln (guestfs_h *g,\n"
31571 " const char *target,\n"
31572 " const char *linkname);\n"
31576 " guestfs_ln (guestfs_h *g,\n"
31577 " const char *target,\n"
31578 " const char *linkname);\n"
31582 #: ../src/guestfs-actions.pod:4377
31583 msgid "guestfs_ln_f"
31584 msgstr "guestfs_ln_f"
31587 #: ../src/guestfs-actions.pod:4379
31591 " guestfs_ln_f (guestfs_h *g,\n"
31592 " const char *target,\n"
31593 " const char *linkname);\n"
31597 " guestfs_ln_f (guestfs_h *g,\n"
31598 " const char *target,\n"
31599 " const char *linkname);\n"
31603 #: ../src/guestfs-actions.pod:4391
31604 msgid "guestfs_ln_s"
31605 msgstr "guestfs_ln_s"
31608 #: ../src/guestfs-actions.pod:4393
31612 " guestfs_ln_s (guestfs_h *g,\n"
31613 " const char *target,\n"
31614 " const char *linkname);\n"
31618 " guestfs_ln_s (guestfs_h *g,\n"
31619 " const char *target,\n"
31620 " const char *linkname);\n"
31624 #: ../src/guestfs-actions.pod:4404
31625 msgid "guestfs_ln_sf"
31626 msgstr "guestfs_ln_sf"
31629 #: ../src/guestfs-actions.pod:4406
31633 " guestfs_ln_sf (guestfs_h *g,\n"
31634 " const char *target,\n"
31635 " const char *linkname);\n"
31639 " guestfs_ln_sf (guestfs_h *g,\n"
31640 " const char *target,\n"
31641 " const char *linkname);\n"
31645 #: ../src/guestfs-actions.pod:4418
31646 msgid "guestfs_lremovexattr"
31647 msgstr "guestfs_lremovexattr"
31650 #: ../src/guestfs-actions.pod:4420
31654 " guestfs_lremovexattr (guestfs_h *g,\n"
31655 " const char *xattr,\n"
31656 " const char *path);\n"
31660 " guestfs_lremovexattr (guestfs_h *g,\n"
31661 " const char *xattr,\n"
31662 " const char *path);\n"
31666 #: ../src/guestfs-actions.pod:4425
31668 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
31669 "link, then it removes an extended attribute of the link itself."
31673 #: ../src/guestfs-actions.pod:4433
31675 msgstr "guestfs_ls"
31678 #: ../src/guestfs-actions.pod:4435
31682 " guestfs_ls (guestfs_h *g,\n"
31683 " const char *directory);\n"
31687 " guestfs_ls (guestfs_h *g,\n"
31688 " const char *directory);\n"
31692 #: ../src/guestfs-actions.pod:4443
31694 "This command is mostly useful for interactive sessions. Programs should "
31695 "probably use C<guestfs_readdir> instead."
31699 #: ../src/guestfs-actions.pod:4452
31700 msgid "guestfs_lsetxattr"
31701 msgstr "guestfs_lsetxattr"
31704 #: ../src/guestfs-actions.pod:4454
31708 " guestfs_lsetxattr (guestfs_h *g,\n"
31709 " const char *xattr,\n"
31710 " const char *val,\n"
31712 " const char *path);\n"
31716 " guestfs_lsetxattr (guestfs_h *g,\n"
31717 " const char *xattr,\n"
31718 " const char *val,\n"
31720 " const char *path);\n"
31724 #: ../src/guestfs-actions.pod:4461
31726 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
31727 "then it sets an extended attribute of the link itself."
31731 #: ../src/guestfs-actions.pod:4469
31732 msgid "guestfs_lstat"
31733 msgstr "guestfs_lstat"
31736 #: ../src/guestfs-actions.pod:4471
31739 " struct guestfs_stat *\n"
31740 " guestfs_lstat (guestfs_h *g,\n"
31741 " const char *path);\n"
31744 " struct guestfs_stat *\n"
31745 " guestfs_lstat (guestfs_h *g,\n"
31746 " const char *path);\n"
31750 #: ../src/guestfs-actions.pod:4477
31752 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
31753 "link, then the link is stat-ed, not the file it refers to."
31757 #: ../src/guestfs-actions.pod:4483 ../src/guestfs-actions.pod:7409
31759 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
31760 "error. I<The caller must call C<guestfs_free_stat> after use>."
31764 #: ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:7413
31765 #: ../src/guestfs-actions.pod:7431 ../src/guestfs-actions.pod:7934
31766 msgid "(Added in 0.9.2)"
31767 msgstr "(Додано у 0.9.2)"
31770 #: ../src/guestfs-actions.pod:4489
31771 msgid "guestfs_lstatlist"
31772 msgstr "guestfs_lstatlist"
31775 #: ../src/guestfs-actions.pod:4491
31778 " struct guestfs_stat_list *\n"
31779 " guestfs_lstatlist (guestfs_h *g,\n"
31780 " const char *path,\n"
31781 " char *const *names);\n"
31784 " struct guestfs_stat_list *\n"
31785 " guestfs_lstatlist (guestfs_h *g,\n"
31786 " const char *path,\n"
31787 " char *const *names);\n"
31791 #: ../src/guestfs-actions.pod:4496
31793 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
31794 "files, where all files are in the directory C<path>. C<names> is the list "
31795 "of files from this directory."
31799 #: ../src/guestfs-actions.pod:4505
31801 "This call is intended for programs that want to efficiently list a directory "
31802 "contents without making many round-trips. See also C<guestfs_lxattrlist> "
31803 "for a similarly efficient call for getting extended attributes. Very long "
31804 "directory listings might cause the protocol message size to be exceeded, "
31805 "causing this call to fail. The caller must split up such requests into "
31806 "smaller groups of names."
31810 #: ../src/guestfs-actions.pod:4513
31812 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
31813 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
31817 #: ../src/guestfs-actions.pod:4519
31818 msgid "guestfs_luks_add_key"
31819 msgstr "guestfs_luks_add_key"
31822 #: ../src/guestfs-actions.pod:4521
31826 " guestfs_luks_add_key (guestfs_h *g,\n"
31827 " const char *device,\n"
31828 " const char *key,\n"
31829 " const char *newkey,\n"
31834 " guestfs_luks_add_key (guestfs_h *g,\n"
31835 " const char *device,\n"
31836 " const char *key,\n"
31837 " const char *newkey,\n"
31842 #: ../src/guestfs-actions.pod:4533
31844 "Note that if C<keyslot> already contains a key, then this command will "
31845 "fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
31849 #: ../src/guestfs-actions.pod:4539 ../src/guestfs-actions.pod:4576
31850 #: ../src/guestfs-actions.pod:4596 ../src/guestfs-actions.pod:4616
31851 #: ../src/guestfs-actions.pod:4651 ../src/guestfs-actions.pod:4670
31853 "This function takes a key or passphrase parameter which could contain "
31854 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
31859 #: ../src/guestfs-actions.pod:4543 ../src/guestfs-actions.pod:4580
31860 #: ../src/guestfs-actions.pod:4600 ../src/guestfs-actions.pod:4620
31861 msgid "(Added in 1.5.2)"
31862 msgstr "(Додано у 1.5.2)"
31865 #: ../src/guestfs-actions.pod:4545
31866 msgid "guestfs_luks_close"
31867 msgstr "guestfs_luks_close"
31870 #: ../src/guestfs-actions.pod:4547
31874 " guestfs_luks_close (guestfs_h *g,\n"
31875 " const char *device);\n"
31879 " guestfs_luks_close (guestfs_h *g,\n"
31880 " const char *device);\n"
31884 #: ../src/guestfs-actions.pod:4551
31886 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
31887 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
31888 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
31889 "underlying block device."
31893 #: ../src/guestfs-actions.pod:4559 ../src/guestfs-actions.pod:4655
31894 #: ../src/guestfs-actions.pod:4674 ../src/guestfs-actions.pod:4724
31895 #: ../src/guestfs-actions.pod:4769
31896 msgid "(Added in 1.5.1)"
31897 msgstr "(Додано у 1.5.1)"
31900 #: ../src/guestfs-actions.pod:4561
31901 msgid "guestfs_luks_format"
31902 msgstr "guestfs_luks_format"
31905 #: ../src/guestfs-actions.pod:4563
31909 " guestfs_luks_format (guestfs_h *g,\n"
31910 " const char *device,\n"
31911 " const char *key,\n"
31916 " guestfs_luks_format (guestfs_h *g,\n"
31917 " const char *device,\n"
31918 " const char *key,\n"
31923 #: ../src/guestfs-actions.pod:4582
31924 msgid "guestfs_luks_format_cipher"
31925 msgstr "guestfs_luks_format_cipher"
31928 #: ../src/guestfs-actions.pod:4584
31932 " guestfs_luks_format_cipher (guestfs_h *g,\n"
31933 " const char *device,\n"
31934 " const char *key,\n"
31936 " const char *cipher);\n"
31940 " guestfs_luks_format_cipher (guestfs_h *g,\n"
31941 " const char *device,\n"
31942 " const char *key,\n"
31944 " const char *cipher);\n"
31948 #: ../src/guestfs-actions.pod:4591
31950 "This command is the same as C<guestfs_luks_format> but it also allows you to "
31951 "set the C<cipher> used."
31955 #: ../src/guestfs-actions.pod:4602
31956 msgid "guestfs_luks_kill_slot"
31957 msgstr "guestfs_luks_kill_slot"
31960 #: ../src/guestfs-actions.pod:4604
31964 " guestfs_luks_kill_slot (guestfs_h *g,\n"
31965 " const char *device,\n"
31966 " const char *key,\n"
31971 " guestfs_luks_kill_slot (guestfs_h *g,\n"
31972 " const char *device,\n"
31973 " const char *key,\n"
31978 #: ../src/guestfs-actions.pod:4622
31979 msgid "guestfs_luks_open"
31980 msgstr "guestfs_luks_open"
31983 #: ../src/guestfs-actions.pod:4624
31987 " guestfs_luks_open (guestfs_h *g,\n"
31988 " const char *device,\n"
31989 " const char *key,\n"
31990 " const char *mapname);\n"
31994 " guestfs_luks_open (guestfs_h *g,\n"
31995 " const char *device,\n"
31996 " const char *key,\n"
31997 " const char *mapname);\n"
32001 #: ../src/guestfs-actions.pod:4642
32003 "If this block device contains LVM volume groups, then calling "
32004 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
32009 #: ../src/guestfs-actions.pod:4646
32010 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
32014 #: ../src/guestfs-actions.pod:4657
32015 msgid "guestfs_luks_open_ro"
32016 msgstr "guestfs_luks_open_ro"
32019 #: ../src/guestfs-actions.pod:4659
32023 " guestfs_luks_open_ro (guestfs_h *g,\n"
32024 " const char *device,\n"
32025 " const char *key,\n"
32026 " const char *mapname);\n"
32030 " guestfs_luks_open_ro (guestfs_h *g,\n"
32031 " const char *device,\n"
32032 " const char *key,\n"
32033 " const char *mapname);\n"
32037 #: ../src/guestfs-actions.pod:4665
32039 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
32044 #: ../src/guestfs-actions.pod:4676
32045 msgid "guestfs_lvcreate"
32046 msgstr "guestfs_lvcreate"
32049 #: ../src/guestfs-actions.pod:4678
32053 " guestfs_lvcreate (guestfs_h *g,\n"
32054 " const char *logvol,\n"
32055 " const char *volgroup,\n"
32060 " guestfs_lvcreate (guestfs_h *g,\n"
32061 " const char *logvol,\n"
32062 " const char *volgroup,\n"
32067 #: ../src/guestfs-actions.pod:4691
32068 msgid "guestfs_lvm_canonical_lv_name"
32069 msgstr "guestfs_lvm_canonical_lv_name"
32072 #: ../src/guestfs-actions.pod:4693
32076 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
32077 " const char *lvname);\n"
32081 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
32082 " const char *lvname);\n"
32086 #: ../src/guestfs-actions.pod:4704
32087 msgid "See also C<guestfs_is_lv>."
32091 #: ../src/guestfs-actions.pod:4709
32092 msgid "(Added in 1.5.24)"
32093 msgstr "(Додано у 1.5.24)"
32096 #: ../src/guestfs-actions.pod:4711
32097 msgid "guestfs_lvm_clear_filter"
32098 msgstr "guestfs_lvm_clear_filter"
32101 #: ../src/guestfs-actions.pod:4713
32105 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
32109 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
32113 #: ../src/guestfs-actions.pod:4716
32115 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
32116 "see every block device."
32120 #: ../src/guestfs-actions.pod:4726
32121 msgid "guestfs_lvm_remove_all"
32122 msgstr "guestfs_lvm_remove_all"
32125 #: ../src/guestfs-actions.pod:4728
32129 " guestfs_lvm_remove_all (guestfs_h *g);\n"
32133 " guestfs_lvm_remove_all (guestfs_h *g);\n"
32137 #: ../src/guestfs-actions.pod:4738
32138 msgid "guestfs_lvm_set_filter"
32139 msgstr "guestfs_lvm_set_filter"
32142 #: ../src/guestfs-actions.pod:4740
32146 " guestfs_lvm_set_filter (guestfs_h *g,\n"
32147 " char *const *devices);\n"
32151 " guestfs_lvm_set_filter (guestfs_h *g,\n"
32152 " char *const *devices);\n"
32156 #: ../src/guestfs-actions.pod:4771
32157 msgid "guestfs_lvremove"
32158 msgstr "guestfs_lvremove"
32161 #: ../src/guestfs-actions.pod:4773
32165 " guestfs_lvremove (guestfs_h *g,\n"
32166 " const char *device);\n"
32170 " guestfs_lvremove (guestfs_h *g,\n"
32171 " const char *device);\n"
32175 #: ../src/guestfs-actions.pod:4785 ../src/guestfs-actions.pod:6344
32176 #: ../src/guestfs-actions.pod:8304
32177 msgid "(Added in 1.0.13)"
32178 msgstr "(Додано у 1.0.13)"
32181 #: ../src/guestfs-actions.pod:4787
32182 msgid "guestfs_lvrename"
32183 msgstr "guestfs_lvrename"
32186 #: ../src/guestfs-actions.pod:4789
32190 " guestfs_lvrename (guestfs_h *g,\n"
32191 " const char *logvol,\n"
32192 " const char *newlogvol);\n"
32196 " guestfs_lvrename (guestfs_h *g,\n"
32197 " const char *logvol,\n"
32198 " const char *newlogvol);\n"
32202 #: ../src/guestfs-actions.pod:4798 ../src/guestfs-actions.pod:8317
32203 msgid "(Added in 1.0.83)"
32204 msgstr "(Додано у 1.0.83)"
32207 #: ../src/guestfs-actions.pod:4800
32208 msgid "guestfs_lvresize"
32209 msgstr "guestfs_lvresize"
32212 #: ../src/guestfs-actions.pod:4802
32216 " guestfs_lvresize (guestfs_h *g,\n"
32217 " const char *device,\n"
32222 " guestfs_lvresize (guestfs_h *g,\n"
32223 " const char *device,\n"
32228 #: ../src/guestfs-actions.pod:4815
32229 msgid "guestfs_lvresize_free"
32230 msgstr "guestfs_lvresize_free"
32233 #: ../src/guestfs-actions.pod:4817
32237 " guestfs_lvresize_free (guestfs_h *g,\n"
32238 " const char *lv,\n"
32243 " guestfs_lvresize_free (guestfs_h *g,\n"
32244 " const char *lv,\n"
32249 #: ../src/guestfs-actions.pod:4830
32250 msgid "(Added in 1.3.3)"
32251 msgstr "(Додано у 1.3.3)"
32254 #: ../src/guestfs-actions.pod:4832
32255 msgid "guestfs_lvs"
32256 msgstr "guestfs_lvs"
32259 #: ../src/guestfs-actions.pod:4834
32263 " guestfs_lvs (guestfs_h *g);\n"
32267 " guestfs_lvs (guestfs_h *g);\n"
32271 #: ../src/guestfs-actions.pod:4843
32272 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
32276 #: ../src/guestfs-actions.pod:4851
32277 msgid "guestfs_lvs_full"
32278 msgstr "guestfs_lvs_full"
32281 #: ../src/guestfs-actions.pod:4853
32284 " struct guestfs_lvm_lv_list *\n"
32285 " guestfs_lvs_full (guestfs_h *g);\n"
32288 " struct guestfs_lvm_lv_list *\n"
32289 " guestfs_lvs_full (guestfs_h *g);\n"
32293 #: ../src/guestfs-actions.pod:4859
32295 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
32296 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
32300 #: ../src/guestfs-actions.pod:4865
32301 msgid "guestfs_lvuuid"
32302 msgstr "guestfs_lvuuid"
32305 #: ../src/guestfs-actions.pod:4867
32309 " guestfs_lvuuid (guestfs_h *g,\n"
32310 " const char *device);\n"
32314 " guestfs_lvuuid (guestfs_h *g,\n"
32315 " const char *device);\n"
32319 #: ../src/guestfs-actions.pod:4878
32320 msgid "guestfs_lxattrlist"
32321 msgstr "guestfs_lxattrlist"
32324 #: ../src/guestfs-actions.pod:4880
32327 " struct guestfs_xattr_list *\n"
32328 " guestfs_lxattrlist (guestfs_h *g,\n"
32329 " const char *path,\n"
32330 " char *const *names);\n"
32333 " struct guestfs_xattr_list *\n"
32334 " guestfs_lxattrlist (guestfs_h *g,\n"
32335 " const char *path,\n"
32336 " char *const *names);\n"
32340 #: ../src/guestfs-actions.pod:4899
32342 "This call is intended for programs that want to efficiently list a directory "
32343 "contents without making many round-trips. See also C<guestfs_lstatlist> for "
32344 "a similarly efficient call for getting standard stats. Very long directory "
32345 "listings might cause the protocol message size to be exceeded, causing this "
32346 "call to fail. The caller must split up such requests into smaller groups of "
32351 #: ../src/guestfs-actions.pod:4913
32353 #| msgid "guestfs_create"
32354 msgid "guestfs_md_create"
32355 msgstr "guestfs_create"
32358 #: ../src/guestfs-actions.pod:4915
32362 #| " guestfs_mkfs_opts (guestfs_h *g,\n"
32363 #| " const char *fstype,\n"
32364 #| " const char *device,\n"
32369 " guestfs_md_create (guestfs_h *g,\n"
32370 " const char *name,\n"
32371 " char *const *devices,\n"
32376 " guestfs_mkfs_opts (guestfs_h *g,\n"
32377 " const char *fstype,\n"
32378 " const char *device,\n"
32383 #: ../src/guestfs-actions.pod:4926
32386 " GUESTFS_MD_CREATE_MISSINGBITMAP, int64_t missingbitmap,\n"
32387 " GUESTFS_MD_CREATE_NRDEVICES, int nrdevices,\n"
32388 " GUESTFS_MD_CREATE_SPARE, int spare,\n"
32389 " GUESTFS_MD_CREATE_CHUNK, int64_t chunk,\n"
32390 " GUESTFS_MD_CREATE_LEVEL, const char *level,\n"
32395 #: ../src/guestfs-actions.pod:4988
32397 #| msgid "guestfs_create"
32398 msgid "guestfs_md_create_va"
32399 msgstr "guestfs_create"
32402 #: ../src/guestfs-actions.pod:4990
32406 #| " guestfs_mkfs_opts_va (guestfs_h *g,\n"
32407 #| " const char *fstype,\n"
32408 #| " const char *device,\n"
32409 #| " va_list args);\n"
32413 " guestfs_md_create_va (guestfs_h *g,\n"
32414 " const char *name,\n"
32415 " char *const *devices,\n"
32416 " va_list args);\n"
32420 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
32421 " const char *fstype,\n"
32422 " const char *device,\n"
32423 " va_list args);\n"
32427 #: ../src/guestfs-actions.pod:4996
32428 msgid "This is the \"va_list variant\" of L</guestfs_md_create>."
32432 #: ../src/guestfs-actions.pod:5000
32434 #| msgid "guestfs_create"
32435 msgid "guestfs_md_create_argv"
32436 msgstr "guestfs_create"
32439 #: ../src/guestfs-actions.pod:5002
32443 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32444 #| " const char *fstype,\n"
32445 #| " const char *device,\n"
32446 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
32450 " guestfs_md_create_argv (guestfs_h *g,\n"
32451 " const char *name,\n"
32452 " char *const *devices,\n"
32453 " const struct guestfs_md_create_argv *optargs);\n"
32457 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32458 " const char *fstype,\n"
32459 " const char *device,\n"
32460 " const struct guestfs_mkfs_opts_argv *optargs);\n"
32464 #: ../src/guestfs-actions.pod:5008
32465 msgid "This is the \"argv variant\" of L</guestfs_md_create>."
32469 #: ../src/guestfs-actions.pod:5012
32471 #| msgid "guestfs_aug_get"
32472 msgid "guestfs_md_detail"
32473 msgstr "guestfs_aug_get"
32476 #: ../src/guestfs-actions.pod:5014
32480 #| " guestfs_aug_get (guestfs_h *g,\n"
32481 #| " const char *augpath);\n"
32485 " guestfs_md_detail (guestfs_h *g,\n"
32486 " const char *md);\n"
32490 " guestfs_aug_get (guestfs_h *g,\n"
32491 " const char *augpath);\n"
32495 #: ../src/guestfs-actions.pod:5051
32497 #| msgid "guestfs_mkdir_p"
32498 msgid "guestfs_md_stop"
32499 msgstr "guestfs_mkdir_p"
32502 #: ../src/guestfs-actions.pod:5053
32506 #| " guestfs_mkdir_p (guestfs_h *g,\n"
32507 #| " const char *path);\n"
32511 " guestfs_md_stop (guestfs_h *g,\n"
32512 " const char *md);\n"
32516 " guestfs_mkdir_p (guestfs_h *g,\n"
32517 " const char *path);\n"
32521 #: ../src/guestfs-actions.pod:5062
32522 msgid "guestfs_mkdir"
32523 msgstr "guestfs_mkdir"
32526 #: ../src/guestfs-actions.pod:5064
32530 " guestfs_mkdir (guestfs_h *g,\n"
32531 " const char *path);\n"
32535 " guestfs_mkdir (guestfs_h *g,\n"
32536 " const char *path);\n"
32540 #: ../src/guestfs-actions.pod:5074
32541 msgid "guestfs_mkdir_mode"
32542 msgstr "guestfs_mkdir_mode"
32545 #: ../src/guestfs-actions.pod:5076
32549 " guestfs_mkdir_mode (guestfs_h *g,\n"
32550 " const char *path,\n"
32555 " guestfs_mkdir_mode (guestfs_h *g,\n"
32556 " const char *path,\n"
32561 #: ../src/guestfs-actions.pod:5088
32562 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
32566 #: ../src/guestfs-actions.pod:5094
32567 msgid "guestfs_mkdir_p"
32568 msgstr "guestfs_mkdir_p"
32571 #: ../src/guestfs-actions.pod:5096
32575 " guestfs_mkdir_p (guestfs_h *g,\n"
32576 " const char *path);\n"
32580 " guestfs_mkdir_p (guestfs_h *g,\n"
32581 " const char *path);\n"
32585 #: ../src/guestfs-actions.pod:5107
32586 msgid "guestfs_mkdtemp"
32587 msgstr "guestfs_mkdtemp"
32590 #: ../src/guestfs-actions.pod:5109
32594 " guestfs_mkdtemp (guestfs_h *g,\n"
32595 " const char *template);\n"
32599 " guestfs_mkdtemp (guestfs_h *g,\n"
32600 " const char *template);\n"
32604 #: ../src/guestfs-actions.pod:5137
32605 msgid "guestfs_mke2fs_J"
32606 msgstr "guestfs_mke2fs_J"
32609 #: ../src/guestfs-actions.pod:5139
32613 " guestfs_mke2fs_J (guestfs_h *g,\n"
32614 " const char *fstype,\n"
32615 " int blocksize,\n"
32616 " const char *device,\n"
32617 " const char *journal);\n"
32621 " guestfs_mke2fs_J (guestfs_h *g,\n"
32622 " const char *fstype,\n"
32623 " int blocksize,\n"
32624 " const char *device,\n"
32625 " const char *journal);\n"
32629 #: ../src/guestfs-actions.pod:5152
32630 msgid "See also C<guestfs_mke2journal>."
32634 #: ../src/guestfs-actions.pod:5156 ../src/guestfs-actions.pod:5174
32635 #: ../src/guestfs-actions.pod:5192 ../src/guestfs-actions.pod:5208
32636 #: ../src/guestfs-actions.pod:5222 ../src/guestfs-actions.pod:5236
32637 #: ../src/guestfs-actions.pod:5295 ../src/guestfs-actions.pod:5572
32638 msgid "(Added in 1.0.68)"
32639 msgstr "(Додано у 1.0.68)"
32642 #: ../src/guestfs-actions.pod:5158
32643 msgid "guestfs_mke2fs_JL"
32644 msgstr "guestfs_mke2fs_JL"
32647 #: ../src/guestfs-actions.pod:5160
32651 " guestfs_mke2fs_JL (guestfs_h *g,\n"
32652 " const char *fstype,\n"
32653 " int blocksize,\n"
32654 " const char *device,\n"
32655 " const char *label);\n"
32659 " guestfs_mke2fs_JL (guestfs_h *g,\n"
32660 " const char *fstype,\n"
32661 " int blocksize,\n"
32662 " const char *device,\n"
32663 " const char *label);\n"
32667 #: ../src/guestfs-actions.pod:5170
32668 msgid "See also C<guestfs_mke2journal_L>."
32672 #: ../src/guestfs-actions.pod:5176
32673 msgid "guestfs_mke2fs_JU"
32674 msgstr "guestfs_mke2fs_JU"
32677 #: ../src/guestfs-actions.pod:5178
32681 " guestfs_mke2fs_JU (guestfs_h *g,\n"
32682 " const char *fstype,\n"
32683 " int blocksize,\n"
32684 " const char *device,\n"
32685 " const char *uuid);\n"
32689 " guestfs_mke2fs_JU (guestfs_h *g,\n"
32690 " const char *fstype,\n"
32691 " int blocksize,\n"
32692 " const char *device,\n"
32693 " const char *uuid);\n"
32697 #: ../src/guestfs-actions.pod:5188
32698 msgid "See also C<guestfs_mke2journal_U>."
32702 #: ../src/guestfs-actions.pod:5194
32703 msgid "guestfs_mke2journal"
32704 msgstr "guestfs_mke2journal"
32707 #: ../src/guestfs-actions.pod:5196
32711 " guestfs_mke2journal (guestfs_h *g,\n"
32712 " int blocksize,\n"
32713 " const char *device);\n"
32717 " guestfs_mke2journal (guestfs_h *g,\n"
32718 " int blocksize,\n"
32719 " const char *device);\n"
32723 #: ../src/guestfs-actions.pod:5210
32724 msgid "guestfs_mke2journal_L"
32725 msgstr "guestfs_mke2journal_L"
32728 #: ../src/guestfs-actions.pod:5212
32732 " guestfs_mke2journal_L (guestfs_h *g,\n"
32733 " int blocksize,\n"
32734 " const char *label,\n"
32735 " const char *device);\n"
32739 " guestfs_mke2journal_L (guestfs_h *g,\n"
32740 " int blocksize,\n"
32741 " const char *label,\n"
32742 " const char *device);\n"
32746 #: ../src/guestfs-actions.pod:5224
32747 msgid "guestfs_mke2journal_U"
32748 msgstr "guestfs_mke2journal_U"
32751 #: ../src/guestfs-actions.pod:5226
32755 " guestfs_mke2journal_U (guestfs_h *g,\n"
32756 " int blocksize,\n"
32757 " const char *uuid,\n"
32758 " const char *device);\n"
32762 " guestfs_mke2journal_U (guestfs_h *g,\n"
32763 " int blocksize,\n"
32764 " const char *uuid,\n"
32765 " const char *device);\n"
32769 #: ../src/guestfs-actions.pod:5238
32770 msgid "guestfs_mkfifo"
32771 msgstr "guestfs_mkfifo"
32774 #: ../src/guestfs-actions.pod:5240
32778 " guestfs_mkfifo (guestfs_h *g,\n"
32780 " const char *path);\n"
32784 " guestfs_mkfifo (guestfs_h *g,\n"
32786 " const char *path);\n"
32790 #: ../src/guestfs-actions.pod:5245
32792 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
32793 "is just a convenient wrapper around C<guestfs_mknod>."
32797 #: ../src/guestfs-actions.pod:5255
32798 msgid "guestfs_mkfs"
32799 msgstr "guestfs_mkfs"
32802 #: ../src/guestfs-actions.pod:5257
32806 " guestfs_mkfs (guestfs_h *g,\n"
32807 " const char *fstype,\n"
32808 " const char *device);\n"
32812 " guestfs_mkfs (guestfs_h *g,\n"
32813 " const char *fstype,\n"
32814 " const char *device);\n"
32818 #: ../src/guestfs-actions.pod:5270
32819 msgid "guestfs_mkfs_b"
32820 msgstr "guestfs_mkfs_b"
32823 #: ../src/guestfs-actions.pod:5272
32827 " guestfs_mkfs_b (guestfs_h *g,\n"
32828 " const char *fstype,\n"
32829 " int blocksize,\n"
32830 " const char *device);\n"
32834 " guestfs_mkfs_b (guestfs_h *g,\n"
32835 " const char *fstype,\n"
32836 " int blocksize,\n"
32837 " const char *device);\n"
32841 #: ../src/guestfs-actions.pod:5278
32843 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
32848 #: ../src/guestfs-actions.pod:5285
32850 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
32851 "block size of the resulting filesystem. Supported block sizes depend on the "
32852 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
32856 #: ../src/guestfs-actions.pod:5297
32857 msgid "guestfs_mkfs_opts"
32858 msgstr "guestfs_mkfs_opts"
32861 #: ../src/guestfs-actions.pod:5299
32865 " guestfs_mkfs_opts (guestfs_h *g,\n"
32866 " const char *fstype,\n"
32867 " const char *device,\n"
32872 " guestfs_mkfs_opts (guestfs_h *g,\n"
32873 " const char *fstype,\n"
32874 " const char *device,\n"
32879 #: ../src/guestfs-actions.pod:5310
32882 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
32883 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
32884 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
32885 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
32890 #: ../src/guestfs-actions.pod:5358
32891 msgid "(Added in 1.7.19)"
32892 msgstr "(Додано у 1.7.19)"
32895 #: ../src/guestfs-actions.pod:5360
32896 msgid "guestfs_mkfs_opts_va"
32897 msgstr "guestfs_mkfs_opts_va"
32900 #: ../src/guestfs-actions.pod:5362
32904 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
32905 " const char *fstype,\n"
32906 " const char *device,\n"
32907 " va_list args);\n"
32911 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
32912 " const char *fstype,\n"
32913 " const char *device,\n"
32914 " va_list args);\n"
32918 #: ../src/guestfs-actions.pod:5368
32919 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
32923 #: ../src/guestfs-actions.pod:5372
32924 msgid "guestfs_mkfs_opts_argv"
32925 msgstr "guestfs_mkfs_opts_argv"
32928 #: ../src/guestfs-actions.pod:5374
32932 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32933 " const char *fstype,\n"
32934 " const char *device,\n"
32935 " const struct guestfs_mkfs_opts_argv *optargs);\n"
32939 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32940 " const char *fstype,\n"
32941 " const char *device,\n"
32942 " const struct guestfs_mkfs_opts_argv *optargs);\n"
32946 #: ../src/guestfs-actions.pod:5380
32947 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
32951 #: ../src/guestfs-actions.pod:5384
32952 msgid "guestfs_mkmountpoint"
32953 msgstr "guestfs_mkmountpoint"
32956 #: ../src/guestfs-actions.pod:5386
32960 " guestfs_mkmountpoint (guestfs_h *g,\n"
32961 " const char *exemptpath);\n"
32965 " guestfs_mkmountpoint (guestfs_h *g,\n"
32966 " const char *exemptpath);\n"
32970 #: ../src/guestfs-actions.pod:5390
32972 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
32973 "that can be used to create extra mountpoints before mounting the first "
32978 #: ../src/guestfs-actions.pod:5414
32980 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
32981 "may get unexpected errors if you try to mix these calls. It is safest to "
32982 "manually unmount filesystems and remove mountpoints after use."
32986 #: ../src/guestfs-actions.pod:5418
32988 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
32989 "first, so for this to work for manual mountpoints, you must ensure that the "
32990 "innermost mountpoints have the longest pathnames, as in the example code "
32995 #: ../src/guestfs-actions.pod:5425
32997 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
32998 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
32999 "can also trigger these issues."
33003 #: ../src/guestfs-actions.pod:5431 ../src/guestfs-actions.pod:5737
33004 #: ../src/guestfs-actions.pod:6764
33005 msgid "(Added in 1.0.62)"
33006 msgstr "(Додано у 1.0.62)"
33009 #: ../src/guestfs-actions.pod:5433
33010 msgid "guestfs_mknod"
33014 #: ../src/guestfs-actions.pod:5435
33018 " guestfs_mknod (guestfs_h *g,\n"
33022 " const char *path);\n"
33027 #: ../src/guestfs-actions.pod:5450
33029 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
33030 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
33031 "regular file). These constants are available in the standard Linux header "
33032 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
33033 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
33034 "the appropriate constant for you."
33038 #: ../src/guestfs-actions.pod:5464
33039 msgid "guestfs_mknod_b"
33043 #: ../src/guestfs-actions.pod:5466
33047 " guestfs_mknod_b (guestfs_h *g,\n"
33051 " const char *path);\n"
33056 #: ../src/guestfs-actions.pod:5473
33058 "This call creates a block device node called C<path> with mode C<mode> and "
33059 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
33060 "wrapper around C<guestfs_mknod>."
33064 #: ../src/guestfs-actions.pod:5483
33065 msgid "guestfs_mknod_c"
33069 #: ../src/guestfs-actions.pod:5485
33073 " guestfs_mknod_c (guestfs_h *g,\n"
33077 " const char *path);\n"
33082 #: ../src/guestfs-actions.pod:5492
33084 "This call creates a char device node called C<path> with mode C<mode> and "
33085 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
33086 "wrapper around C<guestfs_mknod>."
33090 #: ../src/guestfs-actions.pod:5502
33091 msgid "guestfs_mkswap"
33095 #: ../src/guestfs-actions.pod:5504
33099 " guestfs_mkswap (guestfs_h *g,\n"
33100 " const char *device);\n"
33105 #: ../src/guestfs-actions.pod:5514
33106 msgid "guestfs_mkswap_L"
33110 #: ../src/guestfs-actions.pod:5516
33114 " guestfs_mkswap_L (guestfs_h *g,\n"
33115 " const char *label,\n"
33116 " const char *device);\n"
33121 #: ../src/guestfs-actions.pod:5531
33122 msgid "guestfs_mkswap_U"
33126 #: ../src/guestfs-actions.pod:5533
33130 " guestfs_mkswap_U (guestfs_h *g,\n"
33131 " const char *uuid,\n"
33132 " const char *device);\n"
33137 #: ../src/guestfs-actions.pod:5544
33138 msgid "guestfs_mkswap_file"
33142 #: ../src/guestfs-actions.pod:5546
33146 " guestfs_mkswap_file (guestfs_h *g,\n"
33147 " const char *path);\n"
33152 #: ../src/guestfs-actions.pod:5552
33154 "This command just writes a swap file signature to an existing file. To "
33155 "create the file itself, use something like C<guestfs_fallocate>."
33159 #: ../src/guestfs-actions.pod:5559
33160 msgid "guestfs_modprobe"
33164 #: ../src/guestfs-actions.pod:5561
33168 " guestfs_modprobe (guestfs_h *g,\n"
33169 " const char *modulename);\n"
33174 #: ../src/guestfs-actions.pod:5574
33175 msgid "guestfs_mount"
33179 #: ../src/guestfs-actions.pod:5576
33183 " guestfs_mount (guestfs_h *g,\n"
33184 " const char *device,\n"
33185 " const char *mountpoint);\n"
33190 #: ../src/guestfs-actions.pod:5595
33192 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
33193 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
33194 "problems for users. If your program might need to work with older versions "
33195 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
33196 "for the first parameter if you don't want any options)."
33200 #: ../src/guestfs-actions.pod:5606
33201 msgid "guestfs_mount_9p"
33205 #: ../src/guestfs-actions.pod:5608
33209 " guestfs_mount_9p (guestfs_h *g,\n"
33210 " const char *mounttag,\n"
33211 " const char *mountpoint,\n"
33217 #: ../src/guestfs-actions.pod:5619
33220 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
33225 #: ../src/guestfs-actions.pod:5632
33226 msgid "guestfs_mount_9p_va"
33230 #: ../src/guestfs-actions.pod:5634
33234 " guestfs_mount_9p_va (guestfs_h *g,\n"
33235 " const char *mounttag,\n"
33236 " const char *mountpoint,\n"
33237 " va_list args);\n"
33242 #: ../src/guestfs-actions.pod:5640
33243 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
33247 #: ../src/guestfs-actions.pod:5644
33248 msgid "guestfs_mount_9p_argv"
33252 #: ../src/guestfs-actions.pod:5646
33256 " guestfs_mount_9p_argv (guestfs_h *g,\n"
33257 " const char *mounttag,\n"
33258 " const char *mountpoint,\n"
33259 " const struct guestfs_mount_9p_argv *optargs);\n"
33264 #: ../src/guestfs-actions.pod:5652
33265 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
33269 #: ../src/guestfs-actions.pod:5656
33270 msgid "guestfs_mount_loop"
33274 #: ../src/guestfs-actions.pod:5658
33278 " guestfs_mount_loop (guestfs_h *g,\n"
33279 " const char *file,\n"
33280 " const char *mountpoint);\n"
33285 #: ../src/guestfs-actions.pod:5671
33286 msgid "guestfs_mount_options"
33290 #: ../src/guestfs-actions.pod:5673
33294 " guestfs_mount_options (guestfs_h *g,\n"
33295 " const char *options,\n"
33296 " const char *device,\n"
33297 " const char *mountpoint);\n"
33302 #: ../src/guestfs-actions.pod:5679
33304 "This is the same as the C<guestfs_mount> command, but it allows you to set "
33305 "the mount options as for the L<mount(8)> I<-o> flag."
33309 #: ../src/guestfs-actions.pod:5689 ../src/guestfs-actions.pod:5703
33310 #: ../src/guestfs-actions.pod:5720
33311 msgid "(Added in 1.0.10)"
33312 msgstr "(Додано у 1.0.10)"
33315 #: ../src/guestfs-actions.pod:5691
33316 msgid "guestfs_mount_ro"
33320 #: ../src/guestfs-actions.pod:5693
33324 " guestfs_mount_ro (guestfs_h *g,\n"
33325 " const char *device,\n"
33326 " const char *mountpoint);\n"
33331 #: ../src/guestfs-actions.pod:5698
33333 "This is the same as the C<guestfs_mount> command, but it mounts the "
33334 "filesystem with the read-only (I<-o ro>) flag."
33338 #: ../src/guestfs-actions.pod:5705
33339 msgid "guestfs_mount_vfs"
33343 #: ../src/guestfs-actions.pod:5707
33347 " guestfs_mount_vfs (guestfs_h *g,\n"
33348 " const char *options,\n"
33349 " const char *vfstype,\n"
33350 " const char *device,\n"
33351 " const char *mountpoint);\n"
33356 #: ../src/guestfs-actions.pod:5714
33358 "This is the same as the C<guestfs_mount> command, but it allows you to set "
33359 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
33364 #: ../src/guestfs-actions.pod:5722
33365 msgid "guestfs_mountpoints"
33369 #: ../src/guestfs-actions.pod:5724
33373 " guestfs_mountpoints (guestfs_h *g);\n"
33378 #: ../src/guestfs-actions.pod:5727
33380 "This call is similar to C<guestfs_mounts>. That call returns a list of "
33381 "devices. This one returns a hash table (map) of device name to directory "
33382 "where the device is mounted."
33386 #: ../src/guestfs-actions.pod:5739
33387 msgid "guestfs_mounts"
33391 #: ../src/guestfs-actions.pod:5741
33395 " guestfs_mounts (guestfs_h *g);\n"
33400 #: ../src/guestfs-actions.pod:5749
33401 msgid "See also: C<guestfs_mountpoints>"
33405 #: ../src/guestfs-actions.pod:5757
33410 #: ../src/guestfs-actions.pod:5759
33414 " guestfs_mv (guestfs_h *g,\n"
33415 " const char *src,\n"
33416 " const char *dest);\n"
33421 #: ../src/guestfs-actions.pod:5771
33422 msgid "guestfs_ntfs_3g_probe"
33426 #: ../src/guestfs-actions.pod:5773
33430 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
33432 " const char *device);\n"
33437 #: ../src/guestfs-actions.pod:5792
33438 msgid "(Added in 1.0.43)"
33439 msgstr "(Додано у 1.0.43)"
33442 #: ../src/guestfs-actions.pod:5794
33443 msgid "guestfs_ntfsresize"
33447 #: ../src/guestfs-actions.pod:5796
33451 " guestfs_ntfsresize (guestfs_h *g,\n"
33452 " const char *device);\n"
33457 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:5900
33459 "I<This function is deprecated.> In new code, use the L</"
33460 "guestfs_ntfsresize_opts> call instead."
33464 #: ../src/guestfs-actions.pod:5824
33465 msgid "guestfs_ntfsresize_opts"
33469 #: ../src/guestfs-actions.pod:5826
33473 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
33474 " const char *device,\n"
33480 #: ../src/guestfs-actions.pod:5836
33483 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
33484 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
33489 #: ../src/guestfs-actions.pod:5856
33491 "After the resize operation, the filesystem is always marked as requiring a "
33492 "consistency check (for safety). You have to boot into Windows to perform "
33493 "this check and clear this condition. If you I<don't> set the C<force> "
33494 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
33495 "times on a single filesystem without booting into Windows between each "
33500 #: ../src/guestfs-actions.pod:5871
33501 msgid "guestfs_ntfsresize_opts_va"
33505 #: ../src/guestfs-actions.pod:5873
33509 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
33510 " const char *device,\n"
33511 " va_list args);\n"
33516 #: ../src/guestfs-actions.pod:5878
33517 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
33521 #: ../src/guestfs-actions.pod:5882
33522 msgid "guestfs_ntfsresize_opts_argv"
33526 #: ../src/guestfs-actions.pod:5884
33530 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
33531 " const char *device,\n"
33532 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
33537 #: ../src/guestfs-actions.pod:5889
33538 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
33542 #: ../src/guestfs-actions.pod:5893
33543 msgid "guestfs_ntfsresize_size"
33547 #: ../src/guestfs-actions.pod:5895
33551 " guestfs_ntfsresize_size (guestfs_h *g,\n"
33552 " const char *device,\n"
33553 " int64_t size);\n"
33558 #: ../src/guestfs-actions.pod:5907
33560 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
33561 "to specify the new size (in bytes) explicitly."
33565 #: ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:6371
33566 #: ../src/guestfs-actions.pod:6444 ../src/guestfs-actions.pod:6712
33567 #: ../src/guestfs-actions.pod:8461
33568 msgid "(Added in 1.3.14)"
33569 msgstr "(Додано у 1.3.14)"
33572 #: ../src/guestfs-actions.pod:5914
33573 msgid "guestfs_part_add"
33577 #: ../src/guestfs-actions.pod:5916
33581 " guestfs_part_add (guestfs_h *g,\n"
33582 " const char *device,\n"
33583 " const char *prlogex,\n"
33584 " int64_t startsect,\n"
33585 " int64_t endsect);\n"
33590 #: ../src/guestfs-actions.pod:5923
33592 "This command adds a partition to C<device>. If there is no partition table "
33593 "on the device, call C<guestfs_part_init> first."
33597 #: ../src/guestfs-actions.pod:5935
33599 "Creating a partition which covers the whole disk is not so easy. Use "
33600 "C<guestfs_part_disk> to do that."
33604 #: ../src/guestfs-actions.pod:5940 ../src/guestfs-actions.pod:5975
33605 #: ../src/guestfs-actions.pod:6028 ../src/guestfs-actions.pod:6112
33606 #: ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6169
33607 #: ../src/guestfs-actions.pod:6209
33608 msgid "(Added in 1.0.78)"
33609 msgstr "(Додано у 1.0.78)"
33612 #: ../src/guestfs-actions.pod:5942
33613 msgid "guestfs_part_del"
33617 #: ../src/guestfs-actions.pod:5944
33621 " guestfs_part_del (guestfs_h *g,\n"
33622 " const char *device,\n"
33628 #: ../src/guestfs-actions.pod:5959
33629 msgid "guestfs_part_disk"
33633 #: ../src/guestfs-actions.pod:5961
33637 " guestfs_part_disk (guestfs_h *g,\n"
33638 " const char *device,\n"
33639 " const char *parttype);\n"
33644 #: ../src/guestfs-actions.pod:5966
33646 "This command is simply a combination of C<guestfs_part_init> followed by "
33647 "C<guestfs_part_add> to create a single primary partition covering the whole "
33652 #: ../src/guestfs-actions.pod:5970
33654 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
33655 "possible values are described in C<guestfs_part_init>."
33659 #: ../src/guestfs-actions.pod:5977
33660 msgid "guestfs_part_get_bootable"
33664 #: ../src/guestfs-actions.pod:5979
33668 " guestfs_part_get_bootable (guestfs_h *g,\n"
33669 " const char *device,\n"
33675 #: ../src/guestfs-actions.pod:5987
33676 msgid "See also C<guestfs_part_set_bootable>."
33680 #: ../src/guestfs-actions.pod:5993
33681 msgid "guestfs_part_get_mbr_id"
33685 #: ../src/guestfs-actions.pod:5995
33689 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
33690 " const char *device,\n"
33696 #: ../src/guestfs-actions.pod:6003 ../src/guestfs-actions.pod:6185
33698 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
33699 "undefined results for other partition table types (see "
33700 "C<guestfs_part_get_parttype>)."
33704 #: ../src/guestfs-actions.pod:6011
33705 msgid "guestfs_part_get_parttype"
33709 #: ../src/guestfs-actions.pod:6013
33713 " guestfs_part_get_parttype (guestfs_h *g,\n"
33714 " const char *device);\n"
33719 #: ../src/guestfs-actions.pod:6020
33721 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
33722 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
33723 "possible, although unusual. See C<guestfs_part_init> for a full list."
33727 #: ../src/guestfs-actions.pod:6030
33728 msgid "guestfs_part_init"
33732 #: ../src/guestfs-actions.pod:6032
33736 " guestfs_part_init (guestfs_h *g,\n"
33737 " const char *device,\n"
33738 " const char *parttype);\n"
33743 #: ../src/guestfs-actions.pod:6041
33745 "Initially there are no partitions. Following this, you should call "
33746 "C<guestfs_part_add> for each partition required."
33750 #: ../src/guestfs-actions.pod:6114
33751 msgid "guestfs_part_list"
33752 msgstr "guestfs_part_list"
33755 #: ../src/guestfs-actions.pod:6116
33758 " struct guestfs_partition_list *\n"
33759 " guestfs_part_list (guestfs_h *g,\n"
33760 " const char *device);\n"
33763 " struct guestfs_partition_list *\n"
33764 " guestfs_part_list (guestfs_h *g,\n"
33765 " const char *device);\n"
33769 #: ../src/guestfs-actions.pod:6133
33771 "Start of the partition I<in bytes>. To get sectors you have to divide by "
33772 "the device's sector size, see C<guestfs_blockdev_getss>."
33776 #: ../src/guestfs-actions.pod:6146
33778 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
33779 "was an error. I<The caller must call C<guestfs_free_partition_list> after "
33784 #: ../src/guestfs-actions.pod:6152
33785 msgid "guestfs_part_set_bootable"
33789 #: ../src/guestfs-actions.pod:6154
33793 " guestfs_part_set_bootable (guestfs_h *g,\n"
33794 " const char *device,\n"
33796 " int bootable);\n"
33801 #: ../src/guestfs-actions.pod:6171
33802 msgid "guestfs_part_set_mbr_id"
33806 #: ../src/guestfs-actions.pod:6173
33810 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
33811 " const char *device,\n"
33818 #: ../src/guestfs-actions.pod:6193
33819 msgid "guestfs_part_set_name"
33823 #: ../src/guestfs-actions.pod:6195
33827 " guestfs_part_set_name (guestfs_h *g,\n"
33828 " const char *device,\n"
33830 " const char *name);\n"
33835 #: ../src/guestfs-actions.pod:6211
33836 msgid "guestfs_part_to_dev"
33840 #: ../src/guestfs-actions.pod:6213
33844 " guestfs_part_to_dev (guestfs_h *g,\n"
33845 " const char *partition);\n"
33850 #: ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6240
33852 "The named partition must exist, for example as a string returned from "
33853 "C<guestfs_list_partitions>."
33857 #: ../src/guestfs-actions.pod:6224
33858 msgid "See also C<guestfs_part_to_partnum>."
33862 #: ../src/guestfs-actions.pod:6231
33863 msgid "guestfs_part_to_partnum"
33867 #: ../src/guestfs-actions.pod:6233
33871 " guestfs_part_to_partnum (guestfs_h *g,\n"
33872 " const char *partition);\n"
33877 #: ../src/guestfs-actions.pod:6243
33878 msgid "See also C<guestfs_part_to_dev>."
33882 #: ../src/guestfs-actions.pod:6249
33883 msgid "guestfs_ping_daemon"
33887 #: ../src/guestfs-actions.pod:6251
33891 " guestfs_ping_daemon (guestfs_h *g);\n"
33896 #: ../src/guestfs-actions.pod:6263
33897 msgid "guestfs_pread"
33901 #: ../src/guestfs-actions.pod:6265
33905 " guestfs_pread (guestfs_h *g,\n"
33906 " const char *path,\n"
33908 " int64_t offset,\n"
33909 " size_t *size_r);\n"
33914 #: ../src/guestfs-actions.pod:6278
33915 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
33919 #: ../src/guestfs-actions.pod:6289
33920 msgid "guestfs_pread_device"
33924 #: ../src/guestfs-actions.pod:6291
33928 " guestfs_pread_device (guestfs_h *g,\n"
33929 " const char *device,\n"
33931 " int64_t offset,\n"
33932 " size_t *size_r);\n"
33937 #: ../src/guestfs-actions.pod:6304
33938 msgid "See also C<guestfs_pread>."
33942 #: ../src/guestfs-actions.pod:6313
33943 msgid "(Added in 1.5.21)"
33944 msgstr "(Додано у 1.5.21)"
33947 #: ../src/guestfs-actions.pod:6315
33948 msgid "guestfs_pvcreate"
33952 #: ../src/guestfs-actions.pod:6317
33956 " guestfs_pvcreate (guestfs_h *g,\n"
33957 " const char *device);\n"
33962 #: ../src/guestfs-actions.pod:6329
33963 msgid "guestfs_pvremove"
33967 #: ../src/guestfs-actions.pod:6331
33971 " guestfs_pvremove (guestfs_h *g,\n"
33972 " const char *device);\n"
33977 #: ../src/guestfs-actions.pod:6346
33978 msgid "guestfs_pvresize"
33982 #: ../src/guestfs-actions.pod:6348
33986 " guestfs_pvresize (guestfs_h *g,\n"
33987 " const char *device);\n"
33992 #: ../src/guestfs-actions.pod:6359
33993 msgid "guestfs_pvresize_size"
33997 #: ../src/guestfs-actions.pod:6361
34001 " guestfs_pvresize_size (guestfs_h *g,\n"
34002 " const char *device,\n"
34003 " int64_t size);\n"
34008 #: ../src/guestfs-actions.pod:6366
34010 "This command is the same as C<guestfs_pvresize> except that it allows you to "
34011 "specify the new size (in bytes) explicitly."
34015 #: ../src/guestfs-actions.pod:6373
34016 msgid "guestfs_pvs"
34020 #: ../src/guestfs-actions.pod:6375
34024 " guestfs_pvs (guestfs_h *g);\n"
34029 #: ../src/guestfs-actions.pod:6384
34030 msgid "See also C<guestfs_pvs_full>."
34034 #: ../src/guestfs-actions.pod:6392
34035 msgid "guestfs_pvs_full"
34039 #: ../src/guestfs-actions.pod:6394
34042 " struct guestfs_lvm_pv_list *\n"
34043 " guestfs_pvs_full (guestfs_h *g);\n"
34048 #: ../src/guestfs-actions.pod:6400
34050 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
34051 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
34055 #: ../src/guestfs-actions.pod:6406
34056 msgid "guestfs_pvuuid"
34060 #: ../src/guestfs-actions.pod:6408
34064 " guestfs_pvuuid (guestfs_h *g,\n"
34065 " const char *device);\n"
34070 #: ../src/guestfs-actions.pod:6419
34071 msgid "guestfs_pwrite"
34075 #: ../src/guestfs-actions.pod:6421
34079 " guestfs_pwrite (guestfs_h *g,\n"
34080 " const char *path,\n"
34081 " const char *content,\n"
34082 " size_t content_size,\n"
34083 " int64_t offset);\n"
34088 #: ../src/guestfs-actions.pod:6437
34089 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
34093 #: ../src/guestfs-actions.pod:6446
34094 msgid "guestfs_pwrite_device"
34098 #: ../src/guestfs-actions.pod:6448
34102 " guestfs_pwrite_device (guestfs_h *g,\n"
34103 " const char *device,\n"
34104 " const char *content,\n"
34105 " size_t content_size,\n"
34106 " int64_t offset);\n"
34111 #: ../src/guestfs-actions.pod:6463
34112 msgid "See also C<guestfs_pwrite>."
34116 #: ../src/guestfs-actions.pod:6470
34117 msgid "(Added in 1.5.20)"
34118 msgstr "(Додано у 1.5.20)"
34121 #: ../src/guestfs-actions.pod:6472
34122 msgid "guestfs_read_file"
34126 #: ../src/guestfs-actions.pod:6474
34130 " guestfs_read_file (guestfs_h *g,\n"
34131 " const char *path,\n"
34132 " size_t *size_r);\n"
34137 #: ../src/guestfs-actions.pod:6482
34139 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
34140 "embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
34141 "function is limited in the total size of file that can be handled."
34145 #: ../src/guestfs-actions.pod:6494
34146 msgid "(Added in 1.0.63)"
34147 msgstr "(Додано у 1.0.63)"
34150 #: ../src/guestfs-actions.pod:6496
34151 msgid "guestfs_read_lines"
34155 #: ../src/guestfs-actions.pod:6498
34159 " guestfs_read_lines (guestfs_h *g,\n"
34160 " const char *path);\n"
34165 #: ../src/guestfs-actions.pod:6507
34167 "Note that this function cannot correctly handle binary files (specifically, "
34168 "files containing C<\\0> character which is treated as end of line). For "
34169 "those you need to use the C<guestfs_read_file> function which has a more "
34170 "complex interface."
34174 #: ../src/guestfs-actions.pod:6518
34175 msgid "guestfs_readdir"
34179 #: ../src/guestfs-actions.pod:6520
34182 " struct guestfs_dirent_list *\n"
34183 " guestfs_readdir (guestfs_h *g,\n"
34184 " const char *dir);\n"
34189 #: ../src/guestfs-actions.pod:6574
34191 "This function is primarily intended for use by programs. To get a simple "
34192 "list of names, use C<guestfs_ls>. To get a printable directory for human "
34193 "consumption, use C<guestfs_ll>."
34197 #: ../src/guestfs-actions.pod:6578
34199 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
34200 "was an error. I<The caller must call C<guestfs_free_dirent_list> after use>."
34204 #: ../src/guestfs-actions.pod:6584
34205 msgid "guestfs_readlink"
34209 #: ../src/guestfs-actions.pod:6586
34213 " guestfs_readlink (guestfs_h *g,\n"
34214 " const char *path);\n"
34219 #: ../src/guestfs-actions.pod:6597
34220 msgid "guestfs_readlinklist"
34224 #: ../src/guestfs-actions.pod:6599
34228 " guestfs_readlinklist (guestfs_h *g,\n"
34229 " const char *path,\n"
34230 " char *const *names);\n"
34235 #: ../src/guestfs-actions.pod:6632
34236 msgid "guestfs_realpath"
34240 #: ../src/guestfs-actions.pod:6634
34244 " guestfs_realpath (guestfs_h *g,\n"
34245 " const char *path);\n"
34250 #: ../src/guestfs-actions.pod:6646
34251 msgid "guestfs_removexattr"
34255 #: ../src/guestfs-actions.pod:6648
34259 " guestfs_removexattr (guestfs_h *g,\n"
34260 " const char *xattr,\n"
34261 " const char *path);\n"
34266 #: ../src/guestfs-actions.pod:6656
34267 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
34271 #: ../src/guestfs-actions.pod:6662
34272 msgid "guestfs_resize2fs"
34276 #: ../src/guestfs-actions.pod:6664
34280 " guestfs_resize2fs (guestfs_h *g,\n"
34281 " const char *device);\n"
34286 #: ../src/guestfs-actions.pod:6671
34288 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
34289 "C<device> before calling this command. For unknown reasons C<resize2fs> "
34290 "sometimes gives an error about this and sometimes not. In any case, it is "
34291 "always safe to call C<guestfs_e2fsck_f> before calling this function."
34295 #: ../src/guestfs-actions.pod:6681
34296 msgid "guestfs_resize2fs_M"
34300 #: ../src/guestfs-actions.pod:6683
34304 " guestfs_resize2fs_M (guestfs_h *g,\n"
34305 " const char *device);\n"
34310 #: ../src/guestfs-actions.pod:6687
34312 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
34313 "resized to its minimum size. This works like the I<-M> option to the "
34314 "C<resize2fs> command."
34318 #: ../src/guestfs-actions.pod:6691
34320 "To get the resulting size of the filesystem you should call "
34321 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
34322 "These two numbers, multiplied together, give the resulting size of the "
34323 "minimal filesystem in bytes."
34327 #: ../src/guestfs-actions.pod:6700
34328 msgid "guestfs_resize2fs_size"
34332 #: ../src/guestfs-actions.pod:6702
34336 " guestfs_resize2fs_size (guestfs_h *g,\n"
34337 " const char *device,\n"
34338 " int64_t size);\n"
34343 #: ../src/guestfs-actions.pod:6707
34345 "This command is the same as C<guestfs_resize2fs> except that it allows you "
34346 "to specify the new size (in bytes) explicitly."
34350 #: ../src/guestfs-actions.pod:6714
34355 #: ../src/guestfs-actions.pod:6716
34359 " guestfs_rm (guestfs_h *g,\n"
34360 " const char *path);\n"
34365 #: ../src/guestfs-actions.pod:6726
34366 msgid "guestfs_rm_rf"
34370 #: ../src/guestfs-actions.pod:6728
34374 " guestfs_rm_rf (guestfs_h *g,\n"
34375 " const char *path);\n"
34380 #: ../src/guestfs-actions.pod:6740
34381 msgid "guestfs_rmdir"
34385 #: ../src/guestfs-actions.pod:6742
34389 " guestfs_rmdir (guestfs_h *g,\n"
34390 " const char *path);\n"
34395 #: ../src/guestfs-actions.pod:6752
34396 msgid "guestfs_rmmountpoint"
34400 #: ../src/guestfs-actions.pod:6754
34404 " guestfs_rmmountpoint (guestfs_h *g,\n"
34405 " const char *exemptpath);\n"
34410 #: ../src/guestfs-actions.pod:6758
34412 "This calls removes a mountpoint that was previously created with "
34413 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
34417 #: ../src/guestfs-actions.pod:6766
34418 msgid "guestfs_scrub_device"
34422 #: ../src/guestfs-actions.pod:6768
34426 " guestfs_scrub_device (guestfs_h *g,\n"
34427 " const char *device);\n"
34432 #: ../src/guestfs-actions.pod:6780 ../src/guestfs-actions.pod:6798
34433 #: ../src/guestfs-actions.pod:6817
34434 msgid "(Added in 1.0.52)"
34435 msgstr "(Додано у 1.0.52)"
34438 #: ../src/guestfs-actions.pod:6782
34439 msgid "guestfs_scrub_file"
34443 #: ../src/guestfs-actions.pod:6784
34447 " guestfs_scrub_file (guestfs_h *g,\n"
34448 " const char *file);\n"
34453 #: ../src/guestfs-actions.pod:6800
34454 msgid "guestfs_scrub_freespace"
34458 #: ../src/guestfs-actions.pod:6802
34462 " guestfs_scrub_freespace (guestfs_h *g,\n"
34463 " const char *dir);\n"
34468 #: ../src/guestfs-actions.pod:6806
34470 "This command creates the directory C<dir> and then fills it with files until "
34471 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
34472 "and deletes them. The intention is to scrub any free space on the partition "
34473 "containing C<dir>."
34477 #: ../src/guestfs-actions.pod:6819
34478 msgid "guestfs_set_append"
34482 #: ../src/guestfs-actions.pod:6821
34486 " guestfs_set_append (guestfs_h *g,\n"
34487 " const char *append);\n"
34492 #: ../src/guestfs-actions.pod:6838
34493 msgid "guestfs_set_attach_method"
34497 #: ../src/guestfs-actions.pod:6840
34501 " guestfs_set_attach_method (guestfs_h *g,\n"
34502 " const char *attachmethod);\n"
34507 #: ../src/guestfs-actions.pod:6868
34508 msgid "guestfs_set_autosync"
34512 #: ../src/guestfs-actions.pod:6870
34516 " guestfs_set_autosync (guestfs_h *g,\n"
34517 " int autosync);\n"
34522 #: ../src/guestfs-actions.pod:6886
34523 msgid "guestfs_set_direct"
34527 #: ../src/guestfs-actions.pod:6888
34531 " guestfs_set_direct (guestfs_h *g,\n"
34537 #: ../src/guestfs-actions.pod:6896
34539 "One consequence of this is that log messages aren't caught by the library "
34540 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
34545 #: ../src/guestfs-actions.pod:6909
34546 msgid "guestfs_set_e2label"
34550 #: ../src/guestfs-actions.pod:6911
34554 " guestfs_set_e2label (guestfs_h *g,\n"
34555 " const char *device,\n"
34556 " const char *label);\n"
34561 #: ../src/guestfs-actions.pod:6920
34563 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
34564 "the existing label on a filesystem."
34568 #: ../src/guestfs-actions.pod:6927
34569 msgid "guestfs_set_e2uuid"
34573 #: ../src/guestfs-actions.pod:6929
34577 " guestfs_set_e2uuid (guestfs_h *g,\n"
34578 " const char *device,\n"
34579 " const char *uuid);\n"
34584 #: ../src/guestfs-actions.pod:6939
34586 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
34587 "the existing UUID of a filesystem."
34591 #: ../src/guestfs-actions.pod:6946
34592 msgid "guestfs_set_memsize"
34596 #: ../src/guestfs-actions.pod:6948
34600 " guestfs_set_memsize (guestfs_h *g,\n"
34606 #: ../src/guestfs-actions.pod:6952
34608 "This sets the memory size in megabytes allocated to the qemu subprocess. "
34609 "This only has any effect if called before C<guestfs_launch>."
34613 #: ../src/guestfs-actions.pod:6967
34614 msgid "guestfs_set_network"
34618 #: ../src/guestfs-actions.pod:6969
34622 " guestfs_set_network (guestfs_h *g,\n"
34628 #: ../src/guestfs-actions.pod:6979
34630 "You must call this before calling C<guestfs_launch>, otherwise it has no "
34635 #: ../src/guestfs-actions.pod:6986
34636 msgid "guestfs_set_path"
34640 #: ../src/guestfs-actions.pod:6988
34644 " guestfs_set_path (guestfs_h *g,\n"
34645 " const char *searchpath);\n"
34650 #: ../src/guestfs-actions.pod:7003
34651 msgid "guestfs_set_pgroup"
34655 #: ../src/guestfs-actions.pod:7005
34659 " guestfs_set_pgroup (guestfs_h *g,\n"
34665 #: ../src/guestfs-actions.pod:7022
34666 msgid "guestfs_set_qemu"
34670 #: ../src/guestfs-actions.pod:7024
34674 " guestfs_set_qemu (guestfs_h *g,\n"
34675 " const char *qemu);\n"
34680 #: ../src/guestfs-actions.pod:7050
34681 msgid "guestfs_set_recovery_proc"
34685 #: ../src/guestfs-actions.pod:7052
34689 " guestfs_set_recovery_proc (guestfs_h *g,\n"
34690 " int recoveryproc);\n"
34695 #: ../src/guestfs-actions.pod:7056
34697 "If this is called with the parameter C<false> then C<guestfs_launch> does "
34698 "not create a recovery process. The purpose of the recovery process is to "
34699 "stop runaway qemu processes in the case where the main program aborts "
34704 #: ../src/guestfs-actions.pod:7061
34706 "This only has any effect if called before C<guestfs_launch>, and the default "
34711 #: ../src/guestfs-actions.pod:7074
34712 msgid "guestfs_set_selinux"
34716 #: ../src/guestfs-actions.pod:7076
34720 " guestfs_set_selinux (guestfs_h *g,\n"
34726 #: ../src/guestfs-actions.pod:7093
34727 msgid "guestfs_set_smp"
34731 #: ../src/guestfs-actions.pod:7095
34735 " guestfs_set_smp (guestfs_h *g,\n"
34741 #: ../src/guestfs-actions.pod:7103
34742 msgid "This function must be called before C<guestfs_launch>."
34746 #: ../src/guestfs-actions.pod:7109
34747 msgid "guestfs_set_trace"
34751 #: ../src/guestfs-actions.pod:7111
34755 " guestfs_set_trace (guestfs_h *g,\n"
34761 #: ../src/guestfs-actions.pod:7125
34763 "Trace messages are normally sent to C<stderr>, unless you register a "
34764 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
34768 #: ../src/guestfs-actions.pod:7133
34769 msgid "guestfs_set_verbose"
34773 #: ../src/guestfs-actions.pod:7135
34777 " guestfs_set_verbose (guestfs_h *g,\n"
34783 #: ../src/guestfs-actions.pod:7144
34785 "Verbose messages are normally sent to C<stderr>, unless you register a "
34786 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
34790 #: ../src/guestfs-actions.pod:7152
34791 msgid "guestfs_setcon"
34795 #: ../src/guestfs-actions.pod:7154
34799 " guestfs_setcon (guestfs_h *g,\n"
34800 " const char *context);\n"
34805 #: ../src/guestfs-actions.pod:7167
34806 msgid "guestfs_setxattr"
34810 #: ../src/guestfs-actions.pod:7169
34814 " guestfs_setxattr (guestfs_h *g,\n"
34815 " const char *xattr,\n"
34816 " const char *val,\n"
34818 " const char *path);\n"
34823 #: ../src/guestfs-actions.pod:7180
34824 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
34828 #: ../src/guestfs-actions.pod:7186
34829 msgid "guestfs_sfdisk"
34833 #: ../src/guestfs-actions.pod:7188
34837 " guestfs_sfdisk (guestfs_h *g,\n"
34838 " const char *device,\n"
34842 " char *const *lines);\n"
34847 #: ../src/guestfs-actions.pod:7196 ../src/guestfs-actions.pod:7237
34848 #: ../src/guestfs-actions.pod:7268
34850 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
34855 #: ../src/guestfs-actions.pod:7223
34857 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
34861 #: ../src/guestfs-actions.pod:7230
34862 msgid "guestfs_sfdiskM"
34866 #: ../src/guestfs-actions.pod:7232
34870 " guestfs_sfdiskM (guestfs_h *g,\n"
34871 " const char *device,\n"
34872 " char *const *lines);\n"
34877 #: ../src/guestfs-actions.pod:7244
34879 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
34880 "partition sizes are specified in megabytes only (rounded to the nearest "
34881 "cylinder) and you don't need to specify the cyls, heads and sectors "
34882 "parameters which were rarely if ever used anyway."
34886 #: ../src/guestfs-actions.pod:7250
34888 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
34889 "C<guestfs_part_disk>"
34893 #: ../src/guestfs-actions.pod:7257
34894 msgid "guestfs_sfdisk_N"
34898 #: ../src/guestfs-actions.pod:7259
34902 " guestfs_sfdisk_N (guestfs_h *g,\n"
34903 " const char *device,\n"
34908 " const char *line);\n"
34913 #: ../src/guestfs-actions.pod:7278
34915 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
34916 "for the cyls/heads/sectors parameters."
34920 #: ../src/guestfs-actions.pod:7281
34921 msgid "See also: C<guestfs_part_add>"
34925 #: ../src/guestfs-actions.pod:7287
34926 msgid "guestfs_sfdisk_disk_geometry"
34930 #: ../src/guestfs-actions.pod:7289
34934 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
34935 " const char *device);\n"
34940 #: ../src/guestfs-actions.pod:7293
34942 "This displays the disk geometry of C<device> read from the partition table. "
34943 "Especially in the case where the underlying block device has been resized, "
34944 "this can be different from the kernel's idea of the geometry (see "
34945 "C<guestfs_sfdisk_kernel_geometry>)."
34949 #: ../src/guestfs-actions.pod:7306
34950 msgid "guestfs_sfdisk_kernel_geometry"
34954 #: ../src/guestfs-actions.pod:7308
34958 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
34959 " const char *device);\n"
34964 #: ../src/guestfs-actions.pod:7322
34965 msgid "guestfs_sfdisk_l"
34969 #: ../src/guestfs-actions.pod:7324
34973 " guestfs_sfdisk_l (guestfs_h *g,\n"
34974 " const char *device);\n"
34979 #: ../src/guestfs-actions.pod:7328
34981 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
34986 #: ../src/guestfs-actions.pod:7339
34987 msgid "See also: C<guestfs_part_list>"
34991 #: ../src/guestfs-actions.pod:7346
34996 #: ../src/guestfs-actions.pod:7348
35000 " guestfs_sh (guestfs_h *g,\n"
35001 " const char *command);\n"
35006 #: ../src/guestfs-actions.pod:7355
35007 msgid "This is like C<guestfs_command>, but passes the command to:"
35011 #: ../src/guestfs-actions.pod:7363
35012 msgid "All the provisos about C<guestfs_command> apply to this call."
35016 #: ../src/guestfs-actions.pod:7370
35017 msgid "guestfs_sh_lines"
35021 #: ../src/guestfs-actions.pod:7372
35025 " guestfs_sh_lines (guestfs_h *g,\n"
35026 " const char *command);\n"
35031 #: ../src/guestfs-actions.pod:7376
35033 "This is the same as C<guestfs_sh>, but splits the result into a list of "
35038 #: ../src/guestfs-actions.pod:7379
35039 msgid "See also: C<guestfs_command_lines>"
35043 #: ../src/guestfs-actions.pod:7387
35044 msgid "guestfs_sleep"
35048 #: ../src/guestfs-actions.pod:7389
35052 " guestfs_sleep (guestfs_h *g,\n"
35058 #: ../src/guestfs-actions.pod:7397
35059 msgid "(Added in 1.0.41)"
35060 msgstr "(Додано у 1.0.41)"
35063 #: ../src/guestfs-actions.pod:7399 ../src/guestfs-structs.pod:109
35064 msgid "guestfs_stat"
35068 #: ../src/guestfs-actions.pod:7401
35071 " struct guestfs_stat *\n"
35072 " guestfs_stat (guestfs_h *g,\n"
35073 " const char *path);\n"
35078 #: ../src/guestfs-actions.pod:7415 ../src/guestfs-structs.pod:135
35079 msgid "guestfs_statvfs"
35083 #: ../src/guestfs-actions.pod:7417
35086 " struct guestfs_statvfs *\n"
35087 " guestfs_statvfs (guestfs_h *g,\n"
35088 " const char *path);\n"
35093 #: ../src/guestfs-actions.pod:7427
35095 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
35096 "error. I<The caller must call C<guestfs_free_statvfs> after use>."
35100 #: ../src/guestfs-actions.pod:7433
35101 msgid "guestfs_strings"
35105 #: ../src/guestfs-actions.pod:7435
35109 " guestfs_strings (guestfs_h *g,\n"
35110 " const char *path);\n"
35115 #: ../src/guestfs-actions.pod:7451
35116 msgid "guestfs_strings_e"
35120 #: ../src/guestfs-actions.pod:7453
35124 " guestfs_strings_e (guestfs_h *g,\n"
35125 " const char *encoding,\n"
35126 " const char *path);\n"
35131 #: ../src/guestfs-actions.pod:7458
35133 "This is like the C<guestfs_strings> command, but allows you to specify the "
35134 "encoding of strings that are looked for in the source file C<path>."
35138 #: ../src/guestfs-actions.pod:7468
35140 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
35141 "ISO-8859-X (this is what C<guestfs_strings> uses)."
35145 #: ../src/guestfs-actions.pod:7506
35146 msgid "guestfs_swapoff_device"
35150 #: ../src/guestfs-actions.pod:7508
35154 " guestfs_swapoff_device (guestfs_h *g,\n"
35155 " const char *device);\n"
35160 #: ../src/guestfs-actions.pod:7512
35162 "This command disables the libguestfs appliance swap device or partition "
35163 "named C<device>. See C<guestfs_swapon_device>."
35167 #: ../src/guestfs-actions.pod:7520
35168 msgid "guestfs_swapoff_file"
35172 #: ../src/guestfs-actions.pod:7522
35176 " guestfs_swapoff_file (guestfs_h *g,\n"
35177 " const char *file);\n"
35182 #: ../src/guestfs-actions.pod:7532
35183 msgid "guestfs_swapoff_label"
35187 #: ../src/guestfs-actions.pod:7534
35191 " guestfs_swapoff_label (guestfs_h *g,\n"
35192 " const char *label);\n"
35197 #: ../src/guestfs-actions.pod:7545
35198 msgid "guestfs_swapoff_uuid"
35202 #: ../src/guestfs-actions.pod:7547
35206 " guestfs_swapoff_uuid (guestfs_h *g,\n"
35207 " const char *uuid);\n"
35212 #: ../src/guestfs-actions.pod:7558
35213 msgid "guestfs_swapon_device"
35217 #: ../src/guestfs-actions.pod:7560
35221 " guestfs_swapon_device (guestfs_h *g,\n"
35222 " const char *device);\n"
35227 #: ../src/guestfs-actions.pod:7564
35229 "This command enables the libguestfs appliance to use the swap device or "
35230 "partition named C<device>. The increased memory is made available for all "
35231 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
35235 #: ../src/guestfs-actions.pod:7580
35236 msgid "guestfs_swapon_file"
35240 #: ../src/guestfs-actions.pod:7582
35244 " guestfs_swapon_file (guestfs_h *g,\n"
35245 " const char *file);\n"
35250 #: ../src/guestfs-actions.pod:7586
35252 "This command enables swap to a file. See C<guestfs_swapon_device> for other "
35257 #: ../src/guestfs-actions.pod:7593
35258 msgid "guestfs_swapon_label"
35262 #: ../src/guestfs-actions.pod:7595
35266 " guestfs_swapon_label (guestfs_h *g,\n"
35267 " const char *label);\n"
35272 #: ../src/guestfs-actions.pod:7599
35274 "This command enables swap to a labeled swap partition. See "
35275 "C<guestfs_swapon_device> for other notes."
35279 #: ../src/guestfs-actions.pod:7606
35280 msgid "guestfs_swapon_uuid"
35284 #: ../src/guestfs-actions.pod:7608
35288 " guestfs_swapon_uuid (guestfs_h *g,\n"
35289 " const char *uuid);\n"
35294 #: ../src/guestfs-actions.pod:7612
35296 "This command enables swap to a swap partition with the given UUID. See "
35297 "C<guestfs_swapon_device> for other notes."
35301 #: ../src/guestfs-actions.pod:7619
35302 msgid "guestfs_sync"
35306 #: ../src/guestfs-actions.pod:7621
35310 " guestfs_sync (guestfs_h *g);\n"
35315 #: ../src/guestfs-actions.pod:7634
35316 msgid "guestfs_tail"
35320 #: ../src/guestfs-actions.pod:7636
35324 " guestfs_tail (guestfs_h *g,\n"
35325 " const char *path);\n"
35330 #: ../src/guestfs-actions.pod:7652
35331 msgid "guestfs_tail_n"
35335 #: ../src/guestfs-actions.pod:7654
35339 " guestfs_tail_n (guestfs_h *g,\n"
35341 " const char *path);\n"
35346 #: ../src/guestfs-actions.pod:7676
35347 msgid "guestfs_tar_in"
35351 #: ../src/guestfs-actions.pod:7678
35355 " guestfs_tar_in (guestfs_h *g,\n"
35356 " const char *tarfile,\n"
35357 " const char *directory);\n"
35362 #: ../src/guestfs-actions.pod:7686
35364 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
35368 #: ../src/guestfs-actions.pod:7691 ../src/guestfs-actions.pod:7708
35369 #: ../src/guestfs-actions.pod:7724 ../src/guestfs-actions.pod:7740
35370 msgid "(Added in 1.0.3)"
35371 msgstr "(Додано у 1.0.3)"
35374 #: ../src/guestfs-actions.pod:7693
35375 msgid "guestfs_tar_out"
35379 #: ../src/guestfs-actions.pod:7695
35383 " guestfs_tar_out (guestfs_h *g,\n"
35384 " const char *directory,\n"
35385 " const char *tarfile);\n"
35390 #: ../src/guestfs-actions.pod:7703
35392 "To download a compressed tarball, use C<guestfs_tgz_out> or "
35393 "C<guestfs_txz_out>."
35397 #: ../src/guestfs-actions.pod:7710
35398 msgid "guestfs_tgz_in"
35402 #: ../src/guestfs-actions.pod:7712
35406 " guestfs_tgz_in (guestfs_h *g,\n"
35407 " const char *tarball,\n"
35408 " const char *directory);\n"
35413 #: ../src/guestfs-actions.pod:7720
35414 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
35418 #: ../src/guestfs-actions.pod:7726
35419 msgid "guestfs_tgz_out"
35423 #: ../src/guestfs-actions.pod:7728
35427 " guestfs_tgz_out (guestfs_h *g,\n"
35428 " const char *directory,\n"
35429 " const char *tarball);\n"
35434 #: ../src/guestfs-actions.pod:7736
35435 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
35439 #: ../src/guestfs-actions.pod:7742
35440 msgid "guestfs_touch"
35444 #: ../src/guestfs-actions.pod:7744
35448 " guestfs_touch (guestfs_h *g,\n"
35449 " const char *path);\n"
35454 #: ../src/guestfs-actions.pod:7759
35455 msgid "guestfs_truncate"
35459 #: ../src/guestfs-actions.pod:7761
35463 " guestfs_truncate (guestfs_h *g,\n"
35464 " const char *path);\n"
35469 #: ../src/guestfs-actions.pod:7772
35470 msgid "guestfs_truncate_size"
35474 #: ../src/guestfs-actions.pod:7774
35478 " guestfs_truncate_size (guestfs_h *g,\n"
35479 " const char *path,\n"
35480 " int64_t size);\n"
35485 #: ../src/guestfs-actions.pod:7782
35487 "If the current file size is less than C<size> then the file is extended to "
35488 "the required size with zero bytes. This creates a sparse file (ie. disk "
35489 "blocks are not allocated for the file until you write to it). To create a "
35490 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
35494 #: ../src/guestfs-actions.pod:7792
35496 #| msgid "guestfs_mke2fs_J"
35497 msgid "guestfs_tune2fs"
35498 msgstr "guestfs_mke2fs_J"
35501 #: ../src/guestfs-actions.pod:7794
35505 #| " guestfs_lvresize (guestfs_h *g,\n"
35506 #| " const char *device,\n"
35507 #| " int mbytes);\n"
35511 " guestfs_tune2fs (guestfs_h *g,\n"
35512 " const char *device,\n"
35517 " guestfs_lvresize (guestfs_h *g,\n"
35518 " const char *device,\n"
35523 #: ../src/guestfs-actions.pod:7804
35526 " GUESTFS_TUNE2FS_FORCE, int force,\n"
35527 " GUESTFS_TUNE2FS_MAXMOUNTCOUNT, int maxmountcount,\n"
35528 " GUESTFS_TUNE2FS_MOUNTCOUNT, int mountcount,\n"
35529 " GUESTFS_TUNE2FS_ERRORBEHAVIOR, const char *errorbehavior,\n"
35530 " GUESTFS_TUNE2FS_GROUP, int64_t group,\n"
35531 " GUESTFS_TUNE2FS_INTERVALBETWEENCHECKS, int intervalbetweenchecks,\n"
35532 " GUESTFS_TUNE2FS_RESERVEDBLOCKSPERCENTAGE, int reservedblockspercentage,\n"
35533 " GUESTFS_TUNE2FS_LASTMOUNTEDDIRECTORY, const char *lastmounteddirectory,\n"
35534 " GUESTFS_TUNE2FS_RESERVEDBLOCKSCOUNT, int64_t reservedblockscount,\n"
35535 " GUESTFS_TUNE2FS_USER, int64_t user,\n"
35540 #: ../src/guestfs-actions.pod:7884
35542 "To get the current values of filesystem parameters, see "
35543 "C<guestfs_tune2fs_l>. For precise details of how tune2fs works, see the "
35544 "L<tune2fs(8)> man page."
35548 #: ../src/guestfs-actions.pod:7892
35550 #| msgid "guestfs_mke2fs_J"
35551 msgid "guestfs_tune2fs_va"
35552 msgstr "guestfs_mke2fs_J"
35555 #: ../src/guestfs-actions.pod:7894
35559 #| " guestfs_lvresize (guestfs_h *g,\n"
35560 #| " const char *device,\n"
35561 #| " int mbytes);\n"
35565 " guestfs_tune2fs_va (guestfs_h *g,\n"
35566 " const char *device,\n"
35567 " va_list args);\n"
35571 " guestfs_lvresize (guestfs_h *g,\n"
35572 " const char *device,\n"
35577 #: ../src/guestfs-actions.pod:7899
35578 msgid "This is the \"va_list variant\" of L</guestfs_tune2fs>."
35582 #: ../src/guestfs-actions.pod:7903
35584 #| msgid "guestfs_mke2fs_J"
35585 msgid "guestfs_tune2fs_argv"
35586 msgstr "guestfs_mke2fs_J"
35589 #: ../src/guestfs-actions.pod:7905
35593 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
35594 #| " const char *fstype,\n"
35595 #| " const char *device,\n"
35596 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
35600 " guestfs_tune2fs_argv (guestfs_h *g,\n"
35601 " const char *device,\n"
35602 " const struct guestfs_tune2fs_argv *optargs);\n"
35606 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
35607 " const char *fstype,\n"
35608 " const char *device,\n"
35609 " const struct guestfs_mkfs_opts_argv *optargs);\n"
35613 #: ../src/guestfs-actions.pod:7910
35614 msgid "This is the \"argv variant\" of L</guestfs_tune2fs>."
35618 #: ../src/guestfs-actions.pod:7914
35619 msgid "guestfs_tune2fs_l"
35623 #: ../src/guestfs-actions.pod:7916
35627 " guestfs_tune2fs_l (guestfs_h *g,\n"
35628 " const char *device);\n"
35633 #: ../src/guestfs-actions.pod:7936
35634 msgid "guestfs_txz_in"
35638 #: ../src/guestfs-actions.pod:7938
35642 " guestfs_txz_in (guestfs_h *g,\n"
35643 " const char *tarball,\n"
35644 " const char *directory);\n"
35649 #: ../src/guestfs-actions.pod:7950
35650 msgid "guestfs_txz_out"
35654 #: ../src/guestfs-actions.pod:7952
35658 " guestfs_txz_out (guestfs_h *g,\n"
35659 " const char *directory,\n"
35660 " const char *tarball);\n"
35665 #: ../src/guestfs-actions.pod:7964
35666 msgid "guestfs_umask"
35670 #: ../src/guestfs-actions.pod:7966
35674 " guestfs_umask (guestfs_h *g,\n"
35680 #: ../src/guestfs-actions.pod:7982
35682 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
35683 "C<guestfs_mkdir>."
35687 #: ../src/guestfs-actions.pod:7991
35688 msgid "guestfs_umount"
35692 #: ../src/guestfs-actions.pod:7993
35696 " guestfs_umount (guestfs_h *g,\n"
35697 " const char *pathordevice);\n"
35702 #: ../src/guestfs-actions.pod:8005
35703 msgid "guestfs_umount_all"
35707 #: ../src/guestfs-actions.pod:8007
35711 " guestfs_umount_all (guestfs_h *g);\n"
35716 #: ../src/guestfs-actions.pod:8018
35717 msgid "guestfs_upload"
35721 #: ../src/guestfs-actions.pod:8020
35725 " guestfs_upload (guestfs_h *g,\n"
35726 " const char *filename,\n"
35727 " const char *remotefilename);\n"
35732 #: ../src/guestfs-actions.pod:8030
35733 msgid "See also C<guestfs_download>."
35737 #: ../src/guestfs-actions.pod:8041
35738 msgid "guestfs_upload_offset"
35742 #: ../src/guestfs-actions.pod:8043
35746 " guestfs_upload_offset (guestfs_h *g,\n"
35747 " const char *filename,\n"
35748 " const char *remotefilename,\n"
35749 " int64_t offset);\n"
35754 #: ../src/guestfs-actions.pod:8059
35756 "Note that there is no limit on the amount of data that can be uploaded with "
35757 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
35758 "full amount unless an error occurs."
35762 #: ../src/guestfs-actions.pod:8064
35763 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
35767 #: ../src/guestfs-actions.pod:8075
35768 msgid "guestfs_utimens"
35772 #: ../src/guestfs-actions.pod:8077
35776 " guestfs_utimens (guestfs_h *g,\n"
35777 " const char *path,\n"
35778 " int64_t atsecs,\n"
35779 " int64_t atnsecs,\n"
35780 " int64_t mtsecs,\n"
35781 " int64_t mtnsecs);\n"
35786 #: ../src/guestfs-actions.pod:8106 ../src/guestfs-structs.pod:175
35787 msgid "guestfs_version"
35791 #: ../src/guestfs-actions.pod:8108
35794 " struct guestfs_version *\n"
35795 " guestfs_version (guestfs_h *g);\n"
35800 #: ../src/guestfs-actions.pod:8136
35802 "I<Note:> Don't use this call to test for availability of features. In "
35803 "enterprise distributions we backport features from later versions into "
35804 "earlier versions, making this an unreliable way to test for features. Use "
35805 "C<guestfs_available> instead."
35809 #: ../src/guestfs-actions.pod:8142
35811 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
35812 "error. I<The caller must call C<guestfs_free_version> after use>."
35816 #: ../src/guestfs-actions.pod:8146
35817 msgid "(Added in 1.0.58)"
35818 msgstr "(Додано у 1.0.58)"
35821 #: ../src/guestfs-actions.pod:8148
35822 msgid "guestfs_vfs_label"
35826 #: ../src/guestfs-actions.pod:8150
35830 " guestfs_vfs_label (guestfs_h *g,\n"
35831 " const char *device);\n"
35836 #: ../src/guestfs-actions.pod:8159
35837 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
35841 #: ../src/guestfs-actions.pod:8164 ../src/guestfs-actions.pod:8201
35842 msgid "(Added in 1.3.18)"
35843 msgstr "(Додано у 1.3.18)"
35846 #: ../src/guestfs-actions.pod:8166
35847 msgid "guestfs_vfs_type"
35851 #: ../src/guestfs-actions.pod:8168
35855 " guestfs_vfs_type (guestfs_h *g,\n"
35856 " const char *device);\n"
35861 #: ../src/guestfs-actions.pod:8185
35862 msgid "guestfs_vfs_uuid"
35866 #: ../src/guestfs-actions.pod:8187
35870 " guestfs_vfs_uuid (guestfs_h *g,\n"
35871 " const char *device);\n"
35876 #: ../src/guestfs-actions.pod:8196
35877 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
35881 #: ../src/guestfs-actions.pod:8203
35882 msgid "guestfs_vg_activate"
35886 #: ../src/guestfs-actions.pod:8205
35890 " guestfs_vg_activate (guestfs_h *g,\n"
35892 " char *const *volgroups);\n"
35897 #: ../src/guestfs-actions.pod:8222
35898 msgid "guestfs_vg_activate_all"
35902 #: ../src/guestfs-actions.pod:8224
35906 " guestfs_vg_activate_all (guestfs_h *g,\n"
35907 " int activate);\n"
35912 #: ../src/guestfs-actions.pod:8237
35913 msgid "guestfs_vgcreate"
35917 #: ../src/guestfs-actions.pod:8239
35921 " guestfs_vgcreate (guestfs_h *g,\n"
35922 " const char *volgroup,\n"
35923 " char *const *physvols);\n"
35928 #: ../src/guestfs-actions.pod:8251
35929 msgid "guestfs_vglvuuids"
35933 #: ../src/guestfs-actions.pod:8253
35937 " guestfs_vglvuuids (guestfs_h *g,\n"
35938 " const char *vgname);\n"
35943 #: ../src/guestfs-actions.pod:8260
35945 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
35946 "associate logical volumes and volume groups."
35950 #: ../src/guestfs-actions.pod:8263
35951 msgid "See also C<guestfs_vgpvuuids>."
35955 #: ../src/guestfs-actions.pod:8271
35956 msgid "guestfs_vgpvuuids"
35960 #: ../src/guestfs-actions.pod:8273
35964 " guestfs_vgpvuuids (guestfs_h *g,\n"
35965 " const char *vgname);\n"
35970 #: ../src/guestfs-actions.pod:8280
35972 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
35973 "associate physical volumes and volume groups."
35977 #: ../src/guestfs-actions.pod:8283
35978 msgid "See also C<guestfs_vglvuuids>."
35982 #: ../src/guestfs-actions.pod:8291
35983 msgid "guestfs_vgremove"
35987 #: ../src/guestfs-actions.pod:8293
35991 " guestfs_vgremove (guestfs_h *g,\n"
35992 " const char *vgname);\n"
35997 #: ../src/guestfs-actions.pod:8306
35998 msgid "guestfs_vgrename"
36002 #: ../src/guestfs-actions.pod:8308
36006 " guestfs_vgrename (guestfs_h *g,\n"
36007 " const char *volgroup,\n"
36008 " const char *newvolgroup);\n"
36013 #: ../src/guestfs-actions.pod:8319
36014 msgid "guestfs_vgs"
36018 #: ../src/guestfs-actions.pod:8321
36022 " guestfs_vgs (guestfs_h *g);\n"
36027 #: ../src/guestfs-actions.pod:8330
36028 msgid "See also C<guestfs_vgs_full>."
36032 #: ../src/guestfs-actions.pod:8338
36033 msgid "guestfs_vgs_full"
36037 #: ../src/guestfs-actions.pod:8340
36040 " struct guestfs_lvm_vg_list *\n"
36041 " guestfs_vgs_full (guestfs_h *g);\n"
36046 #: ../src/guestfs-actions.pod:8346
36048 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
36049 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
36053 #: ../src/guestfs-actions.pod:8352
36054 msgid "guestfs_vgscan"
36058 #: ../src/guestfs-actions.pod:8354
36062 " guestfs_vgscan (guestfs_h *g);\n"
36067 #: ../src/guestfs-actions.pod:8364
36068 msgid "guestfs_vguuid"
36072 #: ../src/guestfs-actions.pod:8366
36076 " guestfs_vguuid (guestfs_h *g,\n"
36077 " const char *vgname);\n"
36082 #: ../src/guestfs-actions.pod:8377
36083 msgid "guestfs_wait_ready"
36087 #: ../src/guestfs-actions.pod:8379
36091 " guestfs_wait_ready (guestfs_h *g);\n"
36096 #: ../src/guestfs-actions.pod:8382
36098 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
36103 #: ../src/guestfs-actions.pod:8389
36104 msgid "This function is a no op."
36108 #: ../src/guestfs-actions.pod:8391
36110 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
36111 "calling C<guestfs_launch> to wait for the launch to complete. However this "
36112 "is no longer necessary because C<guestfs_launch> now does the waiting."
36116 #: ../src/guestfs-actions.pod:8396
36118 "If you see any calls to this function in code then you can just remove them, "
36119 "unless you want to retain compatibility with older versions of the API."
36123 #: ../src/guestfs-actions.pod:8404
36124 msgid "guestfs_wc_c"
36128 #: ../src/guestfs-actions.pod:8406
36132 " guestfs_wc_c (guestfs_h *g,\n"
36133 " const char *path);\n"
36138 #: ../src/guestfs-actions.pod:8417
36139 msgid "guestfs_wc_l"
36143 #: ../src/guestfs-actions.pod:8419
36147 " guestfs_wc_l (guestfs_h *g,\n"
36148 " const char *path);\n"
36153 #: ../src/guestfs-actions.pod:8430
36154 msgid "guestfs_wc_w"
36158 #: ../src/guestfs-actions.pod:8432
36162 " guestfs_wc_w (guestfs_h *g,\n"
36163 " const char *path);\n"
36168 #: ../src/guestfs-actions.pod:8443
36169 msgid "guestfs_write"
36173 #: ../src/guestfs-actions.pod:8445
36177 " guestfs_write (guestfs_h *g,\n"
36178 " const char *path,\n"
36179 " const char *content,\n"
36180 " size_t content_size);\n"
36185 #: ../src/guestfs-actions.pod:8454
36186 msgid "See also C<guestfs_write_append>."
36190 #: ../src/guestfs-actions.pod:8463
36191 msgid "guestfs_write_append"
36195 #: ../src/guestfs-actions.pod:8465
36199 " guestfs_write_append (guestfs_h *g,\n"
36200 " const char *path,\n"
36201 " const char *content,\n"
36202 " size_t content_size);\n"
36207 #: ../src/guestfs-actions.pod:8474
36208 msgid "See also C<guestfs_write>."
36212 #: ../src/guestfs-actions.pod:8483
36213 msgid "guestfs_write_file"
36214 msgstr "guestfs_write_file"
36217 #: ../src/guestfs-actions.pod:8485
36221 " guestfs_write_file (guestfs_h *g,\n"
36222 " const char *path,\n"
36223 " const char *content,\n"
36228 " guestfs_write_file (guestfs_h *g,\n"
36229 " const char *path,\n"
36230 " const char *content,\n"
36235 #: ../src/guestfs-actions.pod:8491
36237 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
36242 #: ../src/guestfs-actions.pod:8516
36243 msgid "guestfs_zegrep"
36244 msgstr "guestfs_zegrep"
36247 #: ../src/guestfs-actions.pod:8518
36251 " guestfs_zegrep (guestfs_h *g,\n"
36252 " const char *regex,\n"
36253 " const char *path);\n"
36257 " guestfs_zegrep (guestfs_h *g,\n"
36258 " const char *regex,\n"
36259 " const char *path);\n"
36263 #: ../src/guestfs-actions.pod:8535
36264 msgid "guestfs_zegrepi"
36265 msgstr "guestfs_zegrepi"
36268 #: ../src/guestfs-actions.pod:8537
36272 " guestfs_zegrepi (guestfs_h *g,\n"
36273 " const char *regex,\n"
36274 " const char *path);\n"
36278 " guestfs_zegrepi (guestfs_h *g,\n"
36279 " const char *regex,\n"
36280 " const char *path);\n"
36284 #: ../src/guestfs-actions.pod:8554
36285 msgid "guestfs_zero"
36286 msgstr "guestfs_zero"
36289 #: ../src/guestfs-actions.pod:8556
36293 " guestfs_zero (guestfs_h *g,\n"
36294 " const char *device);\n"
36298 " guestfs_zero (guestfs_h *g,\n"
36299 " const char *device);\n"
36303 #: ../src/guestfs-actions.pod:8570
36305 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
36306 "C<guestfs_is_zero_device>"
36310 #: ../src/guestfs-actions.pod:8582
36311 msgid "guestfs_zero_device"
36312 msgstr "guestfs_zero_device"
36315 #: ../src/guestfs-actions.pod:8584
36319 " guestfs_zero_device (guestfs_h *g,\n"
36320 " const char *device);\n"
36324 " guestfs_zero_device (guestfs_h *g,\n"
36325 " const char *device);\n"
36329 #: ../src/guestfs-actions.pod:8588
36331 "This command writes zeroes over the entire C<device>. Compare with "
36332 "C<guestfs_zero> which just zeroes the first few blocks of a device."
36336 #: ../src/guestfs-actions.pod:8603
36337 msgid "(Added in 1.3.1)"
36338 msgstr "(Додано у 1.3.1)"
36341 #: ../src/guestfs-actions.pod:8605
36342 msgid "guestfs_zerofree"
36343 msgstr "guestfs_zerofree"
36346 #: ../src/guestfs-actions.pod:8607
36350 " guestfs_zerofree (guestfs_h *g,\n"
36351 " const char *device);\n"
36355 " guestfs_zerofree (guestfs_h *g,\n"
36356 " const char *device);\n"
36360 #: ../src/guestfs-actions.pod:8626
36361 msgid "guestfs_zfgrep"
36362 msgstr "guestfs_zfgrep"
36365 #: ../src/guestfs-actions.pod:8628
36369 " guestfs_zfgrep (guestfs_h *g,\n"
36370 " const char *pattern,\n"
36371 " const char *path);\n"
36375 " guestfs_zfgrep (guestfs_h *g,\n"
36376 " const char *pattern,\n"
36377 " const char *path);\n"
36381 #: ../src/guestfs-actions.pod:8645
36382 msgid "guestfs_zfgrepi"
36383 msgstr "guestfs_zfgrepi"
36386 #: ../src/guestfs-actions.pod:8647
36390 " guestfs_zfgrepi (guestfs_h *g,\n"
36391 " const char *pattern,\n"
36392 " const char *path);\n"
36396 " guestfs_zfgrepi (guestfs_h *g,\n"
36397 " const char *pattern,\n"
36398 " const char *path);\n"
36402 #: ../src/guestfs-actions.pod:8664
36403 msgid "guestfs_zfile"
36404 msgstr "guestfs_zfile"
36407 #: ../src/guestfs-actions.pod:8666
36411 " guestfs_zfile (guestfs_h *g,\n"
36412 " const char *meth,\n"
36413 " const char *path);\n"
36417 " guestfs_zfile (guestfs_h *g,\n"
36418 " const char *meth,\n"
36419 " const char *path);\n"
36423 #: ../src/guestfs-actions.pod:8671
36425 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
36430 #: ../src/guestfs-actions.pod:8683
36432 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
36437 #: ../src/guestfs-actions.pod:8691
36438 msgid "guestfs_zgrep"
36439 msgstr "guestfs_zgrep"
36442 #: ../src/guestfs-actions.pod:8693
36446 " guestfs_zgrep (guestfs_h *g,\n"
36447 " const char *regex,\n"
36448 " const char *path);\n"
36452 " guestfs_zgrep (guestfs_h *g,\n"
36453 " const char *regex,\n"
36454 " const char *path);\n"
36458 #: ../src/guestfs-actions.pod:8710
36459 msgid "guestfs_zgrepi"
36460 msgstr "guestfs_zgrepi"
36463 #: ../src/guestfs-actions.pod:8712
36467 " guestfs_zgrepi (guestfs_h *g,\n"
36468 " const char *regex,\n"
36469 " const char *path);\n"
36473 " guestfs_zgrepi (guestfs_h *g,\n"
36474 " const char *regex,\n"
36475 " const char *path);\n"
36479 #: ../src/guestfs-availability.pod:3
36484 #: ../src/guestfs-availability.pod:5
36486 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
36487 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
36488 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
36489 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
36490 "L</guestfs_aug_save> L</guestfs_aug_set>"
36494 #: ../src/guestfs-availability.pod:21
36499 #: ../src/guestfs-availability.pod:23
36500 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
36504 #: ../src/guestfs-availability.pod:26
36509 #: ../src/guestfs-availability.pod:28
36510 msgid "The following functions: L</guestfs_grub_install>"
36514 #: ../src/guestfs-availability.pod:31
36516 msgstr "B<inotify>"
36519 #: ../src/guestfs-availability.pod:33
36521 "The following functions: L</guestfs_inotify_add_watch> L</"
36522 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
36523 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
36527 #: ../src/guestfs-availability.pod:41
36528 msgid "B<linuxfsuuid>"
36529 msgstr "B<linuxfsuuid>"
36532 #: ../src/guestfs-availability.pod:43
36534 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
36535 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
36539 #: ../src/guestfs-availability.pod:50
36540 msgid "B<linuxmodules>"
36541 msgstr "B<linuxmodules>"
36544 #: ../src/guestfs-availability.pod:52
36545 msgid "The following functions: L</guestfs_modprobe>"
36549 #: ../src/guestfs-availability.pod:55
36550 msgid "B<linuxxattrs>"
36551 msgstr "B<linuxxattrs>"
36554 #: ../src/guestfs-availability.pod:57
36556 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
36557 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
36558 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
36559 "guestfs_setxattr>"
36563 #: ../src/guestfs-availability.pod:68
36568 #: ../src/guestfs-availability.pod:70
36570 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
36571 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
36572 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
36576 #: ../src/guestfs-availability.pod:79
36581 #: ../src/guestfs-availability.pod:81
36583 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
36584 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
36585 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
36586 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
36587 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
36588 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
36589 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
36593 #: ../src/guestfs-availability.pod:104
36598 #: ../src/guestfs-availability.pod:106
36600 "The following functions: L</guestfs_md_create> L</guestfs_md_detail> L</"
36605 #: ../src/guestfs-availability.pod:111
36610 #: ../src/guestfs-availability.pod:113
36612 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
36613 "guestfs_mknod_b> L</guestfs_mknod_c>"
36617 #: ../src/guestfs-availability.pod:119
36622 #: ../src/guestfs-availability.pod:121
36623 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
36627 #: ../src/guestfs-availability.pod:124
36628 msgid "B<ntfsprogs>"
36629 msgstr "B<ntfsprogs>"
36632 #: ../src/guestfs-availability.pod:126
36634 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
36635 "L</guestfs_ntfsresize_size>"
36639 #: ../src/guestfs-availability.pod:131
36640 msgid "B<realpath>"
36641 msgstr "B<realpath>"
36644 #: ../src/guestfs-availability.pod:133
36645 msgid "The following functions: L</guestfs_realpath>"
36649 #: ../src/guestfs-availability.pod:136
36654 #: ../src/guestfs-availability.pod:138
36656 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
36657 "guestfs_scrub_freespace>"
36661 #: ../src/guestfs-availability.pod:143
36663 msgstr "B<selinux>"
36666 #: ../src/guestfs-availability.pod:145
36667 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
36671 #: ../src/guestfs-availability.pod:149
36676 #: ../src/guestfs-availability.pod:151
36677 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
36681 #: ../src/guestfs-availability.pod:155
36682 msgid "B<zerofree>"
36683 msgstr "B<zerofree>"
36686 #: ../src/guestfs-availability.pod:157
36687 msgid "The following functions: L</guestfs_zerofree>"
36691 #: ../src/guestfs-structs.pod:1
36692 msgid "guestfs_int_bool"
36696 #: ../src/guestfs-structs.pod:3
36699 " struct guestfs_int_bool {\n"
36707 #: ../src/guestfs-structs.pod:8
36710 " struct guestfs_int_bool_list {\n"
36711 " uint32_t len; /* Number of elements in list. */\n"
36712 " struct guestfs_int_bool *val; /* Elements. */\n"
36718 #: ../src/guestfs-structs.pod:13
36721 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
36722 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
36727 #: ../src/guestfs-structs.pod:16
36728 msgid "guestfs_lvm_pv"
36732 #: ../src/guestfs-structs.pod:18
36735 " struct guestfs_lvm_pv {\n"
36736 " char *pv_name;\n"
36737 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
36738 " char pv_uuid[32];\n"
36740 " uint64_t pv_size;\n"
36741 " uint64_t dev_size;\n"
36742 " uint64_t pv_free;\n"
36743 " uint64_t pv_used;\n"
36744 " char *pv_attr;\n"
36745 " int64_t pv_pe_count;\n"
36746 " int64_t pv_pe_alloc_count;\n"
36747 " char *pv_tags;\n"
36748 " uint64_t pe_start;\n"
36749 " int64_t pv_mda_count;\n"
36750 " uint64_t pv_mda_free;\n"
36756 #: ../src/guestfs-structs.pod:36
36759 " struct guestfs_lvm_pv_list {\n"
36760 " uint32_t len; /* Number of elements in list. */\n"
36761 " struct guestfs_lvm_pv *val; /* Elements. */\n"
36767 #: ../src/guestfs-structs.pod:41
36770 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
36771 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
36776 #: ../src/guestfs-structs.pod:44
36777 msgid "guestfs_lvm_vg"
36781 #: ../src/guestfs-structs.pod:46
36784 " struct guestfs_lvm_vg {\n"
36785 " char *vg_name;\n"
36786 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
36787 " char vg_uuid[32];\n"
36789 " char *vg_attr;\n"
36790 " uint64_t vg_size;\n"
36791 " uint64_t vg_free;\n"
36792 " char *vg_sysid;\n"
36793 " uint64_t vg_extent_size;\n"
36794 " int64_t vg_extent_count;\n"
36795 " int64_t vg_free_count;\n"
36796 " int64_t max_lv;\n"
36797 " int64_t max_pv;\n"
36798 " int64_t pv_count;\n"
36799 " int64_t lv_count;\n"
36800 " int64_t snap_count;\n"
36801 " int64_t vg_seqno;\n"
36802 " char *vg_tags;\n"
36803 " int64_t vg_mda_count;\n"
36804 " uint64_t vg_mda_free;\n"
36810 #: ../src/guestfs-structs.pod:69
36813 " struct guestfs_lvm_vg_list {\n"
36814 " uint32_t len; /* Number of elements in list. */\n"
36815 " struct guestfs_lvm_vg *val; /* Elements. */\n"
36821 #: ../src/guestfs-structs.pod:74
36824 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
36825 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
36830 #: ../src/guestfs-structs.pod:77
36831 msgid "guestfs_lvm_lv"
36835 #: ../src/guestfs-structs.pod:79
36838 " struct guestfs_lvm_lv {\n"
36839 " char *lv_name;\n"
36840 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
36841 " char lv_uuid[32];\n"
36842 " char *lv_attr;\n"
36843 " int64_t lv_major;\n"
36844 " int64_t lv_minor;\n"
36845 " int64_t lv_kernel_major;\n"
36846 " int64_t lv_kernel_minor;\n"
36847 " uint64_t lv_size;\n"
36848 " int64_t seg_count;\n"
36850 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
36851 " float snap_percent;\n"
36852 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
36853 " float copy_percent;\n"
36854 " char *move_pv;\n"
36855 " char *lv_tags;\n"
36856 " char *mirror_log;\n"
36857 " char *modules;\n"
36863 #: ../src/guestfs-structs.pod:101
36866 " struct guestfs_lvm_lv_list {\n"
36867 " uint32_t len; /* Number of elements in list. */\n"
36868 " struct guestfs_lvm_lv *val; /* Elements. */\n"
36874 #: ../src/guestfs-structs.pod:106
36877 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
36878 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
36883 #: ../src/guestfs-structs.pod:111
36886 " struct guestfs_stat {\n"
36890 " int64_t nlink;\n"
36895 " int64_t blksize;\n"
36896 " int64_t blocks;\n"
36897 " int64_t atime;\n"
36898 " int64_t mtime;\n"
36899 " int64_t ctime;\n"
36905 #: ../src/guestfs-structs.pod:127
36908 " struct guestfs_stat_list {\n"
36909 " uint32_t len; /* Number of elements in list. */\n"
36910 " struct guestfs_stat *val; /* Elements. */\n"
36916 #: ../src/guestfs-structs.pod:132
36919 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
36920 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
36925 #: ../src/guestfs-structs.pod:137
36928 " struct guestfs_statvfs {\n"
36929 " int64_t bsize;\n"
36930 " int64_t frsize;\n"
36931 " int64_t blocks;\n"
36932 " int64_t bfree;\n"
36933 " int64_t bavail;\n"
36934 " int64_t files;\n"
36935 " int64_t ffree;\n"
36936 " int64_t favail;\n"
36939 " int64_t namemax;\n"
36945 #: ../src/guestfs-structs.pod:151
36948 " struct guestfs_statvfs_list {\n"
36949 " uint32_t len; /* Number of elements in list. */\n"
36950 " struct guestfs_statvfs *val; /* Elements. */\n"
36956 #: ../src/guestfs-structs.pod:156
36959 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
36960 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
36965 #: ../src/guestfs-structs.pod:159
36966 msgid "guestfs_dirent"
36970 #: ../src/guestfs-structs.pod:161
36973 " struct guestfs_dirent {\n"
36982 #: ../src/guestfs-structs.pod:167
36985 " struct guestfs_dirent_list {\n"
36986 " uint32_t len; /* Number of elements in list. */\n"
36987 " struct guestfs_dirent *val; /* Elements. */\n"
36993 #: ../src/guestfs-structs.pod:172
36996 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
36997 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
37002 #: ../src/guestfs-structs.pod:177
37005 " struct guestfs_version {\n"
37006 " int64_t major;\n"
37007 " int64_t minor;\n"
37008 " int64_t release;\n"
37015 #: ../src/guestfs-structs.pod:184
37018 " struct guestfs_version_list {\n"
37019 " uint32_t len; /* Number of elements in list. */\n"
37020 " struct guestfs_version *val; /* Elements. */\n"
37026 #: ../src/guestfs-structs.pod:189
37029 " void guestfs_free_version (struct guestfs_free_version *);\n"
37030 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
37035 #: ../src/guestfs-structs.pod:192
37036 msgid "guestfs_xattr"
37040 #: ../src/guestfs-structs.pod:194
37043 " struct guestfs_xattr {\n"
37044 " char *attrname;\n"
37045 " /* The next two fields describe a byte array. */\n"
37046 " uint32_t attrval_len;\n"
37047 " char *attrval;\n"
37053 #: ../src/guestfs-structs.pod:201
37056 " struct guestfs_xattr_list {\n"
37057 " uint32_t len; /* Number of elements in list. */\n"
37058 " struct guestfs_xattr *val; /* Elements. */\n"
37064 #: ../src/guestfs-structs.pod:206
37067 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
37068 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
37073 #: ../src/guestfs-structs.pod:209
37074 msgid "guestfs_inotify_event"
37078 #: ../src/guestfs-structs.pod:211
37081 " struct guestfs_inotify_event {\n"
37082 " int64_t in_wd;\n"
37083 " uint32_t in_mask;\n"
37084 " uint32_t in_cookie;\n"
37085 " char *in_name;\n"
37091 #: ../src/guestfs-structs.pod:218
37094 " struct guestfs_inotify_event_list {\n"
37095 " uint32_t len; /* Number of elements in list. */\n"
37096 " struct guestfs_inotify_event *val; /* Elements. */\n"
37102 #: ../src/guestfs-structs.pod:223
37105 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
37106 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
37111 #: ../src/guestfs-structs.pod:226
37112 msgid "guestfs_partition"
37116 #: ../src/guestfs-structs.pod:228
37119 " struct guestfs_partition {\n"
37120 " int32_t part_num;\n"
37121 " uint64_t part_start;\n"
37122 " uint64_t part_end;\n"
37123 " uint64_t part_size;\n"
37129 #: ../src/guestfs-structs.pod:235
37132 " struct guestfs_partition_list {\n"
37133 " uint32_t len; /* Number of elements in list. */\n"
37134 " struct guestfs_partition *val; /* Elements. */\n"
37140 #: ../src/guestfs-structs.pod:240
37143 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
37144 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
37149 #: ../src/guestfs-structs.pod:243
37150 msgid "guestfs_application"
37154 #: ../src/guestfs-structs.pod:245
37157 " struct guestfs_application {\n"
37158 " char *app_name;\n"
37159 " char *app_display_name;\n"
37160 " int32_t app_epoch;\n"
37161 " char *app_version;\n"
37162 " char *app_release;\n"
37163 " char *app_install_path;\n"
37164 " char *app_trans_path;\n"
37165 " char *app_publisher;\n"
37166 " char *app_url;\n"
37167 " char *app_source_package;\n"
37168 " char *app_summary;\n"
37169 " char *app_description;\n"
37175 #: ../src/guestfs-structs.pod:260
37178 " struct guestfs_application_list {\n"
37179 " uint32_t len; /* Number of elements in list. */\n"
37180 " struct guestfs_application *val; /* Elements. */\n"
37186 #: ../src/guestfs-structs.pod:265
37189 " void guestfs_free_application (struct guestfs_free_application *);\n"
37190 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
37195 #: ../src/guestfs.pod:5
37196 msgid "guestfs - Library for accessing and modifying virtual machine images"
37198 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
37202 #: ../src/guestfs.pod:11
37205 " guestfs_h *g = guestfs_create ();\n"
37206 " guestfs_add_drive (g, \"guest.img\");\n"
37207 " guestfs_launch (g);\n"
37208 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37209 " guestfs_touch (g, \"/hello\");\n"
37210 " guestfs_umount (g, \"/\");\n"
37211 " guestfs_close (g);\n"
37214 " guestfs_h *g = guestfs_create ();\n"
37215 " guestfs_add_drive (g, \"guest.img\");\n"
37216 " guestfs_launch (g);\n"
37217 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37218 " guestfs_touch (g, \"/hello\");\n"
37219 " guestfs_umount (g, \"/\");\n"
37220 " guestfs_close (g);\n"
37224 #: ../src/guestfs.pod:25
37226 "Libguestfs is a library for accessing and modifying guest disk images. "
37227 "Amongst the things this is good for: making batch configuration changes to "
37228 "guests, getting disk used/free statistics (see also: virt-df), migrating "
37229 "between virtualization systems (see also: virt-p2v), performing partial "
37230 "backups, performing partial guest clones, cloning guests and changing "
37231 "registry/UUID/hostname info, and much else besides."
37235 #: ../src/guestfs.pod:33
37237 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
37238 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
37239 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
37244 #: ../src/guestfs.pod:38
37246 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
37247 "what filesystem is in each LV, etc.). It can also run commands in the "
37248 "context of the guest. Also you can access filesystems over FUSE."
37252 #: ../src/guestfs.pod:43
37254 "Libguestfs is a library that can be linked with C and C++ management "
37255 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
37256 "PHP, Erlang, Haskell or C#). You can also use it from shell scripts or the "
37261 #: ../src/guestfs.pod:48
37263 "You don't need to be root to use libguestfs, although obviously you do need "
37264 "enough permissions to access the disk images."
37268 #: ../src/guestfs.pod:51
37270 "Libguestfs is a large API because it can do many things. For a gentle "
37271 "introduction, please read the L</API OVERVIEW> section next."
37275 #: ../src/guestfs.pod:54
37277 "There are also some example programs in the L<guestfs-examples(3)> manual "
37282 #: ../src/guestfs.pod:57
37283 msgid "API OVERVIEW"
37287 #: ../src/guestfs.pod:59
37289 "This section provides a gentler overview of the libguestfs API. We also try "
37290 "to group API calls together, where that may not be obvious from reading "
37291 "about the individual calls in the main section of this manual."
37295 #: ../src/guestfs.pod:64
37300 #: ../src/guestfs.pod:66
37302 "Before you can use libguestfs calls, you have to create a handle. Then you "
37303 "must add at least one disk image to the handle, followed by launching the "
37304 "handle, then performing whatever operations you want, and finally closing "
37305 "the handle. By convention we use the single letter C<g> for the name of the "
37306 "handle variable, although of course you can use any name you want."
37310 #: ../src/guestfs.pod:73
37311 msgid "The general structure of all libguestfs-using programs looks like this:"
37315 #: ../src/guestfs.pod:76
37318 " guestfs_h *g = guestfs_create ();\n"
37321 " guestfs_h *g = guestfs_create ();\n"
37325 #: ../src/guestfs.pod:78
37328 " /* Call guestfs_add_drive additional times if there are\n"
37329 " * multiple disk images.\n"
37331 " guestfs_add_drive (g, \"guest.img\");\n"
37336 #: ../src/guestfs.pod:83
37339 " /* Most manipulation calls won't work until you've launched\n"
37340 " * the handle 'g'. You have to do this _after_ adding drives\n"
37341 " * and _before_ other commands.\n"
37343 " guestfs_launch (g);\n"
37348 #: ../src/guestfs.pod:89
37351 " /* Now you can examine what partitions, LVs etc are available.\n"
37353 " char **partitions = guestfs_list_partitions (g);\n"
37354 " char **logvols = guestfs_lvs (g);\n"
37357 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
37359 " char **partitions = guestfs_list_partitions (g);\n"
37360 " char **logvols = guestfs_lvs (g);\n"
37364 #: ../src/guestfs.pod:94
37367 " /* To access a filesystem in the image, you must mount it.\n"
37369 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37372 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
37374 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37378 #: ../src/guestfs.pod:98
37381 " /* Now you can perform filesystem actions on the guest\n"
37384 " guestfs_touch (g, \"/hello\");\n"
37387 " /* Тепер ви можете виконувати дії з файловою системою на\n"
37388 " * образі диска операційної системи.\n"
37390 " guestfs_touch (g, \"/hello\");\n"
37394 #: ../src/guestfs.pod:103
37397 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
37398 " * it is done automatically when you close the handle. See\n"
37399 " * discussion of autosync in this page.\n"
37401 " guestfs_sync (g);\n"
37406 #: ../src/guestfs.pod:109
37409 " /* Close the handle 'g'. */\n"
37410 " guestfs_close (g);\n"
37413 " /* Закрити дескриптор 'g'. */\n"
37414 " guestfs_close (g);\n"
37418 #: ../src/guestfs.pod:112
37420 "The code above doesn't include any error checking. In real code you should "
37421 "check return values carefully for errors. In general all functions that "
37422 "return integers return C<-1> on error, and all functions that return "
37423 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
37424 "how to handle errors, and consult the documentation for each function call "
37425 "below to see precisely how they return error indications. See L<guestfs-"
37426 "examples(3)> for fully worked examples."
37430 #: ../src/guestfs.pod:121
37431 msgid "DISK IMAGES"
37432 msgstr "ОБРАЗИ ДИСКІВ"
37435 #: ../src/guestfs.pod:123
37437 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
37438 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
37439 "actual block device, or simply an empty file of zeroes that you have created "
37440 "through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
37445 #: ../src/guestfs.pod:129
37447 "The call you should use in modern code for adding drives is L</"
37448 "guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
37449 "specifying that the format is raw, do:"
37453 #: ../src/guestfs.pod:133
37456 " guestfs_add_drive_opts (g, filename,\n"
37457 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37461 " guestfs_add_drive_opts (g, filename,\n"
37462 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37467 #: ../src/guestfs.pod:137
37468 msgid "You can add a disk read-only using:"
37469 msgstr "Ви можете додати диск у режимі лише читання:"
37472 #: ../src/guestfs.pod:139
37475 " guestfs_add_drive_opts (g, filename,\n"
37476 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37477 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37481 " guestfs_add_drive_opts (g, filename,\n"
37482 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37483 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37488 #: ../src/guestfs.pod:144
37490 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
37491 "libguestfs won't modify the file."
37495 #: ../src/guestfs.pod:147
37497 "Be extremely cautious if the disk image is in use, eg. if it is being used "
37498 "by a virtual machine. Adding it read-write will almost certainly cause disk "
37499 "corruption, but adding it read-only is safe."
37503 #: ../src/guestfs.pod:151
37505 "You must add at least one disk image, and you may add multiple disk images. "
37506 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
37507 "first one you added), C</dev/sdb> (for the second one you added), etc."
37511 #: ../src/guestfs.pod:156
37513 "Once L</guestfs_launch> has been called you cannot add any more images. You "
37514 "can call L</guestfs_list_devices> to get a list of the device names, in the "
37515 "order that you added them. See also L</BLOCK DEVICE NAMING> below."
37519 #: ../src/guestfs.pod:161
37521 msgstr "МОНТУВАННЯ"
37524 #: ../src/guestfs.pod:163
37526 "Before you can read or write files, create directories and so on in a disk "
37527 "image that contains filesystems, you have to mount those filesystems using "
37528 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that "
37529 "a disk image contains (for example) one partition with a filesystem on that "
37530 "partition, then you can mount it directly:"
37534 #: ../src/guestfs.pod:170
37537 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
37540 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
37544 #: ../src/guestfs.pod:172
37546 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
37547 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
37548 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
37549 "that these are libguestfs virtual devices, and are nothing to do with host "
37554 #: ../src/guestfs.pod:178
37556 "If you are given a disk image and you don't know what it contains then you "
37557 "have to find out. Libguestfs can do that too: use L</"
37558 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
37559 "LVs, and either try mounting each to see what is mountable, or else examine "
37560 "them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
37561 "filesystems, use L</guestfs_list_filesystems>."
37565 #: ../src/guestfs.pod:186
37567 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
37568 "L</INSPECTION> below). But you might find it easier to look at higher level "
37569 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
37573 #: ../src/guestfs.pod:191
37575 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
37576 "several other variations of the C<guestfs_mount_*> call."
37580 #: ../src/guestfs.pod:194
37581 msgid "FILESYSTEM ACCESS AND MODIFICATION"
37582 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
37585 #: ../src/guestfs.pod:196
37587 "The majority of the libguestfs API consists of fairly low-level calls for "
37588 "accessing and modifying the files, directories, symlinks etc on mounted "
37589 "filesystems. There are over a hundred such calls which you can find listed "
37590 "in detail below in this man page, and we don't even pretend to cover them "
37591 "all in this overview."
37595 #: ../src/guestfs.pod:202
37597 "Specify filenames as full paths, starting with C<\"/\"> and including the "
37600 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
37601 "точкою монтування."
37604 #: ../src/guestfs.pod:205
37606 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
37607 "the file called C<\"etc/passwd\"> then you could do:"
37609 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
37610 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
37614 #: ../src/guestfs.pod:208
37617 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
37620 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
37624 #: ../src/guestfs.pod:210
37626 "This would return C<data> as a newly allocated buffer containing the full "
37627 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
37628 "or C<NULL> if there was an error."
37632 #: ../src/guestfs.pod:214
37634 "As another example, to create a top-level directory on that filesystem "
37635 "called C<\"var\"> you would do:"
37639 #: ../src/guestfs.pod:217
37642 " guestfs_mkdir (g, \"/var\");\n"
37645 " guestfs_mkdir (g, \"/var\");\n"
37649 #: ../src/guestfs.pod:219
37650 msgid "To create a symlink you could do:"
37651 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
37654 #: ../src/guestfs.pod:221
37657 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
37658 " \"/etc/rc3.d/S30portmap\");\n"
37661 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
37662 " \"/etc/rc3.d/S30portmap\");\n"
37666 #: ../src/guestfs.pod:224
37668 "Libguestfs will reject attempts to use relative paths and there is no "
37669 "concept of a current working directory."
37673 #: ../src/guestfs.pod:227
37675 "Libguestfs can return errors in many situations: for example if the "
37676 "filesystem isn't writable, or if a file or directory that you requested "
37677 "doesn't exist. If you are using the C API (documented here) you have to "
37678 "check for those error conditions after each call. (Other language bindings "
37679 "turn these errors into exceptions)."
37683 #: ../src/guestfs.pod:233
37685 "File writes are affected by the per-handle umask, set by calling L</"
37686 "guestfs_umask> and defaulting to 022. See L</UMASK>."
37690 #: ../src/guestfs.pod:236
37691 msgid "PARTITIONING"
37692 msgstr "ПОДІЛ НА РОЗДІЛИ"
37695 #: ../src/guestfs.pod:238
37697 "Libguestfs contains API calls to read, create and modify partition tables on "
37702 #: ../src/guestfs.pod:241
37704 "In the common case where you want to create a single partition covering the "
37705 "whole disk, you should use the L</guestfs_part_disk> call:"
37709 #: ../src/guestfs.pod:245
37712 " const char *parttype = \"mbr\";\n"
37713 " if (disk_is_larger_than_2TB)\n"
37714 " parttype = \"gpt\";\n"
37715 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
37718 " const char *parttype = \"mbr\";\n"
37719 " if (disk_is_larger_than_2TB)\n"
37720 " parttype = \"gpt\";\n"
37721 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
37725 #: ../src/guestfs.pod:250
37727 "Obviously this effectively wipes anything that was on that disk image before."
37731 #: ../src/guestfs.pod:253
37736 #: ../src/guestfs.pod:255
37738 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
37739 "guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense unless "
37740 "you familiarize yourself with the concepts of physical volumes, volume "
37741 "groups and logical volumes."
37745 #: ../src/guestfs.pod:260
37747 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
37748 "tldp.org/HOWTO/LVM-HOWTO/>."
37752 #: ../src/guestfs.pod:263
37753 msgid "DOWNLOADING"
37754 msgstr "ОТРИМАННЯ ДАНИХ"
37757 #: ../src/guestfs.pod:265
37759 "Use L</guestfs_cat> to download small, text only files. This call is "
37760 "limited to files which are less than 2 MB and which cannot contain any ASCII "
37761 "NUL (C<\\0>) characters. However the API is very simple to use."
37765 #: ../src/guestfs.pod:269
37767 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
37768 "bit data, since it returns a (pointer, size) pair. However it is still "
37769 "limited to \"small\" files, less than 2 MB."
37773 #: ../src/guestfs.pod:273
37775 "L</guestfs_download> can be used to download any file, with no limits on "
37776 "content or size (even files larger than 4 GB)."
37780 #: ../src/guestfs.pod:276
37782 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
37786 #: ../src/guestfs.pod:279
37788 msgstr "ВИВАНТАЖЕННЯ"
37791 #: ../src/guestfs.pod:281
37793 "It's often the case that you want to write a file or files to the disk image."
37797 #: ../src/guestfs.pod:284
37799 "To write a small file with fixed content, use L</guestfs_write>. To create "
37800 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
37801 "guestfs_fallocate64> (with all disk blocks allocated). There are a variety "
37802 "of other functions for creating test files, for example L</guestfs_fill> and "
37803 "L</guestfs_fill_pattern>."
37807 #: ../src/guestfs.pod:290
37809 "To upload a single file, use L</guestfs_upload>. This call has no limits on "
37810 "file content or size (even files larger than 4 GB)."
37814 #: ../src/guestfs.pod:293
37816 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
37820 #: ../src/guestfs.pod:295
37822 "However the fastest way to upload I<large numbers of arbitrary files> is to "
37823 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
37824 ">), then attach this using L</guestfs_add_drive_ro>. If you add the drive "
37825 "in a predictable way (eg. adding it last after all other drives) then you "
37826 "can get the device name from L</guestfs_list_devices> and mount it directly "
37827 "using L</guestfs_mount_ro>. Note that squashfs images are sometimes non-"
37828 "portable between kernel versions, and they don't support labels or UUIDs. "
37829 "If you want to pre-build an image or you need to mount it using a label or "
37830 "UUID, use an ISO image instead."
37834 #: ../src/guestfs.pod:306
37836 msgstr "КОПІЮВАННЯ"
37839 #: ../src/guestfs.pod:308
37841 "There are various different commands for copying between files and devices "
37842 "and in and out of the guest filesystem. These are summarised in the table "
37847 #: ../src/guestfs.pod:314
37848 msgid "B<file> to B<file>"
37849 msgstr "B<файл> у B<файл>"
37852 #: ../src/guestfs.pod:316
37854 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
37855 "directories recursively."
37859 #: ../src/guestfs.pod:319
37861 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
37865 #: ../src/guestfs.pod:322
37866 msgid "B<file> to B<device>"
37870 #: ../src/guestfs.pod:324
37871 msgid "B<device> to B<file>"
37875 #: ../src/guestfs.pod:326
37876 msgid "B<device> to B<device>"
37880 #: ../src/guestfs.pod:328
37882 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
37883 "guestfs_copy_device_to_device>."
37887 #: ../src/guestfs.pod:331
37888 msgid "Example: duplicate the contents of an LV:"
37892 #: ../src/guestfs.pod:333
37895 " guestfs_copy_device_to_device (g,\n"
37896 " \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
37897 " /* -1 marks the end of the list of optional parameters */\n"
37903 #: ../src/guestfs.pod:338
37905 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
37906 "(C</dev/VG/Original>). To copy less than the whole source device, use the "
37907 "optional C<size> parameter:"
37911 #: ../src/guestfs.pod:342
37914 " guestfs_copy_device_to_device (g,\n"
37915 " \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
37916 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
37922 #: ../src/guestfs.pod:347
37923 msgid "B<file on the host> to B<file or device>"
37927 #: ../src/guestfs.pod:349
37928 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
37932 #: ../src/guestfs.pod:351
37933 msgid "B<file or device> to B<file on the host>"
37937 #: ../src/guestfs.pod:353
37938 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
37942 #: ../src/guestfs.pod:357
37943 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
37947 #: ../src/guestfs.pod:359
37949 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
37950 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
37951 "appears you can only upload and download to files. However many Un*x-like "
37952 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
37953 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
37954 "and arbitrary file descriptor N."
37958 #: ../src/guestfs.pod:367
37959 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
37963 #: ../src/guestfs.pod:370
37966 " guestfs_download (g, filename, \"/dev/stdout\");\n"
37969 " guestfs_download (g, filename, \"/dev/stdout\");\n"
37973 #: ../src/guestfs.pod:372
37974 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
37978 #: ../src/guestfs.pod:374
37981 " char devfd[64];\n"
37982 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
37983 " guestfs_tar_out (g, \"/\", devfd);\n"
37986 " char devfd[64];\n"
37987 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
37988 " guestfs_tar_out (g, \"/\", devfd);\n"
37992 #: ../src/guestfs.pod:378
37993 msgid "LISTING FILES"
37994 msgstr "СПИСКИ ФАЙЛІВ"
37997 #: ../src/guestfs.pod:380
37999 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
38000 "L<guestfish(1)>-equivalent command C<ll>)."
38004 #: ../src/guestfs.pod:383
38006 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
38007 "programs, as a flat list of strings."
38011 #: ../src/guestfs.pod:386
38013 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
38014 "directory, plus additional information about each one. It is more "
38015 "equivalent to using the L<readdir(3)> call on a local filesystem."
38019 #: ../src/guestfs.pod:390
38021 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
38025 #: ../src/guestfs.pod:393
38026 msgid "RUNNING COMMANDS"
38027 msgstr "ВИКОНАННЯ КОМАНД"
38030 #: ../src/guestfs.pod:395
38032 "Although libguestfs is primarily an API for manipulating files inside guest "
38033 "images, we also provide some limited facilities for running commands inside "
38038 #: ../src/guestfs.pod:399
38039 msgid "There are many limitations to this:"
38043 #: ../src/guestfs.pod:405
38045 "The kernel version that the command runs under will be different from what "
38050 #: ../src/guestfs.pod:410
38052 "If the command needs to communicate with daemons, then most likely they "
38053 "won't be running."
38057 #: ../src/guestfs.pod:415
38058 msgid "The command will be running in limited memory."
38062 #: ../src/guestfs.pod:419
38064 "The network may not be available unless you enable it (see L</"
38065 "guestfs_set_network>)."
38069 #: ../src/guestfs.pod:424
38070 msgid "Only supports Linux guests (not Windows, BSD, etc)."
38074 #: ../src/guestfs.pod:428
38076 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
38080 #: ../src/guestfs.pod:433
38082 "For SELinux guests, you may need to enable SELinux and load policy first. "
38083 "See L</SELINUX> in this manpage."
38087 #: ../src/guestfs.pod:438
38089 "I<Security:> It is not safe to run commands from untrusted, possibly "
38090 "malicious guests. These commands may attempt to exploit your program by "
38091 "sending unexpected output. They could also try to exploit the Linux kernel "
38092 "or qemu provided by the libguestfs appliance. They could use the network "
38093 "provided by the libguestfs appliance to bypass ordinary network partitions "
38094 "and firewalls. They could use the elevated privileges or different SELinux "
38095 "context of your program to their advantage."
38099 #: ../src/guestfs.pod:447
38101 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
38102 "(a script which runs when the guest next boots normally), and to have this "
38103 "script run the commands you want in the normal context of the running guest, "
38104 "network security and so on. For information about other security issues, "
38105 "see L</SECURITY>."
38109 #: ../src/guestfs.pod:455
38111 "The two main API calls to run commands are L</guestfs_command> and L</"
38112 "guestfs_sh> (there are also variations)."
38116 #: ../src/guestfs.pod:458
38118 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
38119 "shell globs, redirections, etc will work."
38123 #: ../src/guestfs.pod:461
38124 msgid "CONFIGURATION FILES"
38125 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
38128 #: ../src/guestfs.pod:463
38130 "To read and write configuration files in Linux guest filesystems, we "
38131 "strongly recommend using Augeas. For example, Augeas understands how to "
38132 "read and write, say, a Linux shadow password file or X.org configuration "
38133 "file, and so avoids you having to write that code."
38137 #: ../src/guestfs.pod:468
38139 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
38140 "document Augeas itself here because there is excellent documentation on the "
38141 "L<http://augeas.net/> website."
38145 #: ../src/guestfs.pod:472
38147 "If you don't want to use Augeas (you fool!) then try calling L</"
38148 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
38153 #: ../src/guestfs.pod:476
38158 #: ../src/guestfs.pod:478
38160 "We support SELinux guests. To ensure that labeling happens correctly in "
38161 "SELinux guests, you need to enable SELinux and load the guest's policy:"
38165 #: ../src/guestfs.pod:486
38166 msgid "Before launching, do:"
38170 #: ../src/guestfs.pod:488
38173 " guestfs_set_selinux (g, 1);\n"
38176 " guestfs_set_selinux (g, 1);\n"
38180 #: ../src/guestfs.pod:492
38182 "After mounting the guest's filesystem(s), load the policy. This is best "
38183 "done by running the L<load_policy(8)> command in the guest itself:"
38187 #: ../src/guestfs.pod:496
38190 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
38193 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
38197 #: ../src/guestfs.pod:498
38199 "(Older versions of C<load_policy> require you to specify the name of the "
38204 #: ../src/guestfs.pod:503
38206 "Optionally, set the security context for the API. The correct security "
38207 "context to use can only be known by inspecting the guest. As an example:"
38211 #: ../src/guestfs.pod:507
38214 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
38217 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
38221 #: ../src/guestfs.pod:511
38222 msgid "This will work for running commands and editing existing files."
38226 #: ../src/guestfs.pod:513
38228 "When new files are created, you may need to label them explicitly, for "
38229 "example by running the external command C<restorecon pathname>."
38233 #: ../src/guestfs.pod:517
38238 #: ../src/guestfs.pod:519
38240 "Certain calls are affected by the current file mode creation mask (the "
38241 "\"umask\"). In particular ones which create files or directories, such as "
38242 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
38243 "either the default mode that the file is created with or modifies the mode "
38248 #: ../src/guestfs.pod:525
38250 "The default umask is C<022>, so files are created with modes such as C<0644> "
38251 "and directories with C<0755>."
38255 #: ../src/guestfs.pod:528
38257 "There are two ways to avoid being affected by umask. Either set umask to 0 "
38258 "(call C<guestfs_umask (g, 0)> early after launching). Or call L</"
38259 "guestfs_chmod> after creating each file or directory."
38263 #: ../src/guestfs.pod:532
38264 msgid "For more information about umask, see L<umask(2)>."
38268 #: ../src/guestfs.pod:536
38270 "Libguestfs allows you to access Linux guests which have been encrypted using "
38271 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
38272 "standard. This includes nearly all whole disk encryption systems used by "
38273 "modern Linux guests."
38277 #: ../src/guestfs.pod:542
38279 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
38280 "returns the string C<crypto_LUKS>)."
38284 #: ../src/guestfs.pod:545
38286 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
38287 "will require the passphrase!"
38291 #: ../src/guestfs.pod:548
38293 "Opening a LUKS device creates a new device mapper device called C</dev/"
38294 "mapper/mapname> (where C<mapname> is the string you supply to L</"
38295 "guestfs_luks_open>). Reads and writes to this mapper device are decrypted "
38296 "from and encrypted to the underlying block device respectively."
38300 #: ../src/guestfs.pod:554
38302 "LVM volume groups on the device can be made visible by calling L</"
38303 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical volume"
38304 "(s) can now be mounted in the usual way."
38308 #: ../src/guestfs.pod:558
38310 "Use the reverse process to close a LUKS device. Unmount any logical volumes "
38311 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
38312 "[\"/dev/VG\"])>. Then close the mapper device by calling L</"
38313 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
38314 "underlying encrypted block device)."
38318 #: ../src/guestfs.pod:565
38323 #: ../src/guestfs.pod:567
38325 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
38326 "contains operating systems, an install CD or a live CD. (These APIs used to "
38327 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
38328 "version 1.5.3 the most frequently used part of this library has been "
38329 "rewritten in C and moved into the core code)."
38333 #: ../src/guestfs.pod:574
38335 "Add all disks belonging to the unknown virtual machine and call L</"
38336 "guestfs_launch> in the usual way."
38340 #: ../src/guestfs.pod:577
38342 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
38343 "and certain heuristics, and returns a list of operating systems that were "
38344 "found. An empty list means none were found. A single element is the root "
38345 "filesystem of the operating system. For dual- or multi-boot guests, "
38346 "multiple roots can be returned, each one corresponding to a separate "
38347 "operating system. (Multi-boot virtual machines are extremely rare in the "
38348 "world of virtualization, but since this scenario can happen, we have built "
38349 "libguestfs to deal with it.)"
38353 #: ../src/guestfs.pod:586
38355 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
38356 "to get additional details about that operating system. For example, call L</"
38357 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
38358 "Windows and Linux-based operating systems respectively."
38362 #: ../src/guestfs.pod:592
38364 "Un*x-like and Linux-based operating systems usually consist of several "
38365 "filesystems which are mounted at boot time (for example, a separate boot "
38366 "partition mounted on C</boot>). The inspection rules are able to detect how "
38367 "filesystems correspond to mount points. Call "
38368 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
38369 "hash table like this example:"
38373 #: ../src/guestfs.pod:599
38376 " /boot => /dev/sda1\n"
38377 " / => /dev/vg_guest/lv_root\n"
38378 " /usr => /dev/vg_guest/lv_usr\n"
38381 " /boot => /dev/sda1\n"
38382 " / => /dev/vg_guest/lv_root\n"
38383 " /usr => /dev/vg_guest/lv_usr\n"
38387 #: ../src/guestfs.pod:603
38389 "The caller can then make calls to L</guestfs_mount_options> to mount the "
38390 "filesystems as suggested."
38394 #: ../src/guestfs.pod:606
38396 "Be careful to mount filesystems in the right order (eg. C</> before C</"
38397 "usr>). Sorting the keys of the hash by length, shortest first, should work."
38401 #: ../src/guestfs.pod:610
38403 "Inspection currently only works for some common operating systems. "
38404 "Contributors are welcome to send patches for other operating systems that we "
38405 "currently cannot detect."
38409 #: ../src/guestfs.pod:614
38411 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
38412 "for more details. The L</guestfs_inspect_os> function just ignores any "
38413 "encrypted devices."
38417 #: ../src/guestfs.pod:618
38419 "A note on the implementation: The call L</guestfs_inspect_os> performs "
38420 "inspection and caches the results in the guest handle. Subsequent calls to "
38421 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
38422 "read the disks. If you change the content of the guest disks, you can redo "
38423 "inspection by calling L</guestfs_inspect_os> again. (L</"
38424 "guestfs_inspect_list_applications> works a little differently from the other "
38425 "calls and does read the disks. See documentation for that function for "
38430 #: ../src/guestfs.pod:627
38431 msgid "INSPECTING INSTALL DISKS"
38435 #: ../src/guestfs.pod:629
38437 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
38442 #: ../src/guestfs.pod:632
38444 "Call L</guestfs_inspect_get_format> to return the format of the operating "
38445 "system, which currently can be C<installed> (a regular operating system) or "
38446 "C<installer> (some sort of install disk)."
38450 #: ../src/guestfs.pod:636
38452 "Further information is available about the operating system that can be "
38453 "installed using the regular inspection APIs like L</"
38454 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
38458 #: ../src/guestfs.pod:641
38460 "Some additional information specific to installer disks is also available "
38461 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
38462 "guestfs_inspect_is_multipart> calls."
38466 #: ../src/guestfs.pod:646
38467 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
38471 #: ../src/guestfs.pod:648
38473 "Libguestfs can mount NTFS partitions. It does this using the L<http://www."
38474 "ntfs-3g.org/> driver."
38478 #: ../src/guestfs.pod:651
38479 msgid "DRIVE LETTERS AND PATHS"
38480 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
38483 #: ../src/guestfs.pod:653
38485 "DOS and Windows still use drive letters, and the filesystems are always "
38486 "treated as case insensitive by Windows itself, and therefore you might find "
38487 "a Windows configuration file referring to a path like C<c:\\windows"
38488 "\\system32>. When the filesystem is mounted in libguestfs, that directory "
38489 "might be referred to as C</WINDOWS/System32>."
38493 #: ../src/guestfs.pod:659
38495 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
38496 "L</guestfs_inspect_get_drive_mappings>)"
38500 #: ../src/guestfs.pod:662
38502 "Dealing with separator characters (backslash vs forward slash) is outside "
38503 "the scope of libguestfs, but usually a simple character replacement will "
38508 #: ../src/guestfs.pod:666
38510 "To resolve the case insensitivity of paths, call L</"
38511 "guestfs_case_sensitive_path>."
38515 #: ../src/guestfs.pod:669
38516 msgid "ACCESSING THE WINDOWS REGISTRY"
38517 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
38520 #: ../src/guestfs.pod:671
38522 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
38523 "files, through the library C<hivex> which is part of the libguestfs project "
38524 "although ships as a separate tarball. You have to locate and download the "
38525 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
38526 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
38527 "reg(1)> for more help on this issue."
38531 #: ../src/guestfs.pod:679
38532 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
38533 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
38536 #: ../src/guestfs.pod:681
38538 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
38539 "provide something which looks like a Linux symlink. The way it tries to do "
38540 "the rewriting is described here:"
38544 #: ../src/guestfs.pod:685
38546 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
38549 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
38553 #: ../src/guestfs.pod:687
38555 "The essential problem is that ntfs-3g simply does not have enough "
38556 "information to do a correct job. NTFS links can contain drive letters and "
38557 "references to external device GUIDs that ntfs-3g has no way of resolving. "
38558 "It is almost certainly the case that libguestfs callers should ignore what "
38559 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
38563 #: ../src/guestfs.pod:694
38565 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
38566 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
38567 "attribute, and read the raw reparse data from that (you can find the format "
38568 "documented in various places around the web)."
38572 #: ../src/guestfs.pod:699
38573 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
38577 #: ../src/guestfs.pod:701
38579 "There are other useful extended attributes that can be read from ntfs-3g "
38580 "filesystems (using L</guestfs_getxattr>). See:"
38584 #: ../src/guestfs.pod:704
38586 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
38588 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
38591 #: ../src/guestfs.pod:706
38592 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
38593 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
38596 #: ../src/guestfs.pod:708
38598 "Although we don't want to discourage you from using the C API, we will "
38599 "mention here that the same API is also available in other languages."
38603 #: ../src/guestfs.pod:711
38605 "The API is broadly identical in all supported languages. This means that "
38606 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
38607 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
38608 "OCaml. In other words, a straightforward, predictable isomorphism between "
38613 #: ../src/guestfs.pod:717
38615 "Error messages are automatically transformed into exceptions if the language "
38620 #: ../src/guestfs.pod:720
38622 "We don't try to \"object orientify\" parts of the API in OO languages, "
38623 "although contributors are welcome to write higher level APIs above what we "
38624 "provide in their favourite languages if they wish."
38628 #: ../src/guestfs.pod:726
38633 #: ../src/guestfs.pod:728
38635 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
38636 "identical to the C API. C++ classes and exceptions are not used."
38640 #: ../src/guestfs.pod:732
38645 #: ../src/guestfs.pod:734
38647 "The C# bindings are highly experimental. Please read the warnings at the "
38648 "top of C<csharp/Libguestfs.cs>."
38652 #: ../src/guestfs.pod:737
38657 #: ../src/guestfs.pod:739
38658 msgid "See L<guestfs-erlang(3)>."
38662 #: ../src/guestfs.pod:741
38664 msgstr "B<Haskell>"
38667 #: ../src/guestfs.pod:743
38669 "This is the only language binding that is working but incomplete. Only "
38670 "calls which return simple integers have been bound in Haskell, and we are "
38671 "looking for help to complete this binding."
38675 #: ../src/guestfs.pod:747
38680 #: ../src/guestfs.pod:749
38682 "Full documentation is contained in the Javadoc which is distributed with "
38683 "libguestfs. For examples, see L<guestfs-java(3)>."
38687 #: ../src/guestfs.pod:752
38692 #: ../src/guestfs.pod:754
38693 msgid "See L<guestfs-ocaml(3)>."
38694 msgstr "Див. L<guestfs-ocaml(3)>."
38697 #: ../src/guestfs.pod:756
38702 #: ../src/guestfs.pod:758
38703 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
38704 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
38707 #: ../src/guestfs.pod:760
38712 #: ../src/guestfs.pod:762
38714 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
38715 "the php-libguestfs package for your distribution."
38719 #: ../src/guestfs.pod:765
38720 msgid "The PHP binding only works correctly on 64 bit machines."
38724 #: ../src/guestfs.pod:767
38729 #: ../src/guestfs.pod:769
38730 msgid "See L<guestfs-python(3)>."
38731 msgstr "Див. L<guestfs-python(3)>."
38734 #: ../src/guestfs.pod:771
38739 #: ../src/guestfs.pod:773
38740 msgid "See L<guestfs-ruby(3)>."
38741 msgstr "Див. L<guestfs-ruby(3)>."
38744 #: ../src/guestfs.pod:775
38745 msgid "B<shell scripts>"
38746 msgstr "B<скрипти оболонки>"
38749 #: ../src/guestfs.pod:777
38750 msgid "See L<guestfish(1)>."
38751 msgstr "Див. L<guestfish(1)>."
38754 #: ../src/guestfs.pod:781
38755 msgid "LIBGUESTFS GOTCHAS"
38759 #: ../src/guestfs.pod:783
38761 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
38762 "system [...] that works in the way it is documented but is counterintuitive "
38763 "and almost invites mistakes.\""
38767 #: ../src/guestfs.pod:787
38769 "Since we developed libguestfs and the associated tools, there are several "
38770 "things we would have designed differently, but are now stuck with for "
38771 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
38772 "release, you can expect these to change. Beware of them."
38776 #: ../src/guestfs.pod:795
38777 msgid "Autosync / forgetting to sync."
38781 #: ../src/guestfs.pod:797
38783 "I<Update:> Autosync is enabled by default for all API users starting from "
38784 "libguestfs 1.5.24. This section only applies to older versions."
38788 #: ../src/guestfs.pod:800
38790 "When modifying a filesystem from C or another language, you B<must> unmount "
38791 "all filesystems and call L</guestfs_sync> explicitly before you close the "
38792 "libguestfs handle. You can also call:"
38796 #: ../src/guestfs.pod:804
38799 " guestfs_set_autosync (g, 1);\n"
38802 " guestfs_set_autosync (g, 1);\n"
38806 #: ../src/guestfs.pod:806
38808 "to have the unmount/sync done automatically for you when the handle 'g' is "
38809 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
38813 #: ../src/guestfs.pod:810
38815 "If you forget to do this, then it is entirely possible that your changes "
38816 "won't be written out, or will be partially written, or (very rarely) that "
38817 "you'll get disk corruption."
38821 #: ../src/guestfs.pod:814
38823 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
38824 "guestfish scripts that forget to sync will work just fine, which can make "
38825 "this very puzzling if you are trying to debug a problem."
38829 #: ../src/guestfs.pod:818
38830 msgid "Mount option C<-o sync> should not be the default."
38834 #: ../src/guestfs.pod:820
38836 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
38837 "libguestfs 1.13.16. This section only applies to older versions."
38841 #: ../src/guestfs.pod:823
38843 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
38844 "However C<-o sync> does not add any reliability benefit, but does have a "
38845 "very large performance impact."
38849 #: ../src/guestfs.pod:827
38851 "The work around is to use L</guestfs_mount_options> and set the mount "
38852 "options that you actually want to use."
38856 #: ../src/guestfs.pod:830
38857 msgid "Read-only should be the default."
38861 #: ../src/guestfs.pod:832
38863 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
38864 "specify I<--rw> if you want to make changes to the image."
38868 #: ../src/guestfs.pod:835
38869 msgid "This would reduce the potential to corrupt live VM images."
38873 #: ../src/guestfs.pod:837
38875 "Note that many filesystems change the disk when you just mount and unmount, "
38876 "even if you didn't perform any writes. You need to use L</"
38877 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
38881 #: ../src/guestfs.pod:841
38882 msgid "guestfish command line is hard to use."
38886 #: ../src/guestfs.pod:843
38888 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
38889 "examination). It tries to run a guestfish command C<disk.img> which doesn't "
38890 "exist, so it fails. In earlier versions of guestfish the error message was "
38891 "also unintuitive, but we have corrected this since. Like the Bourne shell, "
38892 "we should have used C<guestfish -c command> to run commands."
38896 #: ../src/guestfs.pod:850
38897 msgid "guestfish megabyte modifiers don't work right on all commands"
38901 #: ../src/guestfs.pod:852
38903 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
38904 "other modifiers). What guestfish actually does is to multiply the number "
38905 "part by the modifier part and pass the result to the C API. However this "
38906 "doesn't work for a few APIs which aren't expecting bytes, but are already "
38907 "expecting some other unit (eg. megabytes)."
38911 #: ../src/guestfs.pod:859
38912 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
38916 #: ../src/guestfs.pod:861
38919 " lvcreate LV VG 100M\n"
38922 " lvcreate LV VG 100M\n"
38926 #: ../src/guestfs.pod:863
38928 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
38929 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
38930 "megabytes * megabytes) logical volume. The error message you get from this "
38931 "is also a little obscure."
38935 #: ../src/guestfs.pod:868
38937 "This could be fixed in the generator by specially marking parameters and "
38938 "return values which take bytes or other units."
38942 #: ../src/guestfs.pod:871
38943 msgid "Ambiguity between devices and paths"
38947 #: ../src/guestfs.pod:873
38949 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
38950 "sdb2>) and a similar pathname. A file might just happen to be called "
38951 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
38955 #: ../src/guestfs.pod:878
38957 "In the current API we usually resolve this ambiguity by having two separate "
38958 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
38959 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
38960 "detecting if the path supplied begins with C</dev/>."
38964 #: ../src/guestfs.pod:884
38966 "To avoid both the ambiguity and the need to duplicate some calls, we could "
38967 "make paths/devices into structured names. One way to do this would be to "
38968 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
38969 "aspect of grub. Another way would be to use a structured type, equivalent "
38970 "to this OCaml type:"
38974 #: ../src/guestfs.pod:890
38977 " type path = Path of string | Device of int | Partition of int * int\n"
38982 #: ../src/guestfs.pod:892
38983 msgid "which would allow you to pass arguments like:"
38987 #: ../src/guestfs.pod:894
38990 " Path \"/foo/bar\"\n"
38991 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
38992 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
38993 " Path \"/dev/sdb2\" (* not a device *)\n"
38998 #: ../src/guestfs.pod:899
39000 "As you can see there are still problems to resolve even with this "
39001 "representation. Also consider how it might work in guestfish."
39005 #: ../src/guestfs.pod:904
39006 msgid "KEYS AND PASSPHRASES"
39007 msgstr "КЛЮЧІ І ПАРОЛІ"
39010 #: ../src/guestfs.pod:906
39012 "Certain libguestfs calls take a parameter that contains sensitive key "
39013 "material, passed in as a C string."
39017 #: ../src/guestfs.pod:909
39019 "In the future we would hope to change the libguestfs implementation so that "
39020 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
39021 "swap. However this is I<not> done at the moment, because of the complexity "
39022 "of such an implementation."
39026 #: ../src/guestfs.pod:914
39028 "Therefore you should be aware that any key parameter you pass to libguestfs "
39029 "might end up being written out to the swap partition. If this is a concern, "
39030 "scrub the swap partition or don't use libguestfs on encrypted devices."
39034 #: ../src/guestfs.pod:919
39035 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
39039 #: ../src/guestfs.pod:921
39041 "All high-level libguestfs actions are synchronous. If you want to use "
39042 "libguestfs asynchronously then you must create a thread."
39046 #: ../src/guestfs.pod:924
39048 "Only use the handle from a single thread. Either use the handle exclusively "
39049 "from one thread, or provide your own mutex so that two threads cannot issue "
39050 "calls on the same handle at the same time."
39054 #: ../src/guestfs.pod:928
39056 "See the graphical program guestfs-browser for one possible architecture for "
39057 "multithreaded programs using libvirt and libguestfs."
39061 #: ../src/guestfs.pod:931
39066 #: ../src/guestfs.pod:933
39068 "Libguestfs needs a supermin appliance, which it finds by looking along an "
39073 #: ../src/guestfs.pod:936
39075 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
39076 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
39080 #: ../src/guestfs.pod:939
39082 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
39083 "to change the directories that libguestfs will search in. The value is a "
39084 "colon-separated list of paths. The current directory is I<not> searched "
39085 "unless the path contains an empty element or C<.>. For example "
39086 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
39087 "then C</usr/lib/guestfs>."
39091 #: ../src/guestfs.pod:946
39092 msgid "QEMU WRAPPERS"
39096 #: ../src/guestfs.pod:948
39098 "If you want to compile your own qemu, run qemu from a non-standard location, "
39099 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
39104 #: ../src/guestfs.pod:952
39106 "There is one important rule to remember: you I<must C<exec qemu>> as the "
39107 "last command in the shell script (so that qemu replaces the shell and "
39108 "becomes the direct child of the libguestfs-using program). If you don't do "
39109 "this, then the qemu process won't be cleaned up correctly."
39113 #: ../src/guestfs.pod:957
39115 "Here is an example of a wrapper, where I have built my own copy of qemu from "
39120 #: ../src/guestfs.pod:960
39124 " qemudir=/home/rjones/d/qemu\n"
39125 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
39129 " qemudir=/home/rjones/d/qemu\n"
39130 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
39134 #: ../src/guestfs.pod:964
39136 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
39137 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
39142 #: ../src/guestfs.pod:968
39145 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
39148 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
39152 #: ../src/guestfs.pod:970
39154 "Note that libguestfs also calls qemu with the -help and -version options in "
39155 "order to determine features."
39159 #: ../src/guestfs.pod:973
39161 "Wrappers can also be used to edit the options passed to qemu. In the "
39162 "following example, the C<-machine ...> option (C<-machine> and the following "
39163 "argument) are removed from the command line and replaced with C<-machine pc,"
39164 "accel=tcg>. The while loop iterates over the options until it finds the "
39165 "right one to remove, putting the remaining options into the C<args> array."
39169 #: ../src/guestfs.pod:982
39173 " while [ $# -gt 0 ]; do\n"
39174 " case \"$1\" in\n"
39178 " args[i]=\"$1\"\n"
39187 #: ../src/guestfs.pod:994
39190 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
39195 #: ../src/guestfs.pod:996
39196 msgid "ATTACHING TO RUNNING DAEMONS"
39197 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
39200 #: ../src/guestfs.pod:998
39202 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
39203 "babies. Use with caution."
39207 #: ../src/guestfs.pod:1001
39209 "I<Note (2):> This section explains how to attach to a running daemon from a "
39210 "low level perspective. For most users, simply using virt tools such as "
39211 "L<guestfish(1)> with the I<--live> option will \"just work\"."
39215 #: ../src/guestfs.pod:1005
39216 msgid "Using guestfs_set_attach_method"
39217 msgstr "За допомогою guestfs_set_attach_method"
39220 #: ../src/guestfs.pod:1007
39222 "By calling L</guestfs_set_attach_method> you can change how the library "
39223 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
39224 "ARCHITECTURE> for some background)."
39228 #: ../src/guestfs.pod:1011
39230 "The normal attach method is C<appliance>, where a small appliance is created "
39231 "containing the daemon, and then the library connects to this."
39235 #: ../src/guestfs.pod:1014
39237 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
39238 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
39239 "daemon over the Unix domain socket."
39243 #: ../src/guestfs.pod:1018
39245 "The normal use for this is to connect to a running virtual machine that "
39246 "contains a C<guestfsd> daemon, and send commands so you can read and write "
39247 "files inside the live virtual machine."
39251 #: ../src/guestfs.pod:1022
39252 msgid "Using guestfs_add_domain with live flag"
39253 msgstr "За допомогою guestfs_add_domain з прапорцем live"
39256 #: ../src/guestfs.pod:1024
39258 "L</guestfs_add_domain> provides some help for getting the correct attach "
39259 "method. If you pass the C<live> option to this function, then (if the "
39260 "virtual machine is running) it will examine the libvirt XML looking for a "
39261 "virtio-serial channel to connect to:"
39265 #: ../src/guestfs.pod:1030
39272 " <channel type='unix'>\n"
39273 " <source mode='bind' path='/path/to/socket'/>\n"
39274 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
39285 " <channel type='unix'>\n"
39286 " <source mode='bind' path='/path/to/socket'/>\n"
39287 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
39295 #: ../src/guestfs.pod:1042
39297 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
39298 "method to C<unix:/path/to/socket>."
39302 #: ../src/guestfs.pod:1045
39304 "Some of the libguestfs tools (including guestfish) support a I<--live> "
39305 "option which is passed through to L</guestfs_add_domain> thus allowing you "
39306 "to attach to and modify live virtual machines."
39310 #: ../src/guestfs.pod:1049
39312 "The virtual machine needs to have been set up beforehand so that it has the "
39313 "virtio-serial channel and so that guestfsd is running inside it."
39317 #: ../src/guestfs.pod:1053
39318 msgid "ABI GUARANTEE"
39319 msgstr "ГАРАНТІЯ ЩОДО ABI"
39322 #: ../src/guestfs.pod:1055
39324 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
39325 "actions as outlined in this section. Although we will deprecate some "
39326 "actions, for example if they get replaced by newer calls, we will keep the "
39327 "old actions forever. This allows you the developer to program in confidence "
39328 "against the libguestfs API."
39332 #: ../src/guestfs.pod:1061
39333 msgid "BLOCK DEVICE NAMING"
39334 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
39337 #: ../src/guestfs.pod:1063
39339 "In the kernel there is now quite a profusion of schemata for naming block "
39340 "devices (in this context, by I<block device> I mean a physical or virtual "
39341 "hard drive). The original Linux IDE driver used names starting with C</dev/"
39342 "hd*>. SCSI devices have historically used a different naming scheme, C</dev/"
39343 "sd*>. When the Linux kernel I<libata> driver became a popular replacement "
39344 "for the old IDE driver (particularly for SATA devices) those devices also "
39345 "used the C</dev/sd*> scheme. Additionally we now have virtual machines with "
39346 "paravirtualized drivers. This has created several different naming systems, "
39347 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
39351 #: ../src/guestfs.pod:1075
39353 "As discussed above, libguestfs uses a qemu appliance running an embedded "
39354 "Linux kernel to access block devices. We can run a variety of appliances "
39355 "based on a variety of Linux kernels."
39359 #: ../src/guestfs.pod:1079
39361 "This causes a problem for libguestfs because many API calls use device or "
39362 "partition names. Working scripts and the recipe (example) scripts that we "
39363 "make available over the internet could fail if the naming scheme changes."
39367 #: ../src/guestfs.pod:1084
39369 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
39370 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
39371 "required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
39372 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
39376 #: ../src/guestfs.pod:1090
39378 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
39379 "L</guestfs_list_partitions> and similar calls return the true names of the "
39380 "devices and partitions as known to the appliance."
39384 #: ../src/guestfs.pod:1095
39385 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
39389 #: ../src/guestfs.pod:1097
39391 "Usually this translation is transparent. However in some (very rare) cases "
39392 "you may need to know the exact algorithm. Such cases include where you use "
39393 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
39394 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
39398 #: ../src/guestfs.pod:1103
39400 "The algorithm is applied only to I<parameters> which are known to be either "
39401 "device or partition names. Return values from functions such as L</"
39402 "guestfs_list_devices> are never changed."
39406 #: ../src/guestfs.pod:1111
39407 msgid "Is the string a parameter which is a device or partition name?"
39411 #: ../src/guestfs.pod:1115
39412 msgid "Does the string begin with C</dev/sd>?"
39413 msgstr "Чи починається рядок з C</dev/sd>?"
39416 #: ../src/guestfs.pod:1119
39418 "Does the named device exist? If so, we use that device. However if I<not> "
39419 "then we continue with this algorithm."
39423 #: ../src/guestfs.pod:1124
39424 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
39428 #: ../src/guestfs.pod:1126
39429 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
39433 #: ../src/guestfs.pod:1128
39434 msgid "If that named device exists, use it. If not, continue."
39438 #: ../src/guestfs.pod:1132
39439 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
39443 #: ../src/guestfs.pod:1134
39444 msgid "If that named device exists, use it. If not, return an error."
39448 #: ../src/guestfs.pod:1138
39449 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
39453 #: ../src/guestfs.pod:1140
39455 "Although the standard naming scheme and automatic translation is useful for "
39456 "simple programs and guestfish scripts, for larger programs it is best not to "
39457 "rely on this mechanism."
39461 #: ../src/guestfs.pod:1144
39463 "Where possible for maximum future portability programs using libguestfs "
39464 "should use these future-proof techniques:"
39468 #: ../src/guestfs.pod:1151
39470 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
39471 "device names, and then use those names directly."
39475 #: ../src/guestfs.pod:1154
39477 "Since those device names exist by definition, they will never be translated."
39481 #: ../src/guestfs.pod:1159
39483 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
39484 "filesystem labels."
39488 #: ../src/guestfs.pod:1166
39490 "This section discusses security implications of using libguestfs, "
39491 "particularly with untrusted or malicious guests or disk images."
39495 #: ../src/guestfs.pod:1169
39496 msgid "GENERAL SECURITY CONSIDERATIONS"
39497 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
39500 #: ../src/guestfs.pod:1171
39502 "Be careful with any files or data that you download from a guest (by "
39503 "\"download\" we mean not just the L</guestfs_download> command but any "
39504 "command that reads files, filenames, directories or anything else from a "
39505 "disk image). An attacker could manipulate the data to fool your program "
39506 "into doing the wrong thing. Consider cases such as:"
39510 #: ../src/guestfs.pod:1181
39511 msgid "the data (file etc) not being present"
39515 #: ../src/guestfs.pod:1185
39516 msgid "being present but empty"
39520 #: ../src/guestfs.pod:1189
39521 msgid "being much larger than normal"
39525 #: ../src/guestfs.pod:1193
39526 msgid "containing arbitrary 8 bit data"
39530 #: ../src/guestfs.pod:1197
39531 msgid "being in an unexpected character encoding"
39535 #: ../src/guestfs.pod:1201
39536 msgid "containing homoglyphs."
39540 #: ../src/guestfs.pod:1205
39541 msgid "SECURITY OF MOUNTING FILESYSTEMS"
39542 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
39545 #: ../src/guestfs.pod:1207
39547 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
39548 "(VFS) module can sometimes be escalated into exploits by deliberately "
39549 "creating a malicious, malformed filesystem. These exploits are very severe "
39550 "for two reasons. Firstly there are very many filesystem drivers in the "
39551 "kernel, and many of them are infrequently used and not much developer "
39552 "attention has been paid to the code. Linux userspace helps potential "
39553 "crackers by detecting the filesystem type and automatically choosing the "
39554 "right VFS driver, even if that filesystem type is obscure or unexpected for "
39555 "the administrator. Secondly, a kernel-level exploit is like a local root "
39556 "exploit (worse in some ways), giving immediate and total access to the "
39557 "system right down to the hardware level."
39561 #: ../src/guestfs.pod:1220
39563 "That explains why you should never mount a filesystem from an untrusted "
39564 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
39565 "inside a qemu virtual machine, usually running as a non-root user. The "
39566 "attacker would need to write a filesystem which first exploited the kernel, "
39567 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
39568 "the libguestfs protocol, and finally to be as serious as the host kernel "
39569 "exploit it would need to escalate its privileges to root. This multi-step "
39570 "escalation, performed by a static piece of data, is thought to be extremely "
39571 "hard to do, although we never say 'never' about security issues."
39575 #: ../src/guestfs.pod:1231
39577 "In any case callers can reduce the attack surface by forcing the filesystem "
39578 "type when mounting (use L</guestfs_mount_vfs>)."
39582 #: ../src/guestfs.pod:1234
39583 msgid "PROTOCOL SECURITY"
39584 msgstr "ЗАХИСТ ПРОТОКОЛУ"
39587 #: ../src/guestfs.pod:1236
39589 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
39590 "defined upper message size. However a program that uses libguestfs must "
39591 "also take care - for example you can write a program that downloads a binary "
39592 "from a disk image and executes it locally, and no amount of protocol "
39593 "security will save you from the consequences."
39597 #: ../src/guestfs.pod:1242
39598 msgid "INSPECTION SECURITY"
39602 #: ../src/guestfs.pod:1244
39604 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
39605 "directly from the guest, and these could contain any 8 bit data. Callers "
39606 "should be careful to escape these before printing them to a structured file "
39607 "(for example, use HTML escaping if creating a web page)."
39611 #: ../src/guestfs.pod:1250
39613 "Guest configuration may be altered in unusual ways by the administrator of "
39614 "the virtual machine, and may not reflect reality (particularly for untrusted "
39615 "or actively malicious guests). For example we parse the hostname from "
39616 "configuration files like C</etc/sysconfig/network> that we find in the "
39617 "guest, but the guest administrator can easily manipulate these files to "
39618 "provide the wrong hostname."
39622 #: ../src/guestfs.pod:1258
39624 "The inspection API parses guest configuration using two external libraries: "
39625 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
39626 "designed to be robust in the face of malicious data, although denial of "
39627 "service attacks are still possible, for example with oversized configuration "
39632 #: ../src/guestfs.pod:1264
39633 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
39634 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
39637 #: ../src/guestfs.pod:1266
39639 "Be very cautious about running commands from the guest. By running a "
39640 "command in the guest, you are giving CPU time to a binary that you do not "
39641 "control, under the same user account as the library, albeit wrapped in qemu "
39642 "virtualization. More information and alternatives can be found in the "
39643 "section L</RUNNING COMMANDS>."
39647 #: ../src/guestfs.pod:1272
39648 msgid "CVE-2010-3851"
39649 msgstr "CVE-2010-3851"
39652 #: ../src/guestfs.pod:1274
39653 msgid "https://bugzilla.redhat.com/642934"
39654 msgstr "https://bugzilla.redhat.com/642934"
39657 #: ../src/guestfs.pod:1276
39659 "This security bug concerns the automatic disk format detection that qemu "
39660 "does on disk images."
39664 #: ../src/guestfs.pod:1279
39666 "A raw disk image is just the raw bytes, there is no header. Other disk "
39667 "images like qcow2 contain a special header. Qemu deals with this by looking "
39668 "for one of the known headers, and if none is found then assuming the disk "
39669 "image must be raw."
39673 #: ../src/guestfs.pod:1284
39675 "This allows a guest which has been given a raw disk image to write some "
39676 "other header. At next boot (or when the disk image is accessed by "
39677 "libguestfs) qemu would do autodetection and think the disk image format was, "
39678 "say, qcow2 based on the header written by the guest."
39682 #: ../src/guestfs.pod:1289
39684 "This in itself would not be a problem, but qcow2 offers many features, one "
39685 "of which is to allow a disk image to refer to another image (called the "
39686 "\"backing disk\"). It does this by placing the path to the backing disk "
39687 "into the qcow2 header. This path is not validated and could point to any "
39688 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
39689 "\"holes\" in the qcow2 disk image, which of course is completely under the "
39690 "control of the attacker."
39694 #: ../src/guestfs.pod:1297
39696 "In libguestfs this is rather hard to exploit except under two circumstances:"
39700 #: ../src/guestfs.pod:1304
39701 msgid "You have enabled the network or have opened the disk in write mode."
39705 #: ../src/guestfs.pod:1308
39707 "You are also running untrusted code from the guest (see L</RUNNING "
39712 #: ../src/guestfs.pod:1313
39714 "The way to avoid this is to specify the expected disk format when adding "
39715 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
39716 "should always do this if the disk is raw format, and it's a good idea for "
39721 #: ../src/guestfs.pod:1318
39723 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
39724 "format is fetched from libvirt and passed through."
39728 #: ../src/guestfs.pod:1321
39730 "For libguestfs tools, use the I<--format> command line parameter as "
39735 #: ../src/guestfs.pod:1324
39736 msgid "CONNECTION MANAGEMENT"
39737 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
39740 #: ../src/guestfs.pod:1326
39741 msgid "guestfs_h *"
39742 msgstr "guestfs_h *"
39745 #: ../src/guestfs.pod:1328
39747 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
39748 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
39749 "handle and release all resources used."
39753 #: ../src/guestfs.pod:1332
39755 "For information on using multiple handles and threads, see the section L</"
39756 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
39760 #: ../src/guestfs.pod:1335
39761 msgid "guestfs_create"
39762 msgstr "guestfs_create"
39765 #: ../src/guestfs.pod:1337
39768 " guestfs_h *guestfs_create (void);\n"
39771 " guestfs_h *guestfs_create (void);\n"
39775 #: ../src/guestfs.pod:1339
39776 msgid "Create a connection handle."
39777 msgstr "Створити дескриптор з’єднання."
39780 #: ../src/guestfs.pod:1341
39782 "On success this returns a non-NULL pointer to a handle. On error it returns "
39787 #: ../src/guestfs.pod:1344
39789 "You have to \"configure\" the handle after creating it. This includes "
39790 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
39791 "handle at least once."
39795 #: ../src/guestfs.pod:1348
39796 msgid "After configuring the handle, you have to call L</guestfs_launch>."
39800 #: ../src/guestfs.pod:1350
39802 "You may also want to configure error handling for the handle. See the L</"
39803 "ERROR HANDLING> section below."
39807 #: ../src/guestfs.pod:1353
39808 msgid "guestfs_close"
39809 msgstr "guestfs_close"
39812 #: ../src/guestfs.pod:1355
39815 " void guestfs_close (guestfs_h *g);\n"
39818 " void guestfs_close (guestfs_h *g);\n"
39822 #: ../src/guestfs.pod:1357
39823 msgid "This closes the connection handle and frees up all resources used."
39827 #: ../src/guestfs.pod:1359
39829 "If autosync was set on the handle and the handle was launched, then this "
39830 "implicitly calls various functions to unmount filesystems and sync the "
39831 "disk. See L</guestfs_set_autosync> for more details."
39835 #: ../src/guestfs.pod:1363
39836 msgid "If a close callback was set on the handle, then it is called."
39840 #: ../src/guestfs.pod:1365
39841 msgid "ERROR HANDLING"
39842 msgstr "ОБРОБКА ПОМИЛОК"
39845 #: ../src/guestfs.pod:1367
39847 "API functions can return errors. For example, almost all functions that "
39848 "return C<int> will return C<-1> to indicate an error."
39852 #: ../src/guestfs.pod:1370
39854 "Additional information is available for errors: an error message string and "
39855 "optionally an error number (errno) if the thing that failed was a system "
39860 #: ../src/guestfs.pod:1374
39862 "You can get at the additional information about the last error on the handle "
39863 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
39864 "up an error handler with L</guestfs_set_error_handler>."
39868 #: ../src/guestfs.pod:1379
39870 "When the handle is created, a default error handler is installed which "
39871 "prints the error message string to C<stderr>. For small short-running "
39872 "command line programs it is sufficient to do:"
39876 #: ../src/guestfs.pod:1383
39879 " if (guestfs_launch (g) == -1)\n"
39880 " exit (EXIT_FAILURE);\n"
39883 " if (guestfs_launch (g) == -1)\n"
39884 " exit (EXIT_FAILURE);\n"
39888 #: ../src/guestfs.pod:1386
39890 "since the default error handler will ensure that an error message has been "
39891 "printed to C<stderr> before the program exits."
39895 #: ../src/guestfs.pod:1389
39897 "For other programs the caller will almost certainly want to install an "
39898 "alternate error handler or do error handling in-line like this:"
39902 #: ../src/guestfs.pod:1392
39905 " /* This disables the default behaviour of printing errors\n"
39907 " guestfs_set_error_handler (g, NULL, NULL);\n"
39912 #: ../src/guestfs.pod:1396
39915 " if (guestfs_launch (g) == -1) {\n"
39916 " /* Examine the error message and print it etc. */\n"
39917 " char *msg = guestfs_last_error (g);\n"
39918 " int errnum = guestfs_last_errno (g);\n"
39919 " fprintf (stderr, \"%s\", msg);\n"
39920 " if (errnum != 0)\n"
39921 " fprintf (stderr, \": %s\", strerror (errnum));\n"
39922 " fprintf (stderr, \"\\n\");\n"
39929 #: ../src/guestfs.pod:1407
39931 "Out of memory errors are handled differently. The default action is to call "
39932 "L<abort(3)>. If this is undesirable, then you can set a handler using L</"
39933 "guestfs_set_out_of_memory_handler>."
39937 #: ../src/guestfs.pod:1411
39939 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
39940 "because there is no handle if this happens there is no way to get additional "
39941 "error information. However L</guestfs_create> is supposed to be a "
39942 "lightweight operation which can only fail because of insufficient memory (it "
39943 "returns NULL in this case)."
39947 #: ../src/guestfs.pod:1417
39948 msgid "guestfs_last_error"
39949 msgstr "guestfs_last_error"
39952 #: ../src/guestfs.pod:1419
39955 " const char *guestfs_last_error (guestfs_h *g);\n"
39958 " const char *guestfs_last_error (guestfs_h *g);\n"
39962 #: ../src/guestfs.pod:1421
39964 "This returns the last error message that happened on C<g>. If there has not "
39965 "been an error since the handle was created, then this returns C<NULL>."
39969 #: ../src/guestfs.pod:1425
39971 "The lifetime of the returned string is until the next error occurs, or L</"
39972 "guestfs_close> is called."
39976 #: ../src/guestfs.pod:1428
39977 msgid "guestfs_last_errno"
39978 msgstr "guestfs_last_errno"
39981 #: ../src/guestfs.pod:1430
39984 " int guestfs_last_errno (guestfs_h *g);\n"
39987 " int guestfs_last_errno (guestfs_h *g);\n"
39991 #: ../src/guestfs.pod:1432
39992 msgid "This returns the last error number (errno) that happened on C<g>."
39996 #: ../src/guestfs.pod:1434
39997 msgid "If successful, an errno integer not equal to zero is returned."
40001 #: ../src/guestfs.pod:1436
40003 "If no error, this returns 0. This call can return 0 in three situations:"
40007 #: ../src/guestfs.pod:1443
40008 msgid "There has not been any error on the handle."
40012 #: ../src/guestfs.pod:1447
40014 "There has been an error but the errno was meaningless. This corresponds to "
40015 "the case where the error did not come from a failed system call, but for "
40016 "some other reason."
40020 #: ../src/guestfs.pod:1453
40022 "There was an error from a failed system call, but for some reason the errno "
40023 "was not captured and returned. This usually indicates a bug in libguestfs."
40027 #: ../src/guestfs.pod:1459
40029 "Libguestfs tries to convert the errno from inside the applicance into a "
40030 "corresponding errno for the caller (not entirely trivial: the appliance "
40031 "might be running a completely different operating system from the library "
40032 "and error numbers are not standardized across Un*xen). If this could not be "
40033 "done, then the error is translated to C<EINVAL>. In practice this should "
40034 "only happen in very rare circumstances."
40038 #: ../src/guestfs.pod:1467
40039 msgid "guestfs_set_error_handler"
40040 msgstr "guestfs_set_error_handler"
40043 #: ../src/guestfs.pod:1469
40046 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
40048 " const char *msg);\n"
40049 " void guestfs_set_error_handler (guestfs_h *g,\n"
40050 " guestfs_error_handler_cb cb,\n"
40051 " void *opaque);\n"
40054 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
40056 " const char *msg);\n"
40057 " void guestfs_set_error_handler (guestfs_h *g,\n"
40058 " guestfs_error_handler_cb cb,\n"
40059 " void *opaque);\n"
40063 #: ../src/guestfs.pod:1476
40065 "The callback C<cb> will be called if there is an error. The parameters "
40066 "passed to the callback are an opaque data pointer and the error message "
40071 #: ../src/guestfs.pod:1480
40073 "C<errno> is not passed to the callback. To get that the callback must call "
40074 "L</guestfs_last_errno>."
40078 #: ../src/guestfs.pod:1483
40080 "Note that the message string C<msg> is freed as soon as the callback "
40081 "function returns, so if you want to stash it somewhere you must make your "
40086 #: ../src/guestfs.pod:1487
40087 msgid "The default handler prints messages on C<stderr>."
40091 #: ../src/guestfs.pod:1489
40092 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
40096 #: ../src/guestfs.pod:1491
40097 msgid "guestfs_get_error_handler"
40098 msgstr "guestfs_get_error_handler"
40101 #: ../src/guestfs.pod:1493
40104 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
40105 " void **opaque_rtn);\n"
40108 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
40109 " void **opaque_rtn);\n"
40113 #: ../src/guestfs.pod:1496
40114 msgid "Returns the current error handler callback."
40118 #: ../src/guestfs.pod:1498
40119 msgid "guestfs_set_out_of_memory_handler"
40120 msgstr "guestfs_set_out_of_memory_handler"
40123 #: ../src/guestfs.pod:1500
40126 " typedef void (*guestfs_abort_cb) (void);\n"
40127 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
40128 " guestfs_abort_cb);\n"
40133 #: ../src/guestfs.pod:1504
40135 "The callback C<cb> will be called if there is an out of memory situation. "
40136 "I<Note this callback must not return>."
40140 #: ../src/guestfs.pod:1507
40141 msgid "The default is to call L<abort(3)>."
40145 #: ../src/guestfs.pod:1509
40147 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
40151 #: ../src/guestfs.pod:1512
40152 msgid "guestfs_get_out_of_memory_handler"
40153 msgstr "guestfs_get_out_of_memory_handler"
40156 #: ../src/guestfs.pod:1514
40159 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
40162 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
40166 #: ../src/guestfs.pod:1516
40167 msgid "This returns the current out of memory handler."
40171 #: ../src/guestfs.pod:1518
40173 msgstr "ВИКЛИКИ API"
40176 #: ../src/guestfs.pod:1522
40181 #: ../src/guestfs.pod:1524
40186 #: ../src/guestfs.pod:1526
40187 msgid "AVAILABILITY"
40188 msgstr "ДОСТУПНІСТЬ"
40191 #: ../src/guestfs.pod:1528
40192 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
40193 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
40196 #: ../src/guestfs.pod:1530
40198 "Using L</guestfs_available> you can test availability of the following "
40199 "groups of functions. This test queries the appliance to see if the "
40200 "appliance you are currently using supports the functionality."
40204 #: ../src/guestfs.pod:1535
40205 msgid "@AVAILABILITY@"
40206 msgstr "@AVAILABILITY@"
40209 #: ../src/guestfs.pod:1537
40210 msgid "GUESTFISH supported COMMAND"
40214 #: ../src/guestfs.pod:1539
40216 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
40217 "prints out the available groups and whether they are supported by this build "
40218 "of libguestfs. Note however that you have to do C<run> first."
40222 #: ../src/guestfs.pod:1544
40223 msgid "SINGLE CALLS AT COMPILE TIME"
40227 #: ../src/guestfs.pod:1546
40229 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
40230 "function, such as:"
40234 #: ../src/guestfs.pod:1549
40237 " #define LIBGUESTFS_HAVE_DD 1\n"
40240 " #define LIBGUESTFS_HAVE_DD 1\n"
40244 #: ../src/guestfs.pod:1551
40245 msgid "if L</guestfs_dd> is available."
40249 #: ../src/guestfs.pod:1553
40251 "Before version 1.5.8, if you needed to test whether a single libguestfs "
40252 "function is available at compile time, we recommended using build tools such "
40253 "as autoconf or cmake. For example in autotools you could use:"
40257 #: ../src/guestfs.pod:1558
40260 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
40261 " AC_CHECK_FUNCS([guestfs_dd])\n"
40264 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
40265 " AC_CHECK_FUNCS([guestfs_dd])\n"
40269 #: ../src/guestfs.pod:1561
40271 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
40276 #: ../src/guestfs.pod:1564
40277 msgid "SINGLE CALLS AT RUN TIME"
40281 #: ../src/guestfs.pod:1566
40283 "Testing at compile time doesn't guarantee that a function really exists in "
40284 "the library. The reason is that you might be dynamically linked against a "
40285 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
40286 "This situation unfortunately results in a segmentation fault, which is a "
40287 "shortcoming of the C dynamic linking system itself."
40291 #: ../src/guestfs.pod:1573
40293 "You can use L<dlopen(3)> to test if a function is available at run time, as "
40294 "in this example program (note that you still need the compile time check as "
40299 #: ../src/guestfs.pod:1577
40302 " #include <stdio.h>\n"
40303 " #include <stdlib.h>\n"
40304 " #include <unistd.h>\n"
40305 " #include <dlfcn.h>\n"
40306 " #include <guestfs.h>\n"
40309 " #include <stdio.h>\n"
40310 " #include <stdlib.h>\n"
40311 " #include <unistd.h>\n"
40312 " #include <dlfcn.h>\n"
40313 " #include <guestfs.h>\n"
40317 #: ../src/guestfs.pod:1583
40322 " #ifdef LIBGUESTFS_HAVE_DD\n"
40324 " int has_function;\n"
40329 " #ifdef LIBGUESTFS_HAVE_DD\n"
40331 " int has_function;\n"
40335 #: ../src/guestfs.pod:1589
40338 " /* Test if the function guestfs_dd is really available. */\n"
40339 " dl = dlopen (NULL, RTLD_LAZY);\n"
40341 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
40342 " exit (EXIT_FAILURE);\n"
40344 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
40350 #: ../src/guestfs.pod:1598
40353 " if (!has_function)\n"
40354 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
40356 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
40357 " /* Now it's safe to call\n"
40358 " guestfs_dd (g, \"foo\", \"bar\");\n"
40362 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
40369 #: ../src/guestfs.pod:1611
40371 "You may think the above is an awful lot of hassle, and it is. There are "
40372 "other ways outside of the C linking system to ensure that this kind of "
40373 "incompatibility never arises, such as using package versioning:"
40377 #: ../src/guestfs.pod:1616
40380 " Requires: libguestfs >= 1.0.80\n"
40385 #: ../src/guestfs.pod:1618
40386 msgid "CALLS WITH OPTIONAL ARGUMENTS"
40390 #: ../src/guestfs.pod:1620
40392 "A recent feature of the API is the introduction of calls which take optional "
40393 "arguments. In C these are declared 3 ways. The main way is as a call which "
40394 "takes variable arguments (ie. C<...>), as in this example:"
40398 #: ../src/guestfs.pod:1625
40401 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
40404 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
40408 #: ../src/guestfs.pod:1627
40410 "Call this with a list of optional arguments, terminated by C<-1>. So to "
40411 "call with no optional arguments specified:"
40415 #: ../src/guestfs.pod:1630
40418 " guestfs_add_drive_opts (g, filename, -1);\n"
40421 " guestfs_add_drive_opts (g, filename, -1);\n"
40425 #: ../src/guestfs.pod:1632
40426 msgid "With a single optional argument:"
40430 #: ../src/guestfs.pod:1634
40433 " guestfs_add_drive_opts (g, filename,\n"
40434 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40438 " guestfs_add_drive_opts (g, filename,\n"
40439 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40444 #: ../src/guestfs.pod:1638
40449 #: ../src/guestfs.pod:1640
40452 " guestfs_add_drive_opts (g, filename,\n"
40453 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40454 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
40458 " guestfs_add_drive_opts (g, filename,\n"
40459 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40460 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
40465 #: ../src/guestfs.pod:1645
40467 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
40472 #: ../src/guestfs.pod:1648
40473 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
40477 #: ../src/guestfs.pod:1650
40479 "The second variant has the same name with the suffix C<_va>, which works the "
40480 "same way but takes a C<va_list>. See the C manual for details. For the "
40481 "example function, this is declared:"
40485 #: ../src/guestfs.pod:1654
40488 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
40489 " va_list args);\n"
40492 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
40493 " va_list args);\n"
40497 #: ../src/guestfs.pod:1657
40498 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
40502 #: ../src/guestfs.pod:1659
40504 "The third variant is useful where you need to construct these calls. You "
40505 "pass in a structure where you fill in the optional fields. The structure "
40506 "has a bitmask as the first element which you must set to indicate which "
40507 "fields you have filled in. For our example function the structure and call "
40512 #: ../src/guestfs.pod:1665
40515 " struct guestfs_add_drive_opts_argv {\n"
40516 " uint64_t bitmask;\n"
40518 " const char *format;\n"
40521 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
40522 " const struct guestfs_add_drive_opts_argv *optargs);\n"
40525 " struct guestfs_add_drive_opts_argv {\n"
40526 " uint64_t bitmask;\n"
40528 " const char *format;\n"
40531 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
40532 " const struct guestfs_add_drive_opts_argv *optargs);\n"
40536 #: ../src/guestfs.pod:1674
40537 msgid "You could call it like this:"
40541 #: ../src/guestfs.pod:1676
40544 " struct guestfs_add_drive_opts_argv optargs = {\n"
40545 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
40546 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
40547 " .readonly = 1,\n"
40548 " .format = \"qcow2\"\n"
40552 " struct guestfs_add_drive_opts_argv optargs = {\n"
40553 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
40554 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
40555 " .readonly = 1,\n"
40556 " .format = \"qcow2\"\n"
40561 #: ../src/guestfs.pod:1683
40564 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
40567 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
40571 #: ../src/guestfs.pod:1691
40572 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
40576 #: ../src/guestfs.pod:1696
40577 msgid "You do not need to fill in all fields of the structure."
40581 #: ../src/guestfs.pod:1700
40583 "There must be a one-to-one correspondence between fields of the structure "
40584 "that are filled in, and bits set in the bitmask."
40588 #: ../src/guestfs.pod:1705
40589 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
40593 #: ../src/guestfs.pod:1707
40595 "In other languages, optional arguments are expressed in the way that is "
40596 "natural for that language. We refer you to the language-specific "
40597 "documentation for more details on that."
40601 #: ../src/guestfs.pod:1711
40602 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
40606 #: ../src/guestfs.pod:1713
40607 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
40611 #: ../src/guestfs.pod:1715
40613 "B<Note:> This section documents the generic event mechanism introduced in "
40614 "libguestfs 1.10, which you should use in new code if possible. The old "
40615 "functions C<guestfs_set_log_message_callback>, "
40616 "C<guestfs_set_subprocess_quit_callback>, "
40617 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
40618 "C<guestfs_set_progress_callback> are no longer documented in this manual "
40619 "page. Because of the ABI guarantee, the old functions continue to work."
40623 #: ../src/guestfs.pod:1724
40625 "Handles generate events when certain things happen, such as log messages "
40626 "being generated, progress messages during long-running operations, or the "
40627 "handle being closed. The API calls described below let you register a "
40628 "callback to be called when events happen. You can register multiple "
40629 "callbacks (for the same, different or overlapping sets of events), and "
40630 "individually remove callbacks. If callbacks are not removed, then they "
40631 "remain in force until the handle is closed."
40635 #: ../src/guestfs.pod:1732
40637 "In the current implementation, events are only generated synchronously: that "
40638 "means that events (and hence callbacks) can only happen while you are in the "
40639 "middle of making another libguestfs call. The callback is called in the "
40644 #: ../src/guestfs.pod:1737
40646 "Events may contain a payload, usually nothing (void), an array of 64 bit "
40647 "unsigned integers, or a message buffer. Payloads are discussed later on."
40651 #: ../src/guestfs.pod:1741
40652 msgid "CLASSES OF EVENTS"
40656 #: ../src/guestfs.pod:1745
40657 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
40661 #: ../src/guestfs.pod:1748
40663 "The callback function will be called while the handle is being closed "
40664 "(synchronously from L</guestfs_close>)."
40668 #: ../src/guestfs.pod:1751
40670 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
40671 "handles that are open when the program exits. This means that this callback "
40672 "might be called indirectly from L<exit(3)>, which can cause unexpected "
40673 "problems in higher-level languages (eg. if your HLL interpreter has already "
40674 "been cleaned up by the time this is called, and if your callback then jumps "
40675 "into some HLL function)."
40679 #: ../src/guestfs.pod:1758
40681 "If no callback is registered: the handle is closed without any callback "
40686 #: ../src/guestfs.pod:1761
40687 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
40691 #: ../src/guestfs.pod:1764
40693 "The callback function will be called when the child process quits, either "
40694 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
40695 "corresponds to a transition from any state to the CONFIG state)."
40699 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
40700 msgid "If no callback is registered: the event is ignored."
40704 #: ../src/guestfs.pod:1770
40705 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
40709 #: ../src/guestfs.pod:1773
40711 "The callback function will be called when the child process becomes ready "
40712 "first time after it has been launched. (This corresponds to a transition "
40713 "from LAUNCHING to the READY state)."
40717 #: ../src/guestfs.pod:1779
40718 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
40722 #: ../src/guestfs.pod:1782
40724 "Some long-running operations can generate progress messages. If this "
40725 "callback is registered, then it will be called each time a progress message "
40726 "is generated (usually two seconds after the operation started, and three "
40727 "times per second thereafter until it completes, although the frequency may "
40728 "change in future versions)."
40732 #: ../src/guestfs.pod:1788
40734 "The callback receives in the payload four unsigned 64 bit numbers which are "
40735 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
40739 #: ../src/guestfs.pod:1791
40741 "The units of C<total> are not defined, although for some operations C<total> "
40742 "may relate in some way to the amount of data to be transferred (eg. in bytes "
40743 "or megabytes), and C<position> may be the portion which has been transferred."
40747 #: ../src/guestfs.pod:1796
40748 msgid "The only defined and stable parts of the API are:"
40752 #: ../src/guestfs.pod:1802
40754 "The callback can display to the user some type of progress bar or indicator "
40755 "which shows the ratio of C<position>:C<total>."
40759 #: ../src/guestfs.pod:1807
40760 msgid "0 E<lt>= C<position> E<lt>= C<total>"
40764 #: ../src/guestfs.pod:1811
40766 "If any progress notification is sent during a call, then a final progress "
40767 "notification is always sent when C<position> = C<total> (I<unless> the call "
40768 "fails with an error)."
40772 #: ../src/guestfs.pod:1815
40774 "This is to simplify caller code, so callers can easily set the progress "
40775 "indicator to \"100%\" at the end of the operation, without requiring special "
40776 "code to detect this case."
40780 #: ../src/guestfs.pod:1821
40782 "For some calls we are unable to estimate the progress of the call, but we "
40783 "can still generate progress messages to indicate activity. This is known as "
40784 "\"pulse mode\", and is directly supported by certain progress bar "
40785 "implementations (eg. GtkProgressBar)."
40789 #: ../src/guestfs.pod:1826
40791 "For these calls, zero or more progress messages are generated with "
40792 "C<position = 0> and C<total = 1>, followed by a final message with "
40793 "C<position = total = 1>."
40797 #: ../src/guestfs.pod:1830
40799 "As noted above, if the call fails with an error then the final message may "
40800 "not be generated."
40804 #: ../src/guestfs.pod:1835
40806 "The callback also receives the procedure number (C<proc_nr>) and serial "
40807 "number (C<serial>) of the call. These are only useful for debugging "
40808 "protocol issues, and the callback can normally ignore them. The callback "
40809 "may want to print these numbers in error messages or debugging messages."
40813 #: ../src/guestfs.pod:1841
40814 msgid "If no callback is registered: progress messages are discarded."
40818 #: ../src/guestfs.pod:1843
40819 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
40823 #: ../src/guestfs.pod:1846
40825 "The callback function is called whenever a log message is generated by qemu, "
40826 "the appliance kernel, guestfsd (daemon), or utility programs."
40830 #: ../src/guestfs.pod:1849
40832 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
40833 "guestfs_launch>) then additional debug messages are generated."
40837 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
40839 "If no callback is registered: the messages are discarded unless the verbose "
40840 "flag is set in which case they are sent to stderr. You can override the "
40841 "printing of verbose messages to stderr by setting up a callback."
40845 #: ../src/guestfs.pod:1857
40846 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
40850 #: ../src/guestfs.pod:1860
40852 "The callback function is called whenever a log message is generated by the "
40853 "library part of libguestfs."
40857 #: ../src/guestfs.pod:1863
40859 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
40860 "messages are generated."
40864 #: ../src/guestfs.pod:1871
40865 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
40869 #: ../src/guestfs.pod:1874
40871 "The callback function is called whenever a trace message is generated. This "
40872 "only applies if the trace flag (L</guestfs_set_trace>) is set."
40876 #: ../src/guestfs.pod:1877
40878 "If no callback is registered: the messages are sent to stderr. You can "
40879 "override the printing of trace messages to stderr by setting up a callback."
40883 #: ../src/guestfs.pod:1881
40884 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
40888 #: ../src/guestfs.pod:1884
40890 "The callback function is called whenever a libguestfs function is entered."
40894 #: ../src/guestfs.pod:1887
40896 "The payload is a string which contains the name of the function that we are "
40897 "entering (not including C<guestfs_> prefix)."
40901 #: ../src/guestfs.pod:1890
40903 "Note that libguestfs functions can call themselves, so you may see many "
40904 "events from a single call. A few libguestfs functions do not generate this "
40909 #: ../src/guestfs.pod:1898
40910 msgid "guestfs_set_event_callback"
40914 #: ../src/guestfs.pod:1900
40917 " int guestfs_set_event_callback (guestfs_h *g,\n"
40918 " guestfs_event_callback cb,\n"
40919 " uint64_t event_bitmask,\n"
40921 " void *opaque);\n"
40926 #: ../src/guestfs.pod:1906
40928 "This function registers a callback (C<cb>) for all event classes in the "
40929 "C<event_bitmask>."
40933 #: ../src/guestfs.pod:1909
40935 "For example, to register for all log message events, you could call this "
40936 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. "
40937 "To register a single callback for all possible classes of events, use "
40938 "C<GUESTFS_EVENT_ALL>."
40942 #: ../src/guestfs.pod:1915
40943 msgid "C<flags> should always be passed as 0."
40947 #: ../src/guestfs.pod:1917
40949 "C<opaque> is an opaque pointer which is passed to the callback. You can use "
40950 "it for any purpose."
40954 #: ../src/guestfs.pod:1920
40956 "The return value is the event handle (an integer) which you can use to "
40957 "delete the callback (see below)."
40961 #: ../src/guestfs.pod:1923
40963 "If there is an error, this function returns C<-1>, and sets the error in the "
40964 "handle in the usual way (see L</guestfs_last_error> etc.)"
40968 #: ../src/guestfs.pod:1926
40970 "Callbacks remain in effect until they are deleted, or until the handle is "
40975 #: ../src/guestfs.pod:1929
40977 "In the case where multiple callbacks are registered for a particular event "
40978 "class, all of the callbacks are called. The order in which multiple "
40979 "callbacks are called is not defined."
40983 #: ../src/guestfs.pod:1933
40984 msgid "guestfs_delete_event_callback"
40988 #: ../src/guestfs.pod:1935
40991 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
40996 #: ../src/guestfs.pod:1937
40998 "Delete a callback that was previously registered. C<event_handle> should be "
40999 "the integer that was returned by a previous call to "
41000 "C<guestfs_set_event_callback> on the same handle."
41004 #: ../src/guestfs.pod:1941
41005 msgid "guestfs_event_callback"
41009 #: ../src/guestfs.pod:1943
41012 " typedef void (*guestfs_event_callback) (\n"
41015 " uint64_t event,\n"
41016 " int event_handle,\n"
41018 " const char *buf, size_t buf_len,\n"
41019 " const uint64_t *array, size_t array_len);\n"
41024 #: ../src/guestfs.pod:1952
41026 "This is the type of the event callback function that you have to provide."
41030 #: ../src/guestfs.pod:1955
41032 "The basic parameters are: the handle (C<g>), the opaque user pointer "
41033 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
41034 "handle, and C<flags> which in the current API you should ignore."
41038 #: ../src/guestfs.pod:1959
41040 "The remaining parameters contain the event payload (if any). Each event may "
41041 "contain a payload, which usually relates to the event class, but for future "
41042 "proofing your code should be written to handle any payload for any event "
41047 #: ../src/guestfs.pod:1964
41049 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
41050 "there is no message buffer). Note that this message buffer can contain "
41051 "arbitrary 8 bit data, including NUL bytes."
41055 #: ../src/guestfs.pod:1968
41057 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
41058 "moment this is only used for progress messages."
41062 #: ../src/guestfs.pod:1971
41063 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
41067 #: ../src/guestfs.pod:1973
41069 "One motivation for the generic event API was to allow GUI programs to "
41070 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
41071 "unconditionally to C<stderr>."
41075 #: ../src/guestfs.pod:1977
41077 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
41078 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
41079 "messages are not events; you must capture error messages separately)."
41083 #: ../src/guestfs.pod:1982
41085 "Programs have to set up a callback to capture the classes of events of "
41090 #: ../src/guestfs.pod:1985
41094 " guestfs_set_event_callback\n"
41095 " (g, message_callback,\n"
41096 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
41097 " GUESTFS_EVENT_TRACE,\n"
41098 " 0, NULL) == -1)\n"
41099 " if (eh == -1) {\n"
41100 " // handle error in the usual way\n"
41106 #: ../src/guestfs.pod:1995
41108 "The callback can then direct messages to the appropriate place. In this "
41109 "example, messages are directed to syslog:"
41113 #: ../src/guestfs.pod:1998
41117 " message_callback (\n"
41120 " uint64_t event,\n"
41121 " int event_handle,\n"
41123 " const char *buf, size_t buf_len,\n"
41124 " const uint64_t *array, size_t array_len)\n"
41126 " const int priority = LOG_USER|LOG_INFO;\n"
41127 " if (buf_len > 0)\n"
41128 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
41134 #: ../src/guestfs.pod:2013
41135 msgid "CANCELLING LONG TRANSFERS"
41139 #: ../src/guestfs.pod:2015
41141 "Some operations can be cancelled by the caller while they are in progress. "
41142 "Currently only operations that involve uploading or downloading data can be "
41143 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
41144 "parameters in the generator)."
41148 #: ../src/guestfs.pod:2020
41149 msgid "guestfs_user_cancel"
41153 #: ../src/guestfs.pod:2022
41156 " void guestfs_user_cancel (guestfs_h *g);\n"
41161 #: ../src/guestfs.pod:2024
41163 "C<guestfs_user_cancel> cancels the current upload or download operation."
41167 #: ../src/guestfs.pod:2027
41169 "Unlike most other libguestfs calls, this function is signal safe and thread "
41170 "safe. You can call it from a signal handler or from another thread, without "
41171 "needing to do any locking."
41175 #: ../src/guestfs.pod:2031
41177 "The transfer that was in progress (if there is one) will stop shortly "
41178 "afterwards, and will return an error. The errno (see L</"
41179 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
41180 "out if the operation was cancelled or failed because of another error."
41184 #: ../src/guestfs.pod:2037
41186 "No cleanup is performed: for example, if a file was being uploaded then "
41187 "after cancellation there may be a partially uploaded file. It is the "
41188 "caller's responsibility to clean up if necessary."
41192 #: ../src/guestfs.pod:2041
41193 msgid "There are two common places that you might call C<guestfs_user_cancel>."
41197 #: ../src/guestfs.pod:2043
41199 "In an interactive text-based program, you might call it from a C<SIGINT> "
41200 "signal handler so that pressing C<^C> cancels the current operation. (You "
41201 "also need to call L</guestfs_set_pgroup> so that child processes don't "
41202 "receive the C<^C> signal)."
41206 #: ../src/guestfs.pod:2048
41208 "In a graphical program, when the main thread is displaying a progress bar "
41209 "with a cancel button, wire up the cancel button to call this function."
41213 #: ../src/guestfs.pod:2052
41214 msgid "PRIVATE DATA AREA"
41218 #: ../src/guestfs.pod:2054
41220 "You can attach named pieces of private data to the libguestfs handle, fetch "
41221 "them by name, and walk over them, for the lifetime of the handle. This is "
41222 "called the private data area and is only available from the C API."
41226 #: ../src/guestfs.pod:2059
41227 msgid "To attach a named piece of data, use the following call:"
41231 #: ../src/guestfs.pod:2061
41234 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
41237 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
41241 #: ../src/guestfs.pod:2063
41243 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
41244 "pointer (which can be C<NULL>). Any previous item with the same key is "
41249 #: ../src/guestfs.pod:2067
41251 "You can use any C<key> you want, but your key should I<not> start with an "
41252 "underscore character. Keys beginning with an underscore character are "
41253 "reserved for internal libguestfs purposes (eg. for implementing language "
41254 "bindings). It is recommended that you prefix the key with some unique "
41255 "string to avoid collisions with other users."
41259 #: ../src/guestfs.pod:2073
41260 msgid "To retrieve the pointer, use:"
41264 #: ../src/guestfs.pod:2075
41267 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
41270 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
41274 #: ../src/guestfs.pod:2077
41276 "This function returns C<NULL> if either no data is found associated with "
41277 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
41282 #: ../src/guestfs.pod:2081
41284 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
41285 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
41286 "all. In particular, libguestfs does I<not> try to free the data when the "
41287 "handle is closed. If the data must be freed, then the caller must either "
41288 "free it before calling L</guestfs_close> or must set up a close callback to "
41289 "do it (see L</GUESTFS_EVENT_CLOSE>)."
41293 #: ../src/guestfs.pod:2088
41294 msgid "To walk over all entries, use these two functions:"
41298 #: ../src/guestfs.pod:2090
41301 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
41306 #: ../src/guestfs.pod:2092
41309 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
41314 #: ../src/guestfs.pod:2094
41316 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
41317 "not have any particular meaning -- keys are not returned in any defined "
41318 "order). A pointer to the key is returned in C<*key_rtn> and the "
41319 "corresponding data pointer is returned from the function. C<NULL> is "
41320 "returned if there are no keys stored in the handle."
41324 #: ../src/guestfs.pod:2100
41326 "C<guestfs_next_private> returns the next key, pointer pair. The return "
41327 "value of this function is also C<NULL> is there are no further entries to "
41332 #: ../src/guestfs.pod:2104
41333 msgid "Notes about walking over entries:"
41337 #: ../src/guestfs.pod:2110
41339 "You must not call C<guestfs_set_private> while walking over the entries."
41343 #: ../src/guestfs.pod:2115
41345 "The handle maintains an internal iterator which is reset when you call "
41346 "C<guestfs_first_private>. This internal iterator is invalidated when you "
41347 "call C<guestfs_set_private>."
41351 #: ../src/guestfs.pod:2121
41352 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
41356 #: ../src/guestfs.pod:2123
41359 " guestfs_set_private (g, key, NULL);\n"
41364 #: ../src/guestfs.pod:2125
41365 msgid "then that C<key> is not returned when walking."
41369 #: ../src/guestfs.pod:2129
41371 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
41372 "C<guestfs_next_private> or C<guestfs_set_private>."
41376 #: ../src/guestfs.pod:2135
41378 "The following example code shows how to print all keys and data pointers "
41379 "that are associated with the handle C<g>:"
41383 #: ../src/guestfs.pod:2138
41386 " const char *key;\n"
41387 " void *data = guestfs_first_private (g, &key);\n"
41388 " while (data != NULL)\n"
41390 " printf (\"key = %s, data = %p\\n\", key, data);\n"
41391 " data = guestfs_next_private (g, &key);\n"
41397 #: ../src/guestfs.pod:2146
41399 "More commonly you are only interested in keys that begin with an application-"
41400 "specific prefix C<foo_>. Modify the loop like so:"
41404 #: ../src/guestfs.pod:2149
41407 " const char *key;\n"
41408 " void *data = guestfs_first_private (g, &key);\n"
41409 " while (data != NULL)\n"
41411 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
41412 " printf (\"key = %s, data = %p\\n\", key, data);\n"
41413 " data = guestfs_next_private (g, &key);\n"
41419 #: ../src/guestfs.pod:2158
41421 "If you need to modify keys while walking, then you have to jump back to the "
41422 "beginning of the loop. For example, to delete all keys prefixed with "
41427 #: ../src/guestfs.pod:2162
41430 " const char *key;\n"
41433 " data = guestfs_first_private (g, &key);\n"
41434 " while (data != NULL)\n"
41436 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
41438 " guestfs_set_private (g, key, NULL);\n"
41439 " /* note that 'key' pointer is now invalid, and so is\n"
41440 " the internal iterator */\n"
41443 " data = guestfs_next_private (g, &key);\n"
41449 #: ../src/guestfs.pod:2178
41451 "Note that the above loop is guaranteed to terminate because the keys are "
41452 "being deleted, but other manipulations of keys within the loop might not "
41453 "terminate unless you also maintain an indication of which keys have been "
41458 #: ../src/guestfs.pod:2183
41463 #: ../src/guestfs.pod:2185
41465 "The libguestfs C library can be probed using systemtap or DTrace. This is "
41466 "true of any library, not just libguestfs. However libguestfs also contains "
41467 "static markers to help in probing internal operations."
41471 #: ../src/guestfs.pod:2189
41472 msgid "You can list all the static markers by doing:"
41476 #: ../src/guestfs.pod:2191
41479 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
41480 " .provider(\"guestfs\").mark(\"*\")'\n"
41485 #: ../src/guestfs.pod:2194
41487 "B<Note:> These static markers are I<not> part of the stable API and may "
41488 "change in future versions."
41492 #: ../src/guestfs.pod:2197
41493 msgid "SYSTEMTAP SCRIPT EXAMPLE"
41497 #: ../src/guestfs.pod:2199
41499 "This script contains examples of displaying both the static markers and some "
41500 "ordinary C entry points:"
41504 #: ../src/guestfs.pod:2202
41512 #: ../src/guestfs.pod:2204
41515 " function display_time () {\n"
41516 " now = gettimeofday_us ();\n"
41519 " delta = now - last;\n"
41525 #: ../src/guestfs.pod:2211
41528 " printf (\"%d (+%d):\", now, delta);\n"
41534 #: ../src/guestfs.pod:2214
41539 " printf (\"ready\\n\");\n"
41545 #: ../src/guestfs.pod:2219
41548 " /* Display all calls to static markers. */\n"
41549 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
41550 " .provider(\"guestfs\").mark(\"*\") ? {\n"
41551 " display_time();\n"
41552 " printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
41558 #: ../src/guestfs.pod:2226
41561 " /* Display all calls to guestfs_mkfs* functions. */\n"
41562 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
41563 " .function(\"guestfs_mkfs*\") ? {\n"
41564 " display_time();\n"
41565 " printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
41571 #: ../src/guestfs.pod:2233
41573 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
41574 "program. Note that you either have to be root, or you have to add yourself "
41575 "to several special stap groups. Consult the systemtap documentation for "
41576 "more information."
41580 #: ../src/guestfs.pod:2238
41583 " # stap /tmp/test.stap\n"
41589 #: ../src/guestfs.pod:2241
41590 msgid "In another terminal, run a guestfish command such as this:"
41594 #: ../src/guestfs.pod:2245
41595 msgid "In the first terminal, stap trace output similar to this is shown:"
41599 #: ../src/guestfs.pod:2247
41602 " 1318248056692655 (+0):\tlaunch_start\n"
41603 " 1318248056692850 (+195): launch_build_appliance_start\n"
41604 " 1318248056818285 (+125435): launch_build_appliance_end\n"
41605 " 1318248056838059 (+19774): launch_run_qemu\n"
41606 " 1318248061071167 (+4233108): launch_end\n"
41607 " 1318248061280324 (+209157): guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
41612 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
41617 #: ../src/guestfs.pod:2256
41619 "<!-- old anchor for the next section --> <a name="
41620 "\"state_machine_and_low_level_event_api\"/>"
41622 "<!-- old anchor for the next section --> <a name="
41623 "\"state_machine_and_low_level_event_api\"/>"
41626 #: ../src/guestfs.pod:2261
41627 msgid "ARCHITECTURE"
41628 msgstr "АРХІТЕКТУРА"
41631 #: ../src/guestfs.pod:2263
41633 "Internally, libguestfs is implemented by running an appliance (a special "
41634 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
41635 "process of the main program."
41639 #: ../src/guestfs.pod:2267
41642 " ___________________\n"
41644 " | main program |\n"
41646 " | | child process / appliance\n"
41647 " | | __________________________\n"
41649 " +-------------------+ RPC | +-----------------+ |\n"
41650 " | libguestfs <--------------------> guestfsd | |\n"
41651 " | | | +-----------------+ |\n"
41652 " \\___________________/ | | Linux kernel | |\n"
41653 " | +--^--------------+ |\n"
41654 " \\_________|________________/\n"
41656 " _______v______\n"
41659 " | disk image |\n"
41660 " \\______________/\n"
41665 #: ../src/guestfs.pod:2287
41667 "The library, linked to the main program, creates the child process and hence "
41668 "the appliance in the L</guestfs_launch> function."
41672 #: ../src/guestfs.pod:2290
41674 "Inside the appliance is a Linux kernel and a complete stack of userspace "
41675 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
41676 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
41677 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
41678 "API calls and RPC calls to the daemon. Lastly the disk image(s) are "
41679 "attached to the qemu process which translates device access by the "
41680 "appliance's Linux kernel into accesses to the image."
41684 #: ../src/guestfs.pod:2299
41686 "A common misunderstanding is that the appliance \"is\" the virtual machine. "
41687 "Although the disk image you are attached to might also be used by some "
41688 "virtual machine, libguestfs doesn't know or care about this. (But you will "
41689 "care if both libguestfs's qemu process and your virtual machine are trying "
41690 "to update the disk image at the same time, since these usually results in "
41691 "massive disk corruption)."
41695 #: ../src/guestfs.pod:2306
41696 msgid "STATE MACHINE"
41697 msgstr "СКІНЧЕННИЙ АВТОМАТ"
41700 #: ../src/guestfs.pod:2308
41701 msgid "libguestfs uses a state machine to model the child process:"
41705 #: ../src/guestfs.pod:2310
41709 " guestfs_create\n"
41717 " / | \\ \\ guestfs_launch\n"
41718 " / | _\\__V______\n"
41720 " / | | LAUNCHING |\n"
41721 " / | \\___________/\n"
41723 " / | guestfs_launch\n"
41725 " ______ / __|____V\n"
41726 " / \\ ------> / \\\n"
41727 " | BUSY | | READY |\n"
41728 " \\______/ <------ \\________/\n"
41733 #: ../src/guestfs.pod:2332
41735 "The normal transitions are (1) CONFIG (when the handle is created, but there "
41736 "is no child process), (2) LAUNCHING (when the child process is booting up), "
41737 "(3) alternating between READY and BUSY as commands are issued to, and "
41738 "carried out by, the child process."
41742 #: ../src/guestfs.pod:2337
41744 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
41745 "asynchronously at any time (eg. due to some internal error), and that causes "
41746 "the state to transition back to CONFIG."
41750 #: ../src/guestfs.pod:2341
41752 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
41753 "issued when in the CONFIG state."
41757 #: ../src/guestfs.pod:2344
41759 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
41760 "L</guestfs_launch> blocks until the child process is READY to accept "
41761 "commands (or until some failure or timeout). L</guestfs_launch> internally "
41762 "moves the state from CONFIG to LAUNCHING while it is running."
41766 #: ../src/guestfs.pod:2350
41768 "API actions such as L</guestfs_mount> can only be issued when in the READY "
41769 "state. These API calls block waiting for the command to be carried out (ie. "
41770 "the state to transition to BUSY and then back to READY). There are no non-"
41771 "blocking versions, and no way to issue more than one command per handle at "
41776 #: ../src/guestfs.pod:2356
41778 "Finally, the child process sends asynchronous messages back to the main "
41779 "program, such as kernel log messages. You can register a callback to "
41780 "receive these messages."
41784 #: ../src/guestfs.pod:2360
41789 #: ../src/guestfs.pod:2362
41790 msgid "APPLIANCE BOOT PROCESS"
41794 #: ../src/guestfs.pod:2364
41796 "This process has evolved and continues to evolve. The description here "
41797 "corresponds only to the current version of libguestfs and is provided for "
41798 "information only."
41802 #: ../src/guestfs.pod:2368
41804 "In order to follow the stages involved below, enable libguestfs debugging "
41805 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
41809 #: ../src/guestfs.pod:2373
41810 msgid "Create the appliance"
41814 #: ../src/guestfs.pod:2375
41816 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
41817 "initrd and the appliance."
41821 #: ../src/guestfs.pod:2378
41823 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
41824 "directory if C<TMPDIR> is set)."
41828 #: ../src/guestfs.pod:2381
41830 "For a complete description of how the appliance is created and cached, read "
41831 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
41835 #: ../src/guestfs.pod:2385
41836 msgid "Start qemu and boot the kernel"
41840 #: ../src/guestfs.pod:2387
41841 msgid "qemu is invoked to boot the kernel."
41845 #: ../src/guestfs.pod:2389
41846 msgid "Run the initrd"
41850 #: ../src/guestfs.pod:2391
41852 "C<febootstrap-supermin-helper> builds a small initrd. The initrd is not the "
41853 "appliance. The purpose of the initrd is to load enough kernel modules in "
41854 "order that the appliance itself can be mounted and started."
41858 #: ../src/guestfs.pod:2395
41860 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
41865 #: ../src/guestfs.pod:2398
41867 "When the initrd has started you will see messages showing that kernel "
41868 "modules are being loaded, similar to this:"
41872 #: ../src/guestfs.pod:2401
41875 " febootstrap: ext2 mini initrd starting up\n"
41876 " febootstrap: mounting /sys\n"
41877 " febootstrap: internal insmod libcrc32c.ko\n"
41878 " febootstrap: internal insmod crc32c-intel.ko\n"
41883 #: ../src/guestfs.pod:2406
41884 msgid "Find and mount the appliance device"
41888 #: ../src/guestfs.pod:2408
41890 "The appliance is a sparse file containing an ext2 filesystem which contains "
41891 "a familiar (although reduced in size) Linux operating system. It would "
41892 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
41896 #: ../src/guestfs.pod:2412
41898 "The regular disks being inspected by libguestfs are the first devices "
41899 "exposed by qemu (eg. as C</dev/vda>)."
41903 #: ../src/guestfs.pod:2415
41905 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
41906 "there was only one regular disk)."
41910 #: ../src/guestfs.pod:2418
41912 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
41913 "and switch root into the appliance, and run C</init> from the appliance."
41917 #: ../src/guestfs.pod:2422
41918 msgid "If this works successfully you will see messages such as:"
41922 #: ../src/guestfs.pod:2424
41925 " febootstrap: picked /sys/block/vdb/dev as root device\n"
41926 " febootstrap: creating /dev/root as block special 252:16\n"
41927 " febootstrap: mounting new root on /root\n"
41928 " febootstrap: chroot\n"
41929 " Starting /init script ...\n"
41934 #: ../src/guestfs.pod:2430
41936 "Note that C<Starting /init script ...> indicates that the appliance's init "
41937 "script is now running."
41941 #: ../src/guestfs.pod:2433
41942 msgid "Initialize the appliance"
41946 #: ../src/guestfs.pod:2435
41948 "The appliance itself now initializes itself. This involves starting certain "
41949 "processes like C<udev>, possibly printing some debug information, and "
41950 "finally running the daemon (C<guestfsd>)."
41954 #: ../src/guestfs.pod:2439
41959 #: ../src/guestfs.pod:2441
41961 "Finally the daemon (C<guestfsd>) runs inside the appliance. If it runs you "
41966 #: ../src/guestfs.pod:2444
41969 " verbose daemon enabled\n"
41974 #: ../src/guestfs.pod:2446
41976 "The daemon expects to see a named virtio-serial port exposed by qemu and "
41977 "connected on the other end to the library."
41981 #: ../src/guestfs.pod:2449
41983 "The daemon connects to this port (and hence to the library) and sends a four "
41984 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
41985 "protocol (see below)."
41989 #: ../src/guestfs.pod:2455
41990 msgid "COMMUNICATION PROTOCOL"
41994 #: ../src/guestfs.pod:2457
41996 "Don't rely on using this protocol directly. This section documents how it "
41997 "currently works, but it may change at any time."
42001 #: ../src/guestfs.pod:2460
42003 "The protocol used to talk between the library and the daemon running inside "
42004 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
42005 "1014, RFC 1832, RFC 4506)."
42009 #: ../src/guestfs.pod:2464
42011 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
42012 "this file is automatically generated)."
42016 #: ../src/guestfs.pod:2467
42018 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
42019 "and C<FileOut> parameters, which are handled with very simple request/reply "
42020 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
42021 "parameters, which use the same request and reply messages, but they may also "
42022 "be followed by files sent using a chunked encoding."
42026 #: ../src/guestfs.pod:2474
42027 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
42031 #: ../src/guestfs.pod:2476
42032 msgid "For ordinary functions, the request message is:"
42036 #: ../src/guestfs.pod:2478
42039 " total length (header + arguments,\n"
42040 " but not including the length word itself)\n"
42041 " struct guestfs_message_header (encoded as XDR)\n"
42042 " struct guestfs_<foo>_args (encoded as XDR)\n"
42047 #: ../src/guestfs.pod:2483
42049 "The total length field allows the daemon to allocate a fixed size buffer "
42050 "into which it slurps the rest of the message. As a result, the total length "
42051 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
42052 "effective size of any request is limited to somewhere under this size."
42056 #: ../src/guestfs.pod:2489
42058 "Note also that many functions don't take any arguments, in which case the "
42059 "C<guestfs_I<foo>_args> is completely omitted."
42063 #: ../src/guestfs.pod:2492
42065 "The header contains the procedure number (C<guestfs_proc>) which is how the "
42066 "receiver knows what type of args structure to expect, or none at all."
42070 #: ../src/guestfs.pod:2496
42072 "For functions that take optional arguments, the optional arguments are "
42073 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
42074 "arguments. A bitmask in the header indicates which optional arguments are "
42075 "meaningful. The bitmask is also checked to see if it contains bits set "
42076 "which the daemon does not know about (eg. if more optional arguments were "
42077 "added in a later version of the library), and this causes the call to be "
42082 #: ../src/guestfs.pod:2504
42083 msgid "The reply message for ordinary functions is:"
42087 #: ../src/guestfs.pod:2506
42090 " total length (header + ret,\n"
42091 " but not including the length word itself)\n"
42092 " struct guestfs_message_header (encoded as XDR)\n"
42093 " struct guestfs_<foo>_ret (encoded as XDR)\n"
42098 #: ../src/guestfs.pod:2511
42100 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
42101 "functions that return no formal return values."
42105 #: ../src/guestfs.pod:2514
42107 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
42111 #: ../src/guestfs.pod:2517
42113 "In the case of an error, a flag is set in the header, and the reply message "
42114 "is slightly changed:"
42118 #: ../src/guestfs.pod:2520
42121 " total length (header + error,\n"
42122 " but not including the length word itself)\n"
42123 " struct guestfs_message_header (encoded as XDR)\n"
42124 " struct guestfs_message_error (encoded as XDR)\n"
42129 #: ../src/guestfs.pod:2525
42131 "The C<guestfs_message_error> structure contains the error message as a "
42136 #: ../src/guestfs.pod:2528
42137 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
42141 #: ../src/guestfs.pod:2530
42143 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
42144 "The normal request message is sent (see above). However this is followed by "
42145 "a sequence of file chunks."
42149 #: ../src/guestfs.pod:2534
42152 " total length (header + arguments,\n"
42153 " but not including the length word itself,\n"
42154 " and not including the chunks)\n"
42155 " struct guestfs_message_header (encoded as XDR)\n"
42156 " struct guestfs_<foo>_args (encoded as XDR)\n"
42157 " sequence of chunks for FileIn param #0\n"
42158 " sequence of chunks for FileIn param #1 etc.\n"
42163 #: ../src/guestfs.pod:2542
42164 msgid "The \"sequence of chunks\" is:"
42168 #: ../src/guestfs.pod:2544
42171 " length of chunk (not including length word itself)\n"
42172 " struct guestfs_chunk (encoded as XDR)\n"
42173 " length of chunk\n"
42174 " struct guestfs_chunk (encoded as XDR)\n"
42176 " length of chunk\n"
42177 " struct guestfs_chunk (with data.data_len == 0)\n"
42182 #: ../src/guestfs.pod:2552
42184 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
42185 "is set in the final chunk to indicate either successful completion or early "
42190 #: ../src/guestfs.pod:2556
42192 "At time of writing there are no functions that have more than one FileIn "
42193 "parameter. However this is (theoretically) supported, by sending the "
42194 "sequence of chunks for each FileIn parameter one after another (from left to "
42199 #: ../src/guestfs.pod:2561
42201 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
42202 "transfer. The library does this by sending a chunk with a special flag set "
42203 "to indicate cancellation. When the daemon sees this, it cancels the whole "
42204 "RPC, does I<not> send any reply, and goes back to reading the next request."
42208 #: ../src/guestfs.pod:2567
42210 "The daemon may also cancel. It does this by writing a special word "
42211 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
42212 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
42213 "cancel chunk). The special word is chosen so that even if cancellation "
42214 "happens right at the end of the transfer (after the library has finished "
42215 "writing and has started listening for the reply), the \"spurious\" cancel "
42216 "flag will not be confused with the reply message."
42220 #: ../src/guestfs.pod:2576
42222 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
42223 "limit), and also files where the size is not known in advance (eg. from "
42224 "pipes or sockets). However the chunks are rather small "
42225 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
42226 "to keep much in memory."
42230 #: ../src/guestfs.pod:2582
42231 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
42235 #: ../src/guestfs.pod:2584
42237 "The protocol for FileOut parameters is exactly the same as for FileIn "
42238 "parameters, but with the roles of daemon and library reversed."
42242 #: ../src/guestfs.pod:2587
42245 " total length (header + ret,\n"
42246 " but not including the length word itself,\n"
42247 " and not including the chunks)\n"
42248 " struct guestfs_message_header (encoded as XDR)\n"
42249 " struct guestfs_<foo>_ret (encoded as XDR)\n"
42250 " sequence of chunks for FileOut param #0\n"
42251 " sequence of chunks for FileOut param #1 etc.\n"
42256 #: ../src/guestfs.pod:2595
42257 msgid "INITIAL MESSAGE"
42261 #: ../src/guestfs.pod:2597
42263 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
42264 "which indicates that the guest and daemon is alive. This is what L</"
42265 "guestfs_launch> waits for."
42269 #: ../src/guestfs.pod:2601
42270 msgid "PROGRESS NOTIFICATION MESSAGES"
42274 #: ../src/guestfs.pod:2603
42276 "The daemon may send progress notification messages at any time. These are "
42277 "distinguished by the normal length word being replaced by "
42278 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
42282 #: ../src/guestfs.pod:2607
42284 "The library turns them into progress callbacks (see L</"
42285 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
42290 #: ../src/guestfs.pod:2611
42292 "The daemon self-limits the frequency of progress messages it sends (see "
42293 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
42298 #: ../src/guestfs.pod:2615
42299 msgid "LIBGUESTFS VERSION NUMBERS"
42303 #: ../src/guestfs.pod:2617
42305 "Since April 2010, libguestfs has started to make separate development and "
42306 "stable releases, along with corresponding branches in our git repository. "
42307 "These separate releases can be identified by version number:"
42311 #: ../src/guestfs.pod:2622
42314 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
42315 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
42321 " | `-------- sub-version\n"
42323 " `------ always '1' because we don't change the ABI\n"
42328 #: ../src/guestfs.pod:2633
42329 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
42333 #: ../src/guestfs.pod:2635
42335 "As time passes we cherry pick fixes from the development branch and backport "
42336 "those into the stable branch, the effect being that the stable branch should "
42337 "get more stable and less buggy over time. So the stable releases are ideal "
42338 "for people who don't need new features but would just like the software to "
42343 #: ../src/guestfs.pod:2641
42344 msgid "Our criteria for backporting changes are:"
42348 #: ../src/guestfs.pod:2647
42350 "Documentation changes which don't affect any code are backported unless the "
42351 "documentation refers to a future feature which is not in stable."
42355 #: ../src/guestfs.pod:2653
42357 "Bug fixes which are not controversial, fix obvious problems, and have been "
42358 "well tested are backported."
42362 #: ../src/guestfs.pod:2658
42364 "Simple rearrangements of code which shouldn't affect how it works get "
42365 "backported. This is so that the code in the two branches doesn't get too "
42366 "far out of step, allowing us to backport future fixes more easily."
42370 #: ../src/guestfs.pod:2664
42372 "We I<don't> backport new features, new APIs, new tools etc, except in one "
42373 "exceptional case: the new feature is required in order to implement an "
42374 "important bug fix."
42378 #: ../src/guestfs.pod:2670
42380 "A new stable branch starts when we think the new features in development are "
42381 "substantial and compelling enough over the current stable branch to warrant "
42382 "it. When that happens we create new stable and development versions 1.N.0 "
42383 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
42384 "stable at this point, but by backporting fixes from development, that branch "
42385 "will stabilize over time."
42389 #: ../src/guestfs.pod:2678
42390 msgid "EXTENDING LIBGUESTFS"
42394 #: ../src/guestfs.pod:2680
42395 msgid "ADDING A NEW API ACTION"
42399 #: ../src/guestfs.pod:2682
42401 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
42402 "documentation) are generated, and this makes it easy to extend the "
42407 #: ../src/guestfs.pod:2686
42408 msgid "To add a new API action there are two changes:"
42412 #: ../src/guestfs.pod:2692
42414 "You need to add a description of the call (name, parameters, return type, "
42415 "tests, documentation) to C<generator/generator_actions.ml>."
42419 #: ../src/guestfs.pod:2695
42421 "There are two sorts of API action, depending on whether the call goes "
42422 "through to the daemon in the appliance, or is serviced entirely by the "
42423 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
42424 "former, since the sync is done in the appliance. L</guestfs_set_trace> is "
42425 "an example of the latter, since a trace flag is maintained in the handle and "
42426 "all tracing is done on the library side."
42430 #: ../src/guestfs.pod:2703
42432 "Most new actions are of the first type, and get added to the "
42433 "C<daemon_functions> list. Each function has a unique procedure number used "
42434 "in the RPC protocol which is assigned to that action when we publish "
42435 "libguestfs and cannot be reused. Take the latest procedure number and "
42440 #: ../src/guestfs.pod:2709
42442 "For library-only actions of the second type, add to the "
42443 "C<non_daemon_functions> list. Since these functions are serviced by the "
42444 "library and do not travel over the RPC mechanism to the daemon, these "
42445 "functions do not need a procedure number, and so the procedure number is set "
42450 #: ../src/guestfs.pod:2717
42451 msgid "Implement the action (in C):"
42455 #: ../src/guestfs.pod:2719
42457 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
42458 "C<daemon/> directory."
42462 #: ../src/guestfs.pod:2722
42464 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
42465 "(note: double underscore) in the C<src/> directory."
42469 #: ../src/guestfs.pod:2725
42470 msgid "In either case, use another function as an example of what to do."
42474 #: ../src/guestfs.pod:2729
42475 msgid "After making these changes, use C<make> to compile."
42479 #: ../src/guestfs.pod:2731
42481 "Note that you don't need to implement the RPC, language bindings, manual "
42482 "pages or anything else. It's all automatically generated from the OCaml "
42487 #: ../src/guestfs.pod:2735
42488 msgid "ADDING TESTS FOR AN API ACTION"
42492 #: ../src/guestfs.pod:2737
42494 "You can supply zero or as many tests as you want per API call. The tests "
42495 "can either be added as part of the API description (C<generator/"
42496 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
42497 "into C<regressions/>. Note that adding a script to C<regressions/> is "
42498 "slower, so if possible use the first method."
42502 #: ../src/guestfs.pod:2743
42504 "The following describes the test environment used when you add an API test "
42505 "in C<generator_actions.ml>."
42509 #: ../src/guestfs.pod:2746
42510 msgid "The test environment has 4 block devices:"
42514 #: ../src/guestfs.pod:2750
42515 msgid "C</dev/sda> 500MB"
42516 msgstr "C</dev/sda> 500 МБ"
42519 #: ../src/guestfs.pod:2752
42520 msgid "General block device for testing."
42524 #: ../src/guestfs.pod:2754
42525 msgid "C</dev/sdb> 50MB"
42526 msgstr "C</dev/sdb> 50 МБ"
42529 #: ../src/guestfs.pod:2756
42531 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
42536 #: ../src/guestfs.pod:2759
42537 msgid "C</dev/sdc> 10MB"
42538 msgstr "C</dev/sdc> 10 МБ"
42541 #: ../src/guestfs.pod:2761
42542 msgid "Used in a few tests where two block devices are needed."
42546 #: ../src/guestfs.pod:2763
42547 msgid "C</dev/sdd>"
42548 msgstr "C</dev/sdd>"
42551 #: ../src/guestfs.pod:2765
42552 msgid "ISO with fixed content (see C<images/test.iso>)."
42556 #: ../src/guestfs.pod:2769
42558 "To be able to run the tests in a reasonable amount of time, the libguestfs "
42559 "appliance and block devices are reused between tests. So don't try testing "
42560 "L</guestfs_kill_subprocess> :-x"
42564 #: ../src/guestfs.pod:2773
42566 "Each test starts with an initial scenario, selected using one of the "
42567 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
42568 "initialize the disks mentioned above in a particular way as documented in "
42569 "C<generator_types.ml>. You should not assume anything about the previous "
42570 "contents of other disks that are not initialized."
42574 #: ../src/guestfs.pod:2779
42576 "You can add a prerequisite clause to any individual test. This is a run-"
42577 "time check, which, if it fails, causes the test to be skipped. Useful if "
42578 "testing a command which might not work on all variations of libguestfs "
42579 "builds. A test that has prerequisite of C<Always> means to run "
42584 #: ../src/guestfs.pod:2785
42586 "In addition, packagers can skip individual tests by setting environment "
42587 "variables before running C<make check>."
42591 #: ../src/guestfs.pod:2788
42594 " SKIP_TEST_<CMD>_<NUM>=1\n"
42599 #: ../src/guestfs.pod:2790
42600 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
42604 #: ../src/guestfs.pod:2794
42607 " SKIP_TEST_<CMD>=1\n"
42612 #: ../src/guestfs.pod:2796
42613 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
42617 #: ../src/guestfs.pod:2798
42618 msgid "Packagers can run only certain tests by setting for example:"
42622 #: ../src/guestfs.pod:2800
42625 " TEST_ONLY=\"vfs_type zerofree\"\n"
42630 #: ../src/guestfs.pod:2802
42632 "See C<capitests/tests.c> for more details of how these environment variables "
42637 #: ../src/guestfs.pod:2805
42638 msgid "DEBUGGING NEW API ACTIONS"
42642 #: ../src/guestfs.pod:2807
42643 msgid "Test new actions work before submitting them."
42647 #: ../src/guestfs.pod:2809
42648 msgid "You can use guestfish to try out new commands."
42652 #: ../src/guestfs.pod:2811
42654 "Debugging the daemon is a problem because it runs inside a minimal "
42655 "environment. However you can fprintf messages in the daemon to stderr, and "
42656 "they will show up if you use C<guestfish -v>."
42660 #: ../src/guestfs.pod:2815
42661 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
42665 #: ../src/guestfs.pod:2817
42667 "Our C source code generally adheres to some basic code-formatting "
42668 "conventions. The existing code base is not totally consistent on this "
42669 "front, but we do prefer that contributed code be formatted similarly. In "
42670 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
42671 "indentation level, and other than that, follow the K&R style."
42675 #: ../src/guestfs.pod:2823
42677 "If you use Emacs, add the following to one of one of your start-up files (e."
42678 "g., ~/.emacs), to help ensure that you get indentation right:"
42682 #: ../src/guestfs.pod:2826
42685 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
42686 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
42687 " (add-hook 'find-file-hook\n"
42688 " '(lambda () (if (and buffer-file-name\n"
42689 " (string-match \"/libguestfs\\\\>\"\n"
42690 " (buffer-file-name))\n"
42691 " (not (string-equal mode-name \"Change Log\"))\n"
42692 " (not (string-equal mode-name \"Makefile\")))\n"
42693 " (setq indent-tabs-mode nil))))\n"
42698 #: ../src/guestfs.pod:2836
42701 " ;;; When editing C sources in libguestfs, use this style.\n"
42702 " (defun libguestfs-c-mode ()\n"
42703 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
42705 " (c-set-style \"K&R\")\n"
42706 " (setq c-indent-level 2)\n"
42707 " (setq c-basic-offset 2))\n"
42708 " (add-hook 'c-mode-hook\n"
42709 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
42710 " (buffer-file-name))\n"
42711 " (libguestfs-c-mode))))\n"
42716 #: ../src/guestfs.pod:2848
42717 msgid "Enable warnings when compiling (and fix any problems this finds):"
42721 #: ../src/guestfs.pod:2851
42724 " ./configure --enable-gcc-warnings\n"
42727 " ./configure --enable-gcc-warnings\n"
42731 #: ../src/guestfs.pod:2853
42732 msgid "Useful targets are:"
42736 #: ../src/guestfs.pod:2855
42739 " make syntax-check # checks the syntax of the C code\n"
42740 " make check # runs the test suite\n"
42745 #: ../src/guestfs.pod:2858
42746 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
42750 #: ../src/guestfs.pod:2860
42752 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
42753 "which are used to do shell quoting."
42757 #: ../src/guestfs.pod:2865
42762 #: ../src/guestfs.pod:2867
42764 "Simple shell quoted string. Any spaces or other shell characters are "
42769 #: ../src/guestfs.pod:2870
42774 #: ../src/guestfs.pod:2872
42776 "Same as C<%Q> except the string is treated as a path which is prefixed by "
42781 #: ../src/guestfs.pod:2879
42784 " asprintf (&cmd, \"cat %R\", path);\n"
42787 " asprintf (&cmd, \"cat %R\", path);\n"
42791 #: ../src/guestfs.pod:2881
42792 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
42796 #: ../src/guestfs.pod:2883
42798 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
42799 "{,r,v,rv}()> functions. These parameters do NOT need to be quoted because "
42800 "they are not passed via the shell (instead, straight to exec). You probably "
42801 "want to use the C<sysroot_path()> function however."
42805 #: ../src/guestfs.pod:2889
42806 msgid "SUBMITTING YOUR NEW API ACTIONS"
42810 #: ../src/guestfs.pod:2891
42812 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
42813 "libguestfs> and CC to L<rjones@redhat.com>."
42817 #: ../src/guestfs.pod:2895
42818 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
42822 #: ../src/guestfs.pod:2897
42823 msgid "We support i18n (gettext anyhow) in the library."
42827 #: ../src/guestfs.pod:2899
42829 "However many messages come from the daemon, and we don't translate those at "
42830 "the moment. One reason is that the appliance generally has all locale files "
42831 "removed from it, because they take up a lot of space. So we'd have to readd "
42832 "some of those, as well as copying our PO files into the appliance."
42836 #: ../src/guestfs.pod:2905
42838 "Debugging messages are never translated, since they are intended for the "
42843 #: ../src/guestfs.pod:2908
42844 msgid "SOURCE CODE SUBDIRECTORIES"
42848 #: ../src/guestfs.pod:2912
42853 #: ../src/guestfs.pod:2914
42854 msgid "L<virt-alignment-scan(1)> command and documentation."
42858 #: ../src/guestfs.pod:2918
42859 msgid "The libguestfs appliance, build scripts and so on."
42863 #: ../src/guestfs.pod:2920
42864 msgid "C<capitests>"
42865 msgstr "C<capitests>"
42868 #: ../src/guestfs.pod:2922
42869 msgid "Automated tests of the C API."
42873 #: ../src/guestfs.pod:2924
42878 #: ../src/guestfs.pod:2926
42880 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
42885 #: ../src/guestfs.pod:2929
42887 msgstr "C<caution>"
42890 #: ../src/guestfs.pod:2931
42892 "Safety and liveness tests of components that libguestfs depends upon (not of "
42893 "libguestfs itself). Mainly this is for qemu and the kernel."
42897 #: ../src/guestfs.pod:2934
42902 #: ../src/guestfs.pod:2936
42904 "Tools for cloning virtual machines. Currently contains L<virt-sysprep(1)> "
42905 "command and documentation."
42909 #: ../src/guestfs.pod:2939
42911 msgstr "C<contrib>"
42914 #: ../src/guestfs.pod:2941
42915 msgid "Outside contributions, experimental parts."
42919 #: ../src/guestfs.pod:2943
42924 #: ../src/guestfs.pod:2945
42926 "The daemon that runs inside the libguestfs appliance and carries out actions."
42930 #: ../src/guestfs.pod:2948
42935 #: ../src/guestfs.pod:2950
42936 msgid "L<virt-df(1)> command and documentation."
42940 #: ../src/guestfs.pod:2952
42945 #: ../src/guestfs.pod:2954
42946 msgid "L<virt-edit(1)> command and documentation."
42950 #: ../src/guestfs.pod:2956
42951 msgid "C<examples>"
42952 msgstr "C<examples>"
42955 #: ../src/guestfs.pod:2958
42956 msgid "C API example code."
42957 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
42960 #: ../src/guestfs.pod:2960
42962 #| msgid "C<capitests>"
42963 msgid "C<extratests>"
42964 msgstr "C<capitests>"
42967 #: ../src/guestfs.pod:2962
42969 "Extra tests. These are not run by default because they require special "
42970 "tools or configuration."
42974 #: ../src/guestfs.pod:2965
42979 #: ../src/guestfs.pod:2967
42981 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
42982 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
42983 "L<virt-tar-out(1)>."
42987 #: ../src/guestfs.pod:2971
42992 #: ../src/guestfs.pod:2973
42994 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
42998 #: ../src/guestfs.pod:2975
42999 msgid "C<generator>"
43000 msgstr "C<generator>"
43003 #: ../src/guestfs.pod:2977
43005 "The crucially important generator, used to automatically generate large "
43006 "amounts of boilerplate C code for things like RPC and bindings."
43010 #: ../src/guestfs.pod:2980
43015 #: ../src/guestfs.pod:2982
43016 msgid "Files used by the test suite."
43020 #: ../src/guestfs.pod:2984
43021 msgid "Some \"phony\" guest images which we test against."
43025 #: ../src/guestfs.pod:2986
43026 msgid "C<inspector>"
43027 msgstr "C<inspector>"
43030 #: ../src/guestfs.pod:2988
43031 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
43035 #: ../src/guestfs.pod:2990
43040 #: ../src/guestfs.pod:2992
43041 msgid "Logo used on the website. The fish is called Arthur by the way."
43045 #: ../src/guestfs.pod:2994
43050 #: ../src/guestfs.pod:2996
43051 msgid "M4 macros used by autoconf."
43055 #: ../src/guestfs.pod:2998
43060 #: ../src/guestfs.pod:3000
43061 msgid "Translations of simple gettext strings."
43062 msgstr "Переклади простих рядків gettext."
43065 #: ../src/guestfs.pod:3002
43067 msgstr "C<po-docs>"
43070 #: ../src/guestfs.pod:3004
43072 "The build infrastructure and PO files for translations of manpages and POD "
43073 "files. Eventually this will be combined with the C<po> directory, but that "
43074 "is rather complicated."
43078 #: ../src/guestfs.pod:3008
43079 msgid "C<regressions>"
43080 msgstr "C<regressions>"
43083 #: ../src/guestfs.pod:3010
43084 msgid "Regression tests."
43085 msgstr "Тести на регресії."
43088 #: ../src/guestfs.pod:3012
43093 #: ../src/guestfs.pod:3014
43094 msgid "L<virt-rescue(1)> command and documentation."
43098 #: ../src/guestfs.pod:3016
43103 #: ../src/guestfs.pod:3018
43104 msgid "L<virt-resize(1)> command and documentation."
43108 #: ../src/guestfs.pod:3020
43109 msgid "C<sparsify>"
43113 #: ../src/guestfs.pod:3022
43114 msgid "L<virt-sparsify(1)> command and documentation."
43118 #: ../src/guestfs.pod:3024
43123 #: ../src/guestfs.pod:3026
43124 msgid "Source code to the C library."
43128 #: ../src/guestfs.pod:3028
43133 #: ../src/guestfs.pod:3030
43135 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
43139 #: ../src/guestfs.pod:3032
43140 msgid "C<test-tool>"
43141 msgstr "C<test-tool>"
43144 #: ../src/guestfs.pod:3034
43146 "Test tool for end users to test if their qemu/kernel combination will work "
43151 #: ../src/guestfs.pod:3037
43156 #: ../src/guestfs.pod:3039
43161 #: ../src/guestfs.pod:3041
43163 msgstr "C<haskell>"
43166 #: ../src/guestfs.pod:3043
43171 #: ../src/guestfs.pod:3045
43176 #: ../src/guestfs.pod:3047
43181 #: ../src/guestfs.pod:3049
43186 #: ../src/guestfs.pod:3051
43191 #: ../src/guestfs.pod:3053
43196 #: ../src/guestfs.pod:3055
43197 msgid "Language bindings."
43198 msgstr "Прив’язки до мов програмування."
43201 #: ../src/guestfs.pod:3059
43202 msgid "MAKING A STABLE RELEASE"
43206 #: ../src/guestfs.pod:3061
43208 "When we make a stable release, there are several steps documented here. See "
43209 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
43214 #: ../src/guestfs.pod:3069
43216 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
43220 #: ../src/guestfs.pod:3074
43221 msgid "Finalize RELEASE-NOTES."
43225 #: ../src/guestfs.pod:3078
43226 msgid "Update ROADMAP."
43230 #: ../src/guestfs.pod:3082
43231 msgid "Run C<src/api-support/update-from-tarballs.sh>."
43235 #: ../src/guestfs.pod:3086
43236 msgid "Push and pull from Transifex."
43240 #: ../src/guestfs.pod:3090
43248 #: ../src/guestfs.pod:3092
43249 msgid "to push the latest POT files to Transifex. Then run:"
43253 #: ../src/guestfs.pod:3094
43261 #: ../src/guestfs.pod:3096
43262 msgid "which is a wrapper to pull the latest translated C<*.po> files."
43266 #: ../src/guestfs.pod:3100
43268 "Create new stable and development directories under L<http://libguestfs.org/"
43273 #: ../src/guestfs.pod:3105
43274 msgid "Create the branch in git:"
43278 #: ../src/guestfs.pod:3107
43281 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
43282 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
43283 " git branch stable-1.XX\n"
43284 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
43289 #: ../src/guestfs.pod:3114
43294 #: ../src/guestfs.pod:3116
43295 msgid "PROTOCOL LIMITS"
43296 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
43299 #: ../src/guestfs.pod:3118
43301 "Internally libguestfs uses a message-based protocol to pass API calls and "
43302 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
43303 "plenty more detail about this). The maximum message size used by the "
43304 "protocol is slightly less than 4 MB. For some API calls you may need to be "
43305 "aware of this limit. The API calls which may be affected are individually "
43306 "documented, with a link back to this section of the documentation."
43310 #: ../src/guestfs.pod:3126
43312 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
43313 "a simple string. Because this string is at some point internally encoded as "
43314 "a message, the maximum size that it can return is slightly under 4 MB. If "
43315 "the requested file is larger than this then you will get an error."
43319 #: ../src/guestfs.pod:3132
43321 "In order to transfer large files into and out of the guest filesystem, you "
43322 "need to use particular calls that support this. The sections L</UPLOADING> "
43323 "and L</DOWNLOADING> document how to do this."
43327 #: ../src/guestfs.pod:3136
43329 "You might also consider mounting the disk image using our FUSE filesystem "
43330 "support (L<guestmount(1)>)."
43334 #: ../src/guestfs.pod:3139
43335 msgid "MAXIMUM NUMBER OF DISKS"
43339 #: ../src/guestfs.pod:3141
43340 msgid "When using virtio disks (the default) the current limit is B<25> disks."
43344 #: ../src/guestfs.pod:3144
43346 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
43347 "slots. However febootstrap only understands disks with names C</dev/vda> "
43348 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
43353 #: ../src/guestfs.pod:3149
43355 "We are working to substantially raise this limit in future versions but it "
43356 "requires complex changes to qemu."
43360 #: ../src/guestfs.pod:3152
43362 "In future versions of libguestfs it should also be possible to \"hot plug\" "
43363 "disks (add and remove disks after calling L</guestfs_launch>). This also "
43364 "requires changes to qemu."
43368 #: ../src/guestfs.pod:3156
43369 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
43373 #: ../src/guestfs.pod:3158
43374 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
43378 #: ../src/guestfs.pod:3160
43380 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
43381 "vda>, and C</dev/vda1> through C</dev/vda15>)."
43385 #: ../src/guestfs.pod:3163
43387 "If you attach a disk with more than 15 partitions, the extra partitions are "
43388 "ignored by libguestfs."
43392 #: ../src/guestfs.pod:3166
43393 msgid "MAXIMUM SIZE OF A DISK"
43397 #: ../src/guestfs.pod:3168
43398 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
43402 #: ../src/guestfs.pod:3170
43404 "We have tested block devices up to 1 exabyte (2**60 or "
43405 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
43410 #: ../src/guestfs.pod:3174
43412 "Although libguestfs probably does not impose any limit, the underlying host "
43413 "storage will. If you store disk images on a host ext4 filesystem, then the "
43414 "maximum size will be limited by the maximum ext4 file size (currently 16 "
43415 "TB). If you store disk images as host logical volumes then you are limited "
43416 "by the maximum size of an LV."
43420 #: ../src/guestfs.pod:3180
43422 "For the hugest disk image files, we recommend using XFS on the host for "
43427 #: ../src/guestfs.pod:3183
43428 msgid "MAXIMUM SIZE OF A PARTITION"
43432 #: ../src/guestfs.pod:3185
43434 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
43435 "numbers. Assuming a 512 byte sector size, this means that MBR cannot "
43436 "address a partition located beyond 2 TB on the disk."
43440 #: ../src/guestfs.pod:3189
43442 "It is recommended that you use GPT partitions on disks which are larger than "
43443 "this size. GPT uses 64 bit sector numbers and so can address partitions "
43444 "which are theoretically larger than the largest disk we could support."
43448 #: ../src/guestfs.pod:3194
43449 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
43453 #: ../src/guestfs.pod:3196
43455 "This depends on the filesystem type. libguestfs itself does not impose any "
43456 "known limit. Consult Wikipedia or the filesystem documentation to find out "
43457 "what these limits are."
43461 #: ../src/guestfs.pod:3200
43462 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
43466 #: ../src/guestfs.pod:3202
43468 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
43469 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
43470 "uploads and downloads."
43474 #: ../src/guestfs.pod:3206
43475 msgid "INSPECTION LIMITS"
43479 #: ../src/guestfs.pod:3208
43481 "The inspection code has several arbitrary limits on things like the size of "
43482 "Windows Registry hive it will read, and the length of product name. These "
43483 "are intended to stop a malicious guest from consuming arbitrary amounts of "
43484 "memory and disk space on the host, and should not be reached in practice. "
43485 "See the source code for more information."
43489 #: ../src/guestfs.pod:3234
43491 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
43492 "effect as calling C<guestfs_set_verbose (g, 1)>."
43496 #: ../src/guestfs.pod:3246
43498 "Set the path that libguestfs uses to search for a supermin appliance. See "
43499 "the discussion of paths in section L</PATH> above."
43503 #: ../src/guestfs.pod:3255
43504 msgid "See also L</QEMU WRAPPERS> above."
43508 #: ../src/guestfs.pod:3259
43510 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
43511 "effect as calling C<guestfs_set_trace (g, 1)>."
43515 #: ../src/guestfs.pod:3277
43517 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
43518 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
43519 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
43520 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
43521 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
43522 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
43523 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
43524 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<guestfs-"
43525 "testing(1)>, L<qemu(1)>, L<febootstrap(1)>, L<febootstrap-supermin-helper(8)"
43526 ">, L<hivex(3)>, L<stap(1)>, L<http://libguestfs.org/>."
43530 #: ../src/guestfs.pod:3314
43532 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
43533 "(8)>, L<disktype(1)>."
43537 #: ../src/guestfs.pod:3321 ../tools/virt-make-fs.pl:571
43538 #: ../tools/virt-win-reg.pl:772
43543 #: ../src/guestfs.pod:3323
43544 msgid "To get a list of bugs against libguestfs use this link:"
43546 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
43550 #: ../src/guestfs.pod:3325
43552 "L<https://bugzilla.redhat.com/buglist.cgi?"
43553 "component=libguestfs&product=Virtualization+Tools>"
43555 "L<https://bugzilla.redhat.com/buglist.cgi?"
43556 "component=libguestfs&product=Virtualization+Tools>"
43559 #: ../src/guestfs.pod:3327
43560 msgid "To report a new bug against libguestfs use this link:"
43561 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
43564 #: ../src/guestfs.pod:3329
43566 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
43567 "component=libguestfs&product=Virtualization+Tools>"
43569 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
43570 "component=libguestfs&product=Virtualization+Tools>"
43573 #: ../src/guestfs.pod:3331
43574 msgid "When reporting a bug, please check:"
43578 #: ../src/guestfs.pod:3337
43579 msgid "That the bug hasn't been reported already."
43583 #: ../src/guestfs.pod:3341
43584 msgid "That you are testing a recent version."
43588 #: ../src/guestfs.pod:3345
43589 msgid "Describe the bug accurately, and give a way to reproduce it."
43593 #: ../src/guestfs.pod:3349
43595 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
43600 #: ../test-tool/libguestfs-test-tool.pod:5
43601 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
43605 #: ../test-tool/libguestfs-test-tool.pod:9
43608 " libguestfs-test-tool [--options]\n"
43613 #: ../test-tool/libguestfs-test-tool.pod:13
43615 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
43616 "to check basic libguestfs functionality is working. This is needed because "
43617 "libguestfs occasionally breaks for reasons beyond our control: usually "
43618 "because of changes in the underlying qemu or kernel packages, or the host "
43623 #: ../test-tool/libguestfs-test-tool.pod:19
43624 msgid "If you suspect a problem in libguestfs, then just run:"
43628 #: ../test-tool/libguestfs-test-tool.pod:21
43631 " libguestfs-test-tool\n"
43636 #: ../test-tool/libguestfs-test-tool.pod:23
43637 msgid "It will print lots of diagnostic messages."
43641 #: ../test-tool/libguestfs-test-tool.pod:25
43642 msgid "If it runs to completion successfully, you will see this near the end:"
43646 #: ../test-tool/libguestfs-test-tool.pod:27
43649 " ===== TEST FINISHED OK =====\n"
43654 #: ../test-tool/libguestfs-test-tool.pod:29
43655 msgid "and the test tool will exit with code 0."
43659 #: ../test-tool/libguestfs-test-tool.pod:31
43661 "If it fails (and/or exits with non-zero error code), please paste the "
43662 "I<complete, unedited> output of the test tool into a bug report. More "
43663 "information about reporting bugs can be found on the L<http://libguestfs.org/"
43668 #: ../test-tool/libguestfs-test-tool.pod:42
43669 msgid "Display short usage information and exit."
43673 #: ../test-tool/libguestfs-test-tool.pod:44
43674 msgid "B<--qemu qemu_binary>"
43678 #: ../test-tool/libguestfs-test-tool.pod:46
43680 "If you have downloaded another qemu binary, point this option at the full "
43681 "path of the binary to try it."
43685 #: ../test-tool/libguestfs-test-tool.pod:49
43686 msgid "B<--qemudir qemu_source_dir>"
43690 #: ../test-tool/libguestfs-test-tool.pod:51
43692 "If you have compiled qemu from source, point this option at the source "
43693 "directory to try it."
43697 #: ../test-tool/libguestfs-test-tool.pod:54
43702 #: ../test-tool/libguestfs-test-tool.pod:56
43703 msgid "B<--timeout N>"
43707 #: ../test-tool/libguestfs-test-tool.pod:58
43709 "Set the launch timeout to C<N> seconds. The default is 600 seconds (10 "
43710 "minutes) which does not usually need to be adjusted."
43714 #: ../test-tool/libguestfs-test-tool.pod:63
43715 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
43719 #: ../test-tool/libguestfs-test-tool.pod:65
43721 "If you have compiled another version of qemu from source and would like to "
43722 "try that, then you can use the I<--qemudir> option to point to the qemu "
43723 "source directory."
43727 #: ../test-tool/libguestfs-test-tool.pod:69
43729 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
43730 "option to point to the binary."
43734 #: ../test-tool/libguestfs-test-tool.pod:72
43736 "Note when using these options, you can ignore the business of qemu wrapper "
43737 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
43738 "wrapper script for you if one is needed."
43742 #: ../test-tool/libguestfs-test-tool.pod:76
43743 msgid "TRYING OUT A DIFFERENT KERNEL"
43747 #: ../test-tool/libguestfs-test-tool.pod:78
43749 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
43750 "libguestfs tries. You do this by setting the environment variables "
43751 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
43755 #: ../test-tool/libguestfs-test-tool.pod:82
43757 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
43762 #: ../test-tool/libguestfs-test-tool.pod:85
43763 msgid "SELF-DIAGNOSIS"
43767 #: ../test-tool/libguestfs-test-tool.pod:87
43769 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
43770 "produced by libguestfs-test-tool and/or possible errors."
43774 #: ../test-tool/libguestfs-test-tool.pod:92
43776 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
43777 "I<1> if there was an error."
43781 #: ../test-tool/libguestfs-test-tool.pod:97
43783 "For the full list of environment variables which may affect libguestfs, "
43784 "please see the L<guestfs(3)> manual page."
43788 #: ../test-tool/libguestfs-test-tool.pod:102
43789 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
43793 #: ../tools/virt-list-filesystems.pl:32
43795 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
43799 #: ../tools/virt-list-filesystems.pl:36
43802 " virt-list-filesystems [--options] domname\n"
43807 #: ../tools/virt-list-filesystems.pl:38
43810 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
43815 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
43817 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
43822 #: ../tools/virt-list-filesystems.pl:45
43824 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
43825 "are contained in a virtual machine or disk image."
43829 #: ../tools/virt-list-filesystems.pl:49
43831 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
43832 "functionality. For more complex cases you should look at the L<guestfish(1)"
43837 #: ../tools/virt-list-filesystems.pl:112
43839 "With this option, C<virt-list-filesystems> displays the type of each "
43840 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
43844 #: ../tools/virt-list-filesystems.pl:119
43849 #: ../tools/virt-list-filesystems.pl:123
43851 "Normally we only show mountable filesystems. If this option is given then "
43852 "swap devices are shown too."
43856 #: ../tools/virt-list-filesystems.pl:197
43858 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
43859 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
43860 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43862 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
43863 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
43864 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43867 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
43868 msgid "Copyright (C) 2009 Red Hat Inc."
43869 msgstr "© Red Hat Inc., 2009"
43872 #: ../tools/virt-list-partitions.pl:32
43874 "virt-list-partitions - List partitions in a virtual machine or disk image"
43878 #: ../tools/virt-list-partitions.pl:36
43881 " virt-list-partitions [--options] domname\n"
43884 " virt-list-partitions [--параметри] назва_домену\n"
43888 #: ../tools/virt-list-partitions.pl:38
43891 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
43894 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
43898 #: ../tools/virt-list-partitions.pl:45
43900 "C<virt-list-partitions> is a command line tool to list the partitions that "
43901 "are contained in a virtual machine or disk image. It is mainly useful as a "
43902 "first step to using L<virt-resize(1)>."
43906 #: ../tools/virt-list-partitions.pl:50
43908 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
43909 "functionality. For more complex cases you should look at the L<guestfish(1)"
43914 #: ../tools/virt-list-partitions.pl:113
43915 msgid "Show sizes in human-readable form (eg. \"1G\")."
43919 #: ../tools/virt-list-partitions.pl:123
43921 "With this option, C<virt-list-partitions> displays the type and size of each "
43922 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
43926 #: ../tools/virt-list-partitions.pl:130
43931 #: ../tools/virt-list-partitions.pl:132
43933 msgstr "B<--total>"
43936 #: ../tools/virt-list-partitions.pl:134
43938 "Display the total size of each block device (as a separate row or rows)."
43942 #: ../tools/virt-list-partitions.pl:267
43944 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
43945 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
43946 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43948 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
43949 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
43950 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43953 #: ../tools/virt-list-partitions.pl:283
43954 msgid "Copyright (C) 2009-2010 Red Hat Inc."
43955 msgstr "© Red Hat Inc., 2009–2010"
43958 #: ../tools/virt-make-fs.pl:37
43959 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
43963 #: ../tools/virt-make-fs.pl:41
43966 " virt-make-fs [--options] input.tar output.img\n"
43971 #: ../tools/virt-make-fs.pl:43
43974 " virt-make-fs [--options] input.tar.gz output.img\n"
43979 #: ../tools/virt-make-fs.pl:45
43982 " virt-make-fs [--options] directory output.img\n"
43987 #: ../tools/virt-make-fs.pl:49
43989 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
43990 "archive or some files in a directory. It is similar to tools like L<mkisofs"
43991 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, it can "
43992 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
43993 "you want to attach these filesystems to existing virtual machines (eg. to "
43994 "import large amounts of read-only data to a VM)."
43998 #: ../tools/virt-make-fs.pl:57
43999 msgid "Basic usage is:"
44003 #: ../tools/virt-make-fs.pl:59
44006 " virt-make-fs input output.img\n"
44011 #: ../tools/virt-make-fs.pl:61
44013 "where C<input> is either a directory containing files that you want to add, "
44014 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
44015 "C<output.img> is a disk image. The input type is detected automatically. "
44016 "The output disk image defaults to a raw ext2 sparse image unless you specify "
44017 "extra flags (see L</OPTIONS> below)."
44021 #: ../tools/virt-make-fs.pl:67
44022 msgid "FILESYSTEM TYPE"
44023 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
44026 #: ../tools/virt-make-fs.pl:69
44028 "The default filesystem type is C<ext2>. Just about any filesystem type that "
44029 "libguestfs supports can be used (but I<not> read-only formats like "
44030 "ISO9660). Here are some of the more common choices:"
44034 #: ../tools/virt-make-fs.pl:75
44039 #: ../tools/virt-make-fs.pl:77
44041 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
44042 "you are not going to use the filesystem in a way that requires the journal, "
44043 "then this is just wasted overhead."
44047 #: ../tools/virt-make-fs.pl:81
44048 msgid "I<ntfs> or I<vfat>"
44049 msgstr "I<ntfs> або I<vfat>"
44052 #: ../tools/virt-make-fs.pl:83
44053 msgid "Useful if exporting data to a Windows guest."
44057 #: ../tools/virt-make-fs.pl:85
44059 "I<Note for vfat>: The tar archive or local directory must only contain files "
44060 "which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
44061 "program running within libguestfs is unable to change the ownership of non-"
44062 "root files, since vfat itself does not support this."
44066 #: ../tools/virt-make-fs.pl:90
44071 #: ../tools/virt-make-fs.pl:92
44073 "Lower overhead than C<ext2>, but certain limitations on filename length and "
44074 "total filesystem size."
44078 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
44079 #: ../tools/virt-make-fs.pl:149
44084 #: ../tools/virt-make-fs.pl:99
44087 " virt-make-fs --type=minix input minixfs.img\n"
44092 #: ../tools/virt-make-fs.pl:101
44093 msgid "TO PARTITION OR NOT TO PARTITION"
44097 #: ../tools/virt-make-fs.pl:103
44098 msgid "Optionally virt-make-fs can add a partition table to the output disk."
44102 #: ../tools/virt-make-fs.pl:105
44104 "Adding a partition can make the disk image more compatible with certain "
44105 "virtualized operating systems which don't expect to see a filesystem "
44106 "directly located on a block device (Linux doesn't care and will happily "
44107 "handle both types)."
44111 #: ../tools/virt-make-fs.pl:110
44113 "On the other hand, if you have a partition table then the output image is no "
44114 "longer a straight filesystem. For example you cannot run L<fsck(8)> "
44115 "directly on a partitioned disk image. (However libguestfs tools such as "
44116 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
44120 #: ../tools/virt-make-fs.pl:118
44121 msgid "Add an MBR partition:"
44125 #: ../tools/virt-make-fs.pl:120
44128 " virt-make-fs --partition -- input disk.img\n"
44133 #: ../tools/virt-make-fs.pl:122
44135 "If the output disk image could be terabyte-sized or larger, it's better to "
44136 "use an EFI/GPT-compatible partition table:"
44140 #: ../tools/virt-make-fs.pl:125
44143 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
44148 #: ../tools/virt-make-fs.pl:127
44149 msgid "EXTRA SPACE"
44153 #: ../tools/virt-make-fs.pl:129
44155 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
44156 "the files that it contains, but might have extra space. Depending on how "
44157 "you are going to use the output, you might think this extra space is wasted "
44158 "and want to minimize it, or you might want to leave space so that more files "
44159 "can be added later. Virt-make-fs defaults to minimizing the extra space, "
44160 "but you can use the I<--size> flag to leave space in the filesystem if you "
44165 #: ../tools/virt-make-fs.pl:137
44167 "An alternative way to leave extra space but not make the output image any "
44168 "bigger is to use an alternative disk image format (instead of the default "
44169 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
44170 "image format (check your hypervisor supports this before using it). This "
44171 "allows you to choose a large I<--size> but the extra space won't actually be "
44172 "allocated in the image until you try to store something in it."
44176 #: ../tools/virt-make-fs.pl:145
44178 "Don't forget that you can also use local commands including L<resize2fs(8)> "
44179 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
44180 "to build another image from scratch."
44184 #: ../tools/virt-make-fs.pl:151
44187 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
44190 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
44194 #: ../tools/virt-make-fs.pl:179
44195 msgid "Enable debugging information."
44196 msgstr "Увімкнути виведення діагностичних даних."
44199 #: ../tools/virt-make-fs.pl:185
44200 msgid "B<--size=E<lt>NE<gt>>"
44201 msgstr "B<--size=E<lt>NE<gt>>"
44204 #: ../tools/virt-make-fs.pl:187
44205 msgid "B<--size=+E<lt>NE<gt>>"
44206 msgstr "B<--size=+E<lt>NE<gt>>"
44209 #: ../tools/virt-make-fs.pl:189
44210 msgid "B<-s E<lt>NE<gt>>"
44211 msgstr "B<-s E<lt>NE<gt>>"
44214 #: ../tools/virt-make-fs.pl:191
44215 msgid "B<-s +E<lt>NE<gt>>"
44216 msgstr "B<-s +E<lt>NE<gt>>"
44219 #: ../tools/virt-make-fs.pl:193
44221 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
44225 #: ../tools/virt-make-fs.pl:196
44227 "If this option is I<not> given, then the output image will be just large "
44228 "enough to contain all the files, with not much wasted space."
44232 #: ../tools/virt-make-fs.pl:199
44234 "To choose a fixed size output disk, specify an absolute number followed by b/"
44235 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
44236 "Petabytes or Exabytes. This must be large enough to contain all the input "
44237 "files, else you will get an error."
44241 #: ../tools/virt-make-fs.pl:204
44243 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
44244 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
44245 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
44246 "the input files, and (approximately) an extra 200 MB free space."
44250 #: ../tools/virt-make-fs.pl:210
44252 "Note that virt-make-fs estimates free space, and therefore will not produce "
44253 "filesystems containing precisely the free space requested. (It is much more "
44254 "expensive and time-consuming to produce a filesystem which has precisely the "
44255 "desired free space)."
44259 #: ../tools/virt-make-fs.pl:219
44260 msgid "B<--format=E<lt>fmtE<gt>>"
44264 #: ../tools/virt-make-fs.pl:221
44265 msgid "B<-F E<lt>fmtE<gt>>"
44269 #: ../tools/virt-make-fs.pl:223
44270 msgid "Choose the output disk image format."
44274 #: ../tools/virt-make-fs.pl:225
44275 msgid "The default is C<raw> (raw sparse disk image)."
44279 #: ../tools/virt-make-fs.pl:227
44281 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
44282 "that would really make sense here is C<qcow2>."
44286 #: ../tools/virt-make-fs.pl:234
44287 msgid "B<--type=E<lt>fsE<gt>>"
44291 #: ../tools/virt-make-fs.pl:236
44292 msgid "B<-t E<lt>fsE<gt>>"
44296 #: ../tools/virt-make-fs.pl:238
44297 msgid "Choose the output filesystem type."
44301 #: ../tools/virt-make-fs.pl:240
44302 msgid "The default is C<ext2>."
44303 msgstr "Типовим значенням є C<ext2>."
44306 #: ../tools/virt-make-fs.pl:242
44308 "Any filesystem which is supported read-write by libguestfs can be used here."
44312 #: ../tools/virt-make-fs.pl:249
44313 msgid "B<--partition>"
44314 msgstr "B<--partition>"
44317 #: ../tools/virt-make-fs.pl:251
44318 msgid "B<--partition=E<lt>parttypeE<gt>>"
44322 #: ../tools/virt-make-fs.pl:253
44324 "If specified, this flag adds an MBR partition table to the output disk image."
44328 #: ../tools/virt-make-fs.pl:256
44330 "You can change the partition table type, eg. I<--partition=gpt> for large "
44335 #: ../tools/virt-make-fs.pl:259
44337 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
44338 "might consider the next parameter to be the partition type. For example:"
44342 #: ../tools/virt-make-fs.pl:263
44345 " virt-make-fs --partition input.tar output.img\n"
44350 #: ../tools/virt-make-fs.pl:265
44352 "would cause virt-make-fs to think you wanted to use a partition type of "
44353 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
44354 "dash) between options and the input and output arguments:"
44358 #: ../tools/virt-make-fs.pl:269
44361 " virt-make-fs --partition -- input.tar output.img\n"
44366 #: ../tools/virt-make-fs.pl:271
44367 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
44371 #: ../tools/virt-make-fs.pl:559
44373 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
44374 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
44375 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
44377 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
44378 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
44379 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
44382 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
44384 "When reporting bugs, please enable debugging and capture the I<complete> "
44389 #: ../tools/virt-make-fs.pl:576
44392 " export LIBGUESTFS_DEBUG=1\n"
44393 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
44396 " export LIBGUESTFS_DEBUG=1\n"
44397 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
44401 #: ../tools/virt-make-fs.pl:579
44403 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
44408 #: ../tools/virt-tar.pl:33
44409 msgid "virt-tar - Extract or upload files to a virtual machine"
44413 #: ../tools/virt-tar.pl:37
44416 " virt-tar [--options] -x domname directory tarball\n"
44421 #: ../tools/virt-tar.pl:39
44424 " virt-tar [--options] -u domname tarball directory\n"
44429 #: ../tools/virt-tar.pl:41
44432 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
44437 #: ../tools/virt-tar.pl:43
44440 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
44445 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
44450 #: ../tools/virt-tar.pl:47
44452 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
44453 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
44457 #: ../tools/virt-tar.pl:52
44458 msgid "Download C</home> from the VM into a local tarball:"
44462 #: ../tools/virt-tar.pl:54
44465 " virt-tar -x domname /home home.tar\n"
44470 #: ../tools/virt-tar.pl:56
44473 " virt-tar -zx domname /home home.tar.gz\n"
44478 #: ../tools/virt-tar.pl:58
44479 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
44483 #: ../tools/virt-tar.pl:60
44486 " virt-tar -u domname uploadstuff.tar /tmp\n"
44491 #: ../tools/virt-tar.pl:62
44494 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
44499 #: ../tools/virt-tar.pl:66
44501 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
44502 "virtual machines. If you do this, you risk disk corruption in the VM. "
44503 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
44507 #: ../tools/virt-tar.pl:71
44509 "You can use I<-x> (extract) on live virtual machines, but you might get "
44510 "inconsistent results or errors if there is filesystem activity inside the "
44511 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
44512 "work, but the only way to guarantee consistent results is if the virtual "
44513 "machine is shut down."
44517 #: ../tools/virt-tar.pl:79
44519 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
44520 "parts of a guest filesystem. There are many possibilities: making backups, "
44521 "uploading data files, snooping on guest activity, fixing or customizing "
44526 #: ../tools/virt-tar.pl:84
44528 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
44529 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
44530 "should look at the L<guestfish(1)> tool."
44534 #: ../tools/virt-tar.pl:88
44536 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
44537 "its contents (recursively) from the virtual machine into a local tarball. "
44538 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
44539 "virtual machine. You cannot use these two options together."
44543 #: ../tools/virt-tar.pl:94
44545 "In addition, you may need to use the I<-z> (gZip) option to enable "
44546 "compression. When uploading, you have to specify I<-z> if the upload file "
44547 "is compressed because virt-tar won't detect this on its own."
44551 #: ../tools/virt-tar.pl:98
44553 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
44554 "example it cannot do PKZip files or bzip2 compression. If you want that "
44555 "then you'll have to rebuild the tarballs yourself. (This is a limitation of "
44556 "the L<libguestfs(3)> API)."
44560 #: ../tools/virt-tar.pl:160
44561 msgid "B<--extract>"
44562 msgstr "B<--extract>"
44565 #: ../tools/virt-tar.pl:162
44566 msgid "B<--download>"
44567 msgstr "B<--download>"
44570 #: ../tools/virt-tar.pl:164
44575 #: ../tools/virt-tar.pl:166
44576 msgid "B<--upload>"
44577 msgstr "B<--upload>"
44580 #: ../tools/virt-tar.pl:168
44582 "Use I<-x> to extract (download) a directory from a virtual machine to a "
44587 #: ../tools/virt-tar.pl:171
44589 "Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
44590 "Please read the L</WARNING> section above before using this option."
44594 #: ../tools/virt-tar.pl:175
44595 msgid "You must specify exactly one of these options."
44599 #: ../tools/virt-tar.pl:181
44604 #: ../tools/virt-tar.pl:183
44609 #: ../tools/virt-tar.pl:185
44610 msgid "Specify that the input or output tarball is gzip-compressed."
44614 #: ../tools/virt-tar.pl:298
44616 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
44617 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
44618 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
44621 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
44622 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
44623 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
44627 #: ../tools/virt-win-reg.pl:37
44629 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
44633 #: ../tools/virt-win-reg.pl:41
44636 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
44641 #: ../tools/virt-win-reg.pl:43
44644 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
44649 #: ../tools/virt-win-reg.pl:45
44652 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
44657 #: ../tools/virt-win-reg.pl:47
44660 " virt-win-reg --merge domname [input.reg ...]\n"
44665 #: ../tools/virt-win-reg.pl:49
44668 " virt-win-reg [--options] disk.img ... # instead of domname\n"
44673 #: ../tools/virt-win-reg.pl:53
44675 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
44676 "virtual machines. If you do this, you I<will> get irreversible disk "
44677 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
44678 "but doesn't catch all cases."
44682 #: ../tools/virt-win-reg.pl:58
44684 "Modifying the Windows Registry is an inherently risky operation. The format "
44685 "is deliberately obscure and undocumented, and Registry changes can leave the "
44686 "system unbootable. Therefore when using the I<--merge> option, make sure "
44687 "you have a reliable backup first."
44691 #: ../tools/virt-win-reg.pl:65
44693 "This program can export and merge Windows Registry entries from a Windows "
44698 #: ../tools/virt-win-reg.pl:68
44700 "The first parameter is the libvirt guest name or the raw disk image of a "
44705 #: ../tools/virt-win-reg.pl:71
44707 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
44708 "exported (recursively). For example:"
44712 #: ../tools/virt-win-reg.pl:74
44715 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
44718 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
44722 #: ../tools/virt-win-reg.pl:76
44724 "You can also display single values from within registry keys, for example:"
44728 #: ../tools/virt-win-reg.pl:79
44731 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
44732 " $ virt-win-reg Windows7 $cvkey ProductName\n"
44733 " Windows 7 Enterprise\n"
44736 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
44737 " $ virt-win-reg Windows7 $cvkey ProductName\n"
44738 " Windows 7 Enterprise\n"
44742 #: ../tools/virt-win-reg.pl:83
44744 "With I<--merge>, you can merge a textual regedit file into the Windows "
44749 #: ../tools/virt-win-reg.pl:86
44752 " $ virt-win-reg --merge Windows7 changes.reg\n"
44755 " $ virt-win-reg --merge Windows7 changes.reg\n"
44759 #: ../tools/virt-win-reg.pl:90
44761 "This program is only meant for simple access to the registry. If you want "
44762 "to do complicated things with the registry, we suggest you download the "
44763 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
44764 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
44765 "L<hivexregedit(1)>."
44769 #: ../tools/virt-win-reg.pl:159
44771 msgstr "B<--merge>"
44774 #: ../tools/virt-win-reg.pl:161
44776 "In merge mode, this merges a textual regedit file into the Windows Registry "
44777 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
44778 "displays or exports Registry entries instead."
44782 #: ../tools/virt-win-reg.pl:165
44784 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
44785 "result in disk corruption. However exporting (without this flag) is always "
44790 #: ../tools/virt-win-reg.pl:173
44791 msgid "B<--encoding> UTF-16LE|ASCII"
44792 msgstr "B<--encoding> UTF-16LE|ASCII"
44795 #: ../tools/virt-win-reg.pl:175
44797 "When merging (only), you may need to specify the encoding for strings to be "
44798 "used in the hive file. This is explained in detail in L<Win::Hivex::Regedit"
44799 "(3)/ENCODING STRINGS>."
44803 #: ../tools/virt-win-reg.pl:179
44805 "The default is to use UTF-16LE, which should work with recent versions of "
44810 #: ../tools/virt-win-reg.pl:186
44811 msgid "B<--unsafe-printable-strings>"
44812 msgstr "B<--unsafe-printable-strings>"
44815 #: ../tools/virt-win-reg.pl:188
44817 "When exporting (only), assume strings are UTF-16LE and print them as strings "
44818 "instead of hex sequences. Remove the final zero codepoint from strings if "
44823 #: ../tools/virt-win-reg.pl:192
44825 "This is unsafe and does not preserve the fidelity of strings in the original "
44826 "Registry for various reasons:"
44830 #: ../tools/virt-win-reg.pl:199
44832 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
44833 "other encodings will be corrupted by this transformation."
44837 #: ../tools/virt-win-reg.pl:204
44839 "Assumes that everything which has type 1 or 2 is really a string and that "
44840 "everything else is not a string, but the type field in real Registries is "
44845 #: ../tools/virt-win-reg.pl:210
44847 "Loses information about whether a zero codepoint followed the string in the "
44852 #: ../tools/virt-win-reg.pl:215
44854 "This all happens because the Registry itself contains no information about "
44855 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
44859 #: ../tools/virt-win-reg.pl:219
44861 "You should only use this option for quick hacking and debugging of the "
44862 "Registry contents, and I<never> use it if the output is going to be passed "
44863 "into another program or stored in another Registry."
44867 #: ../tools/virt-win-reg.pl:556
44868 msgid "SUPPORTED SYSTEMS"
44869 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
44872 #: ../tools/virt-win-reg.pl:558
44874 "The program currently supports Windows NT-derived guests starting with "
44875 "Windows XP through to at least Windows 7."
44879 #: ../tools/virt-win-reg.pl:561
44880 msgid "The following Registry keys are supported:"
44884 #: ../tools/virt-win-reg.pl:565
44885 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
44886 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
44889 #: ../tools/virt-win-reg.pl:567
44890 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
44891 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
44894 #: ../tools/virt-win-reg.pl:569
44895 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
44896 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
44899 #: ../tools/virt-win-reg.pl:571
44900 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
44901 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
44904 #: ../tools/virt-win-reg.pl:573
44905 msgid "C<HKEY_USERS\\.DEFAULT>"
44906 msgstr "C<HKEY_USERS\\.DEFAULT>"
44909 #: ../tools/virt-win-reg.pl:575
44910 msgid "C<HKEY_USERS\\I<SID>>"
44911 msgstr "C<HKEY_USERS\\I<SID>>"
44914 #: ../tools/virt-win-reg.pl:577
44915 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
44919 #: ../tools/virt-win-reg.pl:579
44920 msgid "C<HKEY_USERS\\I<username>>"
44921 msgstr "C<HKEY_USERS\\I<користувач>>"
44924 #: ../tools/virt-win-reg.pl:581
44926 "where I<username> is a local user name (this is a libguestfs extension)."
44930 #: ../tools/virt-win-reg.pl:585
44932 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
44937 #: ../tools/virt-win-reg.pl:588
44939 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
44940 "supported (there is no \"current user\")."
44944 #: ../tools/virt-win-reg.pl:591
44949 #: ../tools/virt-win-reg.pl:593
44951 "C<virt-win-reg> expects that regedit files have already been reencoded in "
44952 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
44953 "style line endings. Since Windows regedit files are often in UTF-16LE with "
44954 "Windows-style line endings, you may need to reencode the whole file before "
44955 "or after processing."
44959 #: ../tools/virt-win-reg.pl:599
44961 "To reencode a file from Windows format to Linux (before processing it with "
44962 "the I<--merge> option), you would do something like this:"
44966 #: ../tools/virt-win-reg.pl:602
44969 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
44972 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
44976 #: ../tools/virt-win-reg.pl:604
44978 "To go in the opposite direction, after exporting and before sending the file "
44979 "to a Windows user, do something like this:"
44983 #: ../tools/virt-win-reg.pl:607
44986 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
44989 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
44993 #: ../tools/virt-win-reg.pl:609
44994 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
44998 #: ../tools/virt-win-reg.pl:611
45000 "If you are unsure about the current encoding, use the L<file(1)> command. "
45001 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
45002 "style (CRLF) line endings, like this:"
45006 #: ../tools/virt-win-reg.pl:615
45009 " $ file software.reg\n"
45010 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
45011 " with CRLF line terminators\n"
45016 #: ../tools/virt-win-reg.pl:619
45017 msgid "This file would need conversion before you could I<--merge> it."
45021 #: ../tools/virt-win-reg.pl:621
45022 msgid "CurrentControlSet etc."
45026 #: ../tools/virt-win-reg.pl:623
45028 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
45029 "Registry at the level of the hive file, and therefore you cannot modify "
45034 #: ../tools/virt-win-reg.pl:627
45036 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
45037 "circumstances it might refer to another control set. The way to find out is "
45038 "to look at the C<HKLM\\SYSTEM\\Select> key:"
45042 #: ../tools/virt-win-reg.pl:631
45045 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
45046 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
45047 " \"Current\"=dword:00000001\n"
45048 " \"Default\"=dword:00000001\n"
45049 " \"Failed\"=dword:00000000\n"
45050 " \"LastKnownGood\"=dword:00000002\n"
45053 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
45054 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
45055 " \"Current\"=dword:00000001\n"
45056 " \"Default\"=dword:00000001\n"
45057 " \"Failed\"=dword:00000000\n"
45058 " \"LastKnownGood\"=dword:00000002\n"
45062 #: ../tools/virt-win-reg.pl:638
45063 msgid "\"Current\" is the one which Windows will choose when it boots."
45067 #: ../tools/virt-win-reg.pl:640
45069 "Similarly, other C<Current...> keys in the path may need to be replaced."
45073 #: ../tools/virt-win-reg.pl:643
45074 msgid "DELETING REGISTRY KEYS AND VALUES"
45078 #: ../tools/virt-win-reg.pl:645
45079 msgid "To delete a whole registry key, use the syntax:"
45083 #: ../tools/virt-win-reg.pl:647
45086 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
45091 #: ../tools/virt-win-reg.pl:649
45092 msgid "To delete a single value within a key, use the syntax:"
45096 #: ../tools/virt-win-reg.pl:651
45099 " [HKEY_LOCAL_MACHINE\\Foo]\n"
45105 #: ../tools/virt-win-reg.pl:654
45106 msgid "WINDOWS TIPS"
45110 #: ../tools/virt-win-reg.pl:656
45112 "Note that some of these tips modify the guest disk image. The guest I<must> "
45113 "be shut off, else you will get disk corruption."
45117 #: ../tools/virt-win-reg.pl:659
45118 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
45122 #: ../tools/virt-win-reg.pl:661
45124 "Prepare a DOS batch script, VBScript or executable. Upload this using "
45125 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
45126 "is uploaded into C<C:\\>:"
45130 #: ../tools/virt-win-reg.pl:665
45133 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
45136 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
45140 #: ../tools/virt-win-reg.pl:667
45141 msgid "Prepare a regedit file containing the registry change:"
45145 #: ../tools/virt-win-reg.pl:669
45148 " cat > test.reg <<'EOF'\n"
45149 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
45150 " \"Test\"=\"c:\\\\test.bat\"\n"
45154 " cat > test.reg <<'EOF'\n"
45155 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
45156 " \"Test\"=\"c:\\\\test.bat\"\n"
45161 #: ../tools/virt-win-reg.pl:674
45163 "In this example we use the key C<RunOnce> which means that the script will "
45164 "run precisely once when the first user logs in. If you want it to run every "
45165 "time a user logs in, replace C<RunOnce> with C<Run>."
45169 #: ../tools/virt-win-reg.pl:678
45170 msgid "Now update the registry:"
45171 msgstr "Оновіть регістр:"
45174 #: ../tools/virt-win-reg.pl:680
45177 " virt-win-reg --merge WindowsGuest test.reg\n"
45182 #: ../tools/virt-win-reg.pl:682
45183 msgid "INSTALLING A SERVICE"
45187 #: ../tools/virt-win-reg.pl:684
45189 "This section assumes you are familiar with Windows services, and you either "
45190 "have a program which handles the Windows Service Control Protocol directly "
45191 "or you want to run any program using a service wrapper like SrvAny or the "
45196 #: ../tools/virt-win-reg.pl:689
45198 "First upload the program and optionally the service wrapper. In this case "
45199 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
45203 #: ../tools/virt-win-reg.pl:693
45206 " guestfish -i -d WindowsGuest <<EOF\n"
45207 " upload rhsrvany.exe /rhsrvany.exe\n"
45208 " upload test.exe /test.exe\n"
45212 " guestfish -i -d WindowsGuest <<EOF\n"
45213 " upload rhsrvany.exe /rhsrvany.exe\n"
45214 " upload test.exe /test.exe\n"
45219 #: ../tools/virt-win-reg.pl:698
45221 "Prepare a regedit file containing the registry changes. In this example, "
45222 "the first registry change is needed for the service itself or the service "
45223 "wrapper (if used). The second registry change is only needed because I am "
45224 "using the RHSrvAny service wrapper."
45228 #: ../tools/virt-win-reg.pl:703
45231 " cat > service.reg <<'EOF'\n"
45232 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
45233 " \"Type\"=dword:00000010\n"
45234 " \"Start\"=dword:00000002\n"
45235 " \"ErrorControl\"=dword:00000001\n"
45236 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
45237 " \"DisplayName\"=\"RHSrvAny\"\n"
45238 " \"ObjectName\"=\"NetworkService\"\n"
45241 " cat > service.reg <<'EOF'\n"
45242 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
45243 " \"Type\"=dword:00000010\n"
45244 " \"Start\"=dword:00000002\n"
45245 " \"ErrorControl\"=dword:00000001\n"
45246 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
45247 " \"DisplayName\"=\"RHSrvAny\"\n"
45248 " \"ObjectName\"=\"NetworkService\"\n"
45252 #: ../tools/virt-win-reg.pl:712
45255 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
45256 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
45257 " \"PWD\"=\"c:\\\\Temp\"\n"
45261 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
45262 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
45263 " \"PWD\"=\"c:\\\\Temp\"\n"
45268 #: ../tools/virt-win-reg.pl:723
45270 "For use of C<ControlSet001> see the section above in this manual page. You "
45271 "may need to adjust this according to the control set that is in use by the "
45276 #: ../tools/virt-win-reg.pl:729
45278 "C<\"ObjectName\"> controls the privileges that the service will have. An "
45279 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
45280 "privileged account."
45284 #: ../tools/virt-win-reg.pl:735
45286 "For the meaning of the magic numbers, see this Microsoft KB article: "
45287 "L<http://support.microsoft.com/kb/103000>."
45291 #: ../tools/virt-win-reg.pl:740
45292 msgid "Update the registry:"
45293 msgstr "Оновіть регістр:"
45296 #: ../tools/virt-win-reg.pl:742
45299 " virt-win-reg --merge WindowsGuest service.reg\n"
45304 #: ../tools/virt-win-reg.pl:746
45306 "Be careful when passing parameters containing C<\\> (backslash) in the "
45307 "shell. Usually you will have to use 'single quotes' or double backslashes "
45308 "(but not both) to protect them from the shell."
45312 #: ../tools/virt-win-reg.pl:750
45313 msgid "Paths and value names are case-insensitive."
45317 #: ../tools/virt-win-reg.pl:759
45319 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
45320 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
45321 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
45323 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
45324 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
45325 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
45328 #: ../tools/virt-win-reg.pl:777
45331 " export LIBGUESTFS_DEBUG=1\n"
45332 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
45337 #: ../tools/virt-win-reg.pl:780
45339 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."