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-20 22:17+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:532 ../tools/virt-tar.pl:289
843 #: ../tools/virt-win-reg.pl:733
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:534 ../tools/virt-tar.pl:291
855 #: ../tools/virt-win-reg.pl:741
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:710 ../tools/virt-win-reg.pl:716
954 #: ../tools/virt-win-reg.pl:722
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:539 ../tools/virt-tar.pl:296
1020 #: ../tools/virt-win-reg.pl:746
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:564 ../tools/virt-tar.pl:311
1039 #: ../tools/virt-win-reg.pl:772
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:566
1051 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
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:568 ../tools/virt-tar.pl:315
1072 #: ../tools/virt-win-reg.pl:776
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:572 ../tools/virt-tar.pl:319
1094 #: ../tools/virt-win-reg.pl:780
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:577 ../tools/virt-tar.pl:324
1114 #: ../tools/virt-win-reg.pl:785
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:582 ../tools/virt-tar.pl:329
1138 #: ../tools/virt-win-reg.pl:790
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
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-make-fs.pl:570
2209 #: ../tools/virt-win-reg.pl:778
2210 msgid "Copyright (C) 2010 Red Hat Inc."
2211 msgstr "©Red Hat Inc., 2010"
2214 #: ../cat/virt-ls.pod:5
2215 msgid "virt-ls - List files in a virtual machine"
2219 #: ../cat/virt-ls.pod:9
2222 " virt-ls [--options] -d domname directory [directory ...]\n"
2227 #: ../cat/virt-ls.pod:11
2230 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2235 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2237 msgstr "Старий стиль:"
2240 #: ../cat/virt-ls.pod:15
2243 " virt-ls [--options] domname directory\n"
2248 #: ../cat/virt-ls.pod:17
2251 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2256 #: ../cat/virt-ls.pod:21
2258 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2259 "more from a virtual machine or disk image."
2263 #: ../cat/virt-ls.pod:24
2265 "Multiple directory names can be given, in which case the output from each is "
2270 #: ../cat/virt-ls.pod:27
2272 "To list directories from a libvirt guest use the I<-d> option to specify the "
2273 "name of the guest. For a disk image, use the I<-a> option."
2277 #: ../cat/virt-ls.pod:31
2279 "C<virt-ls> can do many simple file listings. For more complicated cases you "
2280 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2285 #: ../cat/virt-ls.pod:37
2286 msgid "Get a list of all files and directories in a virtual machine:"
2290 #: ../cat/virt-ls.pod:39
2293 " virt-ls -R -d guest /\n"
2298 #: ../cat/virt-ls.pod:41
2299 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2303 #: ../cat/virt-ls.pod:43
2306 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2311 #: ../cat/virt-ls.pod:45
2312 msgid "List all public-writable directories in a Linux virtual machine:"
2316 #: ../cat/virt-ls.pod:47
2319 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2324 #: ../cat/virt-ls.pod:49
2325 msgid "List all Unix domain sockets in a Linux virtual machine:"
2329 #: ../cat/virt-ls.pod:51
2332 " virt-ls -lR -d guest / | grep '^s'\n"
2337 #: ../cat/virt-ls.pod:53
2338 msgid "List all regular files with filenames ending in '.png':"
2342 #: ../cat/virt-ls.pod:55
2345 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2350 #: ../cat/virt-ls.pod:57
2351 msgid "To display files larger than 10MB in home directories:"
2355 #: ../cat/virt-ls.pod:59
2358 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2363 #: ../cat/virt-ls.pod:61
2364 msgid "Find everything modified in the last 7 days:"
2368 #: ../cat/virt-ls.pod:63
2371 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2376 #: ../cat/virt-ls.pod:65
2377 msgid "Find regular files modified in the last 24 hours:"
2381 #: ../cat/virt-ls.pod:67
2384 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2389 #: ../cat/virt-ls.pod:69
2390 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2394 #: ../cat/virt-ls.pod:71
2396 "Find the differences between files in a guest and an earlier snapshot of the "
2401 #: ../cat/virt-ls.pod:74
2404 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2405 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2406 " diff -u old new | less\n"
2411 #: ../cat/virt-ls.pod:78
2413 "The commands above won't find files where the content has changed but the "
2414 "metadata (eg. file size and modification date) is the same. To do that, you "
2415 "need to add the I<--checksum> parameter to both C<virt-ls> commands. I<--"
2416 "checksum> can be quite slow since it has to read and compute a checksum of "
2417 "every regular file in the virtual machine."
2421 #: ../cat/virt-ls.pod:84
2422 msgid "OUTPUT MODES"
2423 msgstr "РЕЖИМИ ВИВЕДЕННЯ ДАНИХ"
2426 #: ../cat/virt-ls.pod:86
2428 "C<virt-ls> has four output modes, controlled by different combinations of "
2429 "the I<-l> and I<-R> options."
2433 #: ../cat/virt-ls.pod:89
2434 msgid "SIMPLE LISTING"
2435 msgstr "ПРОСТИЙ СПИСОК"
2438 #: ../cat/virt-ls.pod:91
2439 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2443 #: ../cat/virt-ls.pod:93
2446 " $ virt-ls -d guest /\n"
2452 " $ virt-ls -d guest /\n"
2459 #: ../cat/virt-ls.pod:98
2460 msgid "LONG LISTING"
2461 msgstr "ДОВГИЙ СПИСОК"
2464 #: ../cat/virt-ls.pod:100
2466 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2467 "(more specifically, like the C<guestfs_ll> function)."
2471 #: ../cat/virt-ls.pod:103
2474 " $ virt-ls -l -d guest /\n"
2476 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
2477 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
2481 " $ virt-ls -l -d guest /\n"
2483 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
2484 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
2489 #: ../cat/virt-ls.pod:109
2491 "Note that while this is useful for displaying a directory, do not try "
2492 "parsing this output in another program. Use L</RECURSIVE LONG LISTING> "
2497 #: ../cat/virt-ls.pod:113
2498 msgid "RECURSIVE LISTING"
2499 msgstr "РЕКУРСИВНИЙ СПИСОК"
2502 #: ../cat/virt-ls.pod:115
2504 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2505 "and directories recursively:"
2509 #: ../cat/virt-ls.pod:118
2512 " $ virt-ls -R -d guest /tmp\n"
2518 " $ virt-ls -R -d guest /tmp\n"
2525 #: ../cat/virt-ls.pod:123
2527 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2528 "converts C<\\0> characters to C<\\n>."
2532 #: ../cat/virt-ls.pod:126
2533 msgid "RECURSIVE LONG LISTING"
2534 msgstr "РЕКУРСИВНИЙ ДОВГИЙ СПИСОК"
2537 #: ../cat/virt-ls.pod:128
2539 "Using I<-lR> options together changes the output to display directories "
2540 "recursively, with file stats, and optionally other features such as "
2541 "checksums and extended attributes."
2545 #: ../cat/virt-ls.pod:132
2547 "Most of the interesting features of C<virt-ls> are only available when using "
2552 #: ../cat/virt-ls.pod:135
2554 "The fields are normally space-separated. Filenames are B<not> quoted, so "
2555 "you cannot use the output in another program (because filenames can contain "
2556 "spaces and other unsafe characters). If the guest was untrusted and someone "
2557 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2558 "on you by creating filenames with embedded newline characters. To B<safely> "
2559 "parse the output in another program, use the I<--csv> (Comma-Separated "
2564 #: ../cat/virt-ls.pod:143
2566 "Note that this output format is completely unrelated to the C<ls -lR> "
2571 #: ../cat/virt-ls.pod:146
2574 " $ virt-ls -lR -d guest /bin\n"
2575 " d 0555 4096 /bin\n"
2576 " - 0755 123 /bin/alsaunmute\n"
2577 " - 0755 28328 /bin/arch\n"
2578 " l 0777 4 /bin/awk -> gawk\n"
2579 " - 0755 27216 /bin/basename\n"
2580 " - 0755 943360 /bin/bash\n"
2584 " $ virt-ls -lR -d guest /bin\n"
2585 " d 0555 4096 /bin\n"
2586 " - 0755 123 /bin/alsaunmute\n"
2587 " - 0755 28328 /bin/arch\n"
2588 " l 0777 4 /bin/awk -> gawk\n"
2589 " - 0755 27216 /bin/basename\n"
2590 " - 0755 943360 /bin/bash\n"
2595 #: ../cat/virt-ls.pod:155
2596 msgid "These basic fields are always shown:"
2600 #: ../cat/virt-ls.pod:159
2605 #: ../cat/virt-ls.pod:161
2607 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2608 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2609 "link), C<s> (socket) or C<u> (unknown)."
2613 #: ../cat/virt-ls.pod:171
2615 msgstr "права доступу"
2618 #: ../cat/virt-ls.pod:173
2619 msgid "The Unix permissions, displayed as a 4 digit octal number."
2623 #: ../cat/virt-ls.pod:175
2628 #: ../cat/virt-ls.pod:177
2630 "The size of the file. This is shown in bytes unless I<-h> or I<--human-"
2631 "readable> option is given, in which case this is shown as a human-readable "
2636 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4263
2641 #: ../cat/virt-ls.pod:183
2642 msgid "The full path of the file or directory."
2646 #: ../cat/virt-ls.pod:185
2651 #: ../cat/virt-ls.pod:187
2652 msgid "For symbolic links only, the link target."
2656 #: ../cat/virt-ls.pod:191
2658 "In I<-lR> mode, additional command line options enable the display of more "
2663 #: ../cat/virt-ls.pod:194
2665 "With the I<--uids> flag, these additional fields are displayed before the "
2670 #: ../cat/virt-ls.pod:199
2675 #: ../cat/virt-ls.pod:201
2680 #: ../cat/virt-ls.pod:203
2682 "The UID and GID of the owner of the file (displayed numerically). Note "
2683 "these only make sense in the context of a Unix-like guest."
2687 #: ../cat/virt-ls.pod:208
2688 msgid "With the I<--times> flag, these additional fields are displayed:"
2692 #: ../cat/virt-ls.pod:212
2697 #: ../cat/virt-ls.pod:214
2698 msgid "The time of last access."
2699 msgstr "Час останнього доступу."
2702 #: ../cat/virt-ls.pod:216
2707 #: ../cat/virt-ls.pod:218
2708 msgid "The time of last modification."
2709 msgstr "Час останнього внесення змін."
2712 #: ../cat/virt-ls.pod:220
2717 #: ../cat/virt-ls.pod:222
2718 msgid "The time of last status change."
2719 msgstr "Час останньої зміни стану."
2722 #: ../cat/virt-ls.pod:226
2724 "The time fields are displayed as string dates and times, unless one of the "
2725 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2729 #: ../cat/virt-ls.pod:229
2730 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2734 #: ../cat/virt-ls.pod:233
2739 #: ../cat/virt-ls.pod:235
2741 "The device containing the file (displayed as major:minor). This may not "
2742 "match devices as known to the guest."
2746 #: ../cat/virt-ls.pod:238
2751 #: ../cat/virt-ls.pod:240
2752 msgid "The inode number."
2756 #: ../cat/virt-ls.pod:242
2761 #: ../cat/virt-ls.pod:244
2762 msgid "The number of hard links."
2763 msgstr "Кількість жорстких посилань."
2766 #: ../cat/virt-ls.pod:246
2771 #: ../cat/virt-ls.pod:248
2773 "For block and char special files, the device (displayed as major:minor)."
2777 #: ../cat/virt-ls.pod:251
2782 #: ../cat/virt-ls.pod:253
2783 msgid "The number of 512 byte blocks allocated to the file."
2787 #: ../cat/virt-ls.pod:257
2789 "With the I<--checksum> flag, the checksum of the file contents is shown "
2790 "(only for regular files). Computing file checksums can take a considerable "
2795 #: ../cat/virt-ls.pod:280
2796 msgid "B<--checksum>"
2797 msgstr "B<--checksum>"
2800 #: ../cat/virt-ls.pod:282
2801 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2802 msgstr "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2805 #: ../cat/virt-ls.pod:284
2807 "Display checksum over file contents for regular files. With no argument, "
2808 "this defaults to using I<md5>. Using an argument, you can select the "
2809 "checksum type to use."
2813 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2814 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2815 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2817 "This option only has effect in I<-lR> output mode. See L</RECURSIVE LONG "
2822 #: ../cat/virt-ls.pod:316
2824 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2825 "so you cannot see what you are typing. If you are not worried about Tempest "
2826 "attacks and there is no one else in the room you can specify this flag to "
2827 "see what you are typing."
2831 #: ../cat/virt-ls.pod:321
2832 msgid "B<--extra-stats>"
2833 msgstr "B<--extra-stats>"
2836 #: ../cat/virt-ls.pod:323
2837 msgid "Display extra stats."
2838 msgstr "Показати додаткові дані."
2841 #: ../cat/virt-ls.pod:339
2844 " virt-ls --format=raw -a disk.img /dir\n"
2849 #: ../cat/virt-ls.pod:343
2852 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2857 #: ../cat/virt-ls.pod:356
2858 msgid "Display file sizes in human-readable format."
2862 #: ../cat/virt-ls.pod:370
2867 #: ../cat/virt-ls.pod:372
2868 msgid "B<--recursive>"
2869 msgstr "B<--recursive>"
2872 #: ../cat/virt-ls.pod:374
2874 "Select the mode. With neither of these options, C<virt-ls> produces a "
2875 "simple, flat list of the files in the named directory. See L</SIMPLE "
2880 #: ../cat/virt-ls.pod:378
2882 "C<virt-ls -l> produces a \"long listing\", which shows more detail. See L</"
2887 #: ../cat/virt-ls.pod:381
2889 "C<virt-ls -R> produces a recursive list of files starting at the named "
2890 "directory. See L</RECURSIVE LISTING>."
2894 #: ../cat/virt-ls.pod:384
2896 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2897 "parsed. See L</RECURSIVE LONG LISTING>."
2901 #: ../cat/virt-ls.pod:387
2906 #: ../cat/virt-ls.pod:389
2907 msgid "Display time fields."
2911 #: ../cat/virt-ls.pod:394
2912 msgid "B<--time-days>"
2913 msgstr "B<--time-days>"
2916 #: ../cat/virt-ls.pod:396
2917 msgid "Display time fields as days before now (negative if in the future)."
2921 #: ../cat/virt-ls.pod:398
2923 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2924 "of the file is between 0 and 86399 seconds."
2928 #: ../cat/virt-ls.pod:404
2929 msgid "B<--time-relative>"
2930 msgstr "B<--time-relative>"
2933 #: ../cat/virt-ls.pod:406
2934 msgid "Display time fields as seconds before now (negative if in the future)."
2938 #: ../cat/virt-ls.pod:411
2940 msgstr "B<--time-t>"
2943 #: ../cat/virt-ls.pod:413
2944 msgid "Display time fields as seconds since the Unix epoch."
2948 #: ../cat/virt-ls.pod:418
2953 #: ../cat/virt-ls.pod:420
2954 msgid "Display UID and GID fields."
2958 #: ../cat/virt-ls.pod:445
2959 msgid "Previous versions of virt-ls allowed you to write either:"
2963 #: ../cat/virt-ls.pod:447
2966 " virt-ls disk.img [disk.img ...] /dir\n"
2971 #: ../cat/virt-ls.pod:451
2974 " virt-ls guestname /dir\n"
2979 #: ../cat/virt-ls.pod:497
2981 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2982 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2983 "L<http://libguestfs.org/>."
2985 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2986 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2987 "L<http://libguestfs.org/>."
2990 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2991 #: ../rescue/virt-rescue.pod:302
2992 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2993 msgstr "©Red Hat Inc., 2009–2011"
2996 #: ../clone/virt-sysprep.pod:5
2998 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
3002 #: ../clone/virt-sysprep.pod:9
3005 " virt-sysprep [--options] -d domname\n"
3010 #: ../clone/virt-sysprep.pod:11
3013 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
3018 #: ../clone/virt-sysprep.pod:15
3020 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
3021 "can be made from it. Steps in this process include removing SSH host keys, "
3022 "removing persistent network MAC configuration, and removing user accounts. "
3023 "Each step can be enabled or disabled as required."
3027 #: ../clone/virt-sysprep.pod:21
3029 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3030 "customization by the system administrator."
3034 #: ../clone/virt-sysprep.pod:24
3036 "Virt-sysprep modifies the guest or disk image I<in place>. The guest must "
3037 "be shut down. If you want to preserve the existing contents of the guest, "
3038 "you I<must copy or clone the disk first>. See L</COPYING AND CLONING> below."
3042 #: ../clone/virt-sysprep.pod:29
3044 "You do I<not> need to run virt-sysprep as root. In fact we'd generally "
3045 "recommend that you don't. The time you might want to run it as root is when "
3046 "you need root in order to access the disk image, but even in this case it "
3047 "would be better to change the permissions on the disk image to be writable "
3048 "as the non-root user running virt-sysprep."
3052 #: ../clone/virt-sysprep.pod:35
3054 "\"Sysprep\" stands for \"system preparation\" tool. The name comes from the "
3055 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3056 "machines in preparation for cloning them. Having said that, virt-sysprep "
3057 "does I<not> currently work on Microsoft Windows guests. We plan to support "
3058 "Windows sysprepping in a future version, and we already have code to do it."
3062 #: ../clone/virt-sysprep.pod:76
3063 msgid "B<--enable=...>"
3067 #: ../clone/virt-sysprep.pod:78
3069 "Choose which sysprep operations to perform. Give a comma-separated list of "
3070 "operations, for example:"
3074 #: ../clone/virt-sysprep.pod:81
3077 " --enable=ssh-hostkeys,udev-persistent-net\n"
3082 #: ../clone/virt-sysprep.pod:83
3084 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3088 #: ../clone/virt-sysprep.pod:85
3090 "If the I<--enable> option is not given, then we default to trying all "
3091 "possible sysprep operations. But some sysprep operations are skipped for "
3096 #: ../clone/virt-sysprep.pod:89
3098 "Use I<--list-operations> to list operations supported by a particular "
3099 "version of virt-sysprep."
3103 #: ../clone/virt-sysprep.pod:92
3105 "See L</OPERATIONS> below for a list and an explanation of each operation."
3109 #: ../clone/virt-sysprep.pod:106
3112 " virt-sysprep --format=raw -a disk.img\n"
3117 #: ../clone/virt-sysprep.pod:110
3120 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3125 #: ../clone/virt-sysprep.pod:119
3126 msgid "B<--hostname> newhostname"
3130 #: ../clone/virt-sysprep.pod:121
3132 "Change the hostname. See the L</hostname> operation below. If not given, "
3133 "defaults to C<localhost.localdomain>."
3137 #: ../clone/virt-sysprep.pod:124
3138 msgid "B<--list-operations>"
3142 #: ../clone/virt-sysprep.pod:126
3143 msgid "List the operations supported by the virt-sysprep program."
3147 #: ../clone/virt-sysprep.pod:128
3148 msgid "B<--selinux-relabel>"
3152 #: ../clone/virt-sysprep.pod:130
3153 msgid "B<--no-selinux-relabel>"
3157 #: ../clone/virt-sysprep.pod:132
3159 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots. "
3160 "I<--no-selinux-relabel> disables relabelling."
3164 #: ../clone/virt-sysprep.pod:135
3166 "The default is to try to detect if SELinux relabelling is required. See L</"
3167 "SELINUX RELABELLING> below for more details."
3171 #: ../clone/virt-sysprep.pod:156
3176 #: ../clone/virt-sysprep.pod:158
3178 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3179 "enabled>, although some are skipped depending on the type of guest."
3183 #: ../clone/virt-sysprep.pod:162
3185 "Operations can be individually enabled using the I<--enable> option. Use a "
3186 "comma-separated list, for example:"
3190 #: ../clone/virt-sysprep.pod:165
3193 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3198 #: ../clone/virt-sysprep.pod:167
3200 "To list the operations supported by the current version of virt-sysprep, use "
3201 "I<--list-operations>."
3205 #: ../clone/virt-sysprep.pod:170
3207 "Future versions of virt-sysprep may add more operations. If you are using "
3208 "virt-sysprep and want predictable behaviour, specify only the operations "
3209 "that you want to have enabled."
3213 #: ../clone/virt-sysprep.pod:174
3218 #: ../clone/virt-sysprep.pod:176
3219 msgid "Remove user at-jobs and cron-jobs."
3223 #: ../clone/virt-sysprep.pod:178
3224 msgid "dhcp-client-state"
3228 #: ../clone/virt-sysprep.pod:180
3229 msgid "Remove DHCP client leases."
3233 #: ../clone/virt-sysprep.pod:182
3234 msgid "dhcp-server-state"
3238 #: ../clone/virt-sysprep.pod:184
3239 msgid "Remove DHCP server leases."
3243 #: ../clone/virt-sysprep.pod:186
3248 #: ../clone/virt-sysprep.pod:188
3250 "Changes the hostname of the guest to the value given in the I<--hostname> "
3255 #: ../clone/virt-sysprep.pod:191
3257 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3258 "C<localhost.localdomain>."
3262 #: ../clone/virt-sysprep.pod:194
3267 #: ../clone/virt-sysprep.pod:196
3268 msgid "Remove many log files."
3272 #: ../clone/virt-sysprep.pod:198
3277 #: ../clone/virt-sysprep.pod:200
3278 msgid "Remove email from the local mail spool directory."
3282 #: ../clone/virt-sysprep.pod:202
3287 #: ../clone/virt-sysprep.pod:204
3289 "Remove HWADDR (hard-coded MAC address) configuration. For Fedora and Red "
3290 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3294 #: ../clone/virt-sysprep.pod:207
3299 #: ../clone/virt-sysprep.pod:209
3301 "Write some random bytes from the host into the random seed file of the guest."
3305 #: ../clone/virt-sysprep.pod:212
3306 msgid "See L</RANDOM SEED> below."
3310 #: ../clone/virt-sysprep.pod:214
3311 msgid "rhn-systemid"
3315 #: ../clone/virt-sysprep.pod:216
3316 msgid "Remove the RHN system ID."
3320 #: ../clone/virt-sysprep.pod:218
3325 #: ../clone/virt-sysprep.pod:220
3326 msgid "Remove the Smolt hardware UUID."
3330 #: ../clone/virt-sysprep.pod:222
3331 msgid "ssh-hostkeys"
3335 #: ../clone/virt-sysprep.pod:224
3336 msgid "Remove the SSH host keys in the guest."
3340 #: ../clone/virt-sysprep.pod:226
3342 "The SSH host keys are regenerated (differently) next time the guest is "
3347 #: ../clone/virt-sysprep.pod:229
3349 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3350 "stark warning about the host key changing:"
3354 #: ../clone/virt-sysprep.pod:232
3357 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3358 " @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @\n"
3359 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3360 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3365 #: ../clone/virt-sysprep.pod:237
3366 msgid "udev-persistent-net"
3370 #: ../clone/virt-sysprep.pod:239
3372 "Remove udev persistent net rules which map the guest's existing MAC address "
3373 "to a fixed ethernet device (eg. eth0)."
3377 #: ../clone/virt-sysprep.pod:242
3379 "After a guest is cloned, the MAC address usually changes. Since the old MAC "
3380 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3381 "is assigned to a new name (eg. eth1) and this is usually undesirable. "
3382 "Erasing the udev persistent net rules avoids this."
3386 #: ../clone/virt-sysprep.pod:247
3391 #: ../clone/virt-sysprep.pod:249
3392 msgid "Remove the utmp file."
3396 #: ../clone/virt-sysprep.pod:251
3398 "This records who is currently logged in on a machine. In modern Linux "
3399 "distros it is stored in a ramdisk and hence not part of the virtual "
3400 "machine's disk, but it was stored on disk in older distros."
3404 #: ../clone/virt-sysprep.pod:255
3409 #: ../clone/virt-sysprep.pod:257
3410 msgid "Remove the yum UUID."
3414 #: ../clone/virt-sysprep.pod:259
3416 "Yum creates a fresh UUID the next time it runs when it notices that the "
3417 "original UUID has been erased."
3421 #: ../clone/virt-sysprep.pod:262
3422 msgid "COPYING AND CLONING"
3426 #: ../clone/virt-sysprep.pod:264
3428 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3429 "prepare a template from which guests can be cloned. There are many "
3430 "different ways to achieve this using the virt tools, and this section is "
3431 "just an introduction."
3435 #: ../clone/virt-sysprep.pod:269
3436 msgid "A virtual machine (when switched off) consists of two parts:"
3440 #: ../clone/virt-sysprep.pod:273
3441 msgid "I<configuration>"
3445 #: ../clone/virt-sysprep.pod:275
3447 "The configuration or description of the guest. eg. The libvirt XML (see "
3448 "C<virsh dumpxml>), the running configuration of the guest, or another "
3449 "external format like OVF."
3453 #: ../clone/virt-sysprep.pod:279
3454 msgid "Some configuration items that might need to be changed:"
3458 #: ../clone/virt-sysprep.pod:285
3463 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3468 #: ../clone/virt-sysprep.pod:293
3469 msgid "path to block device(s)"
3473 #: ../clone/virt-sysprep.pod:297
3474 msgid "network card MAC address"
3478 #: ../clone/virt-sysprep.pod:301
3479 msgid "I<block device(s)>"
3483 #: ../clone/virt-sysprep.pod:303
3485 "One or more hard disk images, themselves containing files, directories, "
3486 "applications, kernels, configuration, etc."
3490 #: ../clone/virt-sysprep.pod:306
3491 msgid "Some things inside the block devices that might need to be changed:"
3495 #: ../clone/virt-sysprep.pod:312
3496 msgid "hostname and other net configuration"
3500 #: ../clone/virt-sysprep.pod:320
3501 msgid "SSH host keys"
3505 #: ../clone/virt-sysprep.pod:324
3506 msgid "Windows unique security ID (SID)"
3510 #: ../clone/virt-sysprep.pod:328
3511 msgid "Puppet registration"
3515 #: ../clone/virt-sysprep.pod:334
3516 msgid "COPYING THE BLOCK DEVICE"
3520 #: ../clone/virt-sysprep.pod:336
3522 "Starting with an original guest, you probably wish to copy the guest block "
3523 "device and its configuration to make a template. Then once you are happy "
3524 "with the template, you will want to make many clones from it."
3528 #: ../clone/virt-sysprep.pod:341
3534 " original guest --------> template ---------->\n"
3535 " \\------> cloned\n"
3536 " \\-----> guests\n"
3542 #: ../clone/virt-sysprep.pod:349
3544 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3549 #: ../clone/virt-sysprep.pod:352
3553 " original guest --------> template ---------->\n"
3554 " \\------> cloned\n"
3555 " \\-----> guests\n"
3561 #: ../clone/virt-sysprep.pod:358
3562 msgid "There are some smarter (and faster) ways too:"
3566 #: ../clone/virt-sysprep.pod:364
3570 " template ---------->\n"
3571 " \\------> cloned\n"
3572 " \\-----> guests\n"
3578 #: ../clone/virt-sysprep.pod:370
3580 "Use the block device as a backing file and create a snapshot on top for each "
3581 "guest. The advantage is that you don't need to copy the block device (very "
3582 "fast) and only changes are stored (less storage required)."
3586 #: ../clone/virt-sysprep.pod:375
3588 "Note that writing to the backing file once you have created guests on top of "
3589 "it is not possible: you will corrupt the guests."
3593 #: ../clone/virt-sysprep.pod:378
3595 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3596 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option). Some "
3597 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3598 "also create cheap snapshots from files or LUNs."
3602 #: ../clone/virt-sysprep.pod:386
3603 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3607 #: ../clone/virt-sysprep.pod:390
3608 msgid "Prepare your template using L<virt-sparsify(1)>. See below."
3612 #: ../clone/virt-sysprep.pod:394
3617 #: ../clone/virt-sysprep.pod:396
3619 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3620 "and/or modify the external libvirt configuration of a guest. It will reset "
3621 "the name, UUID and MAC address of the guest in the libvirt XML."
3625 #: ../clone/virt-sysprep.pod:401
3627 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3628 "image. This was the original motivation to write virt-sysprep."
3632 #: ../clone/virt-sysprep.pod:404
3637 #: ../clone/virt-sysprep.pod:406
3641 " original guest --------> template\n"
3646 #: ../clone/virt-sysprep.pod:409
3648 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3649 "it easier to compress and/or faster to copy."
3653 #: ../clone/virt-sysprep.pod:412
3655 "Notice that since virt-sparsify also copies the image, you can use it to "
3656 "make the initial copy (instead of C<dd>)."
3660 #: ../clone/virt-sysprep.pod:415
3665 #: ../clone/virt-sysprep.pod:417
3669 " template ---------->\n"
3670 " \\------> cloned\n"
3671 " \\-----> guests\n"
3677 #: ../clone/virt-sysprep.pod:423
3679 "If you want to give people cloned guests, but let them pick the size of the "
3680 "guest themselves (eg. depending on how much they are prepared to pay for "
3681 "disk space), then instead of copying the template, you can run L<virt-resize"
3682 "(1)>. Virt-resize performs a copy and resize, and thus is ideal for cloning "
3683 "guests from a template."
3687 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1149
3692 #: ../clone/virt-sysprep.pod:431
3694 "Although virt-sysprep removes some sensitive information from the guest, it "
3695 "does not pretend to remove all of it. You should examine the L</OPERATIONS> "
3696 "above, and the implementation of the operations in the shell script. You "
3697 "should also examine the guest afterwards."
3701 #: ../clone/virt-sysprep.pod:436
3703 "Sensitive files are simply removed. The data they contained may still exist "
3704 "on the disk, easily recovered with a hex editor or undelete tool. Use "
3705 "L<virt-sparsify(1)> as one way to remove this content. See also the L<scrub"
3706 "(1)> command to get rid of deleted content in directory entries and inodes."
3710 #: ../clone/virt-sysprep.pod:442
3715 #: ../clone/virt-sysprep.pod:444
3716 msgid "I<(This section applies to Linux guests only)>"
3720 #: ../clone/virt-sysprep.pod:446
3722 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3723 "from the host into the guest's random seed file."
3727 #: ../clone/virt-sysprep.pod:449
3729 "If this is just done once and the guest is cloned from the same template, "
3730 "then each guest will start with the same entropy, and things like SSH host "
3731 "keys and TCP sequence numbers may be predictable."
3735 #: ../clone/virt-sysprep.pod:453
3737 "Therefore you should arrange to add more randomness I<after> cloning from a "
3738 "template too, which can be done by just enabling the C<random-seed> "
3743 #: ../clone/virt-sysprep.pod:457
3746 " cp template.img newguest.img\n"
3747 " virt-sysprep --enable=random-seed -a newguest.img\n"
3752 #: ../clone/virt-sysprep.pod:460
3753 msgid "SELINUX RELABELLING"
3757 #: ../clone/virt-sysprep.pod:462
3758 msgid "I<(This section applies to Linux guests using SELinux only)>"
3762 #: ../clone/virt-sysprep.pod:464
3764 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3765 "autorelabel> so that these will be correctly labelled by SELinux the next "
3766 "time the guest is booted. This process interrupts boot and can take some "
3771 #: ../clone/virt-sysprep.pod:469
3773 "You can force relabelling for all guests by supplying the I<--selinux-"
3778 #: ../clone/virt-sysprep.pod:472
3780 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3785 #: ../clone/virt-sysprep.pod:484
3786 msgid "This program returns 0 on success, or 1 if there was an error."
3790 #: ../clone/virt-sysprep.pod:488
3792 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3793 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3794 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3798 #: ../df/virt-df.pod:5
3799 msgid "virt-df - Display free space on virtual filesystems"
3803 #: ../df/virt-df.pod:9
3806 " virt-df [--options]\n"
3809 " virt-df [--параметри]\n"
3813 #: ../df/virt-df.pod:11
3816 " virt-df [--options] -d domname\n"
3821 #: ../df/virt-df.pod:13
3824 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3829 #: ../df/virt-df.pod:17
3832 " virt-df [--options] domname\n"
3837 #: ../df/virt-df.pod:19
3840 " virt-df [--options] disk.img [disk.img ...]\n"
3845 #: ../df/virt-df.pod:23
3847 "C<virt-df> is a command line tool to display free space on virtual machine "
3848 "filesystems. Unlike other tools, it doesn't just display the size of disk "
3849 "allocated to a virtual machine, but can look inside disk images to see how "
3850 "much space is really being used."
3854 #: ../df/virt-df.pod:28
3856 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3857 "to get a list of all active and inactive guests, and performs a C<df>-type "
3858 "operation on each one in turn, printing out the results."
3862 #: ../df/virt-df.pod:32
3864 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3865 "type operation on either the single named libvirt domain, or on the disk "
3866 "image(s) listed on the command line (which must all belong to a single VM). "
3867 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3868 "guest>. If you want to run on multiple guests, then you have to invoke "
3869 "C<virt-df> multiple times."
3873 #: ../df/virt-df.pod:39
3875 "Use the I<--csv> option to get a format which can be easily parsed by other "
3876 "programs. Other options are similar to the standard L<df(1)> command."
3880 #: ../df/virt-df.pod:45
3882 "Show disk usage for a single libvirt guest called C<F14x64>. Make the "
3883 "output human-readable:"
3887 #: ../df/virt-df.pod:48
3890 " # virt-df -d F14x64 -h\n"
3891 " Filesystem Size Used Available Use%\n"
3892 " F14x64:/dev/sda1 484M 66M 393M 14%\n"
3893 " F14x64:/dev/vg_f13x64/lv_root 7.4G 3.4G 4.0G 46%\n"
3898 #: ../df/virt-df.pod:53
3899 msgid "Show disk usage for a disk image file called C<test.img>:"
3903 #: ../df/virt-df.pod:55
3906 " $ virt-df -a test1.img\n"
3907 " Filesystem 1K-blocks Used Available Use%\n"
3908 " test1.img:/dev/sda1 99099 1551 92432 2%\n"
3913 #: ../df/virt-df.pod:112
3916 " virt-df --format=raw -a disk.img\n"
3921 #: ../df/virt-df.pod:116
3924 " virt-df --format=raw -a disk.img --format -a another.img\n"
3929 #: ../df/virt-df.pod:129
3930 msgid "Print sizes in human-readable format."
3934 #: ../df/virt-df.pod:131
3935 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3939 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3944 #: ../df/virt-df.pod:135
3946 msgstr "B<--inodes>"
3949 #: ../df/virt-df.pod:137
3950 msgid "Print inodes instead of blocks."
3954 #: ../df/virt-df.pod:139
3955 msgid "B<--one-per-guest>"
3956 msgstr "B<--one-per-guest>"
3959 #: ../df/virt-df.pod:141
3961 "Run one libguestfs appliance per guest. Normally C<virt-df> will add the "
3962 "disks from several guests to a single libguestfs appliance."
3966 #: ../df/virt-df.pod:144
3967 msgid "You might use this option in the following circumstances:"
3971 #: ../df/virt-df.pod:150
3973 "If you think an untrusted guest might actively try to exploit the libguestfs "
3974 "appliance kernel, then this prevents one guest from interfering with the "
3975 "stats printed for another guest."
3979 #: ../df/virt-df.pod:156
3981 "If the kernel has a bug which stops it from accessing a filesystem in one "
3982 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3983 "and report stats for further guests."
3987 #: ../df/virt-df.pod:165
3989 "Print UUIDs instead of names. This is useful for following a guest even "
3990 "when the guest is migrated or renamed, or when two guests happen to have the "
3995 #: ../df/virt-df.pod:169
3997 "Note that only domains that we fetch from libvirt come with UUIDs. For disk "
3998 "images, we still print the disk image name even when this option is "
4003 #: ../df/virt-df.pod:229
4005 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4010 #: ../edit/virt-edit.pod:5
4011 msgid "virt-edit - Edit a file in a virtual machine"
4015 #: ../edit/virt-edit.pod:9
4018 " virt-edit [--options] -d domname file [file ...]\n"
4023 #: ../edit/virt-edit.pod:11
4026 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4031 #: ../edit/virt-edit.pod:13
4034 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4039 #: ../edit/virt-edit.pod:17
4042 " virt-edit domname file\n"
4047 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4050 " virt-edit disk.img [disk.img ...] file\n"
4055 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4056 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4057 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
4058 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4060 msgstr "ПОПЕРЕДЖЕННЯ"
4063 #: ../edit/virt-edit.pod:23
4065 "You must I<not> use C<virt-edit> on live virtual machines. If you do this, "
4066 "you risk disk corruption in the VM. C<virt-edit> tries to stop you from "
4067 "doing this, but doesn't catch all cases."
4071 #: ../edit/virt-edit.pod:29
4073 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4074 "exists in the named virtual machine (or disk image)."
4078 #: ../edit/virt-edit.pod:32
4080 "Multiple filenames can be given, in which case they are each edited in "
4081 "turn. Each filename must be a full path, starting at the root directory "
4082 "(starting with '/')."
4086 #: ../edit/virt-edit.pod:36
4087 msgid "If you want to just view a file, use L<virt-cat(1)>."
4091 #: ../edit/virt-edit.pod:38
4093 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4094 "USING GUESTFISH> below)."
4098 #: ../edit/virt-edit.pod:41
4100 "C<virt-edit> cannot be used to create a new file. L<guestfish(1)> can do "
4101 "that and much more."
4105 #: ../edit/virt-edit.pod:46
4106 msgid "Edit the named files interactively:"
4110 #: ../edit/virt-edit.pod:48
4113 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4118 #: ../edit/virt-edit.pod:50
4121 " virt-edit -d mydomain /etc/passwd\n"
4126 #: ../edit/virt-edit.pod:52
4127 msgid "For Windows guests, some Windows paths are understood:"
4131 #: ../edit/virt-edit.pod:54
4134 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4139 #: ../edit/virt-edit.pod:56
4141 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4142 "INTERACTIVE EDITING> below). To change the init default level to 5:"
4146 #: ../edit/virt-edit.pod:60
4149 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4154 #: ../edit/virt-edit.pod:81
4155 msgid "B<-b> extension"
4159 #: ../edit/virt-edit.pod:83
4160 msgid "B<--backup> extension"
4164 #: ../edit/virt-edit.pod:85
4166 "Create a backup of the original file I<in the guest disk image>. The backup "
4167 "has the original filename with C<extension> added."
4171 #: ../edit/virt-edit.pod:88
4173 "Usually the first character of C<extension> would be a dot C<.> so you would "
4178 #: ../edit/virt-edit.pod:91
4181 " virt-edit -b .orig [etc]\n"
4186 #: ../edit/virt-edit.pod:93
4187 msgid "By default, no backup file is made."
4191 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4192 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4193 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4194 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4196 msgstr "B<-c адреса>"
4199 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4200 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4201 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4202 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4203 msgid "B<--connect URI>"
4204 msgstr "B<--connect адреса>"
4207 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4208 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4209 #: ../tools/virt-win-reg.pl:135
4211 "If you specify guest block devices directly, then libvirt is not used at all."
4215 #: ../edit/virt-edit.pod:114
4217 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4218 "off so you cannot see what you are typing. If you are not worried about "
4219 "Tempest attacks and there is no one else in the room you can specify this "
4220 "flag to see what you are typing."
4224 #: ../edit/virt-edit.pod:119
4226 msgstr "B<-e> вираз"
4229 #: ../edit/virt-edit.pod:121
4230 msgid "B<--expr> EXPR"
4231 msgstr "B<--expr> вираз"
4234 #: ../edit/virt-edit.pod:123
4236 "Instead of launching the external editor, non-interactively apply the Perl "
4237 "expression C<EXPR> to each line in the file. See L</NON-INTERACTIVE "
4242 #: ../edit/virt-edit.pod:127
4244 "Be careful to properly quote the expression to prevent it from being altered "
4249 #: ../edit/virt-edit.pod:130
4250 msgid "Note that this option is only available when Perl 5 is installed."
4254 #: ../edit/virt-edit.pod:132
4255 msgid "B<--format> raw|qcow2|..."
4256 msgstr "B<--format> raw|qcow2|..."
4259 #: ../edit/virt-edit.pod:143
4262 " virt-edit --format=raw -a disk.img file\n"
4267 #: ../edit/virt-edit.pod:147
4270 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4275 #: ../edit/virt-edit.pod:181
4276 msgid "Previous versions of virt-edit allowed you to write either:"
4280 #: ../edit/virt-edit.pod:187
4283 " virt-edit guestname file\n"
4288 #: ../edit/virt-edit.pod:195
4289 msgid "NON-INTERACTIVE EDITING"
4290 msgstr "НЕІНТЕРАКТИВНЕ РЕДАГУВАННЯ"
4293 #: ../edit/virt-edit.pod:197
4295 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4296 "administrator can interactively edit the file."
4300 #: ../edit/virt-edit.pod:200
4302 "There are two ways also to use C<virt-edit> from scripts in order to make "
4303 "automated edits to files. (Note that although you I<can> use C<virt-edit> "
4304 "like this, it's less error-prone to write scripts directly using the "
4305 "libguestfs API and Augeas for configuration file editing.)"
4309 #: ../edit/virt-edit.pod:206
4311 "The first method is to temporarily set C<$EDITOR> to any script or program "
4312 "you want to run. The script is invoked as C<$EDITOR tmpfile> and it should "
4313 "update C<tmpfile> in place however it likes."
4317 #: ../edit/virt-edit.pod:210
4319 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4320 "short Perl snippet in the style of L<sed(1)>. For example to replace all "
4321 "instances of C<foo> with C<bar> in a file:"
4325 #: ../edit/virt-edit.pod:214
4328 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4333 #: ../edit/virt-edit.pod:216
4335 "The full power of Perl regular expressions can be used (see L<perlre(1)>). "
4336 "For example to delete root's password you could do:"
4340 #: ../edit/virt-edit.pod:219
4343 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4346 " virt-edit -d назва_домену /etc/passwd -e 's/^root:.*?:/root::/'\n"
4350 #: ../edit/virt-edit.pod:221
4352 "What really happens is that the snippet is evaluated as a Perl expression "
4353 "for each line of the file. The line, including the final C<\\n>, is passed "
4354 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4358 #: ../edit/virt-edit.pod:226
4360 "To delete a line, set C<$_> to the empty string. For example, to delete the "
4361 "C<apache> user account from the password file you can do:"
4365 #: ../edit/virt-edit.pod:229
4368 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4371 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4375 #: ../edit/virt-edit.pod:231
4377 "To insert a line, prepend or append it to C<$_>. However appending lines to "
4378 "the end of the file is rather difficult this way since there is no concept "
4379 "of \"last line of the file\" - your expression just doesn't get called "
4380 "again. You might want to use the first method (setting C<$EDITOR>) if you "
4385 #: ../edit/virt-edit.pod:237
4387 "The variable C<$lineno> contains the current line number. As is "
4388 "traditional, the first line in the file is number C<1>."
4392 #: ../edit/virt-edit.pod:240
4394 "The return value from the expression is ignored, but the expression may call "
4395 "C<die> in order to abort the whole program, leaving the original file "
4400 #: ../edit/virt-edit.pod:244
4402 "Remember when matching the end of a line that C<$_> may contain the final C<"
4403 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4404 "newline then neither of these. Thus to match or substitute some text at the "
4405 "end of a line, use this regular expression:"
4409 #: ../edit/virt-edit.pod:249
4412 " /some text(\\r?\\n)?$/\n"
4415 " /якийсь текст(\\r?\\n)?$/\n"
4419 #: ../edit/virt-edit.pod:251
4421 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4422 "$_> itself (since that would remove all newlines from the file):"
4426 #: ../edit/virt-edit.pod:255
4429 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4432 " my $m = $_; chomp $m; $m =~ /якийсь текст$/\n"
4436 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
4437 msgid "WINDOWS PATHS"
4438 msgstr "ШЛЯХИ У WINDOWS"
4441 #: ../edit/virt-edit.pod:259
4443 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4444 "paths (eg. C<E:\\foo\\bar.txt>)."
4448 #: ../edit/virt-edit.pod:262
4449 msgid "If and only if the guest is running Windows then:"
4453 #: ../edit/virt-edit.pod:268
4455 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
4456 "to the correct filesystem."
4460 #: ../edit/virt-edit.pod:273
4462 "Any backslash (C<\\>) characters in the path are replaced with forward "
4463 "slashes so that libguestfs can process it."
4467 #: ../edit/virt-edit.pod:278
4469 "The path is resolved case insensitively to locate the file that should be "
4474 #: ../edit/virt-edit.pod:283
4475 msgid "There are some known shortcomings:"
4479 #: ../edit/virt-edit.pod:289
4480 msgid "Some NTFS symbolic links may not be followed correctly."
4484 #: ../edit/virt-edit.pod:293
4485 msgid "NTFS junction points that cross filesystems are not followed."
4489 #: ../edit/virt-edit.pod:299
4491 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4492 "C<virt-edit> doesn't work."
4496 #: ../edit/virt-edit.pod:302
4497 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4501 #: ../edit/virt-edit.pod:304
4504 " guestfish --rw -i -d domname edit /file\n"
4509 #: ../edit/virt-edit.pod:306
4511 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4516 #: ../edit/virt-edit.pod:309
4518 "The command above uses libguestfs's guest inspection feature and so does not "
4519 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4520 "disk images that don't contain guests. To edit a file on a disk image "
4525 #: ../edit/virt-edit.pod:314
4528 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4533 #: ../edit/virt-edit.pod:316
4535 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4536 "the disk image to edit, and C</file> is the full path to the file."
4540 #: ../edit/virt-edit.pod:320
4542 "C<virt-edit> cannot create new files. Use the guestfish commands C<touch>, "
4543 "C<write> or C<upload> instead:"
4547 #: ../edit/virt-edit.pod:323
4550 " guestfish --rw -i -d domname touch /newfile\n"
4555 #: ../edit/virt-edit.pod:325
4558 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4563 #: ../edit/virt-edit.pod:327
4566 " guestfish --rw -i -d domname upload localfile /newfile\n"
4571 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4572 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
4573 #: ../src/guestfs.pod:3194 ../test-tool/libguestfs-test-tool.pod:95
4574 msgid "ENVIRONMENT VARIABLES"
4575 msgstr "ЗМІННІ СЕРЕДОВИЩА"
4578 #: ../edit/virt-edit.pod:333
4583 #: ../edit/virt-edit.pod:335
4585 "If set, this string is used as the editor. It may contain arguments, eg. C<"
4590 #: ../edit/virt-edit.pod:338
4591 msgid "If not set, C<vi> is used."
4595 #: ../edit/virt-edit.pod:356
4597 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4598 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4599 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4601 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4602 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4603 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4606 #: ../erlang/examples/guestfs-erlang.pod:5
4607 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4611 #: ../erlang/examples/guestfs-erlang.pod:9
4614 " {ok, G} = guestfs:create(),\n"
4615 " ok = guestfs:add_drive_opts(G, Disk,\n"
4616 " [{format, \"raw\"}, {readonly, true}]),\n"
4617 " ok = guestfs:launch(G),\n"
4618 " [Device] = guestfs:list_devices(G),\n"
4619 " ok = guestfs:close(G).\n"
4624 #: ../erlang/examples/guestfs-erlang.pod:18
4626 "This manual page documents how to call libguestfs from the Erlang "
4627 "programming language. This page just documents the differences from the C "
4628 "API and gives some examples. If you are not familiar with using libguestfs, "
4629 "you also need to read L<guestfs(3)>."
4633 #: ../erlang/examples/guestfs-erlang.pod:23
4634 msgid "OPENING AND CLOSING THE HANDLE"
4638 #: ../erlang/examples/guestfs-erlang.pod:25
4640 "The Erlang bindings are implemented using an external program called C<erl-"
4641 "guestfs>. This program must be on the current PATH, or else you should "
4642 "specify the full path to the program:"
4646 #: ../erlang/examples/guestfs-erlang.pod:29
4649 " {ok, G} = guestfs:create().\n"
4654 #: ../erlang/examples/guestfs-erlang.pod:31
4657 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4662 #: ../erlang/examples/guestfs-erlang.pod:33
4663 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4667 #: ../erlang/examples/guestfs-erlang.pod:36
4668 msgid "To close the handle:"
4672 #: ../erlang/examples/guestfs-erlang.pod:38
4675 " ok = guestfs:close(G).\n"
4680 #: ../erlang/examples/guestfs-erlang.pod:40
4681 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4685 #: ../erlang/examples/guestfs-erlang.pod:42
4687 "For functions that take optional arguments, the first arguments are the non-"
4688 "optional ones. The last argument is a list of tuples supplying the "
4689 "remaining optional arguments."
4693 #: ../erlang/examples/guestfs-erlang.pod:46
4696 " ok = guestfs:add_drive_opts(G, Disk,\n"
4697 " [{format, \"raw\"}, {readonly, true}]).\n"
4702 #: ../erlang/examples/guestfs-erlang.pod:49
4703 msgid "If the last argument would be an empty list, you can also omit it:"
4707 #: ../erlang/examples/guestfs-erlang.pod:51
4710 " ok = guestfs:add_drive_opts(G, Disk).\n"
4715 #: ../erlang/examples/guestfs-erlang.pod:53
4716 msgid "RETURN VALUES AND ERRORS"
4720 #: ../erlang/examples/guestfs-erlang.pod:55
4722 "On success, most functions return a C<Result> term (which could be a list, "
4723 "string, tuple etc.). If there is nothing for the function to return, then "
4724 "the atom C<ok> is returned."
4728 #: ../erlang/examples/guestfs-erlang.pod:59
4729 msgid "On error, you would see one of the following tuples:"
4733 #: ../erlang/examples/guestfs-erlang.pod:63
4734 msgid "C<{error, Msg, Errno}>"
4738 #: ../erlang/examples/guestfs-erlang.pod:65
4739 msgid "This indicates an ordinary error from the function."
4743 #: ../erlang/examples/guestfs-erlang.pod:67
4745 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4750 #: ../erlang/examples/guestfs-erlang.pod:70
4751 msgid "C<Errno> can be zero. See L<guestfs(3)/guestfs_last_errno>."
4755 #: ../erlang/examples/guestfs-erlang.pod:72
4756 msgid "C<{unknown, Function}>"
4760 #: ../erlang/examples/guestfs-erlang.pod:74
4762 "This indicates that the function you called is not known. Generally this "
4763 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4764 "which you should not do."
4768 #: ../erlang/examples/guestfs-erlang.pod:78
4769 msgid "C<Function> is the name of the unknown function."
4773 #: ../erlang/examples/guestfs-erlang.pod:80
4774 msgid "C<{unknownarg, Arg}>"
4778 #: ../erlang/examples/guestfs-erlang.pod:82
4780 "This indicates that you called a function with optional arguments, with an "
4781 "unknown argument name."
4785 #: ../erlang/examples/guestfs-erlang.pod:85
4786 msgid "C<Arg> is the name of the unknown argument."
4790 #: ../erlang/examples/guestfs-erlang.pod:89
4791 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4792 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4793 #: ../python/examples/guestfs-python.pod:34
4794 #: ../ruby/examples/guestfs-ruby.pod:28
4795 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4796 msgstr "ПРИКЛАД 1. СТВОРЕННЯ ОБРАЗУ ДИСКА"
4799 #: ../erlang/examples/guestfs-erlang.pod:91
4800 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4801 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4802 #: ../python/examples/guestfs-python.pod:36
4803 #: ../ruby/examples/guestfs-ruby.pod:30
4808 #: ../erlang/examples/guestfs-erlang.pod:93
4809 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4810 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4811 #: ../python/examples/guestfs-python.pod:38
4812 #: ../ruby/examples/guestfs-ruby.pod:32
4813 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4814 msgstr "ПРИКЛАД 2. ПЕРЕВІРКА ОБРАЗУ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
4817 #: ../erlang/examples/guestfs-erlang.pod:95
4818 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4819 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4820 #: ../python/examples/guestfs-python.pod:40
4821 #: ../ruby/examples/guestfs-ruby.pod:34
4826 #: ../erlang/examples/guestfs-erlang.pod:99
4828 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4829 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4830 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>."
4834 #: ../erlang/examples/guestfs-erlang.pod:110
4835 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4836 #: ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60
4837 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4838 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
4839 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
4840 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4841 #: ../python/examples/guestfs-python.pod:54
4842 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3333
4843 #: ../test-tool/libguestfs-test-tool.pod:106
4848 #: ../erlang/examples/guestfs-erlang.pod:112
4849 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4850 #: ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62
4851 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4852 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
4853 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4854 #: ../perl/examples/guestfs-perl.pod:54
4855 #: ../python/examples/guestfs-python.pod:56
4856 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3335
4857 #: ../test-tool/libguestfs-test-tool.pod:108
4858 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4859 msgstr "Richard W.M. Jones (C<rjones at redhat dot com>)"
4862 #: ../erlang/examples/guestfs-erlang.pod:116
4863 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4864 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4868 #: ../erlang/examples/guestfs-erlang.pod:118
4869 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4870 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4871 #: ../perl/examples/guestfs-perl.pod:60
4872 #: ../python/examples/guestfs-python.pod:62
4873 #: ../ruby/examples/guestfs-ruby.pod:56
4875 "The examples in this manual page may be freely copied, modified and "
4876 "distributed without any restrictions."
4880 #: ../erlang/examples/guestfs-erlang.pod:121
4881 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4882 #: ../java/examples/guestfs-java.pod:69
4883 #: ../ocaml/examples/guestfs-ocaml.pod:102
4884 #: ../perl/examples/guestfs-perl.pod:63
4885 #: ../python/examples/guestfs-python.pod:65
4886 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3342
4888 "This library is free software; you can redistribute it and/or modify it "
4889 "under the terms of the GNU Lesser General Public License as published by the "
4890 "Free Software Foundation; either version 2 of the License, or (at your "
4891 "option) any later version."
4895 #: ../erlang/examples/guestfs-erlang.pod:126
4896 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4897 #: ../java/examples/guestfs-java.pod:74
4898 #: ../ocaml/examples/guestfs-ocaml.pod:107
4899 #: ../perl/examples/guestfs-perl.pod:68
4900 #: ../python/examples/guestfs-python.pod:70
4901 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3347
4903 "This library is distributed in the hope that it will be useful, but WITHOUT "
4904 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4905 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License "
4910 #: ../erlang/examples/guestfs-erlang.pod:131
4911 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4912 #: ../java/examples/guestfs-java.pod:79
4913 #: ../ocaml/examples/guestfs-ocaml.pod:112
4914 #: ../perl/examples/guestfs-perl.pod:73
4915 #: ../python/examples/guestfs-python.pod:75
4916 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3352
4918 "You should have received a copy of the GNU Lesser General Public License "
4919 "along with this library; if not, write to the Free Software Foundation, "
4920 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4924 #: ../examples/guestfs-examples.pod:5
4925 msgid "guestfs-examples - Examples of using libguestfs from C"
4929 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4932 " #include <guestfs.h>\n"
4935 " #include <guestfs.h>\n"
4939 #: ../examples/guestfs-examples.pod:11
4942 " guestfs_h *g = guestfs_create ();\n"
4943 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4944 " guestfs_launch (g);\n"
4947 " guestfs_h *g = guestfs_create ();\n"
4948 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4949 " guestfs_launch (g);\n"
4953 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4956 " cc prog.c -o prog -lguestfs\n"
4958 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4961 " cc prog.c -o prog -lguestfs\n"
4963 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4967 #: ../examples/guestfs-examples.pod:21
4969 "This manual page contains examples of calling libguestfs from the C "
4970 "programming language. If you are not familiar with using libguestfs, you "
4971 "also need to read L<guestfs(3)>."
4975 #: ../examples/guestfs-examples.pod:35
4977 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4978 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4979 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4983 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
4984 #: ../python/examples/guestfs-python.pod:60
4985 #: ../ruby/examples/guestfs-ruby.pod:54
4986 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4990 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4995 #: ../examples/guestfs-recipes.pod:5
4997 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4998 "here. The only way which works for both sorts of output is to just write "
4999 "the URL directly. Do NOT use L<...> for URLs."
5003 #: ../examples/guestfs-recipes.pod:9
5005 "We break with tradition here and don't use ALL CAPS for the section "
5006 "headings, as this makes them much easier to read."
5010 #: ../examples/guestfs-recipes.pod:16
5011 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
5015 #: ../examples/guestfs-recipes.pod:20
5017 "This page contains recipes for and links to things you can do using "
5018 "libguestfs, L<guestfish(1)> and the virt tools."
5022 #: ../examples/guestfs-recipes.pod:23
5023 msgid "Audit a virtual machine for setuid files"
5027 #: ../examples/guestfs-recipes.pod:25
5029 "The link below contains a small program which can be used to audit a Linux "
5030 "virtual machine to see what setuid and setgid files it contains."
5034 #: ../examples/guestfs-recipes.pod:28
5036 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
5041 #: ../examples/guestfs-recipes.pod:30
5042 msgid "Change the background image in a Windows XP VM"
5046 #: ../examples/guestfs-recipes.pod:32
5048 "The links below explain how to use L<guestfish(1)> to change the background "
5049 "image for a user of a Windows XP VM. Unfortunately the technique appears to "
5050 "be substantially different for each version of Windows."
5054 #: ../examples/guestfs-recipes.pod:37
5056 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
5057 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
5061 #: ../examples/guestfs-recipes.pod:40
5062 msgid "Cloning a virtual machine (Linux)"
5066 #: ../examples/guestfs-recipes.pod:42
5068 "The guestfish technique described in the link below works well for most "
5069 "Linux VMs. Depending on the Linux distro you may need to change the paths "
5074 #: ../examples/guestfs-recipes.pod:46
5076 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5081 #: ../examples/guestfs-recipes.pod:48
5083 "Avoid L<virt-clone(1)>. Currently what to do about virt-clone is under "
5088 #: ../examples/guestfs-recipes.pod:51
5089 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5093 #: ../examples/guestfs-recipes.pod:53
5094 msgid "Cloning a virtual machine (Windows)"
5098 #: ../examples/guestfs-recipes.pod:55
5100 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5101 "straightforward. Currently there is code in the Aeolus Oz project which "
5102 "does this (using libguestfs). As part of our review of the virt-clone tool, "
5103 "we may add sysprepping ability."
5107 #: ../examples/guestfs-recipes.pod:60
5109 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5110 "list/2011-May/msg00019.html"
5114 #: ../examples/guestfs-recipes.pod:63
5115 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5119 #: ../examples/guestfs-recipes.pod:65
5120 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5124 #: ../examples/guestfs-recipes.pod:67
5127 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5132 #: ../examples/guestfs-recipes.pod:69
5133 msgid "To export just a subdirectory, eg. C</files>, do:"
5137 #: ../examples/guestfs-recipes.pod:71
5140 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5145 #: ../examples/guestfs-recipes.pod:73
5146 msgid "Create empty disk images"
5150 #: ../examples/guestfs-recipes.pod:75
5152 "You can use the L<guestfish(1)> I<-N> option to create empty disk images. "
5153 "The useful guide below explains the options available."
5157 #: ../examples/guestfs-recipes.pod:78
5159 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5164 #: ../examples/guestfs-recipes.pod:80
5165 msgid "Dump raw filesystem content from inside a disk image or VM"
5169 #: ../examples/guestfs-recipes.pod:82
5171 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5172 "filesystem content from any filesystem in a disk image or a VM (even one "
5173 "which is encrypted or buried inside an LV):"
5177 #: ../examples/guestfs-recipes.pod:86
5180 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5185 #: ../examples/guestfs-recipes.pod:88
5188 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5193 #: ../examples/guestfs-recipes.pod:90
5194 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5198 #: ../examples/guestfs-recipes.pod:92
5199 msgid "Edit grub configuration in a VM"
5203 #: ../examples/guestfs-recipes.pod:94
5204 msgid "You can use this to:"
5208 #: ../examples/guestfs-recipes.pod:100
5209 msgid "Fix a virtual machine that does not boot."
5213 #: ../examples/guestfs-recipes.pod:104
5214 msgid "Change which kernel is used to boot the VM."
5218 #: ../examples/guestfs-recipes.pod:108
5219 msgid "Change kernel command line options."
5223 #: ../examples/guestfs-recipes.pod:112
5224 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5228 #: ../examples/guestfs-recipes.pod:114
5231 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5236 #: ../examples/guestfs-recipes.pod:116
5238 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5243 #: ../examples/guestfs-recipes.pod:119
5246 " virt-rescue -d BrokenGuest\n"
5251 #: ../examples/guestfs-recipes.pod:121
5252 msgid "Export any directory from a VM"
5256 #: ../examples/guestfs-recipes.pod:123
5258 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5262 #: ../examples/guestfs-recipes.pod:126
5265 " virt-copy-out -d Guest /home .\n"
5270 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5271 #: ../fish/guestfish-actions.pod:1332 ../fish/guestfish-actions.pod:1597
5272 #: ../fish/guestfish-actions.pod:2014 ../src/guestfs-actions.pod:18
5273 #: ../src/guestfs-actions.pod:2039 ../src/guestfs-actions.pod:2463
5274 #: ../src/guestfs-actions.pod:3022 ../src/guestfs.pod:1670
5275 #: ../tools/virt-win-reg.pl:706
5280 #: ../examples/guestfs-recipes.pod:134
5282 "The final dot of the command is not a printing error. It means we want to "
5283 "copy out to the current directory."
5287 #: ../examples/guestfs-recipes.pod:139
5288 msgid "This creates a directory called C<home> under the current directory."
5292 #: ../examples/guestfs-recipes.pod:143
5294 "If the guest is a Windows guest then you can use drive letters and "
5295 "backslashes, but you must prefix the path with C<win:> and quote it to "
5296 "protect it from the shell, like this:"
5300 #: ../examples/guestfs-recipes.pod:147
5303 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5308 #: ../examples/guestfs-recipes.pod:149
5309 msgid "To get the output as a compressed tarball, do:"
5313 #: ../examples/guestfs-recipes.pod:151
5316 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5321 #: ../examples/guestfs-recipes.pod:153
5323 "Although it sounds tempting, this is usually not a reliable way to get a "
5324 "backup from a running guest. See the entry in the FAQ: http://libguestfs."
5325 "org/FAQ.html#backup"
5329 #: ../examples/guestfs-recipes.pod:157
5330 msgid "Find out which user is using the most space"
5334 #: ../examples/guestfs-recipes.pod:159
5336 "This simple script examines a Linux guest to find out which user is using "
5337 "the most space in their home directory:"
5341 #: ../examples/guestfs-recipes.pod:162
5349 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5357 #: ../examples/guestfs-recipes.pod:166
5366 #: ../examples/guestfs-recipes.pod:169
5369 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5374 #: ../examples/guestfs-recipes.pod:171
5377 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5378 " echo -n \"$dir/$d\"\n"
5380 " guestfish --remote du \"$dir/$d\";\n"
5381 " done | sort -nr -k 2\n"
5386 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5389 " guestfish --remote exit\n"
5394 #: ../examples/guestfs-recipes.pod:179
5395 msgid "Get DHCP address from a VM"
5399 #: ../examples/guestfs-recipes.pod:181
5401 "The link below explains the many different possible techniques for getting "
5402 "the last assigned DHCP address of a virtual machine."
5406 #: ../examples/guestfs-recipes.pod:184
5408 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5409 "a-virtual-machine-disk-image/#content"
5413 #: ../examples/guestfs-recipes.pod:186
5415 "In the libguestfs source examples directory you will find the latest version "
5416 "of the C<virt-dhcp-address.c> program."
5420 #: ../examples/guestfs-recipes.pod:189
5421 msgid "Get the operating system product name string"
5425 #: ../examples/guestfs-recipes.pod:191
5426 msgid "Save the following script into a file called C<product-name.sh>:"
5430 #: ../examples/guestfs-recipes.pod:193
5435 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5436 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5437 " guestfish --remote inspect-get-product-name \"$root\"\n"
5438 " guestfish --remote exit\n"
5443 #: ../examples/guestfs-recipes.pod:200
5444 msgid "Make the script executable and run it on a named guest:"
5448 #: ../examples/guestfs-recipes.pod:202
5451 " # product-name.sh RHEL60x64\n"
5452 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5457 #: ../examples/guestfs-recipes.pod:205
5459 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5460 "C<xpath> command line tool or from your favourite programming language:"
5464 #: ../examples/guestfs-recipes.pod:209
5467 " # virt-inspector RHEL60x64 > xml\n"
5468 " # xpath '//product_name' < xml\n"
5471 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5476 #: ../examples/guestfs-recipes.pod:215
5477 msgid "Get the default boot kernel for a Linux VM"
5481 #: ../examples/guestfs-recipes.pod:217
5483 "The link below contains a program to print the default boot kernel for a "
5488 #: ../examples/guestfs-recipes.pod:220
5490 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5491 "kernel-for-a-vm/#content"
5495 #: ../examples/guestfs-recipes.pod:222
5497 "It uses Augeas, and the technique is generally applicable for many different "
5502 #: ../examples/guestfs-recipes.pod:229
5503 msgid "listing the user accounts in the guest"
5507 #: ../examples/guestfs-recipes.pod:233
5508 msgid "what repositories is it configured to use"
5512 #: ../examples/guestfs-recipes.pod:237
5513 msgid "what NTP servers does it connect to"
5517 #: ../examples/guestfs-recipes.pod:241
5518 msgid "what were the boot messages last time it booted"
5522 #: ../examples/guestfs-recipes.pod:245
5523 msgid "listing who was logged in recently"
5527 #: ../examples/guestfs-recipes.pod:249
5528 msgid "http://augeas.net/"
5532 #: ../examples/guestfs-recipes.pod:251
5533 msgid "Install RPMs in a guest"
5537 #: ../examples/guestfs-recipes.pod:253
5539 "The link below contains a method to install RPMs in a guest. In fact the "
5540 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5541 "installs them next time the guest is booted. You could use this technique "
5542 "to install vital security updates in an offline guest."
5546 #: ../examples/guestfs-recipes.pod:259
5548 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5552 #: ../examples/guestfs-recipes.pod:261
5553 msgid "List applications installed in a VM"
5557 #: ../examples/guestfs-recipes.pod:263
5558 msgid "Save the following to a file C<list-apps.sh>:"
5562 #: ../examples/guestfs-recipes.pod:265
5567 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5568 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5569 " guestfish --remote inspect-list-applications \"$root\"\n"
5570 " guestfish --remote exit\n"
5575 #: ../examples/guestfs-recipes.pod:272
5577 "Make the file executable and then you can run it on any named virtual "
5582 #: ../examples/guestfs-recipes.pod:275
5585 " # list-apps.sh WinGuest\n"
5587 " app_name: Mozilla Firefox (3.6.12)\n"
5588 " app_display_name: Mozilla Firefox (3.6.12)\n"
5590 " app_version: 3.6.12 (en-GB)\n"
5592 " app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5593 " app_trans_path:\n"
5594 " app_publisher: Mozilla\n"
5595 " app_url: http://www.mozilla.com/en-GB/\n"
5596 " app_source_package:\n"
5598 " app_description: Mozilla Firefox\n"
5601 " app_name: VLC media player\n"
5602 " app_display_name: VLC media player 1.1.5\n"
5604 " app_version: 1.1.5\n"
5606 " app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5607 " app_trans_path:\n"
5608 " app_publisher: VideoLAN\n"
5609 " app_url: http://www.videolan.org/\n"
5610 " app_source_package:\n"
5612 " app_description:\n"
5618 #: ../examples/guestfs-recipes.pod:305
5620 "If you want to run the script on disk images (instead of libvirt virtual "
5621 "machines), change C<-d \"$1\"> to C<-a \"$1\">. See also L<virt-inspector(1)"
5626 #: ../examples/guestfs-recipes.pod:309
5627 msgid "List files and directories in a VM"
5631 #: ../examples/guestfs-recipes.pod:311
5632 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5636 #: ../examples/guestfs-recipes.pod:313
5639 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5644 #: ../examples/guestfs-recipes.pod:315
5645 msgid "List services in a Windows VM"
5649 #: ../examples/guestfs-recipes.pod:317
5651 "The link below contains a script that can be used to list out the services "
5652 "from a Windows VM, and whether those services run at boot time or are loaded "
5657 #: ../examples/guestfs-recipes.pod:321
5659 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5664 #: ../examples/guestfs-recipes.pod:323
5665 msgid "Make a disk image sparse"
5669 #: ../examples/guestfs-recipes.pod:325
5671 "The link below contains some guides for making a disk image sparse (or "
5672 "reintroducing sparseness)."
5676 #: ../examples/guestfs-recipes.pod:328
5678 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5682 #: ../examples/guestfs-recipes.pod:330
5683 msgid "Monitor disk usage over time"
5687 #: ../examples/guestfs-recipes.pod:332
5689 "You can use L<virt-df(1)> to monitor disk usage of your guests over time. "
5690 "The link below contains a guide."
5694 #: ../examples/guestfs-recipes.pod:335
5695 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5699 #: ../examples/guestfs-recipes.pod:337
5700 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5704 #: ../examples/guestfs-recipes.pod:339
5706 "L<guestfish(1)> plus the tools described in the link below can be used to "
5707 "read out the Windows Event Log from any virtual machine running Windows "
5708 "Vista or a later version."
5712 #: ../examples/guestfs-recipes.pod:343
5714 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5715 "guestfish/#content"
5719 #: ../examples/guestfs-recipes.pod:345
5720 msgid "Remove root password (Linux)"
5724 #: ../examples/guestfs-recipes.pod:347
5726 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5727 "files. One use is to remove the root password from a Linux guest:"
5731 #: ../examples/guestfs-recipes.pod:350
5734 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5739 #: ../examples/guestfs-recipes.pod:352
5740 msgid "Remove Administrator password (Windows)"
5744 #: ../examples/guestfs-recipes.pod:354
5746 "The link below contains one technique for removing the Administrator "
5747 "password from a Windows VM, or to be more precise, it gives you a command "
5748 "prompt the next time you log in which you can use to bypass any security:"
5752 #: ../examples/guestfs-recipes.pod:359
5754 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5755 "administrator-password-with-guestfish/"
5759 #: ../examples/guestfs-recipes.pod:361
5760 msgid "Unpack a live CD"
5764 #: ../examples/guestfs-recipes.pod:363
5766 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5767 "Russian doll. You can use L<guestfish(1)> to look inside these multiple "
5768 "layers, as outlined in the guide below."
5772 #: ../examples/guestfs-recipes.pod:367
5774 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5779 #: ../examples/guestfs-recipes.pod:369
5780 msgid "Uploading and downloading files"
5784 #: ../examples/guestfs-recipes.pod:371
5786 "The link below contains general tips on uploading (copying in) and "
5787 "downloading (copying out) files from VMs."
5791 #: ../examples/guestfs-recipes.pod:374
5793 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5797 #: ../examples/guestfs-recipes.pod:376
5798 msgid "Use libguestfs tools on VMware ESX guests"
5802 #: ../examples/guestfs-recipes.pod:378
5804 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5805 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5809 #: ../examples/guestfs-recipes.pod:382
5811 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5816 #: ../examples/guestfs-recipes.pod:386
5818 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5819 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5820 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5824 #: ../examples/guestfs-recipes.pod:403
5825 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5829 #: ../fish/guestfish-actions.pod:1
5834 #: ../fish/guestfish-actions.pod:3
5837 " add-cdrom filename\n"
5842 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5843 msgid "This function adds a virtual CD-ROM disk image to the guest."
5847 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5848 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5852 #: ../fish/guestfish-actions.pod:15
5854 "This call checks for the existence of C<filename>. This stops you from "
5855 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5856 "and C<http:> URLs. To specify those, use the general L</config> call "
5861 #: ../fish/guestfish-actions.pod:22
5863 "If you just want to add an ISO file (often you use this as an efficient way "
5864 "to transfer large files into the guest), then you should probably use L</add-"
5865 "drive-ro> instead."
5869 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:168
5870 #: ../fish/guestfish-actions.pod:182
5872 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5877 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:171
5878 #: ../fish/guestfish-actions.pod:185 ../fish/guestfish-actions.pod:1031
5879 #: ../fish/guestfish-actions.pod:1391 ../fish/guestfish-actions.pod:1405
5880 #: ../fish/guestfish-actions.pod:3175 ../fish/guestfish-actions.pod:3486
5881 #: ../fish/guestfish-actions.pod:3534 ../fish/guestfish-actions.pod:4447
5882 #: ../fish/guestfish-actions.pod:4470 ../fish/guestfish-actions.pod:4492
5883 #: ../fish/guestfish-actions.pod:4530 ../fish/guestfish-actions.pod:5179
5884 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:10
5885 #: ../src/guestfs-actions.pod:258 ../src/guestfs-actions.pod:279
5886 #: ../src/guestfs-actions.pod:1625 ../src/guestfs-actions.pod:2124
5887 #: ../src/guestfs-actions.pod:2145 ../src/guestfs-actions.pod:4790
5888 #: ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5412
5889 #: ../src/guestfs-actions.pod:6694 ../src/guestfs-actions.pod:6738
5890 #: ../src/guestfs-actions.pod:6772 ../src/guestfs-actions.pod:6835
5891 #: ../src/guestfs-actions.pod:7767 ../src/guestfs-actions.pod:7876
5892 #: ../src/guestfs-actions.pod:8059
5894 "Deprecated functions will not be removed from the API, but the fact that "
5895 "they are deprecated indicates that there are problems with correct use of "
5900 #: ../fish/guestfish-actions.pod:35
5905 #: ../fish/guestfish-actions.pod:37
5910 #: ../fish/guestfish-actions.pod:39
5913 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
5918 #: ../fish/guestfish-actions.pod:41
5920 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
5921 "It works by connecting to libvirt, requesting the domain and domain XML from "
5922 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5926 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
5928 "The number of disks added is returned. This operation is atomic: if an "
5929 "error is returned, then no disks are added."
5933 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
5935 "This function does some minimal checks to make sure the libvirt domain is "
5936 "not running (unless C<readonly> is true). In a future version we will try "
5937 "to acquire the libvirt lock on each disk."
5941 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
5943 "Disks must be accessible locally. This often means that adding disks from a "
5944 "remote libvirt connection (see L<http://libvirt.org/remote.html>) will fail "
5945 "unless those disks are accessible via the same device path locally too."
5949 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
5951 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
5952 "libvirt.org/uri.html>). If this is not set then we connect to the default "
5953 "libvirt URI (or one set through an environment variable, see the libvirt "
5954 "documentation for full details)."
5958 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
5960 "The optional C<live> flag controls whether this call will try to connect to "
5961 "a running virtual machine C<guestfsd> process if it sees a suitable "
5962 "E<lt>channelE<gt> element in the libvirt XML definition. The default (if "
5963 "the flag is omitted) is never to try. See L<guestfs(3)/ATTACHING TO RUNNING "
5964 "DAEMONS> for more information."
5968 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
5970 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
5971 "passed instead of the domain name. The C<dom> string is treated as a UUID "
5972 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
5977 #: ../fish/guestfish-actions.pod:76
5979 "The other optional parameters are passed directly through to L</add-drive-"
5984 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:148
5985 #: ../fish/guestfish-actions.pod:578 ../fish/guestfish-actions.pod:789
5986 #: ../fish/guestfish-actions.pod:810 ../fish/guestfish-actions.pod:2053
5987 #: ../fish/guestfish-actions.pod:3224 ../fish/guestfish-actions.pod:3387
5988 #: ../fish/guestfish-actions.pod:3522
5990 "This command has one or more optional arguments. See L</OPTIONAL ARGUMENTS>."
5994 #: ../fish/guestfish-actions.pod:81
5999 #: ../fish/guestfish-actions.pod:83
6002 " add-drive filename\n"
6005 " add-drive назва_файла\n"
6009 #: ../fish/guestfish-actions.pod:85
6011 "This function is the equivalent of calling L</add-drive-opts> with no "
6012 "optional parameters, so the disk is added writable, with the format being "
6013 "detected automatically."
6017 #: ../fish/guestfish-actions.pod:89
6019 "Automatic detection of the format opens you up to a potential security hole "
6020 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
6021 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
6022 "you should think about replacing calls to this function with calls to L</add-"
6023 "drive-opts>, and specifying the format."
6027 #: ../fish/guestfish-actions.pod:96
6028 msgid "add-drive-opts"
6029 msgstr "add-drive-opts"
6032 #: ../fish/guestfish-actions.pod:98
6037 #: ../fish/guestfish-actions.pod:100
6040 " add-drive-opts filename [readonly:..] [format:..] [iface:..] [name:..]\n"
6045 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:161
6047 "This function adds a virtual machine disk image C<filename> to libguestfs. "
6048 "The first time you call this function, the disk appears as C</dev/sda>, the "
6049 "second time as C</dev/sdb>, and so on."
6053 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:166
6055 "You don't necessarily need to be root when using libguestfs. However you "
6056 "obviously do need sufficient permissions to access the filename for whatever "
6057 "operations you want to perform (ie. read access if you just want to read the "
6058 "image or write access if you want to modify the image)."
6062 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:172
6063 msgid "This call checks that C<filename> exists."
6067 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3186
6068 #: ../src/guestfs-actions.pod:174 ../src/guestfs-actions.pod:4827
6069 msgid "The optional arguments are:"
6073 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:178
6075 msgstr "C<readonly>"
6078 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:180
6080 "If true then the image is treated as read-only. Writes are still allowed, "
6081 "but they are stored in a temporary snapshot overlay which is discarded at "
6082 "the end. The disk that you add is not modified."
6086 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:184
6091 #: ../fish/guestfish-actions.pod:127
6093 "This forces the image format. If you omit this (or use L</add-drive> or L</"
6094 "add-drive-ro>) then the format is automatically detected. Possible formats "
6095 "include C<raw> and C<qcow2>."
6099 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:190
6101 "Automatic detection of the format opens you up to a potential security hole "
6102 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
6103 "RHBZ#642934. Specifying the format closes this security hole."
6107 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:195
6112 #: ../fish/guestfish-actions.pod:138
6114 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6115 "add-drive-with-if> call (q.v.)"
6119 #: ../fish/guestfish-actions.pod:141 ../src/guestfs-actions.pod:200
6121 #| msgid "C<app_name>"
6123 msgstr "C<app_name>"
6126 #: ../fish/guestfish-actions.pod:143 ../src/guestfs-actions.pod:202
6128 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6129 "a hint to the guest inspection process if it is available."
6133 #: ../fish/guestfish-actions.pod:150
6134 msgid "add-drive-ro"
6135 msgstr "add-drive-ro"
6138 #: ../fish/guestfish-actions.pod:152
6143 #: ../fish/guestfish-actions.pod:154
6146 " add-drive-ro filename\n"
6151 #: ../fish/guestfish-actions.pod:156
6153 "This function is the equivalent of calling L</add-drive-opts> with the "
6154 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6155 "is added read-only, with the format being detected automatically."
6159 #: ../fish/guestfish-actions.pod:161
6160 msgid "add-drive-ro-with-if"
6164 #: ../fish/guestfish-actions.pod:163
6167 " add-drive-ro-with-if filename iface\n"
6172 #: ../fish/guestfish-actions.pod:165
6174 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6175 "interface emulation to use at run time."
6179 #: ../fish/guestfish-actions.pod:175
6180 msgid "add-drive-with-if"
6184 #: ../fish/guestfish-actions.pod:177
6187 " add-drive-with-if filename iface\n"
6192 #: ../fish/guestfish-actions.pod:179
6194 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6195 "interface emulation to use at run time."
6199 #: ../fish/guestfish-actions.pod:189
6204 #: ../fish/guestfish-actions.pod:191
6207 " aug-clear augpath\n"
6212 #: ../fish/guestfish-actions.pod:193 ../src/guestfs-actions.pod:296
6214 "Set the value associated with C<path> to C<NULL>. This is the same as the "
6215 "L<augtool(1)> C<clear> command."
6219 #: ../fish/guestfish-actions.pod:196
6224 #: ../fish/guestfish-actions.pod:198
6232 #: ../fish/guestfish-actions.pod:200
6234 "Close the current Augeas handle and free up any resources used by it. After "
6235 "calling this, you have to call L</aug-init> again before you can use any "
6236 "other Augeas functions."
6240 #: ../fish/guestfish-actions.pod:205
6245 #: ../fish/guestfish-actions.pod:207
6248 " aug-defnode name expr val\n"
6253 #: ../fish/guestfish-actions.pod:209 ../src/guestfs-actions.pod:325
6255 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6259 #: ../fish/guestfish-actions.pod:212
6261 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6262 "calling L</aug-set> C<expr>, C<value>. C<name> will be the nodeset "
6263 "containing that single node."
6267 #: ../fish/guestfish-actions.pod:216 ../src/guestfs-actions.pod:332
6269 "On success this returns a pair containing the number of nodes in the "
6270 "nodeset, and a boolean flag if a node was created."
6274 #: ../fish/guestfish-actions.pod:220
6279 #: ../fish/guestfish-actions.pod:222
6282 " aug-defvar name expr\n"
6287 #: ../fish/guestfish-actions.pod:224 ../src/guestfs-actions.pod:349
6289 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6290 "C<expr>. If C<expr> is NULL, then C<name> is undefined."
6294 #: ../fish/guestfish-actions.pod:228 ../src/guestfs-actions.pod:353
6296 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6297 "evaluates to something which is not a nodeset."
6301 #: ../fish/guestfish-actions.pod:231
6306 #: ../fish/guestfish-actions.pod:233
6309 " aug-get augpath\n"
6314 #: ../fish/guestfish-actions.pod:235 ../src/guestfs-actions.pod:366
6316 "Look up the value associated with C<path>. If C<path> matches exactly one "
6317 "node, the C<value> is returned."
6321 #: ../fish/guestfish-actions.pod:238
6326 #: ../fish/guestfish-actions.pod:240
6329 " aug-init root flags\n"
6334 #: ../fish/guestfish-actions.pod:242 ../src/guestfs-actions.pod:381
6336 "Create a new Augeas handle for editing configuration files. If there was "
6337 "any previous Augeas handle associated with this guestfs session, then it is "
6342 #: ../fish/guestfish-actions.pod:246
6343 msgid "You must call this before using any other L</aug-*> commands."
6347 #: ../fish/guestfish-actions.pod:249 ../src/guestfs-actions.pod:388
6349 "C<root> is the filesystem root. C<root> must not be NULL, use C</> instead."
6353 #: ../fish/guestfish-actions.pod:252 ../src/guestfs-actions.pod:391
6355 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6356 "logical I<or> of the following integers:"
6360 #: ../fish/guestfish-actions.pod:258 ../src/guestfs-actions.pod:397
6361 msgid "C<AUG_SAVE_BACKUP> = 1"
6362 msgstr "C<AUG_SAVE_BACKUP> = 1"
6365 #: ../fish/guestfish-actions.pod:260 ../src/guestfs-actions.pod:399
6366 msgid "Keep the original file with a C<.augsave> extension."
6370 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:401
6371 msgid "C<AUG_SAVE_NEWFILE> = 2"
6372 msgstr "C<AUG_SAVE_NEWFILE> = 2"
6375 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:403
6377 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6378 "original. Overrides C<AUG_SAVE_BACKUP>."
6382 #: ../fish/guestfish-actions.pod:267 ../src/guestfs-actions.pod:406
6383 msgid "C<AUG_TYPE_CHECK> = 4"
6384 msgstr "C<AUG_TYPE_CHECK> = 4"
6387 #: ../fish/guestfish-actions.pod:269 ../src/guestfs-actions.pod:408
6388 msgid "Typecheck lenses."
6392 #: ../fish/guestfish-actions.pod:271
6394 "This option is only useful when debugging Augeas lenses. Use of this option "
6395 "may require additional memory for the libguestfs appliance. You may need to "
6396 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6400 #: ../fish/guestfish-actions.pod:276 ../src/guestfs-actions.pod:415
6401 msgid "C<AUG_NO_STDINC> = 8"
6402 msgstr "C<AUG_NO_STDINC> = 8"
6405 #: ../fish/guestfish-actions.pod:278 ../src/guestfs-actions.pod:417
6406 msgid "Do not use standard load path for modules."
6410 #: ../fish/guestfish-actions.pod:280 ../src/guestfs-actions.pod:419
6411 msgid "C<AUG_SAVE_NOOP> = 16"
6412 msgstr "C<AUG_SAVE_NOOP> = 16"
6415 #: ../fish/guestfish-actions.pod:282 ../src/guestfs-actions.pod:421
6416 msgid "Make save a no-op, just record what would have been changed."
6420 #: ../fish/guestfish-actions.pod:284 ../src/guestfs-actions.pod:423
6421 msgid "C<AUG_NO_LOAD> = 32"
6422 msgstr "C<AUG_NO_LOAD> = 32"
6425 #: ../fish/guestfish-actions.pod:286
6426 msgid "Do not load the tree in L</aug-init>."
6430 #: ../fish/guestfish-actions.pod:290
6431 msgid "To close the handle, you can call L</aug-close>."
6435 #: ../fish/guestfish-actions.pod:292 ../src/guestfs-actions.pod:431
6436 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6440 #: ../fish/guestfish-actions.pod:294
6445 #: ../fish/guestfish-actions.pod:296
6448 " aug-insert augpath label true|false\n"
6453 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:445
6455 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6456 "or after C<path> (depending on the boolean flag C<before>)."
6460 #: ../fish/guestfish-actions.pod:302 ../src/guestfs-actions.pod:449
6462 "C<path> must match exactly one existing node in the tree, and C<label> must "
6463 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6467 #: ../fish/guestfish-actions.pod:306
6472 #: ../fish/guestfish-actions.pod:308
6480 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:462
6481 msgid "Load files into the tree."
6482 msgstr "Завантажити файли до ієрархії."
6485 #: ../fish/guestfish-actions.pod:312 ../src/guestfs-actions.pod:464
6486 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6490 #: ../fish/guestfish-actions.pod:315
6495 #: ../fish/guestfish-actions.pod:317
6503 #: ../fish/guestfish-actions.pod:319
6505 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6506 "resulting nodes into alphabetical order."
6510 #: ../fish/guestfish-actions.pod:322
6515 #: ../fish/guestfish-actions.pod:324
6518 " aug-match augpath\n"
6523 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:492
6525 "Returns a list of paths which match the path expression C<path>. The "
6526 "returned paths are sufficiently qualified so that they match exactly one "
6527 "node in the current tree."
6531 #: ../fish/guestfish-actions.pod:330
6536 #: ../fish/guestfish-actions.pod:332
6539 " aug-mv src dest\n"
6544 #: ../fish/guestfish-actions.pod:334 ../src/guestfs-actions.pod:509
6546 "Move the node C<src> to C<dest>. C<src> must match exactly one node. "
6547 "C<dest> is overwritten if it exists."
6551 #: ../fish/guestfish-actions.pod:337
6556 #: ../fish/guestfish-actions.pod:339
6564 #: ../fish/guestfish-actions.pod:341 ../src/guestfs-actions.pod:522
6565 msgid "Remove C<path> and all of its children."
6569 #: ../fish/guestfish-actions.pod:343 ../src/guestfs-actions.pod:524
6570 msgid "On success this returns the number of entries which were removed."
6574 #: ../fish/guestfish-actions.pod:345
6579 #: ../fish/guestfish-actions.pod:347
6587 #: ../fish/guestfish-actions.pod:349 ../src/guestfs-actions.pod:535
6588 msgid "This writes all pending changes to disk."
6592 #: ../fish/guestfish-actions.pod:351
6594 "The flags which were passed to L</aug-init> affect exactly how files are "
6599 #: ../fish/guestfish-actions.pod:354
6604 #: ../fish/guestfish-actions.pod:356
6607 " aug-set augpath val\n"
6612 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:551
6613 msgid "Set the value associated with C<path> to C<val>."
6617 #: ../fish/guestfish-actions.pod:360
6619 "In the Augeas API, it is possible to clear a node by setting the value to "
6620 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
6621 "this call. Instead you must use the L</aug-clear> call."
6625 #: ../fish/guestfish-actions.pod:365
6630 #: ../fish/guestfish-actions.pod:367
6633 " available 'groups ...'\n"
6638 #: ../fish/guestfish-actions.pod:369 ../src/guestfs-actions.pod:568
6640 "This command is used to check the availability of some groups of "
6641 "functionality in the appliance, which not all builds of the libguestfs "
6642 "appliance will be able to provide."
6646 #: ../fish/guestfish-actions.pod:373
6648 "The libguestfs groups, and the functions that those groups correspond to, "
6649 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
6650 "runtime by calling L</available-all-groups>."
6654 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:577
6656 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6657 "\"]> would check for the availability of the Linux inotify functions and "
6658 "Augeas (configuration file editing) functions."
6662 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:582
6663 msgid "The command returns no error if I<all> requested groups are available."
6667 #: ../fish/guestfish-actions.pod:385 ../src/guestfs-actions.pod:584
6669 "It fails with an error if one or more of the requested groups is unavailable "
6674 #: ../fish/guestfish-actions.pod:388 ../src/guestfs-actions.pod:587
6676 "If an unknown group name is included in the list of groups then an error is "
6681 #: ../fish/guestfish-actions.pod:391 ../src/guestfs-actions.pod:590
6683 msgstr "I<Нотатки:>"
6686 #: ../fish/guestfish-actions.pod:397
6687 msgid "You must call L</launch> before calling this function."
6691 #: ../fish/guestfish-actions.pod:399 ../src/guestfs-actions.pod:598
6693 "The reason is because we don't know what groups are supported by the "
6694 "appliance/daemon until it is running and can be queried."
6698 #: ../fish/guestfish-actions.pod:405 ../src/guestfs-actions.pod:604
6700 "If a group of functions is available, this does not necessarily mean that "
6701 "they will work. You still have to check for errors when calling individual "
6702 "API functions even if they are available."
6706 #: ../fish/guestfish-actions.pod:412 ../src/guestfs-actions.pod:611
6708 "It is usually the job of distro packagers to build complete functionality "
6709 "into the libguestfs appliance. Upstream libguestfs, if built from source "
6710 "with all requirements satisfied, will support everything."
6714 #: ../fish/guestfish-actions.pod:419
6716 "This call was added in version C<1.0.80>. In previous versions of "
6717 "libguestfs all you could do would be to speculatively execute a command to "
6718 "find out if the daemon implemented it. See also L</version>."
6722 #: ../fish/guestfish-actions.pod:426
6723 msgid "available-all-groups"
6727 #: ../fish/guestfish-actions.pod:428
6730 " available-all-groups\n"
6735 #: ../fish/guestfish-actions.pod:430
6737 "This command returns a list of all optional groups that this daemon knows "
6738 "about. Note this returns both supported and unsupported groups. To find "
6739 "out which ones the daemon can actually support you have to call L</"
6740 "available> on each member of the returned list."
6744 #: ../fish/guestfish-actions.pod:436
6745 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6749 #: ../fish/guestfish-actions.pod:438
6754 #: ../fish/guestfish-actions.pod:440
6757 " base64-in (base64file|-) filename\n"
6762 #: ../fish/guestfish-actions.pod:442 ../src/guestfs-actions.pod:655
6764 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6768 #: ../fish/guestfish-actions.pod:445 ../fish/guestfish-actions.pod:454
6769 #: ../fish/guestfish-actions.pod:703 ../fish/guestfish-actions.pod:787
6770 #: ../fish/guestfish-actions.pod:808 ../fish/guestfish-actions.pod:907
6771 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:1300
6772 #: ../fish/guestfish-actions.pod:4750 ../fish/guestfish-actions.pod:4762
6773 #: ../fish/guestfish-actions.pod:4773 ../fish/guestfish-actions.pod:4784
6774 #: ../fish/guestfish-actions.pod:4836 ../fish/guestfish-actions.pod:4845
6775 #: ../fish/guestfish-actions.pod:4899 ../fish/guestfish-actions.pod:4922
6776 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6780 #: ../fish/guestfish-actions.pod:447
6785 #: ../fish/guestfish-actions.pod:449
6788 " base64-out filename (base64file|-)\n"
6793 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:669
6795 "This command downloads the contents of C<filename>, writing it out to local "
6796 "file C<base64file> encoded as base64."
6800 #: ../fish/guestfish-actions.pod:456
6801 msgid "blockdev-flushbufs"
6805 #: ../fish/guestfish-actions.pod:458
6808 " blockdev-flushbufs device\n"
6813 #: ../fish/guestfish-actions.pod:460 ../src/guestfs-actions.pod:682
6815 "This tells the kernel to flush internal buffers associated with C<device>."
6819 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:474
6820 #: ../fish/guestfish-actions.pod:483 ../fish/guestfish-actions.pod:493
6821 #: ../fish/guestfish-actions.pod:505 ../fish/guestfish-actions.pod:518
6822 #: ../fish/guestfish-actions.pod:526 ../fish/guestfish-actions.pod:537
6823 #: ../fish/guestfish-actions.pod:545 ../fish/guestfish-actions.pod:553
6824 #: ../src/guestfs-actions.pod:685 ../src/guestfs-actions.pod:702
6825 #: ../src/guestfs-actions.pod:717 ../src/guestfs-actions.pod:733
6826 #: ../src/guestfs-actions.pod:751 ../src/guestfs-actions.pod:770
6827 #: ../src/guestfs-actions.pod:784 ../src/guestfs-actions.pod:802
6828 #: ../src/guestfs-actions.pod:816 ../src/guestfs-actions.pod:830
6829 msgid "This uses the L<blockdev(8)> command."
6833 #: ../fish/guestfish-actions.pod:465
6834 msgid "blockdev-getbsz"
6838 #: ../fish/guestfish-actions.pod:467
6841 " blockdev-getbsz device\n"
6846 #: ../fish/guestfish-actions.pod:469 ../src/guestfs-actions.pod:697
6847 msgid "This returns the block size of a device."
6851 #: ../fish/guestfish-actions.pod:471 ../fish/guestfish-actions.pod:534
6852 #: ../src/guestfs-actions.pod:699 ../src/guestfs-actions.pod:799
6854 "(Note this is different from both I<size in blocks> and I<filesystem block "
6859 #: ../fish/guestfish-actions.pod:476
6860 msgid "blockdev-getro"
6864 #: ../fish/guestfish-actions.pod:478
6867 " blockdev-getro device\n"
6872 #: ../fish/guestfish-actions.pod:480 ../src/guestfs-actions.pod:714
6874 "Returns a boolean indicating if the block device is read-only (true if read-"
6875 "only, false if not)."
6879 #: ../fish/guestfish-actions.pod:485
6880 msgid "blockdev-getsize64"
6884 #: ../fish/guestfish-actions.pod:487
6887 " blockdev-getsize64 device\n"
6892 #: ../fish/guestfish-actions.pod:489 ../src/guestfs-actions.pod:729
6893 msgid "This returns the size of the device in bytes."
6897 #: ../fish/guestfish-actions.pod:491
6898 msgid "See also L</blockdev-getsz>."
6899 msgstr "Див. також L</blockdev-getsz>."
6902 #: ../fish/guestfish-actions.pod:495
6903 msgid "blockdev-getss"
6907 #: ../fish/guestfish-actions.pod:497
6910 " blockdev-getss device\n"
6915 #: ../fish/guestfish-actions.pod:499 ../src/guestfs-actions.pod:745
6917 "This returns the size of sectors on a block device. Usually 512, but can be "
6918 "larger for modern devices."
6922 #: ../fish/guestfish-actions.pod:502
6924 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
6928 #: ../fish/guestfish-actions.pod:507
6929 msgid "blockdev-getsz"
6933 #: ../fish/guestfish-actions.pod:509
6936 " blockdev-getsz device\n"
6941 #: ../fish/guestfish-actions.pod:511 ../src/guestfs-actions.pod:763
6943 "This returns the size of the device in units of 512-byte sectors (even if "
6944 "the sectorsize isn't 512 bytes ... weird)."
6948 #: ../fish/guestfish-actions.pod:514
6950 "See also L</blockdev-getss> for the real sector size of the device, and L</"
6951 "blockdev-getsize64> for the more useful I<size in bytes>."
6955 #: ../fish/guestfish-actions.pod:520
6956 msgid "blockdev-rereadpt"
6960 #: ../fish/guestfish-actions.pod:522
6963 " blockdev-rereadpt device\n"
6968 #: ../fish/guestfish-actions.pod:524 ../src/guestfs-actions.pod:782
6969 msgid "Reread the partition table on C<device>."
6973 #: ../fish/guestfish-actions.pod:528
6974 msgid "blockdev-setbsz"
6978 #: ../fish/guestfish-actions.pod:530
6981 " blockdev-setbsz device blocksize\n"
6986 #: ../fish/guestfish-actions.pod:532 ../src/guestfs-actions.pod:797
6987 msgid "This sets the block size of a device."
6991 #: ../fish/guestfish-actions.pod:539
6992 msgid "blockdev-setro"
6996 #: ../fish/guestfish-actions.pod:541
6999 " blockdev-setro device\n"
7004 #: ../fish/guestfish-actions.pod:543 ../src/guestfs-actions.pod:814
7005 msgid "Sets the block device named C<device> to read-only."
7009 #: ../fish/guestfish-actions.pod:547
7010 msgid "blockdev-setrw"
7014 #: ../fish/guestfish-actions.pod:549
7017 " blockdev-setrw device\n"
7022 #: ../fish/guestfish-actions.pod:551 ../src/guestfs-actions.pod:828
7023 msgid "Sets the block device named C<device> to read-write."
7027 #: ../fish/guestfish-actions.pod:555
7028 msgid "btrfs-filesystem-resize"
7032 #: ../fish/guestfish-actions.pod:557
7035 " btrfs-filesystem-resize mountpoint [size:..]\n"
7040 #: ../fish/guestfish-actions.pod:559 ../src/guestfs-actions.pod:850
7041 msgid "This command resizes a btrfs filesystem."
7045 #: ../fish/guestfish-actions.pod:561 ../src/guestfs-actions.pod:852
7047 "Note that unlike other resize calls, the filesystem has to be mounted and "
7048 "the parameter is the mountpoint not the device (this is a requirement of "
7053 #: ../fish/guestfish-actions.pod:565 ../fish/guestfish-actions.pod:3497
7054 #: ../src/guestfs-actions.pod:856 ../src/guestfs-actions.pod:5351
7055 msgid "The optional parameters are:"
7059 #: ../fish/guestfish-actions.pod:569 ../fish/guestfish-actions.pod:3501
7060 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5355
7065 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:862
7067 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
7068 "resized to the maximum size."
7072 #: ../fish/guestfish-actions.pod:576 ../src/guestfs-actions.pod:867
7073 msgid "See also L<btrfs(8)>."
7074 msgstr "Див. також L<btrfs(8)>."
7077 #: ../fish/guestfish-actions.pod:580
7078 msgid "case-sensitive-path"
7082 #: ../fish/guestfish-actions.pod:582
7085 " case-sensitive-path path\n"
7090 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:901
7092 "This can be used to resolve case insensitive paths on a filesystem which is "
7093 "case sensitive. The use case is to resolve paths which you have read from "
7094 "Windows configuration files or the Windows Registry, to the true path."
7098 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:906
7100 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7101 "(and probably others), which is that although the underlying filesystem is "
7102 "case-insensitive, the driver exports the filesystem to Linux as case-"
7107 #: ../fish/guestfish-actions.pod:594 ../src/guestfs-actions.pod:911
7109 "One consequence of this is that special directories such as C<c:\\windows> "
7110 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7111 "precise details of how they were created. In Windows itself this would not "
7116 #: ../fish/guestfish-actions.pod:600 ../src/guestfs-actions.pod:917
7118 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7123 #: ../fish/guestfish-actions.pod:603 ../src/guestfs-actions.pod:920
7125 "This function resolves the true case of each element in the path and returns "
7126 "the case-sensitive path."
7130 #: ../fish/guestfish-actions.pod:606
7132 "Thus L</case-sensitive-path> (\"/Windows/System32\") might return C<\"/"
7133 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7134 "the directories were originally created under Windows)."
7138 #: ../fish/guestfish-actions.pod:611 ../src/guestfs-actions.pod:928
7139 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7143 #: ../fish/guestfish-actions.pod:614
7144 msgid "See also L</realpath>."
7145 msgstr "Див. також L</realpath>."
7148 #: ../fish/guestfish-actions.pod:616
7153 #: ../fish/guestfish-actions.pod:618
7163 #: ../fish/guestfish-actions.pod:620 ../fish/guestfish-actions.pod:3917
7164 #: ../src/guestfs-actions.pod:944 ../src/guestfs-actions.pod:5994
7165 msgid "Return the contents of the file named C<path>."
7169 #: ../fish/guestfish-actions.pod:622
7171 "Note that this function cannot correctly handle binary files (specifically, "
7172 "files containing C<\\0> character which is treated as end of string). For "
7173 "those you need to use the L</read-file> or L</download> functions which have "
7174 "a more complex interface."
7178 #: ../fish/guestfish-actions.pod:627 ../fish/guestfish-actions.pod:762
7179 #: ../fish/guestfish-actions.pod:774 ../fish/guestfish-actions.pod:985
7180 #: ../fish/guestfish-actions.pod:995 ../fish/guestfish-actions.pod:1062
7181 #: ../fish/guestfish-actions.pod:1072 ../fish/guestfish-actions.pod:1264
7182 #: ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:1587
7183 #: ../fish/guestfish-actions.pod:1637 ../fish/guestfish-actions.pod:1652
7184 #: ../fish/guestfish-actions.pod:1662 ../fish/guestfish-actions.pod:1681
7185 #: ../fish/guestfish-actions.pod:3787 ../fish/guestfish-actions.pod:3802
7186 #: ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:3895
7187 #: ../fish/guestfish-actions.pod:3910 ../fish/guestfish-actions.pod:4591
7188 #: ../fish/guestfish-actions.pod:4637 ../fish/guestfish-actions.pod:4722
7189 #: ../fish/guestfish-actions.pod:4737 ../fish/guestfish-actions.pod:5143
7190 #: ../fish/guestfish-actions.pod:5155 ../fish/guestfish-actions.pod:5173
7191 #: ../fish/guestfish-actions.pod:5190 ../fish/guestfish-actions.pod:5200
7192 #: ../fish/guestfish-actions.pod:5257 ../fish/guestfish-actions.pod:5267
7193 #: ../fish/guestfish-actions.pod:5296 ../fish/guestfish-actions.pod:5306
7194 #: ../src/guestfs-actions.pod:954 ../src/guestfs-actions.pod:1133
7195 #: ../src/guestfs-actions.pod:1153 ../src/guestfs-actions.pod:1560
7196 #: ../src/guestfs-actions.pod:1579 ../src/guestfs-actions.pod:1682
7197 #: ../src/guestfs-actions.pod:1701 ../src/guestfs-actions.pod:1947
7198 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2448
7199 #: ../src/guestfs-actions.pod:2513 ../src/guestfs-actions.pod:2537
7200 #: ../src/guestfs-actions.pod:2554 ../src/guestfs-actions.pod:2583
7201 #: ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5802
7202 #: ../src/guestfs-actions.pod:5933 ../src/guestfs-actions.pod:5959
7203 #: ../src/guestfs-actions.pod:5983 ../src/guestfs-actions.pod:6950
7204 #: ../src/guestfs-actions.pod:7005 ../src/guestfs-actions.pod:7151
7205 #: ../src/guestfs-actions.pod:7175 ../src/guestfs-actions.pod:7840
7206 #: ../src/guestfs-actions.pod:7860 ../src/guestfs-actions.pod:7893
7207 #: ../src/guestfs-actions.pod:7912 ../src/guestfs-actions.pod:7931
7208 #: ../src/guestfs-actions.pod:8025 ../src/guestfs-actions.pod:8044
7209 #: ../src/guestfs-actions.pod:8090 ../src/guestfs-actions.pod:8109
7211 "Because of the message protocol, there is a transfer limit of somewhere "
7212 "between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>."
7216 #: ../fish/guestfish-actions.pod:630
7221 #: ../fish/guestfish-actions.pod:632
7224 " checksum csumtype path\n"
7229 #: ../fish/guestfish-actions.pod:634 ../src/guestfs-actions.pod:966
7231 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7235 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:969
7237 "The type of checksum to compute is given by the C<csumtype> parameter which "
7238 "must have one of the following values:"
7242 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:974
7247 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:976
7249 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7254 #: ../fish/guestfish-actions.pod:647 ../src/guestfs-actions.pod:979
7259 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:981
7260 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7264 #: ../fish/guestfish-actions.pod:651 ../src/guestfs-actions.pod:983
7269 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:985
7270 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7274 #: ../fish/guestfish-actions.pod:655 ../src/guestfs-actions.pod:987
7279 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:989
7280 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7284 #: ../fish/guestfish-actions.pod:659 ../src/guestfs-actions.pod:991
7289 #: ../fish/guestfish-actions.pod:661 ../src/guestfs-actions.pod:993
7290 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7294 #: ../fish/guestfish-actions.pod:663 ../src/guestfs-actions.pod:995
7299 #: ../fish/guestfish-actions.pod:665 ../src/guestfs-actions.pod:997
7300 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7304 #: ../fish/guestfish-actions.pod:667 ../src/guestfs-actions.pod:999
7309 #: ../fish/guestfish-actions.pod:669 ../src/guestfs-actions.pod:1001
7310 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7314 #: ../fish/guestfish-actions.pod:673 ../src/guestfs-actions.pod:1005
7315 msgid "The checksum is returned as a printable string."
7319 #: ../fish/guestfish-actions.pod:675
7320 msgid "To get the checksum for a device, use L</checksum-device>."
7324 #: ../fish/guestfish-actions.pod:677
7325 msgid "To get the checksums for many files, use L</checksums-out>."
7329 #: ../fish/guestfish-actions.pod:679
7330 msgid "checksum-device"
7331 msgstr "checksum-device"
7334 #: ../fish/guestfish-actions.pod:681
7337 " checksum-device csumtype device\n"
7342 #: ../fish/guestfish-actions.pod:683
7344 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7345 "device named C<device>. For the types of checksums supported see the L</"
7346 "checksum> command."
7350 #: ../fish/guestfish-actions.pod:687
7351 msgid "checksums-out"
7355 #: ../fish/guestfish-actions.pod:689
7358 " checksums-out csumtype directory (sumsfile|-)\n"
7363 #: ../fish/guestfish-actions.pod:691 ../src/guestfs-actions.pod:1040
7365 "This command computes the checksums of all regular files in C<directory> and "
7366 "then emits a list of those checksums to the local output file C<sumsfile>."
7370 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1044
7372 "This can be used for verifying the integrity of a virtual machine. However "
7373 "to be properly secure you should pay attention to the output of the checksum "
7374 "command (it uses the ones from GNU coreutils). In particular when the "
7375 "filename is not printable, coreutils uses a special backslash syntax. For "
7376 "more information, see the GNU coreutils info file."
7380 #: ../fish/guestfish-actions.pod:705
7385 #: ../fish/guestfish-actions.pod:707
7388 " chmod mode path\n"
7393 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1063
7395 "Change the mode (permissions) of C<path> to C<mode>. Only numeric modes are "
7400 #: ../fish/guestfish-actions.pod:712 ../src/guestfs-actions.pod:1066
7402 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7403 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7408 #: ../fish/guestfish-actions.pod:716 ../fish/guestfish-actions.pod:3150
7409 #: ../fish/guestfish-actions.pod:3289 ../fish/guestfish-actions.pod:3299
7410 #: ../fish/guestfish-actions.pod:3309 ../src/guestfs-actions.pod:1070
7411 #: ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:4967
7412 #: ../src/guestfs-actions.pod:4986 ../src/guestfs-actions.pod:5005
7413 msgid "The mode actually set is affected by the umask."
7417 #: ../fish/guestfish-actions.pod:718
7422 #: ../fish/guestfish-actions.pod:720
7425 " chown owner group path\n"
7430 #: ../fish/guestfish-actions.pod:722 ../src/guestfs-actions.pod:1084
7431 msgid "Change the file owner to C<owner> and group to C<group>."
7435 #: ../fish/guestfish-actions.pod:724 ../fish/guestfish-actions.pod:2585
7436 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:3829
7438 "Only numeric uid and gid are supported. If you want to use names, you will "
7439 "need to locate and parse the password file yourself (Augeas support makes "
7440 "this relatively easy)."
7444 #: ../fish/guestfish-actions.pod:728
7449 #: ../fish/guestfish-actions.pod:730
7452 " command 'arguments ...'\n"
7455 " command 'параметри...'\n"
7459 #: ../fish/guestfish-actions.pod:732 ../src/guestfs-actions.pod:1100
7461 "This call runs a command from the guest filesystem. The filesystem must be "
7462 "mounted, and must contain a compatible operating system (ie. something "
7463 "Linux, with the same or compatible processor architecture)."
7467 #: ../fish/guestfish-actions.pod:737
7469 "The single parameter is an argv-style list of arguments. The first element "
7470 "is the name of the program to run. Subsequent elements are parameters. The "
7471 "list must be non-empty (ie. must contain a program name). Note that the "
7472 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7476 #: ../fish/guestfish-actions.pod:744 ../src/guestfs-actions.pod:1112
7477 msgid "The return value is anything printed to I<stdout> by the command."
7481 #: ../fish/guestfish-actions.pod:747 ../src/guestfs-actions.pod:1115
7483 "If the command returns a non-zero exit status, then this function returns an "
7484 "error message. The error message string is the content of I<stderr> from "
7489 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1119
7491 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7492 "bin>. If you require a program from another location, you should provide "
7493 "the full path in the first parameter."
7497 #: ../fish/guestfish-actions.pod:756 ../src/guestfs-actions.pod:1124
7499 "Shared libraries and data files required by the program must be available on "
7500 "filesystems which are mounted in the correct places. It is the caller's "
7501 "responsibility to ensure all filesystems that are needed are mounted at the "
7506 #: ../fish/guestfish-actions.pod:765
7507 msgid "command-lines"
7511 #: ../fish/guestfish-actions.pod:767
7514 " command-lines 'arguments ...'\n"
7519 #: ../fish/guestfish-actions.pod:769
7521 "This is the same as L</command>, but splits the result into a list of lines."
7525 #: ../fish/guestfish-actions.pod:772
7526 msgid "See also: L</sh-lines>"
7527 msgstr "Див. також L</sh-lines>"
7530 #: ../fish/guestfish-actions.pod:777
7531 msgid "compress-device-out"
7535 #: ../fish/guestfish-actions.pod:779
7538 " compress-device-out ctype device (zdevice|-) [level:..]\n"
7543 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1174
7545 "This command compresses C<device> and writes it out to the local file "
7550 #: ../fish/guestfish-actions.pod:784
7552 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
7557 #: ../fish/guestfish-actions.pod:791
7558 msgid "compress-out"
7562 #: ../fish/guestfish-actions.pod:793
7565 " compress-out ctype file (zfile|-) [level:..]\n"
7570 #: ../fish/guestfish-actions.pod:795 ../src/guestfs-actions.pod:1226
7572 "This command compresses C<file> and writes it out to the local file C<zfile>."
7576 #: ../fish/guestfish-actions.pod:798 ../src/guestfs-actions.pod:1229
7578 "The compression program used is controlled by the C<ctype> parameter. "
7579 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>. "
7580 "Some compression types may not be supported by particular builds of "
7581 "libguestfs, in which case you will get an error containing the substring "
7582 "\"not supported\"."
7586 #: ../fish/guestfish-actions.pod:804 ../src/guestfs-actions.pod:1235
7588 "The optional C<level> parameter controls compression level. The meaning and "
7589 "default for this parameter depends on the compression program being used."
7593 #: ../fish/guestfish-actions.pod:812
7598 #: ../fish/guestfish-actions.pod:814
7601 " config qemuparam qemuvalue\n"
7606 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1276
7608 "This can be used to add arbitrary qemu command line parameters of the form "
7609 "I<-param value>. Actually it's not quite arbitrary - we prevent you from "
7610 "setting some parameters which would interfere with parameters that we use."
7614 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1281
7615 msgid "The first character of C<param> string must be a C<-> (dash)."
7619 #: ../fish/guestfish-actions.pod:823 ../src/guestfs-actions.pod:1283
7620 msgid "C<value> can be NULL."
7624 #: ../fish/guestfish-actions.pod:825
7629 #: ../fish/guestfish-actions.pod:827
7632 " copy-size src dest size\n"
7637 #: ../fish/guestfish-actions.pod:829 ../src/guestfs-actions.pod:1297
7639 "This command copies exactly C<size> bytes from one source device or file "
7640 "C<src> to another destination device or file C<dest>."
7644 #: ../fish/guestfish-actions.pod:832 ../src/guestfs-actions.pod:1300
7646 "Note this will fail if the source is too short or if the destination is not "
7651 #: ../fish/guestfish-actions.pod:835
7656 #: ../fish/guestfish-actions.pod:837
7664 #: ../fish/guestfish-actions.pod:839 ../src/guestfs-actions.pod:1319
7666 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7667 "destination filename or destination directory."
7671 #: ../fish/guestfish-actions.pod:842
7676 #: ../fish/guestfish-actions.pod:844
7684 #: ../fish/guestfish-actions.pod:846 ../src/guestfs-actions.pod:1333
7686 "This copies a file or directory from C<src> to C<dest> recursively using the "
7691 #: ../fish/guestfish-actions.pod:849
7696 #: ../fish/guestfish-actions.pod:851
7704 #: ../fish/guestfish-actions.pod:853 ../src/guestfs-actions.pod:1347
7706 "This command copies from one source device or file C<src> to another "
7707 "destination device or file C<dest>. Normally you would use this to copy to "
7708 "or from a device or partition, for example to duplicate a filesystem."
7712 #: ../fish/guestfish-actions.pod:858
7714 "If the destination is a device, it must be as large or larger than the "
7715 "source file or device, otherwise the copy will fail. This command cannot do "
7716 "partial copies (see L</copy-size>)."
7720 #: ../fish/guestfish-actions.pod:862
7725 #: ../fish/guestfish-actions.pod:864
7735 #: ../fish/guestfish-actions.pod:866 ../src/guestfs-actions.pod:1365
7736 msgid "This command runs the C<df> command to report disk space used."
7740 #: ../fish/guestfish-actions.pod:868 ../fish/guestfish-actions.pod:879
7742 "This command is mostly useful for interactive sessions. It is I<not> "
7743 "intended that you try to parse the output string. Use L</statvfs> from "
7748 #: ../fish/guestfish-actions.pod:872
7753 #: ../fish/guestfish-actions.pod:874
7763 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1381
7765 "This command runs the C<df -h> command to report disk space used in human-"
7770 #: ../fish/guestfish-actions.pod:883
7775 #: ../fish/guestfish-actions.pod:885
7785 #: ../fish/guestfish-actions.pod:887 ../src/guestfs-actions.pod:1398
7787 "This returns the kernel messages (C<dmesg> output) from the guest kernel. "
7788 "This is sometimes useful for extended debugging of problems."
7792 #: ../fish/guestfish-actions.pod:891
7794 "Another way to get the same information is to enable verbose messages with "
7795 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7796 "before running the program."
7800 #: ../fish/guestfish-actions.pod:896
7805 #: ../fish/guestfish-actions.pod:898
7808 " download remotefilename (filename|-)\n"
7813 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:913
7814 #: ../src/guestfs-actions.pod:1419 ../src/guestfs-actions.pod:1444
7816 "Download file C<remotefilename> and save it as C<filename> on the local "
7821 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:4895
7822 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:7410
7823 msgid "C<filename> can also be a named pipe."
7827 #: ../fish/guestfish-actions.pod:905
7828 msgid "See also L</upload>, L</cat>."
7832 #: ../fish/guestfish-actions.pod:909
7833 msgid "download-offset"
7834 msgstr "download-offset"
7837 #: ../fish/guestfish-actions.pod:911
7840 " download-offset remotefilename (filename|-) offset size\n"
7845 #: ../fish/guestfish-actions.pod:916 ../src/guestfs-actions.pod:1447
7847 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7848 "region must be within the file or device)."
7852 #: ../fish/guestfish-actions.pod:919
7854 "Note that there is no limit on the amount of data that can be downloaded "
7855 "with this call, unlike with L</pread>, and this call always reads the full "
7856 "amount unless an error occurs."
7860 #: ../fish/guestfish-actions.pod:924
7861 msgid "See also L</download>, L</pread>."
7865 #: ../fish/guestfish-actions.pod:928
7870 #: ../fish/guestfish-actions.pod:930
7873 " drop-caches whattodrop\n"
7878 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1472
7880 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7881 "inode caches. The parameter C<whattodrop> tells the kernel what precisely "
7882 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7886 #: ../fish/guestfish-actions.pod:937 ../src/guestfs-actions.pod:1477
7887 msgid "Setting C<whattodrop> to 3 should drop everything."
7891 #: ../fish/guestfish-actions.pod:939 ../src/guestfs-actions.pod:1479
7893 "This automatically calls L<sync(2)> before the operation, so that the "
7894 "maximum guest memory is freed."
7898 #: ../fish/guestfish-actions.pod:942
7903 #: ../fish/guestfish-actions.pod:944
7913 #: ../fish/guestfish-actions.pod:946 ../src/guestfs-actions.pod:1492
7915 "This command runs the C<du -s> command to estimate file space usage for "
7920 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1495
7922 "C<path> can be a file or a directory. If C<path> is a directory then the "
7923 "estimate includes the contents of the directory and all subdirectories "
7928 #: ../fish/guestfish-actions.pod:953 ../src/guestfs-actions.pod:1499
7930 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
7934 #: ../fish/guestfish-actions.pod:956
7939 #: ../fish/guestfish-actions.pod:958
7942 " e2fsck-f device\n"
7947 #: ../fish/guestfish-actions.pod:960 ../src/guestfs-actions.pod:1517
7949 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
7950 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
7955 #: ../fish/guestfish-actions.pod:964
7957 "This command is only needed because of L</resize2fs> (q.v.). Normally you "
7958 "should use L</fsck>."
7962 #: ../fish/guestfish-actions.pod:967
7967 #: ../fish/guestfish-actions.pod:969
7970 " echo-daemon 'words ...'\n"
7975 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1534
7977 "This command concatenates the list of C<words> passed with single spaces "
7978 "between them and returns the resulting string."
7982 #: ../fish/guestfish-actions.pod:974 ../src/guestfs-actions.pod:1537
7983 msgid "You can use this command to test the connection through to the daemon."
7987 #: ../fish/guestfish-actions.pod:976
7988 msgid "See also L</ping-daemon>."
7989 msgstr "Див. також L</ping-daemon>."
7992 #: ../fish/guestfish-actions.pod:978
7997 #: ../fish/guestfish-actions.pod:980
8000 " egrep regex path\n"
8005 #: ../fish/guestfish-actions.pod:982 ../src/guestfs-actions.pod:1553
8007 "This calls the external C<egrep> program and returns the matching lines."
8011 #: ../fish/guestfish-actions.pod:988
8016 #: ../fish/guestfish-actions.pod:990
8019 " egrepi regex path\n"
8024 #: ../fish/guestfish-actions.pod:992 ../src/guestfs-actions.pod:1572
8026 "This calls the external C<egrep -i> program and returns the matching lines."
8030 #: ../fish/guestfish-actions.pod:998
8035 #: ../fish/guestfish-actions.pod:1000
8038 " equal file1 file2\n"
8041 " equal файл1 файл2\n"
8045 #: ../fish/guestfish-actions.pod:1002 ../src/guestfs-actions.pod:1591
8047 "This compares the two files C<file1> and C<file2> and returns true if their "
8048 "content is exactly equal, or false otherwise."
8052 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1594
8053 msgid "The external L<cmp(1)> program is used for the comparison."
8057 #: ../fish/guestfish-actions.pod:1007
8062 #: ../fish/guestfish-actions.pod:1009
8072 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1606
8074 "This returns C<true> if and only if there is a file, directory (or anything) "
8075 "with the given C<path> name."
8079 #: ../fish/guestfish-actions.pod:1014
8080 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8081 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
8084 #: ../fish/guestfish-actions.pod:1016
8089 #: ../fish/guestfish-actions.pod:1018
8092 " fallocate path len\n"
8095 " fallocate шлях довжина\n"
8099 #: ../fish/guestfish-actions.pod:1020 ../fish/guestfish-actions.pod:1039
8100 #: ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1648
8102 "This command preallocates a file (containing zero bytes) named C<path> of "
8103 "size C<len> bytes. If the file exists already, it is overwritten."
8107 #: ../fish/guestfish-actions.pod:1024 ../src/guestfs-actions.pod:1633
8109 "Do not confuse this with the guestfish-specific C<alloc> command which "
8110 "allocates a file in the host and attaches it as a device."
8114 #: ../fish/guestfish-actions.pod:1028
8116 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8121 #: ../fish/guestfish-actions.pod:1035
8123 msgstr "fallocate64"
8126 #: ../fish/guestfish-actions.pod:1037
8129 " fallocate64 path len\n"
8132 " fallocate64 шлях довжина\n"
8136 #: ../fish/guestfish-actions.pod:1043
8138 "Note that this call allocates disk blocks for the file. To create a sparse "
8139 "file use L</truncate-size> instead."
8143 #: ../fish/guestfish-actions.pod:1046
8145 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8146 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8147 "maximum size of files created through that call to 1GB."
8151 #: ../fish/guestfish-actions.pod:1051 ../src/guestfs-actions.pod:1660
8153 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8154 "commands which create a file in the host and attach it as a device."
8158 #: ../fish/guestfish-actions.pod:1055
8163 #: ../fish/guestfish-actions.pod:1057
8166 " fgrep pattern path\n"
8169 " fgrep шаблон шлях\n"
8173 #: ../fish/guestfish-actions.pod:1059 ../src/guestfs-actions.pod:1675
8175 "This calls the external C<fgrep> program and returns the matching lines."
8179 #: ../fish/guestfish-actions.pod:1065
8184 #: ../fish/guestfish-actions.pod:1067
8187 " fgrepi pattern path\n"
8190 " fgrepi шаблон шлях\n"
8194 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1694
8196 "This calls the external C<fgrep -i> program and returns the matching lines."
8200 #: ../fish/guestfish-actions.pod:1075
8205 #: ../fish/guestfish-actions.pod:1077
8215 #: ../fish/guestfish-actions.pod:1079 ../src/guestfs-actions.pod:1712
8217 "This call uses the standard L<file(1)> command to determine the type or "
8218 "contents of the file."
8222 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1715
8224 "This call will also transparently look inside various types of compressed "
8229 #: ../fish/guestfish-actions.pod:1085 ../src/guestfs-actions.pod:1718
8231 "The exact command which runs is C<file -zb path>. Note in particular that "
8232 "the filename is not prepended to the output (the I<-b> option)."
8236 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1722
8238 "The output depends on the output of the underlying L<file(1)> command and it "
8239 "can change in future in ways beyond our control. In other words, the output "
8240 "is not guaranteed by the ABI."
8244 #: ../fish/guestfish-actions.pod:1093
8246 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8247 "(etc), L</is-zero>."
8251 #: ../fish/guestfish-actions.pod:1096
8252 msgid "file-architecture"
8253 msgstr "file-architecture"
8256 #: ../fish/guestfish-actions.pod:1098
8259 " file-architecture filename\n"
8262 " file-architecture назва_файла\n"
8266 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1740
8268 "This detects the architecture of the binary C<filename>, and returns it if "
8273 #: ../fish/guestfish-actions.pod:1103 ../src/guestfs-actions.pod:1743
8274 msgid "Currently defined architectures are:"
8278 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1747
8283 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1749
8285 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8286 "irrespective of the precise processor requirements of the binary."
8290 #: ../fish/guestfish-actions.pod:1112 ../src/guestfs-actions.pod:1752
8295 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1754
8296 msgid "64 bit x86-64."
8300 #: ../fish/guestfish-actions.pod:1116 ../src/guestfs-actions.pod:1756
8305 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1758
8306 msgid "32 bit SPARC."
8310 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1760
8315 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1762
8316 msgid "64 bit SPARC V9 and above."
8320 #: ../fish/guestfish-actions.pod:1124 ../src/guestfs-actions.pod:1764
8325 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1766
8326 msgid "Intel Itanium."
8327 msgstr "Intel Itanium."
8330 #: ../fish/guestfish-actions.pod:1128 ../src/guestfs-actions.pod:1768
8335 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1770
8336 msgid "32 bit Power PC."
8340 #: ../fish/guestfish-actions.pod:1132 ../src/guestfs-actions.pod:1772
8345 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1774
8346 msgid "64 bit Power PC."
8350 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1778
8351 msgid "Libguestfs may return other architecture strings in future."
8355 #: ../fish/guestfish-actions.pod:1140 ../src/guestfs-actions.pod:1780
8356 msgid "The function works on at least the following types of files:"
8360 #: ../fish/guestfish-actions.pod:1146 ../src/guestfs-actions.pod:1786
8361 msgid "many types of Un*x and Linux binary"
8365 #: ../fish/guestfish-actions.pod:1150 ../src/guestfs-actions.pod:1790
8366 msgid "many types of Un*x and Linux shared library"
8370 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1794
8371 msgid "Windows Win32 and Win64 binaries"
8375 #: ../fish/guestfish-actions.pod:1158 ../src/guestfs-actions.pod:1798
8376 msgid "Windows Win32 and Win64 DLLs"
8380 #: ../fish/guestfish-actions.pod:1160 ../src/guestfs-actions.pod:1800
8381 msgid "Win32 binaries and DLLs return C<i386>."
8385 #: ../fish/guestfish-actions.pod:1162 ../src/guestfs-actions.pod:1802
8386 msgid "Win64 binaries and DLLs return C<x86_64>."
8390 #: ../fish/guestfish-actions.pod:1166 ../src/guestfs-actions.pod:1806
8391 msgid "Linux kernel modules"
8395 #: ../fish/guestfish-actions.pod:1170 ../src/guestfs-actions.pod:1810
8396 msgid "Linux new-style initrd images"
8400 #: ../fish/guestfish-actions.pod:1174 ../src/guestfs-actions.pod:1814
8401 msgid "some non-x86 Linux vmlinuz kernels"
8405 #: ../fish/guestfish-actions.pod:1178 ../src/guestfs-actions.pod:1818
8406 msgid "What it can't do currently:"
8410 #: ../fish/guestfish-actions.pod:1184 ../src/guestfs-actions.pod:1824
8411 msgid "static libraries (libfoo.a)"
8415 #: ../fish/guestfish-actions.pod:1188 ../src/guestfs-actions.pod:1828
8416 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8420 #: ../fish/guestfish-actions.pod:1192 ../src/guestfs-actions.pod:1832
8421 msgid "x86 Linux vmlinuz kernels"
8425 #: ../fish/guestfish-actions.pod:1194 ../src/guestfs-actions.pod:1834
8427 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8428 "compressed code, and are horribly hard to unpack. If you want to find the "
8429 "architecture of a kernel, use the architecture of the associated initrd or "
8430 "kernel module(s) instead."
8434 #: ../fish/guestfish-actions.pod:1201
8439 #: ../fish/guestfish-actions.pod:1203
8449 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1852
8450 msgid "This command returns the size of C<file> in bytes."
8454 #: ../fish/guestfish-actions.pod:1207
8456 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8457 "file> etc. To get the size of block devices, use L</blockdev-getsize64>."
8461 #: ../fish/guestfish-actions.pod:1211
8466 #: ../fish/guestfish-actions.pod:1213
8469 " fill c len path\n"
8474 #: ../fish/guestfish-actions.pod:1215 ../src/guestfs-actions.pod:1870
8476 "This command creates a new file called C<path>. The initial content of the "
8477 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8482 #: ../fish/guestfish-actions.pod:1219
8484 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8485 "L</truncate-size>. To create a file with a pattern of repeating bytes use "
8490 #: ../fish/guestfish-actions.pod:1224
8491 msgid "fill-pattern"
8492 msgstr "fill-pattern"
8495 #: ../fish/guestfish-actions.pod:1226
8498 " fill-pattern pattern len path\n"
8503 #: ../fish/guestfish-actions.pod:1228
8505 "This function is like L</fill> except that it creates a new file of length "
8506 "C<len> containing the repeating pattern of bytes in C<pattern>. The pattern "
8507 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8512 #: ../fish/guestfish-actions.pod:1233
8517 #: ../fish/guestfish-actions.pod:1235
8527 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1916
8529 "This command lists out all files and directories, recursively, starting at "
8530 "C<directory>. It is essentially equivalent to running the shell command "
8531 "C<find directory -print> but some post-processing happens on the output, "
8536 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1921
8538 "This returns a list of strings I<without any prefix>. Thus if the directory "
8543 #: ../fish/guestfish-actions.pod:1245 ../src/guestfs-actions.pod:1924
8553 #: ../fish/guestfish-actions.pod:1249
8554 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8558 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1931
8569 #: ../fish/guestfish-actions.pod:1257 ../src/guestfs-actions.pod:1936
8570 msgid "If C<directory> is not a directory, then this command returns an error."
8574 #: ../fish/guestfish-actions.pod:1260 ../src/guestfs-actions.pod:1939
8575 msgid "The returned list is sorted."
8579 #: ../fish/guestfish-actions.pod:1262
8580 msgid "See also L</find0>."
8581 msgstr "Див. також L</find0>."
8584 #: ../fish/guestfish-actions.pod:1267
8589 #: ../fish/guestfish-actions.pod:1269
8592 " find0 directory (files|-)\n"
8595 " find0 каталог (файли|-)\n"
8599 #: ../fish/guestfish-actions.pod:1271 ../src/guestfs-actions.pod:1959
8601 "This command lists out all files and directories, recursively, starting at "
8602 "C<directory>, placing the resulting list in the external file called "
8607 #: ../fish/guestfish-actions.pod:1275
8609 "This command works the same way as L</find> with the following exceptions:"
8613 #: ../fish/guestfish-actions.pod:1282 ../src/guestfs-actions.pod:1970
8614 msgid "The resulting list is written to an external file."
8618 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1974
8620 "Items (filenames) in the result are separated by C<\\0> characters. See "
8621 "L<find(1)> option I<-print0>."
8625 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1979
8626 msgid "This command is not limited in the number of names that it can return."
8630 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:1984
8631 msgid "The result list is not sorted."
8635 #: ../fish/guestfish-actions.pod:1302
8636 msgid "findfs-label"
8637 msgstr "findfs-label"
8640 #: ../fish/guestfish-actions.pod:1304
8643 " findfs-label label\n"
8646 " findfs-label мітка\n"
8650 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:1998
8652 "This command searches the filesystems and returns the one which has the "
8653 "given label. An error is returned if no such filesystem can be found."
8657 #: ../fish/guestfish-actions.pod:1310
8658 msgid "To find the label of a filesystem, use L</vfs-label>."
8659 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
8662 #: ../fish/guestfish-actions.pod:1312
8664 msgstr "findfs-uuid"
8667 #: ../fish/guestfish-actions.pod:1314
8670 " findfs-uuid uuid\n"
8673 " findfs-uuid uuid\n"
8677 #: ../fish/guestfish-actions.pod:1316 ../src/guestfs-actions.pod:2015
8679 "This command searches the filesystems and returns the one which has the "
8680 "given UUID. An error is returned if no such filesystem can be found."
8684 #: ../fish/guestfish-actions.pod:1320
8685 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8686 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
8689 #: ../fish/guestfish-actions.pod:1322
8694 #: ../fish/guestfish-actions.pod:1324
8697 " fsck fstype device\n"
8700 " fsck тип_файлової_системи пристрій\n"
8704 #: ../fish/guestfish-actions.pod:1326 ../src/guestfs-actions.pod:2033
8706 "This runs the filesystem checker (fsck) on C<device> which should have "
8707 "filesystem type C<fstype>."
8711 #: ../fish/guestfish-actions.pod:1329 ../src/guestfs-actions.pod:2036
8713 "The returned integer is the status. See L<fsck(8)> for the list of status "
8714 "codes from C<fsck>."
8718 #: ../fish/guestfish-actions.pod:1338 ../src/guestfs-actions.pod:2045
8719 msgid "Multiple status codes can be summed together."
8723 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2049
8725 "A non-zero return code can mean \"success\", for example if errors have been "
8726 "corrected on the filesystem."
8730 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2054
8731 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8735 #: ../fish/guestfish-actions.pod:1352 ../src/guestfs-actions.pod:2059
8737 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8741 #: ../fish/guestfish-actions.pod:1354
8746 #: ../fish/guestfish-actions.pod:1356
8756 #: ../fish/guestfish-actions.pod:1358 ../src/guestfs-actions.pod:2070
8758 "Return the additional kernel options which are added to the guest kernel "
8763 #: ../fish/guestfish-actions.pod:1361 ../src/guestfs-actions.pod:2073
8764 msgid "If C<NULL> then no options are added."
8768 #: ../fish/guestfish-actions.pod:1363
8769 msgid "get-attach-method"
8770 msgstr "get-attach-method"
8773 #: ../fish/guestfish-actions.pod:1365
8776 " get-attach-method\n"
8779 " get-attach-method\n"
8783 #: ../fish/guestfish-actions.pod:1367
8784 msgid "Return the current attach method. See L</set-attach-method>."
8788 #: ../fish/guestfish-actions.pod:1369
8789 msgid "get-autosync"
8790 msgstr "get-autosync"
8793 #: ../fish/guestfish-actions.pod:1371
8803 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2098
8804 msgid "Get the autosync flag."
8808 #: ../fish/guestfish-actions.pod:1375
8813 #: ../fish/guestfish-actions.pod:1377
8823 #: ../fish/guestfish-actions.pod:1379 ../src/guestfs-actions.pod:2109
8824 msgid "Return the direct appliance mode flag."
8828 #: ../fish/guestfish-actions.pod:1381
8830 msgstr "get-e2label"
8833 #: ../fish/guestfish-actions.pod:1383
8836 " get-e2label device\n"
8839 " get-e2label пристрій\n"
8843 #: ../fish/guestfish-actions.pod:1385 ../src/guestfs-actions.pod:2128
8845 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8849 #: ../fish/guestfish-actions.pod:1388
8851 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
8856 #: ../fish/guestfish-actions.pod:1395
8861 #: ../fish/guestfish-actions.pod:1397
8864 " get-e2uuid device\n"
8867 " get-e2uuid пристрій\n"
8871 #: ../fish/guestfish-actions.pod:1399 ../src/guestfs-actions.pod:2149
8873 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
8877 #: ../fish/guestfish-actions.pod:1402
8879 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
8884 #: ../fish/guestfish-actions.pod:1409
8886 msgstr "get-memsize"
8889 #: ../fish/guestfish-actions.pod:1411
8899 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2162
8901 "This gets the memory size in megabytes allocated to the qemu subprocess."
8905 #: ../fish/guestfish-actions.pod:1416
8907 "If L</set-memsize> was not called on this handle, and if "
8908 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
8909 "value for memsize."
8913 #: ../fish/guestfish-actions.pod:1420 ../fish/guestfish-actions.pod:1477
8914 #: ../fish/guestfish-actions.pod:4243 ../fish/guestfish-actions.pod:4345
8915 #: ../src/guestfs-actions.pod:2169 ../src/guestfs-actions.pod:2261
8916 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6581
8918 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
8922 #: ../fish/guestfish-actions.pod:1423
8924 msgstr "get-network"
8927 #: ../fish/guestfish-actions.pod:1425
8937 #: ../fish/guestfish-actions.pod:1427 ../src/guestfs-actions.pod:2181
8938 msgid "This returns the enable network flag."
8942 #: ../fish/guestfish-actions.pod:1429
8947 #: ../fish/guestfish-actions.pod:1431
8957 #: ../fish/guestfish-actions.pod:1433 ../src/guestfs-actions.pod:2192
8958 msgid "Return the current search path."
8962 #: ../fish/guestfish-actions.pod:1435 ../src/guestfs-actions.pod:2194
8964 "This is always non-NULL. If it wasn't set already, then this will return "
8969 #: ../fish/guestfish-actions.pod:1438
8974 #: ../fish/guestfish-actions.pod:1440
8982 #: ../fish/guestfish-actions.pod:1442 ../src/guestfs-actions.pod:2207
8983 msgid "This returns the process group flag."
8987 #: ../fish/guestfish-actions.pod:1444
8992 #: ../fish/guestfish-actions.pod:1446
8997 #: ../fish/guestfish-actions.pod:1448
9007 #: ../fish/guestfish-actions.pod:1450 ../src/guestfs-actions.pod:2218
9009 "Return the process ID of the qemu subprocess. If there is no qemu "
9010 "subprocess, then this will return an error."
9014 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2221
9015 msgid "This is an internal call used for debugging and testing."
9019 #: ../fish/guestfish-actions.pod:1455
9024 #: ../fish/guestfish-actions.pod:1457
9034 #: ../fish/guestfish-actions.pod:1459 ../src/guestfs-actions.pod:2232
9035 msgid "Return the current qemu binary."
9039 #: ../fish/guestfish-actions.pod:1461 ../src/guestfs-actions.pod:2234
9041 "This is always non-NULL. If it wasn't set already, then this will return "
9042 "the default qemu binary name."
9046 #: ../fish/guestfish-actions.pod:1464
9047 msgid "get-recovery-proc"
9048 msgstr "get-recovery-proc"
9051 #: ../fish/guestfish-actions.pod:1466
9054 " get-recovery-proc\n"
9057 " get-recovery-proc\n"
9061 #: ../fish/guestfish-actions.pod:1468 ../src/guestfs-actions.pod:2247
9062 msgid "Return the recovery process enabled flag."
9066 #: ../fish/guestfish-actions.pod:1470
9068 msgstr "get-selinux"
9071 #: ../fish/guestfish-actions.pod:1472
9081 #: ../fish/guestfish-actions.pod:1474
9083 "This returns the current setting of the selinux flag which is passed to the "
9084 "appliance at boot time. See L</set-selinux>."
9088 #: ../fish/guestfish-actions.pod:1480
9093 #: ../fish/guestfish-actions.pod:1482
9101 #: ../fish/guestfish-actions.pod:1484 ../src/guestfs-actions.pod:2273
9102 msgid "This returns the number of virtual CPUs assigned to the appliance."
9106 #: ../fish/guestfish-actions.pod:1486
9111 #: ../fish/guestfish-actions.pod:1488
9121 #: ../fish/guestfish-actions.pod:1490 ../src/guestfs-actions.pod:2284
9123 "This returns the current state as an opaque integer. This is only useful "
9124 "for printing debug and internal error messages."
9128 #: ../fish/guestfish-actions.pod:1493 ../fish/guestfish-actions.pod:2452
9129 #: ../fish/guestfish-actions.pod:2470 ../fish/guestfish-actions.pod:2508
9130 #: ../fish/guestfish-actions.pod:2524 ../src/guestfs-actions.pod:2287
9131 #: ../src/guestfs-actions.pod:3606 ../src/guestfs-actions.pod:3635
9132 #: ../src/guestfs-actions.pod:3696 ../src/guestfs-actions.pod:3723
9133 msgid "For more information on states, see L<guestfs(3)>."
9137 #: ../fish/guestfish-actions.pod:1495
9142 #: ../fish/guestfish-actions.pod:1497
9152 #: ../fish/guestfish-actions.pod:1499 ../src/guestfs-actions.pod:2298
9153 msgid "Return the command trace flag."
9157 #: ../fish/guestfish-actions.pod:1501
9162 #: ../fish/guestfish-actions.pod:1503
9172 #: ../fish/guestfish-actions.pod:1505
9174 "Return the current umask. By default the umask is C<022> unless it has been "
9175 "set by calling L</umask>."
9179 #: ../fish/guestfish-actions.pod:1508
9181 msgstr "get-verbose"
9184 #: ../fish/guestfish-actions.pod:1510
9194 #: ../fish/guestfish-actions.pod:1512 ../src/guestfs-actions.pod:2321
9195 msgid "This returns the verbose messages flag."
9199 #: ../fish/guestfish-actions.pod:1514
9204 #: ../fish/guestfish-actions.pod:1516
9214 #: ../fish/guestfish-actions.pod:1518 ../src/guestfs-actions.pod:2332
9215 msgid "This gets the SELinux security context of the daemon."
9219 #: ../fish/guestfish-actions.pod:1520
9220 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9224 #: ../fish/guestfish-actions.pod:1523
9229 #: ../fish/guestfish-actions.pod:1525
9232 " getxattr path name\n"
9235 " getxattr шлях назва\n"
9239 #: ../fish/guestfish-actions.pod:1527
9241 "Get a single extended attribute from file C<path> named C<name>. This call "
9242 "follows symlinks. If you want to lookup an extended attribute for the "
9243 "symlink itself, use L</lgetxattr>."
9247 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:2597
9249 "Normally it is better to get all extended attributes from a file in one go "
9250 "by calling L</getxattrs>. However some Linux filesystem implementations are "
9251 "buggy and do not provide a way to list out attributes. For these "
9252 "filesystems (notably ntfs-3g) you have to know the names of the extended "
9253 "attributes you want in advance and call this function."
9257 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:2604
9258 #: ../src/guestfs-actions.pod:2361 ../src/guestfs-actions.pod:3856
9260 "Extended attribute values are blobs of binary data. If there is no extended "
9261 "attribute named C<name>, this returns an error."
9265 #: ../fish/guestfish-actions.pod:1541
9266 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9267 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9270 #: ../fish/guestfish-actions.pod:1543
9275 #: ../fish/guestfish-actions.pod:1545
9285 #: ../fish/guestfish-actions.pod:1547 ../src/guestfs-actions.pod:2378
9287 "This call lists the extended attributes of the file or directory C<path>."
9291 #: ../fish/guestfish-actions.pod:1550 ../src/guestfs-actions.pod:2381
9293 "At the system call level, this is a combination of the L<listxattr(2)> and "
9294 "L<getxattr(2)> calls."
9298 #: ../fish/guestfish-actions.pod:1553
9299 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9300 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
9303 #: ../fish/guestfish-actions.pod:1555
9305 msgstr "glob-expand"
9308 #: ../fish/guestfish-actions.pod:1557
9311 " glob-expand pattern\n"
9314 " glob-expand шаблон\n"
9318 #: ../fish/guestfish-actions.pod:1559 ../src/guestfs-actions.pod:2398
9320 "This command searches for all the pathnames matching C<pattern> according to "
9321 "the wildcard expansion rules used by the shell."
9325 #: ../fish/guestfish-actions.pod:1563 ../src/guestfs-actions.pod:2402
9327 "If no paths match, then this returns an empty list (note: not an error)."
9331 #: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2405
9333 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9334 "GLOB_BRACE>. See that manual page for more details."
9338 #: ../fish/guestfish-actions.pod:1570
9343 #: ../fish/guestfish-actions.pod:1572
9346 " grep regex path\n"
9349 " grepi формальний_вираз шлях\n"
9353 #: ../fish/guestfish-actions.pod:1574 ../src/guestfs-actions.pod:2422
9354 msgid "This calls the external C<grep> program and returns the matching lines."
9358 #: ../fish/guestfish-actions.pod:1580
9363 #: ../fish/guestfish-actions.pod:1582
9366 " grepi regex path\n"
9369 " grepi формальний_вираз шлях\n"
9373 #: ../fish/guestfish-actions.pod:1584 ../src/guestfs-actions.pod:2441
9375 "This calls the external C<grep -i> program and returns the matching lines."
9379 #: ../fish/guestfish-actions.pod:1590
9380 msgid "grub-install"
9381 msgstr "grub-install"
9384 #: ../fish/guestfish-actions.pod:1592
9387 " grub-install root device\n"
9390 " grub-install кореневий пристрій\n"
9394 #: ../fish/guestfish-actions.pod:1594 ../src/guestfs-actions.pod:2460
9396 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9397 "with the root directory being C<root>."
9401 #: ../fish/guestfish-actions.pod:1603 ../src/guestfs-actions.pod:2469
9403 "There is currently no way in the API to install grub2, which is used by most "
9404 "modern Linux guests. It is possible to run the grub2 command from the "
9405 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9409 #: ../fish/guestfish-actions.pod:1610 ../src/guestfs-actions.pod:2476
9411 "This uses C<grub-install> from the host. Unfortunately grub is not always "
9412 "compatible with itself, so this only works in rather narrow circumstances. "
9413 "Careful testing with each guest version is advisable."
9417 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2483
9419 "If grub-install reports the error \"No suitable drive was found in the "
9420 "generated device map.\" it may be that you need to create a C</boot/grub/"
9421 "device.map> file first that contains the mapping between grub device names "
9422 "and Linux device names. It is usually sufficient to create a file "
9427 #: ../fish/guestfish-actions.pod:1624 ../src/guestfs-actions.pod:2490
9435 #: ../fish/guestfish-actions.pod:1626 ../src/guestfs-actions.pod:2492
9436 msgid "replacing C</dev/vda> with the name of the installation device."
9440 #: ../fish/guestfish-actions.pod:1630
9445 #: ../fish/guestfish-actions.pod:1632
9455 #: ../fish/guestfish-actions.pod:1634 ../src/guestfs-actions.pod:2506
9457 "This command returns up to the first 10 lines of a file as a list of strings."
9461 #: ../fish/guestfish-actions.pod:1640
9466 #: ../fish/guestfish-actions.pod:1642
9469 " head-n nrlines path\n"
9474 #: ../fish/guestfish-actions.pod:1644 ../src/guestfs-actions.pod:2525
9476 "If the parameter C<nrlines> is a positive number, this returns the first "
9477 "C<nrlines> lines of the file C<path>."
9481 #: ../fish/guestfish-actions.pod:1647 ../src/guestfs-actions.pod:2528
9483 "If the parameter C<nrlines> is a negative number, this returns lines from "
9484 "the file C<path>, excluding the last C<nrlines> lines."
9488 #: ../fish/guestfish-actions.pod:1650 ../fish/guestfish-actions.pod:4735
9489 #: ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:7169
9490 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9494 #: ../fish/guestfish-actions.pod:1655
9499 #: ../fish/guestfish-actions.pod:1657
9509 #: ../fish/guestfish-actions.pod:1659 ../src/guestfs-actions.pod:2548
9511 "This runs C<hexdump -C> on the given C<path>. The result is the human-"
9512 "readable, canonical hex dump of the file."
9516 #: ../fish/guestfish-actions.pod:1665
9521 #: ../fish/guestfish-actions.pod:1667
9524 " initrd-cat initrdpath filename\n"
9527 " initrd-cat шлях_initrd назва_файла\n"
9531 #: ../fish/guestfish-actions.pod:1669 ../src/guestfs-actions.pod:2567
9533 "This command unpacks the file C<filename> from the initrd file called "
9534 "C<initrdpath>. The filename must be given I<without> the initial C</> "
9539 #: ../fish/guestfish-actions.pod:1673 ../src/guestfs-actions.pod:2571
9541 "For example, in guestfish you could use the following command to examine the "
9542 "boot script (usually called C</init>) contained in a Linux initrd or "
9547 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2575
9550 " initrd-cat /boot/initrd-<version>.img init\n"
9555 #: ../fish/guestfish-actions.pod:1679
9556 msgid "See also L</initrd-list>."
9557 msgstr "Див. також L</initrd-list>."
9560 #: ../fish/guestfish-actions.pod:1684
9562 msgstr "initrd-list"
9565 #: ../fish/guestfish-actions.pod:1686
9568 " initrd-list path\n"
9571 " initrd-list шлях\n"
9575 #: ../fish/guestfish-actions.pod:1688 ../src/guestfs-actions.pod:2594
9576 msgid "This command lists out files contained in an initrd."
9580 #: ../fish/guestfish-actions.pod:1690 ../src/guestfs-actions.pod:2596
9582 "The files are listed without any initial C</> character. The files are "
9583 "listed in the order they appear (not necessarily alphabetical). Directory "
9584 "names are listed as separate items."
9588 #: ../fish/guestfish-actions.pod:1694 ../src/guestfs-actions.pod:2600
9590 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9591 "initrd. We I<only> support the newer initramfs format (compressed cpio "
9596 #: ../fish/guestfish-actions.pod:1698
9597 msgid "inotify-add-watch"
9598 msgstr "inotify-add-watch"
9601 #: ../fish/guestfish-actions.pod:1700
9604 " inotify-add-watch path mask\n"
9607 " inotify-add-watch шлях маска\n"
9611 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2617
9612 msgid "Watch C<path> for the events listed in C<mask>."
9616 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2619
9618 "Note that if C<path> is a directory then events within that directory are "
9619 "watched, but this does I<not> happen recursively (in subdirectories)."
9623 #: ../fish/guestfish-actions.pod:1708 ../src/guestfs-actions.pod:2623
9625 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9626 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9630 #: ../fish/guestfish-actions.pod:1712
9631 msgid "inotify-close"
9632 msgstr "inotify-close"
9635 #: ../fish/guestfish-actions.pod:1714
9645 #: ../fish/guestfish-actions.pod:1716 ../src/guestfs-actions.pod:2636
9647 "This closes the inotify handle which was previously opened by inotify_init. "
9648 "It removes all watches, throws away any pending events, and deallocates all "
9653 #: ../fish/guestfish-actions.pod:1720
9654 msgid "inotify-files"
9655 msgstr "inotify-files"
9658 #: ../fish/guestfish-actions.pod:1722
9668 #: ../fish/guestfish-actions.pod:1724
9670 "This function is a helpful wrapper around L</inotify-read> which just "
9671 "returns a list of pathnames of objects that were touched. The returned "
9672 "pathnames are sorted and deduplicated."
9676 #: ../fish/guestfish-actions.pod:1728
9677 msgid "inotify-init"
9678 msgstr "inotify-init"
9681 #: ../fish/guestfish-actions.pod:1730
9684 " inotify-init maxevents\n"
9689 #: ../fish/guestfish-actions.pod:1732 ../src/guestfs-actions.pod:2665
9691 "This command creates a new inotify handle. The inotify subsystem can be "
9692 "used to notify events which happen to objects in the guest filesystem."
9696 #: ../fish/guestfish-actions.pod:1736
9698 "C<maxevents> is the maximum number of events which will be queued up between "
9699 "calls to L</inotify-read> or L</inotify-files>. If this is passed as C<0>, "
9700 "then the kernel (or previously set) default is used. For Linux 2.6.29 the "
9701 "default was 16384 events. Beyond this limit, the kernel throws away events, "
9702 "but records the fact that it threw them away by setting a flag "
9703 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9707 #: ../fish/guestfish-actions.pod:1746
9709 "Before any events are generated, you have to add some watches to the "
9710 "internal watch list. See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9711 "L</inotify-watch-all>."
9715 #: ../fish/guestfish-actions.pod:1752
9717 "Queued up events should be read periodically by calling L</inotify-read> (or "
9718 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>). "
9719 "If you don't read the events out often enough then you risk the internal "
9720 "queue overflowing."
9724 #: ../fish/guestfish-actions.pod:1759
9726 "The handle should be closed after use by calling L</inotify-close>. This "
9727 "also removes any watches automatically."
9731 #: ../fish/guestfish-actions.pod:1763 ../src/guestfs-actions.pod:2696
9733 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9734 "by the Linux kernel, which is roughly what we expose via libguestfs. Note "
9735 "that there is one global inotify handle per libguestfs instance."
9739 #: ../fish/guestfish-actions.pod:1768
9740 msgid "inotify-read"
9741 msgstr "inotify-read"
9744 #: ../fish/guestfish-actions.pod:1770
9754 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2710
9756 "Return the complete queue of events that have happened since the previous "
9761 #: ../fish/guestfish-actions.pod:1775 ../src/guestfs-actions.pod:2713
9762 msgid "If no events have happened, this returns an empty list."
9766 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2715
9768 "I<Note>: In order to make sure that all events have been read, you must call "
9769 "this function repeatedly until it returns an empty list. The reason is that "
9770 "the call will read events up to the maximum appliance-to-host message size "
9771 "and leave remaining events in the queue."
9775 #: ../fish/guestfish-actions.pod:1783
9776 msgid "inotify-rm-watch"
9777 msgstr "inotify-rm-watch"
9780 #: ../fish/guestfish-actions.pod:1785
9783 " inotify-rm-watch wd\n"
9788 #: ../fish/guestfish-actions.pod:1787
9789 msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
9793 #: ../fish/guestfish-actions.pod:1790
9794 msgid "inspect-get-arch"
9795 msgstr "inspect-get-arch"
9798 #: ../fish/guestfish-actions.pod:1792
9801 " inspect-get-arch root\n"
9804 " inspect-get-arch корінь\n"
9808 #: ../fish/guestfish-actions.pod:1794
9810 "This returns the architecture of the inspected operating system. The "
9811 "possible return values are listed under L</file-architecture>."
9815 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2750
9817 "If the architecture could not be determined, then the string C<unknown> is "
9822 #: ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:1896
9823 #: ../fish/guestfish-actions.pod:1975 ../fish/guestfish-actions.pod:1987
9824 #: ../fish/guestfish-actions.pod:2071 ../fish/guestfish-actions.pod:2133
9825 #: ../fish/guestfish-actions.pod:2154 ../fish/guestfish-actions.pod:2168
9826 #: ../fish/guestfish-actions.pod:2208 ../fish/guestfish-actions.pod:2244
9827 #: ../fish/guestfish-actions.pod:2257 ../fish/guestfish-actions.pod:2270
9828 #: ../fish/guestfish-actions.pod:2280 ../fish/guestfish-actions.pod:2290
9829 #: ../fish/guestfish-actions.pod:2302 ../fish/guestfish-actions.pod:2398
9830 #: ../fish/guestfish-actions.pod:2432 ../src/guestfs-actions.pod:2753
9831 #: ../src/guestfs-actions.pod:2855 ../src/guestfs-actions.pod:2959
9832 #: ../src/guestfs-actions.pod:2978 ../src/guestfs-actions.pod:3109
9833 #: ../src/guestfs-actions.pod:3193 ../src/guestfs-actions.pod:3221
9834 #: ../src/guestfs-actions.pod:3242 ../src/guestfs-actions.pod:3295
9835 #: ../src/guestfs-actions.pod:3339 ../src/guestfs-actions.pod:3359
9836 #: ../src/guestfs-actions.pod:3379 ../src/guestfs-actions.pod:3396
9837 #: ../src/guestfs-actions.pod:3412 ../src/guestfs-actions.pod:3430
9838 #: ../src/guestfs-actions.pod:3532 ../src/guestfs-actions.pod:3573
9839 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9843 #: ../fish/guestfish-actions.pod:1803
9844 msgid "inspect-get-distro"
9845 msgstr "inspect-get-distro"
9848 #: ../fish/guestfish-actions.pod:1805
9851 " inspect-get-distro root\n"
9854 " inspect-get-distro корінь\n"
9858 #: ../fish/guestfish-actions.pod:1807 ../src/guestfs-actions.pod:2766
9860 "This returns the distro (distribution) of the inspected operating system."
9864 #: ../fish/guestfish-actions.pod:1810 ../src/guestfs-actions.pod:2769
9865 msgid "Currently defined distros are:"
9869 #: ../fish/guestfish-actions.pod:1814 ../src/guestfs-actions.pod:2773
9870 msgid "\"archlinux\""
9871 msgstr "\"archlinux\""
9874 #: ../fish/guestfish-actions.pod:1816 ../src/guestfs-actions.pod:2775
9876 msgstr "Arch Linux."
9879 #: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2777
9884 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2779
9889 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2781
9894 #: ../fish/guestfish-actions.pod:1824 ../src/guestfs-actions.pod:2783
9899 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2785
9904 #: ../fish/guestfish-actions.pod:1828 ../src/guestfs-actions.pod:2787
9909 #: ../fish/guestfish-actions.pod:1830 ../src/guestfs-actions.pod:2789
9914 #: ../fish/guestfish-actions.pod:1832 ../src/guestfs-actions.pod:2791
9919 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2793
9920 msgid "\"linuxmint\""
9921 msgstr "\"linuxmint\""
9924 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2795
9926 msgstr "Linux Mint."
9929 #: ../fish/guestfish-actions.pod:1838 ../src/guestfs-actions.pod:2797
9934 #: ../fish/guestfish-actions.pod:1840 ../src/guestfs-actions.pod:2799
9939 #: ../fish/guestfish-actions.pod:1842 ../src/guestfs-actions.pod:2801
9940 msgid "\"mandriva\""
9941 msgstr "\"mandriva\""
9944 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2803
9949 #: ../fish/guestfish-actions.pod:1846 ../src/guestfs-actions.pod:2805
9954 #: ../fish/guestfish-actions.pod:1848 ../src/guestfs-actions.pod:2807
9959 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2809
9960 msgid "\"opensuse\""
9964 #: ../fish/guestfish-actions.pod:1852 ../src/guestfs-actions.pod:2811
9969 #: ../fish/guestfish-actions.pod:1854 ../src/guestfs-actions.pod:2813
9974 #: ../fish/guestfish-actions.pod:1856 ../src/guestfs-actions.pod:2815
9979 #: ../fish/guestfish-actions.pod:1858 ../src/guestfs-actions.pod:2817
9980 msgid "\"redhat-based\""
9981 msgstr "\"redhat-based\""
9984 #: ../fish/guestfish-actions.pod:1860 ../src/guestfs-actions.pod:2819
9985 msgid "Some Red Hat-derived distro."
9986 msgstr "Дистрибутив, що походить від Red Hat."
9989 #: ../fish/guestfish-actions.pod:1862 ../src/guestfs-actions.pod:2821
9994 #: ../fish/guestfish-actions.pod:1864 ../src/guestfs-actions.pod:2823
9995 msgid "Red Hat Enterprise Linux."
9996 msgstr "Red Hat Enterprise Linux."
9999 #: ../fish/guestfish-actions.pod:1866 ../src/guestfs-actions.pod:2825
10000 msgid "\"scientificlinux\""
10001 msgstr "\"scientificlinux\""
10004 #: ../fish/guestfish-actions.pod:1868 ../src/guestfs-actions.pod:2827
10005 msgid "Scientific Linux."
10006 msgstr "Scientific Linux."
10009 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2829
10010 msgid "\"slackware\""
10011 msgstr "\"slackware\""
10014 #: ../fish/guestfish-actions.pod:1872 ../src/guestfs-actions.pod:2831
10016 msgstr "Slackware."
10019 #: ../fish/guestfish-actions.pod:1874 ../src/guestfs-actions.pod:2833
10020 msgid "\"ttylinux\""
10024 #: ../fish/guestfish-actions.pod:1876 ../src/guestfs-actions.pod:2835
10029 #: ../fish/guestfish-actions.pod:1878 ../src/guestfs-actions.pod:2837
10031 msgstr "\"ubuntu\""
10034 #: ../fish/guestfish-actions.pod:1880 ../src/guestfs-actions.pod:2839
10039 #: ../fish/guestfish-actions.pod:1882 ../fish/guestfish-actions.pod:1966
10040 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:2841
10041 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:3330
10042 msgid "\"unknown\""
10043 msgstr "\"unknown\""
10046 #: ../fish/guestfish-actions.pod:1884 ../src/guestfs-actions.pod:2843
10047 msgid "The distro could not be determined."
10048 msgstr "Дистрибутив, тип якого не вдалося визначити."
10051 #: ../fish/guestfish-actions.pod:1886 ../fish/guestfish-actions.pod:2223
10052 #: ../src/guestfs-actions.pod:2845 ../src/guestfs-actions.pod:3318
10053 msgid "\"windows\""
10054 msgstr "\"windows\""
10057 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:2847
10059 "Windows does not have distributions. This string is returned if the OS type "
10064 #: ../fish/guestfish-actions.pod:1893 ../fish/guestfish-actions.pod:1972
10065 #: ../fish/guestfish-actions.pod:2241 ../src/guestfs-actions.pod:2852
10066 #: ../src/guestfs-actions.pod:2956 ../src/guestfs-actions.pod:3336
10068 "Future versions of libguestfs may return other strings here. The caller "
10069 "should be prepared to handle any string."
10073 #: ../fish/guestfish-actions.pod:1898
10074 msgid "inspect-get-drive-mappings"
10078 #: ../fish/guestfish-actions.pod:1900
10081 " inspect-get-drive-mappings root\n"
10086 #: ../fish/guestfish-actions.pod:1902 ../src/guestfs-actions.pod:2868
10088 "This call is useful for Windows which uses a primitive system of assigning "
10089 "drive letters (like \"C:\") to partitions. This inspection API examines the "
10090 "Windows Registry to find out how disks/partitions are mapped to drive "
10091 "letters, and returns a hash table as in the example below:"
10095 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2874
10098 " C => /dev/vda2\n"
10099 " E => /dev/vdb1\n"
10100 " F => /dev/vdc1\n"
10105 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:2878
10107 "Note that keys are drive letters. For Windows, the key is case insensitive "
10108 "and just contains the drive letter, without the customary colon separator "
10113 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:2882
10115 "In future we may support other operating systems that also used drive "
10116 "letters, but the keys for those might not be case insensitive and might be "
10117 "longer than 1 character. For example in OS-9, hard drives were named C<h0>, "
10122 #: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:2887
10124 "For Windows guests, currently only hard drive mappings are returned. "
10125 "Removable disks (eg. DVD-ROMs) are ignored."
10129 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:2890
10131 "For guests that do not use drive mappings, or if the drive mappings could "
10132 "not be determined, this returns an empty hash table."
10136 #: ../fish/guestfish-actions.pod:1927
10138 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10139 "get-mountpoints>, L</inspect-get-filesystems>."
10143 #: ../fish/guestfish-actions.pod:1931
10144 msgid "inspect-get-filesystems"
10145 msgstr "inspect-get-filesystems"
10148 #: ../fish/guestfish-actions.pod:1933
10151 " inspect-get-filesystems root\n"
10154 " inspect-get-filesystems корінь\n"
10158 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2911
10160 "This returns a list of all the filesystems that we think are associated with "
10161 "this operating system. This includes the root filesystem, other ordinary "
10162 "filesystems, and non-mounted devices like swap partitions."
10166 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2916
10168 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10169 "to be shared between operating systems."
10173 #: ../fish/guestfish-actions.pod:1943
10175 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10176 "get-mountpoints>."
10180 #: ../fish/guestfish-actions.pod:1946
10181 msgid "inspect-get-format"
10182 msgstr "inspect-get-format"
10185 #: ../fish/guestfish-actions.pod:1948
10188 " inspect-get-format root\n"
10191 " inspect-get-format корінь\n"
10195 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2934
10197 "This returns the format of the inspected operating system. You can use it "
10198 "to detect install images, live CDs and similar."
10202 #: ../fish/guestfish-actions.pod:1953 ../src/guestfs-actions.pod:2937
10203 msgid "Currently defined formats are:"
10207 #: ../fish/guestfish-actions.pod:1957 ../src/guestfs-actions.pod:2941
10208 msgid "\"installed\""
10209 msgstr "\"installed\""
10212 #: ../fish/guestfish-actions.pod:1959 ../src/guestfs-actions.pod:2943
10213 msgid "This is an installed operating system."
10214 msgstr "Це встановлена операційна система."
10217 #: ../fish/guestfish-actions.pod:1961 ../src/guestfs-actions.pod:2945
10218 msgid "\"installer\""
10222 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:2947
10224 "The disk image being inspected is not an installed operating system, but a "
10225 "I<bootable> install disk, live CD, or similar."
10229 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2952
10230 msgid "The format of this disk image is not known."
10234 #: ../fish/guestfish-actions.pod:1977
10235 msgid "inspect-get-hostname"
10236 msgstr "inspect-get-hostname"
10239 #: ../fish/guestfish-actions.pod:1979
10242 " inspect-get-hostname root\n"
10245 " inspect-get-hostname корінь\n"
10249 #: ../fish/guestfish-actions.pod:1981 ../src/guestfs-actions.pod:2972
10251 "This function returns the hostname of the operating system as found by "
10252 "inspection of the guest's configuration files."
10256 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2975
10258 "If the hostname could not be determined, then the string C<unknown> is "
10263 #: ../fish/guestfish-actions.pod:1989
10264 msgid "inspect-get-icon"
10268 #: ../fish/guestfish-actions.pod:1991
10271 " inspect-get-icon root [favicon:..] [highquality:..]\n"
10276 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3001
10278 "This function returns an icon corresponding to the inspected operating "
10279 "system. The icon is returned as a buffer containing a PNG image (re-encoded "
10280 "to PNG if necessary)."
10284 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:3005
10286 "If it was not possible to get an icon this function returns a zero-length "
10287 "(non-NULL) buffer. I<Callers must check for this case>."
10291 #: ../fish/guestfish-actions.pod:2000 ../src/guestfs-actions.pod:3008
10293 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10294 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10295 "this file will be returned. You can disable favicons by passing the "
10296 "optional C<favicon> boolean as false (default is true)."
10300 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3014
10302 "If finding the favicon fails, then we look in other places in the guest for "
10307 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:3017
10309 "If the optional C<highquality> boolean is true then only high quality icons "
10310 "are returned, which means only icons of high resolution with an alpha "
10311 "channel. The default (false) is to return any icon we can, even if it is of "
10312 "substandard quality."
10316 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3028
10318 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10319 "before you call this, since it needs to read information from the guest "
10320 "filesystem during the call."
10324 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3034
10326 "B<Security:> The icon data comes from the untrusted guest, and should be "
10327 "treated with caution. PNG files have been known to contain exploits. "
10328 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10329 "trying to process or display the icon."
10333 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3042
10335 "The PNG image returned can be any size. It might not be square. Libguestfs "
10336 "tries to return the largest, highest quality icon available. The "
10337 "application must scale the icon to the required size."
10341 #: ../fish/guestfish-actions.pod:2041 ../src/guestfs-actions.pod:3049
10343 "Extracting icons from Windows guests requires the external C<wrestool> "
10344 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10345 "C<pnmtopng>, C<pamcut>) from the C<netpbm> package. These must be "
10346 "installed separately."
10350 #: ../fish/guestfish-actions.pod:2048 ../src/guestfs-actions.pod:3056
10352 "Operating system icons are usually trademarks. Seek legal advice before "
10353 "using trademarks in applications."
10357 #: ../fish/guestfish-actions.pod:2055
10358 msgid "inspect-get-major-version"
10359 msgstr "inspect-get-major-version"
10362 #: ../fish/guestfish-actions.pod:2057
10365 " inspect-get-major-version root\n"
10368 " inspect-get-major-version корінь\n"
10372 #: ../fish/guestfish-actions.pod:2059 ../src/guestfs-actions.pod:3097
10374 "This returns the major version number of the inspected operating system."
10378 #: ../fish/guestfish-actions.pod:2062 ../src/guestfs-actions.pod:3100
10380 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10381 "popular public names used by the operating system. Notably the operating "
10382 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10383 "1). You can find out the real versions corresponding to releases of Windows "
10384 "by consulting Wikipedia or MSDN."
10388 #: ../fish/guestfish-actions.pod:2069 ../fish/guestfish-actions.pod:2080
10389 #: ../src/guestfs-actions.pod:3107 ../src/guestfs-actions.pod:3124
10390 msgid "If the version could not be determined, then C<0> is returned."
10394 #: ../fish/guestfish-actions.pod:2073
10395 msgid "inspect-get-minor-version"
10396 msgstr "inspect-get-minor-version"
10399 #: ../fish/guestfish-actions.pod:2075
10402 " inspect-get-minor-version root\n"
10405 " inspect-get-minor-version корінь\n"
10409 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3121
10411 "This returns the minor version number of the inspected operating system."
10415 #: ../fish/guestfish-actions.pod:2082
10417 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10418 "get-major-version>."
10422 #: ../fish/guestfish-actions.pod:2085
10423 msgid "inspect-get-mountpoints"
10424 msgstr "inspect-get-mountpoints"
10427 #: ../fish/guestfish-actions.pod:2087
10430 " inspect-get-mountpoints root\n"
10433 " inspect-get-mountpoints корінь\n"
10437 #: ../fish/guestfish-actions.pod:2089 ../src/guestfs-actions.pod:3139
10439 "This returns a hash of where we think the filesystems associated with this "
10440 "operating system should be mounted. Callers should note that this is at "
10441 "best an educated guess made by reading configuration files such as C</etc/"
10442 "fstab>. I<In particular note> that this may return filesystems which are "
10443 "non-existent or not mountable and callers should be prepared to handle or "
10444 "ignore failures if they try to mount them."
10448 #: ../fish/guestfish-actions.pod:2098 ../src/guestfs-actions.pod:3148
10450 "Each element in the returned hashtable has a key which is the path of the "
10451 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10452 "mounted there (eg. C</dev/sda1>)."
10456 #: ../fish/guestfish-actions.pod:2103 ../src/guestfs-actions.pod:3153
10458 "Non-mounted devices such as swap devices are I<not> returned in this list."
10462 #: ../fish/guestfish-actions.pod:2106
10464 "For operating systems like Windows which still use drive letters, this call "
10465 "will only return an entry for the first drive \"mounted on\" C</>. For "
10466 "information about the mapping of drive letters to partitions, see L</inspect-"
10467 "get-drive-mappings>."
10471 #: ../fish/guestfish-actions.pod:2112
10473 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10474 "get-filesystems>."
10478 #: ../fish/guestfish-actions.pod:2115
10479 msgid "inspect-get-package-format"
10480 msgstr "inspect-get-package-format"
10483 #: ../fish/guestfish-actions.pod:2117
10486 " inspect-get-package-format root\n"
10489 " inspect-get-package-format корінь\n"
10493 #: ../fish/guestfish-actions.pod:2119
10495 "This function and L</inspect-get-package-management> return the package "
10496 "format and package management tool used by the inspected operating system. "
10497 "For example for Fedora these functions would return C<rpm> (package format) "
10498 "and C<yum> (package management)."
10502 #: ../fish/guestfish-actions.pod:2125 ../src/guestfs-actions.pod:3185
10504 "This returns the string C<unknown> if we could not determine the package "
10505 "format I<or> if the operating system does not have a real packaging system "
10510 #: ../fish/guestfish-actions.pod:2129 ../src/guestfs-actions.pod:3189
10512 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10513 "C<pkgsrc>. Future versions of libguestfs may return other strings."
10517 #: ../fish/guestfish-actions.pod:2135
10518 msgid "inspect-get-package-management"
10519 msgstr "inspect-get-package-management"
10522 #: ../fish/guestfish-actions.pod:2137
10525 " inspect-get-package-management root\n"
10528 " inspect-get-package-management корінь\n"
10532 #: ../fish/guestfish-actions.pod:2139
10534 "L</inspect-get-package-format> and this function return the package format "
10535 "and package management tool used by the inspected operating system. For "
10536 "example for Fedora these functions would return C<rpm> (package format) and "
10537 "C<yum> (package management)."
10541 #: ../fish/guestfish-actions.pod:2145 ../src/guestfs-actions.pod:3212
10543 "This returns the string C<unknown> if we could not determine the package "
10544 "management tool I<or> if the operating system does not have a real packaging "
10545 "system (eg. Windows)."
10549 #: ../fish/guestfish-actions.pod:2149 ../src/guestfs-actions.pod:3216
10551 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10552 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>. Future "
10553 "versions of libguestfs may return other strings."
10557 #: ../fish/guestfish-actions.pod:2156
10558 msgid "inspect-get-product-name"
10559 msgstr "inspect-get-product-name"
10562 #: ../fish/guestfish-actions.pod:2158
10565 " inspect-get-product-name root\n"
10568 " inspect-get-product-name корінь\n"
10572 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3234
10574 "This returns the product name of the inspected operating system. The "
10575 "product name is generally some freeform string which can be displayed to the "
10576 "user, but should not be parsed by programs."
10580 #: ../fish/guestfish-actions.pod:2165 ../src/guestfs-actions.pod:3239
10582 "If the product name could not be determined, then the string C<unknown> is "
10587 #: ../fish/guestfish-actions.pod:2170
10588 msgid "inspect-get-product-variant"
10592 #: ../fish/guestfish-actions.pod:2172
10595 " inspect-get-product-variant root\n"
10600 #: ../fish/guestfish-actions.pod:2174 ../src/guestfs-actions.pod:3255
10601 msgid "This returns the product variant of the inspected operating system."
10605 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3258
10607 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10608 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10609 "is usually a string such as C<Client> or C<Server> (other values are "
10610 "possible). This can be used to distinguish consumer and enterprise versions "
10611 "of Windows that have the same version number (for example, Windows 7 and "
10612 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10613 "the latter is C<Server>)."
10617 #: ../fish/guestfish-actions.pod:2186 ../src/guestfs-actions.pod:3267
10619 "For enterprise Linux guests, in future we intend this to return the product "
10620 "variant such as C<Desktop>, C<Server> and so on. But this is not "
10621 "implemented at present."
10625 #: ../fish/guestfish-actions.pod:2190 ../src/guestfs-actions.pod:3271
10627 "If the product variant could not be determined, then the string C<unknown> "
10632 #: ../fish/guestfish-actions.pod:2193
10634 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10635 "get-product-name>, L</inspect-get-major-version>."
10639 #: ../fish/guestfish-actions.pod:2197
10640 msgid "inspect-get-roots"
10641 msgstr "inspect-get-roots"
10644 #: ../fish/guestfish-actions.pod:2199
10647 " inspect-get-roots\n"
10650 " inspect-get-roots\n"
10654 #: ../fish/guestfish-actions.pod:2201
10656 "This function is a convenient way to get the list of root devices, as "
10657 "returned from a previous call to L</inspect-os>, but without redoing the "
10658 "whole inspection process."
10662 #: ../fish/guestfish-actions.pod:2205
10664 "This returns an empty list if either no root devices were found or the "
10665 "caller has not called L</inspect-os>."
10669 #: ../fish/guestfish-actions.pod:2210
10670 msgid "inspect-get-type"
10671 msgstr "inspect-get-type"
10674 #: ../fish/guestfish-actions.pod:2212
10677 " inspect-get-type root\n"
10680 " inspect-get-type корінь\n"
10684 #: ../fish/guestfish-actions.pod:2214 ../src/guestfs-actions.pod:3309
10686 "This returns the type of the inspected operating system. Currently defined "
10691 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3314
10696 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3316
10697 msgid "Any Linux-based operating system."
10701 #: ../fish/guestfish-actions.pod:2225 ../src/guestfs-actions.pod:3320
10702 msgid "Any Microsoft Windows operating system."
10706 #: ../fish/guestfish-actions.pod:2227 ../src/guestfs-actions.pod:3322
10707 msgid "\"freebsd\""
10708 msgstr "\"freebsd\""
10711 #: ../fish/guestfish-actions.pod:2229 ../src/guestfs-actions.pod:3324
10716 #: ../fish/guestfish-actions.pod:2231 ../src/guestfs-actions.pod:3326
10721 #: ../fish/guestfish-actions.pod:2233 ../src/guestfs-actions.pod:3328
10726 #: ../fish/guestfish-actions.pod:2237 ../src/guestfs-actions.pod:3332
10727 msgid "The operating system type could not be determined."
10731 #: ../fish/guestfish-actions.pod:2246
10732 msgid "inspect-get-windows-current-control-set"
10736 #: ../fish/guestfish-actions.pod:2248
10739 " inspect-get-windows-current-control-set root\n"
10744 #: ../fish/guestfish-actions.pod:2250 ../src/guestfs-actions.pod:3352
10746 "This returns the Windows CurrentControlSet of the inspected guest. The "
10747 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10751 #: ../fish/guestfish-actions.pod:2253 ../src/guestfs-actions.pod:3355
10753 "This call assumes that the guest is Windows and that the Registry could be "
10754 "examined by inspection. If this is not the case then an error is returned."
10758 #: ../fish/guestfish-actions.pod:2259
10759 msgid "inspect-get-windows-systemroot"
10760 msgstr "inspect-get-windows-systemroot"
10763 #: ../fish/guestfish-actions.pod:2261
10766 " inspect-get-windows-systemroot root\n"
10769 " inspect-get-windows-systemroot корінь\n"
10773 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3372
10775 "This returns the Windows systemroot of the inspected guest. The systemroot "
10776 "is a directory path such as C</WINDOWS>."
10780 #: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3375
10782 "This call assumes that the guest is Windows and that the systemroot could be "
10783 "determined by inspection. If this is not the case then an error is returned."
10787 #: ../fish/guestfish-actions.pod:2272
10788 msgid "inspect-is-live"
10789 msgstr "inspect-is-live"
10792 #: ../fish/guestfish-actions.pod:2274
10795 " inspect-is-live root\n"
10798 " inspect-is-live корінь\n"
10802 #: ../fish/guestfish-actions.pod:2276
10804 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10805 "then this returns true if a live image was detected on the disk."
10809 #: ../fish/guestfish-actions.pod:2282
10810 msgid "inspect-is-multipart"
10811 msgstr "inspect-is-multipart"
10814 #: ../fish/guestfish-actions.pod:2284
10817 " inspect-is-multipart root\n"
10820 " inspect-is-multipart корінь\n"
10824 #: ../fish/guestfish-actions.pod:2286
10826 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10827 "then this returns true if the disk is part of a set."
10831 #: ../fish/guestfish-actions.pod:2292
10832 msgid "inspect-is-netinst"
10833 msgstr "inspect-is-netinst"
10836 #: ../fish/guestfish-actions.pod:2294
10839 " inspect-is-netinst root\n"
10842 " inspect-is-netinst корінь\n"
10846 #: ../fish/guestfish-actions.pod:2296
10848 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10849 "then this returns true if the disk is a network installer, ie. not a self-"
10850 "contained install CD but one which is likely to require network access to "
10851 "complete the install."
10855 #: ../fish/guestfish-actions.pod:2304
10856 msgid "inspect-list-applications"
10857 msgstr "inspect-list-applications"
10860 #: ../fish/guestfish-actions.pod:2306
10863 " inspect-list-applications root\n"
10866 " inspect-list-applications кореневий_каталог\n"
10870 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3442
10871 msgid "Return the list of applications installed in the operating system."
10875 #: ../fish/guestfish-actions.pod:2310
10877 "I<Note:> This call works differently from other parts of the inspection "
10878 "API. You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
10879 "then mount up the disks, before calling this. Listing applications is a "
10880 "significantly more difficult operation which requires access to the full "
10881 "filesystem. Also note that unlike the other L</inspect-get-*> calls which "
10882 "are just returning data cached in the libguestfs handle, this call actually "
10883 "reads parts of the mounted filesystems during the call."
10887 #: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3454
10889 "This returns an empty list if the inspection code was not able to determine "
10890 "the list of applications."
10894 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3457
10895 msgid "The application structure contains the following fields:"
10899 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3461
10900 msgid "C<app_name>"
10901 msgstr "C<app_name>"
10904 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3463
10906 "The name of the application. For Red Hat-derived and Debian-derived Linux "
10907 "guests, this is the package name."
10911 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3466
10912 msgid "C<app_display_name>"
10913 msgstr "C<app_display_name>"
10916 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3468
10918 "The display name of the application, sometimes localized to the install "
10919 "language of the guest operating system."
10923 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3471
10925 "If unavailable this is returned as an empty string C<\"\">. Callers needing "
10926 "to display something can use C<app_name> instead."
10930 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3474
10931 msgid "C<app_epoch>"
10932 msgstr "C<app_epoch>"
10935 #: ../fish/guestfish-actions.pod:2342 ../src/guestfs-actions.pod:3476
10937 "For package managers which use epochs, this contains the epoch of the "
10938 "package (an integer). If unavailable, this is returned as C<0>."
10942 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3479
10943 msgid "C<app_version>"
10944 msgstr "C<app_version>"
10947 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3481
10949 "The version string of the application or package. If unavailable this is "
10950 "returned as an empty string C<\"\">."
10954 #: ../fish/guestfish-actions.pod:2350 ../src/guestfs-actions.pod:3484
10955 msgid "C<app_release>"
10956 msgstr "C<app_release>"
10959 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3486
10961 "The release string of the application or package, for package managers that "
10962 "use this. If unavailable this is returned as an empty string C<\"\">."
10966 #: ../fish/guestfish-actions.pod:2356 ../src/guestfs-actions.pod:3490
10967 msgid "C<app_install_path>"
10968 msgstr "C<app_install_path>"
10971 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3492
10973 "The installation path of the application (on operating systems such as "
10974 "Windows which use installation paths). This path is in the format used by "
10975 "the guest operating system, it is not a libguestfs path."
10979 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3497
10980 msgid "If unavailable this is returned as an empty string C<\"\">."
10984 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3499
10985 msgid "C<app_trans_path>"
10986 msgstr "C<app_trans_path>"
10989 #: ../fish/guestfish-actions.pod:2367 ../src/guestfs-actions.pod:3501
10991 "The install path translated into a libguestfs path. If unavailable this is "
10992 "returned as an empty string C<\"\">."
10996 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3504
10997 msgid "C<app_publisher>"
10998 msgstr "C<app_publisher>"
11001 #: ../fish/guestfish-actions.pod:2372 ../src/guestfs-actions.pod:3506
11003 "The name of the publisher of the application, for package managers that use "
11004 "this. If unavailable this is returned as an empty string C<\"\">."
11008 #: ../fish/guestfish-actions.pod:2376 ../src/guestfs-actions.pod:3510
11010 msgstr "C<app_url>"
11013 #: ../fish/guestfish-actions.pod:2378 ../src/guestfs-actions.pod:3512
11015 "The URL (eg. upstream URL) of the application. If unavailable this is "
11016 "returned as an empty string C<\"\">."
11020 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3515
11021 msgid "C<app_source_package>"
11022 msgstr "C<app_source_package>"
11025 #: ../fish/guestfish-actions.pod:2383 ../src/guestfs-actions.pod:3517
11027 "For packaging systems which support this, the name of the source package. "
11028 "If unavailable this is returned as an empty string C<\"\">."
11032 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3520
11033 msgid "C<app_summary>"
11034 msgstr "C<app_summary>"
11037 #: ../fish/guestfish-actions.pod:2388 ../src/guestfs-actions.pod:3522
11039 "A short (usually one line) description of the application or package. If "
11040 "unavailable this is returned as an empty string C<\"\">."
11044 #: ../fish/guestfish-actions.pod:2391 ../src/guestfs-actions.pod:3525
11045 msgid "C<app_description>"
11046 msgstr "C<app_description>"
11049 #: ../fish/guestfish-actions.pod:2393 ../src/guestfs-actions.pod:3527
11051 "A longer description of the application or package. If unavailable this is "
11052 "returned as an empty string C<\"\">."
11056 #: ../fish/guestfish-actions.pod:2400
11058 msgstr "inspect-os"
11061 #: ../fish/guestfish-actions.pod:2402
11071 #: ../fish/guestfish-actions.pod:2404 ../src/guestfs-actions.pod:3545
11073 "This function uses other libguestfs functions and certain heuristics to "
11074 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11075 "for operating systems."
11079 #: ../fish/guestfish-actions.pod:2408 ../src/guestfs-actions.pod:3549
11080 msgid "The list returned is empty if no operating systems were found."
11084 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3551
11086 "If one operating system was found, then this returns a list with a single "
11087 "element, which is the name of the root filesystem of this operating system. "
11088 "It is also possible for this function to return a list containing more than "
11089 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11090 "element being the root filesystem of one of the operating systems."
11094 #: ../fish/guestfish-actions.pod:2417
11096 "You can pass the root string(s) returned to other L</inspect-get-*> "
11097 "functions in order to query further information about each operating system, "
11098 "such as the name and version."
11102 #: ../fish/guestfish-actions.pod:2422
11104 "This function uses other libguestfs features such as L</mount-ro> and L</"
11105 "umount-all> in order to mount and unmount filesystems and look at the "
11106 "contents. This should be called with no disks currently mounted. The "
11107 "function may also use Augeas, so any existing Augeas handle will be closed."
11111 #: ../fish/guestfish-actions.pod:2428 ../src/guestfs-actions.pod:3569
11113 "This function cannot decrypt encrypted disks. The caller must do that first "
11114 "(supplying the necessary keys) if the disk is encrypted."
11118 #: ../fish/guestfish-actions.pod:2434 ../fish/guestfish-actions.pod:2632
11119 #: ../fish/guestfish-actions.pod:2691
11120 msgid "See also L</list-filesystems>."
11121 msgstr "Див. також L</list-filesystems>."
11124 #: ../fish/guestfish-actions.pod:2436
11125 msgid "is-blockdev"
11126 msgstr "is-blockdev"
11129 #: ../fish/guestfish-actions.pod:2438
11132 " is-blockdev path\n"
11135 " is-blockdev шлях\n"
11139 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3589
11141 "This returns C<true> if and only if there is a block device with the given "
11146 #: ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2461
11147 #: ../fish/guestfish-actions.pod:2480 ../fish/guestfish-actions.pod:2489
11148 #: ../fish/guestfish-actions.pod:2499 ../fish/guestfish-actions.pod:2533
11149 #: ../fish/guestfish-actions.pod:2542
11150 msgid "See also L</stat>."
11151 msgstr "Див. також L</stat>."
11154 #: ../fish/guestfish-actions.pod:2445
11159 #: ../fish/guestfish-actions.pod:2447
11169 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3603
11171 "This returns true iff this handle is busy processing a command (in the "
11176 #: ../fish/guestfish-actions.pod:2454
11178 msgstr "is-chardev"
11181 #: ../fish/guestfish-actions.pod:2456
11184 " is-chardev path\n"
11187 " is-chardev шлях\n"
11191 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3618
11193 "This returns C<true> if and only if there is a character device with the "
11194 "given C<path> name."
11198 #: ../fish/guestfish-actions.pod:2463
11203 #: ../fish/guestfish-actions.pod:2465
11213 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3632
11215 "This returns true iff this handle is being configured (in the C<CONFIG> "
11220 #: ../fish/guestfish-actions.pod:2472
11225 #: ../fish/guestfish-actions.pod:2474
11235 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3647
11237 "This returns C<true> if and only if there is a directory with the given "
11238 "C<path> name. Note that it returns false for other objects like files."
11242 #: ../fish/guestfish-actions.pod:2482
11247 #: ../fish/guestfish-actions.pod:2484
11257 #: ../fish/guestfish-actions.pod:2486 ../src/guestfs-actions.pod:3663
11259 "This returns C<true> if and only if there is a FIFO (named pipe) with the "
11260 "given C<path> name."
11264 #: ../fish/guestfish-actions.pod:2491
11269 #: ../fish/guestfish-actions.pod:2493
11279 #: ../fish/guestfish-actions.pod:2495 ../src/guestfs-actions.pod:3678
11281 "This returns C<true> if and only if there is a regular file with the given "
11282 "C<path> name. Note that it returns false for other objects like directories."
11286 #: ../fish/guestfish-actions.pod:2501
11287 msgid "is-launching"
11288 msgstr "is-launching"
11291 #: ../fish/guestfish-actions.pod:2503
11301 #: ../fish/guestfish-actions.pod:2505 ../src/guestfs-actions.pod:3693
11303 "This returns true iff this handle is launching the subprocess (in the "
11304 "C<LAUNCHING> state)."
11308 #: ../fish/guestfish-actions.pod:2510
11313 #: ../fish/guestfish-actions.pod:2512
11319 " is-lv пристрій\n"
11323 #: ../fish/guestfish-actions.pod:2514 ../src/guestfs-actions.pod:3708
11325 "This command tests whether C<device> is a logical volume, and returns true "
11326 "iff this is the case."
11330 #: ../fish/guestfish-actions.pod:2517
11335 #: ../fish/guestfish-actions.pod:2519
11345 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3720
11347 "This returns true iff this handle is ready to accept commands (in the "
11352 #: ../fish/guestfish-actions.pod:2526
11357 #: ../fish/guestfish-actions.pod:2528
11360 " is-socket path\n"
11363 " is-socket шлях\n"
11367 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3735
11369 "This returns C<true> if and only if there is a Unix domain socket with the "
11370 "given C<path> name."
11374 #: ../fish/guestfish-actions.pod:2535
11376 msgstr "is-symlink"
11379 #: ../fish/guestfish-actions.pod:2537
11382 " is-symlink path\n"
11385 " is-symlink шлях\n"
11389 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3750
11391 "This returns C<true> if and only if there is a symbolic link with the given "
11396 #: ../fish/guestfish-actions.pod:2544
11401 #: ../fish/guestfish-actions.pod:2546
11409 #: ../fish/guestfish-actions.pod:2548 ../src/guestfs-actions.pod:3765
11411 "This returns true iff the file exists and the file is empty or it contains "
11416 #: ../fish/guestfish-actions.pod:2551
11417 msgid "is-zero-device"
11421 #: ../fish/guestfish-actions.pod:2553
11424 " is-zero-device device\n"
11429 #: ../fish/guestfish-actions.pod:2555 ../src/guestfs-actions.pod:3778
11430 msgid "This returns true iff the device exists and contains all zero bytes."
11434 #: ../fish/guestfish-actions.pod:2557 ../src/guestfs-actions.pod:3780
11435 msgid "Note that for large devices this can take a long time to run."
11439 #: ../fish/guestfish-actions.pod:2559
11440 msgid "kill-subprocess"
11441 msgstr "kill-subprocess"
11444 #: ../fish/guestfish-actions.pod:2561
11447 " kill-subprocess\n"
11450 " kill-subprocess\n"
11454 #: ../fish/guestfish-actions.pod:2563 ../src/guestfs-actions.pod:3791
11455 msgid "This kills the qemu subprocess. You should never need to call this."
11459 #: ../fish/guestfish-actions.pod:2565
11464 #: ../fish/guestfish-actions.pod:2567
11469 #: ../fish/guestfish-actions.pod:2569
11479 #: ../fish/guestfish-actions.pod:2571 ../src/guestfs-actions.pod:3802
11481 "Internally libguestfs is implemented by running a virtual machine using "
11486 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3805
11488 "You should call this after configuring the handle (eg. adding drives) but "
11489 "before performing any actions."
11493 #: ../fish/guestfish-actions.pod:2577
11498 #: ../fish/guestfish-actions.pod:2579
11501 " lchown owner group path\n"
11504 " lchown власник група шлях\n"
11508 #: ../fish/guestfish-actions.pod:2581
11510 "Change the file owner to C<owner> and group to C<group>. This is like L</"
11511 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11516 #: ../fish/guestfish-actions.pod:2589
11521 #: ../fish/guestfish-actions.pod:2591
11524 " lgetxattr path name\n"
11527 " lgetxattr шлях назва\n"
11531 #: ../fish/guestfish-actions.pod:2593 ../src/guestfs-actions.pod:3845
11533 "Get a single extended attribute from file C<path> named C<name>. If C<path> "
11534 "is a symlink, then this call returns an extended attribute from the symlink."
11538 #: ../fish/guestfish-actions.pod:2607
11539 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11540 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11543 #: ../fish/guestfish-actions.pod:2609
11545 msgstr "lgetxattrs"
11548 #: ../fish/guestfish-actions.pod:2611
11551 " lgetxattrs path\n"
11554 " lgetxattrs шлях\n"
11558 #: ../fish/guestfish-actions.pod:2613
11560 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11561 "it returns the extended attributes of the link itself."
11565 #: ../fish/guestfish-actions.pod:2617
11570 #: ../fish/guestfish-actions.pod:2619
11578 #: ../fish/guestfish-actions.pod:2621 ../src/guestfs-actions.pod:3888
11580 "List all 9p filesystems attached to the guest. A list of mount tags is "
11585 #: ../fish/guestfish-actions.pod:2624
11586 msgid "list-devices"
11587 msgstr "list-devices"
11590 #: ../fish/guestfish-actions.pod:2626
11600 #: ../fish/guestfish-actions.pod:2628 ../src/guestfs-actions.pod:3902
11601 msgid "List all the block devices."
11605 #: ../fish/guestfish-actions.pod:2630 ../src/guestfs-actions.pod:3904
11606 msgid "The full block device names are returned, eg. C</dev/sda>."
11610 #: ../fish/guestfish-actions.pod:2634
11611 msgid "list-dm-devices"
11615 #: ../fish/guestfish-actions.pod:2636
11618 " list-dm-devices\n"
11623 #: ../fish/guestfish-actions.pod:2638 ../src/guestfs-actions.pod:3919
11624 msgid "List all device mapper devices."
11628 #: ../fish/guestfish-actions.pod:2640
11630 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11631 "previous call to L</luks-open>."
11635 #: ../fish/guestfish-actions.pod:2643
11637 "Device mapper devices which correspond to logical volumes are I<not> "
11638 "returned in this list. Call L</lvs> if you want to list logical volumes."
11642 #: ../fish/guestfish-actions.pod:2647
11643 msgid "list-filesystems"
11644 msgstr "list-filesystems"
11647 #: ../fish/guestfish-actions.pod:2649
11650 " list-filesystems\n"
11653 " list-filesystems\n"
11657 #: ../fish/guestfish-actions.pod:2651 ../src/guestfs-actions.pod:3939
11659 "This inspection command looks for filesystems on partitions, block devices "
11660 "and logical volumes, returning a list of devices containing filesystems and "
11665 #: ../fish/guestfish-actions.pod:2655 ../src/guestfs-actions.pod:3943
11667 "The return value is a hash, where the keys are the devices containing "
11668 "filesystems, and the values are the filesystem types. For example:"
11672 #: ../fish/guestfish-actions.pod:2659 ../src/guestfs-actions.pod:3947
11675 " \"/dev/sda1\" => \"ntfs\"\n"
11676 " \"/dev/sda2\" => \"ext2\"\n"
11677 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11678 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11683 #: ../fish/guestfish-actions.pod:2664 ../src/guestfs-actions.pod:3952
11685 "The value can have the special value \"unknown\", meaning the content of the "
11686 "device is undetermined or empty. \"swap\" means a Linux swap partition."
11690 #: ../fish/guestfish-actions.pod:2668
11692 "This command runs other libguestfs commands, which might include L</mount> "
11693 "and L</umount>, and therefore you should use this soon after launch and only "
11694 "when nothing is mounted."
11698 #: ../fish/guestfish-actions.pod:2672
11700 "Not all of the filesystems returned will be mountable. In particular, swap "
11701 "partitions are returned in the list. Also this command does not check that "
11702 "each filesystem found is valid and mountable, and some filesystems might be "
11703 "mountable but require special options. Filesystems may not all belong to a "
11704 "single logical operating system (use L</inspect-os> to look for OSes)."
11708 #: ../fish/guestfish-actions.pod:2680
11709 msgid "list-partitions"
11710 msgstr "list-partitions"
11713 #: ../fish/guestfish-actions.pod:2682
11716 " list-partitions\n"
11719 " list-partitions\n"
11723 #: ../fish/guestfish-actions.pod:2684 ../src/guestfs-actions.pod:3981
11724 msgid "List all the partitions detected on all block devices."
11728 #: ../fish/guestfish-actions.pod:2686 ../src/guestfs-actions.pod:3983
11729 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11733 #: ../fish/guestfish-actions.pod:2688
11735 "This does not return logical volumes. For that you will need to call L</"
11740 #: ../fish/guestfish-actions.pod:2693
11745 #: ../fish/guestfish-actions.pod:2695
11755 #: ../fish/guestfish-actions.pod:2697 ../src/guestfs-actions.pod:4002
11757 "List the files in C<directory> (relative to the root directory, there is no "
11758 "cwd) in the format of 'ls -la'."
11762 #: ../fish/guestfish-actions.pod:2700 ../src/guestfs-actions.pod:4005
11764 "This command is mostly useful for interactive sessions. It is I<not> "
11765 "intended that you try to parse the output string."
11769 #: ../fish/guestfish-actions.pod:2703
11774 #: ../fish/guestfish-actions.pod:2705
11777 " ln target linkname\n"
11780 " ln призначення назва_посилання\n"
11784 #: ../fish/guestfish-actions.pod:2707 ../src/guestfs-actions.pod:4020
11785 msgid "This command creates a hard link using the C<ln> command."
11789 #: ../fish/guestfish-actions.pod:2709
11794 #: ../fish/guestfish-actions.pod:2711
11797 " ln-f target linkname\n"
11800 " ln-f призначення назва_посилання\n"
11804 #: ../fish/guestfish-actions.pod:2713 ../src/guestfs-actions.pod:4033
11806 "This command creates a hard link using the C<ln -f> command. The I<-f> "
11807 "option removes the link (C<linkname>) if it exists already."
11811 #: ../fish/guestfish-actions.pod:2716
11816 #: ../fish/guestfish-actions.pod:2718
11819 " ln-s target linkname\n"
11822 " ln-s призначення назва_посилання\n"
11826 #: ../fish/guestfish-actions.pod:2720 ../src/guestfs-actions.pod:4047
11827 msgid "This command creates a symbolic link using the C<ln -s> command."
11831 #: ../fish/guestfish-actions.pod:2722
11836 #: ../fish/guestfish-actions.pod:2724
11839 " ln-sf target linkname\n"
11842 " ln-sf призначення назва_посилання\n"
11846 #: ../fish/guestfish-actions.pod:2726 ../src/guestfs-actions.pod:4060
11848 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11849 "option removes the link (C<linkname>) if it exists already."
11853 #: ../fish/guestfish-actions.pod:2729
11854 msgid "lremovexattr"
11855 msgstr "lremovexattr"
11858 #: ../fish/guestfish-actions.pod:2731
11861 " lremovexattr xattr path\n"
11866 #: ../fish/guestfish-actions.pod:2733
11868 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11869 "it removes an extended attribute of the link itself."
11873 #: ../fish/guestfish-actions.pod:2737
11878 #: ../fish/guestfish-actions.pod:2739
11888 #: ../fish/guestfish-actions.pod:2741 ../src/guestfs-actions.pod:4088
11890 "List the files in C<directory> (relative to the root directory, there is no "
11891 "cwd). The '.' and '..' entries are not returned, but hidden files are shown."
11895 #: ../fish/guestfish-actions.pod:2745
11897 "This command is mostly useful for interactive sessions. Programs should "
11898 "probably use L</readdir> instead."
11902 #: ../fish/guestfish-actions.pod:2748
11907 #: ../fish/guestfish-actions.pod:2750
11910 " lsetxattr xattr val vallen path\n"
11915 #: ../fish/guestfish-actions.pod:2752
11917 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
11918 "sets an extended attribute of the link itself."
11922 #: ../fish/guestfish-actions.pod:2756
11927 #: ../fish/guestfish-actions.pod:2758
11937 #: ../fish/guestfish-actions.pod:2760 ../fish/guestfish-actions.pod:4570
11938 #: ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:6909
11939 msgid "Returns file information for the given C<path>."
11943 #: ../fish/guestfish-actions.pod:2762
11945 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
11946 "the link is stat-ed, not the file it refers to."
11950 #: ../fish/guestfish-actions.pod:2766 ../src/guestfs-actions.pod:4130
11951 msgid "This is the same as the C<lstat(2)> system call."
11955 #: ../fish/guestfish-actions.pod:2768
11960 #: ../fish/guestfish-actions.pod:2770
11963 " lstatlist path 'names ...'\n"
11968 #: ../fish/guestfish-actions.pod:2772
11970 "This call allows you to perform the L</lstat> operation on multiple files, "
11971 "where all files are in the directory C<path>. C<names> is the list of files "
11972 "from this directory."
11976 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4149
11978 "On return you get a list of stat structs, with a one-to-one correspondence "
11979 "to the C<names> list. If any name did not exist or could not be lstat'd, "
11980 "then the C<ino> field of that structure is set to C<-1>."
11984 #: ../fish/guestfish-actions.pod:2781
11986 "This call is intended for programs that want to efficiently list a directory "
11987 "contents without making many round-trips. See also L</lxattrlist> for a "
11988 "similarly efficient call for getting extended attributes. Very long "
11989 "directory listings might cause the protocol message size to be exceeded, "
11990 "causing this call to fail. The caller must split up such requests into "
11991 "smaller groups of names."
11995 #: ../fish/guestfish-actions.pod:2789
11996 msgid "luks-add-key"
11997 msgstr "luks-add-key"
12000 #: ../fish/guestfish-actions.pod:2791
12003 " luks-add-key device keyslot\n"
12008 #: ../fish/guestfish-actions.pod:2793 ../src/guestfs-actions.pod:4177
12010 "This command adds a new key on LUKS device C<device>. C<key> is any "
12011 "existing key, and is used to access the device. C<newkey> is the new key to "
12012 "add. C<keyslot> is the key slot that will be replaced."
12016 #: ../fish/guestfish-actions.pod:2798
12018 "Note that if C<keyslot> already contains a key, then this command will "
12019 "fail. You have to use L</luks-kill-slot> first to remove that key."
12023 #: ../fish/guestfish-actions.pod:2802 ../fish/guestfish-actions.pod:2824
12024 #: ../fish/guestfish-actions.pod:2837 ../fish/guestfish-actions.pod:2851
12025 #: ../fish/guestfish-actions.pod:2877 ../fish/guestfish-actions.pod:2887
12027 "This command has one or more key or passphrase parameters. Guestfish will "
12028 "prompt for these separately."
12032 #: ../fish/guestfish-actions.pod:2805
12034 msgstr "luks-close"
12037 #: ../fish/guestfish-actions.pod:2807
12040 " luks-close device\n"
12043 " luks-close пристрій\n"
12047 #: ../fish/guestfish-actions.pod:2809
12049 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
12050 "luks-open-ro>. The C<device> parameter must be the name of the LUKS mapping "
12051 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
12056 #: ../fish/guestfish-actions.pod:2815
12057 msgid "luks-format"
12058 msgstr "luks-format"
12061 #: ../fish/guestfish-actions.pod:2817
12064 " luks-format device keyslot\n"
12069 #: ../fish/guestfish-actions.pod:2819 ../src/guestfs-actions.pod:4218
12071 "This command erases existing data on C<device> and formats the device as a "
12072 "LUKS encrypted device. C<key> is the initial key, which is added to key "
12073 "slot C<slot>. (LUKS supports 8 key slots, numbered 0-7)."
12077 #: ../fish/guestfish-actions.pod:2827 ../fish/guestfish-actions.pod:2840
12078 #: ../fish/guestfish-actions.pod:2927 ../fish/guestfish-actions.pod:3578
12079 #: ../fish/guestfish-actions.pod:4104 ../fish/guestfish-actions.pod:4441
12080 #: ../fish/guestfish-actions.pod:4464 ../fish/guestfish-actions.pod:4486
12081 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:4225
12082 #: ../src/guestfs-actions.pod:4248 ../src/guestfs-actions.pod:4391
12083 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:6272
12084 #: ../src/guestfs-actions.pod:6723 ../src/guestfs-actions.pod:6753
12085 #: ../src/guestfs-actions.pod:6786 ../src/guestfs-actions.pod:7985
12087 "B<This command is dangerous. Without careful use you can easily destroy all "
12092 #: ../fish/guestfish-actions.pod:2830
12093 msgid "luks-format-cipher"
12094 msgstr "luks-format-cipher"
12097 #: ../fish/guestfish-actions.pod:2832
12100 " luks-format-cipher device keyslot cipher\n"
12105 #: ../fish/guestfish-actions.pod:2834
12107 "This command is the same as L</luks-format> but it also allows you to set "
12108 "the C<cipher> used."
12112 #: ../fish/guestfish-actions.pod:2843
12113 msgid "luks-kill-slot"
12114 msgstr "luks-kill-slot"
12117 #: ../fish/guestfish-actions.pod:2845
12120 " luks-kill-slot device keyslot\n"
12125 #: ../fish/guestfish-actions.pod:2847 ../src/guestfs-actions.pod:4265
12127 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12128 "device C<device>. C<key> must be one of the I<other> keys."
12132 #: ../fish/guestfish-actions.pod:2854
12137 #: ../fish/guestfish-actions.pod:2856
12140 " luks-open device mapname\n"
12145 #: ../fish/guestfish-actions.pod:2858 ../src/guestfs-actions.pod:4285
12147 "This command opens a block device which has been encrypted according to the "
12148 "Linux Unified Key Setup (LUKS) standard."
12152 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4288
12153 msgid "C<device> is the encrypted block device or partition."
12157 #: ../fish/guestfish-actions.pod:2863 ../src/guestfs-actions.pod:4290
12159 "The caller must supply one of the keys associated with the LUKS block "
12160 "device, in the C<key> parameter."
12164 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4293
12166 "This creates a new block device called C</dev/mapper/mapname>. Reads and "
12167 "writes to this block device are decrypted from and encrypted to the "
12168 "underlying C<device> respectively."
12172 #: ../fish/guestfish-actions.pod:2870
12174 "If this block device contains LVM volume groups, then calling L</vgscan> "
12175 "followed by L</vg-activate-all> will make them visible."
12179 #: ../fish/guestfish-actions.pod:2874
12180 msgid "Use L</list-dm-devices> to list all device mapper devices."
12184 #: ../fish/guestfish-actions.pod:2880
12185 msgid "luks-open-ro"
12186 msgstr "luks-open-ro"
12189 #: ../fish/guestfish-actions.pod:2882
12192 " luks-open-ro device mapname\n"
12197 #: ../fish/guestfish-actions.pod:2884
12199 "This is the same as L</luks-open> except that a read-only mapping is created."
12203 #: ../fish/guestfish-actions.pod:2890
12208 #: ../fish/guestfish-actions.pod:2892
12211 " lvcreate logvol volgroup mbytes\n"
12216 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4339
12218 "This creates an LVM logical volume called C<logvol> on the volume group "
12219 "C<volgroup>, with C<size> megabytes."
12223 #: ../fish/guestfish-actions.pod:2897
12224 msgid "lvm-canonical-lv-name"
12225 msgstr "lvm-canonical-lv-name"
12228 #: ../fish/guestfish-actions.pod:2899
12231 " lvm-canonical-lv-name lvname\n"
12236 #: ../fish/guestfish-actions.pod:2901 ../src/guestfs-actions.pod:4352
12238 "This converts alternative naming schemes for LVs that you might find to the "
12239 "canonical name. For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12244 #: ../fish/guestfish-actions.pod:2905 ../src/guestfs-actions.pod:4356
12246 "This command returns an error if the C<lvname> parameter does not refer to a "
12251 #: ../fish/guestfish-actions.pod:2908
12252 msgid "See also L</is-lv>."
12253 msgstr "Див. також L</is-lv>."
12256 #: ../fish/guestfish-actions.pod:2910
12257 msgid "lvm-clear-filter"
12258 msgstr "lvm-clear-filter"
12261 #: ../fish/guestfish-actions.pod:2912
12264 " lvm-clear-filter\n"
12267 " lvm-clear-filter\n"
12271 #: ../fish/guestfish-actions.pod:2914
12273 "This undoes the effect of L</lvm-set-filter>. LVM will be able to see every "
12278 #: ../fish/guestfish-actions.pod:2917 ../fish/guestfish-actions.pod:2948
12279 #: ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4416
12281 "This command also clears the LVM cache and performs a volume group scan."
12285 #: ../fish/guestfish-actions.pod:2920
12286 msgid "lvm-remove-all"
12287 msgstr "lvm-remove-all"
12290 #: ../fish/guestfish-actions.pod:2922
12293 " lvm-remove-all\n"
12296 " lvm-remove-all\n"
12300 #: ../fish/guestfish-actions.pod:2924 ../src/guestfs-actions.pod:4386
12302 "This command removes all LVM logical volumes, volume groups and physical "
12307 #: ../fish/guestfish-actions.pod:2930
12308 msgid "lvm-set-filter"
12309 msgstr "lvm-set-filter"
12312 #: ../fish/guestfish-actions.pod:2932
12315 " lvm-set-filter 'devices ...'\n"
12318 " lvm-set-filter 'пристрої...'\n"
12322 #: ../fish/guestfish-actions.pod:2934 ../src/guestfs-actions.pod:4402
12324 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12325 "block devices in the list C<devices>, and will ignore all other attached "
12330 #: ../fish/guestfish-actions.pod:2938 ../src/guestfs-actions.pod:4406
12332 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12333 "get LVM to ignore the duplicates, otherwise LVM can get confused. Note also "
12334 "there are two types of duplication possible: either cloned PVs/VGs which "
12335 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12336 "same name. In normal operation you cannot create this situation, but you "
12337 "can do it outside LVM, eg. by cloning disk images or by bit twiddling "
12338 "inside the LVM metadata."
12342 #: ../fish/guestfish-actions.pod:2951 ../src/guestfs-actions.pod:4419
12343 msgid "You can filter whole block devices or individual partitions."
12347 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4421
12349 "You cannot use this if any VG is currently in use (eg. contains a mounted "
12350 "filesystem), even if you are not filtering out that VG."
12354 #: ../fish/guestfish-actions.pod:2957
12359 #: ../fish/guestfish-actions.pod:2959
12362 " lvremove device\n"
12365 " lvremove пристрій\n"
12369 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4435
12371 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12372 "LV, such as C</dev/VG/LV>."
12376 #: ../fish/guestfish-actions.pod:2964 ../src/guestfs-actions.pod:4438
12378 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12383 #: ../fish/guestfish-actions.pod:2967
12388 #: ../fish/guestfish-actions.pod:2969
12391 " lvrename logvol newlogvol\n"
12396 #: ../fish/guestfish-actions.pod:2971 ../src/guestfs-actions.pod:4452
12397 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12401 #: ../fish/guestfish-actions.pod:2973
12406 #: ../fish/guestfish-actions.pod:2975
12409 " lvresize device mbytes\n"
12414 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4465
12416 "This resizes (expands or shrinks) an existing LVM logical volume to "
12417 "C<mbytes>. When reducing, data in the reduced part is lost."
12421 #: ../fish/guestfish-actions.pod:2981
12422 msgid "lvresize-free"
12423 msgstr "lvresize-free"
12426 #: ../fish/guestfish-actions.pod:2983
12429 " lvresize-free lv percent\n"
12434 #: ../fish/guestfish-actions.pod:2985 ../src/guestfs-actions.pod:4480
12436 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12437 "remaining free space in the volume group. Commonly you would call this with "
12438 "pc = 100 which expands the logical volume as much as possible, using all "
12439 "remaining free space in the volume group."
12443 #: ../fish/guestfish-actions.pod:2991
12448 #: ../fish/guestfish-actions.pod:2993
12458 #: ../fish/guestfish-actions.pod:2995 ../src/guestfs-actions.pod:4495
12460 "List all the logical volumes detected. This is the equivalent of the L<lvs"
12465 #: ../fish/guestfish-actions.pod:2998 ../src/guestfs-actions.pod:4498
12467 "This returns a list of the logical volume device names (eg. C</dev/"
12468 "VolGroup00/LogVol00>)."
12472 #: ../fish/guestfish-actions.pod:3001
12473 msgid "See also L</lvs-full>, L</list-filesystems>."
12474 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
12477 #: ../fish/guestfish-actions.pod:3003
12482 #: ../fish/guestfish-actions.pod:3005
12492 #: ../fish/guestfish-actions.pod:3007 ../src/guestfs-actions.pod:4514
12494 "List all the logical volumes detected. This is the equivalent of the L<lvs"
12495 "(8)> command. The \"full\" version includes all fields."
12499 #: ../fish/guestfish-actions.pod:3010
12504 #: ../fish/guestfish-actions.pod:3012
12510 " lvuuid пристрій\n"
12514 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4529
12515 msgid "This command returns the UUID of the LVM LV C<device>."
12519 #: ../fish/guestfish-actions.pod:3016
12521 msgstr "lxattrlist"
12524 #: ../fish/guestfish-actions.pod:3018
12527 " lxattrlist path 'names ...'\n"
12532 #: ../fish/guestfish-actions.pod:3020 ../src/guestfs-actions.pod:4543
12534 "This call allows you to get the extended attributes of multiple files, where "
12535 "all files are in the directory C<path>. C<names> is the list of files from "
12540 #: ../fish/guestfish-actions.pod:3024 ../src/guestfs-actions.pod:4547
12542 "On return you get a flat list of xattr structs which must be interpreted "
12543 "sequentially. The first xattr struct always has a zero-length C<attrname>. "
12544 "C<attrval> in this struct is zero-length to indicate there was an error "
12545 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12546 "number (the number of following attributes for this file, which could be C<"
12547 "\"0\">). Then after the first xattr struct are the zero or more attributes "
12548 "for the first named file. This repeats for the second and subsequent files."
12552 #: ../fish/guestfish-actions.pod:3034
12554 "This call is intended for programs that want to efficiently list a directory "
12555 "contents without making many round-trips. See also L</lstatlist> for a "
12556 "similarly efficient call for getting standard stats. Very long directory "
12557 "listings might cause the protocol message size to be exceeded, causing this "
12558 "call to fail. The caller must split up such requests into smaller groups of "
12563 #: ../fish/guestfish-actions.pod:3042
12568 #: ../fish/guestfish-actions.pod:3044
12578 #: ../fish/guestfish-actions.pod:3046 ../src/guestfs-actions.pod:4577
12579 msgid "Create a directory named C<path>."
12583 #: ../fish/guestfish-actions.pod:3048
12585 msgstr "mkdir-mode"
12588 #: ../fish/guestfish-actions.pod:3050
12591 " mkdir-mode path mode\n"
12594 " mkdir-mode шлях режим\n"
12598 #: ../fish/guestfish-actions.pod:3052 ../src/guestfs-actions.pod:4590
12600 "This command creates a directory, setting the initial permissions of the "
12601 "directory to C<mode>."
12605 #: ../fish/guestfish-actions.pod:3055 ../src/guestfs-actions.pod:4593
12607 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12608 "~umask & 01777>. Non-native-Linux filesystems may interpret the mode in "
12613 #: ../fish/guestfish-actions.pod:3059
12614 msgid "See also L</mkdir>, L</umask>"
12615 msgstr "Див. також L</mkdir>, L</umask>"
12618 #: ../fish/guestfish-actions.pod:3061
12623 #: ../fish/guestfish-actions.pod:3063
12633 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4609
12635 "Create a directory named C<path>, creating any parent directories as "
12636 "necessary. This is like the C<mkdir -p> shell command."
12640 #: ../fish/guestfish-actions.pod:3068
12645 #: ../fish/guestfish-actions.pod:3070
12648 " mkdtemp template\n"
12651 " mkdtemp шаблон\n"
12655 #: ../fish/guestfish-actions.pod:3072 ../src/guestfs-actions.pod:4622
12657 "This command creates a temporary directory. The C<template> parameter "
12658 "should be a full pathname for the temporary directory name with the final "
12659 "six characters being \"XXXXXX\"."
12663 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4627
12665 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12666 "being suitable for Windows filesystems."
12670 #: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4630
12671 msgid "The name of the temporary directory that was created is returned."
12675 #: ../fish/guestfish-actions.pod:3083 ../src/guestfs-actions.pod:4633
12676 msgid "The temporary directory is created with mode 0700 and is owned by root."
12680 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4636
12682 "The caller is responsible for deleting the temporary directory and its "
12683 "contents after use."
12687 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4639
12688 msgid "See also: L<mkdtemp(3)>"
12689 msgstr "Див. також L<mkdtemp(3)>"
12692 #: ../fish/guestfish-actions.pod:3091
12697 #: ../fish/guestfish-actions.pod:3093
12700 " mke2fs-J fstype blocksize device journal\n"
12705 #: ../fish/guestfish-actions.pod:3095 ../src/guestfs-actions.pod:4655
12707 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12708 "C<journal>. It is equivalent to the command:"
12712 #: ../fish/guestfish-actions.pod:3099 ../src/guestfs-actions.pod:4659
12715 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12718 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
12722 #: ../fish/guestfish-actions.pod:3101
12723 msgid "See also L</mke2journal>."
12724 msgstr "Див. також L</mke2journal>."
12727 #: ../fish/guestfish-actions.pod:3103
12732 #: ../fish/guestfish-actions.pod:3105
12735 " mke2fs-JL fstype blocksize device label\n"
12740 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4676
12742 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12743 "the journal labeled C<label>."
12747 #: ../fish/guestfish-actions.pod:3110
12748 msgid "See also L</mke2journal-L>."
12749 msgstr "Див. також L</mke2journal-L>."
12752 #: ../fish/guestfish-actions.pod:3112
12757 #: ../fish/guestfish-actions.pod:3114
12760 " mke2fs-JU fstype blocksize device uuid\n"
12765 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4694
12767 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12768 "the journal with UUID C<uuid>."
12772 #: ../fish/guestfish-actions.pod:3119
12773 msgid "See also L</mke2journal-U>."
12774 msgstr "Див. також L</mke2journal-U>."
12777 #: ../fish/guestfish-actions.pod:3121
12778 msgid "mke2journal"
12779 msgstr "mke2journal"
12782 #: ../fish/guestfish-actions.pod:3123
12785 " mke2journal blocksize device\n"
12790 #: ../fish/guestfish-actions.pod:3125 ../src/guestfs-actions.pod:4710
12792 "This creates an ext2 external journal on C<device>. It is equivalent to the "
12797 #: ../fish/guestfish-actions.pod:3128 ../src/guestfs-actions.pod:4713
12800 " mke2fs -O journal_dev -b blocksize device\n"
12805 #: ../fish/guestfish-actions.pod:3130
12806 msgid "mke2journal-L"
12807 msgstr "mke2journal-L"
12810 #: ../fish/guestfish-actions.pod:3132
12813 " mke2journal-L blocksize label device\n"
12818 #: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4727
12819 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12823 #: ../fish/guestfish-actions.pod:3136
12824 msgid "mke2journal-U"
12825 msgstr "mke2journal-U"
12828 #: ../fish/guestfish-actions.pod:3138
12831 " mke2journal-U blocksize uuid device\n"
12836 #: ../fish/guestfish-actions.pod:3140 ../src/guestfs-actions.pod:4741
12837 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12841 #: ../fish/guestfish-actions.pod:3142
12846 #: ../fish/guestfish-actions.pod:3144
12849 " mkfifo mode path\n"
12852 " mkfifo режим шлях\n"
12856 #: ../fish/guestfish-actions.pod:3146
12858 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
12859 "is just a convenient wrapper around L</mknod>."
12863 #: ../fish/guestfish-actions.pod:3152
12868 #: ../fish/guestfish-actions.pod:3154
12871 " mkfs fstype device\n"
12874 " mkfs тип_файлової_системи пристрій\n"
12878 #: ../fish/guestfish-actions.pod:3156 ../src/guestfs-actions.pod:4771
12880 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12881 "volume). The filesystem type is C<fstype>, for example C<ext3>."
12885 #: ../fish/guestfish-actions.pod:3160
12890 #: ../fish/guestfish-actions.pod:3162
12893 " mkfs-b fstype blocksize device\n"
12898 #: ../fish/guestfish-actions.pod:3164
12900 "This call is similar to L</mkfs>, but it allows you to control the block "
12901 "size of the resulting filesystem. Supported block sizes depend on the "
12902 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
12906 #: ../fish/guestfish-actions.pod:3169 ../fish/guestfish-actions.pod:3196
12907 #: ../src/guestfs-actions.pod:4799 ../src/guestfs-actions.pod:4837
12909 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
12914 #: ../fish/guestfish-actions.pod:3172
12916 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
12921 #: ../fish/guestfish-actions.pod:3179
12926 #: ../fish/guestfish-actions.pod:3181
12929 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
12934 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4824
12936 "This function creates a filesystem on C<device>. The filesystem type is "
12937 "C<fstype>, for example C<ext3>."
12941 #: ../fish/guestfish-actions.pod:3190 ../src/guestfs-actions.pod:4831
12942 msgid "C<blocksize>"
12943 msgstr "C<blocksize>"
12946 #: ../fish/guestfish-actions.pod:3192 ../src/guestfs-actions.pod:4833
12948 "The filesystem block size. Supported block sizes depend on the filesystem "
12949 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
12954 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4840
12955 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
12959 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4842
12960 msgid "C<features>"
12961 msgstr "C<features>"
12964 #: ../fish/guestfish-actions.pod:3203 ../src/guestfs-actions.pod:4844
12965 msgid "This passes the I<-O> parameter to the external mkfs program."
12969 #: ../fish/guestfish-actions.pod:3205 ../src/guestfs-actions.pod:4846
12971 "For certain filesystem types, this allows extra filesystem features to be "
12972 "selected. See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
12976 #: ../fish/guestfish-actions.pod:3209 ../src/guestfs-actions.pod:4850
12978 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
12983 #: ../fish/guestfish-actions.pod:3212 ../src/guestfs-actions.pod:4853
12988 #: ../fish/guestfish-actions.pod:3214 ../src/guestfs-actions.pod:4855
12990 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
12991 "sets the inode size (only for ext2/3/4 filesystems at present)."
12995 #: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4858
12996 msgid "C<sectorsize>"
12997 msgstr "C<sectorsize>"
13000 #: ../fish/guestfish-actions.pod:3219 ../src/guestfs-actions.pod:4860
13002 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13003 "sets sector size for ufs filesystem."
13007 #: ../fish/guestfish-actions.pod:3226
13008 msgid "mkmountpoint"
13009 msgstr "mkmountpoint"
13012 #: ../fish/guestfish-actions.pod:3228
13015 " mkmountpoint exemptpath\n"
13020 #: ../fish/guestfish-actions.pod:3230
13022 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13023 "to create extra mountpoints before mounting the first filesystem."
13027 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4903
13029 "These calls are I<only> necessary in some very limited circumstances, mainly "
13030 "the case where you want to mount a mix of unrelated and/or read-only "
13031 "filesystems together."
13035 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4907
13037 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13038 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13039 "inside that. You can unpack this as follows in guestfish:"
13043 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:4912
13046 " add-ro Fedora-11-i686-Live.iso\n"
13048 " mkmountpoint /cd\n"
13049 " mkmountpoint /sqsh\n"
13050 " mkmountpoint /ext3fs\n"
13051 " mount /dev/sda /cd\n"
13052 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13053 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13056 " add-ro Fedora-11-i686-Live.iso\n"
13058 " mkmountpoint /cd\n"
13059 " mkmountpoint /sqsh\n"
13060 " mkmountpoint /ext3fs\n"
13061 " mount /dev/sda /cd\n"
13062 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13063 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13067 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4921
13068 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13072 #: ../fish/guestfish-actions.pod:3254
13074 "L</mkmountpoint> is not compatible with L</umount-all>. You may get "
13075 "unexpected errors if you try to mix these calls. It is safest to manually "
13076 "unmount filesystems and remove mountpoints after use."
13080 #: ../fish/guestfish-actions.pod:3258
13082 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13083 "for this to work for manual mountpoints, you must ensure that the innermost "
13084 "mountpoints have the longest pathnames, as in the example code above."
13088 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:4932
13090 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13094 #: ../fish/guestfish-actions.pod:3265
13096 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13097 "L</umount-all> to be called when the handle is closed which can also trigger "
13102 #: ../fish/guestfish-actions.pod:3269
13107 #: ../fish/guestfish-actions.pod:3271
13110 " mknod mode devmajor devminor path\n"
13115 #: ../fish/guestfish-actions.pod:3273 ../src/guestfs-actions.pod:4951
13117 "This call creates block or character special devices, or named pipes (FIFOs)."
13121 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4954
13123 "The C<mode> parameter should be the mode, using the standard constants. "
13124 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13125 "used when creating block and character special devices."
13129 #: ../fish/guestfish-actions.pod:3281
13131 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13132 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13133 "regular file). These constants are available in the standard Linux header "
13134 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13135 "wrappers around this command which bitwise OR in the appropriate constant "
13140 #: ../fish/guestfish-actions.pod:3291
13145 #: ../fish/guestfish-actions.pod:3293
13148 " mknod-b mode devmajor devminor path\n"
13153 #: ../fish/guestfish-actions.pod:3295
13155 "This call creates a block device node called C<path> with mode C<mode> and "
13156 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
13157 "wrapper around L</mknod>."
13161 #: ../fish/guestfish-actions.pod:3301
13166 #: ../fish/guestfish-actions.pod:3303
13169 " mknod-c mode devmajor devminor path\n"
13174 #: ../fish/guestfish-actions.pod:3305
13176 "This call creates a char device node called C<path> with mode C<mode> and "
13177 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
13178 "wrapper around L</mknod>."
13182 #: ../fish/guestfish-actions.pod:3311
13187 #: ../fish/guestfish-actions.pod:3313
13193 " mkswap пристрій\n"
13197 #: ../fish/guestfish-actions.pod:3315 ../src/guestfs-actions.pod:5017
13198 msgid "Create a swap partition on C<device>."
13202 #: ../fish/guestfish-actions.pod:3317
13207 #: ../fish/guestfish-actions.pod:3319
13210 " mkswap-L label device\n"
13213 " mkswap-L мітка пристрій\n"
13217 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5030
13218 msgid "Create a swap partition on C<device> with label C<label>."
13222 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5032
13224 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13225 "sda>), just to a partition. This appears to be a limitation of the kernel "
13230 #: ../fish/guestfish-actions.pod:3327
13235 #: ../fish/guestfish-actions.pod:3329
13238 " mkswap-U uuid device\n"
13241 " mkswap-U uuid пристрій\n"
13245 #: ../fish/guestfish-actions.pod:3331 ../src/guestfs-actions.pod:5047
13246 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13250 #: ../fish/guestfish-actions.pod:3333
13251 msgid "mkswap-file"
13252 msgstr "mkswap-file"
13255 #: ../fish/guestfish-actions.pod:3335
13258 " mkswap-file path\n"
13261 " mkswap-file шлях\n"
13265 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5059
13266 msgid "Create a swap file."
13267 msgstr "Створити файл резервної пам’яті."
13270 #: ../fish/guestfish-actions.pod:3339
13272 "This command just writes a swap file signature to an existing file. To "
13273 "create the file itself, use something like L</fallocate>."
13277 #: ../fish/guestfish-actions.pod:3342
13282 #: ../fish/guestfish-actions.pod:3344
13285 " modprobe modulename\n"
13288 " modprobe назва_модуля\n"
13292 #: ../fish/guestfish-actions.pod:3346 ../src/guestfs-actions.pod:5074
13293 msgid "This loads a kernel module in the appliance."
13297 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5076
13299 "The kernel module must have been whitelisted when libguestfs was built (see "
13300 "C<appliance/kmod.whitelist.in> in the source)."
13304 #: ../fish/guestfish-actions.pod:3351
13309 #: ../fish/guestfish-actions.pod:3353
13312 " mount device mountpoint\n"
13315 " mount пристрій точка_монтування\n"
13319 #: ../fish/guestfish-actions.pod:3355 ../src/guestfs-actions.pod:5090
13321 "Mount a guest disk at a position in the filesystem. Block devices are named "
13322 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
13323 "those block devices contain partitions, they will have the usual names (eg. "
13324 "C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used."
13328 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5096
13330 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13331 "mounted on C</> before others can be mounted. Other filesystems can only be "
13332 "mounted on directories which already exist."
13336 #: ../fish/guestfish-actions.pod:3366 ../src/guestfs-actions.pod:5101
13338 "The mounted filesystem is writable, if we have sufficient permissions on the "
13339 "underlying device."
13343 #: ../fish/guestfish-actions.pod:3369
13345 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13346 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
13347 "problems for users. If your program might need to work with older versions "
13348 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13349 "first parameter if you don't want any options)."
13353 #: ../fish/guestfish-actions.pod:3376
13358 #: ../fish/guestfish-actions.pod:3378
13361 " mount-9p mounttag mountpoint [options:..]\n"
13366 #: ../fish/guestfish-actions.pod:3380 ../src/guestfs-actions.pod:5130
13368 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13373 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5133
13375 "If required, C<trans=virtio> will be automatically added to the options. "
13376 "Any other options required can be passed in the optional C<options> "
13381 #: ../fish/guestfish-actions.pod:3389
13383 msgstr "mount-loop"
13386 #: ../fish/guestfish-actions.pod:3391
13389 " mount-loop file mountpoint\n"
13394 #: ../fish/guestfish-actions.pod:3393 ../src/guestfs-actions.pod:5172
13396 "This command lets you mount C<file> (a filesystem image in a file) on a "
13397 "mount point. It is entirely equivalent to the command C<mount -o loop file "
13402 #: ../fish/guestfish-actions.pod:3397
13403 msgid "mount-options"
13404 msgstr "mount-options"
13407 #: ../fish/guestfish-actions.pod:3399
13410 " mount-options options device mountpoint\n"
13415 #: ../fish/guestfish-actions.pod:3401
13417 "This is the same as the L</mount> command, but it allows you to set the "
13418 "mount options as for the L<mount(8)> I<-o> flag."
13422 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5192
13424 "If the C<options> parameter is an empty string, then no options are passed "
13425 "(all options default to whatever the filesystem uses)."
13429 #: ../fish/guestfish-actions.pod:3409
13434 #: ../fish/guestfish-actions.pod:3411
13437 " mount-ro device mountpoint\n"
13440 " mount-ro пристрій точка_монтування\n"
13444 #: ../fish/guestfish-actions.pod:3413
13446 "This is the same as the L</mount> command, but it mounts the filesystem with "
13447 "the read-only (I<-o ro>) flag."
13451 #: ../fish/guestfish-actions.pod:3416
13456 #: ../fish/guestfish-actions.pod:3418
13459 " mount-vfs options vfstype device mountpoint\n"
13464 #: ../fish/guestfish-actions.pod:3420
13466 "This is the same as the L</mount> command, but it allows you to set both the "
13467 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13471 #: ../fish/guestfish-actions.pod:3424
13472 msgid "mountpoints"
13473 msgstr "mountpoints"
13476 #: ../fish/guestfish-actions.pod:3426
13486 #: ../fish/guestfish-actions.pod:3428
13488 "This call is similar to L</mounts>. That call returns a list of devices. "
13489 "This one returns a hash table (map) of device name to directory where the "
13490 "device is mounted."
13494 #: ../fish/guestfish-actions.pod:3432
13499 #: ../fish/guestfish-actions.pod:3434
13509 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5253
13511 "This returns the list of currently mounted filesystems. It returns the list "
13512 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13516 #: ../fish/guestfish-actions.pod:3439 ../src/guestfs-actions.pod:5256
13517 msgid "Some internal mounts are not shown."
13521 #: ../fish/guestfish-actions.pod:3441
13522 msgid "See also: L</mountpoints>"
13523 msgstr "Див. також L</mountpoints>"
13526 #: ../fish/guestfish-actions.pod:3443
13531 #: ../fish/guestfish-actions.pod:3445
13537 " mv джерело призначення\n"
13541 #: ../fish/guestfish-actions.pod:3447 ../src/guestfs-actions.pod:5273
13543 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13544 "destination filename or destination directory."
13548 #: ../fish/guestfish-actions.pod:3450
13549 msgid "ntfs-3g-probe"
13550 msgstr "ntfs-3g-probe"
13553 #: ../fish/guestfish-actions.pod:3452
13556 " ntfs-3g-probe true|false device\n"
13561 #: ../fish/guestfish-actions.pod:3454 ../src/guestfs-actions.pod:5287
13563 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13564 "C<device> for mountability. (Not all NTFS volumes can be mounted read-"
13565 "write, and some cannot be mounted at all)."
13569 #: ../fish/guestfish-actions.pod:3458 ../src/guestfs-actions.pod:5291
13571 "C<rw> is a boolean flag. Set it to true if you want to test if the volume "
13572 "can be mounted read-write. Set it to false if you want to test if the "
13573 "volume can be mounted read-only."
13577 #: ../fish/guestfish-actions.pod:3462 ../src/guestfs-actions.pod:5295
13579 "The return value is an integer which C<0> if the operation would succeed, or "
13580 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13584 #: ../fish/guestfish-actions.pod:3466
13586 msgstr "ntfsresize"
13589 #: ../fish/guestfish-actions.pod:3468
13592 " ntfsresize device\n"
13595 " ntfsresize пристрій\n"
13599 #: ../fish/guestfish-actions.pod:3470 ../fish/guestfish-actions.pod:3494
13600 #: ../src/guestfs-actions.pod:5316 ../src/guestfs-actions.pod:5348
13602 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13603 "size of the underlying device."
13607 #: ../fish/guestfish-actions.pod:3473 ../src/guestfs-actions.pod:5319
13609 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13610 "consistency check (for safety). You have to boot into Windows to perform "
13611 "this check and clear this condition. Furthermore, ntfsresize refuses to "
13612 "resize filesystems which have been marked in this way. So in effect it is "
13613 "not possible to call ntfsresize multiple times on a single filesystem "
13614 "without booting into Windows between each resize."
13618 #: ../fish/guestfish-actions.pod:3481 ../fish/guestfish-actions.pod:3520
13619 #: ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:5374
13620 msgid "See also L<ntfsresize(8)>."
13621 msgstr "Див. також L<ntfsresize(8)>."
13624 #: ../fish/guestfish-actions.pod:3483 ../fish/guestfish-actions.pod:3531
13626 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13631 #: ../fish/guestfish-actions.pod:3490
13632 msgid "ntfsresize-opts"
13636 #: ../fish/guestfish-actions.pod:3492
13639 " ntfsresize-opts device [size:..] [force:..]\n"
13644 #: ../fish/guestfish-actions.pod:3503 ../src/guestfs-actions.pod:5357
13646 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
13647 "resized to fit the container (eg. partition)."
13651 #: ../fish/guestfish-actions.pod:3506 ../src/guestfs-actions.pod:5360
13656 #: ../fish/guestfish-actions.pod:3508 ../src/guestfs-actions.pod:5362
13658 "If this option is true, then force the resize of the filesystem even if the "
13659 "filesystem is marked as requiring a consistency check."
13663 #: ../fish/guestfish-actions.pod:3511
13665 "After the resize operation, the filesystem is always marked as requiring a "
13666 "consistency check (for safety). You have to boot into Windows to perform "
13667 "this check and clear this condition. If you I<don't> set the C<force> "
13668 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13669 "a single filesystem without booting into Windows between each resize."
13673 #: ../fish/guestfish-actions.pod:3524
13674 msgid "ntfsresize-size"
13675 msgstr "ntfsresize-size"
13678 #: ../fish/guestfish-actions.pod:3526
13681 " ntfsresize-size device size\n"
13686 #: ../fish/guestfish-actions.pod:3528
13688 "This command is the same as L</ntfsresize> except that it allows you to "
13689 "specify the new size (in bytes) explicitly."
13693 #: ../fish/guestfish-actions.pod:3538
13698 #: ../fish/guestfish-actions.pod:3540
13701 " part-add device prlogex startsect endsect\n"
13706 #: ../fish/guestfish-actions.pod:3542
13708 "This command adds a partition to C<device>. If there is no partition table "
13709 "on the device, call L</part-init> first."
13713 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5435
13715 "The C<prlogex> parameter is the type of partition. Normally you should pass "
13716 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13717 "C<logical>) and C<e> (or C<extended>) partition types."
13721 #: ../fish/guestfish-actions.pod:3550 ../src/guestfs-actions.pod:5440
13723 "C<startsect> and C<endsect> are the start and end of the partition in "
13724 "I<sectors>. C<endsect> may be negative, which means it counts backwards "
13725 "from the end of the disk (C<-1> is the last sector)."
13729 #: ../fish/guestfish-actions.pod:3554
13731 "Creating a partition which covers the whole disk is not so easy. Use L</"
13732 "part-disk> to do that."
13736 #: ../fish/guestfish-actions.pod:3557
13741 #: ../fish/guestfish-actions.pod:3559
13744 " part-del device partnum\n"
13749 #: ../fish/guestfish-actions.pod:3561 ../src/guestfs-actions.pod:5458
13750 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13754 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5460
13756 "Note that in the case of MBR partitioning, deleting an extended partition "
13757 "also deletes any logical partitions it contains."
13761 #: ../fish/guestfish-actions.pod:3567
13766 #: ../fish/guestfish-actions.pod:3569
13769 " part-disk device parttype\n"
13772 " part-disk пристрій тип_розділу\n"
13776 #: ../fish/guestfish-actions.pod:3571
13778 "This command is simply a combination of L</part-init> followed by L</part-"
13779 "add> to create a single primary partition covering the whole disk."
13783 #: ../fish/guestfish-actions.pod:3575
13785 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13786 "possible values are described in L</part-init>."
13790 #: ../fish/guestfish-actions.pod:3581
13791 msgid "part-get-bootable"
13792 msgstr "part-get-bootable"
13795 #: ../fish/guestfish-actions.pod:3583
13798 " part-get-bootable device partnum\n"
13803 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5496
13805 "This command returns true if the partition C<partnum> on C<device> has the "
13806 "bootable flag set."
13810 #: ../fish/guestfish-actions.pod:3588
13811 msgid "See also L</part-set-bootable>."
13812 msgstr "Див. також L</part-set-bootable>."
13815 #: ../fish/guestfish-actions.pod:3590
13816 msgid "part-get-mbr-id"
13817 msgstr "part-get-mbr-id"
13820 #: ../fish/guestfish-actions.pod:3592
13823 " part-get-mbr-id device partnum\n"
13828 #: ../fish/guestfish-actions.pod:3594 ../src/guestfs-actions.pod:5512
13830 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13831 "partition C<partnum>."
13835 #: ../fish/guestfish-actions.pod:3597 ../fish/guestfish-actions.pod:3741
13837 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
13838 "undefined results for other partition table types (see L</part-get-"
13843 #: ../fish/guestfish-actions.pod:3601
13844 msgid "part-get-parttype"
13845 msgstr "part-get-parttype"
13848 #: ../fish/guestfish-actions.pod:3603
13851 " part-get-parttype device\n"
13854 " part-get-parttype пристрій\n"
13858 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5529
13860 "This command examines the partition table on C<device> and returns the "
13861 "partition table type (format) being used."
13865 #: ../fish/guestfish-actions.pod:3608
13867 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13868 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
13869 "possible, although unusual. See L</part-init> for a full list."
13873 #: ../fish/guestfish-actions.pod:3613
13878 #: ../fish/guestfish-actions.pod:3615
13881 " part-init device parttype\n"
13886 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5549
13888 "This creates an empty partition table on C<device> of one of the partition "
13889 "types listed below. Usually C<parttype> should be either C<msdos> or C<gpt> "
13890 "(for large disks)."
13894 #: ../fish/guestfish-actions.pod:3621
13896 "Initially there are no partitions. Following this, you should call L</part-"
13897 "add> for each partition required."
13901 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5556
13902 msgid "Possible values for C<parttype> are:"
13906 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5560
13911 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5562
13916 #: ../fish/guestfish-actions.pod:3632 ../src/guestfs-actions.pod:5564
13917 msgid "Intel EFI / GPT partition table."
13921 #: ../fish/guestfish-actions.pod:3634 ../src/guestfs-actions.pod:5566
13923 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
13924 "and Intel-based Mac OS X. It also has limited backwards compatibility with "
13925 "the C<mbr> format."
13929 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5570
13934 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5572
13939 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5574
13941 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
13942 "Windows. This partition type will B<only> work for device sizes up to 2 "
13943 "TB. For large disks we recommend using C<gpt>."
13947 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5581
13949 "Other partition table types that may work but are not supported include:"
13953 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5586
13958 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5588
13959 msgid "AIX disk labels."
13960 msgstr "Мітки дисків AIX."
13963 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5590
13968 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5592
13973 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5594
13974 msgid "Amiga \"Rigid Disk Block\" format."
13975 msgstr "Формат \"Rigid Disk Block\" Amiga."
13978 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5596
13983 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5598
13984 msgid "BSD disk labels."
13985 msgstr "Мітки дисків BSD."
13988 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5600
13993 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5602
13994 msgid "DASD, used on IBM mainframes."
13995 msgstr "DASD, використовувалися у мейнфреймах IBM."
13998 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5604
14003 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5606
14004 msgid "MIPS/SGI volumes."
14005 msgstr "Томи MIPS/SGI."
14008 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5608
14013 #: ../fish/guestfish-actions.pod:3678 ../src/guestfs-actions.pod:5610
14014 msgid "Old Mac partition format. Modern Macs use C<gpt>."
14015 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
14018 #: ../fish/guestfish-actions.pod:3680 ../src/guestfs-actions.pod:5612
14023 #: ../fish/guestfish-actions.pod:3682 ../src/guestfs-actions.pod:5614
14024 msgid "NEC PC-98 format, common in Japan apparently."
14025 msgstr "Формат NEC PC-98, поширений у Японії."
14028 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5616
14033 #: ../fish/guestfish-actions.pod:3686 ../src/guestfs-actions.pod:5618
14034 msgid "Sun disk labels."
14035 msgstr "Мітки дисків Sun."
14038 #: ../fish/guestfish-actions.pod:3690
14043 #: ../fish/guestfish-actions.pod:3692
14046 " part-list device\n"
14049 " part-list device\n"
14053 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5632
14055 "This command parses the partition table on C<device> and returns the list of "
14056 "partitions found."
14060 #: ../fish/guestfish-actions.pod:3697 ../src/guestfs-actions.pod:5635
14061 msgid "The fields in the returned structure are:"
14065 #: ../fish/guestfish-actions.pod:3701 ../src/guestfs-actions.pod:5639
14066 msgid "B<part_num>"
14067 msgstr "B<part_num>"
14070 #: ../fish/guestfish-actions.pod:3703 ../src/guestfs-actions.pod:5641
14071 msgid "Partition number, counting from 1."
14075 #: ../fish/guestfish-actions.pod:3705 ../src/guestfs-actions.pod:5643
14076 msgid "B<part_start>"
14077 msgstr "B<part_start>"
14080 #: ../fish/guestfish-actions.pod:3707
14082 "Start of the partition I<in bytes>. To get sectors you have to divide by "
14083 "the device's sector size, see L</blockdev-getss>."
14087 #: ../fish/guestfish-actions.pod:3710 ../src/guestfs-actions.pod:5648
14088 msgid "B<part_end>"
14089 msgstr "B<part_end>"
14092 #: ../fish/guestfish-actions.pod:3712 ../src/guestfs-actions.pod:5650
14093 msgid "End of the partition in bytes."
14097 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5652
14098 msgid "B<part_size>"
14099 msgstr "B<part_size>"
14102 #: ../fish/guestfish-actions.pod:3716 ../src/guestfs-actions.pod:5654
14103 msgid "Size of the partition in bytes."
14107 #: ../fish/guestfish-actions.pod:3720
14108 msgid "part-set-bootable"
14109 msgstr "part-set-bootable"
14112 #: ../fish/guestfish-actions.pod:3722
14115 " part-set-bootable device partnum true|false\n"
14120 #: ../fish/guestfish-actions.pod:3724 ../src/guestfs-actions.pod:5672
14122 "This sets the bootable flag on partition numbered C<partnum> on device "
14123 "C<device>. Note that partitions are numbered from 1."
14127 #: ../fish/guestfish-actions.pod:3727 ../src/guestfs-actions.pod:5675
14129 "The bootable flag is used by some operating systems (notably Windows) to "
14130 "determine which partition to boot from. It is by no means universally "
14135 #: ../fish/guestfish-actions.pod:3731
14136 msgid "part-set-mbr-id"
14137 msgstr "part-set-mbr-id"
14140 #: ../fish/guestfish-actions.pod:3733
14143 " part-set-mbr-id device partnum idbyte\n"
14148 #: ../fish/guestfish-actions.pod:3735 ../src/guestfs-actions.pod:5691
14150 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14151 "C<partnum> to C<idbyte>. Note that the type bytes quoted in most "
14152 "documentation are in fact hexadecimal numbers, but usually documented "
14153 "without any leading \"0x\" which might be confusing."
14157 #: ../fish/guestfish-actions.pod:3745
14158 msgid "part-set-name"
14159 msgstr "part-set-name"
14162 #: ../fish/guestfish-actions.pod:3747
14165 " part-set-name device partnum name\n"
14170 #: ../fish/guestfish-actions.pod:3749 ../src/guestfs-actions.pod:5713
14172 "This sets the partition name on partition numbered C<partnum> on device "
14173 "C<device>. Note that partitions are numbered from 1."
14177 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5716
14179 "The partition name can only be set on certain types of partition table. "
14180 "This works on C<gpt> but not on C<mbr> partitions."
14184 #: ../fish/guestfish-actions.pod:3755
14185 msgid "part-to-dev"
14186 msgstr "part-to-dev"
14189 #: ../fish/guestfish-actions.pod:3757
14192 " part-to-dev partition\n"
14195 " part-to-dev розділ\n"
14199 #: ../fish/guestfish-actions.pod:3759 ../src/guestfs-actions.pod:5729
14201 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14202 "partition number, returning the device name (eg. \"/dev/sdb\")."
14206 #: ../fish/guestfish-actions.pod:3763
14208 "The named partition must exist, for example as a string returned from L</"
14209 "list-partitions>."
14213 #: ../fish/guestfish-actions.pod:3766
14214 msgid "ping-daemon"
14215 msgstr "ping-daemon"
14218 #: ../fish/guestfish-actions.pod:3768
14228 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5746
14230 "This is a test probe into the guestfs daemon running inside the qemu "
14231 "subprocess. Calling this function checks that the daemon responds to the "
14232 "ping message, without affecting the daemon or attached block device(s) in "
14237 #: ../fish/guestfish-actions.pod:3775
14242 #: ../fish/guestfish-actions.pod:3777
14245 " pread path count offset\n"
14250 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5764
14252 "This command lets you read part of a file. It reads C<count> bytes of the "
14253 "file, starting at C<offset>, from file C<path>."
14257 #: ../fish/guestfish-actions.pod:3782 ../fish/guestfish-actions.pod:3797
14258 #: ../src/guestfs-actions.pod:5767 ../src/guestfs-actions.pod:5793
14260 "This may read fewer bytes than requested. For further details see the "
14261 "L<pread(2)> system call."
14265 #: ../fish/guestfish-actions.pod:3785
14266 msgid "See also L</pwrite>, L</pread-device>."
14267 msgstr "Див. також L</pwrite>, L</pread-device>."
14270 #: ../fish/guestfish-actions.pod:3790
14271 msgid "pread-device"
14272 msgstr "pread-device"
14275 #: ../fish/guestfish-actions.pod:3792
14278 " pread-device device count offset\n"
14283 #: ../fish/guestfish-actions.pod:3794 ../src/guestfs-actions.pod:5790
14285 "This command lets you read part of a file. It reads C<count> bytes of "
14286 "C<device>, starting at C<offset>."
14290 #: ../fish/guestfish-actions.pod:3800
14291 msgid "See also L</pread>."
14292 msgstr "Див. також L</pread>."
14295 #: ../fish/guestfish-actions.pod:3805
14300 #: ../fish/guestfish-actions.pod:3807
14303 " pvcreate device\n"
14306 " pvcreate пристрій\n"
14310 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5813
14312 "This creates an LVM physical volume on the named C<device>, where C<device> "
14313 "should usually be a partition name such as C</dev/sda1>."
14317 #: ../fish/guestfish-actions.pod:3813
14322 #: ../fish/guestfish-actions.pod:3815
14325 " pvremove device\n"
14328 " pvremove пристрій\n"
14332 #: ../fish/guestfish-actions.pod:3817 ../src/guestfs-actions.pod:5827
14334 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14339 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5830
14341 "The implementation uses the C<pvremove> command which refuses to wipe "
14342 "physical volumes that contain any volume groups, so you have to remove those "
14347 #: ../fish/guestfish-actions.pod:3824
14352 #: ../fish/guestfish-actions.pod:3826
14355 " pvresize device\n"
14358 " pvresize пристрій\n"
14362 #: ../fish/guestfish-actions.pod:3828 ../src/guestfs-actions.pod:5844
14364 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14365 "the new size of the underlying device."
14369 #: ../fish/guestfish-actions.pod:3831
14370 msgid "pvresize-size"
14371 msgstr "pvresize-size"
14374 #: ../fish/guestfish-actions.pod:3833
14377 " pvresize-size device size\n"
14382 #: ../fish/guestfish-actions.pod:3835
14384 "This command is the same as L</pvresize> except that it allows you to "
14385 "specify the new size (in bytes) explicitly."
14389 #: ../fish/guestfish-actions.pod:3838
14394 #: ../fish/guestfish-actions.pod:3840
14404 #: ../fish/guestfish-actions.pod:3842 ../src/guestfs-actions.pod:5870
14406 "List all the physical volumes detected. This is the equivalent of the L<pvs"
14411 #: ../fish/guestfish-actions.pod:3845 ../src/guestfs-actions.pod:5873
14413 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14418 #: ../fish/guestfish-actions.pod:3848
14419 msgid "See also L</pvs-full>."
14420 msgstr "Див. також L</pvs-full>."
14423 #: ../fish/guestfish-actions.pod:3850
14428 #: ../fish/guestfish-actions.pod:3852
14438 #: ../fish/guestfish-actions.pod:3854 ../src/guestfs-actions.pod:5889
14440 "List all the physical volumes detected. This is the equivalent of the L<pvs"
14441 "(8)> command. The \"full\" version includes all fields."
14445 #: ../fish/guestfish-actions.pod:3857
14450 #: ../fish/guestfish-actions.pod:3859
14456 " pvuuid пристрій\n"
14460 #: ../fish/guestfish-actions.pod:3861 ../src/guestfs-actions.pod:5904
14461 msgid "This command returns the UUID of the LVM PV C<device>."
14465 #: ../fish/guestfish-actions.pod:3863
14470 #: ../fish/guestfish-actions.pod:3865
14473 " pwrite path content offset\n"
14478 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5920
14480 "This command writes to part of a file. It writes the data buffer C<content> "
14481 "to the file C<path> starting at offset C<offset>."
14485 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5923
14487 "This command implements the L<pwrite(2)> system call, and like that system "
14488 "call it may not write the full data requested. The return value is the "
14489 "number of bytes that were actually written to the file. This could even be "
14490 "0, although short writes are unlikely for regular files in ordinary "
14495 #: ../fish/guestfish-actions.pod:3876
14496 msgid "See also L</pread>, L</pwrite-device>."
14497 msgstr "Див. також L</pread>, L</pwrite-device>."
14500 #: ../fish/guestfish-actions.pod:3881
14501 msgid "pwrite-device"
14502 msgstr "pwrite-device"
14505 #: ../fish/guestfish-actions.pod:3883
14508 " pwrite-device device content offset\n"
14513 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:5947
14515 "This command writes to part of a device. It writes the data buffer "
14516 "C<content> to C<device> starting at offset C<offset>."
14520 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:5950
14522 "This command implements the L<pwrite(2)> system call, and like that system "
14523 "call it may not write the full data requested (although short writes to disk "
14524 "devices and partitions are probably impossible with standard Linux kernels)."
14528 #: ../fish/guestfish-actions.pod:3893
14529 msgid "See also L</pwrite>."
14530 msgstr "Див. також L</pwrite>."
14533 #: ../fish/guestfish-actions.pod:3898
14538 #: ../fish/guestfish-actions.pod:3900
14541 " read-file path\n"
14544 " read-file шлях\n"
14548 #: ../fish/guestfish-actions.pod:3902 ../src/guestfs-actions.pod:5971
14549 msgid "This calls returns the contents of the file C<path> as a buffer."
14553 #: ../fish/guestfish-actions.pod:3905
14555 "Unlike L</cat>, this function can correctly handle files that contain "
14556 "embedded ASCII NUL characters. However unlike L</download>, this function "
14557 "is limited in the total size of file that can be handled."
14561 #: ../fish/guestfish-actions.pod:3913
14563 msgstr "read-lines"
14566 #: ../fish/guestfish-actions.pod:3915
14569 " read-lines path\n"
14572 " read-lines шлях\n"
14576 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5996
14578 "The file contents are returned as a list of lines. Trailing C<LF> and "
14579 "C<CRLF> character sequences are I<not> returned."
14583 #: ../fish/guestfish-actions.pod:3922
14585 "Note that this function cannot correctly handle binary files (specifically, "
14586 "files containing C<\\0> character which is treated as end of line). For "
14587 "those you need to use the L</read-file> function which has a more complex "
14592 #: ../fish/guestfish-actions.pod:3927
14597 #: ../fish/guestfish-actions.pod:3929
14603 " readdir каталог\n"
14607 #: ../fish/guestfish-actions.pod:3931 ../src/guestfs-actions.pod:6016
14608 msgid "This returns the list of directory entries in directory C<dir>."
14612 #: ../fish/guestfish-actions.pod:3933 ../src/guestfs-actions.pod:6018
14614 "All entries in the directory are returned, including C<.> and C<..>. The "
14615 "entries are I<not> sorted, but returned in the same order as the underlying "
14620 #: ../fish/guestfish-actions.pod:3937 ../src/guestfs-actions.pod:6022
14622 "Also this call returns basic file type information about each file. The "
14623 "C<ftyp> field will contain one of the following characters:"
14627 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6027
14632 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6029
14633 msgid "Block special"
14634 msgstr "Блоковий особливий"
14637 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6031
14642 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6033
14643 msgid "Char special"
14644 msgstr "Символьний особливий"
14647 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6035
14652 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6037
14657 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6039
14662 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6041
14663 msgid "FIFO (named pipe)"
14664 msgstr "FIFO (іменований канал)"
14667 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6043
14672 #: ../fish/guestfish-actions.pod:3960 ../src/guestfs-actions.pod:6045
14673 msgid "Symbolic link"
14674 msgstr "Символічне посилання"
14677 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6047
14682 #: ../fish/guestfish-actions.pod:3964 ../src/guestfs-actions.pod:6049
14683 msgid "Regular file"
14684 msgstr "Звичайний файл"
14687 #: ../fish/guestfish-actions.pod:3966 ../src/guestfs-actions.pod:6051
14692 #: ../fish/guestfish-actions.pod:3968 ../src/guestfs-actions.pod:6053
14697 #: ../fish/guestfish-actions.pod:3970 ../src/guestfs-actions.pod:6055
14702 #: ../fish/guestfish-actions.pod:3972 ../src/guestfs-actions.pod:6057
14703 msgid "Unknown file type"
14704 msgstr "Невідомий тип файла"
14707 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6059
14712 #: ../fish/guestfish-actions.pod:3976 ../src/guestfs-actions.pod:6061
14714 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14718 #: ../fish/guestfish-actions.pod:3981
14720 "This function is primarily intended for use by programs. To get a simple "
14721 "list of names, use L</ls>. To get a printable directory for human "
14722 "consumption, use L</ll>."
14726 #: ../fish/guestfish-actions.pod:3985
14731 #: ../fish/guestfish-actions.pod:3987
14741 #: ../fish/guestfish-actions.pod:3989 ../src/guestfs-actions.pod:6082
14742 msgid "This command reads the target of a symbolic link."
14746 #: ../fish/guestfish-actions.pod:3991
14747 msgid "readlinklist"
14748 msgstr "readlinklist"
14751 #: ../fish/guestfish-actions.pod:3993
14754 " readlinklist path 'names ...'\n"
14759 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6096
14761 "This call allows you to do a C<readlink> operation on multiple files, where "
14762 "all files are in the directory C<path>. C<names> is the list of files from "
14767 #: ../fish/guestfish-actions.pod:3999 ../src/guestfs-actions.pod:6100
14769 "On return you get a list of strings, with a one-to-one correspondence to the "
14770 "C<names> list. Each string is the value of the symbolic link."
14774 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6104
14776 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14777 "result string is the empty string C<\"\">. However the whole operation is "
14778 "completed even if there were C<readlink(2)> errors, and so you can call this "
14779 "function with names where you don't know if they are symbolic links already "
14780 "(albeit slightly less efficient)."
14784 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6111
14786 "This call is intended for programs that want to efficiently list a directory "
14787 "contents without making many round-trips. Very long directory listings "
14788 "might cause the protocol message size to be exceeded, causing this call to "
14789 "fail. The caller must split up such requests into smaller groups of names."
14793 #: ../fish/guestfish-actions.pod:4017
14798 #: ../fish/guestfish-actions.pod:4019
14808 #: ../fish/guestfish-actions.pod:4021 ../src/guestfs-actions.pod:6130
14810 "Return the canonicalized absolute pathname of C<path>. The returned path "
14811 "has no C<.>, C<..> or symbolic link path elements."
14815 #: ../fish/guestfish-actions.pod:4024
14816 msgid "removexattr"
14817 msgstr "removexattr"
14820 #: ../fish/guestfish-actions.pod:4026
14823 " removexattr xattr path\n"
14828 #: ../fish/guestfish-actions.pod:4028 ../src/guestfs-actions.pod:6145
14830 "This call removes the extended attribute named C<xattr> of the file C<path>."
14834 #: ../fish/guestfish-actions.pod:4031
14835 msgid "See also: L</lremovexattr>, L<attr(5)>."
14836 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
14839 #: ../fish/guestfish-actions.pod:4033
14844 #: ../fish/guestfish-actions.pod:4035
14847 " resize2fs device\n"
14850 " resize2fs пристрій\n"
14854 #: ../fish/guestfish-actions.pod:4037 ../src/guestfs-actions.pod:6160
14856 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
14857 "underlying device."
14861 #: ../fish/guestfish-actions.pod:4040
14863 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
14864 "before calling this command. For unknown reasons C<resize2fs> sometimes "
14865 "gives an error about this and sometimes not. In any case, it is always safe "
14866 "to call L</e2fsck-f> before calling this function."
14870 #: ../fish/guestfish-actions.pod:4046
14871 msgid "resize2fs-M"
14872 msgstr "resize2fs-M"
14875 #: ../fish/guestfish-actions.pod:4048
14878 " resize2fs-M device\n"
14881 " resize2fs-M пристрій\n"
14885 #: ../fish/guestfish-actions.pod:4050
14887 "This command is the same as L</resize2fs>, but the filesystem is resized to "
14888 "its minimum size. This works like the I<-M> option to the C<resize2fs> "
14893 #: ../fish/guestfish-actions.pod:4054
14895 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
14896 "and read the C<Block size> and C<Block count> values. These two numbers, "
14897 "multiplied together, give the resulting size of the minimal filesystem in "
14902 #: ../fish/guestfish-actions.pod:4059
14903 msgid "resize2fs-size"
14904 msgstr "resize2fs-size"
14907 #: ../fish/guestfish-actions.pod:4061
14910 " resize2fs-size device size\n"
14915 #: ../fish/guestfish-actions.pod:4063
14917 "This command is the same as L</resize2fs> except that it allows you to "
14918 "specify the new size (in bytes) explicitly."
14922 #: ../fish/guestfish-actions.pod:4066
14927 #: ../fish/guestfish-actions.pod:4068
14937 #: ../fish/guestfish-actions.pod:4070 ../src/guestfs-actions.pod:6212
14938 msgid "Remove the single file C<path>."
14942 #: ../fish/guestfish-actions.pod:4072
14947 #: ../fish/guestfish-actions.pod:4074
14957 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6224
14959 "Remove the file or directory C<path>, recursively removing the contents if "
14960 "its a directory. This is like the C<rm -rf> shell command."
14964 #: ../fish/guestfish-actions.pod:4080
14969 #: ../fish/guestfish-actions.pod:4082
14979 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6238
14980 msgid "Remove the single directory C<path>."
14984 #: ../fish/guestfish-actions.pod:4086
14985 msgid "rmmountpoint"
14986 msgstr "rmmountpoint"
14989 #: ../fish/guestfish-actions.pod:4088
14992 " rmmountpoint exemptpath\n"
14997 #: ../fish/guestfish-actions.pod:4090
14999 "This calls removes a mountpoint that was previously created with L</"
15000 "mkmountpoint>. See L</mkmountpoint> for full details."
15004 #: ../fish/guestfish-actions.pod:4094
15005 msgid "scrub-device"
15006 msgstr "scrub-device"
15009 #: ../fish/guestfish-actions.pod:4096
15012 " scrub-device device\n"
15015 " scrub-device пристрій\n"
15019 #: ../fish/guestfish-actions.pod:4098 ../src/guestfs-actions.pod:6264
15021 "This command writes patterns over C<device> to make data retrieval more "
15026 #: ../fish/guestfish-actions.pod:4101 ../fish/guestfish-actions.pod:4116
15027 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6267
15028 #: ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:6307
15030 "It is an interface to the L<scrub(1)> program. See that manual page for "
15035 #: ../fish/guestfish-actions.pod:4107
15037 msgstr "scrub-file"
15040 #: ../fish/guestfish-actions.pod:4109
15043 " scrub-file file\n"
15046 " scrub-file файл\n"
15050 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6283
15052 "This command writes patterns over a file to make data retrieval more "
15057 #: ../fish/guestfish-actions.pod:4114 ../src/guestfs-actions.pod:6286
15058 msgid "The file is I<removed> after scrubbing."
15062 #: ../fish/guestfish-actions.pod:4119
15063 msgid "scrub-freespace"
15064 msgstr "scrub-freespace"
15067 #: ../fish/guestfish-actions.pod:4121
15070 " scrub-freespace dir\n"
15073 " scrub-freespace каталог\n"
15077 #: ../fish/guestfish-actions.pod:4123
15079 "This command creates the directory C<dir> and then fills it with files until "
15080 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15081 "deletes them. The intention is to scrub any free space on the partition "
15082 "containing C<dir>."
15086 #: ../fish/guestfish-actions.pod:4132
15088 msgstr "set-append"
15091 #: ../fish/guestfish-actions.pod:4134
15096 #: ../fish/guestfish-actions.pod:4136
15099 " set-append append\n"
15104 #: ../fish/guestfish-actions.pod:4138 ../src/guestfs-actions.pod:6320
15106 "This function is used to add additional options to the guest kernel command "
15111 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6323
15113 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15114 "environment variable."
15118 #: ../fish/guestfish-actions.pod:4144 ../src/guestfs-actions.pod:6326
15120 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15121 "(libguestfs always adds a few of its own)."
15125 #: ../fish/guestfish-actions.pod:4147
15126 msgid "set-attach-method"
15127 msgstr "set-attach-method"
15130 #: ../fish/guestfish-actions.pod:4149
15131 msgid "attach-method"
15135 #: ../fish/guestfish-actions.pod:4151
15138 " set-attach-method attachmethod\n"
15143 #: ../fish/guestfish-actions.pod:4153 ../src/guestfs-actions.pod:6339
15145 "Set the method that libguestfs uses to connect to the back end guestfsd "
15146 "daemon. Possible methods are:"
15150 #: ../fish/guestfish-actions.pod:4158 ../src/guestfs-actions.pod:6344
15151 #: ../src/guestfs.pod:2901
15152 msgid "C<appliance>"
15153 msgstr "C<appliance>"
15156 #: ../fish/guestfish-actions.pod:4160 ../src/guestfs-actions.pod:6346
15158 "Launch an appliance and connect to it. This is the ordinary method and the "
15163 #: ../fish/guestfish-actions.pod:4163 ../src/guestfs-actions.pod:6349
15164 msgid "C<unix:I<path>>"
15165 msgstr "C<unix:I<шлях>>"
15168 #: ../fish/guestfish-actions.pod:4165 ../src/guestfs-actions.pod:6351
15169 msgid "Connect to the Unix domain socket I<path>."
15170 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
15173 #: ../fish/guestfish-actions.pod:4167 ../src/guestfs-actions.pod:6353
15175 "This method lets you connect to an existing daemon or (using virtio-serial) "
15176 "to a live guest. For more information, see L<guestfs(3)/ATTACHING TO "
15177 "RUNNING DAEMONS>."
15181 #: ../fish/guestfish-actions.pod:4173
15182 msgid "set-autosync"
15183 msgstr "set-autosync"
15186 #: ../fish/guestfish-actions.pod:4175
15191 #: ../fish/guestfish-actions.pod:4177
15194 " set-autosync true|false\n"
15197 " set-autosync true|false\n"
15201 #: ../fish/guestfish-actions.pod:4179 ../src/guestfs-actions.pod:6369
15203 "If C<autosync> is true, this enables autosync. Libguestfs will make a best "
15204 "effort attempt to make filesystems consistent and synchronized when the "
15205 "handle is closed (also if the program exits without closing handles)."
15209 #: ../fish/guestfish-actions.pod:4184 ../src/guestfs-actions.pod:6374
15211 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15212 "disabled by default)."
15216 #: ../fish/guestfish-actions.pod:4187
15218 msgstr "set-direct"
15221 #: ../fish/guestfish-actions.pod:4189
15226 #: ../fish/guestfish-actions.pod:4191
15229 " set-direct true|false\n"
15232 " set-direct true|false\n"
15236 #: ../fish/guestfish-actions.pod:4193 ../src/guestfs-actions.pod:6387
15238 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15239 "passed directly through to the appliance once it is launched."
15243 #: ../fish/guestfish-actions.pod:4197
15245 "One consequence of this is that log messages aren't caught by the library "
15246 "and handled by L</set-log-message-callback>, but go straight to stdout."
15250 #: ../fish/guestfish-actions.pod:4201 ../src/guestfs-actions.pod:6395
15251 msgid "You probably don't want to use this unless you know what you are doing."
15255 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6398
15256 msgid "The default is disabled."
15260 #: ../fish/guestfish-actions.pod:4206
15261 msgid "set-e2label"
15262 msgstr "set-e2label"
15265 #: ../fish/guestfish-actions.pod:4208
15268 " set-e2label device label\n"
15273 #: ../fish/guestfish-actions.pod:4210 ../src/guestfs-actions.pod:6411
15275 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15276 "C<label>. Filesystem labels are limited to 16 characters."
15280 #: ../fish/guestfish-actions.pod:4214
15282 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15283 "label on a filesystem."
15287 #: ../fish/guestfish-actions.pod:4217
15289 msgstr "set-e2uuid"
15292 #: ../fish/guestfish-actions.pod:4219
15295 " set-e2uuid device uuid\n"
15300 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6429
15302 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15303 "C<uuid>. The format of the UUID and alternatives such as C<clear>, "
15304 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15308 #: ../fish/guestfish-actions.pod:4226
15310 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15311 "UUID of a filesystem."
15315 #: ../fish/guestfish-actions.pod:4229
15316 msgid "set-memsize"
15317 msgstr "set-memsize"
15320 #: ../fish/guestfish-actions.pod:4231
15325 #: ../fish/guestfish-actions.pod:4233
15328 " set-memsize memsize\n"
15333 #: ../fish/guestfish-actions.pod:4235
15335 "This sets the memory size in megabytes allocated to the qemu subprocess. "
15336 "This only has any effect if called before L</launch>."
15340 #: ../fish/guestfish-actions.pod:4239 ../src/guestfs-actions.pod:6451
15342 "You can also change this by setting the environment variable "
15343 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15347 #: ../fish/guestfish-actions.pod:4246
15348 msgid "set-network"
15349 msgstr "set-network"
15352 #: ../fish/guestfish-actions.pod:4248
15357 #: ../fish/guestfish-actions.pod:4250
15360 " set-network true|false\n"
15363 " set-network true|false\n"
15367 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6468
15369 "If C<network> is true, then the network is enabled in the libguestfs "
15370 "appliance. The default is false."
15374 #: ../fish/guestfish-actions.pod:4255 ../src/guestfs-actions.pod:6471
15376 "This affects whether commands are able to access the network (see L<guestfs"
15377 "(3)/RUNNING COMMANDS>)."
15381 #: ../fish/guestfish-actions.pod:4258
15383 "You must call this before calling L</launch>, otherwise it has no effect."
15387 #: ../fish/guestfish-actions.pod:4261
15392 #: ../fish/guestfish-actions.pod:4265
15395 " set-path searchpath\n"
15400 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6487
15401 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15405 #: ../fish/guestfish-actions.pod:4269 ../src/guestfs-actions.pod:6489
15407 "The default is C<$libdir/guestfs> unless overridden by setting "
15408 "C<LIBGUESTFS_PATH> environment variable."
15412 #: ../fish/guestfish-actions.pod:4272 ../src/guestfs-actions.pod:6492
15413 msgid "Setting C<path> to C<NULL> restores the default path."
15417 #: ../fish/guestfish-actions.pod:4274
15422 #: ../fish/guestfish-actions.pod:4276
15427 #: ../fish/guestfish-actions.pod:4278
15430 " set-pgroup true|false\n"
15435 #: ../fish/guestfish-actions.pod:4280 ../src/guestfs-actions.pod:6504
15437 "If C<pgroup> is true, child processes are placed into their own process "
15442 #: ../fish/guestfish-actions.pod:4283 ../src/guestfs-actions.pod:6507
15444 "The practical upshot of this is that signals like C<SIGINT> (from users "
15445 "pressing C<^C>) won't be received by the child process."
15449 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6510
15451 "The default for this flag is false, because usually you want C<^C> to kill "
15456 #: ../fish/guestfish-actions.pod:4289
15461 #: ../fish/guestfish-actions.pod:4291
15466 #: ../fish/guestfish-actions.pod:4293
15476 #: ../fish/guestfish-actions.pod:4295 ../src/guestfs-actions.pod:6523
15477 msgid "Set the qemu binary that we will use."
15481 #: ../fish/guestfish-actions.pod:4297 ../src/guestfs-actions.pod:6525
15483 "The default is chosen when the library was compiled by the configure script."
15487 #: ../fish/guestfish-actions.pod:4300 ../src/guestfs-actions.pod:6528
15489 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15494 #: ../fish/guestfish-actions.pod:4303 ../src/guestfs-actions.pod:6531
15495 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15499 #: ../fish/guestfish-actions.pod:4305 ../src/guestfs-actions.pod:6533
15501 "Note that you should call this function as early as possible after creating "
15502 "the handle. This is because some pre-launch operations depend on testing "
15503 "qemu features (by running C<qemu -help>). If the qemu binary changes, we "
15504 "don't retest features, and so you might see inconsistent results. Using the "
15505 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15506 "the qemu binary at the same time as the handle is created."
15510 #: ../fish/guestfish-actions.pod:4313
15511 msgid "set-recovery-proc"
15512 msgstr "set-recovery-proc"
15515 #: ../fish/guestfish-actions.pod:4315
15516 msgid "recovery-proc"
15517 msgstr "recovery-proc"
15520 #: ../fish/guestfish-actions.pod:4317
15523 " set-recovery-proc true|false\n"
15526 " set-recovery-proc true|false\n"
15530 #: ../fish/guestfish-actions.pod:4319
15532 "If this is called with the parameter C<false> then L</launch> does not "
15533 "create a recovery process. The purpose of the recovery process is to stop "
15534 "runaway qemu processes in the case where the main program aborts abruptly."
15538 #: ../fish/guestfish-actions.pod:4324
15540 "This only has any effect if called before L</launch>, and the default is "
15545 #: ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:6559
15547 "About the only time when you would want to disable this is if the main "
15548 "process will fork itself into the background (\"daemonize\" itself). In "
15549 "this case the recovery process thinks that the main program has disappeared "
15550 "and so kills qemu, which is not very helpful."
15554 #: ../fish/guestfish-actions.pod:4333
15555 msgid "set-selinux"
15556 msgstr "set-selinux"
15559 #: ../fish/guestfish-actions.pod:4335
15564 #: ../fish/guestfish-actions.pod:4337
15567 " set-selinux true|false\n"
15570 " set-selinux true|false\n"
15574 #: ../fish/guestfish-actions.pod:4339 ../src/guestfs-actions.pod:6575
15576 "This sets the selinux flag that is passed to the appliance at boot time. "
15577 "The default is C<selinux=0> (disabled)."
15581 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6578
15583 "Note that if SELinux is enabled, it is always in Permissive mode "
15584 "(C<enforcing=0>)."
15588 #: ../fish/guestfish-actions.pod:4348
15593 #: ../fish/guestfish-actions.pod:4350
15598 #: ../fish/guestfish-actions.pod:4352
15606 #: ../fish/guestfish-actions.pod:4354 ../src/guestfs-actions.pod:6594
15608 "Change the number of virtual CPUs assigned to the appliance. The default is "
15609 "C<1>. Increasing this may improve performance, though often it has no "
15614 #: ../fish/guestfish-actions.pod:4358
15615 msgid "This function must be called before L</launch>."
15619 #: ../fish/guestfish-actions.pod:4360
15624 #: ../fish/guestfish-actions.pod:4362
15629 #: ../fish/guestfish-actions.pod:4364
15632 " set-trace true|false\n"
15635 " set-trace true|false\n"
15639 #: ../fish/guestfish-actions.pod:4366 ../src/guestfs-actions.pod:6610
15641 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15642 "return values are traced."
15646 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6613
15648 "If you want to trace C API calls into libguestfs (and other libraries) then "
15649 "possibly a better way is to use the external ltrace(1) command."
15653 #: ../fish/guestfish-actions.pod:4373 ../src/guestfs-actions.pod:6617
15655 "Command traces are disabled unless the environment variable "
15656 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15660 #: ../fish/guestfish-actions.pod:4376
15662 "Trace messages are normally sent to C<stderr>, unless you register a "
15663 "callback to send them somewhere else (see L</set-event-callback>)."
15667 #: ../fish/guestfish-actions.pod:4380
15668 msgid "set-verbose"
15669 msgstr "set-verbose"
15672 #: ../fish/guestfish-actions.pod:4382
15677 #: ../fish/guestfish-actions.pod:4384
15680 " set-verbose true|false\n"
15683 " set-verbose true|false\n"
15687 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6634
15688 msgid "If C<verbose> is true, this turns on verbose messages."
15692 #: ../fish/guestfish-actions.pod:4388 ../src/guestfs-actions.pod:6636
15694 "Verbose messages are disabled unless the environment variable "
15695 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15699 #: ../fish/guestfish-actions.pod:4391
15701 "Verbose messages are normally sent to C<stderr>, unless you register a "
15702 "callback to send them somewhere else (see L</set-event-callback>)."
15706 #: ../fish/guestfish-actions.pod:4395
15711 #: ../fish/guestfish-actions.pod:4397
15714 " setcon context\n"
15717 " setcon контекст\n"
15721 #: ../fish/guestfish-actions.pod:4399 ../src/guestfs-actions.pod:6653
15723 "This sets the SELinux security context of the daemon to the string "
15728 #: ../fish/guestfish-actions.pod:4402 ../src/guestfs-actions.pod:6656
15729 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15733 #: ../fish/guestfish-actions.pod:4404
15738 #: ../fish/guestfish-actions.pod:4406
15741 " setxattr xattr val vallen path\n"
15746 #: ../fish/guestfish-actions.pod:4408 ../src/guestfs-actions.pod:6671
15748 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15749 "the value C<val> (of length C<vallen>). The value is arbitrary 8 bit data."
15753 #: ../fish/guestfish-actions.pod:4412
15754 msgid "See also: L</lsetxattr>, L<attr(5)>."
15755 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
15758 #: ../fish/guestfish-actions.pod:4414
15763 #: ../fish/guestfish-actions.pod:4416
15766 " sfdisk device cyls heads sectors 'lines ...'\n"
15771 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6698
15773 "This is a direct interface to the L<sfdisk(8)> program for creating "
15774 "partitions on block devices."
15778 #: ../fish/guestfish-actions.pod:4421 ../src/guestfs-actions.pod:6701
15779 msgid "C<device> should be a block device, for example C</dev/sda>."
15783 #: ../fish/guestfish-actions.pod:4423 ../src/guestfs-actions.pod:6703
15785 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15786 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
15787 "H> and I<-S> parameters. If you pass C<0> for any of these, then the "
15788 "corresponding parameter is omitted. Usually for 'large' disks, you can just "
15789 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15790 "the kernel) cannot work out the right geometry and you will need to tell it."
15794 #: ../fish/guestfish-actions.pod:4431 ../src/guestfs-actions.pod:6711
15796 "C<lines> is a list of lines that we feed to C<sfdisk>. For more information "
15797 "refer to the L<sfdisk(8)> manpage."
15801 #: ../fish/guestfish-actions.pod:4434 ../src/guestfs-actions.pod:6714
15803 "To create a single partition occupying the whole disk, you would pass "
15804 "C<lines> as a single element list, when the single element being the string "
15809 #: ../fish/guestfish-actions.pod:4438
15810 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15811 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15814 #: ../fish/guestfish-actions.pod:4444 ../fish/guestfish-actions.pod:4467
15815 #: ../fish/guestfish-actions.pod:4489
15817 "I<This function is deprecated.> In new code, use the L</part_add> call "
15822 #: ../fish/guestfish-actions.pod:4451
15827 #: ../fish/guestfish-actions.pod:4453
15830 " sfdiskM device 'lines ...'\n"
15835 #: ../fish/guestfish-actions.pod:4455
15837 "This is a simplified interface to the L</sfdisk> command, where partition "
15838 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
15839 "you don't need to specify the cyls, heads and sectors parameters which were "
15840 "rarely if ever used anyway."
15844 #: ../fish/guestfish-actions.pod:4461
15845 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
15847 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
15850 #: ../fish/guestfish-actions.pod:4474
15855 #: ../fish/guestfish-actions.pod:4476
15858 " sfdisk-N device partnum cyls heads sectors line\n"
15863 #: ../fish/guestfish-actions.pod:4478 ../src/guestfs-actions.pod:6776
15865 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15866 "(note: C<n> counts from 1)."
15870 #: ../fish/guestfish-actions.pod:4481
15872 "For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
15873 "cyls/heads/sectors parameters."
15877 #: ../fish/guestfish-actions.pod:4484
15878 msgid "See also: L</part-add>"
15879 msgstr "Див. також L</part-add>"
15882 #: ../fish/guestfish-actions.pod:4496
15883 msgid "sfdisk-disk-geometry"
15884 msgstr "sfdisk-disk-geometry"
15887 #: ../fish/guestfish-actions.pod:4498
15890 " sfdisk-disk-geometry device\n"
15893 " sfdisk-disk-geometry пристрій\n"
15897 #: ../fish/guestfish-actions.pod:4500
15899 "This displays the disk geometry of C<device> read from the partition table. "
15900 "Especially in the case where the underlying block device has been resized, "
15901 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
15902 "kernel-geometry>)."
15906 #: ../fish/guestfish-actions.pod:4505 ../fish/guestfish-actions.pod:4514
15907 #: ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6818
15908 msgid "The result is in human-readable format, and not designed to be parsed."
15912 #: ../fish/guestfish-actions.pod:4508
15913 msgid "sfdisk-kernel-geometry"
15914 msgstr "sfdisk-kernel-geometry"
15917 #: ../fish/guestfish-actions.pod:4510
15920 " sfdisk-kernel-geometry device\n"
15923 " sfdisk-kernel-geometry пристрій\n"
15927 #: ../fish/guestfish-actions.pod:4512 ../src/guestfs-actions.pod:6816
15928 msgid "This displays the kernel's idea of the geometry of C<device>."
15932 #: ../fish/guestfish-actions.pod:4517
15937 #: ../fish/guestfish-actions.pod:4519
15940 " sfdisk-l device\n"
15943 " sfdisk-l пристрій\n"
15947 #: ../fish/guestfish-actions.pod:4521 ../src/guestfs-actions.pod:6839
15949 "This displays the partition table on C<device>, in the human-readable output "
15950 "of the L<sfdisk(8)> command. It is not intended to be parsed."
15954 #: ../fish/guestfish-actions.pod:4525
15955 msgid "See also: L</part-list>"
15956 msgstr "Див. також L</part-list>"
15959 #: ../fish/guestfish-actions.pod:4527
15961 "I<This function is deprecated.> In new code, use the L</part_list> call "
15966 #: ../fish/guestfish-actions.pod:4534
15971 #: ../fish/guestfish-actions.pod:4536
15981 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6856
15983 "This call runs a command from the guest filesystem via the guest's C</bin/"
15988 #: ../fish/guestfish-actions.pod:4541
15989 msgid "This is like L</command>, but passes the command to:"
15993 #: ../fish/guestfish-actions.pod:4543 ../src/guestfs-actions.pod:6861
15996 " /bin/sh -c \"command\"\n"
16001 #: ../fish/guestfish-actions.pod:4545 ../src/guestfs-actions.pod:6863
16003 "Depending on the guest's shell, this usually results in wildcards being "
16004 "expanded, shell expressions being interpolated and so on."
16008 #: ../fish/guestfish-actions.pod:4549
16009 msgid "All the provisos about L</command> apply to this call."
16013 #: ../fish/guestfish-actions.pod:4551
16018 #: ../fish/guestfish-actions.pod:4553
16021 " sh-lines command\n"
16024 " sh-lines команда\n"
16028 #: ../fish/guestfish-actions.pod:4555
16029 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16033 #: ../fish/guestfish-actions.pod:4558
16034 msgid "See also: L</command-lines>"
16035 msgstr "Див. також L</command-lines>"
16038 #: ../fish/guestfish-actions.pod:4560
16043 #: ../fish/guestfish-actions.pod:4562
16049 " sleep час_у_секундах\n"
16053 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6897
16054 msgid "Sleep for C<secs> seconds."
16058 #: ../fish/guestfish-actions.pod:4566
16063 #: ../fish/guestfish-actions.pod:4568
16073 #: ../fish/guestfish-actions.pod:4572 ../src/guestfs-actions.pod:6911
16074 msgid "This is the same as the C<stat(2)> system call."
16078 #: ../fish/guestfish-actions.pod:4574
16083 #: ../fish/guestfish-actions.pod:4576
16093 #: ../fish/guestfish-actions.pod:4578 ../src/guestfs-actions.pod:6925
16095 "Returns file system statistics for any mounted file system. C<path> should "
16096 "be a file or directory in the mounted file system (typically it is the mount "
16097 "point itself, but it doesn't need to be)."
16101 #: ../fish/guestfish-actions.pod:4582 ../src/guestfs-actions.pod:6929
16102 msgid "This is the same as the C<statvfs(2)> system call."
16106 #: ../fish/guestfish-actions.pod:4584
16111 #: ../fish/guestfish-actions.pod:4586
16121 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6943
16123 "This runs the L<strings(1)> command on a file and returns the list of "
16124 "printable strings found."
16128 #: ../fish/guestfish-actions.pod:4594
16133 #: ../fish/guestfish-actions.pod:4596
16136 " strings-e encoding path\n"
16139 " strings-e кодування шлях\n"
16143 #: ../fish/guestfish-actions.pod:4598
16145 "This is like the L</strings> command, but allows you to specify the encoding "
16146 "of strings that are looked for in the source file C<path>."
16150 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6966
16151 msgid "Allowed encodings are:"
16152 msgstr "Можливими кодуваннями є:"
16155 #: ../fish/guestfish-actions.pod:4606 ../src/guestfs-actions.pod:6970
16160 #: ../fish/guestfish-actions.pod:4608
16162 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16163 "ISO-8859-X (this is what L</strings> uses)."
16167 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6975
16172 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6977
16173 msgid "Single 8-bit-byte characters."
16174 msgstr "Окремі 8-бітові-байтові символи."
16177 #: ../fish/guestfish-actions.pod:4615 ../src/guestfs-actions.pod:6979
16182 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6981
16183 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16187 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:6984
16188 msgid "l (lower case letter L)"
16192 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6986
16194 "16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
16195 "examining binaries in Windows guests."
16199 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:6989
16204 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:6991
16205 msgid "32-bit big endian such as UCS-4BE."
16209 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:6993
16214 #: ../fish/guestfish-actions.pod:4631 ../src/guestfs-actions.pod:6995
16215 msgid "32-bit little endian such as UCS-4LE."
16219 #: ../fish/guestfish-actions.pod:4635 ../src/guestfs-actions.pod:6999
16220 msgid "The returned strings are transcoded to UTF-8."
16224 #: ../fish/guestfish-actions.pod:4640
16225 msgid "swapoff-device"
16226 msgstr "swapoff-device"
16229 #: ../fish/guestfish-actions.pod:4642
16232 " swapoff-device device\n"
16235 " swapoff-device пристрій\n"
16239 #: ../fish/guestfish-actions.pod:4644
16241 "This command disables the libguestfs appliance swap device or partition "
16242 "named C<device>. See L</swapon-device>."
16246 #: ../fish/guestfish-actions.pod:4648
16247 msgid "swapoff-file"
16248 msgstr "swapoff-file"
16251 #: ../fish/guestfish-actions.pod:4650
16254 " swapoff-file file\n"
16257 " swapoff-file файл\n"
16261 #: ../fish/guestfish-actions.pod:4652 ../src/guestfs-actions.pod:7030
16262 msgid "This command disables the libguestfs appliance swap on file."
16266 #: ../fish/guestfish-actions.pod:4654
16267 msgid "swapoff-label"
16268 msgstr "swapoff-label"
16271 #: ../fish/guestfish-actions.pod:4656
16274 " swapoff-label label\n"
16277 " swapoff-label мітка\n"
16281 #: ../fish/guestfish-actions.pod:4658 ../src/guestfs-actions.pod:7042
16283 "This command disables the libguestfs appliance swap on labeled swap "
16288 #: ../fish/guestfish-actions.pod:4661
16289 msgid "swapoff-uuid"
16290 msgstr "swapoff-uuid"
16293 #: ../fish/guestfish-actions.pod:4663
16296 " swapoff-uuid uuid\n"
16299 " swapoff-uuid uuid\n"
16303 #: ../fish/guestfish-actions.pod:4665 ../src/guestfs-actions.pod:7055
16305 "This command disables the libguestfs appliance swap partition with the given "
16310 #: ../fish/guestfish-actions.pod:4668
16311 msgid "swapon-device"
16312 msgstr "swapon-device"
16315 #: ../fish/guestfish-actions.pod:4670
16318 " swapon-device device\n"
16321 " swapon-device пристрій\n"
16325 #: ../fish/guestfish-actions.pod:4672
16327 "This command enables the libguestfs appliance to use the swap device or "
16328 "partition named C<device>. The increased memory is made available for all "
16329 "commands, for example those run using L</command> or L</sh>."
16333 #: ../fish/guestfish-actions.pod:4677 ../src/guestfs-actions.pod:7073
16335 "Note that you should not swap to existing guest swap partitions unless you "
16336 "know what you are doing. They may contain hibernation information, or other "
16337 "information that the guest doesn't want you to trash. You also risk leaking "
16338 "information about the host to the guest this way. Instead, attach a new "
16339 "host device to the guest and swap on that."
16343 #: ../fish/guestfish-actions.pod:4684
16344 msgid "swapon-file"
16345 msgstr "swapon-file"
16348 #: ../fish/guestfish-actions.pod:4686
16351 " swapon-file file\n"
16354 " swapon-file файл\n"
16358 #: ../fish/guestfish-actions.pod:4688
16360 "This command enables swap to a file. See L</swapon-device> for other notes."
16364 #: ../fish/guestfish-actions.pod:4691
16365 msgid "swapon-label"
16366 msgstr "swapon-label"
16369 #: ../fish/guestfish-actions.pod:4693
16372 " swapon-label label\n"
16375 " swapon-label мітка\n"
16379 #: ../fish/guestfish-actions.pod:4695
16381 "This command enables swap to a labeled swap partition. See L</swapon-"
16382 "device> for other notes."
16386 #: ../fish/guestfish-actions.pod:4698
16387 msgid "swapon-uuid"
16388 msgstr "swapon-uuid"
16391 #: ../fish/guestfish-actions.pod:4700
16394 " swapon-uuid uuid\n"
16397 " swapon-uuid uuid\n"
16401 #: ../fish/guestfish-actions.pod:4702
16403 "This command enables swap to a swap partition with the given UUID. See L</"
16404 "swapon-device> for other notes."
16408 #: ../fish/guestfish-actions.pod:4705
16413 #: ../fish/guestfish-actions.pod:4707
16423 #: ../fish/guestfish-actions.pod:4709 ../src/guestfs-actions.pod:7128
16425 "This syncs the disk, so that any writes are flushed through to the "
16426 "underlying disk image."
16430 #: ../fish/guestfish-actions.pod:4712 ../src/guestfs-actions.pod:7131
16432 "You should always call this if you have modified a disk image, before "
16433 "closing the handle."
16437 #: ../fish/guestfish-actions.pod:4715
16442 #: ../fish/guestfish-actions.pod:4717
16452 #: ../fish/guestfish-actions.pod:4719 ../src/guestfs-actions.pod:7144
16454 "This command returns up to the last 10 lines of a file as a list of strings."
16458 #: ../fish/guestfish-actions.pod:4725
16463 #: ../fish/guestfish-actions.pod:4727
16466 " tail-n nrlines path\n"
16471 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7163
16473 "If the parameter C<nrlines> is a positive number, this returns the last "
16474 "C<nrlines> lines of the file C<path>."
16478 #: ../fish/guestfish-actions.pod:4732 ../src/guestfs-actions.pod:7166
16480 "If the parameter C<nrlines> is a negative number, this returns lines from "
16481 "the file C<path>, starting with the C<-nrlines>th line."
16485 #: ../fish/guestfish-actions.pod:4740
16490 #: ../fish/guestfish-actions.pod:4742
16493 " tar-in (tarfile|-) directory\n"
16496 " tar-in (файл_tar|-) каталог\n"
16500 #: ../fish/guestfish-actions.pod:4744 ../src/guestfs-actions.pod:7187
16502 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16503 "tar file) into C<directory>."
16507 #: ../fish/guestfish-actions.pod:4747
16508 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16512 #: ../fish/guestfish-actions.pod:4752
16517 #: ../fish/guestfish-actions.pod:4754
16520 " tar-out directory (tarfile|-)\n"
16523 " tar-out каталог (файл tar|-)\n"
16527 #: ../fish/guestfish-actions.pod:4756 ../src/guestfs-actions.pod:7204
16529 "This command packs the contents of C<directory> and downloads it to local "
16534 #: ../fish/guestfish-actions.pod:4759
16535 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16539 #: ../fish/guestfish-actions.pod:4764
16544 #: ../fish/guestfish-actions.pod:4766
16547 " tgz-in (tarball|-) directory\n"
16550 " tgz-in (архів tar|-) каталог\n"
16554 #: ../fish/guestfish-actions.pod:4768 ../src/guestfs-actions.pod:7221
16556 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16557 "tar file) into C<directory>."
16561 #: ../fish/guestfish-actions.pod:4771
16562 msgid "To upload an uncompressed tarball, use L</tar-in>."
16566 #: ../fish/guestfish-actions.pod:4775
16571 #: ../fish/guestfish-actions.pod:4777
16574 " tgz-out directory (tarball|-)\n"
16577 " tgz-out каталог (архів tar|-)\n"
16581 #: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7237
16583 "This command packs the contents of C<directory> and downloads it to local "
16588 #: ../fish/guestfish-actions.pod:4782
16589 msgid "To download an uncompressed tarball, use L</tar-out>."
16593 #: ../fish/guestfish-actions.pod:4786
16598 #: ../fish/guestfish-actions.pod:4788
16608 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7252
16610 "Touch acts like the L<touch(1)> command. It can be used to update the "
16611 "timestamps on a file, or, if the file does not exist, to create a new zero-"
16616 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7256
16618 "This command only works on regular files, and will fail on other file types "
16619 "such as directories, symbolic links, block special etc."
16623 #: ../fish/guestfish-actions.pod:4797
16628 #: ../fish/guestfish-actions.pod:4799
16638 #: ../fish/guestfish-actions.pod:4801 ../src/guestfs-actions.pod:7269
16640 "This command truncates C<path> to a zero-length file. The file must exist "
16645 #: ../fish/guestfish-actions.pod:4804
16646 msgid "truncate-size"
16647 msgstr "truncate-size"
16650 #: ../fish/guestfish-actions.pod:4806
16653 " truncate-size path size\n"
16656 " truncate-size шлях розмір\n"
16660 #: ../fish/guestfish-actions.pod:4808 ../src/guestfs-actions.pod:7283
16662 "This command truncates C<path> to size C<size> bytes. The file must exist "
16667 #: ../fish/guestfish-actions.pod:4811
16669 "If the current file size is less than C<size> then the file is extended to "
16670 "the required size with zero bytes. This creates a sparse file (ie. disk "
16671 "blocks are not allocated for the file until you write to it). To create a "
16672 "non-sparse file of zeroes, use L</fallocate64> instead."
16676 #: ../fish/guestfish-actions.pod:4817
16681 #: ../fish/guestfish-actions.pod:4819
16684 " tune2fs-l device\n"
16687 " tune2fs-l пристрій\n"
16691 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7302
16693 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16698 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7305
16700 "It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage "
16701 "for more details. The list of fields returned isn't clearly defined, and "
16702 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16703 "and the filesystem itself."
16707 #: ../fish/guestfish-actions.pod:4829
16712 #: ../fish/guestfish-actions.pod:4831
16715 " txz-in (tarball|-) directory\n"
16718 " txz-in (архів tar|-) каталог\n"
16722 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7325
16724 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16725 "tar file) into C<directory>."
16729 #: ../fish/guestfish-actions.pod:4838
16734 #: ../fish/guestfish-actions.pod:4840
16737 " txz-out directory (tarball|-)\n"
16740 " txz-out каталог (архів tar|-)\n"
16744 #: ../fish/guestfish-actions.pod:4842 ../src/guestfs-actions.pod:7339
16746 "This command packs the contents of C<directory> and downloads it to local "
16747 "file C<tarball> (as an xz compressed tar archive)."
16751 #: ../fish/guestfish-actions.pod:4847
16756 #: ../fish/guestfish-actions.pod:4849
16766 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7352
16768 "This function sets the mask used for creating new files and device nodes to "
16773 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7355
16775 "Typical umask values would be C<022> which creates new files with "
16776 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16777 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16781 #: ../fish/guestfish-actions.pod:4859 ../src/guestfs-actions.pod:7360
16783 "The default umask is C<022>. This is important because it means that "
16784 "directories and device nodes will be created with C<0644> or C<0755> mode "
16785 "even if you specify C<0777>."
16789 #: ../fish/guestfish-actions.pod:4863
16790 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16791 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16794 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7367
16795 msgid "This call returns the previous umask."
16799 #: ../fish/guestfish-actions.pod:4868
16804 #: ../fish/guestfish-actions.pod:4870
16809 #: ../fish/guestfish-actions.pod:4872
16812 " umount pathordevice\n"
16815 " umount шлях_або_пристрій\n"
16819 #: ../fish/guestfish-actions.pod:4874 ../src/guestfs-actions.pod:7379
16821 "This unmounts the given filesystem. The filesystem may be specified either "
16822 "by its mountpoint (path) or the device which contains the filesystem."
16826 #: ../fish/guestfish-actions.pod:4878
16828 msgstr "umount-all"
16831 #: ../fish/guestfish-actions.pod:4880
16832 msgid "unmount-all"
16833 msgstr "unmount-all"
16836 #: ../fish/guestfish-actions.pod:4882
16846 #: ../fish/guestfish-actions.pod:4884 ../src/guestfs-actions.pod:7392
16847 msgid "This unmounts all mounted filesystems."
16851 #: ../fish/guestfish-actions.pod:4886 ../src/guestfs-actions.pod:7394
16852 msgid "Some internal mounts are not unmounted by this call."
16856 #: ../fish/guestfish-actions.pod:4888
16861 #: ../fish/guestfish-actions.pod:4890
16864 " upload (filename|-) remotefilename\n"
16867 " upload (назва_файла|-) назва_віддаленого_файла\n"
16871 #: ../fish/guestfish-actions.pod:4892 ../fish/guestfish-actions.pod:4905
16872 #: ../src/guestfs-actions.pod:7407 ../src/guestfs-actions.pod:7431
16873 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
16877 #: ../fish/guestfish-actions.pod:4897
16878 msgid "See also L</download>."
16879 msgstr "Див. також L</download>."
16882 #: ../fish/guestfish-actions.pod:4901
16883 msgid "upload-offset"
16884 msgstr "upload-offset"
16887 #: ../fish/guestfish-actions.pod:4903
16890 " upload-offset (filename|-) remotefilename offset\n"
16893 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
16897 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7434
16899 "C<remotefilename> is overwritten starting at the byte C<offset> specified. "
16900 "The intention is to overwrite parts of existing files or devices, although "
16901 "if a non-existant file is specified then it is created with a \"hole\" "
16902 "before C<offset>. The size of the data written is implicit in the size of "
16903 "the source C<filename>."
16907 #: ../fish/guestfish-actions.pod:4915
16909 "Note that there is no limit on the amount of data that can be uploaded with "
16910 "this call, unlike with L</pwrite>, and this call always writes the full "
16911 "amount unless an error occurs."
16915 #: ../fish/guestfish-actions.pod:4920
16916 msgid "See also L</upload>, L</pwrite>."
16917 msgstr "Див. також L</upload>, L</pwrite>."
16920 #: ../fish/guestfish-actions.pod:4924
16925 #: ../fish/guestfish-actions.pod:4926
16928 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
16933 #: ../fish/guestfish-actions.pod:4928 ../src/guestfs-actions.pod:7467
16934 msgid "This command sets the timestamps of a file with nanosecond precision."
16938 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7470
16940 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
16945 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7473
16947 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
16948 "nanoseconds from the epoch."
16952 #: ../fish/guestfish-actions.pod:4937 ../src/guestfs-actions.pod:7476
16954 "If the C<*nsecs> field contains the special value C<-1> then the "
16955 "corresponding timestamp is set to the current time. (The C<*secs> field is "
16956 "ignored in this case)."
16960 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7480
16962 "If the C<*nsecs> field contains the special value C<-2> then the "
16963 "corresponding timestamp is left unchanged. (The C<*secs> field is ignored "
16968 #: ../fish/guestfish-actions.pod:4945
16973 #: ../fish/guestfish-actions.pod:4947
16983 #: ../fish/guestfish-actions.pod:4949 ../src/guestfs-actions.pod:7493
16985 "Return the libguestfs version number that the program is linked against."
16989 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7496
16991 "Note that because of dynamic linking this is not necessarily the version of "
16992 "libguestfs that you compiled against. You can compile the program, and then "
16993 "at runtime dynamically link against a completely different C<libguestfs.so> "
16998 #: ../fish/guestfish-actions.pod:4957 ../src/guestfs-actions.pod:7501
17000 "This call was added in version C<1.0.58>. In previous versions of "
17001 "libguestfs there was no way to get the version number. From C code you can "
17002 "use dynamic linker functions to find out if this symbol exists (if it "
17003 "doesn't, then it's an earlier version)."
17007 #: ../fish/guestfish-actions.pod:4963 ../src/guestfs-actions.pod:7507
17009 "The call returns a structure with four elements. The first three (C<major>, "
17010 "C<minor> and C<release>) are numbers and correspond to the usual version "
17011 "triplet. The fourth element (C<extra>) is a string and is normally empty, "
17012 "but may be used for distro-specific information."
17016 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7513
17018 "To construct the original version string: C<$major.$minor.$release$extra>"
17022 #: ../fish/guestfish-actions.pod:4972 ../src/guestfs-actions.pod:7516
17023 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17024 msgstr "Див також: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17027 #: ../fish/guestfish-actions.pod:4974
17029 "I<Note:> Don't use this call to test for availability of features. In "
17030 "enterprise distributions we backport features from later versions into "
17031 "earlier versions, making this an unreliable way to test for features. Use "
17032 "L</available> instead."
17036 #: ../fish/guestfish-actions.pod:4980
17041 #: ../fish/guestfish-actions.pod:4982
17044 " vfs-label device\n"
17047 " vfs-label пристрій\n"
17051 #: ../fish/guestfish-actions.pod:4984 ../src/guestfs-actions.pod:7536
17052 msgid "This returns the filesystem label of the filesystem on C<device>."
17056 #: ../fish/guestfish-actions.pod:4987 ../src/guestfs-actions.pod:7539
17057 msgid "If the filesystem is unlabeled, this returns the empty string."
17061 #: ../fish/guestfish-actions.pod:4989
17062 msgid "To find a filesystem from the label, use L</findfs-label>."
17066 #: ../fish/guestfish-actions.pod:4991
17071 #: ../fish/guestfish-actions.pod:4993
17074 " vfs-type device\n"
17077 " vfs-type пристрій\n"
17081 #: ../fish/guestfish-actions.pod:4995 ../src/guestfs-actions.pod:7554
17083 "This command gets the filesystem type corresponding to the filesystem on "
17088 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7557
17090 "For most filesystems, the result is the name of the Linux VFS module which "
17091 "would be used to mount this filesystem if you mounted it without specifying "
17092 "the filesystem type. For example a string such as C<ext3> or C<ntfs>."
17096 #: ../fish/guestfish-actions.pod:5003
17101 #: ../fish/guestfish-actions.pod:5005
17104 " vfs-uuid device\n"
17107 " vfs-uuid пристрій\n"
17111 #: ../fish/guestfish-actions.pod:5007 ../src/guestfs-actions.pod:7573
17112 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17116 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7576
17117 msgid "If the filesystem does not have a UUID, this returns the empty string."
17121 #: ../fish/guestfish-actions.pod:5012
17122 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17126 #: ../fish/guestfish-actions.pod:5014
17127 msgid "vg-activate"
17128 msgstr "vg-activate"
17131 #: ../fish/guestfish-actions.pod:5016
17134 " vg-activate true|false 'volgroups ...'\n"
17139 #: ../fish/guestfish-actions.pod:5018 ../src/guestfs-actions.pod:7592
17141 "This command activates or (if C<activate> is false) deactivates all logical "
17142 "volumes in the listed volume groups C<volgroups>."
17146 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7595
17147 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17151 #: ../fish/guestfish-actions.pod:5023 ../src/guestfs-actions.pod:7597
17153 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17154 "activated or deactivated."
17158 #: ../fish/guestfish-actions.pod:5026
17159 msgid "vg-activate-all"
17160 msgstr "vg-activate-all"
17163 #: ../fish/guestfish-actions.pod:5028
17166 " vg-activate-all true|false\n"
17169 " vg-activate-all true|false\n"
17173 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7610
17175 "This command activates or (if C<activate> is false) deactivates all logical "
17176 "volumes in all volume groups."
17180 #: ../fish/guestfish-actions.pod:5033 ../src/guestfs-actions.pod:7613
17181 msgid "This command is the same as running C<vgchange -a y|n>"
17185 #: ../fish/guestfish-actions.pod:5035
17190 #: ../fish/guestfish-actions.pod:5037
17193 " vgcreate volgroup 'physvols ...'\n"
17198 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7626
17200 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17201 "of physical volumes C<physvols>."
17205 #: ../fish/guestfish-actions.pod:5042
17210 #: ../fish/guestfish-actions.pod:5044
17213 " vglvuuids vgname\n"
17218 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7639
17220 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17221 "volumes created in this volume group."
17225 #: ../fish/guestfish-actions.pod:5049
17227 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17228 "logical volumes and volume groups."
17232 #: ../fish/guestfish-actions.pod:5052
17233 msgid "See also L</vgpvuuids>."
17234 msgstr "Див. також L</vgpvuuids>."
17237 #: ../fish/guestfish-actions.pod:5054
17242 #: ../fish/guestfish-actions.pod:5056
17245 " vgpvuuids vgname\n"
17250 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7659
17252 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17253 "volumes that this volume group resides on."
17257 #: ../fish/guestfish-actions.pod:5061
17259 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17260 "physical volumes and volume groups."
17264 #: ../fish/guestfish-actions.pod:5064
17265 msgid "See also L</vglvuuids>."
17266 msgstr "Див. також L</vglvuuids>."
17269 #: ../fish/guestfish-actions.pod:5066
17274 #: ../fish/guestfish-actions.pod:5068
17277 " vgremove vgname\n"
17282 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7679
17283 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17287 #: ../fish/guestfish-actions.pod:5072 ../src/guestfs-actions.pod:7681
17289 "This also forcibly removes all logical volumes in the volume group (if any)."
17293 #: ../fish/guestfish-actions.pod:5075
17298 #: ../fish/guestfish-actions.pod:5077
17301 " vgrename volgroup newvolgroup\n"
17306 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7695
17307 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17311 #: ../fish/guestfish-actions.pod:5081
17316 #: ../fish/guestfish-actions.pod:5083
17326 #: ../fish/guestfish-actions.pod:5085 ../src/guestfs-actions.pod:7706
17328 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
17333 #: ../fish/guestfish-actions.pod:5088 ../src/guestfs-actions.pod:7709
17335 "This returns a list of just the volume group names that were detected (eg. "
17340 #: ../fish/guestfish-actions.pod:5091
17341 msgid "See also L</vgs-full>."
17342 msgstr "Див. також L</vgs-full>."
17345 #: ../fish/guestfish-actions.pod:5093
17350 #: ../fish/guestfish-actions.pod:5095
17360 #: ../fish/guestfish-actions.pod:5097 ../src/guestfs-actions.pod:7725
17362 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
17363 "> command. The \"full\" version includes all fields."
17367 #: ../fish/guestfish-actions.pod:5100
17372 #: ../fish/guestfish-actions.pod:5102
17382 #: ../fish/guestfish-actions.pod:5104 ../src/guestfs-actions.pod:7739
17384 "This rescans all block devices and rebuilds the list of LVM physical "
17385 "volumes, volume groups and logical volumes."
17389 #: ../fish/guestfish-actions.pod:5107
17394 #: ../fish/guestfish-actions.pod:5109
17402 #: ../fish/guestfish-actions.pod:5111 ../src/guestfs-actions.pod:7752
17403 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17407 #: ../fish/guestfish-actions.pod:5113
17412 #: ../fish/guestfish-actions.pod:5115
17422 #: ../fish/guestfish-actions.pod:5117 ../src/guestfs-actions.pod:7792
17424 "This command counts the characters in a file, using the C<wc -c> external "
17429 #: ../fish/guestfish-actions.pod:5120
17434 #: ../fish/guestfish-actions.pod:5122
17444 #: ../fish/guestfish-actions.pod:5124 ../src/guestfs-actions.pod:7805
17446 "This command counts the lines in a file, using the C<wc -l> external command."
17450 #: ../fish/guestfish-actions.pod:5127
17455 #: ../fish/guestfish-actions.pod:5129
17465 #: ../fish/guestfish-actions.pod:5131 ../src/guestfs-actions.pod:7818
17467 "This command counts the words in a file, using the C<wc -w> external command."
17471 #: ../fish/guestfish-actions.pod:5134
17476 #: ../fish/guestfish-actions.pod:5136
17479 " write path content\n"
17482 " write шлях дані\n"
17486 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7833
17488 "This call creates a file called C<path>. The content of the file is the "
17489 "string C<content> (which can contain any 8 bit data)."
17493 #: ../fish/guestfish-actions.pod:5141
17494 msgid "See also L</write-append>."
17495 msgstr "Див. також L</write-append>."
17498 #: ../fish/guestfish-actions.pod:5146
17499 msgid "write-append"
17503 #: ../fish/guestfish-actions.pod:5148
17506 " write-append path content\n"
17511 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7853
17513 "This call appends C<content> to the end of file C<path>. If C<path> does "
17514 "not exist, then a new file is created."
17518 #: ../fish/guestfish-actions.pod:5153
17519 msgid "See also L</write>."
17520 msgstr "Див. також L</write>."
17523 #: ../fish/guestfish-actions.pod:5158
17525 msgstr "write-file"
17528 #: ../fish/guestfish-actions.pod:5160
17531 " write-file path content size\n"
17536 #: ../fish/guestfish-actions.pod:5162 ../src/guestfs-actions.pod:7880
17538 "This call creates a file called C<path>. The contents of the file is the "
17539 "string C<content> (which can contain any 8 bit data), with length C<size>."
17543 #: ../fish/guestfish-actions.pod:5166 ../src/guestfs-actions.pod:7884
17545 "As a special case, if C<size> is C<0> then the length is calculated using "
17546 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17550 #: ../fish/guestfish-actions.pod:5170 ../src/guestfs-actions.pod:7888
17552 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17553 "I<not> work, even if the length is specified."
17557 #: ../fish/guestfish-actions.pod:5176
17559 "I<This function is deprecated.> In new code, use the L</write> call instead."
17563 #: ../fish/guestfish-actions.pod:5183
17568 #: ../fish/guestfish-actions.pod:5185
17571 " zegrep regex path\n"
17574 " zegrep формальний_вираз шлях\n"
17578 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7905
17580 "This calls the external C<zegrep> program and returns the matching lines."
17584 #: ../fish/guestfish-actions.pod:5193
17589 #: ../fish/guestfish-actions.pod:5195
17592 " zegrepi regex path\n"
17597 #: ../fish/guestfish-actions.pod:5197 ../src/guestfs-actions.pod:7924
17599 "This calls the external C<zegrep -i> program and returns the matching lines."
17603 #: ../fish/guestfish-actions.pod:5203
17608 #: ../fish/guestfish-actions.pod:5205
17618 #: ../fish/guestfish-actions.pod:5207 ../src/guestfs-actions.pod:7942
17619 msgid "This command writes zeroes over the first few blocks of C<device>."
17623 #: ../fish/guestfish-actions.pod:5209 ../src/guestfs-actions.pod:7944
17625 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17626 "securely wipe the device). It should be sufficient to remove any partition "
17627 "tables, filesystem superblocks and so on."
17631 #: ../fish/guestfish-actions.pod:5213 ../fish/guestfish-actions.pod:5228
17632 #: ../src/guestfs-actions.pod:7948 ../src/guestfs-actions.pod:7974
17634 "If blocks are already zero, then this command avoids writing zeroes. This "
17635 "prevents the underlying device from becoming non-sparse or growing "
17640 #: ../fish/guestfish-actions.pod:5217
17641 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17645 #: ../fish/guestfish-actions.pod:5220
17646 msgid "zero-device"
17647 msgstr "zero-device"
17650 #: ../fish/guestfish-actions.pod:5222
17653 " zero-device device\n"
17656 " zero-device пристрій\n"
17660 #: ../fish/guestfish-actions.pod:5224
17662 "This command writes zeroes over the entire C<device>. Compare with L</zero> "
17663 "which just zeroes the first few blocks of a device."
17667 #: ../fish/guestfish-actions.pod:5235
17672 #: ../fish/guestfish-actions.pod:5237
17675 " zerofree device\n"
17678 " zerofree пристрій\n"
17682 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:7996
17684 "This runs the I<zerofree> program on C<device>. This program claims to zero "
17685 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17686 "possible to compress the filesystem more effectively."
17690 #: ../fish/guestfish-actions.pod:5244 ../src/guestfs-actions.pod:8001
17691 msgid "You should B<not> run this program if the filesystem is mounted."
17695 #: ../fish/guestfish-actions.pod:5247 ../src/guestfs-actions.pod:8004
17697 "It is possible that using this program can damage the filesystem or data on "
17702 #: ../fish/guestfish-actions.pod:5250
17707 #: ../fish/guestfish-actions.pod:5252
17710 " zfgrep pattern path\n"
17713 " zfgrep шаблон шлях\n"
17717 #: ../fish/guestfish-actions.pod:5254 ../src/guestfs-actions.pod:8018
17719 "This calls the external C<zfgrep> program and returns the matching lines."
17723 #: ../fish/guestfish-actions.pod:5260
17728 #: ../fish/guestfish-actions.pod:5262
17731 " zfgrepi pattern path\n"
17734 " zfgrepi шаблон шлях\n"
17738 #: ../fish/guestfish-actions.pod:5264 ../src/guestfs-actions.pod:8037
17740 "This calls the external C<zfgrep -i> program and returns the matching lines."
17744 #: ../fish/guestfish-actions.pod:5270
17749 #: ../fish/guestfish-actions.pod:5272
17752 " zfile meth path\n"
17755 " zfile метод шлях\n"
17759 #: ../fish/guestfish-actions.pod:5274 ../src/guestfs-actions.pod:8063
17761 "This command runs C<file> after first decompressing C<path> using C<method>."
17765 #: ../fish/guestfish-actions.pod:5277 ../src/guestfs-actions.pod:8066
17766 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17770 #: ../fish/guestfish-actions.pod:5279
17772 "Since 1.0.63, use L</file> instead which can now process compressed files."
17776 #: ../fish/guestfish-actions.pod:5282
17778 "I<This function is deprecated.> In new code, use the L</file> call instead."
17782 #: ../fish/guestfish-actions.pod:5289
17787 #: ../fish/guestfish-actions.pod:5291
17790 " zgrep regex path\n"
17793 " zgrep формальний_вираз шлях\n"
17797 #: ../fish/guestfish-actions.pod:5293 ../src/guestfs-actions.pod:8083
17799 "This calls the external C<zgrep> program and returns the matching lines."
17803 #: ../fish/guestfish-actions.pod:5299
17808 #: ../fish/guestfish-actions.pod:5301
17811 " zgrepi regex path\n"
17814 " zgrepi формальний_вираз шлях\n"
17818 #: ../fish/guestfish-actions.pod:5303 ../src/guestfs-actions.pod:8102
17820 "This calls the external C<zgrep -i> program and returns the matching lines."
17824 #: ../fish/guestfish-commands.pod:1
17829 #: ../fish/guestfish-commands.pod:3
17834 #: ../fish/guestfish-commands.pod:5
17837 " alloc filename size\n"
17842 #: ../fish/guestfish-commands.pod:7
17844 "This creates an empty (zeroed) file of the given size, and then adds so it "
17845 "can be further examined."
17849 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
17850 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
17854 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
17855 msgid "Size can be specified using standard suffixes, eg. C<1M>."
17859 #: ../fish/guestfish-commands.pod:14
17861 "To create a sparse file, use L</sparse> instead. To create a prepared disk "
17862 "image, see L</PREPARED DISK IMAGES>."
17866 #: ../fish/guestfish-commands.pod:17
17871 #: ../fish/guestfish-commands.pod:19
17874 " copy-in local [local ...] /remotedir\n"
17879 #: ../fish/guestfish-commands.pod:21
17881 "C<copy-in> copies local files or directories recursively into the disk "
17882 "image, placing them in the directory called C</remotedir> (which must "
17883 "exist). This guestfish meta-command turns into a sequence of L</tar-in> and "
17884 "other commands as necessary."
17888 #: ../fish/guestfish-commands.pod:26
17890 "Multiple local files and directories can be specified, but the last "
17891 "parameter must always be a remote directory. Wildcards cannot be used."
17895 #: ../fish/guestfish-commands.pod:30
17900 #: ../fish/guestfish-commands.pod:32
17903 " copy-out remote [remote ...] localdir\n"
17908 #: ../fish/guestfish-commands.pod:34
17910 "C<copy-out> copies remote files or directories recursively out of the disk "
17911 "image, placing them on the host disk in a local directory called C<localdir> "
17912 "(which must exist). This guestfish meta-command turns into a sequence of L</"
17913 "download>, L</tar-out> and other commands as necessary."
17917 #: ../fish/guestfish-commands.pod:40
17919 "Multiple remote files and directories can be specified, but the last "
17920 "parameter must always be a local directory. To download to the current "
17921 "directory, use C<.> as in:"
17925 #: ../fish/guestfish-commands.pod:44
17928 " copy-out /home .\n"
17931 " copy-out /home .\n"
17935 #: ../fish/guestfish-commands.pod:46
17937 "Wildcards cannot be used in the ordinary command, but you can use them with "
17938 "the help of L</glob> like this:"
17942 #: ../fish/guestfish-commands.pod:49
17945 " glob copy-out /home/* .\n"
17948 " glob copy-out /home/* .\n"
17952 #: ../fish/guestfish-commands.pod:51
17957 #: ../fish/guestfish-commands.pod:53
17960 " display filename\n"
17965 #: ../fish/guestfish-commands.pod:55
17967 "Use C<display> (a graphical display program) to display an image file. It "
17968 "downloads the file, and runs C<display> on it."
17972 #: ../fish/guestfish-commands.pod:58
17974 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
17975 "environment variable. For example to use the GNOME display program:"
17979 #: ../fish/guestfish-commands.pod:61
17982 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
17987 #: ../fish/guestfish-commands.pod:63
17988 msgid "See also L<display(1)>."
17989 msgstr "Див. також L<display(1)>."
17992 #: ../fish/guestfish-commands.pod:65
17997 #: ../fish/guestfish-commands.pod:67
18000 " echo [params ...]\n"
18003 " echo [параметри...]\n"
18007 #: ../fish/guestfish-commands.pod:69
18008 msgid "This echos the parameters to the terminal."
18012 #: ../fish/guestfish-commands.pod:71
18017 #: ../fish/guestfish-commands.pod:73
18022 #: ../fish/guestfish-commands.pod:75
18027 #: ../fish/guestfish-commands.pod:77
18033 " edit назва_файла\n"
18037 #: ../fish/guestfish-commands.pod:79
18039 "This is used to edit a file. It downloads the file, edits it locally using "
18040 "your editor, then uploads the result."
18044 #: ../fish/guestfish-commands.pod:82
18046 "The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
18047 "or C<emacs> you will get those corresponding editors."
18051 #: ../fish/guestfish-commands.pod:86
18056 #: ../fish/guestfish-commands.pod:88
18059 " glob command args...\n"
18062 " glob команда параметри...\n"
18066 #: ../fish/guestfish-commands.pod:90
18068 "Expand wildcards in any paths in the args list, and run C<command> "
18069 "repeatedly on each matching path."
18073 #: ../fish/guestfish-commands.pod:93
18074 msgid "See L</WILDCARDS AND GLOBBING>."
18075 msgstr "Див. L</WILDCARDS AND GLOBBING>."
18078 #: ../fish/guestfish-commands.pod:95
18083 #: ../fish/guestfish-commands.pod:97
18086 " hexedit <filename|device>\n"
18087 " hexedit <filename|device> <max>\n"
18088 " hexedit <filename|device> <start> <max>\n"
18093 #: ../fish/guestfish-commands.pod:101
18095 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18100 #: ../fish/guestfish-commands.pod:104
18102 "This command works by downloading potentially the whole file or device, "
18103 "editing it locally, then uploading it. If the file or device is large, you "
18104 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18105 "C<max> parameters. C<start> and C<max> are specified in bytes, with the "
18106 "usual modifiers allowed such as C<1M> (1 megabyte)."
18110 #: ../fish/guestfish-commands.pod:111
18111 msgid "For example to edit the first few sectors of a disk you might do:"
18115 #: ../fish/guestfish-commands.pod:114
18118 " hexedit /dev/sda 1M\n"
18121 " hexedit /dev/sda 1M\n"
18125 #: ../fish/guestfish-commands.pod:116
18127 "which would allow you to edit anywhere within the first megabyte of the disk."
18131 #: ../fish/guestfish-commands.pod:119
18132 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18136 #: ../fish/guestfish-commands.pod:121
18139 " hexedit /dev/sda1 0x400 0x400\n"
18142 " hexedit /dev/sda1 0x400 0x400\n"
18146 #: ../fish/guestfish-commands.pod:123
18147 msgid "(assuming the superblock is in the standard location)."
18151 #: ../fish/guestfish-commands.pod:125
18153 "This command requires the external L<hexedit(1)> program. You can specify "
18154 "another program to use by setting the C<HEXEDITOR> environment variable."
18158 #: ../fish/guestfish-commands.pod:129
18159 msgid "See also L</hexdump>."
18160 msgstr "Див. також L</hexdump>."
18163 #: ../fish/guestfish-commands.pod:131
18168 #: ../fish/guestfish-commands.pod:133
18176 #: ../fish/guestfish-commands.pod:135
18178 "Change the local directory, ie. the current directory of guestfish itself."
18182 #: ../fish/guestfish-commands.pod:138
18183 msgid "Note that C<!cd> won't do what you might expect."
18187 #: ../fish/guestfish-commands.pod:140
18192 #: ../fish/guestfish-commands.pod:142
18197 #: ../fish/guestfish-commands.pod:144
18207 #: ../fish/guestfish-commands.pod:146
18208 msgid "Opens the manual page for guestfish."
18212 #: ../fish/guestfish-commands.pod:148
18217 #: ../fish/guestfish-commands.pod:150
18222 #: ../fish/guestfish-commands.pod:152
18230 #: ../fish/guestfish-commands.pod:154
18238 #: ../fish/guestfish-commands.pod:156
18239 msgid "This is used to view a file."
18243 #: ../fish/guestfish-commands.pod:158
18245 "The default viewer is C<$PAGER>. However if you use the alternate command "
18246 "C<less> you will get the C<less> command specifically."
18250 #: ../fish/guestfish-commands.pod:161
18255 #: ../fish/guestfish-commands.pod:163
18263 #: ../fish/guestfish-commands.pod:165
18265 "Close and reopen the libguestfs handle. It is not necessary to use this "
18266 "normally, because the handle is closed properly when guestfish exits. "
18267 "However this is occasionally useful for testing."
18271 #: ../fish/guestfish-commands.pod:169
18276 #: ../fish/guestfish-commands.pod:171
18279 " setenv VAR value\n"
18284 #: ../fish/guestfish-commands.pod:173
18285 msgid "Set the environment variable C<VAR> to the string C<value>."
18289 #: ../fish/guestfish-commands.pod:175
18291 "To print the value of an environment variable use a shell command such as:"
18295 #: ../fish/guestfish-commands.pod:178
18303 #: ../fish/guestfish-commands.pod:180
18308 #: ../fish/guestfish-commands.pod:182
18311 " sparse filename size\n"
18316 #: ../fish/guestfish-commands.pod:184
18318 "This creates an empty sparse file of the given size, and then adds so it can "
18319 "be further examined."
18323 #: ../fish/guestfish-commands.pod:187
18325 "In all respects it works the same as the L</alloc> command, except that the "
18326 "image file is allocated sparsely, which means that disk blocks are not "
18327 "assigned to the file until they are needed. Sparse disk files only use "
18328 "space when written to, but they are slower and there is a danger you could "
18329 "run out of real disk space during a write operation."
18333 #: ../fish/guestfish-commands.pod:197
18338 #: ../fish/guestfish-commands.pod:199
18348 #: ../fish/guestfish-commands.pod:201
18350 "This command returns a list of the optional groups known to the daemon, and "
18351 "indicates which ones are supported by this build of the libguestfs appliance."
18355 #: ../fish/guestfish-commands.pod:205
18356 msgid "See also L<guestfs(3)/AVAILABILITY>."
18357 msgstr "Див. також L<guestfs(3)/AVAILABILITY>."
18360 #: ../fish/guestfish-commands.pod:207
18365 #: ../fish/guestfish-commands.pod:209
18368 " time command args...\n"
18373 #: ../fish/guestfish-commands.pod:211
18375 "Run the command as usual, but print the elapsed time afterwards. This can "
18376 "be useful for benchmarking operations."
18380 #: ../fish/guestfish-commands.pod:214
18385 #: ../fish/guestfish-commands.pod:216
18393 #: ../fish/guestfish-commands.pod:218
18394 msgid "Remove C<VAR> from the environment."
18398 #: ../fish/guestfish.pod:5
18399 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18403 #: ../fish/guestfish.pod:9
18406 " guestfish [--options] [commands]\n"
18411 #: ../fish/guestfish.pod:11
18419 #: ../fish/guestfish.pod:13
18422 " guestfish [--ro|--rw] -a disk.img\n"
18427 #: ../fish/guestfish.pod:15
18430 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18435 #: ../fish/guestfish.pod:17
18438 " guestfish -d libvirt-domain\n"
18443 #: ../fish/guestfish.pod:19
18446 " guestfish [--ro|--rw] -a disk.img -i\n"
18451 #: ../fish/guestfish.pod:21
18454 " guestfish -d libvirt-domain -i\n"
18459 #: ../fish/guestfish.pod:25
18461 "Using guestfish in read/write mode on live virtual machines can be "
18462 "dangerous, potentially causing disk corruption. Use the I<--ro> (read-only) "
18463 "option to use guestfish safely if the disk image or virtual machine might be "
18468 #: ../fish/guestfish.pod:32
18470 "Guestfish is a shell and command-line tool for examining and modifying "
18471 "virtual machine filesystems. It uses libguestfs and exposes all of the "
18472 "functionality of the guestfs API, see L<guestfs(3)>."
18476 #: ../fish/guestfish.pod:36
18478 "Guestfish gives you structured access to the libguestfs API, from shell "
18479 "scripts or the command line or interactively. If you want to rescue a "
18480 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18485 #: ../fish/guestfish.pod:43
18486 msgid "As an interactive shell"
18490 #: ../fish/guestfish.pod:45
18498 #: ../fish/guestfish.pod:47
18501 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18502 " editing virtual machine filesystems.\n"
18507 #: ../fish/guestfish.pod:50
18510 " Type: 'help' for a list of commands\n"
18511 " 'man' to read the manual\n"
18512 " 'quit' to quit the shell\n"
18517 #: ../fish/guestfish.pod:54
18520 " ><fs> add-ro disk.img\n"
18522 " ><fs> list-filesystems\n"
18523 " /dev/sda1: ext4\n"
18524 " /dev/vg_guest/lv_root: ext4\n"
18525 " /dev/vg_guest/lv_swap: swap\n"
18526 " ><fs> mount /dev/vg_guest/lv_root /\n"
18527 " ><fs> cat /etc/fstab\n"
18529 " # Created by anaconda\n"
18536 #: ../fish/guestfish.pod:67
18537 msgid "From shell scripts"
18541 #: ../fish/guestfish.pod:69
18542 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18546 #: ../fish/guestfish.pod:71
18549 " guestfish <<_EOF_\n"
18552 " mount /dev/vg_guest/lv_root /\n"
18553 " write /etc/motd \"Welcome, new users\"\n"
18559 #: ../fish/guestfish.pod:78
18560 msgid "List the LVM logical volumes in a disk image:"
18564 #: ../fish/guestfish.pod:80
18567 " guestfish -a disk.img --ro <<_EOF_\n"
18575 #: ../fish/guestfish.pod:85
18576 msgid "List all the filesystems in a disk image:"
18580 #: ../fish/guestfish.pod:87
18583 " guestfish -a disk.img --ro <<_EOF_\n"
18585 " list-filesystems\n"
18591 #: ../fish/guestfish.pod:92
18592 msgid "On one command line"
18596 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18597 msgid "Update C</etc/resolv.conf> in a guest:"
18601 #: ../fish/guestfish.pod:96
18605 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18606 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18611 #: ../fish/guestfish.pod:100
18612 msgid "Edit C</boot/grub/grub.conf> interactively:"
18616 #: ../fish/guestfish.pod:102
18619 " guestfish --rw --add disk.img \\\n"
18620 " --mount /dev/vg_guest/lv_root \\\n"
18621 " --mount /dev/sda1:/boot \\\n"
18622 " edit /boot/grub/grub.conf\n"
18627 #: ../fish/guestfish.pod:107
18628 msgid "Mount disks automatically"
18632 #: ../fish/guestfish.pod:109
18634 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
18638 #: ../fish/guestfish.pod:112
18641 " guestfish --ro -a disk.img -i cat /etc/group\n"
18646 #: ../fish/guestfish.pod:114
18649 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18654 #: ../fish/guestfish.pod:116
18655 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18659 #: ../fish/guestfish.pod:118
18662 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18667 #: ../fish/guestfish.pod:120
18668 msgid "As a script interpreter"
18672 #: ../fish/guestfish.pod:122
18673 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18677 #: ../fish/guestfish.pod:124
18680 " #!/usr/bin/guestfish -f\n"
18681 " sparse test1.img 100M\n"
18683 " part-disk /dev/sda mbr\n"
18684 " mkfs ext2 /dev/sda1\n"
18689 #: ../fish/guestfish.pod:130
18690 msgid "Start with a prepared disk"
18694 #: ../fish/guestfish.pod:132
18696 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18697 "single ext2-formatted partition:"
18701 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2228
18704 " guestfish -N fs\n"
18709 #: ../fish/guestfish.pod:137
18710 msgid "To list what is available do:"
18714 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18717 " guestfish -N help | less\n"
18722 #: ../fish/guestfish.pod:141
18723 msgid "Remote control"
18724 msgstr "Дистанційне керування"
18727 #: ../fish/guestfish.pod:143
18730 " eval \"`guestfish --listen`\"\n"
18731 " guestfish --remote add-ro disk.img\n"
18732 " guestfish --remote run\n"
18733 " guestfish --remote lvs\n"
18736 " eval \"`guestfish --listen`\"\n"
18737 " guestfish --remote add-ro disk.img\n"
18738 " guestfish --remote run\n"
18739 " guestfish --remote lvs\n"
18743 #: ../fish/guestfish.pod:154
18744 msgid "Displays general help on options."
18748 #: ../fish/guestfish.pod:158
18749 msgid "B<--cmd-help>"
18750 msgstr "B<--cmd-help>"
18753 #: ../fish/guestfish.pod:160
18754 msgid "Lists all available guestfish commands."
18758 #: ../fish/guestfish.pod:162
18760 msgstr "B<-h команда>"
18763 #: ../fish/guestfish.pod:164
18764 msgid "B<--cmd-help cmd>"
18765 msgstr "B<--cmd-help команда>"
18768 #: ../fish/guestfish.pod:166
18769 msgid "Displays detailed help on a single command C<cmd>."
18773 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
18774 msgid "B<-a image>"
18775 msgstr "B<-a образ>"
18778 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
18779 msgid "B<--add image>"
18780 msgstr "B<--add образ>"
18783 #: ../fish/guestfish.pod:172
18784 msgid "Add a block device or virtual machine image to the shell."
18788 #: ../fish/guestfish.pod:177
18790 "Using this flag is mostly equivalent to using the C<add> command, with "
18791 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18792 "the I<--format=...> flag was given."
18796 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
18798 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18799 "URI to use. The default is to use the default libvirt connection."
18803 #: ../fish/guestfish.pod:189
18808 #: ../fish/guestfish.pod:191
18810 "If using the I<--listen> option and a csh-like shell, use this option. See "
18811 "section L</REMOTE CONTROL AND CSH> below."
18815 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
18816 msgid "B<-d libvirt-domain>"
18817 msgstr "B<-d домен-libvirt>"
18820 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
18821 msgid "B<--domain libvirt-domain>"
18822 msgstr "B<--domain домен-libvirt>"
18825 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
18827 "Add disks from the named libvirt domain. If the I<--ro> option is also "
18828 "used, then any libvirt domain can be used. However in write mode, only "
18829 "libvirt domains which are shut down can be named here."
18833 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
18834 msgid "Domain UUIDs can be used instead of names."
18838 #: ../fish/guestfish.pod:204
18840 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18841 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18842 "if the I<--format:...> flag was given."
18846 #: ../fish/guestfish.pod:208
18851 #: ../fish/guestfish.pod:210
18852 msgid "B<--no-dest-paths>"
18853 msgstr "B<--no-dest-paths>"
18856 #: ../fish/guestfish.pod:212
18858 "Don't tab-complete paths on the guest filesystem. It is useful to be able "
18859 "to hit the tab key to complete paths on the guest filesystem, but this "
18860 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18861 "allow this feature to be disabled."
18865 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
18867 "When prompting for keys and passphrases, guestfish normally turns echoing "
18868 "off so you cannot see what you are typing. If you are not worried about "
18869 "Tempest attacks and there is no one else in the room you can specify this "
18870 "flag to see what you are typing."
18874 #: ../fish/guestfish.pod:224
18876 msgstr "B<-f файл>"
18879 #: ../fish/guestfish.pod:226
18880 msgid "B<--file file>"
18881 msgstr "B<--file файл>"
18884 #: ../fish/guestfish.pod:228
18885 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
18889 #: ../fish/guestfish.pod:231
18892 " #!/usr/bin/guestfish -f\n"
18895 " #!/usr/bin/guestfish -f\n"
18899 #: ../fish/guestfish.pod:244
18902 " guestfish --format=raw -a disk.img\n"
18905 " guestfish --format=raw -a disk.img\n"
18909 #: ../fish/guestfish.pod:248
18912 " guestfish --format=raw -a disk.img --format -a another.img\n"
18915 " guestfish --format=raw -a disk.img --format -a another.img\n"
18919 #: ../fish/guestfish.pod:253
18921 "If you have untrusted raw-format guest disk images, you should use this "
18922 "option to specify the disk format. This avoids a possible security problem "
18923 "with malicious guests (CVE-2010-3851). See also L</add-drive-opts>."
18927 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
18928 msgid "B<--inspector>"
18929 msgstr "B<--inspector>"
18932 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
18934 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
18935 "system and mount filesystems as they would be mounted on the real virtual "
18940 #: ../fish/guestfish.pod:266
18941 msgid "Typical usage is either:"
18945 #: ../fish/guestfish.pod:268
18948 " guestfish -d myguest -i\n"
18951 " guestfish -d myguest -i\n"
18955 #: ../fish/guestfish.pod:270
18956 msgid "(for an inactive libvirt domain called I<myguest>), or:"
18960 #: ../fish/guestfish.pod:272
18963 " guestfish --ro -d myguest -i\n"
18966 " guestfish --ro -d myguest -i\n"
18970 #: ../fish/guestfish.pod:274
18971 msgid "(for active domains, readonly), or specify the block device directly:"
18975 #: ../fish/guestfish.pod:276
18978 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18981 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18985 #: ../fish/guestfish.pod:278
18987 "Note that the command line syntax changed slightly over older versions of "
18988 "guestfish. You can still use the old syntax:"
18992 #: ../fish/guestfish.pod:281
18995 " guestfish [--ro] -i disk.img\n"
18998 " guestfish [--ro] -i disk.img\n"
19002 #: ../fish/guestfish.pod:283
19005 " guestfish [--ro] -i libvirt-domain\n"
19010 #: ../fish/guestfish.pod:285
19012 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19013 "then using other commands to mount the filesystems that were found."
19017 #: ../fish/guestfish.pod:294
19018 msgid "B<--listen>"
19019 msgstr "B<--listen>"
19022 #: ../fish/guestfish.pod:296
19024 "Fork into the background and listen for remote commands. See section L</"
19025 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19029 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19034 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19036 "Connect to a live virtual machine. (Experimental, see L<guestfs(3)/"
19037 "ATTACHING TO RUNNING DAEMONS>)."
19041 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19042 msgid "B<-m dev[:mountpoint[:options]]>"
19043 msgstr "B<-m пристрій[:точка_монтування[:параметри]]>"
19046 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19047 msgid "B<--mount dev[:mountpoint[:options]]>"
19048 msgstr "B<--mount пристрій[:точка_монтування[:параметри]]>"
19051 #: ../fish/guestfish.pod:308
19052 msgid "Mount the named partition or logical volume on the given mountpoint."
19056 #: ../fish/guestfish.pod:310
19057 msgid "If the mountpoint is omitted, it defaults to C</>."
19061 #: ../fish/guestfish.pod:312
19062 msgid "You have to mount something on C</> before most commands will work."
19066 #: ../fish/guestfish.pod:314
19068 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19073 #: ../fish/guestfish.pod:317
19075 "If you don't know what filesystems a disk image contains, you can either run "
19076 "guestfish without this option, then list the partitions, filesystems and LVs "
19077 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19078 "commands), or you can use the L<virt-filesystems(1)> program."
19082 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19084 "The third (and rarely used) part of the mount parameter is the list of mount "
19085 "options used to mount the underlying filesystem. If this is not given, then "
19086 "the mount options are either the empty string or C<ro> (the latter if the "
19087 "I<--ro> flag is used). By specifying the mount options, you override this "
19088 "default choice. Probably the only time you would use this is to enable ACLs "
19089 "and/or extended attributes if the filesystem can support them:"
19093 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19096 " -m /dev/sda1:/:acl,user_xattr\n"
19101 #: ../fish/guestfish.pod:333
19102 msgid "Using this flag is equivalent to using the C<mount-options> command."
19106 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
19107 #: ../resize/virt-resize.pod:414
19112 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19113 msgid "B<--no-sync>"
19114 msgstr "B<--no-sync>"
19117 #: ../fish/guestfish.pod:339
19119 "Disable autosync. This is enabled by default. See the discussion of "
19120 "autosync in the L<guestfs(3)> manpage."
19124 #: ../fish/guestfish.pod:342
19129 #: ../fish/guestfish.pod:344
19130 msgid "B<--new type>"
19131 msgstr "B<--new тип>"
19134 #: ../fish/guestfish.pod:346
19136 msgstr "B<-N help>"
19139 #: ../fish/guestfish.pod:348
19141 "Prepare a fresh disk image formatted as \"type\". This is an alternative to "
19142 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19143 "preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
19148 #: ../fish/guestfish.pod:353
19149 msgid "B<--progress-bars>"
19150 msgstr "B<--progress-bars>"
19153 #: ../fish/guestfish.pod:355
19154 msgid "Enable progress bars, even when guestfish is used non-interactively."
19158 #: ../fish/guestfish.pod:357
19160 "Progress bars are enabled by default when guestfish is used as an "
19161 "interactive shell."
19165 #: ../fish/guestfish.pod:360
19166 msgid "B<--no-progress-bars>"
19167 msgstr "B<--no-progress-bars>"
19170 #: ../fish/guestfish.pod:362
19171 msgid "Disable progress bars."
19175 #: ../fish/guestfish.pod:364
19176 msgid "B<--remote[=pid]>"
19177 msgstr "B<--remote[=pid]>"
19180 #: ../fish/guestfish.pod:366
19182 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
19183 "CONTROL GUESTFISH OVER A SOCKET> below."
19187 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
19188 #: ../rescue/virt-rescue.pod:161
19193 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
19194 #: ../rescue/virt-rescue.pod:163
19199 #: ../fish/guestfish.pod:373
19201 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19202 "mounts are done read-only."
19206 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
19208 "The option must always be used if the disk image or virtual machine might be "
19209 "running, and is generally recommended in cases where you don't need write "
19210 "access to the disk."
19214 #: ../fish/guestfish.pod:380
19216 "Note that prepared disk images created with I<-N> are not affected by this "
19217 "option. Also commands like C<add> are not affected - you have to specify "
19218 "the C<readonly:true> option explicitly if you need it."
19222 #: ../fish/guestfish.pod:384
19223 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19227 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
19228 #: ../rescue/virt-rescue.pod:173
19229 msgid "B<--selinux>"
19230 msgstr "B<--selinux>"
19233 #: ../fish/guestfish.pod:388
19234 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
19238 #: ../fish/guestfish.pod:394
19240 "Enable very verbose messages. This is particularly useful if you find a bug."
19244 #: ../fish/guestfish.pod:401
19245 msgid "Display the guestfish / libguestfs version number and exit."
19249 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
19250 #: ../rescue/virt-rescue.pod:194
19255 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
19256 #: ../rescue/virt-rescue.pod:196
19261 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19263 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19264 "mounts are done read-write."
19268 #: ../fish/guestfish.pod:410
19269 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19273 #: ../fish/guestfish.pod:414
19274 msgid "Echo each command before executing it."
19278 #: ../fish/guestfish.pod:418
19279 msgid "COMMANDS ON COMMAND LINE"
19283 #: ../fish/guestfish.pod:420
19285 "Any additional (non-option) arguments are treated as commands to execute."
19289 #: ../fish/guestfish.pod:423
19291 "Commands to execute should be separated by a colon (C<:>), where the colon "
19292 "is a separate parameter. Thus:"
19296 #: ../fish/guestfish.pod:426
19299 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19304 #: ../fish/guestfish.pod:428
19306 "If there are no additional arguments, then we enter a shell, either an "
19307 "interactive shell with a prompt (if the input is a terminal) or a non-"
19308 "interactive shell."
19312 #: ../fish/guestfish.pod:432
19314 "In either command line mode or non-interactive shell, the first command that "
19315 "gives an error causes the whole shell to exit. In interactive mode (with a "
19316 "prompt) if a command fails, you can continue to enter commands."
19320 #: ../fish/guestfish.pod:437
19321 msgid "USING launch (OR run)"
19325 #: ../fish/guestfish.pod:439
19327 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19328 "then launch it, then mount any disks you need, and finally issue actions/"
19329 "commands. So the general order of the day is:"
19333 #: ../fish/guestfish.pod:447
19334 msgid "add or -a/--add"
19338 #: ../fish/guestfish.pod:451
19339 msgid "launch (aka run)"
19343 #: ../fish/guestfish.pod:455
19344 msgid "mount or -m/--mount"
19348 #: ../fish/guestfish.pod:459
19349 msgid "any other commands"
19353 #: ../fish/guestfish.pod:463
19355 "C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
19356 "guest before mounting or performing any other commands."
19360 #: ../fish/guestfish.pod:466
19362 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19363 "I<--new> options were given then C<run> is done automatically, simply "
19364 "because guestfish can't perform the action you asked for without doing this."
19368 #: ../fish/guestfish.pod:471
19369 msgid "OPENING DISKS FOR READ AND WRITE"
19373 #: ../fish/guestfish.pod:473
19375 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19376 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19377 "I<-i> and I<-m> open disk images read-only or for writing."
19381 #: ../fish/guestfish.pod:478
19383 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19384 "opening disk images supplied on the command line for write. To open a disk "
19385 "image read-only you have to do I<-a image --ro>."
19389 #: ../fish/guestfish.pod:482
19391 "This matters: If you accidentally open a live VM disk image writable then "
19392 "you will cause irreversible disk corruption."
19396 #: ../fish/guestfish.pod:485
19398 "In a future libguestfs we intend to change the default the other way. Disk "
19399 "images will be opened read-only. You will have to either specify "
19400 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19401 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19402 "access for disk images specified by those other command line options."
19406 #: ../fish/guestfish.pod:492
19408 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19409 "which does nothing (it is already the default). However it is highly "
19410 "recommended that you use this option to indicate that you need write access, "
19411 "and prepare your scripts for the day when this option will be required for "
19416 #: ../fish/guestfish.pod:498
19418 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19419 "other libguestfs program apart from guestfish and guestmount."
19423 #: ../fish/guestfish.pod:501
19428 #: ../fish/guestfish.pod:503
19430 "You can quote ordinary parameters using either single or double quotes. For "
19435 #: ../fish/guestfish.pod:506
19438 " add \"file with a space.img\"\n"
19443 #: ../fish/guestfish.pod:508
19446 " rm '/file name'\n"
19451 #: ../fish/guestfish.pod:510
19459 #: ../fish/guestfish.pod:512
19461 "A few commands require a list of strings to be passed. For these, use a "
19462 "whitespace-separated list, enclosed in quotes. Strings containing "
19463 "whitespace to be passed through must be enclosed in single quotes. A "
19464 "literal single quote must be escaped with a backslash."
19468 #: ../fish/guestfish.pod:517
19471 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19472 " command \"/bin/echo 'foo bar'\"\n"
19473 " command \"/bin/echo \\'foo\\'\"\n"
19478 #: ../fish/guestfish.pod:521
19479 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19483 #: ../fish/guestfish.pod:523
19485 "In double-quoted arguments (only) use backslash to insert special characters:"
19489 #: ../fish/guestfish.pod:528
19494 #: ../fish/guestfish.pod:530
19495 msgid "Alert (bell) character."
19496 msgstr "Символ гудка (дзвінка)."
19499 #: ../fish/guestfish.pod:532
19504 #: ../fish/guestfish.pod:534
19505 msgid "Backspace character."
19509 #: ../fish/guestfish.pod:536
19514 #: ../fish/guestfish.pod:538
19515 msgid "Form feed character."
19519 #: ../fish/guestfish.pod:540
19524 #: ../fish/guestfish.pod:542
19525 msgid "Newline character."
19529 #: ../fish/guestfish.pod:544
19534 #: ../fish/guestfish.pod:546
19535 msgid "Carriage return character."
19536 msgstr "Символ повернення каретки."
19539 #: ../fish/guestfish.pod:548
19544 #: ../fish/guestfish.pod:550
19545 msgid "Horizontal tab character."
19546 msgstr "Символ горизонтальної табуляції"
19549 #: ../fish/guestfish.pod:552
19554 #: ../fish/guestfish.pod:554
19555 msgid "Vertical tab character."
19556 msgstr "Символ вертикальної табуляції."
19559 #: ../fish/guestfish.pod:556
19564 #: ../fish/guestfish.pod:558
19565 msgid "A literal double quote character."
19569 #: ../fish/guestfish.pod:560
19574 #: ../fish/guestfish.pod:562
19576 "A character with octal value I<ooo>. There must be precisely 3 octal digits "
19581 #: ../fish/guestfish.pod:565
19586 #: ../fish/guestfish.pod:567
19588 "A character with hex value I<hh>. There must be precisely 2 hex digits."
19592 #: ../fish/guestfish.pod:570
19594 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19599 #: ../fish/guestfish.pod:573
19604 #: ../fish/guestfish.pod:575
19605 msgid "A literal backslash character."
19609 #: ../fish/guestfish.pod:579
19610 msgid "OPTIONAL ARGUMENTS"
19614 #: ../fish/guestfish.pod:581
19616 "Some commands take optional arguments. These arguments appear in this "
19617 "documentation as C<[argname:..]>. You can use them as in these examples:"
19621 #: ../fish/guestfish.pod:585
19624 " add-drive-opts filename\n"
19629 #: ../fish/guestfish.pod:587
19632 " add-drive-opts filename readonly:true\n"
19637 #: ../fish/guestfish.pod:589
19640 " add-drive-opts filename format:qcow2 readonly:false\n"
19645 #: ../fish/guestfish.pod:591
19647 "Each optional argument can appear at most once. All optional arguments must "
19648 "appear after the required ones."
19652 #: ../fish/guestfish.pod:594
19657 #: ../fish/guestfish.pod:596
19659 "This section applies to all commands which can take integers as parameters."
19663 #: ../fish/guestfish.pod:599
19664 msgid "SIZE SUFFIX"
19668 #: ../fish/guestfish.pod:601
19670 "When the command takes a parameter measured in bytes, you can use one of the "
19671 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19675 #: ../fish/guestfish.pod:607
19676 msgid "B<k> or B<K> or B<KiB>"
19677 msgstr "B<k>, B<K> або B<KiB>"
19680 #: ../fish/guestfish.pod:609
19681 msgid "The size in kilobytes (multiplied by 1024)."
19682 msgstr "Розмір у кілобайтах (у одному кілобайті 1024 байтів)."
19685 #: ../fish/guestfish.pod:611
19690 #: ../fish/guestfish.pod:613
19691 msgid "The size in SI 1000 byte units."
19692 msgstr "Розмір у одиницях СІ: 1000 байтів."
19695 #: ../fish/guestfish.pod:615
19696 msgid "B<M> or B<MiB>"
19697 msgstr "B<M> або B<MiB>"
19700 #: ../fish/guestfish.pod:617
19701 msgid "The size in megabytes (multiplied by 1048576)."
19702 msgstr "Розмір у мегабайтах (у одному мегабайті 1048576 байтів)."
19705 #: ../fish/guestfish.pod:619
19710 #: ../fish/guestfish.pod:621
19711 msgid "The size in SI 1000000 byte units."
19712 msgstr "Розмір у одиницях СІ: 1000000 байтів."
19715 #: ../fish/guestfish.pod:623
19716 msgid "B<G> or B<GiB>"
19717 msgstr "B<G> або B<GiB>"
19720 #: ../fish/guestfish.pod:625
19721 msgid "The size in gigabytes (multiplied by 2**30)."
19722 msgstr "Розмір у гігабайтах (з множником 2**30)."
19725 #: ../fish/guestfish.pod:627
19730 #: ../fish/guestfish.pod:629
19731 msgid "The size in SI 10**9 byte units."
19732 msgstr "Розмір у одиницях СІ: 10**9 байтів."
19735 #: ../fish/guestfish.pod:631
19736 msgid "B<T> or B<TiB>"
19737 msgstr "B<T> або B<TiB>"
19740 #: ../fish/guestfish.pod:633
19741 msgid "The size in terabytes (multiplied by 2**40)."
19742 msgstr "Розмір у терабайтах (з множником 2**40)."
19745 #: ../fish/guestfish.pod:635
19750 #: ../fish/guestfish.pod:637
19751 msgid "The size in SI 10**12 byte units."
19752 msgstr "Розмір у одиницях СІ: 10**12 байтів."
19755 #: ../fish/guestfish.pod:639
19756 msgid "B<P> or B<PiB>"
19757 msgstr "B<P> або B<PiB>"
19760 #: ../fish/guestfish.pod:641
19761 msgid "The size in petabytes (multiplied by 2**50)."
19762 msgstr "Розмір у петабайтах (у одному петабайті 2**50 байтів)."
19765 #: ../fish/guestfish.pod:643
19770 #: ../fish/guestfish.pod:645
19771 msgid "The size in SI 10**15 byte units."
19772 msgstr "Розмір у одиницях СІ: 10**15 байтів."
19775 #: ../fish/guestfish.pod:647
19776 msgid "B<E> or B<EiB>"
19777 msgstr "B<E> або B<EiB>"
19780 #: ../fish/guestfish.pod:649
19781 msgid "The size in exabytes (multiplied by 2**60)."
19782 msgstr "Розмір у ексабайтах (у одному ексабайті 2**60 байтів)."
19785 #: ../fish/guestfish.pod:651
19790 #: ../fish/guestfish.pod:653
19791 msgid "The size in SI 10**18 byte units."
19792 msgstr "Розмір у одиницях СІ: 10**18 байтів."
19795 #: ../fish/guestfish.pod:655
19796 msgid "B<Z> or B<ZiB>"
19797 msgstr "B<Z> або B<ZiB>"
19800 #: ../fish/guestfish.pod:657
19801 msgid "The size in zettabytes (multiplied by 2**70)."
19802 msgstr "Розмір у зетабайтах (у одному зетабайті 2**70 байтів)."
19805 #: ../fish/guestfish.pod:659
19810 #: ../fish/guestfish.pod:661
19811 msgid "The size in SI 10**21 byte units."
19812 msgstr "Розмір у одиницях СІ: 10**21 байтів."
19815 #: ../fish/guestfish.pod:663
19816 msgid "B<Y> or B<YiB>"
19817 msgstr "B<Y> або B<YiB>"
19820 #: ../fish/guestfish.pod:665
19821 msgid "The size in yottabytes (multiplied by 2**80)."
19822 msgstr "Розмір у йотабайтах (у одному йотабайті 2**80 байтів)."
19825 #: ../fish/guestfish.pod:667
19830 #: ../fish/guestfish.pod:669
19831 msgid "The size in SI 10**24 byte units."
19832 msgstr "Розмір у одиницях СІ: 10**24 байтів."
19835 #: ../fish/guestfish.pod:675
19838 " truncate-size /file 1G\n"
19843 #: ../fish/guestfish.pod:677
19844 msgid "would truncate the file to 1 gigabyte."
19848 #: ../fish/guestfish.pod:679
19850 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
19851 "the parameter to L</memsize> is specified in megabytes already). Adding a "
19852 "suffix will probably not do what you expect."
19856 #: ../fish/guestfish.pod:683
19857 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19861 #: ../fish/guestfish.pod:685
19863 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19864 "octal number or C<0x> to prefix a hexadecimal number. For example:"
19868 #: ../fish/guestfish.pod:688
19871 " 1234 decimal number 1234\n"
19872 " 02322 octal number, equivalent to decimal 1234\n"
19873 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
19878 #: ../fish/guestfish.pod:692
19880 "When using the C<chmod> command, you almost always want to specify an octal "
19881 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19882 "L<chmod(1)> program):"
19886 #: ../fish/guestfish.pod:696
19889 " chmod 0777 /public # OK\n"
19890 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
19895 #: ../fish/guestfish.pod:699
19897 "Commands that return numbers usually print them in decimal, but some "
19898 "commands print numbers in other radices (eg. C<umask> prints the mode in "
19899 "octal, preceeded by C<0>)."
19903 #: ../fish/guestfish.pod:703
19904 msgid "WILDCARDS AND GLOBBING"
19908 #: ../fish/guestfish.pod:705
19910 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
19911 "(globbing) by default. So for example the following will not do what you "
19916 #: ../fish/guestfish.pod:709
19924 #: ../fish/guestfish.pod:711
19926 "Assuming you don't have a directory called literally C</home/*> then the "
19927 "above command will return an error."
19931 #: ../fish/guestfish.pod:714
19932 msgid "To perform wildcard expansion, use the C<glob> command."
19936 #: ../fish/guestfish.pod:716
19939 " glob rm-rf /home/*\n"
19944 #: ../fish/guestfish.pod:718
19946 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
19947 "many times), equivalent to:"
19951 #: ../fish/guestfish.pod:721
19954 " rm-rf /home/jim\n"
19955 " rm-rf /home/joe\n"
19956 " rm-rf /home/mary\n"
19961 #: ../fish/guestfish.pod:725
19962 msgid "C<glob> only works on simple guest paths and not on device names."
19966 #: ../fish/guestfish.pod:727
19968 "If you have several parameters, each containing a wildcard, then glob will "
19969 "perform a Cartesian product."
19973 #: ../fish/guestfish.pod:730
19978 #: ../fish/guestfish.pod:732
19980 "Any line which starts with a I<#> character is treated as a comment and "
19981 "ignored. The I<#> can optionally be preceeded by whitespace, but B<not> by "
19982 "a command. For example:"
19986 #: ../fish/guestfish.pod:736
19989 " # this is a comment\n"
19990 " # this is a comment\n"
19991 " foo # NOT a comment\n"
19996 #: ../fish/guestfish.pod:740
19997 msgid "Blank lines are also ignored."
20001 #: ../fish/guestfish.pod:742
20002 msgid "RUNNING COMMANDS LOCALLY"
20006 #: ../fish/guestfish.pod:744
20008 "Any line which starts with a I<!> character is treated as a command sent to "
20009 "the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
20013 #: ../fish/guestfish.pod:748
20017 " tgz-out /remote local/remote-data.tar.gz\n"
20022 #: ../fish/guestfish.pod:751
20024 "will create a directory C<local> on the host, and then export the contents "
20025 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
20026 "(See C<tgz-out>)."
20030 #: ../fish/guestfish.pod:755
20032 "To change the local directory, use the C<lcd> command. C<!cd> will have no "
20033 "effect, due to the way that subprocesses work in Unix."
20037 #: ../fish/guestfish.pod:758
20038 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20042 #: ../fish/guestfish.pod:760
20044 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20045 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20046 "and executed as guestfish commands."
20050 #: ../fish/guestfish.pod:764
20052 "Thus you can use shell script to construct arbitrary guestfish commands "
20053 "which are then parsed by guestfish."
20057 #: ../fish/guestfish.pod:767
20059 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20060 "through C</foo.100>) using guestfish commands alone. However this is simple "
20061 "if we use a shell script to create the guestfish commands for us:"
20065 #: ../fish/guestfish.pod:772
20068 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20073 #: ../fish/guestfish.pod:774
20074 msgid "or with names like C</foo.001>:"
20078 #: ../fish/guestfish.pod:776
20081 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20086 #: ../fish/guestfish.pod:778
20088 "When using guestfish interactively it can be helpful to just run the shell "
20089 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20090 "ordinary I<!> local command), see what guestfish commands it would run, and "
20091 "when you are happy with those prepend the C<E<lt>> character to run the "
20092 "guestfish commands for real."
20096 #: ../fish/guestfish.pod:784
20101 #: ../fish/guestfish.pod:786
20103 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20104 "command (a guestfish command) to the second command (any host command). For "
20109 #: ../fish/guestfish.pod:790
20112 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20117 #: ../fish/guestfish.pod:792
20119 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20120 "program). The above command would list all accounts in the guest filesystem "
20121 "which have UID 0, ie. root accounts including backdoors. Other examples:"
20125 #: ../fish/guestfish.pod:797
20128 " hexdump /bin/ls | head\n"
20129 " list-devices | tail -1\n"
20130 " tgz-out / - | tar ztf -\n"
20135 #: ../fish/guestfish.pod:801
20137 "The space before the pipe symbol is required, any space after the pipe "
20138 "symbol is optional. Everything after the pipe symbol is just passed "
20139 "straight to the host shell, so it can contain redirections, globs and "
20140 "anything else that makes sense on the host side."
20144 #: ../fish/guestfish.pod:806
20146 "To use a literal argument which begins with a pipe symbol, you have to quote "
20151 #: ../fish/guestfish.pod:809
20159 #: ../fish/guestfish.pod:811
20160 msgid "HOME DIRECTORIES"
20164 #: ../fish/guestfish.pod:813
20166 "If a parameter starts with the character C<~> then the tilde may be expanded "
20167 "as a home directory path (either C<~> for the current user's home directory, "
20168 "or C<~user> for another user)."
20172 #: ../fish/guestfish.pod:817
20174 "Note that home directory expansion happens for users known I<on the host>, "
20175 "not in the guest filesystem."
20179 #: ../fish/guestfish.pod:820
20181 "To use a literal argument which begins with a tilde, you have to quote it, "
20186 #: ../fish/guestfish.pod:823
20194 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
20195 msgid "ENCRYPTED DISKS"
20196 msgstr "ЗАШИФРОВАНІ ДИСКИ"
20199 #: ../fish/guestfish.pod:827
20201 "Libguestfs has some support for Linux guests encrypted according to the "
20202 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20203 "disk encryption systems used by modern Linux guests. Currently only LVM-on-"
20204 "LUKS is supported."
20208 #: ../fish/guestfish.pod:832
20209 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20213 #: ../fish/guestfish.pod:834
20216 " ><fs> vfs-type /dev/sda2\n"
20222 #: ../fish/guestfish.pod:837
20224 "Then open those devices using L</luks-open>. This creates a device-mapper "
20225 "device called C</dev/mapper/luksdev>."
20229 #: ../fish/guestfish.pod:840
20232 " ><fs> luks-open /dev/sda2 luksdev\n"
20233 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20238 #: ../fish/guestfish.pod:843
20240 "Finally you have to tell LVM to scan for volume groups on the newly created "
20245 #: ../fish/guestfish.pod:846
20249 " vg-activate-all true\n"
20254 #: ../fish/guestfish.pod:849
20255 msgid "The logical volume(s) can now be mounted in the usual way."
20259 #: ../fish/guestfish.pod:851
20261 "Before closing a LUKS device you must unmount any logical volumes on it and "
20262 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20263 "one. Then you can close the mapper device:"
20267 #: ../fish/guestfish.pod:855
20270 " vg-activate false /dev/VG\n"
20271 " luks-close /dev/mapper/luksdev\n"
20276 #: ../fish/guestfish.pod:860
20278 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20279 "letters and paths (with some limitations). The following commands are "
20284 #: ../fish/guestfish.pod:864
20287 " file /WINDOWS/system32/config/system.LOG\n"
20292 #: ../fish/guestfish.pod:866
20295 " file win:\\windows\\system32\\config\\system.log\n"
20300 #: ../fish/guestfish.pod:868
20303 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20308 #: ../fish/guestfish.pod:870
20310 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20311 "where the drive is mounted, prepending that to the path, changing all "
20312 "backslash characters to forward slash, then resolving the result using L</"
20313 "case-sensitive-path>. For example if the E: drive was mounted on C</e> then "
20314 "the parameter might be rewritten like this:"
20318 #: ../fish/guestfish.pod:876
20321 " win:e:\\foo\\bar => /e/FOO/bar\n"
20326 #: ../fish/guestfish.pod:878
20327 msgid "This only works in argument positions that expect a path."
20331 #: ../fish/guestfish.pod:880
20332 msgid "UPLOADING AND DOWNLOADING FILES"
20336 #: ../fish/guestfish.pod:882
20338 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20339 "others which upload from or download to a local file, you can use the "
20340 "special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
20344 #: ../fish/guestfish.pod:886
20352 #: ../fish/guestfish.pod:888
20354 "reads stdin and creates from that a file C</foo> in the disk image, and:"
20358 #: ../fish/guestfish.pod:891
20361 " tar-out /etc - | tar tf -\n"
20366 #: ../fish/guestfish.pod:893
20368 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20369 "command (see L</PIPES>)."
20373 #: ../fish/guestfish.pod:896
20375 "When using C<-> to read from stdin, the input is read up to the end of "
20376 "stdin. You can also use a special \"heredoc\"-like syntax to read up to "
20377 "some arbitrary end marker:"
20381 #: ../fish/guestfish.pod:900
20384 " upload -<<END /foo\n"
20393 #: ../fish/guestfish.pod:906
20395 "Any string of characters can be used instead of C<END>. The end marker must "
20396 "appear on a line of its own, without any preceeding or following characters "
20397 "(not even spaces)."
20401 #: ../fish/guestfish.pod:910
20403 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20404 "upload local files (so-called \"FileIn\" parameters in the generator)."
20408 #: ../fish/guestfish.pod:913
20409 msgid "EXIT ON ERROR BEHAVIOUR"
20413 #: ../fish/guestfish.pod:915
20415 "By default, guestfish will ignore any errors when in interactive mode (ie. "
20416 "taking commands from a human over a tty), and will exit on the first error "
20417 "in non-interactive mode (scripts, commands given on the command line)."
20421 #: ../fish/guestfish.pod:920
20423 "If you prefix a command with a I<-> character, then that command will not "
20424 "cause guestfish to exit, even if that (one) command returns an error."
20428 #: ../fish/guestfish.pod:924
20429 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20433 #: ../fish/guestfish.pod:926
20435 "Guestfish can be remote-controlled over a socket. This is useful "
20436 "particularly in shell scripts where you want to make several different "
20437 "changes to a filesystem, but you don't want the overhead of starting up a "
20438 "guestfish process each time."
20442 #: ../fish/guestfish.pod:931
20443 msgid "Start a guestfish server process using:"
20447 #: ../fish/guestfish.pod:933
20450 " eval \"`guestfish --listen`\"\n"
20455 #: ../fish/guestfish.pod:935
20456 msgid "and then send it commands by doing:"
20460 #: ../fish/guestfish.pod:937
20463 " guestfish --remote cmd [...]\n"
20468 #: ../fish/guestfish.pod:939
20469 msgid "To cause the server to exit, send it the exit command:"
20473 #: ../fish/guestfish.pod:943
20475 "Note that the server will normally exit if there is an error in a command. "
20476 "You can change this in the usual way. See section L</EXIT ON ERROR "
20481 #: ../fish/guestfish.pod:947
20482 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20486 #: ../fish/guestfish.pod:949
20488 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20489 "is how the I<--remote> option knows where to send the commands. You can "
20490 "have several guestfish listener processes running using:"
20494 #: ../fish/guestfish.pod:953
20497 " eval \"`guestfish --listen`\"\n"
20498 " pid1=$GUESTFISH_PID\n"
20499 " eval \"`guestfish --listen`\"\n"
20500 " pid2=$GUESTFISH_PID\n"
20502 " guestfish --remote=$pid1 cmd\n"
20503 " guestfish --remote=$pid2 cmd\n"
20508 #: ../fish/guestfish.pod:961
20509 msgid "REMOTE CONTROL AND CSH"
20513 #: ../fish/guestfish.pod:963
20515 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20520 #: ../fish/guestfish.pod:966
20523 " eval \"`guestfish --listen --csh`\"\n"
20528 #: ../fish/guestfish.pod:968
20529 msgid "REMOTE CONTROL DETAILS"
20533 #: ../fish/guestfish.pod:970
20535 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
20536 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
20537 "and C<$PID> is the process ID of the server."
20541 #: ../fish/guestfish.pod:974
20542 msgid "Guestfish client and server versions must match exactly."
20546 #: ../fish/guestfish.pod:976
20547 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20551 #: ../fish/guestfish.pod:978
20553 "From Bash, you can use the following code which creates a guestfish "
20554 "instance, correctly quotes the command line, handles failure to start, and "
20555 "cleans up guestfish when the script exits:"
20559 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:965
20567 #: ../fish/guestfish.pod:986
20570 " guestfish[0]=\"guestfish\"\n"
20571 " guestfish[1]=\"--listen\"\n"
20572 " guestfish[2]=\"--ro\"\n"
20573 " guestfish[3]=\"-a\"\n"
20574 " guestfish[4]=\"disk.img\"\n"
20579 #: ../fish/guestfish.pod:992
20582 " GUESTFISH_PID=\n"
20583 " eval $(\"${guestfish[@]}\")\n"
20584 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20585 " echo \"error: guestfish didn't start up, see error messages above\"\n"
20592 #: ../fish/guestfish.pod:999
20595 " cleanup_guestfish ()\n"
20597 " guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20599 " trap cleanup_guestfish EXIT ERR\n"
20604 #: ../fish/guestfish.pod:1005
20607 " guestfish --remote -- run\n"
20612 #: ../fish/guestfish.pod:1007
20620 #: ../fish/guestfish.pod:1009
20621 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20625 #: ../fish/guestfish.pod:1011
20627 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20628 "context hangs, ie. don't do (note the backquotes):"
20632 #: ../fish/guestfish.pod:1014
20635 " a=`guestfish --remote run`\n"
20640 #: ../fish/guestfish.pod:1016
20642 "Since the C<run> command produces no output on stdout, this is not useful "
20643 "anyway. For further information see L<https://bugzilla.redhat.com/show_bug."
20648 #: ../fish/guestfish.pod:1020
20649 msgid "PREPARED DISK IMAGES"
20653 #: ../fish/guestfish.pod:1022
20655 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20656 "preformatted disk images that guestfish can make for you to save typing. "
20657 "This is particularly useful for testing purposes. This option is used "
20658 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20659 "can be mixed with I<-a>)."
20663 #: ../fish/guestfish.pod:1028
20665 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20666 "the second and so on. Existing files in the current directory are "
20671 #: ../fish/guestfish.pod:1032
20673 "The type briefly describes how the disk should be sized, partitioned, how "
20674 "filesystem(s) should be created, and how content should be added. "
20675 "Optionally the type can be followed by extra parameters, separated by C<:> "
20676 "(colon) characters. For example, I<-N fs> creates a default 100MB, sparsely-"
20677 "allocated disk, containing a single partition, with the partition formatted "
20678 "as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
20683 #: ../fish/guestfish.pod:1040
20684 msgid "To list the available types and any extra parameters they take, run:"
20688 #: ../fish/guestfish.pod:1044
20690 "Note that the prepared filesystem is not mounted. You would usually have to "
20691 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20695 #: ../fish/guestfish.pod:1048
20697 "If any I<-N> or I<--new> options are given, the guest is automatically "
20702 #: ../fish/guestfish.pod:1053
20703 msgid "Create a 100MB disk with an ext4-formatted partition:"
20707 #: ../fish/guestfish.pod:1055
20710 " guestfish -N fs:ext4\n"
20715 #: ../fish/guestfish.pod:1057
20716 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20720 #: ../fish/guestfish.pod:1059
20723 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20728 #: ../fish/guestfish.pod:1061
20729 msgid "Create a blank 200MB disk:"
20733 #: ../fish/guestfish.pod:1063
20736 " guestfish -N disk:200M\n"
20741 #: ../fish/guestfish.pod:1065
20742 msgid "PROGRESS BARS"
20746 #: ../fish/guestfish.pod:1067
20748 "Some (not all) long-running commands send progress notification messages as "
20749 "they are running. Guestfish turns these messages into progress bars."
20753 #: ../fish/guestfish.pod:1071
20755 "When a command that supports progress bars takes longer than two seconds to "
20756 "run, and if progress bars are enabled, then you will see one appearing below "
20761 #: ../fish/guestfish.pod:1075
20764 " ><fs> copy-size /large-file /another-file 2048M\n"
20765 " / 10% [#####-----------------------------------------] 00:30\n"
20770 #: ../fish/guestfish.pod:1078
20772 "The spinner on the left hand side moves round once for every progress "
20773 "notification received from the backend. This is a (reasonably) golden "
20774 "assurance that the command is \"doing something\" even if the progress bar "
20775 "is not moving, because the command is able to send the progress "
20776 "notifications. When the bar reaches 100% and the command finishes, the "
20777 "spinner disappears."
20781 #: ../fish/guestfish.pod:1085
20783 "Progress bars are enabled by default when guestfish is used interactively. "
20784 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20785 "and you can disable them completely using I<--no-progress-bars>."
20789 #: ../fish/guestfish.pod:1090
20790 msgid "GUESTFISH COMMANDS"
20794 #: ../fish/guestfish.pod:1092
20796 "The commands in this section are guestfish convenience commands, in other "
20797 "words, they are not part of the L<guestfs(3)> API."
20801 #: ../fish/guestfish.pod:1095
20806 #: ../fish/guestfish.pod:1097
20818 #: ../fish/guestfish.pod:1100
20819 msgid "Without any parameter, this provides general help."
20820 msgstr "Без параметра показує загальну довідкову інформацію."
20823 #: ../fish/guestfish.pod:1102
20824 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20828 #: ../fish/guestfish.pod:1104
20829 msgid "quit | exit"
20833 #: ../fish/guestfish.pod:1106
20834 msgid "This exits guestfish. You can also use C<^D> key."
20838 #: ../fish/guestfish.pod:1108
20839 msgid "@FISH_COMMANDS@"
20843 #: ../fish/guestfish.pod:1110
20848 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1505
20853 #: ../fish/guestfish.pod:1116
20855 "guestfish returns 0 if the commands completed without error, or 1 if there "
20860 #: ../fish/guestfish.pod:1123
20865 #: ../fish/guestfish.pod:1125
20867 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
20872 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3198
20873 msgid "FEBOOTSTRAP_KERNEL"
20877 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3200
20878 msgid "FEBOOTSTRAP_MODULES"
20882 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3202
20884 "These two environment variables allow the kernel that libguestfs uses in the "
20885 "appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
20886 "most recent host kernel is chosen. For more information about kernel "
20887 "selection, see L<febootstrap-supermin-helper(8)>. This feature is only "
20888 "available in febootstrap E<ge> 3.8."
20892 #: ../fish/guestfish.pod:1138
20893 msgid "GUESTFISH_DISPLAY_IMAGE"
20897 #: ../fish/guestfish.pod:1140
20899 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
20900 "If not set, it uses L<display(1)>."
20904 #: ../fish/guestfish.pod:1143
20905 msgid "GUESTFISH_PID"
20909 #: ../fish/guestfish.pod:1145
20911 "Used with the I<--remote> option to specify the remote guestfish process to "
20912 "control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
20916 #: ../fish/guestfish.pod:1149
20921 #: ../fish/guestfish.pod:1151
20923 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
20924 "not specified, the external L<hexedit(1)> program is used."
20928 #: ../fish/guestfish.pod:1155
20933 #: ../fish/guestfish.pod:1157
20935 "If compiled with GNU readline support, various files in the home directory "
20936 "can be used. See L</FILES>."
20940 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3208
20941 msgid "LIBGUESTFS_APPEND"
20945 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3210
20946 msgid "Pass additional options to the guest kernel."
20950 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3212
20951 msgid "LIBGUESTFS_DEBUG"
20952 msgstr "LIBGUESTFS_DEBUG"
20955 #: ../fish/guestfish.pod:1166
20957 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
20958 "effect as using the B<-v> option."
20962 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3217
20963 msgid "LIBGUESTFS_MEMSIZE"
20964 msgstr "LIBGUESTFS_MEMSIZE"
20967 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3219
20969 "Set the memory allocated to the qemu process, in megabytes. For example:"
20973 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3222
20976 " LIBGUESTFS_MEMSIZE=700\n"
20979 " LIBGUESTFS_MEMSIZE=700\n"
20983 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3224
20984 msgid "LIBGUESTFS_PATH"
20988 #: ../fish/guestfish.pod:1178
20990 "Set the path that guestfish uses to search for kernel and initrd.img. See "
20991 "the discussion of paths in L<guestfs(3)>."
20995 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3229
20996 msgid "LIBGUESTFS_QEMU"
21000 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3231
21002 "Set the default qemu binary that libguestfs uses. If not set, then the qemu "
21003 "which was found at compile time by the configure script is used."
21007 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3237
21008 msgid "LIBGUESTFS_TRACE"
21012 #: ../fish/guestfish.pod:1189
21013 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21017 #: ../fish/guestfish.pod:1191
21019 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
21022 #: ../fish/guestfish.pod:1193
21024 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
21029 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
21030 #: ../src/guestfs.pod:3242
21035 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3244
21037 "Location of temporary directory, defaults to C</tmp> except for the cached "
21038 "supermin appliance which defaults to C</var/tmp>."
21042 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3247
21044 "If libguestfs was compiled to use the supermin appliance then the real "
21045 "appliance is cached in this directory, shared between all handles belonging "
21046 "to the same EUID. You can use C<$TMPDIR> to configure another directory to "
21047 "use in case C</var/tmp> is not large enough."
21051 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
21052 #: ../rescue/virt-rescue.pod:273
21057 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
21058 #: ../rescue/virt-rescue.pod:277
21059 msgid "$HOME/.libguestfs-tools.rc"
21063 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
21064 #: ../rescue/virt-rescue.pod:279
21065 msgid "/etc/libguestfs-tools.conf"
21069 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
21070 #: ../rescue/virt-rescue.pod:281
21072 "This configuration file controls the default read-only or read-write mode "
21073 "(I<--ro> or I<--rw>)."
21077 #: ../fish/guestfish.pod:1220
21078 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21079 msgstr "Див. L</OPENING DISKS FOR READ AND WRITE>."
21082 #: ../fish/guestfish.pod:1222
21083 msgid "$HOME/.guestfish"
21087 #: ../fish/guestfish.pod:1224
21089 "If compiled with GNU readline support, then the command history is saved in "
21094 #: ../fish/guestfish.pod:1227
21095 msgid "$HOME/.inputrc"
21099 #: ../fish/guestfish.pod:1229
21100 msgid "/etc/inputrc"
21104 #: ../fish/guestfish.pod:1231
21106 "If compiled with GNU readline support, then these files can be used to "
21107 "configure readline. For further information, please see L<readline(3)/"
21108 "INITIALIZATION FILE>."
21112 #: ../fish/guestfish.pod:1235
21113 msgid "To write rules which only apply to guestfish, use:"
21117 #: ../fish/guestfish.pod:1237
21127 #: ../fish/guestfish.pod:1241
21129 "Variables that you can set in inputrc that change the behaviour of guestfish "
21130 "in useful ways include:"
21134 #: ../fish/guestfish.pod:1246
21135 msgid "completion-ignore-case (default: on)"
21139 #: ../fish/guestfish.pod:1248
21141 "By default, guestfish will ignore case when tab-completing paths on the "
21146 #: ../fish/guestfish.pod:1251
21149 " set completion-ignore-case off\n"
21154 #: ../fish/guestfish.pod:1253
21155 msgid "to make guestfish case sensitive."
21159 #: ../fish/guestfish.pod:1257
21164 #: ../fish/guestfish.pod:1259
21165 msgid "test2.img (etc)"
21169 #: ../fish/guestfish.pod:1261
21171 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21172 "will be created in the file C<test1.img> in the current directory. The "
21173 "second use of I<-N> will use C<test2.img> and so on. Any existing file with "
21174 "the same name will be overwritten."
21178 #: ../fish/guestfish.pod:1270
21180 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
21181 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
21182 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
21183 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
21184 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
21185 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
21186 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
21190 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3339
21191 #: ../test-tool/libguestfs-test-tool.pod:112
21192 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
21196 #: ../fish/virt-copy-in.pod:5
21198 "virt-copy-in - Copy files and directories into a virtual machine disk image."
21202 #: ../fish/virt-copy-in.pod:9
21205 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21210 #: ../fish/virt-copy-in.pod:11
21213 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21218 #: ../fish/virt-copy-in.pod:15
21220 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21221 "causing disk corruption. The virtual machine must be shut down before you "
21222 "use this command."
21226 #: ../fish/virt-copy-in.pod:21
21228 "C<virt-copy-in> copies files and directories from the local disk into a "
21229 "virtual machine disk image or named libvirt domain."
21233 #: ../fish/virt-copy-in.pod:24
21235 "You can give one of more filenames and directories on the command line. "
21236 "Directories are copied in recursively. The final parameter must be the "
21237 "destination directory in the disk image which must be an absolute path "
21238 "starting with a C</> character."
21242 #: ../fish/virt-copy-in.pod:33
21245 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21250 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21251 msgid "Upload a home directory to a guest:"
21255 #: ../fish/virt-copy-in.pod:37
21258 " virt-copy-in -d MyGuest skel /home\n"
21263 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
21264 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21265 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21269 #: ../fish/virt-copy-in.pod:41
21271 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21272 "> C<copy-in> command. For anything more complex than a trivial copy, you "
21273 "are probably better off using guestfish directly."
21277 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
21278 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21280 "Since the shell script just passes options straight to guestfish, read "
21281 "L<guestfish(1)> to see the full list of options."
21285 #: ../fish/virt-copy-in.pod:52
21287 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21288 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21292 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
21293 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21294 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
21298 #: ../fish/virt-copy-out.pod:5
21300 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21305 #: ../fish/virt-copy-out.pod:9
21308 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21313 #: ../fish/virt-copy-out.pod:11
21316 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21321 #: ../fish/virt-copy-out.pod:15
21323 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21324 "image or named libvirt domain."
21328 #: ../fish/virt-copy-out.pod:18
21330 "You can give one of more filenames and directories on the command line. "
21331 "Directories are copied out recursively."
21335 #: ../fish/virt-copy-out.pod:23
21336 msgid "Download the home directories from a virtual machine:"
21340 #: ../fish/virt-copy-out.pod:25
21344 " virt-copy-out -d MyGuest /home homes\n"
21349 #: ../fish/virt-copy-out.pod:30
21351 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21352 "> C<copy-out> command. For anything more complex than a trivial copy, you "
21353 "are probably better off using guestfish directly."
21357 #: ../fish/virt-copy-out.pod:41
21359 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
21360 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21364 #: ../fish/virt-tar-in.pod:5
21365 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21369 #: ../fish/virt-tar-in.pod:9
21372 " virt-tar-in -a disk.img data.tar /destination\n"
21377 #: ../fish/virt-tar-in.pod:11
21380 " virt-tar-in -d domain data.tar /destination\n"
21385 #: ../fish/virt-tar-in.pod:13
21388 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21393 #: ../fish/virt-tar-in.pod:17
21395 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21396 "causing disk corruption. The virtual machine must be shut down before you "
21397 "use this command."
21401 #: ../fish/virt-tar-in.pod:23
21403 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21404 "image or named libvirt domain."
21408 #: ../fish/virt-tar-in.pod:26
21410 "The first parameter is the tar file. Use C<-> to read the tar file from "
21411 "standard input. The second parameter is the absolute target directory to "
21416 #: ../fish/virt-tar-in.pod:34
21419 " virt-tar-in -d MyGuest homes.tar /home\n"
21424 #: ../fish/virt-tar-in.pod:38
21426 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21427 "> C<tar-in> command. For anything more complex than a trivial copy, you are "
21428 "probably better off using guestfish directly."
21432 #: ../fish/virt-tar-in.pod:49
21434 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21435 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
21440 #: ../fish/virt-tar-out.pod:5
21442 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21446 #: ../fish/virt-tar-out.pod:9
21449 " virt-tar-out -a disk.img /dir files.tar\n"
21454 #: ../fish/virt-tar-out.pod:11
21457 " virt-tar-out -d domain /dir files.tar\n"
21462 #: ../fish/virt-tar-out.pod:13
21465 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21470 #: ../fish/virt-tar-out.pod:17
21472 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21476 #: ../fish/virt-tar-out.pod:20
21478 "The first parameter is the absolute path of the virtual machine directory. "
21479 "The second parameter is the tar file to write. Use C<-> to write to "
21484 #: ../fish/virt-tar-out.pod:26
21485 msgid "Download the home directories from a guest:"
21489 #: ../fish/virt-tar-out.pod:28
21492 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21497 #: ../fish/virt-tar-out.pod:32
21499 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21500 "> C<tar-out> command. For anything more complex than a trivial copy, you "
21501 "are probably better off using guestfish directly."
21505 #: ../fish/virt-tar-out.pod:43
21507 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21508 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21512 #: ../fuse/guestmount.pod:5
21514 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21518 #: ../fuse/guestmount.pod:9
21521 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21526 #: ../fuse/guestmount.pod:11
21529 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21534 #: ../fuse/guestmount.pod:13
21537 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21542 #: ../fuse/guestmount.pod:17
21544 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21545 "machines. If you do this, you risk disk corruption in the VM."
21549 #: ../fuse/guestmount.pod:22
21551 "The guestmount program can be used to mount virtual machine filesystems and "
21552 "other disk images on the host. It uses libguestfs for access to the guest "
21553 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21554 "a mountable device."
21558 #: ../fuse/guestmount.pod:27
21560 "Along with other options, you have to give at least one device (I<-a> "
21561 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21562 "option) or use the I<-i> inspection option. How this works is better "
21563 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
21568 #: ../fuse/guestmount.pod:33
21570 "FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
21571 "by you, and the filesystem will not be visible to any other users unless you "
21572 "make certain global configuration changes to C</etc/fuse.conf>. To unmount "
21573 "the filesystem, use the C<fusermount -u> command."
21577 #: ../fuse/guestmount.pod:41
21579 "For a typical Windows guest which has its main filesystem on the first "
21584 #: ../fuse/guestmount.pod:44
21587 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21592 #: ../fuse/guestmount.pod:46
21594 "For a typical Linux guest which has a /boot filesystem on the first "
21595 "partition, and the root filesystem on a logical volume:"
21599 #: ../fuse/guestmount.pod:49
21602 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21607 #: ../fuse/guestmount.pod:51
21608 msgid "To get libguestfs to detect guest mountpoints for you:"
21612 #: ../fuse/guestmount.pod:53
21615 " guestmount -a guest.img -i --ro /mnt\n"
21620 #: ../fuse/guestmount.pod:55
21621 msgid "For a libvirt guest called \"Guest\" you could do:"
21625 #: ../fuse/guestmount.pod:57
21628 " guestmount -d Guest -i --ro /mnt\n"
21633 #: ../fuse/guestmount.pod:59
21635 "If you don't know what filesystems are contained in a guest or disk image, "
21636 "use L<virt-filesystems(1)> first:"
21640 #: ../fuse/guestmount.pod:62
21643 " virt-filesystems MyGuest\n"
21648 #: ../fuse/guestmount.pod:64
21650 "If you want to trace the libguestfs calls but without excessive debugging "
21651 "information, we recommend:"
21655 #: ../fuse/guestmount.pod:67
21658 " guestmount [...] --trace /mnt\n"
21663 #: ../fuse/guestmount.pod:69
21664 msgid "If you want to debug the program, we recommend:"
21668 #: ../fuse/guestmount.pod:71
21671 " guestmount [...] --trace --verbose /mnt\n"
21676 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
21677 #: ../resize/virt-resize.pod:600
21682 #: ../fuse/guestmount.pod:75
21683 msgid "Other users cannot see the filesystem by default"
21687 #: ../fuse/guestmount.pod:77
21689 "If you mount a filesystem as one user (eg. root), then other users will not "
21690 "be able to see it by default. The fix is to add the FUSE C<allow_other> "
21691 "option when mounting:"
21695 #: ../fuse/guestmount.pod:81
21698 " sudo guestmount [...] -o allow_other /mnt\n"
21703 #: ../fuse/guestmount.pod:83
21704 msgid "Enabling FUSE"
21708 #: ../fuse/guestmount.pod:85
21710 "On some distros, you may need to add yourself to a special group (eg. "
21711 "C<fuse>) before you can use any FUSE filesystem. This is necessary on "
21712 "Debian and derivatives."
21716 #: ../fuse/guestmount.pod:89
21718 "On other distros, no special group is required. It is not necessary on "
21719 "Fedora or Red Hat Enterprise Linux."
21723 #: ../fuse/guestmount.pod:100
21724 msgid "Add a block device or virtual machine image."
21728 #: ../fuse/guestmount.pod:123
21729 msgid "B<--dir-cache-timeout N>"
21730 msgstr "B<--dir-cache-timeout N>"
21733 #: ../fuse/guestmount.pod:125
21735 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21736 "seconds. The readdir cache [actually, there are several semi-independent "
21737 "caches] is populated after a readdir(2) call with the stat and extended "
21738 "attributes of the files in the directory, in anticipation that they will be "
21739 "requested soon after."
21743 #: ../fuse/guestmount.pod:131
21745 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21746 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21747 "requests, only cache existing ones."
21751 #: ../fuse/guestmount.pod:151
21753 "If you have untrusted raw-format guest disk images, you should use this "
21754 "option to specify the disk format. This avoids a possible security problem "
21755 "with malicious guests (CVE-2010-3851). See also L<guestfs(3)/"
21756 "guestfs_add_drive_opts>."
21760 #: ../fuse/guestmount.pod:156
21761 msgid "B<--fuse-help>"
21762 msgstr "B<--fuse-help>"
21765 #: ../fuse/guestmount.pod:158
21766 msgid "Display help on special FUSE options (see I<-o> below)."
21770 #: ../fuse/guestmount.pod:162
21771 msgid "Display brief help and exit."
21775 #: ../fuse/guestmount.pod:186
21777 "Mount the named partition or logical volume on the given mountpoint B<in the "
21778 "guest> (this has nothing to do with mountpoints in the host)."
21782 #: ../fuse/guestmount.pod:189
21784 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
21785 "something on C</>."
21789 #: ../fuse/guestmount.pod:206
21791 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21792 "unmounted. If you specify this option, then we don't attempt to sync the "
21793 "disk. See the discussion of autosync in the L<guestfs(3)> manpage."
21797 #: ../fuse/guestmount.pod:211
21798 msgid "B<-o option>"
21799 msgstr "B<-o параметр>"
21802 #: ../fuse/guestmount.pod:213
21803 msgid "B<--option option>"
21804 msgstr "B<--option параметр>"
21807 #: ../fuse/guestmount.pod:215
21808 msgid "Pass extra options to FUSE."
21812 #: ../fuse/guestmount.pod:217
21814 "To get a list of all the extra options supported by FUSE, use the command "
21815 "below. Note that only the FUSE I<-o> options can be passed, and only some "
21816 "of them are a good idea."
21820 #: ../fuse/guestmount.pod:221
21823 " guestmount --fuse-help\n"
21828 #: ../fuse/guestmount.pod:223
21829 msgid "Some potentially useful FUSE options:"
21833 #: ../fuse/guestmount.pod:227
21834 msgid "B<-o allow_other>"
21838 #: ../fuse/guestmount.pod:229
21839 msgid "Allow other users to see the filesystem."
21843 #: ../fuse/guestmount.pod:231
21844 msgid "B<-o attr_timeout=N>"
21845 msgstr "B<-o attr_timeout=N>"
21848 #: ../fuse/guestmount.pod:233
21849 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
21853 #: ../fuse/guestmount.pod:235
21854 msgid "B<-o kernel_cache>"
21858 #: ../fuse/guestmount.pod:237
21860 "Allow the kernel to cache files (reduces the number of reads that have to go "
21861 "through the L<guestfs(3)> API). This is generally a good idea if you can "
21862 "afford the extra memory usage."
21866 #: ../fuse/guestmount.pod:241
21867 msgid "B<-o uid=N> B<-o gid=N>"
21868 msgstr "B<-o uid=N> B<-o gid=N>"
21871 #: ../fuse/guestmount.pod:243
21873 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
21874 "the chosen values."
21878 #: ../fuse/guestmount.pod:252
21880 "Add devices and mount everything read-only. Also disallow writes and make "
21881 "the disk appear read-only to FUSE."
21885 #: ../fuse/guestmount.pod:255
21887 "This is highly recommended if you are not going to edit the guest disk. If "
21888 "the guest is running and this option is I<not> supplied, then there is a "
21889 "strong risk of disk corruption in the guest. We try to prevent this from "
21890 "happening, but it is not always possible."
21894 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
21895 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21896 msgstr "Див. також L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21899 #: ../fuse/guestmount.pod:264
21900 msgid "Enable SELinux support for the guest."
21904 #: ../fuse/guestmount.pod:270
21905 msgid "Enable verbose messages from underlying libguestfs."
21909 #: ../fuse/guestmount.pod:276
21910 msgid "Display the program version and exit."
21914 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
21915 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
21916 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21917 msgstr "Див. L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21920 #: ../fuse/guestmount.pod:289
21922 msgstr "B<--trace>"
21925 #: ../fuse/guestmount.pod:291
21926 msgid "Trace libguestfs calls and entry into each FUSE function."
21930 #: ../fuse/guestmount.pod:293
21931 msgid "This also stops the daemon from forking into the background."
21935 #: ../fuse/guestmount.pod:319
21937 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21938 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
21941 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21942 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
21946 #: ../fuse/guestmount.pod:334
21947 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
21951 #: ../inspector/virt-inspector.pod:5
21953 "virt-inspector - Display operating system version and other information "
21954 "about a virtual machine"
21958 #: ../inspector/virt-inspector.pod:9
21961 " virt-inspector [--options] -d domname\n"
21966 #: ../inspector/virt-inspector.pod:11
21969 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
21974 #: ../inspector/virt-inspector.pod:15
21977 " virt-inspector domname\n"
21982 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
21985 " virt-inspector disk.img [disk.img ...]\n"
21990 #: ../inspector/virt-inspector.pod:21
21992 "B<virt-inspector> examines a virtual machine or disk image and tries to "
21993 "determine the version of the operating system and other information about "
21994 "the virtual machine."
21998 #: ../inspector/virt-inspector.pod:25
21999 msgid "Virt-inspector produces XML output for feeding into other programs."
22003 #: ../inspector/virt-inspector.pod:27
22005 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22006 "the libvirt domain (see: C<virsh list --all>)."
22010 #: ../inspector/virt-inspector.pod:30
22012 "You can also run virt-inspector directly on disk images from a single "
22013 "virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain "
22014 "has several block devices, in which case you should list several I<-a> "
22015 "options one after another, with the first corresponding to the guest's C</"
22016 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
22020 #: ../inspector/virt-inspector.pod:37
22022 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22023 "keys and similar."
22027 #: ../inspector/virt-inspector.pod:40
22029 "Virt-inspector can only inspect and report upon I<one domain at a time>. To "
22030 "inspect several virtual machines, you have to run virt-inspector several "
22031 "times (for example, from a shell script for-loop)."
22035 #: ../inspector/virt-inspector.pod:45
22037 "Because virt-inspector needs direct access to guest images, it won't "
22038 "normally work over remote libvirt connections."
22042 #: ../inspector/virt-inspector.pod:48
22044 "All of the information available from virt-inspector is also available "
22045 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
22046 "The same information can also be fetched using guestfish or via libguestfs "
22047 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22048 "WITH OTHER PROGRAMMING LANGUAGES>)."
22052 #: ../inspector/virt-inspector.pod:81
22054 "Libvirt is only used if you specify a C<domname> on the command line. If "
22055 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22060 #: ../inspector/virt-inspector.pod:94
22062 "When prompting for keys and passphrases, virt-inspector normally turns "
22063 "echoing off so you cannot see what you are typing. If you are not worried "
22064 "about Tempest attacks and there is no one else in the room you can specify "
22065 "this flag to see what you are typing."
22069 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
22070 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
22071 #: ../tools/virt-win-reg.pl:144
22073 "Specify the format of disk images given on the command line. If this is "
22074 "omitted then the format is autodetected from the content of the disk image."
22078 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
22079 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
22080 #: ../tools/virt-win-reg.pl:148
22082 "If disk images are requested from libvirt, then this program asks libvirt "
22083 "for this information. In this case, the value of the format parameter is "
22088 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:370
22089 #: ../resize/virt-resize.pod:462 ../sparsify/virt-sparsify.pod:132
22090 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
22091 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22093 "If working with untrusted raw-format guest disk images, you should ensure "
22094 "the format is always specified."
22098 #: ../inspector/virt-inspector.pod:139
22099 msgid "Previous versions of virt-inspector allowed you to write either:"
22103 #: ../inspector/virt-inspector.pod:145
22106 " virt-inspector guestname\n"
22111 #: ../inspector/virt-inspector.pod:153
22116 #: ../inspector/virt-inspector.pod:155
22118 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22119 "C<virt-inspector.rng> which is supplied with libguestfs. This section is "
22120 "just an overview."
22124 #: ../inspector/virt-inspector.pod:159
22126 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22127 "more E<lt>operatingsystemE<gt> elements. You would only see more than one "
22128 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22129 "which is vanishingly rare in real world VMs."
22133 #: ../inspector/virt-inspector.pod:164
22134 msgid "E<lt>operatingsystemE<gt>"
22138 #: ../inspector/virt-inspector.pod:166
22140 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22141 "describe the operating system, its architecture, the descriptive \"product "
22142 "name\" string, the type of OS and so on, as in this example:"
22146 #: ../inspector/virt-inspector.pod:170
22149 " <operatingsystems>\n"
22150 " <operatingsystem>\n"
22151 " <root>/dev/sda2</root>\n"
22152 " <name>windows</name>\n"
22153 " <arch>i386</arch>\n"
22154 " <distro>windows</distro>\n"
22155 " <product_name>Windows 7 Enterprise</product_name>\n"
22156 " <product_variant>Client</product_variant>\n"
22157 " <major_version>6</major_version>\n"
22158 " <minor_version>1</minor_version>\n"
22159 " <windows_systemroot>/Windows</windows_systemroot>\n"
22160 " <format>installed</format>\n"
22165 #: ../inspector/virt-inspector.pod:183
22167 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22168 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22169 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22170 "architecture. The other fields are fairly self-explanatory, but because "
22171 "these fields are taken directly from the libguestfs inspection API you can "
22172 "find precise information from L<guestfs(3)/INSPECTION>."
22176 #: ../inspector/virt-inspector.pod:191
22178 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22179 "of view of libguestfs (block devices may have completely different names "
22180 "inside the VM itself)."
22184 #: ../inspector/virt-inspector.pod:195
22185 msgid "E<lt>mountpointsE<gt>"
22189 #: ../inspector/virt-inspector.pod:197
22191 "Un*x-like guests typically have multiple filesystems which are mounted at "
22192 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22193 "element which looks like this:"
22197 #: ../inspector/virt-inspector.pod:201
22200 " <operatingsystems>\n"
22201 " <operatingsystem>\n"
22204 " <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22205 " <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22206 " </mountpoints>\n"
22211 #: ../inspector/virt-inspector.pod:209
22213 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22214 "and may have completely different names inside the guest. Only mountable "
22215 "filesystems appear in this list, not things like swap devices."
22219 #: ../inspector/virt-inspector.pod:214
22220 msgid "E<lt>filesystemsE<gt>"
22224 #: ../inspector/virt-inspector.pod:216
22226 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22227 "filesystems belonging to the guest, including swap and empty partitions. "
22228 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22229 "this OS or shared with this OS and other OSes)."
22233 #: ../inspector/virt-inspector.pod:222
22234 msgid "You might see something like this:"
22238 #: ../inspector/virt-inspector.pod:224
22241 " <operatingsystems>\n"
22242 " <operatingsystem>\n"
22245 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22246 " <type>ext4</type>\n"
22247 " <label>Fedora-13-x86_64</label>\n"
22248 " <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22254 #: ../inspector/virt-inspector.pod:234
22256 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22257 "the label, and the UUID."
22261 #: ../inspector/virt-inspector.pod:237
22262 msgid "E<lt>applicationsE<gt>"
22266 #: ../inspector/virt-inspector.pod:239
22268 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22269 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22274 #: ../inspector/virt-inspector.pod:243
22276 "E<lt>package_formatE<gt>, if present, describes the packaging system used. "
22277 "Typical values would be C<rpm> and C<deb>."
22281 #: ../inspector/virt-inspector.pod:246
22283 "E<lt>package_managementE<gt>, if present, describes the package manager. "
22284 "Typical values include C<yum>, C<up2date> and C<apt>"
22288 #: ../inspector/virt-inspector.pod:249
22289 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22293 #: ../inspector/virt-inspector.pod:252
22296 " <operatingsystems>\n"
22297 " <operatingsystem>\n"
22299 " <applications>\n"
22301 " <name>coreutils</name>\n"
22302 " <version>8.5</version>\n"
22303 " <release>1</release>\n"
22304 " </application>\n"
22309 #: ../inspector/virt-inspector.pod:262
22311 "The version and release fields may not be available for some types guests. "
22312 "Other fields are possible, see L<guestfs(3)/"
22313 "guestfs_inspect_list_applications>."
22317 #: ../inspector/virt-inspector.pod:266
22318 msgid "E<lt>drive_mappingsE<gt>"
22322 #: ../inspector/virt-inspector.pod:268
22324 "For operating systems like Windows which use drive letters, virt-inspector "
22325 "is able to find out how drive letters map to filesystems."
22329 #: ../inspector/virt-inspector.pod:272
22332 " <operatingsystems>\n"
22333 " <operatingsystem>\n"
22335 " <drive_mappings>\n"
22336 " <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22337 " <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22338 " </drive_mappings>\n"
22343 #: ../inspector/virt-inspector.pod:280
22345 "In the example above, drive C maps to the filesystem on the second partition "
22346 "on the first disk, and drive E maps to the filesystem on the first partition "
22347 "on the second disk."
22351 #: ../inspector/virt-inspector.pod:284
22353 "Note that this only covers permanent local filesystem mappings, not things "
22354 "like network shares. Furthermore NTFS volume mount points may not be listed "
22359 #: ../inspector/virt-inspector.pod:288
22360 msgid "E<lt>iconE<gt>"
22364 #: ../inspector/virt-inspector.pod:290
22366 "Virt-inspector is sometimes able to extract an icon or logo for the guest. "
22367 "The icon is returned as base64-encoded PNG data. Note that the icon can be "
22368 "very large and high quality."
22372 #: ../inspector/virt-inspector.pod:294
22375 " <operatingsystems>\n"
22376 " <operatingsystem>\n"
22379 " iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22380 " [... many lines of base64 data ...]\n"
22386 #: ../inspector/virt-inspector.pod:302
22388 "To display the icon, you have to extract it and convert the base64 data back "
22389 "to a binary file. Use an XPath query or simply an editor to extract the "
22390 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22395 #: ../inspector/virt-inspector.pod:307
22398 " base64 -i -d < icon.data > icon.png\n"
22403 #: ../inspector/virt-inspector.pod:309
22404 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22408 #: ../inspector/virt-inspector.pod:311
22410 "Virt-inspector can detect some operating system installers on install disks, "
22411 "live CDs, bootable USB keys and more."
22415 #: ../inspector/virt-inspector.pod:314
22417 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22418 "fields may be present to indicate a live CD, network installer, or one part "
22419 "of a multipart CD. For example:"
22423 #: ../inspector/virt-inspector.pod:318
22426 " <operatingsystems>\n"
22427 " <operatingsystem>\n"
22428 " <root>/dev/sda</root>\n"
22429 " <name>linux</name>\n"
22430 " <arch>i386</arch>\n"
22431 " <distro>ubuntu</distro>\n"
22432 " <product_name>Ubuntu 10.10 "Maverick Meerkat"</product_name>\n"
22433 " <major_version>10</major_version>\n"
22434 " <minor_version>10</minor_version>\n"
22435 " <format>installer</format>\n"
22441 #: ../inspector/virt-inspector.pod:330
22442 msgid "USING XPATH"
22446 #: ../inspector/virt-inspector.pod:332
22448 "You can use the XPath query language to select parts of the XML. We "
22449 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
22453 #: ../inspector/virt-inspector.pod:338
22456 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
22458 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22459 " <type>ext4</type>\n"
22465 #: ../inspector/virt-inspector.pod:344
22468 " $ virt-inspector -d Guest | \\\n"
22469 " xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22475 #: ../inspector/virt-inspector.pod:348
22478 " $ virt-inspector -d Guest | \\\n"
22479 " xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
22480 " [displays the guest icon, if there is one]\n"
22485 #: ../inspector/virt-inspector.pod:359
22486 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22490 #: ../inspector/virt-inspector.pod:361
22492 "Early versions of libguestfs shipped with a different virt-inspector program "
22493 "written in Perl (the current version is written in C). The XML output of "
22494 "the Perl virt-inspector was different and it could also output in other "
22495 "formats like text."
22499 #: ../inspector/virt-inspector.pod:366
22501 "The old virt-inspector is no longer supported or shipped with libguestfs."
22505 #: ../inspector/virt-inspector.pod:369
22507 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22508 "versions of virt-inspector with different names:"
22512 #: ../inspector/virt-inspector.pod:372
22515 " virt-inspector Old Perl version.\n"
22516 " virt-inspector2 New C version.\n"
22521 #: ../inspector/virt-inspector.pod:382
22523 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
22524 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22528 #: ../inspector/virt-inspector.pod:399
22529 msgid "Matthew Booth L<mbooth@redhat.com>"
22533 #: ../java/examples/guestfs-java.pod:5
22534 msgid "guestfs-java - How to use libguestfs from Java"
22538 #: ../java/examples/guestfs-java.pod:9
22541 " import com.redhat.et.libguestfs.*;\n"
22546 #: ../java/examples/guestfs-java.pod:11
22549 " GuestFS g = new GuestFS ();\n"
22550 " g.add_drive_opts (\"disk.img\", null);\n"
22556 #: ../java/examples/guestfs-java.pod:17
22558 "This manual page documents how to call libguestfs from the Java programming "
22559 "language. This page just documents the differences from the C API and gives "
22560 "some examples. If you are not familiar with using libguestfs, you also need "
22561 "to read L<guestfs(3)>."
22565 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22566 msgid "CLOSING THE HANDLE"
22570 #: ../java/examples/guestfs-java.pod:24
22572 "The handle is closed when it is reaped by the garbage collector. Because "
22573 "libguestfs handles include a lot of state, it is also possible to close (and "
22574 "hence free) them explicitly by calling the C<close> method."
22578 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
22579 #: ../python/examples/guestfs-python.pod:21
22580 #: ../ruby/examples/guestfs-ruby.pod:22
22585 #: ../java/examples/guestfs-java.pod:31
22587 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22588 "exception. This has a single parameter which is the error message (a "
22593 #: ../java/examples/guestfs-java.pod:35
22594 msgid "Calling any method on a closed handle raises the same exception."
22598 #: ../java/examples/guestfs-java.pod:47
22600 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
22601 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22602 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22606 #: ../ocaml/examples/guestfs-ocaml.pod:5
22607 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22611 #: ../ocaml/examples/guestfs-ocaml.pod:9
22612 msgid "Module style:"
22616 #: ../ocaml/examples/guestfs-ocaml.pod:11
22619 " let g = Guestfs.create () in\n"
22620 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22621 " Guestfs.launch g;\n"
22626 #: ../ocaml/examples/guestfs-ocaml.pod:15
22627 msgid "Object-oriented style:"
22631 #: ../ocaml/examples/guestfs-ocaml.pod:17
22634 " let g = new Guestfs.guestfs () in\n"
22635 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22641 #: ../ocaml/examples/guestfs-ocaml.pod:21
22644 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22646 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22651 #: ../ocaml/examples/guestfs-ocaml.pod:27
22653 "This manual page documents how to call libguestfs from the OCaml programming "
22654 "language. This page just documents the differences from the C API and gives "
22655 "some examples. If you are not familiar with using libguestfs, you also need "
22656 "to read L<guestfs(3)>."
22660 #: ../ocaml/examples/guestfs-ocaml.pod:32
22661 msgid "PROGRAMMING STYLES"
22665 #: ../ocaml/examples/guestfs-ocaml.pod:34
22667 "There are two different programming styles supported by the OCaml bindings. "
22668 "You can use a module style, with each C function mapped to an OCaml function:"
22672 #: ../ocaml/examples/guestfs-ocaml.pod:38
22675 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22680 #: ../ocaml/examples/guestfs-ocaml.pod:40
22685 #: ../ocaml/examples/guestfs-ocaml.pod:42
22688 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22693 #: ../ocaml/examples/guestfs-ocaml.pod:44
22695 "Alternately you can use an object-oriented style, calling methods on the "
22696 "class C<Guestfs.guestfs>:"
22700 #: ../ocaml/examples/guestfs-ocaml.pod:47
22703 " method set_verbose : bool -> unit\n"
22708 #: ../ocaml/examples/guestfs-ocaml.pod:49
22710 "The object-oriented style is usually briefer, and the minor performance "
22711 "penalty isn't noticable in the general overhead of performing libguestfs "
22716 #: ../ocaml/examples/guestfs-ocaml.pod:55
22718 "The handle is closed when it is reaped by the garbage collector. Because "
22719 "libguestfs handles include a lot of state, it is also possible to close (and "
22720 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22725 #: ../ocaml/examples/guestfs-ocaml.pod:62
22727 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22728 "exception. This has a single parameter which is the error message (a "
22733 #: ../ocaml/examples/guestfs-ocaml.pod:66
22735 "Calling any function/method on a closed handle raises C<Guestfs."
22736 "Handle_closed>. The single parameter is the name of the function that you "
22741 #: ../ocaml/examples/guestfs-ocaml.pod:80
22743 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22744 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22745 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22749 #: ../perl/examples/guestfs-perl.pod:5
22750 msgid "guestfs-perl - How to use libguestfs from Perl"
22754 #: ../perl/examples/guestfs-perl.pod:9
22757 " use Sys::Guestfs;\n"
22762 #: ../perl/examples/guestfs-perl.pod:11
22765 " my $h = Sys::Guestfs->new ();\n"
22766 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22767 " $h->launch ();\n"
22768 " $h->mount_options ('', '/dev/sda1', '/');\n"
22769 " $h->touch ('/hello');\n"
22775 #: ../perl/examples/guestfs-perl.pod:20
22777 "This manual page documents how to call libguestfs from the Perl programming "
22778 "language. This page just documents the differences from the C API and gives "
22779 "some examples. If you are not familiar with using libguestfs, you also need "
22780 "to read L<guestfs(3)>. To read the full Perl API, see L<Sys::Guestfs(3)>."
22784 #: ../perl/examples/guestfs-perl.pod:26
22789 #: ../perl/examples/guestfs-perl.pod:28
22791 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
22796 #: ../perl/examples/guestfs-perl.pod:41
22798 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
22799 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
22800 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22804 #: ../python/examples/guestfs-python.pod:5
22805 msgid "guestfs-python - How to use libguestfs from Python"
22809 #: ../python/examples/guestfs-python.pod:9
22812 " import guestfs\n"
22813 " g = guestfs.GuestFS ()\n"
22814 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
22820 #: ../python/examples/guestfs-python.pod:16
22822 "This manual page documents how to call libguestfs from the Python "
22823 "programming language. This page just documents the differences from the C "
22824 "API and gives some examples. If you are not familiar with using libguestfs, "
22825 "you also need to read L<guestfs(3)>."
22829 #: ../python/examples/guestfs-python.pod:23
22831 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
22832 "single string argument which is the error message."
22836 #: ../python/examples/guestfs-python.pod:26
22837 msgid "MORE DOCUMENTATION"
22841 #: ../python/examples/guestfs-python.pod:28
22846 #: ../python/examples/guestfs-python.pod:30
22850 " >>> import guestfs\n"
22851 " >>> help (guestfs)\n"
22856 #: ../python/examples/guestfs-python.pod:44
22858 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22859 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
22860 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22864 #: ../rescue/virt-rescue.pod:5
22865 msgid "virt-rescue - Run a rescue shell on a virtual machine"
22869 #: ../rescue/virt-rescue.pod:9
22872 " virt-rescue [--options] -d domname\n"
22877 #: ../rescue/virt-rescue.pod:11
22880 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
22885 #: ../rescue/virt-rescue.pod:15
22888 " virt-rescue [--options] domname\n"
22893 #: ../rescue/virt-rescue.pod:17
22896 " virt-rescue [--options] disk.img [disk.img ...]\n"
22901 #: ../rescue/virt-rescue.pod:21
22903 "You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
22904 "probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
22905 "you from doing this, but doesn't catch all cases."
22909 #: ../rescue/virt-rescue.pod:25
22911 "However if you use the I<--ro> (read only) option, then you can attach a "
22912 "shell to a live virtual machine. The results might be strange or "
22913 "inconsistent at times but you won't get disk corruption."
22917 #: ../rescue/virt-rescue.pod:31
22919 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
22920 "need for a CD. virt-rescue gives you a rescue shell and some simple "
22921 "recovery tools which you can use to examine or rescue a virtual machine or "
22926 #: ../rescue/virt-rescue.pod:36
22928 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
22929 "on disk image(s):"
22933 #: ../rescue/virt-rescue.pod:39
22936 " virt-rescue -d GuestName\n"
22941 #: ../rescue/virt-rescue.pod:41
22944 " virt-rescue --ro -a /path/to/disk.img\n"
22949 #: ../rescue/virt-rescue.pod:43
22952 " virt-rescue -a /dev/sdc\n"
22957 #: ../rescue/virt-rescue.pod:45
22958 msgid "For live VMs you I<must> use the --ro option."
22962 #: ../rescue/virt-rescue.pod:47
22964 "When you run virt-rescue on a virtual machine or disk image, you are placed "
22965 "in an interactive bash shell where you can use many ordinary Linux "
22966 "commands. What you see in C</> (C</bin>, C</lib> etc) is the rescue "
22967 "appliance. You must mount the virtual machine's filesystems by hand. There "
22968 "is an empty directory called C</sysroot> where you can mount filesystems."
22972 #: ../rescue/virt-rescue.pod:54
22974 "In the example below, we list logical volumes, then choose one to mount "
22975 "under C</sysroot>:"
22979 #: ../rescue/virt-rescue.pod:57
22983 " LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
22984 " lv_root vg_f11x64 -wi-a- 8.83G\n"
22985 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
22986 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
22987 " ><rescue> ls /sysroot\n"
22992 #: ../rescue/virt-rescue.pod:64
22994 "If you don't know what filesystems are available on the virtual machine then "
22995 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
22999 #: ../rescue/virt-rescue.pod:70
23001 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23002 "virtual machine. For example you can use it on a blank file if you want to "
23003 "partition that file (although we would recommend using L<guestfish(1)> "
23004 "instead as it is more suitable for this purpose). You can even use virt-"
23005 "rescue on things like SD cards."
23009 #: ../rescue/virt-rescue.pod:76
23011 "Virt-rescue does not require root. You only need to run it as root if you "
23012 "need root to open the disk image."
23016 #: ../rescue/virt-rescue.pod:79
23018 "This tool is just designed for quick interactive hacking on a virtual "
23019 "machine. For more structured access to a virtual machine disk image, you "
23020 "should use L<guestfs(3)>. To get a structured shell that you can use to "
23021 "make scripted changes to guests, use L<guestfish(1)>."
23025 #: ../rescue/virt-rescue.pod:103
23026 msgid "B<--append kernelopts>"
23027 msgstr "B<--append параметри_ядра>"
23030 #: ../rescue/virt-rescue.pod:105
23031 msgid "Pass additional options to the rescue kernel."
23035 #: ../rescue/virt-rescue.pod:135
23038 " virt-rescue --format=raw -a disk.img\n"
23043 #: ../rescue/virt-rescue.pod:139
23046 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23051 #: ../rescue/virt-rescue.pod:148
23056 #: ../rescue/virt-rescue.pod:150
23057 msgid "B<--memsize MB>"
23058 msgstr "B<--memsize МБ>"
23061 #: ../rescue/virt-rescue.pod:152
23063 "Change the amount of memory allocated to the rescue system. The default is "
23064 "set by libguestfs and is small but adequate for running system tools. The "
23065 "occasional program might need more memory. The parameter is specified in "
23070 #: ../rescue/virt-rescue.pod:157
23071 msgid "B<--network>"
23072 msgstr "B<--network>"
23075 #: ../rescue/virt-rescue.pod:159
23076 msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
23080 #: ../rescue/virt-rescue.pod:165
23081 msgid "Open the image read-only."
23085 #: ../rescue/virt-rescue.pod:175
23087 "Enable SELinux in the rescue appliance. You should read L<guestfs(3)/"
23088 "SELINUX> before using this option."
23092 #: ../rescue/virt-rescue.pod:178
23097 #: ../rescue/virt-rescue.pod:180
23098 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23102 #: ../rescue/virt-rescue.pod:198
23104 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23105 "are done read-write."
23109 #: ../rescue/virt-rescue.pod:211
23110 msgid "Previous versions of virt-rescue allowed you to write either:"
23114 #: ../rescue/virt-rescue.pod:213
23117 " virt-rescue disk.img [disk.img ...]\n"
23122 #: ../rescue/virt-rescue.pod:217
23125 " virt-rescue guestname\n"
23130 #: ../rescue/virt-rescue.pod:225
23135 #: ../rescue/virt-rescue.pod:227
23137 "Adding the I<--network> option enables QEMU user networking in the rescue "
23138 "appliance. There are some differences between user networking and ordinary "
23143 #: ../rescue/virt-rescue.pod:233
23144 msgid "ping does not work"
23148 #: ../rescue/virt-rescue.pod:235
23150 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23151 "send the ping packets, and because virt-rescue must be able to run as non-"
23152 "root, QEMU user networking is not able to emulate the L<ping(8)> command. "
23153 "The ping command will appear to resolve addresses but will not be able to "
23154 "send or receive any packets. This does not mean that the network is not "
23159 #: ../rescue/virt-rescue.pod:242
23160 msgid "cannot receive connections"
23164 #: ../rescue/virt-rescue.pod:244
23165 msgid "QEMU user networking cannot receive incoming connections."
23169 #: ../rescue/virt-rescue.pod:246
23170 msgid "making TCP connections"
23174 #: ../rescue/virt-rescue.pod:248
23176 "The virt-rescue appliance needs to be small and so does not include many "
23177 "network tools. In particular there is no L<telnet(1)> command. You can "
23178 "make TCP connections from the shell using the magical C</dev/tcp/"
23179 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23183 #: ../rescue/virt-rescue.pod:253
23186 " exec 3<>/dev/tcp/redhat.com/80\n"
23187 " echo \"GET /\" >&3\n"
23193 #: ../rescue/virt-rescue.pod:257
23194 msgid "See L<bash(1)> for more details."
23198 #: ../rescue/virt-rescue.pod:263
23200 "Several environment variables affect virt-rescue. See L<guestfs(3)/"
23201 "ENVIRONMENT VARIABLES> for the complete list."
23205 #: ../rescue/virt-rescue.pod:290
23207 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
23208 "libguestfs.org/>."
23212 #: ../resize/virt-resize.pod:5
23213 msgid "virt-resize - Resize a virtual machine disk"
23217 #: ../resize/virt-resize.pod:9
23220 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23221 " [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23222 " [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23227 #: ../resize/virt-resize.pod:15
23229 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23230 "larger or smaller overall, and resizing or deleting any partitions contained "
23235 #: ../resize/virt-resize.pod:19
23237 "Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
23238 "not> be used on live virtual machines - for consistent results, shut the "
23239 "virtual machine down before resizing it."
23243 #: ../resize/virt-resize.pod:23
23245 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23246 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23250 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:576
23251 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:469
23252 #: ../src/guestfs.pod:1287 ../src/guestfs.pod:1426 ../src/guestfs.pod:2675
23257 #: ../resize/virt-resize.pod:33
23259 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23260 "fill the extra 5GB of space."
23264 #: ../resize/virt-resize.pod:36
23267 " virt-filesystems --long -h --all -a olddisk\n"
23272 #: ../resize/virt-resize.pod:38
23275 " truncate -r olddisk newdisk\n"
23276 " truncate -s +5G newdisk\n"
23281 #: ../resize/virt-resize.pod:41
23284 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23285 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23290 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:583
23291 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:475
23292 #: ../src/guestfs.pod:1291 ../src/guestfs.pod:1430 ../src/guestfs.pod:2700
23297 #: ../resize/virt-resize.pod:46
23299 "As above, but make the /boot partition 200MB bigger, while giving the "
23300 "remaining space to /dev/sda2:"
23304 #: ../resize/virt-resize.pod:49
23307 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23308 " olddisk newdisk\n"
23313 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:589
23314 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:486
23315 #: ../src/guestfs.pod:1436
23320 #: ../resize/virt-resize.pod:54
23322 "As in the first example, but expand a logical volume as the final step. "
23323 "This is what you would typically use for Linux guests that use LVM:"
23327 #: ../resize/virt-resize.pod:58
23330 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23331 " olddisk newdisk\n"
23336 #: ../resize/virt-resize.pod:61
23341 #: ../resize/virt-resize.pod:63
23343 "As in the first example, but the output format will be qcow2 instead of a "
23348 #: ../resize/virt-resize.pod:66
23351 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23352 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23357 #: ../resize/virt-resize.pod:71
23358 msgid "DETAILED USAGE"
23359 msgstr "ДОКЛАДНІШЕ ЩОДО ВИКОРИСТАННЯ"
23362 #: ../resize/virt-resize.pod:73
23363 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23364 msgstr "РОЗШИРЕННЯ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
23367 #: ../resize/virt-resize.pod:77
23368 msgid "1. Shut down the virtual machine"
23372 #: ../resize/virt-resize.pod:79
23373 msgid "2. Locate input disk image"
23377 #: ../resize/virt-resize.pod:81
23379 "Locate the input disk image (ie. the file or device on the host containing "
23380 "the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
23381 "dumpxml> like this to find the disk image name:"
23385 #: ../resize/virt-resize.pod:85
23388 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23389 " Found 1 nodes:\n"
23391 " <source dev=\"/dev/vg/lv_guest\" />\n"
23396 #: ../resize/virt-resize.pod:90
23397 msgid "3. Look at current sizing"
23401 #: ../resize/virt-resize.pod:92
23402 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23406 #: ../resize/virt-resize.pod:95
23409 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23410 " Name Type Size Parent\n"
23411 " /dev/sda1 partition 101M /dev/sda\n"
23412 " /dev/sda2 partition 7.9G /dev/sda\n"
23413 " /dev/sda device 8.0G -\n"
23418 #: ../resize/virt-resize.pod:101
23420 "(This example is a virtual machine with an 8 GB disk which we would like to "
23421 "expand up to 10 GB)."
23425 #: ../resize/virt-resize.pod:104
23426 msgid "4. Create output disk"
23430 #: ../resize/virt-resize.pod:106
23432 "Virt-resize cannot do in-place disk modifications. You have to have space "
23433 "to store the resized output disk."
23437 #: ../resize/virt-resize.pod:109
23439 "To store the resized disk image in a file, create a file of a suitable size:"
23443 #: ../resize/virt-resize.pod:112
23446 " # rm -f outdisk\n"
23447 " # truncate -s 10G outdisk\n"
23452 #: ../resize/virt-resize.pod:115
23453 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23457 #: ../resize/virt-resize.pod:117
23460 " # lvcreate -L 10G -n lv_name vg_name\n"
23465 #: ../resize/virt-resize.pod:119
23466 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23470 #: ../resize/virt-resize.pod:121
23473 " # virsh pool-list\n"
23474 " # virsh vol-create-as poolname newvol 10G\n"
23479 #: ../resize/virt-resize.pod:124
23481 msgstr "5. Зміна розміру"
23484 #: ../resize/virt-resize.pod:126
23486 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23487 "file) and the output disk. The output disk is the one created in the "
23492 #: ../resize/virt-resize.pod:130
23495 " # virt-resize indisk outdisk\n"
23500 #: ../resize/virt-resize.pod:132
23502 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23503 "I<without> resizing or changing any existing partitions. If C<outdisk> is "
23504 "larger, then an extra, empty partition is created at the end of the disk "
23505 "covering the extra space. If C<outdisk> is smaller, then it will give an "
23510 #: ../resize/virt-resize.pod:138
23512 "More realistically you'd want to expand existing partitions in the disk "
23513 "image by passing extra options (for the full list see the L</OPTIONS> "
23518 #: ../resize/virt-resize.pod:142
23520 "L</--expand> is the most useful option. It expands the named partition "
23521 "within the disk to fill any extra space:"
23525 #: ../resize/virt-resize.pod:145
23528 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23533 #: ../resize/virt-resize.pod:147
23535 "(In this case, an extra partition is I<not> created at the end of the disk, "
23536 "because there will be no unused space)."
23540 #: ../resize/virt-resize.pod:150
23542 "L</--resize> is the other commonly used option. The following would "
23543 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23544 "rest of the available space:"
23548 #: ../resize/virt-resize.pod:154
23551 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23552 " indisk outdisk\n"
23557 #: ../resize/virt-resize.pod:157
23559 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23560 "if virt-resize knows how, it will resize the contents, the equivalent of "
23561 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23562 "or L<btrfs(8)>. However virt-resize does not know how to resize some "
23563 "filesystems, so you would have to online resize them after booting the guest."
23567 #: ../resize/virt-resize.pod:164
23568 msgid "Other options are covered below."
23572 #: ../resize/virt-resize.pod:166
23574 msgstr "6. Перевірка"
23577 #: ../resize/virt-resize.pod:168
23578 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23582 #: ../resize/virt-resize.pod:170
23583 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23587 #: ../resize/virt-resize.pod:172
23590 " # virsh edit guestname\n"
23595 #: ../resize/virt-resize.pod:174
23597 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
23598 "html#elementsDisks>"
23602 #: ../resize/virt-resize.pod:177
23603 msgid "Then start up the domain with the new, resized disk:"
23607 #: ../resize/virt-resize.pod:179
23610 " # virsh start guestname\n"
23615 #: ../resize/virt-resize.pod:181
23617 "and check that it still works. See also the L</NOTES> section below for "
23618 "additional information."
23622 #: ../resize/virt-resize.pod:184
23623 msgid "7. Resize LVs etc inside the guest"
23627 #: ../resize/virt-resize.pod:186
23628 msgid "(This can also be done offline using L<guestfish(1)>)"
23632 #: ../resize/virt-resize.pod:188
23634 "Once the guest has booted you should see the new space available, at least "
23635 "for filesystems that virt-resize knows how to resize, and for PVs. The user "
23636 "may need to resize LVs inside PVs, and also resize filesystem types that "
23637 "virt-resize does not know how to expand."
23641 #: ../resize/virt-resize.pod:195
23642 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23646 #: ../resize/virt-resize.pod:197
23648 "Shrinking is somewhat more complex than expanding, and only an overview is "
23653 #: ../resize/virt-resize.pod:200
23655 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23656 "filesystems). The user has to shrink content before passing the disk image "
23657 "to virt-resize, and virt-resize will check that the content has been shrunk "
23662 #: ../resize/virt-resize.pod:205
23663 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23667 #: ../resize/virt-resize.pod:207
23669 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23670 "steps 3 and 4 above to allocate a new disk image."
23674 #: ../resize/virt-resize.pod:210
23676 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23680 #: ../resize/virt-resize.pod:213
23681 msgid "IGNORING OR DELETING PARTITIONS"
23685 #: ../resize/virt-resize.pod:215
23687 "virt-resize also gives a convenient way to ignore or delete partitions when "
23688 "copying from the input disk to the output disk. Ignoring a partition speeds "
23689 "up the copy where you don't care about the existing contents of a "
23690 "partition. Deleting a partition removes it completely, but note that it "
23691 "also renumbers any partitions after the one which is deleted, which can "
23692 "leave some guests unbootable."
23696 #: ../resize/virt-resize.pod:222
23697 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23701 #: ../resize/virt-resize.pod:224
23703 "If the input disk is in qcow2 format, then you may prefer that the output is "
23704 "in qcow2 format as well. Alternately, virt-resize can convert the format on "
23705 "the fly. The output format is simply determined by the format of the empty "
23706 "output container that you provide. Thus to create qcow2 output, use:"
23710 #: ../resize/virt-resize.pod:230
23713 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23718 #: ../resize/virt-resize.pod:232
23719 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23723 #: ../resize/virt-resize.pod:234
23724 msgid "Similarly, to get non-sparse raw output use:"
23728 #: ../resize/virt-resize.pod:236
23731 " fallocate -l size outdisk\n"
23736 #: ../resize/virt-resize.pod:238
23738 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
23739 "dev/zero of=outdisk bs=1M count=..>)"
23743 #: ../resize/virt-resize.pod:247 ../sparsify/virt-sparsify.pod:105
23744 msgid "Display help."
23748 #: ../resize/virt-resize.pod:249
23750 #| msgid "B<--ignore part>"
23751 msgid "B<--align-first auto>"
23752 msgstr "B<--ignore розділ>"
23755 #: ../resize/virt-resize.pod:251
23757 #| msgid "B<--listen>"
23758 msgid "B<--align-first never>"
23759 msgstr "B<--listen>"
23762 #: ../resize/virt-resize.pod:253
23763 msgid "B<--align-first always>"
23767 #: ../resize/virt-resize.pod:255
23769 "Align the first partition for improved performance (see also the I<--"
23770 "alignment> option)."
23774 #: ../resize/virt-resize.pod:258
23776 "The default is I<--align-first auto> which only aligns the first partition "
23777 "if it is safe to do so. That is, only when we know how to fix the "
23778 "bootloader automatically, and at the moment that can only be done for "
23783 #: ../resize/virt-resize.pod:263
23785 "I<--align-first never> means we never move the first partition. This is the "
23786 "safest option. Try this if the guest does not boot after resizing."
23790 #: ../resize/virt-resize.pod:267
23792 "I<--align-first always> means we always align the first partition (if it "
23793 "needs to be aligned). For some guests this will break the bootloader, "
23794 "making the guest unbootable."
23798 #: ../resize/virt-resize.pod:271
23800 #| msgid "B<--time-t>"
23801 msgid "B<--alignment N>"
23802 msgstr "B<--time-t>"
23805 #: ../resize/virt-resize.pod:273
23807 "Set the alignment of partitions to C<N> sectors. The default in virt-resize "
23808 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
23812 #: ../resize/virt-resize.pod:277
23814 "Assuming 512 byte sector size inside the guest, here are some suitable "
23819 #: ../resize/virt-resize.pod:282
23820 msgid "I<--alignment 1> (512 bytes)"
23824 #: ../resize/virt-resize.pod:284
23826 "The partitions would be packed together as closely as possible, but would be "
23827 "completely unaligned. In some cases this can cause very poor performance. "
23828 "See L<virt-alignment-scan(1)> for further details."
23832 #: ../resize/virt-resize.pod:288
23833 msgid "I<--alignment 8> (4K)"
23837 #: ../resize/virt-resize.pod:290
23839 "This would be the minimum acceptable alignment for reasonable performance on "
23844 #: ../resize/virt-resize.pod:293
23845 msgid "I<--alignment 128> (64K)"
23849 #: ../resize/virt-resize.pod:295
23851 "This alignment provides good performance when the host is using high end "
23856 #: ../resize/virt-resize.pod:298
23857 msgid "I<--alignment 2048> (1M)"
23861 #: ../resize/virt-resize.pod:300
23863 "This is the standard alignment used by all newly installed guests since "
23868 #: ../resize/virt-resize.pod:305
23873 #: ../resize/virt-resize.pod:307 ../tools/virt-make-fs.pl:177
23874 #: ../tools/virt-win-reg.pl:120
23876 msgstr "B<--debug>"
23879 #: ../resize/virt-resize.pod:309 ../tools/virt-win-reg.pl:122
23880 msgid "Enable debugging messages."
23884 #: ../resize/virt-resize.pod:311
23885 msgid "B<--delete part>"
23886 msgstr "B<--delete розділ>"
23889 #: ../resize/virt-resize.pod:313
23891 "Delete the named partition. It would be more accurate to describe this as "
23892 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
23893 "the original disk image is left intact."
23897 #: ../resize/virt-resize.pod:317
23899 "Note that when you delete a partition, then anything contained in the "
23900 "partition is also deleted. Furthermore, this causes any partitions that "
23901 "come after to be I<renumbered>, which can easily make your guest unbootable."
23905 #: ../resize/virt-resize.pod:322 ../resize/virt-resize.pod:383
23906 #: ../resize/virt-resize.pod:510 ../sparsify/virt-sparsify.pod:145
23907 msgid "You can give this option multiple times."
23911 #: ../resize/virt-resize.pod:324
23912 msgid "B<--expand part>"
23913 msgstr "B<--expand розділ>"
23916 #: ../resize/virt-resize.pod:326
23918 "Expand the named partition so it uses up all extra space (space left over "
23919 "after any other resize changes that you request have been done)."
23923 #: ../resize/virt-resize.pod:329
23925 "If virt-resize knows how, it will expand the direct content of the "
23926 "partition. For example, if the partition is an LVM PV, it will expand the "
23927 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
23928 "content it doesn't know about alone."
23932 #: ../resize/virt-resize.pod:334
23933 msgid "Currently virt-resize can resize:"
23937 #: ../resize/virt-resize.pod:340
23938 msgid "ext2, ext3 and ext4 filesystems."
23942 #: ../resize/virt-resize.pod:344
23943 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
23947 #: ../resize/virt-resize.pod:346
23949 "The filesystem must have been shut down consistently last time it was used. "
23950 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
23951 "consistency check, so at the first boot after resizing Windows will check "
23956 #: ../resize/virt-resize.pod:353
23958 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
23959 "inside the PV, but see the I<--LV-expand> option. The user could also "
23960 "resize LVs as desired after boot."
23964 #: ../resize/virt-resize.pod:359
23965 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
23969 #: ../resize/virt-resize.pod:363 ../resize/virt-resize.pod:538
23970 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
23974 #: ../resize/virt-resize.pod:365 ../sparsify/virt-sparsify.pod:125
23975 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
23976 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
23977 msgid "B<--format> raw"
23978 msgstr "B<--format> raw"
23981 #: ../resize/virt-resize.pod:367 ../sparsify/virt-sparsify.pod:129
23983 "Specify the format of the input disk image. If this flag is not given then "
23984 "it is auto-detected from the image itself."
23988 #: ../resize/virt-resize.pod:373
23990 "Note that this option I<does not> affect the output format. See L</QCOW2 "
23991 "AND NON-SPARSE RAW FORMATS>."
23995 #: ../resize/virt-resize.pod:376
23996 msgid "B<--ignore part>"
23997 msgstr "B<--ignore розділ>"
24000 #: ../resize/virt-resize.pod:378
24002 "Ignore the named partition. Effectively this means the partition is "
24003 "allocated on the destination disk, but the content is not copied across from "
24004 "the source disk. The content of the partition will be blank (all zero "
24009 #: ../resize/virt-resize.pod:385
24010 msgid "B<--LV-expand logvol>"
24011 msgstr "B<--LV-expand логічний_том>"
24014 #: ../resize/virt-resize.pod:387
24016 "This takes the logical volume and, as a final step, expands it to fill all "
24017 "the space available in its volume group. A typical usage, assuming a Linux "
24018 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
24019 "lv_root> would be:"
24023 #: ../resize/virt-resize.pod:392
24026 " virt-resize indisk outdisk \\\n"
24027 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24032 #: ../resize/virt-resize.pod:395
24034 "This would first expand the partition (and PV), and then expand the root "
24035 "device to fill the extra space in the PV."
24039 #: ../resize/virt-resize.pod:398
24041 "The contents of the LV are also resized if virt-resize knows how to do "
24042 "that. You can stop virt-resize from trying to expand the content by using "
24043 "the option I<--no-expand-content>."
24047 #: ../resize/virt-resize.pod:402
24048 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24052 #: ../resize/virt-resize.pod:404
24054 "You can give this option multiple times, I<but> it doesn't make sense to do "
24055 "this unless the logical volumes you specify are all in different volume "
24060 #: ../resize/virt-resize.pod:408 ../sparsify/virt-sparsify.pod:147
24061 msgid "B<--machine-readable>"
24065 #: ../resize/virt-resize.pod:410 ../sparsify/virt-sparsify.pod:149
24067 "This option is used to make the output more machine friendly when being "
24068 "parsed by other programs. See L</MACHINE READABLE OUTPUT> below."
24072 #: ../resize/virt-resize.pod:416
24073 msgid "B<--dryrun>"
24074 msgstr "B<--dryrun>"
24077 #: ../resize/virt-resize.pod:418
24078 msgid "Print a summary of what would be done, but don't do anything."
24082 #: ../resize/virt-resize.pod:420
24083 msgid "B<--no-copy-boot-loader>"
24084 msgstr "B<--no-copy-boot-loader>"
24087 #: ../resize/virt-resize.pod:422
24089 "By default, virt-resize copies over some sectors at the start of the disk "
24090 "(up to the beginning of the first partition). Commonly these sectors "
24091 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24092 "in order for the guest to boot correctly."
24096 #: ../resize/virt-resize.pod:427
24098 "If you specify this flag, then this initial copy is not done. You may need "
24099 "to reinstall the boot loader in this case."
24103 #: ../resize/virt-resize.pod:430
24104 msgid "B<--no-extra-partition>"
24105 msgstr "B<--no-extra-partition>"
24108 #: ../resize/virt-resize.pod:432
24110 "By default, virt-resize creates an extra partition if there is any extra, "
24111 "unused space after all resizing has happened. Use this option to prevent "
24112 "the extra partition from being created. If you do this then the extra space "
24113 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24114 "tool in the guest."
24118 #: ../resize/virt-resize.pod:438
24120 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24125 #: ../resize/virt-resize.pod:441
24126 msgid "B<--no-expand-content>"
24127 msgstr "B<--no-expand-content>"
24130 #: ../resize/virt-resize.pod:443
24132 "By default, virt-resize will try to expand the direct contents of "
24133 "partitions, if it knows how (see I<--expand> option above)."
24137 #: ../resize/virt-resize.pod:446
24139 "If you give the I<--no-expand-content> option then virt-resize will not "
24144 #: ../resize/virt-resize.pod:449
24145 msgid "B<--ntfsresize-force>"
24146 msgstr "B<--ntfsresize-force>"
24149 #: ../resize/virt-resize.pod:451
24151 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24152 "the NTFS disk is marked as needing a consistency check. You have to use "
24153 "this option if you want to resize a Windows guest multiple times without "
24154 "booting into Windows between each resize."
24158 #: ../resize/virt-resize.pod:457
24159 msgid "B<--output-format> raw"
24160 msgstr "B<--output-format> raw"
24163 #: ../resize/virt-resize.pod:459
24165 "Specify the format of the output disk image. If this flag is not given then "
24166 "it is auto-detected from the image itself."
24170 #: ../resize/virt-resize.pod:465
24172 "Note that this option I<does not create> the output format. This option "
24173 "just tells libguestfs what it is so it doesn't try to guess it. You still "
24174 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
24175 "SPARSE RAW FORMATS>."
24179 #: ../resize/virt-resize.pod:474
24180 msgid "Don't print the summary."
24184 #: ../resize/virt-resize.pod:476
24185 msgid "B<--resize part=size>"
24186 msgstr "B<--resize розділ=розмір>"
24189 #: ../resize/virt-resize.pod:478
24191 "Resize the named partition (expanding or shrinking it) so that it has the "
24196 #: ../resize/virt-resize.pod:481
24198 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24199 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24200 "size; or as a relative number or percentage. For example:"
24204 #: ../resize/virt-resize.pod:487
24207 " --resize /dev/sda2=10G\n"
24212 #: ../resize/virt-resize.pod:489
24215 " --resize /dev/sda4=90%\n"
24220 #: ../resize/virt-resize.pod:491
24223 " --resize /dev/sda2=+1G\n"
24228 #: ../resize/virt-resize.pod:493
24231 " --resize /dev/sda2=-200M\n"
24236 #: ../resize/virt-resize.pod:495
24239 " --resize /dev/sda1=+128K\n"
24244 #: ../resize/virt-resize.pod:497
24247 " --resize /dev/sda1=+10%\n"
24252 #: ../resize/virt-resize.pod:499
24255 " --resize /dev/sda1=-10%\n"
24260 #: ../resize/virt-resize.pod:501
24262 "You can increase the size of any partition. Virt-resize will expand the "
24263 "direct content of the partition if it knows how (see I<--expand> below)."
24267 #: ../resize/virt-resize.pod:505
24269 "You can only I<decrease> the size of partitions that contain filesystems or "
24270 "PVs which have already been shrunk. Virt-resize will check this has been "
24271 "done before proceeding, or else will print an error (see also I<--resize-"
24276 #: ../resize/virt-resize.pod:512
24277 msgid "B<--resize-force part=size>"
24278 msgstr "B<--resize-force розділ=розмір>"
24281 #: ../resize/virt-resize.pod:514
24283 "This is the same as I<--resize> except that it will let you decrease the "
24284 "size of any partition. Generally this means you will lose any data which "
24285 "was at the end of the partition you shrink, but you may not care about that "
24286 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24287 "as a swap partition)."
24291 #: ../resize/virt-resize.pod:520
24292 msgid "See also the I<--ignore> option."
24296 #: ../resize/virt-resize.pod:522
24297 msgid "B<--shrink part>"
24298 msgstr "B<--shrink розділ>"
24301 #: ../resize/virt-resize.pod:524
24303 "Shrink the named partition until the overall disk image fits in the "
24304 "destination. The named partition B<must> contain a filesystem or PV which "
24305 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24306 "online tools). Virt-resize will check this and give an error if it has not "
24311 #: ../resize/virt-resize.pod:530
24313 "The amount by which the overall disk must be shrunk (after carrying out all "
24314 "other operations requested by the user) is called the \"deficit\". For "
24315 "example, a straight copy (assume no other operations) from a 5GB disk image "
24316 "to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
24317 "would give an error unless the user specified a partition to shrink and that "
24318 "partition had more than a gigabyte of free space."
24322 #: ../resize/virt-resize.pod:548 ../sparsify/virt-sparsify.pod:177
24323 msgid "MACHINE READABLE OUTPUT"
24327 #: ../resize/virt-resize.pod:550
24329 "The I<--machine-readable> option can be used to make the output more machine "
24330 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24335 #: ../resize/virt-resize.pod:554 ../sparsify/virt-sparsify.pod:183
24336 msgid "There are two ways to use this option."
24340 #: ../resize/virt-resize.pod:556
24342 "Firstly use the option on its own to query the capabilities of the virt-"
24343 "resize binary. Typical output looks like this:"
24347 #: ../resize/virt-resize.pod:559
24350 " $ virt-resize --machine-readable\n"
24352 " ntfsresize-force\n"
24360 #: ../resize/virt-resize.pod:566 ../sparsify/virt-sparsify.pod:193
24362 "A list of features is printed, one per line, and the program exits with "
24367 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:196
24369 "Secondly use the option in conjunction with other options to make the "
24370 "regular program output more machine friendly."
24374 #: ../resize/virt-resize.pod:572 ../sparsify/virt-sparsify.pod:199
24375 msgid "At the moment this means:"
24379 #: ../resize/virt-resize.pod:578 ../sparsify/virt-sparsify.pod:205
24381 "Progress bar messages can be parsed from stdout by looking for this regular "
24386 #: ../resize/virt-resize.pod:581 ../sparsify/virt-sparsify.pod:208
24389 " ^[0-9]+/[0-9]+$\n"
24394 #: ../resize/virt-resize.pod:585 ../sparsify/virt-sparsify.pod:212
24396 "The calling program should treat messages sent to stdout (except for "
24397 "progress bar messages) as status messages. They can be logged and/or "
24398 "displayed to the user."
24402 #: ../resize/virt-resize.pod:591
24404 "The calling program should treat messages sent to stderr as error messages. "
24405 "In addition, virt-resize exits with a non-zero status code if there was a "
24410 #: ../resize/virt-resize.pod:597
24412 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
24413 "readable> option and will return an error."
24417 #: ../resize/virt-resize.pod:602
24418 msgid "\"Partition 1 does not end on cylinder boundary.\""
24422 #: ../resize/virt-resize.pod:604
24424 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
24425 "alignment> parameter). Usually this means the partitions will not be "
24426 "aligned to the ancient CHS geometry. However CHS geometry is meaningless "
24427 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24428 "drives. Alignment of partitions to cylinders is not required by any modern "
24429 "operating system."
24433 #: ../resize/virt-resize.pod:611
24434 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24438 #: ../resize/virt-resize.pod:613
24440 "In Windows Vista and later versions, Microsoft switched to using a separate "
24441 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
24442 "and C</dev/sda2> is the main (C:) drive. Resizing the first (boot) "
24443 "partition causes the bootloader to fail with C<0xC0000225> error. Resizing "
24444 "the second partition (ie. C: drive) should work."
24448 #: ../resize/virt-resize.pod:620
24450 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24451 "NTFS partitions have been expanded. This is just a safety check and (unless "
24452 "it find errors) is nothing to worry about."
24456 #: ../resize/virt-resize.pod:624
24457 msgid "GUEST BOOT STUCK AT \"GRUB\""
24461 #: ../resize/virt-resize.pod:626
24463 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24464 "printing C<GRUB> on the console, try reinstalling grub."
24468 #: ../resize/virt-resize.pod:629
24471 " guestfish -i -a newdisk\n"
24472 " ><fs> cat /boot/grub/device.map\n"
24473 " # check the contents of this file are sensible or\n"
24474 " # edit the file if necessary\n"
24475 " ><fs> grub-install / /dev/vda\n"
24481 #: ../resize/virt-resize.pod:636
24483 "For more flexible guest reconfiguration, including if you need to specify "
24484 "other parameters to grub-install, use L<virt-rescue(1)>."
24488 #: ../resize/virt-resize.pod:639
24489 msgid "ALTERNATIVE TOOLS"
24493 #: ../resize/virt-resize.pod:641
24495 "There are several proprietary tools for resizing partitions. We won't "
24496 "mention any here."
24500 #: ../resize/virt-resize.pod:644
24502 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24503 "operations on disk images. They can resize and move partitions, but I don't "
24504 "think they can do anything with the contents, and they certainly don't "
24509 #: ../resize/virt-resize.pod:649
24511 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24512 "but at a much lower level. You will probably end up hand-calculating sector "
24513 "offsets, which is something that virt-resize was designed to avoid. If you "
24514 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24519 #: ../resize/virt-resize.pod:669
24521 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
24522 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
24523 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
24524 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
24525 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24529 #: ../ruby/examples/guestfs-ruby.pod:5
24530 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24534 #: ../ruby/examples/guestfs-ruby.pod:9
24537 " require 'guestfs'\n"
24538 " g = Guestfs::Guestfs.new()\n"
24539 " g.add_drive_opts(\"disk.img\",\n"
24540 " :readonly => 1, :format => \"raw\")\n"
24546 #: ../ruby/examples/guestfs-ruby.pod:17
24548 "This manual page documents how to call libguestfs from the Ruby programming "
24549 "language. This page just documents the differences from the C API and gives "
24550 "some examples. If you are not familiar with using libguestfs, you also need "
24551 "to read L<guestfs(3)>."
24555 #: ../ruby/examples/guestfs-ruby.pod:24
24557 "Errors from libguestfs functions are mapped into the C<Error> exception. "
24558 "This has a single parameter which is the error message (a string)."
24562 #: ../ruby/examples/guestfs-ruby.pod:38
24564 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24565 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
24566 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24570 #: ../sparsify/virt-sparsify.pod:5
24571 msgid "virt-sparsify - Make a virtual machine disk sparse"
24575 #: ../sparsify/virt-sparsify.pod:9
24578 " virt-sparsify [--options] indisk outdisk\n"
24583 #: ../sparsify/virt-sparsify.pod:13
24585 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24586 "image) sparse a.k.a. thin-provisioned. This means that free space within "
24587 "the disk image can be converted back to free space on the host."
24591 #: ../sparsify/virt-sparsify.pod:18
24593 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
24594 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24598 #: ../sparsify/virt-sparsify.pod:21
24600 "Virt-sparsify can also convert between some disk formats, for example "
24601 "converting a raw disk image to a thin-provisioned qcow2 image."
24605 #: ../sparsify/virt-sparsify.pod:24
24607 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24608 "machines. If a virtual machine has more than one attached disk, you must "
24609 "sparsify each one separately."
24613 #: ../sparsify/virt-sparsify.pod:28
24614 msgid "IMPORTANT LIMITATIONS"
24618 #: ../sparsify/virt-sparsify.pod:34
24620 "Virt-sparsify does not do in-place modifications. It copies from a source "
24621 "image to a destination image, leaving the source unchanged. I<Check that "
24622 "the sparsification was successful before deleting the source image>."
24626 #: ../sparsify/virt-sparsify.pod:41
24627 msgid "The virtual machine I<must be shut down> before using this tool."
24631 #: ../sparsify/virt-sparsify.pod:45
24633 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24634 "(1 temporary copy + 1 destination image). This is in the worst case and "
24635 "usually much less space is required."
24639 #: ../sparsify/virt-sparsify.pod:51
24641 "Virt-sparsify cannot resize disk images. To do that, use L<virt-resize(1)>."
24645 #: ../sparsify/virt-sparsify.pod:56
24646 msgid "Virt-sparsify cannot handle encrypted disks."
24650 #: ../sparsify/virt-sparsify.pod:60
24652 "Virt-sparsify cannot yet sparsify the space between partitions. Note that "
24653 "this space is often used for critical items like bootloaders so it's not "
24658 #: ../sparsify/virt-sparsify.pod:66
24660 "Virt-sparsify does not yet know how to sparsify swapspace. It is not safe "
24661 "to do this unless we can be sure there is no hibernation data, so at the "
24662 "moment swap partitions are ignored."
24666 #: ../sparsify/virt-sparsify.pod:72
24668 "You may also want to read the manual pages for the associated tools L<virt-"
24669 "filesystems(1)> and L<virt-df(1)> before starting."
24673 #: ../sparsify/virt-sparsify.pod:77
24674 msgid "Typical usage is:"
24678 #: ../sparsify/virt-sparsify.pod:79
24681 " virt-sparsify indisk outdisk\n"
24686 #: ../sparsify/virt-sparsify.pod:81
24688 "which copies C<indisk> to C<outdisk>, making the output sparse. C<outdisk> "
24689 "is created, or overwritten if it already exists. The format of the input "
24690 "disk is detected (eg. qcow2) and the same format is used for the output disk."
24694 #: ../sparsify/virt-sparsify.pod:86
24695 msgid "To convert between formats, use the I<--convert> option:"
24699 #: ../sparsify/virt-sparsify.pod:88
24702 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24707 #: ../sparsify/virt-sparsify.pod:90
24709 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24710 "can find within the source disk image. You can get it to ignore (don't zero "
24711 "free space on) certain filesystems by doing:"
24715 #: ../sparsify/virt-sparsify.pod:94
24718 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24723 #: ../sparsify/virt-sparsify.pod:96
24725 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24729 #: ../sparsify/virt-sparsify.pod:107
24730 msgid "B<--convert> raw"
24734 #: ../sparsify/virt-sparsify.pod:109
24735 msgid "B<--convert> qcow2"
24739 #: ../sparsify/virt-sparsify.pod:111
24740 msgid "B<--convert> [other formats]"
24744 #: ../sparsify/virt-sparsify.pod:113
24746 "Use C<output-format> as the format for the destination image. If this is "
24747 "not specified, then the input format is used."
24751 #: ../sparsify/virt-sparsify.pod:116
24752 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
24756 #: ../sparsify/virt-sparsify.pod:118
24758 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
24759 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
24763 #: ../sparsify/virt-sparsify.pod:122
24765 "Specifying the I<--convert> option is usually a good idea, because then virt-"
24766 "sparsify doesn't need to try to guess the input format."
24770 #: ../sparsify/virt-sparsify.pod:127
24771 msgid "B<--format> qcow2"
24775 #: ../sparsify/virt-sparsify.pod:135
24776 msgid "B<--ignore> filesystem"
24780 #: ../sparsify/virt-sparsify.pod:137
24781 msgid "B<--ignore> volgroup"
24785 #: ../sparsify/virt-sparsify.pod:139
24787 "Ignore the named filesystem. Free space on the filesystem will not be "
24788 "zeroed, but existing blocks of zeroes will still be sparsified."
24792 #: ../sparsify/virt-sparsify.pod:142
24794 "In the second form, this ignores the named volume group. Use the volume "
24795 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
24799 #: ../sparsify/virt-sparsify.pod:157
24800 msgid "This disables progress bars and other unnecessary output."
24804 #: ../sparsify/virt-sparsify.pod:179
24806 "The I<--machine-readable> option can be used to make the output more machine "
24807 "friendly, which is useful when calling virt-sparsify from other programs, "
24812 #: ../sparsify/virt-sparsify.pod:185
24814 "Firstly use the option on its own to query the capabilities of the virt-"
24815 "sparsify binary. Typical output looks like this:"
24819 #: ../sparsify/virt-sparsify.pod:188
24822 " $ virt-sparsify --machine-readable\n"
24830 #: ../sparsify/virt-sparsify.pod:218
24832 "The calling program should treat messages sent to stderr as error messages. "
24833 "In addition, virt-sparsify exits with a non-zero status code if there was a "
24838 #: ../sparsify/virt-sparsify.pod:224
24840 "All versions of virt-sparsify have supported the I<--machine-readable> "
24845 #: ../sparsify/virt-sparsify.pod:238
24847 "Location of the temporary directory used for the potentially large temporary "
24852 #: ../sparsify/virt-sparsify.pod:241
24854 "You should ensure there is enough free space in the worst case for a full "
24855 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
24856 "to another directory that has enough space."
24860 #: ../sparsify/virt-sparsify.pod:245
24861 msgid "This defaults to C</tmp>."
24865 #: ../sparsify/virt-sparsify.pod:249
24867 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
24871 #: ../sparsify/virt-sparsify.pod:253
24873 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
24874 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
24875 "(1)>, L<http://libguestfs.org/>."
24879 #: ../src/guestfs-actions.pod:1
24880 msgid "guestfs_add_cdrom"
24884 #: ../src/guestfs-actions.pod:3
24888 " guestfs_add_cdrom (guestfs_h *g,\n"
24889 " const char *filename);\n"
24894 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:255
24895 #: ../src/guestfs-actions.pod:276
24897 "I<This function is deprecated.> In new code, use the L</"
24898 "guestfs_add_drive_opts> call instead."
24902 #: ../src/guestfs-actions.pod:24
24904 "This call checks for the existence of C<filename>. This stops you from "
24905 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24906 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call "
24911 #: ../src/guestfs-actions.pod:31
24913 "If you just want to add an ISO file (often you use this as an efficient way "
24914 "to transfer large files into the guest), then you should probably use "
24915 "C<guestfs_add_drive_ro> instead."
24919 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
24920 #: ../src/guestfs-actions.pod:207 ../src/guestfs-actions.pod:244
24921 #: ../src/guestfs-actions.pod:265 ../src/guestfs-actions.pod:286
24922 #: ../src/guestfs-actions.pod:299 ../src/guestfs-actions.pod:313
24923 #: ../src/guestfs-actions.pod:433 ../src/guestfs-actions.pod:453
24924 #: ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:512
24925 #: ../src/guestfs-actions.pod:540 ../src/guestfs-actions.pod:558
24926 #: ../src/guestfs-actions.pod:625 ../src/guestfs-actions.pod:658
24927 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:687
24928 #: ../src/guestfs-actions.pod:786 ../src/guestfs-actions.pod:804
24929 #: ../src/guestfs-actions.pod:818 ../src/guestfs-actions.pod:832
24930 #: ../src/guestfs-actions.pod:869 ../src/guestfs-actions.pod:1052
24931 #: ../src/guestfs-actions.pod:1072 ../src/guestfs-actions.pod:1090
24932 #: ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1239
24933 #: ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1303
24934 #: ../src/guestfs-actions.pod:1322 ../src/guestfs-actions.pod:1336
24935 #: ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1426
24936 #: ../src/guestfs-actions.pod:1457 ../src/guestfs-actions.pod:1482
24937 #: ../src/guestfs-actions.pod:1524 ../src/guestfs-actions.pod:1637
24938 #: ../src/guestfs-actions.pod:1664 ../src/guestfs-actions.pod:1879
24939 #: ../src/guestfs-actions.pod:1901 ../src/guestfs-actions.pod:1988
24940 #: ../src/guestfs-actions.pod:2496 ../src/guestfs-actions.pod:2640
24941 #: ../src/guestfs-actions.pod:2701 ../src/guestfs-actions.pod:2736
24942 #: ../src/guestfs-actions.pod:3793 ../src/guestfs-actions.pod:3808
24943 #: ../src/guestfs-actions.pod:3833 ../src/guestfs-actions.pod:4022
24944 #: ../src/guestfs-actions.pod:4036 ../src/guestfs-actions.pod:4049
24945 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4078
24946 #: ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4186
24947 #: ../src/guestfs-actions.pod:4206 ../src/guestfs-actions.pod:4223
24948 #: ../src/guestfs-actions.pod:4246 ../src/guestfs-actions.pod:4269
24949 #: ../src/guestfs-actions.pod:4304 ../src/guestfs-actions.pod:4323
24950 #: ../src/guestfs-actions.pod:4342 ../src/guestfs-actions.pod:4377
24951 #: ../src/guestfs-actions.pod:4389 ../src/guestfs-actions.pod:4425
24952 #: ../src/guestfs-actions.pod:4441 ../src/guestfs-actions.pod:4454
24953 #: ../src/guestfs-actions.pod:4469 ../src/guestfs-actions.pod:4486
24954 #: ../src/guestfs-actions.pod:4579 ../src/guestfs-actions.pod:4599
24955 #: ../src/guestfs-actions.pod:4612 ../src/guestfs-actions.pod:4663
24956 #: ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:4699
24957 #: ../src/guestfs-actions.pod:4715 ../src/guestfs-actions.pod:4729
24958 #: ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:4760
24959 #: ../src/guestfs-actions.pod:4775 ../src/guestfs-actions.pod:4802
24960 #: ../src/guestfs-actions.pod:4865 ../src/guestfs-actions.pod:4938
24961 #: ../src/guestfs-actions.pod:4969 ../src/guestfs-actions.pod:4988
24962 #: ../src/guestfs-actions.pod:5007 ../src/guestfs-actions.pod:5019
24963 #: ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:5049
24964 #: ../src/guestfs-actions.pod:5064 ../src/guestfs-actions.pod:5079
24965 #: ../src/guestfs-actions.pod:5111 ../src/guestfs-actions.pod:5137
24966 #: ../src/guestfs-actions.pod:5176 ../src/guestfs-actions.pod:5196
24967 #: ../src/guestfs-actions.pod:5210 ../src/guestfs-actions.pod:5227
24968 #: ../src/guestfs-actions.pod:5276 ../src/guestfs-actions.pod:5329
24969 #: ../src/guestfs-actions.pod:5376 ../src/guestfs-actions.pod:5419
24970 #: ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5464
24971 #: ../src/guestfs-actions.pod:5482 ../src/guestfs-actions.pod:5622
24972 #: ../src/guestfs-actions.pod:5679 ../src/guestfs-actions.pod:5701
24973 #: ../src/guestfs-actions.pod:5719 ../src/guestfs-actions.pod:5751
24974 #: ../src/guestfs-actions.pod:5817 ../src/guestfs-actions.pod:5834
24975 #: ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5861
24976 #: ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6169
24977 #: ../src/guestfs-actions.pod:6188 ../src/guestfs-actions.pod:6202
24978 #: ../src/guestfs-actions.pod:6214 ../src/guestfs-actions.pod:6228
24979 #: ../src/guestfs-actions.pod:6240 ../src/guestfs-actions.pod:6254
24980 #: ../src/guestfs-actions.pod:6270 ../src/guestfs-actions.pod:6291
24981 #: ../src/guestfs-actions.pod:6310 ../src/guestfs-actions.pod:6329
24982 #: ../src/guestfs-actions.pod:6359 ../src/guestfs-actions.pod:6377
24983 #: ../src/guestfs-actions.pod:6400 ../src/guestfs-actions.pod:6418
24984 #: ../src/guestfs-actions.pod:6437 ../src/guestfs-actions.pod:6458
24985 #: ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6494
24986 #: ../src/guestfs-actions.pod:6513 ../src/guestfs-actions.pod:6541
24987 #: ../src/guestfs-actions.pod:6565 ../src/guestfs-actions.pod:6584
24988 #: ../src/guestfs-actions.pod:6600 ../src/guestfs-actions.pod:6624
24989 #: ../src/guestfs-actions.pod:6643 ../src/guestfs-actions.pod:6658
24990 #: ../src/guestfs-actions.pod:6677 ../src/guestfs-actions.pod:6721
24991 #: ../src/guestfs-actions.pod:6751 ../src/guestfs-actions.pod:6784
24992 #: ../src/guestfs-actions.pod:6899 ../src/guestfs-actions.pod:7020
24993 #: ../src/guestfs-actions.pod:7032 ../src/guestfs-actions.pod:7045
24994 #: ../src/guestfs-actions.pod:7058 ../src/guestfs-actions.pod:7080
24995 #: ../src/guestfs-actions.pod:7093 ../src/guestfs-actions.pod:7106
24996 #: ../src/guestfs-actions.pod:7119 ../src/guestfs-actions.pod:7134
24997 #: ../src/guestfs-actions.pod:7193 ../src/guestfs-actions.pod:7210
24998 #: ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7242
24999 #: ../src/guestfs-actions.pod:7259 ../src/guestfs-actions.pod:7272
25000 #: ../src/guestfs-actions.pod:7292 ../src/guestfs-actions.pod:7328
25001 #: ../src/guestfs-actions.pod:7342 ../src/guestfs-actions.pod:7383
25002 #: ../src/guestfs-actions.pod:7396 ../src/guestfs-actions.pod:7414
25003 #: ../src/guestfs-actions.pod:7448 ../src/guestfs-actions.pod:7484
25004 #: ../src/guestfs-actions.pod:7600 ../src/guestfs-actions.pod:7615
25005 #: ../src/guestfs-actions.pod:7629 ../src/guestfs-actions.pod:7684
25006 #: ../src/guestfs-actions.pod:7697 ../src/guestfs-actions.pod:7742
25007 #: ../src/guestfs-actions.pod:7782 ../src/guestfs-actions.pod:7838
25008 #: ../src/guestfs-actions.pod:7858 ../src/guestfs-actions.pod:7891
25009 #: ../src/guestfs-actions.pod:7955 ../src/guestfs-actions.pod:7978
25010 #: ../src/guestfs-actions.pod:8007
25011 msgid "This function returns 0 on success or -1 on error."
25015 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
25016 #: ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:2102
25017 #: ../src/guestfs-actions.pod:2200 ../src/guestfs-actions.pod:2325
25018 #: ../src/guestfs-actions.pod:3795 ../src/guestfs-actions.pod:3815
25019 #: ../src/guestfs-actions.pod:5113 ../src/guestfs-actions.pod:6379
25020 #: ../src/guestfs-actions.pod:6496 ../src/guestfs-actions.pod:6645
25021 #: ../src/guestfs-actions.pod:7136 ../src/guestfs-actions.pod:7261
25022 #: ../src/guestfs-actions.pod:7784
25023 msgid "(Added in 0.3)"
25024 msgstr "(Додано у 0.3)"
25027 #: ../src/guestfs-actions.pod:41
25028 msgid "guestfs_add_domain"
25032 #: ../src/guestfs-actions.pod:43
25036 " guestfs_add_domain (guestfs_h *g,\n"
25037 " const char *dom,\n"
25043 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
25044 #: ../src/guestfs-actions.pod:843 ../src/guestfs-actions.pod:1167
25045 #: ../src/guestfs-actions.pod:1219 ../src/guestfs-actions.pod:2993
25046 #: ../src/guestfs-actions.pod:4814 ../src/guestfs-actions.pod:5123
25047 #: ../src/guestfs-actions.pod:5340
25049 "You may supply a list of optional arguments to this call. Use zero or more "
25050 "of the following pairs of parameters, and terminate the list with C<-1> on "
25051 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
25055 #: ../src/guestfs-actions.pod:53
25058 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25059 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25060 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25061 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25062 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25067 #: ../src/guestfs-actions.pod:59
25069 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
25070 "It works by connecting to libvirt, requesting the domain and domain XML from "
25071 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25076 #: ../src/guestfs-actions.pod:94
25078 "The other optional parameters are passed directly through to "
25079 "C<guestfs_add_drive_opts>."
25083 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:356
25084 #: ../src/guestfs-actions.pod:526 ../src/guestfs-actions.pod:704
25085 #: ../src/guestfs-actions.pod:735 ../src/guestfs-actions.pod:753
25086 #: ../src/guestfs-actions.pod:772 ../src/guestfs-actions.pod:1502
25087 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:2061
25088 #: ../src/guestfs-actions.pod:2172 ../src/guestfs-actions.pod:2223
25089 #: ../src/guestfs-actions.pod:2275 ../src/guestfs-actions.pod:2289
25090 #: ../src/guestfs-actions.pod:2312 ../src/guestfs-actions.pod:2627
25091 #: ../src/guestfs-actions.pod:3111 ../src/guestfs-actions.pod:3129
25092 #: ../src/guestfs-actions.pod:5299 ../src/guestfs-actions.pod:5519
25093 #: ../src/guestfs-actions.pod:5931 ../src/guestfs-actions.pod:5957
25094 #: ../src/guestfs-actions.pod:7369 ../src/guestfs-actions.pod:7795
25095 #: ../src/guestfs-actions.pod:7808 ../src/guestfs-actions.pod:7821
25096 msgid "On error this function returns -1."
25100 #: ../src/guestfs-actions.pod:99
25101 msgid "(Added in 1.7.4)"
25102 msgstr "(Додано у 1.7.4)"
25105 #: ../src/guestfs-actions.pod:101
25106 msgid "guestfs_add_domain_va"
25110 #: ../src/guestfs-actions.pod:103
25114 " guestfs_add_domain_va (guestfs_h *g,\n"
25115 " const char *dom,\n"
25116 " va_list args);\n"
25121 #: ../src/guestfs-actions.pod:108
25122 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25126 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
25127 #: ../src/guestfs-actions.pod:220 ../src/guestfs-actions.pod:231
25128 #: ../src/guestfs-actions.pod:882 ../src/guestfs-actions.pod:893
25129 #: ../src/guestfs-actions.pod:1195 ../src/guestfs-actions.pod:1208
25130 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1267
25131 #: ../src/guestfs-actions.pod:3077 ../src/guestfs-actions.pod:3089
25132 #: ../src/guestfs-actions.pod:4879 ../src/guestfs-actions.pod:4891
25133 #: ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5163
25134 #: ../src/guestfs-actions.pod:5389 ../src/guestfs-actions.pod:5400
25135 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25136 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
25139 #: ../src/guestfs-actions.pod:112
25140 msgid "guestfs_add_domain_argv"
25141 msgstr "guestfs_add_domain_argv"
25144 #: ../src/guestfs-actions.pod:114
25148 " guestfs_add_domain_argv (guestfs_h *g,\n"
25149 " const char *dom,\n"
25150 " const struct guestfs_add_domain_argv *optargs);\n"
25155 #: ../src/guestfs-actions.pod:119
25156 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25160 #: ../src/guestfs-actions.pod:123
25161 msgid "guestfs_add_drive"
25165 #: ../src/guestfs-actions.pod:125
25169 " guestfs_add_drive (guestfs_h *g,\n"
25170 " const char *filename);\n"
25175 #: ../src/guestfs-actions.pod:129
25177 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
25178 "optional parameters, so the disk is added writable, with the format being "
25179 "detected automatically."
25183 #: ../src/guestfs-actions.pod:133
25185 "Automatic detection of the format opens you up to a potential security hole "
25186 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
25187 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
25188 "you should think about replacing calls to this function with calls to "
25189 "C<guestfs_add_drive_opts>, and specifying the format."
25193 #: ../src/guestfs-actions.pod:144
25194 msgid "guestfs_add_drive_opts"
25198 #: ../src/guestfs-actions.pod:146
25202 " guestfs_add_drive_opts (guestfs_h *g,\n"
25203 " const char *filename,\n"
25209 #: ../src/guestfs-actions.pod:156
25212 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25213 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25214 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25215 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
25220 #: ../src/guestfs-actions.pod:186
25222 "This forces the image format. If you omit this (or use C<guestfs_add_drive> "
25223 "or C<guestfs_add_drive_ro>) then the format is automatically detected. "
25224 "Possible formats include C<raw> and C<qcow2>."
25228 #: ../src/guestfs-actions.pod:197
25230 "This rarely-used option lets you emulate the behaviour of the deprecated "
25231 "C<guestfs_add_drive_with_if> call (q.v.)"
25235 #: ../src/guestfs-actions.pod:209
25236 msgid "(Added in 1.5.23)"
25237 msgstr "(Додано у 1.5.23)"
25240 #: ../src/guestfs-actions.pod:211
25241 msgid "guestfs_add_drive_opts_va"
25245 #: ../src/guestfs-actions.pod:213
25249 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25250 " const char *filename,\n"
25251 " va_list args);\n"
25256 #: ../src/guestfs-actions.pod:218
25257 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25261 #: ../src/guestfs-actions.pod:222
25262 msgid "guestfs_add_drive_opts_argv"
25266 #: ../src/guestfs-actions.pod:224
25270 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25271 " const char *filename,\n"
25272 " const struct guestfs_add_drive_opts_argv *optargs);\n"
25277 #: ../src/guestfs-actions.pod:229
25278 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25282 #: ../src/guestfs-actions.pod:233
25283 msgid "guestfs_add_drive_ro"
25287 #: ../src/guestfs-actions.pod:235
25291 " guestfs_add_drive_ro (guestfs_h *g,\n"
25292 " const char *filename);\n"
25297 #: ../src/guestfs-actions.pod:239
25299 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25300 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25301 "disk is added read-only, with the format being detected automatically."
25305 #: ../src/guestfs-actions.pod:246
25306 msgid "(Added in 1.0.38)"
25307 msgstr "(Додано у 1.0.38)"
25310 #: ../src/guestfs-actions.pod:248
25311 msgid "guestfs_add_drive_ro_with_if"
25315 #: ../src/guestfs-actions.pod:250
25319 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25320 " const char *filename,\n"
25321 " const char *iface);\n"
25326 #: ../src/guestfs-actions.pod:262
25328 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25329 "QEMU interface emulation to use at run time."
25333 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:288
25334 #: ../src/guestfs-actions.pod:2586
25335 msgid "(Added in 1.0.84)"
25336 msgstr "(Додано у 1.0.84)"
25339 #: ../src/guestfs-actions.pod:269
25340 msgid "guestfs_add_drive_with_if"
25344 #: ../src/guestfs-actions.pod:271
25348 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25349 " const char *filename,\n"
25350 " const char *iface);\n"
25355 #: ../src/guestfs-actions.pod:283
25357 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25358 "QEMU interface emulation to use at run time."
25362 #: ../src/guestfs-actions.pod:290
25363 msgid "guestfs_aug_clear"
25367 #: ../src/guestfs-actions.pod:292
25371 " guestfs_aug_clear (guestfs_h *g,\n"
25372 " const char *augpath);\n"
25377 #: ../src/guestfs-actions.pod:301 ../src/guestfs-actions.pod:2314
25378 msgid "(Added in 1.3.4)"
25379 msgstr "(Додано у 1.3.4)"
25382 #: ../src/guestfs-actions.pod:303
25383 msgid "guestfs_aug_close"
25387 #: ../src/guestfs-actions.pod:305
25391 " guestfs_aug_close (guestfs_h *g);\n"
25396 #: ../src/guestfs-actions.pod:308
25398 "Close the current Augeas handle and free up any resources used by it. After "
25399 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25400 "any other Augeas functions."
25404 #: ../src/guestfs-actions.pod:315 ../src/guestfs-actions.pod:340
25405 #: ../src/guestfs-actions.pod:358 ../src/guestfs-actions.pod:372
25406 #: ../src/guestfs-actions.pod:435 ../src/guestfs-actions.pod:455
25407 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:500
25408 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:528
25409 #: ../src/guestfs-actions.pod:542 ../src/guestfs-actions.pod:560
25410 #: ../src/guestfs-actions.pod:6008
25411 msgid "(Added in 0.7)"
25412 msgstr "(Додано у 0.7)"
25415 #: ../src/guestfs-actions.pod:317
25416 msgid "guestfs_aug_defnode"
25420 #: ../src/guestfs-actions.pod:319
25423 " struct guestfs_int_bool *\n"
25424 " guestfs_aug_defnode (guestfs_h *g,\n"
25425 " const char *name,\n"
25426 " const char *expr,\n"
25427 " const char *val);\n"
25432 #: ../src/guestfs-actions.pod:328
25434 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25435 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
25436 "containing that single node."
25440 #: ../src/guestfs-actions.pod:336
25442 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25443 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
25447 #: ../src/guestfs-actions.pod:342
25448 msgid "guestfs_aug_defvar"
25452 #: ../src/guestfs-actions.pod:344
25456 " guestfs_aug_defvar (guestfs_h *g,\n"
25457 " const char *name,\n"
25458 " const char *expr);\n"
25463 #: ../src/guestfs-actions.pod:360
25464 msgid "guestfs_aug_get"
25465 msgstr "guestfs_aug_get"
25468 #: ../src/guestfs-actions.pod:362
25472 " guestfs_aug_get (guestfs_h *g,\n"
25473 " const char *augpath);\n"
25477 " guestfs_aug_get (guestfs_h *g,\n"
25478 " const char *augpath);\n"
25482 #: ../src/guestfs-actions.pod:369 ../src/guestfs-actions.pod:933
25483 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:1011
25484 #: ../src/guestfs-actions.pod:1027 ../src/guestfs-actions.pod:1130
25485 #: ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1388
25486 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1541
25487 #: ../src/guestfs-actions.pod:1729 ../src/guestfs-actions.pod:1841
25488 #: ../src/guestfs-actions.pod:2004 ../src/guestfs-actions.pod:2021
25489 #: ../src/guestfs-actions.pod:2088 ../src/guestfs-actions.pod:2131
25490 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:2337
25491 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2755
25492 #: ../src/guestfs-actions.pod:2857 ../src/guestfs-actions.pod:2961
25493 #: ../src/guestfs-actions.pod:2980 ../src/guestfs-actions.pod:3195
25494 #: ../src/guestfs-actions.pod:3223 ../src/guestfs-actions.pod:3244
25495 #: ../src/guestfs-actions.pod:3278 ../src/guestfs-actions.pod:3341
25496 #: ../src/guestfs-actions.pod:3361 ../src/guestfs-actions.pod:3381
25497 #: ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4361
25498 #: ../src/guestfs-actions.pod:4531 ../src/guestfs-actions.pod:4641
25499 #: ../src/guestfs-actions.pod:5537 ../src/guestfs-actions.pod:5736
25500 #: ../src/guestfs-actions.pod:5906 ../src/guestfs-actions.pod:6084
25501 #: ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6805
25502 #: ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:6845
25503 #: ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:7543
25504 #: ../src/guestfs-actions.pod:7562 ../src/guestfs-actions.pod:7580
25505 #: ../src/guestfs-actions.pod:7754 ../src/guestfs-actions.pod:8071
25507 "This function returns a string, or NULL on error. I<The caller must free "
25508 "the returned string after use>."
25512 #: ../src/guestfs-actions.pod:374
25513 msgid "guestfs_aug_init"
25514 msgstr "guestfs_aug_init"
25517 #: ../src/guestfs-actions.pod:376
25521 " guestfs_aug_init (guestfs_h *g,\n"
25522 " const char *root,\n"
25527 " guestfs_aug_init (guestfs_h *g,\n"
25528 " const char *root,\n"
25533 #: ../src/guestfs-actions.pod:385
25534 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25538 #: ../src/guestfs-actions.pod:410
25540 "This option is only useful when debugging Augeas lenses. Use of this option "
25541 "may require additional memory for the libguestfs appliance. You may need to "
25542 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25543 "C<guestfs_set_memsize>."
25547 #: ../src/guestfs-actions.pod:425
25548 msgid "Do not load the tree in C<guestfs_aug_init>."
25552 #: ../src/guestfs-actions.pod:429
25553 msgid "To close the handle, you can call C<guestfs_aug_close>."
25557 #: ../src/guestfs-actions.pod:437
25558 msgid "guestfs_aug_insert"
25559 msgstr "guestfs_aug_insert"
25562 #: ../src/guestfs-actions.pod:439
25566 " guestfs_aug_insert (guestfs_h *g,\n"
25567 " const char *augpath,\n"
25568 " const char *label,\n"
25573 " guestfs_aug_insert (guestfs_h *g,\n"
25574 " const char *augpath,\n"
25575 " const char *label,\n"
25580 #: ../src/guestfs-actions.pod:457
25581 msgid "guestfs_aug_load"
25582 msgstr "guestfs_aug_load"
25585 #: ../src/guestfs-actions.pod:459
25589 " guestfs_aug_load (guestfs_h *g);\n"
25593 " guestfs_aug_load (guestfs_h *g);\n"
25597 #: ../src/guestfs-actions.pod:471
25598 msgid "guestfs_aug_ls"
25599 msgstr "guestfs_aug_ls"
25602 #: ../src/guestfs-actions.pod:473
25606 " guestfs_aug_ls (guestfs_h *g,\n"
25607 " const char *augpath);\n"
25611 " guestfs_aug_ls (guestfs_h *g,\n"
25612 " const char *augpath);\n"
25616 #: ../src/guestfs-actions.pod:477
25618 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25619 "sorting the resulting nodes into alphabetical order."
25623 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:496
25624 #: ../src/guestfs-actions.pod:642 ../src/guestfs-actions.pod:1149
25625 #: ../src/guestfs-actions.pod:1556 ../src/guestfs-actions.pod:1575
25626 #: ../src/guestfs-actions.pod:1678 ../src/guestfs-actions.pod:1697
25627 #: ../src/guestfs-actions.pod:1943 ../src/guestfs-actions.pod:2409
25628 #: ../src/guestfs-actions.pod:2425 ../src/guestfs-actions.pod:2444
25629 #: ../src/guestfs-actions.pod:2509 ../src/guestfs-actions.pod:2533
25630 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2653
25631 #: ../src/guestfs-actions.pod:2922 ../src/guestfs-actions.pod:3297
25632 #: ../src/guestfs-actions.pod:3577 ../src/guestfs-actions.pod:3891
25633 #: ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3928
25634 #: ../src/guestfs-actions.pod:3990 ../src/guestfs-actions.pod:4095
25635 #: ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:5260
25636 #: ../src/guestfs-actions.pod:5878 ../src/guestfs-actions.pod:6004
25637 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6885
25638 #: ../src/guestfs-actions.pod:6946 ../src/guestfs-actions.pod:7001
25639 #: ../src/guestfs-actions.pod:7147 ../src/guestfs-actions.pod:7171
25640 #: ../src/guestfs-actions.pod:7647 ../src/guestfs-actions.pod:7667
25641 #: ../src/guestfs-actions.pod:7714 ../src/guestfs-actions.pod:7908
25642 #: ../src/guestfs-actions.pod:7927 ../src/guestfs-actions.pod:8021
25643 #: ../src/guestfs-actions.pod:8040 ../src/guestfs-actions.pod:8086
25644 #: ../src/guestfs-actions.pod:8105
25646 "This function returns a NULL-terminated array of strings (like L<environ(3)"
25647 ">), or NULL if there was an error. I<The caller must free the strings and "
25648 "the array after use>."
25652 #: ../src/guestfs-actions.pod:484 ../src/guestfs-actions.pod:1074
25653 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1613
25654 #: ../src/guestfs-actions.pod:3655 ../src/guestfs-actions.pod:3686
25655 #: ../src/guestfs-actions.pod:4344 ../src/guestfs-actions.pod:4394
25656 #: ../src/guestfs-actions.pod:4581 ../src/guestfs-actions.pod:4614
25657 #: ../src/guestfs-actions.pod:4777 ../src/guestfs-actions.pod:5264
25658 #: ../src/guestfs-actions.pod:5819 ../src/guestfs-actions.pod:6216
25659 #: ../src/guestfs-actions.pod:6230 ../src/guestfs-actions.pod:6242
25660 #: ../src/guestfs-actions.pod:6726 ../src/guestfs-actions.pod:7385
25661 #: ../src/guestfs-actions.pod:7398 ../src/guestfs-actions.pod:7631
25662 #: ../src/guestfs-actions.pod:7896
25663 msgid "(Added in 0.8)"
25664 msgstr "(Додано у 0.8)"
25667 #: ../src/guestfs-actions.pod:486
25668 msgid "guestfs_aug_match"
25669 msgstr "guestfs_aug_match"
25672 #: ../src/guestfs-actions.pod:488
25676 " guestfs_aug_match (guestfs_h *g,\n"
25677 " const char *augpath);\n"
25681 " guestfs_aug_match (guestfs_h *g,\n"
25682 " const char *augpath);\n"
25686 #: ../src/guestfs-actions.pod:502
25687 msgid "guestfs_aug_mv"
25688 msgstr "guestfs_aug_mv"
25691 #: ../src/guestfs-actions.pod:504
25695 " guestfs_aug_mv (guestfs_h *g,\n"
25696 " const char *src,\n"
25697 " const char *dest);\n"
25701 " guestfs_aug_mv (guestfs_h *g,\n"
25702 " const char *src,\n"
25703 " const char *dest);\n"
25707 #: ../src/guestfs-actions.pod:516
25708 msgid "guestfs_aug_rm"
25709 msgstr "guestfs_aug_rm"
25712 #: ../src/guestfs-actions.pod:518
25716 " guestfs_aug_rm (guestfs_h *g,\n"
25717 " const char *augpath);\n"
25721 " guestfs_aug_rm (guestfs_h *g,\n"
25722 " const char *augpath);\n"
25726 #: ../src/guestfs-actions.pod:530
25727 msgid "guestfs_aug_save"
25728 msgstr "guestfs_aug_save"
25731 #: ../src/guestfs-actions.pod:532
25735 " guestfs_aug_save (guestfs_h *g);\n"
25739 " guestfs_aug_save (guestfs_h *g);\n"
25743 #: ../src/guestfs-actions.pod:537
25745 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25750 #: ../src/guestfs-actions.pod:544
25751 msgid "guestfs_aug_set"
25752 msgstr "guestfs_aug_set"
25755 #: ../src/guestfs-actions.pod:546
25759 " guestfs_aug_set (guestfs_h *g,\n"
25760 " const char *augpath,\n"
25761 " const char *val);\n"
25765 " guestfs_aug_set (guestfs_h *g,\n"
25766 " const char *augpath,\n"
25767 " const char *val);\n"
25771 #: ../src/guestfs-actions.pod:553
25773 "In the Augeas API, it is possible to clear a node by setting the value to "
25774 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
25775 "this call. Instead you must use the C<guestfs_aug_clear> call."
25779 #: ../src/guestfs-actions.pod:562
25780 msgid "guestfs_available"
25781 msgstr "guestfs_available"
25784 #: ../src/guestfs-actions.pod:564
25788 " guestfs_available (guestfs_h *g,\n"
25789 " char *const *groups);\n"
25793 " guestfs_available (guestfs_h *g,\n"
25794 " char *const *groups);\n"
25798 #: ../src/guestfs-actions.pod:572
25800 "The libguestfs groups, and the functions that those groups correspond to, "
25801 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
25802 "runtime by calling C<guestfs_available_all_groups>."
25806 #: ../src/guestfs-actions.pod:596
25807 msgid "You must call C<guestfs_launch> before calling this function."
25811 #: ../src/guestfs-actions.pod:618
25813 "This call was added in version C<1.0.80>. In previous versions of "
25814 "libguestfs all you could do would be to speculatively execute a command to "
25815 "find out if the daemon implemented it. See also C<guestfs_version>."
25819 #: ../src/guestfs-actions.pod:627 ../src/guestfs-actions.pod:1358
25820 msgid "(Added in 1.0.80)"
25821 msgstr "(Додано у 1.0.80)"
25824 #: ../src/guestfs-actions.pod:629
25825 msgid "guestfs_available_all_groups"
25826 msgstr "guestfs_available_all_groups"
25829 #: ../src/guestfs-actions.pod:631
25833 " guestfs_available_all_groups (guestfs_h *g);\n"
25837 " guestfs_available_all_groups (guestfs_h *g);\n"
25841 #: ../src/guestfs-actions.pod:634
25843 "This command returns a list of all optional groups that this daemon knows "
25844 "about. Note this returns both supported and unsupported groups. To find "
25845 "out which ones the daemon can actually support you have to call "
25846 "C<guestfs_available> on each member of the returned list."
25850 #: ../src/guestfs-actions.pod:640
25851 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25855 #: ../src/guestfs-actions.pod:646
25856 msgid "(Added in 1.3.15)"
25857 msgstr "(Додано у 1.3.15)"
25860 #: ../src/guestfs-actions.pod:648
25861 msgid "guestfs_base64_in"
25862 msgstr "guestfs_base64_in"
25865 #: ../src/guestfs-actions.pod:650
25869 " guestfs_base64_in (guestfs_h *g,\n"
25870 " const char *base64file,\n"
25871 " const char *filename);\n"
25875 " guestfs_base64_in (guestfs_h *g,\n"
25876 " const char *base64file,\n"
25877 " const char *filename);\n"
25881 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:674
25882 msgid "(Added in 1.3.5)"
25883 msgstr "(Додано у 1.3.5)"
25886 #: ../src/guestfs-actions.pod:662
25887 msgid "guestfs_base64_out"
25888 msgstr "guestfs_base64_out"
25891 #: ../src/guestfs-actions.pod:664
25895 " guestfs_base64_out (guestfs_h *g,\n"
25896 " const char *filename,\n"
25897 " const char *base64file);\n"
25901 " guestfs_base64_out (guestfs_h *g,\n"
25902 " const char *filename,\n"
25903 " const char *base64file);\n"
25907 #: ../src/guestfs-actions.pod:676
25908 msgid "guestfs_blockdev_flushbufs"
25909 msgstr "guestfs_blockdev_flushbufs"
25912 #: ../src/guestfs-actions.pod:678
25916 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25917 " const char *device);\n"
25921 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25922 " const char *device);\n"
25926 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:706
25927 #: ../src/guestfs-actions.pod:721 ../src/guestfs-actions.pod:737
25928 #: ../src/guestfs-actions.pod:755 ../src/guestfs-actions.pod:774
25929 #: ../src/guestfs-actions.pod:788 ../src/guestfs-actions.pod:806
25930 #: ../src/guestfs-actions.pod:820 ../src/guestfs-actions.pod:834
25931 msgid "(Added in 0.9.3)"
25932 msgstr "(Додано у 0.9.3)"
25935 #: ../src/guestfs-actions.pod:691
25936 msgid "guestfs_blockdev_getbsz"
25937 msgstr "guestfs_blockdev_getbsz"
25940 #: ../src/guestfs-actions.pod:693
25944 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25945 " const char *device);\n"
25949 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25950 " const char *device);\n"
25954 #: ../src/guestfs-actions.pod:708
25955 msgid "guestfs_blockdev_getro"
25956 msgstr "guestfs_blockdev_getro"
25959 #: ../src/guestfs-actions.pod:710
25963 " guestfs_blockdev_getro (guestfs_h *g,\n"
25964 " const char *device);\n"
25968 " guestfs_blockdev_getro (guestfs_h *g,\n"
25969 " const char *device);\n"
25973 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:1596
25974 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:2100
25975 #: ../src/guestfs-actions.pod:2111 ../src/guestfs-actions.pod:2183
25976 #: ../src/guestfs-actions.pod:2209 ../src/guestfs-actions.pod:2249
25977 #: ../src/guestfs-actions.pod:2264 ../src/guestfs-actions.pod:2300
25978 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:3398
25979 #: ../src/guestfs-actions.pod:3414 ../src/guestfs-actions.pod:3432
25980 #: ../src/guestfs-actions.pod:3594 ../src/guestfs-actions.pod:3608
25981 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3637
25982 #: ../src/guestfs-actions.pod:3653 ../src/guestfs-actions.pod:3668
25983 #: ../src/guestfs-actions.pod:3684 ../src/guestfs-actions.pod:3698
25984 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3725
25985 #: ../src/guestfs-actions.pod:3740 ../src/guestfs-actions.pod:3755
25986 #: ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:3782
25987 #: ../src/guestfs-actions.pod:5501
25988 msgid "This function returns a C truth value on success or -1 on error."
25992 #: ../src/guestfs-actions.pod:723
25993 msgid "guestfs_blockdev_getsize64"
25994 msgstr "guestfs_blockdev_getsize64"
25997 #: ../src/guestfs-actions.pod:725
26001 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26002 " const char *device);\n"
26006 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26007 " const char *device);\n"
26011 #: ../src/guestfs-actions.pod:731
26012 msgid "See also C<guestfs_blockdev_getsz>."
26016 #: ../src/guestfs-actions.pod:739
26017 msgid "guestfs_blockdev_getss"
26018 msgstr "guestfs_blockdev_getss"
26021 #: ../src/guestfs-actions.pod:741
26025 " guestfs_blockdev_getss (guestfs_h *g,\n"
26026 " const char *device);\n"
26030 " guestfs_blockdev_getss (guestfs_h *g,\n"
26031 " const char *device);\n"
26035 #: ../src/guestfs-actions.pod:748
26037 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26042 #: ../src/guestfs-actions.pod:757
26043 msgid "guestfs_blockdev_getsz"
26044 msgstr "guestfs_blockdev_getsz"
26047 #: ../src/guestfs-actions.pod:759
26051 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26052 " const char *device);\n"
26056 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26057 " const char *device);\n"
26061 #: ../src/guestfs-actions.pod:766
26063 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26064 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26068 #: ../src/guestfs-actions.pod:776
26069 msgid "guestfs_blockdev_rereadpt"
26070 msgstr "guestfs_blockdev_rereadpt"
26073 #: ../src/guestfs-actions.pod:778
26077 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26078 " const char *device);\n"
26082 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26083 " const char *device);\n"
26087 #: ../src/guestfs-actions.pod:790
26088 msgid "guestfs_blockdev_setbsz"
26089 msgstr "guestfs_blockdev_setbsz"
26092 #: ../src/guestfs-actions.pod:792
26096 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26097 " const char *device,\n"
26098 " int blocksize);\n"
26102 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26103 " const char *device,\n"
26104 " int blocksize);\n"
26108 #: ../src/guestfs-actions.pod:808
26109 msgid "guestfs_blockdev_setro"
26110 msgstr "guestfs_blockdev_setro"
26113 #: ../src/guestfs-actions.pod:810
26117 " guestfs_blockdev_setro (guestfs_h *g,\n"
26118 " const char *device);\n"
26122 " guestfs_blockdev_setro (guestfs_h *g,\n"
26123 " const char *device);\n"
26127 #: ../src/guestfs-actions.pod:822
26128 msgid "guestfs_blockdev_setrw"
26129 msgstr "guestfs_blockdev_setrw"
26132 #: ../src/guestfs-actions.pod:824
26136 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26137 " const char *device);\n"
26141 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26142 " const char *device);\n"
26146 #: ../src/guestfs-actions.pod:836
26147 msgid "guestfs_btrfs_filesystem_resize"
26148 msgstr "guestfs_btrfs_filesystem_resize"
26151 #: ../src/guestfs-actions.pod:838
26155 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26156 " const char *mountpoint,\n"
26161 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26162 " const char *mountpoint,\n"
26167 #: ../src/guestfs-actions.pod:848
26170 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26173 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26177 #: ../src/guestfs-actions.pod:871
26178 msgid "(Added in 1.11.17)"
26179 msgstr "(Додано у 1.11.17)"
26182 #: ../src/guestfs-actions.pod:873
26183 msgid "guestfs_btrfs_filesystem_resize_va"
26184 msgstr "guestfs_btrfs_filesystem_resize_va"
26187 #: ../src/guestfs-actions.pod:875
26191 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26192 " const char *mountpoint,\n"
26193 " va_list args);\n"
26197 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26198 " const char *mountpoint,\n"
26199 " va_list args);\n"
26203 #: ../src/guestfs-actions.pod:880
26204 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26208 #: ../src/guestfs-actions.pod:884
26209 msgid "guestfs_btrfs_filesystem_resize_argv"
26210 msgstr "guestfs_btrfs_filesystem_resize_argv"
26213 #: ../src/guestfs-actions.pod:886
26217 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26218 " const char *mountpoint,\n"
26219 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26223 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26224 " const char *mountpoint,\n"
26225 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26229 #: ../src/guestfs-actions.pod:891
26230 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26234 #: ../src/guestfs-actions.pod:895
26235 msgid "guestfs_case_sensitive_path"
26239 #: ../src/guestfs-actions.pod:897
26243 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26244 " const char *path);\n"
26249 #: ../src/guestfs-actions.pod:923
26251 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return C<"
26252 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26253 "how the directories were originally created under Windows)."
26257 #: ../src/guestfs-actions.pod:931
26258 msgid "See also C<guestfs_realpath>."
26262 #: ../src/guestfs-actions.pod:936 ../src/guestfs-actions.pod:7565
26263 msgid "(Added in 1.0.75)"
26264 msgstr "(Додано у 1.0.75)"
26267 #: ../src/guestfs-actions.pod:938
26268 msgid "guestfs_cat"
26272 #: ../src/guestfs-actions.pod:940
26276 " guestfs_cat (guestfs_h *g,\n"
26277 " const char *path);\n"
26282 #: ../src/guestfs-actions.pod:946
26284 "Note that this function cannot correctly handle binary files (specifically, "
26285 "files containing C<\\0> character which is treated as end of string). For "
26286 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26287 "functions which have a more complex interface."
26291 #: ../src/guestfs-actions.pod:957 ../src/guestfs-actions.pod:3912
26292 #: ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:4011
26293 #: ../src/guestfs-actions.pod:4099 ../src/guestfs-actions.pod:4507
26294 #: ../src/guestfs-actions.pod:4521 ../src/guestfs-actions.pod:5882
26295 #: ../src/guestfs-actions.pod:5896 ../src/guestfs-actions.pod:7718
26296 #: ../src/guestfs-actions.pod:7732
26297 msgid "(Added in 0.4)"
26298 msgstr "(Додано у 0.4)"
26301 #: ../src/guestfs-actions.pod:959
26302 msgid "guestfs_checksum"
26306 #: ../src/guestfs-actions.pod:961
26310 " guestfs_checksum (guestfs_h *g,\n"
26311 " const char *csumtype,\n"
26312 " const char *path);\n"
26317 #: ../src/guestfs-actions.pod:1007
26318 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26322 #: ../src/guestfs-actions.pod:1009
26323 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26327 #: ../src/guestfs-actions.pod:1014 ../src/guestfs-actions.pod:1433
26328 #: ../src/guestfs-actions.pod:2291 ../src/guestfs-actions.pod:3610
26329 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3700
26330 #: ../src/guestfs-actions.pod:3727 ../src/guestfs-actions.pod:7421
26331 msgid "(Added in 1.0.2)"
26332 msgstr "(Додано у 1.0.2)"
26335 #: ../src/guestfs-actions.pod:1016
26336 msgid "guestfs_checksum_device"
26340 #: ../src/guestfs-actions.pod:1018
26344 " guestfs_checksum_device (guestfs_h *g,\n"
26345 " const char *csumtype,\n"
26346 " const char *device);\n"
26351 #: ../src/guestfs-actions.pod:1023
26353 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26354 "device named C<device>. For the types of checksums supported see the "
26355 "C<guestfs_checksum> command."
26359 #: ../src/guestfs-actions.pod:1030 ../src/guestfs-actions.pod:5331
26360 #: ../src/guestfs-actions.pod:5466 ../src/guestfs-actions.pod:5503
26361 #: ../src/guestfs-actions.pod:5521 ../src/guestfs-actions.pod:5703
26362 #: ../src/guestfs-actions.pod:7330 ../src/guestfs-actions.pod:7344
26363 #: ../src/guestfs-actions.pod:7744
26364 msgid "(Added in 1.3.2)"
26365 msgstr "(Додано у 1.3.2)"
26368 #: ../src/guestfs-actions.pod:1032
26369 msgid "guestfs_checksums_out"
26373 #: ../src/guestfs-actions.pod:1034
26377 " guestfs_checksums_out (guestfs_h *g,\n"
26378 " const char *csumtype,\n"
26379 " const char *directory,\n"
26380 " const char *sumsfile);\n"
26385 #: ../src/guestfs-actions.pod:1054
26386 msgid "(Added in 1.3.7)"
26387 msgstr "(Додано у 1.3.7)"
26390 #: ../src/guestfs-actions.pod:1056
26391 msgid "guestfs_chmod"
26395 #: ../src/guestfs-actions.pod:1058
26399 " guestfs_chmod (guestfs_h *g,\n"
26401 " const char *path);\n"
26406 #: ../src/guestfs-actions.pod:1076
26407 msgid "guestfs_chown"
26411 #: ../src/guestfs-actions.pod:1078
26415 " guestfs_chown (guestfs_h *g,\n"
26418 " const char *path);\n"
26423 #: ../src/guestfs-actions.pod:1094
26424 msgid "guestfs_command"
26428 #: ../src/guestfs-actions.pod:1096
26432 " guestfs_command (guestfs_h *g,\n"
26433 " char *const *arguments);\n"
26438 #: ../src/guestfs-actions.pod:1105
26440 "The single parameter is an argv-style list of arguments. The first element "
26441 "is the name of the program to run. Subsequent elements are parameters. The "
26442 "list must be non-empty (ie. must contain a program name). Note that the "
26443 "command runs directly, and is I<not> invoked via the shell (see "
26448 #: ../src/guestfs-actions.pod:1136 ../src/guestfs-actions.pod:1156
26449 #: ../src/guestfs-actions.pod:1732
26450 msgid "(Added in 0.9.1)"
26451 msgstr "(Додано у 0.9.1)"
26454 #: ../src/guestfs-actions.pod:1138
26455 msgid "guestfs_command_lines"
26459 #: ../src/guestfs-actions.pod:1140
26463 " guestfs_command_lines (guestfs_h *g,\n"
26464 " char *const *arguments);\n"
26469 #: ../src/guestfs-actions.pod:1144
26471 "This is the same as C<guestfs_command>, but splits the result into a list of "
26476 #: ../src/guestfs-actions.pod:1147
26477 msgid "See also: C<guestfs_sh_lines>"
26481 #: ../src/guestfs-actions.pod:1158
26482 msgid "guestfs_compress_device_out"
26486 #: ../src/guestfs-actions.pod:1160
26490 " guestfs_compress_device_out (guestfs_h *g,\n"
26491 " const char *ctype,\n"
26492 " const char *device,\n"
26493 " const char *zdevice,\n"
26499 #: ../src/guestfs-actions.pod:1172
26502 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26507 #: ../src/guestfs-actions.pod:1177
26509 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26510 "C<guestfs_compress_out>."
26514 #: ../src/guestfs-actions.pod:1182 ../src/guestfs-actions.pod:1241
26515 #: ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:6602
26516 msgid "(Added in 1.13.15)"
26520 #: ../src/guestfs-actions.pod:1184
26521 msgid "guestfs_compress_device_out_va"
26525 #: ../src/guestfs-actions.pod:1186
26529 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26530 " const char *ctype,\n"
26531 " const char *device,\n"
26532 " const char *zdevice,\n"
26533 " va_list args);\n"
26538 #: ../src/guestfs-actions.pod:1193
26539 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26543 #: ../src/guestfs-actions.pod:1197
26544 msgid "guestfs_compress_device_out_argv"
26548 #: ../src/guestfs-actions.pod:1199
26552 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26553 " const char *ctype,\n"
26554 " const char *device,\n"
26555 " const char *zdevice,\n"
26556 " const struct guestfs_compress_device_out_argv *optargs);\n"
26561 #: ../src/guestfs-actions.pod:1206
26562 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26566 #: ../src/guestfs-actions.pod:1210
26567 msgid "guestfs_compress_out"
26571 #: ../src/guestfs-actions.pod:1212
26575 " guestfs_compress_out (guestfs_h *g,\n"
26576 " const char *ctype,\n"
26577 " const char *file,\n"
26578 " const char *zfile,\n"
26584 #: ../src/guestfs-actions.pod:1224
26587 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26592 #: ../src/guestfs-actions.pod:1243
26593 msgid "guestfs_compress_out_va"
26597 #: ../src/guestfs-actions.pod:1245
26601 " guestfs_compress_out_va (guestfs_h *g,\n"
26602 " const char *ctype,\n"
26603 " const char *file,\n"
26604 " const char *zfile,\n"
26605 " va_list args);\n"
26610 #: ../src/guestfs-actions.pod:1252
26611 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26615 #: ../src/guestfs-actions.pod:1256
26616 msgid "guestfs_compress_out_argv"
26620 #: ../src/guestfs-actions.pod:1258
26624 " guestfs_compress_out_argv (guestfs_h *g,\n"
26625 " const char *ctype,\n"
26626 " const char *file,\n"
26627 " const char *zfile,\n"
26628 " const struct guestfs_compress_out_argv *optargs);\n"
26633 #: ../src/guestfs-actions.pod:1265
26634 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26638 #: ../src/guestfs-actions.pod:1269
26639 msgid "guestfs_config"
26643 #: ../src/guestfs-actions.pod:1271
26647 " guestfs_config (guestfs_h *g,\n"
26648 " const char *qemuparam,\n"
26649 " const char *qemuvalue);\n"
26654 #: ../src/guestfs-actions.pod:1289
26655 msgid "guestfs_copy_size"
26659 #: ../src/guestfs-actions.pod:1291
26663 " guestfs_copy_size (guestfs_h *g,\n"
26664 " const char *src,\n"
26665 " const char *dest,\n"
26666 " int64_t size);\n"
26671 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:1428
26672 #: ../src/guestfs-actions.pod:1459 ../src/guestfs-actions.pod:1504
26673 #: ../src/guestfs-actions.pod:1881 ../src/guestfs-actions.pod:1903
26674 #: ../src/guestfs-actions.pod:3810 ../src/guestfs-actions.pod:7416
26675 #: ../src/guestfs-actions.pod:7450 ../src/guestfs-actions.pod:7957
26676 #: ../src/guestfs-actions.pod:7980
26678 "This long-running command can generate progress notification messages so "
26679 "that the caller can display a progress bar or indicator. To receive these "
26680 "messages, the caller must register a progress event callback. See L<guestfs"
26681 "(3)/GUESTFS_EVENT_PROGRESS>."
26685 #: ../src/guestfs-actions.pod:1310 ../src/guestfs-actions.pod:4534
26686 #: ../src/guestfs-actions.pod:5909 ../src/guestfs-actions.pod:7651
26687 #: ../src/guestfs-actions.pod:7671 ../src/guestfs-actions.pod:7757
26688 msgid "(Added in 1.0.87)"
26689 msgstr "(Додано у 1.0.87)"
26692 #: ../src/guestfs-actions.pod:1312
26697 #: ../src/guestfs-actions.pod:1314
26701 " guestfs_cp (guestfs_h *g,\n"
26702 " const char *src,\n"
26703 " const char *dest);\n"
26708 #: ../src/guestfs-actions.pod:1324 ../src/guestfs-actions.pod:1338
26709 #: ../src/guestfs-actions.pod:1410 ../src/guestfs-actions.pod:1484
26710 #: ../src/guestfs-actions.pod:1598 ../src/guestfs-actions.pod:5278
26711 #: ../src/guestfs-actions.pod:5753
26712 msgid "(Added in 1.0.18)"
26713 msgstr "(Додано у 1.0.18)"
26716 #: ../src/guestfs-actions.pod:1326
26717 msgid "guestfs_cp_a"
26721 #: ../src/guestfs-actions.pod:1328
26725 " guestfs_cp_a (guestfs_h *g,\n"
26726 " const char *src,\n"
26727 " const char *dest);\n"
26732 #: ../src/guestfs-actions.pod:1340
26737 #: ../src/guestfs-actions.pod:1342
26741 " guestfs_dd (guestfs_h *g,\n"
26742 " const char *src,\n"
26743 " const char *dest);\n"
26748 #: ../src/guestfs-actions.pod:1352
26750 "If the destination is a device, it must be as large or larger than the "
26751 "source file or device, otherwise the copy will fail. This command cannot do "
26752 "partial copies (see C<guestfs_copy_size>)."
26756 #: ../src/guestfs-actions.pod:1360
26761 #: ../src/guestfs-actions.pod:1362
26765 " guestfs_df (guestfs_h *g);\n"
26770 #: ../src/guestfs-actions.pod:1367 ../src/guestfs-actions.pod:1384
26772 "This command is mostly useful for interactive sessions. It is I<not> "
26773 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
26778 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1391
26779 #: ../src/guestfs-actions.pod:1509 ../src/guestfs-actions.pod:2516
26780 #: ../src/guestfs-actions.pod:2540 ../src/guestfs-actions.pod:2608
26781 #: ../src/guestfs-actions.pod:4644 ../src/guestfs-actions.pod:5178
26782 #: ../src/guestfs-actions.pod:7154 ../src/guestfs-actions.pod:7178
26783 #: ../src/guestfs-actions.pod:7797 ../src/guestfs-actions.pod:7810
26784 #: ../src/guestfs-actions.pod:7823
26785 msgid "(Added in 1.0.54)"
26786 msgstr "(Додано у 1.0.54)"
26789 #: ../src/guestfs-actions.pod:1376
26790 msgid "guestfs_df_h"
26794 #: ../src/guestfs-actions.pod:1378
26798 " guestfs_df_h (guestfs_h *g);\n"
26803 #: ../src/guestfs-actions.pod:1393
26804 msgid "guestfs_dmesg"
26808 #: ../src/guestfs-actions.pod:1395
26812 " guestfs_dmesg (guestfs_h *g);\n"
26817 #: ../src/guestfs-actions.pod:1402
26819 "Another way to get the same information is to enable verbose messages with "
26820 "C<guestfs_set_verbose> or by setting the environment variable "
26821 "C<LIBGUESTFS_DEBUG=1> before running the program."
26825 #: ../src/guestfs-actions.pod:1412
26826 msgid "guestfs_download"
26830 #: ../src/guestfs-actions.pod:1414
26834 " guestfs_download (guestfs_h *g,\n"
26835 " const char *remotefilename,\n"
26836 " const char *filename);\n"
26841 #: ../src/guestfs-actions.pod:1424
26842 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
26846 #: ../src/guestfs-actions.pod:1435
26847 msgid "guestfs_download_offset"
26851 #: ../src/guestfs-actions.pod:1437
26855 " guestfs_download_offset (guestfs_h *g,\n"
26856 " const char *remotefilename,\n"
26857 " const char *filename,\n"
26858 " int64_t offset,\n"
26859 " int64_t size);\n"
26864 #: ../src/guestfs-actions.pod:1450
26866 "Note that there is no limit on the amount of data that can be downloaded "
26867 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
26868 "full amount unless an error occurs."
26872 #: ../src/guestfs-actions.pod:1455
26873 msgid "See also C<guestfs_download>, C<guestfs_pread>."
26877 #: ../src/guestfs-actions.pod:1464 ../src/guestfs-actions.pod:7455
26878 msgid "(Added in 1.5.17)"
26879 msgstr "(Додано у 1.5.17)"
26882 #: ../src/guestfs-actions.pod:1466
26883 msgid "guestfs_drop_caches"
26887 #: ../src/guestfs-actions.pod:1468
26891 " guestfs_drop_caches (guestfs_h *g,\n"
26892 " int whattodrop);\n"
26897 #: ../src/guestfs-actions.pod:1486
26902 #: ../src/guestfs-actions.pod:1488
26906 " guestfs_du (guestfs_h *g,\n"
26907 " const char *path);\n"
26912 #: ../src/guestfs-actions.pod:1511
26913 msgid "guestfs_e2fsck_f"
26917 #: ../src/guestfs-actions.pod:1513
26921 " guestfs_e2fsck_f (guestfs_h *g,\n"
26922 " const char *device);\n"
26927 #: ../src/guestfs-actions.pod:1521
26929 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
26930 "Normally you should use C<guestfs_fsck>."
26934 #: ../src/guestfs-actions.pod:1526
26935 msgid "(Added in 1.0.29)"
26936 msgstr "(Додано у 1.0.29)"
26939 #: ../src/guestfs-actions.pod:1528
26940 msgid "guestfs_echo_daemon"
26941 msgstr "guestfs_echo_daemon"
26944 #: ../src/guestfs-actions.pod:1530
26948 " guestfs_echo_daemon (guestfs_h *g,\n"
26949 " char *const *words);\n"
26953 " guestfs_echo_daemon (guestfs_h *g,\n"
26954 " char *const *words);\n"
26958 #: ../src/guestfs-actions.pod:1539
26959 msgid "See also C<guestfs_ping_daemon>."
26963 #: ../src/guestfs-actions.pod:1544 ../src/guestfs-actions.pod:2302
26964 #: ../src/guestfs-actions.pod:6626
26965 msgid "(Added in 1.0.69)"
26966 msgstr "(Додано у 1.0.69)"
26969 #: ../src/guestfs-actions.pod:1546
26970 msgid "guestfs_egrep"
26971 msgstr "guestfs_egrep"
26974 #: ../src/guestfs-actions.pod:1548
26978 " guestfs_egrep (guestfs_h *g,\n"
26979 " const char *regex,\n"
26980 " const char *path);\n"
26984 " guestfs_egrep (guestfs_h *g,\n"
26985 " const char *regex,\n"
26986 " const char *path);\n"
26990 #: ../src/guestfs-actions.pod:1563 ../src/guestfs-actions.pod:1582
26991 #: ../src/guestfs-actions.pod:1639 ../src/guestfs-actions.pod:1685
26992 #: ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:2432
26993 #: ../src/guestfs-actions.pod:2451 ../src/guestfs-actions.pod:2629
26994 #: ../src/guestfs-actions.pod:2642 ../src/guestfs-actions.pod:2657
26995 #: ../src/guestfs-actions.pod:2703 ../src/guestfs-actions.pod:2725
26996 #: ../src/guestfs-actions.pod:2738 ../src/guestfs-actions.pod:4024
26997 #: ../src/guestfs-actions.pod:4038 ../src/guestfs-actions.pod:4051
26998 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:5066
26999 #: ../src/guestfs-actions.pod:6087 ../src/guestfs-actions.pod:6136
27000 #: ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7034
27001 #: ../src/guestfs-actions.pod:7047 ../src/guestfs-actions.pod:7060
27002 #: ../src/guestfs-actions.pod:7082 ../src/guestfs-actions.pod:7095
27003 #: ../src/guestfs-actions.pod:7108 ../src/guestfs-actions.pod:7121
27004 #: ../src/guestfs-actions.pod:7915 ../src/guestfs-actions.pod:7934
27005 #: ../src/guestfs-actions.pod:8028 ../src/guestfs-actions.pod:8047
27006 #: ../src/guestfs-actions.pod:8093 ../src/guestfs-actions.pod:8112
27007 msgid "(Added in 1.0.66)"
27008 msgstr "(Додано у 1.0.66)"
27011 #: ../src/guestfs-actions.pod:1565
27012 msgid "guestfs_egrepi"
27013 msgstr "guestfs_egrepi"
27016 #: ../src/guestfs-actions.pod:1567
27020 " guestfs_egrepi (guestfs_h *g,\n"
27021 " const char *regex,\n"
27022 " const char *path);\n"
27027 #: ../src/guestfs-actions.pod:1584
27028 msgid "guestfs_equal"
27032 #: ../src/guestfs-actions.pod:1586
27036 " guestfs_equal (guestfs_h *g,\n"
27037 " const char *file1,\n"
27038 " const char *file2);\n"
27043 #: ../src/guestfs-actions.pod:1600
27044 msgid "guestfs_exists"
27048 #: ../src/guestfs-actions.pod:1602
27052 " guestfs_exists (guestfs_h *g,\n"
27053 " const char *path);\n"
27058 #: ../src/guestfs-actions.pod:1609
27059 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
27063 #: ../src/guestfs-actions.pod:1615
27064 msgid "guestfs_fallocate"
27068 #: ../src/guestfs-actions.pod:1617
27072 " guestfs_fallocate (guestfs_h *g,\n"
27073 " const char *path,\n"
27079 #: ../src/guestfs-actions.pod:1622
27081 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
27086 #: ../src/guestfs-actions.pod:1641
27087 msgid "guestfs_fallocate64"
27091 #: ../src/guestfs-actions.pod:1643
27095 " guestfs_fallocate64 (guestfs_h *g,\n"
27096 " const char *path,\n"
27102 #: ../src/guestfs-actions.pod:1652
27104 "Note that this call allocates disk blocks for the file. To create a sparse "
27105 "file use C<guestfs_truncate_size> instead."
27109 #: ../src/guestfs-actions.pod:1655
27111 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27112 "oversight it only allowed 30 bit lengths to be specified, effectively "
27113 "limiting the maximum size of files created through that call to 1GB."
27117 #: ../src/guestfs-actions.pod:1666
27118 msgid "(Added in 1.3.17)"
27119 msgstr "(Додано у 1.3.17)"
27122 #: ../src/guestfs-actions.pod:1668
27123 msgid "guestfs_fgrep"
27127 #: ../src/guestfs-actions.pod:1670
27131 " guestfs_fgrep (guestfs_h *g,\n"
27132 " const char *pattern,\n"
27133 " const char *path);\n"
27138 #: ../src/guestfs-actions.pod:1687
27139 msgid "guestfs_fgrepi"
27143 #: ../src/guestfs-actions.pod:1689
27147 " guestfs_fgrepi (guestfs_h *g,\n"
27148 " const char *pattern,\n"
27149 " const char *path);\n"
27154 #: ../src/guestfs-actions.pod:1706
27155 msgid "guestfs_file"
27159 #: ../src/guestfs-actions.pod:1708
27163 " guestfs_file (guestfs_h *g,\n"
27164 " const char *path);\n"
27169 #: ../src/guestfs-actions.pod:1726
27171 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27172 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27176 #: ../src/guestfs-actions.pod:1734
27177 msgid "guestfs_file_architecture"
27181 #: ../src/guestfs-actions.pod:1736
27185 " guestfs_file_architecture (guestfs_h *g,\n"
27186 " const char *filename);\n"
27191 #: ../src/guestfs-actions.pod:1844 ../src/guestfs-actions.pod:2007
27192 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2758
27193 #: ../src/guestfs-actions.pod:2860 ../src/guestfs-actions.pod:2926
27194 #: ../src/guestfs-actions.pod:3113 ../src/guestfs-actions.pod:3131
27195 #: ../src/guestfs-actions.pod:3171 ../src/guestfs-actions.pod:3247
27196 #: ../src/guestfs-actions.pod:3344 ../src/guestfs-actions.pod:3581
27197 #: ../src/guestfs-actions.pod:3713
27198 msgid "(Added in 1.5.3)"
27199 msgstr "(Додано у 1.5.3)"
27202 #: ../src/guestfs-actions.pod:1846
27203 msgid "guestfs_filesize"
27207 #: ../src/guestfs-actions.pod:1848
27211 " guestfs_filesize (guestfs_h *g,\n"
27212 " const char *file);\n"
27217 #: ../src/guestfs-actions.pod:1854
27219 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27220 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
27221 "devices, use C<guestfs_blockdev_getsize64>."
27225 #: ../src/guestfs-actions.pod:1860
27226 msgid "(Added in 1.0.82)"
27227 msgstr "(Додано у 1.0.82)"
27230 #: ../src/guestfs-actions.pod:1862
27231 msgid "guestfs_fill"
27235 #: ../src/guestfs-actions.pod:1864
27239 " guestfs_fill (guestfs_h *g,\n"
27242 " const char *path);\n"
27247 #: ../src/guestfs-actions.pod:1874
27249 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27250 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
27251 "bytes use C<guestfs_fill_pattern>."
27255 #: ../src/guestfs-actions.pod:1886
27256 msgid "(Added in 1.0.79)"
27257 msgstr "(Додано у 1.0.79)"
27260 #: ../src/guestfs-actions.pod:1888
27261 msgid "guestfs_fill_pattern"
27265 #: ../src/guestfs-actions.pod:1890
27269 " guestfs_fill_pattern (guestfs_h *g,\n"
27270 " const char *pattern,\n"
27272 " const char *path);\n"
27277 #: ../src/guestfs-actions.pod:1896
27279 "This function is like C<guestfs_fill> except that it creates a new file of "
27280 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
27281 "pattern is truncated if necessary to ensure the length of the file is "
27282 "exactly C<len> bytes."
27286 #: ../src/guestfs-actions.pod:1908
27287 msgid "(Added in 1.3.12)"
27288 msgstr "(Додано у 1.3.12)"
27291 #: ../src/guestfs-actions.pod:1910
27292 msgid "guestfs_find"
27296 #: ../src/guestfs-actions.pod:1912
27300 " guestfs_find (guestfs_h *g,\n"
27301 " const char *directory);\n"
27306 #: ../src/guestfs-actions.pod:1928
27308 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27312 #: ../src/guestfs-actions.pod:1941
27313 msgid "See also C<guestfs_find0>."
27317 #: ../src/guestfs-actions.pod:1950 ../src/guestfs-actions.pod:4471
27318 #: ../src/guestfs-actions.pod:6171
27319 msgid "(Added in 1.0.27)"
27320 msgstr "(Додано у 1.0.27)"
27323 #: ../src/guestfs-actions.pod:1952
27324 msgid "guestfs_find0"
27328 #: ../src/guestfs-actions.pod:1954
27332 " guestfs_find0 (guestfs_h *g,\n"
27333 " const char *directory,\n"
27334 " const char *files);\n"
27339 #: ../src/guestfs-actions.pod:1963
27341 "This command works the same way as C<guestfs_find> with the following "
27346 #: ../src/guestfs-actions.pod:1990
27347 msgid "(Added in 1.0.74)"
27348 msgstr "(Додано у 1.0.74)"
27351 #: ../src/guestfs-actions.pod:1992
27352 msgid "guestfs_findfs_label"
27356 #: ../src/guestfs-actions.pod:1994
27360 " guestfs_findfs_label (guestfs_h *g,\n"
27361 " const char *label);\n"
27366 #: ../src/guestfs-actions.pod:2002
27367 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
27371 #: ../src/guestfs-actions.pod:2009
27372 msgid "guestfs_findfs_uuid"
27376 #: ../src/guestfs-actions.pod:2011
27380 " guestfs_findfs_uuid (guestfs_h *g,\n"
27381 " const char *uuid);\n"
27386 #: ../src/guestfs-actions.pod:2019
27387 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
27391 #: ../src/guestfs-actions.pod:2026
27392 msgid "guestfs_fsck"
27396 #: ../src/guestfs-actions.pod:2028
27400 " guestfs_fsck (guestfs_h *g,\n"
27401 " const char *fstype,\n"
27402 " const char *device);\n"
27407 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:7962
27408 msgid "(Added in 1.0.16)"
27409 msgstr "(Додано у 1.0.16)"
27412 #: ../src/guestfs-actions.pod:2065
27413 msgid "guestfs_get_append"
27417 #: ../src/guestfs-actions.pod:2067
27421 " guestfs_get_append (guestfs_h *g);\n"
27426 #: ../src/guestfs-actions.pod:2075
27428 "This function returns a string which may be NULL. There is no way to return "
27429 "an error from this function. The string is owned by the guest handle and "
27430 "must I<not> be freed."
27434 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:5849
27435 #: ../src/guestfs-actions.pod:6331 ../src/guestfs-actions.pod:6789
27436 #: ../src/guestfs-actions.pod:6808 ../src/guestfs-actions.pod:6824
27437 #: ../src/guestfs-actions.pod:6848 ../src/guestfs-actions.pod:7602
27438 #: ../src/guestfs-actions.pod:7617 ../src/guestfs-actions.pod:8009
27439 msgid "(Added in 1.0.26)"
27440 msgstr "(Додано у 1.0.26)"
27443 #: ../src/guestfs-actions.pod:2081
27444 msgid "guestfs_get_attach_method"
27448 #: ../src/guestfs-actions.pod:2083
27452 " guestfs_get_attach_method (guestfs_h *g);\n"
27457 #: ../src/guestfs-actions.pod:2086
27458 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
27462 #: ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:6361
27463 msgid "(Added in 1.9.8)"
27464 msgstr "(Додано у 1.9.8)"
27467 #: ../src/guestfs-actions.pod:2093
27468 msgid "guestfs_get_autosync"
27472 #: ../src/guestfs-actions.pod:2095
27476 " guestfs_get_autosync (guestfs_h *g);\n"
27481 #: ../src/guestfs-actions.pod:2104
27482 msgid "guestfs_get_direct"
27486 #: ../src/guestfs-actions.pod:2106
27490 " guestfs_get_direct (guestfs_h *g);\n"
27495 #: ../src/guestfs-actions.pod:2113 ../src/guestfs-actions.pod:6402
27496 msgid "(Added in 1.0.72)"
27497 msgstr "(Додано у 1.0.72)"
27500 #: ../src/guestfs-actions.pod:2115
27501 msgid "guestfs_get_e2label"
27505 #: ../src/guestfs-actions.pod:2117
27509 " guestfs_get_e2label (guestfs_h *g,\n"
27510 " const char *device);\n"
27515 #: ../src/guestfs-actions.pod:2121
27517 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
27522 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:2155
27523 #: ../src/guestfs-actions.pod:6420 ../src/guestfs-actions.pod:6439
27524 msgid "(Added in 1.0.15)"
27525 msgstr "(Додано у 1.0.15)"
27528 #: ../src/guestfs-actions.pod:2136
27529 msgid "guestfs_get_e2uuid"
27533 #: ../src/guestfs-actions.pod:2138
27537 " guestfs_get_e2uuid (guestfs_h *g,\n"
27538 " const char *device);\n"
27543 #: ../src/guestfs-actions.pod:2142
27545 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
27550 #: ../src/guestfs-actions.pod:2157
27551 msgid "guestfs_get_memsize"
27555 #: ../src/guestfs-actions.pod:2159
27559 " guestfs_get_memsize (guestfs_h *g);\n"
27564 #: ../src/guestfs-actions.pod:2165
27566 "If C<guestfs_set_memsize> was not called on this handle, and if "
27567 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
27568 "value for memsize."
27572 #: ../src/guestfs-actions.pod:2174 ../src/guestfs-actions.pod:4762
27573 #: ../src/guestfs-actions.pod:4971 ../src/guestfs-actions.pod:4990
27574 #: ../src/guestfs-actions.pod:5009 ../src/guestfs-actions.pod:5021
27575 #: ../src/guestfs-actions.pod:5038 ../src/guestfs-actions.pod:5051
27576 #: ../src/guestfs-actions.pod:6074 ../src/guestfs-actions.pod:6460
27577 #: ../src/guestfs-actions.pod:6756 ../src/guestfs-actions.pod:7371
27578 msgid "(Added in 1.0.55)"
27579 msgstr "(Додано у 1.0.55)"
27582 #: ../src/guestfs-actions.pod:2176
27583 msgid "guestfs_get_network"
27587 #: ../src/guestfs-actions.pod:2178
27591 " guestfs_get_network (guestfs_h *g);\n"
27596 #: ../src/guestfs-actions.pod:2185 ../src/guestfs-actions.pod:6479
27597 msgid "(Added in 1.5.4)"
27598 msgstr "(Додано у 1.5.4)"
27601 #: ../src/guestfs-actions.pod:2187
27602 msgid "guestfs_get_path"
27606 #: ../src/guestfs-actions.pod:2189
27610 " guestfs_get_path (guestfs_h *g);\n"
27615 #: ../src/guestfs-actions.pod:2197 ../src/guestfs-actions.pod:2237
27617 "This function returns a string, or NULL on error. The string is owned by "
27618 "the guest handle and must I<not> be freed."
27622 #: ../src/guestfs-actions.pod:2202
27623 msgid "guestfs_get_pgroup"
27627 #: ../src/guestfs-actions.pod:2204
27631 " guestfs_get_pgroup (guestfs_h *g);\n"
27636 #: ../src/guestfs-actions.pod:2211 ../src/guestfs-actions.pod:6515
27637 #: ../src/guestfs-actions.pod:7863
27638 msgid "(Added in 1.11.18)"
27639 msgstr "(Додано у 1.11.18)"
27642 #: ../src/guestfs-actions.pod:2213
27643 msgid "guestfs_get_pid"
27647 #: ../src/guestfs-actions.pod:2215
27651 " guestfs_get_pid (guestfs_h *g);\n"
27656 #: ../src/guestfs-actions.pod:2225
27657 msgid "(Added in 1.0.56)"
27658 msgstr "(Додано у 1.0.56)"
27661 #: ../src/guestfs-actions.pod:2227
27662 msgid "guestfs_get_qemu"
27666 #: ../src/guestfs-actions.pod:2229
27670 " guestfs_get_qemu (guestfs_h *g);\n"
27675 #: ../src/guestfs-actions.pod:2240 ../src/guestfs-actions.pod:6543
27676 msgid "(Added in 1.0.6)"
27677 msgstr "(Додано у 1.0.6)"
27680 #: ../src/guestfs-actions.pod:2242
27681 msgid "guestfs_get_recovery_proc"
27685 #: ../src/guestfs-actions.pod:2244
27689 " guestfs_get_recovery_proc (guestfs_h *g);\n"
27694 #: ../src/guestfs-actions.pod:2251 ../src/guestfs-actions.pod:3835
27695 #: ../src/guestfs-actions.pod:4166 ../src/guestfs-actions.pod:4569
27696 #: ../src/guestfs-actions.pod:4601 ../src/guestfs-actions.pod:5779
27697 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6567
27698 #: ../src/guestfs-actions.pod:7274 ../src/guestfs-actions.pod:7294
27699 #: ../src/guestfs-actions.pod:7486
27700 msgid "(Added in 1.0.77)"
27701 msgstr "(Додано у 1.0.77)"
27704 #: ../src/guestfs-actions.pod:2253
27705 msgid "guestfs_get_selinux"
27709 #: ../src/guestfs-actions.pod:2255
27713 " guestfs_get_selinux (guestfs_h *g);\n"
27718 #: ../src/guestfs-actions.pod:2258
27720 "This returns the current setting of the selinux flag which is passed to the "
27721 "appliance at boot time. See C<guestfs_set_selinux>."
27725 #: ../src/guestfs-actions.pod:2266 ../src/guestfs-actions.pod:2340
27726 #: ../src/guestfs-actions.pod:6586 ../src/guestfs-actions.pod:6660
27727 msgid "(Added in 1.0.67)"
27728 msgstr "(Додано у 1.0.67)"
27731 #: ../src/guestfs-actions.pod:2268
27732 msgid "guestfs_get_smp"
27736 #: ../src/guestfs-actions.pod:2270
27740 " guestfs_get_smp (guestfs_h *g);\n"
27745 #: ../src/guestfs-actions.pod:2279
27746 msgid "guestfs_get_state"
27750 #: ../src/guestfs-actions.pod:2281
27754 " guestfs_get_state (guestfs_h *g);\n"
27759 #: ../src/guestfs-actions.pod:2293
27760 msgid "guestfs_get_trace"
27764 #: ../src/guestfs-actions.pod:2295
27768 " guestfs_get_trace (guestfs_h *g);\n"
27773 #: ../src/guestfs-actions.pod:2304
27774 msgid "guestfs_get_umask"
27778 #: ../src/guestfs-actions.pod:2306
27782 " guestfs_get_umask (guestfs_h *g);\n"
27787 #: ../src/guestfs-actions.pod:2309
27789 "Return the current umask. By default the umask is C<022> unless it has been "
27790 "set by calling C<guestfs_umask>."
27794 #: ../src/guestfs-actions.pod:2316
27795 msgid "guestfs_get_verbose"
27799 #: ../src/guestfs-actions.pod:2318
27803 " guestfs_get_verbose (guestfs_h *g);\n"
27808 #: ../src/guestfs-actions.pod:2327
27809 msgid "guestfs_getcon"
27813 #: ../src/guestfs-actions.pod:2329
27817 " guestfs_getcon (guestfs_h *g);\n"
27822 #: ../src/guestfs-actions.pod:2334
27824 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
27828 #: ../src/guestfs-actions.pod:2342
27829 msgid "guestfs_getxattr"
27833 #: ../src/guestfs-actions.pod:2344
27837 " guestfs_getxattr (guestfs_h *g,\n"
27838 " const char *path,\n"
27839 " const char *name,\n"
27840 " size_t *size_r);\n"
27845 #: ../src/guestfs-actions.pod:2350
27847 "Get a single extended attribute from file C<path> named C<name>. This call "
27848 "follows symlinks. If you want to lookup an extended attribute for the "
27849 "symlink itself, use C<guestfs_lgetxattr>."
27853 #: ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:3849
27855 "Normally it is better to get all extended attributes from a file in one go "
27856 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
27857 "implementations are buggy and do not provide a way to list out attributes. "
27858 "For these filesystems (notably ntfs-3g) you have to know the names of the "
27859 "extended attributes you want in advance and call this function."
27863 #: ../src/guestfs-actions.pod:2364
27864 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
27868 #: ../src/guestfs-actions.pod:2366 ../src/guestfs-actions.pod:2579
27869 #: ../src/guestfs-actions.pod:3061 ../src/guestfs-actions.pod:3861
27870 #: ../src/guestfs-actions.pod:5772 ../src/guestfs-actions.pod:5798
27871 #: ../src/guestfs-actions.pod:5979
27873 "This function returns a buffer, or NULL on error. The size of the returned "
27874 "buffer is written to C<*size_r>. I<The caller must free the returned buffer "
27879 #: ../src/guestfs-actions.pod:2370 ../src/guestfs-actions.pod:3865
27880 msgid "(Added in 1.7.24)"
27881 msgstr "(Додано у 1.7.24)"
27884 #: ../src/guestfs-actions.pod:2372
27885 msgid "guestfs_getxattrs"
27889 #: ../src/guestfs-actions.pod:2374
27892 " struct guestfs_xattr_list *\n"
27893 " guestfs_getxattrs (guestfs_h *g,\n"
27894 " const char *path);\n"
27899 #: ../src/guestfs-actions.pod:2384
27900 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
27904 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:3877
27905 #: ../src/guestfs-actions.pod:4565
27907 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
27908 "an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
27912 #: ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:3881
27913 #: ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4116
27914 #: ../src/guestfs-actions.pod:6152 ../src/guestfs-actions.pod:6679
27915 #: ../src/guestfs-actions.pod:8074
27916 msgid "(Added in 1.0.59)"
27917 msgstr "(Додано у 1.0.59)"
27920 #: ../src/guestfs-actions.pod:2392
27921 msgid "guestfs_glob_expand"
27925 #: ../src/guestfs-actions.pod:2394
27929 " guestfs_glob_expand (guestfs_h *g,\n"
27930 " const char *pattern);\n"
27935 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:6872
27936 #: ../src/guestfs-actions.pod:6889
27937 msgid "(Added in 1.0.50)"
27938 msgstr "(Додано у 1.0.50)"
27941 #: ../src/guestfs-actions.pod:2415
27942 msgid "guestfs_grep"
27946 #: ../src/guestfs-actions.pod:2417
27950 " guestfs_grep (guestfs_h *g,\n"
27951 " const char *regex,\n"
27952 " const char *path);\n"
27957 #: ../src/guestfs-actions.pod:2434
27958 msgid "guestfs_grepi"
27962 #: ../src/guestfs-actions.pod:2436
27966 " guestfs_grepi (guestfs_h *g,\n"
27967 " const char *regex,\n"
27968 " const char *path);\n"
27973 #: ../src/guestfs-actions.pod:2453
27974 msgid "guestfs_grub_install"
27978 #: ../src/guestfs-actions.pod:2455
27982 " guestfs_grub_install (guestfs_h *g,\n"
27983 " const char *root,\n"
27984 " const char *device);\n"
27989 #: ../src/guestfs-actions.pod:2498
27990 msgid "(Added in 1.0.17)"
27991 msgstr "(Додано у 1.0.17)"
27994 #: ../src/guestfs-actions.pod:2500
27995 msgid "guestfs_head"
27999 #: ../src/guestfs-actions.pod:2502
28003 " guestfs_head (guestfs_h *g,\n"
28004 " const char *path);\n"
28009 #: ../src/guestfs-actions.pod:2518
28010 msgid "guestfs_head_n"
28014 #: ../src/guestfs-actions.pod:2520
28018 " guestfs_head_n (guestfs_h *g,\n"
28020 " const char *path);\n"
28025 #: ../src/guestfs-actions.pod:2542
28026 msgid "guestfs_hexdump"
28030 #: ../src/guestfs-actions.pod:2544
28034 " guestfs_hexdump (guestfs_h *g,\n"
28035 " const char *path);\n"
28040 #: ../src/guestfs-actions.pod:2557 ../src/guestfs-actions.pod:6953
28041 #: ../src/guestfs-actions.pod:7008
28042 msgid "(Added in 1.0.22)"
28043 msgstr "(Додано у 1.0.22)"
28046 #: ../src/guestfs-actions.pod:2559
28047 msgid "guestfs_initrd_cat"
28051 #: ../src/guestfs-actions.pod:2561
28055 " guestfs_initrd_cat (guestfs_h *g,\n"
28056 " const char *initrdpath,\n"
28057 " const char *filename,\n"
28058 " size_t *size_r);\n"
28063 #: ../src/guestfs-actions.pod:2577
28064 msgid "See also C<guestfs_initrd_list>."
28068 #: ../src/guestfs-actions.pod:2588
28069 msgid "guestfs_initrd_list"
28073 #: ../src/guestfs-actions.pod:2590
28077 " guestfs_initrd_list (guestfs_h *g,\n"
28078 " const char *path);\n"
28083 #: ../src/guestfs-actions.pod:2610
28084 msgid "guestfs_inotify_add_watch"
28088 #: ../src/guestfs-actions.pod:2612
28092 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28093 " const char *path,\n"
28099 #: ../src/guestfs-actions.pod:2631
28100 msgid "guestfs_inotify_close"
28104 #: ../src/guestfs-actions.pod:2633
28108 " guestfs_inotify_close (guestfs_h *g);\n"
28113 #: ../src/guestfs-actions.pod:2644
28114 msgid "guestfs_inotify_files"
28118 #: ../src/guestfs-actions.pod:2646
28122 " guestfs_inotify_files (guestfs_h *g);\n"
28127 #: ../src/guestfs-actions.pod:2649
28129 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28130 "returns a list of pathnames of objects that were touched. The returned "
28131 "pathnames are sorted and deduplicated."
28135 #: ../src/guestfs-actions.pod:2659
28136 msgid "guestfs_inotify_init"
28140 #: ../src/guestfs-actions.pod:2661
28144 " guestfs_inotify_init (guestfs_h *g,\n"
28145 " int maxevents);\n"
28150 #: ../src/guestfs-actions.pod:2669
28152 "C<maxevents> is the maximum number of events which will be queued up between "
28153 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
28154 "passed as C<0>, then the kernel (or previously set) default is used. For "
28155 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
28156 "throws away events, but records the fact that it threw them away by setting "
28157 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28158 "C<guestfs_inotify_read>)."
28162 #: ../src/guestfs-actions.pod:2679
28164 "Before any events are generated, you have to add some watches to the "
28165 "internal watch list. See: C<guestfs_inotify_add_watch>, "
28166 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28170 #: ../src/guestfs-actions.pod:2685
28172 "Queued up events should be read periodically by calling "
28173 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28174 "wrapper around C<guestfs_inotify_read>). If you don't read the events out "
28175 "often enough then you risk the internal queue overflowing."
28179 #: ../src/guestfs-actions.pod:2692
28181 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
28182 "This also removes any watches automatically."
28186 #: ../src/guestfs-actions.pod:2705
28187 msgid "guestfs_inotify_read"
28191 #: ../src/guestfs-actions.pod:2707
28194 " struct guestfs_inotify_event_list *\n"
28195 " guestfs_inotify_read (guestfs_h *g);\n"
28200 #: ../src/guestfs-actions.pod:2721
28202 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28203 "there was an error. I<The caller must call "
28204 "C<guestfs_free_inotify_event_list> after use>."
28208 #: ../src/guestfs-actions.pod:2727
28209 msgid "guestfs_inotify_rm_watch"
28213 #: ../src/guestfs-actions.pod:2729
28217 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28223 #: ../src/guestfs-actions.pod:2733
28225 "Remove a previously defined inotify watch. See C<guestfs_inotify_add_watch>."
28229 #: ../src/guestfs-actions.pod:2740
28230 msgid "guestfs_inspect_get_arch"
28234 #: ../src/guestfs-actions.pod:2742
28238 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28239 " const char *root);\n"
28244 #: ../src/guestfs-actions.pod:2746
28246 "This returns the architecture of the inspected operating system. The "
28247 "possible return values are listed under C<guestfs_file_architecture>."
28251 #: ../src/guestfs-actions.pod:2760
28252 msgid "guestfs_inspect_get_distro"
28256 #: ../src/guestfs-actions.pod:2762
28260 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28261 " const char *root);\n"
28266 #: ../src/guestfs-actions.pod:2862
28267 msgid "guestfs_inspect_get_drive_mappings"
28271 #: ../src/guestfs-actions.pod:2864
28275 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28276 " const char *root);\n"
28281 #: ../src/guestfs-actions.pod:2893
28283 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28284 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28288 #: ../src/guestfs-actions.pod:2897 ../src/guestfs-actions.pod:3165
28289 #: ../src/guestfs-actions.pod:3968 ../src/guestfs-actions.pod:5240
28290 #: ../src/guestfs-actions.pod:7310
28292 "This function returns a NULL-terminated array of strings, or NULL if there "
28293 "was an error. The array of strings will always have length C<2n+1>, where "
28294 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
28295 "caller must free the strings and the array after use>."
28299 #: ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:3364
28300 msgid "(Added in 1.9.17)"
28301 msgstr "(Додано у 1.9.17)"
28304 #: ../src/guestfs-actions.pod:2905
28305 msgid "guestfs_inspect_get_filesystems"
28309 #: ../src/guestfs-actions.pod:2907
28313 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
28314 " const char *root);\n"
28319 #: ../src/guestfs-actions.pod:2919
28321 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28322 "C<guestfs_inspect_get_mountpoints>."
28326 #: ../src/guestfs-actions.pod:2928
28327 msgid "guestfs_inspect_get_format"
28331 #: ../src/guestfs-actions.pod:2930
28335 " guestfs_inspect_get_format (guestfs_h *g,\n"
28336 " const char *root);\n"
28341 #: ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3400
28342 #: ../src/guestfs-actions.pod:3416 ../src/guestfs-actions.pod:3434
28343 #: ../src/guestfs-actions.pod:6190
28344 msgid "(Added in 1.9.4)"
28345 msgstr "(Додано у 1.9.4)"
28348 #: ../src/guestfs-actions.pod:2966
28349 msgid "guestfs_inspect_get_hostname"
28353 #: ../src/guestfs-actions.pod:2968
28357 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
28358 " const char *root);\n"
28363 #: ../src/guestfs-actions.pod:2983
28364 msgid "(Added in 1.7.9)"
28365 msgstr "(Додано у 1.7.9)"
28368 #: ../src/guestfs-actions.pod:2985
28369 msgid "guestfs_inspect_get_icon"
28373 #: ../src/guestfs-actions.pod:2987
28377 " guestfs_inspect_get_icon (guestfs_h *g,\n"
28378 " const char *root,\n"
28379 " size_t *size_r,\n"
28385 #: ../src/guestfs-actions.pod:2998
28388 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
28389 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
28394 #: ../src/guestfs-actions.pod:3065 ../src/guestfs-actions.pod:3895
28395 #: ../src/guestfs-actions.pod:5139
28396 msgid "(Added in 1.11.12)"
28397 msgstr "(Додано у 1.11.12)"
28400 #: ../src/guestfs-actions.pod:3067
28401 msgid "guestfs_inspect_get_icon_va"
28405 #: ../src/guestfs-actions.pod:3069
28409 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
28410 " const char *root,\n"
28411 " size_t *size_r,\n"
28412 " va_list args);\n"
28417 #: ../src/guestfs-actions.pod:3075
28418 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
28422 #: ../src/guestfs-actions.pod:3079
28423 msgid "guestfs_inspect_get_icon_argv"
28427 #: ../src/guestfs-actions.pod:3081
28431 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
28432 " const char *root,\n"
28433 " size_t *size_r,\n"
28434 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
28439 #: ../src/guestfs-actions.pod:3087
28440 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
28444 #: ../src/guestfs-actions.pod:3091
28445 msgid "guestfs_inspect_get_major_version"
28449 #: ../src/guestfs-actions.pod:3093
28453 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
28454 " const char *root);\n"
28459 #: ../src/guestfs-actions.pod:3115
28460 msgid "guestfs_inspect_get_minor_version"
28464 #: ../src/guestfs-actions.pod:3117
28468 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
28469 " const char *root);\n"
28474 #: ../src/guestfs-actions.pod:3126
28476 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28477 "C<guestfs_inspect_get_major_version>."
28481 #: ../src/guestfs-actions.pod:3133
28482 msgid "guestfs_inspect_get_mountpoints"
28486 #: ../src/guestfs-actions.pod:3135
28490 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
28491 " const char *root);\n"
28496 #: ../src/guestfs-actions.pod:3156
28498 "For operating systems like Windows which still use drive letters, this call "
28499 "will only return an entry for the first drive \"mounted on\" C</>. For "
28500 "information about the mapping of drive letters to partitions, see "
28501 "C<guestfs_inspect_get_drive_mappings>."
28505 #: ../src/guestfs-actions.pod:3162
28507 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28508 "C<guestfs_inspect_get_filesystems>."
28512 #: ../src/guestfs-actions.pod:3173
28513 msgid "guestfs_inspect_get_package_format"
28517 #: ../src/guestfs-actions.pod:3175
28521 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
28522 " const char *root);\n"
28527 #: ../src/guestfs-actions.pod:3179
28529 "This function and C<guestfs_inspect_get_package_management> return the "
28530 "package format and package management tool used by the inspected operating "
28531 "system. For example for Fedora these functions would return C<rpm> (package "
28532 "format) and C<yum> (package management)."
28536 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3226
28537 msgid "(Added in 1.7.5)"
28538 msgstr "(Додано у 1.7.5)"
28541 #: ../src/guestfs-actions.pod:3200
28542 msgid "guestfs_inspect_get_package_management"
28546 #: ../src/guestfs-actions.pod:3202
28550 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
28551 " const char *root);\n"
28556 #: ../src/guestfs-actions.pod:3206
28558 "C<guestfs_inspect_get_package_format> and this function return the package "
28559 "format and package management tool used by the inspected operating system. "
28560 "For example for Fedora these functions would return C<rpm> (package format) "
28561 "and C<yum> (package management)."
28565 #: ../src/guestfs-actions.pod:3228
28566 msgid "guestfs_inspect_get_product_name"
28570 #: ../src/guestfs-actions.pod:3230
28574 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
28575 " const char *root);\n"
28580 #: ../src/guestfs-actions.pod:3249
28581 msgid "guestfs_inspect_get_product_variant"
28585 #: ../src/guestfs-actions.pod:3251
28589 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
28590 " const char *root);\n"
28595 #: ../src/guestfs-actions.pod:3274
28597 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28598 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
28602 #: ../src/guestfs-actions.pod:3281
28603 msgid "(Added in 1.9.13)"
28604 msgstr "(Додано у 1.9.13)"
28607 #: ../src/guestfs-actions.pod:3283
28608 msgid "guestfs_inspect_get_roots"
28612 #: ../src/guestfs-actions.pod:3285
28616 " guestfs_inspect_get_roots (guestfs_h *g);\n"
28621 #: ../src/guestfs-actions.pod:3288
28623 "This function is a convenient way to get the list of root devices, as "
28624 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
28625 "the whole inspection process."
28629 #: ../src/guestfs-actions.pod:3292
28631 "This returns an empty list if either no root devices were found or the "
28632 "caller has not called C<guestfs_inspect_os>."
28636 #: ../src/guestfs-actions.pod:3301
28637 msgid "(Added in 1.7.3)"
28638 msgstr "(Додано у 1.7.3)"
28641 #: ../src/guestfs-actions.pod:3303
28642 msgid "guestfs_inspect_get_type"
28646 #: ../src/guestfs-actions.pod:3305
28650 " guestfs_inspect_get_type (guestfs_h *g,\n"
28651 " const char *root);\n"
28656 #: ../src/guestfs-actions.pod:3346
28657 msgid "guestfs_inspect_get_windows_current_control_set"
28661 #: ../src/guestfs-actions.pod:3348
28665 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
28666 " const char *root);\n"
28671 #: ../src/guestfs-actions.pod:3366
28672 msgid "guestfs_inspect_get_windows_systemroot"
28676 #: ../src/guestfs-actions.pod:3368
28680 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
28681 " const char *root);\n"
28686 #: ../src/guestfs-actions.pod:3384
28687 msgid "(Added in 1.5.25)"
28688 msgstr "(Додано у 1.5.25)"
28691 #: ../src/guestfs-actions.pod:3386
28692 msgid "guestfs_inspect_is_live"
28696 #: ../src/guestfs-actions.pod:3388
28700 " guestfs_inspect_is_live (guestfs_h *g,\n"
28701 " const char *root);\n"
28706 #: ../src/guestfs-actions.pod:3392
28708 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28709 "disk), then this returns true if a live image was detected on the disk."
28713 #: ../src/guestfs-actions.pod:3402
28714 msgid "guestfs_inspect_is_multipart"
28718 #: ../src/guestfs-actions.pod:3404
28722 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
28723 " const char *root);\n"
28728 #: ../src/guestfs-actions.pod:3408
28730 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28731 "disk), then this returns true if the disk is part of a set."
28735 #: ../src/guestfs-actions.pod:3418
28736 msgid "guestfs_inspect_is_netinst"
28740 #: ../src/guestfs-actions.pod:3420
28744 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
28745 " const char *root);\n"
28750 #: ../src/guestfs-actions.pod:3424
28752 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28753 "disk), then this returns true if the disk is a network installer, ie. not a "
28754 "self-contained install CD but one which is likely to require network access "
28755 "to complete the install."
28759 #: ../src/guestfs-actions.pod:3436
28760 msgid "guestfs_inspect_list_applications"
28764 #: ../src/guestfs-actions.pod:3438
28767 " struct guestfs_application_list *\n"
28768 " guestfs_inspect_list_applications (guestfs_h *g,\n"
28769 " const char *root);\n"
28774 #: ../src/guestfs-actions.pod:3444
28776 "I<Note:> This call works differently from other parts of the inspection "
28777 "API. You have to call C<guestfs_inspect_os>, then "
28778 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
28779 "this. Listing applications is a significantly more difficult operation "
28780 "which requires access to the full filesystem. Also note that unlike the "
28781 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
28782 "the libguestfs handle, this call actually reads parts of the mounted "
28783 "filesystems during the call."
28787 #: ../src/guestfs-actions.pod:3534
28789 "This function returns a C<struct guestfs_application_list *>, or NULL if "
28790 "there was an error. I<The caller must call C<guestfs_free_application_list> "
28795 #: ../src/guestfs-actions.pod:3538
28796 msgid "(Added in 1.7.8)"
28797 msgstr "(Додано у 1.7.8)"
28800 #: ../src/guestfs-actions.pod:3540
28801 msgid "guestfs_inspect_os"
28805 #: ../src/guestfs-actions.pod:3542
28809 " guestfs_inspect_os (guestfs_h *g);\n"
28814 #: ../src/guestfs-actions.pod:3558
28816 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
28817 "functions in order to query further information about each operating system, "
28818 "such as the name and version."
28822 #: ../src/guestfs-actions.pod:3563
28824 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
28825 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
28826 "the contents. This should be called with no disks currently mounted. The "
28827 "function may also use Augeas, so any existing Augeas handle will be closed."
28831 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3906
28832 #: ../src/guestfs-actions.pod:3988
28833 msgid "See also C<guestfs_list_filesystems>."
28837 #: ../src/guestfs-actions.pod:3583
28838 msgid "guestfs_is_blockdev"
28842 #: ../src/guestfs-actions.pod:3585
28846 " guestfs_is_blockdev (guestfs_h *g,\n"
28847 " const char *path);\n"
28852 #: ../src/guestfs-actions.pod:3592 ../src/guestfs-actions.pod:3621
28853 #: ../src/guestfs-actions.pod:3651 ../src/guestfs-actions.pod:3666
28854 #: ../src/guestfs-actions.pod:3682 ../src/guestfs-actions.pod:3738
28855 #: ../src/guestfs-actions.pod:3753
28856 msgid "See also C<guestfs_stat>."
28860 #: ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3625
28861 #: ../src/guestfs-actions.pod:3670 ../src/guestfs-actions.pod:3742
28862 #: ../src/guestfs-actions.pod:3757
28863 msgid "(Added in 1.5.10)"
28864 msgstr "(Додано у 1.5.10)"
28867 #: ../src/guestfs-actions.pod:3598
28868 msgid "guestfs_is_busy"
28872 #: ../src/guestfs-actions.pod:3600
28876 " guestfs_is_busy (guestfs_h *g);\n"
28881 #: ../src/guestfs-actions.pod:3612
28882 msgid "guestfs_is_chardev"
28886 #: ../src/guestfs-actions.pod:3614
28890 " guestfs_is_chardev (guestfs_h *g,\n"
28891 " const char *path);\n"
28896 #: ../src/guestfs-actions.pod:3627
28897 msgid "guestfs_is_config"
28901 #: ../src/guestfs-actions.pod:3629
28905 " guestfs_is_config (guestfs_h *g);\n"
28910 #: ../src/guestfs-actions.pod:3641
28911 msgid "guestfs_is_dir"
28915 #: ../src/guestfs-actions.pod:3643
28919 " guestfs_is_dir (guestfs_h *g,\n"
28920 " const char *path);\n"
28925 #: ../src/guestfs-actions.pod:3657
28926 msgid "guestfs_is_fifo"
28930 #: ../src/guestfs-actions.pod:3659
28934 " guestfs_is_fifo (guestfs_h *g,\n"
28935 " const char *path);\n"
28940 #: ../src/guestfs-actions.pod:3672
28941 msgid "guestfs_is_file"
28945 #: ../src/guestfs-actions.pod:3674
28949 " guestfs_is_file (guestfs_h *g,\n"
28950 " const char *path);\n"
28955 #: ../src/guestfs-actions.pod:3688
28956 msgid "guestfs_is_launching"
28960 #: ../src/guestfs-actions.pod:3690
28964 " guestfs_is_launching (guestfs_h *g);\n"
28969 #: ../src/guestfs-actions.pod:3702
28970 msgid "guestfs_is_lv"
28974 #: ../src/guestfs-actions.pod:3704
28978 " guestfs_is_lv (guestfs_h *g,\n"
28979 " const char *device);\n"
28984 #: ../src/guestfs-actions.pod:3715
28985 msgid "guestfs_is_ready"
28989 #: ../src/guestfs-actions.pod:3717
28993 " guestfs_is_ready (guestfs_h *g);\n"
28998 #: ../src/guestfs-actions.pod:3729
28999 msgid "guestfs_is_socket"
29003 #: ../src/guestfs-actions.pod:3731
29007 " guestfs_is_socket (guestfs_h *g,\n"
29008 " const char *path);\n"
29013 #: ../src/guestfs-actions.pod:3744
29014 msgid "guestfs_is_symlink"
29018 #: ../src/guestfs-actions.pod:3746
29022 " guestfs_is_symlink (guestfs_h *g,\n"
29023 " const char *path);\n"
29028 #: ../src/guestfs-actions.pod:3759
29029 msgid "guestfs_is_zero"
29033 #: ../src/guestfs-actions.pod:3761
29037 " guestfs_is_zero (guestfs_h *g,\n"
29038 " const char *path);\n"
29043 #: ../src/guestfs-actions.pod:3770 ../src/guestfs-actions.pod:3784
29044 msgid "(Added in 1.11.8)"
29045 msgstr "(Додано у 1.11.8)"
29048 #: ../src/guestfs-actions.pod:3772
29049 msgid "guestfs_is_zero_device"
29053 #: ../src/guestfs-actions.pod:3774
29057 " guestfs_is_zero_device (guestfs_h *g,\n"
29058 " const char *device);\n"
29063 #: ../src/guestfs-actions.pod:3786
29064 msgid "guestfs_kill_subprocess"
29068 #: ../src/guestfs-actions.pod:3788
29072 " guestfs_kill_subprocess (guestfs_h *g);\n"
29077 #: ../src/guestfs-actions.pod:3797
29078 msgid "guestfs_launch"
29082 #: ../src/guestfs-actions.pod:3799
29086 " guestfs_launch (guestfs_h *g);\n"
29091 #: ../src/guestfs-actions.pod:3817
29092 msgid "guestfs_lchown"
29096 #: ../src/guestfs-actions.pod:3819
29100 " guestfs_lchown (guestfs_h *g,\n"
29103 " const char *path);\n"
29108 #: ../src/guestfs-actions.pod:3825
29110 "Change the file owner to C<owner> and group to C<group>. This is like "
29111 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29112 "changed, not the target."
29116 #: ../src/guestfs-actions.pod:3837
29117 msgid "guestfs_lgetxattr"
29121 #: ../src/guestfs-actions.pod:3839
29125 " guestfs_lgetxattr (guestfs_h *g,\n"
29126 " const char *path,\n"
29127 " const char *name,\n"
29128 " size_t *size_r);\n"
29133 #: ../src/guestfs-actions.pod:3859
29134 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29138 #: ../src/guestfs-actions.pod:3867
29139 msgid "guestfs_lgetxattrs"
29143 #: ../src/guestfs-actions.pod:3869
29146 " struct guestfs_xattr_list *\n"
29147 " guestfs_lgetxattrs (guestfs_h *g,\n"
29148 " const char *path);\n"
29153 #: ../src/guestfs-actions.pod:3873
29155 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29156 "then it returns the extended attributes of the link itself."
29160 #: ../src/guestfs-actions.pod:3883
29161 msgid "guestfs_list_9p"
29165 #: ../src/guestfs-actions.pod:3885
29169 " guestfs_list_9p (guestfs_h *g);\n"
29174 #: ../src/guestfs-actions.pod:3897
29175 msgid "guestfs_list_devices"
29179 #: ../src/guestfs-actions.pod:3899
29183 " guestfs_list_devices (guestfs_h *g);\n"
29188 #: ../src/guestfs-actions.pod:3914
29189 msgid "guestfs_list_dm_devices"
29193 #: ../src/guestfs-actions.pod:3916
29197 " guestfs_list_dm_devices (guestfs_h *g);\n"
29202 #: ../src/guestfs-actions.pod:3921
29204 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29205 "previous call to C<guestfs_luks_open>."
29209 #: ../src/guestfs-actions.pod:3924
29211 "Device mapper devices which correspond to logical volumes are I<not> "
29212 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
29217 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:5378
29218 msgid "(Added in 1.11.15)"
29219 msgstr "(Додано у 1.11.15)"
29222 #: ../src/guestfs-actions.pod:3934
29223 msgid "guestfs_list_filesystems"
29227 #: ../src/guestfs-actions.pod:3936
29231 " guestfs_list_filesystems (guestfs_h *g);\n"
29236 #: ../src/guestfs-actions.pod:3956
29238 "This command runs other libguestfs commands, which might include "
29239 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29240 "soon after launch and only when nothing is mounted."
29244 #: ../src/guestfs-actions.pod:3960
29246 "Not all of the filesystems returned will be mountable. In particular, swap "
29247 "partitions are returned in the list. Also this command does not check that "
29248 "each filesystem found is valid and mountable, and some filesystems might be "
29249 "mountable but require special options. Filesystems may not all belong to a "
29250 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
29254 #: ../src/guestfs-actions.pod:3974 ../src/guestfs-actions.pod:5739
29255 msgid "(Added in 1.5.15)"
29256 msgstr "(Додано у 1.5.15)"
29259 #: ../src/guestfs-actions.pod:3976
29260 msgid "guestfs_list_partitions"
29261 msgstr "guestfs_list_partitions"
29264 #: ../src/guestfs-actions.pod:3978
29268 " guestfs_list_partitions (guestfs_h *g);\n"
29272 " guestfs_list_partitions (guestfs_h *g);\n"
29276 #: ../src/guestfs-actions.pod:3985
29278 "This does not return logical volumes. For that you will need to call "
29283 #: ../src/guestfs-actions.pod:3996
29285 msgstr "guestfs_ll"
29288 #: ../src/guestfs-actions.pod:3998
29292 " guestfs_ll (guestfs_h *g,\n"
29293 " const char *directory);\n"
29297 " guestfs_ll (guestfs_h *g,\n"
29298 " const char *directory);\n"
29302 #: ../src/guestfs-actions.pod:4013
29304 msgstr "guestfs_ln"
29307 #: ../src/guestfs-actions.pod:4015
29311 " guestfs_ln (guestfs_h *g,\n"
29312 " const char *target,\n"
29313 " const char *linkname);\n"
29317 " guestfs_ln (guestfs_h *g,\n"
29318 " const char *target,\n"
29319 " const char *linkname);\n"
29323 #: ../src/guestfs-actions.pod:4026
29324 msgid "guestfs_ln_f"
29325 msgstr "guestfs_ln_f"
29328 #: ../src/guestfs-actions.pod:4028
29332 " guestfs_ln_f (guestfs_h *g,\n"
29333 " const char *target,\n"
29334 " const char *linkname);\n"
29338 " guestfs_ln_f (guestfs_h *g,\n"
29339 " const char *target,\n"
29340 " const char *linkname);\n"
29344 #: ../src/guestfs-actions.pod:4040
29345 msgid "guestfs_ln_s"
29346 msgstr "guestfs_ln_s"
29349 #: ../src/guestfs-actions.pod:4042
29353 " guestfs_ln_s (guestfs_h *g,\n"
29354 " const char *target,\n"
29355 " const char *linkname);\n"
29359 " guestfs_ln_s (guestfs_h *g,\n"
29360 " const char *target,\n"
29361 " const char *linkname);\n"
29365 #: ../src/guestfs-actions.pod:4053
29366 msgid "guestfs_ln_sf"
29367 msgstr "guestfs_ln_sf"
29370 #: ../src/guestfs-actions.pod:4055
29374 " guestfs_ln_sf (guestfs_h *g,\n"
29375 " const char *target,\n"
29376 " const char *linkname);\n"
29380 " guestfs_ln_sf (guestfs_h *g,\n"
29381 " const char *target,\n"
29382 " const char *linkname);\n"
29386 #: ../src/guestfs-actions.pod:4067
29387 msgid "guestfs_lremovexattr"
29388 msgstr "guestfs_lremovexattr"
29391 #: ../src/guestfs-actions.pod:4069
29395 " guestfs_lremovexattr (guestfs_h *g,\n"
29396 " const char *xattr,\n"
29397 " const char *path);\n"
29401 " guestfs_lremovexattr (guestfs_h *g,\n"
29402 " const char *xattr,\n"
29403 " const char *path);\n"
29407 #: ../src/guestfs-actions.pod:4074
29409 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
29410 "link, then it removes an extended attribute of the link itself."
29414 #: ../src/guestfs-actions.pod:4082
29416 msgstr "guestfs_ls"
29419 #: ../src/guestfs-actions.pod:4084
29423 " guestfs_ls (guestfs_h *g,\n"
29424 " const char *directory);\n"
29428 " guestfs_ls (guestfs_h *g,\n"
29429 " const char *directory);\n"
29433 #: ../src/guestfs-actions.pod:4092
29435 "This command is mostly useful for interactive sessions. Programs should "
29436 "probably use C<guestfs_readdir> instead."
29440 #: ../src/guestfs-actions.pod:4101
29441 msgid "guestfs_lsetxattr"
29442 msgstr "guestfs_lsetxattr"
29445 #: ../src/guestfs-actions.pod:4103
29449 " guestfs_lsetxattr (guestfs_h *g,\n"
29450 " const char *xattr,\n"
29451 " const char *val,\n"
29453 " const char *path);\n"
29457 " guestfs_lsetxattr (guestfs_h *g,\n"
29458 " const char *xattr,\n"
29459 " const char *val,\n"
29461 " const char *path);\n"
29465 #: ../src/guestfs-actions.pod:4110
29467 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
29468 "then it sets an extended attribute of the link itself."
29472 #: ../src/guestfs-actions.pod:4118
29473 msgid "guestfs_lstat"
29474 msgstr "guestfs_lstat"
29477 #: ../src/guestfs-actions.pod:4120
29480 " struct guestfs_stat *\n"
29481 " guestfs_lstat (guestfs_h *g,\n"
29482 " const char *path);\n"
29485 " struct guestfs_stat *\n"
29486 " guestfs_lstat (guestfs_h *g,\n"
29487 " const char *path);\n"
29491 #: ../src/guestfs-actions.pod:4126
29493 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
29494 "link, then the link is stat-ed, not the file it refers to."
29498 #: ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:6913
29500 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
29501 "error. I<The caller must call C<guestfs_free_stat> after use>."
29505 #: ../src/guestfs-actions.pod:4136 ../src/guestfs-actions.pod:6917
29506 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:7316
29507 msgid "(Added in 0.9.2)"
29508 msgstr "(Додано у 0.9.2)"
29511 #: ../src/guestfs-actions.pod:4138
29512 msgid "guestfs_lstatlist"
29513 msgstr "guestfs_lstatlist"
29516 #: ../src/guestfs-actions.pod:4140
29519 " struct guestfs_stat_list *\n"
29520 " guestfs_lstatlist (guestfs_h *g,\n"
29521 " const char *path,\n"
29522 " char *const *names);\n"
29525 " struct guestfs_stat_list *\n"
29526 " guestfs_lstatlist (guestfs_h *g,\n"
29527 " const char *path,\n"
29528 " char *const *names);\n"
29532 #: ../src/guestfs-actions.pod:4145
29534 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
29535 "files, where all files are in the directory C<path>. C<names> is the list "
29536 "of files from this directory."
29540 #: ../src/guestfs-actions.pod:4154
29542 "This call is intended for programs that want to efficiently list a directory "
29543 "contents without making many round-trips. See also C<guestfs_lxattrlist> "
29544 "for a similarly efficient call for getting extended attributes. Very long "
29545 "directory listings might cause the protocol message size to be exceeded, "
29546 "causing this call to fail. The caller must split up such requests into "
29547 "smaller groups of names."
29551 #: ../src/guestfs-actions.pod:4162
29553 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
29554 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
29558 #: ../src/guestfs-actions.pod:4168
29559 msgid "guestfs_luks_add_key"
29560 msgstr "guestfs_luks_add_key"
29563 #: ../src/guestfs-actions.pod:4170
29567 " guestfs_luks_add_key (guestfs_h *g,\n"
29568 " const char *device,\n"
29569 " const char *key,\n"
29570 " const char *newkey,\n"
29575 " guestfs_luks_add_key (guestfs_h *g,\n"
29576 " const char *device,\n"
29577 " const char *key,\n"
29578 " const char *newkey,\n"
29583 #: ../src/guestfs-actions.pod:4182
29585 "Note that if C<keyslot> already contains a key, then this command will "
29586 "fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
29590 #: ../src/guestfs-actions.pod:4188 ../src/guestfs-actions.pod:4228
29591 #: ../src/guestfs-actions.pod:4251 ../src/guestfs-actions.pod:4271
29592 #: ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:4325
29594 "This function takes a key or passphrase parameter which could contain "
29595 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
29600 #: ../src/guestfs-actions.pod:4192 ../src/guestfs-actions.pod:4232
29601 #: ../src/guestfs-actions.pod:4255 ../src/guestfs-actions.pod:4275
29602 msgid "(Added in 1.5.2)"
29603 msgstr "(Додано у 1.5.2)"
29606 #: ../src/guestfs-actions.pod:4194
29607 msgid "guestfs_luks_close"
29608 msgstr "guestfs_luks_close"
29611 #: ../src/guestfs-actions.pod:4196
29615 " guestfs_luks_close (guestfs_h *g,\n"
29616 " const char *device);\n"
29620 " guestfs_luks_close (guestfs_h *g,\n"
29621 " const char *device);\n"
29625 #: ../src/guestfs-actions.pod:4200
29627 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
29628 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
29629 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
29630 "underlying block device."
29634 #: ../src/guestfs-actions.pod:4208 ../src/guestfs-actions.pod:4310
29635 #: ../src/guestfs-actions.pod:4329 ../src/guestfs-actions.pod:4379
29636 #: ../src/guestfs-actions.pod:4427
29637 msgid "(Added in 1.5.1)"
29638 msgstr "(Додано у 1.5.1)"
29641 #: ../src/guestfs-actions.pod:4210
29642 msgid "guestfs_luks_format"
29643 msgstr "guestfs_luks_format"
29646 #: ../src/guestfs-actions.pod:4212
29650 " guestfs_luks_format (guestfs_h *g,\n"
29651 " const char *device,\n"
29652 " const char *key,\n"
29657 " guestfs_luks_format (guestfs_h *g,\n"
29658 " const char *device,\n"
29659 " const char *key,\n"
29664 #: ../src/guestfs-actions.pod:4234
29665 msgid "guestfs_luks_format_cipher"
29666 msgstr "guestfs_luks_format_cipher"
29669 #: ../src/guestfs-actions.pod:4236
29673 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29674 " const char *device,\n"
29675 " const char *key,\n"
29677 " const char *cipher);\n"
29681 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29682 " const char *device,\n"
29683 " const char *key,\n"
29685 " const char *cipher);\n"
29689 #: ../src/guestfs-actions.pod:4243
29691 "This command is the same as C<guestfs_luks_format> but it also allows you to "
29692 "set the C<cipher> used."
29696 #: ../src/guestfs-actions.pod:4257
29697 msgid "guestfs_luks_kill_slot"
29698 msgstr "guestfs_luks_kill_slot"
29701 #: ../src/guestfs-actions.pod:4259
29705 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29706 " const char *device,\n"
29707 " const char *key,\n"
29712 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29713 " const char *device,\n"
29714 " const char *key,\n"
29719 #: ../src/guestfs-actions.pod:4277
29720 msgid "guestfs_luks_open"
29721 msgstr "guestfs_luks_open"
29724 #: ../src/guestfs-actions.pod:4279
29728 " guestfs_luks_open (guestfs_h *g,\n"
29729 " const char *device,\n"
29730 " const char *key,\n"
29731 " const char *mapname);\n"
29735 " guestfs_luks_open (guestfs_h *g,\n"
29736 " const char *device,\n"
29737 " const char *key,\n"
29738 " const char *mapname);\n"
29742 #: ../src/guestfs-actions.pod:4297
29744 "If this block device contains LVM volume groups, then calling "
29745 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
29750 #: ../src/guestfs-actions.pod:4301
29751 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
29755 #: ../src/guestfs-actions.pod:4312
29756 msgid "guestfs_luks_open_ro"
29757 msgstr "guestfs_luks_open_ro"
29760 #: ../src/guestfs-actions.pod:4314
29764 " guestfs_luks_open_ro (guestfs_h *g,\n"
29765 " const char *device,\n"
29766 " const char *key,\n"
29767 " const char *mapname);\n"
29771 " guestfs_luks_open_ro (guestfs_h *g,\n"
29772 " const char *device,\n"
29773 " const char *key,\n"
29774 " const char *mapname);\n"
29778 #: ../src/guestfs-actions.pod:4320
29780 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
29785 #: ../src/guestfs-actions.pod:4331
29786 msgid "guestfs_lvcreate"
29787 msgstr "guestfs_lvcreate"
29790 #: ../src/guestfs-actions.pod:4333
29794 " guestfs_lvcreate (guestfs_h *g,\n"
29795 " const char *logvol,\n"
29796 " const char *volgroup,\n"
29801 " guestfs_lvcreate (guestfs_h *g,\n"
29802 " const char *logvol,\n"
29803 " const char *volgroup,\n"
29808 #: ../src/guestfs-actions.pod:4346
29809 msgid "guestfs_lvm_canonical_lv_name"
29810 msgstr "guestfs_lvm_canonical_lv_name"
29813 #: ../src/guestfs-actions.pod:4348
29817 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29818 " const char *lvname);\n"
29822 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29823 " const char *lvname);\n"
29827 #: ../src/guestfs-actions.pod:4359
29828 msgid "See also C<guestfs_is_lv>."
29832 #: ../src/guestfs-actions.pod:4364
29833 msgid "(Added in 1.5.24)"
29834 msgstr "(Додано у 1.5.24)"
29837 #: ../src/guestfs-actions.pod:4366
29838 msgid "guestfs_lvm_clear_filter"
29839 msgstr "guestfs_lvm_clear_filter"
29842 #: ../src/guestfs-actions.pod:4368
29846 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29850 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29854 #: ../src/guestfs-actions.pod:4371
29856 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
29857 "see every block device."
29861 #: ../src/guestfs-actions.pod:4381
29862 msgid "guestfs_lvm_remove_all"
29863 msgstr "guestfs_lvm_remove_all"
29866 #: ../src/guestfs-actions.pod:4383
29870 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29874 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29878 #: ../src/guestfs-actions.pod:4396
29879 msgid "guestfs_lvm_set_filter"
29880 msgstr "guestfs_lvm_set_filter"
29883 #: ../src/guestfs-actions.pod:4398
29887 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29888 " char *const *devices);\n"
29892 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29893 " char *const *devices);\n"
29897 #: ../src/guestfs-actions.pod:4429
29898 msgid "guestfs_lvremove"
29899 msgstr "guestfs_lvremove"
29902 #: ../src/guestfs-actions.pod:4431
29906 " guestfs_lvremove (guestfs_h *g,\n"
29907 " const char *device);\n"
29911 " guestfs_lvremove (guestfs_h *g,\n"
29912 " const char *device);\n"
29916 #: ../src/guestfs-actions.pod:4443 ../src/guestfs-actions.pod:5836
29917 #: ../src/guestfs-actions.pod:7686
29918 msgid "(Added in 1.0.13)"
29919 msgstr "(Додано у 1.0.13)"
29922 #: ../src/guestfs-actions.pod:4445
29923 msgid "guestfs_lvrename"
29924 msgstr "guestfs_lvrename"
29927 #: ../src/guestfs-actions.pod:4447
29931 " guestfs_lvrename (guestfs_h *g,\n"
29932 " const char *logvol,\n"
29933 " const char *newlogvol);\n"
29937 " guestfs_lvrename (guestfs_h *g,\n"
29938 " const char *logvol,\n"
29939 " const char *newlogvol);\n"
29943 #: ../src/guestfs-actions.pod:4456 ../src/guestfs-actions.pod:7699
29944 msgid "(Added in 1.0.83)"
29945 msgstr "(Додано у 1.0.83)"
29948 #: ../src/guestfs-actions.pod:4458
29949 msgid "guestfs_lvresize"
29950 msgstr "guestfs_lvresize"
29953 #: ../src/guestfs-actions.pod:4460
29957 " guestfs_lvresize (guestfs_h *g,\n"
29958 " const char *device,\n"
29963 " guestfs_lvresize (guestfs_h *g,\n"
29964 " const char *device,\n"
29969 #: ../src/guestfs-actions.pod:4473
29970 msgid "guestfs_lvresize_free"
29971 msgstr "guestfs_lvresize_free"
29974 #: ../src/guestfs-actions.pod:4475
29978 " guestfs_lvresize_free (guestfs_h *g,\n"
29979 " const char *lv,\n"
29984 " guestfs_lvresize_free (guestfs_h *g,\n"
29985 " const char *lv,\n"
29990 #: ../src/guestfs-actions.pod:4488
29991 msgid "(Added in 1.3.3)"
29992 msgstr "(Додано у 1.3.3)"
29995 #: ../src/guestfs-actions.pod:4490
29996 msgid "guestfs_lvs"
29997 msgstr "guestfs_lvs"
30000 #: ../src/guestfs-actions.pod:4492
30004 " guestfs_lvs (guestfs_h *g);\n"
30008 " guestfs_lvs (guestfs_h *g);\n"
30012 #: ../src/guestfs-actions.pod:4501
30013 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
30017 #: ../src/guestfs-actions.pod:4509
30018 msgid "guestfs_lvs_full"
30019 msgstr "guestfs_lvs_full"
30022 #: ../src/guestfs-actions.pod:4511
30025 " struct guestfs_lvm_lv_list *\n"
30026 " guestfs_lvs_full (guestfs_h *g);\n"
30029 " struct guestfs_lvm_lv_list *\n"
30030 " guestfs_lvs_full (guestfs_h *g);\n"
30034 #: ../src/guestfs-actions.pod:4517
30036 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
30037 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
30041 #: ../src/guestfs-actions.pod:4523
30042 msgid "guestfs_lvuuid"
30043 msgstr "guestfs_lvuuid"
30046 #: ../src/guestfs-actions.pod:4525
30050 " guestfs_lvuuid (guestfs_h *g,\n"
30051 " const char *device);\n"
30055 " guestfs_lvuuid (guestfs_h *g,\n"
30056 " const char *device);\n"
30060 #: ../src/guestfs-actions.pod:4536
30061 msgid "guestfs_lxattrlist"
30062 msgstr "guestfs_lxattrlist"
30065 #: ../src/guestfs-actions.pod:4538
30068 " struct guestfs_xattr_list *\n"
30069 " guestfs_lxattrlist (guestfs_h *g,\n"
30070 " const char *path,\n"
30071 " char *const *names);\n"
30074 " struct guestfs_xattr_list *\n"
30075 " guestfs_lxattrlist (guestfs_h *g,\n"
30076 " const char *path,\n"
30077 " char *const *names);\n"
30081 #: ../src/guestfs-actions.pod:4557
30083 "This call is intended for programs that want to efficiently list a directory "
30084 "contents without making many round-trips. See also C<guestfs_lstatlist> for "
30085 "a similarly efficient call for getting standard stats. Very long directory "
30086 "listings might cause the protocol message size to be exceeded, causing this "
30087 "call to fail. The caller must split up such requests into smaller groups of "
30092 #: ../src/guestfs-actions.pod:4571
30093 msgid "guestfs_mkdir"
30094 msgstr "guestfs_mkdir"
30097 #: ../src/guestfs-actions.pod:4573
30101 " guestfs_mkdir (guestfs_h *g,\n"
30102 " const char *path);\n"
30106 " guestfs_mkdir (guestfs_h *g,\n"
30107 " const char *path);\n"
30111 #: ../src/guestfs-actions.pod:4583
30112 msgid "guestfs_mkdir_mode"
30113 msgstr "guestfs_mkdir_mode"
30116 #: ../src/guestfs-actions.pod:4585
30120 " guestfs_mkdir_mode (guestfs_h *g,\n"
30121 " const char *path,\n"
30126 " guestfs_mkdir_mode (guestfs_h *g,\n"
30127 " const char *path,\n"
30132 #: ../src/guestfs-actions.pod:4597
30133 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30137 #: ../src/guestfs-actions.pod:4603
30138 msgid "guestfs_mkdir_p"
30139 msgstr "guestfs_mkdir_p"
30142 #: ../src/guestfs-actions.pod:4605
30146 " guestfs_mkdir_p (guestfs_h *g,\n"
30147 " const char *path);\n"
30151 " guestfs_mkdir_p (guestfs_h *g,\n"
30152 " const char *path);\n"
30156 #: ../src/guestfs-actions.pod:4616
30157 msgid "guestfs_mkdtemp"
30158 msgstr "guestfs_mkdtemp"
30161 #: ../src/guestfs-actions.pod:4618
30165 " guestfs_mkdtemp (guestfs_h *g,\n"
30166 " const char *template);\n"
30170 " guestfs_mkdtemp (guestfs_h *g,\n"
30171 " const char *template);\n"
30175 #: ../src/guestfs-actions.pod:4646
30176 msgid "guestfs_mke2fs_J"
30177 msgstr "guestfs_mke2fs_J"
30180 #: ../src/guestfs-actions.pod:4648
30184 " guestfs_mke2fs_J (guestfs_h *g,\n"
30185 " const char *fstype,\n"
30186 " int blocksize,\n"
30187 " const char *device,\n"
30188 " const char *journal);\n"
30192 " guestfs_mke2fs_J (guestfs_h *g,\n"
30193 " const char *fstype,\n"
30194 " int blocksize,\n"
30195 " const char *device,\n"
30196 " const char *journal);\n"
30200 #: ../src/guestfs-actions.pod:4661
30201 msgid "See also C<guestfs_mke2journal>."
30205 #: ../src/guestfs-actions.pod:4665 ../src/guestfs-actions.pod:4683
30206 #: ../src/guestfs-actions.pod:4701 ../src/guestfs-actions.pod:4717
30207 #: ../src/guestfs-actions.pod:4731 ../src/guestfs-actions.pod:4745
30208 #: ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:5081
30209 msgid "(Added in 1.0.68)"
30210 msgstr "(Додано у 1.0.68)"
30213 #: ../src/guestfs-actions.pod:4667
30214 msgid "guestfs_mke2fs_JL"
30215 msgstr "guestfs_mke2fs_JL"
30218 #: ../src/guestfs-actions.pod:4669
30222 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30223 " const char *fstype,\n"
30224 " int blocksize,\n"
30225 " const char *device,\n"
30226 " const char *label);\n"
30230 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30231 " const char *fstype,\n"
30232 " int blocksize,\n"
30233 " const char *device,\n"
30234 " const char *label);\n"
30238 #: ../src/guestfs-actions.pod:4679
30239 msgid "See also C<guestfs_mke2journal_L>."
30243 #: ../src/guestfs-actions.pod:4685
30244 msgid "guestfs_mke2fs_JU"
30245 msgstr "guestfs_mke2fs_JU"
30248 #: ../src/guestfs-actions.pod:4687
30252 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30253 " const char *fstype,\n"
30254 " int blocksize,\n"
30255 " const char *device,\n"
30256 " const char *uuid);\n"
30260 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30261 " const char *fstype,\n"
30262 " int blocksize,\n"
30263 " const char *device,\n"
30264 " const char *uuid);\n"
30268 #: ../src/guestfs-actions.pod:4697
30269 msgid "See also C<guestfs_mke2journal_U>."
30273 #: ../src/guestfs-actions.pod:4703
30274 msgid "guestfs_mke2journal"
30275 msgstr "guestfs_mke2journal"
30278 #: ../src/guestfs-actions.pod:4705
30282 " guestfs_mke2journal (guestfs_h *g,\n"
30283 " int blocksize,\n"
30284 " const char *device);\n"
30288 " guestfs_mke2journal (guestfs_h *g,\n"
30289 " int blocksize,\n"
30290 " const char *device);\n"
30294 #: ../src/guestfs-actions.pod:4719
30295 msgid "guestfs_mke2journal_L"
30296 msgstr "guestfs_mke2journal_L"
30299 #: ../src/guestfs-actions.pod:4721
30303 " guestfs_mke2journal_L (guestfs_h *g,\n"
30304 " int blocksize,\n"
30305 " const char *label,\n"
30306 " const char *device);\n"
30310 " guestfs_mke2journal_L (guestfs_h *g,\n"
30311 " int blocksize,\n"
30312 " const char *label,\n"
30313 " const char *device);\n"
30317 #: ../src/guestfs-actions.pod:4733
30318 msgid "guestfs_mke2journal_U"
30319 msgstr "guestfs_mke2journal_U"
30322 #: ../src/guestfs-actions.pod:4735
30326 " guestfs_mke2journal_U (guestfs_h *g,\n"
30327 " int blocksize,\n"
30328 " const char *uuid,\n"
30329 " const char *device);\n"
30333 " guestfs_mke2journal_U (guestfs_h *g,\n"
30334 " int blocksize,\n"
30335 " const char *uuid,\n"
30336 " const char *device);\n"
30340 #: ../src/guestfs-actions.pod:4747
30341 msgid "guestfs_mkfifo"
30342 msgstr "guestfs_mkfifo"
30345 #: ../src/guestfs-actions.pod:4749
30349 " guestfs_mkfifo (guestfs_h *g,\n"
30351 " const char *path);\n"
30355 " guestfs_mkfifo (guestfs_h *g,\n"
30357 " const char *path);\n"
30361 #: ../src/guestfs-actions.pod:4754
30363 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
30364 "is just a convenient wrapper around C<guestfs_mknod>."
30368 #: ../src/guestfs-actions.pod:4764
30369 msgid "guestfs_mkfs"
30370 msgstr "guestfs_mkfs"
30373 #: ../src/guestfs-actions.pod:4766
30377 " guestfs_mkfs (guestfs_h *g,\n"
30378 " const char *fstype,\n"
30379 " const char *device);\n"
30383 " guestfs_mkfs (guestfs_h *g,\n"
30384 " const char *fstype,\n"
30385 " const char *device);\n"
30389 #: ../src/guestfs-actions.pod:4779
30390 msgid "guestfs_mkfs_b"
30391 msgstr "guestfs_mkfs_b"
30394 #: ../src/guestfs-actions.pod:4781
30398 " guestfs_mkfs_b (guestfs_h *g,\n"
30399 " const char *fstype,\n"
30400 " int blocksize,\n"
30401 " const char *device);\n"
30405 " guestfs_mkfs_b (guestfs_h *g,\n"
30406 " const char *fstype,\n"
30407 " int blocksize,\n"
30408 " const char *device);\n"
30412 #: ../src/guestfs-actions.pod:4787
30414 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
30419 #: ../src/guestfs-actions.pod:4794
30421 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
30422 "block size of the resulting filesystem. Supported block sizes depend on the "
30423 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
30427 #: ../src/guestfs-actions.pod:4806
30428 msgid "guestfs_mkfs_opts"
30429 msgstr "guestfs_mkfs_opts"
30432 #: ../src/guestfs-actions.pod:4808
30436 " guestfs_mkfs_opts (guestfs_h *g,\n"
30437 " const char *fstype,\n"
30438 " const char *device,\n"
30443 " guestfs_mkfs_opts (guestfs_h *g,\n"
30444 " const char *fstype,\n"
30445 " const char *device,\n"
30450 #: ../src/guestfs-actions.pod:4819
30453 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
30454 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
30455 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
30456 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
30461 #: ../src/guestfs-actions.pod:4867
30462 msgid "(Added in 1.7.19)"
30463 msgstr "(Додано у 1.7.19)"
30466 #: ../src/guestfs-actions.pod:4869
30467 msgid "guestfs_mkfs_opts_va"
30468 msgstr "guestfs_mkfs_opts_va"
30471 #: ../src/guestfs-actions.pod:4871
30475 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30476 " const char *fstype,\n"
30477 " const char *device,\n"
30478 " va_list args);\n"
30482 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30483 " const char *fstype,\n"
30484 " const char *device,\n"
30485 " va_list args);\n"
30489 #: ../src/guestfs-actions.pod:4877
30490 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
30494 #: ../src/guestfs-actions.pod:4881
30495 msgid "guestfs_mkfs_opts_argv"
30496 msgstr "guestfs_mkfs_opts_argv"
30499 #: ../src/guestfs-actions.pod:4883
30503 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30504 " const char *fstype,\n"
30505 " const char *device,\n"
30506 " const struct guestfs_mkfs_opts_argv *optargs);\n"
30510 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30511 " const char *fstype,\n"
30512 " const char *device,\n"
30513 " const struct guestfs_mkfs_opts_argv *optargs);\n"
30517 #: ../src/guestfs-actions.pod:4889
30518 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
30522 #: ../src/guestfs-actions.pod:4893
30523 msgid "guestfs_mkmountpoint"
30524 msgstr "guestfs_mkmountpoint"
30527 #: ../src/guestfs-actions.pod:4895
30531 " guestfs_mkmountpoint (guestfs_h *g,\n"
30532 " const char *exemptpath);\n"
30536 " guestfs_mkmountpoint (guestfs_h *g,\n"
30537 " const char *exemptpath);\n"
30541 #: ../src/guestfs-actions.pod:4899
30543 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
30544 "that can be used to create extra mountpoints before mounting the first "
30549 #: ../src/guestfs-actions.pod:4923
30551 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
30552 "may get unexpected errors if you try to mix these calls. It is safest to "
30553 "manually unmount filesystems and remove mountpoints after use."
30557 #: ../src/guestfs-actions.pod:4927
30559 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
30560 "first, so for this to work for manual mountpoints, you must ensure that the "
30561 "innermost mountpoints have the longest pathnames, as in the example code "
30566 #: ../src/guestfs-actions.pod:4934
30568 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
30569 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
30570 "can also trigger these issues."
30574 #: ../src/guestfs-actions.pod:4940 ../src/guestfs-actions.pod:5246
30575 #: ../src/guestfs-actions.pod:6256
30576 msgid "(Added in 1.0.62)"
30577 msgstr "(Додано у 1.0.62)"
30580 #: ../src/guestfs-actions.pod:4942
30581 msgid "guestfs_mknod"
30585 #: ../src/guestfs-actions.pod:4944
30589 " guestfs_mknod (guestfs_h *g,\n"
30593 " const char *path);\n"
30598 #: ../src/guestfs-actions.pod:4959
30600 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
30601 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
30602 "regular file). These constants are available in the standard Linux header "
30603 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
30604 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
30605 "the appropriate constant for you."
30609 #: ../src/guestfs-actions.pod:4973
30610 msgid "guestfs_mknod_b"
30614 #: ../src/guestfs-actions.pod:4975
30618 " guestfs_mknod_b (guestfs_h *g,\n"
30622 " const char *path);\n"
30627 #: ../src/guestfs-actions.pod:4982
30629 "This call creates a block device node called C<path> with mode C<mode> and "
30630 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
30631 "wrapper around C<guestfs_mknod>."
30635 #: ../src/guestfs-actions.pod:4992
30636 msgid "guestfs_mknod_c"
30640 #: ../src/guestfs-actions.pod:4994
30644 " guestfs_mknod_c (guestfs_h *g,\n"
30648 " const char *path);\n"
30653 #: ../src/guestfs-actions.pod:5001
30655 "This call creates a char device node called C<path> with mode C<mode> and "
30656 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
30657 "wrapper around C<guestfs_mknod>."
30661 #: ../src/guestfs-actions.pod:5011
30662 msgid "guestfs_mkswap"
30666 #: ../src/guestfs-actions.pod:5013
30670 " guestfs_mkswap (guestfs_h *g,\n"
30671 " const char *device);\n"
30676 #: ../src/guestfs-actions.pod:5023
30677 msgid "guestfs_mkswap_L"
30681 #: ../src/guestfs-actions.pod:5025
30685 " guestfs_mkswap_L (guestfs_h *g,\n"
30686 " const char *label,\n"
30687 " const char *device);\n"
30692 #: ../src/guestfs-actions.pod:5040
30693 msgid "guestfs_mkswap_U"
30697 #: ../src/guestfs-actions.pod:5042
30701 " guestfs_mkswap_U (guestfs_h *g,\n"
30702 " const char *uuid,\n"
30703 " const char *device);\n"
30708 #: ../src/guestfs-actions.pod:5053
30709 msgid "guestfs_mkswap_file"
30713 #: ../src/guestfs-actions.pod:5055
30717 " guestfs_mkswap_file (guestfs_h *g,\n"
30718 " const char *path);\n"
30723 #: ../src/guestfs-actions.pod:5061
30725 "This command just writes a swap file signature to an existing file. To "
30726 "create the file itself, use something like C<guestfs_fallocate>."
30730 #: ../src/guestfs-actions.pod:5068
30731 msgid "guestfs_modprobe"
30735 #: ../src/guestfs-actions.pod:5070
30739 " guestfs_modprobe (guestfs_h *g,\n"
30740 " const char *modulename);\n"
30745 #: ../src/guestfs-actions.pod:5083
30746 msgid "guestfs_mount"
30750 #: ../src/guestfs-actions.pod:5085
30754 " guestfs_mount (guestfs_h *g,\n"
30755 " const char *device,\n"
30756 " const char *mountpoint);\n"
30761 #: ../src/guestfs-actions.pod:5104
30763 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
30764 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
30765 "problems for users. If your program might need to work with older versions "
30766 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
30767 "for the first parameter if you don't want any options)."
30771 #: ../src/guestfs-actions.pod:5115
30772 msgid "guestfs_mount_9p"
30776 #: ../src/guestfs-actions.pod:5117
30780 " guestfs_mount_9p (guestfs_h *g,\n"
30781 " const char *mounttag,\n"
30782 " const char *mountpoint,\n"
30788 #: ../src/guestfs-actions.pod:5128
30791 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
30796 #: ../src/guestfs-actions.pod:5141
30797 msgid "guestfs_mount_9p_va"
30801 #: ../src/guestfs-actions.pod:5143
30805 " guestfs_mount_9p_va (guestfs_h *g,\n"
30806 " const char *mounttag,\n"
30807 " const char *mountpoint,\n"
30808 " va_list args);\n"
30813 #: ../src/guestfs-actions.pod:5149
30814 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
30818 #: ../src/guestfs-actions.pod:5153
30819 msgid "guestfs_mount_9p_argv"
30823 #: ../src/guestfs-actions.pod:5155
30827 " guestfs_mount_9p_argv (guestfs_h *g,\n"
30828 " const char *mounttag,\n"
30829 " const char *mountpoint,\n"
30830 " const struct guestfs_mount_9p_argv *optargs);\n"
30835 #: ../src/guestfs-actions.pod:5161
30836 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
30840 #: ../src/guestfs-actions.pod:5165
30841 msgid "guestfs_mount_loop"
30845 #: ../src/guestfs-actions.pod:5167
30849 " guestfs_mount_loop (guestfs_h *g,\n"
30850 " const char *file,\n"
30851 " const char *mountpoint);\n"
30856 #: ../src/guestfs-actions.pod:5180
30857 msgid "guestfs_mount_options"
30861 #: ../src/guestfs-actions.pod:5182
30865 " guestfs_mount_options (guestfs_h *g,\n"
30866 " const char *options,\n"
30867 " const char *device,\n"
30868 " const char *mountpoint);\n"
30873 #: ../src/guestfs-actions.pod:5188
30875 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30876 "the mount options as for the L<mount(8)> I<-o> flag."
30880 #: ../src/guestfs-actions.pod:5198 ../src/guestfs-actions.pod:5212
30881 #: ../src/guestfs-actions.pod:5229
30882 msgid "(Added in 1.0.10)"
30883 msgstr "(Додано у 1.0.10)"
30886 #: ../src/guestfs-actions.pod:5200
30887 msgid "guestfs_mount_ro"
30891 #: ../src/guestfs-actions.pod:5202
30895 " guestfs_mount_ro (guestfs_h *g,\n"
30896 " const char *device,\n"
30897 " const char *mountpoint);\n"
30902 #: ../src/guestfs-actions.pod:5207
30904 "This is the same as the C<guestfs_mount> command, but it mounts the "
30905 "filesystem with the read-only (I<-o ro>) flag."
30909 #: ../src/guestfs-actions.pod:5214
30910 msgid "guestfs_mount_vfs"
30914 #: ../src/guestfs-actions.pod:5216
30918 " guestfs_mount_vfs (guestfs_h *g,\n"
30919 " const char *options,\n"
30920 " const char *vfstype,\n"
30921 " const char *device,\n"
30922 " const char *mountpoint);\n"
30927 #: ../src/guestfs-actions.pod:5223
30929 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30930 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
30935 #: ../src/guestfs-actions.pod:5231
30936 msgid "guestfs_mountpoints"
30940 #: ../src/guestfs-actions.pod:5233
30944 " guestfs_mountpoints (guestfs_h *g);\n"
30949 #: ../src/guestfs-actions.pod:5236
30951 "This call is similar to C<guestfs_mounts>. That call returns a list of "
30952 "devices. This one returns a hash table (map) of device name to directory "
30953 "where the device is mounted."
30957 #: ../src/guestfs-actions.pod:5248
30958 msgid "guestfs_mounts"
30962 #: ../src/guestfs-actions.pod:5250
30966 " guestfs_mounts (guestfs_h *g);\n"
30971 #: ../src/guestfs-actions.pod:5258
30972 msgid "See also: C<guestfs_mountpoints>"
30976 #: ../src/guestfs-actions.pod:5266
30981 #: ../src/guestfs-actions.pod:5268
30985 " guestfs_mv (guestfs_h *g,\n"
30986 " const char *src,\n"
30987 " const char *dest);\n"
30992 #: ../src/guestfs-actions.pod:5280
30993 msgid "guestfs_ntfs_3g_probe"
30997 #: ../src/guestfs-actions.pod:5282
31001 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
31003 " const char *device);\n"
31008 #: ../src/guestfs-actions.pod:5301
31009 msgid "(Added in 1.0.43)"
31010 msgstr "(Додано у 1.0.43)"
31013 #: ../src/guestfs-actions.pod:5303
31014 msgid "guestfs_ntfsresize"
31018 #: ../src/guestfs-actions.pod:5305
31022 " guestfs_ntfsresize (guestfs_h *g,\n"
31023 " const char *device);\n"
31028 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5409
31030 "I<This function is deprecated.> In new code, use the L</"
31031 "guestfs_ntfsresize_opts> call instead."
31035 #: ../src/guestfs-actions.pod:5333
31036 msgid "guestfs_ntfsresize_opts"
31040 #: ../src/guestfs-actions.pod:5335
31044 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
31045 " const char *device,\n"
31051 #: ../src/guestfs-actions.pod:5345
31054 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
31055 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
31060 #: ../src/guestfs-actions.pod:5365
31062 "After the resize operation, the filesystem is always marked as requiring a "
31063 "consistency check (for safety). You have to boot into Windows to perform "
31064 "this check and clear this condition. If you I<don't> set the C<force> "
31065 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
31066 "times on a single filesystem without booting into Windows between each "
31071 #: ../src/guestfs-actions.pod:5380
31072 msgid "guestfs_ntfsresize_opts_va"
31076 #: ../src/guestfs-actions.pod:5382
31080 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
31081 " const char *device,\n"
31082 " va_list args);\n"
31087 #: ../src/guestfs-actions.pod:5387
31088 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
31092 #: ../src/guestfs-actions.pod:5391
31093 msgid "guestfs_ntfsresize_opts_argv"
31097 #: ../src/guestfs-actions.pod:5393
31101 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
31102 " const char *device,\n"
31103 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
31108 #: ../src/guestfs-actions.pod:5398
31109 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
31113 #: ../src/guestfs-actions.pod:5402
31114 msgid "guestfs_ntfsresize_size"
31118 #: ../src/guestfs-actions.pod:5404
31122 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31123 " const char *device,\n"
31124 " int64_t size);\n"
31129 #: ../src/guestfs-actions.pod:5416
31131 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31132 "to specify the new size (in bytes) explicitly."
31136 #: ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:5863
31137 #: ../src/guestfs-actions.pod:5936 ../src/guestfs-actions.pod:6204
31138 #: ../src/guestfs-actions.pod:7843
31139 msgid "(Added in 1.3.14)"
31140 msgstr "(Додано у 1.3.14)"
31143 #: ../src/guestfs-actions.pod:5423
31144 msgid "guestfs_part_add"
31148 #: ../src/guestfs-actions.pod:5425
31152 " guestfs_part_add (guestfs_h *g,\n"
31153 " const char *device,\n"
31154 " const char *prlogex,\n"
31155 " int64_t startsect,\n"
31156 " int64_t endsect);\n"
31161 #: ../src/guestfs-actions.pod:5432
31163 "This command adds a partition to C<device>. If there is no partition table "
31164 "on the device, call C<guestfs_part_init> first."
31168 #: ../src/guestfs-actions.pod:5444
31170 "Creating a partition which covers the whole disk is not so easy. Use "
31171 "C<guestfs_part_disk> to do that."
31175 #: ../src/guestfs-actions.pod:5449 ../src/guestfs-actions.pod:5487
31176 #: ../src/guestfs-actions.pod:5540 ../src/guestfs-actions.pod:5624
31177 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5681
31178 #: ../src/guestfs-actions.pod:5721
31179 msgid "(Added in 1.0.78)"
31180 msgstr "(Додано у 1.0.78)"
31183 #: ../src/guestfs-actions.pod:5451
31184 msgid "guestfs_part_del"
31188 #: ../src/guestfs-actions.pod:5453
31192 " guestfs_part_del (guestfs_h *g,\n"
31193 " const char *device,\n"
31199 #: ../src/guestfs-actions.pod:5468
31200 msgid "guestfs_part_disk"
31204 #: ../src/guestfs-actions.pod:5470
31208 " guestfs_part_disk (guestfs_h *g,\n"
31209 " const char *device,\n"
31210 " const char *parttype);\n"
31215 #: ../src/guestfs-actions.pod:5475
31217 "This command is simply a combination of C<guestfs_part_init> followed by "
31218 "C<guestfs_part_add> to create a single primary partition covering the whole "
31223 #: ../src/guestfs-actions.pod:5479
31225 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
31226 "possible values are described in C<guestfs_part_init>."
31230 #: ../src/guestfs-actions.pod:5489
31231 msgid "guestfs_part_get_bootable"
31235 #: ../src/guestfs-actions.pod:5491
31239 " guestfs_part_get_bootable (guestfs_h *g,\n"
31240 " const char *device,\n"
31246 #: ../src/guestfs-actions.pod:5499
31247 msgid "See also C<guestfs_part_set_bootable>."
31251 #: ../src/guestfs-actions.pod:5505
31252 msgid "guestfs_part_get_mbr_id"
31256 #: ../src/guestfs-actions.pod:5507
31260 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
31261 " const char *device,\n"
31267 #: ../src/guestfs-actions.pod:5515 ../src/guestfs-actions.pod:5697
31269 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
31270 "undefined results for other partition table types (see "
31271 "C<guestfs_part_get_parttype>)."
31275 #: ../src/guestfs-actions.pod:5523
31276 msgid "guestfs_part_get_parttype"
31280 #: ../src/guestfs-actions.pod:5525
31284 " guestfs_part_get_parttype (guestfs_h *g,\n"
31285 " const char *device);\n"
31290 #: ../src/guestfs-actions.pod:5532
31292 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
31293 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
31294 "possible, although unusual. See C<guestfs_part_init> for a full list."
31298 #: ../src/guestfs-actions.pod:5542
31299 msgid "guestfs_part_init"
31303 #: ../src/guestfs-actions.pod:5544
31307 " guestfs_part_init (guestfs_h *g,\n"
31308 " const char *device,\n"
31309 " const char *parttype);\n"
31314 #: ../src/guestfs-actions.pod:5553
31316 "Initially there are no partitions. Following this, you should call "
31317 "C<guestfs_part_add> for each partition required."
31321 #: ../src/guestfs-actions.pod:5626
31322 msgid "guestfs_part_list"
31323 msgstr "guestfs_part_list"
31326 #: ../src/guestfs-actions.pod:5628
31329 " struct guestfs_partition_list *\n"
31330 " guestfs_part_list (guestfs_h *g,\n"
31331 " const char *device);\n"
31334 " struct guestfs_partition_list *\n"
31335 " guestfs_part_list (guestfs_h *g,\n"
31336 " const char *device);\n"
31340 #: ../src/guestfs-actions.pod:5645
31342 "Start of the partition I<in bytes>. To get sectors you have to divide by "
31343 "the device's sector size, see C<guestfs_blockdev_getss>."
31347 #: ../src/guestfs-actions.pod:5658
31349 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
31350 "was an error. I<The caller must call C<guestfs_free_partition_list> after "
31355 #: ../src/guestfs-actions.pod:5664
31356 msgid "guestfs_part_set_bootable"
31360 #: ../src/guestfs-actions.pod:5666
31364 " guestfs_part_set_bootable (guestfs_h *g,\n"
31365 " const char *device,\n"
31367 " int bootable);\n"
31372 #: ../src/guestfs-actions.pod:5683
31373 msgid "guestfs_part_set_mbr_id"
31377 #: ../src/guestfs-actions.pod:5685
31381 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
31382 " const char *device,\n"
31389 #: ../src/guestfs-actions.pod:5705
31390 msgid "guestfs_part_set_name"
31394 #: ../src/guestfs-actions.pod:5707
31398 " guestfs_part_set_name (guestfs_h *g,\n"
31399 " const char *device,\n"
31401 " const char *name);\n"
31406 #: ../src/guestfs-actions.pod:5723
31407 msgid "guestfs_part_to_dev"
31411 #: ../src/guestfs-actions.pod:5725
31415 " guestfs_part_to_dev (guestfs_h *g,\n"
31416 " const char *partition);\n"
31421 #: ../src/guestfs-actions.pod:5733
31423 "The named partition must exist, for example as a string returned from "
31424 "C<guestfs_list_partitions>."
31428 #: ../src/guestfs-actions.pod:5741
31429 msgid "guestfs_ping_daemon"
31433 #: ../src/guestfs-actions.pod:5743
31437 " guestfs_ping_daemon (guestfs_h *g);\n"
31442 #: ../src/guestfs-actions.pod:5755
31443 msgid "guestfs_pread"
31447 #: ../src/guestfs-actions.pod:5757
31451 " guestfs_pread (guestfs_h *g,\n"
31452 " const char *path,\n"
31454 " int64_t offset,\n"
31455 " size_t *size_r);\n"
31460 #: ../src/guestfs-actions.pod:5770
31461 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
31465 #: ../src/guestfs-actions.pod:5781
31466 msgid "guestfs_pread_device"
31470 #: ../src/guestfs-actions.pod:5783
31474 " guestfs_pread_device (guestfs_h *g,\n"
31475 " const char *device,\n"
31477 " int64_t offset,\n"
31478 " size_t *size_r);\n"
31483 #: ../src/guestfs-actions.pod:5796
31484 msgid "See also C<guestfs_pread>."
31488 #: ../src/guestfs-actions.pod:5805
31489 msgid "(Added in 1.5.21)"
31490 msgstr "(Додано у 1.5.21)"
31493 #: ../src/guestfs-actions.pod:5807
31494 msgid "guestfs_pvcreate"
31498 #: ../src/guestfs-actions.pod:5809
31502 " guestfs_pvcreate (guestfs_h *g,\n"
31503 " const char *device);\n"
31508 #: ../src/guestfs-actions.pod:5821
31509 msgid "guestfs_pvremove"
31513 #: ../src/guestfs-actions.pod:5823
31517 " guestfs_pvremove (guestfs_h *g,\n"
31518 " const char *device);\n"
31523 #: ../src/guestfs-actions.pod:5838
31524 msgid "guestfs_pvresize"
31528 #: ../src/guestfs-actions.pod:5840
31532 " guestfs_pvresize (guestfs_h *g,\n"
31533 " const char *device);\n"
31538 #: ../src/guestfs-actions.pod:5851
31539 msgid "guestfs_pvresize_size"
31543 #: ../src/guestfs-actions.pod:5853
31547 " guestfs_pvresize_size (guestfs_h *g,\n"
31548 " const char *device,\n"
31549 " int64_t size);\n"
31554 #: ../src/guestfs-actions.pod:5858
31556 "This command is the same as C<guestfs_pvresize> except that it allows you to "
31557 "specify the new size (in bytes) explicitly."
31561 #: ../src/guestfs-actions.pod:5865
31562 msgid "guestfs_pvs"
31566 #: ../src/guestfs-actions.pod:5867
31570 " guestfs_pvs (guestfs_h *g);\n"
31575 #: ../src/guestfs-actions.pod:5876
31576 msgid "See also C<guestfs_pvs_full>."
31580 #: ../src/guestfs-actions.pod:5884
31581 msgid "guestfs_pvs_full"
31585 #: ../src/guestfs-actions.pod:5886
31588 " struct guestfs_lvm_pv_list *\n"
31589 " guestfs_pvs_full (guestfs_h *g);\n"
31594 #: ../src/guestfs-actions.pod:5892
31596 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
31597 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
31601 #: ../src/guestfs-actions.pod:5898
31602 msgid "guestfs_pvuuid"
31606 #: ../src/guestfs-actions.pod:5900
31610 " guestfs_pvuuid (guestfs_h *g,\n"
31611 " const char *device);\n"
31616 #: ../src/guestfs-actions.pod:5911
31617 msgid "guestfs_pwrite"
31621 #: ../src/guestfs-actions.pod:5913
31625 " guestfs_pwrite (guestfs_h *g,\n"
31626 " const char *path,\n"
31627 " const char *content,\n"
31628 " size_t content_size,\n"
31629 " int64_t offset);\n"
31634 #: ../src/guestfs-actions.pod:5929
31635 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
31639 #: ../src/guestfs-actions.pod:5938
31640 msgid "guestfs_pwrite_device"
31644 #: ../src/guestfs-actions.pod:5940
31648 " guestfs_pwrite_device (guestfs_h *g,\n"
31649 " const char *device,\n"
31650 " const char *content,\n"
31651 " size_t content_size,\n"
31652 " int64_t offset);\n"
31657 #: ../src/guestfs-actions.pod:5955
31658 msgid "See also C<guestfs_pwrite>."
31662 #: ../src/guestfs-actions.pod:5962
31663 msgid "(Added in 1.5.20)"
31664 msgstr "(Додано у 1.5.20)"
31667 #: ../src/guestfs-actions.pod:5964
31668 msgid "guestfs_read_file"
31672 #: ../src/guestfs-actions.pod:5966
31676 " guestfs_read_file (guestfs_h *g,\n"
31677 " const char *path,\n"
31678 " size_t *size_r);\n"
31683 #: ../src/guestfs-actions.pod:5974
31685 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
31686 "embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
31687 "function is limited in the total size of file that can be handled."
31691 #: ../src/guestfs-actions.pod:5986
31692 msgid "(Added in 1.0.63)"
31693 msgstr "(Додано у 1.0.63)"
31696 #: ../src/guestfs-actions.pod:5988
31697 msgid "guestfs_read_lines"
31701 #: ../src/guestfs-actions.pod:5990
31705 " guestfs_read_lines (guestfs_h *g,\n"
31706 " const char *path);\n"
31711 #: ../src/guestfs-actions.pod:5999
31713 "Note that this function cannot correctly handle binary files (specifically, "
31714 "files containing C<\\0> character which is treated as end of line). For "
31715 "those you need to use the C<guestfs_read_file> function which has a more "
31716 "complex interface."
31720 #: ../src/guestfs-actions.pod:6010
31721 msgid "guestfs_readdir"
31725 #: ../src/guestfs-actions.pod:6012
31728 " struct guestfs_dirent_list *\n"
31729 " guestfs_readdir (guestfs_h *g,\n"
31730 " const char *dir);\n"
31735 #: ../src/guestfs-actions.pod:6066
31737 "This function is primarily intended for use by programs. To get a simple "
31738 "list of names, use C<guestfs_ls>. To get a printable directory for human "
31739 "consumption, use C<guestfs_ll>."
31743 #: ../src/guestfs-actions.pod:6070
31745 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
31746 "was an error. I<The caller must call C<guestfs_free_dirent_list> after use>."
31750 #: ../src/guestfs-actions.pod:6076
31751 msgid "guestfs_readlink"
31755 #: ../src/guestfs-actions.pod:6078
31759 " guestfs_readlink (guestfs_h *g,\n"
31760 " const char *path);\n"
31765 #: ../src/guestfs-actions.pod:6089
31766 msgid "guestfs_readlinklist"
31770 #: ../src/guestfs-actions.pod:6091
31774 " guestfs_readlinklist (guestfs_h *g,\n"
31775 " const char *path,\n"
31776 " char *const *names);\n"
31781 #: ../src/guestfs-actions.pod:6124
31782 msgid "guestfs_realpath"
31786 #: ../src/guestfs-actions.pod:6126
31790 " guestfs_realpath (guestfs_h *g,\n"
31791 " const char *path);\n"
31796 #: ../src/guestfs-actions.pod:6138
31797 msgid "guestfs_removexattr"
31801 #: ../src/guestfs-actions.pod:6140
31805 " guestfs_removexattr (guestfs_h *g,\n"
31806 " const char *xattr,\n"
31807 " const char *path);\n"
31812 #: ../src/guestfs-actions.pod:6148
31813 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
31817 #: ../src/guestfs-actions.pod:6154
31818 msgid "guestfs_resize2fs"
31822 #: ../src/guestfs-actions.pod:6156
31826 " guestfs_resize2fs (guestfs_h *g,\n"
31827 " const char *device);\n"
31832 #: ../src/guestfs-actions.pod:6163
31834 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
31835 "C<device> before calling this command. For unknown reasons C<resize2fs> "
31836 "sometimes gives an error about this and sometimes not. In any case, it is "
31837 "always safe to call C<guestfs_e2fsck_f> before calling this function."
31841 #: ../src/guestfs-actions.pod:6173
31842 msgid "guestfs_resize2fs_M"
31846 #: ../src/guestfs-actions.pod:6175
31850 " guestfs_resize2fs_M (guestfs_h *g,\n"
31851 " const char *device);\n"
31856 #: ../src/guestfs-actions.pod:6179
31858 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
31859 "resized to its minimum size. This works like the I<-M> option to the "
31860 "C<resize2fs> command."
31864 #: ../src/guestfs-actions.pod:6183
31866 "To get the resulting size of the filesystem you should call "
31867 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
31868 "These two numbers, multiplied together, give the resulting size of the "
31869 "minimal filesystem in bytes."
31873 #: ../src/guestfs-actions.pod:6192
31874 msgid "guestfs_resize2fs_size"
31878 #: ../src/guestfs-actions.pod:6194
31882 " guestfs_resize2fs_size (guestfs_h *g,\n"
31883 " const char *device,\n"
31884 " int64_t size);\n"
31889 #: ../src/guestfs-actions.pod:6199
31891 "This command is the same as C<guestfs_resize2fs> except that it allows you "
31892 "to specify the new size (in bytes) explicitly."
31896 #: ../src/guestfs-actions.pod:6206
31901 #: ../src/guestfs-actions.pod:6208
31905 " guestfs_rm (guestfs_h *g,\n"
31906 " const char *path);\n"
31911 #: ../src/guestfs-actions.pod:6218
31912 msgid "guestfs_rm_rf"
31916 #: ../src/guestfs-actions.pod:6220
31920 " guestfs_rm_rf (guestfs_h *g,\n"
31921 " const char *path);\n"
31926 #: ../src/guestfs-actions.pod:6232
31927 msgid "guestfs_rmdir"
31931 #: ../src/guestfs-actions.pod:6234
31935 " guestfs_rmdir (guestfs_h *g,\n"
31936 " const char *path);\n"
31941 #: ../src/guestfs-actions.pod:6244
31942 msgid "guestfs_rmmountpoint"
31946 #: ../src/guestfs-actions.pod:6246
31950 " guestfs_rmmountpoint (guestfs_h *g,\n"
31951 " const char *exemptpath);\n"
31956 #: ../src/guestfs-actions.pod:6250
31958 "This calls removes a mountpoint that was previously created with "
31959 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
31963 #: ../src/guestfs-actions.pod:6258
31964 msgid "guestfs_scrub_device"
31968 #: ../src/guestfs-actions.pod:6260
31972 " guestfs_scrub_device (guestfs_h *g,\n"
31973 " const char *device);\n"
31978 #: ../src/guestfs-actions.pod:6275 ../src/guestfs-actions.pod:6293
31979 #: ../src/guestfs-actions.pod:6312
31980 msgid "(Added in 1.0.52)"
31981 msgstr "(Додано у 1.0.52)"
31984 #: ../src/guestfs-actions.pod:6277
31985 msgid "guestfs_scrub_file"
31989 #: ../src/guestfs-actions.pod:6279
31993 " guestfs_scrub_file (guestfs_h *g,\n"
31994 " const char *file);\n"
31999 #: ../src/guestfs-actions.pod:6295
32000 msgid "guestfs_scrub_freespace"
32004 #: ../src/guestfs-actions.pod:6297
32008 " guestfs_scrub_freespace (guestfs_h *g,\n"
32009 " const char *dir);\n"
32014 #: ../src/guestfs-actions.pod:6301
32016 "This command creates the directory C<dir> and then fills it with files until "
32017 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
32018 "and deletes them. The intention is to scrub any free space on the partition "
32019 "containing C<dir>."
32023 #: ../src/guestfs-actions.pod:6314
32024 msgid "guestfs_set_append"
32028 #: ../src/guestfs-actions.pod:6316
32032 " guestfs_set_append (guestfs_h *g,\n"
32033 " const char *append);\n"
32038 #: ../src/guestfs-actions.pod:6333
32039 msgid "guestfs_set_attach_method"
32043 #: ../src/guestfs-actions.pod:6335
32047 " guestfs_set_attach_method (guestfs_h *g,\n"
32048 " const char *attachmethod);\n"
32053 #: ../src/guestfs-actions.pod:6363
32054 msgid "guestfs_set_autosync"
32058 #: ../src/guestfs-actions.pod:6365
32062 " guestfs_set_autosync (guestfs_h *g,\n"
32063 " int autosync);\n"
32068 #: ../src/guestfs-actions.pod:6381
32069 msgid "guestfs_set_direct"
32073 #: ../src/guestfs-actions.pod:6383
32077 " guestfs_set_direct (guestfs_h *g,\n"
32083 #: ../src/guestfs-actions.pod:6391
32085 "One consequence of this is that log messages aren't caught by the library "
32086 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
32091 #: ../src/guestfs-actions.pod:6404
32092 msgid "guestfs_set_e2label"
32096 #: ../src/guestfs-actions.pod:6406
32100 " guestfs_set_e2label (guestfs_h *g,\n"
32101 " const char *device,\n"
32102 " const char *label);\n"
32107 #: ../src/guestfs-actions.pod:6415
32109 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32110 "the existing label on a filesystem."
32114 #: ../src/guestfs-actions.pod:6422
32115 msgid "guestfs_set_e2uuid"
32119 #: ../src/guestfs-actions.pod:6424
32123 " guestfs_set_e2uuid (guestfs_h *g,\n"
32124 " const char *device,\n"
32125 " const char *uuid);\n"
32130 #: ../src/guestfs-actions.pod:6434
32132 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32133 "the existing UUID of a filesystem."
32137 #: ../src/guestfs-actions.pod:6441
32138 msgid "guestfs_set_memsize"
32142 #: ../src/guestfs-actions.pod:6443
32146 " guestfs_set_memsize (guestfs_h *g,\n"
32152 #: ../src/guestfs-actions.pod:6447
32154 "This sets the memory size in megabytes allocated to the qemu subprocess. "
32155 "This only has any effect if called before C<guestfs_launch>."
32159 #: ../src/guestfs-actions.pod:6462
32160 msgid "guestfs_set_network"
32164 #: ../src/guestfs-actions.pod:6464
32168 " guestfs_set_network (guestfs_h *g,\n"
32174 #: ../src/guestfs-actions.pod:6474
32176 "You must call this before calling C<guestfs_launch>, otherwise it has no "
32181 #: ../src/guestfs-actions.pod:6481
32182 msgid "guestfs_set_path"
32186 #: ../src/guestfs-actions.pod:6483
32190 " guestfs_set_path (guestfs_h *g,\n"
32191 " const char *searchpath);\n"
32196 #: ../src/guestfs-actions.pod:6498
32197 msgid "guestfs_set_pgroup"
32201 #: ../src/guestfs-actions.pod:6500
32205 " guestfs_set_pgroup (guestfs_h *g,\n"
32211 #: ../src/guestfs-actions.pod:6517
32212 msgid "guestfs_set_qemu"
32216 #: ../src/guestfs-actions.pod:6519
32220 " guestfs_set_qemu (guestfs_h *g,\n"
32221 " const char *qemu);\n"
32226 #: ../src/guestfs-actions.pod:6545
32227 msgid "guestfs_set_recovery_proc"
32231 #: ../src/guestfs-actions.pod:6547
32235 " guestfs_set_recovery_proc (guestfs_h *g,\n"
32236 " int recoveryproc);\n"
32241 #: ../src/guestfs-actions.pod:6551
32243 "If this is called with the parameter C<false> then C<guestfs_launch> does "
32244 "not create a recovery process. The purpose of the recovery process is to "
32245 "stop runaway qemu processes in the case where the main program aborts "
32250 #: ../src/guestfs-actions.pod:6556
32252 "This only has any effect if called before C<guestfs_launch>, and the default "
32257 #: ../src/guestfs-actions.pod:6569
32258 msgid "guestfs_set_selinux"
32262 #: ../src/guestfs-actions.pod:6571
32266 " guestfs_set_selinux (guestfs_h *g,\n"
32272 #: ../src/guestfs-actions.pod:6588
32273 msgid "guestfs_set_smp"
32277 #: ../src/guestfs-actions.pod:6590
32281 " guestfs_set_smp (guestfs_h *g,\n"
32287 #: ../src/guestfs-actions.pod:6598
32288 msgid "This function must be called before C<guestfs_launch>."
32292 #: ../src/guestfs-actions.pod:6604
32293 msgid "guestfs_set_trace"
32297 #: ../src/guestfs-actions.pod:6606
32301 " guestfs_set_trace (guestfs_h *g,\n"
32307 #: ../src/guestfs-actions.pod:6620
32309 "Trace messages are normally sent to C<stderr>, unless you register a "
32310 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32314 #: ../src/guestfs-actions.pod:6628
32315 msgid "guestfs_set_verbose"
32319 #: ../src/guestfs-actions.pod:6630
32323 " guestfs_set_verbose (guestfs_h *g,\n"
32329 #: ../src/guestfs-actions.pod:6639
32331 "Verbose messages are normally sent to C<stderr>, unless you register a "
32332 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32336 #: ../src/guestfs-actions.pod:6647
32337 msgid "guestfs_setcon"
32341 #: ../src/guestfs-actions.pod:6649
32345 " guestfs_setcon (guestfs_h *g,\n"
32346 " const char *context);\n"
32351 #: ../src/guestfs-actions.pod:6662
32352 msgid "guestfs_setxattr"
32356 #: ../src/guestfs-actions.pod:6664
32360 " guestfs_setxattr (guestfs_h *g,\n"
32361 " const char *xattr,\n"
32362 " const char *val,\n"
32364 " const char *path);\n"
32369 #: ../src/guestfs-actions.pod:6675
32370 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
32374 #: ../src/guestfs-actions.pod:6681
32375 msgid "guestfs_sfdisk"
32379 #: ../src/guestfs-actions.pod:6683
32383 " guestfs_sfdisk (guestfs_h *g,\n"
32384 " const char *device,\n"
32388 " char *const *lines);\n"
32393 #: ../src/guestfs-actions.pod:6691 ../src/guestfs-actions.pod:6735
32394 #: ../src/guestfs-actions.pod:6769
32396 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
32401 #: ../src/guestfs-actions.pod:6718
32403 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
32407 #: ../src/guestfs-actions.pod:6728
32408 msgid "guestfs_sfdiskM"
32412 #: ../src/guestfs-actions.pod:6730
32416 " guestfs_sfdiskM (guestfs_h *g,\n"
32417 " const char *device,\n"
32418 " char *const *lines);\n"
32423 #: ../src/guestfs-actions.pod:6742
32425 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
32426 "partition sizes are specified in megabytes only (rounded to the nearest "
32427 "cylinder) and you don't need to specify the cyls, heads and sectors "
32428 "parameters which were rarely if ever used anyway."
32432 #: ../src/guestfs-actions.pod:6748
32434 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
32435 "C<guestfs_part_disk>"
32439 #: ../src/guestfs-actions.pod:6758
32440 msgid "guestfs_sfdisk_N"
32444 #: ../src/guestfs-actions.pod:6760
32448 " guestfs_sfdisk_N (guestfs_h *g,\n"
32449 " const char *device,\n"
32454 " const char *line);\n"
32459 #: ../src/guestfs-actions.pod:6779
32461 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
32462 "for the cyls/heads/sectors parameters."
32466 #: ../src/guestfs-actions.pod:6782
32467 msgid "See also: C<guestfs_part_add>"
32471 #: ../src/guestfs-actions.pod:6791
32472 msgid "guestfs_sfdisk_disk_geometry"
32476 #: ../src/guestfs-actions.pod:6793
32480 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
32481 " const char *device);\n"
32486 #: ../src/guestfs-actions.pod:6797
32488 "This displays the disk geometry of C<device> read from the partition table. "
32489 "Especially in the case where the underlying block device has been resized, "
32490 "this can be different from the kernel's idea of the geometry (see "
32491 "C<guestfs_sfdisk_kernel_geometry>)."
32495 #: ../src/guestfs-actions.pod:6810
32496 msgid "guestfs_sfdisk_kernel_geometry"
32500 #: ../src/guestfs-actions.pod:6812
32504 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
32505 " const char *device);\n"
32510 #: ../src/guestfs-actions.pod:6826
32511 msgid "guestfs_sfdisk_l"
32515 #: ../src/guestfs-actions.pod:6828
32519 " guestfs_sfdisk_l (guestfs_h *g,\n"
32520 " const char *device);\n"
32525 #: ../src/guestfs-actions.pod:6832
32527 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
32532 #: ../src/guestfs-actions.pod:6843
32533 msgid "See also: C<guestfs_part_list>"
32537 #: ../src/guestfs-actions.pod:6850
32542 #: ../src/guestfs-actions.pod:6852
32546 " guestfs_sh (guestfs_h *g,\n"
32547 " const char *command);\n"
32552 #: ../src/guestfs-actions.pod:6859
32553 msgid "This is like C<guestfs_command>, but passes the command to:"
32557 #: ../src/guestfs-actions.pod:6867
32558 msgid "All the provisos about C<guestfs_command> apply to this call."
32562 #: ../src/guestfs-actions.pod:6874
32563 msgid "guestfs_sh_lines"
32567 #: ../src/guestfs-actions.pod:6876
32571 " guestfs_sh_lines (guestfs_h *g,\n"
32572 " const char *command);\n"
32577 #: ../src/guestfs-actions.pod:6880
32579 "This is the same as C<guestfs_sh>, but splits the result into a list of "
32584 #: ../src/guestfs-actions.pod:6883
32585 msgid "See also: C<guestfs_command_lines>"
32589 #: ../src/guestfs-actions.pod:6891
32590 msgid "guestfs_sleep"
32594 #: ../src/guestfs-actions.pod:6893
32598 " guestfs_sleep (guestfs_h *g,\n"
32604 #: ../src/guestfs-actions.pod:6901
32605 msgid "(Added in 1.0.41)"
32606 msgstr "(Додано у 1.0.41)"
32609 #: ../src/guestfs-actions.pod:6903 ../src/guestfs-structs.pod:109
32610 msgid "guestfs_stat"
32614 #: ../src/guestfs-actions.pod:6905
32617 " struct guestfs_stat *\n"
32618 " guestfs_stat (guestfs_h *g,\n"
32619 " const char *path);\n"
32624 #: ../src/guestfs-actions.pod:6919 ../src/guestfs-structs.pod:135
32625 msgid "guestfs_statvfs"
32629 #: ../src/guestfs-actions.pod:6921
32632 " struct guestfs_statvfs *\n"
32633 " guestfs_statvfs (guestfs_h *g,\n"
32634 " const char *path);\n"
32639 #: ../src/guestfs-actions.pod:6931
32641 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
32642 "error. I<The caller must call C<guestfs_free_statvfs> after use>."
32646 #: ../src/guestfs-actions.pod:6937
32647 msgid "guestfs_strings"
32651 #: ../src/guestfs-actions.pod:6939
32655 " guestfs_strings (guestfs_h *g,\n"
32656 " const char *path);\n"
32661 #: ../src/guestfs-actions.pod:6955
32662 msgid "guestfs_strings_e"
32666 #: ../src/guestfs-actions.pod:6957
32670 " guestfs_strings_e (guestfs_h *g,\n"
32671 " const char *encoding,\n"
32672 " const char *path);\n"
32677 #: ../src/guestfs-actions.pod:6962
32679 "This is like the C<guestfs_strings> command, but allows you to specify the "
32680 "encoding of strings that are looked for in the source file C<path>."
32684 #: ../src/guestfs-actions.pod:6972
32686 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
32687 "ISO-8859-X (this is what C<guestfs_strings> uses)."
32691 #: ../src/guestfs-actions.pod:7010
32692 msgid "guestfs_swapoff_device"
32696 #: ../src/guestfs-actions.pod:7012
32700 " guestfs_swapoff_device (guestfs_h *g,\n"
32701 " const char *device);\n"
32706 #: ../src/guestfs-actions.pod:7016
32708 "This command disables the libguestfs appliance swap device or partition "
32709 "named C<device>. See C<guestfs_swapon_device>."
32713 #: ../src/guestfs-actions.pod:7024
32714 msgid "guestfs_swapoff_file"
32718 #: ../src/guestfs-actions.pod:7026
32722 " guestfs_swapoff_file (guestfs_h *g,\n"
32723 " const char *file);\n"
32728 #: ../src/guestfs-actions.pod:7036
32729 msgid "guestfs_swapoff_label"
32733 #: ../src/guestfs-actions.pod:7038
32737 " guestfs_swapoff_label (guestfs_h *g,\n"
32738 " const char *label);\n"
32743 #: ../src/guestfs-actions.pod:7049
32744 msgid "guestfs_swapoff_uuid"
32748 #: ../src/guestfs-actions.pod:7051
32752 " guestfs_swapoff_uuid (guestfs_h *g,\n"
32753 " const char *uuid);\n"
32758 #: ../src/guestfs-actions.pod:7062
32759 msgid "guestfs_swapon_device"
32763 #: ../src/guestfs-actions.pod:7064
32767 " guestfs_swapon_device (guestfs_h *g,\n"
32768 " const char *device);\n"
32773 #: ../src/guestfs-actions.pod:7068
32775 "This command enables the libguestfs appliance to use the swap device or "
32776 "partition named C<device>. The increased memory is made available for all "
32777 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
32781 #: ../src/guestfs-actions.pod:7084
32782 msgid "guestfs_swapon_file"
32786 #: ../src/guestfs-actions.pod:7086
32790 " guestfs_swapon_file (guestfs_h *g,\n"
32791 " const char *file);\n"
32796 #: ../src/guestfs-actions.pod:7090
32798 "This command enables swap to a file. See C<guestfs_swapon_device> for other "
32803 #: ../src/guestfs-actions.pod:7097
32804 msgid "guestfs_swapon_label"
32808 #: ../src/guestfs-actions.pod:7099
32812 " guestfs_swapon_label (guestfs_h *g,\n"
32813 " const char *label);\n"
32818 #: ../src/guestfs-actions.pod:7103
32820 "This command enables swap to a labeled swap partition. See "
32821 "C<guestfs_swapon_device> for other notes."
32825 #: ../src/guestfs-actions.pod:7110
32826 msgid "guestfs_swapon_uuid"
32830 #: ../src/guestfs-actions.pod:7112
32834 " guestfs_swapon_uuid (guestfs_h *g,\n"
32835 " const char *uuid);\n"
32840 #: ../src/guestfs-actions.pod:7116
32842 "This command enables swap to a swap partition with the given UUID. See "
32843 "C<guestfs_swapon_device> for other notes."
32847 #: ../src/guestfs-actions.pod:7123
32848 msgid "guestfs_sync"
32852 #: ../src/guestfs-actions.pod:7125
32856 " guestfs_sync (guestfs_h *g);\n"
32861 #: ../src/guestfs-actions.pod:7138
32862 msgid "guestfs_tail"
32866 #: ../src/guestfs-actions.pod:7140
32870 " guestfs_tail (guestfs_h *g,\n"
32871 " const char *path);\n"
32876 #: ../src/guestfs-actions.pod:7156
32877 msgid "guestfs_tail_n"
32881 #: ../src/guestfs-actions.pod:7158
32885 " guestfs_tail_n (guestfs_h *g,\n"
32887 " const char *path);\n"
32892 #: ../src/guestfs-actions.pod:7180
32893 msgid "guestfs_tar_in"
32897 #: ../src/guestfs-actions.pod:7182
32901 " guestfs_tar_in (guestfs_h *g,\n"
32902 " const char *tarfile,\n"
32903 " const char *directory);\n"
32908 #: ../src/guestfs-actions.pod:7190
32910 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
32914 #: ../src/guestfs-actions.pod:7195 ../src/guestfs-actions.pod:7212
32915 #: ../src/guestfs-actions.pod:7228 ../src/guestfs-actions.pod:7244
32916 msgid "(Added in 1.0.3)"
32917 msgstr "(Додано у 1.0.3)"
32920 #: ../src/guestfs-actions.pod:7197
32921 msgid "guestfs_tar_out"
32925 #: ../src/guestfs-actions.pod:7199
32929 " guestfs_tar_out (guestfs_h *g,\n"
32930 " const char *directory,\n"
32931 " const char *tarfile);\n"
32936 #: ../src/guestfs-actions.pod:7207
32938 "To download a compressed tarball, use C<guestfs_tgz_out> or "
32939 "C<guestfs_txz_out>."
32943 #: ../src/guestfs-actions.pod:7214
32944 msgid "guestfs_tgz_in"
32948 #: ../src/guestfs-actions.pod:7216
32952 " guestfs_tgz_in (guestfs_h *g,\n"
32953 " const char *tarball,\n"
32954 " const char *directory);\n"
32959 #: ../src/guestfs-actions.pod:7224
32960 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
32964 #: ../src/guestfs-actions.pod:7230
32965 msgid "guestfs_tgz_out"
32969 #: ../src/guestfs-actions.pod:7232
32973 " guestfs_tgz_out (guestfs_h *g,\n"
32974 " const char *directory,\n"
32975 " const char *tarball);\n"
32980 #: ../src/guestfs-actions.pod:7240
32981 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
32985 #: ../src/guestfs-actions.pod:7246
32986 msgid "guestfs_touch"
32990 #: ../src/guestfs-actions.pod:7248
32994 " guestfs_touch (guestfs_h *g,\n"
32995 " const char *path);\n"
33000 #: ../src/guestfs-actions.pod:7263
33001 msgid "guestfs_truncate"
33005 #: ../src/guestfs-actions.pod:7265
33009 " guestfs_truncate (guestfs_h *g,\n"
33010 " const char *path);\n"
33015 #: ../src/guestfs-actions.pod:7276
33016 msgid "guestfs_truncate_size"
33020 #: ../src/guestfs-actions.pod:7278
33024 " guestfs_truncate_size (guestfs_h *g,\n"
33025 " const char *path,\n"
33026 " int64_t size);\n"
33031 #: ../src/guestfs-actions.pod:7286
33033 "If the current file size is less than C<size> then the file is extended to "
33034 "the required size with zero bytes. This creates a sparse file (ie. disk "
33035 "blocks are not allocated for the file until you write to it). To create a "
33036 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
33040 #: ../src/guestfs-actions.pod:7296
33041 msgid "guestfs_tune2fs_l"
33045 #: ../src/guestfs-actions.pod:7298
33049 " guestfs_tune2fs_l (guestfs_h *g,\n"
33050 " const char *device);\n"
33055 #: ../src/guestfs-actions.pod:7318
33056 msgid "guestfs_txz_in"
33060 #: ../src/guestfs-actions.pod:7320
33064 " guestfs_txz_in (guestfs_h *g,\n"
33065 " const char *tarball,\n"
33066 " const char *directory);\n"
33071 #: ../src/guestfs-actions.pod:7332
33072 msgid "guestfs_txz_out"
33076 #: ../src/guestfs-actions.pod:7334
33080 " guestfs_txz_out (guestfs_h *g,\n"
33081 " const char *directory,\n"
33082 " const char *tarball);\n"
33087 #: ../src/guestfs-actions.pod:7346
33088 msgid "guestfs_umask"
33092 #: ../src/guestfs-actions.pod:7348
33096 " guestfs_umask (guestfs_h *g,\n"
33102 #: ../src/guestfs-actions.pod:7364
33104 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
33105 "C<guestfs_mkdir>."
33109 #: ../src/guestfs-actions.pod:7373
33110 msgid "guestfs_umount"
33114 #: ../src/guestfs-actions.pod:7375
33118 " guestfs_umount (guestfs_h *g,\n"
33119 " const char *pathordevice);\n"
33124 #: ../src/guestfs-actions.pod:7387
33125 msgid "guestfs_umount_all"
33129 #: ../src/guestfs-actions.pod:7389
33133 " guestfs_umount_all (guestfs_h *g);\n"
33138 #: ../src/guestfs-actions.pod:7400
33139 msgid "guestfs_upload"
33143 #: ../src/guestfs-actions.pod:7402
33147 " guestfs_upload (guestfs_h *g,\n"
33148 " const char *filename,\n"
33149 " const char *remotefilename);\n"
33154 #: ../src/guestfs-actions.pod:7412
33155 msgid "See also C<guestfs_download>."
33159 #: ../src/guestfs-actions.pod:7423
33160 msgid "guestfs_upload_offset"
33164 #: ../src/guestfs-actions.pod:7425
33168 " guestfs_upload_offset (guestfs_h *g,\n"
33169 " const char *filename,\n"
33170 " const char *remotefilename,\n"
33171 " int64_t offset);\n"
33176 #: ../src/guestfs-actions.pod:7441
33178 "Note that there is no limit on the amount of data that can be uploaded with "
33179 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
33180 "full amount unless an error occurs."
33184 #: ../src/guestfs-actions.pod:7446
33185 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
33189 #: ../src/guestfs-actions.pod:7457
33190 msgid "guestfs_utimens"
33194 #: ../src/guestfs-actions.pod:7459
33198 " guestfs_utimens (guestfs_h *g,\n"
33199 " const char *path,\n"
33200 " int64_t atsecs,\n"
33201 " int64_t atnsecs,\n"
33202 " int64_t mtsecs,\n"
33203 " int64_t mtnsecs);\n"
33208 #: ../src/guestfs-actions.pod:7488 ../src/guestfs-structs.pod:175
33209 msgid "guestfs_version"
33213 #: ../src/guestfs-actions.pod:7490
33216 " struct guestfs_version *\n"
33217 " guestfs_version (guestfs_h *g);\n"
33222 #: ../src/guestfs-actions.pod:7518
33224 "I<Note:> Don't use this call to test for availability of features. In "
33225 "enterprise distributions we backport features from later versions into "
33226 "earlier versions, making this an unreliable way to test for features. Use "
33227 "C<guestfs_available> instead."
33231 #: ../src/guestfs-actions.pod:7524
33233 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
33234 "error. I<The caller must call C<guestfs_free_version> after use>."
33238 #: ../src/guestfs-actions.pod:7528
33239 msgid "(Added in 1.0.58)"
33240 msgstr "(Додано у 1.0.58)"
33243 #: ../src/guestfs-actions.pod:7530
33244 msgid "guestfs_vfs_label"
33248 #: ../src/guestfs-actions.pod:7532
33252 " guestfs_vfs_label (guestfs_h *g,\n"
33253 " const char *device);\n"
33258 #: ../src/guestfs-actions.pod:7541
33259 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
33263 #: ../src/guestfs-actions.pod:7546 ../src/guestfs-actions.pod:7583
33264 msgid "(Added in 1.3.18)"
33265 msgstr "(Додано у 1.3.18)"
33268 #: ../src/guestfs-actions.pod:7548
33269 msgid "guestfs_vfs_type"
33273 #: ../src/guestfs-actions.pod:7550
33277 " guestfs_vfs_type (guestfs_h *g,\n"
33278 " const char *device);\n"
33283 #: ../src/guestfs-actions.pod:7567
33284 msgid "guestfs_vfs_uuid"
33288 #: ../src/guestfs-actions.pod:7569
33292 " guestfs_vfs_uuid (guestfs_h *g,\n"
33293 " const char *device);\n"
33298 #: ../src/guestfs-actions.pod:7578
33299 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
33303 #: ../src/guestfs-actions.pod:7585
33304 msgid "guestfs_vg_activate"
33308 #: ../src/guestfs-actions.pod:7587
33312 " guestfs_vg_activate (guestfs_h *g,\n"
33314 " char *const *volgroups);\n"
33319 #: ../src/guestfs-actions.pod:7604
33320 msgid "guestfs_vg_activate_all"
33324 #: ../src/guestfs-actions.pod:7606
33328 " guestfs_vg_activate_all (guestfs_h *g,\n"
33329 " int activate);\n"
33334 #: ../src/guestfs-actions.pod:7619
33335 msgid "guestfs_vgcreate"
33339 #: ../src/guestfs-actions.pod:7621
33343 " guestfs_vgcreate (guestfs_h *g,\n"
33344 " const char *volgroup,\n"
33345 " char *const *physvols);\n"
33350 #: ../src/guestfs-actions.pod:7633
33351 msgid "guestfs_vglvuuids"
33355 #: ../src/guestfs-actions.pod:7635
33359 " guestfs_vglvuuids (guestfs_h *g,\n"
33360 " const char *vgname);\n"
33365 #: ../src/guestfs-actions.pod:7642
33367 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
33368 "associate logical volumes and volume groups."
33372 #: ../src/guestfs-actions.pod:7645
33373 msgid "See also C<guestfs_vgpvuuids>."
33377 #: ../src/guestfs-actions.pod:7653
33378 msgid "guestfs_vgpvuuids"
33382 #: ../src/guestfs-actions.pod:7655
33386 " guestfs_vgpvuuids (guestfs_h *g,\n"
33387 " const char *vgname);\n"
33392 #: ../src/guestfs-actions.pod:7662
33394 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
33395 "associate physical volumes and volume groups."
33399 #: ../src/guestfs-actions.pod:7665
33400 msgid "See also C<guestfs_vglvuuids>."
33404 #: ../src/guestfs-actions.pod:7673
33405 msgid "guestfs_vgremove"
33409 #: ../src/guestfs-actions.pod:7675
33413 " guestfs_vgremove (guestfs_h *g,\n"
33414 " const char *vgname);\n"
33419 #: ../src/guestfs-actions.pod:7688
33420 msgid "guestfs_vgrename"
33424 #: ../src/guestfs-actions.pod:7690
33428 " guestfs_vgrename (guestfs_h *g,\n"
33429 " const char *volgroup,\n"
33430 " const char *newvolgroup);\n"
33435 #: ../src/guestfs-actions.pod:7701
33436 msgid "guestfs_vgs"
33440 #: ../src/guestfs-actions.pod:7703
33444 " guestfs_vgs (guestfs_h *g);\n"
33449 #: ../src/guestfs-actions.pod:7712
33450 msgid "See also C<guestfs_vgs_full>."
33454 #: ../src/guestfs-actions.pod:7720
33455 msgid "guestfs_vgs_full"
33459 #: ../src/guestfs-actions.pod:7722
33462 " struct guestfs_lvm_vg_list *\n"
33463 " guestfs_vgs_full (guestfs_h *g);\n"
33468 #: ../src/guestfs-actions.pod:7728
33470 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
33471 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
33475 #: ../src/guestfs-actions.pod:7734
33476 msgid "guestfs_vgscan"
33480 #: ../src/guestfs-actions.pod:7736
33484 " guestfs_vgscan (guestfs_h *g);\n"
33489 #: ../src/guestfs-actions.pod:7746
33490 msgid "guestfs_vguuid"
33494 #: ../src/guestfs-actions.pod:7748
33498 " guestfs_vguuid (guestfs_h *g,\n"
33499 " const char *vgname);\n"
33504 #: ../src/guestfs-actions.pod:7759
33505 msgid "guestfs_wait_ready"
33509 #: ../src/guestfs-actions.pod:7761
33513 " guestfs_wait_ready (guestfs_h *g);\n"
33518 #: ../src/guestfs-actions.pod:7764
33520 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
33525 #: ../src/guestfs-actions.pod:7771
33526 msgid "This function is a no op."
33530 #: ../src/guestfs-actions.pod:7773
33532 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
33533 "calling C<guestfs_launch> to wait for the launch to complete. However this "
33534 "is no longer necessary because C<guestfs_launch> now does the waiting."
33538 #: ../src/guestfs-actions.pod:7778
33540 "If you see any calls to this function in code then you can just remove them, "
33541 "unless you want to retain compatibility with older versions of the API."
33545 #: ../src/guestfs-actions.pod:7786
33546 msgid "guestfs_wc_c"
33550 #: ../src/guestfs-actions.pod:7788
33554 " guestfs_wc_c (guestfs_h *g,\n"
33555 " const char *path);\n"
33560 #: ../src/guestfs-actions.pod:7799
33561 msgid "guestfs_wc_l"
33565 #: ../src/guestfs-actions.pod:7801
33569 " guestfs_wc_l (guestfs_h *g,\n"
33570 " const char *path);\n"
33575 #: ../src/guestfs-actions.pod:7812
33576 msgid "guestfs_wc_w"
33580 #: ../src/guestfs-actions.pod:7814
33584 " guestfs_wc_w (guestfs_h *g,\n"
33585 " const char *path);\n"
33590 #: ../src/guestfs-actions.pod:7825
33591 msgid "guestfs_write"
33595 #: ../src/guestfs-actions.pod:7827
33599 " guestfs_write (guestfs_h *g,\n"
33600 " const char *path,\n"
33601 " const char *content,\n"
33602 " size_t content_size);\n"
33607 #: ../src/guestfs-actions.pod:7836
33608 msgid "See also C<guestfs_write_append>."
33612 #: ../src/guestfs-actions.pod:7845
33613 msgid "guestfs_write_append"
33617 #: ../src/guestfs-actions.pod:7847
33621 " guestfs_write_append (guestfs_h *g,\n"
33622 " const char *path,\n"
33623 " const char *content,\n"
33624 " size_t content_size);\n"
33629 #: ../src/guestfs-actions.pod:7856
33630 msgid "See also C<guestfs_write>."
33634 #: ../src/guestfs-actions.pod:7865
33635 msgid "guestfs_write_file"
33636 msgstr "guestfs_write_file"
33639 #: ../src/guestfs-actions.pod:7867
33643 " guestfs_write_file (guestfs_h *g,\n"
33644 " const char *path,\n"
33645 " const char *content,\n"
33650 " guestfs_write_file (guestfs_h *g,\n"
33651 " const char *path,\n"
33652 " const char *content,\n"
33657 #: ../src/guestfs-actions.pod:7873
33659 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
33664 #: ../src/guestfs-actions.pod:7898
33665 msgid "guestfs_zegrep"
33666 msgstr "guestfs_zegrep"
33669 #: ../src/guestfs-actions.pod:7900
33673 " guestfs_zegrep (guestfs_h *g,\n"
33674 " const char *regex,\n"
33675 " const char *path);\n"
33679 " guestfs_zegrep (guestfs_h *g,\n"
33680 " const char *regex,\n"
33681 " const char *path);\n"
33685 #: ../src/guestfs-actions.pod:7917
33686 msgid "guestfs_zegrepi"
33687 msgstr "guestfs_zegrepi"
33690 #: ../src/guestfs-actions.pod:7919
33694 " guestfs_zegrepi (guestfs_h *g,\n"
33695 " const char *regex,\n"
33696 " const char *path);\n"
33700 " guestfs_zegrepi (guestfs_h *g,\n"
33701 " const char *regex,\n"
33702 " const char *path);\n"
33706 #: ../src/guestfs-actions.pod:7936
33707 msgid "guestfs_zero"
33708 msgstr "guestfs_zero"
33711 #: ../src/guestfs-actions.pod:7938
33715 " guestfs_zero (guestfs_h *g,\n"
33716 " const char *device);\n"
33720 " guestfs_zero (guestfs_h *g,\n"
33721 " const char *device);\n"
33725 #: ../src/guestfs-actions.pod:7952
33727 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
33728 "C<guestfs_is_zero_device>"
33732 #: ../src/guestfs-actions.pod:7964
33733 msgid "guestfs_zero_device"
33734 msgstr "guestfs_zero_device"
33737 #: ../src/guestfs-actions.pod:7966
33741 " guestfs_zero_device (guestfs_h *g,\n"
33742 " const char *device);\n"
33746 " guestfs_zero_device (guestfs_h *g,\n"
33747 " const char *device);\n"
33751 #: ../src/guestfs-actions.pod:7970
33753 "This command writes zeroes over the entire C<device>. Compare with "
33754 "C<guestfs_zero> which just zeroes the first few blocks of a device."
33758 #: ../src/guestfs-actions.pod:7988
33759 msgid "(Added in 1.3.1)"
33760 msgstr "(Додано у 1.3.1)"
33763 #: ../src/guestfs-actions.pod:7990
33764 msgid "guestfs_zerofree"
33765 msgstr "guestfs_zerofree"
33768 #: ../src/guestfs-actions.pod:7992
33772 " guestfs_zerofree (guestfs_h *g,\n"
33773 " const char *device);\n"
33777 " guestfs_zerofree (guestfs_h *g,\n"
33778 " const char *device);\n"
33782 #: ../src/guestfs-actions.pod:8011
33783 msgid "guestfs_zfgrep"
33784 msgstr "guestfs_zfgrep"
33787 #: ../src/guestfs-actions.pod:8013
33791 " guestfs_zfgrep (guestfs_h *g,\n"
33792 " const char *pattern,\n"
33793 " const char *path);\n"
33797 " guestfs_zfgrep (guestfs_h *g,\n"
33798 " const char *pattern,\n"
33799 " const char *path);\n"
33803 #: ../src/guestfs-actions.pod:8030
33804 msgid "guestfs_zfgrepi"
33805 msgstr "guestfs_zfgrepi"
33808 #: ../src/guestfs-actions.pod:8032
33812 " guestfs_zfgrepi (guestfs_h *g,\n"
33813 " const char *pattern,\n"
33814 " const char *path);\n"
33818 " guestfs_zfgrepi (guestfs_h *g,\n"
33819 " const char *pattern,\n"
33820 " const char *path);\n"
33824 #: ../src/guestfs-actions.pod:8049
33825 msgid "guestfs_zfile"
33826 msgstr "guestfs_zfile"
33829 #: ../src/guestfs-actions.pod:8051
33833 " guestfs_zfile (guestfs_h *g,\n"
33834 " const char *meth,\n"
33835 " const char *path);\n"
33839 " guestfs_zfile (guestfs_h *g,\n"
33840 " const char *meth,\n"
33841 " const char *path);\n"
33845 #: ../src/guestfs-actions.pod:8056
33847 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
33852 #: ../src/guestfs-actions.pod:8068
33854 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
33859 #: ../src/guestfs-actions.pod:8076
33860 msgid "guestfs_zgrep"
33861 msgstr "guestfs_zgrep"
33864 #: ../src/guestfs-actions.pod:8078
33868 " guestfs_zgrep (guestfs_h *g,\n"
33869 " const char *regex,\n"
33870 " const char *path);\n"
33874 " guestfs_zgrep (guestfs_h *g,\n"
33875 " const char *regex,\n"
33876 " const char *path);\n"
33880 #: ../src/guestfs-actions.pod:8095
33881 msgid "guestfs_zgrepi"
33882 msgstr "guestfs_zgrepi"
33885 #: ../src/guestfs-actions.pod:8097
33889 " guestfs_zgrepi (guestfs_h *g,\n"
33890 " const char *regex,\n"
33891 " const char *path);\n"
33895 " guestfs_zgrepi (guestfs_h *g,\n"
33896 " const char *regex,\n"
33897 " const char *path);\n"
33901 #: ../src/guestfs-availability.pod:3
33906 #: ../src/guestfs-availability.pod:5
33908 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
33909 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
33910 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
33911 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
33912 "L</guestfs_aug_save> L</guestfs_aug_set>"
33916 #: ../src/guestfs-availability.pod:21
33921 #: ../src/guestfs-availability.pod:23
33922 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
33926 #: ../src/guestfs-availability.pod:26
33931 #: ../src/guestfs-availability.pod:28
33932 msgid "The following functions: L</guestfs_grub_install>"
33936 #: ../src/guestfs-availability.pod:31
33938 msgstr "B<inotify>"
33941 #: ../src/guestfs-availability.pod:33
33943 "The following functions: L</guestfs_inotify_add_watch> L</"
33944 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
33945 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
33949 #: ../src/guestfs-availability.pod:41
33950 msgid "B<linuxfsuuid>"
33951 msgstr "B<linuxfsuuid>"
33954 #: ../src/guestfs-availability.pod:43
33956 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
33957 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
33961 #: ../src/guestfs-availability.pod:50
33962 msgid "B<linuxmodules>"
33963 msgstr "B<linuxmodules>"
33966 #: ../src/guestfs-availability.pod:52
33967 msgid "The following functions: L</guestfs_modprobe>"
33971 #: ../src/guestfs-availability.pod:55
33972 msgid "B<linuxxattrs>"
33973 msgstr "B<linuxxattrs>"
33976 #: ../src/guestfs-availability.pod:57
33978 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
33979 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
33980 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
33981 "guestfs_setxattr>"
33985 #: ../src/guestfs-availability.pod:68
33990 #: ../src/guestfs-availability.pod:70
33992 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
33993 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
33994 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
33998 #: ../src/guestfs-availability.pod:79
34003 #: ../src/guestfs-availability.pod:81
34005 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
34006 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
34007 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
34008 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
34009 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
34010 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
34011 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
34015 #: ../src/guestfs-availability.pod:104
34020 #: ../src/guestfs-availability.pod:106
34022 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
34023 "guestfs_mknod_b> L</guestfs_mknod_c>"
34027 #: ../src/guestfs-availability.pod:112
34032 #: ../src/guestfs-availability.pod:114
34033 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
34037 #: ../src/guestfs-availability.pod:117
34038 msgid "B<ntfsprogs>"
34039 msgstr "B<ntfsprogs>"
34042 #: ../src/guestfs-availability.pod:119
34044 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
34045 "L</guestfs_ntfsresize_size>"
34049 #: ../src/guestfs-availability.pod:124
34050 msgid "B<realpath>"
34051 msgstr "B<realpath>"
34054 #: ../src/guestfs-availability.pod:126
34055 msgid "The following functions: L</guestfs_realpath>"
34059 #: ../src/guestfs-availability.pod:129
34064 #: ../src/guestfs-availability.pod:131
34066 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
34067 "guestfs_scrub_freespace>"
34071 #: ../src/guestfs-availability.pod:136
34073 msgstr "B<selinux>"
34076 #: ../src/guestfs-availability.pod:138
34077 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
34081 #: ../src/guestfs-availability.pod:142
34086 #: ../src/guestfs-availability.pod:144
34087 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
34091 #: ../src/guestfs-availability.pod:148
34092 msgid "B<zerofree>"
34093 msgstr "B<zerofree>"
34096 #: ../src/guestfs-availability.pod:150
34097 msgid "The following functions: L</guestfs_zerofree>"
34101 #: ../src/guestfs-structs.pod:1
34102 msgid "guestfs_int_bool"
34106 #: ../src/guestfs-structs.pod:3
34109 " struct guestfs_int_bool {\n"
34117 #: ../src/guestfs-structs.pod:8
34120 " struct guestfs_int_bool_list {\n"
34121 " uint32_t len; /* Number of elements in list. */\n"
34122 " struct guestfs_int_bool *val; /* Elements. */\n"
34128 #: ../src/guestfs-structs.pod:13
34131 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34132 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
34137 #: ../src/guestfs-structs.pod:16
34138 msgid "guestfs_lvm_pv"
34142 #: ../src/guestfs-structs.pod:18
34145 " struct guestfs_lvm_pv {\n"
34146 " char *pv_name;\n"
34147 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34148 " char pv_uuid[32];\n"
34150 " uint64_t pv_size;\n"
34151 " uint64_t dev_size;\n"
34152 " uint64_t pv_free;\n"
34153 " uint64_t pv_used;\n"
34154 " char *pv_attr;\n"
34155 " int64_t pv_pe_count;\n"
34156 " int64_t pv_pe_alloc_count;\n"
34157 " char *pv_tags;\n"
34158 " uint64_t pe_start;\n"
34159 " int64_t pv_mda_count;\n"
34160 " uint64_t pv_mda_free;\n"
34166 #: ../src/guestfs-structs.pod:36
34169 " struct guestfs_lvm_pv_list {\n"
34170 " uint32_t len; /* Number of elements in list. */\n"
34171 " struct guestfs_lvm_pv *val; /* Elements. */\n"
34177 #: ../src/guestfs-structs.pod:41
34180 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
34181 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
34186 #: ../src/guestfs-structs.pod:44
34187 msgid "guestfs_lvm_vg"
34191 #: ../src/guestfs-structs.pod:46
34194 " struct guestfs_lvm_vg {\n"
34195 " char *vg_name;\n"
34196 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34197 " char vg_uuid[32];\n"
34199 " char *vg_attr;\n"
34200 " uint64_t vg_size;\n"
34201 " uint64_t vg_free;\n"
34202 " char *vg_sysid;\n"
34203 " uint64_t vg_extent_size;\n"
34204 " int64_t vg_extent_count;\n"
34205 " int64_t vg_free_count;\n"
34206 " int64_t max_lv;\n"
34207 " int64_t max_pv;\n"
34208 " int64_t pv_count;\n"
34209 " int64_t lv_count;\n"
34210 " int64_t snap_count;\n"
34211 " int64_t vg_seqno;\n"
34212 " char *vg_tags;\n"
34213 " int64_t vg_mda_count;\n"
34214 " uint64_t vg_mda_free;\n"
34220 #: ../src/guestfs-structs.pod:69
34223 " struct guestfs_lvm_vg_list {\n"
34224 " uint32_t len; /* Number of elements in list. */\n"
34225 " struct guestfs_lvm_vg *val; /* Elements. */\n"
34231 #: ../src/guestfs-structs.pod:74
34234 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
34235 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
34240 #: ../src/guestfs-structs.pod:77
34241 msgid "guestfs_lvm_lv"
34245 #: ../src/guestfs-structs.pod:79
34248 " struct guestfs_lvm_lv {\n"
34249 " char *lv_name;\n"
34250 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34251 " char lv_uuid[32];\n"
34252 " char *lv_attr;\n"
34253 " int64_t lv_major;\n"
34254 " int64_t lv_minor;\n"
34255 " int64_t lv_kernel_major;\n"
34256 " int64_t lv_kernel_minor;\n"
34257 " uint64_t lv_size;\n"
34258 " int64_t seg_count;\n"
34260 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
34261 " float snap_percent;\n"
34262 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
34263 " float copy_percent;\n"
34264 " char *move_pv;\n"
34265 " char *lv_tags;\n"
34266 " char *mirror_log;\n"
34267 " char *modules;\n"
34273 #: ../src/guestfs-structs.pod:101
34276 " struct guestfs_lvm_lv_list {\n"
34277 " uint32_t len; /* Number of elements in list. */\n"
34278 " struct guestfs_lvm_lv *val; /* Elements. */\n"
34284 #: ../src/guestfs-structs.pod:106
34287 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
34288 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
34293 #: ../src/guestfs-structs.pod:111
34296 " struct guestfs_stat {\n"
34300 " int64_t nlink;\n"
34305 " int64_t blksize;\n"
34306 " int64_t blocks;\n"
34307 " int64_t atime;\n"
34308 " int64_t mtime;\n"
34309 " int64_t ctime;\n"
34315 #: ../src/guestfs-structs.pod:127
34318 " struct guestfs_stat_list {\n"
34319 " uint32_t len; /* Number of elements in list. */\n"
34320 " struct guestfs_stat *val; /* Elements. */\n"
34326 #: ../src/guestfs-structs.pod:132
34329 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
34330 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
34335 #: ../src/guestfs-structs.pod:137
34338 " struct guestfs_statvfs {\n"
34339 " int64_t bsize;\n"
34340 " int64_t frsize;\n"
34341 " int64_t blocks;\n"
34342 " int64_t bfree;\n"
34343 " int64_t bavail;\n"
34344 " int64_t files;\n"
34345 " int64_t ffree;\n"
34346 " int64_t favail;\n"
34349 " int64_t namemax;\n"
34355 #: ../src/guestfs-structs.pod:151
34358 " struct guestfs_statvfs_list {\n"
34359 " uint32_t len; /* Number of elements in list. */\n"
34360 " struct guestfs_statvfs *val; /* Elements. */\n"
34366 #: ../src/guestfs-structs.pod:156
34369 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
34370 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
34375 #: ../src/guestfs-structs.pod:159
34376 msgid "guestfs_dirent"
34380 #: ../src/guestfs-structs.pod:161
34383 " struct guestfs_dirent {\n"
34392 #: ../src/guestfs-structs.pod:167
34395 " struct guestfs_dirent_list {\n"
34396 " uint32_t len; /* Number of elements in list. */\n"
34397 " struct guestfs_dirent *val; /* Elements. */\n"
34403 #: ../src/guestfs-structs.pod:172
34406 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
34407 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
34412 #: ../src/guestfs-structs.pod:177
34415 " struct guestfs_version {\n"
34416 " int64_t major;\n"
34417 " int64_t minor;\n"
34418 " int64_t release;\n"
34425 #: ../src/guestfs-structs.pod:184
34428 " struct guestfs_version_list {\n"
34429 " uint32_t len; /* Number of elements in list. */\n"
34430 " struct guestfs_version *val; /* Elements. */\n"
34436 #: ../src/guestfs-structs.pod:189
34439 " void guestfs_free_version (struct guestfs_free_version *);\n"
34440 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
34445 #: ../src/guestfs-structs.pod:192
34446 msgid "guestfs_xattr"
34450 #: ../src/guestfs-structs.pod:194
34453 " struct guestfs_xattr {\n"
34454 " char *attrname;\n"
34455 " /* The next two fields describe a byte array. */\n"
34456 " uint32_t attrval_len;\n"
34457 " char *attrval;\n"
34463 #: ../src/guestfs-structs.pod:201
34466 " struct guestfs_xattr_list {\n"
34467 " uint32_t len; /* Number of elements in list. */\n"
34468 " struct guestfs_xattr *val; /* Elements. */\n"
34474 #: ../src/guestfs-structs.pod:206
34477 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
34478 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
34483 #: ../src/guestfs-structs.pod:209
34484 msgid "guestfs_inotify_event"
34488 #: ../src/guestfs-structs.pod:211
34491 " struct guestfs_inotify_event {\n"
34492 " int64_t in_wd;\n"
34493 " uint32_t in_mask;\n"
34494 " uint32_t in_cookie;\n"
34495 " char *in_name;\n"
34501 #: ../src/guestfs-structs.pod:218
34504 " struct guestfs_inotify_event_list {\n"
34505 " uint32_t len; /* Number of elements in list. */\n"
34506 " struct guestfs_inotify_event *val; /* Elements. */\n"
34512 #: ../src/guestfs-structs.pod:223
34515 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
34516 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
34521 #: ../src/guestfs-structs.pod:226
34522 msgid "guestfs_partition"
34526 #: ../src/guestfs-structs.pod:228
34529 " struct guestfs_partition {\n"
34530 " int32_t part_num;\n"
34531 " uint64_t part_start;\n"
34532 " uint64_t part_end;\n"
34533 " uint64_t part_size;\n"
34539 #: ../src/guestfs-structs.pod:235
34542 " struct guestfs_partition_list {\n"
34543 " uint32_t len; /* Number of elements in list. */\n"
34544 " struct guestfs_partition *val; /* Elements. */\n"
34550 #: ../src/guestfs-structs.pod:240
34553 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
34554 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
34559 #: ../src/guestfs-structs.pod:243
34560 msgid "guestfs_application"
34564 #: ../src/guestfs-structs.pod:245
34567 " struct guestfs_application {\n"
34568 " char *app_name;\n"
34569 " char *app_display_name;\n"
34570 " int32_t app_epoch;\n"
34571 " char *app_version;\n"
34572 " char *app_release;\n"
34573 " char *app_install_path;\n"
34574 " char *app_trans_path;\n"
34575 " char *app_publisher;\n"
34576 " char *app_url;\n"
34577 " char *app_source_package;\n"
34578 " char *app_summary;\n"
34579 " char *app_description;\n"
34585 #: ../src/guestfs-structs.pod:260
34588 " struct guestfs_application_list {\n"
34589 " uint32_t len; /* Number of elements in list. */\n"
34590 " struct guestfs_application *val; /* Elements. */\n"
34596 #: ../src/guestfs-structs.pod:265
34599 " void guestfs_free_application (struct guestfs_free_application *);\n"
34600 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
34605 #: ../src/guestfs.pod:5
34606 msgid "guestfs - Library for accessing and modifying virtual machine images"
34608 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
34612 #: ../src/guestfs.pod:11
34615 " guestfs_h *g = guestfs_create ();\n"
34616 " guestfs_add_drive (g, \"guest.img\");\n"
34617 " guestfs_launch (g);\n"
34618 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34619 " guestfs_touch (g, \"/hello\");\n"
34620 " guestfs_umount (g, \"/\");\n"
34621 " guestfs_close (g);\n"
34624 " guestfs_h *g = guestfs_create ();\n"
34625 " guestfs_add_drive (g, \"guest.img\");\n"
34626 " guestfs_launch (g);\n"
34627 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34628 " guestfs_touch (g, \"/hello\");\n"
34629 " guestfs_umount (g, \"/\");\n"
34630 " guestfs_close (g);\n"
34634 #: ../src/guestfs.pod:25
34636 "Libguestfs is a library for accessing and modifying guest disk images. "
34637 "Amongst the things this is good for: making batch configuration changes to "
34638 "guests, getting disk used/free statistics (see also: virt-df), migrating "
34639 "between virtualization systems (see also: virt-p2v), performing partial "
34640 "backups, performing partial guest clones, cloning guests and changing "
34641 "registry/UUID/hostname info, and much else besides."
34645 #: ../src/guestfs.pod:33
34647 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
34648 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
34649 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
34654 #: ../src/guestfs.pod:38
34656 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
34657 "what filesystem is in each LV, etc.). It can also run commands in the "
34658 "context of the guest. Also you can access filesystems over FUSE."
34662 #: ../src/guestfs.pod:43
34664 "Libguestfs is a library that can be linked with C and C++ management "
34665 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
34666 "PHP, Erlang, Haskell or C#). You can also use it from shell scripts or the "
34671 #: ../src/guestfs.pod:48
34673 "You don't need to be root to use libguestfs, although obviously you do need "
34674 "enough permissions to access the disk images."
34678 #: ../src/guestfs.pod:51
34680 "Libguestfs is a large API because it can do many things. For a gentle "
34681 "introduction, please read the L</API OVERVIEW> section next."
34685 #: ../src/guestfs.pod:54
34687 "There are also some example programs in the L<guestfs-examples(3)> manual "
34692 #: ../src/guestfs.pod:57
34693 msgid "API OVERVIEW"
34697 #: ../src/guestfs.pod:59
34699 "This section provides a gentler overview of the libguestfs API. We also try "
34700 "to group API calls together, where that may not be obvious from reading "
34701 "about the individual calls in the main section of this manual."
34705 #: ../src/guestfs.pod:64
34710 #: ../src/guestfs.pod:66
34712 "Before you can use libguestfs calls, you have to create a handle. Then you "
34713 "must add at least one disk image to the handle, followed by launching the "
34714 "handle, then performing whatever operations you want, and finally closing "
34715 "the handle. By convention we use the single letter C<g> for the name of the "
34716 "handle variable, although of course you can use any name you want."
34720 #: ../src/guestfs.pod:73
34721 msgid "The general structure of all libguestfs-using programs looks like this:"
34725 #: ../src/guestfs.pod:76
34728 " guestfs_h *g = guestfs_create ();\n"
34731 " guestfs_h *g = guestfs_create ();\n"
34735 #: ../src/guestfs.pod:78
34738 " /* Call guestfs_add_drive additional times if there are\n"
34739 " * multiple disk images.\n"
34741 " guestfs_add_drive (g, \"guest.img\");\n"
34746 #: ../src/guestfs.pod:83
34749 " /* Most manipulation calls won't work until you've launched\n"
34750 " * the handle 'g'. You have to do this _after_ adding drives\n"
34751 " * and _before_ other commands.\n"
34753 " guestfs_launch (g);\n"
34758 #: ../src/guestfs.pod:89
34761 " /* Now you can examine what partitions, LVs etc are available.\n"
34763 " char **partitions = guestfs_list_partitions (g);\n"
34764 " char **logvols = guestfs_lvs (g);\n"
34767 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
34769 " char **partitions = guestfs_list_partitions (g);\n"
34770 " char **logvols = guestfs_lvs (g);\n"
34774 #: ../src/guestfs.pod:94
34777 " /* To access a filesystem in the image, you must mount it.\n"
34779 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34782 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
34784 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34788 #: ../src/guestfs.pod:98
34791 " /* Now you can perform filesystem actions on the guest\n"
34794 " guestfs_touch (g, \"/hello\");\n"
34797 " /* Тепер ви можете виконувати дії з файловою системою на\n"
34798 " * образі диска операційної системи.\n"
34800 " guestfs_touch (g, \"/hello\");\n"
34804 #: ../src/guestfs.pod:103
34807 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
34808 " * it is done automatically when you close the handle. See\n"
34809 " * discussion of autosync in this page.\n"
34811 " guestfs_sync (g);\n"
34816 #: ../src/guestfs.pod:109
34819 " /* Close the handle 'g'. */\n"
34820 " guestfs_close (g);\n"
34823 " /* Закрити дескриптор 'g'. */\n"
34824 " guestfs_close (g);\n"
34828 #: ../src/guestfs.pod:112
34830 "The code above doesn't include any error checking. In real code you should "
34831 "check return values carefully for errors. In general all functions that "
34832 "return integers return C<-1> on error, and all functions that return "
34833 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
34834 "how to handle errors, and consult the documentation for each function call "
34835 "below to see precisely how they return error indications. See L<guestfs-"
34836 "examples(3)> for fully worked examples."
34840 #: ../src/guestfs.pod:121
34841 msgid "DISK IMAGES"
34842 msgstr "ОБРАЗИ ДИСКІВ"
34845 #: ../src/guestfs.pod:123
34847 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
34848 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
34849 "actual block device, or simply an empty file of zeroes that you have created "
34850 "through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
34855 #: ../src/guestfs.pod:129
34857 "The call you should use in modern code for adding drives is L</"
34858 "guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
34859 "specifying that the format is raw, do:"
34863 #: ../src/guestfs.pod:133
34866 " guestfs_add_drive_opts (g, filename,\n"
34867 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34871 " guestfs_add_drive_opts (g, filename,\n"
34872 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34877 #: ../src/guestfs.pod:137
34878 msgid "You can add a disk read-only using:"
34879 msgstr "Ви можете додати диск у режимі лише читання:"
34882 #: ../src/guestfs.pod:139
34885 " guestfs_add_drive_opts (g, filename,\n"
34886 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34887 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34891 " guestfs_add_drive_opts (g, filename,\n"
34892 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34893 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34898 #: ../src/guestfs.pod:144
34900 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
34901 "libguestfs won't modify the file."
34905 #: ../src/guestfs.pod:147
34907 "Be extremely cautious if the disk image is in use, eg. if it is being used "
34908 "by a virtual machine. Adding it read-write will almost certainly cause disk "
34909 "corruption, but adding it read-only is safe."
34913 #: ../src/guestfs.pod:151
34915 "You must add at least one disk image, and you may add multiple disk images. "
34916 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
34917 "first one you added), C</dev/sdb> (for the second one you added), etc."
34921 #: ../src/guestfs.pod:156
34923 "Once L</guestfs_launch> has been called you cannot add any more images. You "
34924 "can call L</guestfs_list_devices> to get a list of the device names, in the "
34925 "order that you added them. See also L</BLOCK DEVICE NAMING> below."
34929 #: ../src/guestfs.pod:161
34931 msgstr "МОНТУВАННЯ"
34934 #: ../src/guestfs.pod:163
34936 "Before you can read or write files, create directories and so on in a disk "
34937 "image that contains filesystems, you have to mount those filesystems using "
34938 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that "
34939 "a disk image contains (for example) one partition with a filesystem on that "
34940 "partition, then you can mount it directly:"
34944 #: ../src/guestfs.pod:170
34947 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34950 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34954 #: ../src/guestfs.pod:172
34956 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
34957 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
34958 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
34959 "that these are libguestfs virtual devices, and are nothing to do with host "
34964 #: ../src/guestfs.pod:178
34966 "If you are given a disk image and you don't know what it contains then you "
34967 "have to find out. Libguestfs can do that too: use L</"
34968 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
34969 "LVs, and either try mounting each to see what is mountable, or else examine "
34970 "them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
34971 "filesystems, use L</guestfs_list_filesystems>."
34975 #: ../src/guestfs.pod:186
34977 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
34978 "L</INSPECTION> below). But you might find it easier to look at higher level "
34979 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
34983 #: ../src/guestfs.pod:191
34985 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
34986 "several other variations of the C<guestfs_mount_*> call."
34990 #: ../src/guestfs.pod:194
34991 msgid "FILESYSTEM ACCESS AND MODIFICATION"
34992 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
34995 #: ../src/guestfs.pod:196
34997 "The majority of the libguestfs API consists of fairly low-level calls for "
34998 "accessing and modifying the files, directories, symlinks etc on mounted "
34999 "filesystems. There are over a hundred such calls which you can find listed "
35000 "in detail below in this man page, and we don't even pretend to cover them "
35001 "all in this overview."
35005 #: ../src/guestfs.pod:202
35007 "Specify filenames as full paths, starting with C<\"/\"> and including the "
35010 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
35011 "точкою монтування."
35014 #: ../src/guestfs.pod:205
35016 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
35017 "the file called C<\"etc/passwd\"> then you could do:"
35019 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
35020 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
35024 #: ../src/guestfs.pod:208
35027 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35030 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35034 #: ../src/guestfs.pod:210
35036 "This would return C<data> as a newly allocated buffer containing the full "
35037 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
35038 "or C<NULL> if there was an error."
35042 #: ../src/guestfs.pod:214
35044 "As another example, to create a top-level directory on that filesystem "
35045 "called C<\"var\"> you would do:"
35049 #: ../src/guestfs.pod:217
35052 " guestfs_mkdir (g, \"/var\");\n"
35055 " guestfs_mkdir (g, \"/var\");\n"
35059 #: ../src/guestfs.pod:219
35060 msgid "To create a symlink you could do:"
35061 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
35064 #: ../src/guestfs.pod:221
35067 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35068 " \"/etc/rc3.d/S30portmap\");\n"
35071 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35072 " \"/etc/rc3.d/S30portmap\");\n"
35076 #: ../src/guestfs.pod:224
35078 "Libguestfs will reject attempts to use relative paths and there is no "
35079 "concept of a current working directory."
35083 #: ../src/guestfs.pod:227
35085 "Libguestfs can return errors in many situations: for example if the "
35086 "filesystem isn't writable, or if a file or directory that you requested "
35087 "doesn't exist. If you are using the C API (documented here) you have to "
35088 "check for those error conditions after each call. (Other language bindings "
35089 "turn these errors into exceptions)."
35093 #: ../src/guestfs.pod:233
35095 "File writes are affected by the per-handle umask, set by calling L</"
35096 "guestfs_umask> and defaulting to 022. See L</UMASK>."
35100 #: ../src/guestfs.pod:236
35101 msgid "PARTITIONING"
35102 msgstr "ПОДІЛ НА РОЗДІЛИ"
35105 #: ../src/guestfs.pod:238
35107 "Libguestfs contains API calls to read, create and modify partition tables on "
35112 #: ../src/guestfs.pod:241
35114 "In the common case where you want to create a single partition covering the "
35115 "whole disk, you should use the L</guestfs_part_disk> call:"
35119 #: ../src/guestfs.pod:245
35122 " const char *parttype = \"mbr\";\n"
35123 " if (disk_is_larger_than_2TB)\n"
35124 " parttype = \"gpt\";\n"
35125 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35128 " const char *parttype = \"mbr\";\n"
35129 " if (disk_is_larger_than_2TB)\n"
35130 " parttype = \"gpt\";\n"
35131 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35135 #: ../src/guestfs.pod:250
35137 "Obviously this effectively wipes anything that was on that disk image before."
35141 #: ../src/guestfs.pod:253
35146 #: ../src/guestfs.pod:255
35148 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
35149 "guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense unless "
35150 "you familiarize yourself with the concepts of physical volumes, volume "
35151 "groups and logical volumes."
35155 #: ../src/guestfs.pod:260
35157 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
35158 "tldp.org/HOWTO/LVM-HOWTO/>."
35162 #: ../src/guestfs.pod:263
35163 msgid "DOWNLOADING"
35164 msgstr "ОТРИМАННЯ ДАНИХ"
35167 #: ../src/guestfs.pod:265
35169 "Use L</guestfs_cat> to download small, text only files. This call is "
35170 "limited to files which are less than 2 MB and which cannot contain any ASCII "
35171 "NUL (C<\\0>) characters. However the API is very simple to use."
35175 #: ../src/guestfs.pod:269
35177 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
35178 "bit data, since it returns a (pointer, size) pair. However it is still "
35179 "limited to \"small\" files, less than 2 MB."
35183 #: ../src/guestfs.pod:273
35185 "L</guestfs_download> can be used to download any file, with no limits on "
35186 "content or size (even files larger than 4 GB)."
35190 #: ../src/guestfs.pod:276
35192 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
35196 #: ../src/guestfs.pod:279
35198 msgstr "ВИВАНТАЖЕННЯ"
35201 #: ../src/guestfs.pod:281
35203 "It's often the case that you want to write a file or files to the disk image."
35207 #: ../src/guestfs.pod:284
35209 "To write a small file with fixed content, use L</guestfs_write>. To create "
35210 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
35211 "guestfs_fallocate64> (with all disk blocks allocated). There are a variety "
35212 "of other functions for creating test files, for example L</guestfs_fill> and "
35213 "L</guestfs_fill_pattern>."
35217 #: ../src/guestfs.pod:290
35219 "To upload a single file, use L</guestfs_upload>. This call has no limits on "
35220 "file content or size (even files larger than 4 GB)."
35224 #: ../src/guestfs.pod:293
35226 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
35230 #: ../src/guestfs.pod:295
35232 "However the fastest way to upload I<large numbers of arbitrary files> is to "
35233 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
35234 ">), then attach this using L</guestfs_add_drive_ro>. If you add the drive "
35235 "in a predictable way (eg. adding it last after all other drives) then you "
35236 "can get the device name from L</guestfs_list_devices> and mount it directly "
35237 "using L</guestfs_mount_ro>. Note that squashfs images are sometimes non-"
35238 "portable between kernel versions, and they don't support labels or UUIDs. "
35239 "If you want to pre-build an image or you need to mount it using a label or "
35240 "UUID, use an ISO image instead."
35244 #: ../src/guestfs.pod:306
35246 msgstr "КОПІЮВАННЯ"
35249 #: ../src/guestfs.pod:308
35251 "There are various different commands for copying between files and devices "
35252 "and in and out of the guest filesystem. These are summarised in the table "
35257 #: ../src/guestfs.pod:314
35258 msgid "B<file> to B<file>"
35259 msgstr "B<файл> у B<файл>"
35262 #: ../src/guestfs.pod:316
35264 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
35265 "directories recursively."
35269 #: ../src/guestfs.pod:319
35270 msgid "B<file or device> to B<file or device>"
35271 msgstr "B<файл або пристрій> у B<файл або пристрій>"
35274 #: ../src/guestfs.pod:321
35276 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
35277 "devices in the guest."
35281 #: ../src/guestfs.pod:324
35282 msgid "Example: duplicate the contents of an LV:"
35286 #: ../src/guestfs.pod:326
35289 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
35292 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
35296 #: ../src/guestfs.pod:328
35298 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
35299 "(C</dev/VG/Original>). To copy less than the whole source device, use L</"
35300 "guestfs_copy_size>."
35304 #: ../src/guestfs.pod:332
35305 msgid "B<file on the host> to B<file or device>"
35309 #: ../src/guestfs.pod:334
35310 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
35314 #: ../src/guestfs.pod:336
35315 msgid "B<file or device> to B<file on the host>"
35319 #: ../src/guestfs.pod:338
35320 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
35324 #: ../src/guestfs.pod:342
35325 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
35329 #: ../src/guestfs.pod:344
35331 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
35332 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
35333 "appears you can only upload and download to files. However many Un*x-like "
35334 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
35335 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
35336 "and arbitrary file descriptor N."
35340 #: ../src/guestfs.pod:352
35341 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
35345 #: ../src/guestfs.pod:355
35348 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35351 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35355 #: ../src/guestfs.pod:357
35356 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
35360 #: ../src/guestfs.pod:359
35363 " char devfd[64];\n"
35364 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35365 " guestfs_tar_out (g, \"/\", devfd);\n"
35368 " char devfd[64];\n"
35369 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35370 " guestfs_tar_out (g, \"/\", devfd);\n"
35374 #: ../src/guestfs.pod:363
35375 msgid "LISTING FILES"
35376 msgstr "СПИСКИ ФАЙЛІВ"
35379 #: ../src/guestfs.pod:365
35381 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
35382 "L<guestfish(1)>-equivalent command C<ll>)."
35386 #: ../src/guestfs.pod:368
35388 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
35389 "programs, as a flat list of strings."
35393 #: ../src/guestfs.pod:371
35395 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
35396 "directory, plus additional information about each one. It is more "
35397 "equivalent to using the L<readdir(3)> call on a local filesystem."
35401 #: ../src/guestfs.pod:375
35403 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
35407 #: ../src/guestfs.pod:378
35408 msgid "RUNNING COMMANDS"
35409 msgstr "ВИКОНАННЯ КОМАНД"
35412 #: ../src/guestfs.pod:380
35414 "Although libguestfs is primarily an API for manipulating files inside guest "
35415 "images, we also provide some limited facilities for running commands inside "
35420 #: ../src/guestfs.pod:384
35421 msgid "There are many limitations to this:"
35425 #: ../src/guestfs.pod:390
35427 "The kernel version that the command runs under will be different from what "
35432 #: ../src/guestfs.pod:395
35434 "If the command needs to communicate with daemons, then most likely they "
35435 "won't be running."
35439 #: ../src/guestfs.pod:400
35440 msgid "The command will be running in limited memory."
35444 #: ../src/guestfs.pod:404
35446 "The network may not be available unless you enable it (see L</"
35447 "guestfs_set_network>)."
35451 #: ../src/guestfs.pod:409
35452 msgid "Only supports Linux guests (not Windows, BSD, etc)."
35456 #: ../src/guestfs.pod:413
35458 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
35462 #: ../src/guestfs.pod:418
35464 "For SELinux guests, you may need to enable SELinux and load policy first. "
35465 "See L</SELINUX> in this manpage."
35469 #: ../src/guestfs.pod:423
35471 "I<Security:> It is not safe to run commands from untrusted, possibly "
35472 "malicious guests. These commands may attempt to exploit your program by "
35473 "sending unexpected output. They could also try to exploit the Linux kernel "
35474 "or qemu provided by the libguestfs appliance. They could use the network "
35475 "provided by the libguestfs appliance to bypass ordinary network partitions "
35476 "and firewalls. They could use the elevated privileges or different SELinux "
35477 "context of your program to their advantage."
35481 #: ../src/guestfs.pod:432
35483 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
35484 "(a script which runs when the guest next boots normally), and to have this "
35485 "script run the commands you want in the normal context of the running guest, "
35486 "network security and so on. For information about other security issues, "
35487 "see L</SECURITY>."
35491 #: ../src/guestfs.pod:440
35493 "The two main API calls to run commands are L</guestfs_command> and L</"
35494 "guestfs_sh> (there are also variations)."
35498 #: ../src/guestfs.pod:443
35500 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
35501 "shell globs, redirections, etc will work."
35505 #: ../src/guestfs.pod:446
35506 msgid "CONFIGURATION FILES"
35507 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
35510 #: ../src/guestfs.pod:448
35512 "To read and write configuration files in Linux guest filesystems, we "
35513 "strongly recommend using Augeas. For example, Augeas understands how to "
35514 "read and write, say, a Linux shadow password file or X.org configuration "
35515 "file, and so avoids you having to write that code."
35519 #: ../src/guestfs.pod:453
35521 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
35522 "document Augeas itself here because there is excellent documentation on the "
35523 "L<http://augeas.net/> website."
35527 #: ../src/guestfs.pod:457
35529 "If you don't want to use Augeas (you fool!) then try calling L</"
35530 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
35535 #: ../src/guestfs.pod:461
35540 #: ../src/guestfs.pod:463
35542 "We support SELinux guests. To ensure that labeling happens correctly in "
35543 "SELinux guests, you need to enable SELinux and load the guest's policy:"
35547 #: ../src/guestfs.pod:471
35548 msgid "Before launching, do:"
35552 #: ../src/guestfs.pod:473
35555 " guestfs_set_selinux (g, 1);\n"
35558 " guestfs_set_selinux (g, 1);\n"
35562 #: ../src/guestfs.pod:477
35564 "After mounting the guest's filesystem(s), load the policy. This is best "
35565 "done by running the L<load_policy(8)> command in the guest itself:"
35569 #: ../src/guestfs.pod:481
35572 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35575 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35579 #: ../src/guestfs.pod:483
35581 "(Older versions of C<load_policy> require you to specify the name of the "
35586 #: ../src/guestfs.pod:488
35588 "Optionally, set the security context for the API. The correct security "
35589 "context to use can only be known by inspecting the guest. As an example:"
35593 #: ../src/guestfs.pod:492
35596 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35599 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35603 #: ../src/guestfs.pod:496
35604 msgid "This will work for running commands and editing existing files."
35608 #: ../src/guestfs.pod:498
35610 "When new files are created, you may need to label them explicitly, for "
35611 "example by running the external command C<restorecon pathname>."
35615 #: ../src/guestfs.pod:502
35620 #: ../src/guestfs.pod:504
35622 "Certain calls are affected by the current file mode creation mask (the "
35623 "\"umask\"). In particular ones which create files or directories, such as "
35624 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
35625 "either the default mode that the file is created with or modifies the mode "
35630 #: ../src/guestfs.pod:510
35632 "The default umask is C<022>, so files are created with modes such as C<0644> "
35633 "and directories with C<0755>."
35637 #: ../src/guestfs.pod:513
35639 "There are two ways to avoid being affected by umask. Either set umask to 0 "
35640 "(call C<guestfs_umask (g, 0)> early after launching). Or call L</"
35641 "guestfs_chmod> after creating each file or directory."
35645 #: ../src/guestfs.pod:517
35646 msgid "For more information about umask, see L<umask(2)>."
35650 #: ../src/guestfs.pod:521
35652 "Libguestfs allows you to access Linux guests which have been encrypted using "
35653 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
35654 "standard. This includes nearly all whole disk encryption systems used by "
35655 "modern Linux guests."
35659 #: ../src/guestfs.pod:527
35661 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
35662 "returns the string C<crypto_LUKS>)."
35666 #: ../src/guestfs.pod:530
35668 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
35669 "will require the passphrase!"
35673 #: ../src/guestfs.pod:533
35675 "Opening a LUKS device creates a new device mapper device called C</dev/"
35676 "mapper/mapname> (where C<mapname> is the string you supply to L</"
35677 "guestfs_luks_open>). Reads and writes to this mapper device are decrypted "
35678 "from and encrypted to the underlying block device respectively."
35682 #: ../src/guestfs.pod:539
35684 "LVM volume groups on the device can be made visible by calling L</"
35685 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical volume"
35686 "(s) can now be mounted in the usual way."
35690 #: ../src/guestfs.pod:543
35692 "Use the reverse process to close a LUKS device. Unmount any logical volumes "
35693 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
35694 "[\"/dev/VG\"])>. Then close the mapper device by calling L</"
35695 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
35696 "underlying encrypted block device)."
35700 #: ../src/guestfs.pod:550
35705 #: ../src/guestfs.pod:552
35707 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
35708 "contains operating systems, an install CD or a live CD. (These APIs used to "
35709 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
35710 "version 1.5.3 the most frequently used part of this library has been "
35711 "rewritten in C and moved into the core code)."
35715 #: ../src/guestfs.pod:559
35717 "Add all disks belonging to the unknown virtual machine and call L</"
35718 "guestfs_launch> in the usual way."
35722 #: ../src/guestfs.pod:562
35724 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
35725 "and certain heuristics, and returns a list of operating systems that were "
35726 "found. An empty list means none were found. A single element is the root "
35727 "filesystem of the operating system. For dual- or multi-boot guests, "
35728 "multiple roots can be returned, each one corresponding to a separate "
35729 "operating system. (Multi-boot virtual machines are extremely rare in the "
35730 "world of virtualization, but since this scenario can happen, we have built "
35731 "libguestfs to deal with it.)"
35735 #: ../src/guestfs.pod:571
35737 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
35738 "to get additional details about that operating system. For example, call L</"
35739 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
35740 "Windows and Linux-based operating systems respectively."
35744 #: ../src/guestfs.pod:577
35746 "Un*x-like and Linux-based operating systems usually consist of several "
35747 "filesystems which are mounted at boot time (for example, a separate boot "
35748 "partition mounted on C</boot>). The inspection rules are able to detect how "
35749 "filesystems correspond to mount points. Call "
35750 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
35751 "hash table like this example:"
35755 #: ../src/guestfs.pod:584
35758 " /boot => /dev/sda1\n"
35759 " / => /dev/vg_guest/lv_root\n"
35760 " /usr => /dev/vg_guest/lv_usr\n"
35763 " /boot => /dev/sda1\n"
35764 " / => /dev/vg_guest/lv_root\n"
35765 " /usr => /dev/vg_guest/lv_usr\n"
35769 #: ../src/guestfs.pod:588
35771 "The caller can then make calls to L</guestfs_mount_options> to mount the "
35772 "filesystems as suggested."
35776 #: ../src/guestfs.pod:591
35778 "Be careful to mount filesystems in the right order (eg. C</> before C</"
35779 "usr>). Sorting the keys of the hash by length, shortest first, should work."
35783 #: ../src/guestfs.pod:595
35785 "Inspection currently only works for some common operating systems. "
35786 "Contributors are welcome to send patches for other operating systems that we "
35787 "currently cannot detect."
35791 #: ../src/guestfs.pod:599
35793 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
35794 "for more details. The L</guestfs_inspect_os> function just ignores any "
35795 "encrypted devices."
35799 #: ../src/guestfs.pod:603
35801 "A note on the implementation: The call L</guestfs_inspect_os> performs "
35802 "inspection and caches the results in the guest handle. Subsequent calls to "
35803 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
35804 "read the disks. If you change the content of the guest disks, you can redo "
35805 "inspection by calling L</guestfs_inspect_os> again. (L</"
35806 "guestfs_inspect_list_applications> works a little differently from the other "
35807 "calls and does read the disks. See documentation for that function for "
35812 #: ../src/guestfs.pod:612
35813 msgid "INSPECTING INSTALL DISKS"
35817 #: ../src/guestfs.pod:614
35819 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
35824 #: ../src/guestfs.pod:617
35826 "Call L</guestfs_inspect_get_format> to return the format of the operating "
35827 "system, which currently can be C<installed> (a regular operating system) or "
35828 "C<installer> (some sort of install disk)."
35832 #: ../src/guestfs.pod:621
35834 "Further information is available about the operating system that can be "
35835 "installed using the regular inspection APIs like L</"
35836 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
35840 #: ../src/guestfs.pod:626
35842 "Some additional information specific to installer disks is also available "
35843 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
35844 "guestfs_inspect_is_multipart> calls."
35848 #: ../src/guestfs.pod:631
35849 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
35853 #: ../src/guestfs.pod:633
35855 "Libguestfs can mount NTFS partitions. It does this using the L<http://www."
35856 "ntfs-3g.org/> driver."
35860 #: ../src/guestfs.pod:636
35861 msgid "DRIVE LETTERS AND PATHS"
35862 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
35865 #: ../src/guestfs.pod:638
35867 "DOS and Windows still use drive letters, and the filesystems are always "
35868 "treated as case insensitive by Windows itself, and therefore you might find "
35869 "a Windows configuration file referring to a path like C<c:\\windows"
35870 "\\system32>. When the filesystem is mounted in libguestfs, that directory "
35871 "might be referred to as C</WINDOWS/System32>."
35875 #: ../src/guestfs.pod:644
35877 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
35878 "L</guestfs_inspect_get_drive_mappings>)"
35882 #: ../src/guestfs.pod:647
35884 "Dealing with separator characters (backslash vs forward slash) is outside "
35885 "the scope of libguestfs, but usually a simple character replacement will "
35890 #: ../src/guestfs.pod:651
35892 "To resolve the case insensitivity of paths, call L</"
35893 "guestfs_case_sensitive_path>."
35897 #: ../src/guestfs.pod:654
35898 msgid "ACCESSING THE WINDOWS REGISTRY"
35899 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
35902 #: ../src/guestfs.pod:656
35904 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
35905 "files, through the library C<hivex> which is part of the libguestfs project "
35906 "although ships as a separate tarball. You have to locate and download the "
35907 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
35908 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
35909 "reg(1)> for more help on this issue."
35913 #: ../src/guestfs.pod:664
35914 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
35915 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
35918 #: ../src/guestfs.pod:666
35920 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
35921 "provide something which looks like a Linux symlink. The way it tries to do "
35922 "the rewriting is described here:"
35926 #: ../src/guestfs.pod:670
35928 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
35931 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
35935 #: ../src/guestfs.pod:672
35937 "The essential problem is that ntfs-3g simply does not have enough "
35938 "information to do a correct job. NTFS links can contain drive letters and "
35939 "references to external device GUIDs that ntfs-3g has no way of resolving. "
35940 "It is almost certainly the case that libguestfs callers should ignore what "
35941 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
35945 #: ../src/guestfs.pod:679
35947 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
35948 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
35949 "attribute, and read the raw reparse data from that (you can find the format "
35950 "documented in various places around the web)."
35954 #: ../src/guestfs.pod:684
35955 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
35959 #: ../src/guestfs.pod:686
35961 "There are other useful extended attributes that can be read from ntfs-3g "
35962 "filesystems (using L</guestfs_getxattr>). See:"
35966 #: ../src/guestfs.pod:689
35968 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35970 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35973 #: ../src/guestfs.pod:691
35974 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
35975 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
35978 #: ../src/guestfs.pod:693
35980 "Although we don't want to discourage you from using the C API, we will "
35981 "mention here that the same API is also available in other languages."
35985 #: ../src/guestfs.pod:696
35987 "The API is broadly identical in all supported languages. This means that "
35988 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
35989 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
35990 "OCaml. In other words, a straightforward, predictable isomorphism between "
35995 #: ../src/guestfs.pod:702
35997 "Error messages are automatically transformed into exceptions if the language "
36002 #: ../src/guestfs.pod:705
36004 "We don't try to \"object orientify\" parts of the API in OO languages, "
36005 "although contributors are welcome to write higher level APIs above what we "
36006 "provide in their favourite languages if they wish."
36010 #: ../src/guestfs.pod:711
36015 #: ../src/guestfs.pod:713
36017 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
36018 "identical to the C API. C++ classes and exceptions are not used."
36022 #: ../src/guestfs.pod:717
36027 #: ../src/guestfs.pod:719
36029 "The C# bindings are highly experimental. Please read the warnings at the "
36030 "top of C<csharp/Libguestfs.cs>."
36034 #: ../src/guestfs.pod:722
36039 #: ../src/guestfs.pod:724
36040 msgid "See L<guestfs-erlang(3)>."
36044 #: ../src/guestfs.pod:726
36046 msgstr "B<Haskell>"
36049 #: ../src/guestfs.pod:728
36051 "This is the only language binding that is working but incomplete. Only "
36052 "calls which return simple integers have been bound in Haskell, and we are "
36053 "looking for help to complete this binding."
36057 #: ../src/guestfs.pod:732
36062 #: ../src/guestfs.pod:734
36064 "Full documentation is contained in the Javadoc which is distributed with "
36065 "libguestfs. For examples, see L<guestfs-java(3)>."
36069 #: ../src/guestfs.pod:737
36074 #: ../src/guestfs.pod:739
36075 msgid "See L<guestfs-ocaml(3)>."
36076 msgstr "Див. L<guestfs-ocaml(3)>."
36079 #: ../src/guestfs.pod:741
36084 #: ../src/guestfs.pod:743
36085 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
36086 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
36089 #: ../src/guestfs.pod:745
36094 #: ../src/guestfs.pod:747
36096 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
36097 "the php-libguestfs package for your distribution."
36101 #: ../src/guestfs.pod:750
36102 msgid "The PHP binding only works correctly on 64 bit machines."
36106 #: ../src/guestfs.pod:752
36111 #: ../src/guestfs.pod:754
36112 msgid "See L<guestfs-python(3)>."
36113 msgstr "Див. L<guestfs-python(3)>."
36116 #: ../src/guestfs.pod:756
36121 #: ../src/guestfs.pod:758
36122 msgid "See L<guestfs-ruby(3)>."
36123 msgstr "Див. L<guestfs-ruby(3)>."
36126 #: ../src/guestfs.pod:760
36127 msgid "B<shell scripts>"
36128 msgstr "B<скрипти оболонки>"
36131 #: ../src/guestfs.pod:762
36132 msgid "See L<guestfish(1)>."
36133 msgstr "Див. L<guestfish(1)>."
36136 #: ../src/guestfs.pod:766
36137 msgid "LIBGUESTFS GOTCHAS"
36141 #: ../src/guestfs.pod:768
36143 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
36144 "system [...] that works in the way it is documented but is counterintuitive "
36145 "and almost invites mistakes.\""
36149 #: ../src/guestfs.pod:772
36151 "Since we developed libguestfs and the associated tools, there are several "
36152 "things we would have designed differently, but are now stuck with for "
36153 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
36154 "release, you can expect these to change. Beware of them."
36158 #: ../src/guestfs.pod:780
36159 msgid "Autosync / forgetting to sync."
36163 #: ../src/guestfs.pod:782
36165 "I<Update:> Autosync is enabled by default for all API users starting from "
36166 "libguestfs 1.5.24. This section only applies to older versions."
36170 #: ../src/guestfs.pod:785
36172 "When modifying a filesystem from C or another language, you B<must> unmount "
36173 "all filesystems and call L</guestfs_sync> explicitly before you close the "
36174 "libguestfs handle. You can also call:"
36178 #: ../src/guestfs.pod:789
36181 " guestfs_set_autosync (g, 1);\n"
36184 " guestfs_set_autosync (g, 1);\n"
36188 #: ../src/guestfs.pod:791
36190 "to have the unmount/sync done automatically for you when the handle 'g' is "
36191 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
36195 #: ../src/guestfs.pod:795
36197 "If you forget to do this, then it is entirely possible that your changes "
36198 "won't be written out, or will be partially written, or (very rarely) that "
36199 "you'll get disk corruption."
36203 #: ../src/guestfs.pod:799
36205 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
36206 "guestfish scripts that forget to sync will work just fine, which can make "
36207 "this very puzzling if you are trying to debug a problem."
36211 #: ../src/guestfs.pod:803
36212 msgid "Mount option C<-o sync> should not be the default."
36216 #: ../src/guestfs.pod:805
36218 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
36219 "libguestfs 1.13.16. This section only applies to older versions."
36223 #: ../src/guestfs.pod:808
36225 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
36226 "However C<-o sync> does not add any reliability benefit, but does have a "
36227 "very large performance impact."
36231 #: ../src/guestfs.pod:812
36233 "The work around is to use L</guestfs_mount_options> and set the mount "
36234 "options that you actually want to use."
36238 #: ../src/guestfs.pod:815
36239 msgid "Read-only should be the default."
36243 #: ../src/guestfs.pod:817
36245 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
36246 "specify I<--rw> if you want to make changes to the image."
36250 #: ../src/guestfs.pod:820
36251 msgid "This would reduce the potential to corrupt live VM images."
36255 #: ../src/guestfs.pod:822
36257 "Note that many filesystems change the disk when you just mount and unmount, "
36258 "even if you didn't perform any writes. You need to use L</"
36259 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
36263 #: ../src/guestfs.pod:826
36264 msgid "guestfish command line is hard to use."
36268 #: ../src/guestfs.pod:828
36270 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
36271 "examination). It tries to run a guestfish command C<disk.img> which doesn't "
36272 "exist, so it fails. In earlier versions of guestfish the error message was "
36273 "also unintuitive, but we have corrected this since. Like the Bourne shell, "
36274 "we should have used C<guestfish -c command> to run commands."
36278 #: ../src/guestfs.pod:835
36279 msgid "guestfish megabyte modifiers don't work right on all commands"
36283 #: ../src/guestfs.pod:837
36285 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
36286 "other modifiers). What guestfish actually does is to multiply the number "
36287 "part by the modifier part and pass the result to the C API. However this "
36288 "doesn't work for a few APIs which aren't expecting bytes, but are already "
36289 "expecting some other unit (eg. megabytes)."
36293 #: ../src/guestfs.pod:844
36294 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
36298 #: ../src/guestfs.pod:846
36301 " lvcreate LV VG 100M\n"
36304 " lvcreate LV VG 100M\n"
36308 #: ../src/guestfs.pod:848
36310 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
36311 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
36312 "megabytes * megabytes) logical volume. The error message you get from this "
36313 "is also a little obscure."
36317 #: ../src/guestfs.pod:853
36319 "This could be fixed in the generator by specially marking parameters and "
36320 "return values which take bytes or other units."
36324 #: ../src/guestfs.pod:856
36325 msgid "Ambiguity between devices and paths"
36329 #: ../src/guestfs.pod:858
36331 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
36332 "sdb2>) and a similar pathname. A file might just happen to be called "
36333 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
36337 #: ../src/guestfs.pod:863
36339 "In the current API we usually resolve this ambiguity by having two separate "
36340 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
36341 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
36342 "detecting if the path supplied begins with C</dev/>."
36346 #: ../src/guestfs.pod:869
36348 "To avoid both the ambiguity and the need to duplicate some calls, we could "
36349 "make paths/devices into structured names. One way to do this would be to "
36350 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
36351 "aspect of grub. Another way would be to use a structured type, equivalent "
36352 "to this OCaml type:"
36356 #: ../src/guestfs.pod:875
36359 " type path = Path of string | Device of int | Partition of int * int\n"
36364 #: ../src/guestfs.pod:877
36365 msgid "which would allow you to pass arguments like:"
36369 #: ../src/guestfs.pod:879
36372 " Path \"/foo/bar\"\n"
36373 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
36374 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
36375 " Path \"/dev/sdb2\" (* not a device *)\n"
36380 #: ../src/guestfs.pod:884
36382 "As you can see there are still problems to resolve even with this "
36383 "representation. Also consider how it might work in guestfish."
36387 #: ../src/guestfs.pod:889
36388 msgid "KEYS AND PASSPHRASES"
36389 msgstr "КЛЮЧІ І ПАРОЛІ"
36392 #: ../src/guestfs.pod:891
36394 "Certain libguestfs calls take a parameter that contains sensitive key "
36395 "material, passed in as a C string."
36399 #: ../src/guestfs.pod:894
36401 "In the future we would hope to change the libguestfs implementation so that "
36402 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
36403 "swap. However this is I<not> done at the moment, because of the complexity "
36404 "of such an implementation."
36408 #: ../src/guestfs.pod:899
36410 "Therefore you should be aware that any key parameter you pass to libguestfs "
36411 "might end up being written out to the swap partition. If this is a concern, "
36412 "scrub the swap partition or don't use libguestfs on encrypted devices."
36416 #: ../src/guestfs.pod:904
36417 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
36421 #: ../src/guestfs.pod:906
36423 "All high-level libguestfs actions are synchronous. If you want to use "
36424 "libguestfs asynchronously then you must create a thread."
36428 #: ../src/guestfs.pod:909
36430 "Only use the handle from a single thread. Either use the handle exclusively "
36431 "from one thread, or provide your own mutex so that two threads cannot issue "
36432 "calls on the same handle at the same time."
36436 #: ../src/guestfs.pod:913
36438 "See the graphical program guestfs-browser for one possible architecture for "
36439 "multithreaded programs using libvirt and libguestfs."
36443 #: ../src/guestfs.pod:916
36448 #: ../src/guestfs.pod:918
36450 "Libguestfs needs a supermin appliance, which it finds by looking along an "
36455 #: ../src/guestfs.pod:921
36457 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
36458 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
36462 #: ../src/guestfs.pod:924
36464 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
36465 "to change the directories that libguestfs will search in. The value is a "
36466 "colon-separated list of paths. The current directory is I<not> searched "
36467 "unless the path contains an empty element or C<.>. For example "
36468 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
36469 "then C</usr/lib/guestfs>."
36473 #: ../src/guestfs.pod:931
36474 msgid "QEMU WRAPPERS"
36478 #: ../src/guestfs.pod:933
36480 "If you want to compile your own qemu, run qemu from a non-standard location, "
36481 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
36486 #: ../src/guestfs.pod:937
36488 "There is one important rule to remember: you I<must C<exec qemu>> as the "
36489 "last command in the shell script (so that qemu replaces the shell and "
36490 "becomes the direct child of the libguestfs-using program). If you don't do "
36491 "this, then the qemu process won't be cleaned up correctly."
36495 #: ../src/guestfs.pod:942
36497 "Here is an example of a wrapper, where I have built my own copy of qemu from "
36502 #: ../src/guestfs.pod:945
36506 " qemudir=/home/rjones/d/qemu\n"
36507 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
36511 " qemudir=/home/rjones/d/qemu\n"
36512 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
36516 #: ../src/guestfs.pod:949
36518 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
36519 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
36524 #: ../src/guestfs.pod:953
36527 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36530 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36534 #: ../src/guestfs.pod:955
36536 "Note that libguestfs also calls qemu with the -help and -version options in "
36537 "order to determine features."
36541 #: ../src/guestfs.pod:958
36543 "Wrappers can also be used to edit the options passed to qemu. In the "
36544 "following example, the C<-machine ...> option (C<-machine> and the following "
36545 "argument) are removed from the command line and replaced with C<-machine pc,"
36546 "accel=tcg>. The while loop iterates over the options until it finds the "
36547 "right one to remove, putting the remaining options into the C<args> array."
36551 #: ../src/guestfs.pod:967
36555 " while [ $# -gt 0 ]; do\n"
36556 " case \"$1\" in\n"
36560 " args[i]=\"$1\"\n"
36569 #: ../src/guestfs.pod:979
36572 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
36577 #: ../src/guestfs.pod:981
36578 msgid "ATTACHING TO RUNNING DAEMONS"
36579 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
36582 #: ../src/guestfs.pod:983
36584 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
36585 "babies. Use with caution."
36589 #: ../src/guestfs.pod:986
36591 "I<Note (2):> This section explains how to attach to a running daemon from a "
36592 "low level perspective. For most users, simply using virt tools such as "
36593 "L<guestfish(1)> with the I<--live> option will \"just work\"."
36597 #: ../src/guestfs.pod:990
36598 msgid "Using guestfs_set_attach_method"
36599 msgstr "За допомогою guestfs_set_attach_method"
36602 #: ../src/guestfs.pod:992
36604 "By calling L</guestfs_set_attach_method> you can change how the library "
36605 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
36606 "ARCHITECTURE> for some background)."
36610 #: ../src/guestfs.pod:996
36612 "The normal attach method is C<appliance>, where a small appliance is created "
36613 "containing the daemon, and then the library connects to this."
36617 #: ../src/guestfs.pod:999
36619 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
36620 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
36621 "daemon over the Unix domain socket."
36625 #: ../src/guestfs.pod:1003
36627 "The normal use for this is to connect to a running virtual machine that "
36628 "contains a C<guestfsd> daemon, and send commands so you can read and write "
36629 "files inside the live virtual machine."
36633 #: ../src/guestfs.pod:1007
36634 msgid "Using guestfs_add_domain with live flag"
36635 msgstr "За допомогою guestfs_add_domain з прапорцем live"
36638 #: ../src/guestfs.pod:1009
36640 "L</guestfs_add_domain> provides some help for getting the correct attach "
36641 "method. If you pass the C<live> option to this function, then (if the "
36642 "virtual machine is running) it will examine the libvirt XML looking for a "
36643 "virtio-serial channel to connect to:"
36647 #: ../src/guestfs.pod:1015
36654 " <channel type='unix'>\n"
36655 " <source mode='bind' path='/path/to/socket'/>\n"
36656 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36667 " <channel type='unix'>\n"
36668 " <source mode='bind' path='/path/to/socket'/>\n"
36669 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36677 #: ../src/guestfs.pod:1027
36679 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
36680 "method to C<unix:/path/to/socket>."
36684 #: ../src/guestfs.pod:1030
36686 "Some of the libguestfs tools (including guestfish) support a I<--live> "
36687 "option which is passed through to L</guestfs_add_domain> thus allowing you "
36688 "to attach to and modify live virtual machines."
36692 #: ../src/guestfs.pod:1034
36694 "The virtual machine needs to have been set up beforehand so that it has the "
36695 "virtio-serial channel and so that guestfsd is running inside it."
36699 #: ../src/guestfs.pod:1038
36700 msgid "ABI GUARANTEE"
36701 msgstr "ГАРАНТІЯ ЩОДО ABI"
36704 #: ../src/guestfs.pod:1040
36706 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
36707 "actions as outlined in this section. Although we will deprecate some "
36708 "actions, for example if they get replaced by newer calls, we will keep the "
36709 "old actions forever. This allows you the developer to program in confidence "
36710 "against the libguestfs API."
36714 #: ../src/guestfs.pod:1046
36715 msgid "BLOCK DEVICE NAMING"
36716 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
36719 #: ../src/guestfs.pod:1048
36721 "In the kernel there is now quite a profusion of schemata for naming block "
36722 "devices (in this context, by I<block device> I mean a physical or virtual "
36723 "hard drive). The original Linux IDE driver used names starting with C</dev/"
36724 "hd*>. SCSI devices have historically used a different naming scheme, C</dev/"
36725 "sd*>. When the Linux kernel I<libata> driver became a popular replacement "
36726 "for the old IDE driver (particularly for SATA devices) those devices also "
36727 "used the C</dev/sd*> scheme. Additionally we now have virtual machines with "
36728 "paravirtualized drivers. This has created several different naming systems, "
36729 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
36733 #: ../src/guestfs.pod:1060
36735 "As discussed above, libguestfs uses a qemu appliance running an embedded "
36736 "Linux kernel to access block devices. We can run a variety of appliances "
36737 "based on a variety of Linux kernels."
36741 #: ../src/guestfs.pod:1064
36743 "This causes a problem for libguestfs because many API calls use device or "
36744 "partition names. Working scripts and the recipe (example) scripts that we "
36745 "make available over the internet could fail if the naming scheme changes."
36749 #: ../src/guestfs.pod:1069
36751 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
36752 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
36753 "required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
36754 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
36758 #: ../src/guestfs.pod:1075
36760 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
36761 "L</guestfs_list_partitions> and similar calls return the true names of the "
36762 "devices and partitions as known to the appliance."
36766 #: ../src/guestfs.pod:1080
36767 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
36771 #: ../src/guestfs.pod:1082
36773 "Usually this translation is transparent. However in some (very rare) cases "
36774 "you may need to know the exact algorithm. Such cases include where you use "
36775 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
36776 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
36780 #: ../src/guestfs.pod:1088
36782 "The algorithm is applied only to I<parameters> which are known to be either "
36783 "device or partition names. Return values from functions such as L</"
36784 "guestfs_list_devices> are never changed."
36788 #: ../src/guestfs.pod:1096
36789 msgid "Is the string a parameter which is a device or partition name?"
36793 #: ../src/guestfs.pod:1100
36794 msgid "Does the string begin with C</dev/sd>?"
36795 msgstr "Чи починається рядок з C</dev/sd>?"
36798 #: ../src/guestfs.pod:1104
36800 "Does the named device exist? If so, we use that device. However if I<not> "
36801 "then we continue with this algorithm."
36805 #: ../src/guestfs.pod:1109
36806 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
36810 #: ../src/guestfs.pod:1111
36811 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
36815 #: ../src/guestfs.pod:1113
36816 msgid "If that named device exists, use it. If not, continue."
36820 #: ../src/guestfs.pod:1117
36821 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
36825 #: ../src/guestfs.pod:1119
36826 msgid "If that named device exists, use it. If not, return an error."
36830 #: ../src/guestfs.pod:1123
36831 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
36835 #: ../src/guestfs.pod:1125
36837 "Although the standard naming scheme and automatic translation is useful for "
36838 "simple programs and guestfish scripts, for larger programs it is best not to "
36839 "rely on this mechanism."
36843 #: ../src/guestfs.pod:1129
36845 "Where possible for maximum future portability programs using libguestfs "
36846 "should use these future-proof techniques:"
36850 #: ../src/guestfs.pod:1136
36852 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
36853 "device names, and then use those names directly."
36857 #: ../src/guestfs.pod:1139
36859 "Since those device names exist by definition, they will never be translated."
36863 #: ../src/guestfs.pod:1144
36865 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
36866 "filesystem labels."
36870 #: ../src/guestfs.pod:1151
36872 "This section discusses security implications of using libguestfs, "
36873 "particularly with untrusted or malicious guests or disk images."
36877 #: ../src/guestfs.pod:1154
36878 msgid "GENERAL SECURITY CONSIDERATIONS"
36879 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
36882 #: ../src/guestfs.pod:1156
36884 "Be careful with any files or data that you download from a guest (by "
36885 "\"download\" we mean not just the L</guestfs_download> command but any "
36886 "command that reads files, filenames, directories or anything else from a "
36887 "disk image). An attacker could manipulate the data to fool your program "
36888 "into doing the wrong thing. Consider cases such as:"
36892 #: ../src/guestfs.pod:1166
36893 msgid "the data (file etc) not being present"
36897 #: ../src/guestfs.pod:1170
36898 msgid "being present but empty"
36902 #: ../src/guestfs.pod:1174
36903 msgid "being much larger than normal"
36907 #: ../src/guestfs.pod:1178
36908 msgid "containing arbitrary 8 bit data"
36912 #: ../src/guestfs.pod:1182
36913 msgid "being in an unexpected character encoding"
36917 #: ../src/guestfs.pod:1186
36918 msgid "containing homoglyphs."
36922 #: ../src/guestfs.pod:1190
36923 msgid "SECURITY OF MOUNTING FILESYSTEMS"
36924 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
36927 #: ../src/guestfs.pod:1192
36929 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
36930 "(VFS) module can sometimes be escalated into exploits by deliberately "
36931 "creating a malicious, malformed filesystem. These exploits are very severe "
36932 "for two reasons. Firstly there are very many filesystem drivers in the "
36933 "kernel, and many of them are infrequently used and not much developer "
36934 "attention has been paid to the code. Linux userspace helps potential "
36935 "crackers by detecting the filesystem type and automatically choosing the "
36936 "right VFS driver, even if that filesystem type is obscure or unexpected for "
36937 "the administrator. Secondly, a kernel-level exploit is like a local root "
36938 "exploit (worse in some ways), giving immediate and total access to the "
36939 "system right down to the hardware level."
36943 #: ../src/guestfs.pod:1205
36945 "That explains why you should never mount a filesystem from an untrusted "
36946 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
36947 "inside a qemu virtual machine, usually running as a non-root user. The "
36948 "attacker would need to write a filesystem which first exploited the kernel, "
36949 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
36950 "the libguestfs protocol, and finally to be as serious as the host kernel "
36951 "exploit it would need to escalate its privileges to root. This multi-step "
36952 "escalation, performed by a static piece of data, is thought to be extremely "
36953 "hard to do, although we never say 'never' about security issues."
36957 #: ../src/guestfs.pod:1216
36959 "In any case callers can reduce the attack surface by forcing the filesystem "
36960 "type when mounting (use L</guestfs_mount_vfs>)."
36964 #: ../src/guestfs.pod:1219
36965 msgid "PROTOCOL SECURITY"
36966 msgstr "ЗАХИСТ ПРОТОКОЛУ"
36969 #: ../src/guestfs.pod:1221
36971 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
36972 "defined upper message size. However a program that uses libguestfs must "
36973 "also take care - for example you can write a program that downloads a binary "
36974 "from a disk image and executes it locally, and no amount of protocol "
36975 "security will save you from the consequences."
36979 #: ../src/guestfs.pod:1227
36980 msgid "INSPECTION SECURITY"
36984 #: ../src/guestfs.pod:1229
36986 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
36987 "directly from the guest, and these could contain any 8 bit data. Callers "
36988 "should be careful to escape these before printing them to a structured file "
36989 "(for example, use HTML escaping if creating a web page)."
36993 #: ../src/guestfs.pod:1235
36995 "Guest configuration may be altered in unusual ways by the administrator of "
36996 "the virtual machine, and may not reflect reality (particularly for untrusted "
36997 "or actively malicious guests). For example we parse the hostname from "
36998 "configuration files like C</etc/sysconfig/network> that we find in the "
36999 "guest, but the guest administrator can easily manipulate these files to "
37000 "provide the wrong hostname."
37004 #: ../src/guestfs.pod:1243
37006 "The inspection API parses guest configuration using two external libraries: "
37007 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
37008 "designed to be robust in the face of malicious data, although denial of "
37009 "service attacks are still possible, for example with oversized configuration "
37014 #: ../src/guestfs.pod:1249
37015 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
37016 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
37019 #: ../src/guestfs.pod:1251
37021 "Be very cautious about running commands from the guest. By running a "
37022 "command in the guest, you are giving CPU time to a binary that you do not "
37023 "control, under the same user account as the library, albeit wrapped in qemu "
37024 "virtualization. More information and alternatives can be found in the "
37025 "section L</RUNNING COMMANDS>."
37029 #: ../src/guestfs.pod:1257
37030 msgid "CVE-2010-3851"
37031 msgstr "CVE-2010-3851"
37034 #: ../src/guestfs.pod:1259
37035 msgid "https://bugzilla.redhat.com/642934"
37036 msgstr "https://bugzilla.redhat.com/642934"
37039 #: ../src/guestfs.pod:1261
37041 "This security bug concerns the automatic disk format detection that qemu "
37042 "does on disk images."
37046 #: ../src/guestfs.pod:1264
37048 "A raw disk image is just the raw bytes, there is no header. Other disk "
37049 "images like qcow2 contain a special header. Qemu deals with this by looking "
37050 "for one of the known headers, and if none is found then assuming the disk "
37051 "image must be raw."
37055 #: ../src/guestfs.pod:1269
37057 "This allows a guest which has been given a raw disk image to write some "
37058 "other header. At next boot (or when the disk image is accessed by "
37059 "libguestfs) qemu would do autodetection and think the disk image format was, "
37060 "say, qcow2 based on the header written by the guest."
37064 #: ../src/guestfs.pod:1274
37066 "This in itself would not be a problem, but qcow2 offers many features, one "
37067 "of which is to allow a disk image to refer to another image (called the "
37068 "\"backing disk\"). It does this by placing the path to the backing disk "
37069 "into the qcow2 header. This path is not validated and could point to any "
37070 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
37071 "\"holes\" in the qcow2 disk image, which of course is completely under the "
37072 "control of the attacker."
37076 #: ../src/guestfs.pod:1282
37078 "In libguestfs this is rather hard to exploit except under two circumstances:"
37082 #: ../src/guestfs.pod:1289
37083 msgid "You have enabled the network or have opened the disk in write mode."
37087 #: ../src/guestfs.pod:1293
37089 "You are also running untrusted code from the guest (see L</RUNNING "
37094 #: ../src/guestfs.pod:1298
37096 "The way to avoid this is to specify the expected disk format when adding "
37097 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
37098 "should always do this if the disk is raw format, and it's a good idea for "
37103 #: ../src/guestfs.pod:1303
37105 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
37106 "format is fetched from libvirt and passed through."
37110 #: ../src/guestfs.pod:1306
37112 "For libguestfs tools, use the I<--format> command line parameter as "
37117 #: ../src/guestfs.pod:1309
37118 msgid "CONNECTION MANAGEMENT"
37119 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
37122 #: ../src/guestfs.pod:1311
37123 msgid "guestfs_h *"
37124 msgstr "guestfs_h *"
37127 #: ../src/guestfs.pod:1313
37129 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
37130 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
37131 "handle and release all resources used."
37135 #: ../src/guestfs.pod:1317
37137 "For information on using multiple handles and threads, see the section L</"
37138 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
37142 #: ../src/guestfs.pod:1320
37143 msgid "guestfs_create"
37144 msgstr "guestfs_create"
37147 #: ../src/guestfs.pod:1322
37150 " guestfs_h *guestfs_create (void);\n"
37153 " guestfs_h *guestfs_create (void);\n"
37157 #: ../src/guestfs.pod:1324
37158 msgid "Create a connection handle."
37159 msgstr "Створити дескриптор з’єднання."
37162 #: ../src/guestfs.pod:1326
37164 "On success this returns a non-NULL pointer to a handle. On error it returns "
37169 #: ../src/guestfs.pod:1329
37171 "You have to \"configure\" the handle after creating it. This includes "
37172 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
37173 "handle at least once."
37177 #: ../src/guestfs.pod:1333
37178 msgid "After configuring the handle, you have to call L</guestfs_launch>."
37182 #: ../src/guestfs.pod:1335
37184 "You may also want to configure error handling for the handle. See the L</"
37185 "ERROR HANDLING> section below."
37189 #: ../src/guestfs.pod:1338
37190 msgid "guestfs_close"
37191 msgstr "guestfs_close"
37194 #: ../src/guestfs.pod:1340
37197 " void guestfs_close (guestfs_h *g);\n"
37200 " void guestfs_close (guestfs_h *g);\n"
37204 #: ../src/guestfs.pod:1342
37205 msgid "This closes the connection handle and frees up all resources used."
37209 #: ../src/guestfs.pod:1344
37211 "If autosync was set on the handle and the handle was launched, then this "
37212 "implicitly calls various functions to unmount filesystems and sync the "
37213 "disk. See L</guestfs_set_autosync> for more details."
37217 #: ../src/guestfs.pod:1348
37218 msgid "If a close callback was set on the handle, then it is called."
37222 #: ../src/guestfs.pod:1350
37223 msgid "ERROR HANDLING"
37224 msgstr "ОБРОБКА ПОМИЛОК"
37227 #: ../src/guestfs.pod:1352
37229 "API functions can return errors. For example, almost all functions that "
37230 "return C<int> will return C<-1> to indicate an error."
37234 #: ../src/guestfs.pod:1355
37236 "Additional information is available for errors: an error message string and "
37237 "optionally an error number (errno) if the thing that failed was a system "
37242 #: ../src/guestfs.pod:1359
37244 "You can get at the additional information about the last error on the handle "
37245 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
37246 "up an error handler with L</guestfs_set_error_handler>."
37250 #: ../src/guestfs.pod:1364
37252 "When the handle is created, a default error handler is installed which "
37253 "prints the error message string to C<stderr>. For small short-running "
37254 "command line programs it is sufficient to do:"
37258 #: ../src/guestfs.pod:1368
37261 " if (guestfs_launch (g) == -1)\n"
37262 " exit (EXIT_FAILURE);\n"
37265 " if (guestfs_launch (g) == -1)\n"
37266 " exit (EXIT_FAILURE);\n"
37270 #: ../src/guestfs.pod:1371
37272 "since the default error handler will ensure that an error message has been "
37273 "printed to C<stderr> before the program exits."
37277 #: ../src/guestfs.pod:1374
37279 "For other programs the caller will almost certainly want to install an "
37280 "alternate error handler or do error handling in-line like this:"
37284 #: ../src/guestfs.pod:1377
37287 " /* This disables the default behaviour of printing errors\n"
37289 " guestfs_set_error_handler (g, NULL, NULL);\n"
37294 #: ../src/guestfs.pod:1381
37297 " if (guestfs_launch (g) == -1) {\n"
37298 " /* Examine the error message and print it etc. */\n"
37299 " char *msg = guestfs_last_error (g);\n"
37300 " int errnum = guestfs_last_errno (g);\n"
37301 " fprintf (stderr, \"%s\", msg);\n"
37302 " if (errnum != 0)\n"
37303 " fprintf (stderr, \": %s\", strerror (errnum));\n"
37304 " fprintf (stderr, \"\\n\");\n"
37311 #: ../src/guestfs.pod:1392
37313 "Out of memory errors are handled differently. The default action is to call "
37314 "L<abort(3)>. If this is undesirable, then you can set a handler using L</"
37315 "guestfs_set_out_of_memory_handler>."
37319 #: ../src/guestfs.pod:1396
37321 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
37322 "because there is no handle if this happens there is no way to get additional "
37323 "error information. However L</guestfs_create> is supposed to be a "
37324 "lightweight operation which can only fail because of insufficient memory (it "
37325 "returns NULL in this case)."
37329 #: ../src/guestfs.pod:1402
37330 msgid "guestfs_last_error"
37331 msgstr "guestfs_last_error"
37334 #: ../src/guestfs.pod:1404
37337 " const char *guestfs_last_error (guestfs_h *g);\n"
37340 " const char *guestfs_last_error (guestfs_h *g);\n"
37344 #: ../src/guestfs.pod:1406
37346 "This returns the last error message that happened on C<g>. If there has not "
37347 "been an error since the handle was created, then this returns C<NULL>."
37351 #: ../src/guestfs.pod:1410
37353 "The lifetime of the returned string is until the next error occurs, or L</"
37354 "guestfs_close> is called."
37358 #: ../src/guestfs.pod:1413
37359 msgid "guestfs_last_errno"
37360 msgstr "guestfs_last_errno"
37363 #: ../src/guestfs.pod:1415
37366 " int guestfs_last_errno (guestfs_h *g);\n"
37369 " int guestfs_last_errno (guestfs_h *g);\n"
37373 #: ../src/guestfs.pod:1417
37374 msgid "This returns the last error number (errno) that happened on C<g>."
37378 #: ../src/guestfs.pod:1419
37379 msgid "If successful, an errno integer not equal to zero is returned."
37383 #: ../src/guestfs.pod:1421
37385 "If no error, this returns 0. This call can return 0 in three situations:"
37389 #: ../src/guestfs.pod:1428
37390 msgid "There has not been any error on the handle."
37394 #: ../src/guestfs.pod:1432
37396 "There has been an error but the errno was meaningless. This corresponds to "
37397 "the case where the error did not come from a failed system call, but for "
37398 "some other reason."
37402 #: ../src/guestfs.pod:1438
37404 "There was an error from a failed system call, but for some reason the errno "
37405 "was not captured and returned. This usually indicates a bug in libguestfs."
37409 #: ../src/guestfs.pod:1444
37411 "Libguestfs tries to convert the errno from inside the applicance into a "
37412 "corresponding errno for the caller (not entirely trivial: the appliance "
37413 "might be running a completely different operating system from the library "
37414 "and error numbers are not standardized across Un*xen). If this could not be "
37415 "done, then the error is translated to C<EINVAL>. In practice this should "
37416 "only happen in very rare circumstances."
37420 #: ../src/guestfs.pod:1452
37421 msgid "guestfs_set_error_handler"
37422 msgstr "guestfs_set_error_handler"
37425 #: ../src/guestfs.pod:1454
37428 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37430 " const char *msg);\n"
37431 " void guestfs_set_error_handler (guestfs_h *g,\n"
37432 " guestfs_error_handler_cb cb,\n"
37433 " void *opaque);\n"
37436 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37438 " const char *msg);\n"
37439 " void guestfs_set_error_handler (guestfs_h *g,\n"
37440 " guestfs_error_handler_cb cb,\n"
37441 " void *opaque);\n"
37445 #: ../src/guestfs.pod:1461
37447 "The callback C<cb> will be called if there is an error. The parameters "
37448 "passed to the callback are an opaque data pointer and the error message "
37453 #: ../src/guestfs.pod:1465
37455 "C<errno> is not passed to the callback. To get that the callback must call "
37456 "L</guestfs_last_errno>."
37460 #: ../src/guestfs.pod:1468
37462 "Note that the message string C<msg> is freed as soon as the callback "
37463 "function returns, so if you want to stash it somewhere you must make your "
37468 #: ../src/guestfs.pod:1472
37469 msgid "The default handler prints messages on C<stderr>."
37473 #: ../src/guestfs.pod:1474
37474 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
37478 #: ../src/guestfs.pod:1476
37479 msgid "guestfs_get_error_handler"
37480 msgstr "guestfs_get_error_handler"
37483 #: ../src/guestfs.pod:1478
37486 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37487 " void **opaque_rtn);\n"
37490 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37491 " void **opaque_rtn);\n"
37495 #: ../src/guestfs.pod:1481
37496 msgid "Returns the current error handler callback."
37500 #: ../src/guestfs.pod:1483
37501 msgid "guestfs_set_out_of_memory_handler"
37502 msgstr "guestfs_set_out_of_memory_handler"
37505 #: ../src/guestfs.pod:1485
37508 " typedef void (*guestfs_abort_cb) (void);\n"
37509 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
37510 " guestfs_abort_cb);\n"
37515 #: ../src/guestfs.pod:1489
37517 "The callback C<cb> will be called if there is an out of memory situation. "
37518 "I<Note this callback must not return>."
37522 #: ../src/guestfs.pod:1492
37523 msgid "The default is to call L<abort(3)>."
37527 #: ../src/guestfs.pod:1494
37529 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
37533 #: ../src/guestfs.pod:1497
37534 msgid "guestfs_get_out_of_memory_handler"
37535 msgstr "guestfs_get_out_of_memory_handler"
37538 #: ../src/guestfs.pod:1499
37541 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37544 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37548 #: ../src/guestfs.pod:1501
37549 msgid "This returns the current out of memory handler."
37553 #: ../src/guestfs.pod:1503
37555 msgstr "ВИКЛИКИ API"
37558 #: ../src/guestfs.pod:1507
37563 #: ../src/guestfs.pod:1509
37568 #: ../src/guestfs.pod:1511
37569 msgid "AVAILABILITY"
37570 msgstr "ДОСТУПНІСТЬ"
37573 #: ../src/guestfs.pod:1513
37574 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
37575 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
37578 #: ../src/guestfs.pod:1515
37580 "Using L</guestfs_available> you can test availability of the following "
37581 "groups of functions. This test queries the appliance to see if the "
37582 "appliance you are currently using supports the functionality."
37586 #: ../src/guestfs.pod:1520
37587 msgid "@AVAILABILITY@"
37588 msgstr "@AVAILABILITY@"
37591 #: ../src/guestfs.pod:1522
37592 msgid "GUESTFISH supported COMMAND"
37596 #: ../src/guestfs.pod:1524
37598 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
37599 "prints out the available groups and whether they are supported by this build "
37600 "of libguestfs. Note however that you have to do C<run> first."
37604 #: ../src/guestfs.pod:1529
37605 msgid "SINGLE CALLS AT COMPILE TIME"
37609 #: ../src/guestfs.pod:1531
37611 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
37612 "function, such as:"
37616 #: ../src/guestfs.pod:1534
37619 " #define LIBGUESTFS_HAVE_DD 1\n"
37622 " #define LIBGUESTFS_HAVE_DD 1\n"
37626 #: ../src/guestfs.pod:1536
37627 msgid "if L</guestfs_dd> is available."
37631 #: ../src/guestfs.pod:1538
37633 "Before version 1.5.8, if you needed to test whether a single libguestfs "
37634 "function is available at compile time, we recommended using build tools such "
37635 "as autoconf or cmake. For example in autotools you could use:"
37639 #: ../src/guestfs.pod:1543
37642 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37643 " AC_CHECK_FUNCS([guestfs_dd])\n"
37646 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37647 " AC_CHECK_FUNCS([guestfs_dd])\n"
37651 #: ../src/guestfs.pod:1546
37653 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
37658 #: ../src/guestfs.pod:1549
37659 msgid "SINGLE CALLS AT RUN TIME"
37663 #: ../src/guestfs.pod:1551
37665 "Testing at compile time doesn't guarantee that a function really exists in "
37666 "the library. The reason is that you might be dynamically linked against a "
37667 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
37668 "This situation unfortunately results in a segmentation fault, which is a "
37669 "shortcoming of the C dynamic linking system itself."
37673 #: ../src/guestfs.pod:1558
37675 "You can use L<dlopen(3)> to test if a function is available at run time, as "
37676 "in this example program (note that you still need the compile time check as "
37681 #: ../src/guestfs.pod:1562
37684 " #include <stdio.h>\n"
37685 " #include <stdlib.h>\n"
37686 " #include <unistd.h>\n"
37687 " #include <dlfcn.h>\n"
37688 " #include <guestfs.h>\n"
37691 " #include <stdio.h>\n"
37692 " #include <stdlib.h>\n"
37693 " #include <unistd.h>\n"
37694 " #include <dlfcn.h>\n"
37695 " #include <guestfs.h>\n"
37699 #: ../src/guestfs.pod:1568
37704 " #ifdef LIBGUESTFS_HAVE_DD\n"
37706 " int has_function;\n"
37711 " #ifdef LIBGUESTFS_HAVE_DD\n"
37713 " int has_function;\n"
37717 #: ../src/guestfs.pod:1574
37720 " /* Test if the function guestfs_dd is really available. */\n"
37721 " dl = dlopen (NULL, RTLD_LAZY);\n"
37723 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
37724 " exit (EXIT_FAILURE);\n"
37726 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
37732 #: ../src/guestfs.pod:1583
37735 " if (!has_function)\n"
37736 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
37738 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
37739 " /* Now it's safe to call\n"
37740 " guestfs_dd (g, \"foo\", \"bar\");\n"
37744 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
37751 #: ../src/guestfs.pod:1596
37753 "You may think the above is an awful lot of hassle, and it is. There are "
37754 "other ways outside of the C linking system to ensure that this kind of "
37755 "incompatibility never arises, such as using package versioning:"
37759 #: ../src/guestfs.pod:1601
37762 " Requires: libguestfs >= 1.0.80\n"
37767 #: ../src/guestfs.pod:1603
37768 msgid "CALLS WITH OPTIONAL ARGUMENTS"
37772 #: ../src/guestfs.pod:1605
37774 "A recent feature of the API is the introduction of calls which take optional "
37775 "arguments. In C these are declared 3 ways. The main way is as a call which "
37776 "takes variable arguments (ie. C<...>), as in this example:"
37780 #: ../src/guestfs.pod:1610
37783 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37786 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37790 #: ../src/guestfs.pod:1612
37792 "Call this with a list of optional arguments, terminated by C<-1>. So to "
37793 "call with no optional arguments specified:"
37797 #: ../src/guestfs.pod:1615
37800 " guestfs_add_drive_opts (g, filename, -1);\n"
37803 " guestfs_add_drive_opts (g, filename, -1);\n"
37807 #: ../src/guestfs.pod:1617
37808 msgid "With a single optional argument:"
37812 #: ../src/guestfs.pod:1619
37815 " guestfs_add_drive_opts (g, filename,\n"
37816 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37820 " guestfs_add_drive_opts (g, filename,\n"
37821 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37826 #: ../src/guestfs.pod:1623
37831 #: ../src/guestfs.pod:1625
37834 " guestfs_add_drive_opts (g, filename,\n"
37835 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37836 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37840 " guestfs_add_drive_opts (g, filename,\n"
37841 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37842 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37847 #: ../src/guestfs.pod:1630
37849 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
37854 #: ../src/guestfs.pod:1633
37855 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
37859 #: ../src/guestfs.pod:1635
37861 "The second variant has the same name with the suffix C<_va>, which works the "
37862 "same way but takes a C<va_list>. See the C manual for details. For the "
37863 "example function, this is declared:"
37867 #: ../src/guestfs.pod:1639
37870 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37871 " va_list args);\n"
37874 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37875 " va_list args);\n"
37879 #: ../src/guestfs.pod:1642
37880 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
37884 #: ../src/guestfs.pod:1644
37886 "The third variant is useful where you need to construct these calls. You "
37887 "pass in a structure where you fill in the optional fields. The structure "
37888 "has a bitmask as the first element which you must set to indicate which "
37889 "fields you have filled in. For our example function the structure and call "
37894 #: ../src/guestfs.pod:1650
37897 " struct guestfs_add_drive_opts_argv {\n"
37898 " uint64_t bitmask;\n"
37900 " const char *format;\n"
37903 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37904 " const struct guestfs_add_drive_opts_argv *optargs);\n"
37907 " struct guestfs_add_drive_opts_argv {\n"
37908 " uint64_t bitmask;\n"
37910 " const char *format;\n"
37913 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37914 " const struct guestfs_add_drive_opts_argv *optargs);\n"
37918 #: ../src/guestfs.pod:1659
37919 msgid "You could call it like this:"
37923 #: ../src/guestfs.pod:1661
37926 " struct guestfs_add_drive_opts_argv optargs = {\n"
37927 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37928 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37929 " .readonly = 1,\n"
37930 " .format = \"qcow2\"\n"
37934 " struct guestfs_add_drive_opts_argv optargs = {\n"
37935 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37936 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37937 " .readonly = 1,\n"
37938 " .format = \"qcow2\"\n"
37943 #: ../src/guestfs.pod:1668
37946 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37949 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37953 #: ../src/guestfs.pod:1676
37954 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
37958 #: ../src/guestfs.pod:1681
37959 msgid "You do not need to fill in all fields of the structure."
37963 #: ../src/guestfs.pod:1685
37965 "There must be a one-to-one correspondence between fields of the structure "
37966 "that are filled in, and bits set in the bitmask."
37970 #: ../src/guestfs.pod:1690
37971 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
37975 #: ../src/guestfs.pod:1692
37977 "In other languages, optional arguments are expressed in the way that is "
37978 "natural for that language. We refer you to the language-specific "
37979 "documentation for more details on that."
37983 #: ../src/guestfs.pod:1696
37984 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
37988 #: ../src/guestfs.pod:1698
37989 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
37993 #: ../src/guestfs.pod:1700
37995 "B<Note:> This section documents the generic event mechanism introduced in "
37996 "libguestfs 1.10, which you should use in new code if possible. The old "
37997 "functions C<guestfs_set_log_message_callback>, "
37998 "C<guestfs_set_subprocess_quit_callback>, "
37999 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
38000 "C<guestfs_set_progress_callback> are no longer documented in this manual "
38001 "page. Because of the ABI guarantee, the old functions continue to work."
38005 #: ../src/guestfs.pod:1709
38007 "Handles generate events when certain things happen, such as log messages "
38008 "being generated, progress messages during long-running operations, or the "
38009 "handle being closed. The API calls described below let you register a "
38010 "callback to be called when events happen. You can register multiple "
38011 "callbacks (for the same, different or overlapping sets of events), and "
38012 "individually remove callbacks. If callbacks are not removed, then they "
38013 "remain in force until the handle is closed."
38017 #: ../src/guestfs.pod:1717
38019 "In the current implementation, events are only generated synchronously: that "
38020 "means that events (and hence callbacks) can only happen while you are in the "
38021 "middle of making another libguestfs call. The callback is called in the "
38026 #: ../src/guestfs.pod:1722
38028 "Events may contain a payload, usually nothing (void), an array of 64 bit "
38029 "unsigned integers, or a message buffer. Payloads are discussed later on."
38033 #: ../src/guestfs.pod:1726
38034 msgid "CLASSES OF EVENTS"
38038 #: ../src/guestfs.pod:1730
38039 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
38043 #: ../src/guestfs.pod:1733
38045 "The callback function will be called while the handle is being closed "
38046 "(synchronously from L</guestfs_close>)."
38050 #: ../src/guestfs.pod:1736
38052 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
38053 "handles that are open when the program exits. This means that this callback "
38054 "might be called indirectly from L<exit(3)>, which can cause unexpected "
38055 "problems in higher-level languages (eg. if your HLL interpreter has already "
38056 "been cleaned up by the time this is called, and if your callback then jumps "
38057 "into some HLL function)."
38061 #: ../src/guestfs.pod:1743
38063 "If no callback is registered: the handle is closed without any callback "
38068 #: ../src/guestfs.pod:1746
38069 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
38073 #: ../src/guestfs.pod:1749
38075 "The callback function will be called when the child process quits, either "
38076 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
38077 "corresponds to a transition from any state to the CONFIG state)."
38081 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
38082 msgid "If no callback is registered: the event is ignored."
38086 #: ../src/guestfs.pod:1755
38087 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
38091 #: ../src/guestfs.pod:1758
38093 "The callback function will be called when the child process becomes ready "
38094 "first time after it has been launched. (This corresponds to a transition "
38095 "from LAUNCHING to the READY state)."
38099 #: ../src/guestfs.pod:1764
38100 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
38104 #: ../src/guestfs.pod:1767
38106 "Some long-running operations can generate progress messages. If this "
38107 "callback is registered, then it will be called each time a progress message "
38108 "is generated (usually two seconds after the operation started, and three "
38109 "times per second thereafter until it completes, although the frequency may "
38110 "change in future versions)."
38114 #: ../src/guestfs.pod:1773
38116 "The callback receives in the payload four unsigned 64 bit numbers which are "
38117 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
38121 #: ../src/guestfs.pod:1776
38123 "The units of C<total> are not defined, although for some operations C<total> "
38124 "may relate in some way to the amount of data to be transferred (eg. in bytes "
38125 "or megabytes), and C<position> may be the portion which has been transferred."
38129 #: ../src/guestfs.pod:1781
38130 msgid "The only defined and stable parts of the API are:"
38134 #: ../src/guestfs.pod:1787
38136 "The callback can display to the user some type of progress bar or indicator "
38137 "which shows the ratio of C<position>:C<total>."
38141 #: ../src/guestfs.pod:1792
38142 msgid "0 E<lt>= C<position> E<lt>= C<total>"
38146 #: ../src/guestfs.pod:1796
38148 "If any progress notification is sent during a call, then a final progress "
38149 "notification is always sent when C<position> = C<total> (I<unless> the call "
38150 "fails with an error)."
38154 #: ../src/guestfs.pod:1800
38156 "This is to simplify caller code, so callers can easily set the progress "
38157 "indicator to \"100%\" at the end of the operation, without requiring special "
38158 "code to detect this case."
38162 #: ../src/guestfs.pod:1806
38164 "For some calls we are unable to estimate the progress of the call, but we "
38165 "can still generate progress messages to indicate activity. This is known as "
38166 "\"pulse mode\", and is directly supported by certain progress bar "
38167 "implementations (eg. GtkProgressBar)."
38171 #: ../src/guestfs.pod:1811
38173 "For these calls, zero or more progress messages are generated with "
38174 "C<position = 0> and C<total = 1>, followed by a final message with "
38175 "C<position = total = 1>."
38179 #: ../src/guestfs.pod:1815
38181 "As noted above, if the call fails with an error then the final message may "
38182 "not be generated."
38186 #: ../src/guestfs.pod:1820
38188 "The callback also receives the procedure number (C<proc_nr>) and serial "
38189 "number (C<serial>) of the call. These are only useful for debugging "
38190 "protocol issues, and the callback can normally ignore them. The callback "
38191 "may want to print these numbers in error messages or debugging messages."
38195 #: ../src/guestfs.pod:1826
38196 msgid "If no callback is registered: progress messages are discarded."
38200 #: ../src/guestfs.pod:1828
38201 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
38205 #: ../src/guestfs.pod:1831
38207 "The callback function is called whenever a log message is generated by qemu, "
38208 "the appliance kernel, guestfsd (daemon), or utility programs."
38212 #: ../src/guestfs.pod:1834
38214 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
38215 "guestfs_launch>) then additional debug messages are generated."
38219 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
38221 "If no callback is registered: the messages are discarded unless the verbose "
38222 "flag is set in which case they are sent to stderr. You can override the "
38223 "printing of verbose messages to stderr by setting up a callback."
38227 #: ../src/guestfs.pod:1842
38228 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
38232 #: ../src/guestfs.pod:1845
38234 "The callback function is called whenever a log message is generated by the "
38235 "library part of libguestfs."
38239 #: ../src/guestfs.pod:1848
38241 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
38242 "messages are generated."
38246 #: ../src/guestfs.pod:1856
38247 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
38251 #: ../src/guestfs.pod:1859
38253 "The callback function is called whenever a trace message is generated. This "
38254 "only applies if the trace flag (L</guestfs_set_trace>) is set."
38258 #: ../src/guestfs.pod:1862
38260 "If no callback is registered: the messages are sent to stderr. You can "
38261 "override the printing of trace messages to stderr by setting up a callback."
38265 #: ../src/guestfs.pod:1866
38266 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
38270 #: ../src/guestfs.pod:1869
38272 "The callback function is called whenever a libguestfs function is entered."
38276 #: ../src/guestfs.pod:1872
38278 "The payload is a string which contains the name of the function that we are "
38279 "entering (not including C<guestfs_> prefix)."
38283 #: ../src/guestfs.pod:1875
38285 "Note that libguestfs functions can call themselves, so you may see many "
38286 "events from a single call. A few libguestfs functions do not generate this "
38291 #: ../src/guestfs.pod:1883
38292 msgid "guestfs_set_event_callback"
38296 #: ../src/guestfs.pod:1885
38299 " int guestfs_set_event_callback (guestfs_h *g,\n"
38300 " guestfs_event_callback cb,\n"
38301 " uint64_t event_bitmask,\n"
38303 " void *opaque);\n"
38308 #: ../src/guestfs.pod:1891
38310 "This function registers a callback (C<cb>) for all event classes in the "
38311 "C<event_bitmask>."
38315 #: ../src/guestfs.pod:1894
38317 "For example, to register for all log message events, you could call this "
38318 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. "
38319 "To register a single callback for all possible classes of events, use "
38320 "C<GUESTFS_EVENT_ALL>."
38324 #: ../src/guestfs.pod:1900
38325 msgid "C<flags> should always be passed as 0."
38329 #: ../src/guestfs.pod:1902
38331 "C<opaque> is an opaque pointer which is passed to the callback. You can use "
38332 "it for any purpose."
38336 #: ../src/guestfs.pod:1905
38338 "The return value is the event handle (an integer) which you can use to "
38339 "delete the callback (see below)."
38343 #: ../src/guestfs.pod:1908
38345 "If there is an error, this function returns C<-1>, and sets the error in the "
38346 "handle in the usual way (see L</guestfs_last_error> etc.)"
38350 #: ../src/guestfs.pod:1911
38352 "Callbacks remain in effect until they are deleted, or until the handle is "
38357 #: ../src/guestfs.pod:1914
38359 "In the case where multiple callbacks are registered for a particular event "
38360 "class, all of the callbacks are called. The order in which multiple "
38361 "callbacks are called is not defined."
38365 #: ../src/guestfs.pod:1918
38366 msgid "guestfs_delete_event_callback"
38370 #: ../src/guestfs.pod:1920
38373 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
38378 #: ../src/guestfs.pod:1922
38380 "Delete a callback that was previously registered. C<event_handle> should be "
38381 "the integer that was returned by a previous call to "
38382 "C<guestfs_set_event_callback> on the same handle."
38386 #: ../src/guestfs.pod:1926
38387 msgid "guestfs_event_callback"
38391 #: ../src/guestfs.pod:1928
38394 " typedef void (*guestfs_event_callback) (\n"
38397 " uint64_t event,\n"
38398 " int event_handle,\n"
38400 " const char *buf, size_t buf_len,\n"
38401 " const uint64_t *array, size_t array_len);\n"
38406 #: ../src/guestfs.pod:1937
38408 "This is the type of the event callback function that you have to provide."
38412 #: ../src/guestfs.pod:1940
38414 "The basic parameters are: the handle (C<g>), the opaque user pointer "
38415 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
38416 "handle, and C<flags> which in the current API you should ignore."
38420 #: ../src/guestfs.pod:1944
38422 "The remaining parameters contain the event payload (if any). Each event may "
38423 "contain a payload, which usually relates to the event class, but for future "
38424 "proofing your code should be written to handle any payload for any event "
38429 #: ../src/guestfs.pod:1949
38431 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
38432 "there is no message buffer). Note that this message buffer can contain "
38433 "arbitrary 8 bit data, including NUL bytes."
38437 #: ../src/guestfs.pod:1953
38439 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
38440 "moment this is only used for progress messages."
38444 #: ../src/guestfs.pod:1956
38445 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
38449 #: ../src/guestfs.pod:1958
38451 "One motivation for the generic event API was to allow GUI programs to "
38452 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
38453 "unconditionally to C<stderr>."
38457 #: ../src/guestfs.pod:1962
38459 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
38460 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
38461 "messages are not events; you must capture error messages separately)."
38465 #: ../src/guestfs.pod:1967
38467 "Programs have to set up a callback to capture the classes of events of "
38472 #: ../src/guestfs.pod:1970
38476 " guestfs_set_event_callback\n"
38477 " (g, message_callback,\n"
38478 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
38479 " GUESTFS_EVENT_TRACE,\n"
38480 " 0, NULL) == -1)\n"
38481 " if (eh == -1) {\n"
38482 " // handle error in the usual way\n"
38488 #: ../src/guestfs.pod:1980
38490 "The callback can then direct messages to the appropriate place. In this "
38491 "example, messages are directed to syslog:"
38495 #: ../src/guestfs.pod:1983
38499 " message_callback (\n"
38502 " uint64_t event,\n"
38503 " int event_handle,\n"
38505 " const char *buf, size_t buf_len,\n"
38506 " const uint64_t *array, size_t array_len)\n"
38508 " const int priority = LOG_USER|LOG_INFO;\n"
38509 " if (buf_len > 0)\n"
38510 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
38516 #: ../src/guestfs.pod:1998
38517 msgid "CANCELLING LONG TRANSFERS"
38521 #: ../src/guestfs.pod:2000
38523 "Some operations can be cancelled by the caller while they are in progress. "
38524 "Currently only operations that involve uploading or downloading data can be "
38525 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
38526 "parameters in the generator)."
38530 #: ../src/guestfs.pod:2005
38531 msgid "guestfs_user_cancel"
38535 #: ../src/guestfs.pod:2007
38538 " void guestfs_user_cancel (guestfs_h *g);\n"
38543 #: ../src/guestfs.pod:2009
38545 "C<guestfs_user_cancel> cancels the current upload or download operation."
38549 #: ../src/guestfs.pod:2012
38551 "Unlike most other libguestfs calls, this function is signal safe and thread "
38552 "safe. You can call it from a signal handler or from another thread, without "
38553 "needing to do any locking."
38557 #: ../src/guestfs.pod:2016
38559 "The transfer that was in progress (if there is one) will stop shortly "
38560 "afterwards, and will return an error. The errno (see L</"
38561 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
38562 "out if the operation was cancelled or failed because of another error."
38566 #: ../src/guestfs.pod:2022
38568 "No cleanup is performed: for example, if a file was being uploaded then "
38569 "after cancellation there may be a partially uploaded file. It is the "
38570 "caller's responsibility to clean up if necessary."
38574 #: ../src/guestfs.pod:2026
38575 msgid "There are two common places that you might call C<guestfs_user_cancel>."
38579 #: ../src/guestfs.pod:2028
38581 "In an interactive text-based program, you might call it from a C<SIGINT> "
38582 "signal handler so that pressing C<^C> cancels the current operation. (You "
38583 "also need to call L</guestfs_set_pgroup> so that child processes don't "
38584 "receive the C<^C> signal)."
38588 #: ../src/guestfs.pod:2033
38590 "In a graphical program, when the main thread is displaying a progress bar "
38591 "with a cancel button, wire up the cancel button to call this function."
38595 #: ../src/guestfs.pod:2037
38596 msgid "PRIVATE DATA AREA"
38600 #: ../src/guestfs.pod:2039
38602 "You can attach named pieces of private data to the libguestfs handle, fetch "
38603 "them by name, and walk over them, for the lifetime of the handle. This is "
38604 "called the private data area and is only available from the C API."
38608 #: ../src/guestfs.pod:2044
38609 msgid "To attach a named piece of data, use the following call:"
38613 #: ../src/guestfs.pod:2046
38616 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38619 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38623 #: ../src/guestfs.pod:2048
38625 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
38626 "pointer (which can be C<NULL>). Any previous item with the same key is "
38631 #: ../src/guestfs.pod:2052
38633 "You can use any C<key> you want, but your key should I<not> start with an "
38634 "underscore character. Keys beginning with an underscore character are "
38635 "reserved for internal libguestfs purposes (eg. for implementing language "
38636 "bindings). It is recommended that you prefix the key with some unique "
38637 "string to avoid collisions with other users."
38641 #: ../src/guestfs.pod:2058
38642 msgid "To retrieve the pointer, use:"
38646 #: ../src/guestfs.pod:2060
38649 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38652 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38656 #: ../src/guestfs.pod:2062
38658 "This function returns C<NULL> if either no data is found associated with "
38659 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
38664 #: ../src/guestfs.pod:2066
38666 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
38667 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
38668 "all. In particular, libguestfs does I<not> try to free the data when the "
38669 "handle is closed. If the data must be freed, then the caller must either "
38670 "free it before calling L</guestfs_close> or must set up a close callback to "
38671 "do it (see L</GUESTFS_EVENT_CLOSE>)."
38675 #: ../src/guestfs.pod:2073
38676 msgid "To walk over all entries, use these two functions:"
38680 #: ../src/guestfs.pod:2075
38683 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
38688 #: ../src/guestfs.pod:2077
38691 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
38696 #: ../src/guestfs.pod:2079
38698 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
38699 "not have any particular meaning -- keys are not returned in any defined "
38700 "order). A pointer to the key is returned in C<*key_rtn> and the "
38701 "corresponding data pointer is returned from the function. C<NULL> is "
38702 "returned if there are no keys stored in the handle."
38706 #: ../src/guestfs.pod:2085
38708 "C<guestfs_next_private> returns the next key, pointer pair. The return "
38709 "value of this function is also C<NULL> is there are no further entries to "
38714 #: ../src/guestfs.pod:2089
38715 msgid "Notes about walking over entries:"
38719 #: ../src/guestfs.pod:2095
38721 "You must not call C<guestfs_set_private> while walking over the entries."
38725 #: ../src/guestfs.pod:2100
38727 "The handle maintains an internal iterator which is reset when you call "
38728 "C<guestfs_first_private>. This internal iterator is invalidated when you "
38729 "call C<guestfs_set_private>."
38733 #: ../src/guestfs.pod:2106
38734 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
38738 #: ../src/guestfs.pod:2108
38741 " guestfs_set_private (g, key, NULL);\n"
38746 #: ../src/guestfs.pod:2110
38747 msgid "then that C<key> is not returned when walking."
38751 #: ../src/guestfs.pod:2114
38753 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
38754 "C<guestfs_next_private> or C<guestfs_set_private>."
38758 #: ../src/guestfs.pod:2120
38760 "The following example code shows how to print all keys and data pointers "
38761 "that are associated with the handle C<g>:"
38765 #: ../src/guestfs.pod:2123
38768 " const char *key;\n"
38769 " void *data = guestfs_first_private (g, &key);\n"
38770 " while (data != NULL)\n"
38772 " printf (\"key = %s, data = %p\\n\", key, data);\n"
38773 " data = guestfs_next_private (g, &key);\n"
38779 #: ../src/guestfs.pod:2131
38781 "More commonly you are only interested in keys that begin with an application-"
38782 "specific prefix C<foo_>. Modify the loop like so:"
38786 #: ../src/guestfs.pod:2134
38789 " const char *key;\n"
38790 " void *data = guestfs_first_private (g, &key);\n"
38791 " while (data != NULL)\n"
38793 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38794 " printf (\"key = %s, data = %p\\n\", key, data);\n"
38795 " data = guestfs_next_private (g, &key);\n"
38801 #: ../src/guestfs.pod:2143
38803 "If you need to modify keys while walking, then you have to jump back to the "
38804 "beginning of the loop. For example, to delete all keys prefixed with "
38809 #: ../src/guestfs.pod:2147
38812 " const char *key;\n"
38815 " data = guestfs_first_private (g, &key);\n"
38816 " while (data != NULL)\n"
38818 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38820 " guestfs_set_private (g, key, NULL);\n"
38821 " /* note that 'key' pointer is now invalid, and so is\n"
38822 " the internal iterator */\n"
38825 " data = guestfs_next_private (g, &key);\n"
38831 #: ../src/guestfs.pod:2163
38833 "Note that the above loop is guaranteed to terminate because the keys are "
38834 "being deleted, but other manipulations of keys within the loop might not "
38835 "terminate unless you also maintain an indication of which keys have been "
38840 #: ../src/guestfs.pod:2168
38845 #: ../src/guestfs.pod:2170
38847 "The libguestfs C library can be probed using systemtap or DTrace. This is "
38848 "true of any library, not just libguestfs. However libguestfs also contains "
38849 "static markers to help in probing internal operations."
38853 #: ../src/guestfs.pod:2174
38854 msgid "You can list all the static markers by doing:"
38858 #: ../src/guestfs.pod:2176
38861 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
38862 " .provider(\"guestfs\").mark(\"*\")'\n"
38867 #: ../src/guestfs.pod:2179
38869 "B<Note:> These static markers are I<not> part of the stable API and may "
38870 "change in future versions."
38874 #: ../src/guestfs.pod:2182
38875 msgid "SYSTEMTAP SCRIPT EXAMPLE"
38879 #: ../src/guestfs.pod:2184
38881 "This script contains examples of displaying both the static markers and some "
38882 "ordinary C entry points:"
38886 #: ../src/guestfs.pod:2187
38894 #: ../src/guestfs.pod:2189
38897 " function display_time () {\n"
38898 " now = gettimeofday_us ();\n"
38901 " delta = now - last;\n"
38907 #: ../src/guestfs.pod:2196
38910 " printf (\"%d (+%d):\", now, delta);\n"
38916 #: ../src/guestfs.pod:2199
38921 " printf (\"ready\\n\");\n"
38927 #: ../src/guestfs.pod:2204
38930 " /* Display all calls to static markers. */\n"
38931 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38932 " .provider(\"guestfs\").mark(\"*\") ? {\n"
38933 " display_time();\n"
38934 " printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
38940 #: ../src/guestfs.pod:2211
38943 " /* Display all calls to guestfs_mkfs* functions. */\n"
38944 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38945 " .function(\"guestfs_mkfs*\") ? {\n"
38946 " display_time();\n"
38947 " printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
38953 #: ../src/guestfs.pod:2218
38955 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
38956 "program. Note that you either have to be root, or you have to add yourself "
38957 "to several special stap groups. Consult the systemtap documentation for "
38958 "more information."
38962 #: ../src/guestfs.pod:2223
38965 " # stap /tmp/test.stap\n"
38971 #: ../src/guestfs.pod:2226
38972 msgid "In another terminal, run a guestfish command such as this:"
38976 #: ../src/guestfs.pod:2230
38977 msgid "In the first terminal, stap trace output similar to this is shown:"
38981 #: ../src/guestfs.pod:2232
38984 " 1318248056692655 (+0):\tlaunch_start\n"
38985 " 1318248056692850 (+195): launch_build_appliance_start\n"
38986 " 1318248056818285 (+125435): launch_build_appliance_end\n"
38987 " 1318248056838059 (+19774): launch_run_qemu\n"
38988 " 1318248061071167 (+4233108): launch_end\n"
38989 " 1318248061280324 (+209157): guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
38994 #: ../src/guestfs.pod:2239 ../src/guestfs.pod:2244
38999 #: ../src/guestfs.pod:2241
39001 "<!-- old anchor for the next section --> <a name="
39002 "\"state_machine_and_low_level_event_api\"/>"
39004 "<!-- old anchor for the next section --> <a name="
39005 "\"state_machine_and_low_level_event_api\"/>"
39008 #: ../src/guestfs.pod:2246
39009 msgid "ARCHITECTURE"
39010 msgstr "АРХІТЕКТУРА"
39013 #: ../src/guestfs.pod:2248
39015 "Internally, libguestfs is implemented by running an appliance (a special "
39016 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
39017 "process of the main program."
39021 #: ../src/guestfs.pod:2252
39024 " ___________________\n"
39026 " | main program |\n"
39028 " | | child process / appliance\n"
39029 " | | __________________________\n"
39031 " +-------------------+ RPC | +-----------------+ |\n"
39032 " | libguestfs <--------------------> guestfsd | |\n"
39033 " | | | +-----------------+ |\n"
39034 " \\___________________/ | | Linux kernel | |\n"
39035 " | +--^--------------+ |\n"
39036 " \\_________|________________/\n"
39038 " _______v______\n"
39041 " | disk image |\n"
39042 " \\______________/\n"
39047 #: ../src/guestfs.pod:2272
39049 "The library, linked to the main program, creates the child process and hence "
39050 "the appliance in the L</guestfs_launch> function."
39054 #: ../src/guestfs.pod:2275
39056 "Inside the appliance is a Linux kernel and a complete stack of userspace "
39057 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
39058 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
39059 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
39060 "API calls and RPC calls to the daemon. Lastly the disk image(s) are "
39061 "attached to the qemu process which translates device access by the "
39062 "appliance's Linux kernel into accesses to the image."
39066 #: ../src/guestfs.pod:2284
39068 "A common misunderstanding is that the appliance \"is\" the virtual machine. "
39069 "Although the disk image you are attached to might also be used by some "
39070 "virtual machine, libguestfs doesn't know or care about this. (But you will "
39071 "care if both libguestfs's qemu process and your virtual machine are trying "
39072 "to update the disk image at the same time, since these usually results in "
39073 "massive disk corruption)."
39077 #: ../src/guestfs.pod:2291
39078 msgid "STATE MACHINE"
39079 msgstr "СКІНЧЕННИЙ АВТОМАТ"
39082 #: ../src/guestfs.pod:2293
39083 msgid "libguestfs uses a state machine to model the child process:"
39087 #: ../src/guestfs.pod:2295
39091 " guestfs_create\n"
39099 " / | \\ \\ guestfs_launch\n"
39100 " / | _\\__V______\n"
39102 " / | | LAUNCHING |\n"
39103 " / | \\___________/\n"
39105 " / | guestfs_launch\n"
39107 " ______ / __|____V\n"
39108 " / \\ ------> / \\\n"
39109 " | BUSY | | READY |\n"
39110 " \\______/ <------ \\________/\n"
39115 #: ../src/guestfs.pod:2317
39117 "The normal transitions are (1) CONFIG (when the handle is created, but there "
39118 "is no child process), (2) LAUNCHING (when the child process is booting up), "
39119 "(3) alternating between READY and BUSY as commands are issued to, and "
39120 "carried out by, the child process."
39124 #: ../src/guestfs.pod:2322
39126 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
39127 "asynchronously at any time (eg. due to some internal error), and that causes "
39128 "the state to transition back to CONFIG."
39132 #: ../src/guestfs.pod:2326
39134 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
39135 "issued when in the CONFIG state."
39139 #: ../src/guestfs.pod:2329
39141 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
39142 "L</guestfs_launch> blocks until the child process is READY to accept "
39143 "commands (or until some failure or timeout). L</guestfs_launch> internally "
39144 "moves the state from CONFIG to LAUNCHING while it is running."
39148 #: ../src/guestfs.pod:2335
39150 "API actions such as L</guestfs_mount> can only be issued when in the READY "
39151 "state. These API calls block waiting for the command to be carried out (ie. "
39152 "the state to transition to BUSY and then back to READY). There are no non-"
39153 "blocking versions, and no way to issue more than one command per handle at "
39158 #: ../src/guestfs.pod:2341
39160 "Finally, the child process sends asynchronous messages back to the main "
39161 "program, such as kernel log messages. You can register a callback to "
39162 "receive these messages."
39166 #: ../src/guestfs.pod:2345
39171 #: ../src/guestfs.pod:2347
39172 msgid "APPLIANCE BOOT PROCESS"
39176 #: ../src/guestfs.pod:2349
39178 "This process has evolved and continues to evolve. The description here "
39179 "corresponds only to the current version of libguestfs and is provided for "
39180 "information only."
39184 #: ../src/guestfs.pod:2353
39186 "In order to follow the stages involved below, enable libguestfs debugging "
39187 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
39191 #: ../src/guestfs.pod:2358
39192 msgid "Create the appliance"
39196 #: ../src/guestfs.pod:2360
39198 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
39199 "initrd and the appliance."
39203 #: ../src/guestfs.pod:2363
39205 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
39206 "directory if C<TMPDIR> is set)."
39210 #: ../src/guestfs.pod:2366
39212 "For a complete description of how the appliance is created and cached, read "
39213 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
39217 #: ../src/guestfs.pod:2370
39218 msgid "Start qemu and boot the kernel"
39222 #: ../src/guestfs.pod:2372
39223 msgid "qemu is invoked to boot the kernel."
39227 #: ../src/guestfs.pod:2374
39228 msgid "Run the initrd"
39232 #: ../src/guestfs.pod:2376
39234 "C<febootstrap-supermin-helper> builds a small initrd. The initrd is not the "
39235 "appliance. The purpose of the initrd is to load enough kernel modules in "
39236 "order that the appliance itself can be mounted and started."
39240 #: ../src/guestfs.pod:2380
39242 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
39247 #: ../src/guestfs.pod:2383
39249 "When the initrd has started you will see messages showing that kernel "
39250 "modules are being loaded, similar to this:"
39254 #: ../src/guestfs.pod:2386
39257 " febootstrap: ext2 mini initrd starting up\n"
39258 " febootstrap: mounting /sys\n"
39259 " febootstrap: internal insmod libcrc32c.ko\n"
39260 " febootstrap: internal insmod crc32c-intel.ko\n"
39265 #: ../src/guestfs.pod:2391
39266 msgid "Find and mount the appliance device"
39270 #: ../src/guestfs.pod:2393
39272 "The appliance is a sparse file containing an ext2 filesystem which contains "
39273 "a familiar (although reduced in size) Linux operating system. It would "
39274 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
39278 #: ../src/guestfs.pod:2397
39280 "The regular disks being inspected by libguestfs are the first devices "
39281 "exposed by qemu (eg. as C</dev/vda>)."
39285 #: ../src/guestfs.pod:2400
39287 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
39288 "there was only one regular disk)."
39292 #: ../src/guestfs.pod:2403
39294 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
39295 "and switch root into the appliance, and run C</init> from the appliance."
39299 #: ../src/guestfs.pod:2407
39300 msgid "If this works successfully you will see messages such as:"
39304 #: ../src/guestfs.pod:2409
39307 " febootstrap: picked /sys/block/vdb/dev as root device\n"
39308 " febootstrap: creating /dev/root as block special 252:16\n"
39309 " febootstrap: mounting new root on /root\n"
39310 " febootstrap: chroot\n"
39311 " Starting /init script ...\n"
39316 #: ../src/guestfs.pod:2415
39318 "Note that C<Starting /init script ...> indicates that the appliance's init "
39319 "script is now running."
39323 #: ../src/guestfs.pod:2418
39324 msgid "Initialize the appliance"
39328 #: ../src/guestfs.pod:2420
39330 "The appliance itself now initializes itself. This involves starting certain "
39331 "processes like C<udev>, possibly printing some debug information, and "
39332 "finally running the daemon (C<guestfsd>)."
39336 #: ../src/guestfs.pod:2424
39341 #: ../src/guestfs.pod:2426
39343 "Finally the daemon (C<guestfsd>) runs inside the appliance. If it runs you "
39348 #: ../src/guestfs.pod:2429
39351 " verbose daemon enabled\n"
39356 #: ../src/guestfs.pod:2431
39358 "The daemon expects to see a named virtio-serial port exposed by qemu and "
39359 "connected on the other end to the library."
39363 #: ../src/guestfs.pod:2434
39365 "The daemon connects to this port (and hence to the library) and sends a four "
39366 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
39367 "protocol (see below)."
39371 #: ../src/guestfs.pod:2440
39372 msgid "COMMUNICATION PROTOCOL"
39376 #: ../src/guestfs.pod:2442
39378 "Don't rely on using this protocol directly. This section documents how it "
39379 "currently works, but it may change at any time."
39383 #: ../src/guestfs.pod:2445
39385 "The protocol used to talk between the library and the daemon running inside "
39386 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
39387 "1014, RFC 1832, RFC 4506)."
39391 #: ../src/guestfs.pod:2449
39393 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
39394 "this file is automatically generated)."
39398 #: ../src/guestfs.pod:2452
39400 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
39401 "and C<FileOut> parameters, which are handled with very simple request/reply "
39402 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
39403 "parameters, which use the same request and reply messages, but they may also "
39404 "be followed by files sent using a chunked encoding."
39408 #: ../src/guestfs.pod:2459
39409 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
39413 #: ../src/guestfs.pod:2461
39414 msgid "For ordinary functions, the request message is:"
39418 #: ../src/guestfs.pod:2463
39421 " total length (header + arguments,\n"
39422 " but not including the length word itself)\n"
39423 " struct guestfs_message_header (encoded as XDR)\n"
39424 " struct guestfs_<foo>_args (encoded as XDR)\n"
39429 #: ../src/guestfs.pod:2468
39431 "The total length field allows the daemon to allocate a fixed size buffer "
39432 "into which it slurps the rest of the message. As a result, the total length "
39433 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
39434 "effective size of any request is limited to somewhere under this size."
39438 #: ../src/guestfs.pod:2474
39440 "Note also that many functions don't take any arguments, in which case the "
39441 "C<guestfs_I<foo>_args> is completely omitted."
39445 #: ../src/guestfs.pod:2477
39447 "The header contains the procedure number (C<guestfs_proc>) which is how the "
39448 "receiver knows what type of args structure to expect, or none at all."
39452 #: ../src/guestfs.pod:2481
39454 "For functions that take optional arguments, the optional arguments are "
39455 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
39456 "arguments. A bitmask in the header indicates which optional arguments are "
39457 "meaningful. The bitmask is also checked to see if it contains bits set "
39458 "which the daemon does not know about (eg. if more optional arguments were "
39459 "added in a later version of the library), and this causes the call to be "
39464 #: ../src/guestfs.pod:2489
39465 msgid "The reply message for ordinary functions is:"
39469 #: ../src/guestfs.pod:2491
39472 " total length (header + ret,\n"
39473 " but not including the length word itself)\n"
39474 " struct guestfs_message_header (encoded as XDR)\n"
39475 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39480 #: ../src/guestfs.pod:2496
39482 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
39483 "functions that return no formal return values."
39487 #: ../src/guestfs.pod:2499
39489 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
39493 #: ../src/guestfs.pod:2502
39495 "In the case of an error, a flag is set in the header, and the reply message "
39496 "is slightly changed:"
39500 #: ../src/guestfs.pod:2505
39503 " total length (header + error,\n"
39504 " but not including the length word itself)\n"
39505 " struct guestfs_message_header (encoded as XDR)\n"
39506 " struct guestfs_message_error (encoded as XDR)\n"
39511 #: ../src/guestfs.pod:2510
39513 "The C<guestfs_message_error> structure contains the error message as a "
39518 #: ../src/guestfs.pod:2513
39519 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
39523 #: ../src/guestfs.pod:2515
39525 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
39526 "The normal request message is sent (see above). However this is followed by "
39527 "a sequence of file chunks."
39531 #: ../src/guestfs.pod:2519
39534 " total length (header + arguments,\n"
39535 " but not including the length word itself,\n"
39536 " and not including the chunks)\n"
39537 " struct guestfs_message_header (encoded as XDR)\n"
39538 " struct guestfs_<foo>_args (encoded as XDR)\n"
39539 " sequence of chunks for FileIn param #0\n"
39540 " sequence of chunks for FileIn param #1 etc.\n"
39545 #: ../src/guestfs.pod:2527
39546 msgid "The \"sequence of chunks\" is:"
39550 #: ../src/guestfs.pod:2529
39553 " length of chunk (not including length word itself)\n"
39554 " struct guestfs_chunk (encoded as XDR)\n"
39555 " length of chunk\n"
39556 " struct guestfs_chunk (encoded as XDR)\n"
39558 " length of chunk\n"
39559 " struct guestfs_chunk (with data.data_len == 0)\n"
39564 #: ../src/guestfs.pod:2537
39566 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
39567 "is set in the final chunk to indicate either successful completion or early "
39572 #: ../src/guestfs.pod:2541
39574 "At time of writing there are no functions that have more than one FileIn "
39575 "parameter. However this is (theoretically) supported, by sending the "
39576 "sequence of chunks for each FileIn parameter one after another (from left to "
39581 #: ../src/guestfs.pod:2546
39583 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
39584 "transfer. The library does this by sending a chunk with a special flag set "
39585 "to indicate cancellation. When the daemon sees this, it cancels the whole "
39586 "RPC, does I<not> send any reply, and goes back to reading the next request."
39590 #: ../src/guestfs.pod:2552
39592 "The daemon may also cancel. It does this by writing a special word "
39593 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
39594 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
39595 "cancel chunk). The special word is chosen so that even if cancellation "
39596 "happens right at the end of the transfer (after the library has finished "
39597 "writing and has started listening for the reply), the \"spurious\" cancel "
39598 "flag will not be confused with the reply message."
39602 #: ../src/guestfs.pod:2561
39604 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
39605 "limit), and also files where the size is not known in advance (eg. from "
39606 "pipes or sockets). However the chunks are rather small "
39607 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
39608 "to keep much in memory."
39612 #: ../src/guestfs.pod:2567
39613 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
39617 #: ../src/guestfs.pod:2569
39619 "The protocol for FileOut parameters is exactly the same as for FileIn "
39620 "parameters, but with the roles of daemon and library reversed."
39624 #: ../src/guestfs.pod:2572
39627 " total length (header + ret,\n"
39628 " but not including the length word itself,\n"
39629 " and not including the chunks)\n"
39630 " struct guestfs_message_header (encoded as XDR)\n"
39631 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39632 " sequence of chunks for FileOut param #0\n"
39633 " sequence of chunks for FileOut param #1 etc.\n"
39638 #: ../src/guestfs.pod:2580
39639 msgid "INITIAL MESSAGE"
39643 #: ../src/guestfs.pod:2582
39645 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
39646 "which indicates that the guest and daemon is alive. This is what L</"
39647 "guestfs_launch> waits for."
39651 #: ../src/guestfs.pod:2586
39652 msgid "PROGRESS NOTIFICATION MESSAGES"
39656 #: ../src/guestfs.pod:2588
39658 "The daemon may send progress notification messages at any time. These are "
39659 "distinguished by the normal length word being replaced by "
39660 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
39664 #: ../src/guestfs.pod:2592
39666 "The library turns them into progress callbacks (see L</"
39667 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
39672 #: ../src/guestfs.pod:2596
39674 "The daemon self-limits the frequency of progress messages it sends (see "
39675 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
39680 #: ../src/guestfs.pod:2600
39681 msgid "LIBGUESTFS VERSION NUMBERS"
39685 #: ../src/guestfs.pod:2602
39687 "Since April 2010, libguestfs has started to make separate development and "
39688 "stable releases, along with corresponding branches in our git repository. "
39689 "These separate releases can be identified by version number:"
39693 #: ../src/guestfs.pod:2607
39696 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
39697 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
39703 " | `-------- sub-version\n"
39705 " `------ always '1' because we don't change the ABI\n"
39710 #: ../src/guestfs.pod:2618
39711 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
39715 #: ../src/guestfs.pod:2620
39717 "As time passes we cherry pick fixes from the development branch and backport "
39718 "those into the stable branch, the effect being that the stable branch should "
39719 "get more stable and less buggy over time. So the stable releases are ideal "
39720 "for people who don't need new features but would just like the software to "
39725 #: ../src/guestfs.pod:2626
39726 msgid "Our criteria for backporting changes are:"
39730 #: ../src/guestfs.pod:2632
39732 "Documentation changes which don't affect any code are backported unless the "
39733 "documentation refers to a future feature which is not in stable."
39737 #: ../src/guestfs.pod:2638
39739 "Bug fixes which are not controversial, fix obvious problems, and have been "
39740 "well tested are backported."
39744 #: ../src/guestfs.pod:2643
39746 "Simple rearrangements of code which shouldn't affect how it works get "
39747 "backported. This is so that the code in the two branches doesn't get too "
39748 "far out of step, allowing us to backport future fixes more easily."
39752 #: ../src/guestfs.pod:2649
39754 "We I<don't> backport new features, new APIs, new tools etc, except in one "
39755 "exceptional case: the new feature is required in order to implement an "
39756 "important bug fix."
39760 #: ../src/guestfs.pod:2655
39762 "A new stable branch starts when we think the new features in development are "
39763 "substantial and compelling enough over the current stable branch to warrant "
39764 "it. When that happens we create new stable and development versions 1.N.0 "
39765 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
39766 "stable at this point, but by backporting fixes from development, that branch "
39767 "will stabilize over time."
39771 #: ../src/guestfs.pod:2663
39772 msgid "EXTENDING LIBGUESTFS"
39776 #: ../src/guestfs.pod:2665
39777 msgid "ADDING A NEW API ACTION"
39781 #: ../src/guestfs.pod:2667
39783 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
39784 "documentation) are generated, and this makes it easy to extend the "
39789 #: ../src/guestfs.pod:2671
39790 msgid "To add a new API action there are two changes:"
39794 #: ../src/guestfs.pod:2677
39796 "You need to add a description of the call (name, parameters, return type, "
39797 "tests, documentation) to C<generator/generator_actions.ml>."
39801 #: ../src/guestfs.pod:2680
39803 "There are two sorts of API action, depending on whether the call goes "
39804 "through to the daemon in the appliance, or is serviced entirely by the "
39805 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
39806 "former, since the sync is done in the appliance. L</guestfs_set_trace> is "
39807 "an example of the latter, since a trace flag is maintained in the handle and "
39808 "all tracing is done on the library side."
39812 #: ../src/guestfs.pod:2688
39814 "Most new actions are of the first type, and get added to the "
39815 "C<daemon_functions> list. Each function has a unique procedure number used "
39816 "in the RPC protocol which is assigned to that action when we publish "
39817 "libguestfs and cannot be reused. Take the latest procedure number and "
39822 #: ../src/guestfs.pod:2694
39824 "For library-only actions of the second type, add to the "
39825 "C<non_daemon_functions> list. Since these functions are serviced by the "
39826 "library and do not travel over the RPC mechanism to the daemon, these "
39827 "functions do not need a procedure number, and so the procedure number is set "
39832 #: ../src/guestfs.pod:2702
39833 msgid "Implement the action (in C):"
39837 #: ../src/guestfs.pod:2704
39839 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
39840 "C<daemon/> directory."
39844 #: ../src/guestfs.pod:2707
39846 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
39847 "(note: double underscore) in the C<src/> directory."
39851 #: ../src/guestfs.pod:2710
39852 msgid "In either case, use another function as an example of what to do."
39856 #: ../src/guestfs.pod:2714
39857 msgid "After making these changes, use C<make> to compile."
39861 #: ../src/guestfs.pod:2716
39863 "Note that you don't need to implement the RPC, language bindings, manual "
39864 "pages or anything else. It's all automatically generated from the OCaml "
39869 #: ../src/guestfs.pod:2720
39870 msgid "ADDING TESTS FOR AN API ACTION"
39874 #: ../src/guestfs.pod:2722
39876 "You can supply zero or as many tests as you want per API call. The tests "
39877 "can either be added as part of the API description (C<generator/"
39878 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
39879 "into C<regressions/>. Note that adding a script to C<regressions/> is "
39880 "slower, so if possible use the first method."
39884 #: ../src/guestfs.pod:2728
39886 "The following describes the test environment used when you add an API test "
39887 "in C<generator_actions.ml>."
39891 #: ../src/guestfs.pod:2731
39892 msgid "The test environment has 4 block devices:"
39896 #: ../src/guestfs.pod:2735
39897 msgid "C</dev/sda> 500MB"
39898 msgstr "C</dev/sda> 500 МБ"
39901 #: ../src/guestfs.pod:2737
39902 msgid "General block device for testing."
39906 #: ../src/guestfs.pod:2739
39907 msgid "C</dev/sdb> 50MB"
39908 msgstr "C</dev/sdb> 50 МБ"
39911 #: ../src/guestfs.pod:2741
39913 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
39918 #: ../src/guestfs.pod:2744
39919 msgid "C</dev/sdc> 10MB"
39920 msgstr "C</dev/sdc> 10 МБ"
39923 #: ../src/guestfs.pod:2746
39924 msgid "Used in a few tests where two block devices are needed."
39928 #: ../src/guestfs.pod:2748
39929 msgid "C</dev/sdd>"
39930 msgstr "C</dev/sdd>"
39933 #: ../src/guestfs.pod:2750
39934 msgid "ISO with fixed content (see C<images/test.iso>)."
39938 #: ../src/guestfs.pod:2754
39940 "To be able to run the tests in a reasonable amount of time, the libguestfs "
39941 "appliance and block devices are reused between tests. So don't try testing "
39942 "L</guestfs_kill_subprocess> :-x"
39946 #: ../src/guestfs.pod:2758
39948 "Each test starts with an initial scenario, selected using one of the "
39949 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
39950 "initialize the disks mentioned above in a particular way as documented in "
39951 "C<generator_types.ml>. You should not assume anything about the previous "
39952 "contents of other disks that are not initialized."
39956 #: ../src/guestfs.pod:2764
39958 "You can add a prerequisite clause to any individual test. This is a run-"
39959 "time check, which, if it fails, causes the test to be skipped. Useful if "
39960 "testing a command which might not work on all variations of libguestfs "
39961 "builds. A test that has prerequisite of C<Always> means to run "
39966 #: ../src/guestfs.pod:2770
39968 "In addition, packagers can skip individual tests by setting environment "
39969 "variables before running C<make check>."
39973 #: ../src/guestfs.pod:2773
39976 " SKIP_TEST_<CMD>_<NUM>=1\n"
39981 #: ../src/guestfs.pod:2775
39982 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
39986 #: ../src/guestfs.pod:2777
39991 #: ../src/guestfs.pod:2779
39994 " SKIP_TEST_<CMD>=1\n"
39999 #: ../src/guestfs.pod:2781
40000 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
40004 #: ../src/guestfs.pod:2783
40005 msgid "Packagers can run only certain tests by setting for example:"
40009 #: ../src/guestfs.pod:2785
40012 " TEST_ONLY=\"vfs_type zerofree\"\n"
40017 #: ../src/guestfs.pod:2787
40019 "See C<capitests/tests.c> for more details of how these environment variables "
40024 #: ../src/guestfs.pod:2790
40025 msgid "DEBUGGING NEW API ACTIONS"
40029 #: ../src/guestfs.pod:2792
40030 msgid "Test new actions work before submitting them."
40034 #: ../src/guestfs.pod:2794
40035 msgid "You can use guestfish to try out new commands."
40039 #: ../src/guestfs.pod:2796
40041 "Debugging the daemon is a problem because it runs inside a minimal "
40042 "environment. However you can fprintf messages in the daemon to stderr, and "
40043 "they will show up if you use C<guestfish -v>."
40047 #: ../src/guestfs.pod:2800
40048 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
40052 #: ../src/guestfs.pod:2802
40054 "Our C source code generally adheres to some basic code-formatting "
40055 "conventions. The existing code base is not totally consistent on this "
40056 "front, but we do prefer that contributed code be formatted similarly. In "
40057 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
40058 "indentation level, and other than that, follow the K&R style."
40062 #: ../src/guestfs.pod:2808
40064 "If you use Emacs, add the following to one of one of your start-up files (e."
40065 "g., ~/.emacs), to help ensure that you get indentation right:"
40069 #: ../src/guestfs.pod:2811
40072 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
40073 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
40074 " (add-hook 'find-file-hook\n"
40075 " '(lambda () (if (and buffer-file-name\n"
40076 " (string-match \"/libguestfs\\\\>\"\n"
40077 " (buffer-file-name))\n"
40078 " (not (string-equal mode-name \"Change Log\"))\n"
40079 " (not (string-equal mode-name \"Makefile\")))\n"
40080 " (setq indent-tabs-mode nil))))\n"
40085 #: ../src/guestfs.pod:2821
40088 " ;;; When editing C sources in libguestfs, use this style.\n"
40089 " (defun libguestfs-c-mode ()\n"
40090 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
40092 " (c-set-style \"K&R\")\n"
40093 " (setq c-indent-level 2)\n"
40094 " (setq c-basic-offset 2))\n"
40095 " (add-hook 'c-mode-hook\n"
40096 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
40097 " (buffer-file-name))\n"
40098 " (libguestfs-c-mode))))\n"
40103 #: ../src/guestfs.pod:2833
40104 msgid "Enable warnings when compiling (and fix any problems this finds):"
40108 #: ../src/guestfs.pod:2836
40111 " ./configure --enable-gcc-warnings\n"
40114 " ./configure --enable-gcc-warnings\n"
40118 #: ../src/guestfs.pod:2838
40119 msgid "Useful targets are:"
40123 #: ../src/guestfs.pod:2840
40126 " make syntax-check # checks the syntax of the C code\n"
40127 " make check # runs the test suite\n"
40132 #: ../src/guestfs.pod:2843
40133 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
40137 #: ../src/guestfs.pod:2845
40139 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
40140 "which are used to do shell quoting."
40144 #: ../src/guestfs.pod:2850
40149 #: ../src/guestfs.pod:2852
40151 "Simple shell quoted string. Any spaces or other shell characters are "
40156 #: ../src/guestfs.pod:2855
40161 #: ../src/guestfs.pod:2857
40163 "Same as C<%Q> except the string is treated as a path which is prefixed by "
40168 #: ../src/guestfs.pod:2864
40171 " asprintf (&cmd, \"cat %R\", path);\n"
40174 " asprintf (&cmd, \"cat %R\", path);\n"
40178 #: ../src/guestfs.pod:2866
40179 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
40183 #: ../src/guestfs.pod:2868
40185 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
40186 "{,r,v,rv}()> functions. These parameters do NOT need to be quoted because "
40187 "they are not passed via the shell (instead, straight to exec). You probably "
40188 "want to use the C<sysroot_path()> function however."
40192 #: ../src/guestfs.pod:2874
40193 msgid "SUBMITTING YOUR NEW API ACTIONS"
40197 #: ../src/guestfs.pod:2876
40199 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
40200 "libguestfs> and CC to L<rjones@redhat.com>."
40204 #: ../src/guestfs.pod:2880
40205 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
40209 #: ../src/guestfs.pod:2882
40210 msgid "We support i18n (gettext anyhow) in the library."
40214 #: ../src/guestfs.pod:2884
40216 "However many messages come from the daemon, and we don't translate those at "
40217 "the moment. One reason is that the appliance generally has all locale files "
40218 "removed from it, because they take up a lot of space. So we'd have to readd "
40219 "some of those, as well as copying our PO files into the appliance."
40223 #: ../src/guestfs.pod:2890
40225 "Debugging messages are never translated, since they are intended for the "
40230 #: ../src/guestfs.pod:2893
40231 msgid "SOURCE CODE SUBDIRECTORIES"
40235 #: ../src/guestfs.pod:2897
40240 #: ../src/guestfs.pod:2899
40241 msgid "L<virt-alignment-scan(1)> command and documentation."
40245 #: ../src/guestfs.pod:2903
40246 msgid "The libguestfs appliance, build scripts and so on."
40250 #: ../src/guestfs.pod:2905
40251 msgid "C<capitests>"
40252 msgstr "C<capitests>"
40255 #: ../src/guestfs.pod:2907
40256 msgid "Automated tests of the C API."
40260 #: ../src/guestfs.pod:2909
40265 #: ../src/guestfs.pod:2911
40267 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
40272 #: ../src/guestfs.pod:2914
40274 msgstr "C<caution>"
40277 #: ../src/guestfs.pod:2916
40279 "Safety and liveness tests of components that libguestfs depends upon (not of "
40280 "libguestfs itself). Mainly this is for qemu and the kernel."
40284 #: ../src/guestfs.pod:2919
40289 #: ../src/guestfs.pod:2921
40291 "Tools for cloning virtual machines. Currently contains L<virt-sysprep(1)> "
40292 "command and documentation."
40296 #: ../src/guestfs.pod:2924
40298 msgstr "C<contrib>"
40301 #: ../src/guestfs.pod:2926
40302 msgid "Outside contributions, experimental parts."
40306 #: ../src/guestfs.pod:2928
40311 #: ../src/guestfs.pod:2930
40313 "The daemon that runs inside the libguestfs appliance and carries out actions."
40317 #: ../src/guestfs.pod:2933
40322 #: ../src/guestfs.pod:2935
40323 msgid "L<virt-df(1)> command and documentation."
40327 #: ../src/guestfs.pod:2937
40332 #: ../src/guestfs.pod:2939
40333 msgid "L<virt-edit(1)> command and documentation."
40337 #: ../src/guestfs.pod:2941
40338 msgid "C<examples>"
40339 msgstr "C<examples>"
40342 #: ../src/guestfs.pod:2943
40343 msgid "C API example code."
40344 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
40347 #: ../src/guestfs.pod:2945
40352 #: ../src/guestfs.pod:2947
40354 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
40355 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
40356 "L<virt-tar-out(1)>."
40360 #: ../src/guestfs.pod:2951
40365 #: ../src/guestfs.pod:2953
40367 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
40371 #: ../src/guestfs.pod:2955
40372 msgid "C<generator>"
40373 msgstr "C<generator>"
40376 #: ../src/guestfs.pod:2957
40378 "The crucially important generator, used to automatically generate large "
40379 "amounts of boilerplate C code for things like RPC and bindings."
40383 #: ../src/guestfs.pod:2960
40388 #: ../src/guestfs.pod:2962
40389 msgid "Files used by the test suite."
40393 #: ../src/guestfs.pod:2964
40394 msgid "Some \"phony\" guest images which we test against."
40398 #: ../src/guestfs.pod:2966
40399 msgid "C<inspector>"
40400 msgstr "C<inspector>"
40403 #: ../src/guestfs.pod:2968
40404 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
40408 #: ../src/guestfs.pod:2970
40413 #: ../src/guestfs.pod:2972
40414 msgid "Logo used on the website. The fish is called Arthur by the way."
40418 #: ../src/guestfs.pod:2974
40423 #: ../src/guestfs.pod:2976
40424 msgid "M4 macros used by autoconf."
40428 #: ../src/guestfs.pod:2978
40433 #: ../src/guestfs.pod:2980
40434 msgid "Translations of simple gettext strings."
40435 msgstr "Переклади простих рядків gettext."
40438 #: ../src/guestfs.pod:2982
40440 msgstr "C<po-docs>"
40443 #: ../src/guestfs.pod:2984
40445 "The build infrastructure and PO files for translations of manpages and POD "
40446 "files. Eventually this will be combined with the C<po> directory, but that "
40447 "is rather complicated."
40451 #: ../src/guestfs.pod:2988
40452 msgid "C<regressions>"
40453 msgstr "C<regressions>"
40456 #: ../src/guestfs.pod:2990
40457 msgid "Regression tests."
40458 msgstr "Тести на регресії."
40461 #: ../src/guestfs.pod:2992
40466 #: ../src/guestfs.pod:2994
40467 msgid "L<virt-rescue(1)> command and documentation."
40471 #: ../src/guestfs.pod:2996
40476 #: ../src/guestfs.pod:2998
40477 msgid "L<virt-resize(1)> command and documentation."
40481 #: ../src/guestfs.pod:3000
40482 msgid "C<sparsify>"
40486 #: ../src/guestfs.pod:3002
40487 msgid "L<virt-sparsify(1)> command and documentation."
40491 #: ../src/guestfs.pod:3004
40496 #: ../src/guestfs.pod:3006
40497 msgid "Source code to the C library."
40501 #: ../src/guestfs.pod:3008
40506 #: ../src/guestfs.pod:3010
40508 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
40512 #: ../src/guestfs.pod:3012
40513 msgid "C<test-tool>"
40514 msgstr "C<test-tool>"
40517 #: ../src/guestfs.pod:3014
40519 "Test tool for end users to test if their qemu/kernel combination will work "
40524 #: ../src/guestfs.pod:3017
40529 #: ../src/guestfs.pod:3019
40534 #: ../src/guestfs.pod:3021
40536 msgstr "C<haskell>"
40539 #: ../src/guestfs.pod:3023
40544 #: ../src/guestfs.pod:3025
40549 #: ../src/guestfs.pod:3027
40554 #: ../src/guestfs.pod:3029
40559 #: ../src/guestfs.pod:3031
40564 #: ../src/guestfs.pod:3033
40569 #: ../src/guestfs.pod:3035
40570 msgid "Language bindings."
40571 msgstr "Прив’язки до мов програмування."
40574 #: ../src/guestfs.pod:3039
40575 msgid "MAKING A STABLE RELEASE"
40579 #: ../src/guestfs.pod:3041
40581 "When we make a stable release, there are several steps documented here. See "
40582 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
40587 #: ../src/guestfs.pod:3049
40589 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
40593 #: ../src/guestfs.pod:3054
40594 msgid "Finalize RELEASE-NOTES."
40598 #: ../src/guestfs.pod:3058
40599 msgid "Update ROADMAP."
40603 #: ../src/guestfs.pod:3062
40604 msgid "Run C<src/api-support/update-from-tarballs.sh>."
40608 #: ../src/guestfs.pod:3066
40609 msgid "Push and pull from Transifex."
40613 #: ../src/guestfs.pod:3068
40618 #: ../src/guestfs.pod:3070
40626 #: ../src/guestfs.pod:3072
40627 msgid "to push the latest POT files to Transifex. Then run:"
40631 #: ../src/guestfs.pod:3074
40639 #: ../src/guestfs.pod:3076
40640 msgid "which is a wrapper to pull the latest translated C<*.po> files."
40644 #: ../src/guestfs.pod:3080
40646 "Create new stable and development directories under L<http://libguestfs.org/"
40651 #: ../src/guestfs.pod:3085
40652 msgid "Create the branch in git:"
40656 #: ../src/guestfs.pod:3087
40659 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
40660 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
40661 " git branch stable-1.XX\n"
40662 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
40667 #: ../src/guestfs.pod:3094
40672 #: ../src/guestfs.pod:3096
40673 msgid "PROTOCOL LIMITS"
40674 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
40677 #: ../src/guestfs.pod:3098
40679 "Internally libguestfs uses a message-based protocol to pass API calls and "
40680 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
40681 "plenty more detail about this). The maximum message size used by the "
40682 "protocol is slightly less than 4 MB. For some API calls you may need to be "
40683 "aware of this limit. The API calls which may be affected are individually "
40684 "documented, with a link back to this section of the documentation."
40688 #: ../src/guestfs.pod:3106
40690 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
40691 "a simple string. Because this string is at some point internally encoded as "
40692 "a message, the maximum size that it can return is slightly under 4 MB. If "
40693 "the requested file is larger than this then you will get an error."
40697 #: ../src/guestfs.pod:3112
40699 "In order to transfer large files into and out of the guest filesystem, you "
40700 "need to use particular calls that support this. The sections L</UPLOADING> "
40701 "and L</DOWNLOADING> document how to do this."
40705 #: ../src/guestfs.pod:3116
40707 "You might also consider mounting the disk image using our FUSE filesystem "
40708 "support (L<guestmount(1)>)."
40712 #: ../src/guestfs.pod:3119
40713 msgid "MAXIMUM NUMBER OF DISKS"
40717 #: ../src/guestfs.pod:3121
40718 msgid "When using virtio disks (the default) the current limit is B<25> disks."
40722 #: ../src/guestfs.pod:3124
40724 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
40725 "slots. However febootstrap only understands disks with names C</dev/vda> "
40726 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
40731 #: ../src/guestfs.pod:3129
40733 "We are working to substantially raise this limit in future versions but it "
40734 "requires complex changes to qemu."
40738 #: ../src/guestfs.pod:3132
40740 "In future versions of libguestfs it should also be possible to \"hot plug\" "
40741 "disks (add and remove disks after calling L</guestfs_launch>). This also "
40742 "requires changes to qemu."
40746 #: ../src/guestfs.pod:3136
40747 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
40751 #: ../src/guestfs.pod:3138
40752 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
40756 #: ../src/guestfs.pod:3140
40758 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
40759 "vda>, and C</dev/vda1> through C</dev/vda15>)."
40763 #: ../src/guestfs.pod:3143
40765 "If you attach a disk with more than 15 partitions, the extra partitions are "
40766 "ignored by libguestfs."
40770 #: ../src/guestfs.pod:3146
40771 msgid "MAXIMUM SIZE OF A DISK"
40775 #: ../src/guestfs.pod:3148
40776 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
40780 #: ../src/guestfs.pod:3150
40782 "We have tested block devices up to 1 exabyte (2**60 or "
40783 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
40788 #: ../src/guestfs.pod:3154
40790 "Although libguestfs probably does not impose any limit, the underlying host "
40791 "storage will. If you store disk images on a host ext4 filesystem, then the "
40792 "maximum size will be limited by the maximum ext4 file size (currently 16 "
40793 "TB). If you store disk images as host logical volumes then you are limited "
40794 "by the maximum size of an LV."
40798 #: ../src/guestfs.pod:3160
40800 "For the hugest disk image files, we recommend using XFS on the host for "
40805 #: ../src/guestfs.pod:3163
40806 msgid "MAXIMUM SIZE OF A PARTITION"
40810 #: ../src/guestfs.pod:3165
40812 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
40813 "numbers. Assuming a 512 byte sector size, this means that MBR cannot "
40814 "address a partition located beyond 2 TB on the disk."
40818 #: ../src/guestfs.pod:3169
40820 "It is recommended that you use GPT partitions on disks which are larger than "
40821 "this size. GPT uses 64 bit sector numbers and so can address partitions "
40822 "which are theoretically larger than the largest disk we could support."
40826 #: ../src/guestfs.pod:3174
40827 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
40831 #: ../src/guestfs.pod:3176
40833 "This depends on the filesystem type. libguestfs itself does not impose any "
40834 "known limit. Consult Wikipedia or the filesystem documentation to find out "
40835 "what these limits are."
40839 #: ../src/guestfs.pod:3180
40840 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
40844 #: ../src/guestfs.pod:3182
40846 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
40847 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
40848 "uploads and downloads."
40852 #: ../src/guestfs.pod:3186
40853 msgid "INSPECTION LIMITS"
40857 #: ../src/guestfs.pod:3188
40859 "The inspection code has several arbitrary limits on things like the size of "
40860 "Windows Registry hive it will read, and the length of product name. These "
40861 "are intended to stop a malicious guest from consuming arbitrary amounts of "
40862 "memory and disk space on the host, and should not be reached in practice. "
40863 "See the source code for more information."
40867 #: ../src/guestfs.pod:3214
40869 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
40870 "effect as calling C<guestfs_set_verbose (g, 1)>."
40874 #: ../src/guestfs.pod:3226
40876 "Set the path that libguestfs uses to search for a supermin appliance. See "
40877 "the discussion of paths in section L</PATH> above."
40881 #: ../src/guestfs.pod:3235
40882 msgid "See also L</QEMU WRAPPERS> above."
40886 #: ../src/guestfs.pod:3239
40888 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
40889 "effect as calling C<guestfs_set_trace (g, 1)>."
40893 #: ../src/guestfs.pod:3257
40895 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
40896 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
40897 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
40898 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
40899 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
40900 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
40901 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
40902 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
40903 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
40904 ">, L<http://libguestfs.org/>."
40908 #: ../src/guestfs.pod:3293
40910 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
40911 "(8)>, L<disktype(1)>."
40915 #: ../src/guestfs.pod:3300 ../tools/virt-make-fs.pl:553
40916 #: ../tools/virt-win-reg.pl:761
40921 #: ../src/guestfs.pod:3302
40922 msgid "To get a list of bugs against libguestfs use this link:"
40924 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
40928 #: ../src/guestfs.pod:3304
40930 "L<https://bugzilla.redhat.com/buglist.cgi?"
40931 "component=libguestfs&product=Virtualization+Tools>"
40933 "L<https://bugzilla.redhat.com/buglist.cgi?"
40934 "component=libguestfs&product=Virtualization+Tools>"
40937 #: ../src/guestfs.pod:3306
40938 msgid "To report a new bug against libguestfs use this link:"
40939 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
40942 #: ../src/guestfs.pod:3308
40944 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
40945 "component=libguestfs&product=Virtualization+Tools>"
40947 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
40948 "component=libguestfs&product=Virtualization+Tools>"
40951 #: ../src/guestfs.pod:3310
40952 msgid "When reporting a bug, please check:"
40956 #: ../src/guestfs.pod:3316
40957 msgid "That the bug hasn't been reported already."
40961 #: ../src/guestfs.pod:3320
40962 msgid "That you are testing a recent version."
40966 #: ../src/guestfs.pod:3324
40967 msgid "Describe the bug accurately, and give a way to reproduce it."
40971 #: ../src/guestfs.pod:3328
40973 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
40978 #: ../test-tool/libguestfs-test-tool.pod:5
40979 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
40983 #: ../test-tool/libguestfs-test-tool.pod:9
40986 " libguestfs-test-tool [--options]\n"
40991 #: ../test-tool/libguestfs-test-tool.pod:13
40993 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
40994 "to check basic libguestfs functionality is working. This is needed because "
40995 "libguestfs occasionally breaks for reasons beyond our control: usually "
40996 "because of changes in the underlying qemu or kernel packages, or the host "
41001 #: ../test-tool/libguestfs-test-tool.pod:19
41002 msgid "If you suspect a problem in libguestfs, then just run:"
41006 #: ../test-tool/libguestfs-test-tool.pod:21
41009 " libguestfs-test-tool\n"
41014 #: ../test-tool/libguestfs-test-tool.pod:23
41015 msgid "It will print lots of diagnostic messages."
41019 #: ../test-tool/libguestfs-test-tool.pod:25
41020 msgid "If it runs to completion successfully, you will see this near the end:"
41024 #: ../test-tool/libguestfs-test-tool.pod:27
41027 " ===== TEST FINISHED OK =====\n"
41032 #: ../test-tool/libguestfs-test-tool.pod:29
41033 msgid "and the test tool will exit with code 0."
41037 #: ../test-tool/libguestfs-test-tool.pod:31
41039 "If it fails (and/or exits with non-zero error code), please paste the "
41040 "I<complete, unedited> output of the test tool into a bug report. More "
41041 "information about reporting bugs can be found on the L<http://libguestfs.org/"
41046 #: ../test-tool/libguestfs-test-tool.pod:42
41047 msgid "Display short usage information and exit."
41051 #: ../test-tool/libguestfs-test-tool.pod:44
41052 msgid "B<--qemu qemu_binary>"
41056 #: ../test-tool/libguestfs-test-tool.pod:46
41058 "If you have downloaded another qemu binary, point this option at the full "
41059 "path of the binary to try it."
41063 #: ../test-tool/libguestfs-test-tool.pod:49
41064 msgid "B<--qemudir qemu_source_dir>"
41068 #: ../test-tool/libguestfs-test-tool.pod:51
41070 "If you have compiled qemu from source, point this option at the source "
41071 "directory to try it."
41075 #: ../test-tool/libguestfs-test-tool.pod:54
41080 #: ../test-tool/libguestfs-test-tool.pod:56
41081 msgid "B<--timeout N>"
41085 #: ../test-tool/libguestfs-test-tool.pod:58
41087 "Set the launch timeout to C<N> seconds. The default is 600 seconds (10 "
41088 "minutes) which does not usually need to be adjusted."
41092 #: ../test-tool/libguestfs-test-tool.pod:63
41093 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
41097 #: ../test-tool/libguestfs-test-tool.pod:65
41099 "If you have compiled another version of qemu from source and would like to "
41100 "try that, then you can use the I<--qemudir> option to point to the qemu "
41101 "source directory."
41105 #: ../test-tool/libguestfs-test-tool.pod:69
41107 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
41108 "option to point to the binary."
41112 #: ../test-tool/libguestfs-test-tool.pod:72
41114 "Note when using these options, you can ignore the business of qemu wrapper "
41115 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
41116 "wrapper script for you if one is needed."
41120 #: ../test-tool/libguestfs-test-tool.pod:76
41121 msgid "TRYING OUT A DIFFERENT KERNEL"
41125 #: ../test-tool/libguestfs-test-tool.pod:78
41127 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
41128 "libguestfs tries. You do this by setting the environment variables "
41129 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
41133 #: ../test-tool/libguestfs-test-tool.pod:82
41135 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
41140 #: ../test-tool/libguestfs-test-tool.pod:85
41141 msgid "SELF-DIAGNOSIS"
41145 #: ../test-tool/libguestfs-test-tool.pod:87
41147 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
41148 "produced by libguestfs-test-tool and/or possible errors."
41152 #: ../test-tool/libguestfs-test-tool.pod:92
41154 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
41155 "I<1> if there was an error."
41159 #: ../test-tool/libguestfs-test-tool.pod:97
41161 "For the full list of environment variables which may affect libguestfs, "
41162 "please see the L<guestfs(3)> manual page."
41166 #: ../test-tool/libguestfs-test-tool.pod:102
41167 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
41171 #: ../tools/virt-list-filesystems.pl:32
41173 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
41177 #: ../tools/virt-list-filesystems.pl:36
41180 " virt-list-filesystems [--options] domname\n"
41185 #: ../tools/virt-list-filesystems.pl:38
41188 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
41193 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
41195 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
41200 #: ../tools/virt-list-filesystems.pl:45
41202 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
41203 "are contained in a virtual machine or disk image."
41207 #: ../tools/virt-list-filesystems.pl:49
41209 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
41210 "functionality. For more complex cases you should look at the L<guestfish(1)"
41215 #: ../tools/virt-list-filesystems.pl:112
41217 "With this option, C<virt-list-filesystems> displays the type of each "
41218 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
41222 #: ../tools/virt-list-filesystems.pl:119
41227 #: ../tools/virt-list-filesystems.pl:123
41229 "Normally we only show mountable filesystems. If this option is given then "
41230 "swap devices are shown too."
41234 #: ../tools/virt-list-filesystems.pl:197
41236 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41237 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
41238 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41240 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41241 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
41242 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41245 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
41246 msgid "Copyright (C) 2009 Red Hat Inc."
41247 msgstr "© Red Hat Inc., 2009"
41250 #: ../tools/virt-list-partitions.pl:32
41252 "virt-list-partitions - List partitions in a virtual machine or disk image"
41256 #: ../tools/virt-list-partitions.pl:36
41259 " virt-list-partitions [--options] domname\n"
41262 " virt-list-partitions [--параметри] назва_домену\n"
41266 #: ../tools/virt-list-partitions.pl:38
41269 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
41272 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
41276 #: ../tools/virt-list-partitions.pl:45
41278 "C<virt-list-partitions> is a command line tool to list the partitions that "
41279 "are contained in a virtual machine or disk image. It is mainly useful as a "
41280 "first step to using L<virt-resize(1)>."
41284 #: ../tools/virt-list-partitions.pl:50
41286 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
41287 "functionality. For more complex cases you should look at the L<guestfish(1)"
41292 #: ../tools/virt-list-partitions.pl:113
41293 msgid "Show sizes in human-readable form (eg. \"1G\")."
41297 #: ../tools/virt-list-partitions.pl:123
41299 "With this option, C<virt-list-partitions> displays the type and size of each "
41300 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
41304 #: ../tools/virt-list-partitions.pl:130
41309 #: ../tools/virt-list-partitions.pl:132
41311 msgstr "B<--total>"
41314 #: ../tools/virt-list-partitions.pl:134
41316 "Display the total size of each block device (as a separate row or rows)."
41320 #: ../tools/virt-list-partitions.pl:267
41322 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
41323 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
41324 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41326 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
41327 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
41328 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41331 #: ../tools/virt-list-partitions.pl:283
41332 msgid "Copyright (C) 2009-2010 Red Hat Inc."
41333 msgstr "© Red Hat Inc., 2009–2010"
41336 #: ../tools/virt-make-fs.pl:37
41337 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
41341 #: ../tools/virt-make-fs.pl:41
41344 " virt-make-fs [--options] input.tar output.img\n"
41349 #: ../tools/virt-make-fs.pl:43
41352 " virt-make-fs [--options] input.tar.gz output.img\n"
41357 #: ../tools/virt-make-fs.pl:45
41360 " virt-make-fs [--options] directory output.img\n"
41365 #: ../tools/virt-make-fs.pl:49
41367 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
41368 "archive or some files in a directory. It is similar to tools like L<mkisofs"
41369 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, it can "
41370 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
41371 "you want to attach these filesystems to existing virtual machines (eg. to "
41372 "import large amounts of read-only data to a VM)."
41376 #: ../tools/virt-make-fs.pl:57
41377 msgid "Basic usage is:"
41381 #: ../tools/virt-make-fs.pl:59
41384 " virt-make-fs input output\n"
41389 #: ../tools/virt-make-fs.pl:61
41391 "where C<input> is either a directory containing files that you want to add, "
41392 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
41393 "C<output> is a disk image. The input type is detected automatically. The "
41394 "output disk image defaults to a raw ext2 image unless you specify extra "
41395 "flags (see L</OPTIONS> below)."
41399 #: ../tools/virt-make-fs.pl:67
41400 msgid "EXTRA SPACE"
41404 #: ../tools/virt-make-fs.pl:69
41406 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
41407 "the files that it contains, but might have extra space. Depending on how "
41408 "you are going to use the output, you might think this extra space is wasted "
41409 "and want to minimize it, or you might want to leave space so that more files "
41410 "can be added later. Virt-make-fs defaults to minimizing the extra space, "
41411 "but you can use the I<--size> flag to leave space in the filesystem if you "
41416 #: ../tools/virt-make-fs.pl:77
41418 "An alternative way to leave extra space but not make the output image any "
41419 "bigger is to use an alternative disk image format (instead of the default "
41420 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
41421 "image format (check your hypervisor supports this before using it). This "
41422 "allows you to choose a large I<--size> but the extra space won't actually be "
41423 "allocated in the image until you try to store something in it."
41427 #: ../tools/virt-make-fs.pl:85
41429 "Don't forget that you can also use local commands including L<resize2fs(8)> "
41430 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
41431 "to build another image from scratch."
41435 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
41436 #: ../tools/virt-make-fs.pl:142
41441 #: ../tools/virt-make-fs.pl:91
41444 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41447 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41451 #: ../tools/virt-make-fs.pl:93
41452 msgid "FILESYSTEM TYPE"
41453 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
41456 #: ../tools/virt-make-fs.pl:95
41458 "The default filesystem type is C<ext2>. Just about any filesystem type that "
41459 "libguestfs supports can be used (but I<not> read-only formats like "
41460 "ISO9660). Here are some of the more common choices:"
41464 #: ../tools/virt-make-fs.pl:101
41469 #: ../tools/virt-make-fs.pl:103
41471 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
41472 "you are not going to use the filesystem in a way that requires the journal, "
41473 "then this is just wasted overhead."
41477 #: ../tools/virt-make-fs.pl:107
41478 msgid "I<ntfs> or I<vfat>"
41479 msgstr "I<ntfs> або I<vfat>"
41482 #: ../tools/virt-make-fs.pl:109
41483 msgid "Useful if exporting data to a Windows guest."
41487 #: ../tools/virt-make-fs.pl:111
41489 "I<Note for vfat>: The tar archive or local directory must only contain files "
41490 "which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
41491 "program running within libguestfs is unable to change the ownership of non-"
41492 "root files, since vfat itself does not support this."
41496 #: ../tools/virt-make-fs.pl:116
41501 #: ../tools/virt-make-fs.pl:118
41503 "Lower overhead than C<ext2>, but certain limitations on filename length and "
41504 "total filesystem size."
41508 #: ../tools/virt-make-fs.pl:125
41511 " virt-make-fs --type=minix input minixfs.img\n"
41516 #: ../tools/virt-make-fs.pl:127
41517 msgid "TO PARTITION OR NOT TO PARTITION"
41521 #: ../tools/virt-make-fs.pl:129
41522 msgid "Optionally virt-make-fs can add a partition table to the output disk."
41526 #: ../tools/virt-make-fs.pl:131
41528 "Adding a partition can make the disk image more compatible with certain "
41529 "virtualized operating systems which don't expect to see a filesystem "
41530 "directly located on a block device (Linux doesn't care and will happily "
41531 "handle both types)."
41535 #: ../tools/virt-make-fs.pl:136
41537 "On the other hand, if you have a partition table then the output image is no "
41538 "longer a straight filesystem. For example you cannot run L<fsck(8)> "
41539 "directly on a partitioned disk image. (However libguestfs tools such as "
41540 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
41544 #: ../tools/virt-make-fs.pl:144
41545 msgid "Add an MBR partition:"
41549 #: ../tools/virt-make-fs.pl:146
41552 " virt-make-fs --partition -- input disk.img\n"
41557 #: ../tools/virt-make-fs.pl:148
41559 "If the output disk image could be terabyte-sized or larger, it's better to "
41560 "use an EFI/GPT-compatible partition table:"
41564 #: ../tools/virt-make-fs.pl:151
41567 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
41572 #: ../tools/virt-make-fs.pl:179
41573 msgid "Enable debugging information."
41574 msgstr "Увімкнути виведення діагностичних даних."
41577 #: ../tools/virt-make-fs.pl:185
41578 msgid "B<--size=E<lt>NE<gt>>"
41579 msgstr "B<--size=E<lt>NE<gt>>"
41582 #: ../tools/virt-make-fs.pl:187
41583 msgid "B<--size=+E<lt>NE<gt>>"
41584 msgstr "B<--size=+E<lt>NE<gt>>"
41587 #: ../tools/virt-make-fs.pl:189
41588 msgid "B<-s E<lt>NE<gt>>"
41589 msgstr "B<-s E<lt>NE<gt>>"
41592 #: ../tools/virt-make-fs.pl:191
41593 msgid "B<-s +E<lt>NE<gt>>"
41594 msgstr "B<-s +E<lt>NE<gt>>"
41597 #: ../tools/virt-make-fs.pl:193
41599 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
41603 #: ../tools/virt-make-fs.pl:196
41605 "If this option is I<not> given, then the output image will be just large "
41606 "enough to contain all the files, with not much wasted space."
41610 #: ../tools/virt-make-fs.pl:199
41612 "To choose a fixed size output disk, specify an absolute number followed by b/"
41613 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41614 "Petabytes or Exabytes. This must be large enough to contain all the input "
41615 "files, else you will get an error."
41619 #: ../tools/virt-make-fs.pl:204
41621 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
41622 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41623 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
41624 "the input files, and (approximately) an extra 200 MB free space."
41628 #: ../tools/virt-make-fs.pl:210
41630 "Note that virt-make-fs estimates free space, and therefore will not produce "
41631 "filesystems containing precisely the free space requested. (It is much more "
41632 "expensive and time-consuming to produce a filesystem which has precisely the "
41633 "desired free space)."
41637 #: ../tools/virt-make-fs.pl:219
41638 msgid "B<--format=E<lt>fmtE<gt>>"
41642 #: ../tools/virt-make-fs.pl:221
41643 msgid "B<-F E<lt>fmtE<gt>>"
41647 #: ../tools/virt-make-fs.pl:223
41648 msgid "Choose the output disk image format."
41652 #: ../tools/virt-make-fs.pl:225
41653 msgid "The default is C<raw> (raw disk image)."
41657 #: ../tools/virt-make-fs.pl:227
41659 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
41660 "that would really make sense here is C<qcow2>."
41664 #: ../tools/virt-make-fs.pl:234
41665 msgid "B<--type=E<lt>fsE<gt>>"
41669 #: ../tools/virt-make-fs.pl:236
41670 msgid "B<-t E<lt>fsE<gt>>"
41674 #: ../tools/virt-make-fs.pl:238
41675 msgid "Choose the output filesystem type."
41679 #: ../tools/virt-make-fs.pl:240
41680 msgid "The default is C<ext2>."
41681 msgstr "Типовим значенням є C<ext2>."
41684 #: ../tools/virt-make-fs.pl:242
41686 "Any filesystem which is supported read-write by libguestfs can be used here."
41690 #: ../tools/virt-make-fs.pl:249
41691 msgid "B<--partition>"
41692 msgstr "B<--partition>"
41695 #: ../tools/virt-make-fs.pl:251
41696 msgid "B<--partition=E<lt>parttypeE<gt>>"
41700 #: ../tools/virt-make-fs.pl:253
41702 "If specified, this flag adds an MBR partition table to the output disk image."
41706 #: ../tools/virt-make-fs.pl:256
41708 "You can change the partition table type, eg. I<--partition=gpt> for large "
41713 #: ../tools/virt-make-fs.pl:259
41715 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
41716 "might consider the next parameter to be the partition type. For example:"
41720 #: ../tools/virt-make-fs.pl:263
41723 " virt-make-fs --partition input.tar ...\n"
41726 " virt-make-fs --partition input.tar ...\n"
41730 #: ../tools/virt-make-fs.pl:265
41732 "would cause virt-make-fs to think you wanted to use a partition type of "
41733 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
41734 "dash) between options and the input file argument:"
41738 #: ../tools/virt-make-fs.pl:269
41741 " virt-make-fs --partition -- input.tar ...\n"
41744 " virt-make-fs --partition -- input.tar ...\n"
41748 #: ../tools/virt-make-fs.pl:541
41750 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41751 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
41752 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41754 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41755 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
41756 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41759 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
41761 "When reporting bugs, please enable debugging and capture the I<complete> "
41766 #: ../tools/virt-make-fs.pl:558
41769 " export LIBGUESTFS_DEBUG=1\n"
41770 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41773 " export LIBGUESTFS_DEBUG=1\n"
41774 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41778 #: ../tools/virt-make-fs.pl:561
41780 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
41785 #: ../tools/virt-tar.pl:33
41786 msgid "virt-tar - Extract or upload files to a virtual machine"
41790 #: ../tools/virt-tar.pl:37
41793 " virt-tar [--options] -x domname directory tarball\n"
41798 #: ../tools/virt-tar.pl:39
41801 " virt-tar [--options] -u domname tarball directory\n"
41806 #: ../tools/virt-tar.pl:41
41809 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
41814 #: ../tools/virt-tar.pl:43
41817 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
41822 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
41827 #: ../tools/virt-tar.pl:47
41829 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
41830 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
41834 #: ../tools/virt-tar.pl:52
41835 msgid "Download C</home> from the VM into a local tarball:"
41839 #: ../tools/virt-tar.pl:54
41842 " virt-tar -x domname /home home.tar\n"
41847 #: ../tools/virt-tar.pl:56
41850 " virt-tar -zx domname /home home.tar.gz\n"
41855 #: ../tools/virt-tar.pl:58
41856 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
41860 #: ../tools/virt-tar.pl:60
41863 " virt-tar -u domname uploadstuff.tar /tmp\n"
41868 #: ../tools/virt-tar.pl:62
41871 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
41876 #: ../tools/virt-tar.pl:66
41878 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
41879 "virtual machines. If you do this, you risk disk corruption in the VM. "
41880 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
41884 #: ../tools/virt-tar.pl:71
41886 "You can use I<-x> (extract) on live virtual machines, but you might get "
41887 "inconsistent results or errors if there is filesystem activity inside the "
41888 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
41889 "work, but the only way to guarantee consistent results is if the virtual "
41890 "machine is shut down."
41894 #: ../tools/virt-tar.pl:79
41896 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
41897 "parts of a guest filesystem. There are many possibilities: making backups, "
41898 "uploading data files, snooping on guest activity, fixing or customizing "
41903 #: ../tools/virt-tar.pl:84
41905 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
41906 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
41907 "should look at the L<guestfish(1)> tool."
41911 #: ../tools/virt-tar.pl:88
41913 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
41914 "its contents (recursively) from the virtual machine into a local tarball. "
41915 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
41916 "virtual machine. You cannot use these two options together."
41920 #: ../tools/virt-tar.pl:94
41922 "In addition, you may need to use the I<-z> (gZip) option to enable "
41923 "compression. When uploading, you have to specify I<-z> if the upload file "
41924 "is compressed because virt-tar won't detect this on its own."
41928 #: ../tools/virt-tar.pl:98
41930 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
41931 "example it cannot do PKZip files or bzip2 compression. If you want that "
41932 "then you'll have to rebuild the tarballs yourself. (This is a limitation of "
41933 "the L<libguestfs(3)> API)."
41937 #: ../tools/virt-tar.pl:160
41938 msgid "B<--extract>"
41939 msgstr "B<--extract>"
41942 #: ../tools/virt-tar.pl:162
41943 msgid "B<--download>"
41944 msgstr "B<--download>"
41947 #: ../tools/virt-tar.pl:164
41952 #: ../tools/virt-tar.pl:166
41953 msgid "B<--upload>"
41954 msgstr "B<--upload>"
41957 #: ../tools/virt-tar.pl:168
41959 "Use I<-x> to extract (download) a directory from a virtual machine to a "
41964 #: ../tools/virt-tar.pl:171
41966 "Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
41967 "Please read the L</WARNING> section above before using this option."
41971 #: ../tools/virt-tar.pl:175
41972 msgid "You must specify exactly one of these options."
41976 #: ../tools/virt-tar.pl:181
41981 #: ../tools/virt-tar.pl:183
41986 #: ../tools/virt-tar.pl:185
41987 msgid "Specify that the input or output tarball is gzip-compressed."
41991 #: ../tools/virt-tar.pl:298
41993 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
41994 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
41995 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
41998 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
41999 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42000 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42004 #: ../tools/virt-win-reg.pl:37
42006 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
42010 #: ../tools/virt-win-reg.pl:41
42013 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
42018 #: ../tools/virt-win-reg.pl:43
42021 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
42026 #: ../tools/virt-win-reg.pl:45
42029 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
42034 #: ../tools/virt-win-reg.pl:47
42037 " virt-win-reg --merge domname [input.reg ...]\n"
42042 #: ../tools/virt-win-reg.pl:49
42045 " virt-win-reg [--options] disk.img ... # instead of domname\n"
42050 #: ../tools/virt-win-reg.pl:53
42052 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
42053 "virtual machines. If you do this, you I<will> get irreversible disk "
42054 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
42055 "but doesn't catch all cases."
42059 #: ../tools/virt-win-reg.pl:58
42061 "Modifying the Windows Registry is an inherently risky operation. The format "
42062 "is deliberately obscure and undocumented, and Registry changes can leave the "
42063 "system unbootable. Therefore when using the I<--merge> option, make sure "
42064 "you have a reliable backup first."
42068 #: ../tools/virt-win-reg.pl:65
42070 "This program can export and merge Windows Registry entries from a Windows "
42075 #: ../tools/virt-win-reg.pl:68
42077 "The first parameter is the libvirt guest name or the raw disk image of a "
42082 #: ../tools/virt-win-reg.pl:71
42084 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
42085 "exported (recursively). For example:"
42089 #: ../tools/virt-win-reg.pl:74
42092 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42095 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42099 #: ../tools/virt-win-reg.pl:76
42101 "You can also display single values from within registry keys, for example:"
42105 #: ../tools/virt-win-reg.pl:79
42108 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42109 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42110 " Windows 7 Enterprise\n"
42113 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42114 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42115 " Windows 7 Enterprise\n"
42119 #: ../tools/virt-win-reg.pl:83
42121 "With I<--merge>, you can merge a textual regedit file into the Windows "
42126 #: ../tools/virt-win-reg.pl:86
42129 " $ virt-win-reg --merge Windows7 changes.reg\n"
42132 " $ virt-win-reg --merge Windows7 changes.reg\n"
42136 #: ../tools/virt-win-reg.pl:90
42138 "This program is only meant for simple access to the registry. If you want "
42139 "to do complicated things with the registry, we suggest you download the "
42140 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
42141 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
42142 "L<hivexregedit(1)>."
42146 #: ../tools/virt-win-reg.pl:159
42148 msgstr "B<--merge>"
42151 #: ../tools/virt-win-reg.pl:161
42153 "In merge mode, this merges a textual regedit file into the Windows Registry "
42154 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
42155 "displays or exports Registry entries instead."
42159 #: ../tools/virt-win-reg.pl:165
42161 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
42162 "result in disk corruption. However exporting (without this flag) is always "
42167 #: ../tools/virt-win-reg.pl:173
42168 msgid "B<--encoding> UTF-16LE|ASCII"
42169 msgstr "B<--encoding> UTF-16LE|ASCII"
42172 #: ../tools/virt-win-reg.pl:175
42174 "When merging (only), you may need to specify the encoding for strings to be "
42175 "used in the hive file. This is explained in detail in L<Win::Hivex::Regedit"
42176 "(3)/ENCODING STRINGS>."
42180 #: ../tools/virt-win-reg.pl:179
42182 "The default is to use UTF-16LE, which should work with recent versions of "
42187 #: ../tools/virt-win-reg.pl:186
42188 msgid "B<--unsafe-printable-strings>"
42189 msgstr "B<--unsafe-printable-strings>"
42192 #: ../tools/virt-win-reg.pl:188
42194 "When exporting (only), assume strings are UTF-16LE and print them as strings "
42195 "instead of hex sequences. Remove the final zero codepoint from strings if "
42200 #: ../tools/virt-win-reg.pl:192
42202 "This is unsafe and does not preserve the fidelity of strings in the original "
42203 "Registry for various reasons:"
42207 #: ../tools/virt-win-reg.pl:199
42209 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
42210 "other encodings will be corrupted by this transformation."
42214 #: ../tools/virt-win-reg.pl:204
42216 "Assumes that everything which has type 1 or 2 is really a string and that "
42217 "everything else is not a string, but the type field in real Registries is "
42222 #: ../tools/virt-win-reg.pl:210
42224 "Loses information about whether a zero codepoint followed the string in the "
42229 #: ../tools/virt-win-reg.pl:215
42231 "This all happens because the Registry itself contains no information about "
42232 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
42236 #: ../tools/virt-win-reg.pl:219
42238 "You should only use this option for quick hacking and debugging of the "
42239 "Registry contents, and I<never> use it if the output is going to be passed "
42240 "into another program or stored in another Registry."
42244 #: ../tools/virt-win-reg.pl:556
42245 msgid "SUPPORTED SYSTEMS"
42246 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
42249 #: ../tools/virt-win-reg.pl:558
42251 "The program currently supports Windows NT-derived guests starting with "
42252 "Windows XP through to at least Windows 7."
42256 #: ../tools/virt-win-reg.pl:561
42257 msgid "The following Registry keys are supported:"
42261 #: ../tools/virt-win-reg.pl:565
42262 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
42263 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
42266 #: ../tools/virt-win-reg.pl:567
42267 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42268 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42271 #: ../tools/virt-win-reg.pl:569
42272 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
42273 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
42276 #: ../tools/virt-win-reg.pl:571
42277 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42278 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42281 #: ../tools/virt-win-reg.pl:573
42282 msgid "C<HKEY_USERS\\.DEFAULT>"
42283 msgstr "C<HKEY_USERS\\.DEFAULT>"
42286 #: ../tools/virt-win-reg.pl:575
42287 msgid "C<HKEY_USERS\\I<SID>>"
42288 msgstr "C<HKEY_USERS\\I<SID>>"
42291 #: ../tools/virt-win-reg.pl:577
42292 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
42296 #: ../tools/virt-win-reg.pl:579
42297 msgid "C<HKEY_USERS\\I<username>>"
42298 msgstr "C<HKEY_USERS\\I<користувач>>"
42301 #: ../tools/virt-win-reg.pl:581
42303 "where I<username> is a local user name (this is a libguestfs extension)."
42307 #: ../tools/virt-win-reg.pl:585
42309 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
42314 #: ../tools/virt-win-reg.pl:588
42316 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
42317 "supported (there is no \"current user\")."
42321 #: ../tools/virt-win-reg.pl:591
42326 #: ../tools/virt-win-reg.pl:593
42328 "C<virt-win-reg> expects that regedit files have already been reencoded in "
42329 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
42330 "style line endings. Since Windows regedit files are often in UTF-16LE with "
42331 "Windows-style line endings, you may need to reencode the whole file before "
42332 "or after processing."
42336 #: ../tools/virt-win-reg.pl:599
42338 "To reencode a file from Windows format to Linux (before processing it with "
42339 "the I<--merge> option), you would do something like this:"
42343 #: ../tools/virt-win-reg.pl:602
42346 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
42349 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
42353 #: ../tools/virt-win-reg.pl:604
42355 "To go in the opposite direction, after exporting and before sending the file "
42356 "to a Windows user, do something like this:"
42360 #: ../tools/virt-win-reg.pl:607
42363 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
42366 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
42370 #: ../tools/virt-win-reg.pl:609
42371 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
42375 #: ../tools/virt-win-reg.pl:611
42377 "If you are unsure about the current encoding, use the L<file(1)> command. "
42378 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
42379 "style (CRLF) line endings, like this:"
42383 #: ../tools/virt-win-reg.pl:615
42386 " $ file software.reg\n"
42387 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
42388 " with CRLF line terminators\n"
42393 #: ../tools/virt-win-reg.pl:619
42394 msgid "This file would need conversion before you could I<--merge> it."
42398 #: ../tools/virt-win-reg.pl:621
42399 msgid "CurrentControlSet etc."
42403 #: ../tools/virt-win-reg.pl:623
42405 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
42406 "Registry at the level of the hive file, and therefore you cannot modify "
42411 #: ../tools/virt-win-reg.pl:627
42413 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
42414 "circumstances it might refer to another control set. The way to find out is "
42415 "to look at the C<HKLM\\SYSTEM\\Select> key:"
42419 #: ../tools/virt-win-reg.pl:631
42422 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
42423 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
42424 " \"Current\"=dword:00000001\n"
42425 " \"Default\"=dword:00000001\n"
42426 " \"Failed\"=dword:00000000\n"
42427 " \"LastKnownGood\"=dword:00000002\n"
42430 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
42431 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
42432 " \"Current\"=dword:00000001\n"
42433 " \"Default\"=dword:00000001\n"
42434 " \"Failed\"=dword:00000000\n"
42435 " \"LastKnownGood\"=dword:00000002\n"
42439 #: ../tools/virt-win-reg.pl:638
42440 msgid "\"Current\" is the one which Windows will choose when it boots."
42444 #: ../tools/virt-win-reg.pl:640
42446 "Similarly, other C<Current...> keys in the path may need to be replaced."
42450 #: ../tools/virt-win-reg.pl:643
42451 msgid "WINDOWS TIPS"
42455 #: ../tools/virt-win-reg.pl:645
42457 "Note that some of these tips modify the guest disk image. The guest I<must> "
42458 "be shut off, else you will get disk corruption."
42462 #: ../tools/virt-win-reg.pl:648
42463 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
42467 #: ../tools/virt-win-reg.pl:650
42469 "Prepare a DOS batch script, VBScript or executable. Upload this using "
42470 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
42471 "is uploaded into C<C:\\>:"
42475 #: ../tools/virt-win-reg.pl:654
42478 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
42481 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
42485 #: ../tools/virt-win-reg.pl:656
42486 msgid "Prepare a regedit file containing the registry change:"
42490 #: ../tools/virt-win-reg.pl:658
42493 " cat > test.reg <<'EOF'\n"
42494 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
42495 " \"Test\"=\"c:\\\\test.bat\"\n"
42499 " cat > test.reg <<'EOF'\n"
42500 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
42501 " \"Test\"=\"c:\\\\test.bat\"\n"
42506 #: ../tools/virt-win-reg.pl:663
42508 "In this example we use the key C<RunOnce> which means that the script will "
42509 "run precisely once when the first user logs in. If you want it to run every "
42510 "time a user logs in, replace C<RunOnce> with C<Run>."
42514 #: ../tools/virt-win-reg.pl:667
42515 msgid "Now update the registry:"
42516 msgstr "Оновіть регістр:"
42519 #: ../tools/virt-win-reg.pl:669
42522 " virt-win-reg --merge WindowsGuest test.reg\n"
42527 #: ../tools/virt-win-reg.pl:671
42528 msgid "INSTALLING A SERVICE"
42532 #: ../tools/virt-win-reg.pl:673
42534 "This section assumes you are familiar with Windows services, and you either "
42535 "have a program which handles the Windows Service Control Protocol directly "
42536 "or you want to run any program using a service wrapper like SrvAny or the "
42541 #: ../tools/virt-win-reg.pl:678
42543 "First upload the program and optionally the service wrapper. In this case "
42544 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
42548 #: ../tools/virt-win-reg.pl:682
42551 " guestfish -i -d WindowsGuest <<EOF\n"
42552 " upload rhsrvany.exe /rhsrvany.exe\n"
42553 " upload test.exe /test.exe\n"
42557 " guestfish -i -d WindowsGuest <<EOF\n"
42558 " upload rhsrvany.exe /rhsrvany.exe\n"
42559 " upload test.exe /test.exe\n"
42564 #: ../tools/virt-win-reg.pl:687
42566 "Prepare a regedit file containing the registry changes. In this example, "
42567 "the first registry change is needed for the service itself or the service "
42568 "wrapper (if used). The second registry change is only needed because I am "
42569 "using the RHSrvAny service wrapper."
42573 #: ../tools/virt-win-reg.pl:692
42576 " cat > service.reg <<'EOF'\n"
42577 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42578 " \"Type\"=dword:00000010\n"
42579 " \"Start\"=dword:00000002\n"
42580 " \"ErrorControl\"=dword:00000001\n"
42581 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42582 " \"DisplayName\"=\"RHSrvAny\"\n"
42583 " \"ObjectName\"=\"NetworkService\"\n"
42586 " cat > service.reg <<'EOF'\n"
42587 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42588 " \"Type\"=dword:00000010\n"
42589 " \"Start\"=dword:00000002\n"
42590 " \"ErrorControl\"=dword:00000001\n"
42591 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42592 " \"DisplayName\"=\"RHSrvAny\"\n"
42593 " \"ObjectName\"=\"NetworkService\"\n"
42597 #: ../tools/virt-win-reg.pl:701
42600 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42601 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42602 " \"PWD\"=\"c:\\\\Temp\"\n"
42606 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42607 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42608 " \"PWD\"=\"c:\\\\Temp\"\n"
42613 #: ../tools/virt-win-reg.pl:712
42615 "For use of C<ControlSet001> see the section above in this manual page. You "
42616 "may need to adjust this according to the control set that is in use by the "
42621 #: ../tools/virt-win-reg.pl:718
42623 "C<\"ObjectName\"> controls the privileges that the service will have. An "
42624 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
42625 "privileged account."
42629 #: ../tools/virt-win-reg.pl:724
42631 "For the meaning of the magic numbers, see this Microsoft KB article: "
42632 "L<http://support.microsoft.com/kb/103000>."
42636 #: ../tools/virt-win-reg.pl:729
42637 msgid "Update the registry:"
42638 msgstr "Оновіть регістр:"
42641 #: ../tools/virt-win-reg.pl:731
42644 " virt-win-reg --merge WindowsGuest service.reg\n"
42649 #: ../tools/virt-win-reg.pl:735
42651 "Be careful when passing parameters containing C<\\> (backslash) in the "
42652 "shell. Usually you will have to use 'single quotes' or double backslashes "
42653 "(but not both) to protect them from the shell."
42657 #: ../tools/virt-win-reg.pl:739
42658 msgid "Paths and value names are case-insensitive."
42662 #: ../tools/virt-win-reg.pl:748
42664 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
42665 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
42666 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42668 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
42669 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
42670 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42673 #: ../tools/virt-win-reg.pl:766
42676 " export LIBGUESTFS_DEBUG=1\n"
42677 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
42682 #: ../tools/virt-win-reg.pl:769
42684 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."