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-10-26 21:10+0200\n"
12 "PO-Revision-Date: 2011-10-19 15:46+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 ../fish/guestfish.pod:3
28 #: ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3
29 #: ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3
30 #: ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3
31 #: ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3
32 #: ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3
33 #: ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3
34 #: ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3
35 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
36 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
37 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
38 #: ../tools/virt-win-reg.pl:35
43 #: ../align/virt-alignment-scan.pod:5
44 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
48 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7
49 #: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
50 #: ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
51 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
52 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
53 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
54 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
55 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
56 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
57 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
58 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
59 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
60 #: ../test-tool/libguestfs-test-tool.pod:7
61 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
62 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
63 #: ../tools/virt-win-reg.pl:39
65 msgstr "КОРОТКИЙ ОПИС"
68 #: ../align/virt-alignment-scan.pod:9
71 " virt-alignment-scan [--options] -d domname\n"
76 #: ../align/virt-alignment-scan.pod:11
79 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
84 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19
85 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
86 #: ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
87 #: ../erlang/examples/guestfs-erlang.pod:16
88 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
89 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
90 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
91 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
92 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
93 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
94 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
95 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
96 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
97 #: ../test-tool/libguestfs-test-tool.pod:11
98 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
99 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
100 #: ../tools/virt-win-reg.pl:63
105 #: ../align/virt-alignment-scan.pod:15
107 "When older operating systems install themselves, the partitioning tools "
108 "place partitions at a sector misaligned with the underlying storage "
109 "(commonly the first partition starts on sector C<63>). Misaligned "
110 "partitions can result in an operating system issuing more I/O than should be "
115 #: ../align/virt-alignment-scan.pod:21
117 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
118 "machines and disk images and warns you if there are alignment problems."
122 #: ../align/virt-alignment-scan.pod:25
124 "Currently there is no virt tool for fixing alignment problems. You can only "
125 "reinstall the guest operating system. The following NetApp document "
126 "summarises the problem and possible solutions: L<http://media.netapp.com/"
127 "documents/tr-3747.pdf>"
131 #: ../align/virt-alignment-scan.pod:30
136 #: ../align/virt-alignment-scan.pod:32
137 msgid "To run this tool on a disk image directly, use the I<-a> option:"
141 #: ../align/virt-alignment-scan.pod:34
144 " $ virt-alignment-scan -a winxp.img\n"
145 " /dev/sda1 32256 512 bad (alignment < 4K)\n"
150 #: ../align/virt-alignment-scan.pod:37
153 " $ virt-alignment-scan -a fedora16.img\n"
154 " /dev/sda1 1048576 1024K ok\n"
155 " /dev/sda2 2097152 2048K ok\n"
156 " /dev/sda3 526385152 2048K ok\n"
161 #: ../align/virt-alignment-scan.pod:42
163 "To run the tool on a guest known to libvirt, use the I<-d> option and "
164 "possibly the I<-c> option:"
168 #: ../align/virt-alignment-scan.pod:45
171 " # virt-alignment-scan -d RHEL5\n"
172 " /dev/sda1 32256 512 bad (alignment < 4K)\n"
173 " /dev/sda2 106928640 512 bad (alignment < 4K)\n"
178 #: ../align/virt-alignment-scan.pod:49
181 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
182 " /dev/sda1 1048576 1024K ok\n"
183 " /dev/sda2 105906176 1024K ok\n"
184 " /dev/sdb1 65536 64K ok\n"
189 #: ../align/virt-alignment-scan.pod:54
191 "The output consists of 4 or more whitespace-separated columns. Only the "
192 "first 4 columns are signficant if you want to parse this from a program. "
197 #: ../align/virt-alignment-scan.pod:60
202 #: ../align/virt-alignment-scan.pod:62
204 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
205 "on the first block device)"
209 #: ../align/virt-alignment-scan.pod:65
214 #: ../align/virt-alignment-scan.pod:67
215 msgid "the start of the partition in bytes"
219 #: ../align/virt-alignment-scan.pod:69
224 #: ../align/virt-alignment-scan.pod:71
225 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
229 #: ../align/virt-alignment-scan.pod:73
234 #: ../align/virt-alignment-scan.pod:75
236 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
237 "can cause performance problems"
241 #: ../align/virt-alignment-scan.pod:78
246 #: ../align/virt-alignment-scan.pod:80
247 msgid "optional free-text explanation."
251 #: ../align/virt-alignment-scan.pod:84
253 "The exit code from the program changes depending on whether poorly aligned "
254 "partitions were found. See L</EXIT STATUS> below."
258 #: ../align/virt-alignment-scan.pod:87
259 msgid "If you just want the exit code with no output, use the I<-q> option."
263 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62
264 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261
265 #: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
266 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
267 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
268 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92
269 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
270 #: ../resize/virt-resize.pod:262 ../sparsify/virt-sparsify.pod:99
271 #: ../test-tool/libguestfs-test-tool.pod:36
272 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
273 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
274 #: ../tools/virt-win-reg.pl:96
279 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
280 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
281 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
282 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
283 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
284 #: ../resize/virt-resize.pod:266 ../sparsify/virt-sparsify.pod:103
285 #: ../test-tool/libguestfs-test-tool.pod:40
286 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
287 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
288 #: ../tools/virt-win-reg.pl:104
293 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
294 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
295 #: ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
296 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
297 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
298 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
299 #: ../tools/virt-win-reg.pl:106
300 msgid "Display brief help."
301 msgstr "Показати коротку довідку."
304 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70
305 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269
306 #: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
307 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
312 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72
313 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271
314 #: ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
315 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
316 msgid "B<--add> file"
317 msgstr "B<--add> файл"
320 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
321 msgid "Add I<file> which should be a disk image from a virtual machine."
325 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78
326 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277
327 #: ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
328 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
329 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
331 "The format of the disk image is auto-detected. To override this and force a "
332 "particular format use the I<--format=..> option."
336 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81
337 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291
338 #: ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78
339 #: ../rescue/virt-rescue.pod:107
341 msgstr "B<-c> адреса"
344 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83
345 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293
346 #: ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80
347 #: ../rescue/virt-rescue.pod:109
348 msgid "B<--connect> URI"
349 msgstr "B<--connect> адреса"
352 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85
353 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295
354 #: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
355 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
356 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
357 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
359 "If using libvirt, connect to the given I<URI>. If omitted, then we connect "
360 "to the default libvirt hypervisor."
364 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88
365 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298
366 #: ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85
367 #: ../rescue/virt-rescue.pod:114
369 "If you specify guest block devices directly (I<-a>), then libvirt is not "
374 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91
375 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307
376 #: ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
377 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
382 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93
383 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309
384 #: ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
385 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
386 msgid "B<--domain> guest"
387 msgstr "B<--domain> гість"
390 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95
391 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311
392 #: ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
393 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
395 "Add all the disks from the named libvirt guest. Domain UUIDs can be used "
400 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105
401 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
402 #: ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101
403 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142
404 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
405 msgid "B<--format=raw|qcow2|..>"
406 msgstr "B<--format=raw|qcow2|..>"
409 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107
410 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
411 #: ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103
412 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
413 #: ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101
414 #: ../rescue/virt-rescue.pod:126
419 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109
420 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
421 #: ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105
422 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
423 #: ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:128
425 "The default for the I<-a> option is to auto-detect the format of the disk "
426 "image. Using this forces the disk format for I<-a> options which follow on "
427 "the command line. Using I<--format> with no argument switches back to auto-"
428 "detection for subsequent I<-a> options."
432 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114
433 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
434 #: ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110
435 #: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
436 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:336
437 #: ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2877
442 #: ../align/virt-alignment-scan.pod:134
445 " virt-alignment-scan --format=raw -a disk.img\n"
450 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
451 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
452 #: ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114
453 #: ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
454 #: ../rescue/virt-rescue.pod:137
455 msgid "forces raw format (no auto-detection) for C<disk.img>."
459 #: ../align/virt-alignment-scan.pod:138
462 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
467 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122
468 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
469 #: ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118
470 #: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
471 #: ../rescue/virt-rescue.pod:141
473 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
474 "detection for C<another.img>."
478 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125
479 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
480 #: ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121
481 #: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
483 "If you have untrusted raw-format guest disk images, you should use this "
484 "option to specify the disk format. This avoids a possible security problem "
485 "with malicious guests (CVE-2010-3851)."
489 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:491
490 #: ../sparsify/virt-sparsify.pod:153
495 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:493
496 #: ../sparsify/virt-sparsify.pod:155
501 #: ../align/virt-alignment-scan.pod:151
503 "Don't produce any output. Just set the exit code (see L</EXIT STATUS> "
508 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
509 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
510 #: ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173
511 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
512 #: ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119
513 #: ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:159
518 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136
519 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
520 #: ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175
521 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
522 #: ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121
523 #: ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:161
525 msgstr "B<--verbose>"
528 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138
529 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
530 #: ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177
531 #: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123
532 #: ../rescue/virt-rescue.pod:186 ../sparsify/virt-sparsify.pod:163
533 msgid "Enable verbose messages for debugging."
537 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140
538 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
539 #: ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179
540 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
541 #: ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125
542 #: ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:561
543 #: ../sparsify/virt-sparsify.pod:165
548 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
549 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
550 #: ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181
551 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
552 #: ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127
553 #: ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:563
554 #: ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69
555 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
556 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
558 msgstr "B<--version>"
561 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
562 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
563 #: ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183
564 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
565 #: ../rescue/virt-rescue.pod:192 ../resize/virt-resize.pod:565
566 #: ../sparsify/virt-sparsify.pod:169 ../tools/virt-list-filesystems.pl:71
567 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
568 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
569 msgid "Display version number and exit."
570 msgstr "Показати дані щодо версії і завершити роботу."
573 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
574 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
575 #: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185
576 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
577 #: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131
578 #: ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:171
579 #: ../tools/virt-tar.pl:158
584 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
585 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
586 #: ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187
587 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
588 #: ../rescue/virt-rescue.pod:205 ../sparsify/virt-sparsify.pod:173
589 msgid "Enable tracing of libguestfs API calls."
593 #: ../align/virt-alignment-scan.pod:172
594 msgid "RECOMMENDED ALIGNMENT"
598 #: ../align/virt-alignment-scan.pod:174
600 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
601 "first sector of the first partition at sector 63, with a 512 byte sector "
602 "size. This happens because of a historical accident. Drives have to report "
603 "a cylinder / head / sector (CHS) geometry to the BIOS. The geometry is "
604 "completely meaningless on modern drives, but it happens that the geometry "
605 "reported always has 63 sectors per track. The operating system therefore "
606 "places the first partition at the start of the second \"track\", at sector "
611 #: ../align/virt-alignment-scan.pod:183
613 "When the guest OS is virtualized, the host operating system and hypervisor "
614 "may prefer accesses aligned to one of:"
618 #: ../align/virt-alignment-scan.pod:188
623 #: ../align/virt-alignment-scan.pod:190
625 "if the host OS uses local storage directly on hard drive partitions, and the "
626 "hard drive has 512 byte physical sectors."
630 #: ../align/virt-alignment-scan.pod:193
635 #: ../align/virt-alignment-scan.pod:195
637 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
638 "backed storage on filesystems with 4Kbyte block size; or for some types of "
639 "network-attached storage."
643 #: ../align/virt-alignment-scan.pod:199
648 #: ../align/virt-alignment-scan.pod:201
650 "for high-end network-attached storage. This is the optimal block size for "
651 "some NetApp hardware."
655 #: ../align/virt-alignment-scan.pod:204
660 #: ../align/virt-alignment-scan.pod:206
661 msgid "see L</1 MB PARTITION ALIGNMENT> below."
665 #: ../align/virt-alignment-scan.pod:210
667 "Partitions which are not aligned correctly to the underlying storage cause "
668 "extra I/O. For example:"
672 #: ../align/virt-alignment-scan.pod:213
676 " +--------------------------+------\n"
678 " | filesystem block |\n"
679 " ---+------------------+------+-------------------+-----+---\n"
680 " | host block | host block |\n"
682 " ---+-------------------------+-------------------------+---\n"
687 #: ../align/virt-alignment-scan.pod:222
689 "In this example, each time a 4K guest block is read, two blocks on the host "
690 "must be accessed (so twice as much I/O is done). When a 4K guest block is "
691 "written, two host blocks must first be read, the old and new data combined, "
692 "and the two blocks written back (4x I/O)."
696 #: ../align/virt-alignment-scan.pod:227
697 msgid "LINUX HOST BLOCK AND I/O SIZE"
701 #: ../align/virt-alignment-scan.pod:229
703 "New versions of the Linux kernel expose the physical and logical block size, "
704 "and minimum and recommended I/O size."
708 #: ../align/virt-alignment-scan.pod:232
709 msgid "For a typical hard drive with 512 byte sectors:"
713 #: ../align/virt-alignment-scan.pod:234
716 " $ cat /sys/block/sda/queue/physical_block_size\n"
718 " $ cat /sys/block/sda/queue/logical_block_size\n"
720 " $ cat /sys/block/sda/queue/minimum_io_size\n"
722 " $ cat /sys/block/sda/queue/optimal_io_size\n"
728 #: ../align/virt-alignment-scan.pod:243
729 msgid "For a NetApp LUN:"
733 #: ../align/virt-alignment-scan.pod:245
736 " $ cat /sys/block/sdc/queue/logical_block_size\n"
738 " $ cat /sys/block/sdc/queue/physical_block_size\n"
740 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
742 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
748 #: ../align/virt-alignment-scan.pod:254
750 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
751 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
755 #: ../align/virt-alignment-scan.pod:258
757 "For detailed information about what these numbers mean, see L<http://docs."
758 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
759 "Storage_Administration_Guide/newstorage-iolimits.html>"
763 #: ../align/virt-alignment-scan.pod:261
765 "[Thanks to Mike Snitzer for providing NetApp data and additional "
770 #: ../align/virt-alignment-scan.pod:264
771 msgid "1 MB PARTITION ALIGNMENT"
775 #: ../align/virt-alignment-scan.pod:266
777 "Microsoft picked 1 MB as the default alignment for all partitions starting "
778 "with Windows 2008 Server, and Linux has followed this."
782 #: ../align/virt-alignment-scan.pod:269
784 "Assuming 512 byte sectors in the guest, you will now see the first partition "
785 "starting at sector 2048, and subsequent partitions (if any) will start at a "
786 "multiple of 2048 sectors."
790 #: ../align/virt-alignment-scan.pod:273
792 "1 MB alignment is compatible with all current alignment requirements (4K, "
793 "64K) and provides room for future growth in physical block sizes."
797 #: ../align/virt-alignment-scan.pod:276
798 msgid "SETTING ALIGNMENT"
802 #: ../align/virt-alignment-scan.pod:278
804 "L<virt-resize(1)> can change the alignment of the partitions of some "
805 "guests. Currently it can fully align all the partitions of all Windows "
806 "guests, and it will fix the bootloader where necessary. For Linux guests, "
807 "it can align the second and subsequent partitions, so the majority of OS "
808 "accesses except at boot will be aligned."
812 #: ../align/virt-alignment-scan.pod:284
814 "Another way to correct partition alignment problems is to reinstall your "
815 "guest operating systems. If you install operating systems from templates, "
816 "ensure these have correct partition alignment too."
820 #: ../align/virt-alignment-scan.pod:288
822 "For older versions of Windows, the following NetApp document contains useful "
823 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
827 #: ../align/virt-alignment-scan.pod:291
829 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
830 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
831 ">. Do not use the Kickstart C<part> command. The NetApp document above "
832 "contains an example."
836 #: ../align/virt-alignment-scan.pod:296 ../cat/virt-cat.pod:231
837 #: ../cat/virt-filesystems.pod:373 ../cat/virt-ls.pod:483
838 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:215
839 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:352
840 #: ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:676
841 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
842 #: ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289
843 #: ../tools/virt-win-reg.pl:744
844 msgid "SHELL QUOTING"
848 #: ../align/virt-alignment-scan.pod:298 ../cat/virt-cat.pod:233
849 #: ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485
850 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:217
851 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:354
852 #: ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:678
853 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
854 #: ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291
855 #: ../tools/virt-win-reg.pl:752
857 "Libvirt guest names can contain arbitrary characters, some of which have "
858 "meaning to the shell such as C<#> and space. You may need to quote or "
859 "escape these characters on the command line. See the shell manual page L<sh"
864 #: ../align/virt-alignment-scan.pod:303 ../cat/virt-cat.pod:238
865 #: ../cat/virt-filesystems.pod:380 ../cat/virt-ls.pod:490
866 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:222
867 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
868 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:375
869 #: ../resize/virt-resize.pod:683 ../sparsify/virt-sparsify.pod:227
870 #: ../test-tool/libguestfs-test-tool.pod:90
875 #: ../align/virt-alignment-scan.pod:305
876 msgid "This program returns:"
880 #: ../align/virt-alignment-scan.pod:309 ../align/virt-alignment-scan.pod:315
881 #: ../align/virt-alignment-scan.pod:321 ../align/virt-alignment-scan.pod:328
882 #: ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187
883 #: ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202
884 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
885 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
886 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
887 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
888 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
889 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
890 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
891 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
892 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
893 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
894 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
895 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
896 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
897 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
898 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
899 #: ../fish/guestfish-actions.pod:441 ../fish/guestfish-actions.pod:449
900 #: ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:463
901 #: ../fish/guestfish-actions.pod:1262 ../fish/guestfish-actions.pod:1266
902 #: ../fish/guestfish-actions.pod:1270 ../fish/guestfish-actions.pod:1274
903 #: ../fish/guestfish-actions.pod:1282 ../fish/guestfish-actions.pod:1286
904 #: ../fish/guestfish-actions.pod:1290 ../fish/guestfish-actions.pod:1300
905 #: ../fish/guestfish-actions.pod:1304 ../fish/guestfish-actions.pod:1308
906 #: ../fish/guestfish-actions.pod:1398 ../fish/guestfish-actions.pod:1402
907 #: ../fish/guestfish-actions.pod:1407 ../fish/guestfish-actions.pod:1412
908 #: ../fish/guestfish-actions.pod:1454 ../fish/guestfish-actions.pod:1458
909 #: ../fish/guestfish-actions.pod:1463 ../fish/guestfish-actions.pod:1719
910 #: ../fish/guestfish-actions.pod:1726 ../fish/guestfish-actions.pod:1733
911 #: ../fish/guestfish-actions.pod:2136 ../fish/guestfish-actions.pod:2142
912 #: ../fish/guestfish-actions.pod:2150 ../fish/guestfish-actions.pod:2157
913 #: ../fish/guestfish-actions.pod:2164 ../fish/guestfish.pod:445
914 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
915 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
916 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:359
917 #: ../resize/virt-resize.pod:363 ../resize/virt-resize.pod:372
918 #: ../resize/virt-resize.pod:378 ../sparsify/virt-sparsify.pod:32
919 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
920 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
921 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
922 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
923 #: ../src/guestfs-actions.pod:641 ../src/guestfs-actions.pod:649
924 #: ../src/guestfs-actions.pod:656 ../src/guestfs-actions.pod:663
925 #: ../src/guestfs-actions.pod:2071 ../src/guestfs-actions.pod:2075
926 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:2083
927 #: ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:2095
928 #: ../src/guestfs-actions.pod:2099 ../src/guestfs-actions.pod:2109
929 #: ../src/guestfs-actions.pod:2113 ../src/guestfs-actions.pod:2117
930 #: ../src/guestfs-actions.pod:2255 ../src/guestfs-actions.pod:2259
931 #: ../src/guestfs-actions.pod:2264 ../src/guestfs-actions.pod:2269
932 #: ../src/guestfs-actions.pod:2330 ../src/guestfs-actions.pod:2334
933 #: ../src/guestfs-actions.pod:2339 ../src/guestfs-actions.pod:2754
934 #: ../src/guestfs-actions.pod:2761 ../src/guestfs-actions.pod:2768
935 #: ../src/guestfs-actions.pod:3313 ../src/guestfs-actions.pod:3319
936 #: ../src/guestfs-actions.pod:3327 ../src/guestfs-actions.pod:3334
937 #: ../src/guestfs-actions.pod:3341 ../src/guestfs.pod:403
938 #: ../src/guestfs.pod:408 ../src/guestfs.pod:413 ../src/guestfs.pod:417
939 #: ../src/guestfs.pod:422 ../src/guestfs.pod:426 ../src/guestfs.pod:431
940 #: ../src/guestfs.pod:436 ../src/guestfs.pod:1109 ../src/guestfs.pod:1113
941 #: ../src/guestfs.pod:1117 ../src/guestfs.pod:1122 ../src/guestfs.pod:1130
942 #: ../src/guestfs.pod:1149 ../src/guestfs.pod:1157 ../src/guestfs.pod:1179
943 #: ../src/guestfs.pod:1183 ../src/guestfs.pod:1187 ../src/guestfs.pod:1191
944 #: ../src/guestfs.pod:1195 ../src/guestfs.pod:1199 ../src/guestfs.pod:1689
945 #: ../src/guestfs.pod:1694 ../src/guestfs.pod:1698 ../src/guestfs.pod:1800
946 #: ../src/guestfs.pod:1805 ../src/guestfs.pod:1809 ../src/guestfs.pod:1819
947 #: ../src/guestfs.pod:2108 ../src/guestfs.pod:2113 ../src/guestfs.pod:2119
948 #: ../src/guestfs.pod:2127 ../src/guestfs.pod:2645 ../src/guestfs.pod:2651
949 #: ../src/guestfs.pod:2656 ../src/guestfs.pod:2662 ../src/guestfs.pod:3062
950 #: ../src/guestfs.pod:3067 ../src/guestfs.pod:3071 ../src/guestfs.pod:3075
951 #: ../src/guestfs.pod:3079 ../src/guestfs.pod:3093 ../src/guestfs.pod:3098
952 #: ../src/guestfs.pod:3329 ../src/guestfs.pod:3333 ../src/guestfs.pod:3337
953 #: ../src/guestfs.pod:3341 ../tools/virt-win-reg.pl:197
954 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
955 #: ../tools/virt-win-reg.pl:721 ../tools/virt-win-reg.pl:727
956 #: ../tools/virt-win-reg.pl:733
961 #: ../align/virt-alignment-scan.pod:311
966 #: ../align/virt-alignment-scan.pod:313
968 "successful exit, all partitions are aligned E<ge> 64K for best performance"
972 #: ../align/virt-alignment-scan.pod:317
977 #: ../align/virt-alignment-scan.pod:319
978 msgid "an error scanning the disk image or guest"
982 #: ../align/virt-alignment-scan.pod:323
987 #: ../align/virt-alignment-scan.pod:325
989 "successful exit, some partitions have alignment E<lt> 64K which can result "
990 "in poor performance on high end network storage"
994 #: ../align/virt-alignment-scan.pod:330
999 #: ../align/virt-alignment-scan.pod:332
1001 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1002 "poor performance on most hypervisors"
1006 #: ../align/virt-alignment-scan.pod:337 ../cat/virt-cat.pod:243
1007 #: ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495
1008 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:227
1009 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1010 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1011 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50
1012 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
1013 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317
1014 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
1015 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
1016 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
1017 #: ../resize/virt-resize.pod:688 ../ruby/examples/guestfs-ruby.pod:36
1018 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3270
1019 #: ../test-tool/libguestfs-test-tool.pod:100
1020 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1021 #: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296
1022 #: ../tools/virt-win-reg.pl:757
1024 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
1027 #: ../align/virt-alignment-scan.pod:339
1029 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1030 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1034 #: ../align/virt-alignment-scan.pod:346 ../cat/virt-cat.pod:252
1035 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507
1036 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:235
1037 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296
1038 #: ../resize/virt-resize.pod:711 ../sparsify/virt-sparsify.pod:264
1039 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1040 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311
1041 #: ../tools/virt-win-reg.pl:783
1046 #: ../align/virt-alignment-scan.pod:348 ../cat/virt-cat.pod:254
1047 #: ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509
1048 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:237
1049 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:395
1050 #: ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:713
1051 #: ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210
1052 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584
1053 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
1054 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1055 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1058 #: ../align/virt-alignment-scan.pod:350 ../cat/virt-cat.pod:256
1059 #: ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511
1060 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:239
1061 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1062 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1063 #: ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64
1064 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
1065 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332
1066 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
1067 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
1068 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
1069 #: ../resize/virt-resize.pod:715 ../ruby/examples/guestfs-ruby.pod:52
1070 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3352
1071 #: ../test-tool/libguestfs-test-tool.pod:110
1072 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1073 #: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315
1074 #: ../tools/virt-win-reg.pl:787
1076 msgstr "АВТОРСЬКІ ПРАВА"
1079 #: ../align/virt-alignment-scan.pod:352 ../clone/virt-sysprep.pod:507
1080 #: ../sparsify/virt-sparsify.pod:270
1081 msgid "Copyright (C) 2011 Red Hat Inc."
1085 #: ../align/virt-alignment-scan.pod:354 ../cat/virt-cat.pod:260
1086 #: ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515
1087 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:243
1088 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1089 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1090 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1091 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:407
1092 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:719
1093 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
1094 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1095 #: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319
1096 #: ../tools/virt-win-reg.pl:791
1098 "This program is free software; you can redistribute it and/or modify it "
1099 "under the terms of the GNU General Public License as published by the Free "
1100 "Software Foundation; either version 2 of the License, or (at your option) "
1101 "any later version."
1105 #: ../align/virt-alignment-scan.pod:359 ../cat/virt-cat.pod:265
1106 #: ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520
1107 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:248
1108 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1109 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1110 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1111 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:412
1112 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:724
1113 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
1114 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1115 #: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324
1116 #: ../tools/virt-win-reg.pl:796
1118 "This program is distributed in the hope that it will be useful, but WITHOUT "
1119 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1120 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for "
1123 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
1124 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
1125 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
1126 "дізнатися з GNU General Public License."
1129 #: ../align/virt-alignment-scan.pod:364 ../cat/virt-cat.pod:270
1130 #: ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525
1131 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:253
1132 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1133 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1134 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1135 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:417
1136 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:729
1137 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
1138 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1139 #: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329
1140 #: ../tools/virt-win-reg.pl:801
1142 "You should have received a copy of the GNU General Public License along with "
1143 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
1144 "Ave, Cambridge, MA 02139, USA."
1146 "Ви маєте отримати копію GNU General Public License разом з цією програмою; "
1147 "якщо це не так, повідомте про факт за адресою Free Software Foundation, "
1148 "Inc., 675 Mass Ave, Cambridge, MA 02139, USA."
1151 #: ../cat/virt-cat.pod:5
1152 msgid "virt-cat - Display files in a virtual machine"
1153 msgstr "virt-cat — показ файлів у віртуальній машині"
1156 #: ../cat/virt-cat.pod:9
1159 " virt-cat [--options] -d domname file [file ...]\n"
1162 " virt-cat [--параметри] -d назва_домену файл [файл...]\n"
1166 #: ../cat/virt-cat.pod:11
1169 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1172 " virt-cat [--параметри] -a диск.img [-a диск.img ...] файл [файл...]\n"
1176 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1177 #: ../inspector/virt-inspector.pod:13
1179 msgstr "Застарілий стиль:"
1182 #: ../cat/virt-cat.pod:15
1185 " virt-cat domname file\n"
1188 " virt-cat назва_домену файл\n"
1192 #: ../cat/virt-cat.pod:17
1195 " virt-cat disk.img file\n"
1198 " virt-cat диск.img файл\n"
1202 #: ../cat/virt-cat.pod:21
1204 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1205 "C<file> exists in the named virtual machine (or disk image)."
1207 "C<virt-cat> — інструмент командного рядка для показу вмісту C<файла>, який "
1208 "зберігається у вказаній віртуальній машині (або образі диска)."
1211 #: ../cat/virt-cat.pod:24
1213 "Multiple filenames can be given, in which case they are concatenated "
1214 "together. Each filename must be a full path, starting at the root directory "
1215 "(starting with '/')."
1217 "Ви можете вказати декілька назв файлів. Вміст таких файлів буде об’єднано. "
1218 "Назви файлів слід вказувати повністю (разом зі шляхом), починаючи з "
1219 "кореневого каталогу (тобто назва має починатися з «/»)."
1222 #: ../cat/virt-cat.pod:28
1224 "C<virt-cat> can be used to quickly view a file. To edit a file, use C<virt-"
1225 "edit>. For more complex cases you should look at the L<guestfish(1)> tool "
1226 "(see L</USING GUESTFISH> below)."
1228 "C<virt-cat> можна скористатися для пришвидшення перегляду файла. Для "
1229 "редагування даних слід користуватися C<virt-edit>. Для виконання складніших "
1230 "дій можна скористатися програмою L<guestfish(1)> (див. L</USING GUESTFISH> "
1234 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1235 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1236 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1237 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1238 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1239 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1240 #: ../tools/virt-tar.pl:50
1245 #: ../cat/virt-cat.pod:34
1247 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1249 "Показ файла C</etc/fstab> з віртуальної машини libvirt з назвою C<mydomain>:"
1252 #: ../cat/virt-cat.pod:37
1255 " virt-cat -d mydomain /etc/fstab\n"
1258 " virt-cat -d mydomain /etc/fstab\n"
1262 #: ../cat/virt-cat.pod:39
1263 msgid "List syslog messages from a VM disk image file:"
1265 "Показ списку повідомлень syslog з файла образу диска віртуальної машини:"
1268 #: ../cat/virt-cat.pod:41
1271 " virt-cat -a disk.img /var/log/messages | tail\n"
1274 " virt-cat -a disk.img /var/log/messages | tail\n"
1278 #: ../cat/virt-cat.pod:43
1279 msgid "Find out what DHCP IP address a VM acquired:"
1280 msgstr "Визначення IP-адреси DHCP, використаної віртуальною машиною:"
1283 #: ../cat/virt-cat.pod:45
1286 " virt-cat -d mydomain /var/log/messages | \\\n"
1287 " grep 'dhclient: bound to' | tail\n"
1290 " virt-cat -d mydomain /var/log/messages | \\\n"
1291 " grep 'dhclient: bound to' | tail\n"
1295 #: ../cat/virt-cat.pod:48
1296 msgid "Find out what packages were recently installed:"
1297 msgstr "Пошук нещодавно встановлених пакунків:"
1300 #: ../cat/virt-cat.pod:50
1303 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1306 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1310 #: ../cat/virt-cat.pod:52
1311 msgid "Find out who is logged on inside a virtual machine:"
1312 msgstr "Визначення користувачів, які працюють у віртуальній машині:"
1315 #: ../cat/virt-cat.pod:54
1318 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1322 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1327 #: ../cat/virt-cat.pod:57
1328 msgid "or who was logged on:"
1329 msgstr "або тих, які у ній працювали:"
1332 #: ../cat/virt-cat.pod:59
1335 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1336 " last -f /tmp/wtmp\n"
1339 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1340 " last -f /tmp/wtmp\n"
1344 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1345 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1346 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
1348 "Add I<file> which should be a disk image from a virtual machine. If the "
1349 "virtual machine has multiple block devices, you must supply all of them with "
1350 "separate I<-a> options."
1354 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1355 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1356 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1357 msgid "B<--echo-keys>"
1358 msgstr "B<--echo-keys>"
1361 #: ../cat/virt-cat.pod:100
1363 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1364 "so you cannot see what you are typing. If you are not worried about Tempest "
1365 "attacks and there is no one else in the room you can specify this flag to "
1366 "see what you are typing."
1370 #: ../cat/virt-cat.pod:116
1373 " virt-cat --format=raw -a disk.img file\n"
1376 " virt-cat --format=raw -a disk.img file\n"
1380 #: ../cat/virt-cat.pod:120
1383 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1386 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1390 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1391 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1392 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1393 msgid "B<--keys-from-stdin>"
1394 msgstr "B<--keys-from-stdin>"
1397 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1398 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1399 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1401 "Read key or passphrase parameters from stdin. The default is to try to read "
1402 "passphrases from the user by opening C</dev/tty>."
1406 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1407 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
1408 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1412 #: ../cat/virt-cat.pod:154
1413 msgid "Previous versions of virt-cat allowed you to write either:"
1417 #: ../cat/virt-cat.pod:156
1420 " virt-cat disk.img [disk.img ...] file\n"
1425 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1426 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
1431 #: ../cat/virt-cat.pod:160
1434 " virt-cat guestname file\n"
1439 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1440 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
1442 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1443 "the confusing case where a disk image might have the same name as a guest."
1447 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1448 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
1449 msgid "For compatibility the old style is still supported."
1453 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1454 msgid "WINDOWS PATHS"
1455 msgstr "ШЛЯХИ У WINDOWS"
1458 #: ../cat/virt-cat.pod:170
1460 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1461 "paths (eg. C<E:\\foo\\bar.txt>)."
1465 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1466 msgid "If and only if the guest is running Windows then:"
1470 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1472 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1473 "to the correct filesystem."
1477 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1479 "Any backslash (C<\\>) characters in the path are replaced with forward "
1480 "slashes so that libguestfs can process it."
1484 #: ../cat/virt-cat.pod:189
1486 "The path is resolved case insensitively to locate the file that should be "
1491 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1492 msgid "There are some known shortcomings:"
1496 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1497 msgid "Some NTFS symbolic links may not be followed correctly."
1501 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1502 msgid "NTFS junction points that cross filesystems are not followed."
1506 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1507 msgid "USING GUESTFISH"
1508 msgstr "ВИКОРИСТАННЯ GUESTFISH"
1511 #: ../cat/virt-cat.pod:210
1513 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1514 "C<virt-cat> doesn't work."
1518 #: ../cat/virt-cat.pod:213
1519 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1523 #: ../cat/virt-cat.pod:215
1526 " guestfish --ro -i -d domname download file -\n"
1531 #: ../cat/virt-cat.pod:217
1533 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1534 "path to the file. Note the final C<-> (meaning \"output to stdout\")."
1538 #: ../cat/virt-cat.pod:221
1540 "The command above uses libguestfs's guest inspection feature and so does not "
1541 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1542 "disk images that don't contain guests. To display a file from a disk image "
1547 #: ../cat/virt-cat.pod:226
1550 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1555 #: ../cat/virt-cat.pod:228
1557 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1558 "the disk image, and C<file> is the full path to the file."
1562 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382
1563 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1564 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:377
1565 #: ../resize/virt-resize.pod:685 ../sparsify/virt-sparsify.pod:229
1567 "This program returns 0 if successful, or non-zero if there was an error."
1571 #: ../cat/virt-cat.pod:245
1573 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1574 "tar-out(1)>, L<http://libguestfs.org/>."
1576 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1577 "tar-out(1)>, L<http://libguestfs.org/>."
1580 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:405
1581 #: ../resize/virt-resize.pod:717 ../tools/virt-make-fs.pl:588
1582 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1583 msgstr "©Red Hat Inc., 2010–2011"
1586 #: ../cat/virt-filesystems.pod:5
1588 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1589 "virtual machine or disk image"
1593 #: ../cat/virt-filesystems.pod:9
1596 " virt-filesystems [--options] -d domname\n"
1599 " virt-filesystems [--параметри] -d назва_домену\n"
1603 #: ../cat/virt-filesystems.pod:11
1606 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1611 #: ../cat/virt-filesystems.pod:15
1613 "This tool allows you to discover filesystems, partitions, logical volumes, "
1614 "and their sizes in a disk image or virtual machine. It is a replacement for "
1615 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1619 #: ../cat/virt-filesystems.pod:20
1621 "One use for this tool is from shell scripts to iterate over all filesystems "
1622 "from a disk image:"
1626 #: ../cat/virt-filesystems.pod:23
1629 " for fs in $(virt-filesystems -a disk.img); do\n"
1634 " for fs in $(virt-filesystems -a disk.img); do\n"
1640 #: ../cat/virt-filesystems.pod:27
1642 "Another use is to list partitions before using another tool to modify those "
1643 "partitions (such as L<virt-resize(1)>). If you are curious about what an "
1644 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1648 #: ../cat/virt-filesystems.pod:32
1650 "Various command line options control what this program displays. You need "
1651 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1652 "guest respectively. If you just specify that then the program shows "
1653 "filesystems found, one per line, like this:"
1657 #: ../cat/virt-filesystems.pod:37
1660 " $ virt-filesystems -a disk.img\n"
1662 " /dev/vg_guest/lv_root\n"
1665 " $ virt-filesystems -a disk.img\n"
1667 " /dev/vg_guest/lv_root\n"
1671 #: ../cat/virt-filesystems.pod:41
1673 "If you add I<-l> or I<--long> then the output includes extra information:"
1677 #: ../cat/virt-filesystems.pod:44
1680 " $ virt-filesystems -a disk.img -l\n"
1681 " Name Type VFS Label Size\n"
1682 " /dev/sda1 filesystem ext4 boot 524288000\n"
1683 " /dev/vg_guest/lv_root filesystem ext4 root 10212081664\n"
1688 #: ../cat/virt-filesystems.pod:49
1690 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1695 #: ../cat/virt-filesystems.pod:52
1698 " $ virt-filesystems -a disk.img --extra\n"
1700 " /dev/vg_guest/lv_root\n"
1701 " /dev/vg_guest/lv_swap\n"
1702 " /dev/vg_guest/lv_data\n"
1705 " $ virt-filesystems -a disk.img --extra\n"
1707 " /dev/vg_guest/lv_root\n"
1708 " /dev/vg_guest/lv_swap\n"
1709 " /dev/vg_guest/lv_data\n"
1713 #: ../cat/virt-filesystems.pod:58
1715 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1719 #: ../cat/virt-filesystems.pod:60
1722 " $ virt-filesystems -a disk.img --partitions\n"
1727 " $ virt-filesystems -a disk.img --partitions\n"
1733 #: ../cat/virt-filesystems.pod:64
1735 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1736 "volumes>, I<--block-devices> to list those items."
1740 #: ../cat/virt-filesystems.pod:67
1742 "You can use these options in combination as well (if you want a combination "
1743 "including filesystems, you have to add I<--filesystems>). Notice that some "
1744 "items fall into several categories (eg. C</dev/sda1> might be both a "
1745 "partition and a filesystem). These items are listed several times. To get "
1746 "a list which includes absolutely everything that virt-filesystems knows "
1747 "about, use the I<--all> option."
1751 #: ../cat/virt-filesystems.pod:74
1753 "UUIDs (because they are quite long) are not shown by default. Add the I<--"
1754 "uuid> option to display device and filesystem UUIDs in the long output."
1758 #: ../cat/virt-filesystems.pod:78
1760 "I<--all --long --uuid> is a useful combination to display all possible "
1761 "information about everything."
1765 #: ../cat/virt-filesystems.pod:81
1768 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1769 " Name Type VFS Label Size Parent UUID\n"
1770 " /dev/sda1 filesystem ntfs System Reserved 100M - F81C92571C92112C\n"
1771 " /dev/sda2 filesystem ntfs - 20G - F2E8996AE8992E3B\n"
1772 " /dev/sda1 partition - - 100M /dev/sda -\n"
1773 " /dev/sda2 partition - - 20G /dev/sda -\n"
1774 " /dev/sda device - - 20G - -\n"
1779 #: ../cat/virt-filesystems.pod:89
1781 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1785 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1790 #: ../cat/virt-filesystems.pod:112
1792 "Display everything. This is currently the same as specifying these options: "
1793 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1794 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>. (More may be "
1795 "added to this list in future)."
1799 #: ../cat/virt-filesystems.pod:117
1800 msgid "See also I<--long>."
1801 msgstr "Див. також I<--long>."
1804 #: ../cat/virt-filesystems.pod:119
1805 msgid "B<--blkdevs>"
1806 msgstr "B<--blkdevs>"
1809 #: ../cat/virt-filesystems.pod:121
1810 msgid "B<--block-devices>"
1811 msgstr "B<--block-devices>"
1814 #: ../cat/virt-filesystems.pod:123
1815 msgid "Display block devices."
1816 msgstr "Показати список блокових пристроїв."
1819 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1824 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1826 "Write out the results in CSV format (comma-separated values). This format "
1827 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1828 "ABOUT CSV FORMAT> below."
1832 #: ../cat/virt-filesystems.pod:150
1834 "When prompting for keys and passphrases, virt-filesystems normally turns "
1835 "echoing off so you cannot see what you are typing. If you are not worried "
1836 "about Tempest attacks and there is no one else in the room you can specify "
1837 "this flag to see what you are typing."
1841 #: ../cat/virt-filesystems.pod:155
1846 #: ../cat/virt-filesystems.pod:157
1848 "This causes filesystems that are not ordinary, mountable filesystems to be "
1849 "displayed. This category includes swapspace, and filesystems that are empty "
1850 "or contain unknown data."
1854 #: ../cat/virt-filesystems.pod:161
1855 msgid "This option implies I<--filesystems>."
1859 #: ../cat/virt-filesystems.pod:163
1860 msgid "B<--filesystems>"
1861 msgstr "B<--filesystems>"
1864 #: ../cat/virt-filesystems.pod:165
1866 "Display mountable filesystems. If no display option was selected then this "
1867 "option is implied."
1871 #: ../cat/virt-filesystems.pod:168
1872 msgid "With I<--extra>, non-mountable filesystems are shown too."
1876 #: ../cat/virt-filesystems.pod:181
1879 " virt-filesystems --format=raw -a disk.img\n"
1882 " virt-filesystems --format=raw -a диск.img\n"
1886 #: ../cat/virt-filesystems.pod:185
1889 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1894 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1895 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1896 #: ../tools/virt-list-partitions.pl:109
1901 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1902 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1903 msgid "B<--human-readable>"
1904 msgstr "B<--human-readable>"
1907 #: ../cat/virt-filesystems.pod:198
1908 msgid "In I<--long> mode, display sizes in human-readable format."
1912 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1913 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1918 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1919 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1924 #: ../cat/virt-filesystems.pod:209
1925 msgid "Display extra columns of data (\"long format\")."
1929 #: ../cat/virt-filesystems.pod:211
1930 msgid "A title row is added unless you also specify I<--no-title>."
1934 #: ../cat/virt-filesystems.pod:213
1936 "The extra columns displayed depend on what output you select, and the "
1937 "ordering of columns may change in future versions. Use the title row, I<--"
1938 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1943 #: ../cat/virt-filesystems.pod:218
1945 "Use I<-h> if you want sizes to be displayed in human-readable format. The "
1946 "default is to show raw numbers of I<bytes>."
1950 #: ../cat/virt-filesystems.pod:221
1951 msgid "Use I<--uuid> to display UUIDs too."
1955 #: ../cat/virt-filesystems.pod:223
1960 #: ../cat/virt-filesystems.pod:225
1961 msgid "B<--logvols>"
1962 msgstr "B<--logvols>"
1965 #: ../cat/virt-filesystems.pod:227
1966 msgid "B<--logical-volumes>"
1967 msgstr "B<--logical-volumes>"
1970 #: ../cat/virt-filesystems.pod:229
1972 "Display LVM logical volumes. In this mode, these are displayed irrespective "
1973 "of whether the LVs contain filesystems."
1977 #: ../cat/virt-filesystems.pod:232
1978 msgid "B<--no-title>"
1979 msgstr "B<--no-title>"
1982 #: ../cat/virt-filesystems.pod:234
1983 msgid "In I<--long> mode, don't add a title row."
1987 #: ../cat/virt-filesystems.pod:236
1989 "Note that the order of the columns is not fixed, and may change in future "
1990 "versions of virt-filesystems, so using this option may give you unexpected "
1995 #: ../cat/virt-filesystems.pod:240
2000 #: ../cat/virt-filesystems.pod:242
2001 msgid "B<--partitions>"
2002 msgstr "B<--partitions>"
2005 #: ../cat/virt-filesystems.pod:244
2007 "Display partitions. In this mode, these are displayed irrespective of "
2008 "whether the partitions contain filesystems."
2012 #: ../cat/virt-filesystems.pod:247
2017 #: ../cat/virt-filesystems.pod:249
2018 msgid "B<--physvols>"
2019 msgstr "B<--physvols>"
2022 #: ../cat/virt-filesystems.pod:251
2023 msgid "B<--physical-volumes>"
2024 msgstr "B<--physical-volumes>"
2027 #: ../cat/virt-filesystems.pod:253
2028 msgid "Display LVM physical volumes."
2032 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
2037 #: ../cat/virt-filesystems.pod:257
2042 #: ../cat/virt-filesystems.pod:259
2043 msgid "In I<--long> mode, display UUIDs as well."
2047 #: ../cat/virt-filesystems.pod:273
2052 #: ../cat/virt-filesystems.pod:275
2053 msgid "B<--volgroups>"
2054 msgstr "B<--volgroups>"
2057 #: ../cat/virt-filesystems.pod:277
2058 msgid "B<--volume-groups>"
2059 msgstr "B<--volume-groups>"
2062 #: ../cat/virt-filesystems.pod:279
2063 msgid "Display LVM volume groups."
2067 #: ../cat/virt-filesystems.pod:287
2072 #: ../cat/virt-filesystems.pod:289
2074 "Note that columns in the output are subject to reordering and change in "
2075 "future versions of this tool."
2079 #: ../cat/virt-filesystems.pod:294
2084 #: ../cat/virt-filesystems.pod:296
2085 msgid "The filesystem, partition, block device or LVM name."
2089 #: ../cat/virt-filesystems.pod:298
2091 "For device and partition names these are displayed as canonical libguestfs "
2092 "names, so that for example C</dev/sda2> is the second partition on the first "
2097 #: ../cat/virt-filesystems.pod:302
2099 "If the I<--long> option is B<not> specified, then only the name column is "
2100 "shown in the output."
2104 #: ../cat/virt-filesystems.pod:305
2109 #: ../cat/virt-filesystems.pod:307
2110 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2114 #: ../cat/virt-filesystems.pod:309
2119 #: ../cat/virt-filesystems.pod:311
2121 "If there is a filesystem, then this column displays the filesystem type if "
2122 "one could be detected, eg. C<ext4>."
2126 #: ../cat/virt-filesystems.pod:314
2131 #: ../cat/virt-filesystems.pod:316
2133 "If the object has a label (used for identifying and mounting filesystems) "
2134 "then this column contains the label."
2138 #: ../cat/virt-filesystems.pod:319
2145 #: ../cat/virt-filesystems.pod:321
2147 "The partition type byte, displayed as a two digit hexadecimal number. A "
2148 "comprehensive list of partition types can be found here: L<http://www.win."
2149 "tue.nl/~aeb/partitions/partition_types-1.html>"
2153 #: ../cat/virt-filesystems.pod:325
2154 msgid "This is only applicable for DOS (MBR) partitions."
2158 #: ../cat/virt-filesystems.pod:327
2163 #: ../cat/virt-filesystems.pod:329
2165 "The size of the object in bytes. If the I<--human> option is used then the "
2166 "size is displayed in a human-readable form."
2170 #: ../cat/virt-filesystems.pod:332
2175 #: ../cat/virt-filesystems.pod:334
2177 "The parent column records the parent relationship between objects. For "
2178 "example, if the object is a partition, then this column contains the name of "
2179 "the containing device. If the object is a logical volume, then this column "
2180 "is the name of the volume group."
2184 #: ../cat/virt-filesystems.pod:339
2189 #: ../cat/virt-filesystems.pod:341
2191 "If the object has a UUID (used for identifying and mounting filesystems and "
2192 "block devices) then this column contains the UUID as a string."
2196 #: ../cat/virt-filesystems.pod:345
2197 msgid "The UUID is only displayed if the I<--uuid> option is given."
2201 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459
2202 #: ../df/virt-df.pod:191
2203 msgid "NOTE ABOUT CSV FORMAT"
2207 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461
2208 #: ../df/virt-df.pod:193
2210 "Comma-separated values (CSV) is a deceptive format. It I<seems> like it "
2211 "should be easy to parse, but it is definitely not easy to parse."
2215 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464
2216 #: ../df/virt-df.pod:196
2218 "Myth: Just split fields at commas. Reality: This does I<not> work "
2219 "reliably. This example has two columns:"
2223 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467
2224 #: ../df/virt-df.pod:199
2227 " \"foo,bar\",baz\n"
2232 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469
2233 #: ../df/virt-df.pod:201
2235 "Myth: Read the file one line at a time. Reality: This does I<not> work "
2236 "reliably. This example has one row:"
2240 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472
2241 #: ../df/virt-df.pod:204
2250 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475
2251 #: ../df/virt-df.pod:207
2253 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2254 "packaged in major Linux distributions)."
2258 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478
2259 #: ../df/virt-df.pod:210
2261 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2262 "or Python's built-in csv library)."
2266 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481
2267 #: ../df/virt-df.pod:213
2268 msgid "Most spreadsheets and databases can import CSV directly."
2272 #: ../cat/virt-filesystems.pod:387
2274 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2275 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2278 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2279 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2283 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
2284 msgid "Copyright (C) 2010 Red Hat Inc."
2285 msgstr "©Red Hat Inc., 2010"
2288 #: ../cat/virt-ls.pod:5
2289 msgid "virt-ls - List files in a virtual machine"
2293 #: ../cat/virt-ls.pod:9
2296 " virt-ls [--options] -d domname directory [directory ...]\n"
2301 #: ../cat/virt-ls.pod:11
2304 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2309 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2311 msgstr "Старий стиль:"
2314 #: ../cat/virt-ls.pod:15
2317 " virt-ls [--options] domname directory\n"
2322 #: ../cat/virt-ls.pod:17
2325 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2330 #: ../cat/virt-ls.pod:21
2332 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2333 "more from a virtual machine or disk image."
2337 #: ../cat/virt-ls.pod:24
2339 "Multiple directory names can be given, in which case the output from each is "
2344 #: ../cat/virt-ls.pod:27
2346 "To list directories from a libvirt guest use the I<-d> option to specify the "
2347 "name of the guest. For a disk image, use the I<-a> option."
2351 #: ../cat/virt-ls.pod:31
2353 "C<virt-ls> can do many simple file listings. For more complicated cases you "
2354 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2359 #: ../cat/virt-ls.pod:37
2360 msgid "Get a list of all files and directories in a virtual machine:"
2364 #: ../cat/virt-ls.pod:39
2367 " virt-ls -R -d guest /\n"
2372 #: ../cat/virt-ls.pod:41
2373 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2377 #: ../cat/virt-ls.pod:43
2380 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2385 #: ../cat/virt-ls.pod:45
2386 msgid "List all public-writable directories in a Linux virtual machine:"
2390 #: ../cat/virt-ls.pod:47
2393 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2398 #: ../cat/virt-ls.pod:49
2399 msgid "List all Unix domain sockets in a Linux virtual machine:"
2403 #: ../cat/virt-ls.pod:51
2406 " virt-ls -lR -d guest / | grep '^s'\n"
2411 #: ../cat/virt-ls.pod:53
2412 msgid "List all regular files with filenames ending in '.png':"
2416 #: ../cat/virt-ls.pod:55
2419 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2424 #: ../cat/virt-ls.pod:57
2425 msgid "To display files larger than 10MB in home directories:"
2429 #: ../cat/virt-ls.pod:59
2432 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2437 #: ../cat/virt-ls.pod:61
2438 msgid "Find everything modified in the last 7 days:"
2442 #: ../cat/virt-ls.pod:63
2445 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2450 #: ../cat/virt-ls.pod:65
2451 msgid "Find regular files modified in the last 24 hours:"
2455 #: ../cat/virt-ls.pod:67
2458 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2463 #: ../cat/virt-ls.pod:69
2464 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2468 #: ../cat/virt-ls.pod:71
2470 "Find the differences between files in a guest and an earlier snapshot of the "
2475 #: ../cat/virt-ls.pod:74
2478 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2479 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2480 " diff -u old new | less\n"
2485 #: ../cat/virt-ls.pod:78
2487 "The commands above won't find files where the content has changed but the "
2488 "metadata (eg. file size and modification date) is the same. To do that, you "
2489 "need to add the I<--checksum> parameter to both C<virt-ls> commands. I<--"
2490 "checksum> can be quite slow since it has to read and compute a checksum of "
2491 "every regular file in the virtual machine."
2495 #: ../cat/virt-ls.pod:84
2496 msgid "OUTPUT MODES"
2497 msgstr "РЕЖИМИ ВИВЕДЕННЯ ДАНИХ"
2500 #: ../cat/virt-ls.pod:86
2502 "C<virt-ls> has four output modes, controlled by different combinations of "
2503 "the I<-l> and I<-R> options."
2507 #: ../cat/virt-ls.pod:89
2508 msgid "SIMPLE LISTING"
2509 msgstr "ПРОСТИЙ СПИСОК"
2512 #: ../cat/virt-ls.pod:91
2513 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2517 #: ../cat/virt-ls.pod:93
2520 " $ virt-ls -d guest /\n"
2526 " $ virt-ls -d guest /\n"
2533 #: ../cat/virt-ls.pod:98
2534 msgid "LONG LISTING"
2535 msgstr "ДОВГИЙ СПИСОК"
2538 #: ../cat/virt-ls.pod:100
2540 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2541 "(more specifically, like the C<guestfs_ll> function)."
2545 #: ../cat/virt-ls.pod:103
2548 " $ virt-ls -l -d guest /\n"
2550 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
2551 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
2555 " $ virt-ls -l -d guest /\n"
2557 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
2558 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
2563 #: ../cat/virt-ls.pod:109
2565 "Note that while this is useful for displaying a directory, do not try "
2566 "parsing this output in another program. Use L</RECURSIVE LONG LISTING> "
2571 #: ../cat/virt-ls.pod:113
2572 msgid "RECURSIVE LISTING"
2573 msgstr "РЕКУРСИВНИЙ СПИСОК"
2576 #: ../cat/virt-ls.pod:115
2578 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2579 "and directories recursively:"
2583 #: ../cat/virt-ls.pod:118
2586 " $ virt-ls -R -d guest /tmp\n"
2592 " $ virt-ls -R -d guest /tmp\n"
2599 #: ../cat/virt-ls.pod:123
2601 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2602 "converts C<\\0> characters to C<\\n>."
2606 #: ../cat/virt-ls.pod:126
2607 msgid "RECURSIVE LONG LISTING"
2608 msgstr "РЕКУРСИВНИЙ ДОВГИЙ СПИСОК"
2611 #: ../cat/virt-ls.pod:128
2613 "Using I<-lR> options together changes the output to display directories "
2614 "recursively, with file stats, and optionally other features such as "
2615 "checksums and extended attributes."
2619 #: ../cat/virt-ls.pod:132
2621 "Most of the interesting features of C<virt-ls> are only available when using "
2626 #: ../cat/virt-ls.pod:135
2628 "The fields are normally space-separated. Filenames are B<not> quoted, so "
2629 "you cannot use the output in another program (because filenames can contain "
2630 "spaces and other unsafe characters). If the guest was untrusted and someone "
2631 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2632 "on you by creating filenames with embedded newline characters. To B<safely> "
2633 "parse the output in another program, use the I<--csv> (Comma-Separated "
2638 #: ../cat/virt-ls.pod:143
2640 "Note that this output format is completely unrelated to the C<ls -lR> "
2645 #: ../cat/virt-ls.pod:146
2648 " $ virt-ls -lR -d guest /bin\n"
2649 " d 0555 4096 /bin\n"
2650 " - 0755 123 /bin/alsaunmute\n"
2651 " - 0755 28328 /bin/arch\n"
2652 " l 0777 4 /bin/awk -> gawk\n"
2653 " - 0755 27216 /bin/basename\n"
2654 " - 0755 943360 /bin/bash\n"
2658 " $ virt-ls -lR -d guest /bin\n"
2659 " d 0555 4096 /bin\n"
2660 " - 0755 123 /bin/alsaunmute\n"
2661 " - 0755 28328 /bin/arch\n"
2662 " l 0777 4 /bin/awk -> gawk\n"
2663 " - 0755 27216 /bin/basename\n"
2664 " - 0755 943360 /bin/bash\n"
2669 #: ../cat/virt-ls.pod:155
2670 msgid "These basic fields are always shown:"
2674 #: ../cat/virt-ls.pod:159
2679 #: ../cat/virt-ls.pod:161
2681 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2682 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2683 "link), C<s> (socket) or C<u> (unknown)."
2687 #: ../cat/virt-ls.pod:171
2689 msgstr "права доступу"
2692 #: ../cat/virt-ls.pod:173
2693 msgid "The Unix permissions, displayed as a 4 digit octal number."
2697 #: ../cat/virt-ls.pod:175
2702 #: ../cat/virt-ls.pod:177
2704 "The size of the file. This is shown in bytes unless I<-h> or I<--human-"
2705 "readable> option is given, in which case this is shown as a human-readable "
2710 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4395
2715 #: ../cat/virt-ls.pod:183
2716 msgid "The full path of the file or directory."
2720 #: ../cat/virt-ls.pod:185
2725 #: ../cat/virt-ls.pod:187
2726 msgid "For symbolic links only, the link target."
2730 #: ../cat/virt-ls.pod:191
2732 "In I<-lR> mode, additional command line options enable the display of more "
2737 #: ../cat/virt-ls.pod:194
2739 "With the I<--uids> flag, these additional fields are displayed before the "
2744 #: ../cat/virt-ls.pod:199
2749 #: ../cat/virt-ls.pod:201
2754 #: ../cat/virt-ls.pod:203
2756 "The UID and GID of the owner of the file (displayed numerically). Note "
2757 "these only make sense in the context of a Unix-like guest."
2761 #: ../cat/virt-ls.pod:208
2762 msgid "With the I<--times> flag, these additional fields are displayed:"
2766 #: ../cat/virt-ls.pod:212
2771 #: ../cat/virt-ls.pod:214
2772 msgid "The time of last access."
2773 msgstr "Час останнього доступу."
2776 #: ../cat/virt-ls.pod:216
2781 #: ../cat/virt-ls.pod:218
2782 msgid "The time of last modification."
2783 msgstr "Час останнього внесення змін."
2786 #: ../cat/virt-ls.pod:220
2791 #: ../cat/virt-ls.pod:222
2792 msgid "The time of last status change."
2793 msgstr "Час останньої зміни стану."
2796 #: ../cat/virt-ls.pod:226
2798 "The time fields are displayed as string dates and times, unless one of the "
2799 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2803 #: ../cat/virt-ls.pod:229
2804 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2808 #: ../cat/virt-ls.pod:233
2813 #: ../cat/virt-ls.pod:235
2815 "The device containing the file (displayed as major:minor). This may not "
2816 "match devices as known to the guest."
2820 #: ../cat/virt-ls.pod:238
2825 #: ../cat/virt-ls.pod:240
2826 msgid "The inode number."
2830 #: ../cat/virt-ls.pod:242
2835 #: ../cat/virt-ls.pod:244
2836 msgid "The number of hard links."
2837 msgstr "Кількість жорстких посилань."
2840 #: ../cat/virt-ls.pod:246
2845 #: ../cat/virt-ls.pod:248
2847 "For block and char special files, the device (displayed as major:minor)."
2851 #: ../cat/virt-ls.pod:251
2856 #: ../cat/virt-ls.pod:253
2857 msgid "The number of 512 byte blocks allocated to the file."
2861 #: ../cat/virt-ls.pod:257
2863 "With the I<--checksum> flag, the checksum of the file contents is shown "
2864 "(only for regular files). Computing file checksums can take a considerable "
2869 #: ../cat/virt-ls.pod:280
2870 msgid "B<--checksum>"
2871 msgstr "B<--checksum>"
2874 #: ../cat/virt-ls.pod:282
2875 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2876 msgstr "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2879 #: ../cat/virt-ls.pod:284
2881 "Display checksum over file contents for regular files. With no argument, "
2882 "this defaults to using I<md5>. Using an argument, you can select the "
2883 "checksum type to use."
2887 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2888 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2889 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2891 "This option only has effect in I<-lR> output mode. See L</RECURSIVE LONG "
2896 #: ../cat/virt-ls.pod:316
2898 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2899 "so you cannot see what you are typing. If you are not worried about Tempest "
2900 "attacks and there is no one else in the room you can specify this flag to "
2901 "see what you are typing."
2905 #: ../cat/virt-ls.pod:321
2906 msgid "B<--extra-stats>"
2907 msgstr "B<--extra-stats>"
2910 #: ../cat/virt-ls.pod:323
2911 msgid "Display extra stats."
2912 msgstr "Показати додаткові дані."
2915 #: ../cat/virt-ls.pod:339
2918 " virt-ls --format=raw -a disk.img /dir\n"
2923 #: ../cat/virt-ls.pod:343
2926 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2931 #: ../cat/virt-ls.pod:356
2932 msgid "Display file sizes in human-readable format."
2936 #: ../cat/virt-ls.pod:370
2941 #: ../cat/virt-ls.pod:372
2942 msgid "B<--recursive>"
2943 msgstr "B<--recursive>"
2946 #: ../cat/virt-ls.pod:374
2948 "Select the mode. With neither of these options, C<virt-ls> produces a "
2949 "simple, flat list of the files in the named directory. See L</SIMPLE "
2954 #: ../cat/virt-ls.pod:378
2956 "C<virt-ls -l> produces a \"long listing\", which shows more detail. See L</"
2961 #: ../cat/virt-ls.pod:381
2963 "C<virt-ls -R> produces a recursive list of files starting at the named "
2964 "directory. See L</RECURSIVE LISTING>."
2968 #: ../cat/virt-ls.pod:384
2970 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2971 "parsed. See L</RECURSIVE LONG LISTING>."
2975 #: ../cat/virt-ls.pod:387
2980 #: ../cat/virt-ls.pod:389
2981 msgid "Display time fields."
2985 #: ../cat/virt-ls.pod:394
2986 msgid "B<--time-days>"
2987 msgstr "B<--time-days>"
2990 #: ../cat/virt-ls.pod:396
2991 msgid "Display time fields as days before now (negative if in the future)."
2995 #: ../cat/virt-ls.pod:398
2997 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2998 "of the file is between 0 and 86399 seconds."
3002 #: ../cat/virt-ls.pod:404
3003 msgid "B<--time-relative>"
3004 msgstr "B<--time-relative>"
3007 #: ../cat/virt-ls.pod:406
3008 msgid "Display time fields as seconds before now (negative if in the future)."
3012 #: ../cat/virt-ls.pod:411
3014 msgstr "B<--time-t>"
3017 #: ../cat/virt-ls.pod:413
3018 msgid "Display time fields as seconds since the Unix epoch."
3022 #: ../cat/virt-ls.pod:418
3027 #: ../cat/virt-ls.pod:420
3028 msgid "Display UID and GID fields."
3032 #: ../cat/virt-ls.pod:445
3033 msgid "Previous versions of virt-ls allowed you to write either:"
3037 #: ../cat/virt-ls.pod:447
3040 " virt-ls disk.img [disk.img ...] /dir\n"
3045 #: ../cat/virt-ls.pod:451
3048 " virt-ls guestname /dir\n"
3053 #: ../cat/virt-ls.pod:497
3055 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
3056 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3057 "L<http://libguestfs.org/>."
3059 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
3060 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3061 "L<http://libguestfs.org/>."
3064 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
3065 #: ../rescue/virt-rescue.pod:302
3066 msgid "Copyright (C) 2009-2011 Red Hat Inc."
3067 msgstr "©Red Hat Inc., 2009–2011"
3070 #: ../clone/virt-sysprep.pod:5
3072 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
3076 #: ../clone/virt-sysprep.pod:9
3079 " virt-sysprep [--options] -d domname\n"
3084 #: ../clone/virt-sysprep.pod:11
3087 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
3092 #: ../clone/virt-sysprep.pod:15
3094 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
3095 "can be made from it. Steps in this process include removing SSH host keys, "
3096 "removing persistent network MAC configuration, and removing user accounts. "
3097 "Each step can be enabled or disabled as required."
3101 #: ../clone/virt-sysprep.pod:21
3103 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3104 "customization by the system administrator."
3108 #: ../clone/virt-sysprep.pod:24
3110 "Virt-sysprep modifies the guest or disk image I<in place>. The guest must "
3111 "be shut down. If you want to preserve the existing contents of the guest, "
3112 "you I<must copy or clone the disk first>. See L</COPYING AND CLONING> below."
3116 #: ../clone/virt-sysprep.pod:29
3118 "You do I<not> need to run virt-sysprep as root. In fact we'd generally "
3119 "recommend that you don't. The time you might want to run it as root is when "
3120 "you need root in order to access the disk image, but even in this case it "
3121 "would be better to change the permissions on the disk image to be writable "
3122 "as the non-root user running virt-sysprep."
3126 #: ../clone/virt-sysprep.pod:35
3128 "\"Sysprep\" stands for \"system preparation\" tool. The name comes from the "
3129 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3130 "machines in preparation for cloning them. Having said that, virt-sysprep "
3131 "does I<not> currently work on Microsoft Windows guests. We plan to support "
3132 "Windows sysprepping in a future version, and we already have code to do it."
3136 #: ../clone/virt-sysprep.pod:76
3137 msgid "B<--enable=...>"
3141 #: ../clone/virt-sysprep.pod:78
3143 "Choose which sysprep operations to perform. Give a comma-separated list of "
3144 "operations, for example:"
3148 #: ../clone/virt-sysprep.pod:81
3151 " --enable=ssh-hostkeys,udev-persistent-net\n"
3156 #: ../clone/virt-sysprep.pod:83
3158 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3162 #: ../clone/virt-sysprep.pod:85
3164 "If the I<--enable> option is not given, then we default to trying all "
3165 "possible sysprep operations. But some sysprep operations are skipped for "
3170 #: ../clone/virt-sysprep.pod:89
3172 "Use I<--list-operations> to list operations supported by a particular "
3173 "version of virt-sysprep."
3177 #: ../clone/virt-sysprep.pod:92
3179 "See L</OPERATIONS> below for a list and an explanation of each operation."
3183 #: ../clone/virt-sysprep.pod:106
3186 " virt-sysprep --format=raw -a disk.img\n"
3191 #: ../clone/virt-sysprep.pod:110
3194 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3199 #: ../clone/virt-sysprep.pod:119
3200 msgid "B<--hostname> newhostname"
3204 #: ../clone/virt-sysprep.pod:121
3206 "Change the hostname. See the L</hostname> operation below. If not given, "
3207 "defaults to C<localhost.localdomain>."
3211 #: ../clone/virt-sysprep.pod:124
3212 msgid "B<--list-operations>"
3216 #: ../clone/virt-sysprep.pod:126
3217 msgid "List the operations supported by the virt-sysprep program."
3221 #: ../clone/virt-sysprep.pod:128
3222 msgid "B<--selinux-relabel>"
3226 #: ../clone/virt-sysprep.pod:130
3227 msgid "B<--no-selinux-relabel>"
3231 #: ../clone/virt-sysprep.pod:132
3233 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots. "
3234 "I<--no-selinux-relabel> disables relabelling."
3238 #: ../clone/virt-sysprep.pod:135
3240 "The default is to try to detect if SELinux relabelling is required. See L</"
3241 "SELINUX RELABELLING> below for more details."
3245 #: ../clone/virt-sysprep.pod:156
3250 #: ../clone/virt-sysprep.pod:158
3252 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3253 "enabled>, although some are skipped depending on the type of guest."
3257 #: ../clone/virt-sysprep.pod:162
3259 "Operations can be individually enabled using the I<--enable> option. Use a "
3260 "comma-separated list, for example:"
3264 #: ../clone/virt-sysprep.pod:165
3267 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3272 #: ../clone/virt-sysprep.pod:167
3274 "To list the operations supported by the current version of virt-sysprep, use "
3275 "I<--list-operations>."
3279 #: ../clone/virt-sysprep.pod:170
3281 "Future versions of virt-sysprep may add more operations. If you are using "
3282 "virt-sysprep and want predictable behaviour, specify only the operations "
3283 "that you want to have enabled."
3287 #: ../clone/virt-sysprep.pod:174
3292 #: ../clone/virt-sysprep.pod:176
3293 msgid "Remove user at-jobs and cron-jobs."
3297 #: ../clone/virt-sysprep.pod:178
3298 msgid "dhcp-client-state"
3302 #: ../clone/virt-sysprep.pod:180
3303 msgid "Remove DHCP client leases."
3307 #: ../clone/virt-sysprep.pod:182
3308 msgid "dhcp-server-state"
3312 #: ../clone/virt-sysprep.pod:184
3313 msgid "Remove DHCP server leases."
3317 #: ../clone/virt-sysprep.pod:186
3322 #: ../clone/virt-sysprep.pod:188
3324 "Changes the hostname of the guest to the value given in the I<--hostname> "
3329 #: ../clone/virt-sysprep.pod:191
3331 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3332 "C<localhost.localdomain>."
3336 #: ../clone/virt-sysprep.pod:194
3341 #: ../clone/virt-sysprep.pod:196
3342 msgid "Remove many log files."
3346 #: ../clone/virt-sysprep.pod:198
3351 #: ../clone/virt-sysprep.pod:200
3352 msgid "Remove email from the local mail spool directory."
3356 #: ../clone/virt-sysprep.pod:202
3361 #: ../clone/virt-sysprep.pod:204
3363 "Remove HWADDR (hard-coded MAC address) configuration. For Fedora and Red "
3364 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3368 #: ../clone/virt-sysprep.pod:207
3373 #: ../clone/virt-sysprep.pod:209
3375 "Write some random bytes from the host into the random seed file of the guest."
3379 #: ../clone/virt-sysprep.pod:212
3380 msgid "See L</RANDOM SEED> below."
3384 #: ../clone/virt-sysprep.pod:214
3385 msgid "rhn-systemid"
3389 #: ../clone/virt-sysprep.pod:216
3390 msgid "Remove the RHN system ID."
3394 #: ../clone/virt-sysprep.pod:218
3399 #: ../clone/virt-sysprep.pod:220
3400 msgid "Remove the Smolt hardware UUID."
3404 #: ../clone/virt-sysprep.pod:222
3405 msgid "ssh-hostkeys"
3409 #: ../clone/virt-sysprep.pod:224
3410 msgid "Remove the SSH host keys in the guest."
3414 #: ../clone/virt-sysprep.pod:226
3416 "The SSH host keys are regenerated (differently) next time the guest is "
3421 #: ../clone/virt-sysprep.pod:229
3423 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3424 "stark warning about the host key changing:"
3428 #: ../clone/virt-sysprep.pod:232
3431 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3432 " @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @\n"
3433 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3434 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3439 #: ../clone/virt-sysprep.pod:237
3440 msgid "udev-persistent-net"
3444 #: ../clone/virt-sysprep.pod:239
3446 "Remove udev persistent net rules which map the guest's existing MAC address "
3447 "to a fixed ethernet device (eg. eth0)."
3451 #: ../clone/virt-sysprep.pod:242
3453 "After a guest is cloned, the MAC address usually changes. Since the old MAC "
3454 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3455 "is assigned to a new name (eg. eth1) and this is usually undesirable. "
3456 "Erasing the udev persistent net rules avoids this."
3460 #: ../clone/virt-sysprep.pod:247
3465 #: ../clone/virt-sysprep.pod:249
3466 msgid "Remove the utmp file."
3470 #: ../clone/virt-sysprep.pod:251
3472 "This records who is currently logged in on a machine. In modern Linux "
3473 "distros it is stored in a ramdisk and hence not part of the virtual "
3474 "machine's disk, but it was stored on disk in older distros."
3478 #: ../clone/virt-sysprep.pod:255
3483 #: ../clone/virt-sysprep.pod:257
3484 msgid "Remove the yum UUID."
3488 #: ../clone/virt-sysprep.pod:259
3490 "Yum creates a fresh UUID the next time it runs when it notices that the "
3491 "original UUID has been erased."
3495 #: ../clone/virt-sysprep.pod:262
3496 msgid "COPYING AND CLONING"
3500 #: ../clone/virt-sysprep.pod:264
3502 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3503 "prepare a template from which guests can be cloned. There are many "
3504 "different ways to achieve this using the virt tools, and this section is "
3505 "just an introduction."
3509 #: ../clone/virt-sysprep.pod:269
3510 msgid "A virtual machine (when switched off) consists of two parts:"
3514 #: ../clone/virt-sysprep.pod:273
3515 msgid "I<configuration>"
3519 #: ../clone/virt-sysprep.pod:275
3521 "The configuration or description of the guest. eg. The libvirt XML (see "
3522 "C<virsh dumpxml>), the running configuration of the guest, or another "
3523 "external format like OVF."
3527 #: ../clone/virt-sysprep.pod:279
3528 msgid "Some configuration items that might need to be changed:"
3532 #: ../clone/virt-sysprep.pod:285
3537 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3542 #: ../clone/virt-sysprep.pod:293
3543 msgid "path to block device(s)"
3547 #: ../clone/virt-sysprep.pod:297
3548 msgid "network card MAC address"
3552 #: ../clone/virt-sysprep.pod:301
3553 msgid "I<block device(s)>"
3557 #: ../clone/virt-sysprep.pod:303
3559 "One or more hard disk images, themselves containing files, directories, "
3560 "applications, kernels, configuration, etc."
3564 #: ../clone/virt-sysprep.pod:306
3565 msgid "Some things inside the block devices that might need to be changed:"
3569 #: ../clone/virt-sysprep.pod:312
3570 msgid "hostname and other net configuration"
3574 #: ../clone/virt-sysprep.pod:320
3575 msgid "SSH host keys"
3579 #: ../clone/virt-sysprep.pod:324
3580 msgid "Windows unique security ID (SID)"
3584 #: ../clone/virt-sysprep.pod:328
3585 msgid "Puppet registration"
3589 #: ../clone/virt-sysprep.pod:334
3590 msgid "COPYING THE BLOCK DEVICE"
3594 #: ../clone/virt-sysprep.pod:336
3596 "Starting with an original guest, you probably wish to copy the guest block "
3597 "device and its configuration to make a template. Then once you are happy "
3598 "with the template, you will want to make many clones from it."
3602 #: ../clone/virt-sysprep.pod:341
3608 " original guest --------> template ---------->\n"
3609 " \\------> cloned\n"
3610 " \\-----> guests\n"
3616 #: ../clone/virt-sysprep.pod:349
3618 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3623 #: ../clone/virt-sysprep.pod:352
3627 " original guest --------> template ---------->\n"
3628 " \\------> cloned\n"
3629 " \\-----> guests\n"
3635 #: ../clone/virt-sysprep.pod:358
3636 msgid "There are some smarter (and faster) ways too:"
3640 #: ../clone/virt-sysprep.pod:364
3644 " template ---------->\n"
3645 " \\------> cloned\n"
3646 " \\-----> guests\n"
3652 #: ../clone/virt-sysprep.pod:370
3654 "Use the block device as a backing file and create a snapshot on top for each "
3655 "guest. The advantage is that you don't need to copy the block device (very "
3656 "fast) and only changes are stored (less storage required)."
3660 #: ../clone/virt-sysprep.pod:375
3662 "Note that writing to the backing file once you have created guests on top of "
3663 "it is not possible: you will corrupt the guests."
3667 #: ../clone/virt-sysprep.pod:378
3669 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3670 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option). Some "
3671 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3672 "also create cheap snapshots from files or LUNs."
3676 #: ../clone/virt-sysprep.pod:386
3677 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3681 #: ../clone/virt-sysprep.pod:390
3682 msgid "Prepare your template using L<virt-sparsify(1)>. See below."
3686 #: ../clone/virt-sysprep.pod:394
3691 #: ../clone/virt-sysprep.pod:396
3693 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3694 "and/or modify the external libvirt configuration of a guest. It will reset "
3695 "the name, UUID and MAC address of the guest in the libvirt XML."
3699 #: ../clone/virt-sysprep.pod:401
3701 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3702 "image. This was the original motivation to write virt-sysprep."
3706 #: ../clone/virt-sysprep.pod:404
3711 #: ../clone/virt-sysprep.pod:406
3715 " original guest --------> template\n"
3720 #: ../clone/virt-sysprep.pod:409
3722 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3723 "it easier to compress and/or faster to copy."
3727 #: ../clone/virt-sysprep.pod:412
3729 "Notice that since virt-sparsify also copies the image, you can use it to "
3730 "make the initial copy (instead of C<dd>)."
3734 #: ../clone/virt-sysprep.pod:415
3739 #: ../clone/virt-sysprep.pod:417
3743 " template ---------->\n"
3744 " \\------> cloned\n"
3745 " \\-----> guests\n"
3751 #: ../clone/virt-sysprep.pod:423
3753 "If you want to give people cloned guests, but let them pick the size of the "
3754 "guest themselves (eg. depending on how much they are prepared to pay for "
3755 "disk space), then instead of copying the template, you can run L<virt-resize"
3756 "(1)>. Virt-resize performs a copy and resize, and thus is ideal for cloning "
3757 "guests from a template."
3761 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3766 #: ../clone/virt-sysprep.pod:431
3768 "Although virt-sysprep removes some sensitive information from the guest, it "
3769 "does not pretend to remove all of it. You should examine the L</OPERATIONS> "
3770 "above, and the implementation of the operations in the shell script. You "
3771 "should also examine the guest afterwards."
3775 #: ../clone/virt-sysprep.pod:436
3777 "Sensitive files are simply removed. The data they contained may still exist "
3778 "on the disk, easily recovered with a hex editor or undelete tool. Use "
3779 "L<virt-sparsify(1)> as one way to remove this content. See also the L<scrub"
3780 "(1)> command to get rid of deleted content in directory entries and inodes."
3784 #: ../clone/virt-sysprep.pod:442
3789 #: ../clone/virt-sysprep.pod:444
3790 msgid "I<(This section applies to Linux guests only)>"
3794 #: ../clone/virt-sysprep.pod:446
3796 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3797 "from the host into the guest's random seed file."
3801 #: ../clone/virt-sysprep.pod:449
3803 "If this is just done once and the guest is cloned from the same template, "
3804 "then each guest will start with the same entropy, and things like SSH host "
3805 "keys and TCP sequence numbers may be predictable."
3809 #: ../clone/virt-sysprep.pod:453
3811 "Therefore you should arrange to add more randomness I<after> cloning from a "
3812 "template too, which can be done by just enabling the C<random-seed> "
3817 #: ../clone/virt-sysprep.pod:457
3820 " cp template.img newguest.img\n"
3821 " virt-sysprep --enable=random-seed -a newguest.img\n"
3826 #: ../clone/virt-sysprep.pod:460
3827 msgid "SELINUX RELABELLING"
3831 #: ../clone/virt-sysprep.pod:462
3832 msgid "I<(This section applies to Linux guests using SELinux only)>"
3836 #: ../clone/virt-sysprep.pod:464
3838 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3839 "autorelabel> so that these will be correctly labelled by SELinux the next "
3840 "time the guest is booted. This process interrupts boot and can take some "
3845 #: ../clone/virt-sysprep.pod:469
3847 "You can force relabelling for all guests by supplying the I<--selinux-"
3852 #: ../clone/virt-sysprep.pod:472
3854 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3859 #: ../clone/virt-sysprep.pod:484
3860 msgid "This program returns 0 on success, or 1 if there was an error."
3864 #: ../clone/virt-sysprep.pod:488
3866 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3867 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3868 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3872 #: ../df/virt-df.pod:5
3873 msgid "virt-df - Display free space on virtual filesystems"
3877 #: ../df/virt-df.pod:9
3880 " virt-df [--options]\n"
3883 " virt-df [--параметри]\n"
3887 #: ../df/virt-df.pod:11
3890 " virt-df [--options] -d domname\n"
3895 #: ../df/virt-df.pod:13
3898 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3903 #: ../df/virt-df.pod:17
3906 " virt-df [--options] domname\n"
3911 #: ../df/virt-df.pod:19
3914 " virt-df [--options] disk.img [disk.img ...]\n"
3919 #: ../df/virt-df.pod:23
3921 "C<virt-df> is a command line tool to display free space on virtual machine "
3922 "filesystems. Unlike other tools, it doesn't just display the size of disk "
3923 "allocated to a virtual machine, but can look inside disk images to see how "
3924 "much space is really being used."
3928 #: ../df/virt-df.pod:28
3930 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3931 "to get a list of all active and inactive guests, and performs a C<df>-type "
3932 "operation on each one in turn, printing out the results."
3936 #: ../df/virt-df.pod:32
3938 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3939 "type operation on either the single named libvirt domain, or on the disk "
3940 "image(s) listed on the command line (which must all belong to a single VM). "
3941 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3942 "guest>. If you want to run on multiple guests, then you have to invoke "
3943 "C<virt-df> multiple times."
3947 #: ../df/virt-df.pod:39
3949 "Use the I<--csv> option to get a format which can be easily parsed by other "
3950 "programs. Other options are similar to the standard L<df(1)> command."
3954 #: ../df/virt-df.pod:45
3956 "Show disk usage for a single libvirt guest called C<F14x64>. Make the "
3957 "output human-readable:"
3961 #: ../df/virt-df.pod:48
3964 " # virt-df -d F14x64 -h\n"
3965 " Filesystem Size Used Available Use%\n"
3966 " F14x64:/dev/sda1 484M 66M 393M 14%\n"
3967 " F14x64:/dev/vg_f13x64/lv_root 7.4G 3.4G 4.0G 46%\n"
3972 #: ../df/virt-df.pod:53
3973 msgid "Show disk usage for a disk image file called C<test.img>:"
3977 #: ../df/virt-df.pod:55
3980 " $ virt-df -a test1.img\n"
3981 " Filesystem 1K-blocks Used Available Use%\n"
3982 " test1.img:/dev/sda1 99099 1551 92432 2%\n"
3987 #: ../df/virt-df.pod:112
3990 " virt-df --format=raw -a disk.img\n"
3995 #: ../df/virt-df.pod:116
3998 " virt-df --format=raw -a disk.img --format -a another.img\n"
4003 #: ../df/virt-df.pod:129
4004 msgid "Print sizes in human-readable format."
4008 #: ../df/virt-df.pod:131
4009 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
4013 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
4018 #: ../df/virt-df.pod:135
4020 msgstr "B<--inodes>"
4023 #: ../df/virt-df.pod:137
4024 msgid "Print inodes instead of blocks."
4028 #: ../df/virt-df.pod:139
4029 msgid "B<--one-per-guest>"
4030 msgstr "B<--one-per-guest>"
4033 #: ../df/virt-df.pod:141
4035 "Run one libguestfs appliance per guest. Normally C<virt-df> will add the "
4036 "disks from several guests to a single libguestfs appliance."
4040 #: ../df/virt-df.pod:144
4041 msgid "You might use this option in the following circumstances:"
4045 #: ../df/virt-df.pod:150
4047 "If you think an untrusted guest might actively try to exploit the libguestfs "
4048 "appliance kernel, then this prevents one guest from interfering with the "
4049 "stats printed for another guest."
4053 #: ../df/virt-df.pod:156
4055 "If the kernel has a bug which stops it from accessing a filesystem in one "
4056 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
4057 "and report stats for further guests."
4061 #: ../df/virt-df.pod:165
4063 "Print UUIDs instead of names. This is useful for following a guest even "
4064 "when the guest is migrated or renamed, or when two guests happen to have the "
4069 #: ../df/virt-df.pod:169
4071 "Note that only domains that we fetch from libvirt come with UUIDs. For disk "
4072 "images, we still print the disk image name even when this option is "
4077 #: ../df/virt-df.pod:229
4079 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4084 #: ../edit/virt-edit.pod:5
4085 msgid "virt-edit - Edit a file in a virtual machine"
4089 #: ../edit/virt-edit.pod:9
4092 " virt-edit [--options] -d domname file [file ...]\n"
4097 #: ../edit/virt-edit.pod:11
4100 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4105 #: ../edit/virt-edit.pod:13
4108 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4113 #: ../edit/virt-edit.pod:17
4116 " virt-edit domname file\n"
4121 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4124 " virt-edit disk.img [disk.img ...] file\n"
4129 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4130 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4131 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
4132 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4134 msgstr "ПОПЕРЕДЖЕННЯ"
4137 #: ../edit/virt-edit.pod:23
4139 "You must I<not> use C<virt-edit> on live virtual machines. If you do this, "
4140 "you risk disk corruption in the VM. C<virt-edit> tries to stop you from "
4141 "doing this, but doesn't catch all cases."
4145 #: ../edit/virt-edit.pod:29
4147 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4148 "exists in the named virtual machine (or disk image)."
4152 #: ../edit/virt-edit.pod:32
4154 "Multiple filenames can be given, in which case they are each edited in "
4155 "turn. Each filename must be a full path, starting at the root directory "
4156 "(starting with '/')."
4160 #: ../edit/virt-edit.pod:36
4161 msgid "If you want to just view a file, use L<virt-cat(1)>."
4165 #: ../edit/virt-edit.pod:38
4167 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4168 "USING GUESTFISH> below)."
4172 #: ../edit/virt-edit.pod:41
4174 "C<virt-edit> cannot be used to create a new file. L<guestfish(1)> can do "
4175 "that and much more."
4179 #: ../edit/virt-edit.pod:46
4180 msgid "Edit the named files interactively:"
4184 #: ../edit/virt-edit.pod:48
4187 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4192 #: ../edit/virt-edit.pod:50
4195 " virt-edit -d mydomain /etc/passwd\n"
4200 #: ../edit/virt-edit.pod:52
4201 msgid "For Windows guests, some Windows paths are understood:"
4205 #: ../edit/virt-edit.pod:54
4208 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4213 #: ../edit/virt-edit.pod:56
4215 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4216 "INTERACTIVE EDITING> below). To change the init default level to 5:"
4220 #: ../edit/virt-edit.pod:60
4223 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4228 #: ../edit/virt-edit.pod:81
4229 msgid "B<-b> extension"
4233 #: ../edit/virt-edit.pod:83
4234 msgid "B<--backup> extension"
4238 #: ../edit/virt-edit.pod:85
4240 "Create a backup of the original file I<in the guest disk image>. The backup "
4241 "has the original filename with C<extension> added."
4245 #: ../edit/virt-edit.pod:88
4247 "Usually the first character of C<extension> would be a dot C<.> so you would "
4252 #: ../edit/virt-edit.pod:91
4255 " virt-edit -b .orig [etc]\n"
4260 #: ../edit/virt-edit.pod:93
4261 msgid "By default, no backup file is made."
4265 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4266 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4267 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4268 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4270 msgstr "B<-c адреса>"
4273 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4274 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4275 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4276 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4277 msgid "B<--connect URI>"
4278 msgstr "B<--connect адреса>"
4281 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4282 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4283 #: ../tools/virt-win-reg.pl:135
4285 "If you specify guest block devices directly, then libvirt is not used at all."
4289 #: ../edit/virt-edit.pod:114
4291 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4292 "off so you cannot see what you are typing. If you are not worried about "
4293 "Tempest attacks and there is no one else in the room you can specify this "
4294 "flag to see what you are typing."
4298 #: ../edit/virt-edit.pod:119
4300 msgstr "B<-e> вираз"
4303 #: ../edit/virt-edit.pod:121
4304 msgid "B<--expr> EXPR"
4305 msgstr "B<--expr> вираз"
4308 #: ../edit/virt-edit.pod:123
4310 "Instead of launching the external editor, non-interactively apply the Perl "
4311 "expression C<EXPR> to each line in the file. See L</NON-INTERACTIVE "
4316 #: ../edit/virt-edit.pod:127
4318 "Be careful to properly quote the expression to prevent it from being altered "
4323 #: ../edit/virt-edit.pod:130
4324 msgid "Note that this option is only available when Perl 5 is installed."
4328 #: ../edit/virt-edit.pod:132
4329 msgid "B<--format> raw|qcow2|..."
4330 msgstr "B<--format> raw|qcow2|..."
4333 #: ../edit/virt-edit.pod:143
4336 " virt-edit --format=raw -a disk.img file\n"
4341 #: ../edit/virt-edit.pod:147
4344 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4349 #: ../edit/virt-edit.pod:181
4350 msgid "Previous versions of virt-edit allowed you to write either:"
4354 #: ../edit/virt-edit.pod:187
4357 " virt-edit guestname file\n"
4362 #: ../edit/virt-edit.pod:195
4363 msgid "NON-INTERACTIVE EDITING"
4364 msgstr "НЕІНТЕРАКТИВНЕ РЕДАГУВАННЯ"
4367 #: ../edit/virt-edit.pod:197
4369 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4370 "administrator can interactively edit the file."
4374 #: ../edit/virt-edit.pod:200
4376 "There are two ways also to use C<virt-edit> from scripts in order to make "
4377 "automated edits to files. (Note that although you I<can> use C<virt-edit> "
4378 "like this, it's less error-prone to write scripts directly using the "
4379 "libguestfs API and Augeas for configuration file editing.)"
4383 #: ../edit/virt-edit.pod:206
4385 "The first method is to temporarily set C<$EDITOR> to any script or program "
4386 "you want to run. The script is invoked as C<$EDITOR tmpfile> and it should "
4387 "update C<tmpfile> in place however it likes."
4391 #: ../edit/virt-edit.pod:210
4393 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4394 "short Perl snippet in the style of L<sed(1)>. For example to replace all "
4395 "instances of C<foo> with C<bar> in a file:"
4399 #: ../edit/virt-edit.pod:214
4402 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4407 #: ../edit/virt-edit.pod:216
4409 "The full power of Perl regular expressions can be used (see L<perlre(1)>). "
4410 "For example to delete root's password you could do:"
4414 #: ../edit/virt-edit.pod:219
4417 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4420 " virt-edit -d назва_домену /etc/passwd -e 's/^root:.*?:/root::/'\n"
4424 #: ../edit/virt-edit.pod:221
4426 "What really happens is that the snippet is evaluated as a Perl expression "
4427 "for each line of the file. The line, including the final C<\\n>, is passed "
4428 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4432 #: ../edit/virt-edit.pod:226
4434 "To delete a line, set C<$_> to the empty string. For example, to delete the "
4435 "C<apache> user account from the password file you can do:"
4439 #: ../edit/virt-edit.pod:229
4442 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4445 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4449 #: ../edit/virt-edit.pod:231
4451 "To insert a line, prepend or append it to C<$_>. However appending lines to "
4452 "the end of the file is rather difficult this way since there is no concept "
4453 "of \"last line of the file\" - your expression just doesn't get called "
4454 "again. You might want to use the first method (setting C<$EDITOR>) if you "
4459 #: ../edit/virt-edit.pod:237
4461 "The variable C<$lineno> contains the current line number. As is "
4462 "traditional, the first line in the file is number C<1>."
4466 #: ../edit/virt-edit.pod:240
4468 "The return value from the expression is ignored, but the expression may call "
4469 "C<die> in order to abort the whole program, leaving the original file "
4474 #: ../edit/virt-edit.pod:244
4476 "Remember when matching the end of a line that C<$_> may contain the final C<"
4477 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4478 "newline then neither of these. Thus to match or substitute some text at the "
4479 "end of a line, use this regular expression:"
4483 #: ../edit/virt-edit.pod:249
4486 " /some text(\\r?\\n)?$/\n"
4489 " /якийсь текст(\\r?\\n)?$/\n"
4493 #: ../edit/virt-edit.pod:251
4495 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4496 "$_> itself (since that would remove all newlines from the file):"
4500 #: ../edit/virt-edit.pod:255
4503 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4506 " my $m = $_; chomp $m; $m =~ /якийсь текст$/\n"
4510 #: ../edit/virt-edit.pod:259
4512 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4513 "paths (eg. C<E:\\foo\\bar.txt>)."
4517 #: ../edit/virt-edit.pod:278
4519 "The path is resolved case insensitively to locate the file that should be "
4524 #: ../edit/virt-edit.pod:299
4526 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4527 "C<virt-edit> doesn't work."
4531 #: ../edit/virt-edit.pod:302
4532 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4536 #: ../edit/virt-edit.pod:304
4539 " guestfish --rw -i -d domname edit /file\n"
4544 #: ../edit/virt-edit.pod:306
4546 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4551 #: ../edit/virt-edit.pod:309
4553 "The command above uses libguestfs's guest inspection feature and so does not "
4554 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4555 "disk images that don't contain guests. To edit a file on a disk image "
4560 #: ../edit/virt-edit.pod:314
4563 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4568 #: ../edit/virt-edit.pod:316
4570 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4571 "the disk image to edit, and C</file> is the full path to the file."
4575 #: ../edit/virt-edit.pod:320
4577 "C<virt-edit> cannot create new files. Use the guestfish commands C<touch>, "
4578 "C<write> or C<upload> instead:"
4582 #: ../edit/virt-edit.pod:323
4585 " guestfish --rw -i -d domname touch /newfile\n"
4590 #: ../edit/virt-edit.pod:325
4593 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4598 #: ../edit/virt-edit.pod:327
4601 " guestfish --rw -i -d domname upload localfile /newfile\n"
4606 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4607 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
4608 #: ../src/guestfs.pod:3209 ../test-tool/libguestfs-test-tool.pod:95
4609 msgid "ENVIRONMENT VARIABLES"
4610 msgstr "ЗМІННІ СЕРЕДОВИЩА"
4613 #: ../edit/virt-edit.pod:333
4618 #: ../edit/virt-edit.pod:335
4620 "If set, this string is used as the editor. It may contain arguments, eg. C<"
4625 #: ../edit/virt-edit.pod:338
4626 msgid "If not set, C<vi> is used."
4630 #: ../edit/virt-edit.pod:356
4632 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4633 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4634 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4636 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4637 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4638 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4641 #: ../erlang/examples/guestfs-erlang.pod:5
4642 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4646 #: ../erlang/examples/guestfs-erlang.pod:9
4649 " {ok, G} = guestfs:create(),\n"
4650 " ok = guestfs:add_drive_opts(G, Disk,\n"
4651 " [{format, \"raw\"}, {readonly, true}]),\n"
4652 " ok = guestfs:launch(G),\n"
4653 " [Device] = guestfs:list_devices(G),\n"
4654 " ok = guestfs:close(G).\n"
4659 #: ../erlang/examples/guestfs-erlang.pod:18
4661 "This manual page documents how to call libguestfs from the Erlang "
4662 "programming language. This page just documents the differences from the C "
4663 "API and gives some examples. If you are not familiar with using libguestfs, "
4664 "you also need to read L<guestfs(3)>."
4668 #: ../erlang/examples/guestfs-erlang.pod:23
4669 msgid "OPENING AND CLOSING THE HANDLE"
4673 #: ../erlang/examples/guestfs-erlang.pod:25
4675 "The Erlang bindings are implemented using an external program called C<erl-"
4676 "guestfs>. This program must be on the current PATH, or else you should "
4677 "specify the full path to the program:"
4681 #: ../erlang/examples/guestfs-erlang.pod:29
4684 " {ok, G} = guestfs:create().\n"
4689 #: ../erlang/examples/guestfs-erlang.pod:31
4692 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4697 #: ../erlang/examples/guestfs-erlang.pod:33
4698 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4702 #: ../erlang/examples/guestfs-erlang.pod:36
4703 msgid "To close the handle:"
4707 #: ../erlang/examples/guestfs-erlang.pod:38
4710 " ok = guestfs:close(G).\n"
4715 #: ../erlang/examples/guestfs-erlang.pod:40
4716 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4720 #: ../erlang/examples/guestfs-erlang.pod:42
4722 "For functions that take optional arguments, the first arguments are the non-"
4723 "optional ones. The last argument is a list of tuples supplying the "
4724 "remaining optional arguments."
4728 #: ../erlang/examples/guestfs-erlang.pod:46
4731 " ok = guestfs:add_drive_opts(G, Disk,\n"
4732 " [{format, \"raw\"}, {readonly, true}]).\n"
4737 #: ../erlang/examples/guestfs-erlang.pod:49
4738 msgid "If the last argument would be an empty list, you can also omit it:"
4742 #: ../erlang/examples/guestfs-erlang.pod:51
4745 " ok = guestfs:add_drive_opts(G, Disk).\n"
4750 #: ../erlang/examples/guestfs-erlang.pod:53
4751 msgid "RETURN VALUES AND ERRORS"
4755 #: ../erlang/examples/guestfs-erlang.pod:55
4757 "On success, most functions return a C<Result> term (which could be a list, "
4758 "string, tuple etc.). If there is nothing for the function to return, then "
4759 "the atom C<ok> is returned."
4763 #: ../erlang/examples/guestfs-erlang.pod:59
4764 msgid "On error, you would see one of the following tuples:"
4768 #: ../erlang/examples/guestfs-erlang.pod:63
4769 msgid "C<{error, Msg, Errno}>"
4773 #: ../erlang/examples/guestfs-erlang.pod:65
4774 msgid "This indicates an ordinary error from the function."
4778 #: ../erlang/examples/guestfs-erlang.pod:67
4780 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4785 #: ../erlang/examples/guestfs-erlang.pod:70
4786 msgid "C<Errno> can be zero. See L<guestfs(3)/guestfs_last_errno>."
4790 #: ../erlang/examples/guestfs-erlang.pod:72
4791 msgid "C<{unknown, Function}>"
4795 #: ../erlang/examples/guestfs-erlang.pod:74
4797 "This indicates that the function you called is not known. Generally this "
4798 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4799 "which you should not do."
4803 #: ../erlang/examples/guestfs-erlang.pod:78
4804 msgid "C<Function> is the name of the unknown function."
4808 #: ../erlang/examples/guestfs-erlang.pod:80
4809 msgid "C<{unknownarg, Arg}>"
4813 #: ../erlang/examples/guestfs-erlang.pod:82
4815 "This indicates that you called a function with optional arguments, with an "
4816 "unknown argument name."
4820 #: ../erlang/examples/guestfs-erlang.pod:85
4821 msgid "C<Arg> is the name of the unknown argument."
4825 #: ../erlang/examples/guestfs-erlang.pod:89
4826 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4827 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4828 #: ../python/examples/guestfs-python.pod:34
4829 #: ../ruby/examples/guestfs-ruby.pod:28
4830 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4831 msgstr "ПРИКЛАД 1. СТВОРЕННЯ ОБРАЗУ ДИСКА"
4834 #: ../erlang/examples/guestfs-erlang.pod:91
4835 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4836 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4837 #: ../python/examples/guestfs-python.pod:36
4838 #: ../ruby/examples/guestfs-ruby.pod:30
4843 #: ../erlang/examples/guestfs-erlang.pod:93
4844 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4845 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4846 #: ../python/examples/guestfs-python.pod:38
4847 #: ../ruby/examples/guestfs-ruby.pod:32
4848 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4849 msgstr "ПРИКЛАД 2. ПЕРЕВІРКА ОБРАЗУ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
4852 #: ../erlang/examples/guestfs-erlang.pod:95
4853 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4854 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4855 #: ../python/examples/guestfs-python.pod:40
4856 #: ../ruby/examples/guestfs-ruby.pod:34
4861 #: ../erlang/examples/guestfs-erlang.pod:99
4863 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4864 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4865 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>."
4869 #: ../erlang/examples/guestfs-erlang.pod:110
4870 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4871 #: ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60
4872 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4873 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
4874 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
4875 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4876 #: ../python/examples/guestfs-python.pod:54
4877 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3348
4878 #: ../test-tool/libguestfs-test-tool.pod:106
4883 #: ../erlang/examples/guestfs-erlang.pod:112
4884 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4885 #: ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62
4886 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4887 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
4888 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4889 #: ../perl/examples/guestfs-perl.pod:54
4890 #: ../python/examples/guestfs-python.pod:56
4891 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3350
4892 #: ../test-tool/libguestfs-test-tool.pod:108
4893 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4894 msgstr "Richard W.M. Jones (C<rjones at redhat dot com>)"
4897 #: ../erlang/examples/guestfs-erlang.pod:116
4898 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4899 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4903 #: ../erlang/examples/guestfs-erlang.pod:118
4904 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4905 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4906 #: ../perl/examples/guestfs-perl.pod:60
4907 #: ../python/examples/guestfs-python.pod:62
4908 #: ../ruby/examples/guestfs-ruby.pod:56
4910 "The examples in this manual page may be freely copied, modified and "
4911 "distributed without any restrictions."
4915 #: ../erlang/examples/guestfs-erlang.pod:121
4916 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4917 #: ../java/examples/guestfs-java.pod:69
4918 #: ../ocaml/examples/guestfs-ocaml.pod:102
4919 #: ../perl/examples/guestfs-perl.pod:63
4920 #: ../python/examples/guestfs-python.pod:65
4921 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3357
4923 "This library is free software; you can redistribute it and/or modify it "
4924 "under the terms of the GNU Lesser General Public License as published by the "
4925 "Free Software Foundation; either version 2 of the License, or (at your "
4926 "option) any later version."
4930 #: ../erlang/examples/guestfs-erlang.pod:126
4931 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4932 #: ../java/examples/guestfs-java.pod:74
4933 #: ../ocaml/examples/guestfs-ocaml.pod:107
4934 #: ../perl/examples/guestfs-perl.pod:68
4935 #: ../python/examples/guestfs-python.pod:70
4936 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3362
4938 "This library is distributed in the hope that it will be useful, but WITHOUT "
4939 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4940 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License "
4945 #: ../erlang/examples/guestfs-erlang.pod:131
4946 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4947 #: ../java/examples/guestfs-java.pod:79
4948 #: ../ocaml/examples/guestfs-ocaml.pod:112
4949 #: ../perl/examples/guestfs-perl.pod:73
4950 #: ../python/examples/guestfs-python.pod:75
4951 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3367
4953 "You should have received a copy of the GNU Lesser General Public License "
4954 "along with this library; if not, write to the Free Software Foundation, "
4955 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4959 #: ../examples/guestfs-examples.pod:5
4960 msgid "guestfs-examples - Examples of using libguestfs from C"
4964 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4967 " #include <guestfs.h>\n"
4970 " #include <guestfs.h>\n"
4974 #: ../examples/guestfs-examples.pod:11
4977 " guestfs_h *g = guestfs_create ();\n"
4978 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4979 " guestfs_launch (g);\n"
4982 " guestfs_h *g = guestfs_create ();\n"
4983 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4984 " guestfs_launch (g);\n"
4988 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4991 " cc prog.c -o prog -lguestfs\n"
4993 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4996 " cc prog.c -o prog -lguestfs\n"
4998 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5002 #: ../examples/guestfs-examples.pod:21
5004 "This manual page contains examples of calling libguestfs from the C "
5005 "programming language. If you are not familiar with using libguestfs, you "
5006 "also need to read L<guestfs(3)>."
5010 #: ../examples/guestfs-examples.pod:35
5012 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
5013 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
5014 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5018 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
5019 #: ../python/examples/guestfs-python.pod:60
5020 #: ../ruby/examples/guestfs-ruby.pod:54
5021 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
5025 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
5030 #: ../examples/guestfs-recipes.pod:5
5032 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
5033 "here. The only way which works for both sorts of output is to just write "
5034 "the URL directly. Do NOT use L<...> for URLs."
5038 #: ../examples/guestfs-recipes.pod:9
5040 "We break with tradition here and don't use ALL CAPS for the section "
5041 "headings, as this makes them much easier to read."
5045 #: ../examples/guestfs-recipes.pod:16
5046 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
5050 #: ../examples/guestfs-recipes.pod:20
5052 "This page contains recipes for and links to things you can do using "
5053 "libguestfs, L<guestfish(1)> and the virt tools."
5057 #: ../examples/guestfs-recipes.pod:23
5058 msgid "Audit a virtual machine for setuid files"
5062 #: ../examples/guestfs-recipes.pod:25
5064 "The link below contains a small program which can be used to audit a Linux "
5065 "virtual machine to see what setuid and setgid files it contains."
5069 #: ../examples/guestfs-recipes.pod:28
5071 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
5076 #: ../examples/guestfs-recipes.pod:30
5077 msgid "Change the background image in a Windows XP VM"
5081 #: ../examples/guestfs-recipes.pod:32
5083 "The links below explain how to use L<guestfish(1)> to change the background "
5084 "image for a user of a Windows XP VM. Unfortunately the technique appears to "
5085 "be substantially different for each version of Windows."
5089 #: ../examples/guestfs-recipes.pod:37
5091 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
5092 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
5096 #: ../examples/guestfs-recipes.pod:40
5097 msgid "Cloning a virtual machine (Linux)"
5101 #: ../examples/guestfs-recipes.pod:42
5103 "The guestfish technique described in the link below works well for most "
5104 "Linux VMs. Depending on the Linux distro you may need to change the paths "
5109 #: ../examples/guestfs-recipes.pod:46
5111 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5116 #: ../examples/guestfs-recipes.pod:48
5118 "Avoid L<virt-clone(1)>. Currently what to do about virt-clone is under "
5123 #: ../examples/guestfs-recipes.pod:51
5124 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5128 #: ../examples/guestfs-recipes.pod:53
5129 msgid "Cloning a virtual machine (Windows)"
5133 #: ../examples/guestfs-recipes.pod:55
5135 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5136 "straightforward. Currently there is code in the Aeolus Oz project which "
5137 "does this (using libguestfs). As part of our review of the virt-clone tool, "
5138 "we may add sysprepping ability."
5142 #: ../examples/guestfs-recipes.pod:60
5144 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5145 "list/2011-May/msg00019.html"
5149 #: ../examples/guestfs-recipes.pod:63
5150 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5154 #: ../examples/guestfs-recipes.pod:65
5155 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5159 #: ../examples/guestfs-recipes.pod:67
5162 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5167 #: ../examples/guestfs-recipes.pod:69
5168 msgid "To export just a subdirectory, eg. C</files>, do:"
5172 #: ../examples/guestfs-recipes.pod:71
5175 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5180 #: ../examples/guestfs-recipes.pod:73
5181 msgid "Create empty disk images"
5185 #: ../examples/guestfs-recipes.pod:75
5187 "You can use the L<guestfish(1)> I<-N> option to create empty disk images. "
5188 "The useful guide below explains the options available."
5192 #: ../examples/guestfs-recipes.pod:78
5194 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5199 #: ../examples/guestfs-recipes.pod:80
5200 msgid "Dump raw filesystem content from inside a disk image or VM"
5204 #: ../examples/guestfs-recipes.pod:82
5206 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5207 "filesystem content from any filesystem in a disk image or a VM (even one "
5208 "which is encrypted or buried inside an LV):"
5212 #: ../examples/guestfs-recipes.pod:86
5215 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5220 #: ../examples/guestfs-recipes.pod:88
5223 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5228 #: ../examples/guestfs-recipes.pod:90
5229 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5233 #: ../examples/guestfs-recipes.pod:92
5234 msgid "Edit grub configuration in a VM"
5238 #: ../examples/guestfs-recipes.pod:94
5239 msgid "You can use this to:"
5243 #: ../examples/guestfs-recipes.pod:100
5244 msgid "Fix a virtual machine that does not boot."
5248 #: ../examples/guestfs-recipes.pod:104
5249 msgid "Change which kernel is used to boot the VM."
5253 #: ../examples/guestfs-recipes.pod:108
5254 msgid "Change kernel command line options."
5258 #: ../examples/guestfs-recipes.pod:112
5259 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5263 #: ../examples/guestfs-recipes.pod:114
5266 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5271 #: ../examples/guestfs-recipes.pod:116
5273 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5278 #: ../examples/guestfs-recipes.pod:119
5281 " virt-rescue -d BrokenGuest\n"
5286 #: ../examples/guestfs-recipes.pod:121
5287 msgid "Export any directory from a VM"
5291 #: ../examples/guestfs-recipes.pod:123
5293 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5297 #: ../examples/guestfs-recipes.pod:126
5300 " virt-copy-out -d Guest /home .\n"
5305 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5306 #: ../fish/guestfish-actions.pod:1450 ../fish/guestfish-actions.pod:1715
5307 #: ../fish/guestfish-actions.pod:2132 ../src/guestfs-actions.pod:18
5308 #: ../src/guestfs-actions.pod:2326 ../src/guestfs-actions.pod:2750
5309 #: ../src/guestfs-actions.pod:3309 ../src/guestfs.pod:1685
5310 #: ../tools/virt-win-reg.pl:717
5315 #: ../examples/guestfs-recipes.pod:134
5317 "The final dot of the command is not a printing error. It means we want to "
5318 "copy out to the current directory."
5322 #: ../examples/guestfs-recipes.pod:139
5323 msgid "This creates a directory called C<home> under the current directory."
5327 #: ../examples/guestfs-recipes.pod:143
5329 "If the guest is a Windows guest then you can use drive letters and "
5330 "backslashes, but you must prefix the path with C<win:> and quote it to "
5331 "protect it from the shell, like this:"
5335 #: ../examples/guestfs-recipes.pod:147
5338 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5343 #: ../examples/guestfs-recipes.pod:149
5344 msgid "To get the output as a compressed tarball, do:"
5348 #: ../examples/guestfs-recipes.pod:151
5351 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5356 #: ../examples/guestfs-recipes.pod:153
5358 "Although it sounds tempting, this is usually not a reliable way to get a "
5359 "backup from a running guest. See the entry in the FAQ: http://libguestfs."
5360 "org/FAQ.html#backup"
5364 #: ../examples/guestfs-recipes.pod:157
5365 msgid "Find out which user is using the most space"
5369 #: ../examples/guestfs-recipes.pod:159
5371 "This simple script examines a Linux guest to find out which user is using "
5372 "the most space in their home directory:"
5376 #: ../examples/guestfs-recipes.pod:162
5384 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5392 #: ../examples/guestfs-recipes.pod:166
5401 #: ../examples/guestfs-recipes.pod:169
5404 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5409 #: ../examples/guestfs-recipes.pod:171
5412 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5413 " echo -n \"$dir/$d\"\n"
5415 " guestfish --remote du \"$dir/$d\";\n"
5416 " done | sort -nr -k 2\n"
5421 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5424 " guestfish --remote exit\n"
5429 #: ../examples/guestfs-recipes.pod:179
5430 msgid "Get DHCP address from a VM"
5434 #: ../examples/guestfs-recipes.pod:181
5436 "The link below explains the many different possible techniques for getting "
5437 "the last assigned DHCP address of a virtual machine."
5441 #: ../examples/guestfs-recipes.pod:184
5443 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5444 "a-virtual-machine-disk-image/#content"
5448 #: ../examples/guestfs-recipes.pod:186
5450 "In the libguestfs source examples directory you will find the latest version "
5451 "of the C<virt-dhcp-address.c> program."
5455 #: ../examples/guestfs-recipes.pod:189
5456 msgid "Get the operating system product name string"
5460 #: ../examples/guestfs-recipes.pod:191
5461 msgid "Save the following script into a file called C<product-name.sh>:"
5465 #: ../examples/guestfs-recipes.pod:193
5470 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5471 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5472 " guestfish --remote inspect-get-product-name \"$root\"\n"
5473 " guestfish --remote exit\n"
5478 #: ../examples/guestfs-recipes.pod:200
5479 msgid "Make the script executable and run it on a named guest:"
5483 #: ../examples/guestfs-recipes.pod:202
5486 " # product-name.sh RHEL60x64\n"
5487 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5492 #: ../examples/guestfs-recipes.pod:205
5494 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5495 "C<xpath> command line tool or from your favourite programming language:"
5499 #: ../examples/guestfs-recipes.pod:209
5502 " # virt-inspector RHEL60x64 > xml\n"
5503 " # xpath '//product_name' < xml\n"
5506 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5511 #: ../examples/guestfs-recipes.pod:215
5512 msgid "Get the default boot kernel for a Linux VM"
5516 #: ../examples/guestfs-recipes.pod:217
5518 "The link below contains a program to print the default boot kernel for a "
5523 #: ../examples/guestfs-recipes.pod:220
5525 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5526 "kernel-for-a-vm/#content"
5530 #: ../examples/guestfs-recipes.pod:222
5532 "It uses Augeas, and the technique is generally applicable for many different "
5537 #: ../examples/guestfs-recipes.pod:229
5538 msgid "listing the user accounts in the guest"
5542 #: ../examples/guestfs-recipes.pod:233
5543 msgid "what repositories is it configured to use"
5547 #: ../examples/guestfs-recipes.pod:237
5548 msgid "what NTP servers does it connect to"
5552 #: ../examples/guestfs-recipes.pod:241
5553 msgid "what were the boot messages last time it booted"
5557 #: ../examples/guestfs-recipes.pod:245
5558 msgid "listing who was logged in recently"
5562 #: ../examples/guestfs-recipes.pod:249
5563 msgid "http://augeas.net/"
5567 #: ../examples/guestfs-recipes.pod:251
5568 msgid "Install RPMs in a guest"
5572 #: ../examples/guestfs-recipes.pod:253
5574 "The link below contains a method to install RPMs in a guest. In fact the "
5575 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5576 "installs them next time the guest is booted. You could use this technique "
5577 "to install vital security updates in an offline guest."
5581 #: ../examples/guestfs-recipes.pod:259
5583 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5587 #: ../examples/guestfs-recipes.pod:261
5588 msgid "List applications installed in a VM"
5592 #: ../examples/guestfs-recipes.pod:263
5593 msgid "Save the following to a file C<list-apps.sh>:"
5597 #: ../examples/guestfs-recipes.pod:265
5602 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5603 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5604 " guestfish --remote inspect-list-applications \"$root\"\n"
5605 " guestfish --remote exit\n"
5610 #: ../examples/guestfs-recipes.pod:272
5612 "Make the file executable and then you can run it on any named virtual "
5617 #: ../examples/guestfs-recipes.pod:275
5620 " # list-apps.sh WinGuest\n"
5622 " app_name: Mozilla Firefox (3.6.12)\n"
5623 " app_display_name: Mozilla Firefox (3.6.12)\n"
5625 " app_version: 3.6.12 (en-GB)\n"
5627 " app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5628 " app_trans_path:\n"
5629 " app_publisher: Mozilla\n"
5630 " app_url: http://www.mozilla.com/en-GB/\n"
5631 " app_source_package:\n"
5633 " app_description: Mozilla Firefox\n"
5636 " app_name: VLC media player\n"
5637 " app_display_name: VLC media player 1.1.5\n"
5639 " app_version: 1.1.5\n"
5641 " app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5642 " app_trans_path:\n"
5643 " app_publisher: VideoLAN\n"
5644 " app_url: http://www.videolan.org/\n"
5645 " app_source_package:\n"
5647 " app_description:\n"
5653 #: ../examples/guestfs-recipes.pod:305
5655 "If you want to run the script on disk images (instead of libvirt virtual "
5656 "machines), change C<-d \"$1\"> to C<-a \"$1\">. See also L<virt-inspector(1)"
5661 #: ../examples/guestfs-recipes.pod:309
5662 msgid "List files and directories in a VM"
5666 #: ../examples/guestfs-recipes.pod:311
5667 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5671 #: ../examples/guestfs-recipes.pod:313
5674 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5679 #: ../examples/guestfs-recipes.pod:315
5680 msgid "List services in a Windows VM"
5684 #: ../examples/guestfs-recipes.pod:317
5686 "The link below contains a script that can be used to list out the services "
5687 "from a Windows VM, and whether those services run at boot time or are loaded "
5692 #: ../examples/guestfs-recipes.pod:321
5694 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5699 #: ../examples/guestfs-recipes.pod:323
5700 msgid "Make a disk image sparse"
5704 #: ../examples/guestfs-recipes.pod:325
5706 "The link below contains some guides for making a disk image sparse (or "
5707 "reintroducing sparseness)."
5711 #: ../examples/guestfs-recipes.pod:328
5713 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5717 #: ../examples/guestfs-recipes.pod:330
5718 msgid "Monitor disk usage over time"
5722 #: ../examples/guestfs-recipes.pod:332
5724 "You can use L<virt-df(1)> to monitor disk usage of your guests over time. "
5725 "The link below contains a guide."
5729 #: ../examples/guestfs-recipes.pod:335
5730 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5734 #: ../examples/guestfs-recipes.pod:337
5735 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5739 #: ../examples/guestfs-recipes.pod:339
5741 "L<guestfish(1)> plus the tools described in the link below can be used to "
5742 "read out the Windows Event Log from any virtual machine running Windows "
5743 "Vista or a later version."
5747 #: ../examples/guestfs-recipes.pod:343
5749 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5750 "guestfish/#content"
5754 #: ../examples/guestfs-recipes.pod:345
5755 msgid "Remove root password (Linux)"
5759 #: ../examples/guestfs-recipes.pod:347
5761 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5762 "files. One use is to remove the root password from a Linux guest:"
5766 #: ../examples/guestfs-recipes.pod:350
5769 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5774 #: ../examples/guestfs-recipes.pod:352
5775 msgid "Remove Administrator password (Windows)"
5779 #: ../examples/guestfs-recipes.pod:354
5781 "The link below contains one technique for removing the Administrator "
5782 "password from a Windows VM, or to be more precise, it gives you a command "
5783 "prompt the next time you log in which you can use to bypass any security:"
5787 #: ../examples/guestfs-recipes.pod:359
5789 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5790 "administrator-password-with-guestfish/"
5794 #: ../examples/guestfs-recipes.pod:361
5795 msgid "Unpack a live CD"
5799 #: ../examples/guestfs-recipes.pod:363
5801 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5802 "Russian doll. You can use L<guestfish(1)> to look inside these multiple "
5803 "layers, as outlined in the guide below."
5807 #: ../examples/guestfs-recipes.pod:367
5809 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5814 #: ../examples/guestfs-recipes.pod:369
5815 msgid "Uploading and downloading files"
5819 #: ../examples/guestfs-recipes.pod:371
5821 "The link below contains general tips on uploading (copying in) and "
5822 "downloading (copying out) files from VMs."
5826 #: ../examples/guestfs-recipes.pod:374
5828 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5832 #: ../examples/guestfs-recipes.pod:376
5833 msgid "Use libguestfs tools on VMware ESX guests"
5837 #: ../examples/guestfs-recipes.pod:378
5839 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5840 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5844 #: ../examples/guestfs-recipes.pod:382
5846 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5851 #: ../examples/guestfs-recipes.pod:386
5853 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5854 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5855 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5859 #: ../examples/guestfs-recipes.pod:403
5860 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5864 #: ../fish/guestfish-actions.pod:1
5869 #: ../fish/guestfish-actions.pod:3
5872 " add-cdrom filename\n"
5877 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5878 msgid "This function adds a virtual CD-ROM disk image to the guest."
5882 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5883 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5887 #: ../fish/guestfish-actions.pod:15
5889 "This call checks for the existence of C<filename>. This stops you from "
5890 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5891 "and C<http:> URLs. To specify those, use the general L</config> call "
5896 #: ../fish/guestfish-actions.pod:22
5898 "If you just want to add an ISO file (often you use this as an efficient way "
5899 "to transfer large files into the guest), then you should probably use L</add-"
5900 "drive-ro> instead."
5904 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214
5905 #: ../fish/guestfish-actions.pod:228
5907 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5912 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217
5913 #: ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod:941
5914 #: ../fish/guestfish-actions.pod:976 ../fish/guestfish-actions.pod:1149
5915 #: ../fish/guestfish-actions.pod:1509 ../fish/guestfish-actions.pod:1523
5916 #: ../fish/guestfish-actions.pod:3293 ../fish/guestfish-actions.pod:3604
5917 #: ../fish/guestfish-actions.pod:3652 ../fish/guestfish-actions.pod:4579
5918 #: ../fish/guestfish-actions.pod:4602 ../fish/guestfish-actions.pod:4624
5919 #: ../fish/guestfish-actions.pod:4662 ../fish/guestfish-actions.pod:5311
5920 #: ../fish/guestfish-actions.pod:5417 ../src/guestfs-actions.pod:10
5921 #: ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326
5922 #: ../src/guestfs-actions.pod:1572 ../src/guestfs-actions.pod:1629
5923 #: ../src/guestfs-actions.pod:1912 ../src/guestfs-actions.pod:2411
5924 #: ../src/guestfs-actions.pod:2432 ../src/guestfs-actions.pod:5077
5925 #: ../src/guestfs-actions.pod:5599 ../src/guestfs-actions.pod:5699
5926 #: ../src/guestfs-actions.pod:6999 ../src/guestfs-actions.pod:7043
5927 #: ../src/guestfs-actions.pod:7077 ../src/guestfs-actions.pod:7140
5928 #: ../src/guestfs-actions.pod:8072 ../src/guestfs-actions.pod:8181
5929 #: ../src/guestfs-actions.pod:8364
5931 "Deprecated functions will not be removed from the API, but the fact that "
5932 "they are deprecated indicates that there are problems with correct use of "
5937 #: ../fish/guestfish-actions.pod:35
5942 #: ../fish/guestfish-actions.pod:37
5947 #: ../fish/guestfish-actions.pod:39
5950 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..] [readonlydisk:..]\n"
5955 #: ../fish/guestfish-actions.pod:41
5957 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
5958 "It works by connecting to libvirt, requesting the domain and domain XML from "
5959 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5963 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
5965 "The number of disks added is returned. This operation is atomic: if an "
5966 "error is returned, then no disks are added."
5970 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
5972 "This function does some minimal checks to make sure the libvirt domain is "
5973 "not running (unless C<readonly> is true). In a future version we will try "
5974 "to acquire the libvirt lock on each disk."
5978 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
5980 "Disks must be accessible locally. This often means that adding disks from a "
5981 "remote libvirt connection (see L<http://libvirt.org/remote.html>) will fail "
5982 "unless those disks are accessible via the same device path locally too."
5986 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
5988 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
5989 "libvirt.org/uri.html>). If this is not set then we connect to the default "
5990 "libvirt URI (or one set through an environment variable, see the libvirt "
5991 "documentation for full details)."
5995 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
5997 "The optional C<live> flag controls whether this call will try to connect to "
5998 "a running virtual machine C<guestfsd> process if it sees a suitable "
5999 "E<lt>channelE<gt> element in the libvirt XML definition. The default (if "
6000 "the flag is omitted) is never to try. See L<guestfs(3)/ATTACHING TO RUNNING "
6001 "DAEMONS> for more information."
6005 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
6007 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6008 "passed instead of the domain name. The C<dom> string is treated as a UUID "
6009 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6014 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
6016 "The optional C<readonlydisk> parameter controls what we do for disks which "
6017 "are marked E<lt>readonly/E<gt> in the libvirt XML. Possible values are:"
6021 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
6022 msgid "readonlydisk = \"error\""
6026 #: ../fish/guestfish-actions.pod:84 ../fish/guestfish-actions.pod:95
6027 #: ../fish/guestfish-actions.pod:106 ../src/guestfs-actions.pod:103
6028 #: ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:125
6030 #| msgid "C<readonly>"
6031 msgid "If C<readonly> is false:"
6032 msgstr "C<readonly>"
6035 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
6037 "The whole call is aborted with an error if any disk with the E<lt>readonly/"
6038 "E<gt> flag is found."
6042 #: ../fish/guestfish-actions.pod:89 ../fish/guestfish-actions.pod:100
6043 #: ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:108
6044 #: ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:129
6046 #| msgid "C<readonly>"
6047 msgid "If C<readonly> is true:"
6048 msgstr "C<readonly>"
6051 #: ../fish/guestfish-actions.pod:91 ../fish/guestfish-actions.pod:102
6052 #: ../fish/guestfish-actions.pod:112 ../src/guestfs-actions.pod:110
6053 #: ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:131
6054 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
6058 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
6059 msgid "readonlydisk = \"read\""
6063 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
6065 "Disks with the E<lt>readonly/E<gt> flag are added read-only. Other disks "
6066 "are added read/write."
6070 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
6071 msgid "readonlydisk = \"write\" (default)"
6075 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
6076 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
6080 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
6081 msgid "readonlydisk = \"ignore\""
6085 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
6086 msgid "If C<readonly> is true or false:"
6090 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
6091 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
6095 #: ../fish/guestfish-actions.pod:122
6097 "The other optional parameters are passed directly through to L</add-drive-"
6102 #: ../fish/guestfish-actions.pod:125 ../fish/guestfish-actions.pod:194
6103 #: ../fish/guestfish-actions.pod:624 ../fish/guestfish-actions.pod:835
6104 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:894
6105 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:912
6106 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:2171
6107 #: ../fish/guestfish-actions.pod:3342 ../fish/guestfish-actions.pod:3505
6108 #: ../fish/guestfish-actions.pod:3640
6110 "This command has one or more optional arguments. See L</OPTIONAL ARGUMENTS>."
6114 #: ../fish/guestfish-actions.pod:127
6119 #: ../fish/guestfish-actions.pod:129
6122 " add-drive filename\n"
6125 " add-drive назва_файла\n"
6129 #: ../fish/guestfish-actions.pod:131
6131 "This function is the equivalent of calling L</add-drive-opts> with no "
6132 "optional parameters, so the disk is added writable, with the format being "
6133 "detected automatically."
6137 #: ../fish/guestfish-actions.pod:135
6139 "Automatic detection of the format opens you up to a potential security hole "
6140 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
6141 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
6142 "you should think about replacing calls to this function with calls to L</add-"
6143 "drive-opts>, and specifying the format."
6147 #: ../fish/guestfish-actions.pod:142
6148 msgid "add-drive-opts"
6149 msgstr "add-drive-opts"
6152 #: ../fish/guestfish-actions.pod:144
6157 #: ../fish/guestfish-actions.pod:146
6160 " add-drive-opts filename [readonly:..] [format:..] [iface:..] [name:..]\n"
6165 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
6167 "This function adds a virtual machine disk image C<filename> to libguestfs. "
6168 "The first time you call this function, the disk appears as C</dev/sda>, the "
6169 "second time as C</dev/sdb>, and so on."
6173 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
6175 "You don't necessarily need to be root when using libguestfs. However you "
6176 "obviously do need sufficient permissions to access the filename for whatever "
6177 "operations you want to perform (ie. read access if you just want to read the "
6178 "image or write access if you want to modify the image)."
6182 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
6183 msgid "This call checks that C<filename> exists."
6187 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3304
6188 #: ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5114
6189 msgid "The optional arguments are:"
6193 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
6195 msgstr "C<readonly>"
6198 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
6200 "If true then the image is treated as read-only. Writes are still allowed, "
6201 "but they are stored in a temporary snapshot overlay which is discarded at "
6202 "the end. The disk that you add is not modified."
6206 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
6211 #: ../fish/guestfish-actions.pod:173
6213 "This forces the image format. If you omit this (or use L</add-drive> or L</"
6214 "add-drive-ro>) then the format is automatically detected. Possible formats "
6215 "include C<raw> and C<qcow2>."
6219 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
6221 "Automatic detection of the format opens you up to a potential security hole "
6222 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
6223 "RHBZ#642934. Specifying the format closes this security hole."
6227 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
6232 #: ../fish/guestfish-actions.pod:184
6234 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6235 "add-drive-with-if> call (q.v.)"
6239 #: ../fish/guestfish-actions.pod:187 ../src/guestfs-actions.pod:247
6241 #| msgid "C<app_name>"
6243 msgstr "C<app_name>"
6246 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
6248 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6249 "a hint to the guest inspection process if it is available."
6253 #: ../fish/guestfish-actions.pod:196
6254 msgid "add-drive-ro"
6255 msgstr "add-drive-ro"
6258 #: ../fish/guestfish-actions.pod:198
6263 #: ../fish/guestfish-actions.pod:200
6266 " add-drive-ro filename\n"
6271 #: ../fish/guestfish-actions.pod:202
6273 "This function is the equivalent of calling L</add-drive-opts> with the "
6274 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6275 "is added read-only, with the format being detected automatically."
6279 #: ../fish/guestfish-actions.pod:207
6280 msgid "add-drive-ro-with-if"
6284 #: ../fish/guestfish-actions.pod:209
6287 " add-drive-ro-with-if filename iface\n"
6292 #: ../fish/guestfish-actions.pod:211
6294 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6295 "interface emulation to use at run time."
6299 #: ../fish/guestfish-actions.pod:221
6300 msgid "add-drive-with-if"
6304 #: ../fish/guestfish-actions.pod:223
6307 " add-drive-with-if filename iface\n"
6312 #: ../fish/guestfish-actions.pod:225
6314 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6315 "interface emulation to use at run time."
6319 #: ../fish/guestfish-actions.pod:235
6324 #: ../fish/guestfish-actions.pod:237
6327 " aug-clear augpath\n"
6332 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
6334 "Set the value associated with C<path> to C<NULL>. This is the same as the "
6335 "L<augtool(1)> C<clear> command."
6339 #: ../fish/guestfish-actions.pod:242
6344 #: ../fish/guestfish-actions.pod:244
6352 #: ../fish/guestfish-actions.pod:246
6354 "Close the current Augeas handle and free up any resources used by it. After "
6355 "calling this, you have to call L</aug-init> again before you can use any "
6356 "other Augeas functions."
6360 #: ../fish/guestfish-actions.pod:251
6365 #: ../fish/guestfish-actions.pod:253
6368 " aug-defnode name expr val\n"
6373 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
6375 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6379 #: ../fish/guestfish-actions.pod:258
6381 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6382 "calling L</aug-set> C<expr>, C<value>. C<name> will be the nodeset "
6383 "containing that single node."
6387 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
6389 "On success this returns a pair containing the number of nodes in the "
6390 "nodeset, and a boolean flag if a node was created."
6394 #: ../fish/guestfish-actions.pod:266
6399 #: ../fish/guestfish-actions.pod:268
6402 " aug-defvar name expr\n"
6407 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
6409 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6410 "C<expr>. If C<expr> is NULL, then C<name> is undefined."
6414 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
6416 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6417 "evaluates to something which is not a nodeset."
6421 #: ../fish/guestfish-actions.pod:277
6426 #: ../fish/guestfish-actions.pod:279
6429 " aug-get augpath\n"
6434 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
6436 "Look up the value associated with C<path>. If C<path> matches exactly one "
6437 "node, the C<value> is returned."
6441 #: ../fish/guestfish-actions.pod:284
6446 #: ../fish/guestfish-actions.pod:286
6449 " aug-init root flags\n"
6454 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
6456 "Create a new Augeas handle for editing configuration files. If there was "
6457 "any previous Augeas handle associated with this guestfs session, then it is "
6462 #: ../fish/guestfish-actions.pod:292
6463 msgid "You must call this before using any other L</aug-*> commands."
6467 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
6469 "C<root> is the filesystem root. C<root> must not be NULL, use C</> instead."
6473 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
6475 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6476 "logical I<or> of the following integers:"
6480 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
6481 msgid "C<AUG_SAVE_BACKUP> = 1"
6482 msgstr "C<AUG_SAVE_BACKUP> = 1"
6485 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
6486 msgid "Keep the original file with a C<.augsave> extension."
6490 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
6491 msgid "C<AUG_SAVE_NEWFILE> = 2"
6492 msgstr "C<AUG_SAVE_NEWFILE> = 2"
6495 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
6497 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6498 "original. Overrides C<AUG_SAVE_BACKUP>."
6502 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
6503 msgid "C<AUG_TYPE_CHECK> = 4"
6504 msgstr "C<AUG_TYPE_CHECK> = 4"
6507 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
6508 msgid "Typecheck lenses."
6512 #: ../fish/guestfish-actions.pod:317
6514 "This option is only useful when debugging Augeas lenses. Use of this option "
6515 "may require additional memory for the libguestfs appliance. You may need to "
6516 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6520 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
6521 msgid "C<AUG_NO_STDINC> = 8"
6522 msgstr "C<AUG_NO_STDINC> = 8"
6525 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
6526 msgid "Do not use standard load path for modules."
6530 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
6531 msgid "C<AUG_SAVE_NOOP> = 16"
6532 msgstr "C<AUG_SAVE_NOOP> = 16"
6535 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
6536 msgid "Make save a no-op, just record what would have been changed."
6540 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
6541 msgid "C<AUG_NO_LOAD> = 32"
6542 msgstr "C<AUG_NO_LOAD> = 32"
6545 #: ../fish/guestfish-actions.pod:332
6546 msgid "Do not load the tree in L</aug-init>."
6550 #: ../fish/guestfish-actions.pod:336
6551 msgid "To close the handle, you can call L</aug-close>."
6555 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
6556 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6560 #: ../fish/guestfish-actions.pod:340
6565 #: ../fish/guestfish-actions.pod:342
6568 " aug-insert augpath label true|false\n"
6573 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
6575 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6576 "or after C<path> (depending on the boolean flag C<before>)."
6580 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
6582 "C<path> must match exactly one existing node in the tree, and C<label> must "
6583 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6587 #: ../fish/guestfish-actions.pod:352
6592 #: ../fish/guestfish-actions.pod:354
6600 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
6601 msgid "Load files into the tree."
6602 msgstr "Завантажити файли до ієрархії."
6605 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
6606 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6610 #: ../fish/guestfish-actions.pod:361
6615 #: ../fish/guestfish-actions.pod:363
6623 #: ../fish/guestfish-actions.pod:365
6625 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6626 "resulting nodes into alphabetical order."
6630 #: ../fish/guestfish-actions.pod:368
6635 #: ../fish/guestfish-actions.pod:370
6638 " aug-match augpath\n"
6643 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
6645 "Returns a list of paths which match the path expression C<path>. The "
6646 "returned paths are sufficiently qualified so that they match exactly one "
6647 "node in the current tree."
6651 #: ../fish/guestfish-actions.pod:376
6656 #: ../fish/guestfish-actions.pod:378
6659 " aug-mv src dest\n"
6664 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
6666 "Move the node C<src> to C<dest>. C<src> must match exactly one node. "
6667 "C<dest> is overwritten if it exists."
6671 #: ../fish/guestfish-actions.pod:383
6676 #: ../fish/guestfish-actions.pod:385
6684 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
6685 msgid "Remove C<path> and all of its children."
6689 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
6690 msgid "On success this returns the number of entries which were removed."
6694 #: ../fish/guestfish-actions.pod:391
6699 #: ../fish/guestfish-actions.pod:393
6707 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
6708 msgid "This writes all pending changes to disk."
6712 #: ../fish/guestfish-actions.pod:397
6714 "The flags which were passed to L</aug-init> affect exactly how files are "
6719 #: ../fish/guestfish-actions.pod:400
6724 #: ../fish/guestfish-actions.pod:402
6727 " aug-set augpath val\n"
6732 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
6733 msgid "Set the value associated with C<path> to C<val>."
6737 #: ../fish/guestfish-actions.pod:406
6739 "In the Augeas API, it is possible to clear a node by setting the value to "
6740 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
6741 "this call. Instead you must use the L</aug-clear> call."
6745 #: ../fish/guestfish-actions.pod:411
6750 #: ../fish/guestfish-actions.pod:413
6753 " available 'groups ...'\n"
6758 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
6760 "This command is used to check the availability of some groups of "
6761 "functionality in the appliance, which not all builds of the libguestfs "
6762 "appliance will be able to provide."
6766 #: ../fish/guestfish-actions.pod:419
6768 "The libguestfs groups, and the functions that those groups correspond to, "
6769 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
6770 "runtime by calling L</available-all-groups>."
6774 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
6776 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6777 "\"]> would check for the availability of the Linux inotify functions and "
6778 "Augeas (configuration file editing) functions."
6782 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
6783 msgid "The command returns no error if I<all> requested groups are available."
6787 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
6789 "It fails with an error if one or more of the requested groups is unavailable "
6794 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
6796 "If an unknown group name is included in the list of groups then an error is "
6801 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
6803 msgstr "I<Нотатки:>"
6806 #: ../fish/guestfish-actions.pod:443
6807 msgid "You must call L</launch> before calling this function."
6811 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
6813 "The reason is because we don't know what groups are supported by the "
6814 "appliance/daemon until it is running and can be queried."
6818 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
6820 "If a group of functions is available, this does not necessarily mean that "
6821 "they will work. You still have to check for errors when calling individual "
6822 "API functions even if they are available."
6826 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
6828 "It is usually the job of distro packagers to build complete functionality "
6829 "into the libguestfs appliance. Upstream libguestfs, if built from source "
6830 "with all requirements satisfied, will support everything."
6834 #: ../fish/guestfish-actions.pod:465
6836 "This call was added in version C<1.0.80>. In previous versions of "
6837 "libguestfs all you could do would be to speculatively execute a command to "
6838 "find out if the daemon implemented it. See also L</version>."
6842 #: ../fish/guestfish-actions.pod:472
6843 msgid "available-all-groups"
6847 #: ../fish/guestfish-actions.pod:474
6850 " available-all-groups\n"
6855 #: ../fish/guestfish-actions.pod:476
6857 "This command returns a list of all optional groups that this daemon knows "
6858 "about. Note this returns both supported and unsupported groups. To find "
6859 "out which ones the daemon can actually support you have to call L</"
6860 "available> on each member of the returned list."
6864 #: ../fish/guestfish-actions.pod:482
6865 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6869 #: ../fish/guestfish-actions.pod:484
6874 #: ../fish/guestfish-actions.pod:486
6877 " base64-in (base64file|-) filename\n"
6882 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
6884 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6888 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500
6889 #: ../fish/guestfish-actions.pod:749 ../fish/guestfish-actions.pod:833
6890 #: ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:1025
6891 #: ../fish/guestfish-actions.pod:1044 ../fish/guestfish-actions.pod:1418
6892 #: ../fish/guestfish-actions.pod:4882 ../fish/guestfish-actions.pod:4894
6893 #: ../fish/guestfish-actions.pod:4905 ../fish/guestfish-actions.pod:4916
6894 #: ../fish/guestfish-actions.pod:4968 ../fish/guestfish-actions.pod:4977
6895 #: ../fish/guestfish-actions.pod:5031 ../fish/guestfish-actions.pod:5054
6896 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6900 #: ../fish/guestfish-actions.pod:493
6905 #: ../fish/guestfish-actions.pod:495
6908 " base64-out filename (base64file|-)\n"
6913 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
6915 "This command downloads the contents of C<filename>, writing it out to local "
6916 "file C<base64file> encoded as base64."
6920 #: ../fish/guestfish-actions.pod:502
6921 msgid "blockdev-flushbufs"
6925 #: ../fish/guestfish-actions.pod:504
6928 " blockdev-flushbufs device\n"
6933 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
6935 "This tells the kernel to flush internal buffers associated with C<device>."
6939 #: ../fish/guestfish-actions.pod:509 ../fish/guestfish-actions.pod:520
6940 #: ../fish/guestfish-actions.pod:529 ../fish/guestfish-actions.pod:539
6941 #: ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:564
6942 #: ../fish/guestfish-actions.pod:572 ../fish/guestfish-actions.pod:583
6943 #: ../fish/guestfish-actions.pod:591 ../fish/guestfish-actions.pod:599
6944 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:749
6945 #: ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:780
6946 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:817
6947 #: ../src/guestfs-actions.pod:831 ../src/guestfs-actions.pod:849
6948 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:877
6949 msgid "This uses the L<blockdev(8)> command."
6953 #: ../fish/guestfish-actions.pod:511
6954 msgid "blockdev-getbsz"
6958 #: ../fish/guestfish-actions.pod:513
6961 " blockdev-getbsz device\n"
6966 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
6967 msgid "This returns the block size of a device."
6971 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580
6972 #: ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
6974 "(Note this is different from both I<size in blocks> and I<filesystem block "
6979 #: ../fish/guestfish-actions.pod:522
6980 msgid "blockdev-getro"
6984 #: ../fish/guestfish-actions.pod:524
6987 " blockdev-getro device\n"
6992 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
6994 "Returns a boolean indicating if the block device is read-only (true if read-"
6995 "only, false if not)."
6999 #: ../fish/guestfish-actions.pod:531
7000 msgid "blockdev-getsize64"
7004 #: ../fish/guestfish-actions.pod:533
7007 " blockdev-getsize64 device\n"
7012 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
7013 msgid "This returns the size of the device in bytes."
7017 #: ../fish/guestfish-actions.pod:537
7018 msgid "See also L</blockdev-getsz>."
7019 msgstr "Див. також L</blockdev-getsz>."
7022 #: ../fish/guestfish-actions.pod:541
7023 msgid "blockdev-getss"
7027 #: ../fish/guestfish-actions.pod:543
7030 " blockdev-getss device\n"
7035 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
7037 "This returns the size of sectors on a block device. Usually 512, but can be "
7038 "larger for modern devices."
7042 #: ../fish/guestfish-actions.pod:548
7044 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7048 #: ../fish/guestfish-actions.pod:553
7049 msgid "blockdev-getsz"
7053 #: ../fish/guestfish-actions.pod:555
7056 " blockdev-getsz device\n"
7061 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
7063 "This returns the size of the device in units of 512-byte sectors (even if "
7064 "the sectorsize isn't 512 bytes ... weird)."
7068 #: ../fish/guestfish-actions.pod:560
7070 "See also L</blockdev-getss> for the real sector size of the device, and L</"
7071 "blockdev-getsize64> for the more useful I<size in bytes>."
7075 #: ../fish/guestfish-actions.pod:566
7076 msgid "blockdev-rereadpt"
7080 #: ../fish/guestfish-actions.pod:568
7083 " blockdev-rereadpt device\n"
7088 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
7089 msgid "Reread the partition table on C<device>."
7093 #: ../fish/guestfish-actions.pod:574
7094 msgid "blockdev-setbsz"
7098 #: ../fish/guestfish-actions.pod:576
7101 " blockdev-setbsz device blocksize\n"
7106 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
7107 msgid "This sets the block size of a device."
7111 #: ../fish/guestfish-actions.pod:585
7112 msgid "blockdev-setro"
7116 #: ../fish/guestfish-actions.pod:587
7119 " blockdev-setro device\n"
7124 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
7125 msgid "Sets the block device named C<device> to read-only."
7129 #: ../fish/guestfish-actions.pod:593
7130 msgid "blockdev-setrw"
7134 #: ../fish/guestfish-actions.pod:595
7137 " blockdev-setrw device\n"
7142 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
7143 msgid "Sets the block device named C<device> to read-write."
7147 #: ../fish/guestfish-actions.pod:601
7148 msgid "btrfs-filesystem-resize"
7152 #: ../fish/guestfish-actions.pod:603
7155 " btrfs-filesystem-resize mountpoint [size:..]\n"
7160 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
7161 msgid "This command resizes a btrfs filesystem."
7165 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
7167 "Note that unlike other resize calls, the filesystem has to be mounted and "
7168 "the parameter is the mountpoint not the device (this is a requirement of "
7173 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3615
7174 #: ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:5638
7175 msgid "The optional parameters are:"
7179 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3619
7180 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5642
7185 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
7187 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
7188 "resized to the maximum size."
7192 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
7193 msgid "See also L<btrfs(8)>."
7194 msgstr "Див. також L<btrfs(8)>."
7197 #: ../fish/guestfish-actions.pod:626
7198 msgid "case-sensitive-path"
7202 #: ../fish/guestfish-actions.pod:628
7205 " case-sensitive-path path\n"
7210 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
7212 "This can be used to resolve case insensitive paths on a filesystem which is "
7213 "case sensitive. The use case is to resolve paths which you have read from "
7214 "Windows configuration files or the Windows Registry, to the true path."
7218 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
7220 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7221 "(and probably others), which is that although the underlying filesystem is "
7222 "case-insensitive, the driver exports the filesystem to Linux as case-"
7227 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
7229 "One consequence of this is that special directories such as C<c:\\windows> "
7230 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7231 "precise details of how they were created. In Windows itself this would not "
7236 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
7238 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7243 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
7245 "This function resolves the true case of each element in the path and returns "
7246 "the case-sensitive path."
7250 #: ../fish/guestfish-actions.pod:652
7252 "Thus L</case-sensitive-path> (\"/Windows/System32\") might return C<\"/"
7253 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7254 "the directories were originally created under Windows)."
7258 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
7259 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7263 #: ../fish/guestfish-actions.pod:660
7264 msgid "See also L</realpath>."
7265 msgstr "Див. також L</realpath>."
7268 #: ../fish/guestfish-actions.pod:662
7273 #: ../fish/guestfish-actions.pod:664
7283 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4049
7284 #: ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6299
7285 msgid "Return the contents of the file named C<path>."
7289 #: ../fish/guestfish-actions.pod:668
7291 "Note that this function cannot correctly handle binary files (specifically, "
7292 "files containing C<\\0> character which is treated as end of string). For "
7293 "those you need to use the L</read-file> or L</download> functions which have "
7294 "a more complex interface."
7298 #: ../fish/guestfish-actions.pod:673 ../fish/guestfish-actions.pod:808
7299 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:1103
7300 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1180
7301 #: ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1382
7302 #: ../fish/guestfish-actions.pod:1695 ../fish/guestfish-actions.pod:1705
7303 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1770
7304 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1799
7305 #: ../fish/guestfish-actions.pod:3919 ../fish/guestfish-actions.pod:3934
7306 #: ../fish/guestfish-actions.pod:4010 ../fish/guestfish-actions.pod:4027
7307 #: ../fish/guestfish-actions.pod:4042 ../fish/guestfish-actions.pod:4723
7308 #: ../fish/guestfish-actions.pod:4769 ../fish/guestfish-actions.pod:4854
7309 #: ../fish/guestfish-actions.pod:4869 ../fish/guestfish-actions.pod:5275
7310 #: ../fish/guestfish-actions.pod:5287 ../fish/guestfish-actions.pod:5305
7311 #: ../fish/guestfish-actions.pod:5322 ../fish/guestfish-actions.pod:5332
7312 #: ../fish/guestfish-actions.pod:5389 ../fish/guestfish-actions.pod:5399
7313 #: ../fish/guestfish-actions.pod:5428 ../fish/guestfish-actions.pod:5438
7314 #: ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1180
7315 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1847
7316 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:1969
7317 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2234
7318 #: ../src/guestfs-actions.pod:2716 ../src/guestfs-actions.pod:2735
7319 #: ../src/guestfs-actions.pod:2800 ../src/guestfs-actions.pod:2824
7320 #: ../src/guestfs-actions.pod:2841 ../src/guestfs-actions.pod:2870
7321 #: ../src/guestfs-actions.pod:6081 ../src/guestfs-actions.pod:6107
7322 #: ../src/guestfs-actions.pod:6238 ../src/guestfs-actions.pod:6264
7323 #: ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:7255
7324 #: ../src/guestfs-actions.pod:7310 ../src/guestfs-actions.pod:7456
7325 #: ../src/guestfs-actions.pod:7480 ../src/guestfs-actions.pod:8145
7326 #: ../src/guestfs-actions.pod:8165 ../src/guestfs-actions.pod:8198
7327 #: ../src/guestfs-actions.pod:8217 ../src/guestfs-actions.pod:8236
7328 #: ../src/guestfs-actions.pod:8330 ../src/guestfs-actions.pod:8349
7329 #: ../src/guestfs-actions.pod:8395 ../src/guestfs-actions.pod:8414
7331 "Because of the message protocol, there is a transfer limit of somewhere "
7332 "between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>."
7336 #: ../fish/guestfish-actions.pod:676
7341 #: ../fish/guestfish-actions.pod:678
7344 " checksum csumtype path\n"
7349 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
7351 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7355 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
7357 "The type of checksum to compute is given by the C<csumtype> parameter which "
7358 "must have one of the following values:"
7362 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
7367 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
7369 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7374 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
7379 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
7380 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7384 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
7389 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
7390 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7394 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
7399 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
7400 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7404 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
7409 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
7410 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7414 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
7419 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
7420 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7424 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
7429 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
7430 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7434 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
7435 msgid "The checksum is returned as a printable string."
7439 #: ../fish/guestfish-actions.pod:721
7440 msgid "To get the checksum for a device, use L</checksum-device>."
7444 #: ../fish/guestfish-actions.pod:723
7445 msgid "To get the checksums for many files, use L</checksums-out>."
7449 #: ../fish/guestfish-actions.pod:725
7450 msgid "checksum-device"
7451 msgstr "checksum-device"
7454 #: ../fish/guestfish-actions.pod:727
7457 " checksum-device csumtype device\n"
7462 #: ../fish/guestfish-actions.pod:729
7464 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7465 "device named C<device>. For the types of checksums supported see the L</"
7466 "checksum> command."
7470 #: ../fish/guestfish-actions.pod:733
7471 msgid "checksums-out"
7475 #: ../fish/guestfish-actions.pod:735
7478 " checksums-out csumtype directory (sumsfile|-)\n"
7483 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
7485 "This command computes the checksums of all regular files in C<directory> and "
7486 "then emits a list of those checksums to the local output file C<sumsfile>."
7490 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
7492 "This can be used for verifying the integrity of a virtual machine. However "
7493 "to be properly secure you should pay attention to the output of the checksum "
7494 "command (it uses the ones from GNU coreutils). In particular when the "
7495 "filename is not printable, coreutils uses a special backslash syntax. For "
7496 "more information, see the GNU coreutils info file."
7500 #: ../fish/guestfish-actions.pod:751
7505 #: ../fish/guestfish-actions.pod:753
7508 " chmod mode path\n"
7513 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
7515 "Change the mode (permissions) of C<path> to C<mode>. Only numeric modes are "
7520 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
7522 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7523 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7528 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3268
7529 #: ../fish/guestfish-actions.pod:3407 ../fish/guestfish-actions.pod:3417
7530 #: ../fish/guestfish-actions.pod:3427 ../src/guestfs-actions.pod:1117
7531 #: ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5254
7532 #: ../src/guestfs-actions.pod:5273 ../src/guestfs-actions.pod:5292
7533 msgid "The mode actually set is affected by the umask."
7537 #: ../fish/guestfish-actions.pod:764
7542 #: ../fish/guestfish-actions.pod:766
7545 " chown owner group path\n"
7550 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
7551 msgid "Change the file owner to C<owner> and group to C<group>."
7555 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2703
7556 #: ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4116
7558 "Only numeric uid and gid are supported. If you want to use names, you will "
7559 "need to locate and parse the password file yourself (Augeas support makes "
7560 "this relatively easy)."
7564 #: ../fish/guestfish-actions.pod:774
7569 #: ../fish/guestfish-actions.pod:776
7572 " command 'arguments ...'\n"
7575 " command 'параметри...'\n"
7579 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
7581 "This call runs a command from the guest filesystem. The filesystem must be "
7582 "mounted, and must contain a compatible operating system (ie. something "
7583 "Linux, with the same or compatible processor architecture)."
7587 #: ../fish/guestfish-actions.pod:783
7589 "The single parameter is an argv-style list of arguments. The first element "
7590 "is the name of the program to run. Subsequent elements are parameters. The "
7591 "list must be non-empty (ie. must contain a program name). Note that the "
7592 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7596 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
7597 msgid "The return value is anything printed to I<stdout> by the command."
7601 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
7603 "If the command returns a non-zero exit status, then this function returns an "
7604 "error message. The error message string is the content of I<stderr> from "
7609 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
7611 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7612 "bin>. If you require a program from another location, you should provide "
7613 "the full path in the first parameter."
7617 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
7619 "Shared libraries and data files required by the program must be available on "
7620 "filesystems which are mounted in the correct places. It is the caller's "
7621 "responsibility to ensure all filesystems that are needed are mounted at the "
7626 #: ../fish/guestfish-actions.pod:811
7627 msgid "command-lines"
7631 #: ../fish/guestfish-actions.pod:813
7634 " command-lines 'arguments ...'\n"
7639 #: ../fish/guestfish-actions.pod:815
7641 "This is the same as L</command>, but splits the result into a list of lines."
7645 #: ../fish/guestfish-actions.pod:818
7646 msgid "See also: L</sh-lines>"
7647 msgstr "Див. також L</sh-lines>"
7650 #: ../fish/guestfish-actions.pod:823
7651 msgid "compress-device-out"
7655 #: ../fish/guestfish-actions.pod:825
7658 " compress-device-out ctype device (zdevice|-) [level:..]\n"
7663 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
7665 "This command compresses C<device> and writes it out to the local file "
7670 #: ../fish/guestfish-actions.pod:830
7672 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
7677 #: ../fish/guestfish-actions.pod:837
7678 msgid "compress-out"
7682 #: ../fish/guestfish-actions.pod:839
7685 " compress-out ctype file (zfile|-) [level:..]\n"
7690 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
7692 "This command compresses C<file> and writes it out to the local file C<zfile>."
7696 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
7698 "The compression program used is controlled by the C<ctype> parameter. "
7699 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>. "
7700 "Some compression types may not be supported by particular builds of "
7701 "libguestfs, in which case you will get an error containing the substring "
7702 "\"not supported\"."
7706 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
7708 "The optional C<level> parameter controls compression level. The meaning and "
7709 "default for this parameter depends on the compression program being used."
7713 #: ../fish/guestfish-actions.pod:858
7718 #: ../fish/guestfish-actions.pod:860
7721 " config qemuparam qemuvalue\n"
7726 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
7728 "This can be used to add arbitrary qemu command line parameters of the form "
7729 "I<-param value>. Actually it's not quite arbitrary - we prevent you from "
7730 "setting some parameters which would interfere with parameters that we use."
7734 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
7735 msgid "The first character of C<param> string must be a C<-> (dash)."
7739 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
7740 msgid "C<value> can be NULL."
7744 #: ../fish/guestfish-actions.pod:871
7747 #| " zero-device device\n"
7749 msgid "copy-device-to-device"
7751 " zero-device пристрій\n"
7755 #: ../fish/guestfish-actions.pod:873
7758 " copy-device-to-device src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7763 #: ../fish/guestfish-actions.pod:875
7765 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
7766 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
7767 "(device|file) to a destination (device|file)."
7771 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
7773 "Partial copies can be made since you can specify optionally the source "
7774 "offset, destination offset and size to copy. These values are all specified "
7775 "in bytes. If not given, the offsets both default to zero, and the size "
7776 "defaults to copying as much as possible until we hit the end of the source."
7780 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
7782 "The source and destination may be the same object. However overlapping "
7783 "regions may not be copied correctly."
7787 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
7789 "If the destination is a file, it is created if required. If the destination "
7790 "file is not large enough, it is extended."
7794 #: ../fish/guestfish-actions.pod:896
7795 msgid "copy-device-to-file"
7799 #: ../fish/guestfish-actions.pod:898
7802 " copy-device-to-file src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7807 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909
7808 #: ../fish/guestfish-actions.pod:918
7809 msgid "See L</copy-device-to-device> for a general overview of this call."
7813 #: ../fish/guestfish-actions.pod:905
7815 #| msgid "pwrite-device"
7816 msgid "copy-file-to-device"
7817 msgstr "pwrite-device"
7820 #: ../fish/guestfish-actions.pod:907
7823 " copy-file-to-device src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7828 #: ../fish/guestfish-actions.pod:914
7829 msgid "copy-file-to-file"
7833 #: ../fish/guestfish-actions.pod:916
7836 " copy-file-to-file src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7841 #: ../fish/guestfish-actions.pod:921
7843 "This is B<not> the function you want for copying files. This is for copying "
7844 "blocks within existing files. See L</cp>, L</cp-a> and L</mv> for general "
7845 "file copying and moving functions."
7849 #: ../fish/guestfish-actions.pod:928
7854 #: ../fish/guestfish-actions.pod:930
7857 " copy-size src dest size\n"
7862 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1576
7864 "This command copies exactly C<size> bytes from one source device or file "
7865 "C<src> to another destination device or file C<dest>."
7869 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1579
7871 "Note this will fail if the source is too short or if the destination is not "
7876 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
7878 "I<This function is deprecated.> In new code, use the L</"
7879 "copy_device_to_device> call instead."
7883 #: ../fish/guestfish-actions.pod:945
7888 #: ../fish/guestfish-actions.pod:947
7896 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1598
7898 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7899 "destination filename or destination directory."
7903 #: ../fish/guestfish-actions.pod:952
7908 #: ../fish/guestfish-actions.pod:954
7916 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1612
7918 "This copies a file or directory from C<src> to C<dest> recursively using the "
7923 #: ../fish/guestfish-actions.pod:959
7928 #: ../fish/guestfish-actions.pod:961
7936 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1633
7938 "This command copies from one source device or file C<src> to another "
7939 "destination device or file C<dest>. Normally you would use this to copy to "
7940 "or from a device or partition, for example to duplicate a filesystem."
7944 #: ../fish/guestfish-actions.pod:968
7946 "If the destination is a device, it must be as large or larger than the "
7947 "source file or device, otherwise the copy will fail. This command cannot do "
7948 "partial copies (see L</copy-device-to-device>)."
7952 #: ../fish/guestfish-actions.pod:980
7957 #: ../fish/guestfish-actions.pod:982
7967 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1652
7968 msgid "This command runs the C<df> command to report disk space used."
7972 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
7974 "This command is mostly useful for interactive sessions. It is I<not> "
7975 "intended that you try to parse the output string. Use L</statvfs> from "
7980 #: ../fish/guestfish-actions.pod:990
7985 #: ../fish/guestfish-actions.pod:992
7995 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1668
7997 "This command runs the C<df -h> command to report disk space used in human-"
8002 #: ../fish/guestfish-actions.pod:1001
8007 #: ../fish/guestfish-actions.pod:1003
8017 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1685
8019 "This returns the kernel messages (C<dmesg> output) from the guest kernel. "
8020 "This is sometimes useful for extended debugging of problems."
8024 #: ../fish/guestfish-actions.pod:1009
8026 "Another way to get the same information is to enable verbose messages with "
8027 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8028 "before running the program."
8032 #: ../fish/guestfish-actions.pod:1014
8037 #: ../fish/guestfish-actions.pod:1016
8040 " download remotefilename (filename|-)\n"
8045 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031
8046 #: ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:1731
8048 "Download file C<remotefilename> and save it as C<filename> on the local "
8053 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5027
8054 #: ../src/guestfs-actions.pod:1709 ../src/guestfs-actions.pod:7715
8055 msgid "C<filename> can also be a named pipe."
8059 #: ../fish/guestfish-actions.pod:1023
8060 msgid "See also L</upload>, L</cat>."
8064 #: ../fish/guestfish-actions.pod:1027
8065 msgid "download-offset"
8066 msgstr "download-offset"
8069 #: ../fish/guestfish-actions.pod:1029
8072 " download-offset remotefilename (filename|-) offset size\n"
8077 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1734
8079 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8080 "region must be within the file or device)."
8084 #: ../fish/guestfish-actions.pod:1037
8086 "Note that there is no limit on the amount of data that can be downloaded "
8087 "with this call, unlike with L</pread>, and this call always reads the full "
8088 "amount unless an error occurs."
8092 #: ../fish/guestfish-actions.pod:1042
8093 msgid "See also L</download>, L</pread>."
8097 #: ../fish/guestfish-actions.pod:1046
8102 #: ../fish/guestfish-actions.pod:1048
8105 " drop-caches whattodrop\n"
8110 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1759
8112 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8113 "inode caches. The parameter C<whattodrop> tells the kernel what precisely "
8114 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8118 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1764
8119 msgid "Setting C<whattodrop> to 3 should drop everything."
8123 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1766
8125 "This automatically calls L<sync(2)> before the operation, so that the "
8126 "maximum guest memory is freed."
8130 #: ../fish/guestfish-actions.pod:1060
8135 #: ../fish/guestfish-actions.pod:1062
8145 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1779
8147 "This command runs the C<du -s> command to estimate file space usage for "
8152 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1782
8154 "C<path> can be a file or a directory. If C<path> is a directory then the "
8155 "estimate includes the contents of the directory and all subdirectories "
8160 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1786
8162 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8166 #: ../fish/guestfish-actions.pod:1074
8171 #: ../fish/guestfish-actions.pod:1076
8174 " e2fsck-f device\n"
8179 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1804
8181 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8182 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8187 #: ../fish/guestfish-actions.pod:1082
8189 "This command is only needed because of L</resize2fs> (q.v.). Normally you "
8190 "should use L</fsck>."
8194 #: ../fish/guestfish-actions.pod:1085
8199 #: ../fish/guestfish-actions.pod:1087
8202 " echo-daemon 'words ...'\n"
8207 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1821
8209 "This command concatenates the list of C<words> passed with single spaces "
8210 "between them and returns the resulting string."
8214 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1824
8215 msgid "You can use this command to test the connection through to the daemon."
8219 #: ../fish/guestfish-actions.pod:1094
8220 msgid "See also L</ping-daemon>."
8221 msgstr "Див. також L</ping-daemon>."
8224 #: ../fish/guestfish-actions.pod:1096
8229 #: ../fish/guestfish-actions.pod:1098
8232 " egrep regex path\n"
8237 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1840
8239 "This calls the external C<egrep> program and returns the matching lines."
8243 #: ../fish/guestfish-actions.pod:1106
8248 #: ../fish/guestfish-actions.pod:1108
8251 " egrepi regex path\n"
8256 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1859
8258 "This calls the external C<egrep -i> program and returns the matching lines."
8262 #: ../fish/guestfish-actions.pod:1116
8267 #: ../fish/guestfish-actions.pod:1118
8270 " equal file1 file2\n"
8273 " equal файл1 файл2\n"
8277 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1878
8279 "This compares the two files C<file1> and C<file2> and returns true if their "
8280 "content is exactly equal, or false otherwise."
8284 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1881
8285 msgid "The external L<cmp(1)> program is used for the comparison."
8289 #: ../fish/guestfish-actions.pod:1125
8294 #: ../fish/guestfish-actions.pod:1127
8304 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1893
8306 "This returns C<true> if and only if there is a file, directory (or anything) "
8307 "with the given C<path> name."
8311 #: ../fish/guestfish-actions.pod:1132
8312 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8313 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
8316 #: ../fish/guestfish-actions.pod:1134
8321 #: ../fish/guestfish-actions.pod:1136
8324 " fallocate path len\n"
8327 " fallocate шлях довжина\n"
8331 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157
8332 #: ../src/guestfs-actions.pod:1916 ../src/guestfs-actions.pod:1935
8334 "This command preallocates a file (containing zero bytes) named C<path> of "
8335 "size C<len> bytes. If the file exists already, it is overwritten."
8339 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1920
8341 "Do not confuse this with the guestfish-specific C<alloc> command which "
8342 "allocates a file in the host and attaches it as a device."
8346 #: ../fish/guestfish-actions.pod:1146
8348 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8353 #: ../fish/guestfish-actions.pod:1153
8355 msgstr "fallocate64"
8358 #: ../fish/guestfish-actions.pod:1155
8361 " fallocate64 path len\n"
8364 " fallocate64 шлях довжина\n"
8368 #: ../fish/guestfish-actions.pod:1161
8370 "Note that this call allocates disk blocks for the file. To create a sparse "
8371 "file use L</truncate-size> instead."
8375 #: ../fish/guestfish-actions.pod:1164
8377 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8378 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8379 "maximum size of files created through that call to 1GB."
8383 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1947
8385 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8386 "commands which create a file in the host and attach it as a device."
8390 #: ../fish/guestfish-actions.pod:1173
8395 #: ../fish/guestfish-actions.pod:1175
8398 " fgrep pattern path\n"
8401 " fgrep шаблон шлях\n"
8405 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1962
8407 "This calls the external C<fgrep> program and returns the matching lines."
8411 #: ../fish/guestfish-actions.pod:1183
8416 #: ../fish/guestfish-actions.pod:1185
8419 " fgrepi pattern path\n"
8422 " fgrepi шаблон шлях\n"
8426 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1981
8428 "This calls the external C<fgrep -i> program and returns the matching lines."
8432 #: ../fish/guestfish-actions.pod:1193
8437 #: ../fish/guestfish-actions.pod:1195
8447 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1999
8449 "This call uses the standard L<file(1)> command to determine the type or "
8450 "contents of the file."
8454 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2002
8456 "This call will also transparently look inside various types of compressed "
8461 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2005
8463 "The exact command which runs is C<file -zb path>. Note in particular that "
8464 "the filename is not prepended to the output (the I<-b> option)."
8468 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2009
8470 "The output depends on the output of the underlying L<file(1)> command and it "
8471 "can change in future in ways beyond our control. In other words, the output "
8472 "is not guaranteed by the ABI."
8476 #: ../fish/guestfish-actions.pod:1211
8478 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8479 "(etc), L</is-zero>."
8483 #: ../fish/guestfish-actions.pod:1214
8484 msgid "file-architecture"
8485 msgstr "file-architecture"
8488 #: ../fish/guestfish-actions.pod:1216
8491 " file-architecture filename\n"
8494 " file-architecture назва_файла\n"
8498 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2027
8500 "This detects the architecture of the binary C<filename>, and returns it if "
8505 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2030
8506 msgid "Currently defined architectures are:"
8510 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2034
8515 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2036
8517 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8518 "irrespective of the precise processor requirements of the binary."
8522 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2039
8527 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2041
8528 msgid "64 bit x86-64."
8532 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2043
8537 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2045
8538 msgid "32 bit SPARC."
8542 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2047
8547 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2049
8548 msgid "64 bit SPARC V9 and above."
8552 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2051
8557 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2053
8558 msgid "Intel Itanium."
8559 msgstr "Intel Itanium."
8562 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2055
8567 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2057
8568 msgid "32 bit Power PC."
8572 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2059
8577 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2061
8578 msgid "64 bit Power PC."
8582 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2065
8583 msgid "Libguestfs may return other architecture strings in future."
8587 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2067
8588 msgid "The function works on at least the following types of files:"
8592 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2073
8593 msgid "many types of Un*x and Linux binary"
8597 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2077
8598 msgid "many types of Un*x and Linux shared library"
8602 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2081
8603 msgid "Windows Win32 and Win64 binaries"
8607 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2085
8608 msgid "Windows Win32 and Win64 DLLs"
8612 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2087
8613 msgid "Win32 binaries and DLLs return C<i386>."
8617 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2089
8618 msgid "Win64 binaries and DLLs return C<x86_64>."
8622 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2093
8623 msgid "Linux kernel modules"
8627 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2097
8628 msgid "Linux new-style initrd images"
8632 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2101
8633 msgid "some non-x86 Linux vmlinuz kernels"
8637 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2105
8638 msgid "What it can't do currently:"
8642 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2111
8643 msgid "static libraries (libfoo.a)"
8647 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2115
8648 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8652 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2119
8653 msgid "x86 Linux vmlinuz kernels"
8657 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2121
8659 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8660 "compressed code, and are horribly hard to unpack. If you want to find the "
8661 "architecture of a kernel, use the architecture of the associated initrd or "
8662 "kernel module(s) instead."
8666 #: ../fish/guestfish-actions.pod:1319
8671 #: ../fish/guestfish-actions.pod:1321
8681 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2139
8682 msgid "This command returns the size of C<file> in bytes."
8686 #: ../fish/guestfish-actions.pod:1325
8688 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8689 "file> etc. To get the size of block devices, use L</blockdev-getsize64>."
8693 #: ../fish/guestfish-actions.pod:1329
8698 #: ../fish/guestfish-actions.pod:1331
8701 " fill c len path\n"
8706 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2157
8708 "This command creates a new file called C<path>. The initial content of the "
8709 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8714 #: ../fish/guestfish-actions.pod:1337
8716 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8717 "L</truncate-size>. To create a file with a pattern of repeating bytes use "
8722 #: ../fish/guestfish-actions.pod:1342
8723 msgid "fill-pattern"
8724 msgstr "fill-pattern"
8727 #: ../fish/guestfish-actions.pod:1344
8730 " fill-pattern pattern len path\n"
8735 #: ../fish/guestfish-actions.pod:1346
8737 "This function is like L</fill> except that it creates a new file of length "
8738 "C<len> containing the repeating pattern of bytes in C<pattern>. The pattern "
8739 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8744 #: ../fish/guestfish-actions.pod:1351
8749 #: ../fish/guestfish-actions.pod:1353
8759 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2203
8761 "This command lists out all files and directories, recursively, starting at "
8762 "C<directory>. It is essentially equivalent to running the shell command "
8763 "C<find directory -print> but some post-processing happens on the output, "
8768 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2208
8770 "This returns a list of strings I<without any prefix>. Thus if the directory "
8775 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2211
8785 #: ../fish/guestfish-actions.pod:1367
8786 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8790 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2218
8801 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2223
8802 msgid "If C<directory> is not a directory, then this command returns an error."
8806 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2226
8807 msgid "The returned list is sorted."
8811 #: ../fish/guestfish-actions.pod:1380
8812 msgid "See also L</find0>."
8813 msgstr "Див. також L</find0>."
8816 #: ../fish/guestfish-actions.pod:1385
8821 #: ../fish/guestfish-actions.pod:1387
8824 " find0 directory (files|-)\n"
8827 " find0 каталог (файли|-)\n"
8831 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2246
8833 "This command lists out all files and directories, recursively, starting at "
8834 "C<directory>, placing the resulting list in the external file called "
8839 #: ../fish/guestfish-actions.pod:1393
8841 "This command works the same way as L</find> with the following exceptions:"
8845 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2257
8846 msgid "The resulting list is written to an external file."
8850 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2261
8852 "Items (filenames) in the result are separated by C<\\0> characters. See "
8853 "L<find(1)> option I<-print0>."
8857 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2266
8858 msgid "This command is not limited in the number of names that it can return."
8862 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2271
8863 msgid "The result list is not sorted."
8867 #: ../fish/guestfish-actions.pod:1420
8868 msgid "findfs-label"
8869 msgstr "findfs-label"
8872 #: ../fish/guestfish-actions.pod:1422
8875 " findfs-label label\n"
8878 " findfs-label мітка\n"
8882 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2285
8884 "This command searches the filesystems and returns the one which has the "
8885 "given label. An error is returned if no such filesystem can be found."
8889 #: ../fish/guestfish-actions.pod:1428
8890 msgid "To find the label of a filesystem, use L</vfs-label>."
8891 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
8894 #: ../fish/guestfish-actions.pod:1430
8896 msgstr "findfs-uuid"
8899 #: ../fish/guestfish-actions.pod:1432
8902 " findfs-uuid uuid\n"
8905 " findfs-uuid uuid\n"
8909 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2302
8911 "This command searches the filesystems and returns the one which has the "
8912 "given UUID. An error is returned if no such filesystem can be found."
8916 #: ../fish/guestfish-actions.pod:1438
8917 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8918 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
8921 #: ../fish/guestfish-actions.pod:1440
8926 #: ../fish/guestfish-actions.pod:1442
8929 " fsck fstype device\n"
8932 " fsck тип_файлової_системи пристрій\n"
8936 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2320
8938 "This runs the filesystem checker (fsck) on C<device> which should have "
8939 "filesystem type C<fstype>."
8943 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2323
8945 "The returned integer is the status. See L<fsck(8)> for the list of status "
8946 "codes from C<fsck>."
8950 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2332
8951 msgid "Multiple status codes can be summed together."
8955 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2336
8957 "A non-zero return code can mean \"success\", for example if errors have been "
8958 "corrected on the filesystem."
8962 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2341
8963 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8967 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2346
8969 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8973 #: ../fish/guestfish-actions.pod:1472
8978 #: ../fish/guestfish-actions.pod:1474
8988 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2357
8990 "Return the additional kernel options which are added to the guest kernel "
8995 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2360
8996 msgid "If C<NULL> then no options are added."
9000 #: ../fish/guestfish-actions.pod:1481
9001 msgid "get-attach-method"
9002 msgstr "get-attach-method"
9005 #: ../fish/guestfish-actions.pod:1483
9008 " get-attach-method\n"
9011 " get-attach-method\n"
9015 #: ../fish/guestfish-actions.pod:1485
9016 msgid "Return the current attach method. See L</set-attach-method>."
9020 #: ../fish/guestfish-actions.pod:1487
9021 msgid "get-autosync"
9022 msgstr "get-autosync"
9025 #: ../fish/guestfish-actions.pod:1489
9035 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2385
9036 msgid "Get the autosync flag."
9040 #: ../fish/guestfish-actions.pod:1493
9045 #: ../fish/guestfish-actions.pod:1495
9055 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2396
9056 msgid "Return the direct appliance mode flag."
9060 #: ../fish/guestfish-actions.pod:1499
9062 msgstr "get-e2label"
9065 #: ../fish/guestfish-actions.pod:1501
9068 " get-e2label device\n"
9071 " get-e2label пристрій\n"
9075 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2415
9077 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9081 #: ../fish/guestfish-actions.pod:1506
9083 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9088 #: ../fish/guestfish-actions.pod:1513
9093 #: ../fish/guestfish-actions.pod:1515
9096 " get-e2uuid device\n"
9099 " get-e2uuid пристрій\n"
9103 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2436
9105 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9109 #: ../fish/guestfish-actions.pod:1520
9111 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9116 #: ../fish/guestfish-actions.pod:1527
9118 msgstr "get-memsize"
9121 #: ../fish/guestfish-actions.pod:1529
9131 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2449
9133 "This gets the memory size in megabytes allocated to the qemu subprocess."
9137 #: ../fish/guestfish-actions.pod:1534
9139 "If L</set-memsize> was not called on this handle, and if "
9140 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9141 "value for memsize."
9145 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595
9146 #: ../fish/guestfish-actions.pod:4375 ../fish/guestfish-actions.pod:4477
9147 #: ../src/guestfs-actions.pod:2456 ../src/guestfs-actions.pod:2548
9148 #: ../src/guestfs-actions.pod:6760 ../src/guestfs-actions.pod:6886
9150 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9154 #: ../fish/guestfish-actions.pod:1541
9156 msgstr "get-network"
9159 #: ../fish/guestfish-actions.pod:1543
9169 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2468
9170 msgid "This returns the enable network flag."
9174 #: ../fish/guestfish-actions.pod:1547
9179 #: ../fish/guestfish-actions.pod:1549
9189 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2479
9190 msgid "Return the current search path."
9194 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2481
9196 "This is always non-NULL. If it wasn't set already, then this will return "
9201 #: ../fish/guestfish-actions.pod:1556
9206 #: ../fish/guestfish-actions.pod:1558
9214 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2494
9215 msgid "This returns the process group flag."
9219 #: ../fish/guestfish-actions.pod:1562
9224 #: ../fish/guestfish-actions.pod:1564
9229 #: ../fish/guestfish-actions.pod:1566
9239 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2505
9241 "Return the process ID of the qemu subprocess. If there is no qemu "
9242 "subprocess, then this will return an error."
9246 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2508
9247 msgid "This is an internal call used for debugging and testing."
9251 #: ../fish/guestfish-actions.pod:1573
9256 #: ../fish/guestfish-actions.pod:1575
9266 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2519
9267 msgid "Return the current qemu binary."
9271 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2521
9273 "This is always non-NULL. If it wasn't set already, then this will return "
9274 "the default qemu binary name."
9278 #: ../fish/guestfish-actions.pod:1582
9279 msgid "get-recovery-proc"
9280 msgstr "get-recovery-proc"
9283 #: ../fish/guestfish-actions.pod:1584
9286 " get-recovery-proc\n"
9289 " get-recovery-proc\n"
9293 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2534
9294 msgid "Return the recovery process enabled flag."
9298 #: ../fish/guestfish-actions.pod:1588
9300 msgstr "get-selinux"
9303 #: ../fish/guestfish-actions.pod:1590
9313 #: ../fish/guestfish-actions.pod:1592
9315 "This returns the current setting of the selinux flag which is passed to the "
9316 "appliance at boot time. See L</set-selinux>."
9320 #: ../fish/guestfish-actions.pod:1598
9325 #: ../fish/guestfish-actions.pod:1600
9333 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2560
9334 msgid "This returns the number of virtual CPUs assigned to the appliance."
9338 #: ../fish/guestfish-actions.pod:1604
9343 #: ../fish/guestfish-actions.pod:1606
9353 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2571
9355 "This returns the current state as an opaque integer. This is only useful "
9356 "for printing debug and internal error messages."
9360 #: ../fish/guestfish-actions.pod:1611 ../fish/guestfish-actions.pod:2570
9361 #: ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:2626
9362 #: ../fish/guestfish-actions.pod:2642 ../src/guestfs-actions.pod:2574
9363 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3922
9364 #: ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:4010
9365 msgid "For more information on states, see L<guestfs(3)>."
9369 #: ../fish/guestfish-actions.pod:1613
9374 #: ../fish/guestfish-actions.pod:1615
9384 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2585
9385 msgid "Return the command trace flag."
9389 #: ../fish/guestfish-actions.pod:1619
9394 #: ../fish/guestfish-actions.pod:1621
9404 #: ../fish/guestfish-actions.pod:1623
9406 "Return the current umask. By default the umask is C<022> unless it has been "
9407 "set by calling L</umask>."
9411 #: ../fish/guestfish-actions.pod:1626
9413 msgstr "get-verbose"
9416 #: ../fish/guestfish-actions.pod:1628
9426 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2608
9427 msgid "This returns the verbose messages flag."
9431 #: ../fish/guestfish-actions.pod:1632
9436 #: ../fish/guestfish-actions.pod:1634
9446 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2619
9447 msgid "This gets the SELinux security context of the daemon."
9451 #: ../fish/guestfish-actions.pod:1638
9452 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9456 #: ../fish/guestfish-actions.pod:1641
9461 #: ../fish/guestfish-actions.pod:1643
9464 " getxattr path name\n"
9467 " getxattr шлях назва\n"
9471 #: ../fish/guestfish-actions.pod:1645
9473 "Get a single extended attribute from file C<path> named C<name>. This call "
9474 "follows symlinks. If you want to lookup an extended attribute for the "
9475 "symlink itself, use L</lgetxattr>."
9479 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2715
9481 "Normally it is better to get all extended attributes from a file in one go "
9482 "by calling L</getxattrs>. However some Linux filesystem implementations are "
9483 "buggy and do not provide a way to list out attributes. For these "
9484 "filesystems (notably ntfs-3g) you have to know the names of the extended "
9485 "attributes you want in advance and call this function."
9489 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2722
9490 #: ../src/guestfs-actions.pod:2648 ../src/guestfs-actions.pod:4143
9492 "Extended attribute values are blobs of binary data. If there is no extended "
9493 "attribute named C<name>, this returns an error."
9497 #: ../fish/guestfish-actions.pod:1659
9498 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9499 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9502 #: ../fish/guestfish-actions.pod:1661
9507 #: ../fish/guestfish-actions.pod:1663
9517 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2665
9519 "This call lists the extended attributes of the file or directory C<path>."
9523 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2668
9525 "At the system call level, this is a combination of the L<listxattr(2)> and "
9526 "L<getxattr(2)> calls."
9530 #: ../fish/guestfish-actions.pod:1671
9531 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9532 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
9535 #: ../fish/guestfish-actions.pod:1673
9537 msgstr "glob-expand"
9540 #: ../fish/guestfish-actions.pod:1675
9543 " glob-expand pattern\n"
9546 " glob-expand шаблон\n"
9550 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2685
9552 "This command searches for all the pathnames matching C<pattern> according to "
9553 "the wildcard expansion rules used by the shell."
9557 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2689
9559 "If no paths match, then this returns an empty list (note: not an error)."
9563 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2692
9565 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9566 "GLOB_BRACE>. See that manual page for more details."
9570 #: ../fish/guestfish-actions.pod:1688
9575 #: ../fish/guestfish-actions.pod:1690
9578 " grep regex path\n"
9581 " grepi формальний_вираз шлях\n"
9585 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2709
9586 msgid "This calls the external C<grep> program and returns the matching lines."
9590 #: ../fish/guestfish-actions.pod:1698
9595 #: ../fish/guestfish-actions.pod:1700
9598 " grepi regex path\n"
9601 " grepi формальний_вираз шлях\n"
9605 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2728
9607 "This calls the external C<grep -i> program and returns the matching lines."
9611 #: ../fish/guestfish-actions.pod:1708
9612 msgid "grub-install"
9613 msgstr "grub-install"
9616 #: ../fish/guestfish-actions.pod:1710
9619 " grub-install root device\n"
9622 " grub-install кореневий пристрій\n"
9626 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2747
9628 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9629 "with the root directory being C<root>."
9633 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2756
9635 "There is currently no way in the API to install grub2, which is used by most "
9636 "modern Linux guests. It is possible to run the grub2 command from the "
9637 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9641 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2763
9643 "This uses C<grub-install> from the host. Unfortunately grub is not always "
9644 "compatible with itself, so this only works in rather narrow circumstances. "
9645 "Careful testing with each guest version is advisable."
9649 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2770
9651 "If grub-install reports the error \"No suitable drive was found in the "
9652 "generated device map.\" it may be that you need to create a C</boot/grub/"
9653 "device.map> file first that contains the mapping between grub device names "
9654 "and Linux device names. It is usually sufficient to create a file "
9659 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2777
9667 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2779
9668 msgid "replacing C</dev/vda> with the name of the installation device."
9672 #: ../fish/guestfish-actions.pod:1748
9677 #: ../fish/guestfish-actions.pod:1750
9687 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2793
9689 "This command returns up to the first 10 lines of a file as a list of strings."
9693 #: ../fish/guestfish-actions.pod:1758
9698 #: ../fish/guestfish-actions.pod:1760
9701 " head-n nrlines path\n"
9706 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2812
9708 "If the parameter C<nrlines> is a positive number, this returns the first "
9709 "C<nrlines> lines of the file C<path>."
9713 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2815
9715 "If the parameter C<nrlines> is a negative number, this returns lines from "
9716 "the file C<path>, excluding the last C<nrlines> lines."
9720 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4867
9721 #: ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:7474
9722 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9726 #: ../fish/guestfish-actions.pod:1773
9731 #: ../fish/guestfish-actions.pod:1775
9741 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2835
9743 "This runs C<hexdump -C> on the given C<path>. The result is the human-"
9744 "readable, canonical hex dump of the file."
9748 #: ../fish/guestfish-actions.pod:1783
9753 #: ../fish/guestfish-actions.pod:1785
9756 " initrd-cat initrdpath filename\n"
9759 " initrd-cat шлях_initrd назва_файла\n"
9763 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2854
9765 "This command unpacks the file C<filename> from the initrd file called "
9766 "C<initrdpath>. The filename must be given I<without> the initial C</> "
9771 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2858
9773 "For example, in guestfish you could use the following command to examine the "
9774 "boot script (usually called C</init>) contained in a Linux initrd or "
9779 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2862
9782 " initrd-cat /boot/initrd-<version>.img init\n"
9787 #: ../fish/guestfish-actions.pod:1797
9788 msgid "See also L</initrd-list>."
9789 msgstr "Див. також L</initrd-list>."
9792 #: ../fish/guestfish-actions.pod:1802
9794 msgstr "initrd-list"
9797 #: ../fish/guestfish-actions.pod:1804
9800 " initrd-list path\n"
9803 " initrd-list шлях\n"
9807 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2881
9808 msgid "This command lists out files contained in an initrd."
9812 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2883
9814 "The files are listed without any initial C</> character. The files are "
9815 "listed in the order they appear (not necessarily alphabetical). Directory "
9816 "names are listed as separate items."
9820 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2887
9822 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9823 "initrd. We I<only> support the newer initramfs format (compressed cpio "
9828 #: ../fish/guestfish-actions.pod:1816
9829 msgid "inotify-add-watch"
9830 msgstr "inotify-add-watch"
9833 #: ../fish/guestfish-actions.pod:1818
9836 " inotify-add-watch path mask\n"
9839 " inotify-add-watch шлях маска\n"
9843 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2904
9844 msgid "Watch C<path> for the events listed in C<mask>."
9848 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2906
9850 "Note that if C<path> is a directory then events within that directory are "
9851 "watched, but this does I<not> happen recursively (in subdirectories)."
9855 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2910
9857 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9858 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9862 #: ../fish/guestfish-actions.pod:1830
9863 msgid "inotify-close"
9864 msgstr "inotify-close"
9867 #: ../fish/guestfish-actions.pod:1832
9877 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2923
9879 "This closes the inotify handle which was previously opened by inotify_init. "
9880 "It removes all watches, throws away any pending events, and deallocates all "
9885 #: ../fish/guestfish-actions.pod:1838
9886 msgid "inotify-files"
9887 msgstr "inotify-files"
9890 #: ../fish/guestfish-actions.pod:1840
9900 #: ../fish/guestfish-actions.pod:1842
9902 "This function is a helpful wrapper around L</inotify-read> which just "
9903 "returns a list of pathnames of objects that were touched. The returned "
9904 "pathnames are sorted and deduplicated."
9908 #: ../fish/guestfish-actions.pod:1846
9909 msgid "inotify-init"
9910 msgstr "inotify-init"
9913 #: ../fish/guestfish-actions.pod:1848
9916 " inotify-init maxevents\n"
9921 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2952
9923 "This command creates a new inotify handle. The inotify subsystem can be "
9924 "used to notify events which happen to objects in the guest filesystem."
9928 #: ../fish/guestfish-actions.pod:1854
9930 "C<maxevents> is the maximum number of events which will be queued up between "
9931 "calls to L</inotify-read> or L</inotify-files>. If this is passed as C<0>, "
9932 "then the kernel (or previously set) default is used. For Linux 2.6.29 the "
9933 "default was 16384 events. Beyond this limit, the kernel throws away events, "
9934 "but records the fact that it threw them away by setting a flag "
9935 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9939 #: ../fish/guestfish-actions.pod:1864
9941 "Before any events are generated, you have to add some watches to the "
9942 "internal watch list. See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9943 "L</inotify-watch-all>."
9947 #: ../fish/guestfish-actions.pod:1870
9949 "Queued up events should be read periodically by calling L</inotify-read> (or "
9950 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>). "
9951 "If you don't read the events out often enough then you risk the internal "
9952 "queue overflowing."
9956 #: ../fish/guestfish-actions.pod:1877
9958 "The handle should be closed after use by calling L</inotify-close>. This "
9959 "also removes any watches automatically."
9963 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2983
9965 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9966 "by the Linux kernel, which is roughly what we expose via libguestfs. Note "
9967 "that there is one global inotify handle per libguestfs instance."
9971 #: ../fish/guestfish-actions.pod:1886
9972 msgid "inotify-read"
9973 msgstr "inotify-read"
9976 #: ../fish/guestfish-actions.pod:1888
9986 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:2997
9988 "Return the complete queue of events that have happened since the previous "
9993 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3000
9994 msgid "If no events have happened, this returns an empty list."
9998 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3002
10000 "I<Note>: In order to make sure that all events have been read, you must call "
10001 "this function repeatedly until it returns an empty list. The reason is that "
10002 "the call will read events up to the maximum appliance-to-host message size "
10003 "and leave remaining events in the queue."
10007 #: ../fish/guestfish-actions.pod:1901
10008 msgid "inotify-rm-watch"
10009 msgstr "inotify-rm-watch"
10012 #: ../fish/guestfish-actions.pod:1903
10015 " inotify-rm-watch wd\n"
10020 #: ../fish/guestfish-actions.pod:1905
10021 msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
10025 #: ../fish/guestfish-actions.pod:1908
10026 msgid "inspect-get-arch"
10027 msgstr "inspect-get-arch"
10030 #: ../fish/guestfish-actions.pod:1910
10033 " inspect-get-arch root\n"
10036 " inspect-get-arch корінь\n"
10040 #: ../fish/guestfish-actions.pod:1912
10042 "This returns the architecture of the inspected operating system. The "
10043 "possible return values are listed under L</file-architecture>."
10047 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3037
10049 "If the architecture could not be determined, then the string C<unknown> is "
10054 #: ../fish/guestfish-actions.pod:1919 ../fish/guestfish-actions.pod:2014
10055 #: ../fish/guestfish-actions.pod:2093 ../fish/guestfish-actions.pod:2105
10056 #: ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2251
10057 #: ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2286
10058 #: ../fish/guestfish-actions.pod:2326 ../fish/guestfish-actions.pod:2362
10059 #: ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2388
10060 #: ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2408
10061 #: ../fish/guestfish-actions.pod:2420 ../fish/guestfish-actions.pod:2516
10062 #: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3040
10063 #: ../src/guestfs-actions.pod:3142 ../src/guestfs-actions.pod:3246
10064 #: ../src/guestfs-actions.pod:3265 ../src/guestfs-actions.pod:3396
10065 #: ../src/guestfs-actions.pod:3480 ../src/guestfs-actions.pod:3508
10066 #: ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3582
10067 #: ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3646
10068 #: ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3683
10069 #: ../src/guestfs-actions.pod:3699 ../src/guestfs-actions.pod:3717
10070 #: ../src/guestfs-actions.pod:3819 ../src/guestfs-actions.pod:3860
10071 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10075 #: ../fish/guestfish-actions.pod:1921
10076 msgid "inspect-get-distro"
10077 msgstr "inspect-get-distro"
10080 #: ../fish/guestfish-actions.pod:1923
10083 " inspect-get-distro root\n"
10086 " inspect-get-distro корінь\n"
10090 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3053
10092 "This returns the distro (distribution) of the inspected operating system."
10096 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3056
10097 msgid "Currently defined distros are:"
10101 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3060
10102 msgid "\"archlinux\""
10103 msgstr "\"archlinux\""
10106 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3062
10107 msgid "Arch Linux."
10108 msgstr "Arch Linux."
10111 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3064
10116 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3066
10121 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3068
10123 msgstr "\"debian\""
10126 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3070
10131 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3072
10133 msgstr "\"fedora\""
10136 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3074
10141 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3076
10143 msgstr "\"gentoo\""
10146 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3078
10151 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3080
10152 msgid "\"linuxmint\""
10153 msgstr "\"linuxmint\""
10156 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3082
10157 msgid "Linux Mint."
10158 msgstr "Linux Mint."
10161 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3084
10166 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3086
10171 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3088
10172 msgid "\"mandriva\""
10173 msgstr "\"mandriva\""
10176 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3090
10181 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3092
10186 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3094
10191 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3096
10192 msgid "\"opensuse\""
10196 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3098
10201 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3100
10203 msgstr "\"pardus\""
10206 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3102
10211 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3104
10212 msgid "\"redhat-based\""
10213 msgstr "\"redhat-based\""
10216 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3106
10217 msgid "Some Red Hat-derived distro."
10218 msgstr "Дистрибутив, що походить від Red Hat."
10221 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3108
10226 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3110
10227 msgid "Red Hat Enterprise Linux."
10228 msgstr "Red Hat Enterprise Linux."
10231 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3112
10232 msgid "\"scientificlinux\""
10233 msgstr "\"scientificlinux\""
10236 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3114
10237 msgid "Scientific Linux."
10238 msgstr "Scientific Linux."
10241 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3116
10242 msgid "\"slackware\""
10243 msgstr "\"slackware\""
10246 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3118
10248 msgstr "Slackware."
10251 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3120
10252 msgid "\"ttylinux\""
10256 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3122
10261 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3124
10263 msgstr "\"ubuntu\""
10266 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3126
10271 #: ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2084
10272 #: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3128
10273 #: ../src/guestfs-actions.pod:3237 ../src/guestfs-actions.pod:3617
10274 msgid "\"unknown\""
10275 msgstr "\"unknown\""
10278 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3130
10279 msgid "The distro could not be determined."
10280 msgstr "Дистрибутив, тип якого не вдалося визначити."
10283 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341
10284 #: ../src/guestfs-actions.pod:3132 ../src/guestfs-actions.pod:3605
10285 msgid "\"windows\""
10286 msgstr "\"windows\""
10289 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3134
10291 "Windows does not have distributions. This string is returned if the OS type "
10296 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2090
10297 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3139
10298 #: ../src/guestfs-actions.pod:3243 ../src/guestfs-actions.pod:3623
10300 "Future versions of libguestfs may return other strings here. The caller "
10301 "should be prepared to handle any string."
10305 #: ../fish/guestfish-actions.pod:2016
10306 msgid "inspect-get-drive-mappings"
10310 #: ../fish/guestfish-actions.pod:2018
10313 " inspect-get-drive-mappings root\n"
10318 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3155
10320 "This call is useful for Windows which uses a primitive system of assigning "
10321 "drive letters (like \"C:\") to partitions. This inspection API examines the "
10322 "Windows Registry to find out how disks/partitions are mapped to drive "
10323 "letters, and returns a hash table as in the example below:"
10327 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3161
10330 " C => /dev/vda2\n"
10331 " E => /dev/vdb1\n"
10332 " F => /dev/vdc1\n"
10337 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3165
10339 "Note that keys are drive letters. For Windows, the key is case insensitive "
10340 "and just contains the drive letter, without the customary colon separator "
10345 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3169
10347 "In future we may support other operating systems that also used drive "
10348 "letters, but the keys for those might not be case insensitive and might be "
10349 "longer than 1 character. For example in OS-9, hard drives were named C<h0>, "
10354 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3174
10356 "For Windows guests, currently only hard drive mappings are returned. "
10357 "Removable disks (eg. DVD-ROMs) are ignored."
10361 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3177
10363 "For guests that do not use drive mappings, or if the drive mappings could "
10364 "not be determined, this returns an empty hash table."
10368 #: ../fish/guestfish-actions.pod:2045
10370 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10371 "get-mountpoints>, L</inspect-get-filesystems>."
10375 #: ../fish/guestfish-actions.pod:2049
10376 msgid "inspect-get-filesystems"
10377 msgstr "inspect-get-filesystems"
10380 #: ../fish/guestfish-actions.pod:2051
10383 " inspect-get-filesystems root\n"
10386 " inspect-get-filesystems корінь\n"
10390 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3198
10392 "This returns a list of all the filesystems that we think are associated with "
10393 "this operating system. This includes the root filesystem, other ordinary "
10394 "filesystems, and non-mounted devices like swap partitions."
10398 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3203
10400 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10401 "to be shared between operating systems."
10405 #: ../fish/guestfish-actions.pod:2061
10407 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10408 "get-mountpoints>."
10412 #: ../fish/guestfish-actions.pod:2064
10413 msgid "inspect-get-format"
10414 msgstr "inspect-get-format"
10417 #: ../fish/guestfish-actions.pod:2066
10420 " inspect-get-format root\n"
10423 " inspect-get-format корінь\n"
10427 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3221
10429 "This returns the format of the inspected operating system. You can use it "
10430 "to detect install images, live CDs and similar."
10434 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3224
10435 msgid "Currently defined formats are:"
10439 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3228
10440 msgid "\"installed\""
10441 msgstr "\"installed\""
10444 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3230
10445 msgid "This is an installed operating system."
10446 msgstr "Це встановлена операційна система."
10449 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3232
10450 msgid "\"installer\""
10454 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3234
10456 "The disk image being inspected is not an installed operating system, but a "
10457 "I<bootable> install disk, live CD, or similar."
10461 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3239
10462 msgid "The format of this disk image is not known."
10466 #: ../fish/guestfish-actions.pod:2095
10467 msgid "inspect-get-hostname"
10468 msgstr "inspect-get-hostname"
10471 #: ../fish/guestfish-actions.pod:2097
10474 " inspect-get-hostname root\n"
10477 " inspect-get-hostname корінь\n"
10481 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3259
10483 "This function returns the hostname of the operating system as found by "
10484 "inspection of the guest's configuration files."
10488 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3262
10490 "If the hostname could not be determined, then the string C<unknown> is "
10495 #: ../fish/guestfish-actions.pod:2107
10496 msgid "inspect-get-icon"
10500 #: ../fish/guestfish-actions.pod:2109
10503 " inspect-get-icon root [favicon:..] [highquality:..]\n"
10508 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3288
10510 "This function returns an icon corresponding to the inspected operating "
10511 "system. The icon is returned as a buffer containing a PNG image (re-encoded "
10512 "to PNG if necessary)."
10516 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3292
10518 "If it was not possible to get an icon this function returns a zero-length "
10519 "(non-NULL) buffer. I<Callers must check for this case>."
10523 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3295
10525 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10526 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10527 "this file will be returned. You can disable favicons by passing the "
10528 "optional C<favicon> boolean as false (default is true)."
10532 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3301
10534 "If finding the favicon fails, then we look in other places in the guest for "
10539 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3304
10541 "If the optional C<highquality> boolean is true then only high quality icons "
10542 "are returned, which means only icons of high resolution with an alpha "
10543 "channel. The default (false) is to return any icon we can, even if it is of "
10544 "substandard quality."
10548 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3315
10550 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10551 "before you call this, since it needs to read information from the guest "
10552 "filesystem during the call."
10556 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3321
10558 "B<Security:> The icon data comes from the untrusted guest, and should be "
10559 "treated with caution. PNG files have been known to contain exploits. "
10560 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10561 "trying to process or display the icon."
10565 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3329
10567 "The PNG image returned can be any size. It might not be square. Libguestfs "
10568 "tries to return the largest, highest quality icon available. The "
10569 "application must scale the icon to the required size."
10573 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3336
10575 "Extracting icons from Windows guests requires the external C<wrestool> "
10576 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10577 "C<pnmtopng>, C<pamcut>) from the C<netpbm> package. These must be "
10578 "installed separately."
10582 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3343
10584 "Operating system icons are usually trademarks. Seek legal advice before "
10585 "using trademarks in applications."
10589 #: ../fish/guestfish-actions.pod:2173
10590 msgid "inspect-get-major-version"
10591 msgstr "inspect-get-major-version"
10594 #: ../fish/guestfish-actions.pod:2175
10597 " inspect-get-major-version root\n"
10600 " inspect-get-major-version корінь\n"
10604 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3384
10606 "This returns the major version number of the inspected operating system."
10610 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3387
10612 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10613 "popular public names used by the operating system. Notably the operating "
10614 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10615 "1). You can find out the real versions corresponding to releases of Windows "
10616 "by consulting Wikipedia or MSDN."
10620 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198
10621 #: ../src/guestfs-actions.pod:3394 ../src/guestfs-actions.pod:3411
10622 msgid "If the version could not be determined, then C<0> is returned."
10626 #: ../fish/guestfish-actions.pod:2191
10627 msgid "inspect-get-minor-version"
10628 msgstr "inspect-get-minor-version"
10631 #: ../fish/guestfish-actions.pod:2193
10634 " inspect-get-minor-version root\n"
10637 " inspect-get-minor-version корінь\n"
10641 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3408
10643 "This returns the minor version number of the inspected operating system."
10647 #: ../fish/guestfish-actions.pod:2200
10649 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10650 "get-major-version>."
10654 #: ../fish/guestfish-actions.pod:2203
10655 msgid "inspect-get-mountpoints"
10656 msgstr "inspect-get-mountpoints"
10659 #: ../fish/guestfish-actions.pod:2205
10662 " inspect-get-mountpoints root\n"
10665 " inspect-get-mountpoints корінь\n"
10669 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3426
10671 "This returns a hash of where we think the filesystems associated with this "
10672 "operating system should be mounted. Callers should note that this is at "
10673 "best an educated guess made by reading configuration files such as C</etc/"
10674 "fstab>. I<In particular note> that this may return filesystems which are "
10675 "non-existent or not mountable and callers should be prepared to handle or "
10676 "ignore failures if they try to mount them."
10680 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3435
10682 "Each element in the returned hashtable has a key which is the path of the "
10683 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10684 "mounted there (eg. C</dev/sda1>)."
10688 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3440
10690 "Non-mounted devices such as swap devices are I<not> returned in this list."
10694 #: ../fish/guestfish-actions.pod:2224
10696 "For operating systems like Windows which still use drive letters, this call "
10697 "will only return an entry for the first drive \"mounted on\" C</>. For "
10698 "information about the mapping of drive letters to partitions, see L</inspect-"
10699 "get-drive-mappings>."
10703 #: ../fish/guestfish-actions.pod:2230
10705 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10706 "get-filesystems>."
10710 #: ../fish/guestfish-actions.pod:2233
10711 msgid "inspect-get-package-format"
10712 msgstr "inspect-get-package-format"
10715 #: ../fish/guestfish-actions.pod:2235
10718 " inspect-get-package-format root\n"
10721 " inspect-get-package-format корінь\n"
10725 #: ../fish/guestfish-actions.pod:2237
10727 "This function and L</inspect-get-package-management> return the package "
10728 "format and package management tool used by the inspected operating system. "
10729 "For example for Fedora these functions would return C<rpm> (package format) "
10730 "and C<yum> (package management)."
10734 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3472
10736 "This returns the string C<unknown> if we could not determine the package "
10737 "format I<or> if the operating system does not have a real packaging system "
10742 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3476
10744 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10745 "C<pkgsrc>. Future versions of libguestfs may return other strings."
10749 #: ../fish/guestfish-actions.pod:2253
10750 msgid "inspect-get-package-management"
10751 msgstr "inspect-get-package-management"
10754 #: ../fish/guestfish-actions.pod:2255
10757 " inspect-get-package-management root\n"
10760 " inspect-get-package-management корінь\n"
10764 #: ../fish/guestfish-actions.pod:2257
10766 "L</inspect-get-package-format> and this function return the package format "
10767 "and package management tool used by the inspected operating system. For "
10768 "example for Fedora these functions would return C<rpm> (package format) and "
10769 "C<yum> (package management)."
10773 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3499
10775 "This returns the string C<unknown> if we could not determine the package "
10776 "management tool I<or> if the operating system does not have a real packaging "
10777 "system (eg. Windows)."
10781 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3503
10783 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10784 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>. Future "
10785 "versions of libguestfs may return other strings."
10789 #: ../fish/guestfish-actions.pod:2274
10790 msgid "inspect-get-product-name"
10791 msgstr "inspect-get-product-name"
10794 #: ../fish/guestfish-actions.pod:2276
10797 " inspect-get-product-name root\n"
10800 " inspect-get-product-name корінь\n"
10804 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3521
10806 "This returns the product name of the inspected operating system. The "
10807 "product name is generally some freeform string which can be displayed to the "
10808 "user, but should not be parsed by programs."
10812 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3526
10814 "If the product name could not be determined, then the string C<unknown> is "
10819 #: ../fish/guestfish-actions.pod:2288
10820 msgid "inspect-get-product-variant"
10824 #: ../fish/guestfish-actions.pod:2290
10827 " inspect-get-product-variant root\n"
10832 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3542
10833 msgid "This returns the product variant of the inspected operating system."
10837 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3545
10839 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10840 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10841 "is usually a string such as C<Client> or C<Server> (other values are "
10842 "possible). This can be used to distinguish consumer and enterprise versions "
10843 "of Windows that have the same version number (for example, Windows 7 and "
10844 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10845 "the latter is C<Server>)."
10849 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3554
10851 "For enterprise Linux guests, in future we intend this to return the product "
10852 "variant such as C<Desktop>, C<Server> and so on. But this is not "
10853 "implemented at present."
10857 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3558
10859 "If the product variant could not be determined, then the string C<unknown> "
10864 #: ../fish/guestfish-actions.pod:2311
10866 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10867 "get-product-name>, L</inspect-get-major-version>."
10871 #: ../fish/guestfish-actions.pod:2315
10872 msgid "inspect-get-roots"
10873 msgstr "inspect-get-roots"
10876 #: ../fish/guestfish-actions.pod:2317
10879 " inspect-get-roots\n"
10882 " inspect-get-roots\n"
10886 #: ../fish/guestfish-actions.pod:2319
10888 "This function is a convenient way to get the list of root devices, as "
10889 "returned from a previous call to L</inspect-os>, but without redoing the "
10890 "whole inspection process."
10894 #: ../fish/guestfish-actions.pod:2323
10896 "This returns an empty list if either no root devices were found or the "
10897 "caller has not called L</inspect-os>."
10901 #: ../fish/guestfish-actions.pod:2328
10902 msgid "inspect-get-type"
10903 msgstr "inspect-get-type"
10906 #: ../fish/guestfish-actions.pod:2330
10909 " inspect-get-type root\n"
10912 " inspect-get-type корінь\n"
10916 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3596
10918 "This returns the type of the inspected operating system. Currently defined "
10923 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3601
10928 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3603
10929 msgid "Any Linux-based operating system."
10933 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3607
10934 msgid "Any Microsoft Windows operating system."
10938 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3609
10939 msgid "\"freebsd\""
10940 msgstr "\"freebsd\""
10943 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3611
10948 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3613
10953 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3615
10958 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3619
10959 msgid "The operating system type could not be determined."
10963 #: ../fish/guestfish-actions.pod:2364
10964 msgid "inspect-get-windows-current-control-set"
10968 #: ../fish/guestfish-actions.pod:2366
10971 " inspect-get-windows-current-control-set root\n"
10976 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3639
10978 "This returns the Windows CurrentControlSet of the inspected guest. The "
10979 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10983 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3642
10985 "This call assumes that the guest is Windows and that the Registry could be "
10986 "examined by inspection. If this is not the case then an error is returned."
10990 #: ../fish/guestfish-actions.pod:2377
10991 msgid "inspect-get-windows-systemroot"
10992 msgstr "inspect-get-windows-systemroot"
10995 #: ../fish/guestfish-actions.pod:2379
10998 " inspect-get-windows-systemroot root\n"
11001 " inspect-get-windows-systemroot корінь\n"
11005 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3659
11007 "This returns the Windows systemroot of the inspected guest. The systemroot "
11008 "is a directory path such as C</WINDOWS>."
11012 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3662
11014 "This call assumes that the guest is Windows and that the systemroot could be "
11015 "determined by inspection. If this is not the case then an error is returned."
11019 #: ../fish/guestfish-actions.pod:2390
11020 msgid "inspect-is-live"
11021 msgstr "inspect-is-live"
11024 #: ../fish/guestfish-actions.pod:2392
11027 " inspect-is-live root\n"
11030 " inspect-is-live корінь\n"
11034 #: ../fish/guestfish-actions.pod:2394
11036 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11037 "then this returns true if a live image was detected on the disk."
11041 #: ../fish/guestfish-actions.pod:2400
11042 msgid "inspect-is-multipart"
11043 msgstr "inspect-is-multipart"
11046 #: ../fish/guestfish-actions.pod:2402
11049 " inspect-is-multipart root\n"
11052 " inspect-is-multipart корінь\n"
11056 #: ../fish/guestfish-actions.pod:2404
11058 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11059 "then this returns true if the disk is part of a set."
11063 #: ../fish/guestfish-actions.pod:2410
11064 msgid "inspect-is-netinst"
11065 msgstr "inspect-is-netinst"
11068 #: ../fish/guestfish-actions.pod:2412
11071 " inspect-is-netinst root\n"
11074 " inspect-is-netinst корінь\n"
11078 #: ../fish/guestfish-actions.pod:2414
11080 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11081 "then this returns true if the disk is a network installer, ie. not a self-"
11082 "contained install CD but one which is likely to require network access to "
11083 "complete the install."
11087 #: ../fish/guestfish-actions.pod:2422
11088 msgid "inspect-list-applications"
11089 msgstr "inspect-list-applications"
11092 #: ../fish/guestfish-actions.pod:2424
11095 " inspect-list-applications root\n"
11098 " inspect-list-applications кореневий_каталог\n"
11102 #: ../fish/guestfish-actions.pod:2426 ../src/guestfs-actions.pod:3729
11103 msgid "Return the list of applications installed in the operating system."
11107 #: ../fish/guestfish-actions.pod:2428
11109 "I<Note:> This call works differently from other parts of the inspection "
11110 "API. You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
11111 "then mount up the disks, before calling this. Listing applications is a "
11112 "significantly more difficult operation which requires access to the full "
11113 "filesystem. Also note that unlike the other L</inspect-get-*> calls which "
11114 "are just returning data cached in the libguestfs handle, this call actually "
11115 "reads parts of the mounted filesystems during the call."
11119 #: ../fish/guestfish-actions.pod:2438 ../src/guestfs-actions.pod:3741
11121 "This returns an empty list if the inspection code was not able to determine "
11122 "the list of applications."
11126 #: ../fish/guestfish-actions.pod:2441 ../src/guestfs-actions.pod:3744
11127 msgid "The application structure contains the following fields:"
11131 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3748
11132 msgid "C<app_name>"
11133 msgstr "C<app_name>"
11136 #: ../fish/guestfish-actions.pod:2447 ../src/guestfs-actions.pod:3750
11138 "The name of the application. For Red Hat-derived and Debian-derived Linux "
11139 "guests, this is the package name."
11143 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3753
11144 msgid "C<app_display_name>"
11145 msgstr "C<app_display_name>"
11148 #: ../fish/guestfish-actions.pod:2452 ../src/guestfs-actions.pod:3755
11150 "The display name of the application, sometimes localized to the install "
11151 "language of the guest operating system."
11155 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3758
11157 "If unavailable this is returned as an empty string C<\"\">. Callers needing "
11158 "to display something can use C<app_name> instead."
11162 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3761
11163 msgid "C<app_epoch>"
11164 msgstr "C<app_epoch>"
11167 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3763
11169 "For package managers which use epochs, this contains the epoch of the "
11170 "package (an integer). If unavailable, this is returned as C<0>."
11174 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3766
11175 msgid "C<app_version>"
11176 msgstr "C<app_version>"
11179 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3768
11181 "The version string of the application or package. If unavailable this is "
11182 "returned as an empty string C<\"\">."
11186 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3771
11187 msgid "C<app_release>"
11188 msgstr "C<app_release>"
11191 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3773
11193 "The release string of the application or package, for package managers that "
11194 "use this. If unavailable this is returned as an empty string C<\"\">."
11198 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3777
11199 msgid "C<app_install_path>"
11200 msgstr "C<app_install_path>"
11203 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3779
11205 "The installation path of the application (on operating systems such as "
11206 "Windows which use installation paths). This path is in the format used by "
11207 "the guest operating system, it is not a libguestfs path."
11211 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3784
11212 msgid "If unavailable this is returned as an empty string C<\"\">."
11216 #: ../fish/guestfish-actions.pod:2483 ../src/guestfs-actions.pod:3786
11217 msgid "C<app_trans_path>"
11218 msgstr "C<app_trans_path>"
11221 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3788
11223 "The install path translated into a libguestfs path. If unavailable this is "
11224 "returned as an empty string C<\"\">."
11228 #: ../fish/guestfish-actions.pod:2488 ../src/guestfs-actions.pod:3791
11229 msgid "C<app_publisher>"
11230 msgstr "C<app_publisher>"
11233 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3793
11235 "The name of the publisher of the application, for package managers that use "
11236 "this. If unavailable this is returned as an empty string C<\"\">."
11240 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3797
11242 msgstr "C<app_url>"
11245 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3799
11247 "The URL (eg. upstream URL) of the application. If unavailable this is "
11248 "returned as an empty string C<\"\">."
11252 #: ../fish/guestfish-actions.pod:2499 ../src/guestfs-actions.pod:3802
11253 msgid "C<app_source_package>"
11254 msgstr "C<app_source_package>"
11257 #: ../fish/guestfish-actions.pod:2501 ../src/guestfs-actions.pod:3804
11259 "For packaging systems which support this, the name of the source package. "
11260 "If unavailable this is returned as an empty string C<\"\">."
11264 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3807
11265 msgid "C<app_summary>"
11266 msgstr "C<app_summary>"
11269 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:3809
11271 "A short (usually one line) description of the application or package. If "
11272 "unavailable this is returned as an empty string C<\"\">."
11276 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3812
11277 msgid "C<app_description>"
11278 msgstr "C<app_description>"
11281 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3814
11283 "A longer description of the application or package. If unavailable this is "
11284 "returned as an empty string C<\"\">."
11288 #: ../fish/guestfish-actions.pod:2518
11290 msgstr "inspect-os"
11293 #: ../fish/guestfish-actions.pod:2520
11303 #: ../fish/guestfish-actions.pod:2522 ../src/guestfs-actions.pod:3832
11305 "This function uses other libguestfs functions and certain heuristics to "
11306 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11307 "for operating systems."
11311 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3836
11312 msgid "The list returned is empty if no operating systems were found."
11316 #: ../fish/guestfish-actions.pod:2528 ../src/guestfs-actions.pod:3838
11318 "If one operating system was found, then this returns a list with a single "
11319 "element, which is the name of the root filesystem of this operating system. "
11320 "It is also possible for this function to return a list containing more than "
11321 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11322 "element being the root filesystem of one of the operating systems."
11326 #: ../fish/guestfish-actions.pod:2535
11328 "You can pass the root string(s) returned to other L</inspect-get-*> "
11329 "functions in order to query further information about each operating system, "
11330 "such as the name and version."
11334 #: ../fish/guestfish-actions.pod:2540
11336 "This function uses other libguestfs features such as L</mount-ro> and L</"
11337 "umount-all> in order to mount and unmount filesystems and look at the "
11338 "contents. This should be called with no disks currently mounted. The "
11339 "function may also use Augeas, so any existing Augeas handle will be closed."
11343 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3856
11345 "This function cannot decrypt encrypted disks. The caller must do that first "
11346 "(supplying the necessary keys) if the disk is encrypted."
11350 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2750
11351 #: ../fish/guestfish-actions.pod:2809
11352 msgid "See also L</list-filesystems>."
11353 msgstr "Див. також L</list-filesystems>."
11356 #: ../fish/guestfish-actions.pod:2554
11357 msgid "is-blockdev"
11358 msgstr "is-blockdev"
11361 #: ../fish/guestfish-actions.pod:2556
11364 " is-blockdev path\n"
11367 " is-blockdev шлях\n"
11371 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3876
11373 "This returns C<true> if and only if there is a block device with the given "
11378 #: ../fish/guestfish-actions.pod:2561 ../fish/guestfish-actions.pod:2579
11379 #: ../fish/guestfish-actions.pod:2598 ../fish/guestfish-actions.pod:2607
11380 #: ../fish/guestfish-actions.pod:2617 ../fish/guestfish-actions.pod:2651
11381 #: ../fish/guestfish-actions.pod:2660
11382 msgid "See also L</stat>."
11383 msgstr "Див. також L</stat>."
11386 #: ../fish/guestfish-actions.pod:2563
11391 #: ../fish/guestfish-actions.pod:2565
11401 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3890
11403 "This returns true iff this handle is busy processing a command (in the "
11408 #: ../fish/guestfish-actions.pod:2572
11410 msgstr "is-chardev"
11413 #: ../fish/guestfish-actions.pod:2574
11416 " is-chardev path\n"
11419 " is-chardev шлях\n"
11423 #: ../fish/guestfish-actions.pod:2576 ../src/guestfs-actions.pod:3905
11425 "This returns C<true> if and only if there is a character device with the "
11426 "given C<path> name."
11430 #: ../fish/guestfish-actions.pod:2581
11435 #: ../fish/guestfish-actions.pod:2583
11445 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3919
11447 "This returns true iff this handle is being configured (in the C<CONFIG> "
11452 #: ../fish/guestfish-actions.pod:2590
11457 #: ../fish/guestfish-actions.pod:2592
11467 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3934
11469 "This returns C<true> if and only if there is a directory with the given "
11470 "C<path> name. Note that it returns false for other objects like files."
11474 #: ../fish/guestfish-actions.pod:2600
11479 #: ../fish/guestfish-actions.pod:2602
11489 #: ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:3950
11491 "This returns C<true> if and only if there is a FIFO (named pipe) with the "
11492 "given C<path> name."
11496 #: ../fish/guestfish-actions.pod:2609
11501 #: ../fish/guestfish-actions.pod:2611
11511 #: ../fish/guestfish-actions.pod:2613 ../src/guestfs-actions.pod:3965
11513 "This returns C<true> if and only if there is a regular file with the given "
11514 "C<path> name. Note that it returns false for other objects like directories."
11518 #: ../fish/guestfish-actions.pod:2619
11519 msgid "is-launching"
11520 msgstr "is-launching"
11523 #: ../fish/guestfish-actions.pod:2621
11533 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3980
11535 "This returns true iff this handle is launching the subprocess (in the "
11536 "C<LAUNCHING> state)."
11540 #: ../fish/guestfish-actions.pod:2628
11545 #: ../fish/guestfish-actions.pod:2630
11551 " is-lv пристрій\n"
11555 #: ../fish/guestfish-actions.pod:2632 ../src/guestfs-actions.pod:3995
11557 "This command tests whether C<device> is a logical volume, and returns true "
11558 "iff this is the case."
11562 #: ../fish/guestfish-actions.pod:2635
11567 #: ../fish/guestfish-actions.pod:2637
11577 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4007
11579 "This returns true iff this handle is ready to accept commands (in the "
11584 #: ../fish/guestfish-actions.pod:2644
11589 #: ../fish/guestfish-actions.pod:2646
11592 " is-socket path\n"
11595 " is-socket шлях\n"
11599 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4022
11601 "This returns C<true> if and only if there is a Unix domain socket with the "
11602 "given C<path> name."
11606 #: ../fish/guestfish-actions.pod:2653
11608 msgstr "is-symlink"
11611 #: ../fish/guestfish-actions.pod:2655
11614 " is-symlink path\n"
11617 " is-symlink шлях\n"
11621 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:4037
11623 "This returns C<true> if and only if there is a symbolic link with the given "
11628 #: ../fish/guestfish-actions.pod:2662
11633 #: ../fish/guestfish-actions.pod:2664
11641 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:4052
11643 "This returns true iff the file exists and the file is empty or it contains "
11648 #: ../fish/guestfish-actions.pod:2669
11649 msgid "is-zero-device"
11653 #: ../fish/guestfish-actions.pod:2671
11656 " is-zero-device device\n"
11661 #: ../fish/guestfish-actions.pod:2673 ../src/guestfs-actions.pod:4065
11662 msgid "This returns true iff the device exists and contains all zero bytes."
11666 #: ../fish/guestfish-actions.pod:2675 ../src/guestfs-actions.pod:4067
11667 msgid "Note that for large devices this can take a long time to run."
11671 #: ../fish/guestfish-actions.pod:2677
11672 msgid "kill-subprocess"
11673 msgstr "kill-subprocess"
11676 #: ../fish/guestfish-actions.pod:2679
11679 " kill-subprocess\n"
11682 " kill-subprocess\n"
11686 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:4078
11687 msgid "This kills the qemu subprocess. You should never need to call this."
11691 #: ../fish/guestfish-actions.pod:2683
11696 #: ../fish/guestfish-actions.pod:2685
11701 #: ../fish/guestfish-actions.pod:2687
11711 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4089
11713 "Internally libguestfs is implemented by running a virtual machine using "
11718 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4092
11720 "You should call this after configuring the handle (eg. adding drives) but "
11721 "before performing any actions."
11725 #: ../fish/guestfish-actions.pod:2695
11730 #: ../fish/guestfish-actions.pod:2697
11733 " lchown owner group path\n"
11736 " lchown власник група шлях\n"
11740 #: ../fish/guestfish-actions.pod:2699
11742 "Change the file owner to C<owner> and group to C<group>. This is like L</"
11743 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11748 #: ../fish/guestfish-actions.pod:2707
11753 #: ../fish/guestfish-actions.pod:2709
11756 " lgetxattr path name\n"
11759 " lgetxattr шлях назва\n"
11763 #: ../fish/guestfish-actions.pod:2711 ../src/guestfs-actions.pod:4132
11765 "Get a single extended attribute from file C<path> named C<name>. If C<path> "
11766 "is a symlink, then this call returns an extended attribute from the symlink."
11770 #: ../fish/guestfish-actions.pod:2725
11771 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11772 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11775 #: ../fish/guestfish-actions.pod:2727
11777 msgstr "lgetxattrs"
11780 #: ../fish/guestfish-actions.pod:2729
11783 " lgetxattrs path\n"
11786 " lgetxattrs шлях\n"
11790 #: ../fish/guestfish-actions.pod:2731
11792 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11793 "it returns the extended attributes of the link itself."
11797 #: ../fish/guestfish-actions.pod:2735
11802 #: ../fish/guestfish-actions.pod:2737
11810 #: ../fish/guestfish-actions.pod:2739 ../src/guestfs-actions.pod:4175
11812 "List all 9p filesystems attached to the guest. A list of mount tags is "
11817 #: ../fish/guestfish-actions.pod:2742
11818 msgid "list-devices"
11819 msgstr "list-devices"
11822 #: ../fish/guestfish-actions.pod:2744
11832 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4189
11833 msgid "List all the block devices."
11837 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4191
11838 msgid "The full block device names are returned, eg. C</dev/sda>."
11842 #: ../fish/guestfish-actions.pod:2752
11843 msgid "list-dm-devices"
11847 #: ../fish/guestfish-actions.pod:2754
11850 " list-dm-devices\n"
11855 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4206
11856 msgid "List all device mapper devices."
11860 #: ../fish/guestfish-actions.pod:2758
11862 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11863 "previous call to L</luks-open>."
11867 #: ../fish/guestfish-actions.pod:2761
11869 "Device mapper devices which correspond to logical volumes are I<not> "
11870 "returned in this list. Call L</lvs> if you want to list logical volumes."
11874 #: ../fish/guestfish-actions.pod:2765
11875 msgid "list-filesystems"
11876 msgstr "list-filesystems"
11879 #: ../fish/guestfish-actions.pod:2767
11882 " list-filesystems\n"
11885 " list-filesystems\n"
11889 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4226
11891 "This inspection command looks for filesystems on partitions, block devices "
11892 "and logical volumes, returning a list of devices containing filesystems and "
11897 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4230
11899 "The return value is a hash, where the keys are the devices containing "
11900 "filesystems, and the values are the filesystem types. For example:"
11904 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4234
11907 " \"/dev/sda1\" => \"ntfs\"\n"
11908 " \"/dev/sda2\" => \"ext2\"\n"
11909 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11910 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11915 #: ../fish/guestfish-actions.pod:2782 ../src/guestfs-actions.pod:4239
11917 "The value can have the special value \"unknown\", meaning the content of the "
11918 "device is undetermined or empty. \"swap\" means a Linux swap partition."
11922 #: ../fish/guestfish-actions.pod:2786
11924 "This command runs other libguestfs commands, which might include L</mount> "
11925 "and L</umount>, and therefore you should use this soon after launch and only "
11926 "when nothing is mounted."
11930 #: ../fish/guestfish-actions.pod:2790
11932 "Not all of the filesystems returned will be mountable. In particular, swap "
11933 "partitions are returned in the list. Also this command does not check that "
11934 "each filesystem found is valid and mountable, and some filesystems might be "
11935 "mountable but require special options. Filesystems may not all belong to a "
11936 "single logical operating system (use L</inspect-os> to look for OSes)."
11940 #: ../fish/guestfish-actions.pod:2798
11941 msgid "list-partitions"
11942 msgstr "list-partitions"
11945 #: ../fish/guestfish-actions.pod:2800
11948 " list-partitions\n"
11951 " list-partitions\n"
11955 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4268
11956 msgid "List all the partitions detected on all block devices."
11960 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4270
11961 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11965 #: ../fish/guestfish-actions.pod:2806
11967 "This does not return logical volumes. For that you will need to call L</"
11972 #: ../fish/guestfish-actions.pod:2811
11977 #: ../fish/guestfish-actions.pod:2813
11987 #: ../fish/guestfish-actions.pod:2815 ../src/guestfs-actions.pod:4289
11989 "List the files in C<directory> (relative to the root directory, there is no "
11990 "cwd) in the format of 'ls -la'."
11994 #: ../fish/guestfish-actions.pod:2818 ../src/guestfs-actions.pod:4292
11996 "This command is mostly useful for interactive sessions. It is I<not> "
11997 "intended that you try to parse the output string."
12001 #: ../fish/guestfish-actions.pod:2821
12006 #: ../fish/guestfish-actions.pod:2823
12009 " ln target linkname\n"
12012 " ln призначення назва_посилання\n"
12016 #: ../fish/guestfish-actions.pod:2825 ../src/guestfs-actions.pod:4307
12017 msgid "This command creates a hard link using the C<ln> command."
12021 #: ../fish/guestfish-actions.pod:2827
12026 #: ../fish/guestfish-actions.pod:2829
12029 " ln-f target linkname\n"
12032 " ln-f призначення назва_посилання\n"
12036 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4320
12038 "This command creates a hard link using the C<ln -f> command. The I<-f> "
12039 "option removes the link (C<linkname>) if it exists already."
12043 #: ../fish/guestfish-actions.pod:2834
12048 #: ../fish/guestfish-actions.pod:2836
12051 " ln-s target linkname\n"
12054 " ln-s призначення назва_посилання\n"
12058 #: ../fish/guestfish-actions.pod:2838 ../src/guestfs-actions.pod:4334
12059 msgid "This command creates a symbolic link using the C<ln -s> command."
12063 #: ../fish/guestfish-actions.pod:2840
12068 #: ../fish/guestfish-actions.pod:2842
12071 " ln-sf target linkname\n"
12074 " ln-sf призначення назва_посилання\n"
12078 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4347
12080 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12081 "option removes the link (C<linkname>) if it exists already."
12085 #: ../fish/guestfish-actions.pod:2847
12086 msgid "lremovexattr"
12087 msgstr "lremovexattr"
12090 #: ../fish/guestfish-actions.pod:2849
12093 " lremovexattr xattr path\n"
12098 #: ../fish/guestfish-actions.pod:2851
12100 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
12101 "it removes an extended attribute of the link itself."
12105 #: ../fish/guestfish-actions.pod:2855
12110 #: ../fish/guestfish-actions.pod:2857
12120 #: ../fish/guestfish-actions.pod:2859 ../src/guestfs-actions.pod:4375
12122 "List the files in C<directory> (relative to the root directory, there is no "
12123 "cwd). The '.' and '..' entries are not returned, but hidden files are shown."
12127 #: ../fish/guestfish-actions.pod:2863
12129 "This command is mostly useful for interactive sessions. Programs should "
12130 "probably use L</readdir> instead."
12134 #: ../fish/guestfish-actions.pod:2866
12139 #: ../fish/guestfish-actions.pod:2868
12142 " lsetxattr xattr val vallen path\n"
12147 #: ../fish/guestfish-actions.pod:2870
12149 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
12150 "sets an extended attribute of the link itself."
12154 #: ../fish/guestfish-actions.pod:2874
12159 #: ../fish/guestfish-actions.pod:2876
12169 #: ../fish/guestfish-actions.pod:2878 ../fish/guestfish-actions.pod:4702
12170 #: ../src/guestfs-actions.pod:4411 ../src/guestfs-actions.pod:7214
12171 msgid "Returns file information for the given C<path>."
12175 #: ../fish/guestfish-actions.pod:2880
12177 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
12178 "the link is stat-ed, not the file it refers to."
12182 #: ../fish/guestfish-actions.pod:2884 ../src/guestfs-actions.pod:4417
12183 msgid "This is the same as the C<lstat(2)> system call."
12187 #: ../fish/guestfish-actions.pod:2886
12192 #: ../fish/guestfish-actions.pod:2888
12195 " lstatlist path 'names ...'\n"
12200 #: ../fish/guestfish-actions.pod:2890
12202 "This call allows you to perform the L</lstat> operation on multiple files, "
12203 "where all files are in the directory C<path>. C<names> is the list of files "
12204 "from this directory."
12208 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4436
12210 "On return you get a list of stat structs, with a one-to-one correspondence "
12211 "to the C<names> list. If any name did not exist or could not be lstat'd, "
12212 "then the C<ino> field of that structure is set to C<-1>."
12216 #: ../fish/guestfish-actions.pod:2899
12218 "This call is intended for programs that want to efficiently list a directory "
12219 "contents without making many round-trips. See also L</lxattrlist> for a "
12220 "similarly efficient call for getting extended attributes. Very long "
12221 "directory listings might cause the protocol message size to be exceeded, "
12222 "causing this call to fail. The caller must split up such requests into "
12223 "smaller groups of names."
12227 #: ../fish/guestfish-actions.pod:2907
12228 msgid "luks-add-key"
12229 msgstr "luks-add-key"
12232 #: ../fish/guestfish-actions.pod:2909
12235 " luks-add-key device keyslot\n"
12240 #: ../fish/guestfish-actions.pod:2911 ../src/guestfs-actions.pod:4464
12242 "This command adds a new key on LUKS device C<device>. C<key> is any "
12243 "existing key, and is used to access the device. C<newkey> is the new key to "
12244 "add. C<keyslot> is the key slot that will be replaced."
12248 #: ../fish/guestfish-actions.pod:2916
12250 "Note that if C<keyslot> already contains a key, then this command will "
12251 "fail. You have to use L</luks-kill-slot> first to remove that key."
12255 #: ../fish/guestfish-actions.pod:2920 ../fish/guestfish-actions.pod:2942
12256 #: ../fish/guestfish-actions.pod:2955 ../fish/guestfish-actions.pod:2969
12257 #: ../fish/guestfish-actions.pod:2995 ../fish/guestfish-actions.pod:3005
12259 "This command has one or more key or passphrase parameters. Guestfish will "
12260 "prompt for these separately."
12264 #: ../fish/guestfish-actions.pod:2923
12266 msgstr "luks-close"
12269 #: ../fish/guestfish-actions.pod:2925
12272 " luks-close device\n"
12275 " luks-close пристрій\n"
12279 #: ../fish/guestfish-actions.pod:2927
12281 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
12282 "luks-open-ro>. The C<device> parameter must be the name of the LUKS mapping "
12283 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
12288 #: ../fish/guestfish-actions.pod:2933
12289 msgid "luks-format"
12290 msgstr "luks-format"
12293 #: ../fish/guestfish-actions.pod:2935
12296 " luks-format device keyslot\n"
12301 #: ../fish/guestfish-actions.pod:2937 ../src/guestfs-actions.pod:4505
12303 "This command erases existing data on C<device> and formats the device as a "
12304 "LUKS encrypted device. C<key> is the initial key, which is added to key "
12305 "slot C<slot>. (LUKS supports 8 key slots, numbered 0-7)."
12309 #: ../fish/guestfish-actions.pod:2945 ../fish/guestfish-actions.pod:2958
12310 #: ../fish/guestfish-actions.pod:3045 ../fish/guestfish-actions.pod:3696
12311 #: ../fish/guestfish-actions.pod:4236 ../fish/guestfish-actions.pod:4573
12312 #: ../fish/guestfish-actions.pod:4596 ../fish/guestfish-actions.pod:4618
12313 #: ../fish/guestfish-actions.pod:5364 ../src/guestfs-actions.pod:4512
12314 #: ../src/guestfs-actions.pod:4535 ../src/guestfs-actions.pod:4678
12315 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:6577
12316 #: ../src/guestfs-actions.pod:7028 ../src/guestfs-actions.pod:7058
12317 #: ../src/guestfs-actions.pod:7091 ../src/guestfs-actions.pod:8290
12319 "B<This command is dangerous. Without careful use you can easily destroy all "
12324 #: ../fish/guestfish-actions.pod:2948
12325 msgid "luks-format-cipher"
12326 msgstr "luks-format-cipher"
12329 #: ../fish/guestfish-actions.pod:2950
12332 " luks-format-cipher device keyslot cipher\n"
12337 #: ../fish/guestfish-actions.pod:2952
12339 "This command is the same as L</luks-format> but it also allows you to set "
12340 "the C<cipher> used."
12344 #: ../fish/guestfish-actions.pod:2961
12345 msgid "luks-kill-slot"
12346 msgstr "luks-kill-slot"
12349 #: ../fish/guestfish-actions.pod:2963
12352 " luks-kill-slot device keyslot\n"
12357 #: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4552
12359 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12360 "device C<device>. C<key> must be one of the I<other> keys."
12364 #: ../fish/guestfish-actions.pod:2972
12369 #: ../fish/guestfish-actions.pod:2974
12372 " luks-open device mapname\n"
12377 #: ../fish/guestfish-actions.pod:2976 ../src/guestfs-actions.pod:4572
12379 "This command opens a block device which has been encrypted according to the "
12380 "Linux Unified Key Setup (LUKS) standard."
12384 #: ../fish/guestfish-actions.pod:2979 ../src/guestfs-actions.pod:4575
12385 msgid "C<device> is the encrypted block device or partition."
12389 #: ../fish/guestfish-actions.pod:2981 ../src/guestfs-actions.pod:4577
12391 "The caller must supply one of the keys associated with the LUKS block "
12392 "device, in the C<key> parameter."
12396 #: ../fish/guestfish-actions.pod:2984 ../src/guestfs-actions.pod:4580
12398 "This creates a new block device called C</dev/mapper/mapname>. Reads and "
12399 "writes to this block device are decrypted from and encrypted to the "
12400 "underlying C<device> respectively."
12404 #: ../fish/guestfish-actions.pod:2988
12406 "If this block device contains LVM volume groups, then calling L</vgscan> "
12407 "followed by L</vg-activate-all> will make them visible."
12411 #: ../fish/guestfish-actions.pod:2992
12412 msgid "Use L</list-dm-devices> to list all device mapper devices."
12416 #: ../fish/guestfish-actions.pod:2998
12417 msgid "luks-open-ro"
12418 msgstr "luks-open-ro"
12421 #: ../fish/guestfish-actions.pod:3000
12424 " luks-open-ro device mapname\n"
12429 #: ../fish/guestfish-actions.pod:3002
12431 "This is the same as L</luks-open> except that a read-only mapping is created."
12435 #: ../fish/guestfish-actions.pod:3008
12440 #: ../fish/guestfish-actions.pod:3010
12443 " lvcreate logvol volgroup mbytes\n"
12448 #: ../fish/guestfish-actions.pod:3012 ../src/guestfs-actions.pod:4626
12450 "This creates an LVM logical volume called C<logvol> on the volume group "
12451 "C<volgroup>, with C<size> megabytes."
12455 #: ../fish/guestfish-actions.pod:3015
12456 msgid "lvm-canonical-lv-name"
12457 msgstr "lvm-canonical-lv-name"
12460 #: ../fish/guestfish-actions.pod:3017
12463 " lvm-canonical-lv-name lvname\n"
12468 #: ../fish/guestfish-actions.pod:3019 ../src/guestfs-actions.pod:4639
12470 "This converts alternative naming schemes for LVs that you might find to the "
12471 "canonical name. For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12476 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4643
12478 "This command returns an error if the C<lvname> parameter does not refer to a "
12483 #: ../fish/guestfish-actions.pod:3026
12484 msgid "See also L</is-lv>."
12485 msgstr "Див. також L</is-lv>."
12488 #: ../fish/guestfish-actions.pod:3028
12489 msgid "lvm-clear-filter"
12490 msgstr "lvm-clear-filter"
12493 #: ../fish/guestfish-actions.pod:3030
12496 " lvm-clear-filter\n"
12499 " lvm-clear-filter\n"
12503 #: ../fish/guestfish-actions.pod:3032
12505 "This undoes the effect of L</lvm-set-filter>. LVM will be able to see every "
12510 #: ../fish/guestfish-actions.pod:3035 ../fish/guestfish-actions.pod:3066
12511 #: ../src/guestfs-actions.pod:4661 ../src/guestfs-actions.pod:4703
12513 "This command also clears the LVM cache and performs a volume group scan."
12517 #: ../fish/guestfish-actions.pod:3038
12518 msgid "lvm-remove-all"
12519 msgstr "lvm-remove-all"
12522 #: ../fish/guestfish-actions.pod:3040
12525 " lvm-remove-all\n"
12528 " lvm-remove-all\n"
12532 #: ../fish/guestfish-actions.pod:3042 ../src/guestfs-actions.pod:4673
12534 "This command removes all LVM logical volumes, volume groups and physical "
12539 #: ../fish/guestfish-actions.pod:3048
12540 msgid "lvm-set-filter"
12541 msgstr "lvm-set-filter"
12544 #: ../fish/guestfish-actions.pod:3050
12547 " lvm-set-filter 'devices ...'\n"
12550 " lvm-set-filter 'пристрої...'\n"
12554 #: ../fish/guestfish-actions.pod:3052 ../src/guestfs-actions.pod:4689
12556 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12557 "block devices in the list C<devices>, and will ignore all other attached "
12562 #: ../fish/guestfish-actions.pod:3056 ../src/guestfs-actions.pod:4693
12564 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12565 "get LVM to ignore the duplicates, otherwise LVM can get confused. Note also "
12566 "there are two types of duplication possible: either cloned PVs/VGs which "
12567 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12568 "same name. In normal operation you cannot create this situation, but you "
12569 "can do it outside LVM, eg. by cloning disk images or by bit twiddling "
12570 "inside the LVM metadata."
12574 #: ../fish/guestfish-actions.pod:3069 ../src/guestfs-actions.pod:4706
12575 msgid "You can filter whole block devices or individual partitions."
12579 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4708
12581 "You cannot use this if any VG is currently in use (eg. contains a mounted "
12582 "filesystem), even if you are not filtering out that VG."
12586 #: ../fish/guestfish-actions.pod:3075
12591 #: ../fish/guestfish-actions.pod:3077
12594 " lvremove device\n"
12597 " lvremove пристрій\n"
12601 #: ../fish/guestfish-actions.pod:3079 ../src/guestfs-actions.pod:4722
12603 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12604 "LV, such as C</dev/VG/LV>."
12608 #: ../fish/guestfish-actions.pod:3082 ../src/guestfs-actions.pod:4725
12610 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12615 #: ../fish/guestfish-actions.pod:3085
12620 #: ../fish/guestfish-actions.pod:3087
12623 " lvrename logvol newlogvol\n"
12628 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4739
12629 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12633 #: ../fish/guestfish-actions.pod:3091
12638 #: ../fish/guestfish-actions.pod:3093
12641 " lvresize device mbytes\n"
12646 #: ../fish/guestfish-actions.pod:3095 ../src/guestfs-actions.pod:4752
12648 "This resizes (expands or shrinks) an existing LVM logical volume to "
12649 "C<mbytes>. When reducing, data in the reduced part is lost."
12653 #: ../fish/guestfish-actions.pod:3099
12654 msgid "lvresize-free"
12655 msgstr "lvresize-free"
12658 #: ../fish/guestfish-actions.pod:3101
12661 " lvresize-free lv percent\n"
12666 #: ../fish/guestfish-actions.pod:3103 ../src/guestfs-actions.pod:4767
12668 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12669 "remaining free space in the volume group. Commonly you would call this with "
12670 "pc = 100 which expands the logical volume as much as possible, using all "
12671 "remaining free space in the volume group."
12675 #: ../fish/guestfish-actions.pod:3109
12680 #: ../fish/guestfish-actions.pod:3111
12690 #: ../fish/guestfish-actions.pod:3113 ../src/guestfs-actions.pod:4782
12692 "List all the logical volumes detected. This is the equivalent of the L<lvs"
12697 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4785
12699 "This returns a list of the logical volume device names (eg. C</dev/"
12700 "VolGroup00/LogVol00>)."
12704 #: ../fish/guestfish-actions.pod:3119
12705 msgid "See also L</lvs-full>, L</list-filesystems>."
12706 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
12709 #: ../fish/guestfish-actions.pod:3121
12714 #: ../fish/guestfish-actions.pod:3123
12724 #: ../fish/guestfish-actions.pod:3125 ../src/guestfs-actions.pod:4801
12726 "List all the logical volumes detected. This is the equivalent of the L<lvs"
12727 "(8)> command. The \"full\" version includes all fields."
12731 #: ../fish/guestfish-actions.pod:3128
12736 #: ../fish/guestfish-actions.pod:3130
12742 " lvuuid пристрій\n"
12746 #: ../fish/guestfish-actions.pod:3132 ../src/guestfs-actions.pod:4816
12747 msgid "This command returns the UUID of the LVM LV C<device>."
12751 #: ../fish/guestfish-actions.pod:3134
12753 msgstr "lxattrlist"
12756 #: ../fish/guestfish-actions.pod:3136
12759 " lxattrlist path 'names ...'\n"
12764 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4830
12766 "This call allows you to get the extended attributes of multiple files, where "
12767 "all files are in the directory C<path>. C<names> is the list of files from "
12772 #: ../fish/guestfish-actions.pod:3142 ../src/guestfs-actions.pod:4834
12774 "On return you get a flat list of xattr structs which must be interpreted "
12775 "sequentially. The first xattr struct always has a zero-length C<attrname>. "
12776 "C<attrval> in this struct is zero-length to indicate there was an error "
12777 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12778 "number (the number of following attributes for this file, which could be C<"
12779 "\"0\">). Then after the first xattr struct are the zero or more attributes "
12780 "for the first named file. This repeats for the second and subsequent files."
12784 #: ../fish/guestfish-actions.pod:3152
12786 "This call is intended for programs that want to efficiently list a directory "
12787 "contents without making many round-trips. See also L</lstatlist> for a "
12788 "similarly efficient call for getting standard stats. Very long directory "
12789 "listings might cause the protocol message size to be exceeded, causing this "
12790 "call to fail. The caller must split up such requests into smaller groups of "
12795 #: ../fish/guestfish-actions.pod:3160
12800 #: ../fish/guestfish-actions.pod:3162
12810 #: ../fish/guestfish-actions.pod:3164 ../src/guestfs-actions.pod:4864
12811 msgid "Create a directory named C<path>."
12815 #: ../fish/guestfish-actions.pod:3166
12817 msgstr "mkdir-mode"
12820 #: ../fish/guestfish-actions.pod:3168
12823 " mkdir-mode path mode\n"
12826 " mkdir-mode шлях режим\n"
12830 #: ../fish/guestfish-actions.pod:3170 ../src/guestfs-actions.pod:4877
12832 "This command creates a directory, setting the initial permissions of the "
12833 "directory to C<mode>."
12837 #: ../fish/guestfish-actions.pod:3173 ../src/guestfs-actions.pod:4880
12839 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12840 "~umask & 01777>. Non-native-Linux filesystems may interpret the mode in "
12845 #: ../fish/guestfish-actions.pod:3177
12846 msgid "See also L</mkdir>, L</umask>"
12847 msgstr "Див. також L</mkdir>, L</umask>"
12850 #: ../fish/guestfish-actions.pod:3179
12855 #: ../fish/guestfish-actions.pod:3181
12865 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4896
12867 "Create a directory named C<path>, creating any parent directories as "
12868 "necessary. This is like the C<mkdir -p> shell command."
12872 #: ../fish/guestfish-actions.pod:3186
12877 #: ../fish/guestfish-actions.pod:3188
12880 " mkdtemp template\n"
12883 " mkdtemp шаблон\n"
12887 #: ../fish/guestfish-actions.pod:3190 ../src/guestfs-actions.pod:4909
12889 "This command creates a temporary directory. The C<template> parameter "
12890 "should be a full pathname for the temporary directory name with the final "
12891 "six characters being \"XXXXXX\"."
12895 #: ../fish/guestfish-actions.pod:3195 ../src/guestfs-actions.pod:4914
12897 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12898 "being suitable for Windows filesystems."
12902 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4917
12903 msgid "The name of the temporary directory that was created is returned."
12907 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4920
12908 msgid "The temporary directory is created with mode 0700 and is owned by root."
12912 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4923
12914 "The caller is responsible for deleting the temporary directory and its "
12915 "contents after use."
12919 #: ../fish/guestfish-actions.pod:3207 ../src/guestfs-actions.pod:4926
12920 msgid "See also: L<mkdtemp(3)>"
12921 msgstr "Див. також L<mkdtemp(3)>"
12924 #: ../fish/guestfish-actions.pod:3209
12929 #: ../fish/guestfish-actions.pod:3211
12932 " mke2fs-J fstype blocksize device journal\n"
12937 #: ../fish/guestfish-actions.pod:3213 ../src/guestfs-actions.pod:4942
12939 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12940 "C<journal>. It is equivalent to the command:"
12944 #: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4946
12947 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12950 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
12954 #: ../fish/guestfish-actions.pod:3219
12955 msgid "See also L</mke2journal>."
12956 msgstr "Див. також L</mke2journal>."
12959 #: ../fish/guestfish-actions.pod:3221
12964 #: ../fish/guestfish-actions.pod:3223
12967 " mke2fs-JL fstype blocksize device label\n"
12972 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4963
12974 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12975 "the journal labeled C<label>."
12979 #: ../fish/guestfish-actions.pod:3228
12980 msgid "See also L</mke2journal-L>."
12981 msgstr "Див. також L</mke2journal-L>."
12984 #: ../fish/guestfish-actions.pod:3230
12989 #: ../fish/guestfish-actions.pod:3232
12992 " mke2fs-JU fstype blocksize device uuid\n"
12997 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4981
12999 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13000 "the journal with UUID C<uuid>."
13004 #: ../fish/guestfish-actions.pod:3237
13005 msgid "See also L</mke2journal-U>."
13006 msgstr "Див. також L</mke2journal-U>."
13009 #: ../fish/guestfish-actions.pod:3239
13010 msgid "mke2journal"
13011 msgstr "mke2journal"
13014 #: ../fish/guestfish-actions.pod:3241
13017 " mke2journal blocksize device\n"
13022 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:4997
13024 "This creates an ext2 external journal on C<device>. It is equivalent to the "
13029 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:5000
13032 " mke2fs -O journal_dev -b blocksize device\n"
13037 #: ../fish/guestfish-actions.pod:3248
13038 msgid "mke2journal-L"
13039 msgstr "mke2journal-L"
13042 #: ../fish/guestfish-actions.pod:3250
13045 " mke2journal-L blocksize label device\n"
13050 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:5014
13051 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13055 #: ../fish/guestfish-actions.pod:3254
13056 msgid "mke2journal-U"
13057 msgstr "mke2journal-U"
13060 #: ../fish/guestfish-actions.pod:3256
13063 " mke2journal-U blocksize uuid device\n"
13068 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:5028
13069 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13073 #: ../fish/guestfish-actions.pod:3260
13078 #: ../fish/guestfish-actions.pod:3262
13081 " mkfifo mode path\n"
13084 " mkfifo режим шлях\n"
13088 #: ../fish/guestfish-actions.pod:3264
13090 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
13091 "is just a convenient wrapper around L</mknod>."
13095 #: ../fish/guestfish-actions.pod:3270
13100 #: ../fish/guestfish-actions.pod:3272
13103 " mkfs fstype device\n"
13106 " mkfs тип_файлової_системи пристрій\n"
13110 #: ../fish/guestfish-actions.pod:3274 ../src/guestfs-actions.pod:5058
13112 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13113 "volume). The filesystem type is C<fstype>, for example C<ext3>."
13117 #: ../fish/guestfish-actions.pod:3278
13122 #: ../fish/guestfish-actions.pod:3280
13125 " mkfs-b fstype blocksize device\n"
13130 #: ../fish/guestfish-actions.pod:3282
13132 "This call is similar to L</mkfs>, but it allows you to control the block "
13133 "size of the resulting filesystem. Supported block sizes depend on the "
13134 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13138 #: ../fish/guestfish-actions.pod:3287 ../fish/guestfish-actions.pod:3314
13139 #: ../src/guestfs-actions.pod:5086 ../src/guestfs-actions.pod:5124
13141 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13146 #: ../fish/guestfish-actions.pod:3290
13148 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
13153 #: ../fish/guestfish-actions.pod:3297
13158 #: ../fish/guestfish-actions.pod:3299
13161 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
13166 #: ../fish/guestfish-actions.pod:3301 ../src/guestfs-actions.pod:5111
13168 "This function creates a filesystem on C<device>. The filesystem type is "
13169 "C<fstype>, for example C<ext3>."
13173 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:5118
13174 msgid "C<blocksize>"
13175 msgstr "C<blocksize>"
13178 #: ../fish/guestfish-actions.pod:3310 ../src/guestfs-actions.pod:5120
13180 "The filesystem block size. Supported block sizes depend on the filesystem "
13181 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13186 #: ../fish/guestfish-actions.pod:3317 ../src/guestfs-actions.pod:5127
13187 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13191 #: ../fish/guestfish-actions.pod:3319 ../src/guestfs-actions.pod:5129
13192 msgid "C<features>"
13193 msgstr "C<features>"
13196 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5131
13197 msgid "This passes the I<-O> parameter to the external mkfs program."
13201 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5133
13203 "For certain filesystem types, this allows extra filesystem features to be "
13204 "selected. See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13208 #: ../fish/guestfish-actions.pod:3327 ../src/guestfs-actions.pod:5137
13210 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13215 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5140
13220 #: ../fish/guestfish-actions.pod:3332 ../src/guestfs-actions.pod:5142
13222 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13223 "sets the inode size (only for ext2/3/4 filesystems at present)."
13227 #: ../fish/guestfish-actions.pod:3335 ../src/guestfs-actions.pod:5145
13228 msgid "C<sectorsize>"
13229 msgstr "C<sectorsize>"
13232 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5147
13234 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13235 "sets sector size for ufs filesystem."
13239 #: ../fish/guestfish-actions.pod:3344
13240 msgid "mkmountpoint"
13241 msgstr "mkmountpoint"
13244 #: ../fish/guestfish-actions.pod:3346
13247 " mkmountpoint exemptpath\n"
13252 #: ../fish/guestfish-actions.pod:3348
13254 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13255 "to create extra mountpoints before mounting the first filesystem."
13259 #: ../fish/guestfish-actions.pod:3352 ../src/guestfs-actions.pod:5190
13261 "These calls are I<only> necessary in some very limited circumstances, mainly "
13262 "the case where you want to mount a mix of unrelated and/or read-only "
13263 "filesystems together."
13267 #: ../fish/guestfish-actions.pod:3356 ../src/guestfs-actions.pod:5194
13269 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13270 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13271 "inside that. You can unpack this as follows in guestfish:"
13275 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5199
13278 " add-ro Fedora-11-i686-Live.iso\n"
13280 " mkmountpoint /cd\n"
13281 " mkmountpoint /sqsh\n"
13282 " mkmountpoint /ext3fs\n"
13283 " mount /dev/sda /cd\n"
13284 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13285 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13288 " add-ro Fedora-11-i686-Live.iso\n"
13290 " mkmountpoint /cd\n"
13291 " mkmountpoint /sqsh\n"
13292 " mkmountpoint /ext3fs\n"
13293 " mount /dev/sda /cd\n"
13294 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13295 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13299 #: ../fish/guestfish-actions.pod:3370 ../src/guestfs-actions.pod:5208
13300 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13304 #: ../fish/guestfish-actions.pod:3372
13306 "L</mkmountpoint> is not compatible with L</umount-all>. You may get "
13307 "unexpected errors if you try to mix these calls. It is safest to manually "
13308 "unmount filesystems and remove mountpoints after use."
13312 #: ../fish/guestfish-actions.pod:3376
13314 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13315 "for this to work for manual mountpoints, you must ensure that the innermost "
13316 "mountpoints have the longest pathnames, as in the example code above."
13320 #: ../fish/guestfish-actions.pod:3381 ../src/guestfs-actions.pod:5219
13322 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13326 #: ../fish/guestfish-actions.pod:3383
13328 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13329 "L</umount-all> to be called when the handle is closed which can also trigger "
13334 #: ../fish/guestfish-actions.pod:3387
13339 #: ../fish/guestfish-actions.pod:3389
13342 " mknod mode devmajor devminor path\n"
13347 #: ../fish/guestfish-actions.pod:3391 ../src/guestfs-actions.pod:5238
13349 "This call creates block or character special devices, or named pipes (FIFOs)."
13353 #: ../fish/guestfish-actions.pod:3394 ../src/guestfs-actions.pod:5241
13355 "The C<mode> parameter should be the mode, using the standard constants. "
13356 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13357 "used when creating block and character special devices."
13361 #: ../fish/guestfish-actions.pod:3399
13363 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13364 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13365 "regular file). These constants are available in the standard Linux header "
13366 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13367 "wrappers around this command which bitwise OR in the appropriate constant "
13372 #: ../fish/guestfish-actions.pod:3409
13377 #: ../fish/guestfish-actions.pod:3411
13380 " mknod-b mode devmajor devminor path\n"
13385 #: ../fish/guestfish-actions.pod:3413
13387 "This call creates a block device node called C<path> with mode C<mode> and "
13388 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
13389 "wrapper around L</mknod>."
13393 #: ../fish/guestfish-actions.pod:3419
13398 #: ../fish/guestfish-actions.pod:3421
13401 " mknod-c mode devmajor devminor path\n"
13406 #: ../fish/guestfish-actions.pod:3423
13408 "This call creates a char device node called C<path> with mode C<mode> and "
13409 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
13410 "wrapper around L</mknod>."
13414 #: ../fish/guestfish-actions.pod:3429
13419 #: ../fish/guestfish-actions.pod:3431
13425 " mkswap пристрій\n"
13429 #: ../fish/guestfish-actions.pod:3433 ../src/guestfs-actions.pod:5304
13430 msgid "Create a swap partition on C<device>."
13434 #: ../fish/guestfish-actions.pod:3435
13439 #: ../fish/guestfish-actions.pod:3437
13442 " mkswap-L label device\n"
13445 " mkswap-L мітка пристрій\n"
13449 #: ../fish/guestfish-actions.pod:3439 ../src/guestfs-actions.pod:5317
13450 msgid "Create a swap partition on C<device> with label C<label>."
13454 #: ../fish/guestfish-actions.pod:3441 ../src/guestfs-actions.pod:5319
13456 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13457 "sda>), just to a partition. This appears to be a limitation of the kernel "
13462 #: ../fish/guestfish-actions.pod:3445
13467 #: ../fish/guestfish-actions.pod:3447
13470 " mkswap-U uuid device\n"
13473 " mkswap-U uuid пристрій\n"
13477 #: ../fish/guestfish-actions.pod:3449 ../src/guestfs-actions.pod:5334
13478 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13482 #: ../fish/guestfish-actions.pod:3451
13483 msgid "mkswap-file"
13484 msgstr "mkswap-file"
13487 #: ../fish/guestfish-actions.pod:3453
13490 " mkswap-file path\n"
13493 " mkswap-file шлях\n"
13497 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5346
13498 msgid "Create a swap file."
13499 msgstr "Створити файл резервної пам’яті."
13502 #: ../fish/guestfish-actions.pod:3457
13504 "This command just writes a swap file signature to an existing file. To "
13505 "create the file itself, use something like L</fallocate>."
13509 #: ../fish/guestfish-actions.pod:3460
13514 #: ../fish/guestfish-actions.pod:3462
13517 " modprobe modulename\n"
13520 " modprobe назва_модуля\n"
13524 #: ../fish/guestfish-actions.pod:3464 ../src/guestfs-actions.pod:5361
13525 msgid "This loads a kernel module in the appliance."
13529 #: ../fish/guestfish-actions.pod:3466 ../src/guestfs-actions.pod:5363
13531 "The kernel module must have been whitelisted when libguestfs was built (see "
13532 "C<appliance/kmod.whitelist.in> in the source)."
13536 #: ../fish/guestfish-actions.pod:3469
13541 #: ../fish/guestfish-actions.pod:3471
13544 " mount device mountpoint\n"
13547 " mount пристрій точка_монтування\n"
13551 #: ../fish/guestfish-actions.pod:3473 ../src/guestfs-actions.pod:5377
13553 "Mount a guest disk at a position in the filesystem. Block devices are named "
13554 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
13555 "those block devices contain partitions, they will have the usual names (eg. "
13556 "C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used."
13560 #: ../fish/guestfish-actions.pod:3479 ../src/guestfs-actions.pod:5383
13562 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13563 "mounted on C</> before others can be mounted. Other filesystems can only be "
13564 "mounted on directories which already exist."
13568 #: ../fish/guestfish-actions.pod:3484 ../src/guestfs-actions.pod:5388
13570 "The mounted filesystem is writable, if we have sufficient permissions on the "
13571 "underlying device."
13575 #: ../fish/guestfish-actions.pod:3487
13577 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13578 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
13579 "problems for users. If your program might need to work with older versions "
13580 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13581 "first parameter if you don't want any options)."
13585 #: ../fish/guestfish-actions.pod:3494
13590 #: ../fish/guestfish-actions.pod:3496
13593 " mount-9p mounttag mountpoint [options:..]\n"
13598 #: ../fish/guestfish-actions.pod:3498 ../src/guestfs-actions.pod:5417
13600 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13605 #: ../fish/guestfish-actions.pod:3501 ../src/guestfs-actions.pod:5420
13607 "If required, C<trans=virtio> will be automatically added to the options. "
13608 "Any other options required can be passed in the optional C<options> "
13613 #: ../fish/guestfish-actions.pod:3507
13615 msgstr "mount-loop"
13618 #: ../fish/guestfish-actions.pod:3509
13621 " mount-loop file mountpoint\n"
13626 #: ../fish/guestfish-actions.pod:3511 ../src/guestfs-actions.pod:5459
13628 "This command lets you mount C<file> (a filesystem image in a file) on a "
13629 "mount point. It is entirely equivalent to the command C<mount -o loop file "
13634 #: ../fish/guestfish-actions.pod:3515
13635 msgid "mount-options"
13636 msgstr "mount-options"
13639 #: ../fish/guestfish-actions.pod:3517
13642 " mount-options options device mountpoint\n"
13647 #: ../fish/guestfish-actions.pod:3519
13649 "This is the same as the L</mount> command, but it allows you to set the "
13650 "mount options as for the L<mount(8)> I<-o> flag."
13654 #: ../fish/guestfish-actions.pod:3523 ../src/guestfs-actions.pod:5479
13656 "If the C<options> parameter is an empty string, then no options are passed "
13657 "(all options default to whatever the filesystem uses)."
13661 #: ../fish/guestfish-actions.pod:3527
13666 #: ../fish/guestfish-actions.pod:3529
13669 " mount-ro device mountpoint\n"
13672 " mount-ro пристрій точка_монтування\n"
13676 #: ../fish/guestfish-actions.pod:3531
13678 "This is the same as the L</mount> command, but it mounts the filesystem with "
13679 "the read-only (I<-o ro>) flag."
13683 #: ../fish/guestfish-actions.pod:3534
13688 #: ../fish/guestfish-actions.pod:3536
13691 " mount-vfs options vfstype device mountpoint\n"
13696 #: ../fish/guestfish-actions.pod:3538
13698 "This is the same as the L</mount> command, but it allows you to set both the "
13699 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13703 #: ../fish/guestfish-actions.pod:3542
13704 msgid "mountpoints"
13705 msgstr "mountpoints"
13708 #: ../fish/guestfish-actions.pod:3544
13718 #: ../fish/guestfish-actions.pod:3546
13720 "This call is similar to L</mounts>. That call returns a list of devices. "
13721 "This one returns a hash table (map) of device name to directory where the "
13722 "device is mounted."
13726 #: ../fish/guestfish-actions.pod:3550
13731 #: ../fish/guestfish-actions.pod:3552
13741 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5540
13743 "This returns the list of currently mounted filesystems. It returns the list "
13744 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13748 #: ../fish/guestfish-actions.pod:3557 ../src/guestfs-actions.pod:5543
13749 msgid "Some internal mounts are not shown."
13753 #: ../fish/guestfish-actions.pod:3559
13754 msgid "See also: L</mountpoints>"
13755 msgstr "Див. також L</mountpoints>"
13758 #: ../fish/guestfish-actions.pod:3561
13763 #: ../fish/guestfish-actions.pod:3563
13769 " mv джерело призначення\n"
13773 #: ../fish/guestfish-actions.pod:3565 ../src/guestfs-actions.pod:5560
13775 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13776 "destination filename or destination directory."
13780 #: ../fish/guestfish-actions.pod:3568
13781 msgid "ntfs-3g-probe"
13782 msgstr "ntfs-3g-probe"
13785 #: ../fish/guestfish-actions.pod:3570
13788 " ntfs-3g-probe true|false device\n"
13793 #: ../fish/guestfish-actions.pod:3572 ../src/guestfs-actions.pod:5574
13795 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13796 "C<device> for mountability. (Not all NTFS volumes can be mounted read-"
13797 "write, and some cannot be mounted at all)."
13801 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5578
13803 "C<rw> is a boolean flag. Set it to true if you want to test if the volume "
13804 "can be mounted read-write. Set it to false if you want to test if the "
13805 "volume can be mounted read-only."
13809 #: ../fish/guestfish-actions.pod:3580 ../src/guestfs-actions.pod:5582
13811 "The return value is an integer which C<0> if the operation would succeed, or "
13812 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13816 #: ../fish/guestfish-actions.pod:3584
13818 msgstr "ntfsresize"
13821 #: ../fish/guestfish-actions.pod:3586
13824 " ntfsresize device\n"
13827 " ntfsresize пристрій\n"
13831 #: ../fish/guestfish-actions.pod:3588 ../fish/guestfish-actions.pod:3612
13832 #: ../src/guestfs-actions.pod:5603 ../src/guestfs-actions.pod:5635
13834 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13835 "size of the underlying device."
13839 #: ../fish/guestfish-actions.pod:3591 ../src/guestfs-actions.pod:5606
13841 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13842 "consistency check (for safety). You have to boot into Windows to perform "
13843 "this check and clear this condition. Furthermore, ntfsresize refuses to "
13844 "resize filesystems which have been marked in this way. So in effect it is "
13845 "not possible to call ntfsresize multiple times on a single filesystem "
13846 "without booting into Windows between each resize."
13850 #: ../fish/guestfish-actions.pod:3599 ../fish/guestfish-actions.pod:3638
13851 #: ../src/guestfs-actions.pod:5614 ../src/guestfs-actions.pod:5661
13852 msgid "See also L<ntfsresize(8)>."
13853 msgstr "Див. також L<ntfsresize(8)>."
13856 #: ../fish/guestfish-actions.pod:3601 ../fish/guestfish-actions.pod:3649
13858 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13863 #: ../fish/guestfish-actions.pod:3608
13864 msgid "ntfsresize-opts"
13868 #: ../fish/guestfish-actions.pod:3610
13871 " ntfsresize-opts device [size:..] [force:..]\n"
13876 #: ../fish/guestfish-actions.pod:3621 ../src/guestfs-actions.pod:5644
13878 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
13879 "resized to fit the container (eg. partition)."
13883 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5647
13888 #: ../fish/guestfish-actions.pod:3626 ../src/guestfs-actions.pod:5649
13890 "If this option is true, then force the resize of the filesystem even if the "
13891 "filesystem is marked as requiring a consistency check."
13895 #: ../fish/guestfish-actions.pod:3629
13897 "After the resize operation, the filesystem is always marked as requiring a "
13898 "consistency check (for safety). You have to boot into Windows to perform "
13899 "this check and clear this condition. If you I<don't> set the C<force> "
13900 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13901 "a single filesystem without booting into Windows between each resize."
13905 #: ../fish/guestfish-actions.pod:3642
13906 msgid "ntfsresize-size"
13907 msgstr "ntfsresize-size"
13910 #: ../fish/guestfish-actions.pod:3644
13913 " ntfsresize-size device size\n"
13918 #: ../fish/guestfish-actions.pod:3646
13920 "This command is the same as L</ntfsresize> except that it allows you to "
13921 "specify the new size (in bytes) explicitly."
13925 #: ../fish/guestfish-actions.pod:3656
13930 #: ../fish/guestfish-actions.pod:3658
13933 " part-add device prlogex startsect endsect\n"
13938 #: ../fish/guestfish-actions.pod:3660
13940 "This command adds a partition to C<device>. If there is no partition table "
13941 "on the device, call L</part-init> first."
13945 #: ../fish/guestfish-actions.pod:3663 ../src/guestfs-actions.pod:5722
13947 "The C<prlogex> parameter is the type of partition. Normally you should pass "
13948 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13949 "C<logical>) and C<e> (or C<extended>) partition types."
13953 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5727
13955 "C<startsect> and C<endsect> are the start and end of the partition in "
13956 "I<sectors>. C<endsect> may be negative, which means it counts backwards "
13957 "from the end of the disk (C<-1> is the last sector)."
13961 #: ../fish/guestfish-actions.pod:3672
13963 "Creating a partition which covers the whole disk is not so easy. Use L</"
13964 "part-disk> to do that."
13968 #: ../fish/guestfish-actions.pod:3675
13973 #: ../fish/guestfish-actions.pod:3677
13976 " part-del device partnum\n"
13981 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5745
13982 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13986 #: ../fish/guestfish-actions.pod:3681 ../src/guestfs-actions.pod:5747
13988 "Note that in the case of MBR partitioning, deleting an extended partition "
13989 "also deletes any logical partitions it contains."
13993 #: ../fish/guestfish-actions.pod:3685
13998 #: ../fish/guestfish-actions.pod:3687
14001 " part-disk device parttype\n"
14004 " part-disk пристрій тип_розділу\n"
14008 #: ../fish/guestfish-actions.pod:3689
14010 "This command is simply a combination of L</part-init> followed by L</part-"
14011 "add> to create a single primary partition covering the whole disk."
14015 #: ../fish/guestfish-actions.pod:3693
14017 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
14018 "possible values are described in L</part-init>."
14022 #: ../fish/guestfish-actions.pod:3699
14023 msgid "part-get-bootable"
14024 msgstr "part-get-bootable"
14027 #: ../fish/guestfish-actions.pod:3701
14030 " part-get-bootable device partnum\n"
14035 #: ../fish/guestfish-actions.pod:3703 ../src/guestfs-actions.pod:5783
14037 "This command returns true if the partition C<partnum> on C<device> has the "
14038 "bootable flag set."
14042 #: ../fish/guestfish-actions.pod:3706
14043 msgid "See also L</part-set-bootable>."
14044 msgstr "Див. також L</part-set-bootable>."
14047 #: ../fish/guestfish-actions.pod:3708
14048 msgid "part-get-mbr-id"
14049 msgstr "part-get-mbr-id"
14052 #: ../fish/guestfish-actions.pod:3710
14055 " part-get-mbr-id device partnum\n"
14060 #: ../fish/guestfish-actions.pod:3712 ../src/guestfs-actions.pod:5799
14062 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14063 "partition C<partnum>."
14067 #: ../fish/guestfish-actions.pod:3715 ../fish/guestfish-actions.pod:3859
14069 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
14070 "undefined results for other partition table types (see L</part-get-"
14075 #: ../fish/guestfish-actions.pod:3719
14076 msgid "part-get-parttype"
14077 msgstr "part-get-parttype"
14080 #: ../fish/guestfish-actions.pod:3721
14083 " part-get-parttype device\n"
14086 " part-get-parttype пристрій\n"
14090 #: ../fish/guestfish-actions.pod:3723 ../src/guestfs-actions.pod:5816
14092 "This command examines the partition table on C<device> and returns the "
14093 "partition table type (format) being used."
14097 #: ../fish/guestfish-actions.pod:3726
14099 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14100 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
14101 "possible, although unusual. See L</part-init> for a full list."
14105 #: ../fish/guestfish-actions.pod:3731
14110 #: ../fish/guestfish-actions.pod:3733
14113 " part-init device parttype\n"
14118 #: ../fish/guestfish-actions.pod:3735 ../src/guestfs-actions.pod:5836
14120 "This creates an empty partition table on C<device> of one of the partition "
14121 "types listed below. Usually C<parttype> should be either C<msdos> or C<gpt> "
14122 "(for large disks)."
14126 #: ../fish/guestfish-actions.pod:3739
14128 "Initially there are no partitions. Following this, you should call L</part-"
14129 "add> for each partition required."
14133 #: ../fish/guestfish-actions.pod:3742 ../src/guestfs-actions.pod:5843
14134 msgid "Possible values for C<parttype> are:"
14138 #: ../fish/guestfish-actions.pod:3746 ../src/guestfs-actions.pod:5847
14143 #: ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5849
14148 #: ../fish/guestfish-actions.pod:3750 ../src/guestfs-actions.pod:5851
14149 msgid "Intel EFI / GPT partition table."
14153 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5853
14155 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14156 "and Intel-based Mac OS X. It also has limited backwards compatibility with "
14157 "the C<mbr> format."
14161 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5857
14166 #: ../fish/guestfish-actions.pod:3758 ../src/guestfs-actions.pod:5859
14171 #: ../fish/guestfish-actions.pod:3760 ../src/guestfs-actions.pod:5861
14173 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14174 "Windows. This partition type will B<only> work for device sizes up to 2 "
14175 "TB. For large disks we recommend using C<gpt>."
14179 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5868
14181 "Other partition table types that may work but are not supported include:"
14185 #: ../fish/guestfish-actions.pod:3772 ../src/guestfs-actions.pod:5873
14190 #: ../fish/guestfish-actions.pod:3774 ../src/guestfs-actions.pod:5875
14191 msgid "AIX disk labels."
14192 msgstr "Мітки дисків AIX."
14195 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5877
14200 #: ../fish/guestfish-actions.pod:3778 ../src/guestfs-actions.pod:5879
14205 #: ../fish/guestfish-actions.pod:3780 ../src/guestfs-actions.pod:5881
14206 msgid "Amiga \"Rigid Disk Block\" format."
14207 msgstr "Формат \"Rigid Disk Block\" Amiga."
14210 #: ../fish/guestfish-actions.pod:3782 ../src/guestfs-actions.pod:5883
14215 #: ../fish/guestfish-actions.pod:3784 ../src/guestfs-actions.pod:5885
14216 msgid "BSD disk labels."
14217 msgstr "Мітки дисків BSD."
14220 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5887
14225 #: ../fish/guestfish-actions.pod:3788 ../src/guestfs-actions.pod:5889
14226 msgid "DASD, used on IBM mainframes."
14227 msgstr "DASD, використовувалися у мейнфреймах IBM."
14230 #: ../fish/guestfish-actions.pod:3790 ../src/guestfs-actions.pod:5891
14235 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5893
14236 msgid "MIPS/SGI volumes."
14237 msgstr "Томи MIPS/SGI."
14240 #: ../fish/guestfish-actions.pod:3794 ../src/guestfs-actions.pod:5895
14245 #: ../fish/guestfish-actions.pod:3796 ../src/guestfs-actions.pod:5897
14246 msgid "Old Mac partition format. Modern Macs use C<gpt>."
14247 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
14250 #: ../fish/guestfish-actions.pod:3798 ../src/guestfs-actions.pod:5899
14255 #: ../fish/guestfish-actions.pod:3800 ../src/guestfs-actions.pod:5901
14256 msgid "NEC PC-98 format, common in Japan apparently."
14257 msgstr "Формат NEC PC-98, поширений у Японії."
14260 #: ../fish/guestfish-actions.pod:3802 ../src/guestfs-actions.pod:5903
14265 #: ../fish/guestfish-actions.pod:3804 ../src/guestfs-actions.pod:5905
14266 msgid "Sun disk labels."
14267 msgstr "Мітки дисків Sun."
14270 #: ../fish/guestfish-actions.pod:3808
14275 #: ../fish/guestfish-actions.pod:3810
14278 " part-list device\n"
14281 " part-list device\n"
14285 #: ../fish/guestfish-actions.pod:3812 ../src/guestfs-actions.pod:5919
14287 "This command parses the partition table on C<device> and returns the list of "
14288 "partitions found."
14292 #: ../fish/guestfish-actions.pod:3815 ../src/guestfs-actions.pod:5922
14293 msgid "The fields in the returned structure are:"
14297 #: ../fish/guestfish-actions.pod:3819 ../src/guestfs-actions.pod:5926
14298 msgid "B<part_num>"
14299 msgstr "B<part_num>"
14302 #: ../fish/guestfish-actions.pod:3821 ../src/guestfs-actions.pod:5928
14303 msgid "Partition number, counting from 1."
14307 #: ../fish/guestfish-actions.pod:3823 ../src/guestfs-actions.pod:5930
14308 msgid "B<part_start>"
14309 msgstr "B<part_start>"
14312 #: ../fish/guestfish-actions.pod:3825
14314 "Start of the partition I<in bytes>. To get sectors you have to divide by "
14315 "the device's sector size, see L</blockdev-getss>."
14319 #: ../fish/guestfish-actions.pod:3828 ../src/guestfs-actions.pod:5935
14320 msgid "B<part_end>"
14321 msgstr "B<part_end>"
14324 #: ../fish/guestfish-actions.pod:3830 ../src/guestfs-actions.pod:5937
14325 msgid "End of the partition in bytes."
14329 #: ../fish/guestfish-actions.pod:3832 ../src/guestfs-actions.pod:5939
14330 msgid "B<part_size>"
14331 msgstr "B<part_size>"
14334 #: ../fish/guestfish-actions.pod:3834 ../src/guestfs-actions.pod:5941
14335 msgid "Size of the partition in bytes."
14339 #: ../fish/guestfish-actions.pod:3838
14340 msgid "part-set-bootable"
14341 msgstr "part-set-bootable"
14344 #: ../fish/guestfish-actions.pod:3840
14347 " part-set-bootable device partnum true|false\n"
14352 #: ../fish/guestfish-actions.pod:3842 ../src/guestfs-actions.pod:5959
14354 "This sets the bootable flag on partition numbered C<partnum> on device "
14355 "C<device>. Note that partitions are numbered from 1."
14359 #: ../fish/guestfish-actions.pod:3845 ../src/guestfs-actions.pod:5962
14361 "The bootable flag is used by some operating systems (notably Windows) to "
14362 "determine which partition to boot from. It is by no means universally "
14367 #: ../fish/guestfish-actions.pod:3849
14368 msgid "part-set-mbr-id"
14369 msgstr "part-set-mbr-id"
14372 #: ../fish/guestfish-actions.pod:3851
14375 " part-set-mbr-id device partnum idbyte\n"
14380 #: ../fish/guestfish-actions.pod:3853 ../src/guestfs-actions.pod:5978
14382 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14383 "C<partnum> to C<idbyte>. Note that the type bytes quoted in most "
14384 "documentation are in fact hexadecimal numbers, but usually documented "
14385 "without any leading \"0x\" which might be confusing."
14389 #: ../fish/guestfish-actions.pod:3863
14390 msgid "part-set-name"
14391 msgstr "part-set-name"
14394 #: ../fish/guestfish-actions.pod:3865
14397 " part-set-name device partnum name\n"
14402 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:6000
14404 "This sets the partition name on partition numbered C<partnum> on device "
14405 "C<device>. Note that partitions are numbered from 1."
14409 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:6003
14411 "The partition name can only be set on certain types of partition table. "
14412 "This works on C<gpt> but not on C<mbr> partitions."
14416 #: ../fish/guestfish-actions.pod:3873
14417 msgid "part-to-dev"
14418 msgstr "part-to-dev"
14421 #: ../fish/guestfish-actions.pod:3875
14424 " part-to-dev partition\n"
14427 " part-to-dev розділ\n"
14431 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:6016
14433 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14434 "partition number, returning the device name (eg. \"/dev/sdb\")."
14438 #: ../fish/guestfish-actions.pod:3881 ../fish/guestfish-actions.pod:3893
14440 "The named partition must exist, for example as a string returned from L</"
14441 "list-partitions>."
14445 #: ../fish/guestfish-actions.pod:3884
14447 #| msgid "See also: L</part-add>"
14448 msgid "See also L</part-to-partnum>."
14449 msgstr "Див. також L</part-add>"
14452 #: ../fish/guestfish-actions.pod:3886
14454 #| msgid "part-get-parttype"
14455 msgid "part-to-partnum"
14456 msgstr "part-get-parttype"
14459 #: ../fish/guestfish-actions.pod:3888
14462 #| " part-to-dev partition\n"
14465 " part-to-partnum partition\n"
14468 " part-to-dev розділ\n"
14472 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:6036
14474 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
14475 "partition number (eg. C<1>)."
14479 #: ../fish/guestfish-actions.pod:3896
14481 #| msgid "See also: L</part-add>"
14482 msgid "See also L</part-to-dev>."
14483 msgstr "Див. також L</part-add>"
14486 #: ../fish/guestfish-actions.pod:3898
14487 msgid "ping-daemon"
14488 msgstr "ping-daemon"
14491 #: ../fish/guestfish-actions.pod:3900
14501 #: ../fish/guestfish-actions.pod:3902 ../src/guestfs-actions.pod:6051
14503 "This is a test probe into the guestfs daemon running inside the qemu "
14504 "subprocess. Calling this function checks that the daemon responds to the "
14505 "ping message, without affecting the daemon or attached block device(s) in "
14510 #: ../fish/guestfish-actions.pod:3907
14515 #: ../fish/guestfish-actions.pod:3909
14518 " pread path count offset\n"
14523 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:6069
14525 "This command lets you read part of a file. It reads C<count> bytes of the "
14526 "file, starting at C<offset>, from file C<path>."
14530 #: ../fish/guestfish-actions.pod:3914 ../fish/guestfish-actions.pod:3929
14531 #: ../src/guestfs-actions.pod:6072 ../src/guestfs-actions.pod:6098
14533 "This may read fewer bytes than requested. For further details see the "
14534 "L<pread(2)> system call."
14538 #: ../fish/guestfish-actions.pod:3917
14539 msgid "See also L</pwrite>, L</pread-device>."
14540 msgstr "Див. також L</pwrite>, L</pread-device>."
14543 #: ../fish/guestfish-actions.pod:3922
14544 msgid "pread-device"
14545 msgstr "pread-device"
14548 #: ../fish/guestfish-actions.pod:3924
14551 " pread-device device count offset\n"
14556 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6095
14558 "This command lets you read part of a file. It reads C<count> bytes of "
14559 "C<device>, starting at C<offset>."
14563 #: ../fish/guestfish-actions.pod:3932
14564 msgid "See also L</pread>."
14565 msgstr "Див. також L</pread>."
14568 #: ../fish/guestfish-actions.pod:3937
14573 #: ../fish/guestfish-actions.pod:3939
14576 " pvcreate device\n"
14579 " pvcreate пристрій\n"
14583 #: ../fish/guestfish-actions.pod:3941 ../src/guestfs-actions.pod:6118
14585 "This creates an LVM physical volume on the named C<device>, where C<device> "
14586 "should usually be a partition name such as C</dev/sda1>."
14590 #: ../fish/guestfish-actions.pod:3945
14595 #: ../fish/guestfish-actions.pod:3947
14598 " pvremove device\n"
14601 " pvremove пристрій\n"
14605 #: ../fish/guestfish-actions.pod:3949 ../src/guestfs-actions.pod:6132
14607 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14612 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6135
14614 "The implementation uses the C<pvremove> command which refuses to wipe "
14615 "physical volumes that contain any volume groups, so you have to remove those "
14620 #: ../fish/guestfish-actions.pod:3956
14625 #: ../fish/guestfish-actions.pod:3958
14628 " pvresize device\n"
14631 " pvresize пристрій\n"
14635 #: ../fish/guestfish-actions.pod:3960 ../src/guestfs-actions.pod:6149
14637 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14638 "the new size of the underlying device."
14642 #: ../fish/guestfish-actions.pod:3963
14643 msgid "pvresize-size"
14644 msgstr "pvresize-size"
14647 #: ../fish/guestfish-actions.pod:3965
14650 " pvresize-size device size\n"
14655 #: ../fish/guestfish-actions.pod:3967
14657 "This command is the same as L</pvresize> except that it allows you to "
14658 "specify the new size (in bytes) explicitly."
14662 #: ../fish/guestfish-actions.pod:3970
14667 #: ../fish/guestfish-actions.pod:3972
14677 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6175
14679 "List all the physical volumes detected. This is the equivalent of the L<pvs"
14684 #: ../fish/guestfish-actions.pod:3977 ../src/guestfs-actions.pod:6178
14686 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14691 #: ../fish/guestfish-actions.pod:3980
14692 msgid "See also L</pvs-full>."
14693 msgstr "Див. також L</pvs-full>."
14696 #: ../fish/guestfish-actions.pod:3982
14701 #: ../fish/guestfish-actions.pod:3984
14711 #: ../fish/guestfish-actions.pod:3986 ../src/guestfs-actions.pod:6194
14713 "List all the physical volumes detected. This is the equivalent of the L<pvs"
14714 "(8)> command. The \"full\" version includes all fields."
14718 #: ../fish/guestfish-actions.pod:3989
14723 #: ../fish/guestfish-actions.pod:3991
14729 " pvuuid пристрій\n"
14733 #: ../fish/guestfish-actions.pod:3993 ../src/guestfs-actions.pod:6209
14734 msgid "This command returns the UUID of the LVM PV C<device>."
14738 #: ../fish/guestfish-actions.pod:3995
14743 #: ../fish/guestfish-actions.pod:3997
14746 " pwrite path content offset\n"
14751 #: ../fish/guestfish-actions.pod:3999 ../src/guestfs-actions.pod:6225
14753 "This command writes to part of a file. It writes the data buffer C<content> "
14754 "to the file C<path> starting at offset C<offset>."
14758 #: ../fish/guestfish-actions.pod:4002 ../src/guestfs-actions.pod:6228
14760 "This command implements the L<pwrite(2)> system call, and like that system "
14761 "call it may not write the full data requested. The return value is the "
14762 "number of bytes that were actually written to the file. This could even be "
14763 "0, although short writes are unlikely for regular files in ordinary "
14768 #: ../fish/guestfish-actions.pod:4008
14769 msgid "See also L</pread>, L</pwrite-device>."
14770 msgstr "Див. також L</pread>, L</pwrite-device>."
14773 #: ../fish/guestfish-actions.pod:4013
14774 msgid "pwrite-device"
14775 msgstr "pwrite-device"
14778 #: ../fish/guestfish-actions.pod:4015
14781 " pwrite-device device content offset\n"
14786 #: ../fish/guestfish-actions.pod:4017 ../src/guestfs-actions.pod:6252
14788 "This command writes to part of a device. It writes the data buffer "
14789 "C<content> to C<device> starting at offset C<offset>."
14793 #: ../fish/guestfish-actions.pod:4020 ../src/guestfs-actions.pod:6255
14795 "This command implements the L<pwrite(2)> system call, and like that system "
14796 "call it may not write the full data requested (although short writes to disk "
14797 "devices and partitions are probably impossible with standard Linux kernels)."
14801 #: ../fish/guestfish-actions.pod:4025
14802 msgid "See also L</pwrite>."
14803 msgstr "Див. також L</pwrite>."
14806 #: ../fish/guestfish-actions.pod:4030
14811 #: ../fish/guestfish-actions.pod:4032
14814 " read-file path\n"
14817 " read-file шлях\n"
14821 #: ../fish/guestfish-actions.pod:4034 ../src/guestfs-actions.pod:6276
14822 msgid "This calls returns the contents of the file C<path> as a buffer."
14826 #: ../fish/guestfish-actions.pod:4037
14828 "Unlike L</cat>, this function can correctly handle files that contain "
14829 "embedded ASCII NUL characters. However unlike L</download>, this function "
14830 "is limited in the total size of file that can be handled."
14834 #: ../fish/guestfish-actions.pod:4045
14836 msgstr "read-lines"
14839 #: ../fish/guestfish-actions.pod:4047
14842 " read-lines path\n"
14845 " read-lines шлях\n"
14849 #: ../fish/guestfish-actions.pod:4051 ../src/guestfs-actions.pod:6301
14851 "The file contents are returned as a list of lines. Trailing C<LF> and "
14852 "C<CRLF> character sequences are I<not> returned."
14856 #: ../fish/guestfish-actions.pod:4054
14858 "Note that this function cannot correctly handle binary files (specifically, "
14859 "files containing C<\\0> character which is treated as end of line). For "
14860 "those you need to use the L</read-file> function which has a more complex "
14865 #: ../fish/guestfish-actions.pod:4059
14870 #: ../fish/guestfish-actions.pod:4061
14876 " readdir каталог\n"
14880 #: ../fish/guestfish-actions.pod:4063 ../src/guestfs-actions.pod:6321
14881 msgid "This returns the list of directory entries in directory C<dir>."
14885 #: ../fish/guestfish-actions.pod:4065 ../src/guestfs-actions.pod:6323
14887 "All entries in the directory are returned, including C<.> and C<..>. The "
14888 "entries are I<not> sorted, but returned in the same order as the underlying "
14893 #: ../fish/guestfish-actions.pod:4069 ../src/guestfs-actions.pod:6327
14895 "Also this call returns basic file type information about each file. The "
14896 "C<ftyp> field will contain one of the following characters:"
14900 #: ../fish/guestfish-actions.pod:4074 ../src/guestfs-actions.pod:6332
14905 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6334
14906 msgid "Block special"
14907 msgstr "Блоковий особливий"
14910 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6336
14915 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6338
14916 msgid "Char special"
14917 msgstr "Символьний особливий"
14920 #: ../fish/guestfish-actions.pod:4082 ../src/guestfs-actions.pod:6340
14925 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6342
14930 #: ../fish/guestfish-actions.pod:4086 ../src/guestfs-actions.pod:6344
14935 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6346
14936 msgid "FIFO (named pipe)"
14937 msgstr "FIFO (іменований канал)"
14940 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6348
14945 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6350
14946 msgid "Symbolic link"
14947 msgstr "Символічне посилання"
14950 #: ../fish/guestfish-actions.pod:4094 ../src/guestfs-actions.pod:6352
14955 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6354
14956 msgid "Regular file"
14957 msgstr "Звичайний файл"
14960 #: ../fish/guestfish-actions.pod:4098 ../src/guestfs-actions.pod:6356
14965 #: ../fish/guestfish-actions.pod:4100 ../src/guestfs-actions.pod:6358
14970 #: ../fish/guestfish-actions.pod:4102 ../src/guestfs-actions.pod:6360
14975 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6362
14976 msgid "Unknown file type"
14977 msgstr "Невідомий тип файла"
14980 #: ../fish/guestfish-actions.pod:4106 ../src/guestfs-actions.pod:6364
14985 #: ../fish/guestfish-actions.pod:4108 ../src/guestfs-actions.pod:6366
14987 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14991 #: ../fish/guestfish-actions.pod:4113
14993 "This function is primarily intended for use by programs. To get a simple "
14994 "list of names, use L</ls>. To get a printable directory for human "
14995 "consumption, use L</ll>."
14999 #: ../fish/guestfish-actions.pod:4117
15004 #: ../fish/guestfish-actions.pod:4119
15014 #: ../fish/guestfish-actions.pod:4121 ../src/guestfs-actions.pod:6387
15015 msgid "This command reads the target of a symbolic link."
15019 #: ../fish/guestfish-actions.pod:4123
15020 msgid "readlinklist"
15021 msgstr "readlinklist"
15024 #: ../fish/guestfish-actions.pod:4125
15027 " readlinklist path 'names ...'\n"
15032 #: ../fish/guestfish-actions.pod:4127 ../src/guestfs-actions.pod:6401
15034 "This call allows you to do a C<readlink> operation on multiple files, where "
15035 "all files are in the directory C<path>. C<names> is the list of files from "
15040 #: ../fish/guestfish-actions.pod:4131 ../src/guestfs-actions.pod:6405
15042 "On return you get a list of strings, with a one-to-one correspondence to the "
15043 "C<names> list. Each string is the value of the symbolic link."
15047 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6409
15049 "If the C<readlink(2)> operation fails on any name, then the corresponding "
15050 "result string is the empty string C<\"\">. However the whole operation is "
15051 "completed even if there were C<readlink(2)> errors, and so you can call this "
15052 "function with names where you don't know if they are symbolic links already "
15053 "(albeit slightly less efficient)."
15057 #: ../fish/guestfish-actions.pod:4142 ../src/guestfs-actions.pod:6416
15059 "This call is intended for programs that want to efficiently list a directory "
15060 "contents without making many round-trips. Very long directory listings "
15061 "might cause the protocol message size to be exceeded, causing this call to "
15062 "fail. The caller must split up such requests into smaller groups of names."
15066 #: ../fish/guestfish-actions.pod:4149
15071 #: ../fish/guestfish-actions.pod:4151
15081 #: ../fish/guestfish-actions.pod:4153 ../src/guestfs-actions.pod:6435
15083 "Return the canonicalized absolute pathname of C<path>. The returned path "
15084 "has no C<.>, C<..> or symbolic link path elements."
15088 #: ../fish/guestfish-actions.pod:4156
15089 msgid "removexattr"
15090 msgstr "removexattr"
15093 #: ../fish/guestfish-actions.pod:4158
15096 " removexattr xattr path\n"
15101 #: ../fish/guestfish-actions.pod:4160 ../src/guestfs-actions.pod:6450
15103 "This call removes the extended attribute named C<xattr> of the file C<path>."
15107 #: ../fish/guestfish-actions.pod:4163
15108 msgid "See also: L</lremovexattr>, L<attr(5)>."
15109 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
15112 #: ../fish/guestfish-actions.pod:4165
15117 #: ../fish/guestfish-actions.pod:4167
15120 " resize2fs device\n"
15123 " resize2fs пристрій\n"
15127 #: ../fish/guestfish-actions.pod:4169 ../src/guestfs-actions.pod:6465
15129 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15130 "underlying device."
15134 #: ../fish/guestfish-actions.pod:4172
15136 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
15137 "before calling this command. For unknown reasons C<resize2fs> sometimes "
15138 "gives an error about this and sometimes not. In any case, it is always safe "
15139 "to call L</e2fsck-f> before calling this function."
15143 #: ../fish/guestfish-actions.pod:4178
15144 msgid "resize2fs-M"
15145 msgstr "resize2fs-M"
15148 #: ../fish/guestfish-actions.pod:4180
15151 " resize2fs-M device\n"
15154 " resize2fs-M пристрій\n"
15158 #: ../fish/guestfish-actions.pod:4182
15160 "This command is the same as L</resize2fs>, but the filesystem is resized to "
15161 "its minimum size. This works like the I<-M> option to the C<resize2fs> "
15166 #: ../fish/guestfish-actions.pod:4186
15168 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
15169 "and read the C<Block size> and C<Block count> values. These two numbers, "
15170 "multiplied together, give the resulting size of the minimal filesystem in "
15175 #: ../fish/guestfish-actions.pod:4191
15176 msgid "resize2fs-size"
15177 msgstr "resize2fs-size"
15180 #: ../fish/guestfish-actions.pod:4193
15183 " resize2fs-size device size\n"
15188 #: ../fish/guestfish-actions.pod:4195
15190 "This command is the same as L</resize2fs> except that it allows you to "
15191 "specify the new size (in bytes) explicitly."
15195 #: ../fish/guestfish-actions.pod:4198
15200 #: ../fish/guestfish-actions.pod:4200
15210 #: ../fish/guestfish-actions.pod:4202 ../src/guestfs-actions.pod:6517
15211 msgid "Remove the single file C<path>."
15215 #: ../fish/guestfish-actions.pod:4204
15220 #: ../fish/guestfish-actions.pod:4206
15230 #: ../fish/guestfish-actions.pod:4208 ../src/guestfs-actions.pod:6529
15232 "Remove the file or directory C<path>, recursively removing the contents if "
15233 "its a directory. This is like the C<rm -rf> shell command."
15237 #: ../fish/guestfish-actions.pod:4212
15242 #: ../fish/guestfish-actions.pod:4214
15252 #: ../fish/guestfish-actions.pod:4216 ../src/guestfs-actions.pod:6543
15253 msgid "Remove the single directory C<path>."
15257 #: ../fish/guestfish-actions.pod:4218
15258 msgid "rmmountpoint"
15259 msgstr "rmmountpoint"
15262 #: ../fish/guestfish-actions.pod:4220
15265 " rmmountpoint exemptpath\n"
15270 #: ../fish/guestfish-actions.pod:4222
15272 "This calls removes a mountpoint that was previously created with L</"
15273 "mkmountpoint>. See L</mkmountpoint> for full details."
15277 #: ../fish/guestfish-actions.pod:4226
15278 msgid "scrub-device"
15279 msgstr "scrub-device"
15282 #: ../fish/guestfish-actions.pod:4228
15285 " scrub-device device\n"
15288 " scrub-device пристрій\n"
15292 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6569
15294 "This command writes patterns over C<device> to make data retrieval more "
15299 #: ../fish/guestfish-actions.pod:4233 ../fish/guestfish-actions.pod:4248
15300 #: ../fish/guestfish-actions.pod:4261 ../src/guestfs-actions.pod:6572
15301 #: ../src/guestfs-actions.pod:6593 ../src/guestfs-actions.pod:6612
15303 "It is an interface to the L<scrub(1)> program. See that manual page for "
15308 #: ../fish/guestfish-actions.pod:4239
15310 msgstr "scrub-file"
15313 #: ../fish/guestfish-actions.pod:4241
15316 " scrub-file file\n"
15319 " scrub-file файл\n"
15323 #: ../fish/guestfish-actions.pod:4243 ../src/guestfs-actions.pod:6588
15325 "This command writes patterns over a file to make data retrieval more "
15330 #: ../fish/guestfish-actions.pod:4246 ../src/guestfs-actions.pod:6591
15331 msgid "The file is I<removed> after scrubbing."
15335 #: ../fish/guestfish-actions.pod:4251
15336 msgid "scrub-freespace"
15337 msgstr "scrub-freespace"
15340 #: ../fish/guestfish-actions.pod:4253
15343 " scrub-freespace dir\n"
15346 " scrub-freespace каталог\n"
15350 #: ../fish/guestfish-actions.pod:4255
15352 "This command creates the directory C<dir> and then fills it with files until "
15353 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15354 "deletes them. The intention is to scrub any free space on the partition "
15355 "containing C<dir>."
15359 #: ../fish/guestfish-actions.pod:4264
15361 msgstr "set-append"
15364 #: ../fish/guestfish-actions.pod:4266
15369 #: ../fish/guestfish-actions.pod:4268
15372 " set-append append\n"
15377 #: ../fish/guestfish-actions.pod:4270 ../src/guestfs-actions.pod:6625
15379 "This function is used to add additional options to the guest kernel command "
15384 #: ../fish/guestfish-actions.pod:4273 ../src/guestfs-actions.pod:6628
15386 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15387 "environment variable."
15391 #: ../fish/guestfish-actions.pod:4276 ../src/guestfs-actions.pod:6631
15393 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15394 "(libguestfs always adds a few of its own)."
15398 #: ../fish/guestfish-actions.pod:4279
15399 msgid "set-attach-method"
15400 msgstr "set-attach-method"
15403 #: ../fish/guestfish-actions.pod:4281
15404 msgid "attach-method"
15408 #: ../fish/guestfish-actions.pod:4283
15411 " set-attach-method attachmethod\n"
15416 #: ../fish/guestfish-actions.pod:4285 ../src/guestfs-actions.pod:6644
15418 "Set the method that libguestfs uses to connect to the back end guestfsd "
15419 "daemon. Possible methods are:"
15423 #: ../fish/guestfish-actions.pod:4290 ../src/guestfs-actions.pod:6649
15424 #: ../src/guestfs.pod:2916
15425 msgid "C<appliance>"
15426 msgstr "C<appliance>"
15429 #: ../fish/guestfish-actions.pod:4292 ../src/guestfs-actions.pod:6651
15431 "Launch an appliance and connect to it. This is the ordinary method and the "
15436 #: ../fish/guestfish-actions.pod:4295 ../src/guestfs-actions.pod:6654
15437 msgid "C<unix:I<path>>"
15438 msgstr "C<unix:I<шлях>>"
15441 #: ../fish/guestfish-actions.pod:4297 ../src/guestfs-actions.pod:6656
15442 msgid "Connect to the Unix domain socket I<path>."
15443 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
15446 #: ../fish/guestfish-actions.pod:4299 ../src/guestfs-actions.pod:6658
15448 "This method lets you connect to an existing daemon or (using virtio-serial) "
15449 "to a live guest. For more information, see L<guestfs(3)/ATTACHING TO "
15450 "RUNNING DAEMONS>."
15454 #: ../fish/guestfish-actions.pod:4305
15455 msgid "set-autosync"
15456 msgstr "set-autosync"
15459 #: ../fish/guestfish-actions.pod:4307
15464 #: ../fish/guestfish-actions.pod:4309
15467 " set-autosync true|false\n"
15470 " set-autosync true|false\n"
15474 #: ../fish/guestfish-actions.pod:4311 ../src/guestfs-actions.pod:6674
15476 "If C<autosync> is true, this enables autosync. Libguestfs will make a best "
15477 "effort attempt to make filesystems consistent and synchronized when the "
15478 "handle is closed (also if the program exits without closing handles)."
15482 #: ../fish/guestfish-actions.pod:4316 ../src/guestfs-actions.pod:6679
15484 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15485 "disabled by default)."
15489 #: ../fish/guestfish-actions.pod:4319
15491 msgstr "set-direct"
15494 #: ../fish/guestfish-actions.pod:4321
15499 #: ../fish/guestfish-actions.pod:4323
15502 " set-direct true|false\n"
15505 " set-direct true|false\n"
15509 #: ../fish/guestfish-actions.pod:4325 ../src/guestfs-actions.pod:6692
15511 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15512 "passed directly through to the appliance once it is launched."
15516 #: ../fish/guestfish-actions.pod:4329
15518 "One consequence of this is that log messages aren't caught by the library "
15519 "and handled by L</set-log-message-callback>, but go straight to stdout."
15523 #: ../fish/guestfish-actions.pod:4333 ../src/guestfs-actions.pod:6700
15524 msgid "You probably don't want to use this unless you know what you are doing."
15528 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6703
15529 msgid "The default is disabled."
15533 #: ../fish/guestfish-actions.pod:4338
15534 msgid "set-e2label"
15535 msgstr "set-e2label"
15538 #: ../fish/guestfish-actions.pod:4340
15541 " set-e2label device label\n"
15546 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6716
15548 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15549 "C<label>. Filesystem labels are limited to 16 characters."
15553 #: ../fish/guestfish-actions.pod:4346
15555 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15556 "label on a filesystem."
15560 #: ../fish/guestfish-actions.pod:4349
15562 msgstr "set-e2uuid"
15565 #: ../fish/guestfish-actions.pod:4351
15568 " set-e2uuid device uuid\n"
15573 #: ../fish/guestfish-actions.pod:4353 ../src/guestfs-actions.pod:6734
15575 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15576 "C<uuid>. The format of the UUID and alternatives such as C<clear>, "
15577 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15581 #: ../fish/guestfish-actions.pod:4358
15583 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15584 "UUID of a filesystem."
15588 #: ../fish/guestfish-actions.pod:4361
15589 msgid "set-memsize"
15590 msgstr "set-memsize"
15593 #: ../fish/guestfish-actions.pod:4363
15598 #: ../fish/guestfish-actions.pod:4365
15601 " set-memsize memsize\n"
15606 #: ../fish/guestfish-actions.pod:4367
15608 "This sets the memory size in megabytes allocated to the qemu subprocess. "
15609 "This only has any effect if called before L</launch>."
15613 #: ../fish/guestfish-actions.pod:4371 ../src/guestfs-actions.pod:6756
15615 "You can also change this by setting the environment variable "
15616 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15620 #: ../fish/guestfish-actions.pod:4378
15621 msgid "set-network"
15622 msgstr "set-network"
15625 #: ../fish/guestfish-actions.pod:4380
15630 #: ../fish/guestfish-actions.pod:4382
15633 " set-network true|false\n"
15636 " set-network true|false\n"
15640 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6773
15642 "If C<network> is true, then the network is enabled in the libguestfs "
15643 "appliance. The default is false."
15647 #: ../fish/guestfish-actions.pod:4387 ../src/guestfs-actions.pod:6776
15649 "This affects whether commands are able to access the network (see L<guestfs"
15650 "(3)/RUNNING COMMANDS>)."
15654 #: ../fish/guestfish-actions.pod:4390
15656 "You must call this before calling L</launch>, otherwise it has no effect."
15660 #: ../fish/guestfish-actions.pod:4393
15665 #: ../fish/guestfish-actions.pod:4397
15668 " set-path searchpath\n"
15673 #: ../fish/guestfish-actions.pod:4399 ../src/guestfs-actions.pod:6792
15674 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15678 #: ../fish/guestfish-actions.pod:4401 ../src/guestfs-actions.pod:6794
15680 "The default is C<$libdir/guestfs> unless overridden by setting "
15681 "C<LIBGUESTFS_PATH> environment variable."
15685 #: ../fish/guestfish-actions.pod:4404 ../src/guestfs-actions.pod:6797
15686 msgid "Setting C<path> to C<NULL> restores the default path."
15690 #: ../fish/guestfish-actions.pod:4406
15695 #: ../fish/guestfish-actions.pod:4408
15700 #: ../fish/guestfish-actions.pod:4410
15703 " set-pgroup true|false\n"
15708 #: ../fish/guestfish-actions.pod:4412 ../src/guestfs-actions.pod:6809
15710 "If C<pgroup> is true, child processes are placed into their own process "
15715 #: ../fish/guestfish-actions.pod:4415 ../src/guestfs-actions.pod:6812
15717 "The practical upshot of this is that signals like C<SIGINT> (from users "
15718 "pressing C<^C>) won't be received by the child process."
15722 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6815
15724 "The default for this flag is false, because usually you want C<^C> to kill "
15729 #: ../fish/guestfish-actions.pod:4421
15734 #: ../fish/guestfish-actions.pod:4423
15739 #: ../fish/guestfish-actions.pod:4425
15749 #: ../fish/guestfish-actions.pod:4427 ../src/guestfs-actions.pod:6828
15750 msgid "Set the qemu binary that we will use."
15754 #: ../fish/guestfish-actions.pod:4429 ../src/guestfs-actions.pod:6830
15756 "The default is chosen when the library was compiled by the configure script."
15760 #: ../fish/guestfish-actions.pod:4432 ../src/guestfs-actions.pod:6833
15762 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15767 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6836
15768 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15772 #: ../fish/guestfish-actions.pod:4437 ../src/guestfs-actions.pod:6838
15774 "Note that you should call this function as early as possible after creating "
15775 "the handle. This is because some pre-launch operations depend on testing "
15776 "qemu features (by running C<qemu -help>). If the qemu binary changes, we "
15777 "don't retest features, and so you might see inconsistent results. Using the "
15778 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15779 "the qemu binary at the same time as the handle is created."
15783 #: ../fish/guestfish-actions.pod:4445
15784 msgid "set-recovery-proc"
15785 msgstr "set-recovery-proc"
15788 #: ../fish/guestfish-actions.pod:4447
15789 msgid "recovery-proc"
15790 msgstr "recovery-proc"
15793 #: ../fish/guestfish-actions.pod:4449
15796 " set-recovery-proc true|false\n"
15799 " set-recovery-proc true|false\n"
15803 #: ../fish/guestfish-actions.pod:4451
15805 "If this is called with the parameter C<false> then L</launch> does not "
15806 "create a recovery process. The purpose of the recovery process is to stop "
15807 "runaway qemu processes in the case where the main program aborts abruptly."
15811 #: ../fish/guestfish-actions.pod:4456
15813 "This only has any effect if called before L</launch>, and the default is "
15818 #: ../fish/guestfish-actions.pod:4459 ../src/guestfs-actions.pod:6864
15820 "About the only time when you would want to disable this is if the main "
15821 "process will fork itself into the background (\"daemonize\" itself). In "
15822 "this case the recovery process thinks that the main program has disappeared "
15823 "and so kills qemu, which is not very helpful."
15827 #: ../fish/guestfish-actions.pod:4465
15828 msgid "set-selinux"
15829 msgstr "set-selinux"
15832 #: ../fish/guestfish-actions.pod:4467
15837 #: ../fish/guestfish-actions.pod:4469
15840 " set-selinux true|false\n"
15843 " set-selinux true|false\n"
15847 #: ../fish/guestfish-actions.pod:4471 ../src/guestfs-actions.pod:6880
15849 "This sets the selinux flag that is passed to the appliance at boot time. "
15850 "The default is C<selinux=0> (disabled)."
15854 #: ../fish/guestfish-actions.pod:4474 ../src/guestfs-actions.pod:6883
15856 "Note that if SELinux is enabled, it is always in Permissive mode "
15857 "(C<enforcing=0>)."
15861 #: ../fish/guestfish-actions.pod:4480
15866 #: ../fish/guestfish-actions.pod:4482
15871 #: ../fish/guestfish-actions.pod:4484
15879 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6899
15881 "Change the number of virtual CPUs assigned to the appliance. The default is "
15882 "C<1>. Increasing this may improve performance, though often it has no "
15887 #: ../fish/guestfish-actions.pod:4490
15888 msgid "This function must be called before L</launch>."
15892 #: ../fish/guestfish-actions.pod:4492
15897 #: ../fish/guestfish-actions.pod:4494
15902 #: ../fish/guestfish-actions.pod:4496
15905 " set-trace true|false\n"
15908 " set-trace true|false\n"
15912 #: ../fish/guestfish-actions.pod:4498 ../src/guestfs-actions.pod:6915
15914 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15915 "return values are traced."
15919 #: ../fish/guestfish-actions.pod:4501 ../src/guestfs-actions.pod:6918
15921 "If you want to trace C API calls into libguestfs (and other libraries) then "
15922 "possibly a better way is to use the external ltrace(1) command."
15926 #: ../fish/guestfish-actions.pod:4505 ../src/guestfs-actions.pod:6922
15928 "Command traces are disabled unless the environment variable "
15929 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15933 #: ../fish/guestfish-actions.pod:4508
15935 "Trace messages are normally sent to C<stderr>, unless you register a "
15936 "callback to send them somewhere else (see L</set-event-callback>)."
15940 #: ../fish/guestfish-actions.pod:4512
15941 msgid "set-verbose"
15942 msgstr "set-verbose"
15945 #: ../fish/guestfish-actions.pod:4514
15950 #: ../fish/guestfish-actions.pod:4516
15953 " set-verbose true|false\n"
15956 " set-verbose true|false\n"
15960 #: ../fish/guestfish-actions.pod:4518 ../src/guestfs-actions.pod:6939
15961 msgid "If C<verbose> is true, this turns on verbose messages."
15965 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6941
15967 "Verbose messages are disabled unless the environment variable "
15968 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15972 #: ../fish/guestfish-actions.pod:4523
15974 "Verbose messages are normally sent to C<stderr>, unless you register a "
15975 "callback to send them somewhere else (see L</set-event-callback>)."
15979 #: ../fish/guestfish-actions.pod:4527
15984 #: ../fish/guestfish-actions.pod:4529
15987 " setcon context\n"
15990 " setcon контекст\n"
15994 #: ../fish/guestfish-actions.pod:4531 ../src/guestfs-actions.pod:6958
15996 "This sets the SELinux security context of the daemon to the string "
16001 #: ../fish/guestfish-actions.pod:4534 ../src/guestfs-actions.pod:6961
16002 msgid "See the documentation about SELINUX in L<guestfs(3)>."
16006 #: ../fish/guestfish-actions.pod:4536
16011 #: ../fish/guestfish-actions.pod:4538
16014 " setxattr xattr val vallen path\n"
16019 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:6976
16021 "This call sets the extended attribute named C<xattr> of the file C<path> to "
16022 "the value C<val> (of length C<vallen>). The value is arbitrary 8 bit data."
16026 #: ../fish/guestfish-actions.pod:4544
16027 msgid "See also: L</lsetxattr>, L<attr(5)>."
16028 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
16031 #: ../fish/guestfish-actions.pod:4546
16036 #: ../fish/guestfish-actions.pod:4548
16039 " sfdisk device cyls heads sectors 'lines ...'\n"
16044 #: ../fish/guestfish-actions.pod:4550 ../src/guestfs-actions.pod:7003
16046 "This is a direct interface to the L<sfdisk(8)> program for creating "
16047 "partitions on block devices."
16051 #: ../fish/guestfish-actions.pod:4553 ../src/guestfs-actions.pod:7006
16052 msgid "C<device> should be a block device, for example C</dev/sda>."
16056 #: ../fish/guestfish-actions.pod:4555 ../src/guestfs-actions.pod:7008
16058 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
16059 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
16060 "H> and I<-S> parameters. If you pass C<0> for any of these, then the "
16061 "corresponding parameter is omitted. Usually for 'large' disks, you can just "
16062 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
16063 "the kernel) cannot work out the right geometry and you will need to tell it."
16067 #: ../fish/guestfish-actions.pod:4563 ../src/guestfs-actions.pod:7016
16069 "C<lines> is a list of lines that we feed to C<sfdisk>. For more information "
16070 "refer to the L<sfdisk(8)> manpage."
16074 #: ../fish/guestfish-actions.pod:4566 ../src/guestfs-actions.pod:7019
16076 "To create a single partition occupying the whole disk, you would pass "
16077 "C<lines> as a single element list, when the single element being the string "
16082 #: ../fish/guestfish-actions.pod:4570
16083 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16084 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16087 #: ../fish/guestfish-actions.pod:4576 ../fish/guestfish-actions.pod:4599
16088 #: ../fish/guestfish-actions.pod:4621
16090 "I<This function is deprecated.> In new code, use the L</part_add> call "
16095 #: ../fish/guestfish-actions.pod:4583
16100 #: ../fish/guestfish-actions.pod:4585
16103 " sfdiskM device 'lines ...'\n"
16108 #: ../fish/guestfish-actions.pod:4587
16110 "This is a simplified interface to the L</sfdisk> command, where partition "
16111 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
16112 "you don't need to specify the cyls, heads and sectors parameters which were "
16113 "rarely if ever used anyway."
16117 #: ../fish/guestfish-actions.pod:4593
16118 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
16120 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
16123 #: ../fish/guestfish-actions.pod:4606
16128 #: ../fish/guestfish-actions.pod:4608
16131 " sfdisk-N device partnum cyls heads sectors line\n"
16136 #: ../fish/guestfish-actions.pod:4610 ../src/guestfs-actions.pod:7081
16138 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16139 "(note: C<n> counts from 1)."
16143 #: ../fish/guestfish-actions.pod:4613
16145 "For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
16146 "cyls/heads/sectors parameters."
16150 #: ../fish/guestfish-actions.pod:4616
16151 msgid "See also: L</part-add>"
16152 msgstr "Див. також L</part-add>"
16155 #: ../fish/guestfish-actions.pod:4628
16156 msgid "sfdisk-disk-geometry"
16157 msgstr "sfdisk-disk-geometry"
16160 #: ../fish/guestfish-actions.pod:4630
16163 " sfdisk-disk-geometry device\n"
16166 " sfdisk-disk-geometry пристрій\n"
16170 #: ../fish/guestfish-actions.pod:4632
16172 "This displays the disk geometry of C<device> read from the partition table. "
16173 "Especially in the case where the underlying block device has been resized, "
16174 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
16175 "kernel-geometry>)."
16179 #: ../fish/guestfish-actions.pod:4637 ../fish/guestfish-actions.pod:4646
16180 #: ../src/guestfs-actions.pod:7107 ../src/guestfs-actions.pod:7123
16181 msgid "The result is in human-readable format, and not designed to be parsed."
16185 #: ../fish/guestfish-actions.pod:4640
16186 msgid "sfdisk-kernel-geometry"
16187 msgstr "sfdisk-kernel-geometry"
16190 #: ../fish/guestfish-actions.pod:4642
16193 " sfdisk-kernel-geometry device\n"
16196 " sfdisk-kernel-geometry пристрій\n"
16200 #: ../fish/guestfish-actions.pod:4644 ../src/guestfs-actions.pod:7121
16201 msgid "This displays the kernel's idea of the geometry of C<device>."
16205 #: ../fish/guestfish-actions.pod:4649
16210 #: ../fish/guestfish-actions.pod:4651
16213 " sfdisk-l device\n"
16216 " sfdisk-l пристрій\n"
16220 #: ../fish/guestfish-actions.pod:4653 ../src/guestfs-actions.pod:7144
16222 "This displays the partition table on C<device>, in the human-readable output "
16223 "of the L<sfdisk(8)> command. It is not intended to be parsed."
16227 #: ../fish/guestfish-actions.pod:4657
16228 msgid "See also: L</part-list>"
16229 msgstr "Див. також L</part-list>"
16232 #: ../fish/guestfish-actions.pod:4659
16234 "I<This function is deprecated.> In new code, use the L</part_list> call "
16239 #: ../fish/guestfish-actions.pod:4666
16244 #: ../fish/guestfish-actions.pod:4668
16254 #: ../fish/guestfish-actions.pod:4670 ../src/guestfs-actions.pod:7161
16256 "This call runs a command from the guest filesystem via the guest's C</bin/"
16261 #: ../fish/guestfish-actions.pod:4673
16262 msgid "This is like L</command>, but passes the command to:"
16266 #: ../fish/guestfish-actions.pod:4675 ../src/guestfs-actions.pod:7166
16269 " /bin/sh -c \"command\"\n"
16274 #: ../fish/guestfish-actions.pod:4677 ../src/guestfs-actions.pod:7168
16276 "Depending on the guest's shell, this usually results in wildcards being "
16277 "expanded, shell expressions being interpolated and so on."
16281 #: ../fish/guestfish-actions.pod:4681
16282 msgid "All the provisos about L</command> apply to this call."
16286 #: ../fish/guestfish-actions.pod:4683
16291 #: ../fish/guestfish-actions.pod:4685
16294 " sh-lines command\n"
16297 " sh-lines команда\n"
16301 #: ../fish/guestfish-actions.pod:4687
16302 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16306 #: ../fish/guestfish-actions.pod:4690
16307 msgid "See also: L</command-lines>"
16308 msgstr "Див. також L</command-lines>"
16311 #: ../fish/guestfish-actions.pod:4692
16316 #: ../fish/guestfish-actions.pod:4694
16322 " sleep час_у_секундах\n"
16326 #: ../fish/guestfish-actions.pod:4696 ../src/guestfs-actions.pod:7202
16327 msgid "Sleep for C<secs> seconds."
16331 #: ../fish/guestfish-actions.pod:4698
16336 #: ../fish/guestfish-actions.pod:4700
16346 #: ../fish/guestfish-actions.pod:4704 ../src/guestfs-actions.pod:7216
16347 msgid "This is the same as the C<stat(2)> system call."
16351 #: ../fish/guestfish-actions.pod:4706
16356 #: ../fish/guestfish-actions.pod:4708
16366 #: ../fish/guestfish-actions.pod:4710 ../src/guestfs-actions.pod:7230
16368 "Returns file system statistics for any mounted file system. C<path> should "
16369 "be a file or directory in the mounted file system (typically it is the mount "
16370 "point itself, but it doesn't need to be)."
16374 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7234
16375 msgid "This is the same as the C<statvfs(2)> system call."
16379 #: ../fish/guestfish-actions.pod:4716
16384 #: ../fish/guestfish-actions.pod:4718
16394 #: ../fish/guestfish-actions.pod:4720 ../src/guestfs-actions.pod:7248
16396 "This runs the L<strings(1)> command on a file and returns the list of "
16397 "printable strings found."
16401 #: ../fish/guestfish-actions.pod:4726
16406 #: ../fish/guestfish-actions.pod:4728
16409 " strings-e encoding path\n"
16412 " strings-e кодування шлях\n"
16416 #: ../fish/guestfish-actions.pod:4730
16418 "This is like the L</strings> command, but allows you to specify the encoding "
16419 "of strings that are looked for in the source file C<path>."
16423 #: ../fish/guestfish-actions.pod:4734 ../src/guestfs-actions.pod:7271
16424 msgid "Allowed encodings are:"
16425 msgstr "Можливими кодуваннями є:"
16428 #: ../fish/guestfish-actions.pod:4738 ../src/guestfs-actions.pod:7275
16433 #: ../fish/guestfish-actions.pod:4740
16435 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16436 "ISO-8859-X (this is what L</strings> uses)."
16440 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7280
16445 #: ../fish/guestfish-actions.pod:4745 ../src/guestfs-actions.pod:7282
16446 msgid "Single 8-bit-byte characters."
16447 msgstr "Окремі 8-бітові-байтові символи."
16450 #: ../fish/guestfish-actions.pod:4747 ../src/guestfs-actions.pod:7284
16455 #: ../fish/guestfish-actions.pod:4749 ../src/guestfs-actions.pod:7286
16456 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16460 #: ../fish/guestfish-actions.pod:4752 ../src/guestfs-actions.pod:7289
16461 msgid "l (lower case letter L)"
16465 #: ../fish/guestfish-actions.pod:4754 ../src/guestfs-actions.pod:7291
16467 "16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
16468 "examining binaries in Windows guests."
16472 #: ../fish/guestfish-actions.pod:4757 ../src/guestfs-actions.pod:7294
16477 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7296
16478 msgid "32-bit big endian such as UCS-4BE."
16482 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7298
16487 #: ../fish/guestfish-actions.pod:4763 ../src/guestfs-actions.pod:7300
16488 msgid "32-bit little endian such as UCS-4LE."
16492 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7304
16493 msgid "The returned strings are transcoded to UTF-8."
16497 #: ../fish/guestfish-actions.pod:4772
16498 msgid "swapoff-device"
16499 msgstr "swapoff-device"
16502 #: ../fish/guestfish-actions.pod:4774
16505 " swapoff-device device\n"
16508 " swapoff-device пристрій\n"
16512 #: ../fish/guestfish-actions.pod:4776
16514 "This command disables the libguestfs appliance swap device or partition "
16515 "named C<device>. See L</swapon-device>."
16519 #: ../fish/guestfish-actions.pod:4780
16520 msgid "swapoff-file"
16521 msgstr "swapoff-file"
16524 #: ../fish/guestfish-actions.pod:4782
16527 " swapoff-file file\n"
16530 " swapoff-file файл\n"
16534 #: ../fish/guestfish-actions.pod:4784 ../src/guestfs-actions.pod:7335
16535 msgid "This command disables the libguestfs appliance swap on file."
16539 #: ../fish/guestfish-actions.pod:4786
16540 msgid "swapoff-label"
16541 msgstr "swapoff-label"
16544 #: ../fish/guestfish-actions.pod:4788
16547 " swapoff-label label\n"
16550 " swapoff-label мітка\n"
16554 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7347
16556 "This command disables the libguestfs appliance swap on labeled swap "
16561 #: ../fish/guestfish-actions.pod:4793
16562 msgid "swapoff-uuid"
16563 msgstr "swapoff-uuid"
16566 #: ../fish/guestfish-actions.pod:4795
16569 " swapoff-uuid uuid\n"
16572 " swapoff-uuid uuid\n"
16576 #: ../fish/guestfish-actions.pod:4797 ../src/guestfs-actions.pod:7360
16578 "This command disables the libguestfs appliance swap partition with the given "
16583 #: ../fish/guestfish-actions.pod:4800
16584 msgid "swapon-device"
16585 msgstr "swapon-device"
16588 #: ../fish/guestfish-actions.pod:4802
16591 " swapon-device device\n"
16594 " swapon-device пристрій\n"
16598 #: ../fish/guestfish-actions.pod:4804
16600 "This command enables the libguestfs appliance to use the swap device or "
16601 "partition named C<device>. The increased memory is made available for all "
16602 "commands, for example those run using L</command> or L</sh>."
16606 #: ../fish/guestfish-actions.pod:4809 ../src/guestfs-actions.pod:7378
16608 "Note that you should not swap to existing guest swap partitions unless you "
16609 "know what you are doing. They may contain hibernation information, or other "
16610 "information that the guest doesn't want you to trash. You also risk leaking "
16611 "information about the host to the guest this way. Instead, attach a new "
16612 "host device to the guest and swap on that."
16616 #: ../fish/guestfish-actions.pod:4816
16617 msgid "swapon-file"
16618 msgstr "swapon-file"
16621 #: ../fish/guestfish-actions.pod:4818
16624 " swapon-file file\n"
16627 " swapon-file файл\n"
16631 #: ../fish/guestfish-actions.pod:4820
16633 "This command enables swap to a file. See L</swapon-device> for other notes."
16637 #: ../fish/guestfish-actions.pod:4823
16638 msgid "swapon-label"
16639 msgstr "swapon-label"
16642 #: ../fish/guestfish-actions.pod:4825
16645 " swapon-label label\n"
16648 " swapon-label мітка\n"
16652 #: ../fish/guestfish-actions.pod:4827
16654 "This command enables swap to a labeled swap partition. See L</swapon-"
16655 "device> for other notes."
16659 #: ../fish/guestfish-actions.pod:4830
16660 msgid "swapon-uuid"
16661 msgstr "swapon-uuid"
16664 #: ../fish/guestfish-actions.pod:4832
16667 " swapon-uuid uuid\n"
16670 " swapon-uuid uuid\n"
16674 #: ../fish/guestfish-actions.pod:4834
16676 "This command enables swap to a swap partition with the given UUID. See L</"
16677 "swapon-device> for other notes."
16681 #: ../fish/guestfish-actions.pod:4837
16686 #: ../fish/guestfish-actions.pod:4839
16696 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7433
16698 "This syncs the disk, so that any writes are flushed through to the "
16699 "underlying disk image."
16703 #: ../fish/guestfish-actions.pod:4844 ../src/guestfs-actions.pod:7436
16705 "You should always call this if you have modified a disk image, before "
16706 "closing the handle."
16710 #: ../fish/guestfish-actions.pod:4847
16715 #: ../fish/guestfish-actions.pod:4849
16725 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7449
16727 "This command returns up to the last 10 lines of a file as a list of strings."
16731 #: ../fish/guestfish-actions.pod:4857
16736 #: ../fish/guestfish-actions.pod:4859
16739 " tail-n nrlines path\n"
16744 #: ../fish/guestfish-actions.pod:4861 ../src/guestfs-actions.pod:7468
16746 "If the parameter C<nrlines> is a positive number, this returns the last "
16747 "C<nrlines> lines of the file C<path>."
16751 #: ../fish/guestfish-actions.pod:4864 ../src/guestfs-actions.pod:7471
16753 "If the parameter C<nrlines> is a negative number, this returns lines from "
16754 "the file C<path>, starting with the C<-nrlines>th line."
16758 #: ../fish/guestfish-actions.pod:4872
16763 #: ../fish/guestfish-actions.pod:4874
16766 " tar-in (tarfile|-) directory\n"
16769 " tar-in (файл_tar|-) каталог\n"
16773 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7492
16775 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16776 "tar file) into C<directory>."
16780 #: ../fish/guestfish-actions.pod:4879
16781 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16785 #: ../fish/guestfish-actions.pod:4884
16790 #: ../fish/guestfish-actions.pod:4886
16793 " tar-out directory (tarfile|-)\n"
16796 " tar-out каталог (файл tar|-)\n"
16800 #: ../fish/guestfish-actions.pod:4888 ../src/guestfs-actions.pod:7509
16802 "This command packs the contents of C<directory> and downloads it to local "
16807 #: ../fish/guestfish-actions.pod:4891
16808 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16812 #: ../fish/guestfish-actions.pod:4896
16817 #: ../fish/guestfish-actions.pod:4898
16820 " tgz-in (tarball|-) directory\n"
16823 " tgz-in (архів tar|-) каталог\n"
16827 #: ../fish/guestfish-actions.pod:4900 ../src/guestfs-actions.pod:7526
16829 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16830 "tar file) into C<directory>."
16834 #: ../fish/guestfish-actions.pod:4903
16835 msgid "To upload an uncompressed tarball, use L</tar-in>."
16839 #: ../fish/guestfish-actions.pod:4907
16844 #: ../fish/guestfish-actions.pod:4909
16847 " tgz-out directory (tarball|-)\n"
16850 " tgz-out каталог (архів tar|-)\n"
16854 #: ../fish/guestfish-actions.pod:4911 ../src/guestfs-actions.pod:7542
16856 "This command packs the contents of C<directory> and downloads it to local "
16861 #: ../fish/guestfish-actions.pod:4914
16862 msgid "To download an uncompressed tarball, use L</tar-out>."
16866 #: ../fish/guestfish-actions.pod:4918
16871 #: ../fish/guestfish-actions.pod:4920
16881 #: ../fish/guestfish-actions.pod:4922 ../src/guestfs-actions.pod:7557
16883 "Touch acts like the L<touch(1)> command. It can be used to update the "
16884 "timestamps on a file, or, if the file does not exist, to create a new zero-"
16889 #: ../fish/guestfish-actions.pod:4926 ../src/guestfs-actions.pod:7561
16891 "This command only works on regular files, and will fail on other file types "
16892 "such as directories, symbolic links, block special etc."
16896 #: ../fish/guestfish-actions.pod:4929
16901 #: ../fish/guestfish-actions.pod:4931
16911 #: ../fish/guestfish-actions.pod:4933 ../src/guestfs-actions.pod:7574
16913 "This command truncates C<path> to a zero-length file. The file must exist "
16918 #: ../fish/guestfish-actions.pod:4936
16919 msgid "truncate-size"
16920 msgstr "truncate-size"
16923 #: ../fish/guestfish-actions.pod:4938
16926 " truncate-size path size\n"
16929 " truncate-size шлях розмір\n"
16933 #: ../fish/guestfish-actions.pod:4940 ../src/guestfs-actions.pod:7588
16935 "This command truncates C<path> to size C<size> bytes. The file must exist "
16940 #: ../fish/guestfish-actions.pod:4943
16942 "If the current file size is less than C<size> then the file is extended to "
16943 "the required size with zero bytes. This creates a sparse file (ie. disk "
16944 "blocks are not allocated for the file until you write to it). To create a "
16945 "non-sparse file of zeroes, use L</fallocate64> instead."
16949 #: ../fish/guestfish-actions.pod:4949
16954 #: ../fish/guestfish-actions.pod:4951
16957 " tune2fs-l device\n"
16960 " tune2fs-l пристрій\n"
16964 #: ../fish/guestfish-actions.pod:4953 ../src/guestfs-actions.pod:7607
16966 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16971 #: ../fish/guestfish-actions.pod:4956 ../src/guestfs-actions.pod:7610
16973 "It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage "
16974 "for more details. The list of fields returned isn't clearly defined, and "
16975 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16976 "and the filesystem itself."
16980 #: ../fish/guestfish-actions.pod:4961
16985 #: ../fish/guestfish-actions.pod:4963
16988 " txz-in (tarball|-) directory\n"
16991 " txz-in (архів tar|-) каталог\n"
16995 #: ../fish/guestfish-actions.pod:4965 ../src/guestfs-actions.pod:7630
16997 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16998 "tar file) into C<directory>."
17002 #: ../fish/guestfish-actions.pod:4970
17007 #: ../fish/guestfish-actions.pod:4972
17010 " txz-out directory (tarball|-)\n"
17013 " txz-out каталог (архів tar|-)\n"
17017 #: ../fish/guestfish-actions.pod:4974 ../src/guestfs-actions.pod:7644
17019 "This command packs the contents of C<directory> and downloads it to local "
17020 "file C<tarball> (as an xz compressed tar archive)."
17024 #: ../fish/guestfish-actions.pod:4979
17029 #: ../fish/guestfish-actions.pod:4981
17039 #: ../fish/guestfish-actions.pod:4983 ../src/guestfs-actions.pod:7657
17041 "This function sets the mask used for creating new files and device nodes to "
17046 #: ../fish/guestfish-actions.pod:4986 ../src/guestfs-actions.pod:7660
17048 "Typical umask values would be C<022> which creates new files with "
17049 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
17050 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
17054 #: ../fish/guestfish-actions.pod:4991 ../src/guestfs-actions.pod:7665
17056 "The default umask is C<022>. This is important because it means that "
17057 "directories and device nodes will be created with C<0644> or C<0755> mode "
17058 "even if you specify C<0777>."
17062 #: ../fish/guestfish-actions.pod:4995
17063 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17064 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17067 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7672
17068 msgid "This call returns the previous umask."
17072 #: ../fish/guestfish-actions.pod:5000
17077 #: ../fish/guestfish-actions.pod:5002
17082 #: ../fish/guestfish-actions.pod:5004
17085 " umount pathordevice\n"
17088 " umount шлях_або_пристрій\n"
17092 #: ../fish/guestfish-actions.pod:5006 ../src/guestfs-actions.pod:7684
17094 "This unmounts the given filesystem. The filesystem may be specified either "
17095 "by its mountpoint (path) or the device which contains the filesystem."
17099 #: ../fish/guestfish-actions.pod:5010
17101 msgstr "umount-all"
17104 #: ../fish/guestfish-actions.pod:5012
17105 msgid "unmount-all"
17106 msgstr "unmount-all"
17109 #: ../fish/guestfish-actions.pod:5014
17119 #: ../fish/guestfish-actions.pod:5016 ../src/guestfs-actions.pod:7697
17120 msgid "This unmounts all mounted filesystems."
17124 #: ../fish/guestfish-actions.pod:5018 ../src/guestfs-actions.pod:7699
17125 msgid "Some internal mounts are not unmounted by this call."
17129 #: ../fish/guestfish-actions.pod:5020
17134 #: ../fish/guestfish-actions.pod:5022
17137 " upload (filename|-) remotefilename\n"
17140 " upload (назва_файла|-) назва_віддаленого_файла\n"
17144 #: ../fish/guestfish-actions.pod:5024 ../fish/guestfish-actions.pod:5037
17145 #: ../src/guestfs-actions.pod:7712 ../src/guestfs-actions.pod:7736
17146 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17150 #: ../fish/guestfish-actions.pod:5029
17151 msgid "See also L</download>."
17152 msgstr "Див. також L</download>."
17155 #: ../fish/guestfish-actions.pod:5033
17156 msgid "upload-offset"
17157 msgstr "upload-offset"
17160 #: ../fish/guestfish-actions.pod:5035
17163 " upload-offset (filename|-) remotefilename offset\n"
17166 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
17170 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7739
17172 "C<remotefilename> is overwritten starting at the byte C<offset> specified. "
17173 "The intention is to overwrite parts of existing files or devices, although "
17174 "if a non-existant file is specified then it is created with a \"hole\" "
17175 "before C<offset>. The size of the data written is implicit in the size of "
17176 "the source C<filename>."
17180 #: ../fish/guestfish-actions.pod:5047
17182 "Note that there is no limit on the amount of data that can be uploaded with "
17183 "this call, unlike with L</pwrite>, and this call always writes the full "
17184 "amount unless an error occurs."
17188 #: ../fish/guestfish-actions.pod:5052
17189 msgid "See also L</upload>, L</pwrite>."
17190 msgstr "Див. також L</upload>, L</pwrite>."
17193 #: ../fish/guestfish-actions.pod:5056
17198 #: ../fish/guestfish-actions.pod:5058
17201 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
17206 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7772
17207 msgid "This command sets the timestamps of a file with nanosecond precision."
17211 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7775
17213 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17218 #: ../fish/guestfish-actions.pod:5066 ../src/guestfs-actions.pod:7778
17220 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17221 "nanoseconds from the epoch."
17225 #: ../fish/guestfish-actions.pod:5069 ../src/guestfs-actions.pod:7781
17227 "If the C<*nsecs> field contains the special value C<-1> then the "
17228 "corresponding timestamp is set to the current time. (The C<*secs> field is "
17229 "ignored in this case)."
17233 #: ../fish/guestfish-actions.pod:5073 ../src/guestfs-actions.pod:7785
17235 "If the C<*nsecs> field contains the special value C<-2> then the "
17236 "corresponding timestamp is left unchanged. (The C<*secs> field is ignored "
17241 #: ../fish/guestfish-actions.pod:5077
17246 #: ../fish/guestfish-actions.pod:5079
17256 #: ../fish/guestfish-actions.pod:5081 ../src/guestfs-actions.pod:7798
17258 "Return the libguestfs version number that the program is linked against."
17262 #: ../fish/guestfish-actions.pod:5084 ../src/guestfs-actions.pod:7801
17264 "Note that because of dynamic linking this is not necessarily the version of "
17265 "libguestfs that you compiled against. You can compile the program, and then "
17266 "at runtime dynamically link against a completely different C<libguestfs.so> "
17271 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7806
17273 "This call was added in version C<1.0.58>. In previous versions of "
17274 "libguestfs there was no way to get the version number. From C code you can "
17275 "use dynamic linker functions to find out if this symbol exists (if it "
17276 "doesn't, then it's an earlier version)."
17280 #: ../fish/guestfish-actions.pod:5095 ../src/guestfs-actions.pod:7812
17282 "The call returns a structure with four elements. The first three (C<major>, "
17283 "C<minor> and C<release>) are numbers and correspond to the usual version "
17284 "triplet. The fourth element (C<extra>) is a string and is normally empty, "
17285 "but may be used for distro-specific information."
17289 #: ../fish/guestfish-actions.pod:5101 ../src/guestfs-actions.pod:7818
17291 "To construct the original version string: C<$major.$minor.$release$extra>"
17295 #: ../fish/guestfish-actions.pod:5104 ../src/guestfs-actions.pod:7821
17296 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17297 msgstr "Див також: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17300 #: ../fish/guestfish-actions.pod:5106
17302 "I<Note:> Don't use this call to test for availability of features. In "
17303 "enterprise distributions we backport features from later versions into "
17304 "earlier versions, making this an unreliable way to test for features. Use "
17305 "L</available> instead."
17309 #: ../fish/guestfish-actions.pod:5112
17314 #: ../fish/guestfish-actions.pod:5114
17317 " vfs-label device\n"
17320 " vfs-label пристрій\n"
17324 #: ../fish/guestfish-actions.pod:5116 ../src/guestfs-actions.pod:7841
17325 msgid "This returns the filesystem label of the filesystem on C<device>."
17329 #: ../fish/guestfish-actions.pod:5119 ../src/guestfs-actions.pod:7844
17330 msgid "If the filesystem is unlabeled, this returns the empty string."
17334 #: ../fish/guestfish-actions.pod:5121
17335 msgid "To find a filesystem from the label, use L</findfs-label>."
17339 #: ../fish/guestfish-actions.pod:5123
17344 #: ../fish/guestfish-actions.pod:5125
17347 " vfs-type device\n"
17350 " vfs-type пристрій\n"
17354 #: ../fish/guestfish-actions.pod:5127 ../src/guestfs-actions.pod:7859
17356 "This command gets the filesystem type corresponding to the filesystem on "
17361 #: ../fish/guestfish-actions.pod:5130 ../src/guestfs-actions.pod:7862
17363 "For most filesystems, the result is the name of the Linux VFS module which "
17364 "would be used to mount this filesystem if you mounted it without specifying "
17365 "the filesystem type. For example a string such as C<ext3> or C<ntfs>."
17369 #: ../fish/guestfish-actions.pod:5135
17374 #: ../fish/guestfish-actions.pod:5137
17377 " vfs-uuid device\n"
17380 " vfs-uuid пристрій\n"
17384 #: ../fish/guestfish-actions.pod:5139 ../src/guestfs-actions.pod:7878
17385 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17389 #: ../fish/guestfish-actions.pod:5142 ../src/guestfs-actions.pod:7881
17390 msgid "If the filesystem does not have a UUID, this returns the empty string."
17394 #: ../fish/guestfish-actions.pod:5144
17395 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17399 #: ../fish/guestfish-actions.pod:5146
17400 msgid "vg-activate"
17401 msgstr "vg-activate"
17404 #: ../fish/guestfish-actions.pod:5148
17407 " vg-activate true|false 'volgroups ...'\n"
17412 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7897
17414 "This command activates or (if C<activate> is false) deactivates all logical "
17415 "volumes in the listed volume groups C<volgroups>."
17419 #: ../fish/guestfish-actions.pod:5153 ../src/guestfs-actions.pod:7900
17420 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17424 #: ../fish/guestfish-actions.pod:5155 ../src/guestfs-actions.pod:7902
17426 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17427 "activated or deactivated."
17431 #: ../fish/guestfish-actions.pod:5158
17432 msgid "vg-activate-all"
17433 msgstr "vg-activate-all"
17436 #: ../fish/guestfish-actions.pod:5160
17439 " vg-activate-all true|false\n"
17442 " vg-activate-all true|false\n"
17446 #: ../fish/guestfish-actions.pod:5162 ../src/guestfs-actions.pod:7915
17448 "This command activates or (if C<activate> is false) deactivates all logical "
17449 "volumes in all volume groups."
17453 #: ../fish/guestfish-actions.pod:5165 ../src/guestfs-actions.pod:7918
17454 msgid "This command is the same as running C<vgchange -a y|n>"
17458 #: ../fish/guestfish-actions.pod:5167
17463 #: ../fish/guestfish-actions.pod:5169
17466 " vgcreate volgroup 'physvols ...'\n"
17471 #: ../fish/guestfish-actions.pod:5171 ../src/guestfs-actions.pod:7931
17473 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17474 "of physical volumes C<physvols>."
17478 #: ../fish/guestfish-actions.pod:5174
17483 #: ../fish/guestfish-actions.pod:5176
17486 " vglvuuids vgname\n"
17491 #: ../fish/guestfish-actions.pod:5178 ../src/guestfs-actions.pod:7944
17493 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17494 "volumes created in this volume group."
17498 #: ../fish/guestfish-actions.pod:5181
17500 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17501 "logical volumes and volume groups."
17505 #: ../fish/guestfish-actions.pod:5184
17506 msgid "See also L</vgpvuuids>."
17507 msgstr "Див. також L</vgpvuuids>."
17510 #: ../fish/guestfish-actions.pod:5186
17515 #: ../fish/guestfish-actions.pod:5188
17518 " vgpvuuids vgname\n"
17523 #: ../fish/guestfish-actions.pod:5190 ../src/guestfs-actions.pod:7964
17525 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17526 "volumes that this volume group resides on."
17530 #: ../fish/guestfish-actions.pod:5193
17532 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17533 "physical volumes and volume groups."
17537 #: ../fish/guestfish-actions.pod:5196
17538 msgid "See also L</vglvuuids>."
17539 msgstr "Див. також L</vglvuuids>."
17542 #: ../fish/guestfish-actions.pod:5198
17547 #: ../fish/guestfish-actions.pod:5200
17550 " vgremove vgname\n"
17555 #: ../fish/guestfish-actions.pod:5202 ../src/guestfs-actions.pod:7984
17556 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17560 #: ../fish/guestfish-actions.pod:5204 ../src/guestfs-actions.pod:7986
17562 "This also forcibly removes all logical volumes in the volume group (if any)."
17566 #: ../fish/guestfish-actions.pod:5207
17571 #: ../fish/guestfish-actions.pod:5209
17574 " vgrename volgroup newvolgroup\n"
17579 #: ../fish/guestfish-actions.pod:5211 ../src/guestfs-actions.pod:8000
17580 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17584 #: ../fish/guestfish-actions.pod:5213
17589 #: ../fish/guestfish-actions.pod:5215
17599 #: ../fish/guestfish-actions.pod:5217 ../src/guestfs-actions.pod:8011
17601 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
17606 #: ../fish/guestfish-actions.pod:5220 ../src/guestfs-actions.pod:8014
17608 "This returns a list of just the volume group names that were detected (eg. "
17613 #: ../fish/guestfish-actions.pod:5223
17614 msgid "See also L</vgs-full>."
17615 msgstr "Див. також L</vgs-full>."
17618 #: ../fish/guestfish-actions.pod:5225
17623 #: ../fish/guestfish-actions.pod:5227
17633 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:8030
17635 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
17636 "> command. The \"full\" version includes all fields."
17640 #: ../fish/guestfish-actions.pod:5232
17645 #: ../fish/guestfish-actions.pod:5234
17655 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:8044
17657 "This rescans all block devices and rebuilds the list of LVM physical "
17658 "volumes, volume groups and logical volumes."
17662 #: ../fish/guestfish-actions.pod:5239
17667 #: ../fish/guestfish-actions.pod:5241
17675 #: ../fish/guestfish-actions.pod:5243 ../src/guestfs-actions.pod:8057
17676 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17680 #: ../fish/guestfish-actions.pod:5245
17685 #: ../fish/guestfish-actions.pod:5247
17695 #: ../fish/guestfish-actions.pod:5249 ../src/guestfs-actions.pod:8097
17697 "This command counts the characters in a file, using the C<wc -c> external "
17702 #: ../fish/guestfish-actions.pod:5252
17707 #: ../fish/guestfish-actions.pod:5254
17717 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8110
17719 "This command counts the lines in a file, using the C<wc -l> external command."
17723 #: ../fish/guestfish-actions.pod:5259
17728 #: ../fish/guestfish-actions.pod:5261
17738 #: ../fish/guestfish-actions.pod:5263 ../src/guestfs-actions.pod:8123
17740 "This command counts the words in a file, using the C<wc -w> external command."
17744 #: ../fish/guestfish-actions.pod:5266
17749 #: ../fish/guestfish-actions.pod:5268
17752 " write path content\n"
17755 " write шлях дані\n"
17759 #: ../fish/guestfish-actions.pod:5270 ../src/guestfs-actions.pod:8138
17761 "This call creates a file called C<path>. The content of the file is the "
17762 "string C<content> (which can contain any 8 bit data)."
17766 #: ../fish/guestfish-actions.pod:5273
17767 msgid "See also L</write-append>."
17768 msgstr "Див. також L</write-append>."
17771 #: ../fish/guestfish-actions.pod:5278
17772 msgid "write-append"
17776 #: ../fish/guestfish-actions.pod:5280
17779 " write-append path content\n"
17784 #: ../fish/guestfish-actions.pod:5282 ../src/guestfs-actions.pod:8158
17786 "This call appends C<content> to the end of file C<path>. If C<path> does "
17787 "not exist, then a new file is created."
17791 #: ../fish/guestfish-actions.pod:5285
17792 msgid "See also L</write>."
17793 msgstr "Див. також L</write>."
17796 #: ../fish/guestfish-actions.pod:5290
17798 msgstr "write-file"
17801 #: ../fish/guestfish-actions.pod:5292
17804 " write-file path content size\n"
17809 #: ../fish/guestfish-actions.pod:5294 ../src/guestfs-actions.pod:8185
17811 "This call creates a file called C<path>. The contents of the file is the "
17812 "string C<content> (which can contain any 8 bit data), with length C<size>."
17816 #: ../fish/guestfish-actions.pod:5298 ../src/guestfs-actions.pod:8189
17818 "As a special case, if C<size> is C<0> then the length is calculated using "
17819 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17823 #: ../fish/guestfish-actions.pod:5302 ../src/guestfs-actions.pod:8193
17825 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17826 "I<not> work, even if the length is specified."
17830 #: ../fish/guestfish-actions.pod:5308
17832 "I<This function is deprecated.> In new code, use the L</write> call instead."
17836 #: ../fish/guestfish-actions.pod:5315
17841 #: ../fish/guestfish-actions.pod:5317
17844 " zegrep regex path\n"
17847 " zegrep формальний_вираз шлях\n"
17851 #: ../fish/guestfish-actions.pod:5319 ../src/guestfs-actions.pod:8210
17853 "This calls the external C<zegrep> program and returns the matching lines."
17857 #: ../fish/guestfish-actions.pod:5325
17862 #: ../fish/guestfish-actions.pod:5327
17865 " zegrepi regex path\n"
17870 #: ../fish/guestfish-actions.pod:5329 ../src/guestfs-actions.pod:8229
17872 "This calls the external C<zegrep -i> program and returns the matching lines."
17876 #: ../fish/guestfish-actions.pod:5335
17881 #: ../fish/guestfish-actions.pod:5337
17891 #: ../fish/guestfish-actions.pod:5339 ../src/guestfs-actions.pod:8247
17892 msgid "This command writes zeroes over the first few blocks of C<device>."
17896 #: ../fish/guestfish-actions.pod:5341 ../src/guestfs-actions.pod:8249
17898 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17899 "securely wipe the device). It should be sufficient to remove any partition "
17900 "tables, filesystem superblocks and so on."
17904 #: ../fish/guestfish-actions.pod:5345 ../fish/guestfish-actions.pod:5360
17905 #: ../src/guestfs-actions.pod:8253 ../src/guestfs-actions.pod:8279
17907 "If blocks are already zero, then this command avoids writing zeroes. This "
17908 "prevents the underlying device from becoming non-sparse or growing "
17913 #: ../fish/guestfish-actions.pod:5349
17914 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17918 #: ../fish/guestfish-actions.pod:5352
17919 msgid "zero-device"
17920 msgstr "zero-device"
17923 #: ../fish/guestfish-actions.pod:5354
17926 " zero-device device\n"
17929 " zero-device пристрій\n"
17933 #: ../fish/guestfish-actions.pod:5356
17935 "This command writes zeroes over the entire C<device>. Compare with L</zero> "
17936 "which just zeroes the first few blocks of a device."
17940 #: ../fish/guestfish-actions.pod:5367
17945 #: ../fish/guestfish-actions.pod:5369
17948 " zerofree device\n"
17951 " zerofree пристрій\n"
17955 #: ../fish/guestfish-actions.pod:5371 ../src/guestfs-actions.pod:8301
17957 "This runs the I<zerofree> program on C<device>. This program claims to zero "
17958 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17959 "possible to compress the filesystem more effectively."
17963 #: ../fish/guestfish-actions.pod:5376 ../src/guestfs-actions.pod:8306
17964 msgid "You should B<not> run this program if the filesystem is mounted."
17968 #: ../fish/guestfish-actions.pod:5379 ../src/guestfs-actions.pod:8309
17970 "It is possible that using this program can damage the filesystem or data on "
17975 #: ../fish/guestfish-actions.pod:5382
17980 #: ../fish/guestfish-actions.pod:5384
17983 " zfgrep pattern path\n"
17986 " zfgrep шаблон шлях\n"
17990 #: ../fish/guestfish-actions.pod:5386 ../src/guestfs-actions.pod:8323
17992 "This calls the external C<zfgrep> program and returns the matching lines."
17996 #: ../fish/guestfish-actions.pod:5392
18001 #: ../fish/guestfish-actions.pod:5394
18004 " zfgrepi pattern path\n"
18007 " zfgrepi шаблон шлях\n"
18011 #: ../fish/guestfish-actions.pod:5396 ../src/guestfs-actions.pod:8342
18013 "This calls the external C<zfgrep -i> program and returns the matching lines."
18017 #: ../fish/guestfish-actions.pod:5402
18022 #: ../fish/guestfish-actions.pod:5404
18025 " zfile meth path\n"
18028 " zfile метод шлях\n"
18032 #: ../fish/guestfish-actions.pod:5406 ../src/guestfs-actions.pod:8368
18034 "This command runs C<file> after first decompressing C<path> using C<method>."
18038 #: ../fish/guestfish-actions.pod:5409 ../src/guestfs-actions.pod:8371
18039 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
18043 #: ../fish/guestfish-actions.pod:5411
18045 "Since 1.0.63, use L</file> instead which can now process compressed files."
18049 #: ../fish/guestfish-actions.pod:5414
18051 "I<This function is deprecated.> In new code, use the L</file> call instead."
18055 #: ../fish/guestfish-actions.pod:5421
18060 #: ../fish/guestfish-actions.pod:5423
18063 " zgrep regex path\n"
18066 " zgrep формальний_вираз шлях\n"
18070 #: ../fish/guestfish-actions.pod:5425 ../src/guestfs-actions.pod:8388
18072 "This calls the external C<zgrep> program and returns the matching lines."
18076 #: ../fish/guestfish-actions.pod:5431
18081 #: ../fish/guestfish-actions.pod:5433
18084 " zgrepi regex path\n"
18087 " zgrepi формальний_вираз шлях\n"
18091 #: ../fish/guestfish-actions.pod:5435 ../src/guestfs-actions.pod:8407
18093 "This calls the external C<zgrep -i> program and returns the matching lines."
18097 #: ../fish/guestfish-commands.pod:1
18102 #: ../fish/guestfish-commands.pod:3
18107 #: ../fish/guestfish-commands.pod:5
18110 " alloc filename size\n"
18115 #: ../fish/guestfish-commands.pod:7
18117 "This creates an empty (zeroed) file of the given size, and then adds so it "
18118 "can be further examined."
18122 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
18123 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
18127 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
18128 msgid "Size can be specified using standard suffixes, eg. C<1M>."
18132 #: ../fish/guestfish-commands.pod:14
18134 "To create a sparse file, use L</sparse> instead. To create a prepared disk "
18135 "image, see L</PREPARED DISK IMAGES>."
18139 #: ../fish/guestfish-commands.pod:17
18144 #: ../fish/guestfish-commands.pod:19
18147 " copy-in local [local ...] /remotedir\n"
18152 #: ../fish/guestfish-commands.pod:21
18154 "C<copy-in> copies local files or directories recursively into the disk "
18155 "image, placing them in the directory called C</remotedir> (which must "
18156 "exist). This guestfish meta-command turns into a sequence of L</tar-in> and "
18157 "other commands as necessary."
18161 #: ../fish/guestfish-commands.pod:26
18163 "Multiple local files and directories can be specified, but the last "
18164 "parameter must always be a remote directory. Wildcards cannot be used."
18168 #: ../fish/guestfish-commands.pod:30
18173 #: ../fish/guestfish-commands.pod:32
18176 " copy-out remote [remote ...] localdir\n"
18181 #: ../fish/guestfish-commands.pod:34
18183 "C<copy-out> copies remote files or directories recursively out of the disk "
18184 "image, placing them on the host disk in a local directory called C<localdir> "
18185 "(which must exist). This guestfish meta-command turns into a sequence of L</"
18186 "download>, L</tar-out> and other commands as necessary."
18190 #: ../fish/guestfish-commands.pod:40
18192 "Multiple remote files and directories can be specified, but the last "
18193 "parameter must always be a local directory. To download to the current "
18194 "directory, use C<.> as in:"
18198 #: ../fish/guestfish-commands.pod:44
18201 " copy-out /home .\n"
18204 " copy-out /home .\n"
18208 #: ../fish/guestfish-commands.pod:46
18210 "Wildcards cannot be used in the ordinary command, but you can use them with "
18211 "the help of L</glob> like this:"
18215 #: ../fish/guestfish-commands.pod:49
18218 " glob copy-out /home/* .\n"
18221 " glob copy-out /home/* .\n"
18225 #: ../fish/guestfish-commands.pod:51
18230 #: ../fish/guestfish-commands.pod:53
18233 " display filename\n"
18238 #: ../fish/guestfish-commands.pod:55
18240 "Use C<display> (a graphical display program) to display an image file. It "
18241 "downloads the file, and runs C<display> on it."
18245 #: ../fish/guestfish-commands.pod:58
18247 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18248 "environment variable. For example to use the GNOME display program:"
18252 #: ../fish/guestfish-commands.pod:61
18255 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18260 #: ../fish/guestfish-commands.pod:63
18261 msgid "See also L<display(1)>."
18262 msgstr "Див. також L<display(1)>."
18265 #: ../fish/guestfish-commands.pod:65
18270 #: ../fish/guestfish-commands.pod:67
18273 " echo [params ...]\n"
18276 " echo [параметри...]\n"
18280 #: ../fish/guestfish-commands.pod:69
18281 msgid "This echos the parameters to the terminal."
18285 #: ../fish/guestfish-commands.pod:71
18290 #: ../fish/guestfish-commands.pod:73
18295 #: ../fish/guestfish-commands.pod:75
18300 #: ../fish/guestfish-commands.pod:77
18306 " edit назва_файла\n"
18310 #: ../fish/guestfish-commands.pod:79
18312 "This is used to edit a file. It downloads the file, edits it locally using "
18313 "your editor, then uploads the result."
18317 #: ../fish/guestfish-commands.pod:82
18319 "The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
18320 "or C<emacs> you will get those corresponding editors."
18324 #: ../fish/guestfish-commands.pod:86
18329 #: ../fish/guestfish-commands.pod:88
18332 " glob command args...\n"
18335 " glob команда параметри...\n"
18339 #: ../fish/guestfish-commands.pod:90
18341 "Expand wildcards in any paths in the args list, and run C<command> "
18342 "repeatedly on each matching path."
18346 #: ../fish/guestfish-commands.pod:93
18347 msgid "See L</WILDCARDS AND GLOBBING>."
18348 msgstr "Див. L</WILDCARDS AND GLOBBING>."
18351 #: ../fish/guestfish-commands.pod:95
18356 #: ../fish/guestfish-commands.pod:97
18359 " hexedit <filename|device>\n"
18360 " hexedit <filename|device> <max>\n"
18361 " hexedit <filename|device> <start> <max>\n"
18366 #: ../fish/guestfish-commands.pod:101
18368 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18373 #: ../fish/guestfish-commands.pod:104
18375 "This command works by downloading potentially the whole file or device, "
18376 "editing it locally, then uploading it. If the file or device is large, you "
18377 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18378 "C<max> parameters. C<start> and C<max> are specified in bytes, with the "
18379 "usual modifiers allowed such as C<1M> (1 megabyte)."
18383 #: ../fish/guestfish-commands.pod:111
18384 msgid "For example to edit the first few sectors of a disk you might do:"
18388 #: ../fish/guestfish-commands.pod:114
18391 " hexedit /dev/sda 1M\n"
18394 " hexedit /dev/sda 1M\n"
18398 #: ../fish/guestfish-commands.pod:116
18400 "which would allow you to edit anywhere within the first megabyte of the disk."
18404 #: ../fish/guestfish-commands.pod:119
18405 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18409 #: ../fish/guestfish-commands.pod:121
18412 " hexedit /dev/sda1 0x400 0x400\n"
18415 " hexedit /dev/sda1 0x400 0x400\n"
18419 #: ../fish/guestfish-commands.pod:123
18420 msgid "(assuming the superblock is in the standard location)."
18424 #: ../fish/guestfish-commands.pod:125
18426 "This command requires the external L<hexedit(1)> program. You can specify "
18427 "another program to use by setting the C<HEXEDITOR> environment variable."
18431 #: ../fish/guestfish-commands.pod:129
18432 msgid "See also L</hexdump>."
18433 msgstr "Див. також L</hexdump>."
18436 #: ../fish/guestfish-commands.pod:131
18441 #: ../fish/guestfish-commands.pod:133
18449 #: ../fish/guestfish-commands.pod:135
18451 "Change the local directory, ie. the current directory of guestfish itself."
18455 #: ../fish/guestfish-commands.pod:138
18456 msgid "Note that C<!cd> won't do what you might expect."
18460 #: ../fish/guestfish-commands.pod:140
18465 #: ../fish/guestfish-commands.pod:142
18470 #: ../fish/guestfish-commands.pod:144
18480 #: ../fish/guestfish-commands.pod:146
18481 msgid "Opens the manual page for guestfish."
18485 #: ../fish/guestfish-commands.pod:148
18490 #: ../fish/guestfish-commands.pod:150
18495 #: ../fish/guestfish-commands.pod:152
18503 #: ../fish/guestfish-commands.pod:154
18511 #: ../fish/guestfish-commands.pod:156
18512 msgid "This is used to view a file."
18516 #: ../fish/guestfish-commands.pod:158
18518 "The default viewer is C<$PAGER>. However if you use the alternate command "
18519 "C<less> you will get the C<less> command specifically."
18523 #: ../fish/guestfish-commands.pod:161
18528 #: ../fish/guestfish-commands.pod:163
18536 #: ../fish/guestfish-commands.pod:165
18538 "Close and reopen the libguestfs handle. It is not necessary to use this "
18539 "normally, because the handle is closed properly when guestfish exits. "
18540 "However this is occasionally useful for testing."
18544 #: ../fish/guestfish-commands.pod:169
18549 #: ../fish/guestfish-commands.pod:171
18552 " setenv VAR value\n"
18557 #: ../fish/guestfish-commands.pod:173
18558 msgid "Set the environment variable C<VAR> to the string C<value>."
18562 #: ../fish/guestfish-commands.pod:175
18564 "To print the value of an environment variable use a shell command such as:"
18568 #: ../fish/guestfish-commands.pod:178
18576 #: ../fish/guestfish-commands.pod:180
18581 #: ../fish/guestfish-commands.pod:182
18584 " sparse filename size\n"
18589 #: ../fish/guestfish-commands.pod:184
18591 "This creates an empty sparse file of the given size, and then adds so it can "
18592 "be further examined."
18596 #: ../fish/guestfish-commands.pod:187
18598 "In all respects it works the same as the L</alloc> command, except that the "
18599 "image file is allocated sparsely, which means that disk blocks are not "
18600 "assigned to the file until they are needed. Sparse disk files only use "
18601 "space when written to, but they are slower and there is a danger you could "
18602 "run out of real disk space during a write operation."
18606 #: ../fish/guestfish-commands.pod:197
18611 #: ../fish/guestfish-commands.pod:199
18621 #: ../fish/guestfish-commands.pod:201
18623 "This command returns a list of the optional groups known to the daemon, and "
18624 "indicates which ones are supported by this build of the libguestfs appliance."
18628 #: ../fish/guestfish-commands.pod:205
18629 msgid "See also L<guestfs(3)/AVAILABILITY>."
18630 msgstr "Див. також L<guestfs(3)/AVAILABILITY>."
18633 #: ../fish/guestfish-commands.pod:207
18638 #: ../fish/guestfish-commands.pod:209
18641 " time command args...\n"
18646 #: ../fish/guestfish-commands.pod:211
18648 "Run the command as usual, but print the elapsed time afterwards. This can "
18649 "be useful for benchmarking operations."
18653 #: ../fish/guestfish-commands.pod:214
18658 #: ../fish/guestfish-commands.pod:216
18666 #: ../fish/guestfish-commands.pod:218
18667 msgid "Remove C<VAR> from the environment."
18671 #: ../fish/guestfish.pod:5
18672 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18676 #: ../fish/guestfish.pod:9
18679 " guestfish [--options] [commands]\n"
18684 #: ../fish/guestfish.pod:11
18692 #: ../fish/guestfish.pod:13
18695 " guestfish [--ro|--rw] -a disk.img\n"
18700 #: ../fish/guestfish.pod:15
18703 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18708 #: ../fish/guestfish.pod:17
18711 " guestfish -d libvirt-domain\n"
18716 #: ../fish/guestfish.pod:19
18719 " guestfish [--ro|--rw] -a disk.img -i\n"
18724 #: ../fish/guestfish.pod:21
18727 " guestfish -d libvirt-domain -i\n"
18732 #: ../fish/guestfish.pod:25
18734 "Using guestfish in read/write mode on live virtual machines can be "
18735 "dangerous, potentially causing disk corruption. Use the I<--ro> (read-only) "
18736 "option to use guestfish safely if the disk image or virtual machine might be "
18741 #: ../fish/guestfish.pod:32
18743 "Guestfish is a shell and command-line tool for examining and modifying "
18744 "virtual machine filesystems. It uses libguestfs and exposes all of the "
18745 "functionality of the guestfs API, see L<guestfs(3)>."
18749 #: ../fish/guestfish.pod:36
18751 "Guestfish gives you structured access to the libguestfs API, from shell "
18752 "scripts or the command line or interactively. If you want to rescue a "
18753 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18758 #: ../fish/guestfish.pod:43
18759 msgid "As an interactive shell"
18763 #: ../fish/guestfish.pod:45
18771 #: ../fish/guestfish.pod:47
18774 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18775 " editing virtual machine filesystems.\n"
18780 #: ../fish/guestfish.pod:50
18783 " Type: 'help' for a list of commands\n"
18784 " 'man' to read the manual\n"
18785 " 'quit' to quit the shell\n"
18790 #: ../fish/guestfish.pod:54
18793 " ><fs> add-ro disk.img\n"
18795 " ><fs> list-filesystems\n"
18796 " /dev/sda1: ext4\n"
18797 " /dev/vg_guest/lv_root: ext4\n"
18798 " /dev/vg_guest/lv_swap: swap\n"
18799 " ><fs> mount /dev/vg_guest/lv_root /\n"
18800 " ><fs> cat /etc/fstab\n"
18802 " # Created by anaconda\n"
18809 #: ../fish/guestfish.pod:67
18810 msgid "From shell scripts"
18814 #: ../fish/guestfish.pod:69
18815 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18819 #: ../fish/guestfish.pod:71
18822 " guestfish <<_EOF_\n"
18825 " mount /dev/vg_guest/lv_root /\n"
18826 " write /etc/motd \"Welcome, new users\"\n"
18832 #: ../fish/guestfish.pod:78
18833 msgid "List the LVM logical volumes in a disk image:"
18837 #: ../fish/guestfish.pod:80
18840 " guestfish -a disk.img --ro <<_EOF_\n"
18848 #: ../fish/guestfish.pod:85
18849 msgid "List all the filesystems in a disk image:"
18853 #: ../fish/guestfish.pod:87
18856 " guestfish -a disk.img --ro <<_EOF_\n"
18858 " list-filesystems\n"
18864 #: ../fish/guestfish.pod:92
18865 msgid "On one command line"
18869 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18870 msgid "Update C</etc/resolv.conf> in a guest:"
18874 #: ../fish/guestfish.pod:96
18878 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18879 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18884 #: ../fish/guestfish.pod:100
18885 msgid "Edit C</boot/grub/grub.conf> interactively:"
18889 #: ../fish/guestfish.pod:102
18892 " guestfish --rw --add disk.img \\\n"
18893 " --mount /dev/vg_guest/lv_root \\\n"
18894 " --mount /dev/sda1:/boot \\\n"
18895 " edit /boot/grub/grub.conf\n"
18900 #: ../fish/guestfish.pod:107
18901 msgid "Mount disks automatically"
18905 #: ../fish/guestfish.pod:109
18907 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
18911 #: ../fish/guestfish.pod:112
18914 " guestfish --ro -a disk.img -i cat /etc/group\n"
18919 #: ../fish/guestfish.pod:114
18922 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18927 #: ../fish/guestfish.pod:116
18928 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18932 #: ../fish/guestfish.pod:118
18935 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18940 #: ../fish/guestfish.pod:120
18941 msgid "As a script interpreter"
18945 #: ../fish/guestfish.pod:122
18946 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18950 #: ../fish/guestfish.pod:124
18953 " #!/usr/bin/guestfish -f\n"
18954 " sparse test1.img 100M\n"
18956 " part-disk /dev/sda mbr\n"
18957 " mkfs ext2 /dev/sda1\n"
18962 #: ../fish/guestfish.pod:130
18963 msgid "Start with a prepared disk"
18967 #: ../fish/guestfish.pod:132
18969 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18970 "single ext2-formatted partition:"
18974 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
18977 " guestfish -N fs\n"
18982 #: ../fish/guestfish.pod:137
18983 msgid "To list what is available do:"
18987 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18990 " guestfish -N help | less\n"
18995 #: ../fish/guestfish.pod:141
18996 msgid "Remote control"
18997 msgstr "Дистанційне керування"
19000 #: ../fish/guestfish.pod:143
19003 " eval \"`guestfish --listen`\"\n"
19004 " guestfish --remote add-ro disk.img\n"
19005 " guestfish --remote run\n"
19006 " guestfish --remote lvs\n"
19009 " eval \"`guestfish --listen`\"\n"
19010 " guestfish --remote add-ro disk.img\n"
19011 " guestfish --remote run\n"
19012 " guestfish --remote lvs\n"
19016 #: ../fish/guestfish.pod:154
19017 msgid "Displays general help on options."
19021 #: ../fish/guestfish.pod:158
19022 msgid "B<--cmd-help>"
19023 msgstr "B<--cmd-help>"
19026 #: ../fish/guestfish.pod:160
19027 msgid "Lists all available guestfish commands."
19031 #: ../fish/guestfish.pod:162
19033 msgstr "B<-h команда>"
19036 #: ../fish/guestfish.pod:164
19037 msgid "B<--cmd-help cmd>"
19038 msgstr "B<--cmd-help команда>"
19041 #: ../fish/guestfish.pod:166
19042 msgid "Displays detailed help on a single command C<cmd>."
19046 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
19047 msgid "B<-a image>"
19048 msgstr "B<-a образ>"
19051 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
19052 msgid "B<--add image>"
19053 msgstr "B<--add образ>"
19056 #: ../fish/guestfish.pod:172
19057 msgid "Add a block device or virtual machine image to the shell."
19061 #: ../fish/guestfish.pod:177
19063 "Using this flag is mostly equivalent to using the C<add> command, with "
19064 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
19065 "the I<--format=...> flag was given."
19069 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
19071 "When used in conjunction with the I<-d> option, this specifies the libvirt "
19072 "URI to use. The default is to use the default libvirt connection."
19076 #: ../fish/guestfish.pod:189
19081 #: ../fish/guestfish.pod:191
19083 "If using the I<--listen> option and a csh-like shell, use this option. See "
19084 "section L</REMOTE CONTROL AND CSH> below."
19088 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
19089 msgid "B<-d libvirt-domain>"
19090 msgstr "B<-d домен-libvirt>"
19093 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
19094 msgid "B<--domain libvirt-domain>"
19095 msgstr "B<--domain домен-libvirt>"
19098 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
19100 "Add disks from the named libvirt domain. If the I<--ro> option is also "
19101 "used, then any libvirt domain can be used. However in write mode, only "
19102 "libvirt domains which are shut down can be named here."
19106 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
19107 msgid "Domain UUIDs can be used instead of names."
19111 #: ../fish/guestfish.pod:204
19113 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19114 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19115 "if the I<--format:...> flag was given."
19119 #: ../fish/guestfish.pod:208
19124 #: ../fish/guestfish.pod:210
19125 msgid "B<--no-dest-paths>"
19126 msgstr "B<--no-dest-paths>"
19129 #: ../fish/guestfish.pod:212
19131 "Don't tab-complete paths on the guest filesystem. It is useful to be able "
19132 "to hit the tab key to complete paths on the guest filesystem, but this "
19133 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19134 "allow this feature to be disabled."
19138 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
19140 "When prompting for keys and passphrases, guestfish normally turns echoing "
19141 "off so you cannot see what you are typing. If you are not worried about "
19142 "Tempest attacks and there is no one else in the room you can specify this "
19143 "flag to see what you are typing."
19147 #: ../fish/guestfish.pod:224
19149 msgstr "B<-f файл>"
19152 #: ../fish/guestfish.pod:226
19153 msgid "B<--file file>"
19154 msgstr "B<--file файл>"
19157 #: ../fish/guestfish.pod:228
19158 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
19162 #: ../fish/guestfish.pod:231
19165 " #!/usr/bin/guestfish -f\n"
19168 " #!/usr/bin/guestfish -f\n"
19172 #: ../fish/guestfish.pod:244
19175 " guestfish --format=raw -a disk.img\n"
19178 " guestfish --format=raw -a disk.img\n"
19182 #: ../fish/guestfish.pod:248
19185 " guestfish --format=raw -a disk.img --format -a another.img\n"
19188 " guestfish --format=raw -a disk.img --format -a another.img\n"
19192 #: ../fish/guestfish.pod:253
19194 "If you have untrusted raw-format guest disk images, you should use this "
19195 "option to specify the disk format. This avoids a possible security problem "
19196 "with malicious guests (CVE-2010-3851). See also L</add-drive-opts>."
19200 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
19201 msgid "B<--inspector>"
19202 msgstr "B<--inspector>"
19205 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
19207 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19208 "system and mount filesystems as they would be mounted on the real virtual "
19213 #: ../fish/guestfish.pod:266
19214 msgid "Typical usage is either:"
19218 #: ../fish/guestfish.pod:268
19221 " guestfish -d myguest -i\n"
19224 " guestfish -d myguest -i\n"
19228 #: ../fish/guestfish.pod:270
19229 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19233 #: ../fish/guestfish.pod:272
19236 " guestfish --ro -d myguest -i\n"
19239 " guestfish --ro -d myguest -i\n"
19243 #: ../fish/guestfish.pod:274
19244 msgid "(for active domains, readonly), or specify the block device directly:"
19248 #: ../fish/guestfish.pod:276
19251 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19254 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19258 #: ../fish/guestfish.pod:278
19260 "Note that the command line syntax changed slightly over older versions of "
19261 "guestfish. You can still use the old syntax:"
19265 #: ../fish/guestfish.pod:281
19268 " guestfish [--ro] -i disk.img\n"
19271 " guestfish [--ro] -i disk.img\n"
19275 #: ../fish/guestfish.pod:283
19278 " guestfish [--ro] -i libvirt-domain\n"
19283 #: ../fish/guestfish.pod:285
19285 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19286 "then using other commands to mount the filesystems that were found."
19290 #: ../fish/guestfish.pod:294
19291 msgid "B<--listen>"
19292 msgstr "B<--listen>"
19295 #: ../fish/guestfish.pod:296
19297 "Fork into the background and listen for remote commands. See section L</"
19298 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19302 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19307 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19309 "Connect to a live virtual machine. (Experimental, see L<guestfs(3)/"
19310 "ATTACHING TO RUNNING DAEMONS>)."
19314 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19315 msgid "B<-m dev[:mountpoint[:options]]>"
19316 msgstr "B<-m пристрій[:точка_монтування[:параметри]]>"
19319 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19320 msgid "B<--mount dev[:mountpoint[:options]]>"
19321 msgstr "B<--mount пристрій[:точка_монтування[:параметри]]>"
19324 #: ../fish/guestfish.pod:308
19325 msgid "Mount the named partition or logical volume on the given mountpoint."
19329 #: ../fish/guestfish.pod:310
19330 msgid "If the mountpoint is omitted, it defaults to C</>."
19334 #: ../fish/guestfish.pod:312
19335 msgid "You have to mount something on C</> before most commands will work."
19339 #: ../fish/guestfish.pod:314
19341 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19346 #: ../fish/guestfish.pod:317
19348 "If you don't know what filesystems a disk image contains, you can either run "
19349 "guestfish without this option, then list the partitions, filesystems and LVs "
19350 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19351 "commands), or you can use the L<virt-filesystems(1)> program."
19355 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19357 "The third (and rarely used) part of the mount parameter is the list of mount "
19358 "options used to mount the underlying filesystem. If this is not given, then "
19359 "the mount options are either the empty string or C<ro> (the latter if the "
19360 "I<--ro> flag is used). By specifying the mount options, you override this "
19361 "default choice. Probably the only time you would use this is to enable ACLs "
19362 "and/or extended attributes if the filesystem can support them:"
19366 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19369 " -m /dev/sda1:/:acl,user_xattr\n"
19374 #: ../fish/guestfish.pod:333
19375 msgid "Using this flag is equivalent to using the C<mount-options> command."
19379 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
19380 #: ../resize/virt-resize.pod:435
19385 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19386 msgid "B<--no-sync>"
19387 msgstr "B<--no-sync>"
19390 #: ../fish/guestfish.pod:339
19392 "Disable autosync. This is enabled by default. See the discussion of "
19393 "autosync in the L<guestfs(3)> manpage."
19397 #: ../fish/guestfish.pod:342
19402 #: ../fish/guestfish.pod:344
19403 msgid "B<--new type>"
19404 msgstr "B<--new тип>"
19407 #: ../fish/guestfish.pod:346
19409 msgstr "B<-N help>"
19412 #: ../fish/guestfish.pod:348
19414 "Prepare a fresh disk image formatted as \"type\". This is an alternative to "
19415 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19416 "preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
19421 #: ../fish/guestfish.pod:353
19422 msgid "B<--progress-bars>"
19423 msgstr "B<--progress-bars>"
19426 #: ../fish/guestfish.pod:355
19427 msgid "Enable progress bars, even when guestfish is used non-interactively."
19431 #: ../fish/guestfish.pod:357
19433 "Progress bars are enabled by default when guestfish is used as an "
19434 "interactive shell."
19438 #: ../fish/guestfish.pod:360
19439 msgid "B<--no-progress-bars>"
19440 msgstr "B<--no-progress-bars>"
19443 #: ../fish/guestfish.pod:362
19444 msgid "Disable progress bars."
19448 #: ../fish/guestfish.pod:364
19449 msgid "B<--remote[=pid]>"
19450 msgstr "B<--remote[=pid]>"
19453 #: ../fish/guestfish.pod:366
19455 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
19456 "CONTROL GUESTFISH OVER A SOCKET> below."
19460 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
19461 #: ../rescue/virt-rescue.pod:161
19466 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
19467 #: ../rescue/virt-rescue.pod:163
19472 #: ../fish/guestfish.pod:373
19474 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19475 "mounts are done read-only."
19479 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
19481 "The option must always be used if the disk image or virtual machine might be "
19482 "running, and is generally recommended in cases where you don't need write "
19483 "access to the disk."
19487 #: ../fish/guestfish.pod:380
19489 "Note that prepared disk images created with I<-N> are not affected by this "
19490 "option. Also commands like C<add> are not affected - you have to specify "
19491 "the C<readonly:true> option explicitly if you need it."
19495 #: ../fish/guestfish.pod:384
19496 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19500 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
19501 #: ../rescue/virt-rescue.pod:173
19502 msgid "B<--selinux>"
19503 msgstr "B<--selinux>"
19506 #: ../fish/guestfish.pod:388
19507 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
19511 #: ../fish/guestfish.pod:394
19513 "Enable very verbose messages. This is particularly useful if you find a bug."
19517 #: ../fish/guestfish.pod:401
19518 msgid "Display the guestfish / libguestfs version number and exit."
19522 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
19523 #: ../rescue/virt-rescue.pod:194
19528 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
19529 #: ../rescue/virt-rescue.pod:196
19534 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19536 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19537 "mounts are done read-write."
19541 #: ../fish/guestfish.pod:410
19542 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19546 #: ../fish/guestfish.pod:414
19547 msgid "Echo each command before executing it."
19551 #: ../fish/guestfish.pod:418
19552 msgid "COMMANDS ON COMMAND LINE"
19556 #: ../fish/guestfish.pod:420
19558 "Any additional (non-option) arguments are treated as commands to execute."
19562 #: ../fish/guestfish.pod:423
19564 "Commands to execute should be separated by a colon (C<:>), where the colon "
19565 "is a separate parameter. Thus:"
19569 #: ../fish/guestfish.pod:426
19572 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19577 #: ../fish/guestfish.pod:428
19579 "If there are no additional arguments, then we enter a shell, either an "
19580 "interactive shell with a prompt (if the input is a terminal) or a non-"
19581 "interactive shell."
19585 #: ../fish/guestfish.pod:432
19587 "In either command line mode or non-interactive shell, the first command that "
19588 "gives an error causes the whole shell to exit. In interactive mode (with a "
19589 "prompt) if a command fails, you can continue to enter commands."
19593 #: ../fish/guestfish.pod:437
19594 msgid "USING launch (OR run)"
19598 #: ../fish/guestfish.pod:439
19600 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19601 "then launch it, then mount any disks you need, and finally issue actions/"
19602 "commands. So the general order of the day is:"
19606 #: ../fish/guestfish.pod:447
19607 msgid "add or -a/--add"
19611 #: ../fish/guestfish.pod:451
19612 msgid "launch (aka run)"
19616 #: ../fish/guestfish.pod:455
19617 msgid "mount or -m/--mount"
19621 #: ../fish/guestfish.pod:459
19622 msgid "any other commands"
19626 #: ../fish/guestfish.pod:463
19628 "C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
19629 "guest before mounting or performing any other commands."
19633 #: ../fish/guestfish.pod:466
19635 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19636 "I<--new> options were given then C<run> is done automatically, simply "
19637 "because guestfish can't perform the action you asked for without doing this."
19641 #: ../fish/guestfish.pod:471
19642 msgid "OPENING DISKS FOR READ AND WRITE"
19646 #: ../fish/guestfish.pod:473
19648 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19649 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19650 "I<-i> and I<-m> open disk images read-only or for writing."
19654 #: ../fish/guestfish.pod:478
19656 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19657 "opening disk images supplied on the command line for write. To open a disk "
19658 "image read-only you have to do I<-a image --ro>."
19662 #: ../fish/guestfish.pod:482
19664 "This matters: If you accidentally open a live VM disk image writable then "
19665 "you will cause irreversible disk corruption."
19669 #: ../fish/guestfish.pod:485
19671 "In a future libguestfs we intend to change the default the other way. Disk "
19672 "images will be opened read-only. You will have to either specify "
19673 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19674 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19675 "access for disk images specified by those other command line options."
19679 #: ../fish/guestfish.pod:492
19681 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19682 "which does nothing (it is already the default). However it is highly "
19683 "recommended that you use this option to indicate that you need write access, "
19684 "and prepare your scripts for the day when this option will be required for "
19689 #: ../fish/guestfish.pod:498
19691 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19692 "other libguestfs program apart from guestfish and guestmount."
19696 #: ../fish/guestfish.pod:501
19701 #: ../fish/guestfish.pod:503
19703 "You can quote ordinary parameters using either single or double quotes. For "
19708 #: ../fish/guestfish.pod:506
19711 " add \"file with a space.img\"\n"
19716 #: ../fish/guestfish.pod:508
19719 " rm '/file name'\n"
19724 #: ../fish/guestfish.pod:510
19732 #: ../fish/guestfish.pod:512
19734 "A few commands require a list of strings to be passed. For these, use a "
19735 "whitespace-separated list, enclosed in quotes. Strings containing "
19736 "whitespace to be passed through must be enclosed in single quotes. A "
19737 "literal single quote must be escaped with a backslash."
19741 #: ../fish/guestfish.pod:517
19744 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19745 " command \"/bin/echo 'foo bar'\"\n"
19746 " command \"/bin/echo \\'foo\\'\"\n"
19751 #: ../fish/guestfish.pod:521
19752 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19756 #: ../fish/guestfish.pod:523
19758 "In double-quoted arguments (only) use backslash to insert special characters:"
19762 #: ../fish/guestfish.pod:528
19767 #: ../fish/guestfish.pod:530
19768 msgid "Alert (bell) character."
19769 msgstr "Символ гудка (дзвінка)."
19772 #: ../fish/guestfish.pod:532
19777 #: ../fish/guestfish.pod:534
19778 msgid "Backspace character."
19782 #: ../fish/guestfish.pod:536
19787 #: ../fish/guestfish.pod:538
19788 msgid "Form feed character."
19792 #: ../fish/guestfish.pod:540
19797 #: ../fish/guestfish.pod:542
19798 msgid "Newline character."
19802 #: ../fish/guestfish.pod:544
19807 #: ../fish/guestfish.pod:546
19808 msgid "Carriage return character."
19809 msgstr "Символ повернення каретки."
19812 #: ../fish/guestfish.pod:548
19817 #: ../fish/guestfish.pod:550
19818 msgid "Horizontal tab character."
19819 msgstr "Символ горизонтальної табуляції"
19822 #: ../fish/guestfish.pod:552
19827 #: ../fish/guestfish.pod:554
19828 msgid "Vertical tab character."
19829 msgstr "Символ вертикальної табуляції."
19832 #: ../fish/guestfish.pod:556
19837 #: ../fish/guestfish.pod:558
19838 msgid "A literal double quote character."
19842 #: ../fish/guestfish.pod:560
19847 #: ../fish/guestfish.pod:562
19849 "A character with octal value I<ooo>. There must be precisely 3 octal digits "
19854 #: ../fish/guestfish.pod:565
19859 #: ../fish/guestfish.pod:567
19861 "A character with hex value I<hh>. There must be precisely 2 hex digits."
19865 #: ../fish/guestfish.pod:570
19867 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19872 #: ../fish/guestfish.pod:573
19877 #: ../fish/guestfish.pod:575
19878 msgid "A literal backslash character."
19882 #: ../fish/guestfish.pod:579
19883 msgid "OPTIONAL ARGUMENTS"
19887 #: ../fish/guestfish.pod:581
19889 "Some commands take optional arguments. These arguments appear in this "
19890 "documentation as C<[argname:..]>. You can use them as in these examples:"
19894 #: ../fish/guestfish.pod:585
19897 " add-drive-opts filename\n"
19902 #: ../fish/guestfish.pod:587
19905 " add-drive-opts filename readonly:true\n"
19910 #: ../fish/guestfish.pod:589
19913 " add-drive-opts filename format:qcow2 readonly:false\n"
19918 #: ../fish/guestfish.pod:591
19920 "Each optional argument can appear at most once. All optional arguments must "
19921 "appear after the required ones."
19925 #: ../fish/guestfish.pod:594
19930 #: ../fish/guestfish.pod:596
19932 "This section applies to all commands which can take integers as parameters."
19936 #: ../fish/guestfish.pod:599
19937 msgid "SIZE SUFFIX"
19941 #: ../fish/guestfish.pod:601
19943 "When the command takes a parameter measured in bytes, you can use one of the "
19944 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19948 #: ../fish/guestfish.pod:607
19949 msgid "B<k> or B<K> or B<KiB>"
19950 msgstr "B<k>, B<K> або B<KiB>"
19953 #: ../fish/guestfish.pod:609
19954 msgid "The size in kilobytes (multiplied by 1024)."
19955 msgstr "Розмір у кілобайтах (у одному кілобайті 1024 байтів)."
19958 #: ../fish/guestfish.pod:611
19963 #: ../fish/guestfish.pod:613
19964 msgid "The size in SI 1000 byte units."
19965 msgstr "Розмір у одиницях СІ: 1000 байтів."
19968 #: ../fish/guestfish.pod:615
19969 msgid "B<M> or B<MiB>"
19970 msgstr "B<M> або B<MiB>"
19973 #: ../fish/guestfish.pod:617
19974 msgid "The size in megabytes (multiplied by 1048576)."
19975 msgstr "Розмір у мегабайтах (у одному мегабайті 1048576 байтів)."
19978 #: ../fish/guestfish.pod:619
19983 #: ../fish/guestfish.pod:621
19984 msgid "The size in SI 1000000 byte units."
19985 msgstr "Розмір у одиницях СІ: 1000000 байтів."
19988 #: ../fish/guestfish.pod:623
19989 msgid "B<G> or B<GiB>"
19990 msgstr "B<G> або B<GiB>"
19993 #: ../fish/guestfish.pod:625
19994 msgid "The size in gigabytes (multiplied by 2**30)."
19995 msgstr "Розмір у гігабайтах (з множником 2**30)."
19998 #: ../fish/guestfish.pod:627
20003 #: ../fish/guestfish.pod:629
20004 msgid "The size in SI 10**9 byte units."
20005 msgstr "Розмір у одиницях СІ: 10**9 байтів."
20008 #: ../fish/guestfish.pod:631
20009 msgid "B<T> or B<TiB>"
20010 msgstr "B<T> або B<TiB>"
20013 #: ../fish/guestfish.pod:633
20014 msgid "The size in terabytes (multiplied by 2**40)."
20015 msgstr "Розмір у терабайтах (з множником 2**40)."
20018 #: ../fish/guestfish.pod:635
20023 #: ../fish/guestfish.pod:637
20024 msgid "The size in SI 10**12 byte units."
20025 msgstr "Розмір у одиницях СІ: 10**12 байтів."
20028 #: ../fish/guestfish.pod:639
20029 msgid "B<P> or B<PiB>"
20030 msgstr "B<P> або B<PiB>"
20033 #: ../fish/guestfish.pod:641
20034 msgid "The size in petabytes (multiplied by 2**50)."
20035 msgstr "Розмір у петабайтах (у одному петабайті 2**50 байтів)."
20038 #: ../fish/guestfish.pod:643
20043 #: ../fish/guestfish.pod:645
20044 msgid "The size in SI 10**15 byte units."
20045 msgstr "Розмір у одиницях СІ: 10**15 байтів."
20048 #: ../fish/guestfish.pod:647
20049 msgid "B<E> or B<EiB>"
20050 msgstr "B<E> або B<EiB>"
20053 #: ../fish/guestfish.pod:649
20054 msgid "The size in exabytes (multiplied by 2**60)."
20055 msgstr "Розмір у ексабайтах (у одному ексабайті 2**60 байтів)."
20058 #: ../fish/guestfish.pod:651
20063 #: ../fish/guestfish.pod:653
20064 msgid "The size in SI 10**18 byte units."
20065 msgstr "Розмір у одиницях СІ: 10**18 байтів."
20068 #: ../fish/guestfish.pod:655
20069 msgid "B<Z> or B<ZiB>"
20070 msgstr "B<Z> або B<ZiB>"
20073 #: ../fish/guestfish.pod:657
20074 msgid "The size in zettabytes (multiplied by 2**70)."
20075 msgstr "Розмір у зетабайтах (у одному зетабайті 2**70 байтів)."
20078 #: ../fish/guestfish.pod:659
20083 #: ../fish/guestfish.pod:661
20084 msgid "The size in SI 10**21 byte units."
20085 msgstr "Розмір у одиницях СІ: 10**21 байтів."
20088 #: ../fish/guestfish.pod:663
20089 msgid "B<Y> or B<YiB>"
20090 msgstr "B<Y> або B<YiB>"
20093 #: ../fish/guestfish.pod:665
20094 msgid "The size in yottabytes (multiplied by 2**80)."
20095 msgstr "Розмір у йотабайтах (у одному йотабайті 2**80 байтів)."
20098 #: ../fish/guestfish.pod:667
20103 #: ../fish/guestfish.pod:669
20104 msgid "The size in SI 10**24 byte units."
20105 msgstr "Розмір у одиницях СІ: 10**24 байтів."
20108 #: ../fish/guestfish.pod:675
20111 " truncate-size /file 1G\n"
20116 #: ../fish/guestfish.pod:677
20117 msgid "would truncate the file to 1 gigabyte."
20121 #: ../fish/guestfish.pod:679
20123 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
20124 "the parameter to L</memsize> is specified in megabytes already). Adding a "
20125 "suffix will probably not do what you expect."
20129 #: ../fish/guestfish.pod:683
20130 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20134 #: ../fish/guestfish.pod:685
20136 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20137 "octal number or C<0x> to prefix a hexadecimal number. For example:"
20141 #: ../fish/guestfish.pod:688
20144 " 1234 decimal number 1234\n"
20145 " 02322 octal number, equivalent to decimal 1234\n"
20146 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
20151 #: ../fish/guestfish.pod:692
20153 "When using the C<chmod> command, you almost always want to specify an octal "
20154 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20155 "L<chmod(1)> program):"
20159 #: ../fish/guestfish.pod:696
20162 " chmod 0777 /public # OK\n"
20163 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
20168 #: ../fish/guestfish.pod:699
20170 "Commands that return numbers usually print them in decimal, but some "
20171 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20172 "octal, preceeded by C<0>)."
20176 #: ../fish/guestfish.pod:703
20177 msgid "WILDCARDS AND GLOBBING"
20181 #: ../fish/guestfish.pod:705
20183 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20184 "(globbing) by default. So for example the following will not do what you "
20189 #: ../fish/guestfish.pod:709
20197 #: ../fish/guestfish.pod:711
20199 "Assuming you don't have a directory called literally C</home/*> then the "
20200 "above command will return an error."
20204 #: ../fish/guestfish.pod:714
20205 msgid "To perform wildcard expansion, use the C<glob> command."
20209 #: ../fish/guestfish.pod:716
20212 " glob rm-rf /home/*\n"
20217 #: ../fish/guestfish.pod:718
20219 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20220 "many times), equivalent to:"
20224 #: ../fish/guestfish.pod:721
20227 " rm-rf /home/jim\n"
20228 " rm-rf /home/joe\n"
20229 " rm-rf /home/mary\n"
20234 #: ../fish/guestfish.pod:725
20235 msgid "C<glob> only works on simple guest paths and not on device names."
20239 #: ../fish/guestfish.pod:727
20241 "If you have several parameters, each containing a wildcard, then glob will "
20242 "perform a Cartesian product."
20246 #: ../fish/guestfish.pod:730
20251 #: ../fish/guestfish.pod:732
20253 "Any line which starts with a I<#> character is treated as a comment and "
20254 "ignored. The I<#> can optionally be preceeded by whitespace, but B<not> by "
20255 "a command. For example:"
20259 #: ../fish/guestfish.pod:736
20262 " # this is a comment\n"
20263 " # this is a comment\n"
20264 " foo # NOT a comment\n"
20269 #: ../fish/guestfish.pod:740
20270 msgid "Blank lines are also ignored."
20274 #: ../fish/guestfish.pod:742
20275 msgid "RUNNING COMMANDS LOCALLY"
20279 #: ../fish/guestfish.pod:744
20281 "Any line which starts with a I<!> character is treated as a command sent to "
20282 "the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
20286 #: ../fish/guestfish.pod:748
20290 " tgz-out /remote local/remote-data.tar.gz\n"
20295 #: ../fish/guestfish.pod:751
20297 "will create a directory C<local> on the host, and then export the contents "
20298 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
20299 "(See C<tgz-out>)."
20303 #: ../fish/guestfish.pod:755
20305 "To change the local directory, use the C<lcd> command. C<!cd> will have no "
20306 "effect, due to the way that subprocesses work in Unix."
20310 #: ../fish/guestfish.pod:758
20311 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20315 #: ../fish/guestfish.pod:760
20317 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20318 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20319 "and executed as guestfish commands."
20323 #: ../fish/guestfish.pod:764
20325 "Thus you can use shell script to construct arbitrary guestfish commands "
20326 "which are then parsed by guestfish."
20330 #: ../fish/guestfish.pod:767
20332 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20333 "through C</foo.100>) using guestfish commands alone. However this is simple "
20334 "if we use a shell script to create the guestfish commands for us:"
20338 #: ../fish/guestfish.pod:772
20341 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20346 #: ../fish/guestfish.pod:774
20347 msgid "or with names like C</foo.001>:"
20351 #: ../fish/guestfish.pod:776
20354 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20359 #: ../fish/guestfish.pod:778
20361 "When using guestfish interactively it can be helpful to just run the shell "
20362 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20363 "ordinary I<!> local command), see what guestfish commands it would run, and "
20364 "when you are happy with those prepend the C<E<lt>> character to run the "
20365 "guestfish commands for real."
20369 #: ../fish/guestfish.pod:784
20374 #: ../fish/guestfish.pod:786
20376 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20377 "command (a guestfish command) to the second command (any host command). For "
20382 #: ../fish/guestfish.pod:790
20385 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20390 #: ../fish/guestfish.pod:792
20392 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20393 "program). The above command would list all accounts in the guest filesystem "
20394 "which have UID 0, ie. root accounts including backdoors. Other examples:"
20398 #: ../fish/guestfish.pod:797
20401 " hexdump /bin/ls | head\n"
20402 " list-devices | tail -1\n"
20403 " tgz-out / - | tar ztf -\n"
20408 #: ../fish/guestfish.pod:801
20410 "The space before the pipe symbol is required, any space after the pipe "
20411 "symbol is optional. Everything after the pipe symbol is just passed "
20412 "straight to the host shell, so it can contain redirections, globs and "
20413 "anything else that makes sense on the host side."
20417 #: ../fish/guestfish.pod:806
20419 "To use a literal argument which begins with a pipe symbol, you have to quote "
20424 #: ../fish/guestfish.pod:809
20432 #: ../fish/guestfish.pod:811
20433 msgid "HOME DIRECTORIES"
20437 #: ../fish/guestfish.pod:813
20439 "If a parameter starts with the character C<~> then the tilde may be expanded "
20440 "as a home directory path (either C<~> for the current user's home directory, "
20441 "or C<~user> for another user)."
20445 #: ../fish/guestfish.pod:817
20447 "Note that home directory expansion happens for users known I<on the host>, "
20448 "not in the guest filesystem."
20452 #: ../fish/guestfish.pod:820
20454 "To use a literal argument which begins with a tilde, you have to quote it, "
20459 #: ../fish/guestfish.pod:823
20467 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
20468 msgid "ENCRYPTED DISKS"
20469 msgstr "ЗАШИФРОВАНІ ДИСКИ"
20472 #: ../fish/guestfish.pod:827
20474 "Libguestfs has some support for Linux guests encrypted according to the "
20475 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20476 "disk encryption systems used by modern Linux guests. Currently only LVM-on-"
20477 "LUKS is supported."
20481 #: ../fish/guestfish.pod:832
20482 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20486 #: ../fish/guestfish.pod:834
20489 " ><fs> vfs-type /dev/sda2\n"
20495 #: ../fish/guestfish.pod:837
20497 "Then open those devices using L</luks-open>. This creates a device-mapper "
20498 "device called C</dev/mapper/luksdev>."
20502 #: ../fish/guestfish.pod:840
20505 " ><fs> luks-open /dev/sda2 luksdev\n"
20506 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20511 #: ../fish/guestfish.pod:843
20513 "Finally you have to tell LVM to scan for volume groups on the newly created "
20518 #: ../fish/guestfish.pod:846
20522 " vg-activate-all true\n"
20527 #: ../fish/guestfish.pod:849
20528 msgid "The logical volume(s) can now be mounted in the usual way."
20532 #: ../fish/guestfish.pod:851
20534 "Before closing a LUKS device you must unmount any logical volumes on it and "
20535 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20536 "one. Then you can close the mapper device:"
20540 #: ../fish/guestfish.pod:855
20543 " vg-activate false /dev/VG\n"
20544 " luks-close /dev/mapper/luksdev\n"
20549 #: ../fish/guestfish.pod:860
20551 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20552 "letters and paths (with some limitations). The following commands are "
20557 #: ../fish/guestfish.pod:864
20560 " file /WINDOWS/system32/config/system.LOG\n"
20565 #: ../fish/guestfish.pod:866
20568 " file win:\\windows\\system32\\config\\system.log\n"
20573 #: ../fish/guestfish.pod:868
20576 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20581 #: ../fish/guestfish.pod:870
20583 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20584 "where the drive is mounted, prepending that to the path, changing all "
20585 "backslash characters to forward slash, then resolving the result using L</"
20586 "case-sensitive-path>. For example if the E: drive was mounted on C</e> then "
20587 "the parameter might be rewritten like this:"
20591 #: ../fish/guestfish.pod:876
20594 " win:e:\\foo\\bar => /e/FOO/bar\n"
20599 #: ../fish/guestfish.pod:878
20600 msgid "This only works in argument positions that expect a path."
20604 #: ../fish/guestfish.pod:880
20605 msgid "UPLOADING AND DOWNLOADING FILES"
20609 #: ../fish/guestfish.pod:882
20611 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20612 "others which upload from or download to a local file, you can use the "
20613 "special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
20617 #: ../fish/guestfish.pod:886
20625 #: ../fish/guestfish.pod:888
20627 "reads stdin and creates from that a file C</foo> in the disk image, and:"
20631 #: ../fish/guestfish.pod:891
20634 " tar-out /etc - | tar tf -\n"
20639 #: ../fish/guestfish.pod:893
20641 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20642 "command (see L</PIPES>)."
20646 #: ../fish/guestfish.pod:896
20648 "When using C<-> to read from stdin, the input is read up to the end of "
20649 "stdin. You can also use a special \"heredoc\"-like syntax to read up to "
20650 "some arbitrary end marker:"
20654 #: ../fish/guestfish.pod:900
20657 " upload -<<END /foo\n"
20666 #: ../fish/guestfish.pod:906
20668 "Any string of characters can be used instead of C<END>. The end marker must "
20669 "appear on a line of its own, without any preceeding or following characters "
20670 "(not even spaces)."
20674 #: ../fish/guestfish.pod:910
20676 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20677 "upload local files (so-called \"FileIn\" parameters in the generator)."
20681 #: ../fish/guestfish.pod:913
20682 msgid "EXIT ON ERROR BEHAVIOUR"
20686 #: ../fish/guestfish.pod:915
20688 "By default, guestfish will ignore any errors when in interactive mode (ie. "
20689 "taking commands from a human over a tty), and will exit on the first error "
20690 "in non-interactive mode (scripts, commands given on the command line)."
20694 #: ../fish/guestfish.pod:920
20696 "If you prefix a command with a I<-> character, then that command will not "
20697 "cause guestfish to exit, even if that (one) command returns an error."
20701 #: ../fish/guestfish.pod:924
20702 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20706 #: ../fish/guestfish.pod:926
20708 "Guestfish can be remote-controlled over a socket. This is useful "
20709 "particularly in shell scripts where you want to make several different "
20710 "changes to a filesystem, but you don't want the overhead of starting up a "
20711 "guestfish process each time."
20715 #: ../fish/guestfish.pod:931
20716 msgid "Start a guestfish server process using:"
20720 #: ../fish/guestfish.pod:933
20723 " eval \"`guestfish --listen`\"\n"
20728 #: ../fish/guestfish.pod:935
20729 msgid "and then send it commands by doing:"
20733 #: ../fish/guestfish.pod:937
20736 " guestfish --remote cmd [...]\n"
20741 #: ../fish/guestfish.pod:939
20742 msgid "To cause the server to exit, send it the exit command:"
20746 #: ../fish/guestfish.pod:943
20748 "Note that the server will normally exit if there is an error in a command. "
20749 "You can change this in the usual way. See section L</EXIT ON ERROR "
20754 #: ../fish/guestfish.pod:947
20755 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20759 #: ../fish/guestfish.pod:949
20761 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20762 "is how the I<--remote> option knows where to send the commands. You can "
20763 "have several guestfish listener processes running using:"
20767 #: ../fish/guestfish.pod:953
20770 " eval \"`guestfish --listen`\"\n"
20771 " pid1=$GUESTFISH_PID\n"
20772 " eval \"`guestfish --listen`\"\n"
20773 " pid2=$GUESTFISH_PID\n"
20775 " guestfish --remote=$pid1 cmd\n"
20776 " guestfish --remote=$pid2 cmd\n"
20781 #: ../fish/guestfish.pod:961
20782 msgid "REMOTE CONTROL AND CSH"
20786 #: ../fish/guestfish.pod:963
20788 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20793 #: ../fish/guestfish.pod:966
20796 " eval \"`guestfish --listen --csh`\"\n"
20801 #: ../fish/guestfish.pod:968
20802 msgid "REMOTE CONTROL DETAILS"
20806 #: ../fish/guestfish.pod:970
20808 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
20809 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
20810 "and C<$PID> is the process ID of the server."
20814 #: ../fish/guestfish.pod:974
20815 msgid "Guestfish client and server versions must match exactly."
20819 #: ../fish/guestfish.pod:976
20820 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20824 #: ../fish/guestfish.pod:978
20826 "From Bash, you can use the following code which creates a guestfish "
20827 "instance, correctly quotes the command line, handles failure to start, and "
20828 "cleans up guestfish when the script exits:"
20832 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
20840 #: ../fish/guestfish.pod:986
20843 " guestfish[0]=\"guestfish\"\n"
20844 " guestfish[1]=\"--listen\"\n"
20845 " guestfish[2]=\"--ro\"\n"
20846 " guestfish[3]=\"-a\"\n"
20847 " guestfish[4]=\"disk.img\"\n"
20852 #: ../fish/guestfish.pod:992
20855 " GUESTFISH_PID=\n"
20856 " eval $(\"${guestfish[@]}\")\n"
20857 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20858 " echo \"error: guestfish didn't start up, see error messages above\"\n"
20865 #: ../fish/guestfish.pod:999
20868 " cleanup_guestfish ()\n"
20870 " guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20872 " trap cleanup_guestfish EXIT ERR\n"
20877 #: ../fish/guestfish.pod:1005
20880 " guestfish --remote -- run\n"
20885 #: ../fish/guestfish.pod:1007
20893 #: ../fish/guestfish.pod:1009
20894 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20898 #: ../fish/guestfish.pod:1011
20900 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20901 "context hangs, ie. don't do (note the backquotes):"
20905 #: ../fish/guestfish.pod:1014
20908 " a=`guestfish --remote run`\n"
20913 #: ../fish/guestfish.pod:1016
20915 "Since the C<run> command produces no output on stdout, this is not useful "
20916 "anyway. For further information see L<https://bugzilla.redhat.com/show_bug."
20921 #: ../fish/guestfish.pod:1020
20922 msgid "PREPARED DISK IMAGES"
20926 #: ../fish/guestfish.pod:1022
20928 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20929 "preformatted disk images that guestfish can make for you to save typing. "
20930 "This is particularly useful for testing purposes. This option is used "
20931 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20932 "can be mixed with I<-a>)."
20936 #: ../fish/guestfish.pod:1028
20938 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20939 "the second and so on. Existing files in the current directory are "
20944 #: ../fish/guestfish.pod:1032
20946 "The type briefly describes how the disk should be sized, partitioned, how "
20947 "filesystem(s) should be created, and how content should be added. "
20948 "Optionally the type can be followed by extra parameters, separated by C<:> "
20949 "(colon) characters. For example, I<-N fs> creates a default 100MB, sparsely-"
20950 "allocated disk, containing a single partition, with the partition formatted "
20951 "as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
20956 #: ../fish/guestfish.pod:1040
20957 msgid "To list the available types and any extra parameters they take, run:"
20961 #: ../fish/guestfish.pod:1044
20963 "Note that the prepared filesystem is not mounted. You would usually have to "
20964 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20968 #: ../fish/guestfish.pod:1048
20970 "If any I<-N> or I<--new> options are given, the guest is automatically "
20975 #: ../fish/guestfish.pod:1053
20976 msgid "Create a 100MB disk with an ext4-formatted partition:"
20980 #: ../fish/guestfish.pod:1055
20983 " guestfish -N fs:ext4\n"
20988 #: ../fish/guestfish.pod:1057
20989 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20993 #: ../fish/guestfish.pod:1059
20996 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
21001 #: ../fish/guestfish.pod:1061
21002 msgid "Create a blank 200MB disk:"
21006 #: ../fish/guestfish.pod:1063
21009 " guestfish -N disk:200M\n"
21014 #: ../fish/guestfish.pod:1065
21015 msgid "PROGRESS BARS"
21019 #: ../fish/guestfish.pod:1067
21021 "Some (not all) long-running commands send progress notification messages as "
21022 "they are running. Guestfish turns these messages into progress bars."
21026 #: ../fish/guestfish.pod:1071
21028 "When a command that supports progress bars takes longer than two seconds to "
21029 "run, and if progress bars are enabled, then you will see one appearing below "
21034 #: ../fish/guestfish.pod:1075
21037 " ><fs> copy-size /large-file /another-file 2048M\n"
21038 " / 10% [#####-----------------------------------------] 00:30\n"
21043 #: ../fish/guestfish.pod:1078
21045 "The spinner on the left hand side moves round once for every progress "
21046 "notification received from the backend. This is a (reasonably) golden "
21047 "assurance that the command is \"doing something\" even if the progress bar "
21048 "is not moving, because the command is able to send the progress "
21049 "notifications. When the bar reaches 100% and the command finishes, the "
21050 "spinner disappears."
21054 #: ../fish/guestfish.pod:1085
21056 "Progress bars are enabled by default when guestfish is used interactively. "
21057 "You can enable them even for non-interactive modes using I<--progress-bars>, "
21058 "and you can disable them completely using I<--no-progress-bars>."
21062 #: ../fish/guestfish.pod:1090
21063 msgid "GUESTFISH COMMANDS"
21067 #: ../fish/guestfish.pod:1092
21069 "The commands in this section are guestfish convenience commands, in other "
21070 "words, they are not part of the L<guestfs(3)> API."
21074 #: ../fish/guestfish.pod:1095
21079 #: ../fish/guestfish.pod:1097
21091 #: ../fish/guestfish.pod:1100
21092 msgid "Without any parameter, this provides general help."
21093 msgstr "Без параметра показує загальну довідкову інформацію."
21096 #: ../fish/guestfish.pod:1102
21097 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21101 #: ../fish/guestfish.pod:1104
21102 msgid "quit | exit"
21106 #: ../fish/guestfish.pod:1106
21107 msgid "This exits guestfish. You can also use C<^D> key."
21111 #: ../fish/guestfish.pod:1108
21112 msgid "@FISH_COMMANDS@"
21116 #: ../fish/guestfish.pod:1110
21121 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
21126 #: ../fish/guestfish.pod:1116
21128 "guestfish returns 0 if the commands completed without error, or 1 if there "
21133 #: ../fish/guestfish.pod:1123
21138 #: ../fish/guestfish.pod:1125
21140 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
21145 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3213
21146 msgid "FEBOOTSTRAP_KERNEL"
21150 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3215
21151 msgid "FEBOOTSTRAP_MODULES"
21155 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3217
21157 "These two environment variables allow the kernel that libguestfs uses in the "
21158 "appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
21159 "most recent host kernel is chosen. For more information about kernel "
21160 "selection, see L<febootstrap-supermin-helper(8)>. This feature is only "
21161 "available in febootstrap E<ge> 3.8."
21165 #: ../fish/guestfish.pod:1138
21166 msgid "GUESTFISH_DISPLAY_IMAGE"
21170 #: ../fish/guestfish.pod:1140
21172 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
21173 "If not set, it uses L<display(1)>."
21177 #: ../fish/guestfish.pod:1143
21178 msgid "GUESTFISH_PID"
21182 #: ../fish/guestfish.pod:1145
21184 "Used with the I<--remote> option to specify the remote guestfish process to "
21185 "control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21189 #: ../fish/guestfish.pod:1149
21194 #: ../fish/guestfish.pod:1151
21196 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
21197 "not specified, the external L<hexedit(1)> program is used."
21201 #: ../fish/guestfish.pod:1155
21206 #: ../fish/guestfish.pod:1157
21208 "If compiled with GNU readline support, various files in the home directory "
21209 "can be used. See L</FILES>."
21213 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3223
21214 msgid "LIBGUESTFS_APPEND"
21218 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3225
21219 msgid "Pass additional options to the guest kernel."
21223 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3227
21224 msgid "LIBGUESTFS_DEBUG"
21225 msgstr "LIBGUESTFS_DEBUG"
21228 #: ../fish/guestfish.pod:1166
21230 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
21231 "effect as using the B<-v> option."
21235 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3232
21236 msgid "LIBGUESTFS_MEMSIZE"
21237 msgstr "LIBGUESTFS_MEMSIZE"
21240 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3234
21242 "Set the memory allocated to the qemu process, in megabytes. For example:"
21246 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3237
21249 " LIBGUESTFS_MEMSIZE=700\n"
21252 " LIBGUESTFS_MEMSIZE=700\n"
21256 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3239
21257 msgid "LIBGUESTFS_PATH"
21261 #: ../fish/guestfish.pod:1178
21263 "Set the path that guestfish uses to search for kernel and initrd.img. See "
21264 "the discussion of paths in L<guestfs(3)>."
21268 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3244
21269 msgid "LIBGUESTFS_QEMU"
21273 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3246
21275 "Set the default qemu binary that libguestfs uses. If not set, then the qemu "
21276 "which was found at compile time by the configure script is used."
21280 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3252
21281 msgid "LIBGUESTFS_TRACE"
21285 #: ../fish/guestfish.pod:1189
21286 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21290 #: ../fish/guestfish.pod:1191
21292 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
21295 #: ../fish/guestfish.pod:1193
21297 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
21302 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
21303 #: ../src/guestfs.pod:3257
21308 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3259
21310 "Location of temporary directory, defaults to C</tmp> except for the cached "
21311 "supermin appliance which defaults to C</var/tmp>."
21315 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3262
21317 "If libguestfs was compiled to use the supermin appliance then the real "
21318 "appliance is cached in this directory, shared between all handles belonging "
21319 "to the same EUID. You can use C<$TMPDIR> to configure another directory to "
21320 "use in case C</var/tmp> is not large enough."
21324 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
21325 #: ../rescue/virt-rescue.pod:273
21330 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
21331 #: ../rescue/virt-rescue.pod:277
21332 msgid "$HOME/.libguestfs-tools.rc"
21336 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
21337 #: ../rescue/virt-rescue.pod:279
21338 msgid "/etc/libguestfs-tools.conf"
21342 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
21343 #: ../rescue/virt-rescue.pod:281
21345 "This configuration file controls the default read-only or read-write mode "
21346 "(I<--ro> or I<--rw>)."
21350 #: ../fish/guestfish.pod:1220
21351 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21352 msgstr "Див. L</OPENING DISKS FOR READ AND WRITE>."
21355 #: ../fish/guestfish.pod:1222
21356 msgid "$HOME/.guestfish"
21360 #: ../fish/guestfish.pod:1224
21362 "If compiled with GNU readline support, then the command history is saved in "
21367 #: ../fish/guestfish.pod:1227
21368 msgid "$HOME/.inputrc"
21372 #: ../fish/guestfish.pod:1229
21373 msgid "/etc/inputrc"
21377 #: ../fish/guestfish.pod:1231
21379 "If compiled with GNU readline support, then these files can be used to "
21380 "configure readline. For further information, please see L<readline(3)/"
21381 "INITIALIZATION FILE>."
21385 #: ../fish/guestfish.pod:1235
21386 msgid "To write rules which only apply to guestfish, use:"
21390 #: ../fish/guestfish.pod:1237
21400 #: ../fish/guestfish.pod:1241
21402 "Variables that you can set in inputrc that change the behaviour of guestfish "
21403 "in useful ways include:"
21407 #: ../fish/guestfish.pod:1246
21408 msgid "completion-ignore-case (default: on)"
21412 #: ../fish/guestfish.pod:1248
21414 "By default, guestfish will ignore case when tab-completing paths on the "
21419 #: ../fish/guestfish.pod:1251
21422 " set completion-ignore-case off\n"
21427 #: ../fish/guestfish.pod:1253
21428 msgid "to make guestfish case sensitive."
21432 #: ../fish/guestfish.pod:1257
21437 #: ../fish/guestfish.pod:1259
21438 msgid "test2.img (etc)"
21442 #: ../fish/guestfish.pod:1261
21444 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21445 "will be created in the file C<test1.img> in the current directory. The "
21446 "second use of I<-N> will use C<test2.img> and so on. Any existing file with "
21447 "the same name will be overwritten."
21451 #: ../fish/guestfish.pod:1270
21453 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
21454 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
21455 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
21456 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
21457 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
21458 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
21459 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
21463 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3354
21464 #: ../test-tool/libguestfs-test-tool.pod:112
21465 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
21469 #: ../fish/virt-copy-in.pod:5
21471 "virt-copy-in - Copy files and directories into a virtual machine disk image."
21475 #: ../fish/virt-copy-in.pod:9
21478 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21483 #: ../fish/virt-copy-in.pod:11
21486 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21491 #: ../fish/virt-copy-in.pod:15
21493 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21494 "causing disk corruption. The virtual machine must be shut down before you "
21495 "use this command."
21499 #: ../fish/virt-copy-in.pod:21
21501 "C<virt-copy-in> copies files and directories from the local disk into a "
21502 "virtual machine disk image or named libvirt domain."
21506 #: ../fish/virt-copy-in.pod:24
21508 "You can give one of more filenames and directories on the command line. "
21509 "Directories are copied in recursively. The final parameter must be the "
21510 "destination directory in the disk image which must be an absolute path "
21511 "starting with a C</> character."
21515 #: ../fish/virt-copy-in.pod:33
21518 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21523 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21524 msgid "Upload a home directory to a guest:"
21528 #: ../fish/virt-copy-in.pod:37
21531 " virt-copy-in -d MyGuest skel /home\n"
21536 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
21537 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21538 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21542 #: ../fish/virt-copy-in.pod:41
21544 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21545 "> C<copy-in> command. For anything more complex than a trivial copy, you "
21546 "are probably better off using guestfish directly."
21550 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
21551 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21553 "Since the shell script just passes options straight to guestfish, read "
21554 "L<guestfish(1)> to see the full list of options."
21558 #: ../fish/virt-copy-in.pod:52
21560 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21561 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21565 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
21566 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21567 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
21571 #: ../fish/virt-copy-out.pod:5
21573 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21578 #: ../fish/virt-copy-out.pod:9
21581 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21586 #: ../fish/virt-copy-out.pod:11
21589 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21594 #: ../fish/virt-copy-out.pod:15
21596 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21597 "image or named libvirt domain."
21601 #: ../fish/virt-copy-out.pod:18
21603 "You can give one of more filenames and directories on the command line. "
21604 "Directories are copied out recursively."
21608 #: ../fish/virt-copy-out.pod:23
21609 msgid "Download the home directories from a virtual machine:"
21613 #: ../fish/virt-copy-out.pod:25
21617 " virt-copy-out -d MyGuest /home homes\n"
21622 #: ../fish/virt-copy-out.pod:30
21624 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21625 "> C<copy-out> command. For anything more complex than a trivial copy, you "
21626 "are probably better off using guestfish directly."
21630 #: ../fish/virt-copy-out.pod:41
21632 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
21633 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21637 #: ../fish/virt-tar-in.pod:5
21638 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21642 #: ../fish/virt-tar-in.pod:9
21645 " virt-tar-in -a disk.img data.tar /destination\n"
21650 #: ../fish/virt-tar-in.pod:11
21653 " virt-tar-in -d domain data.tar /destination\n"
21658 #: ../fish/virt-tar-in.pod:13
21661 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21666 #: ../fish/virt-tar-in.pod:17
21668 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21669 "causing disk corruption. The virtual machine must be shut down before you "
21670 "use this command."
21674 #: ../fish/virt-tar-in.pod:23
21676 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21677 "image or named libvirt domain."
21681 #: ../fish/virt-tar-in.pod:26
21683 "The first parameter is the tar file. Use C<-> to read the tar file from "
21684 "standard input. The second parameter is the absolute target directory to "
21689 #: ../fish/virt-tar-in.pod:34
21692 " virt-tar-in -d MyGuest homes.tar /home\n"
21697 #: ../fish/virt-tar-in.pod:38
21699 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21700 "> C<tar-in> command. For anything more complex than a trivial copy, you are "
21701 "probably better off using guestfish directly."
21705 #: ../fish/virt-tar-in.pod:49
21707 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21708 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
21713 #: ../fish/virt-tar-out.pod:5
21715 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21719 #: ../fish/virt-tar-out.pod:9
21722 " virt-tar-out -a disk.img /dir files.tar\n"
21727 #: ../fish/virt-tar-out.pod:11
21730 " virt-tar-out -d domain /dir files.tar\n"
21735 #: ../fish/virt-tar-out.pod:13
21738 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21743 #: ../fish/virt-tar-out.pod:17
21745 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21749 #: ../fish/virt-tar-out.pod:20
21751 "The first parameter is the absolute path of the virtual machine directory. "
21752 "The second parameter is the tar file to write. Use C<-> to write to "
21757 #: ../fish/virt-tar-out.pod:26
21758 msgid "Download the home directories from a guest:"
21762 #: ../fish/virt-tar-out.pod:28
21765 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21770 #: ../fish/virt-tar-out.pod:32
21772 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21773 "> C<tar-out> command. For anything more complex than a trivial copy, you "
21774 "are probably better off using guestfish directly."
21778 #: ../fish/virt-tar-out.pod:43
21780 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21781 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21785 #: ../fuse/guestmount.pod:5
21787 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21791 #: ../fuse/guestmount.pod:9
21794 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21799 #: ../fuse/guestmount.pod:11
21802 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21807 #: ../fuse/guestmount.pod:13
21810 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21815 #: ../fuse/guestmount.pod:17
21817 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21818 "machines. If you do this, you risk disk corruption in the VM."
21822 #: ../fuse/guestmount.pod:22
21824 "The guestmount program can be used to mount virtual machine filesystems and "
21825 "other disk images on the host. It uses libguestfs for access to the guest "
21826 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21827 "a mountable device."
21831 #: ../fuse/guestmount.pod:27
21833 "Along with other options, you have to give at least one device (I<-a> "
21834 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21835 "option) or use the I<-i> inspection option or the I<--live> option. How "
21836 "this works is better explained in the L<guestfish(1)> manual page, or by "
21837 "looking at the examples below."
21841 #: ../fuse/guestmount.pod:33
21843 "FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
21844 "by you, and the filesystem will not be visible to any other users unless you "
21845 "make certain global configuration changes to C</etc/fuse.conf>. To unmount "
21846 "the filesystem, use the C<fusermount -u> command."
21850 #: ../fuse/guestmount.pod:41
21852 "For a typical Windows guest which has its main filesystem on the first "
21857 #: ../fuse/guestmount.pod:44
21860 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21865 #: ../fuse/guestmount.pod:46
21867 "For a typical Linux guest which has a /boot filesystem on the first "
21868 "partition, and the root filesystem on a logical volume:"
21872 #: ../fuse/guestmount.pod:49
21875 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21880 #: ../fuse/guestmount.pod:51
21881 msgid "To get libguestfs to detect guest mountpoints for you:"
21885 #: ../fuse/guestmount.pod:53
21888 " guestmount -a guest.img -i --ro /mnt\n"
21893 #: ../fuse/guestmount.pod:55
21894 msgid "For a libvirt guest called \"Guest\" you could do:"
21898 #: ../fuse/guestmount.pod:57
21901 " guestmount -d Guest -i --ro /mnt\n"
21906 #: ../fuse/guestmount.pod:59
21908 "If you don't know what filesystems are contained in a guest or disk image, "
21909 "use L<virt-filesystems(1)> first:"
21913 #: ../fuse/guestmount.pod:62
21916 " virt-filesystems MyGuest\n"
21921 #: ../fuse/guestmount.pod:64
21923 "If you want to trace the libguestfs calls but without excessive debugging "
21924 "information, we recommend:"
21928 #: ../fuse/guestmount.pod:67
21931 " guestmount [...] --trace /mnt\n"
21936 #: ../fuse/guestmount.pod:69
21937 msgid "If you want to debug the program, we recommend:"
21941 #: ../fuse/guestmount.pod:71
21944 " guestmount [...] --trace --verbose /mnt\n"
21949 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
21950 #: ../resize/virt-resize.pod:621
21955 #: ../fuse/guestmount.pod:75
21956 msgid "Other users cannot see the filesystem by default"
21960 #: ../fuse/guestmount.pod:77
21962 "If you mount a filesystem as one user (eg. root), then other users will not "
21963 "be able to see it by default. The fix is to add the FUSE C<allow_other> "
21964 "option when mounting:"
21968 #: ../fuse/guestmount.pod:81
21971 " sudo guestmount [...] -o allow_other /mnt\n"
21976 #: ../fuse/guestmount.pod:83
21977 msgid "Enabling FUSE"
21981 #: ../fuse/guestmount.pod:85
21983 "On some distros, you may need to add yourself to a special group (eg. "
21984 "C<fuse>) before you can use any FUSE filesystem. This is necessary on "
21985 "Debian and derivatives."
21989 #: ../fuse/guestmount.pod:89
21991 "On other distros, no special group is required. It is not necessary on "
21992 "Fedora or Red Hat Enterprise Linux."
21996 #: ../fuse/guestmount.pod:100
21997 msgid "Add a block device or virtual machine image."
22001 #: ../fuse/guestmount.pod:123
22002 msgid "B<--dir-cache-timeout N>"
22003 msgstr "B<--dir-cache-timeout N>"
22006 #: ../fuse/guestmount.pod:125
22008 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
22009 "seconds. The readdir cache [actually, there are several semi-independent "
22010 "caches] is populated after a readdir(2) call with the stat and extended "
22011 "attributes of the files in the directory, in anticipation that they will be "
22012 "requested soon after."
22016 #: ../fuse/guestmount.pod:131
22018 "There is also a different attribute cache implemented by FUSE (see the FUSE "
22019 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
22020 "requests, only cache existing ones."
22024 #: ../fuse/guestmount.pod:151
22026 "If you have untrusted raw-format guest disk images, you should use this "
22027 "option to specify the disk format. This avoids a possible security problem "
22028 "with malicious guests (CVE-2010-3851). See also L<guestfs(3)/"
22029 "guestfs_add_drive_opts>."
22033 #: ../fuse/guestmount.pod:156
22034 msgid "B<--fuse-help>"
22035 msgstr "B<--fuse-help>"
22038 #: ../fuse/guestmount.pod:158
22039 msgid "Display help on special FUSE options (see I<-o> below)."
22043 #: ../fuse/guestmount.pod:162
22044 msgid "Display brief help and exit."
22048 #: ../fuse/guestmount.pod:186
22050 "Mount the named partition or logical volume on the given mountpoint B<in the "
22051 "guest> (this has nothing to do with mountpoints in the host)."
22055 #: ../fuse/guestmount.pod:189
22057 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
22058 "something on C</>."
22062 #: ../fuse/guestmount.pod:206
22064 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
22065 "unmounted. If you specify this option, then we don't attempt to sync the "
22066 "disk. See the discussion of autosync in the L<guestfs(3)> manpage."
22070 #: ../fuse/guestmount.pod:211
22071 msgid "B<-o option>"
22072 msgstr "B<-o параметр>"
22075 #: ../fuse/guestmount.pod:213
22076 msgid "B<--option option>"
22077 msgstr "B<--option параметр>"
22080 #: ../fuse/guestmount.pod:215
22081 msgid "Pass extra options to FUSE."
22085 #: ../fuse/guestmount.pod:217
22087 "To get a list of all the extra options supported by FUSE, use the command "
22088 "below. Note that only the FUSE I<-o> options can be passed, and only some "
22089 "of them are a good idea."
22093 #: ../fuse/guestmount.pod:221
22096 " guestmount --fuse-help\n"
22101 #: ../fuse/guestmount.pod:223
22102 msgid "Some potentially useful FUSE options:"
22106 #: ../fuse/guestmount.pod:227
22107 msgid "B<-o allow_other>"
22111 #: ../fuse/guestmount.pod:229
22112 msgid "Allow other users to see the filesystem."
22116 #: ../fuse/guestmount.pod:231
22117 msgid "B<-o attr_timeout=N>"
22118 msgstr "B<-o attr_timeout=N>"
22121 #: ../fuse/guestmount.pod:233
22122 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22126 #: ../fuse/guestmount.pod:235
22127 msgid "B<-o kernel_cache>"
22131 #: ../fuse/guestmount.pod:237
22133 "Allow the kernel to cache files (reduces the number of reads that have to go "
22134 "through the L<guestfs(3)> API). This is generally a good idea if you can "
22135 "afford the extra memory usage."
22139 #: ../fuse/guestmount.pod:241
22140 msgid "B<-o uid=N> B<-o gid=N>"
22141 msgstr "B<-o uid=N> B<-o gid=N>"
22144 #: ../fuse/guestmount.pod:243
22146 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22147 "the chosen values."
22151 #: ../fuse/guestmount.pod:252
22153 "Add devices and mount everything read-only. Also disallow writes and make "
22154 "the disk appear read-only to FUSE."
22158 #: ../fuse/guestmount.pod:255
22160 "This is highly recommended if you are not going to edit the guest disk. If "
22161 "the guest is running and this option is I<not> supplied, then there is a "
22162 "strong risk of disk corruption in the guest. We try to prevent this from "
22163 "happening, but it is not always possible."
22167 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
22168 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22169 msgstr "Див. також L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22172 #: ../fuse/guestmount.pod:264
22173 msgid "Enable SELinux support for the guest."
22177 #: ../fuse/guestmount.pod:270
22178 msgid "Enable verbose messages from underlying libguestfs."
22182 #: ../fuse/guestmount.pod:276
22183 msgid "Display the program version and exit."
22187 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
22188 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
22189 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22190 msgstr "Див. L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22193 #: ../fuse/guestmount.pod:289
22195 msgstr "B<--trace>"
22198 #: ../fuse/guestmount.pod:291
22199 msgid "Trace libguestfs calls and entry into each FUSE function."
22203 #: ../fuse/guestmount.pod:293
22204 msgid "This also stops the daemon from forking into the background."
22208 #: ../fuse/guestmount.pod:319
22210 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22211 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22214 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22215 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22219 #: ../fuse/guestmount.pod:334
22220 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
22224 #: ../inspector/virt-inspector.pod:5
22226 "virt-inspector - Display operating system version and other information "
22227 "about a virtual machine"
22231 #: ../inspector/virt-inspector.pod:9
22234 " virt-inspector [--options] -d domname\n"
22239 #: ../inspector/virt-inspector.pod:11
22242 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
22247 #: ../inspector/virt-inspector.pod:15
22250 " virt-inspector domname\n"
22255 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
22258 " virt-inspector disk.img [disk.img ...]\n"
22263 #: ../inspector/virt-inspector.pod:21
22265 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22266 "determine the version of the operating system and other information about "
22267 "the virtual machine."
22271 #: ../inspector/virt-inspector.pod:25
22272 msgid "Virt-inspector produces XML output for feeding into other programs."
22276 #: ../inspector/virt-inspector.pod:27
22278 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22279 "the libvirt domain (see: C<virsh list --all>)."
22283 #: ../inspector/virt-inspector.pod:30
22285 "You can also run virt-inspector directly on disk images from a single "
22286 "virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain "
22287 "has several block devices, in which case you should list several I<-a> "
22288 "options one after another, with the first corresponding to the guest's C</"
22289 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
22293 #: ../inspector/virt-inspector.pod:37
22295 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22296 "keys and similar."
22300 #: ../inspector/virt-inspector.pod:40
22302 "Virt-inspector can only inspect and report upon I<one domain at a time>. To "
22303 "inspect several virtual machines, you have to run virt-inspector several "
22304 "times (for example, from a shell script for-loop)."
22308 #: ../inspector/virt-inspector.pod:45
22310 "Because virt-inspector needs direct access to guest images, it won't "
22311 "normally work over remote libvirt connections."
22315 #: ../inspector/virt-inspector.pod:48
22317 "All of the information available from virt-inspector is also available "
22318 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
22319 "The same information can also be fetched using guestfish or via libguestfs "
22320 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22321 "WITH OTHER PROGRAMMING LANGUAGES>)."
22325 #: ../inspector/virt-inspector.pod:81
22327 "Libvirt is only used if you specify a C<domname> on the command line. If "
22328 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22333 #: ../inspector/virt-inspector.pod:94
22335 "When prompting for keys and passphrases, virt-inspector normally turns "
22336 "echoing off so you cannot see what you are typing. If you are not worried "
22337 "about Tempest attacks and there is no one else in the room you can specify "
22338 "this flag to see what you are typing."
22342 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
22343 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
22344 #: ../tools/virt-win-reg.pl:144
22346 "Specify the format of disk images given on the command line. If this is "
22347 "omitted then the format is autodetected from the content of the disk image."
22351 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
22352 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
22353 #: ../tools/virt-win-reg.pl:148
22355 "If disk images are requested from libvirt, then this program asks libvirt "
22356 "for this information. In this case, the value of the format parameter is "
22361 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:391
22362 #: ../resize/virt-resize.pod:483 ../sparsify/virt-sparsify.pod:132
22363 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
22364 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22366 "If working with untrusted raw-format guest disk images, you should ensure "
22367 "the format is always specified."
22371 #: ../inspector/virt-inspector.pod:139
22372 msgid "Previous versions of virt-inspector allowed you to write either:"
22376 #: ../inspector/virt-inspector.pod:145
22379 " virt-inspector guestname\n"
22384 #: ../inspector/virt-inspector.pod:153
22389 #: ../inspector/virt-inspector.pod:155
22391 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22392 "C<virt-inspector.rng> which is supplied with libguestfs. This section is "
22393 "just an overview."
22397 #: ../inspector/virt-inspector.pod:159
22399 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22400 "more E<lt>operatingsystemE<gt> elements. You would only see more than one "
22401 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22402 "which is vanishingly rare in real world VMs."
22406 #: ../inspector/virt-inspector.pod:164
22407 msgid "E<lt>operatingsystemE<gt>"
22411 #: ../inspector/virt-inspector.pod:166
22413 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22414 "describe the operating system, its architecture, the descriptive \"product "
22415 "name\" string, the type of OS and so on, as in this example:"
22419 #: ../inspector/virt-inspector.pod:170
22422 " <operatingsystems>\n"
22423 " <operatingsystem>\n"
22424 " <root>/dev/sda2</root>\n"
22425 " <name>windows</name>\n"
22426 " <arch>i386</arch>\n"
22427 " <distro>windows</distro>\n"
22428 " <product_name>Windows 7 Enterprise</product_name>\n"
22429 " <product_variant>Client</product_variant>\n"
22430 " <major_version>6</major_version>\n"
22431 " <minor_version>1</minor_version>\n"
22432 " <windows_systemroot>/Windows</windows_systemroot>\n"
22433 " <format>installed</format>\n"
22438 #: ../inspector/virt-inspector.pod:183
22440 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22441 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22442 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22443 "architecture. The other fields are fairly self-explanatory, but because "
22444 "these fields are taken directly from the libguestfs inspection API you can "
22445 "find precise information from L<guestfs(3)/INSPECTION>."
22449 #: ../inspector/virt-inspector.pod:191
22451 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22452 "of view of libguestfs (block devices may have completely different names "
22453 "inside the VM itself)."
22457 #: ../inspector/virt-inspector.pod:195
22458 msgid "E<lt>mountpointsE<gt>"
22462 #: ../inspector/virt-inspector.pod:197
22464 "Un*x-like guests typically have multiple filesystems which are mounted at "
22465 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22466 "element which looks like this:"
22470 #: ../inspector/virt-inspector.pod:201
22473 " <operatingsystems>\n"
22474 " <operatingsystem>\n"
22477 " <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22478 " <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22479 " </mountpoints>\n"
22484 #: ../inspector/virt-inspector.pod:209
22486 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22487 "and may have completely different names inside the guest. Only mountable "
22488 "filesystems appear in this list, not things like swap devices."
22492 #: ../inspector/virt-inspector.pod:214
22493 msgid "E<lt>filesystemsE<gt>"
22497 #: ../inspector/virt-inspector.pod:216
22499 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22500 "filesystems belonging to the guest, including swap and empty partitions. "
22501 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22502 "this OS or shared with this OS and other OSes)."
22506 #: ../inspector/virt-inspector.pod:222
22507 msgid "You might see something like this:"
22511 #: ../inspector/virt-inspector.pod:224
22514 " <operatingsystems>\n"
22515 " <operatingsystem>\n"
22518 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22519 " <type>ext4</type>\n"
22520 " <label>Fedora-13-x86_64</label>\n"
22521 " <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22527 #: ../inspector/virt-inspector.pod:234
22529 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22530 "the label, and the UUID."
22534 #: ../inspector/virt-inspector.pod:237
22535 msgid "E<lt>applicationsE<gt>"
22539 #: ../inspector/virt-inspector.pod:239
22541 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22542 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22547 #: ../inspector/virt-inspector.pod:243
22549 "E<lt>package_formatE<gt>, if present, describes the packaging system used. "
22550 "Typical values would be C<rpm> and C<deb>."
22554 #: ../inspector/virt-inspector.pod:246
22556 "E<lt>package_managementE<gt>, if present, describes the package manager. "
22557 "Typical values include C<yum>, C<up2date> and C<apt>"
22561 #: ../inspector/virt-inspector.pod:249
22562 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22566 #: ../inspector/virt-inspector.pod:252
22569 " <operatingsystems>\n"
22570 " <operatingsystem>\n"
22572 " <applications>\n"
22574 " <name>coreutils</name>\n"
22575 " <version>8.5</version>\n"
22576 " <release>1</release>\n"
22577 " </application>\n"
22582 #: ../inspector/virt-inspector.pod:262
22584 "The version and release fields may not be available for some types guests. "
22585 "Other fields are possible, see L<guestfs(3)/"
22586 "guestfs_inspect_list_applications>."
22590 #: ../inspector/virt-inspector.pod:266
22591 msgid "E<lt>drive_mappingsE<gt>"
22595 #: ../inspector/virt-inspector.pod:268
22597 "For operating systems like Windows which use drive letters, virt-inspector "
22598 "is able to find out how drive letters map to filesystems."
22602 #: ../inspector/virt-inspector.pod:272
22605 " <operatingsystems>\n"
22606 " <operatingsystem>\n"
22608 " <drive_mappings>\n"
22609 " <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22610 " <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22611 " </drive_mappings>\n"
22616 #: ../inspector/virt-inspector.pod:280
22618 "In the example above, drive C maps to the filesystem on the second partition "
22619 "on the first disk, and drive E maps to the filesystem on the first partition "
22620 "on the second disk."
22624 #: ../inspector/virt-inspector.pod:284
22626 "Note that this only covers permanent local filesystem mappings, not things "
22627 "like network shares. Furthermore NTFS volume mount points may not be listed "
22632 #: ../inspector/virt-inspector.pod:288
22633 msgid "E<lt>iconE<gt>"
22637 #: ../inspector/virt-inspector.pod:290
22639 "Virt-inspector is sometimes able to extract an icon or logo for the guest. "
22640 "The icon is returned as base64-encoded PNG data. Note that the icon can be "
22641 "very large and high quality."
22645 #: ../inspector/virt-inspector.pod:294
22648 " <operatingsystems>\n"
22649 " <operatingsystem>\n"
22652 " iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22653 " [... many lines of base64 data ...]\n"
22659 #: ../inspector/virt-inspector.pod:302
22661 "To display the icon, you have to extract it and convert the base64 data back "
22662 "to a binary file. Use an XPath query or simply an editor to extract the "
22663 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22668 #: ../inspector/virt-inspector.pod:307
22671 " base64 -i -d < icon.data > icon.png\n"
22676 #: ../inspector/virt-inspector.pod:309
22677 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22681 #: ../inspector/virt-inspector.pod:311
22683 "Virt-inspector can detect some operating system installers on install disks, "
22684 "live CDs, bootable USB keys and more."
22688 #: ../inspector/virt-inspector.pod:314
22690 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22691 "fields may be present to indicate a live CD, network installer, or one part "
22692 "of a multipart CD. For example:"
22696 #: ../inspector/virt-inspector.pod:318
22699 " <operatingsystems>\n"
22700 " <operatingsystem>\n"
22701 " <root>/dev/sda</root>\n"
22702 " <name>linux</name>\n"
22703 " <arch>i386</arch>\n"
22704 " <distro>ubuntu</distro>\n"
22705 " <product_name>Ubuntu 10.10 "Maverick Meerkat"</product_name>\n"
22706 " <major_version>10</major_version>\n"
22707 " <minor_version>10</minor_version>\n"
22708 " <format>installer</format>\n"
22714 #: ../inspector/virt-inspector.pod:330
22715 msgid "USING XPATH"
22719 #: ../inspector/virt-inspector.pod:332
22721 "You can use the XPath query language to select parts of the XML. We "
22722 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
22726 #: ../inspector/virt-inspector.pod:338
22729 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
22731 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22732 " <type>ext4</type>\n"
22738 #: ../inspector/virt-inspector.pod:344
22741 " $ virt-inspector -d Guest | \\\n"
22742 " xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22748 #: ../inspector/virt-inspector.pod:348
22751 " $ virt-inspector -d Guest | \\\n"
22752 " xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
22753 " [displays the guest icon, if there is one]\n"
22758 #: ../inspector/virt-inspector.pod:359
22759 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22763 #: ../inspector/virt-inspector.pod:361
22765 "Early versions of libguestfs shipped with a different virt-inspector program "
22766 "written in Perl (the current version is written in C). The XML output of "
22767 "the Perl virt-inspector was different and it could also output in other "
22768 "formats like text."
22772 #: ../inspector/virt-inspector.pod:366
22774 "The old virt-inspector is no longer supported or shipped with libguestfs."
22778 #: ../inspector/virt-inspector.pod:369
22780 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22781 "versions of virt-inspector with different names:"
22785 #: ../inspector/virt-inspector.pod:372
22788 " virt-inspector Old Perl version.\n"
22789 " virt-inspector2 New C version.\n"
22794 #: ../inspector/virt-inspector.pod:382
22796 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
22797 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22801 #: ../inspector/virt-inspector.pod:399
22802 msgid "Matthew Booth L<mbooth@redhat.com>"
22806 #: ../java/examples/guestfs-java.pod:5
22807 msgid "guestfs-java - How to use libguestfs from Java"
22811 #: ../java/examples/guestfs-java.pod:9
22814 " import com.redhat.et.libguestfs.*;\n"
22819 #: ../java/examples/guestfs-java.pod:11
22822 " GuestFS g = new GuestFS ();\n"
22823 " g.add_drive_opts (\"disk.img\", null);\n"
22829 #: ../java/examples/guestfs-java.pod:17
22831 "This manual page documents how to call libguestfs from the Java programming "
22832 "language. This page just documents the differences from the C API and gives "
22833 "some examples. If you are not familiar with using libguestfs, you also need "
22834 "to read L<guestfs(3)>."
22838 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22839 msgid "CLOSING THE HANDLE"
22843 #: ../java/examples/guestfs-java.pod:24
22845 "The handle is closed when it is reaped by the garbage collector. Because "
22846 "libguestfs handles include a lot of state, it is also possible to close (and "
22847 "hence free) them explicitly by calling the C<close> method."
22851 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
22852 #: ../python/examples/guestfs-python.pod:21
22853 #: ../ruby/examples/guestfs-ruby.pod:22
22858 #: ../java/examples/guestfs-java.pod:31
22860 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22861 "exception. This has a single parameter which is the error message (a "
22866 #: ../java/examples/guestfs-java.pod:35
22867 msgid "Calling any method on a closed handle raises the same exception."
22871 #: ../java/examples/guestfs-java.pod:47
22873 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
22874 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22875 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22879 #: ../ocaml/examples/guestfs-ocaml.pod:5
22880 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22884 #: ../ocaml/examples/guestfs-ocaml.pod:9
22885 msgid "Module style:"
22889 #: ../ocaml/examples/guestfs-ocaml.pod:11
22892 " let g = Guestfs.create () in\n"
22893 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22894 " Guestfs.launch g;\n"
22899 #: ../ocaml/examples/guestfs-ocaml.pod:15
22900 msgid "Object-oriented style:"
22904 #: ../ocaml/examples/guestfs-ocaml.pod:17
22907 " let g = new Guestfs.guestfs () in\n"
22908 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22914 #: ../ocaml/examples/guestfs-ocaml.pod:21
22917 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22919 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22924 #: ../ocaml/examples/guestfs-ocaml.pod:27
22926 "This manual page documents how to call libguestfs from the OCaml programming "
22927 "language. This page just documents the differences from the C API and gives "
22928 "some examples. If you are not familiar with using libguestfs, you also need "
22929 "to read L<guestfs(3)>."
22933 #: ../ocaml/examples/guestfs-ocaml.pod:32
22934 msgid "PROGRAMMING STYLES"
22938 #: ../ocaml/examples/guestfs-ocaml.pod:34
22940 "There are two different programming styles supported by the OCaml bindings. "
22941 "You can use a module style, with each C function mapped to an OCaml function:"
22945 #: ../ocaml/examples/guestfs-ocaml.pod:38
22948 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22953 #: ../ocaml/examples/guestfs-ocaml.pod:40
22958 #: ../ocaml/examples/guestfs-ocaml.pod:42
22961 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22966 #: ../ocaml/examples/guestfs-ocaml.pod:44
22968 "Alternately you can use an object-oriented style, calling methods on the "
22969 "class C<Guestfs.guestfs>:"
22973 #: ../ocaml/examples/guestfs-ocaml.pod:47
22976 " method set_verbose : bool -> unit\n"
22981 #: ../ocaml/examples/guestfs-ocaml.pod:49
22983 "The object-oriented style is usually briefer, and the minor performance "
22984 "penalty isn't noticable in the general overhead of performing libguestfs "
22989 #: ../ocaml/examples/guestfs-ocaml.pod:55
22991 "The handle is closed when it is reaped by the garbage collector. Because "
22992 "libguestfs handles include a lot of state, it is also possible to close (and "
22993 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22998 #: ../ocaml/examples/guestfs-ocaml.pod:62
23000 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
23001 "exception. This has a single parameter which is the error message (a "
23006 #: ../ocaml/examples/guestfs-ocaml.pod:66
23008 "Calling any function/method on a closed handle raises C<Guestfs."
23009 "Handle_closed>. The single parameter is the name of the function that you "
23014 #: ../ocaml/examples/guestfs-ocaml.pod:80
23016 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23017 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23018 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23022 #: ../perl/examples/guestfs-perl.pod:5
23023 msgid "guestfs-perl - How to use libguestfs from Perl"
23027 #: ../perl/examples/guestfs-perl.pod:9
23030 " use Sys::Guestfs;\n"
23035 #: ../perl/examples/guestfs-perl.pod:11
23038 " my $h = Sys::Guestfs->new ();\n"
23039 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
23040 " $h->launch ();\n"
23041 " $h->mount_options ('', '/dev/sda1', '/');\n"
23042 " $h->touch ('/hello');\n"
23048 #: ../perl/examples/guestfs-perl.pod:20
23050 "This manual page documents how to call libguestfs from the Perl programming "
23051 "language. This page just documents the differences from the C API and gives "
23052 "some examples. If you are not familiar with using libguestfs, you also need "
23053 "to read L<guestfs(3)>. To read the full Perl API, see L<Sys::Guestfs(3)>."
23057 #: ../perl/examples/guestfs-perl.pod:26
23062 #: ../perl/examples/guestfs-perl.pod:28
23064 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
23069 #: ../perl/examples/guestfs-perl.pod:41
23071 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
23072 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
23073 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23077 #: ../python/examples/guestfs-python.pod:5
23078 msgid "guestfs-python - How to use libguestfs from Python"
23082 #: ../python/examples/guestfs-python.pod:9
23085 " import guestfs\n"
23086 " g = guestfs.GuestFS ()\n"
23087 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
23093 #: ../python/examples/guestfs-python.pod:16
23095 "This manual page documents how to call libguestfs from the Python "
23096 "programming language. This page just documents the differences from the C "
23097 "API and gives some examples. If you are not familiar with using libguestfs, "
23098 "you also need to read L<guestfs(3)>."
23102 #: ../python/examples/guestfs-python.pod:23
23104 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
23105 "single string argument which is the error message."
23109 #: ../python/examples/guestfs-python.pod:26
23110 msgid "MORE DOCUMENTATION"
23114 #: ../python/examples/guestfs-python.pod:28
23119 #: ../python/examples/guestfs-python.pod:30
23123 " >>> import guestfs\n"
23124 " >>> help (guestfs)\n"
23129 #: ../python/examples/guestfs-python.pod:44
23131 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23132 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
23133 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23137 #: ../rescue/virt-rescue.pod:5
23138 msgid "virt-rescue - Run a rescue shell on a virtual machine"
23142 #: ../rescue/virt-rescue.pod:9
23145 " virt-rescue [--options] -d domname\n"
23150 #: ../rescue/virt-rescue.pod:11
23153 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
23158 #: ../rescue/virt-rescue.pod:15
23161 " virt-rescue [--options] domname\n"
23166 #: ../rescue/virt-rescue.pod:17
23169 " virt-rescue [--options] disk.img [disk.img ...]\n"
23174 #: ../rescue/virt-rescue.pod:21
23176 "You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
23177 "probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
23178 "you from doing this, but doesn't catch all cases."
23182 #: ../rescue/virt-rescue.pod:25
23184 "However if you use the I<--ro> (read only) option, then you can attach a "
23185 "shell to a live virtual machine. The results might be strange or "
23186 "inconsistent at times but you won't get disk corruption."
23190 #: ../rescue/virt-rescue.pod:31
23192 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
23193 "need for a CD. virt-rescue gives you a rescue shell and some simple "
23194 "recovery tools which you can use to examine or rescue a virtual machine or "
23199 #: ../rescue/virt-rescue.pod:36
23201 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
23202 "on disk image(s):"
23206 #: ../rescue/virt-rescue.pod:39
23209 " virt-rescue -d GuestName\n"
23214 #: ../rescue/virt-rescue.pod:41
23217 " virt-rescue --ro -a /path/to/disk.img\n"
23222 #: ../rescue/virt-rescue.pod:43
23225 " virt-rescue -a /dev/sdc\n"
23230 #: ../rescue/virt-rescue.pod:45
23231 msgid "For live VMs you I<must> use the --ro option."
23235 #: ../rescue/virt-rescue.pod:47
23237 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23238 "in an interactive bash shell where you can use many ordinary Linux "
23239 "commands. What you see in C</> (C</bin>, C</lib> etc) is the rescue "
23240 "appliance. You must mount the virtual machine's filesystems by hand. There "
23241 "is an empty directory called C</sysroot> where you can mount filesystems."
23245 #: ../rescue/virt-rescue.pod:54
23247 "In the example below, we list logical volumes, then choose one to mount "
23248 "under C</sysroot>:"
23252 #: ../rescue/virt-rescue.pod:57
23256 " LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
23257 " lv_root vg_f11x64 -wi-a- 8.83G\n"
23258 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
23259 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
23260 " ><rescue> ls /sysroot\n"
23265 #: ../rescue/virt-rescue.pod:64
23267 "If you don't know what filesystems are available on the virtual machine then "
23268 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
23272 #: ../rescue/virt-rescue.pod:70
23274 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23275 "virtual machine. For example you can use it on a blank file if you want to "
23276 "partition that file (although we would recommend using L<guestfish(1)> "
23277 "instead as it is more suitable for this purpose). You can even use virt-"
23278 "rescue on things like SD cards."
23282 #: ../rescue/virt-rescue.pod:76
23284 "Virt-rescue does not require root. You only need to run it as root if you "
23285 "need root to open the disk image."
23289 #: ../rescue/virt-rescue.pod:79
23291 "This tool is just designed for quick interactive hacking on a virtual "
23292 "machine. For more structured access to a virtual machine disk image, you "
23293 "should use L<guestfs(3)>. To get a structured shell that you can use to "
23294 "make scripted changes to guests, use L<guestfish(1)>."
23298 #: ../rescue/virt-rescue.pod:103
23299 msgid "B<--append kernelopts>"
23300 msgstr "B<--append параметри_ядра>"
23303 #: ../rescue/virt-rescue.pod:105
23304 msgid "Pass additional options to the rescue kernel."
23308 #: ../rescue/virt-rescue.pod:135
23311 " virt-rescue --format=raw -a disk.img\n"
23316 #: ../rescue/virt-rescue.pod:139
23319 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23324 #: ../rescue/virt-rescue.pod:148
23329 #: ../rescue/virt-rescue.pod:150
23330 msgid "B<--memsize MB>"
23331 msgstr "B<--memsize МБ>"
23334 #: ../rescue/virt-rescue.pod:152
23336 "Change the amount of memory allocated to the rescue system. The default is "
23337 "set by libguestfs and is small but adequate for running system tools. The "
23338 "occasional program might need more memory. The parameter is specified in "
23343 #: ../rescue/virt-rescue.pod:157
23344 msgid "B<--network>"
23345 msgstr "B<--network>"
23348 #: ../rescue/virt-rescue.pod:159
23349 msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
23353 #: ../rescue/virt-rescue.pod:165
23354 msgid "Open the image read-only."
23358 #: ../rescue/virt-rescue.pod:175
23360 "Enable SELinux in the rescue appliance. You should read L<guestfs(3)/"
23361 "SELINUX> before using this option."
23365 #: ../rescue/virt-rescue.pod:178
23370 #: ../rescue/virt-rescue.pod:180
23371 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23375 #: ../rescue/virt-rescue.pod:198
23377 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23378 "are done read-write."
23382 #: ../rescue/virt-rescue.pod:211
23383 msgid "Previous versions of virt-rescue allowed you to write either:"
23387 #: ../rescue/virt-rescue.pod:213
23390 " virt-rescue disk.img [disk.img ...]\n"
23395 #: ../rescue/virt-rescue.pod:217
23398 " virt-rescue guestname\n"
23403 #: ../rescue/virt-rescue.pod:225
23408 #: ../rescue/virt-rescue.pod:227
23410 "Adding the I<--network> option enables QEMU user networking in the rescue "
23411 "appliance. There are some differences between user networking and ordinary "
23416 #: ../rescue/virt-rescue.pod:233
23417 msgid "ping does not work"
23421 #: ../rescue/virt-rescue.pod:235
23423 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23424 "send the ping packets, and because virt-rescue must be able to run as non-"
23425 "root, QEMU user networking is not able to emulate the L<ping(8)> command. "
23426 "The ping command will appear to resolve addresses but will not be able to "
23427 "send or receive any packets. This does not mean that the network is not "
23432 #: ../rescue/virt-rescue.pod:242
23433 msgid "cannot receive connections"
23437 #: ../rescue/virt-rescue.pod:244
23438 msgid "QEMU user networking cannot receive incoming connections."
23442 #: ../rescue/virt-rescue.pod:246
23443 msgid "making TCP connections"
23447 #: ../rescue/virt-rescue.pod:248
23449 "The virt-rescue appliance needs to be small and so does not include many "
23450 "network tools. In particular there is no L<telnet(1)> command. You can "
23451 "make TCP connections from the shell using the magical C</dev/tcp/"
23452 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23456 #: ../rescue/virt-rescue.pod:253
23459 " exec 3<>/dev/tcp/redhat.com/80\n"
23460 " echo \"GET /\" >&3\n"
23466 #: ../rescue/virt-rescue.pod:257
23467 msgid "See L<bash(1)> for more details."
23471 #: ../rescue/virt-rescue.pod:263
23473 "Several environment variables affect virt-rescue. See L<guestfs(3)/"
23474 "ENVIRONMENT VARIABLES> for the complete list."
23478 #: ../rescue/virt-rescue.pod:290
23480 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
23481 "libguestfs.org/>."
23485 #: ../resize/virt-resize.pod:5
23486 msgid "virt-resize - Resize a virtual machine disk"
23490 #: ../resize/virt-resize.pod:9
23493 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23494 " [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23495 " [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23500 #: ../resize/virt-resize.pod:15
23502 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23503 "larger or smaller overall, and resizing or deleting any partitions contained "
23508 #: ../resize/virt-resize.pod:19
23510 "Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
23511 "not> be used on live virtual machines - for consistent results, shut the "
23512 "virtual machine down before resizing it."
23516 #: ../resize/virt-resize.pod:23
23518 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23519 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23523 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597
23524 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:484
23525 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
23530 #: ../resize/virt-resize.pod:33
23532 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23533 "fill the extra 5GB of space."
23537 #: ../resize/virt-resize.pod:36
23540 " virt-filesystems --long -h --all -a olddisk\n"
23545 #: ../resize/virt-resize.pod:38
23548 " truncate -r olddisk newdisk\n"
23549 " truncate -s +5G newdisk\n"
23554 #: ../resize/virt-resize.pod:41
23557 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23558 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23563 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604
23564 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:490
23565 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
23570 #: ../resize/virt-resize.pod:46
23572 "As above, but make the /boot partition 200MB bigger, while giving the "
23573 "remaining space to /dev/sda2:"
23577 #: ../resize/virt-resize.pod:49
23580 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23581 " olddisk newdisk\n"
23586 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610
23587 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:501
23588 #: ../src/guestfs.pod:1451
23593 #: ../resize/virt-resize.pod:54
23595 "As in the first example, but expand a logical volume as the final step. "
23596 "This is what you would typically use for Linux guests that use LVM:"
23600 #: ../resize/virt-resize.pod:58
23603 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23604 " olddisk newdisk\n"
23609 #: ../resize/virt-resize.pod:61
23614 #: ../resize/virt-resize.pod:63
23616 "As in the first example, but the output format will be qcow2 instead of a "
23621 #: ../resize/virt-resize.pod:66
23624 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23625 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23630 #: ../resize/virt-resize.pod:71
23631 msgid "DETAILED USAGE"
23632 msgstr "ДОКЛАДНІШЕ ЩОДО ВИКОРИСТАННЯ"
23635 #: ../resize/virt-resize.pod:73
23636 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23637 msgstr "РОЗШИРЕННЯ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
23640 #: ../resize/virt-resize.pod:77
23641 msgid "1. Shut down the virtual machine"
23645 #: ../resize/virt-resize.pod:79
23646 msgid "2. Locate input disk image"
23650 #: ../resize/virt-resize.pod:81
23652 "Locate the input disk image (ie. the file or device on the host containing "
23653 "the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
23654 "dumpxml> like this to find the disk image name:"
23658 #: ../resize/virt-resize.pod:85
23661 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23662 " Found 1 nodes:\n"
23664 " <source dev=\"/dev/vg/lv_guest\" />\n"
23669 #: ../resize/virt-resize.pod:90
23670 msgid "3. Look at current sizing"
23674 #: ../resize/virt-resize.pod:92
23675 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23679 #: ../resize/virt-resize.pod:95
23682 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23683 " Name Type Size Parent\n"
23684 " /dev/sda1 partition 101M /dev/sda\n"
23685 " /dev/sda2 partition 7.9G /dev/sda\n"
23686 " /dev/sda device 8.0G -\n"
23691 #: ../resize/virt-resize.pod:101
23693 "(This example is a virtual machine with an 8 GB disk which we would like to "
23694 "expand up to 10 GB)."
23698 #: ../resize/virt-resize.pod:104
23699 msgid "4. Create output disk"
23703 #: ../resize/virt-resize.pod:106
23705 "Virt-resize cannot do in-place disk modifications. You have to have space "
23706 "to store the resized output disk."
23710 #: ../resize/virt-resize.pod:109
23712 "To store the resized disk image in a file, create a file of a suitable size:"
23716 #: ../resize/virt-resize.pod:112
23719 " # rm -f outdisk\n"
23720 " # truncate -s 10G outdisk\n"
23725 #: ../resize/virt-resize.pod:115
23726 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23730 #: ../resize/virt-resize.pod:117
23733 " # lvcreate -L 10G -n lv_name vg_name\n"
23738 #: ../resize/virt-resize.pod:119
23739 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23743 #: ../resize/virt-resize.pod:121
23746 " # virsh pool-list\n"
23747 " # virsh vol-create-as poolname newvol 10G\n"
23752 #: ../resize/virt-resize.pod:124
23754 msgstr "5. Зміна розміру"
23757 #: ../resize/virt-resize.pod:126
23759 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23760 "file) and the output disk. The output disk is the one created in the "
23765 #: ../resize/virt-resize.pod:130
23768 " # virt-resize indisk outdisk\n"
23773 #: ../resize/virt-resize.pod:132
23775 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23776 "I<without> resizing or changing any existing partitions. If C<outdisk> is "
23777 "larger, then an extra, empty partition is created at the end of the disk "
23778 "covering the extra space. If C<outdisk> is smaller, then it will give an "
23783 #: ../resize/virt-resize.pod:138
23785 "More realistically you'd want to expand existing partitions in the disk "
23786 "image by passing extra options (for the full list see the L</OPTIONS> "
23791 #: ../resize/virt-resize.pod:142
23793 "L</--expand> is the most useful option. It expands the named partition "
23794 "within the disk to fill any extra space:"
23798 #: ../resize/virt-resize.pod:145
23801 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23806 #: ../resize/virt-resize.pod:147
23808 "(In this case, an extra partition is I<not> created at the end of the disk, "
23809 "because there will be no unused space)."
23813 #: ../resize/virt-resize.pod:150
23815 "L</--resize> is the other commonly used option. The following would "
23816 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23817 "rest of the available space:"
23821 #: ../resize/virt-resize.pod:154
23824 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23825 " indisk outdisk\n"
23830 #: ../resize/virt-resize.pod:157
23832 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23833 "if virt-resize knows how, it will resize the contents, the equivalent of "
23834 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23835 "or L<btrfs(8)>. However virt-resize does not know how to resize some "
23836 "filesystems, so you would have to online resize them after booting the guest."
23840 #: ../resize/virt-resize.pod:164
23841 msgid "Other options are covered below."
23845 #: ../resize/virt-resize.pod:166
23847 msgstr "6. Перевірка"
23850 #: ../resize/virt-resize.pod:168
23851 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23855 #: ../resize/virt-resize.pod:170
23856 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23860 #: ../resize/virt-resize.pod:172
23863 " # virsh edit guestname\n"
23868 #: ../resize/virt-resize.pod:174
23870 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
23871 "html#elementsDisks>"
23875 #: ../resize/virt-resize.pod:177
23876 msgid "Then start up the domain with the new, resized disk:"
23880 #: ../resize/virt-resize.pod:179
23883 " # virsh start guestname\n"
23888 #: ../resize/virt-resize.pod:181
23890 "and check that it still works. See also the L</NOTES> section below for "
23891 "additional information."
23895 #: ../resize/virt-resize.pod:184
23896 msgid "7. Resize LVs etc inside the guest"
23900 #: ../resize/virt-resize.pod:186
23901 msgid "(This can also be done offline using L<guestfish(1)>)"
23905 #: ../resize/virt-resize.pod:188
23907 "Once the guest has booted you should see the new space available, at least "
23908 "for filesystems that virt-resize knows how to resize, and for PVs. The user "
23909 "may need to resize LVs inside PVs, and also resize filesystem types that "
23910 "virt-resize does not know how to expand."
23914 #: ../resize/virt-resize.pod:195
23915 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23919 #: ../resize/virt-resize.pod:197
23921 "Shrinking is somewhat more complex than expanding, and only an overview is "
23926 #: ../resize/virt-resize.pod:200
23928 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23929 "filesystems). The user has to shrink content before passing the disk image "
23930 "to virt-resize, and virt-resize will check that the content has been shrunk "
23935 #: ../resize/virt-resize.pod:205
23936 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23940 #: ../resize/virt-resize.pod:207
23942 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23943 "steps 3 and 4 above to allocate a new disk image."
23947 #: ../resize/virt-resize.pod:210
23949 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23953 #: ../resize/virt-resize.pod:213
23954 msgid "IGNORING OR DELETING PARTITIONS"
23958 #: ../resize/virt-resize.pod:215
23960 "virt-resize also gives a convenient way to ignore or delete partitions when "
23961 "copying from the input disk to the output disk. Ignoring a partition speeds "
23962 "up the copy where you don't care about the existing contents of a "
23963 "partition. Deleting a partition removes it completely, but note that it "
23964 "also renumbers any partitions after the one which is deleted, which can "
23965 "leave some guests unbootable."
23969 #: ../resize/virt-resize.pod:222
23970 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23974 #: ../resize/virt-resize.pod:224
23976 "If the input disk is in qcow2 format, then you may prefer that the output is "
23977 "in qcow2 format as well. Alternately, virt-resize can convert the format on "
23978 "the fly. The output format is simply determined by the format of the empty "
23979 "output container that you provide. Thus to create qcow2 output, use:"
23983 #: ../resize/virt-resize.pod:230
23986 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23991 #: ../resize/virt-resize.pod:232
23992 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23996 #: ../resize/virt-resize.pod:234
23997 msgid "Similarly, to get non-sparse raw output use:"
24001 #: ../resize/virt-resize.pod:236
24004 " fallocate -l size outdisk\n"
24009 #: ../resize/virt-resize.pod:238
24011 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
24012 "dev/zero of=outdisk bs=1M count=..>)"
24016 #: ../resize/virt-resize.pod:241
24018 #| msgid "PARTITIONING"
24019 msgid "LOGICAL PARTITIONS"
24020 msgstr "ПОДІЛ НА РОЗДІЛИ"
24023 #: ../resize/virt-resize.pod:243
24025 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
24026 "tables) cannot be resized."
24030 #: ../resize/virt-resize.pod:246
24032 "To understand what is going on, firstly one of the four partitions C</dev/"
24033 "sda1-4> will have MBR partition type C<05> or C<0f>. This is called the "
24034 "B<extended partition>. Use L<virt-filesystems(1)> to see the MBR partition "
24039 #: ../resize/virt-resize.pod:251
24040 msgid "Logical partitions live inside the extended partition."
24044 #: ../resize/virt-resize.pod:253
24046 "The extended partition can be expanded, but not shrunk (unless you force it, "
24047 "which is not advisable). When the extended partition is copied across, all "
24048 "the logical partitions contained inside are copied over implicitly. Virt-"
24049 "resize does not look inside the extended partition, so it copies the logical "
24050 "partitions blindly."
24054 #: ../resize/virt-resize.pod:259
24056 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
24057 "line. Doing so will give an error."
24061 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
24062 msgid "Display help."
24066 #: ../resize/virt-resize.pod:270
24068 #| msgid "B<--ignore part>"
24069 msgid "B<--align-first auto>"
24070 msgstr "B<--ignore розділ>"
24073 #: ../resize/virt-resize.pod:272
24075 #| msgid "B<--listen>"
24076 msgid "B<--align-first never>"
24077 msgstr "B<--listen>"
24080 #: ../resize/virt-resize.pod:274
24081 msgid "B<--align-first always>"
24085 #: ../resize/virt-resize.pod:276
24087 "Align the first partition for improved performance (see also the I<--"
24088 "alignment> option)."
24092 #: ../resize/virt-resize.pod:279
24094 "The default is I<--align-first auto> which only aligns the first partition "
24095 "if it is safe to do so. That is, only when we know how to fix the "
24096 "bootloader automatically, and at the moment that can only be done for "
24101 #: ../resize/virt-resize.pod:284
24103 "I<--align-first never> means we never move the first partition. This is the "
24104 "safest option. Try this if the guest does not boot after resizing."
24108 #: ../resize/virt-resize.pod:288
24110 "I<--align-first always> means we always align the first partition (if it "
24111 "needs to be aligned). For some guests this will break the bootloader, "
24112 "making the guest unbootable."
24116 #: ../resize/virt-resize.pod:292
24118 #| msgid "B<--time-t>"
24119 msgid "B<--alignment N>"
24120 msgstr "B<--time-t>"
24123 #: ../resize/virt-resize.pod:294
24125 "Set the alignment of partitions to C<N> sectors. The default in virt-resize "
24126 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
24130 #: ../resize/virt-resize.pod:298
24132 "Assuming 512 byte sector size inside the guest, here are some suitable "
24137 #: ../resize/virt-resize.pod:303
24138 msgid "I<--alignment 1> (512 bytes)"
24142 #: ../resize/virt-resize.pod:305
24144 "The partitions would be packed together as closely as possible, but would be "
24145 "completely unaligned. In some cases this can cause very poor performance. "
24146 "See L<virt-alignment-scan(1)> for further details."
24150 #: ../resize/virt-resize.pod:309
24151 msgid "I<--alignment 8> (4K)"
24155 #: ../resize/virt-resize.pod:311
24157 "This would be the minimum acceptable alignment for reasonable performance on "
24162 #: ../resize/virt-resize.pod:314
24163 msgid "I<--alignment 128> (64K)"
24167 #: ../resize/virt-resize.pod:316
24169 "This alignment provides good performance when the host is using high end "
24174 #: ../resize/virt-resize.pod:319
24175 msgid "I<--alignment 2048> (1M)"
24179 #: ../resize/virt-resize.pod:321
24181 "This is the standard alignment used by all newly installed guests since "
24186 #: ../resize/virt-resize.pod:326
24191 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
24192 #: ../tools/virt-win-reg.pl:120
24194 msgstr "B<--debug>"
24197 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
24198 msgid "Enable debugging messages."
24202 #: ../resize/virt-resize.pod:332
24203 msgid "B<--delete part>"
24204 msgstr "B<--delete розділ>"
24207 #: ../resize/virt-resize.pod:334
24209 "Delete the named partition. It would be more accurate to describe this as "
24210 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24211 "the original disk image is left intact."
24215 #: ../resize/virt-resize.pod:338
24217 "Note that when you delete a partition, then anything contained in the "
24218 "partition is also deleted. Furthermore, this causes any partitions that "
24219 "come after to be I<renumbered>, which can easily make your guest unbootable."
24223 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404
24224 #: ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:145
24225 msgid "You can give this option multiple times."
24229 #: ../resize/virt-resize.pod:345
24230 msgid "B<--expand part>"
24231 msgstr "B<--expand розділ>"
24234 #: ../resize/virt-resize.pod:347
24236 "Expand the named partition so it uses up all extra space (space left over "
24237 "after any other resize changes that you request have been done)."
24241 #: ../resize/virt-resize.pod:350
24243 "If virt-resize knows how, it will expand the direct content of the "
24244 "partition. For example, if the partition is an LVM PV, it will expand the "
24245 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
24246 "content it doesn't know about alone."
24250 #: ../resize/virt-resize.pod:355
24251 msgid "Currently virt-resize can resize:"
24255 #: ../resize/virt-resize.pod:361
24256 msgid "ext2, ext3 and ext4 filesystems."
24260 #: ../resize/virt-resize.pod:365
24261 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24265 #: ../resize/virt-resize.pod:367
24267 "The filesystem must have been shut down consistently last time it was used. "
24268 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
24269 "consistency check, so at the first boot after resizing Windows will check "
24274 #: ../resize/virt-resize.pod:374
24276 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
24277 "inside the PV, but see the I<--LV-expand> option. The user could also "
24278 "resize LVs as desired after boot."
24282 #: ../resize/virt-resize.pod:380
24283 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
24287 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
24288 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
24292 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:125
24293 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
24294 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
24295 msgid "B<--format> raw"
24296 msgstr "B<--format> raw"
24299 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:129
24301 "Specify the format of the input disk image. If this flag is not given then "
24302 "it is auto-detected from the image itself."
24306 #: ../resize/virt-resize.pod:394
24308 "Note that this option I<does not> affect the output format. See L</QCOW2 "
24309 "AND NON-SPARSE RAW FORMATS>."
24313 #: ../resize/virt-resize.pod:397
24314 msgid "B<--ignore part>"
24315 msgstr "B<--ignore розділ>"
24318 #: ../resize/virt-resize.pod:399
24320 "Ignore the named partition. Effectively this means the partition is "
24321 "allocated on the destination disk, but the content is not copied across from "
24322 "the source disk. The content of the partition will be blank (all zero "
24327 #: ../resize/virt-resize.pod:406
24328 msgid "B<--LV-expand logvol>"
24329 msgstr "B<--LV-expand логічний_том>"
24332 #: ../resize/virt-resize.pod:408
24334 "This takes the logical volume and, as a final step, expands it to fill all "
24335 "the space available in its volume group. A typical usage, assuming a Linux "
24336 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
24337 "lv_root> would be:"
24341 #: ../resize/virt-resize.pod:413
24344 " virt-resize indisk outdisk \\\n"
24345 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24350 #: ../resize/virt-resize.pod:416
24352 "This would first expand the partition (and PV), and then expand the root "
24353 "device to fill the extra space in the PV."
24357 #: ../resize/virt-resize.pod:419
24359 "The contents of the LV are also resized if virt-resize knows how to do "
24360 "that. You can stop virt-resize from trying to expand the content by using "
24361 "the option I<--no-expand-content>."
24365 #: ../resize/virt-resize.pod:423
24366 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24370 #: ../resize/virt-resize.pod:425
24372 "You can give this option multiple times, I<but> it doesn't make sense to do "
24373 "this unless the logical volumes you specify are all in different volume "
24378 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:147
24379 msgid "B<--machine-readable>"
24383 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:149
24385 "This option is used to make the output more machine friendly when being "
24386 "parsed by other programs. See L</MACHINE READABLE OUTPUT> below."
24390 #: ../resize/virt-resize.pod:437
24391 msgid "B<--dryrun>"
24392 msgstr "B<--dryrun>"
24395 #: ../resize/virt-resize.pod:439
24396 msgid "Print a summary of what would be done, but don't do anything."
24400 #: ../resize/virt-resize.pod:441
24401 msgid "B<--no-copy-boot-loader>"
24402 msgstr "B<--no-copy-boot-loader>"
24405 #: ../resize/virt-resize.pod:443
24407 "By default, virt-resize copies over some sectors at the start of the disk "
24408 "(up to the beginning of the first partition). Commonly these sectors "
24409 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24410 "in order for the guest to boot correctly."
24414 #: ../resize/virt-resize.pod:448
24416 "If you specify this flag, then this initial copy is not done. You may need "
24417 "to reinstall the boot loader in this case."
24421 #: ../resize/virt-resize.pod:451
24422 msgid "B<--no-extra-partition>"
24423 msgstr "B<--no-extra-partition>"
24426 #: ../resize/virt-resize.pod:453
24428 "By default, virt-resize creates an extra partition if there is any extra, "
24429 "unused space after all resizing has happened. Use this option to prevent "
24430 "the extra partition from being created. If you do this then the extra space "
24431 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24432 "tool in the guest."
24436 #: ../resize/virt-resize.pod:459
24438 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24443 #: ../resize/virt-resize.pod:462
24444 msgid "B<--no-expand-content>"
24445 msgstr "B<--no-expand-content>"
24448 #: ../resize/virt-resize.pod:464
24450 "By default, virt-resize will try to expand the direct contents of "
24451 "partitions, if it knows how (see I<--expand> option above)."
24455 #: ../resize/virt-resize.pod:467
24457 "If you give the I<--no-expand-content> option then virt-resize will not "
24462 #: ../resize/virt-resize.pod:470
24463 msgid "B<--ntfsresize-force>"
24464 msgstr "B<--ntfsresize-force>"
24467 #: ../resize/virt-resize.pod:472
24469 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24470 "the NTFS disk is marked as needing a consistency check. You have to use "
24471 "this option if you want to resize a Windows guest multiple times without "
24472 "booting into Windows between each resize."
24476 #: ../resize/virt-resize.pod:478
24477 msgid "B<--output-format> raw"
24478 msgstr "B<--output-format> raw"
24481 #: ../resize/virt-resize.pod:480
24483 "Specify the format of the output disk image. If this flag is not given then "
24484 "it is auto-detected from the image itself."
24488 #: ../resize/virt-resize.pod:486
24490 "Note that this option I<does not create> the output format. This option "
24491 "just tells libguestfs what it is so it doesn't try to guess it. You still "
24492 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
24493 "SPARSE RAW FORMATS>."
24497 #: ../resize/virt-resize.pod:495
24498 msgid "Don't print the summary."
24502 #: ../resize/virt-resize.pod:497
24503 msgid "B<--resize part=size>"
24504 msgstr "B<--resize розділ=розмір>"
24507 #: ../resize/virt-resize.pod:499
24509 "Resize the named partition (expanding or shrinking it) so that it has the "
24514 #: ../resize/virt-resize.pod:502
24516 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24517 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24518 "size; or as a relative number or percentage. For example:"
24522 #: ../resize/virt-resize.pod:508
24525 " --resize /dev/sda2=10G\n"
24530 #: ../resize/virt-resize.pod:510
24533 " --resize /dev/sda4=90%\n"
24538 #: ../resize/virt-resize.pod:512
24541 " --resize /dev/sda2=+1G\n"
24546 #: ../resize/virt-resize.pod:514
24549 " --resize /dev/sda2=-200M\n"
24554 #: ../resize/virt-resize.pod:516
24557 " --resize /dev/sda1=+128K\n"
24562 #: ../resize/virt-resize.pod:518
24565 " --resize /dev/sda1=+10%\n"
24570 #: ../resize/virt-resize.pod:520
24573 " --resize /dev/sda1=-10%\n"
24578 #: ../resize/virt-resize.pod:522
24580 "You can increase the size of any partition. Virt-resize will expand the "
24581 "direct content of the partition if it knows how (see I<--expand> below)."
24585 #: ../resize/virt-resize.pod:526
24587 "You can only I<decrease> the size of partitions that contain filesystems or "
24588 "PVs which have already been shrunk. Virt-resize will check this has been "
24589 "done before proceeding, or else will print an error (see also I<--resize-"
24594 #: ../resize/virt-resize.pod:533
24595 msgid "B<--resize-force part=size>"
24596 msgstr "B<--resize-force розділ=розмір>"
24599 #: ../resize/virt-resize.pod:535
24601 "This is the same as I<--resize> except that it will let you decrease the "
24602 "size of any partition. Generally this means you will lose any data which "
24603 "was at the end of the partition you shrink, but you may not care about that "
24604 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24605 "as a swap partition)."
24609 #: ../resize/virt-resize.pod:541
24610 msgid "See also the I<--ignore> option."
24614 #: ../resize/virt-resize.pod:543
24615 msgid "B<--shrink part>"
24616 msgstr "B<--shrink розділ>"
24619 #: ../resize/virt-resize.pod:545
24621 "Shrink the named partition until the overall disk image fits in the "
24622 "destination. The named partition B<must> contain a filesystem or PV which "
24623 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24624 "online tools). Virt-resize will check this and give an error if it has not "
24629 #: ../resize/virt-resize.pod:551
24631 "The amount by which the overall disk must be shrunk (after carrying out all "
24632 "other operations requested by the user) is called the \"deficit\". For "
24633 "example, a straight copy (assume no other operations) from a 5GB disk image "
24634 "to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
24635 "would give an error unless the user specified a partition to shrink and that "
24636 "partition had more than a gigabyte of free space."
24640 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:177
24641 msgid "MACHINE READABLE OUTPUT"
24645 #: ../resize/virt-resize.pod:571
24647 "The I<--machine-readable> option can be used to make the output more machine "
24648 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24653 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:183
24654 msgid "There are two ways to use this option."
24658 #: ../resize/virt-resize.pod:577
24660 "Firstly use the option on its own to query the capabilities of the virt-"
24661 "resize binary. Typical output looks like this:"
24665 #: ../resize/virt-resize.pod:580
24668 " $ virt-resize --machine-readable\n"
24670 " ntfsresize-force\n"
24678 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:193
24680 "A list of features is printed, one per line, and the program exits with "
24685 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:196
24687 "Secondly use the option in conjunction with other options to make the "
24688 "regular program output more machine friendly."
24692 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:199
24693 msgid "At the moment this means:"
24697 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:205
24699 "Progress bar messages can be parsed from stdout by looking for this regular "
24704 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:208
24707 " ^[0-9]+/[0-9]+$\n"
24712 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:212
24714 "The calling program should treat messages sent to stdout (except for "
24715 "progress bar messages) as status messages. They can be logged and/or "
24716 "displayed to the user."
24720 #: ../resize/virt-resize.pod:612
24722 "The calling program should treat messages sent to stderr as error messages. "
24723 "In addition, virt-resize exits with a non-zero status code if there was a "
24728 #: ../resize/virt-resize.pod:618
24730 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
24731 "readable> option and will return an error."
24735 #: ../resize/virt-resize.pod:623
24736 msgid "\"Partition 1 does not end on cylinder boundary.\""
24740 #: ../resize/virt-resize.pod:625
24742 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
24743 "alignment> parameter). Usually this means the partitions will not be "
24744 "aligned to the ancient CHS geometry. However CHS geometry is meaningless "
24745 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24746 "drives. Alignment of partitions to cylinders is not required by any modern "
24747 "operating system."
24751 #: ../resize/virt-resize.pod:632
24752 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24756 #: ../resize/virt-resize.pod:634
24758 "In Windows Vista and later versions, Microsoft switched to using a separate "
24759 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
24760 "and C</dev/sda2> is the main (C:) drive. Resizing the first (boot) "
24761 "partition causes the bootloader to fail with C<0xC0000225> error. Resizing "
24762 "the second partition (ie. C: drive) should work."
24766 #: ../resize/virt-resize.pod:641
24768 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24769 "NTFS partitions have been expanded. This is just a safety check and (unless "
24770 "it find errors) is nothing to worry about."
24774 #: ../resize/virt-resize.pod:645
24775 msgid "GUEST BOOT STUCK AT \"GRUB\""
24779 #: ../resize/virt-resize.pod:647
24781 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24782 "printing C<GRUB> on the console, try reinstalling grub."
24786 #: ../resize/virt-resize.pod:650
24789 " guestfish -i -a newdisk\n"
24790 " ><fs> cat /boot/grub/device.map\n"
24791 " # check the contents of this file are sensible or\n"
24792 " # edit the file if necessary\n"
24793 " ><fs> grub-install / /dev/vda\n"
24799 #: ../resize/virt-resize.pod:657
24801 "For more flexible guest reconfiguration, including if you need to specify "
24802 "other parameters to grub-install, use L<virt-rescue(1)>."
24806 #: ../resize/virt-resize.pod:660
24807 msgid "ALTERNATIVE TOOLS"
24811 #: ../resize/virt-resize.pod:662
24813 "There are several proprietary tools for resizing partitions. We won't "
24814 "mention any here."
24818 #: ../resize/virt-resize.pod:665
24820 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24821 "operations on disk images. They can resize and move partitions, but I don't "
24822 "think they can do anything with the contents, and they certainly don't "
24827 #: ../resize/virt-resize.pod:670
24829 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24830 "but at a much lower level. You will probably end up hand-calculating sector "
24831 "offsets, which is something that virt-resize was designed to avoid. If you "
24832 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24837 #: ../resize/virt-resize.pod:690
24839 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
24840 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
24841 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
24842 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
24843 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24847 #: ../ruby/examples/guestfs-ruby.pod:5
24848 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24852 #: ../ruby/examples/guestfs-ruby.pod:9
24855 " require 'guestfs'\n"
24856 " g = Guestfs::Guestfs.new()\n"
24857 " g.add_drive_opts(\"disk.img\",\n"
24858 " :readonly => 1, :format => \"raw\")\n"
24864 #: ../ruby/examples/guestfs-ruby.pod:17
24866 "This manual page documents how to call libguestfs from the Ruby programming "
24867 "language. This page just documents the differences from the C API and gives "
24868 "some examples. If you are not familiar with using libguestfs, you also need "
24869 "to read L<guestfs(3)>."
24873 #: ../ruby/examples/guestfs-ruby.pod:24
24875 "Errors from libguestfs functions are mapped into the C<Error> exception. "
24876 "This has a single parameter which is the error message (a string)."
24880 #: ../ruby/examples/guestfs-ruby.pod:38
24882 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24883 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
24884 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24888 #: ../sparsify/virt-sparsify.pod:5
24889 msgid "virt-sparsify - Make a virtual machine disk sparse"
24893 #: ../sparsify/virt-sparsify.pod:9
24896 " virt-sparsify [--options] indisk outdisk\n"
24901 #: ../sparsify/virt-sparsify.pod:13
24903 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24904 "image) sparse a.k.a. thin-provisioned. This means that free space within "
24905 "the disk image can be converted back to free space on the host."
24909 #: ../sparsify/virt-sparsify.pod:18
24911 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
24912 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24916 #: ../sparsify/virt-sparsify.pod:21
24918 "Virt-sparsify can also convert between some disk formats, for example "
24919 "converting a raw disk image to a thin-provisioned qcow2 image."
24923 #: ../sparsify/virt-sparsify.pod:24
24925 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24926 "machines. If a virtual machine has more than one attached disk, you must "
24927 "sparsify each one separately."
24931 #: ../sparsify/virt-sparsify.pod:28
24932 msgid "IMPORTANT LIMITATIONS"
24936 #: ../sparsify/virt-sparsify.pod:34
24938 "Virt-sparsify does not do in-place modifications. It copies from a source "
24939 "image to a destination image, leaving the source unchanged. I<Check that "
24940 "the sparsification was successful before deleting the source image>."
24944 #: ../sparsify/virt-sparsify.pod:41
24945 msgid "The virtual machine I<must be shut down> before using this tool."
24949 #: ../sparsify/virt-sparsify.pod:45
24951 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24952 "(1 temporary copy + 1 destination image). This is in the worst case and "
24953 "usually much less space is required."
24957 #: ../sparsify/virt-sparsify.pod:51
24959 "Virt-sparsify cannot resize disk images. To do that, use L<virt-resize(1)>."
24963 #: ../sparsify/virt-sparsify.pod:56
24964 msgid "Virt-sparsify cannot handle encrypted disks."
24968 #: ../sparsify/virt-sparsify.pod:60
24970 "Virt-sparsify cannot yet sparsify the space between partitions. Note that "
24971 "this space is often used for critical items like bootloaders so it's not "
24976 #: ../sparsify/virt-sparsify.pod:66
24978 "Virt-sparsify does not yet know how to sparsify swapspace. It is not safe "
24979 "to do this unless we can be sure there is no hibernation data, so at the "
24980 "moment swap partitions are ignored."
24984 #: ../sparsify/virt-sparsify.pod:72
24986 "You may also want to read the manual pages for the associated tools L<virt-"
24987 "filesystems(1)> and L<virt-df(1)> before starting."
24991 #: ../sparsify/virt-sparsify.pod:77
24992 msgid "Typical usage is:"
24996 #: ../sparsify/virt-sparsify.pod:79
24999 " virt-sparsify indisk outdisk\n"
25004 #: ../sparsify/virt-sparsify.pod:81
25006 "which copies C<indisk> to C<outdisk>, making the output sparse. C<outdisk> "
25007 "is created, or overwritten if it already exists. The format of the input "
25008 "disk is detected (eg. qcow2) and the same format is used for the output disk."
25012 #: ../sparsify/virt-sparsify.pod:86
25013 msgid "To convert between formats, use the I<--convert> option:"
25017 #: ../sparsify/virt-sparsify.pod:88
25020 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
25025 #: ../sparsify/virt-sparsify.pod:90
25027 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
25028 "can find within the source disk image. You can get it to ignore (don't zero "
25029 "free space on) certain filesystems by doing:"
25033 #: ../sparsify/virt-sparsify.pod:94
25036 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
25041 #: ../sparsify/virt-sparsify.pod:96
25043 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
25047 #: ../sparsify/virt-sparsify.pod:107
25048 msgid "B<--convert> raw"
25052 #: ../sparsify/virt-sparsify.pod:109
25053 msgid "B<--convert> qcow2"
25057 #: ../sparsify/virt-sparsify.pod:111
25058 msgid "B<--convert> [other formats]"
25062 #: ../sparsify/virt-sparsify.pod:113
25064 "Use C<output-format> as the format for the destination image. If this is "
25065 "not specified, then the input format is used."
25069 #: ../sparsify/virt-sparsify.pod:116
25070 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
25074 #: ../sparsify/virt-sparsify.pod:118
25076 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
25077 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
25081 #: ../sparsify/virt-sparsify.pod:122
25083 "Specifying the I<--convert> option is usually a good idea, because then virt-"
25084 "sparsify doesn't need to try to guess the input format."
25088 #: ../sparsify/virt-sparsify.pod:127
25089 msgid "B<--format> qcow2"
25093 #: ../sparsify/virt-sparsify.pod:135
25094 msgid "B<--ignore> filesystem"
25098 #: ../sparsify/virt-sparsify.pod:137
25099 msgid "B<--ignore> volgroup"
25103 #: ../sparsify/virt-sparsify.pod:139
25105 "Ignore the named filesystem. Free space on the filesystem will not be "
25106 "zeroed, but existing blocks of zeroes will still be sparsified."
25110 #: ../sparsify/virt-sparsify.pod:142
25112 "In the second form, this ignores the named volume group. Use the volume "
25113 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25117 #: ../sparsify/virt-sparsify.pod:157
25118 msgid "This disables progress bars and other unnecessary output."
25122 #: ../sparsify/virt-sparsify.pod:179
25124 "The I<--machine-readable> option can be used to make the output more machine "
25125 "friendly, which is useful when calling virt-sparsify from other programs, "
25130 #: ../sparsify/virt-sparsify.pod:185
25132 "Firstly use the option on its own to query the capabilities of the virt-"
25133 "sparsify binary. Typical output looks like this:"
25137 #: ../sparsify/virt-sparsify.pod:188
25140 " $ virt-sparsify --machine-readable\n"
25148 #: ../sparsify/virt-sparsify.pod:218
25150 "The calling program should treat messages sent to stderr as error messages. "
25151 "In addition, virt-sparsify exits with a non-zero status code if there was a "
25156 #: ../sparsify/virt-sparsify.pod:224
25158 "All versions of virt-sparsify have supported the I<--machine-readable> "
25163 #: ../sparsify/virt-sparsify.pod:238
25165 "Location of the temporary directory used for the potentially large temporary "
25170 #: ../sparsify/virt-sparsify.pod:241
25172 "You should ensure there is enough free space in the worst case for a full "
25173 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
25174 "to another directory that has enough space."
25178 #: ../sparsify/virt-sparsify.pod:245
25179 msgid "This defaults to C</tmp>."
25183 #: ../sparsify/virt-sparsify.pod:249
25185 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
25189 #: ../sparsify/virt-sparsify.pod:253
25191 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
25192 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
25193 "(1)>, L<http://libguestfs.org/>."
25197 #: ../src/guestfs-actions.pod:1
25198 msgid "guestfs_add_cdrom"
25202 #: ../src/guestfs-actions.pod:3
25206 " guestfs_add_cdrom (guestfs_h *g,\n"
25207 " const char *filename);\n"
25212 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
25213 #: ../src/guestfs-actions.pod:323
25215 "I<This function is deprecated.> In new code, use the L</"
25216 "guestfs_add_drive_opts> call instead."
25220 #: ../src/guestfs-actions.pod:24
25222 "This call checks for the existence of C<filename>. This stops you from "
25223 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25224 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call "
25229 #: ../src/guestfs-actions.pod:31
25231 "If you just want to add an ISO file (often you use this as an efficient way "
25232 "to transfer large files into the guest), then you should probably use "
25233 "C<guestfs_add_drive_ro> instead."
25237 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
25238 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
25239 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
25240 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
25241 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
25242 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
25243 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
25244 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
25245 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734
25246 #: ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851
25247 #: ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879
25248 #: ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099
25249 #: ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137
25250 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286
25251 #: ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372
25252 #: ../src/guestfs-actions.pod:1423 ../src/guestfs-actions.pod:1474
25253 #: ../src/guestfs-actions.pod:1530 ../src/guestfs-actions.pod:1582
25254 #: ../src/guestfs-actions.pod:1601 ../src/guestfs-actions.pod:1615
25255 #: ../src/guestfs-actions.pod:1643 ../src/guestfs-actions.pod:1713
25256 #: ../src/guestfs-actions.pod:1744 ../src/guestfs-actions.pod:1769
25257 #: ../src/guestfs-actions.pod:1811 ../src/guestfs-actions.pod:1924
25258 #: ../src/guestfs-actions.pod:1951 ../src/guestfs-actions.pod:2166
25259 #: ../src/guestfs-actions.pod:2188 ../src/guestfs-actions.pod:2275
25260 #: ../src/guestfs-actions.pod:2783 ../src/guestfs-actions.pod:2927
25261 #: ../src/guestfs-actions.pod:2988 ../src/guestfs-actions.pod:3023
25262 #: ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4095
25263 #: ../src/guestfs-actions.pod:4120 ../src/guestfs-actions.pod:4309
25264 #: ../src/guestfs-actions.pod:4323 ../src/guestfs-actions.pod:4336
25265 #: ../src/guestfs-actions.pod:4350 ../src/guestfs-actions.pod:4365
25266 #: ../src/guestfs-actions.pod:4401 ../src/guestfs-actions.pod:4473
25267 #: ../src/guestfs-actions.pod:4493 ../src/guestfs-actions.pod:4510
25268 #: ../src/guestfs-actions.pod:4533 ../src/guestfs-actions.pod:4556
25269 #: ../src/guestfs-actions.pod:4591 ../src/guestfs-actions.pod:4610
25270 #: ../src/guestfs-actions.pod:4629 ../src/guestfs-actions.pod:4664
25271 #: ../src/guestfs-actions.pod:4676 ../src/guestfs-actions.pod:4712
25272 #: ../src/guestfs-actions.pod:4728 ../src/guestfs-actions.pod:4741
25273 #: ../src/guestfs-actions.pod:4756 ../src/guestfs-actions.pod:4773
25274 #: ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:4886
25275 #: ../src/guestfs-actions.pod:4899 ../src/guestfs-actions.pod:4950
25276 #: ../src/guestfs-actions.pod:4968 ../src/guestfs-actions.pod:4986
25277 #: ../src/guestfs-actions.pod:5002 ../src/guestfs-actions.pod:5016
25278 #: ../src/guestfs-actions.pod:5030 ../src/guestfs-actions.pod:5047
25279 #: ../src/guestfs-actions.pod:5062 ../src/guestfs-actions.pod:5089
25280 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5225
25281 #: ../src/guestfs-actions.pod:5256 ../src/guestfs-actions.pod:5275
25282 #: ../src/guestfs-actions.pod:5294 ../src/guestfs-actions.pod:5306
25283 #: ../src/guestfs-actions.pod:5323 ../src/guestfs-actions.pod:5336
25284 #: ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5366
25285 #: ../src/guestfs-actions.pod:5398 ../src/guestfs-actions.pod:5424
25286 #: ../src/guestfs-actions.pod:5463 ../src/guestfs-actions.pod:5483
25287 #: ../src/guestfs-actions.pod:5497 ../src/guestfs-actions.pod:5514
25288 #: ../src/guestfs-actions.pod:5563 ../src/guestfs-actions.pod:5616
25289 #: ../src/guestfs-actions.pod:5663 ../src/guestfs-actions.pod:5706
25290 #: ../src/guestfs-actions.pod:5734 ../src/guestfs-actions.pod:5751
25291 #: ../src/guestfs-actions.pod:5769 ../src/guestfs-actions.pod:5909
25292 #: ../src/guestfs-actions.pod:5966 ../src/guestfs-actions.pod:5988
25293 #: ../src/guestfs-actions.pod:6006 ../src/guestfs-actions.pod:6056
25294 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6139
25295 #: ../src/guestfs-actions.pod:6152 ../src/guestfs-actions.pod:6166
25296 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6474
25297 #: ../src/guestfs-actions.pod:6493 ../src/guestfs-actions.pod:6507
25298 #: ../src/guestfs-actions.pod:6519 ../src/guestfs-actions.pod:6533
25299 #: ../src/guestfs-actions.pod:6545 ../src/guestfs-actions.pod:6559
25300 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6596
25301 #: ../src/guestfs-actions.pod:6615 ../src/guestfs-actions.pod:6634
25302 #: ../src/guestfs-actions.pod:6664 ../src/guestfs-actions.pod:6682
25303 #: ../src/guestfs-actions.pod:6705 ../src/guestfs-actions.pod:6723
25304 #: ../src/guestfs-actions.pod:6742 ../src/guestfs-actions.pod:6763
25305 #: ../src/guestfs-actions.pod:6782 ../src/guestfs-actions.pod:6799
25306 #: ../src/guestfs-actions.pod:6818 ../src/guestfs-actions.pod:6846
25307 #: ../src/guestfs-actions.pod:6870 ../src/guestfs-actions.pod:6889
25308 #: ../src/guestfs-actions.pod:6905 ../src/guestfs-actions.pod:6929
25309 #: ../src/guestfs-actions.pod:6948 ../src/guestfs-actions.pod:6963
25310 #: ../src/guestfs-actions.pod:6982 ../src/guestfs-actions.pod:7026
25311 #: ../src/guestfs-actions.pod:7056 ../src/guestfs-actions.pod:7089
25312 #: ../src/guestfs-actions.pod:7204 ../src/guestfs-actions.pod:7325
25313 #: ../src/guestfs-actions.pod:7337 ../src/guestfs-actions.pod:7350
25314 #: ../src/guestfs-actions.pod:7363 ../src/guestfs-actions.pod:7385
25315 #: ../src/guestfs-actions.pod:7398 ../src/guestfs-actions.pod:7411
25316 #: ../src/guestfs-actions.pod:7424 ../src/guestfs-actions.pod:7439
25317 #: ../src/guestfs-actions.pod:7498 ../src/guestfs-actions.pod:7515
25318 #: ../src/guestfs-actions.pod:7531 ../src/guestfs-actions.pod:7547
25319 #: ../src/guestfs-actions.pod:7564 ../src/guestfs-actions.pod:7577
25320 #: ../src/guestfs-actions.pod:7597 ../src/guestfs-actions.pod:7633
25321 #: ../src/guestfs-actions.pod:7647 ../src/guestfs-actions.pod:7688
25322 #: ../src/guestfs-actions.pod:7701 ../src/guestfs-actions.pod:7719
25323 #: ../src/guestfs-actions.pod:7753 ../src/guestfs-actions.pod:7789
25324 #: ../src/guestfs-actions.pod:7905 ../src/guestfs-actions.pod:7920
25325 #: ../src/guestfs-actions.pod:7934 ../src/guestfs-actions.pod:7989
25326 #: ../src/guestfs-actions.pod:8002 ../src/guestfs-actions.pod:8047
25327 #: ../src/guestfs-actions.pod:8087 ../src/guestfs-actions.pod:8143
25328 #: ../src/guestfs-actions.pod:8163 ../src/guestfs-actions.pod:8196
25329 #: ../src/guestfs-actions.pod:8260 ../src/guestfs-actions.pod:8283
25330 #: ../src/guestfs-actions.pod:8312
25331 msgid "This function returns 0 on success or -1 on error."
25335 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
25336 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2389
25337 #: ../src/guestfs-actions.pod:2487 ../src/guestfs-actions.pod:2612
25338 #: ../src/guestfs-actions.pod:4082 ../src/guestfs-actions.pod:4102
25339 #: ../src/guestfs-actions.pod:5400 ../src/guestfs-actions.pod:6684
25340 #: ../src/guestfs-actions.pod:6801 ../src/guestfs-actions.pod:6950
25341 #: ../src/guestfs-actions.pod:7441 ../src/guestfs-actions.pod:7566
25342 #: ../src/guestfs-actions.pod:8089
25343 msgid "(Added in 0.3)"
25344 msgstr "(Додано у 0.3)"
25347 #: ../src/guestfs-actions.pod:41
25348 msgid "guestfs_add_domain"
25352 #: ../src/guestfs-actions.pod:43
25356 " guestfs_add_domain (guestfs_h *g,\n"
25357 " const char *dom,\n"
25363 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
25364 #: ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214
25365 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344
25366 #: ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:1462
25367 #: ../src/guestfs-actions.pod:1513 ../src/guestfs-actions.pod:3280
25368 #: ../src/guestfs-actions.pod:5101 ../src/guestfs-actions.pod:5410
25369 #: ../src/guestfs-actions.pod:5627
25371 "You may supply a list of optional arguments to this call. Use zero or more "
25372 "of the following pairs of parameters, and terminate the list with C<-1> on "
25373 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
25377 #: ../src/guestfs-actions.pod:53
25380 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25381 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25382 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25383 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25384 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25385 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
25390 #: ../src/guestfs-actions.pod:60
25392 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
25393 "It works by connecting to libvirt, requesting the domain and domain XML from "
25394 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25399 #: ../src/guestfs-actions.pod:141
25401 "The other optional parameters are passed directly through to "
25402 "C<guestfs_add_drive_opts>."
25406 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
25407 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751
25408 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
25409 #: ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1789
25410 #: ../src/guestfs-actions.pod:2145 ../src/guestfs-actions.pod:2348
25411 #: ../src/guestfs-actions.pod:2459 ../src/guestfs-actions.pod:2510
25412 #: ../src/guestfs-actions.pod:2562 ../src/guestfs-actions.pod:2576
25413 #: ../src/guestfs-actions.pod:2599 ../src/guestfs-actions.pod:2914
25414 #: ../src/guestfs-actions.pod:3398 ../src/guestfs-actions.pod:3416
25415 #: ../src/guestfs-actions.pod:5586 ../src/guestfs-actions.pod:5806
25416 #: ../src/guestfs-actions.pod:6044 ../src/guestfs-actions.pod:6236
25417 #: ../src/guestfs-actions.pod:6262 ../src/guestfs-actions.pod:7674
25418 #: ../src/guestfs-actions.pod:8100 ../src/guestfs-actions.pod:8113
25419 #: ../src/guestfs-actions.pod:8126
25420 msgid "On error this function returns -1."
25424 #: ../src/guestfs-actions.pod:146
25425 msgid "(Added in 1.7.4)"
25426 msgstr "(Додано у 1.7.4)"
25429 #: ../src/guestfs-actions.pod:148
25430 msgid "guestfs_add_domain_va"
25434 #: ../src/guestfs-actions.pod:150
25438 " guestfs_add_domain_va (guestfs_h *g,\n"
25439 " const char *dom,\n"
25440 " va_list args);\n"
25445 #: ../src/guestfs-actions.pod:155
25446 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25450 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
25451 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
25452 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940
25453 #: ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255
25454 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314
25455 #: ../src/guestfs-actions.pod:1389 ../src/guestfs-actions.pod:1401
25456 #: ../src/guestfs-actions.pod:1440 ../src/guestfs-actions.pod:1452
25457 #: ../src/guestfs-actions.pod:1491 ../src/guestfs-actions.pod:1503
25458 #: ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1559
25459 #: ../src/guestfs-actions.pod:3364 ../src/guestfs-actions.pod:3376
25460 #: ../src/guestfs-actions.pod:5166 ../src/guestfs-actions.pod:5178
25461 #: ../src/guestfs-actions.pod:5438 ../src/guestfs-actions.pod:5450
25462 #: ../src/guestfs-actions.pod:5676 ../src/guestfs-actions.pod:5687
25463 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25464 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
25467 #: ../src/guestfs-actions.pod:159
25468 msgid "guestfs_add_domain_argv"
25469 msgstr "guestfs_add_domain_argv"
25472 #: ../src/guestfs-actions.pod:161
25476 " guestfs_add_domain_argv (guestfs_h *g,\n"
25477 " const char *dom,\n"
25478 " const struct guestfs_add_domain_argv *optargs);\n"
25483 #: ../src/guestfs-actions.pod:166
25484 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25488 #: ../src/guestfs-actions.pod:170
25489 msgid "guestfs_add_drive"
25493 #: ../src/guestfs-actions.pod:172
25497 " guestfs_add_drive (guestfs_h *g,\n"
25498 " const char *filename);\n"
25503 #: ../src/guestfs-actions.pod:176
25505 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
25506 "optional parameters, so the disk is added writable, with the format being "
25507 "detected automatically."
25511 #: ../src/guestfs-actions.pod:180
25513 "Automatic detection of the format opens you up to a potential security hole "
25514 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
25515 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
25516 "you should think about replacing calls to this function with calls to "
25517 "C<guestfs_add_drive_opts>, and specifying the format."
25521 #: ../src/guestfs-actions.pod:191
25522 msgid "guestfs_add_drive_opts"
25526 #: ../src/guestfs-actions.pod:193
25530 " guestfs_add_drive_opts (guestfs_h *g,\n"
25531 " const char *filename,\n"
25537 #: ../src/guestfs-actions.pod:203
25540 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25541 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25542 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25543 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
25548 #: ../src/guestfs-actions.pod:233
25550 "This forces the image format. If you omit this (or use C<guestfs_add_drive> "
25551 "or C<guestfs_add_drive_ro>) then the format is automatically detected. "
25552 "Possible formats include C<raw> and C<qcow2>."
25556 #: ../src/guestfs-actions.pod:244
25558 "This rarely-used option lets you emulate the behaviour of the deprecated "
25559 "C<guestfs_add_drive_with_if> call (q.v.)"
25563 #: ../src/guestfs-actions.pod:256
25564 msgid "(Added in 1.5.23)"
25565 msgstr "(Додано у 1.5.23)"
25568 #: ../src/guestfs-actions.pod:258
25569 msgid "guestfs_add_drive_opts_va"
25573 #: ../src/guestfs-actions.pod:260
25577 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25578 " const char *filename,\n"
25579 " va_list args);\n"
25584 #: ../src/guestfs-actions.pod:265
25585 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25589 #: ../src/guestfs-actions.pod:269
25590 msgid "guestfs_add_drive_opts_argv"
25594 #: ../src/guestfs-actions.pod:271
25598 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25599 " const char *filename,\n"
25600 " const struct guestfs_add_drive_opts_argv *optargs);\n"
25605 #: ../src/guestfs-actions.pod:276
25606 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25610 #: ../src/guestfs-actions.pod:280
25611 msgid "guestfs_add_drive_ro"
25615 #: ../src/guestfs-actions.pod:282
25619 " guestfs_add_drive_ro (guestfs_h *g,\n"
25620 " const char *filename);\n"
25625 #: ../src/guestfs-actions.pod:286
25627 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25628 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25629 "disk is added read-only, with the format being detected automatically."
25633 #: ../src/guestfs-actions.pod:293
25634 msgid "(Added in 1.0.38)"
25635 msgstr "(Додано у 1.0.38)"
25638 #: ../src/guestfs-actions.pod:295
25639 msgid "guestfs_add_drive_ro_with_if"
25643 #: ../src/guestfs-actions.pod:297
25647 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25648 " const char *filename,\n"
25649 " const char *iface);\n"
25654 #: ../src/guestfs-actions.pod:309
25656 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25657 "QEMU interface emulation to use at run time."
25661 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
25662 #: ../src/guestfs-actions.pod:2873
25663 msgid "(Added in 1.0.84)"
25664 msgstr "(Додано у 1.0.84)"
25667 #: ../src/guestfs-actions.pod:316
25668 msgid "guestfs_add_drive_with_if"
25672 #: ../src/guestfs-actions.pod:318
25676 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25677 " const char *filename,\n"
25678 " const char *iface);\n"
25683 #: ../src/guestfs-actions.pod:330
25685 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25686 "QEMU interface emulation to use at run time."
25690 #: ../src/guestfs-actions.pod:337
25691 msgid "guestfs_aug_clear"
25695 #: ../src/guestfs-actions.pod:339
25699 " guestfs_aug_clear (guestfs_h *g,\n"
25700 " const char *augpath);\n"
25705 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2601
25706 msgid "(Added in 1.3.4)"
25707 msgstr "(Додано у 1.3.4)"
25710 #: ../src/guestfs-actions.pod:350
25711 msgid "guestfs_aug_close"
25715 #: ../src/guestfs-actions.pod:352
25719 " guestfs_aug_close (guestfs_h *g);\n"
25724 #: ../src/guestfs-actions.pod:355
25726 "Close the current Augeas handle and free up any resources used by it. After "
25727 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25728 "any other Augeas functions."
25732 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
25733 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
25734 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
25735 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
25736 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
25737 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
25738 #: ../src/guestfs-actions.pod:6313
25739 msgid "(Added in 0.7)"
25740 msgstr "(Додано у 0.7)"
25743 #: ../src/guestfs-actions.pod:364
25744 msgid "guestfs_aug_defnode"
25748 #: ../src/guestfs-actions.pod:366
25751 " struct guestfs_int_bool *\n"
25752 " guestfs_aug_defnode (guestfs_h *g,\n"
25753 " const char *name,\n"
25754 " const char *expr,\n"
25755 " const char *val);\n"
25760 #: ../src/guestfs-actions.pod:375
25762 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25763 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
25764 "containing that single node."
25768 #: ../src/guestfs-actions.pod:383
25770 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25771 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
25775 #: ../src/guestfs-actions.pod:389
25776 msgid "guestfs_aug_defvar"
25780 #: ../src/guestfs-actions.pod:391
25784 " guestfs_aug_defvar (guestfs_h *g,\n"
25785 " const char *name,\n"
25786 " const char *expr);\n"
25791 #: ../src/guestfs-actions.pod:407
25792 msgid "guestfs_aug_get"
25793 msgstr "guestfs_aug_get"
25796 #: ../src/guestfs-actions.pod:409
25800 " guestfs_aug_get (guestfs_h *g,\n"
25801 " const char *augpath);\n"
25805 " guestfs_aug_get (guestfs_h *g,\n"
25806 " const char *augpath);\n"
25810 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980
25811 #: ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058
25812 #: ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177
25813 #: ../src/guestfs-actions.pod:1658 ../src/guestfs-actions.pod:1675
25814 #: ../src/guestfs-actions.pod:1694 ../src/guestfs-actions.pod:1828
25815 #: ../src/guestfs-actions.pod:2016 ../src/guestfs-actions.pod:2128
25816 #: ../src/guestfs-actions.pod:2291 ../src/guestfs-actions.pod:2308
25817 #: ../src/guestfs-actions.pod:2375 ../src/guestfs-actions.pod:2418
25818 #: ../src/guestfs-actions.pod:2439 ../src/guestfs-actions.pod:2624
25819 #: ../src/guestfs-actions.pod:2838 ../src/guestfs-actions.pod:3042
25820 #: ../src/guestfs-actions.pod:3144 ../src/guestfs-actions.pod:3248
25821 #: ../src/guestfs-actions.pod:3267 ../src/guestfs-actions.pod:3482
25822 #: ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3531
25823 #: ../src/guestfs-actions.pod:3565 ../src/guestfs-actions.pod:3628
25824 #: ../src/guestfs-actions.pod:3648 ../src/guestfs-actions.pod:3668
25825 #: ../src/guestfs-actions.pod:4295 ../src/guestfs-actions.pod:4648
25826 #: ../src/guestfs-actions.pod:4818 ../src/guestfs-actions.pod:4928
25827 #: ../src/guestfs-actions.pod:5824 ../src/guestfs-actions.pod:6025
25828 #: ../src/guestfs-actions.pod:6211 ../src/guestfs-actions.pod:6389
25829 #: ../src/guestfs-actions.pod:6438 ../src/guestfs-actions.pod:7110
25830 #: ../src/guestfs-actions.pod:7126 ../src/guestfs-actions.pod:7150
25831 #: ../src/guestfs-actions.pod:7174 ../src/guestfs-actions.pod:7848
25832 #: ../src/guestfs-actions.pod:7867 ../src/guestfs-actions.pod:7885
25833 #: ../src/guestfs-actions.pod:8059 ../src/guestfs-actions.pod:8376
25835 "This function returns a string, or NULL on error. I<The caller must free "
25836 "the returned string after use>."
25840 #: ../src/guestfs-actions.pod:421
25841 msgid "guestfs_aug_init"
25842 msgstr "guestfs_aug_init"
25845 #: ../src/guestfs-actions.pod:423
25849 " guestfs_aug_init (guestfs_h *g,\n"
25850 " const char *root,\n"
25855 " guestfs_aug_init (guestfs_h *g,\n"
25856 " const char *root,\n"
25861 #: ../src/guestfs-actions.pod:432
25862 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25866 #: ../src/guestfs-actions.pod:457
25868 "This option is only useful when debugging Augeas lenses. Use of this option "
25869 "may require additional memory for the libguestfs appliance. You may need to "
25870 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25871 "C<guestfs_set_memsize>."
25875 #: ../src/guestfs-actions.pod:472
25876 msgid "Do not load the tree in C<guestfs_aug_init>."
25880 #: ../src/guestfs-actions.pod:476
25881 msgid "To close the handle, you can call C<guestfs_aug_close>."
25885 #: ../src/guestfs-actions.pod:484
25886 msgid "guestfs_aug_insert"
25887 msgstr "guestfs_aug_insert"
25890 #: ../src/guestfs-actions.pod:486
25894 " guestfs_aug_insert (guestfs_h *g,\n"
25895 " const char *augpath,\n"
25896 " const char *label,\n"
25901 " guestfs_aug_insert (guestfs_h *g,\n"
25902 " const char *augpath,\n"
25903 " const char *label,\n"
25908 #: ../src/guestfs-actions.pod:504
25909 msgid "guestfs_aug_load"
25910 msgstr "guestfs_aug_load"
25913 #: ../src/guestfs-actions.pod:506
25917 " guestfs_aug_load (guestfs_h *g);\n"
25921 " guestfs_aug_load (guestfs_h *g);\n"
25925 #: ../src/guestfs-actions.pod:518
25926 msgid "guestfs_aug_ls"
25927 msgstr "guestfs_aug_ls"
25930 #: ../src/guestfs-actions.pod:520
25934 " guestfs_aug_ls (guestfs_h *g,\n"
25935 " const char *augpath);\n"
25939 " guestfs_aug_ls (guestfs_h *g,\n"
25940 " const char *augpath);\n"
25944 #: ../src/guestfs-actions.pod:524
25946 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25947 "sorting the resulting nodes into alphabetical order."
25951 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
25952 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196
25953 #: ../src/guestfs-actions.pod:1843 ../src/guestfs-actions.pod:1862
25954 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:1984
25955 #: ../src/guestfs-actions.pod:2230 ../src/guestfs-actions.pod:2696
25956 #: ../src/guestfs-actions.pod:2712 ../src/guestfs-actions.pod:2731
25957 #: ../src/guestfs-actions.pod:2796 ../src/guestfs-actions.pod:2820
25958 #: ../src/guestfs-actions.pod:2891 ../src/guestfs-actions.pod:2940
25959 #: ../src/guestfs-actions.pod:3209 ../src/guestfs-actions.pod:3584
25960 #: ../src/guestfs-actions.pod:3864 ../src/guestfs-actions.pod:4178
25961 #: ../src/guestfs-actions.pod:4195 ../src/guestfs-actions.pod:4215
25962 #: ../src/guestfs-actions.pod:4277 ../src/guestfs-actions.pod:4382
25963 #: ../src/guestfs-actions.pod:4790 ../src/guestfs-actions.pod:5547
25964 #: ../src/guestfs-actions.pod:6183 ../src/guestfs-actions.pod:6309
25965 #: ../src/guestfs-actions.pod:6423 ../src/guestfs-actions.pod:7190
25966 #: ../src/guestfs-actions.pod:7251 ../src/guestfs-actions.pod:7306
25967 #: ../src/guestfs-actions.pod:7452 ../src/guestfs-actions.pod:7476
25968 #: ../src/guestfs-actions.pod:7952 ../src/guestfs-actions.pod:7972
25969 #: ../src/guestfs-actions.pod:8019 ../src/guestfs-actions.pod:8213
25970 #: ../src/guestfs-actions.pod:8232 ../src/guestfs-actions.pod:8326
25971 #: ../src/guestfs-actions.pod:8345 ../src/guestfs-actions.pod:8391
25972 #: ../src/guestfs-actions.pod:8410
25974 "This function returns a NULL-terminated array of strings (like L<environ(3)"
25975 ">), or NULL if there was an error. I<The caller must free the strings and "
25976 "the array after use>."
25980 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121
25981 #: ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1900
25982 #: ../src/guestfs-actions.pod:3942 ../src/guestfs-actions.pod:3973
25983 #: ../src/guestfs-actions.pod:4631 ../src/guestfs-actions.pod:4681
25984 #: ../src/guestfs-actions.pod:4868 ../src/guestfs-actions.pod:4901
25985 #: ../src/guestfs-actions.pod:5064 ../src/guestfs-actions.pod:5551
25986 #: ../src/guestfs-actions.pod:6124 ../src/guestfs-actions.pod:6521
25987 #: ../src/guestfs-actions.pod:6535 ../src/guestfs-actions.pod:6547
25988 #: ../src/guestfs-actions.pod:7031 ../src/guestfs-actions.pod:7690
25989 #: ../src/guestfs-actions.pod:7703 ../src/guestfs-actions.pod:7936
25990 #: ../src/guestfs-actions.pod:8201
25991 msgid "(Added in 0.8)"
25992 msgstr "(Додано у 0.8)"
25995 #: ../src/guestfs-actions.pod:533
25996 msgid "guestfs_aug_match"
25997 msgstr "guestfs_aug_match"
26000 #: ../src/guestfs-actions.pod:535
26004 " guestfs_aug_match (guestfs_h *g,\n"
26005 " const char *augpath);\n"
26009 " guestfs_aug_match (guestfs_h *g,\n"
26010 " const char *augpath);\n"
26014 #: ../src/guestfs-actions.pod:549
26015 msgid "guestfs_aug_mv"
26016 msgstr "guestfs_aug_mv"
26019 #: ../src/guestfs-actions.pod:551
26023 " guestfs_aug_mv (guestfs_h *g,\n"
26024 " const char *src,\n"
26025 " const char *dest);\n"
26029 " guestfs_aug_mv (guestfs_h *g,\n"
26030 " const char *src,\n"
26031 " const char *dest);\n"
26035 #: ../src/guestfs-actions.pod:563
26036 msgid "guestfs_aug_rm"
26037 msgstr "guestfs_aug_rm"
26040 #: ../src/guestfs-actions.pod:565
26044 " guestfs_aug_rm (guestfs_h *g,\n"
26045 " const char *augpath);\n"
26049 " guestfs_aug_rm (guestfs_h *g,\n"
26050 " const char *augpath);\n"
26054 #: ../src/guestfs-actions.pod:577
26055 msgid "guestfs_aug_save"
26056 msgstr "guestfs_aug_save"
26059 #: ../src/guestfs-actions.pod:579
26063 " guestfs_aug_save (guestfs_h *g);\n"
26067 " guestfs_aug_save (guestfs_h *g);\n"
26071 #: ../src/guestfs-actions.pod:584
26073 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
26078 #: ../src/guestfs-actions.pod:591
26079 msgid "guestfs_aug_set"
26080 msgstr "guestfs_aug_set"
26083 #: ../src/guestfs-actions.pod:593
26087 " guestfs_aug_set (guestfs_h *g,\n"
26088 " const char *augpath,\n"
26089 " const char *val);\n"
26093 " guestfs_aug_set (guestfs_h *g,\n"
26094 " const char *augpath,\n"
26095 " const char *val);\n"
26099 #: ../src/guestfs-actions.pod:600
26101 "In the Augeas API, it is possible to clear a node by setting the value to "
26102 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
26103 "this call. Instead you must use the C<guestfs_aug_clear> call."
26107 #: ../src/guestfs-actions.pod:609
26108 msgid "guestfs_available"
26109 msgstr "guestfs_available"
26112 #: ../src/guestfs-actions.pod:611
26116 " guestfs_available (guestfs_h *g,\n"
26117 " char *const *groups);\n"
26121 " guestfs_available (guestfs_h *g,\n"
26122 " char *const *groups);\n"
26126 #: ../src/guestfs-actions.pod:619
26128 "The libguestfs groups, and the functions that those groups correspond to, "
26129 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
26130 "runtime by calling C<guestfs_available_all_groups>."
26134 #: ../src/guestfs-actions.pod:643
26135 msgid "You must call C<guestfs_launch> before calling this function."
26139 #: ../src/guestfs-actions.pod:665
26141 "This call was added in version C<1.0.80>. In previous versions of "
26142 "libguestfs all you could do would be to speculatively execute a command to "
26143 "find out if the daemon implemented it. See also C<guestfs_version>."
26147 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1645
26148 msgid "(Added in 1.0.80)"
26149 msgstr "(Додано у 1.0.80)"
26152 #: ../src/guestfs-actions.pod:676
26153 msgid "guestfs_available_all_groups"
26154 msgstr "guestfs_available_all_groups"
26157 #: ../src/guestfs-actions.pod:678
26161 " guestfs_available_all_groups (guestfs_h *g);\n"
26165 " guestfs_available_all_groups (guestfs_h *g);\n"
26169 #: ../src/guestfs-actions.pod:681
26171 "This command returns a list of all optional groups that this daemon knows "
26172 "about. Note this returns both supported and unsupported groups. To find "
26173 "out which ones the daemon can actually support you have to call "
26174 "C<guestfs_available> on each member of the returned list."
26178 #: ../src/guestfs-actions.pod:687
26179 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
26183 #: ../src/guestfs-actions.pod:693
26184 msgid "(Added in 1.3.15)"
26185 msgstr "(Додано у 1.3.15)"
26188 #: ../src/guestfs-actions.pod:695
26189 msgid "guestfs_base64_in"
26190 msgstr "guestfs_base64_in"
26193 #: ../src/guestfs-actions.pod:697
26197 " guestfs_base64_in (guestfs_h *g,\n"
26198 " const char *base64file,\n"
26199 " const char *filename);\n"
26203 " guestfs_base64_in (guestfs_h *g,\n"
26204 " const char *base64file,\n"
26205 " const char *filename);\n"
26209 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
26210 msgid "(Added in 1.3.5)"
26211 msgstr "(Додано у 1.3.5)"
26214 #: ../src/guestfs-actions.pod:709
26215 msgid "guestfs_base64_out"
26216 msgstr "guestfs_base64_out"
26219 #: ../src/guestfs-actions.pod:711
26223 " guestfs_base64_out (guestfs_h *g,\n"
26224 " const char *filename,\n"
26225 " const char *base64file);\n"
26229 " guestfs_base64_out (guestfs_h *g,\n"
26230 " const char *filename,\n"
26231 " const char *base64file);\n"
26235 #: ../src/guestfs-actions.pod:723
26236 msgid "guestfs_blockdev_flushbufs"
26237 msgstr "guestfs_blockdev_flushbufs"
26240 #: ../src/guestfs-actions.pod:725
26244 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26245 " const char *device);\n"
26249 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26250 " const char *device);\n"
26254 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753
26255 #: ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784
26256 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821
26257 #: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853
26258 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
26259 msgid "(Added in 0.9.3)"
26260 msgstr "(Додано у 0.9.3)"
26263 #: ../src/guestfs-actions.pod:738
26264 msgid "guestfs_blockdev_getbsz"
26265 msgstr "guestfs_blockdev_getbsz"
26268 #: ../src/guestfs-actions.pod:740
26272 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26273 " const char *device);\n"
26277 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26278 " const char *device);\n"
26282 #: ../src/guestfs-actions.pod:755
26283 msgid "guestfs_blockdev_getro"
26284 msgstr "guestfs_blockdev_getro"
26287 #: ../src/guestfs-actions.pod:757
26291 " guestfs_blockdev_getro (guestfs_h *g,\n"
26292 " const char *device);\n"
26296 " guestfs_blockdev_getro (guestfs_h *g,\n"
26297 " const char *device);\n"
26301 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1883
26302 #: ../src/guestfs-actions.pod:1898 ../src/guestfs-actions.pod:2387
26303 #: ../src/guestfs-actions.pod:2398 ../src/guestfs-actions.pod:2470
26304 #: ../src/guestfs-actions.pod:2496 ../src/guestfs-actions.pod:2536
26305 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2587
26306 #: ../src/guestfs-actions.pod:2610 ../src/guestfs-actions.pod:3685
26307 #: ../src/guestfs-actions.pod:3701 ../src/guestfs-actions.pod:3719
26308 #: ../src/guestfs-actions.pod:3881 ../src/guestfs-actions.pod:3895
26309 #: ../src/guestfs-actions.pod:3910 ../src/guestfs-actions.pod:3924
26310 #: ../src/guestfs-actions.pod:3940 ../src/guestfs-actions.pod:3955
26311 #: ../src/guestfs-actions.pod:3971 ../src/guestfs-actions.pod:3985
26312 #: ../src/guestfs-actions.pod:3998 ../src/guestfs-actions.pod:4012
26313 #: ../src/guestfs-actions.pod:4027 ../src/guestfs-actions.pod:4042
26314 #: ../src/guestfs-actions.pod:4055 ../src/guestfs-actions.pod:4069
26315 #: ../src/guestfs-actions.pod:5788
26316 msgid "This function returns a C truth value on success or -1 on error."
26320 #: ../src/guestfs-actions.pod:770
26321 msgid "guestfs_blockdev_getsize64"
26322 msgstr "guestfs_blockdev_getsize64"
26325 #: ../src/guestfs-actions.pod:772
26329 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26330 " const char *device);\n"
26334 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26335 " const char *device);\n"
26339 #: ../src/guestfs-actions.pod:778
26340 msgid "See also C<guestfs_blockdev_getsz>."
26344 #: ../src/guestfs-actions.pod:786
26345 msgid "guestfs_blockdev_getss"
26346 msgstr "guestfs_blockdev_getss"
26349 #: ../src/guestfs-actions.pod:788
26353 " guestfs_blockdev_getss (guestfs_h *g,\n"
26354 " const char *device);\n"
26358 " guestfs_blockdev_getss (guestfs_h *g,\n"
26359 " const char *device);\n"
26363 #: ../src/guestfs-actions.pod:795
26365 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26370 #: ../src/guestfs-actions.pod:804
26371 msgid "guestfs_blockdev_getsz"
26372 msgstr "guestfs_blockdev_getsz"
26375 #: ../src/guestfs-actions.pod:806
26379 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26380 " const char *device);\n"
26384 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26385 " const char *device);\n"
26389 #: ../src/guestfs-actions.pod:813
26391 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26392 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26396 #: ../src/guestfs-actions.pod:823
26397 msgid "guestfs_blockdev_rereadpt"
26398 msgstr "guestfs_blockdev_rereadpt"
26401 #: ../src/guestfs-actions.pod:825
26405 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26406 " const char *device);\n"
26410 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26411 " const char *device);\n"
26415 #: ../src/guestfs-actions.pod:837
26416 msgid "guestfs_blockdev_setbsz"
26417 msgstr "guestfs_blockdev_setbsz"
26420 #: ../src/guestfs-actions.pod:839
26424 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26425 " const char *device,\n"
26426 " int blocksize);\n"
26430 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26431 " const char *device,\n"
26432 " int blocksize);\n"
26436 #: ../src/guestfs-actions.pod:855
26437 msgid "guestfs_blockdev_setro"
26438 msgstr "guestfs_blockdev_setro"
26441 #: ../src/guestfs-actions.pod:857
26445 " guestfs_blockdev_setro (guestfs_h *g,\n"
26446 " const char *device);\n"
26450 " guestfs_blockdev_setro (guestfs_h *g,\n"
26451 " const char *device);\n"
26455 #: ../src/guestfs-actions.pod:869
26456 msgid "guestfs_blockdev_setrw"
26457 msgstr "guestfs_blockdev_setrw"
26460 #: ../src/guestfs-actions.pod:871
26464 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26465 " const char *device);\n"
26469 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26470 " const char *device);\n"
26474 #: ../src/guestfs-actions.pod:883
26475 msgid "guestfs_btrfs_filesystem_resize"
26476 msgstr "guestfs_btrfs_filesystem_resize"
26479 #: ../src/guestfs-actions.pod:885
26483 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26484 " const char *mountpoint,\n"
26489 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26490 " const char *mountpoint,\n"
26495 #: ../src/guestfs-actions.pod:895
26498 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26501 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26505 #: ../src/guestfs-actions.pod:918
26506 msgid "(Added in 1.11.17)"
26507 msgstr "(Додано у 1.11.17)"
26510 #: ../src/guestfs-actions.pod:920
26511 msgid "guestfs_btrfs_filesystem_resize_va"
26512 msgstr "guestfs_btrfs_filesystem_resize_va"
26515 #: ../src/guestfs-actions.pod:922
26519 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26520 " const char *mountpoint,\n"
26521 " va_list args);\n"
26525 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26526 " const char *mountpoint,\n"
26527 " va_list args);\n"
26531 #: ../src/guestfs-actions.pod:927
26532 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26536 #: ../src/guestfs-actions.pod:931
26537 msgid "guestfs_btrfs_filesystem_resize_argv"
26538 msgstr "guestfs_btrfs_filesystem_resize_argv"
26541 #: ../src/guestfs-actions.pod:933
26545 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26546 " const char *mountpoint,\n"
26547 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26551 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26552 " const char *mountpoint,\n"
26553 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26557 #: ../src/guestfs-actions.pod:938
26558 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26562 #: ../src/guestfs-actions.pod:942
26563 msgid "guestfs_case_sensitive_path"
26567 #: ../src/guestfs-actions.pod:944
26571 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26572 " const char *path);\n"
26577 #: ../src/guestfs-actions.pod:970
26579 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return C<"
26580 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26581 "how the directories were originally created under Windows)."
26585 #: ../src/guestfs-actions.pod:978
26586 msgid "See also C<guestfs_realpath>."
26590 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:7870
26591 msgid "(Added in 1.0.75)"
26592 msgstr "(Додано у 1.0.75)"
26595 #: ../src/guestfs-actions.pod:985
26596 msgid "guestfs_cat"
26600 #: ../src/guestfs-actions.pod:987
26604 " guestfs_cat (guestfs_h *g,\n"
26605 " const char *path);\n"
26610 #: ../src/guestfs-actions.pod:993
26612 "Note that this function cannot correctly handle binary files (specifically, "
26613 "files containing C<\\0> character which is treated as end of string). For "
26614 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26615 "functions which have a more complex interface."
26619 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4199
26620 #: ../src/guestfs-actions.pod:4281 ../src/guestfs-actions.pod:4298
26621 #: ../src/guestfs-actions.pod:4386 ../src/guestfs-actions.pod:4794
26622 #: ../src/guestfs-actions.pod:4808 ../src/guestfs-actions.pod:6187
26623 #: ../src/guestfs-actions.pod:6201 ../src/guestfs-actions.pod:8023
26624 #: ../src/guestfs-actions.pod:8037
26625 msgid "(Added in 0.4)"
26626 msgstr "(Додано у 0.4)"
26629 #: ../src/guestfs-actions.pod:1006
26630 msgid "guestfs_checksum"
26634 #: ../src/guestfs-actions.pod:1008
26638 " guestfs_checksum (guestfs_h *g,\n"
26639 " const char *csumtype,\n"
26640 " const char *path);\n"
26645 #: ../src/guestfs-actions.pod:1054
26646 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26650 #: ../src/guestfs-actions.pod:1056
26651 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26655 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1720
26656 #: ../src/guestfs-actions.pod:2578 ../src/guestfs-actions.pod:3897
26657 #: ../src/guestfs-actions.pod:3926 ../src/guestfs-actions.pod:3987
26658 #: ../src/guestfs-actions.pod:4014 ../src/guestfs-actions.pod:7726
26659 msgid "(Added in 1.0.2)"
26660 msgstr "(Додано у 1.0.2)"
26663 #: ../src/guestfs-actions.pod:1063
26664 msgid "guestfs_checksum_device"
26668 #: ../src/guestfs-actions.pod:1065
26672 " guestfs_checksum_device (guestfs_h *g,\n"
26673 " const char *csumtype,\n"
26674 " const char *device);\n"
26679 #: ../src/guestfs-actions.pod:1070
26681 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26682 "device named C<device>. For the types of checksums supported see the "
26683 "C<guestfs_checksum> command."
26687 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5618
26688 #: ../src/guestfs-actions.pod:5753 ../src/guestfs-actions.pod:5790
26689 #: ../src/guestfs-actions.pod:5808 ../src/guestfs-actions.pod:5990
26690 #: ../src/guestfs-actions.pod:7635 ../src/guestfs-actions.pod:7649
26691 #: ../src/guestfs-actions.pod:8049
26692 msgid "(Added in 1.3.2)"
26693 msgstr "(Додано у 1.3.2)"
26696 #: ../src/guestfs-actions.pod:1079
26697 msgid "guestfs_checksums_out"
26701 #: ../src/guestfs-actions.pod:1081
26705 " guestfs_checksums_out (guestfs_h *g,\n"
26706 " const char *csumtype,\n"
26707 " const char *directory,\n"
26708 " const char *sumsfile);\n"
26713 #: ../src/guestfs-actions.pod:1101
26714 msgid "(Added in 1.3.7)"
26715 msgstr "(Додано у 1.3.7)"
26718 #: ../src/guestfs-actions.pod:1103
26719 msgid "guestfs_chmod"
26723 #: ../src/guestfs-actions.pod:1105
26727 " guestfs_chmod (guestfs_h *g,\n"
26729 " const char *path);\n"
26734 #: ../src/guestfs-actions.pod:1123
26735 msgid "guestfs_chown"
26739 #: ../src/guestfs-actions.pod:1125
26743 " guestfs_chown (guestfs_h *g,\n"
26746 " const char *path);\n"
26751 #: ../src/guestfs-actions.pod:1141
26752 msgid "guestfs_command"
26756 #: ../src/guestfs-actions.pod:1143
26760 " guestfs_command (guestfs_h *g,\n"
26761 " char *const *arguments);\n"
26766 #: ../src/guestfs-actions.pod:1152
26768 "The single parameter is an argv-style list of arguments. The first element "
26769 "is the name of the program to run. Subsequent elements are parameters. The "
26770 "list must be non-empty (ie. must contain a program name). Note that the "
26771 "command runs directly, and is I<not> invoked via the shell (see "
26776 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203
26777 #: ../src/guestfs-actions.pod:2019
26778 msgid "(Added in 0.9.1)"
26779 msgstr "(Додано у 0.9.1)"
26782 #: ../src/guestfs-actions.pod:1185
26783 msgid "guestfs_command_lines"
26787 #: ../src/guestfs-actions.pod:1187
26791 " guestfs_command_lines (guestfs_h *g,\n"
26792 " char *const *arguments);\n"
26797 #: ../src/guestfs-actions.pod:1191
26799 "This is the same as C<guestfs_command>, but splits the result into a list of "
26804 #: ../src/guestfs-actions.pod:1194
26805 msgid "See also: C<guestfs_sh_lines>"
26809 #: ../src/guestfs-actions.pod:1205
26810 msgid "guestfs_compress_device_out"
26814 #: ../src/guestfs-actions.pod:1207
26818 " guestfs_compress_device_out (guestfs_h *g,\n"
26819 " const char *ctype,\n"
26820 " const char *device,\n"
26821 " const char *zdevice,\n"
26827 #: ../src/guestfs-actions.pod:1219
26830 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26835 #: ../src/guestfs-actions.pod:1224
26837 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26838 "C<guestfs_compress_out>."
26842 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288
26843 #: ../src/guestfs-actions.pod:2564 ../src/guestfs-actions.pod:6907
26844 msgid "(Added in 1.13.15)"
26848 #: ../src/guestfs-actions.pod:1231
26849 msgid "guestfs_compress_device_out_va"
26853 #: ../src/guestfs-actions.pod:1233
26857 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26858 " const char *ctype,\n"
26859 " const char *device,\n"
26860 " const char *zdevice,\n"
26861 " va_list args);\n"
26866 #: ../src/guestfs-actions.pod:1240
26867 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26871 #: ../src/guestfs-actions.pod:1244
26872 msgid "guestfs_compress_device_out_argv"
26876 #: ../src/guestfs-actions.pod:1246
26880 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26881 " const char *ctype,\n"
26882 " const char *device,\n"
26883 " const char *zdevice,\n"
26884 " const struct guestfs_compress_device_out_argv *optargs);\n"
26889 #: ../src/guestfs-actions.pod:1253
26890 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26894 #: ../src/guestfs-actions.pod:1257
26895 msgid "guestfs_compress_out"
26899 #: ../src/guestfs-actions.pod:1259
26903 " guestfs_compress_out (guestfs_h *g,\n"
26904 " const char *ctype,\n"
26905 " const char *file,\n"
26906 " const char *zfile,\n"
26912 #: ../src/guestfs-actions.pod:1271
26915 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26920 #: ../src/guestfs-actions.pod:1290
26921 msgid "guestfs_compress_out_va"
26925 #: ../src/guestfs-actions.pod:1292
26929 " guestfs_compress_out_va (guestfs_h *g,\n"
26930 " const char *ctype,\n"
26931 " const char *file,\n"
26932 " const char *zfile,\n"
26933 " va_list args);\n"
26938 #: ../src/guestfs-actions.pod:1299
26939 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26943 #: ../src/guestfs-actions.pod:1303
26944 msgid "guestfs_compress_out_argv"
26948 #: ../src/guestfs-actions.pod:1305
26952 " guestfs_compress_out_argv (guestfs_h *g,\n"
26953 " const char *ctype,\n"
26954 " const char *file,\n"
26955 " const char *zfile,\n"
26956 " const struct guestfs_compress_out_argv *optargs);\n"
26961 #: ../src/guestfs-actions.pod:1312
26962 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26966 #: ../src/guestfs-actions.pod:1316
26967 msgid "guestfs_config"
26971 #: ../src/guestfs-actions.pod:1318
26975 " guestfs_config (guestfs_h *g,\n"
26976 " const char *qemuparam,\n"
26977 " const char *qemuvalue);\n"
26982 #: ../src/guestfs-actions.pod:1336
26984 #| msgid "guestfs_zero_device"
26985 msgid "guestfs_copy_device_to_device"
26986 msgstr "guestfs_zero_device"
26989 #: ../src/guestfs-actions.pod:1338
26993 #| " guestfs_luks_kill_slot (guestfs_h *g,\n"
26994 #| " const char *device,\n"
26995 #| " const char *key,\n"
26996 #| " int keyslot);\n"
27000 " guestfs_copy_device_to_device (guestfs_h *g,\n"
27001 " const char *src,\n"
27002 " const char *dest,\n"
27007 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27008 " const char *device,\n"
27009 " const char *key,\n"
27014 #: ../src/guestfs-actions.pod:1349
27017 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27018 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27019 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
27024 #: ../src/guestfs-actions.pod:1353
27026 "The four calls C<guestfs_copy_device_to_device>, "
27027 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
27028 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
27029 "destination (device|file)."
27033 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1425
27034 #: ../src/guestfs-actions.pod:1476 ../src/guestfs-actions.pod:1532
27035 #: ../src/guestfs-actions.pod:1584 ../src/guestfs-actions.pod:1715
27036 #: ../src/guestfs-actions.pod:1746 ../src/guestfs-actions.pod:1791
27037 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:2190
27038 #: ../src/guestfs-actions.pod:4097 ../src/guestfs-actions.pod:7721
27039 #: ../src/guestfs-actions.pod:7755 ../src/guestfs-actions.pod:8262
27040 #: ../src/guestfs-actions.pod:8285
27042 "This long-running command can generate progress notification messages so "
27043 "that the caller can display a progress bar or indicator. To receive these "
27044 "messages, the caller must register a progress event callback. See L<guestfs"
27045 "(3)/GUESTFS_EVENT_PROGRESS>."
27049 #: ../src/guestfs-actions.pod:1379
27051 #| msgid "guestfs_zero_device"
27052 msgid "guestfs_copy_device_to_device_va"
27053 msgstr "guestfs_zero_device"
27056 #: ../src/guestfs-actions.pod:1381
27060 #| " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27061 #| " const char *fstype,\n"
27062 #| " const char *device,\n"
27063 #| " va_list args);\n"
27067 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
27068 " const char *src,\n"
27069 " const char *dest,\n"
27070 " va_list args);\n"
27074 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27075 " const char *fstype,\n"
27076 " const char *device,\n"
27077 " va_list args);\n"
27081 #: ../src/guestfs-actions.pod:1387
27082 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
27086 #: ../src/guestfs-actions.pod:1391
27088 #| msgid "guestfs_zero_device"
27089 msgid "guestfs_copy_device_to_device_argv"
27090 msgstr "guestfs_zero_device"
27093 #: ../src/guestfs-actions.pod:1393
27097 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27098 #| " const char *fstype,\n"
27099 #| " const char *device,\n"
27100 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
27104 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
27105 " const char *src,\n"
27106 " const char *dest,\n"
27107 " const struct guestfs_copy_device_to_device_argv *optargs);\n"
27111 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27112 " const char *fstype,\n"
27113 " const char *device,\n"
27114 " const struct guestfs_mkfs_opts_argv *optargs);\n"
27118 #: ../src/guestfs-actions.pod:1399
27119 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
27123 #: ../src/guestfs-actions.pod:1403
27125 #| msgid "guestfs_zero_device"
27126 msgid "guestfs_copy_device_to_file"
27127 msgstr "guestfs_zero_device"
27130 #: ../src/guestfs-actions.pod:1405
27134 #| " guestfs_luks_kill_slot (guestfs_h *g,\n"
27135 #| " const char *device,\n"
27136 #| " const char *key,\n"
27137 #| " int keyslot);\n"
27141 " guestfs_copy_device_to_file (guestfs_h *g,\n"
27142 " const char *src,\n"
27143 " const char *dest,\n"
27148 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27149 " const char *device,\n"
27150 " const char *key,\n"
27155 #: ../src/guestfs-actions.pod:1416
27158 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27159 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27160 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
27165 #: ../src/guestfs-actions.pod:1420 ../src/guestfs-actions.pod:1471
27166 #: ../src/guestfs-actions.pod:1522
27168 "See C<guestfs_copy_device_to_device> for a general overview of this call."
27172 #: ../src/guestfs-actions.pod:1430
27174 #| msgid "guestfs_zero_device"
27175 msgid "guestfs_copy_device_to_file_va"
27176 msgstr "guestfs_zero_device"
27179 #: ../src/guestfs-actions.pod:1432
27183 #| " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27184 #| " const char *fstype,\n"
27185 #| " const char *device,\n"
27186 #| " va_list args);\n"
27190 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
27191 " const char *src,\n"
27192 " const char *dest,\n"
27193 " va_list args);\n"
27197 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27198 " const char *fstype,\n"
27199 " const char *device,\n"
27200 " va_list args);\n"
27204 #: ../src/guestfs-actions.pod:1438
27205 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
27209 #: ../src/guestfs-actions.pod:1442
27211 #| msgid "guestfs_lvm_set_filter"
27212 msgid "guestfs_copy_device_to_file_argv"
27213 msgstr "guestfs_lvm_set_filter"
27216 #: ../src/guestfs-actions.pod:1444
27220 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27221 #| " const char *fstype,\n"
27222 #| " const char *device,\n"
27223 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
27227 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
27228 " const char *src,\n"
27229 " const char *dest,\n"
27230 " const struct guestfs_copy_device_to_file_argv *optargs);\n"
27234 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27235 " const char *fstype,\n"
27236 " const char *device,\n"
27237 " const struct guestfs_mkfs_opts_argv *optargs);\n"
27241 #: ../src/guestfs-actions.pod:1450
27242 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
27246 #: ../src/guestfs-actions.pod:1454
27248 #| msgid "guestfs_zero_device"
27249 msgid "guestfs_copy_file_to_device"
27250 msgstr "guestfs_zero_device"
27253 #: ../src/guestfs-actions.pod:1456
27257 #| " guestfs_luks_kill_slot (guestfs_h *g,\n"
27258 #| " const char *device,\n"
27259 #| " const char *key,\n"
27260 #| " int keyslot);\n"
27264 " guestfs_copy_file_to_device (guestfs_h *g,\n"
27265 " const char *src,\n"
27266 " const char *dest,\n"
27271 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27272 " const char *device,\n"
27273 " const char *key,\n"
27278 #: ../src/guestfs-actions.pod:1467
27281 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27282 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27283 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
27288 #: ../src/guestfs-actions.pod:1481
27290 #| msgid "guestfs_zero_device"
27291 msgid "guestfs_copy_file_to_device_va"
27292 msgstr "guestfs_zero_device"
27295 #: ../src/guestfs-actions.pod:1483
27299 #| " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27300 #| " const char *fstype,\n"
27301 #| " const char *device,\n"
27302 #| " va_list args);\n"
27306 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
27307 " const char *src,\n"
27308 " const char *dest,\n"
27309 " va_list args);\n"
27313 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27314 " const char *fstype,\n"
27315 " const char *device,\n"
27316 " va_list args);\n"
27320 #: ../src/guestfs-actions.pod:1489
27321 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
27325 #: ../src/guestfs-actions.pod:1493
27327 #| msgid "guestfs_btrfs_filesystem_resize_argv"
27328 msgid "guestfs_copy_file_to_device_argv"
27329 msgstr "guestfs_btrfs_filesystem_resize_argv"
27332 #: ../src/guestfs-actions.pod:1495
27336 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27337 #| " const char *fstype,\n"
27338 #| " const char *device,\n"
27339 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
27343 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
27344 " const char *src,\n"
27345 " const char *dest,\n"
27346 " const struct guestfs_copy_file_to_device_argv *optargs);\n"
27350 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27351 " const char *fstype,\n"
27352 " const char *device,\n"
27353 " const struct guestfs_mkfs_opts_argv *optargs);\n"
27357 #: ../src/guestfs-actions.pod:1501
27358 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
27362 #: ../src/guestfs-actions.pod:1505
27364 #| msgid "guestfs_write_file"
27365 msgid "guestfs_copy_file_to_file"
27366 msgstr "guestfs_write_file"
27369 #: ../src/guestfs-actions.pod:1507
27373 #| " guestfs_luks_kill_slot (guestfs_h *g,\n"
27374 #| " const char *device,\n"
27375 #| " const char *key,\n"
27376 #| " int keyslot);\n"
27380 " guestfs_copy_file_to_file (guestfs_h *g,\n"
27381 " const char *src,\n"
27382 " const char *dest,\n"
27387 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27388 " const char *device,\n"
27389 " const char *key,\n"
27394 #: ../src/guestfs-actions.pod:1518
27397 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27398 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27399 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
27404 #: ../src/guestfs-actions.pod:1525
27406 "This is B<not> the function you want for copying files. This is for copying "
27407 "blocks within existing files. See C<guestfs_cp>, C<guestfs_cp_a> and "
27408 "C<guestfs_mv> for general file copying and moving functions."
27412 #: ../src/guestfs-actions.pod:1537
27414 #| msgid "guestfs_write_file"
27415 msgid "guestfs_copy_file_to_file_va"
27416 msgstr "guestfs_write_file"
27419 #: ../src/guestfs-actions.pod:1539
27423 #| " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27424 #| " const char *fstype,\n"
27425 #| " const char *device,\n"
27426 #| " va_list args);\n"
27430 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
27431 " const char *src,\n"
27432 " const char *dest,\n"
27433 " va_list args);\n"
27437 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27438 " const char *fstype,\n"
27439 " const char *device,\n"
27440 " va_list args);\n"
27444 #: ../src/guestfs-actions.pod:1545
27445 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
27449 #: ../src/guestfs-actions.pod:1549
27451 #| msgid "guestfs_btrfs_filesystem_resize_argv"
27452 msgid "guestfs_copy_file_to_file_argv"
27453 msgstr "guestfs_btrfs_filesystem_resize_argv"
27456 #: ../src/guestfs-actions.pod:1551
27460 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27461 #| " const char *fstype,\n"
27462 #| " const char *device,\n"
27463 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
27467 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
27468 " const char *src,\n"
27469 " const char *dest,\n"
27470 " const struct guestfs_copy_file_to_file_argv *optargs);\n"
27474 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27475 " const char *fstype,\n"
27476 " const char *device,\n"
27477 " const struct guestfs_mkfs_opts_argv *optargs);\n"
27481 #: ../src/guestfs-actions.pod:1557
27482 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
27486 #: ../src/guestfs-actions.pod:1561
27487 msgid "guestfs_copy_size"
27491 #: ../src/guestfs-actions.pod:1563
27495 " guestfs_copy_size (guestfs_h *g,\n"
27496 " const char *src,\n"
27497 " const char *dest,\n"
27498 " int64_t size);\n"
27503 #: ../src/guestfs-actions.pod:1569 ../src/guestfs-actions.pod:1626
27505 "I<This function is deprecated.> In new code, use the L</"
27506 "guestfs_copy_device_to_device> call instead."
27510 #: ../src/guestfs-actions.pod:1589 ../src/guestfs-actions.pod:4821
27511 #: ../src/guestfs-actions.pod:6214 ../src/guestfs-actions.pod:7956
27512 #: ../src/guestfs-actions.pod:7976 ../src/guestfs-actions.pod:8062
27513 msgid "(Added in 1.0.87)"
27514 msgstr "(Додано у 1.0.87)"
27517 #: ../src/guestfs-actions.pod:1591
27522 #: ../src/guestfs-actions.pod:1593
27526 " guestfs_cp (guestfs_h *g,\n"
27527 " const char *src,\n"
27528 " const char *dest);\n"
27533 #: ../src/guestfs-actions.pod:1603 ../src/guestfs-actions.pod:1617
27534 #: ../src/guestfs-actions.pod:1697 ../src/guestfs-actions.pod:1771
27535 #: ../src/guestfs-actions.pod:1885 ../src/guestfs-actions.pod:5565
27536 #: ../src/guestfs-actions.pod:6058
27537 msgid "(Added in 1.0.18)"
27538 msgstr "(Додано у 1.0.18)"
27541 #: ../src/guestfs-actions.pod:1605
27542 msgid "guestfs_cp_a"
27546 #: ../src/guestfs-actions.pod:1607
27550 " guestfs_cp_a (guestfs_h *g,\n"
27551 " const char *src,\n"
27552 " const char *dest);\n"
27557 #: ../src/guestfs-actions.pod:1619
27562 #: ../src/guestfs-actions.pod:1621
27566 " guestfs_dd (guestfs_h *g,\n"
27567 " const char *src,\n"
27568 " const char *dest);\n"
27573 #: ../src/guestfs-actions.pod:1638
27575 "If the destination is a device, it must be as large or larger than the "
27576 "source file or device, otherwise the copy will fail. This command cannot do "
27577 "partial copies (see C<guestfs_copy_device_to_device>)."
27581 #: ../src/guestfs-actions.pod:1647
27586 #: ../src/guestfs-actions.pod:1649
27590 " guestfs_df (guestfs_h *g);\n"
27595 #: ../src/guestfs-actions.pod:1654 ../src/guestfs-actions.pod:1671
27597 "This command is mostly useful for interactive sessions. It is I<not> "
27598 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
27603 #: ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1678
27604 #: ../src/guestfs-actions.pod:1796 ../src/guestfs-actions.pod:2803
27605 #: ../src/guestfs-actions.pod:2827 ../src/guestfs-actions.pod:2895
27606 #: ../src/guestfs-actions.pod:4931 ../src/guestfs-actions.pod:5465
27607 #: ../src/guestfs-actions.pod:7459 ../src/guestfs-actions.pod:7483
27608 #: ../src/guestfs-actions.pod:8102 ../src/guestfs-actions.pod:8115
27609 #: ../src/guestfs-actions.pod:8128
27610 msgid "(Added in 1.0.54)"
27611 msgstr "(Додано у 1.0.54)"
27614 #: ../src/guestfs-actions.pod:1663
27615 msgid "guestfs_df_h"
27619 #: ../src/guestfs-actions.pod:1665
27623 " guestfs_df_h (guestfs_h *g);\n"
27628 #: ../src/guestfs-actions.pod:1680
27629 msgid "guestfs_dmesg"
27633 #: ../src/guestfs-actions.pod:1682
27637 " guestfs_dmesg (guestfs_h *g);\n"
27642 #: ../src/guestfs-actions.pod:1689
27644 "Another way to get the same information is to enable verbose messages with "
27645 "C<guestfs_set_verbose> or by setting the environment variable "
27646 "C<LIBGUESTFS_DEBUG=1> before running the program."
27650 #: ../src/guestfs-actions.pod:1699
27651 msgid "guestfs_download"
27655 #: ../src/guestfs-actions.pod:1701
27659 " guestfs_download (guestfs_h *g,\n"
27660 " const char *remotefilename,\n"
27661 " const char *filename);\n"
27666 #: ../src/guestfs-actions.pod:1711
27667 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
27671 #: ../src/guestfs-actions.pod:1722
27672 msgid "guestfs_download_offset"
27676 #: ../src/guestfs-actions.pod:1724
27680 " guestfs_download_offset (guestfs_h *g,\n"
27681 " const char *remotefilename,\n"
27682 " const char *filename,\n"
27683 " int64_t offset,\n"
27684 " int64_t size);\n"
27689 #: ../src/guestfs-actions.pod:1737
27691 "Note that there is no limit on the amount of data that can be downloaded "
27692 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
27693 "full amount unless an error occurs."
27697 #: ../src/guestfs-actions.pod:1742
27698 msgid "See also C<guestfs_download>, C<guestfs_pread>."
27702 #: ../src/guestfs-actions.pod:1751 ../src/guestfs-actions.pod:7760
27703 msgid "(Added in 1.5.17)"
27704 msgstr "(Додано у 1.5.17)"
27707 #: ../src/guestfs-actions.pod:1753
27708 msgid "guestfs_drop_caches"
27712 #: ../src/guestfs-actions.pod:1755
27716 " guestfs_drop_caches (guestfs_h *g,\n"
27717 " int whattodrop);\n"
27722 #: ../src/guestfs-actions.pod:1773
27727 #: ../src/guestfs-actions.pod:1775
27731 " guestfs_du (guestfs_h *g,\n"
27732 " const char *path);\n"
27737 #: ../src/guestfs-actions.pod:1798
27738 msgid "guestfs_e2fsck_f"
27742 #: ../src/guestfs-actions.pod:1800
27746 " guestfs_e2fsck_f (guestfs_h *g,\n"
27747 " const char *device);\n"
27752 #: ../src/guestfs-actions.pod:1808
27754 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
27755 "Normally you should use C<guestfs_fsck>."
27759 #: ../src/guestfs-actions.pod:1813
27760 msgid "(Added in 1.0.29)"
27761 msgstr "(Додано у 1.0.29)"
27764 #: ../src/guestfs-actions.pod:1815
27765 msgid "guestfs_echo_daemon"
27766 msgstr "guestfs_echo_daemon"
27769 #: ../src/guestfs-actions.pod:1817
27773 " guestfs_echo_daemon (guestfs_h *g,\n"
27774 " char *const *words);\n"
27778 " guestfs_echo_daemon (guestfs_h *g,\n"
27779 " char *const *words);\n"
27783 #: ../src/guestfs-actions.pod:1826
27784 msgid "See also C<guestfs_ping_daemon>."
27788 #: ../src/guestfs-actions.pod:1831 ../src/guestfs-actions.pod:2589
27789 #: ../src/guestfs-actions.pod:6931
27790 msgid "(Added in 1.0.69)"
27791 msgstr "(Додано у 1.0.69)"
27794 #: ../src/guestfs-actions.pod:1833
27795 msgid "guestfs_egrep"
27796 msgstr "guestfs_egrep"
27799 #: ../src/guestfs-actions.pod:1835
27803 " guestfs_egrep (guestfs_h *g,\n"
27804 " const char *regex,\n"
27805 " const char *path);\n"
27809 " guestfs_egrep (guestfs_h *g,\n"
27810 " const char *regex,\n"
27811 " const char *path);\n"
27815 #: ../src/guestfs-actions.pod:1850 ../src/guestfs-actions.pod:1869
27816 #: ../src/guestfs-actions.pod:1926 ../src/guestfs-actions.pod:1972
27817 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:2719
27818 #: ../src/guestfs-actions.pod:2738 ../src/guestfs-actions.pod:2916
27819 #: ../src/guestfs-actions.pod:2929 ../src/guestfs-actions.pod:2944
27820 #: ../src/guestfs-actions.pod:2990 ../src/guestfs-actions.pod:3012
27821 #: ../src/guestfs-actions.pod:3025 ../src/guestfs-actions.pod:4311
27822 #: ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:4338
27823 #: ../src/guestfs-actions.pod:4352 ../src/guestfs-actions.pod:5353
27824 #: ../src/guestfs-actions.pod:6392 ../src/guestfs-actions.pod:6441
27825 #: ../src/guestfs-actions.pod:7327 ../src/guestfs-actions.pod:7339
27826 #: ../src/guestfs-actions.pod:7352 ../src/guestfs-actions.pod:7365
27827 #: ../src/guestfs-actions.pod:7387 ../src/guestfs-actions.pod:7400
27828 #: ../src/guestfs-actions.pod:7413 ../src/guestfs-actions.pod:7426
27829 #: ../src/guestfs-actions.pod:8220 ../src/guestfs-actions.pod:8239
27830 #: ../src/guestfs-actions.pod:8333 ../src/guestfs-actions.pod:8352
27831 #: ../src/guestfs-actions.pod:8398 ../src/guestfs-actions.pod:8417
27832 msgid "(Added in 1.0.66)"
27833 msgstr "(Додано у 1.0.66)"
27836 #: ../src/guestfs-actions.pod:1852
27837 msgid "guestfs_egrepi"
27838 msgstr "guestfs_egrepi"
27841 #: ../src/guestfs-actions.pod:1854
27845 " guestfs_egrepi (guestfs_h *g,\n"
27846 " const char *regex,\n"
27847 " const char *path);\n"
27852 #: ../src/guestfs-actions.pod:1871
27853 msgid "guestfs_equal"
27857 #: ../src/guestfs-actions.pod:1873
27861 " guestfs_equal (guestfs_h *g,\n"
27862 " const char *file1,\n"
27863 " const char *file2);\n"
27868 #: ../src/guestfs-actions.pod:1887
27869 msgid "guestfs_exists"
27873 #: ../src/guestfs-actions.pod:1889
27877 " guestfs_exists (guestfs_h *g,\n"
27878 " const char *path);\n"
27883 #: ../src/guestfs-actions.pod:1896
27884 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
27888 #: ../src/guestfs-actions.pod:1902
27889 msgid "guestfs_fallocate"
27893 #: ../src/guestfs-actions.pod:1904
27897 " guestfs_fallocate (guestfs_h *g,\n"
27898 " const char *path,\n"
27904 #: ../src/guestfs-actions.pod:1909
27906 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
27911 #: ../src/guestfs-actions.pod:1928
27912 msgid "guestfs_fallocate64"
27916 #: ../src/guestfs-actions.pod:1930
27920 " guestfs_fallocate64 (guestfs_h *g,\n"
27921 " const char *path,\n"
27927 #: ../src/guestfs-actions.pod:1939
27929 "Note that this call allocates disk blocks for the file. To create a sparse "
27930 "file use C<guestfs_truncate_size> instead."
27934 #: ../src/guestfs-actions.pod:1942
27936 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27937 "oversight it only allowed 30 bit lengths to be specified, effectively "
27938 "limiting the maximum size of files created through that call to 1GB."
27942 #: ../src/guestfs-actions.pod:1953
27943 msgid "(Added in 1.3.17)"
27944 msgstr "(Додано у 1.3.17)"
27947 #: ../src/guestfs-actions.pod:1955
27948 msgid "guestfs_fgrep"
27952 #: ../src/guestfs-actions.pod:1957
27956 " guestfs_fgrep (guestfs_h *g,\n"
27957 " const char *pattern,\n"
27958 " const char *path);\n"
27963 #: ../src/guestfs-actions.pod:1974
27964 msgid "guestfs_fgrepi"
27968 #: ../src/guestfs-actions.pod:1976
27972 " guestfs_fgrepi (guestfs_h *g,\n"
27973 " const char *pattern,\n"
27974 " const char *path);\n"
27979 #: ../src/guestfs-actions.pod:1993
27980 msgid "guestfs_file"
27984 #: ../src/guestfs-actions.pod:1995
27988 " guestfs_file (guestfs_h *g,\n"
27989 " const char *path);\n"
27994 #: ../src/guestfs-actions.pod:2013
27996 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27997 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
28001 #: ../src/guestfs-actions.pod:2021
28002 msgid "guestfs_file_architecture"
28006 #: ../src/guestfs-actions.pod:2023
28010 " guestfs_file_architecture (guestfs_h *g,\n"
28011 " const char *filename);\n"
28016 #: ../src/guestfs-actions.pod:2131 ../src/guestfs-actions.pod:2294
28017 #: ../src/guestfs-actions.pod:2311 ../src/guestfs-actions.pod:3045
28018 #: ../src/guestfs-actions.pod:3147 ../src/guestfs-actions.pod:3213
28019 #: ../src/guestfs-actions.pod:3400 ../src/guestfs-actions.pod:3418
28020 #: ../src/guestfs-actions.pod:3458 ../src/guestfs-actions.pod:3534
28021 #: ../src/guestfs-actions.pod:3631 ../src/guestfs-actions.pod:3868
28022 #: ../src/guestfs-actions.pod:4000
28023 msgid "(Added in 1.5.3)"
28024 msgstr "(Додано у 1.5.3)"
28027 #: ../src/guestfs-actions.pod:2133
28028 msgid "guestfs_filesize"
28032 #: ../src/guestfs-actions.pod:2135
28036 " guestfs_filesize (guestfs_h *g,\n"
28037 " const char *file);\n"
28042 #: ../src/guestfs-actions.pod:2141
28044 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
28045 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
28046 "devices, use C<guestfs_blockdev_getsize64>."
28050 #: ../src/guestfs-actions.pod:2147
28051 msgid "(Added in 1.0.82)"
28052 msgstr "(Додано у 1.0.82)"
28055 #: ../src/guestfs-actions.pod:2149
28056 msgid "guestfs_fill"
28060 #: ../src/guestfs-actions.pod:2151
28064 " guestfs_fill (guestfs_h *g,\n"
28067 " const char *path);\n"
28072 #: ../src/guestfs-actions.pod:2161
28074 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
28075 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
28076 "bytes use C<guestfs_fill_pattern>."
28080 #: ../src/guestfs-actions.pod:2173
28081 msgid "(Added in 1.0.79)"
28082 msgstr "(Додано у 1.0.79)"
28085 #: ../src/guestfs-actions.pod:2175
28086 msgid "guestfs_fill_pattern"
28090 #: ../src/guestfs-actions.pod:2177
28094 " guestfs_fill_pattern (guestfs_h *g,\n"
28095 " const char *pattern,\n"
28097 " const char *path);\n"
28102 #: ../src/guestfs-actions.pod:2183
28104 "This function is like C<guestfs_fill> except that it creates a new file of "
28105 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
28106 "pattern is truncated if necessary to ensure the length of the file is "
28107 "exactly C<len> bytes."
28111 #: ../src/guestfs-actions.pod:2195
28112 msgid "(Added in 1.3.12)"
28113 msgstr "(Додано у 1.3.12)"
28116 #: ../src/guestfs-actions.pod:2197
28117 msgid "guestfs_find"
28121 #: ../src/guestfs-actions.pod:2199
28125 " guestfs_find (guestfs_h *g,\n"
28126 " const char *directory);\n"
28131 #: ../src/guestfs-actions.pod:2215
28133 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
28137 #: ../src/guestfs-actions.pod:2228
28138 msgid "See also C<guestfs_find0>."
28142 #: ../src/guestfs-actions.pod:2237 ../src/guestfs-actions.pod:4758
28143 #: ../src/guestfs-actions.pod:6476
28144 msgid "(Added in 1.0.27)"
28145 msgstr "(Додано у 1.0.27)"
28148 #: ../src/guestfs-actions.pod:2239
28149 msgid "guestfs_find0"
28153 #: ../src/guestfs-actions.pod:2241
28157 " guestfs_find0 (guestfs_h *g,\n"
28158 " const char *directory,\n"
28159 " const char *files);\n"
28164 #: ../src/guestfs-actions.pod:2250
28166 "This command works the same way as C<guestfs_find> with the following "
28171 #: ../src/guestfs-actions.pod:2277
28172 msgid "(Added in 1.0.74)"
28173 msgstr "(Додано у 1.0.74)"
28176 #: ../src/guestfs-actions.pod:2279
28177 msgid "guestfs_findfs_label"
28181 #: ../src/guestfs-actions.pod:2281
28185 " guestfs_findfs_label (guestfs_h *g,\n"
28186 " const char *label);\n"
28191 #: ../src/guestfs-actions.pod:2289
28192 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
28196 #: ../src/guestfs-actions.pod:2296
28197 msgid "guestfs_findfs_uuid"
28201 #: ../src/guestfs-actions.pod:2298
28205 " guestfs_findfs_uuid (guestfs_h *g,\n"
28206 " const char *uuid);\n"
28211 #: ../src/guestfs-actions.pod:2306
28212 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
28216 #: ../src/guestfs-actions.pod:2313
28217 msgid "guestfs_fsck"
28221 #: ../src/guestfs-actions.pod:2315
28225 " guestfs_fsck (guestfs_h *g,\n"
28226 " const char *fstype,\n"
28227 " const char *device);\n"
28232 #: ../src/guestfs-actions.pod:2350 ../src/guestfs-actions.pod:8267
28233 msgid "(Added in 1.0.16)"
28234 msgstr "(Додано у 1.0.16)"
28237 #: ../src/guestfs-actions.pod:2352
28238 msgid "guestfs_get_append"
28242 #: ../src/guestfs-actions.pod:2354
28246 " guestfs_get_append (guestfs_h *g);\n"
28251 #: ../src/guestfs-actions.pod:2362
28253 "This function returns a string which may be NULL. There is no way to return "
28254 "an error from this function. The string is owned by the guest handle and "
28255 "must I<not> be freed."
28259 #: ../src/guestfs-actions.pod:2366 ../src/guestfs-actions.pod:6154
28260 #: ../src/guestfs-actions.pod:6636 ../src/guestfs-actions.pod:7094
28261 #: ../src/guestfs-actions.pod:7113 ../src/guestfs-actions.pod:7129
28262 #: ../src/guestfs-actions.pod:7153 ../src/guestfs-actions.pod:7907
28263 #: ../src/guestfs-actions.pod:7922 ../src/guestfs-actions.pod:8314
28264 msgid "(Added in 1.0.26)"
28265 msgstr "(Додано у 1.0.26)"
28268 #: ../src/guestfs-actions.pod:2368
28269 msgid "guestfs_get_attach_method"
28273 #: ../src/guestfs-actions.pod:2370
28277 " guestfs_get_attach_method (guestfs_h *g);\n"
28282 #: ../src/guestfs-actions.pod:2373
28283 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
28287 #: ../src/guestfs-actions.pod:2378 ../src/guestfs-actions.pod:6666
28288 msgid "(Added in 1.9.8)"
28289 msgstr "(Додано у 1.9.8)"
28292 #: ../src/guestfs-actions.pod:2380
28293 msgid "guestfs_get_autosync"
28297 #: ../src/guestfs-actions.pod:2382
28301 " guestfs_get_autosync (guestfs_h *g);\n"
28306 #: ../src/guestfs-actions.pod:2391
28307 msgid "guestfs_get_direct"
28311 #: ../src/guestfs-actions.pod:2393
28315 " guestfs_get_direct (guestfs_h *g);\n"
28320 #: ../src/guestfs-actions.pod:2400 ../src/guestfs-actions.pod:6707
28321 msgid "(Added in 1.0.72)"
28322 msgstr "(Додано у 1.0.72)"
28325 #: ../src/guestfs-actions.pod:2402
28326 msgid "guestfs_get_e2label"
28330 #: ../src/guestfs-actions.pod:2404
28334 " guestfs_get_e2label (guestfs_h *g,\n"
28335 " const char *device);\n"
28340 #: ../src/guestfs-actions.pod:2408
28342 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
28347 #: ../src/guestfs-actions.pod:2421 ../src/guestfs-actions.pod:2442
28348 #: ../src/guestfs-actions.pod:6725 ../src/guestfs-actions.pod:6744
28349 msgid "(Added in 1.0.15)"
28350 msgstr "(Додано у 1.0.15)"
28353 #: ../src/guestfs-actions.pod:2423
28354 msgid "guestfs_get_e2uuid"
28358 #: ../src/guestfs-actions.pod:2425
28362 " guestfs_get_e2uuid (guestfs_h *g,\n"
28363 " const char *device);\n"
28368 #: ../src/guestfs-actions.pod:2429
28370 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
28375 #: ../src/guestfs-actions.pod:2444
28376 msgid "guestfs_get_memsize"
28380 #: ../src/guestfs-actions.pod:2446
28384 " guestfs_get_memsize (guestfs_h *g);\n"
28389 #: ../src/guestfs-actions.pod:2452
28391 "If C<guestfs_set_memsize> was not called on this handle, and if "
28392 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
28393 "value for memsize."
28397 #: ../src/guestfs-actions.pod:2461 ../src/guestfs-actions.pod:5049
28398 #: ../src/guestfs-actions.pod:5258 ../src/guestfs-actions.pod:5277
28399 #: ../src/guestfs-actions.pod:5296 ../src/guestfs-actions.pod:5308
28400 #: ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5338
28401 #: ../src/guestfs-actions.pod:6379 ../src/guestfs-actions.pod:6765
28402 #: ../src/guestfs-actions.pod:7061 ../src/guestfs-actions.pod:7676
28403 msgid "(Added in 1.0.55)"
28404 msgstr "(Додано у 1.0.55)"
28407 #: ../src/guestfs-actions.pod:2463
28408 msgid "guestfs_get_network"
28412 #: ../src/guestfs-actions.pod:2465
28416 " guestfs_get_network (guestfs_h *g);\n"
28421 #: ../src/guestfs-actions.pod:2472 ../src/guestfs-actions.pod:6784
28422 msgid "(Added in 1.5.4)"
28423 msgstr "(Додано у 1.5.4)"
28426 #: ../src/guestfs-actions.pod:2474
28427 msgid "guestfs_get_path"
28431 #: ../src/guestfs-actions.pod:2476
28435 " guestfs_get_path (guestfs_h *g);\n"
28440 #: ../src/guestfs-actions.pod:2484 ../src/guestfs-actions.pod:2524
28442 "This function returns a string, or NULL on error. The string is owned by "
28443 "the guest handle and must I<not> be freed."
28447 #: ../src/guestfs-actions.pod:2489
28448 msgid "guestfs_get_pgroup"
28452 #: ../src/guestfs-actions.pod:2491
28456 " guestfs_get_pgroup (guestfs_h *g);\n"
28461 #: ../src/guestfs-actions.pod:2498 ../src/guestfs-actions.pod:6820
28462 #: ../src/guestfs-actions.pod:8168
28463 msgid "(Added in 1.11.18)"
28464 msgstr "(Додано у 1.11.18)"
28467 #: ../src/guestfs-actions.pod:2500
28468 msgid "guestfs_get_pid"
28472 #: ../src/guestfs-actions.pod:2502
28476 " guestfs_get_pid (guestfs_h *g);\n"
28481 #: ../src/guestfs-actions.pod:2512
28482 msgid "(Added in 1.0.56)"
28483 msgstr "(Додано у 1.0.56)"
28486 #: ../src/guestfs-actions.pod:2514
28487 msgid "guestfs_get_qemu"
28491 #: ../src/guestfs-actions.pod:2516
28495 " guestfs_get_qemu (guestfs_h *g);\n"
28500 #: ../src/guestfs-actions.pod:2527 ../src/guestfs-actions.pod:6848
28501 msgid "(Added in 1.0.6)"
28502 msgstr "(Додано у 1.0.6)"
28505 #: ../src/guestfs-actions.pod:2529
28506 msgid "guestfs_get_recovery_proc"
28510 #: ../src/guestfs-actions.pod:2531
28514 " guestfs_get_recovery_proc (guestfs_h *g);\n"
28519 #: ../src/guestfs-actions.pod:2538 ../src/guestfs-actions.pod:4122
28520 #: ../src/guestfs-actions.pod:4453 ../src/guestfs-actions.pod:4856
28521 #: ../src/guestfs-actions.pod:4888 ../src/guestfs-actions.pod:6084
28522 #: ../src/guestfs-actions.pod:6427 ../src/guestfs-actions.pod:6872
28523 #: ../src/guestfs-actions.pod:7579 ../src/guestfs-actions.pod:7599
28524 #: ../src/guestfs-actions.pod:7791
28525 msgid "(Added in 1.0.77)"
28526 msgstr "(Додано у 1.0.77)"
28529 #: ../src/guestfs-actions.pod:2540
28530 msgid "guestfs_get_selinux"
28534 #: ../src/guestfs-actions.pod:2542
28538 " guestfs_get_selinux (guestfs_h *g);\n"
28543 #: ../src/guestfs-actions.pod:2545
28545 "This returns the current setting of the selinux flag which is passed to the "
28546 "appliance at boot time. See C<guestfs_set_selinux>."
28550 #: ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2627
28551 #: ../src/guestfs-actions.pod:6891 ../src/guestfs-actions.pod:6965
28552 msgid "(Added in 1.0.67)"
28553 msgstr "(Додано у 1.0.67)"
28556 #: ../src/guestfs-actions.pod:2555
28557 msgid "guestfs_get_smp"
28561 #: ../src/guestfs-actions.pod:2557
28565 " guestfs_get_smp (guestfs_h *g);\n"
28570 #: ../src/guestfs-actions.pod:2566
28571 msgid "guestfs_get_state"
28575 #: ../src/guestfs-actions.pod:2568
28579 " guestfs_get_state (guestfs_h *g);\n"
28584 #: ../src/guestfs-actions.pod:2580
28585 msgid "guestfs_get_trace"
28589 #: ../src/guestfs-actions.pod:2582
28593 " guestfs_get_trace (guestfs_h *g);\n"
28598 #: ../src/guestfs-actions.pod:2591
28599 msgid "guestfs_get_umask"
28603 #: ../src/guestfs-actions.pod:2593
28607 " guestfs_get_umask (guestfs_h *g);\n"
28612 #: ../src/guestfs-actions.pod:2596
28614 "Return the current umask. By default the umask is C<022> unless it has been "
28615 "set by calling C<guestfs_umask>."
28619 #: ../src/guestfs-actions.pod:2603
28620 msgid "guestfs_get_verbose"
28624 #: ../src/guestfs-actions.pod:2605
28628 " guestfs_get_verbose (guestfs_h *g);\n"
28633 #: ../src/guestfs-actions.pod:2614
28634 msgid "guestfs_getcon"
28638 #: ../src/guestfs-actions.pod:2616
28642 " guestfs_getcon (guestfs_h *g);\n"
28647 #: ../src/guestfs-actions.pod:2621
28649 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
28653 #: ../src/guestfs-actions.pod:2629
28654 msgid "guestfs_getxattr"
28658 #: ../src/guestfs-actions.pod:2631
28662 " guestfs_getxattr (guestfs_h *g,\n"
28663 " const char *path,\n"
28664 " const char *name,\n"
28665 " size_t *size_r);\n"
28670 #: ../src/guestfs-actions.pod:2637
28672 "Get a single extended attribute from file C<path> named C<name>. This call "
28673 "follows symlinks. If you want to lookup an extended attribute for the "
28674 "symlink itself, use C<guestfs_lgetxattr>."
28678 #: ../src/guestfs-actions.pod:2641 ../src/guestfs-actions.pod:4136
28680 "Normally it is better to get all extended attributes from a file in one go "
28681 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
28682 "implementations are buggy and do not provide a way to list out attributes. "
28683 "For these filesystems (notably ntfs-3g) you have to know the names of the "
28684 "extended attributes you want in advance and call this function."
28688 #: ../src/guestfs-actions.pod:2651
28689 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
28693 #: ../src/guestfs-actions.pod:2653 ../src/guestfs-actions.pod:2866
28694 #: ../src/guestfs-actions.pod:3348 ../src/guestfs-actions.pod:4148
28695 #: ../src/guestfs-actions.pod:6077 ../src/guestfs-actions.pod:6103
28696 #: ../src/guestfs-actions.pod:6284
28698 "This function returns a buffer, or NULL on error. The size of the returned "
28699 "buffer is written to C<*size_r>. I<The caller must free the returned buffer "
28704 #: ../src/guestfs-actions.pod:2657 ../src/guestfs-actions.pod:4152
28705 msgid "(Added in 1.7.24)"
28706 msgstr "(Додано у 1.7.24)"
28709 #: ../src/guestfs-actions.pod:2659
28710 msgid "guestfs_getxattrs"
28714 #: ../src/guestfs-actions.pod:2661
28717 " struct guestfs_xattr_list *\n"
28718 " guestfs_getxattrs (guestfs_h *g,\n"
28719 " const char *path);\n"
28724 #: ../src/guestfs-actions.pod:2671
28725 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
28729 #: ../src/guestfs-actions.pod:2673 ../src/guestfs-actions.pod:4164
28730 #: ../src/guestfs-actions.pod:4852
28732 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
28733 "an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
28737 #: ../src/guestfs-actions.pod:2677 ../src/guestfs-actions.pod:4168
28738 #: ../src/guestfs-actions.pod:4367 ../src/guestfs-actions.pod:4403
28739 #: ../src/guestfs-actions.pod:6457 ../src/guestfs-actions.pod:6984
28740 #: ../src/guestfs-actions.pod:8379
28741 msgid "(Added in 1.0.59)"
28742 msgstr "(Додано у 1.0.59)"
28745 #: ../src/guestfs-actions.pod:2679
28746 msgid "guestfs_glob_expand"
28750 #: ../src/guestfs-actions.pod:2681
28754 " guestfs_glob_expand (guestfs_h *g,\n"
28755 " const char *pattern);\n"
28760 #: ../src/guestfs-actions.pod:2700 ../src/guestfs-actions.pod:7177
28761 #: ../src/guestfs-actions.pod:7194
28762 msgid "(Added in 1.0.50)"
28763 msgstr "(Додано у 1.0.50)"
28766 #: ../src/guestfs-actions.pod:2702
28767 msgid "guestfs_grep"
28771 #: ../src/guestfs-actions.pod:2704
28775 " guestfs_grep (guestfs_h *g,\n"
28776 " const char *regex,\n"
28777 " const char *path);\n"
28782 #: ../src/guestfs-actions.pod:2721
28783 msgid "guestfs_grepi"
28787 #: ../src/guestfs-actions.pod:2723
28791 " guestfs_grepi (guestfs_h *g,\n"
28792 " const char *regex,\n"
28793 " const char *path);\n"
28798 #: ../src/guestfs-actions.pod:2740
28799 msgid "guestfs_grub_install"
28803 #: ../src/guestfs-actions.pod:2742
28807 " guestfs_grub_install (guestfs_h *g,\n"
28808 " const char *root,\n"
28809 " const char *device);\n"
28814 #: ../src/guestfs-actions.pod:2785
28815 msgid "(Added in 1.0.17)"
28816 msgstr "(Додано у 1.0.17)"
28819 #: ../src/guestfs-actions.pod:2787
28820 msgid "guestfs_head"
28824 #: ../src/guestfs-actions.pod:2789
28828 " guestfs_head (guestfs_h *g,\n"
28829 " const char *path);\n"
28834 #: ../src/guestfs-actions.pod:2805
28835 msgid "guestfs_head_n"
28839 #: ../src/guestfs-actions.pod:2807
28843 " guestfs_head_n (guestfs_h *g,\n"
28845 " const char *path);\n"
28850 #: ../src/guestfs-actions.pod:2829
28851 msgid "guestfs_hexdump"
28855 #: ../src/guestfs-actions.pod:2831
28859 " guestfs_hexdump (guestfs_h *g,\n"
28860 " const char *path);\n"
28865 #: ../src/guestfs-actions.pod:2844 ../src/guestfs-actions.pod:7258
28866 #: ../src/guestfs-actions.pod:7313
28867 msgid "(Added in 1.0.22)"
28868 msgstr "(Додано у 1.0.22)"
28871 #: ../src/guestfs-actions.pod:2846
28872 msgid "guestfs_initrd_cat"
28876 #: ../src/guestfs-actions.pod:2848
28880 " guestfs_initrd_cat (guestfs_h *g,\n"
28881 " const char *initrdpath,\n"
28882 " const char *filename,\n"
28883 " size_t *size_r);\n"
28888 #: ../src/guestfs-actions.pod:2864
28889 msgid "See also C<guestfs_initrd_list>."
28893 #: ../src/guestfs-actions.pod:2875
28894 msgid "guestfs_initrd_list"
28898 #: ../src/guestfs-actions.pod:2877
28902 " guestfs_initrd_list (guestfs_h *g,\n"
28903 " const char *path);\n"
28908 #: ../src/guestfs-actions.pod:2897
28909 msgid "guestfs_inotify_add_watch"
28913 #: ../src/guestfs-actions.pod:2899
28917 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28918 " const char *path,\n"
28924 #: ../src/guestfs-actions.pod:2918
28925 msgid "guestfs_inotify_close"
28929 #: ../src/guestfs-actions.pod:2920
28933 " guestfs_inotify_close (guestfs_h *g);\n"
28938 #: ../src/guestfs-actions.pod:2931
28939 msgid "guestfs_inotify_files"
28943 #: ../src/guestfs-actions.pod:2933
28947 " guestfs_inotify_files (guestfs_h *g);\n"
28952 #: ../src/guestfs-actions.pod:2936
28954 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28955 "returns a list of pathnames of objects that were touched. The returned "
28956 "pathnames are sorted and deduplicated."
28960 #: ../src/guestfs-actions.pod:2946
28961 msgid "guestfs_inotify_init"
28965 #: ../src/guestfs-actions.pod:2948
28969 " guestfs_inotify_init (guestfs_h *g,\n"
28970 " int maxevents);\n"
28975 #: ../src/guestfs-actions.pod:2956
28977 "C<maxevents> is the maximum number of events which will be queued up between "
28978 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
28979 "passed as C<0>, then the kernel (or previously set) default is used. For "
28980 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
28981 "throws away events, but records the fact that it threw them away by setting "
28982 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28983 "C<guestfs_inotify_read>)."
28987 #: ../src/guestfs-actions.pod:2966
28989 "Before any events are generated, you have to add some watches to the "
28990 "internal watch list. See: C<guestfs_inotify_add_watch>, "
28991 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28995 #: ../src/guestfs-actions.pod:2972
28997 "Queued up events should be read periodically by calling "
28998 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28999 "wrapper around C<guestfs_inotify_read>). If you don't read the events out "
29000 "often enough then you risk the internal queue overflowing."
29004 #: ../src/guestfs-actions.pod:2979
29006 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
29007 "This also removes any watches automatically."
29011 #: ../src/guestfs-actions.pod:2992
29012 msgid "guestfs_inotify_read"
29016 #: ../src/guestfs-actions.pod:2994
29019 " struct guestfs_inotify_event_list *\n"
29020 " guestfs_inotify_read (guestfs_h *g);\n"
29025 #: ../src/guestfs-actions.pod:3008
29027 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
29028 "there was an error. I<The caller must call "
29029 "C<guestfs_free_inotify_event_list> after use>."
29033 #: ../src/guestfs-actions.pod:3014
29034 msgid "guestfs_inotify_rm_watch"
29038 #: ../src/guestfs-actions.pod:3016
29042 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
29048 #: ../src/guestfs-actions.pod:3020
29050 "Remove a previously defined inotify watch. See C<guestfs_inotify_add_watch>."
29054 #: ../src/guestfs-actions.pod:3027
29055 msgid "guestfs_inspect_get_arch"
29059 #: ../src/guestfs-actions.pod:3029
29063 " guestfs_inspect_get_arch (guestfs_h *g,\n"
29064 " const char *root);\n"
29069 #: ../src/guestfs-actions.pod:3033
29071 "This returns the architecture of the inspected operating system. The "
29072 "possible return values are listed under C<guestfs_file_architecture>."
29076 #: ../src/guestfs-actions.pod:3047
29077 msgid "guestfs_inspect_get_distro"
29081 #: ../src/guestfs-actions.pod:3049
29085 " guestfs_inspect_get_distro (guestfs_h *g,\n"
29086 " const char *root);\n"
29091 #: ../src/guestfs-actions.pod:3149
29092 msgid "guestfs_inspect_get_drive_mappings"
29096 #: ../src/guestfs-actions.pod:3151
29100 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
29101 " const char *root);\n"
29106 #: ../src/guestfs-actions.pod:3180
29108 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29109 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
29113 #: ../src/guestfs-actions.pod:3184 ../src/guestfs-actions.pod:3452
29114 #: ../src/guestfs-actions.pod:4255 ../src/guestfs-actions.pod:5527
29115 #: ../src/guestfs-actions.pod:7615
29117 "This function returns a NULL-terminated array of strings, or NULL if there "
29118 "was an error. The array of strings will always have length C<2n+1>, where "
29119 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
29120 "caller must free the strings and the array after use>."
29124 #: ../src/guestfs-actions.pod:3190 ../src/guestfs-actions.pod:3651
29125 msgid "(Added in 1.9.17)"
29126 msgstr "(Додано у 1.9.17)"
29129 #: ../src/guestfs-actions.pod:3192
29130 msgid "guestfs_inspect_get_filesystems"
29134 #: ../src/guestfs-actions.pod:3194
29138 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
29139 " const char *root);\n"
29144 #: ../src/guestfs-actions.pod:3206
29146 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29147 "C<guestfs_inspect_get_mountpoints>."
29151 #: ../src/guestfs-actions.pod:3215
29152 msgid "guestfs_inspect_get_format"
29156 #: ../src/guestfs-actions.pod:3217
29160 " guestfs_inspect_get_format (guestfs_h *g,\n"
29161 " const char *root);\n"
29166 #: ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3687
29167 #: ../src/guestfs-actions.pod:3703 ../src/guestfs-actions.pod:3721
29168 #: ../src/guestfs-actions.pod:6495
29169 msgid "(Added in 1.9.4)"
29170 msgstr "(Додано у 1.9.4)"
29173 #: ../src/guestfs-actions.pod:3253
29174 msgid "guestfs_inspect_get_hostname"
29178 #: ../src/guestfs-actions.pod:3255
29182 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
29183 " const char *root);\n"
29188 #: ../src/guestfs-actions.pod:3270
29189 msgid "(Added in 1.7.9)"
29190 msgstr "(Додано у 1.7.9)"
29193 #: ../src/guestfs-actions.pod:3272
29194 msgid "guestfs_inspect_get_icon"
29198 #: ../src/guestfs-actions.pod:3274
29202 " guestfs_inspect_get_icon (guestfs_h *g,\n"
29203 " const char *root,\n"
29204 " size_t *size_r,\n"
29210 #: ../src/guestfs-actions.pod:3285
29213 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
29214 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
29219 #: ../src/guestfs-actions.pod:3352 ../src/guestfs-actions.pod:4182
29220 #: ../src/guestfs-actions.pod:5426
29221 msgid "(Added in 1.11.12)"
29222 msgstr "(Додано у 1.11.12)"
29225 #: ../src/guestfs-actions.pod:3354
29226 msgid "guestfs_inspect_get_icon_va"
29230 #: ../src/guestfs-actions.pod:3356
29234 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
29235 " const char *root,\n"
29236 " size_t *size_r,\n"
29237 " va_list args);\n"
29242 #: ../src/guestfs-actions.pod:3362
29243 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
29247 #: ../src/guestfs-actions.pod:3366
29248 msgid "guestfs_inspect_get_icon_argv"
29252 #: ../src/guestfs-actions.pod:3368
29256 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
29257 " const char *root,\n"
29258 " size_t *size_r,\n"
29259 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
29264 #: ../src/guestfs-actions.pod:3374
29265 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
29269 #: ../src/guestfs-actions.pod:3378
29270 msgid "guestfs_inspect_get_major_version"
29274 #: ../src/guestfs-actions.pod:3380
29278 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
29279 " const char *root);\n"
29284 #: ../src/guestfs-actions.pod:3402
29285 msgid "guestfs_inspect_get_minor_version"
29289 #: ../src/guestfs-actions.pod:3404
29293 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
29294 " const char *root);\n"
29299 #: ../src/guestfs-actions.pod:3413
29301 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29302 "C<guestfs_inspect_get_major_version>."
29306 #: ../src/guestfs-actions.pod:3420
29307 msgid "guestfs_inspect_get_mountpoints"
29311 #: ../src/guestfs-actions.pod:3422
29315 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
29316 " const char *root);\n"
29321 #: ../src/guestfs-actions.pod:3443
29323 "For operating systems like Windows which still use drive letters, this call "
29324 "will only return an entry for the first drive \"mounted on\" C</>. For "
29325 "information about the mapping of drive letters to partitions, see "
29326 "C<guestfs_inspect_get_drive_mappings>."
29330 #: ../src/guestfs-actions.pod:3449
29332 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29333 "C<guestfs_inspect_get_filesystems>."
29337 #: ../src/guestfs-actions.pod:3460
29338 msgid "guestfs_inspect_get_package_format"
29342 #: ../src/guestfs-actions.pod:3462
29346 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
29347 " const char *root);\n"
29352 #: ../src/guestfs-actions.pod:3466
29354 "This function and C<guestfs_inspect_get_package_management> return the "
29355 "package format and package management tool used by the inspected operating "
29356 "system. For example for Fedora these functions would return C<rpm> (package "
29357 "format) and C<yum> (package management)."
29361 #: ../src/guestfs-actions.pod:3485 ../src/guestfs-actions.pod:3513
29362 msgid "(Added in 1.7.5)"
29363 msgstr "(Додано у 1.7.5)"
29366 #: ../src/guestfs-actions.pod:3487
29367 msgid "guestfs_inspect_get_package_management"
29371 #: ../src/guestfs-actions.pod:3489
29375 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
29376 " const char *root);\n"
29381 #: ../src/guestfs-actions.pod:3493
29383 "C<guestfs_inspect_get_package_format> and this function return the package "
29384 "format and package management tool used by the inspected operating system. "
29385 "For example for Fedora these functions would return C<rpm> (package format) "
29386 "and C<yum> (package management)."
29390 #: ../src/guestfs-actions.pod:3515
29391 msgid "guestfs_inspect_get_product_name"
29395 #: ../src/guestfs-actions.pod:3517
29399 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
29400 " const char *root);\n"
29405 #: ../src/guestfs-actions.pod:3536
29406 msgid "guestfs_inspect_get_product_variant"
29410 #: ../src/guestfs-actions.pod:3538
29414 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
29415 " const char *root);\n"
29420 #: ../src/guestfs-actions.pod:3561
29422 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29423 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
29427 #: ../src/guestfs-actions.pod:3568
29428 msgid "(Added in 1.9.13)"
29429 msgstr "(Додано у 1.9.13)"
29432 #: ../src/guestfs-actions.pod:3570
29433 msgid "guestfs_inspect_get_roots"
29437 #: ../src/guestfs-actions.pod:3572
29441 " guestfs_inspect_get_roots (guestfs_h *g);\n"
29446 #: ../src/guestfs-actions.pod:3575
29448 "This function is a convenient way to get the list of root devices, as "
29449 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
29450 "the whole inspection process."
29454 #: ../src/guestfs-actions.pod:3579
29456 "This returns an empty list if either no root devices were found or the "
29457 "caller has not called C<guestfs_inspect_os>."
29461 #: ../src/guestfs-actions.pod:3588
29462 msgid "(Added in 1.7.3)"
29463 msgstr "(Додано у 1.7.3)"
29466 #: ../src/guestfs-actions.pod:3590
29467 msgid "guestfs_inspect_get_type"
29471 #: ../src/guestfs-actions.pod:3592
29475 " guestfs_inspect_get_type (guestfs_h *g,\n"
29476 " const char *root);\n"
29481 #: ../src/guestfs-actions.pod:3633
29482 msgid "guestfs_inspect_get_windows_current_control_set"
29486 #: ../src/guestfs-actions.pod:3635
29490 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
29491 " const char *root);\n"
29496 #: ../src/guestfs-actions.pod:3653
29497 msgid "guestfs_inspect_get_windows_systemroot"
29501 #: ../src/guestfs-actions.pod:3655
29505 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
29506 " const char *root);\n"
29511 #: ../src/guestfs-actions.pod:3671
29512 msgid "(Added in 1.5.25)"
29513 msgstr "(Додано у 1.5.25)"
29516 #: ../src/guestfs-actions.pod:3673
29517 msgid "guestfs_inspect_is_live"
29521 #: ../src/guestfs-actions.pod:3675
29525 " guestfs_inspect_is_live (guestfs_h *g,\n"
29526 " const char *root);\n"
29531 #: ../src/guestfs-actions.pod:3679
29533 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29534 "disk), then this returns true if a live image was detected on the disk."
29538 #: ../src/guestfs-actions.pod:3689
29539 msgid "guestfs_inspect_is_multipart"
29543 #: ../src/guestfs-actions.pod:3691
29547 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
29548 " const char *root);\n"
29553 #: ../src/guestfs-actions.pod:3695
29555 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29556 "disk), then this returns true if the disk is part of a set."
29560 #: ../src/guestfs-actions.pod:3705
29561 msgid "guestfs_inspect_is_netinst"
29565 #: ../src/guestfs-actions.pod:3707
29569 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
29570 " const char *root);\n"
29575 #: ../src/guestfs-actions.pod:3711
29577 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29578 "disk), then this returns true if the disk is a network installer, ie. not a "
29579 "self-contained install CD but one which is likely to require network access "
29580 "to complete the install."
29584 #: ../src/guestfs-actions.pod:3723
29585 msgid "guestfs_inspect_list_applications"
29589 #: ../src/guestfs-actions.pod:3725
29592 " struct guestfs_application_list *\n"
29593 " guestfs_inspect_list_applications (guestfs_h *g,\n"
29594 " const char *root);\n"
29599 #: ../src/guestfs-actions.pod:3731
29601 "I<Note:> This call works differently from other parts of the inspection "
29602 "API. You have to call C<guestfs_inspect_os>, then "
29603 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
29604 "this. Listing applications is a significantly more difficult operation "
29605 "which requires access to the full filesystem. Also note that unlike the "
29606 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
29607 "the libguestfs handle, this call actually reads parts of the mounted "
29608 "filesystems during the call."
29612 #: ../src/guestfs-actions.pod:3821
29614 "This function returns a C<struct guestfs_application_list *>, or NULL if "
29615 "there was an error. I<The caller must call C<guestfs_free_application_list> "
29620 #: ../src/guestfs-actions.pod:3825
29621 msgid "(Added in 1.7.8)"
29622 msgstr "(Додано у 1.7.8)"
29625 #: ../src/guestfs-actions.pod:3827
29626 msgid "guestfs_inspect_os"
29630 #: ../src/guestfs-actions.pod:3829
29634 " guestfs_inspect_os (guestfs_h *g);\n"
29639 #: ../src/guestfs-actions.pod:3845
29641 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
29642 "functions in order to query further information about each operating system, "
29643 "such as the name and version."
29647 #: ../src/guestfs-actions.pod:3850
29649 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
29650 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
29651 "the contents. This should be called with no disks currently mounted. The "
29652 "function may also use Augeas, so any existing Augeas handle will be closed."
29656 #: ../src/guestfs-actions.pod:3862 ../src/guestfs-actions.pod:4193
29657 #: ../src/guestfs-actions.pod:4275
29658 msgid "See also C<guestfs_list_filesystems>."
29662 #: ../src/guestfs-actions.pod:3870
29663 msgid "guestfs_is_blockdev"
29667 #: ../src/guestfs-actions.pod:3872
29671 " guestfs_is_blockdev (guestfs_h *g,\n"
29672 " const char *path);\n"
29677 #: ../src/guestfs-actions.pod:3879 ../src/guestfs-actions.pod:3908
29678 #: ../src/guestfs-actions.pod:3938 ../src/guestfs-actions.pod:3953
29679 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:4025
29680 #: ../src/guestfs-actions.pod:4040
29681 msgid "See also C<guestfs_stat>."
29685 #: ../src/guestfs-actions.pod:3883 ../src/guestfs-actions.pod:3912
29686 #: ../src/guestfs-actions.pod:3957 ../src/guestfs-actions.pod:4029
29687 #: ../src/guestfs-actions.pod:4044
29688 msgid "(Added in 1.5.10)"
29689 msgstr "(Додано у 1.5.10)"
29692 #: ../src/guestfs-actions.pod:3885
29693 msgid "guestfs_is_busy"
29697 #: ../src/guestfs-actions.pod:3887
29701 " guestfs_is_busy (guestfs_h *g);\n"
29706 #: ../src/guestfs-actions.pod:3899
29707 msgid "guestfs_is_chardev"
29711 #: ../src/guestfs-actions.pod:3901
29715 " guestfs_is_chardev (guestfs_h *g,\n"
29716 " const char *path);\n"
29721 #: ../src/guestfs-actions.pod:3914
29722 msgid "guestfs_is_config"
29726 #: ../src/guestfs-actions.pod:3916
29730 " guestfs_is_config (guestfs_h *g);\n"
29735 #: ../src/guestfs-actions.pod:3928
29736 msgid "guestfs_is_dir"
29740 #: ../src/guestfs-actions.pod:3930
29744 " guestfs_is_dir (guestfs_h *g,\n"
29745 " const char *path);\n"
29750 #: ../src/guestfs-actions.pod:3944
29751 msgid "guestfs_is_fifo"
29755 #: ../src/guestfs-actions.pod:3946
29759 " guestfs_is_fifo (guestfs_h *g,\n"
29760 " const char *path);\n"
29765 #: ../src/guestfs-actions.pod:3959
29766 msgid "guestfs_is_file"
29770 #: ../src/guestfs-actions.pod:3961
29774 " guestfs_is_file (guestfs_h *g,\n"
29775 " const char *path);\n"
29780 #: ../src/guestfs-actions.pod:3975
29781 msgid "guestfs_is_launching"
29785 #: ../src/guestfs-actions.pod:3977
29789 " guestfs_is_launching (guestfs_h *g);\n"
29794 #: ../src/guestfs-actions.pod:3989
29795 msgid "guestfs_is_lv"
29799 #: ../src/guestfs-actions.pod:3991
29803 " guestfs_is_lv (guestfs_h *g,\n"
29804 " const char *device);\n"
29809 #: ../src/guestfs-actions.pod:4002
29810 msgid "guestfs_is_ready"
29814 #: ../src/guestfs-actions.pod:4004
29818 " guestfs_is_ready (guestfs_h *g);\n"
29823 #: ../src/guestfs-actions.pod:4016
29824 msgid "guestfs_is_socket"
29828 #: ../src/guestfs-actions.pod:4018
29832 " guestfs_is_socket (guestfs_h *g,\n"
29833 " const char *path);\n"
29838 #: ../src/guestfs-actions.pod:4031
29839 msgid "guestfs_is_symlink"
29843 #: ../src/guestfs-actions.pod:4033
29847 " guestfs_is_symlink (guestfs_h *g,\n"
29848 " const char *path);\n"
29853 #: ../src/guestfs-actions.pod:4046
29854 msgid "guestfs_is_zero"
29858 #: ../src/guestfs-actions.pod:4048
29862 " guestfs_is_zero (guestfs_h *g,\n"
29863 " const char *path);\n"
29868 #: ../src/guestfs-actions.pod:4057 ../src/guestfs-actions.pod:4071
29869 msgid "(Added in 1.11.8)"
29870 msgstr "(Додано у 1.11.8)"
29873 #: ../src/guestfs-actions.pod:4059
29874 msgid "guestfs_is_zero_device"
29878 #: ../src/guestfs-actions.pod:4061
29882 " guestfs_is_zero_device (guestfs_h *g,\n"
29883 " const char *device);\n"
29888 #: ../src/guestfs-actions.pod:4073
29889 msgid "guestfs_kill_subprocess"
29893 #: ../src/guestfs-actions.pod:4075
29897 " guestfs_kill_subprocess (guestfs_h *g);\n"
29902 #: ../src/guestfs-actions.pod:4084
29903 msgid "guestfs_launch"
29907 #: ../src/guestfs-actions.pod:4086
29911 " guestfs_launch (guestfs_h *g);\n"
29916 #: ../src/guestfs-actions.pod:4104
29917 msgid "guestfs_lchown"
29921 #: ../src/guestfs-actions.pod:4106
29925 " guestfs_lchown (guestfs_h *g,\n"
29928 " const char *path);\n"
29933 #: ../src/guestfs-actions.pod:4112
29935 "Change the file owner to C<owner> and group to C<group>. This is like "
29936 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29937 "changed, not the target."
29941 #: ../src/guestfs-actions.pod:4124
29942 msgid "guestfs_lgetxattr"
29946 #: ../src/guestfs-actions.pod:4126
29950 " guestfs_lgetxattr (guestfs_h *g,\n"
29951 " const char *path,\n"
29952 " const char *name,\n"
29953 " size_t *size_r);\n"
29958 #: ../src/guestfs-actions.pod:4146
29959 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29963 #: ../src/guestfs-actions.pod:4154
29964 msgid "guestfs_lgetxattrs"
29968 #: ../src/guestfs-actions.pod:4156
29971 " struct guestfs_xattr_list *\n"
29972 " guestfs_lgetxattrs (guestfs_h *g,\n"
29973 " const char *path);\n"
29978 #: ../src/guestfs-actions.pod:4160
29980 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29981 "then it returns the extended attributes of the link itself."
29985 #: ../src/guestfs-actions.pod:4170
29986 msgid "guestfs_list_9p"
29990 #: ../src/guestfs-actions.pod:4172
29994 " guestfs_list_9p (guestfs_h *g);\n"
29999 #: ../src/guestfs-actions.pod:4184
30000 msgid "guestfs_list_devices"
30004 #: ../src/guestfs-actions.pod:4186
30008 " guestfs_list_devices (guestfs_h *g);\n"
30013 #: ../src/guestfs-actions.pod:4201
30014 msgid "guestfs_list_dm_devices"
30018 #: ../src/guestfs-actions.pod:4203
30022 " guestfs_list_dm_devices (guestfs_h *g);\n"
30027 #: ../src/guestfs-actions.pod:4208
30029 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
30030 "previous call to C<guestfs_luks_open>."
30034 #: ../src/guestfs-actions.pod:4211
30036 "Device mapper devices which correspond to logical volumes are I<not> "
30037 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
30042 #: ../src/guestfs-actions.pod:4219 ../src/guestfs-actions.pod:5665
30043 msgid "(Added in 1.11.15)"
30044 msgstr "(Додано у 1.11.15)"
30047 #: ../src/guestfs-actions.pod:4221
30048 msgid "guestfs_list_filesystems"
30052 #: ../src/guestfs-actions.pod:4223
30056 " guestfs_list_filesystems (guestfs_h *g);\n"
30061 #: ../src/guestfs-actions.pod:4243
30063 "This command runs other libguestfs commands, which might include "
30064 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
30065 "soon after launch and only when nothing is mounted."
30069 #: ../src/guestfs-actions.pod:4247
30071 "Not all of the filesystems returned will be mountable. In particular, swap "
30072 "partitions are returned in the list. Also this command does not check that "
30073 "each filesystem found is valid and mountable, and some filesystems might be "
30074 "mountable but require special options. Filesystems may not all belong to a "
30075 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
30079 #: ../src/guestfs-actions.pod:4261 ../src/guestfs-actions.pod:6028
30080 msgid "(Added in 1.5.15)"
30081 msgstr "(Додано у 1.5.15)"
30084 #: ../src/guestfs-actions.pod:4263
30085 msgid "guestfs_list_partitions"
30086 msgstr "guestfs_list_partitions"
30089 #: ../src/guestfs-actions.pod:4265
30093 " guestfs_list_partitions (guestfs_h *g);\n"
30097 " guestfs_list_partitions (guestfs_h *g);\n"
30101 #: ../src/guestfs-actions.pod:4272
30103 "This does not return logical volumes. For that you will need to call "
30108 #: ../src/guestfs-actions.pod:4283
30110 msgstr "guestfs_ll"
30113 #: ../src/guestfs-actions.pod:4285
30117 " guestfs_ll (guestfs_h *g,\n"
30118 " const char *directory);\n"
30122 " guestfs_ll (guestfs_h *g,\n"
30123 " const char *directory);\n"
30127 #: ../src/guestfs-actions.pod:4300
30129 msgstr "guestfs_ln"
30132 #: ../src/guestfs-actions.pod:4302
30136 " guestfs_ln (guestfs_h *g,\n"
30137 " const char *target,\n"
30138 " const char *linkname);\n"
30142 " guestfs_ln (guestfs_h *g,\n"
30143 " const char *target,\n"
30144 " const char *linkname);\n"
30148 #: ../src/guestfs-actions.pod:4313
30149 msgid "guestfs_ln_f"
30150 msgstr "guestfs_ln_f"
30153 #: ../src/guestfs-actions.pod:4315
30157 " guestfs_ln_f (guestfs_h *g,\n"
30158 " const char *target,\n"
30159 " const char *linkname);\n"
30163 " guestfs_ln_f (guestfs_h *g,\n"
30164 " const char *target,\n"
30165 " const char *linkname);\n"
30169 #: ../src/guestfs-actions.pod:4327
30170 msgid "guestfs_ln_s"
30171 msgstr "guestfs_ln_s"
30174 #: ../src/guestfs-actions.pod:4329
30178 " guestfs_ln_s (guestfs_h *g,\n"
30179 " const char *target,\n"
30180 " const char *linkname);\n"
30184 " guestfs_ln_s (guestfs_h *g,\n"
30185 " const char *target,\n"
30186 " const char *linkname);\n"
30190 #: ../src/guestfs-actions.pod:4340
30191 msgid "guestfs_ln_sf"
30192 msgstr "guestfs_ln_sf"
30195 #: ../src/guestfs-actions.pod:4342
30199 " guestfs_ln_sf (guestfs_h *g,\n"
30200 " const char *target,\n"
30201 " const char *linkname);\n"
30205 " guestfs_ln_sf (guestfs_h *g,\n"
30206 " const char *target,\n"
30207 " const char *linkname);\n"
30211 #: ../src/guestfs-actions.pod:4354
30212 msgid "guestfs_lremovexattr"
30213 msgstr "guestfs_lremovexattr"
30216 #: ../src/guestfs-actions.pod:4356
30220 " guestfs_lremovexattr (guestfs_h *g,\n"
30221 " const char *xattr,\n"
30222 " const char *path);\n"
30226 " guestfs_lremovexattr (guestfs_h *g,\n"
30227 " const char *xattr,\n"
30228 " const char *path);\n"
30232 #: ../src/guestfs-actions.pod:4361
30234 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
30235 "link, then it removes an extended attribute of the link itself."
30239 #: ../src/guestfs-actions.pod:4369
30241 msgstr "guestfs_ls"
30244 #: ../src/guestfs-actions.pod:4371
30248 " guestfs_ls (guestfs_h *g,\n"
30249 " const char *directory);\n"
30253 " guestfs_ls (guestfs_h *g,\n"
30254 " const char *directory);\n"
30258 #: ../src/guestfs-actions.pod:4379
30260 "This command is mostly useful for interactive sessions. Programs should "
30261 "probably use C<guestfs_readdir> instead."
30265 #: ../src/guestfs-actions.pod:4388
30266 msgid "guestfs_lsetxattr"
30267 msgstr "guestfs_lsetxattr"
30270 #: ../src/guestfs-actions.pod:4390
30274 " guestfs_lsetxattr (guestfs_h *g,\n"
30275 " const char *xattr,\n"
30276 " const char *val,\n"
30278 " const char *path);\n"
30282 " guestfs_lsetxattr (guestfs_h *g,\n"
30283 " const char *xattr,\n"
30284 " const char *val,\n"
30286 " const char *path);\n"
30290 #: ../src/guestfs-actions.pod:4397
30292 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
30293 "then it sets an extended attribute of the link itself."
30297 #: ../src/guestfs-actions.pod:4405
30298 msgid "guestfs_lstat"
30299 msgstr "guestfs_lstat"
30302 #: ../src/guestfs-actions.pod:4407
30305 " struct guestfs_stat *\n"
30306 " guestfs_lstat (guestfs_h *g,\n"
30307 " const char *path);\n"
30310 " struct guestfs_stat *\n"
30311 " guestfs_lstat (guestfs_h *g,\n"
30312 " const char *path);\n"
30316 #: ../src/guestfs-actions.pod:4413
30318 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
30319 "link, then the link is stat-ed, not the file it refers to."
30323 #: ../src/guestfs-actions.pod:4419 ../src/guestfs-actions.pod:7218
30325 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
30326 "error. I<The caller must call C<guestfs_free_stat> after use>."
30330 #: ../src/guestfs-actions.pod:4423 ../src/guestfs-actions.pod:7222
30331 #: ../src/guestfs-actions.pod:7240 ../src/guestfs-actions.pod:7621
30332 msgid "(Added in 0.9.2)"
30333 msgstr "(Додано у 0.9.2)"
30336 #: ../src/guestfs-actions.pod:4425
30337 msgid "guestfs_lstatlist"
30338 msgstr "guestfs_lstatlist"
30341 #: ../src/guestfs-actions.pod:4427
30344 " struct guestfs_stat_list *\n"
30345 " guestfs_lstatlist (guestfs_h *g,\n"
30346 " const char *path,\n"
30347 " char *const *names);\n"
30350 " struct guestfs_stat_list *\n"
30351 " guestfs_lstatlist (guestfs_h *g,\n"
30352 " const char *path,\n"
30353 " char *const *names);\n"
30357 #: ../src/guestfs-actions.pod:4432
30359 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
30360 "files, where all files are in the directory C<path>. C<names> is the list "
30361 "of files from this directory."
30365 #: ../src/guestfs-actions.pod:4441
30367 "This call is intended for programs that want to efficiently list a directory "
30368 "contents without making many round-trips. See also C<guestfs_lxattrlist> "
30369 "for a similarly efficient call for getting extended attributes. Very long "
30370 "directory listings might cause the protocol message size to be exceeded, "
30371 "causing this call to fail. The caller must split up such requests into "
30372 "smaller groups of names."
30376 #: ../src/guestfs-actions.pod:4449
30378 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
30379 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
30383 #: ../src/guestfs-actions.pod:4455
30384 msgid "guestfs_luks_add_key"
30385 msgstr "guestfs_luks_add_key"
30388 #: ../src/guestfs-actions.pod:4457
30392 " guestfs_luks_add_key (guestfs_h *g,\n"
30393 " const char *device,\n"
30394 " const char *key,\n"
30395 " const char *newkey,\n"
30400 " guestfs_luks_add_key (guestfs_h *g,\n"
30401 " const char *device,\n"
30402 " const char *key,\n"
30403 " const char *newkey,\n"
30408 #: ../src/guestfs-actions.pod:4469
30410 "Note that if C<keyslot> already contains a key, then this command will "
30411 "fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
30415 #: ../src/guestfs-actions.pod:4475 ../src/guestfs-actions.pod:4515
30416 #: ../src/guestfs-actions.pod:4538 ../src/guestfs-actions.pod:4558
30417 #: ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4612
30419 "This function takes a key or passphrase parameter which could contain "
30420 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
30425 #: ../src/guestfs-actions.pod:4479 ../src/guestfs-actions.pod:4519
30426 #: ../src/guestfs-actions.pod:4542 ../src/guestfs-actions.pod:4562
30427 msgid "(Added in 1.5.2)"
30428 msgstr "(Додано у 1.5.2)"
30431 #: ../src/guestfs-actions.pod:4481
30432 msgid "guestfs_luks_close"
30433 msgstr "guestfs_luks_close"
30436 #: ../src/guestfs-actions.pod:4483
30440 " guestfs_luks_close (guestfs_h *g,\n"
30441 " const char *device);\n"
30445 " guestfs_luks_close (guestfs_h *g,\n"
30446 " const char *device);\n"
30450 #: ../src/guestfs-actions.pod:4487
30452 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
30453 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
30454 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
30455 "underlying block device."
30459 #: ../src/guestfs-actions.pod:4495 ../src/guestfs-actions.pod:4597
30460 #: ../src/guestfs-actions.pod:4616 ../src/guestfs-actions.pod:4666
30461 #: ../src/guestfs-actions.pod:4714
30462 msgid "(Added in 1.5.1)"
30463 msgstr "(Додано у 1.5.1)"
30466 #: ../src/guestfs-actions.pod:4497
30467 msgid "guestfs_luks_format"
30468 msgstr "guestfs_luks_format"
30471 #: ../src/guestfs-actions.pod:4499
30475 " guestfs_luks_format (guestfs_h *g,\n"
30476 " const char *device,\n"
30477 " const char *key,\n"
30482 " guestfs_luks_format (guestfs_h *g,\n"
30483 " const char *device,\n"
30484 " const char *key,\n"
30489 #: ../src/guestfs-actions.pod:4521
30490 msgid "guestfs_luks_format_cipher"
30491 msgstr "guestfs_luks_format_cipher"
30494 #: ../src/guestfs-actions.pod:4523
30498 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30499 " const char *device,\n"
30500 " const char *key,\n"
30502 " const char *cipher);\n"
30506 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30507 " const char *device,\n"
30508 " const char *key,\n"
30510 " const char *cipher);\n"
30514 #: ../src/guestfs-actions.pod:4530
30516 "This command is the same as C<guestfs_luks_format> but it also allows you to "
30517 "set the C<cipher> used."
30521 #: ../src/guestfs-actions.pod:4544
30522 msgid "guestfs_luks_kill_slot"
30523 msgstr "guestfs_luks_kill_slot"
30526 #: ../src/guestfs-actions.pod:4546
30530 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30531 " const char *device,\n"
30532 " const char *key,\n"
30537 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30538 " const char *device,\n"
30539 " const char *key,\n"
30544 #: ../src/guestfs-actions.pod:4564
30545 msgid "guestfs_luks_open"
30546 msgstr "guestfs_luks_open"
30549 #: ../src/guestfs-actions.pod:4566
30553 " guestfs_luks_open (guestfs_h *g,\n"
30554 " const char *device,\n"
30555 " const char *key,\n"
30556 " const char *mapname);\n"
30560 " guestfs_luks_open (guestfs_h *g,\n"
30561 " const char *device,\n"
30562 " const char *key,\n"
30563 " const char *mapname);\n"
30567 #: ../src/guestfs-actions.pod:4584
30569 "If this block device contains LVM volume groups, then calling "
30570 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
30575 #: ../src/guestfs-actions.pod:4588
30576 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
30580 #: ../src/guestfs-actions.pod:4599
30581 msgid "guestfs_luks_open_ro"
30582 msgstr "guestfs_luks_open_ro"
30585 #: ../src/guestfs-actions.pod:4601
30589 " guestfs_luks_open_ro (guestfs_h *g,\n"
30590 " const char *device,\n"
30591 " const char *key,\n"
30592 " const char *mapname);\n"
30596 " guestfs_luks_open_ro (guestfs_h *g,\n"
30597 " const char *device,\n"
30598 " const char *key,\n"
30599 " const char *mapname);\n"
30603 #: ../src/guestfs-actions.pod:4607
30605 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
30610 #: ../src/guestfs-actions.pod:4618
30611 msgid "guestfs_lvcreate"
30612 msgstr "guestfs_lvcreate"
30615 #: ../src/guestfs-actions.pod:4620
30619 " guestfs_lvcreate (guestfs_h *g,\n"
30620 " const char *logvol,\n"
30621 " const char *volgroup,\n"
30626 " guestfs_lvcreate (guestfs_h *g,\n"
30627 " const char *logvol,\n"
30628 " const char *volgroup,\n"
30633 #: ../src/guestfs-actions.pod:4633
30634 msgid "guestfs_lvm_canonical_lv_name"
30635 msgstr "guestfs_lvm_canonical_lv_name"
30638 #: ../src/guestfs-actions.pod:4635
30642 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30643 " const char *lvname);\n"
30647 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30648 " const char *lvname);\n"
30652 #: ../src/guestfs-actions.pod:4646
30653 msgid "See also C<guestfs_is_lv>."
30657 #: ../src/guestfs-actions.pod:4651
30658 msgid "(Added in 1.5.24)"
30659 msgstr "(Додано у 1.5.24)"
30662 #: ../src/guestfs-actions.pod:4653
30663 msgid "guestfs_lvm_clear_filter"
30664 msgstr "guestfs_lvm_clear_filter"
30667 #: ../src/guestfs-actions.pod:4655
30671 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30675 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30679 #: ../src/guestfs-actions.pod:4658
30681 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
30682 "see every block device."
30686 #: ../src/guestfs-actions.pod:4668
30687 msgid "guestfs_lvm_remove_all"
30688 msgstr "guestfs_lvm_remove_all"
30691 #: ../src/guestfs-actions.pod:4670
30695 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30699 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30703 #: ../src/guestfs-actions.pod:4683
30704 msgid "guestfs_lvm_set_filter"
30705 msgstr "guestfs_lvm_set_filter"
30708 #: ../src/guestfs-actions.pod:4685
30712 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30713 " char *const *devices);\n"
30717 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30718 " char *const *devices);\n"
30722 #: ../src/guestfs-actions.pod:4716
30723 msgid "guestfs_lvremove"
30724 msgstr "guestfs_lvremove"
30727 #: ../src/guestfs-actions.pod:4718
30731 " guestfs_lvremove (guestfs_h *g,\n"
30732 " const char *device);\n"
30736 " guestfs_lvremove (guestfs_h *g,\n"
30737 " const char *device);\n"
30741 #: ../src/guestfs-actions.pod:4730 ../src/guestfs-actions.pod:6141
30742 #: ../src/guestfs-actions.pod:7991
30743 msgid "(Added in 1.0.13)"
30744 msgstr "(Додано у 1.0.13)"
30747 #: ../src/guestfs-actions.pod:4732
30748 msgid "guestfs_lvrename"
30749 msgstr "guestfs_lvrename"
30752 #: ../src/guestfs-actions.pod:4734
30756 " guestfs_lvrename (guestfs_h *g,\n"
30757 " const char *logvol,\n"
30758 " const char *newlogvol);\n"
30762 " guestfs_lvrename (guestfs_h *g,\n"
30763 " const char *logvol,\n"
30764 " const char *newlogvol);\n"
30768 #: ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:8004
30769 msgid "(Added in 1.0.83)"
30770 msgstr "(Додано у 1.0.83)"
30773 #: ../src/guestfs-actions.pod:4745
30774 msgid "guestfs_lvresize"
30775 msgstr "guestfs_lvresize"
30778 #: ../src/guestfs-actions.pod:4747
30782 " guestfs_lvresize (guestfs_h *g,\n"
30783 " const char *device,\n"
30788 " guestfs_lvresize (guestfs_h *g,\n"
30789 " const char *device,\n"
30794 #: ../src/guestfs-actions.pod:4760
30795 msgid "guestfs_lvresize_free"
30796 msgstr "guestfs_lvresize_free"
30799 #: ../src/guestfs-actions.pod:4762
30803 " guestfs_lvresize_free (guestfs_h *g,\n"
30804 " const char *lv,\n"
30809 " guestfs_lvresize_free (guestfs_h *g,\n"
30810 " const char *lv,\n"
30815 #: ../src/guestfs-actions.pod:4775
30816 msgid "(Added in 1.3.3)"
30817 msgstr "(Додано у 1.3.3)"
30820 #: ../src/guestfs-actions.pod:4777
30821 msgid "guestfs_lvs"
30822 msgstr "guestfs_lvs"
30825 #: ../src/guestfs-actions.pod:4779
30829 " guestfs_lvs (guestfs_h *g);\n"
30833 " guestfs_lvs (guestfs_h *g);\n"
30837 #: ../src/guestfs-actions.pod:4788
30838 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
30842 #: ../src/guestfs-actions.pod:4796
30843 msgid "guestfs_lvs_full"
30844 msgstr "guestfs_lvs_full"
30847 #: ../src/guestfs-actions.pod:4798
30850 " struct guestfs_lvm_lv_list *\n"
30851 " guestfs_lvs_full (guestfs_h *g);\n"
30854 " struct guestfs_lvm_lv_list *\n"
30855 " guestfs_lvs_full (guestfs_h *g);\n"
30859 #: ../src/guestfs-actions.pod:4804
30861 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
30862 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
30866 #: ../src/guestfs-actions.pod:4810
30867 msgid "guestfs_lvuuid"
30868 msgstr "guestfs_lvuuid"
30871 #: ../src/guestfs-actions.pod:4812
30875 " guestfs_lvuuid (guestfs_h *g,\n"
30876 " const char *device);\n"
30880 " guestfs_lvuuid (guestfs_h *g,\n"
30881 " const char *device);\n"
30885 #: ../src/guestfs-actions.pod:4823
30886 msgid "guestfs_lxattrlist"
30887 msgstr "guestfs_lxattrlist"
30890 #: ../src/guestfs-actions.pod:4825
30893 " struct guestfs_xattr_list *\n"
30894 " guestfs_lxattrlist (guestfs_h *g,\n"
30895 " const char *path,\n"
30896 " char *const *names);\n"
30899 " struct guestfs_xattr_list *\n"
30900 " guestfs_lxattrlist (guestfs_h *g,\n"
30901 " const char *path,\n"
30902 " char *const *names);\n"
30906 #: ../src/guestfs-actions.pod:4844
30908 "This call is intended for programs that want to efficiently list a directory "
30909 "contents without making many round-trips. See also C<guestfs_lstatlist> for "
30910 "a similarly efficient call for getting standard stats. Very long directory "
30911 "listings might cause the protocol message size to be exceeded, causing this "
30912 "call to fail. The caller must split up such requests into smaller groups of "
30917 #: ../src/guestfs-actions.pod:4858
30918 msgid "guestfs_mkdir"
30919 msgstr "guestfs_mkdir"
30922 #: ../src/guestfs-actions.pod:4860
30926 " guestfs_mkdir (guestfs_h *g,\n"
30927 " const char *path);\n"
30931 " guestfs_mkdir (guestfs_h *g,\n"
30932 " const char *path);\n"
30936 #: ../src/guestfs-actions.pod:4870
30937 msgid "guestfs_mkdir_mode"
30938 msgstr "guestfs_mkdir_mode"
30941 #: ../src/guestfs-actions.pod:4872
30945 " guestfs_mkdir_mode (guestfs_h *g,\n"
30946 " const char *path,\n"
30951 " guestfs_mkdir_mode (guestfs_h *g,\n"
30952 " const char *path,\n"
30957 #: ../src/guestfs-actions.pod:4884
30958 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30962 #: ../src/guestfs-actions.pod:4890
30963 msgid "guestfs_mkdir_p"
30964 msgstr "guestfs_mkdir_p"
30967 #: ../src/guestfs-actions.pod:4892
30971 " guestfs_mkdir_p (guestfs_h *g,\n"
30972 " const char *path);\n"
30976 " guestfs_mkdir_p (guestfs_h *g,\n"
30977 " const char *path);\n"
30981 #: ../src/guestfs-actions.pod:4903
30982 msgid "guestfs_mkdtemp"
30983 msgstr "guestfs_mkdtemp"
30986 #: ../src/guestfs-actions.pod:4905
30990 " guestfs_mkdtemp (guestfs_h *g,\n"
30991 " const char *template);\n"
30995 " guestfs_mkdtemp (guestfs_h *g,\n"
30996 " const char *template);\n"
31000 #: ../src/guestfs-actions.pod:4933
31001 msgid "guestfs_mke2fs_J"
31002 msgstr "guestfs_mke2fs_J"
31005 #: ../src/guestfs-actions.pod:4935
31009 " guestfs_mke2fs_J (guestfs_h *g,\n"
31010 " const char *fstype,\n"
31011 " int blocksize,\n"
31012 " const char *device,\n"
31013 " const char *journal);\n"
31017 " guestfs_mke2fs_J (guestfs_h *g,\n"
31018 " const char *fstype,\n"
31019 " int blocksize,\n"
31020 " const char *device,\n"
31021 " const char *journal);\n"
31025 #: ../src/guestfs-actions.pod:4948
31026 msgid "See also C<guestfs_mke2journal>."
31030 #: ../src/guestfs-actions.pod:4952 ../src/guestfs-actions.pod:4970
31031 #: ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5004
31032 #: ../src/guestfs-actions.pod:5018 ../src/guestfs-actions.pod:5032
31033 #: ../src/guestfs-actions.pod:5091 ../src/guestfs-actions.pod:5368
31034 msgid "(Added in 1.0.68)"
31035 msgstr "(Додано у 1.0.68)"
31038 #: ../src/guestfs-actions.pod:4954
31039 msgid "guestfs_mke2fs_JL"
31040 msgstr "guestfs_mke2fs_JL"
31043 #: ../src/guestfs-actions.pod:4956
31047 " guestfs_mke2fs_JL (guestfs_h *g,\n"
31048 " const char *fstype,\n"
31049 " int blocksize,\n"
31050 " const char *device,\n"
31051 " const char *label);\n"
31055 " guestfs_mke2fs_JL (guestfs_h *g,\n"
31056 " const char *fstype,\n"
31057 " int blocksize,\n"
31058 " const char *device,\n"
31059 " const char *label);\n"
31063 #: ../src/guestfs-actions.pod:4966
31064 msgid "See also C<guestfs_mke2journal_L>."
31068 #: ../src/guestfs-actions.pod:4972
31069 msgid "guestfs_mke2fs_JU"
31070 msgstr "guestfs_mke2fs_JU"
31073 #: ../src/guestfs-actions.pod:4974
31077 " guestfs_mke2fs_JU (guestfs_h *g,\n"
31078 " const char *fstype,\n"
31079 " int blocksize,\n"
31080 " const char *device,\n"
31081 " const char *uuid);\n"
31085 " guestfs_mke2fs_JU (guestfs_h *g,\n"
31086 " const char *fstype,\n"
31087 " int blocksize,\n"
31088 " const char *device,\n"
31089 " const char *uuid);\n"
31093 #: ../src/guestfs-actions.pod:4984
31094 msgid "See also C<guestfs_mke2journal_U>."
31098 #: ../src/guestfs-actions.pod:4990
31099 msgid "guestfs_mke2journal"
31100 msgstr "guestfs_mke2journal"
31103 #: ../src/guestfs-actions.pod:4992
31107 " guestfs_mke2journal (guestfs_h *g,\n"
31108 " int blocksize,\n"
31109 " const char *device);\n"
31113 " guestfs_mke2journal (guestfs_h *g,\n"
31114 " int blocksize,\n"
31115 " const char *device);\n"
31119 #: ../src/guestfs-actions.pod:5006
31120 msgid "guestfs_mke2journal_L"
31121 msgstr "guestfs_mke2journal_L"
31124 #: ../src/guestfs-actions.pod:5008
31128 " guestfs_mke2journal_L (guestfs_h *g,\n"
31129 " int blocksize,\n"
31130 " const char *label,\n"
31131 " const char *device);\n"
31135 " guestfs_mke2journal_L (guestfs_h *g,\n"
31136 " int blocksize,\n"
31137 " const char *label,\n"
31138 " const char *device);\n"
31142 #: ../src/guestfs-actions.pod:5020
31143 msgid "guestfs_mke2journal_U"
31144 msgstr "guestfs_mke2journal_U"
31147 #: ../src/guestfs-actions.pod:5022
31151 " guestfs_mke2journal_U (guestfs_h *g,\n"
31152 " int blocksize,\n"
31153 " const char *uuid,\n"
31154 " const char *device);\n"
31158 " guestfs_mke2journal_U (guestfs_h *g,\n"
31159 " int blocksize,\n"
31160 " const char *uuid,\n"
31161 " const char *device);\n"
31165 #: ../src/guestfs-actions.pod:5034
31166 msgid "guestfs_mkfifo"
31167 msgstr "guestfs_mkfifo"
31170 #: ../src/guestfs-actions.pod:5036
31174 " guestfs_mkfifo (guestfs_h *g,\n"
31176 " const char *path);\n"
31180 " guestfs_mkfifo (guestfs_h *g,\n"
31182 " const char *path);\n"
31186 #: ../src/guestfs-actions.pod:5041
31188 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
31189 "is just a convenient wrapper around C<guestfs_mknod>."
31193 #: ../src/guestfs-actions.pod:5051
31194 msgid "guestfs_mkfs"
31195 msgstr "guestfs_mkfs"
31198 #: ../src/guestfs-actions.pod:5053
31202 " guestfs_mkfs (guestfs_h *g,\n"
31203 " const char *fstype,\n"
31204 " const char *device);\n"
31208 " guestfs_mkfs (guestfs_h *g,\n"
31209 " const char *fstype,\n"
31210 " const char *device);\n"
31214 #: ../src/guestfs-actions.pod:5066
31215 msgid "guestfs_mkfs_b"
31216 msgstr "guestfs_mkfs_b"
31219 #: ../src/guestfs-actions.pod:5068
31223 " guestfs_mkfs_b (guestfs_h *g,\n"
31224 " const char *fstype,\n"
31225 " int blocksize,\n"
31226 " const char *device);\n"
31230 " guestfs_mkfs_b (guestfs_h *g,\n"
31231 " const char *fstype,\n"
31232 " int blocksize,\n"
31233 " const char *device);\n"
31237 #: ../src/guestfs-actions.pod:5074
31239 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
31244 #: ../src/guestfs-actions.pod:5081
31246 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
31247 "block size of the resulting filesystem. Supported block sizes depend on the "
31248 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
31252 #: ../src/guestfs-actions.pod:5093
31253 msgid "guestfs_mkfs_opts"
31254 msgstr "guestfs_mkfs_opts"
31257 #: ../src/guestfs-actions.pod:5095
31261 " guestfs_mkfs_opts (guestfs_h *g,\n"
31262 " const char *fstype,\n"
31263 " const char *device,\n"
31268 " guestfs_mkfs_opts (guestfs_h *g,\n"
31269 " const char *fstype,\n"
31270 " const char *device,\n"
31275 #: ../src/guestfs-actions.pod:5106
31278 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
31279 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
31280 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
31281 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
31286 #: ../src/guestfs-actions.pod:5154
31287 msgid "(Added in 1.7.19)"
31288 msgstr "(Додано у 1.7.19)"
31291 #: ../src/guestfs-actions.pod:5156
31292 msgid "guestfs_mkfs_opts_va"
31293 msgstr "guestfs_mkfs_opts_va"
31296 #: ../src/guestfs-actions.pod:5158
31300 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31301 " const char *fstype,\n"
31302 " const char *device,\n"
31303 " va_list args);\n"
31307 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31308 " const char *fstype,\n"
31309 " const char *device,\n"
31310 " va_list args);\n"
31314 #: ../src/guestfs-actions.pod:5164
31315 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
31319 #: ../src/guestfs-actions.pod:5168
31320 msgid "guestfs_mkfs_opts_argv"
31321 msgstr "guestfs_mkfs_opts_argv"
31324 #: ../src/guestfs-actions.pod:5170
31328 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31329 " const char *fstype,\n"
31330 " const char *device,\n"
31331 " const struct guestfs_mkfs_opts_argv *optargs);\n"
31335 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31336 " const char *fstype,\n"
31337 " const char *device,\n"
31338 " const struct guestfs_mkfs_opts_argv *optargs);\n"
31342 #: ../src/guestfs-actions.pod:5176
31343 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
31347 #: ../src/guestfs-actions.pod:5180
31348 msgid "guestfs_mkmountpoint"
31349 msgstr "guestfs_mkmountpoint"
31352 #: ../src/guestfs-actions.pod:5182
31356 " guestfs_mkmountpoint (guestfs_h *g,\n"
31357 " const char *exemptpath);\n"
31361 " guestfs_mkmountpoint (guestfs_h *g,\n"
31362 " const char *exemptpath);\n"
31366 #: ../src/guestfs-actions.pod:5186
31368 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
31369 "that can be used to create extra mountpoints before mounting the first "
31374 #: ../src/guestfs-actions.pod:5210
31376 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
31377 "may get unexpected errors if you try to mix these calls. It is safest to "
31378 "manually unmount filesystems and remove mountpoints after use."
31382 #: ../src/guestfs-actions.pod:5214
31384 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
31385 "first, so for this to work for manual mountpoints, you must ensure that the "
31386 "innermost mountpoints have the longest pathnames, as in the example code "
31391 #: ../src/guestfs-actions.pod:5221
31393 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
31394 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
31395 "can also trigger these issues."
31399 #: ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:5533
31400 #: ../src/guestfs-actions.pod:6561
31401 msgid "(Added in 1.0.62)"
31402 msgstr "(Додано у 1.0.62)"
31405 #: ../src/guestfs-actions.pod:5229
31406 msgid "guestfs_mknod"
31410 #: ../src/guestfs-actions.pod:5231
31414 " guestfs_mknod (guestfs_h *g,\n"
31418 " const char *path);\n"
31423 #: ../src/guestfs-actions.pod:5246
31425 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
31426 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
31427 "regular file). These constants are available in the standard Linux header "
31428 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
31429 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
31430 "the appropriate constant for you."
31434 #: ../src/guestfs-actions.pod:5260
31435 msgid "guestfs_mknod_b"
31439 #: ../src/guestfs-actions.pod:5262
31443 " guestfs_mknod_b (guestfs_h *g,\n"
31447 " const char *path);\n"
31452 #: ../src/guestfs-actions.pod:5269
31454 "This call creates a block device node called C<path> with mode C<mode> and "
31455 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
31456 "wrapper around C<guestfs_mknod>."
31460 #: ../src/guestfs-actions.pod:5279
31461 msgid "guestfs_mknod_c"
31465 #: ../src/guestfs-actions.pod:5281
31469 " guestfs_mknod_c (guestfs_h *g,\n"
31473 " const char *path);\n"
31478 #: ../src/guestfs-actions.pod:5288
31480 "This call creates a char device node called C<path> with mode C<mode> and "
31481 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
31482 "wrapper around C<guestfs_mknod>."
31486 #: ../src/guestfs-actions.pod:5298
31487 msgid "guestfs_mkswap"
31491 #: ../src/guestfs-actions.pod:5300
31495 " guestfs_mkswap (guestfs_h *g,\n"
31496 " const char *device);\n"
31501 #: ../src/guestfs-actions.pod:5310
31502 msgid "guestfs_mkswap_L"
31506 #: ../src/guestfs-actions.pod:5312
31510 " guestfs_mkswap_L (guestfs_h *g,\n"
31511 " const char *label,\n"
31512 " const char *device);\n"
31517 #: ../src/guestfs-actions.pod:5327
31518 msgid "guestfs_mkswap_U"
31522 #: ../src/guestfs-actions.pod:5329
31526 " guestfs_mkswap_U (guestfs_h *g,\n"
31527 " const char *uuid,\n"
31528 " const char *device);\n"
31533 #: ../src/guestfs-actions.pod:5340
31534 msgid "guestfs_mkswap_file"
31538 #: ../src/guestfs-actions.pod:5342
31542 " guestfs_mkswap_file (guestfs_h *g,\n"
31543 " const char *path);\n"
31548 #: ../src/guestfs-actions.pod:5348
31550 "This command just writes a swap file signature to an existing file. To "
31551 "create the file itself, use something like C<guestfs_fallocate>."
31555 #: ../src/guestfs-actions.pod:5355
31556 msgid "guestfs_modprobe"
31560 #: ../src/guestfs-actions.pod:5357
31564 " guestfs_modprobe (guestfs_h *g,\n"
31565 " const char *modulename);\n"
31570 #: ../src/guestfs-actions.pod:5370
31571 msgid "guestfs_mount"
31575 #: ../src/guestfs-actions.pod:5372
31579 " guestfs_mount (guestfs_h *g,\n"
31580 " const char *device,\n"
31581 " const char *mountpoint);\n"
31586 #: ../src/guestfs-actions.pod:5391
31588 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
31589 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
31590 "problems for users. If your program might need to work with older versions "
31591 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
31592 "for the first parameter if you don't want any options)."
31596 #: ../src/guestfs-actions.pod:5402
31597 msgid "guestfs_mount_9p"
31601 #: ../src/guestfs-actions.pod:5404
31605 " guestfs_mount_9p (guestfs_h *g,\n"
31606 " const char *mounttag,\n"
31607 " const char *mountpoint,\n"
31613 #: ../src/guestfs-actions.pod:5415
31616 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
31621 #: ../src/guestfs-actions.pod:5428
31622 msgid "guestfs_mount_9p_va"
31626 #: ../src/guestfs-actions.pod:5430
31630 " guestfs_mount_9p_va (guestfs_h *g,\n"
31631 " const char *mounttag,\n"
31632 " const char *mountpoint,\n"
31633 " va_list args);\n"
31638 #: ../src/guestfs-actions.pod:5436
31639 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
31643 #: ../src/guestfs-actions.pod:5440
31644 msgid "guestfs_mount_9p_argv"
31648 #: ../src/guestfs-actions.pod:5442
31652 " guestfs_mount_9p_argv (guestfs_h *g,\n"
31653 " const char *mounttag,\n"
31654 " const char *mountpoint,\n"
31655 " const struct guestfs_mount_9p_argv *optargs);\n"
31660 #: ../src/guestfs-actions.pod:5448
31661 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
31665 #: ../src/guestfs-actions.pod:5452
31666 msgid "guestfs_mount_loop"
31670 #: ../src/guestfs-actions.pod:5454
31674 " guestfs_mount_loop (guestfs_h *g,\n"
31675 " const char *file,\n"
31676 " const char *mountpoint);\n"
31681 #: ../src/guestfs-actions.pod:5467
31682 msgid "guestfs_mount_options"
31686 #: ../src/guestfs-actions.pod:5469
31690 " guestfs_mount_options (guestfs_h *g,\n"
31691 " const char *options,\n"
31692 " const char *device,\n"
31693 " const char *mountpoint);\n"
31698 #: ../src/guestfs-actions.pod:5475
31700 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31701 "the mount options as for the L<mount(8)> I<-o> flag."
31705 #: ../src/guestfs-actions.pod:5485 ../src/guestfs-actions.pod:5499
31706 #: ../src/guestfs-actions.pod:5516
31707 msgid "(Added in 1.0.10)"
31708 msgstr "(Додано у 1.0.10)"
31711 #: ../src/guestfs-actions.pod:5487
31712 msgid "guestfs_mount_ro"
31716 #: ../src/guestfs-actions.pod:5489
31720 " guestfs_mount_ro (guestfs_h *g,\n"
31721 " const char *device,\n"
31722 " const char *mountpoint);\n"
31727 #: ../src/guestfs-actions.pod:5494
31729 "This is the same as the C<guestfs_mount> command, but it mounts the "
31730 "filesystem with the read-only (I<-o ro>) flag."
31734 #: ../src/guestfs-actions.pod:5501
31735 msgid "guestfs_mount_vfs"
31739 #: ../src/guestfs-actions.pod:5503
31743 " guestfs_mount_vfs (guestfs_h *g,\n"
31744 " const char *options,\n"
31745 " const char *vfstype,\n"
31746 " const char *device,\n"
31747 " const char *mountpoint);\n"
31752 #: ../src/guestfs-actions.pod:5510
31754 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31755 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
31760 #: ../src/guestfs-actions.pod:5518
31761 msgid "guestfs_mountpoints"
31765 #: ../src/guestfs-actions.pod:5520
31769 " guestfs_mountpoints (guestfs_h *g);\n"
31774 #: ../src/guestfs-actions.pod:5523
31776 "This call is similar to C<guestfs_mounts>. That call returns a list of "
31777 "devices. This one returns a hash table (map) of device name to directory "
31778 "where the device is mounted."
31782 #: ../src/guestfs-actions.pod:5535
31783 msgid "guestfs_mounts"
31787 #: ../src/guestfs-actions.pod:5537
31791 " guestfs_mounts (guestfs_h *g);\n"
31796 #: ../src/guestfs-actions.pod:5545
31797 msgid "See also: C<guestfs_mountpoints>"
31801 #: ../src/guestfs-actions.pod:5553
31806 #: ../src/guestfs-actions.pod:5555
31810 " guestfs_mv (guestfs_h *g,\n"
31811 " const char *src,\n"
31812 " const char *dest);\n"
31817 #: ../src/guestfs-actions.pod:5567
31818 msgid "guestfs_ntfs_3g_probe"
31822 #: ../src/guestfs-actions.pod:5569
31826 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
31828 " const char *device);\n"
31833 #: ../src/guestfs-actions.pod:5588
31834 msgid "(Added in 1.0.43)"
31835 msgstr "(Додано у 1.0.43)"
31838 #: ../src/guestfs-actions.pod:5590
31839 msgid "guestfs_ntfsresize"
31843 #: ../src/guestfs-actions.pod:5592
31847 " guestfs_ntfsresize (guestfs_h *g,\n"
31848 " const char *device);\n"
31853 #: ../src/guestfs-actions.pod:5596 ../src/guestfs-actions.pod:5696
31855 "I<This function is deprecated.> In new code, use the L</"
31856 "guestfs_ntfsresize_opts> call instead."
31860 #: ../src/guestfs-actions.pod:5620
31861 msgid "guestfs_ntfsresize_opts"
31865 #: ../src/guestfs-actions.pod:5622
31869 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
31870 " const char *device,\n"
31876 #: ../src/guestfs-actions.pod:5632
31879 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
31880 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
31885 #: ../src/guestfs-actions.pod:5652
31887 "After the resize operation, the filesystem is always marked as requiring a "
31888 "consistency check (for safety). You have to boot into Windows to perform "
31889 "this check and clear this condition. If you I<don't> set the C<force> "
31890 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
31891 "times on a single filesystem without booting into Windows between each "
31896 #: ../src/guestfs-actions.pod:5667
31897 msgid "guestfs_ntfsresize_opts_va"
31901 #: ../src/guestfs-actions.pod:5669
31905 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
31906 " const char *device,\n"
31907 " va_list args);\n"
31912 #: ../src/guestfs-actions.pod:5674
31913 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
31917 #: ../src/guestfs-actions.pod:5678
31918 msgid "guestfs_ntfsresize_opts_argv"
31922 #: ../src/guestfs-actions.pod:5680
31926 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
31927 " const char *device,\n"
31928 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
31933 #: ../src/guestfs-actions.pod:5685
31934 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
31938 #: ../src/guestfs-actions.pod:5689
31939 msgid "guestfs_ntfsresize_size"
31943 #: ../src/guestfs-actions.pod:5691
31947 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31948 " const char *device,\n"
31949 " int64_t size);\n"
31954 #: ../src/guestfs-actions.pod:5703
31956 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31957 "to specify the new size (in bytes) explicitly."
31961 #: ../src/guestfs-actions.pod:5708 ../src/guestfs-actions.pod:6168
31962 #: ../src/guestfs-actions.pod:6241 ../src/guestfs-actions.pod:6509
31963 #: ../src/guestfs-actions.pod:8148
31964 msgid "(Added in 1.3.14)"
31965 msgstr "(Додано у 1.3.14)"
31968 #: ../src/guestfs-actions.pod:5710
31969 msgid "guestfs_part_add"
31973 #: ../src/guestfs-actions.pod:5712
31977 " guestfs_part_add (guestfs_h *g,\n"
31978 " const char *device,\n"
31979 " const char *prlogex,\n"
31980 " int64_t startsect,\n"
31981 " int64_t endsect);\n"
31986 #: ../src/guestfs-actions.pod:5719
31988 "This command adds a partition to C<device>. If there is no partition table "
31989 "on the device, call C<guestfs_part_init> first."
31993 #: ../src/guestfs-actions.pod:5731
31995 "Creating a partition which covers the whole disk is not so easy. Use "
31996 "C<guestfs_part_disk> to do that."
32000 #: ../src/guestfs-actions.pod:5736 ../src/guestfs-actions.pod:5774
32001 #: ../src/guestfs-actions.pod:5827 ../src/guestfs-actions.pod:5911
32002 #: ../src/guestfs-actions.pod:5949 ../src/guestfs-actions.pod:5968
32003 #: ../src/guestfs-actions.pod:6008
32004 msgid "(Added in 1.0.78)"
32005 msgstr "(Додано у 1.0.78)"
32008 #: ../src/guestfs-actions.pod:5738
32009 msgid "guestfs_part_del"
32013 #: ../src/guestfs-actions.pod:5740
32017 " guestfs_part_del (guestfs_h *g,\n"
32018 " const char *device,\n"
32024 #: ../src/guestfs-actions.pod:5755
32025 msgid "guestfs_part_disk"
32029 #: ../src/guestfs-actions.pod:5757
32033 " guestfs_part_disk (guestfs_h *g,\n"
32034 " const char *device,\n"
32035 " const char *parttype);\n"
32040 #: ../src/guestfs-actions.pod:5762
32042 "This command is simply a combination of C<guestfs_part_init> followed by "
32043 "C<guestfs_part_add> to create a single primary partition covering the whole "
32048 #: ../src/guestfs-actions.pod:5766
32050 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
32051 "possible values are described in C<guestfs_part_init>."
32055 #: ../src/guestfs-actions.pod:5776
32056 msgid "guestfs_part_get_bootable"
32060 #: ../src/guestfs-actions.pod:5778
32064 " guestfs_part_get_bootable (guestfs_h *g,\n"
32065 " const char *device,\n"
32071 #: ../src/guestfs-actions.pod:5786
32072 msgid "See also C<guestfs_part_set_bootable>."
32076 #: ../src/guestfs-actions.pod:5792
32077 msgid "guestfs_part_get_mbr_id"
32081 #: ../src/guestfs-actions.pod:5794
32085 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
32086 " const char *device,\n"
32092 #: ../src/guestfs-actions.pod:5802 ../src/guestfs-actions.pod:5984
32094 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
32095 "undefined results for other partition table types (see "
32096 "C<guestfs_part_get_parttype>)."
32100 #: ../src/guestfs-actions.pod:5810
32101 msgid "guestfs_part_get_parttype"
32105 #: ../src/guestfs-actions.pod:5812
32109 " guestfs_part_get_parttype (guestfs_h *g,\n"
32110 " const char *device);\n"
32115 #: ../src/guestfs-actions.pod:5819
32117 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
32118 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
32119 "possible, although unusual. See C<guestfs_part_init> for a full list."
32123 #: ../src/guestfs-actions.pod:5829
32124 msgid "guestfs_part_init"
32128 #: ../src/guestfs-actions.pod:5831
32132 " guestfs_part_init (guestfs_h *g,\n"
32133 " const char *device,\n"
32134 " const char *parttype);\n"
32139 #: ../src/guestfs-actions.pod:5840
32141 "Initially there are no partitions. Following this, you should call "
32142 "C<guestfs_part_add> for each partition required."
32146 #: ../src/guestfs-actions.pod:5913
32147 msgid "guestfs_part_list"
32148 msgstr "guestfs_part_list"
32151 #: ../src/guestfs-actions.pod:5915
32154 " struct guestfs_partition_list *\n"
32155 " guestfs_part_list (guestfs_h *g,\n"
32156 " const char *device);\n"
32159 " struct guestfs_partition_list *\n"
32160 " guestfs_part_list (guestfs_h *g,\n"
32161 " const char *device);\n"
32165 #: ../src/guestfs-actions.pod:5932
32167 "Start of the partition I<in bytes>. To get sectors you have to divide by "
32168 "the device's sector size, see C<guestfs_blockdev_getss>."
32172 #: ../src/guestfs-actions.pod:5945
32174 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
32175 "was an error. I<The caller must call C<guestfs_free_partition_list> after "
32180 #: ../src/guestfs-actions.pod:5951
32181 msgid "guestfs_part_set_bootable"
32185 #: ../src/guestfs-actions.pod:5953
32189 " guestfs_part_set_bootable (guestfs_h *g,\n"
32190 " const char *device,\n"
32192 " int bootable);\n"
32197 #: ../src/guestfs-actions.pod:5970
32198 msgid "guestfs_part_set_mbr_id"
32202 #: ../src/guestfs-actions.pod:5972
32206 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
32207 " const char *device,\n"
32214 #: ../src/guestfs-actions.pod:5992
32215 msgid "guestfs_part_set_name"
32219 #: ../src/guestfs-actions.pod:5994
32223 " guestfs_part_set_name (guestfs_h *g,\n"
32224 " const char *device,\n"
32226 " const char *name);\n"
32231 #: ../src/guestfs-actions.pod:6010
32232 msgid "guestfs_part_to_dev"
32236 #: ../src/guestfs-actions.pod:6012
32240 " guestfs_part_to_dev (guestfs_h *g,\n"
32241 " const char *partition);\n"
32246 #: ../src/guestfs-actions.pod:6020 ../src/guestfs-actions.pod:6039
32248 "The named partition must exist, for example as a string returned from "
32249 "C<guestfs_list_partitions>."
32253 #: ../src/guestfs-actions.pod:6023
32254 msgid "See also C<guestfs_part_to_partnum>."
32258 #: ../src/guestfs-actions.pod:6030
32260 #| msgid "guestfs_part_list"
32261 msgid "guestfs_part_to_partnum"
32262 msgstr "guestfs_part_list"
32265 #: ../src/guestfs-actions.pod:6032
32269 #| " guestfs_mkdir_p (guestfs_h *g,\n"
32270 #| " const char *path);\n"
32274 " guestfs_part_to_partnum (guestfs_h *g,\n"
32275 " const char *partition);\n"
32279 " guestfs_mkdir_p (guestfs_h *g,\n"
32280 " const char *path);\n"
32284 #: ../src/guestfs-actions.pod:6042
32286 #| msgid "See also L</stat>."
32287 msgid "See also C<guestfs_part_to_dev>."
32288 msgstr "Див. також L</stat>."
32291 #: ../src/guestfs-actions.pod:6046
32292 msgid "guestfs_ping_daemon"
32296 #: ../src/guestfs-actions.pod:6048
32300 " guestfs_ping_daemon (guestfs_h *g);\n"
32305 #: ../src/guestfs-actions.pod:6060
32306 msgid "guestfs_pread"
32310 #: ../src/guestfs-actions.pod:6062
32314 " guestfs_pread (guestfs_h *g,\n"
32315 " const char *path,\n"
32317 " int64_t offset,\n"
32318 " size_t *size_r);\n"
32323 #: ../src/guestfs-actions.pod:6075
32324 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
32328 #: ../src/guestfs-actions.pod:6086
32329 msgid "guestfs_pread_device"
32333 #: ../src/guestfs-actions.pod:6088
32337 " guestfs_pread_device (guestfs_h *g,\n"
32338 " const char *device,\n"
32340 " int64_t offset,\n"
32341 " size_t *size_r);\n"
32346 #: ../src/guestfs-actions.pod:6101
32347 msgid "See also C<guestfs_pread>."
32351 #: ../src/guestfs-actions.pod:6110
32352 msgid "(Added in 1.5.21)"
32353 msgstr "(Додано у 1.5.21)"
32356 #: ../src/guestfs-actions.pod:6112
32357 msgid "guestfs_pvcreate"
32361 #: ../src/guestfs-actions.pod:6114
32365 " guestfs_pvcreate (guestfs_h *g,\n"
32366 " const char *device);\n"
32371 #: ../src/guestfs-actions.pod:6126
32372 msgid "guestfs_pvremove"
32376 #: ../src/guestfs-actions.pod:6128
32380 " guestfs_pvremove (guestfs_h *g,\n"
32381 " const char *device);\n"
32386 #: ../src/guestfs-actions.pod:6143
32387 msgid "guestfs_pvresize"
32391 #: ../src/guestfs-actions.pod:6145
32395 " guestfs_pvresize (guestfs_h *g,\n"
32396 " const char *device);\n"
32401 #: ../src/guestfs-actions.pod:6156
32402 msgid "guestfs_pvresize_size"
32406 #: ../src/guestfs-actions.pod:6158
32410 " guestfs_pvresize_size (guestfs_h *g,\n"
32411 " const char *device,\n"
32412 " int64_t size);\n"
32417 #: ../src/guestfs-actions.pod:6163
32419 "This command is the same as C<guestfs_pvresize> except that it allows you to "
32420 "specify the new size (in bytes) explicitly."
32424 #: ../src/guestfs-actions.pod:6170
32425 msgid "guestfs_pvs"
32429 #: ../src/guestfs-actions.pod:6172
32433 " guestfs_pvs (guestfs_h *g);\n"
32438 #: ../src/guestfs-actions.pod:6181
32439 msgid "See also C<guestfs_pvs_full>."
32443 #: ../src/guestfs-actions.pod:6189
32444 msgid "guestfs_pvs_full"
32448 #: ../src/guestfs-actions.pod:6191
32451 " struct guestfs_lvm_pv_list *\n"
32452 " guestfs_pvs_full (guestfs_h *g);\n"
32457 #: ../src/guestfs-actions.pod:6197
32459 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
32460 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
32464 #: ../src/guestfs-actions.pod:6203
32465 msgid "guestfs_pvuuid"
32469 #: ../src/guestfs-actions.pod:6205
32473 " guestfs_pvuuid (guestfs_h *g,\n"
32474 " const char *device);\n"
32479 #: ../src/guestfs-actions.pod:6216
32480 msgid "guestfs_pwrite"
32484 #: ../src/guestfs-actions.pod:6218
32488 " guestfs_pwrite (guestfs_h *g,\n"
32489 " const char *path,\n"
32490 " const char *content,\n"
32491 " size_t content_size,\n"
32492 " int64_t offset);\n"
32497 #: ../src/guestfs-actions.pod:6234
32498 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
32502 #: ../src/guestfs-actions.pod:6243
32503 msgid "guestfs_pwrite_device"
32507 #: ../src/guestfs-actions.pod:6245
32511 " guestfs_pwrite_device (guestfs_h *g,\n"
32512 " const char *device,\n"
32513 " const char *content,\n"
32514 " size_t content_size,\n"
32515 " int64_t offset);\n"
32520 #: ../src/guestfs-actions.pod:6260
32521 msgid "See also C<guestfs_pwrite>."
32525 #: ../src/guestfs-actions.pod:6267
32526 msgid "(Added in 1.5.20)"
32527 msgstr "(Додано у 1.5.20)"
32530 #: ../src/guestfs-actions.pod:6269
32531 msgid "guestfs_read_file"
32535 #: ../src/guestfs-actions.pod:6271
32539 " guestfs_read_file (guestfs_h *g,\n"
32540 " const char *path,\n"
32541 " size_t *size_r);\n"
32546 #: ../src/guestfs-actions.pod:6279
32548 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
32549 "embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
32550 "function is limited in the total size of file that can be handled."
32554 #: ../src/guestfs-actions.pod:6291
32555 msgid "(Added in 1.0.63)"
32556 msgstr "(Додано у 1.0.63)"
32559 #: ../src/guestfs-actions.pod:6293
32560 msgid "guestfs_read_lines"
32564 #: ../src/guestfs-actions.pod:6295
32568 " guestfs_read_lines (guestfs_h *g,\n"
32569 " const char *path);\n"
32574 #: ../src/guestfs-actions.pod:6304
32576 "Note that this function cannot correctly handle binary files (specifically, "
32577 "files containing C<\\0> character which is treated as end of line). For "
32578 "those you need to use the C<guestfs_read_file> function which has a more "
32579 "complex interface."
32583 #: ../src/guestfs-actions.pod:6315
32584 msgid "guestfs_readdir"
32588 #: ../src/guestfs-actions.pod:6317
32591 " struct guestfs_dirent_list *\n"
32592 " guestfs_readdir (guestfs_h *g,\n"
32593 " const char *dir);\n"
32598 #: ../src/guestfs-actions.pod:6371
32600 "This function is primarily intended for use by programs. To get a simple "
32601 "list of names, use C<guestfs_ls>. To get a printable directory for human "
32602 "consumption, use C<guestfs_ll>."
32606 #: ../src/guestfs-actions.pod:6375
32608 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
32609 "was an error. I<The caller must call C<guestfs_free_dirent_list> after use>."
32613 #: ../src/guestfs-actions.pod:6381
32614 msgid "guestfs_readlink"
32618 #: ../src/guestfs-actions.pod:6383
32622 " guestfs_readlink (guestfs_h *g,\n"
32623 " const char *path);\n"
32628 #: ../src/guestfs-actions.pod:6394
32629 msgid "guestfs_readlinklist"
32633 #: ../src/guestfs-actions.pod:6396
32637 " guestfs_readlinklist (guestfs_h *g,\n"
32638 " const char *path,\n"
32639 " char *const *names);\n"
32644 #: ../src/guestfs-actions.pod:6429
32645 msgid "guestfs_realpath"
32649 #: ../src/guestfs-actions.pod:6431
32653 " guestfs_realpath (guestfs_h *g,\n"
32654 " const char *path);\n"
32659 #: ../src/guestfs-actions.pod:6443
32660 msgid "guestfs_removexattr"
32664 #: ../src/guestfs-actions.pod:6445
32668 " guestfs_removexattr (guestfs_h *g,\n"
32669 " const char *xattr,\n"
32670 " const char *path);\n"
32675 #: ../src/guestfs-actions.pod:6453
32676 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
32680 #: ../src/guestfs-actions.pod:6459
32681 msgid "guestfs_resize2fs"
32685 #: ../src/guestfs-actions.pod:6461
32689 " guestfs_resize2fs (guestfs_h *g,\n"
32690 " const char *device);\n"
32695 #: ../src/guestfs-actions.pod:6468
32697 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
32698 "C<device> before calling this command. For unknown reasons C<resize2fs> "
32699 "sometimes gives an error about this and sometimes not. In any case, it is "
32700 "always safe to call C<guestfs_e2fsck_f> before calling this function."
32704 #: ../src/guestfs-actions.pod:6478
32705 msgid "guestfs_resize2fs_M"
32709 #: ../src/guestfs-actions.pod:6480
32713 " guestfs_resize2fs_M (guestfs_h *g,\n"
32714 " const char *device);\n"
32719 #: ../src/guestfs-actions.pod:6484
32721 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
32722 "resized to its minimum size. This works like the I<-M> option to the "
32723 "C<resize2fs> command."
32727 #: ../src/guestfs-actions.pod:6488
32729 "To get the resulting size of the filesystem you should call "
32730 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
32731 "These two numbers, multiplied together, give the resulting size of the "
32732 "minimal filesystem in bytes."
32736 #: ../src/guestfs-actions.pod:6497
32737 msgid "guestfs_resize2fs_size"
32741 #: ../src/guestfs-actions.pod:6499
32745 " guestfs_resize2fs_size (guestfs_h *g,\n"
32746 " const char *device,\n"
32747 " int64_t size);\n"
32752 #: ../src/guestfs-actions.pod:6504
32754 "This command is the same as C<guestfs_resize2fs> except that it allows you "
32755 "to specify the new size (in bytes) explicitly."
32759 #: ../src/guestfs-actions.pod:6511
32764 #: ../src/guestfs-actions.pod:6513
32768 " guestfs_rm (guestfs_h *g,\n"
32769 " const char *path);\n"
32774 #: ../src/guestfs-actions.pod:6523
32775 msgid "guestfs_rm_rf"
32779 #: ../src/guestfs-actions.pod:6525
32783 " guestfs_rm_rf (guestfs_h *g,\n"
32784 " const char *path);\n"
32789 #: ../src/guestfs-actions.pod:6537
32790 msgid "guestfs_rmdir"
32794 #: ../src/guestfs-actions.pod:6539
32798 " guestfs_rmdir (guestfs_h *g,\n"
32799 " const char *path);\n"
32804 #: ../src/guestfs-actions.pod:6549
32805 msgid "guestfs_rmmountpoint"
32809 #: ../src/guestfs-actions.pod:6551
32813 " guestfs_rmmountpoint (guestfs_h *g,\n"
32814 " const char *exemptpath);\n"
32819 #: ../src/guestfs-actions.pod:6555
32821 "This calls removes a mountpoint that was previously created with "
32822 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
32826 #: ../src/guestfs-actions.pod:6563
32827 msgid "guestfs_scrub_device"
32831 #: ../src/guestfs-actions.pod:6565
32835 " guestfs_scrub_device (guestfs_h *g,\n"
32836 " const char *device);\n"
32841 #: ../src/guestfs-actions.pod:6580 ../src/guestfs-actions.pod:6598
32842 #: ../src/guestfs-actions.pod:6617
32843 msgid "(Added in 1.0.52)"
32844 msgstr "(Додано у 1.0.52)"
32847 #: ../src/guestfs-actions.pod:6582
32848 msgid "guestfs_scrub_file"
32852 #: ../src/guestfs-actions.pod:6584
32856 " guestfs_scrub_file (guestfs_h *g,\n"
32857 " const char *file);\n"
32862 #: ../src/guestfs-actions.pod:6600
32863 msgid "guestfs_scrub_freespace"
32867 #: ../src/guestfs-actions.pod:6602
32871 " guestfs_scrub_freespace (guestfs_h *g,\n"
32872 " const char *dir);\n"
32877 #: ../src/guestfs-actions.pod:6606
32879 "This command creates the directory C<dir> and then fills it with files until "
32880 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
32881 "and deletes them. The intention is to scrub any free space on the partition "
32882 "containing C<dir>."
32886 #: ../src/guestfs-actions.pod:6619
32887 msgid "guestfs_set_append"
32891 #: ../src/guestfs-actions.pod:6621
32895 " guestfs_set_append (guestfs_h *g,\n"
32896 " const char *append);\n"
32901 #: ../src/guestfs-actions.pod:6638
32902 msgid "guestfs_set_attach_method"
32906 #: ../src/guestfs-actions.pod:6640
32910 " guestfs_set_attach_method (guestfs_h *g,\n"
32911 " const char *attachmethod);\n"
32916 #: ../src/guestfs-actions.pod:6668
32917 msgid "guestfs_set_autosync"
32921 #: ../src/guestfs-actions.pod:6670
32925 " guestfs_set_autosync (guestfs_h *g,\n"
32926 " int autosync);\n"
32931 #: ../src/guestfs-actions.pod:6686
32932 msgid "guestfs_set_direct"
32936 #: ../src/guestfs-actions.pod:6688
32940 " guestfs_set_direct (guestfs_h *g,\n"
32946 #: ../src/guestfs-actions.pod:6696
32948 "One consequence of this is that log messages aren't caught by the library "
32949 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
32954 #: ../src/guestfs-actions.pod:6709
32955 msgid "guestfs_set_e2label"
32959 #: ../src/guestfs-actions.pod:6711
32963 " guestfs_set_e2label (guestfs_h *g,\n"
32964 " const char *device,\n"
32965 " const char *label);\n"
32970 #: ../src/guestfs-actions.pod:6720
32972 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32973 "the existing label on a filesystem."
32977 #: ../src/guestfs-actions.pod:6727
32978 msgid "guestfs_set_e2uuid"
32982 #: ../src/guestfs-actions.pod:6729
32986 " guestfs_set_e2uuid (guestfs_h *g,\n"
32987 " const char *device,\n"
32988 " const char *uuid);\n"
32993 #: ../src/guestfs-actions.pod:6739
32995 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32996 "the existing UUID of a filesystem."
33000 #: ../src/guestfs-actions.pod:6746
33001 msgid "guestfs_set_memsize"
33005 #: ../src/guestfs-actions.pod:6748
33009 " guestfs_set_memsize (guestfs_h *g,\n"
33015 #: ../src/guestfs-actions.pod:6752
33017 "This sets the memory size in megabytes allocated to the qemu subprocess. "
33018 "This only has any effect if called before C<guestfs_launch>."
33022 #: ../src/guestfs-actions.pod:6767
33023 msgid "guestfs_set_network"
33027 #: ../src/guestfs-actions.pod:6769
33031 " guestfs_set_network (guestfs_h *g,\n"
33037 #: ../src/guestfs-actions.pod:6779
33039 "You must call this before calling C<guestfs_launch>, otherwise it has no "
33044 #: ../src/guestfs-actions.pod:6786
33045 msgid "guestfs_set_path"
33049 #: ../src/guestfs-actions.pod:6788
33053 " guestfs_set_path (guestfs_h *g,\n"
33054 " const char *searchpath);\n"
33059 #: ../src/guestfs-actions.pod:6803
33060 msgid "guestfs_set_pgroup"
33064 #: ../src/guestfs-actions.pod:6805
33068 " guestfs_set_pgroup (guestfs_h *g,\n"
33074 #: ../src/guestfs-actions.pod:6822
33075 msgid "guestfs_set_qemu"
33079 #: ../src/guestfs-actions.pod:6824
33083 " guestfs_set_qemu (guestfs_h *g,\n"
33084 " const char *qemu);\n"
33089 #: ../src/guestfs-actions.pod:6850
33090 msgid "guestfs_set_recovery_proc"
33094 #: ../src/guestfs-actions.pod:6852
33098 " guestfs_set_recovery_proc (guestfs_h *g,\n"
33099 " int recoveryproc);\n"
33104 #: ../src/guestfs-actions.pod:6856
33106 "If this is called with the parameter C<false> then C<guestfs_launch> does "
33107 "not create a recovery process. The purpose of the recovery process is to "
33108 "stop runaway qemu processes in the case where the main program aborts "
33113 #: ../src/guestfs-actions.pod:6861
33115 "This only has any effect if called before C<guestfs_launch>, and the default "
33120 #: ../src/guestfs-actions.pod:6874
33121 msgid "guestfs_set_selinux"
33125 #: ../src/guestfs-actions.pod:6876
33129 " guestfs_set_selinux (guestfs_h *g,\n"
33135 #: ../src/guestfs-actions.pod:6893
33136 msgid "guestfs_set_smp"
33140 #: ../src/guestfs-actions.pod:6895
33144 " guestfs_set_smp (guestfs_h *g,\n"
33150 #: ../src/guestfs-actions.pod:6903
33151 msgid "This function must be called before C<guestfs_launch>."
33155 #: ../src/guestfs-actions.pod:6909
33156 msgid "guestfs_set_trace"
33160 #: ../src/guestfs-actions.pod:6911
33164 " guestfs_set_trace (guestfs_h *g,\n"
33170 #: ../src/guestfs-actions.pod:6925
33172 "Trace messages are normally sent to C<stderr>, unless you register a "
33173 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33177 #: ../src/guestfs-actions.pod:6933
33178 msgid "guestfs_set_verbose"
33182 #: ../src/guestfs-actions.pod:6935
33186 " guestfs_set_verbose (guestfs_h *g,\n"
33192 #: ../src/guestfs-actions.pod:6944
33194 "Verbose messages are normally sent to C<stderr>, unless you register a "
33195 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33199 #: ../src/guestfs-actions.pod:6952
33200 msgid "guestfs_setcon"
33204 #: ../src/guestfs-actions.pod:6954
33208 " guestfs_setcon (guestfs_h *g,\n"
33209 " const char *context);\n"
33214 #: ../src/guestfs-actions.pod:6967
33215 msgid "guestfs_setxattr"
33219 #: ../src/guestfs-actions.pod:6969
33223 " guestfs_setxattr (guestfs_h *g,\n"
33224 " const char *xattr,\n"
33225 " const char *val,\n"
33227 " const char *path);\n"
33232 #: ../src/guestfs-actions.pod:6980
33233 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
33237 #: ../src/guestfs-actions.pod:6986
33238 msgid "guestfs_sfdisk"
33242 #: ../src/guestfs-actions.pod:6988
33246 " guestfs_sfdisk (guestfs_h *g,\n"
33247 " const char *device,\n"
33251 " char *const *lines);\n"
33256 #: ../src/guestfs-actions.pod:6996 ../src/guestfs-actions.pod:7040
33257 #: ../src/guestfs-actions.pod:7074
33259 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
33264 #: ../src/guestfs-actions.pod:7023
33266 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
33270 #: ../src/guestfs-actions.pod:7033
33271 msgid "guestfs_sfdiskM"
33275 #: ../src/guestfs-actions.pod:7035
33279 " guestfs_sfdiskM (guestfs_h *g,\n"
33280 " const char *device,\n"
33281 " char *const *lines);\n"
33286 #: ../src/guestfs-actions.pod:7047
33288 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
33289 "partition sizes are specified in megabytes only (rounded to the nearest "
33290 "cylinder) and you don't need to specify the cyls, heads and sectors "
33291 "parameters which were rarely if ever used anyway."
33295 #: ../src/guestfs-actions.pod:7053
33297 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
33298 "C<guestfs_part_disk>"
33302 #: ../src/guestfs-actions.pod:7063
33303 msgid "guestfs_sfdisk_N"
33307 #: ../src/guestfs-actions.pod:7065
33311 " guestfs_sfdisk_N (guestfs_h *g,\n"
33312 " const char *device,\n"
33317 " const char *line);\n"
33322 #: ../src/guestfs-actions.pod:7084
33324 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
33325 "for the cyls/heads/sectors parameters."
33329 #: ../src/guestfs-actions.pod:7087
33330 msgid "See also: C<guestfs_part_add>"
33334 #: ../src/guestfs-actions.pod:7096
33335 msgid "guestfs_sfdisk_disk_geometry"
33339 #: ../src/guestfs-actions.pod:7098
33343 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
33344 " const char *device);\n"
33349 #: ../src/guestfs-actions.pod:7102
33351 "This displays the disk geometry of C<device> read from the partition table. "
33352 "Especially in the case where the underlying block device has been resized, "
33353 "this can be different from the kernel's idea of the geometry (see "
33354 "C<guestfs_sfdisk_kernel_geometry>)."
33358 #: ../src/guestfs-actions.pod:7115
33359 msgid "guestfs_sfdisk_kernel_geometry"
33363 #: ../src/guestfs-actions.pod:7117
33367 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
33368 " const char *device);\n"
33373 #: ../src/guestfs-actions.pod:7131
33374 msgid "guestfs_sfdisk_l"
33378 #: ../src/guestfs-actions.pod:7133
33382 " guestfs_sfdisk_l (guestfs_h *g,\n"
33383 " const char *device);\n"
33388 #: ../src/guestfs-actions.pod:7137
33390 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
33395 #: ../src/guestfs-actions.pod:7148
33396 msgid "See also: C<guestfs_part_list>"
33400 #: ../src/guestfs-actions.pod:7155
33405 #: ../src/guestfs-actions.pod:7157
33409 " guestfs_sh (guestfs_h *g,\n"
33410 " const char *command);\n"
33415 #: ../src/guestfs-actions.pod:7164
33416 msgid "This is like C<guestfs_command>, but passes the command to:"
33420 #: ../src/guestfs-actions.pod:7172
33421 msgid "All the provisos about C<guestfs_command> apply to this call."
33425 #: ../src/guestfs-actions.pod:7179
33426 msgid "guestfs_sh_lines"
33430 #: ../src/guestfs-actions.pod:7181
33434 " guestfs_sh_lines (guestfs_h *g,\n"
33435 " const char *command);\n"
33440 #: ../src/guestfs-actions.pod:7185
33442 "This is the same as C<guestfs_sh>, but splits the result into a list of "
33447 #: ../src/guestfs-actions.pod:7188
33448 msgid "See also: C<guestfs_command_lines>"
33452 #: ../src/guestfs-actions.pod:7196
33453 msgid "guestfs_sleep"
33457 #: ../src/guestfs-actions.pod:7198
33461 " guestfs_sleep (guestfs_h *g,\n"
33467 #: ../src/guestfs-actions.pod:7206
33468 msgid "(Added in 1.0.41)"
33469 msgstr "(Додано у 1.0.41)"
33472 #: ../src/guestfs-actions.pod:7208 ../src/guestfs-structs.pod:109
33473 msgid "guestfs_stat"
33477 #: ../src/guestfs-actions.pod:7210
33480 " struct guestfs_stat *\n"
33481 " guestfs_stat (guestfs_h *g,\n"
33482 " const char *path);\n"
33487 #: ../src/guestfs-actions.pod:7224 ../src/guestfs-structs.pod:135
33488 msgid "guestfs_statvfs"
33492 #: ../src/guestfs-actions.pod:7226
33495 " struct guestfs_statvfs *\n"
33496 " guestfs_statvfs (guestfs_h *g,\n"
33497 " const char *path);\n"
33502 #: ../src/guestfs-actions.pod:7236
33504 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
33505 "error. I<The caller must call C<guestfs_free_statvfs> after use>."
33509 #: ../src/guestfs-actions.pod:7242
33510 msgid "guestfs_strings"
33514 #: ../src/guestfs-actions.pod:7244
33518 " guestfs_strings (guestfs_h *g,\n"
33519 " const char *path);\n"
33524 #: ../src/guestfs-actions.pod:7260
33525 msgid "guestfs_strings_e"
33529 #: ../src/guestfs-actions.pod:7262
33533 " guestfs_strings_e (guestfs_h *g,\n"
33534 " const char *encoding,\n"
33535 " const char *path);\n"
33540 #: ../src/guestfs-actions.pod:7267
33542 "This is like the C<guestfs_strings> command, but allows you to specify the "
33543 "encoding of strings that are looked for in the source file C<path>."
33547 #: ../src/guestfs-actions.pod:7277
33549 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
33550 "ISO-8859-X (this is what C<guestfs_strings> uses)."
33554 #: ../src/guestfs-actions.pod:7315
33555 msgid "guestfs_swapoff_device"
33559 #: ../src/guestfs-actions.pod:7317
33563 " guestfs_swapoff_device (guestfs_h *g,\n"
33564 " const char *device);\n"
33569 #: ../src/guestfs-actions.pod:7321
33571 "This command disables the libguestfs appliance swap device or partition "
33572 "named C<device>. See C<guestfs_swapon_device>."
33576 #: ../src/guestfs-actions.pod:7329
33577 msgid "guestfs_swapoff_file"
33581 #: ../src/guestfs-actions.pod:7331
33585 " guestfs_swapoff_file (guestfs_h *g,\n"
33586 " const char *file);\n"
33591 #: ../src/guestfs-actions.pod:7341
33592 msgid "guestfs_swapoff_label"
33596 #: ../src/guestfs-actions.pod:7343
33600 " guestfs_swapoff_label (guestfs_h *g,\n"
33601 " const char *label);\n"
33606 #: ../src/guestfs-actions.pod:7354
33607 msgid "guestfs_swapoff_uuid"
33611 #: ../src/guestfs-actions.pod:7356
33615 " guestfs_swapoff_uuid (guestfs_h *g,\n"
33616 " const char *uuid);\n"
33621 #: ../src/guestfs-actions.pod:7367
33622 msgid "guestfs_swapon_device"
33626 #: ../src/guestfs-actions.pod:7369
33630 " guestfs_swapon_device (guestfs_h *g,\n"
33631 " const char *device);\n"
33636 #: ../src/guestfs-actions.pod:7373
33638 "This command enables the libguestfs appliance to use the swap device or "
33639 "partition named C<device>. The increased memory is made available for all "
33640 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
33644 #: ../src/guestfs-actions.pod:7389
33645 msgid "guestfs_swapon_file"
33649 #: ../src/guestfs-actions.pod:7391
33653 " guestfs_swapon_file (guestfs_h *g,\n"
33654 " const char *file);\n"
33659 #: ../src/guestfs-actions.pod:7395
33661 "This command enables swap to a file. See C<guestfs_swapon_device> for other "
33666 #: ../src/guestfs-actions.pod:7402
33667 msgid "guestfs_swapon_label"
33671 #: ../src/guestfs-actions.pod:7404
33675 " guestfs_swapon_label (guestfs_h *g,\n"
33676 " const char *label);\n"
33681 #: ../src/guestfs-actions.pod:7408
33683 "This command enables swap to a labeled swap partition. See "
33684 "C<guestfs_swapon_device> for other notes."
33688 #: ../src/guestfs-actions.pod:7415
33689 msgid "guestfs_swapon_uuid"
33693 #: ../src/guestfs-actions.pod:7417
33697 " guestfs_swapon_uuid (guestfs_h *g,\n"
33698 " const char *uuid);\n"
33703 #: ../src/guestfs-actions.pod:7421
33705 "This command enables swap to a swap partition with the given UUID. See "
33706 "C<guestfs_swapon_device> for other notes."
33710 #: ../src/guestfs-actions.pod:7428
33711 msgid "guestfs_sync"
33715 #: ../src/guestfs-actions.pod:7430
33719 " guestfs_sync (guestfs_h *g);\n"
33724 #: ../src/guestfs-actions.pod:7443
33725 msgid "guestfs_tail"
33729 #: ../src/guestfs-actions.pod:7445
33733 " guestfs_tail (guestfs_h *g,\n"
33734 " const char *path);\n"
33739 #: ../src/guestfs-actions.pod:7461
33740 msgid "guestfs_tail_n"
33744 #: ../src/guestfs-actions.pod:7463
33748 " guestfs_tail_n (guestfs_h *g,\n"
33750 " const char *path);\n"
33755 #: ../src/guestfs-actions.pod:7485
33756 msgid "guestfs_tar_in"
33760 #: ../src/guestfs-actions.pod:7487
33764 " guestfs_tar_in (guestfs_h *g,\n"
33765 " const char *tarfile,\n"
33766 " const char *directory);\n"
33771 #: ../src/guestfs-actions.pod:7495
33773 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
33777 #: ../src/guestfs-actions.pod:7500 ../src/guestfs-actions.pod:7517
33778 #: ../src/guestfs-actions.pod:7533 ../src/guestfs-actions.pod:7549
33779 msgid "(Added in 1.0.3)"
33780 msgstr "(Додано у 1.0.3)"
33783 #: ../src/guestfs-actions.pod:7502
33784 msgid "guestfs_tar_out"
33788 #: ../src/guestfs-actions.pod:7504
33792 " guestfs_tar_out (guestfs_h *g,\n"
33793 " const char *directory,\n"
33794 " const char *tarfile);\n"
33799 #: ../src/guestfs-actions.pod:7512
33801 "To download a compressed tarball, use C<guestfs_tgz_out> or "
33802 "C<guestfs_txz_out>."
33806 #: ../src/guestfs-actions.pod:7519
33807 msgid "guestfs_tgz_in"
33811 #: ../src/guestfs-actions.pod:7521
33815 " guestfs_tgz_in (guestfs_h *g,\n"
33816 " const char *tarball,\n"
33817 " const char *directory);\n"
33822 #: ../src/guestfs-actions.pod:7529
33823 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
33827 #: ../src/guestfs-actions.pod:7535
33828 msgid "guestfs_tgz_out"
33832 #: ../src/guestfs-actions.pod:7537
33836 " guestfs_tgz_out (guestfs_h *g,\n"
33837 " const char *directory,\n"
33838 " const char *tarball);\n"
33843 #: ../src/guestfs-actions.pod:7545
33844 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
33848 #: ../src/guestfs-actions.pod:7551
33849 msgid "guestfs_touch"
33853 #: ../src/guestfs-actions.pod:7553
33857 " guestfs_touch (guestfs_h *g,\n"
33858 " const char *path);\n"
33863 #: ../src/guestfs-actions.pod:7568
33864 msgid "guestfs_truncate"
33868 #: ../src/guestfs-actions.pod:7570
33872 " guestfs_truncate (guestfs_h *g,\n"
33873 " const char *path);\n"
33878 #: ../src/guestfs-actions.pod:7581
33879 msgid "guestfs_truncate_size"
33883 #: ../src/guestfs-actions.pod:7583
33887 " guestfs_truncate_size (guestfs_h *g,\n"
33888 " const char *path,\n"
33889 " int64_t size);\n"
33894 #: ../src/guestfs-actions.pod:7591
33896 "If the current file size is less than C<size> then the file is extended to "
33897 "the required size with zero bytes. This creates a sparse file (ie. disk "
33898 "blocks are not allocated for the file until you write to it). To create a "
33899 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
33903 #: ../src/guestfs-actions.pod:7601
33904 msgid "guestfs_tune2fs_l"
33908 #: ../src/guestfs-actions.pod:7603
33912 " guestfs_tune2fs_l (guestfs_h *g,\n"
33913 " const char *device);\n"
33918 #: ../src/guestfs-actions.pod:7623
33919 msgid "guestfs_txz_in"
33923 #: ../src/guestfs-actions.pod:7625
33927 " guestfs_txz_in (guestfs_h *g,\n"
33928 " const char *tarball,\n"
33929 " const char *directory);\n"
33934 #: ../src/guestfs-actions.pod:7637
33935 msgid "guestfs_txz_out"
33939 #: ../src/guestfs-actions.pod:7639
33943 " guestfs_txz_out (guestfs_h *g,\n"
33944 " const char *directory,\n"
33945 " const char *tarball);\n"
33950 #: ../src/guestfs-actions.pod:7651
33951 msgid "guestfs_umask"
33955 #: ../src/guestfs-actions.pod:7653
33959 " guestfs_umask (guestfs_h *g,\n"
33965 #: ../src/guestfs-actions.pod:7669
33967 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
33968 "C<guestfs_mkdir>."
33972 #: ../src/guestfs-actions.pod:7678
33973 msgid "guestfs_umount"
33977 #: ../src/guestfs-actions.pod:7680
33981 " guestfs_umount (guestfs_h *g,\n"
33982 " const char *pathordevice);\n"
33987 #: ../src/guestfs-actions.pod:7692
33988 msgid "guestfs_umount_all"
33992 #: ../src/guestfs-actions.pod:7694
33996 " guestfs_umount_all (guestfs_h *g);\n"
34001 #: ../src/guestfs-actions.pod:7705
34002 msgid "guestfs_upload"
34006 #: ../src/guestfs-actions.pod:7707
34010 " guestfs_upload (guestfs_h *g,\n"
34011 " const char *filename,\n"
34012 " const char *remotefilename);\n"
34017 #: ../src/guestfs-actions.pod:7717
34018 msgid "See also C<guestfs_download>."
34022 #: ../src/guestfs-actions.pod:7728
34023 msgid "guestfs_upload_offset"
34027 #: ../src/guestfs-actions.pod:7730
34031 " guestfs_upload_offset (guestfs_h *g,\n"
34032 " const char *filename,\n"
34033 " const char *remotefilename,\n"
34034 " int64_t offset);\n"
34039 #: ../src/guestfs-actions.pod:7746
34041 "Note that there is no limit on the amount of data that can be uploaded with "
34042 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
34043 "full amount unless an error occurs."
34047 #: ../src/guestfs-actions.pod:7751
34048 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
34052 #: ../src/guestfs-actions.pod:7762
34053 msgid "guestfs_utimens"
34057 #: ../src/guestfs-actions.pod:7764
34061 " guestfs_utimens (guestfs_h *g,\n"
34062 " const char *path,\n"
34063 " int64_t atsecs,\n"
34064 " int64_t atnsecs,\n"
34065 " int64_t mtsecs,\n"
34066 " int64_t mtnsecs);\n"
34071 #: ../src/guestfs-actions.pod:7793 ../src/guestfs-structs.pod:175
34072 msgid "guestfs_version"
34076 #: ../src/guestfs-actions.pod:7795
34079 " struct guestfs_version *\n"
34080 " guestfs_version (guestfs_h *g);\n"
34085 #: ../src/guestfs-actions.pod:7823
34087 "I<Note:> Don't use this call to test for availability of features. In "
34088 "enterprise distributions we backport features from later versions into "
34089 "earlier versions, making this an unreliable way to test for features. Use "
34090 "C<guestfs_available> instead."
34094 #: ../src/guestfs-actions.pod:7829
34096 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
34097 "error. I<The caller must call C<guestfs_free_version> after use>."
34101 #: ../src/guestfs-actions.pod:7833
34102 msgid "(Added in 1.0.58)"
34103 msgstr "(Додано у 1.0.58)"
34106 #: ../src/guestfs-actions.pod:7835
34107 msgid "guestfs_vfs_label"
34111 #: ../src/guestfs-actions.pod:7837
34115 " guestfs_vfs_label (guestfs_h *g,\n"
34116 " const char *device);\n"
34121 #: ../src/guestfs-actions.pod:7846
34122 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
34126 #: ../src/guestfs-actions.pod:7851 ../src/guestfs-actions.pod:7888
34127 msgid "(Added in 1.3.18)"
34128 msgstr "(Додано у 1.3.18)"
34131 #: ../src/guestfs-actions.pod:7853
34132 msgid "guestfs_vfs_type"
34136 #: ../src/guestfs-actions.pod:7855
34140 " guestfs_vfs_type (guestfs_h *g,\n"
34141 " const char *device);\n"
34146 #: ../src/guestfs-actions.pod:7872
34147 msgid "guestfs_vfs_uuid"
34151 #: ../src/guestfs-actions.pod:7874
34155 " guestfs_vfs_uuid (guestfs_h *g,\n"
34156 " const char *device);\n"
34161 #: ../src/guestfs-actions.pod:7883
34162 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
34166 #: ../src/guestfs-actions.pod:7890
34167 msgid "guestfs_vg_activate"
34171 #: ../src/guestfs-actions.pod:7892
34175 " guestfs_vg_activate (guestfs_h *g,\n"
34177 " char *const *volgroups);\n"
34182 #: ../src/guestfs-actions.pod:7909
34183 msgid "guestfs_vg_activate_all"
34187 #: ../src/guestfs-actions.pod:7911
34191 " guestfs_vg_activate_all (guestfs_h *g,\n"
34192 " int activate);\n"
34197 #: ../src/guestfs-actions.pod:7924
34198 msgid "guestfs_vgcreate"
34202 #: ../src/guestfs-actions.pod:7926
34206 " guestfs_vgcreate (guestfs_h *g,\n"
34207 " const char *volgroup,\n"
34208 " char *const *physvols);\n"
34213 #: ../src/guestfs-actions.pod:7938
34214 msgid "guestfs_vglvuuids"
34218 #: ../src/guestfs-actions.pod:7940
34222 " guestfs_vglvuuids (guestfs_h *g,\n"
34223 " const char *vgname);\n"
34228 #: ../src/guestfs-actions.pod:7947
34230 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
34231 "associate logical volumes and volume groups."
34235 #: ../src/guestfs-actions.pod:7950
34236 msgid "See also C<guestfs_vgpvuuids>."
34240 #: ../src/guestfs-actions.pod:7958
34241 msgid "guestfs_vgpvuuids"
34245 #: ../src/guestfs-actions.pod:7960
34249 " guestfs_vgpvuuids (guestfs_h *g,\n"
34250 " const char *vgname);\n"
34255 #: ../src/guestfs-actions.pod:7967
34257 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
34258 "associate physical volumes and volume groups."
34262 #: ../src/guestfs-actions.pod:7970
34263 msgid "See also C<guestfs_vglvuuids>."
34267 #: ../src/guestfs-actions.pod:7978
34268 msgid "guestfs_vgremove"
34272 #: ../src/guestfs-actions.pod:7980
34276 " guestfs_vgremove (guestfs_h *g,\n"
34277 " const char *vgname);\n"
34282 #: ../src/guestfs-actions.pod:7993
34283 msgid "guestfs_vgrename"
34287 #: ../src/guestfs-actions.pod:7995
34291 " guestfs_vgrename (guestfs_h *g,\n"
34292 " const char *volgroup,\n"
34293 " const char *newvolgroup);\n"
34298 #: ../src/guestfs-actions.pod:8006
34299 msgid "guestfs_vgs"
34303 #: ../src/guestfs-actions.pod:8008
34307 " guestfs_vgs (guestfs_h *g);\n"
34312 #: ../src/guestfs-actions.pod:8017
34313 msgid "See also C<guestfs_vgs_full>."
34317 #: ../src/guestfs-actions.pod:8025
34318 msgid "guestfs_vgs_full"
34322 #: ../src/guestfs-actions.pod:8027
34325 " struct guestfs_lvm_vg_list *\n"
34326 " guestfs_vgs_full (guestfs_h *g);\n"
34331 #: ../src/guestfs-actions.pod:8033
34333 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
34334 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
34338 #: ../src/guestfs-actions.pod:8039
34339 msgid "guestfs_vgscan"
34343 #: ../src/guestfs-actions.pod:8041
34347 " guestfs_vgscan (guestfs_h *g);\n"
34352 #: ../src/guestfs-actions.pod:8051
34353 msgid "guestfs_vguuid"
34357 #: ../src/guestfs-actions.pod:8053
34361 " guestfs_vguuid (guestfs_h *g,\n"
34362 " const char *vgname);\n"
34367 #: ../src/guestfs-actions.pod:8064
34368 msgid "guestfs_wait_ready"
34372 #: ../src/guestfs-actions.pod:8066
34376 " guestfs_wait_ready (guestfs_h *g);\n"
34381 #: ../src/guestfs-actions.pod:8069
34383 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
34388 #: ../src/guestfs-actions.pod:8076
34389 msgid "This function is a no op."
34393 #: ../src/guestfs-actions.pod:8078
34395 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
34396 "calling C<guestfs_launch> to wait for the launch to complete. However this "
34397 "is no longer necessary because C<guestfs_launch> now does the waiting."
34401 #: ../src/guestfs-actions.pod:8083
34403 "If you see any calls to this function in code then you can just remove them, "
34404 "unless you want to retain compatibility with older versions of the API."
34408 #: ../src/guestfs-actions.pod:8091
34409 msgid "guestfs_wc_c"
34413 #: ../src/guestfs-actions.pod:8093
34417 " guestfs_wc_c (guestfs_h *g,\n"
34418 " const char *path);\n"
34423 #: ../src/guestfs-actions.pod:8104
34424 msgid "guestfs_wc_l"
34428 #: ../src/guestfs-actions.pod:8106
34432 " guestfs_wc_l (guestfs_h *g,\n"
34433 " const char *path);\n"
34438 #: ../src/guestfs-actions.pod:8117
34439 msgid "guestfs_wc_w"
34443 #: ../src/guestfs-actions.pod:8119
34447 " guestfs_wc_w (guestfs_h *g,\n"
34448 " const char *path);\n"
34453 #: ../src/guestfs-actions.pod:8130
34454 msgid "guestfs_write"
34458 #: ../src/guestfs-actions.pod:8132
34462 " guestfs_write (guestfs_h *g,\n"
34463 " const char *path,\n"
34464 " const char *content,\n"
34465 " size_t content_size);\n"
34470 #: ../src/guestfs-actions.pod:8141
34471 msgid "See also C<guestfs_write_append>."
34475 #: ../src/guestfs-actions.pod:8150
34476 msgid "guestfs_write_append"
34480 #: ../src/guestfs-actions.pod:8152
34484 " guestfs_write_append (guestfs_h *g,\n"
34485 " const char *path,\n"
34486 " const char *content,\n"
34487 " size_t content_size);\n"
34492 #: ../src/guestfs-actions.pod:8161
34493 msgid "See also C<guestfs_write>."
34497 #: ../src/guestfs-actions.pod:8170
34498 msgid "guestfs_write_file"
34499 msgstr "guestfs_write_file"
34502 #: ../src/guestfs-actions.pod:8172
34506 " guestfs_write_file (guestfs_h *g,\n"
34507 " const char *path,\n"
34508 " const char *content,\n"
34513 " guestfs_write_file (guestfs_h *g,\n"
34514 " const char *path,\n"
34515 " const char *content,\n"
34520 #: ../src/guestfs-actions.pod:8178
34522 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
34527 #: ../src/guestfs-actions.pod:8203
34528 msgid "guestfs_zegrep"
34529 msgstr "guestfs_zegrep"
34532 #: ../src/guestfs-actions.pod:8205
34536 " guestfs_zegrep (guestfs_h *g,\n"
34537 " const char *regex,\n"
34538 " const char *path);\n"
34542 " guestfs_zegrep (guestfs_h *g,\n"
34543 " const char *regex,\n"
34544 " const char *path);\n"
34548 #: ../src/guestfs-actions.pod:8222
34549 msgid "guestfs_zegrepi"
34550 msgstr "guestfs_zegrepi"
34553 #: ../src/guestfs-actions.pod:8224
34557 " guestfs_zegrepi (guestfs_h *g,\n"
34558 " const char *regex,\n"
34559 " const char *path);\n"
34563 " guestfs_zegrepi (guestfs_h *g,\n"
34564 " const char *regex,\n"
34565 " const char *path);\n"
34569 #: ../src/guestfs-actions.pod:8241
34570 msgid "guestfs_zero"
34571 msgstr "guestfs_zero"
34574 #: ../src/guestfs-actions.pod:8243
34578 " guestfs_zero (guestfs_h *g,\n"
34579 " const char *device);\n"
34583 " guestfs_zero (guestfs_h *g,\n"
34584 " const char *device);\n"
34588 #: ../src/guestfs-actions.pod:8257
34590 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
34591 "C<guestfs_is_zero_device>"
34595 #: ../src/guestfs-actions.pod:8269
34596 msgid "guestfs_zero_device"
34597 msgstr "guestfs_zero_device"
34600 #: ../src/guestfs-actions.pod:8271
34604 " guestfs_zero_device (guestfs_h *g,\n"
34605 " const char *device);\n"
34609 " guestfs_zero_device (guestfs_h *g,\n"
34610 " const char *device);\n"
34614 #: ../src/guestfs-actions.pod:8275
34616 "This command writes zeroes over the entire C<device>. Compare with "
34617 "C<guestfs_zero> which just zeroes the first few blocks of a device."
34621 #: ../src/guestfs-actions.pod:8293
34622 msgid "(Added in 1.3.1)"
34623 msgstr "(Додано у 1.3.1)"
34626 #: ../src/guestfs-actions.pod:8295
34627 msgid "guestfs_zerofree"
34628 msgstr "guestfs_zerofree"
34631 #: ../src/guestfs-actions.pod:8297
34635 " guestfs_zerofree (guestfs_h *g,\n"
34636 " const char *device);\n"
34640 " guestfs_zerofree (guestfs_h *g,\n"
34641 " const char *device);\n"
34645 #: ../src/guestfs-actions.pod:8316
34646 msgid "guestfs_zfgrep"
34647 msgstr "guestfs_zfgrep"
34650 #: ../src/guestfs-actions.pod:8318
34654 " guestfs_zfgrep (guestfs_h *g,\n"
34655 " const char *pattern,\n"
34656 " const char *path);\n"
34660 " guestfs_zfgrep (guestfs_h *g,\n"
34661 " const char *pattern,\n"
34662 " const char *path);\n"
34666 #: ../src/guestfs-actions.pod:8335
34667 msgid "guestfs_zfgrepi"
34668 msgstr "guestfs_zfgrepi"
34671 #: ../src/guestfs-actions.pod:8337
34675 " guestfs_zfgrepi (guestfs_h *g,\n"
34676 " const char *pattern,\n"
34677 " const char *path);\n"
34681 " guestfs_zfgrepi (guestfs_h *g,\n"
34682 " const char *pattern,\n"
34683 " const char *path);\n"
34687 #: ../src/guestfs-actions.pod:8354
34688 msgid "guestfs_zfile"
34689 msgstr "guestfs_zfile"
34692 #: ../src/guestfs-actions.pod:8356
34696 " guestfs_zfile (guestfs_h *g,\n"
34697 " const char *meth,\n"
34698 " const char *path);\n"
34702 " guestfs_zfile (guestfs_h *g,\n"
34703 " const char *meth,\n"
34704 " const char *path);\n"
34708 #: ../src/guestfs-actions.pod:8361
34710 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
34715 #: ../src/guestfs-actions.pod:8373
34717 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
34722 #: ../src/guestfs-actions.pod:8381
34723 msgid "guestfs_zgrep"
34724 msgstr "guestfs_zgrep"
34727 #: ../src/guestfs-actions.pod:8383
34731 " guestfs_zgrep (guestfs_h *g,\n"
34732 " const char *regex,\n"
34733 " const char *path);\n"
34737 " guestfs_zgrep (guestfs_h *g,\n"
34738 " const char *regex,\n"
34739 " const char *path);\n"
34743 #: ../src/guestfs-actions.pod:8400
34744 msgid "guestfs_zgrepi"
34745 msgstr "guestfs_zgrepi"
34748 #: ../src/guestfs-actions.pod:8402
34752 " guestfs_zgrepi (guestfs_h *g,\n"
34753 " const char *regex,\n"
34754 " const char *path);\n"
34758 " guestfs_zgrepi (guestfs_h *g,\n"
34759 " const char *regex,\n"
34760 " const char *path);\n"
34764 #: ../src/guestfs-availability.pod:3
34769 #: ../src/guestfs-availability.pod:5
34771 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
34772 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
34773 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
34774 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
34775 "L</guestfs_aug_save> L</guestfs_aug_set>"
34779 #: ../src/guestfs-availability.pod:21
34784 #: ../src/guestfs-availability.pod:23
34785 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
34789 #: ../src/guestfs-availability.pod:26
34794 #: ../src/guestfs-availability.pod:28
34795 msgid "The following functions: L</guestfs_grub_install>"
34799 #: ../src/guestfs-availability.pod:31
34801 msgstr "B<inotify>"
34804 #: ../src/guestfs-availability.pod:33
34806 "The following functions: L</guestfs_inotify_add_watch> L</"
34807 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
34808 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
34812 #: ../src/guestfs-availability.pod:41
34813 msgid "B<linuxfsuuid>"
34814 msgstr "B<linuxfsuuid>"
34817 #: ../src/guestfs-availability.pod:43
34819 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
34820 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
34824 #: ../src/guestfs-availability.pod:50
34825 msgid "B<linuxmodules>"
34826 msgstr "B<linuxmodules>"
34829 #: ../src/guestfs-availability.pod:52
34830 msgid "The following functions: L</guestfs_modprobe>"
34834 #: ../src/guestfs-availability.pod:55
34835 msgid "B<linuxxattrs>"
34836 msgstr "B<linuxxattrs>"
34839 #: ../src/guestfs-availability.pod:57
34841 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
34842 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
34843 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
34844 "guestfs_setxattr>"
34848 #: ../src/guestfs-availability.pod:68
34853 #: ../src/guestfs-availability.pod:70
34855 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
34856 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
34857 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
34861 #: ../src/guestfs-availability.pod:79
34866 #: ../src/guestfs-availability.pod:81
34868 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
34869 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
34870 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
34871 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
34872 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
34873 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
34874 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
34878 #: ../src/guestfs-availability.pod:104
34883 #: ../src/guestfs-availability.pod:106
34885 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
34886 "guestfs_mknod_b> L</guestfs_mknod_c>"
34890 #: ../src/guestfs-availability.pod:112
34895 #: ../src/guestfs-availability.pod:114
34896 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
34900 #: ../src/guestfs-availability.pod:117
34901 msgid "B<ntfsprogs>"
34902 msgstr "B<ntfsprogs>"
34905 #: ../src/guestfs-availability.pod:119
34907 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
34908 "L</guestfs_ntfsresize_size>"
34912 #: ../src/guestfs-availability.pod:124
34913 msgid "B<realpath>"
34914 msgstr "B<realpath>"
34917 #: ../src/guestfs-availability.pod:126
34918 msgid "The following functions: L</guestfs_realpath>"
34922 #: ../src/guestfs-availability.pod:129
34927 #: ../src/guestfs-availability.pod:131
34929 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
34930 "guestfs_scrub_freespace>"
34934 #: ../src/guestfs-availability.pod:136
34936 msgstr "B<selinux>"
34939 #: ../src/guestfs-availability.pod:138
34940 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
34944 #: ../src/guestfs-availability.pod:142
34949 #: ../src/guestfs-availability.pod:144
34950 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
34954 #: ../src/guestfs-availability.pod:148
34955 msgid "B<zerofree>"
34956 msgstr "B<zerofree>"
34959 #: ../src/guestfs-availability.pod:150
34960 msgid "The following functions: L</guestfs_zerofree>"
34964 #: ../src/guestfs-structs.pod:1
34965 msgid "guestfs_int_bool"
34969 #: ../src/guestfs-structs.pod:3
34972 " struct guestfs_int_bool {\n"
34980 #: ../src/guestfs-structs.pod:8
34983 " struct guestfs_int_bool_list {\n"
34984 " uint32_t len; /* Number of elements in list. */\n"
34985 " struct guestfs_int_bool *val; /* Elements. */\n"
34991 #: ../src/guestfs-structs.pod:13
34994 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34995 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
35000 #: ../src/guestfs-structs.pod:16
35001 msgid "guestfs_lvm_pv"
35005 #: ../src/guestfs-structs.pod:18
35008 " struct guestfs_lvm_pv {\n"
35009 " char *pv_name;\n"
35010 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35011 " char pv_uuid[32];\n"
35013 " uint64_t pv_size;\n"
35014 " uint64_t dev_size;\n"
35015 " uint64_t pv_free;\n"
35016 " uint64_t pv_used;\n"
35017 " char *pv_attr;\n"
35018 " int64_t pv_pe_count;\n"
35019 " int64_t pv_pe_alloc_count;\n"
35020 " char *pv_tags;\n"
35021 " uint64_t pe_start;\n"
35022 " int64_t pv_mda_count;\n"
35023 " uint64_t pv_mda_free;\n"
35029 #: ../src/guestfs-structs.pod:36
35032 " struct guestfs_lvm_pv_list {\n"
35033 " uint32_t len; /* Number of elements in list. */\n"
35034 " struct guestfs_lvm_pv *val; /* Elements. */\n"
35040 #: ../src/guestfs-structs.pod:41
35043 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
35044 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
35049 #: ../src/guestfs-structs.pod:44
35050 msgid "guestfs_lvm_vg"
35054 #: ../src/guestfs-structs.pod:46
35057 " struct guestfs_lvm_vg {\n"
35058 " char *vg_name;\n"
35059 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35060 " char vg_uuid[32];\n"
35062 " char *vg_attr;\n"
35063 " uint64_t vg_size;\n"
35064 " uint64_t vg_free;\n"
35065 " char *vg_sysid;\n"
35066 " uint64_t vg_extent_size;\n"
35067 " int64_t vg_extent_count;\n"
35068 " int64_t vg_free_count;\n"
35069 " int64_t max_lv;\n"
35070 " int64_t max_pv;\n"
35071 " int64_t pv_count;\n"
35072 " int64_t lv_count;\n"
35073 " int64_t snap_count;\n"
35074 " int64_t vg_seqno;\n"
35075 " char *vg_tags;\n"
35076 " int64_t vg_mda_count;\n"
35077 " uint64_t vg_mda_free;\n"
35083 #: ../src/guestfs-structs.pod:69
35086 " struct guestfs_lvm_vg_list {\n"
35087 " uint32_t len; /* Number of elements in list. */\n"
35088 " struct guestfs_lvm_vg *val; /* Elements. */\n"
35094 #: ../src/guestfs-structs.pod:74
35097 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
35098 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
35103 #: ../src/guestfs-structs.pod:77
35104 msgid "guestfs_lvm_lv"
35108 #: ../src/guestfs-structs.pod:79
35111 " struct guestfs_lvm_lv {\n"
35112 " char *lv_name;\n"
35113 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35114 " char lv_uuid[32];\n"
35115 " char *lv_attr;\n"
35116 " int64_t lv_major;\n"
35117 " int64_t lv_minor;\n"
35118 " int64_t lv_kernel_major;\n"
35119 " int64_t lv_kernel_minor;\n"
35120 " uint64_t lv_size;\n"
35121 " int64_t seg_count;\n"
35123 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
35124 " float snap_percent;\n"
35125 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
35126 " float copy_percent;\n"
35127 " char *move_pv;\n"
35128 " char *lv_tags;\n"
35129 " char *mirror_log;\n"
35130 " char *modules;\n"
35136 #: ../src/guestfs-structs.pod:101
35139 " struct guestfs_lvm_lv_list {\n"
35140 " uint32_t len; /* Number of elements in list. */\n"
35141 " struct guestfs_lvm_lv *val; /* Elements. */\n"
35147 #: ../src/guestfs-structs.pod:106
35150 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
35151 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
35156 #: ../src/guestfs-structs.pod:111
35159 " struct guestfs_stat {\n"
35163 " int64_t nlink;\n"
35168 " int64_t blksize;\n"
35169 " int64_t blocks;\n"
35170 " int64_t atime;\n"
35171 " int64_t mtime;\n"
35172 " int64_t ctime;\n"
35178 #: ../src/guestfs-structs.pod:127
35181 " struct guestfs_stat_list {\n"
35182 " uint32_t len; /* Number of elements in list. */\n"
35183 " struct guestfs_stat *val; /* Elements. */\n"
35189 #: ../src/guestfs-structs.pod:132
35192 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
35193 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
35198 #: ../src/guestfs-structs.pod:137
35201 " struct guestfs_statvfs {\n"
35202 " int64_t bsize;\n"
35203 " int64_t frsize;\n"
35204 " int64_t blocks;\n"
35205 " int64_t bfree;\n"
35206 " int64_t bavail;\n"
35207 " int64_t files;\n"
35208 " int64_t ffree;\n"
35209 " int64_t favail;\n"
35212 " int64_t namemax;\n"
35218 #: ../src/guestfs-structs.pod:151
35221 " struct guestfs_statvfs_list {\n"
35222 " uint32_t len; /* Number of elements in list. */\n"
35223 " struct guestfs_statvfs *val; /* Elements. */\n"
35229 #: ../src/guestfs-structs.pod:156
35232 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
35233 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
35238 #: ../src/guestfs-structs.pod:159
35239 msgid "guestfs_dirent"
35243 #: ../src/guestfs-structs.pod:161
35246 " struct guestfs_dirent {\n"
35255 #: ../src/guestfs-structs.pod:167
35258 " struct guestfs_dirent_list {\n"
35259 " uint32_t len; /* Number of elements in list. */\n"
35260 " struct guestfs_dirent *val; /* Elements. */\n"
35266 #: ../src/guestfs-structs.pod:172
35269 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
35270 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
35275 #: ../src/guestfs-structs.pod:177
35278 " struct guestfs_version {\n"
35279 " int64_t major;\n"
35280 " int64_t minor;\n"
35281 " int64_t release;\n"
35288 #: ../src/guestfs-structs.pod:184
35291 " struct guestfs_version_list {\n"
35292 " uint32_t len; /* Number of elements in list. */\n"
35293 " struct guestfs_version *val; /* Elements. */\n"
35299 #: ../src/guestfs-structs.pod:189
35302 " void guestfs_free_version (struct guestfs_free_version *);\n"
35303 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
35308 #: ../src/guestfs-structs.pod:192
35309 msgid "guestfs_xattr"
35313 #: ../src/guestfs-structs.pod:194
35316 " struct guestfs_xattr {\n"
35317 " char *attrname;\n"
35318 " /* The next two fields describe a byte array. */\n"
35319 " uint32_t attrval_len;\n"
35320 " char *attrval;\n"
35326 #: ../src/guestfs-structs.pod:201
35329 " struct guestfs_xattr_list {\n"
35330 " uint32_t len; /* Number of elements in list. */\n"
35331 " struct guestfs_xattr *val; /* Elements. */\n"
35337 #: ../src/guestfs-structs.pod:206
35340 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
35341 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
35346 #: ../src/guestfs-structs.pod:209
35347 msgid "guestfs_inotify_event"
35351 #: ../src/guestfs-structs.pod:211
35354 " struct guestfs_inotify_event {\n"
35355 " int64_t in_wd;\n"
35356 " uint32_t in_mask;\n"
35357 " uint32_t in_cookie;\n"
35358 " char *in_name;\n"
35364 #: ../src/guestfs-structs.pod:218
35367 " struct guestfs_inotify_event_list {\n"
35368 " uint32_t len; /* Number of elements in list. */\n"
35369 " struct guestfs_inotify_event *val; /* Elements. */\n"
35375 #: ../src/guestfs-structs.pod:223
35378 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
35379 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
35384 #: ../src/guestfs-structs.pod:226
35385 msgid "guestfs_partition"
35389 #: ../src/guestfs-structs.pod:228
35392 " struct guestfs_partition {\n"
35393 " int32_t part_num;\n"
35394 " uint64_t part_start;\n"
35395 " uint64_t part_end;\n"
35396 " uint64_t part_size;\n"
35402 #: ../src/guestfs-structs.pod:235
35405 " struct guestfs_partition_list {\n"
35406 " uint32_t len; /* Number of elements in list. */\n"
35407 " struct guestfs_partition *val; /* Elements. */\n"
35413 #: ../src/guestfs-structs.pod:240
35416 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
35417 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
35422 #: ../src/guestfs-structs.pod:243
35423 msgid "guestfs_application"
35427 #: ../src/guestfs-structs.pod:245
35430 " struct guestfs_application {\n"
35431 " char *app_name;\n"
35432 " char *app_display_name;\n"
35433 " int32_t app_epoch;\n"
35434 " char *app_version;\n"
35435 " char *app_release;\n"
35436 " char *app_install_path;\n"
35437 " char *app_trans_path;\n"
35438 " char *app_publisher;\n"
35439 " char *app_url;\n"
35440 " char *app_source_package;\n"
35441 " char *app_summary;\n"
35442 " char *app_description;\n"
35448 #: ../src/guestfs-structs.pod:260
35451 " struct guestfs_application_list {\n"
35452 " uint32_t len; /* Number of elements in list. */\n"
35453 " struct guestfs_application *val; /* Elements. */\n"
35459 #: ../src/guestfs-structs.pod:265
35462 " void guestfs_free_application (struct guestfs_free_application *);\n"
35463 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
35468 #: ../src/guestfs.pod:5
35469 msgid "guestfs - Library for accessing and modifying virtual machine images"
35471 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
35475 #: ../src/guestfs.pod:11
35478 " guestfs_h *g = guestfs_create ();\n"
35479 " guestfs_add_drive (g, \"guest.img\");\n"
35480 " guestfs_launch (g);\n"
35481 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35482 " guestfs_touch (g, \"/hello\");\n"
35483 " guestfs_umount (g, \"/\");\n"
35484 " guestfs_close (g);\n"
35487 " guestfs_h *g = guestfs_create ();\n"
35488 " guestfs_add_drive (g, \"guest.img\");\n"
35489 " guestfs_launch (g);\n"
35490 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35491 " guestfs_touch (g, \"/hello\");\n"
35492 " guestfs_umount (g, \"/\");\n"
35493 " guestfs_close (g);\n"
35497 #: ../src/guestfs.pod:25
35499 "Libguestfs is a library for accessing and modifying guest disk images. "
35500 "Amongst the things this is good for: making batch configuration changes to "
35501 "guests, getting disk used/free statistics (see also: virt-df), migrating "
35502 "between virtualization systems (see also: virt-p2v), performing partial "
35503 "backups, performing partial guest clones, cloning guests and changing "
35504 "registry/UUID/hostname info, and much else besides."
35508 #: ../src/guestfs.pod:33
35510 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
35511 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
35512 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
35517 #: ../src/guestfs.pod:38
35519 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
35520 "what filesystem is in each LV, etc.). It can also run commands in the "
35521 "context of the guest. Also you can access filesystems over FUSE."
35525 #: ../src/guestfs.pod:43
35527 "Libguestfs is a library that can be linked with C and C++ management "
35528 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
35529 "PHP, Erlang, Haskell or C#). You can also use it from shell scripts or the "
35534 #: ../src/guestfs.pod:48
35536 "You don't need to be root to use libguestfs, although obviously you do need "
35537 "enough permissions to access the disk images."
35541 #: ../src/guestfs.pod:51
35543 "Libguestfs is a large API because it can do many things. For a gentle "
35544 "introduction, please read the L</API OVERVIEW> section next."
35548 #: ../src/guestfs.pod:54
35550 "There are also some example programs in the L<guestfs-examples(3)> manual "
35555 #: ../src/guestfs.pod:57
35556 msgid "API OVERVIEW"
35560 #: ../src/guestfs.pod:59
35562 "This section provides a gentler overview of the libguestfs API. We also try "
35563 "to group API calls together, where that may not be obvious from reading "
35564 "about the individual calls in the main section of this manual."
35568 #: ../src/guestfs.pod:64
35573 #: ../src/guestfs.pod:66
35575 "Before you can use libguestfs calls, you have to create a handle. Then you "
35576 "must add at least one disk image to the handle, followed by launching the "
35577 "handle, then performing whatever operations you want, and finally closing "
35578 "the handle. By convention we use the single letter C<g> for the name of the "
35579 "handle variable, although of course you can use any name you want."
35583 #: ../src/guestfs.pod:73
35584 msgid "The general structure of all libguestfs-using programs looks like this:"
35588 #: ../src/guestfs.pod:76
35591 " guestfs_h *g = guestfs_create ();\n"
35594 " guestfs_h *g = guestfs_create ();\n"
35598 #: ../src/guestfs.pod:78
35601 " /* Call guestfs_add_drive additional times if there are\n"
35602 " * multiple disk images.\n"
35604 " guestfs_add_drive (g, \"guest.img\");\n"
35609 #: ../src/guestfs.pod:83
35612 " /* Most manipulation calls won't work until you've launched\n"
35613 " * the handle 'g'. You have to do this _after_ adding drives\n"
35614 " * and _before_ other commands.\n"
35616 " guestfs_launch (g);\n"
35621 #: ../src/guestfs.pod:89
35624 " /* Now you can examine what partitions, LVs etc are available.\n"
35626 " char **partitions = guestfs_list_partitions (g);\n"
35627 " char **logvols = guestfs_lvs (g);\n"
35630 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
35632 " char **partitions = guestfs_list_partitions (g);\n"
35633 " char **logvols = guestfs_lvs (g);\n"
35637 #: ../src/guestfs.pod:94
35640 " /* To access a filesystem in the image, you must mount it.\n"
35642 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35645 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
35647 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35651 #: ../src/guestfs.pod:98
35654 " /* Now you can perform filesystem actions on the guest\n"
35657 " guestfs_touch (g, \"/hello\");\n"
35660 " /* Тепер ви можете виконувати дії з файловою системою на\n"
35661 " * образі диска операційної системи.\n"
35663 " guestfs_touch (g, \"/hello\");\n"
35667 #: ../src/guestfs.pod:103
35670 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
35671 " * it is done automatically when you close the handle. See\n"
35672 " * discussion of autosync in this page.\n"
35674 " guestfs_sync (g);\n"
35679 #: ../src/guestfs.pod:109
35682 " /* Close the handle 'g'. */\n"
35683 " guestfs_close (g);\n"
35686 " /* Закрити дескриптор 'g'. */\n"
35687 " guestfs_close (g);\n"
35691 #: ../src/guestfs.pod:112
35693 "The code above doesn't include any error checking. In real code you should "
35694 "check return values carefully for errors. In general all functions that "
35695 "return integers return C<-1> on error, and all functions that return "
35696 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
35697 "how to handle errors, and consult the documentation for each function call "
35698 "below to see precisely how they return error indications. See L<guestfs-"
35699 "examples(3)> for fully worked examples."
35703 #: ../src/guestfs.pod:121
35704 msgid "DISK IMAGES"
35705 msgstr "ОБРАЗИ ДИСКІВ"
35708 #: ../src/guestfs.pod:123
35710 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
35711 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
35712 "actual block device, or simply an empty file of zeroes that you have created "
35713 "through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
35718 #: ../src/guestfs.pod:129
35720 "The call you should use in modern code for adding drives is L</"
35721 "guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
35722 "specifying that the format is raw, do:"
35726 #: ../src/guestfs.pod:133
35729 " guestfs_add_drive_opts (g, filename,\n"
35730 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35734 " guestfs_add_drive_opts (g, filename,\n"
35735 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35740 #: ../src/guestfs.pod:137
35741 msgid "You can add a disk read-only using:"
35742 msgstr "Ви можете додати диск у режимі лише читання:"
35745 #: ../src/guestfs.pod:139
35748 " guestfs_add_drive_opts (g, filename,\n"
35749 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35750 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35754 " guestfs_add_drive_opts (g, filename,\n"
35755 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35756 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35761 #: ../src/guestfs.pod:144
35763 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
35764 "libguestfs won't modify the file."
35768 #: ../src/guestfs.pod:147
35770 "Be extremely cautious if the disk image is in use, eg. if it is being used "
35771 "by a virtual machine. Adding it read-write will almost certainly cause disk "
35772 "corruption, but adding it read-only is safe."
35776 #: ../src/guestfs.pod:151
35778 "You must add at least one disk image, and you may add multiple disk images. "
35779 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
35780 "first one you added), C</dev/sdb> (for the second one you added), etc."
35784 #: ../src/guestfs.pod:156
35786 "Once L</guestfs_launch> has been called you cannot add any more images. You "
35787 "can call L</guestfs_list_devices> to get a list of the device names, in the "
35788 "order that you added them. See also L</BLOCK DEVICE NAMING> below."
35792 #: ../src/guestfs.pod:161
35794 msgstr "МОНТУВАННЯ"
35797 #: ../src/guestfs.pod:163
35799 "Before you can read or write files, create directories and so on in a disk "
35800 "image that contains filesystems, you have to mount those filesystems using "
35801 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that "
35802 "a disk image contains (for example) one partition with a filesystem on that "
35803 "partition, then you can mount it directly:"
35807 #: ../src/guestfs.pod:170
35810 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35813 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35817 #: ../src/guestfs.pod:172
35819 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
35820 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
35821 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
35822 "that these are libguestfs virtual devices, and are nothing to do with host "
35827 #: ../src/guestfs.pod:178
35829 "If you are given a disk image and you don't know what it contains then you "
35830 "have to find out. Libguestfs can do that too: use L</"
35831 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
35832 "LVs, and either try mounting each to see what is mountable, or else examine "
35833 "them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
35834 "filesystems, use L</guestfs_list_filesystems>."
35838 #: ../src/guestfs.pod:186
35840 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
35841 "L</INSPECTION> below). But you might find it easier to look at higher level "
35842 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
35846 #: ../src/guestfs.pod:191
35848 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
35849 "several other variations of the C<guestfs_mount_*> call."
35853 #: ../src/guestfs.pod:194
35854 msgid "FILESYSTEM ACCESS AND MODIFICATION"
35855 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
35858 #: ../src/guestfs.pod:196
35860 "The majority of the libguestfs API consists of fairly low-level calls for "
35861 "accessing and modifying the files, directories, symlinks etc on mounted "
35862 "filesystems. There are over a hundred such calls which you can find listed "
35863 "in detail below in this man page, and we don't even pretend to cover them "
35864 "all in this overview."
35868 #: ../src/guestfs.pod:202
35870 "Specify filenames as full paths, starting with C<\"/\"> and including the "
35873 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
35874 "точкою монтування."
35877 #: ../src/guestfs.pod:205
35879 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
35880 "the file called C<\"etc/passwd\"> then you could do:"
35882 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
35883 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
35887 #: ../src/guestfs.pod:208
35890 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35893 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35897 #: ../src/guestfs.pod:210
35899 "This would return C<data> as a newly allocated buffer containing the full "
35900 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
35901 "or C<NULL> if there was an error."
35905 #: ../src/guestfs.pod:214
35907 "As another example, to create a top-level directory on that filesystem "
35908 "called C<\"var\"> you would do:"
35912 #: ../src/guestfs.pod:217
35915 " guestfs_mkdir (g, \"/var\");\n"
35918 " guestfs_mkdir (g, \"/var\");\n"
35922 #: ../src/guestfs.pod:219
35923 msgid "To create a symlink you could do:"
35924 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
35927 #: ../src/guestfs.pod:221
35930 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35931 " \"/etc/rc3.d/S30portmap\");\n"
35934 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35935 " \"/etc/rc3.d/S30portmap\");\n"
35939 #: ../src/guestfs.pod:224
35941 "Libguestfs will reject attempts to use relative paths and there is no "
35942 "concept of a current working directory."
35946 #: ../src/guestfs.pod:227
35948 "Libguestfs can return errors in many situations: for example if the "
35949 "filesystem isn't writable, or if a file or directory that you requested "
35950 "doesn't exist. If you are using the C API (documented here) you have to "
35951 "check for those error conditions after each call. (Other language bindings "
35952 "turn these errors into exceptions)."
35956 #: ../src/guestfs.pod:233
35958 "File writes are affected by the per-handle umask, set by calling L</"
35959 "guestfs_umask> and defaulting to 022. See L</UMASK>."
35963 #: ../src/guestfs.pod:236
35964 msgid "PARTITIONING"
35965 msgstr "ПОДІЛ НА РОЗДІЛИ"
35968 #: ../src/guestfs.pod:238
35970 "Libguestfs contains API calls to read, create and modify partition tables on "
35975 #: ../src/guestfs.pod:241
35977 "In the common case where you want to create a single partition covering the "
35978 "whole disk, you should use the L</guestfs_part_disk> call:"
35982 #: ../src/guestfs.pod:245
35985 " const char *parttype = \"mbr\";\n"
35986 " if (disk_is_larger_than_2TB)\n"
35987 " parttype = \"gpt\";\n"
35988 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35991 " const char *parttype = \"mbr\";\n"
35992 " if (disk_is_larger_than_2TB)\n"
35993 " parttype = \"gpt\";\n"
35994 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35998 #: ../src/guestfs.pod:250
36000 "Obviously this effectively wipes anything that was on that disk image before."
36004 #: ../src/guestfs.pod:253
36009 #: ../src/guestfs.pod:255
36011 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
36012 "guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense unless "
36013 "you familiarize yourself with the concepts of physical volumes, volume "
36014 "groups and logical volumes."
36018 #: ../src/guestfs.pod:260
36020 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
36021 "tldp.org/HOWTO/LVM-HOWTO/>."
36025 #: ../src/guestfs.pod:263
36026 msgid "DOWNLOADING"
36027 msgstr "ОТРИМАННЯ ДАНИХ"
36030 #: ../src/guestfs.pod:265
36032 "Use L</guestfs_cat> to download small, text only files. This call is "
36033 "limited to files which are less than 2 MB and which cannot contain any ASCII "
36034 "NUL (C<\\0>) characters. However the API is very simple to use."
36038 #: ../src/guestfs.pod:269
36040 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
36041 "bit data, since it returns a (pointer, size) pair. However it is still "
36042 "limited to \"small\" files, less than 2 MB."
36046 #: ../src/guestfs.pod:273
36048 "L</guestfs_download> can be used to download any file, with no limits on "
36049 "content or size (even files larger than 4 GB)."
36053 #: ../src/guestfs.pod:276
36055 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
36059 #: ../src/guestfs.pod:279
36061 msgstr "ВИВАНТАЖЕННЯ"
36064 #: ../src/guestfs.pod:281
36066 "It's often the case that you want to write a file or files to the disk image."
36070 #: ../src/guestfs.pod:284
36072 "To write a small file with fixed content, use L</guestfs_write>. To create "
36073 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
36074 "guestfs_fallocate64> (with all disk blocks allocated). There are a variety "
36075 "of other functions for creating test files, for example L</guestfs_fill> and "
36076 "L</guestfs_fill_pattern>."
36080 #: ../src/guestfs.pod:290
36082 "To upload a single file, use L</guestfs_upload>. This call has no limits on "
36083 "file content or size (even files larger than 4 GB)."
36087 #: ../src/guestfs.pod:293
36089 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
36093 #: ../src/guestfs.pod:295
36095 "However the fastest way to upload I<large numbers of arbitrary files> is to "
36096 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
36097 ">), then attach this using L</guestfs_add_drive_ro>. If you add the drive "
36098 "in a predictable way (eg. adding it last after all other drives) then you "
36099 "can get the device name from L</guestfs_list_devices> and mount it directly "
36100 "using L</guestfs_mount_ro>. Note that squashfs images are sometimes non-"
36101 "portable between kernel versions, and they don't support labels or UUIDs. "
36102 "If you want to pre-build an image or you need to mount it using a label or "
36103 "UUID, use an ISO image instead."
36107 #: ../src/guestfs.pod:306
36109 msgstr "КОПІЮВАННЯ"
36112 #: ../src/guestfs.pod:308
36114 "There are various different commands for copying between files and devices "
36115 "and in and out of the guest filesystem. These are summarised in the table "
36120 #: ../src/guestfs.pod:314
36121 msgid "B<file> to B<file>"
36122 msgstr "B<файл> у B<файл>"
36125 #: ../src/guestfs.pod:316
36127 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
36128 "directories recursively."
36132 #: ../src/guestfs.pod:319
36134 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
36138 #: ../src/guestfs.pod:322
36140 #| msgid "B<file> to B<file>"
36141 msgid "B<file> to B<device>"
36142 msgstr "B<файл> у B<файл>"
36145 #: ../src/guestfs.pod:324
36147 #| msgid "B<file> to B<file>"
36148 msgid "B<device> to B<file>"
36149 msgstr "B<файл> у B<файл>"
36152 #: ../src/guestfs.pod:326
36154 #| msgid "B<file or device> to B<file or device>"
36155 msgid "B<device> to B<device>"
36156 msgstr "B<файл або пристрій> у B<файл або пристрій>"
36159 #: ../src/guestfs.pod:328
36161 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
36162 "guestfs_copy_device_to_device>."
36166 #: ../src/guestfs.pod:331
36167 msgid "Example: duplicate the contents of an LV:"
36171 #: ../src/guestfs.pod:333
36174 " guestfs_copy_device_to_device (g,\n"
36175 " \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36176 " /* -1 marks the end of the list of optional parameters */\n"
36182 #: ../src/guestfs.pod:338
36184 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
36185 "(C</dev/VG/Original>). To copy less than the whole source device, use the "
36186 "optional C<size> parameter:"
36190 #: ../src/guestfs.pod:342
36193 " guestfs_copy_device_to_device (g,\n"
36194 " \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36195 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
36201 #: ../src/guestfs.pod:347
36202 msgid "B<file on the host> to B<file or device>"
36206 #: ../src/guestfs.pod:349
36207 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
36211 #: ../src/guestfs.pod:351
36212 msgid "B<file or device> to B<file on the host>"
36216 #: ../src/guestfs.pod:353
36217 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
36221 #: ../src/guestfs.pod:357
36222 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
36226 #: ../src/guestfs.pod:359
36228 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
36229 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
36230 "appears you can only upload and download to files. However many Un*x-like "
36231 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
36232 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
36233 "and arbitrary file descriptor N."
36237 #: ../src/guestfs.pod:367
36238 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
36242 #: ../src/guestfs.pod:370
36245 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36248 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36252 #: ../src/guestfs.pod:372
36253 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
36257 #: ../src/guestfs.pod:374
36260 " char devfd[64];\n"
36261 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36262 " guestfs_tar_out (g, \"/\", devfd);\n"
36265 " char devfd[64];\n"
36266 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36267 " guestfs_tar_out (g, \"/\", devfd);\n"
36271 #: ../src/guestfs.pod:378
36272 msgid "LISTING FILES"
36273 msgstr "СПИСКИ ФАЙЛІВ"
36276 #: ../src/guestfs.pod:380
36278 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
36279 "L<guestfish(1)>-equivalent command C<ll>)."
36283 #: ../src/guestfs.pod:383
36285 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
36286 "programs, as a flat list of strings."
36290 #: ../src/guestfs.pod:386
36292 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
36293 "directory, plus additional information about each one. It is more "
36294 "equivalent to using the L<readdir(3)> call on a local filesystem."
36298 #: ../src/guestfs.pod:390
36300 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
36304 #: ../src/guestfs.pod:393
36305 msgid "RUNNING COMMANDS"
36306 msgstr "ВИКОНАННЯ КОМАНД"
36309 #: ../src/guestfs.pod:395
36311 "Although libguestfs is primarily an API for manipulating files inside guest "
36312 "images, we also provide some limited facilities for running commands inside "
36317 #: ../src/guestfs.pod:399
36318 msgid "There are many limitations to this:"
36322 #: ../src/guestfs.pod:405
36324 "The kernel version that the command runs under will be different from what "
36329 #: ../src/guestfs.pod:410
36331 "If the command needs to communicate with daemons, then most likely they "
36332 "won't be running."
36336 #: ../src/guestfs.pod:415
36337 msgid "The command will be running in limited memory."
36341 #: ../src/guestfs.pod:419
36343 "The network may not be available unless you enable it (see L</"
36344 "guestfs_set_network>)."
36348 #: ../src/guestfs.pod:424
36349 msgid "Only supports Linux guests (not Windows, BSD, etc)."
36353 #: ../src/guestfs.pod:428
36355 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
36359 #: ../src/guestfs.pod:433
36361 "For SELinux guests, you may need to enable SELinux and load policy first. "
36362 "See L</SELINUX> in this manpage."
36366 #: ../src/guestfs.pod:438
36368 "I<Security:> It is not safe to run commands from untrusted, possibly "
36369 "malicious guests. These commands may attempt to exploit your program by "
36370 "sending unexpected output. They could also try to exploit the Linux kernel "
36371 "or qemu provided by the libguestfs appliance. They could use the network "
36372 "provided by the libguestfs appliance to bypass ordinary network partitions "
36373 "and firewalls. They could use the elevated privileges or different SELinux "
36374 "context of your program to their advantage."
36378 #: ../src/guestfs.pod:447
36380 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
36381 "(a script which runs when the guest next boots normally), and to have this "
36382 "script run the commands you want in the normal context of the running guest, "
36383 "network security and so on. For information about other security issues, "
36384 "see L</SECURITY>."
36388 #: ../src/guestfs.pod:455
36390 "The two main API calls to run commands are L</guestfs_command> and L</"
36391 "guestfs_sh> (there are also variations)."
36395 #: ../src/guestfs.pod:458
36397 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
36398 "shell globs, redirections, etc will work."
36402 #: ../src/guestfs.pod:461
36403 msgid "CONFIGURATION FILES"
36404 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
36407 #: ../src/guestfs.pod:463
36409 "To read and write configuration files in Linux guest filesystems, we "
36410 "strongly recommend using Augeas. For example, Augeas understands how to "
36411 "read and write, say, a Linux shadow password file or X.org configuration "
36412 "file, and so avoids you having to write that code."
36416 #: ../src/guestfs.pod:468
36418 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
36419 "document Augeas itself here because there is excellent documentation on the "
36420 "L<http://augeas.net/> website."
36424 #: ../src/guestfs.pod:472
36426 "If you don't want to use Augeas (you fool!) then try calling L</"
36427 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
36432 #: ../src/guestfs.pod:476
36437 #: ../src/guestfs.pod:478
36439 "We support SELinux guests. To ensure that labeling happens correctly in "
36440 "SELinux guests, you need to enable SELinux and load the guest's policy:"
36444 #: ../src/guestfs.pod:486
36445 msgid "Before launching, do:"
36449 #: ../src/guestfs.pod:488
36452 " guestfs_set_selinux (g, 1);\n"
36455 " guestfs_set_selinux (g, 1);\n"
36459 #: ../src/guestfs.pod:492
36461 "After mounting the guest's filesystem(s), load the policy. This is best "
36462 "done by running the L<load_policy(8)> command in the guest itself:"
36466 #: ../src/guestfs.pod:496
36469 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
36472 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
36476 #: ../src/guestfs.pod:498
36478 "(Older versions of C<load_policy> require you to specify the name of the "
36483 #: ../src/guestfs.pod:503
36485 "Optionally, set the security context for the API. The correct security "
36486 "context to use can only be known by inspecting the guest. As an example:"
36490 #: ../src/guestfs.pod:507
36493 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
36496 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
36500 #: ../src/guestfs.pod:511
36501 msgid "This will work for running commands and editing existing files."
36505 #: ../src/guestfs.pod:513
36507 "When new files are created, you may need to label them explicitly, for "
36508 "example by running the external command C<restorecon pathname>."
36512 #: ../src/guestfs.pod:517
36517 #: ../src/guestfs.pod:519
36519 "Certain calls are affected by the current file mode creation mask (the "
36520 "\"umask\"). In particular ones which create files or directories, such as "
36521 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
36522 "either the default mode that the file is created with or modifies the mode "
36527 #: ../src/guestfs.pod:525
36529 "The default umask is C<022>, so files are created with modes such as C<0644> "
36530 "and directories with C<0755>."
36534 #: ../src/guestfs.pod:528
36536 "There are two ways to avoid being affected by umask. Either set umask to 0 "
36537 "(call C<guestfs_umask (g, 0)> early after launching). Or call L</"
36538 "guestfs_chmod> after creating each file or directory."
36542 #: ../src/guestfs.pod:532
36543 msgid "For more information about umask, see L<umask(2)>."
36547 #: ../src/guestfs.pod:536
36549 "Libguestfs allows you to access Linux guests which have been encrypted using "
36550 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
36551 "standard. This includes nearly all whole disk encryption systems used by "
36552 "modern Linux guests."
36556 #: ../src/guestfs.pod:542
36558 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
36559 "returns the string C<crypto_LUKS>)."
36563 #: ../src/guestfs.pod:545
36565 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
36566 "will require the passphrase!"
36570 #: ../src/guestfs.pod:548
36572 "Opening a LUKS device creates a new device mapper device called C</dev/"
36573 "mapper/mapname> (where C<mapname> is the string you supply to L</"
36574 "guestfs_luks_open>). Reads and writes to this mapper device are decrypted "
36575 "from and encrypted to the underlying block device respectively."
36579 #: ../src/guestfs.pod:554
36581 "LVM volume groups on the device can be made visible by calling L</"
36582 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical volume"
36583 "(s) can now be mounted in the usual way."
36587 #: ../src/guestfs.pod:558
36589 "Use the reverse process to close a LUKS device. Unmount any logical volumes "
36590 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
36591 "[\"/dev/VG\"])>. Then close the mapper device by calling L</"
36592 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
36593 "underlying encrypted block device)."
36597 #: ../src/guestfs.pod:565
36602 #: ../src/guestfs.pod:567
36604 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
36605 "contains operating systems, an install CD or a live CD. (These APIs used to "
36606 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
36607 "version 1.5.3 the most frequently used part of this library has been "
36608 "rewritten in C and moved into the core code)."
36612 #: ../src/guestfs.pod:574
36614 "Add all disks belonging to the unknown virtual machine and call L</"
36615 "guestfs_launch> in the usual way."
36619 #: ../src/guestfs.pod:577
36621 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
36622 "and certain heuristics, and returns a list of operating systems that were "
36623 "found. An empty list means none were found. A single element is the root "
36624 "filesystem of the operating system. For dual- or multi-boot guests, "
36625 "multiple roots can be returned, each one corresponding to a separate "
36626 "operating system. (Multi-boot virtual machines are extremely rare in the "
36627 "world of virtualization, but since this scenario can happen, we have built "
36628 "libguestfs to deal with it.)"
36632 #: ../src/guestfs.pod:586
36634 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
36635 "to get additional details about that operating system. For example, call L</"
36636 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
36637 "Windows and Linux-based operating systems respectively."
36641 #: ../src/guestfs.pod:592
36643 "Un*x-like and Linux-based operating systems usually consist of several "
36644 "filesystems which are mounted at boot time (for example, a separate boot "
36645 "partition mounted on C</boot>). The inspection rules are able to detect how "
36646 "filesystems correspond to mount points. Call "
36647 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
36648 "hash table like this example:"
36652 #: ../src/guestfs.pod:599
36655 " /boot => /dev/sda1\n"
36656 " / => /dev/vg_guest/lv_root\n"
36657 " /usr => /dev/vg_guest/lv_usr\n"
36660 " /boot => /dev/sda1\n"
36661 " / => /dev/vg_guest/lv_root\n"
36662 " /usr => /dev/vg_guest/lv_usr\n"
36666 #: ../src/guestfs.pod:603
36668 "The caller can then make calls to L</guestfs_mount_options> to mount the "
36669 "filesystems as suggested."
36673 #: ../src/guestfs.pod:606
36675 "Be careful to mount filesystems in the right order (eg. C</> before C</"
36676 "usr>). Sorting the keys of the hash by length, shortest first, should work."
36680 #: ../src/guestfs.pod:610
36682 "Inspection currently only works for some common operating systems. "
36683 "Contributors are welcome to send patches for other operating systems that we "
36684 "currently cannot detect."
36688 #: ../src/guestfs.pod:614
36690 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
36691 "for more details. The L</guestfs_inspect_os> function just ignores any "
36692 "encrypted devices."
36696 #: ../src/guestfs.pod:618
36698 "A note on the implementation: The call L</guestfs_inspect_os> performs "
36699 "inspection and caches the results in the guest handle. Subsequent calls to "
36700 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
36701 "read the disks. If you change the content of the guest disks, you can redo "
36702 "inspection by calling L</guestfs_inspect_os> again. (L</"
36703 "guestfs_inspect_list_applications> works a little differently from the other "
36704 "calls and does read the disks. See documentation for that function for "
36709 #: ../src/guestfs.pod:627
36710 msgid "INSPECTING INSTALL DISKS"
36714 #: ../src/guestfs.pod:629
36716 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
36721 #: ../src/guestfs.pod:632
36723 "Call L</guestfs_inspect_get_format> to return the format of the operating "
36724 "system, which currently can be C<installed> (a regular operating system) or "
36725 "C<installer> (some sort of install disk)."
36729 #: ../src/guestfs.pod:636
36731 "Further information is available about the operating system that can be "
36732 "installed using the regular inspection APIs like L</"
36733 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
36737 #: ../src/guestfs.pod:641
36739 "Some additional information specific to installer disks is also available "
36740 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
36741 "guestfs_inspect_is_multipart> calls."
36745 #: ../src/guestfs.pod:646
36746 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
36750 #: ../src/guestfs.pod:648
36752 "Libguestfs can mount NTFS partitions. It does this using the L<http://www."
36753 "ntfs-3g.org/> driver."
36757 #: ../src/guestfs.pod:651
36758 msgid "DRIVE LETTERS AND PATHS"
36759 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
36762 #: ../src/guestfs.pod:653
36764 "DOS and Windows still use drive letters, and the filesystems are always "
36765 "treated as case insensitive by Windows itself, and therefore you might find "
36766 "a Windows configuration file referring to a path like C<c:\\windows"
36767 "\\system32>. When the filesystem is mounted in libguestfs, that directory "
36768 "might be referred to as C</WINDOWS/System32>."
36772 #: ../src/guestfs.pod:659
36774 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
36775 "L</guestfs_inspect_get_drive_mappings>)"
36779 #: ../src/guestfs.pod:662
36781 "Dealing with separator characters (backslash vs forward slash) is outside "
36782 "the scope of libguestfs, but usually a simple character replacement will "
36787 #: ../src/guestfs.pod:666
36789 "To resolve the case insensitivity of paths, call L</"
36790 "guestfs_case_sensitive_path>."
36794 #: ../src/guestfs.pod:669
36795 msgid "ACCESSING THE WINDOWS REGISTRY"
36796 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
36799 #: ../src/guestfs.pod:671
36801 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
36802 "files, through the library C<hivex> which is part of the libguestfs project "
36803 "although ships as a separate tarball. You have to locate and download the "
36804 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
36805 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
36806 "reg(1)> for more help on this issue."
36810 #: ../src/guestfs.pod:679
36811 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
36812 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
36815 #: ../src/guestfs.pod:681
36817 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
36818 "provide something which looks like a Linux symlink. The way it tries to do "
36819 "the rewriting is described here:"
36823 #: ../src/guestfs.pod:685
36825 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36828 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36832 #: ../src/guestfs.pod:687
36834 "The essential problem is that ntfs-3g simply does not have enough "
36835 "information to do a correct job. NTFS links can contain drive letters and "
36836 "references to external device GUIDs that ntfs-3g has no way of resolving. "
36837 "It is almost certainly the case that libguestfs callers should ignore what "
36838 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
36842 #: ../src/guestfs.pod:694
36844 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
36845 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
36846 "attribute, and read the raw reparse data from that (you can find the format "
36847 "documented in various places around the web)."
36851 #: ../src/guestfs.pod:699
36852 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
36856 #: ../src/guestfs.pod:701
36858 "There are other useful extended attributes that can be read from ntfs-3g "
36859 "filesystems (using L</guestfs_getxattr>). See:"
36863 #: ../src/guestfs.pod:704
36865 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36867 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36870 #: ../src/guestfs.pod:706
36871 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
36872 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
36875 #: ../src/guestfs.pod:708
36877 "Although we don't want to discourage you from using the C API, we will "
36878 "mention here that the same API is also available in other languages."
36882 #: ../src/guestfs.pod:711
36884 "The API is broadly identical in all supported languages. This means that "
36885 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
36886 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
36887 "OCaml. In other words, a straightforward, predictable isomorphism between "
36892 #: ../src/guestfs.pod:717
36894 "Error messages are automatically transformed into exceptions if the language "
36899 #: ../src/guestfs.pod:720
36901 "We don't try to \"object orientify\" parts of the API in OO languages, "
36902 "although contributors are welcome to write higher level APIs above what we "
36903 "provide in their favourite languages if they wish."
36907 #: ../src/guestfs.pod:726
36912 #: ../src/guestfs.pod:728
36914 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
36915 "identical to the C API. C++ classes and exceptions are not used."
36919 #: ../src/guestfs.pod:732
36924 #: ../src/guestfs.pod:734
36926 "The C# bindings are highly experimental. Please read the warnings at the "
36927 "top of C<csharp/Libguestfs.cs>."
36931 #: ../src/guestfs.pod:737
36936 #: ../src/guestfs.pod:739
36937 msgid "See L<guestfs-erlang(3)>."
36941 #: ../src/guestfs.pod:741
36943 msgstr "B<Haskell>"
36946 #: ../src/guestfs.pod:743
36948 "This is the only language binding that is working but incomplete. Only "
36949 "calls which return simple integers have been bound in Haskell, and we are "
36950 "looking for help to complete this binding."
36954 #: ../src/guestfs.pod:747
36959 #: ../src/guestfs.pod:749
36961 "Full documentation is contained in the Javadoc which is distributed with "
36962 "libguestfs. For examples, see L<guestfs-java(3)>."
36966 #: ../src/guestfs.pod:752
36971 #: ../src/guestfs.pod:754
36972 msgid "See L<guestfs-ocaml(3)>."
36973 msgstr "Див. L<guestfs-ocaml(3)>."
36976 #: ../src/guestfs.pod:756
36981 #: ../src/guestfs.pod:758
36982 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
36983 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
36986 #: ../src/guestfs.pod:760
36991 #: ../src/guestfs.pod:762
36993 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
36994 "the php-libguestfs package for your distribution."
36998 #: ../src/guestfs.pod:765
36999 msgid "The PHP binding only works correctly on 64 bit machines."
37003 #: ../src/guestfs.pod:767
37008 #: ../src/guestfs.pod:769
37009 msgid "See L<guestfs-python(3)>."
37010 msgstr "Див. L<guestfs-python(3)>."
37013 #: ../src/guestfs.pod:771
37018 #: ../src/guestfs.pod:773
37019 msgid "See L<guestfs-ruby(3)>."
37020 msgstr "Див. L<guestfs-ruby(3)>."
37023 #: ../src/guestfs.pod:775
37024 msgid "B<shell scripts>"
37025 msgstr "B<скрипти оболонки>"
37028 #: ../src/guestfs.pod:777
37029 msgid "See L<guestfish(1)>."
37030 msgstr "Див. L<guestfish(1)>."
37033 #: ../src/guestfs.pod:781
37034 msgid "LIBGUESTFS GOTCHAS"
37038 #: ../src/guestfs.pod:783
37040 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
37041 "system [...] that works in the way it is documented but is counterintuitive "
37042 "and almost invites mistakes.\""
37046 #: ../src/guestfs.pod:787
37048 "Since we developed libguestfs and the associated tools, there are several "
37049 "things we would have designed differently, but are now stuck with for "
37050 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
37051 "release, you can expect these to change. Beware of them."
37055 #: ../src/guestfs.pod:795
37056 msgid "Autosync / forgetting to sync."
37060 #: ../src/guestfs.pod:797
37062 "I<Update:> Autosync is enabled by default for all API users starting from "
37063 "libguestfs 1.5.24. This section only applies to older versions."
37067 #: ../src/guestfs.pod:800
37069 "When modifying a filesystem from C or another language, you B<must> unmount "
37070 "all filesystems and call L</guestfs_sync> explicitly before you close the "
37071 "libguestfs handle. You can also call:"
37075 #: ../src/guestfs.pod:804
37078 " guestfs_set_autosync (g, 1);\n"
37081 " guestfs_set_autosync (g, 1);\n"
37085 #: ../src/guestfs.pod:806
37087 "to have the unmount/sync done automatically for you when the handle 'g' is "
37088 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
37092 #: ../src/guestfs.pod:810
37094 "If you forget to do this, then it is entirely possible that your changes "
37095 "won't be written out, or will be partially written, or (very rarely) that "
37096 "you'll get disk corruption."
37100 #: ../src/guestfs.pod:814
37102 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
37103 "guestfish scripts that forget to sync will work just fine, which can make "
37104 "this very puzzling if you are trying to debug a problem."
37108 #: ../src/guestfs.pod:818
37109 msgid "Mount option C<-o sync> should not be the default."
37113 #: ../src/guestfs.pod:820
37115 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
37116 "libguestfs 1.13.16. This section only applies to older versions."
37120 #: ../src/guestfs.pod:823
37122 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
37123 "However C<-o sync> does not add any reliability benefit, but does have a "
37124 "very large performance impact."
37128 #: ../src/guestfs.pod:827
37130 "The work around is to use L</guestfs_mount_options> and set the mount "
37131 "options that you actually want to use."
37135 #: ../src/guestfs.pod:830
37136 msgid "Read-only should be the default."
37140 #: ../src/guestfs.pod:832
37142 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
37143 "specify I<--rw> if you want to make changes to the image."
37147 #: ../src/guestfs.pod:835
37148 msgid "This would reduce the potential to corrupt live VM images."
37152 #: ../src/guestfs.pod:837
37154 "Note that many filesystems change the disk when you just mount and unmount, "
37155 "even if you didn't perform any writes. You need to use L</"
37156 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
37160 #: ../src/guestfs.pod:841
37161 msgid "guestfish command line is hard to use."
37165 #: ../src/guestfs.pod:843
37167 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
37168 "examination). It tries to run a guestfish command C<disk.img> which doesn't "
37169 "exist, so it fails. In earlier versions of guestfish the error message was "
37170 "also unintuitive, but we have corrected this since. Like the Bourne shell, "
37171 "we should have used C<guestfish -c command> to run commands."
37175 #: ../src/guestfs.pod:850
37176 msgid "guestfish megabyte modifiers don't work right on all commands"
37180 #: ../src/guestfs.pod:852
37182 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
37183 "other modifiers). What guestfish actually does is to multiply the number "
37184 "part by the modifier part and pass the result to the C API. However this "
37185 "doesn't work for a few APIs which aren't expecting bytes, but are already "
37186 "expecting some other unit (eg. megabytes)."
37190 #: ../src/guestfs.pod:859
37191 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
37195 #: ../src/guestfs.pod:861
37198 " lvcreate LV VG 100M\n"
37201 " lvcreate LV VG 100M\n"
37205 #: ../src/guestfs.pod:863
37207 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
37208 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
37209 "megabytes * megabytes) logical volume. The error message you get from this "
37210 "is also a little obscure."
37214 #: ../src/guestfs.pod:868
37216 "This could be fixed in the generator by specially marking parameters and "
37217 "return values which take bytes or other units."
37221 #: ../src/guestfs.pod:871
37222 msgid "Ambiguity between devices and paths"
37226 #: ../src/guestfs.pod:873
37228 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
37229 "sdb2>) and a similar pathname. A file might just happen to be called "
37230 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
37234 #: ../src/guestfs.pod:878
37236 "In the current API we usually resolve this ambiguity by having two separate "
37237 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
37238 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
37239 "detecting if the path supplied begins with C</dev/>."
37243 #: ../src/guestfs.pod:884
37245 "To avoid both the ambiguity and the need to duplicate some calls, we could "
37246 "make paths/devices into structured names. One way to do this would be to "
37247 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
37248 "aspect of grub. Another way would be to use a structured type, equivalent "
37249 "to this OCaml type:"
37253 #: ../src/guestfs.pod:890
37256 " type path = Path of string | Device of int | Partition of int * int\n"
37261 #: ../src/guestfs.pod:892
37262 msgid "which would allow you to pass arguments like:"
37266 #: ../src/guestfs.pod:894
37269 " Path \"/foo/bar\"\n"
37270 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
37271 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
37272 " Path \"/dev/sdb2\" (* not a device *)\n"
37277 #: ../src/guestfs.pod:899
37279 "As you can see there are still problems to resolve even with this "
37280 "representation. Also consider how it might work in guestfish."
37284 #: ../src/guestfs.pod:904
37285 msgid "KEYS AND PASSPHRASES"
37286 msgstr "КЛЮЧІ І ПАРОЛІ"
37289 #: ../src/guestfs.pod:906
37291 "Certain libguestfs calls take a parameter that contains sensitive key "
37292 "material, passed in as a C string."
37296 #: ../src/guestfs.pod:909
37298 "In the future we would hope to change the libguestfs implementation so that "
37299 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
37300 "swap. However this is I<not> done at the moment, because of the complexity "
37301 "of such an implementation."
37305 #: ../src/guestfs.pod:914
37307 "Therefore you should be aware that any key parameter you pass to libguestfs "
37308 "might end up being written out to the swap partition. If this is a concern, "
37309 "scrub the swap partition or don't use libguestfs on encrypted devices."
37313 #: ../src/guestfs.pod:919
37314 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
37318 #: ../src/guestfs.pod:921
37320 "All high-level libguestfs actions are synchronous. If you want to use "
37321 "libguestfs asynchronously then you must create a thread."
37325 #: ../src/guestfs.pod:924
37327 "Only use the handle from a single thread. Either use the handle exclusively "
37328 "from one thread, or provide your own mutex so that two threads cannot issue "
37329 "calls on the same handle at the same time."
37333 #: ../src/guestfs.pod:928
37335 "See the graphical program guestfs-browser for one possible architecture for "
37336 "multithreaded programs using libvirt and libguestfs."
37340 #: ../src/guestfs.pod:931
37345 #: ../src/guestfs.pod:933
37347 "Libguestfs needs a supermin appliance, which it finds by looking along an "
37352 #: ../src/guestfs.pod:936
37354 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
37355 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
37359 #: ../src/guestfs.pod:939
37361 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
37362 "to change the directories that libguestfs will search in. The value is a "
37363 "colon-separated list of paths. The current directory is I<not> searched "
37364 "unless the path contains an empty element or C<.>. For example "
37365 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
37366 "then C</usr/lib/guestfs>."
37370 #: ../src/guestfs.pod:946
37371 msgid "QEMU WRAPPERS"
37375 #: ../src/guestfs.pod:948
37377 "If you want to compile your own qemu, run qemu from a non-standard location, "
37378 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
37383 #: ../src/guestfs.pod:952
37385 "There is one important rule to remember: you I<must C<exec qemu>> as the "
37386 "last command in the shell script (so that qemu replaces the shell and "
37387 "becomes the direct child of the libguestfs-using program). If you don't do "
37388 "this, then the qemu process won't be cleaned up correctly."
37392 #: ../src/guestfs.pod:957
37394 "Here is an example of a wrapper, where I have built my own copy of qemu from "
37399 #: ../src/guestfs.pod:960
37403 " qemudir=/home/rjones/d/qemu\n"
37404 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
37408 " qemudir=/home/rjones/d/qemu\n"
37409 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
37413 #: ../src/guestfs.pod:964
37415 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
37416 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
37421 #: ../src/guestfs.pod:968
37424 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
37427 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
37431 #: ../src/guestfs.pod:970
37433 "Note that libguestfs also calls qemu with the -help and -version options in "
37434 "order to determine features."
37438 #: ../src/guestfs.pod:973
37440 "Wrappers can also be used to edit the options passed to qemu. In the "
37441 "following example, the C<-machine ...> option (C<-machine> and the following "
37442 "argument) are removed from the command line and replaced with C<-machine pc,"
37443 "accel=tcg>. The while loop iterates over the options until it finds the "
37444 "right one to remove, putting the remaining options into the C<args> array."
37448 #: ../src/guestfs.pod:982
37452 " while [ $# -gt 0 ]; do\n"
37453 " case \"$1\" in\n"
37457 " args[i]=\"$1\"\n"
37466 #: ../src/guestfs.pod:994
37469 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
37474 #: ../src/guestfs.pod:996
37475 msgid "ATTACHING TO RUNNING DAEMONS"
37476 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
37479 #: ../src/guestfs.pod:998
37481 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
37482 "babies. Use with caution."
37486 #: ../src/guestfs.pod:1001
37488 "I<Note (2):> This section explains how to attach to a running daemon from a "
37489 "low level perspective. For most users, simply using virt tools such as "
37490 "L<guestfish(1)> with the I<--live> option will \"just work\"."
37494 #: ../src/guestfs.pod:1005
37495 msgid "Using guestfs_set_attach_method"
37496 msgstr "За допомогою guestfs_set_attach_method"
37499 #: ../src/guestfs.pod:1007
37501 "By calling L</guestfs_set_attach_method> you can change how the library "
37502 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
37503 "ARCHITECTURE> for some background)."
37507 #: ../src/guestfs.pod:1011
37509 "The normal attach method is C<appliance>, where a small appliance is created "
37510 "containing the daemon, and then the library connects to this."
37514 #: ../src/guestfs.pod:1014
37516 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
37517 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
37518 "daemon over the Unix domain socket."
37522 #: ../src/guestfs.pod:1018
37524 "The normal use for this is to connect to a running virtual machine that "
37525 "contains a C<guestfsd> daemon, and send commands so you can read and write "
37526 "files inside the live virtual machine."
37530 #: ../src/guestfs.pod:1022
37531 msgid "Using guestfs_add_domain with live flag"
37532 msgstr "За допомогою guestfs_add_domain з прапорцем live"
37535 #: ../src/guestfs.pod:1024
37537 "L</guestfs_add_domain> provides some help for getting the correct attach "
37538 "method. If you pass the C<live> option to this function, then (if the "
37539 "virtual machine is running) it will examine the libvirt XML looking for a "
37540 "virtio-serial channel to connect to:"
37544 #: ../src/guestfs.pod:1030
37551 " <channel type='unix'>\n"
37552 " <source mode='bind' path='/path/to/socket'/>\n"
37553 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37564 " <channel type='unix'>\n"
37565 " <source mode='bind' path='/path/to/socket'/>\n"
37566 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37574 #: ../src/guestfs.pod:1042
37576 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
37577 "method to C<unix:/path/to/socket>."
37581 #: ../src/guestfs.pod:1045
37583 "Some of the libguestfs tools (including guestfish) support a I<--live> "
37584 "option which is passed through to L</guestfs_add_domain> thus allowing you "
37585 "to attach to and modify live virtual machines."
37589 #: ../src/guestfs.pod:1049
37591 "The virtual machine needs to have been set up beforehand so that it has the "
37592 "virtio-serial channel and so that guestfsd is running inside it."
37596 #: ../src/guestfs.pod:1053
37597 msgid "ABI GUARANTEE"
37598 msgstr "ГАРАНТІЯ ЩОДО ABI"
37601 #: ../src/guestfs.pod:1055
37603 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
37604 "actions as outlined in this section. Although we will deprecate some "
37605 "actions, for example if they get replaced by newer calls, we will keep the "
37606 "old actions forever. This allows you the developer to program in confidence "
37607 "against the libguestfs API."
37611 #: ../src/guestfs.pod:1061
37612 msgid "BLOCK DEVICE NAMING"
37613 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
37616 #: ../src/guestfs.pod:1063
37618 "In the kernel there is now quite a profusion of schemata for naming block "
37619 "devices (in this context, by I<block device> I mean a physical or virtual "
37620 "hard drive). The original Linux IDE driver used names starting with C</dev/"
37621 "hd*>. SCSI devices have historically used a different naming scheme, C</dev/"
37622 "sd*>. When the Linux kernel I<libata> driver became a popular replacement "
37623 "for the old IDE driver (particularly for SATA devices) those devices also "
37624 "used the C</dev/sd*> scheme. Additionally we now have virtual machines with "
37625 "paravirtualized drivers. This has created several different naming systems, "
37626 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
37630 #: ../src/guestfs.pod:1075
37632 "As discussed above, libguestfs uses a qemu appliance running an embedded "
37633 "Linux kernel to access block devices. We can run a variety of appliances "
37634 "based on a variety of Linux kernels."
37638 #: ../src/guestfs.pod:1079
37640 "This causes a problem for libguestfs because many API calls use device or "
37641 "partition names. Working scripts and the recipe (example) scripts that we "
37642 "make available over the internet could fail if the naming scheme changes."
37646 #: ../src/guestfs.pod:1084
37648 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
37649 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
37650 "required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
37651 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
37655 #: ../src/guestfs.pod:1090
37657 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
37658 "L</guestfs_list_partitions> and similar calls return the true names of the "
37659 "devices and partitions as known to the appliance."
37663 #: ../src/guestfs.pod:1095
37664 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
37668 #: ../src/guestfs.pod:1097
37670 "Usually this translation is transparent. However in some (very rare) cases "
37671 "you may need to know the exact algorithm. Such cases include where you use "
37672 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
37673 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
37677 #: ../src/guestfs.pod:1103
37679 "The algorithm is applied only to I<parameters> which are known to be either "
37680 "device or partition names. Return values from functions such as L</"
37681 "guestfs_list_devices> are never changed."
37685 #: ../src/guestfs.pod:1111
37686 msgid "Is the string a parameter which is a device or partition name?"
37690 #: ../src/guestfs.pod:1115
37691 msgid "Does the string begin with C</dev/sd>?"
37692 msgstr "Чи починається рядок з C</dev/sd>?"
37695 #: ../src/guestfs.pod:1119
37697 "Does the named device exist? If so, we use that device. However if I<not> "
37698 "then we continue with this algorithm."
37702 #: ../src/guestfs.pod:1124
37703 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
37707 #: ../src/guestfs.pod:1126
37708 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
37712 #: ../src/guestfs.pod:1128
37713 msgid "If that named device exists, use it. If not, continue."
37717 #: ../src/guestfs.pod:1132
37718 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
37722 #: ../src/guestfs.pod:1134
37723 msgid "If that named device exists, use it. If not, return an error."
37727 #: ../src/guestfs.pod:1138
37728 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
37732 #: ../src/guestfs.pod:1140
37734 "Although the standard naming scheme and automatic translation is useful for "
37735 "simple programs and guestfish scripts, for larger programs it is best not to "
37736 "rely on this mechanism."
37740 #: ../src/guestfs.pod:1144
37742 "Where possible for maximum future portability programs using libguestfs "
37743 "should use these future-proof techniques:"
37747 #: ../src/guestfs.pod:1151
37749 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
37750 "device names, and then use those names directly."
37754 #: ../src/guestfs.pod:1154
37756 "Since those device names exist by definition, they will never be translated."
37760 #: ../src/guestfs.pod:1159
37762 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
37763 "filesystem labels."
37767 #: ../src/guestfs.pod:1166
37769 "This section discusses security implications of using libguestfs, "
37770 "particularly with untrusted or malicious guests or disk images."
37774 #: ../src/guestfs.pod:1169
37775 msgid "GENERAL SECURITY CONSIDERATIONS"
37776 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
37779 #: ../src/guestfs.pod:1171
37781 "Be careful with any files or data that you download from a guest (by "
37782 "\"download\" we mean not just the L</guestfs_download> command but any "
37783 "command that reads files, filenames, directories or anything else from a "
37784 "disk image). An attacker could manipulate the data to fool your program "
37785 "into doing the wrong thing. Consider cases such as:"
37789 #: ../src/guestfs.pod:1181
37790 msgid "the data (file etc) not being present"
37794 #: ../src/guestfs.pod:1185
37795 msgid "being present but empty"
37799 #: ../src/guestfs.pod:1189
37800 msgid "being much larger than normal"
37804 #: ../src/guestfs.pod:1193
37805 msgid "containing arbitrary 8 bit data"
37809 #: ../src/guestfs.pod:1197
37810 msgid "being in an unexpected character encoding"
37814 #: ../src/guestfs.pod:1201
37815 msgid "containing homoglyphs."
37819 #: ../src/guestfs.pod:1205
37820 msgid "SECURITY OF MOUNTING FILESYSTEMS"
37821 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
37824 #: ../src/guestfs.pod:1207
37826 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
37827 "(VFS) module can sometimes be escalated into exploits by deliberately "
37828 "creating a malicious, malformed filesystem. These exploits are very severe "
37829 "for two reasons. Firstly there are very many filesystem drivers in the "
37830 "kernel, and many of them are infrequently used and not much developer "
37831 "attention has been paid to the code. Linux userspace helps potential "
37832 "crackers by detecting the filesystem type and automatically choosing the "
37833 "right VFS driver, even if that filesystem type is obscure or unexpected for "
37834 "the administrator. Secondly, a kernel-level exploit is like a local root "
37835 "exploit (worse in some ways), giving immediate and total access to the "
37836 "system right down to the hardware level."
37840 #: ../src/guestfs.pod:1220
37842 "That explains why you should never mount a filesystem from an untrusted "
37843 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
37844 "inside a qemu virtual machine, usually running as a non-root user. The "
37845 "attacker would need to write a filesystem which first exploited the kernel, "
37846 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
37847 "the libguestfs protocol, and finally to be as serious as the host kernel "
37848 "exploit it would need to escalate its privileges to root. This multi-step "
37849 "escalation, performed by a static piece of data, is thought to be extremely "
37850 "hard to do, although we never say 'never' about security issues."
37854 #: ../src/guestfs.pod:1231
37856 "In any case callers can reduce the attack surface by forcing the filesystem "
37857 "type when mounting (use L</guestfs_mount_vfs>)."
37861 #: ../src/guestfs.pod:1234
37862 msgid "PROTOCOL SECURITY"
37863 msgstr "ЗАХИСТ ПРОТОКОЛУ"
37866 #: ../src/guestfs.pod:1236
37868 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
37869 "defined upper message size. However a program that uses libguestfs must "
37870 "also take care - for example you can write a program that downloads a binary "
37871 "from a disk image and executes it locally, and no amount of protocol "
37872 "security will save you from the consequences."
37876 #: ../src/guestfs.pod:1242
37877 msgid "INSPECTION SECURITY"
37881 #: ../src/guestfs.pod:1244
37883 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
37884 "directly from the guest, and these could contain any 8 bit data. Callers "
37885 "should be careful to escape these before printing them to a structured file "
37886 "(for example, use HTML escaping if creating a web page)."
37890 #: ../src/guestfs.pod:1250
37892 "Guest configuration may be altered in unusual ways by the administrator of "
37893 "the virtual machine, and may not reflect reality (particularly for untrusted "
37894 "or actively malicious guests). For example we parse the hostname from "
37895 "configuration files like C</etc/sysconfig/network> that we find in the "
37896 "guest, but the guest administrator can easily manipulate these files to "
37897 "provide the wrong hostname."
37901 #: ../src/guestfs.pod:1258
37903 "The inspection API parses guest configuration using two external libraries: "
37904 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
37905 "designed to be robust in the face of malicious data, although denial of "
37906 "service attacks are still possible, for example with oversized configuration "
37911 #: ../src/guestfs.pod:1264
37912 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
37913 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
37916 #: ../src/guestfs.pod:1266
37918 "Be very cautious about running commands from the guest. By running a "
37919 "command in the guest, you are giving CPU time to a binary that you do not "
37920 "control, under the same user account as the library, albeit wrapped in qemu "
37921 "virtualization. More information and alternatives can be found in the "
37922 "section L</RUNNING COMMANDS>."
37926 #: ../src/guestfs.pod:1272
37927 msgid "CVE-2010-3851"
37928 msgstr "CVE-2010-3851"
37931 #: ../src/guestfs.pod:1274
37932 msgid "https://bugzilla.redhat.com/642934"
37933 msgstr "https://bugzilla.redhat.com/642934"
37936 #: ../src/guestfs.pod:1276
37938 "This security bug concerns the automatic disk format detection that qemu "
37939 "does on disk images."
37943 #: ../src/guestfs.pod:1279
37945 "A raw disk image is just the raw bytes, there is no header. Other disk "
37946 "images like qcow2 contain a special header. Qemu deals with this by looking "
37947 "for one of the known headers, and if none is found then assuming the disk "
37948 "image must be raw."
37952 #: ../src/guestfs.pod:1284
37954 "This allows a guest which has been given a raw disk image to write some "
37955 "other header. At next boot (or when the disk image is accessed by "
37956 "libguestfs) qemu would do autodetection and think the disk image format was, "
37957 "say, qcow2 based on the header written by the guest."
37961 #: ../src/guestfs.pod:1289
37963 "This in itself would not be a problem, but qcow2 offers many features, one "
37964 "of which is to allow a disk image to refer to another image (called the "
37965 "\"backing disk\"). It does this by placing the path to the backing disk "
37966 "into the qcow2 header. This path is not validated and could point to any "
37967 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
37968 "\"holes\" in the qcow2 disk image, which of course is completely under the "
37969 "control of the attacker."
37973 #: ../src/guestfs.pod:1297
37975 "In libguestfs this is rather hard to exploit except under two circumstances:"
37979 #: ../src/guestfs.pod:1304
37980 msgid "You have enabled the network or have opened the disk in write mode."
37984 #: ../src/guestfs.pod:1308
37986 "You are also running untrusted code from the guest (see L</RUNNING "
37991 #: ../src/guestfs.pod:1313
37993 "The way to avoid this is to specify the expected disk format when adding "
37994 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
37995 "should always do this if the disk is raw format, and it's a good idea for "
38000 #: ../src/guestfs.pod:1318
38002 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
38003 "format is fetched from libvirt and passed through."
38007 #: ../src/guestfs.pod:1321
38009 "For libguestfs tools, use the I<--format> command line parameter as "
38014 #: ../src/guestfs.pod:1324
38015 msgid "CONNECTION MANAGEMENT"
38016 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
38019 #: ../src/guestfs.pod:1326
38020 msgid "guestfs_h *"
38021 msgstr "guestfs_h *"
38024 #: ../src/guestfs.pod:1328
38026 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
38027 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
38028 "handle and release all resources used."
38032 #: ../src/guestfs.pod:1332
38034 "For information on using multiple handles and threads, see the section L</"
38035 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
38039 #: ../src/guestfs.pod:1335
38040 msgid "guestfs_create"
38041 msgstr "guestfs_create"
38044 #: ../src/guestfs.pod:1337
38047 " guestfs_h *guestfs_create (void);\n"
38050 " guestfs_h *guestfs_create (void);\n"
38054 #: ../src/guestfs.pod:1339
38055 msgid "Create a connection handle."
38056 msgstr "Створити дескриптор з’єднання."
38059 #: ../src/guestfs.pod:1341
38061 "On success this returns a non-NULL pointer to a handle. On error it returns "
38066 #: ../src/guestfs.pod:1344
38068 "You have to \"configure\" the handle after creating it. This includes "
38069 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
38070 "handle at least once."
38074 #: ../src/guestfs.pod:1348
38075 msgid "After configuring the handle, you have to call L</guestfs_launch>."
38079 #: ../src/guestfs.pod:1350
38081 "You may also want to configure error handling for the handle. See the L</"
38082 "ERROR HANDLING> section below."
38086 #: ../src/guestfs.pod:1353
38087 msgid "guestfs_close"
38088 msgstr "guestfs_close"
38091 #: ../src/guestfs.pod:1355
38094 " void guestfs_close (guestfs_h *g);\n"
38097 " void guestfs_close (guestfs_h *g);\n"
38101 #: ../src/guestfs.pod:1357
38102 msgid "This closes the connection handle and frees up all resources used."
38106 #: ../src/guestfs.pod:1359
38108 "If autosync was set on the handle and the handle was launched, then this "
38109 "implicitly calls various functions to unmount filesystems and sync the "
38110 "disk. See L</guestfs_set_autosync> for more details."
38114 #: ../src/guestfs.pod:1363
38115 msgid "If a close callback was set on the handle, then it is called."
38119 #: ../src/guestfs.pod:1365
38120 msgid "ERROR HANDLING"
38121 msgstr "ОБРОБКА ПОМИЛОК"
38124 #: ../src/guestfs.pod:1367
38126 "API functions can return errors. For example, almost all functions that "
38127 "return C<int> will return C<-1> to indicate an error."
38131 #: ../src/guestfs.pod:1370
38133 "Additional information is available for errors: an error message string and "
38134 "optionally an error number (errno) if the thing that failed was a system "
38139 #: ../src/guestfs.pod:1374
38141 "You can get at the additional information about the last error on the handle "
38142 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
38143 "up an error handler with L</guestfs_set_error_handler>."
38147 #: ../src/guestfs.pod:1379
38149 "When the handle is created, a default error handler is installed which "
38150 "prints the error message string to C<stderr>. For small short-running "
38151 "command line programs it is sufficient to do:"
38155 #: ../src/guestfs.pod:1383
38158 " if (guestfs_launch (g) == -1)\n"
38159 " exit (EXIT_FAILURE);\n"
38162 " if (guestfs_launch (g) == -1)\n"
38163 " exit (EXIT_FAILURE);\n"
38167 #: ../src/guestfs.pod:1386
38169 "since the default error handler will ensure that an error message has been "
38170 "printed to C<stderr> before the program exits."
38174 #: ../src/guestfs.pod:1389
38176 "For other programs the caller will almost certainly want to install an "
38177 "alternate error handler or do error handling in-line like this:"
38181 #: ../src/guestfs.pod:1392
38184 " /* This disables the default behaviour of printing errors\n"
38186 " guestfs_set_error_handler (g, NULL, NULL);\n"
38191 #: ../src/guestfs.pod:1396
38194 " if (guestfs_launch (g) == -1) {\n"
38195 " /* Examine the error message and print it etc. */\n"
38196 " char *msg = guestfs_last_error (g);\n"
38197 " int errnum = guestfs_last_errno (g);\n"
38198 " fprintf (stderr, \"%s\", msg);\n"
38199 " if (errnum != 0)\n"
38200 " fprintf (stderr, \": %s\", strerror (errnum));\n"
38201 " fprintf (stderr, \"\\n\");\n"
38208 #: ../src/guestfs.pod:1407
38210 "Out of memory errors are handled differently. The default action is to call "
38211 "L<abort(3)>. If this is undesirable, then you can set a handler using L</"
38212 "guestfs_set_out_of_memory_handler>."
38216 #: ../src/guestfs.pod:1411
38218 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
38219 "because there is no handle if this happens there is no way to get additional "
38220 "error information. However L</guestfs_create> is supposed to be a "
38221 "lightweight operation which can only fail because of insufficient memory (it "
38222 "returns NULL in this case)."
38226 #: ../src/guestfs.pod:1417
38227 msgid "guestfs_last_error"
38228 msgstr "guestfs_last_error"
38231 #: ../src/guestfs.pod:1419
38234 " const char *guestfs_last_error (guestfs_h *g);\n"
38237 " const char *guestfs_last_error (guestfs_h *g);\n"
38241 #: ../src/guestfs.pod:1421
38243 "This returns the last error message that happened on C<g>. If there has not "
38244 "been an error since the handle was created, then this returns C<NULL>."
38248 #: ../src/guestfs.pod:1425
38250 "The lifetime of the returned string is until the next error occurs, or L</"
38251 "guestfs_close> is called."
38255 #: ../src/guestfs.pod:1428
38256 msgid "guestfs_last_errno"
38257 msgstr "guestfs_last_errno"
38260 #: ../src/guestfs.pod:1430
38263 " int guestfs_last_errno (guestfs_h *g);\n"
38266 " int guestfs_last_errno (guestfs_h *g);\n"
38270 #: ../src/guestfs.pod:1432
38271 msgid "This returns the last error number (errno) that happened on C<g>."
38275 #: ../src/guestfs.pod:1434
38276 msgid "If successful, an errno integer not equal to zero is returned."
38280 #: ../src/guestfs.pod:1436
38282 "If no error, this returns 0. This call can return 0 in three situations:"
38286 #: ../src/guestfs.pod:1443
38287 msgid "There has not been any error on the handle."
38291 #: ../src/guestfs.pod:1447
38293 "There has been an error but the errno was meaningless. This corresponds to "
38294 "the case where the error did not come from a failed system call, but for "
38295 "some other reason."
38299 #: ../src/guestfs.pod:1453
38301 "There was an error from a failed system call, but for some reason the errno "
38302 "was not captured and returned. This usually indicates a bug in libguestfs."
38306 #: ../src/guestfs.pod:1459
38308 "Libguestfs tries to convert the errno from inside the applicance into a "
38309 "corresponding errno for the caller (not entirely trivial: the appliance "
38310 "might be running a completely different operating system from the library "
38311 "and error numbers are not standardized across Un*xen). If this could not be "
38312 "done, then the error is translated to C<EINVAL>. In practice this should "
38313 "only happen in very rare circumstances."
38317 #: ../src/guestfs.pod:1467
38318 msgid "guestfs_set_error_handler"
38319 msgstr "guestfs_set_error_handler"
38322 #: ../src/guestfs.pod:1469
38325 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38327 " const char *msg);\n"
38328 " void guestfs_set_error_handler (guestfs_h *g,\n"
38329 " guestfs_error_handler_cb cb,\n"
38330 " void *opaque);\n"
38333 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38335 " const char *msg);\n"
38336 " void guestfs_set_error_handler (guestfs_h *g,\n"
38337 " guestfs_error_handler_cb cb,\n"
38338 " void *opaque);\n"
38342 #: ../src/guestfs.pod:1476
38344 "The callback C<cb> will be called if there is an error. The parameters "
38345 "passed to the callback are an opaque data pointer and the error message "
38350 #: ../src/guestfs.pod:1480
38352 "C<errno> is not passed to the callback. To get that the callback must call "
38353 "L</guestfs_last_errno>."
38357 #: ../src/guestfs.pod:1483
38359 "Note that the message string C<msg> is freed as soon as the callback "
38360 "function returns, so if you want to stash it somewhere you must make your "
38365 #: ../src/guestfs.pod:1487
38366 msgid "The default handler prints messages on C<stderr>."
38370 #: ../src/guestfs.pod:1489
38371 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
38375 #: ../src/guestfs.pod:1491
38376 msgid "guestfs_get_error_handler"
38377 msgstr "guestfs_get_error_handler"
38380 #: ../src/guestfs.pod:1493
38383 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38384 " void **opaque_rtn);\n"
38387 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38388 " void **opaque_rtn);\n"
38392 #: ../src/guestfs.pod:1496
38393 msgid "Returns the current error handler callback."
38397 #: ../src/guestfs.pod:1498
38398 msgid "guestfs_set_out_of_memory_handler"
38399 msgstr "guestfs_set_out_of_memory_handler"
38402 #: ../src/guestfs.pod:1500
38405 " typedef void (*guestfs_abort_cb) (void);\n"
38406 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
38407 " guestfs_abort_cb);\n"
38412 #: ../src/guestfs.pod:1504
38414 "The callback C<cb> will be called if there is an out of memory situation. "
38415 "I<Note this callback must not return>."
38419 #: ../src/guestfs.pod:1507
38420 msgid "The default is to call L<abort(3)>."
38424 #: ../src/guestfs.pod:1509
38426 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
38430 #: ../src/guestfs.pod:1512
38431 msgid "guestfs_get_out_of_memory_handler"
38432 msgstr "guestfs_get_out_of_memory_handler"
38435 #: ../src/guestfs.pod:1514
38438 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
38441 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
38445 #: ../src/guestfs.pod:1516
38446 msgid "This returns the current out of memory handler."
38450 #: ../src/guestfs.pod:1518
38452 msgstr "ВИКЛИКИ API"
38455 #: ../src/guestfs.pod:1522
38460 #: ../src/guestfs.pod:1524
38465 #: ../src/guestfs.pod:1526
38466 msgid "AVAILABILITY"
38467 msgstr "ДОСТУПНІСТЬ"
38470 #: ../src/guestfs.pod:1528
38471 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
38472 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
38475 #: ../src/guestfs.pod:1530
38477 "Using L</guestfs_available> you can test availability of the following "
38478 "groups of functions. This test queries the appliance to see if the "
38479 "appliance you are currently using supports the functionality."
38483 #: ../src/guestfs.pod:1535
38484 msgid "@AVAILABILITY@"
38485 msgstr "@AVAILABILITY@"
38488 #: ../src/guestfs.pod:1537
38489 msgid "GUESTFISH supported COMMAND"
38493 #: ../src/guestfs.pod:1539
38495 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
38496 "prints out the available groups and whether they are supported by this build "
38497 "of libguestfs. Note however that you have to do C<run> first."
38501 #: ../src/guestfs.pod:1544
38502 msgid "SINGLE CALLS AT COMPILE TIME"
38506 #: ../src/guestfs.pod:1546
38508 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
38509 "function, such as:"
38513 #: ../src/guestfs.pod:1549
38516 " #define LIBGUESTFS_HAVE_DD 1\n"
38519 " #define LIBGUESTFS_HAVE_DD 1\n"
38523 #: ../src/guestfs.pod:1551
38524 msgid "if L</guestfs_dd> is available."
38528 #: ../src/guestfs.pod:1553
38530 "Before version 1.5.8, if you needed to test whether a single libguestfs "
38531 "function is available at compile time, we recommended using build tools such "
38532 "as autoconf or cmake. For example in autotools you could use:"
38536 #: ../src/guestfs.pod:1558
38539 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
38540 " AC_CHECK_FUNCS([guestfs_dd])\n"
38543 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
38544 " AC_CHECK_FUNCS([guestfs_dd])\n"
38548 #: ../src/guestfs.pod:1561
38550 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
38555 #: ../src/guestfs.pod:1564
38556 msgid "SINGLE CALLS AT RUN TIME"
38560 #: ../src/guestfs.pod:1566
38562 "Testing at compile time doesn't guarantee that a function really exists in "
38563 "the library. The reason is that you might be dynamically linked against a "
38564 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
38565 "This situation unfortunately results in a segmentation fault, which is a "
38566 "shortcoming of the C dynamic linking system itself."
38570 #: ../src/guestfs.pod:1573
38572 "You can use L<dlopen(3)> to test if a function is available at run time, as "
38573 "in this example program (note that you still need the compile time check as "
38578 #: ../src/guestfs.pod:1577
38581 " #include <stdio.h>\n"
38582 " #include <stdlib.h>\n"
38583 " #include <unistd.h>\n"
38584 " #include <dlfcn.h>\n"
38585 " #include <guestfs.h>\n"
38588 " #include <stdio.h>\n"
38589 " #include <stdlib.h>\n"
38590 " #include <unistd.h>\n"
38591 " #include <dlfcn.h>\n"
38592 " #include <guestfs.h>\n"
38596 #: ../src/guestfs.pod:1583
38601 " #ifdef LIBGUESTFS_HAVE_DD\n"
38603 " int has_function;\n"
38608 " #ifdef LIBGUESTFS_HAVE_DD\n"
38610 " int has_function;\n"
38614 #: ../src/guestfs.pod:1589
38617 " /* Test if the function guestfs_dd is really available. */\n"
38618 " dl = dlopen (NULL, RTLD_LAZY);\n"
38620 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
38621 " exit (EXIT_FAILURE);\n"
38623 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
38629 #: ../src/guestfs.pod:1598
38632 " if (!has_function)\n"
38633 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
38635 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
38636 " /* Now it's safe to call\n"
38637 " guestfs_dd (g, \"foo\", \"bar\");\n"
38641 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
38648 #: ../src/guestfs.pod:1611
38650 "You may think the above is an awful lot of hassle, and it is. There are "
38651 "other ways outside of the C linking system to ensure that this kind of "
38652 "incompatibility never arises, such as using package versioning:"
38656 #: ../src/guestfs.pod:1616
38659 " Requires: libguestfs >= 1.0.80\n"
38664 #: ../src/guestfs.pod:1618
38665 msgid "CALLS WITH OPTIONAL ARGUMENTS"
38669 #: ../src/guestfs.pod:1620
38671 "A recent feature of the API is the introduction of calls which take optional "
38672 "arguments. In C these are declared 3 ways. The main way is as a call which "
38673 "takes variable arguments (ie. C<...>), as in this example:"
38677 #: ../src/guestfs.pod:1625
38680 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38683 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38687 #: ../src/guestfs.pod:1627
38689 "Call this with a list of optional arguments, terminated by C<-1>. So to "
38690 "call with no optional arguments specified:"
38694 #: ../src/guestfs.pod:1630
38697 " guestfs_add_drive_opts (g, filename, -1);\n"
38700 " guestfs_add_drive_opts (g, filename, -1);\n"
38704 #: ../src/guestfs.pod:1632
38705 msgid "With a single optional argument:"
38709 #: ../src/guestfs.pod:1634
38712 " guestfs_add_drive_opts (g, filename,\n"
38713 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38717 " guestfs_add_drive_opts (g, filename,\n"
38718 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38723 #: ../src/guestfs.pod:1638
38728 #: ../src/guestfs.pod:1640
38731 " guestfs_add_drive_opts (g, filename,\n"
38732 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38733 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38737 " guestfs_add_drive_opts (g, filename,\n"
38738 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38739 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38744 #: ../src/guestfs.pod:1645
38746 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
38751 #: ../src/guestfs.pod:1648
38752 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
38756 #: ../src/guestfs.pod:1650
38758 "The second variant has the same name with the suffix C<_va>, which works the "
38759 "same way but takes a C<va_list>. See the C manual for details. For the "
38760 "example function, this is declared:"
38764 #: ../src/guestfs.pod:1654
38767 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38768 " va_list args);\n"
38771 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38772 " va_list args);\n"
38776 #: ../src/guestfs.pod:1657
38777 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
38781 #: ../src/guestfs.pod:1659
38783 "The third variant is useful where you need to construct these calls. You "
38784 "pass in a structure where you fill in the optional fields. The structure "
38785 "has a bitmask as the first element which you must set to indicate which "
38786 "fields you have filled in. For our example function the structure and call "
38791 #: ../src/guestfs.pod:1665
38794 " struct guestfs_add_drive_opts_argv {\n"
38795 " uint64_t bitmask;\n"
38797 " const char *format;\n"
38800 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38801 " const struct guestfs_add_drive_opts_argv *optargs);\n"
38804 " struct guestfs_add_drive_opts_argv {\n"
38805 " uint64_t bitmask;\n"
38807 " const char *format;\n"
38810 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38811 " const struct guestfs_add_drive_opts_argv *optargs);\n"
38815 #: ../src/guestfs.pod:1674
38816 msgid "You could call it like this:"
38820 #: ../src/guestfs.pod:1676
38823 " struct guestfs_add_drive_opts_argv optargs = {\n"
38824 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38825 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38826 " .readonly = 1,\n"
38827 " .format = \"qcow2\"\n"
38831 " struct guestfs_add_drive_opts_argv optargs = {\n"
38832 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38833 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38834 " .readonly = 1,\n"
38835 " .format = \"qcow2\"\n"
38840 #: ../src/guestfs.pod:1683
38843 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38846 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38850 #: ../src/guestfs.pod:1691
38851 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
38855 #: ../src/guestfs.pod:1696
38856 msgid "You do not need to fill in all fields of the structure."
38860 #: ../src/guestfs.pod:1700
38862 "There must be a one-to-one correspondence between fields of the structure "
38863 "that are filled in, and bits set in the bitmask."
38867 #: ../src/guestfs.pod:1705
38868 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
38872 #: ../src/guestfs.pod:1707
38874 "In other languages, optional arguments are expressed in the way that is "
38875 "natural for that language. We refer you to the language-specific "
38876 "documentation for more details on that."
38880 #: ../src/guestfs.pod:1711
38881 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
38885 #: ../src/guestfs.pod:1713
38886 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
38890 #: ../src/guestfs.pod:1715
38892 "B<Note:> This section documents the generic event mechanism introduced in "
38893 "libguestfs 1.10, which you should use in new code if possible. The old "
38894 "functions C<guestfs_set_log_message_callback>, "
38895 "C<guestfs_set_subprocess_quit_callback>, "
38896 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
38897 "C<guestfs_set_progress_callback> are no longer documented in this manual "
38898 "page. Because of the ABI guarantee, the old functions continue to work."
38902 #: ../src/guestfs.pod:1724
38904 "Handles generate events when certain things happen, such as log messages "
38905 "being generated, progress messages during long-running operations, or the "
38906 "handle being closed. The API calls described below let you register a "
38907 "callback to be called when events happen. You can register multiple "
38908 "callbacks (for the same, different or overlapping sets of events), and "
38909 "individually remove callbacks. If callbacks are not removed, then they "
38910 "remain in force until the handle is closed."
38914 #: ../src/guestfs.pod:1732
38916 "In the current implementation, events are only generated synchronously: that "
38917 "means that events (and hence callbacks) can only happen while you are in the "
38918 "middle of making another libguestfs call. The callback is called in the "
38923 #: ../src/guestfs.pod:1737
38925 "Events may contain a payload, usually nothing (void), an array of 64 bit "
38926 "unsigned integers, or a message buffer. Payloads are discussed later on."
38930 #: ../src/guestfs.pod:1741
38931 msgid "CLASSES OF EVENTS"
38935 #: ../src/guestfs.pod:1745
38936 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
38940 #: ../src/guestfs.pod:1748
38942 "The callback function will be called while the handle is being closed "
38943 "(synchronously from L</guestfs_close>)."
38947 #: ../src/guestfs.pod:1751
38949 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
38950 "handles that are open when the program exits. This means that this callback "
38951 "might be called indirectly from L<exit(3)>, which can cause unexpected "
38952 "problems in higher-level languages (eg. if your HLL interpreter has already "
38953 "been cleaned up by the time this is called, and if your callback then jumps "
38954 "into some HLL function)."
38958 #: ../src/guestfs.pod:1758
38960 "If no callback is registered: the handle is closed without any callback "
38965 #: ../src/guestfs.pod:1761
38966 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
38970 #: ../src/guestfs.pod:1764
38972 "The callback function will be called when the child process quits, either "
38973 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
38974 "corresponds to a transition from any state to the CONFIG state)."
38978 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
38979 msgid "If no callback is registered: the event is ignored."
38983 #: ../src/guestfs.pod:1770
38984 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
38988 #: ../src/guestfs.pod:1773
38990 "The callback function will be called when the child process becomes ready "
38991 "first time after it has been launched. (This corresponds to a transition "
38992 "from LAUNCHING to the READY state)."
38996 #: ../src/guestfs.pod:1779
38997 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
39001 #: ../src/guestfs.pod:1782
39003 "Some long-running operations can generate progress messages. If this "
39004 "callback is registered, then it will be called each time a progress message "
39005 "is generated (usually two seconds after the operation started, and three "
39006 "times per second thereafter until it completes, although the frequency may "
39007 "change in future versions)."
39011 #: ../src/guestfs.pod:1788
39013 "The callback receives in the payload four unsigned 64 bit numbers which are "
39014 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
39018 #: ../src/guestfs.pod:1791
39020 "The units of C<total> are not defined, although for some operations C<total> "
39021 "may relate in some way to the amount of data to be transferred (eg. in bytes "
39022 "or megabytes), and C<position> may be the portion which has been transferred."
39026 #: ../src/guestfs.pod:1796
39027 msgid "The only defined and stable parts of the API are:"
39031 #: ../src/guestfs.pod:1802
39033 "The callback can display to the user some type of progress bar or indicator "
39034 "which shows the ratio of C<position>:C<total>."
39038 #: ../src/guestfs.pod:1807
39039 msgid "0 E<lt>= C<position> E<lt>= C<total>"
39043 #: ../src/guestfs.pod:1811
39045 "If any progress notification is sent during a call, then a final progress "
39046 "notification is always sent when C<position> = C<total> (I<unless> the call "
39047 "fails with an error)."
39051 #: ../src/guestfs.pod:1815
39053 "This is to simplify caller code, so callers can easily set the progress "
39054 "indicator to \"100%\" at the end of the operation, without requiring special "
39055 "code to detect this case."
39059 #: ../src/guestfs.pod:1821
39061 "For some calls we are unable to estimate the progress of the call, but we "
39062 "can still generate progress messages to indicate activity. This is known as "
39063 "\"pulse mode\", and is directly supported by certain progress bar "
39064 "implementations (eg. GtkProgressBar)."
39068 #: ../src/guestfs.pod:1826
39070 "For these calls, zero or more progress messages are generated with "
39071 "C<position = 0> and C<total = 1>, followed by a final message with "
39072 "C<position = total = 1>."
39076 #: ../src/guestfs.pod:1830
39078 "As noted above, if the call fails with an error then the final message may "
39079 "not be generated."
39083 #: ../src/guestfs.pod:1835
39085 "The callback also receives the procedure number (C<proc_nr>) and serial "
39086 "number (C<serial>) of the call. These are only useful for debugging "
39087 "protocol issues, and the callback can normally ignore them. The callback "
39088 "may want to print these numbers in error messages or debugging messages."
39092 #: ../src/guestfs.pod:1841
39093 msgid "If no callback is registered: progress messages are discarded."
39097 #: ../src/guestfs.pod:1843
39098 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
39102 #: ../src/guestfs.pod:1846
39104 "The callback function is called whenever a log message is generated by qemu, "
39105 "the appliance kernel, guestfsd (daemon), or utility programs."
39109 #: ../src/guestfs.pod:1849
39111 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
39112 "guestfs_launch>) then additional debug messages are generated."
39116 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
39118 "If no callback is registered: the messages are discarded unless the verbose "
39119 "flag is set in which case they are sent to stderr. You can override the "
39120 "printing of verbose messages to stderr by setting up a callback."
39124 #: ../src/guestfs.pod:1857
39125 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
39129 #: ../src/guestfs.pod:1860
39131 "The callback function is called whenever a log message is generated by the "
39132 "library part of libguestfs."
39136 #: ../src/guestfs.pod:1863
39138 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
39139 "messages are generated."
39143 #: ../src/guestfs.pod:1871
39144 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
39148 #: ../src/guestfs.pod:1874
39150 "The callback function is called whenever a trace message is generated. This "
39151 "only applies if the trace flag (L</guestfs_set_trace>) is set."
39155 #: ../src/guestfs.pod:1877
39157 "If no callback is registered: the messages are sent to stderr. You can "
39158 "override the printing of trace messages to stderr by setting up a callback."
39162 #: ../src/guestfs.pod:1881
39163 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
39167 #: ../src/guestfs.pod:1884
39169 "The callback function is called whenever a libguestfs function is entered."
39173 #: ../src/guestfs.pod:1887
39175 "The payload is a string which contains the name of the function that we are "
39176 "entering (not including C<guestfs_> prefix)."
39180 #: ../src/guestfs.pod:1890
39182 "Note that libguestfs functions can call themselves, so you may see many "
39183 "events from a single call. A few libguestfs functions do not generate this "
39188 #: ../src/guestfs.pod:1898
39189 msgid "guestfs_set_event_callback"
39193 #: ../src/guestfs.pod:1900
39196 " int guestfs_set_event_callback (guestfs_h *g,\n"
39197 " guestfs_event_callback cb,\n"
39198 " uint64_t event_bitmask,\n"
39200 " void *opaque);\n"
39205 #: ../src/guestfs.pod:1906
39207 "This function registers a callback (C<cb>) for all event classes in the "
39208 "C<event_bitmask>."
39212 #: ../src/guestfs.pod:1909
39214 "For example, to register for all log message events, you could call this "
39215 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. "
39216 "To register a single callback for all possible classes of events, use "
39217 "C<GUESTFS_EVENT_ALL>."
39221 #: ../src/guestfs.pod:1915
39222 msgid "C<flags> should always be passed as 0."
39226 #: ../src/guestfs.pod:1917
39228 "C<opaque> is an opaque pointer which is passed to the callback. You can use "
39229 "it for any purpose."
39233 #: ../src/guestfs.pod:1920
39235 "The return value is the event handle (an integer) which you can use to "
39236 "delete the callback (see below)."
39240 #: ../src/guestfs.pod:1923
39242 "If there is an error, this function returns C<-1>, and sets the error in the "
39243 "handle in the usual way (see L</guestfs_last_error> etc.)"
39247 #: ../src/guestfs.pod:1926
39249 "Callbacks remain in effect until they are deleted, or until the handle is "
39254 #: ../src/guestfs.pod:1929
39256 "In the case where multiple callbacks are registered for a particular event "
39257 "class, all of the callbacks are called. The order in which multiple "
39258 "callbacks are called is not defined."
39262 #: ../src/guestfs.pod:1933
39263 msgid "guestfs_delete_event_callback"
39267 #: ../src/guestfs.pod:1935
39270 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
39275 #: ../src/guestfs.pod:1937
39277 "Delete a callback that was previously registered. C<event_handle> should be "
39278 "the integer that was returned by a previous call to "
39279 "C<guestfs_set_event_callback> on the same handle."
39283 #: ../src/guestfs.pod:1941
39284 msgid "guestfs_event_callback"
39288 #: ../src/guestfs.pod:1943
39291 " typedef void (*guestfs_event_callback) (\n"
39294 " uint64_t event,\n"
39295 " int event_handle,\n"
39297 " const char *buf, size_t buf_len,\n"
39298 " const uint64_t *array, size_t array_len);\n"
39303 #: ../src/guestfs.pod:1952
39305 "This is the type of the event callback function that you have to provide."
39309 #: ../src/guestfs.pod:1955
39311 "The basic parameters are: the handle (C<g>), the opaque user pointer "
39312 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
39313 "handle, and C<flags> which in the current API you should ignore."
39317 #: ../src/guestfs.pod:1959
39319 "The remaining parameters contain the event payload (if any). Each event may "
39320 "contain a payload, which usually relates to the event class, but for future "
39321 "proofing your code should be written to handle any payload for any event "
39326 #: ../src/guestfs.pod:1964
39328 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
39329 "there is no message buffer). Note that this message buffer can contain "
39330 "arbitrary 8 bit data, including NUL bytes."
39334 #: ../src/guestfs.pod:1968
39336 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
39337 "moment this is only used for progress messages."
39341 #: ../src/guestfs.pod:1971
39342 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
39346 #: ../src/guestfs.pod:1973
39348 "One motivation for the generic event API was to allow GUI programs to "
39349 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
39350 "unconditionally to C<stderr>."
39354 #: ../src/guestfs.pod:1977
39356 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
39357 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
39358 "messages are not events; you must capture error messages separately)."
39362 #: ../src/guestfs.pod:1982
39364 "Programs have to set up a callback to capture the classes of events of "
39369 #: ../src/guestfs.pod:1985
39373 " guestfs_set_event_callback\n"
39374 " (g, message_callback,\n"
39375 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
39376 " GUESTFS_EVENT_TRACE,\n"
39377 " 0, NULL) == -1)\n"
39378 " if (eh == -1) {\n"
39379 " // handle error in the usual way\n"
39385 #: ../src/guestfs.pod:1995
39387 "The callback can then direct messages to the appropriate place. In this "
39388 "example, messages are directed to syslog:"
39392 #: ../src/guestfs.pod:1998
39396 " message_callback (\n"
39399 " uint64_t event,\n"
39400 " int event_handle,\n"
39402 " const char *buf, size_t buf_len,\n"
39403 " const uint64_t *array, size_t array_len)\n"
39405 " const int priority = LOG_USER|LOG_INFO;\n"
39406 " if (buf_len > 0)\n"
39407 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
39413 #: ../src/guestfs.pod:2013
39414 msgid "CANCELLING LONG TRANSFERS"
39418 #: ../src/guestfs.pod:2015
39420 "Some operations can be cancelled by the caller while they are in progress. "
39421 "Currently only operations that involve uploading or downloading data can be "
39422 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
39423 "parameters in the generator)."
39427 #: ../src/guestfs.pod:2020
39428 msgid "guestfs_user_cancel"
39432 #: ../src/guestfs.pod:2022
39435 " void guestfs_user_cancel (guestfs_h *g);\n"
39440 #: ../src/guestfs.pod:2024
39442 "C<guestfs_user_cancel> cancels the current upload or download operation."
39446 #: ../src/guestfs.pod:2027
39448 "Unlike most other libguestfs calls, this function is signal safe and thread "
39449 "safe. You can call it from a signal handler or from another thread, without "
39450 "needing to do any locking."
39454 #: ../src/guestfs.pod:2031
39456 "The transfer that was in progress (if there is one) will stop shortly "
39457 "afterwards, and will return an error. The errno (see L</"
39458 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
39459 "out if the operation was cancelled or failed because of another error."
39463 #: ../src/guestfs.pod:2037
39465 "No cleanup is performed: for example, if a file was being uploaded then "
39466 "after cancellation there may be a partially uploaded file. It is the "
39467 "caller's responsibility to clean up if necessary."
39471 #: ../src/guestfs.pod:2041
39472 msgid "There are two common places that you might call C<guestfs_user_cancel>."
39476 #: ../src/guestfs.pod:2043
39478 "In an interactive text-based program, you might call it from a C<SIGINT> "
39479 "signal handler so that pressing C<^C> cancels the current operation. (You "
39480 "also need to call L</guestfs_set_pgroup> so that child processes don't "
39481 "receive the C<^C> signal)."
39485 #: ../src/guestfs.pod:2048
39487 "In a graphical program, when the main thread is displaying a progress bar "
39488 "with a cancel button, wire up the cancel button to call this function."
39492 #: ../src/guestfs.pod:2052
39493 msgid "PRIVATE DATA AREA"
39497 #: ../src/guestfs.pod:2054
39499 "You can attach named pieces of private data to the libguestfs handle, fetch "
39500 "them by name, and walk over them, for the lifetime of the handle. This is "
39501 "called the private data area and is only available from the C API."
39505 #: ../src/guestfs.pod:2059
39506 msgid "To attach a named piece of data, use the following call:"
39510 #: ../src/guestfs.pod:2061
39513 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
39516 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
39520 #: ../src/guestfs.pod:2063
39522 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
39523 "pointer (which can be C<NULL>). Any previous item with the same key is "
39528 #: ../src/guestfs.pod:2067
39530 "You can use any C<key> you want, but your key should I<not> start with an "
39531 "underscore character. Keys beginning with an underscore character are "
39532 "reserved for internal libguestfs purposes (eg. for implementing language "
39533 "bindings). It is recommended that you prefix the key with some unique "
39534 "string to avoid collisions with other users."
39538 #: ../src/guestfs.pod:2073
39539 msgid "To retrieve the pointer, use:"
39543 #: ../src/guestfs.pod:2075
39546 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39549 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39553 #: ../src/guestfs.pod:2077
39555 "This function returns C<NULL> if either no data is found associated with "
39556 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
39561 #: ../src/guestfs.pod:2081
39563 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
39564 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
39565 "all. In particular, libguestfs does I<not> try to free the data when the "
39566 "handle is closed. If the data must be freed, then the caller must either "
39567 "free it before calling L</guestfs_close> or must set up a close callback to "
39568 "do it (see L</GUESTFS_EVENT_CLOSE>)."
39572 #: ../src/guestfs.pod:2088
39573 msgid "To walk over all entries, use these two functions:"
39577 #: ../src/guestfs.pod:2090
39580 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
39585 #: ../src/guestfs.pod:2092
39588 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
39593 #: ../src/guestfs.pod:2094
39595 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
39596 "not have any particular meaning -- keys are not returned in any defined "
39597 "order). A pointer to the key is returned in C<*key_rtn> and the "
39598 "corresponding data pointer is returned from the function. C<NULL> is "
39599 "returned if there are no keys stored in the handle."
39603 #: ../src/guestfs.pod:2100
39605 "C<guestfs_next_private> returns the next key, pointer pair. The return "
39606 "value of this function is also C<NULL> is there are no further entries to "
39611 #: ../src/guestfs.pod:2104
39612 msgid "Notes about walking over entries:"
39616 #: ../src/guestfs.pod:2110
39618 "You must not call C<guestfs_set_private> while walking over the entries."
39622 #: ../src/guestfs.pod:2115
39624 "The handle maintains an internal iterator which is reset when you call "
39625 "C<guestfs_first_private>. This internal iterator is invalidated when you "
39626 "call C<guestfs_set_private>."
39630 #: ../src/guestfs.pod:2121
39631 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
39635 #: ../src/guestfs.pod:2123
39638 " guestfs_set_private (g, key, NULL);\n"
39643 #: ../src/guestfs.pod:2125
39644 msgid "then that C<key> is not returned when walking."
39648 #: ../src/guestfs.pod:2129
39650 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
39651 "C<guestfs_next_private> or C<guestfs_set_private>."
39655 #: ../src/guestfs.pod:2135
39657 "The following example code shows how to print all keys and data pointers "
39658 "that are associated with the handle C<g>:"
39662 #: ../src/guestfs.pod:2138
39665 " const char *key;\n"
39666 " void *data = guestfs_first_private (g, &key);\n"
39667 " while (data != NULL)\n"
39669 " printf (\"key = %s, data = %p\\n\", key, data);\n"
39670 " data = guestfs_next_private (g, &key);\n"
39676 #: ../src/guestfs.pod:2146
39678 "More commonly you are only interested in keys that begin with an application-"
39679 "specific prefix C<foo_>. Modify the loop like so:"
39683 #: ../src/guestfs.pod:2149
39686 " const char *key;\n"
39687 " void *data = guestfs_first_private (g, &key);\n"
39688 " while (data != NULL)\n"
39690 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39691 " printf (\"key = %s, data = %p\\n\", key, data);\n"
39692 " data = guestfs_next_private (g, &key);\n"
39698 #: ../src/guestfs.pod:2158
39700 "If you need to modify keys while walking, then you have to jump back to the "
39701 "beginning of the loop. For example, to delete all keys prefixed with "
39706 #: ../src/guestfs.pod:2162
39709 " const char *key;\n"
39712 " data = guestfs_first_private (g, &key);\n"
39713 " while (data != NULL)\n"
39715 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39717 " guestfs_set_private (g, key, NULL);\n"
39718 " /* note that 'key' pointer is now invalid, and so is\n"
39719 " the internal iterator */\n"
39722 " data = guestfs_next_private (g, &key);\n"
39728 #: ../src/guestfs.pod:2178
39730 "Note that the above loop is guaranteed to terminate because the keys are "
39731 "being deleted, but other manipulations of keys within the loop might not "
39732 "terminate unless you also maintain an indication of which keys have been "
39737 #: ../src/guestfs.pod:2183
39742 #: ../src/guestfs.pod:2185
39744 "The libguestfs C library can be probed using systemtap or DTrace. This is "
39745 "true of any library, not just libguestfs. However libguestfs also contains "
39746 "static markers to help in probing internal operations."
39750 #: ../src/guestfs.pod:2189
39751 msgid "You can list all the static markers by doing:"
39755 #: ../src/guestfs.pod:2191
39758 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
39759 " .provider(\"guestfs\").mark(\"*\")'\n"
39764 #: ../src/guestfs.pod:2194
39766 "B<Note:> These static markers are I<not> part of the stable API and may "
39767 "change in future versions."
39771 #: ../src/guestfs.pod:2197
39772 msgid "SYSTEMTAP SCRIPT EXAMPLE"
39776 #: ../src/guestfs.pod:2199
39778 "This script contains examples of displaying both the static markers and some "
39779 "ordinary C entry points:"
39783 #: ../src/guestfs.pod:2202
39791 #: ../src/guestfs.pod:2204
39794 " function display_time () {\n"
39795 " now = gettimeofday_us ();\n"
39798 " delta = now - last;\n"
39804 #: ../src/guestfs.pod:2211
39807 " printf (\"%d (+%d):\", now, delta);\n"
39813 #: ../src/guestfs.pod:2214
39818 " printf (\"ready\\n\");\n"
39824 #: ../src/guestfs.pod:2219
39827 " /* Display all calls to static markers. */\n"
39828 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39829 " .provider(\"guestfs\").mark(\"*\") ? {\n"
39830 " display_time();\n"
39831 " printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
39837 #: ../src/guestfs.pod:2226
39840 " /* Display all calls to guestfs_mkfs* functions. */\n"
39841 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39842 " .function(\"guestfs_mkfs*\") ? {\n"
39843 " display_time();\n"
39844 " printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
39850 #: ../src/guestfs.pod:2233
39852 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
39853 "program. Note that you either have to be root, or you have to add yourself "
39854 "to several special stap groups. Consult the systemtap documentation for "
39855 "more information."
39859 #: ../src/guestfs.pod:2238
39862 " # stap /tmp/test.stap\n"
39868 #: ../src/guestfs.pod:2241
39869 msgid "In another terminal, run a guestfish command such as this:"
39873 #: ../src/guestfs.pod:2245
39874 msgid "In the first terminal, stap trace output similar to this is shown:"
39878 #: ../src/guestfs.pod:2247
39881 " 1318248056692655 (+0):\tlaunch_start\n"
39882 " 1318248056692850 (+195): launch_build_appliance_start\n"
39883 " 1318248056818285 (+125435): launch_build_appliance_end\n"
39884 " 1318248056838059 (+19774): launch_run_qemu\n"
39885 " 1318248061071167 (+4233108): launch_end\n"
39886 " 1318248061280324 (+209157): guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
39891 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
39896 #: ../src/guestfs.pod:2256
39898 "<!-- old anchor for the next section --> <a name="
39899 "\"state_machine_and_low_level_event_api\"/>"
39901 "<!-- old anchor for the next section --> <a name="
39902 "\"state_machine_and_low_level_event_api\"/>"
39905 #: ../src/guestfs.pod:2261
39906 msgid "ARCHITECTURE"
39907 msgstr "АРХІТЕКТУРА"
39910 #: ../src/guestfs.pod:2263
39912 "Internally, libguestfs is implemented by running an appliance (a special "
39913 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
39914 "process of the main program."
39918 #: ../src/guestfs.pod:2267
39921 " ___________________\n"
39923 " | main program |\n"
39925 " | | child process / appliance\n"
39926 " | | __________________________\n"
39928 " +-------------------+ RPC | +-----------------+ |\n"
39929 " | libguestfs <--------------------> guestfsd | |\n"
39930 " | | | +-----------------+ |\n"
39931 " \\___________________/ | | Linux kernel | |\n"
39932 " | +--^--------------+ |\n"
39933 " \\_________|________________/\n"
39935 " _______v______\n"
39938 " | disk image |\n"
39939 " \\______________/\n"
39944 #: ../src/guestfs.pod:2287
39946 "The library, linked to the main program, creates the child process and hence "
39947 "the appliance in the L</guestfs_launch> function."
39951 #: ../src/guestfs.pod:2290
39953 "Inside the appliance is a Linux kernel and a complete stack of userspace "
39954 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
39955 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
39956 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
39957 "API calls and RPC calls to the daemon. Lastly the disk image(s) are "
39958 "attached to the qemu process which translates device access by the "
39959 "appliance's Linux kernel into accesses to the image."
39963 #: ../src/guestfs.pod:2299
39965 "A common misunderstanding is that the appliance \"is\" the virtual machine. "
39966 "Although the disk image you are attached to might also be used by some "
39967 "virtual machine, libguestfs doesn't know or care about this. (But you will "
39968 "care if both libguestfs's qemu process and your virtual machine are trying "
39969 "to update the disk image at the same time, since these usually results in "
39970 "massive disk corruption)."
39974 #: ../src/guestfs.pod:2306
39975 msgid "STATE MACHINE"
39976 msgstr "СКІНЧЕННИЙ АВТОМАТ"
39979 #: ../src/guestfs.pod:2308
39980 msgid "libguestfs uses a state machine to model the child process:"
39984 #: ../src/guestfs.pod:2310
39988 " guestfs_create\n"
39996 " / | \\ \\ guestfs_launch\n"
39997 " / | _\\__V______\n"
39999 " / | | LAUNCHING |\n"
40000 " / | \\___________/\n"
40002 " / | guestfs_launch\n"
40004 " ______ / __|____V\n"
40005 " / \\ ------> / \\\n"
40006 " | BUSY | | READY |\n"
40007 " \\______/ <------ \\________/\n"
40012 #: ../src/guestfs.pod:2332
40014 "The normal transitions are (1) CONFIG (when the handle is created, but there "
40015 "is no child process), (2) LAUNCHING (when the child process is booting up), "
40016 "(3) alternating between READY and BUSY as commands are issued to, and "
40017 "carried out by, the child process."
40021 #: ../src/guestfs.pod:2337
40023 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
40024 "asynchronously at any time (eg. due to some internal error), and that causes "
40025 "the state to transition back to CONFIG."
40029 #: ../src/guestfs.pod:2341
40031 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
40032 "issued when in the CONFIG state."
40036 #: ../src/guestfs.pod:2344
40038 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
40039 "L</guestfs_launch> blocks until the child process is READY to accept "
40040 "commands (or until some failure or timeout). L</guestfs_launch> internally "
40041 "moves the state from CONFIG to LAUNCHING while it is running."
40045 #: ../src/guestfs.pod:2350
40047 "API actions such as L</guestfs_mount> can only be issued when in the READY "
40048 "state. These API calls block waiting for the command to be carried out (ie. "
40049 "the state to transition to BUSY and then back to READY). There are no non-"
40050 "blocking versions, and no way to issue more than one command per handle at "
40055 #: ../src/guestfs.pod:2356
40057 "Finally, the child process sends asynchronous messages back to the main "
40058 "program, such as kernel log messages. You can register a callback to "
40059 "receive these messages."
40063 #: ../src/guestfs.pod:2360
40068 #: ../src/guestfs.pod:2362
40069 msgid "APPLIANCE BOOT PROCESS"
40073 #: ../src/guestfs.pod:2364
40075 "This process has evolved and continues to evolve. The description here "
40076 "corresponds only to the current version of libguestfs and is provided for "
40077 "information only."
40081 #: ../src/guestfs.pod:2368
40083 "In order to follow the stages involved below, enable libguestfs debugging "
40084 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
40088 #: ../src/guestfs.pod:2373
40089 msgid "Create the appliance"
40093 #: ../src/guestfs.pod:2375
40095 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
40096 "initrd and the appliance."
40100 #: ../src/guestfs.pod:2378
40102 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
40103 "directory if C<TMPDIR> is set)."
40107 #: ../src/guestfs.pod:2381
40109 "For a complete description of how the appliance is created and cached, read "
40110 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
40114 #: ../src/guestfs.pod:2385
40115 msgid "Start qemu and boot the kernel"
40119 #: ../src/guestfs.pod:2387
40120 msgid "qemu is invoked to boot the kernel."
40124 #: ../src/guestfs.pod:2389
40125 msgid "Run the initrd"
40129 #: ../src/guestfs.pod:2391
40131 "C<febootstrap-supermin-helper> builds a small initrd. The initrd is not the "
40132 "appliance. The purpose of the initrd is to load enough kernel modules in "
40133 "order that the appliance itself can be mounted and started."
40137 #: ../src/guestfs.pod:2395
40139 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
40144 #: ../src/guestfs.pod:2398
40146 "When the initrd has started you will see messages showing that kernel "
40147 "modules are being loaded, similar to this:"
40151 #: ../src/guestfs.pod:2401
40154 " febootstrap: ext2 mini initrd starting up\n"
40155 " febootstrap: mounting /sys\n"
40156 " febootstrap: internal insmod libcrc32c.ko\n"
40157 " febootstrap: internal insmod crc32c-intel.ko\n"
40162 #: ../src/guestfs.pod:2406
40163 msgid "Find and mount the appliance device"
40167 #: ../src/guestfs.pod:2408
40169 "The appliance is a sparse file containing an ext2 filesystem which contains "
40170 "a familiar (although reduced in size) Linux operating system. It would "
40171 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
40175 #: ../src/guestfs.pod:2412
40177 "The regular disks being inspected by libguestfs are the first devices "
40178 "exposed by qemu (eg. as C</dev/vda>)."
40182 #: ../src/guestfs.pod:2415
40184 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
40185 "there was only one regular disk)."
40189 #: ../src/guestfs.pod:2418
40191 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
40192 "and switch root into the appliance, and run C</init> from the appliance."
40196 #: ../src/guestfs.pod:2422
40197 msgid "If this works successfully you will see messages such as:"
40201 #: ../src/guestfs.pod:2424
40204 " febootstrap: picked /sys/block/vdb/dev as root device\n"
40205 " febootstrap: creating /dev/root as block special 252:16\n"
40206 " febootstrap: mounting new root on /root\n"
40207 " febootstrap: chroot\n"
40208 " Starting /init script ...\n"
40213 #: ../src/guestfs.pod:2430
40215 "Note that C<Starting /init script ...> indicates that the appliance's init "
40216 "script is now running."
40220 #: ../src/guestfs.pod:2433
40221 msgid "Initialize the appliance"
40225 #: ../src/guestfs.pod:2435
40227 "The appliance itself now initializes itself. This involves starting certain "
40228 "processes like C<udev>, possibly printing some debug information, and "
40229 "finally running the daemon (C<guestfsd>)."
40233 #: ../src/guestfs.pod:2439
40238 #: ../src/guestfs.pod:2441
40240 "Finally the daemon (C<guestfsd>) runs inside the appliance. If it runs you "
40245 #: ../src/guestfs.pod:2444
40248 " verbose daemon enabled\n"
40253 #: ../src/guestfs.pod:2446
40255 "The daemon expects to see a named virtio-serial port exposed by qemu and "
40256 "connected on the other end to the library."
40260 #: ../src/guestfs.pod:2449
40262 "The daemon connects to this port (and hence to the library) and sends a four "
40263 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
40264 "protocol (see below)."
40268 #: ../src/guestfs.pod:2455
40269 msgid "COMMUNICATION PROTOCOL"
40273 #: ../src/guestfs.pod:2457
40275 "Don't rely on using this protocol directly. This section documents how it "
40276 "currently works, but it may change at any time."
40280 #: ../src/guestfs.pod:2460
40282 "The protocol used to talk between the library and the daemon running inside "
40283 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
40284 "1014, RFC 1832, RFC 4506)."
40288 #: ../src/guestfs.pod:2464
40290 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
40291 "this file is automatically generated)."
40295 #: ../src/guestfs.pod:2467
40297 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
40298 "and C<FileOut> parameters, which are handled with very simple request/reply "
40299 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
40300 "parameters, which use the same request and reply messages, but they may also "
40301 "be followed by files sent using a chunked encoding."
40305 #: ../src/guestfs.pod:2474
40306 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
40310 #: ../src/guestfs.pod:2476
40311 msgid "For ordinary functions, the request message is:"
40315 #: ../src/guestfs.pod:2478
40318 " total length (header + arguments,\n"
40319 " but not including the length word itself)\n"
40320 " struct guestfs_message_header (encoded as XDR)\n"
40321 " struct guestfs_<foo>_args (encoded as XDR)\n"
40326 #: ../src/guestfs.pod:2483
40328 "The total length field allows the daemon to allocate a fixed size buffer "
40329 "into which it slurps the rest of the message. As a result, the total length "
40330 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
40331 "effective size of any request is limited to somewhere under this size."
40335 #: ../src/guestfs.pod:2489
40337 "Note also that many functions don't take any arguments, in which case the "
40338 "C<guestfs_I<foo>_args> is completely omitted."
40342 #: ../src/guestfs.pod:2492
40344 "The header contains the procedure number (C<guestfs_proc>) which is how the "
40345 "receiver knows what type of args structure to expect, or none at all."
40349 #: ../src/guestfs.pod:2496
40351 "For functions that take optional arguments, the optional arguments are "
40352 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
40353 "arguments. A bitmask in the header indicates which optional arguments are "
40354 "meaningful. The bitmask is also checked to see if it contains bits set "
40355 "which the daemon does not know about (eg. if more optional arguments were "
40356 "added in a later version of the library), and this causes the call to be "
40361 #: ../src/guestfs.pod:2504
40362 msgid "The reply message for ordinary functions is:"
40366 #: ../src/guestfs.pod:2506
40369 " total length (header + ret,\n"
40370 " but not including the length word itself)\n"
40371 " struct guestfs_message_header (encoded as XDR)\n"
40372 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40377 #: ../src/guestfs.pod:2511
40379 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
40380 "functions that return no formal return values."
40384 #: ../src/guestfs.pod:2514
40386 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
40390 #: ../src/guestfs.pod:2517
40392 "In the case of an error, a flag is set in the header, and the reply message "
40393 "is slightly changed:"
40397 #: ../src/guestfs.pod:2520
40400 " total length (header + error,\n"
40401 " but not including the length word itself)\n"
40402 " struct guestfs_message_header (encoded as XDR)\n"
40403 " struct guestfs_message_error (encoded as XDR)\n"
40408 #: ../src/guestfs.pod:2525
40410 "The C<guestfs_message_error> structure contains the error message as a "
40415 #: ../src/guestfs.pod:2528
40416 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
40420 #: ../src/guestfs.pod:2530
40422 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
40423 "The normal request message is sent (see above). However this is followed by "
40424 "a sequence of file chunks."
40428 #: ../src/guestfs.pod:2534
40431 " total length (header + arguments,\n"
40432 " but not including the length word itself,\n"
40433 " and not including the chunks)\n"
40434 " struct guestfs_message_header (encoded as XDR)\n"
40435 " struct guestfs_<foo>_args (encoded as XDR)\n"
40436 " sequence of chunks for FileIn param #0\n"
40437 " sequence of chunks for FileIn param #1 etc.\n"
40442 #: ../src/guestfs.pod:2542
40443 msgid "The \"sequence of chunks\" is:"
40447 #: ../src/guestfs.pod:2544
40450 " length of chunk (not including length word itself)\n"
40451 " struct guestfs_chunk (encoded as XDR)\n"
40452 " length of chunk\n"
40453 " struct guestfs_chunk (encoded as XDR)\n"
40455 " length of chunk\n"
40456 " struct guestfs_chunk (with data.data_len == 0)\n"
40461 #: ../src/guestfs.pod:2552
40463 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
40464 "is set in the final chunk to indicate either successful completion or early "
40469 #: ../src/guestfs.pod:2556
40471 "At time of writing there are no functions that have more than one FileIn "
40472 "parameter. However this is (theoretically) supported, by sending the "
40473 "sequence of chunks for each FileIn parameter one after another (from left to "
40478 #: ../src/guestfs.pod:2561
40480 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
40481 "transfer. The library does this by sending a chunk with a special flag set "
40482 "to indicate cancellation. When the daemon sees this, it cancels the whole "
40483 "RPC, does I<not> send any reply, and goes back to reading the next request."
40487 #: ../src/guestfs.pod:2567
40489 "The daemon may also cancel. It does this by writing a special word "
40490 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
40491 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
40492 "cancel chunk). The special word is chosen so that even if cancellation "
40493 "happens right at the end of the transfer (after the library has finished "
40494 "writing and has started listening for the reply), the \"spurious\" cancel "
40495 "flag will not be confused with the reply message."
40499 #: ../src/guestfs.pod:2576
40501 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
40502 "limit), and also files where the size is not known in advance (eg. from "
40503 "pipes or sockets). However the chunks are rather small "
40504 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
40505 "to keep much in memory."
40509 #: ../src/guestfs.pod:2582
40510 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
40514 #: ../src/guestfs.pod:2584
40516 "The protocol for FileOut parameters is exactly the same as for FileIn "
40517 "parameters, but with the roles of daemon and library reversed."
40521 #: ../src/guestfs.pod:2587
40524 " total length (header + ret,\n"
40525 " but not including the length word itself,\n"
40526 " and not including the chunks)\n"
40527 " struct guestfs_message_header (encoded as XDR)\n"
40528 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40529 " sequence of chunks for FileOut param #0\n"
40530 " sequence of chunks for FileOut param #1 etc.\n"
40535 #: ../src/guestfs.pod:2595
40536 msgid "INITIAL MESSAGE"
40540 #: ../src/guestfs.pod:2597
40542 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
40543 "which indicates that the guest and daemon is alive. This is what L</"
40544 "guestfs_launch> waits for."
40548 #: ../src/guestfs.pod:2601
40549 msgid "PROGRESS NOTIFICATION MESSAGES"
40553 #: ../src/guestfs.pod:2603
40555 "The daemon may send progress notification messages at any time. These are "
40556 "distinguished by the normal length word being replaced by "
40557 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
40561 #: ../src/guestfs.pod:2607
40563 "The library turns them into progress callbacks (see L</"
40564 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
40569 #: ../src/guestfs.pod:2611
40571 "The daemon self-limits the frequency of progress messages it sends (see "
40572 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
40577 #: ../src/guestfs.pod:2615
40578 msgid "LIBGUESTFS VERSION NUMBERS"
40582 #: ../src/guestfs.pod:2617
40584 "Since April 2010, libguestfs has started to make separate development and "
40585 "stable releases, along with corresponding branches in our git repository. "
40586 "These separate releases can be identified by version number:"
40590 #: ../src/guestfs.pod:2622
40593 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
40594 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
40600 " | `-------- sub-version\n"
40602 " `------ always '1' because we don't change the ABI\n"
40607 #: ../src/guestfs.pod:2633
40608 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
40612 #: ../src/guestfs.pod:2635
40614 "As time passes we cherry pick fixes from the development branch and backport "
40615 "those into the stable branch, the effect being that the stable branch should "
40616 "get more stable and less buggy over time. So the stable releases are ideal "
40617 "for people who don't need new features but would just like the software to "
40622 #: ../src/guestfs.pod:2641
40623 msgid "Our criteria for backporting changes are:"
40627 #: ../src/guestfs.pod:2647
40629 "Documentation changes which don't affect any code are backported unless the "
40630 "documentation refers to a future feature which is not in stable."
40634 #: ../src/guestfs.pod:2653
40636 "Bug fixes which are not controversial, fix obvious problems, and have been "
40637 "well tested are backported."
40641 #: ../src/guestfs.pod:2658
40643 "Simple rearrangements of code which shouldn't affect how it works get "
40644 "backported. This is so that the code in the two branches doesn't get too "
40645 "far out of step, allowing us to backport future fixes more easily."
40649 #: ../src/guestfs.pod:2664
40651 "We I<don't> backport new features, new APIs, new tools etc, except in one "
40652 "exceptional case: the new feature is required in order to implement an "
40653 "important bug fix."
40657 #: ../src/guestfs.pod:2670
40659 "A new stable branch starts when we think the new features in development are "
40660 "substantial and compelling enough over the current stable branch to warrant "
40661 "it. When that happens we create new stable and development versions 1.N.0 "
40662 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
40663 "stable at this point, but by backporting fixes from development, that branch "
40664 "will stabilize over time."
40668 #: ../src/guestfs.pod:2678
40669 msgid "EXTENDING LIBGUESTFS"
40673 #: ../src/guestfs.pod:2680
40674 msgid "ADDING A NEW API ACTION"
40678 #: ../src/guestfs.pod:2682
40680 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
40681 "documentation) are generated, and this makes it easy to extend the "
40686 #: ../src/guestfs.pod:2686
40687 msgid "To add a new API action there are two changes:"
40691 #: ../src/guestfs.pod:2692
40693 "You need to add a description of the call (name, parameters, return type, "
40694 "tests, documentation) to C<generator/generator_actions.ml>."
40698 #: ../src/guestfs.pod:2695
40700 "There are two sorts of API action, depending on whether the call goes "
40701 "through to the daemon in the appliance, or is serviced entirely by the "
40702 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
40703 "former, since the sync is done in the appliance. L</guestfs_set_trace> is "
40704 "an example of the latter, since a trace flag is maintained in the handle and "
40705 "all tracing is done on the library side."
40709 #: ../src/guestfs.pod:2703
40711 "Most new actions are of the first type, and get added to the "
40712 "C<daemon_functions> list. Each function has a unique procedure number used "
40713 "in the RPC protocol which is assigned to that action when we publish "
40714 "libguestfs and cannot be reused. Take the latest procedure number and "
40719 #: ../src/guestfs.pod:2709
40721 "For library-only actions of the second type, add to the "
40722 "C<non_daemon_functions> list. Since these functions are serviced by the "
40723 "library and do not travel over the RPC mechanism to the daemon, these "
40724 "functions do not need a procedure number, and so the procedure number is set "
40729 #: ../src/guestfs.pod:2717
40730 msgid "Implement the action (in C):"
40734 #: ../src/guestfs.pod:2719
40736 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
40737 "C<daemon/> directory."
40741 #: ../src/guestfs.pod:2722
40743 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
40744 "(note: double underscore) in the C<src/> directory."
40748 #: ../src/guestfs.pod:2725
40749 msgid "In either case, use another function as an example of what to do."
40753 #: ../src/guestfs.pod:2729
40754 msgid "After making these changes, use C<make> to compile."
40758 #: ../src/guestfs.pod:2731
40760 "Note that you don't need to implement the RPC, language bindings, manual "
40761 "pages or anything else. It's all automatically generated from the OCaml "
40766 #: ../src/guestfs.pod:2735
40767 msgid "ADDING TESTS FOR AN API ACTION"
40771 #: ../src/guestfs.pod:2737
40773 "You can supply zero or as many tests as you want per API call. The tests "
40774 "can either be added as part of the API description (C<generator/"
40775 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
40776 "into C<regressions/>. Note that adding a script to C<regressions/> is "
40777 "slower, so if possible use the first method."
40781 #: ../src/guestfs.pod:2743
40783 "The following describes the test environment used when you add an API test "
40784 "in C<generator_actions.ml>."
40788 #: ../src/guestfs.pod:2746
40789 msgid "The test environment has 4 block devices:"
40793 #: ../src/guestfs.pod:2750
40794 msgid "C</dev/sda> 500MB"
40795 msgstr "C</dev/sda> 500 МБ"
40798 #: ../src/guestfs.pod:2752
40799 msgid "General block device for testing."
40803 #: ../src/guestfs.pod:2754
40804 msgid "C</dev/sdb> 50MB"
40805 msgstr "C</dev/sdb> 50 МБ"
40808 #: ../src/guestfs.pod:2756
40810 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
40815 #: ../src/guestfs.pod:2759
40816 msgid "C</dev/sdc> 10MB"
40817 msgstr "C</dev/sdc> 10 МБ"
40820 #: ../src/guestfs.pod:2761
40821 msgid "Used in a few tests where two block devices are needed."
40825 #: ../src/guestfs.pod:2763
40826 msgid "C</dev/sdd>"
40827 msgstr "C</dev/sdd>"
40830 #: ../src/guestfs.pod:2765
40831 msgid "ISO with fixed content (see C<images/test.iso>)."
40835 #: ../src/guestfs.pod:2769
40837 "To be able to run the tests in a reasonable amount of time, the libguestfs "
40838 "appliance and block devices are reused between tests. So don't try testing "
40839 "L</guestfs_kill_subprocess> :-x"
40843 #: ../src/guestfs.pod:2773
40845 "Each test starts with an initial scenario, selected using one of the "
40846 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
40847 "initialize the disks mentioned above in a particular way as documented in "
40848 "C<generator_types.ml>. You should not assume anything about the previous "
40849 "contents of other disks that are not initialized."
40853 #: ../src/guestfs.pod:2779
40855 "You can add a prerequisite clause to any individual test. This is a run-"
40856 "time check, which, if it fails, causes the test to be skipped. Useful if "
40857 "testing a command which might not work on all variations of libguestfs "
40858 "builds. A test that has prerequisite of C<Always> means to run "
40863 #: ../src/guestfs.pod:2785
40865 "In addition, packagers can skip individual tests by setting environment "
40866 "variables before running C<make check>."
40870 #: ../src/guestfs.pod:2788
40873 " SKIP_TEST_<CMD>_<NUM>=1\n"
40878 #: ../src/guestfs.pod:2790
40879 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
40883 #: ../src/guestfs.pod:2792
40888 #: ../src/guestfs.pod:2794
40891 " SKIP_TEST_<CMD>=1\n"
40896 #: ../src/guestfs.pod:2796
40897 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
40901 #: ../src/guestfs.pod:2798
40902 msgid "Packagers can run only certain tests by setting for example:"
40906 #: ../src/guestfs.pod:2800
40909 " TEST_ONLY=\"vfs_type zerofree\"\n"
40914 #: ../src/guestfs.pod:2802
40916 "See C<capitests/tests.c> for more details of how these environment variables "
40921 #: ../src/guestfs.pod:2805
40922 msgid "DEBUGGING NEW API ACTIONS"
40926 #: ../src/guestfs.pod:2807
40927 msgid "Test new actions work before submitting them."
40931 #: ../src/guestfs.pod:2809
40932 msgid "You can use guestfish to try out new commands."
40936 #: ../src/guestfs.pod:2811
40938 "Debugging the daemon is a problem because it runs inside a minimal "
40939 "environment. However you can fprintf messages in the daemon to stderr, and "
40940 "they will show up if you use C<guestfish -v>."
40944 #: ../src/guestfs.pod:2815
40945 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
40949 #: ../src/guestfs.pod:2817
40951 "Our C source code generally adheres to some basic code-formatting "
40952 "conventions. The existing code base is not totally consistent on this "
40953 "front, but we do prefer that contributed code be formatted similarly. In "
40954 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
40955 "indentation level, and other than that, follow the K&R style."
40959 #: ../src/guestfs.pod:2823
40961 "If you use Emacs, add the following to one of one of your start-up files (e."
40962 "g., ~/.emacs), to help ensure that you get indentation right:"
40966 #: ../src/guestfs.pod:2826
40969 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
40970 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
40971 " (add-hook 'find-file-hook\n"
40972 " '(lambda () (if (and buffer-file-name\n"
40973 " (string-match \"/libguestfs\\\\>\"\n"
40974 " (buffer-file-name))\n"
40975 " (not (string-equal mode-name \"Change Log\"))\n"
40976 " (not (string-equal mode-name \"Makefile\")))\n"
40977 " (setq indent-tabs-mode nil))))\n"
40982 #: ../src/guestfs.pod:2836
40985 " ;;; When editing C sources in libguestfs, use this style.\n"
40986 " (defun libguestfs-c-mode ()\n"
40987 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
40989 " (c-set-style \"K&R\")\n"
40990 " (setq c-indent-level 2)\n"
40991 " (setq c-basic-offset 2))\n"
40992 " (add-hook 'c-mode-hook\n"
40993 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
40994 " (buffer-file-name))\n"
40995 " (libguestfs-c-mode))))\n"
41000 #: ../src/guestfs.pod:2848
41001 msgid "Enable warnings when compiling (and fix any problems this finds):"
41005 #: ../src/guestfs.pod:2851
41008 " ./configure --enable-gcc-warnings\n"
41011 " ./configure --enable-gcc-warnings\n"
41015 #: ../src/guestfs.pod:2853
41016 msgid "Useful targets are:"
41020 #: ../src/guestfs.pod:2855
41023 " make syntax-check # checks the syntax of the C code\n"
41024 " make check # runs the test suite\n"
41029 #: ../src/guestfs.pod:2858
41030 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
41034 #: ../src/guestfs.pod:2860
41036 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
41037 "which are used to do shell quoting."
41041 #: ../src/guestfs.pod:2865
41046 #: ../src/guestfs.pod:2867
41048 "Simple shell quoted string. Any spaces or other shell characters are "
41053 #: ../src/guestfs.pod:2870
41058 #: ../src/guestfs.pod:2872
41060 "Same as C<%Q> except the string is treated as a path which is prefixed by "
41065 #: ../src/guestfs.pod:2879
41068 " asprintf (&cmd, \"cat %R\", path);\n"
41071 " asprintf (&cmd, \"cat %R\", path);\n"
41075 #: ../src/guestfs.pod:2881
41076 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
41080 #: ../src/guestfs.pod:2883
41082 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
41083 "{,r,v,rv}()> functions. These parameters do NOT need to be quoted because "
41084 "they are not passed via the shell (instead, straight to exec). You probably "
41085 "want to use the C<sysroot_path()> function however."
41089 #: ../src/guestfs.pod:2889
41090 msgid "SUBMITTING YOUR NEW API ACTIONS"
41094 #: ../src/guestfs.pod:2891
41096 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
41097 "libguestfs> and CC to L<rjones@redhat.com>."
41101 #: ../src/guestfs.pod:2895
41102 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
41106 #: ../src/guestfs.pod:2897
41107 msgid "We support i18n (gettext anyhow) in the library."
41111 #: ../src/guestfs.pod:2899
41113 "However many messages come from the daemon, and we don't translate those at "
41114 "the moment. One reason is that the appliance generally has all locale files "
41115 "removed from it, because they take up a lot of space. So we'd have to readd "
41116 "some of those, as well as copying our PO files into the appliance."
41120 #: ../src/guestfs.pod:2905
41122 "Debugging messages are never translated, since they are intended for the "
41127 #: ../src/guestfs.pod:2908
41128 msgid "SOURCE CODE SUBDIRECTORIES"
41132 #: ../src/guestfs.pod:2912
41137 #: ../src/guestfs.pod:2914
41138 msgid "L<virt-alignment-scan(1)> command and documentation."
41142 #: ../src/guestfs.pod:2918
41143 msgid "The libguestfs appliance, build scripts and so on."
41147 #: ../src/guestfs.pod:2920
41148 msgid "C<capitests>"
41149 msgstr "C<capitests>"
41152 #: ../src/guestfs.pod:2922
41153 msgid "Automated tests of the C API."
41157 #: ../src/guestfs.pod:2924
41162 #: ../src/guestfs.pod:2926
41164 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
41169 #: ../src/guestfs.pod:2929
41171 msgstr "C<caution>"
41174 #: ../src/guestfs.pod:2931
41176 "Safety and liveness tests of components that libguestfs depends upon (not of "
41177 "libguestfs itself). Mainly this is for qemu and the kernel."
41181 #: ../src/guestfs.pod:2934
41186 #: ../src/guestfs.pod:2936
41188 "Tools for cloning virtual machines. Currently contains L<virt-sysprep(1)> "
41189 "command and documentation."
41193 #: ../src/guestfs.pod:2939
41195 msgstr "C<contrib>"
41198 #: ../src/guestfs.pod:2941
41199 msgid "Outside contributions, experimental parts."
41203 #: ../src/guestfs.pod:2943
41208 #: ../src/guestfs.pod:2945
41210 "The daemon that runs inside the libguestfs appliance and carries out actions."
41214 #: ../src/guestfs.pod:2948
41219 #: ../src/guestfs.pod:2950
41220 msgid "L<virt-df(1)> command and documentation."
41224 #: ../src/guestfs.pod:2952
41229 #: ../src/guestfs.pod:2954
41230 msgid "L<virt-edit(1)> command and documentation."
41234 #: ../src/guestfs.pod:2956
41235 msgid "C<examples>"
41236 msgstr "C<examples>"
41239 #: ../src/guestfs.pod:2958
41240 msgid "C API example code."
41241 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
41244 #: ../src/guestfs.pod:2960
41249 #: ../src/guestfs.pod:2962
41251 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
41252 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41253 "L<virt-tar-out(1)>."
41257 #: ../src/guestfs.pod:2966
41262 #: ../src/guestfs.pod:2968
41264 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
41268 #: ../src/guestfs.pod:2970
41269 msgid "C<generator>"
41270 msgstr "C<generator>"
41273 #: ../src/guestfs.pod:2972
41275 "The crucially important generator, used to automatically generate large "
41276 "amounts of boilerplate C code for things like RPC and bindings."
41280 #: ../src/guestfs.pod:2975
41285 #: ../src/guestfs.pod:2977
41286 msgid "Files used by the test suite."
41290 #: ../src/guestfs.pod:2979
41291 msgid "Some \"phony\" guest images which we test against."
41295 #: ../src/guestfs.pod:2981
41296 msgid "C<inspector>"
41297 msgstr "C<inspector>"
41300 #: ../src/guestfs.pod:2983
41301 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
41305 #: ../src/guestfs.pod:2985
41310 #: ../src/guestfs.pod:2987
41311 msgid "Logo used on the website. The fish is called Arthur by the way."
41315 #: ../src/guestfs.pod:2989
41320 #: ../src/guestfs.pod:2991
41321 msgid "M4 macros used by autoconf."
41325 #: ../src/guestfs.pod:2993
41330 #: ../src/guestfs.pod:2995
41331 msgid "Translations of simple gettext strings."
41332 msgstr "Переклади простих рядків gettext."
41335 #: ../src/guestfs.pod:2997
41337 msgstr "C<po-docs>"
41340 #: ../src/guestfs.pod:2999
41342 "The build infrastructure and PO files for translations of manpages and POD "
41343 "files. Eventually this will be combined with the C<po> directory, but that "
41344 "is rather complicated."
41348 #: ../src/guestfs.pod:3003
41349 msgid "C<regressions>"
41350 msgstr "C<regressions>"
41353 #: ../src/guestfs.pod:3005
41354 msgid "Regression tests."
41355 msgstr "Тести на регресії."
41358 #: ../src/guestfs.pod:3007
41363 #: ../src/guestfs.pod:3009
41364 msgid "L<virt-rescue(1)> command and documentation."
41368 #: ../src/guestfs.pod:3011
41373 #: ../src/guestfs.pod:3013
41374 msgid "L<virt-resize(1)> command and documentation."
41378 #: ../src/guestfs.pod:3015
41379 msgid "C<sparsify>"
41383 #: ../src/guestfs.pod:3017
41384 msgid "L<virt-sparsify(1)> command and documentation."
41388 #: ../src/guestfs.pod:3019
41393 #: ../src/guestfs.pod:3021
41394 msgid "Source code to the C library."
41398 #: ../src/guestfs.pod:3023
41403 #: ../src/guestfs.pod:3025
41405 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
41409 #: ../src/guestfs.pod:3027
41410 msgid "C<test-tool>"
41411 msgstr "C<test-tool>"
41414 #: ../src/guestfs.pod:3029
41416 "Test tool for end users to test if their qemu/kernel combination will work "
41421 #: ../src/guestfs.pod:3032
41426 #: ../src/guestfs.pod:3034
41431 #: ../src/guestfs.pod:3036
41433 msgstr "C<haskell>"
41436 #: ../src/guestfs.pod:3038
41441 #: ../src/guestfs.pod:3040
41446 #: ../src/guestfs.pod:3042
41451 #: ../src/guestfs.pod:3044
41456 #: ../src/guestfs.pod:3046
41461 #: ../src/guestfs.pod:3048
41466 #: ../src/guestfs.pod:3050
41467 msgid "Language bindings."
41468 msgstr "Прив’язки до мов програмування."
41471 #: ../src/guestfs.pod:3054
41472 msgid "MAKING A STABLE RELEASE"
41476 #: ../src/guestfs.pod:3056
41478 "When we make a stable release, there are several steps documented here. See "
41479 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
41484 #: ../src/guestfs.pod:3064
41486 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
41490 #: ../src/guestfs.pod:3069
41491 msgid "Finalize RELEASE-NOTES."
41495 #: ../src/guestfs.pod:3073
41496 msgid "Update ROADMAP."
41500 #: ../src/guestfs.pod:3077
41501 msgid "Run C<src/api-support/update-from-tarballs.sh>."
41505 #: ../src/guestfs.pod:3081
41506 msgid "Push and pull from Transifex."
41510 #: ../src/guestfs.pod:3083
41515 #: ../src/guestfs.pod:3085
41523 #: ../src/guestfs.pod:3087
41524 msgid "to push the latest POT files to Transifex. Then run:"
41528 #: ../src/guestfs.pod:3089
41536 #: ../src/guestfs.pod:3091
41537 msgid "which is a wrapper to pull the latest translated C<*.po> files."
41541 #: ../src/guestfs.pod:3095
41543 "Create new stable and development directories under L<http://libguestfs.org/"
41548 #: ../src/guestfs.pod:3100
41549 msgid "Create the branch in git:"
41553 #: ../src/guestfs.pod:3102
41556 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
41557 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
41558 " git branch stable-1.XX\n"
41559 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
41564 #: ../src/guestfs.pod:3109
41569 #: ../src/guestfs.pod:3111
41570 msgid "PROTOCOL LIMITS"
41571 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
41574 #: ../src/guestfs.pod:3113
41576 "Internally libguestfs uses a message-based protocol to pass API calls and "
41577 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
41578 "plenty more detail about this). The maximum message size used by the "
41579 "protocol is slightly less than 4 MB. For some API calls you may need to be "
41580 "aware of this limit. The API calls which may be affected are individually "
41581 "documented, with a link back to this section of the documentation."
41585 #: ../src/guestfs.pod:3121
41587 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
41588 "a simple string. Because this string is at some point internally encoded as "
41589 "a message, the maximum size that it can return is slightly under 4 MB. If "
41590 "the requested file is larger than this then you will get an error."
41594 #: ../src/guestfs.pod:3127
41596 "In order to transfer large files into and out of the guest filesystem, you "
41597 "need to use particular calls that support this. The sections L</UPLOADING> "
41598 "and L</DOWNLOADING> document how to do this."
41602 #: ../src/guestfs.pod:3131
41604 "You might also consider mounting the disk image using our FUSE filesystem "
41605 "support (L<guestmount(1)>)."
41609 #: ../src/guestfs.pod:3134
41610 msgid "MAXIMUM NUMBER OF DISKS"
41614 #: ../src/guestfs.pod:3136
41615 msgid "When using virtio disks (the default) the current limit is B<25> disks."
41619 #: ../src/guestfs.pod:3139
41621 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
41622 "slots. However febootstrap only understands disks with names C</dev/vda> "
41623 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
41628 #: ../src/guestfs.pod:3144
41630 "We are working to substantially raise this limit in future versions but it "
41631 "requires complex changes to qemu."
41635 #: ../src/guestfs.pod:3147
41637 "In future versions of libguestfs it should also be possible to \"hot plug\" "
41638 "disks (add and remove disks after calling L</guestfs_launch>). This also "
41639 "requires changes to qemu."
41643 #: ../src/guestfs.pod:3151
41644 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
41648 #: ../src/guestfs.pod:3153
41649 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
41653 #: ../src/guestfs.pod:3155
41655 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
41656 "vda>, and C</dev/vda1> through C</dev/vda15>)."
41660 #: ../src/guestfs.pod:3158
41662 "If you attach a disk with more than 15 partitions, the extra partitions are "
41663 "ignored by libguestfs."
41667 #: ../src/guestfs.pod:3161
41668 msgid "MAXIMUM SIZE OF A DISK"
41672 #: ../src/guestfs.pod:3163
41673 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
41677 #: ../src/guestfs.pod:3165
41679 "We have tested block devices up to 1 exabyte (2**60 or "
41680 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
41685 #: ../src/guestfs.pod:3169
41687 "Although libguestfs probably does not impose any limit, the underlying host "
41688 "storage will. If you store disk images on a host ext4 filesystem, then the "
41689 "maximum size will be limited by the maximum ext4 file size (currently 16 "
41690 "TB). If you store disk images as host logical volumes then you are limited "
41691 "by the maximum size of an LV."
41695 #: ../src/guestfs.pod:3175
41697 "For the hugest disk image files, we recommend using XFS on the host for "
41702 #: ../src/guestfs.pod:3178
41703 msgid "MAXIMUM SIZE OF A PARTITION"
41707 #: ../src/guestfs.pod:3180
41709 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
41710 "numbers. Assuming a 512 byte sector size, this means that MBR cannot "
41711 "address a partition located beyond 2 TB on the disk."
41715 #: ../src/guestfs.pod:3184
41717 "It is recommended that you use GPT partitions on disks which are larger than "
41718 "this size. GPT uses 64 bit sector numbers and so can address partitions "
41719 "which are theoretically larger than the largest disk we could support."
41723 #: ../src/guestfs.pod:3189
41724 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
41728 #: ../src/guestfs.pod:3191
41730 "This depends on the filesystem type. libguestfs itself does not impose any "
41731 "known limit. Consult Wikipedia or the filesystem documentation to find out "
41732 "what these limits are."
41736 #: ../src/guestfs.pod:3195
41737 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
41741 #: ../src/guestfs.pod:3197
41743 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
41744 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
41745 "uploads and downloads."
41749 #: ../src/guestfs.pod:3201
41750 msgid "INSPECTION LIMITS"
41754 #: ../src/guestfs.pod:3203
41756 "The inspection code has several arbitrary limits on things like the size of "
41757 "Windows Registry hive it will read, and the length of product name. These "
41758 "are intended to stop a malicious guest from consuming arbitrary amounts of "
41759 "memory and disk space on the host, and should not be reached in practice. "
41760 "See the source code for more information."
41764 #: ../src/guestfs.pod:3229
41766 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
41767 "effect as calling C<guestfs_set_verbose (g, 1)>."
41771 #: ../src/guestfs.pod:3241
41773 "Set the path that libguestfs uses to search for a supermin appliance. See "
41774 "the discussion of paths in section L</PATH> above."
41778 #: ../src/guestfs.pod:3250
41779 msgid "See also L</QEMU WRAPPERS> above."
41783 #: ../src/guestfs.pod:3254
41785 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
41786 "effect as calling C<guestfs_set_trace (g, 1)>."
41790 #: ../src/guestfs.pod:3272
41792 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
41793 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
41794 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
41795 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
41796 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
41797 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
41798 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
41799 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
41800 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
41801 ">, L<http://libguestfs.org/>."
41805 #: ../src/guestfs.pod:3308
41807 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
41808 "(8)>, L<disktype(1)>."
41812 #: ../src/guestfs.pod:3315 ../tools/virt-make-fs.pl:571
41813 #: ../tools/virt-win-reg.pl:772
41818 #: ../src/guestfs.pod:3317
41819 msgid "To get a list of bugs against libguestfs use this link:"
41821 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
41825 #: ../src/guestfs.pod:3319
41827 "L<https://bugzilla.redhat.com/buglist.cgi?"
41828 "component=libguestfs&product=Virtualization+Tools>"
41830 "L<https://bugzilla.redhat.com/buglist.cgi?"
41831 "component=libguestfs&product=Virtualization+Tools>"
41834 #: ../src/guestfs.pod:3321
41835 msgid "To report a new bug against libguestfs use this link:"
41836 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
41839 #: ../src/guestfs.pod:3323
41841 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41842 "component=libguestfs&product=Virtualization+Tools>"
41844 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41845 "component=libguestfs&product=Virtualization+Tools>"
41848 #: ../src/guestfs.pod:3325
41849 msgid "When reporting a bug, please check:"
41853 #: ../src/guestfs.pod:3331
41854 msgid "That the bug hasn't been reported already."
41858 #: ../src/guestfs.pod:3335
41859 msgid "That you are testing a recent version."
41863 #: ../src/guestfs.pod:3339
41864 msgid "Describe the bug accurately, and give a way to reproduce it."
41868 #: ../src/guestfs.pod:3343
41870 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
41875 #: ../test-tool/libguestfs-test-tool.pod:5
41876 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
41880 #: ../test-tool/libguestfs-test-tool.pod:9
41883 " libguestfs-test-tool [--options]\n"
41888 #: ../test-tool/libguestfs-test-tool.pod:13
41890 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
41891 "to check basic libguestfs functionality is working. This is needed because "
41892 "libguestfs occasionally breaks for reasons beyond our control: usually "
41893 "because of changes in the underlying qemu or kernel packages, or the host "
41898 #: ../test-tool/libguestfs-test-tool.pod:19
41899 msgid "If you suspect a problem in libguestfs, then just run:"
41903 #: ../test-tool/libguestfs-test-tool.pod:21
41906 " libguestfs-test-tool\n"
41911 #: ../test-tool/libguestfs-test-tool.pod:23
41912 msgid "It will print lots of diagnostic messages."
41916 #: ../test-tool/libguestfs-test-tool.pod:25
41917 msgid "If it runs to completion successfully, you will see this near the end:"
41921 #: ../test-tool/libguestfs-test-tool.pod:27
41924 " ===== TEST FINISHED OK =====\n"
41929 #: ../test-tool/libguestfs-test-tool.pod:29
41930 msgid "and the test tool will exit with code 0."
41934 #: ../test-tool/libguestfs-test-tool.pod:31
41936 "If it fails (and/or exits with non-zero error code), please paste the "
41937 "I<complete, unedited> output of the test tool into a bug report. More "
41938 "information about reporting bugs can be found on the L<http://libguestfs.org/"
41943 #: ../test-tool/libguestfs-test-tool.pod:42
41944 msgid "Display short usage information and exit."
41948 #: ../test-tool/libguestfs-test-tool.pod:44
41949 msgid "B<--qemu qemu_binary>"
41953 #: ../test-tool/libguestfs-test-tool.pod:46
41955 "If you have downloaded another qemu binary, point this option at the full "
41956 "path of the binary to try it."
41960 #: ../test-tool/libguestfs-test-tool.pod:49
41961 msgid "B<--qemudir qemu_source_dir>"
41965 #: ../test-tool/libguestfs-test-tool.pod:51
41967 "If you have compiled qemu from source, point this option at the source "
41968 "directory to try it."
41972 #: ../test-tool/libguestfs-test-tool.pod:54
41977 #: ../test-tool/libguestfs-test-tool.pod:56
41978 msgid "B<--timeout N>"
41982 #: ../test-tool/libguestfs-test-tool.pod:58
41984 "Set the launch timeout to C<N> seconds. The default is 600 seconds (10 "
41985 "minutes) which does not usually need to be adjusted."
41989 #: ../test-tool/libguestfs-test-tool.pod:63
41990 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
41994 #: ../test-tool/libguestfs-test-tool.pod:65
41996 "If you have compiled another version of qemu from source and would like to "
41997 "try that, then you can use the I<--qemudir> option to point to the qemu "
41998 "source directory."
42002 #: ../test-tool/libguestfs-test-tool.pod:69
42004 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
42005 "option to point to the binary."
42009 #: ../test-tool/libguestfs-test-tool.pod:72
42011 "Note when using these options, you can ignore the business of qemu wrapper "
42012 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
42013 "wrapper script for you if one is needed."
42017 #: ../test-tool/libguestfs-test-tool.pod:76
42018 msgid "TRYING OUT A DIFFERENT KERNEL"
42022 #: ../test-tool/libguestfs-test-tool.pod:78
42024 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
42025 "libguestfs tries. You do this by setting the environment variables "
42026 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
42030 #: ../test-tool/libguestfs-test-tool.pod:82
42032 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
42037 #: ../test-tool/libguestfs-test-tool.pod:85
42038 msgid "SELF-DIAGNOSIS"
42042 #: ../test-tool/libguestfs-test-tool.pod:87
42044 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
42045 "produced by libguestfs-test-tool and/or possible errors."
42049 #: ../test-tool/libguestfs-test-tool.pod:92
42051 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
42052 "I<1> if there was an error."
42056 #: ../test-tool/libguestfs-test-tool.pod:97
42058 "For the full list of environment variables which may affect libguestfs, "
42059 "please see the L<guestfs(3)> manual page."
42063 #: ../test-tool/libguestfs-test-tool.pod:102
42064 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
42068 #: ../tools/virt-list-filesystems.pl:32
42070 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
42074 #: ../tools/virt-list-filesystems.pl:36
42077 " virt-list-filesystems [--options] domname\n"
42082 #: ../tools/virt-list-filesystems.pl:38
42085 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
42090 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
42092 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
42097 #: ../tools/virt-list-filesystems.pl:45
42099 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
42100 "are contained in a virtual machine or disk image."
42104 #: ../tools/virt-list-filesystems.pl:49
42106 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
42107 "functionality. For more complex cases you should look at the L<guestfish(1)"
42112 #: ../tools/virt-list-filesystems.pl:112
42114 "With this option, C<virt-list-filesystems> displays the type of each "
42115 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
42119 #: ../tools/virt-list-filesystems.pl:119
42124 #: ../tools/virt-list-filesystems.pl:123
42126 "Normally we only show mountable filesystems. If this option is given then "
42127 "swap devices are shown too."
42131 #: ../tools/virt-list-filesystems.pl:197
42133 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42134 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42135 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42137 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42138 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42139 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42142 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
42143 msgid "Copyright (C) 2009 Red Hat Inc."
42144 msgstr "© Red Hat Inc., 2009"
42147 #: ../tools/virt-list-partitions.pl:32
42149 "virt-list-partitions - List partitions in a virtual machine or disk image"
42153 #: ../tools/virt-list-partitions.pl:36
42156 " virt-list-partitions [--options] domname\n"
42159 " virt-list-partitions [--параметри] назва_домену\n"
42163 #: ../tools/virt-list-partitions.pl:38
42166 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
42169 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
42173 #: ../tools/virt-list-partitions.pl:45
42175 "C<virt-list-partitions> is a command line tool to list the partitions that "
42176 "are contained in a virtual machine or disk image. It is mainly useful as a "
42177 "first step to using L<virt-resize(1)>."
42181 #: ../tools/virt-list-partitions.pl:50
42183 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
42184 "functionality. For more complex cases you should look at the L<guestfish(1)"
42189 #: ../tools/virt-list-partitions.pl:113
42190 msgid "Show sizes in human-readable form (eg. \"1G\")."
42194 #: ../tools/virt-list-partitions.pl:123
42196 "With this option, C<virt-list-partitions> displays the type and size of each "
42197 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
42201 #: ../tools/virt-list-partitions.pl:130
42206 #: ../tools/virt-list-partitions.pl:132
42208 msgstr "B<--total>"
42211 #: ../tools/virt-list-partitions.pl:134
42213 "Display the total size of each block device (as a separate row or rows)."
42217 #: ../tools/virt-list-partitions.pl:267
42219 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42220 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42221 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42223 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42224 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42225 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42228 #: ../tools/virt-list-partitions.pl:283
42229 msgid "Copyright (C) 2009-2010 Red Hat Inc."
42230 msgstr "© Red Hat Inc., 2009–2010"
42233 #: ../tools/virt-make-fs.pl:37
42234 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
42238 #: ../tools/virt-make-fs.pl:41
42241 " virt-make-fs [--options] input.tar output.img\n"
42246 #: ../tools/virt-make-fs.pl:43
42249 " virt-make-fs [--options] input.tar.gz output.img\n"
42254 #: ../tools/virt-make-fs.pl:45
42257 " virt-make-fs [--options] directory output.img\n"
42262 #: ../tools/virt-make-fs.pl:49
42264 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
42265 "archive or some files in a directory. It is similar to tools like L<mkisofs"
42266 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, it can "
42267 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
42268 "you want to attach these filesystems to existing virtual machines (eg. to "
42269 "import large amounts of read-only data to a VM)."
42273 #: ../tools/virt-make-fs.pl:57
42274 msgid "Basic usage is:"
42278 #: ../tools/virt-make-fs.pl:59
42281 #| " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42284 " virt-make-fs input output.img\n"
42287 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42291 #: ../tools/virt-make-fs.pl:61
42293 "where C<input> is either a directory containing files that you want to add, "
42294 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
42295 "C<output.img> is a disk image. The input type is detected automatically. "
42296 "The output disk image defaults to a raw ext2 sparse image unless you specify "
42297 "extra flags (see L</OPTIONS> below)."
42301 #: ../tools/virt-make-fs.pl:67
42302 msgid "FILESYSTEM TYPE"
42303 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
42306 #: ../tools/virt-make-fs.pl:69
42308 "The default filesystem type is C<ext2>. Just about any filesystem type that "
42309 "libguestfs supports can be used (but I<not> read-only formats like "
42310 "ISO9660). Here are some of the more common choices:"
42314 #: ../tools/virt-make-fs.pl:75
42319 #: ../tools/virt-make-fs.pl:77
42321 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
42322 "you are not going to use the filesystem in a way that requires the journal, "
42323 "then this is just wasted overhead."
42327 #: ../tools/virt-make-fs.pl:81
42328 msgid "I<ntfs> or I<vfat>"
42329 msgstr "I<ntfs> або I<vfat>"
42332 #: ../tools/virt-make-fs.pl:83
42333 msgid "Useful if exporting data to a Windows guest."
42337 #: ../tools/virt-make-fs.pl:85
42339 "I<Note for vfat>: The tar archive or local directory must only contain files "
42340 "which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
42341 "program running within libguestfs is unable to change the ownership of non-"
42342 "root files, since vfat itself does not support this."
42346 #: ../tools/virt-make-fs.pl:90
42351 #: ../tools/virt-make-fs.pl:92
42353 "Lower overhead than C<ext2>, but certain limitations on filename length and "
42354 "total filesystem size."
42358 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
42359 #: ../tools/virt-make-fs.pl:149
42364 #: ../tools/virt-make-fs.pl:99
42367 " virt-make-fs --type=minix input minixfs.img\n"
42372 #: ../tools/virt-make-fs.pl:101
42373 msgid "TO PARTITION OR NOT TO PARTITION"
42377 #: ../tools/virt-make-fs.pl:103
42378 msgid "Optionally virt-make-fs can add a partition table to the output disk."
42382 #: ../tools/virt-make-fs.pl:105
42384 "Adding a partition can make the disk image more compatible with certain "
42385 "virtualized operating systems which don't expect to see a filesystem "
42386 "directly located on a block device (Linux doesn't care and will happily "
42387 "handle both types)."
42391 #: ../tools/virt-make-fs.pl:110
42393 "On the other hand, if you have a partition table then the output image is no "
42394 "longer a straight filesystem. For example you cannot run L<fsck(8)> "
42395 "directly on a partitioned disk image. (However libguestfs tools such as "
42396 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
42400 #: ../tools/virt-make-fs.pl:118
42401 msgid "Add an MBR partition:"
42405 #: ../tools/virt-make-fs.pl:120
42408 " virt-make-fs --partition -- input disk.img\n"
42413 #: ../tools/virt-make-fs.pl:122
42415 "If the output disk image could be terabyte-sized or larger, it's better to "
42416 "use an EFI/GPT-compatible partition table:"
42420 #: ../tools/virt-make-fs.pl:125
42423 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
42428 #: ../tools/virt-make-fs.pl:127
42429 msgid "EXTRA SPACE"
42433 #: ../tools/virt-make-fs.pl:129
42435 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
42436 "the files that it contains, but might have extra space. Depending on how "
42437 "you are going to use the output, you might think this extra space is wasted "
42438 "and want to minimize it, or you might want to leave space so that more files "
42439 "can be added later. Virt-make-fs defaults to minimizing the extra space, "
42440 "but you can use the I<--size> flag to leave space in the filesystem if you "
42445 #: ../tools/virt-make-fs.pl:137
42447 "An alternative way to leave extra space but not make the output image any "
42448 "bigger is to use an alternative disk image format (instead of the default "
42449 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
42450 "image format (check your hypervisor supports this before using it). This "
42451 "allows you to choose a large I<--size> but the extra space won't actually be "
42452 "allocated in the image until you try to store something in it."
42456 #: ../tools/virt-make-fs.pl:145
42458 "Don't forget that you can also use local commands including L<resize2fs(8)> "
42459 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
42460 "to build another image from scratch."
42464 #: ../tools/virt-make-fs.pl:151
42467 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42470 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42474 #: ../tools/virt-make-fs.pl:179
42475 msgid "Enable debugging information."
42476 msgstr "Увімкнути виведення діагностичних даних."
42479 #: ../tools/virt-make-fs.pl:185
42480 msgid "B<--size=E<lt>NE<gt>>"
42481 msgstr "B<--size=E<lt>NE<gt>>"
42484 #: ../tools/virt-make-fs.pl:187
42485 msgid "B<--size=+E<lt>NE<gt>>"
42486 msgstr "B<--size=+E<lt>NE<gt>>"
42489 #: ../tools/virt-make-fs.pl:189
42490 msgid "B<-s E<lt>NE<gt>>"
42491 msgstr "B<-s E<lt>NE<gt>>"
42494 #: ../tools/virt-make-fs.pl:191
42495 msgid "B<-s +E<lt>NE<gt>>"
42496 msgstr "B<-s +E<lt>NE<gt>>"
42499 #: ../tools/virt-make-fs.pl:193
42501 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
42505 #: ../tools/virt-make-fs.pl:196
42507 "If this option is I<not> given, then the output image will be just large "
42508 "enough to contain all the files, with not much wasted space."
42512 #: ../tools/virt-make-fs.pl:199
42514 "To choose a fixed size output disk, specify an absolute number followed by b/"
42515 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42516 "Petabytes or Exabytes. This must be large enough to contain all the input "
42517 "files, else you will get an error."
42521 #: ../tools/virt-make-fs.pl:204
42523 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
42524 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42525 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
42526 "the input files, and (approximately) an extra 200 MB free space."
42530 #: ../tools/virt-make-fs.pl:210
42532 "Note that virt-make-fs estimates free space, and therefore will not produce "
42533 "filesystems containing precisely the free space requested. (It is much more "
42534 "expensive and time-consuming to produce a filesystem which has precisely the "
42535 "desired free space)."
42539 #: ../tools/virt-make-fs.pl:219
42540 msgid "B<--format=E<lt>fmtE<gt>>"
42544 #: ../tools/virt-make-fs.pl:221
42545 msgid "B<-F E<lt>fmtE<gt>>"
42549 #: ../tools/virt-make-fs.pl:223
42550 msgid "Choose the output disk image format."
42554 #: ../tools/virt-make-fs.pl:225
42555 msgid "The default is C<raw> (raw sparse disk image)."
42559 #: ../tools/virt-make-fs.pl:227
42561 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
42562 "that would really make sense here is C<qcow2>."
42566 #: ../tools/virt-make-fs.pl:234
42567 msgid "B<--type=E<lt>fsE<gt>>"
42571 #: ../tools/virt-make-fs.pl:236
42572 msgid "B<-t E<lt>fsE<gt>>"
42576 #: ../tools/virt-make-fs.pl:238
42577 msgid "Choose the output filesystem type."
42581 #: ../tools/virt-make-fs.pl:240
42582 msgid "The default is C<ext2>."
42583 msgstr "Типовим значенням є C<ext2>."
42586 #: ../tools/virt-make-fs.pl:242
42588 "Any filesystem which is supported read-write by libguestfs can be used here."
42592 #: ../tools/virt-make-fs.pl:249
42593 msgid "B<--partition>"
42594 msgstr "B<--partition>"
42597 #: ../tools/virt-make-fs.pl:251
42598 msgid "B<--partition=E<lt>parttypeE<gt>>"
42602 #: ../tools/virt-make-fs.pl:253
42604 "If specified, this flag adds an MBR partition table to the output disk image."
42608 #: ../tools/virt-make-fs.pl:256
42610 "You can change the partition table type, eg. I<--partition=gpt> for large "
42615 #: ../tools/virt-make-fs.pl:259
42617 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
42618 "might consider the next parameter to be the partition type. For example:"
42622 #: ../tools/virt-make-fs.pl:263
42625 #| " virt-make-fs --partition input.tar ...\n"
42628 " virt-make-fs --partition input.tar output.img\n"
42631 " virt-make-fs --partition input.tar ...\n"
42635 #: ../tools/virt-make-fs.pl:265
42637 "would cause virt-make-fs to think you wanted to use a partition type of "
42638 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
42639 "dash) between options and the input and output arguments:"
42643 #: ../tools/virt-make-fs.pl:269
42646 #| " virt-make-fs --partition -- input.tar ...\n"
42649 " virt-make-fs --partition -- input.tar output.img\n"
42652 " virt-make-fs --partition -- input.tar ...\n"
42656 #: ../tools/virt-make-fs.pl:271
42657 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
42661 #: ../tools/virt-make-fs.pl:559
42663 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42664 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42665 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42667 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42668 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42669 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42672 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
42674 "When reporting bugs, please enable debugging and capture the I<complete> "
42679 #: ../tools/virt-make-fs.pl:576
42682 " export LIBGUESTFS_DEBUG=1\n"
42683 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42686 " export LIBGUESTFS_DEBUG=1\n"
42687 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42691 #: ../tools/virt-make-fs.pl:579
42693 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
42698 #: ../tools/virt-tar.pl:33
42699 msgid "virt-tar - Extract or upload files to a virtual machine"
42703 #: ../tools/virt-tar.pl:37
42706 " virt-tar [--options] -x domname directory tarball\n"
42711 #: ../tools/virt-tar.pl:39
42714 " virt-tar [--options] -u domname tarball directory\n"
42719 #: ../tools/virt-tar.pl:41
42722 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
42727 #: ../tools/virt-tar.pl:43
42730 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
42735 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
42740 #: ../tools/virt-tar.pl:47
42742 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
42743 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
42747 #: ../tools/virt-tar.pl:52
42748 msgid "Download C</home> from the VM into a local tarball:"
42752 #: ../tools/virt-tar.pl:54
42755 " virt-tar -x domname /home home.tar\n"
42760 #: ../tools/virt-tar.pl:56
42763 " virt-tar -zx domname /home home.tar.gz\n"
42768 #: ../tools/virt-tar.pl:58
42769 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
42773 #: ../tools/virt-tar.pl:60
42776 " virt-tar -u domname uploadstuff.tar /tmp\n"
42781 #: ../tools/virt-tar.pl:62
42784 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
42789 #: ../tools/virt-tar.pl:66
42791 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
42792 "virtual machines. If you do this, you risk disk corruption in the VM. "
42793 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
42797 #: ../tools/virt-tar.pl:71
42799 "You can use I<-x> (extract) on live virtual machines, but you might get "
42800 "inconsistent results or errors if there is filesystem activity inside the "
42801 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
42802 "work, but the only way to guarantee consistent results is if the virtual "
42803 "machine is shut down."
42807 #: ../tools/virt-tar.pl:79
42809 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
42810 "parts of a guest filesystem. There are many possibilities: making backups, "
42811 "uploading data files, snooping on guest activity, fixing or customizing "
42816 #: ../tools/virt-tar.pl:84
42818 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
42819 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
42820 "should look at the L<guestfish(1)> tool."
42824 #: ../tools/virt-tar.pl:88
42826 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
42827 "its contents (recursively) from the virtual machine into a local tarball. "
42828 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
42829 "virtual machine. You cannot use these two options together."
42833 #: ../tools/virt-tar.pl:94
42835 "In addition, you may need to use the I<-z> (gZip) option to enable "
42836 "compression. When uploading, you have to specify I<-z> if the upload file "
42837 "is compressed because virt-tar won't detect this on its own."
42841 #: ../tools/virt-tar.pl:98
42843 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
42844 "example it cannot do PKZip files or bzip2 compression. If you want that "
42845 "then you'll have to rebuild the tarballs yourself. (This is a limitation of "
42846 "the L<libguestfs(3)> API)."
42850 #: ../tools/virt-tar.pl:160
42851 msgid "B<--extract>"
42852 msgstr "B<--extract>"
42855 #: ../tools/virt-tar.pl:162
42856 msgid "B<--download>"
42857 msgstr "B<--download>"
42860 #: ../tools/virt-tar.pl:164
42865 #: ../tools/virt-tar.pl:166
42866 msgid "B<--upload>"
42867 msgstr "B<--upload>"
42870 #: ../tools/virt-tar.pl:168
42872 "Use I<-x> to extract (download) a directory from a virtual machine to a "
42877 #: ../tools/virt-tar.pl:171
42879 "Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
42880 "Please read the L</WARNING> section above before using this option."
42884 #: ../tools/virt-tar.pl:175
42885 msgid "You must specify exactly one of these options."
42889 #: ../tools/virt-tar.pl:181
42894 #: ../tools/virt-tar.pl:183
42899 #: ../tools/virt-tar.pl:185
42900 msgid "Specify that the input or output tarball is gzip-compressed."
42904 #: ../tools/virt-tar.pl:298
42906 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42907 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42908 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42911 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42912 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42913 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42917 #: ../tools/virt-win-reg.pl:37
42919 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
42923 #: ../tools/virt-win-reg.pl:41
42926 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
42931 #: ../tools/virt-win-reg.pl:43
42934 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
42939 #: ../tools/virt-win-reg.pl:45
42942 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
42947 #: ../tools/virt-win-reg.pl:47
42950 " virt-win-reg --merge domname [input.reg ...]\n"
42955 #: ../tools/virt-win-reg.pl:49
42958 " virt-win-reg [--options] disk.img ... # instead of domname\n"
42963 #: ../tools/virt-win-reg.pl:53
42965 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
42966 "virtual machines. If you do this, you I<will> get irreversible disk "
42967 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
42968 "but doesn't catch all cases."
42972 #: ../tools/virt-win-reg.pl:58
42974 "Modifying the Windows Registry is an inherently risky operation. The format "
42975 "is deliberately obscure and undocumented, and Registry changes can leave the "
42976 "system unbootable. Therefore when using the I<--merge> option, make sure "
42977 "you have a reliable backup first."
42981 #: ../tools/virt-win-reg.pl:65
42983 "This program can export and merge Windows Registry entries from a Windows "
42988 #: ../tools/virt-win-reg.pl:68
42990 "The first parameter is the libvirt guest name or the raw disk image of a "
42995 #: ../tools/virt-win-reg.pl:71
42997 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
42998 "exported (recursively). For example:"
43002 #: ../tools/virt-win-reg.pl:74
43005 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
43008 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
43012 #: ../tools/virt-win-reg.pl:76
43014 "You can also display single values from within registry keys, for example:"
43018 #: ../tools/virt-win-reg.pl:79
43021 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
43022 " $ virt-win-reg Windows7 $cvkey ProductName\n"
43023 " Windows 7 Enterprise\n"
43026 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
43027 " $ virt-win-reg Windows7 $cvkey ProductName\n"
43028 " Windows 7 Enterprise\n"
43032 #: ../tools/virt-win-reg.pl:83
43034 "With I<--merge>, you can merge a textual regedit file into the Windows "
43039 #: ../tools/virt-win-reg.pl:86
43042 " $ virt-win-reg --merge Windows7 changes.reg\n"
43045 " $ virt-win-reg --merge Windows7 changes.reg\n"
43049 #: ../tools/virt-win-reg.pl:90
43051 "This program is only meant for simple access to the registry. If you want "
43052 "to do complicated things with the registry, we suggest you download the "
43053 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
43054 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
43055 "L<hivexregedit(1)>."
43059 #: ../tools/virt-win-reg.pl:159
43061 msgstr "B<--merge>"
43064 #: ../tools/virt-win-reg.pl:161
43066 "In merge mode, this merges a textual regedit file into the Windows Registry "
43067 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
43068 "displays or exports Registry entries instead."
43072 #: ../tools/virt-win-reg.pl:165
43074 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
43075 "result in disk corruption. However exporting (without this flag) is always "
43080 #: ../tools/virt-win-reg.pl:173
43081 msgid "B<--encoding> UTF-16LE|ASCII"
43082 msgstr "B<--encoding> UTF-16LE|ASCII"
43085 #: ../tools/virt-win-reg.pl:175
43087 "When merging (only), you may need to specify the encoding for strings to be "
43088 "used in the hive file. This is explained in detail in L<Win::Hivex::Regedit"
43089 "(3)/ENCODING STRINGS>."
43093 #: ../tools/virt-win-reg.pl:179
43095 "The default is to use UTF-16LE, which should work with recent versions of "
43100 #: ../tools/virt-win-reg.pl:186
43101 msgid "B<--unsafe-printable-strings>"
43102 msgstr "B<--unsafe-printable-strings>"
43105 #: ../tools/virt-win-reg.pl:188
43107 "When exporting (only), assume strings are UTF-16LE and print them as strings "
43108 "instead of hex sequences. Remove the final zero codepoint from strings if "
43113 #: ../tools/virt-win-reg.pl:192
43115 "This is unsafe and does not preserve the fidelity of strings in the original "
43116 "Registry for various reasons:"
43120 #: ../tools/virt-win-reg.pl:199
43122 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
43123 "other encodings will be corrupted by this transformation."
43127 #: ../tools/virt-win-reg.pl:204
43129 "Assumes that everything which has type 1 or 2 is really a string and that "
43130 "everything else is not a string, but the type field in real Registries is "
43135 #: ../tools/virt-win-reg.pl:210
43137 "Loses information about whether a zero codepoint followed the string in the "
43142 #: ../tools/virt-win-reg.pl:215
43144 "This all happens because the Registry itself contains no information about "
43145 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
43149 #: ../tools/virt-win-reg.pl:219
43151 "You should only use this option for quick hacking and debugging of the "
43152 "Registry contents, and I<never> use it if the output is going to be passed "
43153 "into another program or stored in another Registry."
43157 #: ../tools/virt-win-reg.pl:556
43158 msgid "SUPPORTED SYSTEMS"
43159 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
43162 #: ../tools/virt-win-reg.pl:558
43164 "The program currently supports Windows NT-derived guests starting with "
43165 "Windows XP through to at least Windows 7."
43169 #: ../tools/virt-win-reg.pl:561
43170 msgid "The following Registry keys are supported:"
43174 #: ../tools/virt-win-reg.pl:565
43175 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
43176 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
43179 #: ../tools/virt-win-reg.pl:567
43180 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43181 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43184 #: ../tools/virt-win-reg.pl:569
43185 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43186 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43189 #: ../tools/virt-win-reg.pl:571
43190 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43191 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43194 #: ../tools/virt-win-reg.pl:573
43195 msgid "C<HKEY_USERS\\.DEFAULT>"
43196 msgstr "C<HKEY_USERS\\.DEFAULT>"
43199 #: ../tools/virt-win-reg.pl:575
43200 msgid "C<HKEY_USERS\\I<SID>>"
43201 msgstr "C<HKEY_USERS\\I<SID>>"
43204 #: ../tools/virt-win-reg.pl:577
43205 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
43209 #: ../tools/virt-win-reg.pl:579
43210 msgid "C<HKEY_USERS\\I<username>>"
43211 msgstr "C<HKEY_USERS\\I<користувач>>"
43214 #: ../tools/virt-win-reg.pl:581
43216 "where I<username> is a local user name (this is a libguestfs extension)."
43220 #: ../tools/virt-win-reg.pl:585
43222 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
43227 #: ../tools/virt-win-reg.pl:588
43229 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
43230 "supported (there is no \"current user\")."
43234 #: ../tools/virt-win-reg.pl:591
43239 #: ../tools/virt-win-reg.pl:593
43241 "C<virt-win-reg> expects that regedit files have already been reencoded in "
43242 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
43243 "style line endings. Since Windows regedit files are often in UTF-16LE with "
43244 "Windows-style line endings, you may need to reencode the whole file before "
43245 "or after processing."
43249 #: ../tools/virt-win-reg.pl:599
43251 "To reencode a file from Windows format to Linux (before processing it with "
43252 "the I<--merge> option), you would do something like this:"
43256 #: ../tools/virt-win-reg.pl:602
43259 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43262 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43266 #: ../tools/virt-win-reg.pl:604
43268 "To go in the opposite direction, after exporting and before sending the file "
43269 "to a Windows user, do something like this:"
43273 #: ../tools/virt-win-reg.pl:607
43276 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43279 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43283 #: ../tools/virt-win-reg.pl:609
43284 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
43288 #: ../tools/virt-win-reg.pl:611
43290 "If you are unsure about the current encoding, use the L<file(1)> command. "
43291 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
43292 "style (CRLF) line endings, like this:"
43296 #: ../tools/virt-win-reg.pl:615
43299 " $ file software.reg\n"
43300 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
43301 " with CRLF line terminators\n"
43306 #: ../tools/virt-win-reg.pl:619
43307 msgid "This file would need conversion before you could I<--merge> it."
43311 #: ../tools/virt-win-reg.pl:621
43312 msgid "CurrentControlSet etc."
43316 #: ../tools/virt-win-reg.pl:623
43318 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
43319 "Registry at the level of the hive file, and therefore you cannot modify "
43324 #: ../tools/virt-win-reg.pl:627
43326 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
43327 "circumstances it might refer to another control set. The way to find out is "
43328 "to look at the C<HKLM\\SYSTEM\\Select> key:"
43332 #: ../tools/virt-win-reg.pl:631
43335 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43336 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43337 " \"Current\"=dword:00000001\n"
43338 " \"Default\"=dword:00000001\n"
43339 " \"Failed\"=dword:00000000\n"
43340 " \"LastKnownGood\"=dword:00000002\n"
43343 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43344 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43345 " \"Current\"=dword:00000001\n"
43346 " \"Default\"=dword:00000001\n"
43347 " \"Failed\"=dword:00000000\n"
43348 " \"LastKnownGood\"=dword:00000002\n"
43352 #: ../tools/virt-win-reg.pl:638
43353 msgid "\"Current\" is the one which Windows will choose when it boots."
43357 #: ../tools/virt-win-reg.pl:640
43359 "Similarly, other C<Current...> keys in the path may need to be replaced."
43363 #: ../tools/virt-win-reg.pl:643
43364 msgid "DELETING REGISTRY KEYS AND VALUES"
43368 #: ../tools/virt-win-reg.pl:645
43369 msgid "To delete a whole registry key, use the syntax:"
43373 #: ../tools/virt-win-reg.pl:647
43375 #| msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
43377 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
43379 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
43382 #: ../tools/virt-win-reg.pl:649
43383 msgid "To delete a single value within a key, use the syntax:"
43387 #: ../tools/virt-win-reg.pl:651
43389 #| msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
43391 " [HKEY_LOCAL_MACHINE\\Foo]\n"
43394 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
43397 #: ../tools/virt-win-reg.pl:654
43398 msgid "WINDOWS TIPS"
43402 #: ../tools/virt-win-reg.pl:656
43404 "Note that some of these tips modify the guest disk image. The guest I<must> "
43405 "be shut off, else you will get disk corruption."
43409 #: ../tools/virt-win-reg.pl:659
43410 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
43414 #: ../tools/virt-win-reg.pl:661
43416 "Prepare a DOS batch script, VBScript or executable. Upload this using "
43417 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
43418 "is uploaded into C<C:\\>:"
43422 #: ../tools/virt-win-reg.pl:665
43425 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
43428 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
43432 #: ../tools/virt-win-reg.pl:667
43433 msgid "Prepare a regedit file containing the registry change:"
43437 #: ../tools/virt-win-reg.pl:669
43440 " cat > test.reg <<'EOF'\n"
43441 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
43442 " \"Test\"=\"c:\\\\test.bat\"\n"
43446 " cat > test.reg <<'EOF'\n"
43447 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
43448 " \"Test\"=\"c:\\\\test.bat\"\n"
43453 #: ../tools/virt-win-reg.pl:674
43455 "In this example we use the key C<RunOnce> which means that the script will "
43456 "run precisely once when the first user logs in. If you want it to run every "
43457 "time a user logs in, replace C<RunOnce> with C<Run>."
43461 #: ../tools/virt-win-reg.pl:678
43462 msgid "Now update the registry:"
43463 msgstr "Оновіть регістр:"
43466 #: ../tools/virt-win-reg.pl:680
43469 " virt-win-reg --merge WindowsGuest test.reg\n"
43474 #: ../tools/virt-win-reg.pl:682
43475 msgid "INSTALLING A SERVICE"
43479 #: ../tools/virt-win-reg.pl:684
43481 "This section assumes you are familiar with Windows services, and you either "
43482 "have a program which handles the Windows Service Control Protocol directly "
43483 "or you want to run any program using a service wrapper like SrvAny or the "
43488 #: ../tools/virt-win-reg.pl:689
43490 "First upload the program and optionally the service wrapper. In this case "
43491 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
43495 #: ../tools/virt-win-reg.pl:693
43498 " guestfish -i -d WindowsGuest <<EOF\n"
43499 " upload rhsrvany.exe /rhsrvany.exe\n"
43500 " upload test.exe /test.exe\n"
43504 " guestfish -i -d WindowsGuest <<EOF\n"
43505 " upload rhsrvany.exe /rhsrvany.exe\n"
43506 " upload test.exe /test.exe\n"
43511 #: ../tools/virt-win-reg.pl:698
43513 "Prepare a regedit file containing the registry changes. In this example, "
43514 "the first registry change is needed for the service itself or the service "
43515 "wrapper (if used). The second registry change is only needed because I am "
43516 "using the RHSrvAny service wrapper."
43520 #: ../tools/virt-win-reg.pl:703
43523 " cat > service.reg <<'EOF'\n"
43524 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
43525 " \"Type\"=dword:00000010\n"
43526 " \"Start\"=dword:00000002\n"
43527 " \"ErrorControl\"=dword:00000001\n"
43528 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
43529 " \"DisplayName\"=\"RHSrvAny\"\n"
43530 " \"ObjectName\"=\"NetworkService\"\n"
43533 " cat > service.reg <<'EOF'\n"
43534 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
43535 " \"Type\"=dword:00000010\n"
43536 " \"Start\"=dword:00000002\n"
43537 " \"ErrorControl\"=dword:00000001\n"
43538 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
43539 " \"DisplayName\"=\"RHSrvAny\"\n"
43540 " \"ObjectName\"=\"NetworkService\"\n"
43544 #: ../tools/virt-win-reg.pl:712
43547 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
43548 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
43549 " \"PWD\"=\"c:\\\\Temp\"\n"
43553 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
43554 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
43555 " \"PWD\"=\"c:\\\\Temp\"\n"
43560 #: ../tools/virt-win-reg.pl:723
43562 "For use of C<ControlSet001> see the section above in this manual page. You "
43563 "may need to adjust this according to the control set that is in use by the "
43568 #: ../tools/virt-win-reg.pl:729
43570 "C<\"ObjectName\"> controls the privileges that the service will have. An "
43571 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
43572 "privileged account."
43576 #: ../tools/virt-win-reg.pl:735
43578 "For the meaning of the magic numbers, see this Microsoft KB article: "
43579 "L<http://support.microsoft.com/kb/103000>."
43583 #: ../tools/virt-win-reg.pl:740
43584 msgid "Update the registry:"
43585 msgstr "Оновіть регістр:"
43588 #: ../tools/virt-win-reg.pl:742
43591 " virt-win-reg --merge WindowsGuest service.reg\n"
43596 #: ../tools/virt-win-reg.pl:746
43598 "Be careful when passing parameters containing C<\\> (backslash) in the "
43599 "shell. Usually you will have to use 'single quotes' or double backslashes "
43600 "(but not both) to protect them from the shell."
43604 #: ../tools/virt-win-reg.pl:750
43605 msgid "Paths and value names are case-insensitive."
43609 #: ../tools/virt-win-reg.pl:759
43611 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
43612 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
43613 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43615 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
43616 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
43617 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43620 #: ../tools/virt-win-reg.pl:777
43623 " export LIBGUESTFS_DEBUG=1\n"
43624 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
43629 #: ../tools/virt-win-reg.pl:780
43631 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
43636 #~ " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
43639 #~ " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"