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 14:08+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:395 ../fish/guestfish-actions.pod:403
900 #: ../fish/guestfish-actions.pod:410 ../fish/guestfish-actions.pod:417
901 #: ../fish/guestfish-actions.pod:1216 ../fish/guestfish-actions.pod:1220
902 #: ../fish/guestfish-actions.pod:1224 ../fish/guestfish-actions.pod:1228
903 #: ../fish/guestfish-actions.pod:1236 ../fish/guestfish-actions.pod:1240
904 #: ../fish/guestfish-actions.pod:1244 ../fish/guestfish-actions.pod:1254
905 #: ../fish/guestfish-actions.pod:1258 ../fish/guestfish-actions.pod:1262
906 #: ../fish/guestfish-actions.pod:1352 ../fish/guestfish-actions.pod:1356
907 #: ../fish/guestfish-actions.pod:1361 ../fish/guestfish-actions.pod:1366
908 #: ../fish/guestfish-actions.pod:1408 ../fish/guestfish-actions.pod:1412
909 #: ../fish/guestfish-actions.pod:1417 ../fish/guestfish-actions.pod:1673
910 #: ../fish/guestfish-actions.pod:1680 ../fish/guestfish-actions.pod:1687
911 #: ../fish/guestfish-actions.pod:2090 ../fish/guestfish-actions.pod:2096
912 #: ../fish/guestfish-actions.pod:2104 ../fish/guestfish-actions.pod:2111
913 #: ../fish/guestfish-actions.pod:2118 ../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:594 ../src/guestfs-actions.pod:602
924 #: ../src/guestfs-actions.pod:609 ../src/guestfs-actions.pod:616
925 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2028
926 #: ../src/guestfs-actions.pod:2032 ../src/guestfs-actions.pod:2036
927 #: ../src/guestfs-actions.pod:2044 ../src/guestfs-actions.pod:2048
928 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2062
929 #: ../src/guestfs-actions.pod:2066 ../src/guestfs-actions.pod:2070
930 #: ../src/guestfs-actions.pod:2208 ../src/guestfs-actions.pod:2212
931 #: ../src/guestfs-actions.pod:2217 ../src/guestfs-actions.pod:2222
932 #: ../src/guestfs-actions.pod:2283 ../src/guestfs-actions.pod:2287
933 #: ../src/guestfs-actions.pod:2292 ../src/guestfs-actions.pod:2707
934 #: ../src/guestfs-actions.pod:2714 ../src/guestfs-actions.pod:2721
935 #: ../src/guestfs-actions.pod:3266 ../src/guestfs-actions.pod:3272
936 #: ../src/guestfs-actions.pod:3280 ../src/guestfs-actions.pod:3287
937 #: ../src/guestfs-actions.pod:3294 ../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:4349
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:1404 ../fish/guestfish-actions.pod:1669
5307 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:18
5308 #: ../src/guestfs-actions.pod:2279 ../src/guestfs-actions.pod:2703
5309 #: ../src/guestfs-actions.pod:3262 ../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:168
5905 #: ../fish/guestfish-actions.pod:182
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:171
5913 #: ../fish/guestfish-actions.pod:185 ../fish/guestfish-actions.pod:895
5914 #: ../fish/guestfish-actions.pod:930 ../fish/guestfish-actions.pod:1103
5915 #: ../fish/guestfish-actions.pod:1463 ../fish/guestfish-actions.pod:1477
5916 #: ../fish/guestfish-actions.pod:3247 ../fish/guestfish-actions.pod:3558
5917 #: ../fish/guestfish-actions.pod:3606 ../fish/guestfish-actions.pod:4533
5918 #: ../fish/guestfish-actions.pod:4556 ../fish/guestfish-actions.pod:4578
5919 #: ../fish/guestfish-actions.pod:4616 ../fish/guestfish-actions.pod:5265
5920 #: ../fish/guestfish-actions.pod:5371 ../src/guestfs-actions.pod:10
5921 #: ../src/guestfs-actions.pod:258 ../src/guestfs-actions.pod:279
5922 #: ../src/guestfs-actions.pod:1525 ../src/guestfs-actions.pod:1582
5923 #: ../src/guestfs-actions.pod:1865 ../src/guestfs-actions.pod:2364
5924 #: ../src/guestfs-actions.pod:2385 ../src/guestfs-actions.pod:5030
5925 #: ../src/guestfs-actions.pod:5552 ../src/guestfs-actions.pod:5652
5926 #: ../src/guestfs-actions.pod:6952 ../src/guestfs-actions.pod:6996
5927 #: ../src/guestfs-actions.pod:7030 ../src/guestfs-actions.pod:7093
5928 #: ../src/guestfs-actions.pod:8025 ../src/guestfs-actions.pod:8134
5929 #: ../src/guestfs-actions.pod:8317
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:..]\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:64
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:67
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:71
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:76
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:82
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:89
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
6016 "The other optional parameters are passed directly through to L</add-drive-"
6021 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:148
6022 #: ../fish/guestfish-actions.pod:578 ../fish/guestfish-actions.pod:789
6023 #: ../fish/guestfish-actions.pod:810 ../fish/guestfish-actions.pod:848
6024 #: ../fish/guestfish-actions.pod:857 ../fish/guestfish-actions.pod:866
6025 #: ../fish/guestfish-actions.pod:880 ../fish/guestfish-actions.pod:2125
6026 #: ../fish/guestfish-actions.pod:3296 ../fish/guestfish-actions.pod:3459
6027 #: ../fish/guestfish-actions.pod:3594
6029 "This command has one or more optional arguments. See L</OPTIONAL ARGUMENTS>."
6033 #: ../fish/guestfish-actions.pod:81
6038 #: ../fish/guestfish-actions.pod:83
6041 " add-drive filename\n"
6044 " add-drive назва_файла\n"
6048 #: ../fish/guestfish-actions.pod:85
6050 "This function is the equivalent of calling L</add-drive-opts> with no "
6051 "optional parameters, so the disk is added writable, with the format being "
6052 "detected automatically."
6056 #: ../fish/guestfish-actions.pod:89
6058 "Automatic detection of the format opens you up to a potential security hole "
6059 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
6060 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
6061 "you should think about replacing calls to this function with calls to L</add-"
6062 "drive-opts>, and specifying the format."
6066 #: ../fish/guestfish-actions.pod:96
6067 msgid "add-drive-opts"
6068 msgstr "add-drive-opts"
6071 #: ../fish/guestfish-actions.pod:98
6076 #: ../fish/guestfish-actions.pod:100
6079 " add-drive-opts filename [readonly:..] [format:..] [iface:..] [name:..]\n"
6084 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:161
6086 "This function adds a virtual machine disk image C<filename> to libguestfs. "
6087 "The first time you call this function, the disk appears as C</dev/sda>, the "
6088 "second time as C</dev/sdb>, and so on."
6092 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:166
6094 "You don't necessarily need to be root when using libguestfs. However you "
6095 "obviously do need sufficient permissions to access the filename for whatever "
6096 "operations you want to perform (ie. read access if you just want to read the "
6097 "image or write access if you want to modify the image)."
6101 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:172
6102 msgid "This call checks that C<filename> exists."
6106 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3258
6107 #: ../src/guestfs-actions.pod:174 ../src/guestfs-actions.pod:5067
6108 msgid "The optional arguments are:"
6112 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:178
6114 msgstr "C<readonly>"
6117 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:180
6119 "If true then the image is treated as read-only. Writes are still allowed, "
6120 "but they are stored in a temporary snapshot overlay which is discarded at "
6121 "the end. The disk that you add is not modified."
6125 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:184
6130 #: ../fish/guestfish-actions.pod:127
6132 "This forces the image format. If you omit this (or use L</add-drive> or L</"
6133 "add-drive-ro>) then the format is automatically detected. Possible formats "
6134 "include C<raw> and C<qcow2>."
6138 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:190
6140 "Automatic detection of the format opens you up to a potential security hole "
6141 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
6142 "RHBZ#642934. Specifying the format closes this security hole."
6146 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:195
6151 #: ../fish/guestfish-actions.pod:138
6153 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6154 "add-drive-with-if> call (q.v.)"
6158 #: ../fish/guestfish-actions.pod:141 ../src/guestfs-actions.pod:200
6160 #| msgid "C<app_name>"
6162 msgstr "C<app_name>"
6165 #: ../fish/guestfish-actions.pod:143 ../src/guestfs-actions.pod:202
6167 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6168 "a hint to the guest inspection process if it is available."
6172 #: ../fish/guestfish-actions.pod:150
6173 msgid "add-drive-ro"
6174 msgstr "add-drive-ro"
6177 #: ../fish/guestfish-actions.pod:152
6182 #: ../fish/guestfish-actions.pod:154
6185 " add-drive-ro filename\n"
6190 #: ../fish/guestfish-actions.pod:156
6192 "This function is the equivalent of calling L</add-drive-opts> with the "
6193 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6194 "is added read-only, with the format being detected automatically."
6198 #: ../fish/guestfish-actions.pod:161
6199 msgid "add-drive-ro-with-if"
6203 #: ../fish/guestfish-actions.pod:163
6206 " add-drive-ro-with-if filename iface\n"
6211 #: ../fish/guestfish-actions.pod:165
6213 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6214 "interface emulation to use at run time."
6218 #: ../fish/guestfish-actions.pod:175
6219 msgid "add-drive-with-if"
6223 #: ../fish/guestfish-actions.pod:177
6226 " add-drive-with-if filename iface\n"
6231 #: ../fish/guestfish-actions.pod:179
6233 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6234 "interface emulation to use at run time."
6238 #: ../fish/guestfish-actions.pod:189
6243 #: ../fish/guestfish-actions.pod:191
6246 " aug-clear augpath\n"
6251 #: ../fish/guestfish-actions.pod:193 ../src/guestfs-actions.pod:296
6253 "Set the value associated with C<path> to C<NULL>. This is the same as the "
6254 "L<augtool(1)> C<clear> command."
6258 #: ../fish/guestfish-actions.pod:196
6263 #: ../fish/guestfish-actions.pod:198
6271 #: ../fish/guestfish-actions.pod:200
6273 "Close the current Augeas handle and free up any resources used by it. After "
6274 "calling this, you have to call L</aug-init> again before you can use any "
6275 "other Augeas functions."
6279 #: ../fish/guestfish-actions.pod:205
6284 #: ../fish/guestfish-actions.pod:207
6287 " aug-defnode name expr val\n"
6292 #: ../fish/guestfish-actions.pod:209 ../src/guestfs-actions.pod:325
6294 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6298 #: ../fish/guestfish-actions.pod:212
6300 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6301 "calling L</aug-set> C<expr>, C<value>. C<name> will be the nodeset "
6302 "containing that single node."
6306 #: ../fish/guestfish-actions.pod:216 ../src/guestfs-actions.pod:332
6308 "On success this returns a pair containing the number of nodes in the "
6309 "nodeset, and a boolean flag if a node was created."
6313 #: ../fish/guestfish-actions.pod:220
6318 #: ../fish/guestfish-actions.pod:222
6321 " aug-defvar name expr\n"
6326 #: ../fish/guestfish-actions.pod:224 ../src/guestfs-actions.pod:349
6328 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6329 "C<expr>. If C<expr> is NULL, then C<name> is undefined."
6333 #: ../fish/guestfish-actions.pod:228 ../src/guestfs-actions.pod:353
6335 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6336 "evaluates to something which is not a nodeset."
6340 #: ../fish/guestfish-actions.pod:231
6345 #: ../fish/guestfish-actions.pod:233
6348 " aug-get augpath\n"
6353 #: ../fish/guestfish-actions.pod:235 ../src/guestfs-actions.pod:366
6355 "Look up the value associated with C<path>. If C<path> matches exactly one "
6356 "node, the C<value> is returned."
6360 #: ../fish/guestfish-actions.pod:238
6365 #: ../fish/guestfish-actions.pod:240
6368 " aug-init root flags\n"
6373 #: ../fish/guestfish-actions.pod:242 ../src/guestfs-actions.pod:381
6375 "Create a new Augeas handle for editing configuration files. If there was "
6376 "any previous Augeas handle associated with this guestfs session, then it is "
6381 #: ../fish/guestfish-actions.pod:246
6382 msgid "You must call this before using any other L</aug-*> commands."
6386 #: ../fish/guestfish-actions.pod:249 ../src/guestfs-actions.pod:388
6388 "C<root> is the filesystem root. C<root> must not be NULL, use C</> instead."
6392 #: ../fish/guestfish-actions.pod:252 ../src/guestfs-actions.pod:391
6394 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6395 "logical I<or> of the following integers:"
6399 #: ../fish/guestfish-actions.pod:258 ../src/guestfs-actions.pod:397
6400 msgid "C<AUG_SAVE_BACKUP> = 1"
6401 msgstr "C<AUG_SAVE_BACKUP> = 1"
6404 #: ../fish/guestfish-actions.pod:260 ../src/guestfs-actions.pod:399
6405 msgid "Keep the original file with a C<.augsave> extension."
6409 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:401
6410 msgid "C<AUG_SAVE_NEWFILE> = 2"
6411 msgstr "C<AUG_SAVE_NEWFILE> = 2"
6414 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:403
6416 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6417 "original. Overrides C<AUG_SAVE_BACKUP>."
6421 #: ../fish/guestfish-actions.pod:267 ../src/guestfs-actions.pod:406
6422 msgid "C<AUG_TYPE_CHECK> = 4"
6423 msgstr "C<AUG_TYPE_CHECK> = 4"
6426 #: ../fish/guestfish-actions.pod:269 ../src/guestfs-actions.pod:408
6427 msgid "Typecheck lenses."
6431 #: ../fish/guestfish-actions.pod:271
6433 "This option is only useful when debugging Augeas lenses. Use of this option "
6434 "may require additional memory for the libguestfs appliance. You may need to "
6435 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6439 #: ../fish/guestfish-actions.pod:276 ../src/guestfs-actions.pod:415
6440 msgid "C<AUG_NO_STDINC> = 8"
6441 msgstr "C<AUG_NO_STDINC> = 8"
6444 #: ../fish/guestfish-actions.pod:278 ../src/guestfs-actions.pod:417
6445 msgid "Do not use standard load path for modules."
6449 #: ../fish/guestfish-actions.pod:280 ../src/guestfs-actions.pod:419
6450 msgid "C<AUG_SAVE_NOOP> = 16"
6451 msgstr "C<AUG_SAVE_NOOP> = 16"
6454 #: ../fish/guestfish-actions.pod:282 ../src/guestfs-actions.pod:421
6455 msgid "Make save a no-op, just record what would have been changed."
6459 #: ../fish/guestfish-actions.pod:284 ../src/guestfs-actions.pod:423
6460 msgid "C<AUG_NO_LOAD> = 32"
6461 msgstr "C<AUG_NO_LOAD> = 32"
6464 #: ../fish/guestfish-actions.pod:286
6465 msgid "Do not load the tree in L</aug-init>."
6469 #: ../fish/guestfish-actions.pod:290
6470 msgid "To close the handle, you can call L</aug-close>."
6474 #: ../fish/guestfish-actions.pod:292 ../src/guestfs-actions.pod:431
6475 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6479 #: ../fish/guestfish-actions.pod:294
6484 #: ../fish/guestfish-actions.pod:296
6487 " aug-insert augpath label true|false\n"
6492 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:445
6494 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6495 "or after C<path> (depending on the boolean flag C<before>)."
6499 #: ../fish/guestfish-actions.pod:302 ../src/guestfs-actions.pod:449
6501 "C<path> must match exactly one existing node in the tree, and C<label> must "
6502 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6506 #: ../fish/guestfish-actions.pod:306
6511 #: ../fish/guestfish-actions.pod:308
6519 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:462
6520 msgid "Load files into the tree."
6521 msgstr "Завантажити файли до ієрархії."
6524 #: ../fish/guestfish-actions.pod:312 ../src/guestfs-actions.pod:464
6525 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6529 #: ../fish/guestfish-actions.pod:315
6534 #: ../fish/guestfish-actions.pod:317
6542 #: ../fish/guestfish-actions.pod:319
6544 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6545 "resulting nodes into alphabetical order."
6549 #: ../fish/guestfish-actions.pod:322
6554 #: ../fish/guestfish-actions.pod:324
6557 " aug-match augpath\n"
6562 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:492
6564 "Returns a list of paths which match the path expression C<path>. The "
6565 "returned paths are sufficiently qualified so that they match exactly one "
6566 "node in the current tree."
6570 #: ../fish/guestfish-actions.pod:330
6575 #: ../fish/guestfish-actions.pod:332
6578 " aug-mv src dest\n"
6583 #: ../fish/guestfish-actions.pod:334 ../src/guestfs-actions.pod:509
6585 "Move the node C<src> to C<dest>. C<src> must match exactly one node. "
6586 "C<dest> is overwritten if it exists."
6590 #: ../fish/guestfish-actions.pod:337
6595 #: ../fish/guestfish-actions.pod:339
6603 #: ../fish/guestfish-actions.pod:341 ../src/guestfs-actions.pod:522
6604 msgid "Remove C<path> and all of its children."
6608 #: ../fish/guestfish-actions.pod:343 ../src/guestfs-actions.pod:524
6609 msgid "On success this returns the number of entries which were removed."
6613 #: ../fish/guestfish-actions.pod:345
6618 #: ../fish/guestfish-actions.pod:347
6626 #: ../fish/guestfish-actions.pod:349 ../src/guestfs-actions.pod:535
6627 msgid "This writes all pending changes to disk."
6631 #: ../fish/guestfish-actions.pod:351
6633 "The flags which were passed to L</aug-init> affect exactly how files are "
6638 #: ../fish/guestfish-actions.pod:354
6643 #: ../fish/guestfish-actions.pod:356
6646 " aug-set augpath val\n"
6651 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:551
6652 msgid "Set the value associated with C<path> to C<val>."
6656 #: ../fish/guestfish-actions.pod:360
6658 "In the Augeas API, it is possible to clear a node by setting the value to "
6659 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
6660 "this call. Instead you must use the L</aug-clear> call."
6664 #: ../fish/guestfish-actions.pod:365
6669 #: ../fish/guestfish-actions.pod:367
6672 " available 'groups ...'\n"
6677 #: ../fish/guestfish-actions.pod:369 ../src/guestfs-actions.pod:568
6679 "This command is used to check the availability of some groups of "
6680 "functionality in the appliance, which not all builds of the libguestfs "
6681 "appliance will be able to provide."
6685 #: ../fish/guestfish-actions.pod:373
6687 "The libguestfs groups, and the functions that those groups correspond to, "
6688 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
6689 "runtime by calling L</available-all-groups>."
6693 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:577
6695 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6696 "\"]> would check for the availability of the Linux inotify functions and "
6697 "Augeas (configuration file editing) functions."
6701 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:582
6702 msgid "The command returns no error if I<all> requested groups are available."
6706 #: ../fish/guestfish-actions.pod:385 ../src/guestfs-actions.pod:584
6708 "It fails with an error if one or more of the requested groups is unavailable "
6713 #: ../fish/guestfish-actions.pod:388 ../src/guestfs-actions.pod:587
6715 "If an unknown group name is included in the list of groups then an error is "
6720 #: ../fish/guestfish-actions.pod:391 ../src/guestfs-actions.pod:590
6722 msgstr "I<Нотатки:>"
6725 #: ../fish/guestfish-actions.pod:397
6726 msgid "You must call L</launch> before calling this function."
6730 #: ../fish/guestfish-actions.pod:399 ../src/guestfs-actions.pod:598
6732 "The reason is because we don't know what groups are supported by the "
6733 "appliance/daemon until it is running and can be queried."
6737 #: ../fish/guestfish-actions.pod:405 ../src/guestfs-actions.pod:604
6739 "If a group of functions is available, this does not necessarily mean that "
6740 "they will work. You still have to check for errors when calling individual "
6741 "API functions even if they are available."
6745 #: ../fish/guestfish-actions.pod:412 ../src/guestfs-actions.pod:611
6747 "It is usually the job of distro packagers to build complete functionality "
6748 "into the libguestfs appliance. Upstream libguestfs, if built from source "
6749 "with all requirements satisfied, will support everything."
6753 #: ../fish/guestfish-actions.pod:419
6755 "This call was added in version C<1.0.80>. In previous versions of "
6756 "libguestfs all you could do would be to speculatively execute a command to "
6757 "find out if the daemon implemented it. See also L</version>."
6761 #: ../fish/guestfish-actions.pod:426
6762 msgid "available-all-groups"
6766 #: ../fish/guestfish-actions.pod:428
6769 " available-all-groups\n"
6774 #: ../fish/guestfish-actions.pod:430
6776 "This command returns a list of all optional groups that this daemon knows "
6777 "about. Note this returns both supported and unsupported groups. To find "
6778 "out which ones the daemon can actually support you have to call L</"
6779 "available> on each member of the returned list."
6783 #: ../fish/guestfish-actions.pod:436
6784 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6788 #: ../fish/guestfish-actions.pod:438
6793 #: ../fish/guestfish-actions.pod:440
6796 " base64-in (base64file|-) filename\n"
6801 #: ../fish/guestfish-actions.pod:442 ../src/guestfs-actions.pod:655
6803 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6807 #: ../fish/guestfish-actions.pod:445 ../fish/guestfish-actions.pod:454
6808 #: ../fish/guestfish-actions.pod:703 ../fish/guestfish-actions.pod:787
6809 #: ../fish/guestfish-actions.pod:808 ../fish/guestfish-actions.pod:979
6810 #: ../fish/guestfish-actions.pod:998 ../fish/guestfish-actions.pod:1372
6811 #: ../fish/guestfish-actions.pod:4836 ../fish/guestfish-actions.pod:4848
6812 #: ../fish/guestfish-actions.pod:4859 ../fish/guestfish-actions.pod:4870
6813 #: ../fish/guestfish-actions.pod:4922 ../fish/guestfish-actions.pod:4931
6814 #: ../fish/guestfish-actions.pod:4985 ../fish/guestfish-actions.pod:5008
6815 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6819 #: ../fish/guestfish-actions.pod:447
6824 #: ../fish/guestfish-actions.pod:449
6827 " base64-out filename (base64file|-)\n"
6832 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:669
6834 "This command downloads the contents of C<filename>, writing it out to local "
6835 "file C<base64file> encoded as base64."
6839 #: ../fish/guestfish-actions.pod:456
6840 msgid "blockdev-flushbufs"
6844 #: ../fish/guestfish-actions.pod:458
6847 " blockdev-flushbufs device\n"
6852 #: ../fish/guestfish-actions.pod:460 ../src/guestfs-actions.pod:682
6854 "This tells the kernel to flush internal buffers associated with C<device>."
6858 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:474
6859 #: ../fish/guestfish-actions.pod:483 ../fish/guestfish-actions.pod:493
6860 #: ../fish/guestfish-actions.pod:505 ../fish/guestfish-actions.pod:518
6861 #: ../fish/guestfish-actions.pod:526 ../fish/guestfish-actions.pod:537
6862 #: ../fish/guestfish-actions.pod:545 ../fish/guestfish-actions.pod:553
6863 #: ../src/guestfs-actions.pod:685 ../src/guestfs-actions.pod:702
6864 #: ../src/guestfs-actions.pod:717 ../src/guestfs-actions.pod:733
6865 #: ../src/guestfs-actions.pod:751 ../src/guestfs-actions.pod:770
6866 #: ../src/guestfs-actions.pod:784 ../src/guestfs-actions.pod:802
6867 #: ../src/guestfs-actions.pod:816 ../src/guestfs-actions.pod:830
6868 msgid "This uses the L<blockdev(8)> command."
6872 #: ../fish/guestfish-actions.pod:465
6873 msgid "blockdev-getbsz"
6877 #: ../fish/guestfish-actions.pod:467
6880 " blockdev-getbsz device\n"
6885 #: ../fish/guestfish-actions.pod:469 ../src/guestfs-actions.pod:697
6886 msgid "This returns the block size of a device."
6890 #: ../fish/guestfish-actions.pod:471 ../fish/guestfish-actions.pod:534
6891 #: ../src/guestfs-actions.pod:699 ../src/guestfs-actions.pod:799
6893 "(Note this is different from both I<size in blocks> and I<filesystem block "
6898 #: ../fish/guestfish-actions.pod:476
6899 msgid "blockdev-getro"
6903 #: ../fish/guestfish-actions.pod:478
6906 " blockdev-getro device\n"
6911 #: ../fish/guestfish-actions.pod:480 ../src/guestfs-actions.pod:714
6913 "Returns a boolean indicating if the block device is read-only (true if read-"
6914 "only, false if not)."
6918 #: ../fish/guestfish-actions.pod:485
6919 msgid "blockdev-getsize64"
6923 #: ../fish/guestfish-actions.pod:487
6926 " blockdev-getsize64 device\n"
6931 #: ../fish/guestfish-actions.pod:489 ../src/guestfs-actions.pod:729
6932 msgid "This returns the size of the device in bytes."
6936 #: ../fish/guestfish-actions.pod:491
6937 msgid "See also L</blockdev-getsz>."
6938 msgstr "Див. також L</blockdev-getsz>."
6941 #: ../fish/guestfish-actions.pod:495
6942 msgid "blockdev-getss"
6946 #: ../fish/guestfish-actions.pod:497
6949 " blockdev-getss device\n"
6954 #: ../fish/guestfish-actions.pod:499 ../src/guestfs-actions.pod:745
6956 "This returns the size of sectors on a block device. Usually 512, but can be "
6957 "larger for modern devices."
6961 #: ../fish/guestfish-actions.pod:502
6963 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
6967 #: ../fish/guestfish-actions.pod:507
6968 msgid "blockdev-getsz"
6972 #: ../fish/guestfish-actions.pod:509
6975 " blockdev-getsz device\n"
6980 #: ../fish/guestfish-actions.pod:511 ../src/guestfs-actions.pod:763
6982 "This returns the size of the device in units of 512-byte sectors (even if "
6983 "the sectorsize isn't 512 bytes ... weird)."
6987 #: ../fish/guestfish-actions.pod:514
6989 "See also L</blockdev-getss> for the real sector size of the device, and L</"
6990 "blockdev-getsize64> for the more useful I<size in bytes>."
6994 #: ../fish/guestfish-actions.pod:520
6995 msgid "blockdev-rereadpt"
6999 #: ../fish/guestfish-actions.pod:522
7002 " blockdev-rereadpt device\n"
7007 #: ../fish/guestfish-actions.pod:524 ../src/guestfs-actions.pod:782
7008 msgid "Reread the partition table on C<device>."
7012 #: ../fish/guestfish-actions.pod:528
7013 msgid "blockdev-setbsz"
7017 #: ../fish/guestfish-actions.pod:530
7020 " blockdev-setbsz device blocksize\n"
7025 #: ../fish/guestfish-actions.pod:532 ../src/guestfs-actions.pod:797
7026 msgid "This sets the block size of a device."
7030 #: ../fish/guestfish-actions.pod:539
7031 msgid "blockdev-setro"
7035 #: ../fish/guestfish-actions.pod:541
7038 " blockdev-setro device\n"
7043 #: ../fish/guestfish-actions.pod:543 ../src/guestfs-actions.pod:814
7044 msgid "Sets the block device named C<device> to read-only."
7048 #: ../fish/guestfish-actions.pod:547
7049 msgid "blockdev-setrw"
7053 #: ../fish/guestfish-actions.pod:549
7056 " blockdev-setrw device\n"
7061 #: ../fish/guestfish-actions.pod:551 ../src/guestfs-actions.pod:828
7062 msgid "Sets the block device named C<device> to read-write."
7066 #: ../fish/guestfish-actions.pod:555
7067 msgid "btrfs-filesystem-resize"
7071 #: ../fish/guestfish-actions.pod:557
7074 " btrfs-filesystem-resize mountpoint [size:..]\n"
7079 #: ../fish/guestfish-actions.pod:559 ../src/guestfs-actions.pod:850
7080 msgid "This command resizes a btrfs filesystem."
7084 #: ../fish/guestfish-actions.pod:561 ../src/guestfs-actions.pod:852
7086 "Note that unlike other resize calls, the filesystem has to be mounted and "
7087 "the parameter is the mountpoint not the device (this is a requirement of "
7092 #: ../fish/guestfish-actions.pod:565 ../fish/guestfish-actions.pod:3569
7093 #: ../src/guestfs-actions.pod:856 ../src/guestfs-actions.pod:5591
7094 msgid "The optional parameters are:"
7098 #: ../fish/guestfish-actions.pod:569 ../fish/guestfish-actions.pod:3573
7099 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5595
7104 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:862
7106 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
7107 "resized to the maximum size."
7111 #: ../fish/guestfish-actions.pod:576 ../src/guestfs-actions.pod:867
7112 msgid "See also L<btrfs(8)>."
7113 msgstr "Див. також L<btrfs(8)>."
7116 #: ../fish/guestfish-actions.pod:580
7117 msgid "case-sensitive-path"
7121 #: ../fish/guestfish-actions.pod:582
7124 " case-sensitive-path path\n"
7129 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:901
7131 "This can be used to resolve case insensitive paths on a filesystem which is "
7132 "case sensitive. The use case is to resolve paths which you have read from "
7133 "Windows configuration files or the Windows Registry, to the true path."
7137 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:906
7139 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7140 "(and probably others), which is that although the underlying filesystem is "
7141 "case-insensitive, the driver exports the filesystem to Linux as case-"
7146 #: ../fish/guestfish-actions.pod:594 ../src/guestfs-actions.pod:911
7148 "One consequence of this is that special directories such as C<c:\\windows> "
7149 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7150 "precise details of how they were created. In Windows itself this would not "
7155 #: ../fish/guestfish-actions.pod:600 ../src/guestfs-actions.pod:917
7157 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7162 #: ../fish/guestfish-actions.pod:603 ../src/guestfs-actions.pod:920
7164 "This function resolves the true case of each element in the path and returns "
7165 "the case-sensitive path."
7169 #: ../fish/guestfish-actions.pod:606
7171 "Thus L</case-sensitive-path> (\"/Windows/System32\") might return C<\"/"
7172 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7173 "the directories were originally created under Windows)."
7177 #: ../fish/guestfish-actions.pod:611 ../src/guestfs-actions.pod:928
7178 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7182 #: ../fish/guestfish-actions.pod:614
7183 msgid "See also L</realpath>."
7184 msgstr "Див. також L</realpath>."
7187 #: ../fish/guestfish-actions.pod:616
7192 #: ../fish/guestfish-actions.pod:618
7202 #: ../fish/guestfish-actions.pod:620 ../fish/guestfish-actions.pod:4003
7203 #: ../src/guestfs-actions.pod:944 ../src/guestfs-actions.pod:6252
7204 msgid "Return the contents of the file named C<path>."
7208 #: ../fish/guestfish-actions.pod:622
7210 "Note that this function cannot correctly handle binary files (specifically, "
7211 "files containing C<\\0> character which is treated as end of string). For "
7212 "those you need to use the L</read-file> or L</download> functions which have "
7213 "a more complex interface."
7217 #: ../fish/guestfish-actions.pod:627 ../fish/guestfish-actions.pod:762
7218 #: ../fish/guestfish-actions.pod:774 ../fish/guestfish-actions.pod:1057
7219 #: ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1134
7220 #: ../fish/guestfish-actions.pod:1144 ../fish/guestfish-actions.pod:1336
7221 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:1659
7222 #: ../fish/guestfish-actions.pod:1709 ../fish/guestfish-actions.pod:1724
7223 #: ../fish/guestfish-actions.pod:1734 ../fish/guestfish-actions.pod:1753
7224 #: ../fish/guestfish-actions.pod:3873 ../fish/guestfish-actions.pod:3888
7225 #: ../fish/guestfish-actions.pod:3964 ../fish/guestfish-actions.pod:3981
7226 #: ../fish/guestfish-actions.pod:3996 ../fish/guestfish-actions.pod:4677
7227 #: ../fish/guestfish-actions.pod:4723 ../fish/guestfish-actions.pod:4808
7228 #: ../fish/guestfish-actions.pod:4823 ../fish/guestfish-actions.pod:5229
7229 #: ../fish/guestfish-actions.pod:5241 ../fish/guestfish-actions.pod:5259
7230 #: ../fish/guestfish-actions.pod:5276 ../fish/guestfish-actions.pod:5286
7231 #: ../fish/guestfish-actions.pod:5343 ../fish/guestfish-actions.pod:5353
7232 #: ../fish/guestfish-actions.pod:5382 ../fish/guestfish-actions.pod:5392
7233 #: ../src/guestfs-actions.pod:954 ../src/guestfs-actions.pod:1133
7234 #: ../src/guestfs-actions.pod:1153 ../src/guestfs-actions.pod:1800
7235 #: ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1922
7236 #: ../src/guestfs-actions.pod:1941 ../src/guestfs-actions.pod:2187
7237 #: ../src/guestfs-actions.pod:2669 ../src/guestfs-actions.pod:2688
7238 #: ../src/guestfs-actions.pod:2753 ../src/guestfs-actions.pod:2777
7239 #: ../src/guestfs-actions.pod:2794 ../src/guestfs-actions.pod:2823
7240 #: ../src/guestfs-actions.pod:6034 ../src/guestfs-actions.pod:6060
7241 #: ../src/guestfs-actions.pod:6191 ../src/guestfs-actions.pod:6217
7242 #: ../src/guestfs-actions.pod:6241 ../src/guestfs-actions.pod:7208
7243 #: ../src/guestfs-actions.pod:7263 ../src/guestfs-actions.pod:7409
7244 #: ../src/guestfs-actions.pod:7433 ../src/guestfs-actions.pod:8098
7245 #: ../src/guestfs-actions.pod:8118 ../src/guestfs-actions.pod:8151
7246 #: ../src/guestfs-actions.pod:8170 ../src/guestfs-actions.pod:8189
7247 #: ../src/guestfs-actions.pod:8283 ../src/guestfs-actions.pod:8302
7248 #: ../src/guestfs-actions.pod:8348 ../src/guestfs-actions.pod:8367
7250 "Because of the message protocol, there is a transfer limit of somewhere "
7251 "between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>."
7255 #: ../fish/guestfish-actions.pod:630
7260 #: ../fish/guestfish-actions.pod:632
7263 " checksum csumtype path\n"
7268 #: ../fish/guestfish-actions.pod:634 ../src/guestfs-actions.pod:966
7270 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7274 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:969
7276 "The type of checksum to compute is given by the C<csumtype> parameter which "
7277 "must have one of the following values:"
7281 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:974
7286 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:976
7288 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7293 #: ../fish/guestfish-actions.pod:647 ../src/guestfs-actions.pod:979
7298 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:981
7299 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7303 #: ../fish/guestfish-actions.pod:651 ../src/guestfs-actions.pod:983
7308 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:985
7309 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7313 #: ../fish/guestfish-actions.pod:655 ../src/guestfs-actions.pod:987
7318 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:989
7319 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7323 #: ../fish/guestfish-actions.pod:659 ../src/guestfs-actions.pod:991
7328 #: ../fish/guestfish-actions.pod:661 ../src/guestfs-actions.pod:993
7329 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7333 #: ../fish/guestfish-actions.pod:663 ../src/guestfs-actions.pod:995
7338 #: ../fish/guestfish-actions.pod:665 ../src/guestfs-actions.pod:997
7339 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7343 #: ../fish/guestfish-actions.pod:667 ../src/guestfs-actions.pod:999
7348 #: ../fish/guestfish-actions.pod:669 ../src/guestfs-actions.pod:1001
7349 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7353 #: ../fish/guestfish-actions.pod:673 ../src/guestfs-actions.pod:1005
7354 msgid "The checksum is returned as a printable string."
7358 #: ../fish/guestfish-actions.pod:675
7359 msgid "To get the checksum for a device, use L</checksum-device>."
7363 #: ../fish/guestfish-actions.pod:677
7364 msgid "To get the checksums for many files, use L</checksums-out>."
7368 #: ../fish/guestfish-actions.pod:679
7369 msgid "checksum-device"
7370 msgstr "checksum-device"
7373 #: ../fish/guestfish-actions.pod:681
7376 " checksum-device csumtype device\n"
7381 #: ../fish/guestfish-actions.pod:683
7383 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7384 "device named C<device>. For the types of checksums supported see the L</"
7385 "checksum> command."
7389 #: ../fish/guestfish-actions.pod:687
7390 msgid "checksums-out"
7394 #: ../fish/guestfish-actions.pod:689
7397 " checksums-out csumtype directory (sumsfile|-)\n"
7402 #: ../fish/guestfish-actions.pod:691 ../src/guestfs-actions.pod:1040
7404 "This command computes the checksums of all regular files in C<directory> and "
7405 "then emits a list of those checksums to the local output file C<sumsfile>."
7409 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1044
7411 "This can be used for verifying the integrity of a virtual machine. However "
7412 "to be properly secure you should pay attention to the output of the checksum "
7413 "command (it uses the ones from GNU coreutils). In particular when the "
7414 "filename is not printable, coreutils uses a special backslash syntax. For "
7415 "more information, see the GNU coreutils info file."
7419 #: ../fish/guestfish-actions.pod:705
7424 #: ../fish/guestfish-actions.pod:707
7427 " chmod mode path\n"
7432 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1063
7434 "Change the mode (permissions) of C<path> to C<mode>. Only numeric modes are "
7439 #: ../fish/guestfish-actions.pod:712 ../src/guestfs-actions.pod:1066
7441 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7442 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7447 #: ../fish/guestfish-actions.pod:716 ../fish/guestfish-actions.pod:3222
7448 #: ../fish/guestfish-actions.pod:3361 ../fish/guestfish-actions.pod:3371
7449 #: ../fish/guestfish-actions.pod:3381 ../src/guestfs-actions.pod:1070
7450 #: ../src/guestfs-actions.pod:4998 ../src/guestfs-actions.pod:5207
7451 #: ../src/guestfs-actions.pod:5226 ../src/guestfs-actions.pod:5245
7452 msgid "The mode actually set is affected by the umask."
7456 #: ../fish/guestfish-actions.pod:718
7461 #: ../fish/guestfish-actions.pod:720
7464 " chown owner group path\n"
7469 #: ../fish/guestfish-actions.pod:722 ../src/guestfs-actions.pod:1084
7470 msgid "Change the file owner to C<owner> and group to C<group>."
7474 #: ../fish/guestfish-actions.pod:724 ../fish/guestfish-actions.pod:2657
7475 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:4069
7477 "Only numeric uid and gid are supported. If you want to use names, you will "
7478 "need to locate and parse the password file yourself (Augeas support makes "
7479 "this relatively easy)."
7483 #: ../fish/guestfish-actions.pod:728
7488 #: ../fish/guestfish-actions.pod:730
7491 " command 'arguments ...'\n"
7494 " command 'параметри...'\n"
7498 #: ../fish/guestfish-actions.pod:732 ../src/guestfs-actions.pod:1100
7500 "This call runs a command from the guest filesystem. The filesystem must be "
7501 "mounted, and must contain a compatible operating system (ie. something "
7502 "Linux, with the same or compatible processor architecture)."
7506 #: ../fish/guestfish-actions.pod:737
7508 "The single parameter is an argv-style list of arguments. The first element "
7509 "is the name of the program to run. Subsequent elements are parameters. The "
7510 "list must be non-empty (ie. must contain a program name). Note that the "
7511 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7515 #: ../fish/guestfish-actions.pod:744 ../src/guestfs-actions.pod:1112
7516 msgid "The return value is anything printed to I<stdout> by the command."
7520 #: ../fish/guestfish-actions.pod:747 ../src/guestfs-actions.pod:1115
7522 "If the command returns a non-zero exit status, then this function returns an "
7523 "error message. The error message string is the content of I<stderr> from "
7528 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1119
7530 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7531 "bin>. If you require a program from another location, you should provide "
7532 "the full path in the first parameter."
7536 #: ../fish/guestfish-actions.pod:756 ../src/guestfs-actions.pod:1124
7538 "Shared libraries and data files required by the program must be available on "
7539 "filesystems which are mounted in the correct places. It is the caller's "
7540 "responsibility to ensure all filesystems that are needed are mounted at the "
7545 #: ../fish/guestfish-actions.pod:765
7546 msgid "command-lines"
7550 #: ../fish/guestfish-actions.pod:767
7553 " command-lines 'arguments ...'\n"
7558 #: ../fish/guestfish-actions.pod:769
7560 "This is the same as L</command>, but splits the result into a list of lines."
7564 #: ../fish/guestfish-actions.pod:772
7565 msgid "See also: L</sh-lines>"
7566 msgstr "Див. також L</sh-lines>"
7569 #: ../fish/guestfish-actions.pod:777
7570 msgid "compress-device-out"
7574 #: ../fish/guestfish-actions.pod:779
7577 " compress-device-out ctype device (zdevice|-) [level:..]\n"
7582 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1174
7584 "This command compresses C<device> and writes it out to the local file "
7589 #: ../fish/guestfish-actions.pod:784
7591 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
7596 #: ../fish/guestfish-actions.pod:791
7597 msgid "compress-out"
7601 #: ../fish/guestfish-actions.pod:793
7604 " compress-out ctype file (zfile|-) [level:..]\n"
7609 #: ../fish/guestfish-actions.pod:795 ../src/guestfs-actions.pod:1226
7611 "This command compresses C<file> and writes it out to the local file C<zfile>."
7615 #: ../fish/guestfish-actions.pod:798 ../src/guestfs-actions.pod:1229
7617 "The compression program used is controlled by the C<ctype> parameter. "
7618 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>. "
7619 "Some compression types may not be supported by particular builds of "
7620 "libguestfs, in which case you will get an error containing the substring "
7621 "\"not supported\"."
7625 #: ../fish/guestfish-actions.pod:804 ../src/guestfs-actions.pod:1235
7627 "The optional C<level> parameter controls compression level. The meaning and "
7628 "default for this parameter depends on the compression program being used."
7632 #: ../fish/guestfish-actions.pod:812
7637 #: ../fish/guestfish-actions.pod:814
7640 " config qemuparam qemuvalue\n"
7645 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1276
7647 "This can be used to add arbitrary qemu command line parameters of the form "
7648 "I<-param value>. Actually it's not quite arbitrary - we prevent you from "
7649 "setting some parameters which would interfere with parameters that we use."
7653 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1281
7654 msgid "The first character of C<param> string must be a C<-> (dash)."
7658 #: ../fish/guestfish-actions.pod:823 ../src/guestfs-actions.pod:1283
7659 msgid "C<value> can be NULL."
7663 #: ../fish/guestfish-actions.pod:825
7666 #| " zero-device device\n"
7668 msgid "copy-device-to-device"
7670 " zero-device пристрій\n"
7674 #: ../fish/guestfish-actions.pod:827
7677 " copy-device-to-device src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7682 #: ../fish/guestfish-actions.pod:829
7684 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
7685 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
7686 "(device|file) to a destination (device|file)."
7690 #: ../fish/guestfish-actions.pod:836 ../src/guestfs-actions.pod:1313
7692 "Partial copies can be made since you can specify optionally the source "
7693 "offset, destination offset and size to copy. These values are all specified "
7694 "in bytes. If not given, the offsets both default to zero, and the size "
7695 "defaults to copying as much as possible until we hit the end of the source."
7699 #: ../fish/guestfish-actions.pod:842 ../src/guestfs-actions.pod:1319
7701 "The source and destination may be the same object. However overlapping "
7702 "regions may not be copied correctly."
7706 #: ../fish/guestfish-actions.pod:845 ../src/guestfs-actions.pod:1322
7708 "If the destination is a file, it is created if required. If the destination "
7709 "file is not large enough, it is extended."
7713 #: ../fish/guestfish-actions.pod:850
7714 msgid "copy-device-to-file"
7718 #: ../fish/guestfish-actions.pod:852
7721 " copy-device-to-file src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7726 #: ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:863
7727 #: ../fish/guestfish-actions.pod:872
7728 msgid "See L</copy-device-to-device> for a general overview of this call."
7732 #: ../fish/guestfish-actions.pod:859
7734 #| msgid "pwrite-device"
7735 msgid "copy-file-to-device"
7736 msgstr "pwrite-device"
7739 #: ../fish/guestfish-actions.pod:861
7742 " copy-file-to-device src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7747 #: ../fish/guestfish-actions.pod:868
7748 msgid "copy-file-to-file"
7752 #: ../fish/guestfish-actions.pod:870
7755 " copy-file-to-file src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7760 #: ../fish/guestfish-actions.pod:875
7762 "This is B<not> the function you want for copying files. This is for copying "
7763 "blocks within existing files. See L</cp>, L</cp-a> and L</mv> for general "
7764 "file copying and moving functions."
7768 #: ../fish/guestfish-actions.pod:882
7773 #: ../fish/guestfish-actions.pod:884
7776 " copy-size src dest size\n"
7781 #: ../fish/guestfish-actions.pod:886 ../src/guestfs-actions.pod:1529
7783 "This command copies exactly C<size> bytes from one source device or file "
7784 "C<src> to another destination device or file C<dest>."
7788 #: ../fish/guestfish-actions.pod:889 ../src/guestfs-actions.pod:1532
7790 "Note this will fail if the source is too short or if the destination is not "
7795 #: ../fish/guestfish-actions.pod:892 ../fish/guestfish-actions.pod:927
7797 "I<This function is deprecated.> In new code, use the L</"
7798 "copy_device_to_device> call instead."
7802 #: ../fish/guestfish-actions.pod:899
7807 #: ../fish/guestfish-actions.pod:901
7815 #: ../fish/guestfish-actions.pod:903 ../src/guestfs-actions.pod:1551
7817 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7818 "destination filename or destination directory."
7822 #: ../fish/guestfish-actions.pod:906
7827 #: ../fish/guestfish-actions.pod:908
7835 #: ../fish/guestfish-actions.pod:910 ../src/guestfs-actions.pod:1565
7837 "This copies a file or directory from C<src> to C<dest> recursively using the "
7842 #: ../fish/guestfish-actions.pod:913
7847 #: ../fish/guestfish-actions.pod:915
7855 #: ../fish/guestfish-actions.pod:917 ../src/guestfs-actions.pod:1586
7857 "This command copies from one source device or file C<src> to another "
7858 "destination device or file C<dest>. Normally you would use this to copy to "
7859 "or from a device or partition, for example to duplicate a filesystem."
7863 #: ../fish/guestfish-actions.pod:922
7865 "If the destination is a device, it must be as large or larger than the "
7866 "source file or device, otherwise the copy will fail. This command cannot do "
7867 "partial copies (see L</copy-device-to-device>)."
7871 #: ../fish/guestfish-actions.pod:934
7876 #: ../fish/guestfish-actions.pod:936
7886 #: ../fish/guestfish-actions.pod:938 ../src/guestfs-actions.pod:1605
7887 msgid "This command runs the C<df> command to report disk space used."
7891 #: ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:951
7893 "This command is mostly useful for interactive sessions. It is I<not> "
7894 "intended that you try to parse the output string. Use L</statvfs> from "
7899 #: ../fish/guestfish-actions.pod:944
7904 #: ../fish/guestfish-actions.pod:946
7914 #: ../fish/guestfish-actions.pod:948 ../src/guestfs-actions.pod:1621
7916 "This command runs the C<df -h> command to report disk space used in human-"
7921 #: ../fish/guestfish-actions.pod:955
7926 #: ../fish/guestfish-actions.pod:957
7936 #: ../fish/guestfish-actions.pod:959 ../src/guestfs-actions.pod:1638
7938 "This returns the kernel messages (C<dmesg> output) from the guest kernel. "
7939 "This is sometimes useful for extended debugging of problems."
7943 #: ../fish/guestfish-actions.pod:963
7945 "Another way to get the same information is to enable verbose messages with "
7946 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7947 "before running the program."
7951 #: ../fish/guestfish-actions.pod:968
7956 #: ../fish/guestfish-actions.pod:970
7959 " download remotefilename (filename|-)\n"
7964 #: ../fish/guestfish-actions.pod:972 ../fish/guestfish-actions.pod:985
7965 #: ../src/guestfs-actions.pod:1659 ../src/guestfs-actions.pod:1684
7967 "Download file C<remotefilename> and save it as C<filename> on the local "
7972 #: ../fish/guestfish-actions.pod:975 ../fish/guestfish-actions.pod:4981
7973 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:7668
7974 msgid "C<filename> can also be a named pipe."
7978 #: ../fish/guestfish-actions.pod:977
7979 msgid "See also L</upload>, L</cat>."
7983 #: ../fish/guestfish-actions.pod:981
7984 msgid "download-offset"
7985 msgstr "download-offset"
7988 #: ../fish/guestfish-actions.pod:983
7991 " download-offset remotefilename (filename|-) offset size\n"
7996 #: ../fish/guestfish-actions.pod:988 ../src/guestfs-actions.pod:1687
7998 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7999 "region must be within the file or device)."
8003 #: ../fish/guestfish-actions.pod:991
8005 "Note that there is no limit on the amount of data that can be downloaded "
8006 "with this call, unlike with L</pread>, and this call always reads the full "
8007 "amount unless an error occurs."
8011 #: ../fish/guestfish-actions.pod:996
8012 msgid "See also L</download>, L</pread>."
8016 #: ../fish/guestfish-actions.pod:1000
8021 #: ../fish/guestfish-actions.pod:1002
8024 " drop-caches whattodrop\n"
8029 #: ../fish/guestfish-actions.pod:1004 ../src/guestfs-actions.pod:1712
8031 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8032 "inode caches. The parameter C<whattodrop> tells the kernel what precisely "
8033 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8037 #: ../fish/guestfish-actions.pod:1009 ../src/guestfs-actions.pod:1717
8038 msgid "Setting C<whattodrop> to 3 should drop everything."
8042 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1719
8044 "This automatically calls L<sync(2)> before the operation, so that the "
8045 "maximum guest memory is freed."
8049 #: ../fish/guestfish-actions.pod:1014
8054 #: ../fish/guestfish-actions.pod:1016
8064 #: ../fish/guestfish-actions.pod:1018 ../src/guestfs-actions.pod:1732
8066 "This command runs the C<du -s> command to estimate file space usage for "
8071 #: ../fish/guestfish-actions.pod:1021 ../src/guestfs-actions.pod:1735
8073 "C<path> can be a file or a directory. If C<path> is a directory then the "
8074 "estimate includes the contents of the directory and all subdirectories "
8079 #: ../fish/guestfish-actions.pod:1025 ../src/guestfs-actions.pod:1739
8081 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8085 #: ../fish/guestfish-actions.pod:1028
8090 #: ../fish/guestfish-actions.pod:1030
8093 " e2fsck-f device\n"
8098 #: ../fish/guestfish-actions.pod:1032 ../src/guestfs-actions.pod:1757
8100 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8101 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8106 #: ../fish/guestfish-actions.pod:1036
8108 "This command is only needed because of L</resize2fs> (q.v.). Normally you "
8109 "should use L</fsck>."
8113 #: ../fish/guestfish-actions.pod:1039
8118 #: ../fish/guestfish-actions.pod:1041
8121 " echo-daemon 'words ...'\n"
8126 #: ../fish/guestfish-actions.pod:1043 ../src/guestfs-actions.pod:1774
8128 "This command concatenates the list of C<words> passed with single spaces "
8129 "between them and returns the resulting string."
8133 #: ../fish/guestfish-actions.pod:1046 ../src/guestfs-actions.pod:1777
8134 msgid "You can use this command to test the connection through to the daemon."
8138 #: ../fish/guestfish-actions.pod:1048
8139 msgid "See also L</ping-daemon>."
8140 msgstr "Див. також L</ping-daemon>."
8143 #: ../fish/guestfish-actions.pod:1050
8148 #: ../fish/guestfish-actions.pod:1052
8151 " egrep regex path\n"
8156 #: ../fish/guestfish-actions.pod:1054 ../src/guestfs-actions.pod:1793
8158 "This calls the external C<egrep> program and returns the matching lines."
8162 #: ../fish/guestfish-actions.pod:1060
8167 #: ../fish/guestfish-actions.pod:1062
8170 " egrepi regex path\n"
8175 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1812
8177 "This calls the external C<egrep -i> program and returns the matching lines."
8181 #: ../fish/guestfish-actions.pod:1070
8186 #: ../fish/guestfish-actions.pod:1072
8189 " equal file1 file2\n"
8192 " equal файл1 файл2\n"
8196 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1831
8198 "This compares the two files C<file1> and C<file2> and returns true if their "
8199 "content is exactly equal, or false otherwise."
8203 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1834
8204 msgid "The external L<cmp(1)> program is used for the comparison."
8208 #: ../fish/guestfish-actions.pod:1079
8213 #: ../fish/guestfish-actions.pod:1081
8223 #: ../fish/guestfish-actions.pod:1083 ../src/guestfs-actions.pod:1846
8225 "This returns C<true> if and only if there is a file, directory (or anything) "
8226 "with the given C<path> name."
8230 #: ../fish/guestfish-actions.pod:1086
8231 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8232 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
8235 #: ../fish/guestfish-actions.pod:1088
8240 #: ../fish/guestfish-actions.pod:1090
8243 " fallocate path len\n"
8246 " fallocate шлях довжина\n"
8250 #: ../fish/guestfish-actions.pod:1092 ../fish/guestfish-actions.pod:1111
8251 #: ../src/guestfs-actions.pod:1869 ../src/guestfs-actions.pod:1888
8253 "This command preallocates a file (containing zero bytes) named C<path> of "
8254 "size C<len> bytes. If the file exists already, it is overwritten."
8258 #: ../fish/guestfish-actions.pod:1096 ../src/guestfs-actions.pod:1873
8260 "Do not confuse this with the guestfish-specific C<alloc> command which "
8261 "allocates a file in the host and attaches it as a device."
8265 #: ../fish/guestfish-actions.pod:1100
8267 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8272 #: ../fish/guestfish-actions.pod:1107
8274 msgstr "fallocate64"
8277 #: ../fish/guestfish-actions.pod:1109
8280 " fallocate64 path len\n"
8283 " fallocate64 шлях довжина\n"
8287 #: ../fish/guestfish-actions.pod:1115
8289 "Note that this call allocates disk blocks for the file. To create a sparse "
8290 "file use L</truncate-size> instead."
8294 #: ../fish/guestfish-actions.pod:1118
8296 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8297 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8298 "maximum size of files created through that call to 1GB."
8302 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1900
8304 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8305 "commands which create a file in the host and attach it as a device."
8309 #: ../fish/guestfish-actions.pod:1127
8314 #: ../fish/guestfish-actions.pod:1129
8317 " fgrep pattern path\n"
8320 " fgrep шаблон шлях\n"
8324 #: ../fish/guestfish-actions.pod:1131 ../src/guestfs-actions.pod:1915
8326 "This calls the external C<fgrep> program and returns the matching lines."
8330 #: ../fish/guestfish-actions.pod:1137
8335 #: ../fish/guestfish-actions.pod:1139
8338 " fgrepi pattern path\n"
8341 " fgrepi шаблон шлях\n"
8345 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1934
8347 "This calls the external C<fgrep -i> program and returns the matching lines."
8351 #: ../fish/guestfish-actions.pod:1147
8356 #: ../fish/guestfish-actions.pod:1149
8366 #: ../fish/guestfish-actions.pod:1151 ../src/guestfs-actions.pod:1952
8368 "This call uses the standard L<file(1)> command to determine the type or "
8369 "contents of the file."
8373 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1955
8375 "This call will also transparently look inside various types of compressed "
8380 #: ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1958
8382 "The exact command which runs is C<file -zb path>. Note in particular that "
8383 "the filename is not prepended to the output (the I<-b> option)."
8387 #: ../fish/guestfish-actions.pod:1161 ../src/guestfs-actions.pod:1962
8389 "The output depends on the output of the underlying L<file(1)> command and it "
8390 "can change in future in ways beyond our control. In other words, the output "
8391 "is not guaranteed by the ABI."
8395 #: ../fish/guestfish-actions.pod:1165
8397 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8398 "(etc), L</is-zero>."
8402 #: ../fish/guestfish-actions.pod:1168
8403 msgid "file-architecture"
8404 msgstr "file-architecture"
8407 #: ../fish/guestfish-actions.pod:1170
8410 " file-architecture filename\n"
8413 " file-architecture назва_файла\n"
8417 #: ../fish/guestfish-actions.pod:1172 ../src/guestfs-actions.pod:1980
8419 "This detects the architecture of the binary C<filename>, and returns it if "
8424 #: ../fish/guestfish-actions.pod:1175 ../src/guestfs-actions.pod:1983
8425 msgid "Currently defined architectures are:"
8429 #: ../fish/guestfish-actions.pod:1179 ../src/guestfs-actions.pod:1987
8434 #: ../fish/guestfish-actions.pod:1181 ../src/guestfs-actions.pod:1989
8436 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8437 "irrespective of the precise processor requirements of the binary."
8441 #: ../fish/guestfish-actions.pod:1184 ../src/guestfs-actions.pod:1992
8446 #: ../fish/guestfish-actions.pod:1186 ../src/guestfs-actions.pod:1994
8447 msgid "64 bit x86-64."
8451 #: ../fish/guestfish-actions.pod:1188 ../src/guestfs-actions.pod:1996
8456 #: ../fish/guestfish-actions.pod:1190 ../src/guestfs-actions.pod:1998
8457 msgid "32 bit SPARC."
8461 #: ../fish/guestfish-actions.pod:1192 ../src/guestfs-actions.pod:2000
8466 #: ../fish/guestfish-actions.pod:1194 ../src/guestfs-actions.pod:2002
8467 msgid "64 bit SPARC V9 and above."
8471 #: ../fish/guestfish-actions.pod:1196 ../src/guestfs-actions.pod:2004
8476 #: ../fish/guestfish-actions.pod:1198 ../src/guestfs-actions.pod:2006
8477 msgid "Intel Itanium."
8478 msgstr "Intel Itanium."
8481 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2008
8486 #: ../fish/guestfish-actions.pod:1202 ../src/guestfs-actions.pod:2010
8487 msgid "32 bit Power PC."
8491 #: ../fish/guestfish-actions.pod:1204 ../src/guestfs-actions.pod:2012
8496 #: ../fish/guestfish-actions.pod:1206 ../src/guestfs-actions.pod:2014
8497 msgid "64 bit Power PC."
8501 #: ../fish/guestfish-actions.pod:1210 ../src/guestfs-actions.pod:2018
8502 msgid "Libguestfs may return other architecture strings in future."
8506 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:2020
8507 msgid "The function works on at least the following types of files:"
8511 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2026
8512 msgid "many types of Un*x and Linux binary"
8516 #: ../fish/guestfish-actions.pod:1222 ../src/guestfs-actions.pod:2030
8517 msgid "many types of Un*x and Linux shared library"
8521 #: ../fish/guestfish-actions.pod:1226 ../src/guestfs-actions.pod:2034
8522 msgid "Windows Win32 and Win64 binaries"
8526 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2038
8527 msgid "Windows Win32 and Win64 DLLs"
8531 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2040
8532 msgid "Win32 binaries and DLLs return C<i386>."
8536 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2042
8537 msgid "Win64 binaries and DLLs return C<x86_64>."
8541 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2046
8542 msgid "Linux kernel modules"
8546 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2050
8547 msgid "Linux new-style initrd images"
8551 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2054
8552 msgid "some non-x86 Linux vmlinuz kernels"
8556 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2058
8557 msgid "What it can't do currently:"
8561 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2064
8562 msgid "static libraries (libfoo.a)"
8566 #: ../fish/guestfish-actions.pod:1260 ../src/guestfs-actions.pod:2068
8567 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8571 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2072
8572 msgid "x86 Linux vmlinuz kernels"
8576 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:2074
8578 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8579 "compressed code, and are horribly hard to unpack. If you want to find the "
8580 "architecture of a kernel, use the architecture of the associated initrd or "
8581 "kernel module(s) instead."
8585 #: ../fish/guestfish-actions.pod:1273
8590 #: ../fish/guestfish-actions.pod:1275
8600 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:2092
8601 msgid "This command returns the size of C<file> in bytes."
8605 #: ../fish/guestfish-actions.pod:1279
8607 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8608 "file> etc. To get the size of block devices, use L</blockdev-getsize64>."
8612 #: ../fish/guestfish-actions.pod:1283
8617 #: ../fish/guestfish-actions.pod:1285
8620 " fill c len path\n"
8625 #: ../fish/guestfish-actions.pod:1287 ../src/guestfs-actions.pod:2110
8627 "This command creates a new file called C<path>. The initial content of the "
8628 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8633 #: ../fish/guestfish-actions.pod:1291
8635 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8636 "L</truncate-size>. To create a file with a pattern of repeating bytes use "
8641 #: ../fish/guestfish-actions.pod:1296
8642 msgid "fill-pattern"
8643 msgstr "fill-pattern"
8646 #: ../fish/guestfish-actions.pod:1298
8649 " fill-pattern pattern len path\n"
8654 #: ../fish/guestfish-actions.pod:1300
8656 "This function is like L</fill> except that it creates a new file of length "
8657 "C<len> containing the repeating pattern of bytes in C<pattern>. The pattern "
8658 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8663 #: ../fish/guestfish-actions.pod:1305
8668 #: ../fish/guestfish-actions.pod:1307
8678 #: ../fish/guestfish-actions.pod:1309 ../src/guestfs-actions.pod:2156
8680 "This command lists out all files and directories, recursively, starting at "
8681 "C<directory>. It is essentially equivalent to running the shell command "
8682 "C<find directory -print> but some post-processing happens on the output, "
8687 #: ../fish/guestfish-actions.pod:1314 ../src/guestfs-actions.pod:2161
8689 "This returns a list of strings I<without any prefix>. Thus if the directory "
8694 #: ../fish/guestfish-actions.pod:1317 ../src/guestfs-actions.pod:2164
8704 #: ../fish/guestfish-actions.pod:1321
8705 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8709 #: ../fish/guestfish-actions.pod:1324 ../src/guestfs-actions.pod:2171
8720 #: ../fish/guestfish-actions.pod:1329 ../src/guestfs-actions.pod:2176
8721 msgid "If C<directory> is not a directory, then this command returns an error."
8725 #: ../fish/guestfish-actions.pod:1332 ../src/guestfs-actions.pod:2179
8726 msgid "The returned list is sorted."
8730 #: ../fish/guestfish-actions.pod:1334
8731 msgid "See also L</find0>."
8732 msgstr "Див. також L</find0>."
8735 #: ../fish/guestfish-actions.pod:1339
8740 #: ../fish/guestfish-actions.pod:1341
8743 " find0 directory (files|-)\n"
8746 " find0 каталог (файли|-)\n"
8750 #: ../fish/guestfish-actions.pod:1343 ../src/guestfs-actions.pod:2199
8752 "This command lists out all files and directories, recursively, starting at "
8753 "C<directory>, placing the resulting list in the external file called "
8758 #: ../fish/guestfish-actions.pod:1347
8760 "This command works the same way as L</find> with the following exceptions:"
8764 #: ../fish/guestfish-actions.pod:1354 ../src/guestfs-actions.pod:2210
8765 msgid "The resulting list is written to an external file."
8769 #: ../fish/guestfish-actions.pod:1358 ../src/guestfs-actions.pod:2214
8771 "Items (filenames) in the result are separated by C<\\0> characters. See "
8772 "L<find(1)> option I<-print0>."
8776 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2219
8777 msgid "This command is not limited in the number of names that it can return."
8781 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2224
8782 msgid "The result list is not sorted."
8786 #: ../fish/guestfish-actions.pod:1374
8787 msgid "findfs-label"
8788 msgstr "findfs-label"
8791 #: ../fish/guestfish-actions.pod:1376
8794 " findfs-label label\n"
8797 " findfs-label мітка\n"
8801 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2238
8803 "This command searches the filesystems and returns the one which has the "
8804 "given label. An error is returned if no such filesystem can be found."
8808 #: ../fish/guestfish-actions.pod:1382
8809 msgid "To find the label of a filesystem, use L</vfs-label>."
8810 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
8813 #: ../fish/guestfish-actions.pod:1384
8815 msgstr "findfs-uuid"
8818 #: ../fish/guestfish-actions.pod:1386
8821 " findfs-uuid uuid\n"
8824 " findfs-uuid uuid\n"
8828 #: ../fish/guestfish-actions.pod:1388 ../src/guestfs-actions.pod:2255
8830 "This command searches the filesystems and returns the one which has the "
8831 "given UUID. An error is returned if no such filesystem can be found."
8835 #: ../fish/guestfish-actions.pod:1392
8836 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8837 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
8840 #: ../fish/guestfish-actions.pod:1394
8845 #: ../fish/guestfish-actions.pod:1396
8848 " fsck fstype device\n"
8851 " fsck тип_файлової_системи пристрій\n"
8855 #: ../fish/guestfish-actions.pod:1398 ../src/guestfs-actions.pod:2273
8857 "This runs the filesystem checker (fsck) on C<device> which should have "
8858 "filesystem type C<fstype>."
8862 #: ../fish/guestfish-actions.pod:1401 ../src/guestfs-actions.pod:2276
8864 "The returned integer is the status. See L<fsck(8)> for the list of status "
8865 "codes from C<fsck>."
8869 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2285
8870 msgid "Multiple status codes can be summed together."
8874 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2289
8876 "A non-zero return code can mean \"success\", for example if errors have been "
8877 "corrected on the filesystem."
8881 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2294
8882 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8886 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2299
8888 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8892 #: ../fish/guestfish-actions.pod:1426
8897 #: ../fish/guestfish-actions.pod:1428
8907 #: ../fish/guestfish-actions.pod:1430 ../src/guestfs-actions.pod:2310
8909 "Return the additional kernel options which are added to the guest kernel "
8914 #: ../fish/guestfish-actions.pod:1433 ../src/guestfs-actions.pod:2313
8915 msgid "If C<NULL> then no options are added."
8919 #: ../fish/guestfish-actions.pod:1435
8920 msgid "get-attach-method"
8921 msgstr "get-attach-method"
8924 #: ../fish/guestfish-actions.pod:1437
8927 " get-attach-method\n"
8930 " get-attach-method\n"
8934 #: ../fish/guestfish-actions.pod:1439
8935 msgid "Return the current attach method. See L</set-attach-method>."
8939 #: ../fish/guestfish-actions.pod:1441
8940 msgid "get-autosync"
8941 msgstr "get-autosync"
8944 #: ../fish/guestfish-actions.pod:1443
8954 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2338
8955 msgid "Get the autosync flag."
8959 #: ../fish/guestfish-actions.pod:1447
8964 #: ../fish/guestfish-actions.pod:1449
8974 #: ../fish/guestfish-actions.pod:1451 ../src/guestfs-actions.pod:2349
8975 msgid "Return the direct appliance mode flag."
8979 #: ../fish/guestfish-actions.pod:1453
8981 msgstr "get-e2label"
8984 #: ../fish/guestfish-actions.pod:1455
8987 " get-e2label device\n"
8990 " get-e2label пристрій\n"
8994 #: ../fish/guestfish-actions.pod:1457 ../src/guestfs-actions.pod:2368
8996 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9000 #: ../fish/guestfish-actions.pod:1460
9002 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9007 #: ../fish/guestfish-actions.pod:1467
9012 #: ../fish/guestfish-actions.pod:1469
9015 " get-e2uuid device\n"
9018 " get-e2uuid пристрій\n"
9022 #: ../fish/guestfish-actions.pod:1471 ../src/guestfs-actions.pod:2389
9024 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9028 #: ../fish/guestfish-actions.pod:1474
9030 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9035 #: ../fish/guestfish-actions.pod:1481
9037 msgstr "get-memsize"
9040 #: ../fish/guestfish-actions.pod:1483
9050 #: ../fish/guestfish-actions.pod:1485 ../src/guestfs-actions.pod:2402
9052 "This gets the memory size in megabytes allocated to the qemu subprocess."
9056 #: ../fish/guestfish-actions.pod:1488
9058 "If L</set-memsize> was not called on this handle, and if "
9059 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9060 "value for memsize."
9064 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:1549
9065 #: ../fish/guestfish-actions.pod:4329 ../fish/guestfish-actions.pod:4431
9066 #: ../src/guestfs-actions.pod:2409 ../src/guestfs-actions.pod:2501
9067 #: ../src/guestfs-actions.pod:6713 ../src/guestfs-actions.pod:6839
9069 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9073 #: ../fish/guestfish-actions.pod:1495
9075 msgstr "get-network"
9078 #: ../fish/guestfish-actions.pod:1497
9088 #: ../fish/guestfish-actions.pod:1499 ../src/guestfs-actions.pod:2421
9089 msgid "This returns the enable network flag."
9093 #: ../fish/guestfish-actions.pod:1501
9098 #: ../fish/guestfish-actions.pod:1503
9108 #: ../fish/guestfish-actions.pod:1505 ../src/guestfs-actions.pod:2432
9109 msgid "Return the current search path."
9113 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2434
9115 "This is always non-NULL. If it wasn't set already, then this will return "
9120 #: ../fish/guestfish-actions.pod:1510
9125 #: ../fish/guestfish-actions.pod:1512
9133 #: ../fish/guestfish-actions.pod:1514 ../src/guestfs-actions.pod:2447
9134 msgid "This returns the process group flag."
9138 #: ../fish/guestfish-actions.pod:1516
9143 #: ../fish/guestfish-actions.pod:1518
9148 #: ../fish/guestfish-actions.pod:1520
9158 #: ../fish/guestfish-actions.pod:1522 ../src/guestfs-actions.pod:2458
9160 "Return the process ID of the qemu subprocess. If there is no qemu "
9161 "subprocess, then this will return an error."
9165 #: ../fish/guestfish-actions.pod:1525 ../src/guestfs-actions.pod:2461
9166 msgid "This is an internal call used for debugging and testing."
9170 #: ../fish/guestfish-actions.pod:1527
9175 #: ../fish/guestfish-actions.pod:1529
9185 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2472
9186 msgid "Return the current qemu binary."
9190 #: ../fish/guestfish-actions.pod:1533 ../src/guestfs-actions.pod:2474
9192 "This is always non-NULL. If it wasn't set already, then this will return "
9193 "the default qemu binary name."
9197 #: ../fish/guestfish-actions.pod:1536
9198 msgid "get-recovery-proc"
9199 msgstr "get-recovery-proc"
9202 #: ../fish/guestfish-actions.pod:1538
9205 " get-recovery-proc\n"
9208 " get-recovery-proc\n"
9212 #: ../fish/guestfish-actions.pod:1540 ../src/guestfs-actions.pod:2487
9213 msgid "Return the recovery process enabled flag."
9217 #: ../fish/guestfish-actions.pod:1542
9219 msgstr "get-selinux"
9222 #: ../fish/guestfish-actions.pod:1544
9232 #: ../fish/guestfish-actions.pod:1546
9234 "This returns the current setting of the selinux flag which is passed to the "
9235 "appliance at boot time. See L</set-selinux>."
9239 #: ../fish/guestfish-actions.pod:1552
9244 #: ../fish/guestfish-actions.pod:1554
9252 #: ../fish/guestfish-actions.pod:1556 ../src/guestfs-actions.pod:2513
9253 msgid "This returns the number of virtual CPUs assigned to the appliance."
9257 #: ../fish/guestfish-actions.pod:1558
9262 #: ../fish/guestfish-actions.pod:1560
9272 #: ../fish/guestfish-actions.pod:1562 ../src/guestfs-actions.pod:2524
9274 "This returns the current state as an opaque integer. This is only useful "
9275 "for printing debug and internal error messages."
9279 #: ../fish/guestfish-actions.pod:1565 ../fish/guestfish-actions.pod:2524
9280 #: ../fish/guestfish-actions.pod:2542 ../fish/guestfish-actions.pod:2580
9281 #: ../fish/guestfish-actions.pod:2596 ../src/guestfs-actions.pod:2527
9282 #: ../src/guestfs-actions.pod:3846 ../src/guestfs-actions.pod:3875
9283 #: ../src/guestfs-actions.pod:3936 ../src/guestfs-actions.pod:3963
9284 msgid "For more information on states, see L<guestfs(3)>."
9288 #: ../fish/guestfish-actions.pod:1567
9293 #: ../fish/guestfish-actions.pod:1569
9303 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2538
9304 msgid "Return the command trace flag."
9308 #: ../fish/guestfish-actions.pod:1573
9313 #: ../fish/guestfish-actions.pod:1575
9323 #: ../fish/guestfish-actions.pod:1577
9325 "Return the current umask. By default the umask is C<022> unless it has been "
9326 "set by calling L</umask>."
9330 #: ../fish/guestfish-actions.pod:1580
9332 msgstr "get-verbose"
9335 #: ../fish/guestfish-actions.pod:1582
9345 #: ../fish/guestfish-actions.pod:1584 ../src/guestfs-actions.pod:2561
9346 msgid "This returns the verbose messages flag."
9350 #: ../fish/guestfish-actions.pod:1586
9355 #: ../fish/guestfish-actions.pod:1588
9365 #: ../fish/guestfish-actions.pod:1590 ../src/guestfs-actions.pod:2572
9366 msgid "This gets the SELinux security context of the daemon."
9370 #: ../fish/guestfish-actions.pod:1592
9371 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9375 #: ../fish/guestfish-actions.pod:1595
9380 #: ../fish/guestfish-actions.pod:1597
9383 " getxattr path name\n"
9386 " getxattr шлях назва\n"
9390 #: ../fish/guestfish-actions.pod:1599
9392 "Get a single extended attribute from file C<path> named C<name>. This call "
9393 "follows symlinks. If you want to lookup an extended attribute for the "
9394 "symlink itself, use L</lgetxattr>."
9398 #: ../fish/guestfish-actions.pod:1603 ../fish/guestfish-actions.pod:2669
9400 "Normally it is better to get all extended attributes from a file in one go "
9401 "by calling L</getxattrs>. However some Linux filesystem implementations are "
9402 "buggy and do not provide a way to list out attributes. For these "
9403 "filesystems (notably ntfs-3g) you have to know the names of the extended "
9404 "attributes you want in advance and call this function."
9408 #: ../fish/guestfish-actions.pod:1610 ../fish/guestfish-actions.pod:2676
9409 #: ../src/guestfs-actions.pod:2601 ../src/guestfs-actions.pod:4096
9411 "Extended attribute values are blobs of binary data. If there is no extended "
9412 "attribute named C<name>, this returns an error."
9416 #: ../fish/guestfish-actions.pod:1613
9417 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9418 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9421 #: ../fish/guestfish-actions.pod:1615
9426 #: ../fish/guestfish-actions.pod:1617
9436 #: ../fish/guestfish-actions.pod:1619 ../src/guestfs-actions.pod:2618
9438 "This call lists the extended attributes of the file or directory C<path>."
9442 #: ../fish/guestfish-actions.pod:1622 ../src/guestfs-actions.pod:2621
9444 "At the system call level, this is a combination of the L<listxattr(2)> and "
9445 "L<getxattr(2)> calls."
9449 #: ../fish/guestfish-actions.pod:1625
9450 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9451 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
9454 #: ../fish/guestfish-actions.pod:1627
9456 msgstr "glob-expand"
9459 #: ../fish/guestfish-actions.pod:1629
9462 " glob-expand pattern\n"
9465 " glob-expand шаблон\n"
9469 #: ../fish/guestfish-actions.pod:1631 ../src/guestfs-actions.pod:2638
9471 "This command searches for all the pathnames matching C<pattern> according to "
9472 "the wildcard expansion rules used by the shell."
9476 #: ../fish/guestfish-actions.pod:1635 ../src/guestfs-actions.pod:2642
9478 "If no paths match, then this returns an empty list (note: not an error)."
9482 #: ../fish/guestfish-actions.pod:1638 ../src/guestfs-actions.pod:2645
9484 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9485 "GLOB_BRACE>. See that manual page for more details."
9489 #: ../fish/guestfish-actions.pod:1642
9494 #: ../fish/guestfish-actions.pod:1644
9497 " grep regex path\n"
9500 " grepi формальний_вираз шлях\n"
9504 #: ../fish/guestfish-actions.pod:1646 ../src/guestfs-actions.pod:2662
9505 msgid "This calls the external C<grep> program and returns the matching lines."
9509 #: ../fish/guestfish-actions.pod:1652
9514 #: ../fish/guestfish-actions.pod:1654
9517 " grepi regex path\n"
9520 " grepi формальний_вираз шлях\n"
9524 #: ../fish/guestfish-actions.pod:1656 ../src/guestfs-actions.pod:2681
9526 "This calls the external C<grep -i> program and returns the matching lines."
9530 #: ../fish/guestfish-actions.pod:1662
9531 msgid "grub-install"
9532 msgstr "grub-install"
9535 #: ../fish/guestfish-actions.pod:1664
9538 " grub-install root device\n"
9541 " grub-install кореневий пристрій\n"
9545 #: ../fish/guestfish-actions.pod:1666 ../src/guestfs-actions.pod:2700
9547 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9548 "with the root directory being C<root>."
9552 #: ../fish/guestfish-actions.pod:1675 ../src/guestfs-actions.pod:2709
9554 "There is currently no way in the API to install grub2, which is used by most "
9555 "modern Linux guests. It is possible to run the grub2 command from the "
9556 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9560 #: ../fish/guestfish-actions.pod:1682 ../src/guestfs-actions.pod:2716
9562 "This uses C<grub-install> from the host. Unfortunately grub is not always "
9563 "compatible with itself, so this only works in rather narrow circumstances. "
9564 "Careful testing with each guest version is advisable."
9568 #: ../fish/guestfish-actions.pod:1689 ../src/guestfs-actions.pod:2723
9570 "If grub-install reports the error \"No suitable drive was found in the "
9571 "generated device map.\" it may be that you need to create a C</boot/grub/"
9572 "device.map> file first that contains the mapping between grub device names "
9573 "and Linux device names. It is usually sufficient to create a file "
9578 #: ../fish/guestfish-actions.pod:1696 ../src/guestfs-actions.pod:2730
9586 #: ../fish/guestfish-actions.pod:1698 ../src/guestfs-actions.pod:2732
9587 msgid "replacing C</dev/vda> with the name of the installation device."
9591 #: ../fish/guestfish-actions.pod:1702
9596 #: ../fish/guestfish-actions.pod:1704
9606 #: ../fish/guestfish-actions.pod:1706 ../src/guestfs-actions.pod:2746
9608 "This command returns up to the first 10 lines of a file as a list of strings."
9612 #: ../fish/guestfish-actions.pod:1712
9617 #: ../fish/guestfish-actions.pod:1714
9620 " head-n nrlines path\n"
9625 #: ../fish/guestfish-actions.pod:1716 ../src/guestfs-actions.pod:2765
9627 "If the parameter C<nrlines> is a positive number, this returns the first "
9628 "C<nrlines> lines of the file C<path>."
9632 #: ../fish/guestfish-actions.pod:1719 ../src/guestfs-actions.pod:2768
9634 "If the parameter C<nrlines> is a negative number, this returns lines from "
9635 "the file C<path>, excluding the last C<nrlines> lines."
9639 #: ../fish/guestfish-actions.pod:1722 ../fish/guestfish-actions.pod:4821
9640 #: ../src/guestfs-actions.pod:2771 ../src/guestfs-actions.pod:7427
9641 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9645 #: ../fish/guestfish-actions.pod:1727
9650 #: ../fish/guestfish-actions.pod:1729
9660 #: ../fish/guestfish-actions.pod:1731 ../src/guestfs-actions.pod:2788
9662 "This runs C<hexdump -C> on the given C<path>. The result is the human-"
9663 "readable, canonical hex dump of the file."
9667 #: ../fish/guestfish-actions.pod:1737
9672 #: ../fish/guestfish-actions.pod:1739
9675 " initrd-cat initrdpath filename\n"
9678 " initrd-cat шлях_initrd назва_файла\n"
9682 #: ../fish/guestfish-actions.pod:1741 ../src/guestfs-actions.pod:2807
9684 "This command unpacks the file C<filename> from the initrd file called "
9685 "C<initrdpath>. The filename must be given I<without> the initial C</> "
9690 #: ../fish/guestfish-actions.pod:1745 ../src/guestfs-actions.pod:2811
9692 "For example, in guestfish you could use the following command to examine the "
9693 "boot script (usually called C</init>) contained in a Linux initrd or "
9698 #: ../fish/guestfish-actions.pod:1749 ../src/guestfs-actions.pod:2815
9701 " initrd-cat /boot/initrd-<version>.img init\n"
9706 #: ../fish/guestfish-actions.pod:1751
9707 msgid "See also L</initrd-list>."
9708 msgstr "Див. також L</initrd-list>."
9711 #: ../fish/guestfish-actions.pod:1756
9713 msgstr "initrd-list"
9716 #: ../fish/guestfish-actions.pod:1758
9719 " initrd-list path\n"
9722 " initrd-list шлях\n"
9726 #: ../fish/guestfish-actions.pod:1760 ../src/guestfs-actions.pod:2834
9727 msgid "This command lists out files contained in an initrd."
9731 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2836
9733 "The files are listed without any initial C</> character. The files are "
9734 "listed in the order they appear (not necessarily alphabetical). Directory "
9735 "names are listed as separate items."
9739 #: ../fish/guestfish-actions.pod:1766 ../src/guestfs-actions.pod:2840
9741 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9742 "initrd. We I<only> support the newer initramfs format (compressed cpio "
9747 #: ../fish/guestfish-actions.pod:1770
9748 msgid "inotify-add-watch"
9749 msgstr "inotify-add-watch"
9752 #: ../fish/guestfish-actions.pod:1772
9755 " inotify-add-watch path mask\n"
9758 " inotify-add-watch шлях маска\n"
9762 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2857
9763 msgid "Watch C<path> for the events listed in C<mask>."
9767 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2859
9769 "Note that if C<path> is a directory then events within that directory are "
9770 "watched, but this does I<not> happen recursively (in subdirectories)."
9774 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2863
9776 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9777 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9781 #: ../fish/guestfish-actions.pod:1784
9782 msgid "inotify-close"
9783 msgstr "inotify-close"
9786 #: ../fish/guestfish-actions.pod:1786
9796 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2876
9798 "This closes the inotify handle which was previously opened by inotify_init. "
9799 "It removes all watches, throws away any pending events, and deallocates all "
9804 #: ../fish/guestfish-actions.pod:1792
9805 msgid "inotify-files"
9806 msgstr "inotify-files"
9809 #: ../fish/guestfish-actions.pod:1794
9819 #: ../fish/guestfish-actions.pod:1796
9821 "This function is a helpful wrapper around L</inotify-read> which just "
9822 "returns a list of pathnames of objects that were touched. The returned "
9823 "pathnames are sorted and deduplicated."
9827 #: ../fish/guestfish-actions.pod:1800
9828 msgid "inotify-init"
9829 msgstr "inotify-init"
9832 #: ../fish/guestfish-actions.pod:1802
9835 " inotify-init maxevents\n"
9840 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2905
9842 "This command creates a new inotify handle. The inotify subsystem can be "
9843 "used to notify events which happen to objects in the guest filesystem."
9847 #: ../fish/guestfish-actions.pod:1808
9849 "C<maxevents> is the maximum number of events which will be queued up between "
9850 "calls to L</inotify-read> or L</inotify-files>. If this is passed as C<0>, "
9851 "then the kernel (or previously set) default is used. For Linux 2.6.29 the "
9852 "default was 16384 events. Beyond this limit, the kernel throws away events, "
9853 "but records the fact that it threw them away by setting a flag "
9854 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9858 #: ../fish/guestfish-actions.pod:1818
9860 "Before any events are generated, you have to add some watches to the "
9861 "internal watch list. See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9862 "L</inotify-watch-all>."
9866 #: ../fish/guestfish-actions.pod:1824
9868 "Queued up events should be read periodically by calling L</inotify-read> (or "
9869 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>). "
9870 "If you don't read the events out often enough then you risk the internal "
9871 "queue overflowing."
9875 #: ../fish/guestfish-actions.pod:1831
9877 "The handle should be closed after use by calling L</inotify-close>. This "
9878 "also removes any watches automatically."
9882 #: ../fish/guestfish-actions.pod:1835 ../src/guestfs-actions.pod:2936
9884 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9885 "by the Linux kernel, which is roughly what we expose via libguestfs. Note "
9886 "that there is one global inotify handle per libguestfs instance."
9890 #: ../fish/guestfish-actions.pod:1840
9891 msgid "inotify-read"
9892 msgstr "inotify-read"
9895 #: ../fish/guestfish-actions.pod:1842
9905 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2950
9907 "Return the complete queue of events that have happened since the previous "
9912 #: ../fish/guestfish-actions.pod:1847 ../src/guestfs-actions.pod:2953
9913 msgid "If no events have happened, this returns an empty list."
9917 #: ../fish/guestfish-actions.pod:1849 ../src/guestfs-actions.pod:2955
9919 "I<Note>: In order to make sure that all events have been read, you must call "
9920 "this function repeatedly until it returns an empty list. The reason is that "
9921 "the call will read events up to the maximum appliance-to-host message size "
9922 "and leave remaining events in the queue."
9926 #: ../fish/guestfish-actions.pod:1855
9927 msgid "inotify-rm-watch"
9928 msgstr "inotify-rm-watch"
9931 #: ../fish/guestfish-actions.pod:1857
9934 " inotify-rm-watch wd\n"
9939 #: ../fish/guestfish-actions.pod:1859
9940 msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
9944 #: ../fish/guestfish-actions.pod:1862
9945 msgid "inspect-get-arch"
9946 msgstr "inspect-get-arch"
9949 #: ../fish/guestfish-actions.pod:1864
9952 " inspect-get-arch root\n"
9955 " inspect-get-arch корінь\n"
9959 #: ../fish/guestfish-actions.pod:1866
9961 "This returns the architecture of the inspected operating system. The "
9962 "possible return values are listed under L</file-architecture>."
9966 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2990
9968 "If the architecture could not be determined, then the string C<unknown> is "
9973 #: ../fish/guestfish-actions.pod:1873 ../fish/guestfish-actions.pod:1968
9974 #: ../fish/guestfish-actions.pod:2047 ../fish/guestfish-actions.pod:2059
9975 #: ../fish/guestfish-actions.pod:2143 ../fish/guestfish-actions.pod:2205
9976 #: ../fish/guestfish-actions.pod:2226 ../fish/guestfish-actions.pod:2240
9977 #: ../fish/guestfish-actions.pod:2280 ../fish/guestfish-actions.pod:2316
9978 #: ../fish/guestfish-actions.pod:2329 ../fish/guestfish-actions.pod:2342
9979 #: ../fish/guestfish-actions.pod:2352 ../fish/guestfish-actions.pod:2362
9980 #: ../fish/guestfish-actions.pod:2374 ../fish/guestfish-actions.pod:2470
9981 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:2993
9982 #: ../src/guestfs-actions.pod:3095 ../src/guestfs-actions.pod:3199
9983 #: ../src/guestfs-actions.pod:3218 ../src/guestfs-actions.pod:3349
9984 #: ../src/guestfs-actions.pod:3433 ../src/guestfs-actions.pod:3461
9985 #: ../src/guestfs-actions.pod:3482 ../src/guestfs-actions.pod:3535
9986 #: ../src/guestfs-actions.pod:3579 ../src/guestfs-actions.pod:3599
9987 #: ../src/guestfs-actions.pod:3619 ../src/guestfs-actions.pod:3636
9988 #: ../src/guestfs-actions.pod:3652 ../src/guestfs-actions.pod:3670
9989 #: ../src/guestfs-actions.pod:3772 ../src/guestfs-actions.pod:3813
9990 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9994 #: ../fish/guestfish-actions.pod:1875
9995 msgid "inspect-get-distro"
9996 msgstr "inspect-get-distro"
9999 #: ../fish/guestfish-actions.pod:1877
10002 " inspect-get-distro root\n"
10005 " inspect-get-distro корінь\n"
10009 #: ../fish/guestfish-actions.pod:1879 ../src/guestfs-actions.pod:3006
10011 "This returns the distro (distribution) of the inspected operating system."
10015 #: ../fish/guestfish-actions.pod:1882 ../src/guestfs-actions.pod:3009
10016 msgid "Currently defined distros are:"
10020 #: ../fish/guestfish-actions.pod:1886 ../src/guestfs-actions.pod:3013
10021 msgid "\"archlinux\""
10022 msgstr "\"archlinux\""
10025 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:3015
10026 msgid "Arch Linux."
10027 msgstr "Arch Linux."
10030 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:3017
10035 #: ../fish/guestfish-actions.pod:1892 ../src/guestfs-actions.pod:3019
10040 #: ../fish/guestfish-actions.pod:1894 ../src/guestfs-actions.pod:3021
10042 msgstr "\"debian\""
10045 #: ../fish/guestfish-actions.pod:1896 ../src/guestfs-actions.pod:3023
10050 #: ../fish/guestfish-actions.pod:1898 ../src/guestfs-actions.pod:3025
10052 msgstr "\"fedora\""
10055 #: ../fish/guestfish-actions.pod:1900 ../src/guestfs-actions.pod:3027
10060 #: ../fish/guestfish-actions.pod:1902 ../src/guestfs-actions.pod:3029
10062 msgstr "\"gentoo\""
10065 #: ../fish/guestfish-actions.pod:1904 ../src/guestfs-actions.pod:3031
10070 #: ../fish/guestfish-actions.pod:1906 ../src/guestfs-actions.pod:3033
10071 msgid "\"linuxmint\""
10072 msgstr "\"linuxmint\""
10075 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:3035
10076 msgid "Linux Mint."
10077 msgstr "Linux Mint."
10080 #: ../fish/guestfish-actions.pod:1910 ../src/guestfs-actions.pod:3037
10085 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:3039
10090 #: ../fish/guestfish-actions.pod:1914 ../src/guestfs-actions.pod:3041
10091 msgid "\"mandriva\""
10092 msgstr "\"mandriva\""
10095 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3043
10100 #: ../fish/guestfish-actions.pod:1918 ../src/guestfs-actions.pod:3045
10105 #: ../fish/guestfish-actions.pod:1920 ../src/guestfs-actions.pod:3047
10110 #: ../fish/guestfish-actions.pod:1922 ../src/guestfs-actions.pod:3049
10111 msgid "\"opensuse\""
10115 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:3051
10120 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:3053
10122 msgstr "\"pardus\""
10125 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3055
10130 #: ../fish/guestfish-actions.pod:1930 ../src/guestfs-actions.pod:3057
10131 msgid "\"redhat-based\""
10132 msgstr "\"redhat-based\""
10135 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3059
10136 msgid "Some Red Hat-derived distro."
10137 msgstr "Дистрибутив, що походить від Red Hat."
10140 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3061
10145 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3063
10146 msgid "Red Hat Enterprise Linux."
10147 msgstr "Red Hat Enterprise Linux."
10150 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3065
10151 msgid "\"scientificlinux\""
10152 msgstr "\"scientificlinux\""
10155 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3067
10156 msgid "Scientific Linux."
10157 msgstr "Scientific Linux."
10160 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3069
10161 msgid "\"slackware\""
10162 msgstr "\"slackware\""
10165 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3071
10167 msgstr "Slackware."
10170 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3073
10171 msgid "\"ttylinux\""
10175 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3075
10180 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3077
10182 msgstr "\"ubuntu\""
10185 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3079
10190 #: ../fish/guestfish-actions.pod:1954 ../fish/guestfish-actions.pod:2038
10191 #: ../fish/guestfish-actions.pod:2307 ../src/guestfs-actions.pod:3081
10192 #: ../src/guestfs-actions.pod:3190 ../src/guestfs-actions.pod:3570
10193 msgid "\"unknown\""
10194 msgstr "\"unknown\""
10197 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3083
10198 msgid "The distro could not be determined."
10199 msgstr "Дистрибутив, тип якого не вдалося визначити."
10202 #: ../fish/guestfish-actions.pod:1958 ../fish/guestfish-actions.pod:2295
10203 #: ../src/guestfs-actions.pod:3085 ../src/guestfs-actions.pod:3558
10204 msgid "\"windows\""
10205 msgstr "\"windows\""
10208 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3087
10210 "Windows does not have distributions. This string is returned if the OS type "
10215 #: ../fish/guestfish-actions.pod:1965 ../fish/guestfish-actions.pod:2044
10216 #: ../fish/guestfish-actions.pod:2313 ../src/guestfs-actions.pod:3092
10217 #: ../src/guestfs-actions.pod:3196 ../src/guestfs-actions.pod:3576
10219 "Future versions of libguestfs may return other strings here. The caller "
10220 "should be prepared to handle any string."
10224 #: ../fish/guestfish-actions.pod:1970
10225 msgid "inspect-get-drive-mappings"
10229 #: ../fish/guestfish-actions.pod:1972
10232 " inspect-get-drive-mappings root\n"
10237 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3108
10239 "This call is useful for Windows which uses a primitive system of assigning "
10240 "drive letters (like \"C:\") to partitions. This inspection API examines the "
10241 "Windows Registry to find out how disks/partitions are mapped to drive "
10242 "letters, and returns a hash table as in the example below:"
10246 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3114
10249 " C => /dev/vda2\n"
10250 " E => /dev/vdb1\n"
10251 " F => /dev/vdc1\n"
10256 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3118
10258 "Note that keys are drive letters. For Windows, the key is case insensitive "
10259 "and just contains the drive letter, without the customary colon separator "
10264 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3122
10266 "In future we may support other operating systems that also used drive "
10267 "letters, but the keys for those might not be case insensitive and might be "
10268 "longer than 1 character. For example in OS-9, hard drives were named C<h0>, "
10273 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3127
10275 "For Windows guests, currently only hard drive mappings are returned. "
10276 "Removable disks (eg. DVD-ROMs) are ignored."
10280 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3130
10282 "For guests that do not use drive mappings, or if the drive mappings could "
10283 "not be determined, this returns an empty hash table."
10287 #: ../fish/guestfish-actions.pod:1999
10289 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10290 "get-mountpoints>, L</inspect-get-filesystems>."
10294 #: ../fish/guestfish-actions.pod:2003
10295 msgid "inspect-get-filesystems"
10296 msgstr "inspect-get-filesystems"
10299 #: ../fish/guestfish-actions.pod:2005
10302 " inspect-get-filesystems root\n"
10305 " inspect-get-filesystems корінь\n"
10309 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3151
10311 "This returns a list of all the filesystems that we think are associated with "
10312 "this operating system. This includes the root filesystem, other ordinary "
10313 "filesystems, and non-mounted devices like swap partitions."
10317 #: ../fish/guestfish-actions.pod:2012 ../src/guestfs-actions.pod:3156
10319 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10320 "to be shared between operating systems."
10324 #: ../fish/guestfish-actions.pod:2015
10326 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10327 "get-mountpoints>."
10331 #: ../fish/guestfish-actions.pod:2018
10332 msgid "inspect-get-format"
10333 msgstr "inspect-get-format"
10336 #: ../fish/guestfish-actions.pod:2020
10339 " inspect-get-format root\n"
10342 " inspect-get-format корінь\n"
10346 #: ../fish/guestfish-actions.pod:2022 ../src/guestfs-actions.pod:3174
10348 "This returns the format of the inspected operating system. You can use it "
10349 "to detect install images, live CDs and similar."
10353 #: ../fish/guestfish-actions.pod:2025 ../src/guestfs-actions.pod:3177
10354 msgid "Currently defined formats are:"
10358 #: ../fish/guestfish-actions.pod:2029 ../src/guestfs-actions.pod:3181
10359 msgid "\"installed\""
10360 msgstr "\"installed\""
10363 #: ../fish/guestfish-actions.pod:2031 ../src/guestfs-actions.pod:3183
10364 msgid "This is an installed operating system."
10365 msgstr "Це встановлена операційна система."
10368 #: ../fish/guestfish-actions.pod:2033 ../src/guestfs-actions.pod:3185
10369 msgid "\"installer\""
10373 #: ../fish/guestfish-actions.pod:2035 ../src/guestfs-actions.pod:3187
10375 "The disk image being inspected is not an installed operating system, but a "
10376 "I<bootable> install disk, live CD, or similar."
10380 #: ../fish/guestfish-actions.pod:2040 ../src/guestfs-actions.pod:3192
10381 msgid "The format of this disk image is not known."
10385 #: ../fish/guestfish-actions.pod:2049
10386 msgid "inspect-get-hostname"
10387 msgstr "inspect-get-hostname"
10390 #: ../fish/guestfish-actions.pod:2051
10393 " inspect-get-hostname root\n"
10396 " inspect-get-hostname корінь\n"
10400 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3212
10402 "This function returns the hostname of the operating system as found by "
10403 "inspection of the guest's configuration files."
10407 #: ../fish/guestfish-actions.pod:2056 ../src/guestfs-actions.pod:3215
10409 "If the hostname could not be determined, then the string C<unknown> is "
10414 #: ../fish/guestfish-actions.pod:2061
10415 msgid "inspect-get-icon"
10419 #: ../fish/guestfish-actions.pod:2063
10422 " inspect-get-icon root [favicon:..] [highquality:..]\n"
10427 #: ../fish/guestfish-actions.pod:2065 ../src/guestfs-actions.pod:3241
10429 "This function returns an icon corresponding to the inspected operating "
10430 "system. The icon is returned as a buffer containing a PNG image (re-encoded "
10431 "to PNG if necessary)."
10435 #: ../fish/guestfish-actions.pod:2069 ../src/guestfs-actions.pod:3245
10437 "If it was not possible to get an icon this function returns a zero-length "
10438 "(non-NULL) buffer. I<Callers must check for this case>."
10442 #: ../fish/guestfish-actions.pod:2072 ../src/guestfs-actions.pod:3248
10444 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10445 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10446 "this file will be returned. You can disable favicons by passing the "
10447 "optional C<favicon> boolean as false (default is true)."
10451 #: ../fish/guestfish-actions.pod:2078 ../src/guestfs-actions.pod:3254
10453 "If finding the favicon fails, then we look in other places in the guest for "
10458 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3257
10460 "If the optional C<highquality> boolean is true then only high quality icons "
10461 "are returned, which means only icons of high resolution with an alpha "
10462 "channel. The default (false) is to return any icon we can, even if it is of "
10463 "substandard quality."
10467 #: ../fish/guestfish-actions.pod:2092 ../src/guestfs-actions.pod:3268
10469 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10470 "before you call this, since it needs to read information from the guest "
10471 "filesystem during the call."
10475 #: ../fish/guestfish-actions.pod:2098 ../src/guestfs-actions.pod:3274
10477 "B<Security:> The icon data comes from the untrusted guest, and should be "
10478 "treated with caution. PNG files have been known to contain exploits. "
10479 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10480 "trying to process or display the icon."
10484 #: ../fish/guestfish-actions.pod:2106 ../src/guestfs-actions.pod:3282
10486 "The PNG image returned can be any size. It might not be square. Libguestfs "
10487 "tries to return the largest, highest quality icon available. The "
10488 "application must scale the icon to the required size."
10492 #: ../fish/guestfish-actions.pod:2113 ../src/guestfs-actions.pod:3289
10494 "Extracting icons from Windows guests requires the external C<wrestool> "
10495 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10496 "C<pnmtopng>, C<pamcut>) from the C<netpbm> package. These must be "
10497 "installed separately."
10501 #: ../fish/guestfish-actions.pod:2120 ../src/guestfs-actions.pod:3296
10503 "Operating system icons are usually trademarks. Seek legal advice before "
10504 "using trademarks in applications."
10508 #: ../fish/guestfish-actions.pod:2127
10509 msgid "inspect-get-major-version"
10510 msgstr "inspect-get-major-version"
10513 #: ../fish/guestfish-actions.pod:2129
10516 " inspect-get-major-version root\n"
10519 " inspect-get-major-version корінь\n"
10523 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3337
10525 "This returns the major version number of the inspected operating system."
10529 #: ../fish/guestfish-actions.pod:2134 ../src/guestfs-actions.pod:3340
10531 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10532 "popular public names used by the operating system. Notably the operating "
10533 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10534 "1). You can find out the real versions corresponding to releases of Windows "
10535 "by consulting Wikipedia or MSDN."
10539 #: ../fish/guestfish-actions.pod:2141 ../fish/guestfish-actions.pod:2152
10540 #: ../src/guestfs-actions.pod:3347 ../src/guestfs-actions.pod:3364
10541 msgid "If the version could not be determined, then C<0> is returned."
10545 #: ../fish/guestfish-actions.pod:2145
10546 msgid "inspect-get-minor-version"
10547 msgstr "inspect-get-minor-version"
10550 #: ../fish/guestfish-actions.pod:2147
10553 " inspect-get-minor-version root\n"
10556 " inspect-get-minor-version корінь\n"
10560 #: ../fish/guestfish-actions.pod:2149 ../src/guestfs-actions.pod:3361
10562 "This returns the minor version number of the inspected operating system."
10566 #: ../fish/guestfish-actions.pod:2154
10568 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10569 "get-major-version>."
10573 #: ../fish/guestfish-actions.pod:2157
10574 msgid "inspect-get-mountpoints"
10575 msgstr "inspect-get-mountpoints"
10578 #: ../fish/guestfish-actions.pod:2159
10581 " inspect-get-mountpoints root\n"
10584 " inspect-get-mountpoints корінь\n"
10588 #: ../fish/guestfish-actions.pod:2161 ../src/guestfs-actions.pod:3379
10590 "This returns a hash of where we think the filesystems associated with this "
10591 "operating system should be mounted. Callers should note that this is at "
10592 "best an educated guess made by reading configuration files such as C</etc/"
10593 "fstab>. I<In particular note> that this may return filesystems which are "
10594 "non-existent or not mountable and callers should be prepared to handle or "
10595 "ignore failures if they try to mount them."
10599 #: ../fish/guestfish-actions.pod:2170 ../src/guestfs-actions.pod:3388
10601 "Each element in the returned hashtable has a key which is the path of the "
10602 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10603 "mounted there (eg. C</dev/sda1>)."
10607 #: ../fish/guestfish-actions.pod:2175 ../src/guestfs-actions.pod:3393
10609 "Non-mounted devices such as swap devices are I<not> returned in this list."
10613 #: ../fish/guestfish-actions.pod:2178
10615 "For operating systems like Windows which still use drive letters, this call "
10616 "will only return an entry for the first drive \"mounted on\" C</>. For "
10617 "information about the mapping of drive letters to partitions, see L</inspect-"
10618 "get-drive-mappings>."
10622 #: ../fish/guestfish-actions.pod:2184
10624 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10625 "get-filesystems>."
10629 #: ../fish/guestfish-actions.pod:2187
10630 msgid "inspect-get-package-format"
10631 msgstr "inspect-get-package-format"
10634 #: ../fish/guestfish-actions.pod:2189
10637 " inspect-get-package-format root\n"
10640 " inspect-get-package-format корінь\n"
10644 #: ../fish/guestfish-actions.pod:2191
10646 "This function and L</inspect-get-package-management> return the package "
10647 "format and package management tool used by the inspected operating system. "
10648 "For example for Fedora these functions would return C<rpm> (package format) "
10649 "and C<yum> (package management)."
10653 #: ../fish/guestfish-actions.pod:2197 ../src/guestfs-actions.pod:3425
10655 "This returns the string C<unknown> if we could not determine the package "
10656 "format I<or> if the operating system does not have a real packaging system "
10661 #: ../fish/guestfish-actions.pod:2201 ../src/guestfs-actions.pod:3429
10663 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10664 "C<pkgsrc>. Future versions of libguestfs may return other strings."
10668 #: ../fish/guestfish-actions.pod:2207
10669 msgid "inspect-get-package-management"
10670 msgstr "inspect-get-package-management"
10673 #: ../fish/guestfish-actions.pod:2209
10676 " inspect-get-package-management root\n"
10679 " inspect-get-package-management корінь\n"
10683 #: ../fish/guestfish-actions.pod:2211
10685 "L</inspect-get-package-format> and this function return the package format "
10686 "and package management tool used by the inspected operating system. For "
10687 "example for Fedora these functions would return C<rpm> (package format) and "
10688 "C<yum> (package management)."
10692 #: ../fish/guestfish-actions.pod:2217 ../src/guestfs-actions.pod:3452
10694 "This returns the string C<unknown> if we could not determine the package "
10695 "management tool I<or> if the operating system does not have a real packaging "
10696 "system (eg. Windows)."
10700 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3456
10702 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10703 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>. Future "
10704 "versions of libguestfs may return other strings."
10708 #: ../fish/guestfish-actions.pod:2228
10709 msgid "inspect-get-product-name"
10710 msgstr "inspect-get-product-name"
10713 #: ../fish/guestfish-actions.pod:2230
10716 " inspect-get-product-name root\n"
10719 " inspect-get-product-name корінь\n"
10723 #: ../fish/guestfish-actions.pod:2232 ../src/guestfs-actions.pod:3474
10725 "This returns the product name of the inspected operating system. The "
10726 "product name is generally some freeform string which can be displayed to the "
10727 "user, but should not be parsed by programs."
10731 #: ../fish/guestfish-actions.pod:2237 ../src/guestfs-actions.pod:3479
10733 "If the product name could not be determined, then the string C<unknown> is "
10738 #: ../fish/guestfish-actions.pod:2242
10739 msgid "inspect-get-product-variant"
10743 #: ../fish/guestfish-actions.pod:2244
10746 " inspect-get-product-variant root\n"
10751 #: ../fish/guestfish-actions.pod:2246 ../src/guestfs-actions.pod:3495
10752 msgid "This returns the product variant of the inspected operating system."
10756 #: ../fish/guestfish-actions.pod:2249 ../src/guestfs-actions.pod:3498
10758 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10759 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10760 "is usually a string such as C<Client> or C<Server> (other values are "
10761 "possible). This can be used to distinguish consumer and enterprise versions "
10762 "of Windows that have the same version number (for example, Windows 7 and "
10763 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10764 "the latter is C<Server>)."
10768 #: ../fish/guestfish-actions.pod:2258 ../src/guestfs-actions.pod:3507
10770 "For enterprise Linux guests, in future we intend this to return the product "
10771 "variant such as C<Desktop>, C<Server> and so on. But this is not "
10772 "implemented at present."
10776 #: ../fish/guestfish-actions.pod:2262 ../src/guestfs-actions.pod:3511
10778 "If the product variant could not be determined, then the string C<unknown> "
10783 #: ../fish/guestfish-actions.pod:2265
10785 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10786 "get-product-name>, L</inspect-get-major-version>."
10790 #: ../fish/guestfish-actions.pod:2269
10791 msgid "inspect-get-roots"
10792 msgstr "inspect-get-roots"
10795 #: ../fish/guestfish-actions.pod:2271
10798 " inspect-get-roots\n"
10801 " inspect-get-roots\n"
10805 #: ../fish/guestfish-actions.pod:2273
10807 "This function is a convenient way to get the list of root devices, as "
10808 "returned from a previous call to L</inspect-os>, but without redoing the "
10809 "whole inspection process."
10813 #: ../fish/guestfish-actions.pod:2277
10815 "This returns an empty list if either no root devices were found or the "
10816 "caller has not called L</inspect-os>."
10820 #: ../fish/guestfish-actions.pod:2282
10821 msgid "inspect-get-type"
10822 msgstr "inspect-get-type"
10825 #: ../fish/guestfish-actions.pod:2284
10828 " inspect-get-type root\n"
10831 " inspect-get-type корінь\n"
10835 #: ../fish/guestfish-actions.pod:2286 ../src/guestfs-actions.pod:3549
10837 "This returns the type of the inspected operating system. Currently defined "
10842 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3554
10847 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3556
10848 msgid "Any Linux-based operating system."
10852 #: ../fish/guestfish-actions.pod:2297 ../src/guestfs-actions.pod:3560
10853 msgid "Any Microsoft Windows operating system."
10857 #: ../fish/guestfish-actions.pod:2299 ../src/guestfs-actions.pod:3562
10858 msgid "\"freebsd\""
10859 msgstr "\"freebsd\""
10862 #: ../fish/guestfish-actions.pod:2301 ../src/guestfs-actions.pod:3564
10867 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3566
10872 #: ../fish/guestfish-actions.pod:2305 ../src/guestfs-actions.pod:3568
10877 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3572
10878 msgid "The operating system type could not be determined."
10882 #: ../fish/guestfish-actions.pod:2318
10883 msgid "inspect-get-windows-current-control-set"
10887 #: ../fish/guestfish-actions.pod:2320
10890 " inspect-get-windows-current-control-set root\n"
10895 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3592
10897 "This returns the Windows CurrentControlSet of the inspected guest. The "
10898 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10902 #: ../fish/guestfish-actions.pod:2325 ../src/guestfs-actions.pod:3595
10904 "This call assumes that the guest is Windows and that the Registry could be "
10905 "examined by inspection. If this is not the case then an error is returned."
10909 #: ../fish/guestfish-actions.pod:2331
10910 msgid "inspect-get-windows-systemroot"
10911 msgstr "inspect-get-windows-systemroot"
10914 #: ../fish/guestfish-actions.pod:2333
10917 " inspect-get-windows-systemroot root\n"
10920 " inspect-get-windows-systemroot корінь\n"
10924 #: ../fish/guestfish-actions.pod:2335 ../src/guestfs-actions.pod:3612
10926 "This returns the Windows systemroot of the inspected guest. The systemroot "
10927 "is a directory path such as C</WINDOWS>."
10931 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3615
10933 "This call assumes that the guest is Windows and that the systemroot could be "
10934 "determined by inspection. If this is not the case then an error is returned."
10938 #: ../fish/guestfish-actions.pod:2344
10939 msgid "inspect-is-live"
10940 msgstr "inspect-is-live"
10943 #: ../fish/guestfish-actions.pod:2346
10946 " inspect-is-live root\n"
10949 " inspect-is-live корінь\n"
10953 #: ../fish/guestfish-actions.pod:2348
10955 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10956 "then this returns true if a live image was detected on the disk."
10960 #: ../fish/guestfish-actions.pod:2354
10961 msgid "inspect-is-multipart"
10962 msgstr "inspect-is-multipart"
10965 #: ../fish/guestfish-actions.pod:2356
10968 " inspect-is-multipart root\n"
10971 " inspect-is-multipart корінь\n"
10975 #: ../fish/guestfish-actions.pod:2358
10977 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10978 "then this returns true if the disk is part of a set."
10982 #: ../fish/guestfish-actions.pod:2364
10983 msgid "inspect-is-netinst"
10984 msgstr "inspect-is-netinst"
10987 #: ../fish/guestfish-actions.pod:2366
10990 " inspect-is-netinst root\n"
10993 " inspect-is-netinst корінь\n"
10997 #: ../fish/guestfish-actions.pod:2368
10999 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11000 "then this returns true if the disk is a network installer, ie. not a self-"
11001 "contained install CD but one which is likely to require network access to "
11002 "complete the install."
11006 #: ../fish/guestfish-actions.pod:2376
11007 msgid "inspect-list-applications"
11008 msgstr "inspect-list-applications"
11011 #: ../fish/guestfish-actions.pod:2378
11014 " inspect-list-applications root\n"
11017 " inspect-list-applications кореневий_каталог\n"
11021 #: ../fish/guestfish-actions.pod:2380 ../src/guestfs-actions.pod:3682
11022 msgid "Return the list of applications installed in the operating system."
11026 #: ../fish/guestfish-actions.pod:2382
11028 "I<Note:> This call works differently from other parts of the inspection "
11029 "API. You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
11030 "then mount up the disks, before calling this. Listing applications is a "
11031 "significantly more difficult operation which requires access to the full "
11032 "filesystem. Also note that unlike the other L</inspect-get-*> calls which "
11033 "are just returning data cached in the libguestfs handle, this call actually "
11034 "reads parts of the mounted filesystems during the call."
11038 #: ../fish/guestfish-actions.pod:2392 ../src/guestfs-actions.pod:3694
11040 "This returns an empty list if the inspection code was not able to determine "
11041 "the list of applications."
11045 #: ../fish/guestfish-actions.pod:2395 ../src/guestfs-actions.pod:3697
11046 msgid "The application structure contains the following fields:"
11050 #: ../fish/guestfish-actions.pod:2399 ../src/guestfs-actions.pod:3701
11051 msgid "C<app_name>"
11052 msgstr "C<app_name>"
11055 #: ../fish/guestfish-actions.pod:2401 ../src/guestfs-actions.pod:3703
11057 "The name of the application. For Red Hat-derived and Debian-derived Linux "
11058 "guests, this is the package name."
11062 #: ../fish/guestfish-actions.pod:2404 ../src/guestfs-actions.pod:3706
11063 msgid "C<app_display_name>"
11064 msgstr "C<app_display_name>"
11067 #: ../fish/guestfish-actions.pod:2406 ../src/guestfs-actions.pod:3708
11069 "The display name of the application, sometimes localized to the install "
11070 "language of the guest operating system."
11074 #: ../fish/guestfish-actions.pod:2409 ../src/guestfs-actions.pod:3711
11076 "If unavailable this is returned as an empty string C<\"\">. Callers needing "
11077 "to display something can use C<app_name> instead."
11081 #: ../fish/guestfish-actions.pod:2412 ../src/guestfs-actions.pod:3714
11082 msgid "C<app_epoch>"
11083 msgstr "C<app_epoch>"
11086 #: ../fish/guestfish-actions.pod:2414 ../src/guestfs-actions.pod:3716
11088 "For package managers which use epochs, this contains the epoch of the "
11089 "package (an integer). If unavailable, this is returned as C<0>."
11093 #: ../fish/guestfish-actions.pod:2417 ../src/guestfs-actions.pod:3719
11094 msgid "C<app_version>"
11095 msgstr "C<app_version>"
11098 #: ../fish/guestfish-actions.pod:2419 ../src/guestfs-actions.pod:3721
11100 "The version string of the application or package. If unavailable this is "
11101 "returned as an empty string C<\"\">."
11105 #: ../fish/guestfish-actions.pod:2422 ../src/guestfs-actions.pod:3724
11106 msgid "C<app_release>"
11107 msgstr "C<app_release>"
11110 #: ../fish/guestfish-actions.pod:2424 ../src/guestfs-actions.pod:3726
11112 "The release string of the application or package, for package managers that "
11113 "use this. If unavailable this is returned as an empty string C<\"\">."
11117 #: ../fish/guestfish-actions.pod:2428 ../src/guestfs-actions.pod:3730
11118 msgid "C<app_install_path>"
11119 msgstr "C<app_install_path>"
11122 #: ../fish/guestfish-actions.pod:2430 ../src/guestfs-actions.pod:3732
11124 "The installation path of the application (on operating systems such as "
11125 "Windows which use installation paths). This path is in the format used by "
11126 "the guest operating system, it is not a libguestfs path."
11130 #: ../fish/guestfish-actions.pod:2435 ../src/guestfs-actions.pod:3737
11131 msgid "If unavailable this is returned as an empty string C<\"\">."
11135 #: ../fish/guestfish-actions.pod:2437 ../src/guestfs-actions.pod:3739
11136 msgid "C<app_trans_path>"
11137 msgstr "C<app_trans_path>"
11140 #: ../fish/guestfish-actions.pod:2439 ../src/guestfs-actions.pod:3741
11142 "The install path translated into a libguestfs path. If unavailable this is "
11143 "returned as an empty string C<\"\">."
11147 #: ../fish/guestfish-actions.pod:2442 ../src/guestfs-actions.pod:3744
11148 msgid "C<app_publisher>"
11149 msgstr "C<app_publisher>"
11152 #: ../fish/guestfish-actions.pod:2444 ../src/guestfs-actions.pod:3746
11154 "The name of the publisher of the application, for package managers that use "
11155 "this. If unavailable this is returned as an empty string C<\"\">."
11159 #: ../fish/guestfish-actions.pod:2448 ../src/guestfs-actions.pod:3750
11161 msgstr "C<app_url>"
11164 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3752
11166 "The URL (eg. upstream URL) of the application. If unavailable this is "
11167 "returned as an empty string C<\"\">."
11171 #: ../fish/guestfish-actions.pod:2453 ../src/guestfs-actions.pod:3755
11172 msgid "C<app_source_package>"
11173 msgstr "C<app_source_package>"
11176 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3757
11178 "For packaging systems which support this, the name of the source package. "
11179 "If unavailable this is returned as an empty string C<\"\">."
11183 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3760
11184 msgid "C<app_summary>"
11185 msgstr "C<app_summary>"
11188 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3762
11190 "A short (usually one line) description of the application or package. If "
11191 "unavailable this is returned as an empty string C<\"\">."
11195 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3765
11196 msgid "C<app_description>"
11197 msgstr "C<app_description>"
11200 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3767
11202 "A longer description of the application or package. If unavailable this is "
11203 "returned as an empty string C<\"\">."
11207 #: ../fish/guestfish-actions.pod:2472
11209 msgstr "inspect-os"
11212 #: ../fish/guestfish-actions.pod:2474
11222 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3785
11224 "This function uses other libguestfs functions and certain heuristics to "
11225 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11226 "for operating systems."
11230 #: ../fish/guestfish-actions.pod:2480 ../src/guestfs-actions.pod:3789
11231 msgid "The list returned is empty if no operating systems were found."
11235 #: ../fish/guestfish-actions.pod:2482 ../src/guestfs-actions.pod:3791
11237 "If one operating system was found, then this returns a list with a single "
11238 "element, which is the name of the root filesystem of this operating system. "
11239 "It is also possible for this function to return a list containing more than "
11240 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11241 "element being the root filesystem of one of the operating systems."
11245 #: ../fish/guestfish-actions.pod:2489
11247 "You can pass the root string(s) returned to other L</inspect-get-*> "
11248 "functions in order to query further information about each operating system, "
11249 "such as the name and version."
11253 #: ../fish/guestfish-actions.pod:2494
11255 "This function uses other libguestfs features such as L</mount-ro> and L</"
11256 "umount-all> in order to mount and unmount filesystems and look at the "
11257 "contents. This should be called with no disks currently mounted. The "
11258 "function may also use Augeas, so any existing Augeas handle will be closed."
11262 #: ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:3809
11264 "This function cannot decrypt encrypted disks. The caller must do that first "
11265 "(supplying the necessary keys) if the disk is encrypted."
11269 #: ../fish/guestfish-actions.pod:2506 ../fish/guestfish-actions.pod:2704
11270 #: ../fish/guestfish-actions.pod:2763
11271 msgid "See also L</list-filesystems>."
11272 msgstr "Див. також L</list-filesystems>."
11275 #: ../fish/guestfish-actions.pod:2508
11276 msgid "is-blockdev"
11277 msgstr "is-blockdev"
11280 #: ../fish/guestfish-actions.pod:2510
11283 " is-blockdev path\n"
11286 " is-blockdev шлях\n"
11290 #: ../fish/guestfish-actions.pod:2512 ../src/guestfs-actions.pod:3829
11292 "This returns C<true> if and only if there is a block device with the given "
11297 #: ../fish/guestfish-actions.pod:2515 ../fish/guestfish-actions.pod:2533
11298 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2561
11299 #: ../fish/guestfish-actions.pod:2571 ../fish/guestfish-actions.pod:2605
11300 #: ../fish/guestfish-actions.pod:2614
11301 msgid "See also L</stat>."
11302 msgstr "Див. також L</stat>."
11305 #: ../fish/guestfish-actions.pod:2517
11310 #: ../fish/guestfish-actions.pod:2519
11320 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3843
11322 "This returns true iff this handle is busy processing a command (in the "
11327 #: ../fish/guestfish-actions.pod:2526
11329 msgstr "is-chardev"
11332 #: ../fish/guestfish-actions.pod:2528
11335 " is-chardev path\n"
11338 " is-chardev шлях\n"
11342 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3858
11344 "This returns C<true> if and only if there is a character device with the "
11345 "given C<path> name."
11349 #: ../fish/guestfish-actions.pod:2535
11354 #: ../fish/guestfish-actions.pod:2537
11364 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3872
11366 "This returns true iff this handle is being configured (in the C<CONFIG> "
11371 #: ../fish/guestfish-actions.pod:2544
11376 #: ../fish/guestfish-actions.pod:2546
11386 #: ../fish/guestfish-actions.pod:2548 ../src/guestfs-actions.pod:3887
11388 "This returns C<true> if and only if there is a directory with the given "
11389 "C<path> name. Note that it returns false for other objects like files."
11393 #: ../fish/guestfish-actions.pod:2554
11398 #: ../fish/guestfish-actions.pod:2556
11408 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3903
11410 "This returns C<true> if and only if there is a FIFO (named pipe) with the "
11411 "given C<path> name."
11415 #: ../fish/guestfish-actions.pod:2563
11420 #: ../fish/guestfish-actions.pod:2565
11430 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3918
11432 "This returns C<true> if and only if there is a regular file with the given "
11433 "C<path> name. Note that it returns false for other objects like directories."
11437 #: ../fish/guestfish-actions.pod:2573
11438 msgid "is-launching"
11439 msgstr "is-launching"
11442 #: ../fish/guestfish-actions.pod:2575
11452 #: ../fish/guestfish-actions.pod:2577 ../src/guestfs-actions.pod:3933
11454 "This returns true iff this handle is launching the subprocess (in the "
11455 "C<LAUNCHING> state)."
11459 #: ../fish/guestfish-actions.pod:2582
11464 #: ../fish/guestfish-actions.pod:2584
11470 " is-lv пристрій\n"
11474 #: ../fish/guestfish-actions.pod:2586 ../src/guestfs-actions.pod:3948
11476 "This command tests whether C<device> is a logical volume, and returns true "
11477 "iff this is the case."
11481 #: ../fish/guestfish-actions.pod:2589
11486 #: ../fish/guestfish-actions.pod:2591
11496 #: ../fish/guestfish-actions.pod:2593 ../src/guestfs-actions.pod:3960
11498 "This returns true iff this handle is ready to accept commands (in the "
11503 #: ../fish/guestfish-actions.pod:2598
11508 #: ../fish/guestfish-actions.pod:2600
11511 " is-socket path\n"
11514 " is-socket шлях\n"
11518 #: ../fish/guestfish-actions.pod:2602 ../src/guestfs-actions.pod:3975
11520 "This returns C<true> if and only if there is a Unix domain socket with the "
11521 "given C<path> name."
11525 #: ../fish/guestfish-actions.pod:2607
11527 msgstr "is-symlink"
11530 #: ../fish/guestfish-actions.pod:2609
11533 " is-symlink path\n"
11536 " is-symlink шлях\n"
11540 #: ../fish/guestfish-actions.pod:2611 ../src/guestfs-actions.pod:3990
11542 "This returns C<true> if and only if there is a symbolic link with the given "
11547 #: ../fish/guestfish-actions.pod:2616
11552 #: ../fish/guestfish-actions.pod:2618
11560 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:4005
11562 "This returns true iff the file exists and the file is empty or it contains "
11567 #: ../fish/guestfish-actions.pod:2623
11568 msgid "is-zero-device"
11572 #: ../fish/guestfish-actions.pod:2625
11575 " is-zero-device device\n"
11580 #: ../fish/guestfish-actions.pod:2627 ../src/guestfs-actions.pod:4018
11581 msgid "This returns true iff the device exists and contains all zero bytes."
11585 #: ../fish/guestfish-actions.pod:2629 ../src/guestfs-actions.pod:4020
11586 msgid "Note that for large devices this can take a long time to run."
11590 #: ../fish/guestfish-actions.pod:2631
11591 msgid "kill-subprocess"
11592 msgstr "kill-subprocess"
11595 #: ../fish/guestfish-actions.pod:2633
11598 " kill-subprocess\n"
11601 " kill-subprocess\n"
11605 #: ../fish/guestfish-actions.pod:2635 ../src/guestfs-actions.pod:4031
11606 msgid "This kills the qemu subprocess. You should never need to call this."
11610 #: ../fish/guestfish-actions.pod:2637
11615 #: ../fish/guestfish-actions.pod:2639
11620 #: ../fish/guestfish-actions.pod:2641
11630 #: ../fish/guestfish-actions.pod:2643 ../src/guestfs-actions.pod:4042
11632 "Internally libguestfs is implemented by running a virtual machine using "
11637 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:4045
11639 "You should call this after configuring the handle (eg. adding drives) but "
11640 "before performing any actions."
11644 #: ../fish/guestfish-actions.pod:2649
11649 #: ../fish/guestfish-actions.pod:2651
11652 " lchown owner group path\n"
11655 " lchown власник група шлях\n"
11659 #: ../fish/guestfish-actions.pod:2653
11661 "Change the file owner to C<owner> and group to C<group>. This is like L</"
11662 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11667 #: ../fish/guestfish-actions.pod:2661
11672 #: ../fish/guestfish-actions.pod:2663
11675 " lgetxattr path name\n"
11678 " lgetxattr шлях назва\n"
11682 #: ../fish/guestfish-actions.pod:2665 ../src/guestfs-actions.pod:4085
11684 "Get a single extended attribute from file C<path> named C<name>. If C<path> "
11685 "is a symlink, then this call returns an extended attribute from the symlink."
11689 #: ../fish/guestfish-actions.pod:2679
11690 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11691 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11694 #: ../fish/guestfish-actions.pod:2681
11696 msgstr "lgetxattrs"
11699 #: ../fish/guestfish-actions.pod:2683
11702 " lgetxattrs path\n"
11705 " lgetxattrs шлях\n"
11709 #: ../fish/guestfish-actions.pod:2685
11711 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11712 "it returns the extended attributes of the link itself."
11716 #: ../fish/guestfish-actions.pod:2689
11721 #: ../fish/guestfish-actions.pod:2691
11729 #: ../fish/guestfish-actions.pod:2693 ../src/guestfs-actions.pod:4128
11731 "List all 9p filesystems attached to the guest. A list of mount tags is "
11736 #: ../fish/guestfish-actions.pod:2696
11737 msgid "list-devices"
11738 msgstr "list-devices"
11741 #: ../fish/guestfish-actions.pod:2698
11751 #: ../fish/guestfish-actions.pod:2700 ../src/guestfs-actions.pod:4142
11752 msgid "List all the block devices."
11756 #: ../fish/guestfish-actions.pod:2702 ../src/guestfs-actions.pod:4144
11757 msgid "The full block device names are returned, eg. C</dev/sda>."
11761 #: ../fish/guestfish-actions.pod:2706
11762 msgid "list-dm-devices"
11766 #: ../fish/guestfish-actions.pod:2708
11769 " list-dm-devices\n"
11774 #: ../fish/guestfish-actions.pod:2710 ../src/guestfs-actions.pod:4159
11775 msgid "List all device mapper devices."
11779 #: ../fish/guestfish-actions.pod:2712
11781 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11782 "previous call to L</luks-open>."
11786 #: ../fish/guestfish-actions.pod:2715
11788 "Device mapper devices which correspond to logical volumes are I<not> "
11789 "returned in this list. Call L</lvs> if you want to list logical volumes."
11793 #: ../fish/guestfish-actions.pod:2719
11794 msgid "list-filesystems"
11795 msgstr "list-filesystems"
11798 #: ../fish/guestfish-actions.pod:2721
11801 " list-filesystems\n"
11804 " list-filesystems\n"
11808 #: ../fish/guestfish-actions.pod:2723 ../src/guestfs-actions.pod:4179
11810 "This inspection command looks for filesystems on partitions, block devices "
11811 "and logical volumes, returning a list of devices containing filesystems and "
11816 #: ../fish/guestfish-actions.pod:2727 ../src/guestfs-actions.pod:4183
11818 "The return value is a hash, where the keys are the devices containing "
11819 "filesystems, and the values are the filesystem types. For example:"
11823 #: ../fish/guestfish-actions.pod:2731 ../src/guestfs-actions.pod:4187
11826 " \"/dev/sda1\" => \"ntfs\"\n"
11827 " \"/dev/sda2\" => \"ext2\"\n"
11828 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11829 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11834 #: ../fish/guestfish-actions.pod:2736 ../src/guestfs-actions.pod:4192
11836 "The value can have the special value \"unknown\", meaning the content of the "
11837 "device is undetermined or empty. \"swap\" means a Linux swap partition."
11841 #: ../fish/guestfish-actions.pod:2740
11843 "This command runs other libguestfs commands, which might include L</mount> "
11844 "and L</umount>, and therefore you should use this soon after launch and only "
11845 "when nothing is mounted."
11849 #: ../fish/guestfish-actions.pod:2744
11851 "Not all of the filesystems returned will be mountable. In particular, swap "
11852 "partitions are returned in the list. Also this command does not check that "
11853 "each filesystem found is valid and mountable, and some filesystems might be "
11854 "mountable but require special options. Filesystems may not all belong to a "
11855 "single logical operating system (use L</inspect-os> to look for OSes)."
11859 #: ../fish/guestfish-actions.pod:2752
11860 msgid "list-partitions"
11861 msgstr "list-partitions"
11864 #: ../fish/guestfish-actions.pod:2754
11867 " list-partitions\n"
11870 " list-partitions\n"
11874 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4221
11875 msgid "List all the partitions detected on all block devices."
11879 #: ../fish/guestfish-actions.pod:2758 ../src/guestfs-actions.pod:4223
11880 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11884 #: ../fish/guestfish-actions.pod:2760
11886 "This does not return logical volumes. For that you will need to call L</"
11891 #: ../fish/guestfish-actions.pod:2765
11896 #: ../fish/guestfish-actions.pod:2767
11906 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4242
11908 "List the files in C<directory> (relative to the root directory, there is no "
11909 "cwd) in the format of 'ls -la'."
11913 #: ../fish/guestfish-actions.pod:2772 ../src/guestfs-actions.pod:4245
11915 "This command is mostly useful for interactive sessions. It is I<not> "
11916 "intended that you try to parse the output string."
11920 #: ../fish/guestfish-actions.pod:2775
11925 #: ../fish/guestfish-actions.pod:2777
11928 " ln target linkname\n"
11931 " ln призначення назва_посилання\n"
11935 #: ../fish/guestfish-actions.pod:2779 ../src/guestfs-actions.pod:4260
11936 msgid "This command creates a hard link using the C<ln> command."
11940 #: ../fish/guestfish-actions.pod:2781
11945 #: ../fish/guestfish-actions.pod:2783
11948 " ln-f target linkname\n"
11951 " ln-f призначення назва_посилання\n"
11955 #: ../fish/guestfish-actions.pod:2785 ../src/guestfs-actions.pod:4273
11957 "This command creates a hard link using the C<ln -f> command. The I<-f> "
11958 "option removes the link (C<linkname>) if it exists already."
11962 #: ../fish/guestfish-actions.pod:2788
11967 #: ../fish/guestfish-actions.pod:2790
11970 " ln-s target linkname\n"
11973 " ln-s призначення назва_посилання\n"
11977 #: ../fish/guestfish-actions.pod:2792 ../src/guestfs-actions.pod:4287
11978 msgid "This command creates a symbolic link using the C<ln -s> command."
11982 #: ../fish/guestfish-actions.pod:2794
11987 #: ../fish/guestfish-actions.pod:2796
11990 " ln-sf target linkname\n"
11993 " ln-sf призначення назва_посилання\n"
11997 #: ../fish/guestfish-actions.pod:2798 ../src/guestfs-actions.pod:4300
11999 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12000 "option removes the link (C<linkname>) if it exists already."
12004 #: ../fish/guestfish-actions.pod:2801
12005 msgid "lremovexattr"
12006 msgstr "lremovexattr"
12009 #: ../fish/guestfish-actions.pod:2803
12012 " lremovexattr xattr path\n"
12017 #: ../fish/guestfish-actions.pod:2805
12019 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
12020 "it removes an extended attribute of the link itself."
12024 #: ../fish/guestfish-actions.pod:2809
12029 #: ../fish/guestfish-actions.pod:2811
12039 #: ../fish/guestfish-actions.pod:2813 ../src/guestfs-actions.pod:4328
12041 "List the files in C<directory> (relative to the root directory, there is no "
12042 "cwd). The '.' and '..' entries are not returned, but hidden files are shown."
12046 #: ../fish/guestfish-actions.pod:2817
12048 "This command is mostly useful for interactive sessions. Programs should "
12049 "probably use L</readdir> instead."
12053 #: ../fish/guestfish-actions.pod:2820
12058 #: ../fish/guestfish-actions.pod:2822
12061 " lsetxattr xattr val vallen path\n"
12066 #: ../fish/guestfish-actions.pod:2824
12068 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
12069 "sets an extended attribute of the link itself."
12073 #: ../fish/guestfish-actions.pod:2828
12078 #: ../fish/guestfish-actions.pod:2830
12088 #: ../fish/guestfish-actions.pod:2832 ../fish/guestfish-actions.pod:4656
12089 #: ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:7167
12090 msgid "Returns file information for the given C<path>."
12094 #: ../fish/guestfish-actions.pod:2834
12096 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
12097 "the link is stat-ed, not the file it refers to."
12101 #: ../fish/guestfish-actions.pod:2838 ../src/guestfs-actions.pod:4370
12102 msgid "This is the same as the C<lstat(2)> system call."
12106 #: ../fish/guestfish-actions.pod:2840
12111 #: ../fish/guestfish-actions.pod:2842
12114 " lstatlist path 'names ...'\n"
12119 #: ../fish/guestfish-actions.pod:2844
12121 "This call allows you to perform the L</lstat> operation on multiple files, "
12122 "where all files are in the directory C<path>. C<names> is the list of files "
12123 "from this directory."
12127 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4389
12129 "On return you get a list of stat structs, with a one-to-one correspondence "
12130 "to the C<names> list. If any name did not exist or could not be lstat'd, "
12131 "then the C<ino> field of that structure is set to C<-1>."
12135 #: ../fish/guestfish-actions.pod:2853
12137 "This call is intended for programs that want to efficiently list a directory "
12138 "contents without making many round-trips. See also L</lxattrlist> for a "
12139 "similarly efficient call for getting extended attributes. Very long "
12140 "directory listings might cause the protocol message size to be exceeded, "
12141 "causing this call to fail. The caller must split up such requests into "
12142 "smaller groups of names."
12146 #: ../fish/guestfish-actions.pod:2861
12147 msgid "luks-add-key"
12148 msgstr "luks-add-key"
12151 #: ../fish/guestfish-actions.pod:2863
12154 " luks-add-key device keyslot\n"
12159 #: ../fish/guestfish-actions.pod:2865 ../src/guestfs-actions.pod:4417
12161 "This command adds a new key on LUKS device C<device>. C<key> is any "
12162 "existing key, and is used to access the device. C<newkey> is the new key to "
12163 "add. C<keyslot> is the key slot that will be replaced."
12167 #: ../fish/guestfish-actions.pod:2870
12169 "Note that if C<keyslot> already contains a key, then this command will "
12170 "fail. You have to use L</luks-kill-slot> first to remove that key."
12174 #: ../fish/guestfish-actions.pod:2874 ../fish/guestfish-actions.pod:2896
12175 #: ../fish/guestfish-actions.pod:2909 ../fish/guestfish-actions.pod:2923
12176 #: ../fish/guestfish-actions.pod:2949 ../fish/guestfish-actions.pod:2959
12178 "This command has one or more key or passphrase parameters. Guestfish will "
12179 "prompt for these separately."
12183 #: ../fish/guestfish-actions.pod:2877
12185 msgstr "luks-close"
12188 #: ../fish/guestfish-actions.pod:2879
12191 " luks-close device\n"
12194 " luks-close пристрій\n"
12198 #: ../fish/guestfish-actions.pod:2881
12200 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
12201 "luks-open-ro>. The C<device> parameter must be the name of the LUKS mapping "
12202 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
12207 #: ../fish/guestfish-actions.pod:2887
12208 msgid "luks-format"
12209 msgstr "luks-format"
12212 #: ../fish/guestfish-actions.pod:2889
12215 " luks-format device keyslot\n"
12220 #: ../fish/guestfish-actions.pod:2891 ../src/guestfs-actions.pod:4458
12222 "This command erases existing data on C<device> and formats the device as a "
12223 "LUKS encrypted device. C<key> is the initial key, which is added to key "
12224 "slot C<slot>. (LUKS supports 8 key slots, numbered 0-7)."
12228 #: ../fish/guestfish-actions.pod:2899 ../fish/guestfish-actions.pod:2912
12229 #: ../fish/guestfish-actions.pod:2999 ../fish/guestfish-actions.pod:3650
12230 #: ../fish/guestfish-actions.pod:4190 ../fish/guestfish-actions.pod:4527
12231 #: ../fish/guestfish-actions.pod:4550 ../fish/guestfish-actions.pod:4572
12232 #: ../fish/guestfish-actions.pod:5318 ../src/guestfs-actions.pod:4465
12233 #: ../src/guestfs-actions.pod:4488 ../src/guestfs-actions.pod:4631
12234 #: ../src/guestfs-actions.pod:5724 ../src/guestfs-actions.pod:6530
12235 #: ../src/guestfs-actions.pod:6981 ../src/guestfs-actions.pod:7011
12236 #: ../src/guestfs-actions.pod:7044 ../src/guestfs-actions.pod:8243
12238 "B<This command is dangerous. Without careful use you can easily destroy all "
12243 #: ../fish/guestfish-actions.pod:2902
12244 msgid "luks-format-cipher"
12245 msgstr "luks-format-cipher"
12248 #: ../fish/guestfish-actions.pod:2904
12251 " luks-format-cipher device keyslot cipher\n"
12256 #: ../fish/guestfish-actions.pod:2906
12258 "This command is the same as L</luks-format> but it also allows you to set "
12259 "the C<cipher> used."
12263 #: ../fish/guestfish-actions.pod:2915
12264 msgid "luks-kill-slot"
12265 msgstr "luks-kill-slot"
12268 #: ../fish/guestfish-actions.pod:2917
12271 " luks-kill-slot device keyslot\n"
12276 #: ../fish/guestfish-actions.pod:2919 ../src/guestfs-actions.pod:4505
12278 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12279 "device C<device>. C<key> must be one of the I<other> keys."
12283 #: ../fish/guestfish-actions.pod:2926
12288 #: ../fish/guestfish-actions.pod:2928
12291 " luks-open device mapname\n"
12296 #: ../fish/guestfish-actions.pod:2930 ../src/guestfs-actions.pod:4525
12298 "This command opens a block device which has been encrypted according to the "
12299 "Linux Unified Key Setup (LUKS) standard."
12303 #: ../fish/guestfish-actions.pod:2933 ../src/guestfs-actions.pod:4528
12304 msgid "C<device> is the encrypted block device or partition."
12308 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4530
12310 "The caller must supply one of the keys associated with the LUKS block "
12311 "device, in the C<key> parameter."
12315 #: ../fish/guestfish-actions.pod:2938 ../src/guestfs-actions.pod:4533
12317 "This creates a new block device called C</dev/mapper/mapname>. Reads and "
12318 "writes to this block device are decrypted from and encrypted to the "
12319 "underlying C<device> respectively."
12323 #: ../fish/guestfish-actions.pod:2942
12325 "If this block device contains LVM volume groups, then calling L</vgscan> "
12326 "followed by L</vg-activate-all> will make them visible."
12330 #: ../fish/guestfish-actions.pod:2946
12331 msgid "Use L</list-dm-devices> to list all device mapper devices."
12335 #: ../fish/guestfish-actions.pod:2952
12336 msgid "luks-open-ro"
12337 msgstr "luks-open-ro"
12340 #: ../fish/guestfish-actions.pod:2954
12343 " luks-open-ro device mapname\n"
12348 #: ../fish/guestfish-actions.pod:2956
12350 "This is the same as L</luks-open> except that a read-only mapping is created."
12354 #: ../fish/guestfish-actions.pod:2962
12359 #: ../fish/guestfish-actions.pod:2964
12362 " lvcreate logvol volgroup mbytes\n"
12367 #: ../fish/guestfish-actions.pod:2966 ../src/guestfs-actions.pod:4579
12369 "This creates an LVM logical volume called C<logvol> on the volume group "
12370 "C<volgroup>, with C<size> megabytes."
12374 #: ../fish/guestfish-actions.pod:2969
12375 msgid "lvm-canonical-lv-name"
12376 msgstr "lvm-canonical-lv-name"
12379 #: ../fish/guestfish-actions.pod:2971
12382 " lvm-canonical-lv-name lvname\n"
12387 #: ../fish/guestfish-actions.pod:2973 ../src/guestfs-actions.pod:4592
12389 "This converts alternative naming schemes for LVs that you might find to the "
12390 "canonical name. For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12395 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4596
12397 "This command returns an error if the C<lvname> parameter does not refer to a "
12402 #: ../fish/guestfish-actions.pod:2980
12403 msgid "See also L</is-lv>."
12404 msgstr "Див. також L</is-lv>."
12407 #: ../fish/guestfish-actions.pod:2982
12408 msgid "lvm-clear-filter"
12409 msgstr "lvm-clear-filter"
12412 #: ../fish/guestfish-actions.pod:2984
12415 " lvm-clear-filter\n"
12418 " lvm-clear-filter\n"
12422 #: ../fish/guestfish-actions.pod:2986
12424 "This undoes the effect of L</lvm-set-filter>. LVM will be able to see every "
12429 #: ../fish/guestfish-actions.pod:2989 ../fish/guestfish-actions.pod:3020
12430 #: ../src/guestfs-actions.pod:4614 ../src/guestfs-actions.pod:4656
12432 "This command also clears the LVM cache and performs a volume group scan."
12436 #: ../fish/guestfish-actions.pod:2992
12437 msgid "lvm-remove-all"
12438 msgstr "lvm-remove-all"
12441 #: ../fish/guestfish-actions.pod:2994
12444 " lvm-remove-all\n"
12447 " lvm-remove-all\n"
12451 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4626
12453 "This command removes all LVM logical volumes, volume groups and physical "
12458 #: ../fish/guestfish-actions.pod:3002
12459 msgid "lvm-set-filter"
12460 msgstr "lvm-set-filter"
12463 #: ../fish/guestfish-actions.pod:3004
12466 " lvm-set-filter 'devices ...'\n"
12469 " lvm-set-filter 'пристрої...'\n"
12473 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4642
12475 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12476 "block devices in the list C<devices>, and will ignore all other attached "
12481 #: ../fish/guestfish-actions.pod:3010 ../src/guestfs-actions.pod:4646
12483 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12484 "get LVM to ignore the duplicates, otherwise LVM can get confused. Note also "
12485 "there are two types of duplication possible: either cloned PVs/VGs which "
12486 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12487 "same name. In normal operation you cannot create this situation, but you "
12488 "can do it outside LVM, eg. by cloning disk images or by bit twiddling "
12489 "inside the LVM metadata."
12493 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4659
12494 msgid "You can filter whole block devices or individual partitions."
12498 #: ../fish/guestfish-actions.pod:3025 ../src/guestfs-actions.pod:4661
12500 "You cannot use this if any VG is currently in use (eg. contains a mounted "
12501 "filesystem), even if you are not filtering out that VG."
12505 #: ../fish/guestfish-actions.pod:3029
12510 #: ../fish/guestfish-actions.pod:3031
12513 " lvremove device\n"
12516 " lvremove пристрій\n"
12520 #: ../fish/guestfish-actions.pod:3033 ../src/guestfs-actions.pod:4675
12522 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12523 "LV, such as C</dev/VG/LV>."
12527 #: ../fish/guestfish-actions.pod:3036 ../src/guestfs-actions.pod:4678
12529 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12534 #: ../fish/guestfish-actions.pod:3039
12539 #: ../fish/guestfish-actions.pod:3041
12542 " lvrename logvol newlogvol\n"
12547 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4692
12548 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12552 #: ../fish/guestfish-actions.pod:3045
12557 #: ../fish/guestfish-actions.pod:3047
12560 " lvresize device mbytes\n"
12565 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4705
12567 "This resizes (expands or shrinks) an existing LVM logical volume to "
12568 "C<mbytes>. When reducing, data in the reduced part is lost."
12572 #: ../fish/guestfish-actions.pod:3053
12573 msgid "lvresize-free"
12574 msgstr "lvresize-free"
12577 #: ../fish/guestfish-actions.pod:3055
12580 " lvresize-free lv percent\n"
12585 #: ../fish/guestfish-actions.pod:3057 ../src/guestfs-actions.pod:4720
12587 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12588 "remaining free space in the volume group. Commonly you would call this with "
12589 "pc = 100 which expands the logical volume as much as possible, using all "
12590 "remaining free space in the volume group."
12594 #: ../fish/guestfish-actions.pod:3063
12599 #: ../fish/guestfish-actions.pod:3065
12609 #: ../fish/guestfish-actions.pod:3067 ../src/guestfs-actions.pod:4735
12611 "List all the logical volumes detected. This is the equivalent of the L<lvs"
12616 #: ../fish/guestfish-actions.pod:3070 ../src/guestfs-actions.pod:4738
12618 "This returns a list of the logical volume device names (eg. C</dev/"
12619 "VolGroup00/LogVol00>)."
12623 #: ../fish/guestfish-actions.pod:3073
12624 msgid "See also L</lvs-full>, L</list-filesystems>."
12625 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
12628 #: ../fish/guestfish-actions.pod:3075
12633 #: ../fish/guestfish-actions.pod:3077
12643 #: ../fish/guestfish-actions.pod:3079 ../src/guestfs-actions.pod:4754
12645 "List all the logical volumes detected. This is the equivalent of the L<lvs"
12646 "(8)> command. The \"full\" version includes all fields."
12650 #: ../fish/guestfish-actions.pod:3082
12655 #: ../fish/guestfish-actions.pod:3084
12661 " lvuuid пристрій\n"
12665 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4769
12666 msgid "This command returns the UUID of the LVM LV C<device>."
12670 #: ../fish/guestfish-actions.pod:3088
12672 msgstr "lxattrlist"
12675 #: ../fish/guestfish-actions.pod:3090
12678 " lxattrlist path 'names ...'\n"
12683 #: ../fish/guestfish-actions.pod:3092 ../src/guestfs-actions.pod:4783
12685 "This call allows you to get the extended attributes of multiple files, where "
12686 "all files are in the directory C<path>. C<names> is the list of files from "
12691 #: ../fish/guestfish-actions.pod:3096 ../src/guestfs-actions.pod:4787
12693 "On return you get a flat list of xattr structs which must be interpreted "
12694 "sequentially. The first xattr struct always has a zero-length C<attrname>. "
12695 "C<attrval> in this struct is zero-length to indicate there was an error "
12696 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12697 "number (the number of following attributes for this file, which could be C<"
12698 "\"0\">). Then after the first xattr struct are the zero or more attributes "
12699 "for the first named file. This repeats for the second and subsequent files."
12703 #: ../fish/guestfish-actions.pod:3106
12705 "This call is intended for programs that want to efficiently list a directory "
12706 "contents without making many round-trips. See also L</lstatlist> for a "
12707 "similarly efficient call for getting standard stats. Very long directory "
12708 "listings might cause the protocol message size to be exceeded, causing this "
12709 "call to fail. The caller must split up such requests into smaller groups of "
12714 #: ../fish/guestfish-actions.pod:3114
12719 #: ../fish/guestfish-actions.pod:3116
12729 #: ../fish/guestfish-actions.pod:3118 ../src/guestfs-actions.pod:4817
12730 msgid "Create a directory named C<path>."
12734 #: ../fish/guestfish-actions.pod:3120
12736 msgstr "mkdir-mode"
12739 #: ../fish/guestfish-actions.pod:3122
12742 " mkdir-mode path mode\n"
12745 " mkdir-mode шлях режим\n"
12749 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4830
12751 "This command creates a directory, setting the initial permissions of the "
12752 "directory to C<mode>."
12756 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4833
12758 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12759 "~umask & 01777>. Non-native-Linux filesystems may interpret the mode in "
12764 #: ../fish/guestfish-actions.pod:3131
12765 msgid "See also L</mkdir>, L</umask>"
12766 msgstr "Див. також L</mkdir>, L</umask>"
12769 #: ../fish/guestfish-actions.pod:3133
12774 #: ../fish/guestfish-actions.pod:3135
12784 #: ../fish/guestfish-actions.pod:3137 ../src/guestfs-actions.pod:4849
12786 "Create a directory named C<path>, creating any parent directories as "
12787 "necessary. This is like the C<mkdir -p> shell command."
12791 #: ../fish/guestfish-actions.pod:3140
12796 #: ../fish/guestfish-actions.pod:3142
12799 " mkdtemp template\n"
12802 " mkdtemp шаблон\n"
12806 #: ../fish/guestfish-actions.pod:3144 ../src/guestfs-actions.pod:4862
12808 "This command creates a temporary directory. The C<template> parameter "
12809 "should be a full pathname for the temporary directory name with the final "
12810 "six characters being \"XXXXXX\"."
12814 #: ../fish/guestfish-actions.pod:3149 ../src/guestfs-actions.pod:4867
12816 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12817 "being suitable for Windows filesystems."
12821 #: ../fish/guestfish-actions.pod:3152 ../src/guestfs-actions.pod:4870
12822 msgid "The name of the temporary directory that was created is returned."
12826 #: ../fish/guestfish-actions.pod:3155 ../src/guestfs-actions.pod:4873
12827 msgid "The temporary directory is created with mode 0700 and is owned by root."
12831 #: ../fish/guestfish-actions.pod:3158 ../src/guestfs-actions.pod:4876
12833 "The caller is responsible for deleting the temporary directory and its "
12834 "contents after use."
12838 #: ../fish/guestfish-actions.pod:3161 ../src/guestfs-actions.pod:4879
12839 msgid "See also: L<mkdtemp(3)>"
12840 msgstr "Див. також L<mkdtemp(3)>"
12843 #: ../fish/guestfish-actions.pod:3163
12848 #: ../fish/guestfish-actions.pod:3165
12851 " mke2fs-J fstype blocksize device journal\n"
12856 #: ../fish/guestfish-actions.pod:3167 ../src/guestfs-actions.pod:4895
12858 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12859 "C<journal>. It is equivalent to the command:"
12863 #: ../fish/guestfish-actions.pod:3171 ../src/guestfs-actions.pod:4899
12866 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12869 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
12873 #: ../fish/guestfish-actions.pod:3173
12874 msgid "See also L</mke2journal>."
12875 msgstr "Див. також L</mke2journal>."
12878 #: ../fish/guestfish-actions.pod:3175
12883 #: ../fish/guestfish-actions.pod:3177
12886 " mke2fs-JL fstype blocksize device label\n"
12891 #: ../fish/guestfish-actions.pod:3179 ../src/guestfs-actions.pod:4916
12893 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12894 "the journal labeled C<label>."
12898 #: ../fish/guestfish-actions.pod:3182
12899 msgid "See also L</mke2journal-L>."
12900 msgstr "Див. також L</mke2journal-L>."
12903 #: ../fish/guestfish-actions.pod:3184
12908 #: ../fish/guestfish-actions.pod:3186
12911 " mke2fs-JU fstype blocksize device uuid\n"
12916 #: ../fish/guestfish-actions.pod:3188 ../src/guestfs-actions.pod:4934
12918 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12919 "the journal with UUID C<uuid>."
12923 #: ../fish/guestfish-actions.pod:3191
12924 msgid "See also L</mke2journal-U>."
12925 msgstr "Див. також L</mke2journal-U>."
12928 #: ../fish/guestfish-actions.pod:3193
12929 msgid "mke2journal"
12930 msgstr "mke2journal"
12933 #: ../fish/guestfish-actions.pod:3195
12936 " mke2journal blocksize device\n"
12941 #: ../fish/guestfish-actions.pod:3197 ../src/guestfs-actions.pod:4950
12943 "This creates an ext2 external journal on C<device>. It is equivalent to the "
12948 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4953
12951 " mke2fs -O journal_dev -b blocksize device\n"
12956 #: ../fish/guestfish-actions.pod:3202
12957 msgid "mke2journal-L"
12958 msgstr "mke2journal-L"
12961 #: ../fish/guestfish-actions.pod:3204
12964 " mke2journal-L blocksize label device\n"
12969 #: ../fish/guestfish-actions.pod:3206 ../src/guestfs-actions.pod:4967
12970 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12974 #: ../fish/guestfish-actions.pod:3208
12975 msgid "mke2journal-U"
12976 msgstr "mke2journal-U"
12979 #: ../fish/guestfish-actions.pod:3210
12982 " mke2journal-U blocksize uuid device\n"
12987 #: ../fish/guestfish-actions.pod:3212 ../src/guestfs-actions.pod:4981
12988 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12992 #: ../fish/guestfish-actions.pod:3214
12997 #: ../fish/guestfish-actions.pod:3216
13000 " mkfifo mode path\n"
13003 " mkfifo режим шлях\n"
13007 #: ../fish/guestfish-actions.pod:3218
13009 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
13010 "is just a convenient wrapper around L</mknod>."
13014 #: ../fish/guestfish-actions.pod:3224
13019 #: ../fish/guestfish-actions.pod:3226
13022 " mkfs fstype device\n"
13025 " mkfs тип_файлової_системи пристрій\n"
13029 #: ../fish/guestfish-actions.pod:3228 ../src/guestfs-actions.pod:5011
13031 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13032 "volume). The filesystem type is C<fstype>, for example C<ext3>."
13036 #: ../fish/guestfish-actions.pod:3232
13041 #: ../fish/guestfish-actions.pod:3234
13044 " mkfs-b fstype blocksize device\n"
13049 #: ../fish/guestfish-actions.pod:3236
13051 "This call is similar to L</mkfs>, but it allows you to control the block "
13052 "size of the resulting filesystem. Supported block sizes depend on the "
13053 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13057 #: ../fish/guestfish-actions.pod:3241 ../fish/guestfish-actions.pod:3268
13058 #: ../src/guestfs-actions.pod:5039 ../src/guestfs-actions.pod:5077
13060 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13065 #: ../fish/guestfish-actions.pod:3244
13067 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
13072 #: ../fish/guestfish-actions.pod:3251
13077 #: ../fish/guestfish-actions.pod:3253
13080 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
13085 #: ../fish/guestfish-actions.pod:3255 ../src/guestfs-actions.pod:5064
13087 "This function creates a filesystem on C<device>. The filesystem type is "
13088 "C<fstype>, for example C<ext3>."
13092 #: ../fish/guestfish-actions.pod:3262 ../src/guestfs-actions.pod:5071
13093 msgid "C<blocksize>"
13094 msgstr "C<blocksize>"
13097 #: ../fish/guestfish-actions.pod:3264 ../src/guestfs-actions.pod:5073
13099 "The filesystem block size. Supported block sizes depend on the filesystem "
13100 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13105 #: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:5080
13106 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13110 #: ../fish/guestfish-actions.pod:3273 ../src/guestfs-actions.pod:5082
13111 msgid "C<features>"
13112 msgstr "C<features>"
13115 #: ../fish/guestfish-actions.pod:3275 ../src/guestfs-actions.pod:5084
13116 msgid "This passes the I<-O> parameter to the external mkfs program."
13120 #: ../fish/guestfish-actions.pod:3277 ../src/guestfs-actions.pod:5086
13122 "For certain filesystem types, this allows extra filesystem features to be "
13123 "selected. See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13127 #: ../fish/guestfish-actions.pod:3281 ../src/guestfs-actions.pod:5090
13129 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13134 #: ../fish/guestfish-actions.pod:3284 ../src/guestfs-actions.pod:5093
13139 #: ../fish/guestfish-actions.pod:3286 ../src/guestfs-actions.pod:5095
13141 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13142 "sets the inode size (only for ext2/3/4 filesystems at present)."
13146 #: ../fish/guestfish-actions.pod:3289 ../src/guestfs-actions.pod:5098
13147 msgid "C<sectorsize>"
13148 msgstr "C<sectorsize>"
13151 #: ../fish/guestfish-actions.pod:3291 ../src/guestfs-actions.pod:5100
13153 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13154 "sets sector size for ufs filesystem."
13158 #: ../fish/guestfish-actions.pod:3298
13159 msgid "mkmountpoint"
13160 msgstr "mkmountpoint"
13163 #: ../fish/guestfish-actions.pod:3300
13166 " mkmountpoint exemptpath\n"
13171 #: ../fish/guestfish-actions.pod:3302
13173 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13174 "to create extra mountpoints before mounting the first filesystem."
13178 #: ../fish/guestfish-actions.pod:3306 ../src/guestfs-actions.pod:5143
13180 "These calls are I<only> necessary in some very limited circumstances, mainly "
13181 "the case where you want to mount a mix of unrelated and/or read-only "
13182 "filesystems together."
13186 #: ../fish/guestfish-actions.pod:3310 ../src/guestfs-actions.pod:5147
13188 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13189 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13190 "inside that. You can unpack this as follows in guestfish:"
13194 #: ../fish/guestfish-actions.pod:3315 ../src/guestfs-actions.pod:5152
13197 " add-ro Fedora-11-i686-Live.iso\n"
13199 " mkmountpoint /cd\n"
13200 " mkmountpoint /sqsh\n"
13201 " mkmountpoint /ext3fs\n"
13202 " mount /dev/sda /cd\n"
13203 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13204 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13207 " add-ro Fedora-11-i686-Live.iso\n"
13209 " mkmountpoint /cd\n"
13210 " mkmountpoint /sqsh\n"
13211 " mkmountpoint /ext3fs\n"
13212 " mount /dev/sda /cd\n"
13213 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13214 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13218 #: ../fish/guestfish-actions.pod:3324 ../src/guestfs-actions.pod:5161
13219 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13223 #: ../fish/guestfish-actions.pod:3326
13225 "L</mkmountpoint> is not compatible with L</umount-all>. You may get "
13226 "unexpected errors if you try to mix these calls. It is safest to manually "
13227 "unmount filesystems and remove mountpoints after use."
13231 #: ../fish/guestfish-actions.pod:3330
13233 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13234 "for this to work for manual mountpoints, you must ensure that the innermost "
13235 "mountpoints have the longest pathnames, as in the example code above."
13239 #: ../fish/guestfish-actions.pod:3335 ../src/guestfs-actions.pod:5172
13241 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13245 #: ../fish/guestfish-actions.pod:3337
13247 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13248 "L</umount-all> to be called when the handle is closed which can also trigger "
13253 #: ../fish/guestfish-actions.pod:3341
13258 #: ../fish/guestfish-actions.pod:3343
13261 " mknod mode devmajor devminor path\n"
13266 #: ../fish/guestfish-actions.pod:3345 ../src/guestfs-actions.pod:5191
13268 "This call creates block or character special devices, or named pipes (FIFOs)."
13272 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5194
13274 "The C<mode> parameter should be the mode, using the standard constants. "
13275 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13276 "used when creating block and character special devices."
13280 #: ../fish/guestfish-actions.pod:3353
13282 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13283 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13284 "regular file). These constants are available in the standard Linux header "
13285 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13286 "wrappers around this command which bitwise OR in the appropriate constant "
13291 #: ../fish/guestfish-actions.pod:3363
13296 #: ../fish/guestfish-actions.pod:3365
13299 " mknod-b mode devmajor devminor path\n"
13304 #: ../fish/guestfish-actions.pod:3367
13306 "This call creates a block device node called C<path> with mode C<mode> and "
13307 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
13308 "wrapper around L</mknod>."
13312 #: ../fish/guestfish-actions.pod:3373
13317 #: ../fish/guestfish-actions.pod:3375
13320 " mknod-c mode devmajor devminor path\n"
13325 #: ../fish/guestfish-actions.pod:3377
13327 "This call creates a char device node called C<path> with mode C<mode> and "
13328 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
13329 "wrapper around L</mknod>."
13333 #: ../fish/guestfish-actions.pod:3383
13338 #: ../fish/guestfish-actions.pod:3385
13344 " mkswap пристрій\n"
13348 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5257
13349 msgid "Create a swap partition on C<device>."
13353 #: ../fish/guestfish-actions.pod:3389
13358 #: ../fish/guestfish-actions.pod:3391
13361 " mkswap-L label device\n"
13364 " mkswap-L мітка пристрій\n"
13368 #: ../fish/guestfish-actions.pod:3393 ../src/guestfs-actions.pod:5270
13369 msgid "Create a swap partition on C<device> with label C<label>."
13373 #: ../fish/guestfish-actions.pod:3395 ../src/guestfs-actions.pod:5272
13375 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13376 "sda>), just to a partition. This appears to be a limitation of the kernel "
13381 #: ../fish/guestfish-actions.pod:3399
13386 #: ../fish/guestfish-actions.pod:3401
13389 " mkswap-U uuid device\n"
13392 " mkswap-U uuid пристрій\n"
13396 #: ../fish/guestfish-actions.pod:3403 ../src/guestfs-actions.pod:5287
13397 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13401 #: ../fish/guestfish-actions.pod:3405
13402 msgid "mkswap-file"
13403 msgstr "mkswap-file"
13406 #: ../fish/guestfish-actions.pod:3407
13409 " mkswap-file path\n"
13412 " mkswap-file шлях\n"
13416 #: ../fish/guestfish-actions.pod:3409 ../src/guestfs-actions.pod:5299
13417 msgid "Create a swap file."
13418 msgstr "Створити файл резервної пам’яті."
13421 #: ../fish/guestfish-actions.pod:3411
13423 "This command just writes a swap file signature to an existing file. To "
13424 "create the file itself, use something like L</fallocate>."
13428 #: ../fish/guestfish-actions.pod:3414
13433 #: ../fish/guestfish-actions.pod:3416
13436 " modprobe modulename\n"
13439 " modprobe назва_модуля\n"
13443 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5314
13444 msgid "This loads a kernel module in the appliance."
13448 #: ../fish/guestfish-actions.pod:3420 ../src/guestfs-actions.pod:5316
13450 "The kernel module must have been whitelisted when libguestfs was built (see "
13451 "C<appliance/kmod.whitelist.in> in the source)."
13455 #: ../fish/guestfish-actions.pod:3423
13460 #: ../fish/guestfish-actions.pod:3425
13463 " mount device mountpoint\n"
13466 " mount пристрій точка_монтування\n"
13470 #: ../fish/guestfish-actions.pod:3427 ../src/guestfs-actions.pod:5330
13472 "Mount a guest disk at a position in the filesystem. Block devices are named "
13473 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
13474 "those block devices contain partitions, they will have the usual names (eg. "
13475 "C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used."
13479 #: ../fish/guestfish-actions.pod:3433 ../src/guestfs-actions.pod:5336
13481 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13482 "mounted on C</> before others can be mounted. Other filesystems can only be "
13483 "mounted on directories which already exist."
13487 #: ../fish/guestfish-actions.pod:3438 ../src/guestfs-actions.pod:5341
13489 "The mounted filesystem is writable, if we have sufficient permissions on the "
13490 "underlying device."
13494 #: ../fish/guestfish-actions.pod:3441
13496 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13497 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
13498 "problems for users. If your program might need to work with older versions "
13499 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13500 "first parameter if you don't want any options)."
13504 #: ../fish/guestfish-actions.pod:3448
13509 #: ../fish/guestfish-actions.pod:3450
13512 " mount-9p mounttag mountpoint [options:..]\n"
13517 #: ../fish/guestfish-actions.pod:3452 ../src/guestfs-actions.pod:5370
13519 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13524 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5373
13526 "If required, C<trans=virtio> will be automatically added to the options. "
13527 "Any other options required can be passed in the optional C<options> "
13532 #: ../fish/guestfish-actions.pod:3461
13534 msgstr "mount-loop"
13537 #: ../fish/guestfish-actions.pod:3463
13540 " mount-loop file mountpoint\n"
13545 #: ../fish/guestfish-actions.pod:3465 ../src/guestfs-actions.pod:5412
13547 "This command lets you mount C<file> (a filesystem image in a file) on a "
13548 "mount point. It is entirely equivalent to the command C<mount -o loop file "
13553 #: ../fish/guestfish-actions.pod:3469
13554 msgid "mount-options"
13555 msgstr "mount-options"
13558 #: ../fish/guestfish-actions.pod:3471
13561 " mount-options options device mountpoint\n"
13566 #: ../fish/guestfish-actions.pod:3473
13568 "This is the same as the L</mount> command, but it allows you to set the "
13569 "mount options as for the L<mount(8)> I<-o> flag."
13573 #: ../fish/guestfish-actions.pod:3477 ../src/guestfs-actions.pod:5432
13575 "If the C<options> parameter is an empty string, then no options are passed "
13576 "(all options default to whatever the filesystem uses)."
13580 #: ../fish/guestfish-actions.pod:3481
13585 #: ../fish/guestfish-actions.pod:3483
13588 " mount-ro device mountpoint\n"
13591 " mount-ro пристрій точка_монтування\n"
13595 #: ../fish/guestfish-actions.pod:3485
13597 "This is the same as the L</mount> command, but it mounts the filesystem with "
13598 "the read-only (I<-o ro>) flag."
13602 #: ../fish/guestfish-actions.pod:3488
13607 #: ../fish/guestfish-actions.pod:3490
13610 " mount-vfs options vfstype device mountpoint\n"
13615 #: ../fish/guestfish-actions.pod:3492
13617 "This is the same as the L</mount> command, but it allows you to set both the "
13618 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13622 #: ../fish/guestfish-actions.pod:3496
13623 msgid "mountpoints"
13624 msgstr "mountpoints"
13627 #: ../fish/guestfish-actions.pod:3498
13637 #: ../fish/guestfish-actions.pod:3500
13639 "This call is similar to L</mounts>. That call returns a list of devices. "
13640 "This one returns a hash table (map) of device name to directory where the "
13641 "device is mounted."
13645 #: ../fish/guestfish-actions.pod:3504
13650 #: ../fish/guestfish-actions.pod:3506
13660 #: ../fish/guestfish-actions.pod:3508 ../src/guestfs-actions.pod:5493
13662 "This returns the list of currently mounted filesystems. It returns the list "
13663 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13667 #: ../fish/guestfish-actions.pod:3511 ../src/guestfs-actions.pod:5496
13668 msgid "Some internal mounts are not shown."
13672 #: ../fish/guestfish-actions.pod:3513
13673 msgid "See also: L</mountpoints>"
13674 msgstr "Див. також L</mountpoints>"
13677 #: ../fish/guestfish-actions.pod:3515
13682 #: ../fish/guestfish-actions.pod:3517
13688 " mv джерело призначення\n"
13692 #: ../fish/guestfish-actions.pod:3519 ../src/guestfs-actions.pod:5513
13694 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13695 "destination filename or destination directory."
13699 #: ../fish/guestfish-actions.pod:3522
13700 msgid "ntfs-3g-probe"
13701 msgstr "ntfs-3g-probe"
13704 #: ../fish/guestfish-actions.pod:3524
13707 " ntfs-3g-probe true|false device\n"
13712 #: ../fish/guestfish-actions.pod:3526 ../src/guestfs-actions.pod:5527
13714 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13715 "C<device> for mountability. (Not all NTFS volumes can be mounted read-"
13716 "write, and some cannot be mounted at all)."
13720 #: ../fish/guestfish-actions.pod:3530 ../src/guestfs-actions.pod:5531
13722 "C<rw> is a boolean flag. Set it to true if you want to test if the volume "
13723 "can be mounted read-write. Set it to false if you want to test if the "
13724 "volume can be mounted read-only."
13728 #: ../fish/guestfish-actions.pod:3534 ../src/guestfs-actions.pod:5535
13730 "The return value is an integer which C<0> if the operation would succeed, or "
13731 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13735 #: ../fish/guestfish-actions.pod:3538
13737 msgstr "ntfsresize"
13740 #: ../fish/guestfish-actions.pod:3540
13743 " ntfsresize device\n"
13746 " ntfsresize пристрій\n"
13750 #: ../fish/guestfish-actions.pod:3542 ../fish/guestfish-actions.pod:3566
13751 #: ../src/guestfs-actions.pod:5556 ../src/guestfs-actions.pod:5588
13753 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13754 "size of the underlying device."
13758 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5559
13760 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13761 "consistency check (for safety). You have to boot into Windows to perform "
13762 "this check and clear this condition. Furthermore, ntfsresize refuses to "
13763 "resize filesystems which have been marked in this way. So in effect it is "
13764 "not possible to call ntfsresize multiple times on a single filesystem "
13765 "without booting into Windows between each resize."
13769 #: ../fish/guestfish-actions.pod:3553 ../fish/guestfish-actions.pod:3592
13770 #: ../src/guestfs-actions.pod:5567 ../src/guestfs-actions.pod:5614
13771 msgid "See also L<ntfsresize(8)>."
13772 msgstr "Див. також L<ntfsresize(8)>."
13775 #: ../fish/guestfish-actions.pod:3555 ../fish/guestfish-actions.pod:3603
13777 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13782 #: ../fish/guestfish-actions.pod:3562
13783 msgid "ntfsresize-opts"
13787 #: ../fish/guestfish-actions.pod:3564
13790 " ntfsresize-opts device [size:..] [force:..]\n"
13795 #: ../fish/guestfish-actions.pod:3575 ../src/guestfs-actions.pod:5597
13797 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
13798 "resized to fit the container (eg. partition)."
13802 #: ../fish/guestfish-actions.pod:3578 ../src/guestfs-actions.pod:5600
13807 #: ../fish/guestfish-actions.pod:3580 ../src/guestfs-actions.pod:5602
13809 "If this option is true, then force the resize of the filesystem even if the "
13810 "filesystem is marked as requiring a consistency check."
13814 #: ../fish/guestfish-actions.pod:3583
13816 "After the resize operation, the filesystem is always marked as requiring a "
13817 "consistency check (for safety). You have to boot into Windows to perform "
13818 "this check and clear this condition. If you I<don't> set the C<force> "
13819 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13820 "a single filesystem without booting into Windows between each resize."
13824 #: ../fish/guestfish-actions.pod:3596
13825 msgid "ntfsresize-size"
13826 msgstr "ntfsresize-size"
13829 #: ../fish/guestfish-actions.pod:3598
13832 " ntfsresize-size device size\n"
13837 #: ../fish/guestfish-actions.pod:3600
13839 "This command is the same as L</ntfsresize> except that it allows you to "
13840 "specify the new size (in bytes) explicitly."
13844 #: ../fish/guestfish-actions.pod:3610
13849 #: ../fish/guestfish-actions.pod:3612
13852 " part-add device prlogex startsect endsect\n"
13857 #: ../fish/guestfish-actions.pod:3614
13859 "This command adds a partition to C<device>. If there is no partition table "
13860 "on the device, call L</part-init> first."
13864 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5675
13866 "The C<prlogex> parameter is the type of partition. Normally you should pass "
13867 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13868 "C<logical>) and C<e> (or C<extended>) partition types."
13872 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5680
13874 "C<startsect> and C<endsect> are the start and end of the partition in "
13875 "I<sectors>. C<endsect> may be negative, which means it counts backwards "
13876 "from the end of the disk (C<-1> is the last sector)."
13880 #: ../fish/guestfish-actions.pod:3626
13882 "Creating a partition which covers the whole disk is not so easy. Use L</"
13883 "part-disk> to do that."
13887 #: ../fish/guestfish-actions.pod:3629
13892 #: ../fish/guestfish-actions.pod:3631
13895 " part-del device partnum\n"
13900 #: ../fish/guestfish-actions.pod:3633 ../src/guestfs-actions.pod:5698
13901 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13905 #: ../fish/guestfish-actions.pod:3635 ../src/guestfs-actions.pod:5700
13907 "Note that in the case of MBR partitioning, deleting an extended partition "
13908 "also deletes any logical partitions it contains."
13912 #: ../fish/guestfish-actions.pod:3639
13917 #: ../fish/guestfish-actions.pod:3641
13920 " part-disk device parttype\n"
13923 " part-disk пристрій тип_розділу\n"
13927 #: ../fish/guestfish-actions.pod:3643
13929 "This command is simply a combination of L</part-init> followed by L</part-"
13930 "add> to create a single primary partition covering the whole disk."
13934 #: ../fish/guestfish-actions.pod:3647
13936 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13937 "possible values are described in L</part-init>."
13941 #: ../fish/guestfish-actions.pod:3653
13942 msgid "part-get-bootable"
13943 msgstr "part-get-bootable"
13946 #: ../fish/guestfish-actions.pod:3655
13949 " part-get-bootable device partnum\n"
13954 #: ../fish/guestfish-actions.pod:3657 ../src/guestfs-actions.pod:5736
13956 "This command returns true if the partition C<partnum> on C<device> has the "
13957 "bootable flag set."
13961 #: ../fish/guestfish-actions.pod:3660
13962 msgid "See also L</part-set-bootable>."
13963 msgstr "Див. також L</part-set-bootable>."
13966 #: ../fish/guestfish-actions.pod:3662
13967 msgid "part-get-mbr-id"
13968 msgstr "part-get-mbr-id"
13971 #: ../fish/guestfish-actions.pod:3664
13974 " part-get-mbr-id device partnum\n"
13979 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5752
13981 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13982 "partition C<partnum>."
13986 #: ../fish/guestfish-actions.pod:3669 ../fish/guestfish-actions.pod:3813
13988 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
13989 "undefined results for other partition table types (see L</part-get-"
13994 #: ../fish/guestfish-actions.pod:3673
13995 msgid "part-get-parttype"
13996 msgstr "part-get-parttype"
13999 #: ../fish/guestfish-actions.pod:3675
14002 " part-get-parttype device\n"
14005 " part-get-parttype пристрій\n"
14009 #: ../fish/guestfish-actions.pod:3677 ../src/guestfs-actions.pod:5769
14011 "This command examines the partition table on C<device> and returns the "
14012 "partition table type (format) being used."
14016 #: ../fish/guestfish-actions.pod:3680
14018 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14019 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
14020 "possible, although unusual. See L</part-init> for a full list."
14024 #: ../fish/guestfish-actions.pod:3685
14029 #: ../fish/guestfish-actions.pod:3687
14032 " part-init device parttype\n"
14037 #: ../fish/guestfish-actions.pod:3689 ../src/guestfs-actions.pod:5789
14039 "This creates an empty partition table on C<device> of one of the partition "
14040 "types listed below. Usually C<parttype> should be either C<msdos> or C<gpt> "
14041 "(for large disks)."
14045 #: ../fish/guestfish-actions.pod:3693
14047 "Initially there are no partitions. Following this, you should call L</part-"
14048 "add> for each partition required."
14052 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5796
14053 msgid "Possible values for C<parttype> are:"
14057 #: ../fish/guestfish-actions.pod:3700 ../src/guestfs-actions.pod:5800
14062 #: ../fish/guestfish-actions.pod:3702 ../src/guestfs-actions.pod:5802
14067 #: ../fish/guestfish-actions.pod:3704 ../src/guestfs-actions.pod:5804
14068 msgid "Intel EFI / GPT partition table."
14072 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5806
14074 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14075 "and Intel-based Mac OS X. It also has limited backwards compatibility with "
14076 "the C<mbr> format."
14080 #: ../fish/guestfish-actions.pod:3710 ../src/guestfs-actions.pod:5810
14085 #: ../fish/guestfish-actions.pod:3712 ../src/guestfs-actions.pod:5812
14090 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5814
14092 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14093 "Windows. This partition type will B<only> work for device sizes up to 2 "
14094 "TB. For large disks we recommend using C<gpt>."
14098 #: ../fish/guestfish-actions.pod:3721 ../src/guestfs-actions.pod:5821
14100 "Other partition table types that may work but are not supported include:"
14104 #: ../fish/guestfish-actions.pod:3726 ../src/guestfs-actions.pod:5826
14109 #: ../fish/guestfish-actions.pod:3728 ../src/guestfs-actions.pod:5828
14110 msgid "AIX disk labels."
14111 msgstr "Мітки дисків AIX."
14114 #: ../fish/guestfish-actions.pod:3730 ../src/guestfs-actions.pod:5830
14119 #: ../fish/guestfish-actions.pod:3732 ../src/guestfs-actions.pod:5832
14124 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5834
14125 msgid "Amiga \"Rigid Disk Block\" format."
14126 msgstr "Формат \"Rigid Disk Block\" Amiga."
14129 #: ../fish/guestfish-actions.pod:3736 ../src/guestfs-actions.pod:5836
14134 #: ../fish/guestfish-actions.pod:3738 ../src/guestfs-actions.pod:5838
14135 msgid "BSD disk labels."
14136 msgstr "Мітки дисків BSD."
14139 #: ../fish/guestfish-actions.pod:3740 ../src/guestfs-actions.pod:5840
14144 #: ../fish/guestfish-actions.pod:3742 ../src/guestfs-actions.pod:5842
14145 msgid "DASD, used on IBM mainframes."
14146 msgstr "DASD, використовувалися у мейнфреймах IBM."
14149 #: ../fish/guestfish-actions.pod:3744 ../src/guestfs-actions.pod:5844
14154 #: ../fish/guestfish-actions.pod:3746 ../src/guestfs-actions.pod:5846
14155 msgid "MIPS/SGI volumes."
14156 msgstr "Томи MIPS/SGI."
14159 #: ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5848
14164 #: ../fish/guestfish-actions.pod:3750 ../src/guestfs-actions.pod:5850
14165 msgid "Old Mac partition format. Modern Macs use C<gpt>."
14166 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
14169 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5852
14174 #: ../fish/guestfish-actions.pod:3754 ../src/guestfs-actions.pod:5854
14175 msgid "NEC PC-98 format, common in Japan apparently."
14176 msgstr "Формат NEC PC-98, поширений у Японії."
14179 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5856
14184 #: ../fish/guestfish-actions.pod:3758 ../src/guestfs-actions.pod:5858
14185 msgid "Sun disk labels."
14186 msgstr "Мітки дисків Sun."
14189 #: ../fish/guestfish-actions.pod:3762
14194 #: ../fish/guestfish-actions.pod:3764
14197 " part-list device\n"
14200 " part-list device\n"
14204 #: ../fish/guestfish-actions.pod:3766 ../src/guestfs-actions.pod:5872
14206 "This command parses the partition table on C<device> and returns the list of "
14207 "partitions found."
14211 #: ../fish/guestfish-actions.pod:3769 ../src/guestfs-actions.pod:5875
14212 msgid "The fields in the returned structure are:"
14216 #: ../fish/guestfish-actions.pod:3773 ../src/guestfs-actions.pod:5879
14217 msgid "B<part_num>"
14218 msgstr "B<part_num>"
14221 #: ../fish/guestfish-actions.pod:3775 ../src/guestfs-actions.pod:5881
14222 msgid "Partition number, counting from 1."
14226 #: ../fish/guestfish-actions.pod:3777 ../src/guestfs-actions.pod:5883
14227 msgid "B<part_start>"
14228 msgstr "B<part_start>"
14231 #: ../fish/guestfish-actions.pod:3779
14233 "Start of the partition I<in bytes>. To get sectors you have to divide by "
14234 "the device's sector size, see L</blockdev-getss>."
14238 #: ../fish/guestfish-actions.pod:3782 ../src/guestfs-actions.pod:5888
14239 msgid "B<part_end>"
14240 msgstr "B<part_end>"
14243 #: ../fish/guestfish-actions.pod:3784 ../src/guestfs-actions.pod:5890
14244 msgid "End of the partition in bytes."
14248 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5892
14249 msgid "B<part_size>"
14250 msgstr "B<part_size>"
14253 #: ../fish/guestfish-actions.pod:3788 ../src/guestfs-actions.pod:5894
14254 msgid "Size of the partition in bytes."
14258 #: ../fish/guestfish-actions.pod:3792
14259 msgid "part-set-bootable"
14260 msgstr "part-set-bootable"
14263 #: ../fish/guestfish-actions.pod:3794
14266 " part-set-bootable device partnum true|false\n"
14271 #: ../fish/guestfish-actions.pod:3796 ../src/guestfs-actions.pod:5912
14273 "This sets the bootable flag on partition numbered C<partnum> on device "
14274 "C<device>. Note that partitions are numbered from 1."
14278 #: ../fish/guestfish-actions.pod:3799 ../src/guestfs-actions.pod:5915
14280 "The bootable flag is used by some operating systems (notably Windows) to "
14281 "determine which partition to boot from. It is by no means universally "
14286 #: ../fish/guestfish-actions.pod:3803
14287 msgid "part-set-mbr-id"
14288 msgstr "part-set-mbr-id"
14291 #: ../fish/guestfish-actions.pod:3805
14294 " part-set-mbr-id device partnum idbyte\n"
14299 #: ../fish/guestfish-actions.pod:3807 ../src/guestfs-actions.pod:5931
14301 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14302 "C<partnum> to C<idbyte>. Note that the type bytes quoted in most "
14303 "documentation are in fact hexadecimal numbers, but usually documented "
14304 "without any leading \"0x\" which might be confusing."
14308 #: ../fish/guestfish-actions.pod:3817
14309 msgid "part-set-name"
14310 msgstr "part-set-name"
14313 #: ../fish/guestfish-actions.pod:3819
14316 " part-set-name device partnum name\n"
14321 #: ../fish/guestfish-actions.pod:3821 ../src/guestfs-actions.pod:5953
14323 "This sets the partition name on partition numbered C<partnum> on device "
14324 "C<device>. Note that partitions are numbered from 1."
14328 #: ../fish/guestfish-actions.pod:3824 ../src/guestfs-actions.pod:5956
14330 "The partition name can only be set on certain types of partition table. "
14331 "This works on C<gpt> but not on C<mbr> partitions."
14335 #: ../fish/guestfish-actions.pod:3827
14336 msgid "part-to-dev"
14337 msgstr "part-to-dev"
14340 #: ../fish/guestfish-actions.pod:3829
14343 " part-to-dev partition\n"
14346 " part-to-dev розділ\n"
14350 #: ../fish/guestfish-actions.pod:3831 ../src/guestfs-actions.pod:5969
14352 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14353 "partition number, returning the device name (eg. \"/dev/sdb\")."
14357 #: ../fish/guestfish-actions.pod:3835 ../fish/guestfish-actions.pod:3847
14359 "The named partition must exist, for example as a string returned from L</"
14360 "list-partitions>."
14364 #: ../fish/guestfish-actions.pod:3838
14366 #| msgid "See also: L</part-add>"
14367 msgid "See also L</part-to-partnum>."
14368 msgstr "Див. також L</part-add>"
14371 #: ../fish/guestfish-actions.pod:3840
14373 #| msgid "part-get-parttype"
14374 msgid "part-to-partnum"
14375 msgstr "part-get-parttype"
14378 #: ../fish/guestfish-actions.pod:3842
14381 #| " part-to-dev partition\n"
14384 " part-to-partnum partition\n"
14387 " part-to-dev розділ\n"
14391 #: ../fish/guestfish-actions.pod:3844 ../src/guestfs-actions.pod:5989
14393 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
14394 "partition number (eg. C<1>)."
14398 #: ../fish/guestfish-actions.pod:3850
14400 #| msgid "See also: L</part-add>"
14401 msgid "See also L</part-to-dev>."
14402 msgstr "Див. також L</part-add>"
14405 #: ../fish/guestfish-actions.pod:3852
14406 msgid "ping-daemon"
14407 msgstr "ping-daemon"
14410 #: ../fish/guestfish-actions.pod:3854
14420 #: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:6004
14422 "This is a test probe into the guestfs daemon running inside the qemu "
14423 "subprocess. Calling this function checks that the daemon responds to the "
14424 "ping message, without affecting the daemon or attached block device(s) in "
14429 #: ../fish/guestfish-actions.pod:3861
14434 #: ../fish/guestfish-actions.pod:3863
14437 " pread path count offset\n"
14442 #: ../fish/guestfish-actions.pod:3865 ../src/guestfs-actions.pod:6022
14444 "This command lets you read part of a file. It reads C<count> bytes of the "
14445 "file, starting at C<offset>, from file C<path>."
14449 #: ../fish/guestfish-actions.pod:3868 ../fish/guestfish-actions.pod:3883
14450 #: ../src/guestfs-actions.pod:6025 ../src/guestfs-actions.pod:6051
14452 "This may read fewer bytes than requested. For further details see the "
14453 "L<pread(2)> system call."
14457 #: ../fish/guestfish-actions.pod:3871
14458 msgid "See also L</pwrite>, L</pread-device>."
14459 msgstr "Див. також L</pwrite>, L</pread-device>."
14462 #: ../fish/guestfish-actions.pod:3876
14463 msgid "pread-device"
14464 msgstr "pread-device"
14467 #: ../fish/guestfish-actions.pod:3878
14470 " pread-device device count offset\n"
14475 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:6048
14477 "This command lets you read part of a file. It reads C<count> bytes of "
14478 "C<device>, starting at C<offset>."
14482 #: ../fish/guestfish-actions.pod:3886
14483 msgid "See also L</pread>."
14484 msgstr "Див. також L</pread>."
14487 #: ../fish/guestfish-actions.pod:3891
14492 #: ../fish/guestfish-actions.pod:3893
14495 " pvcreate device\n"
14498 " pvcreate пристрій\n"
14502 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:6071
14504 "This creates an LVM physical volume on the named C<device>, where C<device> "
14505 "should usually be a partition name such as C</dev/sda1>."
14509 #: ../fish/guestfish-actions.pod:3899
14514 #: ../fish/guestfish-actions.pod:3901
14517 " pvremove device\n"
14520 " pvremove пристрій\n"
14524 #: ../fish/guestfish-actions.pod:3903 ../src/guestfs-actions.pod:6085
14526 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14531 #: ../fish/guestfish-actions.pod:3906 ../src/guestfs-actions.pod:6088
14533 "The implementation uses the C<pvremove> command which refuses to wipe "
14534 "physical volumes that contain any volume groups, so you have to remove those "
14539 #: ../fish/guestfish-actions.pod:3910
14544 #: ../fish/guestfish-actions.pod:3912
14547 " pvresize device\n"
14550 " pvresize пристрій\n"
14554 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:6102
14556 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14557 "the new size of the underlying device."
14561 #: ../fish/guestfish-actions.pod:3917
14562 msgid "pvresize-size"
14563 msgstr "pvresize-size"
14566 #: ../fish/guestfish-actions.pod:3919
14569 " pvresize-size device size\n"
14574 #: ../fish/guestfish-actions.pod:3921
14576 "This command is the same as L</pvresize> except that it allows you to "
14577 "specify the new size (in bytes) explicitly."
14581 #: ../fish/guestfish-actions.pod:3924
14586 #: ../fish/guestfish-actions.pod:3926
14596 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6128
14598 "List all the physical volumes detected. This is the equivalent of the L<pvs"
14603 #: ../fish/guestfish-actions.pod:3931 ../src/guestfs-actions.pod:6131
14605 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14610 #: ../fish/guestfish-actions.pod:3934
14611 msgid "See also L</pvs-full>."
14612 msgstr "Див. також L</pvs-full>."
14615 #: ../fish/guestfish-actions.pod:3936
14620 #: ../fish/guestfish-actions.pod:3938
14630 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6147
14632 "List all the physical volumes detected. This is the equivalent of the L<pvs"
14633 "(8)> command. The \"full\" version includes all fields."
14637 #: ../fish/guestfish-actions.pod:3943
14642 #: ../fish/guestfish-actions.pod:3945
14648 " pvuuid пристрій\n"
14652 #: ../fish/guestfish-actions.pod:3947 ../src/guestfs-actions.pod:6162
14653 msgid "This command returns the UUID of the LVM PV C<device>."
14657 #: ../fish/guestfish-actions.pod:3949
14662 #: ../fish/guestfish-actions.pod:3951
14665 " pwrite path content offset\n"
14670 #: ../fish/guestfish-actions.pod:3953 ../src/guestfs-actions.pod:6178
14672 "This command writes to part of a file. It writes the data buffer C<content> "
14673 "to the file C<path> starting at offset C<offset>."
14677 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6181
14679 "This command implements the L<pwrite(2)> system call, and like that system "
14680 "call it may not write the full data requested. The return value is the "
14681 "number of bytes that were actually written to the file. This could even be "
14682 "0, although short writes are unlikely for regular files in ordinary "
14687 #: ../fish/guestfish-actions.pod:3962
14688 msgid "See also L</pread>, L</pwrite-device>."
14689 msgstr "Див. також L</pread>, L</pwrite-device>."
14692 #: ../fish/guestfish-actions.pod:3967
14693 msgid "pwrite-device"
14694 msgstr "pwrite-device"
14697 #: ../fish/guestfish-actions.pod:3969
14700 " pwrite-device device content offset\n"
14705 #: ../fish/guestfish-actions.pod:3971 ../src/guestfs-actions.pod:6205
14707 "This command writes to part of a device. It writes the data buffer "
14708 "C<content> to C<device> starting at offset C<offset>."
14712 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6208
14714 "This command implements the L<pwrite(2)> system call, and like that system "
14715 "call it may not write the full data requested (although short writes to disk "
14716 "devices and partitions are probably impossible with standard Linux kernels)."
14720 #: ../fish/guestfish-actions.pod:3979
14721 msgid "See also L</pwrite>."
14722 msgstr "Див. також L</pwrite>."
14725 #: ../fish/guestfish-actions.pod:3984
14730 #: ../fish/guestfish-actions.pod:3986
14733 " read-file path\n"
14736 " read-file шлях\n"
14740 #: ../fish/guestfish-actions.pod:3988 ../src/guestfs-actions.pod:6229
14741 msgid "This calls returns the contents of the file C<path> as a buffer."
14745 #: ../fish/guestfish-actions.pod:3991
14747 "Unlike L</cat>, this function can correctly handle files that contain "
14748 "embedded ASCII NUL characters. However unlike L</download>, this function "
14749 "is limited in the total size of file that can be handled."
14753 #: ../fish/guestfish-actions.pod:3999
14755 msgstr "read-lines"
14758 #: ../fish/guestfish-actions.pod:4001
14761 " read-lines path\n"
14764 " read-lines шлях\n"
14768 #: ../fish/guestfish-actions.pod:4005 ../src/guestfs-actions.pod:6254
14770 "The file contents are returned as a list of lines. Trailing C<LF> and "
14771 "C<CRLF> character sequences are I<not> returned."
14775 #: ../fish/guestfish-actions.pod:4008
14777 "Note that this function cannot correctly handle binary files (specifically, "
14778 "files containing C<\\0> character which is treated as end of line). For "
14779 "those you need to use the L</read-file> function which has a more complex "
14784 #: ../fish/guestfish-actions.pod:4013
14789 #: ../fish/guestfish-actions.pod:4015
14795 " readdir каталог\n"
14799 #: ../fish/guestfish-actions.pod:4017 ../src/guestfs-actions.pod:6274
14800 msgid "This returns the list of directory entries in directory C<dir>."
14804 #: ../fish/guestfish-actions.pod:4019 ../src/guestfs-actions.pod:6276
14806 "All entries in the directory are returned, including C<.> and C<..>. The "
14807 "entries are I<not> sorted, but returned in the same order as the underlying "
14812 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6280
14814 "Also this call returns basic file type information about each file. The "
14815 "C<ftyp> field will contain one of the following characters:"
14819 #: ../fish/guestfish-actions.pod:4028 ../src/guestfs-actions.pod:6285
14824 #: ../fish/guestfish-actions.pod:4030 ../src/guestfs-actions.pod:6287
14825 msgid "Block special"
14826 msgstr "Блоковий особливий"
14829 #: ../fish/guestfish-actions.pod:4032 ../src/guestfs-actions.pod:6289
14834 #: ../fish/guestfish-actions.pod:4034 ../src/guestfs-actions.pod:6291
14835 msgid "Char special"
14836 msgstr "Символьний особливий"
14839 #: ../fish/guestfish-actions.pod:4036 ../src/guestfs-actions.pod:6293
14844 #: ../fish/guestfish-actions.pod:4038 ../src/guestfs-actions.pod:6295
14849 #: ../fish/guestfish-actions.pod:4040 ../src/guestfs-actions.pod:6297
14854 #: ../fish/guestfish-actions.pod:4042 ../src/guestfs-actions.pod:6299
14855 msgid "FIFO (named pipe)"
14856 msgstr "FIFO (іменований канал)"
14859 #: ../fish/guestfish-actions.pod:4044 ../src/guestfs-actions.pod:6301
14864 #: ../fish/guestfish-actions.pod:4046 ../src/guestfs-actions.pod:6303
14865 msgid "Symbolic link"
14866 msgstr "Символічне посилання"
14869 #: ../fish/guestfish-actions.pod:4048 ../src/guestfs-actions.pod:6305
14874 #: ../fish/guestfish-actions.pod:4050 ../src/guestfs-actions.pod:6307
14875 msgid "Regular file"
14876 msgstr "Звичайний файл"
14879 #: ../fish/guestfish-actions.pod:4052 ../src/guestfs-actions.pod:6309
14884 #: ../fish/guestfish-actions.pod:4054 ../src/guestfs-actions.pod:6311
14889 #: ../fish/guestfish-actions.pod:4056 ../src/guestfs-actions.pod:6313
14894 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6315
14895 msgid "Unknown file type"
14896 msgstr "Невідомий тип файла"
14899 #: ../fish/guestfish-actions.pod:4060 ../src/guestfs-actions.pod:6317
14904 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6319
14906 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14910 #: ../fish/guestfish-actions.pod:4067
14912 "This function is primarily intended for use by programs. To get a simple "
14913 "list of names, use L</ls>. To get a printable directory for human "
14914 "consumption, use L</ll>."
14918 #: ../fish/guestfish-actions.pod:4071
14923 #: ../fish/guestfish-actions.pod:4073
14933 #: ../fish/guestfish-actions.pod:4075 ../src/guestfs-actions.pod:6340
14934 msgid "This command reads the target of a symbolic link."
14938 #: ../fish/guestfish-actions.pod:4077
14939 msgid "readlinklist"
14940 msgstr "readlinklist"
14943 #: ../fish/guestfish-actions.pod:4079
14946 " readlinklist path 'names ...'\n"
14951 #: ../fish/guestfish-actions.pod:4081 ../src/guestfs-actions.pod:6354
14953 "This call allows you to do a C<readlink> operation on multiple files, where "
14954 "all files are in the directory C<path>. C<names> is the list of files from "
14959 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6358
14961 "On return you get a list of strings, with a one-to-one correspondence to the "
14962 "C<names> list. Each string is the value of the symbolic link."
14966 #: ../fish/guestfish-actions.pod:4089 ../src/guestfs-actions.pod:6362
14968 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14969 "result string is the empty string C<\"\">. However the whole operation is "
14970 "completed even if there were C<readlink(2)> errors, and so you can call this "
14971 "function with names where you don't know if they are symbolic links already "
14972 "(albeit slightly less efficient)."
14976 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6369
14978 "This call is intended for programs that want to efficiently list a directory "
14979 "contents without making many round-trips. Very long directory listings "
14980 "might cause the protocol message size to be exceeded, causing this call to "
14981 "fail. The caller must split up such requests into smaller groups of names."
14985 #: ../fish/guestfish-actions.pod:4103
14990 #: ../fish/guestfish-actions.pod:4105
15000 #: ../fish/guestfish-actions.pod:4107 ../src/guestfs-actions.pod:6388
15002 "Return the canonicalized absolute pathname of C<path>. The returned path "
15003 "has no C<.>, C<..> or symbolic link path elements."
15007 #: ../fish/guestfish-actions.pod:4110
15008 msgid "removexattr"
15009 msgstr "removexattr"
15012 #: ../fish/guestfish-actions.pod:4112
15015 " removexattr xattr path\n"
15020 #: ../fish/guestfish-actions.pod:4114 ../src/guestfs-actions.pod:6403
15022 "This call removes the extended attribute named C<xattr> of the file C<path>."
15026 #: ../fish/guestfish-actions.pod:4117
15027 msgid "See also: L</lremovexattr>, L<attr(5)>."
15028 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
15031 #: ../fish/guestfish-actions.pod:4119
15036 #: ../fish/guestfish-actions.pod:4121
15039 " resize2fs device\n"
15042 " resize2fs пристрій\n"
15046 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6418
15048 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15049 "underlying device."
15053 #: ../fish/guestfish-actions.pod:4126
15055 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
15056 "before calling this command. For unknown reasons C<resize2fs> sometimes "
15057 "gives an error about this and sometimes not. In any case, it is always safe "
15058 "to call L</e2fsck-f> before calling this function."
15062 #: ../fish/guestfish-actions.pod:4132
15063 msgid "resize2fs-M"
15064 msgstr "resize2fs-M"
15067 #: ../fish/guestfish-actions.pod:4134
15070 " resize2fs-M device\n"
15073 " resize2fs-M пристрій\n"
15077 #: ../fish/guestfish-actions.pod:4136
15079 "This command is the same as L</resize2fs>, but the filesystem is resized to "
15080 "its minimum size. This works like the I<-M> option to the C<resize2fs> "
15085 #: ../fish/guestfish-actions.pod:4140
15087 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
15088 "and read the C<Block size> and C<Block count> values. These two numbers, "
15089 "multiplied together, give the resulting size of the minimal filesystem in "
15094 #: ../fish/guestfish-actions.pod:4145
15095 msgid "resize2fs-size"
15096 msgstr "resize2fs-size"
15099 #: ../fish/guestfish-actions.pod:4147
15102 " resize2fs-size device size\n"
15107 #: ../fish/guestfish-actions.pod:4149
15109 "This command is the same as L</resize2fs> except that it allows you to "
15110 "specify the new size (in bytes) explicitly."
15114 #: ../fish/guestfish-actions.pod:4152
15119 #: ../fish/guestfish-actions.pod:4154
15129 #: ../fish/guestfish-actions.pod:4156 ../src/guestfs-actions.pod:6470
15130 msgid "Remove the single file C<path>."
15134 #: ../fish/guestfish-actions.pod:4158
15139 #: ../fish/guestfish-actions.pod:4160
15149 #: ../fish/guestfish-actions.pod:4162 ../src/guestfs-actions.pod:6482
15151 "Remove the file or directory C<path>, recursively removing the contents if "
15152 "its a directory. This is like the C<rm -rf> shell command."
15156 #: ../fish/guestfish-actions.pod:4166
15161 #: ../fish/guestfish-actions.pod:4168
15171 #: ../fish/guestfish-actions.pod:4170 ../src/guestfs-actions.pod:6496
15172 msgid "Remove the single directory C<path>."
15176 #: ../fish/guestfish-actions.pod:4172
15177 msgid "rmmountpoint"
15178 msgstr "rmmountpoint"
15181 #: ../fish/guestfish-actions.pod:4174
15184 " rmmountpoint exemptpath\n"
15189 #: ../fish/guestfish-actions.pod:4176
15191 "This calls removes a mountpoint that was previously created with L</"
15192 "mkmountpoint>. See L</mkmountpoint> for full details."
15196 #: ../fish/guestfish-actions.pod:4180
15197 msgid "scrub-device"
15198 msgstr "scrub-device"
15201 #: ../fish/guestfish-actions.pod:4182
15204 " scrub-device device\n"
15207 " scrub-device пристрій\n"
15211 #: ../fish/guestfish-actions.pod:4184 ../src/guestfs-actions.pod:6522
15213 "This command writes patterns over C<device> to make data retrieval more "
15218 #: ../fish/guestfish-actions.pod:4187 ../fish/guestfish-actions.pod:4202
15219 #: ../fish/guestfish-actions.pod:4215 ../src/guestfs-actions.pod:6525
15220 #: ../src/guestfs-actions.pod:6546 ../src/guestfs-actions.pod:6565
15222 "It is an interface to the L<scrub(1)> program. See that manual page for "
15227 #: ../fish/guestfish-actions.pod:4193
15229 msgstr "scrub-file"
15232 #: ../fish/guestfish-actions.pod:4195
15235 " scrub-file file\n"
15238 " scrub-file файл\n"
15242 #: ../fish/guestfish-actions.pod:4197 ../src/guestfs-actions.pod:6541
15244 "This command writes patterns over a file to make data retrieval more "
15249 #: ../fish/guestfish-actions.pod:4200 ../src/guestfs-actions.pod:6544
15250 msgid "The file is I<removed> after scrubbing."
15254 #: ../fish/guestfish-actions.pod:4205
15255 msgid "scrub-freespace"
15256 msgstr "scrub-freespace"
15259 #: ../fish/guestfish-actions.pod:4207
15262 " scrub-freespace dir\n"
15265 " scrub-freespace каталог\n"
15269 #: ../fish/guestfish-actions.pod:4209
15271 "This command creates the directory C<dir> and then fills it with files until "
15272 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15273 "deletes them. The intention is to scrub any free space on the partition "
15274 "containing C<dir>."
15278 #: ../fish/guestfish-actions.pod:4218
15280 msgstr "set-append"
15283 #: ../fish/guestfish-actions.pod:4220
15288 #: ../fish/guestfish-actions.pod:4222
15291 " set-append append\n"
15296 #: ../fish/guestfish-actions.pod:4224 ../src/guestfs-actions.pod:6578
15298 "This function is used to add additional options to the guest kernel command "
15303 #: ../fish/guestfish-actions.pod:4227 ../src/guestfs-actions.pod:6581
15305 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15306 "environment variable."
15310 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6584
15312 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15313 "(libguestfs always adds a few of its own)."
15317 #: ../fish/guestfish-actions.pod:4233
15318 msgid "set-attach-method"
15319 msgstr "set-attach-method"
15322 #: ../fish/guestfish-actions.pod:4235
15323 msgid "attach-method"
15327 #: ../fish/guestfish-actions.pod:4237
15330 " set-attach-method attachmethod\n"
15335 #: ../fish/guestfish-actions.pod:4239 ../src/guestfs-actions.pod:6597
15337 "Set the method that libguestfs uses to connect to the back end guestfsd "
15338 "daemon. Possible methods are:"
15342 #: ../fish/guestfish-actions.pod:4244 ../src/guestfs-actions.pod:6602
15343 #: ../src/guestfs.pod:2916
15344 msgid "C<appliance>"
15345 msgstr "C<appliance>"
15348 #: ../fish/guestfish-actions.pod:4246 ../src/guestfs-actions.pod:6604
15350 "Launch an appliance and connect to it. This is the ordinary method and the "
15355 #: ../fish/guestfish-actions.pod:4249 ../src/guestfs-actions.pod:6607
15356 msgid "C<unix:I<path>>"
15357 msgstr "C<unix:I<шлях>>"
15360 #: ../fish/guestfish-actions.pod:4251 ../src/guestfs-actions.pod:6609
15361 msgid "Connect to the Unix domain socket I<path>."
15362 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
15365 #: ../fish/guestfish-actions.pod:4253 ../src/guestfs-actions.pod:6611
15367 "This method lets you connect to an existing daemon or (using virtio-serial) "
15368 "to a live guest. For more information, see L<guestfs(3)/ATTACHING TO "
15369 "RUNNING DAEMONS>."
15373 #: ../fish/guestfish-actions.pod:4259
15374 msgid "set-autosync"
15375 msgstr "set-autosync"
15378 #: ../fish/guestfish-actions.pod:4261
15383 #: ../fish/guestfish-actions.pod:4263
15386 " set-autosync true|false\n"
15389 " set-autosync true|false\n"
15393 #: ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:6627
15395 "If C<autosync> is true, this enables autosync. Libguestfs will make a best "
15396 "effort attempt to make filesystems consistent and synchronized when the "
15397 "handle is closed (also if the program exits without closing handles)."
15401 #: ../fish/guestfish-actions.pod:4270 ../src/guestfs-actions.pod:6632
15403 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15404 "disabled by default)."
15408 #: ../fish/guestfish-actions.pod:4273
15410 msgstr "set-direct"
15413 #: ../fish/guestfish-actions.pod:4275
15418 #: ../fish/guestfish-actions.pod:4277
15421 " set-direct true|false\n"
15424 " set-direct true|false\n"
15428 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6645
15430 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15431 "passed directly through to the appliance once it is launched."
15435 #: ../fish/guestfish-actions.pod:4283
15437 "One consequence of this is that log messages aren't caught by the library "
15438 "and handled by L</set-log-message-callback>, but go straight to stdout."
15442 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6653
15443 msgid "You probably don't want to use this unless you know what you are doing."
15447 #: ../fish/guestfish-actions.pod:4290 ../src/guestfs-actions.pod:6656
15448 msgid "The default is disabled."
15452 #: ../fish/guestfish-actions.pod:4292
15453 msgid "set-e2label"
15454 msgstr "set-e2label"
15457 #: ../fish/guestfish-actions.pod:4294
15460 " set-e2label device label\n"
15465 #: ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:6669
15467 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15468 "C<label>. Filesystem labels are limited to 16 characters."
15472 #: ../fish/guestfish-actions.pod:4300
15474 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15475 "label on a filesystem."
15479 #: ../fish/guestfish-actions.pod:4303
15481 msgstr "set-e2uuid"
15484 #: ../fish/guestfish-actions.pod:4305
15487 " set-e2uuid device uuid\n"
15492 #: ../fish/guestfish-actions.pod:4307 ../src/guestfs-actions.pod:6687
15494 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15495 "C<uuid>. The format of the UUID and alternatives such as C<clear>, "
15496 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15500 #: ../fish/guestfish-actions.pod:4312
15502 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15503 "UUID of a filesystem."
15507 #: ../fish/guestfish-actions.pod:4315
15508 msgid "set-memsize"
15509 msgstr "set-memsize"
15512 #: ../fish/guestfish-actions.pod:4317
15517 #: ../fish/guestfish-actions.pod:4319
15520 " set-memsize memsize\n"
15525 #: ../fish/guestfish-actions.pod:4321
15527 "This sets the memory size in megabytes allocated to the qemu subprocess. "
15528 "This only has any effect if called before L</launch>."
15532 #: ../fish/guestfish-actions.pod:4325 ../src/guestfs-actions.pod:6709
15534 "You can also change this by setting the environment variable "
15535 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15539 #: ../fish/guestfish-actions.pod:4332
15540 msgid "set-network"
15541 msgstr "set-network"
15544 #: ../fish/guestfish-actions.pod:4334
15549 #: ../fish/guestfish-actions.pod:4336
15552 " set-network true|false\n"
15555 " set-network true|false\n"
15559 #: ../fish/guestfish-actions.pod:4338 ../src/guestfs-actions.pod:6726
15561 "If C<network> is true, then the network is enabled in the libguestfs "
15562 "appliance. The default is false."
15566 #: ../fish/guestfish-actions.pod:4341 ../src/guestfs-actions.pod:6729
15568 "This affects whether commands are able to access the network (see L<guestfs"
15569 "(3)/RUNNING COMMANDS>)."
15573 #: ../fish/guestfish-actions.pod:4344
15575 "You must call this before calling L</launch>, otherwise it has no effect."
15579 #: ../fish/guestfish-actions.pod:4347
15584 #: ../fish/guestfish-actions.pod:4351
15587 " set-path searchpath\n"
15592 #: ../fish/guestfish-actions.pod:4353 ../src/guestfs-actions.pod:6745
15593 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15597 #: ../fish/guestfish-actions.pod:4355 ../src/guestfs-actions.pod:6747
15599 "The default is C<$libdir/guestfs> unless overridden by setting "
15600 "C<LIBGUESTFS_PATH> environment variable."
15604 #: ../fish/guestfish-actions.pod:4358 ../src/guestfs-actions.pod:6750
15605 msgid "Setting C<path> to C<NULL> restores the default path."
15609 #: ../fish/guestfish-actions.pod:4360
15614 #: ../fish/guestfish-actions.pod:4362
15619 #: ../fish/guestfish-actions.pod:4364
15622 " set-pgroup true|false\n"
15627 #: ../fish/guestfish-actions.pod:4366 ../src/guestfs-actions.pod:6762
15629 "If C<pgroup> is true, child processes are placed into their own process "
15634 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6765
15636 "The practical upshot of this is that signals like C<SIGINT> (from users "
15637 "pressing C<^C>) won't be received by the child process."
15641 #: ../fish/guestfish-actions.pod:4372 ../src/guestfs-actions.pod:6768
15643 "The default for this flag is false, because usually you want C<^C> to kill "
15648 #: ../fish/guestfish-actions.pod:4375
15653 #: ../fish/guestfish-actions.pod:4377
15658 #: ../fish/guestfish-actions.pod:4379
15668 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6781
15669 msgid "Set the qemu binary that we will use."
15673 #: ../fish/guestfish-actions.pod:4383 ../src/guestfs-actions.pod:6783
15675 "The default is chosen when the library was compiled by the configure script."
15679 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6786
15681 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15686 #: ../fish/guestfish-actions.pod:4389 ../src/guestfs-actions.pod:6789
15687 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15691 #: ../fish/guestfish-actions.pod:4391 ../src/guestfs-actions.pod:6791
15693 "Note that you should call this function as early as possible after creating "
15694 "the handle. This is because some pre-launch operations depend on testing "
15695 "qemu features (by running C<qemu -help>). If the qemu binary changes, we "
15696 "don't retest features, and so you might see inconsistent results. Using the "
15697 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15698 "the qemu binary at the same time as the handle is created."
15702 #: ../fish/guestfish-actions.pod:4399
15703 msgid "set-recovery-proc"
15704 msgstr "set-recovery-proc"
15707 #: ../fish/guestfish-actions.pod:4401
15708 msgid "recovery-proc"
15709 msgstr "recovery-proc"
15712 #: ../fish/guestfish-actions.pod:4403
15715 " set-recovery-proc true|false\n"
15718 " set-recovery-proc true|false\n"
15722 #: ../fish/guestfish-actions.pod:4405
15724 "If this is called with the parameter C<false> then L</launch> does not "
15725 "create a recovery process. The purpose of the recovery process is to stop "
15726 "runaway qemu processes in the case where the main program aborts abruptly."
15730 #: ../fish/guestfish-actions.pod:4410
15732 "This only has any effect if called before L</launch>, and the default is "
15737 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6817
15739 "About the only time when you would want to disable this is if the main "
15740 "process will fork itself into the background (\"daemonize\" itself). In "
15741 "this case the recovery process thinks that the main program has disappeared "
15742 "and so kills qemu, which is not very helpful."
15746 #: ../fish/guestfish-actions.pod:4419
15747 msgid "set-selinux"
15748 msgstr "set-selinux"
15751 #: ../fish/guestfish-actions.pod:4421
15756 #: ../fish/guestfish-actions.pod:4423
15759 " set-selinux true|false\n"
15762 " set-selinux true|false\n"
15766 #: ../fish/guestfish-actions.pod:4425 ../src/guestfs-actions.pod:6833
15768 "This sets the selinux flag that is passed to the appliance at boot time. "
15769 "The default is C<selinux=0> (disabled)."
15773 #: ../fish/guestfish-actions.pod:4428 ../src/guestfs-actions.pod:6836
15775 "Note that if SELinux is enabled, it is always in Permissive mode "
15776 "(C<enforcing=0>)."
15780 #: ../fish/guestfish-actions.pod:4434
15785 #: ../fish/guestfish-actions.pod:4436
15790 #: ../fish/guestfish-actions.pod:4438
15798 #: ../fish/guestfish-actions.pod:4440 ../src/guestfs-actions.pod:6852
15800 "Change the number of virtual CPUs assigned to the appliance. The default is "
15801 "C<1>. Increasing this may improve performance, though often it has no "
15806 #: ../fish/guestfish-actions.pod:4444
15807 msgid "This function must be called before L</launch>."
15811 #: ../fish/guestfish-actions.pod:4446
15816 #: ../fish/guestfish-actions.pod:4448
15821 #: ../fish/guestfish-actions.pod:4450
15824 " set-trace true|false\n"
15827 " set-trace true|false\n"
15831 #: ../fish/guestfish-actions.pod:4452 ../src/guestfs-actions.pod:6868
15833 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15834 "return values are traced."
15838 #: ../fish/guestfish-actions.pod:4455 ../src/guestfs-actions.pod:6871
15840 "If you want to trace C API calls into libguestfs (and other libraries) then "
15841 "possibly a better way is to use the external ltrace(1) command."
15845 #: ../fish/guestfish-actions.pod:4459 ../src/guestfs-actions.pod:6875
15847 "Command traces are disabled unless the environment variable "
15848 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15852 #: ../fish/guestfish-actions.pod:4462
15854 "Trace messages are normally sent to C<stderr>, unless you register a "
15855 "callback to send them somewhere else (see L</set-event-callback>)."
15859 #: ../fish/guestfish-actions.pod:4466
15860 msgid "set-verbose"
15861 msgstr "set-verbose"
15864 #: ../fish/guestfish-actions.pod:4468
15869 #: ../fish/guestfish-actions.pod:4470
15872 " set-verbose true|false\n"
15875 " set-verbose true|false\n"
15879 #: ../fish/guestfish-actions.pod:4472 ../src/guestfs-actions.pod:6892
15880 msgid "If C<verbose> is true, this turns on verbose messages."
15884 #: ../fish/guestfish-actions.pod:4474 ../src/guestfs-actions.pod:6894
15886 "Verbose messages are disabled unless the environment variable "
15887 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15891 #: ../fish/guestfish-actions.pod:4477
15893 "Verbose messages are normally sent to C<stderr>, unless you register a "
15894 "callback to send them somewhere else (see L</set-event-callback>)."
15898 #: ../fish/guestfish-actions.pod:4481
15903 #: ../fish/guestfish-actions.pod:4483
15906 " setcon context\n"
15909 " setcon контекст\n"
15913 #: ../fish/guestfish-actions.pod:4485 ../src/guestfs-actions.pod:6911
15915 "This sets the SELinux security context of the daemon to the string "
15920 #: ../fish/guestfish-actions.pod:4488 ../src/guestfs-actions.pod:6914
15921 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15925 #: ../fish/guestfish-actions.pod:4490
15930 #: ../fish/guestfish-actions.pod:4492
15933 " setxattr xattr val vallen path\n"
15938 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6929
15940 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15941 "the value C<val> (of length C<vallen>). The value is arbitrary 8 bit data."
15945 #: ../fish/guestfish-actions.pod:4498
15946 msgid "See also: L</lsetxattr>, L<attr(5)>."
15947 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
15950 #: ../fish/guestfish-actions.pod:4500
15955 #: ../fish/guestfish-actions.pod:4502
15958 " sfdisk device cyls heads sectors 'lines ...'\n"
15963 #: ../fish/guestfish-actions.pod:4504 ../src/guestfs-actions.pod:6956
15965 "This is a direct interface to the L<sfdisk(8)> program for creating "
15966 "partitions on block devices."
15970 #: ../fish/guestfish-actions.pod:4507 ../src/guestfs-actions.pod:6959
15971 msgid "C<device> should be a block device, for example C</dev/sda>."
15975 #: ../fish/guestfish-actions.pod:4509 ../src/guestfs-actions.pod:6961
15977 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15978 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
15979 "H> and I<-S> parameters. If you pass C<0> for any of these, then the "
15980 "corresponding parameter is omitted. Usually for 'large' disks, you can just "
15981 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15982 "the kernel) cannot work out the right geometry and you will need to tell it."
15986 #: ../fish/guestfish-actions.pod:4517 ../src/guestfs-actions.pod:6969
15988 "C<lines> is a list of lines that we feed to C<sfdisk>. For more information "
15989 "refer to the L<sfdisk(8)> manpage."
15993 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6972
15995 "To create a single partition occupying the whole disk, you would pass "
15996 "C<lines> as a single element list, when the single element being the string "
16001 #: ../fish/guestfish-actions.pod:4524
16002 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16003 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16006 #: ../fish/guestfish-actions.pod:4530 ../fish/guestfish-actions.pod:4553
16007 #: ../fish/guestfish-actions.pod:4575
16009 "I<This function is deprecated.> In new code, use the L</part_add> call "
16014 #: ../fish/guestfish-actions.pod:4537
16019 #: ../fish/guestfish-actions.pod:4539
16022 " sfdiskM device 'lines ...'\n"
16027 #: ../fish/guestfish-actions.pod:4541
16029 "This is a simplified interface to the L</sfdisk> command, where partition "
16030 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
16031 "you don't need to specify the cyls, heads and sectors parameters which were "
16032 "rarely if ever used anyway."
16036 #: ../fish/guestfish-actions.pod:4547
16037 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
16039 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
16042 #: ../fish/guestfish-actions.pod:4560
16047 #: ../fish/guestfish-actions.pod:4562
16050 " sfdisk-N device partnum cyls heads sectors line\n"
16055 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:7034
16057 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16058 "(note: C<n> counts from 1)."
16062 #: ../fish/guestfish-actions.pod:4567
16064 "For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
16065 "cyls/heads/sectors parameters."
16069 #: ../fish/guestfish-actions.pod:4570
16070 msgid "See also: L</part-add>"
16071 msgstr "Див. також L</part-add>"
16074 #: ../fish/guestfish-actions.pod:4582
16075 msgid "sfdisk-disk-geometry"
16076 msgstr "sfdisk-disk-geometry"
16079 #: ../fish/guestfish-actions.pod:4584
16082 " sfdisk-disk-geometry device\n"
16085 " sfdisk-disk-geometry пристрій\n"
16089 #: ../fish/guestfish-actions.pod:4586
16091 "This displays the disk geometry of C<device> read from the partition table. "
16092 "Especially in the case where the underlying block device has been resized, "
16093 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
16094 "kernel-geometry>)."
16098 #: ../fish/guestfish-actions.pod:4591 ../fish/guestfish-actions.pod:4600
16099 #: ../src/guestfs-actions.pod:7060 ../src/guestfs-actions.pod:7076
16100 msgid "The result is in human-readable format, and not designed to be parsed."
16104 #: ../fish/guestfish-actions.pod:4594
16105 msgid "sfdisk-kernel-geometry"
16106 msgstr "sfdisk-kernel-geometry"
16109 #: ../fish/guestfish-actions.pod:4596
16112 " sfdisk-kernel-geometry device\n"
16115 " sfdisk-kernel-geometry пристрій\n"
16119 #: ../fish/guestfish-actions.pod:4598 ../src/guestfs-actions.pod:7074
16120 msgid "This displays the kernel's idea of the geometry of C<device>."
16124 #: ../fish/guestfish-actions.pod:4603
16129 #: ../fish/guestfish-actions.pod:4605
16132 " sfdisk-l device\n"
16135 " sfdisk-l пристрій\n"
16139 #: ../fish/guestfish-actions.pod:4607 ../src/guestfs-actions.pod:7097
16141 "This displays the partition table on C<device>, in the human-readable output "
16142 "of the L<sfdisk(8)> command. It is not intended to be parsed."
16146 #: ../fish/guestfish-actions.pod:4611
16147 msgid "See also: L</part-list>"
16148 msgstr "Див. також L</part-list>"
16151 #: ../fish/guestfish-actions.pod:4613
16153 "I<This function is deprecated.> In new code, use the L</part_list> call "
16158 #: ../fish/guestfish-actions.pod:4620
16163 #: ../fish/guestfish-actions.pod:4622
16173 #: ../fish/guestfish-actions.pod:4624 ../src/guestfs-actions.pod:7114
16175 "This call runs a command from the guest filesystem via the guest's C</bin/"
16180 #: ../fish/guestfish-actions.pod:4627
16181 msgid "This is like L</command>, but passes the command to:"
16185 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:7119
16188 " /bin/sh -c \"command\"\n"
16193 #: ../fish/guestfish-actions.pod:4631 ../src/guestfs-actions.pod:7121
16195 "Depending on the guest's shell, this usually results in wildcards being "
16196 "expanded, shell expressions being interpolated and so on."
16200 #: ../fish/guestfish-actions.pod:4635
16201 msgid "All the provisos about L</command> apply to this call."
16205 #: ../fish/guestfish-actions.pod:4637
16210 #: ../fish/guestfish-actions.pod:4639
16213 " sh-lines command\n"
16216 " sh-lines команда\n"
16220 #: ../fish/guestfish-actions.pod:4641
16221 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16225 #: ../fish/guestfish-actions.pod:4644
16226 msgid "See also: L</command-lines>"
16227 msgstr "Див. також L</command-lines>"
16230 #: ../fish/guestfish-actions.pod:4646
16235 #: ../fish/guestfish-actions.pod:4648
16241 " sleep час_у_секундах\n"
16245 #: ../fish/guestfish-actions.pod:4650 ../src/guestfs-actions.pod:7155
16246 msgid "Sleep for C<secs> seconds."
16250 #: ../fish/guestfish-actions.pod:4652
16255 #: ../fish/guestfish-actions.pod:4654
16265 #: ../fish/guestfish-actions.pod:4658 ../src/guestfs-actions.pod:7169
16266 msgid "This is the same as the C<stat(2)> system call."
16270 #: ../fish/guestfish-actions.pod:4660
16275 #: ../fish/guestfish-actions.pod:4662
16285 #: ../fish/guestfish-actions.pod:4664 ../src/guestfs-actions.pod:7183
16287 "Returns file system statistics for any mounted file system. C<path> should "
16288 "be a file or directory in the mounted file system (typically it is the mount "
16289 "point itself, but it doesn't need to be)."
16293 #: ../fish/guestfish-actions.pod:4668 ../src/guestfs-actions.pod:7187
16294 msgid "This is the same as the C<statvfs(2)> system call."
16298 #: ../fish/guestfish-actions.pod:4670
16303 #: ../fish/guestfish-actions.pod:4672
16313 #: ../fish/guestfish-actions.pod:4674 ../src/guestfs-actions.pod:7201
16315 "This runs the L<strings(1)> command on a file and returns the list of "
16316 "printable strings found."
16320 #: ../fish/guestfish-actions.pod:4680
16325 #: ../fish/guestfish-actions.pod:4682
16328 " strings-e encoding path\n"
16331 " strings-e кодування шлях\n"
16335 #: ../fish/guestfish-actions.pod:4684
16337 "This is like the L</strings> command, but allows you to specify the encoding "
16338 "of strings that are looked for in the source file C<path>."
16342 #: ../fish/guestfish-actions.pod:4688 ../src/guestfs-actions.pod:7224
16343 msgid "Allowed encodings are:"
16344 msgstr "Можливими кодуваннями є:"
16347 #: ../fish/guestfish-actions.pod:4692 ../src/guestfs-actions.pod:7228
16352 #: ../fish/guestfish-actions.pod:4694
16354 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16355 "ISO-8859-X (this is what L</strings> uses)."
16359 #: ../fish/guestfish-actions.pod:4697 ../src/guestfs-actions.pod:7233
16364 #: ../fish/guestfish-actions.pod:4699 ../src/guestfs-actions.pod:7235
16365 msgid "Single 8-bit-byte characters."
16366 msgstr "Окремі 8-бітові-байтові символи."
16369 #: ../fish/guestfish-actions.pod:4701 ../src/guestfs-actions.pod:7237
16374 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7239
16375 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16379 #: ../fish/guestfish-actions.pod:4706 ../src/guestfs-actions.pod:7242
16380 msgid "l (lower case letter L)"
16384 #: ../fish/guestfish-actions.pod:4708 ../src/guestfs-actions.pod:7244
16386 "16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
16387 "examining binaries in Windows guests."
16391 #: ../fish/guestfish-actions.pod:4711 ../src/guestfs-actions.pod:7247
16396 #: ../fish/guestfish-actions.pod:4713 ../src/guestfs-actions.pod:7249
16397 msgid "32-bit big endian such as UCS-4BE."
16401 #: ../fish/guestfish-actions.pod:4715 ../src/guestfs-actions.pod:7251
16406 #: ../fish/guestfish-actions.pod:4717 ../src/guestfs-actions.pod:7253
16407 msgid "32-bit little endian such as UCS-4LE."
16411 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7257
16412 msgid "The returned strings are transcoded to UTF-8."
16416 #: ../fish/guestfish-actions.pod:4726
16417 msgid "swapoff-device"
16418 msgstr "swapoff-device"
16421 #: ../fish/guestfish-actions.pod:4728
16424 " swapoff-device device\n"
16427 " swapoff-device пристрій\n"
16431 #: ../fish/guestfish-actions.pod:4730
16433 "This command disables the libguestfs appliance swap device or partition "
16434 "named C<device>. See L</swapon-device>."
16438 #: ../fish/guestfish-actions.pod:4734
16439 msgid "swapoff-file"
16440 msgstr "swapoff-file"
16443 #: ../fish/guestfish-actions.pod:4736
16446 " swapoff-file file\n"
16449 " swapoff-file файл\n"
16453 #: ../fish/guestfish-actions.pod:4738 ../src/guestfs-actions.pod:7288
16454 msgid "This command disables the libguestfs appliance swap on file."
16458 #: ../fish/guestfish-actions.pod:4740
16459 msgid "swapoff-label"
16460 msgstr "swapoff-label"
16463 #: ../fish/guestfish-actions.pod:4742
16466 " swapoff-label label\n"
16469 " swapoff-label мітка\n"
16473 #: ../fish/guestfish-actions.pod:4744 ../src/guestfs-actions.pod:7300
16475 "This command disables the libguestfs appliance swap on labeled swap "
16480 #: ../fish/guestfish-actions.pod:4747
16481 msgid "swapoff-uuid"
16482 msgstr "swapoff-uuid"
16485 #: ../fish/guestfish-actions.pod:4749
16488 " swapoff-uuid uuid\n"
16491 " swapoff-uuid uuid\n"
16495 #: ../fish/guestfish-actions.pod:4751 ../src/guestfs-actions.pod:7313
16497 "This command disables the libguestfs appliance swap partition with the given "
16502 #: ../fish/guestfish-actions.pod:4754
16503 msgid "swapon-device"
16504 msgstr "swapon-device"
16507 #: ../fish/guestfish-actions.pod:4756
16510 " swapon-device device\n"
16513 " swapon-device пристрій\n"
16517 #: ../fish/guestfish-actions.pod:4758
16519 "This command enables the libguestfs appliance to use the swap device or "
16520 "partition named C<device>. The increased memory is made available for all "
16521 "commands, for example those run using L</command> or L</sh>."
16525 #: ../fish/guestfish-actions.pod:4763 ../src/guestfs-actions.pod:7331
16527 "Note that you should not swap to existing guest swap partitions unless you "
16528 "know what you are doing. They may contain hibernation information, or other "
16529 "information that the guest doesn't want you to trash. You also risk leaking "
16530 "information about the host to the guest this way. Instead, attach a new "
16531 "host device to the guest and swap on that."
16535 #: ../fish/guestfish-actions.pod:4770
16536 msgid "swapon-file"
16537 msgstr "swapon-file"
16540 #: ../fish/guestfish-actions.pod:4772
16543 " swapon-file file\n"
16546 " swapon-file файл\n"
16550 #: ../fish/guestfish-actions.pod:4774
16552 "This command enables swap to a file. See L</swapon-device> for other notes."
16556 #: ../fish/guestfish-actions.pod:4777
16557 msgid "swapon-label"
16558 msgstr "swapon-label"
16561 #: ../fish/guestfish-actions.pod:4779
16564 " swapon-label label\n"
16567 " swapon-label мітка\n"
16571 #: ../fish/guestfish-actions.pod:4781
16573 "This command enables swap to a labeled swap partition. See L</swapon-"
16574 "device> for other notes."
16578 #: ../fish/guestfish-actions.pod:4784
16579 msgid "swapon-uuid"
16580 msgstr "swapon-uuid"
16583 #: ../fish/guestfish-actions.pod:4786
16586 " swapon-uuid uuid\n"
16589 " swapon-uuid uuid\n"
16593 #: ../fish/guestfish-actions.pod:4788
16595 "This command enables swap to a swap partition with the given UUID. See L</"
16596 "swapon-device> for other notes."
16600 #: ../fish/guestfish-actions.pod:4791
16605 #: ../fish/guestfish-actions.pod:4793
16615 #: ../fish/guestfish-actions.pod:4795 ../src/guestfs-actions.pod:7386
16617 "This syncs the disk, so that any writes are flushed through to the "
16618 "underlying disk image."
16622 #: ../fish/guestfish-actions.pod:4798 ../src/guestfs-actions.pod:7389
16624 "You should always call this if you have modified a disk image, before "
16625 "closing the handle."
16629 #: ../fish/guestfish-actions.pod:4801
16634 #: ../fish/guestfish-actions.pod:4803
16644 #: ../fish/guestfish-actions.pod:4805 ../src/guestfs-actions.pod:7402
16646 "This command returns up to the last 10 lines of a file as a list of strings."
16650 #: ../fish/guestfish-actions.pod:4811
16655 #: ../fish/guestfish-actions.pod:4813
16658 " tail-n nrlines path\n"
16663 #: ../fish/guestfish-actions.pod:4815 ../src/guestfs-actions.pod:7421
16665 "If the parameter C<nrlines> is a positive number, this returns the last "
16666 "C<nrlines> lines of the file C<path>."
16670 #: ../fish/guestfish-actions.pod:4818 ../src/guestfs-actions.pod:7424
16672 "If the parameter C<nrlines> is a negative number, this returns lines from "
16673 "the file C<path>, starting with the C<-nrlines>th line."
16677 #: ../fish/guestfish-actions.pod:4826
16682 #: ../fish/guestfish-actions.pod:4828
16685 " tar-in (tarfile|-) directory\n"
16688 " tar-in (файл_tar|-) каталог\n"
16692 #: ../fish/guestfish-actions.pod:4830 ../src/guestfs-actions.pod:7445
16694 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16695 "tar file) into C<directory>."
16699 #: ../fish/guestfish-actions.pod:4833
16700 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16704 #: ../fish/guestfish-actions.pod:4838
16709 #: ../fish/guestfish-actions.pod:4840
16712 " tar-out directory (tarfile|-)\n"
16715 " tar-out каталог (файл tar|-)\n"
16719 #: ../fish/guestfish-actions.pod:4842 ../src/guestfs-actions.pod:7462
16721 "This command packs the contents of C<directory> and downloads it to local "
16726 #: ../fish/guestfish-actions.pod:4845
16727 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16731 #: ../fish/guestfish-actions.pod:4850
16736 #: ../fish/guestfish-actions.pod:4852
16739 " tgz-in (tarball|-) directory\n"
16742 " tgz-in (архів tar|-) каталог\n"
16746 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7479
16748 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16749 "tar file) into C<directory>."
16753 #: ../fish/guestfish-actions.pod:4857
16754 msgid "To upload an uncompressed tarball, use L</tar-in>."
16758 #: ../fish/guestfish-actions.pod:4861
16763 #: ../fish/guestfish-actions.pod:4863
16766 " tgz-out directory (tarball|-)\n"
16769 " tgz-out каталог (архів tar|-)\n"
16773 #: ../fish/guestfish-actions.pod:4865 ../src/guestfs-actions.pod:7495
16775 "This command packs the contents of C<directory> and downloads it to local "
16780 #: ../fish/guestfish-actions.pod:4868
16781 msgid "To download an uncompressed tarball, use L</tar-out>."
16785 #: ../fish/guestfish-actions.pod:4872
16790 #: ../fish/guestfish-actions.pod:4874
16800 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7510
16802 "Touch acts like the L<touch(1)> command. It can be used to update the "
16803 "timestamps on a file, or, if the file does not exist, to create a new zero-"
16808 #: ../fish/guestfish-actions.pod:4880 ../src/guestfs-actions.pod:7514
16810 "This command only works on regular files, and will fail on other file types "
16811 "such as directories, symbolic links, block special etc."
16815 #: ../fish/guestfish-actions.pod:4883
16820 #: ../fish/guestfish-actions.pod:4885
16830 #: ../fish/guestfish-actions.pod:4887 ../src/guestfs-actions.pod:7527
16832 "This command truncates C<path> to a zero-length file. The file must exist "
16837 #: ../fish/guestfish-actions.pod:4890
16838 msgid "truncate-size"
16839 msgstr "truncate-size"
16842 #: ../fish/guestfish-actions.pod:4892
16845 " truncate-size path size\n"
16848 " truncate-size шлях розмір\n"
16852 #: ../fish/guestfish-actions.pod:4894 ../src/guestfs-actions.pod:7541
16854 "This command truncates C<path> to size C<size> bytes. The file must exist "
16859 #: ../fish/guestfish-actions.pod:4897
16861 "If the current file size is less than C<size> then the file is extended to "
16862 "the required size with zero bytes. This creates a sparse file (ie. disk "
16863 "blocks are not allocated for the file until you write to it). To create a "
16864 "non-sparse file of zeroes, use L</fallocate64> instead."
16868 #: ../fish/guestfish-actions.pod:4903
16873 #: ../fish/guestfish-actions.pod:4905
16876 " tune2fs-l device\n"
16879 " tune2fs-l пристрій\n"
16883 #: ../fish/guestfish-actions.pod:4907 ../src/guestfs-actions.pod:7560
16885 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16890 #: ../fish/guestfish-actions.pod:4910 ../src/guestfs-actions.pod:7563
16892 "It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage "
16893 "for more details. The list of fields returned isn't clearly defined, and "
16894 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16895 "and the filesystem itself."
16899 #: ../fish/guestfish-actions.pod:4915
16904 #: ../fish/guestfish-actions.pod:4917
16907 " txz-in (tarball|-) directory\n"
16910 " txz-in (архів tar|-) каталог\n"
16914 #: ../fish/guestfish-actions.pod:4919 ../src/guestfs-actions.pod:7583
16916 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16917 "tar file) into C<directory>."
16921 #: ../fish/guestfish-actions.pod:4924
16926 #: ../fish/guestfish-actions.pod:4926
16929 " txz-out directory (tarball|-)\n"
16932 " txz-out каталог (архів tar|-)\n"
16936 #: ../fish/guestfish-actions.pod:4928 ../src/guestfs-actions.pod:7597
16938 "This command packs the contents of C<directory> and downloads it to local "
16939 "file C<tarball> (as an xz compressed tar archive)."
16943 #: ../fish/guestfish-actions.pod:4933
16948 #: ../fish/guestfish-actions.pod:4935
16958 #: ../fish/guestfish-actions.pod:4937 ../src/guestfs-actions.pod:7610
16960 "This function sets the mask used for creating new files and device nodes to "
16965 #: ../fish/guestfish-actions.pod:4940 ../src/guestfs-actions.pod:7613
16967 "Typical umask values would be C<022> which creates new files with "
16968 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16969 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16973 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7618
16975 "The default umask is C<022>. This is important because it means that "
16976 "directories and device nodes will be created with C<0644> or C<0755> mode "
16977 "even if you specify C<0777>."
16981 #: ../fish/guestfish-actions.pod:4949
16982 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16983 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16986 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7625
16987 msgid "This call returns the previous umask."
16991 #: ../fish/guestfish-actions.pod:4954
16996 #: ../fish/guestfish-actions.pod:4956
17001 #: ../fish/guestfish-actions.pod:4958
17004 " umount pathordevice\n"
17007 " umount шлях_або_пристрій\n"
17011 #: ../fish/guestfish-actions.pod:4960 ../src/guestfs-actions.pod:7637
17013 "This unmounts the given filesystem. The filesystem may be specified either "
17014 "by its mountpoint (path) or the device which contains the filesystem."
17018 #: ../fish/guestfish-actions.pod:4964
17020 msgstr "umount-all"
17023 #: ../fish/guestfish-actions.pod:4966
17024 msgid "unmount-all"
17025 msgstr "unmount-all"
17028 #: ../fish/guestfish-actions.pod:4968
17038 #: ../fish/guestfish-actions.pod:4970 ../src/guestfs-actions.pod:7650
17039 msgid "This unmounts all mounted filesystems."
17043 #: ../fish/guestfish-actions.pod:4972 ../src/guestfs-actions.pod:7652
17044 msgid "Some internal mounts are not unmounted by this call."
17048 #: ../fish/guestfish-actions.pod:4974
17053 #: ../fish/guestfish-actions.pod:4976
17056 " upload (filename|-) remotefilename\n"
17059 " upload (назва_файла|-) назва_віддаленого_файла\n"
17063 #: ../fish/guestfish-actions.pod:4978 ../fish/guestfish-actions.pod:4991
17064 #: ../src/guestfs-actions.pod:7665 ../src/guestfs-actions.pod:7689
17065 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17069 #: ../fish/guestfish-actions.pod:4983
17070 msgid "See also L</download>."
17071 msgstr "Див. також L</download>."
17074 #: ../fish/guestfish-actions.pod:4987
17075 msgid "upload-offset"
17076 msgstr "upload-offset"
17079 #: ../fish/guestfish-actions.pod:4989
17082 " upload-offset (filename|-) remotefilename offset\n"
17085 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
17089 #: ../fish/guestfish-actions.pod:4994 ../src/guestfs-actions.pod:7692
17091 "C<remotefilename> is overwritten starting at the byte C<offset> specified. "
17092 "The intention is to overwrite parts of existing files or devices, although "
17093 "if a non-existant file is specified then it is created with a \"hole\" "
17094 "before C<offset>. The size of the data written is implicit in the size of "
17095 "the source C<filename>."
17099 #: ../fish/guestfish-actions.pod:5001
17101 "Note that there is no limit on the amount of data that can be uploaded with "
17102 "this call, unlike with L</pwrite>, and this call always writes the full "
17103 "amount unless an error occurs."
17107 #: ../fish/guestfish-actions.pod:5006
17108 msgid "See also L</upload>, L</pwrite>."
17109 msgstr "Див. також L</upload>, L</pwrite>."
17112 #: ../fish/guestfish-actions.pod:5010
17117 #: ../fish/guestfish-actions.pod:5012
17120 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
17125 #: ../fish/guestfish-actions.pod:5014 ../src/guestfs-actions.pod:7725
17126 msgid "This command sets the timestamps of a file with nanosecond precision."
17130 #: ../fish/guestfish-actions.pod:5017 ../src/guestfs-actions.pod:7728
17132 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17137 #: ../fish/guestfish-actions.pod:5020 ../src/guestfs-actions.pod:7731
17139 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17140 "nanoseconds from the epoch."
17144 #: ../fish/guestfish-actions.pod:5023 ../src/guestfs-actions.pod:7734
17146 "If the C<*nsecs> field contains the special value C<-1> then the "
17147 "corresponding timestamp is set to the current time. (The C<*secs> field is "
17148 "ignored in this case)."
17152 #: ../fish/guestfish-actions.pod:5027 ../src/guestfs-actions.pod:7738
17154 "If the C<*nsecs> field contains the special value C<-2> then the "
17155 "corresponding timestamp is left unchanged. (The C<*secs> field is ignored "
17160 #: ../fish/guestfish-actions.pod:5031
17165 #: ../fish/guestfish-actions.pod:5033
17175 #: ../fish/guestfish-actions.pod:5035 ../src/guestfs-actions.pod:7751
17177 "Return the libguestfs version number that the program is linked against."
17181 #: ../fish/guestfish-actions.pod:5038 ../src/guestfs-actions.pod:7754
17183 "Note that because of dynamic linking this is not necessarily the version of "
17184 "libguestfs that you compiled against. You can compile the program, and then "
17185 "at runtime dynamically link against a completely different C<libguestfs.so> "
17190 #: ../fish/guestfish-actions.pod:5043 ../src/guestfs-actions.pod:7759
17192 "This call was added in version C<1.0.58>. In previous versions of "
17193 "libguestfs there was no way to get the version number. From C code you can "
17194 "use dynamic linker functions to find out if this symbol exists (if it "
17195 "doesn't, then it's an earlier version)."
17199 #: ../fish/guestfish-actions.pod:5049 ../src/guestfs-actions.pod:7765
17201 "The call returns a structure with four elements. The first three (C<major>, "
17202 "C<minor> and C<release>) are numbers and correspond to the usual version "
17203 "triplet. The fourth element (C<extra>) is a string and is normally empty, "
17204 "but may be used for distro-specific information."
17208 #: ../fish/guestfish-actions.pod:5055 ../src/guestfs-actions.pod:7771
17210 "To construct the original version string: C<$major.$minor.$release$extra>"
17214 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7774
17215 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17216 msgstr "Див також: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17219 #: ../fish/guestfish-actions.pod:5060
17221 "I<Note:> Don't use this call to test for availability of features. In "
17222 "enterprise distributions we backport features from later versions into "
17223 "earlier versions, making this an unreliable way to test for features. Use "
17224 "L</available> instead."
17228 #: ../fish/guestfish-actions.pod:5066
17233 #: ../fish/guestfish-actions.pod:5068
17236 " vfs-label device\n"
17239 " vfs-label пристрій\n"
17243 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7794
17244 msgid "This returns the filesystem label of the filesystem on C<device>."
17248 #: ../fish/guestfish-actions.pod:5073 ../src/guestfs-actions.pod:7797
17249 msgid "If the filesystem is unlabeled, this returns the empty string."
17253 #: ../fish/guestfish-actions.pod:5075
17254 msgid "To find a filesystem from the label, use L</findfs-label>."
17258 #: ../fish/guestfish-actions.pod:5077
17263 #: ../fish/guestfish-actions.pod:5079
17266 " vfs-type device\n"
17269 " vfs-type пристрій\n"
17273 #: ../fish/guestfish-actions.pod:5081 ../src/guestfs-actions.pod:7812
17275 "This command gets the filesystem type corresponding to the filesystem on "
17280 #: ../fish/guestfish-actions.pod:5084 ../src/guestfs-actions.pod:7815
17282 "For most filesystems, the result is the name of the Linux VFS module which "
17283 "would be used to mount this filesystem if you mounted it without specifying "
17284 "the filesystem type. For example a string such as C<ext3> or C<ntfs>."
17288 #: ../fish/guestfish-actions.pod:5089
17293 #: ../fish/guestfish-actions.pod:5091
17296 " vfs-uuid device\n"
17299 " vfs-uuid пристрій\n"
17303 #: ../fish/guestfish-actions.pod:5093 ../src/guestfs-actions.pod:7831
17304 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17308 #: ../fish/guestfish-actions.pod:5096 ../src/guestfs-actions.pod:7834
17309 msgid "If the filesystem does not have a UUID, this returns the empty string."
17313 #: ../fish/guestfish-actions.pod:5098
17314 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17318 #: ../fish/guestfish-actions.pod:5100
17319 msgid "vg-activate"
17320 msgstr "vg-activate"
17323 #: ../fish/guestfish-actions.pod:5102
17326 " vg-activate true|false 'volgroups ...'\n"
17331 #: ../fish/guestfish-actions.pod:5104 ../src/guestfs-actions.pod:7850
17333 "This command activates or (if C<activate> is false) deactivates all logical "
17334 "volumes in the listed volume groups C<volgroups>."
17338 #: ../fish/guestfish-actions.pod:5107 ../src/guestfs-actions.pod:7853
17339 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17343 #: ../fish/guestfish-actions.pod:5109 ../src/guestfs-actions.pod:7855
17345 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17346 "activated or deactivated."
17350 #: ../fish/guestfish-actions.pod:5112
17351 msgid "vg-activate-all"
17352 msgstr "vg-activate-all"
17355 #: ../fish/guestfish-actions.pod:5114
17358 " vg-activate-all true|false\n"
17361 " vg-activate-all true|false\n"
17365 #: ../fish/guestfish-actions.pod:5116 ../src/guestfs-actions.pod:7868
17367 "This command activates or (if C<activate> is false) deactivates all logical "
17368 "volumes in all volume groups."
17372 #: ../fish/guestfish-actions.pod:5119 ../src/guestfs-actions.pod:7871
17373 msgid "This command is the same as running C<vgchange -a y|n>"
17377 #: ../fish/guestfish-actions.pod:5121
17382 #: ../fish/guestfish-actions.pod:5123
17385 " vgcreate volgroup 'physvols ...'\n"
17390 #: ../fish/guestfish-actions.pod:5125 ../src/guestfs-actions.pod:7884
17392 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17393 "of physical volumes C<physvols>."
17397 #: ../fish/guestfish-actions.pod:5128
17402 #: ../fish/guestfish-actions.pod:5130
17405 " vglvuuids vgname\n"
17410 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:7897
17412 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17413 "volumes created in this volume group."
17417 #: ../fish/guestfish-actions.pod:5135
17419 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17420 "logical volumes and volume groups."
17424 #: ../fish/guestfish-actions.pod:5138
17425 msgid "See also L</vgpvuuids>."
17426 msgstr "Див. також L</vgpvuuids>."
17429 #: ../fish/guestfish-actions.pod:5140
17434 #: ../fish/guestfish-actions.pod:5142
17437 " vgpvuuids vgname\n"
17442 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7917
17444 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17445 "volumes that this volume group resides on."
17449 #: ../fish/guestfish-actions.pod:5147
17451 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17452 "physical volumes and volume groups."
17456 #: ../fish/guestfish-actions.pod:5150
17457 msgid "See also L</vglvuuids>."
17458 msgstr "Див. також L</vglvuuids>."
17461 #: ../fish/guestfish-actions.pod:5152
17466 #: ../fish/guestfish-actions.pod:5154
17469 " vgremove vgname\n"
17474 #: ../fish/guestfish-actions.pod:5156 ../src/guestfs-actions.pod:7937
17475 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17479 #: ../fish/guestfish-actions.pod:5158 ../src/guestfs-actions.pod:7939
17481 "This also forcibly removes all logical volumes in the volume group (if any)."
17485 #: ../fish/guestfish-actions.pod:5161
17490 #: ../fish/guestfish-actions.pod:5163
17493 " vgrename volgroup newvolgroup\n"
17498 #: ../fish/guestfish-actions.pod:5165 ../src/guestfs-actions.pod:7953
17499 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17503 #: ../fish/guestfish-actions.pod:5167
17508 #: ../fish/guestfish-actions.pod:5169
17518 #: ../fish/guestfish-actions.pod:5171 ../src/guestfs-actions.pod:7964
17520 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
17525 #: ../fish/guestfish-actions.pod:5174 ../src/guestfs-actions.pod:7967
17527 "This returns a list of just the volume group names that were detected (eg. "
17532 #: ../fish/guestfish-actions.pod:5177
17533 msgid "See also L</vgs-full>."
17534 msgstr "Див. також L</vgs-full>."
17537 #: ../fish/guestfish-actions.pod:5179
17542 #: ../fish/guestfish-actions.pod:5181
17552 #: ../fish/guestfish-actions.pod:5183 ../src/guestfs-actions.pod:7983
17554 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
17555 "> command. The \"full\" version includes all fields."
17559 #: ../fish/guestfish-actions.pod:5186
17564 #: ../fish/guestfish-actions.pod:5188
17574 #: ../fish/guestfish-actions.pod:5190 ../src/guestfs-actions.pod:7997
17576 "This rescans all block devices and rebuilds the list of LVM physical "
17577 "volumes, volume groups and logical volumes."
17581 #: ../fish/guestfish-actions.pod:5193
17586 #: ../fish/guestfish-actions.pod:5195
17594 #: ../fish/guestfish-actions.pod:5197 ../src/guestfs-actions.pod:8010
17595 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17599 #: ../fish/guestfish-actions.pod:5199
17604 #: ../fish/guestfish-actions.pod:5201
17614 #: ../fish/guestfish-actions.pod:5203 ../src/guestfs-actions.pod:8050
17616 "This command counts the characters in a file, using the C<wc -c> external "
17621 #: ../fish/guestfish-actions.pod:5206
17626 #: ../fish/guestfish-actions.pod:5208
17636 #: ../fish/guestfish-actions.pod:5210 ../src/guestfs-actions.pod:8063
17638 "This command counts the lines in a file, using the C<wc -l> external command."
17642 #: ../fish/guestfish-actions.pod:5213
17647 #: ../fish/guestfish-actions.pod:5215
17657 #: ../fish/guestfish-actions.pod:5217 ../src/guestfs-actions.pod:8076
17659 "This command counts the words in a file, using the C<wc -w> external command."
17663 #: ../fish/guestfish-actions.pod:5220
17668 #: ../fish/guestfish-actions.pod:5222
17671 " write path content\n"
17674 " write шлях дані\n"
17678 #: ../fish/guestfish-actions.pod:5224 ../src/guestfs-actions.pod:8091
17680 "This call creates a file called C<path>. The content of the file is the "
17681 "string C<content> (which can contain any 8 bit data)."
17685 #: ../fish/guestfish-actions.pod:5227
17686 msgid "See also L</write-append>."
17687 msgstr "Див. також L</write-append>."
17690 #: ../fish/guestfish-actions.pod:5232
17691 msgid "write-append"
17695 #: ../fish/guestfish-actions.pod:5234
17698 " write-append path content\n"
17703 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:8111
17705 "This call appends C<content> to the end of file C<path>. If C<path> does "
17706 "not exist, then a new file is created."
17710 #: ../fish/guestfish-actions.pod:5239
17711 msgid "See also L</write>."
17712 msgstr "Див. також L</write>."
17715 #: ../fish/guestfish-actions.pod:5244
17717 msgstr "write-file"
17720 #: ../fish/guestfish-actions.pod:5246
17723 " write-file path content size\n"
17728 #: ../fish/guestfish-actions.pod:5248 ../src/guestfs-actions.pod:8138
17730 "This call creates a file called C<path>. The contents of the file is the "
17731 "string C<content> (which can contain any 8 bit data), with length C<size>."
17735 #: ../fish/guestfish-actions.pod:5252 ../src/guestfs-actions.pod:8142
17737 "As a special case, if C<size> is C<0> then the length is calculated using "
17738 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17742 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8146
17744 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17745 "I<not> work, even if the length is specified."
17749 #: ../fish/guestfish-actions.pod:5262
17751 "I<This function is deprecated.> In new code, use the L</write> call instead."
17755 #: ../fish/guestfish-actions.pod:5269
17760 #: ../fish/guestfish-actions.pod:5271
17763 " zegrep regex path\n"
17766 " zegrep формальний_вираз шлях\n"
17770 #: ../fish/guestfish-actions.pod:5273 ../src/guestfs-actions.pod:8163
17772 "This calls the external C<zegrep> program and returns the matching lines."
17776 #: ../fish/guestfish-actions.pod:5279
17781 #: ../fish/guestfish-actions.pod:5281
17784 " zegrepi regex path\n"
17789 #: ../fish/guestfish-actions.pod:5283 ../src/guestfs-actions.pod:8182
17791 "This calls the external C<zegrep -i> program and returns the matching lines."
17795 #: ../fish/guestfish-actions.pod:5289
17800 #: ../fish/guestfish-actions.pod:5291
17810 #: ../fish/guestfish-actions.pod:5293 ../src/guestfs-actions.pod:8200
17811 msgid "This command writes zeroes over the first few blocks of C<device>."
17815 #: ../fish/guestfish-actions.pod:5295 ../src/guestfs-actions.pod:8202
17817 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17818 "securely wipe the device). It should be sufficient to remove any partition "
17819 "tables, filesystem superblocks and so on."
17823 #: ../fish/guestfish-actions.pod:5299 ../fish/guestfish-actions.pod:5314
17824 #: ../src/guestfs-actions.pod:8206 ../src/guestfs-actions.pod:8232
17826 "If blocks are already zero, then this command avoids writing zeroes. This "
17827 "prevents the underlying device from becoming non-sparse or growing "
17832 #: ../fish/guestfish-actions.pod:5303
17833 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17837 #: ../fish/guestfish-actions.pod:5306
17838 msgid "zero-device"
17839 msgstr "zero-device"
17842 #: ../fish/guestfish-actions.pod:5308
17845 " zero-device device\n"
17848 " zero-device пристрій\n"
17852 #: ../fish/guestfish-actions.pod:5310
17854 "This command writes zeroes over the entire C<device>. Compare with L</zero> "
17855 "which just zeroes the first few blocks of a device."
17859 #: ../fish/guestfish-actions.pod:5321
17864 #: ../fish/guestfish-actions.pod:5323
17867 " zerofree device\n"
17870 " zerofree пристрій\n"
17874 #: ../fish/guestfish-actions.pod:5325 ../src/guestfs-actions.pod:8254
17876 "This runs the I<zerofree> program on C<device>. This program claims to zero "
17877 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17878 "possible to compress the filesystem more effectively."
17882 #: ../fish/guestfish-actions.pod:5330 ../src/guestfs-actions.pod:8259
17883 msgid "You should B<not> run this program if the filesystem is mounted."
17887 #: ../fish/guestfish-actions.pod:5333 ../src/guestfs-actions.pod:8262
17889 "It is possible that using this program can damage the filesystem or data on "
17894 #: ../fish/guestfish-actions.pod:5336
17899 #: ../fish/guestfish-actions.pod:5338
17902 " zfgrep pattern path\n"
17905 " zfgrep шаблон шлях\n"
17909 #: ../fish/guestfish-actions.pod:5340 ../src/guestfs-actions.pod:8276
17911 "This calls the external C<zfgrep> program and returns the matching lines."
17915 #: ../fish/guestfish-actions.pod:5346
17920 #: ../fish/guestfish-actions.pod:5348
17923 " zfgrepi pattern path\n"
17926 " zfgrepi шаблон шлях\n"
17930 #: ../fish/guestfish-actions.pod:5350 ../src/guestfs-actions.pod:8295
17932 "This calls the external C<zfgrep -i> program and returns the matching lines."
17936 #: ../fish/guestfish-actions.pod:5356
17941 #: ../fish/guestfish-actions.pod:5358
17944 " zfile meth path\n"
17947 " zfile метод шлях\n"
17951 #: ../fish/guestfish-actions.pod:5360 ../src/guestfs-actions.pod:8321
17953 "This command runs C<file> after first decompressing C<path> using C<method>."
17957 #: ../fish/guestfish-actions.pod:5363 ../src/guestfs-actions.pod:8324
17958 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17962 #: ../fish/guestfish-actions.pod:5365
17964 "Since 1.0.63, use L</file> instead which can now process compressed files."
17968 #: ../fish/guestfish-actions.pod:5368
17970 "I<This function is deprecated.> In new code, use the L</file> call instead."
17974 #: ../fish/guestfish-actions.pod:5375
17979 #: ../fish/guestfish-actions.pod:5377
17982 " zgrep regex path\n"
17985 " zgrep формальний_вираз шлях\n"
17989 #: ../fish/guestfish-actions.pod:5379 ../src/guestfs-actions.pod:8341
17991 "This calls the external C<zgrep> program and returns the matching lines."
17995 #: ../fish/guestfish-actions.pod:5385
18000 #: ../fish/guestfish-actions.pod:5387
18003 " zgrepi regex path\n"
18006 " zgrepi формальний_вираз шлях\n"
18010 #: ../fish/guestfish-actions.pod:5389 ../src/guestfs-actions.pod:8360
18012 "This calls the external C<zgrep -i> program and returns the matching lines."
18016 #: ../fish/guestfish-commands.pod:1
18021 #: ../fish/guestfish-commands.pod:3
18026 #: ../fish/guestfish-commands.pod:5
18029 " alloc filename size\n"
18034 #: ../fish/guestfish-commands.pod:7
18036 "This creates an empty (zeroed) file of the given size, and then adds so it "
18037 "can be further examined."
18041 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
18042 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
18046 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
18047 msgid "Size can be specified using standard suffixes, eg. C<1M>."
18051 #: ../fish/guestfish-commands.pod:14
18053 "To create a sparse file, use L</sparse> instead. To create a prepared disk "
18054 "image, see L</PREPARED DISK IMAGES>."
18058 #: ../fish/guestfish-commands.pod:17
18063 #: ../fish/guestfish-commands.pod:19
18066 " copy-in local [local ...] /remotedir\n"
18071 #: ../fish/guestfish-commands.pod:21
18073 "C<copy-in> copies local files or directories recursively into the disk "
18074 "image, placing them in the directory called C</remotedir> (which must "
18075 "exist). This guestfish meta-command turns into a sequence of L</tar-in> and "
18076 "other commands as necessary."
18080 #: ../fish/guestfish-commands.pod:26
18082 "Multiple local files and directories can be specified, but the last "
18083 "parameter must always be a remote directory. Wildcards cannot be used."
18087 #: ../fish/guestfish-commands.pod:30
18092 #: ../fish/guestfish-commands.pod:32
18095 " copy-out remote [remote ...] localdir\n"
18100 #: ../fish/guestfish-commands.pod:34
18102 "C<copy-out> copies remote files or directories recursively out of the disk "
18103 "image, placing them on the host disk in a local directory called C<localdir> "
18104 "(which must exist). This guestfish meta-command turns into a sequence of L</"
18105 "download>, L</tar-out> and other commands as necessary."
18109 #: ../fish/guestfish-commands.pod:40
18111 "Multiple remote files and directories can be specified, but the last "
18112 "parameter must always be a local directory. To download to the current "
18113 "directory, use C<.> as in:"
18117 #: ../fish/guestfish-commands.pod:44
18120 " copy-out /home .\n"
18123 " copy-out /home .\n"
18127 #: ../fish/guestfish-commands.pod:46
18129 "Wildcards cannot be used in the ordinary command, but you can use them with "
18130 "the help of L</glob> like this:"
18134 #: ../fish/guestfish-commands.pod:49
18137 " glob copy-out /home/* .\n"
18140 " glob copy-out /home/* .\n"
18144 #: ../fish/guestfish-commands.pod:51
18149 #: ../fish/guestfish-commands.pod:53
18152 " display filename\n"
18157 #: ../fish/guestfish-commands.pod:55
18159 "Use C<display> (a graphical display program) to display an image file. It "
18160 "downloads the file, and runs C<display> on it."
18164 #: ../fish/guestfish-commands.pod:58
18166 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18167 "environment variable. For example to use the GNOME display program:"
18171 #: ../fish/guestfish-commands.pod:61
18174 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18179 #: ../fish/guestfish-commands.pod:63
18180 msgid "See also L<display(1)>."
18181 msgstr "Див. також L<display(1)>."
18184 #: ../fish/guestfish-commands.pod:65
18189 #: ../fish/guestfish-commands.pod:67
18192 " echo [params ...]\n"
18195 " echo [параметри...]\n"
18199 #: ../fish/guestfish-commands.pod:69
18200 msgid "This echos the parameters to the terminal."
18204 #: ../fish/guestfish-commands.pod:71
18209 #: ../fish/guestfish-commands.pod:73
18214 #: ../fish/guestfish-commands.pod:75
18219 #: ../fish/guestfish-commands.pod:77
18225 " edit назва_файла\n"
18229 #: ../fish/guestfish-commands.pod:79
18231 "This is used to edit a file. It downloads the file, edits it locally using "
18232 "your editor, then uploads the result."
18236 #: ../fish/guestfish-commands.pod:82
18238 "The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
18239 "or C<emacs> you will get those corresponding editors."
18243 #: ../fish/guestfish-commands.pod:86
18248 #: ../fish/guestfish-commands.pod:88
18251 " glob command args...\n"
18254 " glob команда параметри...\n"
18258 #: ../fish/guestfish-commands.pod:90
18260 "Expand wildcards in any paths in the args list, and run C<command> "
18261 "repeatedly on each matching path."
18265 #: ../fish/guestfish-commands.pod:93
18266 msgid "See L</WILDCARDS AND GLOBBING>."
18267 msgstr "Див. L</WILDCARDS AND GLOBBING>."
18270 #: ../fish/guestfish-commands.pod:95
18275 #: ../fish/guestfish-commands.pod:97
18278 " hexedit <filename|device>\n"
18279 " hexedit <filename|device> <max>\n"
18280 " hexedit <filename|device> <start> <max>\n"
18285 #: ../fish/guestfish-commands.pod:101
18287 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18292 #: ../fish/guestfish-commands.pod:104
18294 "This command works by downloading potentially the whole file or device, "
18295 "editing it locally, then uploading it. If the file or device is large, you "
18296 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18297 "C<max> parameters. C<start> and C<max> are specified in bytes, with the "
18298 "usual modifiers allowed such as C<1M> (1 megabyte)."
18302 #: ../fish/guestfish-commands.pod:111
18303 msgid "For example to edit the first few sectors of a disk you might do:"
18307 #: ../fish/guestfish-commands.pod:114
18310 " hexedit /dev/sda 1M\n"
18313 " hexedit /dev/sda 1M\n"
18317 #: ../fish/guestfish-commands.pod:116
18319 "which would allow you to edit anywhere within the first megabyte of the disk."
18323 #: ../fish/guestfish-commands.pod:119
18324 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18328 #: ../fish/guestfish-commands.pod:121
18331 " hexedit /dev/sda1 0x400 0x400\n"
18334 " hexedit /dev/sda1 0x400 0x400\n"
18338 #: ../fish/guestfish-commands.pod:123
18339 msgid "(assuming the superblock is in the standard location)."
18343 #: ../fish/guestfish-commands.pod:125
18345 "This command requires the external L<hexedit(1)> program. You can specify "
18346 "another program to use by setting the C<HEXEDITOR> environment variable."
18350 #: ../fish/guestfish-commands.pod:129
18351 msgid "See also L</hexdump>."
18352 msgstr "Див. також L</hexdump>."
18355 #: ../fish/guestfish-commands.pod:131
18360 #: ../fish/guestfish-commands.pod:133
18368 #: ../fish/guestfish-commands.pod:135
18370 "Change the local directory, ie. the current directory of guestfish itself."
18374 #: ../fish/guestfish-commands.pod:138
18375 msgid "Note that C<!cd> won't do what you might expect."
18379 #: ../fish/guestfish-commands.pod:140
18384 #: ../fish/guestfish-commands.pod:142
18389 #: ../fish/guestfish-commands.pod:144
18399 #: ../fish/guestfish-commands.pod:146
18400 msgid "Opens the manual page for guestfish."
18404 #: ../fish/guestfish-commands.pod:148
18409 #: ../fish/guestfish-commands.pod:150
18414 #: ../fish/guestfish-commands.pod:152
18422 #: ../fish/guestfish-commands.pod:154
18430 #: ../fish/guestfish-commands.pod:156
18431 msgid "This is used to view a file."
18435 #: ../fish/guestfish-commands.pod:158
18437 "The default viewer is C<$PAGER>. However if you use the alternate command "
18438 "C<less> you will get the C<less> command specifically."
18442 #: ../fish/guestfish-commands.pod:161
18447 #: ../fish/guestfish-commands.pod:163
18455 #: ../fish/guestfish-commands.pod:165
18457 "Close and reopen the libguestfs handle. It is not necessary to use this "
18458 "normally, because the handle is closed properly when guestfish exits. "
18459 "However this is occasionally useful for testing."
18463 #: ../fish/guestfish-commands.pod:169
18468 #: ../fish/guestfish-commands.pod:171
18471 " setenv VAR value\n"
18476 #: ../fish/guestfish-commands.pod:173
18477 msgid "Set the environment variable C<VAR> to the string C<value>."
18481 #: ../fish/guestfish-commands.pod:175
18483 "To print the value of an environment variable use a shell command such as:"
18487 #: ../fish/guestfish-commands.pod:178
18495 #: ../fish/guestfish-commands.pod:180
18500 #: ../fish/guestfish-commands.pod:182
18503 " sparse filename size\n"
18508 #: ../fish/guestfish-commands.pod:184
18510 "This creates an empty sparse file of the given size, and then adds so it can "
18511 "be further examined."
18515 #: ../fish/guestfish-commands.pod:187
18517 "In all respects it works the same as the L</alloc> command, except that the "
18518 "image file is allocated sparsely, which means that disk blocks are not "
18519 "assigned to the file until they are needed. Sparse disk files only use "
18520 "space when written to, but they are slower and there is a danger you could "
18521 "run out of real disk space during a write operation."
18525 #: ../fish/guestfish-commands.pod:197
18530 #: ../fish/guestfish-commands.pod:199
18540 #: ../fish/guestfish-commands.pod:201
18542 "This command returns a list of the optional groups known to the daemon, and "
18543 "indicates which ones are supported by this build of the libguestfs appliance."
18547 #: ../fish/guestfish-commands.pod:205
18548 msgid "See also L<guestfs(3)/AVAILABILITY>."
18549 msgstr "Див. також L<guestfs(3)/AVAILABILITY>."
18552 #: ../fish/guestfish-commands.pod:207
18557 #: ../fish/guestfish-commands.pod:209
18560 " time command args...\n"
18565 #: ../fish/guestfish-commands.pod:211
18567 "Run the command as usual, but print the elapsed time afterwards. This can "
18568 "be useful for benchmarking operations."
18572 #: ../fish/guestfish-commands.pod:214
18577 #: ../fish/guestfish-commands.pod:216
18585 #: ../fish/guestfish-commands.pod:218
18586 msgid "Remove C<VAR> from the environment."
18590 #: ../fish/guestfish.pod:5
18591 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18595 #: ../fish/guestfish.pod:9
18598 " guestfish [--options] [commands]\n"
18603 #: ../fish/guestfish.pod:11
18611 #: ../fish/guestfish.pod:13
18614 " guestfish [--ro|--rw] -a disk.img\n"
18619 #: ../fish/guestfish.pod:15
18622 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18627 #: ../fish/guestfish.pod:17
18630 " guestfish -d libvirt-domain\n"
18635 #: ../fish/guestfish.pod:19
18638 " guestfish [--ro|--rw] -a disk.img -i\n"
18643 #: ../fish/guestfish.pod:21
18646 " guestfish -d libvirt-domain -i\n"
18651 #: ../fish/guestfish.pod:25
18653 "Using guestfish in read/write mode on live virtual machines can be "
18654 "dangerous, potentially causing disk corruption. Use the I<--ro> (read-only) "
18655 "option to use guestfish safely if the disk image or virtual machine might be "
18660 #: ../fish/guestfish.pod:32
18662 "Guestfish is a shell and command-line tool for examining and modifying "
18663 "virtual machine filesystems. It uses libguestfs and exposes all of the "
18664 "functionality of the guestfs API, see L<guestfs(3)>."
18668 #: ../fish/guestfish.pod:36
18670 "Guestfish gives you structured access to the libguestfs API, from shell "
18671 "scripts or the command line or interactively. If you want to rescue a "
18672 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18677 #: ../fish/guestfish.pod:43
18678 msgid "As an interactive shell"
18682 #: ../fish/guestfish.pod:45
18690 #: ../fish/guestfish.pod:47
18693 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18694 " editing virtual machine filesystems.\n"
18699 #: ../fish/guestfish.pod:50
18702 " Type: 'help' for a list of commands\n"
18703 " 'man' to read the manual\n"
18704 " 'quit' to quit the shell\n"
18709 #: ../fish/guestfish.pod:54
18712 " ><fs> add-ro disk.img\n"
18714 " ><fs> list-filesystems\n"
18715 " /dev/sda1: ext4\n"
18716 " /dev/vg_guest/lv_root: ext4\n"
18717 " /dev/vg_guest/lv_swap: swap\n"
18718 " ><fs> mount /dev/vg_guest/lv_root /\n"
18719 " ><fs> cat /etc/fstab\n"
18721 " # Created by anaconda\n"
18728 #: ../fish/guestfish.pod:67
18729 msgid "From shell scripts"
18733 #: ../fish/guestfish.pod:69
18734 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18738 #: ../fish/guestfish.pod:71
18741 " guestfish <<_EOF_\n"
18744 " mount /dev/vg_guest/lv_root /\n"
18745 " write /etc/motd \"Welcome, new users\"\n"
18751 #: ../fish/guestfish.pod:78
18752 msgid "List the LVM logical volumes in a disk image:"
18756 #: ../fish/guestfish.pod:80
18759 " guestfish -a disk.img --ro <<_EOF_\n"
18767 #: ../fish/guestfish.pod:85
18768 msgid "List all the filesystems in a disk image:"
18772 #: ../fish/guestfish.pod:87
18775 " guestfish -a disk.img --ro <<_EOF_\n"
18777 " list-filesystems\n"
18783 #: ../fish/guestfish.pod:92
18784 msgid "On one command line"
18788 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18789 msgid "Update C</etc/resolv.conf> in a guest:"
18793 #: ../fish/guestfish.pod:96
18797 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18798 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18803 #: ../fish/guestfish.pod:100
18804 msgid "Edit C</boot/grub/grub.conf> interactively:"
18808 #: ../fish/guestfish.pod:102
18811 " guestfish --rw --add disk.img \\\n"
18812 " --mount /dev/vg_guest/lv_root \\\n"
18813 " --mount /dev/sda1:/boot \\\n"
18814 " edit /boot/grub/grub.conf\n"
18819 #: ../fish/guestfish.pod:107
18820 msgid "Mount disks automatically"
18824 #: ../fish/guestfish.pod:109
18826 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
18830 #: ../fish/guestfish.pod:112
18833 " guestfish --ro -a disk.img -i cat /etc/group\n"
18838 #: ../fish/guestfish.pod:114
18841 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18846 #: ../fish/guestfish.pod:116
18847 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18851 #: ../fish/guestfish.pod:118
18854 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18859 #: ../fish/guestfish.pod:120
18860 msgid "As a script interpreter"
18864 #: ../fish/guestfish.pod:122
18865 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18869 #: ../fish/guestfish.pod:124
18872 " #!/usr/bin/guestfish -f\n"
18873 " sparse test1.img 100M\n"
18875 " part-disk /dev/sda mbr\n"
18876 " mkfs ext2 /dev/sda1\n"
18881 #: ../fish/guestfish.pod:130
18882 msgid "Start with a prepared disk"
18886 #: ../fish/guestfish.pod:132
18888 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18889 "single ext2-formatted partition:"
18893 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
18896 " guestfish -N fs\n"
18901 #: ../fish/guestfish.pod:137
18902 msgid "To list what is available do:"
18906 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18909 " guestfish -N help | less\n"
18914 #: ../fish/guestfish.pod:141
18915 msgid "Remote control"
18916 msgstr "Дистанційне керування"
18919 #: ../fish/guestfish.pod:143
18922 " eval \"`guestfish --listen`\"\n"
18923 " guestfish --remote add-ro disk.img\n"
18924 " guestfish --remote run\n"
18925 " guestfish --remote lvs\n"
18928 " eval \"`guestfish --listen`\"\n"
18929 " guestfish --remote add-ro disk.img\n"
18930 " guestfish --remote run\n"
18931 " guestfish --remote lvs\n"
18935 #: ../fish/guestfish.pod:154
18936 msgid "Displays general help on options."
18940 #: ../fish/guestfish.pod:158
18941 msgid "B<--cmd-help>"
18942 msgstr "B<--cmd-help>"
18945 #: ../fish/guestfish.pod:160
18946 msgid "Lists all available guestfish commands."
18950 #: ../fish/guestfish.pod:162
18952 msgstr "B<-h команда>"
18955 #: ../fish/guestfish.pod:164
18956 msgid "B<--cmd-help cmd>"
18957 msgstr "B<--cmd-help команда>"
18960 #: ../fish/guestfish.pod:166
18961 msgid "Displays detailed help on a single command C<cmd>."
18965 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
18966 msgid "B<-a image>"
18967 msgstr "B<-a образ>"
18970 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
18971 msgid "B<--add image>"
18972 msgstr "B<--add образ>"
18975 #: ../fish/guestfish.pod:172
18976 msgid "Add a block device or virtual machine image to the shell."
18980 #: ../fish/guestfish.pod:177
18982 "Using this flag is mostly equivalent to using the C<add> command, with "
18983 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18984 "the I<--format=...> flag was given."
18988 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
18990 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18991 "URI to use. The default is to use the default libvirt connection."
18995 #: ../fish/guestfish.pod:189
19000 #: ../fish/guestfish.pod:191
19002 "If using the I<--listen> option and a csh-like shell, use this option. See "
19003 "section L</REMOTE CONTROL AND CSH> below."
19007 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
19008 msgid "B<-d libvirt-domain>"
19009 msgstr "B<-d домен-libvirt>"
19012 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
19013 msgid "B<--domain libvirt-domain>"
19014 msgstr "B<--domain домен-libvirt>"
19017 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
19019 "Add disks from the named libvirt domain. If the I<--ro> option is also "
19020 "used, then any libvirt domain can be used. However in write mode, only "
19021 "libvirt domains which are shut down can be named here."
19025 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
19026 msgid "Domain UUIDs can be used instead of names."
19030 #: ../fish/guestfish.pod:204
19032 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19033 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19034 "if the I<--format:...> flag was given."
19038 #: ../fish/guestfish.pod:208
19043 #: ../fish/guestfish.pod:210
19044 msgid "B<--no-dest-paths>"
19045 msgstr "B<--no-dest-paths>"
19048 #: ../fish/guestfish.pod:212
19050 "Don't tab-complete paths on the guest filesystem. It is useful to be able "
19051 "to hit the tab key to complete paths on the guest filesystem, but this "
19052 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19053 "allow this feature to be disabled."
19057 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
19059 "When prompting for keys and passphrases, guestfish normally turns echoing "
19060 "off so you cannot see what you are typing. If you are not worried about "
19061 "Tempest attacks and there is no one else in the room you can specify this "
19062 "flag to see what you are typing."
19066 #: ../fish/guestfish.pod:224
19068 msgstr "B<-f файл>"
19071 #: ../fish/guestfish.pod:226
19072 msgid "B<--file file>"
19073 msgstr "B<--file файл>"
19076 #: ../fish/guestfish.pod:228
19077 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
19081 #: ../fish/guestfish.pod:231
19084 " #!/usr/bin/guestfish -f\n"
19087 " #!/usr/bin/guestfish -f\n"
19091 #: ../fish/guestfish.pod:244
19094 " guestfish --format=raw -a disk.img\n"
19097 " guestfish --format=raw -a disk.img\n"
19101 #: ../fish/guestfish.pod:248
19104 " guestfish --format=raw -a disk.img --format -a another.img\n"
19107 " guestfish --format=raw -a disk.img --format -a another.img\n"
19111 #: ../fish/guestfish.pod:253
19113 "If you have untrusted raw-format guest disk images, you should use this "
19114 "option to specify the disk format. This avoids a possible security problem "
19115 "with malicious guests (CVE-2010-3851). See also L</add-drive-opts>."
19119 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
19120 msgid "B<--inspector>"
19121 msgstr "B<--inspector>"
19124 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
19126 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19127 "system and mount filesystems as they would be mounted on the real virtual "
19132 #: ../fish/guestfish.pod:266
19133 msgid "Typical usage is either:"
19137 #: ../fish/guestfish.pod:268
19140 " guestfish -d myguest -i\n"
19143 " guestfish -d myguest -i\n"
19147 #: ../fish/guestfish.pod:270
19148 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19152 #: ../fish/guestfish.pod:272
19155 " guestfish --ro -d myguest -i\n"
19158 " guestfish --ro -d myguest -i\n"
19162 #: ../fish/guestfish.pod:274
19163 msgid "(for active domains, readonly), or specify the block device directly:"
19167 #: ../fish/guestfish.pod:276
19170 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19173 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19177 #: ../fish/guestfish.pod:278
19179 "Note that the command line syntax changed slightly over older versions of "
19180 "guestfish. You can still use the old syntax:"
19184 #: ../fish/guestfish.pod:281
19187 " guestfish [--ro] -i disk.img\n"
19190 " guestfish [--ro] -i disk.img\n"
19194 #: ../fish/guestfish.pod:283
19197 " guestfish [--ro] -i libvirt-domain\n"
19202 #: ../fish/guestfish.pod:285
19204 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19205 "then using other commands to mount the filesystems that were found."
19209 #: ../fish/guestfish.pod:294
19210 msgid "B<--listen>"
19211 msgstr "B<--listen>"
19214 #: ../fish/guestfish.pod:296
19216 "Fork into the background and listen for remote commands. See section L</"
19217 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19221 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19226 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19228 "Connect to a live virtual machine. (Experimental, see L<guestfs(3)/"
19229 "ATTACHING TO RUNNING DAEMONS>)."
19233 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19234 msgid "B<-m dev[:mountpoint[:options]]>"
19235 msgstr "B<-m пристрій[:точка_монтування[:параметри]]>"
19238 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19239 msgid "B<--mount dev[:mountpoint[:options]]>"
19240 msgstr "B<--mount пристрій[:точка_монтування[:параметри]]>"
19243 #: ../fish/guestfish.pod:308
19244 msgid "Mount the named partition or logical volume on the given mountpoint."
19248 #: ../fish/guestfish.pod:310
19249 msgid "If the mountpoint is omitted, it defaults to C</>."
19253 #: ../fish/guestfish.pod:312
19254 msgid "You have to mount something on C</> before most commands will work."
19258 #: ../fish/guestfish.pod:314
19260 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19265 #: ../fish/guestfish.pod:317
19267 "If you don't know what filesystems a disk image contains, you can either run "
19268 "guestfish without this option, then list the partitions, filesystems and LVs "
19269 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19270 "commands), or you can use the L<virt-filesystems(1)> program."
19274 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19276 "The third (and rarely used) part of the mount parameter is the list of mount "
19277 "options used to mount the underlying filesystem. If this is not given, then "
19278 "the mount options are either the empty string or C<ro> (the latter if the "
19279 "I<--ro> flag is used). By specifying the mount options, you override this "
19280 "default choice. Probably the only time you would use this is to enable ACLs "
19281 "and/or extended attributes if the filesystem can support them:"
19285 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19288 " -m /dev/sda1:/:acl,user_xattr\n"
19293 #: ../fish/guestfish.pod:333
19294 msgid "Using this flag is equivalent to using the C<mount-options> command."
19298 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
19299 #: ../resize/virt-resize.pod:435
19304 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19305 msgid "B<--no-sync>"
19306 msgstr "B<--no-sync>"
19309 #: ../fish/guestfish.pod:339
19311 "Disable autosync. This is enabled by default. See the discussion of "
19312 "autosync in the L<guestfs(3)> manpage."
19316 #: ../fish/guestfish.pod:342
19321 #: ../fish/guestfish.pod:344
19322 msgid "B<--new type>"
19323 msgstr "B<--new тип>"
19326 #: ../fish/guestfish.pod:346
19328 msgstr "B<-N help>"
19331 #: ../fish/guestfish.pod:348
19333 "Prepare a fresh disk image formatted as \"type\". This is an alternative to "
19334 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19335 "preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
19340 #: ../fish/guestfish.pod:353
19341 msgid "B<--progress-bars>"
19342 msgstr "B<--progress-bars>"
19345 #: ../fish/guestfish.pod:355
19346 msgid "Enable progress bars, even when guestfish is used non-interactively."
19350 #: ../fish/guestfish.pod:357
19352 "Progress bars are enabled by default when guestfish is used as an "
19353 "interactive shell."
19357 #: ../fish/guestfish.pod:360
19358 msgid "B<--no-progress-bars>"
19359 msgstr "B<--no-progress-bars>"
19362 #: ../fish/guestfish.pod:362
19363 msgid "Disable progress bars."
19367 #: ../fish/guestfish.pod:364
19368 msgid "B<--remote[=pid]>"
19369 msgstr "B<--remote[=pid]>"
19372 #: ../fish/guestfish.pod:366
19374 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
19375 "CONTROL GUESTFISH OVER A SOCKET> below."
19379 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
19380 #: ../rescue/virt-rescue.pod:161
19385 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
19386 #: ../rescue/virt-rescue.pod:163
19391 #: ../fish/guestfish.pod:373
19393 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19394 "mounts are done read-only."
19398 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
19400 "The option must always be used if the disk image or virtual machine might be "
19401 "running, and is generally recommended in cases where you don't need write "
19402 "access to the disk."
19406 #: ../fish/guestfish.pod:380
19408 "Note that prepared disk images created with I<-N> are not affected by this "
19409 "option. Also commands like C<add> are not affected - you have to specify "
19410 "the C<readonly:true> option explicitly if you need it."
19414 #: ../fish/guestfish.pod:384
19415 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19419 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
19420 #: ../rescue/virt-rescue.pod:173
19421 msgid "B<--selinux>"
19422 msgstr "B<--selinux>"
19425 #: ../fish/guestfish.pod:388
19426 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
19430 #: ../fish/guestfish.pod:394
19432 "Enable very verbose messages. This is particularly useful if you find a bug."
19436 #: ../fish/guestfish.pod:401
19437 msgid "Display the guestfish / libguestfs version number and exit."
19441 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
19442 #: ../rescue/virt-rescue.pod:194
19447 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
19448 #: ../rescue/virt-rescue.pod:196
19453 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19455 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19456 "mounts are done read-write."
19460 #: ../fish/guestfish.pod:410
19461 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19465 #: ../fish/guestfish.pod:414
19466 msgid "Echo each command before executing it."
19470 #: ../fish/guestfish.pod:418
19471 msgid "COMMANDS ON COMMAND LINE"
19475 #: ../fish/guestfish.pod:420
19477 "Any additional (non-option) arguments are treated as commands to execute."
19481 #: ../fish/guestfish.pod:423
19483 "Commands to execute should be separated by a colon (C<:>), where the colon "
19484 "is a separate parameter. Thus:"
19488 #: ../fish/guestfish.pod:426
19491 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19496 #: ../fish/guestfish.pod:428
19498 "If there are no additional arguments, then we enter a shell, either an "
19499 "interactive shell with a prompt (if the input is a terminal) or a non-"
19500 "interactive shell."
19504 #: ../fish/guestfish.pod:432
19506 "In either command line mode or non-interactive shell, the first command that "
19507 "gives an error causes the whole shell to exit. In interactive mode (with a "
19508 "prompt) if a command fails, you can continue to enter commands."
19512 #: ../fish/guestfish.pod:437
19513 msgid "USING launch (OR run)"
19517 #: ../fish/guestfish.pod:439
19519 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19520 "then launch it, then mount any disks you need, and finally issue actions/"
19521 "commands. So the general order of the day is:"
19525 #: ../fish/guestfish.pod:447
19526 msgid "add or -a/--add"
19530 #: ../fish/guestfish.pod:451
19531 msgid "launch (aka run)"
19535 #: ../fish/guestfish.pod:455
19536 msgid "mount or -m/--mount"
19540 #: ../fish/guestfish.pod:459
19541 msgid "any other commands"
19545 #: ../fish/guestfish.pod:463
19547 "C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
19548 "guest before mounting or performing any other commands."
19552 #: ../fish/guestfish.pod:466
19554 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19555 "I<--new> options were given then C<run> is done automatically, simply "
19556 "because guestfish can't perform the action you asked for without doing this."
19560 #: ../fish/guestfish.pod:471
19561 msgid "OPENING DISKS FOR READ AND WRITE"
19565 #: ../fish/guestfish.pod:473
19567 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19568 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19569 "I<-i> and I<-m> open disk images read-only or for writing."
19573 #: ../fish/guestfish.pod:478
19575 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19576 "opening disk images supplied on the command line for write. To open a disk "
19577 "image read-only you have to do I<-a image --ro>."
19581 #: ../fish/guestfish.pod:482
19583 "This matters: If you accidentally open a live VM disk image writable then "
19584 "you will cause irreversible disk corruption."
19588 #: ../fish/guestfish.pod:485
19590 "In a future libguestfs we intend to change the default the other way. Disk "
19591 "images will be opened read-only. You will have to either specify "
19592 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19593 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19594 "access for disk images specified by those other command line options."
19598 #: ../fish/guestfish.pod:492
19600 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19601 "which does nothing (it is already the default). However it is highly "
19602 "recommended that you use this option to indicate that you need write access, "
19603 "and prepare your scripts for the day when this option will be required for "
19608 #: ../fish/guestfish.pod:498
19610 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19611 "other libguestfs program apart from guestfish and guestmount."
19615 #: ../fish/guestfish.pod:501
19620 #: ../fish/guestfish.pod:503
19622 "You can quote ordinary parameters using either single or double quotes. For "
19627 #: ../fish/guestfish.pod:506
19630 " add \"file with a space.img\"\n"
19635 #: ../fish/guestfish.pod:508
19638 " rm '/file name'\n"
19643 #: ../fish/guestfish.pod:510
19651 #: ../fish/guestfish.pod:512
19653 "A few commands require a list of strings to be passed. For these, use a "
19654 "whitespace-separated list, enclosed in quotes. Strings containing "
19655 "whitespace to be passed through must be enclosed in single quotes. A "
19656 "literal single quote must be escaped with a backslash."
19660 #: ../fish/guestfish.pod:517
19663 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19664 " command \"/bin/echo 'foo bar'\"\n"
19665 " command \"/bin/echo \\'foo\\'\"\n"
19670 #: ../fish/guestfish.pod:521
19671 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19675 #: ../fish/guestfish.pod:523
19677 "In double-quoted arguments (only) use backslash to insert special characters:"
19681 #: ../fish/guestfish.pod:528
19686 #: ../fish/guestfish.pod:530
19687 msgid "Alert (bell) character."
19688 msgstr "Символ гудка (дзвінка)."
19691 #: ../fish/guestfish.pod:532
19696 #: ../fish/guestfish.pod:534
19697 msgid "Backspace character."
19701 #: ../fish/guestfish.pod:536
19706 #: ../fish/guestfish.pod:538
19707 msgid "Form feed character."
19711 #: ../fish/guestfish.pod:540
19716 #: ../fish/guestfish.pod:542
19717 msgid "Newline character."
19721 #: ../fish/guestfish.pod:544
19726 #: ../fish/guestfish.pod:546
19727 msgid "Carriage return character."
19728 msgstr "Символ повернення каретки."
19731 #: ../fish/guestfish.pod:548
19736 #: ../fish/guestfish.pod:550
19737 msgid "Horizontal tab character."
19738 msgstr "Символ горизонтальної табуляції"
19741 #: ../fish/guestfish.pod:552
19746 #: ../fish/guestfish.pod:554
19747 msgid "Vertical tab character."
19748 msgstr "Символ вертикальної табуляції."
19751 #: ../fish/guestfish.pod:556
19756 #: ../fish/guestfish.pod:558
19757 msgid "A literal double quote character."
19761 #: ../fish/guestfish.pod:560
19766 #: ../fish/guestfish.pod:562
19768 "A character with octal value I<ooo>. There must be precisely 3 octal digits "
19773 #: ../fish/guestfish.pod:565
19778 #: ../fish/guestfish.pod:567
19780 "A character with hex value I<hh>. There must be precisely 2 hex digits."
19784 #: ../fish/guestfish.pod:570
19786 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19791 #: ../fish/guestfish.pod:573
19796 #: ../fish/guestfish.pod:575
19797 msgid "A literal backslash character."
19801 #: ../fish/guestfish.pod:579
19802 msgid "OPTIONAL ARGUMENTS"
19806 #: ../fish/guestfish.pod:581
19808 "Some commands take optional arguments. These arguments appear in this "
19809 "documentation as C<[argname:..]>. You can use them as in these examples:"
19813 #: ../fish/guestfish.pod:585
19816 " add-drive-opts filename\n"
19821 #: ../fish/guestfish.pod:587
19824 " add-drive-opts filename readonly:true\n"
19829 #: ../fish/guestfish.pod:589
19832 " add-drive-opts filename format:qcow2 readonly:false\n"
19837 #: ../fish/guestfish.pod:591
19839 "Each optional argument can appear at most once. All optional arguments must "
19840 "appear after the required ones."
19844 #: ../fish/guestfish.pod:594
19849 #: ../fish/guestfish.pod:596
19851 "This section applies to all commands which can take integers as parameters."
19855 #: ../fish/guestfish.pod:599
19856 msgid "SIZE SUFFIX"
19860 #: ../fish/guestfish.pod:601
19862 "When the command takes a parameter measured in bytes, you can use one of the "
19863 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19867 #: ../fish/guestfish.pod:607
19868 msgid "B<k> or B<K> or B<KiB>"
19869 msgstr "B<k>, B<K> або B<KiB>"
19872 #: ../fish/guestfish.pod:609
19873 msgid "The size in kilobytes (multiplied by 1024)."
19874 msgstr "Розмір у кілобайтах (у одному кілобайті 1024 байтів)."
19877 #: ../fish/guestfish.pod:611
19882 #: ../fish/guestfish.pod:613
19883 msgid "The size in SI 1000 byte units."
19884 msgstr "Розмір у одиницях СІ: 1000 байтів."
19887 #: ../fish/guestfish.pod:615
19888 msgid "B<M> or B<MiB>"
19889 msgstr "B<M> або B<MiB>"
19892 #: ../fish/guestfish.pod:617
19893 msgid "The size in megabytes (multiplied by 1048576)."
19894 msgstr "Розмір у мегабайтах (у одному мегабайті 1048576 байтів)."
19897 #: ../fish/guestfish.pod:619
19902 #: ../fish/guestfish.pod:621
19903 msgid "The size in SI 1000000 byte units."
19904 msgstr "Розмір у одиницях СІ: 1000000 байтів."
19907 #: ../fish/guestfish.pod:623
19908 msgid "B<G> or B<GiB>"
19909 msgstr "B<G> або B<GiB>"
19912 #: ../fish/guestfish.pod:625
19913 msgid "The size in gigabytes (multiplied by 2**30)."
19914 msgstr "Розмір у гігабайтах (з множником 2**30)."
19917 #: ../fish/guestfish.pod:627
19922 #: ../fish/guestfish.pod:629
19923 msgid "The size in SI 10**9 byte units."
19924 msgstr "Розмір у одиницях СІ: 10**9 байтів."
19927 #: ../fish/guestfish.pod:631
19928 msgid "B<T> or B<TiB>"
19929 msgstr "B<T> або B<TiB>"
19932 #: ../fish/guestfish.pod:633
19933 msgid "The size in terabytes (multiplied by 2**40)."
19934 msgstr "Розмір у терабайтах (з множником 2**40)."
19937 #: ../fish/guestfish.pod:635
19942 #: ../fish/guestfish.pod:637
19943 msgid "The size in SI 10**12 byte units."
19944 msgstr "Розмір у одиницях СІ: 10**12 байтів."
19947 #: ../fish/guestfish.pod:639
19948 msgid "B<P> or B<PiB>"
19949 msgstr "B<P> або B<PiB>"
19952 #: ../fish/guestfish.pod:641
19953 msgid "The size in petabytes (multiplied by 2**50)."
19954 msgstr "Розмір у петабайтах (у одному петабайті 2**50 байтів)."
19957 #: ../fish/guestfish.pod:643
19962 #: ../fish/guestfish.pod:645
19963 msgid "The size in SI 10**15 byte units."
19964 msgstr "Розмір у одиницях СІ: 10**15 байтів."
19967 #: ../fish/guestfish.pod:647
19968 msgid "B<E> or B<EiB>"
19969 msgstr "B<E> або B<EiB>"
19972 #: ../fish/guestfish.pod:649
19973 msgid "The size in exabytes (multiplied by 2**60)."
19974 msgstr "Розмір у ексабайтах (у одному ексабайті 2**60 байтів)."
19977 #: ../fish/guestfish.pod:651
19982 #: ../fish/guestfish.pod:653
19983 msgid "The size in SI 10**18 byte units."
19984 msgstr "Розмір у одиницях СІ: 10**18 байтів."
19987 #: ../fish/guestfish.pod:655
19988 msgid "B<Z> or B<ZiB>"
19989 msgstr "B<Z> або B<ZiB>"
19992 #: ../fish/guestfish.pod:657
19993 msgid "The size in zettabytes (multiplied by 2**70)."
19994 msgstr "Розмір у зетабайтах (у одному зетабайті 2**70 байтів)."
19997 #: ../fish/guestfish.pod:659
20002 #: ../fish/guestfish.pod:661
20003 msgid "The size in SI 10**21 byte units."
20004 msgstr "Розмір у одиницях СІ: 10**21 байтів."
20007 #: ../fish/guestfish.pod:663
20008 msgid "B<Y> or B<YiB>"
20009 msgstr "B<Y> або B<YiB>"
20012 #: ../fish/guestfish.pod:665
20013 msgid "The size in yottabytes (multiplied by 2**80)."
20014 msgstr "Розмір у йотабайтах (у одному йотабайті 2**80 байтів)."
20017 #: ../fish/guestfish.pod:667
20022 #: ../fish/guestfish.pod:669
20023 msgid "The size in SI 10**24 byte units."
20024 msgstr "Розмір у одиницях СІ: 10**24 байтів."
20027 #: ../fish/guestfish.pod:675
20030 " truncate-size /file 1G\n"
20035 #: ../fish/guestfish.pod:677
20036 msgid "would truncate the file to 1 gigabyte."
20040 #: ../fish/guestfish.pod:679
20042 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
20043 "the parameter to L</memsize> is specified in megabytes already). Adding a "
20044 "suffix will probably not do what you expect."
20048 #: ../fish/guestfish.pod:683
20049 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20053 #: ../fish/guestfish.pod:685
20055 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20056 "octal number or C<0x> to prefix a hexadecimal number. For example:"
20060 #: ../fish/guestfish.pod:688
20063 " 1234 decimal number 1234\n"
20064 " 02322 octal number, equivalent to decimal 1234\n"
20065 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
20070 #: ../fish/guestfish.pod:692
20072 "When using the C<chmod> command, you almost always want to specify an octal "
20073 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20074 "L<chmod(1)> program):"
20078 #: ../fish/guestfish.pod:696
20081 " chmod 0777 /public # OK\n"
20082 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
20087 #: ../fish/guestfish.pod:699
20089 "Commands that return numbers usually print them in decimal, but some "
20090 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20091 "octal, preceeded by C<0>)."
20095 #: ../fish/guestfish.pod:703
20096 msgid "WILDCARDS AND GLOBBING"
20100 #: ../fish/guestfish.pod:705
20102 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20103 "(globbing) by default. So for example the following will not do what you "
20108 #: ../fish/guestfish.pod:709
20116 #: ../fish/guestfish.pod:711
20118 "Assuming you don't have a directory called literally C</home/*> then the "
20119 "above command will return an error."
20123 #: ../fish/guestfish.pod:714
20124 msgid "To perform wildcard expansion, use the C<glob> command."
20128 #: ../fish/guestfish.pod:716
20131 " glob rm-rf /home/*\n"
20136 #: ../fish/guestfish.pod:718
20138 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20139 "many times), equivalent to:"
20143 #: ../fish/guestfish.pod:721
20146 " rm-rf /home/jim\n"
20147 " rm-rf /home/joe\n"
20148 " rm-rf /home/mary\n"
20153 #: ../fish/guestfish.pod:725
20154 msgid "C<glob> only works on simple guest paths and not on device names."
20158 #: ../fish/guestfish.pod:727
20160 "If you have several parameters, each containing a wildcard, then glob will "
20161 "perform a Cartesian product."
20165 #: ../fish/guestfish.pod:730
20170 #: ../fish/guestfish.pod:732
20172 "Any line which starts with a I<#> character is treated as a comment and "
20173 "ignored. The I<#> can optionally be preceeded by whitespace, but B<not> by "
20174 "a command. For example:"
20178 #: ../fish/guestfish.pod:736
20181 " # this is a comment\n"
20182 " # this is a comment\n"
20183 " foo # NOT a comment\n"
20188 #: ../fish/guestfish.pod:740
20189 msgid "Blank lines are also ignored."
20193 #: ../fish/guestfish.pod:742
20194 msgid "RUNNING COMMANDS LOCALLY"
20198 #: ../fish/guestfish.pod:744
20200 "Any line which starts with a I<!> character is treated as a command sent to "
20201 "the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
20205 #: ../fish/guestfish.pod:748
20209 " tgz-out /remote local/remote-data.tar.gz\n"
20214 #: ../fish/guestfish.pod:751
20216 "will create a directory C<local> on the host, and then export the contents "
20217 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
20218 "(See C<tgz-out>)."
20222 #: ../fish/guestfish.pod:755
20224 "To change the local directory, use the C<lcd> command. C<!cd> will have no "
20225 "effect, due to the way that subprocesses work in Unix."
20229 #: ../fish/guestfish.pod:758
20230 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20234 #: ../fish/guestfish.pod:760
20236 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20237 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20238 "and executed as guestfish commands."
20242 #: ../fish/guestfish.pod:764
20244 "Thus you can use shell script to construct arbitrary guestfish commands "
20245 "which are then parsed by guestfish."
20249 #: ../fish/guestfish.pod:767
20251 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20252 "through C</foo.100>) using guestfish commands alone. However this is simple "
20253 "if we use a shell script to create the guestfish commands for us:"
20257 #: ../fish/guestfish.pod:772
20260 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20265 #: ../fish/guestfish.pod:774
20266 msgid "or with names like C</foo.001>:"
20270 #: ../fish/guestfish.pod:776
20273 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20278 #: ../fish/guestfish.pod:778
20280 "When using guestfish interactively it can be helpful to just run the shell "
20281 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20282 "ordinary I<!> local command), see what guestfish commands it would run, and "
20283 "when you are happy with those prepend the C<E<lt>> character to run the "
20284 "guestfish commands for real."
20288 #: ../fish/guestfish.pod:784
20293 #: ../fish/guestfish.pod:786
20295 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20296 "command (a guestfish command) to the second command (any host command). For "
20301 #: ../fish/guestfish.pod:790
20304 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20309 #: ../fish/guestfish.pod:792
20311 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20312 "program). The above command would list all accounts in the guest filesystem "
20313 "which have UID 0, ie. root accounts including backdoors. Other examples:"
20317 #: ../fish/guestfish.pod:797
20320 " hexdump /bin/ls | head\n"
20321 " list-devices | tail -1\n"
20322 " tgz-out / - | tar ztf -\n"
20327 #: ../fish/guestfish.pod:801
20329 "The space before the pipe symbol is required, any space after the pipe "
20330 "symbol is optional. Everything after the pipe symbol is just passed "
20331 "straight to the host shell, so it can contain redirections, globs and "
20332 "anything else that makes sense on the host side."
20336 #: ../fish/guestfish.pod:806
20338 "To use a literal argument which begins with a pipe symbol, you have to quote "
20343 #: ../fish/guestfish.pod:809
20351 #: ../fish/guestfish.pod:811
20352 msgid "HOME DIRECTORIES"
20356 #: ../fish/guestfish.pod:813
20358 "If a parameter starts with the character C<~> then the tilde may be expanded "
20359 "as a home directory path (either C<~> for the current user's home directory, "
20360 "or C<~user> for another user)."
20364 #: ../fish/guestfish.pod:817
20366 "Note that home directory expansion happens for users known I<on the host>, "
20367 "not in the guest filesystem."
20371 #: ../fish/guestfish.pod:820
20373 "To use a literal argument which begins with a tilde, you have to quote it, "
20378 #: ../fish/guestfish.pod:823
20386 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
20387 msgid "ENCRYPTED DISKS"
20388 msgstr "ЗАШИФРОВАНІ ДИСКИ"
20391 #: ../fish/guestfish.pod:827
20393 "Libguestfs has some support for Linux guests encrypted according to the "
20394 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20395 "disk encryption systems used by modern Linux guests. Currently only LVM-on-"
20396 "LUKS is supported."
20400 #: ../fish/guestfish.pod:832
20401 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20405 #: ../fish/guestfish.pod:834
20408 " ><fs> vfs-type /dev/sda2\n"
20414 #: ../fish/guestfish.pod:837
20416 "Then open those devices using L</luks-open>. This creates a device-mapper "
20417 "device called C</dev/mapper/luksdev>."
20421 #: ../fish/guestfish.pod:840
20424 " ><fs> luks-open /dev/sda2 luksdev\n"
20425 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20430 #: ../fish/guestfish.pod:843
20432 "Finally you have to tell LVM to scan for volume groups on the newly created "
20437 #: ../fish/guestfish.pod:846
20441 " vg-activate-all true\n"
20446 #: ../fish/guestfish.pod:849
20447 msgid "The logical volume(s) can now be mounted in the usual way."
20451 #: ../fish/guestfish.pod:851
20453 "Before closing a LUKS device you must unmount any logical volumes on it and "
20454 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20455 "one. Then you can close the mapper device:"
20459 #: ../fish/guestfish.pod:855
20462 " vg-activate false /dev/VG\n"
20463 " luks-close /dev/mapper/luksdev\n"
20468 #: ../fish/guestfish.pod:860
20470 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20471 "letters and paths (with some limitations). The following commands are "
20476 #: ../fish/guestfish.pod:864
20479 " file /WINDOWS/system32/config/system.LOG\n"
20484 #: ../fish/guestfish.pod:866
20487 " file win:\\windows\\system32\\config\\system.log\n"
20492 #: ../fish/guestfish.pod:868
20495 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20500 #: ../fish/guestfish.pod:870
20502 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20503 "where the drive is mounted, prepending that to the path, changing all "
20504 "backslash characters to forward slash, then resolving the result using L</"
20505 "case-sensitive-path>. For example if the E: drive was mounted on C</e> then "
20506 "the parameter might be rewritten like this:"
20510 #: ../fish/guestfish.pod:876
20513 " win:e:\\foo\\bar => /e/FOO/bar\n"
20518 #: ../fish/guestfish.pod:878
20519 msgid "This only works in argument positions that expect a path."
20523 #: ../fish/guestfish.pod:880
20524 msgid "UPLOADING AND DOWNLOADING FILES"
20528 #: ../fish/guestfish.pod:882
20530 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20531 "others which upload from or download to a local file, you can use the "
20532 "special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
20536 #: ../fish/guestfish.pod:886
20544 #: ../fish/guestfish.pod:888
20546 "reads stdin and creates from that a file C</foo> in the disk image, and:"
20550 #: ../fish/guestfish.pod:891
20553 " tar-out /etc - | tar tf -\n"
20558 #: ../fish/guestfish.pod:893
20560 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20561 "command (see L</PIPES>)."
20565 #: ../fish/guestfish.pod:896
20567 "When using C<-> to read from stdin, the input is read up to the end of "
20568 "stdin. You can also use a special \"heredoc\"-like syntax to read up to "
20569 "some arbitrary end marker:"
20573 #: ../fish/guestfish.pod:900
20576 " upload -<<END /foo\n"
20585 #: ../fish/guestfish.pod:906
20587 "Any string of characters can be used instead of C<END>. The end marker must "
20588 "appear on a line of its own, without any preceeding or following characters "
20589 "(not even spaces)."
20593 #: ../fish/guestfish.pod:910
20595 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20596 "upload local files (so-called \"FileIn\" parameters in the generator)."
20600 #: ../fish/guestfish.pod:913
20601 msgid "EXIT ON ERROR BEHAVIOUR"
20605 #: ../fish/guestfish.pod:915
20607 "By default, guestfish will ignore any errors when in interactive mode (ie. "
20608 "taking commands from a human over a tty), and will exit on the first error "
20609 "in non-interactive mode (scripts, commands given on the command line)."
20613 #: ../fish/guestfish.pod:920
20615 "If you prefix a command with a I<-> character, then that command will not "
20616 "cause guestfish to exit, even if that (one) command returns an error."
20620 #: ../fish/guestfish.pod:924
20621 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20625 #: ../fish/guestfish.pod:926
20627 "Guestfish can be remote-controlled over a socket. This is useful "
20628 "particularly in shell scripts where you want to make several different "
20629 "changes to a filesystem, but you don't want the overhead of starting up a "
20630 "guestfish process each time."
20634 #: ../fish/guestfish.pod:931
20635 msgid "Start a guestfish server process using:"
20639 #: ../fish/guestfish.pod:933
20642 " eval \"`guestfish --listen`\"\n"
20647 #: ../fish/guestfish.pod:935
20648 msgid "and then send it commands by doing:"
20652 #: ../fish/guestfish.pod:937
20655 " guestfish --remote cmd [...]\n"
20660 #: ../fish/guestfish.pod:939
20661 msgid "To cause the server to exit, send it the exit command:"
20665 #: ../fish/guestfish.pod:943
20667 "Note that the server will normally exit if there is an error in a command. "
20668 "You can change this in the usual way. See section L</EXIT ON ERROR "
20673 #: ../fish/guestfish.pod:947
20674 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20678 #: ../fish/guestfish.pod:949
20680 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20681 "is how the I<--remote> option knows where to send the commands. You can "
20682 "have several guestfish listener processes running using:"
20686 #: ../fish/guestfish.pod:953
20689 " eval \"`guestfish --listen`\"\n"
20690 " pid1=$GUESTFISH_PID\n"
20691 " eval \"`guestfish --listen`\"\n"
20692 " pid2=$GUESTFISH_PID\n"
20694 " guestfish --remote=$pid1 cmd\n"
20695 " guestfish --remote=$pid2 cmd\n"
20700 #: ../fish/guestfish.pod:961
20701 msgid "REMOTE CONTROL AND CSH"
20705 #: ../fish/guestfish.pod:963
20707 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20712 #: ../fish/guestfish.pod:966
20715 " eval \"`guestfish --listen --csh`\"\n"
20720 #: ../fish/guestfish.pod:968
20721 msgid "REMOTE CONTROL DETAILS"
20725 #: ../fish/guestfish.pod:970
20727 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
20728 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
20729 "and C<$PID> is the process ID of the server."
20733 #: ../fish/guestfish.pod:974
20734 msgid "Guestfish client and server versions must match exactly."
20738 #: ../fish/guestfish.pod:976
20739 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20743 #: ../fish/guestfish.pod:978
20745 "From Bash, you can use the following code which creates a guestfish "
20746 "instance, correctly quotes the command line, handles failure to start, and "
20747 "cleans up guestfish when the script exits:"
20751 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
20759 #: ../fish/guestfish.pod:986
20762 " guestfish[0]=\"guestfish\"\n"
20763 " guestfish[1]=\"--listen\"\n"
20764 " guestfish[2]=\"--ro\"\n"
20765 " guestfish[3]=\"-a\"\n"
20766 " guestfish[4]=\"disk.img\"\n"
20771 #: ../fish/guestfish.pod:992
20774 " GUESTFISH_PID=\n"
20775 " eval $(\"${guestfish[@]}\")\n"
20776 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20777 " echo \"error: guestfish didn't start up, see error messages above\"\n"
20784 #: ../fish/guestfish.pod:999
20787 " cleanup_guestfish ()\n"
20789 " guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20791 " trap cleanup_guestfish EXIT ERR\n"
20796 #: ../fish/guestfish.pod:1005
20799 " guestfish --remote -- run\n"
20804 #: ../fish/guestfish.pod:1007
20812 #: ../fish/guestfish.pod:1009
20813 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20817 #: ../fish/guestfish.pod:1011
20819 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20820 "context hangs, ie. don't do (note the backquotes):"
20824 #: ../fish/guestfish.pod:1014
20827 " a=`guestfish --remote run`\n"
20832 #: ../fish/guestfish.pod:1016
20834 "Since the C<run> command produces no output on stdout, this is not useful "
20835 "anyway. For further information see L<https://bugzilla.redhat.com/show_bug."
20840 #: ../fish/guestfish.pod:1020
20841 msgid "PREPARED DISK IMAGES"
20845 #: ../fish/guestfish.pod:1022
20847 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20848 "preformatted disk images that guestfish can make for you to save typing. "
20849 "This is particularly useful for testing purposes. This option is used "
20850 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20851 "can be mixed with I<-a>)."
20855 #: ../fish/guestfish.pod:1028
20857 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20858 "the second and so on. Existing files in the current directory are "
20863 #: ../fish/guestfish.pod:1032
20865 "The type briefly describes how the disk should be sized, partitioned, how "
20866 "filesystem(s) should be created, and how content should be added. "
20867 "Optionally the type can be followed by extra parameters, separated by C<:> "
20868 "(colon) characters. For example, I<-N fs> creates a default 100MB, sparsely-"
20869 "allocated disk, containing a single partition, with the partition formatted "
20870 "as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
20875 #: ../fish/guestfish.pod:1040
20876 msgid "To list the available types and any extra parameters they take, run:"
20880 #: ../fish/guestfish.pod:1044
20882 "Note that the prepared filesystem is not mounted. You would usually have to "
20883 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20887 #: ../fish/guestfish.pod:1048
20889 "If any I<-N> or I<--new> options are given, the guest is automatically "
20894 #: ../fish/guestfish.pod:1053
20895 msgid "Create a 100MB disk with an ext4-formatted partition:"
20899 #: ../fish/guestfish.pod:1055
20902 " guestfish -N fs:ext4\n"
20907 #: ../fish/guestfish.pod:1057
20908 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20912 #: ../fish/guestfish.pod:1059
20915 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20920 #: ../fish/guestfish.pod:1061
20921 msgid "Create a blank 200MB disk:"
20925 #: ../fish/guestfish.pod:1063
20928 " guestfish -N disk:200M\n"
20933 #: ../fish/guestfish.pod:1065
20934 msgid "PROGRESS BARS"
20938 #: ../fish/guestfish.pod:1067
20940 "Some (not all) long-running commands send progress notification messages as "
20941 "they are running. Guestfish turns these messages into progress bars."
20945 #: ../fish/guestfish.pod:1071
20947 "When a command that supports progress bars takes longer than two seconds to "
20948 "run, and if progress bars are enabled, then you will see one appearing below "
20953 #: ../fish/guestfish.pod:1075
20956 " ><fs> copy-size /large-file /another-file 2048M\n"
20957 " / 10% [#####-----------------------------------------] 00:30\n"
20962 #: ../fish/guestfish.pod:1078
20964 "The spinner on the left hand side moves round once for every progress "
20965 "notification received from the backend. This is a (reasonably) golden "
20966 "assurance that the command is \"doing something\" even if the progress bar "
20967 "is not moving, because the command is able to send the progress "
20968 "notifications. When the bar reaches 100% and the command finishes, the "
20969 "spinner disappears."
20973 #: ../fish/guestfish.pod:1085
20975 "Progress bars are enabled by default when guestfish is used interactively. "
20976 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20977 "and you can disable them completely using I<--no-progress-bars>."
20981 #: ../fish/guestfish.pod:1090
20982 msgid "GUESTFISH COMMANDS"
20986 #: ../fish/guestfish.pod:1092
20988 "The commands in this section are guestfish convenience commands, in other "
20989 "words, they are not part of the L<guestfs(3)> API."
20993 #: ../fish/guestfish.pod:1095
20998 #: ../fish/guestfish.pod:1097
21010 #: ../fish/guestfish.pod:1100
21011 msgid "Without any parameter, this provides general help."
21012 msgstr "Без параметра показує загальну довідкову інформацію."
21015 #: ../fish/guestfish.pod:1102
21016 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21020 #: ../fish/guestfish.pod:1104
21021 msgid "quit | exit"
21025 #: ../fish/guestfish.pod:1106
21026 msgid "This exits guestfish. You can also use C<^D> key."
21030 #: ../fish/guestfish.pod:1108
21031 msgid "@FISH_COMMANDS@"
21035 #: ../fish/guestfish.pod:1110
21040 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
21045 #: ../fish/guestfish.pod:1116
21047 "guestfish returns 0 if the commands completed without error, or 1 if there "
21052 #: ../fish/guestfish.pod:1123
21057 #: ../fish/guestfish.pod:1125
21059 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
21064 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3213
21065 msgid "FEBOOTSTRAP_KERNEL"
21069 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3215
21070 msgid "FEBOOTSTRAP_MODULES"
21074 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3217
21076 "These two environment variables allow the kernel that libguestfs uses in the "
21077 "appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
21078 "most recent host kernel is chosen. For more information about kernel "
21079 "selection, see L<febootstrap-supermin-helper(8)>. This feature is only "
21080 "available in febootstrap E<ge> 3.8."
21084 #: ../fish/guestfish.pod:1138
21085 msgid "GUESTFISH_DISPLAY_IMAGE"
21089 #: ../fish/guestfish.pod:1140
21091 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
21092 "If not set, it uses L<display(1)>."
21096 #: ../fish/guestfish.pod:1143
21097 msgid "GUESTFISH_PID"
21101 #: ../fish/guestfish.pod:1145
21103 "Used with the I<--remote> option to specify the remote guestfish process to "
21104 "control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21108 #: ../fish/guestfish.pod:1149
21113 #: ../fish/guestfish.pod:1151
21115 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
21116 "not specified, the external L<hexedit(1)> program is used."
21120 #: ../fish/guestfish.pod:1155
21125 #: ../fish/guestfish.pod:1157
21127 "If compiled with GNU readline support, various files in the home directory "
21128 "can be used. See L</FILES>."
21132 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3223
21133 msgid "LIBGUESTFS_APPEND"
21137 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3225
21138 msgid "Pass additional options to the guest kernel."
21142 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3227
21143 msgid "LIBGUESTFS_DEBUG"
21144 msgstr "LIBGUESTFS_DEBUG"
21147 #: ../fish/guestfish.pod:1166
21149 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
21150 "effect as using the B<-v> option."
21154 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3232
21155 msgid "LIBGUESTFS_MEMSIZE"
21156 msgstr "LIBGUESTFS_MEMSIZE"
21159 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3234
21161 "Set the memory allocated to the qemu process, in megabytes. For example:"
21165 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3237
21168 " LIBGUESTFS_MEMSIZE=700\n"
21171 " LIBGUESTFS_MEMSIZE=700\n"
21175 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3239
21176 msgid "LIBGUESTFS_PATH"
21180 #: ../fish/guestfish.pod:1178
21182 "Set the path that guestfish uses to search for kernel and initrd.img. See "
21183 "the discussion of paths in L<guestfs(3)>."
21187 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3244
21188 msgid "LIBGUESTFS_QEMU"
21192 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3246
21194 "Set the default qemu binary that libguestfs uses. If not set, then the qemu "
21195 "which was found at compile time by the configure script is used."
21199 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3252
21200 msgid "LIBGUESTFS_TRACE"
21204 #: ../fish/guestfish.pod:1189
21205 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21209 #: ../fish/guestfish.pod:1191
21211 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
21214 #: ../fish/guestfish.pod:1193
21216 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
21221 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
21222 #: ../src/guestfs.pod:3257
21227 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3259
21229 "Location of temporary directory, defaults to C</tmp> except for the cached "
21230 "supermin appliance which defaults to C</var/tmp>."
21234 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3262
21236 "If libguestfs was compiled to use the supermin appliance then the real "
21237 "appliance is cached in this directory, shared between all handles belonging "
21238 "to the same EUID. You can use C<$TMPDIR> to configure another directory to "
21239 "use in case C</var/tmp> is not large enough."
21243 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
21244 #: ../rescue/virt-rescue.pod:273
21249 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
21250 #: ../rescue/virt-rescue.pod:277
21251 msgid "$HOME/.libguestfs-tools.rc"
21255 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
21256 #: ../rescue/virt-rescue.pod:279
21257 msgid "/etc/libguestfs-tools.conf"
21261 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
21262 #: ../rescue/virt-rescue.pod:281
21264 "This configuration file controls the default read-only or read-write mode "
21265 "(I<--ro> or I<--rw>)."
21269 #: ../fish/guestfish.pod:1220
21270 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21271 msgstr "Див. L</OPENING DISKS FOR READ AND WRITE>."
21274 #: ../fish/guestfish.pod:1222
21275 msgid "$HOME/.guestfish"
21279 #: ../fish/guestfish.pod:1224
21281 "If compiled with GNU readline support, then the command history is saved in "
21286 #: ../fish/guestfish.pod:1227
21287 msgid "$HOME/.inputrc"
21291 #: ../fish/guestfish.pod:1229
21292 msgid "/etc/inputrc"
21296 #: ../fish/guestfish.pod:1231
21298 "If compiled with GNU readline support, then these files can be used to "
21299 "configure readline. For further information, please see L<readline(3)/"
21300 "INITIALIZATION FILE>."
21304 #: ../fish/guestfish.pod:1235
21305 msgid "To write rules which only apply to guestfish, use:"
21309 #: ../fish/guestfish.pod:1237
21319 #: ../fish/guestfish.pod:1241
21321 "Variables that you can set in inputrc that change the behaviour of guestfish "
21322 "in useful ways include:"
21326 #: ../fish/guestfish.pod:1246
21327 msgid "completion-ignore-case (default: on)"
21331 #: ../fish/guestfish.pod:1248
21333 "By default, guestfish will ignore case when tab-completing paths on the "
21338 #: ../fish/guestfish.pod:1251
21341 " set completion-ignore-case off\n"
21346 #: ../fish/guestfish.pod:1253
21347 msgid "to make guestfish case sensitive."
21351 #: ../fish/guestfish.pod:1257
21356 #: ../fish/guestfish.pod:1259
21357 msgid "test2.img (etc)"
21361 #: ../fish/guestfish.pod:1261
21363 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21364 "will be created in the file C<test1.img> in the current directory. The "
21365 "second use of I<-N> will use C<test2.img> and so on. Any existing file with "
21366 "the same name will be overwritten."
21370 #: ../fish/guestfish.pod:1270
21372 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
21373 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
21374 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
21375 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
21376 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
21377 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
21378 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
21382 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3354
21383 #: ../test-tool/libguestfs-test-tool.pod:112
21384 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
21388 #: ../fish/virt-copy-in.pod:5
21390 "virt-copy-in - Copy files and directories into a virtual machine disk image."
21394 #: ../fish/virt-copy-in.pod:9
21397 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21402 #: ../fish/virt-copy-in.pod:11
21405 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21410 #: ../fish/virt-copy-in.pod:15
21412 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21413 "causing disk corruption. The virtual machine must be shut down before you "
21414 "use this command."
21418 #: ../fish/virt-copy-in.pod:21
21420 "C<virt-copy-in> copies files and directories from the local disk into a "
21421 "virtual machine disk image or named libvirt domain."
21425 #: ../fish/virt-copy-in.pod:24
21427 "You can give one of more filenames and directories on the command line. "
21428 "Directories are copied in recursively. The final parameter must be the "
21429 "destination directory in the disk image which must be an absolute path "
21430 "starting with a C</> character."
21434 #: ../fish/virt-copy-in.pod:33
21437 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21442 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21443 msgid "Upload a home directory to a guest:"
21447 #: ../fish/virt-copy-in.pod:37
21450 " virt-copy-in -d MyGuest skel /home\n"
21455 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
21456 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21457 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21461 #: ../fish/virt-copy-in.pod:41
21463 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21464 "> C<copy-in> command. For anything more complex than a trivial copy, you "
21465 "are probably better off using guestfish directly."
21469 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
21470 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21472 "Since the shell script just passes options straight to guestfish, read "
21473 "L<guestfish(1)> to see the full list of options."
21477 #: ../fish/virt-copy-in.pod:52
21479 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21480 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21484 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
21485 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21486 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
21490 #: ../fish/virt-copy-out.pod:5
21492 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21497 #: ../fish/virt-copy-out.pod:9
21500 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21505 #: ../fish/virt-copy-out.pod:11
21508 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21513 #: ../fish/virt-copy-out.pod:15
21515 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21516 "image or named libvirt domain."
21520 #: ../fish/virt-copy-out.pod:18
21522 "You can give one of more filenames and directories on the command line. "
21523 "Directories are copied out recursively."
21527 #: ../fish/virt-copy-out.pod:23
21528 msgid "Download the home directories from a virtual machine:"
21532 #: ../fish/virt-copy-out.pod:25
21536 " virt-copy-out -d MyGuest /home homes\n"
21541 #: ../fish/virt-copy-out.pod:30
21543 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21544 "> C<copy-out> command. For anything more complex than a trivial copy, you "
21545 "are probably better off using guestfish directly."
21549 #: ../fish/virt-copy-out.pod:41
21551 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
21552 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21556 #: ../fish/virt-tar-in.pod:5
21557 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21561 #: ../fish/virt-tar-in.pod:9
21564 " virt-tar-in -a disk.img data.tar /destination\n"
21569 #: ../fish/virt-tar-in.pod:11
21572 " virt-tar-in -d domain data.tar /destination\n"
21577 #: ../fish/virt-tar-in.pod:13
21580 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21585 #: ../fish/virt-tar-in.pod:17
21587 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21588 "causing disk corruption. The virtual machine must be shut down before you "
21589 "use this command."
21593 #: ../fish/virt-tar-in.pod:23
21595 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21596 "image or named libvirt domain."
21600 #: ../fish/virt-tar-in.pod:26
21602 "The first parameter is the tar file. Use C<-> to read the tar file from "
21603 "standard input. The second parameter is the absolute target directory to "
21608 #: ../fish/virt-tar-in.pod:34
21611 " virt-tar-in -d MyGuest homes.tar /home\n"
21616 #: ../fish/virt-tar-in.pod:38
21618 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21619 "> C<tar-in> command. For anything more complex than a trivial copy, you are "
21620 "probably better off using guestfish directly."
21624 #: ../fish/virt-tar-in.pod:49
21626 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21627 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
21632 #: ../fish/virt-tar-out.pod:5
21634 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21638 #: ../fish/virt-tar-out.pod:9
21641 " virt-tar-out -a disk.img /dir files.tar\n"
21646 #: ../fish/virt-tar-out.pod:11
21649 " virt-tar-out -d domain /dir files.tar\n"
21654 #: ../fish/virt-tar-out.pod:13
21657 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21662 #: ../fish/virt-tar-out.pod:17
21664 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21668 #: ../fish/virt-tar-out.pod:20
21670 "The first parameter is the absolute path of the virtual machine directory. "
21671 "The second parameter is the tar file to write. Use C<-> to write to "
21676 #: ../fish/virt-tar-out.pod:26
21677 msgid "Download the home directories from a guest:"
21681 #: ../fish/virt-tar-out.pod:28
21684 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21689 #: ../fish/virt-tar-out.pod:32
21691 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21692 "> C<tar-out> command. For anything more complex than a trivial copy, you "
21693 "are probably better off using guestfish directly."
21697 #: ../fish/virt-tar-out.pod:43
21699 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21700 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21704 #: ../fuse/guestmount.pod:5
21706 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21710 #: ../fuse/guestmount.pod:9
21713 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21718 #: ../fuse/guestmount.pod:11
21721 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21726 #: ../fuse/guestmount.pod:13
21729 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21734 #: ../fuse/guestmount.pod:17
21736 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21737 "machines. If you do this, you risk disk corruption in the VM."
21741 #: ../fuse/guestmount.pod:22
21743 "The guestmount program can be used to mount virtual machine filesystems and "
21744 "other disk images on the host. It uses libguestfs for access to the guest "
21745 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21746 "a mountable device."
21750 #: ../fuse/guestmount.pod:27
21752 "Along with other options, you have to give at least one device (I<-a> "
21753 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21754 "option) or use the I<-i> inspection option. How this works is better "
21755 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
21760 #: ../fuse/guestmount.pod:33
21762 "FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
21763 "by you, and the filesystem will not be visible to any other users unless you "
21764 "make certain global configuration changes to C</etc/fuse.conf>. To unmount "
21765 "the filesystem, use the C<fusermount -u> command."
21769 #: ../fuse/guestmount.pod:41
21771 "For a typical Windows guest which has its main filesystem on the first "
21776 #: ../fuse/guestmount.pod:44
21779 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21784 #: ../fuse/guestmount.pod:46
21786 "For a typical Linux guest which has a /boot filesystem on the first "
21787 "partition, and the root filesystem on a logical volume:"
21791 #: ../fuse/guestmount.pod:49
21794 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21799 #: ../fuse/guestmount.pod:51
21800 msgid "To get libguestfs to detect guest mountpoints for you:"
21804 #: ../fuse/guestmount.pod:53
21807 " guestmount -a guest.img -i --ro /mnt\n"
21812 #: ../fuse/guestmount.pod:55
21813 msgid "For a libvirt guest called \"Guest\" you could do:"
21817 #: ../fuse/guestmount.pod:57
21820 " guestmount -d Guest -i --ro /mnt\n"
21825 #: ../fuse/guestmount.pod:59
21827 "If you don't know what filesystems are contained in a guest or disk image, "
21828 "use L<virt-filesystems(1)> first:"
21832 #: ../fuse/guestmount.pod:62
21835 " virt-filesystems MyGuest\n"
21840 #: ../fuse/guestmount.pod:64
21842 "If you want to trace the libguestfs calls but without excessive debugging "
21843 "information, we recommend:"
21847 #: ../fuse/guestmount.pod:67
21850 " guestmount [...] --trace /mnt\n"
21855 #: ../fuse/guestmount.pod:69
21856 msgid "If you want to debug the program, we recommend:"
21860 #: ../fuse/guestmount.pod:71
21863 " guestmount [...] --trace --verbose /mnt\n"
21868 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
21869 #: ../resize/virt-resize.pod:621
21874 #: ../fuse/guestmount.pod:75
21875 msgid "Other users cannot see the filesystem by default"
21879 #: ../fuse/guestmount.pod:77
21881 "If you mount a filesystem as one user (eg. root), then other users will not "
21882 "be able to see it by default. The fix is to add the FUSE C<allow_other> "
21883 "option when mounting:"
21887 #: ../fuse/guestmount.pod:81
21890 " sudo guestmount [...] -o allow_other /mnt\n"
21895 #: ../fuse/guestmount.pod:83
21896 msgid "Enabling FUSE"
21900 #: ../fuse/guestmount.pod:85
21902 "On some distros, you may need to add yourself to a special group (eg. "
21903 "C<fuse>) before you can use any FUSE filesystem. This is necessary on "
21904 "Debian and derivatives."
21908 #: ../fuse/guestmount.pod:89
21910 "On other distros, no special group is required. It is not necessary on "
21911 "Fedora or Red Hat Enterprise Linux."
21915 #: ../fuse/guestmount.pod:100
21916 msgid "Add a block device or virtual machine image."
21920 #: ../fuse/guestmount.pod:123
21921 msgid "B<--dir-cache-timeout N>"
21922 msgstr "B<--dir-cache-timeout N>"
21925 #: ../fuse/guestmount.pod:125
21927 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21928 "seconds. The readdir cache [actually, there are several semi-independent "
21929 "caches] is populated after a readdir(2) call with the stat and extended "
21930 "attributes of the files in the directory, in anticipation that they will be "
21931 "requested soon after."
21935 #: ../fuse/guestmount.pod:131
21937 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21938 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21939 "requests, only cache existing ones."
21943 #: ../fuse/guestmount.pod:151
21945 "If you have untrusted raw-format guest disk images, you should use this "
21946 "option to specify the disk format. This avoids a possible security problem "
21947 "with malicious guests (CVE-2010-3851). See also L<guestfs(3)/"
21948 "guestfs_add_drive_opts>."
21952 #: ../fuse/guestmount.pod:156
21953 msgid "B<--fuse-help>"
21954 msgstr "B<--fuse-help>"
21957 #: ../fuse/guestmount.pod:158
21958 msgid "Display help on special FUSE options (see I<-o> below)."
21962 #: ../fuse/guestmount.pod:162
21963 msgid "Display brief help and exit."
21967 #: ../fuse/guestmount.pod:186
21969 "Mount the named partition or logical volume on the given mountpoint B<in the "
21970 "guest> (this has nothing to do with mountpoints in the host)."
21974 #: ../fuse/guestmount.pod:189
21976 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
21977 "something on C</>."
21981 #: ../fuse/guestmount.pod:206
21983 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21984 "unmounted. If you specify this option, then we don't attempt to sync the "
21985 "disk. See the discussion of autosync in the L<guestfs(3)> manpage."
21989 #: ../fuse/guestmount.pod:211
21990 msgid "B<-o option>"
21991 msgstr "B<-o параметр>"
21994 #: ../fuse/guestmount.pod:213
21995 msgid "B<--option option>"
21996 msgstr "B<--option параметр>"
21999 #: ../fuse/guestmount.pod:215
22000 msgid "Pass extra options to FUSE."
22004 #: ../fuse/guestmount.pod:217
22006 "To get a list of all the extra options supported by FUSE, use the command "
22007 "below. Note that only the FUSE I<-o> options can be passed, and only some "
22008 "of them are a good idea."
22012 #: ../fuse/guestmount.pod:221
22015 " guestmount --fuse-help\n"
22020 #: ../fuse/guestmount.pod:223
22021 msgid "Some potentially useful FUSE options:"
22025 #: ../fuse/guestmount.pod:227
22026 msgid "B<-o allow_other>"
22030 #: ../fuse/guestmount.pod:229
22031 msgid "Allow other users to see the filesystem."
22035 #: ../fuse/guestmount.pod:231
22036 msgid "B<-o attr_timeout=N>"
22037 msgstr "B<-o attr_timeout=N>"
22040 #: ../fuse/guestmount.pod:233
22041 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22045 #: ../fuse/guestmount.pod:235
22046 msgid "B<-o kernel_cache>"
22050 #: ../fuse/guestmount.pod:237
22052 "Allow the kernel to cache files (reduces the number of reads that have to go "
22053 "through the L<guestfs(3)> API). This is generally a good idea if you can "
22054 "afford the extra memory usage."
22058 #: ../fuse/guestmount.pod:241
22059 msgid "B<-o uid=N> B<-o gid=N>"
22060 msgstr "B<-o uid=N> B<-o gid=N>"
22063 #: ../fuse/guestmount.pod:243
22065 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22066 "the chosen values."
22070 #: ../fuse/guestmount.pod:252
22072 "Add devices and mount everything read-only. Also disallow writes and make "
22073 "the disk appear read-only to FUSE."
22077 #: ../fuse/guestmount.pod:255
22079 "This is highly recommended if you are not going to edit the guest disk. If "
22080 "the guest is running and this option is I<not> supplied, then there is a "
22081 "strong risk of disk corruption in the guest. We try to prevent this from "
22082 "happening, but it is not always possible."
22086 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
22087 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22088 msgstr "Див. також L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22091 #: ../fuse/guestmount.pod:264
22092 msgid "Enable SELinux support for the guest."
22096 #: ../fuse/guestmount.pod:270
22097 msgid "Enable verbose messages from underlying libguestfs."
22101 #: ../fuse/guestmount.pod:276
22102 msgid "Display the program version and exit."
22106 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
22107 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
22108 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22109 msgstr "Див. L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22112 #: ../fuse/guestmount.pod:289
22114 msgstr "B<--trace>"
22117 #: ../fuse/guestmount.pod:291
22118 msgid "Trace libguestfs calls and entry into each FUSE function."
22122 #: ../fuse/guestmount.pod:293
22123 msgid "This also stops the daemon from forking into the background."
22127 #: ../fuse/guestmount.pod:319
22129 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22130 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22133 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22134 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22138 #: ../fuse/guestmount.pod:334
22139 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
22143 #: ../inspector/virt-inspector.pod:5
22145 "virt-inspector - Display operating system version and other information "
22146 "about a virtual machine"
22150 #: ../inspector/virt-inspector.pod:9
22153 " virt-inspector [--options] -d domname\n"
22158 #: ../inspector/virt-inspector.pod:11
22161 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
22166 #: ../inspector/virt-inspector.pod:15
22169 " virt-inspector domname\n"
22174 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
22177 " virt-inspector disk.img [disk.img ...]\n"
22182 #: ../inspector/virt-inspector.pod:21
22184 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22185 "determine the version of the operating system and other information about "
22186 "the virtual machine."
22190 #: ../inspector/virt-inspector.pod:25
22191 msgid "Virt-inspector produces XML output for feeding into other programs."
22195 #: ../inspector/virt-inspector.pod:27
22197 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22198 "the libvirt domain (see: C<virsh list --all>)."
22202 #: ../inspector/virt-inspector.pod:30
22204 "You can also run virt-inspector directly on disk images from a single "
22205 "virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain "
22206 "has several block devices, in which case you should list several I<-a> "
22207 "options one after another, with the first corresponding to the guest's C</"
22208 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
22212 #: ../inspector/virt-inspector.pod:37
22214 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22215 "keys and similar."
22219 #: ../inspector/virt-inspector.pod:40
22221 "Virt-inspector can only inspect and report upon I<one domain at a time>. To "
22222 "inspect several virtual machines, you have to run virt-inspector several "
22223 "times (for example, from a shell script for-loop)."
22227 #: ../inspector/virt-inspector.pod:45
22229 "Because virt-inspector needs direct access to guest images, it won't "
22230 "normally work over remote libvirt connections."
22234 #: ../inspector/virt-inspector.pod:48
22236 "All of the information available from virt-inspector is also available "
22237 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
22238 "The same information can also be fetched using guestfish or via libguestfs "
22239 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22240 "WITH OTHER PROGRAMMING LANGUAGES>)."
22244 #: ../inspector/virt-inspector.pod:81
22246 "Libvirt is only used if you specify a C<domname> on the command line. If "
22247 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22252 #: ../inspector/virt-inspector.pod:94
22254 "When prompting for keys and passphrases, virt-inspector normally turns "
22255 "echoing off so you cannot see what you are typing. If you are not worried "
22256 "about Tempest attacks and there is no one else in the room you can specify "
22257 "this flag to see what you are typing."
22261 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
22262 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
22263 #: ../tools/virt-win-reg.pl:144
22265 "Specify the format of disk images given on the command line. If this is "
22266 "omitted then the format is autodetected from the content of the disk image."
22270 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
22271 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
22272 #: ../tools/virt-win-reg.pl:148
22274 "If disk images are requested from libvirt, then this program asks libvirt "
22275 "for this information. In this case, the value of the format parameter is "
22280 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:391
22281 #: ../resize/virt-resize.pod:483 ../sparsify/virt-sparsify.pod:132
22282 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
22283 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22285 "If working with untrusted raw-format guest disk images, you should ensure "
22286 "the format is always specified."
22290 #: ../inspector/virt-inspector.pod:139
22291 msgid "Previous versions of virt-inspector allowed you to write either:"
22295 #: ../inspector/virt-inspector.pod:145
22298 " virt-inspector guestname\n"
22303 #: ../inspector/virt-inspector.pod:153
22308 #: ../inspector/virt-inspector.pod:155
22310 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22311 "C<virt-inspector.rng> which is supplied with libguestfs. This section is "
22312 "just an overview."
22316 #: ../inspector/virt-inspector.pod:159
22318 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22319 "more E<lt>operatingsystemE<gt> elements. You would only see more than one "
22320 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22321 "which is vanishingly rare in real world VMs."
22325 #: ../inspector/virt-inspector.pod:164
22326 msgid "E<lt>operatingsystemE<gt>"
22330 #: ../inspector/virt-inspector.pod:166
22332 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22333 "describe the operating system, its architecture, the descriptive \"product "
22334 "name\" string, the type of OS and so on, as in this example:"
22338 #: ../inspector/virt-inspector.pod:170
22341 " <operatingsystems>\n"
22342 " <operatingsystem>\n"
22343 " <root>/dev/sda2</root>\n"
22344 " <name>windows</name>\n"
22345 " <arch>i386</arch>\n"
22346 " <distro>windows</distro>\n"
22347 " <product_name>Windows 7 Enterprise</product_name>\n"
22348 " <product_variant>Client</product_variant>\n"
22349 " <major_version>6</major_version>\n"
22350 " <minor_version>1</minor_version>\n"
22351 " <windows_systemroot>/Windows</windows_systemroot>\n"
22352 " <format>installed</format>\n"
22357 #: ../inspector/virt-inspector.pod:183
22359 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22360 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22361 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22362 "architecture. The other fields are fairly self-explanatory, but because "
22363 "these fields are taken directly from the libguestfs inspection API you can "
22364 "find precise information from L<guestfs(3)/INSPECTION>."
22368 #: ../inspector/virt-inspector.pod:191
22370 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22371 "of view of libguestfs (block devices may have completely different names "
22372 "inside the VM itself)."
22376 #: ../inspector/virt-inspector.pod:195
22377 msgid "E<lt>mountpointsE<gt>"
22381 #: ../inspector/virt-inspector.pod:197
22383 "Un*x-like guests typically have multiple filesystems which are mounted at "
22384 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22385 "element which looks like this:"
22389 #: ../inspector/virt-inspector.pod:201
22392 " <operatingsystems>\n"
22393 " <operatingsystem>\n"
22396 " <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22397 " <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22398 " </mountpoints>\n"
22403 #: ../inspector/virt-inspector.pod:209
22405 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22406 "and may have completely different names inside the guest. Only mountable "
22407 "filesystems appear in this list, not things like swap devices."
22411 #: ../inspector/virt-inspector.pod:214
22412 msgid "E<lt>filesystemsE<gt>"
22416 #: ../inspector/virt-inspector.pod:216
22418 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22419 "filesystems belonging to the guest, including swap and empty partitions. "
22420 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22421 "this OS or shared with this OS and other OSes)."
22425 #: ../inspector/virt-inspector.pod:222
22426 msgid "You might see something like this:"
22430 #: ../inspector/virt-inspector.pod:224
22433 " <operatingsystems>\n"
22434 " <operatingsystem>\n"
22437 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22438 " <type>ext4</type>\n"
22439 " <label>Fedora-13-x86_64</label>\n"
22440 " <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22446 #: ../inspector/virt-inspector.pod:234
22448 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22449 "the label, and the UUID."
22453 #: ../inspector/virt-inspector.pod:237
22454 msgid "E<lt>applicationsE<gt>"
22458 #: ../inspector/virt-inspector.pod:239
22460 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22461 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22466 #: ../inspector/virt-inspector.pod:243
22468 "E<lt>package_formatE<gt>, if present, describes the packaging system used. "
22469 "Typical values would be C<rpm> and C<deb>."
22473 #: ../inspector/virt-inspector.pod:246
22475 "E<lt>package_managementE<gt>, if present, describes the package manager. "
22476 "Typical values include C<yum>, C<up2date> and C<apt>"
22480 #: ../inspector/virt-inspector.pod:249
22481 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22485 #: ../inspector/virt-inspector.pod:252
22488 " <operatingsystems>\n"
22489 " <operatingsystem>\n"
22491 " <applications>\n"
22493 " <name>coreutils</name>\n"
22494 " <version>8.5</version>\n"
22495 " <release>1</release>\n"
22496 " </application>\n"
22501 #: ../inspector/virt-inspector.pod:262
22503 "The version and release fields may not be available for some types guests. "
22504 "Other fields are possible, see L<guestfs(3)/"
22505 "guestfs_inspect_list_applications>."
22509 #: ../inspector/virt-inspector.pod:266
22510 msgid "E<lt>drive_mappingsE<gt>"
22514 #: ../inspector/virt-inspector.pod:268
22516 "For operating systems like Windows which use drive letters, virt-inspector "
22517 "is able to find out how drive letters map to filesystems."
22521 #: ../inspector/virt-inspector.pod:272
22524 " <operatingsystems>\n"
22525 " <operatingsystem>\n"
22527 " <drive_mappings>\n"
22528 " <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22529 " <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22530 " </drive_mappings>\n"
22535 #: ../inspector/virt-inspector.pod:280
22537 "In the example above, drive C maps to the filesystem on the second partition "
22538 "on the first disk, and drive E maps to the filesystem on the first partition "
22539 "on the second disk."
22543 #: ../inspector/virt-inspector.pod:284
22545 "Note that this only covers permanent local filesystem mappings, not things "
22546 "like network shares. Furthermore NTFS volume mount points may not be listed "
22551 #: ../inspector/virt-inspector.pod:288
22552 msgid "E<lt>iconE<gt>"
22556 #: ../inspector/virt-inspector.pod:290
22558 "Virt-inspector is sometimes able to extract an icon or logo for the guest. "
22559 "The icon is returned as base64-encoded PNG data. Note that the icon can be "
22560 "very large and high quality."
22564 #: ../inspector/virt-inspector.pod:294
22567 " <operatingsystems>\n"
22568 " <operatingsystem>\n"
22571 " iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22572 " [... many lines of base64 data ...]\n"
22578 #: ../inspector/virt-inspector.pod:302
22580 "To display the icon, you have to extract it and convert the base64 data back "
22581 "to a binary file. Use an XPath query or simply an editor to extract the "
22582 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22587 #: ../inspector/virt-inspector.pod:307
22590 " base64 -i -d < icon.data > icon.png\n"
22595 #: ../inspector/virt-inspector.pod:309
22596 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22600 #: ../inspector/virt-inspector.pod:311
22602 "Virt-inspector can detect some operating system installers on install disks, "
22603 "live CDs, bootable USB keys and more."
22607 #: ../inspector/virt-inspector.pod:314
22609 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22610 "fields may be present to indicate a live CD, network installer, or one part "
22611 "of a multipart CD. For example:"
22615 #: ../inspector/virt-inspector.pod:318
22618 " <operatingsystems>\n"
22619 " <operatingsystem>\n"
22620 " <root>/dev/sda</root>\n"
22621 " <name>linux</name>\n"
22622 " <arch>i386</arch>\n"
22623 " <distro>ubuntu</distro>\n"
22624 " <product_name>Ubuntu 10.10 "Maverick Meerkat"</product_name>\n"
22625 " <major_version>10</major_version>\n"
22626 " <minor_version>10</minor_version>\n"
22627 " <format>installer</format>\n"
22633 #: ../inspector/virt-inspector.pod:330
22634 msgid "USING XPATH"
22638 #: ../inspector/virt-inspector.pod:332
22640 "You can use the XPath query language to select parts of the XML. We "
22641 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
22645 #: ../inspector/virt-inspector.pod:338
22648 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
22650 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22651 " <type>ext4</type>\n"
22657 #: ../inspector/virt-inspector.pod:344
22660 " $ virt-inspector -d Guest | \\\n"
22661 " xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22667 #: ../inspector/virt-inspector.pod:348
22670 " $ virt-inspector -d Guest | \\\n"
22671 " xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
22672 " [displays the guest icon, if there is one]\n"
22677 #: ../inspector/virt-inspector.pod:359
22678 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22682 #: ../inspector/virt-inspector.pod:361
22684 "Early versions of libguestfs shipped with a different virt-inspector program "
22685 "written in Perl (the current version is written in C). The XML output of "
22686 "the Perl virt-inspector was different and it could also output in other "
22687 "formats like text."
22691 #: ../inspector/virt-inspector.pod:366
22693 "The old virt-inspector is no longer supported or shipped with libguestfs."
22697 #: ../inspector/virt-inspector.pod:369
22699 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22700 "versions of virt-inspector with different names:"
22704 #: ../inspector/virt-inspector.pod:372
22707 " virt-inspector Old Perl version.\n"
22708 " virt-inspector2 New C version.\n"
22713 #: ../inspector/virt-inspector.pod:382
22715 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
22716 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22720 #: ../inspector/virt-inspector.pod:399
22721 msgid "Matthew Booth L<mbooth@redhat.com>"
22725 #: ../java/examples/guestfs-java.pod:5
22726 msgid "guestfs-java - How to use libguestfs from Java"
22730 #: ../java/examples/guestfs-java.pod:9
22733 " import com.redhat.et.libguestfs.*;\n"
22738 #: ../java/examples/guestfs-java.pod:11
22741 " GuestFS g = new GuestFS ();\n"
22742 " g.add_drive_opts (\"disk.img\", null);\n"
22748 #: ../java/examples/guestfs-java.pod:17
22750 "This manual page documents how to call libguestfs from the Java programming "
22751 "language. This page just documents the differences from the C API and gives "
22752 "some examples. If you are not familiar with using libguestfs, you also need "
22753 "to read L<guestfs(3)>."
22757 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22758 msgid "CLOSING THE HANDLE"
22762 #: ../java/examples/guestfs-java.pod:24
22764 "The handle is closed when it is reaped by the garbage collector. Because "
22765 "libguestfs handles include a lot of state, it is also possible to close (and "
22766 "hence free) them explicitly by calling the C<close> method."
22770 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
22771 #: ../python/examples/guestfs-python.pod:21
22772 #: ../ruby/examples/guestfs-ruby.pod:22
22777 #: ../java/examples/guestfs-java.pod:31
22779 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22780 "exception. This has a single parameter which is the error message (a "
22785 #: ../java/examples/guestfs-java.pod:35
22786 msgid "Calling any method on a closed handle raises the same exception."
22790 #: ../java/examples/guestfs-java.pod:47
22792 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
22793 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22794 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22798 #: ../ocaml/examples/guestfs-ocaml.pod:5
22799 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22803 #: ../ocaml/examples/guestfs-ocaml.pod:9
22804 msgid "Module style:"
22808 #: ../ocaml/examples/guestfs-ocaml.pod:11
22811 " let g = Guestfs.create () in\n"
22812 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22813 " Guestfs.launch g;\n"
22818 #: ../ocaml/examples/guestfs-ocaml.pod:15
22819 msgid "Object-oriented style:"
22823 #: ../ocaml/examples/guestfs-ocaml.pod:17
22826 " let g = new Guestfs.guestfs () in\n"
22827 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22833 #: ../ocaml/examples/guestfs-ocaml.pod:21
22836 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22838 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22843 #: ../ocaml/examples/guestfs-ocaml.pod:27
22845 "This manual page documents how to call libguestfs from the OCaml programming "
22846 "language. This page just documents the differences from the C API and gives "
22847 "some examples. If you are not familiar with using libguestfs, you also need "
22848 "to read L<guestfs(3)>."
22852 #: ../ocaml/examples/guestfs-ocaml.pod:32
22853 msgid "PROGRAMMING STYLES"
22857 #: ../ocaml/examples/guestfs-ocaml.pod:34
22859 "There are two different programming styles supported by the OCaml bindings. "
22860 "You can use a module style, with each C function mapped to an OCaml function:"
22864 #: ../ocaml/examples/guestfs-ocaml.pod:38
22867 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22872 #: ../ocaml/examples/guestfs-ocaml.pod:40
22877 #: ../ocaml/examples/guestfs-ocaml.pod:42
22880 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22885 #: ../ocaml/examples/guestfs-ocaml.pod:44
22887 "Alternately you can use an object-oriented style, calling methods on the "
22888 "class C<Guestfs.guestfs>:"
22892 #: ../ocaml/examples/guestfs-ocaml.pod:47
22895 " method set_verbose : bool -> unit\n"
22900 #: ../ocaml/examples/guestfs-ocaml.pod:49
22902 "The object-oriented style is usually briefer, and the minor performance "
22903 "penalty isn't noticable in the general overhead of performing libguestfs "
22908 #: ../ocaml/examples/guestfs-ocaml.pod:55
22910 "The handle is closed when it is reaped by the garbage collector. Because "
22911 "libguestfs handles include a lot of state, it is also possible to close (and "
22912 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22917 #: ../ocaml/examples/guestfs-ocaml.pod:62
22919 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22920 "exception. This has a single parameter which is the error message (a "
22925 #: ../ocaml/examples/guestfs-ocaml.pod:66
22927 "Calling any function/method on a closed handle raises C<Guestfs."
22928 "Handle_closed>. The single parameter is the name of the function that you "
22933 #: ../ocaml/examples/guestfs-ocaml.pod:80
22935 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22936 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22937 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22941 #: ../perl/examples/guestfs-perl.pod:5
22942 msgid "guestfs-perl - How to use libguestfs from Perl"
22946 #: ../perl/examples/guestfs-perl.pod:9
22949 " use Sys::Guestfs;\n"
22954 #: ../perl/examples/guestfs-perl.pod:11
22957 " my $h = Sys::Guestfs->new ();\n"
22958 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22959 " $h->launch ();\n"
22960 " $h->mount_options ('', '/dev/sda1', '/');\n"
22961 " $h->touch ('/hello');\n"
22967 #: ../perl/examples/guestfs-perl.pod:20
22969 "This manual page documents how to call libguestfs from the Perl programming "
22970 "language. This page just documents the differences from the C API and gives "
22971 "some examples. If you are not familiar with using libguestfs, you also need "
22972 "to read L<guestfs(3)>. To read the full Perl API, see L<Sys::Guestfs(3)>."
22976 #: ../perl/examples/guestfs-perl.pod:26
22981 #: ../perl/examples/guestfs-perl.pod:28
22983 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
22988 #: ../perl/examples/guestfs-perl.pod:41
22990 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
22991 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
22992 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22996 #: ../python/examples/guestfs-python.pod:5
22997 msgid "guestfs-python - How to use libguestfs from Python"
23001 #: ../python/examples/guestfs-python.pod:9
23004 " import guestfs\n"
23005 " g = guestfs.GuestFS ()\n"
23006 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
23012 #: ../python/examples/guestfs-python.pod:16
23014 "This manual page documents how to call libguestfs from the Python "
23015 "programming language. This page just documents the differences from the C "
23016 "API and gives some examples. If you are not familiar with using libguestfs, "
23017 "you also need to read L<guestfs(3)>."
23021 #: ../python/examples/guestfs-python.pod:23
23023 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
23024 "single string argument which is the error message."
23028 #: ../python/examples/guestfs-python.pod:26
23029 msgid "MORE DOCUMENTATION"
23033 #: ../python/examples/guestfs-python.pod:28
23038 #: ../python/examples/guestfs-python.pod:30
23042 " >>> import guestfs\n"
23043 " >>> help (guestfs)\n"
23048 #: ../python/examples/guestfs-python.pod:44
23050 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23051 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
23052 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23056 #: ../rescue/virt-rescue.pod:5
23057 msgid "virt-rescue - Run a rescue shell on a virtual machine"
23061 #: ../rescue/virt-rescue.pod:9
23064 " virt-rescue [--options] -d domname\n"
23069 #: ../rescue/virt-rescue.pod:11
23072 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
23077 #: ../rescue/virt-rescue.pod:15
23080 " virt-rescue [--options] domname\n"
23085 #: ../rescue/virt-rescue.pod:17
23088 " virt-rescue [--options] disk.img [disk.img ...]\n"
23093 #: ../rescue/virt-rescue.pod:21
23095 "You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
23096 "probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
23097 "you from doing this, but doesn't catch all cases."
23101 #: ../rescue/virt-rescue.pod:25
23103 "However if you use the I<--ro> (read only) option, then you can attach a "
23104 "shell to a live virtual machine. The results might be strange or "
23105 "inconsistent at times but you won't get disk corruption."
23109 #: ../rescue/virt-rescue.pod:31
23111 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
23112 "need for a CD. virt-rescue gives you a rescue shell and some simple "
23113 "recovery tools which you can use to examine or rescue a virtual machine or "
23118 #: ../rescue/virt-rescue.pod:36
23120 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
23121 "on disk image(s):"
23125 #: ../rescue/virt-rescue.pod:39
23128 " virt-rescue -d GuestName\n"
23133 #: ../rescue/virt-rescue.pod:41
23136 " virt-rescue --ro -a /path/to/disk.img\n"
23141 #: ../rescue/virt-rescue.pod:43
23144 " virt-rescue -a /dev/sdc\n"
23149 #: ../rescue/virt-rescue.pod:45
23150 msgid "For live VMs you I<must> use the --ro option."
23154 #: ../rescue/virt-rescue.pod:47
23156 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23157 "in an interactive bash shell where you can use many ordinary Linux "
23158 "commands. What you see in C</> (C</bin>, C</lib> etc) is the rescue "
23159 "appliance. You must mount the virtual machine's filesystems by hand. There "
23160 "is an empty directory called C</sysroot> where you can mount filesystems."
23164 #: ../rescue/virt-rescue.pod:54
23166 "In the example below, we list logical volumes, then choose one to mount "
23167 "under C</sysroot>:"
23171 #: ../rescue/virt-rescue.pod:57
23175 " LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
23176 " lv_root vg_f11x64 -wi-a- 8.83G\n"
23177 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
23178 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
23179 " ><rescue> ls /sysroot\n"
23184 #: ../rescue/virt-rescue.pod:64
23186 "If you don't know what filesystems are available on the virtual machine then "
23187 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
23191 #: ../rescue/virt-rescue.pod:70
23193 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23194 "virtual machine. For example you can use it on a blank file if you want to "
23195 "partition that file (although we would recommend using L<guestfish(1)> "
23196 "instead as it is more suitable for this purpose). You can even use virt-"
23197 "rescue on things like SD cards."
23201 #: ../rescue/virt-rescue.pod:76
23203 "Virt-rescue does not require root. You only need to run it as root if you "
23204 "need root to open the disk image."
23208 #: ../rescue/virt-rescue.pod:79
23210 "This tool is just designed for quick interactive hacking on a virtual "
23211 "machine. For more structured access to a virtual machine disk image, you "
23212 "should use L<guestfs(3)>. To get a structured shell that you can use to "
23213 "make scripted changes to guests, use L<guestfish(1)>."
23217 #: ../rescue/virt-rescue.pod:103
23218 msgid "B<--append kernelopts>"
23219 msgstr "B<--append параметри_ядра>"
23222 #: ../rescue/virt-rescue.pod:105
23223 msgid "Pass additional options to the rescue kernel."
23227 #: ../rescue/virt-rescue.pod:135
23230 " virt-rescue --format=raw -a disk.img\n"
23235 #: ../rescue/virt-rescue.pod:139
23238 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23243 #: ../rescue/virt-rescue.pod:148
23248 #: ../rescue/virt-rescue.pod:150
23249 msgid "B<--memsize MB>"
23250 msgstr "B<--memsize МБ>"
23253 #: ../rescue/virt-rescue.pod:152
23255 "Change the amount of memory allocated to the rescue system. The default is "
23256 "set by libguestfs and is small but adequate for running system tools. The "
23257 "occasional program might need more memory. The parameter is specified in "
23262 #: ../rescue/virt-rescue.pod:157
23263 msgid "B<--network>"
23264 msgstr "B<--network>"
23267 #: ../rescue/virt-rescue.pod:159
23268 msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
23272 #: ../rescue/virt-rescue.pod:165
23273 msgid "Open the image read-only."
23277 #: ../rescue/virt-rescue.pod:175
23279 "Enable SELinux in the rescue appliance. You should read L<guestfs(3)/"
23280 "SELINUX> before using this option."
23284 #: ../rescue/virt-rescue.pod:178
23289 #: ../rescue/virt-rescue.pod:180
23290 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23294 #: ../rescue/virt-rescue.pod:198
23296 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23297 "are done read-write."
23301 #: ../rescue/virt-rescue.pod:211
23302 msgid "Previous versions of virt-rescue allowed you to write either:"
23306 #: ../rescue/virt-rescue.pod:213
23309 " virt-rescue disk.img [disk.img ...]\n"
23314 #: ../rescue/virt-rescue.pod:217
23317 " virt-rescue guestname\n"
23322 #: ../rescue/virt-rescue.pod:225
23327 #: ../rescue/virt-rescue.pod:227
23329 "Adding the I<--network> option enables QEMU user networking in the rescue "
23330 "appliance. There are some differences between user networking and ordinary "
23335 #: ../rescue/virt-rescue.pod:233
23336 msgid "ping does not work"
23340 #: ../rescue/virt-rescue.pod:235
23342 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23343 "send the ping packets, and because virt-rescue must be able to run as non-"
23344 "root, QEMU user networking is not able to emulate the L<ping(8)> command. "
23345 "The ping command will appear to resolve addresses but will not be able to "
23346 "send or receive any packets. This does not mean that the network is not "
23351 #: ../rescue/virt-rescue.pod:242
23352 msgid "cannot receive connections"
23356 #: ../rescue/virt-rescue.pod:244
23357 msgid "QEMU user networking cannot receive incoming connections."
23361 #: ../rescue/virt-rescue.pod:246
23362 msgid "making TCP connections"
23366 #: ../rescue/virt-rescue.pod:248
23368 "The virt-rescue appliance needs to be small and so does not include many "
23369 "network tools. In particular there is no L<telnet(1)> command. You can "
23370 "make TCP connections from the shell using the magical C</dev/tcp/"
23371 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23375 #: ../rescue/virt-rescue.pod:253
23378 " exec 3<>/dev/tcp/redhat.com/80\n"
23379 " echo \"GET /\" >&3\n"
23385 #: ../rescue/virt-rescue.pod:257
23386 msgid "See L<bash(1)> for more details."
23390 #: ../rescue/virt-rescue.pod:263
23392 "Several environment variables affect virt-rescue. See L<guestfs(3)/"
23393 "ENVIRONMENT VARIABLES> for the complete list."
23397 #: ../rescue/virt-rescue.pod:290
23399 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
23400 "libguestfs.org/>."
23404 #: ../resize/virt-resize.pod:5
23405 msgid "virt-resize - Resize a virtual machine disk"
23409 #: ../resize/virt-resize.pod:9
23412 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23413 " [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23414 " [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23419 #: ../resize/virt-resize.pod:15
23421 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23422 "larger or smaller overall, and resizing or deleting any partitions contained "
23427 #: ../resize/virt-resize.pod:19
23429 "Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
23430 "not> be used on live virtual machines - for consistent results, shut the "
23431 "virtual machine down before resizing it."
23435 #: ../resize/virt-resize.pod:23
23437 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23438 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23442 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597
23443 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:484
23444 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
23449 #: ../resize/virt-resize.pod:33
23451 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23452 "fill the extra 5GB of space."
23456 #: ../resize/virt-resize.pod:36
23459 " virt-filesystems --long -h --all -a olddisk\n"
23464 #: ../resize/virt-resize.pod:38
23467 " truncate -r olddisk newdisk\n"
23468 " truncate -s +5G newdisk\n"
23473 #: ../resize/virt-resize.pod:41
23476 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23477 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23482 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604
23483 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:490
23484 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
23489 #: ../resize/virt-resize.pod:46
23491 "As above, but make the /boot partition 200MB bigger, while giving the "
23492 "remaining space to /dev/sda2:"
23496 #: ../resize/virt-resize.pod:49
23499 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23500 " olddisk newdisk\n"
23505 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610
23506 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:501
23507 #: ../src/guestfs.pod:1451
23512 #: ../resize/virt-resize.pod:54
23514 "As in the first example, but expand a logical volume as the final step. "
23515 "This is what you would typically use for Linux guests that use LVM:"
23519 #: ../resize/virt-resize.pod:58
23522 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23523 " olddisk newdisk\n"
23528 #: ../resize/virt-resize.pod:61
23533 #: ../resize/virt-resize.pod:63
23535 "As in the first example, but the output format will be qcow2 instead of a "
23540 #: ../resize/virt-resize.pod:66
23543 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23544 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23549 #: ../resize/virt-resize.pod:71
23550 msgid "DETAILED USAGE"
23551 msgstr "ДОКЛАДНІШЕ ЩОДО ВИКОРИСТАННЯ"
23554 #: ../resize/virt-resize.pod:73
23555 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23556 msgstr "РОЗШИРЕННЯ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
23559 #: ../resize/virt-resize.pod:77
23560 msgid "1. Shut down the virtual machine"
23564 #: ../resize/virt-resize.pod:79
23565 msgid "2. Locate input disk image"
23569 #: ../resize/virt-resize.pod:81
23571 "Locate the input disk image (ie. the file or device on the host containing "
23572 "the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
23573 "dumpxml> like this to find the disk image name:"
23577 #: ../resize/virt-resize.pod:85
23580 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23581 " Found 1 nodes:\n"
23583 " <source dev=\"/dev/vg/lv_guest\" />\n"
23588 #: ../resize/virt-resize.pod:90
23589 msgid "3. Look at current sizing"
23593 #: ../resize/virt-resize.pod:92
23594 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23598 #: ../resize/virt-resize.pod:95
23601 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23602 " Name Type Size Parent\n"
23603 " /dev/sda1 partition 101M /dev/sda\n"
23604 " /dev/sda2 partition 7.9G /dev/sda\n"
23605 " /dev/sda device 8.0G -\n"
23610 #: ../resize/virt-resize.pod:101
23612 "(This example is a virtual machine with an 8 GB disk which we would like to "
23613 "expand up to 10 GB)."
23617 #: ../resize/virt-resize.pod:104
23618 msgid "4. Create output disk"
23622 #: ../resize/virt-resize.pod:106
23624 "Virt-resize cannot do in-place disk modifications. You have to have space "
23625 "to store the resized output disk."
23629 #: ../resize/virt-resize.pod:109
23631 "To store the resized disk image in a file, create a file of a suitable size:"
23635 #: ../resize/virt-resize.pod:112
23638 " # rm -f outdisk\n"
23639 " # truncate -s 10G outdisk\n"
23644 #: ../resize/virt-resize.pod:115
23645 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23649 #: ../resize/virt-resize.pod:117
23652 " # lvcreate -L 10G -n lv_name vg_name\n"
23657 #: ../resize/virt-resize.pod:119
23658 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23662 #: ../resize/virt-resize.pod:121
23665 " # virsh pool-list\n"
23666 " # virsh vol-create-as poolname newvol 10G\n"
23671 #: ../resize/virt-resize.pod:124
23673 msgstr "5. Зміна розміру"
23676 #: ../resize/virt-resize.pod:126
23678 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23679 "file) and the output disk. The output disk is the one created in the "
23684 #: ../resize/virt-resize.pod:130
23687 " # virt-resize indisk outdisk\n"
23692 #: ../resize/virt-resize.pod:132
23694 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23695 "I<without> resizing or changing any existing partitions. If C<outdisk> is "
23696 "larger, then an extra, empty partition is created at the end of the disk "
23697 "covering the extra space. If C<outdisk> is smaller, then it will give an "
23702 #: ../resize/virt-resize.pod:138
23704 "More realistically you'd want to expand existing partitions in the disk "
23705 "image by passing extra options (for the full list see the L</OPTIONS> "
23710 #: ../resize/virt-resize.pod:142
23712 "L</--expand> is the most useful option. It expands the named partition "
23713 "within the disk to fill any extra space:"
23717 #: ../resize/virt-resize.pod:145
23720 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23725 #: ../resize/virt-resize.pod:147
23727 "(In this case, an extra partition is I<not> created at the end of the disk, "
23728 "because there will be no unused space)."
23732 #: ../resize/virt-resize.pod:150
23734 "L</--resize> is the other commonly used option. The following would "
23735 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23736 "rest of the available space:"
23740 #: ../resize/virt-resize.pod:154
23743 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23744 " indisk outdisk\n"
23749 #: ../resize/virt-resize.pod:157
23751 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23752 "if virt-resize knows how, it will resize the contents, the equivalent of "
23753 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23754 "or L<btrfs(8)>. However virt-resize does not know how to resize some "
23755 "filesystems, so you would have to online resize them after booting the guest."
23759 #: ../resize/virt-resize.pod:164
23760 msgid "Other options are covered below."
23764 #: ../resize/virt-resize.pod:166
23766 msgstr "6. Перевірка"
23769 #: ../resize/virt-resize.pod:168
23770 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23774 #: ../resize/virt-resize.pod:170
23775 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23779 #: ../resize/virt-resize.pod:172
23782 " # virsh edit guestname\n"
23787 #: ../resize/virt-resize.pod:174
23789 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
23790 "html#elementsDisks>"
23794 #: ../resize/virt-resize.pod:177
23795 msgid "Then start up the domain with the new, resized disk:"
23799 #: ../resize/virt-resize.pod:179
23802 " # virsh start guestname\n"
23807 #: ../resize/virt-resize.pod:181
23809 "and check that it still works. See also the L</NOTES> section below for "
23810 "additional information."
23814 #: ../resize/virt-resize.pod:184
23815 msgid "7. Resize LVs etc inside the guest"
23819 #: ../resize/virt-resize.pod:186
23820 msgid "(This can also be done offline using L<guestfish(1)>)"
23824 #: ../resize/virt-resize.pod:188
23826 "Once the guest has booted you should see the new space available, at least "
23827 "for filesystems that virt-resize knows how to resize, and for PVs. The user "
23828 "may need to resize LVs inside PVs, and also resize filesystem types that "
23829 "virt-resize does not know how to expand."
23833 #: ../resize/virt-resize.pod:195
23834 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23838 #: ../resize/virt-resize.pod:197
23840 "Shrinking is somewhat more complex than expanding, and only an overview is "
23845 #: ../resize/virt-resize.pod:200
23847 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23848 "filesystems). The user has to shrink content before passing the disk image "
23849 "to virt-resize, and virt-resize will check that the content has been shrunk "
23854 #: ../resize/virt-resize.pod:205
23855 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23859 #: ../resize/virt-resize.pod:207
23861 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23862 "steps 3 and 4 above to allocate a new disk image."
23866 #: ../resize/virt-resize.pod:210
23868 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23872 #: ../resize/virt-resize.pod:213
23873 msgid "IGNORING OR DELETING PARTITIONS"
23877 #: ../resize/virt-resize.pod:215
23879 "virt-resize also gives a convenient way to ignore or delete partitions when "
23880 "copying from the input disk to the output disk. Ignoring a partition speeds "
23881 "up the copy where you don't care about the existing contents of a "
23882 "partition. Deleting a partition removes it completely, but note that it "
23883 "also renumbers any partitions after the one which is deleted, which can "
23884 "leave some guests unbootable."
23888 #: ../resize/virt-resize.pod:222
23889 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23893 #: ../resize/virt-resize.pod:224
23895 "If the input disk is in qcow2 format, then you may prefer that the output is "
23896 "in qcow2 format as well. Alternately, virt-resize can convert the format on "
23897 "the fly. The output format is simply determined by the format of the empty "
23898 "output container that you provide. Thus to create qcow2 output, use:"
23902 #: ../resize/virt-resize.pod:230
23905 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23910 #: ../resize/virt-resize.pod:232
23911 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23915 #: ../resize/virt-resize.pod:234
23916 msgid "Similarly, to get non-sparse raw output use:"
23920 #: ../resize/virt-resize.pod:236
23923 " fallocate -l size outdisk\n"
23928 #: ../resize/virt-resize.pod:238
23930 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
23931 "dev/zero of=outdisk bs=1M count=..>)"
23935 #: ../resize/virt-resize.pod:241
23937 #| msgid "PARTITIONING"
23938 msgid "LOGICAL PARTITIONS"
23939 msgstr "ПОДІЛ НА РОЗДІЛИ"
23942 #: ../resize/virt-resize.pod:243
23944 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
23945 "tables) cannot be resized."
23949 #: ../resize/virt-resize.pod:246
23951 "To understand what is going on, firstly one of the four partitions C</dev/"
23952 "sda1-4> will have MBR partition type C<05> or C<0f>. This is called the "
23953 "B<extended partition>. Use L<virt-filesystems(1)> to see the MBR partition "
23958 #: ../resize/virt-resize.pod:251
23959 msgid "Logical partitions live inside the extended partition."
23963 #: ../resize/virt-resize.pod:253
23965 "The extended partition can be expanded, but not shrunk (unless you force it, "
23966 "which is not advisable). When the extended partition is copied across, all "
23967 "the logical partitions contained inside are copied over implicitly. Virt-"
23968 "resize does not look inside the extended partition, so it copies the logical "
23969 "partitions blindly."
23973 #: ../resize/virt-resize.pod:259
23975 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
23976 "line. Doing so will give an error."
23980 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
23981 msgid "Display help."
23985 #: ../resize/virt-resize.pod:270
23987 #| msgid "B<--ignore part>"
23988 msgid "B<--align-first auto>"
23989 msgstr "B<--ignore розділ>"
23992 #: ../resize/virt-resize.pod:272
23994 #| msgid "B<--listen>"
23995 msgid "B<--align-first never>"
23996 msgstr "B<--listen>"
23999 #: ../resize/virt-resize.pod:274
24000 msgid "B<--align-first always>"
24004 #: ../resize/virt-resize.pod:276
24006 "Align the first partition for improved performance (see also the I<--"
24007 "alignment> option)."
24011 #: ../resize/virt-resize.pod:279
24013 "The default is I<--align-first auto> which only aligns the first partition "
24014 "if it is safe to do so. That is, only when we know how to fix the "
24015 "bootloader automatically, and at the moment that can only be done for "
24020 #: ../resize/virt-resize.pod:284
24022 "I<--align-first never> means we never move the first partition. This is the "
24023 "safest option. Try this if the guest does not boot after resizing."
24027 #: ../resize/virt-resize.pod:288
24029 "I<--align-first always> means we always align the first partition (if it "
24030 "needs to be aligned). For some guests this will break the bootloader, "
24031 "making the guest unbootable."
24035 #: ../resize/virt-resize.pod:292
24037 #| msgid "B<--time-t>"
24038 msgid "B<--alignment N>"
24039 msgstr "B<--time-t>"
24042 #: ../resize/virt-resize.pod:294
24044 "Set the alignment of partitions to C<N> sectors. The default in virt-resize "
24045 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
24049 #: ../resize/virt-resize.pod:298
24051 "Assuming 512 byte sector size inside the guest, here are some suitable "
24056 #: ../resize/virt-resize.pod:303
24057 msgid "I<--alignment 1> (512 bytes)"
24061 #: ../resize/virt-resize.pod:305
24063 "The partitions would be packed together as closely as possible, but would be "
24064 "completely unaligned. In some cases this can cause very poor performance. "
24065 "See L<virt-alignment-scan(1)> for further details."
24069 #: ../resize/virt-resize.pod:309
24070 msgid "I<--alignment 8> (4K)"
24074 #: ../resize/virt-resize.pod:311
24076 "This would be the minimum acceptable alignment for reasonable performance on "
24081 #: ../resize/virt-resize.pod:314
24082 msgid "I<--alignment 128> (64K)"
24086 #: ../resize/virt-resize.pod:316
24088 "This alignment provides good performance when the host is using high end "
24093 #: ../resize/virt-resize.pod:319
24094 msgid "I<--alignment 2048> (1M)"
24098 #: ../resize/virt-resize.pod:321
24100 "This is the standard alignment used by all newly installed guests since "
24105 #: ../resize/virt-resize.pod:326
24110 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
24111 #: ../tools/virt-win-reg.pl:120
24113 msgstr "B<--debug>"
24116 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
24117 msgid "Enable debugging messages."
24121 #: ../resize/virt-resize.pod:332
24122 msgid "B<--delete part>"
24123 msgstr "B<--delete розділ>"
24126 #: ../resize/virt-resize.pod:334
24128 "Delete the named partition. It would be more accurate to describe this as "
24129 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24130 "the original disk image is left intact."
24134 #: ../resize/virt-resize.pod:338
24136 "Note that when you delete a partition, then anything contained in the "
24137 "partition is also deleted. Furthermore, this causes any partitions that "
24138 "come after to be I<renumbered>, which can easily make your guest unbootable."
24142 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404
24143 #: ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:145
24144 msgid "You can give this option multiple times."
24148 #: ../resize/virt-resize.pod:345
24149 msgid "B<--expand part>"
24150 msgstr "B<--expand розділ>"
24153 #: ../resize/virt-resize.pod:347
24155 "Expand the named partition so it uses up all extra space (space left over "
24156 "after any other resize changes that you request have been done)."
24160 #: ../resize/virt-resize.pod:350
24162 "If virt-resize knows how, it will expand the direct content of the "
24163 "partition. For example, if the partition is an LVM PV, it will expand the "
24164 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
24165 "content it doesn't know about alone."
24169 #: ../resize/virt-resize.pod:355
24170 msgid "Currently virt-resize can resize:"
24174 #: ../resize/virt-resize.pod:361
24175 msgid "ext2, ext3 and ext4 filesystems."
24179 #: ../resize/virt-resize.pod:365
24180 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24184 #: ../resize/virt-resize.pod:367
24186 "The filesystem must have been shut down consistently last time it was used. "
24187 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
24188 "consistency check, so at the first boot after resizing Windows will check "
24193 #: ../resize/virt-resize.pod:374
24195 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
24196 "inside the PV, but see the I<--LV-expand> option. The user could also "
24197 "resize LVs as desired after boot."
24201 #: ../resize/virt-resize.pod:380
24202 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
24206 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
24207 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
24211 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:125
24212 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
24213 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
24214 msgid "B<--format> raw"
24215 msgstr "B<--format> raw"
24218 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:129
24220 "Specify the format of the input disk image. If this flag is not given then "
24221 "it is auto-detected from the image itself."
24225 #: ../resize/virt-resize.pod:394
24227 "Note that this option I<does not> affect the output format. See L</QCOW2 "
24228 "AND NON-SPARSE RAW FORMATS>."
24232 #: ../resize/virt-resize.pod:397
24233 msgid "B<--ignore part>"
24234 msgstr "B<--ignore розділ>"
24237 #: ../resize/virt-resize.pod:399
24239 "Ignore the named partition. Effectively this means the partition is "
24240 "allocated on the destination disk, but the content is not copied across from "
24241 "the source disk. The content of the partition will be blank (all zero "
24246 #: ../resize/virt-resize.pod:406
24247 msgid "B<--LV-expand logvol>"
24248 msgstr "B<--LV-expand логічний_том>"
24251 #: ../resize/virt-resize.pod:408
24253 "This takes the logical volume and, as a final step, expands it to fill all "
24254 "the space available in its volume group. A typical usage, assuming a Linux "
24255 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
24256 "lv_root> would be:"
24260 #: ../resize/virt-resize.pod:413
24263 " virt-resize indisk outdisk \\\n"
24264 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24269 #: ../resize/virt-resize.pod:416
24271 "This would first expand the partition (and PV), and then expand the root "
24272 "device to fill the extra space in the PV."
24276 #: ../resize/virt-resize.pod:419
24278 "The contents of the LV are also resized if virt-resize knows how to do "
24279 "that. You can stop virt-resize from trying to expand the content by using "
24280 "the option I<--no-expand-content>."
24284 #: ../resize/virt-resize.pod:423
24285 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24289 #: ../resize/virt-resize.pod:425
24291 "You can give this option multiple times, I<but> it doesn't make sense to do "
24292 "this unless the logical volumes you specify are all in different volume "
24297 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:147
24298 msgid "B<--machine-readable>"
24302 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:149
24304 "This option is used to make the output more machine friendly when being "
24305 "parsed by other programs. See L</MACHINE READABLE OUTPUT> below."
24309 #: ../resize/virt-resize.pod:437
24310 msgid "B<--dryrun>"
24311 msgstr "B<--dryrun>"
24314 #: ../resize/virt-resize.pod:439
24315 msgid "Print a summary of what would be done, but don't do anything."
24319 #: ../resize/virt-resize.pod:441
24320 msgid "B<--no-copy-boot-loader>"
24321 msgstr "B<--no-copy-boot-loader>"
24324 #: ../resize/virt-resize.pod:443
24326 "By default, virt-resize copies over some sectors at the start of the disk "
24327 "(up to the beginning of the first partition). Commonly these sectors "
24328 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24329 "in order for the guest to boot correctly."
24333 #: ../resize/virt-resize.pod:448
24335 "If you specify this flag, then this initial copy is not done. You may need "
24336 "to reinstall the boot loader in this case."
24340 #: ../resize/virt-resize.pod:451
24341 msgid "B<--no-extra-partition>"
24342 msgstr "B<--no-extra-partition>"
24345 #: ../resize/virt-resize.pod:453
24347 "By default, virt-resize creates an extra partition if there is any extra, "
24348 "unused space after all resizing has happened. Use this option to prevent "
24349 "the extra partition from being created. If you do this then the extra space "
24350 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24351 "tool in the guest."
24355 #: ../resize/virt-resize.pod:459
24357 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24362 #: ../resize/virt-resize.pod:462
24363 msgid "B<--no-expand-content>"
24364 msgstr "B<--no-expand-content>"
24367 #: ../resize/virt-resize.pod:464
24369 "By default, virt-resize will try to expand the direct contents of "
24370 "partitions, if it knows how (see I<--expand> option above)."
24374 #: ../resize/virt-resize.pod:467
24376 "If you give the I<--no-expand-content> option then virt-resize will not "
24381 #: ../resize/virt-resize.pod:470
24382 msgid "B<--ntfsresize-force>"
24383 msgstr "B<--ntfsresize-force>"
24386 #: ../resize/virt-resize.pod:472
24388 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24389 "the NTFS disk is marked as needing a consistency check. You have to use "
24390 "this option if you want to resize a Windows guest multiple times without "
24391 "booting into Windows between each resize."
24395 #: ../resize/virt-resize.pod:478
24396 msgid "B<--output-format> raw"
24397 msgstr "B<--output-format> raw"
24400 #: ../resize/virt-resize.pod:480
24402 "Specify the format of the output disk image. If this flag is not given then "
24403 "it is auto-detected from the image itself."
24407 #: ../resize/virt-resize.pod:486
24409 "Note that this option I<does not create> the output format. This option "
24410 "just tells libguestfs what it is so it doesn't try to guess it. You still "
24411 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
24412 "SPARSE RAW FORMATS>."
24416 #: ../resize/virt-resize.pod:495
24417 msgid "Don't print the summary."
24421 #: ../resize/virt-resize.pod:497
24422 msgid "B<--resize part=size>"
24423 msgstr "B<--resize розділ=розмір>"
24426 #: ../resize/virt-resize.pod:499
24428 "Resize the named partition (expanding or shrinking it) so that it has the "
24433 #: ../resize/virt-resize.pod:502
24435 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24436 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24437 "size; or as a relative number or percentage. For example:"
24441 #: ../resize/virt-resize.pod:508
24444 " --resize /dev/sda2=10G\n"
24449 #: ../resize/virt-resize.pod:510
24452 " --resize /dev/sda4=90%\n"
24457 #: ../resize/virt-resize.pod:512
24460 " --resize /dev/sda2=+1G\n"
24465 #: ../resize/virt-resize.pod:514
24468 " --resize /dev/sda2=-200M\n"
24473 #: ../resize/virt-resize.pod:516
24476 " --resize /dev/sda1=+128K\n"
24481 #: ../resize/virt-resize.pod:518
24484 " --resize /dev/sda1=+10%\n"
24489 #: ../resize/virt-resize.pod:520
24492 " --resize /dev/sda1=-10%\n"
24497 #: ../resize/virt-resize.pod:522
24499 "You can increase the size of any partition. Virt-resize will expand the "
24500 "direct content of the partition if it knows how (see I<--expand> below)."
24504 #: ../resize/virt-resize.pod:526
24506 "You can only I<decrease> the size of partitions that contain filesystems or "
24507 "PVs which have already been shrunk. Virt-resize will check this has been "
24508 "done before proceeding, or else will print an error (see also I<--resize-"
24513 #: ../resize/virt-resize.pod:533
24514 msgid "B<--resize-force part=size>"
24515 msgstr "B<--resize-force розділ=розмір>"
24518 #: ../resize/virt-resize.pod:535
24520 "This is the same as I<--resize> except that it will let you decrease the "
24521 "size of any partition. Generally this means you will lose any data which "
24522 "was at the end of the partition you shrink, but you may not care about that "
24523 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24524 "as a swap partition)."
24528 #: ../resize/virt-resize.pod:541
24529 msgid "See also the I<--ignore> option."
24533 #: ../resize/virt-resize.pod:543
24534 msgid "B<--shrink part>"
24535 msgstr "B<--shrink розділ>"
24538 #: ../resize/virt-resize.pod:545
24540 "Shrink the named partition until the overall disk image fits in the "
24541 "destination. The named partition B<must> contain a filesystem or PV which "
24542 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24543 "online tools). Virt-resize will check this and give an error if it has not "
24548 #: ../resize/virt-resize.pod:551
24550 "The amount by which the overall disk must be shrunk (after carrying out all "
24551 "other operations requested by the user) is called the \"deficit\". For "
24552 "example, a straight copy (assume no other operations) from a 5GB disk image "
24553 "to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
24554 "would give an error unless the user specified a partition to shrink and that "
24555 "partition had more than a gigabyte of free space."
24559 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:177
24560 msgid "MACHINE READABLE OUTPUT"
24564 #: ../resize/virt-resize.pod:571
24566 "The I<--machine-readable> option can be used to make the output more machine "
24567 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24572 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:183
24573 msgid "There are two ways to use this option."
24577 #: ../resize/virt-resize.pod:577
24579 "Firstly use the option on its own to query the capabilities of the virt-"
24580 "resize binary. Typical output looks like this:"
24584 #: ../resize/virt-resize.pod:580
24587 " $ virt-resize --machine-readable\n"
24589 " ntfsresize-force\n"
24597 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:193
24599 "A list of features is printed, one per line, and the program exits with "
24604 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:196
24606 "Secondly use the option in conjunction with other options to make the "
24607 "regular program output more machine friendly."
24611 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:199
24612 msgid "At the moment this means:"
24616 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:205
24618 "Progress bar messages can be parsed from stdout by looking for this regular "
24623 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:208
24626 " ^[0-9]+/[0-9]+$\n"
24631 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:212
24633 "The calling program should treat messages sent to stdout (except for "
24634 "progress bar messages) as status messages. They can be logged and/or "
24635 "displayed to the user."
24639 #: ../resize/virt-resize.pod:612
24641 "The calling program should treat messages sent to stderr as error messages. "
24642 "In addition, virt-resize exits with a non-zero status code if there was a "
24647 #: ../resize/virt-resize.pod:618
24649 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
24650 "readable> option and will return an error."
24654 #: ../resize/virt-resize.pod:623
24655 msgid "\"Partition 1 does not end on cylinder boundary.\""
24659 #: ../resize/virt-resize.pod:625
24661 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
24662 "alignment> parameter). Usually this means the partitions will not be "
24663 "aligned to the ancient CHS geometry. However CHS geometry is meaningless "
24664 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24665 "drives. Alignment of partitions to cylinders is not required by any modern "
24666 "operating system."
24670 #: ../resize/virt-resize.pod:632
24671 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24675 #: ../resize/virt-resize.pod:634
24677 "In Windows Vista and later versions, Microsoft switched to using a separate "
24678 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
24679 "and C</dev/sda2> is the main (C:) drive. Resizing the first (boot) "
24680 "partition causes the bootloader to fail with C<0xC0000225> error. Resizing "
24681 "the second partition (ie. C: drive) should work."
24685 #: ../resize/virt-resize.pod:641
24687 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24688 "NTFS partitions have been expanded. This is just a safety check and (unless "
24689 "it find errors) is nothing to worry about."
24693 #: ../resize/virt-resize.pod:645
24694 msgid "GUEST BOOT STUCK AT \"GRUB\""
24698 #: ../resize/virt-resize.pod:647
24700 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24701 "printing C<GRUB> on the console, try reinstalling grub."
24705 #: ../resize/virt-resize.pod:650
24708 " guestfish -i -a newdisk\n"
24709 " ><fs> cat /boot/grub/device.map\n"
24710 " # check the contents of this file are sensible or\n"
24711 " # edit the file if necessary\n"
24712 " ><fs> grub-install / /dev/vda\n"
24718 #: ../resize/virt-resize.pod:657
24720 "For more flexible guest reconfiguration, including if you need to specify "
24721 "other parameters to grub-install, use L<virt-rescue(1)>."
24725 #: ../resize/virt-resize.pod:660
24726 msgid "ALTERNATIVE TOOLS"
24730 #: ../resize/virt-resize.pod:662
24732 "There are several proprietary tools for resizing partitions. We won't "
24733 "mention any here."
24737 #: ../resize/virt-resize.pod:665
24739 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24740 "operations on disk images. They can resize and move partitions, but I don't "
24741 "think they can do anything with the contents, and they certainly don't "
24746 #: ../resize/virt-resize.pod:670
24748 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24749 "but at a much lower level. You will probably end up hand-calculating sector "
24750 "offsets, which is something that virt-resize was designed to avoid. If you "
24751 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24756 #: ../resize/virt-resize.pod:690
24758 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
24759 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
24760 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
24761 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
24762 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24766 #: ../ruby/examples/guestfs-ruby.pod:5
24767 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24771 #: ../ruby/examples/guestfs-ruby.pod:9
24774 " require 'guestfs'\n"
24775 " g = Guestfs::Guestfs.new()\n"
24776 " g.add_drive_opts(\"disk.img\",\n"
24777 " :readonly => 1, :format => \"raw\")\n"
24783 #: ../ruby/examples/guestfs-ruby.pod:17
24785 "This manual page documents how to call libguestfs from the Ruby programming "
24786 "language. This page just documents the differences from the C API and gives "
24787 "some examples. If you are not familiar with using libguestfs, you also need "
24788 "to read L<guestfs(3)>."
24792 #: ../ruby/examples/guestfs-ruby.pod:24
24794 "Errors from libguestfs functions are mapped into the C<Error> exception. "
24795 "This has a single parameter which is the error message (a string)."
24799 #: ../ruby/examples/guestfs-ruby.pod:38
24801 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24802 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
24803 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24807 #: ../sparsify/virt-sparsify.pod:5
24808 msgid "virt-sparsify - Make a virtual machine disk sparse"
24812 #: ../sparsify/virt-sparsify.pod:9
24815 " virt-sparsify [--options] indisk outdisk\n"
24820 #: ../sparsify/virt-sparsify.pod:13
24822 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24823 "image) sparse a.k.a. thin-provisioned. This means that free space within "
24824 "the disk image can be converted back to free space on the host."
24828 #: ../sparsify/virt-sparsify.pod:18
24830 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
24831 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24835 #: ../sparsify/virt-sparsify.pod:21
24837 "Virt-sparsify can also convert between some disk formats, for example "
24838 "converting a raw disk image to a thin-provisioned qcow2 image."
24842 #: ../sparsify/virt-sparsify.pod:24
24844 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24845 "machines. If a virtual machine has more than one attached disk, you must "
24846 "sparsify each one separately."
24850 #: ../sparsify/virt-sparsify.pod:28
24851 msgid "IMPORTANT LIMITATIONS"
24855 #: ../sparsify/virt-sparsify.pod:34
24857 "Virt-sparsify does not do in-place modifications. It copies from a source "
24858 "image to a destination image, leaving the source unchanged. I<Check that "
24859 "the sparsification was successful before deleting the source image>."
24863 #: ../sparsify/virt-sparsify.pod:41
24864 msgid "The virtual machine I<must be shut down> before using this tool."
24868 #: ../sparsify/virt-sparsify.pod:45
24870 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24871 "(1 temporary copy + 1 destination image). This is in the worst case and "
24872 "usually much less space is required."
24876 #: ../sparsify/virt-sparsify.pod:51
24878 "Virt-sparsify cannot resize disk images. To do that, use L<virt-resize(1)>."
24882 #: ../sparsify/virt-sparsify.pod:56
24883 msgid "Virt-sparsify cannot handle encrypted disks."
24887 #: ../sparsify/virt-sparsify.pod:60
24889 "Virt-sparsify cannot yet sparsify the space between partitions. Note that "
24890 "this space is often used for critical items like bootloaders so it's not "
24895 #: ../sparsify/virt-sparsify.pod:66
24897 "Virt-sparsify does not yet know how to sparsify swapspace. It is not safe "
24898 "to do this unless we can be sure there is no hibernation data, so at the "
24899 "moment swap partitions are ignored."
24903 #: ../sparsify/virt-sparsify.pod:72
24905 "You may also want to read the manual pages for the associated tools L<virt-"
24906 "filesystems(1)> and L<virt-df(1)> before starting."
24910 #: ../sparsify/virt-sparsify.pod:77
24911 msgid "Typical usage is:"
24915 #: ../sparsify/virt-sparsify.pod:79
24918 " virt-sparsify indisk outdisk\n"
24923 #: ../sparsify/virt-sparsify.pod:81
24925 "which copies C<indisk> to C<outdisk>, making the output sparse. C<outdisk> "
24926 "is created, or overwritten if it already exists. The format of the input "
24927 "disk is detected (eg. qcow2) and the same format is used for the output disk."
24931 #: ../sparsify/virt-sparsify.pod:86
24932 msgid "To convert between formats, use the I<--convert> option:"
24936 #: ../sparsify/virt-sparsify.pod:88
24939 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24944 #: ../sparsify/virt-sparsify.pod:90
24946 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24947 "can find within the source disk image. You can get it to ignore (don't zero "
24948 "free space on) certain filesystems by doing:"
24952 #: ../sparsify/virt-sparsify.pod:94
24955 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24960 #: ../sparsify/virt-sparsify.pod:96
24962 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24966 #: ../sparsify/virt-sparsify.pod:107
24967 msgid "B<--convert> raw"
24971 #: ../sparsify/virt-sparsify.pod:109
24972 msgid "B<--convert> qcow2"
24976 #: ../sparsify/virt-sparsify.pod:111
24977 msgid "B<--convert> [other formats]"
24981 #: ../sparsify/virt-sparsify.pod:113
24983 "Use C<output-format> as the format for the destination image. If this is "
24984 "not specified, then the input format is used."
24988 #: ../sparsify/virt-sparsify.pod:116
24989 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
24993 #: ../sparsify/virt-sparsify.pod:118
24995 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
24996 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
25000 #: ../sparsify/virt-sparsify.pod:122
25002 "Specifying the I<--convert> option is usually a good idea, because then virt-"
25003 "sparsify doesn't need to try to guess the input format."
25007 #: ../sparsify/virt-sparsify.pod:127
25008 msgid "B<--format> qcow2"
25012 #: ../sparsify/virt-sparsify.pod:135
25013 msgid "B<--ignore> filesystem"
25017 #: ../sparsify/virt-sparsify.pod:137
25018 msgid "B<--ignore> volgroup"
25022 #: ../sparsify/virt-sparsify.pod:139
25024 "Ignore the named filesystem. Free space on the filesystem will not be "
25025 "zeroed, but existing blocks of zeroes will still be sparsified."
25029 #: ../sparsify/virt-sparsify.pod:142
25031 "In the second form, this ignores the named volume group. Use the volume "
25032 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25036 #: ../sparsify/virt-sparsify.pod:157
25037 msgid "This disables progress bars and other unnecessary output."
25041 #: ../sparsify/virt-sparsify.pod:179
25043 "The I<--machine-readable> option can be used to make the output more machine "
25044 "friendly, which is useful when calling virt-sparsify from other programs, "
25049 #: ../sparsify/virt-sparsify.pod:185
25051 "Firstly use the option on its own to query the capabilities of the virt-"
25052 "sparsify binary. Typical output looks like this:"
25056 #: ../sparsify/virt-sparsify.pod:188
25059 " $ virt-sparsify --machine-readable\n"
25067 #: ../sparsify/virt-sparsify.pod:218
25069 "The calling program should treat messages sent to stderr as error messages. "
25070 "In addition, virt-sparsify exits with a non-zero status code if there was a "
25075 #: ../sparsify/virt-sparsify.pod:224
25077 "All versions of virt-sparsify have supported the I<--machine-readable> "
25082 #: ../sparsify/virt-sparsify.pod:238
25084 "Location of the temporary directory used for the potentially large temporary "
25089 #: ../sparsify/virt-sparsify.pod:241
25091 "You should ensure there is enough free space in the worst case for a full "
25092 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
25093 "to another directory that has enough space."
25097 #: ../sparsify/virt-sparsify.pod:245
25098 msgid "This defaults to C</tmp>."
25102 #: ../sparsify/virt-sparsify.pod:249
25104 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
25108 #: ../sparsify/virt-sparsify.pod:253
25110 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
25111 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
25112 "(1)>, L<http://libguestfs.org/>."
25116 #: ../src/guestfs-actions.pod:1
25117 msgid "guestfs_add_cdrom"
25121 #: ../src/guestfs-actions.pod:3
25125 " guestfs_add_cdrom (guestfs_h *g,\n"
25126 " const char *filename);\n"
25131 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:255
25132 #: ../src/guestfs-actions.pod:276
25134 "I<This function is deprecated.> In new code, use the L</"
25135 "guestfs_add_drive_opts> call instead."
25139 #: ../src/guestfs-actions.pod:24
25141 "This call checks for the existence of C<filename>. This stops you from "
25142 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25143 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call "
25148 #: ../src/guestfs-actions.pod:31
25150 "If you just want to add an ISO file (often you use this as an efficient way "
25151 "to transfer large files into the guest), then you should probably use "
25152 "C<guestfs_add_drive_ro> instead."
25156 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
25157 #: ../src/guestfs-actions.pod:207 ../src/guestfs-actions.pod:244
25158 #: ../src/guestfs-actions.pod:265 ../src/guestfs-actions.pod:286
25159 #: ../src/guestfs-actions.pod:299 ../src/guestfs-actions.pod:313
25160 #: ../src/guestfs-actions.pod:433 ../src/guestfs-actions.pod:453
25161 #: ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:512
25162 #: ../src/guestfs-actions.pod:540 ../src/guestfs-actions.pod:558
25163 #: ../src/guestfs-actions.pod:625 ../src/guestfs-actions.pod:658
25164 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:687
25165 #: ../src/guestfs-actions.pod:786 ../src/guestfs-actions.pod:804
25166 #: ../src/guestfs-actions.pod:818 ../src/guestfs-actions.pod:832
25167 #: ../src/guestfs-actions.pod:869 ../src/guestfs-actions.pod:1052
25168 #: ../src/guestfs-actions.pod:1072 ../src/guestfs-actions.pod:1090
25169 #: ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1239
25170 #: ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1325
25171 #: ../src/guestfs-actions.pod:1376 ../src/guestfs-actions.pod:1427
25172 #: ../src/guestfs-actions.pod:1483 ../src/guestfs-actions.pod:1535
25173 #: ../src/guestfs-actions.pod:1554 ../src/guestfs-actions.pod:1568
25174 #: ../src/guestfs-actions.pod:1596 ../src/guestfs-actions.pod:1666
25175 #: ../src/guestfs-actions.pod:1697 ../src/guestfs-actions.pod:1722
25176 #: ../src/guestfs-actions.pod:1764 ../src/guestfs-actions.pod:1877
25177 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:2119
25178 #: ../src/guestfs-actions.pod:2141 ../src/guestfs-actions.pod:2228
25179 #: ../src/guestfs-actions.pod:2736 ../src/guestfs-actions.pod:2880
25180 #: ../src/guestfs-actions.pod:2941 ../src/guestfs-actions.pod:2976
25181 #: ../src/guestfs-actions.pod:4033 ../src/guestfs-actions.pod:4048
25182 #: ../src/guestfs-actions.pod:4073 ../src/guestfs-actions.pod:4262
25183 #: ../src/guestfs-actions.pod:4276 ../src/guestfs-actions.pod:4289
25184 #: ../src/guestfs-actions.pod:4303 ../src/guestfs-actions.pod:4318
25185 #: ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:4426
25186 #: ../src/guestfs-actions.pod:4446 ../src/guestfs-actions.pod:4463
25187 #: ../src/guestfs-actions.pod:4486 ../src/guestfs-actions.pod:4509
25188 #: ../src/guestfs-actions.pod:4544 ../src/guestfs-actions.pod:4563
25189 #: ../src/guestfs-actions.pod:4582 ../src/guestfs-actions.pod:4617
25190 #: ../src/guestfs-actions.pod:4629 ../src/guestfs-actions.pod:4665
25191 #: ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:4694
25192 #: ../src/guestfs-actions.pod:4709 ../src/guestfs-actions.pod:4726
25193 #: ../src/guestfs-actions.pod:4819 ../src/guestfs-actions.pod:4839
25194 #: ../src/guestfs-actions.pod:4852 ../src/guestfs-actions.pod:4903
25195 #: ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:4939
25196 #: ../src/guestfs-actions.pod:4955 ../src/guestfs-actions.pod:4969
25197 #: ../src/guestfs-actions.pod:4983 ../src/guestfs-actions.pod:5000
25198 #: ../src/guestfs-actions.pod:5015 ../src/guestfs-actions.pod:5042
25199 #: ../src/guestfs-actions.pod:5105 ../src/guestfs-actions.pod:5178
25200 #: ../src/guestfs-actions.pod:5209 ../src/guestfs-actions.pod:5228
25201 #: ../src/guestfs-actions.pod:5247 ../src/guestfs-actions.pod:5259
25202 #: ../src/guestfs-actions.pod:5276 ../src/guestfs-actions.pod:5289
25203 #: ../src/guestfs-actions.pod:5304 ../src/guestfs-actions.pod:5319
25204 #: ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5377
25205 #: ../src/guestfs-actions.pod:5416 ../src/guestfs-actions.pod:5436
25206 #: ../src/guestfs-actions.pod:5450 ../src/guestfs-actions.pod:5467
25207 #: ../src/guestfs-actions.pod:5516 ../src/guestfs-actions.pod:5569
25208 #: ../src/guestfs-actions.pod:5616 ../src/guestfs-actions.pod:5659
25209 #: ../src/guestfs-actions.pod:5687 ../src/guestfs-actions.pod:5704
25210 #: ../src/guestfs-actions.pod:5722 ../src/guestfs-actions.pod:5862
25211 #: ../src/guestfs-actions.pod:5919 ../src/guestfs-actions.pod:5941
25212 #: ../src/guestfs-actions.pod:5959 ../src/guestfs-actions.pod:6009
25213 #: ../src/guestfs-actions.pod:6075 ../src/guestfs-actions.pod:6092
25214 #: ../src/guestfs-actions.pod:6105 ../src/guestfs-actions.pod:6119
25215 #: ../src/guestfs-actions.pod:6408 ../src/guestfs-actions.pod:6427
25216 #: ../src/guestfs-actions.pod:6446 ../src/guestfs-actions.pod:6460
25217 #: ../src/guestfs-actions.pod:6472 ../src/guestfs-actions.pod:6486
25218 #: ../src/guestfs-actions.pod:6498 ../src/guestfs-actions.pod:6512
25219 #: ../src/guestfs-actions.pod:6528 ../src/guestfs-actions.pod:6549
25220 #: ../src/guestfs-actions.pod:6568 ../src/guestfs-actions.pod:6587
25221 #: ../src/guestfs-actions.pod:6617 ../src/guestfs-actions.pod:6635
25222 #: ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6676
25223 #: ../src/guestfs-actions.pod:6695 ../src/guestfs-actions.pod:6716
25224 #: ../src/guestfs-actions.pod:6735 ../src/guestfs-actions.pod:6752
25225 #: ../src/guestfs-actions.pod:6771 ../src/guestfs-actions.pod:6799
25226 #: ../src/guestfs-actions.pod:6823 ../src/guestfs-actions.pod:6842
25227 #: ../src/guestfs-actions.pod:6858 ../src/guestfs-actions.pod:6882
25228 #: ../src/guestfs-actions.pod:6901 ../src/guestfs-actions.pod:6916
25229 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:6979
25230 #: ../src/guestfs-actions.pod:7009 ../src/guestfs-actions.pod:7042
25231 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7278
25232 #: ../src/guestfs-actions.pod:7290 ../src/guestfs-actions.pod:7303
25233 #: ../src/guestfs-actions.pod:7316 ../src/guestfs-actions.pod:7338
25234 #: ../src/guestfs-actions.pod:7351 ../src/guestfs-actions.pod:7364
25235 #: ../src/guestfs-actions.pod:7377 ../src/guestfs-actions.pod:7392
25236 #: ../src/guestfs-actions.pod:7451 ../src/guestfs-actions.pod:7468
25237 #: ../src/guestfs-actions.pod:7484 ../src/guestfs-actions.pod:7500
25238 #: ../src/guestfs-actions.pod:7517 ../src/guestfs-actions.pod:7530
25239 #: ../src/guestfs-actions.pod:7550 ../src/guestfs-actions.pod:7586
25240 #: ../src/guestfs-actions.pod:7600 ../src/guestfs-actions.pod:7641
25241 #: ../src/guestfs-actions.pod:7654 ../src/guestfs-actions.pod:7672
25242 #: ../src/guestfs-actions.pod:7706 ../src/guestfs-actions.pod:7742
25243 #: ../src/guestfs-actions.pod:7858 ../src/guestfs-actions.pod:7873
25244 #: ../src/guestfs-actions.pod:7887 ../src/guestfs-actions.pod:7942
25245 #: ../src/guestfs-actions.pod:7955 ../src/guestfs-actions.pod:8000
25246 #: ../src/guestfs-actions.pod:8040 ../src/guestfs-actions.pod:8096
25247 #: ../src/guestfs-actions.pod:8116 ../src/guestfs-actions.pod:8149
25248 #: ../src/guestfs-actions.pod:8213 ../src/guestfs-actions.pod:8236
25249 #: ../src/guestfs-actions.pod:8265
25250 msgid "This function returns 0 on success or -1 on error."
25254 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
25255 #: ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:2342
25256 #: ../src/guestfs-actions.pod:2440 ../src/guestfs-actions.pod:2565
25257 #: ../src/guestfs-actions.pod:4035 ../src/guestfs-actions.pod:4055
25258 #: ../src/guestfs-actions.pod:5353 ../src/guestfs-actions.pod:6637
25259 #: ../src/guestfs-actions.pod:6754 ../src/guestfs-actions.pod:6903
25260 #: ../src/guestfs-actions.pod:7394 ../src/guestfs-actions.pod:7519
25261 #: ../src/guestfs-actions.pod:8042
25262 msgid "(Added in 0.3)"
25263 msgstr "(Додано у 0.3)"
25266 #: ../src/guestfs-actions.pod:41
25267 msgid "guestfs_add_domain"
25271 #: ../src/guestfs-actions.pod:43
25275 " guestfs_add_domain (guestfs_h *g,\n"
25276 " const char *dom,\n"
25282 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
25283 #: ../src/guestfs-actions.pod:843 ../src/guestfs-actions.pod:1167
25284 #: ../src/guestfs-actions.pod:1219 ../src/guestfs-actions.pod:1297
25285 #: ../src/guestfs-actions.pod:1364 ../src/guestfs-actions.pod:1415
25286 #: ../src/guestfs-actions.pod:1466 ../src/guestfs-actions.pod:3233
25287 #: ../src/guestfs-actions.pod:5054 ../src/guestfs-actions.pod:5363
25288 #: ../src/guestfs-actions.pod:5580
25290 "You may supply a list of optional arguments to this call. Use zero or more "
25291 "of the following pairs of parameters, and terminate the list with C<-1> on "
25292 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
25296 #: ../src/guestfs-actions.pod:53
25299 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25300 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25301 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25302 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25303 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25308 #: ../src/guestfs-actions.pod:59
25310 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
25311 "It works by connecting to libvirt, requesting the domain and domain XML from "
25312 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25317 #: ../src/guestfs-actions.pod:94
25319 "The other optional parameters are passed directly through to "
25320 "C<guestfs_add_drive_opts>."
25324 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:356
25325 #: ../src/guestfs-actions.pod:526 ../src/guestfs-actions.pod:704
25326 #: ../src/guestfs-actions.pod:735 ../src/guestfs-actions.pod:753
25327 #: ../src/guestfs-actions.pod:772 ../src/guestfs-actions.pod:1742
25328 #: ../src/guestfs-actions.pod:2098 ../src/guestfs-actions.pod:2301
25329 #: ../src/guestfs-actions.pod:2412 ../src/guestfs-actions.pod:2463
25330 #: ../src/guestfs-actions.pod:2515 ../src/guestfs-actions.pod:2529
25331 #: ../src/guestfs-actions.pod:2552 ../src/guestfs-actions.pod:2867
25332 #: ../src/guestfs-actions.pod:3351 ../src/guestfs-actions.pod:3369
25333 #: ../src/guestfs-actions.pod:5539 ../src/guestfs-actions.pod:5759
25334 #: ../src/guestfs-actions.pod:5997 ../src/guestfs-actions.pod:6189
25335 #: ../src/guestfs-actions.pod:6215 ../src/guestfs-actions.pod:7627
25336 #: ../src/guestfs-actions.pod:8053 ../src/guestfs-actions.pod:8066
25337 #: ../src/guestfs-actions.pod:8079
25338 msgid "On error this function returns -1."
25342 #: ../src/guestfs-actions.pod:99
25343 msgid "(Added in 1.7.4)"
25344 msgstr "(Додано у 1.7.4)"
25347 #: ../src/guestfs-actions.pod:101
25348 msgid "guestfs_add_domain_va"
25352 #: ../src/guestfs-actions.pod:103
25356 " guestfs_add_domain_va (guestfs_h *g,\n"
25357 " const char *dom,\n"
25358 " va_list args);\n"
25363 #: ../src/guestfs-actions.pod:108
25364 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25368 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
25369 #: ../src/guestfs-actions.pod:220 ../src/guestfs-actions.pod:231
25370 #: ../src/guestfs-actions.pod:882 ../src/guestfs-actions.pod:893
25371 #: ../src/guestfs-actions.pod:1195 ../src/guestfs-actions.pod:1208
25372 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1267
25373 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:1354
25374 #: ../src/guestfs-actions.pod:1393 ../src/guestfs-actions.pod:1405
25375 #: ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456
25376 #: ../src/guestfs-actions.pod:1500 ../src/guestfs-actions.pod:1512
25377 #: ../src/guestfs-actions.pod:3317 ../src/guestfs-actions.pod:3329
25378 #: ../src/guestfs-actions.pod:5119 ../src/guestfs-actions.pod:5131
25379 #: ../src/guestfs-actions.pod:5391 ../src/guestfs-actions.pod:5403
25380 #: ../src/guestfs-actions.pod:5629 ../src/guestfs-actions.pod:5640
25381 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25382 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
25385 #: ../src/guestfs-actions.pod:112
25386 msgid "guestfs_add_domain_argv"
25387 msgstr "guestfs_add_domain_argv"
25390 #: ../src/guestfs-actions.pod:114
25394 " guestfs_add_domain_argv (guestfs_h *g,\n"
25395 " const char *dom,\n"
25396 " const struct guestfs_add_domain_argv *optargs);\n"
25401 #: ../src/guestfs-actions.pod:119
25402 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25406 #: ../src/guestfs-actions.pod:123
25407 msgid "guestfs_add_drive"
25411 #: ../src/guestfs-actions.pod:125
25415 " guestfs_add_drive (guestfs_h *g,\n"
25416 " const char *filename);\n"
25421 #: ../src/guestfs-actions.pod:129
25423 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
25424 "optional parameters, so the disk is added writable, with the format being "
25425 "detected automatically."
25429 #: ../src/guestfs-actions.pod:133
25431 "Automatic detection of the format opens you up to a potential security hole "
25432 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
25433 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
25434 "you should think about replacing calls to this function with calls to "
25435 "C<guestfs_add_drive_opts>, and specifying the format."
25439 #: ../src/guestfs-actions.pod:144
25440 msgid "guestfs_add_drive_opts"
25444 #: ../src/guestfs-actions.pod:146
25448 " guestfs_add_drive_opts (guestfs_h *g,\n"
25449 " const char *filename,\n"
25455 #: ../src/guestfs-actions.pod:156
25458 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25459 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25460 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25461 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
25466 #: ../src/guestfs-actions.pod:186
25468 "This forces the image format. If you omit this (or use C<guestfs_add_drive> "
25469 "or C<guestfs_add_drive_ro>) then the format is automatically detected. "
25470 "Possible formats include C<raw> and C<qcow2>."
25474 #: ../src/guestfs-actions.pod:197
25476 "This rarely-used option lets you emulate the behaviour of the deprecated "
25477 "C<guestfs_add_drive_with_if> call (q.v.)"
25481 #: ../src/guestfs-actions.pod:209
25482 msgid "(Added in 1.5.23)"
25483 msgstr "(Додано у 1.5.23)"
25486 #: ../src/guestfs-actions.pod:211
25487 msgid "guestfs_add_drive_opts_va"
25491 #: ../src/guestfs-actions.pod:213
25495 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25496 " const char *filename,\n"
25497 " va_list args);\n"
25502 #: ../src/guestfs-actions.pod:218
25503 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25507 #: ../src/guestfs-actions.pod:222
25508 msgid "guestfs_add_drive_opts_argv"
25512 #: ../src/guestfs-actions.pod:224
25516 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25517 " const char *filename,\n"
25518 " const struct guestfs_add_drive_opts_argv *optargs);\n"
25523 #: ../src/guestfs-actions.pod:229
25524 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25528 #: ../src/guestfs-actions.pod:233
25529 msgid "guestfs_add_drive_ro"
25533 #: ../src/guestfs-actions.pod:235
25537 " guestfs_add_drive_ro (guestfs_h *g,\n"
25538 " const char *filename);\n"
25543 #: ../src/guestfs-actions.pod:239
25545 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25546 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25547 "disk is added read-only, with the format being detected automatically."
25551 #: ../src/guestfs-actions.pod:246
25552 msgid "(Added in 1.0.38)"
25553 msgstr "(Додано у 1.0.38)"
25556 #: ../src/guestfs-actions.pod:248
25557 msgid "guestfs_add_drive_ro_with_if"
25561 #: ../src/guestfs-actions.pod:250
25565 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25566 " const char *filename,\n"
25567 " const char *iface);\n"
25572 #: ../src/guestfs-actions.pod:262
25574 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25575 "QEMU interface emulation to use at run time."
25579 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:288
25580 #: ../src/guestfs-actions.pod:2826
25581 msgid "(Added in 1.0.84)"
25582 msgstr "(Додано у 1.0.84)"
25585 #: ../src/guestfs-actions.pod:269
25586 msgid "guestfs_add_drive_with_if"
25590 #: ../src/guestfs-actions.pod:271
25594 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25595 " const char *filename,\n"
25596 " const char *iface);\n"
25601 #: ../src/guestfs-actions.pod:283
25603 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25604 "QEMU interface emulation to use at run time."
25608 #: ../src/guestfs-actions.pod:290
25609 msgid "guestfs_aug_clear"
25613 #: ../src/guestfs-actions.pod:292
25617 " guestfs_aug_clear (guestfs_h *g,\n"
25618 " const char *augpath);\n"
25623 #: ../src/guestfs-actions.pod:301 ../src/guestfs-actions.pod:2554
25624 msgid "(Added in 1.3.4)"
25625 msgstr "(Додано у 1.3.4)"
25628 #: ../src/guestfs-actions.pod:303
25629 msgid "guestfs_aug_close"
25633 #: ../src/guestfs-actions.pod:305
25637 " guestfs_aug_close (guestfs_h *g);\n"
25642 #: ../src/guestfs-actions.pod:308
25644 "Close the current Augeas handle and free up any resources used by it. After "
25645 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25646 "any other Augeas functions."
25650 #: ../src/guestfs-actions.pod:315 ../src/guestfs-actions.pod:340
25651 #: ../src/guestfs-actions.pod:358 ../src/guestfs-actions.pod:372
25652 #: ../src/guestfs-actions.pod:435 ../src/guestfs-actions.pod:455
25653 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:500
25654 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:528
25655 #: ../src/guestfs-actions.pod:542 ../src/guestfs-actions.pod:560
25656 #: ../src/guestfs-actions.pod:6266
25657 msgid "(Added in 0.7)"
25658 msgstr "(Додано у 0.7)"
25661 #: ../src/guestfs-actions.pod:317
25662 msgid "guestfs_aug_defnode"
25666 #: ../src/guestfs-actions.pod:319
25669 " struct guestfs_int_bool *\n"
25670 " guestfs_aug_defnode (guestfs_h *g,\n"
25671 " const char *name,\n"
25672 " const char *expr,\n"
25673 " const char *val);\n"
25678 #: ../src/guestfs-actions.pod:328
25680 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25681 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
25682 "containing that single node."
25686 #: ../src/guestfs-actions.pod:336
25688 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25689 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
25693 #: ../src/guestfs-actions.pod:342
25694 msgid "guestfs_aug_defvar"
25698 #: ../src/guestfs-actions.pod:344
25702 " guestfs_aug_defvar (guestfs_h *g,\n"
25703 " const char *name,\n"
25704 " const char *expr);\n"
25709 #: ../src/guestfs-actions.pod:360
25710 msgid "guestfs_aug_get"
25711 msgstr "guestfs_aug_get"
25714 #: ../src/guestfs-actions.pod:362
25718 " guestfs_aug_get (guestfs_h *g,\n"
25719 " const char *augpath);\n"
25723 " guestfs_aug_get (guestfs_h *g,\n"
25724 " const char *augpath);\n"
25728 #: ../src/guestfs-actions.pod:369 ../src/guestfs-actions.pod:933
25729 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:1011
25730 #: ../src/guestfs-actions.pod:1027 ../src/guestfs-actions.pod:1130
25731 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1628
25732 #: ../src/guestfs-actions.pod:1647 ../src/guestfs-actions.pod:1781
25733 #: ../src/guestfs-actions.pod:1969 ../src/guestfs-actions.pod:2081
25734 #: ../src/guestfs-actions.pod:2244 ../src/guestfs-actions.pod:2261
25735 #: ../src/guestfs-actions.pod:2328 ../src/guestfs-actions.pod:2371
25736 #: ../src/guestfs-actions.pod:2392 ../src/guestfs-actions.pod:2577
25737 #: ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2995
25738 #: ../src/guestfs-actions.pod:3097 ../src/guestfs-actions.pod:3201
25739 #: ../src/guestfs-actions.pod:3220 ../src/guestfs-actions.pod:3435
25740 #: ../src/guestfs-actions.pod:3463 ../src/guestfs-actions.pod:3484
25741 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3581
25742 #: ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3621
25743 #: ../src/guestfs-actions.pod:4248 ../src/guestfs-actions.pod:4601
25744 #: ../src/guestfs-actions.pod:4771 ../src/guestfs-actions.pod:4881
25745 #: ../src/guestfs-actions.pod:5777 ../src/guestfs-actions.pod:5978
25746 #: ../src/guestfs-actions.pod:6164 ../src/guestfs-actions.pod:6342
25747 #: ../src/guestfs-actions.pod:6391 ../src/guestfs-actions.pod:7063
25748 #: ../src/guestfs-actions.pod:7079 ../src/guestfs-actions.pod:7103
25749 #: ../src/guestfs-actions.pod:7127 ../src/guestfs-actions.pod:7801
25750 #: ../src/guestfs-actions.pod:7820 ../src/guestfs-actions.pod:7838
25751 #: ../src/guestfs-actions.pod:8012 ../src/guestfs-actions.pod:8329
25753 "This function returns a string, or NULL on error. I<The caller must free "
25754 "the returned string after use>."
25758 #: ../src/guestfs-actions.pod:374
25759 msgid "guestfs_aug_init"
25760 msgstr "guestfs_aug_init"
25763 #: ../src/guestfs-actions.pod:376
25767 " guestfs_aug_init (guestfs_h *g,\n"
25768 " const char *root,\n"
25773 " guestfs_aug_init (guestfs_h *g,\n"
25774 " const char *root,\n"
25779 #: ../src/guestfs-actions.pod:385
25780 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25784 #: ../src/guestfs-actions.pod:410
25786 "This option is only useful when debugging Augeas lenses. Use of this option "
25787 "may require additional memory for the libguestfs appliance. You may need to "
25788 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25789 "C<guestfs_set_memsize>."
25793 #: ../src/guestfs-actions.pod:425
25794 msgid "Do not load the tree in C<guestfs_aug_init>."
25798 #: ../src/guestfs-actions.pod:429
25799 msgid "To close the handle, you can call C<guestfs_aug_close>."
25803 #: ../src/guestfs-actions.pod:437
25804 msgid "guestfs_aug_insert"
25805 msgstr "guestfs_aug_insert"
25808 #: ../src/guestfs-actions.pod:439
25812 " guestfs_aug_insert (guestfs_h *g,\n"
25813 " const char *augpath,\n"
25814 " const char *label,\n"
25819 " guestfs_aug_insert (guestfs_h *g,\n"
25820 " const char *augpath,\n"
25821 " const char *label,\n"
25826 #: ../src/guestfs-actions.pod:457
25827 msgid "guestfs_aug_load"
25828 msgstr "guestfs_aug_load"
25831 #: ../src/guestfs-actions.pod:459
25835 " guestfs_aug_load (guestfs_h *g);\n"
25839 " guestfs_aug_load (guestfs_h *g);\n"
25843 #: ../src/guestfs-actions.pod:471
25844 msgid "guestfs_aug_ls"
25845 msgstr "guestfs_aug_ls"
25848 #: ../src/guestfs-actions.pod:473
25852 " guestfs_aug_ls (guestfs_h *g,\n"
25853 " const char *augpath);\n"
25857 " guestfs_aug_ls (guestfs_h *g,\n"
25858 " const char *augpath);\n"
25862 #: ../src/guestfs-actions.pod:477
25864 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25865 "sorting the resulting nodes into alphabetical order."
25869 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:496
25870 #: ../src/guestfs-actions.pod:642 ../src/guestfs-actions.pod:1149
25871 #: ../src/guestfs-actions.pod:1796 ../src/guestfs-actions.pod:1815
25872 #: ../src/guestfs-actions.pod:1918 ../src/guestfs-actions.pod:1937
25873 #: ../src/guestfs-actions.pod:2183 ../src/guestfs-actions.pod:2649
25874 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:2684
25875 #: ../src/guestfs-actions.pod:2749 ../src/guestfs-actions.pod:2773
25876 #: ../src/guestfs-actions.pod:2844 ../src/guestfs-actions.pod:2893
25877 #: ../src/guestfs-actions.pod:3162 ../src/guestfs-actions.pod:3537
25878 #: ../src/guestfs-actions.pod:3817 ../src/guestfs-actions.pod:4131
25879 #: ../src/guestfs-actions.pod:4148 ../src/guestfs-actions.pod:4168
25880 #: ../src/guestfs-actions.pod:4230 ../src/guestfs-actions.pod:4335
25881 #: ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:5500
25882 #: ../src/guestfs-actions.pod:6136 ../src/guestfs-actions.pod:6262
25883 #: ../src/guestfs-actions.pod:6376 ../src/guestfs-actions.pod:7143
25884 #: ../src/guestfs-actions.pod:7204 ../src/guestfs-actions.pod:7259
25885 #: ../src/guestfs-actions.pod:7405 ../src/guestfs-actions.pod:7429
25886 #: ../src/guestfs-actions.pod:7905 ../src/guestfs-actions.pod:7925
25887 #: ../src/guestfs-actions.pod:7972 ../src/guestfs-actions.pod:8166
25888 #: ../src/guestfs-actions.pod:8185 ../src/guestfs-actions.pod:8279
25889 #: ../src/guestfs-actions.pod:8298 ../src/guestfs-actions.pod:8344
25890 #: ../src/guestfs-actions.pod:8363
25892 "This function returns a NULL-terminated array of strings (like L<environ(3)"
25893 ">), or NULL if there was an error. I<The caller must free the strings and "
25894 "the array after use>."
25898 #: ../src/guestfs-actions.pod:484 ../src/guestfs-actions.pod:1074
25899 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1853
25900 #: ../src/guestfs-actions.pod:3895 ../src/guestfs-actions.pod:3926
25901 #: ../src/guestfs-actions.pod:4584 ../src/guestfs-actions.pod:4634
25902 #: ../src/guestfs-actions.pod:4821 ../src/guestfs-actions.pod:4854
25903 #: ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5504
25904 #: ../src/guestfs-actions.pod:6077 ../src/guestfs-actions.pod:6474
25905 #: ../src/guestfs-actions.pod:6488 ../src/guestfs-actions.pod:6500
25906 #: ../src/guestfs-actions.pod:6984 ../src/guestfs-actions.pod:7643
25907 #: ../src/guestfs-actions.pod:7656 ../src/guestfs-actions.pod:7889
25908 #: ../src/guestfs-actions.pod:8154
25909 msgid "(Added in 0.8)"
25910 msgstr "(Додано у 0.8)"
25913 #: ../src/guestfs-actions.pod:486
25914 msgid "guestfs_aug_match"
25915 msgstr "guestfs_aug_match"
25918 #: ../src/guestfs-actions.pod:488
25922 " guestfs_aug_match (guestfs_h *g,\n"
25923 " const char *augpath);\n"
25927 " guestfs_aug_match (guestfs_h *g,\n"
25928 " const char *augpath);\n"
25932 #: ../src/guestfs-actions.pod:502
25933 msgid "guestfs_aug_mv"
25934 msgstr "guestfs_aug_mv"
25937 #: ../src/guestfs-actions.pod:504
25941 " guestfs_aug_mv (guestfs_h *g,\n"
25942 " const char *src,\n"
25943 " const char *dest);\n"
25947 " guestfs_aug_mv (guestfs_h *g,\n"
25948 " const char *src,\n"
25949 " const char *dest);\n"
25953 #: ../src/guestfs-actions.pod:516
25954 msgid "guestfs_aug_rm"
25955 msgstr "guestfs_aug_rm"
25958 #: ../src/guestfs-actions.pod:518
25962 " guestfs_aug_rm (guestfs_h *g,\n"
25963 " const char *augpath);\n"
25967 " guestfs_aug_rm (guestfs_h *g,\n"
25968 " const char *augpath);\n"
25972 #: ../src/guestfs-actions.pod:530
25973 msgid "guestfs_aug_save"
25974 msgstr "guestfs_aug_save"
25977 #: ../src/guestfs-actions.pod:532
25981 " guestfs_aug_save (guestfs_h *g);\n"
25985 " guestfs_aug_save (guestfs_h *g);\n"
25989 #: ../src/guestfs-actions.pod:537
25991 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25996 #: ../src/guestfs-actions.pod:544
25997 msgid "guestfs_aug_set"
25998 msgstr "guestfs_aug_set"
26001 #: ../src/guestfs-actions.pod:546
26005 " guestfs_aug_set (guestfs_h *g,\n"
26006 " const char *augpath,\n"
26007 " const char *val);\n"
26011 " guestfs_aug_set (guestfs_h *g,\n"
26012 " const char *augpath,\n"
26013 " const char *val);\n"
26017 #: ../src/guestfs-actions.pod:553
26019 "In the Augeas API, it is possible to clear a node by setting the value to "
26020 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
26021 "this call. Instead you must use the C<guestfs_aug_clear> call."
26025 #: ../src/guestfs-actions.pod:562
26026 msgid "guestfs_available"
26027 msgstr "guestfs_available"
26030 #: ../src/guestfs-actions.pod:564
26034 " guestfs_available (guestfs_h *g,\n"
26035 " char *const *groups);\n"
26039 " guestfs_available (guestfs_h *g,\n"
26040 " char *const *groups);\n"
26044 #: ../src/guestfs-actions.pod:572
26046 "The libguestfs groups, and the functions that those groups correspond to, "
26047 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
26048 "runtime by calling C<guestfs_available_all_groups>."
26052 #: ../src/guestfs-actions.pod:596
26053 msgid "You must call C<guestfs_launch> before calling this function."
26057 #: ../src/guestfs-actions.pod:618
26059 "This call was added in version C<1.0.80>. In previous versions of "
26060 "libguestfs all you could do would be to speculatively execute a command to "
26061 "find out if the daemon implemented it. See also C<guestfs_version>."
26065 #: ../src/guestfs-actions.pod:627 ../src/guestfs-actions.pod:1598
26066 msgid "(Added in 1.0.80)"
26067 msgstr "(Додано у 1.0.80)"
26070 #: ../src/guestfs-actions.pod:629
26071 msgid "guestfs_available_all_groups"
26072 msgstr "guestfs_available_all_groups"
26075 #: ../src/guestfs-actions.pod:631
26079 " guestfs_available_all_groups (guestfs_h *g);\n"
26083 " guestfs_available_all_groups (guestfs_h *g);\n"
26087 #: ../src/guestfs-actions.pod:634
26089 "This command returns a list of all optional groups that this daemon knows "
26090 "about. Note this returns both supported and unsupported groups. To find "
26091 "out which ones the daemon can actually support you have to call "
26092 "C<guestfs_available> on each member of the returned list."
26096 #: ../src/guestfs-actions.pod:640
26097 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
26101 #: ../src/guestfs-actions.pod:646
26102 msgid "(Added in 1.3.15)"
26103 msgstr "(Додано у 1.3.15)"
26106 #: ../src/guestfs-actions.pod:648
26107 msgid "guestfs_base64_in"
26108 msgstr "guestfs_base64_in"
26111 #: ../src/guestfs-actions.pod:650
26115 " guestfs_base64_in (guestfs_h *g,\n"
26116 " const char *base64file,\n"
26117 " const char *filename);\n"
26121 " guestfs_base64_in (guestfs_h *g,\n"
26122 " const char *base64file,\n"
26123 " const char *filename);\n"
26127 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:674
26128 msgid "(Added in 1.3.5)"
26129 msgstr "(Додано у 1.3.5)"
26132 #: ../src/guestfs-actions.pod:662
26133 msgid "guestfs_base64_out"
26134 msgstr "guestfs_base64_out"
26137 #: ../src/guestfs-actions.pod:664
26141 " guestfs_base64_out (guestfs_h *g,\n"
26142 " const char *filename,\n"
26143 " const char *base64file);\n"
26147 " guestfs_base64_out (guestfs_h *g,\n"
26148 " const char *filename,\n"
26149 " const char *base64file);\n"
26153 #: ../src/guestfs-actions.pod:676
26154 msgid "guestfs_blockdev_flushbufs"
26155 msgstr "guestfs_blockdev_flushbufs"
26158 #: ../src/guestfs-actions.pod:678
26162 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26163 " const char *device);\n"
26167 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26168 " const char *device);\n"
26172 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:706
26173 #: ../src/guestfs-actions.pod:721 ../src/guestfs-actions.pod:737
26174 #: ../src/guestfs-actions.pod:755 ../src/guestfs-actions.pod:774
26175 #: ../src/guestfs-actions.pod:788 ../src/guestfs-actions.pod:806
26176 #: ../src/guestfs-actions.pod:820 ../src/guestfs-actions.pod:834
26177 msgid "(Added in 0.9.3)"
26178 msgstr "(Додано у 0.9.3)"
26181 #: ../src/guestfs-actions.pod:691
26182 msgid "guestfs_blockdev_getbsz"
26183 msgstr "guestfs_blockdev_getbsz"
26186 #: ../src/guestfs-actions.pod:693
26190 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26191 " const char *device);\n"
26195 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26196 " const char *device);\n"
26200 #: ../src/guestfs-actions.pod:708
26201 msgid "guestfs_blockdev_getro"
26202 msgstr "guestfs_blockdev_getro"
26205 #: ../src/guestfs-actions.pod:710
26209 " guestfs_blockdev_getro (guestfs_h *g,\n"
26210 " const char *device);\n"
26214 " guestfs_blockdev_getro (guestfs_h *g,\n"
26215 " const char *device);\n"
26219 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:1836
26220 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:2340
26221 #: ../src/guestfs-actions.pod:2351 ../src/guestfs-actions.pod:2423
26222 #: ../src/guestfs-actions.pod:2449 ../src/guestfs-actions.pod:2489
26223 #: ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2540
26224 #: ../src/guestfs-actions.pod:2563 ../src/guestfs-actions.pod:3638
26225 #: ../src/guestfs-actions.pod:3654 ../src/guestfs-actions.pod:3672
26226 #: ../src/guestfs-actions.pod:3834 ../src/guestfs-actions.pod:3848
26227 #: ../src/guestfs-actions.pod:3863 ../src/guestfs-actions.pod:3877
26228 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3908
26229 #: ../src/guestfs-actions.pod:3924 ../src/guestfs-actions.pod:3938
26230 #: ../src/guestfs-actions.pod:3951 ../src/guestfs-actions.pod:3965
26231 #: ../src/guestfs-actions.pod:3980 ../src/guestfs-actions.pod:3995
26232 #: ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4022
26233 #: ../src/guestfs-actions.pod:5741
26234 msgid "This function returns a C truth value on success or -1 on error."
26238 #: ../src/guestfs-actions.pod:723
26239 msgid "guestfs_blockdev_getsize64"
26240 msgstr "guestfs_blockdev_getsize64"
26243 #: ../src/guestfs-actions.pod:725
26247 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26248 " const char *device);\n"
26252 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26253 " const char *device);\n"
26257 #: ../src/guestfs-actions.pod:731
26258 msgid "See also C<guestfs_blockdev_getsz>."
26262 #: ../src/guestfs-actions.pod:739
26263 msgid "guestfs_blockdev_getss"
26264 msgstr "guestfs_blockdev_getss"
26267 #: ../src/guestfs-actions.pod:741
26271 " guestfs_blockdev_getss (guestfs_h *g,\n"
26272 " const char *device);\n"
26276 " guestfs_blockdev_getss (guestfs_h *g,\n"
26277 " const char *device);\n"
26281 #: ../src/guestfs-actions.pod:748
26283 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26288 #: ../src/guestfs-actions.pod:757
26289 msgid "guestfs_blockdev_getsz"
26290 msgstr "guestfs_blockdev_getsz"
26293 #: ../src/guestfs-actions.pod:759
26297 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26298 " const char *device);\n"
26302 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26303 " const char *device);\n"
26307 #: ../src/guestfs-actions.pod:766
26309 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26310 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26314 #: ../src/guestfs-actions.pod:776
26315 msgid "guestfs_blockdev_rereadpt"
26316 msgstr "guestfs_blockdev_rereadpt"
26319 #: ../src/guestfs-actions.pod:778
26323 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26324 " const char *device);\n"
26328 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26329 " const char *device);\n"
26333 #: ../src/guestfs-actions.pod:790
26334 msgid "guestfs_blockdev_setbsz"
26335 msgstr "guestfs_blockdev_setbsz"
26338 #: ../src/guestfs-actions.pod:792
26342 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26343 " const char *device,\n"
26344 " int blocksize);\n"
26348 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26349 " const char *device,\n"
26350 " int blocksize);\n"
26354 #: ../src/guestfs-actions.pod:808
26355 msgid "guestfs_blockdev_setro"
26356 msgstr "guestfs_blockdev_setro"
26359 #: ../src/guestfs-actions.pod:810
26363 " guestfs_blockdev_setro (guestfs_h *g,\n"
26364 " const char *device);\n"
26368 " guestfs_blockdev_setro (guestfs_h *g,\n"
26369 " const char *device);\n"
26373 #: ../src/guestfs-actions.pod:822
26374 msgid "guestfs_blockdev_setrw"
26375 msgstr "guestfs_blockdev_setrw"
26378 #: ../src/guestfs-actions.pod:824
26382 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26383 " const char *device);\n"
26387 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26388 " const char *device);\n"
26392 #: ../src/guestfs-actions.pod:836
26393 msgid "guestfs_btrfs_filesystem_resize"
26394 msgstr "guestfs_btrfs_filesystem_resize"
26397 #: ../src/guestfs-actions.pod:838
26401 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26402 " const char *mountpoint,\n"
26407 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26408 " const char *mountpoint,\n"
26413 #: ../src/guestfs-actions.pod:848
26416 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26419 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26423 #: ../src/guestfs-actions.pod:871
26424 msgid "(Added in 1.11.17)"
26425 msgstr "(Додано у 1.11.17)"
26428 #: ../src/guestfs-actions.pod:873
26429 msgid "guestfs_btrfs_filesystem_resize_va"
26430 msgstr "guestfs_btrfs_filesystem_resize_va"
26433 #: ../src/guestfs-actions.pod:875
26437 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26438 " const char *mountpoint,\n"
26439 " va_list args);\n"
26443 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26444 " const char *mountpoint,\n"
26445 " va_list args);\n"
26449 #: ../src/guestfs-actions.pod:880
26450 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26454 #: ../src/guestfs-actions.pod:884
26455 msgid "guestfs_btrfs_filesystem_resize_argv"
26456 msgstr "guestfs_btrfs_filesystem_resize_argv"
26459 #: ../src/guestfs-actions.pod:886
26463 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26464 " const char *mountpoint,\n"
26465 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26469 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26470 " const char *mountpoint,\n"
26471 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26475 #: ../src/guestfs-actions.pod:891
26476 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26480 #: ../src/guestfs-actions.pod:895
26481 msgid "guestfs_case_sensitive_path"
26485 #: ../src/guestfs-actions.pod:897
26489 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26490 " const char *path);\n"
26495 #: ../src/guestfs-actions.pod:923
26497 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return C<"
26498 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26499 "how the directories were originally created under Windows)."
26503 #: ../src/guestfs-actions.pod:931
26504 msgid "See also C<guestfs_realpath>."
26508 #: ../src/guestfs-actions.pod:936 ../src/guestfs-actions.pod:7823
26509 msgid "(Added in 1.0.75)"
26510 msgstr "(Додано у 1.0.75)"
26513 #: ../src/guestfs-actions.pod:938
26514 msgid "guestfs_cat"
26518 #: ../src/guestfs-actions.pod:940
26522 " guestfs_cat (guestfs_h *g,\n"
26523 " const char *path);\n"
26528 #: ../src/guestfs-actions.pod:946
26530 "Note that this function cannot correctly handle binary files (specifically, "
26531 "files containing C<\\0> character which is treated as end of string). For "
26532 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26533 "functions which have a more complex interface."
26537 #: ../src/guestfs-actions.pod:957 ../src/guestfs-actions.pod:4152
26538 #: ../src/guestfs-actions.pod:4234 ../src/guestfs-actions.pod:4251
26539 #: ../src/guestfs-actions.pod:4339 ../src/guestfs-actions.pod:4747
26540 #: ../src/guestfs-actions.pod:4761 ../src/guestfs-actions.pod:6140
26541 #: ../src/guestfs-actions.pod:6154 ../src/guestfs-actions.pod:7976
26542 #: ../src/guestfs-actions.pod:7990
26543 msgid "(Added in 0.4)"
26544 msgstr "(Додано у 0.4)"
26547 #: ../src/guestfs-actions.pod:959
26548 msgid "guestfs_checksum"
26552 #: ../src/guestfs-actions.pod:961
26556 " guestfs_checksum (guestfs_h *g,\n"
26557 " const char *csumtype,\n"
26558 " const char *path);\n"
26563 #: ../src/guestfs-actions.pod:1007
26564 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26568 #: ../src/guestfs-actions.pod:1009
26569 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26573 #: ../src/guestfs-actions.pod:1014 ../src/guestfs-actions.pod:1673
26574 #: ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:3850
26575 #: ../src/guestfs-actions.pod:3879 ../src/guestfs-actions.pod:3940
26576 #: ../src/guestfs-actions.pod:3967 ../src/guestfs-actions.pod:7679
26577 msgid "(Added in 1.0.2)"
26578 msgstr "(Додано у 1.0.2)"
26581 #: ../src/guestfs-actions.pod:1016
26582 msgid "guestfs_checksum_device"
26586 #: ../src/guestfs-actions.pod:1018
26590 " guestfs_checksum_device (guestfs_h *g,\n"
26591 " const char *csumtype,\n"
26592 " const char *device);\n"
26597 #: ../src/guestfs-actions.pod:1023
26599 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26600 "device named C<device>. For the types of checksums supported see the "
26601 "C<guestfs_checksum> command."
26605 #: ../src/guestfs-actions.pod:1030 ../src/guestfs-actions.pod:5571
26606 #: ../src/guestfs-actions.pod:5706 ../src/guestfs-actions.pod:5743
26607 #: ../src/guestfs-actions.pod:5761 ../src/guestfs-actions.pod:5943
26608 #: ../src/guestfs-actions.pod:7588 ../src/guestfs-actions.pod:7602
26609 #: ../src/guestfs-actions.pod:8002
26610 msgid "(Added in 1.3.2)"
26611 msgstr "(Додано у 1.3.2)"
26614 #: ../src/guestfs-actions.pod:1032
26615 msgid "guestfs_checksums_out"
26619 #: ../src/guestfs-actions.pod:1034
26623 " guestfs_checksums_out (guestfs_h *g,\n"
26624 " const char *csumtype,\n"
26625 " const char *directory,\n"
26626 " const char *sumsfile);\n"
26631 #: ../src/guestfs-actions.pod:1054
26632 msgid "(Added in 1.3.7)"
26633 msgstr "(Додано у 1.3.7)"
26636 #: ../src/guestfs-actions.pod:1056
26637 msgid "guestfs_chmod"
26641 #: ../src/guestfs-actions.pod:1058
26645 " guestfs_chmod (guestfs_h *g,\n"
26647 " const char *path);\n"
26652 #: ../src/guestfs-actions.pod:1076
26653 msgid "guestfs_chown"
26657 #: ../src/guestfs-actions.pod:1078
26661 " guestfs_chown (guestfs_h *g,\n"
26664 " const char *path);\n"
26669 #: ../src/guestfs-actions.pod:1094
26670 msgid "guestfs_command"
26674 #: ../src/guestfs-actions.pod:1096
26678 " guestfs_command (guestfs_h *g,\n"
26679 " char *const *arguments);\n"
26684 #: ../src/guestfs-actions.pod:1105
26686 "The single parameter is an argv-style list of arguments. The first element "
26687 "is the name of the program to run. Subsequent elements are parameters. The "
26688 "list must be non-empty (ie. must contain a program name). Note that the "
26689 "command runs directly, and is I<not> invoked via the shell (see "
26694 #: ../src/guestfs-actions.pod:1136 ../src/guestfs-actions.pod:1156
26695 #: ../src/guestfs-actions.pod:1972
26696 msgid "(Added in 0.9.1)"
26697 msgstr "(Додано у 0.9.1)"
26700 #: ../src/guestfs-actions.pod:1138
26701 msgid "guestfs_command_lines"
26705 #: ../src/guestfs-actions.pod:1140
26709 " guestfs_command_lines (guestfs_h *g,\n"
26710 " char *const *arguments);\n"
26715 #: ../src/guestfs-actions.pod:1144
26717 "This is the same as C<guestfs_command>, but splits the result into a list of "
26722 #: ../src/guestfs-actions.pod:1147
26723 msgid "See also: C<guestfs_sh_lines>"
26727 #: ../src/guestfs-actions.pod:1158
26728 msgid "guestfs_compress_device_out"
26732 #: ../src/guestfs-actions.pod:1160
26736 " guestfs_compress_device_out (guestfs_h *g,\n"
26737 " const char *ctype,\n"
26738 " const char *device,\n"
26739 " const char *zdevice,\n"
26745 #: ../src/guestfs-actions.pod:1172
26748 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26753 #: ../src/guestfs-actions.pod:1177
26755 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26756 "C<guestfs_compress_out>."
26760 #: ../src/guestfs-actions.pod:1182 ../src/guestfs-actions.pod:1241
26761 #: ../src/guestfs-actions.pod:2517 ../src/guestfs-actions.pod:6860
26762 msgid "(Added in 1.13.15)"
26766 #: ../src/guestfs-actions.pod:1184
26767 msgid "guestfs_compress_device_out_va"
26771 #: ../src/guestfs-actions.pod:1186
26775 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26776 " const char *ctype,\n"
26777 " const char *device,\n"
26778 " const char *zdevice,\n"
26779 " va_list args);\n"
26784 #: ../src/guestfs-actions.pod:1193
26785 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26789 #: ../src/guestfs-actions.pod:1197
26790 msgid "guestfs_compress_device_out_argv"
26794 #: ../src/guestfs-actions.pod:1199
26798 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26799 " const char *ctype,\n"
26800 " const char *device,\n"
26801 " const char *zdevice,\n"
26802 " const struct guestfs_compress_device_out_argv *optargs);\n"
26807 #: ../src/guestfs-actions.pod:1206
26808 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26812 #: ../src/guestfs-actions.pod:1210
26813 msgid "guestfs_compress_out"
26817 #: ../src/guestfs-actions.pod:1212
26821 " guestfs_compress_out (guestfs_h *g,\n"
26822 " const char *ctype,\n"
26823 " const char *file,\n"
26824 " const char *zfile,\n"
26830 #: ../src/guestfs-actions.pod:1224
26833 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26838 #: ../src/guestfs-actions.pod:1243
26839 msgid "guestfs_compress_out_va"
26843 #: ../src/guestfs-actions.pod:1245
26847 " guestfs_compress_out_va (guestfs_h *g,\n"
26848 " const char *ctype,\n"
26849 " const char *file,\n"
26850 " const char *zfile,\n"
26851 " va_list args);\n"
26856 #: ../src/guestfs-actions.pod:1252
26857 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26861 #: ../src/guestfs-actions.pod:1256
26862 msgid "guestfs_compress_out_argv"
26866 #: ../src/guestfs-actions.pod:1258
26870 " guestfs_compress_out_argv (guestfs_h *g,\n"
26871 " const char *ctype,\n"
26872 " const char *file,\n"
26873 " const char *zfile,\n"
26874 " const struct guestfs_compress_out_argv *optargs);\n"
26879 #: ../src/guestfs-actions.pod:1265
26880 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26884 #: ../src/guestfs-actions.pod:1269
26885 msgid "guestfs_config"
26889 #: ../src/guestfs-actions.pod:1271
26893 " guestfs_config (guestfs_h *g,\n"
26894 " const char *qemuparam,\n"
26895 " const char *qemuvalue);\n"
26900 #: ../src/guestfs-actions.pod:1289
26902 #| msgid "guestfs_zero_device"
26903 msgid "guestfs_copy_device_to_device"
26904 msgstr "guestfs_zero_device"
26907 #: ../src/guestfs-actions.pod:1291
26911 #| " guestfs_luks_kill_slot (guestfs_h *g,\n"
26912 #| " const char *device,\n"
26913 #| " const char *key,\n"
26914 #| " int keyslot);\n"
26918 " guestfs_copy_device_to_device (guestfs_h *g,\n"
26919 " const char *src,\n"
26920 " const char *dest,\n"
26925 " guestfs_luks_kill_slot (guestfs_h *g,\n"
26926 " const char *device,\n"
26927 " const char *key,\n"
26932 #: ../src/guestfs-actions.pod:1302
26935 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26936 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26937 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
26942 #: ../src/guestfs-actions.pod:1306
26944 "The four calls C<guestfs_copy_device_to_device>, "
26945 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
26946 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
26947 "destination (device|file)."
26951 #: ../src/guestfs-actions.pod:1327 ../src/guestfs-actions.pod:1378
26952 #: ../src/guestfs-actions.pod:1429 ../src/guestfs-actions.pod:1485
26953 #: ../src/guestfs-actions.pod:1537 ../src/guestfs-actions.pod:1668
26954 #: ../src/guestfs-actions.pod:1699 ../src/guestfs-actions.pod:1744
26955 #: ../src/guestfs-actions.pod:2121 ../src/guestfs-actions.pod:2143
26956 #: ../src/guestfs-actions.pod:4050 ../src/guestfs-actions.pod:7674
26957 #: ../src/guestfs-actions.pod:7708 ../src/guestfs-actions.pod:8215
26958 #: ../src/guestfs-actions.pod:8238
26960 "This long-running command can generate progress notification messages so "
26961 "that the caller can display a progress bar or indicator. To receive these "
26962 "messages, the caller must register a progress event callback. See L<guestfs"
26963 "(3)/GUESTFS_EVENT_PROGRESS>."
26967 #: ../src/guestfs-actions.pod:1332
26969 #| msgid "guestfs_zero_device"
26970 msgid "guestfs_copy_device_to_device_va"
26971 msgstr "guestfs_zero_device"
26974 #: ../src/guestfs-actions.pod:1334
26978 #| " guestfs_mkfs_opts_va (guestfs_h *g,\n"
26979 #| " const char *fstype,\n"
26980 #| " const char *device,\n"
26981 #| " va_list args);\n"
26985 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
26986 " const char *src,\n"
26987 " const char *dest,\n"
26988 " va_list args);\n"
26992 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
26993 " const char *fstype,\n"
26994 " const char *device,\n"
26995 " va_list args);\n"
26999 #: ../src/guestfs-actions.pod:1340
27000 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
27004 #: ../src/guestfs-actions.pod:1344
27006 #| msgid "guestfs_zero_device"
27007 msgid "guestfs_copy_device_to_device_argv"
27008 msgstr "guestfs_zero_device"
27011 #: ../src/guestfs-actions.pod:1346
27015 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27016 #| " const char *fstype,\n"
27017 #| " const char *device,\n"
27018 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
27022 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
27023 " const char *src,\n"
27024 " const char *dest,\n"
27025 " const struct guestfs_copy_device_to_device_argv *optargs);\n"
27029 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27030 " const char *fstype,\n"
27031 " const char *device,\n"
27032 " const struct guestfs_mkfs_opts_argv *optargs);\n"
27036 #: ../src/guestfs-actions.pod:1352
27037 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
27041 #: ../src/guestfs-actions.pod:1356
27043 #| msgid "guestfs_zero_device"
27044 msgid "guestfs_copy_device_to_file"
27045 msgstr "guestfs_zero_device"
27048 #: ../src/guestfs-actions.pod:1358
27052 #| " guestfs_luks_kill_slot (guestfs_h *g,\n"
27053 #| " const char *device,\n"
27054 #| " const char *key,\n"
27055 #| " int keyslot);\n"
27059 " guestfs_copy_device_to_file (guestfs_h *g,\n"
27060 " const char *src,\n"
27061 " const char *dest,\n"
27066 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27067 " const char *device,\n"
27068 " const char *key,\n"
27073 #: ../src/guestfs-actions.pod:1369
27076 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27077 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27078 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
27083 #: ../src/guestfs-actions.pod:1373 ../src/guestfs-actions.pod:1424
27084 #: ../src/guestfs-actions.pod:1475
27086 "See C<guestfs_copy_device_to_device> for a general overview of this call."
27090 #: ../src/guestfs-actions.pod:1383
27092 #| msgid "guestfs_zero_device"
27093 msgid "guestfs_copy_device_to_file_va"
27094 msgstr "guestfs_zero_device"
27097 #: ../src/guestfs-actions.pod:1385
27101 #| " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27102 #| " const char *fstype,\n"
27103 #| " const char *device,\n"
27104 #| " va_list args);\n"
27108 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
27109 " const char *src,\n"
27110 " const char *dest,\n"
27111 " va_list args);\n"
27115 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27116 " const char *fstype,\n"
27117 " const char *device,\n"
27118 " va_list args);\n"
27122 #: ../src/guestfs-actions.pod:1391
27123 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
27127 #: ../src/guestfs-actions.pod:1395
27129 #| msgid "guestfs_lvm_set_filter"
27130 msgid "guestfs_copy_device_to_file_argv"
27131 msgstr "guestfs_lvm_set_filter"
27134 #: ../src/guestfs-actions.pod:1397
27138 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27139 #| " const char *fstype,\n"
27140 #| " const char *device,\n"
27141 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
27145 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
27146 " const char *src,\n"
27147 " const char *dest,\n"
27148 " const struct guestfs_copy_device_to_file_argv *optargs);\n"
27152 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27153 " const char *fstype,\n"
27154 " const char *device,\n"
27155 " const struct guestfs_mkfs_opts_argv *optargs);\n"
27159 #: ../src/guestfs-actions.pod:1403
27160 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
27164 #: ../src/guestfs-actions.pod:1407
27166 #| msgid "guestfs_zero_device"
27167 msgid "guestfs_copy_file_to_device"
27168 msgstr "guestfs_zero_device"
27171 #: ../src/guestfs-actions.pod:1409
27175 #| " guestfs_luks_kill_slot (guestfs_h *g,\n"
27176 #| " const char *device,\n"
27177 #| " const char *key,\n"
27178 #| " int keyslot);\n"
27182 " guestfs_copy_file_to_device (guestfs_h *g,\n"
27183 " const char *src,\n"
27184 " const char *dest,\n"
27189 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27190 " const char *device,\n"
27191 " const char *key,\n"
27196 #: ../src/guestfs-actions.pod:1420
27199 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27200 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27201 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
27206 #: ../src/guestfs-actions.pod:1434
27208 #| msgid "guestfs_zero_device"
27209 msgid "guestfs_copy_file_to_device_va"
27210 msgstr "guestfs_zero_device"
27213 #: ../src/guestfs-actions.pod:1436
27217 #| " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27218 #| " const char *fstype,\n"
27219 #| " const char *device,\n"
27220 #| " va_list args);\n"
27224 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
27225 " const char *src,\n"
27226 " const char *dest,\n"
27227 " va_list args);\n"
27231 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27232 " const char *fstype,\n"
27233 " const char *device,\n"
27234 " va_list args);\n"
27238 #: ../src/guestfs-actions.pod:1442
27239 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
27243 #: ../src/guestfs-actions.pod:1446
27245 #| msgid "guestfs_btrfs_filesystem_resize_argv"
27246 msgid "guestfs_copy_file_to_device_argv"
27247 msgstr "guestfs_btrfs_filesystem_resize_argv"
27250 #: ../src/guestfs-actions.pod:1448
27254 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27255 #| " const char *fstype,\n"
27256 #| " const char *device,\n"
27257 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
27261 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
27262 " const char *src,\n"
27263 " const char *dest,\n"
27264 " const struct guestfs_copy_file_to_device_argv *optargs);\n"
27268 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27269 " const char *fstype,\n"
27270 " const char *device,\n"
27271 " const struct guestfs_mkfs_opts_argv *optargs);\n"
27275 #: ../src/guestfs-actions.pod:1454
27276 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
27280 #: ../src/guestfs-actions.pod:1458
27282 #| msgid "guestfs_write_file"
27283 msgid "guestfs_copy_file_to_file"
27284 msgstr "guestfs_write_file"
27287 #: ../src/guestfs-actions.pod:1460
27291 #| " guestfs_luks_kill_slot (guestfs_h *g,\n"
27292 #| " const char *device,\n"
27293 #| " const char *key,\n"
27294 #| " int keyslot);\n"
27298 " guestfs_copy_file_to_file (guestfs_h *g,\n"
27299 " const char *src,\n"
27300 " const char *dest,\n"
27305 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27306 " const char *device,\n"
27307 " const char *key,\n"
27312 #: ../src/guestfs-actions.pod:1471
27315 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27316 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27317 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
27322 #: ../src/guestfs-actions.pod:1478
27324 "This is B<not> the function you want for copying files. This is for copying "
27325 "blocks within existing files. See C<guestfs_cp>, C<guestfs_cp_a> and "
27326 "C<guestfs_mv> for general file copying and moving functions."
27330 #: ../src/guestfs-actions.pod:1490
27332 #| msgid "guestfs_write_file"
27333 msgid "guestfs_copy_file_to_file_va"
27334 msgstr "guestfs_write_file"
27337 #: ../src/guestfs-actions.pod:1492
27341 #| " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27342 #| " const char *fstype,\n"
27343 #| " const char *device,\n"
27344 #| " va_list args);\n"
27348 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
27349 " const char *src,\n"
27350 " const char *dest,\n"
27351 " va_list args);\n"
27355 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27356 " const char *fstype,\n"
27357 " const char *device,\n"
27358 " va_list args);\n"
27362 #: ../src/guestfs-actions.pod:1498
27363 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
27367 #: ../src/guestfs-actions.pod:1502
27369 #| msgid "guestfs_btrfs_filesystem_resize_argv"
27370 msgid "guestfs_copy_file_to_file_argv"
27371 msgstr "guestfs_btrfs_filesystem_resize_argv"
27374 #: ../src/guestfs-actions.pod:1504
27378 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27379 #| " const char *fstype,\n"
27380 #| " const char *device,\n"
27381 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
27385 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
27386 " const char *src,\n"
27387 " const char *dest,\n"
27388 " const struct guestfs_copy_file_to_file_argv *optargs);\n"
27392 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27393 " const char *fstype,\n"
27394 " const char *device,\n"
27395 " const struct guestfs_mkfs_opts_argv *optargs);\n"
27399 #: ../src/guestfs-actions.pod:1510
27400 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
27404 #: ../src/guestfs-actions.pod:1514
27405 msgid "guestfs_copy_size"
27409 #: ../src/guestfs-actions.pod:1516
27413 " guestfs_copy_size (guestfs_h *g,\n"
27414 " const char *src,\n"
27415 " const char *dest,\n"
27416 " int64_t size);\n"
27421 #: ../src/guestfs-actions.pod:1522 ../src/guestfs-actions.pod:1579
27423 "I<This function is deprecated.> In new code, use the L</"
27424 "guestfs_copy_device_to_device> call instead."
27428 #: ../src/guestfs-actions.pod:1542 ../src/guestfs-actions.pod:4774
27429 #: ../src/guestfs-actions.pod:6167 ../src/guestfs-actions.pod:7909
27430 #: ../src/guestfs-actions.pod:7929 ../src/guestfs-actions.pod:8015
27431 msgid "(Added in 1.0.87)"
27432 msgstr "(Додано у 1.0.87)"
27435 #: ../src/guestfs-actions.pod:1544
27440 #: ../src/guestfs-actions.pod:1546
27444 " guestfs_cp (guestfs_h *g,\n"
27445 " const char *src,\n"
27446 " const char *dest);\n"
27451 #: ../src/guestfs-actions.pod:1556 ../src/guestfs-actions.pod:1570
27452 #: ../src/guestfs-actions.pod:1650 ../src/guestfs-actions.pod:1724
27453 #: ../src/guestfs-actions.pod:1838 ../src/guestfs-actions.pod:5518
27454 #: ../src/guestfs-actions.pod:6011
27455 msgid "(Added in 1.0.18)"
27456 msgstr "(Додано у 1.0.18)"
27459 #: ../src/guestfs-actions.pod:1558
27460 msgid "guestfs_cp_a"
27464 #: ../src/guestfs-actions.pod:1560
27468 " guestfs_cp_a (guestfs_h *g,\n"
27469 " const char *src,\n"
27470 " const char *dest);\n"
27475 #: ../src/guestfs-actions.pod:1572
27480 #: ../src/guestfs-actions.pod:1574
27484 " guestfs_dd (guestfs_h *g,\n"
27485 " const char *src,\n"
27486 " const char *dest);\n"
27491 #: ../src/guestfs-actions.pod:1591
27493 "If the destination is a device, it must be as large or larger than the "
27494 "source file or device, otherwise the copy will fail. This command cannot do "
27495 "partial copies (see C<guestfs_copy_device_to_device>)."
27499 #: ../src/guestfs-actions.pod:1600
27504 #: ../src/guestfs-actions.pod:1602
27508 " guestfs_df (guestfs_h *g);\n"
27513 #: ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1624
27515 "This command is mostly useful for interactive sessions. It is I<not> "
27516 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
27521 #: ../src/guestfs-actions.pod:1614 ../src/guestfs-actions.pod:1631
27522 #: ../src/guestfs-actions.pod:1749 ../src/guestfs-actions.pod:2756
27523 #: ../src/guestfs-actions.pod:2780 ../src/guestfs-actions.pod:2848
27524 #: ../src/guestfs-actions.pod:4884 ../src/guestfs-actions.pod:5418
27525 #: ../src/guestfs-actions.pod:7412 ../src/guestfs-actions.pod:7436
27526 #: ../src/guestfs-actions.pod:8055 ../src/guestfs-actions.pod:8068
27527 #: ../src/guestfs-actions.pod:8081
27528 msgid "(Added in 1.0.54)"
27529 msgstr "(Додано у 1.0.54)"
27532 #: ../src/guestfs-actions.pod:1616
27533 msgid "guestfs_df_h"
27537 #: ../src/guestfs-actions.pod:1618
27541 " guestfs_df_h (guestfs_h *g);\n"
27546 #: ../src/guestfs-actions.pod:1633
27547 msgid "guestfs_dmesg"
27551 #: ../src/guestfs-actions.pod:1635
27555 " guestfs_dmesg (guestfs_h *g);\n"
27560 #: ../src/guestfs-actions.pod:1642
27562 "Another way to get the same information is to enable verbose messages with "
27563 "C<guestfs_set_verbose> or by setting the environment variable "
27564 "C<LIBGUESTFS_DEBUG=1> before running the program."
27568 #: ../src/guestfs-actions.pod:1652
27569 msgid "guestfs_download"
27573 #: ../src/guestfs-actions.pod:1654
27577 " guestfs_download (guestfs_h *g,\n"
27578 " const char *remotefilename,\n"
27579 " const char *filename);\n"
27584 #: ../src/guestfs-actions.pod:1664
27585 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
27589 #: ../src/guestfs-actions.pod:1675
27590 msgid "guestfs_download_offset"
27594 #: ../src/guestfs-actions.pod:1677
27598 " guestfs_download_offset (guestfs_h *g,\n"
27599 " const char *remotefilename,\n"
27600 " const char *filename,\n"
27601 " int64_t offset,\n"
27602 " int64_t size);\n"
27607 #: ../src/guestfs-actions.pod:1690
27609 "Note that there is no limit on the amount of data that can be downloaded "
27610 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
27611 "full amount unless an error occurs."
27615 #: ../src/guestfs-actions.pod:1695
27616 msgid "See also C<guestfs_download>, C<guestfs_pread>."
27620 #: ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:7713
27621 msgid "(Added in 1.5.17)"
27622 msgstr "(Додано у 1.5.17)"
27625 #: ../src/guestfs-actions.pod:1706
27626 msgid "guestfs_drop_caches"
27630 #: ../src/guestfs-actions.pod:1708
27634 " guestfs_drop_caches (guestfs_h *g,\n"
27635 " int whattodrop);\n"
27640 #: ../src/guestfs-actions.pod:1726
27645 #: ../src/guestfs-actions.pod:1728
27649 " guestfs_du (guestfs_h *g,\n"
27650 " const char *path);\n"
27655 #: ../src/guestfs-actions.pod:1751
27656 msgid "guestfs_e2fsck_f"
27660 #: ../src/guestfs-actions.pod:1753
27664 " guestfs_e2fsck_f (guestfs_h *g,\n"
27665 " const char *device);\n"
27670 #: ../src/guestfs-actions.pod:1761
27672 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
27673 "Normally you should use C<guestfs_fsck>."
27677 #: ../src/guestfs-actions.pod:1766
27678 msgid "(Added in 1.0.29)"
27679 msgstr "(Додано у 1.0.29)"
27682 #: ../src/guestfs-actions.pod:1768
27683 msgid "guestfs_echo_daemon"
27684 msgstr "guestfs_echo_daemon"
27687 #: ../src/guestfs-actions.pod:1770
27691 " guestfs_echo_daemon (guestfs_h *g,\n"
27692 " char *const *words);\n"
27696 " guestfs_echo_daemon (guestfs_h *g,\n"
27697 " char *const *words);\n"
27701 #: ../src/guestfs-actions.pod:1779
27702 msgid "See also C<guestfs_ping_daemon>."
27706 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:2542
27707 #: ../src/guestfs-actions.pod:6884
27708 msgid "(Added in 1.0.69)"
27709 msgstr "(Додано у 1.0.69)"
27712 #: ../src/guestfs-actions.pod:1786
27713 msgid "guestfs_egrep"
27714 msgstr "guestfs_egrep"
27717 #: ../src/guestfs-actions.pod:1788
27721 " guestfs_egrep (guestfs_h *g,\n"
27722 " const char *regex,\n"
27723 " const char *path);\n"
27727 " guestfs_egrep (guestfs_h *g,\n"
27728 " const char *regex,\n"
27729 " const char *path);\n"
27733 #: ../src/guestfs-actions.pod:1803 ../src/guestfs-actions.pod:1822
27734 #: ../src/guestfs-actions.pod:1879 ../src/guestfs-actions.pod:1925
27735 #: ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:2672
27736 #: ../src/guestfs-actions.pod:2691 ../src/guestfs-actions.pod:2869
27737 #: ../src/guestfs-actions.pod:2882 ../src/guestfs-actions.pod:2897
27738 #: ../src/guestfs-actions.pod:2943 ../src/guestfs-actions.pod:2965
27739 #: ../src/guestfs-actions.pod:2978 ../src/guestfs-actions.pod:4264
27740 #: ../src/guestfs-actions.pod:4278 ../src/guestfs-actions.pod:4291
27741 #: ../src/guestfs-actions.pod:4305 ../src/guestfs-actions.pod:5306
27742 #: ../src/guestfs-actions.pod:6345 ../src/guestfs-actions.pod:6394
27743 #: ../src/guestfs-actions.pod:7280 ../src/guestfs-actions.pod:7292
27744 #: ../src/guestfs-actions.pod:7305 ../src/guestfs-actions.pod:7318
27745 #: ../src/guestfs-actions.pod:7340 ../src/guestfs-actions.pod:7353
27746 #: ../src/guestfs-actions.pod:7366 ../src/guestfs-actions.pod:7379
27747 #: ../src/guestfs-actions.pod:8173 ../src/guestfs-actions.pod:8192
27748 #: ../src/guestfs-actions.pod:8286 ../src/guestfs-actions.pod:8305
27749 #: ../src/guestfs-actions.pod:8351 ../src/guestfs-actions.pod:8370
27750 msgid "(Added in 1.0.66)"
27751 msgstr "(Додано у 1.0.66)"
27754 #: ../src/guestfs-actions.pod:1805
27755 msgid "guestfs_egrepi"
27756 msgstr "guestfs_egrepi"
27759 #: ../src/guestfs-actions.pod:1807
27763 " guestfs_egrepi (guestfs_h *g,\n"
27764 " const char *regex,\n"
27765 " const char *path);\n"
27770 #: ../src/guestfs-actions.pod:1824
27771 msgid "guestfs_equal"
27775 #: ../src/guestfs-actions.pod:1826
27779 " guestfs_equal (guestfs_h *g,\n"
27780 " const char *file1,\n"
27781 " const char *file2);\n"
27786 #: ../src/guestfs-actions.pod:1840
27787 msgid "guestfs_exists"
27791 #: ../src/guestfs-actions.pod:1842
27795 " guestfs_exists (guestfs_h *g,\n"
27796 " const char *path);\n"
27801 #: ../src/guestfs-actions.pod:1849
27802 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
27806 #: ../src/guestfs-actions.pod:1855
27807 msgid "guestfs_fallocate"
27811 #: ../src/guestfs-actions.pod:1857
27815 " guestfs_fallocate (guestfs_h *g,\n"
27816 " const char *path,\n"
27822 #: ../src/guestfs-actions.pod:1862
27824 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
27829 #: ../src/guestfs-actions.pod:1881
27830 msgid "guestfs_fallocate64"
27834 #: ../src/guestfs-actions.pod:1883
27838 " guestfs_fallocate64 (guestfs_h *g,\n"
27839 " const char *path,\n"
27845 #: ../src/guestfs-actions.pod:1892
27847 "Note that this call allocates disk blocks for the file. To create a sparse "
27848 "file use C<guestfs_truncate_size> instead."
27852 #: ../src/guestfs-actions.pod:1895
27854 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27855 "oversight it only allowed 30 bit lengths to be specified, effectively "
27856 "limiting the maximum size of files created through that call to 1GB."
27860 #: ../src/guestfs-actions.pod:1906
27861 msgid "(Added in 1.3.17)"
27862 msgstr "(Додано у 1.3.17)"
27865 #: ../src/guestfs-actions.pod:1908
27866 msgid "guestfs_fgrep"
27870 #: ../src/guestfs-actions.pod:1910
27874 " guestfs_fgrep (guestfs_h *g,\n"
27875 " const char *pattern,\n"
27876 " const char *path);\n"
27881 #: ../src/guestfs-actions.pod:1927
27882 msgid "guestfs_fgrepi"
27886 #: ../src/guestfs-actions.pod:1929
27890 " guestfs_fgrepi (guestfs_h *g,\n"
27891 " const char *pattern,\n"
27892 " const char *path);\n"
27897 #: ../src/guestfs-actions.pod:1946
27898 msgid "guestfs_file"
27902 #: ../src/guestfs-actions.pod:1948
27906 " guestfs_file (guestfs_h *g,\n"
27907 " const char *path);\n"
27912 #: ../src/guestfs-actions.pod:1966
27914 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27915 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27919 #: ../src/guestfs-actions.pod:1974
27920 msgid "guestfs_file_architecture"
27924 #: ../src/guestfs-actions.pod:1976
27928 " guestfs_file_architecture (guestfs_h *g,\n"
27929 " const char *filename);\n"
27934 #: ../src/guestfs-actions.pod:2084 ../src/guestfs-actions.pod:2247
27935 #: ../src/guestfs-actions.pod:2264 ../src/guestfs-actions.pod:2998
27936 #: ../src/guestfs-actions.pod:3100 ../src/guestfs-actions.pod:3166
27937 #: ../src/guestfs-actions.pod:3353 ../src/guestfs-actions.pod:3371
27938 #: ../src/guestfs-actions.pod:3411 ../src/guestfs-actions.pod:3487
27939 #: ../src/guestfs-actions.pod:3584 ../src/guestfs-actions.pod:3821
27940 #: ../src/guestfs-actions.pod:3953
27941 msgid "(Added in 1.5.3)"
27942 msgstr "(Додано у 1.5.3)"
27945 #: ../src/guestfs-actions.pod:2086
27946 msgid "guestfs_filesize"
27950 #: ../src/guestfs-actions.pod:2088
27954 " guestfs_filesize (guestfs_h *g,\n"
27955 " const char *file);\n"
27960 #: ../src/guestfs-actions.pod:2094
27962 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27963 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
27964 "devices, use C<guestfs_blockdev_getsize64>."
27968 #: ../src/guestfs-actions.pod:2100
27969 msgid "(Added in 1.0.82)"
27970 msgstr "(Додано у 1.0.82)"
27973 #: ../src/guestfs-actions.pod:2102
27974 msgid "guestfs_fill"
27978 #: ../src/guestfs-actions.pod:2104
27982 " guestfs_fill (guestfs_h *g,\n"
27985 " const char *path);\n"
27990 #: ../src/guestfs-actions.pod:2114
27992 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27993 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
27994 "bytes use C<guestfs_fill_pattern>."
27998 #: ../src/guestfs-actions.pod:2126
27999 msgid "(Added in 1.0.79)"
28000 msgstr "(Додано у 1.0.79)"
28003 #: ../src/guestfs-actions.pod:2128
28004 msgid "guestfs_fill_pattern"
28008 #: ../src/guestfs-actions.pod:2130
28012 " guestfs_fill_pattern (guestfs_h *g,\n"
28013 " const char *pattern,\n"
28015 " const char *path);\n"
28020 #: ../src/guestfs-actions.pod:2136
28022 "This function is like C<guestfs_fill> except that it creates a new file of "
28023 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
28024 "pattern is truncated if necessary to ensure the length of the file is "
28025 "exactly C<len> bytes."
28029 #: ../src/guestfs-actions.pod:2148
28030 msgid "(Added in 1.3.12)"
28031 msgstr "(Додано у 1.3.12)"
28034 #: ../src/guestfs-actions.pod:2150
28035 msgid "guestfs_find"
28039 #: ../src/guestfs-actions.pod:2152
28043 " guestfs_find (guestfs_h *g,\n"
28044 " const char *directory);\n"
28049 #: ../src/guestfs-actions.pod:2168
28051 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
28055 #: ../src/guestfs-actions.pod:2181
28056 msgid "See also C<guestfs_find0>."
28060 #: ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:4711
28061 #: ../src/guestfs-actions.pod:6429
28062 msgid "(Added in 1.0.27)"
28063 msgstr "(Додано у 1.0.27)"
28066 #: ../src/guestfs-actions.pod:2192
28067 msgid "guestfs_find0"
28071 #: ../src/guestfs-actions.pod:2194
28075 " guestfs_find0 (guestfs_h *g,\n"
28076 " const char *directory,\n"
28077 " const char *files);\n"
28082 #: ../src/guestfs-actions.pod:2203
28084 "This command works the same way as C<guestfs_find> with the following "
28089 #: ../src/guestfs-actions.pod:2230
28090 msgid "(Added in 1.0.74)"
28091 msgstr "(Додано у 1.0.74)"
28094 #: ../src/guestfs-actions.pod:2232
28095 msgid "guestfs_findfs_label"
28099 #: ../src/guestfs-actions.pod:2234
28103 " guestfs_findfs_label (guestfs_h *g,\n"
28104 " const char *label);\n"
28109 #: ../src/guestfs-actions.pod:2242
28110 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
28114 #: ../src/guestfs-actions.pod:2249
28115 msgid "guestfs_findfs_uuid"
28119 #: ../src/guestfs-actions.pod:2251
28123 " guestfs_findfs_uuid (guestfs_h *g,\n"
28124 " const char *uuid);\n"
28129 #: ../src/guestfs-actions.pod:2259
28130 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
28134 #: ../src/guestfs-actions.pod:2266
28135 msgid "guestfs_fsck"
28139 #: ../src/guestfs-actions.pod:2268
28143 " guestfs_fsck (guestfs_h *g,\n"
28144 " const char *fstype,\n"
28145 " const char *device);\n"
28150 #: ../src/guestfs-actions.pod:2303 ../src/guestfs-actions.pod:8220
28151 msgid "(Added in 1.0.16)"
28152 msgstr "(Додано у 1.0.16)"
28155 #: ../src/guestfs-actions.pod:2305
28156 msgid "guestfs_get_append"
28160 #: ../src/guestfs-actions.pod:2307
28164 " guestfs_get_append (guestfs_h *g);\n"
28169 #: ../src/guestfs-actions.pod:2315
28171 "This function returns a string which may be NULL. There is no way to return "
28172 "an error from this function. The string is owned by the guest handle and "
28173 "must I<not> be freed."
28177 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:6107
28178 #: ../src/guestfs-actions.pod:6589 ../src/guestfs-actions.pod:7047
28179 #: ../src/guestfs-actions.pod:7066 ../src/guestfs-actions.pod:7082
28180 #: ../src/guestfs-actions.pod:7106 ../src/guestfs-actions.pod:7860
28181 #: ../src/guestfs-actions.pod:7875 ../src/guestfs-actions.pod:8267
28182 msgid "(Added in 1.0.26)"
28183 msgstr "(Додано у 1.0.26)"
28186 #: ../src/guestfs-actions.pod:2321
28187 msgid "guestfs_get_attach_method"
28191 #: ../src/guestfs-actions.pod:2323
28195 " guestfs_get_attach_method (guestfs_h *g);\n"
28200 #: ../src/guestfs-actions.pod:2326
28201 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
28205 #: ../src/guestfs-actions.pod:2331 ../src/guestfs-actions.pod:6619
28206 msgid "(Added in 1.9.8)"
28207 msgstr "(Додано у 1.9.8)"
28210 #: ../src/guestfs-actions.pod:2333
28211 msgid "guestfs_get_autosync"
28215 #: ../src/guestfs-actions.pod:2335
28219 " guestfs_get_autosync (guestfs_h *g);\n"
28224 #: ../src/guestfs-actions.pod:2344
28225 msgid "guestfs_get_direct"
28229 #: ../src/guestfs-actions.pod:2346
28233 " guestfs_get_direct (guestfs_h *g);\n"
28238 #: ../src/guestfs-actions.pod:2353 ../src/guestfs-actions.pod:6660
28239 msgid "(Added in 1.0.72)"
28240 msgstr "(Додано у 1.0.72)"
28243 #: ../src/guestfs-actions.pod:2355
28244 msgid "guestfs_get_e2label"
28248 #: ../src/guestfs-actions.pod:2357
28252 " guestfs_get_e2label (guestfs_h *g,\n"
28253 " const char *device);\n"
28258 #: ../src/guestfs-actions.pod:2361
28260 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
28265 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:2395
28266 #: ../src/guestfs-actions.pod:6678 ../src/guestfs-actions.pod:6697
28267 msgid "(Added in 1.0.15)"
28268 msgstr "(Додано у 1.0.15)"
28271 #: ../src/guestfs-actions.pod:2376
28272 msgid "guestfs_get_e2uuid"
28276 #: ../src/guestfs-actions.pod:2378
28280 " guestfs_get_e2uuid (guestfs_h *g,\n"
28281 " const char *device);\n"
28286 #: ../src/guestfs-actions.pod:2382
28288 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
28293 #: ../src/guestfs-actions.pod:2397
28294 msgid "guestfs_get_memsize"
28298 #: ../src/guestfs-actions.pod:2399
28302 " guestfs_get_memsize (guestfs_h *g);\n"
28307 #: ../src/guestfs-actions.pod:2405
28309 "If C<guestfs_set_memsize> was not called on this handle, and if "
28310 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
28311 "value for memsize."
28315 #: ../src/guestfs-actions.pod:2414 ../src/guestfs-actions.pod:5002
28316 #: ../src/guestfs-actions.pod:5211 ../src/guestfs-actions.pod:5230
28317 #: ../src/guestfs-actions.pod:5249 ../src/guestfs-actions.pod:5261
28318 #: ../src/guestfs-actions.pod:5278 ../src/guestfs-actions.pod:5291
28319 #: ../src/guestfs-actions.pod:6332 ../src/guestfs-actions.pod:6718
28320 #: ../src/guestfs-actions.pod:7014 ../src/guestfs-actions.pod:7629
28321 msgid "(Added in 1.0.55)"
28322 msgstr "(Додано у 1.0.55)"
28325 #: ../src/guestfs-actions.pod:2416
28326 msgid "guestfs_get_network"
28330 #: ../src/guestfs-actions.pod:2418
28334 " guestfs_get_network (guestfs_h *g);\n"
28339 #: ../src/guestfs-actions.pod:2425 ../src/guestfs-actions.pod:6737
28340 msgid "(Added in 1.5.4)"
28341 msgstr "(Додано у 1.5.4)"
28344 #: ../src/guestfs-actions.pod:2427
28345 msgid "guestfs_get_path"
28349 #: ../src/guestfs-actions.pod:2429
28353 " guestfs_get_path (guestfs_h *g);\n"
28358 #: ../src/guestfs-actions.pod:2437 ../src/guestfs-actions.pod:2477
28360 "This function returns a string, or NULL on error. The string is owned by "
28361 "the guest handle and must I<not> be freed."
28365 #: ../src/guestfs-actions.pod:2442
28366 msgid "guestfs_get_pgroup"
28370 #: ../src/guestfs-actions.pod:2444
28374 " guestfs_get_pgroup (guestfs_h *g);\n"
28379 #: ../src/guestfs-actions.pod:2451 ../src/guestfs-actions.pod:6773
28380 #: ../src/guestfs-actions.pod:8121
28381 msgid "(Added in 1.11.18)"
28382 msgstr "(Додано у 1.11.18)"
28385 #: ../src/guestfs-actions.pod:2453
28386 msgid "guestfs_get_pid"
28390 #: ../src/guestfs-actions.pod:2455
28394 " guestfs_get_pid (guestfs_h *g);\n"
28399 #: ../src/guestfs-actions.pod:2465
28400 msgid "(Added in 1.0.56)"
28401 msgstr "(Додано у 1.0.56)"
28404 #: ../src/guestfs-actions.pod:2467
28405 msgid "guestfs_get_qemu"
28409 #: ../src/guestfs-actions.pod:2469
28413 " guestfs_get_qemu (guestfs_h *g);\n"
28418 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6801
28419 msgid "(Added in 1.0.6)"
28420 msgstr "(Додано у 1.0.6)"
28423 #: ../src/guestfs-actions.pod:2482
28424 msgid "guestfs_get_recovery_proc"
28428 #: ../src/guestfs-actions.pod:2484
28432 " guestfs_get_recovery_proc (guestfs_h *g);\n"
28437 #: ../src/guestfs-actions.pod:2491 ../src/guestfs-actions.pod:4075
28438 #: ../src/guestfs-actions.pod:4406 ../src/guestfs-actions.pod:4809
28439 #: ../src/guestfs-actions.pod:4841 ../src/guestfs-actions.pod:6037
28440 #: ../src/guestfs-actions.pod:6380 ../src/guestfs-actions.pod:6825
28441 #: ../src/guestfs-actions.pod:7532 ../src/guestfs-actions.pod:7552
28442 #: ../src/guestfs-actions.pod:7744
28443 msgid "(Added in 1.0.77)"
28444 msgstr "(Додано у 1.0.77)"
28447 #: ../src/guestfs-actions.pod:2493
28448 msgid "guestfs_get_selinux"
28452 #: ../src/guestfs-actions.pod:2495
28456 " guestfs_get_selinux (guestfs_h *g);\n"
28461 #: ../src/guestfs-actions.pod:2498
28463 "This returns the current setting of the selinux flag which is passed to the "
28464 "appliance at boot time. See C<guestfs_set_selinux>."
28468 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:2580
28469 #: ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6918
28470 msgid "(Added in 1.0.67)"
28471 msgstr "(Додано у 1.0.67)"
28474 #: ../src/guestfs-actions.pod:2508
28475 msgid "guestfs_get_smp"
28479 #: ../src/guestfs-actions.pod:2510
28483 " guestfs_get_smp (guestfs_h *g);\n"
28488 #: ../src/guestfs-actions.pod:2519
28489 msgid "guestfs_get_state"
28493 #: ../src/guestfs-actions.pod:2521
28497 " guestfs_get_state (guestfs_h *g);\n"
28502 #: ../src/guestfs-actions.pod:2533
28503 msgid "guestfs_get_trace"
28507 #: ../src/guestfs-actions.pod:2535
28511 " guestfs_get_trace (guestfs_h *g);\n"
28516 #: ../src/guestfs-actions.pod:2544
28517 msgid "guestfs_get_umask"
28521 #: ../src/guestfs-actions.pod:2546
28525 " guestfs_get_umask (guestfs_h *g);\n"
28530 #: ../src/guestfs-actions.pod:2549
28532 "Return the current umask. By default the umask is C<022> unless it has been "
28533 "set by calling C<guestfs_umask>."
28537 #: ../src/guestfs-actions.pod:2556
28538 msgid "guestfs_get_verbose"
28542 #: ../src/guestfs-actions.pod:2558
28546 " guestfs_get_verbose (guestfs_h *g);\n"
28551 #: ../src/guestfs-actions.pod:2567
28552 msgid "guestfs_getcon"
28556 #: ../src/guestfs-actions.pod:2569
28560 " guestfs_getcon (guestfs_h *g);\n"
28565 #: ../src/guestfs-actions.pod:2574
28567 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
28571 #: ../src/guestfs-actions.pod:2582
28572 msgid "guestfs_getxattr"
28576 #: ../src/guestfs-actions.pod:2584
28580 " guestfs_getxattr (guestfs_h *g,\n"
28581 " const char *path,\n"
28582 " const char *name,\n"
28583 " size_t *size_r);\n"
28588 #: ../src/guestfs-actions.pod:2590
28590 "Get a single extended attribute from file C<path> named C<name>. This call "
28591 "follows symlinks. If you want to lookup an extended attribute for the "
28592 "symlink itself, use C<guestfs_lgetxattr>."
28596 #: ../src/guestfs-actions.pod:2594 ../src/guestfs-actions.pod:4089
28598 "Normally it is better to get all extended attributes from a file in one go "
28599 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
28600 "implementations are buggy and do not provide a way to list out attributes. "
28601 "For these filesystems (notably ntfs-3g) you have to know the names of the "
28602 "extended attributes you want in advance and call this function."
28606 #: ../src/guestfs-actions.pod:2604
28607 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
28611 #: ../src/guestfs-actions.pod:2606 ../src/guestfs-actions.pod:2819
28612 #: ../src/guestfs-actions.pod:3301 ../src/guestfs-actions.pod:4101
28613 #: ../src/guestfs-actions.pod:6030 ../src/guestfs-actions.pod:6056
28614 #: ../src/guestfs-actions.pod:6237
28616 "This function returns a buffer, or NULL on error. The size of the returned "
28617 "buffer is written to C<*size_r>. I<The caller must free the returned buffer "
28622 #: ../src/guestfs-actions.pod:2610 ../src/guestfs-actions.pod:4105
28623 msgid "(Added in 1.7.24)"
28624 msgstr "(Додано у 1.7.24)"
28627 #: ../src/guestfs-actions.pod:2612
28628 msgid "guestfs_getxattrs"
28632 #: ../src/guestfs-actions.pod:2614
28635 " struct guestfs_xattr_list *\n"
28636 " guestfs_getxattrs (guestfs_h *g,\n"
28637 " const char *path);\n"
28642 #: ../src/guestfs-actions.pod:2624
28643 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
28647 #: ../src/guestfs-actions.pod:2626 ../src/guestfs-actions.pod:4117
28648 #: ../src/guestfs-actions.pod:4805
28650 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
28651 "an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
28655 #: ../src/guestfs-actions.pod:2630 ../src/guestfs-actions.pod:4121
28656 #: ../src/guestfs-actions.pod:4320 ../src/guestfs-actions.pod:4356
28657 #: ../src/guestfs-actions.pod:6410 ../src/guestfs-actions.pod:6937
28658 #: ../src/guestfs-actions.pod:8332
28659 msgid "(Added in 1.0.59)"
28660 msgstr "(Додано у 1.0.59)"
28663 #: ../src/guestfs-actions.pod:2632
28664 msgid "guestfs_glob_expand"
28668 #: ../src/guestfs-actions.pod:2634
28672 " guestfs_glob_expand (guestfs_h *g,\n"
28673 " const char *pattern);\n"
28678 #: ../src/guestfs-actions.pod:2653 ../src/guestfs-actions.pod:7130
28679 #: ../src/guestfs-actions.pod:7147
28680 msgid "(Added in 1.0.50)"
28681 msgstr "(Додано у 1.0.50)"
28684 #: ../src/guestfs-actions.pod:2655
28685 msgid "guestfs_grep"
28689 #: ../src/guestfs-actions.pod:2657
28693 " guestfs_grep (guestfs_h *g,\n"
28694 " const char *regex,\n"
28695 " const char *path);\n"
28700 #: ../src/guestfs-actions.pod:2674
28701 msgid "guestfs_grepi"
28705 #: ../src/guestfs-actions.pod:2676
28709 " guestfs_grepi (guestfs_h *g,\n"
28710 " const char *regex,\n"
28711 " const char *path);\n"
28716 #: ../src/guestfs-actions.pod:2693
28717 msgid "guestfs_grub_install"
28721 #: ../src/guestfs-actions.pod:2695
28725 " guestfs_grub_install (guestfs_h *g,\n"
28726 " const char *root,\n"
28727 " const char *device);\n"
28732 #: ../src/guestfs-actions.pod:2738
28733 msgid "(Added in 1.0.17)"
28734 msgstr "(Додано у 1.0.17)"
28737 #: ../src/guestfs-actions.pod:2740
28738 msgid "guestfs_head"
28742 #: ../src/guestfs-actions.pod:2742
28746 " guestfs_head (guestfs_h *g,\n"
28747 " const char *path);\n"
28752 #: ../src/guestfs-actions.pod:2758
28753 msgid "guestfs_head_n"
28757 #: ../src/guestfs-actions.pod:2760
28761 " guestfs_head_n (guestfs_h *g,\n"
28763 " const char *path);\n"
28768 #: ../src/guestfs-actions.pod:2782
28769 msgid "guestfs_hexdump"
28773 #: ../src/guestfs-actions.pod:2784
28777 " guestfs_hexdump (guestfs_h *g,\n"
28778 " const char *path);\n"
28783 #: ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:7211
28784 #: ../src/guestfs-actions.pod:7266
28785 msgid "(Added in 1.0.22)"
28786 msgstr "(Додано у 1.0.22)"
28789 #: ../src/guestfs-actions.pod:2799
28790 msgid "guestfs_initrd_cat"
28794 #: ../src/guestfs-actions.pod:2801
28798 " guestfs_initrd_cat (guestfs_h *g,\n"
28799 " const char *initrdpath,\n"
28800 " const char *filename,\n"
28801 " size_t *size_r);\n"
28806 #: ../src/guestfs-actions.pod:2817
28807 msgid "See also C<guestfs_initrd_list>."
28811 #: ../src/guestfs-actions.pod:2828
28812 msgid "guestfs_initrd_list"
28816 #: ../src/guestfs-actions.pod:2830
28820 " guestfs_initrd_list (guestfs_h *g,\n"
28821 " const char *path);\n"
28826 #: ../src/guestfs-actions.pod:2850
28827 msgid "guestfs_inotify_add_watch"
28831 #: ../src/guestfs-actions.pod:2852
28835 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28836 " const char *path,\n"
28842 #: ../src/guestfs-actions.pod:2871
28843 msgid "guestfs_inotify_close"
28847 #: ../src/guestfs-actions.pod:2873
28851 " guestfs_inotify_close (guestfs_h *g);\n"
28856 #: ../src/guestfs-actions.pod:2884
28857 msgid "guestfs_inotify_files"
28861 #: ../src/guestfs-actions.pod:2886
28865 " guestfs_inotify_files (guestfs_h *g);\n"
28870 #: ../src/guestfs-actions.pod:2889
28872 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28873 "returns a list of pathnames of objects that were touched. The returned "
28874 "pathnames are sorted and deduplicated."
28878 #: ../src/guestfs-actions.pod:2899
28879 msgid "guestfs_inotify_init"
28883 #: ../src/guestfs-actions.pod:2901
28887 " guestfs_inotify_init (guestfs_h *g,\n"
28888 " int maxevents);\n"
28893 #: ../src/guestfs-actions.pod:2909
28895 "C<maxevents> is the maximum number of events which will be queued up between "
28896 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
28897 "passed as C<0>, then the kernel (or previously set) default is used. For "
28898 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
28899 "throws away events, but records the fact that it threw them away by setting "
28900 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28901 "C<guestfs_inotify_read>)."
28905 #: ../src/guestfs-actions.pod:2919
28907 "Before any events are generated, you have to add some watches to the "
28908 "internal watch list. See: C<guestfs_inotify_add_watch>, "
28909 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28913 #: ../src/guestfs-actions.pod:2925
28915 "Queued up events should be read periodically by calling "
28916 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28917 "wrapper around C<guestfs_inotify_read>). If you don't read the events out "
28918 "often enough then you risk the internal queue overflowing."
28922 #: ../src/guestfs-actions.pod:2932
28924 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
28925 "This also removes any watches automatically."
28929 #: ../src/guestfs-actions.pod:2945
28930 msgid "guestfs_inotify_read"
28934 #: ../src/guestfs-actions.pod:2947
28937 " struct guestfs_inotify_event_list *\n"
28938 " guestfs_inotify_read (guestfs_h *g);\n"
28943 #: ../src/guestfs-actions.pod:2961
28945 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28946 "there was an error. I<The caller must call "
28947 "C<guestfs_free_inotify_event_list> after use>."
28951 #: ../src/guestfs-actions.pod:2967
28952 msgid "guestfs_inotify_rm_watch"
28956 #: ../src/guestfs-actions.pod:2969
28960 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28966 #: ../src/guestfs-actions.pod:2973
28968 "Remove a previously defined inotify watch. See C<guestfs_inotify_add_watch>."
28972 #: ../src/guestfs-actions.pod:2980
28973 msgid "guestfs_inspect_get_arch"
28977 #: ../src/guestfs-actions.pod:2982
28981 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28982 " const char *root);\n"
28987 #: ../src/guestfs-actions.pod:2986
28989 "This returns the architecture of the inspected operating system. The "
28990 "possible return values are listed under C<guestfs_file_architecture>."
28994 #: ../src/guestfs-actions.pod:3000
28995 msgid "guestfs_inspect_get_distro"
28999 #: ../src/guestfs-actions.pod:3002
29003 " guestfs_inspect_get_distro (guestfs_h *g,\n"
29004 " const char *root);\n"
29009 #: ../src/guestfs-actions.pod:3102
29010 msgid "guestfs_inspect_get_drive_mappings"
29014 #: ../src/guestfs-actions.pod:3104
29018 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
29019 " const char *root);\n"
29024 #: ../src/guestfs-actions.pod:3133
29026 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29027 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
29031 #: ../src/guestfs-actions.pod:3137 ../src/guestfs-actions.pod:3405
29032 #: ../src/guestfs-actions.pod:4208 ../src/guestfs-actions.pod:5480
29033 #: ../src/guestfs-actions.pod:7568
29035 "This function returns a NULL-terminated array of strings, or NULL if there "
29036 "was an error. The array of strings will always have length C<2n+1>, where "
29037 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
29038 "caller must free the strings and the array after use>."
29042 #: ../src/guestfs-actions.pod:3143 ../src/guestfs-actions.pod:3604
29043 msgid "(Added in 1.9.17)"
29044 msgstr "(Додано у 1.9.17)"
29047 #: ../src/guestfs-actions.pod:3145
29048 msgid "guestfs_inspect_get_filesystems"
29052 #: ../src/guestfs-actions.pod:3147
29056 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
29057 " const char *root);\n"
29062 #: ../src/guestfs-actions.pod:3159
29064 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29065 "C<guestfs_inspect_get_mountpoints>."
29069 #: ../src/guestfs-actions.pod:3168
29070 msgid "guestfs_inspect_get_format"
29074 #: ../src/guestfs-actions.pod:3170
29078 " guestfs_inspect_get_format (guestfs_h *g,\n"
29079 " const char *root);\n"
29084 #: ../src/guestfs-actions.pod:3204 ../src/guestfs-actions.pod:3640
29085 #: ../src/guestfs-actions.pod:3656 ../src/guestfs-actions.pod:3674
29086 #: ../src/guestfs-actions.pod:6448
29087 msgid "(Added in 1.9.4)"
29088 msgstr "(Додано у 1.9.4)"
29091 #: ../src/guestfs-actions.pod:3206
29092 msgid "guestfs_inspect_get_hostname"
29096 #: ../src/guestfs-actions.pod:3208
29100 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
29101 " const char *root);\n"
29106 #: ../src/guestfs-actions.pod:3223
29107 msgid "(Added in 1.7.9)"
29108 msgstr "(Додано у 1.7.9)"
29111 #: ../src/guestfs-actions.pod:3225
29112 msgid "guestfs_inspect_get_icon"
29116 #: ../src/guestfs-actions.pod:3227
29120 " guestfs_inspect_get_icon (guestfs_h *g,\n"
29121 " const char *root,\n"
29122 " size_t *size_r,\n"
29128 #: ../src/guestfs-actions.pod:3238
29131 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
29132 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
29137 #: ../src/guestfs-actions.pod:3305 ../src/guestfs-actions.pod:4135
29138 #: ../src/guestfs-actions.pod:5379
29139 msgid "(Added in 1.11.12)"
29140 msgstr "(Додано у 1.11.12)"
29143 #: ../src/guestfs-actions.pod:3307
29144 msgid "guestfs_inspect_get_icon_va"
29148 #: ../src/guestfs-actions.pod:3309
29152 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
29153 " const char *root,\n"
29154 " size_t *size_r,\n"
29155 " va_list args);\n"
29160 #: ../src/guestfs-actions.pod:3315
29161 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
29165 #: ../src/guestfs-actions.pod:3319
29166 msgid "guestfs_inspect_get_icon_argv"
29170 #: ../src/guestfs-actions.pod:3321
29174 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
29175 " const char *root,\n"
29176 " size_t *size_r,\n"
29177 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
29182 #: ../src/guestfs-actions.pod:3327
29183 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
29187 #: ../src/guestfs-actions.pod:3331
29188 msgid "guestfs_inspect_get_major_version"
29192 #: ../src/guestfs-actions.pod:3333
29196 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
29197 " const char *root);\n"
29202 #: ../src/guestfs-actions.pod:3355
29203 msgid "guestfs_inspect_get_minor_version"
29207 #: ../src/guestfs-actions.pod:3357
29211 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
29212 " const char *root);\n"
29217 #: ../src/guestfs-actions.pod:3366
29219 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29220 "C<guestfs_inspect_get_major_version>."
29224 #: ../src/guestfs-actions.pod:3373
29225 msgid "guestfs_inspect_get_mountpoints"
29229 #: ../src/guestfs-actions.pod:3375
29233 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
29234 " const char *root);\n"
29239 #: ../src/guestfs-actions.pod:3396
29241 "For operating systems like Windows which still use drive letters, this call "
29242 "will only return an entry for the first drive \"mounted on\" C</>. For "
29243 "information about the mapping of drive letters to partitions, see "
29244 "C<guestfs_inspect_get_drive_mappings>."
29248 #: ../src/guestfs-actions.pod:3402
29250 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29251 "C<guestfs_inspect_get_filesystems>."
29255 #: ../src/guestfs-actions.pod:3413
29256 msgid "guestfs_inspect_get_package_format"
29260 #: ../src/guestfs-actions.pod:3415
29264 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
29265 " const char *root);\n"
29270 #: ../src/guestfs-actions.pod:3419
29272 "This function and C<guestfs_inspect_get_package_management> return the "
29273 "package format and package management tool used by the inspected operating "
29274 "system. For example for Fedora these functions would return C<rpm> (package "
29275 "format) and C<yum> (package management)."
29279 #: ../src/guestfs-actions.pod:3438 ../src/guestfs-actions.pod:3466
29280 msgid "(Added in 1.7.5)"
29281 msgstr "(Додано у 1.7.5)"
29284 #: ../src/guestfs-actions.pod:3440
29285 msgid "guestfs_inspect_get_package_management"
29289 #: ../src/guestfs-actions.pod:3442
29293 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
29294 " const char *root);\n"
29299 #: ../src/guestfs-actions.pod:3446
29301 "C<guestfs_inspect_get_package_format> and this function return the package "
29302 "format and package management tool used by the inspected operating system. "
29303 "For example for Fedora these functions would return C<rpm> (package format) "
29304 "and C<yum> (package management)."
29308 #: ../src/guestfs-actions.pod:3468
29309 msgid "guestfs_inspect_get_product_name"
29313 #: ../src/guestfs-actions.pod:3470
29317 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
29318 " const char *root);\n"
29323 #: ../src/guestfs-actions.pod:3489
29324 msgid "guestfs_inspect_get_product_variant"
29328 #: ../src/guestfs-actions.pod:3491
29332 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
29333 " const char *root);\n"
29338 #: ../src/guestfs-actions.pod:3514
29340 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29341 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
29345 #: ../src/guestfs-actions.pod:3521
29346 msgid "(Added in 1.9.13)"
29347 msgstr "(Додано у 1.9.13)"
29350 #: ../src/guestfs-actions.pod:3523
29351 msgid "guestfs_inspect_get_roots"
29355 #: ../src/guestfs-actions.pod:3525
29359 " guestfs_inspect_get_roots (guestfs_h *g);\n"
29364 #: ../src/guestfs-actions.pod:3528
29366 "This function is a convenient way to get the list of root devices, as "
29367 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
29368 "the whole inspection process."
29372 #: ../src/guestfs-actions.pod:3532
29374 "This returns an empty list if either no root devices were found or the "
29375 "caller has not called C<guestfs_inspect_os>."
29379 #: ../src/guestfs-actions.pod:3541
29380 msgid "(Added in 1.7.3)"
29381 msgstr "(Додано у 1.7.3)"
29384 #: ../src/guestfs-actions.pod:3543
29385 msgid "guestfs_inspect_get_type"
29389 #: ../src/guestfs-actions.pod:3545
29393 " guestfs_inspect_get_type (guestfs_h *g,\n"
29394 " const char *root);\n"
29399 #: ../src/guestfs-actions.pod:3586
29400 msgid "guestfs_inspect_get_windows_current_control_set"
29404 #: ../src/guestfs-actions.pod:3588
29408 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
29409 " const char *root);\n"
29414 #: ../src/guestfs-actions.pod:3606
29415 msgid "guestfs_inspect_get_windows_systemroot"
29419 #: ../src/guestfs-actions.pod:3608
29423 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
29424 " const char *root);\n"
29429 #: ../src/guestfs-actions.pod:3624
29430 msgid "(Added in 1.5.25)"
29431 msgstr "(Додано у 1.5.25)"
29434 #: ../src/guestfs-actions.pod:3626
29435 msgid "guestfs_inspect_is_live"
29439 #: ../src/guestfs-actions.pod:3628
29443 " guestfs_inspect_is_live (guestfs_h *g,\n"
29444 " const char *root);\n"
29449 #: ../src/guestfs-actions.pod:3632
29451 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29452 "disk), then this returns true if a live image was detected on the disk."
29456 #: ../src/guestfs-actions.pod:3642
29457 msgid "guestfs_inspect_is_multipart"
29461 #: ../src/guestfs-actions.pod:3644
29465 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
29466 " const char *root);\n"
29471 #: ../src/guestfs-actions.pod:3648
29473 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29474 "disk), then this returns true if the disk is part of a set."
29478 #: ../src/guestfs-actions.pod:3658
29479 msgid "guestfs_inspect_is_netinst"
29483 #: ../src/guestfs-actions.pod:3660
29487 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
29488 " const char *root);\n"
29493 #: ../src/guestfs-actions.pod:3664
29495 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29496 "disk), then this returns true if the disk is a network installer, ie. not a "
29497 "self-contained install CD but one which is likely to require network access "
29498 "to complete the install."
29502 #: ../src/guestfs-actions.pod:3676
29503 msgid "guestfs_inspect_list_applications"
29507 #: ../src/guestfs-actions.pod:3678
29510 " struct guestfs_application_list *\n"
29511 " guestfs_inspect_list_applications (guestfs_h *g,\n"
29512 " const char *root);\n"
29517 #: ../src/guestfs-actions.pod:3684
29519 "I<Note:> This call works differently from other parts of the inspection "
29520 "API. You have to call C<guestfs_inspect_os>, then "
29521 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
29522 "this. Listing applications is a significantly more difficult operation "
29523 "which requires access to the full filesystem. Also note that unlike the "
29524 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
29525 "the libguestfs handle, this call actually reads parts of the mounted "
29526 "filesystems during the call."
29530 #: ../src/guestfs-actions.pod:3774
29532 "This function returns a C<struct guestfs_application_list *>, or NULL if "
29533 "there was an error. I<The caller must call C<guestfs_free_application_list> "
29538 #: ../src/guestfs-actions.pod:3778
29539 msgid "(Added in 1.7.8)"
29540 msgstr "(Додано у 1.7.8)"
29543 #: ../src/guestfs-actions.pod:3780
29544 msgid "guestfs_inspect_os"
29548 #: ../src/guestfs-actions.pod:3782
29552 " guestfs_inspect_os (guestfs_h *g);\n"
29557 #: ../src/guestfs-actions.pod:3798
29559 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
29560 "functions in order to query further information about each operating system, "
29561 "such as the name and version."
29565 #: ../src/guestfs-actions.pod:3803
29567 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
29568 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
29569 "the contents. This should be called with no disks currently mounted. The "
29570 "function may also use Augeas, so any existing Augeas handle will be closed."
29574 #: ../src/guestfs-actions.pod:3815 ../src/guestfs-actions.pod:4146
29575 #: ../src/guestfs-actions.pod:4228
29576 msgid "See also C<guestfs_list_filesystems>."
29580 #: ../src/guestfs-actions.pod:3823
29581 msgid "guestfs_is_blockdev"
29585 #: ../src/guestfs-actions.pod:3825
29589 " guestfs_is_blockdev (guestfs_h *g,\n"
29590 " const char *path);\n"
29595 #: ../src/guestfs-actions.pod:3832 ../src/guestfs-actions.pod:3861
29596 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3906
29597 #: ../src/guestfs-actions.pod:3922 ../src/guestfs-actions.pod:3978
29598 #: ../src/guestfs-actions.pod:3993
29599 msgid "See also C<guestfs_stat>."
29603 #: ../src/guestfs-actions.pod:3836 ../src/guestfs-actions.pod:3865
29604 #: ../src/guestfs-actions.pod:3910 ../src/guestfs-actions.pod:3982
29605 #: ../src/guestfs-actions.pod:3997
29606 msgid "(Added in 1.5.10)"
29607 msgstr "(Додано у 1.5.10)"
29610 #: ../src/guestfs-actions.pod:3838
29611 msgid "guestfs_is_busy"
29615 #: ../src/guestfs-actions.pod:3840
29619 " guestfs_is_busy (guestfs_h *g);\n"
29624 #: ../src/guestfs-actions.pod:3852
29625 msgid "guestfs_is_chardev"
29629 #: ../src/guestfs-actions.pod:3854
29633 " guestfs_is_chardev (guestfs_h *g,\n"
29634 " const char *path);\n"
29639 #: ../src/guestfs-actions.pod:3867
29640 msgid "guestfs_is_config"
29644 #: ../src/guestfs-actions.pod:3869
29648 " guestfs_is_config (guestfs_h *g);\n"
29653 #: ../src/guestfs-actions.pod:3881
29654 msgid "guestfs_is_dir"
29658 #: ../src/guestfs-actions.pod:3883
29662 " guestfs_is_dir (guestfs_h *g,\n"
29663 " const char *path);\n"
29668 #: ../src/guestfs-actions.pod:3897
29669 msgid "guestfs_is_fifo"
29673 #: ../src/guestfs-actions.pod:3899
29677 " guestfs_is_fifo (guestfs_h *g,\n"
29678 " const char *path);\n"
29683 #: ../src/guestfs-actions.pod:3912
29684 msgid "guestfs_is_file"
29688 #: ../src/guestfs-actions.pod:3914
29692 " guestfs_is_file (guestfs_h *g,\n"
29693 " const char *path);\n"
29698 #: ../src/guestfs-actions.pod:3928
29699 msgid "guestfs_is_launching"
29703 #: ../src/guestfs-actions.pod:3930
29707 " guestfs_is_launching (guestfs_h *g);\n"
29712 #: ../src/guestfs-actions.pod:3942
29713 msgid "guestfs_is_lv"
29717 #: ../src/guestfs-actions.pod:3944
29721 " guestfs_is_lv (guestfs_h *g,\n"
29722 " const char *device);\n"
29727 #: ../src/guestfs-actions.pod:3955
29728 msgid "guestfs_is_ready"
29732 #: ../src/guestfs-actions.pod:3957
29736 " guestfs_is_ready (guestfs_h *g);\n"
29741 #: ../src/guestfs-actions.pod:3969
29742 msgid "guestfs_is_socket"
29746 #: ../src/guestfs-actions.pod:3971
29750 " guestfs_is_socket (guestfs_h *g,\n"
29751 " const char *path);\n"
29756 #: ../src/guestfs-actions.pod:3984
29757 msgid "guestfs_is_symlink"
29761 #: ../src/guestfs-actions.pod:3986
29765 " guestfs_is_symlink (guestfs_h *g,\n"
29766 " const char *path);\n"
29771 #: ../src/guestfs-actions.pod:3999
29772 msgid "guestfs_is_zero"
29776 #: ../src/guestfs-actions.pod:4001
29780 " guestfs_is_zero (guestfs_h *g,\n"
29781 " const char *path);\n"
29786 #: ../src/guestfs-actions.pod:4010 ../src/guestfs-actions.pod:4024
29787 msgid "(Added in 1.11.8)"
29788 msgstr "(Додано у 1.11.8)"
29791 #: ../src/guestfs-actions.pod:4012
29792 msgid "guestfs_is_zero_device"
29796 #: ../src/guestfs-actions.pod:4014
29800 " guestfs_is_zero_device (guestfs_h *g,\n"
29801 " const char *device);\n"
29806 #: ../src/guestfs-actions.pod:4026
29807 msgid "guestfs_kill_subprocess"
29811 #: ../src/guestfs-actions.pod:4028
29815 " guestfs_kill_subprocess (guestfs_h *g);\n"
29820 #: ../src/guestfs-actions.pod:4037
29821 msgid "guestfs_launch"
29825 #: ../src/guestfs-actions.pod:4039
29829 " guestfs_launch (guestfs_h *g);\n"
29834 #: ../src/guestfs-actions.pod:4057
29835 msgid "guestfs_lchown"
29839 #: ../src/guestfs-actions.pod:4059
29843 " guestfs_lchown (guestfs_h *g,\n"
29846 " const char *path);\n"
29851 #: ../src/guestfs-actions.pod:4065
29853 "Change the file owner to C<owner> and group to C<group>. This is like "
29854 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29855 "changed, not the target."
29859 #: ../src/guestfs-actions.pod:4077
29860 msgid "guestfs_lgetxattr"
29864 #: ../src/guestfs-actions.pod:4079
29868 " guestfs_lgetxattr (guestfs_h *g,\n"
29869 " const char *path,\n"
29870 " const char *name,\n"
29871 " size_t *size_r);\n"
29876 #: ../src/guestfs-actions.pod:4099
29877 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29881 #: ../src/guestfs-actions.pod:4107
29882 msgid "guestfs_lgetxattrs"
29886 #: ../src/guestfs-actions.pod:4109
29889 " struct guestfs_xattr_list *\n"
29890 " guestfs_lgetxattrs (guestfs_h *g,\n"
29891 " const char *path);\n"
29896 #: ../src/guestfs-actions.pod:4113
29898 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29899 "then it returns the extended attributes of the link itself."
29903 #: ../src/guestfs-actions.pod:4123
29904 msgid "guestfs_list_9p"
29908 #: ../src/guestfs-actions.pod:4125
29912 " guestfs_list_9p (guestfs_h *g);\n"
29917 #: ../src/guestfs-actions.pod:4137
29918 msgid "guestfs_list_devices"
29922 #: ../src/guestfs-actions.pod:4139
29926 " guestfs_list_devices (guestfs_h *g);\n"
29931 #: ../src/guestfs-actions.pod:4154
29932 msgid "guestfs_list_dm_devices"
29936 #: ../src/guestfs-actions.pod:4156
29940 " guestfs_list_dm_devices (guestfs_h *g);\n"
29945 #: ../src/guestfs-actions.pod:4161
29947 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29948 "previous call to C<guestfs_luks_open>."
29952 #: ../src/guestfs-actions.pod:4164
29954 "Device mapper devices which correspond to logical volumes are I<not> "
29955 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
29960 #: ../src/guestfs-actions.pod:4172 ../src/guestfs-actions.pod:5618
29961 msgid "(Added in 1.11.15)"
29962 msgstr "(Додано у 1.11.15)"
29965 #: ../src/guestfs-actions.pod:4174
29966 msgid "guestfs_list_filesystems"
29970 #: ../src/guestfs-actions.pod:4176
29974 " guestfs_list_filesystems (guestfs_h *g);\n"
29979 #: ../src/guestfs-actions.pod:4196
29981 "This command runs other libguestfs commands, which might include "
29982 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29983 "soon after launch and only when nothing is mounted."
29987 #: ../src/guestfs-actions.pod:4200
29989 "Not all of the filesystems returned will be mountable. In particular, swap "
29990 "partitions are returned in the list. Also this command does not check that "
29991 "each filesystem found is valid and mountable, and some filesystems might be "
29992 "mountable but require special options. Filesystems may not all belong to a "
29993 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
29997 #: ../src/guestfs-actions.pod:4214 ../src/guestfs-actions.pod:5981
29998 msgid "(Added in 1.5.15)"
29999 msgstr "(Додано у 1.5.15)"
30002 #: ../src/guestfs-actions.pod:4216
30003 msgid "guestfs_list_partitions"
30004 msgstr "guestfs_list_partitions"
30007 #: ../src/guestfs-actions.pod:4218
30011 " guestfs_list_partitions (guestfs_h *g);\n"
30015 " guestfs_list_partitions (guestfs_h *g);\n"
30019 #: ../src/guestfs-actions.pod:4225
30021 "This does not return logical volumes. For that you will need to call "
30026 #: ../src/guestfs-actions.pod:4236
30028 msgstr "guestfs_ll"
30031 #: ../src/guestfs-actions.pod:4238
30035 " guestfs_ll (guestfs_h *g,\n"
30036 " const char *directory);\n"
30040 " guestfs_ll (guestfs_h *g,\n"
30041 " const char *directory);\n"
30045 #: ../src/guestfs-actions.pod:4253
30047 msgstr "guestfs_ln"
30050 #: ../src/guestfs-actions.pod:4255
30054 " guestfs_ln (guestfs_h *g,\n"
30055 " const char *target,\n"
30056 " const char *linkname);\n"
30060 " guestfs_ln (guestfs_h *g,\n"
30061 " const char *target,\n"
30062 " const char *linkname);\n"
30066 #: ../src/guestfs-actions.pod:4266
30067 msgid "guestfs_ln_f"
30068 msgstr "guestfs_ln_f"
30071 #: ../src/guestfs-actions.pod:4268
30075 " guestfs_ln_f (guestfs_h *g,\n"
30076 " const char *target,\n"
30077 " const char *linkname);\n"
30081 " guestfs_ln_f (guestfs_h *g,\n"
30082 " const char *target,\n"
30083 " const char *linkname);\n"
30087 #: ../src/guestfs-actions.pod:4280
30088 msgid "guestfs_ln_s"
30089 msgstr "guestfs_ln_s"
30092 #: ../src/guestfs-actions.pod:4282
30096 " guestfs_ln_s (guestfs_h *g,\n"
30097 " const char *target,\n"
30098 " const char *linkname);\n"
30102 " guestfs_ln_s (guestfs_h *g,\n"
30103 " const char *target,\n"
30104 " const char *linkname);\n"
30108 #: ../src/guestfs-actions.pod:4293
30109 msgid "guestfs_ln_sf"
30110 msgstr "guestfs_ln_sf"
30113 #: ../src/guestfs-actions.pod:4295
30117 " guestfs_ln_sf (guestfs_h *g,\n"
30118 " const char *target,\n"
30119 " const char *linkname);\n"
30123 " guestfs_ln_sf (guestfs_h *g,\n"
30124 " const char *target,\n"
30125 " const char *linkname);\n"
30129 #: ../src/guestfs-actions.pod:4307
30130 msgid "guestfs_lremovexattr"
30131 msgstr "guestfs_lremovexattr"
30134 #: ../src/guestfs-actions.pod:4309
30138 " guestfs_lremovexattr (guestfs_h *g,\n"
30139 " const char *xattr,\n"
30140 " const char *path);\n"
30144 " guestfs_lremovexattr (guestfs_h *g,\n"
30145 " const char *xattr,\n"
30146 " const char *path);\n"
30150 #: ../src/guestfs-actions.pod:4314
30152 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
30153 "link, then it removes an extended attribute of the link itself."
30157 #: ../src/guestfs-actions.pod:4322
30159 msgstr "guestfs_ls"
30162 #: ../src/guestfs-actions.pod:4324
30166 " guestfs_ls (guestfs_h *g,\n"
30167 " const char *directory);\n"
30171 " guestfs_ls (guestfs_h *g,\n"
30172 " const char *directory);\n"
30176 #: ../src/guestfs-actions.pod:4332
30178 "This command is mostly useful for interactive sessions. Programs should "
30179 "probably use C<guestfs_readdir> instead."
30183 #: ../src/guestfs-actions.pod:4341
30184 msgid "guestfs_lsetxattr"
30185 msgstr "guestfs_lsetxattr"
30188 #: ../src/guestfs-actions.pod:4343
30192 " guestfs_lsetxattr (guestfs_h *g,\n"
30193 " const char *xattr,\n"
30194 " const char *val,\n"
30196 " const char *path);\n"
30200 " guestfs_lsetxattr (guestfs_h *g,\n"
30201 " const char *xattr,\n"
30202 " const char *val,\n"
30204 " const char *path);\n"
30208 #: ../src/guestfs-actions.pod:4350
30210 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
30211 "then it sets an extended attribute of the link itself."
30215 #: ../src/guestfs-actions.pod:4358
30216 msgid "guestfs_lstat"
30217 msgstr "guestfs_lstat"
30220 #: ../src/guestfs-actions.pod:4360
30223 " struct guestfs_stat *\n"
30224 " guestfs_lstat (guestfs_h *g,\n"
30225 " const char *path);\n"
30228 " struct guestfs_stat *\n"
30229 " guestfs_lstat (guestfs_h *g,\n"
30230 " const char *path);\n"
30234 #: ../src/guestfs-actions.pod:4366
30236 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
30237 "link, then the link is stat-ed, not the file it refers to."
30241 #: ../src/guestfs-actions.pod:4372 ../src/guestfs-actions.pod:7171
30243 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
30244 "error. I<The caller must call C<guestfs_free_stat> after use>."
30248 #: ../src/guestfs-actions.pod:4376 ../src/guestfs-actions.pod:7175
30249 #: ../src/guestfs-actions.pod:7193 ../src/guestfs-actions.pod:7574
30250 msgid "(Added in 0.9.2)"
30251 msgstr "(Додано у 0.9.2)"
30254 #: ../src/guestfs-actions.pod:4378
30255 msgid "guestfs_lstatlist"
30256 msgstr "guestfs_lstatlist"
30259 #: ../src/guestfs-actions.pod:4380
30262 " struct guestfs_stat_list *\n"
30263 " guestfs_lstatlist (guestfs_h *g,\n"
30264 " const char *path,\n"
30265 " char *const *names);\n"
30268 " struct guestfs_stat_list *\n"
30269 " guestfs_lstatlist (guestfs_h *g,\n"
30270 " const char *path,\n"
30271 " char *const *names);\n"
30275 #: ../src/guestfs-actions.pod:4385
30277 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
30278 "files, where all files are in the directory C<path>. C<names> is the list "
30279 "of files from this directory."
30283 #: ../src/guestfs-actions.pod:4394
30285 "This call is intended for programs that want to efficiently list a directory "
30286 "contents without making many round-trips. See also C<guestfs_lxattrlist> "
30287 "for a similarly efficient call for getting extended attributes. Very long "
30288 "directory listings might cause the protocol message size to be exceeded, "
30289 "causing this call to fail. The caller must split up such requests into "
30290 "smaller groups of names."
30294 #: ../src/guestfs-actions.pod:4402
30296 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
30297 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
30301 #: ../src/guestfs-actions.pod:4408
30302 msgid "guestfs_luks_add_key"
30303 msgstr "guestfs_luks_add_key"
30306 #: ../src/guestfs-actions.pod:4410
30310 " guestfs_luks_add_key (guestfs_h *g,\n"
30311 " const char *device,\n"
30312 " const char *key,\n"
30313 " const char *newkey,\n"
30318 " guestfs_luks_add_key (guestfs_h *g,\n"
30319 " const char *device,\n"
30320 " const char *key,\n"
30321 " const char *newkey,\n"
30326 #: ../src/guestfs-actions.pod:4422
30328 "Note that if C<keyslot> already contains a key, then this command will "
30329 "fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
30333 #: ../src/guestfs-actions.pod:4428 ../src/guestfs-actions.pod:4468
30334 #: ../src/guestfs-actions.pod:4491 ../src/guestfs-actions.pod:4511
30335 #: ../src/guestfs-actions.pod:4546 ../src/guestfs-actions.pod:4565
30337 "This function takes a key or passphrase parameter which could contain "
30338 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
30343 #: ../src/guestfs-actions.pod:4432 ../src/guestfs-actions.pod:4472
30344 #: ../src/guestfs-actions.pod:4495 ../src/guestfs-actions.pod:4515
30345 msgid "(Added in 1.5.2)"
30346 msgstr "(Додано у 1.5.2)"
30349 #: ../src/guestfs-actions.pod:4434
30350 msgid "guestfs_luks_close"
30351 msgstr "guestfs_luks_close"
30354 #: ../src/guestfs-actions.pod:4436
30358 " guestfs_luks_close (guestfs_h *g,\n"
30359 " const char *device);\n"
30363 " guestfs_luks_close (guestfs_h *g,\n"
30364 " const char *device);\n"
30368 #: ../src/guestfs-actions.pod:4440
30370 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
30371 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
30372 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
30373 "underlying block device."
30377 #: ../src/guestfs-actions.pod:4448 ../src/guestfs-actions.pod:4550
30378 #: ../src/guestfs-actions.pod:4569 ../src/guestfs-actions.pod:4619
30379 #: ../src/guestfs-actions.pod:4667
30380 msgid "(Added in 1.5.1)"
30381 msgstr "(Додано у 1.5.1)"
30384 #: ../src/guestfs-actions.pod:4450
30385 msgid "guestfs_luks_format"
30386 msgstr "guestfs_luks_format"
30389 #: ../src/guestfs-actions.pod:4452
30393 " guestfs_luks_format (guestfs_h *g,\n"
30394 " const char *device,\n"
30395 " const char *key,\n"
30400 " guestfs_luks_format (guestfs_h *g,\n"
30401 " const char *device,\n"
30402 " const char *key,\n"
30407 #: ../src/guestfs-actions.pod:4474
30408 msgid "guestfs_luks_format_cipher"
30409 msgstr "guestfs_luks_format_cipher"
30412 #: ../src/guestfs-actions.pod:4476
30416 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30417 " const char *device,\n"
30418 " const char *key,\n"
30420 " const char *cipher);\n"
30424 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30425 " const char *device,\n"
30426 " const char *key,\n"
30428 " const char *cipher);\n"
30432 #: ../src/guestfs-actions.pod:4483
30434 "This command is the same as C<guestfs_luks_format> but it also allows you to "
30435 "set the C<cipher> used."
30439 #: ../src/guestfs-actions.pod:4497
30440 msgid "guestfs_luks_kill_slot"
30441 msgstr "guestfs_luks_kill_slot"
30444 #: ../src/guestfs-actions.pod:4499
30448 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30449 " const char *device,\n"
30450 " const char *key,\n"
30455 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30456 " const char *device,\n"
30457 " const char *key,\n"
30462 #: ../src/guestfs-actions.pod:4517
30463 msgid "guestfs_luks_open"
30464 msgstr "guestfs_luks_open"
30467 #: ../src/guestfs-actions.pod:4519
30471 " guestfs_luks_open (guestfs_h *g,\n"
30472 " const char *device,\n"
30473 " const char *key,\n"
30474 " const char *mapname);\n"
30478 " guestfs_luks_open (guestfs_h *g,\n"
30479 " const char *device,\n"
30480 " const char *key,\n"
30481 " const char *mapname);\n"
30485 #: ../src/guestfs-actions.pod:4537
30487 "If this block device contains LVM volume groups, then calling "
30488 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
30493 #: ../src/guestfs-actions.pod:4541
30494 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
30498 #: ../src/guestfs-actions.pod:4552
30499 msgid "guestfs_luks_open_ro"
30500 msgstr "guestfs_luks_open_ro"
30503 #: ../src/guestfs-actions.pod:4554
30507 " guestfs_luks_open_ro (guestfs_h *g,\n"
30508 " const char *device,\n"
30509 " const char *key,\n"
30510 " const char *mapname);\n"
30514 " guestfs_luks_open_ro (guestfs_h *g,\n"
30515 " const char *device,\n"
30516 " const char *key,\n"
30517 " const char *mapname);\n"
30521 #: ../src/guestfs-actions.pod:4560
30523 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
30528 #: ../src/guestfs-actions.pod:4571
30529 msgid "guestfs_lvcreate"
30530 msgstr "guestfs_lvcreate"
30533 #: ../src/guestfs-actions.pod:4573
30537 " guestfs_lvcreate (guestfs_h *g,\n"
30538 " const char *logvol,\n"
30539 " const char *volgroup,\n"
30544 " guestfs_lvcreate (guestfs_h *g,\n"
30545 " const char *logvol,\n"
30546 " const char *volgroup,\n"
30551 #: ../src/guestfs-actions.pod:4586
30552 msgid "guestfs_lvm_canonical_lv_name"
30553 msgstr "guestfs_lvm_canonical_lv_name"
30556 #: ../src/guestfs-actions.pod:4588
30560 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30561 " const char *lvname);\n"
30565 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30566 " const char *lvname);\n"
30570 #: ../src/guestfs-actions.pod:4599
30571 msgid "See also C<guestfs_is_lv>."
30575 #: ../src/guestfs-actions.pod:4604
30576 msgid "(Added in 1.5.24)"
30577 msgstr "(Додано у 1.5.24)"
30580 #: ../src/guestfs-actions.pod:4606
30581 msgid "guestfs_lvm_clear_filter"
30582 msgstr "guestfs_lvm_clear_filter"
30585 #: ../src/guestfs-actions.pod:4608
30589 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30593 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30597 #: ../src/guestfs-actions.pod:4611
30599 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
30600 "see every block device."
30604 #: ../src/guestfs-actions.pod:4621
30605 msgid "guestfs_lvm_remove_all"
30606 msgstr "guestfs_lvm_remove_all"
30609 #: ../src/guestfs-actions.pod:4623
30613 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30617 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30621 #: ../src/guestfs-actions.pod:4636
30622 msgid "guestfs_lvm_set_filter"
30623 msgstr "guestfs_lvm_set_filter"
30626 #: ../src/guestfs-actions.pod:4638
30630 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30631 " char *const *devices);\n"
30635 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30636 " char *const *devices);\n"
30640 #: ../src/guestfs-actions.pod:4669
30641 msgid "guestfs_lvremove"
30642 msgstr "guestfs_lvremove"
30645 #: ../src/guestfs-actions.pod:4671
30649 " guestfs_lvremove (guestfs_h *g,\n"
30650 " const char *device);\n"
30654 " guestfs_lvremove (guestfs_h *g,\n"
30655 " const char *device);\n"
30659 #: ../src/guestfs-actions.pod:4683 ../src/guestfs-actions.pod:6094
30660 #: ../src/guestfs-actions.pod:7944
30661 msgid "(Added in 1.0.13)"
30662 msgstr "(Додано у 1.0.13)"
30665 #: ../src/guestfs-actions.pod:4685
30666 msgid "guestfs_lvrename"
30667 msgstr "guestfs_lvrename"
30670 #: ../src/guestfs-actions.pod:4687
30674 " guestfs_lvrename (guestfs_h *g,\n"
30675 " const char *logvol,\n"
30676 " const char *newlogvol);\n"
30680 " guestfs_lvrename (guestfs_h *g,\n"
30681 " const char *logvol,\n"
30682 " const char *newlogvol);\n"
30686 #: ../src/guestfs-actions.pod:4696 ../src/guestfs-actions.pod:7957
30687 msgid "(Added in 1.0.83)"
30688 msgstr "(Додано у 1.0.83)"
30691 #: ../src/guestfs-actions.pod:4698
30692 msgid "guestfs_lvresize"
30693 msgstr "guestfs_lvresize"
30696 #: ../src/guestfs-actions.pod:4700
30700 " guestfs_lvresize (guestfs_h *g,\n"
30701 " const char *device,\n"
30706 " guestfs_lvresize (guestfs_h *g,\n"
30707 " const char *device,\n"
30712 #: ../src/guestfs-actions.pod:4713
30713 msgid "guestfs_lvresize_free"
30714 msgstr "guestfs_lvresize_free"
30717 #: ../src/guestfs-actions.pod:4715
30721 " guestfs_lvresize_free (guestfs_h *g,\n"
30722 " const char *lv,\n"
30727 " guestfs_lvresize_free (guestfs_h *g,\n"
30728 " const char *lv,\n"
30733 #: ../src/guestfs-actions.pod:4728
30734 msgid "(Added in 1.3.3)"
30735 msgstr "(Додано у 1.3.3)"
30738 #: ../src/guestfs-actions.pod:4730
30739 msgid "guestfs_lvs"
30740 msgstr "guestfs_lvs"
30743 #: ../src/guestfs-actions.pod:4732
30747 " guestfs_lvs (guestfs_h *g);\n"
30751 " guestfs_lvs (guestfs_h *g);\n"
30755 #: ../src/guestfs-actions.pod:4741
30756 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
30760 #: ../src/guestfs-actions.pod:4749
30761 msgid "guestfs_lvs_full"
30762 msgstr "guestfs_lvs_full"
30765 #: ../src/guestfs-actions.pod:4751
30768 " struct guestfs_lvm_lv_list *\n"
30769 " guestfs_lvs_full (guestfs_h *g);\n"
30772 " struct guestfs_lvm_lv_list *\n"
30773 " guestfs_lvs_full (guestfs_h *g);\n"
30777 #: ../src/guestfs-actions.pod:4757
30779 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
30780 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
30784 #: ../src/guestfs-actions.pod:4763
30785 msgid "guestfs_lvuuid"
30786 msgstr "guestfs_lvuuid"
30789 #: ../src/guestfs-actions.pod:4765
30793 " guestfs_lvuuid (guestfs_h *g,\n"
30794 " const char *device);\n"
30798 " guestfs_lvuuid (guestfs_h *g,\n"
30799 " const char *device);\n"
30803 #: ../src/guestfs-actions.pod:4776
30804 msgid "guestfs_lxattrlist"
30805 msgstr "guestfs_lxattrlist"
30808 #: ../src/guestfs-actions.pod:4778
30811 " struct guestfs_xattr_list *\n"
30812 " guestfs_lxattrlist (guestfs_h *g,\n"
30813 " const char *path,\n"
30814 " char *const *names);\n"
30817 " struct guestfs_xattr_list *\n"
30818 " guestfs_lxattrlist (guestfs_h *g,\n"
30819 " const char *path,\n"
30820 " char *const *names);\n"
30824 #: ../src/guestfs-actions.pod:4797
30826 "This call is intended for programs that want to efficiently list a directory "
30827 "contents without making many round-trips. See also C<guestfs_lstatlist> for "
30828 "a similarly efficient call for getting standard stats. Very long directory "
30829 "listings might cause the protocol message size to be exceeded, causing this "
30830 "call to fail. The caller must split up such requests into smaller groups of "
30835 #: ../src/guestfs-actions.pod:4811
30836 msgid "guestfs_mkdir"
30837 msgstr "guestfs_mkdir"
30840 #: ../src/guestfs-actions.pod:4813
30844 " guestfs_mkdir (guestfs_h *g,\n"
30845 " const char *path);\n"
30849 " guestfs_mkdir (guestfs_h *g,\n"
30850 " const char *path);\n"
30854 #: ../src/guestfs-actions.pod:4823
30855 msgid "guestfs_mkdir_mode"
30856 msgstr "guestfs_mkdir_mode"
30859 #: ../src/guestfs-actions.pod:4825
30863 " guestfs_mkdir_mode (guestfs_h *g,\n"
30864 " const char *path,\n"
30869 " guestfs_mkdir_mode (guestfs_h *g,\n"
30870 " const char *path,\n"
30875 #: ../src/guestfs-actions.pod:4837
30876 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30880 #: ../src/guestfs-actions.pod:4843
30881 msgid "guestfs_mkdir_p"
30882 msgstr "guestfs_mkdir_p"
30885 #: ../src/guestfs-actions.pod:4845
30889 " guestfs_mkdir_p (guestfs_h *g,\n"
30890 " const char *path);\n"
30894 " guestfs_mkdir_p (guestfs_h *g,\n"
30895 " const char *path);\n"
30899 #: ../src/guestfs-actions.pod:4856
30900 msgid "guestfs_mkdtemp"
30901 msgstr "guestfs_mkdtemp"
30904 #: ../src/guestfs-actions.pod:4858
30908 " guestfs_mkdtemp (guestfs_h *g,\n"
30909 " const char *template);\n"
30913 " guestfs_mkdtemp (guestfs_h *g,\n"
30914 " const char *template);\n"
30918 #: ../src/guestfs-actions.pod:4886
30919 msgid "guestfs_mke2fs_J"
30920 msgstr "guestfs_mke2fs_J"
30923 #: ../src/guestfs-actions.pod:4888
30927 " guestfs_mke2fs_J (guestfs_h *g,\n"
30928 " const char *fstype,\n"
30929 " int blocksize,\n"
30930 " const char *device,\n"
30931 " const char *journal);\n"
30935 " guestfs_mke2fs_J (guestfs_h *g,\n"
30936 " const char *fstype,\n"
30937 " int blocksize,\n"
30938 " const char *device,\n"
30939 " const char *journal);\n"
30943 #: ../src/guestfs-actions.pod:4901
30944 msgid "See also C<guestfs_mke2journal>."
30948 #: ../src/guestfs-actions.pod:4905 ../src/guestfs-actions.pod:4923
30949 #: ../src/guestfs-actions.pod:4941 ../src/guestfs-actions.pod:4957
30950 #: ../src/guestfs-actions.pod:4971 ../src/guestfs-actions.pod:4985
30951 #: ../src/guestfs-actions.pod:5044 ../src/guestfs-actions.pod:5321
30952 msgid "(Added in 1.0.68)"
30953 msgstr "(Додано у 1.0.68)"
30956 #: ../src/guestfs-actions.pod:4907
30957 msgid "guestfs_mke2fs_JL"
30958 msgstr "guestfs_mke2fs_JL"
30961 #: ../src/guestfs-actions.pod:4909
30965 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30966 " const char *fstype,\n"
30967 " int blocksize,\n"
30968 " const char *device,\n"
30969 " const char *label);\n"
30973 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30974 " const char *fstype,\n"
30975 " int blocksize,\n"
30976 " const char *device,\n"
30977 " const char *label);\n"
30981 #: ../src/guestfs-actions.pod:4919
30982 msgid "See also C<guestfs_mke2journal_L>."
30986 #: ../src/guestfs-actions.pod:4925
30987 msgid "guestfs_mke2fs_JU"
30988 msgstr "guestfs_mke2fs_JU"
30991 #: ../src/guestfs-actions.pod:4927
30995 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30996 " const char *fstype,\n"
30997 " int blocksize,\n"
30998 " const char *device,\n"
30999 " const char *uuid);\n"
31003 " guestfs_mke2fs_JU (guestfs_h *g,\n"
31004 " const char *fstype,\n"
31005 " int blocksize,\n"
31006 " const char *device,\n"
31007 " const char *uuid);\n"
31011 #: ../src/guestfs-actions.pod:4937
31012 msgid "See also C<guestfs_mke2journal_U>."
31016 #: ../src/guestfs-actions.pod:4943
31017 msgid "guestfs_mke2journal"
31018 msgstr "guestfs_mke2journal"
31021 #: ../src/guestfs-actions.pod:4945
31025 " guestfs_mke2journal (guestfs_h *g,\n"
31026 " int blocksize,\n"
31027 " const char *device);\n"
31031 " guestfs_mke2journal (guestfs_h *g,\n"
31032 " int blocksize,\n"
31033 " const char *device);\n"
31037 #: ../src/guestfs-actions.pod:4959
31038 msgid "guestfs_mke2journal_L"
31039 msgstr "guestfs_mke2journal_L"
31042 #: ../src/guestfs-actions.pod:4961
31046 " guestfs_mke2journal_L (guestfs_h *g,\n"
31047 " int blocksize,\n"
31048 " const char *label,\n"
31049 " const char *device);\n"
31053 " guestfs_mke2journal_L (guestfs_h *g,\n"
31054 " int blocksize,\n"
31055 " const char *label,\n"
31056 " const char *device);\n"
31060 #: ../src/guestfs-actions.pod:4973
31061 msgid "guestfs_mke2journal_U"
31062 msgstr "guestfs_mke2journal_U"
31065 #: ../src/guestfs-actions.pod:4975
31069 " guestfs_mke2journal_U (guestfs_h *g,\n"
31070 " int blocksize,\n"
31071 " const char *uuid,\n"
31072 " const char *device);\n"
31076 " guestfs_mke2journal_U (guestfs_h *g,\n"
31077 " int blocksize,\n"
31078 " const char *uuid,\n"
31079 " const char *device);\n"
31083 #: ../src/guestfs-actions.pod:4987
31084 msgid "guestfs_mkfifo"
31085 msgstr "guestfs_mkfifo"
31088 #: ../src/guestfs-actions.pod:4989
31092 " guestfs_mkfifo (guestfs_h *g,\n"
31094 " const char *path);\n"
31098 " guestfs_mkfifo (guestfs_h *g,\n"
31100 " const char *path);\n"
31104 #: ../src/guestfs-actions.pod:4994
31106 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
31107 "is just a convenient wrapper around C<guestfs_mknod>."
31111 #: ../src/guestfs-actions.pod:5004
31112 msgid "guestfs_mkfs"
31113 msgstr "guestfs_mkfs"
31116 #: ../src/guestfs-actions.pod:5006
31120 " guestfs_mkfs (guestfs_h *g,\n"
31121 " const char *fstype,\n"
31122 " const char *device);\n"
31126 " guestfs_mkfs (guestfs_h *g,\n"
31127 " const char *fstype,\n"
31128 " const char *device);\n"
31132 #: ../src/guestfs-actions.pod:5019
31133 msgid "guestfs_mkfs_b"
31134 msgstr "guestfs_mkfs_b"
31137 #: ../src/guestfs-actions.pod:5021
31141 " guestfs_mkfs_b (guestfs_h *g,\n"
31142 " const char *fstype,\n"
31143 " int blocksize,\n"
31144 " const char *device);\n"
31148 " guestfs_mkfs_b (guestfs_h *g,\n"
31149 " const char *fstype,\n"
31150 " int blocksize,\n"
31151 " const char *device);\n"
31155 #: ../src/guestfs-actions.pod:5027
31157 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
31162 #: ../src/guestfs-actions.pod:5034
31164 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
31165 "block size of the resulting filesystem. Supported block sizes depend on the "
31166 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
31170 #: ../src/guestfs-actions.pod:5046
31171 msgid "guestfs_mkfs_opts"
31172 msgstr "guestfs_mkfs_opts"
31175 #: ../src/guestfs-actions.pod:5048
31179 " guestfs_mkfs_opts (guestfs_h *g,\n"
31180 " const char *fstype,\n"
31181 " const char *device,\n"
31186 " guestfs_mkfs_opts (guestfs_h *g,\n"
31187 " const char *fstype,\n"
31188 " const char *device,\n"
31193 #: ../src/guestfs-actions.pod:5059
31196 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
31197 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
31198 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
31199 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
31204 #: ../src/guestfs-actions.pod:5107
31205 msgid "(Added in 1.7.19)"
31206 msgstr "(Додано у 1.7.19)"
31209 #: ../src/guestfs-actions.pod:5109
31210 msgid "guestfs_mkfs_opts_va"
31211 msgstr "guestfs_mkfs_opts_va"
31214 #: ../src/guestfs-actions.pod:5111
31218 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31219 " const char *fstype,\n"
31220 " const char *device,\n"
31221 " va_list args);\n"
31225 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31226 " const char *fstype,\n"
31227 " const char *device,\n"
31228 " va_list args);\n"
31232 #: ../src/guestfs-actions.pod:5117
31233 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
31237 #: ../src/guestfs-actions.pod:5121
31238 msgid "guestfs_mkfs_opts_argv"
31239 msgstr "guestfs_mkfs_opts_argv"
31242 #: ../src/guestfs-actions.pod:5123
31246 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31247 " const char *fstype,\n"
31248 " const char *device,\n"
31249 " const struct guestfs_mkfs_opts_argv *optargs);\n"
31253 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31254 " const char *fstype,\n"
31255 " const char *device,\n"
31256 " const struct guestfs_mkfs_opts_argv *optargs);\n"
31260 #: ../src/guestfs-actions.pod:5129
31261 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
31265 #: ../src/guestfs-actions.pod:5133
31266 msgid "guestfs_mkmountpoint"
31267 msgstr "guestfs_mkmountpoint"
31270 #: ../src/guestfs-actions.pod:5135
31274 " guestfs_mkmountpoint (guestfs_h *g,\n"
31275 " const char *exemptpath);\n"
31279 " guestfs_mkmountpoint (guestfs_h *g,\n"
31280 " const char *exemptpath);\n"
31284 #: ../src/guestfs-actions.pod:5139
31286 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
31287 "that can be used to create extra mountpoints before mounting the first "
31292 #: ../src/guestfs-actions.pod:5163
31294 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
31295 "may get unexpected errors if you try to mix these calls. It is safest to "
31296 "manually unmount filesystems and remove mountpoints after use."
31300 #: ../src/guestfs-actions.pod:5167
31302 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
31303 "first, so for this to work for manual mountpoints, you must ensure that the "
31304 "innermost mountpoints have the longest pathnames, as in the example code "
31309 #: ../src/guestfs-actions.pod:5174
31311 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
31312 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
31313 "can also trigger these issues."
31317 #: ../src/guestfs-actions.pod:5180 ../src/guestfs-actions.pod:5486
31318 #: ../src/guestfs-actions.pod:6514
31319 msgid "(Added in 1.0.62)"
31320 msgstr "(Додано у 1.0.62)"
31323 #: ../src/guestfs-actions.pod:5182
31324 msgid "guestfs_mknod"
31328 #: ../src/guestfs-actions.pod:5184
31332 " guestfs_mknod (guestfs_h *g,\n"
31336 " const char *path);\n"
31341 #: ../src/guestfs-actions.pod:5199
31343 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
31344 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
31345 "regular file). These constants are available in the standard Linux header "
31346 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
31347 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
31348 "the appropriate constant for you."
31352 #: ../src/guestfs-actions.pod:5213
31353 msgid "guestfs_mknod_b"
31357 #: ../src/guestfs-actions.pod:5215
31361 " guestfs_mknod_b (guestfs_h *g,\n"
31365 " const char *path);\n"
31370 #: ../src/guestfs-actions.pod:5222
31372 "This call creates a block device node called C<path> with mode C<mode> and "
31373 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
31374 "wrapper around C<guestfs_mknod>."
31378 #: ../src/guestfs-actions.pod:5232
31379 msgid "guestfs_mknod_c"
31383 #: ../src/guestfs-actions.pod:5234
31387 " guestfs_mknod_c (guestfs_h *g,\n"
31391 " const char *path);\n"
31396 #: ../src/guestfs-actions.pod:5241
31398 "This call creates a char device node called C<path> with mode C<mode> and "
31399 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
31400 "wrapper around C<guestfs_mknod>."
31404 #: ../src/guestfs-actions.pod:5251
31405 msgid "guestfs_mkswap"
31409 #: ../src/guestfs-actions.pod:5253
31413 " guestfs_mkswap (guestfs_h *g,\n"
31414 " const char *device);\n"
31419 #: ../src/guestfs-actions.pod:5263
31420 msgid "guestfs_mkswap_L"
31424 #: ../src/guestfs-actions.pod:5265
31428 " guestfs_mkswap_L (guestfs_h *g,\n"
31429 " const char *label,\n"
31430 " const char *device);\n"
31435 #: ../src/guestfs-actions.pod:5280
31436 msgid "guestfs_mkswap_U"
31440 #: ../src/guestfs-actions.pod:5282
31444 " guestfs_mkswap_U (guestfs_h *g,\n"
31445 " const char *uuid,\n"
31446 " const char *device);\n"
31451 #: ../src/guestfs-actions.pod:5293
31452 msgid "guestfs_mkswap_file"
31456 #: ../src/guestfs-actions.pod:5295
31460 " guestfs_mkswap_file (guestfs_h *g,\n"
31461 " const char *path);\n"
31466 #: ../src/guestfs-actions.pod:5301
31468 "This command just writes a swap file signature to an existing file. To "
31469 "create the file itself, use something like C<guestfs_fallocate>."
31473 #: ../src/guestfs-actions.pod:5308
31474 msgid "guestfs_modprobe"
31478 #: ../src/guestfs-actions.pod:5310
31482 " guestfs_modprobe (guestfs_h *g,\n"
31483 " const char *modulename);\n"
31488 #: ../src/guestfs-actions.pod:5323
31489 msgid "guestfs_mount"
31493 #: ../src/guestfs-actions.pod:5325
31497 " guestfs_mount (guestfs_h *g,\n"
31498 " const char *device,\n"
31499 " const char *mountpoint);\n"
31504 #: ../src/guestfs-actions.pod:5344
31506 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
31507 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
31508 "problems for users. If your program might need to work with older versions "
31509 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
31510 "for the first parameter if you don't want any options)."
31514 #: ../src/guestfs-actions.pod:5355
31515 msgid "guestfs_mount_9p"
31519 #: ../src/guestfs-actions.pod:5357
31523 " guestfs_mount_9p (guestfs_h *g,\n"
31524 " const char *mounttag,\n"
31525 " const char *mountpoint,\n"
31531 #: ../src/guestfs-actions.pod:5368
31534 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
31539 #: ../src/guestfs-actions.pod:5381
31540 msgid "guestfs_mount_9p_va"
31544 #: ../src/guestfs-actions.pod:5383
31548 " guestfs_mount_9p_va (guestfs_h *g,\n"
31549 " const char *mounttag,\n"
31550 " const char *mountpoint,\n"
31551 " va_list args);\n"
31556 #: ../src/guestfs-actions.pod:5389
31557 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
31561 #: ../src/guestfs-actions.pod:5393
31562 msgid "guestfs_mount_9p_argv"
31566 #: ../src/guestfs-actions.pod:5395
31570 " guestfs_mount_9p_argv (guestfs_h *g,\n"
31571 " const char *mounttag,\n"
31572 " const char *mountpoint,\n"
31573 " const struct guestfs_mount_9p_argv *optargs);\n"
31578 #: ../src/guestfs-actions.pod:5401
31579 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
31583 #: ../src/guestfs-actions.pod:5405
31584 msgid "guestfs_mount_loop"
31588 #: ../src/guestfs-actions.pod:5407
31592 " guestfs_mount_loop (guestfs_h *g,\n"
31593 " const char *file,\n"
31594 " const char *mountpoint);\n"
31599 #: ../src/guestfs-actions.pod:5420
31600 msgid "guestfs_mount_options"
31604 #: ../src/guestfs-actions.pod:5422
31608 " guestfs_mount_options (guestfs_h *g,\n"
31609 " const char *options,\n"
31610 " const char *device,\n"
31611 " const char *mountpoint);\n"
31616 #: ../src/guestfs-actions.pod:5428
31618 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31619 "the mount options as for the L<mount(8)> I<-o> flag."
31623 #: ../src/guestfs-actions.pod:5438 ../src/guestfs-actions.pod:5452
31624 #: ../src/guestfs-actions.pod:5469
31625 msgid "(Added in 1.0.10)"
31626 msgstr "(Додано у 1.0.10)"
31629 #: ../src/guestfs-actions.pod:5440
31630 msgid "guestfs_mount_ro"
31634 #: ../src/guestfs-actions.pod:5442
31638 " guestfs_mount_ro (guestfs_h *g,\n"
31639 " const char *device,\n"
31640 " const char *mountpoint);\n"
31645 #: ../src/guestfs-actions.pod:5447
31647 "This is the same as the C<guestfs_mount> command, but it mounts the "
31648 "filesystem with the read-only (I<-o ro>) flag."
31652 #: ../src/guestfs-actions.pod:5454
31653 msgid "guestfs_mount_vfs"
31657 #: ../src/guestfs-actions.pod:5456
31661 " guestfs_mount_vfs (guestfs_h *g,\n"
31662 " const char *options,\n"
31663 " const char *vfstype,\n"
31664 " const char *device,\n"
31665 " const char *mountpoint);\n"
31670 #: ../src/guestfs-actions.pod:5463
31672 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31673 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
31678 #: ../src/guestfs-actions.pod:5471
31679 msgid "guestfs_mountpoints"
31683 #: ../src/guestfs-actions.pod:5473
31687 " guestfs_mountpoints (guestfs_h *g);\n"
31692 #: ../src/guestfs-actions.pod:5476
31694 "This call is similar to C<guestfs_mounts>. That call returns a list of "
31695 "devices. This one returns a hash table (map) of device name to directory "
31696 "where the device is mounted."
31700 #: ../src/guestfs-actions.pod:5488
31701 msgid "guestfs_mounts"
31705 #: ../src/guestfs-actions.pod:5490
31709 " guestfs_mounts (guestfs_h *g);\n"
31714 #: ../src/guestfs-actions.pod:5498
31715 msgid "See also: C<guestfs_mountpoints>"
31719 #: ../src/guestfs-actions.pod:5506
31724 #: ../src/guestfs-actions.pod:5508
31728 " guestfs_mv (guestfs_h *g,\n"
31729 " const char *src,\n"
31730 " const char *dest);\n"
31735 #: ../src/guestfs-actions.pod:5520
31736 msgid "guestfs_ntfs_3g_probe"
31740 #: ../src/guestfs-actions.pod:5522
31744 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
31746 " const char *device);\n"
31751 #: ../src/guestfs-actions.pod:5541
31752 msgid "(Added in 1.0.43)"
31753 msgstr "(Додано у 1.0.43)"
31756 #: ../src/guestfs-actions.pod:5543
31757 msgid "guestfs_ntfsresize"
31761 #: ../src/guestfs-actions.pod:5545
31765 " guestfs_ntfsresize (guestfs_h *g,\n"
31766 " const char *device);\n"
31771 #: ../src/guestfs-actions.pod:5549 ../src/guestfs-actions.pod:5649
31773 "I<This function is deprecated.> In new code, use the L</"
31774 "guestfs_ntfsresize_opts> call instead."
31778 #: ../src/guestfs-actions.pod:5573
31779 msgid "guestfs_ntfsresize_opts"
31783 #: ../src/guestfs-actions.pod:5575
31787 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
31788 " const char *device,\n"
31794 #: ../src/guestfs-actions.pod:5585
31797 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
31798 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
31803 #: ../src/guestfs-actions.pod:5605
31805 "After the resize operation, the filesystem is always marked as requiring a "
31806 "consistency check (for safety). You have to boot into Windows to perform "
31807 "this check and clear this condition. If you I<don't> set the C<force> "
31808 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
31809 "times on a single filesystem without booting into Windows between each "
31814 #: ../src/guestfs-actions.pod:5620
31815 msgid "guestfs_ntfsresize_opts_va"
31819 #: ../src/guestfs-actions.pod:5622
31823 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
31824 " const char *device,\n"
31825 " va_list args);\n"
31830 #: ../src/guestfs-actions.pod:5627
31831 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
31835 #: ../src/guestfs-actions.pod:5631
31836 msgid "guestfs_ntfsresize_opts_argv"
31840 #: ../src/guestfs-actions.pod:5633
31844 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
31845 " const char *device,\n"
31846 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
31851 #: ../src/guestfs-actions.pod:5638
31852 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
31856 #: ../src/guestfs-actions.pod:5642
31857 msgid "guestfs_ntfsresize_size"
31861 #: ../src/guestfs-actions.pod:5644
31865 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31866 " const char *device,\n"
31867 " int64_t size);\n"
31872 #: ../src/guestfs-actions.pod:5656
31874 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31875 "to specify the new size (in bytes) explicitly."
31879 #: ../src/guestfs-actions.pod:5661 ../src/guestfs-actions.pod:6121
31880 #: ../src/guestfs-actions.pod:6194 ../src/guestfs-actions.pod:6462
31881 #: ../src/guestfs-actions.pod:8101
31882 msgid "(Added in 1.3.14)"
31883 msgstr "(Додано у 1.3.14)"
31886 #: ../src/guestfs-actions.pod:5663
31887 msgid "guestfs_part_add"
31891 #: ../src/guestfs-actions.pod:5665
31895 " guestfs_part_add (guestfs_h *g,\n"
31896 " const char *device,\n"
31897 " const char *prlogex,\n"
31898 " int64_t startsect,\n"
31899 " int64_t endsect);\n"
31904 #: ../src/guestfs-actions.pod:5672
31906 "This command adds a partition to C<device>. If there is no partition table "
31907 "on the device, call C<guestfs_part_init> first."
31911 #: ../src/guestfs-actions.pod:5684
31913 "Creating a partition which covers the whole disk is not so easy. Use "
31914 "C<guestfs_part_disk> to do that."
31918 #: ../src/guestfs-actions.pod:5689 ../src/guestfs-actions.pod:5727
31919 #: ../src/guestfs-actions.pod:5780 ../src/guestfs-actions.pod:5864
31920 #: ../src/guestfs-actions.pod:5902 ../src/guestfs-actions.pod:5921
31921 #: ../src/guestfs-actions.pod:5961
31922 msgid "(Added in 1.0.78)"
31923 msgstr "(Додано у 1.0.78)"
31926 #: ../src/guestfs-actions.pod:5691
31927 msgid "guestfs_part_del"
31931 #: ../src/guestfs-actions.pod:5693
31935 " guestfs_part_del (guestfs_h *g,\n"
31936 " const char *device,\n"
31942 #: ../src/guestfs-actions.pod:5708
31943 msgid "guestfs_part_disk"
31947 #: ../src/guestfs-actions.pod:5710
31951 " guestfs_part_disk (guestfs_h *g,\n"
31952 " const char *device,\n"
31953 " const char *parttype);\n"
31958 #: ../src/guestfs-actions.pod:5715
31960 "This command is simply a combination of C<guestfs_part_init> followed by "
31961 "C<guestfs_part_add> to create a single primary partition covering the whole "
31966 #: ../src/guestfs-actions.pod:5719
31968 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
31969 "possible values are described in C<guestfs_part_init>."
31973 #: ../src/guestfs-actions.pod:5729
31974 msgid "guestfs_part_get_bootable"
31978 #: ../src/guestfs-actions.pod:5731
31982 " guestfs_part_get_bootable (guestfs_h *g,\n"
31983 " const char *device,\n"
31989 #: ../src/guestfs-actions.pod:5739
31990 msgid "See also C<guestfs_part_set_bootable>."
31994 #: ../src/guestfs-actions.pod:5745
31995 msgid "guestfs_part_get_mbr_id"
31999 #: ../src/guestfs-actions.pod:5747
32003 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
32004 " const char *device,\n"
32010 #: ../src/guestfs-actions.pod:5755 ../src/guestfs-actions.pod:5937
32012 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
32013 "undefined results for other partition table types (see "
32014 "C<guestfs_part_get_parttype>)."
32018 #: ../src/guestfs-actions.pod:5763
32019 msgid "guestfs_part_get_parttype"
32023 #: ../src/guestfs-actions.pod:5765
32027 " guestfs_part_get_parttype (guestfs_h *g,\n"
32028 " const char *device);\n"
32033 #: ../src/guestfs-actions.pod:5772
32035 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
32036 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
32037 "possible, although unusual. See C<guestfs_part_init> for a full list."
32041 #: ../src/guestfs-actions.pod:5782
32042 msgid "guestfs_part_init"
32046 #: ../src/guestfs-actions.pod:5784
32050 " guestfs_part_init (guestfs_h *g,\n"
32051 " const char *device,\n"
32052 " const char *parttype);\n"
32057 #: ../src/guestfs-actions.pod:5793
32059 "Initially there are no partitions. Following this, you should call "
32060 "C<guestfs_part_add> for each partition required."
32064 #: ../src/guestfs-actions.pod:5866
32065 msgid "guestfs_part_list"
32066 msgstr "guestfs_part_list"
32069 #: ../src/guestfs-actions.pod:5868
32072 " struct guestfs_partition_list *\n"
32073 " guestfs_part_list (guestfs_h *g,\n"
32074 " const char *device);\n"
32077 " struct guestfs_partition_list *\n"
32078 " guestfs_part_list (guestfs_h *g,\n"
32079 " const char *device);\n"
32083 #: ../src/guestfs-actions.pod:5885
32085 "Start of the partition I<in bytes>. To get sectors you have to divide by "
32086 "the device's sector size, see C<guestfs_blockdev_getss>."
32090 #: ../src/guestfs-actions.pod:5898
32092 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
32093 "was an error. I<The caller must call C<guestfs_free_partition_list> after "
32098 #: ../src/guestfs-actions.pod:5904
32099 msgid "guestfs_part_set_bootable"
32103 #: ../src/guestfs-actions.pod:5906
32107 " guestfs_part_set_bootable (guestfs_h *g,\n"
32108 " const char *device,\n"
32110 " int bootable);\n"
32115 #: ../src/guestfs-actions.pod:5923
32116 msgid "guestfs_part_set_mbr_id"
32120 #: ../src/guestfs-actions.pod:5925
32124 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
32125 " const char *device,\n"
32132 #: ../src/guestfs-actions.pod:5945
32133 msgid "guestfs_part_set_name"
32137 #: ../src/guestfs-actions.pod:5947
32141 " guestfs_part_set_name (guestfs_h *g,\n"
32142 " const char *device,\n"
32144 " const char *name);\n"
32149 #: ../src/guestfs-actions.pod:5963
32150 msgid "guestfs_part_to_dev"
32154 #: ../src/guestfs-actions.pod:5965
32158 " guestfs_part_to_dev (guestfs_h *g,\n"
32159 " const char *partition);\n"
32164 #: ../src/guestfs-actions.pod:5973 ../src/guestfs-actions.pod:5992
32166 "The named partition must exist, for example as a string returned from "
32167 "C<guestfs_list_partitions>."
32171 #: ../src/guestfs-actions.pod:5976
32172 msgid "See also C<guestfs_part_to_partnum>."
32176 #: ../src/guestfs-actions.pod:5983
32178 #| msgid "guestfs_part_list"
32179 msgid "guestfs_part_to_partnum"
32180 msgstr "guestfs_part_list"
32183 #: ../src/guestfs-actions.pod:5985
32187 #| " guestfs_mkdir_p (guestfs_h *g,\n"
32188 #| " const char *path);\n"
32192 " guestfs_part_to_partnum (guestfs_h *g,\n"
32193 " const char *partition);\n"
32197 " guestfs_mkdir_p (guestfs_h *g,\n"
32198 " const char *path);\n"
32202 #: ../src/guestfs-actions.pod:5995
32204 #| msgid "See also L</stat>."
32205 msgid "See also C<guestfs_part_to_dev>."
32206 msgstr "Див. також L</stat>."
32209 #: ../src/guestfs-actions.pod:5999
32210 msgid "guestfs_ping_daemon"
32214 #: ../src/guestfs-actions.pod:6001
32218 " guestfs_ping_daemon (guestfs_h *g);\n"
32223 #: ../src/guestfs-actions.pod:6013
32224 msgid "guestfs_pread"
32228 #: ../src/guestfs-actions.pod:6015
32232 " guestfs_pread (guestfs_h *g,\n"
32233 " const char *path,\n"
32235 " int64_t offset,\n"
32236 " size_t *size_r);\n"
32241 #: ../src/guestfs-actions.pod:6028
32242 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
32246 #: ../src/guestfs-actions.pod:6039
32247 msgid "guestfs_pread_device"
32251 #: ../src/guestfs-actions.pod:6041
32255 " guestfs_pread_device (guestfs_h *g,\n"
32256 " const char *device,\n"
32258 " int64_t offset,\n"
32259 " size_t *size_r);\n"
32264 #: ../src/guestfs-actions.pod:6054
32265 msgid "See also C<guestfs_pread>."
32269 #: ../src/guestfs-actions.pod:6063
32270 msgid "(Added in 1.5.21)"
32271 msgstr "(Додано у 1.5.21)"
32274 #: ../src/guestfs-actions.pod:6065
32275 msgid "guestfs_pvcreate"
32279 #: ../src/guestfs-actions.pod:6067
32283 " guestfs_pvcreate (guestfs_h *g,\n"
32284 " const char *device);\n"
32289 #: ../src/guestfs-actions.pod:6079
32290 msgid "guestfs_pvremove"
32294 #: ../src/guestfs-actions.pod:6081
32298 " guestfs_pvremove (guestfs_h *g,\n"
32299 " const char *device);\n"
32304 #: ../src/guestfs-actions.pod:6096
32305 msgid "guestfs_pvresize"
32309 #: ../src/guestfs-actions.pod:6098
32313 " guestfs_pvresize (guestfs_h *g,\n"
32314 " const char *device);\n"
32319 #: ../src/guestfs-actions.pod:6109
32320 msgid "guestfs_pvresize_size"
32324 #: ../src/guestfs-actions.pod:6111
32328 " guestfs_pvresize_size (guestfs_h *g,\n"
32329 " const char *device,\n"
32330 " int64_t size);\n"
32335 #: ../src/guestfs-actions.pod:6116
32337 "This command is the same as C<guestfs_pvresize> except that it allows you to "
32338 "specify the new size (in bytes) explicitly."
32342 #: ../src/guestfs-actions.pod:6123
32343 msgid "guestfs_pvs"
32347 #: ../src/guestfs-actions.pod:6125
32351 " guestfs_pvs (guestfs_h *g);\n"
32356 #: ../src/guestfs-actions.pod:6134
32357 msgid "See also C<guestfs_pvs_full>."
32361 #: ../src/guestfs-actions.pod:6142
32362 msgid "guestfs_pvs_full"
32366 #: ../src/guestfs-actions.pod:6144
32369 " struct guestfs_lvm_pv_list *\n"
32370 " guestfs_pvs_full (guestfs_h *g);\n"
32375 #: ../src/guestfs-actions.pod:6150
32377 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
32378 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
32382 #: ../src/guestfs-actions.pod:6156
32383 msgid "guestfs_pvuuid"
32387 #: ../src/guestfs-actions.pod:6158
32391 " guestfs_pvuuid (guestfs_h *g,\n"
32392 " const char *device);\n"
32397 #: ../src/guestfs-actions.pod:6169
32398 msgid "guestfs_pwrite"
32402 #: ../src/guestfs-actions.pod:6171
32406 " guestfs_pwrite (guestfs_h *g,\n"
32407 " const char *path,\n"
32408 " const char *content,\n"
32409 " size_t content_size,\n"
32410 " int64_t offset);\n"
32415 #: ../src/guestfs-actions.pod:6187
32416 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
32420 #: ../src/guestfs-actions.pod:6196
32421 msgid "guestfs_pwrite_device"
32425 #: ../src/guestfs-actions.pod:6198
32429 " guestfs_pwrite_device (guestfs_h *g,\n"
32430 " const char *device,\n"
32431 " const char *content,\n"
32432 " size_t content_size,\n"
32433 " int64_t offset);\n"
32438 #: ../src/guestfs-actions.pod:6213
32439 msgid "See also C<guestfs_pwrite>."
32443 #: ../src/guestfs-actions.pod:6220
32444 msgid "(Added in 1.5.20)"
32445 msgstr "(Додано у 1.5.20)"
32448 #: ../src/guestfs-actions.pod:6222
32449 msgid "guestfs_read_file"
32453 #: ../src/guestfs-actions.pod:6224
32457 " guestfs_read_file (guestfs_h *g,\n"
32458 " const char *path,\n"
32459 " size_t *size_r);\n"
32464 #: ../src/guestfs-actions.pod:6232
32466 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
32467 "embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
32468 "function is limited in the total size of file that can be handled."
32472 #: ../src/guestfs-actions.pod:6244
32473 msgid "(Added in 1.0.63)"
32474 msgstr "(Додано у 1.0.63)"
32477 #: ../src/guestfs-actions.pod:6246
32478 msgid "guestfs_read_lines"
32482 #: ../src/guestfs-actions.pod:6248
32486 " guestfs_read_lines (guestfs_h *g,\n"
32487 " const char *path);\n"
32492 #: ../src/guestfs-actions.pod:6257
32494 "Note that this function cannot correctly handle binary files (specifically, "
32495 "files containing C<\\0> character which is treated as end of line). For "
32496 "those you need to use the C<guestfs_read_file> function which has a more "
32497 "complex interface."
32501 #: ../src/guestfs-actions.pod:6268
32502 msgid "guestfs_readdir"
32506 #: ../src/guestfs-actions.pod:6270
32509 " struct guestfs_dirent_list *\n"
32510 " guestfs_readdir (guestfs_h *g,\n"
32511 " const char *dir);\n"
32516 #: ../src/guestfs-actions.pod:6324
32518 "This function is primarily intended for use by programs. To get a simple "
32519 "list of names, use C<guestfs_ls>. To get a printable directory for human "
32520 "consumption, use C<guestfs_ll>."
32524 #: ../src/guestfs-actions.pod:6328
32526 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
32527 "was an error. I<The caller must call C<guestfs_free_dirent_list> after use>."
32531 #: ../src/guestfs-actions.pod:6334
32532 msgid "guestfs_readlink"
32536 #: ../src/guestfs-actions.pod:6336
32540 " guestfs_readlink (guestfs_h *g,\n"
32541 " const char *path);\n"
32546 #: ../src/guestfs-actions.pod:6347
32547 msgid "guestfs_readlinklist"
32551 #: ../src/guestfs-actions.pod:6349
32555 " guestfs_readlinklist (guestfs_h *g,\n"
32556 " const char *path,\n"
32557 " char *const *names);\n"
32562 #: ../src/guestfs-actions.pod:6382
32563 msgid "guestfs_realpath"
32567 #: ../src/guestfs-actions.pod:6384
32571 " guestfs_realpath (guestfs_h *g,\n"
32572 " const char *path);\n"
32577 #: ../src/guestfs-actions.pod:6396
32578 msgid "guestfs_removexattr"
32582 #: ../src/guestfs-actions.pod:6398
32586 " guestfs_removexattr (guestfs_h *g,\n"
32587 " const char *xattr,\n"
32588 " const char *path);\n"
32593 #: ../src/guestfs-actions.pod:6406
32594 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
32598 #: ../src/guestfs-actions.pod:6412
32599 msgid "guestfs_resize2fs"
32603 #: ../src/guestfs-actions.pod:6414
32607 " guestfs_resize2fs (guestfs_h *g,\n"
32608 " const char *device);\n"
32613 #: ../src/guestfs-actions.pod:6421
32615 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
32616 "C<device> before calling this command. For unknown reasons C<resize2fs> "
32617 "sometimes gives an error about this and sometimes not. In any case, it is "
32618 "always safe to call C<guestfs_e2fsck_f> before calling this function."
32622 #: ../src/guestfs-actions.pod:6431
32623 msgid "guestfs_resize2fs_M"
32627 #: ../src/guestfs-actions.pod:6433
32631 " guestfs_resize2fs_M (guestfs_h *g,\n"
32632 " const char *device);\n"
32637 #: ../src/guestfs-actions.pod:6437
32639 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
32640 "resized to its minimum size. This works like the I<-M> option to the "
32641 "C<resize2fs> command."
32645 #: ../src/guestfs-actions.pod:6441
32647 "To get the resulting size of the filesystem you should call "
32648 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
32649 "These two numbers, multiplied together, give the resulting size of the "
32650 "minimal filesystem in bytes."
32654 #: ../src/guestfs-actions.pod:6450
32655 msgid "guestfs_resize2fs_size"
32659 #: ../src/guestfs-actions.pod:6452
32663 " guestfs_resize2fs_size (guestfs_h *g,\n"
32664 " const char *device,\n"
32665 " int64_t size);\n"
32670 #: ../src/guestfs-actions.pod:6457
32672 "This command is the same as C<guestfs_resize2fs> except that it allows you "
32673 "to specify the new size (in bytes) explicitly."
32677 #: ../src/guestfs-actions.pod:6464
32682 #: ../src/guestfs-actions.pod:6466
32686 " guestfs_rm (guestfs_h *g,\n"
32687 " const char *path);\n"
32692 #: ../src/guestfs-actions.pod:6476
32693 msgid "guestfs_rm_rf"
32697 #: ../src/guestfs-actions.pod:6478
32701 " guestfs_rm_rf (guestfs_h *g,\n"
32702 " const char *path);\n"
32707 #: ../src/guestfs-actions.pod:6490
32708 msgid "guestfs_rmdir"
32712 #: ../src/guestfs-actions.pod:6492
32716 " guestfs_rmdir (guestfs_h *g,\n"
32717 " const char *path);\n"
32722 #: ../src/guestfs-actions.pod:6502
32723 msgid "guestfs_rmmountpoint"
32727 #: ../src/guestfs-actions.pod:6504
32731 " guestfs_rmmountpoint (guestfs_h *g,\n"
32732 " const char *exemptpath);\n"
32737 #: ../src/guestfs-actions.pod:6508
32739 "This calls removes a mountpoint that was previously created with "
32740 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
32744 #: ../src/guestfs-actions.pod:6516
32745 msgid "guestfs_scrub_device"
32749 #: ../src/guestfs-actions.pod:6518
32753 " guestfs_scrub_device (guestfs_h *g,\n"
32754 " const char *device);\n"
32759 #: ../src/guestfs-actions.pod:6533 ../src/guestfs-actions.pod:6551
32760 #: ../src/guestfs-actions.pod:6570
32761 msgid "(Added in 1.0.52)"
32762 msgstr "(Додано у 1.0.52)"
32765 #: ../src/guestfs-actions.pod:6535
32766 msgid "guestfs_scrub_file"
32770 #: ../src/guestfs-actions.pod:6537
32774 " guestfs_scrub_file (guestfs_h *g,\n"
32775 " const char *file);\n"
32780 #: ../src/guestfs-actions.pod:6553
32781 msgid "guestfs_scrub_freespace"
32785 #: ../src/guestfs-actions.pod:6555
32789 " guestfs_scrub_freespace (guestfs_h *g,\n"
32790 " const char *dir);\n"
32795 #: ../src/guestfs-actions.pod:6559
32797 "This command creates the directory C<dir> and then fills it with files until "
32798 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
32799 "and deletes them. The intention is to scrub any free space on the partition "
32800 "containing C<dir>."
32804 #: ../src/guestfs-actions.pod:6572
32805 msgid "guestfs_set_append"
32809 #: ../src/guestfs-actions.pod:6574
32813 " guestfs_set_append (guestfs_h *g,\n"
32814 " const char *append);\n"
32819 #: ../src/guestfs-actions.pod:6591
32820 msgid "guestfs_set_attach_method"
32824 #: ../src/guestfs-actions.pod:6593
32828 " guestfs_set_attach_method (guestfs_h *g,\n"
32829 " const char *attachmethod);\n"
32834 #: ../src/guestfs-actions.pod:6621
32835 msgid "guestfs_set_autosync"
32839 #: ../src/guestfs-actions.pod:6623
32843 " guestfs_set_autosync (guestfs_h *g,\n"
32844 " int autosync);\n"
32849 #: ../src/guestfs-actions.pod:6639
32850 msgid "guestfs_set_direct"
32854 #: ../src/guestfs-actions.pod:6641
32858 " guestfs_set_direct (guestfs_h *g,\n"
32864 #: ../src/guestfs-actions.pod:6649
32866 "One consequence of this is that log messages aren't caught by the library "
32867 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
32872 #: ../src/guestfs-actions.pod:6662
32873 msgid "guestfs_set_e2label"
32877 #: ../src/guestfs-actions.pod:6664
32881 " guestfs_set_e2label (guestfs_h *g,\n"
32882 " const char *device,\n"
32883 " const char *label);\n"
32888 #: ../src/guestfs-actions.pod:6673
32890 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32891 "the existing label on a filesystem."
32895 #: ../src/guestfs-actions.pod:6680
32896 msgid "guestfs_set_e2uuid"
32900 #: ../src/guestfs-actions.pod:6682
32904 " guestfs_set_e2uuid (guestfs_h *g,\n"
32905 " const char *device,\n"
32906 " const char *uuid);\n"
32911 #: ../src/guestfs-actions.pod:6692
32913 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32914 "the existing UUID of a filesystem."
32918 #: ../src/guestfs-actions.pod:6699
32919 msgid "guestfs_set_memsize"
32923 #: ../src/guestfs-actions.pod:6701
32927 " guestfs_set_memsize (guestfs_h *g,\n"
32933 #: ../src/guestfs-actions.pod:6705
32935 "This sets the memory size in megabytes allocated to the qemu subprocess. "
32936 "This only has any effect if called before C<guestfs_launch>."
32940 #: ../src/guestfs-actions.pod:6720
32941 msgid "guestfs_set_network"
32945 #: ../src/guestfs-actions.pod:6722
32949 " guestfs_set_network (guestfs_h *g,\n"
32955 #: ../src/guestfs-actions.pod:6732
32957 "You must call this before calling C<guestfs_launch>, otherwise it has no "
32962 #: ../src/guestfs-actions.pod:6739
32963 msgid "guestfs_set_path"
32967 #: ../src/guestfs-actions.pod:6741
32971 " guestfs_set_path (guestfs_h *g,\n"
32972 " const char *searchpath);\n"
32977 #: ../src/guestfs-actions.pod:6756
32978 msgid "guestfs_set_pgroup"
32982 #: ../src/guestfs-actions.pod:6758
32986 " guestfs_set_pgroup (guestfs_h *g,\n"
32992 #: ../src/guestfs-actions.pod:6775
32993 msgid "guestfs_set_qemu"
32997 #: ../src/guestfs-actions.pod:6777
33001 " guestfs_set_qemu (guestfs_h *g,\n"
33002 " const char *qemu);\n"
33007 #: ../src/guestfs-actions.pod:6803
33008 msgid "guestfs_set_recovery_proc"
33012 #: ../src/guestfs-actions.pod:6805
33016 " guestfs_set_recovery_proc (guestfs_h *g,\n"
33017 " int recoveryproc);\n"
33022 #: ../src/guestfs-actions.pod:6809
33024 "If this is called with the parameter C<false> then C<guestfs_launch> does "
33025 "not create a recovery process. The purpose of the recovery process is to "
33026 "stop runaway qemu processes in the case where the main program aborts "
33031 #: ../src/guestfs-actions.pod:6814
33033 "This only has any effect if called before C<guestfs_launch>, and the default "
33038 #: ../src/guestfs-actions.pod:6827
33039 msgid "guestfs_set_selinux"
33043 #: ../src/guestfs-actions.pod:6829
33047 " guestfs_set_selinux (guestfs_h *g,\n"
33053 #: ../src/guestfs-actions.pod:6846
33054 msgid "guestfs_set_smp"
33058 #: ../src/guestfs-actions.pod:6848
33062 " guestfs_set_smp (guestfs_h *g,\n"
33068 #: ../src/guestfs-actions.pod:6856
33069 msgid "This function must be called before C<guestfs_launch>."
33073 #: ../src/guestfs-actions.pod:6862
33074 msgid "guestfs_set_trace"
33078 #: ../src/guestfs-actions.pod:6864
33082 " guestfs_set_trace (guestfs_h *g,\n"
33088 #: ../src/guestfs-actions.pod:6878
33090 "Trace messages are normally sent to C<stderr>, unless you register a "
33091 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33095 #: ../src/guestfs-actions.pod:6886
33096 msgid "guestfs_set_verbose"
33100 #: ../src/guestfs-actions.pod:6888
33104 " guestfs_set_verbose (guestfs_h *g,\n"
33110 #: ../src/guestfs-actions.pod:6897
33112 "Verbose messages are normally sent to C<stderr>, unless you register a "
33113 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33117 #: ../src/guestfs-actions.pod:6905
33118 msgid "guestfs_setcon"
33122 #: ../src/guestfs-actions.pod:6907
33126 " guestfs_setcon (guestfs_h *g,\n"
33127 " const char *context);\n"
33132 #: ../src/guestfs-actions.pod:6920
33133 msgid "guestfs_setxattr"
33137 #: ../src/guestfs-actions.pod:6922
33141 " guestfs_setxattr (guestfs_h *g,\n"
33142 " const char *xattr,\n"
33143 " const char *val,\n"
33145 " const char *path);\n"
33150 #: ../src/guestfs-actions.pod:6933
33151 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
33155 #: ../src/guestfs-actions.pod:6939
33156 msgid "guestfs_sfdisk"
33160 #: ../src/guestfs-actions.pod:6941
33164 " guestfs_sfdisk (guestfs_h *g,\n"
33165 " const char *device,\n"
33169 " char *const *lines);\n"
33174 #: ../src/guestfs-actions.pod:6949 ../src/guestfs-actions.pod:6993
33175 #: ../src/guestfs-actions.pod:7027
33177 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
33182 #: ../src/guestfs-actions.pod:6976
33184 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
33188 #: ../src/guestfs-actions.pod:6986
33189 msgid "guestfs_sfdiskM"
33193 #: ../src/guestfs-actions.pod:6988
33197 " guestfs_sfdiskM (guestfs_h *g,\n"
33198 " const char *device,\n"
33199 " char *const *lines);\n"
33204 #: ../src/guestfs-actions.pod:7000
33206 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
33207 "partition sizes are specified in megabytes only (rounded to the nearest "
33208 "cylinder) and you don't need to specify the cyls, heads and sectors "
33209 "parameters which were rarely if ever used anyway."
33213 #: ../src/guestfs-actions.pod:7006
33215 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
33216 "C<guestfs_part_disk>"
33220 #: ../src/guestfs-actions.pod:7016
33221 msgid "guestfs_sfdisk_N"
33225 #: ../src/guestfs-actions.pod:7018
33229 " guestfs_sfdisk_N (guestfs_h *g,\n"
33230 " const char *device,\n"
33235 " const char *line);\n"
33240 #: ../src/guestfs-actions.pod:7037
33242 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
33243 "for the cyls/heads/sectors parameters."
33247 #: ../src/guestfs-actions.pod:7040
33248 msgid "See also: C<guestfs_part_add>"
33252 #: ../src/guestfs-actions.pod:7049
33253 msgid "guestfs_sfdisk_disk_geometry"
33257 #: ../src/guestfs-actions.pod:7051
33261 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
33262 " const char *device);\n"
33267 #: ../src/guestfs-actions.pod:7055
33269 "This displays the disk geometry of C<device> read from the partition table. "
33270 "Especially in the case where the underlying block device has been resized, "
33271 "this can be different from the kernel's idea of the geometry (see "
33272 "C<guestfs_sfdisk_kernel_geometry>)."
33276 #: ../src/guestfs-actions.pod:7068
33277 msgid "guestfs_sfdisk_kernel_geometry"
33281 #: ../src/guestfs-actions.pod:7070
33285 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
33286 " const char *device);\n"
33291 #: ../src/guestfs-actions.pod:7084
33292 msgid "guestfs_sfdisk_l"
33296 #: ../src/guestfs-actions.pod:7086
33300 " guestfs_sfdisk_l (guestfs_h *g,\n"
33301 " const char *device);\n"
33306 #: ../src/guestfs-actions.pod:7090
33308 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
33313 #: ../src/guestfs-actions.pod:7101
33314 msgid "See also: C<guestfs_part_list>"
33318 #: ../src/guestfs-actions.pod:7108
33323 #: ../src/guestfs-actions.pod:7110
33327 " guestfs_sh (guestfs_h *g,\n"
33328 " const char *command);\n"
33333 #: ../src/guestfs-actions.pod:7117
33334 msgid "This is like C<guestfs_command>, but passes the command to:"
33338 #: ../src/guestfs-actions.pod:7125
33339 msgid "All the provisos about C<guestfs_command> apply to this call."
33343 #: ../src/guestfs-actions.pod:7132
33344 msgid "guestfs_sh_lines"
33348 #: ../src/guestfs-actions.pod:7134
33352 " guestfs_sh_lines (guestfs_h *g,\n"
33353 " const char *command);\n"
33358 #: ../src/guestfs-actions.pod:7138
33360 "This is the same as C<guestfs_sh>, but splits the result into a list of "
33365 #: ../src/guestfs-actions.pod:7141
33366 msgid "See also: C<guestfs_command_lines>"
33370 #: ../src/guestfs-actions.pod:7149
33371 msgid "guestfs_sleep"
33375 #: ../src/guestfs-actions.pod:7151
33379 " guestfs_sleep (guestfs_h *g,\n"
33385 #: ../src/guestfs-actions.pod:7159
33386 msgid "(Added in 1.0.41)"
33387 msgstr "(Додано у 1.0.41)"
33390 #: ../src/guestfs-actions.pod:7161 ../src/guestfs-structs.pod:109
33391 msgid "guestfs_stat"
33395 #: ../src/guestfs-actions.pod:7163
33398 " struct guestfs_stat *\n"
33399 " guestfs_stat (guestfs_h *g,\n"
33400 " const char *path);\n"
33405 #: ../src/guestfs-actions.pod:7177 ../src/guestfs-structs.pod:135
33406 msgid "guestfs_statvfs"
33410 #: ../src/guestfs-actions.pod:7179
33413 " struct guestfs_statvfs *\n"
33414 " guestfs_statvfs (guestfs_h *g,\n"
33415 " const char *path);\n"
33420 #: ../src/guestfs-actions.pod:7189
33422 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
33423 "error. I<The caller must call C<guestfs_free_statvfs> after use>."
33427 #: ../src/guestfs-actions.pod:7195
33428 msgid "guestfs_strings"
33432 #: ../src/guestfs-actions.pod:7197
33436 " guestfs_strings (guestfs_h *g,\n"
33437 " const char *path);\n"
33442 #: ../src/guestfs-actions.pod:7213
33443 msgid "guestfs_strings_e"
33447 #: ../src/guestfs-actions.pod:7215
33451 " guestfs_strings_e (guestfs_h *g,\n"
33452 " const char *encoding,\n"
33453 " const char *path);\n"
33458 #: ../src/guestfs-actions.pod:7220
33460 "This is like the C<guestfs_strings> command, but allows you to specify the "
33461 "encoding of strings that are looked for in the source file C<path>."
33465 #: ../src/guestfs-actions.pod:7230
33467 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
33468 "ISO-8859-X (this is what C<guestfs_strings> uses)."
33472 #: ../src/guestfs-actions.pod:7268
33473 msgid "guestfs_swapoff_device"
33477 #: ../src/guestfs-actions.pod:7270
33481 " guestfs_swapoff_device (guestfs_h *g,\n"
33482 " const char *device);\n"
33487 #: ../src/guestfs-actions.pod:7274
33489 "This command disables the libguestfs appliance swap device or partition "
33490 "named C<device>. See C<guestfs_swapon_device>."
33494 #: ../src/guestfs-actions.pod:7282
33495 msgid "guestfs_swapoff_file"
33499 #: ../src/guestfs-actions.pod:7284
33503 " guestfs_swapoff_file (guestfs_h *g,\n"
33504 " const char *file);\n"
33509 #: ../src/guestfs-actions.pod:7294
33510 msgid "guestfs_swapoff_label"
33514 #: ../src/guestfs-actions.pod:7296
33518 " guestfs_swapoff_label (guestfs_h *g,\n"
33519 " const char *label);\n"
33524 #: ../src/guestfs-actions.pod:7307
33525 msgid "guestfs_swapoff_uuid"
33529 #: ../src/guestfs-actions.pod:7309
33533 " guestfs_swapoff_uuid (guestfs_h *g,\n"
33534 " const char *uuid);\n"
33539 #: ../src/guestfs-actions.pod:7320
33540 msgid "guestfs_swapon_device"
33544 #: ../src/guestfs-actions.pod:7322
33548 " guestfs_swapon_device (guestfs_h *g,\n"
33549 " const char *device);\n"
33554 #: ../src/guestfs-actions.pod:7326
33556 "This command enables the libguestfs appliance to use the swap device or "
33557 "partition named C<device>. The increased memory is made available for all "
33558 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
33562 #: ../src/guestfs-actions.pod:7342
33563 msgid "guestfs_swapon_file"
33567 #: ../src/guestfs-actions.pod:7344
33571 " guestfs_swapon_file (guestfs_h *g,\n"
33572 " const char *file);\n"
33577 #: ../src/guestfs-actions.pod:7348
33579 "This command enables swap to a file. See C<guestfs_swapon_device> for other "
33584 #: ../src/guestfs-actions.pod:7355
33585 msgid "guestfs_swapon_label"
33589 #: ../src/guestfs-actions.pod:7357
33593 " guestfs_swapon_label (guestfs_h *g,\n"
33594 " const char *label);\n"
33599 #: ../src/guestfs-actions.pod:7361
33601 "This command enables swap to a labeled swap partition. See "
33602 "C<guestfs_swapon_device> for other notes."
33606 #: ../src/guestfs-actions.pod:7368
33607 msgid "guestfs_swapon_uuid"
33611 #: ../src/guestfs-actions.pod:7370
33615 " guestfs_swapon_uuid (guestfs_h *g,\n"
33616 " const char *uuid);\n"
33621 #: ../src/guestfs-actions.pod:7374
33623 "This command enables swap to a swap partition with the given UUID. See "
33624 "C<guestfs_swapon_device> for other notes."
33628 #: ../src/guestfs-actions.pod:7381
33629 msgid "guestfs_sync"
33633 #: ../src/guestfs-actions.pod:7383
33637 " guestfs_sync (guestfs_h *g);\n"
33642 #: ../src/guestfs-actions.pod:7396
33643 msgid "guestfs_tail"
33647 #: ../src/guestfs-actions.pod:7398
33651 " guestfs_tail (guestfs_h *g,\n"
33652 " const char *path);\n"
33657 #: ../src/guestfs-actions.pod:7414
33658 msgid "guestfs_tail_n"
33662 #: ../src/guestfs-actions.pod:7416
33666 " guestfs_tail_n (guestfs_h *g,\n"
33668 " const char *path);\n"
33673 #: ../src/guestfs-actions.pod:7438
33674 msgid "guestfs_tar_in"
33678 #: ../src/guestfs-actions.pod:7440
33682 " guestfs_tar_in (guestfs_h *g,\n"
33683 " const char *tarfile,\n"
33684 " const char *directory);\n"
33689 #: ../src/guestfs-actions.pod:7448
33691 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
33695 #: ../src/guestfs-actions.pod:7453 ../src/guestfs-actions.pod:7470
33696 #: ../src/guestfs-actions.pod:7486 ../src/guestfs-actions.pod:7502
33697 msgid "(Added in 1.0.3)"
33698 msgstr "(Додано у 1.0.3)"
33701 #: ../src/guestfs-actions.pod:7455
33702 msgid "guestfs_tar_out"
33706 #: ../src/guestfs-actions.pod:7457
33710 " guestfs_tar_out (guestfs_h *g,\n"
33711 " const char *directory,\n"
33712 " const char *tarfile);\n"
33717 #: ../src/guestfs-actions.pod:7465
33719 "To download a compressed tarball, use C<guestfs_tgz_out> or "
33720 "C<guestfs_txz_out>."
33724 #: ../src/guestfs-actions.pod:7472
33725 msgid "guestfs_tgz_in"
33729 #: ../src/guestfs-actions.pod:7474
33733 " guestfs_tgz_in (guestfs_h *g,\n"
33734 " const char *tarball,\n"
33735 " const char *directory);\n"
33740 #: ../src/guestfs-actions.pod:7482
33741 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
33745 #: ../src/guestfs-actions.pod:7488
33746 msgid "guestfs_tgz_out"
33750 #: ../src/guestfs-actions.pod:7490
33754 " guestfs_tgz_out (guestfs_h *g,\n"
33755 " const char *directory,\n"
33756 " const char *tarball);\n"
33761 #: ../src/guestfs-actions.pod:7498
33762 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
33766 #: ../src/guestfs-actions.pod:7504
33767 msgid "guestfs_touch"
33771 #: ../src/guestfs-actions.pod:7506
33775 " guestfs_touch (guestfs_h *g,\n"
33776 " const char *path);\n"
33781 #: ../src/guestfs-actions.pod:7521
33782 msgid "guestfs_truncate"
33786 #: ../src/guestfs-actions.pod:7523
33790 " guestfs_truncate (guestfs_h *g,\n"
33791 " const char *path);\n"
33796 #: ../src/guestfs-actions.pod:7534
33797 msgid "guestfs_truncate_size"
33801 #: ../src/guestfs-actions.pod:7536
33805 " guestfs_truncate_size (guestfs_h *g,\n"
33806 " const char *path,\n"
33807 " int64_t size);\n"
33812 #: ../src/guestfs-actions.pod:7544
33814 "If the current file size is less than C<size> then the file is extended to "
33815 "the required size with zero bytes. This creates a sparse file (ie. disk "
33816 "blocks are not allocated for the file until you write to it). To create a "
33817 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
33821 #: ../src/guestfs-actions.pod:7554
33822 msgid "guestfs_tune2fs_l"
33826 #: ../src/guestfs-actions.pod:7556
33830 " guestfs_tune2fs_l (guestfs_h *g,\n"
33831 " const char *device);\n"
33836 #: ../src/guestfs-actions.pod:7576
33837 msgid "guestfs_txz_in"
33841 #: ../src/guestfs-actions.pod:7578
33845 " guestfs_txz_in (guestfs_h *g,\n"
33846 " const char *tarball,\n"
33847 " const char *directory);\n"
33852 #: ../src/guestfs-actions.pod:7590
33853 msgid "guestfs_txz_out"
33857 #: ../src/guestfs-actions.pod:7592
33861 " guestfs_txz_out (guestfs_h *g,\n"
33862 " const char *directory,\n"
33863 " const char *tarball);\n"
33868 #: ../src/guestfs-actions.pod:7604
33869 msgid "guestfs_umask"
33873 #: ../src/guestfs-actions.pod:7606
33877 " guestfs_umask (guestfs_h *g,\n"
33883 #: ../src/guestfs-actions.pod:7622
33885 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
33886 "C<guestfs_mkdir>."
33890 #: ../src/guestfs-actions.pod:7631
33891 msgid "guestfs_umount"
33895 #: ../src/guestfs-actions.pod:7633
33899 " guestfs_umount (guestfs_h *g,\n"
33900 " const char *pathordevice);\n"
33905 #: ../src/guestfs-actions.pod:7645
33906 msgid "guestfs_umount_all"
33910 #: ../src/guestfs-actions.pod:7647
33914 " guestfs_umount_all (guestfs_h *g);\n"
33919 #: ../src/guestfs-actions.pod:7658
33920 msgid "guestfs_upload"
33924 #: ../src/guestfs-actions.pod:7660
33928 " guestfs_upload (guestfs_h *g,\n"
33929 " const char *filename,\n"
33930 " const char *remotefilename);\n"
33935 #: ../src/guestfs-actions.pod:7670
33936 msgid "See also C<guestfs_download>."
33940 #: ../src/guestfs-actions.pod:7681
33941 msgid "guestfs_upload_offset"
33945 #: ../src/guestfs-actions.pod:7683
33949 " guestfs_upload_offset (guestfs_h *g,\n"
33950 " const char *filename,\n"
33951 " const char *remotefilename,\n"
33952 " int64_t offset);\n"
33957 #: ../src/guestfs-actions.pod:7699
33959 "Note that there is no limit on the amount of data that can be uploaded with "
33960 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
33961 "full amount unless an error occurs."
33965 #: ../src/guestfs-actions.pod:7704
33966 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
33970 #: ../src/guestfs-actions.pod:7715
33971 msgid "guestfs_utimens"
33975 #: ../src/guestfs-actions.pod:7717
33979 " guestfs_utimens (guestfs_h *g,\n"
33980 " const char *path,\n"
33981 " int64_t atsecs,\n"
33982 " int64_t atnsecs,\n"
33983 " int64_t mtsecs,\n"
33984 " int64_t mtnsecs);\n"
33989 #: ../src/guestfs-actions.pod:7746 ../src/guestfs-structs.pod:175
33990 msgid "guestfs_version"
33994 #: ../src/guestfs-actions.pod:7748
33997 " struct guestfs_version *\n"
33998 " guestfs_version (guestfs_h *g);\n"
34003 #: ../src/guestfs-actions.pod:7776
34005 "I<Note:> Don't use this call to test for availability of features. In "
34006 "enterprise distributions we backport features from later versions into "
34007 "earlier versions, making this an unreliable way to test for features. Use "
34008 "C<guestfs_available> instead."
34012 #: ../src/guestfs-actions.pod:7782
34014 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
34015 "error. I<The caller must call C<guestfs_free_version> after use>."
34019 #: ../src/guestfs-actions.pod:7786
34020 msgid "(Added in 1.0.58)"
34021 msgstr "(Додано у 1.0.58)"
34024 #: ../src/guestfs-actions.pod:7788
34025 msgid "guestfs_vfs_label"
34029 #: ../src/guestfs-actions.pod:7790
34033 " guestfs_vfs_label (guestfs_h *g,\n"
34034 " const char *device);\n"
34039 #: ../src/guestfs-actions.pod:7799
34040 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
34044 #: ../src/guestfs-actions.pod:7804 ../src/guestfs-actions.pod:7841
34045 msgid "(Added in 1.3.18)"
34046 msgstr "(Додано у 1.3.18)"
34049 #: ../src/guestfs-actions.pod:7806
34050 msgid "guestfs_vfs_type"
34054 #: ../src/guestfs-actions.pod:7808
34058 " guestfs_vfs_type (guestfs_h *g,\n"
34059 " const char *device);\n"
34064 #: ../src/guestfs-actions.pod:7825
34065 msgid "guestfs_vfs_uuid"
34069 #: ../src/guestfs-actions.pod:7827
34073 " guestfs_vfs_uuid (guestfs_h *g,\n"
34074 " const char *device);\n"
34079 #: ../src/guestfs-actions.pod:7836
34080 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
34084 #: ../src/guestfs-actions.pod:7843
34085 msgid "guestfs_vg_activate"
34089 #: ../src/guestfs-actions.pod:7845
34093 " guestfs_vg_activate (guestfs_h *g,\n"
34095 " char *const *volgroups);\n"
34100 #: ../src/guestfs-actions.pod:7862
34101 msgid "guestfs_vg_activate_all"
34105 #: ../src/guestfs-actions.pod:7864
34109 " guestfs_vg_activate_all (guestfs_h *g,\n"
34110 " int activate);\n"
34115 #: ../src/guestfs-actions.pod:7877
34116 msgid "guestfs_vgcreate"
34120 #: ../src/guestfs-actions.pod:7879
34124 " guestfs_vgcreate (guestfs_h *g,\n"
34125 " const char *volgroup,\n"
34126 " char *const *physvols);\n"
34131 #: ../src/guestfs-actions.pod:7891
34132 msgid "guestfs_vglvuuids"
34136 #: ../src/guestfs-actions.pod:7893
34140 " guestfs_vglvuuids (guestfs_h *g,\n"
34141 " const char *vgname);\n"
34146 #: ../src/guestfs-actions.pod:7900
34148 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
34149 "associate logical volumes and volume groups."
34153 #: ../src/guestfs-actions.pod:7903
34154 msgid "See also C<guestfs_vgpvuuids>."
34158 #: ../src/guestfs-actions.pod:7911
34159 msgid "guestfs_vgpvuuids"
34163 #: ../src/guestfs-actions.pod:7913
34167 " guestfs_vgpvuuids (guestfs_h *g,\n"
34168 " const char *vgname);\n"
34173 #: ../src/guestfs-actions.pod:7920
34175 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
34176 "associate physical volumes and volume groups."
34180 #: ../src/guestfs-actions.pod:7923
34181 msgid "See also C<guestfs_vglvuuids>."
34185 #: ../src/guestfs-actions.pod:7931
34186 msgid "guestfs_vgremove"
34190 #: ../src/guestfs-actions.pod:7933
34194 " guestfs_vgremove (guestfs_h *g,\n"
34195 " const char *vgname);\n"
34200 #: ../src/guestfs-actions.pod:7946
34201 msgid "guestfs_vgrename"
34205 #: ../src/guestfs-actions.pod:7948
34209 " guestfs_vgrename (guestfs_h *g,\n"
34210 " const char *volgroup,\n"
34211 " const char *newvolgroup);\n"
34216 #: ../src/guestfs-actions.pod:7959
34217 msgid "guestfs_vgs"
34221 #: ../src/guestfs-actions.pod:7961
34225 " guestfs_vgs (guestfs_h *g);\n"
34230 #: ../src/guestfs-actions.pod:7970
34231 msgid "See also C<guestfs_vgs_full>."
34235 #: ../src/guestfs-actions.pod:7978
34236 msgid "guestfs_vgs_full"
34240 #: ../src/guestfs-actions.pod:7980
34243 " struct guestfs_lvm_vg_list *\n"
34244 " guestfs_vgs_full (guestfs_h *g);\n"
34249 #: ../src/guestfs-actions.pod:7986
34251 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
34252 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
34256 #: ../src/guestfs-actions.pod:7992
34257 msgid "guestfs_vgscan"
34261 #: ../src/guestfs-actions.pod:7994
34265 " guestfs_vgscan (guestfs_h *g);\n"
34270 #: ../src/guestfs-actions.pod:8004
34271 msgid "guestfs_vguuid"
34275 #: ../src/guestfs-actions.pod:8006
34279 " guestfs_vguuid (guestfs_h *g,\n"
34280 " const char *vgname);\n"
34285 #: ../src/guestfs-actions.pod:8017
34286 msgid "guestfs_wait_ready"
34290 #: ../src/guestfs-actions.pod:8019
34294 " guestfs_wait_ready (guestfs_h *g);\n"
34299 #: ../src/guestfs-actions.pod:8022
34301 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
34306 #: ../src/guestfs-actions.pod:8029
34307 msgid "This function is a no op."
34311 #: ../src/guestfs-actions.pod:8031
34313 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
34314 "calling C<guestfs_launch> to wait for the launch to complete. However this "
34315 "is no longer necessary because C<guestfs_launch> now does the waiting."
34319 #: ../src/guestfs-actions.pod:8036
34321 "If you see any calls to this function in code then you can just remove them, "
34322 "unless you want to retain compatibility with older versions of the API."
34326 #: ../src/guestfs-actions.pod:8044
34327 msgid "guestfs_wc_c"
34331 #: ../src/guestfs-actions.pod:8046
34335 " guestfs_wc_c (guestfs_h *g,\n"
34336 " const char *path);\n"
34341 #: ../src/guestfs-actions.pod:8057
34342 msgid "guestfs_wc_l"
34346 #: ../src/guestfs-actions.pod:8059
34350 " guestfs_wc_l (guestfs_h *g,\n"
34351 " const char *path);\n"
34356 #: ../src/guestfs-actions.pod:8070
34357 msgid "guestfs_wc_w"
34361 #: ../src/guestfs-actions.pod:8072
34365 " guestfs_wc_w (guestfs_h *g,\n"
34366 " const char *path);\n"
34371 #: ../src/guestfs-actions.pod:8083
34372 msgid "guestfs_write"
34376 #: ../src/guestfs-actions.pod:8085
34380 " guestfs_write (guestfs_h *g,\n"
34381 " const char *path,\n"
34382 " const char *content,\n"
34383 " size_t content_size);\n"
34388 #: ../src/guestfs-actions.pod:8094
34389 msgid "See also C<guestfs_write_append>."
34393 #: ../src/guestfs-actions.pod:8103
34394 msgid "guestfs_write_append"
34398 #: ../src/guestfs-actions.pod:8105
34402 " guestfs_write_append (guestfs_h *g,\n"
34403 " const char *path,\n"
34404 " const char *content,\n"
34405 " size_t content_size);\n"
34410 #: ../src/guestfs-actions.pod:8114
34411 msgid "See also C<guestfs_write>."
34415 #: ../src/guestfs-actions.pod:8123
34416 msgid "guestfs_write_file"
34417 msgstr "guestfs_write_file"
34420 #: ../src/guestfs-actions.pod:8125
34424 " guestfs_write_file (guestfs_h *g,\n"
34425 " const char *path,\n"
34426 " const char *content,\n"
34431 " guestfs_write_file (guestfs_h *g,\n"
34432 " const char *path,\n"
34433 " const char *content,\n"
34438 #: ../src/guestfs-actions.pod:8131
34440 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
34445 #: ../src/guestfs-actions.pod:8156
34446 msgid "guestfs_zegrep"
34447 msgstr "guestfs_zegrep"
34450 #: ../src/guestfs-actions.pod:8158
34454 " guestfs_zegrep (guestfs_h *g,\n"
34455 " const char *regex,\n"
34456 " const char *path);\n"
34460 " guestfs_zegrep (guestfs_h *g,\n"
34461 " const char *regex,\n"
34462 " const char *path);\n"
34466 #: ../src/guestfs-actions.pod:8175
34467 msgid "guestfs_zegrepi"
34468 msgstr "guestfs_zegrepi"
34471 #: ../src/guestfs-actions.pod:8177
34475 " guestfs_zegrepi (guestfs_h *g,\n"
34476 " const char *regex,\n"
34477 " const char *path);\n"
34481 " guestfs_zegrepi (guestfs_h *g,\n"
34482 " const char *regex,\n"
34483 " const char *path);\n"
34487 #: ../src/guestfs-actions.pod:8194
34488 msgid "guestfs_zero"
34489 msgstr "guestfs_zero"
34492 #: ../src/guestfs-actions.pod:8196
34496 " guestfs_zero (guestfs_h *g,\n"
34497 " const char *device);\n"
34501 " guestfs_zero (guestfs_h *g,\n"
34502 " const char *device);\n"
34506 #: ../src/guestfs-actions.pod:8210
34508 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
34509 "C<guestfs_is_zero_device>"
34513 #: ../src/guestfs-actions.pod:8222
34514 msgid "guestfs_zero_device"
34515 msgstr "guestfs_zero_device"
34518 #: ../src/guestfs-actions.pod:8224
34522 " guestfs_zero_device (guestfs_h *g,\n"
34523 " const char *device);\n"
34527 " guestfs_zero_device (guestfs_h *g,\n"
34528 " const char *device);\n"
34532 #: ../src/guestfs-actions.pod:8228
34534 "This command writes zeroes over the entire C<device>. Compare with "
34535 "C<guestfs_zero> which just zeroes the first few blocks of a device."
34539 #: ../src/guestfs-actions.pod:8246
34540 msgid "(Added in 1.3.1)"
34541 msgstr "(Додано у 1.3.1)"
34544 #: ../src/guestfs-actions.pod:8248
34545 msgid "guestfs_zerofree"
34546 msgstr "guestfs_zerofree"
34549 #: ../src/guestfs-actions.pod:8250
34553 " guestfs_zerofree (guestfs_h *g,\n"
34554 " const char *device);\n"
34558 " guestfs_zerofree (guestfs_h *g,\n"
34559 " const char *device);\n"
34563 #: ../src/guestfs-actions.pod:8269
34564 msgid "guestfs_zfgrep"
34565 msgstr "guestfs_zfgrep"
34568 #: ../src/guestfs-actions.pod:8271
34572 " guestfs_zfgrep (guestfs_h *g,\n"
34573 " const char *pattern,\n"
34574 " const char *path);\n"
34578 " guestfs_zfgrep (guestfs_h *g,\n"
34579 " const char *pattern,\n"
34580 " const char *path);\n"
34584 #: ../src/guestfs-actions.pod:8288
34585 msgid "guestfs_zfgrepi"
34586 msgstr "guestfs_zfgrepi"
34589 #: ../src/guestfs-actions.pod:8290
34593 " guestfs_zfgrepi (guestfs_h *g,\n"
34594 " const char *pattern,\n"
34595 " const char *path);\n"
34599 " guestfs_zfgrepi (guestfs_h *g,\n"
34600 " const char *pattern,\n"
34601 " const char *path);\n"
34605 #: ../src/guestfs-actions.pod:8307
34606 msgid "guestfs_zfile"
34607 msgstr "guestfs_zfile"
34610 #: ../src/guestfs-actions.pod:8309
34614 " guestfs_zfile (guestfs_h *g,\n"
34615 " const char *meth,\n"
34616 " const char *path);\n"
34620 " guestfs_zfile (guestfs_h *g,\n"
34621 " const char *meth,\n"
34622 " const char *path);\n"
34626 #: ../src/guestfs-actions.pod:8314
34628 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
34633 #: ../src/guestfs-actions.pod:8326
34635 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
34640 #: ../src/guestfs-actions.pod:8334
34641 msgid "guestfs_zgrep"
34642 msgstr "guestfs_zgrep"
34645 #: ../src/guestfs-actions.pod:8336
34649 " guestfs_zgrep (guestfs_h *g,\n"
34650 " const char *regex,\n"
34651 " const char *path);\n"
34655 " guestfs_zgrep (guestfs_h *g,\n"
34656 " const char *regex,\n"
34657 " const char *path);\n"
34661 #: ../src/guestfs-actions.pod:8353
34662 msgid "guestfs_zgrepi"
34663 msgstr "guestfs_zgrepi"
34666 #: ../src/guestfs-actions.pod:8355
34670 " guestfs_zgrepi (guestfs_h *g,\n"
34671 " const char *regex,\n"
34672 " const char *path);\n"
34676 " guestfs_zgrepi (guestfs_h *g,\n"
34677 " const char *regex,\n"
34678 " const char *path);\n"
34682 #: ../src/guestfs-availability.pod:3
34687 #: ../src/guestfs-availability.pod:5
34689 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
34690 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
34691 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
34692 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
34693 "L</guestfs_aug_save> L</guestfs_aug_set>"
34697 #: ../src/guestfs-availability.pod:21
34702 #: ../src/guestfs-availability.pod:23
34703 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
34707 #: ../src/guestfs-availability.pod:26
34712 #: ../src/guestfs-availability.pod:28
34713 msgid "The following functions: L</guestfs_grub_install>"
34717 #: ../src/guestfs-availability.pod:31
34719 msgstr "B<inotify>"
34722 #: ../src/guestfs-availability.pod:33
34724 "The following functions: L</guestfs_inotify_add_watch> L</"
34725 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
34726 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
34730 #: ../src/guestfs-availability.pod:41
34731 msgid "B<linuxfsuuid>"
34732 msgstr "B<linuxfsuuid>"
34735 #: ../src/guestfs-availability.pod:43
34737 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
34738 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
34742 #: ../src/guestfs-availability.pod:50
34743 msgid "B<linuxmodules>"
34744 msgstr "B<linuxmodules>"
34747 #: ../src/guestfs-availability.pod:52
34748 msgid "The following functions: L</guestfs_modprobe>"
34752 #: ../src/guestfs-availability.pod:55
34753 msgid "B<linuxxattrs>"
34754 msgstr "B<linuxxattrs>"
34757 #: ../src/guestfs-availability.pod:57
34759 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
34760 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
34761 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
34762 "guestfs_setxattr>"
34766 #: ../src/guestfs-availability.pod:68
34771 #: ../src/guestfs-availability.pod:70
34773 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
34774 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
34775 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
34779 #: ../src/guestfs-availability.pod:79
34784 #: ../src/guestfs-availability.pod:81
34786 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
34787 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
34788 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
34789 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
34790 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
34791 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
34792 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
34796 #: ../src/guestfs-availability.pod:104
34801 #: ../src/guestfs-availability.pod:106
34803 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
34804 "guestfs_mknod_b> L</guestfs_mknod_c>"
34808 #: ../src/guestfs-availability.pod:112
34813 #: ../src/guestfs-availability.pod:114
34814 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
34818 #: ../src/guestfs-availability.pod:117
34819 msgid "B<ntfsprogs>"
34820 msgstr "B<ntfsprogs>"
34823 #: ../src/guestfs-availability.pod:119
34825 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
34826 "L</guestfs_ntfsresize_size>"
34830 #: ../src/guestfs-availability.pod:124
34831 msgid "B<realpath>"
34832 msgstr "B<realpath>"
34835 #: ../src/guestfs-availability.pod:126
34836 msgid "The following functions: L</guestfs_realpath>"
34840 #: ../src/guestfs-availability.pod:129
34845 #: ../src/guestfs-availability.pod:131
34847 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
34848 "guestfs_scrub_freespace>"
34852 #: ../src/guestfs-availability.pod:136
34854 msgstr "B<selinux>"
34857 #: ../src/guestfs-availability.pod:138
34858 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
34862 #: ../src/guestfs-availability.pod:142
34867 #: ../src/guestfs-availability.pod:144
34868 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
34872 #: ../src/guestfs-availability.pod:148
34873 msgid "B<zerofree>"
34874 msgstr "B<zerofree>"
34877 #: ../src/guestfs-availability.pod:150
34878 msgid "The following functions: L</guestfs_zerofree>"
34882 #: ../src/guestfs-structs.pod:1
34883 msgid "guestfs_int_bool"
34887 #: ../src/guestfs-structs.pod:3
34890 " struct guestfs_int_bool {\n"
34898 #: ../src/guestfs-structs.pod:8
34901 " struct guestfs_int_bool_list {\n"
34902 " uint32_t len; /* Number of elements in list. */\n"
34903 " struct guestfs_int_bool *val; /* Elements. */\n"
34909 #: ../src/guestfs-structs.pod:13
34912 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34913 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
34918 #: ../src/guestfs-structs.pod:16
34919 msgid "guestfs_lvm_pv"
34923 #: ../src/guestfs-structs.pod:18
34926 " struct guestfs_lvm_pv {\n"
34927 " char *pv_name;\n"
34928 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34929 " char pv_uuid[32];\n"
34931 " uint64_t pv_size;\n"
34932 " uint64_t dev_size;\n"
34933 " uint64_t pv_free;\n"
34934 " uint64_t pv_used;\n"
34935 " char *pv_attr;\n"
34936 " int64_t pv_pe_count;\n"
34937 " int64_t pv_pe_alloc_count;\n"
34938 " char *pv_tags;\n"
34939 " uint64_t pe_start;\n"
34940 " int64_t pv_mda_count;\n"
34941 " uint64_t pv_mda_free;\n"
34947 #: ../src/guestfs-structs.pod:36
34950 " struct guestfs_lvm_pv_list {\n"
34951 " uint32_t len; /* Number of elements in list. */\n"
34952 " struct guestfs_lvm_pv *val; /* Elements. */\n"
34958 #: ../src/guestfs-structs.pod:41
34961 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
34962 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
34967 #: ../src/guestfs-structs.pod:44
34968 msgid "guestfs_lvm_vg"
34972 #: ../src/guestfs-structs.pod:46
34975 " struct guestfs_lvm_vg {\n"
34976 " char *vg_name;\n"
34977 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34978 " char vg_uuid[32];\n"
34980 " char *vg_attr;\n"
34981 " uint64_t vg_size;\n"
34982 " uint64_t vg_free;\n"
34983 " char *vg_sysid;\n"
34984 " uint64_t vg_extent_size;\n"
34985 " int64_t vg_extent_count;\n"
34986 " int64_t vg_free_count;\n"
34987 " int64_t max_lv;\n"
34988 " int64_t max_pv;\n"
34989 " int64_t pv_count;\n"
34990 " int64_t lv_count;\n"
34991 " int64_t snap_count;\n"
34992 " int64_t vg_seqno;\n"
34993 " char *vg_tags;\n"
34994 " int64_t vg_mda_count;\n"
34995 " uint64_t vg_mda_free;\n"
35001 #: ../src/guestfs-structs.pod:69
35004 " struct guestfs_lvm_vg_list {\n"
35005 " uint32_t len; /* Number of elements in list. */\n"
35006 " struct guestfs_lvm_vg *val; /* Elements. */\n"
35012 #: ../src/guestfs-structs.pod:74
35015 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
35016 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
35021 #: ../src/guestfs-structs.pod:77
35022 msgid "guestfs_lvm_lv"
35026 #: ../src/guestfs-structs.pod:79
35029 " struct guestfs_lvm_lv {\n"
35030 " char *lv_name;\n"
35031 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35032 " char lv_uuid[32];\n"
35033 " char *lv_attr;\n"
35034 " int64_t lv_major;\n"
35035 " int64_t lv_minor;\n"
35036 " int64_t lv_kernel_major;\n"
35037 " int64_t lv_kernel_minor;\n"
35038 " uint64_t lv_size;\n"
35039 " int64_t seg_count;\n"
35041 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
35042 " float snap_percent;\n"
35043 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
35044 " float copy_percent;\n"
35045 " char *move_pv;\n"
35046 " char *lv_tags;\n"
35047 " char *mirror_log;\n"
35048 " char *modules;\n"
35054 #: ../src/guestfs-structs.pod:101
35057 " struct guestfs_lvm_lv_list {\n"
35058 " uint32_t len; /* Number of elements in list. */\n"
35059 " struct guestfs_lvm_lv *val; /* Elements. */\n"
35065 #: ../src/guestfs-structs.pod:106
35068 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
35069 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
35074 #: ../src/guestfs-structs.pod:111
35077 " struct guestfs_stat {\n"
35081 " int64_t nlink;\n"
35086 " int64_t blksize;\n"
35087 " int64_t blocks;\n"
35088 " int64_t atime;\n"
35089 " int64_t mtime;\n"
35090 " int64_t ctime;\n"
35096 #: ../src/guestfs-structs.pod:127
35099 " struct guestfs_stat_list {\n"
35100 " uint32_t len; /* Number of elements in list. */\n"
35101 " struct guestfs_stat *val; /* Elements. */\n"
35107 #: ../src/guestfs-structs.pod:132
35110 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
35111 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
35116 #: ../src/guestfs-structs.pod:137
35119 " struct guestfs_statvfs {\n"
35120 " int64_t bsize;\n"
35121 " int64_t frsize;\n"
35122 " int64_t blocks;\n"
35123 " int64_t bfree;\n"
35124 " int64_t bavail;\n"
35125 " int64_t files;\n"
35126 " int64_t ffree;\n"
35127 " int64_t favail;\n"
35130 " int64_t namemax;\n"
35136 #: ../src/guestfs-structs.pod:151
35139 " struct guestfs_statvfs_list {\n"
35140 " uint32_t len; /* Number of elements in list. */\n"
35141 " struct guestfs_statvfs *val; /* Elements. */\n"
35147 #: ../src/guestfs-structs.pod:156
35150 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
35151 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
35156 #: ../src/guestfs-structs.pod:159
35157 msgid "guestfs_dirent"
35161 #: ../src/guestfs-structs.pod:161
35164 " struct guestfs_dirent {\n"
35173 #: ../src/guestfs-structs.pod:167
35176 " struct guestfs_dirent_list {\n"
35177 " uint32_t len; /* Number of elements in list. */\n"
35178 " struct guestfs_dirent *val; /* Elements. */\n"
35184 #: ../src/guestfs-structs.pod:172
35187 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
35188 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
35193 #: ../src/guestfs-structs.pod:177
35196 " struct guestfs_version {\n"
35197 " int64_t major;\n"
35198 " int64_t minor;\n"
35199 " int64_t release;\n"
35206 #: ../src/guestfs-structs.pod:184
35209 " struct guestfs_version_list {\n"
35210 " uint32_t len; /* Number of elements in list. */\n"
35211 " struct guestfs_version *val; /* Elements. */\n"
35217 #: ../src/guestfs-structs.pod:189
35220 " void guestfs_free_version (struct guestfs_free_version *);\n"
35221 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
35226 #: ../src/guestfs-structs.pod:192
35227 msgid "guestfs_xattr"
35231 #: ../src/guestfs-structs.pod:194
35234 " struct guestfs_xattr {\n"
35235 " char *attrname;\n"
35236 " /* The next two fields describe a byte array. */\n"
35237 " uint32_t attrval_len;\n"
35238 " char *attrval;\n"
35244 #: ../src/guestfs-structs.pod:201
35247 " struct guestfs_xattr_list {\n"
35248 " uint32_t len; /* Number of elements in list. */\n"
35249 " struct guestfs_xattr *val; /* Elements. */\n"
35255 #: ../src/guestfs-structs.pod:206
35258 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
35259 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
35264 #: ../src/guestfs-structs.pod:209
35265 msgid "guestfs_inotify_event"
35269 #: ../src/guestfs-structs.pod:211
35272 " struct guestfs_inotify_event {\n"
35273 " int64_t in_wd;\n"
35274 " uint32_t in_mask;\n"
35275 " uint32_t in_cookie;\n"
35276 " char *in_name;\n"
35282 #: ../src/guestfs-structs.pod:218
35285 " struct guestfs_inotify_event_list {\n"
35286 " uint32_t len; /* Number of elements in list. */\n"
35287 " struct guestfs_inotify_event *val; /* Elements. */\n"
35293 #: ../src/guestfs-structs.pod:223
35296 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
35297 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
35302 #: ../src/guestfs-structs.pod:226
35303 msgid "guestfs_partition"
35307 #: ../src/guestfs-structs.pod:228
35310 " struct guestfs_partition {\n"
35311 " int32_t part_num;\n"
35312 " uint64_t part_start;\n"
35313 " uint64_t part_end;\n"
35314 " uint64_t part_size;\n"
35320 #: ../src/guestfs-structs.pod:235
35323 " struct guestfs_partition_list {\n"
35324 " uint32_t len; /* Number of elements in list. */\n"
35325 " struct guestfs_partition *val; /* Elements. */\n"
35331 #: ../src/guestfs-structs.pod:240
35334 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
35335 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
35340 #: ../src/guestfs-structs.pod:243
35341 msgid "guestfs_application"
35345 #: ../src/guestfs-structs.pod:245
35348 " struct guestfs_application {\n"
35349 " char *app_name;\n"
35350 " char *app_display_name;\n"
35351 " int32_t app_epoch;\n"
35352 " char *app_version;\n"
35353 " char *app_release;\n"
35354 " char *app_install_path;\n"
35355 " char *app_trans_path;\n"
35356 " char *app_publisher;\n"
35357 " char *app_url;\n"
35358 " char *app_source_package;\n"
35359 " char *app_summary;\n"
35360 " char *app_description;\n"
35366 #: ../src/guestfs-structs.pod:260
35369 " struct guestfs_application_list {\n"
35370 " uint32_t len; /* Number of elements in list. */\n"
35371 " struct guestfs_application *val; /* Elements. */\n"
35377 #: ../src/guestfs-structs.pod:265
35380 " void guestfs_free_application (struct guestfs_free_application *);\n"
35381 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
35386 #: ../src/guestfs.pod:5
35387 msgid "guestfs - Library for accessing and modifying virtual machine images"
35389 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
35393 #: ../src/guestfs.pod:11
35396 " guestfs_h *g = guestfs_create ();\n"
35397 " guestfs_add_drive (g, \"guest.img\");\n"
35398 " guestfs_launch (g);\n"
35399 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35400 " guestfs_touch (g, \"/hello\");\n"
35401 " guestfs_umount (g, \"/\");\n"
35402 " guestfs_close (g);\n"
35405 " guestfs_h *g = guestfs_create ();\n"
35406 " guestfs_add_drive (g, \"guest.img\");\n"
35407 " guestfs_launch (g);\n"
35408 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35409 " guestfs_touch (g, \"/hello\");\n"
35410 " guestfs_umount (g, \"/\");\n"
35411 " guestfs_close (g);\n"
35415 #: ../src/guestfs.pod:25
35417 "Libguestfs is a library for accessing and modifying guest disk images. "
35418 "Amongst the things this is good for: making batch configuration changes to "
35419 "guests, getting disk used/free statistics (see also: virt-df), migrating "
35420 "between virtualization systems (see also: virt-p2v), performing partial "
35421 "backups, performing partial guest clones, cloning guests and changing "
35422 "registry/UUID/hostname info, and much else besides."
35426 #: ../src/guestfs.pod:33
35428 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
35429 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
35430 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
35435 #: ../src/guestfs.pod:38
35437 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
35438 "what filesystem is in each LV, etc.). It can also run commands in the "
35439 "context of the guest. Also you can access filesystems over FUSE."
35443 #: ../src/guestfs.pod:43
35445 "Libguestfs is a library that can be linked with C and C++ management "
35446 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
35447 "PHP, Erlang, Haskell or C#). You can also use it from shell scripts or the "
35452 #: ../src/guestfs.pod:48
35454 "You don't need to be root to use libguestfs, although obviously you do need "
35455 "enough permissions to access the disk images."
35459 #: ../src/guestfs.pod:51
35461 "Libguestfs is a large API because it can do many things. For a gentle "
35462 "introduction, please read the L</API OVERVIEW> section next."
35466 #: ../src/guestfs.pod:54
35468 "There are also some example programs in the L<guestfs-examples(3)> manual "
35473 #: ../src/guestfs.pod:57
35474 msgid "API OVERVIEW"
35478 #: ../src/guestfs.pod:59
35480 "This section provides a gentler overview of the libguestfs API. We also try "
35481 "to group API calls together, where that may not be obvious from reading "
35482 "about the individual calls in the main section of this manual."
35486 #: ../src/guestfs.pod:64
35491 #: ../src/guestfs.pod:66
35493 "Before you can use libguestfs calls, you have to create a handle. Then you "
35494 "must add at least one disk image to the handle, followed by launching the "
35495 "handle, then performing whatever operations you want, and finally closing "
35496 "the handle. By convention we use the single letter C<g> for the name of the "
35497 "handle variable, although of course you can use any name you want."
35501 #: ../src/guestfs.pod:73
35502 msgid "The general structure of all libguestfs-using programs looks like this:"
35506 #: ../src/guestfs.pod:76
35509 " guestfs_h *g = guestfs_create ();\n"
35512 " guestfs_h *g = guestfs_create ();\n"
35516 #: ../src/guestfs.pod:78
35519 " /* Call guestfs_add_drive additional times if there are\n"
35520 " * multiple disk images.\n"
35522 " guestfs_add_drive (g, \"guest.img\");\n"
35527 #: ../src/guestfs.pod:83
35530 " /* Most manipulation calls won't work until you've launched\n"
35531 " * the handle 'g'. You have to do this _after_ adding drives\n"
35532 " * and _before_ other commands.\n"
35534 " guestfs_launch (g);\n"
35539 #: ../src/guestfs.pod:89
35542 " /* Now you can examine what partitions, LVs etc are available.\n"
35544 " char **partitions = guestfs_list_partitions (g);\n"
35545 " char **logvols = guestfs_lvs (g);\n"
35548 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
35550 " char **partitions = guestfs_list_partitions (g);\n"
35551 " char **logvols = guestfs_lvs (g);\n"
35555 #: ../src/guestfs.pod:94
35558 " /* To access a filesystem in the image, you must mount it.\n"
35560 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35563 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
35565 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35569 #: ../src/guestfs.pod:98
35572 " /* Now you can perform filesystem actions on the guest\n"
35575 " guestfs_touch (g, \"/hello\");\n"
35578 " /* Тепер ви можете виконувати дії з файловою системою на\n"
35579 " * образі диска операційної системи.\n"
35581 " guestfs_touch (g, \"/hello\");\n"
35585 #: ../src/guestfs.pod:103
35588 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
35589 " * it is done automatically when you close the handle. See\n"
35590 " * discussion of autosync in this page.\n"
35592 " guestfs_sync (g);\n"
35597 #: ../src/guestfs.pod:109
35600 " /* Close the handle 'g'. */\n"
35601 " guestfs_close (g);\n"
35604 " /* Закрити дескриптор 'g'. */\n"
35605 " guestfs_close (g);\n"
35609 #: ../src/guestfs.pod:112
35611 "The code above doesn't include any error checking. In real code you should "
35612 "check return values carefully for errors. In general all functions that "
35613 "return integers return C<-1> on error, and all functions that return "
35614 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
35615 "how to handle errors, and consult the documentation for each function call "
35616 "below to see precisely how they return error indications. See L<guestfs-"
35617 "examples(3)> for fully worked examples."
35621 #: ../src/guestfs.pod:121
35622 msgid "DISK IMAGES"
35623 msgstr "ОБРАЗИ ДИСКІВ"
35626 #: ../src/guestfs.pod:123
35628 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
35629 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
35630 "actual block device, or simply an empty file of zeroes that you have created "
35631 "through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
35636 #: ../src/guestfs.pod:129
35638 "The call you should use in modern code for adding drives is L</"
35639 "guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
35640 "specifying that the format is raw, do:"
35644 #: ../src/guestfs.pod:133
35647 " guestfs_add_drive_opts (g, filename,\n"
35648 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35652 " guestfs_add_drive_opts (g, filename,\n"
35653 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35658 #: ../src/guestfs.pod:137
35659 msgid "You can add a disk read-only using:"
35660 msgstr "Ви можете додати диск у режимі лише читання:"
35663 #: ../src/guestfs.pod:139
35666 " guestfs_add_drive_opts (g, filename,\n"
35667 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35668 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35672 " guestfs_add_drive_opts (g, filename,\n"
35673 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35674 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35679 #: ../src/guestfs.pod:144
35681 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
35682 "libguestfs won't modify the file."
35686 #: ../src/guestfs.pod:147
35688 "Be extremely cautious if the disk image is in use, eg. if it is being used "
35689 "by a virtual machine. Adding it read-write will almost certainly cause disk "
35690 "corruption, but adding it read-only is safe."
35694 #: ../src/guestfs.pod:151
35696 "You must add at least one disk image, and you may add multiple disk images. "
35697 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
35698 "first one you added), C</dev/sdb> (for the second one you added), etc."
35702 #: ../src/guestfs.pod:156
35704 "Once L</guestfs_launch> has been called you cannot add any more images. You "
35705 "can call L</guestfs_list_devices> to get a list of the device names, in the "
35706 "order that you added them. See also L</BLOCK DEVICE NAMING> below."
35710 #: ../src/guestfs.pod:161
35712 msgstr "МОНТУВАННЯ"
35715 #: ../src/guestfs.pod:163
35717 "Before you can read or write files, create directories and so on in a disk "
35718 "image that contains filesystems, you have to mount those filesystems using "
35719 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that "
35720 "a disk image contains (for example) one partition with a filesystem on that "
35721 "partition, then you can mount it directly:"
35725 #: ../src/guestfs.pod:170
35728 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35731 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35735 #: ../src/guestfs.pod:172
35737 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
35738 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
35739 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
35740 "that these are libguestfs virtual devices, and are nothing to do with host "
35745 #: ../src/guestfs.pod:178
35747 "If you are given a disk image and you don't know what it contains then you "
35748 "have to find out. Libguestfs can do that too: use L</"
35749 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
35750 "LVs, and either try mounting each to see what is mountable, or else examine "
35751 "them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
35752 "filesystems, use L</guestfs_list_filesystems>."
35756 #: ../src/guestfs.pod:186
35758 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
35759 "L</INSPECTION> below). But you might find it easier to look at higher level "
35760 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
35764 #: ../src/guestfs.pod:191
35766 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
35767 "several other variations of the C<guestfs_mount_*> call."
35771 #: ../src/guestfs.pod:194
35772 msgid "FILESYSTEM ACCESS AND MODIFICATION"
35773 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
35776 #: ../src/guestfs.pod:196
35778 "The majority of the libguestfs API consists of fairly low-level calls for "
35779 "accessing and modifying the files, directories, symlinks etc on mounted "
35780 "filesystems. There are over a hundred such calls which you can find listed "
35781 "in detail below in this man page, and we don't even pretend to cover them "
35782 "all in this overview."
35786 #: ../src/guestfs.pod:202
35788 "Specify filenames as full paths, starting with C<\"/\"> and including the "
35791 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
35792 "точкою монтування."
35795 #: ../src/guestfs.pod:205
35797 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
35798 "the file called C<\"etc/passwd\"> then you could do:"
35800 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
35801 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
35805 #: ../src/guestfs.pod:208
35808 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35811 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35815 #: ../src/guestfs.pod:210
35817 "This would return C<data> as a newly allocated buffer containing the full "
35818 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
35819 "or C<NULL> if there was an error."
35823 #: ../src/guestfs.pod:214
35825 "As another example, to create a top-level directory on that filesystem "
35826 "called C<\"var\"> you would do:"
35830 #: ../src/guestfs.pod:217
35833 " guestfs_mkdir (g, \"/var\");\n"
35836 " guestfs_mkdir (g, \"/var\");\n"
35840 #: ../src/guestfs.pod:219
35841 msgid "To create a symlink you could do:"
35842 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
35845 #: ../src/guestfs.pod:221
35848 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35849 " \"/etc/rc3.d/S30portmap\");\n"
35852 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35853 " \"/etc/rc3.d/S30portmap\");\n"
35857 #: ../src/guestfs.pod:224
35859 "Libguestfs will reject attempts to use relative paths and there is no "
35860 "concept of a current working directory."
35864 #: ../src/guestfs.pod:227
35866 "Libguestfs can return errors in many situations: for example if the "
35867 "filesystem isn't writable, or if a file or directory that you requested "
35868 "doesn't exist. If you are using the C API (documented here) you have to "
35869 "check for those error conditions after each call. (Other language bindings "
35870 "turn these errors into exceptions)."
35874 #: ../src/guestfs.pod:233
35876 "File writes are affected by the per-handle umask, set by calling L</"
35877 "guestfs_umask> and defaulting to 022. See L</UMASK>."
35881 #: ../src/guestfs.pod:236
35882 msgid "PARTITIONING"
35883 msgstr "ПОДІЛ НА РОЗДІЛИ"
35886 #: ../src/guestfs.pod:238
35888 "Libguestfs contains API calls to read, create and modify partition tables on "
35893 #: ../src/guestfs.pod:241
35895 "In the common case where you want to create a single partition covering the "
35896 "whole disk, you should use the L</guestfs_part_disk> call:"
35900 #: ../src/guestfs.pod:245
35903 " const char *parttype = \"mbr\";\n"
35904 " if (disk_is_larger_than_2TB)\n"
35905 " parttype = \"gpt\";\n"
35906 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35909 " const char *parttype = \"mbr\";\n"
35910 " if (disk_is_larger_than_2TB)\n"
35911 " parttype = \"gpt\";\n"
35912 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35916 #: ../src/guestfs.pod:250
35918 "Obviously this effectively wipes anything that was on that disk image before."
35922 #: ../src/guestfs.pod:253
35927 #: ../src/guestfs.pod:255
35929 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
35930 "guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense unless "
35931 "you familiarize yourself with the concepts of physical volumes, volume "
35932 "groups and logical volumes."
35936 #: ../src/guestfs.pod:260
35938 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
35939 "tldp.org/HOWTO/LVM-HOWTO/>."
35943 #: ../src/guestfs.pod:263
35944 msgid "DOWNLOADING"
35945 msgstr "ОТРИМАННЯ ДАНИХ"
35948 #: ../src/guestfs.pod:265
35950 "Use L</guestfs_cat> to download small, text only files. This call is "
35951 "limited to files which are less than 2 MB and which cannot contain any ASCII "
35952 "NUL (C<\\0>) characters. However the API is very simple to use."
35956 #: ../src/guestfs.pod:269
35958 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
35959 "bit data, since it returns a (pointer, size) pair. However it is still "
35960 "limited to \"small\" files, less than 2 MB."
35964 #: ../src/guestfs.pod:273
35966 "L</guestfs_download> can be used to download any file, with no limits on "
35967 "content or size (even files larger than 4 GB)."
35971 #: ../src/guestfs.pod:276
35973 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
35977 #: ../src/guestfs.pod:279
35979 msgstr "ВИВАНТАЖЕННЯ"
35982 #: ../src/guestfs.pod:281
35984 "It's often the case that you want to write a file or files to the disk image."
35988 #: ../src/guestfs.pod:284
35990 "To write a small file with fixed content, use L</guestfs_write>. To create "
35991 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
35992 "guestfs_fallocate64> (with all disk blocks allocated). There are a variety "
35993 "of other functions for creating test files, for example L</guestfs_fill> and "
35994 "L</guestfs_fill_pattern>."
35998 #: ../src/guestfs.pod:290
36000 "To upload a single file, use L</guestfs_upload>. This call has no limits on "
36001 "file content or size (even files larger than 4 GB)."
36005 #: ../src/guestfs.pod:293
36007 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
36011 #: ../src/guestfs.pod:295
36013 "However the fastest way to upload I<large numbers of arbitrary files> is to "
36014 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
36015 ">), then attach this using L</guestfs_add_drive_ro>. If you add the drive "
36016 "in a predictable way (eg. adding it last after all other drives) then you "
36017 "can get the device name from L</guestfs_list_devices> and mount it directly "
36018 "using L</guestfs_mount_ro>. Note that squashfs images are sometimes non-"
36019 "portable between kernel versions, and they don't support labels or UUIDs. "
36020 "If you want to pre-build an image or you need to mount it using a label or "
36021 "UUID, use an ISO image instead."
36025 #: ../src/guestfs.pod:306
36027 msgstr "КОПІЮВАННЯ"
36030 #: ../src/guestfs.pod:308
36032 "There are various different commands for copying between files and devices "
36033 "and in and out of the guest filesystem. These are summarised in the table "
36038 #: ../src/guestfs.pod:314
36039 msgid "B<file> to B<file>"
36040 msgstr "B<файл> у B<файл>"
36043 #: ../src/guestfs.pod:316
36045 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
36046 "directories recursively."
36050 #: ../src/guestfs.pod:319
36052 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
36056 #: ../src/guestfs.pod:322
36058 #| msgid "B<file> to B<file>"
36059 msgid "B<file> to B<device>"
36060 msgstr "B<файл> у B<файл>"
36063 #: ../src/guestfs.pod:324
36065 #| msgid "B<file> to B<file>"
36066 msgid "B<device> to B<file>"
36067 msgstr "B<файл> у B<файл>"
36070 #: ../src/guestfs.pod:326
36072 #| msgid "B<file or device> to B<file or device>"
36073 msgid "B<device> to B<device>"
36074 msgstr "B<файл або пристрій> у B<файл або пристрій>"
36077 #: ../src/guestfs.pod:328
36079 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
36080 "guestfs_copy_device_to_device>."
36084 #: ../src/guestfs.pod:331
36085 msgid "Example: duplicate the contents of an LV:"
36089 #: ../src/guestfs.pod:333
36092 " guestfs_copy_device_to_device (g,\n"
36093 " \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36094 " /* -1 marks the end of the list of optional parameters */\n"
36100 #: ../src/guestfs.pod:338
36102 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
36103 "(C</dev/VG/Original>). To copy less than the whole source device, use the "
36104 "optional C<size> parameter:"
36108 #: ../src/guestfs.pod:342
36111 " guestfs_copy_device_to_device (g,\n"
36112 " \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36113 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
36119 #: ../src/guestfs.pod:347
36120 msgid "B<file on the host> to B<file or device>"
36124 #: ../src/guestfs.pod:349
36125 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
36129 #: ../src/guestfs.pod:351
36130 msgid "B<file or device> to B<file on the host>"
36134 #: ../src/guestfs.pod:353
36135 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
36139 #: ../src/guestfs.pod:357
36140 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
36144 #: ../src/guestfs.pod:359
36146 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
36147 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
36148 "appears you can only upload and download to files. However many Un*x-like "
36149 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
36150 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
36151 "and arbitrary file descriptor N."
36155 #: ../src/guestfs.pod:367
36156 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
36160 #: ../src/guestfs.pod:370
36163 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36166 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36170 #: ../src/guestfs.pod:372
36171 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
36175 #: ../src/guestfs.pod:374
36178 " char devfd[64];\n"
36179 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36180 " guestfs_tar_out (g, \"/\", devfd);\n"
36183 " char devfd[64];\n"
36184 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36185 " guestfs_tar_out (g, \"/\", devfd);\n"
36189 #: ../src/guestfs.pod:378
36190 msgid "LISTING FILES"
36191 msgstr "СПИСКИ ФАЙЛІВ"
36194 #: ../src/guestfs.pod:380
36196 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
36197 "L<guestfish(1)>-equivalent command C<ll>)."
36201 #: ../src/guestfs.pod:383
36203 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
36204 "programs, as a flat list of strings."
36208 #: ../src/guestfs.pod:386
36210 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
36211 "directory, plus additional information about each one. It is more "
36212 "equivalent to using the L<readdir(3)> call on a local filesystem."
36216 #: ../src/guestfs.pod:390
36218 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
36222 #: ../src/guestfs.pod:393
36223 msgid "RUNNING COMMANDS"
36224 msgstr "ВИКОНАННЯ КОМАНД"
36227 #: ../src/guestfs.pod:395
36229 "Although libguestfs is primarily an API for manipulating files inside guest "
36230 "images, we also provide some limited facilities for running commands inside "
36235 #: ../src/guestfs.pod:399
36236 msgid "There are many limitations to this:"
36240 #: ../src/guestfs.pod:405
36242 "The kernel version that the command runs under will be different from what "
36247 #: ../src/guestfs.pod:410
36249 "If the command needs to communicate with daemons, then most likely they "
36250 "won't be running."
36254 #: ../src/guestfs.pod:415
36255 msgid "The command will be running in limited memory."
36259 #: ../src/guestfs.pod:419
36261 "The network may not be available unless you enable it (see L</"
36262 "guestfs_set_network>)."
36266 #: ../src/guestfs.pod:424
36267 msgid "Only supports Linux guests (not Windows, BSD, etc)."
36271 #: ../src/guestfs.pod:428
36273 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
36277 #: ../src/guestfs.pod:433
36279 "For SELinux guests, you may need to enable SELinux and load policy first. "
36280 "See L</SELINUX> in this manpage."
36284 #: ../src/guestfs.pod:438
36286 "I<Security:> It is not safe to run commands from untrusted, possibly "
36287 "malicious guests. These commands may attempt to exploit your program by "
36288 "sending unexpected output. They could also try to exploit the Linux kernel "
36289 "or qemu provided by the libguestfs appliance. They could use the network "
36290 "provided by the libguestfs appliance to bypass ordinary network partitions "
36291 "and firewalls. They could use the elevated privileges or different SELinux "
36292 "context of your program to their advantage."
36296 #: ../src/guestfs.pod:447
36298 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
36299 "(a script which runs when the guest next boots normally), and to have this "
36300 "script run the commands you want in the normal context of the running guest, "
36301 "network security and so on. For information about other security issues, "
36302 "see L</SECURITY>."
36306 #: ../src/guestfs.pod:455
36308 "The two main API calls to run commands are L</guestfs_command> and L</"
36309 "guestfs_sh> (there are also variations)."
36313 #: ../src/guestfs.pod:458
36315 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
36316 "shell globs, redirections, etc will work."
36320 #: ../src/guestfs.pod:461
36321 msgid "CONFIGURATION FILES"
36322 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
36325 #: ../src/guestfs.pod:463
36327 "To read and write configuration files in Linux guest filesystems, we "
36328 "strongly recommend using Augeas. For example, Augeas understands how to "
36329 "read and write, say, a Linux shadow password file or X.org configuration "
36330 "file, and so avoids you having to write that code."
36334 #: ../src/guestfs.pod:468
36336 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
36337 "document Augeas itself here because there is excellent documentation on the "
36338 "L<http://augeas.net/> website."
36342 #: ../src/guestfs.pod:472
36344 "If you don't want to use Augeas (you fool!) then try calling L</"
36345 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
36350 #: ../src/guestfs.pod:476
36355 #: ../src/guestfs.pod:478
36357 "We support SELinux guests. To ensure that labeling happens correctly in "
36358 "SELinux guests, you need to enable SELinux and load the guest's policy:"
36362 #: ../src/guestfs.pod:486
36363 msgid "Before launching, do:"
36367 #: ../src/guestfs.pod:488
36370 " guestfs_set_selinux (g, 1);\n"
36373 " guestfs_set_selinux (g, 1);\n"
36377 #: ../src/guestfs.pod:492
36379 "After mounting the guest's filesystem(s), load the policy. This is best "
36380 "done by running the L<load_policy(8)> command in the guest itself:"
36384 #: ../src/guestfs.pod:496
36387 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
36390 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
36394 #: ../src/guestfs.pod:498
36396 "(Older versions of C<load_policy> require you to specify the name of the "
36401 #: ../src/guestfs.pod:503
36403 "Optionally, set the security context for the API. The correct security "
36404 "context to use can only be known by inspecting the guest. As an example:"
36408 #: ../src/guestfs.pod:507
36411 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
36414 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
36418 #: ../src/guestfs.pod:511
36419 msgid "This will work for running commands and editing existing files."
36423 #: ../src/guestfs.pod:513
36425 "When new files are created, you may need to label them explicitly, for "
36426 "example by running the external command C<restorecon pathname>."
36430 #: ../src/guestfs.pod:517
36435 #: ../src/guestfs.pod:519
36437 "Certain calls are affected by the current file mode creation mask (the "
36438 "\"umask\"). In particular ones which create files or directories, such as "
36439 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
36440 "either the default mode that the file is created with or modifies the mode "
36445 #: ../src/guestfs.pod:525
36447 "The default umask is C<022>, so files are created with modes such as C<0644> "
36448 "and directories with C<0755>."
36452 #: ../src/guestfs.pod:528
36454 "There are two ways to avoid being affected by umask. Either set umask to 0 "
36455 "(call C<guestfs_umask (g, 0)> early after launching). Or call L</"
36456 "guestfs_chmod> after creating each file or directory."
36460 #: ../src/guestfs.pod:532
36461 msgid "For more information about umask, see L<umask(2)>."
36465 #: ../src/guestfs.pod:536
36467 "Libguestfs allows you to access Linux guests which have been encrypted using "
36468 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
36469 "standard. This includes nearly all whole disk encryption systems used by "
36470 "modern Linux guests."
36474 #: ../src/guestfs.pod:542
36476 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
36477 "returns the string C<crypto_LUKS>)."
36481 #: ../src/guestfs.pod:545
36483 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
36484 "will require the passphrase!"
36488 #: ../src/guestfs.pod:548
36490 "Opening a LUKS device creates a new device mapper device called C</dev/"
36491 "mapper/mapname> (where C<mapname> is the string you supply to L</"
36492 "guestfs_luks_open>). Reads and writes to this mapper device are decrypted "
36493 "from and encrypted to the underlying block device respectively."
36497 #: ../src/guestfs.pod:554
36499 "LVM volume groups on the device can be made visible by calling L</"
36500 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical volume"
36501 "(s) can now be mounted in the usual way."
36505 #: ../src/guestfs.pod:558
36507 "Use the reverse process to close a LUKS device. Unmount any logical volumes "
36508 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
36509 "[\"/dev/VG\"])>. Then close the mapper device by calling L</"
36510 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
36511 "underlying encrypted block device)."
36515 #: ../src/guestfs.pod:565
36520 #: ../src/guestfs.pod:567
36522 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
36523 "contains operating systems, an install CD or a live CD. (These APIs used to "
36524 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
36525 "version 1.5.3 the most frequently used part of this library has been "
36526 "rewritten in C and moved into the core code)."
36530 #: ../src/guestfs.pod:574
36532 "Add all disks belonging to the unknown virtual machine and call L</"
36533 "guestfs_launch> in the usual way."
36537 #: ../src/guestfs.pod:577
36539 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
36540 "and certain heuristics, and returns a list of operating systems that were "
36541 "found. An empty list means none were found. A single element is the root "
36542 "filesystem of the operating system. For dual- or multi-boot guests, "
36543 "multiple roots can be returned, each one corresponding to a separate "
36544 "operating system. (Multi-boot virtual machines are extremely rare in the "
36545 "world of virtualization, but since this scenario can happen, we have built "
36546 "libguestfs to deal with it.)"
36550 #: ../src/guestfs.pod:586
36552 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
36553 "to get additional details about that operating system. For example, call L</"
36554 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
36555 "Windows and Linux-based operating systems respectively."
36559 #: ../src/guestfs.pod:592
36561 "Un*x-like and Linux-based operating systems usually consist of several "
36562 "filesystems which are mounted at boot time (for example, a separate boot "
36563 "partition mounted on C</boot>). The inspection rules are able to detect how "
36564 "filesystems correspond to mount points. Call "
36565 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
36566 "hash table like this example:"
36570 #: ../src/guestfs.pod:599
36573 " /boot => /dev/sda1\n"
36574 " / => /dev/vg_guest/lv_root\n"
36575 " /usr => /dev/vg_guest/lv_usr\n"
36578 " /boot => /dev/sda1\n"
36579 " / => /dev/vg_guest/lv_root\n"
36580 " /usr => /dev/vg_guest/lv_usr\n"
36584 #: ../src/guestfs.pod:603
36586 "The caller can then make calls to L</guestfs_mount_options> to mount the "
36587 "filesystems as suggested."
36591 #: ../src/guestfs.pod:606
36593 "Be careful to mount filesystems in the right order (eg. C</> before C</"
36594 "usr>). Sorting the keys of the hash by length, shortest first, should work."
36598 #: ../src/guestfs.pod:610
36600 "Inspection currently only works for some common operating systems. "
36601 "Contributors are welcome to send patches for other operating systems that we "
36602 "currently cannot detect."
36606 #: ../src/guestfs.pod:614
36608 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
36609 "for more details. The L</guestfs_inspect_os> function just ignores any "
36610 "encrypted devices."
36614 #: ../src/guestfs.pod:618
36616 "A note on the implementation: The call L</guestfs_inspect_os> performs "
36617 "inspection and caches the results in the guest handle. Subsequent calls to "
36618 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
36619 "read the disks. If you change the content of the guest disks, you can redo "
36620 "inspection by calling L</guestfs_inspect_os> again. (L</"
36621 "guestfs_inspect_list_applications> works a little differently from the other "
36622 "calls and does read the disks. See documentation for that function for "
36627 #: ../src/guestfs.pod:627
36628 msgid "INSPECTING INSTALL DISKS"
36632 #: ../src/guestfs.pod:629
36634 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
36639 #: ../src/guestfs.pod:632
36641 "Call L</guestfs_inspect_get_format> to return the format of the operating "
36642 "system, which currently can be C<installed> (a regular operating system) or "
36643 "C<installer> (some sort of install disk)."
36647 #: ../src/guestfs.pod:636
36649 "Further information is available about the operating system that can be "
36650 "installed using the regular inspection APIs like L</"
36651 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
36655 #: ../src/guestfs.pod:641
36657 "Some additional information specific to installer disks is also available "
36658 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
36659 "guestfs_inspect_is_multipart> calls."
36663 #: ../src/guestfs.pod:646
36664 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
36668 #: ../src/guestfs.pod:648
36670 "Libguestfs can mount NTFS partitions. It does this using the L<http://www."
36671 "ntfs-3g.org/> driver."
36675 #: ../src/guestfs.pod:651
36676 msgid "DRIVE LETTERS AND PATHS"
36677 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
36680 #: ../src/guestfs.pod:653
36682 "DOS and Windows still use drive letters, and the filesystems are always "
36683 "treated as case insensitive by Windows itself, and therefore you might find "
36684 "a Windows configuration file referring to a path like C<c:\\windows"
36685 "\\system32>. When the filesystem is mounted in libguestfs, that directory "
36686 "might be referred to as C</WINDOWS/System32>."
36690 #: ../src/guestfs.pod:659
36692 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
36693 "L</guestfs_inspect_get_drive_mappings>)"
36697 #: ../src/guestfs.pod:662
36699 "Dealing with separator characters (backslash vs forward slash) is outside "
36700 "the scope of libguestfs, but usually a simple character replacement will "
36705 #: ../src/guestfs.pod:666
36707 "To resolve the case insensitivity of paths, call L</"
36708 "guestfs_case_sensitive_path>."
36712 #: ../src/guestfs.pod:669
36713 msgid "ACCESSING THE WINDOWS REGISTRY"
36714 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
36717 #: ../src/guestfs.pod:671
36719 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
36720 "files, through the library C<hivex> which is part of the libguestfs project "
36721 "although ships as a separate tarball. You have to locate and download the "
36722 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
36723 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
36724 "reg(1)> for more help on this issue."
36728 #: ../src/guestfs.pod:679
36729 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
36730 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
36733 #: ../src/guestfs.pod:681
36735 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
36736 "provide something which looks like a Linux symlink. The way it tries to do "
36737 "the rewriting is described here:"
36741 #: ../src/guestfs.pod:685
36743 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36746 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36750 #: ../src/guestfs.pod:687
36752 "The essential problem is that ntfs-3g simply does not have enough "
36753 "information to do a correct job. NTFS links can contain drive letters and "
36754 "references to external device GUIDs that ntfs-3g has no way of resolving. "
36755 "It is almost certainly the case that libguestfs callers should ignore what "
36756 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
36760 #: ../src/guestfs.pod:694
36762 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
36763 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
36764 "attribute, and read the raw reparse data from that (you can find the format "
36765 "documented in various places around the web)."
36769 #: ../src/guestfs.pod:699
36770 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
36774 #: ../src/guestfs.pod:701
36776 "There are other useful extended attributes that can be read from ntfs-3g "
36777 "filesystems (using L</guestfs_getxattr>). See:"
36781 #: ../src/guestfs.pod:704
36783 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36785 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36788 #: ../src/guestfs.pod:706
36789 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
36790 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
36793 #: ../src/guestfs.pod:708
36795 "Although we don't want to discourage you from using the C API, we will "
36796 "mention here that the same API is also available in other languages."
36800 #: ../src/guestfs.pod:711
36802 "The API is broadly identical in all supported languages. This means that "
36803 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
36804 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
36805 "OCaml. In other words, a straightforward, predictable isomorphism between "
36810 #: ../src/guestfs.pod:717
36812 "Error messages are automatically transformed into exceptions if the language "
36817 #: ../src/guestfs.pod:720
36819 "We don't try to \"object orientify\" parts of the API in OO languages, "
36820 "although contributors are welcome to write higher level APIs above what we "
36821 "provide in their favourite languages if they wish."
36825 #: ../src/guestfs.pod:726
36830 #: ../src/guestfs.pod:728
36832 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
36833 "identical to the C API. C++ classes and exceptions are not used."
36837 #: ../src/guestfs.pod:732
36842 #: ../src/guestfs.pod:734
36844 "The C# bindings are highly experimental. Please read the warnings at the "
36845 "top of C<csharp/Libguestfs.cs>."
36849 #: ../src/guestfs.pod:737
36854 #: ../src/guestfs.pod:739
36855 msgid "See L<guestfs-erlang(3)>."
36859 #: ../src/guestfs.pod:741
36861 msgstr "B<Haskell>"
36864 #: ../src/guestfs.pod:743
36866 "This is the only language binding that is working but incomplete. Only "
36867 "calls which return simple integers have been bound in Haskell, and we are "
36868 "looking for help to complete this binding."
36872 #: ../src/guestfs.pod:747
36877 #: ../src/guestfs.pod:749
36879 "Full documentation is contained in the Javadoc which is distributed with "
36880 "libguestfs. For examples, see L<guestfs-java(3)>."
36884 #: ../src/guestfs.pod:752
36889 #: ../src/guestfs.pod:754
36890 msgid "See L<guestfs-ocaml(3)>."
36891 msgstr "Див. L<guestfs-ocaml(3)>."
36894 #: ../src/guestfs.pod:756
36899 #: ../src/guestfs.pod:758
36900 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
36901 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
36904 #: ../src/guestfs.pod:760
36909 #: ../src/guestfs.pod:762
36911 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
36912 "the php-libguestfs package for your distribution."
36916 #: ../src/guestfs.pod:765
36917 msgid "The PHP binding only works correctly on 64 bit machines."
36921 #: ../src/guestfs.pod:767
36926 #: ../src/guestfs.pod:769
36927 msgid "See L<guestfs-python(3)>."
36928 msgstr "Див. L<guestfs-python(3)>."
36931 #: ../src/guestfs.pod:771
36936 #: ../src/guestfs.pod:773
36937 msgid "See L<guestfs-ruby(3)>."
36938 msgstr "Див. L<guestfs-ruby(3)>."
36941 #: ../src/guestfs.pod:775
36942 msgid "B<shell scripts>"
36943 msgstr "B<скрипти оболонки>"
36946 #: ../src/guestfs.pod:777
36947 msgid "See L<guestfish(1)>."
36948 msgstr "Див. L<guestfish(1)>."
36951 #: ../src/guestfs.pod:781
36952 msgid "LIBGUESTFS GOTCHAS"
36956 #: ../src/guestfs.pod:783
36958 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
36959 "system [...] that works in the way it is documented but is counterintuitive "
36960 "and almost invites mistakes.\""
36964 #: ../src/guestfs.pod:787
36966 "Since we developed libguestfs and the associated tools, there are several "
36967 "things we would have designed differently, but are now stuck with for "
36968 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
36969 "release, you can expect these to change. Beware of them."
36973 #: ../src/guestfs.pod:795
36974 msgid "Autosync / forgetting to sync."
36978 #: ../src/guestfs.pod:797
36980 "I<Update:> Autosync is enabled by default for all API users starting from "
36981 "libguestfs 1.5.24. This section only applies to older versions."
36985 #: ../src/guestfs.pod:800
36987 "When modifying a filesystem from C or another language, you B<must> unmount "
36988 "all filesystems and call L</guestfs_sync> explicitly before you close the "
36989 "libguestfs handle. You can also call:"
36993 #: ../src/guestfs.pod:804
36996 " guestfs_set_autosync (g, 1);\n"
36999 " guestfs_set_autosync (g, 1);\n"
37003 #: ../src/guestfs.pod:806
37005 "to have the unmount/sync done automatically for you when the handle 'g' is "
37006 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
37010 #: ../src/guestfs.pod:810
37012 "If you forget to do this, then it is entirely possible that your changes "
37013 "won't be written out, or will be partially written, or (very rarely) that "
37014 "you'll get disk corruption."
37018 #: ../src/guestfs.pod:814
37020 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
37021 "guestfish scripts that forget to sync will work just fine, which can make "
37022 "this very puzzling if you are trying to debug a problem."
37026 #: ../src/guestfs.pod:818
37027 msgid "Mount option C<-o sync> should not be the default."
37031 #: ../src/guestfs.pod:820
37033 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
37034 "libguestfs 1.13.16. This section only applies to older versions."
37038 #: ../src/guestfs.pod:823
37040 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
37041 "However C<-o sync> does not add any reliability benefit, but does have a "
37042 "very large performance impact."
37046 #: ../src/guestfs.pod:827
37048 "The work around is to use L</guestfs_mount_options> and set the mount "
37049 "options that you actually want to use."
37053 #: ../src/guestfs.pod:830
37054 msgid "Read-only should be the default."
37058 #: ../src/guestfs.pod:832
37060 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
37061 "specify I<--rw> if you want to make changes to the image."
37065 #: ../src/guestfs.pod:835
37066 msgid "This would reduce the potential to corrupt live VM images."
37070 #: ../src/guestfs.pod:837
37072 "Note that many filesystems change the disk when you just mount and unmount, "
37073 "even if you didn't perform any writes. You need to use L</"
37074 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
37078 #: ../src/guestfs.pod:841
37079 msgid "guestfish command line is hard to use."
37083 #: ../src/guestfs.pod:843
37085 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
37086 "examination). It tries to run a guestfish command C<disk.img> which doesn't "
37087 "exist, so it fails. In earlier versions of guestfish the error message was "
37088 "also unintuitive, but we have corrected this since. Like the Bourne shell, "
37089 "we should have used C<guestfish -c command> to run commands."
37093 #: ../src/guestfs.pod:850
37094 msgid "guestfish megabyte modifiers don't work right on all commands"
37098 #: ../src/guestfs.pod:852
37100 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
37101 "other modifiers). What guestfish actually does is to multiply the number "
37102 "part by the modifier part and pass the result to the C API. However this "
37103 "doesn't work for a few APIs which aren't expecting bytes, but are already "
37104 "expecting some other unit (eg. megabytes)."
37108 #: ../src/guestfs.pod:859
37109 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
37113 #: ../src/guestfs.pod:861
37116 " lvcreate LV VG 100M\n"
37119 " lvcreate LV VG 100M\n"
37123 #: ../src/guestfs.pod:863
37125 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
37126 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
37127 "megabytes * megabytes) logical volume. The error message you get from this "
37128 "is also a little obscure."
37132 #: ../src/guestfs.pod:868
37134 "This could be fixed in the generator by specially marking parameters and "
37135 "return values which take bytes or other units."
37139 #: ../src/guestfs.pod:871
37140 msgid "Ambiguity between devices and paths"
37144 #: ../src/guestfs.pod:873
37146 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
37147 "sdb2>) and a similar pathname. A file might just happen to be called "
37148 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
37152 #: ../src/guestfs.pod:878
37154 "In the current API we usually resolve this ambiguity by having two separate "
37155 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
37156 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
37157 "detecting if the path supplied begins with C</dev/>."
37161 #: ../src/guestfs.pod:884
37163 "To avoid both the ambiguity and the need to duplicate some calls, we could "
37164 "make paths/devices into structured names. One way to do this would be to "
37165 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
37166 "aspect of grub. Another way would be to use a structured type, equivalent "
37167 "to this OCaml type:"
37171 #: ../src/guestfs.pod:890
37174 " type path = Path of string | Device of int | Partition of int * int\n"
37179 #: ../src/guestfs.pod:892
37180 msgid "which would allow you to pass arguments like:"
37184 #: ../src/guestfs.pod:894
37187 " Path \"/foo/bar\"\n"
37188 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
37189 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
37190 " Path \"/dev/sdb2\" (* not a device *)\n"
37195 #: ../src/guestfs.pod:899
37197 "As you can see there are still problems to resolve even with this "
37198 "representation. Also consider how it might work in guestfish."
37202 #: ../src/guestfs.pod:904
37203 msgid "KEYS AND PASSPHRASES"
37204 msgstr "КЛЮЧІ І ПАРОЛІ"
37207 #: ../src/guestfs.pod:906
37209 "Certain libguestfs calls take a parameter that contains sensitive key "
37210 "material, passed in as a C string."
37214 #: ../src/guestfs.pod:909
37216 "In the future we would hope to change the libguestfs implementation so that "
37217 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
37218 "swap. However this is I<not> done at the moment, because of the complexity "
37219 "of such an implementation."
37223 #: ../src/guestfs.pod:914
37225 "Therefore you should be aware that any key parameter you pass to libguestfs "
37226 "might end up being written out to the swap partition. If this is a concern, "
37227 "scrub the swap partition or don't use libguestfs on encrypted devices."
37231 #: ../src/guestfs.pod:919
37232 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
37236 #: ../src/guestfs.pod:921
37238 "All high-level libguestfs actions are synchronous. If you want to use "
37239 "libguestfs asynchronously then you must create a thread."
37243 #: ../src/guestfs.pod:924
37245 "Only use the handle from a single thread. Either use the handle exclusively "
37246 "from one thread, or provide your own mutex so that two threads cannot issue "
37247 "calls on the same handle at the same time."
37251 #: ../src/guestfs.pod:928
37253 "See the graphical program guestfs-browser for one possible architecture for "
37254 "multithreaded programs using libvirt and libguestfs."
37258 #: ../src/guestfs.pod:931
37263 #: ../src/guestfs.pod:933
37265 "Libguestfs needs a supermin appliance, which it finds by looking along an "
37270 #: ../src/guestfs.pod:936
37272 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
37273 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
37277 #: ../src/guestfs.pod:939
37279 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
37280 "to change the directories that libguestfs will search in. The value is a "
37281 "colon-separated list of paths. The current directory is I<not> searched "
37282 "unless the path contains an empty element or C<.>. For example "
37283 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
37284 "then C</usr/lib/guestfs>."
37288 #: ../src/guestfs.pod:946
37289 msgid "QEMU WRAPPERS"
37293 #: ../src/guestfs.pod:948
37295 "If you want to compile your own qemu, run qemu from a non-standard location, "
37296 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
37301 #: ../src/guestfs.pod:952
37303 "There is one important rule to remember: you I<must C<exec qemu>> as the "
37304 "last command in the shell script (so that qemu replaces the shell and "
37305 "becomes the direct child of the libguestfs-using program). If you don't do "
37306 "this, then the qemu process won't be cleaned up correctly."
37310 #: ../src/guestfs.pod:957
37312 "Here is an example of a wrapper, where I have built my own copy of qemu from "
37317 #: ../src/guestfs.pod:960
37321 " qemudir=/home/rjones/d/qemu\n"
37322 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
37326 " qemudir=/home/rjones/d/qemu\n"
37327 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
37331 #: ../src/guestfs.pod:964
37333 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
37334 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
37339 #: ../src/guestfs.pod:968
37342 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
37345 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
37349 #: ../src/guestfs.pod:970
37351 "Note that libguestfs also calls qemu with the -help and -version options in "
37352 "order to determine features."
37356 #: ../src/guestfs.pod:973
37358 "Wrappers can also be used to edit the options passed to qemu. In the "
37359 "following example, the C<-machine ...> option (C<-machine> and the following "
37360 "argument) are removed from the command line and replaced with C<-machine pc,"
37361 "accel=tcg>. The while loop iterates over the options until it finds the "
37362 "right one to remove, putting the remaining options into the C<args> array."
37366 #: ../src/guestfs.pod:982
37370 " while [ $# -gt 0 ]; do\n"
37371 " case \"$1\" in\n"
37375 " args[i]=\"$1\"\n"
37384 #: ../src/guestfs.pod:994
37387 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
37392 #: ../src/guestfs.pod:996
37393 msgid "ATTACHING TO RUNNING DAEMONS"
37394 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
37397 #: ../src/guestfs.pod:998
37399 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
37400 "babies. Use with caution."
37404 #: ../src/guestfs.pod:1001
37406 "I<Note (2):> This section explains how to attach to a running daemon from a "
37407 "low level perspective. For most users, simply using virt tools such as "
37408 "L<guestfish(1)> with the I<--live> option will \"just work\"."
37412 #: ../src/guestfs.pod:1005
37413 msgid "Using guestfs_set_attach_method"
37414 msgstr "За допомогою guestfs_set_attach_method"
37417 #: ../src/guestfs.pod:1007
37419 "By calling L</guestfs_set_attach_method> you can change how the library "
37420 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
37421 "ARCHITECTURE> for some background)."
37425 #: ../src/guestfs.pod:1011
37427 "The normal attach method is C<appliance>, where a small appliance is created "
37428 "containing the daemon, and then the library connects to this."
37432 #: ../src/guestfs.pod:1014
37434 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
37435 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
37436 "daemon over the Unix domain socket."
37440 #: ../src/guestfs.pod:1018
37442 "The normal use for this is to connect to a running virtual machine that "
37443 "contains a C<guestfsd> daemon, and send commands so you can read and write "
37444 "files inside the live virtual machine."
37448 #: ../src/guestfs.pod:1022
37449 msgid "Using guestfs_add_domain with live flag"
37450 msgstr "За допомогою guestfs_add_domain з прапорцем live"
37453 #: ../src/guestfs.pod:1024
37455 "L</guestfs_add_domain> provides some help for getting the correct attach "
37456 "method. If you pass the C<live> option to this function, then (if the "
37457 "virtual machine is running) it will examine the libvirt XML looking for a "
37458 "virtio-serial channel to connect to:"
37462 #: ../src/guestfs.pod:1030
37469 " <channel type='unix'>\n"
37470 " <source mode='bind' path='/path/to/socket'/>\n"
37471 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37482 " <channel type='unix'>\n"
37483 " <source mode='bind' path='/path/to/socket'/>\n"
37484 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37492 #: ../src/guestfs.pod:1042
37494 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
37495 "method to C<unix:/path/to/socket>."
37499 #: ../src/guestfs.pod:1045
37501 "Some of the libguestfs tools (including guestfish) support a I<--live> "
37502 "option which is passed through to L</guestfs_add_domain> thus allowing you "
37503 "to attach to and modify live virtual machines."
37507 #: ../src/guestfs.pod:1049
37509 "The virtual machine needs to have been set up beforehand so that it has the "
37510 "virtio-serial channel and so that guestfsd is running inside it."
37514 #: ../src/guestfs.pod:1053
37515 msgid "ABI GUARANTEE"
37516 msgstr "ГАРАНТІЯ ЩОДО ABI"
37519 #: ../src/guestfs.pod:1055
37521 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
37522 "actions as outlined in this section. Although we will deprecate some "
37523 "actions, for example if they get replaced by newer calls, we will keep the "
37524 "old actions forever. This allows you the developer to program in confidence "
37525 "against the libguestfs API."
37529 #: ../src/guestfs.pod:1061
37530 msgid "BLOCK DEVICE NAMING"
37531 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
37534 #: ../src/guestfs.pod:1063
37536 "In the kernel there is now quite a profusion of schemata for naming block "
37537 "devices (in this context, by I<block device> I mean a physical or virtual "
37538 "hard drive). The original Linux IDE driver used names starting with C</dev/"
37539 "hd*>. SCSI devices have historically used a different naming scheme, C</dev/"
37540 "sd*>. When the Linux kernel I<libata> driver became a popular replacement "
37541 "for the old IDE driver (particularly for SATA devices) those devices also "
37542 "used the C</dev/sd*> scheme. Additionally we now have virtual machines with "
37543 "paravirtualized drivers. This has created several different naming systems, "
37544 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
37548 #: ../src/guestfs.pod:1075
37550 "As discussed above, libguestfs uses a qemu appliance running an embedded "
37551 "Linux kernel to access block devices. We can run a variety of appliances "
37552 "based on a variety of Linux kernels."
37556 #: ../src/guestfs.pod:1079
37558 "This causes a problem for libguestfs because many API calls use device or "
37559 "partition names. Working scripts and the recipe (example) scripts that we "
37560 "make available over the internet could fail if the naming scheme changes."
37564 #: ../src/guestfs.pod:1084
37566 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
37567 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
37568 "required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
37569 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
37573 #: ../src/guestfs.pod:1090
37575 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
37576 "L</guestfs_list_partitions> and similar calls return the true names of the "
37577 "devices and partitions as known to the appliance."
37581 #: ../src/guestfs.pod:1095
37582 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
37586 #: ../src/guestfs.pod:1097
37588 "Usually this translation is transparent. However in some (very rare) cases "
37589 "you may need to know the exact algorithm. Such cases include where you use "
37590 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
37591 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
37595 #: ../src/guestfs.pod:1103
37597 "The algorithm is applied only to I<parameters> which are known to be either "
37598 "device or partition names. Return values from functions such as L</"
37599 "guestfs_list_devices> are never changed."
37603 #: ../src/guestfs.pod:1111
37604 msgid "Is the string a parameter which is a device or partition name?"
37608 #: ../src/guestfs.pod:1115
37609 msgid "Does the string begin with C</dev/sd>?"
37610 msgstr "Чи починається рядок з C</dev/sd>?"
37613 #: ../src/guestfs.pod:1119
37615 "Does the named device exist? If so, we use that device. However if I<not> "
37616 "then we continue with this algorithm."
37620 #: ../src/guestfs.pod:1124
37621 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
37625 #: ../src/guestfs.pod:1126
37626 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
37630 #: ../src/guestfs.pod:1128
37631 msgid "If that named device exists, use it. If not, continue."
37635 #: ../src/guestfs.pod:1132
37636 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
37640 #: ../src/guestfs.pod:1134
37641 msgid "If that named device exists, use it. If not, return an error."
37645 #: ../src/guestfs.pod:1138
37646 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
37650 #: ../src/guestfs.pod:1140
37652 "Although the standard naming scheme and automatic translation is useful for "
37653 "simple programs and guestfish scripts, for larger programs it is best not to "
37654 "rely on this mechanism."
37658 #: ../src/guestfs.pod:1144
37660 "Where possible for maximum future portability programs using libguestfs "
37661 "should use these future-proof techniques:"
37665 #: ../src/guestfs.pod:1151
37667 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
37668 "device names, and then use those names directly."
37672 #: ../src/guestfs.pod:1154
37674 "Since those device names exist by definition, they will never be translated."
37678 #: ../src/guestfs.pod:1159
37680 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
37681 "filesystem labels."
37685 #: ../src/guestfs.pod:1166
37687 "This section discusses security implications of using libguestfs, "
37688 "particularly with untrusted or malicious guests or disk images."
37692 #: ../src/guestfs.pod:1169
37693 msgid "GENERAL SECURITY CONSIDERATIONS"
37694 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
37697 #: ../src/guestfs.pod:1171
37699 "Be careful with any files or data that you download from a guest (by "
37700 "\"download\" we mean not just the L</guestfs_download> command but any "
37701 "command that reads files, filenames, directories or anything else from a "
37702 "disk image). An attacker could manipulate the data to fool your program "
37703 "into doing the wrong thing. Consider cases such as:"
37707 #: ../src/guestfs.pod:1181
37708 msgid "the data (file etc) not being present"
37712 #: ../src/guestfs.pod:1185
37713 msgid "being present but empty"
37717 #: ../src/guestfs.pod:1189
37718 msgid "being much larger than normal"
37722 #: ../src/guestfs.pod:1193
37723 msgid "containing arbitrary 8 bit data"
37727 #: ../src/guestfs.pod:1197
37728 msgid "being in an unexpected character encoding"
37732 #: ../src/guestfs.pod:1201
37733 msgid "containing homoglyphs."
37737 #: ../src/guestfs.pod:1205
37738 msgid "SECURITY OF MOUNTING FILESYSTEMS"
37739 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
37742 #: ../src/guestfs.pod:1207
37744 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
37745 "(VFS) module can sometimes be escalated into exploits by deliberately "
37746 "creating a malicious, malformed filesystem. These exploits are very severe "
37747 "for two reasons. Firstly there are very many filesystem drivers in the "
37748 "kernel, and many of them are infrequently used and not much developer "
37749 "attention has been paid to the code. Linux userspace helps potential "
37750 "crackers by detecting the filesystem type and automatically choosing the "
37751 "right VFS driver, even if that filesystem type is obscure or unexpected for "
37752 "the administrator. Secondly, a kernel-level exploit is like a local root "
37753 "exploit (worse in some ways), giving immediate and total access to the "
37754 "system right down to the hardware level."
37758 #: ../src/guestfs.pod:1220
37760 "That explains why you should never mount a filesystem from an untrusted "
37761 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
37762 "inside a qemu virtual machine, usually running as a non-root user. The "
37763 "attacker would need to write a filesystem which first exploited the kernel, "
37764 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
37765 "the libguestfs protocol, and finally to be as serious as the host kernel "
37766 "exploit it would need to escalate its privileges to root. This multi-step "
37767 "escalation, performed by a static piece of data, is thought to be extremely "
37768 "hard to do, although we never say 'never' about security issues."
37772 #: ../src/guestfs.pod:1231
37774 "In any case callers can reduce the attack surface by forcing the filesystem "
37775 "type when mounting (use L</guestfs_mount_vfs>)."
37779 #: ../src/guestfs.pod:1234
37780 msgid "PROTOCOL SECURITY"
37781 msgstr "ЗАХИСТ ПРОТОКОЛУ"
37784 #: ../src/guestfs.pod:1236
37786 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
37787 "defined upper message size. However a program that uses libguestfs must "
37788 "also take care - for example you can write a program that downloads a binary "
37789 "from a disk image and executes it locally, and no amount of protocol "
37790 "security will save you from the consequences."
37794 #: ../src/guestfs.pod:1242
37795 msgid "INSPECTION SECURITY"
37799 #: ../src/guestfs.pod:1244
37801 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
37802 "directly from the guest, and these could contain any 8 bit data. Callers "
37803 "should be careful to escape these before printing them to a structured file "
37804 "(for example, use HTML escaping if creating a web page)."
37808 #: ../src/guestfs.pod:1250
37810 "Guest configuration may be altered in unusual ways by the administrator of "
37811 "the virtual machine, and may not reflect reality (particularly for untrusted "
37812 "or actively malicious guests). For example we parse the hostname from "
37813 "configuration files like C</etc/sysconfig/network> that we find in the "
37814 "guest, but the guest administrator can easily manipulate these files to "
37815 "provide the wrong hostname."
37819 #: ../src/guestfs.pod:1258
37821 "The inspection API parses guest configuration using two external libraries: "
37822 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
37823 "designed to be robust in the face of malicious data, although denial of "
37824 "service attacks are still possible, for example with oversized configuration "
37829 #: ../src/guestfs.pod:1264
37830 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
37831 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
37834 #: ../src/guestfs.pod:1266
37836 "Be very cautious about running commands from the guest. By running a "
37837 "command in the guest, you are giving CPU time to a binary that you do not "
37838 "control, under the same user account as the library, albeit wrapped in qemu "
37839 "virtualization. More information and alternatives can be found in the "
37840 "section L</RUNNING COMMANDS>."
37844 #: ../src/guestfs.pod:1272
37845 msgid "CVE-2010-3851"
37846 msgstr "CVE-2010-3851"
37849 #: ../src/guestfs.pod:1274
37850 msgid "https://bugzilla.redhat.com/642934"
37851 msgstr "https://bugzilla.redhat.com/642934"
37854 #: ../src/guestfs.pod:1276
37856 "This security bug concerns the automatic disk format detection that qemu "
37857 "does on disk images."
37861 #: ../src/guestfs.pod:1279
37863 "A raw disk image is just the raw bytes, there is no header. Other disk "
37864 "images like qcow2 contain a special header. Qemu deals with this by looking "
37865 "for one of the known headers, and if none is found then assuming the disk "
37866 "image must be raw."
37870 #: ../src/guestfs.pod:1284
37872 "This allows a guest which has been given a raw disk image to write some "
37873 "other header. At next boot (or when the disk image is accessed by "
37874 "libguestfs) qemu would do autodetection and think the disk image format was, "
37875 "say, qcow2 based on the header written by the guest."
37879 #: ../src/guestfs.pod:1289
37881 "This in itself would not be a problem, but qcow2 offers many features, one "
37882 "of which is to allow a disk image to refer to another image (called the "
37883 "\"backing disk\"). It does this by placing the path to the backing disk "
37884 "into the qcow2 header. This path is not validated and could point to any "
37885 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
37886 "\"holes\" in the qcow2 disk image, which of course is completely under the "
37887 "control of the attacker."
37891 #: ../src/guestfs.pod:1297
37893 "In libguestfs this is rather hard to exploit except under two circumstances:"
37897 #: ../src/guestfs.pod:1304
37898 msgid "You have enabled the network or have opened the disk in write mode."
37902 #: ../src/guestfs.pod:1308
37904 "You are also running untrusted code from the guest (see L</RUNNING "
37909 #: ../src/guestfs.pod:1313
37911 "The way to avoid this is to specify the expected disk format when adding "
37912 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
37913 "should always do this if the disk is raw format, and it's a good idea for "
37918 #: ../src/guestfs.pod:1318
37920 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
37921 "format is fetched from libvirt and passed through."
37925 #: ../src/guestfs.pod:1321
37927 "For libguestfs tools, use the I<--format> command line parameter as "
37932 #: ../src/guestfs.pod:1324
37933 msgid "CONNECTION MANAGEMENT"
37934 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
37937 #: ../src/guestfs.pod:1326
37938 msgid "guestfs_h *"
37939 msgstr "guestfs_h *"
37942 #: ../src/guestfs.pod:1328
37944 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
37945 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
37946 "handle and release all resources used."
37950 #: ../src/guestfs.pod:1332
37952 "For information on using multiple handles and threads, see the section L</"
37953 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
37957 #: ../src/guestfs.pod:1335
37958 msgid "guestfs_create"
37959 msgstr "guestfs_create"
37962 #: ../src/guestfs.pod:1337
37965 " guestfs_h *guestfs_create (void);\n"
37968 " guestfs_h *guestfs_create (void);\n"
37972 #: ../src/guestfs.pod:1339
37973 msgid "Create a connection handle."
37974 msgstr "Створити дескриптор з’єднання."
37977 #: ../src/guestfs.pod:1341
37979 "On success this returns a non-NULL pointer to a handle. On error it returns "
37984 #: ../src/guestfs.pod:1344
37986 "You have to \"configure\" the handle after creating it. This includes "
37987 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
37988 "handle at least once."
37992 #: ../src/guestfs.pod:1348
37993 msgid "After configuring the handle, you have to call L</guestfs_launch>."
37997 #: ../src/guestfs.pod:1350
37999 "You may also want to configure error handling for the handle. See the L</"
38000 "ERROR HANDLING> section below."
38004 #: ../src/guestfs.pod:1353
38005 msgid "guestfs_close"
38006 msgstr "guestfs_close"
38009 #: ../src/guestfs.pod:1355
38012 " void guestfs_close (guestfs_h *g);\n"
38015 " void guestfs_close (guestfs_h *g);\n"
38019 #: ../src/guestfs.pod:1357
38020 msgid "This closes the connection handle and frees up all resources used."
38024 #: ../src/guestfs.pod:1359
38026 "If autosync was set on the handle and the handle was launched, then this "
38027 "implicitly calls various functions to unmount filesystems and sync the "
38028 "disk. See L</guestfs_set_autosync> for more details."
38032 #: ../src/guestfs.pod:1363
38033 msgid "If a close callback was set on the handle, then it is called."
38037 #: ../src/guestfs.pod:1365
38038 msgid "ERROR HANDLING"
38039 msgstr "ОБРОБКА ПОМИЛОК"
38042 #: ../src/guestfs.pod:1367
38044 "API functions can return errors. For example, almost all functions that "
38045 "return C<int> will return C<-1> to indicate an error."
38049 #: ../src/guestfs.pod:1370
38051 "Additional information is available for errors: an error message string and "
38052 "optionally an error number (errno) if the thing that failed was a system "
38057 #: ../src/guestfs.pod:1374
38059 "You can get at the additional information about the last error on the handle "
38060 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
38061 "up an error handler with L</guestfs_set_error_handler>."
38065 #: ../src/guestfs.pod:1379
38067 "When the handle is created, a default error handler is installed which "
38068 "prints the error message string to C<stderr>. For small short-running "
38069 "command line programs it is sufficient to do:"
38073 #: ../src/guestfs.pod:1383
38076 " if (guestfs_launch (g) == -1)\n"
38077 " exit (EXIT_FAILURE);\n"
38080 " if (guestfs_launch (g) == -1)\n"
38081 " exit (EXIT_FAILURE);\n"
38085 #: ../src/guestfs.pod:1386
38087 "since the default error handler will ensure that an error message has been "
38088 "printed to C<stderr> before the program exits."
38092 #: ../src/guestfs.pod:1389
38094 "For other programs the caller will almost certainly want to install an "
38095 "alternate error handler or do error handling in-line like this:"
38099 #: ../src/guestfs.pod:1392
38102 " /* This disables the default behaviour of printing errors\n"
38104 " guestfs_set_error_handler (g, NULL, NULL);\n"
38109 #: ../src/guestfs.pod:1396
38112 " if (guestfs_launch (g) == -1) {\n"
38113 " /* Examine the error message and print it etc. */\n"
38114 " char *msg = guestfs_last_error (g);\n"
38115 " int errnum = guestfs_last_errno (g);\n"
38116 " fprintf (stderr, \"%s\", msg);\n"
38117 " if (errnum != 0)\n"
38118 " fprintf (stderr, \": %s\", strerror (errnum));\n"
38119 " fprintf (stderr, \"\\n\");\n"
38126 #: ../src/guestfs.pod:1407
38128 "Out of memory errors are handled differently. The default action is to call "
38129 "L<abort(3)>. If this is undesirable, then you can set a handler using L</"
38130 "guestfs_set_out_of_memory_handler>."
38134 #: ../src/guestfs.pod:1411
38136 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
38137 "because there is no handle if this happens there is no way to get additional "
38138 "error information. However L</guestfs_create> is supposed to be a "
38139 "lightweight operation which can only fail because of insufficient memory (it "
38140 "returns NULL in this case)."
38144 #: ../src/guestfs.pod:1417
38145 msgid "guestfs_last_error"
38146 msgstr "guestfs_last_error"
38149 #: ../src/guestfs.pod:1419
38152 " const char *guestfs_last_error (guestfs_h *g);\n"
38155 " const char *guestfs_last_error (guestfs_h *g);\n"
38159 #: ../src/guestfs.pod:1421
38161 "This returns the last error message that happened on C<g>. If there has not "
38162 "been an error since the handle was created, then this returns C<NULL>."
38166 #: ../src/guestfs.pod:1425
38168 "The lifetime of the returned string is until the next error occurs, or L</"
38169 "guestfs_close> is called."
38173 #: ../src/guestfs.pod:1428
38174 msgid "guestfs_last_errno"
38175 msgstr "guestfs_last_errno"
38178 #: ../src/guestfs.pod:1430
38181 " int guestfs_last_errno (guestfs_h *g);\n"
38184 " int guestfs_last_errno (guestfs_h *g);\n"
38188 #: ../src/guestfs.pod:1432
38189 msgid "This returns the last error number (errno) that happened on C<g>."
38193 #: ../src/guestfs.pod:1434
38194 msgid "If successful, an errno integer not equal to zero is returned."
38198 #: ../src/guestfs.pod:1436
38200 "If no error, this returns 0. This call can return 0 in three situations:"
38204 #: ../src/guestfs.pod:1443
38205 msgid "There has not been any error on the handle."
38209 #: ../src/guestfs.pod:1447
38211 "There has been an error but the errno was meaningless. This corresponds to "
38212 "the case where the error did not come from a failed system call, but for "
38213 "some other reason."
38217 #: ../src/guestfs.pod:1453
38219 "There was an error from a failed system call, but for some reason the errno "
38220 "was not captured and returned. This usually indicates a bug in libguestfs."
38224 #: ../src/guestfs.pod:1459
38226 "Libguestfs tries to convert the errno from inside the applicance into a "
38227 "corresponding errno for the caller (not entirely trivial: the appliance "
38228 "might be running a completely different operating system from the library "
38229 "and error numbers are not standardized across Un*xen). If this could not be "
38230 "done, then the error is translated to C<EINVAL>. In practice this should "
38231 "only happen in very rare circumstances."
38235 #: ../src/guestfs.pod:1467
38236 msgid "guestfs_set_error_handler"
38237 msgstr "guestfs_set_error_handler"
38240 #: ../src/guestfs.pod:1469
38243 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38245 " const char *msg);\n"
38246 " void guestfs_set_error_handler (guestfs_h *g,\n"
38247 " guestfs_error_handler_cb cb,\n"
38248 " void *opaque);\n"
38251 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38253 " const char *msg);\n"
38254 " void guestfs_set_error_handler (guestfs_h *g,\n"
38255 " guestfs_error_handler_cb cb,\n"
38256 " void *opaque);\n"
38260 #: ../src/guestfs.pod:1476
38262 "The callback C<cb> will be called if there is an error. The parameters "
38263 "passed to the callback are an opaque data pointer and the error message "
38268 #: ../src/guestfs.pod:1480
38270 "C<errno> is not passed to the callback. To get that the callback must call "
38271 "L</guestfs_last_errno>."
38275 #: ../src/guestfs.pod:1483
38277 "Note that the message string C<msg> is freed as soon as the callback "
38278 "function returns, so if you want to stash it somewhere you must make your "
38283 #: ../src/guestfs.pod:1487
38284 msgid "The default handler prints messages on C<stderr>."
38288 #: ../src/guestfs.pod:1489
38289 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
38293 #: ../src/guestfs.pod:1491
38294 msgid "guestfs_get_error_handler"
38295 msgstr "guestfs_get_error_handler"
38298 #: ../src/guestfs.pod:1493
38301 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38302 " void **opaque_rtn);\n"
38305 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38306 " void **opaque_rtn);\n"
38310 #: ../src/guestfs.pod:1496
38311 msgid "Returns the current error handler callback."
38315 #: ../src/guestfs.pod:1498
38316 msgid "guestfs_set_out_of_memory_handler"
38317 msgstr "guestfs_set_out_of_memory_handler"
38320 #: ../src/guestfs.pod:1500
38323 " typedef void (*guestfs_abort_cb) (void);\n"
38324 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
38325 " guestfs_abort_cb);\n"
38330 #: ../src/guestfs.pod:1504
38332 "The callback C<cb> will be called if there is an out of memory situation. "
38333 "I<Note this callback must not return>."
38337 #: ../src/guestfs.pod:1507
38338 msgid "The default is to call L<abort(3)>."
38342 #: ../src/guestfs.pod:1509
38344 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
38348 #: ../src/guestfs.pod:1512
38349 msgid "guestfs_get_out_of_memory_handler"
38350 msgstr "guestfs_get_out_of_memory_handler"
38353 #: ../src/guestfs.pod:1514
38356 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
38359 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
38363 #: ../src/guestfs.pod:1516
38364 msgid "This returns the current out of memory handler."
38368 #: ../src/guestfs.pod:1518
38370 msgstr "ВИКЛИКИ API"
38373 #: ../src/guestfs.pod:1522
38378 #: ../src/guestfs.pod:1524
38383 #: ../src/guestfs.pod:1526
38384 msgid "AVAILABILITY"
38385 msgstr "ДОСТУПНІСТЬ"
38388 #: ../src/guestfs.pod:1528
38389 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
38390 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
38393 #: ../src/guestfs.pod:1530
38395 "Using L</guestfs_available> you can test availability of the following "
38396 "groups of functions. This test queries the appliance to see if the "
38397 "appliance you are currently using supports the functionality."
38401 #: ../src/guestfs.pod:1535
38402 msgid "@AVAILABILITY@"
38403 msgstr "@AVAILABILITY@"
38406 #: ../src/guestfs.pod:1537
38407 msgid "GUESTFISH supported COMMAND"
38411 #: ../src/guestfs.pod:1539
38413 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
38414 "prints out the available groups and whether they are supported by this build "
38415 "of libguestfs. Note however that you have to do C<run> first."
38419 #: ../src/guestfs.pod:1544
38420 msgid "SINGLE CALLS AT COMPILE TIME"
38424 #: ../src/guestfs.pod:1546
38426 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
38427 "function, such as:"
38431 #: ../src/guestfs.pod:1549
38434 " #define LIBGUESTFS_HAVE_DD 1\n"
38437 " #define LIBGUESTFS_HAVE_DD 1\n"
38441 #: ../src/guestfs.pod:1551
38442 msgid "if L</guestfs_dd> is available."
38446 #: ../src/guestfs.pod:1553
38448 "Before version 1.5.8, if you needed to test whether a single libguestfs "
38449 "function is available at compile time, we recommended using build tools such "
38450 "as autoconf or cmake. For example in autotools you could use:"
38454 #: ../src/guestfs.pod:1558
38457 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
38458 " AC_CHECK_FUNCS([guestfs_dd])\n"
38461 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
38462 " AC_CHECK_FUNCS([guestfs_dd])\n"
38466 #: ../src/guestfs.pod:1561
38468 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
38473 #: ../src/guestfs.pod:1564
38474 msgid "SINGLE CALLS AT RUN TIME"
38478 #: ../src/guestfs.pod:1566
38480 "Testing at compile time doesn't guarantee that a function really exists in "
38481 "the library. The reason is that you might be dynamically linked against a "
38482 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
38483 "This situation unfortunately results in a segmentation fault, which is a "
38484 "shortcoming of the C dynamic linking system itself."
38488 #: ../src/guestfs.pod:1573
38490 "You can use L<dlopen(3)> to test if a function is available at run time, as "
38491 "in this example program (note that you still need the compile time check as "
38496 #: ../src/guestfs.pod:1577
38499 " #include <stdio.h>\n"
38500 " #include <stdlib.h>\n"
38501 " #include <unistd.h>\n"
38502 " #include <dlfcn.h>\n"
38503 " #include <guestfs.h>\n"
38506 " #include <stdio.h>\n"
38507 " #include <stdlib.h>\n"
38508 " #include <unistd.h>\n"
38509 " #include <dlfcn.h>\n"
38510 " #include <guestfs.h>\n"
38514 #: ../src/guestfs.pod:1583
38519 " #ifdef LIBGUESTFS_HAVE_DD\n"
38521 " int has_function;\n"
38526 " #ifdef LIBGUESTFS_HAVE_DD\n"
38528 " int has_function;\n"
38532 #: ../src/guestfs.pod:1589
38535 " /* Test if the function guestfs_dd is really available. */\n"
38536 " dl = dlopen (NULL, RTLD_LAZY);\n"
38538 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
38539 " exit (EXIT_FAILURE);\n"
38541 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
38547 #: ../src/guestfs.pod:1598
38550 " if (!has_function)\n"
38551 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
38553 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
38554 " /* Now it's safe to call\n"
38555 " guestfs_dd (g, \"foo\", \"bar\");\n"
38559 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
38566 #: ../src/guestfs.pod:1611
38568 "You may think the above is an awful lot of hassle, and it is. There are "
38569 "other ways outside of the C linking system to ensure that this kind of "
38570 "incompatibility never arises, such as using package versioning:"
38574 #: ../src/guestfs.pod:1616
38577 " Requires: libguestfs >= 1.0.80\n"
38582 #: ../src/guestfs.pod:1618
38583 msgid "CALLS WITH OPTIONAL ARGUMENTS"
38587 #: ../src/guestfs.pod:1620
38589 "A recent feature of the API is the introduction of calls which take optional "
38590 "arguments. In C these are declared 3 ways. The main way is as a call which "
38591 "takes variable arguments (ie. C<...>), as in this example:"
38595 #: ../src/guestfs.pod:1625
38598 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38601 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38605 #: ../src/guestfs.pod:1627
38607 "Call this with a list of optional arguments, terminated by C<-1>. So to "
38608 "call with no optional arguments specified:"
38612 #: ../src/guestfs.pod:1630
38615 " guestfs_add_drive_opts (g, filename, -1);\n"
38618 " guestfs_add_drive_opts (g, filename, -1);\n"
38622 #: ../src/guestfs.pod:1632
38623 msgid "With a single optional argument:"
38627 #: ../src/guestfs.pod:1634
38630 " guestfs_add_drive_opts (g, filename,\n"
38631 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38635 " guestfs_add_drive_opts (g, filename,\n"
38636 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38641 #: ../src/guestfs.pod:1638
38646 #: ../src/guestfs.pod:1640
38649 " guestfs_add_drive_opts (g, filename,\n"
38650 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38651 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38655 " guestfs_add_drive_opts (g, filename,\n"
38656 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38657 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38662 #: ../src/guestfs.pod:1645
38664 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
38669 #: ../src/guestfs.pod:1648
38670 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
38674 #: ../src/guestfs.pod:1650
38676 "The second variant has the same name with the suffix C<_va>, which works the "
38677 "same way but takes a C<va_list>. See the C manual for details. For the "
38678 "example function, this is declared:"
38682 #: ../src/guestfs.pod:1654
38685 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38686 " va_list args);\n"
38689 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38690 " va_list args);\n"
38694 #: ../src/guestfs.pod:1657
38695 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
38699 #: ../src/guestfs.pod:1659
38701 "The third variant is useful where you need to construct these calls. You "
38702 "pass in a structure where you fill in the optional fields. The structure "
38703 "has a bitmask as the first element which you must set to indicate which "
38704 "fields you have filled in. For our example function the structure and call "
38709 #: ../src/guestfs.pod:1665
38712 " struct guestfs_add_drive_opts_argv {\n"
38713 " uint64_t bitmask;\n"
38715 " const char *format;\n"
38718 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38719 " const struct guestfs_add_drive_opts_argv *optargs);\n"
38722 " struct guestfs_add_drive_opts_argv {\n"
38723 " uint64_t bitmask;\n"
38725 " const char *format;\n"
38728 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38729 " const struct guestfs_add_drive_opts_argv *optargs);\n"
38733 #: ../src/guestfs.pod:1674
38734 msgid "You could call it like this:"
38738 #: ../src/guestfs.pod:1676
38741 " struct guestfs_add_drive_opts_argv optargs = {\n"
38742 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38743 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38744 " .readonly = 1,\n"
38745 " .format = \"qcow2\"\n"
38749 " struct guestfs_add_drive_opts_argv optargs = {\n"
38750 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38751 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38752 " .readonly = 1,\n"
38753 " .format = \"qcow2\"\n"
38758 #: ../src/guestfs.pod:1683
38761 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38764 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38768 #: ../src/guestfs.pod:1691
38769 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
38773 #: ../src/guestfs.pod:1696
38774 msgid "You do not need to fill in all fields of the structure."
38778 #: ../src/guestfs.pod:1700
38780 "There must be a one-to-one correspondence between fields of the structure "
38781 "that are filled in, and bits set in the bitmask."
38785 #: ../src/guestfs.pod:1705
38786 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
38790 #: ../src/guestfs.pod:1707
38792 "In other languages, optional arguments are expressed in the way that is "
38793 "natural for that language. We refer you to the language-specific "
38794 "documentation for more details on that."
38798 #: ../src/guestfs.pod:1711
38799 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
38803 #: ../src/guestfs.pod:1713
38804 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
38808 #: ../src/guestfs.pod:1715
38810 "B<Note:> This section documents the generic event mechanism introduced in "
38811 "libguestfs 1.10, which you should use in new code if possible. The old "
38812 "functions C<guestfs_set_log_message_callback>, "
38813 "C<guestfs_set_subprocess_quit_callback>, "
38814 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
38815 "C<guestfs_set_progress_callback> are no longer documented in this manual "
38816 "page. Because of the ABI guarantee, the old functions continue to work."
38820 #: ../src/guestfs.pod:1724
38822 "Handles generate events when certain things happen, such as log messages "
38823 "being generated, progress messages during long-running operations, or the "
38824 "handle being closed. The API calls described below let you register a "
38825 "callback to be called when events happen. You can register multiple "
38826 "callbacks (for the same, different or overlapping sets of events), and "
38827 "individually remove callbacks. If callbacks are not removed, then they "
38828 "remain in force until the handle is closed."
38832 #: ../src/guestfs.pod:1732
38834 "In the current implementation, events are only generated synchronously: that "
38835 "means that events (and hence callbacks) can only happen while you are in the "
38836 "middle of making another libguestfs call. The callback is called in the "
38841 #: ../src/guestfs.pod:1737
38843 "Events may contain a payload, usually nothing (void), an array of 64 bit "
38844 "unsigned integers, or a message buffer. Payloads are discussed later on."
38848 #: ../src/guestfs.pod:1741
38849 msgid "CLASSES OF EVENTS"
38853 #: ../src/guestfs.pod:1745
38854 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
38858 #: ../src/guestfs.pod:1748
38860 "The callback function will be called while the handle is being closed "
38861 "(synchronously from L</guestfs_close>)."
38865 #: ../src/guestfs.pod:1751
38867 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
38868 "handles that are open when the program exits. This means that this callback "
38869 "might be called indirectly from L<exit(3)>, which can cause unexpected "
38870 "problems in higher-level languages (eg. if your HLL interpreter has already "
38871 "been cleaned up by the time this is called, and if your callback then jumps "
38872 "into some HLL function)."
38876 #: ../src/guestfs.pod:1758
38878 "If no callback is registered: the handle is closed without any callback "
38883 #: ../src/guestfs.pod:1761
38884 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
38888 #: ../src/guestfs.pod:1764
38890 "The callback function will be called when the child process quits, either "
38891 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
38892 "corresponds to a transition from any state to the CONFIG state)."
38896 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
38897 msgid "If no callback is registered: the event is ignored."
38901 #: ../src/guestfs.pod:1770
38902 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
38906 #: ../src/guestfs.pod:1773
38908 "The callback function will be called when the child process becomes ready "
38909 "first time after it has been launched. (This corresponds to a transition "
38910 "from LAUNCHING to the READY state)."
38914 #: ../src/guestfs.pod:1779
38915 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
38919 #: ../src/guestfs.pod:1782
38921 "Some long-running operations can generate progress messages. If this "
38922 "callback is registered, then it will be called each time a progress message "
38923 "is generated (usually two seconds after the operation started, and three "
38924 "times per second thereafter until it completes, although the frequency may "
38925 "change in future versions)."
38929 #: ../src/guestfs.pod:1788
38931 "The callback receives in the payload four unsigned 64 bit numbers which are "
38932 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
38936 #: ../src/guestfs.pod:1791
38938 "The units of C<total> are not defined, although for some operations C<total> "
38939 "may relate in some way to the amount of data to be transferred (eg. in bytes "
38940 "or megabytes), and C<position> may be the portion which has been transferred."
38944 #: ../src/guestfs.pod:1796
38945 msgid "The only defined and stable parts of the API are:"
38949 #: ../src/guestfs.pod:1802
38951 "The callback can display to the user some type of progress bar or indicator "
38952 "which shows the ratio of C<position>:C<total>."
38956 #: ../src/guestfs.pod:1807
38957 msgid "0 E<lt>= C<position> E<lt>= C<total>"
38961 #: ../src/guestfs.pod:1811
38963 "If any progress notification is sent during a call, then a final progress "
38964 "notification is always sent when C<position> = C<total> (I<unless> the call "
38965 "fails with an error)."
38969 #: ../src/guestfs.pod:1815
38971 "This is to simplify caller code, so callers can easily set the progress "
38972 "indicator to \"100%\" at the end of the operation, without requiring special "
38973 "code to detect this case."
38977 #: ../src/guestfs.pod:1821
38979 "For some calls we are unable to estimate the progress of the call, but we "
38980 "can still generate progress messages to indicate activity. This is known as "
38981 "\"pulse mode\", and is directly supported by certain progress bar "
38982 "implementations (eg. GtkProgressBar)."
38986 #: ../src/guestfs.pod:1826
38988 "For these calls, zero or more progress messages are generated with "
38989 "C<position = 0> and C<total = 1>, followed by a final message with "
38990 "C<position = total = 1>."
38994 #: ../src/guestfs.pod:1830
38996 "As noted above, if the call fails with an error then the final message may "
38997 "not be generated."
39001 #: ../src/guestfs.pod:1835
39003 "The callback also receives the procedure number (C<proc_nr>) and serial "
39004 "number (C<serial>) of the call. These are only useful for debugging "
39005 "protocol issues, and the callback can normally ignore them. The callback "
39006 "may want to print these numbers in error messages or debugging messages."
39010 #: ../src/guestfs.pod:1841
39011 msgid "If no callback is registered: progress messages are discarded."
39015 #: ../src/guestfs.pod:1843
39016 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
39020 #: ../src/guestfs.pod:1846
39022 "The callback function is called whenever a log message is generated by qemu, "
39023 "the appliance kernel, guestfsd (daemon), or utility programs."
39027 #: ../src/guestfs.pod:1849
39029 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
39030 "guestfs_launch>) then additional debug messages are generated."
39034 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
39036 "If no callback is registered: the messages are discarded unless the verbose "
39037 "flag is set in which case they are sent to stderr. You can override the "
39038 "printing of verbose messages to stderr by setting up a callback."
39042 #: ../src/guestfs.pod:1857
39043 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
39047 #: ../src/guestfs.pod:1860
39049 "The callback function is called whenever a log message is generated by the "
39050 "library part of libguestfs."
39054 #: ../src/guestfs.pod:1863
39056 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
39057 "messages are generated."
39061 #: ../src/guestfs.pod:1871
39062 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
39066 #: ../src/guestfs.pod:1874
39068 "The callback function is called whenever a trace message is generated. This "
39069 "only applies if the trace flag (L</guestfs_set_trace>) is set."
39073 #: ../src/guestfs.pod:1877
39075 "If no callback is registered: the messages are sent to stderr. You can "
39076 "override the printing of trace messages to stderr by setting up a callback."
39080 #: ../src/guestfs.pod:1881
39081 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
39085 #: ../src/guestfs.pod:1884
39087 "The callback function is called whenever a libguestfs function is entered."
39091 #: ../src/guestfs.pod:1887
39093 "The payload is a string which contains the name of the function that we are "
39094 "entering (not including C<guestfs_> prefix)."
39098 #: ../src/guestfs.pod:1890
39100 "Note that libguestfs functions can call themselves, so you may see many "
39101 "events from a single call. A few libguestfs functions do not generate this "
39106 #: ../src/guestfs.pod:1898
39107 msgid "guestfs_set_event_callback"
39111 #: ../src/guestfs.pod:1900
39114 " int guestfs_set_event_callback (guestfs_h *g,\n"
39115 " guestfs_event_callback cb,\n"
39116 " uint64_t event_bitmask,\n"
39118 " void *opaque);\n"
39123 #: ../src/guestfs.pod:1906
39125 "This function registers a callback (C<cb>) for all event classes in the "
39126 "C<event_bitmask>."
39130 #: ../src/guestfs.pod:1909
39132 "For example, to register for all log message events, you could call this "
39133 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. "
39134 "To register a single callback for all possible classes of events, use "
39135 "C<GUESTFS_EVENT_ALL>."
39139 #: ../src/guestfs.pod:1915
39140 msgid "C<flags> should always be passed as 0."
39144 #: ../src/guestfs.pod:1917
39146 "C<opaque> is an opaque pointer which is passed to the callback. You can use "
39147 "it for any purpose."
39151 #: ../src/guestfs.pod:1920
39153 "The return value is the event handle (an integer) which you can use to "
39154 "delete the callback (see below)."
39158 #: ../src/guestfs.pod:1923
39160 "If there is an error, this function returns C<-1>, and sets the error in the "
39161 "handle in the usual way (see L</guestfs_last_error> etc.)"
39165 #: ../src/guestfs.pod:1926
39167 "Callbacks remain in effect until they are deleted, or until the handle is "
39172 #: ../src/guestfs.pod:1929
39174 "In the case where multiple callbacks are registered for a particular event "
39175 "class, all of the callbacks are called. The order in which multiple "
39176 "callbacks are called is not defined."
39180 #: ../src/guestfs.pod:1933
39181 msgid "guestfs_delete_event_callback"
39185 #: ../src/guestfs.pod:1935
39188 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
39193 #: ../src/guestfs.pod:1937
39195 "Delete a callback that was previously registered. C<event_handle> should be "
39196 "the integer that was returned by a previous call to "
39197 "C<guestfs_set_event_callback> on the same handle."
39201 #: ../src/guestfs.pod:1941
39202 msgid "guestfs_event_callback"
39206 #: ../src/guestfs.pod:1943
39209 " typedef void (*guestfs_event_callback) (\n"
39212 " uint64_t event,\n"
39213 " int event_handle,\n"
39215 " const char *buf, size_t buf_len,\n"
39216 " const uint64_t *array, size_t array_len);\n"
39221 #: ../src/guestfs.pod:1952
39223 "This is the type of the event callback function that you have to provide."
39227 #: ../src/guestfs.pod:1955
39229 "The basic parameters are: the handle (C<g>), the opaque user pointer "
39230 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
39231 "handle, and C<flags> which in the current API you should ignore."
39235 #: ../src/guestfs.pod:1959
39237 "The remaining parameters contain the event payload (if any). Each event may "
39238 "contain a payload, which usually relates to the event class, but for future "
39239 "proofing your code should be written to handle any payload for any event "
39244 #: ../src/guestfs.pod:1964
39246 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
39247 "there is no message buffer). Note that this message buffer can contain "
39248 "arbitrary 8 bit data, including NUL bytes."
39252 #: ../src/guestfs.pod:1968
39254 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
39255 "moment this is only used for progress messages."
39259 #: ../src/guestfs.pod:1971
39260 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
39264 #: ../src/guestfs.pod:1973
39266 "One motivation for the generic event API was to allow GUI programs to "
39267 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
39268 "unconditionally to C<stderr>."
39272 #: ../src/guestfs.pod:1977
39274 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
39275 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
39276 "messages are not events; you must capture error messages separately)."
39280 #: ../src/guestfs.pod:1982
39282 "Programs have to set up a callback to capture the classes of events of "
39287 #: ../src/guestfs.pod:1985
39291 " guestfs_set_event_callback\n"
39292 " (g, message_callback,\n"
39293 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
39294 " GUESTFS_EVENT_TRACE,\n"
39295 " 0, NULL) == -1)\n"
39296 " if (eh == -1) {\n"
39297 " // handle error in the usual way\n"
39303 #: ../src/guestfs.pod:1995
39305 "The callback can then direct messages to the appropriate place. In this "
39306 "example, messages are directed to syslog:"
39310 #: ../src/guestfs.pod:1998
39314 " message_callback (\n"
39317 " uint64_t event,\n"
39318 " int event_handle,\n"
39320 " const char *buf, size_t buf_len,\n"
39321 " const uint64_t *array, size_t array_len)\n"
39323 " const int priority = LOG_USER|LOG_INFO;\n"
39324 " if (buf_len > 0)\n"
39325 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
39331 #: ../src/guestfs.pod:2013
39332 msgid "CANCELLING LONG TRANSFERS"
39336 #: ../src/guestfs.pod:2015
39338 "Some operations can be cancelled by the caller while they are in progress. "
39339 "Currently only operations that involve uploading or downloading data can be "
39340 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
39341 "parameters in the generator)."
39345 #: ../src/guestfs.pod:2020
39346 msgid "guestfs_user_cancel"
39350 #: ../src/guestfs.pod:2022
39353 " void guestfs_user_cancel (guestfs_h *g);\n"
39358 #: ../src/guestfs.pod:2024
39360 "C<guestfs_user_cancel> cancels the current upload or download operation."
39364 #: ../src/guestfs.pod:2027
39366 "Unlike most other libguestfs calls, this function is signal safe and thread "
39367 "safe. You can call it from a signal handler or from another thread, without "
39368 "needing to do any locking."
39372 #: ../src/guestfs.pod:2031
39374 "The transfer that was in progress (if there is one) will stop shortly "
39375 "afterwards, and will return an error. The errno (see L</"
39376 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
39377 "out if the operation was cancelled or failed because of another error."
39381 #: ../src/guestfs.pod:2037
39383 "No cleanup is performed: for example, if a file was being uploaded then "
39384 "after cancellation there may be a partially uploaded file. It is the "
39385 "caller's responsibility to clean up if necessary."
39389 #: ../src/guestfs.pod:2041
39390 msgid "There are two common places that you might call C<guestfs_user_cancel>."
39394 #: ../src/guestfs.pod:2043
39396 "In an interactive text-based program, you might call it from a C<SIGINT> "
39397 "signal handler so that pressing C<^C> cancels the current operation. (You "
39398 "also need to call L</guestfs_set_pgroup> so that child processes don't "
39399 "receive the C<^C> signal)."
39403 #: ../src/guestfs.pod:2048
39405 "In a graphical program, when the main thread is displaying a progress bar "
39406 "with a cancel button, wire up the cancel button to call this function."
39410 #: ../src/guestfs.pod:2052
39411 msgid "PRIVATE DATA AREA"
39415 #: ../src/guestfs.pod:2054
39417 "You can attach named pieces of private data to the libguestfs handle, fetch "
39418 "them by name, and walk over them, for the lifetime of the handle. This is "
39419 "called the private data area and is only available from the C API."
39423 #: ../src/guestfs.pod:2059
39424 msgid "To attach a named piece of data, use the following call:"
39428 #: ../src/guestfs.pod:2061
39431 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
39434 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
39438 #: ../src/guestfs.pod:2063
39440 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
39441 "pointer (which can be C<NULL>). Any previous item with the same key is "
39446 #: ../src/guestfs.pod:2067
39448 "You can use any C<key> you want, but your key should I<not> start with an "
39449 "underscore character. Keys beginning with an underscore character are "
39450 "reserved for internal libguestfs purposes (eg. for implementing language "
39451 "bindings). It is recommended that you prefix the key with some unique "
39452 "string to avoid collisions with other users."
39456 #: ../src/guestfs.pod:2073
39457 msgid "To retrieve the pointer, use:"
39461 #: ../src/guestfs.pod:2075
39464 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39467 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39471 #: ../src/guestfs.pod:2077
39473 "This function returns C<NULL> if either no data is found associated with "
39474 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
39479 #: ../src/guestfs.pod:2081
39481 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
39482 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
39483 "all. In particular, libguestfs does I<not> try to free the data when the "
39484 "handle is closed. If the data must be freed, then the caller must either "
39485 "free it before calling L</guestfs_close> or must set up a close callback to "
39486 "do it (see L</GUESTFS_EVENT_CLOSE>)."
39490 #: ../src/guestfs.pod:2088
39491 msgid "To walk over all entries, use these two functions:"
39495 #: ../src/guestfs.pod:2090
39498 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
39503 #: ../src/guestfs.pod:2092
39506 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
39511 #: ../src/guestfs.pod:2094
39513 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
39514 "not have any particular meaning -- keys are not returned in any defined "
39515 "order). A pointer to the key is returned in C<*key_rtn> and the "
39516 "corresponding data pointer is returned from the function. C<NULL> is "
39517 "returned if there are no keys stored in the handle."
39521 #: ../src/guestfs.pod:2100
39523 "C<guestfs_next_private> returns the next key, pointer pair. The return "
39524 "value of this function is also C<NULL> is there are no further entries to "
39529 #: ../src/guestfs.pod:2104
39530 msgid "Notes about walking over entries:"
39534 #: ../src/guestfs.pod:2110
39536 "You must not call C<guestfs_set_private> while walking over the entries."
39540 #: ../src/guestfs.pod:2115
39542 "The handle maintains an internal iterator which is reset when you call "
39543 "C<guestfs_first_private>. This internal iterator is invalidated when you "
39544 "call C<guestfs_set_private>."
39548 #: ../src/guestfs.pod:2121
39549 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
39553 #: ../src/guestfs.pod:2123
39556 " guestfs_set_private (g, key, NULL);\n"
39561 #: ../src/guestfs.pod:2125
39562 msgid "then that C<key> is not returned when walking."
39566 #: ../src/guestfs.pod:2129
39568 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
39569 "C<guestfs_next_private> or C<guestfs_set_private>."
39573 #: ../src/guestfs.pod:2135
39575 "The following example code shows how to print all keys and data pointers "
39576 "that are associated with the handle C<g>:"
39580 #: ../src/guestfs.pod:2138
39583 " const char *key;\n"
39584 " void *data = guestfs_first_private (g, &key);\n"
39585 " while (data != NULL)\n"
39587 " printf (\"key = %s, data = %p\\n\", key, data);\n"
39588 " data = guestfs_next_private (g, &key);\n"
39594 #: ../src/guestfs.pod:2146
39596 "More commonly you are only interested in keys that begin with an application-"
39597 "specific prefix C<foo_>. Modify the loop like so:"
39601 #: ../src/guestfs.pod:2149
39604 " const char *key;\n"
39605 " void *data = guestfs_first_private (g, &key);\n"
39606 " while (data != NULL)\n"
39608 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39609 " printf (\"key = %s, data = %p\\n\", key, data);\n"
39610 " data = guestfs_next_private (g, &key);\n"
39616 #: ../src/guestfs.pod:2158
39618 "If you need to modify keys while walking, then you have to jump back to the "
39619 "beginning of the loop. For example, to delete all keys prefixed with "
39624 #: ../src/guestfs.pod:2162
39627 " const char *key;\n"
39630 " data = guestfs_first_private (g, &key);\n"
39631 " while (data != NULL)\n"
39633 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39635 " guestfs_set_private (g, key, NULL);\n"
39636 " /* note that 'key' pointer is now invalid, and so is\n"
39637 " the internal iterator */\n"
39640 " data = guestfs_next_private (g, &key);\n"
39646 #: ../src/guestfs.pod:2178
39648 "Note that the above loop is guaranteed to terminate because the keys are "
39649 "being deleted, but other manipulations of keys within the loop might not "
39650 "terminate unless you also maintain an indication of which keys have been "
39655 #: ../src/guestfs.pod:2183
39660 #: ../src/guestfs.pod:2185
39662 "The libguestfs C library can be probed using systemtap or DTrace. This is "
39663 "true of any library, not just libguestfs. However libguestfs also contains "
39664 "static markers to help in probing internal operations."
39668 #: ../src/guestfs.pod:2189
39669 msgid "You can list all the static markers by doing:"
39673 #: ../src/guestfs.pod:2191
39676 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
39677 " .provider(\"guestfs\").mark(\"*\")'\n"
39682 #: ../src/guestfs.pod:2194
39684 "B<Note:> These static markers are I<not> part of the stable API and may "
39685 "change in future versions."
39689 #: ../src/guestfs.pod:2197
39690 msgid "SYSTEMTAP SCRIPT EXAMPLE"
39694 #: ../src/guestfs.pod:2199
39696 "This script contains examples of displaying both the static markers and some "
39697 "ordinary C entry points:"
39701 #: ../src/guestfs.pod:2202
39709 #: ../src/guestfs.pod:2204
39712 " function display_time () {\n"
39713 " now = gettimeofday_us ();\n"
39716 " delta = now - last;\n"
39722 #: ../src/guestfs.pod:2211
39725 " printf (\"%d (+%d):\", now, delta);\n"
39731 #: ../src/guestfs.pod:2214
39736 " printf (\"ready\\n\");\n"
39742 #: ../src/guestfs.pod:2219
39745 " /* Display all calls to static markers. */\n"
39746 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39747 " .provider(\"guestfs\").mark(\"*\") ? {\n"
39748 " display_time();\n"
39749 " printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
39755 #: ../src/guestfs.pod:2226
39758 " /* Display all calls to guestfs_mkfs* functions. */\n"
39759 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39760 " .function(\"guestfs_mkfs*\") ? {\n"
39761 " display_time();\n"
39762 " printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
39768 #: ../src/guestfs.pod:2233
39770 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
39771 "program. Note that you either have to be root, or you have to add yourself "
39772 "to several special stap groups. Consult the systemtap documentation for "
39773 "more information."
39777 #: ../src/guestfs.pod:2238
39780 " # stap /tmp/test.stap\n"
39786 #: ../src/guestfs.pod:2241
39787 msgid "In another terminal, run a guestfish command such as this:"
39791 #: ../src/guestfs.pod:2245
39792 msgid "In the first terminal, stap trace output similar to this is shown:"
39796 #: ../src/guestfs.pod:2247
39799 " 1318248056692655 (+0):\tlaunch_start\n"
39800 " 1318248056692850 (+195): launch_build_appliance_start\n"
39801 " 1318248056818285 (+125435): launch_build_appliance_end\n"
39802 " 1318248056838059 (+19774): launch_run_qemu\n"
39803 " 1318248061071167 (+4233108): launch_end\n"
39804 " 1318248061280324 (+209157): guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
39809 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
39814 #: ../src/guestfs.pod:2256
39816 "<!-- old anchor for the next section --> <a name="
39817 "\"state_machine_and_low_level_event_api\"/>"
39819 "<!-- old anchor for the next section --> <a name="
39820 "\"state_machine_and_low_level_event_api\"/>"
39823 #: ../src/guestfs.pod:2261
39824 msgid "ARCHITECTURE"
39825 msgstr "АРХІТЕКТУРА"
39828 #: ../src/guestfs.pod:2263
39830 "Internally, libguestfs is implemented by running an appliance (a special "
39831 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
39832 "process of the main program."
39836 #: ../src/guestfs.pod:2267
39839 " ___________________\n"
39841 " | main program |\n"
39843 " | | child process / appliance\n"
39844 " | | __________________________\n"
39846 " +-------------------+ RPC | +-----------------+ |\n"
39847 " | libguestfs <--------------------> guestfsd | |\n"
39848 " | | | +-----------------+ |\n"
39849 " \\___________________/ | | Linux kernel | |\n"
39850 " | +--^--------------+ |\n"
39851 " \\_________|________________/\n"
39853 " _______v______\n"
39856 " | disk image |\n"
39857 " \\______________/\n"
39862 #: ../src/guestfs.pod:2287
39864 "The library, linked to the main program, creates the child process and hence "
39865 "the appliance in the L</guestfs_launch> function."
39869 #: ../src/guestfs.pod:2290
39871 "Inside the appliance is a Linux kernel and a complete stack of userspace "
39872 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
39873 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
39874 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
39875 "API calls and RPC calls to the daemon. Lastly the disk image(s) are "
39876 "attached to the qemu process which translates device access by the "
39877 "appliance's Linux kernel into accesses to the image."
39881 #: ../src/guestfs.pod:2299
39883 "A common misunderstanding is that the appliance \"is\" the virtual machine. "
39884 "Although the disk image you are attached to might also be used by some "
39885 "virtual machine, libguestfs doesn't know or care about this. (But you will "
39886 "care if both libguestfs's qemu process and your virtual machine are trying "
39887 "to update the disk image at the same time, since these usually results in "
39888 "massive disk corruption)."
39892 #: ../src/guestfs.pod:2306
39893 msgid "STATE MACHINE"
39894 msgstr "СКІНЧЕННИЙ АВТОМАТ"
39897 #: ../src/guestfs.pod:2308
39898 msgid "libguestfs uses a state machine to model the child process:"
39902 #: ../src/guestfs.pod:2310
39906 " guestfs_create\n"
39914 " / | \\ \\ guestfs_launch\n"
39915 " / | _\\__V______\n"
39917 " / | | LAUNCHING |\n"
39918 " / | \\___________/\n"
39920 " / | guestfs_launch\n"
39922 " ______ / __|____V\n"
39923 " / \\ ------> / \\\n"
39924 " | BUSY | | READY |\n"
39925 " \\______/ <------ \\________/\n"
39930 #: ../src/guestfs.pod:2332
39932 "The normal transitions are (1) CONFIG (when the handle is created, but there "
39933 "is no child process), (2) LAUNCHING (when the child process is booting up), "
39934 "(3) alternating between READY and BUSY as commands are issued to, and "
39935 "carried out by, the child process."
39939 #: ../src/guestfs.pod:2337
39941 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
39942 "asynchronously at any time (eg. due to some internal error), and that causes "
39943 "the state to transition back to CONFIG."
39947 #: ../src/guestfs.pod:2341
39949 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
39950 "issued when in the CONFIG state."
39954 #: ../src/guestfs.pod:2344
39956 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
39957 "L</guestfs_launch> blocks until the child process is READY to accept "
39958 "commands (or until some failure or timeout). L</guestfs_launch> internally "
39959 "moves the state from CONFIG to LAUNCHING while it is running."
39963 #: ../src/guestfs.pod:2350
39965 "API actions such as L</guestfs_mount> can only be issued when in the READY "
39966 "state. These API calls block waiting for the command to be carried out (ie. "
39967 "the state to transition to BUSY and then back to READY). There are no non-"
39968 "blocking versions, and no way to issue more than one command per handle at "
39973 #: ../src/guestfs.pod:2356
39975 "Finally, the child process sends asynchronous messages back to the main "
39976 "program, such as kernel log messages. You can register a callback to "
39977 "receive these messages."
39981 #: ../src/guestfs.pod:2360
39986 #: ../src/guestfs.pod:2362
39987 msgid "APPLIANCE BOOT PROCESS"
39991 #: ../src/guestfs.pod:2364
39993 "This process has evolved and continues to evolve. The description here "
39994 "corresponds only to the current version of libguestfs and is provided for "
39995 "information only."
39999 #: ../src/guestfs.pod:2368
40001 "In order to follow the stages involved below, enable libguestfs debugging "
40002 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
40006 #: ../src/guestfs.pod:2373
40007 msgid "Create the appliance"
40011 #: ../src/guestfs.pod:2375
40013 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
40014 "initrd and the appliance."
40018 #: ../src/guestfs.pod:2378
40020 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
40021 "directory if C<TMPDIR> is set)."
40025 #: ../src/guestfs.pod:2381
40027 "For a complete description of how the appliance is created and cached, read "
40028 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
40032 #: ../src/guestfs.pod:2385
40033 msgid "Start qemu and boot the kernel"
40037 #: ../src/guestfs.pod:2387
40038 msgid "qemu is invoked to boot the kernel."
40042 #: ../src/guestfs.pod:2389
40043 msgid "Run the initrd"
40047 #: ../src/guestfs.pod:2391
40049 "C<febootstrap-supermin-helper> builds a small initrd. The initrd is not the "
40050 "appliance. The purpose of the initrd is to load enough kernel modules in "
40051 "order that the appliance itself can be mounted and started."
40055 #: ../src/guestfs.pod:2395
40057 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
40062 #: ../src/guestfs.pod:2398
40064 "When the initrd has started you will see messages showing that kernel "
40065 "modules are being loaded, similar to this:"
40069 #: ../src/guestfs.pod:2401
40072 " febootstrap: ext2 mini initrd starting up\n"
40073 " febootstrap: mounting /sys\n"
40074 " febootstrap: internal insmod libcrc32c.ko\n"
40075 " febootstrap: internal insmod crc32c-intel.ko\n"
40080 #: ../src/guestfs.pod:2406
40081 msgid "Find and mount the appliance device"
40085 #: ../src/guestfs.pod:2408
40087 "The appliance is a sparse file containing an ext2 filesystem which contains "
40088 "a familiar (although reduced in size) Linux operating system. It would "
40089 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
40093 #: ../src/guestfs.pod:2412
40095 "The regular disks being inspected by libguestfs are the first devices "
40096 "exposed by qemu (eg. as C</dev/vda>)."
40100 #: ../src/guestfs.pod:2415
40102 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
40103 "there was only one regular disk)."
40107 #: ../src/guestfs.pod:2418
40109 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
40110 "and switch root into the appliance, and run C</init> from the appliance."
40114 #: ../src/guestfs.pod:2422
40115 msgid "If this works successfully you will see messages such as:"
40119 #: ../src/guestfs.pod:2424
40122 " febootstrap: picked /sys/block/vdb/dev as root device\n"
40123 " febootstrap: creating /dev/root as block special 252:16\n"
40124 " febootstrap: mounting new root on /root\n"
40125 " febootstrap: chroot\n"
40126 " Starting /init script ...\n"
40131 #: ../src/guestfs.pod:2430
40133 "Note that C<Starting /init script ...> indicates that the appliance's init "
40134 "script is now running."
40138 #: ../src/guestfs.pod:2433
40139 msgid "Initialize the appliance"
40143 #: ../src/guestfs.pod:2435
40145 "The appliance itself now initializes itself. This involves starting certain "
40146 "processes like C<udev>, possibly printing some debug information, and "
40147 "finally running the daemon (C<guestfsd>)."
40151 #: ../src/guestfs.pod:2439
40156 #: ../src/guestfs.pod:2441
40158 "Finally the daemon (C<guestfsd>) runs inside the appliance. If it runs you "
40163 #: ../src/guestfs.pod:2444
40166 " verbose daemon enabled\n"
40171 #: ../src/guestfs.pod:2446
40173 "The daemon expects to see a named virtio-serial port exposed by qemu and "
40174 "connected on the other end to the library."
40178 #: ../src/guestfs.pod:2449
40180 "The daemon connects to this port (and hence to the library) and sends a four "
40181 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
40182 "protocol (see below)."
40186 #: ../src/guestfs.pod:2455
40187 msgid "COMMUNICATION PROTOCOL"
40191 #: ../src/guestfs.pod:2457
40193 "Don't rely on using this protocol directly. This section documents how it "
40194 "currently works, but it may change at any time."
40198 #: ../src/guestfs.pod:2460
40200 "The protocol used to talk between the library and the daemon running inside "
40201 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
40202 "1014, RFC 1832, RFC 4506)."
40206 #: ../src/guestfs.pod:2464
40208 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
40209 "this file is automatically generated)."
40213 #: ../src/guestfs.pod:2467
40215 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
40216 "and C<FileOut> parameters, which are handled with very simple request/reply "
40217 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
40218 "parameters, which use the same request and reply messages, but they may also "
40219 "be followed by files sent using a chunked encoding."
40223 #: ../src/guestfs.pod:2474
40224 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
40228 #: ../src/guestfs.pod:2476
40229 msgid "For ordinary functions, the request message is:"
40233 #: ../src/guestfs.pod:2478
40236 " total length (header + arguments,\n"
40237 " but not including the length word itself)\n"
40238 " struct guestfs_message_header (encoded as XDR)\n"
40239 " struct guestfs_<foo>_args (encoded as XDR)\n"
40244 #: ../src/guestfs.pod:2483
40246 "The total length field allows the daemon to allocate a fixed size buffer "
40247 "into which it slurps the rest of the message. As a result, the total length "
40248 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
40249 "effective size of any request is limited to somewhere under this size."
40253 #: ../src/guestfs.pod:2489
40255 "Note also that many functions don't take any arguments, in which case the "
40256 "C<guestfs_I<foo>_args> is completely omitted."
40260 #: ../src/guestfs.pod:2492
40262 "The header contains the procedure number (C<guestfs_proc>) which is how the "
40263 "receiver knows what type of args structure to expect, or none at all."
40267 #: ../src/guestfs.pod:2496
40269 "For functions that take optional arguments, the optional arguments are "
40270 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
40271 "arguments. A bitmask in the header indicates which optional arguments are "
40272 "meaningful. The bitmask is also checked to see if it contains bits set "
40273 "which the daemon does not know about (eg. if more optional arguments were "
40274 "added in a later version of the library), and this causes the call to be "
40279 #: ../src/guestfs.pod:2504
40280 msgid "The reply message for ordinary functions is:"
40284 #: ../src/guestfs.pod:2506
40287 " total length (header + ret,\n"
40288 " but not including the length word itself)\n"
40289 " struct guestfs_message_header (encoded as XDR)\n"
40290 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40295 #: ../src/guestfs.pod:2511
40297 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
40298 "functions that return no formal return values."
40302 #: ../src/guestfs.pod:2514
40304 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
40308 #: ../src/guestfs.pod:2517
40310 "In the case of an error, a flag is set in the header, and the reply message "
40311 "is slightly changed:"
40315 #: ../src/guestfs.pod:2520
40318 " total length (header + error,\n"
40319 " but not including the length word itself)\n"
40320 " struct guestfs_message_header (encoded as XDR)\n"
40321 " struct guestfs_message_error (encoded as XDR)\n"
40326 #: ../src/guestfs.pod:2525
40328 "The C<guestfs_message_error> structure contains the error message as a "
40333 #: ../src/guestfs.pod:2528
40334 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
40338 #: ../src/guestfs.pod:2530
40340 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
40341 "The normal request message is sent (see above). However this is followed by "
40342 "a sequence of file chunks."
40346 #: ../src/guestfs.pod:2534
40349 " total length (header + arguments,\n"
40350 " but not including the length word itself,\n"
40351 " and not including the chunks)\n"
40352 " struct guestfs_message_header (encoded as XDR)\n"
40353 " struct guestfs_<foo>_args (encoded as XDR)\n"
40354 " sequence of chunks for FileIn param #0\n"
40355 " sequence of chunks for FileIn param #1 etc.\n"
40360 #: ../src/guestfs.pod:2542
40361 msgid "The \"sequence of chunks\" is:"
40365 #: ../src/guestfs.pod:2544
40368 " length of chunk (not including length word itself)\n"
40369 " struct guestfs_chunk (encoded as XDR)\n"
40370 " length of chunk\n"
40371 " struct guestfs_chunk (encoded as XDR)\n"
40373 " length of chunk\n"
40374 " struct guestfs_chunk (with data.data_len == 0)\n"
40379 #: ../src/guestfs.pod:2552
40381 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
40382 "is set in the final chunk to indicate either successful completion or early "
40387 #: ../src/guestfs.pod:2556
40389 "At time of writing there are no functions that have more than one FileIn "
40390 "parameter. However this is (theoretically) supported, by sending the "
40391 "sequence of chunks for each FileIn parameter one after another (from left to "
40396 #: ../src/guestfs.pod:2561
40398 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
40399 "transfer. The library does this by sending a chunk with a special flag set "
40400 "to indicate cancellation. When the daemon sees this, it cancels the whole "
40401 "RPC, does I<not> send any reply, and goes back to reading the next request."
40405 #: ../src/guestfs.pod:2567
40407 "The daemon may also cancel. It does this by writing a special word "
40408 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
40409 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
40410 "cancel chunk). The special word is chosen so that even if cancellation "
40411 "happens right at the end of the transfer (after the library has finished "
40412 "writing and has started listening for the reply), the \"spurious\" cancel "
40413 "flag will not be confused with the reply message."
40417 #: ../src/guestfs.pod:2576
40419 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
40420 "limit), and also files where the size is not known in advance (eg. from "
40421 "pipes or sockets). However the chunks are rather small "
40422 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
40423 "to keep much in memory."
40427 #: ../src/guestfs.pod:2582
40428 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
40432 #: ../src/guestfs.pod:2584
40434 "The protocol for FileOut parameters is exactly the same as for FileIn "
40435 "parameters, but with the roles of daemon and library reversed."
40439 #: ../src/guestfs.pod:2587
40442 " total length (header + ret,\n"
40443 " but not including the length word itself,\n"
40444 " and not including the chunks)\n"
40445 " struct guestfs_message_header (encoded as XDR)\n"
40446 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40447 " sequence of chunks for FileOut param #0\n"
40448 " sequence of chunks for FileOut param #1 etc.\n"
40453 #: ../src/guestfs.pod:2595
40454 msgid "INITIAL MESSAGE"
40458 #: ../src/guestfs.pod:2597
40460 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
40461 "which indicates that the guest and daemon is alive. This is what L</"
40462 "guestfs_launch> waits for."
40466 #: ../src/guestfs.pod:2601
40467 msgid "PROGRESS NOTIFICATION MESSAGES"
40471 #: ../src/guestfs.pod:2603
40473 "The daemon may send progress notification messages at any time. These are "
40474 "distinguished by the normal length word being replaced by "
40475 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
40479 #: ../src/guestfs.pod:2607
40481 "The library turns them into progress callbacks (see L</"
40482 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
40487 #: ../src/guestfs.pod:2611
40489 "The daemon self-limits the frequency of progress messages it sends (see "
40490 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
40495 #: ../src/guestfs.pod:2615
40496 msgid "LIBGUESTFS VERSION NUMBERS"
40500 #: ../src/guestfs.pod:2617
40502 "Since April 2010, libguestfs has started to make separate development and "
40503 "stable releases, along with corresponding branches in our git repository. "
40504 "These separate releases can be identified by version number:"
40508 #: ../src/guestfs.pod:2622
40511 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
40512 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
40518 " | `-------- sub-version\n"
40520 " `------ always '1' because we don't change the ABI\n"
40525 #: ../src/guestfs.pod:2633
40526 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
40530 #: ../src/guestfs.pod:2635
40532 "As time passes we cherry pick fixes from the development branch and backport "
40533 "those into the stable branch, the effect being that the stable branch should "
40534 "get more stable and less buggy over time. So the stable releases are ideal "
40535 "for people who don't need new features but would just like the software to "
40540 #: ../src/guestfs.pod:2641
40541 msgid "Our criteria for backporting changes are:"
40545 #: ../src/guestfs.pod:2647
40547 "Documentation changes which don't affect any code are backported unless the "
40548 "documentation refers to a future feature which is not in stable."
40552 #: ../src/guestfs.pod:2653
40554 "Bug fixes which are not controversial, fix obvious problems, and have been "
40555 "well tested are backported."
40559 #: ../src/guestfs.pod:2658
40561 "Simple rearrangements of code which shouldn't affect how it works get "
40562 "backported. This is so that the code in the two branches doesn't get too "
40563 "far out of step, allowing us to backport future fixes more easily."
40567 #: ../src/guestfs.pod:2664
40569 "We I<don't> backport new features, new APIs, new tools etc, except in one "
40570 "exceptional case: the new feature is required in order to implement an "
40571 "important bug fix."
40575 #: ../src/guestfs.pod:2670
40577 "A new stable branch starts when we think the new features in development are "
40578 "substantial and compelling enough over the current stable branch to warrant "
40579 "it. When that happens we create new stable and development versions 1.N.0 "
40580 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
40581 "stable at this point, but by backporting fixes from development, that branch "
40582 "will stabilize over time."
40586 #: ../src/guestfs.pod:2678
40587 msgid "EXTENDING LIBGUESTFS"
40591 #: ../src/guestfs.pod:2680
40592 msgid "ADDING A NEW API ACTION"
40596 #: ../src/guestfs.pod:2682
40598 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
40599 "documentation) are generated, and this makes it easy to extend the "
40604 #: ../src/guestfs.pod:2686
40605 msgid "To add a new API action there are two changes:"
40609 #: ../src/guestfs.pod:2692
40611 "You need to add a description of the call (name, parameters, return type, "
40612 "tests, documentation) to C<generator/generator_actions.ml>."
40616 #: ../src/guestfs.pod:2695
40618 "There are two sorts of API action, depending on whether the call goes "
40619 "through to the daemon in the appliance, or is serviced entirely by the "
40620 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
40621 "former, since the sync is done in the appliance. L</guestfs_set_trace> is "
40622 "an example of the latter, since a trace flag is maintained in the handle and "
40623 "all tracing is done on the library side."
40627 #: ../src/guestfs.pod:2703
40629 "Most new actions are of the first type, and get added to the "
40630 "C<daemon_functions> list. Each function has a unique procedure number used "
40631 "in the RPC protocol which is assigned to that action when we publish "
40632 "libguestfs and cannot be reused. Take the latest procedure number and "
40637 #: ../src/guestfs.pod:2709
40639 "For library-only actions of the second type, add to the "
40640 "C<non_daemon_functions> list. Since these functions are serviced by the "
40641 "library and do not travel over the RPC mechanism to the daemon, these "
40642 "functions do not need a procedure number, and so the procedure number is set "
40647 #: ../src/guestfs.pod:2717
40648 msgid "Implement the action (in C):"
40652 #: ../src/guestfs.pod:2719
40654 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
40655 "C<daemon/> directory."
40659 #: ../src/guestfs.pod:2722
40661 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
40662 "(note: double underscore) in the C<src/> directory."
40666 #: ../src/guestfs.pod:2725
40667 msgid "In either case, use another function as an example of what to do."
40671 #: ../src/guestfs.pod:2729
40672 msgid "After making these changes, use C<make> to compile."
40676 #: ../src/guestfs.pod:2731
40678 "Note that you don't need to implement the RPC, language bindings, manual "
40679 "pages or anything else. It's all automatically generated from the OCaml "
40684 #: ../src/guestfs.pod:2735
40685 msgid "ADDING TESTS FOR AN API ACTION"
40689 #: ../src/guestfs.pod:2737
40691 "You can supply zero or as many tests as you want per API call. The tests "
40692 "can either be added as part of the API description (C<generator/"
40693 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
40694 "into C<regressions/>. Note that adding a script to C<regressions/> is "
40695 "slower, so if possible use the first method."
40699 #: ../src/guestfs.pod:2743
40701 "The following describes the test environment used when you add an API test "
40702 "in C<generator_actions.ml>."
40706 #: ../src/guestfs.pod:2746
40707 msgid "The test environment has 4 block devices:"
40711 #: ../src/guestfs.pod:2750
40712 msgid "C</dev/sda> 500MB"
40713 msgstr "C</dev/sda> 500 МБ"
40716 #: ../src/guestfs.pod:2752
40717 msgid "General block device for testing."
40721 #: ../src/guestfs.pod:2754
40722 msgid "C</dev/sdb> 50MB"
40723 msgstr "C</dev/sdb> 50 МБ"
40726 #: ../src/guestfs.pod:2756
40728 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
40733 #: ../src/guestfs.pod:2759
40734 msgid "C</dev/sdc> 10MB"
40735 msgstr "C</dev/sdc> 10 МБ"
40738 #: ../src/guestfs.pod:2761
40739 msgid "Used in a few tests where two block devices are needed."
40743 #: ../src/guestfs.pod:2763
40744 msgid "C</dev/sdd>"
40745 msgstr "C</dev/sdd>"
40748 #: ../src/guestfs.pod:2765
40749 msgid "ISO with fixed content (see C<images/test.iso>)."
40753 #: ../src/guestfs.pod:2769
40755 "To be able to run the tests in a reasonable amount of time, the libguestfs "
40756 "appliance and block devices are reused between tests. So don't try testing "
40757 "L</guestfs_kill_subprocess> :-x"
40761 #: ../src/guestfs.pod:2773
40763 "Each test starts with an initial scenario, selected using one of the "
40764 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
40765 "initialize the disks mentioned above in a particular way as documented in "
40766 "C<generator_types.ml>. You should not assume anything about the previous "
40767 "contents of other disks that are not initialized."
40771 #: ../src/guestfs.pod:2779
40773 "You can add a prerequisite clause to any individual test. This is a run-"
40774 "time check, which, if it fails, causes the test to be skipped. Useful if "
40775 "testing a command which might not work on all variations of libguestfs "
40776 "builds. A test that has prerequisite of C<Always> means to run "
40781 #: ../src/guestfs.pod:2785
40783 "In addition, packagers can skip individual tests by setting environment "
40784 "variables before running C<make check>."
40788 #: ../src/guestfs.pod:2788
40791 " SKIP_TEST_<CMD>_<NUM>=1\n"
40796 #: ../src/guestfs.pod:2790
40797 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
40801 #: ../src/guestfs.pod:2792
40806 #: ../src/guestfs.pod:2794
40809 " SKIP_TEST_<CMD>=1\n"
40814 #: ../src/guestfs.pod:2796
40815 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
40819 #: ../src/guestfs.pod:2798
40820 msgid "Packagers can run only certain tests by setting for example:"
40824 #: ../src/guestfs.pod:2800
40827 " TEST_ONLY=\"vfs_type zerofree\"\n"
40832 #: ../src/guestfs.pod:2802
40834 "See C<capitests/tests.c> for more details of how these environment variables "
40839 #: ../src/guestfs.pod:2805
40840 msgid "DEBUGGING NEW API ACTIONS"
40844 #: ../src/guestfs.pod:2807
40845 msgid "Test new actions work before submitting them."
40849 #: ../src/guestfs.pod:2809
40850 msgid "You can use guestfish to try out new commands."
40854 #: ../src/guestfs.pod:2811
40856 "Debugging the daemon is a problem because it runs inside a minimal "
40857 "environment. However you can fprintf messages in the daemon to stderr, and "
40858 "they will show up if you use C<guestfish -v>."
40862 #: ../src/guestfs.pod:2815
40863 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
40867 #: ../src/guestfs.pod:2817
40869 "Our C source code generally adheres to some basic code-formatting "
40870 "conventions. The existing code base is not totally consistent on this "
40871 "front, but we do prefer that contributed code be formatted similarly. In "
40872 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
40873 "indentation level, and other than that, follow the K&R style."
40877 #: ../src/guestfs.pod:2823
40879 "If you use Emacs, add the following to one of one of your start-up files (e."
40880 "g., ~/.emacs), to help ensure that you get indentation right:"
40884 #: ../src/guestfs.pod:2826
40887 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
40888 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
40889 " (add-hook 'find-file-hook\n"
40890 " '(lambda () (if (and buffer-file-name\n"
40891 " (string-match \"/libguestfs\\\\>\"\n"
40892 " (buffer-file-name))\n"
40893 " (not (string-equal mode-name \"Change Log\"))\n"
40894 " (not (string-equal mode-name \"Makefile\")))\n"
40895 " (setq indent-tabs-mode nil))))\n"
40900 #: ../src/guestfs.pod:2836
40903 " ;;; When editing C sources in libguestfs, use this style.\n"
40904 " (defun libguestfs-c-mode ()\n"
40905 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
40907 " (c-set-style \"K&R\")\n"
40908 " (setq c-indent-level 2)\n"
40909 " (setq c-basic-offset 2))\n"
40910 " (add-hook 'c-mode-hook\n"
40911 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
40912 " (buffer-file-name))\n"
40913 " (libguestfs-c-mode))))\n"
40918 #: ../src/guestfs.pod:2848
40919 msgid "Enable warnings when compiling (and fix any problems this finds):"
40923 #: ../src/guestfs.pod:2851
40926 " ./configure --enable-gcc-warnings\n"
40929 " ./configure --enable-gcc-warnings\n"
40933 #: ../src/guestfs.pod:2853
40934 msgid "Useful targets are:"
40938 #: ../src/guestfs.pod:2855
40941 " make syntax-check # checks the syntax of the C code\n"
40942 " make check # runs the test suite\n"
40947 #: ../src/guestfs.pod:2858
40948 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
40952 #: ../src/guestfs.pod:2860
40954 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
40955 "which are used to do shell quoting."
40959 #: ../src/guestfs.pod:2865
40964 #: ../src/guestfs.pod:2867
40966 "Simple shell quoted string. Any spaces or other shell characters are "
40971 #: ../src/guestfs.pod:2870
40976 #: ../src/guestfs.pod:2872
40978 "Same as C<%Q> except the string is treated as a path which is prefixed by "
40983 #: ../src/guestfs.pod:2879
40986 " asprintf (&cmd, \"cat %R\", path);\n"
40989 " asprintf (&cmd, \"cat %R\", path);\n"
40993 #: ../src/guestfs.pod:2881
40994 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
40998 #: ../src/guestfs.pod:2883
41000 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
41001 "{,r,v,rv}()> functions. These parameters do NOT need to be quoted because "
41002 "they are not passed via the shell (instead, straight to exec). You probably "
41003 "want to use the C<sysroot_path()> function however."
41007 #: ../src/guestfs.pod:2889
41008 msgid "SUBMITTING YOUR NEW API ACTIONS"
41012 #: ../src/guestfs.pod:2891
41014 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
41015 "libguestfs> and CC to L<rjones@redhat.com>."
41019 #: ../src/guestfs.pod:2895
41020 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
41024 #: ../src/guestfs.pod:2897
41025 msgid "We support i18n (gettext anyhow) in the library."
41029 #: ../src/guestfs.pod:2899
41031 "However many messages come from the daemon, and we don't translate those at "
41032 "the moment. One reason is that the appliance generally has all locale files "
41033 "removed from it, because they take up a lot of space. So we'd have to readd "
41034 "some of those, as well as copying our PO files into the appliance."
41038 #: ../src/guestfs.pod:2905
41040 "Debugging messages are never translated, since they are intended for the "
41045 #: ../src/guestfs.pod:2908
41046 msgid "SOURCE CODE SUBDIRECTORIES"
41050 #: ../src/guestfs.pod:2912
41055 #: ../src/guestfs.pod:2914
41056 msgid "L<virt-alignment-scan(1)> command and documentation."
41060 #: ../src/guestfs.pod:2918
41061 msgid "The libguestfs appliance, build scripts and so on."
41065 #: ../src/guestfs.pod:2920
41066 msgid "C<capitests>"
41067 msgstr "C<capitests>"
41070 #: ../src/guestfs.pod:2922
41071 msgid "Automated tests of the C API."
41075 #: ../src/guestfs.pod:2924
41080 #: ../src/guestfs.pod:2926
41082 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
41087 #: ../src/guestfs.pod:2929
41089 msgstr "C<caution>"
41092 #: ../src/guestfs.pod:2931
41094 "Safety and liveness tests of components that libguestfs depends upon (not of "
41095 "libguestfs itself). Mainly this is for qemu and the kernel."
41099 #: ../src/guestfs.pod:2934
41104 #: ../src/guestfs.pod:2936
41106 "Tools for cloning virtual machines. Currently contains L<virt-sysprep(1)> "
41107 "command and documentation."
41111 #: ../src/guestfs.pod:2939
41113 msgstr "C<contrib>"
41116 #: ../src/guestfs.pod:2941
41117 msgid "Outside contributions, experimental parts."
41121 #: ../src/guestfs.pod:2943
41126 #: ../src/guestfs.pod:2945
41128 "The daemon that runs inside the libguestfs appliance and carries out actions."
41132 #: ../src/guestfs.pod:2948
41137 #: ../src/guestfs.pod:2950
41138 msgid "L<virt-df(1)> command and documentation."
41142 #: ../src/guestfs.pod:2952
41147 #: ../src/guestfs.pod:2954
41148 msgid "L<virt-edit(1)> command and documentation."
41152 #: ../src/guestfs.pod:2956
41153 msgid "C<examples>"
41154 msgstr "C<examples>"
41157 #: ../src/guestfs.pod:2958
41158 msgid "C API example code."
41159 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
41162 #: ../src/guestfs.pod:2960
41167 #: ../src/guestfs.pod:2962
41169 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
41170 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41171 "L<virt-tar-out(1)>."
41175 #: ../src/guestfs.pod:2966
41180 #: ../src/guestfs.pod:2968
41182 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
41186 #: ../src/guestfs.pod:2970
41187 msgid "C<generator>"
41188 msgstr "C<generator>"
41191 #: ../src/guestfs.pod:2972
41193 "The crucially important generator, used to automatically generate large "
41194 "amounts of boilerplate C code for things like RPC and bindings."
41198 #: ../src/guestfs.pod:2975
41203 #: ../src/guestfs.pod:2977
41204 msgid "Files used by the test suite."
41208 #: ../src/guestfs.pod:2979
41209 msgid "Some \"phony\" guest images which we test against."
41213 #: ../src/guestfs.pod:2981
41214 msgid "C<inspector>"
41215 msgstr "C<inspector>"
41218 #: ../src/guestfs.pod:2983
41219 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
41223 #: ../src/guestfs.pod:2985
41228 #: ../src/guestfs.pod:2987
41229 msgid "Logo used on the website. The fish is called Arthur by the way."
41233 #: ../src/guestfs.pod:2989
41238 #: ../src/guestfs.pod:2991
41239 msgid "M4 macros used by autoconf."
41243 #: ../src/guestfs.pod:2993
41248 #: ../src/guestfs.pod:2995
41249 msgid "Translations of simple gettext strings."
41250 msgstr "Переклади простих рядків gettext."
41253 #: ../src/guestfs.pod:2997
41255 msgstr "C<po-docs>"
41258 #: ../src/guestfs.pod:2999
41260 "The build infrastructure and PO files for translations of manpages and POD "
41261 "files. Eventually this will be combined with the C<po> directory, but that "
41262 "is rather complicated."
41266 #: ../src/guestfs.pod:3003
41267 msgid "C<regressions>"
41268 msgstr "C<regressions>"
41271 #: ../src/guestfs.pod:3005
41272 msgid "Regression tests."
41273 msgstr "Тести на регресії."
41276 #: ../src/guestfs.pod:3007
41281 #: ../src/guestfs.pod:3009
41282 msgid "L<virt-rescue(1)> command and documentation."
41286 #: ../src/guestfs.pod:3011
41291 #: ../src/guestfs.pod:3013
41292 msgid "L<virt-resize(1)> command and documentation."
41296 #: ../src/guestfs.pod:3015
41297 msgid "C<sparsify>"
41301 #: ../src/guestfs.pod:3017
41302 msgid "L<virt-sparsify(1)> command and documentation."
41306 #: ../src/guestfs.pod:3019
41311 #: ../src/guestfs.pod:3021
41312 msgid "Source code to the C library."
41316 #: ../src/guestfs.pod:3023
41321 #: ../src/guestfs.pod:3025
41323 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
41327 #: ../src/guestfs.pod:3027
41328 msgid "C<test-tool>"
41329 msgstr "C<test-tool>"
41332 #: ../src/guestfs.pod:3029
41334 "Test tool for end users to test if their qemu/kernel combination will work "
41339 #: ../src/guestfs.pod:3032
41344 #: ../src/guestfs.pod:3034
41349 #: ../src/guestfs.pod:3036
41351 msgstr "C<haskell>"
41354 #: ../src/guestfs.pod:3038
41359 #: ../src/guestfs.pod:3040
41364 #: ../src/guestfs.pod:3042
41369 #: ../src/guestfs.pod:3044
41374 #: ../src/guestfs.pod:3046
41379 #: ../src/guestfs.pod:3048
41384 #: ../src/guestfs.pod:3050
41385 msgid "Language bindings."
41386 msgstr "Прив’язки до мов програмування."
41389 #: ../src/guestfs.pod:3054
41390 msgid "MAKING A STABLE RELEASE"
41394 #: ../src/guestfs.pod:3056
41396 "When we make a stable release, there are several steps documented here. See "
41397 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
41402 #: ../src/guestfs.pod:3064
41404 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
41408 #: ../src/guestfs.pod:3069
41409 msgid "Finalize RELEASE-NOTES."
41413 #: ../src/guestfs.pod:3073
41414 msgid "Update ROADMAP."
41418 #: ../src/guestfs.pod:3077
41419 msgid "Run C<src/api-support/update-from-tarballs.sh>."
41423 #: ../src/guestfs.pod:3081
41424 msgid "Push and pull from Transifex."
41428 #: ../src/guestfs.pod:3083
41433 #: ../src/guestfs.pod:3085
41441 #: ../src/guestfs.pod:3087
41442 msgid "to push the latest POT files to Transifex. Then run:"
41446 #: ../src/guestfs.pod:3089
41454 #: ../src/guestfs.pod:3091
41455 msgid "which is a wrapper to pull the latest translated C<*.po> files."
41459 #: ../src/guestfs.pod:3095
41461 "Create new stable and development directories under L<http://libguestfs.org/"
41466 #: ../src/guestfs.pod:3100
41467 msgid "Create the branch in git:"
41471 #: ../src/guestfs.pod:3102
41474 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
41475 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
41476 " git branch stable-1.XX\n"
41477 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
41482 #: ../src/guestfs.pod:3109
41487 #: ../src/guestfs.pod:3111
41488 msgid "PROTOCOL LIMITS"
41489 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
41492 #: ../src/guestfs.pod:3113
41494 "Internally libguestfs uses a message-based protocol to pass API calls and "
41495 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
41496 "plenty more detail about this). The maximum message size used by the "
41497 "protocol is slightly less than 4 MB. For some API calls you may need to be "
41498 "aware of this limit. The API calls which may be affected are individually "
41499 "documented, with a link back to this section of the documentation."
41503 #: ../src/guestfs.pod:3121
41505 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
41506 "a simple string. Because this string is at some point internally encoded as "
41507 "a message, the maximum size that it can return is slightly under 4 MB. If "
41508 "the requested file is larger than this then you will get an error."
41512 #: ../src/guestfs.pod:3127
41514 "In order to transfer large files into and out of the guest filesystem, you "
41515 "need to use particular calls that support this. The sections L</UPLOADING> "
41516 "and L</DOWNLOADING> document how to do this."
41520 #: ../src/guestfs.pod:3131
41522 "You might also consider mounting the disk image using our FUSE filesystem "
41523 "support (L<guestmount(1)>)."
41527 #: ../src/guestfs.pod:3134
41528 msgid "MAXIMUM NUMBER OF DISKS"
41532 #: ../src/guestfs.pod:3136
41533 msgid "When using virtio disks (the default) the current limit is B<25> disks."
41537 #: ../src/guestfs.pod:3139
41539 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
41540 "slots. However febootstrap only understands disks with names C</dev/vda> "
41541 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
41546 #: ../src/guestfs.pod:3144
41548 "We are working to substantially raise this limit in future versions but it "
41549 "requires complex changes to qemu."
41553 #: ../src/guestfs.pod:3147
41555 "In future versions of libguestfs it should also be possible to \"hot plug\" "
41556 "disks (add and remove disks after calling L</guestfs_launch>). This also "
41557 "requires changes to qemu."
41561 #: ../src/guestfs.pod:3151
41562 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
41566 #: ../src/guestfs.pod:3153
41567 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
41571 #: ../src/guestfs.pod:3155
41573 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
41574 "vda>, and C</dev/vda1> through C</dev/vda15>)."
41578 #: ../src/guestfs.pod:3158
41580 "If you attach a disk with more than 15 partitions, the extra partitions are "
41581 "ignored by libguestfs."
41585 #: ../src/guestfs.pod:3161
41586 msgid "MAXIMUM SIZE OF A DISK"
41590 #: ../src/guestfs.pod:3163
41591 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
41595 #: ../src/guestfs.pod:3165
41597 "We have tested block devices up to 1 exabyte (2**60 or "
41598 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
41603 #: ../src/guestfs.pod:3169
41605 "Although libguestfs probably does not impose any limit, the underlying host "
41606 "storage will. If you store disk images on a host ext4 filesystem, then the "
41607 "maximum size will be limited by the maximum ext4 file size (currently 16 "
41608 "TB). If you store disk images as host logical volumes then you are limited "
41609 "by the maximum size of an LV."
41613 #: ../src/guestfs.pod:3175
41615 "For the hugest disk image files, we recommend using XFS on the host for "
41620 #: ../src/guestfs.pod:3178
41621 msgid "MAXIMUM SIZE OF A PARTITION"
41625 #: ../src/guestfs.pod:3180
41627 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
41628 "numbers. Assuming a 512 byte sector size, this means that MBR cannot "
41629 "address a partition located beyond 2 TB on the disk."
41633 #: ../src/guestfs.pod:3184
41635 "It is recommended that you use GPT partitions on disks which are larger than "
41636 "this size. GPT uses 64 bit sector numbers and so can address partitions "
41637 "which are theoretically larger than the largest disk we could support."
41641 #: ../src/guestfs.pod:3189
41642 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
41646 #: ../src/guestfs.pod:3191
41648 "This depends on the filesystem type. libguestfs itself does not impose any "
41649 "known limit. Consult Wikipedia or the filesystem documentation to find out "
41650 "what these limits are."
41654 #: ../src/guestfs.pod:3195
41655 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
41659 #: ../src/guestfs.pod:3197
41661 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
41662 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
41663 "uploads and downloads."
41667 #: ../src/guestfs.pod:3201
41668 msgid "INSPECTION LIMITS"
41672 #: ../src/guestfs.pod:3203
41674 "The inspection code has several arbitrary limits on things like the size of "
41675 "Windows Registry hive it will read, and the length of product name. These "
41676 "are intended to stop a malicious guest from consuming arbitrary amounts of "
41677 "memory and disk space on the host, and should not be reached in practice. "
41678 "See the source code for more information."
41682 #: ../src/guestfs.pod:3229
41684 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
41685 "effect as calling C<guestfs_set_verbose (g, 1)>."
41689 #: ../src/guestfs.pod:3241
41691 "Set the path that libguestfs uses to search for a supermin appliance. See "
41692 "the discussion of paths in section L</PATH> above."
41696 #: ../src/guestfs.pod:3250
41697 msgid "See also L</QEMU WRAPPERS> above."
41701 #: ../src/guestfs.pod:3254
41703 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
41704 "effect as calling C<guestfs_set_trace (g, 1)>."
41708 #: ../src/guestfs.pod:3272
41710 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
41711 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
41712 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
41713 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
41714 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
41715 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
41716 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
41717 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
41718 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
41719 ">, L<http://libguestfs.org/>."
41723 #: ../src/guestfs.pod:3308
41725 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
41726 "(8)>, L<disktype(1)>."
41730 #: ../src/guestfs.pod:3315 ../tools/virt-make-fs.pl:571
41731 #: ../tools/virt-win-reg.pl:772
41736 #: ../src/guestfs.pod:3317
41737 msgid "To get a list of bugs against libguestfs use this link:"
41739 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
41743 #: ../src/guestfs.pod:3319
41745 "L<https://bugzilla.redhat.com/buglist.cgi?"
41746 "component=libguestfs&product=Virtualization+Tools>"
41748 "L<https://bugzilla.redhat.com/buglist.cgi?"
41749 "component=libguestfs&product=Virtualization+Tools>"
41752 #: ../src/guestfs.pod:3321
41753 msgid "To report a new bug against libguestfs use this link:"
41754 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
41757 #: ../src/guestfs.pod:3323
41759 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41760 "component=libguestfs&product=Virtualization+Tools>"
41762 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41763 "component=libguestfs&product=Virtualization+Tools>"
41766 #: ../src/guestfs.pod:3325
41767 msgid "When reporting a bug, please check:"
41771 #: ../src/guestfs.pod:3331
41772 msgid "That the bug hasn't been reported already."
41776 #: ../src/guestfs.pod:3335
41777 msgid "That you are testing a recent version."
41781 #: ../src/guestfs.pod:3339
41782 msgid "Describe the bug accurately, and give a way to reproduce it."
41786 #: ../src/guestfs.pod:3343
41788 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
41793 #: ../test-tool/libguestfs-test-tool.pod:5
41794 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
41798 #: ../test-tool/libguestfs-test-tool.pod:9
41801 " libguestfs-test-tool [--options]\n"
41806 #: ../test-tool/libguestfs-test-tool.pod:13
41808 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
41809 "to check basic libguestfs functionality is working. This is needed because "
41810 "libguestfs occasionally breaks for reasons beyond our control: usually "
41811 "because of changes in the underlying qemu or kernel packages, or the host "
41816 #: ../test-tool/libguestfs-test-tool.pod:19
41817 msgid "If you suspect a problem in libguestfs, then just run:"
41821 #: ../test-tool/libguestfs-test-tool.pod:21
41824 " libguestfs-test-tool\n"
41829 #: ../test-tool/libguestfs-test-tool.pod:23
41830 msgid "It will print lots of diagnostic messages."
41834 #: ../test-tool/libguestfs-test-tool.pod:25
41835 msgid "If it runs to completion successfully, you will see this near the end:"
41839 #: ../test-tool/libguestfs-test-tool.pod:27
41842 " ===== TEST FINISHED OK =====\n"
41847 #: ../test-tool/libguestfs-test-tool.pod:29
41848 msgid "and the test tool will exit with code 0."
41852 #: ../test-tool/libguestfs-test-tool.pod:31
41854 "If it fails (and/or exits with non-zero error code), please paste the "
41855 "I<complete, unedited> output of the test tool into a bug report. More "
41856 "information about reporting bugs can be found on the L<http://libguestfs.org/"
41861 #: ../test-tool/libguestfs-test-tool.pod:42
41862 msgid "Display short usage information and exit."
41866 #: ../test-tool/libguestfs-test-tool.pod:44
41867 msgid "B<--qemu qemu_binary>"
41871 #: ../test-tool/libguestfs-test-tool.pod:46
41873 "If you have downloaded another qemu binary, point this option at the full "
41874 "path of the binary to try it."
41878 #: ../test-tool/libguestfs-test-tool.pod:49
41879 msgid "B<--qemudir qemu_source_dir>"
41883 #: ../test-tool/libguestfs-test-tool.pod:51
41885 "If you have compiled qemu from source, point this option at the source "
41886 "directory to try it."
41890 #: ../test-tool/libguestfs-test-tool.pod:54
41895 #: ../test-tool/libguestfs-test-tool.pod:56
41896 msgid "B<--timeout N>"
41900 #: ../test-tool/libguestfs-test-tool.pod:58
41902 "Set the launch timeout to C<N> seconds. The default is 600 seconds (10 "
41903 "minutes) which does not usually need to be adjusted."
41907 #: ../test-tool/libguestfs-test-tool.pod:63
41908 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
41912 #: ../test-tool/libguestfs-test-tool.pod:65
41914 "If you have compiled another version of qemu from source and would like to "
41915 "try that, then you can use the I<--qemudir> option to point to the qemu "
41916 "source directory."
41920 #: ../test-tool/libguestfs-test-tool.pod:69
41922 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
41923 "option to point to the binary."
41927 #: ../test-tool/libguestfs-test-tool.pod:72
41929 "Note when using these options, you can ignore the business of qemu wrapper "
41930 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
41931 "wrapper script for you if one is needed."
41935 #: ../test-tool/libguestfs-test-tool.pod:76
41936 msgid "TRYING OUT A DIFFERENT KERNEL"
41940 #: ../test-tool/libguestfs-test-tool.pod:78
41942 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
41943 "libguestfs tries. You do this by setting the environment variables "
41944 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
41948 #: ../test-tool/libguestfs-test-tool.pod:82
41950 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
41955 #: ../test-tool/libguestfs-test-tool.pod:85
41956 msgid "SELF-DIAGNOSIS"
41960 #: ../test-tool/libguestfs-test-tool.pod:87
41962 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
41963 "produced by libguestfs-test-tool and/or possible errors."
41967 #: ../test-tool/libguestfs-test-tool.pod:92
41969 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
41970 "I<1> if there was an error."
41974 #: ../test-tool/libguestfs-test-tool.pod:97
41976 "For the full list of environment variables which may affect libguestfs, "
41977 "please see the L<guestfs(3)> manual page."
41981 #: ../test-tool/libguestfs-test-tool.pod:102
41982 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
41986 #: ../tools/virt-list-filesystems.pl:32
41988 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
41992 #: ../tools/virt-list-filesystems.pl:36
41995 " virt-list-filesystems [--options] domname\n"
42000 #: ../tools/virt-list-filesystems.pl:38
42003 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
42008 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
42010 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
42015 #: ../tools/virt-list-filesystems.pl:45
42017 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
42018 "are contained in a virtual machine or disk image."
42022 #: ../tools/virt-list-filesystems.pl:49
42024 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
42025 "functionality. For more complex cases you should look at the L<guestfish(1)"
42030 #: ../tools/virt-list-filesystems.pl:112
42032 "With this option, C<virt-list-filesystems> displays the type of each "
42033 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
42037 #: ../tools/virt-list-filesystems.pl:119
42042 #: ../tools/virt-list-filesystems.pl:123
42044 "Normally we only show mountable filesystems. If this option is given then "
42045 "swap devices are shown too."
42049 #: ../tools/virt-list-filesystems.pl:197
42051 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42052 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42053 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42055 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42056 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42057 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42060 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
42061 msgid "Copyright (C) 2009 Red Hat Inc."
42062 msgstr "© Red Hat Inc., 2009"
42065 #: ../tools/virt-list-partitions.pl:32
42067 "virt-list-partitions - List partitions in a virtual machine or disk image"
42071 #: ../tools/virt-list-partitions.pl:36
42074 " virt-list-partitions [--options] domname\n"
42077 " virt-list-partitions [--параметри] назва_домену\n"
42081 #: ../tools/virt-list-partitions.pl:38
42084 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
42087 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
42091 #: ../tools/virt-list-partitions.pl:45
42093 "C<virt-list-partitions> is a command line tool to list the partitions that "
42094 "are contained in a virtual machine or disk image. It is mainly useful as a "
42095 "first step to using L<virt-resize(1)>."
42099 #: ../tools/virt-list-partitions.pl:50
42101 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
42102 "functionality. For more complex cases you should look at the L<guestfish(1)"
42107 #: ../tools/virt-list-partitions.pl:113
42108 msgid "Show sizes in human-readable form (eg. \"1G\")."
42112 #: ../tools/virt-list-partitions.pl:123
42114 "With this option, C<virt-list-partitions> displays the type and size of each "
42115 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
42119 #: ../tools/virt-list-partitions.pl:130
42124 #: ../tools/virt-list-partitions.pl:132
42126 msgstr "B<--total>"
42129 #: ../tools/virt-list-partitions.pl:134
42131 "Display the total size of each block device (as a separate row or rows)."
42135 #: ../tools/virt-list-partitions.pl:267
42137 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42138 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42139 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42141 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42142 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42143 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42146 #: ../tools/virt-list-partitions.pl:283
42147 msgid "Copyright (C) 2009-2010 Red Hat Inc."
42148 msgstr "© Red Hat Inc., 2009–2010"
42151 #: ../tools/virt-make-fs.pl:37
42152 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
42156 #: ../tools/virt-make-fs.pl:41
42159 " virt-make-fs [--options] input.tar output.img\n"
42164 #: ../tools/virt-make-fs.pl:43
42167 " virt-make-fs [--options] input.tar.gz output.img\n"
42172 #: ../tools/virt-make-fs.pl:45
42175 " virt-make-fs [--options] directory output.img\n"
42180 #: ../tools/virt-make-fs.pl:49
42182 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
42183 "archive or some files in a directory. It is similar to tools like L<mkisofs"
42184 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, it can "
42185 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
42186 "you want to attach these filesystems to existing virtual machines (eg. to "
42187 "import large amounts of read-only data to a VM)."
42191 #: ../tools/virt-make-fs.pl:57
42192 msgid "Basic usage is:"
42196 #: ../tools/virt-make-fs.pl:59
42199 #| " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42202 " virt-make-fs input output.img\n"
42205 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42209 #: ../tools/virt-make-fs.pl:61
42211 "where C<input> is either a directory containing files that you want to add, "
42212 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
42213 "C<output.img> is a disk image. The input type is detected automatically. "
42214 "The output disk image defaults to a raw ext2 sparse image unless you specify "
42215 "extra flags (see L</OPTIONS> below)."
42219 #: ../tools/virt-make-fs.pl:67
42220 msgid "FILESYSTEM TYPE"
42221 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
42224 #: ../tools/virt-make-fs.pl:69
42226 "The default filesystem type is C<ext2>. Just about any filesystem type that "
42227 "libguestfs supports can be used (but I<not> read-only formats like "
42228 "ISO9660). Here are some of the more common choices:"
42232 #: ../tools/virt-make-fs.pl:75
42237 #: ../tools/virt-make-fs.pl:77
42239 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
42240 "you are not going to use the filesystem in a way that requires the journal, "
42241 "then this is just wasted overhead."
42245 #: ../tools/virt-make-fs.pl:81
42246 msgid "I<ntfs> or I<vfat>"
42247 msgstr "I<ntfs> або I<vfat>"
42250 #: ../tools/virt-make-fs.pl:83
42251 msgid "Useful if exporting data to a Windows guest."
42255 #: ../tools/virt-make-fs.pl:85
42257 "I<Note for vfat>: The tar archive or local directory must only contain files "
42258 "which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
42259 "program running within libguestfs is unable to change the ownership of non-"
42260 "root files, since vfat itself does not support this."
42264 #: ../tools/virt-make-fs.pl:90
42269 #: ../tools/virt-make-fs.pl:92
42271 "Lower overhead than C<ext2>, but certain limitations on filename length and "
42272 "total filesystem size."
42276 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
42277 #: ../tools/virt-make-fs.pl:149
42282 #: ../tools/virt-make-fs.pl:99
42285 " virt-make-fs --type=minix input minixfs.img\n"
42290 #: ../tools/virt-make-fs.pl:101
42291 msgid "TO PARTITION OR NOT TO PARTITION"
42295 #: ../tools/virt-make-fs.pl:103
42296 msgid "Optionally virt-make-fs can add a partition table to the output disk."
42300 #: ../tools/virt-make-fs.pl:105
42302 "Adding a partition can make the disk image more compatible with certain "
42303 "virtualized operating systems which don't expect to see a filesystem "
42304 "directly located on a block device (Linux doesn't care and will happily "
42305 "handle both types)."
42309 #: ../tools/virt-make-fs.pl:110
42311 "On the other hand, if you have a partition table then the output image is no "
42312 "longer a straight filesystem. For example you cannot run L<fsck(8)> "
42313 "directly on a partitioned disk image. (However libguestfs tools such as "
42314 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
42318 #: ../tools/virt-make-fs.pl:118
42319 msgid "Add an MBR partition:"
42323 #: ../tools/virt-make-fs.pl:120
42326 " virt-make-fs --partition -- input disk.img\n"
42331 #: ../tools/virt-make-fs.pl:122
42333 "If the output disk image could be terabyte-sized or larger, it's better to "
42334 "use an EFI/GPT-compatible partition table:"
42338 #: ../tools/virt-make-fs.pl:125
42341 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
42346 #: ../tools/virt-make-fs.pl:127
42347 msgid "EXTRA SPACE"
42351 #: ../tools/virt-make-fs.pl:129
42353 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
42354 "the files that it contains, but might have extra space. Depending on how "
42355 "you are going to use the output, you might think this extra space is wasted "
42356 "and want to minimize it, or you might want to leave space so that more files "
42357 "can be added later. Virt-make-fs defaults to minimizing the extra space, "
42358 "but you can use the I<--size> flag to leave space in the filesystem if you "
42363 #: ../tools/virt-make-fs.pl:137
42365 "An alternative way to leave extra space but not make the output image any "
42366 "bigger is to use an alternative disk image format (instead of the default "
42367 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
42368 "image format (check your hypervisor supports this before using it). This "
42369 "allows you to choose a large I<--size> but the extra space won't actually be "
42370 "allocated in the image until you try to store something in it."
42374 #: ../tools/virt-make-fs.pl:145
42376 "Don't forget that you can also use local commands including L<resize2fs(8)> "
42377 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
42378 "to build another image from scratch."
42382 #: ../tools/virt-make-fs.pl:151
42385 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42388 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42392 #: ../tools/virt-make-fs.pl:179
42393 msgid "Enable debugging information."
42394 msgstr "Увімкнути виведення діагностичних даних."
42397 #: ../tools/virt-make-fs.pl:185
42398 msgid "B<--size=E<lt>NE<gt>>"
42399 msgstr "B<--size=E<lt>NE<gt>>"
42402 #: ../tools/virt-make-fs.pl:187
42403 msgid "B<--size=+E<lt>NE<gt>>"
42404 msgstr "B<--size=+E<lt>NE<gt>>"
42407 #: ../tools/virt-make-fs.pl:189
42408 msgid "B<-s E<lt>NE<gt>>"
42409 msgstr "B<-s E<lt>NE<gt>>"
42412 #: ../tools/virt-make-fs.pl:191
42413 msgid "B<-s +E<lt>NE<gt>>"
42414 msgstr "B<-s +E<lt>NE<gt>>"
42417 #: ../tools/virt-make-fs.pl:193
42419 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
42423 #: ../tools/virt-make-fs.pl:196
42425 "If this option is I<not> given, then the output image will be just large "
42426 "enough to contain all the files, with not much wasted space."
42430 #: ../tools/virt-make-fs.pl:199
42432 "To choose a fixed size output disk, specify an absolute number followed by b/"
42433 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42434 "Petabytes or Exabytes. This must be large enough to contain all the input "
42435 "files, else you will get an error."
42439 #: ../tools/virt-make-fs.pl:204
42441 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
42442 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42443 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
42444 "the input files, and (approximately) an extra 200 MB free space."
42448 #: ../tools/virt-make-fs.pl:210
42450 "Note that virt-make-fs estimates free space, and therefore will not produce "
42451 "filesystems containing precisely the free space requested. (It is much more "
42452 "expensive and time-consuming to produce a filesystem which has precisely the "
42453 "desired free space)."
42457 #: ../tools/virt-make-fs.pl:219
42458 msgid "B<--format=E<lt>fmtE<gt>>"
42462 #: ../tools/virt-make-fs.pl:221
42463 msgid "B<-F E<lt>fmtE<gt>>"
42467 #: ../tools/virt-make-fs.pl:223
42468 msgid "Choose the output disk image format."
42472 #: ../tools/virt-make-fs.pl:225
42473 msgid "The default is C<raw> (raw sparse disk image)."
42477 #: ../tools/virt-make-fs.pl:227
42479 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
42480 "that would really make sense here is C<qcow2>."
42484 #: ../tools/virt-make-fs.pl:234
42485 msgid "B<--type=E<lt>fsE<gt>>"
42489 #: ../tools/virt-make-fs.pl:236
42490 msgid "B<-t E<lt>fsE<gt>>"
42494 #: ../tools/virt-make-fs.pl:238
42495 msgid "Choose the output filesystem type."
42499 #: ../tools/virt-make-fs.pl:240
42500 msgid "The default is C<ext2>."
42501 msgstr "Типовим значенням є C<ext2>."
42504 #: ../tools/virt-make-fs.pl:242
42506 "Any filesystem which is supported read-write by libguestfs can be used here."
42510 #: ../tools/virt-make-fs.pl:249
42511 msgid "B<--partition>"
42512 msgstr "B<--partition>"
42515 #: ../tools/virt-make-fs.pl:251
42516 msgid "B<--partition=E<lt>parttypeE<gt>>"
42520 #: ../tools/virt-make-fs.pl:253
42522 "If specified, this flag adds an MBR partition table to the output disk image."
42526 #: ../tools/virt-make-fs.pl:256
42528 "You can change the partition table type, eg. I<--partition=gpt> for large "
42533 #: ../tools/virt-make-fs.pl:259
42535 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
42536 "might consider the next parameter to be the partition type. For example:"
42540 #: ../tools/virt-make-fs.pl:263
42543 #| " virt-make-fs --partition input.tar ...\n"
42546 " virt-make-fs --partition input.tar output.img\n"
42549 " virt-make-fs --partition input.tar ...\n"
42553 #: ../tools/virt-make-fs.pl:265
42555 "would cause virt-make-fs to think you wanted to use a partition type of "
42556 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
42557 "dash) between options and the input and output arguments:"
42561 #: ../tools/virt-make-fs.pl:269
42564 #| " virt-make-fs --partition -- input.tar ...\n"
42567 " virt-make-fs --partition -- input.tar output.img\n"
42570 " virt-make-fs --partition -- input.tar ...\n"
42574 #: ../tools/virt-make-fs.pl:271
42575 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
42579 #: ../tools/virt-make-fs.pl:559
42581 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42582 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42583 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42585 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42586 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42587 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42590 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
42592 "When reporting bugs, please enable debugging and capture the I<complete> "
42597 #: ../tools/virt-make-fs.pl:576
42600 " export LIBGUESTFS_DEBUG=1\n"
42601 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42604 " export LIBGUESTFS_DEBUG=1\n"
42605 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42609 #: ../tools/virt-make-fs.pl:579
42611 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
42616 #: ../tools/virt-tar.pl:33
42617 msgid "virt-tar - Extract or upload files to a virtual machine"
42621 #: ../tools/virt-tar.pl:37
42624 " virt-tar [--options] -x domname directory tarball\n"
42629 #: ../tools/virt-tar.pl:39
42632 " virt-tar [--options] -u domname tarball directory\n"
42637 #: ../tools/virt-tar.pl:41
42640 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
42645 #: ../tools/virt-tar.pl:43
42648 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
42653 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
42658 #: ../tools/virt-tar.pl:47
42660 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
42661 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
42665 #: ../tools/virt-tar.pl:52
42666 msgid "Download C</home> from the VM into a local tarball:"
42670 #: ../tools/virt-tar.pl:54
42673 " virt-tar -x domname /home home.tar\n"
42678 #: ../tools/virt-tar.pl:56
42681 " virt-tar -zx domname /home home.tar.gz\n"
42686 #: ../tools/virt-tar.pl:58
42687 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
42691 #: ../tools/virt-tar.pl:60
42694 " virt-tar -u domname uploadstuff.tar /tmp\n"
42699 #: ../tools/virt-tar.pl:62
42702 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
42707 #: ../tools/virt-tar.pl:66
42709 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
42710 "virtual machines. If you do this, you risk disk corruption in the VM. "
42711 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
42715 #: ../tools/virt-tar.pl:71
42717 "You can use I<-x> (extract) on live virtual machines, but you might get "
42718 "inconsistent results or errors if there is filesystem activity inside the "
42719 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
42720 "work, but the only way to guarantee consistent results is if the virtual "
42721 "machine is shut down."
42725 #: ../tools/virt-tar.pl:79
42727 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
42728 "parts of a guest filesystem. There are many possibilities: making backups, "
42729 "uploading data files, snooping on guest activity, fixing or customizing "
42734 #: ../tools/virt-tar.pl:84
42736 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
42737 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
42738 "should look at the L<guestfish(1)> tool."
42742 #: ../tools/virt-tar.pl:88
42744 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
42745 "its contents (recursively) from the virtual machine into a local tarball. "
42746 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
42747 "virtual machine. You cannot use these two options together."
42751 #: ../tools/virt-tar.pl:94
42753 "In addition, you may need to use the I<-z> (gZip) option to enable "
42754 "compression. When uploading, you have to specify I<-z> if the upload file "
42755 "is compressed because virt-tar won't detect this on its own."
42759 #: ../tools/virt-tar.pl:98
42761 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
42762 "example it cannot do PKZip files or bzip2 compression. If you want that "
42763 "then you'll have to rebuild the tarballs yourself. (This is a limitation of "
42764 "the L<libguestfs(3)> API)."
42768 #: ../tools/virt-tar.pl:160
42769 msgid "B<--extract>"
42770 msgstr "B<--extract>"
42773 #: ../tools/virt-tar.pl:162
42774 msgid "B<--download>"
42775 msgstr "B<--download>"
42778 #: ../tools/virt-tar.pl:164
42783 #: ../tools/virt-tar.pl:166
42784 msgid "B<--upload>"
42785 msgstr "B<--upload>"
42788 #: ../tools/virt-tar.pl:168
42790 "Use I<-x> to extract (download) a directory from a virtual machine to a "
42795 #: ../tools/virt-tar.pl:171
42797 "Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
42798 "Please read the L</WARNING> section above before using this option."
42802 #: ../tools/virt-tar.pl:175
42803 msgid "You must specify exactly one of these options."
42807 #: ../tools/virt-tar.pl:181
42812 #: ../tools/virt-tar.pl:183
42817 #: ../tools/virt-tar.pl:185
42818 msgid "Specify that the input or output tarball is gzip-compressed."
42822 #: ../tools/virt-tar.pl:298
42824 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42825 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42826 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42829 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42830 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42831 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42835 #: ../tools/virt-win-reg.pl:37
42837 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
42841 #: ../tools/virt-win-reg.pl:41
42844 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
42849 #: ../tools/virt-win-reg.pl:43
42852 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
42857 #: ../tools/virt-win-reg.pl:45
42860 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
42865 #: ../tools/virt-win-reg.pl:47
42868 " virt-win-reg --merge domname [input.reg ...]\n"
42873 #: ../tools/virt-win-reg.pl:49
42876 " virt-win-reg [--options] disk.img ... # instead of domname\n"
42881 #: ../tools/virt-win-reg.pl:53
42883 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
42884 "virtual machines. If you do this, you I<will> get irreversible disk "
42885 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
42886 "but doesn't catch all cases."
42890 #: ../tools/virt-win-reg.pl:58
42892 "Modifying the Windows Registry is an inherently risky operation. The format "
42893 "is deliberately obscure and undocumented, and Registry changes can leave the "
42894 "system unbootable. Therefore when using the I<--merge> option, make sure "
42895 "you have a reliable backup first."
42899 #: ../tools/virt-win-reg.pl:65
42901 "This program can export and merge Windows Registry entries from a Windows "
42906 #: ../tools/virt-win-reg.pl:68
42908 "The first parameter is the libvirt guest name or the raw disk image of a "
42913 #: ../tools/virt-win-reg.pl:71
42915 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
42916 "exported (recursively). For example:"
42920 #: ../tools/virt-win-reg.pl:74
42923 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42926 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42930 #: ../tools/virt-win-reg.pl:76
42932 "You can also display single values from within registry keys, for example:"
42936 #: ../tools/virt-win-reg.pl:79
42939 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42940 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42941 " Windows 7 Enterprise\n"
42944 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42945 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42946 " Windows 7 Enterprise\n"
42950 #: ../tools/virt-win-reg.pl:83
42952 "With I<--merge>, you can merge a textual regedit file into the Windows "
42957 #: ../tools/virt-win-reg.pl:86
42960 " $ virt-win-reg --merge Windows7 changes.reg\n"
42963 " $ virt-win-reg --merge Windows7 changes.reg\n"
42967 #: ../tools/virt-win-reg.pl:90
42969 "This program is only meant for simple access to the registry. If you want "
42970 "to do complicated things with the registry, we suggest you download the "
42971 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
42972 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
42973 "L<hivexregedit(1)>."
42977 #: ../tools/virt-win-reg.pl:159
42979 msgstr "B<--merge>"
42982 #: ../tools/virt-win-reg.pl:161
42984 "In merge mode, this merges a textual regedit file into the Windows Registry "
42985 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
42986 "displays or exports Registry entries instead."
42990 #: ../tools/virt-win-reg.pl:165
42992 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
42993 "result in disk corruption. However exporting (without this flag) is always "
42998 #: ../tools/virt-win-reg.pl:173
42999 msgid "B<--encoding> UTF-16LE|ASCII"
43000 msgstr "B<--encoding> UTF-16LE|ASCII"
43003 #: ../tools/virt-win-reg.pl:175
43005 "When merging (only), you may need to specify the encoding for strings to be "
43006 "used in the hive file. This is explained in detail in L<Win::Hivex::Regedit"
43007 "(3)/ENCODING STRINGS>."
43011 #: ../tools/virt-win-reg.pl:179
43013 "The default is to use UTF-16LE, which should work with recent versions of "
43018 #: ../tools/virt-win-reg.pl:186
43019 msgid "B<--unsafe-printable-strings>"
43020 msgstr "B<--unsafe-printable-strings>"
43023 #: ../tools/virt-win-reg.pl:188
43025 "When exporting (only), assume strings are UTF-16LE and print them as strings "
43026 "instead of hex sequences. Remove the final zero codepoint from strings if "
43031 #: ../tools/virt-win-reg.pl:192
43033 "This is unsafe and does not preserve the fidelity of strings in the original "
43034 "Registry for various reasons:"
43038 #: ../tools/virt-win-reg.pl:199
43040 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
43041 "other encodings will be corrupted by this transformation."
43045 #: ../tools/virt-win-reg.pl:204
43047 "Assumes that everything which has type 1 or 2 is really a string and that "
43048 "everything else is not a string, but the type field in real Registries is "
43053 #: ../tools/virt-win-reg.pl:210
43055 "Loses information about whether a zero codepoint followed the string in the "
43060 #: ../tools/virt-win-reg.pl:215
43062 "This all happens because the Registry itself contains no information about "
43063 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
43067 #: ../tools/virt-win-reg.pl:219
43069 "You should only use this option for quick hacking and debugging of the "
43070 "Registry contents, and I<never> use it if the output is going to be passed "
43071 "into another program or stored in another Registry."
43075 #: ../tools/virt-win-reg.pl:556
43076 msgid "SUPPORTED SYSTEMS"
43077 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
43080 #: ../tools/virt-win-reg.pl:558
43082 "The program currently supports Windows NT-derived guests starting with "
43083 "Windows XP through to at least Windows 7."
43087 #: ../tools/virt-win-reg.pl:561
43088 msgid "The following Registry keys are supported:"
43092 #: ../tools/virt-win-reg.pl:565
43093 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
43094 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
43097 #: ../tools/virt-win-reg.pl:567
43098 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43099 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43102 #: ../tools/virt-win-reg.pl:569
43103 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43104 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43107 #: ../tools/virt-win-reg.pl:571
43108 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43109 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43112 #: ../tools/virt-win-reg.pl:573
43113 msgid "C<HKEY_USERS\\.DEFAULT>"
43114 msgstr "C<HKEY_USERS\\.DEFAULT>"
43117 #: ../tools/virt-win-reg.pl:575
43118 msgid "C<HKEY_USERS\\I<SID>>"
43119 msgstr "C<HKEY_USERS\\I<SID>>"
43122 #: ../tools/virt-win-reg.pl:577
43123 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
43127 #: ../tools/virt-win-reg.pl:579
43128 msgid "C<HKEY_USERS\\I<username>>"
43129 msgstr "C<HKEY_USERS\\I<користувач>>"
43132 #: ../tools/virt-win-reg.pl:581
43134 "where I<username> is a local user name (this is a libguestfs extension)."
43138 #: ../tools/virt-win-reg.pl:585
43140 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
43145 #: ../tools/virt-win-reg.pl:588
43147 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
43148 "supported (there is no \"current user\")."
43152 #: ../tools/virt-win-reg.pl:591
43157 #: ../tools/virt-win-reg.pl:593
43159 "C<virt-win-reg> expects that regedit files have already been reencoded in "
43160 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
43161 "style line endings. Since Windows regedit files are often in UTF-16LE with "
43162 "Windows-style line endings, you may need to reencode the whole file before "
43163 "or after processing."
43167 #: ../tools/virt-win-reg.pl:599
43169 "To reencode a file from Windows format to Linux (before processing it with "
43170 "the I<--merge> option), you would do something like this:"
43174 #: ../tools/virt-win-reg.pl:602
43177 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43180 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43184 #: ../tools/virt-win-reg.pl:604
43186 "To go in the opposite direction, after exporting and before sending the file "
43187 "to a Windows user, do something like this:"
43191 #: ../tools/virt-win-reg.pl:607
43194 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43197 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43201 #: ../tools/virt-win-reg.pl:609
43202 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
43206 #: ../tools/virt-win-reg.pl:611
43208 "If you are unsure about the current encoding, use the L<file(1)> command. "
43209 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
43210 "style (CRLF) line endings, like this:"
43214 #: ../tools/virt-win-reg.pl:615
43217 " $ file software.reg\n"
43218 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
43219 " with CRLF line terminators\n"
43224 #: ../tools/virt-win-reg.pl:619
43225 msgid "This file would need conversion before you could I<--merge> it."
43229 #: ../tools/virt-win-reg.pl:621
43230 msgid "CurrentControlSet etc."
43234 #: ../tools/virt-win-reg.pl:623
43236 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
43237 "Registry at the level of the hive file, and therefore you cannot modify "
43242 #: ../tools/virt-win-reg.pl:627
43244 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
43245 "circumstances it might refer to another control set. The way to find out is "
43246 "to look at the C<HKLM\\SYSTEM\\Select> key:"
43250 #: ../tools/virt-win-reg.pl:631
43253 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43254 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43255 " \"Current\"=dword:00000001\n"
43256 " \"Default\"=dword:00000001\n"
43257 " \"Failed\"=dword:00000000\n"
43258 " \"LastKnownGood\"=dword:00000002\n"
43261 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43262 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43263 " \"Current\"=dword:00000001\n"
43264 " \"Default\"=dword:00000001\n"
43265 " \"Failed\"=dword:00000000\n"
43266 " \"LastKnownGood\"=dword:00000002\n"
43270 #: ../tools/virt-win-reg.pl:638
43271 msgid "\"Current\" is the one which Windows will choose when it boots."
43275 #: ../tools/virt-win-reg.pl:640
43277 "Similarly, other C<Current...> keys in the path may need to be replaced."
43281 #: ../tools/virt-win-reg.pl:643
43282 msgid "DELETING REGISTRY KEYS AND VALUES"
43286 #: ../tools/virt-win-reg.pl:645
43287 msgid "To delete a whole registry key, use the syntax:"
43291 #: ../tools/virt-win-reg.pl:647
43293 #| msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
43295 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
43297 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
43300 #: ../tools/virt-win-reg.pl:649
43301 msgid "To delete a single value within a key, use the syntax:"
43305 #: ../tools/virt-win-reg.pl:651
43307 #| msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
43309 " [HKEY_LOCAL_MACHINE\\Foo]\n"
43312 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
43315 #: ../tools/virt-win-reg.pl:654
43316 msgid "WINDOWS TIPS"
43320 #: ../tools/virt-win-reg.pl:656
43322 "Note that some of these tips modify the guest disk image. The guest I<must> "
43323 "be shut off, else you will get disk corruption."
43327 #: ../tools/virt-win-reg.pl:659
43328 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
43332 #: ../tools/virt-win-reg.pl:661
43334 "Prepare a DOS batch script, VBScript or executable. Upload this using "
43335 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
43336 "is uploaded into C<C:\\>:"
43340 #: ../tools/virt-win-reg.pl:665
43343 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
43346 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
43350 #: ../tools/virt-win-reg.pl:667
43351 msgid "Prepare a regedit file containing the registry change:"
43355 #: ../tools/virt-win-reg.pl:669
43358 " cat > test.reg <<'EOF'\n"
43359 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
43360 " \"Test\"=\"c:\\\\test.bat\"\n"
43364 " cat > test.reg <<'EOF'\n"
43365 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
43366 " \"Test\"=\"c:\\\\test.bat\"\n"
43371 #: ../tools/virt-win-reg.pl:674
43373 "In this example we use the key C<RunOnce> which means that the script will "
43374 "run precisely once when the first user logs in. If you want it to run every "
43375 "time a user logs in, replace C<RunOnce> with C<Run>."
43379 #: ../tools/virt-win-reg.pl:678
43380 msgid "Now update the registry:"
43381 msgstr "Оновіть регістр:"
43384 #: ../tools/virt-win-reg.pl:680
43387 " virt-win-reg --merge WindowsGuest test.reg\n"
43392 #: ../tools/virt-win-reg.pl:682
43393 msgid "INSTALLING A SERVICE"
43397 #: ../tools/virt-win-reg.pl:684
43399 "This section assumes you are familiar with Windows services, and you either "
43400 "have a program which handles the Windows Service Control Protocol directly "
43401 "or you want to run any program using a service wrapper like SrvAny or the "
43406 #: ../tools/virt-win-reg.pl:689
43408 "First upload the program and optionally the service wrapper. In this case "
43409 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
43413 #: ../tools/virt-win-reg.pl:693
43416 " guestfish -i -d WindowsGuest <<EOF\n"
43417 " upload rhsrvany.exe /rhsrvany.exe\n"
43418 " upload test.exe /test.exe\n"
43422 " guestfish -i -d WindowsGuest <<EOF\n"
43423 " upload rhsrvany.exe /rhsrvany.exe\n"
43424 " upload test.exe /test.exe\n"
43429 #: ../tools/virt-win-reg.pl:698
43431 "Prepare a regedit file containing the registry changes. In this example, "
43432 "the first registry change is needed for the service itself or the service "
43433 "wrapper (if used). The second registry change is only needed because I am "
43434 "using the RHSrvAny service wrapper."
43438 #: ../tools/virt-win-reg.pl:703
43441 " cat > service.reg <<'EOF'\n"
43442 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
43443 " \"Type\"=dword:00000010\n"
43444 " \"Start\"=dword:00000002\n"
43445 " \"ErrorControl\"=dword:00000001\n"
43446 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
43447 " \"DisplayName\"=\"RHSrvAny\"\n"
43448 " \"ObjectName\"=\"NetworkService\"\n"
43451 " cat > service.reg <<'EOF'\n"
43452 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
43453 " \"Type\"=dword:00000010\n"
43454 " \"Start\"=dword:00000002\n"
43455 " \"ErrorControl\"=dword:00000001\n"
43456 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
43457 " \"DisplayName\"=\"RHSrvAny\"\n"
43458 " \"ObjectName\"=\"NetworkService\"\n"
43462 #: ../tools/virt-win-reg.pl:712
43465 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
43466 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
43467 " \"PWD\"=\"c:\\\\Temp\"\n"
43471 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
43472 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
43473 " \"PWD\"=\"c:\\\\Temp\"\n"
43478 #: ../tools/virt-win-reg.pl:723
43480 "For use of C<ControlSet001> see the section above in this manual page. You "
43481 "may need to adjust this according to the control set that is in use by the "
43486 #: ../tools/virt-win-reg.pl:729
43488 "C<\"ObjectName\"> controls the privileges that the service will have. An "
43489 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
43490 "privileged account."
43494 #: ../tools/virt-win-reg.pl:735
43496 "For the meaning of the magic numbers, see this Microsoft KB article: "
43497 "L<http://support.microsoft.com/kb/103000>."
43501 #: ../tools/virt-win-reg.pl:740
43502 msgid "Update the registry:"
43503 msgstr "Оновіть регістр:"
43506 #: ../tools/virt-win-reg.pl:742
43509 " virt-win-reg --merge WindowsGuest service.reg\n"
43514 #: ../tools/virt-win-reg.pl:746
43516 "Be careful when passing parameters containing C<\\> (backslash) in the "
43517 "shell. Usually you will have to use 'single quotes' or double backslashes "
43518 "(but not both) to protect them from the shell."
43522 #: ../tools/virt-win-reg.pl:750
43523 msgid "Paths and value names are case-insensitive."
43527 #: ../tools/virt-win-reg.pl:759
43529 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
43530 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
43531 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43533 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
43534 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
43535 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43538 #: ../tools/virt-win-reg.pl:777
43541 " export LIBGUESTFS_DEBUG=1\n"
43542 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
43547 #: ../tools/virt-win-reg.pl:780
43549 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
43554 #~ " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
43557 #~ " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"