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-24 17:16+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:241 ../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:245 ../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:2862
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:470
490 #: ../sparsify/virt-sparsify.pod:153
495 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:472
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:540
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:542
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:544
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:191
837 #: ../cat/virt-filesystems.pod:365 ../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:655
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:193
849 #: ../cat/virt-filesystems.pod:367 ../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:657
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:198
865 #: ../cat/virt-filesystems.pod:372 ../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:662 ../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 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
883 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
884 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
885 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
886 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
887 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
888 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
889 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
890 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
891 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
892 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
893 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
894 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
895 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
896 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
897 #: ../fish/guestfish-actions.pod:395 ../fish/guestfish-actions.pod:403
898 #: ../fish/guestfish-actions.pod:410 ../fish/guestfish-actions.pod:417
899 #: ../fish/guestfish-actions.pod:1144 ../fish/guestfish-actions.pod:1148
900 #: ../fish/guestfish-actions.pod:1152 ../fish/guestfish-actions.pod:1156
901 #: ../fish/guestfish-actions.pod:1164 ../fish/guestfish-actions.pod:1168
902 #: ../fish/guestfish-actions.pod:1172 ../fish/guestfish-actions.pod:1182
903 #: ../fish/guestfish-actions.pod:1186 ../fish/guestfish-actions.pod:1190
904 #: ../fish/guestfish-actions.pod:1280 ../fish/guestfish-actions.pod:1284
905 #: ../fish/guestfish-actions.pod:1289 ../fish/guestfish-actions.pod:1294
906 #: ../fish/guestfish-actions.pod:1336 ../fish/guestfish-actions.pod:1340
907 #: ../fish/guestfish-actions.pod:1345 ../fish/guestfish-actions.pod:1601
908 #: ../fish/guestfish-actions.pod:1608 ../fish/guestfish-actions.pod:1615
909 #: ../fish/guestfish-actions.pod:2018 ../fish/guestfish-actions.pod:2024
910 #: ../fish/guestfish-actions.pod:2032 ../fish/guestfish-actions.pod:2039
911 #: ../fish/guestfish-actions.pod:2046 ../fish/guestfish.pod:445
912 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
913 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
914 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:338
915 #: ../resize/virt-resize.pod:342 ../resize/virt-resize.pod:351
916 #: ../resize/virt-resize.pod:357 ../sparsify/virt-sparsify.pod:32
917 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
918 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
919 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
920 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
921 #: ../src/guestfs-actions.pod:594 ../src/guestfs-actions.pod:602
922 #: ../src/guestfs-actions.pod:609 ../src/guestfs-actions.pod:616
923 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1788
924 #: ../src/guestfs-actions.pod:1792 ../src/guestfs-actions.pod:1796
925 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:1808
926 #: ../src/guestfs-actions.pod:1812 ../src/guestfs-actions.pod:1822
927 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:1830
928 #: ../src/guestfs-actions.pod:1968 ../src/guestfs-actions.pod:1972
929 #: ../src/guestfs-actions.pod:1977 ../src/guestfs-actions.pod:1982
930 #: ../src/guestfs-actions.pod:2043 ../src/guestfs-actions.pod:2047
931 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2467
932 #: ../src/guestfs-actions.pod:2474 ../src/guestfs-actions.pod:2481
933 #: ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3032
934 #: ../src/guestfs-actions.pod:3040 ../src/guestfs-actions.pod:3047
935 #: ../src/guestfs-actions.pod:3054 ../src/guestfs.pod:388
936 #: ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402
937 #: ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416
938 #: ../src/guestfs.pod:421 ../src/guestfs.pod:1094 ../src/guestfs.pod:1098
939 #: ../src/guestfs.pod:1102 ../src/guestfs.pod:1107 ../src/guestfs.pod:1115
940 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1142 ../src/guestfs.pod:1164
941 #: ../src/guestfs.pod:1168 ../src/guestfs.pod:1172 ../src/guestfs.pod:1176
942 #: ../src/guestfs.pod:1180 ../src/guestfs.pod:1184 ../src/guestfs.pod:1674
943 #: ../src/guestfs.pod:1679 ../src/guestfs.pod:1683 ../src/guestfs.pod:1785
944 #: ../src/guestfs.pod:1790 ../src/guestfs.pod:1794 ../src/guestfs.pod:1804
945 #: ../src/guestfs.pod:2093 ../src/guestfs.pod:2098 ../src/guestfs.pod:2104
946 #: ../src/guestfs.pod:2112 ../src/guestfs.pod:2630 ../src/guestfs.pod:2636
947 #: ../src/guestfs.pod:2641 ../src/guestfs.pod:2647 ../src/guestfs.pod:3047
948 #: ../src/guestfs.pod:3052 ../src/guestfs.pod:3056 ../src/guestfs.pod:3060
949 #: ../src/guestfs.pod:3064 ../src/guestfs.pod:3078 ../src/guestfs.pod:3083
950 #: ../src/guestfs.pod:3314 ../src/guestfs.pod:3318 ../src/guestfs.pod:3322
951 #: ../src/guestfs.pod:3326 ../tools/virt-win-reg.pl:197
952 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
953 #: ../tools/virt-win-reg.pl:721 ../tools/virt-win-reg.pl:727
954 #: ../tools/virt-win-reg.pl:733
959 #: ../align/virt-alignment-scan.pod:311
964 #: ../align/virt-alignment-scan.pod:313
966 "successful exit, all partitions are aligned E<ge> 64K for best performance"
970 #: ../align/virt-alignment-scan.pod:317
975 #: ../align/virt-alignment-scan.pod:319
976 msgid "an error scanning the disk image or guest"
980 #: ../align/virt-alignment-scan.pod:323
985 #: ../align/virt-alignment-scan.pod:325
987 "successful exit, some partitions have alignment E<lt> 64K which can result "
988 "in poor performance on high end network storage"
992 #: ../align/virt-alignment-scan.pod:330
997 #: ../align/virt-alignment-scan.pod:332
999 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1000 "poor performance on most hypervisors"
1004 #: ../align/virt-alignment-scan.pod:337 ../cat/virt-cat.pod:203
1005 #: ../cat/virt-filesystems.pod:377 ../cat/virt-ls.pod:495
1006 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:227
1007 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1008 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1009 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50
1010 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
1011 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317
1012 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
1013 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
1014 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
1015 #: ../resize/virt-resize.pod:667 ../ruby/examples/guestfs-ruby.pod:36
1016 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3255
1017 #: ../test-tool/libguestfs-test-tool.pod:100
1018 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1019 #: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296
1020 #: ../tools/virt-win-reg.pl:757
1022 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
1025 #: ../align/virt-alignment-scan.pod:339
1027 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1028 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1032 #: ../align/virt-alignment-scan.pod:346 ../cat/virt-cat.pod:212
1033 #: ../cat/virt-filesystems.pod:388 ../cat/virt-ls.pod:507
1034 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:235
1035 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296
1036 #: ../resize/virt-resize.pod:690 ../sparsify/virt-sparsify.pod:264
1037 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1038 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311
1039 #: ../tools/virt-win-reg.pl:783
1044 #: ../align/virt-alignment-scan.pod:348 ../cat/virt-cat.pod:214
1045 #: ../cat/virt-filesystems.pod:390 ../cat/virt-ls.pod:509
1046 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:237
1047 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:395
1048 #: ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:692
1049 #: ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210
1050 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584
1051 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
1052 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1053 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1056 #: ../align/virt-alignment-scan.pod:350 ../cat/virt-cat.pod:216
1057 #: ../cat/virt-filesystems.pod:392 ../cat/virt-ls.pod:511
1058 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:239
1059 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1060 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1061 #: ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64
1062 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
1063 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332
1064 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
1065 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
1066 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
1067 #: ../resize/virt-resize.pod:694 ../ruby/examples/guestfs-ruby.pod:52
1068 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3337
1069 #: ../test-tool/libguestfs-test-tool.pod:110
1070 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1071 #: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315
1072 #: ../tools/virt-win-reg.pl:787
1074 msgstr "АВТОРСЬКІ ПРАВА"
1077 #: ../align/virt-alignment-scan.pod:352 ../clone/virt-sysprep.pod:507
1078 #: ../sparsify/virt-sparsify.pod:270
1079 msgid "Copyright (C) 2011 Red Hat Inc."
1083 #: ../align/virt-alignment-scan.pod:354 ../cat/virt-cat.pod:220
1084 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:515
1085 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:243
1086 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1087 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1088 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1089 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:407
1090 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:698
1091 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
1092 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1093 #: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319
1094 #: ../tools/virt-win-reg.pl:791
1096 "This program is free software; you can redistribute it and/or modify it "
1097 "under the terms of the GNU General Public License as published by the Free "
1098 "Software Foundation; either version 2 of the License, or (at your option) "
1099 "any later version."
1103 #: ../align/virt-alignment-scan.pod:359 ../cat/virt-cat.pod:225
1104 #: ../cat/virt-filesystems.pod:401 ../cat/virt-ls.pod:520
1105 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:248
1106 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1107 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1108 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1109 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:412
1110 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:703
1111 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
1112 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1113 #: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324
1114 #: ../tools/virt-win-reg.pl:796
1116 "This program is distributed in the hope that it will be useful, but WITHOUT "
1117 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1118 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for "
1121 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
1122 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
1123 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
1124 "дізнатися з GNU General Public License."
1127 #: ../align/virt-alignment-scan.pod:364 ../cat/virt-cat.pod:230
1128 #: ../cat/virt-filesystems.pod:406 ../cat/virt-ls.pod:525
1129 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:253
1130 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1131 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1132 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1133 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:417
1134 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:708
1135 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
1136 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1137 #: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329
1138 #: ../tools/virt-win-reg.pl:801
1140 "You should have received a copy of the GNU General Public License along with "
1141 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
1142 "Ave, Cambridge, MA 02139, USA."
1144 "Ви маєте отримати копію GNU General Public License разом з цією програмою; "
1145 "якщо це не так, повідомте про факт за адресою Free Software Foundation, "
1146 "Inc., 675 Mass Ave, Cambridge, MA 02139, USA."
1149 #: ../cat/virt-cat.pod:5
1150 msgid "virt-cat - Display files in a virtual machine"
1151 msgstr "virt-cat — показ файлів у віртуальній машині"
1154 #: ../cat/virt-cat.pod:9
1157 " virt-cat [--options] -d domname file [file ...]\n"
1160 " virt-cat [--параметри] -d назва_домену файл [файл...]\n"
1164 #: ../cat/virt-cat.pod:11
1167 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1170 " virt-cat [--параметри] -a диск.img [-a диск.img ...] файл [файл...]\n"
1174 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1175 #: ../inspector/virt-inspector.pod:13
1177 msgstr "Застарілий стиль:"
1180 #: ../cat/virt-cat.pod:15
1183 " virt-cat domname file\n"
1186 " virt-cat назва_домену файл\n"
1190 #: ../cat/virt-cat.pod:17
1193 " virt-cat disk.img file\n"
1196 " virt-cat диск.img файл\n"
1200 #: ../cat/virt-cat.pod:21
1202 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1203 "C<file> exists in the named virtual machine (or disk image)."
1205 "C<virt-cat> — інструмент командного рядка для показу вмісту C<файла>, який "
1206 "зберігається у вказаній віртуальній машині (або образі диска)."
1209 #: ../cat/virt-cat.pod:24
1211 "Multiple filenames can be given, in which case they are concatenated "
1212 "together. Each filename must be a full path, starting at the root directory "
1213 "(starting with '/')."
1215 "Ви можете вказати декілька назв файлів. Вміст таких файлів буде об’єднано. "
1216 "Назви файлів слід вказувати повністю (разом зі шляхом), починаючи з "
1217 "кореневого каталогу (тобто назва має починатися з «/»)."
1220 #: ../cat/virt-cat.pod:28
1222 "C<virt-cat> can be used to quickly view a file. To edit a file, use C<virt-"
1223 "edit>. For more complex cases you should look at the L<guestfish(1)> tool "
1224 "(see L</USING GUESTFISH> below)."
1226 "C<virt-cat> можна скористатися для пришвидшення перегляду файла. Для "
1227 "редагування даних слід користуватися C<virt-edit>. Для виконання складніших "
1228 "дій можна скористатися програмою L<guestfish(1)> (див. L</USING GUESTFISH> "
1232 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1233 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1234 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1235 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1236 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1237 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1238 #: ../tools/virt-tar.pl:50
1243 #: ../cat/virt-cat.pod:34
1245 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1247 "Показ файла C</etc/fstab> з віртуальної машини libvirt з назвою C<mydomain>:"
1250 #: ../cat/virt-cat.pod:37
1253 " virt-cat -d mydomain /etc/fstab\n"
1256 " virt-cat -d mydomain /etc/fstab\n"
1260 #: ../cat/virt-cat.pod:39
1261 msgid "List syslog messages from a VM disk image file:"
1263 "Показ списку повідомлень syslog з файла образу диска віртуальної машини:"
1266 #: ../cat/virt-cat.pod:41
1269 " virt-cat -a disk.img /var/log/messages | tail\n"
1272 " virt-cat -a disk.img /var/log/messages | tail\n"
1276 #: ../cat/virt-cat.pod:43
1277 msgid "Find out what DHCP IP address a VM acquired:"
1278 msgstr "Визначення IP-адреси DHCP, використаної віртуальною машиною:"
1281 #: ../cat/virt-cat.pod:45
1284 " virt-cat -d mydomain /var/log/messages | \\\n"
1285 " grep 'dhclient: bound to' | tail\n"
1288 " virt-cat -d mydomain /var/log/messages | \\\n"
1289 " grep 'dhclient: bound to' | tail\n"
1293 #: ../cat/virt-cat.pod:48
1294 msgid "Find out what packages were recently installed:"
1295 msgstr "Пошук нещодавно встановлених пакунків:"
1298 #: ../cat/virt-cat.pod:50
1301 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1304 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1308 #: ../cat/virt-cat.pod:52
1309 msgid "Find out who is logged on inside a virtual machine:"
1310 msgstr "Визначення користувачів, які працюють у віртуальній машині:"
1313 #: ../cat/virt-cat.pod:54
1316 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1320 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1325 #: ../cat/virt-cat.pod:57
1326 msgid "or who was logged on:"
1327 msgstr "або тих, які у ній працювали:"
1330 #: ../cat/virt-cat.pod:59
1333 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1334 " last -f /tmp/wtmp\n"
1337 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1338 " last -f /tmp/wtmp\n"
1342 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1343 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1344 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
1346 "Add I<file> which should be a disk image from a virtual machine. If the "
1347 "virtual machine has multiple block devices, you must supply all of them with "
1348 "separate I<-a> options."
1352 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1353 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1354 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1355 msgid "B<--echo-keys>"
1356 msgstr "B<--echo-keys>"
1359 #: ../cat/virt-cat.pod:100
1361 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1362 "so you cannot see what you are typing. If you are not worried about Tempest "
1363 "attacks and there is no one else in the room you can specify this flag to "
1364 "see what you are typing."
1368 #: ../cat/virt-cat.pod:116
1371 " virt-cat --format=raw -a disk.img file\n"
1374 " virt-cat --format=raw -a disk.img file\n"
1378 #: ../cat/virt-cat.pod:120
1381 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1384 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1388 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1389 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1390 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1391 msgid "B<--keys-from-stdin>"
1392 msgstr "B<--keys-from-stdin>"
1395 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1396 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1397 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1399 "Read key or passphrase parameters from stdin. The default is to try to read "
1400 "passphrases from the user by opening C</dev/tty>."
1404 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1405 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
1406 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1410 #: ../cat/virt-cat.pod:154
1411 msgid "Previous versions of virt-cat allowed you to write either:"
1415 #: ../cat/virt-cat.pod:156
1418 " virt-cat disk.img [disk.img ...] file\n"
1423 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1424 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
1429 #: ../cat/virt-cat.pod:160
1432 " virt-cat guestname file\n"
1437 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1438 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
1440 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1441 "the confusing case where a disk image might have the same name as a guest."
1445 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1446 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
1447 msgid "For compatibility the old style is still supported."
1451 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
1452 msgid "USING GUESTFISH"
1453 msgstr "ВИКОРИСТАННЯ GUESTFISH"
1456 #: ../cat/virt-cat.pod:170
1458 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1459 "C<virt-cat> doesn't work."
1463 #: ../cat/virt-cat.pod:173
1464 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1468 #: ../cat/virt-cat.pod:175
1471 " guestfish --ro -i -d domname download file -\n"
1476 #: ../cat/virt-cat.pod:177
1478 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1479 "path to the file. Note the final C<-> (meaning \"output to stdout\")."
1483 #: ../cat/virt-cat.pod:181
1485 "The command above uses libguestfs's guest inspection feature and so does not "
1486 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1487 "disk images that don't contain guests. To display a file from a disk image "
1492 #: ../cat/virt-cat.pod:186
1495 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1500 #: ../cat/virt-cat.pod:188
1502 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1503 "the disk image, and C<file> is the full path to the file."
1507 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
1508 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1509 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:377
1510 #: ../resize/virt-resize.pod:664 ../sparsify/virt-sparsify.pod:229
1512 "This program returns 0 if successful, or non-zero if there was an error."
1516 #: ../cat/virt-cat.pod:205
1518 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1519 "tar-out(1)>, L<http://libguestfs.org/>."
1521 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1522 "tar-out(1)>, L<http://libguestfs.org/>."
1525 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
1526 #: ../resize/virt-resize.pod:696 ../tools/virt-make-fs.pl:588
1527 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1528 msgstr "©Red Hat Inc., 2010–2011"
1531 #: ../cat/virt-filesystems.pod:5
1533 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1534 "virtual machine or disk image"
1538 #: ../cat/virt-filesystems.pod:9
1541 " virt-filesystems [--options] -d domname\n"
1544 " virt-filesystems [--параметри] -d назва_домену\n"
1548 #: ../cat/virt-filesystems.pod:11
1551 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1556 #: ../cat/virt-filesystems.pod:15
1558 "This tool allows you to discover filesystems, partitions, logical volumes, "
1559 "and their sizes in a disk image or virtual machine. It is a replacement for "
1560 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1564 #: ../cat/virt-filesystems.pod:20
1566 "One use for this tool is from shell scripts to iterate over all filesystems "
1567 "from a disk image:"
1571 #: ../cat/virt-filesystems.pod:23
1574 " for fs in $(virt-filesystems -a disk.img); do\n"
1579 " for fs in $(virt-filesystems -a disk.img); do\n"
1585 #: ../cat/virt-filesystems.pod:27
1587 "Another use is to list partitions before using another tool to modify those "
1588 "partitions (such as L<virt-resize(1)>). If you are curious about what an "
1589 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1593 #: ../cat/virt-filesystems.pod:32
1595 "Various command line options control what this program displays. You need "
1596 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1597 "guest respectively. If you just specify that then the program shows "
1598 "filesystems found, one per line, like this:"
1602 #: ../cat/virt-filesystems.pod:37
1605 " $ virt-filesystems -a disk.img\n"
1607 " /dev/vg_guest/lv_root\n"
1610 " $ virt-filesystems -a disk.img\n"
1612 " /dev/vg_guest/lv_root\n"
1616 #: ../cat/virt-filesystems.pod:41
1618 "If you add I<-l> or I<--long> then the output includes extra information:"
1622 #: ../cat/virt-filesystems.pod:44
1625 " $ virt-filesystems -a disk.img -l\n"
1626 " Name Type VFS Label Size\n"
1627 " /dev/sda1 filesystem ext4 boot 524288000\n"
1628 " /dev/vg_guest/lv_root filesystem ext4 root 10212081664\n"
1633 #: ../cat/virt-filesystems.pod:49
1635 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1640 #: ../cat/virt-filesystems.pod:52
1643 " $ virt-filesystems -a disk.img --extra\n"
1645 " /dev/vg_guest/lv_root\n"
1646 " /dev/vg_guest/lv_swap\n"
1647 " /dev/vg_guest/lv_data\n"
1650 " $ virt-filesystems -a disk.img --extra\n"
1652 " /dev/vg_guest/lv_root\n"
1653 " /dev/vg_guest/lv_swap\n"
1654 " /dev/vg_guest/lv_data\n"
1658 #: ../cat/virt-filesystems.pod:58
1660 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1664 #: ../cat/virt-filesystems.pod:60
1667 " $ virt-filesystems -a disk.img --partitions\n"
1672 " $ virt-filesystems -a disk.img --partitions\n"
1678 #: ../cat/virt-filesystems.pod:64
1680 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1681 "volumes>, I<--block-devices> to list those items."
1685 #: ../cat/virt-filesystems.pod:67
1687 "You can use these options in combination as well (if you want a combination "
1688 "including filesystems, you have to add I<--filesystems>). Notice that some "
1689 "items fall into several categories (eg. C</dev/sda1> might be both a "
1690 "partition and a filesystem). These items are listed several times. To get "
1691 "a list which includes absolutely everything that virt-filesystems knows "
1692 "about, use the I<--all> option."
1696 #: ../cat/virt-filesystems.pod:74
1698 "UUIDs (because they are quite long) are not shown by default. Add the I<--"
1699 "uuid> option to display device and filesystem UUIDs in the long output."
1703 #: ../cat/virt-filesystems.pod:78
1705 "I<--all --long --uuid> is a useful combination to display all possible "
1706 "information about everything."
1710 #: ../cat/virt-filesystems.pod:81
1713 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1714 " Name Type VFS Label Size Parent UUID\n"
1715 " /dev/sda1 filesystem ntfs System Reserved 100M - F81C92571C92112C\n"
1716 " /dev/sda2 filesystem ntfs - 20G - F2E8996AE8992E3B\n"
1717 " /dev/sda1 partition - - 100M /dev/sda -\n"
1718 " /dev/sda2 partition - - 20G /dev/sda -\n"
1719 " /dev/sda device - - 20G - -\n"
1724 #: ../cat/virt-filesystems.pod:89
1726 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1730 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1735 #: ../cat/virt-filesystems.pod:112
1737 "Display everything. This is currently the same as specifying these options: "
1738 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1739 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>. (More may be "
1740 "added to this list in future)."
1744 #: ../cat/virt-filesystems.pod:117
1745 msgid "See also I<--long>."
1746 msgstr "Див. також I<--long>."
1749 #: ../cat/virt-filesystems.pod:119
1750 msgid "B<--blkdevs>"
1751 msgstr "B<--blkdevs>"
1754 #: ../cat/virt-filesystems.pod:121
1755 msgid "B<--block-devices>"
1756 msgstr "B<--block-devices>"
1759 #: ../cat/virt-filesystems.pod:123
1760 msgid "Display block devices."
1761 msgstr "Показати список блокових пристроїв."
1764 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1769 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1771 "Write out the results in CSV format (comma-separated values). This format "
1772 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1773 "ABOUT CSV FORMAT> below."
1777 #: ../cat/virt-filesystems.pod:150
1779 "When prompting for keys and passphrases, virt-filesystems normally turns "
1780 "echoing off so you cannot see what you are typing. If you are not worried "
1781 "about Tempest attacks and there is no one else in the room you can specify "
1782 "this flag to see what you are typing."
1786 #: ../cat/virt-filesystems.pod:155
1791 #: ../cat/virt-filesystems.pod:157
1793 "This causes filesystems that are not ordinary, mountable filesystems to be "
1794 "displayed. This category includes swapspace, and filesystems that are empty "
1795 "or contain unknown data."
1799 #: ../cat/virt-filesystems.pod:161
1800 msgid "This option implies I<--filesystems>."
1804 #: ../cat/virt-filesystems.pod:163
1805 msgid "B<--filesystems>"
1806 msgstr "B<--filesystems>"
1809 #: ../cat/virt-filesystems.pod:165
1811 "Display mountable filesystems. If no display option was selected then this "
1812 "option is implied."
1816 #: ../cat/virt-filesystems.pod:168
1817 msgid "With I<--extra>, non-mountable filesystems are shown too."
1821 #: ../cat/virt-filesystems.pod:181
1824 " virt-filesystems --format=raw -a disk.img\n"
1827 " virt-filesystems --format=raw -a диск.img\n"
1831 #: ../cat/virt-filesystems.pod:185
1834 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1839 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1840 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1841 #: ../tools/virt-list-partitions.pl:109
1846 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1847 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1848 msgid "B<--human-readable>"
1849 msgstr "B<--human-readable>"
1852 #: ../cat/virt-filesystems.pod:198
1853 msgid "In I<--long> mode, display sizes in human-readable format."
1857 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1858 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1863 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1864 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1869 #: ../cat/virt-filesystems.pod:209
1870 msgid "Display extra columns of data (\"long format\")."
1874 #: ../cat/virt-filesystems.pod:211
1875 msgid "A title row is added unless you also specify I<--no-title>."
1879 #: ../cat/virt-filesystems.pod:213
1881 "The extra columns displayed depend on what output you select, and the "
1882 "ordering of columns may change in future versions. Use the title row, I<--"
1883 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1888 #: ../cat/virt-filesystems.pod:218
1890 "Use I<-h> if you want sizes to be displayed in human-readable format. The "
1891 "default is to show raw numbers of I<bytes>."
1895 #: ../cat/virt-filesystems.pod:221
1896 msgid "Use I<--uuid> to display UUIDs too."
1900 #: ../cat/virt-filesystems.pod:223
1905 #: ../cat/virt-filesystems.pod:225
1906 msgid "B<--logvols>"
1907 msgstr "B<--logvols>"
1910 #: ../cat/virt-filesystems.pod:227
1911 msgid "B<--logical-volumes>"
1912 msgstr "B<--logical-volumes>"
1915 #: ../cat/virt-filesystems.pod:229
1917 "Display LVM logical volumes. In this mode, these are displayed irrespective "
1918 "of whether the LVs contain filesystems."
1922 #: ../cat/virt-filesystems.pod:232
1923 msgid "B<--no-title>"
1924 msgstr "B<--no-title>"
1927 #: ../cat/virt-filesystems.pod:234
1928 msgid "In I<--long> mode, don't add a title row."
1932 #: ../cat/virt-filesystems.pod:236
1934 "Note that the order of the columns is not fixed, and may change in future "
1935 "versions of virt-filesystems, so using this option may give you unexpected "
1940 #: ../cat/virt-filesystems.pod:240
1945 #: ../cat/virt-filesystems.pod:242
1946 msgid "B<--partitions>"
1947 msgstr "B<--partitions>"
1950 #: ../cat/virt-filesystems.pod:244
1952 "Display partitions. In this mode, these are displayed irrespective of "
1953 "whether the partitions contain filesystems."
1957 #: ../cat/virt-filesystems.pod:247
1962 #: ../cat/virt-filesystems.pod:249
1963 msgid "B<--physvols>"
1964 msgstr "B<--physvols>"
1967 #: ../cat/virt-filesystems.pod:251
1968 msgid "B<--physical-volumes>"
1969 msgstr "B<--physical-volumes>"
1972 #: ../cat/virt-filesystems.pod:253
1973 msgid "Display LVM physical volumes."
1977 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1982 #: ../cat/virt-filesystems.pod:257
1987 #: ../cat/virt-filesystems.pod:259
1988 msgid "In I<--long> mode, display UUIDs as well."
1992 #: ../cat/virt-filesystems.pod:273
1997 #: ../cat/virt-filesystems.pod:275
1998 msgid "B<--volgroups>"
1999 msgstr "B<--volgroups>"
2002 #: ../cat/virt-filesystems.pod:277
2003 msgid "B<--volume-groups>"
2004 msgstr "B<--volume-groups>"
2007 #: ../cat/virt-filesystems.pod:279
2008 msgid "Display LVM volume groups."
2012 #: ../cat/virt-filesystems.pod:287
2017 #: ../cat/virt-filesystems.pod:289
2019 "Note that columns in the output are subject to reordering and change in "
2020 "future versions of this tool."
2024 #: ../cat/virt-filesystems.pod:294
2029 #: ../cat/virt-filesystems.pod:296
2030 msgid "The filesystem, partition, block device or LVM name."
2034 #: ../cat/virt-filesystems.pod:298
2036 "For device and partition names these are displayed as canonical libguestfs "
2037 "names, so that for example C</dev/sda2> is the second partition on the first "
2042 #: ../cat/virt-filesystems.pod:302
2044 "If the I<--long> option is B<not> specified, then only the name column is "
2045 "shown in the output."
2049 #: ../cat/virt-filesystems.pod:305
2054 #: ../cat/virt-filesystems.pod:307
2055 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2059 #: ../cat/virt-filesystems.pod:309
2064 #: ../cat/virt-filesystems.pod:311
2066 "If there is a filesystem, then this column displays the filesystem type if "
2067 "one could be detected, eg. C<ext4>."
2071 #: ../cat/virt-filesystems.pod:314
2076 #: ../cat/virt-filesystems.pod:316
2078 "If the object has a label (used for identifying and mounting filesystems) "
2079 "then this column contains the label."
2083 #: ../cat/virt-filesystems.pod:319
2088 #: ../cat/virt-filesystems.pod:321
2090 "The size of the object in bytes. If the I<--human> option is used then the "
2091 "size is displayed in a human-readable form."
2095 #: ../cat/virt-filesystems.pod:324
2100 #: ../cat/virt-filesystems.pod:326
2102 "The parent column records the parent relationship between objects. For "
2103 "example, if the object is a partition, then this column contains the name of "
2104 "the containing device. If the object is a logical volume, then this column "
2105 "is the name of the volume group."
2109 #: ../cat/virt-filesystems.pod:331
2114 #: ../cat/virt-filesystems.pod:333
2116 "If the object has a UUID (used for identifying and mounting filesystems and "
2117 "block devices) then this column contains the UUID as a string."
2121 #: ../cat/virt-filesystems.pod:337
2122 msgid "The UUID is only displayed if the I<--uuid> option is given."
2126 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
2127 #: ../df/virt-df.pod:191
2128 msgid "NOTE ABOUT CSV FORMAT"
2132 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
2133 #: ../df/virt-df.pod:193
2135 "Comma-separated values (CSV) is a deceptive format. It I<seems> like it "
2136 "should be easy to parse, but it is definitely not easy to parse."
2140 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
2141 #: ../df/virt-df.pod:196
2143 "Myth: Just split fields at commas. Reality: This does I<not> work "
2144 "reliably. This example has two columns:"
2148 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
2149 #: ../df/virt-df.pod:199
2152 " \"foo,bar\",baz\n"
2157 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
2158 #: ../df/virt-df.pod:201
2160 "Myth: Read the file one line at a time. Reality: This does I<not> work "
2161 "reliably. This example has one row:"
2165 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
2166 #: ../df/virt-df.pod:204
2175 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
2176 #: ../df/virt-df.pod:207
2178 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2179 "packaged in major Linux distributions)."
2183 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
2184 #: ../df/virt-df.pod:210
2186 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2187 "or Python's built-in csv library)."
2191 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
2192 #: ../df/virt-df.pod:213
2193 msgid "Most spreadsheets and databases can import CSV directly."
2197 #: ../cat/virt-filesystems.pod:379
2199 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2200 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2203 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2204 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2208 #: ../cat/virt-filesystems.pod:394 ../tools/virt-win-reg.pl:789
2209 msgid "Copyright (C) 2010 Red Hat Inc."
2210 msgstr "©Red Hat Inc., 2010"
2213 #: ../cat/virt-ls.pod:5
2214 msgid "virt-ls - List files in a virtual machine"
2218 #: ../cat/virt-ls.pod:9
2221 " virt-ls [--options] -d domname directory [directory ...]\n"
2226 #: ../cat/virt-ls.pod:11
2229 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2234 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2236 msgstr "Старий стиль:"
2239 #: ../cat/virt-ls.pod:15
2242 " virt-ls [--options] domname directory\n"
2247 #: ../cat/virt-ls.pod:17
2250 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2255 #: ../cat/virt-ls.pod:21
2257 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2258 "more from a virtual machine or disk image."
2262 #: ../cat/virt-ls.pod:24
2264 "Multiple directory names can be given, in which case the output from each is "
2269 #: ../cat/virt-ls.pod:27
2271 "To list directories from a libvirt guest use the I<-d> option to specify the "
2272 "name of the guest. For a disk image, use the I<-a> option."
2276 #: ../cat/virt-ls.pod:31
2278 "C<virt-ls> can do many simple file listings. For more complicated cases you "
2279 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2284 #: ../cat/virt-ls.pod:37
2285 msgid "Get a list of all files and directories in a virtual machine:"
2289 #: ../cat/virt-ls.pod:39
2292 " virt-ls -R -d guest /\n"
2297 #: ../cat/virt-ls.pod:41
2298 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2302 #: ../cat/virt-ls.pod:43
2305 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2310 #: ../cat/virt-ls.pod:45
2311 msgid "List all public-writable directories in a Linux virtual machine:"
2315 #: ../cat/virt-ls.pod:47
2318 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2323 #: ../cat/virt-ls.pod:49
2324 msgid "List all Unix domain sockets in a Linux virtual machine:"
2328 #: ../cat/virt-ls.pod:51
2331 " virt-ls -lR -d guest / | grep '^s'\n"
2336 #: ../cat/virt-ls.pod:53
2337 msgid "List all regular files with filenames ending in '.png':"
2341 #: ../cat/virt-ls.pod:55
2344 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2349 #: ../cat/virt-ls.pod:57
2350 msgid "To display files larger than 10MB in home directories:"
2354 #: ../cat/virt-ls.pod:59
2357 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2362 #: ../cat/virt-ls.pod:61
2363 msgid "Find everything modified in the last 7 days:"
2367 #: ../cat/virt-ls.pod:63
2370 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2375 #: ../cat/virt-ls.pod:65
2376 msgid "Find regular files modified in the last 24 hours:"
2380 #: ../cat/virt-ls.pod:67
2383 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2388 #: ../cat/virt-ls.pod:69
2389 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2393 #: ../cat/virt-ls.pod:71
2395 "Find the differences between files in a guest and an earlier snapshot of the "
2400 #: ../cat/virt-ls.pod:74
2403 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2404 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2405 " diff -u old new | less\n"
2410 #: ../cat/virt-ls.pod:78
2412 "The commands above won't find files where the content has changed but the "
2413 "metadata (eg. file size and modification date) is the same. To do that, you "
2414 "need to add the I<--checksum> parameter to both C<virt-ls> commands. I<--"
2415 "checksum> can be quite slow since it has to read and compute a checksum of "
2416 "every regular file in the virtual machine."
2420 #: ../cat/virt-ls.pod:84
2421 msgid "OUTPUT MODES"
2422 msgstr "РЕЖИМИ ВИВЕДЕННЯ ДАНИХ"
2425 #: ../cat/virt-ls.pod:86
2427 "C<virt-ls> has four output modes, controlled by different combinations of "
2428 "the I<-l> and I<-R> options."
2432 #: ../cat/virt-ls.pod:89
2433 msgid "SIMPLE LISTING"
2434 msgstr "ПРОСТИЙ СПИСОК"
2437 #: ../cat/virt-ls.pod:91
2438 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2442 #: ../cat/virt-ls.pod:93
2445 " $ virt-ls -d guest /\n"
2451 " $ virt-ls -d guest /\n"
2458 #: ../cat/virt-ls.pod:98
2459 msgid "LONG LISTING"
2460 msgstr "ДОВГИЙ СПИСОК"
2463 #: ../cat/virt-ls.pod:100
2465 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2466 "(more specifically, like the C<guestfs_ll> function)."
2470 #: ../cat/virt-ls.pod:103
2473 " $ virt-ls -l -d guest /\n"
2475 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
2476 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
2480 " $ virt-ls -l -d guest /\n"
2482 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
2483 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
2488 #: ../cat/virt-ls.pod:109
2490 "Note that while this is useful for displaying a directory, do not try "
2491 "parsing this output in another program. Use L</RECURSIVE LONG LISTING> "
2496 #: ../cat/virt-ls.pod:113
2497 msgid "RECURSIVE LISTING"
2498 msgstr "РЕКУРСИВНИЙ СПИСОК"
2501 #: ../cat/virt-ls.pod:115
2503 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2504 "and directories recursively:"
2508 #: ../cat/virt-ls.pod:118
2511 " $ virt-ls -R -d guest /tmp\n"
2517 " $ virt-ls -R -d guest /tmp\n"
2524 #: ../cat/virt-ls.pod:123
2526 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2527 "converts C<\\0> characters to C<\\n>."
2531 #: ../cat/virt-ls.pod:126
2532 msgid "RECURSIVE LONG LISTING"
2533 msgstr "РЕКУРСИВНИЙ ДОВГИЙ СПИСОК"
2536 #: ../cat/virt-ls.pod:128
2538 "Using I<-lR> options together changes the output to display directories "
2539 "recursively, with file stats, and optionally other features such as "
2540 "checksums and extended attributes."
2544 #: ../cat/virt-ls.pod:132
2546 "Most of the interesting features of C<virt-ls> are only available when using "
2551 #: ../cat/virt-ls.pod:135
2553 "The fields are normally space-separated. Filenames are B<not> quoted, so "
2554 "you cannot use the output in another program (because filenames can contain "
2555 "spaces and other unsafe characters). If the guest was untrusted and someone "
2556 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2557 "on you by creating filenames with embedded newline characters. To B<safely> "
2558 "parse the output in another program, use the I<--csv> (Comma-Separated "
2563 #: ../cat/virt-ls.pod:143
2565 "Note that this output format is completely unrelated to the C<ls -lR> "
2570 #: ../cat/virt-ls.pod:146
2573 " $ virt-ls -lR -d guest /bin\n"
2574 " d 0555 4096 /bin\n"
2575 " - 0755 123 /bin/alsaunmute\n"
2576 " - 0755 28328 /bin/arch\n"
2577 " l 0777 4 /bin/awk -> gawk\n"
2578 " - 0755 27216 /bin/basename\n"
2579 " - 0755 943360 /bin/bash\n"
2583 " $ virt-ls -lR -d guest /bin\n"
2584 " d 0555 4096 /bin\n"
2585 " - 0755 123 /bin/alsaunmute\n"
2586 " - 0755 28328 /bin/arch\n"
2587 " l 0777 4 /bin/awk -> gawk\n"
2588 " - 0755 27216 /bin/basename\n"
2589 " - 0755 943360 /bin/bash\n"
2594 #: ../cat/virt-ls.pod:155
2595 msgid "These basic fields are always shown:"
2599 #: ../cat/virt-ls.pod:159
2604 #: ../cat/virt-ls.pod:161
2606 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2607 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2608 "link), C<s> (socket) or C<u> (unknown)."
2612 #: ../cat/virt-ls.pod:171
2614 msgstr "права доступу"
2617 #: ../cat/virt-ls.pod:173
2618 msgid "The Unix permissions, displayed as a 4 digit octal number."
2622 #: ../cat/virt-ls.pod:175
2627 #: ../cat/virt-ls.pod:177
2629 "The size of the file. This is shown in bytes unless I<-h> or I<--human-"
2630 "readable> option is given, in which case this is shown as a human-readable "
2635 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4263
2640 #: ../cat/virt-ls.pod:183
2641 msgid "The full path of the file or directory."
2645 #: ../cat/virt-ls.pod:185
2650 #: ../cat/virt-ls.pod:187
2651 msgid "For symbolic links only, the link target."
2655 #: ../cat/virt-ls.pod:191
2657 "In I<-lR> mode, additional command line options enable the display of more "
2662 #: ../cat/virt-ls.pod:194
2664 "With the I<--uids> flag, these additional fields are displayed before the "
2669 #: ../cat/virt-ls.pod:199
2674 #: ../cat/virt-ls.pod:201
2679 #: ../cat/virt-ls.pod:203
2681 "The UID and GID of the owner of the file (displayed numerically). Note "
2682 "these only make sense in the context of a Unix-like guest."
2686 #: ../cat/virt-ls.pod:208
2687 msgid "With the I<--times> flag, these additional fields are displayed:"
2691 #: ../cat/virt-ls.pod:212
2696 #: ../cat/virt-ls.pod:214
2697 msgid "The time of last access."
2698 msgstr "Час останнього доступу."
2701 #: ../cat/virt-ls.pod:216
2706 #: ../cat/virt-ls.pod:218
2707 msgid "The time of last modification."
2708 msgstr "Час останнього внесення змін."
2711 #: ../cat/virt-ls.pod:220
2716 #: ../cat/virt-ls.pod:222
2717 msgid "The time of last status change."
2718 msgstr "Час останньої зміни стану."
2721 #: ../cat/virt-ls.pod:226
2723 "The time fields are displayed as string dates and times, unless one of the "
2724 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2728 #: ../cat/virt-ls.pod:229
2729 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2733 #: ../cat/virt-ls.pod:233
2738 #: ../cat/virt-ls.pod:235
2740 "The device containing the file (displayed as major:minor). This may not "
2741 "match devices as known to the guest."
2745 #: ../cat/virt-ls.pod:238
2750 #: ../cat/virt-ls.pod:240
2751 msgid "The inode number."
2755 #: ../cat/virt-ls.pod:242
2760 #: ../cat/virt-ls.pod:244
2761 msgid "The number of hard links."
2762 msgstr "Кількість жорстких посилань."
2765 #: ../cat/virt-ls.pod:246
2770 #: ../cat/virt-ls.pod:248
2772 "For block and char special files, the device (displayed as major:minor)."
2776 #: ../cat/virt-ls.pod:251
2781 #: ../cat/virt-ls.pod:253
2782 msgid "The number of 512 byte blocks allocated to the file."
2786 #: ../cat/virt-ls.pod:257
2788 "With the I<--checksum> flag, the checksum of the file contents is shown "
2789 "(only for regular files). Computing file checksums can take a considerable "
2794 #: ../cat/virt-ls.pod:280
2795 msgid "B<--checksum>"
2796 msgstr "B<--checksum>"
2799 #: ../cat/virt-ls.pod:282
2800 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2801 msgstr "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2804 #: ../cat/virt-ls.pod:284
2806 "Display checksum over file contents for regular files. With no argument, "
2807 "this defaults to using I<md5>. Using an argument, you can select the "
2808 "checksum type to use."
2812 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2813 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2814 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2816 "This option only has effect in I<-lR> output mode. See L</RECURSIVE LONG "
2821 #: ../cat/virt-ls.pod:316
2823 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2824 "so you cannot see what you are typing. If you are not worried about Tempest "
2825 "attacks and there is no one else in the room you can specify this flag to "
2826 "see what you are typing."
2830 #: ../cat/virt-ls.pod:321
2831 msgid "B<--extra-stats>"
2832 msgstr "B<--extra-stats>"
2835 #: ../cat/virt-ls.pod:323
2836 msgid "Display extra stats."
2837 msgstr "Показати додаткові дані."
2840 #: ../cat/virt-ls.pod:339
2843 " virt-ls --format=raw -a disk.img /dir\n"
2848 #: ../cat/virt-ls.pod:343
2851 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2856 #: ../cat/virt-ls.pod:356
2857 msgid "Display file sizes in human-readable format."
2861 #: ../cat/virt-ls.pod:370
2866 #: ../cat/virt-ls.pod:372
2867 msgid "B<--recursive>"
2868 msgstr "B<--recursive>"
2871 #: ../cat/virt-ls.pod:374
2873 "Select the mode. With neither of these options, C<virt-ls> produces a "
2874 "simple, flat list of the files in the named directory. See L</SIMPLE "
2879 #: ../cat/virt-ls.pod:378
2881 "C<virt-ls -l> produces a \"long listing\", which shows more detail. See L</"
2886 #: ../cat/virt-ls.pod:381
2888 "C<virt-ls -R> produces a recursive list of files starting at the named "
2889 "directory. See L</RECURSIVE LISTING>."
2893 #: ../cat/virt-ls.pod:384
2895 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2896 "parsed. See L</RECURSIVE LONG LISTING>."
2900 #: ../cat/virt-ls.pod:387
2905 #: ../cat/virt-ls.pod:389
2906 msgid "Display time fields."
2910 #: ../cat/virt-ls.pod:394
2911 msgid "B<--time-days>"
2912 msgstr "B<--time-days>"
2915 #: ../cat/virt-ls.pod:396
2916 msgid "Display time fields as days before now (negative if in the future)."
2920 #: ../cat/virt-ls.pod:398
2922 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2923 "of the file is between 0 and 86399 seconds."
2927 #: ../cat/virt-ls.pod:404
2928 msgid "B<--time-relative>"
2929 msgstr "B<--time-relative>"
2932 #: ../cat/virt-ls.pod:406
2933 msgid "Display time fields as seconds before now (negative if in the future)."
2937 #: ../cat/virt-ls.pod:411
2939 msgstr "B<--time-t>"
2942 #: ../cat/virt-ls.pod:413
2943 msgid "Display time fields as seconds since the Unix epoch."
2947 #: ../cat/virt-ls.pod:418
2952 #: ../cat/virt-ls.pod:420
2953 msgid "Display UID and GID fields."
2957 #: ../cat/virt-ls.pod:445
2958 msgid "Previous versions of virt-ls allowed you to write either:"
2962 #: ../cat/virt-ls.pod:447
2965 " virt-ls disk.img [disk.img ...] /dir\n"
2970 #: ../cat/virt-ls.pod:451
2973 " virt-ls guestname /dir\n"
2978 #: ../cat/virt-ls.pod:497
2980 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2981 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2982 "L<http://libguestfs.org/>."
2984 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2985 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2986 "L<http://libguestfs.org/>."
2989 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2990 #: ../rescue/virt-rescue.pod:302
2991 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2992 msgstr "©Red Hat Inc., 2009–2011"
2995 #: ../clone/virt-sysprep.pod:5
2997 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
3001 #: ../clone/virt-sysprep.pod:9
3004 " virt-sysprep [--options] -d domname\n"
3009 #: ../clone/virt-sysprep.pod:11
3012 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
3017 #: ../clone/virt-sysprep.pod:15
3019 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
3020 "can be made from it. Steps in this process include removing SSH host keys, "
3021 "removing persistent network MAC configuration, and removing user accounts. "
3022 "Each step can be enabled or disabled as required."
3026 #: ../clone/virt-sysprep.pod:21
3028 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3029 "customization by the system administrator."
3033 #: ../clone/virt-sysprep.pod:24
3035 "Virt-sysprep modifies the guest or disk image I<in place>. The guest must "
3036 "be shut down. If you want to preserve the existing contents of the guest, "
3037 "you I<must copy or clone the disk first>. See L</COPYING AND CLONING> below."
3041 #: ../clone/virt-sysprep.pod:29
3043 "You do I<not> need to run virt-sysprep as root. In fact we'd generally "
3044 "recommend that you don't. The time you might want to run it as root is when "
3045 "you need root in order to access the disk image, but even in this case it "
3046 "would be better to change the permissions on the disk image to be writable "
3047 "as the non-root user running virt-sysprep."
3051 #: ../clone/virt-sysprep.pod:35
3053 "\"Sysprep\" stands for \"system preparation\" tool. The name comes from the "
3054 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3055 "machines in preparation for cloning them. Having said that, virt-sysprep "
3056 "does I<not> currently work on Microsoft Windows guests. We plan to support "
3057 "Windows sysprepping in a future version, and we already have code to do it."
3061 #: ../clone/virt-sysprep.pod:76
3062 msgid "B<--enable=...>"
3066 #: ../clone/virt-sysprep.pod:78
3068 "Choose which sysprep operations to perform. Give a comma-separated list of "
3069 "operations, for example:"
3073 #: ../clone/virt-sysprep.pod:81
3076 " --enable=ssh-hostkeys,udev-persistent-net\n"
3081 #: ../clone/virt-sysprep.pod:83
3083 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3087 #: ../clone/virt-sysprep.pod:85
3089 "If the I<--enable> option is not given, then we default to trying all "
3090 "possible sysprep operations. But some sysprep operations are skipped for "
3095 #: ../clone/virt-sysprep.pod:89
3097 "Use I<--list-operations> to list operations supported by a particular "
3098 "version of virt-sysprep."
3102 #: ../clone/virt-sysprep.pod:92
3104 "See L</OPERATIONS> below for a list and an explanation of each operation."
3108 #: ../clone/virt-sysprep.pod:106
3111 " virt-sysprep --format=raw -a disk.img\n"
3116 #: ../clone/virt-sysprep.pod:110
3119 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3124 #: ../clone/virt-sysprep.pod:119
3125 msgid "B<--hostname> newhostname"
3129 #: ../clone/virt-sysprep.pod:121
3131 "Change the hostname. See the L</hostname> operation below. If not given, "
3132 "defaults to C<localhost.localdomain>."
3136 #: ../clone/virt-sysprep.pod:124
3137 msgid "B<--list-operations>"
3141 #: ../clone/virt-sysprep.pod:126
3142 msgid "List the operations supported by the virt-sysprep program."
3146 #: ../clone/virt-sysprep.pod:128
3147 msgid "B<--selinux-relabel>"
3151 #: ../clone/virt-sysprep.pod:130
3152 msgid "B<--no-selinux-relabel>"
3156 #: ../clone/virt-sysprep.pod:132
3158 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots. "
3159 "I<--no-selinux-relabel> disables relabelling."
3163 #: ../clone/virt-sysprep.pod:135
3165 "The default is to try to detect if SELinux relabelling is required. See L</"
3166 "SELINUX RELABELLING> below for more details."
3170 #: ../clone/virt-sysprep.pod:156
3175 #: ../clone/virt-sysprep.pod:158
3177 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3178 "enabled>, although some are skipped depending on the type of guest."
3182 #: ../clone/virt-sysprep.pod:162
3184 "Operations can be individually enabled using the I<--enable> option. Use a "
3185 "comma-separated list, for example:"
3189 #: ../clone/virt-sysprep.pod:165
3192 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3197 #: ../clone/virt-sysprep.pod:167
3199 "To list the operations supported by the current version of virt-sysprep, use "
3200 "I<--list-operations>."
3204 #: ../clone/virt-sysprep.pod:170
3206 "Future versions of virt-sysprep may add more operations. If you are using "
3207 "virt-sysprep and want predictable behaviour, specify only the operations "
3208 "that you want to have enabled."
3212 #: ../clone/virt-sysprep.pod:174
3217 #: ../clone/virt-sysprep.pod:176
3218 msgid "Remove user at-jobs and cron-jobs."
3222 #: ../clone/virt-sysprep.pod:178
3223 msgid "dhcp-client-state"
3227 #: ../clone/virt-sysprep.pod:180
3228 msgid "Remove DHCP client leases."
3232 #: ../clone/virt-sysprep.pod:182
3233 msgid "dhcp-server-state"
3237 #: ../clone/virt-sysprep.pod:184
3238 msgid "Remove DHCP server leases."
3242 #: ../clone/virt-sysprep.pod:186
3247 #: ../clone/virt-sysprep.pod:188
3249 "Changes the hostname of the guest to the value given in the I<--hostname> "
3254 #: ../clone/virt-sysprep.pod:191
3256 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3257 "C<localhost.localdomain>."
3261 #: ../clone/virt-sysprep.pod:194
3266 #: ../clone/virt-sysprep.pod:196
3267 msgid "Remove many log files."
3271 #: ../clone/virt-sysprep.pod:198
3276 #: ../clone/virt-sysprep.pod:200
3277 msgid "Remove email from the local mail spool directory."
3281 #: ../clone/virt-sysprep.pod:202
3286 #: ../clone/virt-sysprep.pod:204
3288 "Remove HWADDR (hard-coded MAC address) configuration. For Fedora and Red "
3289 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3293 #: ../clone/virt-sysprep.pod:207
3298 #: ../clone/virt-sysprep.pod:209
3300 "Write some random bytes from the host into the random seed file of the guest."
3304 #: ../clone/virt-sysprep.pod:212
3305 msgid "See L</RANDOM SEED> below."
3309 #: ../clone/virt-sysprep.pod:214
3310 msgid "rhn-systemid"
3314 #: ../clone/virt-sysprep.pod:216
3315 msgid "Remove the RHN system ID."
3319 #: ../clone/virt-sysprep.pod:218
3324 #: ../clone/virt-sysprep.pod:220
3325 msgid "Remove the Smolt hardware UUID."
3329 #: ../clone/virt-sysprep.pod:222
3330 msgid "ssh-hostkeys"
3334 #: ../clone/virt-sysprep.pod:224
3335 msgid "Remove the SSH host keys in the guest."
3339 #: ../clone/virt-sysprep.pod:226
3341 "The SSH host keys are regenerated (differently) next time the guest is "
3346 #: ../clone/virt-sysprep.pod:229
3348 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3349 "stark warning about the host key changing:"
3353 #: ../clone/virt-sysprep.pod:232
3356 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3357 " @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @\n"
3358 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3359 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3364 #: ../clone/virt-sysprep.pod:237
3365 msgid "udev-persistent-net"
3369 #: ../clone/virt-sysprep.pod:239
3371 "Remove udev persistent net rules which map the guest's existing MAC address "
3372 "to a fixed ethernet device (eg. eth0)."
3376 #: ../clone/virt-sysprep.pod:242
3378 "After a guest is cloned, the MAC address usually changes. Since the old MAC "
3379 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3380 "is assigned to a new name (eg. eth1) and this is usually undesirable. "
3381 "Erasing the udev persistent net rules avoids this."
3385 #: ../clone/virt-sysprep.pod:247
3390 #: ../clone/virt-sysprep.pod:249
3391 msgid "Remove the utmp file."
3395 #: ../clone/virt-sysprep.pod:251
3397 "This records who is currently logged in on a machine. In modern Linux "
3398 "distros it is stored in a ramdisk and hence not part of the virtual "
3399 "machine's disk, but it was stored on disk in older distros."
3403 #: ../clone/virt-sysprep.pod:255
3408 #: ../clone/virt-sysprep.pod:257
3409 msgid "Remove the yum UUID."
3413 #: ../clone/virt-sysprep.pod:259
3415 "Yum creates a fresh UUID the next time it runs when it notices that the "
3416 "original UUID has been erased."
3420 #: ../clone/virt-sysprep.pod:262
3421 msgid "COPYING AND CLONING"
3425 #: ../clone/virt-sysprep.pod:264
3427 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3428 "prepare a template from which guests can be cloned. There are many "
3429 "different ways to achieve this using the virt tools, and this section is "
3430 "just an introduction."
3434 #: ../clone/virt-sysprep.pod:269
3435 msgid "A virtual machine (when switched off) consists of two parts:"
3439 #: ../clone/virt-sysprep.pod:273
3440 msgid "I<configuration>"
3444 #: ../clone/virt-sysprep.pod:275
3446 "The configuration or description of the guest. eg. The libvirt XML (see "
3447 "C<virsh dumpxml>), the running configuration of the guest, or another "
3448 "external format like OVF."
3452 #: ../clone/virt-sysprep.pod:279
3453 msgid "Some configuration items that might need to be changed:"
3457 #: ../clone/virt-sysprep.pod:285
3462 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3467 #: ../clone/virt-sysprep.pod:293
3468 msgid "path to block device(s)"
3472 #: ../clone/virt-sysprep.pod:297
3473 msgid "network card MAC address"
3477 #: ../clone/virt-sysprep.pod:301
3478 msgid "I<block device(s)>"
3482 #: ../clone/virt-sysprep.pod:303
3484 "One or more hard disk images, themselves containing files, directories, "
3485 "applications, kernels, configuration, etc."
3489 #: ../clone/virt-sysprep.pod:306
3490 msgid "Some things inside the block devices that might need to be changed:"
3494 #: ../clone/virt-sysprep.pod:312
3495 msgid "hostname and other net configuration"
3499 #: ../clone/virt-sysprep.pod:320
3500 msgid "SSH host keys"
3504 #: ../clone/virt-sysprep.pod:324
3505 msgid "Windows unique security ID (SID)"
3509 #: ../clone/virt-sysprep.pod:328
3510 msgid "Puppet registration"
3514 #: ../clone/virt-sysprep.pod:334
3515 msgid "COPYING THE BLOCK DEVICE"
3519 #: ../clone/virt-sysprep.pod:336
3521 "Starting with an original guest, you probably wish to copy the guest block "
3522 "device and its configuration to make a template. Then once you are happy "
3523 "with the template, you will want to make many clones from it."
3527 #: ../clone/virt-sysprep.pod:341
3533 " original guest --------> template ---------->\n"
3534 " \\------> cloned\n"
3535 " \\-----> guests\n"
3541 #: ../clone/virt-sysprep.pod:349
3543 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3548 #: ../clone/virt-sysprep.pod:352
3552 " original guest --------> template ---------->\n"
3553 " \\------> cloned\n"
3554 " \\-----> guests\n"
3560 #: ../clone/virt-sysprep.pod:358
3561 msgid "There are some smarter (and faster) ways too:"
3565 #: ../clone/virt-sysprep.pod:364
3569 " template ---------->\n"
3570 " \\------> cloned\n"
3571 " \\-----> guests\n"
3577 #: ../clone/virt-sysprep.pod:370
3579 "Use the block device as a backing file and create a snapshot on top for each "
3580 "guest. The advantage is that you don't need to copy the block device (very "
3581 "fast) and only changes are stored (less storage required)."
3585 #: ../clone/virt-sysprep.pod:375
3587 "Note that writing to the backing file once you have created guests on top of "
3588 "it is not possible: you will corrupt the guests."
3592 #: ../clone/virt-sysprep.pod:378
3594 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3595 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option). Some "
3596 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3597 "also create cheap snapshots from files or LUNs."
3601 #: ../clone/virt-sysprep.pod:386
3602 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3606 #: ../clone/virt-sysprep.pod:390
3607 msgid "Prepare your template using L<virt-sparsify(1)>. See below."
3611 #: ../clone/virt-sysprep.pod:394
3616 #: ../clone/virt-sysprep.pod:396
3618 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3619 "and/or modify the external libvirt configuration of a guest. It will reset "
3620 "the name, UUID and MAC address of the guest in the libvirt XML."
3624 #: ../clone/virt-sysprep.pod:401
3626 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3627 "image. This was the original motivation to write virt-sysprep."
3631 #: ../clone/virt-sysprep.pod:404
3636 #: ../clone/virt-sysprep.pod:406
3640 " original guest --------> template\n"
3645 #: ../clone/virt-sysprep.pod:409
3647 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3648 "it easier to compress and/or faster to copy."
3652 #: ../clone/virt-sysprep.pod:412
3654 "Notice that since virt-sparsify also copies the image, you can use it to "
3655 "make the initial copy (instead of C<dd>)."
3659 #: ../clone/virt-sysprep.pod:415
3664 #: ../clone/virt-sysprep.pod:417
3668 " template ---------->\n"
3669 " \\------> cloned\n"
3670 " \\-----> guests\n"
3676 #: ../clone/virt-sysprep.pod:423
3678 "If you want to give people cloned guests, but let them pick the size of the "
3679 "guest themselves (eg. depending on how much they are prepared to pay for "
3680 "disk space), then instead of copying the template, you can run L<virt-resize"
3681 "(1)>. Virt-resize performs a copy and resize, and thus is ideal for cloning "
3682 "guests from a template."
3686 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1149
3691 #: ../clone/virt-sysprep.pod:431
3693 "Although virt-sysprep removes some sensitive information from the guest, it "
3694 "does not pretend to remove all of it. You should examine the L</OPERATIONS> "
3695 "above, and the implementation of the operations in the shell script. You "
3696 "should also examine the guest afterwards."
3700 #: ../clone/virt-sysprep.pod:436
3702 "Sensitive files are simply removed. The data they contained may still exist "
3703 "on the disk, easily recovered with a hex editor or undelete tool. Use "
3704 "L<virt-sparsify(1)> as one way to remove this content. See also the L<scrub"
3705 "(1)> command to get rid of deleted content in directory entries and inodes."
3709 #: ../clone/virt-sysprep.pod:442
3714 #: ../clone/virt-sysprep.pod:444
3715 msgid "I<(This section applies to Linux guests only)>"
3719 #: ../clone/virt-sysprep.pod:446
3721 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3722 "from the host into the guest's random seed file."
3726 #: ../clone/virt-sysprep.pod:449
3728 "If this is just done once and the guest is cloned from the same template, "
3729 "then each guest will start with the same entropy, and things like SSH host "
3730 "keys and TCP sequence numbers may be predictable."
3734 #: ../clone/virt-sysprep.pod:453
3736 "Therefore you should arrange to add more randomness I<after> cloning from a "
3737 "template too, which can be done by just enabling the C<random-seed> "
3742 #: ../clone/virt-sysprep.pod:457
3745 " cp template.img newguest.img\n"
3746 " virt-sysprep --enable=random-seed -a newguest.img\n"
3751 #: ../clone/virt-sysprep.pod:460
3752 msgid "SELINUX RELABELLING"
3756 #: ../clone/virt-sysprep.pod:462
3757 msgid "I<(This section applies to Linux guests using SELinux only)>"
3761 #: ../clone/virt-sysprep.pod:464
3763 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3764 "autorelabel> so that these will be correctly labelled by SELinux the next "
3765 "time the guest is booted. This process interrupts boot and can take some "
3770 #: ../clone/virt-sysprep.pod:469
3772 "You can force relabelling for all guests by supplying the I<--selinux-"
3777 #: ../clone/virt-sysprep.pod:472
3779 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3784 #: ../clone/virt-sysprep.pod:484
3785 msgid "This program returns 0 on success, or 1 if there was an error."
3789 #: ../clone/virt-sysprep.pod:488
3791 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3792 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3793 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3797 #: ../df/virt-df.pod:5
3798 msgid "virt-df - Display free space on virtual filesystems"
3802 #: ../df/virt-df.pod:9
3805 " virt-df [--options]\n"
3808 " virt-df [--параметри]\n"
3812 #: ../df/virt-df.pod:11
3815 " virt-df [--options] -d domname\n"
3820 #: ../df/virt-df.pod:13
3823 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3828 #: ../df/virt-df.pod:17
3831 " virt-df [--options] domname\n"
3836 #: ../df/virt-df.pod:19
3839 " virt-df [--options] disk.img [disk.img ...]\n"
3844 #: ../df/virt-df.pod:23
3846 "C<virt-df> is a command line tool to display free space on virtual machine "
3847 "filesystems. Unlike other tools, it doesn't just display the size of disk "
3848 "allocated to a virtual machine, but can look inside disk images to see how "
3849 "much space is really being used."
3853 #: ../df/virt-df.pod:28
3855 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3856 "to get a list of all active and inactive guests, and performs a C<df>-type "
3857 "operation on each one in turn, printing out the results."
3861 #: ../df/virt-df.pod:32
3863 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3864 "type operation on either the single named libvirt domain, or on the disk "
3865 "image(s) listed on the command line (which must all belong to a single VM). "
3866 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3867 "guest>. If you want to run on multiple guests, then you have to invoke "
3868 "C<virt-df> multiple times."
3872 #: ../df/virt-df.pod:39
3874 "Use the I<--csv> option to get a format which can be easily parsed by other "
3875 "programs. Other options are similar to the standard L<df(1)> command."
3879 #: ../df/virt-df.pod:45
3881 "Show disk usage for a single libvirt guest called C<F14x64>. Make the "
3882 "output human-readable:"
3886 #: ../df/virt-df.pod:48
3889 " # virt-df -d F14x64 -h\n"
3890 " Filesystem Size Used Available Use%\n"
3891 " F14x64:/dev/sda1 484M 66M 393M 14%\n"
3892 " F14x64:/dev/vg_f13x64/lv_root 7.4G 3.4G 4.0G 46%\n"
3897 #: ../df/virt-df.pod:53
3898 msgid "Show disk usage for a disk image file called C<test.img>:"
3902 #: ../df/virt-df.pod:55
3905 " $ virt-df -a test1.img\n"
3906 " Filesystem 1K-blocks Used Available Use%\n"
3907 " test1.img:/dev/sda1 99099 1551 92432 2%\n"
3912 #: ../df/virt-df.pod:112
3915 " virt-df --format=raw -a disk.img\n"
3920 #: ../df/virt-df.pod:116
3923 " virt-df --format=raw -a disk.img --format -a another.img\n"
3928 #: ../df/virt-df.pod:129
3929 msgid "Print sizes in human-readable format."
3933 #: ../df/virt-df.pod:131
3934 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3938 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3943 #: ../df/virt-df.pod:135
3945 msgstr "B<--inodes>"
3948 #: ../df/virt-df.pod:137
3949 msgid "Print inodes instead of blocks."
3953 #: ../df/virt-df.pod:139
3954 msgid "B<--one-per-guest>"
3955 msgstr "B<--one-per-guest>"
3958 #: ../df/virt-df.pod:141
3960 "Run one libguestfs appliance per guest. Normally C<virt-df> will add the "
3961 "disks from several guests to a single libguestfs appliance."
3965 #: ../df/virt-df.pod:144
3966 msgid "You might use this option in the following circumstances:"
3970 #: ../df/virt-df.pod:150
3972 "If you think an untrusted guest might actively try to exploit the libguestfs "
3973 "appliance kernel, then this prevents one guest from interfering with the "
3974 "stats printed for another guest."
3978 #: ../df/virt-df.pod:156
3980 "If the kernel has a bug which stops it from accessing a filesystem in one "
3981 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3982 "and report stats for further guests."
3986 #: ../df/virt-df.pod:165
3988 "Print UUIDs instead of names. This is useful for following a guest even "
3989 "when the guest is migrated or renamed, or when two guests happen to have the "
3994 #: ../df/virt-df.pod:169
3996 "Note that only domains that we fetch from libvirt come with UUIDs. For disk "
3997 "images, we still print the disk image name even when this option is "
4002 #: ../df/virt-df.pod:229
4004 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4009 #: ../edit/virt-edit.pod:5
4010 msgid "virt-edit - Edit a file in a virtual machine"
4014 #: ../edit/virt-edit.pod:9
4017 " virt-edit [--options] -d domname file [file ...]\n"
4022 #: ../edit/virt-edit.pod:11
4025 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4030 #: ../edit/virt-edit.pod:13
4033 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4038 #: ../edit/virt-edit.pod:17
4041 " virt-edit domname file\n"
4046 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4049 " virt-edit disk.img [disk.img ...] file\n"
4054 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4055 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4056 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
4057 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4059 msgstr "ПОПЕРЕДЖЕННЯ"
4062 #: ../edit/virt-edit.pod:23
4064 "You must I<not> use C<virt-edit> on live virtual machines. If you do this, "
4065 "you risk disk corruption in the VM. C<virt-edit> tries to stop you from "
4066 "doing this, but doesn't catch all cases."
4070 #: ../edit/virt-edit.pod:29
4072 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4073 "exists in the named virtual machine (or disk image)."
4077 #: ../edit/virt-edit.pod:32
4079 "Multiple filenames can be given, in which case they are each edited in "
4080 "turn. Each filename must be a full path, starting at the root directory "
4081 "(starting with '/')."
4085 #: ../edit/virt-edit.pod:36
4086 msgid "If you want to just view a file, use L<virt-cat(1)>."
4090 #: ../edit/virt-edit.pod:38
4092 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4093 "USING GUESTFISH> below)."
4097 #: ../edit/virt-edit.pod:41
4099 "C<virt-edit> cannot be used to create a new file. L<guestfish(1)> can do "
4100 "that and much more."
4104 #: ../edit/virt-edit.pod:46
4105 msgid "Edit the named files interactively:"
4109 #: ../edit/virt-edit.pod:48
4112 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4117 #: ../edit/virt-edit.pod:50
4120 " virt-edit -d mydomain /etc/passwd\n"
4125 #: ../edit/virt-edit.pod:52
4126 msgid "For Windows guests, some Windows paths are understood:"
4130 #: ../edit/virt-edit.pod:54
4133 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4138 #: ../edit/virt-edit.pod:56
4140 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4141 "INTERACTIVE EDITING> below). To change the init default level to 5:"
4145 #: ../edit/virt-edit.pod:60
4148 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4153 #: ../edit/virt-edit.pod:81
4154 msgid "B<-b> extension"
4158 #: ../edit/virt-edit.pod:83
4159 msgid "B<--backup> extension"
4163 #: ../edit/virt-edit.pod:85
4165 "Create a backup of the original file I<in the guest disk image>. The backup "
4166 "has the original filename with C<extension> added."
4170 #: ../edit/virt-edit.pod:88
4172 "Usually the first character of C<extension> would be a dot C<.> so you would "
4177 #: ../edit/virt-edit.pod:91
4180 " virt-edit -b .orig [etc]\n"
4185 #: ../edit/virt-edit.pod:93
4186 msgid "By default, no backup file is made."
4190 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4191 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4192 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4193 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4195 msgstr "B<-c адреса>"
4198 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4199 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4200 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4201 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4202 msgid "B<--connect URI>"
4203 msgstr "B<--connect адреса>"
4206 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4207 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4208 #: ../tools/virt-win-reg.pl:135
4210 "If you specify guest block devices directly, then libvirt is not used at all."
4214 #: ../edit/virt-edit.pod:114
4216 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4217 "off so you cannot see what you are typing. If you are not worried about "
4218 "Tempest attacks and there is no one else in the room you can specify this "
4219 "flag to see what you are typing."
4223 #: ../edit/virt-edit.pod:119
4225 msgstr "B<-e> вираз"
4228 #: ../edit/virt-edit.pod:121
4229 msgid "B<--expr> EXPR"
4230 msgstr "B<--expr> вираз"
4233 #: ../edit/virt-edit.pod:123
4235 "Instead of launching the external editor, non-interactively apply the Perl "
4236 "expression C<EXPR> to each line in the file. See L</NON-INTERACTIVE "
4241 #: ../edit/virt-edit.pod:127
4243 "Be careful to properly quote the expression to prevent it from being altered "
4248 #: ../edit/virt-edit.pod:130
4249 msgid "Note that this option is only available when Perl 5 is installed."
4253 #: ../edit/virt-edit.pod:132
4254 msgid "B<--format> raw|qcow2|..."
4255 msgstr "B<--format> raw|qcow2|..."
4258 #: ../edit/virt-edit.pod:143
4261 " virt-edit --format=raw -a disk.img file\n"
4266 #: ../edit/virt-edit.pod:147
4269 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4274 #: ../edit/virt-edit.pod:181
4275 msgid "Previous versions of virt-edit allowed you to write either:"
4279 #: ../edit/virt-edit.pod:187
4282 " virt-edit guestname file\n"
4287 #: ../edit/virt-edit.pod:195
4288 msgid "NON-INTERACTIVE EDITING"
4289 msgstr "НЕІНТЕРАКТИВНЕ РЕДАГУВАННЯ"
4292 #: ../edit/virt-edit.pod:197
4294 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4295 "administrator can interactively edit the file."
4299 #: ../edit/virt-edit.pod:200
4301 "There are two ways also to use C<virt-edit> from scripts in order to make "
4302 "automated edits to files. (Note that although you I<can> use C<virt-edit> "
4303 "like this, it's less error-prone to write scripts directly using the "
4304 "libguestfs API and Augeas for configuration file editing.)"
4308 #: ../edit/virt-edit.pod:206
4310 "The first method is to temporarily set C<$EDITOR> to any script or program "
4311 "you want to run. The script is invoked as C<$EDITOR tmpfile> and it should "
4312 "update C<tmpfile> in place however it likes."
4316 #: ../edit/virt-edit.pod:210
4318 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4319 "short Perl snippet in the style of L<sed(1)>. For example to replace all "
4320 "instances of C<foo> with C<bar> in a file:"
4324 #: ../edit/virt-edit.pod:214
4327 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4332 #: ../edit/virt-edit.pod:216
4334 "The full power of Perl regular expressions can be used (see L<perlre(1)>). "
4335 "For example to delete root's password you could do:"
4339 #: ../edit/virt-edit.pod:219
4342 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4345 " virt-edit -d назва_домену /etc/passwd -e 's/^root:.*?:/root::/'\n"
4349 #: ../edit/virt-edit.pod:221
4351 "What really happens is that the snippet is evaluated as a Perl expression "
4352 "for each line of the file. The line, including the final C<\\n>, is passed "
4353 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4357 #: ../edit/virt-edit.pod:226
4359 "To delete a line, set C<$_> to the empty string. For example, to delete the "
4360 "C<apache> user account from the password file you can do:"
4364 #: ../edit/virt-edit.pod:229
4367 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4370 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4374 #: ../edit/virt-edit.pod:231
4376 "To insert a line, prepend or append it to C<$_>. However appending lines to "
4377 "the end of the file is rather difficult this way since there is no concept "
4378 "of \"last line of the file\" - your expression just doesn't get called "
4379 "again. You might want to use the first method (setting C<$EDITOR>) if you "
4384 #: ../edit/virt-edit.pod:237
4386 "The variable C<$lineno> contains the current line number. As is "
4387 "traditional, the first line in the file is number C<1>."
4391 #: ../edit/virt-edit.pod:240
4393 "The return value from the expression is ignored, but the expression may call "
4394 "C<die> in order to abort the whole program, leaving the original file "
4399 #: ../edit/virt-edit.pod:244
4401 "Remember when matching the end of a line that C<$_> may contain the final C<"
4402 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4403 "newline then neither of these. Thus to match or substitute some text at the "
4404 "end of a line, use this regular expression:"
4408 #: ../edit/virt-edit.pod:249
4411 " /some text(\\r?\\n)?$/\n"
4414 " /якийсь текст(\\r?\\n)?$/\n"
4418 #: ../edit/virt-edit.pod:251
4420 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4421 "$_> itself (since that would remove all newlines from the file):"
4425 #: ../edit/virt-edit.pod:255
4428 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4431 " my $m = $_; chomp $m; $m =~ /якийсь текст$/\n"
4435 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
4436 msgid "WINDOWS PATHS"
4437 msgstr "ШЛЯХИ У WINDOWS"
4440 #: ../edit/virt-edit.pod:259
4442 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4443 "paths (eg. C<E:\\foo\\bar.txt>)."
4447 #: ../edit/virt-edit.pod:262
4448 msgid "If and only if the guest is running Windows then:"
4452 #: ../edit/virt-edit.pod:268
4454 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
4455 "to the correct filesystem."
4459 #: ../edit/virt-edit.pod:273
4461 "Any backslash (C<\\>) characters in the path are replaced with forward "
4462 "slashes so that libguestfs can process it."
4466 #: ../edit/virt-edit.pod:278
4468 "The path is resolved case insensitively to locate the file that should be "
4473 #: ../edit/virt-edit.pod:283
4474 msgid "There are some known shortcomings:"
4478 #: ../edit/virt-edit.pod:289
4479 msgid "Some NTFS symbolic links may not be followed correctly."
4483 #: ../edit/virt-edit.pod:293
4484 msgid "NTFS junction points that cross filesystems are not followed."
4488 #: ../edit/virt-edit.pod:299
4490 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4491 "C<virt-edit> doesn't work."
4495 #: ../edit/virt-edit.pod:302
4496 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4500 #: ../edit/virt-edit.pod:304
4503 " guestfish --rw -i -d domname edit /file\n"
4508 #: ../edit/virt-edit.pod:306
4510 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4515 #: ../edit/virt-edit.pod:309
4517 "The command above uses libguestfs's guest inspection feature and so does not "
4518 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4519 "disk images that don't contain guests. To edit a file on a disk image "
4524 #: ../edit/virt-edit.pod:314
4527 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4532 #: ../edit/virt-edit.pod:316
4534 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4535 "the disk image to edit, and C</file> is the full path to the file."
4539 #: ../edit/virt-edit.pod:320
4541 "C<virt-edit> cannot create new files. Use the guestfish commands C<touch>, "
4542 "C<write> or C<upload> instead:"
4546 #: ../edit/virt-edit.pod:323
4549 " guestfish --rw -i -d domname touch /newfile\n"
4554 #: ../edit/virt-edit.pod:325
4557 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4562 #: ../edit/virt-edit.pod:327
4565 " guestfish --rw -i -d domname upload localfile /newfile\n"
4570 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4571 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
4572 #: ../src/guestfs.pod:3194 ../test-tool/libguestfs-test-tool.pod:95
4573 msgid "ENVIRONMENT VARIABLES"
4574 msgstr "ЗМІННІ СЕРЕДОВИЩА"
4577 #: ../edit/virt-edit.pod:333
4582 #: ../edit/virt-edit.pod:335
4584 "If set, this string is used as the editor. It may contain arguments, eg. C<"
4589 #: ../edit/virt-edit.pod:338
4590 msgid "If not set, C<vi> is used."
4594 #: ../edit/virt-edit.pod:356
4596 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4597 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4598 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4600 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4601 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4602 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4605 #: ../erlang/examples/guestfs-erlang.pod:5
4606 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4610 #: ../erlang/examples/guestfs-erlang.pod:9
4613 " {ok, G} = guestfs:create(),\n"
4614 " ok = guestfs:add_drive_opts(G, Disk,\n"
4615 " [{format, \"raw\"}, {readonly, true}]),\n"
4616 " ok = guestfs:launch(G),\n"
4617 " [Device] = guestfs:list_devices(G),\n"
4618 " ok = guestfs:close(G).\n"
4623 #: ../erlang/examples/guestfs-erlang.pod:18
4625 "This manual page documents how to call libguestfs from the Erlang "
4626 "programming language. This page just documents the differences from the C "
4627 "API and gives some examples. If you are not familiar with using libguestfs, "
4628 "you also need to read L<guestfs(3)>."
4632 #: ../erlang/examples/guestfs-erlang.pod:23
4633 msgid "OPENING AND CLOSING THE HANDLE"
4637 #: ../erlang/examples/guestfs-erlang.pod:25
4639 "The Erlang bindings are implemented using an external program called C<erl-"
4640 "guestfs>. This program must be on the current PATH, or else you should "
4641 "specify the full path to the program:"
4645 #: ../erlang/examples/guestfs-erlang.pod:29
4648 " {ok, G} = guestfs:create().\n"
4653 #: ../erlang/examples/guestfs-erlang.pod:31
4656 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4661 #: ../erlang/examples/guestfs-erlang.pod:33
4662 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4666 #: ../erlang/examples/guestfs-erlang.pod:36
4667 msgid "To close the handle:"
4671 #: ../erlang/examples/guestfs-erlang.pod:38
4674 " ok = guestfs:close(G).\n"
4679 #: ../erlang/examples/guestfs-erlang.pod:40
4680 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4684 #: ../erlang/examples/guestfs-erlang.pod:42
4686 "For functions that take optional arguments, the first arguments are the non-"
4687 "optional ones. The last argument is a list of tuples supplying the "
4688 "remaining optional arguments."
4692 #: ../erlang/examples/guestfs-erlang.pod:46
4695 " ok = guestfs:add_drive_opts(G, Disk,\n"
4696 " [{format, \"raw\"}, {readonly, true}]).\n"
4701 #: ../erlang/examples/guestfs-erlang.pod:49
4702 msgid "If the last argument would be an empty list, you can also omit it:"
4706 #: ../erlang/examples/guestfs-erlang.pod:51
4709 " ok = guestfs:add_drive_opts(G, Disk).\n"
4714 #: ../erlang/examples/guestfs-erlang.pod:53
4715 msgid "RETURN VALUES AND ERRORS"
4719 #: ../erlang/examples/guestfs-erlang.pod:55
4721 "On success, most functions return a C<Result> term (which could be a list, "
4722 "string, tuple etc.). If there is nothing for the function to return, then "
4723 "the atom C<ok> is returned."
4727 #: ../erlang/examples/guestfs-erlang.pod:59
4728 msgid "On error, you would see one of the following tuples:"
4732 #: ../erlang/examples/guestfs-erlang.pod:63
4733 msgid "C<{error, Msg, Errno}>"
4737 #: ../erlang/examples/guestfs-erlang.pod:65
4738 msgid "This indicates an ordinary error from the function."
4742 #: ../erlang/examples/guestfs-erlang.pod:67
4744 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4749 #: ../erlang/examples/guestfs-erlang.pod:70
4750 msgid "C<Errno> can be zero. See L<guestfs(3)/guestfs_last_errno>."
4754 #: ../erlang/examples/guestfs-erlang.pod:72
4755 msgid "C<{unknown, Function}>"
4759 #: ../erlang/examples/guestfs-erlang.pod:74
4761 "This indicates that the function you called is not known. Generally this "
4762 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4763 "which you should not do."
4767 #: ../erlang/examples/guestfs-erlang.pod:78
4768 msgid "C<Function> is the name of the unknown function."
4772 #: ../erlang/examples/guestfs-erlang.pod:80
4773 msgid "C<{unknownarg, Arg}>"
4777 #: ../erlang/examples/guestfs-erlang.pod:82
4779 "This indicates that you called a function with optional arguments, with an "
4780 "unknown argument name."
4784 #: ../erlang/examples/guestfs-erlang.pod:85
4785 msgid "C<Arg> is the name of the unknown argument."
4789 #: ../erlang/examples/guestfs-erlang.pod:89
4790 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4791 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4792 #: ../python/examples/guestfs-python.pod:34
4793 #: ../ruby/examples/guestfs-ruby.pod:28
4794 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4795 msgstr "ПРИКЛАД 1. СТВОРЕННЯ ОБРАЗУ ДИСКА"
4798 #: ../erlang/examples/guestfs-erlang.pod:91
4799 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4800 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4801 #: ../python/examples/guestfs-python.pod:36
4802 #: ../ruby/examples/guestfs-ruby.pod:30
4807 #: ../erlang/examples/guestfs-erlang.pod:93
4808 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4809 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4810 #: ../python/examples/guestfs-python.pod:38
4811 #: ../ruby/examples/guestfs-ruby.pod:32
4812 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4813 msgstr "ПРИКЛАД 2. ПЕРЕВІРКА ОБРАЗУ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
4816 #: ../erlang/examples/guestfs-erlang.pod:95
4817 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4818 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4819 #: ../python/examples/guestfs-python.pod:40
4820 #: ../ruby/examples/guestfs-ruby.pod:34
4825 #: ../erlang/examples/guestfs-erlang.pod:99
4827 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4828 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4829 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>."
4833 #: ../erlang/examples/guestfs-erlang.pod:110
4834 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4835 #: ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60
4836 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4837 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
4838 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
4839 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4840 #: ../python/examples/guestfs-python.pod:54
4841 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3333
4842 #: ../test-tool/libguestfs-test-tool.pod:106
4847 #: ../erlang/examples/guestfs-erlang.pod:112
4848 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4849 #: ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62
4850 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4851 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
4852 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4853 #: ../perl/examples/guestfs-perl.pod:54
4854 #: ../python/examples/guestfs-python.pod:56
4855 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3335
4856 #: ../test-tool/libguestfs-test-tool.pod:108
4857 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4858 msgstr "Richard W.M. Jones (C<rjones at redhat dot com>)"
4861 #: ../erlang/examples/guestfs-erlang.pod:116
4862 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4863 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4867 #: ../erlang/examples/guestfs-erlang.pod:118
4868 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4869 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4870 #: ../perl/examples/guestfs-perl.pod:60
4871 #: ../python/examples/guestfs-python.pod:62
4872 #: ../ruby/examples/guestfs-ruby.pod:56
4874 "The examples in this manual page may be freely copied, modified and "
4875 "distributed without any restrictions."
4879 #: ../erlang/examples/guestfs-erlang.pod:121
4880 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4881 #: ../java/examples/guestfs-java.pod:69
4882 #: ../ocaml/examples/guestfs-ocaml.pod:102
4883 #: ../perl/examples/guestfs-perl.pod:63
4884 #: ../python/examples/guestfs-python.pod:65
4885 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3342
4887 "This library is free software; you can redistribute it and/or modify it "
4888 "under the terms of the GNU Lesser General Public License as published by the "
4889 "Free Software Foundation; either version 2 of the License, or (at your "
4890 "option) any later version."
4894 #: ../erlang/examples/guestfs-erlang.pod:126
4895 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4896 #: ../java/examples/guestfs-java.pod:74
4897 #: ../ocaml/examples/guestfs-ocaml.pod:107
4898 #: ../perl/examples/guestfs-perl.pod:68
4899 #: ../python/examples/guestfs-python.pod:70
4900 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3347
4902 "This library is distributed in the hope that it will be useful, but WITHOUT "
4903 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4904 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License "
4909 #: ../erlang/examples/guestfs-erlang.pod:131
4910 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4911 #: ../java/examples/guestfs-java.pod:79
4912 #: ../ocaml/examples/guestfs-ocaml.pod:112
4913 #: ../perl/examples/guestfs-perl.pod:73
4914 #: ../python/examples/guestfs-python.pod:75
4915 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3352
4917 "You should have received a copy of the GNU Lesser General Public License "
4918 "along with this library; if not, write to the Free Software Foundation, "
4919 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4923 #: ../examples/guestfs-examples.pod:5
4924 msgid "guestfs-examples - Examples of using libguestfs from C"
4928 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4931 " #include <guestfs.h>\n"
4934 " #include <guestfs.h>\n"
4938 #: ../examples/guestfs-examples.pod:11
4941 " guestfs_h *g = guestfs_create ();\n"
4942 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4943 " guestfs_launch (g);\n"
4946 " guestfs_h *g = guestfs_create ();\n"
4947 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4948 " guestfs_launch (g);\n"
4952 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4955 " cc prog.c -o prog -lguestfs\n"
4957 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4960 " cc prog.c -o prog -lguestfs\n"
4962 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4966 #: ../examples/guestfs-examples.pod:21
4968 "This manual page contains examples of calling libguestfs from the C "
4969 "programming language. If you are not familiar with using libguestfs, you "
4970 "also need to read L<guestfs(3)>."
4974 #: ../examples/guestfs-examples.pod:35
4976 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4977 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4978 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4982 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
4983 #: ../python/examples/guestfs-python.pod:60
4984 #: ../ruby/examples/guestfs-ruby.pod:54
4985 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4989 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4994 #: ../examples/guestfs-recipes.pod:5
4996 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4997 "here. The only way which works for both sorts of output is to just write "
4998 "the URL directly. Do NOT use L<...> for URLs."
5002 #: ../examples/guestfs-recipes.pod:9
5004 "We break with tradition here and don't use ALL CAPS for the section "
5005 "headings, as this makes them much easier to read."
5009 #: ../examples/guestfs-recipes.pod:16
5010 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
5014 #: ../examples/guestfs-recipes.pod:20
5016 "This page contains recipes for and links to things you can do using "
5017 "libguestfs, L<guestfish(1)> and the virt tools."
5021 #: ../examples/guestfs-recipes.pod:23
5022 msgid "Audit a virtual machine for setuid files"
5026 #: ../examples/guestfs-recipes.pod:25
5028 "The link below contains a small program which can be used to audit a Linux "
5029 "virtual machine to see what setuid and setgid files it contains."
5033 #: ../examples/guestfs-recipes.pod:28
5035 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
5040 #: ../examples/guestfs-recipes.pod:30
5041 msgid "Change the background image in a Windows XP VM"
5045 #: ../examples/guestfs-recipes.pod:32
5047 "The links below explain how to use L<guestfish(1)> to change the background "
5048 "image for a user of a Windows XP VM. Unfortunately the technique appears to "
5049 "be substantially different for each version of Windows."
5053 #: ../examples/guestfs-recipes.pod:37
5055 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
5056 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
5060 #: ../examples/guestfs-recipes.pod:40
5061 msgid "Cloning a virtual machine (Linux)"
5065 #: ../examples/guestfs-recipes.pod:42
5067 "The guestfish technique described in the link below works well for most "
5068 "Linux VMs. Depending on the Linux distro you may need to change the paths "
5073 #: ../examples/guestfs-recipes.pod:46
5075 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5080 #: ../examples/guestfs-recipes.pod:48
5082 "Avoid L<virt-clone(1)>. Currently what to do about virt-clone is under "
5087 #: ../examples/guestfs-recipes.pod:51
5088 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5092 #: ../examples/guestfs-recipes.pod:53
5093 msgid "Cloning a virtual machine (Windows)"
5097 #: ../examples/guestfs-recipes.pod:55
5099 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5100 "straightforward. Currently there is code in the Aeolus Oz project which "
5101 "does this (using libguestfs). As part of our review of the virt-clone tool, "
5102 "we may add sysprepping ability."
5106 #: ../examples/guestfs-recipes.pod:60
5108 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5109 "list/2011-May/msg00019.html"
5113 #: ../examples/guestfs-recipes.pod:63
5114 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5118 #: ../examples/guestfs-recipes.pod:65
5119 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5123 #: ../examples/guestfs-recipes.pod:67
5126 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5131 #: ../examples/guestfs-recipes.pod:69
5132 msgid "To export just a subdirectory, eg. C</files>, do:"
5136 #: ../examples/guestfs-recipes.pod:71
5139 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5144 #: ../examples/guestfs-recipes.pod:73
5145 msgid "Create empty disk images"
5149 #: ../examples/guestfs-recipes.pod:75
5151 "You can use the L<guestfish(1)> I<-N> option to create empty disk images. "
5152 "The useful guide below explains the options available."
5156 #: ../examples/guestfs-recipes.pod:78
5158 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5163 #: ../examples/guestfs-recipes.pod:80
5164 msgid "Dump raw filesystem content from inside a disk image or VM"
5168 #: ../examples/guestfs-recipes.pod:82
5170 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5171 "filesystem content from any filesystem in a disk image or a VM (even one "
5172 "which is encrypted or buried inside an LV):"
5176 #: ../examples/guestfs-recipes.pod:86
5179 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5184 #: ../examples/guestfs-recipes.pod:88
5187 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5192 #: ../examples/guestfs-recipes.pod:90
5193 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5197 #: ../examples/guestfs-recipes.pod:92
5198 msgid "Edit grub configuration in a VM"
5202 #: ../examples/guestfs-recipes.pod:94
5203 msgid "You can use this to:"
5207 #: ../examples/guestfs-recipes.pod:100
5208 msgid "Fix a virtual machine that does not boot."
5212 #: ../examples/guestfs-recipes.pod:104
5213 msgid "Change which kernel is used to boot the VM."
5217 #: ../examples/guestfs-recipes.pod:108
5218 msgid "Change kernel command line options."
5222 #: ../examples/guestfs-recipes.pod:112
5223 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5227 #: ../examples/guestfs-recipes.pod:114
5230 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5235 #: ../examples/guestfs-recipes.pod:116
5237 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5242 #: ../examples/guestfs-recipes.pod:119
5245 " virt-rescue -d BrokenGuest\n"
5250 #: ../examples/guestfs-recipes.pod:121
5251 msgid "Export any directory from a VM"
5255 #: ../examples/guestfs-recipes.pod:123
5257 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5261 #: ../examples/guestfs-recipes.pod:126
5264 " virt-copy-out -d Guest /home .\n"
5269 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5270 #: ../fish/guestfish-actions.pod:1332 ../fish/guestfish-actions.pod:1597
5271 #: ../fish/guestfish-actions.pod:2014 ../src/guestfs-actions.pod:18
5272 #: ../src/guestfs-actions.pod:2039 ../src/guestfs-actions.pod:2463
5273 #: ../src/guestfs-actions.pod:3022 ../src/guestfs.pod:1670
5274 #: ../tools/virt-win-reg.pl:717
5279 #: ../examples/guestfs-recipes.pod:134
5281 "The final dot of the command is not a printing error. It means we want to "
5282 "copy out to the current directory."
5286 #: ../examples/guestfs-recipes.pod:139
5287 msgid "This creates a directory called C<home> under the current directory."
5291 #: ../examples/guestfs-recipes.pod:143
5293 "If the guest is a Windows guest then you can use drive letters and "
5294 "backslashes, but you must prefix the path with C<win:> and quote it to "
5295 "protect it from the shell, like this:"
5299 #: ../examples/guestfs-recipes.pod:147
5302 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5307 #: ../examples/guestfs-recipes.pod:149
5308 msgid "To get the output as a compressed tarball, do:"
5312 #: ../examples/guestfs-recipes.pod:151
5315 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5320 #: ../examples/guestfs-recipes.pod:153
5322 "Although it sounds tempting, this is usually not a reliable way to get a "
5323 "backup from a running guest. See the entry in the FAQ: http://libguestfs."
5324 "org/FAQ.html#backup"
5328 #: ../examples/guestfs-recipes.pod:157
5329 msgid "Find out which user is using the most space"
5333 #: ../examples/guestfs-recipes.pod:159
5335 "This simple script examines a Linux guest to find out which user is using "
5336 "the most space in their home directory:"
5340 #: ../examples/guestfs-recipes.pod:162
5348 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5356 #: ../examples/guestfs-recipes.pod:166
5365 #: ../examples/guestfs-recipes.pod:169
5368 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5373 #: ../examples/guestfs-recipes.pod:171
5376 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5377 " echo -n \"$dir/$d\"\n"
5379 " guestfish --remote du \"$dir/$d\";\n"
5380 " done | sort -nr -k 2\n"
5385 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5388 " guestfish --remote exit\n"
5393 #: ../examples/guestfs-recipes.pod:179
5394 msgid "Get DHCP address from a VM"
5398 #: ../examples/guestfs-recipes.pod:181
5400 "The link below explains the many different possible techniques for getting "
5401 "the last assigned DHCP address of a virtual machine."
5405 #: ../examples/guestfs-recipes.pod:184
5407 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5408 "a-virtual-machine-disk-image/#content"
5412 #: ../examples/guestfs-recipes.pod:186
5414 "In the libguestfs source examples directory you will find the latest version "
5415 "of the C<virt-dhcp-address.c> program."
5419 #: ../examples/guestfs-recipes.pod:189
5420 msgid "Get the operating system product name string"
5424 #: ../examples/guestfs-recipes.pod:191
5425 msgid "Save the following script into a file called C<product-name.sh>:"
5429 #: ../examples/guestfs-recipes.pod:193
5434 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5435 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5436 " guestfish --remote inspect-get-product-name \"$root\"\n"
5437 " guestfish --remote exit\n"
5442 #: ../examples/guestfs-recipes.pod:200
5443 msgid "Make the script executable and run it on a named guest:"
5447 #: ../examples/guestfs-recipes.pod:202
5450 " # product-name.sh RHEL60x64\n"
5451 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5456 #: ../examples/guestfs-recipes.pod:205
5458 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5459 "C<xpath> command line tool or from your favourite programming language:"
5463 #: ../examples/guestfs-recipes.pod:209
5466 " # virt-inspector RHEL60x64 > xml\n"
5467 " # xpath '//product_name' < xml\n"
5470 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5475 #: ../examples/guestfs-recipes.pod:215
5476 msgid "Get the default boot kernel for a Linux VM"
5480 #: ../examples/guestfs-recipes.pod:217
5482 "The link below contains a program to print the default boot kernel for a "
5487 #: ../examples/guestfs-recipes.pod:220
5489 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5490 "kernel-for-a-vm/#content"
5494 #: ../examples/guestfs-recipes.pod:222
5496 "It uses Augeas, and the technique is generally applicable for many different "
5501 #: ../examples/guestfs-recipes.pod:229
5502 msgid "listing the user accounts in the guest"
5506 #: ../examples/guestfs-recipes.pod:233
5507 msgid "what repositories is it configured to use"
5511 #: ../examples/guestfs-recipes.pod:237
5512 msgid "what NTP servers does it connect to"
5516 #: ../examples/guestfs-recipes.pod:241
5517 msgid "what were the boot messages last time it booted"
5521 #: ../examples/guestfs-recipes.pod:245
5522 msgid "listing who was logged in recently"
5526 #: ../examples/guestfs-recipes.pod:249
5527 msgid "http://augeas.net/"
5531 #: ../examples/guestfs-recipes.pod:251
5532 msgid "Install RPMs in a guest"
5536 #: ../examples/guestfs-recipes.pod:253
5538 "The link below contains a method to install RPMs in a guest. In fact the "
5539 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5540 "installs them next time the guest is booted. You could use this technique "
5541 "to install vital security updates in an offline guest."
5545 #: ../examples/guestfs-recipes.pod:259
5547 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5551 #: ../examples/guestfs-recipes.pod:261
5552 msgid "List applications installed in a VM"
5556 #: ../examples/guestfs-recipes.pod:263
5557 msgid "Save the following to a file C<list-apps.sh>:"
5561 #: ../examples/guestfs-recipes.pod:265
5566 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5567 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5568 " guestfish --remote inspect-list-applications \"$root\"\n"
5569 " guestfish --remote exit\n"
5574 #: ../examples/guestfs-recipes.pod:272
5576 "Make the file executable and then you can run it on any named virtual "
5581 #: ../examples/guestfs-recipes.pod:275
5584 " # list-apps.sh WinGuest\n"
5586 " app_name: Mozilla Firefox (3.6.12)\n"
5587 " app_display_name: Mozilla Firefox (3.6.12)\n"
5589 " app_version: 3.6.12 (en-GB)\n"
5591 " app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5592 " app_trans_path:\n"
5593 " app_publisher: Mozilla\n"
5594 " app_url: http://www.mozilla.com/en-GB/\n"
5595 " app_source_package:\n"
5597 " app_description: Mozilla Firefox\n"
5600 " app_name: VLC media player\n"
5601 " app_display_name: VLC media player 1.1.5\n"
5603 " app_version: 1.1.5\n"
5605 " app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5606 " app_trans_path:\n"
5607 " app_publisher: VideoLAN\n"
5608 " app_url: http://www.videolan.org/\n"
5609 " app_source_package:\n"
5611 " app_description:\n"
5617 #: ../examples/guestfs-recipes.pod:305
5619 "If you want to run the script on disk images (instead of libvirt virtual "
5620 "machines), change C<-d \"$1\"> to C<-a \"$1\">. See also L<virt-inspector(1)"
5625 #: ../examples/guestfs-recipes.pod:309
5626 msgid "List files and directories in a VM"
5630 #: ../examples/guestfs-recipes.pod:311
5631 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5635 #: ../examples/guestfs-recipes.pod:313
5638 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5643 #: ../examples/guestfs-recipes.pod:315
5644 msgid "List services in a Windows VM"
5648 #: ../examples/guestfs-recipes.pod:317
5650 "The link below contains a script that can be used to list out the services "
5651 "from a Windows VM, and whether those services run at boot time or are loaded "
5656 #: ../examples/guestfs-recipes.pod:321
5658 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5663 #: ../examples/guestfs-recipes.pod:323
5664 msgid "Make a disk image sparse"
5668 #: ../examples/guestfs-recipes.pod:325
5670 "The link below contains some guides for making a disk image sparse (or "
5671 "reintroducing sparseness)."
5675 #: ../examples/guestfs-recipes.pod:328
5677 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5681 #: ../examples/guestfs-recipes.pod:330
5682 msgid "Monitor disk usage over time"
5686 #: ../examples/guestfs-recipes.pod:332
5688 "You can use L<virt-df(1)> to monitor disk usage of your guests over time. "
5689 "The link below contains a guide."
5693 #: ../examples/guestfs-recipes.pod:335
5694 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5698 #: ../examples/guestfs-recipes.pod:337
5699 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5703 #: ../examples/guestfs-recipes.pod:339
5705 "L<guestfish(1)> plus the tools described in the link below can be used to "
5706 "read out the Windows Event Log from any virtual machine running Windows "
5707 "Vista or a later version."
5711 #: ../examples/guestfs-recipes.pod:343
5713 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5714 "guestfish/#content"
5718 #: ../examples/guestfs-recipes.pod:345
5719 msgid "Remove root password (Linux)"
5723 #: ../examples/guestfs-recipes.pod:347
5725 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5726 "files. One use is to remove the root password from a Linux guest:"
5730 #: ../examples/guestfs-recipes.pod:350
5733 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5738 #: ../examples/guestfs-recipes.pod:352
5739 msgid "Remove Administrator password (Windows)"
5743 #: ../examples/guestfs-recipes.pod:354
5745 "The link below contains one technique for removing the Administrator "
5746 "password from a Windows VM, or to be more precise, it gives you a command "
5747 "prompt the next time you log in which you can use to bypass any security:"
5751 #: ../examples/guestfs-recipes.pod:359
5753 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5754 "administrator-password-with-guestfish/"
5758 #: ../examples/guestfs-recipes.pod:361
5759 msgid "Unpack a live CD"
5763 #: ../examples/guestfs-recipes.pod:363
5765 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5766 "Russian doll. You can use L<guestfish(1)> to look inside these multiple "
5767 "layers, as outlined in the guide below."
5771 #: ../examples/guestfs-recipes.pod:367
5773 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5778 #: ../examples/guestfs-recipes.pod:369
5779 msgid "Uploading and downloading files"
5783 #: ../examples/guestfs-recipes.pod:371
5785 "The link below contains general tips on uploading (copying in) and "
5786 "downloading (copying out) files from VMs."
5790 #: ../examples/guestfs-recipes.pod:374
5792 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5796 #: ../examples/guestfs-recipes.pod:376
5797 msgid "Use libguestfs tools on VMware ESX guests"
5801 #: ../examples/guestfs-recipes.pod:378
5803 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5804 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5808 #: ../examples/guestfs-recipes.pod:382
5810 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5815 #: ../examples/guestfs-recipes.pod:386
5817 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5818 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5819 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5823 #: ../examples/guestfs-recipes.pod:403
5824 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5828 #: ../fish/guestfish-actions.pod:1
5833 #: ../fish/guestfish-actions.pod:3
5836 " add-cdrom filename\n"
5841 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5842 msgid "This function adds a virtual CD-ROM disk image to the guest."
5846 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5847 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5851 #: ../fish/guestfish-actions.pod:15
5853 "This call checks for the existence of C<filename>. This stops you from "
5854 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5855 "and C<http:> URLs. To specify those, use the general L</config> call "
5860 #: ../fish/guestfish-actions.pod:22
5862 "If you just want to add an ISO file (often you use this as an efficient way "
5863 "to transfer large files into the guest), then you should probably use L</add-"
5864 "drive-ro> instead."
5868 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:168
5869 #: ../fish/guestfish-actions.pod:182
5871 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5876 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:171
5877 #: ../fish/guestfish-actions.pod:185 ../fish/guestfish-actions.pod:1031
5878 #: ../fish/guestfish-actions.pod:1391 ../fish/guestfish-actions.pod:1405
5879 #: ../fish/guestfish-actions.pod:3175 ../fish/guestfish-actions.pod:3486
5880 #: ../fish/guestfish-actions.pod:3534 ../fish/guestfish-actions.pod:4447
5881 #: ../fish/guestfish-actions.pod:4470 ../fish/guestfish-actions.pod:4492
5882 #: ../fish/guestfish-actions.pod:4530 ../fish/guestfish-actions.pod:5179
5883 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:10
5884 #: ../src/guestfs-actions.pod:258 ../src/guestfs-actions.pod:279
5885 #: ../src/guestfs-actions.pod:1625 ../src/guestfs-actions.pod:2124
5886 #: ../src/guestfs-actions.pod:2145 ../src/guestfs-actions.pod:4790
5887 #: ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5412
5888 #: ../src/guestfs-actions.pod:6694 ../src/guestfs-actions.pod:6738
5889 #: ../src/guestfs-actions.pod:6772 ../src/guestfs-actions.pod:6835
5890 #: ../src/guestfs-actions.pod:7767 ../src/guestfs-actions.pod:7876
5891 #: ../src/guestfs-actions.pod:8059
5893 "Deprecated functions will not be removed from the API, but the fact that "
5894 "they are deprecated indicates that there are problems with correct use of "
5899 #: ../fish/guestfish-actions.pod:35
5904 #: ../fish/guestfish-actions.pod:37
5909 #: ../fish/guestfish-actions.pod:39
5912 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
5917 #: ../fish/guestfish-actions.pod:41
5919 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
5920 "It works by connecting to libvirt, requesting the domain and domain XML from "
5921 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5925 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
5927 "The number of disks added is returned. This operation is atomic: if an "
5928 "error is returned, then no disks are added."
5932 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
5934 "This function does some minimal checks to make sure the libvirt domain is "
5935 "not running (unless C<readonly> is true). In a future version we will try "
5936 "to acquire the libvirt lock on each disk."
5940 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
5942 "Disks must be accessible locally. This often means that adding disks from a "
5943 "remote libvirt connection (see L<http://libvirt.org/remote.html>) will fail "
5944 "unless those disks are accessible via the same device path locally too."
5948 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
5950 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
5951 "libvirt.org/uri.html>). If this is not set then we connect to the default "
5952 "libvirt URI (or one set through an environment variable, see the libvirt "
5953 "documentation for full details)."
5957 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
5959 "The optional C<live> flag controls whether this call will try to connect to "
5960 "a running virtual machine C<guestfsd> process if it sees a suitable "
5961 "E<lt>channelE<gt> element in the libvirt XML definition. The default (if "
5962 "the flag is omitted) is never to try. See L<guestfs(3)/ATTACHING TO RUNNING "
5963 "DAEMONS> for more information."
5967 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
5969 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
5970 "passed instead of the domain name. The C<dom> string is treated as a UUID "
5971 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
5976 #: ../fish/guestfish-actions.pod:76
5978 "The other optional parameters are passed directly through to L</add-drive-"
5983 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:148
5984 #: ../fish/guestfish-actions.pod:578 ../fish/guestfish-actions.pod:789
5985 #: ../fish/guestfish-actions.pod:810 ../fish/guestfish-actions.pod:2053
5986 #: ../fish/guestfish-actions.pod:3224 ../fish/guestfish-actions.pod:3387
5987 #: ../fish/guestfish-actions.pod:3522
5989 "This command has one or more optional arguments. See L</OPTIONAL ARGUMENTS>."
5993 #: ../fish/guestfish-actions.pod:81
5998 #: ../fish/guestfish-actions.pod:83
6001 " add-drive filename\n"
6004 " add-drive назва_файла\n"
6008 #: ../fish/guestfish-actions.pod:85
6010 "This function is the equivalent of calling L</add-drive-opts> with no "
6011 "optional parameters, so the disk is added writable, with the format being "
6012 "detected automatically."
6016 #: ../fish/guestfish-actions.pod:89
6018 "Automatic detection of the format opens you up to a potential security hole "
6019 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
6020 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
6021 "you should think about replacing calls to this function with calls to L</add-"
6022 "drive-opts>, and specifying the format."
6026 #: ../fish/guestfish-actions.pod:96
6027 msgid "add-drive-opts"
6028 msgstr "add-drive-opts"
6031 #: ../fish/guestfish-actions.pod:98
6036 #: ../fish/guestfish-actions.pod:100
6039 " add-drive-opts filename [readonly:..] [format:..] [iface:..] [name:..]\n"
6044 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:161
6046 "This function adds a virtual machine disk image C<filename> to libguestfs. "
6047 "The first time you call this function, the disk appears as C</dev/sda>, the "
6048 "second time as C</dev/sdb>, and so on."
6052 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:166
6054 "You don't necessarily need to be root when using libguestfs. However you "
6055 "obviously do need sufficient permissions to access the filename for whatever "
6056 "operations you want to perform (ie. read access if you just want to read the "
6057 "image or write access if you want to modify the image)."
6061 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:172
6062 msgid "This call checks that C<filename> exists."
6066 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3186
6067 #: ../src/guestfs-actions.pod:174 ../src/guestfs-actions.pod:4827
6068 msgid "The optional arguments are:"
6072 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:178
6074 msgstr "C<readonly>"
6077 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:180
6079 "If true then the image is treated as read-only. Writes are still allowed, "
6080 "but they are stored in a temporary snapshot overlay which is discarded at "
6081 "the end. The disk that you add is not modified."
6085 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:184
6090 #: ../fish/guestfish-actions.pod:127
6092 "This forces the image format. If you omit this (or use L</add-drive> or L</"
6093 "add-drive-ro>) then the format is automatically detected. Possible formats "
6094 "include C<raw> and C<qcow2>."
6098 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:190
6100 "Automatic detection of the format opens you up to a potential security hole "
6101 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
6102 "RHBZ#642934. Specifying the format closes this security hole."
6106 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:195
6111 #: ../fish/guestfish-actions.pod:138
6113 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6114 "add-drive-with-if> call (q.v.)"
6118 #: ../fish/guestfish-actions.pod:141 ../src/guestfs-actions.pod:200
6120 #| msgid "C<app_name>"
6122 msgstr "C<app_name>"
6125 #: ../fish/guestfish-actions.pod:143 ../src/guestfs-actions.pod:202
6127 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6128 "a hint to the guest inspection process if it is available."
6132 #: ../fish/guestfish-actions.pod:150
6133 msgid "add-drive-ro"
6134 msgstr "add-drive-ro"
6137 #: ../fish/guestfish-actions.pod:152
6142 #: ../fish/guestfish-actions.pod:154
6145 " add-drive-ro filename\n"
6150 #: ../fish/guestfish-actions.pod:156
6152 "This function is the equivalent of calling L</add-drive-opts> with the "
6153 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6154 "is added read-only, with the format being detected automatically."
6158 #: ../fish/guestfish-actions.pod:161
6159 msgid "add-drive-ro-with-if"
6163 #: ../fish/guestfish-actions.pod:163
6166 " add-drive-ro-with-if filename iface\n"
6171 #: ../fish/guestfish-actions.pod:165
6173 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6174 "interface emulation to use at run time."
6178 #: ../fish/guestfish-actions.pod:175
6179 msgid "add-drive-with-if"
6183 #: ../fish/guestfish-actions.pod:177
6186 " add-drive-with-if filename iface\n"
6191 #: ../fish/guestfish-actions.pod:179
6193 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6194 "interface emulation to use at run time."
6198 #: ../fish/guestfish-actions.pod:189
6203 #: ../fish/guestfish-actions.pod:191
6206 " aug-clear augpath\n"
6211 #: ../fish/guestfish-actions.pod:193 ../src/guestfs-actions.pod:296
6213 "Set the value associated with C<path> to C<NULL>. This is the same as the "
6214 "L<augtool(1)> C<clear> command."
6218 #: ../fish/guestfish-actions.pod:196
6223 #: ../fish/guestfish-actions.pod:198
6231 #: ../fish/guestfish-actions.pod:200
6233 "Close the current Augeas handle and free up any resources used by it. After "
6234 "calling this, you have to call L</aug-init> again before you can use any "
6235 "other Augeas functions."
6239 #: ../fish/guestfish-actions.pod:205
6244 #: ../fish/guestfish-actions.pod:207
6247 " aug-defnode name expr val\n"
6252 #: ../fish/guestfish-actions.pod:209 ../src/guestfs-actions.pod:325
6254 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6258 #: ../fish/guestfish-actions.pod:212
6260 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6261 "calling L</aug-set> C<expr>, C<value>. C<name> will be the nodeset "
6262 "containing that single node."
6266 #: ../fish/guestfish-actions.pod:216 ../src/guestfs-actions.pod:332
6268 "On success this returns a pair containing the number of nodes in the "
6269 "nodeset, and a boolean flag if a node was created."
6273 #: ../fish/guestfish-actions.pod:220
6278 #: ../fish/guestfish-actions.pod:222
6281 " aug-defvar name expr\n"
6286 #: ../fish/guestfish-actions.pod:224 ../src/guestfs-actions.pod:349
6288 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6289 "C<expr>. If C<expr> is NULL, then C<name> is undefined."
6293 #: ../fish/guestfish-actions.pod:228 ../src/guestfs-actions.pod:353
6295 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6296 "evaluates to something which is not a nodeset."
6300 #: ../fish/guestfish-actions.pod:231
6305 #: ../fish/guestfish-actions.pod:233
6308 " aug-get augpath\n"
6313 #: ../fish/guestfish-actions.pod:235 ../src/guestfs-actions.pod:366
6315 "Look up the value associated with C<path>. If C<path> matches exactly one "
6316 "node, the C<value> is returned."
6320 #: ../fish/guestfish-actions.pod:238
6325 #: ../fish/guestfish-actions.pod:240
6328 " aug-init root flags\n"
6333 #: ../fish/guestfish-actions.pod:242 ../src/guestfs-actions.pod:381
6335 "Create a new Augeas handle for editing configuration files. If there was "
6336 "any previous Augeas handle associated with this guestfs session, then it is "
6341 #: ../fish/guestfish-actions.pod:246
6342 msgid "You must call this before using any other L</aug-*> commands."
6346 #: ../fish/guestfish-actions.pod:249 ../src/guestfs-actions.pod:388
6348 "C<root> is the filesystem root. C<root> must not be NULL, use C</> instead."
6352 #: ../fish/guestfish-actions.pod:252 ../src/guestfs-actions.pod:391
6354 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6355 "logical I<or> of the following integers:"
6359 #: ../fish/guestfish-actions.pod:258 ../src/guestfs-actions.pod:397
6360 msgid "C<AUG_SAVE_BACKUP> = 1"
6361 msgstr "C<AUG_SAVE_BACKUP> = 1"
6364 #: ../fish/guestfish-actions.pod:260 ../src/guestfs-actions.pod:399
6365 msgid "Keep the original file with a C<.augsave> extension."
6369 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:401
6370 msgid "C<AUG_SAVE_NEWFILE> = 2"
6371 msgstr "C<AUG_SAVE_NEWFILE> = 2"
6374 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:403
6376 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6377 "original. Overrides C<AUG_SAVE_BACKUP>."
6381 #: ../fish/guestfish-actions.pod:267 ../src/guestfs-actions.pod:406
6382 msgid "C<AUG_TYPE_CHECK> = 4"
6383 msgstr "C<AUG_TYPE_CHECK> = 4"
6386 #: ../fish/guestfish-actions.pod:269 ../src/guestfs-actions.pod:408
6387 msgid "Typecheck lenses."
6391 #: ../fish/guestfish-actions.pod:271
6393 "This option is only useful when debugging Augeas lenses. Use of this option "
6394 "may require additional memory for the libguestfs appliance. You may need to "
6395 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6399 #: ../fish/guestfish-actions.pod:276 ../src/guestfs-actions.pod:415
6400 msgid "C<AUG_NO_STDINC> = 8"
6401 msgstr "C<AUG_NO_STDINC> = 8"
6404 #: ../fish/guestfish-actions.pod:278 ../src/guestfs-actions.pod:417
6405 msgid "Do not use standard load path for modules."
6409 #: ../fish/guestfish-actions.pod:280 ../src/guestfs-actions.pod:419
6410 msgid "C<AUG_SAVE_NOOP> = 16"
6411 msgstr "C<AUG_SAVE_NOOP> = 16"
6414 #: ../fish/guestfish-actions.pod:282 ../src/guestfs-actions.pod:421
6415 msgid "Make save a no-op, just record what would have been changed."
6419 #: ../fish/guestfish-actions.pod:284 ../src/guestfs-actions.pod:423
6420 msgid "C<AUG_NO_LOAD> = 32"
6421 msgstr "C<AUG_NO_LOAD> = 32"
6424 #: ../fish/guestfish-actions.pod:286
6425 msgid "Do not load the tree in L</aug-init>."
6429 #: ../fish/guestfish-actions.pod:290
6430 msgid "To close the handle, you can call L</aug-close>."
6434 #: ../fish/guestfish-actions.pod:292 ../src/guestfs-actions.pod:431
6435 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6439 #: ../fish/guestfish-actions.pod:294
6444 #: ../fish/guestfish-actions.pod:296
6447 " aug-insert augpath label true|false\n"
6452 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:445
6454 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6455 "or after C<path> (depending on the boolean flag C<before>)."
6459 #: ../fish/guestfish-actions.pod:302 ../src/guestfs-actions.pod:449
6461 "C<path> must match exactly one existing node in the tree, and C<label> must "
6462 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6466 #: ../fish/guestfish-actions.pod:306
6471 #: ../fish/guestfish-actions.pod:308
6479 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:462
6480 msgid "Load files into the tree."
6481 msgstr "Завантажити файли до ієрархії."
6484 #: ../fish/guestfish-actions.pod:312 ../src/guestfs-actions.pod:464
6485 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6489 #: ../fish/guestfish-actions.pod:315
6494 #: ../fish/guestfish-actions.pod:317
6502 #: ../fish/guestfish-actions.pod:319
6504 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6505 "resulting nodes into alphabetical order."
6509 #: ../fish/guestfish-actions.pod:322
6514 #: ../fish/guestfish-actions.pod:324
6517 " aug-match augpath\n"
6522 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:492
6524 "Returns a list of paths which match the path expression C<path>. The "
6525 "returned paths are sufficiently qualified so that they match exactly one "
6526 "node in the current tree."
6530 #: ../fish/guestfish-actions.pod:330
6535 #: ../fish/guestfish-actions.pod:332
6538 " aug-mv src dest\n"
6543 #: ../fish/guestfish-actions.pod:334 ../src/guestfs-actions.pod:509
6545 "Move the node C<src> to C<dest>. C<src> must match exactly one node. "
6546 "C<dest> is overwritten if it exists."
6550 #: ../fish/guestfish-actions.pod:337
6555 #: ../fish/guestfish-actions.pod:339
6563 #: ../fish/guestfish-actions.pod:341 ../src/guestfs-actions.pod:522
6564 msgid "Remove C<path> and all of its children."
6568 #: ../fish/guestfish-actions.pod:343 ../src/guestfs-actions.pod:524
6569 msgid "On success this returns the number of entries which were removed."
6573 #: ../fish/guestfish-actions.pod:345
6578 #: ../fish/guestfish-actions.pod:347
6586 #: ../fish/guestfish-actions.pod:349 ../src/guestfs-actions.pod:535
6587 msgid "This writes all pending changes to disk."
6591 #: ../fish/guestfish-actions.pod:351
6593 "The flags which were passed to L</aug-init> affect exactly how files are "
6598 #: ../fish/guestfish-actions.pod:354
6603 #: ../fish/guestfish-actions.pod:356
6606 " aug-set augpath val\n"
6611 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:551
6612 msgid "Set the value associated with C<path> to C<val>."
6616 #: ../fish/guestfish-actions.pod:360
6618 "In the Augeas API, it is possible to clear a node by setting the value to "
6619 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
6620 "this call. Instead you must use the L</aug-clear> call."
6624 #: ../fish/guestfish-actions.pod:365
6629 #: ../fish/guestfish-actions.pod:367
6632 " available 'groups ...'\n"
6637 #: ../fish/guestfish-actions.pod:369 ../src/guestfs-actions.pod:568
6639 "This command is used to check the availability of some groups of "
6640 "functionality in the appliance, which not all builds of the libguestfs "
6641 "appliance will be able to provide."
6645 #: ../fish/guestfish-actions.pod:373
6647 "The libguestfs groups, and the functions that those groups correspond to, "
6648 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
6649 "runtime by calling L</available-all-groups>."
6653 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:577
6655 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6656 "\"]> would check for the availability of the Linux inotify functions and "
6657 "Augeas (configuration file editing) functions."
6661 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:582
6662 msgid "The command returns no error if I<all> requested groups are available."
6666 #: ../fish/guestfish-actions.pod:385 ../src/guestfs-actions.pod:584
6668 "It fails with an error if one or more of the requested groups is unavailable "
6673 #: ../fish/guestfish-actions.pod:388 ../src/guestfs-actions.pod:587
6675 "If an unknown group name is included in the list of groups then an error is "
6680 #: ../fish/guestfish-actions.pod:391 ../src/guestfs-actions.pod:590
6682 msgstr "I<Нотатки:>"
6685 #: ../fish/guestfish-actions.pod:397
6686 msgid "You must call L</launch> before calling this function."
6690 #: ../fish/guestfish-actions.pod:399 ../src/guestfs-actions.pod:598
6692 "The reason is because we don't know what groups are supported by the "
6693 "appliance/daemon until it is running and can be queried."
6697 #: ../fish/guestfish-actions.pod:405 ../src/guestfs-actions.pod:604
6699 "If a group of functions is available, this does not necessarily mean that "
6700 "they will work. You still have to check for errors when calling individual "
6701 "API functions even if they are available."
6705 #: ../fish/guestfish-actions.pod:412 ../src/guestfs-actions.pod:611
6707 "It is usually the job of distro packagers to build complete functionality "
6708 "into the libguestfs appliance. Upstream libguestfs, if built from source "
6709 "with all requirements satisfied, will support everything."
6713 #: ../fish/guestfish-actions.pod:419
6715 "This call was added in version C<1.0.80>. In previous versions of "
6716 "libguestfs all you could do would be to speculatively execute a command to "
6717 "find out if the daemon implemented it. See also L</version>."
6721 #: ../fish/guestfish-actions.pod:426
6722 msgid "available-all-groups"
6726 #: ../fish/guestfish-actions.pod:428
6729 " available-all-groups\n"
6734 #: ../fish/guestfish-actions.pod:430
6736 "This command returns a list of all optional groups that this daemon knows "
6737 "about. Note this returns both supported and unsupported groups. To find "
6738 "out which ones the daemon can actually support you have to call L</"
6739 "available> on each member of the returned list."
6743 #: ../fish/guestfish-actions.pod:436
6744 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6748 #: ../fish/guestfish-actions.pod:438
6753 #: ../fish/guestfish-actions.pod:440
6756 " base64-in (base64file|-) filename\n"
6761 #: ../fish/guestfish-actions.pod:442 ../src/guestfs-actions.pod:655
6763 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6767 #: ../fish/guestfish-actions.pod:445 ../fish/guestfish-actions.pod:454
6768 #: ../fish/guestfish-actions.pod:703 ../fish/guestfish-actions.pod:787
6769 #: ../fish/guestfish-actions.pod:808 ../fish/guestfish-actions.pod:907
6770 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:1300
6771 #: ../fish/guestfish-actions.pod:4750 ../fish/guestfish-actions.pod:4762
6772 #: ../fish/guestfish-actions.pod:4773 ../fish/guestfish-actions.pod:4784
6773 #: ../fish/guestfish-actions.pod:4836 ../fish/guestfish-actions.pod:4845
6774 #: ../fish/guestfish-actions.pod:4899 ../fish/guestfish-actions.pod:4922
6775 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6779 #: ../fish/guestfish-actions.pod:447
6784 #: ../fish/guestfish-actions.pod:449
6787 " base64-out filename (base64file|-)\n"
6792 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:669
6794 "This command downloads the contents of C<filename>, writing it out to local "
6795 "file C<base64file> encoded as base64."
6799 #: ../fish/guestfish-actions.pod:456
6800 msgid "blockdev-flushbufs"
6804 #: ../fish/guestfish-actions.pod:458
6807 " blockdev-flushbufs device\n"
6812 #: ../fish/guestfish-actions.pod:460 ../src/guestfs-actions.pod:682
6814 "This tells the kernel to flush internal buffers associated with C<device>."
6818 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:474
6819 #: ../fish/guestfish-actions.pod:483 ../fish/guestfish-actions.pod:493
6820 #: ../fish/guestfish-actions.pod:505 ../fish/guestfish-actions.pod:518
6821 #: ../fish/guestfish-actions.pod:526 ../fish/guestfish-actions.pod:537
6822 #: ../fish/guestfish-actions.pod:545 ../fish/guestfish-actions.pod:553
6823 #: ../src/guestfs-actions.pod:685 ../src/guestfs-actions.pod:702
6824 #: ../src/guestfs-actions.pod:717 ../src/guestfs-actions.pod:733
6825 #: ../src/guestfs-actions.pod:751 ../src/guestfs-actions.pod:770
6826 #: ../src/guestfs-actions.pod:784 ../src/guestfs-actions.pod:802
6827 #: ../src/guestfs-actions.pod:816 ../src/guestfs-actions.pod:830
6828 msgid "This uses the L<blockdev(8)> command."
6832 #: ../fish/guestfish-actions.pod:465
6833 msgid "blockdev-getbsz"
6837 #: ../fish/guestfish-actions.pod:467
6840 " blockdev-getbsz device\n"
6845 #: ../fish/guestfish-actions.pod:469 ../src/guestfs-actions.pod:697
6846 msgid "This returns the block size of a device."
6850 #: ../fish/guestfish-actions.pod:471 ../fish/guestfish-actions.pod:534
6851 #: ../src/guestfs-actions.pod:699 ../src/guestfs-actions.pod:799
6853 "(Note this is different from both I<size in blocks> and I<filesystem block "
6858 #: ../fish/guestfish-actions.pod:476
6859 msgid "blockdev-getro"
6863 #: ../fish/guestfish-actions.pod:478
6866 " blockdev-getro device\n"
6871 #: ../fish/guestfish-actions.pod:480 ../src/guestfs-actions.pod:714
6873 "Returns a boolean indicating if the block device is read-only (true if read-"
6874 "only, false if not)."
6878 #: ../fish/guestfish-actions.pod:485
6879 msgid "blockdev-getsize64"
6883 #: ../fish/guestfish-actions.pod:487
6886 " blockdev-getsize64 device\n"
6891 #: ../fish/guestfish-actions.pod:489 ../src/guestfs-actions.pod:729
6892 msgid "This returns the size of the device in bytes."
6896 #: ../fish/guestfish-actions.pod:491
6897 msgid "See also L</blockdev-getsz>."
6898 msgstr "Див. також L</blockdev-getsz>."
6901 #: ../fish/guestfish-actions.pod:495
6902 msgid "blockdev-getss"
6906 #: ../fish/guestfish-actions.pod:497
6909 " blockdev-getss device\n"
6914 #: ../fish/guestfish-actions.pod:499 ../src/guestfs-actions.pod:745
6916 "This returns the size of sectors on a block device. Usually 512, but can be "
6917 "larger for modern devices."
6921 #: ../fish/guestfish-actions.pod:502
6923 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
6927 #: ../fish/guestfish-actions.pod:507
6928 msgid "blockdev-getsz"
6932 #: ../fish/guestfish-actions.pod:509
6935 " blockdev-getsz device\n"
6940 #: ../fish/guestfish-actions.pod:511 ../src/guestfs-actions.pod:763
6942 "This returns the size of the device in units of 512-byte sectors (even if "
6943 "the sectorsize isn't 512 bytes ... weird)."
6947 #: ../fish/guestfish-actions.pod:514
6949 "See also L</blockdev-getss> for the real sector size of the device, and L</"
6950 "blockdev-getsize64> for the more useful I<size in bytes>."
6954 #: ../fish/guestfish-actions.pod:520
6955 msgid "blockdev-rereadpt"
6959 #: ../fish/guestfish-actions.pod:522
6962 " blockdev-rereadpt device\n"
6967 #: ../fish/guestfish-actions.pod:524 ../src/guestfs-actions.pod:782
6968 msgid "Reread the partition table on C<device>."
6972 #: ../fish/guestfish-actions.pod:528
6973 msgid "blockdev-setbsz"
6977 #: ../fish/guestfish-actions.pod:530
6980 " blockdev-setbsz device blocksize\n"
6985 #: ../fish/guestfish-actions.pod:532 ../src/guestfs-actions.pod:797
6986 msgid "This sets the block size of a device."
6990 #: ../fish/guestfish-actions.pod:539
6991 msgid "blockdev-setro"
6995 #: ../fish/guestfish-actions.pod:541
6998 " blockdev-setro device\n"
7003 #: ../fish/guestfish-actions.pod:543 ../src/guestfs-actions.pod:814
7004 msgid "Sets the block device named C<device> to read-only."
7008 #: ../fish/guestfish-actions.pod:547
7009 msgid "blockdev-setrw"
7013 #: ../fish/guestfish-actions.pod:549
7016 " blockdev-setrw device\n"
7021 #: ../fish/guestfish-actions.pod:551 ../src/guestfs-actions.pod:828
7022 msgid "Sets the block device named C<device> to read-write."
7026 #: ../fish/guestfish-actions.pod:555
7027 msgid "btrfs-filesystem-resize"
7031 #: ../fish/guestfish-actions.pod:557
7034 " btrfs-filesystem-resize mountpoint [size:..]\n"
7039 #: ../fish/guestfish-actions.pod:559 ../src/guestfs-actions.pod:850
7040 msgid "This command resizes a btrfs filesystem."
7044 #: ../fish/guestfish-actions.pod:561 ../src/guestfs-actions.pod:852
7046 "Note that unlike other resize calls, the filesystem has to be mounted and "
7047 "the parameter is the mountpoint not the device (this is a requirement of "
7052 #: ../fish/guestfish-actions.pod:565 ../fish/guestfish-actions.pod:3497
7053 #: ../src/guestfs-actions.pod:856 ../src/guestfs-actions.pod:5351
7054 msgid "The optional parameters are:"
7058 #: ../fish/guestfish-actions.pod:569 ../fish/guestfish-actions.pod:3501
7059 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5355
7064 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:862
7066 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
7067 "resized to the maximum size."
7071 #: ../fish/guestfish-actions.pod:576 ../src/guestfs-actions.pod:867
7072 msgid "See also L<btrfs(8)>."
7073 msgstr "Див. також L<btrfs(8)>."
7076 #: ../fish/guestfish-actions.pod:580
7077 msgid "case-sensitive-path"
7081 #: ../fish/guestfish-actions.pod:582
7084 " case-sensitive-path path\n"
7089 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:901
7091 "This can be used to resolve case insensitive paths on a filesystem which is "
7092 "case sensitive. The use case is to resolve paths which you have read from "
7093 "Windows configuration files or the Windows Registry, to the true path."
7097 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:906
7099 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7100 "(and probably others), which is that although the underlying filesystem is "
7101 "case-insensitive, the driver exports the filesystem to Linux as case-"
7106 #: ../fish/guestfish-actions.pod:594 ../src/guestfs-actions.pod:911
7108 "One consequence of this is that special directories such as C<c:\\windows> "
7109 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7110 "precise details of how they were created. In Windows itself this would not "
7115 #: ../fish/guestfish-actions.pod:600 ../src/guestfs-actions.pod:917
7117 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7122 #: ../fish/guestfish-actions.pod:603 ../src/guestfs-actions.pod:920
7124 "This function resolves the true case of each element in the path and returns "
7125 "the case-sensitive path."
7129 #: ../fish/guestfish-actions.pod:606
7131 "Thus L</case-sensitive-path> (\"/Windows/System32\") might return C<\"/"
7132 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7133 "the directories were originally created under Windows)."
7137 #: ../fish/guestfish-actions.pod:611 ../src/guestfs-actions.pod:928
7138 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7142 #: ../fish/guestfish-actions.pod:614
7143 msgid "See also L</realpath>."
7144 msgstr "Див. також L</realpath>."
7147 #: ../fish/guestfish-actions.pod:616
7152 #: ../fish/guestfish-actions.pod:618
7162 #: ../fish/guestfish-actions.pod:620 ../fish/guestfish-actions.pod:3917
7163 #: ../src/guestfs-actions.pod:944 ../src/guestfs-actions.pod:5994
7164 msgid "Return the contents of the file named C<path>."
7168 #: ../fish/guestfish-actions.pod:622
7170 "Note that this function cannot correctly handle binary files (specifically, "
7171 "files containing C<\\0> character which is treated as end of string). For "
7172 "those you need to use the L</read-file> or L</download> functions which have "
7173 "a more complex interface."
7177 #: ../fish/guestfish-actions.pod:627 ../fish/guestfish-actions.pod:762
7178 #: ../fish/guestfish-actions.pod:774 ../fish/guestfish-actions.pod:985
7179 #: ../fish/guestfish-actions.pod:995 ../fish/guestfish-actions.pod:1062
7180 #: ../fish/guestfish-actions.pod:1072 ../fish/guestfish-actions.pod:1264
7181 #: ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:1587
7182 #: ../fish/guestfish-actions.pod:1637 ../fish/guestfish-actions.pod:1652
7183 #: ../fish/guestfish-actions.pod:1662 ../fish/guestfish-actions.pod:1681
7184 #: ../fish/guestfish-actions.pod:3787 ../fish/guestfish-actions.pod:3802
7185 #: ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:3895
7186 #: ../fish/guestfish-actions.pod:3910 ../fish/guestfish-actions.pod:4591
7187 #: ../fish/guestfish-actions.pod:4637 ../fish/guestfish-actions.pod:4722
7188 #: ../fish/guestfish-actions.pod:4737 ../fish/guestfish-actions.pod:5143
7189 #: ../fish/guestfish-actions.pod:5155 ../fish/guestfish-actions.pod:5173
7190 #: ../fish/guestfish-actions.pod:5190 ../fish/guestfish-actions.pod:5200
7191 #: ../fish/guestfish-actions.pod:5257 ../fish/guestfish-actions.pod:5267
7192 #: ../fish/guestfish-actions.pod:5296 ../fish/guestfish-actions.pod:5306
7193 #: ../src/guestfs-actions.pod:954 ../src/guestfs-actions.pod:1133
7194 #: ../src/guestfs-actions.pod:1153 ../src/guestfs-actions.pod:1560
7195 #: ../src/guestfs-actions.pod:1579 ../src/guestfs-actions.pod:1682
7196 #: ../src/guestfs-actions.pod:1701 ../src/guestfs-actions.pod:1947
7197 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2448
7198 #: ../src/guestfs-actions.pod:2513 ../src/guestfs-actions.pod:2537
7199 #: ../src/guestfs-actions.pod:2554 ../src/guestfs-actions.pod:2583
7200 #: ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5802
7201 #: ../src/guestfs-actions.pod:5933 ../src/guestfs-actions.pod:5959
7202 #: ../src/guestfs-actions.pod:5983 ../src/guestfs-actions.pod:6950
7203 #: ../src/guestfs-actions.pod:7005 ../src/guestfs-actions.pod:7151
7204 #: ../src/guestfs-actions.pod:7175 ../src/guestfs-actions.pod:7840
7205 #: ../src/guestfs-actions.pod:7860 ../src/guestfs-actions.pod:7893
7206 #: ../src/guestfs-actions.pod:7912 ../src/guestfs-actions.pod:7931
7207 #: ../src/guestfs-actions.pod:8025 ../src/guestfs-actions.pod:8044
7208 #: ../src/guestfs-actions.pod:8090 ../src/guestfs-actions.pod:8109
7210 "Because of the message protocol, there is a transfer limit of somewhere "
7211 "between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>."
7215 #: ../fish/guestfish-actions.pod:630
7220 #: ../fish/guestfish-actions.pod:632
7223 " checksum csumtype path\n"
7228 #: ../fish/guestfish-actions.pod:634 ../src/guestfs-actions.pod:966
7230 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7234 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:969
7236 "The type of checksum to compute is given by the C<csumtype> parameter which "
7237 "must have one of the following values:"
7241 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:974
7246 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:976
7248 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7253 #: ../fish/guestfish-actions.pod:647 ../src/guestfs-actions.pod:979
7258 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:981
7259 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7263 #: ../fish/guestfish-actions.pod:651 ../src/guestfs-actions.pod:983
7268 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:985
7269 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7273 #: ../fish/guestfish-actions.pod:655 ../src/guestfs-actions.pod:987
7278 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:989
7279 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7283 #: ../fish/guestfish-actions.pod:659 ../src/guestfs-actions.pod:991
7288 #: ../fish/guestfish-actions.pod:661 ../src/guestfs-actions.pod:993
7289 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7293 #: ../fish/guestfish-actions.pod:663 ../src/guestfs-actions.pod:995
7298 #: ../fish/guestfish-actions.pod:665 ../src/guestfs-actions.pod:997
7299 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7303 #: ../fish/guestfish-actions.pod:667 ../src/guestfs-actions.pod:999
7308 #: ../fish/guestfish-actions.pod:669 ../src/guestfs-actions.pod:1001
7309 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7313 #: ../fish/guestfish-actions.pod:673 ../src/guestfs-actions.pod:1005
7314 msgid "The checksum is returned as a printable string."
7318 #: ../fish/guestfish-actions.pod:675
7319 msgid "To get the checksum for a device, use L</checksum-device>."
7323 #: ../fish/guestfish-actions.pod:677
7324 msgid "To get the checksums for many files, use L</checksums-out>."
7328 #: ../fish/guestfish-actions.pod:679
7329 msgid "checksum-device"
7330 msgstr "checksum-device"
7333 #: ../fish/guestfish-actions.pod:681
7336 " checksum-device csumtype device\n"
7341 #: ../fish/guestfish-actions.pod:683
7343 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7344 "device named C<device>. For the types of checksums supported see the L</"
7345 "checksum> command."
7349 #: ../fish/guestfish-actions.pod:687
7350 msgid "checksums-out"
7354 #: ../fish/guestfish-actions.pod:689
7357 " checksums-out csumtype directory (sumsfile|-)\n"
7362 #: ../fish/guestfish-actions.pod:691 ../src/guestfs-actions.pod:1040
7364 "This command computes the checksums of all regular files in C<directory> and "
7365 "then emits a list of those checksums to the local output file C<sumsfile>."
7369 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1044
7371 "This can be used for verifying the integrity of a virtual machine. However "
7372 "to be properly secure you should pay attention to the output of the checksum "
7373 "command (it uses the ones from GNU coreutils). In particular when the "
7374 "filename is not printable, coreutils uses a special backslash syntax. For "
7375 "more information, see the GNU coreutils info file."
7379 #: ../fish/guestfish-actions.pod:705
7384 #: ../fish/guestfish-actions.pod:707
7387 " chmod mode path\n"
7392 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1063
7394 "Change the mode (permissions) of C<path> to C<mode>. Only numeric modes are "
7399 #: ../fish/guestfish-actions.pod:712 ../src/guestfs-actions.pod:1066
7401 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7402 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7407 #: ../fish/guestfish-actions.pod:716 ../fish/guestfish-actions.pod:3150
7408 #: ../fish/guestfish-actions.pod:3289 ../fish/guestfish-actions.pod:3299
7409 #: ../fish/guestfish-actions.pod:3309 ../src/guestfs-actions.pod:1070
7410 #: ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:4967
7411 #: ../src/guestfs-actions.pod:4986 ../src/guestfs-actions.pod:5005
7412 msgid "The mode actually set is affected by the umask."
7416 #: ../fish/guestfish-actions.pod:718
7421 #: ../fish/guestfish-actions.pod:720
7424 " chown owner group path\n"
7429 #: ../fish/guestfish-actions.pod:722 ../src/guestfs-actions.pod:1084
7430 msgid "Change the file owner to C<owner> and group to C<group>."
7434 #: ../fish/guestfish-actions.pod:724 ../fish/guestfish-actions.pod:2585
7435 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:3829
7437 "Only numeric uid and gid are supported. If you want to use names, you will "
7438 "need to locate and parse the password file yourself (Augeas support makes "
7439 "this relatively easy)."
7443 #: ../fish/guestfish-actions.pod:728
7448 #: ../fish/guestfish-actions.pod:730
7451 " command 'arguments ...'\n"
7454 " command 'параметри...'\n"
7458 #: ../fish/guestfish-actions.pod:732 ../src/guestfs-actions.pod:1100
7460 "This call runs a command from the guest filesystem. The filesystem must be "
7461 "mounted, and must contain a compatible operating system (ie. something "
7462 "Linux, with the same or compatible processor architecture)."
7466 #: ../fish/guestfish-actions.pod:737
7468 "The single parameter is an argv-style list of arguments. The first element "
7469 "is the name of the program to run. Subsequent elements are parameters. The "
7470 "list must be non-empty (ie. must contain a program name). Note that the "
7471 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7475 #: ../fish/guestfish-actions.pod:744 ../src/guestfs-actions.pod:1112
7476 msgid "The return value is anything printed to I<stdout> by the command."
7480 #: ../fish/guestfish-actions.pod:747 ../src/guestfs-actions.pod:1115
7482 "If the command returns a non-zero exit status, then this function returns an "
7483 "error message. The error message string is the content of I<stderr> from "
7488 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1119
7490 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7491 "bin>. If you require a program from another location, you should provide "
7492 "the full path in the first parameter."
7496 #: ../fish/guestfish-actions.pod:756 ../src/guestfs-actions.pod:1124
7498 "Shared libraries and data files required by the program must be available on "
7499 "filesystems which are mounted in the correct places. It is the caller's "
7500 "responsibility to ensure all filesystems that are needed are mounted at the "
7505 #: ../fish/guestfish-actions.pod:765
7506 msgid "command-lines"
7510 #: ../fish/guestfish-actions.pod:767
7513 " command-lines 'arguments ...'\n"
7518 #: ../fish/guestfish-actions.pod:769
7520 "This is the same as L</command>, but splits the result into a list of lines."
7524 #: ../fish/guestfish-actions.pod:772
7525 msgid "See also: L</sh-lines>"
7526 msgstr "Див. також L</sh-lines>"
7529 #: ../fish/guestfish-actions.pod:777
7530 msgid "compress-device-out"
7534 #: ../fish/guestfish-actions.pod:779
7537 " compress-device-out ctype device (zdevice|-) [level:..]\n"
7542 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1174
7544 "This command compresses C<device> and writes it out to the local file "
7549 #: ../fish/guestfish-actions.pod:784
7551 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
7556 #: ../fish/guestfish-actions.pod:791
7557 msgid "compress-out"
7561 #: ../fish/guestfish-actions.pod:793
7564 " compress-out ctype file (zfile|-) [level:..]\n"
7569 #: ../fish/guestfish-actions.pod:795 ../src/guestfs-actions.pod:1226
7571 "This command compresses C<file> and writes it out to the local file C<zfile>."
7575 #: ../fish/guestfish-actions.pod:798 ../src/guestfs-actions.pod:1229
7577 "The compression program used is controlled by the C<ctype> parameter. "
7578 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>. "
7579 "Some compression types may not be supported by particular builds of "
7580 "libguestfs, in which case you will get an error containing the substring "
7581 "\"not supported\"."
7585 #: ../fish/guestfish-actions.pod:804 ../src/guestfs-actions.pod:1235
7587 "The optional C<level> parameter controls compression level. The meaning and "
7588 "default for this parameter depends on the compression program being used."
7592 #: ../fish/guestfish-actions.pod:812
7597 #: ../fish/guestfish-actions.pod:814
7600 " config qemuparam qemuvalue\n"
7605 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1276
7607 "This can be used to add arbitrary qemu command line parameters of the form "
7608 "I<-param value>. Actually it's not quite arbitrary - we prevent you from "
7609 "setting some parameters which would interfere with parameters that we use."
7613 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1281
7614 msgid "The first character of C<param> string must be a C<-> (dash)."
7618 #: ../fish/guestfish-actions.pod:823 ../src/guestfs-actions.pod:1283
7619 msgid "C<value> can be NULL."
7623 #: ../fish/guestfish-actions.pod:825
7628 #: ../fish/guestfish-actions.pod:827
7631 " copy-size src dest size\n"
7636 #: ../fish/guestfish-actions.pod:829 ../src/guestfs-actions.pod:1297
7638 "This command copies exactly C<size> bytes from one source device or file "
7639 "C<src> to another destination device or file C<dest>."
7643 #: ../fish/guestfish-actions.pod:832 ../src/guestfs-actions.pod:1300
7645 "Note this will fail if the source is too short or if the destination is not "
7650 #: ../fish/guestfish-actions.pod:835
7655 #: ../fish/guestfish-actions.pod:837
7663 #: ../fish/guestfish-actions.pod:839 ../src/guestfs-actions.pod:1319
7665 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7666 "destination filename or destination directory."
7670 #: ../fish/guestfish-actions.pod:842
7675 #: ../fish/guestfish-actions.pod:844
7683 #: ../fish/guestfish-actions.pod:846 ../src/guestfs-actions.pod:1333
7685 "This copies a file or directory from C<src> to C<dest> recursively using the "
7690 #: ../fish/guestfish-actions.pod:849
7695 #: ../fish/guestfish-actions.pod:851
7703 #: ../fish/guestfish-actions.pod:853 ../src/guestfs-actions.pod:1347
7705 "This command copies from one source device or file C<src> to another "
7706 "destination device or file C<dest>. Normally you would use this to copy to "
7707 "or from a device or partition, for example to duplicate a filesystem."
7711 #: ../fish/guestfish-actions.pod:858
7713 "If the destination is a device, it must be as large or larger than the "
7714 "source file or device, otherwise the copy will fail. This command cannot do "
7715 "partial copies (see L</copy-size>)."
7719 #: ../fish/guestfish-actions.pod:862
7724 #: ../fish/guestfish-actions.pod:864
7734 #: ../fish/guestfish-actions.pod:866 ../src/guestfs-actions.pod:1365
7735 msgid "This command runs the C<df> command to report disk space used."
7739 #: ../fish/guestfish-actions.pod:868 ../fish/guestfish-actions.pod:879
7741 "This command is mostly useful for interactive sessions. It is I<not> "
7742 "intended that you try to parse the output string. Use L</statvfs> from "
7747 #: ../fish/guestfish-actions.pod:872
7752 #: ../fish/guestfish-actions.pod:874
7762 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1381
7764 "This command runs the C<df -h> command to report disk space used in human-"
7769 #: ../fish/guestfish-actions.pod:883
7774 #: ../fish/guestfish-actions.pod:885
7784 #: ../fish/guestfish-actions.pod:887 ../src/guestfs-actions.pod:1398
7786 "This returns the kernel messages (C<dmesg> output) from the guest kernel. "
7787 "This is sometimes useful for extended debugging of problems."
7791 #: ../fish/guestfish-actions.pod:891
7793 "Another way to get the same information is to enable verbose messages with "
7794 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7795 "before running the program."
7799 #: ../fish/guestfish-actions.pod:896
7804 #: ../fish/guestfish-actions.pod:898
7807 " download remotefilename (filename|-)\n"
7812 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:913
7813 #: ../src/guestfs-actions.pod:1419 ../src/guestfs-actions.pod:1444
7815 "Download file C<remotefilename> and save it as C<filename> on the local "
7820 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:4895
7821 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:7410
7822 msgid "C<filename> can also be a named pipe."
7826 #: ../fish/guestfish-actions.pod:905
7827 msgid "See also L</upload>, L</cat>."
7831 #: ../fish/guestfish-actions.pod:909
7832 msgid "download-offset"
7833 msgstr "download-offset"
7836 #: ../fish/guestfish-actions.pod:911
7839 " download-offset remotefilename (filename|-) offset size\n"
7844 #: ../fish/guestfish-actions.pod:916 ../src/guestfs-actions.pod:1447
7846 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7847 "region must be within the file or device)."
7851 #: ../fish/guestfish-actions.pod:919
7853 "Note that there is no limit on the amount of data that can be downloaded "
7854 "with this call, unlike with L</pread>, and this call always reads the full "
7855 "amount unless an error occurs."
7859 #: ../fish/guestfish-actions.pod:924
7860 msgid "See also L</download>, L</pread>."
7864 #: ../fish/guestfish-actions.pod:928
7869 #: ../fish/guestfish-actions.pod:930
7872 " drop-caches whattodrop\n"
7877 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1472
7879 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7880 "inode caches. The parameter C<whattodrop> tells the kernel what precisely "
7881 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7885 #: ../fish/guestfish-actions.pod:937 ../src/guestfs-actions.pod:1477
7886 msgid "Setting C<whattodrop> to 3 should drop everything."
7890 #: ../fish/guestfish-actions.pod:939 ../src/guestfs-actions.pod:1479
7892 "This automatically calls L<sync(2)> before the operation, so that the "
7893 "maximum guest memory is freed."
7897 #: ../fish/guestfish-actions.pod:942
7902 #: ../fish/guestfish-actions.pod:944
7912 #: ../fish/guestfish-actions.pod:946 ../src/guestfs-actions.pod:1492
7914 "This command runs the C<du -s> command to estimate file space usage for "
7919 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1495
7921 "C<path> can be a file or a directory. If C<path> is a directory then the "
7922 "estimate includes the contents of the directory and all subdirectories "
7927 #: ../fish/guestfish-actions.pod:953 ../src/guestfs-actions.pod:1499
7929 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
7933 #: ../fish/guestfish-actions.pod:956
7938 #: ../fish/guestfish-actions.pod:958
7941 " e2fsck-f device\n"
7946 #: ../fish/guestfish-actions.pod:960 ../src/guestfs-actions.pod:1517
7948 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
7949 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
7954 #: ../fish/guestfish-actions.pod:964
7956 "This command is only needed because of L</resize2fs> (q.v.). Normally you "
7957 "should use L</fsck>."
7961 #: ../fish/guestfish-actions.pod:967
7966 #: ../fish/guestfish-actions.pod:969
7969 " echo-daemon 'words ...'\n"
7974 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1534
7976 "This command concatenates the list of C<words> passed with single spaces "
7977 "between them and returns the resulting string."
7981 #: ../fish/guestfish-actions.pod:974 ../src/guestfs-actions.pod:1537
7982 msgid "You can use this command to test the connection through to the daemon."
7986 #: ../fish/guestfish-actions.pod:976
7987 msgid "See also L</ping-daemon>."
7988 msgstr "Див. також L</ping-daemon>."
7991 #: ../fish/guestfish-actions.pod:978
7996 #: ../fish/guestfish-actions.pod:980
7999 " egrep regex path\n"
8004 #: ../fish/guestfish-actions.pod:982 ../src/guestfs-actions.pod:1553
8006 "This calls the external C<egrep> program and returns the matching lines."
8010 #: ../fish/guestfish-actions.pod:988
8015 #: ../fish/guestfish-actions.pod:990
8018 " egrepi regex path\n"
8023 #: ../fish/guestfish-actions.pod:992 ../src/guestfs-actions.pod:1572
8025 "This calls the external C<egrep -i> program and returns the matching lines."
8029 #: ../fish/guestfish-actions.pod:998
8034 #: ../fish/guestfish-actions.pod:1000
8037 " equal file1 file2\n"
8040 " equal файл1 файл2\n"
8044 #: ../fish/guestfish-actions.pod:1002 ../src/guestfs-actions.pod:1591
8046 "This compares the two files C<file1> and C<file2> and returns true if their "
8047 "content is exactly equal, or false otherwise."
8051 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1594
8052 msgid "The external L<cmp(1)> program is used for the comparison."
8056 #: ../fish/guestfish-actions.pod:1007
8061 #: ../fish/guestfish-actions.pod:1009
8071 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1606
8073 "This returns C<true> if and only if there is a file, directory (or anything) "
8074 "with the given C<path> name."
8078 #: ../fish/guestfish-actions.pod:1014
8079 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8080 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
8083 #: ../fish/guestfish-actions.pod:1016
8088 #: ../fish/guestfish-actions.pod:1018
8091 " fallocate path len\n"
8094 " fallocate шлях довжина\n"
8098 #: ../fish/guestfish-actions.pod:1020 ../fish/guestfish-actions.pod:1039
8099 #: ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1648
8101 "This command preallocates a file (containing zero bytes) named C<path> of "
8102 "size C<len> bytes. If the file exists already, it is overwritten."
8106 #: ../fish/guestfish-actions.pod:1024 ../src/guestfs-actions.pod:1633
8108 "Do not confuse this with the guestfish-specific C<alloc> command which "
8109 "allocates a file in the host and attaches it as a device."
8113 #: ../fish/guestfish-actions.pod:1028
8115 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8120 #: ../fish/guestfish-actions.pod:1035
8122 msgstr "fallocate64"
8125 #: ../fish/guestfish-actions.pod:1037
8128 " fallocate64 path len\n"
8131 " fallocate64 шлях довжина\n"
8135 #: ../fish/guestfish-actions.pod:1043
8137 "Note that this call allocates disk blocks for the file. To create a sparse "
8138 "file use L</truncate-size> instead."
8142 #: ../fish/guestfish-actions.pod:1046
8144 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8145 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8146 "maximum size of files created through that call to 1GB."
8150 #: ../fish/guestfish-actions.pod:1051 ../src/guestfs-actions.pod:1660
8152 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8153 "commands which create a file in the host and attach it as a device."
8157 #: ../fish/guestfish-actions.pod:1055
8162 #: ../fish/guestfish-actions.pod:1057
8165 " fgrep pattern path\n"
8168 " fgrep шаблон шлях\n"
8172 #: ../fish/guestfish-actions.pod:1059 ../src/guestfs-actions.pod:1675
8174 "This calls the external C<fgrep> program and returns the matching lines."
8178 #: ../fish/guestfish-actions.pod:1065
8183 #: ../fish/guestfish-actions.pod:1067
8186 " fgrepi pattern path\n"
8189 " fgrepi шаблон шлях\n"
8193 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1694
8195 "This calls the external C<fgrep -i> program and returns the matching lines."
8199 #: ../fish/guestfish-actions.pod:1075
8204 #: ../fish/guestfish-actions.pod:1077
8214 #: ../fish/guestfish-actions.pod:1079 ../src/guestfs-actions.pod:1712
8216 "This call uses the standard L<file(1)> command to determine the type or "
8217 "contents of the file."
8221 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1715
8223 "This call will also transparently look inside various types of compressed "
8228 #: ../fish/guestfish-actions.pod:1085 ../src/guestfs-actions.pod:1718
8230 "The exact command which runs is C<file -zb path>. Note in particular that "
8231 "the filename is not prepended to the output (the I<-b> option)."
8235 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1722
8237 "The output depends on the output of the underlying L<file(1)> command and it "
8238 "can change in future in ways beyond our control. In other words, the output "
8239 "is not guaranteed by the ABI."
8243 #: ../fish/guestfish-actions.pod:1093
8245 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8246 "(etc), L</is-zero>."
8250 #: ../fish/guestfish-actions.pod:1096
8251 msgid "file-architecture"
8252 msgstr "file-architecture"
8255 #: ../fish/guestfish-actions.pod:1098
8258 " file-architecture filename\n"
8261 " file-architecture назва_файла\n"
8265 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1740
8267 "This detects the architecture of the binary C<filename>, and returns it if "
8272 #: ../fish/guestfish-actions.pod:1103 ../src/guestfs-actions.pod:1743
8273 msgid "Currently defined architectures are:"
8277 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1747
8282 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1749
8284 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8285 "irrespective of the precise processor requirements of the binary."
8289 #: ../fish/guestfish-actions.pod:1112 ../src/guestfs-actions.pod:1752
8294 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1754
8295 msgid "64 bit x86-64."
8299 #: ../fish/guestfish-actions.pod:1116 ../src/guestfs-actions.pod:1756
8304 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1758
8305 msgid "32 bit SPARC."
8309 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1760
8314 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1762
8315 msgid "64 bit SPARC V9 and above."
8319 #: ../fish/guestfish-actions.pod:1124 ../src/guestfs-actions.pod:1764
8324 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1766
8325 msgid "Intel Itanium."
8326 msgstr "Intel Itanium."
8329 #: ../fish/guestfish-actions.pod:1128 ../src/guestfs-actions.pod:1768
8334 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1770
8335 msgid "32 bit Power PC."
8339 #: ../fish/guestfish-actions.pod:1132 ../src/guestfs-actions.pod:1772
8344 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1774
8345 msgid "64 bit Power PC."
8349 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1778
8350 msgid "Libguestfs may return other architecture strings in future."
8354 #: ../fish/guestfish-actions.pod:1140 ../src/guestfs-actions.pod:1780
8355 msgid "The function works on at least the following types of files:"
8359 #: ../fish/guestfish-actions.pod:1146 ../src/guestfs-actions.pod:1786
8360 msgid "many types of Un*x and Linux binary"
8364 #: ../fish/guestfish-actions.pod:1150 ../src/guestfs-actions.pod:1790
8365 msgid "many types of Un*x and Linux shared library"
8369 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1794
8370 msgid "Windows Win32 and Win64 binaries"
8374 #: ../fish/guestfish-actions.pod:1158 ../src/guestfs-actions.pod:1798
8375 msgid "Windows Win32 and Win64 DLLs"
8379 #: ../fish/guestfish-actions.pod:1160 ../src/guestfs-actions.pod:1800
8380 msgid "Win32 binaries and DLLs return C<i386>."
8384 #: ../fish/guestfish-actions.pod:1162 ../src/guestfs-actions.pod:1802
8385 msgid "Win64 binaries and DLLs return C<x86_64>."
8389 #: ../fish/guestfish-actions.pod:1166 ../src/guestfs-actions.pod:1806
8390 msgid "Linux kernel modules"
8394 #: ../fish/guestfish-actions.pod:1170 ../src/guestfs-actions.pod:1810
8395 msgid "Linux new-style initrd images"
8399 #: ../fish/guestfish-actions.pod:1174 ../src/guestfs-actions.pod:1814
8400 msgid "some non-x86 Linux vmlinuz kernels"
8404 #: ../fish/guestfish-actions.pod:1178 ../src/guestfs-actions.pod:1818
8405 msgid "What it can't do currently:"
8409 #: ../fish/guestfish-actions.pod:1184 ../src/guestfs-actions.pod:1824
8410 msgid "static libraries (libfoo.a)"
8414 #: ../fish/guestfish-actions.pod:1188 ../src/guestfs-actions.pod:1828
8415 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8419 #: ../fish/guestfish-actions.pod:1192 ../src/guestfs-actions.pod:1832
8420 msgid "x86 Linux vmlinuz kernels"
8424 #: ../fish/guestfish-actions.pod:1194 ../src/guestfs-actions.pod:1834
8426 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8427 "compressed code, and are horribly hard to unpack. If you want to find the "
8428 "architecture of a kernel, use the architecture of the associated initrd or "
8429 "kernel module(s) instead."
8433 #: ../fish/guestfish-actions.pod:1201
8438 #: ../fish/guestfish-actions.pod:1203
8448 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1852
8449 msgid "This command returns the size of C<file> in bytes."
8453 #: ../fish/guestfish-actions.pod:1207
8455 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8456 "file> etc. To get the size of block devices, use L</blockdev-getsize64>."
8460 #: ../fish/guestfish-actions.pod:1211
8465 #: ../fish/guestfish-actions.pod:1213
8468 " fill c len path\n"
8473 #: ../fish/guestfish-actions.pod:1215 ../src/guestfs-actions.pod:1870
8475 "This command creates a new file called C<path>. The initial content of the "
8476 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8481 #: ../fish/guestfish-actions.pod:1219
8483 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8484 "L</truncate-size>. To create a file with a pattern of repeating bytes use "
8489 #: ../fish/guestfish-actions.pod:1224
8490 msgid "fill-pattern"
8491 msgstr "fill-pattern"
8494 #: ../fish/guestfish-actions.pod:1226
8497 " fill-pattern pattern len path\n"
8502 #: ../fish/guestfish-actions.pod:1228
8504 "This function is like L</fill> except that it creates a new file of length "
8505 "C<len> containing the repeating pattern of bytes in C<pattern>. The pattern "
8506 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8511 #: ../fish/guestfish-actions.pod:1233
8516 #: ../fish/guestfish-actions.pod:1235
8526 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1916
8528 "This command lists out all files and directories, recursively, starting at "
8529 "C<directory>. It is essentially equivalent to running the shell command "
8530 "C<find directory -print> but some post-processing happens on the output, "
8535 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1921
8537 "This returns a list of strings I<without any prefix>. Thus if the directory "
8542 #: ../fish/guestfish-actions.pod:1245 ../src/guestfs-actions.pod:1924
8552 #: ../fish/guestfish-actions.pod:1249
8553 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8557 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1931
8568 #: ../fish/guestfish-actions.pod:1257 ../src/guestfs-actions.pod:1936
8569 msgid "If C<directory> is not a directory, then this command returns an error."
8573 #: ../fish/guestfish-actions.pod:1260 ../src/guestfs-actions.pod:1939
8574 msgid "The returned list is sorted."
8578 #: ../fish/guestfish-actions.pod:1262
8579 msgid "See also L</find0>."
8580 msgstr "Див. також L</find0>."
8583 #: ../fish/guestfish-actions.pod:1267
8588 #: ../fish/guestfish-actions.pod:1269
8591 " find0 directory (files|-)\n"
8594 " find0 каталог (файли|-)\n"
8598 #: ../fish/guestfish-actions.pod:1271 ../src/guestfs-actions.pod:1959
8600 "This command lists out all files and directories, recursively, starting at "
8601 "C<directory>, placing the resulting list in the external file called "
8606 #: ../fish/guestfish-actions.pod:1275
8608 "This command works the same way as L</find> with the following exceptions:"
8612 #: ../fish/guestfish-actions.pod:1282 ../src/guestfs-actions.pod:1970
8613 msgid "The resulting list is written to an external file."
8617 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1974
8619 "Items (filenames) in the result are separated by C<\\0> characters. See "
8620 "L<find(1)> option I<-print0>."
8624 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1979
8625 msgid "This command is not limited in the number of names that it can return."
8629 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:1984
8630 msgid "The result list is not sorted."
8634 #: ../fish/guestfish-actions.pod:1302
8635 msgid "findfs-label"
8636 msgstr "findfs-label"
8639 #: ../fish/guestfish-actions.pod:1304
8642 " findfs-label label\n"
8645 " findfs-label мітка\n"
8649 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:1998
8651 "This command searches the filesystems and returns the one which has the "
8652 "given label. An error is returned if no such filesystem can be found."
8656 #: ../fish/guestfish-actions.pod:1310
8657 msgid "To find the label of a filesystem, use L</vfs-label>."
8658 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
8661 #: ../fish/guestfish-actions.pod:1312
8663 msgstr "findfs-uuid"
8666 #: ../fish/guestfish-actions.pod:1314
8669 " findfs-uuid uuid\n"
8672 " findfs-uuid uuid\n"
8676 #: ../fish/guestfish-actions.pod:1316 ../src/guestfs-actions.pod:2015
8678 "This command searches the filesystems and returns the one which has the "
8679 "given UUID. An error is returned if no such filesystem can be found."
8683 #: ../fish/guestfish-actions.pod:1320
8684 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8685 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
8688 #: ../fish/guestfish-actions.pod:1322
8693 #: ../fish/guestfish-actions.pod:1324
8696 " fsck fstype device\n"
8699 " fsck тип_файлової_системи пристрій\n"
8703 #: ../fish/guestfish-actions.pod:1326 ../src/guestfs-actions.pod:2033
8705 "This runs the filesystem checker (fsck) on C<device> which should have "
8706 "filesystem type C<fstype>."
8710 #: ../fish/guestfish-actions.pod:1329 ../src/guestfs-actions.pod:2036
8712 "The returned integer is the status. See L<fsck(8)> for the list of status "
8713 "codes from C<fsck>."
8717 #: ../fish/guestfish-actions.pod:1338 ../src/guestfs-actions.pod:2045
8718 msgid "Multiple status codes can be summed together."
8722 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2049
8724 "A non-zero return code can mean \"success\", for example if errors have been "
8725 "corrected on the filesystem."
8729 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2054
8730 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8734 #: ../fish/guestfish-actions.pod:1352 ../src/guestfs-actions.pod:2059
8736 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8740 #: ../fish/guestfish-actions.pod:1354
8745 #: ../fish/guestfish-actions.pod:1356
8755 #: ../fish/guestfish-actions.pod:1358 ../src/guestfs-actions.pod:2070
8757 "Return the additional kernel options which are added to the guest kernel "
8762 #: ../fish/guestfish-actions.pod:1361 ../src/guestfs-actions.pod:2073
8763 msgid "If C<NULL> then no options are added."
8767 #: ../fish/guestfish-actions.pod:1363
8768 msgid "get-attach-method"
8769 msgstr "get-attach-method"
8772 #: ../fish/guestfish-actions.pod:1365
8775 " get-attach-method\n"
8778 " get-attach-method\n"
8782 #: ../fish/guestfish-actions.pod:1367
8783 msgid "Return the current attach method. See L</set-attach-method>."
8787 #: ../fish/guestfish-actions.pod:1369
8788 msgid "get-autosync"
8789 msgstr "get-autosync"
8792 #: ../fish/guestfish-actions.pod:1371
8802 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2098
8803 msgid "Get the autosync flag."
8807 #: ../fish/guestfish-actions.pod:1375
8812 #: ../fish/guestfish-actions.pod:1377
8822 #: ../fish/guestfish-actions.pod:1379 ../src/guestfs-actions.pod:2109
8823 msgid "Return the direct appliance mode flag."
8827 #: ../fish/guestfish-actions.pod:1381
8829 msgstr "get-e2label"
8832 #: ../fish/guestfish-actions.pod:1383
8835 " get-e2label device\n"
8838 " get-e2label пристрій\n"
8842 #: ../fish/guestfish-actions.pod:1385 ../src/guestfs-actions.pod:2128
8844 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8848 #: ../fish/guestfish-actions.pod:1388
8850 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
8855 #: ../fish/guestfish-actions.pod:1395
8860 #: ../fish/guestfish-actions.pod:1397
8863 " get-e2uuid device\n"
8866 " get-e2uuid пристрій\n"
8870 #: ../fish/guestfish-actions.pod:1399 ../src/guestfs-actions.pod:2149
8872 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
8876 #: ../fish/guestfish-actions.pod:1402
8878 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
8883 #: ../fish/guestfish-actions.pod:1409
8885 msgstr "get-memsize"
8888 #: ../fish/guestfish-actions.pod:1411
8898 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2162
8900 "This gets the memory size in megabytes allocated to the qemu subprocess."
8904 #: ../fish/guestfish-actions.pod:1416
8906 "If L</set-memsize> was not called on this handle, and if "
8907 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
8908 "value for memsize."
8912 #: ../fish/guestfish-actions.pod:1420 ../fish/guestfish-actions.pod:1477
8913 #: ../fish/guestfish-actions.pod:4243 ../fish/guestfish-actions.pod:4345
8914 #: ../src/guestfs-actions.pod:2169 ../src/guestfs-actions.pod:2261
8915 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6581
8917 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
8921 #: ../fish/guestfish-actions.pod:1423
8923 msgstr "get-network"
8926 #: ../fish/guestfish-actions.pod:1425
8936 #: ../fish/guestfish-actions.pod:1427 ../src/guestfs-actions.pod:2181
8937 msgid "This returns the enable network flag."
8941 #: ../fish/guestfish-actions.pod:1429
8946 #: ../fish/guestfish-actions.pod:1431
8956 #: ../fish/guestfish-actions.pod:1433 ../src/guestfs-actions.pod:2192
8957 msgid "Return the current search path."
8961 #: ../fish/guestfish-actions.pod:1435 ../src/guestfs-actions.pod:2194
8963 "This is always non-NULL. If it wasn't set already, then this will return "
8968 #: ../fish/guestfish-actions.pod:1438
8973 #: ../fish/guestfish-actions.pod:1440
8981 #: ../fish/guestfish-actions.pod:1442 ../src/guestfs-actions.pod:2207
8982 msgid "This returns the process group flag."
8986 #: ../fish/guestfish-actions.pod:1444
8991 #: ../fish/guestfish-actions.pod:1446
8996 #: ../fish/guestfish-actions.pod:1448
9006 #: ../fish/guestfish-actions.pod:1450 ../src/guestfs-actions.pod:2218
9008 "Return the process ID of the qemu subprocess. If there is no qemu "
9009 "subprocess, then this will return an error."
9013 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2221
9014 msgid "This is an internal call used for debugging and testing."
9018 #: ../fish/guestfish-actions.pod:1455
9023 #: ../fish/guestfish-actions.pod:1457
9033 #: ../fish/guestfish-actions.pod:1459 ../src/guestfs-actions.pod:2232
9034 msgid "Return the current qemu binary."
9038 #: ../fish/guestfish-actions.pod:1461 ../src/guestfs-actions.pod:2234
9040 "This is always non-NULL. If it wasn't set already, then this will return "
9041 "the default qemu binary name."
9045 #: ../fish/guestfish-actions.pod:1464
9046 msgid "get-recovery-proc"
9047 msgstr "get-recovery-proc"
9050 #: ../fish/guestfish-actions.pod:1466
9053 " get-recovery-proc\n"
9056 " get-recovery-proc\n"
9060 #: ../fish/guestfish-actions.pod:1468 ../src/guestfs-actions.pod:2247
9061 msgid "Return the recovery process enabled flag."
9065 #: ../fish/guestfish-actions.pod:1470
9067 msgstr "get-selinux"
9070 #: ../fish/guestfish-actions.pod:1472
9080 #: ../fish/guestfish-actions.pod:1474
9082 "This returns the current setting of the selinux flag which is passed to the "
9083 "appliance at boot time. See L</set-selinux>."
9087 #: ../fish/guestfish-actions.pod:1480
9092 #: ../fish/guestfish-actions.pod:1482
9100 #: ../fish/guestfish-actions.pod:1484 ../src/guestfs-actions.pod:2273
9101 msgid "This returns the number of virtual CPUs assigned to the appliance."
9105 #: ../fish/guestfish-actions.pod:1486
9110 #: ../fish/guestfish-actions.pod:1488
9120 #: ../fish/guestfish-actions.pod:1490 ../src/guestfs-actions.pod:2284
9122 "This returns the current state as an opaque integer. This is only useful "
9123 "for printing debug and internal error messages."
9127 #: ../fish/guestfish-actions.pod:1493 ../fish/guestfish-actions.pod:2452
9128 #: ../fish/guestfish-actions.pod:2470 ../fish/guestfish-actions.pod:2508
9129 #: ../fish/guestfish-actions.pod:2524 ../src/guestfs-actions.pod:2287
9130 #: ../src/guestfs-actions.pod:3606 ../src/guestfs-actions.pod:3635
9131 #: ../src/guestfs-actions.pod:3696 ../src/guestfs-actions.pod:3723
9132 msgid "For more information on states, see L<guestfs(3)>."
9136 #: ../fish/guestfish-actions.pod:1495
9141 #: ../fish/guestfish-actions.pod:1497
9151 #: ../fish/guestfish-actions.pod:1499 ../src/guestfs-actions.pod:2298
9152 msgid "Return the command trace flag."
9156 #: ../fish/guestfish-actions.pod:1501
9161 #: ../fish/guestfish-actions.pod:1503
9171 #: ../fish/guestfish-actions.pod:1505
9173 "Return the current umask. By default the umask is C<022> unless it has been "
9174 "set by calling L</umask>."
9178 #: ../fish/guestfish-actions.pod:1508
9180 msgstr "get-verbose"
9183 #: ../fish/guestfish-actions.pod:1510
9193 #: ../fish/guestfish-actions.pod:1512 ../src/guestfs-actions.pod:2321
9194 msgid "This returns the verbose messages flag."
9198 #: ../fish/guestfish-actions.pod:1514
9203 #: ../fish/guestfish-actions.pod:1516
9213 #: ../fish/guestfish-actions.pod:1518 ../src/guestfs-actions.pod:2332
9214 msgid "This gets the SELinux security context of the daemon."
9218 #: ../fish/guestfish-actions.pod:1520
9219 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9223 #: ../fish/guestfish-actions.pod:1523
9228 #: ../fish/guestfish-actions.pod:1525
9231 " getxattr path name\n"
9234 " getxattr шлях назва\n"
9238 #: ../fish/guestfish-actions.pod:1527
9240 "Get a single extended attribute from file C<path> named C<name>. This call "
9241 "follows symlinks. If you want to lookup an extended attribute for the "
9242 "symlink itself, use L</lgetxattr>."
9246 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:2597
9248 "Normally it is better to get all extended attributes from a file in one go "
9249 "by calling L</getxattrs>. However some Linux filesystem implementations are "
9250 "buggy and do not provide a way to list out attributes. For these "
9251 "filesystems (notably ntfs-3g) you have to know the names of the extended "
9252 "attributes you want in advance and call this function."
9256 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:2604
9257 #: ../src/guestfs-actions.pod:2361 ../src/guestfs-actions.pod:3856
9259 "Extended attribute values are blobs of binary data. If there is no extended "
9260 "attribute named C<name>, this returns an error."
9264 #: ../fish/guestfish-actions.pod:1541
9265 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9266 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9269 #: ../fish/guestfish-actions.pod:1543
9274 #: ../fish/guestfish-actions.pod:1545
9284 #: ../fish/guestfish-actions.pod:1547 ../src/guestfs-actions.pod:2378
9286 "This call lists the extended attributes of the file or directory C<path>."
9290 #: ../fish/guestfish-actions.pod:1550 ../src/guestfs-actions.pod:2381
9292 "At the system call level, this is a combination of the L<listxattr(2)> and "
9293 "L<getxattr(2)> calls."
9297 #: ../fish/guestfish-actions.pod:1553
9298 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9299 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
9302 #: ../fish/guestfish-actions.pod:1555
9304 msgstr "glob-expand"
9307 #: ../fish/guestfish-actions.pod:1557
9310 " glob-expand pattern\n"
9313 " glob-expand шаблон\n"
9317 #: ../fish/guestfish-actions.pod:1559 ../src/guestfs-actions.pod:2398
9319 "This command searches for all the pathnames matching C<pattern> according to "
9320 "the wildcard expansion rules used by the shell."
9324 #: ../fish/guestfish-actions.pod:1563 ../src/guestfs-actions.pod:2402
9326 "If no paths match, then this returns an empty list (note: not an error)."
9330 #: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2405
9332 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9333 "GLOB_BRACE>. See that manual page for more details."
9337 #: ../fish/guestfish-actions.pod:1570
9342 #: ../fish/guestfish-actions.pod:1572
9345 " grep regex path\n"
9348 " grepi формальний_вираз шлях\n"
9352 #: ../fish/guestfish-actions.pod:1574 ../src/guestfs-actions.pod:2422
9353 msgid "This calls the external C<grep> program and returns the matching lines."
9357 #: ../fish/guestfish-actions.pod:1580
9362 #: ../fish/guestfish-actions.pod:1582
9365 " grepi regex path\n"
9368 " grepi формальний_вираз шлях\n"
9372 #: ../fish/guestfish-actions.pod:1584 ../src/guestfs-actions.pod:2441
9374 "This calls the external C<grep -i> program and returns the matching lines."
9378 #: ../fish/guestfish-actions.pod:1590
9379 msgid "grub-install"
9380 msgstr "grub-install"
9383 #: ../fish/guestfish-actions.pod:1592
9386 " grub-install root device\n"
9389 " grub-install кореневий пристрій\n"
9393 #: ../fish/guestfish-actions.pod:1594 ../src/guestfs-actions.pod:2460
9395 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9396 "with the root directory being C<root>."
9400 #: ../fish/guestfish-actions.pod:1603 ../src/guestfs-actions.pod:2469
9402 "There is currently no way in the API to install grub2, which is used by most "
9403 "modern Linux guests. It is possible to run the grub2 command from the "
9404 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9408 #: ../fish/guestfish-actions.pod:1610 ../src/guestfs-actions.pod:2476
9410 "This uses C<grub-install> from the host. Unfortunately grub is not always "
9411 "compatible with itself, so this only works in rather narrow circumstances. "
9412 "Careful testing with each guest version is advisable."
9416 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2483
9418 "If grub-install reports the error \"No suitable drive was found in the "
9419 "generated device map.\" it may be that you need to create a C</boot/grub/"
9420 "device.map> file first that contains the mapping between grub device names "
9421 "and Linux device names. It is usually sufficient to create a file "
9426 #: ../fish/guestfish-actions.pod:1624 ../src/guestfs-actions.pod:2490
9434 #: ../fish/guestfish-actions.pod:1626 ../src/guestfs-actions.pod:2492
9435 msgid "replacing C</dev/vda> with the name of the installation device."
9439 #: ../fish/guestfish-actions.pod:1630
9444 #: ../fish/guestfish-actions.pod:1632
9454 #: ../fish/guestfish-actions.pod:1634 ../src/guestfs-actions.pod:2506
9456 "This command returns up to the first 10 lines of a file as a list of strings."
9460 #: ../fish/guestfish-actions.pod:1640
9465 #: ../fish/guestfish-actions.pod:1642
9468 " head-n nrlines path\n"
9473 #: ../fish/guestfish-actions.pod:1644 ../src/guestfs-actions.pod:2525
9475 "If the parameter C<nrlines> is a positive number, this returns the first "
9476 "C<nrlines> lines of the file C<path>."
9480 #: ../fish/guestfish-actions.pod:1647 ../src/guestfs-actions.pod:2528
9482 "If the parameter C<nrlines> is a negative number, this returns lines from "
9483 "the file C<path>, excluding the last C<nrlines> lines."
9487 #: ../fish/guestfish-actions.pod:1650 ../fish/guestfish-actions.pod:4735
9488 #: ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:7169
9489 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9493 #: ../fish/guestfish-actions.pod:1655
9498 #: ../fish/guestfish-actions.pod:1657
9508 #: ../fish/guestfish-actions.pod:1659 ../src/guestfs-actions.pod:2548
9510 "This runs C<hexdump -C> on the given C<path>. The result is the human-"
9511 "readable, canonical hex dump of the file."
9515 #: ../fish/guestfish-actions.pod:1665
9520 #: ../fish/guestfish-actions.pod:1667
9523 " initrd-cat initrdpath filename\n"
9526 " initrd-cat шлях_initrd назва_файла\n"
9530 #: ../fish/guestfish-actions.pod:1669 ../src/guestfs-actions.pod:2567
9532 "This command unpacks the file C<filename> from the initrd file called "
9533 "C<initrdpath>. The filename must be given I<without> the initial C</> "
9538 #: ../fish/guestfish-actions.pod:1673 ../src/guestfs-actions.pod:2571
9540 "For example, in guestfish you could use the following command to examine the "
9541 "boot script (usually called C</init>) contained in a Linux initrd or "
9546 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2575
9549 " initrd-cat /boot/initrd-<version>.img init\n"
9554 #: ../fish/guestfish-actions.pod:1679
9555 msgid "See also L</initrd-list>."
9556 msgstr "Див. також L</initrd-list>."
9559 #: ../fish/guestfish-actions.pod:1684
9561 msgstr "initrd-list"
9564 #: ../fish/guestfish-actions.pod:1686
9567 " initrd-list path\n"
9570 " initrd-list шлях\n"
9574 #: ../fish/guestfish-actions.pod:1688 ../src/guestfs-actions.pod:2594
9575 msgid "This command lists out files contained in an initrd."
9579 #: ../fish/guestfish-actions.pod:1690 ../src/guestfs-actions.pod:2596
9581 "The files are listed without any initial C</> character. The files are "
9582 "listed in the order they appear (not necessarily alphabetical). Directory "
9583 "names are listed as separate items."
9587 #: ../fish/guestfish-actions.pod:1694 ../src/guestfs-actions.pod:2600
9589 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9590 "initrd. We I<only> support the newer initramfs format (compressed cpio "
9595 #: ../fish/guestfish-actions.pod:1698
9596 msgid "inotify-add-watch"
9597 msgstr "inotify-add-watch"
9600 #: ../fish/guestfish-actions.pod:1700
9603 " inotify-add-watch path mask\n"
9606 " inotify-add-watch шлях маска\n"
9610 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2617
9611 msgid "Watch C<path> for the events listed in C<mask>."
9615 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2619
9617 "Note that if C<path> is a directory then events within that directory are "
9618 "watched, but this does I<not> happen recursively (in subdirectories)."
9622 #: ../fish/guestfish-actions.pod:1708 ../src/guestfs-actions.pod:2623
9624 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9625 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9629 #: ../fish/guestfish-actions.pod:1712
9630 msgid "inotify-close"
9631 msgstr "inotify-close"
9634 #: ../fish/guestfish-actions.pod:1714
9644 #: ../fish/guestfish-actions.pod:1716 ../src/guestfs-actions.pod:2636
9646 "This closes the inotify handle which was previously opened by inotify_init. "
9647 "It removes all watches, throws away any pending events, and deallocates all "
9652 #: ../fish/guestfish-actions.pod:1720
9653 msgid "inotify-files"
9654 msgstr "inotify-files"
9657 #: ../fish/guestfish-actions.pod:1722
9667 #: ../fish/guestfish-actions.pod:1724
9669 "This function is a helpful wrapper around L</inotify-read> which just "
9670 "returns a list of pathnames of objects that were touched. The returned "
9671 "pathnames are sorted and deduplicated."
9675 #: ../fish/guestfish-actions.pod:1728
9676 msgid "inotify-init"
9677 msgstr "inotify-init"
9680 #: ../fish/guestfish-actions.pod:1730
9683 " inotify-init maxevents\n"
9688 #: ../fish/guestfish-actions.pod:1732 ../src/guestfs-actions.pod:2665
9690 "This command creates a new inotify handle. The inotify subsystem can be "
9691 "used to notify events which happen to objects in the guest filesystem."
9695 #: ../fish/guestfish-actions.pod:1736
9697 "C<maxevents> is the maximum number of events which will be queued up between "
9698 "calls to L</inotify-read> or L</inotify-files>. If this is passed as C<0>, "
9699 "then the kernel (or previously set) default is used. For Linux 2.6.29 the "
9700 "default was 16384 events. Beyond this limit, the kernel throws away events, "
9701 "but records the fact that it threw them away by setting a flag "
9702 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9706 #: ../fish/guestfish-actions.pod:1746
9708 "Before any events are generated, you have to add some watches to the "
9709 "internal watch list. See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9710 "L</inotify-watch-all>."
9714 #: ../fish/guestfish-actions.pod:1752
9716 "Queued up events should be read periodically by calling L</inotify-read> (or "
9717 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>). "
9718 "If you don't read the events out often enough then you risk the internal "
9719 "queue overflowing."
9723 #: ../fish/guestfish-actions.pod:1759
9725 "The handle should be closed after use by calling L</inotify-close>. This "
9726 "also removes any watches automatically."
9730 #: ../fish/guestfish-actions.pod:1763 ../src/guestfs-actions.pod:2696
9732 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9733 "by the Linux kernel, which is roughly what we expose via libguestfs. Note "
9734 "that there is one global inotify handle per libguestfs instance."
9738 #: ../fish/guestfish-actions.pod:1768
9739 msgid "inotify-read"
9740 msgstr "inotify-read"
9743 #: ../fish/guestfish-actions.pod:1770
9753 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2710
9755 "Return the complete queue of events that have happened since the previous "
9760 #: ../fish/guestfish-actions.pod:1775 ../src/guestfs-actions.pod:2713
9761 msgid "If no events have happened, this returns an empty list."
9765 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2715
9767 "I<Note>: In order to make sure that all events have been read, you must call "
9768 "this function repeatedly until it returns an empty list. The reason is that "
9769 "the call will read events up to the maximum appliance-to-host message size "
9770 "and leave remaining events in the queue."
9774 #: ../fish/guestfish-actions.pod:1783
9775 msgid "inotify-rm-watch"
9776 msgstr "inotify-rm-watch"
9779 #: ../fish/guestfish-actions.pod:1785
9782 " inotify-rm-watch wd\n"
9787 #: ../fish/guestfish-actions.pod:1787
9788 msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
9792 #: ../fish/guestfish-actions.pod:1790
9793 msgid "inspect-get-arch"
9794 msgstr "inspect-get-arch"
9797 #: ../fish/guestfish-actions.pod:1792
9800 " inspect-get-arch root\n"
9803 " inspect-get-arch корінь\n"
9807 #: ../fish/guestfish-actions.pod:1794
9809 "This returns the architecture of the inspected operating system. The "
9810 "possible return values are listed under L</file-architecture>."
9814 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2750
9816 "If the architecture could not be determined, then the string C<unknown> is "
9821 #: ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:1896
9822 #: ../fish/guestfish-actions.pod:1975 ../fish/guestfish-actions.pod:1987
9823 #: ../fish/guestfish-actions.pod:2071 ../fish/guestfish-actions.pod:2133
9824 #: ../fish/guestfish-actions.pod:2154 ../fish/guestfish-actions.pod:2168
9825 #: ../fish/guestfish-actions.pod:2208 ../fish/guestfish-actions.pod:2244
9826 #: ../fish/guestfish-actions.pod:2257 ../fish/guestfish-actions.pod:2270
9827 #: ../fish/guestfish-actions.pod:2280 ../fish/guestfish-actions.pod:2290
9828 #: ../fish/guestfish-actions.pod:2302 ../fish/guestfish-actions.pod:2398
9829 #: ../fish/guestfish-actions.pod:2432 ../src/guestfs-actions.pod:2753
9830 #: ../src/guestfs-actions.pod:2855 ../src/guestfs-actions.pod:2959
9831 #: ../src/guestfs-actions.pod:2978 ../src/guestfs-actions.pod:3109
9832 #: ../src/guestfs-actions.pod:3193 ../src/guestfs-actions.pod:3221
9833 #: ../src/guestfs-actions.pod:3242 ../src/guestfs-actions.pod:3295
9834 #: ../src/guestfs-actions.pod:3339 ../src/guestfs-actions.pod:3359
9835 #: ../src/guestfs-actions.pod:3379 ../src/guestfs-actions.pod:3396
9836 #: ../src/guestfs-actions.pod:3412 ../src/guestfs-actions.pod:3430
9837 #: ../src/guestfs-actions.pod:3532 ../src/guestfs-actions.pod:3573
9838 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9842 #: ../fish/guestfish-actions.pod:1803
9843 msgid "inspect-get-distro"
9844 msgstr "inspect-get-distro"
9847 #: ../fish/guestfish-actions.pod:1805
9850 " inspect-get-distro root\n"
9853 " inspect-get-distro корінь\n"
9857 #: ../fish/guestfish-actions.pod:1807 ../src/guestfs-actions.pod:2766
9859 "This returns the distro (distribution) of the inspected operating system."
9863 #: ../fish/guestfish-actions.pod:1810 ../src/guestfs-actions.pod:2769
9864 msgid "Currently defined distros are:"
9868 #: ../fish/guestfish-actions.pod:1814 ../src/guestfs-actions.pod:2773
9869 msgid "\"archlinux\""
9870 msgstr "\"archlinux\""
9873 #: ../fish/guestfish-actions.pod:1816 ../src/guestfs-actions.pod:2775
9875 msgstr "Arch Linux."
9878 #: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2777
9883 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2779
9888 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2781
9893 #: ../fish/guestfish-actions.pod:1824 ../src/guestfs-actions.pod:2783
9898 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2785
9903 #: ../fish/guestfish-actions.pod:1828 ../src/guestfs-actions.pod:2787
9908 #: ../fish/guestfish-actions.pod:1830 ../src/guestfs-actions.pod:2789
9913 #: ../fish/guestfish-actions.pod:1832 ../src/guestfs-actions.pod:2791
9918 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2793
9919 msgid "\"linuxmint\""
9920 msgstr "\"linuxmint\""
9923 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2795
9925 msgstr "Linux Mint."
9928 #: ../fish/guestfish-actions.pod:1838 ../src/guestfs-actions.pod:2797
9933 #: ../fish/guestfish-actions.pod:1840 ../src/guestfs-actions.pod:2799
9938 #: ../fish/guestfish-actions.pod:1842 ../src/guestfs-actions.pod:2801
9939 msgid "\"mandriva\""
9940 msgstr "\"mandriva\""
9943 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2803
9948 #: ../fish/guestfish-actions.pod:1846 ../src/guestfs-actions.pod:2805
9953 #: ../fish/guestfish-actions.pod:1848 ../src/guestfs-actions.pod:2807
9958 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2809
9959 msgid "\"opensuse\""
9963 #: ../fish/guestfish-actions.pod:1852 ../src/guestfs-actions.pod:2811
9968 #: ../fish/guestfish-actions.pod:1854 ../src/guestfs-actions.pod:2813
9973 #: ../fish/guestfish-actions.pod:1856 ../src/guestfs-actions.pod:2815
9978 #: ../fish/guestfish-actions.pod:1858 ../src/guestfs-actions.pod:2817
9979 msgid "\"redhat-based\""
9980 msgstr "\"redhat-based\""
9983 #: ../fish/guestfish-actions.pod:1860 ../src/guestfs-actions.pod:2819
9984 msgid "Some Red Hat-derived distro."
9985 msgstr "Дистрибутив, що походить від Red Hat."
9988 #: ../fish/guestfish-actions.pod:1862 ../src/guestfs-actions.pod:2821
9993 #: ../fish/guestfish-actions.pod:1864 ../src/guestfs-actions.pod:2823
9994 msgid "Red Hat Enterprise Linux."
9995 msgstr "Red Hat Enterprise Linux."
9998 #: ../fish/guestfish-actions.pod:1866 ../src/guestfs-actions.pod:2825
9999 msgid "\"scientificlinux\""
10000 msgstr "\"scientificlinux\""
10003 #: ../fish/guestfish-actions.pod:1868 ../src/guestfs-actions.pod:2827
10004 msgid "Scientific Linux."
10005 msgstr "Scientific Linux."
10008 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2829
10009 msgid "\"slackware\""
10010 msgstr "\"slackware\""
10013 #: ../fish/guestfish-actions.pod:1872 ../src/guestfs-actions.pod:2831
10015 msgstr "Slackware."
10018 #: ../fish/guestfish-actions.pod:1874 ../src/guestfs-actions.pod:2833
10019 msgid "\"ttylinux\""
10023 #: ../fish/guestfish-actions.pod:1876 ../src/guestfs-actions.pod:2835
10028 #: ../fish/guestfish-actions.pod:1878 ../src/guestfs-actions.pod:2837
10030 msgstr "\"ubuntu\""
10033 #: ../fish/guestfish-actions.pod:1880 ../src/guestfs-actions.pod:2839
10038 #: ../fish/guestfish-actions.pod:1882 ../fish/guestfish-actions.pod:1966
10039 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:2841
10040 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:3330
10041 msgid "\"unknown\""
10042 msgstr "\"unknown\""
10045 #: ../fish/guestfish-actions.pod:1884 ../src/guestfs-actions.pod:2843
10046 msgid "The distro could not be determined."
10047 msgstr "Дистрибутив, тип якого не вдалося визначити."
10050 #: ../fish/guestfish-actions.pod:1886 ../fish/guestfish-actions.pod:2223
10051 #: ../src/guestfs-actions.pod:2845 ../src/guestfs-actions.pod:3318
10052 msgid "\"windows\""
10053 msgstr "\"windows\""
10056 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:2847
10058 "Windows does not have distributions. This string is returned if the OS type "
10063 #: ../fish/guestfish-actions.pod:1893 ../fish/guestfish-actions.pod:1972
10064 #: ../fish/guestfish-actions.pod:2241 ../src/guestfs-actions.pod:2852
10065 #: ../src/guestfs-actions.pod:2956 ../src/guestfs-actions.pod:3336
10067 "Future versions of libguestfs may return other strings here. The caller "
10068 "should be prepared to handle any string."
10072 #: ../fish/guestfish-actions.pod:1898
10073 msgid "inspect-get-drive-mappings"
10077 #: ../fish/guestfish-actions.pod:1900
10080 " inspect-get-drive-mappings root\n"
10085 #: ../fish/guestfish-actions.pod:1902 ../src/guestfs-actions.pod:2868
10087 "This call is useful for Windows which uses a primitive system of assigning "
10088 "drive letters (like \"C:\") to partitions. This inspection API examines the "
10089 "Windows Registry to find out how disks/partitions are mapped to drive "
10090 "letters, and returns a hash table as in the example below:"
10094 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2874
10097 " C => /dev/vda2\n"
10098 " E => /dev/vdb1\n"
10099 " F => /dev/vdc1\n"
10104 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:2878
10106 "Note that keys are drive letters. For Windows, the key is case insensitive "
10107 "and just contains the drive letter, without the customary colon separator "
10112 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:2882
10114 "In future we may support other operating systems that also used drive "
10115 "letters, but the keys for those might not be case insensitive and might be "
10116 "longer than 1 character. For example in OS-9, hard drives were named C<h0>, "
10121 #: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:2887
10123 "For Windows guests, currently only hard drive mappings are returned. "
10124 "Removable disks (eg. DVD-ROMs) are ignored."
10128 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:2890
10130 "For guests that do not use drive mappings, or if the drive mappings could "
10131 "not be determined, this returns an empty hash table."
10135 #: ../fish/guestfish-actions.pod:1927
10137 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10138 "get-mountpoints>, L</inspect-get-filesystems>."
10142 #: ../fish/guestfish-actions.pod:1931
10143 msgid "inspect-get-filesystems"
10144 msgstr "inspect-get-filesystems"
10147 #: ../fish/guestfish-actions.pod:1933
10150 " inspect-get-filesystems root\n"
10153 " inspect-get-filesystems корінь\n"
10157 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2911
10159 "This returns a list of all the filesystems that we think are associated with "
10160 "this operating system. This includes the root filesystem, other ordinary "
10161 "filesystems, and non-mounted devices like swap partitions."
10165 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2916
10167 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10168 "to be shared between operating systems."
10172 #: ../fish/guestfish-actions.pod:1943
10174 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10175 "get-mountpoints>."
10179 #: ../fish/guestfish-actions.pod:1946
10180 msgid "inspect-get-format"
10181 msgstr "inspect-get-format"
10184 #: ../fish/guestfish-actions.pod:1948
10187 " inspect-get-format root\n"
10190 " inspect-get-format корінь\n"
10194 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2934
10196 "This returns the format of the inspected operating system. You can use it "
10197 "to detect install images, live CDs and similar."
10201 #: ../fish/guestfish-actions.pod:1953 ../src/guestfs-actions.pod:2937
10202 msgid "Currently defined formats are:"
10206 #: ../fish/guestfish-actions.pod:1957 ../src/guestfs-actions.pod:2941
10207 msgid "\"installed\""
10208 msgstr "\"installed\""
10211 #: ../fish/guestfish-actions.pod:1959 ../src/guestfs-actions.pod:2943
10212 msgid "This is an installed operating system."
10213 msgstr "Це встановлена операційна система."
10216 #: ../fish/guestfish-actions.pod:1961 ../src/guestfs-actions.pod:2945
10217 msgid "\"installer\""
10221 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:2947
10223 "The disk image being inspected is not an installed operating system, but a "
10224 "I<bootable> install disk, live CD, or similar."
10228 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2952
10229 msgid "The format of this disk image is not known."
10233 #: ../fish/guestfish-actions.pod:1977
10234 msgid "inspect-get-hostname"
10235 msgstr "inspect-get-hostname"
10238 #: ../fish/guestfish-actions.pod:1979
10241 " inspect-get-hostname root\n"
10244 " inspect-get-hostname корінь\n"
10248 #: ../fish/guestfish-actions.pod:1981 ../src/guestfs-actions.pod:2972
10250 "This function returns the hostname of the operating system as found by "
10251 "inspection of the guest's configuration files."
10255 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2975
10257 "If the hostname could not be determined, then the string C<unknown> is "
10262 #: ../fish/guestfish-actions.pod:1989
10263 msgid "inspect-get-icon"
10267 #: ../fish/guestfish-actions.pod:1991
10270 " inspect-get-icon root [favicon:..] [highquality:..]\n"
10275 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3001
10277 "This function returns an icon corresponding to the inspected operating "
10278 "system. The icon is returned as a buffer containing a PNG image (re-encoded "
10279 "to PNG if necessary)."
10283 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:3005
10285 "If it was not possible to get an icon this function returns a zero-length "
10286 "(non-NULL) buffer. I<Callers must check for this case>."
10290 #: ../fish/guestfish-actions.pod:2000 ../src/guestfs-actions.pod:3008
10292 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10293 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10294 "this file will be returned. You can disable favicons by passing the "
10295 "optional C<favicon> boolean as false (default is true)."
10299 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3014
10301 "If finding the favicon fails, then we look in other places in the guest for "
10306 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:3017
10308 "If the optional C<highquality> boolean is true then only high quality icons "
10309 "are returned, which means only icons of high resolution with an alpha "
10310 "channel. The default (false) is to return any icon we can, even if it is of "
10311 "substandard quality."
10315 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3028
10317 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10318 "before you call this, since it needs to read information from the guest "
10319 "filesystem during the call."
10323 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3034
10325 "B<Security:> The icon data comes from the untrusted guest, and should be "
10326 "treated with caution. PNG files have been known to contain exploits. "
10327 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10328 "trying to process or display the icon."
10332 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3042
10334 "The PNG image returned can be any size. It might not be square. Libguestfs "
10335 "tries to return the largest, highest quality icon available. The "
10336 "application must scale the icon to the required size."
10340 #: ../fish/guestfish-actions.pod:2041 ../src/guestfs-actions.pod:3049
10342 "Extracting icons from Windows guests requires the external C<wrestool> "
10343 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10344 "C<pnmtopng>, C<pamcut>) from the C<netpbm> package. These must be "
10345 "installed separately."
10349 #: ../fish/guestfish-actions.pod:2048 ../src/guestfs-actions.pod:3056
10351 "Operating system icons are usually trademarks. Seek legal advice before "
10352 "using trademarks in applications."
10356 #: ../fish/guestfish-actions.pod:2055
10357 msgid "inspect-get-major-version"
10358 msgstr "inspect-get-major-version"
10361 #: ../fish/guestfish-actions.pod:2057
10364 " inspect-get-major-version root\n"
10367 " inspect-get-major-version корінь\n"
10371 #: ../fish/guestfish-actions.pod:2059 ../src/guestfs-actions.pod:3097
10373 "This returns the major version number of the inspected operating system."
10377 #: ../fish/guestfish-actions.pod:2062 ../src/guestfs-actions.pod:3100
10379 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10380 "popular public names used by the operating system. Notably the operating "
10381 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10382 "1). You can find out the real versions corresponding to releases of Windows "
10383 "by consulting Wikipedia or MSDN."
10387 #: ../fish/guestfish-actions.pod:2069 ../fish/guestfish-actions.pod:2080
10388 #: ../src/guestfs-actions.pod:3107 ../src/guestfs-actions.pod:3124
10389 msgid "If the version could not be determined, then C<0> is returned."
10393 #: ../fish/guestfish-actions.pod:2073
10394 msgid "inspect-get-minor-version"
10395 msgstr "inspect-get-minor-version"
10398 #: ../fish/guestfish-actions.pod:2075
10401 " inspect-get-minor-version root\n"
10404 " inspect-get-minor-version корінь\n"
10408 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3121
10410 "This returns the minor version number of the inspected operating system."
10414 #: ../fish/guestfish-actions.pod:2082
10416 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10417 "get-major-version>."
10421 #: ../fish/guestfish-actions.pod:2085
10422 msgid "inspect-get-mountpoints"
10423 msgstr "inspect-get-mountpoints"
10426 #: ../fish/guestfish-actions.pod:2087
10429 " inspect-get-mountpoints root\n"
10432 " inspect-get-mountpoints корінь\n"
10436 #: ../fish/guestfish-actions.pod:2089 ../src/guestfs-actions.pod:3139
10438 "This returns a hash of where we think the filesystems associated with this "
10439 "operating system should be mounted. Callers should note that this is at "
10440 "best an educated guess made by reading configuration files such as C</etc/"
10441 "fstab>. I<In particular note> that this may return filesystems which are "
10442 "non-existent or not mountable and callers should be prepared to handle or "
10443 "ignore failures if they try to mount them."
10447 #: ../fish/guestfish-actions.pod:2098 ../src/guestfs-actions.pod:3148
10449 "Each element in the returned hashtable has a key which is the path of the "
10450 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10451 "mounted there (eg. C</dev/sda1>)."
10455 #: ../fish/guestfish-actions.pod:2103 ../src/guestfs-actions.pod:3153
10457 "Non-mounted devices such as swap devices are I<not> returned in this list."
10461 #: ../fish/guestfish-actions.pod:2106
10463 "For operating systems like Windows which still use drive letters, this call "
10464 "will only return an entry for the first drive \"mounted on\" C</>. For "
10465 "information about the mapping of drive letters to partitions, see L</inspect-"
10466 "get-drive-mappings>."
10470 #: ../fish/guestfish-actions.pod:2112
10472 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10473 "get-filesystems>."
10477 #: ../fish/guestfish-actions.pod:2115
10478 msgid "inspect-get-package-format"
10479 msgstr "inspect-get-package-format"
10482 #: ../fish/guestfish-actions.pod:2117
10485 " inspect-get-package-format root\n"
10488 " inspect-get-package-format корінь\n"
10492 #: ../fish/guestfish-actions.pod:2119
10494 "This function and L</inspect-get-package-management> return the package "
10495 "format and package management tool used by the inspected operating system. "
10496 "For example for Fedora these functions would return C<rpm> (package format) "
10497 "and C<yum> (package management)."
10501 #: ../fish/guestfish-actions.pod:2125 ../src/guestfs-actions.pod:3185
10503 "This returns the string C<unknown> if we could not determine the package "
10504 "format I<or> if the operating system does not have a real packaging system "
10509 #: ../fish/guestfish-actions.pod:2129 ../src/guestfs-actions.pod:3189
10511 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10512 "C<pkgsrc>. Future versions of libguestfs may return other strings."
10516 #: ../fish/guestfish-actions.pod:2135
10517 msgid "inspect-get-package-management"
10518 msgstr "inspect-get-package-management"
10521 #: ../fish/guestfish-actions.pod:2137
10524 " inspect-get-package-management root\n"
10527 " inspect-get-package-management корінь\n"
10531 #: ../fish/guestfish-actions.pod:2139
10533 "L</inspect-get-package-format> and this function return the package format "
10534 "and package management tool used by the inspected operating system. For "
10535 "example for Fedora these functions would return C<rpm> (package format) and "
10536 "C<yum> (package management)."
10540 #: ../fish/guestfish-actions.pod:2145 ../src/guestfs-actions.pod:3212
10542 "This returns the string C<unknown> if we could not determine the package "
10543 "management tool I<or> if the operating system does not have a real packaging "
10544 "system (eg. Windows)."
10548 #: ../fish/guestfish-actions.pod:2149 ../src/guestfs-actions.pod:3216
10550 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10551 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>. Future "
10552 "versions of libguestfs may return other strings."
10556 #: ../fish/guestfish-actions.pod:2156
10557 msgid "inspect-get-product-name"
10558 msgstr "inspect-get-product-name"
10561 #: ../fish/guestfish-actions.pod:2158
10564 " inspect-get-product-name root\n"
10567 " inspect-get-product-name корінь\n"
10571 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3234
10573 "This returns the product name of the inspected operating system. The "
10574 "product name is generally some freeform string which can be displayed to the "
10575 "user, but should not be parsed by programs."
10579 #: ../fish/guestfish-actions.pod:2165 ../src/guestfs-actions.pod:3239
10581 "If the product name could not be determined, then the string C<unknown> is "
10586 #: ../fish/guestfish-actions.pod:2170
10587 msgid "inspect-get-product-variant"
10591 #: ../fish/guestfish-actions.pod:2172
10594 " inspect-get-product-variant root\n"
10599 #: ../fish/guestfish-actions.pod:2174 ../src/guestfs-actions.pod:3255
10600 msgid "This returns the product variant of the inspected operating system."
10604 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3258
10606 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10607 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10608 "is usually a string such as C<Client> or C<Server> (other values are "
10609 "possible). This can be used to distinguish consumer and enterprise versions "
10610 "of Windows that have the same version number (for example, Windows 7 and "
10611 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10612 "the latter is C<Server>)."
10616 #: ../fish/guestfish-actions.pod:2186 ../src/guestfs-actions.pod:3267
10618 "For enterprise Linux guests, in future we intend this to return the product "
10619 "variant such as C<Desktop>, C<Server> and so on. But this is not "
10620 "implemented at present."
10624 #: ../fish/guestfish-actions.pod:2190 ../src/guestfs-actions.pod:3271
10626 "If the product variant could not be determined, then the string C<unknown> "
10631 #: ../fish/guestfish-actions.pod:2193
10633 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10634 "get-product-name>, L</inspect-get-major-version>."
10638 #: ../fish/guestfish-actions.pod:2197
10639 msgid "inspect-get-roots"
10640 msgstr "inspect-get-roots"
10643 #: ../fish/guestfish-actions.pod:2199
10646 " inspect-get-roots\n"
10649 " inspect-get-roots\n"
10653 #: ../fish/guestfish-actions.pod:2201
10655 "This function is a convenient way to get the list of root devices, as "
10656 "returned from a previous call to L</inspect-os>, but without redoing the "
10657 "whole inspection process."
10661 #: ../fish/guestfish-actions.pod:2205
10663 "This returns an empty list if either no root devices were found or the "
10664 "caller has not called L</inspect-os>."
10668 #: ../fish/guestfish-actions.pod:2210
10669 msgid "inspect-get-type"
10670 msgstr "inspect-get-type"
10673 #: ../fish/guestfish-actions.pod:2212
10676 " inspect-get-type root\n"
10679 " inspect-get-type корінь\n"
10683 #: ../fish/guestfish-actions.pod:2214 ../src/guestfs-actions.pod:3309
10685 "This returns the type of the inspected operating system. Currently defined "
10690 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3314
10695 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3316
10696 msgid "Any Linux-based operating system."
10700 #: ../fish/guestfish-actions.pod:2225 ../src/guestfs-actions.pod:3320
10701 msgid "Any Microsoft Windows operating system."
10705 #: ../fish/guestfish-actions.pod:2227 ../src/guestfs-actions.pod:3322
10706 msgid "\"freebsd\""
10707 msgstr "\"freebsd\""
10710 #: ../fish/guestfish-actions.pod:2229 ../src/guestfs-actions.pod:3324
10715 #: ../fish/guestfish-actions.pod:2231 ../src/guestfs-actions.pod:3326
10720 #: ../fish/guestfish-actions.pod:2233 ../src/guestfs-actions.pod:3328
10725 #: ../fish/guestfish-actions.pod:2237 ../src/guestfs-actions.pod:3332
10726 msgid "The operating system type could not be determined."
10730 #: ../fish/guestfish-actions.pod:2246
10731 msgid "inspect-get-windows-current-control-set"
10735 #: ../fish/guestfish-actions.pod:2248
10738 " inspect-get-windows-current-control-set root\n"
10743 #: ../fish/guestfish-actions.pod:2250 ../src/guestfs-actions.pod:3352
10745 "This returns the Windows CurrentControlSet of the inspected guest. The "
10746 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10750 #: ../fish/guestfish-actions.pod:2253 ../src/guestfs-actions.pod:3355
10752 "This call assumes that the guest is Windows and that the Registry could be "
10753 "examined by inspection. If this is not the case then an error is returned."
10757 #: ../fish/guestfish-actions.pod:2259
10758 msgid "inspect-get-windows-systemroot"
10759 msgstr "inspect-get-windows-systemroot"
10762 #: ../fish/guestfish-actions.pod:2261
10765 " inspect-get-windows-systemroot root\n"
10768 " inspect-get-windows-systemroot корінь\n"
10772 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3372
10774 "This returns the Windows systemroot of the inspected guest. The systemroot "
10775 "is a directory path such as C</WINDOWS>."
10779 #: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3375
10781 "This call assumes that the guest is Windows and that the systemroot could be "
10782 "determined by inspection. If this is not the case then an error is returned."
10786 #: ../fish/guestfish-actions.pod:2272
10787 msgid "inspect-is-live"
10788 msgstr "inspect-is-live"
10791 #: ../fish/guestfish-actions.pod:2274
10794 " inspect-is-live root\n"
10797 " inspect-is-live корінь\n"
10801 #: ../fish/guestfish-actions.pod:2276
10803 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10804 "then this returns true if a live image was detected on the disk."
10808 #: ../fish/guestfish-actions.pod:2282
10809 msgid "inspect-is-multipart"
10810 msgstr "inspect-is-multipart"
10813 #: ../fish/guestfish-actions.pod:2284
10816 " inspect-is-multipart root\n"
10819 " inspect-is-multipart корінь\n"
10823 #: ../fish/guestfish-actions.pod:2286
10825 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10826 "then this returns true if the disk is part of a set."
10830 #: ../fish/guestfish-actions.pod:2292
10831 msgid "inspect-is-netinst"
10832 msgstr "inspect-is-netinst"
10835 #: ../fish/guestfish-actions.pod:2294
10838 " inspect-is-netinst root\n"
10841 " inspect-is-netinst корінь\n"
10845 #: ../fish/guestfish-actions.pod:2296
10847 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10848 "then this returns true if the disk is a network installer, ie. not a self-"
10849 "contained install CD but one which is likely to require network access to "
10850 "complete the install."
10854 #: ../fish/guestfish-actions.pod:2304
10855 msgid "inspect-list-applications"
10856 msgstr "inspect-list-applications"
10859 #: ../fish/guestfish-actions.pod:2306
10862 " inspect-list-applications root\n"
10865 " inspect-list-applications кореневий_каталог\n"
10869 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3442
10870 msgid "Return the list of applications installed in the operating system."
10874 #: ../fish/guestfish-actions.pod:2310
10876 "I<Note:> This call works differently from other parts of the inspection "
10877 "API. You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
10878 "then mount up the disks, before calling this. Listing applications is a "
10879 "significantly more difficult operation which requires access to the full "
10880 "filesystem. Also note that unlike the other L</inspect-get-*> calls which "
10881 "are just returning data cached in the libguestfs handle, this call actually "
10882 "reads parts of the mounted filesystems during the call."
10886 #: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3454
10888 "This returns an empty list if the inspection code was not able to determine "
10889 "the list of applications."
10893 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3457
10894 msgid "The application structure contains the following fields:"
10898 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3461
10899 msgid "C<app_name>"
10900 msgstr "C<app_name>"
10903 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3463
10905 "The name of the application. For Red Hat-derived and Debian-derived Linux "
10906 "guests, this is the package name."
10910 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3466
10911 msgid "C<app_display_name>"
10912 msgstr "C<app_display_name>"
10915 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3468
10917 "The display name of the application, sometimes localized to the install "
10918 "language of the guest operating system."
10922 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3471
10924 "If unavailable this is returned as an empty string C<\"\">. Callers needing "
10925 "to display something can use C<app_name> instead."
10929 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3474
10930 msgid "C<app_epoch>"
10931 msgstr "C<app_epoch>"
10934 #: ../fish/guestfish-actions.pod:2342 ../src/guestfs-actions.pod:3476
10936 "For package managers which use epochs, this contains the epoch of the "
10937 "package (an integer). If unavailable, this is returned as C<0>."
10941 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3479
10942 msgid "C<app_version>"
10943 msgstr "C<app_version>"
10946 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3481
10948 "The version string of the application or package. If unavailable this is "
10949 "returned as an empty string C<\"\">."
10953 #: ../fish/guestfish-actions.pod:2350 ../src/guestfs-actions.pod:3484
10954 msgid "C<app_release>"
10955 msgstr "C<app_release>"
10958 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3486
10960 "The release string of the application or package, for package managers that "
10961 "use this. If unavailable this is returned as an empty string C<\"\">."
10965 #: ../fish/guestfish-actions.pod:2356 ../src/guestfs-actions.pod:3490
10966 msgid "C<app_install_path>"
10967 msgstr "C<app_install_path>"
10970 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3492
10972 "The installation path of the application (on operating systems such as "
10973 "Windows which use installation paths). This path is in the format used by "
10974 "the guest operating system, it is not a libguestfs path."
10978 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3497
10979 msgid "If unavailable this is returned as an empty string C<\"\">."
10983 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3499
10984 msgid "C<app_trans_path>"
10985 msgstr "C<app_trans_path>"
10988 #: ../fish/guestfish-actions.pod:2367 ../src/guestfs-actions.pod:3501
10990 "The install path translated into a libguestfs path. If unavailable this is "
10991 "returned as an empty string C<\"\">."
10995 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3504
10996 msgid "C<app_publisher>"
10997 msgstr "C<app_publisher>"
11000 #: ../fish/guestfish-actions.pod:2372 ../src/guestfs-actions.pod:3506
11002 "The name of the publisher of the application, for package managers that use "
11003 "this. If unavailable this is returned as an empty string C<\"\">."
11007 #: ../fish/guestfish-actions.pod:2376 ../src/guestfs-actions.pod:3510
11009 msgstr "C<app_url>"
11012 #: ../fish/guestfish-actions.pod:2378 ../src/guestfs-actions.pod:3512
11014 "The URL (eg. upstream URL) of the application. If unavailable this is "
11015 "returned as an empty string C<\"\">."
11019 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3515
11020 msgid "C<app_source_package>"
11021 msgstr "C<app_source_package>"
11024 #: ../fish/guestfish-actions.pod:2383 ../src/guestfs-actions.pod:3517
11026 "For packaging systems which support this, the name of the source package. "
11027 "If unavailable this is returned as an empty string C<\"\">."
11031 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3520
11032 msgid "C<app_summary>"
11033 msgstr "C<app_summary>"
11036 #: ../fish/guestfish-actions.pod:2388 ../src/guestfs-actions.pod:3522
11038 "A short (usually one line) description of the application or package. If "
11039 "unavailable this is returned as an empty string C<\"\">."
11043 #: ../fish/guestfish-actions.pod:2391 ../src/guestfs-actions.pod:3525
11044 msgid "C<app_description>"
11045 msgstr "C<app_description>"
11048 #: ../fish/guestfish-actions.pod:2393 ../src/guestfs-actions.pod:3527
11050 "A longer description of the application or package. If unavailable this is "
11051 "returned as an empty string C<\"\">."
11055 #: ../fish/guestfish-actions.pod:2400
11057 msgstr "inspect-os"
11060 #: ../fish/guestfish-actions.pod:2402
11070 #: ../fish/guestfish-actions.pod:2404 ../src/guestfs-actions.pod:3545
11072 "This function uses other libguestfs functions and certain heuristics to "
11073 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11074 "for operating systems."
11078 #: ../fish/guestfish-actions.pod:2408 ../src/guestfs-actions.pod:3549
11079 msgid "The list returned is empty if no operating systems were found."
11083 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3551
11085 "If one operating system was found, then this returns a list with a single "
11086 "element, which is the name of the root filesystem of this operating system. "
11087 "It is also possible for this function to return a list containing more than "
11088 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11089 "element being the root filesystem of one of the operating systems."
11093 #: ../fish/guestfish-actions.pod:2417
11095 "You can pass the root string(s) returned to other L</inspect-get-*> "
11096 "functions in order to query further information about each operating system, "
11097 "such as the name and version."
11101 #: ../fish/guestfish-actions.pod:2422
11103 "This function uses other libguestfs features such as L</mount-ro> and L</"
11104 "umount-all> in order to mount and unmount filesystems and look at the "
11105 "contents. This should be called with no disks currently mounted. The "
11106 "function may also use Augeas, so any existing Augeas handle will be closed."
11110 #: ../fish/guestfish-actions.pod:2428 ../src/guestfs-actions.pod:3569
11112 "This function cannot decrypt encrypted disks. The caller must do that first "
11113 "(supplying the necessary keys) if the disk is encrypted."
11117 #: ../fish/guestfish-actions.pod:2434 ../fish/guestfish-actions.pod:2632
11118 #: ../fish/guestfish-actions.pod:2691
11119 msgid "See also L</list-filesystems>."
11120 msgstr "Див. також L</list-filesystems>."
11123 #: ../fish/guestfish-actions.pod:2436
11124 msgid "is-blockdev"
11125 msgstr "is-blockdev"
11128 #: ../fish/guestfish-actions.pod:2438
11131 " is-blockdev path\n"
11134 " is-blockdev шлях\n"
11138 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3589
11140 "This returns C<true> if and only if there is a block device with the given "
11145 #: ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2461
11146 #: ../fish/guestfish-actions.pod:2480 ../fish/guestfish-actions.pod:2489
11147 #: ../fish/guestfish-actions.pod:2499 ../fish/guestfish-actions.pod:2533
11148 #: ../fish/guestfish-actions.pod:2542
11149 msgid "See also L</stat>."
11150 msgstr "Див. також L</stat>."
11153 #: ../fish/guestfish-actions.pod:2445
11158 #: ../fish/guestfish-actions.pod:2447
11168 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3603
11170 "This returns true iff this handle is busy processing a command (in the "
11175 #: ../fish/guestfish-actions.pod:2454
11177 msgstr "is-chardev"
11180 #: ../fish/guestfish-actions.pod:2456
11183 " is-chardev path\n"
11186 " is-chardev шлях\n"
11190 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3618
11192 "This returns C<true> if and only if there is a character device with the "
11193 "given C<path> name."
11197 #: ../fish/guestfish-actions.pod:2463
11202 #: ../fish/guestfish-actions.pod:2465
11212 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3632
11214 "This returns true iff this handle is being configured (in the C<CONFIG> "
11219 #: ../fish/guestfish-actions.pod:2472
11224 #: ../fish/guestfish-actions.pod:2474
11234 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3647
11236 "This returns C<true> if and only if there is a directory with the given "
11237 "C<path> name. Note that it returns false for other objects like files."
11241 #: ../fish/guestfish-actions.pod:2482
11246 #: ../fish/guestfish-actions.pod:2484
11256 #: ../fish/guestfish-actions.pod:2486 ../src/guestfs-actions.pod:3663
11258 "This returns C<true> if and only if there is a FIFO (named pipe) with the "
11259 "given C<path> name."
11263 #: ../fish/guestfish-actions.pod:2491
11268 #: ../fish/guestfish-actions.pod:2493
11278 #: ../fish/guestfish-actions.pod:2495 ../src/guestfs-actions.pod:3678
11280 "This returns C<true> if and only if there is a regular file with the given "
11281 "C<path> name. Note that it returns false for other objects like directories."
11285 #: ../fish/guestfish-actions.pod:2501
11286 msgid "is-launching"
11287 msgstr "is-launching"
11290 #: ../fish/guestfish-actions.pod:2503
11300 #: ../fish/guestfish-actions.pod:2505 ../src/guestfs-actions.pod:3693
11302 "This returns true iff this handle is launching the subprocess (in the "
11303 "C<LAUNCHING> state)."
11307 #: ../fish/guestfish-actions.pod:2510
11312 #: ../fish/guestfish-actions.pod:2512
11318 " is-lv пристрій\n"
11322 #: ../fish/guestfish-actions.pod:2514 ../src/guestfs-actions.pod:3708
11324 "This command tests whether C<device> is a logical volume, and returns true "
11325 "iff this is the case."
11329 #: ../fish/guestfish-actions.pod:2517
11334 #: ../fish/guestfish-actions.pod:2519
11344 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3720
11346 "This returns true iff this handle is ready to accept commands (in the "
11351 #: ../fish/guestfish-actions.pod:2526
11356 #: ../fish/guestfish-actions.pod:2528
11359 " is-socket path\n"
11362 " is-socket шлях\n"
11366 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3735
11368 "This returns C<true> if and only if there is a Unix domain socket with the "
11369 "given C<path> name."
11373 #: ../fish/guestfish-actions.pod:2535
11375 msgstr "is-symlink"
11378 #: ../fish/guestfish-actions.pod:2537
11381 " is-symlink path\n"
11384 " is-symlink шлях\n"
11388 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3750
11390 "This returns C<true> if and only if there is a symbolic link with the given "
11395 #: ../fish/guestfish-actions.pod:2544
11400 #: ../fish/guestfish-actions.pod:2546
11408 #: ../fish/guestfish-actions.pod:2548 ../src/guestfs-actions.pod:3765
11410 "This returns true iff the file exists and the file is empty or it contains "
11415 #: ../fish/guestfish-actions.pod:2551
11416 msgid "is-zero-device"
11420 #: ../fish/guestfish-actions.pod:2553
11423 " is-zero-device device\n"
11428 #: ../fish/guestfish-actions.pod:2555 ../src/guestfs-actions.pod:3778
11429 msgid "This returns true iff the device exists and contains all zero bytes."
11433 #: ../fish/guestfish-actions.pod:2557 ../src/guestfs-actions.pod:3780
11434 msgid "Note that for large devices this can take a long time to run."
11438 #: ../fish/guestfish-actions.pod:2559
11439 msgid "kill-subprocess"
11440 msgstr "kill-subprocess"
11443 #: ../fish/guestfish-actions.pod:2561
11446 " kill-subprocess\n"
11449 " kill-subprocess\n"
11453 #: ../fish/guestfish-actions.pod:2563 ../src/guestfs-actions.pod:3791
11454 msgid "This kills the qemu subprocess. You should never need to call this."
11458 #: ../fish/guestfish-actions.pod:2565
11463 #: ../fish/guestfish-actions.pod:2567
11468 #: ../fish/guestfish-actions.pod:2569
11478 #: ../fish/guestfish-actions.pod:2571 ../src/guestfs-actions.pod:3802
11480 "Internally libguestfs is implemented by running a virtual machine using "
11485 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3805
11487 "You should call this after configuring the handle (eg. adding drives) but "
11488 "before performing any actions."
11492 #: ../fish/guestfish-actions.pod:2577
11497 #: ../fish/guestfish-actions.pod:2579
11500 " lchown owner group path\n"
11503 " lchown власник група шлях\n"
11507 #: ../fish/guestfish-actions.pod:2581
11509 "Change the file owner to C<owner> and group to C<group>. This is like L</"
11510 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11515 #: ../fish/guestfish-actions.pod:2589
11520 #: ../fish/guestfish-actions.pod:2591
11523 " lgetxattr path name\n"
11526 " lgetxattr шлях назва\n"
11530 #: ../fish/guestfish-actions.pod:2593 ../src/guestfs-actions.pod:3845
11532 "Get a single extended attribute from file C<path> named C<name>. If C<path> "
11533 "is a symlink, then this call returns an extended attribute from the symlink."
11537 #: ../fish/guestfish-actions.pod:2607
11538 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11539 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11542 #: ../fish/guestfish-actions.pod:2609
11544 msgstr "lgetxattrs"
11547 #: ../fish/guestfish-actions.pod:2611
11550 " lgetxattrs path\n"
11553 " lgetxattrs шлях\n"
11557 #: ../fish/guestfish-actions.pod:2613
11559 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11560 "it returns the extended attributes of the link itself."
11564 #: ../fish/guestfish-actions.pod:2617
11569 #: ../fish/guestfish-actions.pod:2619
11577 #: ../fish/guestfish-actions.pod:2621 ../src/guestfs-actions.pod:3888
11579 "List all 9p filesystems attached to the guest. A list of mount tags is "
11584 #: ../fish/guestfish-actions.pod:2624
11585 msgid "list-devices"
11586 msgstr "list-devices"
11589 #: ../fish/guestfish-actions.pod:2626
11599 #: ../fish/guestfish-actions.pod:2628 ../src/guestfs-actions.pod:3902
11600 msgid "List all the block devices."
11604 #: ../fish/guestfish-actions.pod:2630 ../src/guestfs-actions.pod:3904
11605 msgid "The full block device names are returned, eg. C</dev/sda>."
11609 #: ../fish/guestfish-actions.pod:2634
11610 msgid "list-dm-devices"
11614 #: ../fish/guestfish-actions.pod:2636
11617 " list-dm-devices\n"
11622 #: ../fish/guestfish-actions.pod:2638 ../src/guestfs-actions.pod:3919
11623 msgid "List all device mapper devices."
11627 #: ../fish/guestfish-actions.pod:2640
11629 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11630 "previous call to L</luks-open>."
11634 #: ../fish/guestfish-actions.pod:2643
11636 "Device mapper devices which correspond to logical volumes are I<not> "
11637 "returned in this list. Call L</lvs> if you want to list logical volumes."
11641 #: ../fish/guestfish-actions.pod:2647
11642 msgid "list-filesystems"
11643 msgstr "list-filesystems"
11646 #: ../fish/guestfish-actions.pod:2649
11649 " list-filesystems\n"
11652 " list-filesystems\n"
11656 #: ../fish/guestfish-actions.pod:2651 ../src/guestfs-actions.pod:3939
11658 "This inspection command looks for filesystems on partitions, block devices "
11659 "and logical volumes, returning a list of devices containing filesystems and "
11664 #: ../fish/guestfish-actions.pod:2655 ../src/guestfs-actions.pod:3943
11666 "The return value is a hash, where the keys are the devices containing "
11667 "filesystems, and the values are the filesystem types. For example:"
11671 #: ../fish/guestfish-actions.pod:2659 ../src/guestfs-actions.pod:3947
11674 " \"/dev/sda1\" => \"ntfs\"\n"
11675 " \"/dev/sda2\" => \"ext2\"\n"
11676 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11677 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11682 #: ../fish/guestfish-actions.pod:2664 ../src/guestfs-actions.pod:3952
11684 "The value can have the special value \"unknown\", meaning the content of the "
11685 "device is undetermined or empty. \"swap\" means a Linux swap partition."
11689 #: ../fish/guestfish-actions.pod:2668
11691 "This command runs other libguestfs commands, which might include L</mount> "
11692 "and L</umount>, and therefore you should use this soon after launch and only "
11693 "when nothing is mounted."
11697 #: ../fish/guestfish-actions.pod:2672
11699 "Not all of the filesystems returned will be mountable. In particular, swap "
11700 "partitions are returned in the list. Also this command does not check that "
11701 "each filesystem found is valid and mountable, and some filesystems might be "
11702 "mountable but require special options. Filesystems may not all belong to a "
11703 "single logical operating system (use L</inspect-os> to look for OSes)."
11707 #: ../fish/guestfish-actions.pod:2680
11708 msgid "list-partitions"
11709 msgstr "list-partitions"
11712 #: ../fish/guestfish-actions.pod:2682
11715 " list-partitions\n"
11718 " list-partitions\n"
11722 #: ../fish/guestfish-actions.pod:2684 ../src/guestfs-actions.pod:3981
11723 msgid "List all the partitions detected on all block devices."
11727 #: ../fish/guestfish-actions.pod:2686 ../src/guestfs-actions.pod:3983
11728 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11732 #: ../fish/guestfish-actions.pod:2688
11734 "This does not return logical volumes. For that you will need to call L</"
11739 #: ../fish/guestfish-actions.pod:2693
11744 #: ../fish/guestfish-actions.pod:2695
11754 #: ../fish/guestfish-actions.pod:2697 ../src/guestfs-actions.pod:4002
11756 "List the files in C<directory> (relative to the root directory, there is no "
11757 "cwd) in the format of 'ls -la'."
11761 #: ../fish/guestfish-actions.pod:2700 ../src/guestfs-actions.pod:4005
11763 "This command is mostly useful for interactive sessions. It is I<not> "
11764 "intended that you try to parse the output string."
11768 #: ../fish/guestfish-actions.pod:2703
11773 #: ../fish/guestfish-actions.pod:2705
11776 " ln target linkname\n"
11779 " ln призначення назва_посилання\n"
11783 #: ../fish/guestfish-actions.pod:2707 ../src/guestfs-actions.pod:4020
11784 msgid "This command creates a hard link using the C<ln> command."
11788 #: ../fish/guestfish-actions.pod:2709
11793 #: ../fish/guestfish-actions.pod:2711
11796 " ln-f target linkname\n"
11799 " ln-f призначення назва_посилання\n"
11803 #: ../fish/guestfish-actions.pod:2713 ../src/guestfs-actions.pod:4033
11805 "This command creates a hard link using the C<ln -f> command. The I<-f> "
11806 "option removes the link (C<linkname>) if it exists already."
11810 #: ../fish/guestfish-actions.pod:2716
11815 #: ../fish/guestfish-actions.pod:2718
11818 " ln-s target linkname\n"
11821 " ln-s призначення назва_посилання\n"
11825 #: ../fish/guestfish-actions.pod:2720 ../src/guestfs-actions.pod:4047
11826 msgid "This command creates a symbolic link using the C<ln -s> command."
11830 #: ../fish/guestfish-actions.pod:2722
11835 #: ../fish/guestfish-actions.pod:2724
11838 " ln-sf target linkname\n"
11841 " ln-sf призначення назва_посилання\n"
11845 #: ../fish/guestfish-actions.pod:2726 ../src/guestfs-actions.pod:4060
11847 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11848 "option removes the link (C<linkname>) if it exists already."
11852 #: ../fish/guestfish-actions.pod:2729
11853 msgid "lremovexattr"
11854 msgstr "lremovexattr"
11857 #: ../fish/guestfish-actions.pod:2731
11860 " lremovexattr xattr path\n"
11865 #: ../fish/guestfish-actions.pod:2733
11867 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11868 "it removes an extended attribute of the link itself."
11872 #: ../fish/guestfish-actions.pod:2737
11877 #: ../fish/guestfish-actions.pod:2739
11887 #: ../fish/guestfish-actions.pod:2741 ../src/guestfs-actions.pod:4088
11889 "List the files in C<directory> (relative to the root directory, there is no "
11890 "cwd). The '.' and '..' entries are not returned, but hidden files are shown."
11894 #: ../fish/guestfish-actions.pod:2745
11896 "This command is mostly useful for interactive sessions. Programs should "
11897 "probably use L</readdir> instead."
11901 #: ../fish/guestfish-actions.pod:2748
11906 #: ../fish/guestfish-actions.pod:2750
11909 " lsetxattr xattr val vallen path\n"
11914 #: ../fish/guestfish-actions.pod:2752
11916 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
11917 "sets an extended attribute of the link itself."
11921 #: ../fish/guestfish-actions.pod:2756
11926 #: ../fish/guestfish-actions.pod:2758
11936 #: ../fish/guestfish-actions.pod:2760 ../fish/guestfish-actions.pod:4570
11937 #: ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:6909
11938 msgid "Returns file information for the given C<path>."
11942 #: ../fish/guestfish-actions.pod:2762
11944 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
11945 "the link is stat-ed, not the file it refers to."
11949 #: ../fish/guestfish-actions.pod:2766 ../src/guestfs-actions.pod:4130
11950 msgid "This is the same as the C<lstat(2)> system call."
11954 #: ../fish/guestfish-actions.pod:2768
11959 #: ../fish/guestfish-actions.pod:2770
11962 " lstatlist path 'names ...'\n"
11967 #: ../fish/guestfish-actions.pod:2772
11969 "This call allows you to perform the L</lstat> operation on multiple files, "
11970 "where all files are in the directory C<path>. C<names> is the list of files "
11971 "from this directory."
11975 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4149
11977 "On return you get a list of stat structs, with a one-to-one correspondence "
11978 "to the C<names> list. If any name did not exist or could not be lstat'd, "
11979 "then the C<ino> field of that structure is set to C<-1>."
11983 #: ../fish/guestfish-actions.pod:2781
11985 "This call is intended for programs that want to efficiently list a directory "
11986 "contents without making many round-trips. See also L</lxattrlist> for a "
11987 "similarly efficient call for getting extended attributes. Very long "
11988 "directory listings might cause the protocol message size to be exceeded, "
11989 "causing this call to fail. The caller must split up such requests into "
11990 "smaller groups of names."
11994 #: ../fish/guestfish-actions.pod:2789
11995 msgid "luks-add-key"
11996 msgstr "luks-add-key"
11999 #: ../fish/guestfish-actions.pod:2791
12002 " luks-add-key device keyslot\n"
12007 #: ../fish/guestfish-actions.pod:2793 ../src/guestfs-actions.pod:4177
12009 "This command adds a new key on LUKS device C<device>. C<key> is any "
12010 "existing key, and is used to access the device. C<newkey> is the new key to "
12011 "add. C<keyslot> is the key slot that will be replaced."
12015 #: ../fish/guestfish-actions.pod:2798
12017 "Note that if C<keyslot> already contains a key, then this command will "
12018 "fail. You have to use L</luks-kill-slot> first to remove that key."
12022 #: ../fish/guestfish-actions.pod:2802 ../fish/guestfish-actions.pod:2824
12023 #: ../fish/guestfish-actions.pod:2837 ../fish/guestfish-actions.pod:2851
12024 #: ../fish/guestfish-actions.pod:2877 ../fish/guestfish-actions.pod:2887
12026 "This command has one or more key or passphrase parameters. Guestfish will "
12027 "prompt for these separately."
12031 #: ../fish/guestfish-actions.pod:2805
12033 msgstr "luks-close"
12036 #: ../fish/guestfish-actions.pod:2807
12039 " luks-close device\n"
12042 " luks-close пристрій\n"
12046 #: ../fish/guestfish-actions.pod:2809
12048 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
12049 "luks-open-ro>. The C<device> parameter must be the name of the LUKS mapping "
12050 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
12055 #: ../fish/guestfish-actions.pod:2815
12056 msgid "luks-format"
12057 msgstr "luks-format"
12060 #: ../fish/guestfish-actions.pod:2817
12063 " luks-format device keyslot\n"
12068 #: ../fish/guestfish-actions.pod:2819 ../src/guestfs-actions.pod:4218
12070 "This command erases existing data on C<device> and formats the device as a "
12071 "LUKS encrypted device. C<key> is the initial key, which is added to key "
12072 "slot C<slot>. (LUKS supports 8 key slots, numbered 0-7)."
12076 #: ../fish/guestfish-actions.pod:2827 ../fish/guestfish-actions.pod:2840
12077 #: ../fish/guestfish-actions.pod:2927 ../fish/guestfish-actions.pod:3578
12078 #: ../fish/guestfish-actions.pod:4104 ../fish/guestfish-actions.pod:4441
12079 #: ../fish/guestfish-actions.pod:4464 ../fish/guestfish-actions.pod:4486
12080 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:4225
12081 #: ../src/guestfs-actions.pod:4248 ../src/guestfs-actions.pod:4391
12082 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:6272
12083 #: ../src/guestfs-actions.pod:6723 ../src/guestfs-actions.pod:6753
12084 #: ../src/guestfs-actions.pod:6786 ../src/guestfs-actions.pod:7985
12086 "B<This command is dangerous. Without careful use you can easily destroy all "
12091 #: ../fish/guestfish-actions.pod:2830
12092 msgid "luks-format-cipher"
12093 msgstr "luks-format-cipher"
12096 #: ../fish/guestfish-actions.pod:2832
12099 " luks-format-cipher device keyslot cipher\n"
12104 #: ../fish/guestfish-actions.pod:2834
12106 "This command is the same as L</luks-format> but it also allows you to set "
12107 "the C<cipher> used."
12111 #: ../fish/guestfish-actions.pod:2843
12112 msgid "luks-kill-slot"
12113 msgstr "luks-kill-slot"
12116 #: ../fish/guestfish-actions.pod:2845
12119 " luks-kill-slot device keyslot\n"
12124 #: ../fish/guestfish-actions.pod:2847 ../src/guestfs-actions.pod:4265
12126 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12127 "device C<device>. C<key> must be one of the I<other> keys."
12131 #: ../fish/guestfish-actions.pod:2854
12136 #: ../fish/guestfish-actions.pod:2856
12139 " luks-open device mapname\n"
12144 #: ../fish/guestfish-actions.pod:2858 ../src/guestfs-actions.pod:4285
12146 "This command opens a block device which has been encrypted according to the "
12147 "Linux Unified Key Setup (LUKS) standard."
12151 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4288
12152 msgid "C<device> is the encrypted block device or partition."
12156 #: ../fish/guestfish-actions.pod:2863 ../src/guestfs-actions.pod:4290
12158 "The caller must supply one of the keys associated with the LUKS block "
12159 "device, in the C<key> parameter."
12163 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4293
12165 "This creates a new block device called C</dev/mapper/mapname>. Reads and "
12166 "writes to this block device are decrypted from and encrypted to the "
12167 "underlying C<device> respectively."
12171 #: ../fish/guestfish-actions.pod:2870
12173 "If this block device contains LVM volume groups, then calling L</vgscan> "
12174 "followed by L</vg-activate-all> will make them visible."
12178 #: ../fish/guestfish-actions.pod:2874
12179 msgid "Use L</list-dm-devices> to list all device mapper devices."
12183 #: ../fish/guestfish-actions.pod:2880
12184 msgid "luks-open-ro"
12185 msgstr "luks-open-ro"
12188 #: ../fish/guestfish-actions.pod:2882
12191 " luks-open-ro device mapname\n"
12196 #: ../fish/guestfish-actions.pod:2884
12198 "This is the same as L</luks-open> except that a read-only mapping is created."
12202 #: ../fish/guestfish-actions.pod:2890
12207 #: ../fish/guestfish-actions.pod:2892
12210 " lvcreate logvol volgroup mbytes\n"
12215 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4339
12217 "This creates an LVM logical volume called C<logvol> on the volume group "
12218 "C<volgroup>, with C<size> megabytes."
12222 #: ../fish/guestfish-actions.pod:2897
12223 msgid "lvm-canonical-lv-name"
12224 msgstr "lvm-canonical-lv-name"
12227 #: ../fish/guestfish-actions.pod:2899
12230 " lvm-canonical-lv-name lvname\n"
12235 #: ../fish/guestfish-actions.pod:2901 ../src/guestfs-actions.pod:4352
12237 "This converts alternative naming schemes for LVs that you might find to the "
12238 "canonical name. For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12243 #: ../fish/guestfish-actions.pod:2905 ../src/guestfs-actions.pod:4356
12245 "This command returns an error if the C<lvname> parameter does not refer to a "
12250 #: ../fish/guestfish-actions.pod:2908
12251 msgid "See also L</is-lv>."
12252 msgstr "Див. також L</is-lv>."
12255 #: ../fish/guestfish-actions.pod:2910
12256 msgid "lvm-clear-filter"
12257 msgstr "lvm-clear-filter"
12260 #: ../fish/guestfish-actions.pod:2912
12263 " lvm-clear-filter\n"
12266 " lvm-clear-filter\n"
12270 #: ../fish/guestfish-actions.pod:2914
12272 "This undoes the effect of L</lvm-set-filter>. LVM will be able to see every "
12277 #: ../fish/guestfish-actions.pod:2917 ../fish/guestfish-actions.pod:2948
12278 #: ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4416
12280 "This command also clears the LVM cache and performs a volume group scan."
12284 #: ../fish/guestfish-actions.pod:2920
12285 msgid "lvm-remove-all"
12286 msgstr "lvm-remove-all"
12289 #: ../fish/guestfish-actions.pod:2922
12292 " lvm-remove-all\n"
12295 " lvm-remove-all\n"
12299 #: ../fish/guestfish-actions.pod:2924 ../src/guestfs-actions.pod:4386
12301 "This command removes all LVM logical volumes, volume groups and physical "
12306 #: ../fish/guestfish-actions.pod:2930
12307 msgid "lvm-set-filter"
12308 msgstr "lvm-set-filter"
12311 #: ../fish/guestfish-actions.pod:2932
12314 " lvm-set-filter 'devices ...'\n"
12317 " lvm-set-filter 'пристрої...'\n"
12321 #: ../fish/guestfish-actions.pod:2934 ../src/guestfs-actions.pod:4402
12323 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12324 "block devices in the list C<devices>, and will ignore all other attached "
12329 #: ../fish/guestfish-actions.pod:2938 ../src/guestfs-actions.pod:4406
12331 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12332 "get LVM to ignore the duplicates, otherwise LVM can get confused. Note also "
12333 "there are two types of duplication possible: either cloned PVs/VGs which "
12334 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12335 "same name. In normal operation you cannot create this situation, but you "
12336 "can do it outside LVM, eg. by cloning disk images or by bit twiddling "
12337 "inside the LVM metadata."
12341 #: ../fish/guestfish-actions.pod:2951 ../src/guestfs-actions.pod:4419
12342 msgid "You can filter whole block devices or individual partitions."
12346 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4421
12348 "You cannot use this if any VG is currently in use (eg. contains a mounted "
12349 "filesystem), even if you are not filtering out that VG."
12353 #: ../fish/guestfish-actions.pod:2957
12358 #: ../fish/guestfish-actions.pod:2959
12361 " lvremove device\n"
12364 " lvremove пристрій\n"
12368 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4435
12370 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12371 "LV, such as C</dev/VG/LV>."
12375 #: ../fish/guestfish-actions.pod:2964 ../src/guestfs-actions.pod:4438
12377 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12382 #: ../fish/guestfish-actions.pod:2967
12387 #: ../fish/guestfish-actions.pod:2969
12390 " lvrename logvol newlogvol\n"
12395 #: ../fish/guestfish-actions.pod:2971 ../src/guestfs-actions.pod:4452
12396 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12400 #: ../fish/guestfish-actions.pod:2973
12405 #: ../fish/guestfish-actions.pod:2975
12408 " lvresize device mbytes\n"
12413 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4465
12415 "This resizes (expands or shrinks) an existing LVM logical volume to "
12416 "C<mbytes>. When reducing, data in the reduced part is lost."
12420 #: ../fish/guestfish-actions.pod:2981
12421 msgid "lvresize-free"
12422 msgstr "lvresize-free"
12425 #: ../fish/guestfish-actions.pod:2983
12428 " lvresize-free lv percent\n"
12433 #: ../fish/guestfish-actions.pod:2985 ../src/guestfs-actions.pod:4480
12435 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12436 "remaining free space in the volume group. Commonly you would call this with "
12437 "pc = 100 which expands the logical volume as much as possible, using all "
12438 "remaining free space in the volume group."
12442 #: ../fish/guestfish-actions.pod:2991
12447 #: ../fish/guestfish-actions.pod:2993
12457 #: ../fish/guestfish-actions.pod:2995 ../src/guestfs-actions.pod:4495
12459 "List all the logical volumes detected. This is the equivalent of the L<lvs"
12464 #: ../fish/guestfish-actions.pod:2998 ../src/guestfs-actions.pod:4498
12466 "This returns a list of the logical volume device names (eg. C</dev/"
12467 "VolGroup00/LogVol00>)."
12471 #: ../fish/guestfish-actions.pod:3001
12472 msgid "See also L</lvs-full>, L</list-filesystems>."
12473 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
12476 #: ../fish/guestfish-actions.pod:3003
12481 #: ../fish/guestfish-actions.pod:3005
12491 #: ../fish/guestfish-actions.pod:3007 ../src/guestfs-actions.pod:4514
12493 "List all the logical volumes detected. This is the equivalent of the L<lvs"
12494 "(8)> command. The \"full\" version includes all fields."
12498 #: ../fish/guestfish-actions.pod:3010
12503 #: ../fish/guestfish-actions.pod:3012
12509 " lvuuid пристрій\n"
12513 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4529
12514 msgid "This command returns the UUID of the LVM LV C<device>."
12518 #: ../fish/guestfish-actions.pod:3016
12520 msgstr "lxattrlist"
12523 #: ../fish/guestfish-actions.pod:3018
12526 " lxattrlist path 'names ...'\n"
12531 #: ../fish/guestfish-actions.pod:3020 ../src/guestfs-actions.pod:4543
12533 "This call allows you to get the extended attributes of multiple files, where "
12534 "all files are in the directory C<path>. C<names> is the list of files from "
12539 #: ../fish/guestfish-actions.pod:3024 ../src/guestfs-actions.pod:4547
12541 "On return you get a flat list of xattr structs which must be interpreted "
12542 "sequentially. The first xattr struct always has a zero-length C<attrname>. "
12543 "C<attrval> in this struct is zero-length to indicate there was an error "
12544 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12545 "number (the number of following attributes for this file, which could be C<"
12546 "\"0\">). Then after the first xattr struct are the zero or more attributes "
12547 "for the first named file. This repeats for the second and subsequent files."
12551 #: ../fish/guestfish-actions.pod:3034
12553 "This call is intended for programs that want to efficiently list a directory "
12554 "contents without making many round-trips. See also L</lstatlist> for a "
12555 "similarly efficient call for getting standard stats. Very long directory "
12556 "listings might cause the protocol message size to be exceeded, causing this "
12557 "call to fail. The caller must split up such requests into smaller groups of "
12562 #: ../fish/guestfish-actions.pod:3042
12567 #: ../fish/guestfish-actions.pod:3044
12577 #: ../fish/guestfish-actions.pod:3046 ../src/guestfs-actions.pod:4577
12578 msgid "Create a directory named C<path>."
12582 #: ../fish/guestfish-actions.pod:3048
12584 msgstr "mkdir-mode"
12587 #: ../fish/guestfish-actions.pod:3050
12590 " mkdir-mode path mode\n"
12593 " mkdir-mode шлях режим\n"
12597 #: ../fish/guestfish-actions.pod:3052 ../src/guestfs-actions.pod:4590
12599 "This command creates a directory, setting the initial permissions of the "
12600 "directory to C<mode>."
12604 #: ../fish/guestfish-actions.pod:3055 ../src/guestfs-actions.pod:4593
12606 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12607 "~umask & 01777>. Non-native-Linux filesystems may interpret the mode in "
12612 #: ../fish/guestfish-actions.pod:3059
12613 msgid "See also L</mkdir>, L</umask>"
12614 msgstr "Див. також L</mkdir>, L</umask>"
12617 #: ../fish/guestfish-actions.pod:3061
12622 #: ../fish/guestfish-actions.pod:3063
12632 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4609
12634 "Create a directory named C<path>, creating any parent directories as "
12635 "necessary. This is like the C<mkdir -p> shell command."
12639 #: ../fish/guestfish-actions.pod:3068
12644 #: ../fish/guestfish-actions.pod:3070
12647 " mkdtemp template\n"
12650 " mkdtemp шаблон\n"
12654 #: ../fish/guestfish-actions.pod:3072 ../src/guestfs-actions.pod:4622
12656 "This command creates a temporary directory. The C<template> parameter "
12657 "should be a full pathname for the temporary directory name with the final "
12658 "six characters being \"XXXXXX\"."
12662 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4627
12664 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12665 "being suitable for Windows filesystems."
12669 #: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4630
12670 msgid "The name of the temporary directory that was created is returned."
12674 #: ../fish/guestfish-actions.pod:3083 ../src/guestfs-actions.pod:4633
12675 msgid "The temporary directory is created with mode 0700 and is owned by root."
12679 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4636
12681 "The caller is responsible for deleting the temporary directory and its "
12682 "contents after use."
12686 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4639
12687 msgid "See also: L<mkdtemp(3)>"
12688 msgstr "Див. також L<mkdtemp(3)>"
12691 #: ../fish/guestfish-actions.pod:3091
12696 #: ../fish/guestfish-actions.pod:3093
12699 " mke2fs-J fstype blocksize device journal\n"
12704 #: ../fish/guestfish-actions.pod:3095 ../src/guestfs-actions.pod:4655
12706 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12707 "C<journal>. It is equivalent to the command:"
12711 #: ../fish/guestfish-actions.pod:3099 ../src/guestfs-actions.pod:4659
12714 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12717 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
12721 #: ../fish/guestfish-actions.pod:3101
12722 msgid "See also L</mke2journal>."
12723 msgstr "Див. також L</mke2journal>."
12726 #: ../fish/guestfish-actions.pod:3103
12731 #: ../fish/guestfish-actions.pod:3105
12734 " mke2fs-JL fstype blocksize device label\n"
12739 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4676
12741 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12742 "the journal labeled C<label>."
12746 #: ../fish/guestfish-actions.pod:3110
12747 msgid "See also L</mke2journal-L>."
12748 msgstr "Див. також L</mke2journal-L>."
12751 #: ../fish/guestfish-actions.pod:3112
12756 #: ../fish/guestfish-actions.pod:3114
12759 " mke2fs-JU fstype blocksize device uuid\n"
12764 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4694
12766 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12767 "the journal with UUID C<uuid>."
12771 #: ../fish/guestfish-actions.pod:3119
12772 msgid "See also L</mke2journal-U>."
12773 msgstr "Див. також L</mke2journal-U>."
12776 #: ../fish/guestfish-actions.pod:3121
12777 msgid "mke2journal"
12778 msgstr "mke2journal"
12781 #: ../fish/guestfish-actions.pod:3123
12784 " mke2journal blocksize device\n"
12789 #: ../fish/guestfish-actions.pod:3125 ../src/guestfs-actions.pod:4710
12791 "This creates an ext2 external journal on C<device>. It is equivalent to the "
12796 #: ../fish/guestfish-actions.pod:3128 ../src/guestfs-actions.pod:4713
12799 " mke2fs -O journal_dev -b blocksize device\n"
12804 #: ../fish/guestfish-actions.pod:3130
12805 msgid "mke2journal-L"
12806 msgstr "mke2journal-L"
12809 #: ../fish/guestfish-actions.pod:3132
12812 " mke2journal-L blocksize label device\n"
12817 #: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4727
12818 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12822 #: ../fish/guestfish-actions.pod:3136
12823 msgid "mke2journal-U"
12824 msgstr "mke2journal-U"
12827 #: ../fish/guestfish-actions.pod:3138
12830 " mke2journal-U blocksize uuid device\n"
12835 #: ../fish/guestfish-actions.pod:3140 ../src/guestfs-actions.pod:4741
12836 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12840 #: ../fish/guestfish-actions.pod:3142
12845 #: ../fish/guestfish-actions.pod:3144
12848 " mkfifo mode path\n"
12851 " mkfifo режим шлях\n"
12855 #: ../fish/guestfish-actions.pod:3146
12857 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
12858 "is just a convenient wrapper around L</mknod>."
12862 #: ../fish/guestfish-actions.pod:3152
12867 #: ../fish/guestfish-actions.pod:3154
12870 " mkfs fstype device\n"
12873 " mkfs тип_файлової_системи пристрій\n"
12877 #: ../fish/guestfish-actions.pod:3156 ../src/guestfs-actions.pod:4771
12879 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12880 "volume). The filesystem type is C<fstype>, for example C<ext3>."
12884 #: ../fish/guestfish-actions.pod:3160
12889 #: ../fish/guestfish-actions.pod:3162
12892 " mkfs-b fstype blocksize device\n"
12897 #: ../fish/guestfish-actions.pod:3164
12899 "This call is similar to L</mkfs>, but it allows you to control the block "
12900 "size of the resulting filesystem. Supported block sizes depend on the "
12901 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
12905 #: ../fish/guestfish-actions.pod:3169 ../fish/guestfish-actions.pod:3196
12906 #: ../src/guestfs-actions.pod:4799 ../src/guestfs-actions.pod:4837
12908 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
12913 #: ../fish/guestfish-actions.pod:3172
12915 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
12920 #: ../fish/guestfish-actions.pod:3179
12925 #: ../fish/guestfish-actions.pod:3181
12928 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
12933 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4824
12935 "This function creates a filesystem on C<device>. The filesystem type is "
12936 "C<fstype>, for example C<ext3>."
12940 #: ../fish/guestfish-actions.pod:3190 ../src/guestfs-actions.pod:4831
12941 msgid "C<blocksize>"
12942 msgstr "C<blocksize>"
12945 #: ../fish/guestfish-actions.pod:3192 ../src/guestfs-actions.pod:4833
12947 "The filesystem block size. Supported block sizes depend on the filesystem "
12948 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
12953 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4840
12954 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
12958 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4842
12959 msgid "C<features>"
12960 msgstr "C<features>"
12963 #: ../fish/guestfish-actions.pod:3203 ../src/guestfs-actions.pod:4844
12964 msgid "This passes the I<-O> parameter to the external mkfs program."
12968 #: ../fish/guestfish-actions.pod:3205 ../src/guestfs-actions.pod:4846
12970 "For certain filesystem types, this allows extra filesystem features to be "
12971 "selected. See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
12975 #: ../fish/guestfish-actions.pod:3209 ../src/guestfs-actions.pod:4850
12977 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
12982 #: ../fish/guestfish-actions.pod:3212 ../src/guestfs-actions.pod:4853
12987 #: ../fish/guestfish-actions.pod:3214 ../src/guestfs-actions.pod:4855
12989 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
12990 "sets the inode size (only for ext2/3/4 filesystems at present)."
12994 #: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4858
12995 msgid "C<sectorsize>"
12996 msgstr "C<sectorsize>"
12999 #: ../fish/guestfish-actions.pod:3219 ../src/guestfs-actions.pod:4860
13001 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13002 "sets sector size for ufs filesystem."
13006 #: ../fish/guestfish-actions.pod:3226
13007 msgid "mkmountpoint"
13008 msgstr "mkmountpoint"
13011 #: ../fish/guestfish-actions.pod:3228
13014 " mkmountpoint exemptpath\n"
13019 #: ../fish/guestfish-actions.pod:3230
13021 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13022 "to create extra mountpoints before mounting the first filesystem."
13026 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4903
13028 "These calls are I<only> necessary in some very limited circumstances, mainly "
13029 "the case where you want to mount a mix of unrelated and/or read-only "
13030 "filesystems together."
13034 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4907
13036 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13037 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13038 "inside that. You can unpack this as follows in guestfish:"
13042 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:4912
13045 " add-ro Fedora-11-i686-Live.iso\n"
13047 " mkmountpoint /cd\n"
13048 " mkmountpoint /sqsh\n"
13049 " mkmountpoint /ext3fs\n"
13050 " mount /dev/sda /cd\n"
13051 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13052 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13055 " add-ro Fedora-11-i686-Live.iso\n"
13057 " mkmountpoint /cd\n"
13058 " mkmountpoint /sqsh\n"
13059 " mkmountpoint /ext3fs\n"
13060 " mount /dev/sda /cd\n"
13061 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13062 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13066 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4921
13067 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13071 #: ../fish/guestfish-actions.pod:3254
13073 "L</mkmountpoint> is not compatible with L</umount-all>. You may get "
13074 "unexpected errors if you try to mix these calls. It is safest to manually "
13075 "unmount filesystems and remove mountpoints after use."
13079 #: ../fish/guestfish-actions.pod:3258
13081 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13082 "for this to work for manual mountpoints, you must ensure that the innermost "
13083 "mountpoints have the longest pathnames, as in the example code above."
13087 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:4932
13089 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13093 #: ../fish/guestfish-actions.pod:3265
13095 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13096 "L</umount-all> to be called when the handle is closed which can also trigger "
13101 #: ../fish/guestfish-actions.pod:3269
13106 #: ../fish/guestfish-actions.pod:3271
13109 " mknod mode devmajor devminor path\n"
13114 #: ../fish/guestfish-actions.pod:3273 ../src/guestfs-actions.pod:4951
13116 "This call creates block or character special devices, or named pipes (FIFOs)."
13120 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4954
13122 "The C<mode> parameter should be the mode, using the standard constants. "
13123 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13124 "used when creating block and character special devices."
13128 #: ../fish/guestfish-actions.pod:3281
13130 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13131 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13132 "regular file). These constants are available in the standard Linux header "
13133 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13134 "wrappers around this command which bitwise OR in the appropriate constant "
13139 #: ../fish/guestfish-actions.pod:3291
13144 #: ../fish/guestfish-actions.pod:3293
13147 " mknod-b mode devmajor devminor path\n"
13152 #: ../fish/guestfish-actions.pod:3295
13154 "This call creates a block device node called C<path> with mode C<mode> and "
13155 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
13156 "wrapper around L</mknod>."
13160 #: ../fish/guestfish-actions.pod:3301
13165 #: ../fish/guestfish-actions.pod:3303
13168 " mknod-c mode devmajor devminor path\n"
13173 #: ../fish/guestfish-actions.pod:3305
13175 "This call creates a char device node called C<path> with mode C<mode> and "
13176 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
13177 "wrapper around L</mknod>."
13181 #: ../fish/guestfish-actions.pod:3311
13186 #: ../fish/guestfish-actions.pod:3313
13192 " mkswap пристрій\n"
13196 #: ../fish/guestfish-actions.pod:3315 ../src/guestfs-actions.pod:5017
13197 msgid "Create a swap partition on C<device>."
13201 #: ../fish/guestfish-actions.pod:3317
13206 #: ../fish/guestfish-actions.pod:3319
13209 " mkswap-L label device\n"
13212 " mkswap-L мітка пристрій\n"
13216 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5030
13217 msgid "Create a swap partition on C<device> with label C<label>."
13221 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5032
13223 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13224 "sda>), just to a partition. This appears to be a limitation of the kernel "
13229 #: ../fish/guestfish-actions.pod:3327
13234 #: ../fish/guestfish-actions.pod:3329
13237 " mkswap-U uuid device\n"
13240 " mkswap-U uuid пристрій\n"
13244 #: ../fish/guestfish-actions.pod:3331 ../src/guestfs-actions.pod:5047
13245 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13249 #: ../fish/guestfish-actions.pod:3333
13250 msgid "mkswap-file"
13251 msgstr "mkswap-file"
13254 #: ../fish/guestfish-actions.pod:3335
13257 " mkswap-file path\n"
13260 " mkswap-file шлях\n"
13264 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5059
13265 msgid "Create a swap file."
13266 msgstr "Створити файл резервної пам’яті."
13269 #: ../fish/guestfish-actions.pod:3339
13271 "This command just writes a swap file signature to an existing file. To "
13272 "create the file itself, use something like L</fallocate>."
13276 #: ../fish/guestfish-actions.pod:3342
13281 #: ../fish/guestfish-actions.pod:3344
13284 " modprobe modulename\n"
13287 " modprobe назва_модуля\n"
13291 #: ../fish/guestfish-actions.pod:3346 ../src/guestfs-actions.pod:5074
13292 msgid "This loads a kernel module in the appliance."
13296 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5076
13298 "The kernel module must have been whitelisted when libguestfs was built (see "
13299 "C<appliance/kmod.whitelist.in> in the source)."
13303 #: ../fish/guestfish-actions.pod:3351
13308 #: ../fish/guestfish-actions.pod:3353
13311 " mount device mountpoint\n"
13314 " mount пристрій точка_монтування\n"
13318 #: ../fish/guestfish-actions.pod:3355 ../src/guestfs-actions.pod:5090
13320 "Mount a guest disk at a position in the filesystem. Block devices are named "
13321 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
13322 "those block devices contain partitions, they will have the usual names (eg. "
13323 "C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used."
13327 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5096
13329 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13330 "mounted on C</> before others can be mounted. Other filesystems can only be "
13331 "mounted on directories which already exist."
13335 #: ../fish/guestfish-actions.pod:3366 ../src/guestfs-actions.pod:5101
13337 "The mounted filesystem is writable, if we have sufficient permissions on the "
13338 "underlying device."
13342 #: ../fish/guestfish-actions.pod:3369
13344 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13345 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
13346 "problems for users. If your program might need to work with older versions "
13347 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13348 "first parameter if you don't want any options)."
13352 #: ../fish/guestfish-actions.pod:3376
13357 #: ../fish/guestfish-actions.pod:3378
13360 " mount-9p mounttag mountpoint [options:..]\n"
13365 #: ../fish/guestfish-actions.pod:3380 ../src/guestfs-actions.pod:5130
13367 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13372 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5133
13374 "If required, C<trans=virtio> will be automatically added to the options. "
13375 "Any other options required can be passed in the optional C<options> "
13380 #: ../fish/guestfish-actions.pod:3389
13382 msgstr "mount-loop"
13385 #: ../fish/guestfish-actions.pod:3391
13388 " mount-loop file mountpoint\n"
13393 #: ../fish/guestfish-actions.pod:3393 ../src/guestfs-actions.pod:5172
13395 "This command lets you mount C<file> (a filesystem image in a file) on a "
13396 "mount point. It is entirely equivalent to the command C<mount -o loop file "
13401 #: ../fish/guestfish-actions.pod:3397
13402 msgid "mount-options"
13403 msgstr "mount-options"
13406 #: ../fish/guestfish-actions.pod:3399
13409 " mount-options options device mountpoint\n"
13414 #: ../fish/guestfish-actions.pod:3401
13416 "This is the same as the L</mount> command, but it allows you to set the "
13417 "mount options as for the L<mount(8)> I<-o> flag."
13421 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5192
13423 "If the C<options> parameter is an empty string, then no options are passed "
13424 "(all options default to whatever the filesystem uses)."
13428 #: ../fish/guestfish-actions.pod:3409
13433 #: ../fish/guestfish-actions.pod:3411
13436 " mount-ro device mountpoint\n"
13439 " mount-ro пристрій точка_монтування\n"
13443 #: ../fish/guestfish-actions.pod:3413
13445 "This is the same as the L</mount> command, but it mounts the filesystem with "
13446 "the read-only (I<-o ro>) flag."
13450 #: ../fish/guestfish-actions.pod:3416
13455 #: ../fish/guestfish-actions.pod:3418
13458 " mount-vfs options vfstype device mountpoint\n"
13463 #: ../fish/guestfish-actions.pod:3420
13465 "This is the same as the L</mount> command, but it allows you to set both the "
13466 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13470 #: ../fish/guestfish-actions.pod:3424
13471 msgid "mountpoints"
13472 msgstr "mountpoints"
13475 #: ../fish/guestfish-actions.pod:3426
13485 #: ../fish/guestfish-actions.pod:3428
13487 "This call is similar to L</mounts>. That call returns a list of devices. "
13488 "This one returns a hash table (map) of device name to directory where the "
13489 "device is mounted."
13493 #: ../fish/guestfish-actions.pod:3432
13498 #: ../fish/guestfish-actions.pod:3434
13508 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5253
13510 "This returns the list of currently mounted filesystems. It returns the list "
13511 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13515 #: ../fish/guestfish-actions.pod:3439 ../src/guestfs-actions.pod:5256
13516 msgid "Some internal mounts are not shown."
13520 #: ../fish/guestfish-actions.pod:3441
13521 msgid "See also: L</mountpoints>"
13522 msgstr "Див. також L</mountpoints>"
13525 #: ../fish/guestfish-actions.pod:3443
13530 #: ../fish/guestfish-actions.pod:3445
13536 " mv джерело призначення\n"
13540 #: ../fish/guestfish-actions.pod:3447 ../src/guestfs-actions.pod:5273
13542 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13543 "destination filename or destination directory."
13547 #: ../fish/guestfish-actions.pod:3450
13548 msgid "ntfs-3g-probe"
13549 msgstr "ntfs-3g-probe"
13552 #: ../fish/guestfish-actions.pod:3452
13555 " ntfs-3g-probe true|false device\n"
13560 #: ../fish/guestfish-actions.pod:3454 ../src/guestfs-actions.pod:5287
13562 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13563 "C<device> for mountability. (Not all NTFS volumes can be mounted read-"
13564 "write, and some cannot be mounted at all)."
13568 #: ../fish/guestfish-actions.pod:3458 ../src/guestfs-actions.pod:5291
13570 "C<rw> is a boolean flag. Set it to true if you want to test if the volume "
13571 "can be mounted read-write. Set it to false if you want to test if the "
13572 "volume can be mounted read-only."
13576 #: ../fish/guestfish-actions.pod:3462 ../src/guestfs-actions.pod:5295
13578 "The return value is an integer which C<0> if the operation would succeed, or "
13579 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13583 #: ../fish/guestfish-actions.pod:3466
13585 msgstr "ntfsresize"
13588 #: ../fish/guestfish-actions.pod:3468
13591 " ntfsresize device\n"
13594 " ntfsresize пристрій\n"
13598 #: ../fish/guestfish-actions.pod:3470 ../fish/guestfish-actions.pod:3494
13599 #: ../src/guestfs-actions.pod:5316 ../src/guestfs-actions.pod:5348
13601 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13602 "size of the underlying device."
13606 #: ../fish/guestfish-actions.pod:3473 ../src/guestfs-actions.pod:5319
13608 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13609 "consistency check (for safety). You have to boot into Windows to perform "
13610 "this check and clear this condition. Furthermore, ntfsresize refuses to "
13611 "resize filesystems which have been marked in this way. So in effect it is "
13612 "not possible to call ntfsresize multiple times on a single filesystem "
13613 "without booting into Windows between each resize."
13617 #: ../fish/guestfish-actions.pod:3481 ../fish/guestfish-actions.pod:3520
13618 #: ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:5374
13619 msgid "See also L<ntfsresize(8)>."
13620 msgstr "Див. також L<ntfsresize(8)>."
13623 #: ../fish/guestfish-actions.pod:3483 ../fish/guestfish-actions.pod:3531
13625 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13630 #: ../fish/guestfish-actions.pod:3490
13631 msgid "ntfsresize-opts"
13635 #: ../fish/guestfish-actions.pod:3492
13638 " ntfsresize-opts device [size:..] [force:..]\n"
13643 #: ../fish/guestfish-actions.pod:3503 ../src/guestfs-actions.pod:5357
13645 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
13646 "resized to fit the container (eg. partition)."
13650 #: ../fish/guestfish-actions.pod:3506 ../src/guestfs-actions.pod:5360
13655 #: ../fish/guestfish-actions.pod:3508 ../src/guestfs-actions.pod:5362
13657 "If this option is true, then force the resize of the filesystem even if the "
13658 "filesystem is marked as requiring a consistency check."
13662 #: ../fish/guestfish-actions.pod:3511
13664 "After the resize operation, the filesystem is always marked as requiring a "
13665 "consistency check (for safety). You have to boot into Windows to perform "
13666 "this check and clear this condition. If you I<don't> set the C<force> "
13667 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13668 "a single filesystem without booting into Windows between each resize."
13672 #: ../fish/guestfish-actions.pod:3524
13673 msgid "ntfsresize-size"
13674 msgstr "ntfsresize-size"
13677 #: ../fish/guestfish-actions.pod:3526
13680 " ntfsresize-size device size\n"
13685 #: ../fish/guestfish-actions.pod:3528
13687 "This command is the same as L</ntfsresize> except that it allows you to "
13688 "specify the new size (in bytes) explicitly."
13692 #: ../fish/guestfish-actions.pod:3538
13697 #: ../fish/guestfish-actions.pod:3540
13700 " part-add device prlogex startsect endsect\n"
13705 #: ../fish/guestfish-actions.pod:3542
13707 "This command adds a partition to C<device>. If there is no partition table "
13708 "on the device, call L</part-init> first."
13712 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5435
13714 "The C<prlogex> parameter is the type of partition. Normally you should pass "
13715 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13716 "C<logical>) and C<e> (or C<extended>) partition types."
13720 #: ../fish/guestfish-actions.pod:3550 ../src/guestfs-actions.pod:5440
13722 "C<startsect> and C<endsect> are the start and end of the partition in "
13723 "I<sectors>. C<endsect> may be negative, which means it counts backwards "
13724 "from the end of the disk (C<-1> is the last sector)."
13728 #: ../fish/guestfish-actions.pod:3554
13730 "Creating a partition which covers the whole disk is not so easy. Use L</"
13731 "part-disk> to do that."
13735 #: ../fish/guestfish-actions.pod:3557
13740 #: ../fish/guestfish-actions.pod:3559
13743 " part-del device partnum\n"
13748 #: ../fish/guestfish-actions.pod:3561 ../src/guestfs-actions.pod:5458
13749 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13753 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5460
13755 "Note that in the case of MBR partitioning, deleting an extended partition "
13756 "also deletes any logical partitions it contains."
13760 #: ../fish/guestfish-actions.pod:3567
13765 #: ../fish/guestfish-actions.pod:3569
13768 " part-disk device parttype\n"
13771 " part-disk пристрій тип_розділу\n"
13775 #: ../fish/guestfish-actions.pod:3571
13777 "This command is simply a combination of L</part-init> followed by L</part-"
13778 "add> to create a single primary partition covering the whole disk."
13782 #: ../fish/guestfish-actions.pod:3575
13784 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13785 "possible values are described in L</part-init>."
13789 #: ../fish/guestfish-actions.pod:3581
13790 msgid "part-get-bootable"
13791 msgstr "part-get-bootable"
13794 #: ../fish/guestfish-actions.pod:3583
13797 " part-get-bootable device partnum\n"
13802 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5496
13804 "This command returns true if the partition C<partnum> on C<device> has the "
13805 "bootable flag set."
13809 #: ../fish/guestfish-actions.pod:3588
13810 msgid "See also L</part-set-bootable>."
13811 msgstr "Див. також L</part-set-bootable>."
13814 #: ../fish/guestfish-actions.pod:3590
13815 msgid "part-get-mbr-id"
13816 msgstr "part-get-mbr-id"
13819 #: ../fish/guestfish-actions.pod:3592
13822 " part-get-mbr-id device partnum\n"
13827 #: ../fish/guestfish-actions.pod:3594 ../src/guestfs-actions.pod:5512
13829 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13830 "partition C<partnum>."
13834 #: ../fish/guestfish-actions.pod:3597 ../fish/guestfish-actions.pod:3741
13836 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
13837 "undefined results for other partition table types (see L</part-get-"
13842 #: ../fish/guestfish-actions.pod:3601
13843 msgid "part-get-parttype"
13844 msgstr "part-get-parttype"
13847 #: ../fish/guestfish-actions.pod:3603
13850 " part-get-parttype device\n"
13853 " part-get-parttype пристрій\n"
13857 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5529
13859 "This command examines the partition table on C<device> and returns the "
13860 "partition table type (format) being used."
13864 #: ../fish/guestfish-actions.pod:3608
13866 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13867 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
13868 "possible, although unusual. See L</part-init> for a full list."
13872 #: ../fish/guestfish-actions.pod:3613
13877 #: ../fish/guestfish-actions.pod:3615
13880 " part-init device parttype\n"
13885 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5549
13887 "This creates an empty partition table on C<device> of one of the partition "
13888 "types listed below. Usually C<parttype> should be either C<msdos> or C<gpt> "
13889 "(for large disks)."
13893 #: ../fish/guestfish-actions.pod:3621
13895 "Initially there are no partitions. Following this, you should call L</part-"
13896 "add> for each partition required."
13900 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5556
13901 msgid "Possible values for C<parttype> are:"
13905 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5560
13910 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5562
13915 #: ../fish/guestfish-actions.pod:3632 ../src/guestfs-actions.pod:5564
13916 msgid "Intel EFI / GPT partition table."
13920 #: ../fish/guestfish-actions.pod:3634 ../src/guestfs-actions.pod:5566
13922 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
13923 "and Intel-based Mac OS X. It also has limited backwards compatibility with "
13924 "the C<mbr> format."
13928 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5570
13933 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5572
13938 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5574
13940 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
13941 "Windows. This partition type will B<only> work for device sizes up to 2 "
13942 "TB. For large disks we recommend using C<gpt>."
13946 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5581
13948 "Other partition table types that may work but are not supported include:"
13952 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5586
13957 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5588
13958 msgid "AIX disk labels."
13959 msgstr "Мітки дисків AIX."
13962 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5590
13967 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5592
13972 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5594
13973 msgid "Amiga \"Rigid Disk Block\" format."
13974 msgstr "Формат \"Rigid Disk Block\" Amiga."
13977 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5596
13982 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5598
13983 msgid "BSD disk labels."
13984 msgstr "Мітки дисків BSD."
13987 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5600
13992 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5602
13993 msgid "DASD, used on IBM mainframes."
13994 msgstr "DASD, використовувалися у мейнфреймах IBM."
13997 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5604
14002 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5606
14003 msgid "MIPS/SGI volumes."
14004 msgstr "Томи MIPS/SGI."
14007 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5608
14012 #: ../fish/guestfish-actions.pod:3678 ../src/guestfs-actions.pod:5610
14013 msgid "Old Mac partition format. Modern Macs use C<gpt>."
14014 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
14017 #: ../fish/guestfish-actions.pod:3680 ../src/guestfs-actions.pod:5612
14022 #: ../fish/guestfish-actions.pod:3682 ../src/guestfs-actions.pod:5614
14023 msgid "NEC PC-98 format, common in Japan apparently."
14024 msgstr "Формат NEC PC-98, поширений у Японії."
14027 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5616
14032 #: ../fish/guestfish-actions.pod:3686 ../src/guestfs-actions.pod:5618
14033 msgid "Sun disk labels."
14034 msgstr "Мітки дисків Sun."
14037 #: ../fish/guestfish-actions.pod:3690
14042 #: ../fish/guestfish-actions.pod:3692
14045 " part-list device\n"
14048 " part-list device\n"
14052 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5632
14054 "This command parses the partition table on C<device> and returns the list of "
14055 "partitions found."
14059 #: ../fish/guestfish-actions.pod:3697 ../src/guestfs-actions.pod:5635
14060 msgid "The fields in the returned structure are:"
14064 #: ../fish/guestfish-actions.pod:3701 ../src/guestfs-actions.pod:5639
14065 msgid "B<part_num>"
14066 msgstr "B<part_num>"
14069 #: ../fish/guestfish-actions.pod:3703 ../src/guestfs-actions.pod:5641
14070 msgid "Partition number, counting from 1."
14074 #: ../fish/guestfish-actions.pod:3705 ../src/guestfs-actions.pod:5643
14075 msgid "B<part_start>"
14076 msgstr "B<part_start>"
14079 #: ../fish/guestfish-actions.pod:3707
14081 "Start of the partition I<in bytes>. To get sectors you have to divide by "
14082 "the device's sector size, see L</blockdev-getss>."
14086 #: ../fish/guestfish-actions.pod:3710 ../src/guestfs-actions.pod:5648
14087 msgid "B<part_end>"
14088 msgstr "B<part_end>"
14091 #: ../fish/guestfish-actions.pod:3712 ../src/guestfs-actions.pod:5650
14092 msgid "End of the partition in bytes."
14096 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5652
14097 msgid "B<part_size>"
14098 msgstr "B<part_size>"
14101 #: ../fish/guestfish-actions.pod:3716 ../src/guestfs-actions.pod:5654
14102 msgid "Size of the partition in bytes."
14106 #: ../fish/guestfish-actions.pod:3720
14107 msgid "part-set-bootable"
14108 msgstr "part-set-bootable"
14111 #: ../fish/guestfish-actions.pod:3722
14114 " part-set-bootable device partnum true|false\n"
14119 #: ../fish/guestfish-actions.pod:3724 ../src/guestfs-actions.pod:5672
14121 "This sets the bootable flag on partition numbered C<partnum> on device "
14122 "C<device>. Note that partitions are numbered from 1."
14126 #: ../fish/guestfish-actions.pod:3727 ../src/guestfs-actions.pod:5675
14128 "The bootable flag is used by some operating systems (notably Windows) to "
14129 "determine which partition to boot from. It is by no means universally "
14134 #: ../fish/guestfish-actions.pod:3731
14135 msgid "part-set-mbr-id"
14136 msgstr "part-set-mbr-id"
14139 #: ../fish/guestfish-actions.pod:3733
14142 " part-set-mbr-id device partnum idbyte\n"
14147 #: ../fish/guestfish-actions.pod:3735 ../src/guestfs-actions.pod:5691
14149 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14150 "C<partnum> to C<idbyte>. Note that the type bytes quoted in most "
14151 "documentation are in fact hexadecimal numbers, but usually documented "
14152 "without any leading \"0x\" which might be confusing."
14156 #: ../fish/guestfish-actions.pod:3745
14157 msgid "part-set-name"
14158 msgstr "part-set-name"
14161 #: ../fish/guestfish-actions.pod:3747
14164 " part-set-name device partnum name\n"
14169 #: ../fish/guestfish-actions.pod:3749 ../src/guestfs-actions.pod:5713
14171 "This sets the partition name on partition numbered C<partnum> on device "
14172 "C<device>. Note that partitions are numbered from 1."
14176 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5716
14178 "The partition name can only be set on certain types of partition table. "
14179 "This works on C<gpt> but not on C<mbr> partitions."
14183 #: ../fish/guestfish-actions.pod:3755
14184 msgid "part-to-dev"
14185 msgstr "part-to-dev"
14188 #: ../fish/guestfish-actions.pod:3757
14191 " part-to-dev partition\n"
14194 " part-to-dev розділ\n"
14198 #: ../fish/guestfish-actions.pod:3759 ../src/guestfs-actions.pod:5729
14200 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14201 "partition number, returning the device name (eg. \"/dev/sdb\")."
14205 #: ../fish/guestfish-actions.pod:3763
14207 "The named partition must exist, for example as a string returned from L</"
14208 "list-partitions>."
14212 #: ../fish/guestfish-actions.pod:3766
14213 msgid "ping-daemon"
14214 msgstr "ping-daemon"
14217 #: ../fish/guestfish-actions.pod:3768
14227 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5746
14229 "This is a test probe into the guestfs daemon running inside the qemu "
14230 "subprocess. Calling this function checks that the daemon responds to the "
14231 "ping message, without affecting the daemon or attached block device(s) in "
14236 #: ../fish/guestfish-actions.pod:3775
14241 #: ../fish/guestfish-actions.pod:3777
14244 " pread path count offset\n"
14249 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5764
14251 "This command lets you read part of a file. It reads C<count> bytes of the "
14252 "file, starting at C<offset>, from file C<path>."
14256 #: ../fish/guestfish-actions.pod:3782 ../fish/guestfish-actions.pod:3797
14257 #: ../src/guestfs-actions.pod:5767 ../src/guestfs-actions.pod:5793
14259 "This may read fewer bytes than requested. For further details see the "
14260 "L<pread(2)> system call."
14264 #: ../fish/guestfish-actions.pod:3785
14265 msgid "See also L</pwrite>, L</pread-device>."
14266 msgstr "Див. також L</pwrite>, L</pread-device>."
14269 #: ../fish/guestfish-actions.pod:3790
14270 msgid "pread-device"
14271 msgstr "pread-device"
14274 #: ../fish/guestfish-actions.pod:3792
14277 " pread-device device count offset\n"
14282 #: ../fish/guestfish-actions.pod:3794 ../src/guestfs-actions.pod:5790
14284 "This command lets you read part of a file. It reads C<count> bytes of "
14285 "C<device>, starting at C<offset>."
14289 #: ../fish/guestfish-actions.pod:3800
14290 msgid "See also L</pread>."
14291 msgstr "Див. також L</pread>."
14294 #: ../fish/guestfish-actions.pod:3805
14299 #: ../fish/guestfish-actions.pod:3807
14302 " pvcreate device\n"
14305 " pvcreate пристрій\n"
14309 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5813
14311 "This creates an LVM physical volume on the named C<device>, where C<device> "
14312 "should usually be a partition name such as C</dev/sda1>."
14316 #: ../fish/guestfish-actions.pod:3813
14321 #: ../fish/guestfish-actions.pod:3815
14324 " pvremove device\n"
14327 " pvremove пристрій\n"
14331 #: ../fish/guestfish-actions.pod:3817 ../src/guestfs-actions.pod:5827
14333 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14338 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5830
14340 "The implementation uses the C<pvremove> command which refuses to wipe "
14341 "physical volumes that contain any volume groups, so you have to remove those "
14346 #: ../fish/guestfish-actions.pod:3824
14351 #: ../fish/guestfish-actions.pod:3826
14354 " pvresize device\n"
14357 " pvresize пристрій\n"
14361 #: ../fish/guestfish-actions.pod:3828 ../src/guestfs-actions.pod:5844
14363 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14364 "the new size of the underlying device."
14368 #: ../fish/guestfish-actions.pod:3831
14369 msgid "pvresize-size"
14370 msgstr "pvresize-size"
14373 #: ../fish/guestfish-actions.pod:3833
14376 " pvresize-size device size\n"
14381 #: ../fish/guestfish-actions.pod:3835
14383 "This command is the same as L</pvresize> except that it allows you to "
14384 "specify the new size (in bytes) explicitly."
14388 #: ../fish/guestfish-actions.pod:3838
14393 #: ../fish/guestfish-actions.pod:3840
14403 #: ../fish/guestfish-actions.pod:3842 ../src/guestfs-actions.pod:5870
14405 "List all the physical volumes detected. This is the equivalent of the L<pvs"
14410 #: ../fish/guestfish-actions.pod:3845 ../src/guestfs-actions.pod:5873
14412 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14417 #: ../fish/guestfish-actions.pod:3848
14418 msgid "See also L</pvs-full>."
14419 msgstr "Див. також L</pvs-full>."
14422 #: ../fish/guestfish-actions.pod:3850
14427 #: ../fish/guestfish-actions.pod:3852
14437 #: ../fish/guestfish-actions.pod:3854 ../src/guestfs-actions.pod:5889
14439 "List all the physical volumes detected. This is the equivalent of the L<pvs"
14440 "(8)> command. The \"full\" version includes all fields."
14444 #: ../fish/guestfish-actions.pod:3857
14449 #: ../fish/guestfish-actions.pod:3859
14455 " pvuuid пристрій\n"
14459 #: ../fish/guestfish-actions.pod:3861 ../src/guestfs-actions.pod:5904
14460 msgid "This command returns the UUID of the LVM PV C<device>."
14464 #: ../fish/guestfish-actions.pod:3863
14469 #: ../fish/guestfish-actions.pod:3865
14472 " pwrite path content offset\n"
14477 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5920
14479 "This command writes to part of a file. It writes the data buffer C<content> "
14480 "to the file C<path> starting at offset C<offset>."
14484 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5923
14486 "This command implements the L<pwrite(2)> system call, and like that system "
14487 "call it may not write the full data requested. The return value is the "
14488 "number of bytes that were actually written to the file. This could even be "
14489 "0, although short writes are unlikely for regular files in ordinary "
14494 #: ../fish/guestfish-actions.pod:3876
14495 msgid "See also L</pread>, L</pwrite-device>."
14496 msgstr "Див. також L</pread>, L</pwrite-device>."
14499 #: ../fish/guestfish-actions.pod:3881
14500 msgid "pwrite-device"
14501 msgstr "pwrite-device"
14504 #: ../fish/guestfish-actions.pod:3883
14507 " pwrite-device device content offset\n"
14512 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:5947
14514 "This command writes to part of a device. It writes the data buffer "
14515 "C<content> to C<device> starting at offset C<offset>."
14519 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:5950
14521 "This command implements the L<pwrite(2)> system call, and like that system "
14522 "call it may not write the full data requested (although short writes to disk "
14523 "devices and partitions are probably impossible with standard Linux kernels)."
14527 #: ../fish/guestfish-actions.pod:3893
14528 msgid "See also L</pwrite>."
14529 msgstr "Див. також L</pwrite>."
14532 #: ../fish/guestfish-actions.pod:3898
14537 #: ../fish/guestfish-actions.pod:3900
14540 " read-file path\n"
14543 " read-file шлях\n"
14547 #: ../fish/guestfish-actions.pod:3902 ../src/guestfs-actions.pod:5971
14548 msgid "This calls returns the contents of the file C<path> as a buffer."
14552 #: ../fish/guestfish-actions.pod:3905
14554 "Unlike L</cat>, this function can correctly handle files that contain "
14555 "embedded ASCII NUL characters. However unlike L</download>, this function "
14556 "is limited in the total size of file that can be handled."
14560 #: ../fish/guestfish-actions.pod:3913
14562 msgstr "read-lines"
14565 #: ../fish/guestfish-actions.pod:3915
14568 " read-lines path\n"
14571 " read-lines шлях\n"
14575 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5996
14577 "The file contents are returned as a list of lines. Trailing C<LF> and "
14578 "C<CRLF> character sequences are I<not> returned."
14582 #: ../fish/guestfish-actions.pod:3922
14584 "Note that this function cannot correctly handle binary files (specifically, "
14585 "files containing C<\\0> character which is treated as end of line). For "
14586 "those you need to use the L</read-file> function which has a more complex "
14591 #: ../fish/guestfish-actions.pod:3927
14596 #: ../fish/guestfish-actions.pod:3929
14602 " readdir каталог\n"
14606 #: ../fish/guestfish-actions.pod:3931 ../src/guestfs-actions.pod:6016
14607 msgid "This returns the list of directory entries in directory C<dir>."
14611 #: ../fish/guestfish-actions.pod:3933 ../src/guestfs-actions.pod:6018
14613 "All entries in the directory are returned, including C<.> and C<..>. The "
14614 "entries are I<not> sorted, but returned in the same order as the underlying "
14619 #: ../fish/guestfish-actions.pod:3937 ../src/guestfs-actions.pod:6022
14621 "Also this call returns basic file type information about each file. The "
14622 "C<ftyp> field will contain one of the following characters:"
14626 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6027
14631 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6029
14632 msgid "Block special"
14633 msgstr "Блоковий особливий"
14636 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6031
14641 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6033
14642 msgid "Char special"
14643 msgstr "Символьний особливий"
14646 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6035
14651 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6037
14656 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6039
14661 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6041
14662 msgid "FIFO (named pipe)"
14663 msgstr "FIFO (іменований канал)"
14666 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6043
14671 #: ../fish/guestfish-actions.pod:3960 ../src/guestfs-actions.pod:6045
14672 msgid "Symbolic link"
14673 msgstr "Символічне посилання"
14676 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6047
14681 #: ../fish/guestfish-actions.pod:3964 ../src/guestfs-actions.pod:6049
14682 msgid "Regular file"
14683 msgstr "Звичайний файл"
14686 #: ../fish/guestfish-actions.pod:3966 ../src/guestfs-actions.pod:6051
14691 #: ../fish/guestfish-actions.pod:3968 ../src/guestfs-actions.pod:6053
14696 #: ../fish/guestfish-actions.pod:3970 ../src/guestfs-actions.pod:6055
14701 #: ../fish/guestfish-actions.pod:3972 ../src/guestfs-actions.pod:6057
14702 msgid "Unknown file type"
14703 msgstr "Невідомий тип файла"
14706 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6059
14711 #: ../fish/guestfish-actions.pod:3976 ../src/guestfs-actions.pod:6061
14713 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14717 #: ../fish/guestfish-actions.pod:3981
14719 "This function is primarily intended for use by programs. To get a simple "
14720 "list of names, use L</ls>. To get a printable directory for human "
14721 "consumption, use L</ll>."
14725 #: ../fish/guestfish-actions.pod:3985
14730 #: ../fish/guestfish-actions.pod:3987
14740 #: ../fish/guestfish-actions.pod:3989 ../src/guestfs-actions.pod:6082
14741 msgid "This command reads the target of a symbolic link."
14745 #: ../fish/guestfish-actions.pod:3991
14746 msgid "readlinklist"
14747 msgstr "readlinklist"
14750 #: ../fish/guestfish-actions.pod:3993
14753 " readlinklist path 'names ...'\n"
14758 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6096
14760 "This call allows you to do a C<readlink> operation on multiple files, where "
14761 "all files are in the directory C<path>. C<names> is the list of files from "
14766 #: ../fish/guestfish-actions.pod:3999 ../src/guestfs-actions.pod:6100
14768 "On return you get a list of strings, with a one-to-one correspondence to the "
14769 "C<names> list. Each string is the value of the symbolic link."
14773 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6104
14775 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14776 "result string is the empty string C<\"\">. However the whole operation is "
14777 "completed even if there were C<readlink(2)> errors, and so you can call this "
14778 "function with names where you don't know if they are symbolic links already "
14779 "(albeit slightly less efficient)."
14783 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6111
14785 "This call is intended for programs that want to efficiently list a directory "
14786 "contents without making many round-trips. Very long directory listings "
14787 "might cause the protocol message size to be exceeded, causing this call to "
14788 "fail. The caller must split up such requests into smaller groups of names."
14792 #: ../fish/guestfish-actions.pod:4017
14797 #: ../fish/guestfish-actions.pod:4019
14807 #: ../fish/guestfish-actions.pod:4021 ../src/guestfs-actions.pod:6130
14809 "Return the canonicalized absolute pathname of C<path>. The returned path "
14810 "has no C<.>, C<..> or symbolic link path elements."
14814 #: ../fish/guestfish-actions.pod:4024
14815 msgid "removexattr"
14816 msgstr "removexattr"
14819 #: ../fish/guestfish-actions.pod:4026
14822 " removexattr xattr path\n"
14827 #: ../fish/guestfish-actions.pod:4028 ../src/guestfs-actions.pod:6145
14829 "This call removes the extended attribute named C<xattr> of the file C<path>."
14833 #: ../fish/guestfish-actions.pod:4031
14834 msgid "See also: L</lremovexattr>, L<attr(5)>."
14835 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
14838 #: ../fish/guestfish-actions.pod:4033
14843 #: ../fish/guestfish-actions.pod:4035
14846 " resize2fs device\n"
14849 " resize2fs пристрій\n"
14853 #: ../fish/guestfish-actions.pod:4037 ../src/guestfs-actions.pod:6160
14855 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
14856 "underlying device."
14860 #: ../fish/guestfish-actions.pod:4040
14862 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
14863 "before calling this command. For unknown reasons C<resize2fs> sometimes "
14864 "gives an error about this and sometimes not. In any case, it is always safe "
14865 "to call L</e2fsck-f> before calling this function."
14869 #: ../fish/guestfish-actions.pod:4046
14870 msgid "resize2fs-M"
14871 msgstr "resize2fs-M"
14874 #: ../fish/guestfish-actions.pod:4048
14877 " resize2fs-M device\n"
14880 " resize2fs-M пристрій\n"
14884 #: ../fish/guestfish-actions.pod:4050
14886 "This command is the same as L</resize2fs>, but the filesystem is resized to "
14887 "its minimum size. This works like the I<-M> option to the C<resize2fs> "
14892 #: ../fish/guestfish-actions.pod:4054
14894 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
14895 "and read the C<Block size> and C<Block count> values. These two numbers, "
14896 "multiplied together, give the resulting size of the minimal filesystem in "
14901 #: ../fish/guestfish-actions.pod:4059
14902 msgid "resize2fs-size"
14903 msgstr "resize2fs-size"
14906 #: ../fish/guestfish-actions.pod:4061
14909 " resize2fs-size device size\n"
14914 #: ../fish/guestfish-actions.pod:4063
14916 "This command is the same as L</resize2fs> except that it allows you to "
14917 "specify the new size (in bytes) explicitly."
14921 #: ../fish/guestfish-actions.pod:4066
14926 #: ../fish/guestfish-actions.pod:4068
14936 #: ../fish/guestfish-actions.pod:4070 ../src/guestfs-actions.pod:6212
14937 msgid "Remove the single file C<path>."
14941 #: ../fish/guestfish-actions.pod:4072
14946 #: ../fish/guestfish-actions.pod:4074
14956 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6224
14958 "Remove the file or directory C<path>, recursively removing the contents if "
14959 "its a directory. This is like the C<rm -rf> shell command."
14963 #: ../fish/guestfish-actions.pod:4080
14968 #: ../fish/guestfish-actions.pod:4082
14978 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6238
14979 msgid "Remove the single directory C<path>."
14983 #: ../fish/guestfish-actions.pod:4086
14984 msgid "rmmountpoint"
14985 msgstr "rmmountpoint"
14988 #: ../fish/guestfish-actions.pod:4088
14991 " rmmountpoint exemptpath\n"
14996 #: ../fish/guestfish-actions.pod:4090
14998 "This calls removes a mountpoint that was previously created with L</"
14999 "mkmountpoint>. See L</mkmountpoint> for full details."
15003 #: ../fish/guestfish-actions.pod:4094
15004 msgid "scrub-device"
15005 msgstr "scrub-device"
15008 #: ../fish/guestfish-actions.pod:4096
15011 " scrub-device device\n"
15014 " scrub-device пристрій\n"
15018 #: ../fish/guestfish-actions.pod:4098 ../src/guestfs-actions.pod:6264
15020 "This command writes patterns over C<device> to make data retrieval more "
15025 #: ../fish/guestfish-actions.pod:4101 ../fish/guestfish-actions.pod:4116
15026 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6267
15027 #: ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:6307
15029 "It is an interface to the L<scrub(1)> program. See that manual page for "
15034 #: ../fish/guestfish-actions.pod:4107
15036 msgstr "scrub-file"
15039 #: ../fish/guestfish-actions.pod:4109
15042 " scrub-file file\n"
15045 " scrub-file файл\n"
15049 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6283
15051 "This command writes patterns over a file to make data retrieval more "
15056 #: ../fish/guestfish-actions.pod:4114 ../src/guestfs-actions.pod:6286
15057 msgid "The file is I<removed> after scrubbing."
15061 #: ../fish/guestfish-actions.pod:4119
15062 msgid "scrub-freespace"
15063 msgstr "scrub-freespace"
15066 #: ../fish/guestfish-actions.pod:4121
15069 " scrub-freespace dir\n"
15072 " scrub-freespace каталог\n"
15076 #: ../fish/guestfish-actions.pod:4123
15078 "This command creates the directory C<dir> and then fills it with files until "
15079 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15080 "deletes them. The intention is to scrub any free space on the partition "
15081 "containing C<dir>."
15085 #: ../fish/guestfish-actions.pod:4132
15087 msgstr "set-append"
15090 #: ../fish/guestfish-actions.pod:4134
15095 #: ../fish/guestfish-actions.pod:4136
15098 " set-append append\n"
15103 #: ../fish/guestfish-actions.pod:4138 ../src/guestfs-actions.pod:6320
15105 "This function is used to add additional options to the guest kernel command "
15110 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6323
15112 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15113 "environment variable."
15117 #: ../fish/guestfish-actions.pod:4144 ../src/guestfs-actions.pod:6326
15119 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15120 "(libguestfs always adds a few of its own)."
15124 #: ../fish/guestfish-actions.pod:4147
15125 msgid "set-attach-method"
15126 msgstr "set-attach-method"
15129 #: ../fish/guestfish-actions.pod:4149
15130 msgid "attach-method"
15134 #: ../fish/guestfish-actions.pod:4151
15137 " set-attach-method attachmethod\n"
15142 #: ../fish/guestfish-actions.pod:4153 ../src/guestfs-actions.pod:6339
15144 "Set the method that libguestfs uses to connect to the back end guestfsd "
15145 "daemon. Possible methods are:"
15149 #: ../fish/guestfish-actions.pod:4158 ../src/guestfs-actions.pod:6344
15150 #: ../src/guestfs.pod:2901
15151 msgid "C<appliance>"
15152 msgstr "C<appliance>"
15155 #: ../fish/guestfish-actions.pod:4160 ../src/guestfs-actions.pod:6346
15157 "Launch an appliance and connect to it. This is the ordinary method and the "
15162 #: ../fish/guestfish-actions.pod:4163 ../src/guestfs-actions.pod:6349
15163 msgid "C<unix:I<path>>"
15164 msgstr "C<unix:I<шлях>>"
15167 #: ../fish/guestfish-actions.pod:4165 ../src/guestfs-actions.pod:6351
15168 msgid "Connect to the Unix domain socket I<path>."
15169 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
15172 #: ../fish/guestfish-actions.pod:4167 ../src/guestfs-actions.pod:6353
15174 "This method lets you connect to an existing daemon or (using virtio-serial) "
15175 "to a live guest. For more information, see L<guestfs(3)/ATTACHING TO "
15176 "RUNNING DAEMONS>."
15180 #: ../fish/guestfish-actions.pod:4173
15181 msgid "set-autosync"
15182 msgstr "set-autosync"
15185 #: ../fish/guestfish-actions.pod:4175
15190 #: ../fish/guestfish-actions.pod:4177
15193 " set-autosync true|false\n"
15196 " set-autosync true|false\n"
15200 #: ../fish/guestfish-actions.pod:4179 ../src/guestfs-actions.pod:6369
15202 "If C<autosync> is true, this enables autosync. Libguestfs will make a best "
15203 "effort attempt to make filesystems consistent and synchronized when the "
15204 "handle is closed (also if the program exits without closing handles)."
15208 #: ../fish/guestfish-actions.pod:4184 ../src/guestfs-actions.pod:6374
15210 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15211 "disabled by default)."
15215 #: ../fish/guestfish-actions.pod:4187
15217 msgstr "set-direct"
15220 #: ../fish/guestfish-actions.pod:4189
15225 #: ../fish/guestfish-actions.pod:4191
15228 " set-direct true|false\n"
15231 " set-direct true|false\n"
15235 #: ../fish/guestfish-actions.pod:4193 ../src/guestfs-actions.pod:6387
15237 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15238 "passed directly through to the appliance once it is launched."
15242 #: ../fish/guestfish-actions.pod:4197
15244 "One consequence of this is that log messages aren't caught by the library "
15245 "and handled by L</set-log-message-callback>, but go straight to stdout."
15249 #: ../fish/guestfish-actions.pod:4201 ../src/guestfs-actions.pod:6395
15250 msgid "You probably don't want to use this unless you know what you are doing."
15254 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6398
15255 msgid "The default is disabled."
15259 #: ../fish/guestfish-actions.pod:4206
15260 msgid "set-e2label"
15261 msgstr "set-e2label"
15264 #: ../fish/guestfish-actions.pod:4208
15267 " set-e2label device label\n"
15272 #: ../fish/guestfish-actions.pod:4210 ../src/guestfs-actions.pod:6411
15274 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15275 "C<label>. Filesystem labels are limited to 16 characters."
15279 #: ../fish/guestfish-actions.pod:4214
15281 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15282 "label on a filesystem."
15286 #: ../fish/guestfish-actions.pod:4217
15288 msgstr "set-e2uuid"
15291 #: ../fish/guestfish-actions.pod:4219
15294 " set-e2uuid device uuid\n"
15299 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6429
15301 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15302 "C<uuid>. The format of the UUID and alternatives such as C<clear>, "
15303 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15307 #: ../fish/guestfish-actions.pod:4226
15309 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15310 "UUID of a filesystem."
15314 #: ../fish/guestfish-actions.pod:4229
15315 msgid "set-memsize"
15316 msgstr "set-memsize"
15319 #: ../fish/guestfish-actions.pod:4231
15324 #: ../fish/guestfish-actions.pod:4233
15327 " set-memsize memsize\n"
15332 #: ../fish/guestfish-actions.pod:4235
15334 "This sets the memory size in megabytes allocated to the qemu subprocess. "
15335 "This only has any effect if called before L</launch>."
15339 #: ../fish/guestfish-actions.pod:4239 ../src/guestfs-actions.pod:6451
15341 "You can also change this by setting the environment variable "
15342 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15346 #: ../fish/guestfish-actions.pod:4246
15347 msgid "set-network"
15348 msgstr "set-network"
15351 #: ../fish/guestfish-actions.pod:4248
15356 #: ../fish/guestfish-actions.pod:4250
15359 " set-network true|false\n"
15362 " set-network true|false\n"
15366 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6468
15368 "If C<network> is true, then the network is enabled in the libguestfs "
15369 "appliance. The default is false."
15373 #: ../fish/guestfish-actions.pod:4255 ../src/guestfs-actions.pod:6471
15375 "This affects whether commands are able to access the network (see L<guestfs"
15376 "(3)/RUNNING COMMANDS>)."
15380 #: ../fish/guestfish-actions.pod:4258
15382 "You must call this before calling L</launch>, otherwise it has no effect."
15386 #: ../fish/guestfish-actions.pod:4261
15391 #: ../fish/guestfish-actions.pod:4265
15394 " set-path searchpath\n"
15399 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6487
15400 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15404 #: ../fish/guestfish-actions.pod:4269 ../src/guestfs-actions.pod:6489
15406 "The default is C<$libdir/guestfs> unless overridden by setting "
15407 "C<LIBGUESTFS_PATH> environment variable."
15411 #: ../fish/guestfish-actions.pod:4272 ../src/guestfs-actions.pod:6492
15412 msgid "Setting C<path> to C<NULL> restores the default path."
15416 #: ../fish/guestfish-actions.pod:4274
15421 #: ../fish/guestfish-actions.pod:4276
15426 #: ../fish/guestfish-actions.pod:4278
15429 " set-pgroup true|false\n"
15434 #: ../fish/guestfish-actions.pod:4280 ../src/guestfs-actions.pod:6504
15436 "If C<pgroup> is true, child processes are placed into their own process "
15441 #: ../fish/guestfish-actions.pod:4283 ../src/guestfs-actions.pod:6507
15443 "The practical upshot of this is that signals like C<SIGINT> (from users "
15444 "pressing C<^C>) won't be received by the child process."
15448 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6510
15450 "The default for this flag is false, because usually you want C<^C> to kill "
15455 #: ../fish/guestfish-actions.pod:4289
15460 #: ../fish/guestfish-actions.pod:4291
15465 #: ../fish/guestfish-actions.pod:4293
15475 #: ../fish/guestfish-actions.pod:4295 ../src/guestfs-actions.pod:6523
15476 msgid "Set the qemu binary that we will use."
15480 #: ../fish/guestfish-actions.pod:4297 ../src/guestfs-actions.pod:6525
15482 "The default is chosen when the library was compiled by the configure script."
15486 #: ../fish/guestfish-actions.pod:4300 ../src/guestfs-actions.pod:6528
15488 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15493 #: ../fish/guestfish-actions.pod:4303 ../src/guestfs-actions.pod:6531
15494 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15498 #: ../fish/guestfish-actions.pod:4305 ../src/guestfs-actions.pod:6533
15500 "Note that you should call this function as early as possible after creating "
15501 "the handle. This is because some pre-launch operations depend on testing "
15502 "qemu features (by running C<qemu -help>). If the qemu binary changes, we "
15503 "don't retest features, and so you might see inconsistent results. Using the "
15504 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15505 "the qemu binary at the same time as the handle is created."
15509 #: ../fish/guestfish-actions.pod:4313
15510 msgid "set-recovery-proc"
15511 msgstr "set-recovery-proc"
15514 #: ../fish/guestfish-actions.pod:4315
15515 msgid "recovery-proc"
15516 msgstr "recovery-proc"
15519 #: ../fish/guestfish-actions.pod:4317
15522 " set-recovery-proc true|false\n"
15525 " set-recovery-proc true|false\n"
15529 #: ../fish/guestfish-actions.pod:4319
15531 "If this is called with the parameter C<false> then L</launch> does not "
15532 "create a recovery process. The purpose of the recovery process is to stop "
15533 "runaway qemu processes in the case where the main program aborts abruptly."
15537 #: ../fish/guestfish-actions.pod:4324
15539 "This only has any effect if called before L</launch>, and the default is "
15544 #: ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:6559
15546 "About the only time when you would want to disable this is if the main "
15547 "process will fork itself into the background (\"daemonize\" itself). In "
15548 "this case the recovery process thinks that the main program has disappeared "
15549 "and so kills qemu, which is not very helpful."
15553 #: ../fish/guestfish-actions.pod:4333
15554 msgid "set-selinux"
15555 msgstr "set-selinux"
15558 #: ../fish/guestfish-actions.pod:4335
15563 #: ../fish/guestfish-actions.pod:4337
15566 " set-selinux true|false\n"
15569 " set-selinux true|false\n"
15573 #: ../fish/guestfish-actions.pod:4339 ../src/guestfs-actions.pod:6575
15575 "This sets the selinux flag that is passed to the appliance at boot time. "
15576 "The default is C<selinux=0> (disabled)."
15580 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6578
15582 "Note that if SELinux is enabled, it is always in Permissive mode "
15583 "(C<enforcing=0>)."
15587 #: ../fish/guestfish-actions.pod:4348
15592 #: ../fish/guestfish-actions.pod:4350
15597 #: ../fish/guestfish-actions.pod:4352
15605 #: ../fish/guestfish-actions.pod:4354 ../src/guestfs-actions.pod:6594
15607 "Change the number of virtual CPUs assigned to the appliance. The default is "
15608 "C<1>. Increasing this may improve performance, though often it has no "
15613 #: ../fish/guestfish-actions.pod:4358
15614 msgid "This function must be called before L</launch>."
15618 #: ../fish/guestfish-actions.pod:4360
15623 #: ../fish/guestfish-actions.pod:4362
15628 #: ../fish/guestfish-actions.pod:4364
15631 " set-trace true|false\n"
15634 " set-trace true|false\n"
15638 #: ../fish/guestfish-actions.pod:4366 ../src/guestfs-actions.pod:6610
15640 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15641 "return values are traced."
15645 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6613
15647 "If you want to trace C API calls into libguestfs (and other libraries) then "
15648 "possibly a better way is to use the external ltrace(1) command."
15652 #: ../fish/guestfish-actions.pod:4373 ../src/guestfs-actions.pod:6617
15654 "Command traces are disabled unless the environment variable "
15655 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15659 #: ../fish/guestfish-actions.pod:4376
15661 "Trace messages are normally sent to C<stderr>, unless you register a "
15662 "callback to send them somewhere else (see L</set-event-callback>)."
15666 #: ../fish/guestfish-actions.pod:4380
15667 msgid "set-verbose"
15668 msgstr "set-verbose"
15671 #: ../fish/guestfish-actions.pod:4382
15676 #: ../fish/guestfish-actions.pod:4384
15679 " set-verbose true|false\n"
15682 " set-verbose true|false\n"
15686 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6634
15687 msgid "If C<verbose> is true, this turns on verbose messages."
15691 #: ../fish/guestfish-actions.pod:4388 ../src/guestfs-actions.pod:6636
15693 "Verbose messages are disabled unless the environment variable "
15694 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15698 #: ../fish/guestfish-actions.pod:4391
15700 "Verbose messages are normally sent to C<stderr>, unless you register a "
15701 "callback to send them somewhere else (see L</set-event-callback>)."
15705 #: ../fish/guestfish-actions.pod:4395
15710 #: ../fish/guestfish-actions.pod:4397
15713 " setcon context\n"
15716 " setcon контекст\n"
15720 #: ../fish/guestfish-actions.pod:4399 ../src/guestfs-actions.pod:6653
15722 "This sets the SELinux security context of the daemon to the string "
15727 #: ../fish/guestfish-actions.pod:4402 ../src/guestfs-actions.pod:6656
15728 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15732 #: ../fish/guestfish-actions.pod:4404
15737 #: ../fish/guestfish-actions.pod:4406
15740 " setxattr xattr val vallen path\n"
15745 #: ../fish/guestfish-actions.pod:4408 ../src/guestfs-actions.pod:6671
15747 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15748 "the value C<val> (of length C<vallen>). The value is arbitrary 8 bit data."
15752 #: ../fish/guestfish-actions.pod:4412
15753 msgid "See also: L</lsetxattr>, L<attr(5)>."
15754 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
15757 #: ../fish/guestfish-actions.pod:4414
15762 #: ../fish/guestfish-actions.pod:4416
15765 " sfdisk device cyls heads sectors 'lines ...'\n"
15770 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6698
15772 "This is a direct interface to the L<sfdisk(8)> program for creating "
15773 "partitions on block devices."
15777 #: ../fish/guestfish-actions.pod:4421 ../src/guestfs-actions.pod:6701
15778 msgid "C<device> should be a block device, for example C</dev/sda>."
15782 #: ../fish/guestfish-actions.pod:4423 ../src/guestfs-actions.pod:6703
15784 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15785 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
15786 "H> and I<-S> parameters. If you pass C<0> for any of these, then the "
15787 "corresponding parameter is omitted. Usually for 'large' disks, you can just "
15788 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15789 "the kernel) cannot work out the right geometry and you will need to tell it."
15793 #: ../fish/guestfish-actions.pod:4431 ../src/guestfs-actions.pod:6711
15795 "C<lines> is a list of lines that we feed to C<sfdisk>. For more information "
15796 "refer to the L<sfdisk(8)> manpage."
15800 #: ../fish/guestfish-actions.pod:4434 ../src/guestfs-actions.pod:6714
15802 "To create a single partition occupying the whole disk, you would pass "
15803 "C<lines> as a single element list, when the single element being the string "
15808 #: ../fish/guestfish-actions.pod:4438
15809 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15810 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15813 #: ../fish/guestfish-actions.pod:4444 ../fish/guestfish-actions.pod:4467
15814 #: ../fish/guestfish-actions.pod:4489
15816 "I<This function is deprecated.> In new code, use the L</part_add> call "
15821 #: ../fish/guestfish-actions.pod:4451
15826 #: ../fish/guestfish-actions.pod:4453
15829 " sfdiskM device 'lines ...'\n"
15834 #: ../fish/guestfish-actions.pod:4455
15836 "This is a simplified interface to the L</sfdisk> command, where partition "
15837 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
15838 "you don't need to specify the cyls, heads and sectors parameters which were "
15839 "rarely if ever used anyway."
15843 #: ../fish/guestfish-actions.pod:4461
15844 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
15846 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
15849 #: ../fish/guestfish-actions.pod:4474
15854 #: ../fish/guestfish-actions.pod:4476
15857 " sfdisk-N device partnum cyls heads sectors line\n"
15862 #: ../fish/guestfish-actions.pod:4478 ../src/guestfs-actions.pod:6776
15864 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15865 "(note: C<n> counts from 1)."
15869 #: ../fish/guestfish-actions.pod:4481
15871 "For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
15872 "cyls/heads/sectors parameters."
15876 #: ../fish/guestfish-actions.pod:4484
15877 msgid "See also: L</part-add>"
15878 msgstr "Див. також L</part-add>"
15881 #: ../fish/guestfish-actions.pod:4496
15882 msgid "sfdisk-disk-geometry"
15883 msgstr "sfdisk-disk-geometry"
15886 #: ../fish/guestfish-actions.pod:4498
15889 " sfdisk-disk-geometry device\n"
15892 " sfdisk-disk-geometry пристрій\n"
15896 #: ../fish/guestfish-actions.pod:4500
15898 "This displays the disk geometry of C<device> read from the partition table. "
15899 "Especially in the case where the underlying block device has been resized, "
15900 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
15901 "kernel-geometry>)."
15905 #: ../fish/guestfish-actions.pod:4505 ../fish/guestfish-actions.pod:4514
15906 #: ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6818
15907 msgid "The result is in human-readable format, and not designed to be parsed."
15911 #: ../fish/guestfish-actions.pod:4508
15912 msgid "sfdisk-kernel-geometry"
15913 msgstr "sfdisk-kernel-geometry"
15916 #: ../fish/guestfish-actions.pod:4510
15919 " sfdisk-kernel-geometry device\n"
15922 " sfdisk-kernel-geometry пристрій\n"
15926 #: ../fish/guestfish-actions.pod:4512 ../src/guestfs-actions.pod:6816
15927 msgid "This displays the kernel's idea of the geometry of C<device>."
15931 #: ../fish/guestfish-actions.pod:4517
15936 #: ../fish/guestfish-actions.pod:4519
15939 " sfdisk-l device\n"
15942 " sfdisk-l пристрій\n"
15946 #: ../fish/guestfish-actions.pod:4521 ../src/guestfs-actions.pod:6839
15948 "This displays the partition table on C<device>, in the human-readable output "
15949 "of the L<sfdisk(8)> command. It is not intended to be parsed."
15953 #: ../fish/guestfish-actions.pod:4525
15954 msgid "See also: L</part-list>"
15955 msgstr "Див. також L</part-list>"
15958 #: ../fish/guestfish-actions.pod:4527
15960 "I<This function is deprecated.> In new code, use the L</part_list> call "
15965 #: ../fish/guestfish-actions.pod:4534
15970 #: ../fish/guestfish-actions.pod:4536
15980 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6856
15982 "This call runs a command from the guest filesystem via the guest's C</bin/"
15987 #: ../fish/guestfish-actions.pod:4541
15988 msgid "This is like L</command>, but passes the command to:"
15992 #: ../fish/guestfish-actions.pod:4543 ../src/guestfs-actions.pod:6861
15995 " /bin/sh -c \"command\"\n"
16000 #: ../fish/guestfish-actions.pod:4545 ../src/guestfs-actions.pod:6863
16002 "Depending on the guest's shell, this usually results in wildcards being "
16003 "expanded, shell expressions being interpolated and so on."
16007 #: ../fish/guestfish-actions.pod:4549
16008 msgid "All the provisos about L</command> apply to this call."
16012 #: ../fish/guestfish-actions.pod:4551
16017 #: ../fish/guestfish-actions.pod:4553
16020 " sh-lines command\n"
16023 " sh-lines команда\n"
16027 #: ../fish/guestfish-actions.pod:4555
16028 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16032 #: ../fish/guestfish-actions.pod:4558
16033 msgid "See also: L</command-lines>"
16034 msgstr "Див. також L</command-lines>"
16037 #: ../fish/guestfish-actions.pod:4560
16042 #: ../fish/guestfish-actions.pod:4562
16048 " sleep час_у_секундах\n"
16052 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6897
16053 msgid "Sleep for C<secs> seconds."
16057 #: ../fish/guestfish-actions.pod:4566
16062 #: ../fish/guestfish-actions.pod:4568
16072 #: ../fish/guestfish-actions.pod:4572 ../src/guestfs-actions.pod:6911
16073 msgid "This is the same as the C<stat(2)> system call."
16077 #: ../fish/guestfish-actions.pod:4574
16082 #: ../fish/guestfish-actions.pod:4576
16092 #: ../fish/guestfish-actions.pod:4578 ../src/guestfs-actions.pod:6925
16094 "Returns file system statistics for any mounted file system. C<path> should "
16095 "be a file or directory in the mounted file system (typically it is the mount "
16096 "point itself, but it doesn't need to be)."
16100 #: ../fish/guestfish-actions.pod:4582 ../src/guestfs-actions.pod:6929
16101 msgid "This is the same as the C<statvfs(2)> system call."
16105 #: ../fish/guestfish-actions.pod:4584
16110 #: ../fish/guestfish-actions.pod:4586
16120 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6943
16122 "This runs the L<strings(1)> command on a file and returns the list of "
16123 "printable strings found."
16127 #: ../fish/guestfish-actions.pod:4594
16132 #: ../fish/guestfish-actions.pod:4596
16135 " strings-e encoding path\n"
16138 " strings-e кодування шлях\n"
16142 #: ../fish/guestfish-actions.pod:4598
16144 "This is like the L</strings> command, but allows you to specify the encoding "
16145 "of strings that are looked for in the source file C<path>."
16149 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6966
16150 msgid "Allowed encodings are:"
16151 msgstr "Можливими кодуваннями є:"
16154 #: ../fish/guestfish-actions.pod:4606 ../src/guestfs-actions.pod:6970
16159 #: ../fish/guestfish-actions.pod:4608
16161 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16162 "ISO-8859-X (this is what L</strings> uses)."
16166 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6975
16171 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6977
16172 msgid "Single 8-bit-byte characters."
16173 msgstr "Окремі 8-бітові-байтові символи."
16176 #: ../fish/guestfish-actions.pod:4615 ../src/guestfs-actions.pod:6979
16181 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6981
16182 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16186 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:6984
16187 msgid "l (lower case letter L)"
16191 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6986
16193 "16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
16194 "examining binaries in Windows guests."
16198 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:6989
16203 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:6991
16204 msgid "32-bit big endian such as UCS-4BE."
16208 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:6993
16213 #: ../fish/guestfish-actions.pod:4631 ../src/guestfs-actions.pod:6995
16214 msgid "32-bit little endian such as UCS-4LE."
16218 #: ../fish/guestfish-actions.pod:4635 ../src/guestfs-actions.pod:6999
16219 msgid "The returned strings are transcoded to UTF-8."
16223 #: ../fish/guestfish-actions.pod:4640
16224 msgid "swapoff-device"
16225 msgstr "swapoff-device"
16228 #: ../fish/guestfish-actions.pod:4642
16231 " swapoff-device device\n"
16234 " swapoff-device пристрій\n"
16238 #: ../fish/guestfish-actions.pod:4644
16240 "This command disables the libguestfs appliance swap device or partition "
16241 "named C<device>. See L</swapon-device>."
16245 #: ../fish/guestfish-actions.pod:4648
16246 msgid "swapoff-file"
16247 msgstr "swapoff-file"
16250 #: ../fish/guestfish-actions.pod:4650
16253 " swapoff-file file\n"
16256 " swapoff-file файл\n"
16260 #: ../fish/guestfish-actions.pod:4652 ../src/guestfs-actions.pod:7030
16261 msgid "This command disables the libguestfs appliance swap on file."
16265 #: ../fish/guestfish-actions.pod:4654
16266 msgid "swapoff-label"
16267 msgstr "swapoff-label"
16270 #: ../fish/guestfish-actions.pod:4656
16273 " swapoff-label label\n"
16276 " swapoff-label мітка\n"
16280 #: ../fish/guestfish-actions.pod:4658 ../src/guestfs-actions.pod:7042
16282 "This command disables the libguestfs appliance swap on labeled swap "
16287 #: ../fish/guestfish-actions.pod:4661
16288 msgid "swapoff-uuid"
16289 msgstr "swapoff-uuid"
16292 #: ../fish/guestfish-actions.pod:4663
16295 " swapoff-uuid uuid\n"
16298 " swapoff-uuid uuid\n"
16302 #: ../fish/guestfish-actions.pod:4665 ../src/guestfs-actions.pod:7055
16304 "This command disables the libguestfs appliance swap partition with the given "
16309 #: ../fish/guestfish-actions.pod:4668
16310 msgid "swapon-device"
16311 msgstr "swapon-device"
16314 #: ../fish/guestfish-actions.pod:4670
16317 " swapon-device device\n"
16320 " swapon-device пристрій\n"
16324 #: ../fish/guestfish-actions.pod:4672
16326 "This command enables the libguestfs appliance to use the swap device or "
16327 "partition named C<device>. The increased memory is made available for all "
16328 "commands, for example those run using L</command> or L</sh>."
16332 #: ../fish/guestfish-actions.pod:4677 ../src/guestfs-actions.pod:7073
16334 "Note that you should not swap to existing guest swap partitions unless you "
16335 "know what you are doing. They may contain hibernation information, or other "
16336 "information that the guest doesn't want you to trash. You also risk leaking "
16337 "information about the host to the guest this way. Instead, attach a new "
16338 "host device to the guest and swap on that."
16342 #: ../fish/guestfish-actions.pod:4684
16343 msgid "swapon-file"
16344 msgstr "swapon-file"
16347 #: ../fish/guestfish-actions.pod:4686
16350 " swapon-file file\n"
16353 " swapon-file файл\n"
16357 #: ../fish/guestfish-actions.pod:4688
16359 "This command enables swap to a file. See L</swapon-device> for other notes."
16363 #: ../fish/guestfish-actions.pod:4691
16364 msgid "swapon-label"
16365 msgstr "swapon-label"
16368 #: ../fish/guestfish-actions.pod:4693
16371 " swapon-label label\n"
16374 " swapon-label мітка\n"
16378 #: ../fish/guestfish-actions.pod:4695
16380 "This command enables swap to a labeled swap partition. See L</swapon-"
16381 "device> for other notes."
16385 #: ../fish/guestfish-actions.pod:4698
16386 msgid "swapon-uuid"
16387 msgstr "swapon-uuid"
16390 #: ../fish/guestfish-actions.pod:4700
16393 " swapon-uuid uuid\n"
16396 " swapon-uuid uuid\n"
16400 #: ../fish/guestfish-actions.pod:4702
16402 "This command enables swap to a swap partition with the given UUID. See L</"
16403 "swapon-device> for other notes."
16407 #: ../fish/guestfish-actions.pod:4705
16412 #: ../fish/guestfish-actions.pod:4707
16422 #: ../fish/guestfish-actions.pod:4709 ../src/guestfs-actions.pod:7128
16424 "This syncs the disk, so that any writes are flushed through to the "
16425 "underlying disk image."
16429 #: ../fish/guestfish-actions.pod:4712 ../src/guestfs-actions.pod:7131
16431 "You should always call this if you have modified a disk image, before "
16432 "closing the handle."
16436 #: ../fish/guestfish-actions.pod:4715
16441 #: ../fish/guestfish-actions.pod:4717
16451 #: ../fish/guestfish-actions.pod:4719 ../src/guestfs-actions.pod:7144
16453 "This command returns up to the last 10 lines of a file as a list of strings."
16457 #: ../fish/guestfish-actions.pod:4725
16462 #: ../fish/guestfish-actions.pod:4727
16465 " tail-n nrlines path\n"
16470 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7163
16472 "If the parameter C<nrlines> is a positive number, this returns the last "
16473 "C<nrlines> lines of the file C<path>."
16477 #: ../fish/guestfish-actions.pod:4732 ../src/guestfs-actions.pod:7166
16479 "If the parameter C<nrlines> is a negative number, this returns lines from "
16480 "the file C<path>, starting with the C<-nrlines>th line."
16484 #: ../fish/guestfish-actions.pod:4740
16489 #: ../fish/guestfish-actions.pod:4742
16492 " tar-in (tarfile|-) directory\n"
16495 " tar-in (файл_tar|-) каталог\n"
16499 #: ../fish/guestfish-actions.pod:4744 ../src/guestfs-actions.pod:7187
16501 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16502 "tar file) into C<directory>."
16506 #: ../fish/guestfish-actions.pod:4747
16507 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16511 #: ../fish/guestfish-actions.pod:4752
16516 #: ../fish/guestfish-actions.pod:4754
16519 " tar-out directory (tarfile|-)\n"
16522 " tar-out каталог (файл tar|-)\n"
16526 #: ../fish/guestfish-actions.pod:4756 ../src/guestfs-actions.pod:7204
16528 "This command packs the contents of C<directory> and downloads it to local "
16533 #: ../fish/guestfish-actions.pod:4759
16534 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16538 #: ../fish/guestfish-actions.pod:4764
16543 #: ../fish/guestfish-actions.pod:4766
16546 " tgz-in (tarball|-) directory\n"
16549 " tgz-in (архів tar|-) каталог\n"
16553 #: ../fish/guestfish-actions.pod:4768 ../src/guestfs-actions.pod:7221
16555 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16556 "tar file) into C<directory>."
16560 #: ../fish/guestfish-actions.pod:4771
16561 msgid "To upload an uncompressed tarball, use L</tar-in>."
16565 #: ../fish/guestfish-actions.pod:4775
16570 #: ../fish/guestfish-actions.pod:4777
16573 " tgz-out directory (tarball|-)\n"
16576 " tgz-out каталог (архів tar|-)\n"
16580 #: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7237
16582 "This command packs the contents of C<directory> and downloads it to local "
16587 #: ../fish/guestfish-actions.pod:4782
16588 msgid "To download an uncompressed tarball, use L</tar-out>."
16592 #: ../fish/guestfish-actions.pod:4786
16597 #: ../fish/guestfish-actions.pod:4788
16607 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7252
16609 "Touch acts like the L<touch(1)> command. It can be used to update the "
16610 "timestamps on a file, or, if the file does not exist, to create a new zero-"
16615 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7256
16617 "This command only works on regular files, and will fail on other file types "
16618 "such as directories, symbolic links, block special etc."
16622 #: ../fish/guestfish-actions.pod:4797
16627 #: ../fish/guestfish-actions.pod:4799
16637 #: ../fish/guestfish-actions.pod:4801 ../src/guestfs-actions.pod:7269
16639 "This command truncates C<path> to a zero-length file. The file must exist "
16644 #: ../fish/guestfish-actions.pod:4804
16645 msgid "truncate-size"
16646 msgstr "truncate-size"
16649 #: ../fish/guestfish-actions.pod:4806
16652 " truncate-size path size\n"
16655 " truncate-size шлях розмір\n"
16659 #: ../fish/guestfish-actions.pod:4808 ../src/guestfs-actions.pod:7283
16661 "This command truncates C<path> to size C<size> bytes. The file must exist "
16666 #: ../fish/guestfish-actions.pod:4811
16668 "If the current file size is less than C<size> then the file is extended to "
16669 "the required size with zero bytes. This creates a sparse file (ie. disk "
16670 "blocks are not allocated for the file until you write to it). To create a "
16671 "non-sparse file of zeroes, use L</fallocate64> instead."
16675 #: ../fish/guestfish-actions.pod:4817
16680 #: ../fish/guestfish-actions.pod:4819
16683 " tune2fs-l device\n"
16686 " tune2fs-l пристрій\n"
16690 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7302
16692 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16697 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7305
16699 "It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage "
16700 "for more details. The list of fields returned isn't clearly defined, and "
16701 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16702 "and the filesystem itself."
16706 #: ../fish/guestfish-actions.pod:4829
16711 #: ../fish/guestfish-actions.pod:4831
16714 " txz-in (tarball|-) directory\n"
16717 " txz-in (архів tar|-) каталог\n"
16721 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7325
16723 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16724 "tar file) into C<directory>."
16728 #: ../fish/guestfish-actions.pod:4838
16733 #: ../fish/guestfish-actions.pod:4840
16736 " txz-out directory (tarball|-)\n"
16739 " txz-out каталог (архів tar|-)\n"
16743 #: ../fish/guestfish-actions.pod:4842 ../src/guestfs-actions.pod:7339
16745 "This command packs the contents of C<directory> and downloads it to local "
16746 "file C<tarball> (as an xz compressed tar archive)."
16750 #: ../fish/guestfish-actions.pod:4847
16755 #: ../fish/guestfish-actions.pod:4849
16765 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7352
16767 "This function sets the mask used for creating new files and device nodes to "
16772 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7355
16774 "Typical umask values would be C<022> which creates new files with "
16775 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16776 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16780 #: ../fish/guestfish-actions.pod:4859 ../src/guestfs-actions.pod:7360
16782 "The default umask is C<022>. This is important because it means that "
16783 "directories and device nodes will be created with C<0644> or C<0755> mode "
16784 "even if you specify C<0777>."
16788 #: ../fish/guestfish-actions.pod:4863
16789 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16790 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16793 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7367
16794 msgid "This call returns the previous umask."
16798 #: ../fish/guestfish-actions.pod:4868
16803 #: ../fish/guestfish-actions.pod:4870
16808 #: ../fish/guestfish-actions.pod:4872
16811 " umount pathordevice\n"
16814 " umount шлях_або_пристрій\n"
16818 #: ../fish/guestfish-actions.pod:4874 ../src/guestfs-actions.pod:7379
16820 "This unmounts the given filesystem. The filesystem may be specified either "
16821 "by its mountpoint (path) or the device which contains the filesystem."
16825 #: ../fish/guestfish-actions.pod:4878
16827 msgstr "umount-all"
16830 #: ../fish/guestfish-actions.pod:4880
16831 msgid "unmount-all"
16832 msgstr "unmount-all"
16835 #: ../fish/guestfish-actions.pod:4882
16845 #: ../fish/guestfish-actions.pod:4884 ../src/guestfs-actions.pod:7392
16846 msgid "This unmounts all mounted filesystems."
16850 #: ../fish/guestfish-actions.pod:4886 ../src/guestfs-actions.pod:7394
16851 msgid "Some internal mounts are not unmounted by this call."
16855 #: ../fish/guestfish-actions.pod:4888
16860 #: ../fish/guestfish-actions.pod:4890
16863 " upload (filename|-) remotefilename\n"
16866 " upload (назва_файла|-) назва_віддаленого_файла\n"
16870 #: ../fish/guestfish-actions.pod:4892 ../fish/guestfish-actions.pod:4905
16871 #: ../src/guestfs-actions.pod:7407 ../src/guestfs-actions.pod:7431
16872 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
16876 #: ../fish/guestfish-actions.pod:4897
16877 msgid "See also L</download>."
16878 msgstr "Див. також L</download>."
16881 #: ../fish/guestfish-actions.pod:4901
16882 msgid "upload-offset"
16883 msgstr "upload-offset"
16886 #: ../fish/guestfish-actions.pod:4903
16889 " upload-offset (filename|-) remotefilename offset\n"
16892 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
16896 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7434
16898 "C<remotefilename> is overwritten starting at the byte C<offset> specified. "
16899 "The intention is to overwrite parts of existing files or devices, although "
16900 "if a non-existant file is specified then it is created with a \"hole\" "
16901 "before C<offset>. The size of the data written is implicit in the size of "
16902 "the source C<filename>."
16906 #: ../fish/guestfish-actions.pod:4915
16908 "Note that there is no limit on the amount of data that can be uploaded with "
16909 "this call, unlike with L</pwrite>, and this call always writes the full "
16910 "amount unless an error occurs."
16914 #: ../fish/guestfish-actions.pod:4920
16915 msgid "See also L</upload>, L</pwrite>."
16916 msgstr "Див. також L</upload>, L</pwrite>."
16919 #: ../fish/guestfish-actions.pod:4924
16924 #: ../fish/guestfish-actions.pod:4926
16927 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
16932 #: ../fish/guestfish-actions.pod:4928 ../src/guestfs-actions.pod:7467
16933 msgid "This command sets the timestamps of a file with nanosecond precision."
16937 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7470
16939 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
16944 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7473
16946 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
16947 "nanoseconds from the epoch."
16951 #: ../fish/guestfish-actions.pod:4937 ../src/guestfs-actions.pod:7476
16953 "If the C<*nsecs> field contains the special value C<-1> then the "
16954 "corresponding timestamp is set to the current time. (The C<*secs> field is "
16955 "ignored in this case)."
16959 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7480
16961 "If the C<*nsecs> field contains the special value C<-2> then the "
16962 "corresponding timestamp is left unchanged. (The C<*secs> field is ignored "
16967 #: ../fish/guestfish-actions.pod:4945
16972 #: ../fish/guestfish-actions.pod:4947
16982 #: ../fish/guestfish-actions.pod:4949 ../src/guestfs-actions.pod:7493
16984 "Return the libguestfs version number that the program is linked against."
16988 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7496
16990 "Note that because of dynamic linking this is not necessarily the version of "
16991 "libguestfs that you compiled against. You can compile the program, and then "
16992 "at runtime dynamically link against a completely different C<libguestfs.so> "
16997 #: ../fish/guestfish-actions.pod:4957 ../src/guestfs-actions.pod:7501
16999 "This call was added in version C<1.0.58>. In previous versions of "
17000 "libguestfs there was no way to get the version number. From C code you can "
17001 "use dynamic linker functions to find out if this symbol exists (if it "
17002 "doesn't, then it's an earlier version)."
17006 #: ../fish/guestfish-actions.pod:4963 ../src/guestfs-actions.pod:7507
17008 "The call returns a structure with four elements. The first three (C<major>, "
17009 "C<minor> and C<release>) are numbers and correspond to the usual version "
17010 "triplet. The fourth element (C<extra>) is a string and is normally empty, "
17011 "but may be used for distro-specific information."
17015 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7513
17017 "To construct the original version string: C<$major.$minor.$release$extra>"
17021 #: ../fish/guestfish-actions.pod:4972 ../src/guestfs-actions.pod:7516
17022 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17023 msgstr "Див також: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17026 #: ../fish/guestfish-actions.pod:4974
17028 "I<Note:> Don't use this call to test for availability of features. In "
17029 "enterprise distributions we backport features from later versions into "
17030 "earlier versions, making this an unreliable way to test for features. Use "
17031 "L</available> instead."
17035 #: ../fish/guestfish-actions.pod:4980
17040 #: ../fish/guestfish-actions.pod:4982
17043 " vfs-label device\n"
17046 " vfs-label пристрій\n"
17050 #: ../fish/guestfish-actions.pod:4984 ../src/guestfs-actions.pod:7536
17051 msgid "This returns the filesystem label of the filesystem on C<device>."
17055 #: ../fish/guestfish-actions.pod:4987 ../src/guestfs-actions.pod:7539
17056 msgid "If the filesystem is unlabeled, this returns the empty string."
17060 #: ../fish/guestfish-actions.pod:4989
17061 msgid "To find a filesystem from the label, use L</findfs-label>."
17065 #: ../fish/guestfish-actions.pod:4991
17070 #: ../fish/guestfish-actions.pod:4993
17073 " vfs-type device\n"
17076 " vfs-type пристрій\n"
17080 #: ../fish/guestfish-actions.pod:4995 ../src/guestfs-actions.pod:7554
17082 "This command gets the filesystem type corresponding to the filesystem on "
17087 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7557
17089 "For most filesystems, the result is the name of the Linux VFS module which "
17090 "would be used to mount this filesystem if you mounted it without specifying "
17091 "the filesystem type. For example a string such as C<ext3> or C<ntfs>."
17095 #: ../fish/guestfish-actions.pod:5003
17100 #: ../fish/guestfish-actions.pod:5005
17103 " vfs-uuid device\n"
17106 " vfs-uuid пристрій\n"
17110 #: ../fish/guestfish-actions.pod:5007 ../src/guestfs-actions.pod:7573
17111 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17115 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7576
17116 msgid "If the filesystem does not have a UUID, this returns the empty string."
17120 #: ../fish/guestfish-actions.pod:5012
17121 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17125 #: ../fish/guestfish-actions.pod:5014
17126 msgid "vg-activate"
17127 msgstr "vg-activate"
17130 #: ../fish/guestfish-actions.pod:5016
17133 " vg-activate true|false 'volgroups ...'\n"
17138 #: ../fish/guestfish-actions.pod:5018 ../src/guestfs-actions.pod:7592
17140 "This command activates or (if C<activate> is false) deactivates all logical "
17141 "volumes in the listed volume groups C<volgroups>."
17145 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7595
17146 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17150 #: ../fish/guestfish-actions.pod:5023 ../src/guestfs-actions.pod:7597
17152 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17153 "activated or deactivated."
17157 #: ../fish/guestfish-actions.pod:5026
17158 msgid "vg-activate-all"
17159 msgstr "vg-activate-all"
17162 #: ../fish/guestfish-actions.pod:5028
17165 " vg-activate-all true|false\n"
17168 " vg-activate-all true|false\n"
17172 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7610
17174 "This command activates or (if C<activate> is false) deactivates all logical "
17175 "volumes in all volume groups."
17179 #: ../fish/guestfish-actions.pod:5033 ../src/guestfs-actions.pod:7613
17180 msgid "This command is the same as running C<vgchange -a y|n>"
17184 #: ../fish/guestfish-actions.pod:5035
17189 #: ../fish/guestfish-actions.pod:5037
17192 " vgcreate volgroup 'physvols ...'\n"
17197 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7626
17199 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17200 "of physical volumes C<physvols>."
17204 #: ../fish/guestfish-actions.pod:5042
17209 #: ../fish/guestfish-actions.pod:5044
17212 " vglvuuids vgname\n"
17217 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7639
17219 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17220 "volumes created in this volume group."
17224 #: ../fish/guestfish-actions.pod:5049
17226 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17227 "logical volumes and volume groups."
17231 #: ../fish/guestfish-actions.pod:5052
17232 msgid "See also L</vgpvuuids>."
17233 msgstr "Див. також L</vgpvuuids>."
17236 #: ../fish/guestfish-actions.pod:5054
17241 #: ../fish/guestfish-actions.pod:5056
17244 " vgpvuuids vgname\n"
17249 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7659
17251 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17252 "volumes that this volume group resides on."
17256 #: ../fish/guestfish-actions.pod:5061
17258 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17259 "physical volumes and volume groups."
17263 #: ../fish/guestfish-actions.pod:5064
17264 msgid "See also L</vglvuuids>."
17265 msgstr "Див. також L</vglvuuids>."
17268 #: ../fish/guestfish-actions.pod:5066
17273 #: ../fish/guestfish-actions.pod:5068
17276 " vgremove vgname\n"
17281 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7679
17282 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17286 #: ../fish/guestfish-actions.pod:5072 ../src/guestfs-actions.pod:7681
17288 "This also forcibly removes all logical volumes in the volume group (if any)."
17292 #: ../fish/guestfish-actions.pod:5075
17297 #: ../fish/guestfish-actions.pod:5077
17300 " vgrename volgroup newvolgroup\n"
17305 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7695
17306 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17310 #: ../fish/guestfish-actions.pod:5081
17315 #: ../fish/guestfish-actions.pod:5083
17325 #: ../fish/guestfish-actions.pod:5085 ../src/guestfs-actions.pod:7706
17327 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
17332 #: ../fish/guestfish-actions.pod:5088 ../src/guestfs-actions.pod:7709
17334 "This returns a list of just the volume group names that were detected (eg. "
17339 #: ../fish/guestfish-actions.pod:5091
17340 msgid "See also L</vgs-full>."
17341 msgstr "Див. також L</vgs-full>."
17344 #: ../fish/guestfish-actions.pod:5093
17349 #: ../fish/guestfish-actions.pod:5095
17359 #: ../fish/guestfish-actions.pod:5097 ../src/guestfs-actions.pod:7725
17361 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
17362 "> command. The \"full\" version includes all fields."
17366 #: ../fish/guestfish-actions.pod:5100
17371 #: ../fish/guestfish-actions.pod:5102
17381 #: ../fish/guestfish-actions.pod:5104 ../src/guestfs-actions.pod:7739
17383 "This rescans all block devices and rebuilds the list of LVM physical "
17384 "volumes, volume groups and logical volumes."
17388 #: ../fish/guestfish-actions.pod:5107
17393 #: ../fish/guestfish-actions.pod:5109
17401 #: ../fish/guestfish-actions.pod:5111 ../src/guestfs-actions.pod:7752
17402 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17406 #: ../fish/guestfish-actions.pod:5113
17411 #: ../fish/guestfish-actions.pod:5115
17421 #: ../fish/guestfish-actions.pod:5117 ../src/guestfs-actions.pod:7792
17423 "This command counts the characters in a file, using the C<wc -c> external "
17428 #: ../fish/guestfish-actions.pod:5120
17433 #: ../fish/guestfish-actions.pod:5122
17443 #: ../fish/guestfish-actions.pod:5124 ../src/guestfs-actions.pod:7805
17445 "This command counts the lines in a file, using the C<wc -l> external command."
17449 #: ../fish/guestfish-actions.pod:5127
17454 #: ../fish/guestfish-actions.pod:5129
17464 #: ../fish/guestfish-actions.pod:5131 ../src/guestfs-actions.pod:7818
17466 "This command counts the words in a file, using the C<wc -w> external command."
17470 #: ../fish/guestfish-actions.pod:5134
17475 #: ../fish/guestfish-actions.pod:5136
17478 " write path content\n"
17481 " write шлях дані\n"
17485 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7833
17487 "This call creates a file called C<path>. The content of the file is the "
17488 "string C<content> (which can contain any 8 bit data)."
17492 #: ../fish/guestfish-actions.pod:5141
17493 msgid "See also L</write-append>."
17494 msgstr "Див. також L</write-append>."
17497 #: ../fish/guestfish-actions.pod:5146
17498 msgid "write-append"
17502 #: ../fish/guestfish-actions.pod:5148
17505 " write-append path content\n"
17510 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7853
17512 "This call appends C<content> to the end of file C<path>. If C<path> does "
17513 "not exist, then a new file is created."
17517 #: ../fish/guestfish-actions.pod:5153
17518 msgid "See also L</write>."
17519 msgstr "Див. також L</write>."
17522 #: ../fish/guestfish-actions.pod:5158
17524 msgstr "write-file"
17527 #: ../fish/guestfish-actions.pod:5160
17530 " write-file path content size\n"
17535 #: ../fish/guestfish-actions.pod:5162 ../src/guestfs-actions.pod:7880
17537 "This call creates a file called C<path>. The contents of the file is the "
17538 "string C<content> (which can contain any 8 bit data), with length C<size>."
17542 #: ../fish/guestfish-actions.pod:5166 ../src/guestfs-actions.pod:7884
17544 "As a special case, if C<size> is C<0> then the length is calculated using "
17545 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17549 #: ../fish/guestfish-actions.pod:5170 ../src/guestfs-actions.pod:7888
17551 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17552 "I<not> work, even if the length is specified."
17556 #: ../fish/guestfish-actions.pod:5176
17558 "I<This function is deprecated.> In new code, use the L</write> call instead."
17562 #: ../fish/guestfish-actions.pod:5183
17567 #: ../fish/guestfish-actions.pod:5185
17570 " zegrep regex path\n"
17573 " zegrep формальний_вираз шлях\n"
17577 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7905
17579 "This calls the external C<zegrep> program and returns the matching lines."
17583 #: ../fish/guestfish-actions.pod:5193
17588 #: ../fish/guestfish-actions.pod:5195
17591 " zegrepi regex path\n"
17596 #: ../fish/guestfish-actions.pod:5197 ../src/guestfs-actions.pod:7924
17598 "This calls the external C<zegrep -i> program and returns the matching lines."
17602 #: ../fish/guestfish-actions.pod:5203
17607 #: ../fish/guestfish-actions.pod:5205
17617 #: ../fish/guestfish-actions.pod:5207 ../src/guestfs-actions.pod:7942
17618 msgid "This command writes zeroes over the first few blocks of C<device>."
17622 #: ../fish/guestfish-actions.pod:5209 ../src/guestfs-actions.pod:7944
17624 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17625 "securely wipe the device). It should be sufficient to remove any partition "
17626 "tables, filesystem superblocks and so on."
17630 #: ../fish/guestfish-actions.pod:5213 ../fish/guestfish-actions.pod:5228
17631 #: ../src/guestfs-actions.pod:7948 ../src/guestfs-actions.pod:7974
17633 "If blocks are already zero, then this command avoids writing zeroes. This "
17634 "prevents the underlying device from becoming non-sparse or growing "
17639 #: ../fish/guestfish-actions.pod:5217
17640 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17644 #: ../fish/guestfish-actions.pod:5220
17645 msgid "zero-device"
17646 msgstr "zero-device"
17649 #: ../fish/guestfish-actions.pod:5222
17652 " zero-device device\n"
17655 " zero-device пристрій\n"
17659 #: ../fish/guestfish-actions.pod:5224
17661 "This command writes zeroes over the entire C<device>. Compare with L</zero> "
17662 "which just zeroes the first few blocks of a device."
17666 #: ../fish/guestfish-actions.pod:5235
17671 #: ../fish/guestfish-actions.pod:5237
17674 " zerofree device\n"
17677 " zerofree пристрій\n"
17681 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:7996
17683 "This runs the I<zerofree> program on C<device>. This program claims to zero "
17684 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17685 "possible to compress the filesystem more effectively."
17689 #: ../fish/guestfish-actions.pod:5244 ../src/guestfs-actions.pod:8001
17690 msgid "You should B<not> run this program if the filesystem is mounted."
17694 #: ../fish/guestfish-actions.pod:5247 ../src/guestfs-actions.pod:8004
17696 "It is possible that using this program can damage the filesystem or data on "
17701 #: ../fish/guestfish-actions.pod:5250
17706 #: ../fish/guestfish-actions.pod:5252
17709 " zfgrep pattern path\n"
17712 " zfgrep шаблон шлях\n"
17716 #: ../fish/guestfish-actions.pod:5254 ../src/guestfs-actions.pod:8018
17718 "This calls the external C<zfgrep> program and returns the matching lines."
17722 #: ../fish/guestfish-actions.pod:5260
17727 #: ../fish/guestfish-actions.pod:5262
17730 " zfgrepi pattern path\n"
17733 " zfgrepi шаблон шлях\n"
17737 #: ../fish/guestfish-actions.pod:5264 ../src/guestfs-actions.pod:8037
17739 "This calls the external C<zfgrep -i> program and returns the matching lines."
17743 #: ../fish/guestfish-actions.pod:5270
17748 #: ../fish/guestfish-actions.pod:5272
17751 " zfile meth path\n"
17754 " zfile метод шлях\n"
17758 #: ../fish/guestfish-actions.pod:5274 ../src/guestfs-actions.pod:8063
17760 "This command runs C<file> after first decompressing C<path> using C<method>."
17764 #: ../fish/guestfish-actions.pod:5277 ../src/guestfs-actions.pod:8066
17765 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17769 #: ../fish/guestfish-actions.pod:5279
17771 "Since 1.0.63, use L</file> instead which can now process compressed files."
17775 #: ../fish/guestfish-actions.pod:5282
17777 "I<This function is deprecated.> In new code, use the L</file> call instead."
17781 #: ../fish/guestfish-actions.pod:5289
17786 #: ../fish/guestfish-actions.pod:5291
17789 " zgrep regex path\n"
17792 " zgrep формальний_вираз шлях\n"
17796 #: ../fish/guestfish-actions.pod:5293 ../src/guestfs-actions.pod:8083
17798 "This calls the external C<zgrep> program and returns the matching lines."
17802 #: ../fish/guestfish-actions.pod:5299
17807 #: ../fish/guestfish-actions.pod:5301
17810 " zgrepi regex path\n"
17813 " zgrepi формальний_вираз шлях\n"
17817 #: ../fish/guestfish-actions.pod:5303 ../src/guestfs-actions.pod:8102
17819 "This calls the external C<zgrep -i> program and returns the matching lines."
17823 #: ../fish/guestfish-commands.pod:1
17828 #: ../fish/guestfish-commands.pod:3
17833 #: ../fish/guestfish-commands.pod:5
17836 " alloc filename size\n"
17841 #: ../fish/guestfish-commands.pod:7
17843 "This creates an empty (zeroed) file of the given size, and then adds so it "
17844 "can be further examined."
17848 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
17849 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
17853 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
17854 msgid "Size can be specified using standard suffixes, eg. C<1M>."
17858 #: ../fish/guestfish-commands.pod:14
17860 "To create a sparse file, use L</sparse> instead. To create a prepared disk "
17861 "image, see L</PREPARED DISK IMAGES>."
17865 #: ../fish/guestfish-commands.pod:17
17870 #: ../fish/guestfish-commands.pod:19
17873 " copy-in local [local ...] /remotedir\n"
17878 #: ../fish/guestfish-commands.pod:21
17880 "C<copy-in> copies local files or directories recursively into the disk "
17881 "image, placing them in the directory called C</remotedir> (which must "
17882 "exist). This guestfish meta-command turns into a sequence of L</tar-in> and "
17883 "other commands as necessary."
17887 #: ../fish/guestfish-commands.pod:26
17889 "Multiple local files and directories can be specified, but the last "
17890 "parameter must always be a remote directory. Wildcards cannot be used."
17894 #: ../fish/guestfish-commands.pod:30
17899 #: ../fish/guestfish-commands.pod:32
17902 " copy-out remote [remote ...] localdir\n"
17907 #: ../fish/guestfish-commands.pod:34
17909 "C<copy-out> copies remote files or directories recursively out of the disk "
17910 "image, placing them on the host disk in a local directory called C<localdir> "
17911 "(which must exist). This guestfish meta-command turns into a sequence of L</"
17912 "download>, L</tar-out> and other commands as necessary."
17916 #: ../fish/guestfish-commands.pod:40
17918 "Multiple remote files and directories can be specified, but the last "
17919 "parameter must always be a local directory. To download to the current "
17920 "directory, use C<.> as in:"
17924 #: ../fish/guestfish-commands.pod:44
17927 " copy-out /home .\n"
17930 " copy-out /home .\n"
17934 #: ../fish/guestfish-commands.pod:46
17936 "Wildcards cannot be used in the ordinary command, but you can use them with "
17937 "the help of L</glob> like this:"
17941 #: ../fish/guestfish-commands.pod:49
17944 " glob copy-out /home/* .\n"
17947 " glob copy-out /home/* .\n"
17951 #: ../fish/guestfish-commands.pod:51
17956 #: ../fish/guestfish-commands.pod:53
17959 " display filename\n"
17964 #: ../fish/guestfish-commands.pod:55
17966 "Use C<display> (a graphical display program) to display an image file. It "
17967 "downloads the file, and runs C<display> on it."
17971 #: ../fish/guestfish-commands.pod:58
17973 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
17974 "environment variable. For example to use the GNOME display program:"
17978 #: ../fish/guestfish-commands.pod:61
17981 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
17986 #: ../fish/guestfish-commands.pod:63
17987 msgid "See also L<display(1)>."
17988 msgstr "Див. також L<display(1)>."
17991 #: ../fish/guestfish-commands.pod:65
17996 #: ../fish/guestfish-commands.pod:67
17999 " echo [params ...]\n"
18002 " echo [параметри...]\n"
18006 #: ../fish/guestfish-commands.pod:69
18007 msgid "This echos the parameters to the terminal."
18011 #: ../fish/guestfish-commands.pod:71
18016 #: ../fish/guestfish-commands.pod:73
18021 #: ../fish/guestfish-commands.pod:75
18026 #: ../fish/guestfish-commands.pod:77
18032 " edit назва_файла\n"
18036 #: ../fish/guestfish-commands.pod:79
18038 "This is used to edit a file. It downloads the file, edits it locally using "
18039 "your editor, then uploads the result."
18043 #: ../fish/guestfish-commands.pod:82
18045 "The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
18046 "or C<emacs> you will get those corresponding editors."
18050 #: ../fish/guestfish-commands.pod:86
18055 #: ../fish/guestfish-commands.pod:88
18058 " glob command args...\n"
18061 " glob команда параметри...\n"
18065 #: ../fish/guestfish-commands.pod:90
18067 "Expand wildcards in any paths in the args list, and run C<command> "
18068 "repeatedly on each matching path."
18072 #: ../fish/guestfish-commands.pod:93
18073 msgid "See L</WILDCARDS AND GLOBBING>."
18074 msgstr "Див. L</WILDCARDS AND GLOBBING>."
18077 #: ../fish/guestfish-commands.pod:95
18082 #: ../fish/guestfish-commands.pod:97
18085 " hexedit <filename|device>\n"
18086 " hexedit <filename|device> <max>\n"
18087 " hexedit <filename|device> <start> <max>\n"
18092 #: ../fish/guestfish-commands.pod:101
18094 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18099 #: ../fish/guestfish-commands.pod:104
18101 "This command works by downloading potentially the whole file or device, "
18102 "editing it locally, then uploading it. If the file or device is large, you "
18103 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18104 "C<max> parameters. C<start> and C<max> are specified in bytes, with the "
18105 "usual modifiers allowed such as C<1M> (1 megabyte)."
18109 #: ../fish/guestfish-commands.pod:111
18110 msgid "For example to edit the first few sectors of a disk you might do:"
18114 #: ../fish/guestfish-commands.pod:114
18117 " hexedit /dev/sda 1M\n"
18120 " hexedit /dev/sda 1M\n"
18124 #: ../fish/guestfish-commands.pod:116
18126 "which would allow you to edit anywhere within the first megabyte of the disk."
18130 #: ../fish/guestfish-commands.pod:119
18131 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18135 #: ../fish/guestfish-commands.pod:121
18138 " hexedit /dev/sda1 0x400 0x400\n"
18141 " hexedit /dev/sda1 0x400 0x400\n"
18145 #: ../fish/guestfish-commands.pod:123
18146 msgid "(assuming the superblock is in the standard location)."
18150 #: ../fish/guestfish-commands.pod:125
18152 "This command requires the external L<hexedit(1)> program. You can specify "
18153 "another program to use by setting the C<HEXEDITOR> environment variable."
18157 #: ../fish/guestfish-commands.pod:129
18158 msgid "See also L</hexdump>."
18159 msgstr "Див. також L</hexdump>."
18162 #: ../fish/guestfish-commands.pod:131
18167 #: ../fish/guestfish-commands.pod:133
18175 #: ../fish/guestfish-commands.pod:135
18177 "Change the local directory, ie. the current directory of guestfish itself."
18181 #: ../fish/guestfish-commands.pod:138
18182 msgid "Note that C<!cd> won't do what you might expect."
18186 #: ../fish/guestfish-commands.pod:140
18191 #: ../fish/guestfish-commands.pod:142
18196 #: ../fish/guestfish-commands.pod:144
18206 #: ../fish/guestfish-commands.pod:146
18207 msgid "Opens the manual page for guestfish."
18211 #: ../fish/guestfish-commands.pod:148
18216 #: ../fish/guestfish-commands.pod:150
18221 #: ../fish/guestfish-commands.pod:152
18229 #: ../fish/guestfish-commands.pod:154
18237 #: ../fish/guestfish-commands.pod:156
18238 msgid "This is used to view a file."
18242 #: ../fish/guestfish-commands.pod:158
18244 "The default viewer is C<$PAGER>. However if you use the alternate command "
18245 "C<less> you will get the C<less> command specifically."
18249 #: ../fish/guestfish-commands.pod:161
18254 #: ../fish/guestfish-commands.pod:163
18262 #: ../fish/guestfish-commands.pod:165
18264 "Close and reopen the libguestfs handle. It is not necessary to use this "
18265 "normally, because the handle is closed properly when guestfish exits. "
18266 "However this is occasionally useful for testing."
18270 #: ../fish/guestfish-commands.pod:169
18275 #: ../fish/guestfish-commands.pod:171
18278 " setenv VAR value\n"
18283 #: ../fish/guestfish-commands.pod:173
18284 msgid "Set the environment variable C<VAR> to the string C<value>."
18288 #: ../fish/guestfish-commands.pod:175
18290 "To print the value of an environment variable use a shell command such as:"
18294 #: ../fish/guestfish-commands.pod:178
18302 #: ../fish/guestfish-commands.pod:180
18307 #: ../fish/guestfish-commands.pod:182
18310 " sparse filename size\n"
18315 #: ../fish/guestfish-commands.pod:184
18317 "This creates an empty sparse file of the given size, and then adds so it can "
18318 "be further examined."
18322 #: ../fish/guestfish-commands.pod:187
18324 "In all respects it works the same as the L</alloc> command, except that the "
18325 "image file is allocated sparsely, which means that disk blocks are not "
18326 "assigned to the file until they are needed. Sparse disk files only use "
18327 "space when written to, but they are slower and there is a danger you could "
18328 "run out of real disk space during a write operation."
18332 #: ../fish/guestfish-commands.pod:197
18337 #: ../fish/guestfish-commands.pod:199
18347 #: ../fish/guestfish-commands.pod:201
18349 "This command returns a list of the optional groups known to the daemon, and "
18350 "indicates which ones are supported by this build of the libguestfs appliance."
18354 #: ../fish/guestfish-commands.pod:205
18355 msgid "See also L<guestfs(3)/AVAILABILITY>."
18356 msgstr "Див. також L<guestfs(3)/AVAILABILITY>."
18359 #: ../fish/guestfish-commands.pod:207
18364 #: ../fish/guestfish-commands.pod:209
18367 " time command args...\n"
18372 #: ../fish/guestfish-commands.pod:211
18374 "Run the command as usual, but print the elapsed time afterwards. This can "
18375 "be useful for benchmarking operations."
18379 #: ../fish/guestfish-commands.pod:214
18384 #: ../fish/guestfish-commands.pod:216
18392 #: ../fish/guestfish-commands.pod:218
18393 msgid "Remove C<VAR> from the environment."
18397 #: ../fish/guestfish.pod:5
18398 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18402 #: ../fish/guestfish.pod:9
18405 " guestfish [--options] [commands]\n"
18410 #: ../fish/guestfish.pod:11
18418 #: ../fish/guestfish.pod:13
18421 " guestfish [--ro|--rw] -a disk.img\n"
18426 #: ../fish/guestfish.pod:15
18429 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18434 #: ../fish/guestfish.pod:17
18437 " guestfish -d libvirt-domain\n"
18442 #: ../fish/guestfish.pod:19
18445 " guestfish [--ro|--rw] -a disk.img -i\n"
18450 #: ../fish/guestfish.pod:21
18453 " guestfish -d libvirt-domain -i\n"
18458 #: ../fish/guestfish.pod:25
18460 "Using guestfish in read/write mode on live virtual machines can be "
18461 "dangerous, potentially causing disk corruption. Use the I<--ro> (read-only) "
18462 "option to use guestfish safely if the disk image or virtual machine might be "
18467 #: ../fish/guestfish.pod:32
18469 "Guestfish is a shell and command-line tool for examining and modifying "
18470 "virtual machine filesystems. It uses libguestfs and exposes all of the "
18471 "functionality of the guestfs API, see L<guestfs(3)>."
18475 #: ../fish/guestfish.pod:36
18477 "Guestfish gives you structured access to the libguestfs API, from shell "
18478 "scripts or the command line or interactively. If you want to rescue a "
18479 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18484 #: ../fish/guestfish.pod:43
18485 msgid "As an interactive shell"
18489 #: ../fish/guestfish.pod:45
18497 #: ../fish/guestfish.pod:47
18500 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18501 " editing virtual machine filesystems.\n"
18506 #: ../fish/guestfish.pod:50
18509 " Type: 'help' for a list of commands\n"
18510 " 'man' to read the manual\n"
18511 " 'quit' to quit the shell\n"
18516 #: ../fish/guestfish.pod:54
18519 " ><fs> add-ro disk.img\n"
18521 " ><fs> list-filesystems\n"
18522 " /dev/sda1: ext4\n"
18523 " /dev/vg_guest/lv_root: ext4\n"
18524 " /dev/vg_guest/lv_swap: swap\n"
18525 " ><fs> mount /dev/vg_guest/lv_root /\n"
18526 " ><fs> cat /etc/fstab\n"
18528 " # Created by anaconda\n"
18535 #: ../fish/guestfish.pod:67
18536 msgid "From shell scripts"
18540 #: ../fish/guestfish.pod:69
18541 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18545 #: ../fish/guestfish.pod:71
18548 " guestfish <<_EOF_\n"
18551 " mount /dev/vg_guest/lv_root /\n"
18552 " write /etc/motd \"Welcome, new users\"\n"
18558 #: ../fish/guestfish.pod:78
18559 msgid "List the LVM logical volumes in a disk image:"
18563 #: ../fish/guestfish.pod:80
18566 " guestfish -a disk.img --ro <<_EOF_\n"
18574 #: ../fish/guestfish.pod:85
18575 msgid "List all the filesystems in a disk image:"
18579 #: ../fish/guestfish.pod:87
18582 " guestfish -a disk.img --ro <<_EOF_\n"
18584 " list-filesystems\n"
18590 #: ../fish/guestfish.pod:92
18591 msgid "On one command line"
18595 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18596 msgid "Update C</etc/resolv.conf> in a guest:"
18600 #: ../fish/guestfish.pod:96
18604 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18605 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18610 #: ../fish/guestfish.pod:100
18611 msgid "Edit C</boot/grub/grub.conf> interactively:"
18615 #: ../fish/guestfish.pod:102
18618 " guestfish --rw --add disk.img \\\n"
18619 " --mount /dev/vg_guest/lv_root \\\n"
18620 " --mount /dev/sda1:/boot \\\n"
18621 " edit /boot/grub/grub.conf\n"
18626 #: ../fish/guestfish.pod:107
18627 msgid "Mount disks automatically"
18631 #: ../fish/guestfish.pod:109
18633 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
18637 #: ../fish/guestfish.pod:112
18640 " guestfish --ro -a disk.img -i cat /etc/group\n"
18645 #: ../fish/guestfish.pod:114
18648 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18653 #: ../fish/guestfish.pod:116
18654 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18658 #: ../fish/guestfish.pod:118
18661 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18666 #: ../fish/guestfish.pod:120
18667 msgid "As a script interpreter"
18671 #: ../fish/guestfish.pod:122
18672 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18676 #: ../fish/guestfish.pod:124
18679 " #!/usr/bin/guestfish -f\n"
18680 " sparse test1.img 100M\n"
18682 " part-disk /dev/sda mbr\n"
18683 " mkfs ext2 /dev/sda1\n"
18688 #: ../fish/guestfish.pod:130
18689 msgid "Start with a prepared disk"
18693 #: ../fish/guestfish.pod:132
18695 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18696 "single ext2-formatted partition:"
18700 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2228
18703 " guestfish -N fs\n"
18708 #: ../fish/guestfish.pod:137
18709 msgid "To list what is available do:"
18713 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18716 " guestfish -N help | less\n"
18721 #: ../fish/guestfish.pod:141
18722 msgid "Remote control"
18723 msgstr "Дистанційне керування"
18726 #: ../fish/guestfish.pod:143
18729 " eval \"`guestfish --listen`\"\n"
18730 " guestfish --remote add-ro disk.img\n"
18731 " guestfish --remote run\n"
18732 " guestfish --remote lvs\n"
18735 " eval \"`guestfish --listen`\"\n"
18736 " guestfish --remote add-ro disk.img\n"
18737 " guestfish --remote run\n"
18738 " guestfish --remote lvs\n"
18742 #: ../fish/guestfish.pod:154
18743 msgid "Displays general help on options."
18747 #: ../fish/guestfish.pod:158
18748 msgid "B<--cmd-help>"
18749 msgstr "B<--cmd-help>"
18752 #: ../fish/guestfish.pod:160
18753 msgid "Lists all available guestfish commands."
18757 #: ../fish/guestfish.pod:162
18759 msgstr "B<-h команда>"
18762 #: ../fish/guestfish.pod:164
18763 msgid "B<--cmd-help cmd>"
18764 msgstr "B<--cmd-help команда>"
18767 #: ../fish/guestfish.pod:166
18768 msgid "Displays detailed help on a single command C<cmd>."
18772 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
18773 msgid "B<-a image>"
18774 msgstr "B<-a образ>"
18777 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
18778 msgid "B<--add image>"
18779 msgstr "B<--add образ>"
18782 #: ../fish/guestfish.pod:172
18783 msgid "Add a block device or virtual machine image to the shell."
18787 #: ../fish/guestfish.pod:177
18789 "Using this flag is mostly equivalent to using the C<add> command, with "
18790 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18791 "the I<--format=...> flag was given."
18795 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
18797 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18798 "URI to use. The default is to use the default libvirt connection."
18802 #: ../fish/guestfish.pod:189
18807 #: ../fish/guestfish.pod:191
18809 "If using the I<--listen> option and a csh-like shell, use this option. See "
18810 "section L</REMOTE CONTROL AND CSH> below."
18814 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
18815 msgid "B<-d libvirt-domain>"
18816 msgstr "B<-d домен-libvirt>"
18819 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
18820 msgid "B<--domain libvirt-domain>"
18821 msgstr "B<--domain домен-libvirt>"
18824 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
18826 "Add disks from the named libvirt domain. If the I<--ro> option is also "
18827 "used, then any libvirt domain can be used. However in write mode, only "
18828 "libvirt domains which are shut down can be named here."
18832 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
18833 msgid "Domain UUIDs can be used instead of names."
18837 #: ../fish/guestfish.pod:204
18839 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18840 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18841 "if the I<--format:...> flag was given."
18845 #: ../fish/guestfish.pod:208
18850 #: ../fish/guestfish.pod:210
18851 msgid "B<--no-dest-paths>"
18852 msgstr "B<--no-dest-paths>"
18855 #: ../fish/guestfish.pod:212
18857 "Don't tab-complete paths on the guest filesystem. It is useful to be able "
18858 "to hit the tab key to complete paths on the guest filesystem, but this "
18859 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18860 "allow this feature to be disabled."
18864 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
18866 "When prompting for keys and passphrases, guestfish normally turns echoing "
18867 "off so you cannot see what you are typing. If you are not worried about "
18868 "Tempest attacks and there is no one else in the room you can specify this "
18869 "flag to see what you are typing."
18873 #: ../fish/guestfish.pod:224
18875 msgstr "B<-f файл>"
18878 #: ../fish/guestfish.pod:226
18879 msgid "B<--file file>"
18880 msgstr "B<--file файл>"
18883 #: ../fish/guestfish.pod:228
18884 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
18888 #: ../fish/guestfish.pod:231
18891 " #!/usr/bin/guestfish -f\n"
18894 " #!/usr/bin/guestfish -f\n"
18898 #: ../fish/guestfish.pod:244
18901 " guestfish --format=raw -a disk.img\n"
18904 " guestfish --format=raw -a disk.img\n"
18908 #: ../fish/guestfish.pod:248
18911 " guestfish --format=raw -a disk.img --format -a another.img\n"
18914 " guestfish --format=raw -a disk.img --format -a another.img\n"
18918 #: ../fish/guestfish.pod:253
18920 "If you have untrusted raw-format guest disk images, you should use this "
18921 "option to specify the disk format. This avoids a possible security problem "
18922 "with malicious guests (CVE-2010-3851). See also L</add-drive-opts>."
18926 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
18927 msgid "B<--inspector>"
18928 msgstr "B<--inspector>"
18931 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
18933 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
18934 "system and mount filesystems as they would be mounted on the real virtual "
18939 #: ../fish/guestfish.pod:266
18940 msgid "Typical usage is either:"
18944 #: ../fish/guestfish.pod:268
18947 " guestfish -d myguest -i\n"
18950 " guestfish -d myguest -i\n"
18954 #: ../fish/guestfish.pod:270
18955 msgid "(for an inactive libvirt domain called I<myguest>), or:"
18959 #: ../fish/guestfish.pod:272
18962 " guestfish --ro -d myguest -i\n"
18965 " guestfish --ro -d myguest -i\n"
18969 #: ../fish/guestfish.pod:274
18970 msgid "(for active domains, readonly), or specify the block device directly:"
18974 #: ../fish/guestfish.pod:276
18977 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18980 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18984 #: ../fish/guestfish.pod:278
18986 "Note that the command line syntax changed slightly over older versions of "
18987 "guestfish. You can still use the old syntax:"
18991 #: ../fish/guestfish.pod:281
18994 " guestfish [--ro] -i disk.img\n"
18997 " guestfish [--ro] -i disk.img\n"
19001 #: ../fish/guestfish.pod:283
19004 " guestfish [--ro] -i libvirt-domain\n"
19009 #: ../fish/guestfish.pod:285
19011 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19012 "then using other commands to mount the filesystems that were found."
19016 #: ../fish/guestfish.pod:294
19017 msgid "B<--listen>"
19018 msgstr "B<--listen>"
19021 #: ../fish/guestfish.pod:296
19023 "Fork into the background and listen for remote commands. See section L</"
19024 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19028 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19033 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19035 "Connect to a live virtual machine. (Experimental, see L<guestfs(3)/"
19036 "ATTACHING TO RUNNING DAEMONS>)."
19040 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19041 msgid "B<-m dev[:mountpoint[:options]]>"
19042 msgstr "B<-m пристрій[:точка_монтування[:параметри]]>"
19045 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19046 msgid "B<--mount dev[:mountpoint[:options]]>"
19047 msgstr "B<--mount пристрій[:точка_монтування[:параметри]]>"
19050 #: ../fish/guestfish.pod:308
19051 msgid "Mount the named partition or logical volume on the given mountpoint."
19055 #: ../fish/guestfish.pod:310
19056 msgid "If the mountpoint is omitted, it defaults to C</>."
19060 #: ../fish/guestfish.pod:312
19061 msgid "You have to mount something on C</> before most commands will work."
19065 #: ../fish/guestfish.pod:314
19067 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19072 #: ../fish/guestfish.pod:317
19074 "If you don't know what filesystems a disk image contains, you can either run "
19075 "guestfish without this option, then list the partitions, filesystems and LVs "
19076 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19077 "commands), or you can use the L<virt-filesystems(1)> program."
19081 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19083 "The third (and rarely used) part of the mount parameter is the list of mount "
19084 "options used to mount the underlying filesystem. If this is not given, then "
19085 "the mount options are either the empty string or C<ro> (the latter if the "
19086 "I<--ro> flag is used). By specifying the mount options, you override this "
19087 "default choice. Probably the only time you would use this is to enable ACLs "
19088 "and/or extended attributes if the filesystem can support them:"
19092 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19095 " -m /dev/sda1:/:acl,user_xattr\n"
19100 #: ../fish/guestfish.pod:333
19101 msgid "Using this flag is equivalent to using the C<mount-options> command."
19105 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
19106 #: ../resize/virt-resize.pod:414
19111 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19112 msgid "B<--no-sync>"
19113 msgstr "B<--no-sync>"
19116 #: ../fish/guestfish.pod:339
19118 "Disable autosync. This is enabled by default. See the discussion of "
19119 "autosync in the L<guestfs(3)> manpage."
19123 #: ../fish/guestfish.pod:342
19128 #: ../fish/guestfish.pod:344
19129 msgid "B<--new type>"
19130 msgstr "B<--new тип>"
19133 #: ../fish/guestfish.pod:346
19135 msgstr "B<-N help>"
19138 #: ../fish/guestfish.pod:348
19140 "Prepare a fresh disk image formatted as \"type\". This is an alternative to "
19141 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19142 "preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
19147 #: ../fish/guestfish.pod:353
19148 msgid "B<--progress-bars>"
19149 msgstr "B<--progress-bars>"
19152 #: ../fish/guestfish.pod:355
19153 msgid "Enable progress bars, even when guestfish is used non-interactively."
19157 #: ../fish/guestfish.pod:357
19159 "Progress bars are enabled by default when guestfish is used as an "
19160 "interactive shell."
19164 #: ../fish/guestfish.pod:360
19165 msgid "B<--no-progress-bars>"
19166 msgstr "B<--no-progress-bars>"
19169 #: ../fish/guestfish.pod:362
19170 msgid "Disable progress bars."
19174 #: ../fish/guestfish.pod:364
19175 msgid "B<--remote[=pid]>"
19176 msgstr "B<--remote[=pid]>"
19179 #: ../fish/guestfish.pod:366
19181 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
19182 "CONTROL GUESTFISH OVER A SOCKET> below."
19186 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
19187 #: ../rescue/virt-rescue.pod:161
19192 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
19193 #: ../rescue/virt-rescue.pod:163
19198 #: ../fish/guestfish.pod:373
19200 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19201 "mounts are done read-only."
19205 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
19207 "The option must always be used if the disk image or virtual machine might be "
19208 "running, and is generally recommended in cases where you don't need write "
19209 "access to the disk."
19213 #: ../fish/guestfish.pod:380
19215 "Note that prepared disk images created with I<-N> are not affected by this "
19216 "option. Also commands like C<add> are not affected - you have to specify "
19217 "the C<readonly:true> option explicitly if you need it."
19221 #: ../fish/guestfish.pod:384
19222 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19226 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
19227 #: ../rescue/virt-rescue.pod:173
19228 msgid "B<--selinux>"
19229 msgstr "B<--selinux>"
19232 #: ../fish/guestfish.pod:388
19233 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
19237 #: ../fish/guestfish.pod:394
19239 "Enable very verbose messages. This is particularly useful if you find a bug."
19243 #: ../fish/guestfish.pod:401
19244 msgid "Display the guestfish / libguestfs version number and exit."
19248 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
19249 #: ../rescue/virt-rescue.pod:194
19254 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
19255 #: ../rescue/virt-rescue.pod:196
19260 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19262 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19263 "mounts are done read-write."
19267 #: ../fish/guestfish.pod:410
19268 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19272 #: ../fish/guestfish.pod:414
19273 msgid "Echo each command before executing it."
19277 #: ../fish/guestfish.pod:418
19278 msgid "COMMANDS ON COMMAND LINE"
19282 #: ../fish/guestfish.pod:420
19284 "Any additional (non-option) arguments are treated as commands to execute."
19288 #: ../fish/guestfish.pod:423
19290 "Commands to execute should be separated by a colon (C<:>), where the colon "
19291 "is a separate parameter. Thus:"
19295 #: ../fish/guestfish.pod:426
19298 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19303 #: ../fish/guestfish.pod:428
19305 "If there are no additional arguments, then we enter a shell, either an "
19306 "interactive shell with a prompt (if the input is a terminal) or a non-"
19307 "interactive shell."
19311 #: ../fish/guestfish.pod:432
19313 "In either command line mode or non-interactive shell, the first command that "
19314 "gives an error causes the whole shell to exit. In interactive mode (with a "
19315 "prompt) if a command fails, you can continue to enter commands."
19319 #: ../fish/guestfish.pod:437
19320 msgid "USING launch (OR run)"
19324 #: ../fish/guestfish.pod:439
19326 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19327 "then launch it, then mount any disks you need, and finally issue actions/"
19328 "commands. So the general order of the day is:"
19332 #: ../fish/guestfish.pod:447
19333 msgid "add or -a/--add"
19337 #: ../fish/guestfish.pod:451
19338 msgid "launch (aka run)"
19342 #: ../fish/guestfish.pod:455
19343 msgid "mount or -m/--mount"
19347 #: ../fish/guestfish.pod:459
19348 msgid "any other commands"
19352 #: ../fish/guestfish.pod:463
19354 "C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
19355 "guest before mounting or performing any other commands."
19359 #: ../fish/guestfish.pod:466
19361 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19362 "I<--new> options were given then C<run> is done automatically, simply "
19363 "because guestfish can't perform the action you asked for without doing this."
19367 #: ../fish/guestfish.pod:471
19368 msgid "OPENING DISKS FOR READ AND WRITE"
19372 #: ../fish/guestfish.pod:473
19374 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19375 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19376 "I<-i> and I<-m> open disk images read-only or for writing."
19380 #: ../fish/guestfish.pod:478
19382 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19383 "opening disk images supplied on the command line for write. To open a disk "
19384 "image read-only you have to do I<-a image --ro>."
19388 #: ../fish/guestfish.pod:482
19390 "This matters: If you accidentally open a live VM disk image writable then "
19391 "you will cause irreversible disk corruption."
19395 #: ../fish/guestfish.pod:485
19397 "In a future libguestfs we intend to change the default the other way. Disk "
19398 "images will be opened read-only. You will have to either specify "
19399 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19400 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19401 "access for disk images specified by those other command line options."
19405 #: ../fish/guestfish.pod:492
19407 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19408 "which does nothing (it is already the default). However it is highly "
19409 "recommended that you use this option to indicate that you need write access, "
19410 "and prepare your scripts for the day when this option will be required for "
19415 #: ../fish/guestfish.pod:498
19417 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19418 "other libguestfs program apart from guestfish and guestmount."
19422 #: ../fish/guestfish.pod:501
19427 #: ../fish/guestfish.pod:503
19429 "You can quote ordinary parameters using either single or double quotes. For "
19434 #: ../fish/guestfish.pod:506
19437 " add \"file with a space.img\"\n"
19442 #: ../fish/guestfish.pod:508
19445 " rm '/file name'\n"
19450 #: ../fish/guestfish.pod:510
19458 #: ../fish/guestfish.pod:512
19460 "A few commands require a list of strings to be passed. For these, use a "
19461 "whitespace-separated list, enclosed in quotes. Strings containing "
19462 "whitespace to be passed through must be enclosed in single quotes. A "
19463 "literal single quote must be escaped with a backslash."
19467 #: ../fish/guestfish.pod:517
19470 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19471 " command \"/bin/echo 'foo bar'\"\n"
19472 " command \"/bin/echo \\'foo\\'\"\n"
19477 #: ../fish/guestfish.pod:521
19478 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19482 #: ../fish/guestfish.pod:523
19484 "In double-quoted arguments (only) use backslash to insert special characters:"
19488 #: ../fish/guestfish.pod:528
19493 #: ../fish/guestfish.pod:530
19494 msgid "Alert (bell) character."
19495 msgstr "Символ гудка (дзвінка)."
19498 #: ../fish/guestfish.pod:532
19503 #: ../fish/guestfish.pod:534
19504 msgid "Backspace character."
19508 #: ../fish/guestfish.pod:536
19513 #: ../fish/guestfish.pod:538
19514 msgid "Form feed character."
19518 #: ../fish/guestfish.pod:540
19523 #: ../fish/guestfish.pod:542
19524 msgid "Newline character."
19528 #: ../fish/guestfish.pod:544
19533 #: ../fish/guestfish.pod:546
19534 msgid "Carriage return character."
19535 msgstr "Символ повернення каретки."
19538 #: ../fish/guestfish.pod:548
19543 #: ../fish/guestfish.pod:550
19544 msgid "Horizontal tab character."
19545 msgstr "Символ горизонтальної табуляції"
19548 #: ../fish/guestfish.pod:552
19553 #: ../fish/guestfish.pod:554
19554 msgid "Vertical tab character."
19555 msgstr "Символ вертикальної табуляції."
19558 #: ../fish/guestfish.pod:556
19563 #: ../fish/guestfish.pod:558
19564 msgid "A literal double quote character."
19568 #: ../fish/guestfish.pod:560
19573 #: ../fish/guestfish.pod:562
19575 "A character with octal value I<ooo>. There must be precisely 3 octal digits "
19580 #: ../fish/guestfish.pod:565
19585 #: ../fish/guestfish.pod:567
19587 "A character with hex value I<hh>. There must be precisely 2 hex digits."
19591 #: ../fish/guestfish.pod:570
19593 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19598 #: ../fish/guestfish.pod:573
19603 #: ../fish/guestfish.pod:575
19604 msgid "A literal backslash character."
19608 #: ../fish/guestfish.pod:579
19609 msgid "OPTIONAL ARGUMENTS"
19613 #: ../fish/guestfish.pod:581
19615 "Some commands take optional arguments. These arguments appear in this "
19616 "documentation as C<[argname:..]>. You can use them as in these examples:"
19620 #: ../fish/guestfish.pod:585
19623 " add-drive-opts filename\n"
19628 #: ../fish/guestfish.pod:587
19631 " add-drive-opts filename readonly:true\n"
19636 #: ../fish/guestfish.pod:589
19639 " add-drive-opts filename format:qcow2 readonly:false\n"
19644 #: ../fish/guestfish.pod:591
19646 "Each optional argument can appear at most once. All optional arguments must "
19647 "appear after the required ones."
19651 #: ../fish/guestfish.pod:594
19656 #: ../fish/guestfish.pod:596
19658 "This section applies to all commands which can take integers as parameters."
19662 #: ../fish/guestfish.pod:599
19663 msgid "SIZE SUFFIX"
19667 #: ../fish/guestfish.pod:601
19669 "When the command takes a parameter measured in bytes, you can use one of the "
19670 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19674 #: ../fish/guestfish.pod:607
19675 msgid "B<k> or B<K> or B<KiB>"
19676 msgstr "B<k>, B<K> або B<KiB>"
19679 #: ../fish/guestfish.pod:609
19680 msgid "The size in kilobytes (multiplied by 1024)."
19681 msgstr "Розмір у кілобайтах (у одному кілобайті 1024 байтів)."
19684 #: ../fish/guestfish.pod:611
19689 #: ../fish/guestfish.pod:613
19690 msgid "The size in SI 1000 byte units."
19691 msgstr "Розмір у одиницях СІ: 1000 байтів."
19694 #: ../fish/guestfish.pod:615
19695 msgid "B<M> or B<MiB>"
19696 msgstr "B<M> або B<MiB>"
19699 #: ../fish/guestfish.pod:617
19700 msgid "The size in megabytes (multiplied by 1048576)."
19701 msgstr "Розмір у мегабайтах (у одному мегабайті 1048576 байтів)."
19704 #: ../fish/guestfish.pod:619
19709 #: ../fish/guestfish.pod:621
19710 msgid "The size in SI 1000000 byte units."
19711 msgstr "Розмір у одиницях СІ: 1000000 байтів."
19714 #: ../fish/guestfish.pod:623
19715 msgid "B<G> or B<GiB>"
19716 msgstr "B<G> або B<GiB>"
19719 #: ../fish/guestfish.pod:625
19720 msgid "The size in gigabytes (multiplied by 2**30)."
19721 msgstr "Розмір у гігабайтах (з множником 2**30)."
19724 #: ../fish/guestfish.pod:627
19729 #: ../fish/guestfish.pod:629
19730 msgid "The size in SI 10**9 byte units."
19731 msgstr "Розмір у одиницях СІ: 10**9 байтів."
19734 #: ../fish/guestfish.pod:631
19735 msgid "B<T> or B<TiB>"
19736 msgstr "B<T> або B<TiB>"
19739 #: ../fish/guestfish.pod:633
19740 msgid "The size in terabytes (multiplied by 2**40)."
19741 msgstr "Розмір у терабайтах (з множником 2**40)."
19744 #: ../fish/guestfish.pod:635
19749 #: ../fish/guestfish.pod:637
19750 msgid "The size in SI 10**12 byte units."
19751 msgstr "Розмір у одиницях СІ: 10**12 байтів."
19754 #: ../fish/guestfish.pod:639
19755 msgid "B<P> or B<PiB>"
19756 msgstr "B<P> або B<PiB>"
19759 #: ../fish/guestfish.pod:641
19760 msgid "The size in petabytes (multiplied by 2**50)."
19761 msgstr "Розмір у петабайтах (у одному петабайті 2**50 байтів)."
19764 #: ../fish/guestfish.pod:643
19769 #: ../fish/guestfish.pod:645
19770 msgid "The size in SI 10**15 byte units."
19771 msgstr "Розмір у одиницях СІ: 10**15 байтів."
19774 #: ../fish/guestfish.pod:647
19775 msgid "B<E> or B<EiB>"
19776 msgstr "B<E> або B<EiB>"
19779 #: ../fish/guestfish.pod:649
19780 msgid "The size in exabytes (multiplied by 2**60)."
19781 msgstr "Розмір у ексабайтах (у одному ексабайті 2**60 байтів)."
19784 #: ../fish/guestfish.pod:651
19789 #: ../fish/guestfish.pod:653
19790 msgid "The size in SI 10**18 byte units."
19791 msgstr "Розмір у одиницях СІ: 10**18 байтів."
19794 #: ../fish/guestfish.pod:655
19795 msgid "B<Z> or B<ZiB>"
19796 msgstr "B<Z> або B<ZiB>"
19799 #: ../fish/guestfish.pod:657
19800 msgid "The size in zettabytes (multiplied by 2**70)."
19801 msgstr "Розмір у зетабайтах (у одному зетабайті 2**70 байтів)."
19804 #: ../fish/guestfish.pod:659
19809 #: ../fish/guestfish.pod:661
19810 msgid "The size in SI 10**21 byte units."
19811 msgstr "Розмір у одиницях СІ: 10**21 байтів."
19814 #: ../fish/guestfish.pod:663
19815 msgid "B<Y> or B<YiB>"
19816 msgstr "B<Y> або B<YiB>"
19819 #: ../fish/guestfish.pod:665
19820 msgid "The size in yottabytes (multiplied by 2**80)."
19821 msgstr "Розмір у йотабайтах (у одному йотабайті 2**80 байтів)."
19824 #: ../fish/guestfish.pod:667
19829 #: ../fish/guestfish.pod:669
19830 msgid "The size in SI 10**24 byte units."
19831 msgstr "Розмір у одиницях СІ: 10**24 байтів."
19834 #: ../fish/guestfish.pod:675
19837 " truncate-size /file 1G\n"
19842 #: ../fish/guestfish.pod:677
19843 msgid "would truncate the file to 1 gigabyte."
19847 #: ../fish/guestfish.pod:679
19849 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
19850 "the parameter to L</memsize> is specified in megabytes already). Adding a "
19851 "suffix will probably not do what you expect."
19855 #: ../fish/guestfish.pod:683
19856 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19860 #: ../fish/guestfish.pod:685
19862 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19863 "octal number or C<0x> to prefix a hexadecimal number. For example:"
19867 #: ../fish/guestfish.pod:688
19870 " 1234 decimal number 1234\n"
19871 " 02322 octal number, equivalent to decimal 1234\n"
19872 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
19877 #: ../fish/guestfish.pod:692
19879 "When using the C<chmod> command, you almost always want to specify an octal "
19880 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19881 "L<chmod(1)> program):"
19885 #: ../fish/guestfish.pod:696
19888 " chmod 0777 /public # OK\n"
19889 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
19894 #: ../fish/guestfish.pod:699
19896 "Commands that return numbers usually print them in decimal, but some "
19897 "commands print numbers in other radices (eg. C<umask> prints the mode in "
19898 "octal, preceeded by C<0>)."
19902 #: ../fish/guestfish.pod:703
19903 msgid "WILDCARDS AND GLOBBING"
19907 #: ../fish/guestfish.pod:705
19909 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
19910 "(globbing) by default. So for example the following will not do what you "
19915 #: ../fish/guestfish.pod:709
19923 #: ../fish/guestfish.pod:711
19925 "Assuming you don't have a directory called literally C</home/*> then the "
19926 "above command will return an error."
19930 #: ../fish/guestfish.pod:714
19931 msgid "To perform wildcard expansion, use the C<glob> command."
19935 #: ../fish/guestfish.pod:716
19938 " glob rm-rf /home/*\n"
19943 #: ../fish/guestfish.pod:718
19945 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
19946 "many times), equivalent to:"
19950 #: ../fish/guestfish.pod:721
19953 " rm-rf /home/jim\n"
19954 " rm-rf /home/joe\n"
19955 " rm-rf /home/mary\n"
19960 #: ../fish/guestfish.pod:725
19961 msgid "C<glob> only works on simple guest paths and not on device names."
19965 #: ../fish/guestfish.pod:727
19967 "If you have several parameters, each containing a wildcard, then glob will "
19968 "perform a Cartesian product."
19972 #: ../fish/guestfish.pod:730
19977 #: ../fish/guestfish.pod:732
19979 "Any line which starts with a I<#> character is treated as a comment and "
19980 "ignored. The I<#> can optionally be preceeded by whitespace, but B<not> by "
19981 "a command. For example:"
19985 #: ../fish/guestfish.pod:736
19988 " # this is a comment\n"
19989 " # this is a comment\n"
19990 " foo # NOT a comment\n"
19995 #: ../fish/guestfish.pod:740
19996 msgid "Blank lines are also ignored."
20000 #: ../fish/guestfish.pod:742
20001 msgid "RUNNING COMMANDS LOCALLY"
20005 #: ../fish/guestfish.pod:744
20007 "Any line which starts with a I<!> character is treated as a command sent to "
20008 "the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
20012 #: ../fish/guestfish.pod:748
20016 " tgz-out /remote local/remote-data.tar.gz\n"
20021 #: ../fish/guestfish.pod:751
20023 "will create a directory C<local> on the host, and then export the contents "
20024 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
20025 "(See C<tgz-out>)."
20029 #: ../fish/guestfish.pod:755
20031 "To change the local directory, use the C<lcd> command. C<!cd> will have no "
20032 "effect, due to the way that subprocesses work in Unix."
20036 #: ../fish/guestfish.pod:758
20037 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20041 #: ../fish/guestfish.pod:760
20043 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20044 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20045 "and executed as guestfish commands."
20049 #: ../fish/guestfish.pod:764
20051 "Thus you can use shell script to construct arbitrary guestfish commands "
20052 "which are then parsed by guestfish."
20056 #: ../fish/guestfish.pod:767
20058 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20059 "through C</foo.100>) using guestfish commands alone. However this is simple "
20060 "if we use a shell script to create the guestfish commands for us:"
20064 #: ../fish/guestfish.pod:772
20067 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20072 #: ../fish/guestfish.pod:774
20073 msgid "or with names like C</foo.001>:"
20077 #: ../fish/guestfish.pod:776
20080 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20085 #: ../fish/guestfish.pod:778
20087 "When using guestfish interactively it can be helpful to just run the shell "
20088 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20089 "ordinary I<!> local command), see what guestfish commands it would run, and "
20090 "when you are happy with those prepend the C<E<lt>> character to run the "
20091 "guestfish commands for real."
20095 #: ../fish/guestfish.pod:784
20100 #: ../fish/guestfish.pod:786
20102 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20103 "command (a guestfish command) to the second command (any host command). For "
20108 #: ../fish/guestfish.pod:790
20111 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20116 #: ../fish/guestfish.pod:792
20118 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20119 "program). The above command would list all accounts in the guest filesystem "
20120 "which have UID 0, ie. root accounts including backdoors. Other examples:"
20124 #: ../fish/guestfish.pod:797
20127 " hexdump /bin/ls | head\n"
20128 " list-devices | tail -1\n"
20129 " tgz-out / - | tar ztf -\n"
20134 #: ../fish/guestfish.pod:801
20136 "The space before the pipe symbol is required, any space after the pipe "
20137 "symbol is optional. Everything after the pipe symbol is just passed "
20138 "straight to the host shell, so it can contain redirections, globs and "
20139 "anything else that makes sense on the host side."
20143 #: ../fish/guestfish.pod:806
20145 "To use a literal argument which begins with a pipe symbol, you have to quote "
20150 #: ../fish/guestfish.pod:809
20158 #: ../fish/guestfish.pod:811
20159 msgid "HOME DIRECTORIES"
20163 #: ../fish/guestfish.pod:813
20165 "If a parameter starts with the character C<~> then the tilde may be expanded "
20166 "as a home directory path (either C<~> for the current user's home directory, "
20167 "or C<~user> for another user)."
20171 #: ../fish/guestfish.pod:817
20173 "Note that home directory expansion happens for users known I<on the host>, "
20174 "not in the guest filesystem."
20178 #: ../fish/guestfish.pod:820
20180 "To use a literal argument which begins with a tilde, you have to quote it, "
20185 #: ../fish/guestfish.pod:823
20193 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
20194 msgid "ENCRYPTED DISKS"
20195 msgstr "ЗАШИФРОВАНІ ДИСКИ"
20198 #: ../fish/guestfish.pod:827
20200 "Libguestfs has some support for Linux guests encrypted according to the "
20201 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20202 "disk encryption systems used by modern Linux guests. Currently only LVM-on-"
20203 "LUKS is supported."
20207 #: ../fish/guestfish.pod:832
20208 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20212 #: ../fish/guestfish.pod:834
20215 " ><fs> vfs-type /dev/sda2\n"
20221 #: ../fish/guestfish.pod:837
20223 "Then open those devices using L</luks-open>. This creates a device-mapper "
20224 "device called C</dev/mapper/luksdev>."
20228 #: ../fish/guestfish.pod:840
20231 " ><fs> luks-open /dev/sda2 luksdev\n"
20232 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20237 #: ../fish/guestfish.pod:843
20239 "Finally you have to tell LVM to scan for volume groups on the newly created "
20244 #: ../fish/guestfish.pod:846
20248 " vg-activate-all true\n"
20253 #: ../fish/guestfish.pod:849
20254 msgid "The logical volume(s) can now be mounted in the usual way."
20258 #: ../fish/guestfish.pod:851
20260 "Before closing a LUKS device you must unmount any logical volumes on it and "
20261 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20262 "one. Then you can close the mapper device:"
20266 #: ../fish/guestfish.pod:855
20269 " vg-activate false /dev/VG\n"
20270 " luks-close /dev/mapper/luksdev\n"
20275 #: ../fish/guestfish.pod:860
20277 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20278 "letters and paths (with some limitations). The following commands are "
20283 #: ../fish/guestfish.pod:864
20286 " file /WINDOWS/system32/config/system.LOG\n"
20291 #: ../fish/guestfish.pod:866
20294 " file win:\\windows\\system32\\config\\system.log\n"
20299 #: ../fish/guestfish.pod:868
20302 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20307 #: ../fish/guestfish.pod:870
20309 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20310 "where the drive is mounted, prepending that to the path, changing all "
20311 "backslash characters to forward slash, then resolving the result using L</"
20312 "case-sensitive-path>. For example if the E: drive was mounted on C</e> then "
20313 "the parameter might be rewritten like this:"
20317 #: ../fish/guestfish.pod:876
20320 " win:e:\\foo\\bar => /e/FOO/bar\n"
20325 #: ../fish/guestfish.pod:878
20326 msgid "This only works in argument positions that expect a path."
20330 #: ../fish/guestfish.pod:880
20331 msgid "UPLOADING AND DOWNLOADING FILES"
20335 #: ../fish/guestfish.pod:882
20337 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20338 "others which upload from or download to a local file, you can use the "
20339 "special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
20343 #: ../fish/guestfish.pod:886
20351 #: ../fish/guestfish.pod:888
20353 "reads stdin and creates from that a file C</foo> in the disk image, and:"
20357 #: ../fish/guestfish.pod:891
20360 " tar-out /etc - | tar tf -\n"
20365 #: ../fish/guestfish.pod:893
20367 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20368 "command (see L</PIPES>)."
20372 #: ../fish/guestfish.pod:896
20374 "When using C<-> to read from stdin, the input is read up to the end of "
20375 "stdin. You can also use a special \"heredoc\"-like syntax to read up to "
20376 "some arbitrary end marker:"
20380 #: ../fish/guestfish.pod:900
20383 " upload -<<END /foo\n"
20392 #: ../fish/guestfish.pod:906
20394 "Any string of characters can be used instead of C<END>. The end marker must "
20395 "appear on a line of its own, without any preceeding or following characters "
20396 "(not even spaces)."
20400 #: ../fish/guestfish.pod:910
20402 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20403 "upload local files (so-called \"FileIn\" parameters in the generator)."
20407 #: ../fish/guestfish.pod:913
20408 msgid "EXIT ON ERROR BEHAVIOUR"
20412 #: ../fish/guestfish.pod:915
20414 "By default, guestfish will ignore any errors when in interactive mode (ie. "
20415 "taking commands from a human over a tty), and will exit on the first error "
20416 "in non-interactive mode (scripts, commands given on the command line)."
20420 #: ../fish/guestfish.pod:920
20422 "If you prefix a command with a I<-> character, then that command will not "
20423 "cause guestfish to exit, even if that (one) command returns an error."
20427 #: ../fish/guestfish.pod:924
20428 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20432 #: ../fish/guestfish.pod:926
20434 "Guestfish can be remote-controlled over a socket. This is useful "
20435 "particularly in shell scripts where you want to make several different "
20436 "changes to a filesystem, but you don't want the overhead of starting up a "
20437 "guestfish process each time."
20441 #: ../fish/guestfish.pod:931
20442 msgid "Start a guestfish server process using:"
20446 #: ../fish/guestfish.pod:933
20449 " eval \"`guestfish --listen`\"\n"
20454 #: ../fish/guestfish.pod:935
20455 msgid "and then send it commands by doing:"
20459 #: ../fish/guestfish.pod:937
20462 " guestfish --remote cmd [...]\n"
20467 #: ../fish/guestfish.pod:939
20468 msgid "To cause the server to exit, send it the exit command:"
20472 #: ../fish/guestfish.pod:943
20474 "Note that the server will normally exit if there is an error in a command. "
20475 "You can change this in the usual way. See section L</EXIT ON ERROR "
20480 #: ../fish/guestfish.pod:947
20481 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20485 #: ../fish/guestfish.pod:949
20487 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20488 "is how the I<--remote> option knows where to send the commands. You can "
20489 "have several guestfish listener processes running using:"
20493 #: ../fish/guestfish.pod:953
20496 " eval \"`guestfish --listen`\"\n"
20497 " pid1=$GUESTFISH_PID\n"
20498 " eval \"`guestfish --listen`\"\n"
20499 " pid2=$GUESTFISH_PID\n"
20501 " guestfish --remote=$pid1 cmd\n"
20502 " guestfish --remote=$pid2 cmd\n"
20507 #: ../fish/guestfish.pod:961
20508 msgid "REMOTE CONTROL AND CSH"
20512 #: ../fish/guestfish.pod:963
20514 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20519 #: ../fish/guestfish.pod:966
20522 " eval \"`guestfish --listen --csh`\"\n"
20527 #: ../fish/guestfish.pod:968
20528 msgid "REMOTE CONTROL DETAILS"
20532 #: ../fish/guestfish.pod:970
20534 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
20535 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
20536 "and C<$PID> is the process ID of the server."
20540 #: ../fish/guestfish.pod:974
20541 msgid "Guestfish client and server versions must match exactly."
20545 #: ../fish/guestfish.pod:976
20546 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20550 #: ../fish/guestfish.pod:978
20552 "From Bash, you can use the following code which creates a guestfish "
20553 "instance, correctly quotes the command line, handles failure to start, and "
20554 "cleans up guestfish when the script exits:"
20558 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:965
20566 #: ../fish/guestfish.pod:986
20569 " guestfish[0]=\"guestfish\"\n"
20570 " guestfish[1]=\"--listen\"\n"
20571 " guestfish[2]=\"--ro\"\n"
20572 " guestfish[3]=\"-a\"\n"
20573 " guestfish[4]=\"disk.img\"\n"
20578 #: ../fish/guestfish.pod:992
20581 " GUESTFISH_PID=\n"
20582 " eval $(\"${guestfish[@]}\")\n"
20583 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20584 " echo \"error: guestfish didn't start up, see error messages above\"\n"
20591 #: ../fish/guestfish.pod:999
20594 " cleanup_guestfish ()\n"
20596 " guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20598 " trap cleanup_guestfish EXIT ERR\n"
20603 #: ../fish/guestfish.pod:1005
20606 " guestfish --remote -- run\n"
20611 #: ../fish/guestfish.pod:1007
20619 #: ../fish/guestfish.pod:1009
20620 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20624 #: ../fish/guestfish.pod:1011
20626 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20627 "context hangs, ie. don't do (note the backquotes):"
20631 #: ../fish/guestfish.pod:1014
20634 " a=`guestfish --remote run`\n"
20639 #: ../fish/guestfish.pod:1016
20641 "Since the C<run> command produces no output on stdout, this is not useful "
20642 "anyway. For further information see L<https://bugzilla.redhat.com/show_bug."
20647 #: ../fish/guestfish.pod:1020
20648 msgid "PREPARED DISK IMAGES"
20652 #: ../fish/guestfish.pod:1022
20654 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20655 "preformatted disk images that guestfish can make for you to save typing. "
20656 "This is particularly useful for testing purposes. This option is used "
20657 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20658 "can be mixed with I<-a>)."
20662 #: ../fish/guestfish.pod:1028
20664 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20665 "the second and so on. Existing files in the current directory are "
20670 #: ../fish/guestfish.pod:1032
20672 "The type briefly describes how the disk should be sized, partitioned, how "
20673 "filesystem(s) should be created, and how content should be added. "
20674 "Optionally the type can be followed by extra parameters, separated by C<:> "
20675 "(colon) characters. For example, I<-N fs> creates a default 100MB, sparsely-"
20676 "allocated disk, containing a single partition, with the partition formatted "
20677 "as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
20682 #: ../fish/guestfish.pod:1040
20683 msgid "To list the available types and any extra parameters they take, run:"
20687 #: ../fish/guestfish.pod:1044
20689 "Note that the prepared filesystem is not mounted. You would usually have to "
20690 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20694 #: ../fish/guestfish.pod:1048
20696 "If any I<-N> or I<--new> options are given, the guest is automatically "
20701 #: ../fish/guestfish.pod:1053
20702 msgid "Create a 100MB disk with an ext4-formatted partition:"
20706 #: ../fish/guestfish.pod:1055
20709 " guestfish -N fs:ext4\n"
20714 #: ../fish/guestfish.pod:1057
20715 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20719 #: ../fish/guestfish.pod:1059
20722 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20727 #: ../fish/guestfish.pod:1061
20728 msgid "Create a blank 200MB disk:"
20732 #: ../fish/guestfish.pod:1063
20735 " guestfish -N disk:200M\n"
20740 #: ../fish/guestfish.pod:1065
20741 msgid "PROGRESS BARS"
20745 #: ../fish/guestfish.pod:1067
20747 "Some (not all) long-running commands send progress notification messages as "
20748 "they are running. Guestfish turns these messages into progress bars."
20752 #: ../fish/guestfish.pod:1071
20754 "When a command that supports progress bars takes longer than two seconds to "
20755 "run, and if progress bars are enabled, then you will see one appearing below "
20760 #: ../fish/guestfish.pod:1075
20763 " ><fs> copy-size /large-file /another-file 2048M\n"
20764 " / 10% [#####-----------------------------------------] 00:30\n"
20769 #: ../fish/guestfish.pod:1078
20771 "The spinner on the left hand side moves round once for every progress "
20772 "notification received from the backend. This is a (reasonably) golden "
20773 "assurance that the command is \"doing something\" even if the progress bar "
20774 "is not moving, because the command is able to send the progress "
20775 "notifications. When the bar reaches 100% and the command finishes, the "
20776 "spinner disappears."
20780 #: ../fish/guestfish.pod:1085
20782 "Progress bars are enabled by default when guestfish is used interactively. "
20783 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20784 "and you can disable them completely using I<--no-progress-bars>."
20788 #: ../fish/guestfish.pod:1090
20789 msgid "GUESTFISH COMMANDS"
20793 #: ../fish/guestfish.pod:1092
20795 "The commands in this section are guestfish convenience commands, in other "
20796 "words, they are not part of the L<guestfs(3)> API."
20800 #: ../fish/guestfish.pod:1095
20805 #: ../fish/guestfish.pod:1097
20817 #: ../fish/guestfish.pod:1100
20818 msgid "Without any parameter, this provides general help."
20819 msgstr "Без параметра показує загальну довідкову інформацію."
20822 #: ../fish/guestfish.pod:1102
20823 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20827 #: ../fish/guestfish.pod:1104
20828 msgid "quit | exit"
20832 #: ../fish/guestfish.pod:1106
20833 msgid "This exits guestfish. You can also use C<^D> key."
20837 #: ../fish/guestfish.pod:1108
20838 msgid "@FISH_COMMANDS@"
20842 #: ../fish/guestfish.pod:1110
20847 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1505
20852 #: ../fish/guestfish.pod:1116
20854 "guestfish returns 0 if the commands completed without error, or 1 if there "
20859 #: ../fish/guestfish.pod:1123
20864 #: ../fish/guestfish.pod:1125
20866 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
20871 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3198
20872 msgid "FEBOOTSTRAP_KERNEL"
20876 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3200
20877 msgid "FEBOOTSTRAP_MODULES"
20881 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3202
20883 "These two environment variables allow the kernel that libguestfs uses in the "
20884 "appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
20885 "most recent host kernel is chosen. For more information about kernel "
20886 "selection, see L<febootstrap-supermin-helper(8)>. This feature is only "
20887 "available in febootstrap E<ge> 3.8."
20891 #: ../fish/guestfish.pod:1138
20892 msgid "GUESTFISH_DISPLAY_IMAGE"
20896 #: ../fish/guestfish.pod:1140
20898 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
20899 "If not set, it uses L<display(1)>."
20903 #: ../fish/guestfish.pod:1143
20904 msgid "GUESTFISH_PID"
20908 #: ../fish/guestfish.pod:1145
20910 "Used with the I<--remote> option to specify the remote guestfish process to "
20911 "control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
20915 #: ../fish/guestfish.pod:1149
20920 #: ../fish/guestfish.pod:1151
20922 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
20923 "not specified, the external L<hexedit(1)> program is used."
20927 #: ../fish/guestfish.pod:1155
20932 #: ../fish/guestfish.pod:1157
20934 "If compiled with GNU readline support, various files in the home directory "
20935 "can be used. See L</FILES>."
20939 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3208
20940 msgid "LIBGUESTFS_APPEND"
20944 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3210
20945 msgid "Pass additional options to the guest kernel."
20949 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3212
20950 msgid "LIBGUESTFS_DEBUG"
20951 msgstr "LIBGUESTFS_DEBUG"
20954 #: ../fish/guestfish.pod:1166
20956 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
20957 "effect as using the B<-v> option."
20961 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3217
20962 msgid "LIBGUESTFS_MEMSIZE"
20963 msgstr "LIBGUESTFS_MEMSIZE"
20966 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3219
20968 "Set the memory allocated to the qemu process, in megabytes. For example:"
20972 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3222
20975 " LIBGUESTFS_MEMSIZE=700\n"
20978 " LIBGUESTFS_MEMSIZE=700\n"
20982 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3224
20983 msgid "LIBGUESTFS_PATH"
20987 #: ../fish/guestfish.pod:1178
20989 "Set the path that guestfish uses to search for kernel and initrd.img. See "
20990 "the discussion of paths in L<guestfs(3)>."
20994 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3229
20995 msgid "LIBGUESTFS_QEMU"
20999 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3231
21001 "Set the default qemu binary that libguestfs uses. If not set, then the qemu "
21002 "which was found at compile time by the configure script is used."
21006 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3237
21007 msgid "LIBGUESTFS_TRACE"
21011 #: ../fish/guestfish.pod:1189
21012 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21016 #: ../fish/guestfish.pod:1191
21018 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
21021 #: ../fish/guestfish.pod:1193
21023 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
21028 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
21029 #: ../src/guestfs.pod:3242
21034 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3244
21036 "Location of temporary directory, defaults to C</tmp> except for the cached "
21037 "supermin appliance which defaults to C</var/tmp>."
21041 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3247
21043 "If libguestfs was compiled to use the supermin appliance then the real "
21044 "appliance is cached in this directory, shared between all handles belonging "
21045 "to the same EUID. You can use C<$TMPDIR> to configure another directory to "
21046 "use in case C</var/tmp> is not large enough."
21050 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
21051 #: ../rescue/virt-rescue.pod:273
21056 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
21057 #: ../rescue/virt-rescue.pod:277
21058 msgid "$HOME/.libguestfs-tools.rc"
21062 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
21063 #: ../rescue/virt-rescue.pod:279
21064 msgid "/etc/libguestfs-tools.conf"
21068 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
21069 #: ../rescue/virt-rescue.pod:281
21071 "This configuration file controls the default read-only or read-write mode "
21072 "(I<--ro> or I<--rw>)."
21076 #: ../fish/guestfish.pod:1220
21077 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21078 msgstr "Див. L</OPENING DISKS FOR READ AND WRITE>."
21081 #: ../fish/guestfish.pod:1222
21082 msgid "$HOME/.guestfish"
21086 #: ../fish/guestfish.pod:1224
21088 "If compiled with GNU readline support, then the command history is saved in "
21093 #: ../fish/guestfish.pod:1227
21094 msgid "$HOME/.inputrc"
21098 #: ../fish/guestfish.pod:1229
21099 msgid "/etc/inputrc"
21103 #: ../fish/guestfish.pod:1231
21105 "If compiled with GNU readline support, then these files can be used to "
21106 "configure readline. For further information, please see L<readline(3)/"
21107 "INITIALIZATION FILE>."
21111 #: ../fish/guestfish.pod:1235
21112 msgid "To write rules which only apply to guestfish, use:"
21116 #: ../fish/guestfish.pod:1237
21126 #: ../fish/guestfish.pod:1241
21128 "Variables that you can set in inputrc that change the behaviour of guestfish "
21129 "in useful ways include:"
21133 #: ../fish/guestfish.pod:1246
21134 msgid "completion-ignore-case (default: on)"
21138 #: ../fish/guestfish.pod:1248
21140 "By default, guestfish will ignore case when tab-completing paths on the "
21145 #: ../fish/guestfish.pod:1251
21148 " set completion-ignore-case off\n"
21153 #: ../fish/guestfish.pod:1253
21154 msgid "to make guestfish case sensitive."
21158 #: ../fish/guestfish.pod:1257
21163 #: ../fish/guestfish.pod:1259
21164 msgid "test2.img (etc)"
21168 #: ../fish/guestfish.pod:1261
21170 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21171 "will be created in the file C<test1.img> in the current directory. The "
21172 "second use of I<-N> will use C<test2.img> and so on. Any existing file with "
21173 "the same name will be overwritten."
21177 #: ../fish/guestfish.pod:1270
21179 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
21180 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
21181 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
21182 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
21183 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
21184 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
21185 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
21189 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3339
21190 #: ../test-tool/libguestfs-test-tool.pod:112
21191 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
21195 #: ../fish/virt-copy-in.pod:5
21197 "virt-copy-in - Copy files and directories into a virtual machine disk image."
21201 #: ../fish/virt-copy-in.pod:9
21204 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21209 #: ../fish/virt-copy-in.pod:11
21212 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21217 #: ../fish/virt-copy-in.pod:15
21219 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21220 "causing disk corruption. The virtual machine must be shut down before you "
21221 "use this command."
21225 #: ../fish/virt-copy-in.pod:21
21227 "C<virt-copy-in> copies files and directories from the local disk into a "
21228 "virtual machine disk image or named libvirt domain."
21232 #: ../fish/virt-copy-in.pod:24
21234 "You can give one of more filenames and directories on the command line. "
21235 "Directories are copied in recursively. The final parameter must be the "
21236 "destination directory in the disk image which must be an absolute path "
21237 "starting with a C</> character."
21241 #: ../fish/virt-copy-in.pod:33
21244 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21249 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21250 msgid "Upload a home directory to a guest:"
21254 #: ../fish/virt-copy-in.pod:37
21257 " virt-copy-in -d MyGuest skel /home\n"
21262 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
21263 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21264 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21268 #: ../fish/virt-copy-in.pod:41
21270 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21271 "> C<copy-in> command. For anything more complex than a trivial copy, you "
21272 "are probably better off using guestfish directly."
21276 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
21277 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21279 "Since the shell script just passes options straight to guestfish, read "
21280 "L<guestfish(1)> to see the full list of options."
21284 #: ../fish/virt-copy-in.pod:52
21286 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21287 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21291 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
21292 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21293 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
21297 #: ../fish/virt-copy-out.pod:5
21299 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21304 #: ../fish/virt-copy-out.pod:9
21307 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21312 #: ../fish/virt-copy-out.pod:11
21315 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21320 #: ../fish/virt-copy-out.pod:15
21322 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21323 "image or named libvirt domain."
21327 #: ../fish/virt-copy-out.pod:18
21329 "You can give one of more filenames and directories on the command line. "
21330 "Directories are copied out recursively."
21334 #: ../fish/virt-copy-out.pod:23
21335 msgid "Download the home directories from a virtual machine:"
21339 #: ../fish/virt-copy-out.pod:25
21343 " virt-copy-out -d MyGuest /home homes\n"
21348 #: ../fish/virt-copy-out.pod:30
21350 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21351 "> C<copy-out> command. For anything more complex than a trivial copy, you "
21352 "are probably better off using guestfish directly."
21356 #: ../fish/virt-copy-out.pod:41
21358 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
21359 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21363 #: ../fish/virt-tar-in.pod:5
21364 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21368 #: ../fish/virt-tar-in.pod:9
21371 " virt-tar-in -a disk.img data.tar /destination\n"
21376 #: ../fish/virt-tar-in.pod:11
21379 " virt-tar-in -d domain data.tar /destination\n"
21384 #: ../fish/virt-tar-in.pod:13
21387 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21392 #: ../fish/virt-tar-in.pod:17
21394 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21395 "causing disk corruption. The virtual machine must be shut down before you "
21396 "use this command."
21400 #: ../fish/virt-tar-in.pod:23
21402 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21403 "image or named libvirt domain."
21407 #: ../fish/virt-tar-in.pod:26
21409 "The first parameter is the tar file. Use C<-> to read the tar file from "
21410 "standard input. The second parameter is the absolute target directory to "
21415 #: ../fish/virt-tar-in.pod:34
21418 " virt-tar-in -d MyGuest homes.tar /home\n"
21423 #: ../fish/virt-tar-in.pod:38
21425 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21426 "> C<tar-in> command. For anything more complex than a trivial copy, you are "
21427 "probably better off using guestfish directly."
21431 #: ../fish/virt-tar-in.pod:49
21433 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21434 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
21439 #: ../fish/virt-tar-out.pod:5
21441 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21445 #: ../fish/virt-tar-out.pod:9
21448 " virt-tar-out -a disk.img /dir files.tar\n"
21453 #: ../fish/virt-tar-out.pod:11
21456 " virt-tar-out -d domain /dir files.tar\n"
21461 #: ../fish/virt-tar-out.pod:13
21464 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21469 #: ../fish/virt-tar-out.pod:17
21471 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21475 #: ../fish/virt-tar-out.pod:20
21477 "The first parameter is the absolute path of the virtual machine directory. "
21478 "The second parameter is the tar file to write. Use C<-> to write to "
21483 #: ../fish/virt-tar-out.pod:26
21484 msgid "Download the home directories from a guest:"
21488 #: ../fish/virt-tar-out.pod:28
21491 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21496 #: ../fish/virt-tar-out.pod:32
21498 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21499 "> C<tar-out> command. For anything more complex than a trivial copy, you "
21500 "are probably better off using guestfish directly."
21504 #: ../fish/virt-tar-out.pod:43
21506 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21507 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21511 #: ../fuse/guestmount.pod:5
21513 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21517 #: ../fuse/guestmount.pod:9
21520 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21525 #: ../fuse/guestmount.pod:11
21528 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21533 #: ../fuse/guestmount.pod:13
21536 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21541 #: ../fuse/guestmount.pod:17
21543 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21544 "machines. If you do this, you risk disk corruption in the VM."
21548 #: ../fuse/guestmount.pod:22
21550 "The guestmount program can be used to mount virtual machine filesystems and "
21551 "other disk images on the host. It uses libguestfs for access to the guest "
21552 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21553 "a mountable device."
21557 #: ../fuse/guestmount.pod:27
21559 "Along with other options, you have to give at least one device (I<-a> "
21560 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21561 "option) or use the I<-i> inspection option. How this works is better "
21562 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
21567 #: ../fuse/guestmount.pod:33
21569 "FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
21570 "by you, and the filesystem will not be visible to any other users unless you "
21571 "make certain global configuration changes to C</etc/fuse.conf>. To unmount "
21572 "the filesystem, use the C<fusermount -u> command."
21576 #: ../fuse/guestmount.pod:41
21578 "For a typical Windows guest which has its main filesystem on the first "
21583 #: ../fuse/guestmount.pod:44
21586 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21591 #: ../fuse/guestmount.pod:46
21593 "For a typical Linux guest which has a /boot filesystem on the first "
21594 "partition, and the root filesystem on a logical volume:"
21598 #: ../fuse/guestmount.pod:49
21601 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21606 #: ../fuse/guestmount.pod:51
21607 msgid "To get libguestfs to detect guest mountpoints for you:"
21611 #: ../fuse/guestmount.pod:53
21614 " guestmount -a guest.img -i --ro /mnt\n"
21619 #: ../fuse/guestmount.pod:55
21620 msgid "For a libvirt guest called \"Guest\" you could do:"
21624 #: ../fuse/guestmount.pod:57
21627 " guestmount -d Guest -i --ro /mnt\n"
21632 #: ../fuse/guestmount.pod:59
21634 "If you don't know what filesystems are contained in a guest or disk image, "
21635 "use L<virt-filesystems(1)> first:"
21639 #: ../fuse/guestmount.pod:62
21642 " virt-filesystems MyGuest\n"
21647 #: ../fuse/guestmount.pod:64
21649 "If you want to trace the libguestfs calls but without excessive debugging "
21650 "information, we recommend:"
21654 #: ../fuse/guestmount.pod:67
21657 " guestmount [...] --trace /mnt\n"
21662 #: ../fuse/guestmount.pod:69
21663 msgid "If you want to debug the program, we recommend:"
21667 #: ../fuse/guestmount.pod:71
21670 " guestmount [...] --trace --verbose /mnt\n"
21675 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
21676 #: ../resize/virt-resize.pod:600
21681 #: ../fuse/guestmount.pod:75
21682 msgid "Other users cannot see the filesystem by default"
21686 #: ../fuse/guestmount.pod:77
21688 "If you mount a filesystem as one user (eg. root), then other users will not "
21689 "be able to see it by default. The fix is to add the FUSE C<allow_other> "
21690 "option when mounting:"
21694 #: ../fuse/guestmount.pod:81
21697 " sudo guestmount [...] -o allow_other /mnt\n"
21702 #: ../fuse/guestmount.pod:83
21703 msgid "Enabling FUSE"
21707 #: ../fuse/guestmount.pod:85
21709 "On some distros, you may need to add yourself to a special group (eg. "
21710 "C<fuse>) before you can use any FUSE filesystem. This is necessary on "
21711 "Debian and derivatives."
21715 #: ../fuse/guestmount.pod:89
21717 "On other distros, no special group is required. It is not necessary on "
21718 "Fedora or Red Hat Enterprise Linux."
21722 #: ../fuse/guestmount.pod:100
21723 msgid "Add a block device or virtual machine image."
21727 #: ../fuse/guestmount.pod:123
21728 msgid "B<--dir-cache-timeout N>"
21729 msgstr "B<--dir-cache-timeout N>"
21732 #: ../fuse/guestmount.pod:125
21734 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21735 "seconds. The readdir cache [actually, there are several semi-independent "
21736 "caches] is populated after a readdir(2) call with the stat and extended "
21737 "attributes of the files in the directory, in anticipation that they will be "
21738 "requested soon after."
21742 #: ../fuse/guestmount.pod:131
21744 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21745 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21746 "requests, only cache existing ones."
21750 #: ../fuse/guestmount.pod:151
21752 "If you have untrusted raw-format guest disk images, you should use this "
21753 "option to specify the disk format. This avoids a possible security problem "
21754 "with malicious guests (CVE-2010-3851). See also L<guestfs(3)/"
21755 "guestfs_add_drive_opts>."
21759 #: ../fuse/guestmount.pod:156
21760 msgid "B<--fuse-help>"
21761 msgstr "B<--fuse-help>"
21764 #: ../fuse/guestmount.pod:158
21765 msgid "Display help on special FUSE options (see I<-o> below)."
21769 #: ../fuse/guestmount.pod:162
21770 msgid "Display brief help and exit."
21774 #: ../fuse/guestmount.pod:186
21776 "Mount the named partition or logical volume on the given mountpoint B<in the "
21777 "guest> (this has nothing to do with mountpoints in the host)."
21781 #: ../fuse/guestmount.pod:189
21783 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
21784 "something on C</>."
21788 #: ../fuse/guestmount.pod:206
21790 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21791 "unmounted. If you specify this option, then we don't attempt to sync the "
21792 "disk. See the discussion of autosync in the L<guestfs(3)> manpage."
21796 #: ../fuse/guestmount.pod:211
21797 msgid "B<-o option>"
21798 msgstr "B<-o параметр>"
21801 #: ../fuse/guestmount.pod:213
21802 msgid "B<--option option>"
21803 msgstr "B<--option параметр>"
21806 #: ../fuse/guestmount.pod:215
21807 msgid "Pass extra options to FUSE."
21811 #: ../fuse/guestmount.pod:217
21813 "To get a list of all the extra options supported by FUSE, use the command "
21814 "below. Note that only the FUSE I<-o> options can be passed, and only some "
21815 "of them are a good idea."
21819 #: ../fuse/guestmount.pod:221
21822 " guestmount --fuse-help\n"
21827 #: ../fuse/guestmount.pod:223
21828 msgid "Some potentially useful FUSE options:"
21832 #: ../fuse/guestmount.pod:227
21833 msgid "B<-o allow_other>"
21837 #: ../fuse/guestmount.pod:229
21838 msgid "Allow other users to see the filesystem."
21842 #: ../fuse/guestmount.pod:231
21843 msgid "B<-o attr_timeout=N>"
21844 msgstr "B<-o attr_timeout=N>"
21847 #: ../fuse/guestmount.pod:233
21848 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
21852 #: ../fuse/guestmount.pod:235
21853 msgid "B<-o kernel_cache>"
21857 #: ../fuse/guestmount.pod:237
21859 "Allow the kernel to cache files (reduces the number of reads that have to go "
21860 "through the L<guestfs(3)> API). This is generally a good idea if you can "
21861 "afford the extra memory usage."
21865 #: ../fuse/guestmount.pod:241
21866 msgid "B<-o uid=N> B<-o gid=N>"
21867 msgstr "B<-o uid=N> B<-o gid=N>"
21870 #: ../fuse/guestmount.pod:243
21872 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
21873 "the chosen values."
21877 #: ../fuse/guestmount.pod:252
21879 "Add devices and mount everything read-only. Also disallow writes and make "
21880 "the disk appear read-only to FUSE."
21884 #: ../fuse/guestmount.pod:255
21886 "This is highly recommended if you are not going to edit the guest disk. If "
21887 "the guest is running and this option is I<not> supplied, then there is a "
21888 "strong risk of disk corruption in the guest. We try to prevent this from "
21889 "happening, but it is not always possible."
21893 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
21894 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21895 msgstr "Див. також L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21898 #: ../fuse/guestmount.pod:264
21899 msgid "Enable SELinux support for the guest."
21903 #: ../fuse/guestmount.pod:270
21904 msgid "Enable verbose messages from underlying libguestfs."
21908 #: ../fuse/guestmount.pod:276
21909 msgid "Display the program version and exit."
21913 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
21914 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
21915 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21916 msgstr "Див. L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21919 #: ../fuse/guestmount.pod:289
21921 msgstr "B<--trace>"
21924 #: ../fuse/guestmount.pod:291
21925 msgid "Trace libguestfs calls and entry into each FUSE function."
21929 #: ../fuse/guestmount.pod:293
21930 msgid "This also stops the daemon from forking into the background."
21934 #: ../fuse/guestmount.pod:319
21936 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21937 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
21940 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21941 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
21945 #: ../fuse/guestmount.pod:334
21946 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
21950 #: ../inspector/virt-inspector.pod:5
21952 "virt-inspector - Display operating system version and other information "
21953 "about a virtual machine"
21957 #: ../inspector/virt-inspector.pod:9
21960 " virt-inspector [--options] -d domname\n"
21965 #: ../inspector/virt-inspector.pod:11
21968 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
21973 #: ../inspector/virt-inspector.pod:15
21976 " virt-inspector domname\n"
21981 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
21984 " virt-inspector disk.img [disk.img ...]\n"
21989 #: ../inspector/virt-inspector.pod:21
21991 "B<virt-inspector> examines a virtual machine or disk image and tries to "
21992 "determine the version of the operating system and other information about "
21993 "the virtual machine."
21997 #: ../inspector/virt-inspector.pod:25
21998 msgid "Virt-inspector produces XML output for feeding into other programs."
22002 #: ../inspector/virt-inspector.pod:27
22004 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22005 "the libvirt domain (see: C<virsh list --all>)."
22009 #: ../inspector/virt-inspector.pod:30
22011 "You can also run virt-inspector directly on disk images from a single "
22012 "virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain "
22013 "has several block devices, in which case you should list several I<-a> "
22014 "options one after another, with the first corresponding to the guest's C</"
22015 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
22019 #: ../inspector/virt-inspector.pod:37
22021 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22022 "keys and similar."
22026 #: ../inspector/virt-inspector.pod:40
22028 "Virt-inspector can only inspect and report upon I<one domain at a time>. To "
22029 "inspect several virtual machines, you have to run virt-inspector several "
22030 "times (for example, from a shell script for-loop)."
22034 #: ../inspector/virt-inspector.pod:45
22036 "Because virt-inspector needs direct access to guest images, it won't "
22037 "normally work over remote libvirt connections."
22041 #: ../inspector/virt-inspector.pod:48
22043 "All of the information available from virt-inspector is also available "
22044 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
22045 "The same information can also be fetched using guestfish or via libguestfs "
22046 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22047 "WITH OTHER PROGRAMMING LANGUAGES>)."
22051 #: ../inspector/virt-inspector.pod:81
22053 "Libvirt is only used if you specify a C<domname> on the command line. If "
22054 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22059 #: ../inspector/virt-inspector.pod:94
22061 "When prompting for keys and passphrases, virt-inspector normally turns "
22062 "echoing off so you cannot see what you are typing. If you are not worried "
22063 "about Tempest attacks and there is no one else in the room you can specify "
22064 "this flag to see what you are typing."
22068 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
22069 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
22070 #: ../tools/virt-win-reg.pl:144
22072 "Specify the format of disk images given on the command line. If this is "
22073 "omitted then the format is autodetected from the content of the disk image."
22077 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
22078 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
22079 #: ../tools/virt-win-reg.pl:148
22081 "If disk images are requested from libvirt, then this program asks libvirt "
22082 "for this information. In this case, the value of the format parameter is "
22087 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:370
22088 #: ../resize/virt-resize.pod:462 ../sparsify/virt-sparsify.pod:132
22089 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
22090 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22092 "If working with untrusted raw-format guest disk images, you should ensure "
22093 "the format is always specified."
22097 #: ../inspector/virt-inspector.pod:139
22098 msgid "Previous versions of virt-inspector allowed you to write either:"
22102 #: ../inspector/virt-inspector.pod:145
22105 " virt-inspector guestname\n"
22110 #: ../inspector/virt-inspector.pod:153
22115 #: ../inspector/virt-inspector.pod:155
22117 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22118 "C<virt-inspector.rng> which is supplied with libguestfs. This section is "
22119 "just an overview."
22123 #: ../inspector/virt-inspector.pod:159
22125 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22126 "more E<lt>operatingsystemE<gt> elements. You would only see more than one "
22127 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22128 "which is vanishingly rare in real world VMs."
22132 #: ../inspector/virt-inspector.pod:164
22133 msgid "E<lt>operatingsystemE<gt>"
22137 #: ../inspector/virt-inspector.pod:166
22139 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22140 "describe the operating system, its architecture, the descriptive \"product "
22141 "name\" string, the type of OS and so on, as in this example:"
22145 #: ../inspector/virt-inspector.pod:170
22148 " <operatingsystems>\n"
22149 " <operatingsystem>\n"
22150 " <root>/dev/sda2</root>\n"
22151 " <name>windows</name>\n"
22152 " <arch>i386</arch>\n"
22153 " <distro>windows</distro>\n"
22154 " <product_name>Windows 7 Enterprise</product_name>\n"
22155 " <product_variant>Client</product_variant>\n"
22156 " <major_version>6</major_version>\n"
22157 " <minor_version>1</minor_version>\n"
22158 " <windows_systemroot>/Windows</windows_systemroot>\n"
22159 " <format>installed</format>\n"
22164 #: ../inspector/virt-inspector.pod:183
22166 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22167 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22168 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22169 "architecture. The other fields are fairly self-explanatory, but because "
22170 "these fields are taken directly from the libguestfs inspection API you can "
22171 "find precise information from L<guestfs(3)/INSPECTION>."
22175 #: ../inspector/virt-inspector.pod:191
22177 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22178 "of view of libguestfs (block devices may have completely different names "
22179 "inside the VM itself)."
22183 #: ../inspector/virt-inspector.pod:195
22184 msgid "E<lt>mountpointsE<gt>"
22188 #: ../inspector/virt-inspector.pod:197
22190 "Un*x-like guests typically have multiple filesystems which are mounted at "
22191 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22192 "element which looks like this:"
22196 #: ../inspector/virt-inspector.pod:201
22199 " <operatingsystems>\n"
22200 " <operatingsystem>\n"
22203 " <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22204 " <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22205 " </mountpoints>\n"
22210 #: ../inspector/virt-inspector.pod:209
22212 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22213 "and may have completely different names inside the guest. Only mountable "
22214 "filesystems appear in this list, not things like swap devices."
22218 #: ../inspector/virt-inspector.pod:214
22219 msgid "E<lt>filesystemsE<gt>"
22223 #: ../inspector/virt-inspector.pod:216
22225 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22226 "filesystems belonging to the guest, including swap and empty partitions. "
22227 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22228 "this OS or shared with this OS and other OSes)."
22232 #: ../inspector/virt-inspector.pod:222
22233 msgid "You might see something like this:"
22237 #: ../inspector/virt-inspector.pod:224
22240 " <operatingsystems>\n"
22241 " <operatingsystem>\n"
22244 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22245 " <type>ext4</type>\n"
22246 " <label>Fedora-13-x86_64</label>\n"
22247 " <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22253 #: ../inspector/virt-inspector.pod:234
22255 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22256 "the label, and the UUID."
22260 #: ../inspector/virt-inspector.pod:237
22261 msgid "E<lt>applicationsE<gt>"
22265 #: ../inspector/virt-inspector.pod:239
22267 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22268 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22273 #: ../inspector/virt-inspector.pod:243
22275 "E<lt>package_formatE<gt>, if present, describes the packaging system used. "
22276 "Typical values would be C<rpm> and C<deb>."
22280 #: ../inspector/virt-inspector.pod:246
22282 "E<lt>package_managementE<gt>, if present, describes the package manager. "
22283 "Typical values include C<yum>, C<up2date> and C<apt>"
22287 #: ../inspector/virt-inspector.pod:249
22288 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22292 #: ../inspector/virt-inspector.pod:252
22295 " <operatingsystems>\n"
22296 " <operatingsystem>\n"
22298 " <applications>\n"
22300 " <name>coreutils</name>\n"
22301 " <version>8.5</version>\n"
22302 " <release>1</release>\n"
22303 " </application>\n"
22308 #: ../inspector/virt-inspector.pod:262
22310 "The version and release fields may not be available for some types guests. "
22311 "Other fields are possible, see L<guestfs(3)/"
22312 "guestfs_inspect_list_applications>."
22316 #: ../inspector/virt-inspector.pod:266
22317 msgid "E<lt>drive_mappingsE<gt>"
22321 #: ../inspector/virt-inspector.pod:268
22323 "For operating systems like Windows which use drive letters, virt-inspector "
22324 "is able to find out how drive letters map to filesystems."
22328 #: ../inspector/virt-inspector.pod:272
22331 " <operatingsystems>\n"
22332 " <operatingsystem>\n"
22334 " <drive_mappings>\n"
22335 " <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22336 " <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22337 " </drive_mappings>\n"
22342 #: ../inspector/virt-inspector.pod:280
22344 "In the example above, drive C maps to the filesystem on the second partition "
22345 "on the first disk, and drive E maps to the filesystem on the first partition "
22346 "on the second disk."
22350 #: ../inspector/virt-inspector.pod:284
22352 "Note that this only covers permanent local filesystem mappings, not things "
22353 "like network shares. Furthermore NTFS volume mount points may not be listed "
22358 #: ../inspector/virt-inspector.pod:288
22359 msgid "E<lt>iconE<gt>"
22363 #: ../inspector/virt-inspector.pod:290
22365 "Virt-inspector is sometimes able to extract an icon or logo for the guest. "
22366 "The icon is returned as base64-encoded PNG data. Note that the icon can be "
22367 "very large and high quality."
22371 #: ../inspector/virt-inspector.pod:294
22374 " <operatingsystems>\n"
22375 " <operatingsystem>\n"
22378 " iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22379 " [... many lines of base64 data ...]\n"
22385 #: ../inspector/virt-inspector.pod:302
22387 "To display the icon, you have to extract it and convert the base64 data back "
22388 "to a binary file. Use an XPath query or simply an editor to extract the "
22389 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22394 #: ../inspector/virt-inspector.pod:307
22397 " base64 -i -d < icon.data > icon.png\n"
22402 #: ../inspector/virt-inspector.pod:309
22403 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22407 #: ../inspector/virt-inspector.pod:311
22409 "Virt-inspector can detect some operating system installers on install disks, "
22410 "live CDs, bootable USB keys and more."
22414 #: ../inspector/virt-inspector.pod:314
22416 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22417 "fields may be present to indicate a live CD, network installer, or one part "
22418 "of a multipart CD. For example:"
22422 #: ../inspector/virt-inspector.pod:318
22425 " <operatingsystems>\n"
22426 " <operatingsystem>\n"
22427 " <root>/dev/sda</root>\n"
22428 " <name>linux</name>\n"
22429 " <arch>i386</arch>\n"
22430 " <distro>ubuntu</distro>\n"
22431 " <product_name>Ubuntu 10.10 "Maverick Meerkat"</product_name>\n"
22432 " <major_version>10</major_version>\n"
22433 " <minor_version>10</minor_version>\n"
22434 " <format>installer</format>\n"
22440 #: ../inspector/virt-inspector.pod:330
22441 msgid "USING XPATH"
22445 #: ../inspector/virt-inspector.pod:332
22447 "You can use the XPath query language to select parts of the XML. We "
22448 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
22452 #: ../inspector/virt-inspector.pod:338
22455 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
22457 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22458 " <type>ext4</type>\n"
22464 #: ../inspector/virt-inspector.pod:344
22467 " $ virt-inspector -d Guest | \\\n"
22468 " xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22474 #: ../inspector/virt-inspector.pod:348
22477 " $ virt-inspector -d Guest | \\\n"
22478 " xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
22479 " [displays the guest icon, if there is one]\n"
22484 #: ../inspector/virt-inspector.pod:359
22485 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22489 #: ../inspector/virt-inspector.pod:361
22491 "Early versions of libguestfs shipped with a different virt-inspector program "
22492 "written in Perl (the current version is written in C). The XML output of "
22493 "the Perl virt-inspector was different and it could also output in other "
22494 "formats like text."
22498 #: ../inspector/virt-inspector.pod:366
22500 "The old virt-inspector is no longer supported or shipped with libguestfs."
22504 #: ../inspector/virt-inspector.pod:369
22506 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22507 "versions of virt-inspector with different names:"
22511 #: ../inspector/virt-inspector.pod:372
22514 " virt-inspector Old Perl version.\n"
22515 " virt-inspector2 New C version.\n"
22520 #: ../inspector/virt-inspector.pod:382
22522 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
22523 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22527 #: ../inspector/virt-inspector.pod:399
22528 msgid "Matthew Booth L<mbooth@redhat.com>"
22532 #: ../java/examples/guestfs-java.pod:5
22533 msgid "guestfs-java - How to use libguestfs from Java"
22537 #: ../java/examples/guestfs-java.pod:9
22540 " import com.redhat.et.libguestfs.*;\n"
22545 #: ../java/examples/guestfs-java.pod:11
22548 " GuestFS g = new GuestFS ();\n"
22549 " g.add_drive_opts (\"disk.img\", null);\n"
22555 #: ../java/examples/guestfs-java.pod:17
22557 "This manual page documents how to call libguestfs from the Java programming "
22558 "language. This page just documents the differences from the C API and gives "
22559 "some examples. If you are not familiar with using libguestfs, you also need "
22560 "to read L<guestfs(3)>."
22564 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22565 msgid "CLOSING THE HANDLE"
22569 #: ../java/examples/guestfs-java.pod:24
22571 "The handle is closed when it is reaped by the garbage collector. Because "
22572 "libguestfs handles include a lot of state, it is also possible to close (and "
22573 "hence free) them explicitly by calling the C<close> method."
22577 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
22578 #: ../python/examples/guestfs-python.pod:21
22579 #: ../ruby/examples/guestfs-ruby.pod:22
22584 #: ../java/examples/guestfs-java.pod:31
22586 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22587 "exception. This has a single parameter which is the error message (a "
22592 #: ../java/examples/guestfs-java.pod:35
22593 msgid "Calling any method on a closed handle raises the same exception."
22597 #: ../java/examples/guestfs-java.pod:47
22599 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
22600 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22601 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22605 #: ../ocaml/examples/guestfs-ocaml.pod:5
22606 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22610 #: ../ocaml/examples/guestfs-ocaml.pod:9
22611 msgid "Module style:"
22615 #: ../ocaml/examples/guestfs-ocaml.pod:11
22618 " let g = Guestfs.create () in\n"
22619 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22620 " Guestfs.launch g;\n"
22625 #: ../ocaml/examples/guestfs-ocaml.pod:15
22626 msgid "Object-oriented style:"
22630 #: ../ocaml/examples/guestfs-ocaml.pod:17
22633 " let g = new Guestfs.guestfs () in\n"
22634 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22640 #: ../ocaml/examples/guestfs-ocaml.pod:21
22643 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22645 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22650 #: ../ocaml/examples/guestfs-ocaml.pod:27
22652 "This manual page documents how to call libguestfs from the OCaml programming "
22653 "language. This page just documents the differences from the C API and gives "
22654 "some examples. If you are not familiar with using libguestfs, you also need "
22655 "to read L<guestfs(3)>."
22659 #: ../ocaml/examples/guestfs-ocaml.pod:32
22660 msgid "PROGRAMMING STYLES"
22664 #: ../ocaml/examples/guestfs-ocaml.pod:34
22666 "There are two different programming styles supported by the OCaml bindings. "
22667 "You can use a module style, with each C function mapped to an OCaml function:"
22671 #: ../ocaml/examples/guestfs-ocaml.pod:38
22674 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22679 #: ../ocaml/examples/guestfs-ocaml.pod:40
22684 #: ../ocaml/examples/guestfs-ocaml.pod:42
22687 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22692 #: ../ocaml/examples/guestfs-ocaml.pod:44
22694 "Alternately you can use an object-oriented style, calling methods on the "
22695 "class C<Guestfs.guestfs>:"
22699 #: ../ocaml/examples/guestfs-ocaml.pod:47
22702 " method set_verbose : bool -> unit\n"
22707 #: ../ocaml/examples/guestfs-ocaml.pod:49
22709 "The object-oriented style is usually briefer, and the minor performance "
22710 "penalty isn't noticable in the general overhead of performing libguestfs "
22715 #: ../ocaml/examples/guestfs-ocaml.pod:55
22717 "The handle is closed when it is reaped by the garbage collector. Because "
22718 "libguestfs handles include a lot of state, it is also possible to close (and "
22719 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22724 #: ../ocaml/examples/guestfs-ocaml.pod:62
22726 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22727 "exception. This has a single parameter which is the error message (a "
22732 #: ../ocaml/examples/guestfs-ocaml.pod:66
22734 "Calling any function/method on a closed handle raises C<Guestfs."
22735 "Handle_closed>. The single parameter is the name of the function that you "
22740 #: ../ocaml/examples/guestfs-ocaml.pod:80
22742 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22743 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22744 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22748 #: ../perl/examples/guestfs-perl.pod:5
22749 msgid "guestfs-perl - How to use libguestfs from Perl"
22753 #: ../perl/examples/guestfs-perl.pod:9
22756 " use Sys::Guestfs;\n"
22761 #: ../perl/examples/guestfs-perl.pod:11
22764 " my $h = Sys::Guestfs->new ();\n"
22765 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22766 " $h->launch ();\n"
22767 " $h->mount_options ('', '/dev/sda1', '/');\n"
22768 " $h->touch ('/hello');\n"
22774 #: ../perl/examples/guestfs-perl.pod:20
22776 "This manual page documents how to call libguestfs from the Perl programming "
22777 "language. This page just documents the differences from the C API and gives "
22778 "some examples. If you are not familiar with using libguestfs, you also need "
22779 "to read L<guestfs(3)>. To read the full Perl API, see L<Sys::Guestfs(3)>."
22783 #: ../perl/examples/guestfs-perl.pod:26
22788 #: ../perl/examples/guestfs-perl.pod:28
22790 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
22795 #: ../perl/examples/guestfs-perl.pod:41
22797 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
22798 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
22799 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22803 #: ../python/examples/guestfs-python.pod:5
22804 msgid "guestfs-python - How to use libguestfs from Python"
22808 #: ../python/examples/guestfs-python.pod:9
22811 " import guestfs\n"
22812 " g = guestfs.GuestFS ()\n"
22813 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
22819 #: ../python/examples/guestfs-python.pod:16
22821 "This manual page documents how to call libguestfs from the Python "
22822 "programming language. This page just documents the differences from the C "
22823 "API and gives some examples. If you are not familiar with using libguestfs, "
22824 "you also need to read L<guestfs(3)>."
22828 #: ../python/examples/guestfs-python.pod:23
22830 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
22831 "single string argument which is the error message."
22835 #: ../python/examples/guestfs-python.pod:26
22836 msgid "MORE DOCUMENTATION"
22840 #: ../python/examples/guestfs-python.pod:28
22845 #: ../python/examples/guestfs-python.pod:30
22849 " >>> import guestfs\n"
22850 " >>> help (guestfs)\n"
22855 #: ../python/examples/guestfs-python.pod:44
22857 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22858 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
22859 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22863 #: ../rescue/virt-rescue.pod:5
22864 msgid "virt-rescue - Run a rescue shell on a virtual machine"
22868 #: ../rescue/virt-rescue.pod:9
22871 " virt-rescue [--options] -d domname\n"
22876 #: ../rescue/virt-rescue.pod:11
22879 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
22884 #: ../rescue/virt-rescue.pod:15
22887 " virt-rescue [--options] domname\n"
22892 #: ../rescue/virt-rescue.pod:17
22895 " virt-rescue [--options] disk.img [disk.img ...]\n"
22900 #: ../rescue/virt-rescue.pod:21
22902 "You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
22903 "probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
22904 "you from doing this, but doesn't catch all cases."
22908 #: ../rescue/virt-rescue.pod:25
22910 "However if you use the I<--ro> (read only) option, then you can attach a "
22911 "shell to a live virtual machine. The results might be strange or "
22912 "inconsistent at times but you won't get disk corruption."
22916 #: ../rescue/virt-rescue.pod:31
22918 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
22919 "need for a CD. virt-rescue gives you a rescue shell and some simple "
22920 "recovery tools which you can use to examine or rescue a virtual machine or "
22925 #: ../rescue/virt-rescue.pod:36
22927 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
22928 "on disk image(s):"
22932 #: ../rescue/virt-rescue.pod:39
22935 " virt-rescue -d GuestName\n"
22940 #: ../rescue/virt-rescue.pod:41
22943 " virt-rescue --ro -a /path/to/disk.img\n"
22948 #: ../rescue/virt-rescue.pod:43
22951 " virt-rescue -a /dev/sdc\n"
22956 #: ../rescue/virt-rescue.pod:45
22957 msgid "For live VMs you I<must> use the --ro option."
22961 #: ../rescue/virt-rescue.pod:47
22963 "When you run virt-rescue on a virtual machine or disk image, you are placed "
22964 "in an interactive bash shell where you can use many ordinary Linux "
22965 "commands. What you see in C</> (C</bin>, C</lib> etc) is the rescue "
22966 "appliance. You must mount the virtual machine's filesystems by hand. There "
22967 "is an empty directory called C</sysroot> where you can mount filesystems."
22971 #: ../rescue/virt-rescue.pod:54
22973 "In the example below, we list logical volumes, then choose one to mount "
22974 "under C</sysroot>:"
22978 #: ../rescue/virt-rescue.pod:57
22982 " LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
22983 " lv_root vg_f11x64 -wi-a- 8.83G\n"
22984 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
22985 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
22986 " ><rescue> ls /sysroot\n"
22991 #: ../rescue/virt-rescue.pod:64
22993 "If you don't know what filesystems are available on the virtual machine then "
22994 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
22998 #: ../rescue/virt-rescue.pod:70
23000 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23001 "virtual machine. For example you can use it on a blank file if you want to "
23002 "partition that file (although we would recommend using L<guestfish(1)> "
23003 "instead as it is more suitable for this purpose). You can even use virt-"
23004 "rescue on things like SD cards."
23008 #: ../rescue/virt-rescue.pod:76
23010 "Virt-rescue does not require root. You only need to run it as root if you "
23011 "need root to open the disk image."
23015 #: ../rescue/virt-rescue.pod:79
23017 "This tool is just designed for quick interactive hacking on a virtual "
23018 "machine. For more structured access to a virtual machine disk image, you "
23019 "should use L<guestfs(3)>. To get a structured shell that you can use to "
23020 "make scripted changes to guests, use L<guestfish(1)>."
23024 #: ../rescue/virt-rescue.pod:103
23025 msgid "B<--append kernelopts>"
23026 msgstr "B<--append параметри_ядра>"
23029 #: ../rescue/virt-rescue.pod:105
23030 msgid "Pass additional options to the rescue kernel."
23034 #: ../rescue/virt-rescue.pod:135
23037 " virt-rescue --format=raw -a disk.img\n"
23042 #: ../rescue/virt-rescue.pod:139
23045 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23050 #: ../rescue/virt-rescue.pod:148
23055 #: ../rescue/virt-rescue.pod:150
23056 msgid "B<--memsize MB>"
23057 msgstr "B<--memsize МБ>"
23060 #: ../rescue/virt-rescue.pod:152
23062 "Change the amount of memory allocated to the rescue system. The default is "
23063 "set by libguestfs and is small but adequate for running system tools. The "
23064 "occasional program might need more memory. The parameter is specified in "
23069 #: ../rescue/virt-rescue.pod:157
23070 msgid "B<--network>"
23071 msgstr "B<--network>"
23074 #: ../rescue/virt-rescue.pod:159
23075 msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
23079 #: ../rescue/virt-rescue.pod:165
23080 msgid "Open the image read-only."
23084 #: ../rescue/virt-rescue.pod:175
23086 "Enable SELinux in the rescue appliance. You should read L<guestfs(3)/"
23087 "SELINUX> before using this option."
23091 #: ../rescue/virt-rescue.pod:178
23096 #: ../rescue/virt-rescue.pod:180
23097 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23101 #: ../rescue/virt-rescue.pod:198
23103 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23104 "are done read-write."
23108 #: ../rescue/virt-rescue.pod:211
23109 msgid "Previous versions of virt-rescue allowed you to write either:"
23113 #: ../rescue/virt-rescue.pod:213
23116 " virt-rescue disk.img [disk.img ...]\n"
23121 #: ../rescue/virt-rescue.pod:217
23124 " virt-rescue guestname\n"
23129 #: ../rescue/virt-rescue.pod:225
23134 #: ../rescue/virt-rescue.pod:227
23136 "Adding the I<--network> option enables QEMU user networking in the rescue "
23137 "appliance. There are some differences between user networking and ordinary "
23142 #: ../rescue/virt-rescue.pod:233
23143 msgid "ping does not work"
23147 #: ../rescue/virt-rescue.pod:235
23149 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23150 "send the ping packets, and because virt-rescue must be able to run as non-"
23151 "root, QEMU user networking is not able to emulate the L<ping(8)> command. "
23152 "The ping command will appear to resolve addresses but will not be able to "
23153 "send or receive any packets. This does not mean that the network is not "
23158 #: ../rescue/virt-rescue.pod:242
23159 msgid "cannot receive connections"
23163 #: ../rescue/virt-rescue.pod:244
23164 msgid "QEMU user networking cannot receive incoming connections."
23168 #: ../rescue/virt-rescue.pod:246
23169 msgid "making TCP connections"
23173 #: ../rescue/virt-rescue.pod:248
23175 "The virt-rescue appliance needs to be small and so does not include many "
23176 "network tools. In particular there is no L<telnet(1)> command. You can "
23177 "make TCP connections from the shell using the magical C</dev/tcp/"
23178 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23182 #: ../rescue/virt-rescue.pod:253
23185 " exec 3<>/dev/tcp/redhat.com/80\n"
23186 " echo \"GET /\" >&3\n"
23192 #: ../rescue/virt-rescue.pod:257
23193 msgid "See L<bash(1)> for more details."
23197 #: ../rescue/virt-rescue.pod:263
23199 "Several environment variables affect virt-rescue. See L<guestfs(3)/"
23200 "ENVIRONMENT VARIABLES> for the complete list."
23204 #: ../rescue/virt-rescue.pod:290
23206 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
23207 "libguestfs.org/>."
23211 #: ../resize/virt-resize.pod:5
23212 msgid "virt-resize - Resize a virtual machine disk"
23216 #: ../resize/virt-resize.pod:9
23219 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23220 " [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23221 " [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23226 #: ../resize/virt-resize.pod:15
23228 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23229 "larger or smaller overall, and resizing or deleting any partitions contained "
23234 #: ../resize/virt-resize.pod:19
23236 "Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
23237 "not> be used on live virtual machines - for consistent results, shut the "
23238 "virtual machine down before resizing it."
23242 #: ../resize/virt-resize.pod:23
23244 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23245 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23249 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:576
23250 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:469
23251 #: ../src/guestfs.pod:1287 ../src/guestfs.pod:1426 ../src/guestfs.pod:2675
23256 #: ../resize/virt-resize.pod:33
23258 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23259 "fill the extra 5GB of space."
23263 #: ../resize/virt-resize.pod:36
23266 " virt-filesystems --long -h --all -a olddisk\n"
23271 #: ../resize/virt-resize.pod:38
23274 " truncate -r olddisk newdisk\n"
23275 " truncate -s +5G newdisk\n"
23280 #: ../resize/virt-resize.pod:41
23283 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23284 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23289 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:583
23290 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:475
23291 #: ../src/guestfs.pod:1291 ../src/guestfs.pod:1430 ../src/guestfs.pod:2700
23296 #: ../resize/virt-resize.pod:46
23298 "As above, but make the /boot partition 200MB bigger, while giving the "
23299 "remaining space to /dev/sda2:"
23303 #: ../resize/virt-resize.pod:49
23306 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23307 " olddisk newdisk\n"
23312 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:589
23313 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:486
23314 #: ../src/guestfs.pod:1436
23319 #: ../resize/virt-resize.pod:54
23321 "As in the first example, but expand a logical volume as the final step. "
23322 "This is what you would typically use for Linux guests that use LVM:"
23326 #: ../resize/virt-resize.pod:58
23329 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23330 " olddisk newdisk\n"
23335 #: ../resize/virt-resize.pod:61
23340 #: ../resize/virt-resize.pod:63
23342 "As in the first example, but the output format will be qcow2 instead of a "
23347 #: ../resize/virt-resize.pod:66
23350 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23351 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23356 #: ../resize/virt-resize.pod:71
23357 msgid "DETAILED USAGE"
23358 msgstr "ДОКЛАДНІШЕ ЩОДО ВИКОРИСТАННЯ"
23361 #: ../resize/virt-resize.pod:73
23362 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23363 msgstr "РОЗШИРЕННЯ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
23366 #: ../resize/virt-resize.pod:77
23367 msgid "1. Shut down the virtual machine"
23371 #: ../resize/virt-resize.pod:79
23372 msgid "2. Locate input disk image"
23376 #: ../resize/virt-resize.pod:81
23378 "Locate the input disk image (ie. the file or device on the host containing "
23379 "the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
23380 "dumpxml> like this to find the disk image name:"
23384 #: ../resize/virt-resize.pod:85
23387 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23388 " Found 1 nodes:\n"
23390 " <source dev=\"/dev/vg/lv_guest\" />\n"
23395 #: ../resize/virt-resize.pod:90
23396 msgid "3. Look at current sizing"
23400 #: ../resize/virt-resize.pod:92
23401 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23405 #: ../resize/virt-resize.pod:95
23408 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23409 " Name Type Size Parent\n"
23410 " /dev/sda1 partition 101M /dev/sda\n"
23411 " /dev/sda2 partition 7.9G /dev/sda\n"
23412 " /dev/sda device 8.0G -\n"
23417 #: ../resize/virt-resize.pod:101
23419 "(This example is a virtual machine with an 8 GB disk which we would like to "
23420 "expand up to 10 GB)."
23424 #: ../resize/virt-resize.pod:104
23425 msgid "4. Create output disk"
23429 #: ../resize/virt-resize.pod:106
23431 "Virt-resize cannot do in-place disk modifications. You have to have space "
23432 "to store the resized output disk."
23436 #: ../resize/virt-resize.pod:109
23438 "To store the resized disk image in a file, create a file of a suitable size:"
23442 #: ../resize/virt-resize.pod:112
23445 " # rm -f outdisk\n"
23446 " # truncate -s 10G outdisk\n"
23451 #: ../resize/virt-resize.pod:115
23452 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23456 #: ../resize/virt-resize.pod:117
23459 " # lvcreate -L 10G -n lv_name vg_name\n"
23464 #: ../resize/virt-resize.pod:119
23465 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23469 #: ../resize/virt-resize.pod:121
23472 " # virsh pool-list\n"
23473 " # virsh vol-create-as poolname newvol 10G\n"
23478 #: ../resize/virt-resize.pod:124
23480 msgstr "5. Зміна розміру"
23483 #: ../resize/virt-resize.pod:126
23485 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23486 "file) and the output disk. The output disk is the one created in the "
23491 #: ../resize/virt-resize.pod:130
23494 " # virt-resize indisk outdisk\n"
23499 #: ../resize/virt-resize.pod:132
23501 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23502 "I<without> resizing or changing any existing partitions. If C<outdisk> is "
23503 "larger, then an extra, empty partition is created at the end of the disk "
23504 "covering the extra space. If C<outdisk> is smaller, then it will give an "
23509 #: ../resize/virt-resize.pod:138
23511 "More realistically you'd want to expand existing partitions in the disk "
23512 "image by passing extra options (for the full list see the L</OPTIONS> "
23517 #: ../resize/virt-resize.pod:142
23519 "L</--expand> is the most useful option. It expands the named partition "
23520 "within the disk to fill any extra space:"
23524 #: ../resize/virt-resize.pod:145
23527 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23532 #: ../resize/virt-resize.pod:147
23534 "(In this case, an extra partition is I<not> created at the end of the disk, "
23535 "because there will be no unused space)."
23539 #: ../resize/virt-resize.pod:150
23541 "L</--resize> is the other commonly used option. The following would "
23542 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23543 "rest of the available space:"
23547 #: ../resize/virt-resize.pod:154
23550 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23551 " indisk outdisk\n"
23556 #: ../resize/virt-resize.pod:157
23558 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23559 "if virt-resize knows how, it will resize the contents, the equivalent of "
23560 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23561 "or L<btrfs(8)>. However virt-resize does not know how to resize some "
23562 "filesystems, so you would have to online resize them after booting the guest."
23566 #: ../resize/virt-resize.pod:164
23567 msgid "Other options are covered below."
23571 #: ../resize/virt-resize.pod:166
23573 msgstr "6. Перевірка"
23576 #: ../resize/virt-resize.pod:168
23577 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23581 #: ../resize/virt-resize.pod:170
23582 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23586 #: ../resize/virt-resize.pod:172
23589 " # virsh edit guestname\n"
23594 #: ../resize/virt-resize.pod:174
23596 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
23597 "html#elementsDisks>"
23601 #: ../resize/virt-resize.pod:177
23602 msgid "Then start up the domain with the new, resized disk:"
23606 #: ../resize/virt-resize.pod:179
23609 " # virsh start guestname\n"
23614 #: ../resize/virt-resize.pod:181
23616 "and check that it still works. See also the L</NOTES> section below for "
23617 "additional information."
23621 #: ../resize/virt-resize.pod:184
23622 msgid "7. Resize LVs etc inside the guest"
23626 #: ../resize/virt-resize.pod:186
23627 msgid "(This can also be done offline using L<guestfish(1)>)"
23631 #: ../resize/virt-resize.pod:188
23633 "Once the guest has booted you should see the new space available, at least "
23634 "for filesystems that virt-resize knows how to resize, and for PVs. The user "
23635 "may need to resize LVs inside PVs, and also resize filesystem types that "
23636 "virt-resize does not know how to expand."
23640 #: ../resize/virt-resize.pod:195
23641 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23645 #: ../resize/virt-resize.pod:197
23647 "Shrinking is somewhat more complex than expanding, and only an overview is "
23652 #: ../resize/virt-resize.pod:200
23654 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23655 "filesystems). The user has to shrink content before passing the disk image "
23656 "to virt-resize, and virt-resize will check that the content has been shrunk "
23661 #: ../resize/virt-resize.pod:205
23662 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23666 #: ../resize/virt-resize.pod:207
23668 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23669 "steps 3 and 4 above to allocate a new disk image."
23673 #: ../resize/virt-resize.pod:210
23675 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23679 #: ../resize/virt-resize.pod:213
23680 msgid "IGNORING OR DELETING PARTITIONS"
23684 #: ../resize/virt-resize.pod:215
23686 "virt-resize also gives a convenient way to ignore or delete partitions when "
23687 "copying from the input disk to the output disk. Ignoring a partition speeds "
23688 "up the copy where you don't care about the existing contents of a "
23689 "partition. Deleting a partition removes it completely, but note that it "
23690 "also renumbers any partitions after the one which is deleted, which can "
23691 "leave some guests unbootable."
23695 #: ../resize/virt-resize.pod:222
23696 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23700 #: ../resize/virt-resize.pod:224
23702 "If the input disk is in qcow2 format, then you may prefer that the output is "
23703 "in qcow2 format as well. Alternately, virt-resize can convert the format on "
23704 "the fly. The output format is simply determined by the format of the empty "
23705 "output container that you provide. Thus to create qcow2 output, use:"
23709 #: ../resize/virt-resize.pod:230
23712 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23717 #: ../resize/virt-resize.pod:232
23718 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23722 #: ../resize/virt-resize.pod:234
23723 msgid "Similarly, to get non-sparse raw output use:"
23727 #: ../resize/virt-resize.pod:236
23730 " fallocate -l size outdisk\n"
23735 #: ../resize/virt-resize.pod:238
23737 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
23738 "dev/zero of=outdisk bs=1M count=..>)"
23742 #: ../resize/virt-resize.pod:247 ../sparsify/virt-sparsify.pod:105
23743 msgid "Display help."
23747 #: ../resize/virt-resize.pod:249
23749 #| msgid "B<--ignore part>"
23750 msgid "B<--align-first auto>"
23751 msgstr "B<--ignore розділ>"
23754 #: ../resize/virt-resize.pod:251
23756 #| msgid "B<--listen>"
23757 msgid "B<--align-first never>"
23758 msgstr "B<--listen>"
23761 #: ../resize/virt-resize.pod:253
23762 msgid "B<--align-first always>"
23766 #: ../resize/virt-resize.pod:255
23768 "Align the first partition for improved performance (see also the I<--"
23769 "alignment> option)."
23773 #: ../resize/virt-resize.pod:258
23775 "The default is I<--align-first auto> which only aligns the first partition "
23776 "if it is safe to do so. That is, only when we know how to fix the "
23777 "bootloader automatically, and at the moment that can only be done for "
23782 #: ../resize/virt-resize.pod:263
23784 "I<--align-first never> means we never move the first partition. This is the "
23785 "safest option. Try this if the guest does not boot after resizing."
23789 #: ../resize/virt-resize.pod:267
23791 "I<--align-first always> means we always align the first partition (if it "
23792 "needs to be aligned). For some guests this will break the bootloader, "
23793 "making the guest unbootable."
23797 #: ../resize/virt-resize.pod:271
23799 #| msgid "B<--time-t>"
23800 msgid "B<--alignment N>"
23801 msgstr "B<--time-t>"
23804 #: ../resize/virt-resize.pod:273
23806 "Set the alignment of partitions to C<N> sectors. The default in virt-resize "
23807 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
23811 #: ../resize/virt-resize.pod:277
23813 "Assuming 512 byte sector size inside the guest, here are some suitable "
23818 #: ../resize/virt-resize.pod:282
23819 msgid "I<--alignment 1> (512 bytes)"
23823 #: ../resize/virt-resize.pod:284
23825 "The partitions would be packed together as closely as possible, but would be "
23826 "completely unaligned. In some cases this can cause very poor performance. "
23827 "See L<virt-alignment-scan(1)> for further details."
23831 #: ../resize/virt-resize.pod:288
23832 msgid "I<--alignment 8> (4K)"
23836 #: ../resize/virt-resize.pod:290
23838 "This would be the minimum acceptable alignment for reasonable performance on "
23843 #: ../resize/virt-resize.pod:293
23844 msgid "I<--alignment 128> (64K)"
23848 #: ../resize/virt-resize.pod:295
23850 "This alignment provides good performance when the host is using high end "
23855 #: ../resize/virt-resize.pod:298
23856 msgid "I<--alignment 2048> (1M)"
23860 #: ../resize/virt-resize.pod:300
23862 "This is the standard alignment used by all newly installed guests since "
23867 #: ../resize/virt-resize.pod:305
23872 #: ../resize/virt-resize.pod:307 ../tools/virt-make-fs.pl:177
23873 #: ../tools/virt-win-reg.pl:120
23875 msgstr "B<--debug>"
23878 #: ../resize/virt-resize.pod:309 ../tools/virt-win-reg.pl:122
23879 msgid "Enable debugging messages."
23883 #: ../resize/virt-resize.pod:311
23884 msgid "B<--delete part>"
23885 msgstr "B<--delete розділ>"
23888 #: ../resize/virt-resize.pod:313
23890 "Delete the named partition. It would be more accurate to describe this as "
23891 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
23892 "the original disk image is left intact."
23896 #: ../resize/virt-resize.pod:317
23898 "Note that when you delete a partition, then anything contained in the "
23899 "partition is also deleted. Furthermore, this causes any partitions that "
23900 "come after to be I<renumbered>, which can easily make your guest unbootable."
23904 #: ../resize/virt-resize.pod:322 ../resize/virt-resize.pod:383
23905 #: ../resize/virt-resize.pod:510 ../sparsify/virt-sparsify.pod:145
23906 msgid "You can give this option multiple times."
23910 #: ../resize/virt-resize.pod:324
23911 msgid "B<--expand part>"
23912 msgstr "B<--expand розділ>"
23915 #: ../resize/virt-resize.pod:326
23917 "Expand the named partition so it uses up all extra space (space left over "
23918 "after any other resize changes that you request have been done)."
23922 #: ../resize/virt-resize.pod:329
23924 "If virt-resize knows how, it will expand the direct content of the "
23925 "partition. For example, if the partition is an LVM PV, it will expand the "
23926 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
23927 "content it doesn't know about alone."
23931 #: ../resize/virt-resize.pod:334
23932 msgid "Currently virt-resize can resize:"
23936 #: ../resize/virt-resize.pod:340
23937 msgid "ext2, ext3 and ext4 filesystems."
23941 #: ../resize/virt-resize.pod:344
23942 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
23946 #: ../resize/virt-resize.pod:346
23948 "The filesystem must have been shut down consistently last time it was used. "
23949 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
23950 "consistency check, so at the first boot after resizing Windows will check "
23955 #: ../resize/virt-resize.pod:353
23957 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
23958 "inside the PV, but see the I<--LV-expand> option. The user could also "
23959 "resize LVs as desired after boot."
23963 #: ../resize/virt-resize.pod:359
23964 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
23968 #: ../resize/virt-resize.pod:363 ../resize/virt-resize.pod:538
23969 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
23973 #: ../resize/virt-resize.pod:365 ../sparsify/virt-sparsify.pod:125
23974 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
23975 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
23976 msgid "B<--format> raw"
23977 msgstr "B<--format> raw"
23980 #: ../resize/virt-resize.pod:367 ../sparsify/virt-sparsify.pod:129
23982 "Specify the format of the input disk image. If this flag is not given then "
23983 "it is auto-detected from the image itself."
23987 #: ../resize/virt-resize.pod:373
23989 "Note that this option I<does not> affect the output format. See L</QCOW2 "
23990 "AND NON-SPARSE RAW FORMATS>."
23994 #: ../resize/virt-resize.pod:376
23995 msgid "B<--ignore part>"
23996 msgstr "B<--ignore розділ>"
23999 #: ../resize/virt-resize.pod:378
24001 "Ignore the named partition. Effectively this means the partition is "
24002 "allocated on the destination disk, but the content is not copied across from "
24003 "the source disk. The content of the partition will be blank (all zero "
24008 #: ../resize/virt-resize.pod:385
24009 msgid "B<--LV-expand logvol>"
24010 msgstr "B<--LV-expand логічний_том>"
24013 #: ../resize/virt-resize.pod:387
24015 "This takes the logical volume and, as a final step, expands it to fill all "
24016 "the space available in its volume group. A typical usage, assuming a Linux "
24017 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
24018 "lv_root> would be:"
24022 #: ../resize/virt-resize.pod:392
24025 " virt-resize indisk outdisk \\\n"
24026 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24031 #: ../resize/virt-resize.pod:395
24033 "This would first expand the partition (and PV), and then expand the root "
24034 "device to fill the extra space in the PV."
24038 #: ../resize/virt-resize.pod:398
24040 "The contents of the LV are also resized if virt-resize knows how to do "
24041 "that. You can stop virt-resize from trying to expand the content by using "
24042 "the option I<--no-expand-content>."
24046 #: ../resize/virt-resize.pod:402
24047 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24051 #: ../resize/virt-resize.pod:404
24053 "You can give this option multiple times, I<but> it doesn't make sense to do "
24054 "this unless the logical volumes you specify are all in different volume "
24059 #: ../resize/virt-resize.pod:408 ../sparsify/virt-sparsify.pod:147
24060 msgid "B<--machine-readable>"
24064 #: ../resize/virt-resize.pod:410 ../sparsify/virt-sparsify.pod:149
24066 "This option is used to make the output more machine friendly when being "
24067 "parsed by other programs. See L</MACHINE READABLE OUTPUT> below."
24071 #: ../resize/virt-resize.pod:416
24072 msgid "B<--dryrun>"
24073 msgstr "B<--dryrun>"
24076 #: ../resize/virt-resize.pod:418
24077 msgid "Print a summary of what would be done, but don't do anything."
24081 #: ../resize/virt-resize.pod:420
24082 msgid "B<--no-copy-boot-loader>"
24083 msgstr "B<--no-copy-boot-loader>"
24086 #: ../resize/virt-resize.pod:422
24088 "By default, virt-resize copies over some sectors at the start of the disk "
24089 "(up to the beginning of the first partition). Commonly these sectors "
24090 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24091 "in order for the guest to boot correctly."
24095 #: ../resize/virt-resize.pod:427
24097 "If you specify this flag, then this initial copy is not done. You may need "
24098 "to reinstall the boot loader in this case."
24102 #: ../resize/virt-resize.pod:430
24103 msgid "B<--no-extra-partition>"
24104 msgstr "B<--no-extra-partition>"
24107 #: ../resize/virt-resize.pod:432
24109 "By default, virt-resize creates an extra partition if there is any extra, "
24110 "unused space after all resizing has happened. Use this option to prevent "
24111 "the extra partition from being created. If you do this then the extra space "
24112 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24113 "tool in the guest."
24117 #: ../resize/virt-resize.pod:438
24119 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24124 #: ../resize/virt-resize.pod:441
24125 msgid "B<--no-expand-content>"
24126 msgstr "B<--no-expand-content>"
24129 #: ../resize/virt-resize.pod:443
24131 "By default, virt-resize will try to expand the direct contents of "
24132 "partitions, if it knows how (see I<--expand> option above)."
24136 #: ../resize/virt-resize.pod:446
24138 "If you give the I<--no-expand-content> option then virt-resize will not "
24143 #: ../resize/virt-resize.pod:449
24144 msgid "B<--ntfsresize-force>"
24145 msgstr "B<--ntfsresize-force>"
24148 #: ../resize/virt-resize.pod:451
24150 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24151 "the NTFS disk is marked as needing a consistency check. You have to use "
24152 "this option if you want to resize a Windows guest multiple times without "
24153 "booting into Windows between each resize."
24157 #: ../resize/virt-resize.pod:457
24158 msgid "B<--output-format> raw"
24159 msgstr "B<--output-format> raw"
24162 #: ../resize/virt-resize.pod:459
24164 "Specify the format of the output disk image. If this flag is not given then "
24165 "it is auto-detected from the image itself."
24169 #: ../resize/virt-resize.pod:465
24171 "Note that this option I<does not create> the output format. This option "
24172 "just tells libguestfs what it is so it doesn't try to guess it. You still "
24173 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
24174 "SPARSE RAW FORMATS>."
24178 #: ../resize/virt-resize.pod:474
24179 msgid "Don't print the summary."
24183 #: ../resize/virt-resize.pod:476
24184 msgid "B<--resize part=size>"
24185 msgstr "B<--resize розділ=розмір>"
24188 #: ../resize/virt-resize.pod:478
24190 "Resize the named partition (expanding or shrinking it) so that it has the "
24195 #: ../resize/virt-resize.pod:481
24197 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24198 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24199 "size; or as a relative number or percentage. For example:"
24203 #: ../resize/virt-resize.pod:487
24206 " --resize /dev/sda2=10G\n"
24211 #: ../resize/virt-resize.pod:489
24214 " --resize /dev/sda4=90%\n"
24219 #: ../resize/virt-resize.pod:491
24222 " --resize /dev/sda2=+1G\n"
24227 #: ../resize/virt-resize.pod:493
24230 " --resize /dev/sda2=-200M\n"
24235 #: ../resize/virt-resize.pod:495
24238 " --resize /dev/sda1=+128K\n"
24243 #: ../resize/virt-resize.pod:497
24246 " --resize /dev/sda1=+10%\n"
24251 #: ../resize/virt-resize.pod:499
24254 " --resize /dev/sda1=-10%\n"
24259 #: ../resize/virt-resize.pod:501
24261 "You can increase the size of any partition. Virt-resize will expand the "
24262 "direct content of the partition if it knows how (see I<--expand> below)."
24266 #: ../resize/virt-resize.pod:505
24268 "You can only I<decrease> the size of partitions that contain filesystems or "
24269 "PVs which have already been shrunk. Virt-resize will check this has been "
24270 "done before proceeding, or else will print an error (see also I<--resize-"
24275 #: ../resize/virt-resize.pod:512
24276 msgid "B<--resize-force part=size>"
24277 msgstr "B<--resize-force розділ=розмір>"
24280 #: ../resize/virt-resize.pod:514
24282 "This is the same as I<--resize> except that it will let you decrease the "
24283 "size of any partition. Generally this means you will lose any data which "
24284 "was at the end of the partition you shrink, but you may not care about that "
24285 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24286 "as a swap partition)."
24290 #: ../resize/virt-resize.pod:520
24291 msgid "See also the I<--ignore> option."
24295 #: ../resize/virt-resize.pod:522
24296 msgid "B<--shrink part>"
24297 msgstr "B<--shrink розділ>"
24300 #: ../resize/virt-resize.pod:524
24302 "Shrink the named partition until the overall disk image fits in the "
24303 "destination. The named partition B<must> contain a filesystem or PV which "
24304 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24305 "online tools). Virt-resize will check this and give an error if it has not "
24310 #: ../resize/virt-resize.pod:530
24312 "The amount by which the overall disk must be shrunk (after carrying out all "
24313 "other operations requested by the user) is called the \"deficit\". For "
24314 "example, a straight copy (assume no other operations) from a 5GB disk image "
24315 "to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
24316 "would give an error unless the user specified a partition to shrink and that "
24317 "partition had more than a gigabyte of free space."
24321 #: ../resize/virt-resize.pod:548 ../sparsify/virt-sparsify.pod:177
24322 msgid "MACHINE READABLE OUTPUT"
24326 #: ../resize/virt-resize.pod:550
24328 "The I<--machine-readable> option can be used to make the output more machine "
24329 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24334 #: ../resize/virt-resize.pod:554 ../sparsify/virt-sparsify.pod:183
24335 msgid "There are two ways to use this option."
24339 #: ../resize/virt-resize.pod:556
24341 "Firstly use the option on its own to query the capabilities of the virt-"
24342 "resize binary. Typical output looks like this:"
24346 #: ../resize/virt-resize.pod:559
24349 " $ virt-resize --machine-readable\n"
24351 " ntfsresize-force\n"
24359 #: ../resize/virt-resize.pod:566 ../sparsify/virt-sparsify.pod:193
24361 "A list of features is printed, one per line, and the program exits with "
24366 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:196
24368 "Secondly use the option in conjunction with other options to make the "
24369 "regular program output more machine friendly."
24373 #: ../resize/virt-resize.pod:572 ../sparsify/virt-sparsify.pod:199
24374 msgid "At the moment this means:"
24378 #: ../resize/virt-resize.pod:578 ../sparsify/virt-sparsify.pod:205
24380 "Progress bar messages can be parsed from stdout by looking for this regular "
24385 #: ../resize/virt-resize.pod:581 ../sparsify/virt-sparsify.pod:208
24388 " ^[0-9]+/[0-9]+$\n"
24393 #: ../resize/virt-resize.pod:585 ../sparsify/virt-sparsify.pod:212
24395 "The calling program should treat messages sent to stdout (except for "
24396 "progress bar messages) as status messages. They can be logged and/or "
24397 "displayed to the user."
24401 #: ../resize/virt-resize.pod:591
24403 "The calling program should treat messages sent to stderr as error messages. "
24404 "In addition, virt-resize exits with a non-zero status code if there was a "
24409 #: ../resize/virt-resize.pod:597
24411 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
24412 "readable> option and will return an error."
24416 #: ../resize/virt-resize.pod:602
24417 msgid "\"Partition 1 does not end on cylinder boundary.\""
24421 #: ../resize/virt-resize.pod:604
24423 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
24424 "alignment> parameter). Usually this means the partitions will not be "
24425 "aligned to the ancient CHS geometry. However CHS geometry is meaningless "
24426 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24427 "drives. Alignment of partitions to cylinders is not required by any modern "
24428 "operating system."
24432 #: ../resize/virt-resize.pod:611
24433 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24437 #: ../resize/virt-resize.pod:613
24439 "In Windows Vista and later versions, Microsoft switched to using a separate "
24440 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
24441 "and C</dev/sda2> is the main (C:) drive. Resizing the first (boot) "
24442 "partition causes the bootloader to fail with C<0xC0000225> error. Resizing "
24443 "the second partition (ie. C: drive) should work."
24447 #: ../resize/virt-resize.pod:620
24449 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24450 "NTFS partitions have been expanded. This is just a safety check and (unless "
24451 "it find errors) is nothing to worry about."
24455 #: ../resize/virt-resize.pod:624
24456 msgid "GUEST BOOT STUCK AT \"GRUB\""
24460 #: ../resize/virt-resize.pod:626
24462 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24463 "printing C<GRUB> on the console, try reinstalling grub."
24467 #: ../resize/virt-resize.pod:629
24470 " guestfish -i -a newdisk\n"
24471 " ><fs> cat /boot/grub/device.map\n"
24472 " # check the contents of this file are sensible or\n"
24473 " # edit the file if necessary\n"
24474 " ><fs> grub-install / /dev/vda\n"
24480 #: ../resize/virt-resize.pod:636
24482 "For more flexible guest reconfiguration, including if you need to specify "
24483 "other parameters to grub-install, use L<virt-rescue(1)>."
24487 #: ../resize/virt-resize.pod:639
24488 msgid "ALTERNATIVE TOOLS"
24492 #: ../resize/virt-resize.pod:641
24494 "There are several proprietary tools for resizing partitions. We won't "
24495 "mention any here."
24499 #: ../resize/virt-resize.pod:644
24501 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24502 "operations on disk images. They can resize and move partitions, but I don't "
24503 "think they can do anything with the contents, and they certainly don't "
24508 #: ../resize/virt-resize.pod:649
24510 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24511 "but at a much lower level. You will probably end up hand-calculating sector "
24512 "offsets, which is something that virt-resize was designed to avoid. If you "
24513 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24518 #: ../resize/virt-resize.pod:669
24520 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
24521 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
24522 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
24523 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
24524 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24528 #: ../ruby/examples/guestfs-ruby.pod:5
24529 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24533 #: ../ruby/examples/guestfs-ruby.pod:9
24536 " require 'guestfs'\n"
24537 " g = Guestfs::Guestfs.new()\n"
24538 " g.add_drive_opts(\"disk.img\",\n"
24539 " :readonly => 1, :format => \"raw\")\n"
24545 #: ../ruby/examples/guestfs-ruby.pod:17
24547 "This manual page documents how to call libguestfs from the Ruby programming "
24548 "language. This page just documents the differences from the C API and gives "
24549 "some examples. If you are not familiar with using libguestfs, you also need "
24550 "to read L<guestfs(3)>."
24554 #: ../ruby/examples/guestfs-ruby.pod:24
24556 "Errors from libguestfs functions are mapped into the C<Error> exception. "
24557 "This has a single parameter which is the error message (a string)."
24561 #: ../ruby/examples/guestfs-ruby.pod:38
24563 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24564 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
24565 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24569 #: ../sparsify/virt-sparsify.pod:5
24570 msgid "virt-sparsify - Make a virtual machine disk sparse"
24574 #: ../sparsify/virt-sparsify.pod:9
24577 " virt-sparsify [--options] indisk outdisk\n"
24582 #: ../sparsify/virt-sparsify.pod:13
24584 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24585 "image) sparse a.k.a. thin-provisioned. This means that free space within "
24586 "the disk image can be converted back to free space on the host."
24590 #: ../sparsify/virt-sparsify.pod:18
24592 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
24593 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24597 #: ../sparsify/virt-sparsify.pod:21
24599 "Virt-sparsify can also convert between some disk formats, for example "
24600 "converting a raw disk image to a thin-provisioned qcow2 image."
24604 #: ../sparsify/virt-sparsify.pod:24
24606 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24607 "machines. If a virtual machine has more than one attached disk, you must "
24608 "sparsify each one separately."
24612 #: ../sparsify/virt-sparsify.pod:28
24613 msgid "IMPORTANT LIMITATIONS"
24617 #: ../sparsify/virt-sparsify.pod:34
24619 "Virt-sparsify does not do in-place modifications. It copies from a source "
24620 "image to a destination image, leaving the source unchanged. I<Check that "
24621 "the sparsification was successful before deleting the source image>."
24625 #: ../sparsify/virt-sparsify.pod:41
24626 msgid "The virtual machine I<must be shut down> before using this tool."
24630 #: ../sparsify/virt-sparsify.pod:45
24632 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24633 "(1 temporary copy + 1 destination image). This is in the worst case and "
24634 "usually much less space is required."
24638 #: ../sparsify/virt-sparsify.pod:51
24640 "Virt-sparsify cannot resize disk images. To do that, use L<virt-resize(1)>."
24644 #: ../sparsify/virt-sparsify.pod:56
24645 msgid "Virt-sparsify cannot handle encrypted disks."
24649 #: ../sparsify/virt-sparsify.pod:60
24651 "Virt-sparsify cannot yet sparsify the space between partitions. Note that "
24652 "this space is often used for critical items like bootloaders so it's not "
24657 #: ../sparsify/virt-sparsify.pod:66
24659 "Virt-sparsify does not yet know how to sparsify swapspace. It is not safe "
24660 "to do this unless we can be sure there is no hibernation data, so at the "
24661 "moment swap partitions are ignored."
24665 #: ../sparsify/virt-sparsify.pod:72
24667 "You may also want to read the manual pages for the associated tools L<virt-"
24668 "filesystems(1)> and L<virt-df(1)> before starting."
24672 #: ../sparsify/virt-sparsify.pod:77
24673 msgid "Typical usage is:"
24677 #: ../sparsify/virt-sparsify.pod:79
24680 " virt-sparsify indisk outdisk\n"
24685 #: ../sparsify/virt-sparsify.pod:81
24687 "which copies C<indisk> to C<outdisk>, making the output sparse. C<outdisk> "
24688 "is created, or overwritten if it already exists. The format of the input "
24689 "disk is detected (eg. qcow2) and the same format is used for the output disk."
24693 #: ../sparsify/virt-sparsify.pod:86
24694 msgid "To convert between formats, use the I<--convert> option:"
24698 #: ../sparsify/virt-sparsify.pod:88
24701 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24706 #: ../sparsify/virt-sparsify.pod:90
24708 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24709 "can find within the source disk image. You can get it to ignore (don't zero "
24710 "free space on) certain filesystems by doing:"
24714 #: ../sparsify/virt-sparsify.pod:94
24717 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24722 #: ../sparsify/virt-sparsify.pod:96
24724 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24728 #: ../sparsify/virt-sparsify.pod:107
24729 msgid "B<--convert> raw"
24733 #: ../sparsify/virt-sparsify.pod:109
24734 msgid "B<--convert> qcow2"
24738 #: ../sparsify/virt-sparsify.pod:111
24739 msgid "B<--convert> [other formats]"
24743 #: ../sparsify/virt-sparsify.pod:113
24745 "Use C<output-format> as the format for the destination image. If this is "
24746 "not specified, then the input format is used."
24750 #: ../sparsify/virt-sparsify.pod:116
24751 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
24755 #: ../sparsify/virt-sparsify.pod:118
24757 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
24758 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
24762 #: ../sparsify/virt-sparsify.pod:122
24764 "Specifying the I<--convert> option is usually a good idea, because then virt-"
24765 "sparsify doesn't need to try to guess the input format."
24769 #: ../sparsify/virt-sparsify.pod:127
24770 msgid "B<--format> qcow2"
24774 #: ../sparsify/virt-sparsify.pod:135
24775 msgid "B<--ignore> filesystem"
24779 #: ../sparsify/virt-sparsify.pod:137
24780 msgid "B<--ignore> volgroup"
24784 #: ../sparsify/virt-sparsify.pod:139
24786 "Ignore the named filesystem. Free space on the filesystem will not be "
24787 "zeroed, but existing blocks of zeroes will still be sparsified."
24791 #: ../sparsify/virt-sparsify.pod:142
24793 "In the second form, this ignores the named volume group. Use the volume "
24794 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
24798 #: ../sparsify/virt-sparsify.pod:157
24799 msgid "This disables progress bars and other unnecessary output."
24803 #: ../sparsify/virt-sparsify.pod:179
24805 "The I<--machine-readable> option can be used to make the output more machine "
24806 "friendly, which is useful when calling virt-sparsify from other programs, "
24811 #: ../sparsify/virt-sparsify.pod:185
24813 "Firstly use the option on its own to query the capabilities of the virt-"
24814 "sparsify binary. Typical output looks like this:"
24818 #: ../sparsify/virt-sparsify.pod:188
24821 " $ virt-sparsify --machine-readable\n"
24829 #: ../sparsify/virt-sparsify.pod:218
24831 "The calling program should treat messages sent to stderr as error messages. "
24832 "In addition, virt-sparsify exits with a non-zero status code if there was a "
24837 #: ../sparsify/virt-sparsify.pod:224
24839 "All versions of virt-sparsify have supported the I<--machine-readable> "
24844 #: ../sparsify/virt-sparsify.pod:238
24846 "Location of the temporary directory used for the potentially large temporary "
24851 #: ../sparsify/virt-sparsify.pod:241
24853 "You should ensure there is enough free space in the worst case for a full "
24854 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
24855 "to another directory that has enough space."
24859 #: ../sparsify/virt-sparsify.pod:245
24860 msgid "This defaults to C</tmp>."
24864 #: ../sparsify/virt-sparsify.pod:249
24866 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
24870 #: ../sparsify/virt-sparsify.pod:253
24872 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
24873 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
24874 "(1)>, L<http://libguestfs.org/>."
24878 #: ../src/guestfs-actions.pod:1
24879 msgid "guestfs_add_cdrom"
24883 #: ../src/guestfs-actions.pod:3
24887 " guestfs_add_cdrom (guestfs_h *g,\n"
24888 " const char *filename);\n"
24893 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:255
24894 #: ../src/guestfs-actions.pod:276
24896 "I<This function is deprecated.> In new code, use the L</"
24897 "guestfs_add_drive_opts> call instead."
24901 #: ../src/guestfs-actions.pod:24
24903 "This call checks for the existence of C<filename>. This stops you from "
24904 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24905 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call "
24910 #: ../src/guestfs-actions.pod:31
24912 "If you just want to add an ISO file (often you use this as an efficient way "
24913 "to transfer large files into the guest), then you should probably use "
24914 "C<guestfs_add_drive_ro> instead."
24918 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
24919 #: ../src/guestfs-actions.pod:207 ../src/guestfs-actions.pod:244
24920 #: ../src/guestfs-actions.pod:265 ../src/guestfs-actions.pod:286
24921 #: ../src/guestfs-actions.pod:299 ../src/guestfs-actions.pod:313
24922 #: ../src/guestfs-actions.pod:433 ../src/guestfs-actions.pod:453
24923 #: ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:512
24924 #: ../src/guestfs-actions.pod:540 ../src/guestfs-actions.pod:558
24925 #: ../src/guestfs-actions.pod:625 ../src/guestfs-actions.pod:658
24926 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:687
24927 #: ../src/guestfs-actions.pod:786 ../src/guestfs-actions.pod:804
24928 #: ../src/guestfs-actions.pod:818 ../src/guestfs-actions.pod:832
24929 #: ../src/guestfs-actions.pod:869 ../src/guestfs-actions.pod:1052
24930 #: ../src/guestfs-actions.pod:1072 ../src/guestfs-actions.pod:1090
24931 #: ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1239
24932 #: ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1303
24933 #: ../src/guestfs-actions.pod:1322 ../src/guestfs-actions.pod:1336
24934 #: ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1426
24935 #: ../src/guestfs-actions.pod:1457 ../src/guestfs-actions.pod:1482
24936 #: ../src/guestfs-actions.pod:1524 ../src/guestfs-actions.pod:1637
24937 #: ../src/guestfs-actions.pod:1664 ../src/guestfs-actions.pod:1879
24938 #: ../src/guestfs-actions.pod:1901 ../src/guestfs-actions.pod:1988
24939 #: ../src/guestfs-actions.pod:2496 ../src/guestfs-actions.pod:2640
24940 #: ../src/guestfs-actions.pod:2701 ../src/guestfs-actions.pod:2736
24941 #: ../src/guestfs-actions.pod:3793 ../src/guestfs-actions.pod:3808
24942 #: ../src/guestfs-actions.pod:3833 ../src/guestfs-actions.pod:4022
24943 #: ../src/guestfs-actions.pod:4036 ../src/guestfs-actions.pod:4049
24944 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4078
24945 #: ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4186
24946 #: ../src/guestfs-actions.pod:4206 ../src/guestfs-actions.pod:4223
24947 #: ../src/guestfs-actions.pod:4246 ../src/guestfs-actions.pod:4269
24948 #: ../src/guestfs-actions.pod:4304 ../src/guestfs-actions.pod:4323
24949 #: ../src/guestfs-actions.pod:4342 ../src/guestfs-actions.pod:4377
24950 #: ../src/guestfs-actions.pod:4389 ../src/guestfs-actions.pod:4425
24951 #: ../src/guestfs-actions.pod:4441 ../src/guestfs-actions.pod:4454
24952 #: ../src/guestfs-actions.pod:4469 ../src/guestfs-actions.pod:4486
24953 #: ../src/guestfs-actions.pod:4579 ../src/guestfs-actions.pod:4599
24954 #: ../src/guestfs-actions.pod:4612 ../src/guestfs-actions.pod:4663
24955 #: ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:4699
24956 #: ../src/guestfs-actions.pod:4715 ../src/guestfs-actions.pod:4729
24957 #: ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:4760
24958 #: ../src/guestfs-actions.pod:4775 ../src/guestfs-actions.pod:4802
24959 #: ../src/guestfs-actions.pod:4865 ../src/guestfs-actions.pod:4938
24960 #: ../src/guestfs-actions.pod:4969 ../src/guestfs-actions.pod:4988
24961 #: ../src/guestfs-actions.pod:5007 ../src/guestfs-actions.pod:5019
24962 #: ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:5049
24963 #: ../src/guestfs-actions.pod:5064 ../src/guestfs-actions.pod:5079
24964 #: ../src/guestfs-actions.pod:5111 ../src/guestfs-actions.pod:5137
24965 #: ../src/guestfs-actions.pod:5176 ../src/guestfs-actions.pod:5196
24966 #: ../src/guestfs-actions.pod:5210 ../src/guestfs-actions.pod:5227
24967 #: ../src/guestfs-actions.pod:5276 ../src/guestfs-actions.pod:5329
24968 #: ../src/guestfs-actions.pod:5376 ../src/guestfs-actions.pod:5419
24969 #: ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5464
24970 #: ../src/guestfs-actions.pod:5482 ../src/guestfs-actions.pod:5622
24971 #: ../src/guestfs-actions.pod:5679 ../src/guestfs-actions.pod:5701
24972 #: ../src/guestfs-actions.pod:5719 ../src/guestfs-actions.pod:5751
24973 #: ../src/guestfs-actions.pod:5817 ../src/guestfs-actions.pod:5834
24974 #: ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5861
24975 #: ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6169
24976 #: ../src/guestfs-actions.pod:6188 ../src/guestfs-actions.pod:6202
24977 #: ../src/guestfs-actions.pod:6214 ../src/guestfs-actions.pod:6228
24978 #: ../src/guestfs-actions.pod:6240 ../src/guestfs-actions.pod:6254
24979 #: ../src/guestfs-actions.pod:6270 ../src/guestfs-actions.pod:6291
24980 #: ../src/guestfs-actions.pod:6310 ../src/guestfs-actions.pod:6329
24981 #: ../src/guestfs-actions.pod:6359 ../src/guestfs-actions.pod:6377
24982 #: ../src/guestfs-actions.pod:6400 ../src/guestfs-actions.pod:6418
24983 #: ../src/guestfs-actions.pod:6437 ../src/guestfs-actions.pod:6458
24984 #: ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6494
24985 #: ../src/guestfs-actions.pod:6513 ../src/guestfs-actions.pod:6541
24986 #: ../src/guestfs-actions.pod:6565 ../src/guestfs-actions.pod:6584
24987 #: ../src/guestfs-actions.pod:6600 ../src/guestfs-actions.pod:6624
24988 #: ../src/guestfs-actions.pod:6643 ../src/guestfs-actions.pod:6658
24989 #: ../src/guestfs-actions.pod:6677 ../src/guestfs-actions.pod:6721
24990 #: ../src/guestfs-actions.pod:6751 ../src/guestfs-actions.pod:6784
24991 #: ../src/guestfs-actions.pod:6899 ../src/guestfs-actions.pod:7020
24992 #: ../src/guestfs-actions.pod:7032 ../src/guestfs-actions.pod:7045
24993 #: ../src/guestfs-actions.pod:7058 ../src/guestfs-actions.pod:7080
24994 #: ../src/guestfs-actions.pod:7093 ../src/guestfs-actions.pod:7106
24995 #: ../src/guestfs-actions.pod:7119 ../src/guestfs-actions.pod:7134
24996 #: ../src/guestfs-actions.pod:7193 ../src/guestfs-actions.pod:7210
24997 #: ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7242
24998 #: ../src/guestfs-actions.pod:7259 ../src/guestfs-actions.pod:7272
24999 #: ../src/guestfs-actions.pod:7292 ../src/guestfs-actions.pod:7328
25000 #: ../src/guestfs-actions.pod:7342 ../src/guestfs-actions.pod:7383
25001 #: ../src/guestfs-actions.pod:7396 ../src/guestfs-actions.pod:7414
25002 #: ../src/guestfs-actions.pod:7448 ../src/guestfs-actions.pod:7484
25003 #: ../src/guestfs-actions.pod:7600 ../src/guestfs-actions.pod:7615
25004 #: ../src/guestfs-actions.pod:7629 ../src/guestfs-actions.pod:7684
25005 #: ../src/guestfs-actions.pod:7697 ../src/guestfs-actions.pod:7742
25006 #: ../src/guestfs-actions.pod:7782 ../src/guestfs-actions.pod:7838
25007 #: ../src/guestfs-actions.pod:7858 ../src/guestfs-actions.pod:7891
25008 #: ../src/guestfs-actions.pod:7955 ../src/guestfs-actions.pod:7978
25009 #: ../src/guestfs-actions.pod:8007
25010 msgid "This function returns 0 on success or -1 on error."
25014 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
25015 #: ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:2102
25016 #: ../src/guestfs-actions.pod:2200 ../src/guestfs-actions.pod:2325
25017 #: ../src/guestfs-actions.pod:3795 ../src/guestfs-actions.pod:3815
25018 #: ../src/guestfs-actions.pod:5113 ../src/guestfs-actions.pod:6379
25019 #: ../src/guestfs-actions.pod:6496 ../src/guestfs-actions.pod:6645
25020 #: ../src/guestfs-actions.pod:7136 ../src/guestfs-actions.pod:7261
25021 #: ../src/guestfs-actions.pod:7784
25022 msgid "(Added in 0.3)"
25023 msgstr "(Додано у 0.3)"
25026 #: ../src/guestfs-actions.pod:41
25027 msgid "guestfs_add_domain"
25031 #: ../src/guestfs-actions.pod:43
25035 " guestfs_add_domain (guestfs_h *g,\n"
25036 " const char *dom,\n"
25042 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
25043 #: ../src/guestfs-actions.pod:843 ../src/guestfs-actions.pod:1167
25044 #: ../src/guestfs-actions.pod:1219 ../src/guestfs-actions.pod:2993
25045 #: ../src/guestfs-actions.pod:4814 ../src/guestfs-actions.pod:5123
25046 #: ../src/guestfs-actions.pod:5340
25048 "You may supply a list of optional arguments to this call. Use zero or more "
25049 "of the following pairs of parameters, and terminate the list with C<-1> on "
25050 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
25054 #: ../src/guestfs-actions.pod:53
25057 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25058 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25059 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25060 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25061 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25066 #: ../src/guestfs-actions.pod:59
25068 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
25069 "It works by connecting to libvirt, requesting the domain and domain XML from "
25070 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25075 #: ../src/guestfs-actions.pod:94
25077 "The other optional parameters are passed directly through to "
25078 "C<guestfs_add_drive_opts>."
25082 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:356
25083 #: ../src/guestfs-actions.pod:526 ../src/guestfs-actions.pod:704
25084 #: ../src/guestfs-actions.pod:735 ../src/guestfs-actions.pod:753
25085 #: ../src/guestfs-actions.pod:772 ../src/guestfs-actions.pod:1502
25086 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:2061
25087 #: ../src/guestfs-actions.pod:2172 ../src/guestfs-actions.pod:2223
25088 #: ../src/guestfs-actions.pod:2275 ../src/guestfs-actions.pod:2289
25089 #: ../src/guestfs-actions.pod:2312 ../src/guestfs-actions.pod:2627
25090 #: ../src/guestfs-actions.pod:3111 ../src/guestfs-actions.pod:3129
25091 #: ../src/guestfs-actions.pod:5299 ../src/guestfs-actions.pod:5519
25092 #: ../src/guestfs-actions.pod:5931 ../src/guestfs-actions.pod:5957
25093 #: ../src/guestfs-actions.pod:7369 ../src/guestfs-actions.pod:7795
25094 #: ../src/guestfs-actions.pod:7808 ../src/guestfs-actions.pod:7821
25095 msgid "On error this function returns -1."
25099 #: ../src/guestfs-actions.pod:99
25100 msgid "(Added in 1.7.4)"
25101 msgstr "(Додано у 1.7.4)"
25104 #: ../src/guestfs-actions.pod:101
25105 msgid "guestfs_add_domain_va"
25109 #: ../src/guestfs-actions.pod:103
25113 " guestfs_add_domain_va (guestfs_h *g,\n"
25114 " const char *dom,\n"
25115 " va_list args);\n"
25120 #: ../src/guestfs-actions.pod:108
25121 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25125 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
25126 #: ../src/guestfs-actions.pod:220 ../src/guestfs-actions.pod:231
25127 #: ../src/guestfs-actions.pod:882 ../src/guestfs-actions.pod:893
25128 #: ../src/guestfs-actions.pod:1195 ../src/guestfs-actions.pod:1208
25129 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1267
25130 #: ../src/guestfs-actions.pod:3077 ../src/guestfs-actions.pod:3089
25131 #: ../src/guestfs-actions.pod:4879 ../src/guestfs-actions.pod:4891
25132 #: ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5163
25133 #: ../src/guestfs-actions.pod:5389 ../src/guestfs-actions.pod:5400
25134 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25135 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
25138 #: ../src/guestfs-actions.pod:112
25139 msgid "guestfs_add_domain_argv"
25140 msgstr "guestfs_add_domain_argv"
25143 #: ../src/guestfs-actions.pod:114
25147 " guestfs_add_domain_argv (guestfs_h *g,\n"
25148 " const char *dom,\n"
25149 " const struct guestfs_add_domain_argv *optargs);\n"
25154 #: ../src/guestfs-actions.pod:119
25155 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25159 #: ../src/guestfs-actions.pod:123
25160 msgid "guestfs_add_drive"
25164 #: ../src/guestfs-actions.pod:125
25168 " guestfs_add_drive (guestfs_h *g,\n"
25169 " const char *filename);\n"
25174 #: ../src/guestfs-actions.pod:129
25176 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
25177 "optional parameters, so the disk is added writable, with the format being "
25178 "detected automatically."
25182 #: ../src/guestfs-actions.pod:133
25184 "Automatic detection of the format opens you up to a potential security hole "
25185 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
25186 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
25187 "you should think about replacing calls to this function with calls to "
25188 "C<guestfs_add_drive_opts>, and specifying the format."
25192 #: ../src/guestfs-actions.pod:144
25193 msgid "guestfs_add_drive_opts"
25197 #: ../src/guestfs-actions.pod:146
25201 " guestfs_add_drive_opts (guestfs_h *g,\n"
25202 " const char *filename,\n"
25208 #: ../src/guestfs-actions.pod:156
25211 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25212 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25213 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25214 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
25219 #: ../src/guestfs-actions.pod:186
25221 "This forces the image format. If you omit this (or use C<guestfs_add_drive> "
25222 "or C<guestfs_add_drive_ro>) then the format is automatically detected. "
25223 "Possible formats include C<raw> and C<qcow2>."
25227 #: ../src/guestfs-actions.pod:197
25229 "This rarely-used option lets you emulate the behaviour of the deprecated "
25230 "C<guestfs_add_drive_with_if> call (q.v.)"
25234 #: ../src/guestfs-actions.pod:209
25235 msgid "(Added in 1.5.23)"
25236 msgstr "(Додано у 1.5.23)"
25239 #: ../src/guestfs-actions.pod:211
25240 msgid "guestfs_add_drive_opts_va"
25244 #: ../src/guestfs-actions.pod:213
25248 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25249 " const char *filename,\n"
25250 " va_list args);\n"
25255 #: ../src/guestfs-actions.pod:218
25256 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25260 #: ../src/guestfs-actions.pod:222
25261 msgid "guestfs_add_drive_opts_argv"
25265 #: ../src/guestfs-actions.pod:224
25269 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25270 " const char *filename,\n"
25271 " const struct guestfs_add_drive_opts_argv *optargs);\n"
25276 #: ../src/guestfs-actions.pod:229
25277 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25281 #: ../src/guestfs-actions.pod:233
25282 msgid "guestfs_add_drive_ro"
25286 #: ../src/guestfs-actions.pod:235
25290 " guestfs_add_drive_ro (guestfs_h *g,\n"
25291 " const char *filename);\n"
25296 #: ../src/guestfs-actions.pod:239
25298 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25299 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25300 "disk is added read-only, with the format being detected automatically."
25304 #: ../src/guestfs-actions.pod:246
25305 msgid "(Added in 1.0.38)"
25306 msgstr "(Додано у 1.0.38)"
25309 #: ../src/guestfs-actions.pod:248
25310 msgid "guestfs_add_drive_ro_with_if"
25314 #: ../src/guestfs-actions.pod:250
25318 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25319 " const char *filename,\n"
25320 " const char *iface);\n"
25325 #: ../src/guestfs-actions.pod:262
25327 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25328 "QEMU interface emulation to use at run time."
25332 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:288
25333 #: ../src/guestfs-actions.pod:2586
25334 msgid "(Added in 1.0.84)"
25335 msgstr "(Додано у 1.0.84)"
25338 #: ../src/guestfs-actions.pod:269
25339 msgid "guestfs_add_drive_with_if"
25343 #: ../src/guestfs-actions.pod:271
25347 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25348 " const char *filename,\n"
25349 " const char *iface);\n"
25354 #: ../src/guestfs-actions.pod:283
25356 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25357 "QEMU interface emulation to use at run time."
25361 #: ../src/guestfs-actions.pod:290
25362 msgid "guestfs_aug_clear"
25366 #: ../src/guestfs-actions.pod:292
25370 " guestfs_aug_clear (guestfs_h *g,\n"
25371 " const char *augpath);\n"
25376 #: ../src/guestfs-actions.pod:301 ../src/guestfs-actions.pod:2314
25377 msgid "(Added in 1.3.4)"
25378 msgstr "(Додано у 1.3.4)"
25381 #: ../src/guestfs-actions.pod:303
25382 msgid "guestfs_aug_close"
25386 #: ../src/guestfs-actions.pod:305
25390 " guestfs_aug_close (guestfs_h *g);\n"
25395 #: ../src/guestfs-actions.pod:308
25397 "Close the current Augeas handle and free up any resources used by it. After "
25398 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25399 "any other Augeas functions."
25403 #: ../src/guestfs-actions.pod:315 ../src/guestfs-actions.pod:340
25404 #: ../src/guestfs-actions.pod:358 ../src/guestfs-actions.pod:372
25405 #: ../src/guestfs-actions.pod:435 ../src/guestfs-actions.pod:455
25406 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:500
25407 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:528
25408 #: ../src/guestfs-actions.pod:542 ../src/guestfs-actions.pod:560
25409 #: ../src/guestfs-actions.pod:6008
25410 msgid "(Added in 0.7)"
25411 msgstr "(Додано у 0.7)"
25414 #: ../src/guestfs-actions.pod:317
25415 msgid "guestfs_aug_defnode"
25419 #: ../src/guestfs-actions.pod:319
25422 " struct guestfs_int_bool *\n"
25423 " guestfs_aug_defnode (guestfs_h *g,\n"
25424 " const char *name,\n"
25425 " const char *expr,\n"
25426 " const char *val);\n"
25431 #: ../src/guestfs-actions.pod:328
25433 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25434 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
25435 "containing that single node."
25439 #: ../src/guestfs-actions.pod:336
25441 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25442 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
25446 #: ../src/guestfs-actions.pod:342
25447 msgid "guestfs_aug_defvar"
25451 #: ../src/guestfs-actions.pod:344
25455 " guestfs_aug_defvar (guestfs_h *g,\n"
25456 " const char *name,\n"
25457 " const char *expr);\n"
25462 #: ../src/guestfs-actions.pod:360
25463 msgid "guestfs_aug_get"
25464 msgstr "guestfs_aug_get"
25467 #: ../src/guestfs-actions.pod:362
25471 " guestfs_aug_get (guestfs_h *g,\n"
25472 " const char *augpath);\n"
25476 " guestfs_aug_get (guestfs_h *g,\n"
25477 " const char *augpath);\n"
25481 #: ../src/guestfs-actions.pod:369 ../src/guestfs-actions.pod:933
25482 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:1011
25483 #: ../src/guestfs-actions.pod:1027 ../src/guestfs-actions.pod:1130
25484 #: ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1388
25485 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1541
25486 #: ../src/guestfs-actions.pod:1729 ../src/guestfs-actions.pod:1841
25487 #: ../src/guestfs-actions.pod:2004 ../src/guestfs-actions.pod:2021
25488 #: ../src/guestfs-actions.pod:2088 ../src/guestfs-actions.pod:2131
25489 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:2337
25490 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2755
25491 #: ../src/guestfs-actions.pod:2857 ../src/guestfs-actions.pod:2961
25492 #: ../src/guestfs-actions.pod:2980 ../src/guestfs-actions.pod:3195
25493 #: ../src/guestfs-actions.pod:3223 ../src/guestfs-actions.pod:3244
25494 #: ../src/guestfs-actions.pod:3278 ../src/guestfs-actions.pod:3341
25495 #: ../src/guestfs-actions.pod:3361 ../src/guestfs-actions.pod:3381
25496 #: ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4361
25497 #: ../src/guestfs-actions.pod:4531 ../src/guestfs-actions.pod:4641
25498 #: ../src/guestfs-actions.pod:5537 ../src/guestfs-actions.pod:5736
25499 #: ../src/guestfs-actions.pod:5906 ../src/guestfs-actions.pod:6084
25500 #: ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6805
25501 #: ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:6845
25502 #: ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:7543
25503 #: ../src/guestfs-actions.pod:7562 ../src/guestfs-actions.pod:7580
25504 #: ../src/guestfs-actions.pod:7754 ../src/guestfs-actions.pod:8071
25506 "This function returns a string, or NULL on error. I<The caller must free "
25507 "the returned string after use>."
25511 #: ../src/guestfs-actions.pod:374
25512 msgid "guestfs_aug_init"
25513 msgstr "guestfs_aug_init"
25516 #: ../src/guestfs-actions.pod:376
25520 " guestfs_aug_init (guestfs_h *g,\n"
25521 " const char *root,\n"
25526 " guestfs_aug_init (guestfs_h *g,\n"
25527 " const char *root,\n"
25532 #: ../src/guestfs-actions.pod:385
25533 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25537 #: ../src/guestfs-actions.pod:410
25539 "This option is only useful when debugging Augeas lenses. Use of this option "
25540 "may require additional memory for the libguestfs appliance. You may need to "
25541 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25542 "C<guestfs_set_memsize>."
25546 #: ../src/guestfs-actions.pod:425
25547 msgid "Do not load the tree in C<guestfs_aug_init>."
25551 #: ../src/guestfs-actions.pod:429
25552 msgid "To close the handle, you can call C<guestfs_aug_close>."
25556 #: ../src/guestfs-actions.pod:437
25557 msgid "guestfs_aug_insert"
25558 msgstr "guestfs_aug_insert"
25561 #: ../src/guestfs-actions.pod:439
25565 " guestfs_aug_insert (guestfs_h *g,\n"
25566 " const char *augpath,\n"
25567 " const char *label,\n"
25572 " guestfs_aug_insert (guestfs_h *g,\n"
25573 " const char *augpath,\n"
25574 " const char *label,\n"
25579 #: ../src/guestfs-actions.pod:457
25580 msgid "guestfs_aug_load"
25581 msgstr "guestfs_aug_load"
25584 #: ../src/guestfs-actions.pod:459
25588 " guestfs_aug_load (guestfs_h *g);\n"
25592 " guestfs_aug_load (guestfs_h *g);\n"
25596 #: ../src/guestfs-actions.pod:471
25597 msgid "guestfs_aug_ls"
25598 msgstr "guestfs_aug_ls"
25601 #: ../src/guestfs-actions.pod:473
25605 " guestfs_aug_ls (guestfs_h *g,\n"
25606 " const char *augpath);\n"
25610 " guestfs_aug_ls (guestfs_h *g,\n"
25611 " const char *augpath);\n"
25615 #: ../src/guestfs-actions.pod:477
25617 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25618 "sorting the resulting nodes into alphabetical order."
25622 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:496
25623 #: ../src/guestfs-actions.pod:642 ../src/guestfs-actions.pod:1149
25624 #: ../src/guestfs-actions.pod:1556 ../src/guestfs-actions.pod:1575
25625 #: ../src/guestfs-actions.pod:1678 ../src/guestfs-actions.pod:1697
25626 #: ../src/guestfs-actions.pod:1943 ../src/guestfs-actions.pod:2409
25627 #: ../src/guestfs-actions.pod:2425 ../src/guestfs-actions.pod:2444
25628 #: ../src/guestfs-actions.pod:2509 ../src/guestfs-actions.pod:2533
25629 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2653
25630 #: ../src/guestfs-actions.pod:2922 ../src/guestfs-actions.pod:3297
25631 #: ../src/guestfs-actions.pod:3577 ../src/guestfs-actions.pod:3891
25632 #: ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3928
25633 #: ../src/guestfs-actions.pod:3990 ../src/guestfs-actions.pod:4095
25634 #: ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:5260
25635 #: ../src/guestfs-actions.pod:5878 ../src/guestfs-actions.pod:6004
25636 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6885
25637 #: ../src/guestfs-actions.pod:6946 ../src/guestfs-actions.pod:7001
25638 #: ../src/guestfs-actions.pod:7147 ../src/guestfs-actions.pod:7171
25639 #: ../src/guestfs-actions.pod:7647 ../src/guestfs-actions.pod:7667
25640 #: ../src/guestfs-actions.pod:7714 ../src/guestfs-actions.pod:7908
25641 #: ../src/guestfs-actions.pod:7927 ../src/guestfs-actions.pod:8021
25642 #: ../src/guestfs-actions.pod:8040 ../src/guestfs-actions.pod:8086
25643 #: ../src/guestfs-actions.pod:8105
25645 "This function returns a NULL-terminated array of strings (like L<environ(3)"
25646 ">), or NULL if there was an error. I<The caller must free the strings and "
25647 "the array after use>."
25651 #: ../src/guestfs-actions.pod:484 ../src/guestfs-actions.pod:1074
25652 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1613
25653 #: ../src/guestfs-actions.pod:3655 ../src/guestfs-actions.pod:3686
25654 #: ../src/guestfs-actions.pod:4344 ../src/guestfs-actions.pod:4394
25655 #: ../src/guestfs-actions.pod:4581 ../src/guestfs-actions.pod:4614
25656 #: ../src/guestfs-actions.pod:4777 ../src/guestfs-actions.pod:5264
25657 #: ../src/guestfs-actions.pod:5819 ../src/guestfs-actions.pod:6216
25658 #: ../src/guestfs-actions.pod:6230 ../src/guestfs-actions.pod:6242
25659 #: ../src/guestfs-actions.pod:6726 ../src/guestfs-actions.pod:7385
25660 #: ../src/guestfs-actions.pod:7398 ../src/guestfs-actions.pod:7631
25661 #: ../src/guestfs-actions.pod:7896
25662 msgid "(Added in 0.8)"
25663 msgstr "(Додано у 0.8)"
25666 #: ../src/guestfs-actions.pod:486
25667 msgid "guestfs_aug_match"
25668 msgstr "guestfs_aug_match"
25671 #: ../src/guestfs-actions.pod:488
25675 " guestfs_aug_match (guestfs_h *g,\n"
25676 " const char *augpath);\n"
25680 " guestfs_aug_match (guestfs_h *g,\n"
25681 " const char *augpath);\n"
25685 #: ../src/guestfs-actions.pod:502
25686 msgid "guestfs_aug_mv"
25687 msgstr "guestfs_aug_mv"
25690 #: ../src/guestfs-actions.pod:504
25694 " guestfs_aug_mv (guestfs_h *g,\n"
25695 " const char *src,\n"
25696 " const char *dest);\n"
25700 " guestfs_aug_mv (guestfs_h *g,\n"
25701 " const char *src,\n"
25702 " const char *dest);\n"
25706 #: ../src/guestfs-actions.pod:516
25707 msgid "guestfs_aug_rm"
25708 msgstr "guestfs_aug_rm"
25711 #: ../src/guestfs-actions.pod:518
25715 " guestfs_aug_rm (guestfs_h *g,\n"
25716 " const char *augpath);\n"
25720 " guestfs_aug_rm (guestfs_h *g,\n"
25721 " const char *augpath);\n"
25725 #: ../src/guestfs-actions.pod:530
25726 msgid "guestfs_aug_save"
25727 msgstr "guestfs_aug_save"
25730 #: ../src/guestfs-actions.pod:532
25734 " guestfs_aug_save (guestfs_h *g);\n"
25738 " guestfs_aug_save (guestfs_h *g);\n"
25742 #: ../src/guestfs-actions.pod:537
25744 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25749 #: ../src/guestfs-actions.pod:544
25750 msgid "guestfs_aug_set"
25751 msgstr "guestfs_aug_set"
25754 #: ../src/guestfs-actions.pod:546
25758 " guestfs_aug_set (guestfs_h *g,\n"
25759 " const char *augpath,\n"
25760 " const char *val);\n"
25764 " guestfs_aug_set (guestfs_h *g,\n"
25765 " const char *augpath,\n"
25766 " const char *val);\n"
25770 #: ../src/guestfs-actions.pod:553
25772 "In the Augeas API, it is possible to clear a node by setting the value to "
25773 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
25774 "this call. Instead you must use the C<guestfs_aug_clear> call."
25778 #: ../src/guestfs-actions.pod:562
25779 msgid "guestfs_available"
25780 msgstr "guestfs_available"
25783 #: ../src/guestfs-actions.pod:564
25787 " guestfs_available (guestfs_h *g,\n"
25788 " char *const *groups);\n"
25792 " guestfs_available (guestfs_h *g,\n"
25793 " char *const *groups);\n"
25797 #: ../src/guestfs-actions.pod:572
25799 "The libguestfs groups, and the functions that those groups correspond to, "
25800 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
25801 "runtime by calling C<guestfs_available_all_groups>."
25805 #: ../src/guestfs-actions.pod:596
25806 msgid "You must call C<guestfs_launch> before calling this function."
25810 #: ../src/guestfs-actions.pod:618
25812 "This call was added in version C<1.0.80>. In previous versions of "
25813 "libguestfs all you could do would be to speculatively execute a command to "
25814 "find out if the daemon implemented it. See also C<guestfs_version>."
25818 #: ../src/guestfs-actions.pod:627 ../src/guestfs-actions.pod:1358
25819 msgid "(Added in 1.0.80)"
25820 msgstr "(Додано у 1.0.80)"
25823 #: ../src/guestfs-actions.pod:629
25824 msgid "guestfs_available_all_groups"
25825 msgstr "guestfs_available_all_groups"
25828 #: ../src/guestfs-actions.pod:631
25832 " guestfs_available_all_groups (guestfs_h *g);\n"
25836 " guestfs_available_all_groups (guestfs_h *g);\n"
25840 #: ../src/guestfs-actions.pod:634
25842 "This command returns a list of all optional groups that this daemon knows "
25843 "about. Note this returns both supported and unsupported groups. To find "
25844 "out which ones the daemon can actually support you have to call "
25845 "C<guestfs_available> on each member of the returned list."
25849 #: ../src/guestfs-actions.pod:640
25850 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25854 #: ../src/guestfs-actions.pod:646
25855 msgid "(Added in 1.3.15)"
25856 msgstr "(Додано у 1.3.15)"
25859 #: ../src/guestfs-actions.pod:648
25860 msgid "guestfs_base64_in"
25861 msgstr "guestfs_base64_in"
25864 #: ../src/guestfs-actions.pod:650
25868 " guestfs_base64_in (guestfs_h *g,\n"
25869 " const char *base64file,\n"
25870 " const char *filename);\n"
25874 " guestfs_base64_in (guestfs_h *g,\n"
25875 " const char *base64file,\n"
25876 " const char *filename);\n"
25880 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:674
25881 msgid "(Added in 1.3.5)"
25882 msgstr "(Додано у 1.3.5)"
25885 #: ../src/guestfs-actions.pod:662
25886 msgid "guestfs_base64_out"
25887 msgstr "guestfs_base64_out"
25890 #: ../src/guestfs-actions.pod:664
25894 " guestfs_base64_out (guestfs_h *g,\n"
25895 " const char *filename,\n"
25896 " const char *base64file);\n"
25900 " guestfs_base64_out (guestfs_h *g,\n"
25901 " const char *filename,\n"
25902 " const char *base64file);\n"
25906 #: ../src/guestfs-actions.pod:676
25907 msgid "guestfs_blockdev_flushbufs"
25908 msgstr "guestfs_blockdev_flushbufs"
25911 #: ../src/guestfs-actions.pod:678
25915 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25916 " const char *device);\n"
25920 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25921 " const char *device);\n"
25925 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:706
25926 #: ../src/guestfs-actions.pod:721 ../src/guestfs-actions.pod:737
25927 #: ../src/guestfs-actions.pod:755 ../src/guestfs-actions.pod:774
25928 #: ../src/guestfs-actions.pod:788 ../src/guestfs-actions.pod:806
25929 #: ../src/guestfs-actions.pod:820 ../src/guestfs-actions.pod:834
25930 msgid "(Added in 0.9.3)"
25931 msgstr "(Додано у 0.9.3)"
25934 #: ../src/guestfs-actions.pod:691
25935 msgid "guestfs_blockdev_getbsz"
25936 msgstr "guestfs_blockdev_getbsz"
25939 #: ../src/guestfs-actions.pod:693
25943 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25944 " const char *device);\n"
25948 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25949 " const char *device);\n"
25953 #: ../src/guestfs-actions.pod:708
25954 msgid "guestfs_blockdev_getro"
25955 msgstr "guestfs_blockdev_getro"
25958 #: ../src/guestfs-actions.pod:710
25962 " guestfs_blockdev_getro (guestfs_h *g,\n"
25963 " const char *device);\n"
25967 " guestfs_blockdev_getro (guestfs_h *g,\n"
25968 " const char *device);\n"
25972 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:1596
25973 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:2100
25974 #: ../src/guestfs-actions.pod:2111 ../src/guestfs-actions.pod:2183
25975 #: ../src/guestfs-actions.pod:2209 ../src/guestfs-actions.pod:2249
25976 #: ../src/guestfs-actions.pod:2264 ../src/guestfs-actions.pod:2300
25977 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:3398
25978 #: ../src/guestfs-actions.pod:3414 ../src/guestfs-actions.pod:3432
25979 #: ../src/guestfs-actions.pod:3594 ../src/guestfs-actions.pod:3608
25980 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3637
25981 #: ../src/guestfs-actions.pod:3653 ../src/guestfs-actions.pod:3668
25982 #: ../src/guestfs-actions.pod:3684 ../src/guestfs-actions.pod:3698
25983 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3725
25984 #: ../src/guestfs-actions.pod:3740 ../src/guestfs-actions.pod:3755
25985 #: ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:3782
25986 #: ../src/guestfs-actions.pod:5501
25987 msgid "This function returns a C truth value on success or -1 on error."
25991 #: ../src/guestfs-actions.pod:723
25992 msgid "guestfs_blockdev_getsize64"
25993 msgstr "guestfs_blockdev_getsize64"
25996 #: ../src/guestfs-actions.pod:725
26000 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26001 " const char *device);\n"
26005 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26006 " const char *device);\n"
26010 #: ../src/guestfs-actions.pod:731
26011 msgid "See also C<guestfs_blockdev_getsz>."
26015 #: ../src/guestfs-actions.pod:739
26016 msgid "guestfs_blockdev_getss"
26017 msgstr "guestfs_blockdev_getss"
26020 #: ../src/guestfs-actions.pod:741
26024 " guestfs_blockdev_getss (guestfs_h *g,\n"
26025 " const char *device);\n"
26029 " guestfs_blockdev_getss (guestfs_h *g,\n"
26030 " const char *device);\n"
26034 #: ../src/guestfs-actions.pod:748
26036 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26041 #: ../src/guestfs-actions.pod:757
26042 msgid "guestfs_blockdev_getsz"
26043 msgstr "guestfs_blockdev_getsz"
26046 #: ../src/guestfs-actions.pod:759
26050 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26051 " const char *device);\n"
26055 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26056 " const char *device);\n"
26060 #: ../src/guestfs-actions.pod:766
26062 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26063 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26067 #: ../src/guestfs-actions.pod:776
26068 msgid "guestfs_blockdev_rereadpt"
26069 msgstr "guestfs_blockdev_rereadpt"
26072 #: ../src/guestfs-actions.pod:778
26076 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26077 " const char *device);\n"
26081 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26082 " const char *device);\n"
26086 #: ../src/guestfs-actions.pod:790
26087 msgid "guestfs_blockdev_setbsz"
26088 msgstr "guestfs_blockdev_setbsz"
26091 #: ../src/guestfs-actions.pod:792
26095 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26096 " const char *device,\n"
26097 " int blocksize);\n"
26101 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26102 " const char *device,\n"
26103 " int blocksize);\n"
26107 #: ../src/guestfs-actions.pod:808
26108 msgid "guestfs_blockdev_setro"
26109 msgstr "guestfs_blockdev_setro"
26112 #: ../src/guestfs-actions.pod:810
26116 " guestfs_blockdev_setro (guestfs_h *g,\n"
26117 " const char *device);\n"
26121 " guestfs_blockdev_setro (guestfs_h *g,\n"
26122 " const char *device);\n"
26126 #: ../src/guestfs-actions.pod:822
26127 msgid "guestfs_blockdev_setrw"
26128 msgstr "guestfs_blockdev_setrw"
26131 #: ../src/guestfs-actions.pod:824
26135 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26136 " const char *device);\n"
26140 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26141 " const char *device);\n"
26145 #: ../src/guestfs-actions.pod:836
26146 msgid "guestfs_btrfs_filesystem_resize"
26147 msgstr "guestfs_btrfs_filesystem_resize"
26150 #: ../src/guestfs-actions.pod:838
26154 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26155 " const char *mountpoint,\n"
26160 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26161 " const char *mountpoint,\n"
26166 #: ../src/guestfs-actions.pod:848
26169 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26172 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26176 #: ../src/guestfs-actions.pod:871
26177 msgid "(Added in 1.11.17)"
26178 msgstr "(Додано у 1.11.17)"
26181 #: ../src/guestfs-actions.pod:873
26182 msgid "guestfs_btrfs_filesystem_resize_va"
26183 msgstr "guestfs_btrfs_filesystem_resize_va"
26186 #: ../src/guestfs-actions.pod:875
26190 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26191 " const char *mountpoint,\n"
26192 " va_list args);\n"
26196 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26197 " const char *mountpoint,\n"
26198 " va_list args);\n"
26202 #: ../src/guestfs-actions.pod:880
26203 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26207 #: ../src/guestfs-actions.pod:884
26208 msgid "guestfs_btrfs_filesystem_resize_argv"
26209 msgstr "guestfs_btrfs_filesystem_resize_argv"
26212 #: ../src/guestfs-actions.pod:886
26216 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26217 " const char *mountpoint,\n"
26218 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26222 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26223 " const char *mountpoint,\n"
26224 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26228 #: ../src/guestfs-actions.pod:891
26229 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26233 #: ../src/guestfs-actions.pod:895
26234 msgid "guestfs_case_sensitive_path"
26238 #: ../src/guestfs-actions.pod:897
26242 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26243 " const char *path);\n"
26248 #: ../src/guestfs-actions.pod:923
26250 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return C<"
26251 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26252 "how the directories were originally created under Windows)."
26256 #: ../src/guestfs-actions.pod:931
26257 msgid "See also C<guestfs_realpath>."
26261 #: ../src/guestfs-actions.pod:936 ../src/guestfs-actions.pod:7565
26262 msgid "(Added in 1.0.75)"
26263 msgstr "(Додано у 1.0.75)"
26266 #: ../src/guestfs-actions.pod:938
26267 msgid "guestfs_cat"
26271 #: ../src/guestfs-actions.pod:940
26275 " guestfs_cat (guestfs_h *g,\n"
26276 " const char *path);\n"
26281 #: ../src/guestfs-actions.pod:946
26283 "Note that this function cannot correctly handle binary files (specifically, "
26284 "files containing C<\\0> character which is treated as end of string). For "
26285 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26286 "functions which have a more complex interface."
26290 #: ../src/guestfs-actions.pod:957 ../src/guestfs-actions.pod:3912
26291 #: ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:4011
26292 #: ../src/guestfs-actions.pod:4099 ../src/guestfs-actions.pod:4507
26293 #: ../src/guestfs-actions.pod:4521 ../src/guestfs-actions.pod:5882
26294 #: ../src/guestfs-actions.pod:5896 ../src/guestfs-actions.pod:7718
26295 #: ../src/guestfs-actions.pod:7732
26296 msgid "(Added in 0.4)"
26297 msgstr "(Додано у 0.4)"
26300 #: ../src/guestfs-actions.pod:959
26301 msgid "guestfs_checksum"
26305 #: ../src/guestfs-actions.pod:961
26309 " guestfs_checksum (guestfs_h *g,\n"
26310 " const char *csumtype,\n"
26311 " const char *path);\n"
26316 #: ../src/guestfs-actions.pod:1007
26317 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26321 #: ../src/guestfs-actions.pod:1009
26322 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26326 #: ../src/guestfs-actions.pod:1014 ../src/guestfs-actions.pod:1433
26327 #: ../src/guestfs-actions.pod:2291 ../src/guestfs-actions.pod:3610
26328 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3700
26329 #: ../src/guestfs-actions.pod:3727 ../src/guestfs-actions.pod:7421
26330 msgid "(Added in 1.0.2)"
26331 msgstr "(Додано у 1.0.2)"
26334 #: ../src/guestfs-actions.pod:1016
26335 msgid "guestfs_checksum_device"
26339 #: ../src/guestfs-actions.pod:1018
26343 " guestfs_checksum_device (guestfs_h *g,\n"
26344 " const char *csumtype,\n"
26345 " const char *device);\n"
26350 #: ../src/guestfs-actions.pod:1023
26352 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26353 "device named C<device>. For the types of checksums supported see the "
26354 "C<guestfs_checksum> command."
26358 #: ../src/guestfs-actions.pod:1030 ../src/guestfs-actions.pod:5331
26359 #: ../src/guestfs-actions.pod:5466 ../src/guestfs-actions.pod:5503
26360 #: ../src/guestfs-actions.pod:5521 ../src/guestfs-actions.pod:5703
26361 #: ../src/guestfs-actions.pod:7330 ../src/guestfs-actions.pod:7344
26362 #: ../src/guestfs-actions.pod:7744
26363 msgid "(Added in 1.3.2)"
26364 msgstr "(Додано у 1.3.2)"
26367 #: ../src/guestfs-actions.pod:1032
26368 msgid "guestfs_checksums_out"
26372 #: ../src/guestfs-actions.pod:1034
26376 " guestfs_checksums_out (guestfs_h *g,\n"
26377 " const char *csumtype,\n"
26378 " const char *directory,\n"
26379 " const char *sumsfile);\n"
26384 #: ../src/guestfs-actions.pod:1054
26385 msgid "(Added in 1.3.7)"
26386 msgstr "(Додано у 1.3.7)"
26389 #: ../src/guestfs-actions.pod:1056
26390 msgid "guestfs_chmod"
26394 #: ../src/guestfs-actions.pod:1058
26398 " guestfs_chmod (guestfs_h *g,\n"
26400 " const char *path);\n"
26405 #: ../src/guestfs-actions.pod:1076
26406 msgid "guestfs_chown"
26410 #: ../src/guestfs-actions.pod:1078
26414 " guestfs_chown (guestfs_h *g,\n"
26417 " const char *path);\n"
26422 #: ../src/guestfs-actions.pod:1094
26423 msgid "guestfs_command"
26427 #: ../src/guestfs-actions.pod:1096
26431 " guestfs_command (guestfs_h *g,\n"
26432 " char *const *arguments);\n"
26437 #: ../src/guestfs-actions.pod:1105
26439 "The single parameter is an argv-style list of arguments. The first element "
26440 "is the name of the program to run. Subsequent elements are parameters. The "
26441 "list must be non-empty (ie. must contain a program name). Note that the "
26442 "command runs directly, and is I<not> invoked via the shell (see "
26447 #: ../src/guestfs-actions.pod:1136 ../src/guestfs-actions.pod:1156
26448 #: ../src/guestfs-actions.pod:1732
26449 msgid "(Added in 0.9.1)"
26450 msgstr "(Додано у 0.9.1)"
26453 #: ../src/guestfs-actions.pod:1138
26454 msgid "guestfs_command_lines"
26458 #: ../src/guestfs-actions.pod:1140
26462 " guestfs_command_lines (guestfs_h *g,\n"
26463 " char *const *arguments);\n"
26468 #: ../src/guestfs-actions.pod:1144
26470 "This is the same as C<guestfs_command>, but splits the result into a list of "
26475 #: ../src/guestfs-actions.pod:1147
26476 msgid "See also: C<guestfs_sh_lines>"
26480 #: ../src/guestfs-actions.pod:1158
26481 msgid "guestfs_compress_device_out"
26485 #: ../src/guestfs-actions.pod:1160
26489 " guestfs_compress_device_out (guestfs_h *g,\n"
26490 " const char *ctype,\n"
26491 " const char *device,\n"
26492 " const char *zdevice,\n"
26498 #: ../src/guestfs-actions.pod:1172
26501 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26506 #: ../src/guestfs-actions.pod:1177
26508 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26509 "C<guestfs_compress_out>."
26513 #: ../src/guestfs-actions.pod:1182 ../src/guestfs-actions.pod:1241
26514 #: ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:6602
26515 msgid "(Added in 1.13.15)"
26519 #: ../src/guestfs-actions.pod:1184
26520 msgid "guestfs_compress_device_out_va"
26524 #: ../src/guestfs-actions.pod:1186
26528 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26529 " const char *ctype,\n"
26530 " const char *device,\n"
26531 " const char *zdevice,\n"
26532 " va_list args);\n"
26537 #: ../src/guestfs-actions.pod:1193
26538 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26542 #: ../src/guestfs-actions.pod:1197
26543 msgid "guestfs_compress_device_out_argv"
26547 #: ../src/guestfs-actions.pod:1199
26551 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26552 " const char *ctype,\n"
26553 " const char *device,\n"
26554 " const char *zdevice,\n"
26555 " const struct guestfs_compress_device_out_argv *optargs);\n"
26560 #: ../src/guestfs-actions.pod:1206
26561 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26565 #: ../src/guestfs-actions.pod:1210
26566 msgid "guestfs_compress_out"
26570 #: ../src/guestfs-actions.pod:1212
26574 " guestfs_compress_out (guestfs_h *g,\n"
26575 " const char *ctype,\n"
26576 " const char *file,\n"
26577 " const char *zfile,\n"
26583 #: ../src/guestfs-actions.pod:1224
26586 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26591 #: ../src/guestfs-actions.pod:1243
26592 msgid "guestfs_compress_out_va"
26596 #: ../src/guestfs-actions.pod:1245
26600 " guestfs_compress_out_va (guestfs_h *g,\n"
26601 " const char *ctype,\n"
26602 " const char *file,\n"
26603 " const char *zfile,\n"
26604 " va_list args);\n"
26609 #: ../src/guestfs-actions.pod:1252
26610 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26614 #: ../src/guestfs-actions.pod:1256
26615 msgid "guestfs_compress_out_argv"
26619 #: ../src/guestfs-actions.pod:1258
26623 " guestfs_compress_out_argv (guestfs_h *g,\n"
26624 " const char *ctype,\n"
26625 " const char *file,\n"
26626 " const char *zfile,\n"
26627 " const struct guestfs_compress_out_argv *optargs);\n"
26632 #: ../src/guestfs-actions.pod:1265
26633 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26637 #: ../src/guestfs-actions.pod:1269
26638 msgid "guestfs_config"
26642 #: ../src/guestfs-actions.pod:1271
26646 " guestfs_config (guestfs_h *g,\n"
26647 " const char *qemuparam,\n"
26648 " const char *qemuvalue);\n"
26653 #: ../src/guestfs-actions.pod:1289
26654 msgid "guestfs_copy_size"
26658 #: ../src/guestfs-actions.pod:1291
26662 " guestfs_copy_size (guestfs_h *g,\n"
26663 " const char *src,\n"
26664 " const char *dest,\n"
26665 " int64_t size);\n"
26670 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:1428
26671 #: ../src/guestfs-actions.pod:1459 ../src/guestfs-actions.pod:1504
26672 #: ../src/guestfs-actions.pod:1881 ../src/guestfs-actions.pod:1903
26673 #: ../src/guestfs-actions.pod:3810 ../src/guestfs-actions.pod:7416
26674 #: ../src/guestfs-actions.pod:7450 ../src/guestfs-actions.pod:7957
26675 #: ../src/guestfs-actions.pod:7980
26677 "This long-running command can generate progress notification messages so "
26678 "that the caller can display a progress bar or indicator. To receive these "
26679 "messages, the caller must register a progress event callback. See L<guestfs"
26680 "(3)/GUESTFS_EVENT_PROGRESS>."
26684 #: ../src/guestfs-actions.pod:1310 ../src/guestfs-actions.pod:4534
26685 #: ../src/guestfs-actions.pod:5909 ../src/guestfs-actions.pod:7651
26686 #: ../src/guestfs-actions.pod:7671 ../src/guestfs-actions.pod:7757
26687 msgid "(Added in 1.0.87)"
26688 msgstr "(Додано у 1.0.87)"
26691 #: ../src/guestfs-actions.pod:1312
26696 #: ../src/guestfs-actions.pod:1314
26700 " guestfs_cp (guestfs_h *g,\n"
26701 " const char *src,\n"
26702 " const char *dest);\n"
26707 #: ../src/guestfs-actions.pod:1324 ../src/guestfs-actions.pod:1338
26708 #: ../src/guestfs-actions.pod:1410 ../src/guestfs-actions.pod:1484
26709 #: ../src/guestfs-actions.pod:1598 ../src/guestfs-actions.pod:5278
26710 #: ../src/guestfs-actions.pod:5753
26711 msgid "(Added in 1.0.18)"
26712 msgstr "(Додано у 1.0.18)"
26715 #: ../src/guestfs-actions.pod:1326
26716 msgid "guestfs_cp_a"
26720 #: ../src/guestfs-actions.pod:1328
26724 " guestfs_cp_a (guestfs_h *g,\n"
26725 " const char *src,\n"
26726 " const char *dest);\n"
26731 #: ../src/guestfs-actions.pod:1340
26736 #: ../src/guestfs-actions.pod:1342
26740 " guestfs_dd (guestfs_h *g,\n"
26741 " const char *src,\n"
26742 " const char *dest);\n"
26747 #: ../src/guestfs-actions.pod:1352
26749 "If the destination is a device, it must be as large or larger than the "
26750 "source file or device, otherwise the copy will fail. This command cannot do "
26751 "partial copies (see C<guestfs_copy_size>)."
26755 #: ../src/guestfs-actions.pod:1360
26760 #: ../src/guestfs-actions.pod:1362
26764 " guestfs_df (guestfs_h *g);\n"
26769 #: ../src/guestfs-actions.pod:1367 ../src/guestfs-actions.pod:1384
26771 "This command is mostly useful for interactive sessions. It is I<not> "
26772 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
26777 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1391
26778 #: ../src/guestfs-actions.pod:1509 ../src/guestfs-actions.pod:2516
26779 #: ../src/guestfs-actions.pod:2540 ../src/guestfs-actions.pod:2608
26780 #: ../src/guestfs-actions.pod:4644 ../src/guestfs-actions.pod:5178
26781 #: ../src/guestfs-actions.pod:7154 ../src/guestfs-actions.pod:7178
26782 #: ../src/guestfs-actions.pod:7797 ../src/guestfs-actions.pod:7810
26783 #: ../src/guestfs-actions.pod:7823
26784 msgid "(Added in 1.0.54)"
26785 msgstr "(Додано у 1.0.54)"
26788 #: ../src/guestfs-actions.pod:1376
26789 msgid "guestfs_df_h"
26793 #: ../src/guestfs-actions.pod:1378
26797 " guestfs_df_h (guestfs_h *g);\n"
26802 #: ../src/guestfs-actions.pod:1393
26803 msgid "guestfs_dmesg"
26807 #: ../src/guestfs-actions.pod:1395
26811 " guestfs_dmesg (guestfs_h *g);\n"
26816 #: ../src/guestfs-actions.pod:1402
26818 "Another way to get the same information is to enable verbose messages with "
26819 "C<guestfs_set_verbose> or by setting the environment variable "
26820 "C<LIBGUESTFS_DEBUG=1> before running the program."
26824 #: ../src/guestfs-actions.pod:1412
26825 msgid "guestfs_download"
26829 #: ../src/guestfs-actions.pod:1414
26833 " guestfs_download (guestfs_h *g,\n"
26834 " const char *remotefilename,\n"
26835 " const char *filename);\n"
26840 #: ../src/guestfs-actions.pod:1424
26841 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
26845 #: ../src/guestfs-actions.pod:1435
26846 msgid "guestfs_download_offset"
26850 #: ../src/guestfs-actions.pod:1437
26854 " guestfs_download_offset (guestfs_h *g,\n"
26855 " const char *remotefilename,\n"
26856 " const char *filename,\n"
26857 " int64_t offset,\n"
26858 " int64_t size);\n"
26863 #: ../src/guestfs-actions.pod:1450
26865 "Note that there is no limit on the amount of data that can be downloaded "
26866 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
26867 "full amount unless an error occurs."
26871 #: ../src/guestfs-actions.pod:1455
26872 msgid "See also C<guestfs_download>, C<guestfs_pread>."
26876 #: ../src/guestfs-actions.pod:1464 ../src/guestfs-actions.pod:7455
26877 msgid "(Added in 1.5.17)"
26878 msgstr "(Додано у 1.5.17)"
26881 #: ../src/guestfs-actions.pod:1466
26882 msgid "guestfs_drop_caches"
26886 #: ../src/guestfs-actions.pod:1468
26890 " guestfs_drop_caches (guestfs_h *g,\n"
26891 " int whattodrop);\n"
26896 #: ../src/guestfs-actions.pod:1486
26901 #: ../src/guestfs-actions.pod:1488
26905 " guestfs_du (guestfs_h *g,\n"
26906 " const char *path);\n"
26911 #: ../src/guestfs-actions.pod:1511
26912 msgid "guestfs_e2fsck_f"
26916 #: ../src/guestfs-actions.pod:1513
26920 " guestfs_e2fsck_f (guestfs_h *g,\n"
26921 " const char *device);\n"
26926 #: ../src/guestfs-actions.pod:1521
26928 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
26929 "Normally you should use C<guestfs_fsck>."
26933 #: ../src/guestfs-actions.pod:1526
26934 msgid "(Added in 1.0.29)"
26935 msgstr "(Додано у 1.0.29)"
26938 #: ../src/guestfs-actions.pod:1528
26939 msgid "guestfs_echo_daemon"
26940 msgstr "guestfs_echo_daemon"
26943 #: ../src/guestfs-actions.pod:1530
26947 " guestfs_echo_daemon (guestfs_h *g,\n"
26948 " char *const *words);\n"
26952 " guestfs_echo_daemon (guestfs_h *g,\n"
26953 " char *const *words);\n"
26957 #: ../src/guestfs-actions.pod:1539
26958 msgid "See also C<guestfs_ping_daemon>."
26962 #: ../src/guestfs-actions.pod:1544 ../src/guestfs-actions.pod:2302
26963 #: ../src/guestfs-actions.pod:6626
26964 msgid "(Added in 1.0.69)"
26965 msgstr "(Додано у 1.0.69)"
26968 #: ../src/guestfs-actions.pod:1546
26969 msgid "guestfs_egrep"
26970 msgstr "guestfs_egrep"
26973 #: ../src/guestfs-actions.pod:1548
26977 " guestfs_egrep (guestfs_h *g,\n"
26978 " const char *regex,\n"
26979 " const char *path);\n"
26983 " guestfs_egrep (guestfs_h *g,\n"
26984 " const char *regex,\n"
26985 " const char *path);\n"
26989 #: ../src/guestfs-actions.pod:1563 ../src/guestfs-actions.pod:1582
26990 #: ../src/guestfs-actions.pod:1639 ../src/guestfs-actions.pod:1685
26991 #: ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:2432
26992 #: ../src/guestfs-actions.pod:2451 ../src/guestfs-actions.pod:2629
26993 #: ../src/guestfs-actions.pod:2642 ../src/guestfs-actions.pod:2657
26994 #: ../src/guestfs-actions.pod:2703 ../src/guestfs-actions.pod:2725
26995 #: ../src/guestfs-actions.pod:2738 ../src/guestfs-actions.pod:4024
26996 #: ../src/guestfs-actions.pod:4038 ../src/guestfs-actions.pod:4051
26997 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:5066
26998 #: ../src/guestfs-actions.pod:6087 ../src/guestfs-actions.pod:6136
26999 #: ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7034
27000 #: ../src/guestfs-actions.pod:7047 ../src/guestfs-actions.pod:7060
27001 #: ../src/guestfs-actions.pod:7082 ../src/guestfs-actions.pod:7095
27002 #: ../src/guestfs-actions.pod:7108 ../src/guestfs-actions.pod:7121
27003 #: ../src/guestfs-actions.pod:7915 ../src/guestfs-actions.pod:7934
27004 #: ../src/guestfs-actions.pod:8028 ../src/guestfs-actions.pod:8047
27005 #: ../src/guestfs-actions.pod:8093 ../src/guestfs-actions.pod:8112
27006 msgid "(Added in 1.0.66)"
27007 msgstr "(Додано у 1.0.66)"
27010 #: ../src/guestfs-actions.pod:1565
27011 msgid "guestfs_egrepi"
27012 msgstr "guestfs_egrepi"
27015 #: ../src/guestfs-actions.pod:1567
27019 " guestfs_egrepi (guestfs_h *g,\n"
27020 " const char *regex,\n"
27021 " const char *path);\n"
27026 #: ../src/guestfs-actions.pod:1584
27027 msgid "guestfs_equal"
27031 #: ../src/guestfs-actions.pod:1586
27035 " guestfs_equal (guestfs_h *g,\n"
27036 " const char *file1,\n"
27037 " const char *file2);\n"
27042 #: ../src/guestfs-actions.pod:1600
27043 msgid "guestfs_exists"
27047 #: ../src/guestfs-actions.pod:1602
27051 " guestfs_exists (guestfs_h *g,\n"
27052 " const char *path);\n"
27057 #: ../src/guestfs-actions.pod:1609
27058 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
27062 #: ../src/guestfs-actions.pod:1615
27063 msgid "guestfs_fallocate"
27067 #: ../src/guestfs-actions.pod:1617
27071 " guestfs_fallocate (guestfs_h *g,\n"
27072 " const char *path,\n"
27078 #: ../src/guestfs-actions.pod:1622
27080 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
27085 #: ../src/guestfs-actions.pod:1641
27086 msgid "guestfs_fallocate64"
27090 #: ../src/guestfs-actions.pod:1643
27094 " guestfs_fallocate64 (guestfs_h *g,\n"
27095 " const char *path,\n"
27101 #: ../src/guestfs-actions.pod:1652
27103 "Note that this call allocates disk blocks for the file. To create a sparse "
27104 "file use C<guestfs_truncate_size> instead."
27108 #: ../src/guestfs-actions.pod:1655
27110 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27111 "oversight it only allowed 30 bit lengths to be specified, effectively "
27112 "limiting the maximum size of files created through that call to 1GB."
27116 #: ../src/guestfs-actions.pod:1666
27117 msgid "(Added in 1.3.17)"
27118 msgstr "(Додано у 1.3.17)"
27121 #: ../src/guestfs-actions.pod:1668
27122 msgid "guestfs_fgrep"
27126 #: ../src/guestfs-actions.pod:1670
27130 " guestfs_fgrep (guestfs_h *g,\n"
27131 " const char *pattern,\n"
27132 " const char *path);\n"
27137 #: ../src/guestfs-actions.pod:1687
27138 msgid "guestfs_fgrepi"
27142 #: ../src/guestfs-actions.pod:1689
27146 " guestfs_fgrepi (guestfs_h *g,\n"
27147 " const char *pattern,\n"
27148 " const char *path);\n"
27153 #: ../src/guestfs-actions.pod:1706
27154 msgid "guestfs_file"
27158 #: ../src/guestfs-actions.pod:1708
27162 " guestfs_file (guestfs_h *g,\n"
27163 " const char *path);\n"
27168 #: ../src/guestfs-actions.pod:1726
27170 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27171 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27175 #: ../src/guestfs-actions.pod:1734
27176 msgid "guestfs_file_architecture"
27180 #: ../src/guestfs-actions.pod:1736
27184 " guestfs_file_architecture (guestfs_h *g,\n"
27185 " const char *filename);\n"
27190 #: ../src/guestfs-actions.pod:1844 ../src/guestfs-actions.pod:2007
27191 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2758
27192 #: ../src/guestfs-actions.pod:2860 ../src/guestfs-actions.pod:2926
27193 #: ../src/guestfs-actions.pod:3113 ../src/guestfs-actions.pod:3131
27194 #: ../src/guestfs-actions.pod:3171 ../src/guestfs-actions.pod:3247
27195 #: ../src/guestfs-actions.pod:3344 ../src/guestfs-actions.pod:3581
27196 #: ../src/guestfs-actions.pod:3713
27197 msgid "(Added in 1.5.3)"
27198 msgstr "(Додано у 1.5.3)"
27201 #: ../src/guestfs-actions.pod:1846
27202 msgid "guestfs_filesize"
27206 #: ../src/guestfs-actions.pod:1848
27210 " guestfs_filesize (guestfs_h *g,\n"
27211 " const char *file);\n"
27216 #: ../src/guestfs-actions.pod:1854
27218 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27219 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
27220 "devices, use C<guestfs_blockdev_getsize64>."
27224 #: ../src/guestfs-actions.pod:1860
27225 msgid "(Added in 1.0.82)"
27226 msgstr "(Додано у 1.0.82)"
27229 #: ../src/guestfs-actions.pod:1862
27230 msgid "guestfs_fill"
27234 #: ../src/guestfs-actions.pod:1864
27238 " guestfs_fill (guestfs_h *g,\n"
27241 " const char *path);\n"
27246 #: ../src/guestfs-actions.pod:1874
27248 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27249 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
27250 "bytes use C<guestfs_fill_pattern>."
27254 #: ../src/guestfs-actions.pod:1886
27255 msgid "(Added in 1.0.79)"
27256 msgstr "(Додано у 1.0.79)"
27259 #: ../src/guestfs-actions.pod:1888
27260 msgid "guestfs_fill_pattern"
27264 #: ../src/guestfs-actions.pod:1890
27268 " guestfs_fill_pattern (guestfs_h *g,\n"
27269 " const char *pattern,\n"
27271 " const char *path);\n"
27276 #: ../src/guestfs-actions.pod:1896
27278 "This function is like C<guestfs_fill> except that it creates a new file of "
27279 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
27280 "pattern is truncated if necessary to ensure the length of the file is "
27281 "exactly C<len> bytes."
27285 #: ../src/guestfs-actions.pod:1908
27286 msgid "(Added in 1.3.12)"
27287 msgstr "(Додано у 1.3.12)"
27290 #: ../src/guestfs-actions.pod:1910
27291 msgid "guestfs_find"
27295 #: ../src/guestfs-actions.pod:1912
27299 " guestfs_find (guestfs_h *g,\n"
27300 " const char *directory);\n"
27305 #: ../src/guestfs-actions.pod:1928
27307 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27311 #: ../src/guestfs-actions.pod:1941
27312 msgid "See also C<guestfs_find0>."
27316 #: ../src/guestfs-actions.pod:1950 ../src/guestfs-actions.pod:4471
27317 #: ../src/guestfs-actions.pod:6171
27318 msgid "(Added in 1.0.27)"
27319 msgstr "(Додано у 1.0.27)"
27322 #: ../src/guestfs-actions.pod:1952
27323 msgid "guestfs_find0"
27327 #: ../src/guestfs-actions.pod:1954
27331 " guestfs_find0 (guestfs_h *g,\n"
27332 " const char *directory,\n"
27333 " const char *files);\n"
27338 #: ../src/guestfs-actions.pod:1963
27340 "This command works the same way as C<guestfs_find> with the following "
27345 #: ../src/guestfs-actions.pod:1990
27346 msgid "(Added in 1.0.74)"
27347 msgstr "(Додано у 1.0.74)"
27350 #: ../src/guestfs-actions.pod:1992
27351 msgid "guestfs_findfs_label"
27355 #: ../src/guestfs-actions.pod:1994
27359 " guestfs_findfs_label (guestfs_h *g,\n"
27360 " const char *label);\n"
27365 #: ../src/guestfs-actions.pod:2002
27366 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
27370 #: ../src/guestfs-actions.pod:2009
27371 msgid "guestfs_findfs_uuid"
27375 #: ../src/guestfs-actions.pod:2011
27379 " guestfs_findfs_uuid (guestfs_h *g,\n"
27380 " const char *uuid);\n"
27385 #: ../src/guestfs-actions.pod:2019
27386 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
27390 #: ../src/guestfs-actions.pod:2026
27391 msgid "guestfs_fsck"
27395 #: ../src/guestfs-actions.pod:2028
27399 " guestfs_fsck (guestfs_h *g,\n"
27400 " const char *fstype,\n"
27401 " const char *device);\n"
27406 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:7962
27407 msgid "(Added in 1.0.16)"
27408 msgstr "(Додано у 1.0.16)"
27411 #: ../src/guestfs-actions.pod:2065
27412 msgid "guestfs_get_append"
27416 #: ../src/guestfs-actions.pod:2067
27420 " guestfs_get_append (guestfs_h *g);\n"
27425 #: ../src/guestfs-actions.pod:2075
27427 "This function returns a string which may be NULL. There is no way to return "
27428 "an error from this function. The string is owned by the guest handle and "
27429 "must I<not> be freed."
27433 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:5849
27434 #: ../src/guestfs-actions.pod:6331 ../src/guestfs-actions.pod:6789
27435 #: ../src/guestfs-actions.pod:6808 ../src/guestfs-actions.pod:6824
27436 #: ../src/guestfs-actions.pod:6848 ../src/guestfs-actions.pod:7602
27437 #: ../src/guestfs-actions.pod:7617 ../src/guestfs-actions.pod:8009
27438 msgid "(Added in 1.0.26)"
27439 msgstr "(Додано у 1.0.26)"
27442 #: ../src/guestfs-actions.pod:2081
27443 msgid "guestfs_get_attach_method"
27447 #: ../src/guestfs-actions.pod:2083
27451 " guestfs_get_attach_method (guestfs_h *g);\n"
27456 #: ../src/guestfs-actions.pod:2086
27457 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
27461 #: ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:6361
27462 msgid "(Added in 1.9.8)"
27463 msgstr "(Додано у 1.9.8)"
27466 #: ../src/guestfs-actions.pod:2093
27467 msgid "guestfs_get_autosync"
27471 #: ../src/guestfs-actions.pod:2095
27475 " guestfs_get_autosync (guestfs_h *g);\n"
27480 #: ../src/guestfs-actions.pod:2104
27481 msgid "guestfs_get_direct"
27485 #: ../src/guestfs-actions.pod:2106
27489 " guestfs_get_direct (guestfs_h *g);\n"
27494 #: ../src/guestfs-actions.pod:2113 ../src/guestfs-actions.pod:6402
27495 msgid "(Added in 1.0.72)"
27496 msgstr "(Додано у 1.0.72)"
27499 #: ../src/guestfs-actions.pod:2115
27500 msgid "guestfs_get_e2label"
27504 #: ../src/guestfs-actions.pod:2117
27508 " guestfs_get_e2label (guestfs_h *g,\n"
27509 " const char *device);\n"
27514 #: ../src/guestfs-actions.pod:2121
27516 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
27521 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:2155
27522 #: ../src/guestfs-actions.pod:6420 ../src/guestfs-actions.pod:6439
27523 msgid "(Added in 1.0.15)"
27524 msgstr "(Додано у 1.0.15)"
27527 #: ../src/guestfs-actions.pod:2136
27528 msgid "guestfs_get_e2uuid"
27532 #: ../src/guestfs-actions.pod:2138
27536 " guestfs_get_e2uuid (guestfs_h *g,\n"
27537 " const char *device);\n"
27542 #: ../src/guestfs-actions.pod:2142
27544 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
27549 #: ../src/guestfs-actions.pod:2157
27550 msgid "guestfs_get_memsize"
27554 #: ../src/guestfs-actions.pod:2159
27558 " guestfs_get_memsize (guestfs_h *g);\n"
27563 #: ../src/guestfs-actions.pod:2165
27565 "If C<guestfs_set_memsize> was not called on this handle, and if "
27566 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
27567 "value for memsize."
27571 #: ../src/guestfs-actions.pod:2174 ../src/guestfs-actions.pod:4762
27572 #: ../src/guestfs-actions.pod:4971 ../src/guestfs-actions.pod:4990
27573 #: ../src/guestfs-actions.pod:5009 ../src/guestfs-actions.pod:5021
27574 #: ../src/guestfs-actions.pod:5038 ../src/guestfs-actions.pod:5051
27575 #: ../src/guestfs-actions.pod:6074 ../src/guestfs-actions.pod:6460
27576 #: ../src/guestfs-actions.pod:6756 ../src/guestfs-actions.pod:7371
27577 msgid "(Added in 1.0.55)"
27578 msgstr "(Додано у 1.0.55)"
27581 #: ../src/guestfs-actions.pod:2176
27582 msgid "guestfs_get_network"
27586 #: ../src/guestfs-actions.pod:2178
27590 " guestfs_get_network (guestfs_h *g);\n"
27595 #: ../src/guestfs-actions.pod:2185 ../src/guestfs-actions.pod:6479
27596 msgid "(Added in 1.5.4)"
27597 msgstr "(Додано у 1.5.4)"
27600 #: ../src/guestfs-actions.pod:2187
27601 msgid "guestfs_get_path"
27605 #: ../src/guestfs-actions.pod:2189
27609 " guestfs_get_path (guestfs_h *g);\n"
27614 #: ../src/guestfs-actions.pod:2197 ../src/guestfs-actions.pod:2237
27616 "This function returns a string, or NULL on error. The string is owned by "
27617 "the guest handle and must I<not> be freed."
27621 #: ../src/guestfs-actions.pod:2202
27622 msgid "guestfs_get_pgroup"
27626 #: ../src/guestfs-actions.pod:2204
27630 " guestfs_get_pgroup (guestfs_h *g);\n"
27635 #: ../src/guestfs-actions.pod:2211 ../src/guestfs-actions.pod:6515
27636 #: ../src/guestfs-actions.pod:7863
27637 msgid "(Added in 1.11.18)"
27638 msgstr "(Додано у 1.11.18)"
27641 #: ../src/guestfs-actions.pod:2213
27642 msgid "guestfs_get_pid"
27646 #: ../src/guestfs-actions.pod:2215
27650 " guestfs_get_pid (guestfs_h *g);\n"
27655 #: ../src/guestfs-actions.pod:2225
27656 msgid "(Added in 1.0.56)"
27657 msgstr "(Додано у 1.0.56)"
27660 #: ../src/guestfs-actions.pod:2227
27661 msgid "guestfs_get_qemu"
27665 #: ../src/guestfs-actions.pod:2229
27669 " guestfs_get_qemu (guestfs_h *g);\n"
27674 #: ../src/guestfs-actions.pod:2240 ../src/guestfs-actions.pod:6543
27675 msgid "(Added in 1.0.6)"
27676 msgstr "(Додано у 1.0.6)"
27679 #: ../src/guestfs-actions.pod:2242
27680 msgid "guestfs_get_recovery_proc"
27684 #: ../src/guestfs-actions.pod:2244
27688 " guestfs_get_recovery_proc (guestfs_h *g);\n"
27693 #: ../src/guestfs-actions.pod:2251 ../src/guestfs-actions.pod:3835
27694 #: ../src/guestfs-actions.pod:4166 ../src/guestfs-actions.pod:4569
27695 #: ../src/guestfs-actions.pod:4601 ../src/guestfs-actions.pod:5779
27696 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6567
27697 #: ../src/guestfs-actions.pod:7274 ../src/guestfs-actions.pod:7294
27698 #: ../src/guestfs-actions.pod:7486
27699 msgid "(Added in 1.0.77)"
27700 msgstr "(Додано у 1.0.77)"
27703 #: ../src/guestfs-actions.pod:2253
27704 msgid "guestfs_get_selinux"
27708 #: ../src/guestfs-actions.pod:2255
27712 " guestfs_get_selinux (guestfs_h *g);\n"
27717 #: ../src/guestfs-actions.pod:2258
27719 "This returns the current setting of the selinux flag which is passed to the "
27720 "appliance at boot time. See C<guestfs_set_selinux>."
27724 #: ../src/guestfs-actions.pod:2266 ../src/guestfs-actions.pod:2340
27725 #: ../src/guestfs-actions.pod:6586 ../src/guestfs-actions.pod:6660
27726 msgid "(Added in 1.0.67)"
27727 msgstr "(Додано у 1.0.67)"
27730 #: ../src/guestfs-actions.pod:2268
27731 msgid "guestfs_get_smp"
27735 #: ../src/guestfs-actions.pod:2270
27739 " guestfs_get_smp (guestfs_h *g);\n"
27744 #: ../src/guestfs-actions.pod:2279
27745 msgid "guestfs_get_state"
27749 #: ../src/guestfs-actions.pod:2281
27753 " guestfs_get_state (guestfs_h *g);\n"
27758 #: ../src/guestfs-actions.pod:2293
27759 msgid "guestfs_get_trace"
27763 #: ../src/guestfs-actions.pod:2295
27767 " guestfs_get_trace (guestfs_h *g);\n"
27772 #: ../src/guestfs-actions.pod:2304
27773 msgid "guestfs_get_umask"
27777 #: ../src/guestfs-actions.pod:2306
27781 " guestfs_get_umask (guestfs_h *g);\n"
27786 #: ../src/guestfs-actions.pod:2309
27788 "Return the current umask. By default the umask is C<022> unless it has been "
27789 "set by calling C<guestfs_umask>."
27793 #: ../src/guestfs-actions.pod:2316
27794 msgid "guestfs_get_verbose"
27798 #: ../src/guestfs-actions.pod:2318
27802 " guestfs_get_verbose (guestfs_h *g);\n"
27807 #: ../src/guestfs-actions.pod:2327
27808 msgid "guestfs_getcon"
27812 #: ../src/guestfs-actions.pod:2329
27816 " guestfs_getcon (guestfs_h *g);\n"
27821 #: ../src/guestfs-actions.pod:2334
27823 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
27827 #: ../src/guestfs-actions.pod:2342
27828 msgid "guestfs_getxattr"
27832 #: ../src/guestfs-actions.pod:2344
27836 " guestfs_getxattr (guestfs_h *g,\n"
27837 " const char *path,\n"
27838 " const char *name,\n"
27839 " size_t *size_r);\n"
27844 #: ../src/guestfs-actions.pod:2350
27846 "Get a single extended attribute from file C<path> named C<name>. This call "
27847 "follows symlinks. If you want to lookup an extended attribute for the "
27848 "symlink itself, use C<guestfs_lgetxattr>."
27852 #: ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:3849
27854 "Normally it is better to get all extended attributes from a file in one go "
27855 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
27856 "implementations are buggy and do not provide a way to list out attributes. "
27857 "For these filesystems (notably ntfs-3g) you have to know the names of the "
27858 "extended attributes you want in advance and call this function."
27862 #: ../src/guestfs-actions.pod:2364
27863 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
27867 #: ../src/guestfs-actions.pod:2366 ../src/guestfs-actions.pod:2579
27868 #: ../src/guestfs-actions.pod:3061 ../src/guestfs-actions.pod:3861
27869 #: ../src/guestfs-actions.pod:5772 ../src/guestfs-actions.pod:5798
27870 #: ../src/guestfs-actions.pod:5979
27872 "This function returns a buffer, or NULL on error. The size of the returned "
27873 "buffer is written to C<*size_r>. I<The caller must free the returned buffer "
27878 #: ../src/guestfs-actions.pod:2370 ../src/guestfs-actions.pod:3865
27879 msgid "(Added in 1.7.24)"
27880 msgstr "(Додано у 1.7.24)"
27883 #: ../src/guestfs-actions.pod:2372
27884 msgid "guestfs_getxattrs"
27888 #: ../src/guestfs-actions.pod:2374
27891 " struct guestfs_xattr_list *\n"
27892 " guestfs_getxattrs (guestfs_h *g,\n"
27893 " const char *path);\n"
27898 #: ../src/guestfs-actions.pod:2384
27899 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
27903 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:3877
27904 #: ../src/guestfs-actions.pod:4565
27906 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
27907 "an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
27911 #: ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:3881
27912 #: ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4116
27913 #: ../src/guestfs-actions.pod:6152 ../src/guestfs-actions.pod:6679
27914 #: ../src/guestfs-actions.pod:8074
27915 msgid "(Added in 1.0.59)"
27916 msgstr "(Додано у 1.0.59)"
27919 #: ../src/guestfs-actions.pod:2392
27920 msgid "guestfs_glob_expand"
27924 #: ../src/guestfs-actions.pod:2394
27928 " guestfs_glob_expand (guestfs_h *g,\n"
27929 " const char *pattern);\n"
27934 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:6872
27935 #: ../src/guestfs-actions.pod:6889
27936 msgid "(Added in 1.0.50)"
27937 msgstr "(Додано у 1.0.50)"
27940 #: ../src/guestfs-actions.pod:2415
27941 msgid "guestfs_grep"
27945 #: ../src/guestfs-actions.pod:2417
27949 " guestfs_grep (guestfs_h *g,\n"
27950 " const char *regex,\n"
27951 " const char *path);\n"
27956 #: ../src/guestfs-actions.pod:2434
27957 msgid "guestfs_grepi"
27961 #: ../src/guestfs-actions.pod:2436
27965 " guestfs_grepi (guestfs_h *g,\n"
27966 " const char *regex,\n"
27967 " const char *path);\n"
27972 #: ../src/guestfs-actions.pod:2453
27973 msgid "guestfs_grub_install"
27977 #: ../src/guestfs-actions.pod:2455
27981 " guestfs_grub_install (guestfs_h *g,\n"
27982 " const char *root,\n"
27983 " const char *device);\n"
27988 #: ../src/guestfs-actions.pod:2498
27989 msgid "(Added in 1.0.17)"
27990 msgstr "(Додано у 1.0.17)"
27993 #: ../src/guestfs-actions.pod:2500
27994 msgid "guestfs_head"
27998 #: ../src/guestfs-actions.pod:2502
28002 " guestfs_head (guestfs_h *g,\n"
28003 " const char *path);\n"
28008 #: ../src/guestfs-actions.pod:2518
28009 msgid "guestfs_head_n"
28013 #: ../src/guestfs-actions.pod:2520
28017 " guestfs_head_n (guestfs_h *g,\n"
28019 " const char *path);\n"
28024 #: ../src/guestfs-actions.pod:2542
28025 msgid "guestfs_hexdump"
28029 #: ../src/guestfs-actions.pod:2544
28033 " guestfs_hexdump (guestfs_h *g,\n"
28034 " const char *path);\n"
28039 #: ../src/guestfs-actions.pod:2557 ../src/guestfs-actions.pod:6953
28040 #: ../src/guestfs-actions.pod:7008
28041 msgid "(Added in 1.0.22)"
28042 msgstr "(Додано у 1.0.22)"
28045 #: ../src/guestfs-actions.pod:2559
28046 msgid "guestfs_initrd_cat"
28050 #: ../src/guestfs-actions.pod:2561
28054 " guestfs_initrd_cat (guestfs_h *g,\n"
28055 " const char *initrdpath,\n"
28056 " const char *filename,\n"
28057 " size_t *size_r);\n"
28062 #: ../src/guestfs-actions.pod:2577
28063 msgid "See also C<guestfs_initrd_list>."
28067 #: ../src/guestfs-actions.pod:2588
28068 msgid "guestfs_initrd_list"
28072 #: ../src/guestfs-actions.pod:2590
28076 " guestfs_initrd_list (guestfs_h *g,\n"
28077 " const char *path);\n"
28082 #: ../src/guestfs-actions.pod:2610
28083 msgid "guestfs_inotify_add_watch"
28087 #: ../src/guestfs-actions.pod:2612
28091 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28092 " const char *path,\n"
28098 #: ../src/guestfs-actions.pod:2631
28099 msgid "guestfs_inotify_close"
28103 #: ../src/guestfs-actions.pod:2633
28107 " guestfs_inotify_close (guestfs_h *g);\n"
28112 #: ../src/guestfs-actions.pod:2644
28113 msgid "guestfs_inotify_files"
28117 #: ../src/guestfs-actions.pod:2646
28121 " guestfs_inotify_files (guestfs_h *g);\n"
28126 #: ../src/guestfs-actions.pod:2649
28128 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28129 "returns a list of pathnames of objects that were touched. The returned "
28130 "pathnames are sorted and deduplicated."
28134 #: ../src/guestfs-actions.pod:2659
28135 msgid "guestfs_inotify_init"
28139 #: ../src/guestfs-actions.pod:2661
28143 " guestfs_inotify_init (guestfs_h *g,\n"
28144 " int maxevents);\n"
28149 #: ../src/guestfs-actions.pod:2669
28151 "C<maxevents> is the maximum number of events which will be queued up between "
28152 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
28153 "passed as C<0>, then the kernel (or previously set) default is used. For "
28154 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
28155 "throws away events, but records the fact that it threw them away by setting "
28156 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28157 "C<guestfs_inotify_read>)."
28161 #: ../src/guestfs-actions.pod:2679
28163 "Before any events are generated, you have to add some watches to the "
28164 "internal watch list. See: C<guestfs_inotify_add_watch>, "
28165 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28169 #: ../src/guestfs-actions.pod:2685
28171 "Queued up events should be read periodically by calling "
28172 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28173 "wrapper around C<guestfs_inotify_read>). If you don't read the events out "
28174 "often enough then you risk the internal queue overflowing."
28178 #: ../src/guestfs-actions.pod:2692
28180 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
28181 "This also removes any watches automatically."
28185 #: ../src/guestfs-actions.pod:2705
28186 msgid "guestfs_inotify_read"
28190 #: ../src/guestfs-actions.pod:2707
28193 " struct guestfs_inotify_event_list *\n"
28194 " guestfs_inotify_read (guestfs_h *g);\n"
28199 #: ../src/guestfs-actions.pod:2721
28201 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28202 "there was an error. I<The caller must call "
28203 "C<guestfs_free_inotify_event_list> after use>."
28207 #: ../src/guestfs-actions.pod:2727
28208 msgid "guestfs_inotify_rm_watch"
28212 #: ../src/guestfs-actions.pod:2729
28216 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28222 #: ../src/guestfs-actions.pod:2733
28224 "Remove a previously defined inotify watch. See C<guestfs_inotify_add_watch>."
28228 #: ../src/guestfs-actions.pod:2740
28229 msgid "guestfs_inspect_get_arch"
28233 #: ../src/guestfs-actions.pod:2742
28237 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28238 " const char *root);\n"
28243 #: ../src/guestfs-actions.pod:2746
28245 "This returns the architecture of the inspected operating system. The "
28246 "possible return values are listed under C<guestfs_file_architecture>."
28250 #: ../src/guestfs-actions.pod:2760
28251 msgid "guestfs_inspect_get_distro"
28255 #: ../src/guestfs-actions.pod:2762
28259 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28260 " const char *root);\n"
28265 #: ../src/guestfs-actions.pod:2862
28266 msgid "guestfs_inspect_get_drive_mappings"
28270 #: ../src/guestfs-actions.pod:2864
28274 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28275 " const char *root);\n"
28280 #: ../src/guestfs-actions.pod:2893
28282 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28283 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28287 #: ../src/guestfs-actions.pod:2897 ../src/guestfs-actions.pod:3165
28288 #: ../src/guestfs-actions.pod:3968 ../src/guestfs-actions.pod:5240
28289 #: ../src/guestfs-actions.pod:7310
28291 "This function returns a NULL-terminated array of strings, or NULL if there "
28292 "was an error. The array of strings will always have length C<2n+1>, where "
28293 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
28294 "caller must free the strings and the array after use>."
28298 #: ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:3364
28299 msgid "(Added in 1.9.17)"
28300 msgstr "(Додано у 1.9.17)"
28303 #: ../src/guestfs-actions.pod:2905
28304 msgid "guestfs_inspect_get_filesystems"
28308 #: ../src/guestfs-actions.pod:2907
28312 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
28313 " const char *root);\n"
28318 #: ../src/guestfs-actions.pod:2919
28320 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28321 "C<guestfs_inspect_get_mountpoints>."
28325 #: ../src/guestfs-actions.pod:2928
28326 msgid "guestfs_inspect_get_format"
28330 #: ../src/guestfs-actions.pod:2930
28334 " guestfs_inspect_get_format (guestfs_h *g,\n"
28335 " const char *root);\n"
28340 #: ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3400
28341 #: ../src/guestfs-actions.pod:3416 ../src/guestfs-actions.pod:3434
28342 #: ../src/guestfs-actions.pod:6190
28343 msgid "(Added in 1.9.4)"
28344 msgstr "(Додано у 1.9.4)"
28347 #: ../src/guestfs-actions.pod:2966
28348 msgid "guestfs_inspect_get_hostname"
28352 #: ../src/guestfs-actions.pod:2968
28356 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
28357 " const char *root);\n"
28362 #: ../src/guestfs-actions.pod:2983
28363 msgid "(Added in 1.7.9)"
28364 msgstr "(Додано у 1.7.9)"
28367 #: ../src/guestfs-actions.pod:2985
28368 msgid "guestfs_inspect_get_icon"
28372 #: ../src/guestfs-actions.pod:2987
28376 " guestfs_inspect_get_icon (guestfs_h *g,\n"
28377 " const char *root,\n"
28378 " size_t *size_r,\n"
28384 #: ../src/guestfs-actions.pod:2998
28387 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
28388 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
28393 #: ../src/guestfs-actions.pod:3065 ../src/guestfs-actions.pod:3895
28394 #: ../src/guestfs-actions.pod:5139
28395 msgid "(Added in 1.11.12)"
28396 msgstr "(Додано у 1.11.12)"
28399 #: ../src/guestfs-actions.pod:3067
28400 msgid "guestfs_inspect_get_icon_va"
28404 #: ../src/guestfs-actions.pod:3069
28408 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
28409 " const char *root,\n"
28410 " size_t *size_r,\n"
28411 " va_list args);\n"
28416 #: ../src/guestfs-actions.pod:3075
28417 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
28421 #: ../src/guestfs-actions.pod:3079
28422 msgid "guestfs_inspect_get_icon_argv"
28426 #: ../src/guestfs-actions.pod:3081
28430 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
28431 " const char *root,\n"
28432 " size_t *size_r,\n"
28433 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
28438 #: ../src/guestfs-actions.pod:3087
28439 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
28443 #: ../src/guestfs-actions.pod:3091
28444 msgid "guestfs_inspect_get_major_version"
28448 #: ../src/guestfs-actions.pod:3093
28452 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
28453 " const char *root);\n"
28458 #: ../src/guestfs-actions.pod:3115
28459 msgid "guestfs_inspect_get_minor_version"
28463 #: ../src/guestfs-actions.pod:3117
28467 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
28468 " const char *root);\n"
28473 #: ../src/guestfs-actions.pod:3126
28475 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28476 "C<guestfs_inspect_get_major_version>."
28480 #: ../src/guestfs-actions.pod:3133
28481 msgid "guestfs_inspect_get_mountpoints"
28485 #: ../src/guestfs-actions.pod:3135
28489 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
28490 " const char *root);\n"
28495 #: ../src/guestfs-actions.pod:3156
28497 "For operating systems like Windows which still use drive letters, this call "
28498 "will only return an entry for the first drive \"mounted on\" C</>. For "
28499 "information about the mapping of drive letters to partitions, see "
28500 "C<guestfs_inspect_get_drive_mappings>."
28504 #: ../src/guestfs-actions.pod:3162
28506 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28507 "C<guestfs_inspect_get_filesystems>."
28511 #: ../src/guestfs-actions.pod:3173
28512 msgid "guestfs_inspect_get_package_format"
28516 #: ../src/guestfs-actions.pod:3175
28520 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
28521 " const char *root);\n"
28526 #: ../src/guestfs-actions.pod:3179
28528 "This function and C<guestfs_inspect_get_package_management> return the "
28529 "package format and package management tool used by the inspected operating "
28530 "system. For example for Fedora these functions would return C<rpm> (package "
28531 "format) and C<yum> (package management)."
28535 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3226
28536 msgid "(Added in 1.7.5)"
28537 msgstr "(Додано у 1.7.5)"
28540 #: ../src/guestfs-actions.pod:3200
28541 msgid "guestfs_inspect_get_package_management"
28545 #: ../src/guestfs-actions.pod:3202
28549 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
28550 " const char *root);\n"
28555 #: ../src/guestfs-actions.pod:3206
28557 "C<guestfs_inspect_get_package_format> and this function return the package "
28558 "format and package management tool used by the inspected operating system. "
28559 "For example for Fedora these functions would return C<rpm> (package format) "
28560 "and C<yum> (package management)."
28564 #: ../src/guestfs-actions.pod:3228
28565 msgid "guestfs_inspect_get_product_name"
28569 #: ../src/guestfs-actions.pod:3230
28573 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
28574 " const char *root);\n"
28579 #: ../src/guestfs-actions.pod:3249
28580 msgid "guestfs_inspect_get_product_variant"
28584 #: ../src/guestfs-actions.pod:3251
28588 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
28589 " const char *root);\n"
28594 #: ../src/guestfs-actions.pod:3274
28596 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28597 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
28601 #: ../src/guestfs-actions.pod:3281
28602 msgid "(Added in 1.9.13)"
28603 msgstr "(Додано у 1.9.13)"
28606 #: ../src/guestfs-actions.pod:3283
28607 msgid "guestfs_inspect_get_roots"
28611 #: ../src/guestfs-actions.pod:3285
28615 " guestfs_inspect_get_roots (guestfs_h *g);\n"
28620 #: ../src/guestfs-actions.pod:3288
28622 "This function is a convenient way to get the list of root devices, as "
28623 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
28624 "the whole inspection process."
28628 #: ../src/guestfs-actions.pod:3292
28630 "This returns an empty list if either no root devices were found or the "
28631 "caller has not called C<guestfs_inspect_os>."
28635 #: ../src/guestfs-actions.pod:3301
28636 msgid "(Added in 1.7.3)"
28637 msgstr "(Додано у 1.7.3)"
28640 #: ../src/guestfs-actions.pod:3303
28641 msgid "guestfs_inspect_get_type"
28645 #: ../src/guestfs-actions.pod:3305
28649 " guestfs_inspect_get_type (guestfs_h *g,\n"
28650 " const char *root);\n"
28655 #: ../src/guestfs-actions.pod:3346
28656 msgid "guestfs_inspect_get_windows_current_control_set"
28660 #: ../src/guestfs-actions.pod:3348
28664 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
28665 " const char *root);\n"
28670 #: ../src/guestfs-actions.pod:3366
28671 msgid "guestfs_inspect_get_windows_systemroot"
28675 #: ../src/guestfs-actions.pod:3368
28679 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
28680 " const char *root);\n"
28685 #: ../src/guestfs-actions.pod:3384
28686 msgid "(Added in 1.5.25)"
28687 msgstr "(Додано у 1.5.25)"
28690 #: ../src/guestfs-actions.pod:3386
28691 msgid "guestfs_inspect_is_live"
28695 #: ../src/guestfs-actions.pod:3388
28699 " guestfs_inspect_is_live (guestfs_h *g,\n"
28700 " const char *root);\n"
28705 #: ../src/guestfs-actions.pod:3392
28707 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28708 "disk), then this returns true if a live image was detected on the disk."
28712 #: ../src/guestfs-actions.pod:3402
28713 msgid "guestfs_inspect_is_multipart"
28717 #: ../src/guestfs-actions.pod:3404
28721 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
28722 " const char *root);\n"
28727 #: ../src/guestfs-actions.pod:3408
28729 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28730 "disk), then this returns true if the disk is part of a set."
28734 #: ../src/guestfs-actions.pod:3418
28735 msgid "guestfs_inspect_is_netinst"
28739 #: ../src/guestfs-actions.pod:3420
28743 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
28744 " const char *root);\n"
28749 #: ../src/guestfs-actions.pod:3424
28751 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28752 "disk), then this returns true if the disk is a network installer, ie. not a "
28753 "self-contained install CD but one which is likely to require network access "
28754 "to complete the install."
28758 #: ../src/guestfs-actions.pod:3436
28759 msgid "guestfs_inspect_list_applications"
28763 #: ../src/guestfs-actions.pod:3438
28766 " struct guestfs_application_list *\n"
28767 " guestfs_inspect_list_applications (guestfs_h *g,\n"
28768 " const char *root);\n"
28773 #: ../src/guestfs-actions.pod:3444
28775 "I<Note:> This call works differently from other parts of the inspection "
28776 "API. You have to call C<guestfs_inspect_os>, then "
28777 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
28778 "this. Listing applications is a significantly more difficult operation "
28779 "which requires access to the full filesystem. Also note that unlike the "
28780 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
28781 "the libguestfs handle, this call actually reads parts of the mounted "
28782 "filesystems during the call."
28786 #: ../src/guestfs-actions.pod:3534
28788 "This function returns a C<struct guestfs_application_list *>, or NULL if "
28789 "there was an error. I<The caller must call C<guestfs_free_application_list> "
28794 #: ../src/guestfs-actions.pod:3538
28795 msgid "(Added in 1.7.8)"
28796 msgstr "(Додано у 1.7.8)"
28799 #: ../src/guestfs-actions.pod:3540
28800 msgid "guestfs_inspect_os"
28804 #: ../src/guestfs-actions.pod:3542
28808 " guestfs_inspect_os (guestfs_h *g);\n"
28813 #: ../src/guestfs-actions.pod:3558
28815 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
28816 "functions in order to query further information about each operating system, "
28817 "such as the name and version."
28821 #: ../src/guestfs-actions.pod:3563
28823 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
28824 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
28825 "the contents. This should be called with no disks currently mounted. The "
28826 "function may also use Augeas, so any existing Augeas handle will be closed."
28830 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3906
28831 #: ../src/guestfs-actions.pod:3988
28832 msgid "See also C<guestfs_list_filesystems>."
28836 #: ../src/guestfs-actions.pod:3583
28837 msgid "guestfs_is_blockdev"
28841 #: ../src/guestfs-actions.pod:3585
28845 " guestfs_is_blockdev (guestfs_h *g,\n"
28846 " const char *path);\n"
28851 #: ../src/guestfs-actions.pod:3592 ../src/guestfs-actions.pod:3621
28852 #: ../src/guestfs-actions.pod:3651 ../src/guestfs-actions.pod:3666
28853 #: ../src/guestfs-actions.pod:3682 ../src/guestfs-actions.pod:3738
28854 #: ../src/guestfs-actions.pod:3753
28855 msgid "See also C<guestfs_stat>."
28859 #: ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3625
28860 #: ../src/guestfs-actions.pod:3670 ../src/guestfs-actions.pod:3742
28861 #: ../src/guestfs-actions.pod:3757
28862 msgid "(Added in 1.5.10)"
28863 msgstr "(Додано у 1.5.10)"
28866 #: ../src/guestfs-actions.pod:3598
28867 msgid "guestfs_is_busy"
28871 #: ../src/guestfs-actions.pod:3600
28875 " guestfs_is_busy (guestfs_h *g);\n"
28880 #: ../src/guestfs-actions.pod:3612
28881 msgid "guestfs_is_chardev"
28885 #: ../src/guestfs-actions.pod:3614
28889 " guestfs_is_chardev (guestfs_h *g,\n"
28890 " const char *path);\n"
28895 #: ../src/guestfs-actions.pod:3627
28896 msgid "guestfs_is_config"
28900 #: ../src/guestfs-actions.pod:3629
28904 " guestfs_is_config (guestfs_h *g);\n"
28909 #: ../src/guestfs-actions.pod:3641
28910 msgid "guestfs_is_dir"
28914 #: ../src/guestfs-actions.pod:3643
28918 " guestfs_is_dir (guestfs_h *g,\n"
28919 " const char *path);\n"
28924 #: ../src/guestfs-actions.pod:3657
28925 msgid "guestfs_is_fifo"
28929 #: ../src/guestfs-actions.pod:3659
28933 " guestfs_is_fifo (guestfs_h *g,\n"
28934 " const char *path);\n"
28939 #: ../src/guestfs-actions.pod:3672
28940 msgid "guestfs_is_file"
28944 #: ../src/guestfs-actions.pod:3674
28948 " guestfs_is_file (guestfs_h *g,\n"
28949 " const char *path);\n"
28954 #: ../src/guestfs-actions.pod:3688
28955 msgid "guestfs_is_launching"
28959 #: ../src/guestfs-actions.pod:3690
28963 " guestfs_is_launching (guestfs_h *g);\n"
28968 #: ../src/guestfs-actions.pod:3702
28969 msgid "guestfs_is_lv"
28973 #: ../src/guestfs-actions.pod:3704
28977 " guestfs_is_lv (guestfs_h *g,\n"
28978 " const char *device);\n"
28983 #: ../src/guestfs-actions.pod:3715
28984 msgid "guestfs_is_ready"
28988 #: ../src/guestfs-actions.pod:3717
28992 " guestfs_is_ready (guestfs_h *g);\n"
28997 #: ../src/guestfs-actions.pod:3729
28998 msgid "guestfs_is_socket"
29002 #: ../src/guestfs-actions.pod:3731
29006 " guestfs_is_socket (guestfs_h *g,\n"
29007 " const char *path);\n"
29012 #: ../src/guestfs-actions.pod:3744
29013 msgid "guestfs_is_symlink"
29017 #: ../src/guestfs-actions.pod:3746
29021 " guestfs_is_symlink (guestfs_h *g,\n"
29022 " const char *path);\n"
29027 #: ../src/guestfs-actions.pod:3759
29028 msgid "guestfs_is_zero"
29032 #: ../src/guestfs-actions.pod:3761
29036 " guestfs_is_zero (guestfs_h *g,\n"
29037 " const char *path);\n"
29042 #: ../src/guestfs-actions.pod:3770 ../src/guestfs-actions.pod:3784
29043 msgid "(Added in 1.11.8)"
29044 msgstr "(Додано у 1.11.8)"
29047 #: ../src/guestfs-actions.pod:3772
29048 msgid "guestfs_is_zero_device"
29052 #: ../src/guestfs-actions.pod:3774
29056 " guestfs_is_zero_device (guestfs_h *g,\n"
29057 " const char *device);\n"
29062 #: ../src/guestfs-actions.pod:3786
29063 msgid "guestfs_kill_subprocess"
29067 #: ../src/guestfs-actions.pod:3788
29071 " guestfs_kill_subprocess (guestfs_h *g);\n"
29076 #: ../src/guestfs-actions.pod:3797
29077 msgid "guestfs_launch"
29081 #: ../src/guestfs-actions.pod:3799
29085 " guestfs_launch (guestfs_h *g);\n"
29090 #: ../src/guestfs-actions.pod:3817
29091 msgid "guestfs_lchown"
29095 #: ../src/guestfs-actions.pod:3819
29099 " guestfs_lchown (guestfs_h *g,\n"
29102 " const char *path);\n"
29107 #: ../src/guestfs-actions.pod:3825
29109 "Change the file owner to C<owner> and group to C<group>. This is like "
29110 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29111 "changed, not the target."
29115 #: ../src/guestfs-actions.pod:3837
29116 msgid "guestfs_lgetxattr"
29120 #: ../src/guestfs-actions.pod:3839
29124 " guestfs_lgetxattr (guestfs_h *g,\n"
29125 " const char *path,\n"
29126 " const char *name,\n"
29127 " size_t *size_r);\n"
29132 #: ../src/guestfs-actions.pod:3859
29133 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29137 #: ../src/guestfs-actions.pod:3867
29138 msgid "guestfs_lgetxattrs"
29142 #: ../src/guestfs-actions.pod:3869
29145 " struct guestfs_xattr_list *\n"
29146 " guestfs_lgetxattrs (guestfs_h *g,\n"
29147 " const char *path);\n"
29152 #: ../src/guestfs-actions.pod:3873
29154 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29155 "then it returns the extended attributes of the link itself."
29159 #: ../src/guestfs-actions.pod:3883
29160 msgid "guestfs_list_9p"
29164 #: ../src/guestfs-actions.pod:3885
29168 " guestfs_list_9p (guestfs_h *g);\n"
29173 #: ../src/guestfs-actions.pod:3897
29174 msgid "guestfs_list_devices"
29178 #: ../src/guestfs-actions.pod:3899
29182 " guestfs_list_devices (guestfs_h *g);\n"
29187 #: ../src/guestfs-actions.pod:3914
29188 msgid "guestfs_list_dm_devices"
29192 #: ../src/guestfs-actions.pod:3916
29196 " guestfs_list_dm_devices (guestfs_h *g);\n"
29201 #: ../src/guestfs-actions.pod:3921
29203 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29204 "previous call to C<guestfs_luks_open>."
29208 #: ../src/guestfs-actions.pod:3924
29210 "Device mapper devices which correspond to logical volumes are I<not> "
29211 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
29216 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:5378
29217 msgid "(Added in 1.11.15)"
29218 msgstr "(Додано у 1.11.15)"
29221 #: ../src/guestfs-actions.pod:3934
29222 msgid "guestfs_list_filesystems"
29226 #: ../src/guestfs-actions.pod:3936
29230 " guestfs_list_filesystems (guestfs_h *g);\n"
29235 #: ../src/guestfs-actions.pod:3956
29237 "This command runs other libguestfs commands, which might include "
29238 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29239 "soon after launch and only when nothing is mounted."
29243 #: ../src/guestfs-actions.pod:3960
29245 "Not all of the filesystems returned will be mountable. In particular, swap "
29246 "partitions are returned in the list. Also this command does not check that "
29247 "each filesystem found is valid and mountable, and some filesystems might be "
29248 "mountable but require special options. Filesystems may not all belong to a "
29249 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
29253 #: ../src/guestfs-actions.pod:3974 ../src/guestfs-actions.pod:5739
29254 msgid "(Added in 1.5.15)"
29255 msgstr "(Додано у 1.5.15)"
29258 #: ../src/guestfs-actions.pod:3976
29259 msgid "guestfs_list_partitions"
29260 msgstr "guestfs_list_partitions"
29263 #: ../src/guestfs-actions.pod:3978
29267 " guestfs_list_partitions (guestfs_h *g);\n"
29271 " guestfs_list_partitions (guestfs_h *g);\n"
29275 #: ../src/guestfs-actions.pod:3985
29277 "This does not return logical volumes. For that you will need to call "
29282 #: ../src/guestfs-actions.pod:3996
29284 msgstr "guestfs_ll"
29287 #: ../src/guestfs-actions.pod:3998
29291 " guestfs_ll (guestfs_h *g,\n"
29292 " const char *directory);\n"
29296 " guestfs_ll (guestfs_h *g,\n"
29297 " const char *directory);\n"
29301 #: ../src/guestfs-actions.pod:4013
29303 msgstr "guestfs_ln"
29306 #: ../src/guestfs-actions.pod:4015
29310 " guestfs_ln (guestfs_h *g,\n"
29311 " const char *target,\n"
29312 " const char *linkname);\n"
29316 " guestfs_ln (guestfs_h *g,\n"
29317 " const char *target,\n"
29318 " const char *linkname);\n"
29322 #: ../src/guestfs-actions.pod:4026
29323 msgid "guestfs_ln_f"
29324 msgstr "guestfs_ln_f"
29327 #: ../src/guestfs-actions.pod:4028
29331 " guestfs_ln_f (guestfs_h *g,\n"
29332 " const char *target,\n"
29333 " const char *linkname);\n"
29337 " guestfs_ln_f (guestfs_h *g,\n"
29338 " const char *target,\n"
29339 " const char *linkname);\n"
29343 #: ../src/guestfs-actions.pod:4040
29344 msgid "guestfs_ln_s"
29345 msgstr "guestfs_ln_s"
29348 #: ../src/guestfs-actions.pod:4042
29352 " guestfs_ln_s (guestfs_h *g,\n"
29353 " const char *target,\n"
29354 " const char *linkname);\n"
29358 " guestfs_ln_s (guestfs_h *g,\n"
29359 " const char *target,\n"
29360 " const char *linkname);\n"
29364 #: ../src/guestfs-actions.pod:4053
29365 msgid "guestfs_ln_sf"
29366 msgstr "guestfs_ln_sf"
29369 #: ../src/guestfs-actions.pod:4055
29373 " guestfs_ln_sf (guestfs_h *g,\n"
29374 " const char *target,\n"
29375 " const char *linkname);\n"
29379 " guestfs_ln_sf (guestfs_h *g,\n"
29380 " const char *target,\n"
29381 " const char *linkname);\n"
29385 #: ../src/guestfs-actions.pod:4067
29386 msgid "guestfs_lremovexattr"
29387 msgstr "guestfs_lremovexattr"
29390 #: ../src/guestfs-actions.pod:4069
29394 " guestfs_lremovexattr (guestfs_h *g,\n"
29395 " const char *xattr,\n"
29396 " const char *path);\n"
29400 " guestfs_lremovexattr (guestfs_h *g,\n"
29401 " const char *xattr,\n"
29402 " const char *path);\n"
29406 #: ../src/guestfs-actions.pod:4074
29408 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
29409 "link, then it removes an extended attribute of the link itself."
29413 #: ../src/guestfs-actions.pod:4082
29415 msgstr "guestfs_ls"
29418 #: ../src/guestfs-actions.pod:4084
29422 " guestfs_ls (guestfs_h *g,\n"
29423 " const char *directory);\n"
29427 " guestfs_ls (guestfs_h *g,\n"
29428 " const char *directory);\n"
29432 #: ../src/guestfs-actions.pod:4092
29434 "This command is mostly useful for interactive sessions. Programs should "
29435 "probably use C<guestfs_readdir> instead."
29439 #: ../src/guestfs-actions.pod:4101
29440 msgid "guestfs_lsetxattr"
29441 msgstr "guestfs_lsetxattr"
29444 #: ../src/guestfs-actions.pod:4103
29448 " guestfs_lsetxattr (guestfs_h *g,\n"
29449 " const char *xattr,\n"
29450 " const char *val,\n"
29452 " const char *path);\n"
29456 " guestfs_lsetxattr (guestfs_h *g,\n"
29457 " const char *xattr,\n"
29458 " const char *val,\n"
29460 " const char *path);\n"
29464 #: ../src/guestfs-actions.pod:4110
29466 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
29467 "then it sets an extended attribute of the link itself."
29471 #: ../src/guestfs-actions.pod:4118
29472 msgid "guestfs_lstat"
29473 msgstr "guestfs_lstat"
29476 #: ../src/guestfs-actions.pod:4120
29479 " struct guestfs_stat *\n"
29480 " guestfs_lstat (guestfs_h *g,\n"
29481 " const char *path);\n"
29484 " struct guestfs_stat *\n"
29485 " guestfs_lstat (guestfs_h *g,\n"
29486 " const char *path);\n"
29490 #: ../src/guestfs-actions.pod:4126
29492 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
29493 "link, then the link is stat-ed, not the file it refers to."
29497 #: ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:6913
29499 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
29500 "error. I<The caller must call C<guestfs_free_stat> after use>."
29504 #: ../src/guestfs-actions.pod:4136 ../src/guestfs-actions.pod:6917
29505 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:7316
29506 msgid "(Added in 0.9.2)"
29507 msgstr "(Додано у 0.9.2)"
29510 #: ../src/guestfs-actions.pod:4138
29511 msgid "guestfs_lstatlist"
29512 msgstr "guestfs_lstatlist"
29515 #: ../src/guestfs-actions.pod:4140
29518 " struct guestfs_stat_list *\n"
29519 " guestfs_lstatlist (guestfs_h *g,\n"
29520 " const char *path,\n"
29521 " char *const *names);\n"
29524 " struct guestfs_stat_list *\n"
29525 " guestfs_lstatlist (guestfs_h *g,\n"
29526 " const char *path,\n"
29527 " char *const *names);\n"
29531 #: ../src/guestfs-actions.pod:4145
29533 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
29534 "files, where all files are in the directory C<path>. C<names> is the list "
29535 "of files from this directory."
29539 #: ../src/guestfs-actions.pod:4154
29541 "This call is intended for programs that want to efficiently list a directory "
29542 "contents without making many round-trips. See also C<guestfs_lxattrlist> "
29543 "for a similarly efficient call for getting extended attributes. Very long "
29544 "directory listings might cause the protocol message size to be exceeded, "
29545 "causing this call to fail. The caller must split up such requests into "
29546 "smaller groups of names."
29550 #: ../src/guestfs-actions.pod:4162
29552 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
29553 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
29557 #: ../src/guestfs-actions.pod:4168
29558 msgid "guestfs_luks_add_key"
29559 msgstr "guestfs_luks_add_key"
29562 #: ../src/guestfs-actions.pod:4170
29566 " guestfs_luks_add_key (guestfs_h *g,\n"
29567 " const char *device,\n"
29568 " const char *key,\n"
29569 " const char *newkey,\n"
29574 " guestfs_luks_add_key (guestfs_h *g,\n"
29575 " const char *device,\n"
29576 " const char *key,\n"
29577 " const char *newkey,\n"
29582 #: ../src/guestfs-actions.pod:4182
29584 "Note that if C<keyslot> already contains a key, then this command will "
29585 "fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
29589 #: ../src/guestfs-actions.pod:4188 ../src/guestfs-actions.pod:4228
29590 #: ../src/guestfs-actions.pod:4251 ../src/guestfs-actions.pod:4271
29591 #: ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:4325
29593 "This function takes a key or passphrase parameter which could contain "
29594 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
29599 #: ../src/guestfs-actions.pod:4192 ../src/guestfs-actions.pod:4232
29600 #: ../src/guestfs-actions.pod:4255 ../src/guestfs-actions.pod:4275
29601 msgid "(Added in 1.5.2)"
29602 msgstr "(Додано у 1.5.2)"
29605 #: ../src/guestfs-actions.pod:4194
29606 msgid "guestfs_luks_close"
29607 msgstr "guestfs_luks_close"
29610 #: ../src/guestfs-actions.pod:4196
29614 " guestfs_luks_close (guestfs_h *g,\n"
29615 " const char *device);\n"
29619 " guestfs_luks_close (guestfs_h *g,\n"
29620 " const char *device);\n"
29624 #: ../src/guestfs-actions.pod:4200
29626 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
29627 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
29628 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
29629 "underlying block device."
29633 #: ../src/guestfs-actions.pod:4208 ../src/guestfs-actions.pod:4310
29634 #: ../src/guestfs-actions.pod:4329 ../src/guestfs-actions.pod:4379
29635 #: ../src/guestfs-actions.pod:4427
29636 msgid "(Added in 1.5.1)"
29637 msgstr "(Додано у 1.5.1)"
29640 #: ../src/guestfs-actions.pod:4210
29641 msgid "guestfs_luks_format"
29642 msgstr "guestfs_luks_format"
29645 #: ../src/guestfs-actions.pod:4212
29649 " guestfs_luks_format (guestfs_h *g,\n"
29650 " const char *device,\n"
29651 " const char *key,\n"
29656 " guestfs_luks_format (guestfs_h *g,\n"
29657 " const char *device,\n"
29658 " const char *key,\n"
29663 #: ../src/guestfs-actions.pod:4234
29664 msgid "guestfs_luks_format_cipher"
29665 msgstr "guestfs_luks_format_cipher"
29668 #: ../src/guestfs-actions.pod:4236
29672 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29673 " const char *device,\n"
29674 " const char *key,\n"
29676 " const char *cipher);\n"
29680 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29681 " const char *device,\n"
29682 " const char *key,\n"
29684 " const char *cipher);\n"
29688 #: ../src/guestfs-actions.pod:4243
29690 "This command is the same as C<guestfs_luks_format> but it also allows you to "
29691 "set the C<cipher> used."
29695 #: ../src/guestfs-actions.pod:4257
29696 msgid "guestfs_luks_kill_slot"
29697 msgstr "guestfs_luks_kill_slot"
29700 #: ../src/guestfs-actions.pod:4259
29704 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29705 " const char *device,\n"
29706 " const char *key,\n"
29711 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29712 " const char *device,\n"
29713 " const char *key,\n"
29718 #: ../src/guestfs-actions.pod:4277
29719 msgid "guestfs_luks_open"
29720 msgstr "guestfs_luks_open"
29723 #: ../src/guestfs-actions.pod:4279
29727 " guestfs_luks_open (guestfs_h *g,\n"
29728 " const char *device,\n"
29729 " const char *key,\n"
29730 " const char *mapname);\n"
29734 " guestfs_luks_open (guestfs_h *g,\n"
29735 " const char *device,\n"
29736 " const char *key,\n"
29737 " const char *mapname);\n"
29741 #: ../src/guestfs-actions.pod:4297
29743 "If this block device contains LVM volume groups, then calling "
29744 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
29749 #: ../src/guestfs-actions.pod:4301
29750 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
29754 #: ../src/guestfs-actions.pod:4312
29755 msgid "guestfs_luks_open_ro"
29756 msgstr "guestfs_luks_open_ro"
29759 #: ../src/guestfs-actions.pod:4314
29763 " guestfs_luks_open_ro (guestfs_h *g,\n"
29764 " const char *device,\n"
29765 " const char *key,\n"
29766 " const char *mapname);\n"
29770 " guestfs_luks_open_ro (guestfs_h *g,\n"
29771 " const char *device,\n"
29772 " const char *key,\n"
29773 " const char *mapname);\n"
29777 #: ../src/guestfs-actions.pod:4320
29779 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
29784 #: ../src/guestfs-actions.pod:4331
29785 msgid "guestfs_lvcreate"
29786 msgstr "guestfs_lvcreate"
29789 #: ../src/guestfs-actions.pod:4333
29793 " guestfs_lvcreate (guestfs_h *g,\n"
29794 " const char *logvol,\n"
29795 " const char *volgroup,\n"
29800 " guestfs_lvcreate (guestfs_h *g,\n"
29801 " const char *logvol,\n"
29802 " const char *volgroup,\n"
29807 #: ../src/guestfs-actions.pod:4346
29808 msgid "guestfs_lvm_canonical_lv_name"
29809 msgstr "guestfs_lvm_canonical_lv_name"
29812 #: ../src/guestfs-actions.pod:4348
29816 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29817 " const char *lvname);\n"
29821 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29822 " const char *lvname);\n"
29826 #: ../src/guestfs-actions.pod:4359
29827 msgid "See also C<guestfs_is_lv>."
29831 #: ../src/guestfs-actions.pod:4364
29832 msgid "(Added in 1.5.24)"
29833 msgstr "(Додано у 1.5.24)"
29836 #: ../src/guestfs-actions.pod:4366
29837 msgid "guestfs_lvm_clear_filter"
29838 msgstr "guestfs_lvm_clear_filter"
29841 #: ../src/guestfs-actions.pod:4368
29845 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29849 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29853 #: ../src/guestfs-actions.pod:4371
29855 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
29856 "see every block device."
29860 #: ../src/guestfs-actions.pod:4381
29861 msgid "guestfs_lvm_remove_all"
29862 msgstr "guestfs_lvm_remove_all"
29865 #: ../src/guestfs-actions.pod:4383
29869 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29873 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29877 #: ../src/guestfs-actions.pod:4396
29878 msgid "guestfs_lvm_set_filter"
29879 msgstr "guestfs_lvm_set_filter"
29882 #: ../src/guestfs-actions.pod:4398
29886 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29887 " char *const *devices);\n"
29891 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29892 " char *const *devices);\n"
29896 #: ../src/guestfs-actions.pod:4429
29897 msgid "guestfs_lvremove"
29898 msgstr "guestfs_lvremove"
29901 #: ../src/guestfs-actions.pod:4431
29905 " guestfs_lvremove (guestfs_h *g,\n"
29906 " const char *device);\n"
29910 " guestfs_lvremove (guestfs_h *g,\n"
29911 " const char *device);\n"
29915 #: ../src/guestfs-actions.pod:4443 ../src/guestfs-actions.pod:5836
29916 #: ../src/guestfs-actions.pod:7686
29917 msgid "(Added in 1.0.13)"
29918 msgstr "(Додано у 1.0.13)"
29921 #: ../src/guestfs-actions.pod:4445
29922 msgid "guestfs_lvrename"
29923 msgstr "guestfs_lvrename"
29926 #: ../src/guestfs-actions.pod:4447
29930 " guestfs_lvrename (guestfs_h *g,\n"
29931 " const char *logvol,\n"
29932 " const char *newlogvol);\n"
29936 " guestfs_lvrename (guestfs_h *g,\n"
29937 " const char *logvol,\n"
29938 " const char *newlogvol);\n"
29942 #: ../src/guestfs-actions.pod:4456 ../src/guestfs-actions.pod:7699
29943 msgid "(Added in 1.0.83)"
29944 msgstr "(Додано у 1.0.83)"
29947 #: ../src/guestfs-actions.pod:4458
29948 msgid "guestfs_lvresize"
29949 msgstr "guestfs_lvresize"
29952 #: ../src/guestfs-actions.pod:4460
29956 " guestfs_lvresize (guestfs_h *g,\n"
29957 " const char *device,\n"
29962 " guestfs_lvresize (guestfs_h *g,\n"
29963 " const char *device,\n"
29968 #: ../src/guestfs-actions.pod:4473
29969 msgid "guestfs_lvresize_free"
29970 msgstr "guestfs_lvresize_free"
29973 #: ../src/guestfs-actions.pod:4475
29977 " guestfs_lvresize_free (guestfs_h *g,\n"
29978 " const char *lv,\n"
29983 " guestfs_lvresize_free (guestfs_h *g,\n"
29984 " const char *lv,\n"
29989 #: ../src/guestfs-actions.pod:4488
29990 msgid "(Added in 1.3.3)"
29991 msgstr "(Додано у 1.3.3)"
29994 #: ../src/guestfs-actions.pod:4490
29995 msgid "guestfs_lvs"
29996 msgstr "guestfs_lvs"
29999 #: ../src/guestfs-actions.pod:4492
30003 " guestfs_lvs (guestfs_h *g);\n"
30007 " guestfs_lvs (guestfs_h *g);\n"
30011 #: ../src/guestfs-actions.pod:4501
30012 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
30016 #: ../src/guestfs-actions.pod:4509
30017 msgid "guestfs_lvs_full"
30018 msgstr "guestfs_lvs_full"
30021 #: ../src/guestfs-actions.pod:4511
30024 " struct guestfs_lvm_lv_list *\n"
30025 " guestfs_lvs_full (guestfs_h *g);\n"
30028 " struct guestfs_lvm_lv_list *\n"
30029 " guestfs_lvs_full (guestfs_h *g);\n"
30033 #: ../src/guestfs-actions.pod:4517
30035 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
30036 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
30040 #: ../src/guestfs-actions.pod:4523
30041 msgid "guestfs_lvuuid"
30042 msgstr "guestfs_lvuuid"
30045 #: ../src/guestfs-actions.pod:4525
30049 " guestfs_lvuuid (guestfs_h *g,\n"
30050 " const char *device);\n"
30054 " guestfs_lvuuid (guestfs_h *g,\n"
30055 " const char *device);\n"
30059 #: ../src/guestfs-actions.pod:4536
30060 msgid "guestfs_lxattrlist"
30061 msgstr "guestfs_lxattrlist"
30064 #: ../src/guestfs-actions.pod:4538
30067 " struct guestfs_xattr_list *\n"
30068 " guestfs_lxattrlist (guestfs_h *g,\n"
30069 " const char *path,\n"
30070 " char *const *names);\n"
30073 " struct guestfs_xattr_list *\n"
30074 " guestfs_lxattrlist (guestfs_h *g,\n"
30075 " const char *path,\n"
30076 " char *const *names);\n"
30080 #: ../src/guestfs-actions.pod:4557
30082 "This call is intended for programs that want to efficiently list a directory "
30083 "contents without making many round-trips. See also C<guestfs_lstatlist> for "
30084 "a similarly efficient call for getting standard stats. Very long directory "
30085 "listings might cause the protocol message size to be exceeded, causing this "
30086 "call to fail. The caller must split up such requests into smaller groups of "
30091 #: ../src/guestfs-actions.pod:4571
30092 msgid "guestfs_mkdir"
30093 msgstr "guestfs_mkdir"
30096 #: ../src/guestfs-actions.pod:4573
30100 " guestfs_mkdir (guestfs_h *g,\n"
30101 " const char *path);\n"
30105 " guestfs_mkdir (guestfs_h *g,\n"
30106 " const char *path);\n"
30110 #: ../src/guestfs-actions.pod:4583
30111 msgid "guestfs_mkdir_mode"
30112 msgstr "guestfs_mkdir_mode"
30115 #: ../src/guestfs-actions.pod:4585
30119 " guestfs_mkdir_mode (guestfs_h *g,\n"
30120 " const char *path,\n"
30125 " guestfs_mkdir_mode (guestfs_h *g,\n"
30126 " const char *path,\n"
30131 #: ../src/guestfs-actions.pod:4597
30132 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30136 #: ../src/guestfs-actions.pod:4603
30137 msgid "guestfs_mkdir_p"
30138 msgstr "guestfs_mkdir_p"
30141 #: ../src/guestfs-actions.pod:4605
30145 " guestfs_mkdir_p (guestfs_h *g,\n"
30146 " const char *path);\n"
30150 " guestfs_mkdir_p (guestfs_h *g,\n"
30151 " const char *path);\n"
30155 #: ../src/guestfs-actions.pod:4616
30156 msgid "guestfs_mkdtemp"
30157 msgstr "guestfs_mkdtemp"
30160 #: ../src/guestfs-actions.pod:4618
30164 " guestfs_mkdtemp (guestfs_h *g,\n"
30165 " const char *template);\n"
30169 " guestfs_mkdtemp (guestfs_h *g,\n"
30170 " const char *template);\n"
30174 #: ../src/guestfs-actions.pod:4646
30175 msgid "guestfs_mke2fs_J"
30176 msgstr "guestfs_mke2fs_J"
30179 #: ../src/guestfs-actions.pod:4648
30183 " guestfs_mke2fs_J (guestfs_h *g,\n"
30184 " const char *fstype,\n"
30185 " int blocksize,\n"
30186 " const char *device,\n"
30187 " const char *journal);\n"
30191 " guestfs_mke2fs_J (guestfs_h *g,\n"
30192 " const char *fstype,\n"
30193 " int blocksize,\n"
30194 " const char *device,\n"
30195 " const char *journal);\n"
30199 #: ../src/guestfs-actions.pod:4661
30200 msgid "See also C<guestfs_mke2journal>."
30204 #: ../src/guestfs-actions.pod:4665 ../src/guestfs-actions.pod:4683
30205 #: ../src/guestfs-actions.pod:4701 ../src/guestfs-actions.pod:4717
30206 #: ../src/guestfs-actions.pod:4731 ../src/guestfs-actions.pod:4745
30207 #: ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:5081
30208 msgid "(Added in 1.0.68)"
30209 msgstr "(Додано у 1.0.68)"
30212 #: ../src/guestfs-actions.pod:4667
30213 msgid "guestfs_mke2fs_JL"
30214 msgstr "guestfs_mke2fs_JL"
30217 #: ../src/guestfs-actions.pod:4669
30221 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30222 " const char *fstype,\n"
30223 " int blocksize,\n"
30224 " const char *device,\n"
30225 " const char *label);\n"
30229 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30230 " const char *fstype,\n"
30231 " int blocksize,\n"
30232 " const char *device,\n"
30233 " const char *label);\n"
30237 #: ../src/guestfs-actions.pod:4679
30238 msgid "See also C<guestfs_mke2journal_L>."
30242 #: ../src/guestfs-actions.pod:4685
30243 msgid "guestfs_mke2fs_JU"
30244 msgstr "guestfs_mke2fs_JU"
30247 #: ../src/guestfs-actions.pod:4687
30251 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30252 " const char *fstype,\n"
30253 " int blocksize,\n"
30254 " const char *device,\n"
30255 " const char *uuid);\n"
30259 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30260 " const char *fstype,\n"
30261 " int blocksize,\n"
30262 " const char *device,\n"
30263 " const char *uuid);\n"
30267 #: ../src/guestfs-actions.pod:4697
30268 msgid "See also C<guestfs_mke2journal_U>."
30272 #: ../src/guestfs-actions.pod:4703
30273 msgid "guestfs_mke2journal"
30274 msgstr "guestfs_mke2journal"
30277 #: ../src/guestfs-actions.pod:4705
30281 " guestfs_mke2journal (guestfs_h *g,\n"
30282 " int blocksize,\n"
30283 " const char *device);\n"
30287 " guestfs_mke2journal (guestfs_h *g,\n"
30288 " int blocksize,\n"
30289 " const char *device);\n"
30293 #: ../src/guestfs-actions.pod:4719
30294 msgid "guestfs_mke2journal_L"
30295 msgstr "guestfs_mke2journal_L"
30298 #: ../src/guestfs-actions.pod:4721
30302 " guestfs_mke2journal_L (guestfs_h *g,\n"
30303 " int blocksize,\n"
30304 " const char *label,\n"
30305 " const char *device);\n"
30309 " guestfs_mke2journal_L (guestfs_h *g,\n"
30310 " int blocksize,\n"
30311 " const char *label,\n"
30312 " const char *device);\n"
30316 #: ../src/guestfs-actions.pod:4733
30317 msgid "guestfs_mke2journal_U"
30318 msgstr "guestfs_mke2journal_U"
30321 #: ../src/guestfs-actions.pod:4735
30325 " guestfs_mke2journal_U (guestfs_h *g,\n"
30326 " int blocksize,\n"
30327 " const char *uuid,\n"
30328 " const char *device);\n"
30332 " guestfs_mke2journal_U (guestfs_h *g,\n"
30333 " int blocksize,\n"
30334 " const char *uuid,\n"
30335 " const char *device);\n"
30339 #: ../src/guestfs-actions.pod:4747
30340 msgid "guestfs_mkfifo"
30341 msgstr "guestfs_mkfifo"
30344 #: ../src/guestfs-actions.pod:4749
30348 " guestfs_mkfifo (guestfs_h *g,\n"
30350 " const char *path);\n"
30354 " guestfs_mkfifo (guestfs_h *g,\n"
30356 " const char *path);\n"
30360 #: ../src/guestfs-actions.pod:4754
30362 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
30363 "is just a convenient wrapper around C<guestfs_mknod>."
30367 #: ../src/guestfs-actions.pod:4764
30368 msgid "guestfs_mkfs"
30369 msgstr "guestfs_mkfs"
30372 #: ../src/guestfs-actions.pod:4766
30376 " guestfs_mkfs (guestfs_h *g,\n"
30377 " const char *fstype,\n"
30378 " const char *device);\n"
30382 " guestfs_mkfs (guestfs_h *g,\n"
30383 " const char *fstype,\n"
30384 " const char *device);\n"
30388 #: ../src/guestfs-actions.pod:4779
30389 msgid "guestfs_mkfs_b"
30390 msgstr "guestfs_mkfs_b"
30393 #: ../src/guestfs-actions.pod:4781
30397 " guestfs_mkfs_b (guestfs_h *g,\n"
30398 " const char *fstype,\n"
30399 " int blocksize,\n"
30400 " const char *device);\n"
30404 " guestfs_mkfs_b (guestfs_h *g,\n"
30405 " const char *fstype,\n"
30406 " int blocksize,\n"
30407 " const char *device);\n"
30411 #: ../src/guestfs-actions.pod:4787
30413 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
30418 #: ../src/guestfs-actions.pod:4794
30420 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
30421 "block size of the resulting filesystem. Supported block sizes depend on the "
30422 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
30426 #: ../src/guestfs-actions.pod:4806
30427 msgid "guestfs_mkfs_opts"
30428 msgstr "guestfs_mkfs_opts"
30431 #: ../src/guestfs-actions.pod:4808
30435 " guestfs_mkfs_opts (guestfs_h *g,\n"
30436 " const char *fstype,\n"
30437 " const char *device,\n"
30442 " guestfs_mkfs_opts (guestfs_h *g,\n"
30443 " const char *fstype,\n"
30444 " const char *device,\n"
30449 #: ../src/guestfs-actions.pod:4819
30452 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
30453 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
30454 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
30455 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
30460 #: ../src/guestfs-actions.pod:4867
30461 msgid "(Added in 1.7.19)"
30462 msgstr "(Додано у 1.7.19)"
30465 #: ../src/guestfs-actions.pod:4869
30466 msgid "guestfs_mkfs_opts_va"
30467 msgstr "guestfs_mkfs_opts_va"
30470 #: ../src/guestfs-actions.pod:4871
30474 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30475 " const char *fstype,\n"
30476 " const char *device,\n"
30477 " va_list args);\n"
30481 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30482 " const char *fstype,\n"
30483 " const char *device,\n"
30484 " va_list args);\n"
30488 #: ../src/guestfs-actions.pod:4877
30489 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
30493 #: ../src/guestfs-actions.pod:4881
30494 msgid "guestfs_mkfs_opts_argv"
30495 msgstr "guestfs_mkfs_opts_argv"
30498 #: ../src/guestfs-actions.pod:4883
30502 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30503 " const char *fstype,\n"
30504 " const char *device,\n"
30505 " const struct guestfs_mkfs_opts_argv *optargs);\n"
30509 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30510 " const char *fstype,\n"
30511 " const char *device,\n"
30512 " const struct guestfs_mkfs_opts_argv *optargs);\n"
30516 #: ../src/guestfs-actions.pod:4889
30517 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
30521 #: ../src/guestfs-actions.pod:4893
30522 msgid "guestfs_mkmountpoint"
30523 msgstr "guestfs_mkmountpoint"
30526 #: ../src/guestfs-actions.pod:4895
30530 " guestfs_mkmountpoint (guestfs_h *g,\n"
30531 " const char *exemptpath);\n"
30535 " guestfs_mkmountpoint (guestfs_h *g,\n"
30536 " const char *exemptpath);\n"
30540 #: ../src/guestfs-actions.pod:4899
30542 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
30543 "that can be used to create extra mountpoints before mounting the first "
30548 #: ../src/guestfs-actions.pod:4923
30550 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
30551 "may get unexpected errors if you try to mix these calls. It is safest to "
30552 "manually unmount filesystems and remove mountpoints after use."
30556 #: ../src/guestfs-actions.pod:4927
30558 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
30559 "first, so for this to work for manual mountpoints, you must ensure that the "
30560 "innermost mountpoints have the longest pathnames, as in the example code "
30565 #: ../src/guestfs-actions.pod:4934
30567 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
30568 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
30569 "can also trigger these issues."
30573 #: ../src/guestfs-actions.pod:4940 ../src/guestfs-actions.pod:5246
30574 #: ../src/guestfs-actions.pod:6256
30575 msgid "(Added in 1.0.62)"
30576 msgstr "(Додано у 1.0.62)"
30579 #: ../src/guestfs-actions.pod:4942
30580 msgid "guestfs_mknod"
30584 #: ../src/guestfs-actions.pod:4944
30588 " guestfs_mknod (guestfs_h *g,\n"
30592 " const char *path);\n"
30597 #: ../src/guestfs-actions.pod:4959
30599 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
30600 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
30601 "regular file). These constants are available in the standard Linux header "
30602 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
30603 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
30604 "the appropriate constant for you."
30608 #: ../src/guestfs-actions.pod:4973
30609 msgid "guestfs_mknod_b"
30613 #: ../src/guestfs-actions.pod:4975
30617 " guestfs_mknod_b (guestfs_h *g,\n"
30621 " const char *path);\n"
30626 #: ../src/guestfs-actions.pod:4982
30628 "This call creates a block device node called C<path> with mode C<mode> and "
30629 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
30630 "wrapper around C<guestfs_mknod>."
30634 #: ../src/guestfs-actions.pod:4992
30635 msgid "guestfs_mknod_c"
30639 #: ../src/guestfs-actions.pod:4994
30643 " guestfs_mknod_c (guestfs_h *g,\n"
30647 " const char *path);\n"
30652 #: ../src/guestfs-actions.pod:5001
30654 "This call creates a char device node called C<path> with mode C<mode> and "
30655 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
30656 "wrapper around C<guestfs_mknod>."
30660 #: ../src/guestfs-actions.pod:5011
30661 msgid "guestfs_mkswap"
30665 #: ../src/guestfs-actions.pod:5013
30669 " guestfs_mkswap (guestfs_h *g,\n"
30670 " const char *device);\n"
30675 #: ../src/guestfs-actions.pod:5023
30676 msgid "guestfs_mkswap_L"
30680 #: ../src/guestfs-actions.pod:5025
30684 " guestfs_mkswap_L (guestfs_h *g,\n"
30685 " const char *label,\n"
30686 " const char *device);\n"
30691 #: ../src/guestfs-actions.pod:5040
30692 msgid "guestfs_mkswap_U"
30696 #: ../src/guestfs-actions.pod:5042
30700 " guestfs_mkswap_U (guestfs_h *g,\n"
30701 " const char *uuid,\n"
30702 " const char *device);\n"
30707 #: ../src/guestfs-actions.pod:5053
30708 msgid "guestfs_mkswap_file"
30712 #: ../src/guestfs-actions.pod:5055
30716 " guestfs_mkswap_file (guestfs_h *g,\n"
30717 " const char *path);\n"
30722 #: ../src/guestfs-actions.pod:5061
30724 "This command just writes a swap file signature to an existing file. To "
30725 "create the file itself, use something like C<guestfs_fallocate>."
30729 #: ../src/guestfs-actions.pod:5068
30730 msgid "guestfs_modprobe"
30734 #: ../src/guestfs-actions.pod:5070
30738 " guestfs_modprobe (guestfs_h *g,\n"
30739 " const char *modulename);\n"
30744 #: ../src/guestfs-actions.pod:5083
30745 msgid "guestfs_mount"
30749 #: ../src/guestfs-actions.pod:5085
30753 " guestfs_mount (guestfs_h *g,\n"
30754 " const char *device,\n"
30755 " const char *mountpoint);\n"
30760 #: ../src/guestfs-actions.pod:5104
30762 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
30763 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
30764 "problems for users. If your program might need to work with older versions "
30765 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
30766 "for the first parameter if you don't want any options)."
30770 #: ../src/guestfs-actions.pod:5115
30771 msgid "guestfs_mount_9p"
30775 #: ../src/guestfs-actions.pod:5117
30779 " guestfs_mount_9p (guestfs_h *g,\n"
30780 " const char *mounttag,\n"
30781 " const char *mountpoint,\n"
30787 #: ../src/guestfs-actions.pod:5128
30790 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
30795 #: ../src/guestfs-actions.pod:5141
30796 msgid "guestfs_mount_9p_va"
30800 #: ../src/guestfs-actions.pod:5143
30804 " guestfs_mount_9p_va (guestfs_h *g,\n"
30805 " const char *mounttag,\n"
30806 " const char *mountpoint,\n"
30807 " va_list args);\n"
30812 #: ../src/guestfs-actions.pod:5149
30813 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
30817 #: ../src/guestfs-actions.pod:5153
30818 msgid "guestfs_mount_9p_argv"
30822 #: ../src/guestfs-actions.pod:5155
30826 " guestfs_mount_9p_argv (guestfs_h *g,\n"
30827 " const char *mounttag,\n"
30828 " const char *mountpoint,\n"
30829 " const struct guestfs_mount_9p_argv *optargs);\n"
30834 #: ../src/guestfs-actions.pod:5161
30835 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
30839 #: ../src/guestfs-actions.pod:5165
30840 msgid "guestfs_mount_loop"
30844 #: ../src/guestfs-actions.pod:5167
30848 " guestfs_mount_loop (guestfs_h *g,\n"
30849 " const char *file,\n"
30850 " const char *mountpoint);\n"
30855 #: ../src/guestfs-actions.pod:5180
30856 msgid "guestfs_mount_options"
30860 #: ../src/guestfs-actions.pod:5182
30864 " guestfs_mount_options (guestfs_h *g,\n"
30865 " const char *options,\n"
30866 " const char *device,\n"
30867 " const char *mountpoint);\n"
30872 #: ../src/guestfs-actions.pod:5188
30874 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30875 "the mount options as for the L<mount(8)> I<-o> flag."
30879 #: ../src/guestfs-actions.pod:5198 ../src/guestfs-actions.pod:5212
30880 #: ../src/guestfs-actions.pod:5229
30881 msgid "(Added in 1.0.10)"
30882 msgstr "(Додано у 1.0.10)"
30885 #: ../src/guestfs-actions.pod:5200
30886 msgid "guestfs_mount_ro"
30890 #: ../src/guestfs-actions.pod:5202
30894 " guestfs_mount_ro (guestfs_h *g,\n"
30895 " const char *device,\n"
30896 " const char *mountpoint);\n"
30901 #: ../src/guestfs-actions.pod:5207
30903 "This is the same as the C<guestfs_mount> command, but it mounts the "
30904 "filesystem with the read-only (I<-o ro>) flag."
30908 #: ../src/guestfs-actions.pod:5214
30909 msgid "guestfs_mount_vfs"
30913 #: ../src/guestfs-actions.pod:5216
30917 " guestfs_mount_vfs (guestfs_h *g,\n"
30918 " const char *options,\n"
30919 " const char *vfstype,\n"
30920 " const char *device,\n"
30921 " const char *mountpoint);\n"
30926 #: ../src/guestfs-actions.pod:5223
30928 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30929 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
30934 #: ../src/guestfs-actions.pod:5231
30935 msgid "guestfs_mountpoints"
30939 #: ../src/guestfs-actions.pod:5233
30943 " guestfs_mountpoints (guestfs_h *g);\n"
30948 #: ../src/guestfs-actions.pod:5236
30950 "This call is similar to C<guestfs_mounts>. That call returns a list of "
30951 "devices. This one returns a hash table (map) of device name to directory "
30952 "where the device is mounted."
30956 #: ../src/guestfs-actions.pod:5248
30957 msgid "guestfs_mounts"
30961 #: ../src/guestfs-actions.pod:5250
30965 " guestfs_mounts (guestfs_h *g);\n"
30970 #: ../src/guestfs-actions.pod:5258
30971 msgid "See also: C<guestfs_mountpoints>"
30975 #: ../src/guestfs-actions.pod:5266
30980 #: ../src/guestfs-actions.pod:5268
30984 " guestfs_mv (guestfs_h *g,\n"
30985 " const char *src,\n"
30986 " const char *dest);\n"
30991 #: ../src/guestfs-actions.pod:5280
30992 msgid "guestfs_ntfs_3g_probe"
30996 #: ../src/guestfs-actions.pod:5282
31000 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
31002 " const char *device);\n"
31007 #: ../src/guestfs-actions.pod:5301
31008 msgid "(Added in 1.0.43)"
31009 msgstr "(Додано у 1.0.43)"
31012 #: ../src/guestfs-actions.pod:5303
31013 msgid "guestfs_ntfsresize"
31017 #: ../src/guestfs-actions.pod:5305
31021 " guestfs_ntfsresize (guestfs_h *g,\n"
31022 " const char *device);\n"
31027 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5409
31029 "I<This function is deprecated.> In new code, use the L</"
31030 "guestfs_ntfsresize_opts> call instead."
31034 #: ../src/guestfs-actions.pod:5333
31035 msgid "guestfs_ntfsresize_opts"
31039 #: ../src/guestfs-actions.pod:5335
31043 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
31044 " const char *device,\n"
31050 #: ../src/guestfs-actions.pod:5345
31053 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
31054 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
31059 #: ../src/guestfs-actions.pod:5365
31061 "After the resize operation, the filesystem is always marked as requiring a "
31062 "consistency check (for safety). You have to boot into Windows to perform "
31063 "this check and clear this condition. If you I<don't> set the C<force> "
31064 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
31065 "times on a single filesystem without booting into Windows between each "
31070 #: ../src/guestfs-actions.pod:5380
31071 msgid "guestfs_ntfsresize_opts_va"
31075 #: ../src/guestfs-actions.pod:5382
31079 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
31080 " const char *device,\n"
31081 " va_list args);\n"
31086 #: ../src/guestfs-actions.pod:5387
31087 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
31091 #: ../src/guestfs-actions.pod:5391
31092 msgid "guestfs_ntfsresize_opts_argv"
31096 #: ../src/guestfs-actions.pod:5393
31100 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
31101 " const char *device,\n"
31102 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
31107 #: ../src/guestfs-actions.pod:5398
31108 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
31112 #: ../src/guestfs-actions.pod:5402
31113 msgid "guestfs_ntfsresize_size"
31117 #: ../src/guestfs-actions.pod:5404
31121 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31122 " const char *device,\n"
31123 " int64_t size);\n"
31128 #: ../src/guestfs-actions.pod:5416
31130 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31131 "to specify the new size (in bytes) explicitly."
31135 #: ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:5863
31136 #: ../src/guestfs-actions.pod:5936 ../src/guestfs-actions.pod:6204
31137 #: ../src/guestfs-actions.pod:7843
31138 msgid "(Added in 1.3.14)"
31139 msgstr "(Додано у 1.3.14)"
31142 #: ../src/guestfs-actions.pod:5423
31143 msgid "guestfs_part_add"
31147 #: ../src/guestfs-actions.pod:5425
31151 " guestfs_part_add (guestfs_h *g,\n"
31152 " const char *device,\n"
31153 " const char *prlogex,\n"
31154 " int64_t startsect,\n"
31155 " int64_t endsect);\n"
31160 #: ../src/guestfs-actions.pod:5432
31162 "This command adds a partition to C<device>. If there is no partition table "
31163 "on the device, call C<guestfs_part_init> first."
31167 #: ../src/guestfs-actions.pod:5444
31169 "Creating a partition which covers the whole disk is not so easy. Use "
31170 "C<guestfs_part_disk> to do that."
31174 #: ../src/guestfs-actions.pod:5449 ../src/guestfs-actions.pod:5487
31175 #: ../src/guestfs-actions.pod:5540 ../src/guestfs-actions.pod:5624
31176 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5681
31177 #: ../src/guestfs-actions.pod:5721
31178 msgid "(Added in 1.0.78)"
31179 msgstr "(Додано у 1.0.78)"
31182 #: ../src/guestfs-actions.pod:5451
31183 msgid "guestfs_part_del"
31187 #: ../src/guestfs-actions.pod:5453
31191 " guestfs_part_del (guestfs_h *g,\n"
31192 " const char *device,\n"
31198 #: ../src/guestfs-actions.pod:5468
31199 msgid "guestfs_part_disk"
31203 #: ../src/guestfs-actions.pod:5470
31207 " guestfs_part_disk (guestfs_h *g,\n"
31208 " const char *device,\n"
31209 " const char *parttype);\n"
31214 #: ../src/guestfs-actions.pod:5475
31216 "This command is simply a combination of C<guestfs_part_init> followed by "
31217 "C<guestfs_part_add> to create a single primary partition covering the whole "
31222 #: ../src/guestfs-actions.pod:5479
31224 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
31225 "possible values are described in C<guestfs_part_init>."
31229 #: ../src/guestfs-actions.pod:5489
31230 msgid "guestfs_part_get_bootable"
31234 #: ../src/guestfs-actions.pod:5491
31238 " guestfs_part_get_bootable (guestfs_h *g,\n"
31239 " const char *device,\n"
31245 #: ../src/guestfs-actions.pod:5499
31246 msgid "See also C<guestfs_part_set_bootable>."
31250 #: ../src/guestfs-actions.pod:5505
31251 msgid "guestfs_part_get_mbr_id"
31255 #: ../src/guestfs-actions.pod:5507
31259 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
31260 " const char *device,\n"
31266 #: ../src/guestfs-actions.pod:5515 ../src/guestfs-actions.pod:5697
31268 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
31269 "undefined results for other partition table types (see "
31270 "C<guestfs_part_get_parttype>)."
31274 #: ../src/guestfs-actions.pod:5523
31275 msgid "guestfs_part_get_parttype"
31279 #: ../src/guestfs-actions.pod:5525
31283 " guestfs_part_get_parttype (guestfs_h *g,\n"
31284 " const char *device);\n"
31289 #: ../src/guestfs-actions.pod:5532
31291 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
31292 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
31293 "possible, although unusual. See C<guestfs_part_init> for a full list."
31297 #: ../src/guestfs-actions.pod:5542
31298 msgid "guestfs_part_init"
31302 #: ../src/guestfs-actions.pod:5544
31306 " guestfs_part_init (guestfs_h *g,\n"
31307 " const char *device,\n"
31308 " const char *parttype);\n"
31313 #: ../src/guestfs-actions.pod:5553
31315 "Initially there are no partitions. Following this, you should call "
31316 "C<guestfs_part_add> for each partition required."
31320 #: ../src/guestfs-actions.pod:5626
31321 msgid "guestfs_part_list"
31322 msgstr "guestfs_part_list"
31325 #: ../src/guestfs-actions.pod:5628
31328 " struct guestfs_partition_list *\n"
31329 " guestfs_part_list (guestfs_h *g,\n"
31330 " const char *device);\n"
31333 " struct guestfs_partition_list *\n"
31334 " guestfs_part_list (guestfs_h *g,\n"
31335 " const char *device);\n"
31339 #: ../src/guestfs-actions.pod:5645
31341 "Start of the partition I<in bytes>. To get sectors you have to divide by "
31342 "the device's sector size, see C<guestfs_blockdev_getss>."
31346 #: ../src/guestfs-actions.pod:5658
31348 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
31349 "was an error. I<The caller must call C<guestfs_free_partition_list> after "
31354 #: ../src/guestfs-actions.pod:5664
31355 msgid "guestfs_part_set_bootable"
31359 #: ../src/guestfs-actions.pod:5666
31363 " guestfs_part_set_bootable (guestfs_h *g,\n"
31364 " const char *device,\n"
31366 " int bootable);\n"
31371 #: ../src/guestfs-actions.pod:5683
31372 msgid "guestfs_part_set_mbr_id"
31376 #: ../src/guestfs-actions.pod:5685
31380 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
31381 " const char *device,\n"
31388 #: ../src/guestfs-actions.pod:5705
31389 msgid "guestfs_part_set_name"
31393 #: ../src/guestfs-actions.pod:5707
31397 " guestfs_part_set_name (guestfs_h *g,\n"
31398 " const char *device,\n"
31400 " const char *name);\n"
31405 #: ../src/guestfs-actions.pod:5723
31406 msgid "guestfs_part_to_dev"
31410 #: ../src/guestfs-actions.pod:5725
31414 " guestfs_part_to_dev (guestfs_h *g,\n"
31415 " const char *partition);\n"
31420 #: ../src/guestfs-actions.pod:5733
31422 "The named partition must exist, for example as a string returned from "
31423 "C<guestfs_list_partitions>."
31427 #: ../src/guestfs-actions.pod:5741
31428 msgid "guestfs_ping_daemon"
31432 #: ../src/guestfs-actions.pod:5743
31436 " guestfs_ping_daemon (guestfs_h *g);\n"
31441 #: ../src/guestfs-actions.pod:5755
31442 msgid "guestfs_pread"
31446 #: ../src/guestfs-actions.pod:5757
31450 " guestfs_pread (guestfs_h *g,\n"
31451 " const char *path,\n"
31453 " int64_t offset,\n"
31454 " size_t *size_r);\n"
31459 #: ../src/guestfs-actions.pod:5770
31460 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
31464 #: ../src/guestfs-actions.pod:5781
31465 msgid "guestfs_pread_device"
31469 #: ../src/guestfs-actions.pod:5783
31473 " guestfs_pread_device (guestfs_h *g,\n"
31474 " const char *device,\n"
31476 " int64_t offset,\n"
31477 " size_t *size_r);\n"
31482 #: ../src/guestfs-actions.pod:5796
31483 msgid "See also C<guestfs_pread>."
31487 #: ../src/guestfs-actions.pod:5805
31488 msgid "(Added in 1.5.21)"
31489 msgstr "(Додано у 1.5.21)"
31492 #: ../src/guestfs-actions.pod:5807
31493 msgid "guestfs_pvcreate"
31497 #: ../src/guestfs-actions.pod:5809
31501 " guestfs_pvcreate (guestfs_h *g,\n"
31502 " const char *device);\n"
31507 #: ../src/guestfs-actions.pod:5821
31508 msgid "guestfs_pvremove"
31512 #: ../src/guestfs-actions.pod:5823
31516 " guestfs_pvremove (guestfs_h *g,\n"
31517 " const char *device);\n"
31522 #: ../src/guestfs-actions.pod:5838
31523 msgid "guestfs_pvresize"
31527 #: ../src/guestfs-actions.pod:5840
31531 " guestfs_pvresize (guestfs_h *g,\n"
31532 " const char *device);\n"
31537 #: ../src/guestfs-actions.pod:5851
31538 msgid "guestfs_pvresize_size"
31542 #: ../src/guestfs-actions.pod:5853
31546 " guestfs_pvresize_size (guestfs_h *g,\n"
31547 " const char *device,\n"
31548 " int64_t size);\n"
31553 #: ../src/guestfs-actions.pod:5858
31555 "This command is the same as C<guestfs_pvresize> except that it allows you to "
31556 "specify the new size (in bytes) explicitly."
31560 #: ../src/guestfs-actions.pod:5865
31561 msgid "guestfs_pvs"
31565 #: ../src/guestfs-actions.pod:5867
31569 " guestfs_pvs (guestfs_h *g);\n"
31574 #: ../src/guestfs-actions.pod:5876
31575 msgid "See also C<guestfs_pvs_full>."
31579 #: ../src/guestfs-actions.pod:5884
31580 msgid "guestfs_pvs_full"
31584 #: ../src/guestfs-actions.pod:5886
31587 " struct guestfs_lvm_pv_list *\n"
31588 " guestfs_pvs_full (guestfs_h *g);\n"
31593 #: ../src/guestfs-actions.pod:5892
31595 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
31596 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
31600 #: ../src/guestfs-actions.pod:5898
31601 msgid "guestfs_pvuuid"
31605 #: ../src/guestfs-actions.pod:5900
31609 " guestfs_pvuuid (guestfs_h *g,\n"
31610 " const char *device);\n"
31615 #: ../src/guestfs-actions.pod:5911
31616 msgid "guestfs_pwrite"
31620 #: ../src/guestfs-actions.pod:5913
31624 " guestfs_pwrite (guestfs_h *g,\n"
31625 " const char *path,\n"
31626 " const char *content,\n"
31627 " size_t content_size,\n"
31628 " int64_t offset);\n"
31633 #: ../src/guestfs-actions.pod:5929
31634 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
31638 #: ../src/guestfs-actions.pod:5938
31639 msgid "guestfs_pwrite_device"
31643 #: ../src/guestfs-actions.pod:5940
31647 " guestfs_pwrite_device (guestfs_h *g,\n"
31648 " const char *device,\n"
31649 " const char *content,\n"
31650 " size_t content_size,\n"
31651 " int64_t offset);\n"
31656 #: ../src/guestfs-actions.pod:5955
31657 msgid "See also C<guestfs_pwrite>."
31661 #: ../src/guestfs-actions.pod:5962
31662 msgid "(Added in 1.5.20)"
31663 msgstr "(Додано у 1.5.20)"
31666 #: ../src/guestfs-actions.pod:5964
31667 msgid "guestfs_read_file"
31671 #: ../src/guestfs-actions.pod:5966
31675 " guestfs_read_file (guestfs_h *g,\n"
31676 " const char *path,\n"
31677 " size_t *size_r);\n"
31682 #: ../src/guestfs-actions.pod:5974
31684 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
31685 "embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
31686 "function is limited in the total size of file that can be handled."
31690 #: ../src/guestfs-actions.pod:5986
31691 msgid "(Added in 1.0.63)"
31692 msgstr "(Додано у 1.0.63)"
31695 #: ../src/guestfs-actions.pod:5988
31696 msgid "guestfs_read_lines"
31700 #: ../src/guestfs-actions.pod:5990
31704 " guestfs_read_lines (guestfs_h *g,\n"
31705 " const char *path);\n"
31710 #: ../src/guestfs-actions.pod:5999
31712 "Note that this function cannot correctly handle binary files (specifically, "
31713 "files containing C<\\0> character which is treated as end of line). For "
31714 "those you need to use the C<guestfs_read_file> function which has a more "
31715 "complex interface."
31719 #: ../src/guestfs-actions.pod:6010
31720 msgid "guestfs_readdir"
31724 #: ../src/guestfs-actions.pod:6012
31727 " struct guestfs_dirent_list *\n"
31728 " guestfs_readdir (guestfs_h *g,\n"
31729 " const char *dir);\n"
31734 #: ../src/guestfs-actions.pod:6066
31736 "This function is primarily intended for use by programs. To get a simple "
31737 "list of names, use C<guestfs_ls>. To get a printable directory for human "
31738 "consumption, use C<guestfs_ll>."
31742 #: ../src/guestfs-actions.pod:6070
31744 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
31745 "was an error. I<The caller must call C<guestfs_free_dirent_list> after use>."
31749 #: ../src/guestfs-actions.pod:6076
31750 msgid "guestfs_readlink"
31754 #: ../src/guestfs-actions.pod:6078
31758 " guestfs_readlink (guestfs_h *g,\n"
31759 " const char *path);\n"
31764 #: ../src/guestfs-actions.pod:6089
31765 msgid "guestfs_readlinklist"
31769 #: ../src/guestfs-actions.pod:6091
31773 " guestfs_readlinklist (guestfs_h *g,\n"
31774 " const char *path,\n"
31775 " char *const *names);\n"
31780 #: ../src/guestfs-actions.pod:6124
31781 msgid "guestfs_realpath"
31785 #: ../src/guestfs-actions.pod:6126
31789 " guestfs_realpath (guestfs_h *g,\n"
31790 " const char *path);\n"
31795 #: ../src/guestfs-actions.pod:6138
31796 msgid "guestfs_removexattr"
31800 #: ../src/guestfs-actions.pod:6140
31804 " guestfs_removexattr (guestfs_h *g,\n"
31805 " const char *xattr,\n"
31806 " const char *path);\n"
31811 #: ../src/guestfs-actions.pod:6148
31812 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
31816 #: ../src/guestfs-actions.pod:6154
31817 msgid "guestfs_resize2fs"
31821 #: ../src/guestfs-actions.pod:6156
31825 " guestfs_resize2fs (guestfs_h *g,\n"
31826 " const char *device);\n"
31831 #: ../src/guestfs-actions.pod:6163
31833 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
31834 "C<device> before calling this command. For unknown reasons C<resize2fs> "
31835 "sometimes gives an error about this and sometimes not. In any case, it is "
31836 "always safe to call C<guestfs_e2fsck_f> before calling this function."
31840 #: ../src/guestfs-actions.pod:6173
31841 msgid "guestfs_resize2fs_M"
31845 #: ../src/guestfs-actions.pod:6175
31849 " guestfs_resize2fs_M (guestfs_h *g,\n"
31850 " const char *device);\n"
31855 #: ../src/guestfs-actions.pod:6179
31857 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
31858 "resized to its minimum size. This works like the I<-M> option to the "
31859 "C<resize2fs> command."
31863 #: ../src/guestfs-actions.pod:6183
31865 "To get the resulting size of the filesystem you should call "
31866 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
31867 "These two numbers, multiplied together, give the resulting size of the "
31868 "minimal filesystem in bytes."
31872 #: ../src/guestfs-actions.pod:6192
31873 msgid "guestfs_resize2fs_size"
31877 #: ../src/guestfs-actions.pod:6194
31881 " guestfs_resize2fs_size (guestfs_h *g,\n"
31882 " const char *device,\n"
31883 " int64_t size);\n"
31888 #: ../src/guestfs-actions.pod:6199
31890 "This command is the same as C<guestfs_resize2fs> except that it allows you "
31891 "to specify the new size (in bytes) explicitly."
31895 #: ../src/guestfs-actions.pod:6206
31900 #: ../src/guestfs-actions.pod:6208
31904 " guestfs_rm (guestfs_h *g,\n"
31905 " const char *path);\n"
31910 #: ../src/guestfs-actions.pod:6218
31911 msgid "guestfs_rm_rf"
31915 #: ../src/guestfs-actions.pod:6220
31919 " guestfs_rm_rf (guestfs_h *g,\n"
31920 " const char *path);\n"
31925 #: ../src/guestfs-actions.pod:6232
31926 msgid "guestfs_rmdir"
31930 #: ../src/guestfs-actions.pod:6234
31934 " guestfs_rmdir (guestfs_h *g,\n"
31935 " const char *path);\n"
31940 #: ../src/guestfs-actions.pod:6244
31941 msgid "guestfs_rmmountpoint"
31945 #: ../src/guestfs-actions.pod:6246
31949 " guestfs_rmmountpoint (guestfs_h *g,\n"
31950 " const char *exemptpath);\n"
31955 #: ../src/guestfs-actions.pod:6250
31957 "This calls removes a mountpoint that was previously created with "
31958 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
31962 #: ../src/guestfs-actions.pod:6258
31963 msgid "guestfs_scrub_device"
31967 #: ../src/guestfs-actions.pod:6260
31971 " guestfs_scrub_device (guestfs_h *g,\n"
31972 " const char *device);\n"
31977 #: ../src/guestfs-actions.pod:6275 ../src/guestfs-actions.pod:6293
31978 #: ../src/guestfs-actions.pod:6312
31979 msgid "(Added in 1.0.52)"
31980 msgstr "(Додано у 1.0.52)"
31983 #: ../src/guestfs-actions.pod:6277
31984 msgid "guestfs_scrub_file"
31988 #: ../src/guestfs-actions.pod:6279
31992 " guestfs_scrub_file (guestfs_h *g,\n"
31993 " const char *file);\n"
31998 #: ../src/guestfs-actions.pod:6295
31999 msgid "guestfs_scrub_freespace"
32003 #: ../src/guestfs-actions.pod:6297
32007 " guestfs_scrub_freespace (guestfs_h *g,\n"
32008 " const char *dir);\n"
32013 #: ../src/guestfs-actions.pod:6301
32015 "This command creates the directory C<dir> and then fills it with files until "
32016 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
32017 "and deletes them. The intention is to scrub any free space on the partition "
32018 "containing C<dir>."
32022 #: ../src/guestfs-actions.pod:6314
32023 msgid "guestfs_set_append"
32027 #: ../src/guestfs-actions.pod:6316
32031 " guestfs_set_append (guestfs_h *g,\n"
32032 " const char *append);\n"
32037 #: ../src/guestfs-actions.pod:6333
32038 msgid "guestfs_set_attach_method"
32042 #: ../src/guestfs-actions.pod:6335
32046 " guestfs_set_attach_method (guestfs_h *g,\n"
32047 " const char *attachmethod);\n"
32052 #: ../src/guestfs-actions.pod:6363
32053 msgid "guestfs_set_autosync"
32057 #: ../src/guestfs-actions.pod:6365
32061 " guestfs_set_autosync (guestfs_h *g,\n"
32062 " int autosync);\n"
32067 #: ../src/guestfs-actions.pod:6381
32068 msgid "guestfs_set_direct"
32072 #: ../src/guestfs-actions.pod:6383
32076 " guestfs_set_direct (guestfs_h *g,\n"
32082 #: ../src/guestfs-actions.pod:6391
32084 "One consequence of this is that log messages aren't caught by the library "
32085 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
32090 #: ../src/guestfs-actions.pod:6404
32091 msgid "guestfs_set_e2label"
32095 #: ../src/guestfs-actions.pod:6406
32099 " guestfs_set_e2label (guestfs_h *g,\n"
32100 " const char *device,\n"
32101 " const char *label);\n"
32106 #: ../src/guestfs-actions.pod:6415
32108 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32109 "the existing label on a filesystem."
32113 #: ../src/guestfs-actions.pod:6422
32114 msgid "guestfs_set_e2uuid"
32118 #: ../src/guestfs-actions.pod:6424
32122 " guestfs_set_e2uuid (guestfs_h *g,\n"
32123 " const char *device,\n"
32124 " const char *uuid);\n"
32129 #: ../src/guestfs-actions.pod:6434
32131 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32132 "the existing UUID of a filesystem."
32136 #: ../src/guestfs-actions.pod:6441
32137 msgid "guestfs_set_memsize"
32141 #: ../src/guestfs-actions.pod:6443
32145 " guestfs_set_memsize (guestfs_h *g,\n"
32151 #: ../src/guestfs-actions.pod:6447
32153 "This sets the memory size in megabytes allocated to the qemu subprocess. "
32154 "This only has any effect if called before C<guestfs_launch>."
32158 #: ../src/guestfs-actions.pod:6462
32159 msgid "guestfs_set_network"
32163 #: ../src/guestfs-actions.pod:6464
32167 " guestfs_set_network (guestfs_h *g,\n"
32173 #: ../src/guestfs-actions.pod:6474
32175 "You must call this before calling C<guestfs_launch>, otherwise it has no "
32180 #: ../src/guestfs-actions.pod:6481
32181 msgid "guestfs_set_path"
32185 #: ../src/guestfs-actions.pod:6483
32189 " guestfs_set_path (guestfs_h *g,\n"
32190 " const char *searchpath);\n"
32195 #: ../src/guestfs-actions.pod:6498
32196 msgid "guestfs_set_pgroup"
32200 #: ../src/guestfs-actions.pod:6500
32204 " guestfs_set_pgroup (guestfs_h *g,\n"
32210 #: ../src/guestfs-actions.pod:6517
32211 msgid "guestfs_set_qemu"
32215 #: ../src/guestfs-actions.pod:6519
32219 " guestfs_set_qemu (guestfs_h *g,\n"
32220 " const char *qemu);\n"
32225 #: ../src/guestfs-actions.pod:6545
32226 msgid "guestfs_set_recovery_proc"
32230 #: ../src/guestfs-actions.pod:6547
32234 " guestfs_set_recovery_proc (guestfs_h *g,\n"
32235 " int recoveryproc);\n"
32240 #: ../src/guestfs-actions.pod:6551
32242 "If this is called with the parameter C<false> then C<guestfs_launch> does "
32243 "not create a recovery process. The purpose of the recovery process is to "
32244 "stop runaway qemu processes in the case where the main program aborts "
32249 #: ../src/guestfs-actions.pod:6556
32251 "This only has any effect if called before C<guestfs_launch>, and the default "
32256 #: ../src/guestfs-actions.pod:6569
32257 msgid "guestfs_set_selinux"
32261 #: ../src/guestfs-actions.pod:6571
32265 " guestfs_set_selinux (guestfs_h *g,\n"
32271 #: ../src/guestfs-actions.pod:6588
32272 msgid "guestfs_set_smp"
32276 #: ../src/guestfs-actions.pod:6590
32280 " guestfs_set_smp (guestfs_h *g,\n"
32286 #: ../src/guestfs-actions.pod:6598
32287 msgid "This function must be called before C<guestfs_launch>."
32291 #: ../src/guestfs-actions.pod:6604
32292 msgid "guestfs_set_trace"
32296 #: ../src/guestfs-actions.pod:6606
32300 " guestfs_set_trace (guestfs_h *g,\n"
32306 #: ../src/guestfs-actions.pod:6620
32308 "Trace messages are normally sent to C<stderr>, unless you register a "
32309 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32313 #: ../src/guestfs-actions.pod:6628
32314 msgid "guestfs_set_verbose"
32318 #: ../src/guestfs-actions.pod:6630
32322 " guestfs_set_verbose (guestfs_h *g,\n"
32328 #: ../src/guestfs-actions.pod:6639
32330 "Verbose messages are normally sent to C<stderr>, unless you register a "
32331 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32335 #: ../src/guestfs-actions.pod:6647
32336 msgid "guestfs_setcon"
32340 #: ../src/guestfs-actions.pod:6649
32344 " guestfs_setcon (guestfs_h *g,\n"
32345 " const char *context);\n"
32350 #: ../src/guestfs-actions.pod:6662
32351 msgid "guestfs_setxattr"
32355 #: ../src/guestfs-actions.pod:6664
32359 " guestfs_setxattr (guestfs_h *g,\n"
32360 " const char *xattr,\n"
32361 " const char *val,\n"
32363 " const char *path);\n"
32368 #: ../src/guestfs-actions.pod:6675
32369 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
32373 #: ../src/guestfs-actions.pod:6681
32374 msgid "guestfs_sfdisk"
32378 #: ../src/guestfs-actions.pod:6683
32382 " guestfs_sfdisk (guestfs_h *g,\n"
32383 " const char *device,\n"
32387 " char *const *lines);\n"
32392 #: ../src/guestfs-actions.pod:6691 ../src/guestfs-actions.pod:6735
32393 #: ../src/guestfs-actions.pod:6769
32395 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
32400 #: ../src/guestfs-actions.pod:6718
32402 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
32406 #: ../src/guestfs-actions.pod:6728
32407 msgid "guestfs_sfdiskM"
32411 #: ../src/guestfs-actions.pod:6730
32415 " guestfs_sfdiskM (guestfs_h *g,\n"
32416 " const char *device,\n"
32417 " char *const *lines);\n"
32422 #: ../src/guestfs-actions.pod:6742
32424 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
32425 "partition sizes are specified in megabytes only (rounded to the nearest "
32426 "cylinder) and you don't need to specify the cyls, heads and sectors "
32427 "parameters which were rarely if ever used anyway."
32431 #: ../src/guestfs-actions.pod:6748
32433 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
32434 "C<guestfs_part_disk>"
32438 #: ../src/guestfs-actions.pod:6758
32439 msgid "guestfs_sfdisk_N"
32443 #: ../src/guestfs-actions.pod:6760
32447 " guestfs_sfdisk_N (guestfs_h *g,\n"
32448 " const char *device,\n"
32453 " const char *line);\n"
32458 #: ../src/guestfs-actions.pod:6779
32460 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
32461 "for the cyls/heads/sectors parameters."
32465 #: ../src/guestfs-actions.pod:6782
32466 msgid "See also: C<guestfs_part_add>"
32470 #: ../src/guestfs-actions.pod:6791
32471 msgid "guestfs_sfdisk_disk_geometry"
32475 #: ../src/guestfs-actions.pod:6793
32479 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
32480 " const char *device);\n"
32485 #: ../src/guestfs-actions.pod:6797
32487 "This displays the disk geometry of C<device> read from the partition table. "
32488 "Especially in the case where the underlying block device has been resized, "
32489 "this can be different from the kernel's idea of the geometry (see "
32490 "C<guestfs_sfdisk_kernel_geometry>)."
32494 #: ../src/guestfs-actions.pod:6810
32495 msgid "guestfs_sfdisk_kernel_geometry"
32499 #: ../src/guestfs-actions.pod:6812
32503 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
32504 " const char *device);\n"
32509 #: ../src/guestfs-actions.pod:6826
32510 msgid "guestfs_sfdisk_l"
32514 #: ../src/guestfs-actions.pod:6828
32518 " guestfs_sfdisk_l (guestfs_h *g,\n"
32519 " const char *device);\n"
32524 #: ../src/guestfs-actions.pod:6832
32526 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
32531 #: ../src/guestfs-actions.pod:6843
32532 msgid "See also: C<guestfs_part_list>"
32536 #: ../src/guestfs-actions.pod:6850
32541 #: ../src/guestfs-actions.pod:6852
32545 " guestfs_sh (guestfs_h *g,\n"
32546 " const char *command);\n"
32551 #: ../src/guestfs-actions.pod:6859
32552 msgid "This is like C<guestfs_command>, but passes the command to:"
32556 #: ../src/guestfs-actions.pod:6867
32557 msgid "All the provisos about C<guestfs_command> apply to this call."
32561 #: ../src/guestfs-actions.pod:6874
32562 msgid "guestfs_sh_lines"
32566 #: ../src/guestfs-actions.pod:6876
32570 " guestfs_sh_lines (guestfs_h *g,\n"
32571 " const char *command);\n"
32576 #: ../src/guestfs-actions.pod:6880
32578 "This is the same as C<guestfs_sh>, but splits the result into a list of "
32583 #: ../src/guestfs-actions.pod:6883
32584 msgid "See also: C<guestfs_command_lines>"
32588 #: ../src/guestfs-actions.pod:6891
32589 msgid "guestfs_sleep"
32593 #: ../src/guestfs-actions.pod:6893
32597 " guestfs_sleep (guestfs_h *g,\n"
32603 #: ../src/guestfs-actions.pod:6901
32604 msgid "(Added in 1.0.41)"
32605 msgstr "(Додано у 1.0.41)"
32608 #: ../src/guestfs-actions.pod:6903 ../src/guestfs-structs.pod:109
32609 msgid "guestfs_stat"
32613 #: ../src/guestfs-actions.pod:6905
32616 " struct guestfs_stat *\n"
32617 " guestfs_stat (guestfs_h *g,\n"
32618 " const char *path);\n"
32623 #: ../src/guestfs-actions.pod:6919 ../src/guestfs-structs.pod:135
32624 msgid "guestfs_statvfs"
32628 #: ../src/guestfs-actions.pod:6921
32631 " struct guestfs_statvfs *\n"
32632 " guestfs_statvfs (guestfs_h *g,\n"
32633 " const char *path);\n"
32638 #: ../src/guestfs-actions.pod:6931
32640 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
32641 "error. I<The caller must call C<guestfs_free_statvfs> after use>."
32645 #: ../src/guestfs-actions.pod:6937
32646 msgid "guestfs_strings"
32650 #: ../src/guestfs-actions.pod:6939
32654 " guestfs_strings (guestfs_h *g,\n"
32655 " const char *path);\n"
32660 #: ../src/guestfs-actions.pod:6955
32661 msgid "guestfs_strings_e"
32665 #: ../src/guestfs-actions.pod:6957
32669 " guestfs_strings_e (guestfs_h *g,\n"
32670 " const char *encoding,\n"
32671 " const char *path);\n"
32676 #: ../src/guestfs-actions.pod:6962
32678 "This is like the C<guestfs_strings> command, but allows you to specify the "
32679 "encoding of strings that are looked for in the source file C<path>."
32683 #: ../src/guestfs-actions.pod:6972
32685 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
32686 "ISO-8859-X (this is what C<guestfs_strings> uses)."
32690 #: ../src/guestfs-actions.pod:7010
32691 msgid "guestfs_swapoff_device"
32695 #: ../src/guestfs-actions.pod:7012
32699 " guestfs_swapoff_device (guestfs_h *g,\n"
32700 " const char *device);\n"
32705 #: ../src/guestfs-actions.pod:7016
32707 "This command disables the libguestfs appliance swap device or partition "
32708 "named C<device>. See C<guestfs_swapon_device>."
32712 #: ../src/guestfs-actions.pod:7024
32713 msgid "guestfs_swapoff_file"
32717 #: ../src/guestfs-actions.pod:7026
32721 " guestfs_swapoff_file (guestfs_h *g,\n"
32722 " const char *file);\n"
32727 #: ../src/guestfs-actions.pod:7036
32728 msgid "guestfs_swapoff_label"
32732 #: ../src/guestfs-actions.pod:7038
32736 " guestfs_swapoff_label (guestfs_h *g,\n"
32737 " const char *label);\n"
32742 #: ../src/guestfs-actions.pod:7049
32743 msgid "guestfs_swapoff_uuid"
32747 #: ../src/guestfs-actions.pod:7051
32751 " guestfs_swapoff_uuid (guestfs_h *g,\n"
32752 " const char *uuid);\n"
32757 #: ../src/guestfs-actions.pod:7062
32758 msgid "guestfs_swapon_device"
32762 #: ../src/guestfs-actions.pod:7064
32766 " guestfs_swapon_device (guestfs_h *g,\n"
32767 " const char *device);\n"
32772 #: ../src/guestfs-actions.pod:7068
32774 "This command enables the libguestfs appliance to use the swap device or "
32775 "partition named C<device>. The increased memory is made available for all "
32776 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
32780 #: ../src/guestfs-actions.pod:7084
32781 msgid "guestfs_swapon_file"
32785 #: ../src/guestfs-actions.pod:7086
32789 " guestfs_swapon_file (guestfs_h *g,\n"
32790 " const char *file);\n"
32795 #: ../src/guestfs-actions.pod:7090
32797 "This command enables swap to a file. See C<guestfs_swapon_device> for other "
32802 #: ../src/guestfs-actions.pod:7097
32803 msgid "guestfs_swapon_label"
32807 #: ../src/guestfs-actions.pod:7099
32811 " guestfs_swapon_label (guestfs_h *g,\n"
32812 " const char *label);\n"
32817 #: ../src/guestfs-actions.pod:7103
32819 "This command enables swap to a labeled swap partition. See "
32820 "C<guestfs_swapon_device> for other notes."
32824 #: ../src/guestfs-actions.pod:7110
32825 msgid "guestfs_swapon_uuid"
32829 #: ../src/guestfs-actions.pod:7112
32833 " guestfs_swapon_uuid (guestfs_h *g,\n"
32834 " const char *uuid);\n"
32839 #: ../src/guestfs-actions.pod:7116
32841 "This command enables swap to a swap partition with the given UUID. See "
32842 "C<guestfs_swapon_device> for other notes."
32846 #: ../src/guestfs-actions.pod:7123
32847 msgid "guestfs_sync"
32851 #: ../src/guestfs-actions.pod:7125
32855 " guestfs_sync (guestfs_h *g);\n"
32860 #: ../src/guestfs-actions.pod:7138
32861 msgid "guestfs_tail"
32865 #: ../src/guestfs-actions.pod:7140
32869 " guestfs_tail (guestfs_h *g,\n"
32870 " const char *path);\n"
32875 #: ../src/guestfs-actions.pod:7156
32876 msgid "guestfs_tail_n"
32880 #: ../src/guestfs-actions.pod:7158
32884 " guestfs_tail_n (guestfs_h *g,\n"
32886 " const char *path);\n"
32891 #: ../src/guestfs-actions.pod:7180
32892 msgid "guestfs_tar_in"
32896 #: ../src/guestfs-actions.pod:7182
32900 " guestfs_tar_in (guestfs_h *g,\n"
32901 " const char *tarfile,\n"
32902 " const char *directory);\n"
32907 #: ../src/guestfs-actions.pod:7190
32909 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
32913 #: ../src/guestfs-actions.pod:7195 ../src/guestfs-actions.pod:7212
32914 #: ../src/guestfs-actions.pod:7228 ../src/guestfs-actions.pod:7244
32915 msgid "(Added in 1.0.3)"
32916 msgstr "(Додано у 1.0.3)"
32919 #: ../src/guestfs-actions.pod:7197
32920 msgid "guestfs_tar_out"
32924 #: ../src/guestfs-actions.pod:7199
32928 " guestfs_tar_out (guestfs_h *g,\n"
32929 " const char *directory,\n"
32930 " const char *tarfile);\n"
32935 #: ../src/guestfs-actions.pod:7207
32937 "To download a compressed tarball, use C<guestfs_tgz_out> or "
32938 "C<guestfs_txz_out>."
32942 #: ../src/guestfs-actions.pod:7214
32943 msgid "guestfs_tgz_in"
32947 #: ../src/guestfs-actions.pod:7216
32951 " guestfs_tgz_in (guestfs_h *g,\n"
32952 " const char *tarball,\n"
32953 " const char *directory);\n"
32958 #: ../src/guestfs-actions.pod:7224
32959 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
32963 #: ../src/guestfs-actions.pod:7230
32964 msgid "guestfs_tgz_out"
32968 #: ../src/guestfs-actions.pod:7232
32972 " guestfs_tgz_out (guestfs_h *g,\n"
32973 " const char *directory,\n"
32974 " const char *tarball);\n"
32979 #: ../src/guestfs-actions.pod:7240
32980 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
32984 #: ../src/guestfs-actions.pod:7246
32985 msgid "guestfs_touch"
32989 #: ../src/guestfs-actions.pod:7248
32993 " guestfs_touch (guestfs_h *g,\n"
32994 " const char *path);\n"
32999 #: ../src/guestfs-actions.pod:7263
33000 msgid "guestfs_truncate"
33004 #: ../src/guestfs-actions.pod:7265
33008 " guestfs_truncate (guestfs_h *g,\n"
33009 " const char *path);\n"
33014 #: ../src/guestfs-actions.pod:7276
33015 msgid "guestfs_truncate_size"
33019 #: ../src/guestfs-actions.pod:7278
33023 " guestfs_truncate_size (guestfs_h *g,\n"
33024 " const char *path,\n"
33025 " int64_t size);\n"
33030 #: ../src/guestfs-actions.pod:7286
33032 "If the current file size is less than C<size> then the file is extended to "
33033 "the required size with zero bytes. This creates a sparse file (ie. disk "
33034 "blocks are not allocated for the file until you write to it). To create a "
33035 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
33039 #: ../src/guestfs-actions.pod:7296
33040 msgid "guestfs_tune2fs_l"
33044 #: ../src/guestfs-actions.pod:7298
33048 " guestfs_tune2fs_l (guestfs_h *g,\n"
33049 " const char *device);\n"
33054 #: ../src/guestfs-actions.pod:7318
33055 msgid "guestfs_txz_in"
33059 #: ../src/guestfs-actions.pod:7320
33063 " guestfs_txz_in (guestfs_h *g,\n"
33064 " const char *tarball,\n"
33065 " const char *directory);\n"
33070 #: ../src/guestfs-actions.pod:7332
33071 msgid "guestfs_txz_out"
33075 #: ../src/guestfs-actions.pod:7334
33079 " guestfs_txz_out (guestfs_h *g,\n"
33080 " const char *directory,\n"
33081 " const char *tarball);\n"
33086 #: ../src/guestfs-actions.pod:7346
33087 msgid "guestfs_umask"
33091 #: ../src/guestfs-actions.pod:7348
33095 " guestfs_umask (guestfs_h *g,\n"
33101 #: ../src/guestfs-actions.pod:7364
33103 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
33104 "C<guestfs_mkdir>."
33108 #: ../src/guestfs-actions.pod:7373
33109 msgid "guestfs_umount"
33113 #: ../src/guestfs-actions.pod:7375
33117 " guestfs_umount (guestfs_h *g,\n"
33118 " const char *pathordevice);\n"
33123 #: ../src/guestfs-actions.pod:7387
33124 msgid "guestfs_umount_all"
33128 #: ../src/guestfs-actions.pod:7389
33132 " guestfs_umount_all (guestfs_h *g);\n"
33137 #: ../src/guestfs-actions.pod:7400
33138 msgid "guestfs_upload"
33142 #: ../src/guestfs-actions.pod:7402
33146 " guestfs_upload (guestfs_h *g,\n"
33147 " const char *filename,\n"
33148 " const char *remotefilename);\n"
33153 #: ../src/guestfs-actions.pod:7412
33154 msgid "See also C<guestfs_download>."
33158 #: ../src/guestfs-actions.pod:7423
33159 msgid "guestfs_upload_offset"
33163 #: ../src/guestfs-actions.pod:7425
33167 " guestfs_upload_offset (guestfs_h *g,\n"
33168 " const char *filename,\n"
33169 " const char *remotefilename,\n"
33170 " int64_t offset);\n"
33175 #: ../src/guestfs-actions.pod:7441
33177 "Note that there is no limit on the amount of data that can be uploaded with "
33178 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
33179 "full amount unless an error occurs."
33183 #: ../src/guestfs-actions.pod:7446
33184 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
33188 #: ../src/guestfs-actions.pod:7457
33189 msgid "guestfs_utimens"
33193 #: ../src/guestfs-actions.pod:7459
33197 " guestfs_utimens (guestfs_h *g,\n"
33198 " const char *path,\n"
33199 " int64_t atsecs,\n"
33200 " int64_t atnsecs,\n"
33201 " int64_t mtsecs,\n"
33202 " int64_t mtnsecs);\n"
33207 #: ../src/guestfs-actions.pod:7488 ../src/guestfs-structs.pod:175
33208 msgid "guestfs_version"
33212 #: ../src/guestfs-actions.pod:7490
33215 " struct guestfs_version *\n"
33216 " guestfs_version (guestfs_h *g);\n"
33221 #: ../src/guestfs-actions.pod:7518
33223 "I<Note:> Don't use this call to test for availability of features. In "
33224 "enterprise distributions we backport features from later versions into "
33225 "earlier versions, making this an unreliable way to test for features. Use "
33226 "C<guestfs_available> instead."
33230 #: ../src/guestfs-actions.pod:7524
33232 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
33233 "error. I<The caller must call C<guestfs_free_version> after use>."
33237 #: ../src/guestfs-actions.pod:7528
33238 msgid "(Added in 1.0.58)"
33239 msgstr "(Додано у 1.0.58)"
33242 #: ../src/guestfs-actions.pod:7530
33243 msgid "guestfs_vfs_label"
33247 #: ../src/guestfs-actions.pod:7532
33251 " guestfs_vfs_label (guestfs_h *g,\n"
33252 " const char *device);\n"
33257 #: ../src/guestfs-actions.pod:7541
33258 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
33262 #: ../src/guestfs-actions.pod:7546 ../src/guestfs-actions.pod:7583
33263 msgid "(Added in 1.3.18)"
33264 msgstr "(Додано у 1.3.18)"
33267 #: ../src/guestfs-actions.pod:7548
33268 msgid "guestfs_vfs_type"
33272 #: ../src/guestfs-actions.pod:7550
33276 " guestfs_vfs_type (guestfs_h *g,\n"
33277 " const char *device);\n"
33282 #: ../src/guestfs-actions.pod:7567
33283 msgid "guestfs_vfs_uuid"
33287 #: ../src/guestfs-actions.pod:7569
33291 " guestfs_vfs_uuid (guestfs_h *g,\n"
33292 " const char *device);\n"
33297 #: ../src/guestfs-actions.pod:7578
33298 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
33302 #: ../src/guestfs-actions.pod:7585
33303 msgid "guestfs_vg_activate"
33307 #: ../src/guestfs-actions.pod:7587
33311 " guestfs_vg_activate (guestfs_h *g,\n"
33313 " char *const *volgroups);\n"
33318 #: ../src/guestfs-actions.pod:7604
33319 msgid "guestfs_vg_activate_all"
33323 #: ../src/guestfs-actions.pod:7606
33327 " guestfs_vg_activate_all (guestfs_h *g,\n"
33328 " int activate);\n"
33333 #: ../src/guestfs-actions.pod:7619
33334 msgid "guestfs_vgcreate"
33338 #: ../src/guestfs-actions.pod:7621
33342 " guestfs_vgcreate (guestfs_h *g,\n"
33343 " const char *volgroup,\n"
33344 " char *const *physvols);\n"
33349 #: ../src/guestfs-actions.pod:7633
33350 msgid "guestfs_vglvuuids"
33354 #: ../src/guestfs-actions.pod:7635
33358 " guestfs_vglvuuids (guestfs_h *g,\n"
33359 " const char *vgname);\n"
33364 #: ../src/guestfs-actions.pod:7642
33366 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
33367 "associate logical volumes and volume groups."
33371 #: ../src/guestfs-actions.pod:7645
33372 msgid "See also C<guestfs_vgpvuuids>."
33376 #: ../src/guestfs-actions.pod:7653
33377 msgid "guestfs_vgpvuuids"
33381 #: ../src/guestfs-actions.pod:7655
33385 " guestfs_vgpvuuids (guestfs_h *g,\n"
33386 " const char *vgname);\n"
33391 #: ../src/guestfs-actions.pod:7662
33393 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
33394 "associate physical volumes and volume groups."
33398 #: ../src/guestfs-actions.pod:7665
33399 msgid "See also C<guestfs_vglvuuids>."
33403 #: ../src/guestfs-actions.pod:7673
33404 msgid "guestfs_vgremove"
33408 #: ../src/guestfs-actions.pod:7675
33412 " guestfs_vgremove (guestfs_h *g,\n"
33413 " const char *vgname);\n"
33418 #: ../src/guestfs-actions.pod:7688
33419 msgid "guestfs_vgrename"
33423 #: ../src/guestfs-actions.pod:7690
33427 " guestfs_vgrename (guestfs_h *g,\n"
33428 " const char *volgroup,\n"
33429 " const char *newvolgroup);\n"
33434 #: ../src/guestfs-actions.pod:7701
33435 msgid "guestfs_vgs"
33439 #: ../src/guestfs-actions.pod:7703
33443 " guestfs_vgs (guestfs_h *g);\n"
33448 #: ../src/guestfs-actions.pod:7712
33449 msgid "See also C<guestfs_vgs_full>."
33453 #: ../src/guestfs-actions.pod:7720
33454 msgid "guestfs_vgs_full"
33458 #: ../src/guestfs-actions.pod:7722
33461 " struct guestfs_lvm_vg_list *\n"
33462 " guestfs_vgs_full (guestfs_h *g);\n"
33467 #: ../src/guestfs-actions.pod:7728
33469 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
33470 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
33474 #: ../src/guestfs-actions.pod:7734
33475 msgid "guestfs_vgscan"
33479 #: ../src/guestfs-actions.pod:7736
33483 " guestfs_vgscan (guestfs_h *g);\n"
33488 #: ../src/guestfs-actions.pod:7746
33489 msgid "guestfs_vguuid"
33493 #: ../src/guestfs-actions.pod:7748
33497 " guestfs_vguuid (guestfs_h *g,\n"
33498 " const char *vgname);\n"
33503 #: ../src/guestfs-actions.pod:7759
33504 msgid "guestfs_wait_ready"
33508 #: ../src/guestfs-actions.pod:7761
33512 " guestfs_wait_ready (guestfs_h *g);\n"
33517 #: ../src/guestfs-actions.pod:7764
33519 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
33524 #: ../src/guestfs-actions.pod:7771
33525 msgid "This function is a no op."
33529 #: ../src/guestfs-actions.pod:7773
33531 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
33532 "calling C<guestfs_launch> to wait for the launch to complete. However this "
33533 "is no longer necessary because C<guestfs_launch> now does the waiting."
33537 #: ../src/guestfs-actions.pod:7778
33539 "If you see any calls to this function in code then you can just remove them, "
33540 "unless you want to retain compatibility with older versions of the API."
33544 #: ../src/guestfs-actions.pod:7786
33545 msgid "guestfs_wc_c"
33549 #: ../src/guestfs-actions.pod:7788
33553 " guestfs_wc_c (guestfs_h *g,\n"
33554 " const char *path);\n"
33559 #: ../src/guestfs-actions.pod:7799
33560 msgid "guestfs_wc_l"
33564 #: ../src/guestfs-actions.pod:7801
33568 " guestfs_wc_l (guestfs_h *g,\n"
33569 " const char *path);\n"
33574 #: ../src/guestfs-actions.pod:7812
33575 msgid "guestfs_wc_w"
33579 #: ../src/guestfs-actions.pod:7814
33583 " guestfs_wc_w (guestfs_h *g,\n"
33584 " const char *path);\n"
33589 #: ../src/guestfs-actions.pod:7825
33590 msgid "guestfs_write"
33594 #: ../src/guestfs-actions.pod:7827
33598 " guestfs_write (guestfs_h *g,\n"
33599 " const char *path,\n"
33600 " const char *content,\n"
33601 " size_t content_size);\n"
33606 #: ../src/guestfs-actions.pod:7836
33607 msgid "See also C<guestfs_write_append>."
33611 #: ../src/guestfs-actions.pod:7845
33612 msgid "guestfs_write_append"
33616 #: ../src/guestfs-actions.pod:7847
33620 " guestfs_write_append (guestfs_h *g,\n"
33621 " const char *path,\n"
33622 " const char *content,\n"
33623 " size_t content_size);\n"
33628 #: ../src/guestfs-actions.pod:7856
33629 msgid "See also C<guestfs_write>."
33633 #: ../src/guestfs-actions.pod:7865
33634 msgid "guestfs_write_file"
33635 msgstr "guestfs_write_file"
33638 #: ../src/guestfs-actions.pod:7867
33642 " guestfs_write_file (guestfs_h *g,\n"
33643 " const char *path,\n"
33644 " const char *content,\n"
33649 " guestfs_write_file (guestfs_h *g,\n"
33650 " const char *path,\n"
33651 " const char *content,\n"
33656 #: ../src/guestfs-actions.pod:7873
33658 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
33663 #: ../src/guestfs-actions.pod:7898
33664 msgid "guestfs_zegrep"
33665 msgstr "guestfs_zegrep"
33668 #: ../src/guestfs-actions.pod:7900
33672 " guestfs_zegrep (guestfs_h *g,\n"
33673 " const char *regex,\n"
33674 " const char *path);\n"
33678 " guestfs_zegrep (guestfs_h *g,\n"
33679 " const char *regex,\n"
33680 " const char *path);\n"
33684 #: ../src/guestfs-actions.pod:7917
33685 msgid "guestfs_zegrepi"
33686 msgstr "guestfs_zegrepi"
33689 #: ../src/guestfs-actions.pod:7919
33693 " guestfs_zegrepi (guestfs_h *g,\n"
33694 " const char *regex,\n"
33695 " const char *path);\n"
33699 " guestfs_zegrepi (guestfs_h *g,\n"
33700 " const char *regex,\n"
33701 " const char *path);\n"
33705 #: ../src/guestfs-actions.pod:7936
33706 msgid "guestfs_zero"
33707 msgstr "guestfs_zero"
33710 #: ../src/guestfs-actions.pod:7938
33714 " guestfs_zero (guestfs_h *g,\n"
33715 " const char *device);\n"
33719 " guestfs_zero (guestfs_h *g,\n"
33720 " const char *device);\n"
33724 #: ../src/guestfs-actions.pod:7952
33726 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
33727 "C<guestfs_is_zero_device>"
33731 #: ../src/guestfs-actions.pod:7964
33732 msgid "guestfs_zero_device"
33733 msgstr "guestfs_zero_device"
33736 #: ../src/guestfs-actions.pod:7966
33740 " guestfs_zero_device (guestfs_h *g,\n"
33741 " const char *device);\n"
33745 " guestfs_zero_device (guestfs_h *g,\n"
33746 " const char *device);\n"
33750 #: ../src/guestfs-actions.pod:7970
33752 "This command writes zeroes over the entire C<device>. Compare with "
33753 "C<guestfs_zero> which just zeroes the first few blocks of a device."
33757 #: ../src/guestfs-actions.pod:7988
33758 msgid "(Added in 1.3.1)"
33759 msgstr "(Додано у 1.3.1)"
33762 #: ../src/guestfs-actions.pod:7990
33763 msgid "guestfs_zerofree"
33764 msgstr "guestfs_zerofree"
33767 #: ../src/guestfs-actions.pod:7992
33771 " guestfs_zerofree (guestfs_h *g,\n"
33772 " const char *device);\n"
33776 " guestfs_zerofree (guestfs_h *g,\n"
33777 " const char *device);\n"
33781 #: ../src/guestfs-actions.pod:8011
33782 msgid "guestfs_zfgrep"
33783 msgstr "guestfs_zfgrep"
33786 #: ../src/guestfs-actions.pod:8013
33790 " guestfs_zfgrep (guestfs_h *g,\n"
33791 " const char *pattern,\n"
33792 " const char *path);\n"
33796 " guestfs_zfgrep (guestfs_h *g,\n"
33797 " const char *pattern,\n"
33798 " const char *path);\n"
33802 #: ../src/guestfs-actions.pod:8030
33803 msgid "guestfs_zfgrepi"
33804 msgstr "guestfs_zfgrepi"
33807 #: ../src/guestfs-actions.pod:8032
33811 " guestfs_zfgrepi (guestfs_h *g,\n"
33812 " const char *pattern,\n"
33813 " const char *path);\n"
33817 " guestfs_zfgrepi (guestfs_h *g,\n"
33818 " const char *pattern,\n"
33819 " const char *path);\n"
33823 #: ../src/guestfs-actions.pod:8049
33824 msgid "guestfs_zfile"
33825 msgstr "guestfs_zfile"
33828 #: ../src/guestfs-actions.pod:8051
33832 " guestfs_zfile (guestfs_h *g,\n"
33833 " const char *meth,\n"
33834 " const char *path);\n"
33838 " guestfs_zfile (guestfs_h *g,\n"
33839 " const char *meth,\n"
33840 " const char *path);\n"
33844 #: ../src/guestfs-actions.pod:8056
33846 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
33851 #: ../src/guestfs-actions.pod:8068
33853 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
33858 #: ../src/guestfs-actions.pod:8076
33859 msgid "guestfs_zgrep"
33860 msgstr "guestfs_zgrep"
33863 #: ../src/guestfs-actions.pod:8078
33867 " guestfs_zgrep (guestfs_h *g,\n"
33868 " const char *regex,\n"
33869 " const char *path);\n"
33873 " guestfs_zgrep (guestfs_h *g,\n"
33874 " const char *regex,\n"
33875 " const char *path);\n"
33879 #: ../src/guestfs-actions.pod:8095
33880 msgid "guestfs_zgrepi"
33881 msgstr "guestfs_zgrepi"
33884 #: ../src/guestfs-actions.pod:8097
33888 " guestfs_zgrepi (guestfs_h *g,\n"
33889 " const char *regex,\n"
33890 " const char *path);\n"
33894 " guestfs_zgrepi (guestfs_h *g,\n"
33895 " const char *regex,\n"
33896 " const char *path);\n"
33900 #: ../src/guestfs-availability.pod:3
33905 #: ../src/guestfs-availability.pod:5
33907 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
33908 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
33909 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
33910 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
33911 "L</guestfs_aug_save> L</guestfs_aug_set>"
33915 #: ../src/guestfs-availability.pod:21
33920 #: ../src/guestfs-availability.pod:23
33921 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
33925 #: ../src/guestfs-availability.pod:26
33930 #: ../src/guestfs-availability.pod:28
33931 msgid "The following functions: L</guestfs_grub_install>"
33935 #: ../src/guestfs-availability.pod:31
33937 msgstr "B<inotify>"
33940 #: ../src/guestfs-availability.pod:33
33942 "The following functions: L</guestfs_inotify_add_watch> L</"
33943 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
33944 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
33948 #: ../src/guestfs-availability.pod:41
33949 msgid "B<linuxfsuuid>"
33950 msgstr "B<linuxfsuuid>"
33953 #: ../src/guestfs-availability.pod:43
33955 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
33956 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
33960 #: ../src/guestfs-availability.pod:50
33961 msgid "B<linuxmodules>"
33962 msgstr "B<linuxmodules>"
33965 #: ../src/guestfs-availability.pod:52
33966 msgid "The following functions: L</guestfs_modprobe>"
33970 #: ../src/guestfs-availability.pod:55
33971 msgid "B<linuxxattrs>"
33972 msgstr "B<linuxxattrs>"
33975 #: ../src/guestfs-availability.pod:57
33977 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
33978 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
33979 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
33980 "guestfs_setxattr>"
33984 #: ../src/guestfs-availability.pod:68
33989 #: ../src/guestfs-availability.pod:70
33991 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
33992 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
33993 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
33997 #: ../src/guestfs-availability.pod:79
34002 #: ../src/guestfs-availability.pod:81
34004 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
34005 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
34006 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
34007 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
34008 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
34009 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
34010 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
34014 #: ../src/guestfs-availability.pod:104
34019 #: ../src/guestfs-availability.pod:106
34021 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
34022 "guestfs_mknod_b> L</guestfs_mknod_c>"
34026 #: ../src/guestfs-availability.pod:112
34031 #: ../src/guestfs-availability.pod:114
34032 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
34036 #: ../src/guestfs-availability.pod:117
34037 msgid "B<ntfsprogs>"
34038 msgstr "B<ntfsprogs>"
34041 #: ../src/guestfs-availability.pod:119
34043 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
34044 "L</guestfs_ntfsresize_size>"
34048 #: ../src/guestfs-availability.pod:124
34049 msgid "B<realpath>"
34050 msgstr "B<realpath>"
34053 #: ../src/guestfs-availability.pod:126
34054 msgid "The following functions: L</guestfs_realpath>"
34058 #: ../src/guestfs-availability.pod:129
34063 #: ../src/guestfs-availability.pod:131
34065 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
34066 "guestfs_scrub_freespace>"
34070 #: ../src/guestfs-availability.pod:136
34072 msgstr "B<selinux>"
34075 #: ../src/guestfs-availability.pod:138
34076 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
34080 #: ../src/guestfs-availability.pod:142
34085 #: ../src/guestfs-availability.pod:144
34086 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
34090 #: ../src/guestfs-availability.pod:148
34091 msgid "B<zerofree>"
34092 msgstr "B<zerofree>"
34095 #: ../src/guestfs-availability.pod:150
34096 msgid "The following functions: L</guestfs_zerofree>"
34100 #: ../src/guestfs-structs.pod:1
34101 msgid "guestfs_int_bool"
34105 #: ../src/guestfs-structs.pod:3
34108 " struct guestfs_int_bool {\n"
34116 #: ../src/guestfs-structs.pod:8
34119 " struct guestfs_int_bool_list {\n"
34120 " uint32_t len; /* Number of elements in list. */\n"
34121 " struct guestfs_int_bool *val; /* Elements. */\n"
34127 #: ../src/guestfs-structs.pod:13
34130 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34131 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
34136 #: ../src/guestfs-structs.pod:16
34137 msgid "guestfs_lvm_pv"
34141 #: ../src/guestfs-structs.pod:18
34144 " struct guestfs_lvm_pv {\n"
34145 " char *pv_name;\n"
34146 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34147 " char pv_uuid[32];\n"
34149 " uint64_t pv_size;\n"
34150 " uint64_t dev_size;\n"
34151 " uint64_t pv_free;\n"
34152 " uint64_t pv_used;\n"
34153 " char *pv_attr;\n"
34154 " int64_t pv_pe_count;\n"
34155 " int64_t pv_pe_alloc_count;\n"
34156 " char *pv_tags;\n"
34157 " uint64_t pe_start;\n"
34158 " int64_t pv_mda_count;\n"
34159 " uint64_t pv_mda_free;\n"
34165 #: ../src/guestfs-structs.pod:36
34168 " struct guestfs_lvm_pv_list {\n"
34169 " uint32_t len; /* Number of elements in list. */\n"
34170 " struct guestfs_lvm_pv *val; /* Elements. */\n"
34176 #: ../src/guestfs-structs.pod:41
34179 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
34180 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
34185 #: ../src/guestfs-structs.pod:44
34186 msgid "guestfs_lvm_vg"
34190 #: ../src/guestfs-structs.pod:46
34193 " struct guestfs_lvm_vg {\n"
34194 " char *vg_name;\n"
34195 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34196 " char vg_uuid[32];\n"
34198 " char *vg_attr;\n"
34199 " uint64_t vg_size;\n"
34200 " uint64_t vg_free;\n"
34201 " char *vg_sysid;\n"
34202 " uint64_t vg_extent_size;\n"
34203 " int64_t vg_extent_count;\n"
34204 " int64_t vg_free_count;\n"
34205 " int64_t max_lv;\n"
34206 " int64_t max_pv;\n"
34207 " int64_t pv_count;\n"
34208 " int64_t lv_count;\n"
34209 " int64_t snap_count;\n"
34210 " int64_t vg_seqno;\n"
34211 " char *vg_tags;\n"
34212 " int64_t vg_mda_count;\n"
34213 " uint64_t vg_mda_free;\n"
34219 #: ../src/guestfs-structs.pod:69
34222 " struct guestfs_lvm_vg_list {\n"
34223 " uint32_t len; /* Number of elements in list. */\n"
34224 " struct guestfs_lvm_vg *val; /* Elements. */\n"
34230 #: ../src/guestfs-structs.pod:74
34233 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
34234 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
34239 #: ../src/guestfs-structs.pod:77
34240 msgid "guestfs_lvm_lv"
34244 #: ../src/guestfs-structs.pod:79
34247 " struct guestfs_lvm_lv {\n"
34248 " char *lv_name;\n"
34249 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34250 " char lv_uuid[32];\n"
34251 " char *lv_attr;\n"
34252 " int64_t lv_major;\n"
34253 " int64_t lv_minor;\n"
34254 " int64_t lv_kernel_major;\n"
34255 " int64_t lv_kernel_minor;\n"
34256 " uint64_t lv_size;\n"
34257 " int64_t seg_count;\n"
34259 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
34260 " float snap_percent;\n"
34261 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
34262 " float copy_percent;\n"
34263 " char *move_pv;\n"
34264 " char *lv_tags;\n"
34265 " char *mirror_log;\n"
34266 " char *modules;\n"
34272 #: ../src/guestfs-structs.pod:101
34275 " struct guestfs_lvm_lv_list {\n"
34276 " uint32_t len; /* Number of elements in list. */\n"
34277 " struct guestfs_lvm_lv *val; /* Elements. */\n"
34283 #: ../src/guestfs-structs.pod:106
34286 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
34287 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
34292 #: ../src/guestfs-structs.pod:111
34295 " struct guestfs_stat {\n"
34299 " int64_t nlink;\n"
34304 " int64_t blksize;\n"
34305 " int64_t blocks;\n"
34306 " int64_t atime;\n"
34307 " int64_t mtime;\n"
34308 " int64_t ctime;\n"
34314 #: ../src/guestfs-structs.pod:127
34317 " struct guestfs_stat_list {\n"
34318 " uint32_t len; /* Number of elements in list. */\n"
34319 " struct guestfs_stat *val; /* Elements. */\n"
34325 #: ../src/guestfs-structs.pod:132
34328 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
34329 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
34334 #: ../src/guestfs-structs.pod:137
34337 " struct guestfs_statvfs {\n"
34338 " int64_t bsize;\n"
34339 " int64_t frsize;\n"
34340 " int64_t blocks;\n"
34341 " int64_t bfree;\n"
34342 " int64_t bavail;\n"
34343 " int64_t files;\n"
34344 " int64_t ffree;\n"
34345 " int64_t favail;\n"
34348 " int64_t namemax;\n"
34354 #: ../src/guestfs-structs.pod:151
34357 " struct guestfs_statvfs_list {\n"
34358 " uint32_t len; /* Number of elements in list. */\n"
34359 " struct guestfs_statvfs *val; /* Elements. */\n"
34365 #: ../src/guestfs-structs.pod:156
34368 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
34369 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
34374 #: ../src/guestfs-structs.pod:159
34375 msgid "guestfs_dirent"
34379 #: ../src/guestfs-structs.pod:161
34382 " struct guestfs_dirent {\n"
34391 #: ../src/guestfs-structs.pod:167
34394 " struct guestfs_dirent_list {\n"
34395 " uint32_t len; /* Number of elements in list. */\n"
34396 " struct guestfs_dirent *val; /* Elements. */\n"
34402 #: ../src/guestfs-structs.pod:172
34405 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
34406 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
34411 #: ../src/guestfs-structs.pod:177
34414 " struct guestfs_version {\n"
34415 " int64_t major;\n"
34416 " int64_t minor;\n"
34417 " int64_t release;\n"
34424 #: ../src/guestfs-structs.pod:184
34427 " struct guestfs_version_list {\n"
34428 " uint32_t len; /* Number of elements in list. */\n"
34429 " struct guestfs_version *val; /* Elements. */\n"
34435 #: ../src/guestfs-structs.pod:189
34438 " void guestfs_free_version (struct guestfs_free_version *);\n"
34439 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
34444 #: ../src/guestfs-structs.pod:192
34445 msgid "guestfs_xattr"
34449 #: ../src/guestfs-structs.pod:194
34452 " struct guestfs_xattr {\n"
34453 " char *attrname;\n"
34454 " /* The next two fields describe a byte array. */\n"
34455 " uint32_t attrval_len;\n"
34456 " char *attrval;\n"
34462 #: ../src/guestfs-structs.pod:201
34465 " struct guestfs_xattr_list {\n"
34466 " uint32_t len; /* Number of elements in list. */\n"
34467 " struct guestfs_xattr *val; /* Elements. */\n"
34473 #: ../src/guestfs-structs.pod:206
34476 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
34477 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
34482 #: ../src/guestfs-structs.pod:209
34483 msgid "guestfs_inotify_event"
34487 #: ../src/guestfs-structs.pod:211
34490 " struct guestfs_inotify_event {\n"
34491 " int64_t in_wd;\n"
34492 " uint32_t in_mask;\n"
34493 " uint32_t in_cookie;\n"
34494 " char *in_name;\n"
34500 #: ../src/guestfs-structs.pod:218
34503 " struct guestfs_inotify_event_list {\n"
34504 " uint32_t len; /* Number of elements in list. */\n"
34505 " struct guestfs_inotify_event *val; /* Elements. */\n"
34511 #: ../src/guestfs-structs.pod:223
34514 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
34515 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
34520 #: ../src/guestfs-structs.pod:226
34521 msgid "guestfs_partition"
34525 #: ../src/guestfs-structs.pod:228
34528 " struct guestfs_partition {\n"
34529 " int32_t part_num;\n"
34530 " uint64_t part_start;\n"
34531 " uint64_t part_end;\n"
34532 " uint64_t part_size;\n"
34538 #: ../src/guestfs-structs.pod:235
34541 " struct guestfs_partition_list {\n"
34542 " uint32_t len; /* Number of elements in list. */\n"
34543 " struct guestfs_partition *val; /* Elements. */\n"
34549 #: ../src/guestfs-structs.pod:240
34552 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
34553 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
34558 #: ../src/guestfs-structs.pod:243
34559 msgid "guestfs_application"
34563 #: ../src/guestfs-structs.pod:245
34566 " struct guestfs_application {\n"
34567 " char *app_name;\n"
34568 " char *app_display_name;\n"
34569 " int32_t app_epoch;\n"
34570 " char *app_version;\n"
34571 " char *app_release;\n"
34572 " char *app_install_path;\n"
34573 " char *app_trans_path;\n"
34574 " char *app_publisher;\n"
34575 " char *app_url;\n"
34576 " char *app_source_package;\n"
34577 " char *app_summary;\n"
34578 " char *app_description;\n"
34584 #: ../src/guestfs-structs.pod:260
34587 " struct guestfs_application_list {\n"
34588 " uint32_t len; /* Number of elements in list. */\n"
34589 " struct guestfs_application *val; /* Elements. */\n"
34595 #: ../src/guestfs-structs.pod:265
34598 " void guestfs_free_application (struct guestfs_free_application *);\n"
34599 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
34604 #: ../src/guestfs.pod:5
34605 msgid "guestfs - Library for accessing and modifying virtual machine images"
34607 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
34611 #: ../src/guestfs.pod:11
34614 " guestfs_h *g = guestfs_create ();\n"
34615 " guestfs_add_drive (g, \"guest.img\");\n"
34616 " guestfs_launch (g);\n"
34617 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34618 " guestfs_touch (g, \"/hello\");\n"
34619 " guestfs_umount (g, \"/\");\n"
34620 " guestfs_close (g);\n"
34623 " guestfs_h *g = guestfs_create ();\n"
34624 " guestfs_add_drive (g, \"guest.img\");\n"
34625 " guestfs_launch (g);\n"
34626 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34627 " guestfs_touch (g, \"/hello\");\n"
34628 " guestfs_umount (g, \"/\");\n"
34629 " guestfs_close (g);\n"
34633 #: ../src/guestfs.pod:25
34635 "Libguestfs is a library for accessing and modifying guest disk images. "
34636 "Amongst the things this is good for: making batch configuration changes to "
34637 "guests, getting disk used/free statistics (see also: virt-df), migrating "
34638 "between virtualization systems (see also: virt-p2v), performing partial "
34639 "backups, performing partial guest clones, cloning guests and changing "
34640 "registry/UUID/hostname info, and much else besides."
34644 #: ../src/guestfs.pod:33
34646 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
34647 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
34648 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
34653 #: ../src/guestfs.pod:38
34655 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
34656 "what filesystem is in each LV, etc.). It can also run commands in the "
34657 "context of the guest. Also you can access filesystems over FUSE."
34661 #: ../src/guestfs.pod:43
34663 "Libguestfs is a library that can be linked with C and C++ management "
34664 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
34665 "PHP, Erlang, Haskell or C#). You can also use it from shell scripts or the "
34670 #: ../src/guestfs.pod:48
34672 "You don't need to be root to use libguestfs, although obviously you do need "
34673 "enough permissions to access the disk images."
34677 #: ../src/guestfs.pod:51
34679 "Libguestfs is a large API because it can do many things. For a gentle "
34680 "introduction, please read the L</API OVERVIEW> section next."
34684 #: ../src/guestfs.pod:54
34686 "There are also some example programs in the L<guestfs-examples(3)> manual "
34691 #: ../src/guestfs.pod:57
34692 msgid "API OVERVIEW"
34696 #: ../src/guestfs.pod:59
34698 "This section provides a gentler overview of the libguestfs API. We also try "
34699 "to group API calls together, where that may not be obvious from reading "
34700 "about the individual calls in the main section of this manual."
34704 #: ../src/guestfs.pod:64
34709 #: ../src/guestfs.pod:66
34711 "Before you can use libguestfs calls, you have to create a handle. Then you "
34712 "must add at least one disk image to the handle, followed by launching the "
34713 "handle, then performing whatever operations you want, and finally closing "
34714 "the handle. By convention we use the single letter C<g> for the name of the "
34715 "handle variable, although of course you can use any name you want."
34719 #: ../src/guestfs.pod:73
34720 msgid "The general structure of all libguestfs-using programs looks like this:"
34724 #: ../src/guestfs.pod:76
34727 " guestfs_h *g = guestfs_create ();\n"
34730 " guestfs_h *g = guestfs_create ();\n"
34734 #: ../src/guestfs.pod:78
34737 " /* Call guestfs_add_drive additional times if there are\n"
34738 " * multiple disk images.\n"
34740 " guestfs_add_drive (g, \"guest.img\");\n"
34745 #: ../src/guestfs.pod:83
34748 " /* Most manipulation calls won't work until you've launched\n"
34749 " * the handle 'g'. You have to do this _after_ adding drives\n"
34750 " * and _before_ other commands.\n"
34752 " guestfs_launch (g);\n"
34757 #: ../src/guestfs.pod:89
34760 " /* Now you can examine what partitions, LVs etc are available.\n"
34762 " char **partitions = guestfs_list_partitions (g);\n"
34763 " char **logvols = guestfs_lvs (g);\n"
34766 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
34768 " char **partitions = guestfs_list_partitions (g);\n"
34769 " char **logvols = guestfs_lvs (g);\n"
34773 #: ../src/guestfs.pod:94
34776 " /* To access a filesystem in the image, you must mount it.\n"
34778 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34781 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
34783 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34787 #: ../src/guestfs.pod:98
34790 " /* Now you can perform filesystem actions on the guest\n"
34793 " guestfs_touch (g, \"/hello\");\n"
34796 " /* Тепер ви можете виконувати дії з файловою системою на\n"
34797 " * образі диска операційної системи.\n"
34799 " guestfs_touch (g, \"/hello\");\n"
34803 #: ../src/guestfs.pod:103
34806 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
34807 " * it is done automatically when you close the handle. See\n"
34808 " * discussion of autosync in this page.\n"
34810 " guestfs_sync (g);\n"
34815 #: ../src/guestfs.pod:109
34818 " /* Close the handle 'g'. */\n"
34819 " guestfs_close (g);\n"
34822 " /* Закрити дескриптор 'g'. */\n"
34823 " guestfs_close (g);\n"
34827 #: ../src/guestfs.pod:112
34829 "The code above doesn't include any error checking. In real code you should "
34830 "check return values carefully for errors. In general all functions that "
34831 "return integers return C<-1> on error, and all functions that return "
34832 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
34833 "how to handle errors, and consult the documentation for each function call "
34834 "below to see precisely how they return error indications. See L<guestfs-"
34835 "examples(3)> for fully worked examples."
34839 #: ../src/guestfs.pod:121
34840 msgid "DISK IMAGES"
34841 msgstr "ОБРАЗИ ДИСКІВ"
34844 #: ../src/guestfs.pod:123
34846 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
34847 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
34848 "actual block device, or simply an empty file of zeroes that you have created "
34849 "through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
34854 #: ../src/guestfs.pod:129
34856 "The call you should use in modern code for adding drives is L</"
34857 "guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
34858 "specifying that the format is raw, do:"
34862 #: ../src/guestfs.pod:133
34865 " guestfs_add_drive_opts (g, filename,\n"
34866 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34870 " guestfs_add_drive_opts (g, filename,\n"
34871 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34876 #: ../src/guestfs.pod:137
34877 msgid "You can add a disk read-only using:"
34878 msgstr "Ви можете додати диск у режимі лише читання:"
34881 #: ../src/guestfs.pod:139
34884 " guestfs_add_drive_opts (g, filename,\n"
34885 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34886 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34890 " guestfs_add_drive_opts (g, filename,\n"
34891 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34892 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34897 #: ../src/guestfs.pod:144
34899 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
34900 "libguestfs won't modify the file."
34904 #: ../src/guestfs.pod:147
34906 "Be extremely cautious if the disk image is in use, eg. if it is being used "
34907 "by a virtual machine. Adding it read-write will almost certainly cause disk "
34908 "corruption, but adding it read-only is safe."
34912 #: ../src/guestfs.pod:151
34914 "You must add at least one disk image, and you may add multiple disk images. "
34915 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
34916 "first one you added), C</dev/sdb> (for the second one you added), etc."
34920 #: ../src/guestfs.pod:156
34922 "Once L</guestfs_launch> has been called you cannot add any more images. You "
34923 "can call L</guestfs_list_devices> to get a list of the device names, in the "
34924 "order that you added them. See also L</BLOCK DEVICE NAMING> below."
34928 #: ../src/guestfs.pod:161
34930 msgstr "МОНТУВАННЯ"
34933 #: ../src/guestfs.pod:163
34935 "Before you can read or write files, create directories and so on in a disk "
34936 "image that contains filesystems, you have to mount those filesystems using "
34937 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that "
34938 "a disk image contains (for example) one partition with a filesystem on that "
34939 "partition, then you can mount it directly:"
34943 #: ../src/guestfs.pod:170
34946 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34949 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34953 #: ../src/guestfs.pod:172
34955 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
34956 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
34957 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
34958 "that these are libguestfs virtual devices, and are nothing to do with host "
34963 #: ../src/guestfs.pod:178
34965 "If you are given a disk image and you don't know what it contains then you "
34966 "have to find out. Libguestfs can do that too: use L</"
34967 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
34968 "LVs, and either try mounting each to see what is mountable, or else examine "
34969 "them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
34970 "filesystems, use L</guestfs_list_filesystems>."
34974 #: ../src/guestfs.pod:186
34976 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
34977 "L</INSPECTION> below). But you might find it easier to look at higher level "
34978 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
34982 #: ../src/guestfs.pod:191
34984 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
34985 "several other variations of the C<guestfs_mount_*> call."
34989 #: ../src/guestfs.pod:194
34990 msgid "FILESYSTEM ACCESS AND MODIFICATION"
34991 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
34994 #: ../src/guestfs.pod:196
34996 "The majority of the libguestfs API consists of fairly low-level calls for "
34997 "accessing and modifying the files, directories, symlinks etc on mounted "
34998 "filesystems. There are over a hundred such calls which you can find listed "
34999 "in detail below in this man page, and we don't even pretend to cover them "
35000 "all in this overview."
35004 #: ../src/guestfs.pod:202
35006 "Specify filenames as full paths, starting with C<\"/\"> and including the "
35009 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
35010 "точкою монтування."
35013 #: ../src/guestfs.pod:205
35015 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
35016 "the file called C<\"etc/passwd\"> then you could do:"
35018 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
35019 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
35023 #: ../src/guestfs.pod:208
35026 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35029 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35033 #: ../src/guestfs.pod:210
35035 "This would return C<data> as a newly allocated buffer containing the full "
35036 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
35037 "or C<NULL> if there was an error."
35041 #: ../src/guestfs.pod:214
35043 "As another example, to create a top-level directory on that filesystem "
35044 "called C<\"var\"> you would do:"
35048 #: ../src/guestfs.pod:217
35051 " guestfs_mkdir (g, \"/var\");\n"
35054 " guestfs_mkdir (g, \"/var\");\n"
35058 #: ../src/guestfs.pod:219
35059 msgid "To create a symlink you could do:"
35060 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
35063 #: ../src/guestfs.pod:221
35066 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35067 " \"/etc/rc3.d/S30portmap\");\n"
35070 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35071 " \"/etc/rc3.d/S30portmap\");\n"
35075 #: ../src/guestfs.pod:224
35077 "Libguestfs will reject attempts to use relative paths and there is no "
35078 "concept of a current working directory."
35082 #: ../src/guestfs.pod:227
35084 "Libguestfs can return errors in many situations: for example if the "
35085 "filesystem isn't writable, or if a file or directory that you requested "
35086 "doesn't exist. If you are using the C API (documented here) you have to "
35087 "check for those error conditions after each call. (Other language bindings "
35088 "turn these errors into exceptions)."
35092 #: ../src/guestfs.pod:233
35094 "File writes are affected by the per-handle umask, set by calling L</"
35095 "guestfs_umask> and defaulting to 022. See L</UMASK>."
35099 #: ../src/guestfs.pod:236
35100 msgid "PARTITIONING"
35101 msgstr "ПОДІЛ НА РОЗДІЛИ"
35104 #: ../src/guestfs.pod:238
35106 "Libguestfs contains API calls to read, create and modify partition tables on "
35111 #: ../src/guestfs.pod:241
35113 "In the common case where you want to create a single partition covering the "
35114 "whole disk, you should use the L</guestfs_part_disk> call:"
35118 #: ../src/guestfs.pod:245
35121 " const char *parttype = \"mbr\";\n"
35122 " if (disk_is_larger_than_2TB)\n"
35123 " parttype = \"gpt\";\n"
35124 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35127 " const char *parttype = \"mbr\";\n"
35128 " if (disk_is_larger_than_2TB)\n"
35129 " parttype = \"gpt\";\n"
35130 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35134 #: ../src/guestfs.pod:250
35136 "Obviously this effectively wipes anything that was on that disk image before."
35140 #: ../src/guestfs.pod:253
35145 #: ../src/guestfs.pod:255
35147 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
35148 "guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense unless "
35149 "you familiarize yourself with the concepts of physical volumes, volume "
35150 "groups and logical volumes."
35154 #: ../src/guestfs.pod:260
35156 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
35157 "tldp.org/HOWTO/LVM-HOWTO/>."
35161 #: ../src/guestfs.pod:263
35162 msgid "DOWNLOADING"
35163 msgstr "ОТРИМАННЯ ДАНИХ"
35166 #: ../src/guestfs.pod:265
35168 "Use L</guestfs_cat> to download small, text only files. This call is "
35169 "limited to files which are less than 2 MB and which cannot contain any ASCII "
35170 "NUL (C<\\0>) characters. However the API is very simple to use."
35174 #: ../src/guestfs.pod:269
35176 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
35177 "bit data, since it returns a (pointer, size) pair. However it is still "
35178 "limited to \"small\" files, less than 2 MB."
35182 #: ../src/guestfs.pod:273
35184 "L</guestfs_download> can be used to download any file, with no limits on "
35185 "content or size (even files larger than 4 GB)."
35189 #: ../src/guestfs.pod:276
35191 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
35195 #: ../src/guestfs.pod:279
35197 msgstr "ВИВАНТАЖЕННЯ"
35200 #: ../src/guestfs.pod:281
35202 "It's often the case that you want to write a file or files to the disk image."
35206 #: ../src/guestfs.pod:284
35208 "To write a small file with fixed content, use L</guestfs_write>. To create "
35209 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
35210 "guestfs_fallocate64> (with all disk blocks allocated). There are a variety "
35211 "of other functions for creating test files, for example L</guestfs_fill> and "
35212 "L</guestfs_fill_pattern>."
35216 #: ../src/guestfs.pod:290
35218 "To upload a single file, use L</guestfs_upload>. This call has no limits on "
35219 "file content or size (even files larger than 4 GB)."
35223 #: ../src/guestfs.pod:293
35225 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
35229 #: ../src/guestfs.pod:295
35231 "However the fastest way to upload I<large numbers of arbitrary files> is to "
35232 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
35233 ">), then attach this using L</guestfs_add_drive_ro>. If you add the drive "
35234 "in a predictable way (eg. adding it last after all other drives) then you "
35235 "can get the device name from L</guestfs_list_devices> and mount it directly "
35236 "using L</guestfs_mount_ro>. Note that squashfs images are sometimes non-"
35237 "portable between kernel versions, and they don't support labels or UUIDs. "
35238 "If you want to pre-build an image or you need to mount it using a label or "
35239 "UUID, use an ISO image instead."
35243 #: ../src/guestfs.pod:306
35245 msgstr "КОПІЮВАННЯ"
35248 #: ../src/guestfs.pod:308
35250 "There are various different commands for copying between files and devices "
35251 "and in and out of the guest filesystem. These are summarised in the table "
35256 #: ../src/guestfs.pod:314
35257 msgid "B<file> to B<file>"
35258 msgstr "B<файл> у B<файл>"
35261 #: ../src/guestfs.pod:316
35263 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
35264 "directories recursively."
35268 #: ../src/guestfs.pod:319
35269 msgid "B<file or device> to B<file or device>"
35270 msgstr "B<файл або пристрій> у B<файл або пристрій>"
35273 #: ../src/guestfs.pod:321
35275 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
35276 "devices in the guest."
35280 #: ../src/guestfs.pod:324
35281 msgid "Example: duplicate the contents of an LV:"
35285 #: ../src/guestfs.pod:326
35288 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
35291 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
35295 #: ../src/guestfs.pod:328
35297 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
35298 "(C</dev/VG/Original>). To copy less than the whole source device, use L</"
35299 "guestfs_copy_size>."
35303 #: ../src/guestfs.pod:332
35304 msgid "B<file on the host> to B<file or device>"
35308 #: ../src/guestfs.pod:334
35309 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
35313 #: ../src/guestfs.pod:336
35314 msgid "B<file or device> to B<file on the host>"
35318 #: ../src/guestfs.pod:338
35319 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
35323 #: ../src/guestfs.pod:342
35324 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
35328 #: ../src/guestfs.pod:344
35330 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
35331 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
35332 "appears you can only upload and download to files. However many Un*x-like "
35333 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
35334 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
35335 "and arbitrary file descriptor N."
35339 #: ../src/guestfs.pod:352
35340 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
35344 #: ../src/guestfs.pod:355
35347 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35350 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35354 #: ../src/guestfs.pod:357
35355 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
35359 #: ../src/guestfs.pod:359
35362 " char devfd[64];\n"
35363 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35364 " guestfs_tar_out (g, \"/\", devfd);\n"
35367 " char devfd[64];\n"
35368 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35369 " guestfs_tar_out (g, \"/\", devfd);\n"
35373 #: ../src/guestfs.pod:363
35374 msgid "LISTING FILES"
35375 msgstr "СПИСКИ ФАЙЛІВ"
35378 #: ../src/guestfs.pod:365
35380 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
35381 "L<guestfish(1)>-equivalent command C<ll>)."
35385 #: ../src/guestfs.pod:368
35387 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
35388 "programs, as a flat list of strings."
35392 #: ../src/guestfs.pod:371
35394 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
35395 "directory, plus additional information about each one. It is more "
35396 "equivalent to using the L<readdir(3)> call on a local filesystem."
35400 #: ../src/guestfs.pod:375
35402 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
35406 #: ../src/guestfs.pod:378
35407 msgid "RUNNING COMMANDS"
35408 msgstr "ВИКОНАННЯ КОМАНД"
35411 #: ../src/guestfs.pod:380
35413 "Although libguestfs is primarily an API for manipulating files inside guest "
35414 "images, we also provide some limited facilities for running commands inside "
35419 #: ../src/guestfs.pod:384
35420 msgid "There are many limitations to this:"
35424 #: ../src/guestfs.pod:390
35426 "The kernel version that the command runs under will be different from what "
35431 #: ../src/guestfs.pod:395
35433 "If the command needs to communicate with daemons, then most likely they "
35434 "won't be running."
35438 #: ../src/guestfs.pod:400
35439 msgid "The command will be running in limited memory."
35443 #: ../src/guestfs.pod:404
35445 "The network may not be available unless you enable it (see L</"
35446 "guestfs_set_network>)."
35450 #: ../src/guestfs.pod:409
35451 msgid "Only supports Linux guests (not Windows, BSD, etc)."
35455 #: ../src/guestfs.pod:413
35457 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
35461 #: ../src/guestfs.pod:418
35463 "For SELinux guests, you may need to enable SELinux and load policy first. "
35464 "See L</SELINUX> in this manpage."
35468 #: ../src/guestfs.pod:423
35470 "I<Security:> It is not safe to run commands from untrusted, possibly "
35471 "malicious guests. These commands may attempt to exploit your program by "
35472 "sending unexpected output. They could also try to exploit the Linux kernel "
35473 "or qemu provided by the libguestfs appliance. They could use the network "
35474 "provided by the libguestfs appliance to bypass ordinary network partitions "
35475 "and firewalls. They could use the elevated privileges or different SELinux "
35476 "context of your program to their advantage."
35480 #: ../src/guestfs.pod:432
35482 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
35483 "(a script which runs when the guest next boots normally), and to have this "
35484 "script run the commands you want in the normal context of the running guest, "
35485 "network security and so on. For information about other security issues, "
35486 "see L</SECURITY>."
35490 #: ../src/guestfs.pod:440
35492 "The two main API calls to run commands are L</guestfs_command> and L</"
35493 "guestfs_sh> (there are also variations)."
35497 #: ../src/guestfs.pod:443
35499 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
35500 "shell globs, redirections, etc will work."
35504 #: ../src/guestfs.pod:446
35505 msgid "CONFIGURATION FILES"
35506 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
35509 #: ../src/guestfs.pod:448
35511 "To read and write configuration files in Linux guest filesystems, we "
35512 "strongly recommend using Augeas. For example, Augeas understands how to "
35513 "read and write, say, a Linux shadow password file or X.org configuration "
35514 "file, and so avoids you having to write that code."
35518 #: ../src/guestfs.pod:453
35520 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
35521 "document Augeas itself here because there is excellent documentation on the "
35522 "L<http://augeas.net/> website."
35526 #: ../src/guestfs.pod:457
35528 "If you don't want to use Augeas (you fool!) then try calling L</"
35529 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
35534 #: ../src/guestfs.pod:461
35539 #: ../src/guestfs.pod:463
35541 "We support SELinux guests. To ensure that labeling happens correctly in "
35542 "SELinux guests, you need to enable SELinux and load the guest's policy:"
35546 #: ../src/guestfs.pod:471
35547 msgid "Before launching, do:"
35551 #: ../src/guestfs.pod:473
35554 " guestfs_set_selinux (g, 1);\n"
35557 " guestfs_set_selinux (g, 1);\n"
35561 #: ../src/guestfs.pod:477
35563 "After mounting the guest's filesystem(s), load the policy. This is best "
35564 "done by running the L<load_policy(8)> command in the guest itself:"
35568 #: ../src/guestfs.pod:481
35571 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35574 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35578 #: ../src/guestfs.pod:483
35580 "(Older versions of C<load_policy> require you to specify the name of the "
35585 #: ../src/guestfs.pod:488
35587 "Optionally, set the security context for the API. The correct security "
35588 "context to use can only be known by inspecting the guest. As an example:"
35592 #: ../src/guestfs.pod:492
35595 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35598 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35602 #: ../src/guestfs.pod:496
35603 msgid "This will work for running commands and editing existing files."
35607 #: ../src/guestfs.pod:498
35609 "When new files are created, you may need to label them explicitly, for "
35610 "example by running the external command C<restorecon pathname>."
35614 #: ../src/guestfs.pod:502
35619 #: ../src/guestfs.pod:504
35621 "Certain calls are affected by the current file mode creation mask (the "
35622 "\"umask\"). In particular ones which create files or directories, such as "
35623 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
35624 "either the default mode that the file is created with or modifies the mode "
35629 #: ../src/guestfs.pod:510
35631 "The default umask is C<022>, so files are created with modes such as C<0644> "
35632 "and directories with C<0755>."
35636 #: ../src/guestfs.pod:513
35638 "There are two ways to avoid being affected by umask. Either set umask to 0 "
35639 "(call C<guestfs_umask (g, 0)> early after launching). Or call L</"
35640 "guestfs_chmod> after creating each file or directory."
35644 #: ../src/guestfs.pod:517
35645 msgid "For more information about umask, see L<umask(2)>."
35649 #: ../src/guestfs.pod:521
35651 "Libguestfs allows you to access Linux guests which have been encrypted using "
35652 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
35653 "standard. This includes nearly all whole disk encryption systems used by "
35654 "modern Linux guests."
35658 #: ../src/guestfs.pod:527
35660 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
35661 "returns the string C<crypto_LUKS>)."
35665 #: ../src/guestfs.pod:530
35667 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
35668 "will require the passphrase!"
35672 #: ../src/guestfs.pod:533
35674 "Opening a LUKS device creates a new device mapper device called C</dev/"
35675 "mapper/mapname> (where C<mapname> is the string you supply to L</"
35676 "guestfs_luks_open>). Reads and writes to this mapper device are decrypted "
35677 "from and encrypted to the underlying block device respectively."
35681 #: ../src/guestfs.pod:539
35683 "LVM volume groups on the device can be made visible by calling L</"
35684 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical volume"
35685 "(s) can now be mounted in the usual way."
35689 #: ../src/guestfs.pod:543
35691 "Use the reverse process to close a LUKS device. Unmount any logical volumes "
35692 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
35693 "[\"/dev/VG\"])>. Then close the mapper device by calling L</"
35694 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
35695 "underlying encrypted block device)."
35699 #: ../src/guestfs.pod:550
35704 #: ../src/guestfs.pod:552
35706 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
35707 "contains operating systems, an install CD or a live CD. (These APIs used to "
35708 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
35709 "version 1.5.3 the most frequently used part of this library has been "
35710 "rewritten in C and moved into the core code)."
35714 #: ../src/guestfs.pod:559
35716 "Add all disks belonging to the unknown virtual machine and call L</"
35717 "guestfs_launch> in the usual way."
35721 #: ../src/guestfs.pod:562
35723 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
35724 "and certain heuristics, and returns a list of operating systems that were "
35725 "found. An empty list means none were found. A single element is the root "
35726 "filesystem of the operating system. For dual- or multi-boot guests, "
35727 "multiple roots can be returned, each one corresponding to a separate "
35728 "operating system. (Multi-boot virtual machines are extremely rare in the "
35729 "world of virtualization, but since this scenario can happen, we have built "
35730 "libguestfs to deal with it.)"
35734 #: ../src/guestfs.pod:571
35736 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
35737 "to get additional details about that operating system. For example, call L</"
35738 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
35739 "Windows and Linux-based operating systems respectively."
35743 #: ../src/guestfs.pod:577
35745 "Un*x-like and Linux-based operating systems usually consist of several "
35746 "filesystems which are mounted at boot time (for example, a separate boot "
35747 "partition mounted on C</boot>). The inspection rules are able to detect how "
35748 "filesystems correspond to mount points. Call "
35749 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
35750 "hash table like this example:"
35754 #: ../src/guestfs.pod:584
35757 " /boot => /dev/sda1\n"
35758 " / => /dev/vg_guest/lv_root\n"
35759 " /usr => /dev/vg_guest/lv_usr\n"
35762 " /boot => /dev/sda1\n"
35763 " / => /dev/vg_guest/lv_root\n"
35764 " /usr => /dev/vg_guest/lv_usr\n"
35768 #: ../src/guestfs.pod:588
35770 "The caller can then make calls to L</guestfs_mount_options> to mount the "
35771 "filesystems as suggested."
35775 #: ../src/guestfs.pod:591
35777 "Be careful to mount filesystems in the right order (eg. C</> before C</"
35778 "usr>). Sorting the keys of the hash by length, shortest first, should work."
35782 #: ../src/guestfs.pod:595
35784 "Inspection currently only works for some common operating systems. "
35785 "Contributors are welcome to send patches for other operating systems that we "
35786 "currently cannot detect."
35790 #: ../src/guestfs.pod:599
35792 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
35793 "for more details. The L</guestfs_inspect_os> function just ignores any "
35794 "encrypted devices."
35798 #: ../src/guestfs.pod:603
35800 "A note on the implementation: The call L</guestfs_inspect_os> performs "
35801 "inspection and caches the results in the guest handle. Subsequent calls to "
35802 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
35803 "read the disks. If you change the content of the guest disks, you can redo "
35804 "inspection by calling L</guestfs_inspect_os> again. (L</"
35805 "guestfs_inspect_list_applications> works a little differently from the other "
35806 "calls and does read the disks. See documentation for that function for "
35811 #: ../src/guestfs.pod:612
35812 msgid "INSPECTING INSTALL DISKS"
35816 #: ../src/guestfs.pod:614
35818 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
35823 #: ../src/guestfs.pod:617
35825 "Call L</guestfs_inspect_get_format> to return the format of the operating "
35826 "system, which currently can be C<installed> (a regular operating system) or "
35827 "C<installer> (some sort of install disk)."
35831 #: ../src/guestfs.pod:621
35833 "Further information is available about the operating system that can be "
35834 "installed using the regular inspection APIs like L</"
35835 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
35839 #: ../src/guestfs.pod:626
35841 "Some additional information specific to installer disks is also available "
35842 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
35843 "guestfs_inspect_is_multipart> calls."
35847 #: ../src/guestfs.pod:631
35848 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
35852 #: ../src/guestfs.pod:633
35854 "Libguestfs can mount NTFS partitions. It does this using the L<http://www."
35855 "ntfs-3g.org/> driver."
35859 #: ../src/guestfs.pod:636
35860 msgid "DRIVE LETTERS AND PATHS"
35861 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
35864 #: ../src/guestfs.pod:638
35866 "DOS and Windows still use drive letters, and the filesystems are always "
35867 "treated as case insensitive by Windows itself, and therefore you might find "
35868 "a Windows configuration file referring to a path like C<c:\\windows"
35869 "\\system32>. When the filesystem is mounted in libguestfs, that directory "
35870 "might be referred to as C</WINDOWS/System32>."
35874 #: ../src/guestfs.pod:644
35876 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
35877 "L</guestfs_inspect_get_drive_mappings>)"
35881 #: ../src/guestfs.pod:647
35883 "Dealing with separator characters (backslash vs forward slash) is outside "
35884 "the scope of libguestfs, but usually a simple character replacement will "
35889 #: ../src/guestfs.pod:651
35891 "To resolve the case insensitivity of paths, call L</"
35892 "guestfs_case_sensitive_path>."
35896 #: ../src/guestfs.pod:654
35897 msgid "ACCESSING THE WINDOWS REGISTRY"
35898 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
35901 #: ../src/guestfs.pod:656
35903 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
35904 "files, through the library C<hivex> which is part of the libguestfs project "
35905 "although ships as a separate tarball. You have to locate and download the "
35906 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
35907 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
35908 "reg(1)> for more help on this issue."
35912 #: ../src/guestfs.pod:664
35913 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
35914 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
35917 #: ../src/guestfs.pod:666
35919 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
35920 "provide something which looks like a Linux symlink. The way it tries to do "
35921 "the rewriting is described here:"
35925 #: ../src/guestfs.pod:670
35927 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
35930 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
35934 #: ../src/guestfs.pod:672
35936 "The essential problem is that ntfs-3g simply does not have enough "
35937 "information to do a correct job. NTFS links can contain drive letters and "
35938 "references to external device GUIDs that ntfs-3g has no way of resolving. "
35939 "It is almost certainly the case that libguestfs callers should ignore what "
35940 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
35944 #: ../src/guestfs.pod:679
35946 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
35947 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
35948 "attribute, and read the raw reparse data from that (you can find the format "
35949 "documented in various places around the web)."
35953 #: ../src/guestfs.pod:684
35954 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
35958 #: ../src/guestfs.pod:686
35960 "There are other useful extended attributes that can be read from ntfs-3g "
35961 "filesystems (using L</guestfs_getxattr>). See:"
35965 #: ../src/guestfs.pod:689
35967 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35969 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35972 #: ../src/guestfs.pod:691
35973 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
35974 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
35977 #: ../src/guestfs.pod:693
35979 "Although we don't want to discourage you from using the C API, we will "
35980 "mention here that the same API is also available in other languages."
35984 #: ../src/guestfs.pod:696
35986 "The API is broadly identical in all supported languages. This means that "
35987 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
35988 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
35989 "OCaml. In other words, a straightforward, predictable isomorphism between "
35994 #: ../src/guestfs.pod:702
35996 "Error messages are automatically transformed into exceptions if the language "
36001 #: ../src/guestfs.pod:705
36003 "We don't try to \"object orientify\" parts of the API in OO languages, "
36004 "although contributors are welcome to write higher level APIs above what we "
36005 "provide in their favourite languages if they wish."
36009 #: ../src/guestfs.pod:711
36014 #: ../src/guestfs.pod:713
36016 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
36017 "identical to the C API. C++ classes and exceptions are not used."
36021 #: ../src/guestfs.pod:717
36026 #: ../src/guestfs.pod:719
36028 "The C# bindings are highly experimental. Please read the warnings at the "
36029 "top of C<csharp/Libguestfs.cs>."
36033 #: ../src/guestfs.pod:722
36038 #: ../src/guestfs.pod:724
36039 msgid "See L<guestfs-erlang(3)>."
36043 #: ../src/guestfs.pod:726
36045 msgstr "B<Haskell>"
36048 #: ../src/guestfs.pod:728
36050 "This is the only language binding that is working but incomplete. Only "
36051 "calls which return simple integers have been bound in Haskell, and we are "
36052 "looking for help to complete this binding."
36056 #: ../src/guestfs.pod:732
36061 #: ../src/guestfs.pod:734
36063 "Full documentation is contained in the Javadoc which is distributed with "
36064 "libguestfs. For examples, see L<guestfs-java(3)>."
36068 #: ../src/guestfs.pod:737
36073 #: ../src/guestfs.pod:739
36074 msgid "See L<guestfs-ocaml(3)>."
36075 msgstr "Див. L<guestfs-ocaml(3)>."
36078 #: ../src/guestfs.pod:741
36083 #: ../src/guestfs.pod:743
36084 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
36085 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
36088 #: ../src/guestfs.pod:745
36093 #: ../src/guestfs.pod:747
36095 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
36096 "the php-libguestfs package for your distribution."
36100 #: ../src/guestfs.pod:750
36101 msgid "The PHP binding only works correctly on 64 bit machines."
36105 #: ../src/guestfs.pod:752
36110 #: ../src/guestfs.pod:754
36111 msgid "See L<guestfs-python(3)>."
36112 msgstr "Див. L<guestfs-python(3)>."
36115 #: ../src/guestfs.pod:756
36120 #: ../src/guestfs.pod:758
36121 msgid "See L<guestfs-ruby(3)>."
36122 msgstr "Див. L<guestfs-ruby(3)>."
36125 #: ../src/guestfs.pod:760
36126 msgid "B<shell scripts>"
36127 msgstr "B<скрипти оболонки>"
36130 #: ../src/guestfs.pod:762
36131 msgid "See L<guestfish(1)>."
36132 msgstr "Див. L<guestfish(1)>."
36135 #: ../src/guestfs.pod:766
36136 msgid "LIBGUESTFS GOTCHAS"
36140 #: ../src/guestfs.pod:768
36142 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
36143 "system [...] that works in the way it is documented but is counterintuitive "
36144 "and almost invites mistakes.\""
36148 #: ../src/guestfs.pod:772
36150 "Since we developed libguestfs and the associated tools, there are several "
36151 "things we would have designed differently, but are now stuck with for "
36152 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
36153 "release, you can expect these to change. Beware of them."
36157 #: ../src/guestfs.pod:780
36158 msgid "Autosync / forgetting to sync."
36162 #: ../src/guestfs.pod:782
36164 "I<Update:> Autosync is enabled by default for all API users starting from "
36165 "libguestfs 1.5.24. This section only applies to older versions."
36169 #: ../src/guestfs.pod:785
36171 "When modifying a filesystem from C or another language, you B<must> unmount "
36172 "all filesystems and call L</guestfs_sync> explicitly before you close the "
36173 "libguestfs handle. You can also call:"
36177 #: ../src/guestfs.pod:789
36180 " guestfs_set_autosync (g, 1);\n"
36183 " guestfs_set_autosync (g, 1);\n"
36187 #: ../src/guestfs.pod:791
36189 "to have the unmount/sync done automatically for you when the handle 'g' is "
36190 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
36194 #: ../src/guestfs.pod:795
36196 "If you forget to do this, then it is entirely possible that your changes "
36197 "won't be written out, or will be partially written, or (very rarely) that "
36198 "you'll get disk corruption."
36202 #: ../src/guestfs.pod:799
36204 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
36205 "guestfish scripts that forget to sync will work just fine, which can make "
36206 "this very puzzling if you are trying to debug a problem."
36210 #: ../src/guestfs.pod:803
36211 msgid "Mount option C<-o sync> should not be the default."
36215 #: ../src/guestfs.pod:805
36217 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
36218 "libguestfs 1.13.16. This section only applies to older versions."
36222 #: ../src/guestfs.pod:808
36224 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
36225 "However C<-o sync> does not add any reliability benefit, but does have a "
36226 "very large performance impact."
36230 #: ../src/guestfs.pod:812
36232 "The work around is to use L</guestfs_mount_options> and set the mount "
36233 "options that you actually want to use."
36237 #: ../src/guestfs.pod:815
36238 msgid "Read-only should be the default."
36242 #: ../src/guestfs.pod:817
36244 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
36245 "specify I<--rw> if you want to make changes to the image."
36249 #: ../src/guestfs.pod:820
36250 msgid "This would reduce the potential to corrupt live VM images."
36254 #: ../src/guestfs.pod:822
36256 "Note that many filesystems change the disk when you just mount and unmount, "
36257 "even if you didn't perform any writes. You need to use L</"
36258 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
36262 #: ../src/guestfs.pod:826
36263 msgid "guestfish command line is hard to use."
36267 #: ../src/guestfs.pod:828
36269 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
36270 "examination). It tries to run a guestfish command C<disk.img> which doesn't "
36271 "exist, so it fails. In earlier versions of guestfish the error message was "
36272 "also unintuitive, but we have corrected this since. Like the Bourne shell, "
36273 "we should have used C<guestfish -c command> to run commands."
36277 #: ../src/guestfs.pod:835
36278 msgid "guestfish megabyte modifiers don't work right on all commands"
36282 #: ../src/guestfs.pod:837
36284 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
36285 "other modifiers). What guestfish actually does is to multiply the number "
36286 "part by the modifier part and pass the result to the C API. However this "
36287 "doesn't work for a few APIs which aren't expecting bytes, but are already "
36288 "expecting some other unit (eg. megabytes)."
36292 #: ../src/guestfs.pod:844
36293 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
36297 #: ../src/guestfs.pod:846
36300 " lvcreate LV VG 100M\n"
36303 " lvcreate LV VG 100M\n"
36307 #: ../src/guestfs.pod:848
36309 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
36310 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
36311 "megabytes * megabytes) logical volume. The error message you get from this "
36312 "is also a little obscure."
36316 #: ../src/guestfs.pod:853
36318 "This could be fixed in the generator by specially marking parameters and "
36319 "return values which take bytes or other units."
36323 #: ../src/guestfs.pod:856
36324 msgid "Ambiguity between devices and paths"
36328 #: ../src/guestfs.pod:858
36330 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
36331 "sdb2>) and a similar pathname. A file might just happen to be called "
36332 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
36336 #: ../src/guestfs.pod:863
36338 "In the current API we usually resolve this ambiguity by having two separate "
36339 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
36340 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
36341 "detecting if the path supplied begins with C</dev/>."
36345 #: ../src/guestfs.pod:869
36347 "To avoid both the ambiguity and the need to duplicate some calls, we could "
36348 "make paths/devices into structured names. One way to do this would be to "
36349 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
36350 "aspect of grub. Another way would be to use a structured type, equivalent "
36351 "to this OCaml type:"
36355 #: ../src/guestfs.pod:875
36358 " type path = Path of string | Device of int | Partition of int * int\n"
36363 #: ../src/guestfs.pod:877
36364 msgid "which would allow you to pass arguments like:"
36368 #: ../src/guestfs.pod:879
36371 " Path \"/foo/bar\"\n"
36372 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
36373 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
36374 " Path \"/dev/sdb2\" (* not a device *)\n"
36379 #: ../src/guestfs.pod:884
36381 "As you can see there are still problems to resolve even with this "
36382 "representation. Also consider how it might work in guestfish."
36386 #: ../src/guestfs.pod:889
36387 msgid "KEYS AND PASSPHRASES"
36388 msgstr "КЛЮЧІ І ПАРОЛІ"
36391 #: ../src/guestfs.pod:891
36393 "Certain libguestfs calls take a parameter that contains sensitive key "
36394 "material, passed in as a C string."
36398 #: ../src/guestfs.pod:894
36400 "In the future we would hope to change the libguestfs implementation so that "
36401 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
36402 "swap. However this is I<not> done at the moment, because of the complexity "
36403 "of such an implementation."
36407 #: ../src/guestfs.pod:899
36409 "Therefore you should be aware that any key parameter you pass to libguestfs "
36410 "might end up being written out to the swap partition. If this is a concern, "
36411 "scrub the swap partition or don't use libguestfs on encrypted devices."
36415 #: ../src/guestfs.pod:904
36416 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
36420 #: ../src/guestfs.pod:906
36422 "All high-level libguestfs actions are synchronous. If you want to use "
36423 "libguestfs asynchronously then you must create a thread."
36427 #: ../src/guestfs.pod:909
36429 "Only use the handle from a single thread. Either use the handle exclusively "
36430 "from one thread, or provide your own mutex so that two threads cannot issue "
36431 "calls on the same handle at the same time."
36435 #: ../src/guestfs.pod:913
36437 "See the graphical program guestfs-browser for one possible architecture for "
36438 "multithreaded programs using libvirt and libguestfs."
36442 #: ../src/guestfs.pod:916
36447 #: ../src/guestfs.pod:918
36449 "Libguestfs needs a supermin appliance, which it finds by looking along an "
36454 #: ../src/guestfs.pod:921
36456 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
36457 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
36461 #: ../src/guestfs.pod:924
36463 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
36464 "to change the directories that libguestfs will search in. The value is a "
36465 "colon-separated list of paths. The current directory is I<not> searched "
36466 "unless the path contains an empty element or C<.>. For example "
36467 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
36468 "then C</usr/lib/guestfs>."
36472 #: ../src/guestfs.pod:931
36473 msgid "QEMU WRAPPERS"
36477 #: ../src/guestfs.pod:933
36479 "If you want to compile your own qemu, run qemu from a non-standard location, "
36480 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
36485 #: ../src/guestfs.pod:937
36487 "There is one important rule to remember: you I<must C<exec qemu>> as the "
36488 "last command in the shell script (so that qemu replaces the shell and "
36489 "becomes the direct child of the libguestfs-using program). If you don't do "
36490 "this, then the qemu process won't be cleaned up correctly."
36494 #: ../src/guestfs.pod:942
36496 "Here is an example of a wrapper, where I have built my own copy of qemu from "
36501 #: ../src/guestfs.pod:945
36505 " qemudir=/home/rjones/d/qemu\n"
36506 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
36510 " qemudir=/home/rjones/d/qemu\n"
36511 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
36515 #: ../src/guestfs.pod:949
36517 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
36518 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
36523 #: ../src/guestfs.pod:953
36526 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36529 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36533 #: ../src/guestfs.pod:955
36535 "Note that libguestfs also calls qemu with the -help and -version options in "
36536 "order to determine features."
36540 #: ../src/guestfs.pod:958
36542 "Wrappers can also be used to edit the options passed to qemu. In the "
36543 "following example, the C<-machine ...> option (C<-machine> and the following "
36544 "argument) are removed from the command line and replaced with C<-machine pc,"
36545 "accel=tcg>. The while loop iterates over the options until it finds the "
36546 "right one to remove, putting the remaining options into the C<args> array."
36550 #: ../src/guestfs.pod:967
36554 " while [ $# -gt 0 ]; do\n"
36555 " case \"$1\" in\n"
36559 " args[i]=\"$1\"\n"
36568 #: ../src/guestfs.pod:979
36571 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
36576 #: ../src/guestfs.pod:981
36577 msgid "ATTACHING TO RUNNING DAEMONS"
36578 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
36581 #: ../src/guestfs.pod:983
36583 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
36584 "babies. Use with caution."
36588 #: ../src/guestfs.pod:986
36590 "I<Note (2):> This section explains how to attach to a running daemon from a "
36591 "low level perspective. For most users, simply using virt tools such as "
36592 "L<guestfish(1)> with the I<--live> option will \"just work\"."
36596 #: ../src/guestfs.pod:990
36597 msgid "Using guestfs_set_attach_method"
36598 msgstr "За допомогою guestfs_set_attach_method"
36601 #: ../src/guestfs.pod:992
36603 "By calling L</guestfs_set_attach_method> you can change how the library "
36604 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
36605 "ARCHITECTURE> for some background)."
36609 #: ../src/guestfs.pod:996
36611 "The normal attach method is C<appliance>, where a small appliance is created "
36612 "containing the daemon, and then the library connects to this."
36616 #: ../src/guestfs.pod:999
36618 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
36619 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
36620 "daemon over the Unix domain socket."
36624 #: ../src/guestfs.pod:1003
36626 "The normal use for this is to connect to a running virtual machine that "
36627 "contains a C<guestfsd> daemon, and send commands so you can read and write "
36628 "files inside the live virtual machine."
36632 #: ../src/guestfs.pod:1007
36633 msgid "Using guestfs_add_domain with live flag"
36634 msgstr "За допомогою guestfs_add_domain з прапорцем live"
36637 #: ../src/guestfs.pod:1009
36639 "L</guestfs_add_domain> provides some help for getting the correct attach "
36640 "method. If you pass the C<live> option to this function, then (if the "
36641 "virtual machine is running) it will examine the libvirt XML looking for a "
36642 "virtio-serial channel to connect to:"
36646 #: ../src/guestfs.pod:1015
36653 " <channel type='unix'>\n"
36654 " <source mode='bind' path='/path/to/socket'/>\n"
36655 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36666 " <channel type='unix'>\n"
36667 " <source mode='bind' path='/path/to/socket'/>\n"
36668 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36676 #: ../src/guestfs.pod:1027
36678 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
36679 "method to C<unix:/path/to/socket>."
36683 #: ../src/guestfs.pod:1030
36685 "Some of the libguestfs tools (including guestfish) support a I<--live> "
36686 "option which is passed through to L</guestfs_add_domain> thus allowing you "
36687 "to attach to and modify live virtual machines."
36691 #: ../src/guestfs.pod:1034
36693 "The virtual machine needs to have been set up beforehand so that it has the "
36694 "virtio-serial channel and so that guestfsd is running inside it."
36698 #: ../src/guestfs.pod:1038
36699 msgid "ABI GUARANTEE"
36700 msgstr "ГАРАНТІЯ ЩОДО ABI"
36703 #: ../src/guestfs.pod:1040
36705 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
36706 "actions as outlined in this section. Although we will deprecate some "
36707 "actions, for example if they get replaced by newer calls, we will keep the "
36708 "old actions forever. This allows you the developer to program in confidence "
36709 "against the libguestfs API."
36713 #: ../src/guestfs.pod:1046
36714 msgid "BLOCK DEVICE NAMING"
36715 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
36718 #: ../src/guestfs.pod:1048
36720 "In the kernel there is now quite a profusion of schemata for naming block "
36721 "devices (in this context, by I<block device> I mean a physical or virtual "
36722 "hard drive). The original Linux IDE driver used names starting with C</dev/"
36723 "hd*>. SCSI devices have historically used a different naming scheme, C</dev/"
36724 "sd*>. When the Linux kernel I<libata> driver became a popular replacement "
36725 "for the old IDE driver (particularly for SATA devices) those devices also "
36726 "used the C</dev/sd*> scheme. Additionally we now have virtual machines with "
36727 "paravirtualized drivers. This has created several different naming systems, "
36728 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
36732 #: ../src/guestfs.pod:1060
36734 "As discussed above, libguestfs uses a qemu appliance running an embedded "
36735 "Linux kernel to access block devices. We can run a variety of appliances "
36736 "based on a variety of Linux kernels."
36740 #: ../src/guestfs.pod:1064
36742 "This causes a problem for libguestfs because many API calls use device or "
36743 "partition names. Working scripts and the recipe (example) scripts that we "
36744 "make available over the internet could fail if the naming scheme changes."
36748 #: ../src/guestfs.pod:1069
36750 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
36751 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
36752 "required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
36753 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
36757 #: ../src/guestfs.pod:1075
36759 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
36760 "L</guestfs_list_partitions> and similar calls return the true names of the "
36761 "devices and partitions as known to the appliance."
36765 #: ../src/guestfs.pod:1080
36766 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
36770 #: ../src/guestfs.pod:1082
36772 "Usually this translation is transparent. However in some (very rare) cases "
36773 "you may need to know the exact algorithm. Such cases include where you use "
36774 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
36775 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
36779 #: ../src/guestfs.pod:1088
36781 "The algorithm is applied only to I<parameters> which are known to be either "
36782 "device or partition names. Return values from functions such as L</"
36783 "guestfs_list_devices> are never changed."
36787 #: ../src/guestfs.pod:1096
36788 msgid "Is the string a parameter which is a device or partition name?"
36792 #: ../src/guestfs.pod:1100
36793 msgid "Does the string begin with C</dev/sd>?"
36794 msgstr "Чи починається рядок з C</dev/sd>?"
36797 #: ../src/guestfs.pod:1104
36799 "Does the named device exist? If so, we use that device. However if I<not> "
36800 "then we continue with this algorithm."
36804 #: ../src/guestfs.pod:1109
36805 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
36809 #: ../src/guestfs.pod:1111
36810 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
36814 #: ../src/guestfs.pod:1113
36815 msgid "If that named device exists, use it. If not, continue."
36819 #: ../src/guestfs.pod:1117
36820 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
36824 #: ../src/guestfs.pod:1119
36825 msgid "If that named device exists, use it. If not, return an error."
36829 #: ../src/guestfs.pod:1123
36830 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
36834 #: ../src/guestfs.pod:1125
36836 "Although the standard naming scheme and automatic translation is useful for "
36837 "simple programs and guestfish scripts, for larger programs it is best not to "
36838 "rely on this mechanism."
36842 #: ../src/guestfs.pod:1129
36844 "Where possible for maximum future portability programs using libguestfs "
36845 "should use these future-proof techniques:"
36849 #: ../src/guestfs.pod:1136
36851 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
36852 "device names, and then use those names directly."
36856 #: ../src/guestfs.pod:1139
36858 "Since those device names exist by definition, they will never be translated."
36862 #: ../src/guestfs.pod:1144
36864 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
36865 "filesystem labels."
36869 #: ../src/guestfs.pod:1151
36871 "This section discusses security implications of using libguestfs, "
36872 "particularly with untrusted or malicious guests or disk images."
36876 #: ../src/guestfs.pod:1154
36877 msgid "GENERAL SECURITY CONSIDERATIONS"
36878 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
36881 #: ../src/guestfs.pod:1156
36883 "Be careful with any files or data that you download from a guest (by "
36884 "\"download\" we mean not just the L</guestfs_download> command but any "
36885 "command that reads files, filenames, directories or anything else from a "
36886 "disk image). An attacker could manipulate the data to fool your program "
36887 "into doing the wrong thing. Consider cases such as:"
36891 #: ../src/guestfs.pod:1166
36892 msgid "the data (file etc) not being present"
36896 #: ../src/guestfs.pod:1170
36897 msgid "being present but empty"
36901 #: ../src/guestfs.pod:1174
36902 msgid "being much larger than normal"
36906 #: ../src/guestfs.pod:1178
36907 msgid "containing arbitrary 8 bit data"
36911 #: ../src/guestfs.pod:1182
36912 msgid "being in an unexpected character encoding"
36916 #: ../src/guestfs.pod:1186
36917 msgid "containing homoglyphs."
36921 #: ../src/guestfs.pod:1190
36922 msgid "SECURITY OF MOUNTING FILESYSTEMS"
36923 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
36926 #: ../src/guestfs.pod:1192
36928 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
36929 "(VFS) module can sometimes be escalated into exploits by deliberately "
36930 "creating a malicious, malformed filesystem. These exploits are very severe "
36931 "for two reasons. Firstly there are very many filesystem drivers in the "
36932 "kernel, and many of them are infrequently used and not much developer "
36933 "attention has been paid to the code. Linux userspace helps potential "
36934 "crackers by detecting the filesystem type and automatically choosing the "
36935 "right VFS driver, even if that filesystem type is obscure or unexpected for "
36936 "the administrator. Secondly, a kernel-level exploit is like a local root "
36937 "exploit (worse in some ways), giving immediate and total access to the "
36938 "system right down to the hardware level."
36942 #: ../src/guestfs.pod:1205
36944 "That explains why you should never mount a filesystem from an untrusted "
36945 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
36946 "inside a qemu virtual machine, usually running as a non-root user. The "
36947 "attacker would need to write a filesystem which first exploited the kernel, "
36948 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
36949 "the libguestfs protocol, and finally to be as serious as the host kernel "
36950 "exploit it would need to escalate its privileges to root. This multi-step "
36951 "escalation, performed by a static piece of data, is thought to be extremely "
36952 "hard to do, although we never say 'never' about security issues."
36956 #: ../src/guestfs.pod:1216
36958 "In any case callers can reduce the attack surface by forcing the filesystem "
36959 "type when mounting (use L</guestfs_mount_vfs>)."
36963 #: ../src/guestfs.pod:1219
36964 msgid "PROTOCOL SECURITY"
36965 msgstr "ЗАХИСТ ПРОТОКОЛУ"
36968 #: ../src/guestfs.pod:1221
36970 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
36971 "defined upper message size. However a program that uses libguestfs must "
36972 "also take care - for example you can write a program that downloads a binary "
36973 "from a disk image and executes it locally, and no amount of protocol "
36974 "security will save you from the consequences."
36978 #: ../src/guestfs.pod:1227
36979 msgid "INSPECTION SECURITY"
36983 #: ../src/guestfs.pod:1229
36985 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
36986 "directly from the guest, and these could contain any 8 bit data. Callers "
36987 "should be careful to escape these before printing them to a structured file "
36988 "(for example, use HTML escaping if creating a web page)."
36992 #: ../src/guestfs.pod:1235
36994 "Guest configuration may be altered in unusual ways by the administrator of "
36995 "the virtual machine, and may not reflect reality (particularly for untrusted "
36996 "or actively malicious guests). For example we parse the hostname from "
36997 "configuration files like C</etc/sysconfig/network> that we find in the "
36998 "guest, but the guest administrator can easily manipulate these files to "
36999 "provide the wrong hostname."
37003 #: ../src/guestfs.pod:1243
37005 "The inspection API parses guest configuration using two external libraries: "
37006 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
37007 "designed to be robust in the face of malicious data, although denial of "
37008 "service attacks are still possible, for example with oversized configuration "
37013 #: ../src/guestfs.pod:1249
37014 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
37015 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
37018 #: ../src/guestfs.pod:1251
37020 "Be very cautious about running commands from the guest. By running a "
37021 "command in the guest, you are giving CPU time to a binary that you do not "
37022 "control, under the same user account as the library, albeit wrapped in qemu "
37023 "virtualization. More information and alternatives can be found in the "
37024 "section L</RUNNING COMMANDS>."
37028 #: ../src/guestfs.pod:1257
37029 msgid "CVE-2010-3851"
37030 msgstr "CVE-2010-3851"
37033 #: ../src/guestfs.pod:1259
37034 msgid "https://bugzilla.redhat.com/642934"
37035 msgstr "https://bugzilla.redhat.com/642934"
37038 #: ../src/guestfs.pod:1261
37040 "This security bug concerns the automatic disk format detection that qemu "
37041 "does on disk images."
37045 #: ../src/guestfs.pod:1264
37047 "A raw disk image is just the raw bytes, there is no header. Other disk "
37048 "images like qcow2 contain a special header. Qemu deals with this by looking "
37049 "for one of the known headers, and if none is found then assuming the disk "
37050 "image must be raw."
37054 #: ../src/guestfs.pod:1269
37056 "This allows a guest which has been given a raw disk image to write some "
37057 "other header. At next boot (or when the disk image is accessed by "
37058 "libguestfs) qemu would do autodetection and think the disk image format was, "
37059 "say, qcow2 based on the header written by the guest."
37063 #: ../src/guestfs.pod:1274
37065 "This in itself would not be a problem, but qcow2 offers many features, one "
37066 "of which is to allow a disk image to refer to another image (called the "
37067 "\"backing disk\"). It does this by placing the path to the backing disk "
37068 "into the qcow2 header. This path is not validated and could point to any "
37069 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
37070 "\"holes\" in the qcow2 disk image, which of course is completely under the "
37071 "control of the attacker."
37075 #: ../src/guestfs.pod:1282
37077 "In libguestfs this is rather hard to exploit except under two circumstances:"
37081 #: ../src/guestfs.pod:1289
37082 msgid "You have enabled the network or have opened the disk in write mode."
37086 #: ../src/guestfs.pod:1293
37088 "You are also running untrusted code from the guest (see L</RUNNING "
37093 #: ../src/guestfs.pod:1298
37095 "The way to avoid this is to specify the expected disk format when adding "
37096 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
37097 "should always do this if the disk is raw format, and it's a good idea for "
37102 #: ../src/guestfs.pod:1303
37104 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
37105 "format is fetched from libvirt and passed through."
37109 #: ../src/guestfs.pod:1306
37111 "For libguestfs tools, use the I<--format> command line parameter as "
37116 #: ../src/guestfs.pod:1309
37117 msgid "CONNECTION MANAGEMENT"
37118 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
37121 #: ../src/guestfs.pod:1311
37122 msgid "guestfs_h *"
37123 msgstr "guestfs_h *"
37126 #: ../src/guestfs.pod:1313
37128 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
37129 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
37130 "handle and release all resources used."
37134 #: ../src/guestfs.pod:1317
37136 "For information on using multiple handles and threads, see the section L</"
37137 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
37141 #: ../src/guestfs.pod:1320
37142 msgid "guestfs_create"
37143 msgstr "guestfs_create"
37146 #: ../src/guestfs.pod:1322
37149 " guestfs_h *guestfs_create (void);\n"
37152 " guestfs_h *guestfs_create (void);\n"
37156 #: ../src/guestfs.pod:1324
37157 msgid "Create a connection handle."
37158 msgstr "Створити дескриптор з’єднання."
37161 #: ../src/guestfs.pod:1326
37163 "On success this returns a non-NULL pointer to a handle. On error it returns "
37168 #: ../src/guestfs.pod:1329
37170 "You have to \"configure\" the handle after creating it. This includes "
37171 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
37172 "handle at least once."
37176 #: ../src/guestfs.pod:1333
37177 msgid "After configuring the handle, you have to call L</guestfs_launch>."
37181 #: ../src/guestfs.pod:1335
37183 "You may also want to configure error handling for the handle. See the L</"
37184 "ERROR HANDLING> section below."
37188 #: ../src/guestfs.pod:1338
37189 msgid "guestfs_close"
37190 msgstr "guestfs_close"
37193 #: ../src/guestfs.pod:1340
37196 " void guestfs_close (guestfs_h *g);\n"
37199 " void guestfs_close (guestfs_h *g);\n"
37203 #: ../src/guestfs.pod:1342
37204 msgid "This closes the connection handle and frees up all resources used."
37208 #: ../src/guestfs.pod:1344
37210 "If autosync was set on the handle and the handle was launched, then this "
37211 "implicitly calls various functions to unmount filesystems and sync the "
37212 "disk. See L</guestfs_set_autosync> for more details."
37216 #: ../src/guestfs.pod:1348
37217 msgid "If a close callback was set on the handle, then it is called."
37221 #: ../src/guestfs.pod:1350
37222 msgid "ERROR HANDLING"
37223 msgstr "ОБРОБКА ПОМИЛОК"
37226 #: ../src/guestfs.pod:1352
37228 "API functions can return errors. For example, almost all functions that "
37229 "return C<int> will return C<-1> to indicate an error."
37233 #: ../src/guestfs.pod:1355
37235 "Additional information is available for errors: an error message string and "
37236 "optionally an error number (errno) if the thing that failed was a system "
37241 #: ../src/guestfs.pod:1359
37243 "You can get at the additional information about the last error on the handle "
37244 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
37245 "up an error handler with L</guestfs_set_error_handler>."
37249 #: ../src/guestfs.pod:1364
37251 "When the handle is created, a default error handler is installed which "
37252 "prints the error message string to C<stderr>. For small short-running "
37253 "command line programs it is sufficient to do:"
37257 #: ../src/guestfs.pod:1368
37260 " if (guestfs_launch (g) == -1)\n"
37261 " exit (EXIT_FAILURE);\n"
37264 " if (guestfs_launch (g) == -1)\n"
37265 " exit (EXIT_FAILURE);\n"
37269 #: ../src/guestfs.pod:1371
37271 "since the default error handler will ensure that an error message has been "
37272 "printed to C<stderr> before the program exits."
37276 #: ../src/guestfs.pod:1374
37278 "For other programs the caller will almost certainly want to install an "
37279 "alternate error handler or do error handling in-line like this:"
37283 #: ../src/guestfs.pod:1377
37286 " /* This disables the default behaviour of printing errors\n"
37288 " guestfs_set_error_handler (g, NULL, NULL);\n"
37293 #: ../src/guestfs.pod:1381
37296 " if (guestfs_launch (g) == -1) {\n"
37297 " /* Examine the error message and print it etc. */\n"
37298 " char *msg = guestfs_last_error (g);\n"
37299 " int errnum = guestfs_last_errno (g);\n"
37300 " fprintf (stderr, \"%s\", msg);\n"
37301 " if (errnum != 0)\n"
37302 " fprintf (stderr, \": %s\", strerror (errnum));\n"
37303 " fprintf (stderr, \"\\n\");\n"
37310 #: ../src/guestfs.pod:1392
37312 "Out of memory errors are handled differently. The default action is to call "
37313 "L<abort(3)>. If this is undesirable, then you can set a handler using L</"
37314 "guestfs_set_out_of_memory_handler>."
37318 #: ../src/guestfs.pod:1396
37320 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
37321 "because there is no handle if this happens there is no way to get additional "
37322 "error information. However L</guestfs_create> is supposed to be a "
37323 "lightweight operation which can only fail because of insufficient memory (it "
37324 "returns NULL in this case)."
37328 #: ../src/guestfs.pod:1402
37329 msgid "guestfs_last_error"
37330 msgstr "guestfs_last_error"
37333 #: ../src/guestfs.pod:1404
37336 " const char *guestfs_last_error (guestfs_h *g);\n"
37339 " const char *guestfs_last_error (guestfs_h *g);\n"
37343 #: ../src/guestfs.pod:1406
37345 "This returns the last error message that happened on C<g>. If there has not "
37346 "been an error since the handle was created, then this returns C<NULL>."
37350 #: ../src/guestfs.pod:1410
37352 "The lifetime of the returned string is until the next error occurs, or L</"
37353 "guestfs_close> is called."
37357 #: ../src/guestfs.pod:1413
37358 msgid "guestfs_last_errno"
37359 msgstr "guestfs_last_errno"
37362 #: ../src/guestfs.pod:1415
37365 " int guestfs_last_errno (guestfs_h *g);\n"
37368 " int guestfs_last_errno (guestfs_h *g);\n"
37372 #: ../src/guestfs.pod:1417
37373 msgid "This returns the last error number (errno) that happened on C<g>."
37377 #: ../src/guestfs.pod:1419
37378 msgid "If successful, an errno integer not equal to zero is returned."
37382 #: ../src/guestfs.pod:1421
37384 "If no error, this returns 0. This call can return 0 in three situations:"
37388 #: ../src/guestfs.pod:1428
37389 msgid "There has not been any error on the handle."
37393 #: ../src/guestfs.pod:1432
37395 "There has been an error but the errno was meaningless. This corresponds to "
37396 "the case where the error did not come from a failed system call, but for "
37397 "some other reason."
37401 #: ../src/guestfs.pod:1438
37403 "There was an error from a failed system call, but for some reason the errno "
37404 "was not captured and returned. This usually indicates a bug in libguestfs."
37408 #: ../src/guestfs.pod:1444
37410 "Libguestfs tries to convert the errno from inside the applicance into a "
37411 "corresponding errno for the caller (not entirely trivial: the appliance "
37412 "might be running a completely different operating system from the library "
37413 "and error numbers are not standardized across Un*xen). If this could not be "
37414 "done, then the error is translated to C<EINVAL>. In practice this should "
37415 "only happen in very rare circumstances."
37419 #: ../src/guestfs.pod:1452
37420 msgid "guestfs_set_error_handler"
37421 msgstr "guestfs_set_error_handler"
37424 #: ../src/guestfs.pod:1454
37427 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37429 " const char *msg);\n"
37430 " void guestfs_set_error_handler (guestfs_h *g,\n"
37431 " guestfs_error_handler_cb cb,\n"
37432 " void *opaque);\n"
37435 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37437 " const char *msg);\n"
37438 " void guestfs_set_error_handler (guestfs_h *g,\n"
37439 " guestfs_error_handler_cb cb,\n"
37440 " void *opaque);\n"
37444 #: ../src/guestfs.pod:1461
37446 "The callback C<cb> will be called if there is an error. The parameters "
37447 "passed to the callback are an opaque data pointer and the error message "
37452 #: ../src/guestfs.pod:1465
37454 "C<errno> is not passed to the callback. To get that the callback must call "
37455 "L</guestfs_last_errno>."
37459 #: ../src/guestfs.pod:1468
37461 "Note that the message string C<msg> is freed as soon as the callback "
37462 "function returns, so if you want to stash it somewhere you must make your "
37467 #: ../src/guestfs.pod:1472
37468 msgid "The default handler prints messages on C<stderr>."
37472 #: ../src/guestfs.pod:1474
37473 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
37477 #: ../src/guestfs.pod:1476
37478 msgid "guestfs_get_error_handler"
37479 msgstr "guestfs_get_error_handler"
37482 #: ../src/guestfs.pod:1478
37485 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37486 " void **opaque_rtn);\n"
37489 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37490 " void **opaque_rtn);\n"
37494 #: ../src/guestfs.pod:1481
37495 msgid "Returns the current error handler callback."
37499 #: ../src/guestfs.pod:1483
37500 msgid "guestfs_set_out_of_memory_handler"
37501 msgstr "guestfs_set_out_of_memory_handler"
37504 #: ../src/guestfs.pod:1485
37507 " typedef void (*guestfs_abort_cb) (void);\n"
37508 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
37509 " guestfs_abort_cb);\n"
37514 #: ../src/guestfs.pod:1489
37516 "The callback C<cb> will be called if there is an out of memory situation. "
37517 "I<Note this callback must not return>."
37521 #: ../src/guestfs.pod:1492
37522 msgid "The default is to call L<abort(3)>."
37526 #: ../src/guestfs.pod:1494
37528 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
37532 #: ../src/guestfs.pod:1497
37533 msgid "guestfs_get_out_of_memory_handler"
37534 msgstr "guestfs_get_out_of_memory_handler"
37537 #: ../src/guestfs.pod:1499
37540 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37543 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37547 #: ../src/guestfs.pod:1501
37548 msgid "This returns the current out of memory handler."
37552 #: ../src/guestfs.pod:1503
37554 msgstr "ВИКЛИКИ API"
37557 #: ../src/guestfs.pod:1507
37562 #: ../src/guestfs.pod:1509
37567 #: ../src/guestfs.pod:1511
37568 msgid "AVAILABILITY"
37569 msgstr "ДОСТУПНІСТЬ"
37572 #: ../src/guestfs.pod:1513
37573 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
37574 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
37577 #: ../src/guestfs.pod:1515
37579 "Using L</guestfs_available> you can test availability of the following "
37580 "groups of functions. This test queries the appliance to see if the "
37581 "appliance you are currently using supports the functionality."
37585 #: ../src/guestfs.pod:1520
37586 msgid "@AVAILABILITY@"
37587 msgstr "@AVAILABILITY@"
37590 #: ../src/guestfs.pod:1522
37591 msgid "GUESTFISH supported COMMAND"
37595 #: ../src/guestfs.pod:1524
37597 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
37598 "prints out the available groups and whether they are supported by this build "
37599 "of libguestfs. Note however that you have to do C<run> first."
37603 #: ../src/guestfs.pod:1529
37604 msgid "SINGLE CALLS AT COMPILE TIME"
37608 #: ../src/guestfs.pod:1531
37610 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
37611 "function, such as:"
37615 #: ../src/guestfs.pod:1534
37618 " #define LIBGUESTFS_HAVE_DD 1\n"
37621 " #define LIBGUESTFS_HAVE_DD 1\n"
37625 #: ../src/guestfs.pod:1536
37626 msgid "if L</guestfs_dd> is available."
37630 #: ../src/guestfs.pod:1538
37632 "Before version 1.5.8, if you needed to test whether a single libguestfs "
37633 "function is available at compile time, we recommended using build tools such "
37634 "as autoconf or cmake. For example in autotools you could use:"
37638 #: ../src/guestfs.pod:1543
37641 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37642 " AC_CHECK_FUNCS([guestfs_dd])\n"
37645 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37646 " AC_CHECK_FUNCS([guestfs_dd])\n"
37650 #: ../src/guestfs.pod:1546
37652 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
37657 #: ../src/guestfs.pod:1549
37658 msgid "SINGLE CALLS AT RUN TIME"
37662 #: ../src/guestfs.pod:1551
37664 "Testing at compile time doesn't guarantee that a function really exists in "
37665 "the library. The reason is that you might be dynamically linked against a "
37666 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
37667 "This situation unfortunately results in a segmentation fault, which is a "
37668 "shortcoming of the C dynamic linking system itself."
37672 #: ../src/guestfs.pod:1558
37674 "You can use L<dlopen(3)> to test if a function is available at run time, as "
37675 "in this example program (note that you still need the compile time check as "
37680 #: ../src/guestfs.pod:1562
37683 " #include <stdio.h>\n"
37684 " #include <stdlib.h>\n"
37685 " #include <unistd.h>\n"
37686 " #include <dlfcn.h>\n"
37687 " #include <guestfs.h>\n"
37690 " #include <stdio.h>\n"
37691 " #include <stdlib.h>\n"
37692 " #include <unistd.h>\n"
37693 " #include <dlfcn.h>\n"
37694 " #include <guestfs.h>\n"
37698 #: ../src/guestfs.pod:1568
37703 " #ifdef LIBGUESTFS_HAVE_DD\n"
37705 " int has_function;\n"
37710 " #ifdef LIBGUESTFS_HAVE_DD\n"
37712 " int has_function;\n"
37716 #: ../src/guestfs.pod:1574
37719 " /* Test if the function guestfs_dd is really available. */\n"
37720 " dl = dlopen (NULL, RTLD_LAZY);\n"
37722 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
37723 " exit (EXIT_FAILURE);\n"
37725 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
37731 #: ../src/guestfs.pod:1583
37734 " if (!has_function)\n"
37735 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
37737 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
37738 " /* Now it's safe to call\n"
37739 " guestfs_dd (g, \"foo\", \"bar\");\n"
37743 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
37750 #: ../src/guestfs.pod:1596
37752 "You may think the above is an awful lot of hassle, and it is. There are "
37753 "other ways outside of the C linking system to ensure that this kind of "
37754 "incompatibility never arises, such as using package versioning:"
37758 #: ../src/guestfs.pod:1601
37761 " Requires: libguestfs >= 1.0.80\n"
37766 #: ../src/guestfs.pod:1603
37767 msgid "CALLS WITH OPTIONAL ARGUMENTS"
37771 #: ../src/guestfs.pod:1605
37773 "A recent feature of the API is the introduction of calls which take optional "
37774 "arguments. In C these are declared 3 ways. The main way is as a call which "
37775 "takes variable arguments (ie. C<...>), as in this example:"
37779 #: ../src/guestfs.pod:1610
37782 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37785 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37789 #: ../src/guestfs.pod:1612
37791 "Call this with a list of optional arguments, terminated by C<-1>. So to "
37792 "call with no optional arguments specified:"
37796 #: ../src/guestfs.pod:1615
37799 " guestfs_add_drive_opts (g, filename, -1);\n"
37802 " guestfs_add_drive_opts (g, filename, -1);\n"
37806 #: ../src/guestfs.pod:1617
37807 msgid "With a single optional argument:"
37811 #: ../src/guestfs.pod:1619
37814 " guestfs_add_drive_opts (g, filename,\n"
37815 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37819 " guestfs_add_drive_opts (g, filename,\n"
37820 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37825 #: ../src/guestfs.pod:1623
37830 #: ../src/guestfs.pod:1625
37833 " guestfs_add_drive_opts (g, filename,\n"
37834 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37835 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37839 " guestfs_add_drive_opts (g, filename,\n"
37840 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37841 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37846 #: ../src/guestfs.pod:1630
37848 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
37853 #: ../src/guestfs.pod:1633
37854 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
37858 #: ../src/guestfs.pod:1635
37860 "The second variant has the same name with the suffix C<_va>, which works the "
37861 "same way but takes a C<va_list>. See the C manual for details. For the "
37862 "example function, this is declared:"
37866 #: ../src/guestfs.pod:1639
37869 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37870 " va_list args);\n"
37873 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37874 " va_list args);\n"
37878 #: ../src/guestfs.pod:1642
37879 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
37883 #: ../src/guestfs.pod:1644
37885 "The third variant is useful where you need to construct these calls. You "
37886 "pass in a structure where you fill in the optional fields. The structure "
37887 "has a bitmask as the first element which you must set to indicate which "
37888 "fields you have filled in. For our example function the structure and call "
37893 #: ../src/guestfs.pod:1650
37896 " struct guestfs_add_drive_opts_argv {\n"
37897 " uint64_t bitmask;\n"
37899 " const char *format;\n"
37902 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37903 " const struct guestfs_add_drive_opts_argv *optargs);\n"
37906 " struct guestfs_add_drive_opts_argv {\n"
37907 " uint64_t bitmask;\n"
37909 " const char *format;\n"
37912 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37913 " const struct guestfs_add_drive_opts_argv *optargs);\n"
37917 #: ../src/guestfs.pod:1659
37918 msgid "You could call it like this:"
37922 #: ../src/guestfs.pod:1661
37925 " struct guestfs_add_drive_opts_argv optargs = {\n"
37926 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37927 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37928 " .readonly = 1,\n"
37929 " .format = \"qcow2\"\n"
37933 " struct guestfs_add_drive_opts_argv optargs = {\n"
37934 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37935 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37936 " .readonly = 1,\n"
37937 " .format = \"qcow2\"\n"
37942 #: ../src/guestfs.pod:1668
37945 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37948 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37952 #: ../src/guestfs.pod:1676
37953 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
37957 #: ../src/guestfs.pod:1681
37958 msgid "You do not need to fill in all fields of the structure."
37962 #: ../src/guestfs.pod:1685
37964 "There must be a one-to-one correspondence between fields of the structure "
37965 "that are filled in, and bits set in the bitmask."
37969 #: ../src/guestfs.pod:1690
37970 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
37974 #: ../src/guestfs.pod:1692
37976 "In other languages, optional arguments are expressed in the way that is "
37977 "natural for that language. We refer you to the language-specific "
37978 "documentation for more details on that."
37982 #: ../src/guestfs.pod:1696
37983 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
37987 #: ../src/guestfs.pod:1698
37988 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
37992 #: ../src/guestfs.pod:1700
37994 "B<Note:> This section documents the generic event mechanism introduced in "
37995 "libguestfs 1.10, which you should use in new code if possible. The old "
37996 "functions C<guestfs_set_log_message_callback>, "
37997 "C<guestfs_set_subprocess_quit_callback>, "
37998 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
37999 "C<guestfs_set_progress_callback> are no longer documented in this manual "
38000 "page. Because of the ABI guarantee, the old functions continue to work."
38004 #: ../src/guestfs.pod:1709
38006 "Handles generate events when certain things happen, such as log messages "
38007 "being generated, progress messages during long-running operations, or the "
38008 "handle being closed. The API calls described below let you register a "
38009 "callback to be called when events happen. You can register multiple "
38010 "callbacks (for the same, different or overlapping sets of events), and "
38011 "individually remove callbacks. If callbacks are not removed, then they "
38012 "remain in force until the handle is closed."
38016 #: ../src/guestfs.pod:1717
38018 "In the current implementation, events are only generated synchronously: that "
38019 "means that events (and hence callbacks) can only happen while you are in the "
38020 "middle of making another libguestfs call. The callback is called in the "
38025 #: ../src/guestfs.pod:1722
38027 "Events may contain a payload, usually nothing (void), an array of 64 bit "
38028 "unsigned integers, or a message buffer. Payloads are discussed later on."
38032 #: ../src/guestfs.pod:1726
38033 msgid "CLASSES OF EVENTS"
38037 #: ../src/guestfs.pod:1730
38038 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
38042 #: ../src/guestfs.pod:1733
38044 "The callback function will be called while the handle is being closed "
38045 "(synchronously from L</guestfs_close>)."
38049 #: ../src/guestfs.pod:1736
38051 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
38052 "handles that are open when the program exits. This means that this callback "
38053 "might be called indirectly from L<exit(3)>, which can cause unexpected "
38054 "problems in higher-level languages (eg. if your HLL interpreter has already "
38055 "been cleaned up by the time this is called, and if your callback then jumps "
38056 "into some HLL function)."
38060 #: ../src/guestfs.pod:1743
38062 "If no callback is registered: the handle is closed without any callback "
38067 #: ../src/guestfs.pod:1746
38068 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
38072 #: ../src/guestfs.pod:1749
38074 "The callback function will be called when the child process quits, either "
38075 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
38076 "corresponds to a transition from any state to the CONFIG state)."
38080 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
38081 msgid "If no callback is registered: the event is ignored."
38085 #: ../src/guestfs.pod:1755
38086 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
38090 #: ../src/guestfs.pod:1758
38092 "The callback function will be called when the child process becomes ready "
38093 "first time after it has been launched. (This corresponds to a transition "
38094 "from LAUNCHING to the READY state)."
38098 #: ../src/guestfs.pod:1764
38099 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
38103 #: ../src/guestfs.pod:1767
38105 "Some long-running operations can generate progress messages. If this "
38106 "callback is registered, then it will be called each time a progress message "
38107 "is generated (usually two seconds after the operation started, and three "
38108 "times per second thereafter until it completes, although the frequency may "
38109 "change in future versions)."
38113 #: ../src/guestfs.pod:1773
38115 "The callback receives in the payload four unsigned 64 bit numbers which are "
38116 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
38120 #: ../src/guestfs.pod:1776
38122 "The units of C<total> are not defined, although for some operations C<total> "
38123 "may relate in some way to the amount of data to be transferred (eg. in bytes "
38124 "or megabytes), and C<position> may be the portion which has been transferred."
38128 #: ../src/guestfs.pod:1781
38129 msgid "The only defined and stable parts of the API are:"
38133 #: ../src/guestfs.pod:1787
38135 "The callback can display to the user some type of progress bar or indicator "
38136 "which shows the ratio of C<position>:C<total>."
38140 #: ../src/guestfs.pod:1792
38141 msgid "0 E<lt>= C<position> E<lt>= C<total>"
38145 #: ../src/guestfs.pod:1796
38147 "If any progress notification is sent during a call, then a final progress "
38148 "notification is always sent when C<position> = C<total> (I<unless> the call "
38149 "fails with an error)."
38153 #: ../src/guestfs.pod:1800
38155 "This is to simplify caller code, so callers can easily set the progress "
38156 "indicator to \"100%\" at the end of the operation, without requiring special "
38157 "code to detect this case."
38161 #: ../src/guestfs.pod:1806
38163 "For some calls we are unable to estimate the progress of the call, but we "
38164 "can still generate progress messages to indicate activity. This is known as "
38165 "\"pulse mode\", and is directly supported by certain progress bar "
38166 "implementations (eg. GtkProgressBar)."
38170 #: ../src/guestfs.pod:1811
38172 "For these calls, zero or more progress messages are generated with "
38173 "C<position = 0> and C<total = 1>, followed by a final message with "
38174 "C<position = total = 1>."
38178 #: ../src/guestfs.pod:1815
38180 "As noted above, if the call fails with an error then the final message may "
38181 "not be generated."
38185 #: ../src/guestfs.pod:1820
38187 "The callback also receives the procedure number (C<proc_nr>) and serial "
38188 "number (C<serial>) of the call. These are only useful for debugging "
38189 "protocol issues, and the callback can normally ignore them. The callback "
38190 "may want to print these numbers in error messages or debugging messages."
38194 #: ../src/guestfs.pod:1826
38195 msgid "If no callback is registered: progress messages are discarded."
38199 #: ../src/guestfs.pod:1828
38200 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
38204 #: ../src/guestfs.pod:1831
38206 "The callback function is called whenever a log message is generated by qemu, "
38207 "the appliance kernel, guestfsd (daemon), or utility programs."
38211 #: ../src/guestfs.pod:1834
38213 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
38214 "guestfs_launch>) then additional debug messages are generated."
38218 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
38220 "If no callback is registered: the messages are discarded unless the verbose "
38221 "flag is set in which case they are sent to stderr. You can override the "
38222 "printing of verbose messages to stderr by setting up a callback."
38226 #: ../src/guestfs.pod:1842
38227 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
38231 #: ../src/guestfs.pod:1845
38233 "The callback function is called whenever a log message is generated by the "
38234 "library part of libguestfs."
38238 #: ../src/guestfs.pod:1848
38240 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
38241 "messages are generated."
38245 #: ../src/guestfs.pod:1856
38246 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
38250 #: ../src/guestfs.pod:1859
38252 "The callback function is called whenever a trace message is generated. This "
38253 "only applies if the trace flag (L</guestfs_set_trace>) is set."
38257 #: ../src/guestfs.pod:1862
38259 "If no callback is registered: the messages are sent to stderr. You can "
38260 "override the printing of trace messages to stderr by setting up a callback."
38264 #: ../src/guestfs.pod:1866
38265 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
38269 #: ../src/guestfs.pod:1869
38271 "The callback function is called whenever a libguestfs function is entered."
38275 #: ../src/guestfs.pod:1872
38277 "The payload is a string which contains the name of the function that we are "
38278 "entering (not including C<guestfs_> prefix)."
38282 #: ../src/guestfs.pod:1875
38284 "Note that libguestfs functions can call themselves, so you may see many "
38285 "events from a single call. A few libguestfs functions do not generate this "
38290 #: ../src/guestfs.pod:1883
38291 msgid "guestfs_set_event_callback"
38295 #: ../src/guestfs.pod:1885
38298 " int guestfs_set_event_callback (guestfs_h *g,\n"
38299 " guestfs_event_callback cb,\n"
38300 " uint64_t event_bitmask,\n"
38302 " void *opaque);\n"
38307 #: ../src/guestfs.pod:1891
38309 "This function registers a callback (C<cb>) for all event classes in the "
38310 "C<event_bitmask>."
38314 #: ../src/guestfs.pod:1894
38316 "For example, to register for all log message events, you could call this "
38317 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. "
38318 "To register a single callback for all possible classes of events, use "
38319 "C<GUESTFS_EVENT_ALL>."
38323 #: ../src/guestfs.pod:1900
38324 msgid "C<flags> should always be passed as 0."
38328 #: ../src/guestfs.pod:1902
38330 "C<opaque> is an opaque pointer which is passed to the callback. You can use "
38331 "it for any purpose."
38335 #: ../src/guestfs.pod:1905
38337 "The return value is the event handle (an integer) which you can use to "
38338 "delete the callback (see below)."
38342 #: ../src/guestfs.pod:1908
38344 "If there is an error, this function returns C<-1>, and sets the error in the "
38345 "handle in the usual way (see L</guestfs_last_error> etc.)"
38349 #: ../src/guestfs.pod:1911
38351 "Callbacks remain in effect until they are deleted, or until the handle is "
38356 #: ../src/guestfs.pod:1914
38358 "In the case where multiple callbacks are registered for a particular event "
38359 "class, all of the callbacks are called. The order in which multiple "
38360 "callbacks are called is not defined."
38364 #: ../src/guestfs.pod:1918
38365 msgid "guestfs_delete_event_callback"
38369 #: ../src/guestfs.pod:1920
38372 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
38377 #: ../src/guestfs.pod:1922
38379 "Delete a callback that was previously registered. C<event_handle> should be "
38380 "the integer that was returned by a previous call to "
38381 "C<guestfs_set_event_callback> on the same handle."
38385 #: ../src/guestfs.pod:1926
38386 msgid "guestfs_event_callback"
38390 #: ../src/guestfs.pod:1928
38393 " typedef void (*guestfs_event_callback) (\n"
38396 " uint64_t event,\n"
38397 " int event_handle,\n"
38399 " const char *buf, size_t buf_len,\n"
38400 " const uint64_t *array, size_t array_len);\n"
38405 #: ../src/guestfs.pod:1937
38407 "This is the type of the event callback function that you have to provide."
38411 #: ../src/guestfs.pod:1940
38413 "The basic parameters are: the handle (C<g>), the opaque user pointer "
38414 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
38415 "handle, and C<flags> which in the current API you should ignore."
38419 #: ../src/guestfs.pod:1944
38421 "The remaining parameters contain the event payload (if any). Each event may "
38422 "contain a payload, which usually relates to the event class, but for future "
38423 "proofing your code should be written to handle any payload for any event "
38428 #: ../src/guestfs.pod:1949
38430 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
38431 "there is no message buffer). Note that this message buffer can contain "
38432 "arbitrary 8 bit data, including NUL bytes."
38436 #: ../src/guestfs.pod:1953
38438 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
38439 "moment this is only used for progress messages."
38443 #: ../src/guestfs.pod:1956
38444 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
38448 #: ../src/guestfs.pod:1958
38450 "One motivation for the generic event API was to allow GUI programs to "
38451 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
38452 "unconditionally to C<stderr>."
38456 #: ../src/guestfs.pod:1962
38458 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
38459 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
38460 "messages are not events; you must capture error messages separately)."
38464 #: ../src/guestfs.pod:1967
38466 "Programs have to set up a callback to capture the classes of events of "
38471 #: ../src/guestfs.pod:1970
38475 " guestfs_set_event_callback\n"
38476 " (g, message_callback,\n"
38477 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
38478 " GUESTFS_EVENT_TRACE,\n"
38479 " 0, NULL) == -1)\n"
38480 " if (eh == -1) {\n"
38481 " // handle error in the usual way\n"
38487 #: ../src/guestfs.pod:1980
38489 "The callback can then direct messages to the appropriate place. In this "
38490 "example, messages are directed to syslog:"
38494 #: ../src/guestfs.pod:1983
38498 " message_callback (\n"
38501 " uint64_t event,\n"
38502 " int event_handle,\n"
38504 " const char *buf, size_t buf_len,\n"
38505 " const uint64_t *array, size_t array_len)\n"
38507 " const int priority = LOG_USER|LOG_INFO;\n"
38508 " if (buf_len > 0)\n"
38509 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
38515 #: ../src/guestfs.pod:1998
38516 msgid "CANCELLING LONG TRANSFERS"
38520 #: ../src/guestfs.pod:2000
38522 "Some operations can be cancelled by the caller while they are in progress. "
38523 "Currently only operations that involve uploading or downloading data can be "
38524 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
38525 "parameters in the generator)."
38529 #: ../src/guestfs.pod:2005
38530 msgid "guestfs_user_cancel"
38534 #: ../src/guestfs.pod:2007
38537 " void guestfs_user_cancel (guestfs_h *g);\n"
38542 #: ../src/guestfs.pod:2009
38544 "C<guestfs_user_cancel> cancels the current upload or download operation."
38548 #: ../src/guestfs.pod:2012
38550 "Unlike most other libguestfs calls, this function is signal safe and thread "
38551 "safe. You can call it from a signal handler or from another thread, without "
38552 "needing to do any locking."
38556 #: ../src/guestfs.pod:2016
38558 "The transfer that was in progress (if there is one) will stop shortly "
38559 "afterwards, and will return an error. The errno (see L</"
38560 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
38561 "out if the operation was cancelled or failed because of another error."
38565 #: ../src/guestfs.pod:2022
38567 "No cleanup is performed: for example, if a file was being uploaded then "
38568 "after cancellation there may be a partially uploaded file. It is the "
38569 "caller's responsibility to clean up if necessary."
38573 #: ../src/guestfs.pod:2026
38574 msgid "There are two common places that you might call C<guestfs_user_cancel>."
38578 #: ../src/guestfs.pod:2028
38580 "In an interactive text-based program, you might call it from a C<SIGINT> "
38581 "signal handler so that pressing C<^C> cancels the current operation. (You "
38582 "also need to call L</guestfs_set_pgroup> so that child processes don't "
38583 "receive the C<^C> signal)."
38587 #: ../src/guestfs.pod:2033
38589 "In a graphical program, when the main thread is displaying a progress bar "
38590 "with a cancel button, wire up the cancel button to call this function."
38594 #: ../src/guestfs.pod:2037
38595 msgid "PRIVATE DATA AREA"
38599 #: ../src/guestfs.pod:2039
38601 "You can attach named pieces of private data to the libguestfs handle, fetch "
38602 "them by name, and walk over them, for the lifetime of the handle. This is "
38603 "called the private data area and is only available from the C API."
38607 #: ../src/guestfs.pod:2044
38608 msgid "To attach a named piece of data, use the following call:"
38612 #: ../src/guestfs.pod:2046
38615 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38618 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38622 #: ../src/guestfs.pod:2048
38624 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
38625 "pointer (which can be C<NULL>). Any previous item with the same key is "
38630 #: ../src/guestfs.pod:2052
38632 "You can use any C<key> you want, but your key should I<not> start with an "
38633 "underscore character. Keys beginning with an underscore character are "
38634 "reserved for internal libguestfs purposes (eg. for implementing language "
38635 "bindings). It is recommended that you prefix the key with some unique "
38636 "string to avoid collisions with other users."
38640 #: ../src/guestfs.pod:2058
38641 msgid "To retrieve the pointer, use:"
38645 #: ../src/guestfs.pod:2060
38648 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38651 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38655 #: ../src/guestfs.pod:2062
38657 "This function returns C<NULL> if either no data is found associated with "
38658 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
38663 #: ../src/guestfs.pod:2066
38665 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
38666 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
38667 "all. In particular, libguestfs does I<not> try to free the data when the "
38668 "handle is closed. If the data must be freed, then the caller must either "
38669 "free it before calling L</guestfs_close> or must set up a close callback to "
38670 "do it (see L</GUESTFS_EVENT_CLOSE>)."
38674 #: ../src/guestfs.pod:2073
38675 msgid "To walk over all entries, use these two functions:"
38679 #: ../src/guestfs.pod:2075
38682 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
38687 #: ../src/guestfs.pod:2077
38690 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
38695 #: ../src/guestfs.pod:2079
38697 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
38698 "not have any particular meaning -- keys are not returned in any defined "
38699 "order). A pointer to the key is returned in C<*key_rtn> and the "
38700 "corresponding data pointer is returned from the function. C<NULL> is "
38701 "returned if there are no keys stored in the handle."
38705 #: ../src/guestfs.pod:2085
38707 "C<guestfs_next_private> returns the next key, pointer pair. The return "
38708 "value of this function is also C<NULL> is there are no further entries to "
38713 #: ../src/guestfs.pod:2089
38714 msgid "Notes about walking over entries:"
38718 #: ../src/guestfs.pod:2095
38720 "You must not call C<guestfs_set_private> while walking over the entries."
38724 #: ../src/guestfs.pod:2100
38726 "The handle maintains an internal iterator which is reset when you call "
38727 "C<guestfs_first_private>. This internal iterator is invalidated when you "
38728 "call C<guestfs_set_private>."
38732 #: ../src/guestfs.pod:2106
38733 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
38737 #: ../src/guestfs.pod:2108
38740 " guestfs_set_private (g, key, NULL);\n"
38745 #: ../src/guestfs.pod:2110
38746 msgid "then that C<key> is not returned when walking."
38750 #: ../src/guestfs.pod:2114
38752 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
38753 "C<guestfs_next_private> or C<guestfs_set_private>."
38757 #: ../src/guestfs.pod:2120
38759 "The following example code shows how to print all keys and data pointers "
38760 "that are associated with the handle C<g>:"
38764 #: ../src/guestfs.pod:2123
38767 " const char *key;\n"
38768 " void *data = guestfs_first_private (g, &key);\n"
38769 " while (data != NULL)\n"
38771 " printf (\"key = %s, data = %p\\n\", key, data);\n"
38772 " data = guestfs_next_private (g, &key);\n"
38778 #: ../src/guestfs.pod:2131
38780 "More commonly you are only interested in keys that begin with an application-"
38781 "specific prefix C<foo_>. Modify the loop like so:"
38785 #: ../src/guestfs.pod:2134
38788 " const char *key;\n"
38789 " void *data = guestfs_first_private (g, &key);\n"
38790 " while (data != NULL)\n"
38792 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38793 " printf (\"key = %s, data = %p\\n\", key, data);\n"
38794 " data = guestfs_next_private (g, &key);\n"
38800 #: ../src/guestfs.pod:2143
38802 "If you need to modify keys while walking, then you have to jump back to the "
38803 "beginning of the loop. For example, to delete all keys prefixed with "
38808 #: ../src/guestfs.pod:2147
38811 " const char *key;\n"
38814 " data = guestfs_first_private (g, &key);\n"
38815 " while (data != NULL)\n"
38817 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38819 " guestfs_set_private (g, key, NULL);\n"
38820 " /* note that 'key' pointer is now invalid, and so is\n"
38821 " the internal iterator */\n"
38824 " data = guestfs_next_private (g, &key);\n"
38830 #: ../src/guestfs.pod:2163
38832 "Note that the above loop is guaranteed to terminate because the keys are "
38833 "being deleted, but other manipulations of keys within the loop might not "
38834 "terminate unless you also maintain an indication of which keys have been "
38839 #: ../src/guestfs.pod:2168
38844 #: ../src/guestfs.pod:2170
38846 "The libguestfs C library can be probed using systemtap or DTrace. This is "
38847 "true of any library, not just libguestfs. However libguestfs also contains "
38848 "static markers to help in probing internal operations."
38852 #: ../src/guestfs.pod:2174
38853 msgid "You can list all the static markers by doing:"
38857 #: ../src/guestfs.pod:2176
38860 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
38861 " .provider(\"guestfs\").mark(\"*\")'\n"
38866 #: ../src/guestfs.pod:2179
38868 "B<Note:> These static markers are I<not> part of the stable API and may "
38869 "change in future versions."
38873 #: ../src/guestfs.pod:2182
38874 msgid "SYSTEMTAP SCRIPT EXAMPLE"
38878 #: ../src/guestfs.pod:2184
38880 "This script contains examples of displaying both the static markers and some "
38881 "ordinary C entry points:"
38885 #: ../src/guestfs.pod:2187
38893 #: ../src/guestfs.pod:2189
38896 " function display_time () {\n"
38897 " now = gettimeofday_us ();\n"
38900 " delta = now - last;\n"
38906 #: ../src/guestfs.pod:2196
38909 " printf (\"%d (+%d):\", now, delta);\n"
38915 #: ../src/guestfs.pod:2199
38920 " printf (\"ready\\n\");\n"
38926 #: ../src/guestfs.pod:2204
38929 " /* Display all calls to static markers. */\n"
38930 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38931 " .provider(\"guestfs\").mark(\"*\") ? {\n"
38932 " display_time();\n"
38933 " printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
38939 #: ../src/guestfs.pod:2211
38942 " /* Display all calls to guestfs_mkfs* functions. */\n"
38943 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38944 " .function(\"guestfs_mkfs*\") ? {\n"
38945 " display_time();\n"
38946 " printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
38952 #: ../src/guestfs.pod:2218
38954 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
38955 "program. Note that you either have to be root, or you have to add yourself "
38956 "to several special stap groups. Consult the systemtap documentation for "
38957 "more information."
38961 #: ../src/guestfs.pod:2223
38964 " # stap /tmp/test.stap\n"
38970 #: ../src/guestfs.pod:2226
38971 msgid "In another terminal, run a guestfish command such as this:"
38975 #: ../src/guestfs.pod:2230
38976 msgid "In the first terminal, stap trace output similar to this is shown:"
38980 #: ../src/guestfs.pod:2232
38983 " 1318248056692655 (+0):\tlaunch_start\n"
38984 " 1318248056692850 (+195): launch_build_appliance_start\n"
38985 " 1318248056818285 (+125435): launch_build_appliance_end\n"
38986 " 1318248056838059 (+19774): launch_run_qemu\n"
38987 " 1318248061071167 (+4233108): launch_end\n"
38988 " 1318248061280324 (+209157): guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
38993 #: ../src/guestfs.pod:2239 ../src/guestfs.pod:2244
38998 #: ../src/guestfs.pod:2241
39000 "<!-- old anchor for the next section --> <a name="
39001 "\"state_machine_and_low_level_event_api\"/>"
39003 "<!-- old anchor for the next section --> <a name="
39004 "\"state_machine_and_low_level_event_api\"/>"
39007 #: ../src/guestfs.pod:2246
39008 msgid "ARCHITECTURE"
39009 msgstr "АРХІТЕКТУРА"
39012 #: ../src/guestfs.pod:2248
39014 "Internally, libguestfs is implemented by running an appliance (a special "
39015 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
39016 "process of the main program."
39020 #: ../src/guestfs.pod:2252
39023 " ___________________\n"
39025 " | main program |\n"
39027 " | | child process / appliance\n"
39028 " | | __________________________\n"
39030 " +-------------------+ RPC | +-----------------+ |\n"
39031 " | libguestfs <--------------------> guestfsd | |\n"
39032 " | | | +-----------------+ |\n"
39033 " \\___________________/ | | Linux kernel | |\n"
39034 " | +--^--------------+ |\n"
39035 " \\_________|________________/\n"
39037 " _______v______\n"
39040 " | disk image |\n"
39041 " \\______________/\n"
39046 #: ../src/guestfs.pod:2272
39048 "The library, linked to the main program, creates the child process and hence "
39049 "the appliance in the L</guestfs_launch> function."
39053 #: ../src/guestfs.pod:2275
39055 "Inside the appliance is a Linux kernel and a complete stack of userspace "
39056 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
39057 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
39058 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
39059 "API calls and RPC calls to the daemon. Lastly the disk image(s) are "
39060 "attached to the qemu process which translates device access by the "
39061 "appliance's Linux kernel into accesses to the image."
39065 #: ../src/guestfs.pod:2284
39067 "A common misunderstanding is that the appliance \"is\" the virtual machine. "
39068 "Although the disk image you are attached to might also be used by some "
39069 "virtual machine, libguestfs doesn't know or care about this. (But you will "
39070 "care if both libguestfs's qemu process and your virtual machine are trying "
39071 "to update the disk image at the same time, since these usually results in "
39072 "massive disk corruption)."
39076 #: ../src/guestfs.pod:2291
39077 msgid "STATE MACHINE"
39078 msgstr "СКІНЧЕННИЙ АВТОМАТ"
39081 #: ../src/guestfs.pod:2293
39082 msgid "libguestfs uses a state machine to model the child process:"
39086 #: ../src/guestfs.pod:2295
39090 " guestfs_create\n"
39098 " / | \\ \\ guestfs_launch\n"
39099 " / | _\\__V______\n"
39101 " / | | LAUNCHING |\n"
39102 " / | \\___________/\n"
39104 " / | guestfs_launch\n"
39106 " ______ / __|____V\n"
39107 " / \\ ------> / \\\n"
39108 " | BUSY | | READY |\n"
39109 " \\______/ <------ \\________/\n"
39114 #: ../src/guestfs.pod:2317
39116 "The normal transitions are (1) CONFIG (when the handle is created, but there "
39117 "is no child process), (2) LAUNCHING (when the child process is booting up), "
39118 "(3) alternating between READY and BUSY as commands are issued to, and "
39119 "carried out by, the child process."
39123 #: ../src/guestfs.pod:2322
39125 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
39126 "asynchronously at any time (eg. due to some internal error), and that causes "
39127 "the state to transition back to CONFIG."
39131 #: ../src/guestfs.pod:2326
39133 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
39134 "issued when in the CONFIG state."
39138 #: ../src/guestfs.pod:2329
39140 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
39141 "L</guestfs_launch> blocks until the child process is READY to accept "
39142 "commands (or until some failure or timeout). L</guestfs_launch> internally "
39143 "moves the state from CONFIG to LAUNCHING while it is running."
39147 #: ../src/guestfs.pod:2335
39149 "API actions such as L</guestfs_mount> can only be issued when in the READY "
39150 "state. These API calls block waiting for the command to be carried out (ie. "
39151 "the state to transition to BUSY and then back to READY). There are no non-"
39152 "blocking versions, and no way to issue more than one command per handle at "
39157 #: ../src/guestfs.pod:2341
39159 "Finally, the child process sends asynchronous messages back to the main "
39160 "program, such as kernel log messages. You can register a callback to "
39161 "receive these messages."
39165 #: ../src/guestfs.pod:2345
39170 #: ../src/guestfs.pod:2347
39171 msgid "APPLIANCE BOOT PROCESS"
39175 #: ../src/guestfs.pod:2349
39177 "This process has evolved and continues to evolve. The description here "
39178 "corresponds only to the current version of libguestfs and is provided for "
39179 "information only."
39183 #: ../src/guestfs.pod:2353
39185 "In order to follow the stages involved below, enable libguestfs debugging "
39186 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
39190 #: ../src/guestfs.pod:2358
39191 msgid "Create the appliance"
39195 #: ../src/guestfs.pod:2360
39197 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
39198 "initrd and the appliance."
39202 #: ../src/guestfs.pod:2363
39204 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
39205 "directory if C<TMPDIR> is set)."
39209 #: ../src/guestfs.pod:2366
39211 "For a complete description of how the appliance is created and cached, read "
39212 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
39216 #: ../src/guestfs.pod:2370
39217 msgid "Start qemu and boot the kernel"
39221 #: ../src/guestfs.pod:2372
39222 msgid "qemu is invoked to boot the kernel."
39226 #: ../src/guestfs.pod:2374
39227 msgid "Run the initrd"
39231 #: ../src/guestfs.pod:2376
39233 "C<febootstrap-supermin-helper> builds a small initrd. The initrd is not the "
39234 "appliance. The purpose of the initrd is to load enough kernel modules in "
39235 "order that the appliance itself can be mounted and started."
39239 #: ../src/guestfs.pod:2380
39241 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
39246 #: ../src/guestfs.pod:2383
39248 "When the initrd has started you will see messages showing that kernel "
39249 "modules are being loaded, similar to this:"
39253 #: ../src/guestfs.pod:2386
39256 " febootstrap: ext2 mini initrd starting up\n"
39257 " febootstrap: mounting /sys\n"
39258 " febootstrap: internal insmod libcrc32c.ko\n"
39259 " febootstrap: internal insmod crc32c-intel.ko\n"
39264 #: ../src/guestfs.pod:2391
39265 msgid "Find and mount the appliance device"
39269 #: ../src/guestfs.pod:2393
39271 "The appliance is a sparse file containing an ext2 filesystem which contains "
39272 "a familiar (although reduced in size) Linux operating system. It would "
39273 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
39277 #: ../src/guestfs.pod:2397
39279 "The regular disks being inspected by libguestfs are the first devices "
39280 "exposed by qemu (eg. as C</dev/vda>)."
39284 #: ../src/guestfs.pod:2400
39286 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
39287 "there was only one regular disk)."
39291 #: ../src/guestfs.pod:2403
39293 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
39294 "and switch root into the appliance, and run C</init> from the appliance."
39298 #: ../src/guestfs.pod:2407
39299 msgid "If this works successfully you will see messages such as:"
39303 #: ../src/guestfs.pod:2409
39306 " febootstrap: picked /sys/block/vdb/dev as root device\n"
39307 " febootstrap: creating /dev/root as block special 252:16\n"
39308 " febootstrap: mounting new root on /root\n"
39309 " febootstrap: chroot\n"
39310 " Starting /init script ...\n"
39315 #: ../src/guestfs.pod:2415
39317 "Note that C<Starting /init script ...> indicates that the appliance's init "
39318 "script is now running."
39322 #: ../src/guestfs.pod:2418
39323 msgid "Initialize the appliance"
39327 #: ../src/guestfs.pod:2420
39329 "The appliance itself now initializes itself. This involves starting certain "
39330 "processes like C<udev>, possibly printing some debug information, and "
39331 "finally running the daemon (C<guestfsd>)."
39335 #: ../src/guestfs.pod:2424
39340 #: ../src/guestfs.pod:2426
39342 "Finally the daemon (C<guestfsd>) runs inside the appliance. If it runs you "
39347 #: ../src/guestfs.pod:2429
39350 " verbose daemon enabled\n"
39355 #: ../src/guestfs.pod:2431
39357 "The daemon expects to see a named virtio-serial port exposed by qemu and "
39358 "connected on the other end to the library."
39362 #: ../src/guestfs.pod:2434
39364 "The daemon connects to this port (and hence to the library) and sends a four "
39365 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
39366 "protocol (see below)."
39370 #: ../src/guestfs.pod:2440
39371 msgid "COMMUNICATION PROTOCOL"
39375 #: ../src/guestfs.pod:2442
39377 "Don't rely on using this protocol directly. This section documents how it "
39378 "currently works, but it may change at any time."
39382 #: ../src/guestfs.pod:2445
39384 "The protocol used to talk between the library and the daemon running inside "
39385 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
39386 "1014, RFC 1832, RFC 4506)."
39390 #: ../src/guestfs.pod:2449
39392 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
39393 "this file is automatically generated)."
39397 #: ../src/guestfs.pod:2452
39399 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
39400 "and C<FileOut> parameters, which are handled with very simple request/reply "
39401 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
39402 "parameters, which use the same request and reply messages, but they may also "
39403 "be followed by files sent using a chunked encoding."
39407 #: ../src/guestfs.pod:2459
39408 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
39412 #: ../src/guestfs.pod:2461
39413 msgid "For ordinary functions, the request message is:"
39417 #: ../src/guestfs.pod:2463
39420 " total length (header + arguments,\n"
39421 " but not including the length word itself)\n"
39422 " struct guestfs_message_header (encoded as XDR)\n"
39423 " struct guestfs_<foo>_args (encoded as XDR)\n"
39428 #: ../src/guestfs.pod:2468
39430 "The total length field allows the daemon to allocate a fixed size buffer "
39431 "into which it slurps the rest of the message. As a result, the total length "
39432 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
39433 "effective size of any request is limited to somewhere under this size."
39437 #: ../src/guestfs.pod:2474
39439 "Note also that many functions don't take any arguments, in which case the "
39440 "C<guestfs_I<foo>_args> is completely omitted."
39444 #: ../src/guestfs.pod:2477
39446 "The header contains the procedure number (C<guestfs_proc>) which is how the "
39447 "receiver knows what type of args structure to expect, or none at all."
39451 #: ../src/guestfs.pod:2481
39453 "For functions that take optional arguments, the optional arguments are "
39454 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
39455 "arguments. A bitmask in the header indicates which optional arguments are "
39456 "meaningful. The bitmask is also checked to see if it contains bits set "
39457 "which the daemon does not know about (eg. if more optional arguments were "
39458 "added in a later version of the library), and this causes the call to be "
39463 #: ../src/guestfs.pod:2489
39464 msgid "The reply message for ordinary functions is:"
39468 #: ../src/guestfs.pod:2491
39471 " total length (header + ret,\n"
39472 " but not including the length word itself)\n"
39473 " struct guestfs_message_header (encoded as XDR)\n"
39474 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39479 #: ../src/guestfs.pod:2496
39481 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
39482 "functions that return no formal return values."
39486 #: ../src/guestfs.pod:2499
39488 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
39492 #: ../src/guestfs.pod:2502
39494 "In the case of an error, a flag is set in the header, and the reply message "
39495 "is slightly changed:"
39499 #: ../src/guestfs.pod:2505
39502 " total length (header + error,\n"
39503 " but not including the length word itself)\n"
39504 " struct guestfs_message_header (encoded as XDR)\n"
39505 " struct guestfs_message_error (encoded as XDR)\n"
39510 #: ../src/guestfs.pod:2510
39512 "The C<guestfs_message_error> structure contains the error message as a "
39517 #: ../src/guestfs.pod:2513
39518 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
39522 #: ../src/guestfs.pod:2515
39524 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
39525 "The normal request message is sent (see above). However this is followed by "
39526 "a sequence of file chunks."
39530 #: ../src/guestfs.pod:2519
39533 " total length (header + arguments,\n"
39534 " but not including the length word itself,\n"
39535 " and not including the chunks)\n"
39536 " struct guestfs_message_header (encoded as XDR)\n"
39537 " struct guestfs_<foo>_args (encoded as XDR)\n"
39538 " sequence of chunks for FileIn param #0\n"
39539 " sequence of chunks for FileIn param #1 etc.\n"
39544 #: ../src/guestfs.pod:2527
39545 msgid "The \"sequence of chunks\" is:"
39549 #: ../src/guestfs.pod:2529
39552 " length of chunk (not including length word itself)\n"
39553 " struct guestfs_chunk (encoded as XDR)\n"
39554 " length of chunk\n"
39555 " struct guestfs_chunk (encoded as XDR)\n"
39557 " length of chunk\n"
39558 " struct guestfs_chunk (with data.data_len == 0)\n"
39563 #: ../src/guestfs.pod:2537
39565 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
39566 "is set in the final chunk to indicate either successful completion or early "
39571 #: ../src/guestfs.pod:2541
39573 "At time of writing there are no functions that have more than one FileIn "
39574 "parameter. However this is (theoretically) supported, by sending the "
39575 "sequence of chunks for each FileIn parameter one after another (from left to "
39580 #: ../src/guestfs.pod:2546
39582 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
39583 "transfer. The library does this by sending a chunk with a special flag set "
39584 "to indicate cancellation. When the daemon sees this, it cancels the whole "
39585 "RPC, does I<not> send any reply, and goes back to reading the next request."
39589 #: ../src/guestfs.pod:2552
39591 "The daemon may also cancel. It does this by writing a special word "
39592 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
39593 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
39594 "cancel chunk). The special word is chosen so that even if cancellation "
39595 "happens right at the end of the transfer (after the library has finished "
39596 "writing and has started listening for the reply), the \"spurious\" cancel "
39597 "flag will not be confused with the reply message."
39601 #: ../src/guestfs.pod:2561
39603 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
39604 "limit), and also files where the size is not known in advance (eg. from "
39605 "pipes or sockets). However the chunks are rather small "
39606 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
39607 "to keep much in memory."
39611 #: ../src/guestfs.pod:2567
39612 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
39616 #: ../src/guestfs.pod:2569
39618 "The protocol for FileOut parameters is exactly the same as for FileIn "
39619 "parameters, but with the roles of daemon and library reversed."
39623 #: ../src/guestfs.pod:2572
39626 " total length (header + ret,\n"
39627 " but not including the length word itself,\n"
39628 " and not including the chunks)\n"
39629 " struct guestfs_message_header (encoded as XDR)\n"
39630 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39631 " sequence of chunks for FileOut param #0\n"
39632 " sequence of chunks for FileOut param #1 etc.\n"
39637 #: ../src/guestfs.pod:2580
39638 msgid "INITIAL MESSAGE"
39642 #: ../src/guestfs.pod:2582
39644 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
39645 "which indicates that the guest and daemon is alive. This is what L</"
39646 "guestfs_launch> waits for."
39650 #: ../src/guestfs.pod:2586
39651 msgid "PROGRESS NOTIFICATION MESSAGES"
39655 #: ../src/guestfs.pod:2588
39657 "The daemon may send progress notification messages at any time. These are "
39658 "distinguished by the normal length word being replaced by "
39659 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
39663 #: ../src/guestfs.pod:2592
39665 "The library turns them into progress callbacks (see L</"
39666 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
39671 #: ../src/guestfs.pod:2596
39673 "The daemon self-limits the frequency of progress messages it sends (see "
39674 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
39679 #: ../src/guestfs.pod:2600
39680 msgid "LIBGUESTFS VERSION NUMBERS"
39684 #: ../src/guestfs.pod:2602
39686 "Since April 2010, libguestfs has started to make separate development and "
39687 "stable releases, along with corresponding branches in our git repository. "
39688 "These separate releases can be identified by version number:"
39692 #: ../src/guestfs.pod:2607
39695 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
39696 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
39702 " | `-------- sub-version\n"
39704 " `------ always '1' because we don't change the ABI\n"
39709 #: ../src/guestfs.pod:2618
39710 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
39714 #: ../src/guestfs.pod:2620
39716 "As time passes we cherry pick fixes from the development branch and backport "
39717 "those into the stable branch, the effect being that the stable branch should "
39718 "get more stable and less buggy over time. So the stable releases are ideal "
39719 "for people who don't need new features but would just like the software to "
39724 #: ../src/guestfs.pod:2626
39725 msgid "Our criteria for backporting changes are:"
39729 #: ../src/guestfs.pod:2632
39731 "Documentation changes which don't affect any code are backported unless the "
39732 "documentation refers to a future feature which is not in stable."
39736 #: ../src/guestfs.pod:2638
39738 "Bug fixes which are not controversial, fix obvious problems, and have been "
39739 "well tested are backported."
39743 #: ../src/guestfs.pod:2643
39745 "Simple rearrangements of code which shouldn't affect how it works get "
39746 "backported. This is so that the code in the two branches doesn't get too "
39747 "far out of step, allowing us to backport future fixes more easily."
39751 #: ../src/guestfs.pod:2649
39753 "We I<don't> backport new features, new APIs, new tools etc, except in one "
39754 "exceptional case: the new feature is required in order to implement an "
39755 "important bug fix."
39759 #: ../src/guestfs.pod:2655
39761 "A new stable branch starts when we think the new features in development are "
39762 "substantial and compelling enough over the current stable branch to warrant "
39763 "it. When that happens we create new stable and development versions 1.N.0 "
39764 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
39765 "stable at this point, but by backporting fixes from development, that branch "
39766 "will stabilize over time."
39770 #: ../src/guestfs.pod:2663
39771 msgid "EXTENDING LIBGUESTFS"
39775 #: ../src/guestfs.pod:2665
39776 msgid "ADDING A NEW API ACTION"
39780 #: ../src/guestfs.pod:2667
39782 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
39783 "documentation) are generated, and this makes it easy to extend the "
39788 #: ../src/guestfs.pod:2671
39789 msgid "To add a new API action there are two changes:"
39793 #: ../src/guestfs.pod:2677
39795 "You need to add a description of the call (name, parameters, return type, "
39796 "tests, documentation) to C<generator/generator_actions.ml>."
39800 #: ../src/guestfs.pod:2680
39802 "There are two sorts of API action, depending on whether the call goes "
39803 "through to the daemon in the appliance, or is serviced entirely by the "
39804 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
39805 "former, since the sync is done in the appliance. L</guestfs_set_trace> is "
39806 "an example of the latter, since a trace flag is maintained in the handle and "
39807 "all tracing is done on the library side."
39811 #: ../src/guestfs.pod:2688
39813 "Most new actions are of the first type, and get added to the "
39814 "C<daemon_functions> list. Each function has a unique procedure number used "
39815 "in the RPC protocol which is assigned to that action when we publish "
39816 "libguestfs and cannot be reused. Take the latest procedure number and "
39821 #: ../src/guestfs.pod:2694
39823 "For library-only actions of the second type, add to the "
39824 "C<non_daemon_functions> list. Since these functions are serviced by the "
39825 "library and do not travel over the RPC mechanism to the daemon, these "
39826 "functions do not need a procedure number, and so the procedure number is set "
39831 #: ../src/guestfs.pod:2702
39832 msgid "Implement the action (in C):"
39836 #: ../src/guestfs.pod:2704
39838 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
39839 "C<daemon/> directory."
39843 #: ../src/guestfs.pod:2707
39845 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
39846 "(note: double underscore) in the C<src/> directory."
39850 #: ../src/guestfs.pod:2710
39851 msgid "In either case, use another function as an example of what to do."
39855 #: ../src/guestfs.pod:2714
39856 msgid "After making these changes, use C<make> to compile."
39860 #: ../src/guestfs.pod:2716
39862 "Note that you don't need to implement the RPC, language bindings, manual "
39863 "pages or anything else. It's all automatically generated from the OCaml "
39868 #: ../src/guestfs.pod:2720
39869 msgid "ADDING TESTS FOR AN API ACTION"
39873 #: ../src/guestfs.pod:2722
39875 "You can supply zero or as many tests as you want per API call. The tests "
39876 "can either be added as part of the API description (C<generator/"
39877 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
39878 "into C<regressions/>. Note that adding a script to C<regressions/> is "
39879 "slower, so if possible use the first method."
39883 #: ../src/guestfs.pod:2728
39885 "The following describes the test environment used when you add an API test "
39886 "in C<generator_actions.ml>."
39890 #: ../src/guestfs.pod:2731
39891 msgid "The test environment has 4 block devices:"
39895 #: ../src/guestfs.pod:2735
39896 msgid "C</dev/sda> 500MB"
39897 msgstr "C</dev/sda> 500 МБ"
39900 #: ../src/guestfs.pod:2737
39901 msgid "General block device for testing."
39905 #: ../src/guestfs.pod:2739
39906 msgid "C</dev/sdb> 50MB"
39907 msgstr "C</dev/sdb> 50 МБ"
39910 #: ../src/guestfs.pod:2741
39912 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
39917 #: ../src/guestfs.pod:2744
39918 msgid "C</dev/sdc> 10MB"
39919 msgstr "C</dev/sdc> 10 МБ"
39922 #: ../src/guestfs.pod:2746
39923 msgid "Used in a few tests where two block devices are needed."
39927 #: ../src/guestfs.pod:2748
39928 msgid "C</dev/sdd>"
39929 msgstr "C</dev/sdd>"
39932 #: ../src/guestfs.pod:2750
39933 msgid "ISO with fixed content (see C<images/test.iso>)."
39937 #: ../src/guestfs.pod:2754
39939 "To be able to run the tests in a reasonable amount of time, the libguestfs "
39940 "appliance and block devices are reused between tests. So don't try testing "
39941 "L</guestfs_kill_subprocess> :-x"
39945 #: ../src/guestfs.pod:2758
39947 "Each test starts with an initial scenario, selected using one of the "
39948 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
39949 "initialize the disks mentioned above in a particular way as documented in "
39950 "C<generator_types.ml>. You should not assume anything about the previous "
39951 "contents of other disks that are not initialized."
39955 #: ../src/guestfs.pod:2764
39957 "You can add a prerequisite clause to any individual test. This is a run-"
39958 "time check, which, if it fails, causes the test to be skipped. Useful if "
39959 "testing a command which might not work on all variations of libguestfs "
39960 "builds. A test that has prerequisite of C<Always> means to run "
39965 #: ../src/guestfs.pod:2770
39967 "In addition, packagers can skip individual tests by setting environment "
39968 "variables before running C<make check>."
39972 #: ../src/guestfs.pod:2773
39975 " SKIP_TEST_<CMD>_<NUM>=1\n"
39980 #: ../src/guestfs.pod:2775
39981 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
39985 #: ../src/guestfs.pod:2777
39990 #: ../src/guestfs.pod:2779
39993 " SKIP_TEST_<CMD>=1\n"
39998 #: ../src/guestfs.pod:2781
39999 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
40003 #: ../src/guestfs.pod:2783
40004 msgid "Packagers can run only certain tests by setting for example:"
40008 #: ../src/guestfs.pod:2785
40011 " TEST_ONLY=\"vfs_type zerofree\"\n"
40016 #: ../src/guestfs.pod:2787
40018 "See C<capitests/tests.c> for more details of how these environment variables "
40023 #: ../src/guestfs.pod:2790
40024 msgid "DEBUGGING NEW API ACTIONS"
40028 #: ../src/guestfs.pod:2792
40029 msgid "Test new actions work before submitting them."
40033 #: ../src/guestfs.pod:2794
40034 msgid "You can use guestfish to try out new commands."
40038 #: ../src/guestfs.pod:2796
40040 "Debugging the daemon is a problem because it runs inside a minimal "
40041 "environment. However you can fprintf messages in the daemon to stderr, and "
40042 "they will show up if you use C<guestfish -v>."
40046 #: ../src/guestfs.pod:2800
40047 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
40051 #: ../src/guestfs.pod:2802
40053 "Our C source code generally adheres to some basic code-formatting "
40054 "conventions. The existing code base is not totally consistent on this "
40055 "front, but we do prefer that contributed code be formatted similarly. In "
40056 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
40057 "indentation level, and other than that, follow the K&R style."
40061 #: ../src/guestfs.pod:2808
40063 "If you use Emacs, add the following to one of one of your start-up files (e."
40064 "g., ~/.emacs), to help ensure that you get indentation right:"
40068 #: ../src/guestfs.pod:2811
40071 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
40072 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
40073 " (add-hook 'find-file-hook\n"
40074 " '(lambda () (if (and buffer-file-name\n"
40075 " (string-match \"/libguestfs\\\\>\"\n"
40076 " (buffer-file-name))\n"
40077 " (not (string-equal mode-name \"Change Log\"))\n"
40078 " (not (string-equal mode-name \"Makefile\")))\n"
40079 " (setq indent-tabs-mode nil))))\n"
40084 #: ../src/guestfs.pod:2821
40087 " ;;; When editing C sources in libguestfs, use this style.\n"
40088 " (defun libguestfs-c-mode ()\n"
40089 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
40091 " (c-set-style \"K&R\")\n"
40092 " (setq c-indent-level 2)\n"
40093 " (setq c-basic-offset 2))\n"
40094 " (add-hook 'c-mode-hook\n"
40095 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
40096 " (buffer-file-name))\n"
40097 " (libguestfs-c-mode))))\n"
40102 #: ../src/guestfs.pod:2833
40103 msgid "Enable warnings when compiling (and fix any problems this finds):"
40107 #: ../src/guestfs.pod:2836
40110 " ./configure --enable-gcc-warnings\n"
40113 " ./configure --enable-gcc-warnings\n"
40117 #: ../src/guestfs.pod:2838
40118 msgid "Useful targets are:"
40122 #: ../src/guestfs.pod:2840
40125 " make syntax-check # checks the syntax of the C code\n"
40126 " make check # runs the test suite\n"
40131 #: ../src/guestfs.pod:2843
40132 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
40136 #: ../src/guestfs.pod:2845
40138 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
40139 "which are used to do shell quoting."
40143 #: ../src/guestfs.pod:2850
40148 #: ../src/guestfs.pod:2852
40150 "Simple shell quoted string. Any spaces or other shell characters are "
40155 #: ../src/guestfs.pod:2855
40160 #: ../src/guestfs.pod:2857
40162 "Same as C<%Q> except the string is treated as a path which is prefixed by "
40167 #: ../src/guestfs.pod:2864
40170 " asprintf (&cmd, \"cat %R\", path);\n"
40173 " asprintf (&cmd, \"cat %R\", path);\n"
40177 #: ../src/guestfs.pod:2866
40178 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
40182 #: ../src/guestfs.pod:2868
40184 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
40185 "{,r,v,rv}()> functions. These parameters do NOT need to be quoted because "
40186 "they are not passed via the shell (instead, straight to exec). You probably "
40187 "want to use the C<sysroot_path()> function however."
40191 #: ../src/guestfs.pod:2874
40192 msgid "SUBMITTING YOUR NEW API ACTIONS"
40196 #: ../src/guestfs.pod:2876
40198 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
40199 "libguestfs> and CC to L<rjones@redhat.com>."
40203 #: ../src/guestfs.pod:2880
40204 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
40208 #: ../src/guestfs.pod:2882
40209 msgid "We support i18n (gettext anyhow) in the library."
40213 #: ../src/guestfs.pod:2884
40215 "However many messages come from the daemon, and we don't translate those at "
40216 "the moment. One reason is that the appliance generally has all locale files "
40217 "removed from it, because they take up a lot of space. So we'd have to readd "
40218 "some of those, as well as copying our PO files into the appliance."
40222 #: ../src/guestfs.pod:2890
40224 "Debugging messages are never translated, since they are intended for the "
40229 #: ../src/guestfs.pod:2893
40230 msgid "SOURCE CODE SUBDIRECTORIES"
40234 #: ../src/guestfs.pod:2897
40239 #: ../src/guestfs.pod:2899
40240 msgid "L<virt-alignment-scan(1)> command and documentation."
40244 #: ../src/guestfs.pod:2903
40245 msgid "The libguestfs appliance, build scripts and so on."
40249 #: ../src/guestfs.pod:2905
40250 msgid "C<capitests>"
40251 msgstr "C<capitests>"
40254 #: ../src/guestfs.pod:2907
40255 msgid "Automated tests of the C API."
40259 #: ../src/guestfs.pod:2909
40264 #: ../src/guestfs.pod:2911
40266 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
40271 #: ../src/guestfs.pod:2914
40273 msgstr "C<caution>"
40276 #: ../src/guestfs.pod:2916
40278 "Safety and liveness tests of components that libguestfs depends upon (not of "
40279 "libguestfs itself). Mainly this is for qemu and the kernel."
40283 #: ../src/guestfs.pod:2919
40288 #: ../src/guestfs.pod:2921
40290 "Tools for cloning virtual machines. Currently contains L<virt-sysprep(1)> "
40291 "command and documentation."
40295 #: ../src/guestfs.pod:2924
40297 msgstr "C<contrib>"
40300 #: ../src/guestfs.pod:2926
40301 msgid "Outside contributions, experimental parts."
40305 #: ../src/guestfs.pod:2928
40310 #: ../src/guestfs.pod:2930
40312 "The daemon that runs inside the libguestfs appliance and carries out actions."
40316 #: ../src/guestfs.pod:2933
40321 #: ../src/guestfs.pod:2935
40322 msgid "L<virt-df(1)> command and documentation."
40326 #: ../src/guestfs.pod:2937
40331 #: ../src/guestfs.pod:2939
40332 msgid "L<virt-edit(1)> command and documentation."
40336 #: ../src/guestfs.pod:2941
40337 msgid "C<examples>"
40338 msgstr "C<examples>"
40341 #: ../src/guestfs.pod:2943
40342 msgid "C API example code."
40343 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
40346 #: ../src/guestfs.pod:2945
40351 #: ../src/guestfs.pod:2947
40353 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
40354 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
40355 "L<virt-tar-out(1)>."
40359 #: ../src/guestfs.pod:2951
40364 #: ../src/guestfs.pod:2953
40366 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
40370 #: ../src/guestfs.pod:2955
40371 msgid "C<generator>"
40372 msgstr "C<generator>"
40375 #: ../src/guestfs.pod:2957
40377 "The crucially important generator, used to automatically generate large "
40378 "amounts of boilerplate C code for things like RPC and bindings."
40382 #: ../src/guestfs.pod:2960
40387 #: ../src/guestfs.pod:2962
40388 msgid "Files used by the test suite."
40392 #: ../src/guestfs.pod:2964
40393 msgid "Some \"phony\" guest images which we test against."
40397 #: ../src/guestfs.pod:2966
40398 msgid "C<inspector>"
40399 msgstr "C<inspector>"
40402 #: ../src/guestfs.pod:2968
40403 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
40407 #: ../src/guestfs.pod:2970
40412 #: ../src/guestfs.pod:2972
40413 msgid "Logo used on the website. The fish is called Arthur by the way."
40417 #: ../src/guestfs.pod:2974
40422 #: ../src/guestfs.pod:2976
40423 msgid "M4 macros used by autoconf."
40427 #: ../src/guestfs.pod:2978
40432 #: ../src/guestfs.pod:2980
40433 msgid "Translations of simple gettext strings."
40434 msgstr "Переклади простих рядків gettext."
40437 #: ../src/guestfs.pod:2982
40439 msgstr "C<po-docs>"
40442 #: ../src/guestfs.pod:2984
40444 "The build infrastructure and PO files for translations of manpages and POD "
40445 "files. Eventually this will be combined with the C<po> directory, but that "
40446 "is rather complicated."
40450 #: ../src/guestfs.pod:2988
40451 msgid "C<regressions>"
40452 msgstr "C<regressions>"
40455 #: ../src/guestfs.pod:2990
40456 msgid "Regression tests."
40457 msgstr "Тести на регресії."
40460 #: ../src/guestfs.pod:2992
40465 #: ../src/guestfs.pod:2994
40466 msgid "L<virt-rescue(1)> command and documentation."
40470 #: ../src/guestfs.pod:2996
40475 #: ../src/guestfs.pod:2998
40476 msgid "L<virt-resize(1)> command and documentation."
40480 #: ../src/guestfs.pod:3000
40481 msgid "C<sparsify>"
40485 #: ../src/guestfs.pod:3002
40486 msgid "L<virt-sparsify(1)> command and documentation."
40490 #: ../src/guestfs.pod:3004
40495 #: ../src/guestfs.pod:3006
40496 msgid "Source code to the C library."
40500 #: ../src/guestfs.pod:3008
40505 #: ../src/guestfs.pod:3010
40507 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
40511 #: ../src/guestfs.pod:3012
40512 msgid "C<test-tool>"
40513 msgstr "C<test-tool>"
40516 #: ../src/guestfs.pod:3014
40518 "Test tool for end users to test if their qemu/kernel combination will work "
40523 #: ../src/guestfs.pod:3017
40528 #: ../src/guestfs.pod:3019
40533 #: ../src/guestfs.pod:3021
40535 msgstr "C<haskell>"
40538 #: ../src/guestfs.pod:3023
40543 #: ../src/guestfs.pod:3025
40548 #: ../src/guestfs.pod:3027
40553 #: ../src/guestfs.pod:3029
40558 #: ../src/guestfs.pod:3031
40563 #: ../src/guestfs.pod:3033
40568 #: ../src/guestfs.pod:3035
40569 msgid "Language bindings."
40570 msgstr "Прив’язки до мов програмування."
40573 #: ../src/guestfs.pod:3039
40574 msgid "MAKING A STABLE RELEASE"
40578 #: ../src/guestfs.pod:3041
40580 "When we make a stable release, there are several steps documented here. See "
40581 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
40586 #: ../src/guestfs.pod:3049
40588 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
40592 #: ../src/guestfs.pod:3054
40593 msgid "Finalize RELEASE-NOTES."
40597 #: ../src/guestfs.pod:3058
40598 msgid "Update ROADMAP."
40602 #: ../src/guestfs.pod:3062
40603 msgid "Run C<src/api-support/update-from-tarballs.sh>."
40607 #: ../src/guestfs.pod:3066
40608 msgid "Push and pull from Transifex."
40612 #: ../src/guestfs.pod:3068
40617 #: ../src/guestfs.pod:3070
40625 #: ../src/guestfs.pod:3072
40626 msgid "to push the latest POT files to Transifex. Then run:"
40630 #: ../src/guestfs.pod:3074
40638 #: ../src/guestfs.pod:3076
40639 msgid "which is a wrapper to pull the latest translated C<*.po> files."
40643 #: ../src/guestfs.pod:3080
40645 "Create new stable and development directories under L<http://libguestfs.org/"
40650 #: ../src/guestfs.pod:3085
40651 msgid "Create the branch in git:"
40655 #: ../src/guestfs.pod:3087
40658 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
40659 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
40660 " git branch stable-1.XX\n"
40661 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
40666 #: ../src/guestfs.pod:3094
40671 #: ../src/guestfs.pod:3096
40672 msgid "PROTOCOL LIMITS"
40673 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
40676 #: ../src/guestfs.pod:3098
40678 "Internally libguestfs uses a message-based protocol to pass API calls and "
40679 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
40680 "plenty more detail about this). The maximum message size used by the "
40681 "protocol is slightly less than 4 MB. For some API calls you may need to be "
40682 "aware of this limit. The API calls which may be affected are individually "
40683 "documented, with a link back to this section of the documentation."
40687 #: ../src/guestfs.pod:3106
40689 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
40690 "a simple string. Because this string is at some point internally encoded as "
40691 "a message, the maximum size that it can return is slightly under 4 MB. If "
40692 "the requested file is larger than this then you will get an error."
40696 #: ../src/guestfs.pod:3112
40698 "In order to transfer large files into and out of the guest filesystem, you "
40699 "need to use particular calls that support this. The sections L</UPLOADING> "
40700 "and L</DOWNLOADING> document how to do this."
40704 #: ../src/guestfs.pod:3116
40706 "You might also consider mounting the disk image using our FUSE filesystem "
40707 "support (L<guestmount(1)>)."
40711 #: ../src/guestfs.pod:3119
40712 msgid "MAXIMUM NUMBER OF DISKS"
40716 #: ../src/guestfs.pod:3121
40717 msgid "When using virtio disks (the default) the current limit is B<25> disks."
40721 #: ../src/guestfs.pod:3124
40723 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
40724 "slots. However febootstrap only understands disks with names C</dev/vda> "
40725 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
40730 #: ../src/guestfs.pod:3129
40732 "We are working to substantially raise this limit in future versions but it "
40733 "requires complex changes to qemu."
40737 #: ../src/guestfs.pod:3132
40739 "In future versions of libguestfs it should also be possible to \"hot plug\" "
40740 "disks (add and remove disks after calling L</guestfs_launch>). This also "
40741 "requires changes to qemu."
40745 #: ../src/guestfs.pod:3136
40746 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
40750 #: ../src/guestfs.pod:3138
40751 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
40755 #: ../src/guestfs.pod:3140
40757 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
40758 "vda>, and C</dev/vda1> through C</dev/vda15>)."
40762 #: ../src/guestfs.pod:3143
40764 "If you attach a disk with more than 15 partitions, the extra partitions are "
40765 "ignored by libguestfs."
40769 #: ../src/guestfs.pod:3146
40770 msgid "MAXIMUM SIZE OF A DISK"
40774 #: ../src/guestfs.pod:3148
40775 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
40779 #: ../src/guestfs.pod:3150
40781 "We have tested block devices up to 1 exabyte (2**60 or "
40782 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
40787 #: ../src/guestfs.pod:3154
40789 "Although libguestfs probably does not impose any limit, the underlying host "
40790 "storage will. If you store disk images on a host ext4 filesystem, then the "
40791 "maximum size will be limited by the maximum ext4 file size (currently 16 "
40792 "TB). If you store disk images as host logical volumes then you are limited "
40793 "by the maximum size of an LV."
40797 #: ../src/guestfs.pod:3160
40799 "For the hugest disk image files, we recommend using XFS on the host for "
40804 #: ../src/guestfs.pod:3163
40805 msgid "MAXIMUM SIZE OF A PARTITION"
40809 #: ../src/guestfs.pod:3165
40811 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
40812 "numbers. Assuming a 512 byte sector size, this means that MBR cannot "
40813 "address a partition located beyond 2 TB on the disk."
40817 #: ../src/guestfs.pod:3169
40819 "It is recommended that you use GPT partitions on disks which are larger than "
40820 "this size. GPT uses 64 bit sector numbers and so can address partitions "
40821 "which are theoretically larger than the largest disk we could support."
40825 #: ../src/guestfs.pod:3174
40826 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
40830 #: ../src/guestfs.pod:3176
40832 "This depends on the filesystem type. libguestfs itself does not impose any "
40833 "known limit. Consult Wikipedia or the filesystem documentation to find out "
40834 "what these limits are."
40838 #: ../src/guestfs.pod:3180
40839 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
40843 #: ../src/guestfs.pod:3182
40845 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
40846 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
40847 "uploads and downloads."
40851 #: ../src/guestfs.pod:3186
40852 msgid "INSPECTION LIMITS"
40856 #: ../src/guestfs.pod:3188
40858 "The inspection code has several arbitrary limits on things like the size of "
40859 "Windows Registry hive it will read, and the length of product name. These "
40860 "are intended to stop a malicious guest from consuming arbitrary amounts of "
40861 "memory and disk space on the host, and should not be reached in practice. "
40862 "See the source code for more information."
40866 #: ../src/guestfs.pod:3214
40868 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
40869 "effect as calling C<guestfs_set_verbose (g, 1)>."
40873 #: ../src/guestfs.pod:3226
40875 "Set the path that libguestfs uses to search for a supermin appliance. See "
40876 "the discussion of paths in section L</PATH> above."
40880 #: ../src/guestfs.pod:3235
40881 msgid "See also L</QEMU WRAPPERS> above."
40885 #: ../src/guestfs.pod:3239
40887 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
40888 "effect as calling C<guestfs_set_trace (g, 1)>."
40892 #: ../src/guestfs.pod:3257
40894 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
40895 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
40896 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
40897 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
40898 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
40899 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
40900 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
40901 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
40902 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
40903 ">, L<http://libguestfs.org/>."
40907 #: ../src/guestfs.pod:3293
40909 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
40910 "(8)>, L<disktype(1)>."
40914 #: ../src/guestfs.pod:3300 ../tools/virt-make-fs.pl:571
40915 #: ../tools/virt-win-reg.pl:772
40920 #: ../src/guestfs.pod:3302
40921 msgid "To get a list of bugs against libguestfs use this link:"
40923 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
40927 #: ../src/guestfs.pod:3304
40929 "L<https://bugzilla.redhat.com/buglist.cgi?"
40930 "component=libguestfs&product=Virtualization+Tools>"
40932 "L<https://bugzilla.redhat.com/buglist.cgi?"
40933 "component=libguestfs&product=Virtualization+Tools>"
40936 #: ../src/guestfs.pod:3306
40937 msgid "To report a new bug against libguestfs use this link:"
40938 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
40941 #: ../src/guestfs.pod:3308
40943 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
40944 "component=libguestfs&product=Virtualization+Tools>"
40946 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
40947 "component=libguestfs&product=Virtualization+Tools>"
40950 #: ../src/guestfs.pod:3310
40951 msgid "When reporting a bug, please check:"
40955 #: ../src/guestfs.pod:3316
40956 msgid "That the bug hasn't been reported already."
40960 #: ../src/guestfs.pod:3320
40961 msgid "That you are testing a recent version."
40965 #: ../src/guestfs.pod:3324
40966 msgid "Describe the bug accurately, and give a way to reproduce it."
40970 #: ../src/guestfs.pod:3328
40972 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
40977 #: ../test-tool/libguestfs-test-tool.pod:5
40978 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
40982 #: ../test-tool/libguestfs-test-tool.pod:9
40985 " libguestfs-test-tool [--options]\n"
40990 #: ../test-tool/libguestfs-test-tool.pod:13
40992 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
40993 "to check basic libguestfs functionality is working. This is needed because "
40994 "libguestfs occasionally breaks for reasons beyond our control: usually "
40995 "because of changes in the underlying qemu or kernel packages, or the host "
41000 #: ../test-tool/libguestfs-test-tool.pod:19
41001 msgid "If you suspect a problem in libguestfs, then just run:"
41005 #: ../test-tool/libguestfs-test-tool.pod:21
41008 " libguestfs-test-tool\n"
41013 #: ../test-tool/libguestfs-test-tool.pod:23
41014 msgid "It will print lots of diagnostic messages."
41018 #: ../test-tool/libguestfs-test-tool.pod:25
41019 msgid "If it runs to completion successfully, you will see this near the end:"
41023 #: ../test-tool/libguestfs-test-tool.pod:27
41026 " ===== TEST FINISHED OK =====\n"
41031 #: ../test-tool/libguestfs-test-tool.pod:29
41032 msgid "and the test tool will exit with code 0."
41036 #: ../test-tool/libguestfs-test-tool.pod:31
41038 "If it fails (and/or exits with non-zero error code), please paste the "
41039 "I<complete, unedited> output of the test tool into a bug report. More "
41040 "information about reporting bugs can be found on the L<http://libguestfs.org/"
41045 #: ../test-tool/libguestfs-test-tool.pod:42
41046 msgid "Display short usage information and exit."
41050 #: ../test-tool/libguestfs-test-tool.pod:44
41051 msgid "B<--qemu qemu_binary>"
41055 #: ../test-tool/libguestfs-test-tool.pod:46
41057 "If you have downloaded another qemu binary, point this option at the full "
41058 "path of the binary to try it."
41062 #: ../test-tool/libguestfs-test-tool.pod:49
41063 msgid "B<--qemudir qemu_source_dir>"
41067 #: ../test-tool/libguestfs-test-tool.pod:51
41069 "If you have compiled qemu from source, point this option at the source "
41070 "directory to try it."
41074 #: ../test-tool/libguestfs-test-tool.pod:54
41079 #: ../test-tool/libguestfs-test-tool.pod:56
41080 msgid "B<--timeout N>"
41084 #: ../test-tool/libguestfs-test-tool.pod:58
41086 "Set the launch timeout to C<N> seconds. The default is 600 seconds (10 "
41087 "minutes) which does not usually need to be adjusted."
41091 #: ../test-tool/libguestfs-test-tool.pod:63
41092 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
41096 #: ../test-tool/libguestfs-test-tool.pod:65
41098 "If you have compiled another version of qemu from source and would like to "
41099 "try that, then you can use the I<--qemudir> option to point to the qemu "
41100 "source directory."
41104 #: ../test-tool/libguestfs-test-tool.pod:69
41106 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
41107 "option to point to the binary."
41111 #: ../test-tool/libguestfs-test-tool.pod:72
41113 "Note when using these options, you can ignore the business of qemu wrapper "
41114 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
41115 "wrapper script for you if one is needed."
41119 #: ../test-tool/libguestfs-test-tool.pod:76
41120 msgid "TRYING OUT A DIFFERENT KERNEL"
41124 #: ../test-tool/libguestfs-test-tool.pod:78
41126 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
41127 "libguestfs tries. You do this by setting the environment variables "
41128 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
41132 #: ../test-tool/libguestfs-test-tool.pod:82
41134 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
41139 #: ../test-tool/libguestfs-test-tool.pod:85
41140 msgid "SELF-DIAGNOSIS"
41144 #: ../test-tool/libguestfs-test-tool.pod:87
41146 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
41147 "produced by libguestfs-test-tool and/or possible errors."
41151 #: ../test-tool/libguestfs-test-tool.pod:92
41153 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
41154 "I<1> if there was an error."
41158 #: ../test-tool/libguestfs-test-tool.pod:97
41160 "For the full list of environment variables which may affect libguestfs, "
41161 "please see the L<guestfs(3)> manual page."
41165 #: ../test-tool/libguestfs-test-tool.pod:102
41166 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
41170 #: ../tools/virt-list-filesystems.pl:32
41172 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
41176 #: ../tools/virt-list-filesystems.pl:36
41179 " virt-list-filesystems [--options] domname\n"
41184 #: ../tools/virt-list-filesystems.pl:38
41187 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
41192 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
41194 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
41199 #: ../tools/virt-list-filesystems.pl:45
41201 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
41202 "are contained in a virtual machine or disk image."
41206 #: ../tools/virt-list-filesystems.pl:49
41208 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
41209 "functionality. For more complex cases you should look at the L<guestfish(1)"
41214 #: ../tools/virt-list-filesystems.pl:112
41216 "With this option, C<virt-list-filesystems> displays the type of each "
41217 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
41221 #: ../tools/virt-list-filesystems.pl:119
41226 #: ../tools/virt-list-filesystems.pl:123
41228 "Normally we only show mountable filesystems. If this option is given then "
41229 "swap devices are shown too."
41233 #: ../tools/virt-list-filesystems.pl:197
41235 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41236 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
41237 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41239 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41240 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
41241 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41244 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
41245 msgid "Copyright (C) 2009 Red Hat Inc."
41246 msgstr "© Red Hat Inc., 2009"
41249 #: ../tools/virt-list-partitions.pl:32
41251 "virt-list-partitions - List partitions in a virtual machine or disk image"
41255 #: ../tools/virt-list-partitions.pl:36
41258 " virt-list-partitions [--options] domname\n"
41261 " virt-list-partitions [--параметри] назва_домену\n"
41265 #: ../tools/virt-list-partitions.pl:38
41268 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
41271 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
41275 #: ../tools/virt-list-partitions.pl:45
41277 "C<virt-list-partitions> is a command line tool to list the partitions that "
41278 "are contained in a virtual machine or disk image. It is mainly useful as a "
41279 "first step to using L<virt-resize(1)>."
41283 #: ../tools/virt-list-partitions.pl:50
41285 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
41286 "functionality. For more complex cases you should look at the L<guestfish(1)"
41291 #: ../tools/virt-list-partitions.pl:113
41292 msgid "Show sizes in human-readable form (eg. \"1G\")."
41296 #: ../tools/virt-list-partitions.pl:123
41298 "With this option, C<virt-list-partitions> displays the type and size of each "
41299 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
41303 #: ../tools/virt-list-partitions.pl:130
41308 #: ../tools/virt-list-partitions.pl:132
41310 msgstr "B<--total>"
41313 #: ../tools/virt-list-partitions.pl:134
41315 "Display the total size of each block device (as a separate row or rows)."
41319 #: ../tools/virt-list-partitions.pl:267
41321 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
41322 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
41323 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41325 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
41326 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
41327 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41330 #: ../tools/virt-list-partitions.pl:283
41331 msgid "Copyright (C) 2009-2010 Red Hat Inc."
41332 msgstr "© Red Hat Inc., 2009–2010"
41335 #: ../tools/virt-make-fs.pl:37
41336 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
41340 #: ../tools/virt-make-fs.pl:41
41343 " virt-make-fs [--options] input.tar output.img\n"
41348 #: ../tools/virt-make-fs.pl:43
41351 " virt-make-fs [--options] input.tar.gz output.img\n"
41356 #: ../tools/virt-make-fs.pl:45
41359 " virt-make-fs [--options] directory output.img\n"
41364 #: ../tools/virt-make-fs.pl:49
41366 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
41367 "archive or some files in a directory. It is similar to tools like L<mkisofs"
41368 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, it can "
41369 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
41370 "you want to attach these filesystems to existing virtual machines (eg. to "
41371 "import large amounts of read-only data to a VM)."
41375 #: ../tools/virt-make-fs.pl:57
41376 msgid "Basic usage is:"
41380 #: ../tools/virt-make-fs.pl:59
41383 #| " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41386 " virt-make-fs input output.img\n"
41389 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41393 #: ../tools/virt-make-fs.pl:61
41395 "where C<input> is either a directory containing files that you want to add, "
41396 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
41397 "C<output.img> is a disk image. The input type is detected automatically. "
41398 "The output disk image defaults to a raw ext2 sparse image unless you specify "
41399 "extra flags (see L</OPTIONS> below)."
41403 #: ../tools/virt-make-fs.pl:67
41404 msgid "FILESYSTEM TYPE"
41405 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
41408 #: ../tools/virt-make-fs.pl:69
41410 "The default filesystem type is C<ext2>. Just about any filesystem type that "
41411 "libguestfs supports can be used (but I<not> read-only formats like "
41412 "ISO9660). Here are some of the more common choices:"
41416 #: ../tools/virt-make-fs.pl:75
41421 #: ../tools/virt-make-fs.pl:77
41423 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
41424 "you are not going to use the filesystem in a way that requires the journal, "
41425 "then this is just wasted overhead."
41429 #: ../tools/virt-make-fs.pl:81
41430 msgid "I<ntfs> or I<vfat>"
41431 msgstr "I<ntfs> або I<vfat>"
41434 #: ../tools/virt-make-fs.pl:83
41435 msgid "Useful if exporting data to a Windows guest."
41439 #: ../tools/virt-make-fs.pl:85
41441 "I<Note for vfat>: The tar archive or local directory must only contain files "
41442 "which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
41443 "program running within libguestfs is unable to change the ownership of non-"
41444 "root files, since vfat itself does not support this."
41448 #: ../tools/virt-make-fs.pl:90
41453 #: ../tools/virt-make-fs.pl:92
41455 "Lower overhead than C<ext2>, but certain limitations on filename length and "
41456 "total filesystem size."
41460 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
41461 #: ../tools/virt-make-fs.pl:149
41466 #: ../tools/virt-make-fs.pl:99
41469 " virt-make-fs --type=minix input minixfs.img\n"
41474 #: ../tools/virt-make-fs.pl:101
41475 msgid "TO PARTITION OR NOT TO PARTITION"
41479 #: ../tools/virt-make-fs.pl:103
41480 msgid "Optionally virt-make-fs can add a partition table to the output disk."
41484 #: ../tools/virt-make-fs.pl:105
41486 "Adding a partition can make the disk image more compatible with certain "
41487 "virtualized operating systems which don't expect to see a filesystem "
41488 "directly located on a block device (Linux doesn't care and will happily "
41489 "handle both types)."
41493 #: ../tools/virt-make-fs.pl:110
41495 "On the other hand, if you have a partition table then the output image is no "
41496 "longer a straight filesystem. For example you cannot run L<fsck(8)> "
41497 "directly on a partitioned disk image. (However libguestfs tools such as "
41498 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
41502 #: ../tools/virt-make-fs.pl:118
41503 msgid "Add an MBR partition:"
41507 #: ../tools/virt-make-fs.pl:120
41510 " virt-make-fs --partition -- input disk.img\n"
41515 #: ../tools/virt-make-fs.pl:122
41517 "If the output disk image could be terabyte-sized or larger, it's better to "
41518 "use an EFI/GPT-compatible partition table:"
41522 #: ../tools/virt-make-fs.pl:125
41525 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
41530 #: ../tools/virt-make-fs.pl:127
41531 msgid "EXTRA SPACE"
41535 #: ../tools/virt-make-fs.pl:129
41537 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
41538 "the files that it contains, but might have extra space. Depending on how "
41539 "you are going to use the output, you might think this extra space is wasted "
41540 "and want to minimize it, or you might want to leave space so that more files "
41541 "can be added later. Virt-make-fs defaults to minimizing the extra space, "
41542 "but you can use the I<--size> flag to leave space in the filesystem if you "
41547 #: ../tools/virt-make-fs.pl:137
41549 "An alternative way to leave extra space but not make the output image any "
41550 "bigger is to use an alternative disk image format (instead of the default "
41551 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
41552 "image format (check your hypervisor supports this before using it). This "
41553 "allows you to choose a large I<--size> but the extra space won't actually be "
41554 "allocated in the image until you try to store something in it."
41558 #: ../tools/virt-make-fs.pl:145
41560 "Don't forget that you can also use local commands including L<resize2fs(8)> "
41561 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
41562 "to build another image from scratch."
41566 #: ../tools/virt-make-fs.pl:151
41569 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41572 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41576 #: ../tools/virt-make-fs.pl:179
41577 msgid "Enable debugging information."
41578 msgstr "Увімкнути виведення діагностичних даних."
41581 #: ../tools/virt-make-fs.pl:185
41582 msgid "B<--size=E<lt>NE<gt>>"
41583 msgstr "B<--size=E<lt>NE<gt>>"
41586 #: ../tools/virt-make-fs.pl:187
41587 msgid "B<--size=+E<lt>NE<gt>>"
41588 msgstr "B<--size=+E<lt>NE<gt>>"
41591 #: ../tools/virt-make-fs.pl:189
41592 msgid "B<-s E<lt>NE<gt>>"
41593 msgstr "B<-s E<lt>NE<gt>>"
41596 #: ../tools/virt-make-fs.pl:191
41597 msgid "B<-s +E<lt>NE<gt>>"
41598 msgstr "B<-s +E<lt>NE<gt>>"
41601 #: ../tools/virt-make-fs.pl:193
41603 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
41607 #: ../tools/virt-make-fs.pl:196
41609 "If this option is I<not> given, then the output image will be just large "
41610 "enough to contain all the files, with not much wasted space."
41614 #: ../tools/virt-make-fs.pl:199
41616 "To choose a fixed size output disk, specify an absolute number followed by b/"
41617 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41618 "Petabytes or Exabytes. This must be large enough to contain all the input "
41619 "files, else you will get an error."
41623 #: ../tools/virt-make-fs.pl:204
41625 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
41626 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41627 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
41628 "the input files, and (approximately) an extra 200 MB free space."
41632 #: ../tools/virt-make-fs.pl:210
41634 "Note that virt-make-fs estimates free space, and therefore will not produce "
41635 "filesystems containing precisely the free space requested. (It is much more "
41636 "expensive and time-consuming to produce a filesystem which has precisely the "
41637 "desired free space)."
41641 #: ../tools/virt-make-fs.pl:219
41642 msgid "B<--format=E<lt>fmtE<gt>>"
41646 #: ../tools/virt-make-fs.pl:221
41647 msgid "B<-F E<lt>fmtE<gt>>"
41651 #: ../tools/virt-make-fs.pl:223
41652 msgid "Choose the output disk image format."
41656 #: ../tools/virt-make-fs.pl:225
41657 msgid "The default is C<raw> (raw sparse disk image)."
41661 #: ../tools/virt-make-fs.pl:227
41663 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
41664 "that would really make sense here is C<qcow2>."
41668 #: ../tools/virt-make-fs.pl:234
41669 msgid "B<--type=E<lt>fsE<gt>>"
41673 #: ../tools/virt-make-fs.pl:236
41674 msgid "B<-t E<lt>fsE<gt>>"
41678 #: ../tools/virt-make-fs.pl:238
41679 msgid "Choose the output filesystem type."
41683 #: ../tools/virt-make-fs.pl:240
41684 msgid "The default is C<ext2>."
41685 msgstr "Типовим значенням є C<ext2>."
41688 #: ../tools/virt-make-fs.pl:242
41690 "Any filesystem which is supported read-write by libguestfs can be used here."
41694 #: ../tools/virt-make-fs.pl:249
41695 msgid "B<--partition>"
41696 msgstr "B<--partition>"
41699 #: ../tools/virt-make-fs.pl:251
41700 msgid "B<--partition=E<lt>parttypeE<gt>>"
41704 #: ../tools/virt-make-fs.pl:253
41706 "If specified, this flag adds an MBR partition table to the output disk image."
41710 #: ../tools/virt-make-fs.pl:256
41712 "You can change the partition table type, eg. I<--partition=gpt> for large "
41717 #: ../tools/virt-make-fs.pl:259
41719 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
41720 "might consider the next parameter to be the partition type. For example:"
41724 #: ../tools/virt-make-fs.pl:263
41727 #| " virt-make-fs --partition input.tar ...\n"
41730 " virt-make-fs --partition input.tar output.img\n"
41733 " virt-make-fs --partition input.tar ...\n"
41737 #: ../tools/virt-make-fs.pl:265
41739 "would cause virt-make-fs to think you wanted to use a partition type of "
41740 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
41741 "dash) between options and the input and output arguments:"
41745 #: ../tools/virt-make-fs.pl:269
41748 #| " virt-make-fs --partition -- input.tar ...\n"
41751 " virt-make-fs --partition -- input.tar output.img\n"
41754 " virt-make-fs --partition -- input.tar ...\n"
41758 #: ../tools/virt-make-fs.pl:271
41759 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
41763 #: ../tools/virt-make-fs.pl:559
41765 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41766 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
41767 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41769 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41770 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
41771 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41774 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
41776 "When reporting bugs, please enable debugging and capture the I<complete> "
41781 #: ../tools/virt-make-fs.pl:576
41784 " export LIBGUESTFS_DEBUG=1\n"
41785 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41788 " export LIBGUESTFS_DEBUG=1\n"
41789 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41793 #: ../tools/virt-make-fs.pl:579
41795 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
41800 #: ../tools/virt-tar.pl:33
41801 msgid "virt-tar - Extract or upload files to a virtual machine"
41805 #: ../tools/virt-tar.pl:37
41808 " virt-tar [--options] -x domname directory tarball\n"
41813 #: ../tools/virt-tar.pl:39
41816 " virt-tar [--options] -u domname tarball directory\n"
41821 #: ../tools/virt-tar.pl:41
41824 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
41829 #: ../tools/virt-tar.pl:43
41832 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
41837 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
41842 #: ../tools/virt-tar.pl:47
41844 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
41845 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
41849 #: ../tools/virt-tar.pl:52
41850 msgid "Download C</home> from the VM into a local tarball:"
41854 #: ../tools/virt-tar.pl:54
41857 " virt-tar -x domname /home home.tar\n"
41862 #: ../tools/virt-tar.pl:56
41865 " virt-tar -zx domname /home home.tar.gz\n"
41870 #: ../tools/virt-tar.pl:58
41871 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
41875 #: ../tools/virt-tar.pl:60
41878 " virt-tar -u domname uploadstuff.tar /tmp\n"
41883 #: ../tools/virt-tar.pl:62
41886 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
41891 #: ../tools/virt-tar.pl:66
41893 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
41894 "virtual machines. If you do this, you risk disk corruption in the VM. "
41895 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
41899 #: ../tools/virt-tar.pl:71
41901 "You can use I<-x> (extract) on live virtual machines, but you might get "
41902 "inconsistent results or errors if there is filesystem activity inside the "
41903 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
41904 "work, but the only way to guarantee consistent results is if the virtual "
41905 "machine is shut down."
41909 #: ../tools/virt-tar.pl:79
41911 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
41912 "parts of a guest filesystem. There are many possibilities: making backups, "
41913 "uploading data files, snooping on guest activity, fixing or customizing "
41918 #: ../tools/virt-tar.pl:84
41920 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
41921 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
41922 "should look at the L<guestfish(1)> tool."
41926 #: ../tools/virt-tar.pl:88
41928 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
41929 "its contents (recursively) from the virtual machine into a local tarball. "
41930 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
41931 "virtual machine. You cannot use these two options together."
41935 #: ../tools/virt-tar.pl:94
41937 "In addition, you may need to use the I<-z> (gZip) option to enable "
41938 "compression. When uploading, you have to specify I<-z> if the upload file "
41939 "is compressed because virt-tar won't detect this on its own."
41943 #: ../tools/virt-tar.pl:98
41945 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
41946 "example it cannot do PKZip files or bzip2 compression. If you want that "
41947 "then you'll have to rebuild the tarballs yourself. (This is a limitation of "
41948 "the L<libguestfs(3)> API)."
41952 #: ../tools/virt-tar.pl:160
41953 msgid "B<--extract>"
41954 msgstr "B<--extract>"
41957 #: ../tools/virt-tar.pl:162
41958 msgid "B<--download>"
41959 msgstr "B<--download>"
41962 #: ../tools/virt-tar.pl:164
41967 #: ../tools/virt-tar.pl:166
41968 msgid "B<--upload>"
41969 msgstr "B<--upload>"
41972 #: ../tools/virt-tar.pl:168
41974 "Use I<-x> to extract (download) a directory from a virtual machine to a "
41979 #: ../tools/virt-tar.pl:171
41981 "Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
41982 "Please read the L</WARNING> section above before using this option."
41986 #: ../tools/virt-tar.pl:175
41987 msgid "You must specify exactly one of these options."
41991 #: ../tools/virt-tar.pl:181
41996 #: ../tools/virt-tar.pl:183
42001 #: ../tools/virt-tar.pl:185
42002 msgid "Specify that the input or output tarball is gzip-compressed."
42006 #: ../tools/virt-tar.pl:298
42008 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42009 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42010 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42013 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42014 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42015 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42019 #: ../tools/virt-win-reg.pl:37
42021 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
42025 #: ../tools/virt-win-reg.pl:41
42028 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
42033 #: ../tools/virt-win-reg.pl:43
42036 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
42041 #: ../tools/virt-win-reg.pl:45
42044 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
42049 #: ../tools/virt-win-reg.pl:47
42052 " virt-win-reg --merge domname [input.reg ...]\n"
42057 #: ../tools/virt-win-reg.pl:49
42060 " virt-win-reg [--options] disk.img ... # instead of domname\n"
42065 #: ../tools/virt-win-reg.pl:53
42067 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
42068 "virtual machines. If you do this, you I<will> get irreversible disk "
42069 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
42070 "but doesn't catch all cases."
42074 #: ../tools/virt-win-reg.pl:58
42076 "Modifying the Windows Registry is an inherently risky operation. The format "
42077 "is deliberately obscure and undocumented, and Registry changes can leave the "
42078 "system unbootable. Therefore when using the I<--merge> option, make sure "
42079 "you have a reliable backup first."
42083 #: ../tools/virt-win-reg.pl:65
42085 "This program can export and merge Windows Registry entries from a Windows "
42090 #: ../tools/virt-win-reg.pl:68
42092 "The first parameter is the libvirt guest name or the raw disk image of a "
42097 #: ../tools/virt-win-reg.pl:71
42099 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
42100 "exported (recursively). For example:"
42104 #: ../tools/virt-win-reg.pl:74
42107 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42110 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42114 #: ../tools/virt-win-reg.pl:76
42116 "You can also display single values from within registry keys, for example:"
42120 #: ../tools/virt-win-reg.pl:79
42123 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42124 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42125 " Windows 7 Enterprise\n"
42128 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42129 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42130 " Windows 7 Enterprise\n"
42134 #: ../tools/virt-win-reg.pl:83
42136 "With I<--merge>, you can merge a textual regedit file into the Windows "
42141 #: ../tools/virt-win-reg.pl:86
42144 " $ virt-win-reg --merge Windows7 changes.reg\n"
42147 " $ virt-win-reg --merge Windows7 changes.reg\n"
42151 #: ../tools/virt-win-reg.pl:90
42153 "This program is only meant for simple access to the registry. If you want "
42154 "to do complicated things with the registry, we suggest you download the "
42155 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
42156 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
42157 "L<hivexregedit(1)>."
42161 #: ../tools/virt-win-reg.pl:159
42163 msgstr "B<--merge>"
42166 #: ../tools/virt-win-reg.pl:161
42168 "In merge mode, this merges a textual regedit file into the Windows Registry "
42169 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
42170 "displays or exports Registry entries instead."
42174 #: ../tools/virt-win-reg.pl:165
42176 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
42177 "result in disk corruption. However exporting (without this flag) is always "
42182 #: ../tools/virt-win-reg.pl:173
42183 msgid "B<--encoding> UTF-16LE|ASCII"
42184 msgstr "B<--encoding> UTF-16LE|ASCII"
42187 #: ../tools/virt-win-reg.pl:175
42189 "When merging (only), you may need to specify the encoding for strings to be "
42190 "used in the hive file. This is explained in detail in L<Win::Hivex::Regedit"
42191 "(3)/ENCODING STRINGS>."
42195 #: ../tools/virt-win-reg.pl:179
42197 "The default is to use UTF-16LE, which should work with recent versions of "
42202 #: ../tools/virt-win-reg.pl:186
42203 msgid "B<--unsafe-printable-strings>"
42204 msgstr "B<--unsafe-printable-strings>"
42207 #: ../tools/virt-win-reg.pl:188
42209 "When exporting (only), assume strings are UTF-16LE and print them as strings "
42210 "instead of hex sequences. Remove the final zero codepoint from strings if "
42215 #: ../tools/virt-win-reg.pl:192
42217 "This is unsafe and does not preserve the fidelity of strings in the original "
42218 "Registry for various reasons:"
42222 #: ../tools/virt-win-reg.pl:199
42224 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
42225 "other encodings will be corrupted by this transformation."
42229 #: ../tools/virt-win-reg.pl:204
42231 "Assumes that everything which has type 1 or 2 is really a string and that "
42232 "everything else is not a string, but the type field in real Registries is "
42237 #: ../tools/virt-win-reg.pl:210
42239 "Loses information about whether a zero codepoint followed the string in the "
42244 #: ../tools/virt-win-reg.pl:215
42246 "This all happens because the Registry itself contains no information about "
42247 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
42251 #: ../tools/virt-win-reg.pl:219
42253 "You should only use this option for quick hacking and debugging of the "
42254 "Registry contents, and I<never> use it if the output is going to be passed "
42255 "into another program or stored in another Registry."
42259 #: ../tools/virt-win-reg.pl:556
42260 msgid "SUPPORTED SYSTEMS"
42261 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
42264 #: ../tools/virt-win-reg.pl:558
42266 "The program currently supports Windows NT-derived guests starting with "
42267 "Windows XP through to at least Windows 7."
42271 #: ../tools/virt-win-reg.pl:561
42272 msgid "The following Registry keys are supported:"
42276 #: ../tools/virt-win-reg.pl:565
42277 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
42278 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
42281 #: ../tools/virt-win-reg.pl:567
42282 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42283 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42286 #: ../tools/virt-win-reg.pl:569
42287 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
42288 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
42291 #: ../tools/virt-win-reg.pl:571
42292 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42293 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42296 #: ../tools/virt-win-reg.pl:573
42297 msgid "C<HKEY_USERS\\.DEFAULT>"
42298 msgstr "C<HKEY_USERS\\.DEFAULT>"
42301 #: ../tools/virt-win-reg.pl:575
42302 msgid "C<HKEY_USERS\\I<SID>>"
42303 msgstr "C<HKEY_USERS\\I<SID>>"
42306 #: ../tools/virt-win-reg.pl:577
42307 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
42311 #: ../tools/virt-win-reg.pl:579
42312 msgid "C<HKEY_USERS\\I<username>>"
42313 msgstr "C<HKEY_USERS\\I<користувач>>"
42316 #: ../tools/virt-win-reg.pl:581
42318 "where I<username> is a local user name (this is a libguestfs extension)."
42322 #: ../tools/virt-win-reg.pl:585
42324 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
42329 #: ../tools/virt-win-reg.pl:588
42331 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
42332 "supported (there is no \"current user\")."
42336 #: ../tools/virt-win-reg.pl:591
42341 #: ../tools/virt-win-reg.pl:593
42343 "C<virt-win-reg> expects that regedit files have already been reencoded in "
42344 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
42345 "style line endings. Since Windows regedit files are often in UTF-16LE with "
42346 "Windows-style line endings, you may need to reencode the whole file before "
42347 "or after processing."
42351 #: ../tools/virt-win-reg.pl:599
42353 "To reencode a file from Windows format to Linux (before processing it with "
42354 "the I<--merge> option), you would do something like this:"
42358 #: ../tools/virt-win-reg.pl:602
42361 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
42364 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
42368 #: ../tools/virt-win-reg.pl:604
42370 "To go in the opposite direction, after exporting and before sending the file "
42371 "to a Windows user, do something like this:"
42375 #: ../tools/virt-win-reg.pl:607
42378 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
42381 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
42385 #: ../tools/virt-win-reg.pl:609
42386 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
42390 #: ../tools/virt-win-reg.pl:611
42392 "If you are unsure about the current encoding, use the L<file(1)> command. "
42393 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
42394 "style (CRLF) line endings, like this:"
42398 #: ../tools/virt-win-reg.pl:615
42401 " $ file software.reg\n"
42402 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
42403 " with CRLF line terminators\n"
42408 #: ../tools/virt-win-reg.pl:619
42409 msgid "This file would need conversion before you could I<--merge> it."
42413 #: ../tools/virt-win-reg.pl:621
42414 msgid "CurrentControlSet etc."
42418 #: ../tools/virt-win-reg.pl:623
42420 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
42421 "Registry at the level of the hive file, and therefore you cannot modify "
42426 #: ../tools/virt-win-reg.pl:627
42428 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
42429 "circumstances it might refer to another control set. The way to find out is "
42430 "to look at the C<HKLM\\SYSTEM\\Select> key:"
42434 #: ../tools/virt-win-reg.pl:631
42437 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
42438 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
42439 " \"Current\"=dword:00000001\n"
42440 " \"Default\"=dword:00000001\n"
42441 " \"Failed\"=dword:00000000\n"
42442 " \"LastKnownGood\"=dword:00000002\n"
42445 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
42446 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
42447 " \"Current\"=dword:00000001\n"
42448 " \"Default\"=dword:00000001\n"
42449 " \"Failed\"=dword:00000000\n"
42450 " \"LastKnownGood\"=dword:00000002\n"
42454 #: ../tools/virt-win-reg.pl:638
42455 msgid "\"Current\" is the one which Windows will choose when it boots."
42459 #: ../tools/virt-win-reg.pl:640
42461 "Similarly, other C<Current...> keys in the path may need to be replaced."
42465 #: ../tools/virt-win-reg.pl:643
42466 msgid "DELETING REGISTRY KEYS AND VALUES"
42470 #: ../tools/virt-win-reg.pl:645
42471 msgid "To delete a whole registry key, use the syntax:"
42475 #: ../tools/virt-win-reg.pl:647
42477 #| msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
42479 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
42481 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
42484 #: ../tools/virt-win-reg.pl:649
42485 msgid "To delete a single value within a key, use the syntax:"
42489 #: ../tools/virt-win-reg.pl:651
42491 #| msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
42493 " [HKEY_LOCAL_MACHINE\\Foo]\n"
42496 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
42499 #: ../tools/virt-win-reg.pl:654
42500 msgid "WINDOWS TIPS"
42504 #: ../tools/virt-win-reg.pl:656
42506 "Note that some of these tips modify the guest disk image. The guest I<must> "
42507 "be shut off, else you will get disk corruption."
42511 #: ../tools/virt-win-reg.pl:659
42512 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
42516 #: ../tools/virt-win-reg.pl:661
42518 "Prepare a DOS batch script, VBScript or executable. Upload this using "
42519 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
42520 "is uploaded into C<C:\\>:"
42524 #: ../tools/virt-win-reg.pl:665
42527 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
42530 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
42534 #: ../tools/virt-win-reg.pl:667
42535 msgid "Prepare a regedit file containing the registry change:"
42539 #: ../tools/virt-win-reg.pl:669
42542 " cat > test.reg <<'EOF'\n"
42543 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
42544 " \"Test\"=\"c:\\\\test.bat\"\n"
42548 " cat > test.reg <<'EOF'\n"
42549 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
42550 " \"Test\"=\"c:\\\\test.bat\"\n"
42555 #: ../tools/virt-win-reg.pl:674
42557 "In this example we use the key C<RunOnce> which means that the script will "
42558 "run precisely once when the first user logs in. If you want it to run every "
42559 "time a user logs in, replace C<RunOnce> with C<Run>."
42563 #: ../tools/virt-win-reg.pl:678
42564 msgid "Now update the registry:"
42565 msgstr "Оновіть регістр:"
42568 #: ../tools/virt-win-reg.pl:680
42571 " virt-win-reg --merge WindowsGuest test.reg\n"
42576 #: ../tools/virt-win-reg.pl:682
42577 msgid "INSTALLING A SERVICE"
42581 #: ../tools/virt-win-reg.pl:684
42583 "This section assumes you are familiar with Windows services, and you either "
42584 "have a program which handles the Windows Service Control Protocol directly "
42585 "or you want to run any program using a service wrapper like SrvAny or the "
42590 #: ../tools/virt-win-reg.pl:689
42592 "First upload the program and optionally the service wrapper. In this case "
42593 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
42597 #: ../tools/virt-win-reg.pl:693
42600 " guestfish -i -d WindowsGuest <<EOF\n"
42601 " upload rhsrvany.exe /rhsrvany.exe\n"
42602 " upload test.exe /test.exe\n"
42606 " guestfish -i -d WindowsGuest <<EOF\n"
42607 " upload rhsrvany.exe /rhsrvany.exe\n"
42608 " upload test.exe /test.exe\n"
42613 #: ../tools/virt-win-reg.pl:698
42615 "Prepare a regedit file containing the registry changes. In this example, "
42616 "the first registry change is needed for the service itself or the service "
42617 "wrapper (if used). The second registry change is only needed because I am "
42618 "using the RHSrvAny service wrapper."
42622 #: ../tools/virt-win-reg.pl:703
42625 " cat > service.reg <<'EOF'\n"
42626 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42627 " \"Type\"=dword:00000010\n"
42628 " \"Start\"=dword:00000002\n"
42629 " \"ErrorControl\"=dword:00000001\n"
42630 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42631 " \"DisplayName\"=\"RHSrvAny\"\n"
42632 " \"ObjectName\"=\"NetworkService\"\n"
42635 " cat > service.reg <<'EOF'\n"
42636 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42637 " \"Type\"=dword:00000010\n"
42638 " \"Start\"=dword:00000002\n"
42639 " \"ErrorControl\"=dword:00000001\n"
42640 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42641 " \"DisplayName\"=\"RHSrvAny\"\n"
42642 " \"ObjectName\"=\"NetworkService\"\n"
42646 #: ../tools/virt-win-reg.pl:712
42649 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42650 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42651 " \"PWD\"=\"c:\\\\Temp\"\n"
42655 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42656 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42657 " \"PWD\"=\"c:\\\\Temp\"\n"
42662 #: ../tools/virt-win-reg.pl:723
42664 "For use of C<ControlSet001> see the section above in this manual page. You "
42665 "may need to adjust this according to the control set that is in use by the "
42670 #: ../tools/virt-win-reg.pl:729
42672 "C<\"ObjectName\"> controls the privileges that the service will have. An "
42673 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
42674 "privileged account."
42678 #: ../tools/virt-win-reg.pl:735
42680 "For the meaning of the magic numbers, see this Microsoft KB article: "
42681 "L<http://support.microsoft.com/kb/103000>."
42685 #: ../tools/virt-win-reg.pl:740
42686 msgid "Update the registry:"
42687 msgstr "Оновіть регістр:"
42690 #: ../tools/virt-win-reg.pl:742
42693 " virt-win-reg --merge WindowsGuest service.reg\n"
42698 #: ../tools/virt-win-reg.pl:746
42700 "Be careful when passing parameters containing C<\\> (backslash) in the "
42701 "shell. Usually you will have to use 'single quotes' or double backslashes "
42702 "(but not both) to protect them from the shell."
42706 #: ../tools/virt-win-reg.pl:750
42707 msgid "Paths and value names are case-insensitive."
42711 #: ../tools/virt-win-reg.pl:759
42713 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
42714 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
42715 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42717 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
42718 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
42719 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42722 #: ../tools/virt-win-reg.pl:777
42725 " export LIBGUESTFS_DEBUG=1\n"
42726 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
42731 #: ../tools/virt-win-reg.pl:780
42733 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."