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-11-09 22:24+0000\n"
12 "PO-Revision-Date: 2011-10-27 09:15+0000\n"
13 "Last-Translator: rjones <rjones@redhat.com>\n"
14 "Language-Team: Ukrainian <trans-uk@lists.fedoraproject.org>\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
20 "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
23 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3
24 #: ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
25 #: ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
26 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
27 #: ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3
28 #: ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3
29 #: ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3
30 #: ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3
31 #: ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3
32 #: ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3
33 #: ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3
34 #: ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3
35 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
36 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
37 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
38 #: ../tools/virt-win-reg.pl:35
43 #: ../align/virt-alignment-scan.pod:5
44 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
48 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7
49 #: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
50 #: ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
51 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
52 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
53 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
54 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
55 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
56 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
57 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
58 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
59 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
60 #: ../test-tool/libguestfs-test-tool.pod:7
61 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
62 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
63 #: ../tools/virt-win-reg.pl:39
65 msgstr "КОРОТКИЙ ОПИС"
68 #: ../align/virt-alignment-scan.pod:9
71 " virt-alignment-scan [--options] -d domname\n"
76 #: ../align/virt-alignment-scan.pod:11
79 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
84 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19
85 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
86 #: ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
87 #: ../erlang/examples/guestfs-erlang.pod:16
88 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
89 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
90 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
91 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
92 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
93 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
94 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
95 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
96 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
97 #: ../test-tool/libguestfs-test-tool.pod:11
98 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
99 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
100 #: ../tools/virt-win-reg.pl:63
105 #: ../align/virt-alignment-scan.pod:15
107 "When older operating systems install themselves, the partitioning tools "
108 "place partitions at a sector misaligned with the underlying storage "
109 "(commonly the first partition starts on sector C<63>). Misaligned "
110 "partitions can result in an operating system issuing more I/O than should be "
115 #: ../align/virt-alignment-scan.pod:21
117 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
118 "machines and disk images and warns you if there are alignment problems."
122 #: ../align/virt-alignment-scan.pod:25
124 "Currently there is no virt tool for fixing alignment problems. You can only "
125 "reinstall the guest operating system. The following NetApp document "
126 "summarises the problem and possible solutions: L<http://media.netapp.com/"
127 "documents/tr-3747.pdf>"
131 #: ../align/virt-alignment-scan.pod:30
136 #: ../align/virt-alignment-scan.pod:32
137 msgid "To run this tool on a disk image directly, use the I<-a> option:"
141 #: ../align/virt-alignment-scan.pod:34
144 " $ virt-alignment-scan -a winxp.img\n"
145 " /dev/sda1 32256 512 bad (alignment < 4K)\n"
150 #: ../align/virt-alignment-scan.pod:37
153 " $ virt-alignment-scan -a fedora16.img\n"
154 " /dev/sda1 1048576 1024K ok\n"
155 " /dev/sda2 2097152 2048K ok\n"
156 " /dev/sda3 526385152 2048K ok\n"
161 #: ../align/virt-alignment-scan.pod:42
163 "To run the tool on a guest known to libvirt, use the I<-d> option and "
164 "possibly the I<-c> option:"
168 #: ../align/virt-alignment-scan.pod:45
171 " # virt-alignment-scan -d RHEL5\n"
172 " /dev/sda1 32256 512 bad (alignment < 4K)\n"
173 " /dev/sda2 106928640 512 bad (alignment < 4K)\n"
178 #: ../align/virt-alignment-scan.pod:49
181 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
182 " /dev/sda1 1048576 1024K ok\n"
183 " /dev/sda2 105906176 1024K ok\n"
184 " /dev/sdb1 65536 64K ok\n"
189 #: ../align/virt-alignment-scan.pod:54
191 "The output consists of 4 or more whitespace-separated columns. Only the "
192 "first 4 columns are signficant if you want to parse this from a program. "
197 #: ../align/virt-alignment-scan.pod:60
202 #: ../align/virt-alignment-scan.pod:62
204 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
205 "on the first block device)"
209 #: ../align/virt-alignment-scan.pod:65
214 #: ../align/virt-alignment-scan.pod:67
215 msgid "the start of the partition in bytes"
219 #: ../align/virt-alignment-scan.pod:69
224 #: ../align/virt-alignment-scan.pod:71
225 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
229 #: ../align/virt-alignment-scan.pod:73
234 #: ../align/virt-alignment-scan.pod:75
236 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
237 "can cause performance problems"
241 #: ../align/virt-alignment-scan.pod:78
246 #: ../align/virt-alignment-scan.pod:80
247 msgid "optional free-text explanation."
251 #: ../align/virt-alignment-scan.pod:84
253 "The exit code from the program changes depending on whether poorly aligned "
254 "partitions were found. See L</EXIT STATUS> below."
258 #: ../align/virt-alignment-scan.pod:87
259 msgid "If you just want the exit code with no output, use the I<-q> option."
263 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62
264 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261
265 #: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
266 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
267 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
268 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92
269 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
270 #: ../resize/virt-resize.pod:262 ../sparsify/virt-sparsify.pod:99
271 #: ../test-tool/libguestfs-test-tool.pod:36
272 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
273 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
274 #: ../tools/virt-win-reg.pl:96
279 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
280 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
281 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
282 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
283 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
284 #: ../resize/virt-resize.pod:266 ../sparsify/virt-sparsify.pod:103
285 #: ../test-tool/libguestfs-test-tool.pod:40
286 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
287 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
288 #: ../tools/virt-win-reg.pl:104
293 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
294 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
295 #: ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
296 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
297 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
298 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
299 #: ../tools/virt-win-reg.pl:106
300 msgid "Display brief help."
301 msgstr "Показати коротку довідку."
304 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70
305 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269
306 #: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
307 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
312 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72
313 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271
314 #: ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
315 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
316 msgid "B<--add> file"
317 msgstr "B<--add> файл"
320 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
321 msgid "Add I<file> which should be a disk image from a virtual machine."
325 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78
326 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277
327 #: ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
328 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
329 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
331 "The format of the disk image is auto-detected. To override this and force a "
332 "particular format use the I<--format=..> option."
336 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81
337 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291
338 #: ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78
339 #: ../rescue/virt-rescue.pod:107
341 msgstr "B<-c> адреса"
344 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83
345 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293
346 #: ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80
347 #: ../rescue/virt-rescue.pod:109
348 msgid "B<--connect> URI"
349 msgstr "B<--connect> адреса"
352 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85
353 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295
354 #: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
355 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
356 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
357 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
359 "If using libvirt, connect to the given I<URI>. If omitted, then we connect "
360 "to the default libvirt hypervisor."
364 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88
365 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298
366 #: ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85
367 #: ../rescue/virt-rescue.pod:114
369 "If you specify guest block devices directly (I<-a>), then libvirt is not "
374 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91
375 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307
376 #: ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
377 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
382 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93
383 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309
384 #: ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
385 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
386 msgid "B<--domain> guest"
387 msgstr "B<--domain> гість"
390 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95
391 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311
392 #: ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
393 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
395 "Add all the disks from the named libvirt guest. Domain UUIDs can be used "
400 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105
401 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
402 #: ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101
403 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142
404 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
405 msgid "B<--format=raw|qcow2|..>"
406 msgstr "B<--format=raw|qcow2|..>"
409 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107
410 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
411 #: ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103
412 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
413 #: ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101
414 #: ../rescue/virt-rescue.pod:126
419 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109
420 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
421 #: ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105
422 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
423 #: ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:128
425 "The default for the I<-a> option is to auto-detect the format of the disk "
426 "image. Using this forces the disk format for I<-a> options which follow on "
427 "the command line. Using I<--format> with no argument switches back to auto-"
428 "detection for subsequent I<-a> options."
432 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114
433 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
434 #: ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110
435 #: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
436 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:351
437 #: ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2877
442 #: ../align/virt-alignment-scan.pod:134
445 " virt-alignment-scan --format=raw -a disk.img\n"
450 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
451 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
452 #: ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114
453 #: ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
454 #: ../rescue/virt-rescue.pod:137
455 msgid "forces raw format (no auto-detection) for C<disk.img>."
459 #: ../align/virt-alignment-scan.pod:138
462 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
467 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122
468 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
469 #: ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118
470 #: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
471 #: ../rescue/virt-rescue.pod:141
473 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
474 "detection for C<another.img>."
478 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125
479 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
480 #: ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121
481 #: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
483 "If you have untrusted raw-format guest disk images, you should use this "
484 "option to specify the disk format. This avoids a possible security problem "
485 "with malicious guests (CVE-2010-3851)."
489 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:491
490 #: ../sparsify/virt-sparsify.pod:153
495 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:493
496 #: ../sparsify/virt-sparsify.pod:155
501 #: ../align/virt-alignment-scan.pod:151
503 "Don't produce any output. Just set the exit code (see L</EXIT STATUS> "
508 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
509 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
510 #: ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173
511 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
512 #: ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119
513 #: ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:159
518 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136
519 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
520 #: ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175
521 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
522 #: ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121
523 #: ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:161
525 msgstr "B<--verbose>"
528 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138
529 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
530 #: ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177
531 #: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123
532 #: ../rescue/virt-rescue.pod:186 ../sparsify/virt-sparsify.pod:163
533 msgid "Enable verbose messages for debugging."
537 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140
538 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
539 #: ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179
540 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
541 #: ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125
542 #: ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:561
543 #: ../sparsify/virt-sparsify.pod:165
548 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
549 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
550 #: ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181
551 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
552 #: ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127
553 #: ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:563
554 #: ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69
555 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
556 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
558 msgstr "B<--version>"
561 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
562 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
563 #: ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183
564 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
565 #: ../rescue/virt-rescue.pod:192 ../resize/virt-resize.pod:565
566 #: ../sparsify/virt-sparsify.pod:169 ../tools/virt-list-filesystems.pl:71
567 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
568 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
569 msgid "Display version number and exit."
570 msgstr "Показати дані щодо версії і завершити роботу."
573 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
574 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
575 #: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185
576 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
577 #: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131
578 #: ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:171
579 #: ../tools/virt-tar.pl:158
584 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
585 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
586 #: ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187
587 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
588 #: ../rescue/virt-rescue.pod:205 ../sparsify/virt-sparsify.pod:173
589 msgid "Enable tracing of libguestfs API calls."
593 #: ../align/virt-alignment-scan.pod:172
594 msgid "RECOMMENDED ALIGNMENT"
598 #: ../align/virt-alignment-scan.pod:174
600 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
601 "first sector of the first partition at sector 63, with a 512 byte sector "
602 "size. This happens because of a historical accident. Drives have to report "
603 "a cylinder / head / sector (CHS) geometry to the BIOS. The geometry is "
604 "completely meaningless on modern drives, but it happens that the geometry "
605 "reported always has 63 sectors per track. The operating system therefore "
606 "places the first partition at the start of the second \"track\", at sector "
611 #: ../align/virt-alignment-scan.pod:183
613 "When the guest OS is virtualized, the host operating system and hypervisor "
614 "may prefer accesses aligned to one of:"
618 #: ../align/virt-alignment-scan.pod:188
623 #: ../align/virt-alignment-scan.pod:190
625 "if the host OS uses local storage directly on hard drive partitions, and the "
626 "hard drive has 512 byte physical sectors."
630 #: ../align/virt-alignment-scan.pod:193
635 #: ../align/virt-alignment-scan.pod:195
637 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
638 "backed storage on filesystems with 4Kbyte block size; or for some types of "
639 "network-attached storage."
643 #: ../align/virt-alignment-scan.pod:199
648 #: ../align/virt-alignment-scan.pod:201
650 "for high-end network-attached storage. This is the optimal block size for "
651 "some NetApp hardware."
655 #: ../align/virt-alignment-scan.pod:204
660 #: ../align/virt-alignment-scan.pod:206
661 msgid "see L</1 MB PARTITION ALIGNMENT> below."
665 #: ../align/virt-alignment-scan.pod:210
667 "Partitions which are not aligned correctly to the underlying storage cause "
668 "extra I/O. For example:"
672 #: ../align/virt-alignment-scan.pod:213
676 " +--------------------------+------\n"
678 " | filesystem block |\n"
679 " ---+------------------+------+-------------------+-----+---\n"
680 " | host block | host block |\n"
682 " ---+-------------------------+-------------------------+---\n"
687 #: ../align/virt-alignment-scan.pod:222
689 "In this example, each time a 4K guest block is read, two blocks on the host "
690 "must be accessed (so twice as much I/O is done). When a 4K guest block is "
691 "written, two host blocks must first be read, the old and new data combined, "
692 "and the two blocks written back (4x I/O)."
696 #: ../align/virt-alignment-scan.pod:227
697 msgid "LINUX HOST BLOCK AND I/O SIZE"
701 #: ../align/virt-alignment-scan.pod:229
703 "New versions of the Linux kernel expose the physical and logical block size, "
704 "and minimum and recommended I/O size."
708 #: ../align/virt-alignment-scan.pod:232
709 msgid "For a typical consumer hard drive with 512 byte sectors:"
713 #: ../align/virt-alignment-scan.pod:234
716 " $ cat /sys/block/sda/queue/hw_sector_size\n"
718 " $ cat /sys/block/sda/queue/physical_block_size\n"
720 " $ cat /sys/block/sda/queue/logical_block_size\n"
722 " $ cat /sys/block/sda/queue/minimum_io_size\n"
724 " $ cat /sys/block/sda/queue/optimal_io_size\n"
730 #: ../align/virt-alignment-scan.pod:245
731 msgid "For a new consumer hard drive with 4Kbyte sectors:"
735 #: ../align/virt-alignment-scan.pod:247
738 " $ cat /sys/block/sda/queue/hw_sector_size\n"
740 " $ cat /sys/block/sda/queue/physical_block_size\n"
742 " $ cat /sys/block/sda/queue/logical_block_size\n"
744 " $ cat /sys/block/sda/queue/minimum_io_size\n"
746 " $ cat /sys/block/sda/queue/optimal_io_size\n"
752 #: ../align/virt-alignment-scan.pod:258
753 msgid "For a NetApp LUN:"
757 #: ../align/virt-alignment-scan.pod:260
760 " $ cat /sys/block/sdc/queue/logical_block_size\n"
762 " $ cat /sys/block/sdc/queue/physical_block_size\n"
764 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
766 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
772 #: ../align/virt-alignment-scan.pod:269
774 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
775 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
779 #: ../align/virt-alignment-scan.pod:273
781 "For detailed information about what these numbers mean, see L<http://docs."
782 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
783 "Storage_Administration_Guide/newstorage-iolimits.html>"
787 #: ../align/virt-alignment-scan.pod:276
789 "[Thanks to Matt Booth for providing 4K drive data. Thanks to Mike Snitzer "
790 "for providing NetApp data and additional information.]"
794 #: ../align/virt-alignment-scan.pod:279
795 msgid "1 MB PARTITION ALIGNMENT"
799 #: ../align/virt-alignment-scan.pod:281
801 "Microsoft picked 1 MB as the default alignment for all partitions starting "
802 "with Windows 2008 Server, and Linux has followed this."
806 #: ../align/virt-alignment-scan.pod:284
808 "Assuming 512 byte sectors in the guest, you will now see the first partition "
809 "starting at sector 2048, and subsequent partitions (if any) will start at a "
810 "multiple of 2048 sectors."
814 #: ../align/virt-alignment-scan.pod:288
816 "1 MB alignment is compatible with all current alignment requirements (4K, "
817 "64K) and provides room for future growth in physical block sizes."
821 #: ../align/virt-alignment-scan.pod:291
822 msgid "SETTING ALIGNMENT"
826 #: ../align/virt-alignment-scan.pod:293
828 "L<virt-resize(1)> can change the alignment of the partitions of some "
829 "guests. Currently it can fully align all the partitions of all Windows "
830 "guests, and it will fix the bootloader where necessary. For Linux guests, "
831 "it can align the second and subsequent partitions, so the majority of OS "
832 "accesses except at boot will be aligned."
836 #: ../align/virt-alignment-scan.pod:299
838 "Another way to correct partition alignment problems is to reinstall your "
839 "guest operating systems. If you install operating systems from templates, "
840 "ensure these have correct partition alignment too."
844 #: ../align/virt-alignment-scan.pod:303
846 "For older versions of Windows, the following NetApp document contains useful "
847 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
851 #: ../align/virt-alignment-scan.pod:306
853 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
854 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
855 ">. Do not use the Kickstart C<part> command. The NetApp document above "
856 "contains an example."
860 #: ../align/virt-alignment-scan.pod:311 ../cat/virt-cat.pod:231
861 #: ../cat/virt-filesystems.pod:373 ../cat/virt-ls.pod:483
862 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:215
863 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:367
864 #: ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:676
865 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
866 #: ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289
867 #: ../tools/virt-win-reg.pl:744
868 msgid "SHELL QUOTING"
872 #: ../align/virt-alignment-scan.pod:313 ../cat/virt-cat.pod:233
873 #: ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485
874 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:217
875 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:369
876 #: ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:678
877 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
878 #: ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291
879 #: ../tools/virt-win-reg.pl:752
881 "Libvirt guest names can contain arbitrary characters, some of which have "
882 "meaning to the shell such as C<#> and space. You may need to quote or "
883 "escape these characters on the command line. See the shell manual page L<sh"
888 #: ../align/virt-alignment-scan.pod:318 ../cat/virt-cat.pod:238
889 #: ../cat/virt-filesystems.pod:380 ../cat/virt-ls.pod:490
890 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:222
891 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
892 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:390
893 #: ../resize/virt-resize.pod:683 ../sparsify/virt-sparsify.pod:227
894 #: ../test-tool/libguestfs-test-tool.pod:90
899 #: ../align/virt-alignment-scan.pod:320
900 msgid "This program returns:"
904 #: ../align/virt-alignment-scan.pod:324 ../align/virt-alignment-scan.pod:330
905 #: ../align/virt-alignment-scan.pod:336 ../align/virt-alignment-scan.pod:343
906 #: ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187
907 #: ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202
908 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
909 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
910 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
911 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
912 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
913 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
914 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
915 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
916 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
917 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
918 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
919 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
920 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
921 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
922 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
923 #: ../fish/guestfish-actions.pod:441 ../fish/guestfish-actions.pod:449
924 #: ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:463
925 #: ../fish/guestfish-actions.pod:1262 ../fish/guestfish-actions.pod:1266
926 #: ../fish/guestfish-actions.pod:1270 ../fish/guestfish-actions.pod:1274
927 #: ../fish/guestfish-actions.pod:1282 ../fish/guestfish-actions.pod:1286
928 #: ../fish/guestfish-actions.pod:1290 ../fish/guestfish-actions.pod:1300
929 #: ../fish/guestfish-actions.pod:1304 ../fish/guestfish-actions.pod:1308
930 #: ../fish/guestfish-actions.pod:1398 ../fish/guestfish-actions.pod:1402
931 #: ../fish/guestfish-actions.pod:1407 ../fish/guestfish-actions.pod:1412
932 #: ../fish/guestfish-actions.pod:1454 ../fish/guestfish-actions.pod:1458
933 #: ../fish/guestfish-actions.pod:1463 ../fish/guestfish-actions.pod:1719
934 #: ../fish/guestfish-actions.pod:1726 ../fish/guestfish-actions.pod:1733
935 #: ../fish/guestfish-actions.pod:2136 ../fish/guestfish-actions.pod:2142
936 #: ../fish/guestfish-actions.pod:2150 ../fish/guestfish-actions.pod:2157
937 #: ../fish/guestfish-actions.pod:2164 ../fish/guestfish.pod:445
938 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
939 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:408
940 #: ../inspector/virt-inspector.pod:412 ../resize/virt-resize.pod:359
941 #: ../resize/virt-resize.pod:363 ../resize/virt-resize.pod:372
942 #: ../resize/virt-resize.pod:378 ../sparsify/virt-sparsify.pod:32
943 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
944 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
945 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
946 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
947 #: ../src/guestfs-actions.pod:641 ../src/guestfs-actions.pod:649
948 #: ../src/guestfs-actions.pod:656 ../src/guestfs-actions.pod:663
949 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:2083
950 #: ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2091
951 #: ../src/guestfs-actions.pod:2099 ../src/guestfs-actions.pod:2103
952 #: ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:2117
953 #: ../src/guestfs-actions.pod:2121 ../src/guestfs-actions.pod:2125
954 #: ../src/guestfs-actions.pod:2263 ../src/guestfs-actions.pod:2267
955 #: ../src/guestfs-actions.pod:2272 ../src/guestfs-actions.pod:2277
956 #: ../src/guestfs-actions.pod:2338 ../src/guestfs-actions.pod:2342
957 #: ../src/guestfs-actions.pod:2347 ../src/guestfs-actions.pod:2762
958 #: ../src/guestfs-actions.pod:2769 ../src/guestfs-actions.pod:2776
959 #: ../src/guestfs-actions.pod:3321 ../src/guestfs-actions.pod:3327
960 #: ../src/guestfs-actions.pod:3335 ../src/guestfs-actions.pod:3342
961 #: ../src/guestfs-actions.pod:3349 ../src/guestfs.pod:403
962 #: ../src/guestfs.pod:408 ../src/guestfs.pod:413 ../src/guestfs.pod:417
963 #: ../src/guestfs.pod:422 ../src/guestfs.pod:426 ../src/guestfs.pod:431
964 #: ../src/guestfs.pod:436 ../src/guestfs.pod:1109 ../src/guestfs.pod:1113
965 #: ../src/guestfs.pod:1117 ../src/guestfs.pod:1122 ../src/guestfs.pod:1130
966 #: ../src/guestfs.pod:1149 ../src/guestfs.pod:1157 ../src/guestfs.pod:1179
967 #: ../src/guestfs.pod:1183 ../src/guestfs.pod:1187 ../src/guestfs.pod:1191
968 #: ../src/guestfs.pod:1195 ../src/guestfs.pod:1199 ../src/guestfs.pod:1689
969 #: ../src/guestfs.pod:1694 ../src/guestfs.pod:1698 ../src/guestfs.pod:1800
970 #: ../src/guestfs.pod:1805 ../src/guestfs.pod:1809 ../src/guestfs.pod:1819
971 #: ../src/guestfs.pod:2108 ../src/guestfs.pod:2113 ../src/guestfs.pod:2119
972 #: ../src/guestfs.pod:2127 ../src/guestfs.pod:2645 ../src/guestfs.pod:2651
973 #: ../src/guestfs.pod:2656 ../src/guestfs.pod:2662 ../src/guestfs.pod:3062
974 #: ../src/guestfs.pod:3067 ../src/guestfs.pod:3071 ../src/guestfs.pod:3075
975 #: ../src/guestfs.pod:3079 ../src/guestfs.pod:3093 ../src/guestfs.pod:3098
976 #: ../src/guestfs.pod:3329 ../src/guestfs.pod:3333 ../src/guestfs.pod:3337
977 #: ../src/guestfs.pod:3341 ../tools/virt-win-reg.pl:197
978 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
979 #: ../tools/virt-win-reg.pl:721 ../tools/virt-win-reg.pl:727
980 #: ../tools/virt-win-reg.pl:733
985 #: ../align/virt-alignment-scan.pod:326
990 #: ../align/virt-alignment-scan.pod:328
992 "successful exit, all partitions are aligned E<ge> 64K for best performance"
996 #: ../align/virt-alignment-scan.pod:332
1001 #: ../align/virt-alignment-scan.pod:334
1002 msgid "an error scanning the disk image or guest"
1006 #: ../align/virt-alignment-scan.pod:338
1011 #: ../align/virt-alignment-scan.pod:340
1013 "successful exit, some partitions have alignment E<lt> 64K which can result "
1014 "in poor performance on high end network storage"
1018 #: ../align/virt-alignment-scan.pod:345
1023 #: ../align/virt-alignment-scan.pod:347
1025 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1026 "poor performance on most hypervisors"
1030 #: ../align/virt-alignment-scan.pod:352 ../cat/virt-cat.pod:243
1031 #: ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495
1032 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:227
1033 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1034 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1035 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50
1036 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
1037 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317
1038 #: ../inspector/virt-inspector.pod:395 ../java/examples/guestfs-java.pod:45
1039 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
1040 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
1041 #: ../resize/virt-resize.pod:688 ../ruby/examples/guestfs-ruby.pod:36
1042 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3270
1043 #: ../test-tool/libguestfs-test-tool.pod:100
1044 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1045 #: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296
1046 #: ../tools/virt-win-reg.pl:757
1048 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
1051 #: ../align/virt-alignment-scan.pod:354
1053 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1054 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1058 #: ../align/virt-alignment-scan.pod:361 ../cat/virt-cat.pod:252
1059 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507
1060 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:235
1061 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296
1062 #: ../resize/virt-resize.pod:711 ../sparsify/virt-sparsify.pod:264
1063 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1064 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311
1065 #: ../tools/virt-win-reg.pl:783
1070 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:254
1071 #: ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509
1072 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:237
1073 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:410
1074 #: ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:713
1075 #: ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210
1076 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584
1077 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
1078 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1079 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1082 #: ../align/virt-alignment-scan.pod:365 ../cat/virt-cat.pod:256
1083 #: ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511
1084 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:239
1085 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1086 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1087 #: ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64
1088 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
1089 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332
1090 #: ../inspector/virt-inspector.pod:418 ../java/examples/guestfs-java.pod:62
1091 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
1092 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
1093 #: ../resize/virt-resize.pod:715 ../ruby/examples/guestfs-ruby.pod:52
1094 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3352
1095 #: ../test-tool/libguestfs-test-tool.pod:110
1096 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1097 #: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315
1098 #: ../tools/virt-win-reg.pl:787
1100 msgstr "АВТОРСЬКІ ПРАВА"
1103 #: ../align/virt-alignment-scan.pod:367 ../clone/virt-sysprep.pod:507
1104 #: ../sparsify/virt-sparsify.pod:270
1105 msgid "Copyright (C) 2011 Red Hat Inc."
1109 #: ../align/virt-alignment-scan.pod:369 ../cat/virt-cat.pod:260
1110 #: ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515
1111 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:243
1112 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1113 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1114 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1115 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:422
1116 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:719
1117 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
1118 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1119 #: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319
1120 #: ../tools/virt-win-reg.pl:791
1122 "This program is free software; you can redistribute it and/or modify it "
1123 "under the terms of the GNU General Public License as published by the Free "
1124 "Software Foundation; either version 2 of the License, or (at your option) "
1125 "any later version."
1129 #: ../align/virt-alignment-scan.pod:374 ../cat/virt-cat.pod:265
1130 #: ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520
1131 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:248
1132 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1133 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1134 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1135 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:427
1136 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:724
1137 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
1138 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1139 #: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324
1140 #: ../tools/virt-win-reg.pl:796
1142 "This program is distributed in the hope that it will be useful, but WITHOUT "
1143 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1144 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for "
1147 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
1148 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
1149 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
1150 "дізнатися з GNU General Public License."
1153 #: ../align/virt-alignment-scan.pod:379 ../cat/virt-cat.pod:270
1154 #: ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525
1155 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:253
1156 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1157 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1158 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1159 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:432
1160 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:729
1161 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
1162 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1163 #: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329
1164 #: ../tools/virt-win-reg.pl:801
1166 "You should have received a copy of the GNU General Public License along with "
1167 "this program; if not, write to the Free Software Foundation, Inc., 51 "
1168 "Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
1170 "Ви маєте отримати копію GNU General Public License разом з цією програмою; "
1171 "якщо це не так, повідомте про факт за адресою Free Software Foundation, "
1172 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
1175 #: ../cat/virt-cat.pod:5
1176 msgid "virt-cat - Display files in a virtual machine"
1177 msgstr "virt-cat — показ файлів у віртуальній машині"
1180 #: ../cat/virt-cat.pod:9
1183 " virt-cat [--options] -d domname file [file ...]\n"
1186 " virt-cat [--параметри] -d назва_домену файл [файл...]\n"
1190 #: ../cat/virt-cat.pod:11
1193 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1196 " virt-cat [--параметри] -a диск.img [-a диск.img ...] файл [файл...]\n"
1200 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1201 #: ../inspector/virt-inspector.pod:13
1203 msgstr "Застарілий стиль:"
1206 #: ../cat/virt-cat.pod:15
1209 " virt-cat domname file\n"
1212 " virt-cat назва_домену файл\n"
1216 #: ../cat/virt-cat.pod:17
1219 " virt-cat disk.img file\n"
1222 " virt-cat диск.img файл\n"
1226 #: ../cat/virt-cat.pod:21
1228 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1229 "C<file> exists in the named virtual machine (or disk image)."
1231 "C<virt-cat> — інструмент командного рядка для показу вмісту C<файла>, який "
1232 "зберігається у вказаній віртуальній машині (або образі диска)."
1235 #: ../cat/virt-cat.pod:24
1237 "Multiple filenames can be given, in which case they are concatenated "
1238 "together. Each filename must be a full path, starting at the root directory "
1239 "(starting with '/')."
1241 "Ви можете вказати декілька назв файлів. Вміст таких файлів буде об’єднано. "
1242 "Назви файлів слід вказувати повністю (разом зі шляхом), починаючи з "
1243 "кореневого каталогу (тобто назва має починатися з «/»)."
1246 #: ../cat/virt-cat.pod:28
1248 "C<virt-cat> can be used to quickly view a file. To edit a file, use C<virt-"
1249 "edit>. For more complex cases you should look at the L<guestfish(1)> tool "
1250 "(see L</USING GUESTFISH> below)."
1252 "C<virt-cat> можна скористатися для пришвидшення перегляду файла. Для "
1253 "редагування даних слід користуватися C<virt-edit>. Для виконання складніших "
1254 "дій можна скористатися програмою L<guestfish(1)> (див. L</USING GUESTFISH> "
1258 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1259 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1260 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1261 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1262 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1263 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1264 #: ../tools/virt-tar.pl:50
1269 #: ../cat/virt-cat.pod:34
1271 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1273 "Показ файла C</etc/fstab> з віртуальної машини libvirt з назвою C<mydomain>:"
1276 #: ../cat/virt-cat.pod:37
1279 " virt-cat -d mydomain /etc/fstab\n"
1282 " virt-cat -d mydomain /etc/fstab\n"
1286 #: ../cat/virt-cat.pod:39
1287 msgid "List syslog messages from a VM disk image file:"
1289 "Показ списку повідомлень syslog з файла образу диска віртуальної машини:"
1292 #: ../cat/virt-cat.pod:41
1295 " virt-cat -a disk.img /var/log/messages | tail\n"
1298 " virt-cat -a disk.img /var/log/messages | tail\n"
1302 #: ../cat/virt-cat.pod:43
1303 msgid "Find out what DHCP IP address a VM acquired:"
1304 msgstr "Визначення IP-адреси DHCP, використаної віртуальною машиною:"
1307 #: ../cat/virt-cat.pod:45
1310 " virt-cat -d mydomain /var/log/messages | \\\n"
1311 " grep 'dhclient: bound to' | tail\n"
1314 " virt-cat -d mydomain /var/log/messages | \\\n"
1315 " grep 'dhclient: bound to' | tail\n"
1319 #: ../cat/virt-cat.pod:48
1320 msgid "Find out what packages were recently installed:"
1321 msgstr "Пошук нещодавно встановлених пакунків:"
1324 #: ../cat/virt-cat.pod:50
1327 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1330 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1334 #: ../cat/virt-cat.pod:52
1335 msgid "Find out who is logged on inside a virtual machine:"
1336 msgstr "Визначення користувачів, які працюють у віртуальній машині:"
1339 #: ../cat/virt-cat.pod:54
1342 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1346 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1351 #: ../cat/virt-cat.pod:57
1352 msgid "or who was logged on:"
1353 msgstr "або тих, які у ній працювали:"
1356 #: ../cat/virt-cat.pod:59
1359 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1360 " last -f /tmp/wtmp\n"
1363 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1364 " last -f /tmp/wtmp\n"
1368 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1369 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1370 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
1372 "Add I<file> which should be a disk image from a virtual machine. If the "
1373 "virtual machine has multiple block devices, you must supply all of them with "
1374 "separate I<-a> options."
1378 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1379 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1380 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1381 msgid "B<--echo-keys>"
1382 msgstr "B<--echo-keys>"
1385 #: ../cat/virt-cat.pod:100
1387 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1388 "so you cannot see what you are typing. If you are not worried about Tempest "
1389 "attacks and there is no one else in the room you can specify this flag to "
1390 "see what you are typing."
1394 #: ../cat/virt-cat.pod:116
1397 " virt-cat --format=raw -a disk.img file\n"
1400 " virt-cat --format=raw -a disk.img file\n"
1404 #: ../cat/virt-cat.pod:120
1407 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1410 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1414 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1415 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1416 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1417 msgid "B<--keys-from-stdin>"
1418 msgstr "B<--keys-from-stdin>"
1421 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1422 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1423 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1425 "Read key or passphrase parameters from stdin. The default is to try to read "
1426 "passphrases from the user by opening C</dev/tty>."
1430 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1431 #: ../inspector/virt-inspector.pod:144 ../rescue/virt-rescue.pod:209
1432 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1436 #: ../cat/virt-cat.pod:154
1437 msgid "Previous versions of virt-cat allowed you to write either:"
1441 #: ../cat/virt-cat.pod:156
1444 " virt-cat disk.img [disk.img ...] file\n"
1449 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1450 #: ../inspector/virt-inspector.pod:150 ../rescue/virt-rescue.pod:215
1455 #: ../cat/virt-cat.pod:160
1458 " virt-cat guestname file\n"
1463 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1464 #: ../inspector/virt-inspector.pod:154 ../rescue/virt-rescue.pod:219
1466 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1467 "the confusing case where a disk image might have the same name as a guest."
1471 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1472 #: ../inspector/virt-inspector.pod:158 ../rescue/virt-rescue.pod:223
1473 msgid "For compatibility the old style is still supported."
1477 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1478 msgid "WINDOWS PATHS"
1479 msgstr "ШЛЯХИ У WINDOWS"
1482 #: ../cat/virt-cat.pod:170
1484 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1485 "paths (eg. C<E:\\foo\\bar.txt>)."
1489 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1490 msgid "If and only if the guest is running Windows then:"
1494 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1496 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1497 "to the correct filesystem."
1501 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1503 "Any backslash (C<\\>) characters in the path are replaced with forward "
1504 "slashes so that libguestfs can process it."
1508 #: ../cat/virt-cat.pod:189
1510 "The path is resolved case insensitively to locate the file that should be "
1515 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1516 msgid "There are some known shortcomings:"
1520 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1521 msgid "Some NTFS symbolic links may not be followed correctly."
1525 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1526 msgid "NTFS junction points that cross filesystems are not followed."
1530 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1531 msgid "USING GUESTFISH"
1532 msgstr "ВИКОРИСТАННЯ GUESTFISH"
1535 #: ../cat/virt-cat.pod:210
1537 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1538 "C<virt-cat> doesn't work."
1542 #: ../cat/virt-cat.pod:213
1543 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1547 #: ../cat/virt-cat.pod:215
1550 " guestfish --ro -i -d domname download file -\n"
1555 #: ../cat/virt-cat.pod:217
1557 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1558 "path to the file. Note the final C<-> (meaning \"output to stdout\")."
1562 #: ../cat/virt-cat.pod:221
1564 "The command above uses libguestfs's guest inspection feature and so does not "
1565 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1566 "disk images that don't contain guests. To display a file from a disk image "
1571 #: ../cat/virt-cat.pod:226
1574 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1579 #: ../cat/virt-cat.pod:228
1581 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1582 "the disk image, and C<file> is the full path to the file."
1586 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382
1587 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1588 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:392
1589 #: ../resize/virt-resize.pod:685 ../sparsify/virt-sparsify.pod:229
1591 "This program returns 0 if successful, or non-zero if there was an error."
1595 #: ../cat/virt-cat.pod:245
1597 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1598 "tar-out(1)>, L<http://libguestfs.org/>."
1600 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1601 "tar-out(1)>, L<http://libguestfs.org/>."
1604 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:420
1605 #: ../resize/virt-resize.pod:717 ../tools/virt-make-fs.pl:588
1606 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1607 msgstr "©Red Hat Inc., 2010–2011"
1610 #: ../cat/virt-filesystems.pod:5
1612 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1613 "virtual machine or disk image"
1617 #: ../cat/virt-filesystems.pod:9
1620 " virt-filesystems [--options] -d domname\n"
1623 " virt-filesystems [--параметри] -d назва_домену\n"
1627 #: ../cat/virt-filesystems.pod:11
1630 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1635 #: ../cat/virt-filesystems.pod:15
1637 "This tool allows you to discover filesystems, partitions, logical volumes, "
1638 "and their sizes in a disk image or virtual machine. It is a replacement for "
1639 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1643 #: ../cat/virt-filesystems.pod:20
1645 "One use for this tool is from shell scripts to iterate over all filesystems "
1646 "from a disk image:"
1650 #: ../cat/virt-filesystems.pod:23
1653 " for fs in $(virt-filesystems -a disk.img); do\n"
1658 " for fs in $(virt-filesystems -a disk.img); do\n"
1664 #: ../cat/virt-filesystems.pod:27
1666 "Another use is to list partitions before using another tool to modify those "
1667 "partitions (such as L<virt-resize(1)>). If you are curious about what an "
1668 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1672 #: ../cat/virt-filesystems.pod:32
1674 "Various command line options control what this program displays. You need "
1675 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1676 "guest respectively. If you just specify that then the program shows "
1677 "filesystems found, one per line, like this:"
1681 #: ../cat/virt-filesystems.pod:37
1684 " $ virt-filesystems -a disk.img\n"
1686 " /dev/vg_guest/lv_root\n"
1689 " $ virt-filesystems -a disk.img\n"
1691 " /dev/vg_guest/lv_root\n"
1695 #: ../cat/virt-filesystems.pod:41
1697 "If you add I<-l> or I<--long> then the output includes extra information:"
1701 #: ../cat/virt-filesystems.pod:44
1704 " $ virt-filesystems -a disk.img -l\n"
1705 " Name Type VFS Label Size\n"
1706 " /dev/sda1 filesystem ext4 boot 524288000\n"
1707 " /dev/vg_guest/lv_root filesystem ext4 root 10212081664\n"
1712 #: ../cat/virt-filesystems.pod:49
1714 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1719 #: ../cat/virt-filesystems.pod:52
1722 " $ virt-filesystems -a disk.img --extra\n"
1724 " /dev/vg_guest/lv_root\n"
1725 " /dev/vg_guest/lv_swap\n"
1726 " /dev/vg_guest/lv_data\n"
1729 " $ virt-filesystems -a disk.img --extra\n"
1731 " /dev/vg_guest/lv_root\n"
1732 " /dev/vg_guest/lv_swap\n"
1733 " /dev/vg_guest/lv_data\n"
1737 #: ../cat/virt-filesystems.pod:58
1739 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1743 #: ../cat/virt-filesystems.pod:60
1746 " $ virt-filesystems -a disk.img --partitions\n"
1751 " $ virt-filesystems -a disk.img --partitions\n"
1757 #: ../cat/virt-filesystems.pod:64
1759 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1760 "volumes>, I<--block-devices> to list those items."
1764 #: ../cat/virt-filesystems.pod:67
1766 "You can use these options in combination as well (if you want a combination "
1767 "including filesystems, you have to add I<--filesystems>). Notice that some "
1768 "items fall into several categories (eg. C</dev/sda1> might be both a "
1769 "partition and a filesystem). These items are listed several times. To get "
1770 "a list which includes absolutely everything that virt-filesystems knows "
1771 "about, use the I<--all> option."
1775 #: ../cat/virt-filesystems.pod:74
1777 "UUIDs (because they are quite long) are not shown by default. Add the I<--"
1778 "uuid> option to display device and filesystem UUIDs in the long output."
1782 #: ../cat/virt-filesystems.pod:78
1784 "I<--all --long --uuid> is a useful combination to display all possible "
1785 "information about everything."
1789 #: ../cat/virt-filesystems.pod:81
1792 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1793 " Name Type VFS Label Size Parent UUID\n"
1794 " /dev/sda1 filesystem ntfs System Reserved 100M - F81C92571C92112C\n"
1795 " /dev/sda2 filesystem ntfs - 20G - F2E8996AE8992E3B\n"
1796 " /dev/sda1 partition - - 100M /dev/sda -\n"
1797 " /dev/sda2 partition - - 20G /dev/sda -\n"
1798 " /dev/sda device - - 20G - -\n"
1803 #: ../cat/virt-filesystems.pod:89
1805 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1809 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1814 #: ../cat/virt-filesystems.pod:112
1816 "Display everything. This is currently the same as specifying these options: "
1817 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1818 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>. (More may be "
1819 "added to this list in future)."
1823 #: ../cat/virt-filesystems.pod:117
1824 msgid "See also I<--long>."
1825 msgstr "Див. також I<--long>."
1828 #: ../cat/virt-filesystems.pod:119
1829 msgid "B<--blkdevs>"
1830 msgstr "B<--blkdevs>"
1833 #: ../cat/virt-filesystems.pod:121
1834 msgid "B<--block-devices>"
1835 msgstr "B<--block-devices>"
1838 #: ../cat/virt-filesystems.pod:123
1839 msgid "Display block devices."
1840 msgstr "Показати список блокових пристроїв."
1843 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1848 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1850 "Write out the results in CSV format (comma-separated values). This format "
1851 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1852 "ABOUT CSV FORMAT> below."
1856 #: ../cat/virt-filesystems.pod:150
1858 "When prompting for keys and passphrases, virt-filesystems normally turns "
1859 "echoing off so you cannot see what you are typing. If you are not worried "
1860 "about Tempest attacks and there is no one else in the room you can specify "
1861 "this flag to see what you are typing."
1865 #: ../cat/virt-filesystems.pod:155
1870 #: ../cat/virt-filesystems.pod:157
1872 "This causes filesystems that are not ordinary, mountable filesystems to be "
1873 "displayed. This category includes swapspace, and filesystems that are empty "
1874 "or contain unknown data."
1878 #: ../cat/virt-filesystems.pod:161
1879 msgid "This option implies I<--filesystems>."
1883 #: ../cat/virt-filesystems.pod:163
1884 msgid "B<--filesystems>"
1885 msgstr "B<--filesystems>"
1888 #: ../cat/virt-filesystems.pod:165
1890 "Display mountable filesystems. If no display option was selected then this "
1891 "option is implied."
1895 #: ../cat/virt-filesystems.pod:168
1896 msgid "With I<--extra>, non-mountable filesystems are shown too."
1900 #: ../cat/virt-filesystems.pod:181
1903 " virt-filesystems --format=raw -a disk.img\n"
1906 " virt-filesystems --format=raw -a диск.img\n"
1910 #: ../cat/virt-filesystems.pod:185
1913 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1918 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1919 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1920 #: ../tools/virt-list-partitions.pl:109
1925 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1926 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1927 msgid "B<--human-readable>"
1928 msgstr "B<--human-readable>"
1931 #: ../cat/virt-filesystems.pod:198
1932 msgid "In I<--long> mode, display sizes in human-readable format."
1936 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1937 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1942 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1943 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1948 #: ../cat/virt-filesystems.pod:209
1949 msgid "Display extra columns of data (\"long format\")."
1953 #: ../cat/virt-filesystems.pod:211
1954 msgid "A title row is added unless you also specify I<--no-title>."
1958 #: ../cat/virt-filesystems.pod:213
1960 "The extra columns displayed depend on what output you select, and the "
1961 "ordering of columns may change in future versions. Use the title row, I<--"
1962 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1967 #: ../cat/virt-filesystems.pod:218
1969 "Use I<-h> if you want sizes to be displayed in human-readable format. The "
1970 "default is to show raw numbers of I<bytes>."
1974 #: ../cat/virt-filesystems.pod:221
1975 msgid "Use I<--uuid> to display UUIDs too."
1979 #: ../cat/virt-filesystems.pod:223
1984 #: ../cat/virt-filesystems.pod:225
1985 msgid "B<--logvols>"
1986 msgstr "B<--logvols>"
1989 #: ../cat/virt-filesystems.pod:227
1990 msgid "B<--logical-volumes>"
1991 msgstr "B<--logical-volumes>"
1994 #: ../cat/virt-filesystems.pod:229
1996 "Display LVM logical volumes. In this mode, these are displayed irrespective "
1997 "of whether the LVs contain filesystems."
2001 #: ../cat/virt-filesystems.pod:232
2002 msgid "B<--no-title>"
2003 msgstr "B<--no-title>"
2006 #: ../cat/virt-filesystems.pod:234
2007 msgid "In I<--long> mode, don't add a title row."
2011 #: ../cat/virt-filesystems.pod:236
2013 "Note that the order of the columns is not fixed, and may change in future "
2014 "versions of virt-filesystems, so using this option may give you unexpected "
2019 #: ../cat/virt-filesystems.pod:240
2024 #: ../cat/virt-filesystems.pod:242
2025 msgid "B<--partitions>"
2026 msgstr "B<--partitions>"
2029 #: ../cat/virt-filesystems.pod:244
2031 "Display partitions. In this mode, these are displayed irrespective of "
2032 "whether the partitions contain filesystems."
2036 #: ../cat/virt-filesystems.pod:247
2041 #: ../cat/virt-filesystems.pod:249
2042 msgid "B<--physvols>"
2043 msgstr "B<--physvols>"
2046 #: ../cat/virt-filesystems.pod:251
2047 msgid "B<--physical-volumes>"
2048 msgstr "B<--physical-volumes>"
2051 #: ../cat/virt-filesystems.pod:253
2052 msgid "Display LVM physical volumes."
2056 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
2061 #: ../cat/virt-filesystems.pod:257
2066 #: ../cat/virt-filesystems.pod:259
2067 msgid "In I<--long> mode, display UUIDs as well."
2071 #: ../cat/virt-filesystems.pod:273
2076 #: ../cat/virt-filesystems.pod:275
2077 msgid "B<--volgroups>"
2078 msgstr "B<--volgroups>"
2081 #: ../cat/virt-filesystems.pod:277
2082 msgid "B<--volume-groups>"
2083 msgstr "B<--volume-groups>"
2086 #: ../cat/virt-filesystems.pod:279
2087 msgid "Display LVM volume groups."
2091 #: ../cat/virt-filesystems.pod:287
2096 #: ../cat/virt-filesystems.pod:289
2098 "Note that columns in the output are subject to reordering and change in "
2099 "future versions of this tool."
2103 #: ../cat/virt-filesystems.pod:294
2108 #: ../cat/virt-filesystems.pod:296
2109 msgid "The filesystem, partition, block device or LVM name."
2113 #: ../cat/virt-filesystems.pod:298
2115 "For device and partition names these are displayed as canonical libguestfs "
2116 "names, so that for example C</dev/sda2> is the second partition on the first "
2121 #: ../cat/virt-filesystems.pod:302
2123 "If the I<--long> option is B<not> specified, then only the name column is "
2124 "shown in the output."
2128 #: ../cat/virt-filesystems.pod:305
2133 #: ../cat/virt-filesystems.pod:307
2134 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2138 #: ../cat/virt-filesystems.pod:309
2143 #: ../cat/virt-filesystems.pod:311
2145 "If there is a filesystem, then this column displays the filesystem type if "
2146 "one could be detected, eg. C<ext4>."
2150 #: ../cat/virt-filesystems.pod:314
2155 #: ../cat/virt-filesystems.pod:316
2157 "If the object has a label (used for identifying and mounting filesystems) "
2158 "then this column contains the label."
2162 #: ../cat/virt-filesystems.pod:319
2167 #: ../cat/virt-filesystems.pod:321
2169 "The partition type byte, displayed as a two digit hexadecimal number. A "
2170 "comprehensive list of partition types can be found here: L<http://www.win."
2171 "tue.nl/~aeb/partitions/partition_types-1.html>"
2175 #: ../cat/virt-filesystems.pod:325
2176 msgid "This is only applicable for DOS (MBR) partitions."
2180 #: ../cat/virt-filesystems.pod:327
2185 #: ../cat/virt-filesystems.pod:329
2187 "The size of the object in bytes. If the I<--human> option is used then the "
2188 "size is displayed in a human-readable form."
2192 #: ../cat/virt-filesystems.pod:332
2197 #: ../cat/virt-filesystems.pod:334
2199 "The parent column records the parent relationship between objects. For "
2200 "example, if the object is a partition, then this column contains the name of "
2201 "the containing device. If the object is a logical volume, then this column "
2202 "is the name of the volume group."
2206 #: ../cat/virt-filesystems.pod:339
2211 #: ../cat/virt-filesystems.pod:341
2213 "If the object has a UUID (used for identifying and mounting filesystems and "
2214 "block devices) then this column contains the UUID as a string."
2218 #: ../cat/virt-filesystems.pod:345
2219 msgid "The UUID is only displayed if the I<--uuid> option is given."
2223 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459
2224 #: ../df/virt-df.pod:191
2225 msgid "NOTE ABOUT CSV FORMAT"
2229 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461
2230 #: ../df/virt-df.pod:193
2232 "Comma-separated values (CSV) is a deceptive format. It I<seems> like it "
2233 "should be easy to parse, but it is definitely not easy to parse."
2237 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464
2238 #: ../df/virt-df.pod:196
2240 "Myth: Just split fields at commas. Reality: This does I<not> work "
2241 "reliably. This example has two columns:"
2245 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467
2246 #: ../df/virt-df.pod:199
2249 " \"foo,bar\",baz\n"
2254 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469
2255 #: ../df/virt-df.pod:201
2257 "Myth: Read the file one line at a time. Reality: This does I<not> work "
2258 "reliably. This example has one row:"
2262 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472
2263 #: ../df/virt-df.pod:204
2272 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475
2273 #: ../df/virt-df.pod:207
2275 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2276 "packaged in major Linux distributions)."
2280 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478
2281 #: ../df/virt-df.pod:210
2283 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2284 "or Python's built-in csv library)."
2288 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481
2289 #: ../df/virt-df.pod:213
2290 msgid "Most spreadsheets and databases can import CSV directly."
2294 #: ../cat/virt-filesystems.pod:387
2296 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2297 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2300 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2301 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2305 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
2306 msgid "Copyright (C) 2010 Red Hat Inc."
2307 msgstr "©Red Hat Inc., 2010"
2310 #: ../cat/virt-ls.pod:5
2311 msgid "virt-ls - List files in a virtual machine"
2315 #: ../cat/virt-ls.pod:9
2318 " virt-ls [--options] -d domname directory [directory ...]\n"
2323 #: ../cat/virt-ls.pod:11
2326 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2331 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2333 msgstr "Старий стиль:"
2336 #: ../cat/virt-ls.pod:15
2339 " virt-ls [--options] domname directory\n"
2344 #: ../cat/virt-ls.pod:17
2347 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2352 #: ../cat/virt-ls.pod:21
2354 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2355 "more from a virtual machine or disk image."
2359 #: ../cat/virt-ls.pod:24
2361 "Multiple directory names can be given, in which case the output from each is "
2366 #: ../cat/virt-ls.pod:27
2368 "To list directories from a libvirt guest use the I<-d> option to specify the "
2369 "name of the guest. For a disk image, use the I<-a> option."
2373 #: ../cat/virt-ls.pod:31
2375 "C<virt-ls> can do many simple file listings. For more complicated cases you "
2376 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2381 #: ../cat/virt-ls.pod:37
2382 msgid "Get a list of all files and directories in a virtual machine:"
2386 #: ../cat/virt-ls.pod:39
2389 " virt-ls -R -d guest /\n"
2394 #: ../cat/virt-ls.pod:41
2395 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2399 #: ../cat/virt-ls.pod:43
2402 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2407 #: ../cat/virt-ls.pod:45
2408 msgid "List all public-writable directories in a Linux virtual machine:"
2412 #: ../cat/virt-ls.pod:47
2415 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2420 #: ../cat/virt-ls.pod:49
2421 msgid "List all Unix domain sockets in a Linux virtual machine:"
2425 #: ../cat/virt-ls.pod:51
2428 " virt-ls -lR -d guest / | grep '^s'\n"
2433 #: ../cat/virt-ls.pod:53
2434 msgid "List all regular files with filenames ending in '.png':"
2438 #: ../cat/virt-ls.pod:55
2441 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2446 #: ../cat/virt-ls.pod:57
2447 msgid "To display files larger than 10MB in home directories:"
2451 #: ../cat/virt-ls.pod:59
2454 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2459 #: ../cat/virt-ls.pod:61
2460 msgid "Find everything modified in the last 7 days:"
2464 #: ../cat/virt-ls.pod:63
2467 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2472 #: ../cat/virt-ls.pod:65
2473 msgid "Find regular files modified in the last 24 hours:"
2477 #: ../cat/virt-ls.pod:67
2480 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2485 #: ../cat/virt-ls.pod:69
2486 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2490 #: ../cat/virt-ls.pod:71
2492 "Find the differences between files in a guest and an earlier snapshot of the "
2497 #: ../cat/virt-ls.pod:74
2500 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2501 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2502 " diff -u old new | less\n"
2507 #: ../cat/virt-ls.pod:78
2509 "The commands above won't find files where the content has changed but the "
2510 "metadata (eg. file size and modification date) is the same. To do that, you "
2511 "need to add the I<--checksum> parameter to both C<virt-ls> commands. I<--"
2512 "checksum> can be quite slow since it has to read and compute a checksum of "
2513 "every regular file in the virtual machine."
2517 #: ../cat/virt-ls.pod:84
2518 msgid "OUTPUT MODES"
2519 msgstr "РЕЖИМИ ВИВЕДЕННЯ ДАНИХ"
2522 #: ../cat/virt-ls.pod:86
2524 "C<virt-ls> has four output modes, controlled by different combinations of "
2525 "the I<-l> and I<-R> options."
2529 #: ../cat/virt-ls.pod:89
2530 msgid "SIMPLE LISTING"
2531 msgstr "ПРОСТИЙ СПИСОК"
2534 #: ../cat/virt-ls.pod:91
2535 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2539 #: ../cat/virt-ls.pod:93
2542 " $ virt-ls -d guest /\n"
2548 " $ virt-ls -d guest /\n"
2555 #: ../cat/virt-ls.pod:98
2556 msgid "LONG LISTING"
2557 msgstr "ДОВГИЙ СПИСОК"
2560 #: ../cat/virt-ls.pod:100
2562 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2563 "(more specifically, like the C<guestfs_ll> function)."
2567 #: ../cat/virt-ls.pod:103
2570 " $ virt-ls -l -d guest /\n"
2572 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
2573 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
2577 " $ virt-ls -l -d guest /\n"
2579 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
2580 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
2585 #: ../cat/virt-ls.pod:109
2587 "Note that while this is useful for displaying a directory, do not try "
2588 "parsing this output in another program. Use L</RECURSIVE LONG LISTING> "
2593 #: ../cat/virt-ls.pod:113
2594 msgid "RECURSIVE LISTING"
2595 msgstr "РЕКУРСИВНИЙ СПИСОК"
2598 #: ../cat/virt-ls.pod:115
2600 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2601 "and directories recursively:"
2605 #: ../cat/virt-ls.pod:118
2608 " $ virt-ls -R -d guest /tmp\n"
2614 " $ virt-ls -R -d guest /tmp\n"
2621 #: ../cat/virt-ls.pod:123
2623 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2624 "converts C<\\0> characters to C<\\n>."
2628 #: ../cat/virt-ls.pod:126
2629 msgid "RECURSIVE LONG LISTING"
2630 msgstr "РЕКУРСИВНИЙ ДОВГИЙ СПИСОК"
2633 #: ../cat/virt-ls.pod:128
2635 "Using I<-lR> options together changes the output to display directories "
2636 "recursively, with file stats, and optionally other features such as "
2637 "checksums and extended attributes."
2641 #: ../cat/virt-ls.pod:132
2643 "Most of the interesting features of C<virt-ls> are only available when using "
2648 #: ../cat/virt-ls.pod:135
2650 "The fields are normally space-separated. Filenames are B<not> quoted, so "
2651 "you cannot use the output in another program (because filenames can contain "
2652 "spaces and other unsafe characters). If the guest was untrusted and someone "
2653 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2654 "on you by creating filenames with embedded newline characters. To B<safely> "
2655 "parse the output in another program, use the I<--csv> (Comma-Separated "
2660 #: ../cat/virt-ls.pod:143
2662 "Note that this output format is completely unrelated to the C<ls -lR> "
2667 #: ../cat/virt-ls.pod:146
2670 " $ virt-ls -lR -d guest /bin\n"
2671 " d 0555 4096 /bin\n"
2672 " - 0755 123 /bin/alsaunmute\n"
2673 " - 0755 28328 /bin/arch\n"
2674 " l 0777 4 /bin/awk -> gawk\n"
2675 " - 0755 27216 /bin/basename\n"
2676 " - 0755 943360 /bin/bash\n"
2680 " $ virt-ls -lR -d guest /bin\n"
2681 " d 0555 4096 /bin\n"
2682 " - 0755 123 /bin/alsaunmute\n"
2683 " - 0755 28328 /bin/arch\n"
2684 " l 0777 4 /bin/awk -> gawk\n"
2685 " - 0755 27216 /bin/basename\n"
2686 " - 0755 943360 /bin/bash\n"
2691 #: ../cat/virt-ls.pod:155
2692 msgid "These basic fields are always shown:"
2696 #: ../cat/virt-ls.pod:159
2701 #: ../cat/virt-ls.pod:161
2703 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2704 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2705 "link), C<s> (socket) or C<u> (unknown)."
2709 #: ../cat/virt-ls.pod:171
2711 msgstr "права доступу"
2714 #: ../cat/virt-ls.pod:173
2715 msgid "The Unix permissions, displayed as a 4 digit octal number."
2719 #: ../cat/virt-ls.pod:175
2724 #: ../cat/virt-ls.pod:177
2726 "The size of the file. This is shown in bytes unless I<-h> or I<--human-"
2727 "readable> option is given, in which case this is shown as a human-readable "
2732 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4380
2737 #: ../cat/virt-ls.pod:183
2738 msgid "The full path of the file or directory."
2742 #: ../cat/virt-ls.pod:185
2747 #: ../cat/virt-ls.pod:187
2748 msgid "For symbolic links only, the link target."
2752 #: ../cat/virt-ls.pod:191
2754 "In I<-lR> mode, additional command line options enable the display of more "
2759 #: ../cat/virt-ls.pod:194
2761 "With the I<--uids> flag, these additional fields are displayed before the "
2766 #: ../cat/virt-ls.pod:199
2771 #: ../cat/virt-ls.pod:201
2776 #: ../cat/virt-ls.pod:203
2778 "The UID and GID of the owner of the file (displayed numerically). Note "
2779 "these only make sense in the context of a Unix-like guest."
2783 #: ../cat/virt-ls.pod:208
2784 msgid "With the I<--times> flag, these additional fields are displayed:"
2788 #: ../cat/virt-ls.pod:212
2793 #: ../cat/virt-ls.pod:214
2794 msgid "The time of last access."
2795 msgstr "Час останнього доступу."
2798 #: ../cat/virt-ls.pod:216
2803 #: ../cat/virt-ls.pod:218
2804 msgid "The time of last modification."
2805 msgstr "Час останнього внесення змін."
2808 #: ../cat/virt-ls.pod:220
2813 #: ../cat/virt-ls.pod:222
2814 msgid "The time of last status change."
2815 msgstr "Час останньої зміни стану."
2818 #: ../cat/virt-ls.pod:226
2820 "The time fields are displayed as string dates and times, unless one of the "
2821 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2825 #: ../cat/virt-ls.pod:229
2826 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2830 #: ../cat/virt-ls.pod:233
2835 #: ../cat/virt-ls.pod:235
2837 "The device containing the file (displayed as major:minor). This may not "
2838 "match devices as known to the guest."
2842 #: ../cat/virt-ls.pod:238
2847 #: ../cat/virt-ls.pod:240
2848 msgid "The inode number."
2852 #: ../cat/virt-ls.pod:242
2857 #: ../cat/virt-ls.pod:244
2858 msgid "The number of hard links."
2859 msgstr "Кількість жорстких посилань."
2862 #: ../cat/virt-ls.pod:246
2867 #: ../cat/virt-ls.pod:248
2869 "For block and char special files, the device (displayed as major:minor)."
2873 #: ../cat/virt-ls.pod:251
2878 #: ../cat/virt-ls.pod:253
2879 msgid "The number of 512 byte blocks allocated to the file."
2883 #: ../cat/virt-ls.pod:257
2885 "With the I<--checksum> flag, the checksum of the file contents is shown "
2886 "(only for regular files). Computing file checksums can take a considerable "
2891 #: ../cat/virt-ls.pod:280
2892 msgid "B<--checksum>"
2893 msgstr "B<--checksum>"
2896 #: ../cat/virt-ls.pod:282
2897 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2898 msgstr "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2901 #: ../cat/virt-ls.pod:284
2903 "Display checksum over file contents for regular files. With no argument, "
2904 "this defaults to using I<md5>. Using an argument, you can select the "
2905 "checksum type to use."
2909 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2910 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2911 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2913 "This option only has effect in I<-lR> output mode. See L</RECURSIVE LONG "
2918 #: ../cat/virt-ls.pod:316
2920 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2921 "so you cannot see what you are typing. If you are not worried about Tempest "
2922 "attacks and there is no one else in the room you can specify this flag to "
2923 "see what you are typing."
2927 #: ../cat/virt-ls.pod:321
2928 msgid "B<--extra-stats>"
2929 msgstr "B<--extra-stats>"
2932 #: ../cat/virt-ls.pod:323
2933 msgid "Display extra stats."
2934 msgstr "Показати додаткові дані."
2937 #: ../cat/virt-ls.pod:339
2940 " virt-ls --format=raw -a disk.img /dir\n"
2945 #: ../cat/virt-ls.pod:343
2948 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2953 #: ../cat/virt-ls.pod:356
2954 msgid "Display file sizes in human-readable format."
2958 #: ../cat/virt-ls.pod:370
2963 #: ../cat/virt-ls.pod:372
2964 msgid "B<--recursive>"
2965 msgstr "B<--recursive>"
2968 #: ../cat/virt-ls.pod:374
2970 "Select the mode. With neither of these options, C<virt-ls> produces a "
2971 "simple, flat list of the files in the named directory. See L</SIMPLE "
2976 #: ../cat/virt-ls.pod:378
2978 "C<virt-ls -l> produces a \"long listing\", which shows more detail. See L</"
2983 #: ../cat/virt-ls.pod:381
2985 "C<virt-ls -R> produces a recursive list of files starting at the named "
2986 "directory. See L</RECURSIVE LISTING>."
2990 #: ../cat/virt-ls.pod:384
2992 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2993 "parsed. See L</RECURSIVE LONG LISTING>."
2997 #: ../cat/virt-ls.pod:387
3002 #: ../cat/virt-ls.pod:389
3003 msgid "Display time fields."
3007 #: ../cat/virt-ls.pod:394
3008 msgid "B<--time-days>"
3009 msgstr "B<--time-days>"
3012 #: ../cat/virt-ls.pod:396
3013 msgid "Display time fields as days before now (negative if in the future)."
3017 #: ../cat/virt-ls.pod:398
3019 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
3020 "of the file is between 0 and 86399 seconds."
3024 #: ../cat/virt-ls.pod:404
3025 msgid "B<--time-relative>"
3026 msgstr "B<--time-relative>"
3029 #: ../cat/virt-ls.pod:406
3030 msgid "Display time fields as seconds before now (negative if in the future)."
3034 #: ../cat/virt-ls.pod:411
3036 msgstr "B<--time-t>"
3039 #: ../cat/virt-ls.pod:413
3040 msgid "Display time fields as seconds since the Unix epoch."
3044 #: ../cat/virt-ls.pod:418
3049 #: ../cat/virt-ls.pod:420
3050 msgid "Display UID and GID fields."
3054 #: ../cat/virt-ls.pod:445
3055 msgid "Previous versions of virt-ls allowed you to write either:"
3059 #: ../cat/virt-ls.pod:447
3062 " virt-ls disk.img [disk.img ...] /dir\n"
3067 #: ../cat/virt-ls.pod:451
3070 " virt-ls guestname /dir\n"
3075 #: ../cat/virt-ls.pod:497
3077 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
3078 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3079 "L<http://libguestfs.org/>."
3081 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
3082 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3083 "L<http://libguestfs.org/>."
3086 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
3087 #: ../rescue/virt-rescue.pod:302
3088 msgid "Copyright (C) 2009-2011 Red Hat Inc."
3089 msgstr "©Red Hat Inc., 2009–2011"
3092 #: ../clone/virt-sysprep.pod:5
3094 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
3098 #: ../clone/virt-sysprep.pod:9
3101 " virt-sysprep [--options] -d domname\n"
3106 #: ../clone/virt-sysprep.pod:11
3109 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
3114 #: ../clone/virt-sysprep.pod:15
3116 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
3117 "can be made from it. Steps in this process include removing SSH host keys, "
3118 "removing persistent network MAC configuration, and removing user accounts. "
3119 "Each step can be enabled or disabled as required."
3123 #: ../clone/virt-sysprep.pod:21
3125 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3126 "customization by the system administrator."
3130 #: ../clone/virt-sysprep.pod:24
3132 "Virt-sysprep modifies the guest or disk image I<in place>. The guest must "
3133 "be shut down. If you want to preserve the existing contents of the guest, "
3134 "you I<must copy or clone the disk first>. See L</COPYING AND CLONING> below."
3138 #: ../clone/virt-sysprep.pod:29
3140 "You do I<not> need to run virt-sysprep as root. In fact we'd generally "
3141 "recommend that you don't. The time you might want to run it as root is when "
3142 "you need root in order to access the disk image, but even in this case it "
3143 "would be better to change the permissions on the disk image to be writable "
3144 "as the non-root user running virt-sysprep."
3148 #: ../clone/virt-sysprep.pod:35
3150 "\"Sysprep\" stands for \"system preparation\" tool. The name comes from the "
3151 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3152 "machines in preparation for cloning them. Having said that, virt-sysprep "
3153 "does I<not> currently work on Microsoft Windows guests. We plan to support "
3154 "Windows sysprepping in a future version, and we already have code to do it."
3158 #: ../clone/virt-sysprep.pod:76
3159 msgid "B<--enable=...>"
3163 #: ../clone/virt-sysprep.pod:78
3165 "Choose which sysprep operations to perform. Give a comma-separated list of "
3166 "operations, for example:"
3170 #: ../clone/virt-sysprep.pod:81
3173 " --enable=ssh-hostkeys,udev-persistent-net\n"
3178 #: ../clone/virt-sysprep.pod:83
3180 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3184 #: ../clone/virt-sysprep.pod:85
3186 "If the I<--enable> option is not given, then we default to trying all "
3187 "possible sysprep operations. But some sysprep operations are skipped for "
3192 #: ../clone/virt-sysprep.pod:89
3194 "Use I<--list-operations> to list operations supported by a particular "
3195 "version of virt-sysprep."
3199 #: ../clone/virt-sysprep.pod:92
3201 "See L</OPERATIONS> below for a list and an explanation of each operation."
3205 #: ../clone/virt-sysprep.pod:106
3208 " virt-sysprep --format=raw -a disk.img\n"
3213 #: ../clone/virt-sysprep.pod:110
3216 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3221 #: ../clone/virt-sysprep.pod:119
3222 msgid "B<--hostname> newhostname"
3226 #: ../clone/virt-sysprep.pod:121
3228 "Change the hostname. See the L</hostname> operation below. If not given, "
3229 "defaults to C<localhost.localdomain>."
3233 #: ../clone/virt-sysprep.pod:124
3234 msgid "B<--list-operations>"
3238 #: ../clone/virt-sysprep.pod:126
3239 msgid "List the operations supported by the virt-sysprep program."
3243 #: ../clone/virt-sysprep.pod:128
3244 msgid "B<--selinux-relabel>"
3248 #: ../clone/virt-sysprep.pod:130
3249 msgid "B<--no-selinux-relabel>"
3253 #: ../clone/virt-sysprep.pod:132
3255 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots. "
3256 "I<--no-selinux-relabel> disables relabelling."
3260 #: ../clone/virt-sysprep.pod:135
3262 "The default is to try to detect if SELinux relabelling is required. See L</"
3263 "SELINUX RELABELLING> below for more details."
3267 #: ../clone/virt-sysprep.pod:156
3272 #: ../clone/virt-sysprep.pod:158
3274 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3275 "enabled>, although some are skipped depending on the type of guest."
3279 #: ../clone/virt-sysprep.pod:162
3281 "Operations can be individually enabled using the I<--enable> option. Use a "
3282 "comma-separated list, for example:"
3286 #: ../clone/virt-sysprep.pod:165
3289 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3294 #: ../clone/virt-sysprep.pod:167
3296 "To list the operations supported by the current version of virt-sysprep, use "
3297 "I<--list-operations>."
3301 #: ../clone/virt-sysprep.pod:170
3303 "Future versions of virt-sysprep may add more operations. If you are using "
3304 "virt-sysprep and want predictable behaviour, specify only the operations "
3305 "that you want to have enabled."
3309 #: ../clone/virt-sysprep.pod:174
3314 #: ../clone/virt-sysprep.pod:176
3315 msgid "Remove user at-jobs and cron-jobs."
3319 #: ../clone/virt-sysprep.pod:178
3320 msgid "dhcp-client-state"
3324 #: ../clone/virt-sysprep.pod:180
3325 msgid "Remove DHCP client leases."
3329 #: ../clone/virt-sysprep.pod:182
3330 msgid "dhcp-server-state"
3334 #: ../clone/virt-sysprep.pod:184
3335 msgid "Remove DHCP server leases."
3339 #: ../clone/virt-sysprep.pod:186
3344 #: ../clone/virt-sysprep.pod:188
3346 "Changes the hostname of the guest to the value given in the I<--hostname> "
3351 #: ../clone/virt-sysprep.pod:191
3353 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3354 "C<localhost.localdomain>."
3358 #: ../clone/virt-sysprep.pod:194
3363 #: ../clone/virt-sysprep.pod:196
3364 msgid "Remove many log files."
3368 #: ../clone/virt-sysprep.pod:198
3373 #: ../clone/virt-sysprep.pod:200
3374 msgid "Remove email from the local mail spool directory."
3378 #: ../clone/virt-sysprep.pod:202
3383 #: ../clone/virt-sysprep.pod:204
3385 "Remove HWADDR (hard-coded MAC address) configuration. For Fedora and Red "
3386 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3390 #: ../clone/virt-sysprep.pod:207
3395 #: ../clone/virt-sysprep.pod:209
3397 "Write some random bytes from the host into the random seed file of the guest."
3401 #: ../clone/virt-sysprep.pod:212
3402 msgid "See L</RANDOM SEED> below."
3406 #: ../clone/virt-sysprep.pod:214
3407 msgid "rhn-systemid"
3411 #: ../clone/virt-sysprep.pod:216
3412 msgid "Remove the RHN system ID."
3416 #: ../clone/virt-sysprep.pod:218
3421 #: ../clone/virt-sysprep.pod:220
3422 msgid "Remove the Smolt hardware UUID."
3426 #: ../clone/virt-sysprep.pod:222
3427 msgid "ssh-hostkeys"
3431 #: ../clone/virt-sysprep.pod:224
3432 msgid "Remove the SSH host keys in the guest."
3436 #: ../clone/virt-sysprep.pod:226
3438 "The SSH host keys are regenerated (differently) next time the guest is "
3443 #: ../clone/virt-sysprep.pod:229
3445 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3446 "stark warning about the host key changing:"
3450 #: ../clone/virt-sysprep.pod:232
3453 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3454 " @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @\n"
3455 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3456 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3461 #: ../clone/virt-sysprep.pod:237
3462 msgid "udev-persistent-net"
3466 #: ../clone/virt-sysprep.pod:239
3468 "Remove udev persistent net rules which map the guest's existing MAC address "
3469 "to a fixed ethernet device (eg. eth0)."
3473 #: ../clone/virt-sysprep.pod:242
3475 "After a guest is cloned, the MAC address usually changes. Since the old MAC "
3476 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3477 "is assigned to a new name (eg. eth1) and this is usually undesirable. "
3478 "Erasing the udev persistent net rules avoids this."
3482 #: ../clone/virt-sysprep.pod:247
3487 #: ../clone/virt-sysprep.pod:249
3488 msgid "Remove the utmp file."
3492 #: ../clone/virt-sysprep.pod:251
3494 "This records who is currently logged in on a machine. In modern Linux "
3495 "distros it is stored in a ramdisk and hence not part of the virtual "
3496 "machine's disk, but it was stored on disk in older distros."
3500 #: ../clone/virt-sysprep.pod:255
3505 #: ../clone/virt-sysprep.pod:257
3506 msgid "Remove the yum UUID."
3510 #: ../clone/virt-sysprep.pod:259
3512 "Yum creates a fresh UUID the next time it runs when it notices that the "
3513 "original UUID has been erased."
3517 #: ../clone/virt-sysprep.pod:262
3518 msgid "COPYING AND CLONING"
3522 #: ../clone/virt-sysprep.pod:264
3524 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3525 "prepare a template from which guests can be cloned. There are many "
3526 "different ways to achieve this using the virt tools, and this section is "
3527 "just an introduction."
3531 #: ../clone/virt-sysprep.pod:269
3532 msgid "A virtual machine (when switched off) consists of two parts:"
3536 #: ../clone/virt-sysprep.pod:273
3537 msgid "I<configuration>"
3541 #: ../clone/virt-sysprep.pod:275
3543 "The configuration or description of the guest. eg. The libvirt XML (see "
3544 "C<virsh dumpxml>), the running configuration of the guest, or another "
3545 "external format like OVF."
3549 #: ../clone/virt-sysprep.pod:279
3550 msgid "Some configuration items that might need to be changed:"
3554 #: ../clone/virt-sysprep.pod:285
3559 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3564 #: ../clone/virt-sysprep.pod:293
3565 msgid "path to block device(s)"
3569 #: ../clone/virt-sysprep.pod:297
3570 msgid "network card MAC address"
3574 #: ../clone/virt-sysprep.pod:301
3575 msgid "I<block device(s)>"
3579 #: ../clone/virt-sysprep.pod:303
3581 "One or more hard disk images, themselves containing files, directories, "
3582 "applications, kernels, configuration, etc."
3586 #: ../clone/virt-sysprep.pod:306
3587 msgid "Some things inside the block devices that might need to be changed:"
3591 #: ../clone/virt-sysprep.pod:312
3592 msgid "hostname and other net configuration"
3596 #: ../clone/virt-sysprep.pod:320
3597 msgid "SSH host keys"
3601 #: ../clone/virt-sysprep.pod:324
3602 msgid "Windows unique security ID (SID)"
3606 #: ../clone/virt-sysprep.pod:328
3607 msgid "Puppet registration"
3611 #: ../clone/virt-sysprep.pod:334
3612 msgid "COPYING THE BLOCK DEVICE"
3616 #: ../clone/virt-sysprep.pod:336
3618 "Starting with an original guest, you probably wish to copy the guest block "
3619 "device and its configuration to make a template. Then once you are happy "
3620 "with the template, you will want to make many clones from it."
3624 #: ../clone/virt-sysprep.pod:341
3630 " original guest --------> template ---------->\n"
3631 " \\------> cloned\n"
3632 " \\-----> guests\n"
3638 #: ../clone/virt-sysprep.pod:349
3640 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3645 #: ../clone/virt-sysprep.pod:352
3649 " original guest --------> template ---------->\n"
3650 " \\------> cloned\n"
3651 " \\-----> guests\n"
3657 #: ../clone/virt-sysprep.pod:358
3658 msgid "There are some smarter (and faster) ways too:"
3662 #: ../clone/virt-sysprep.pod:364
3666 " template ---------->\n"
3667 " \\------> cloned\n"
3668 " \\-----> guests\n"
3674 #: ../clone/virt-sysprep.pod:370
3676 "Use the block device as a backing file and create a snapshot on top for each "
3677 "guest. The advantage is that you don't need to copy the block device (very "
3678 "fast) and only changes are stored (less storage required)."
3682 #: ../clone/virt-sysprep.pod:375
3684 "Note that writing to the backing file once you have created guests on top of "
3685 "it is not possible: you will corrupt the guests."
3689 #: ../clone/virt-sysprep.pod:378
3691 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3692 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option). Some "
3693 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3694 "also create cheap snapshots from files or LUNs."
3698 #: ../clone/virt-sysprep.pod:386
3699 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3703 #: ../clone/virt-sysprep.pod:390
3704 msgid "Prepare your template using L<virt-sparsify(1)>. See below."
3708 #: ../clone/virt-sysprep.pod:394
3713 #: ../clone/virt-sysprep.pod:396
3715 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3716 "and/or modify the external libvirt configuration of a guest. It will reset "
3717 "the name, UUID and MAC address of the guest in the libvirt XML."
3721 #: ../clone/virt-sysprep.pod:401
3723 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3724 "image. This was the original motivation to write virt-sysprep."
3728 #: ../clone/virt-sysprep.pod:404
3733 #: ../clone/virt-sysprep.pod:406
3737 " original guest --------> template\n"
3742 #: ../clone/virt-sysprep.pod:409
3744 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3745 "it easier to compress and/or faster to copy."
3749 #: ../clone/virt-sysprep.pod:412
3751 "Notice that since virt-sparsify also copies the image, you can use it to "
3752 "make the initial copy (instead of C<dd>)."
3756 #: ../clone/virt-sysprep.pod:415
3761 #: ../clone/virt-sysprep.pod:417
3765 " template ---------->\n"
3766 " \\------> cloned\n"
3767 " \\-----> guests\n"
3773 #: ../clone/virt-sysprep.pod:423
3775 "If you want to give people cloned guests, but let them pick the size of the "
3776 "guest themselves (eg. depending on how much they are prepared to pay for "
3777 "disk space), then instead of copying the template, you can run L<virt-resize"
3778 "(1)>. Virt-resize performs a copy and resize, and thus is ideal for cloning "
3779 "guests from a template."
3783 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3788 #: ../clone/virt-sysprep.pod:431
3790 "Although virt-sysprep removes some sensitive information from the guest, it "
3791 "does not pretend to remove all of it. You should examine the L</OPERATIONS> "
3792 "above, and the implementation of the operations in the shell script. You "
3793 "should also examine the guest afterwards."
3797 #: ../clone/virt-sysprep.pod:436
3799 "Sensitive files are simply removed. The data they contained may still exist "
3800 "on the disk, easily recovered with a hex editor or undelete tool. Use "
3801 "L<virt-sparsify(1)> as one way to remove this content. See also the L<scrub"
3802 "(1)> command to get rid of deleted content in directory entries and inodes."
3806 #: ../clone/virt-sysprep.pod:442
3811 #: ../clone/virt-sysprep.pod:444
3812 msgid "I<(This section applies to Linux guests only)>"
3816 #: ../clone/virt-sysprep.pod:446
3818 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3819 "from the host into the guest's random seed file."
3823 #: ../clone/virt-sysprep.pod:449
3825 "If this is just done once and the guest is cloned from the same template, "
3826 "then each guest will start with the same entropy, and things like SSH host "
3827 "keys and TCP sequence numbers may be predictable."
3831 #: ../clone/virt-sysprep.pod:453
3833 "Therefore you should arrange to add more randomness I<after> cloning from a "
3834 "template too, which can be done by just enabling the C<random-seed> "
3839 #: ../clone/virt-sysprep.pod:457
3842 " cp template.img newguest.img\n"
3843 " virt-sysprep --enable=random-seed -a newguest.img\n"
3848 #: ../clone/virt-sysprep.pod:460
3849 msgid "SELINUX RELABELLING"
3853 #: ../clone/virt-sysprep.pod:462
3854 msgid "I<(This section applies to Linux guests using SELinux only)>"
3858 #: ../clone/virt-sysprep.pod:464
3860 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3861 "autorelabel> so that these will be correctly labelled by SELinux the next "
3862 "time the guest is booted. This process interrupts boot and can take some "
3867 #: ../clone/virt-sysprep.pod:469
3869 "You can force relabelling for all guests by supplying the I<--selinux-"
3874 #: ../clone/virt-sysprep.pod:472
3876 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3881 #: ../clone/virt-sysprep.pod:484
3882 msgid "This program returns 0 on success, or 1 if there was an error."
3886 #: ../clone/virt-sysprep.pod:488
3888 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3889 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3890 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3894 #: ../df/virt-df.pod:5
3895 msgid "virt-df - Display free space on virtual filesystems"
3899 #: ../df/virt-df.pod:9
3902 " virt-df [--options]\n"
3905 " virt-df [--параметри]\n"
3909 #: ../df/virt-df.pod:11
3912 " virt-df [--options] -d domname\n"
3917 #: ../df/virt-df.pod:13
3920 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3925 #: ../df/virt-df.pod:17
3928 " virt-df [--options] domname\n"
3933 #: ../df/virt-df.pod:19
3936 " virt-df [--options] disk.img [disk.img ...]\n"
3941 #: ../df/virt-df.pod:23
3943 "C<virt-df> is a command line tool to display free space on virtual machine "
3944 "filesystems. Unlike other tools, it doesn't just display the size of disk "
3945 "allocated to a virtual machine, but can look inside disk images to see how "
3946 "much space is really being used."
3950 #: ../df/virt-df.pod:28
3952 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3953 "to get a list of all active and inactive guests, and performs a C<df>-type "
3954 "operation on each one in turn, printing out the results."
3958 #: ../df/virt-df.pod:32
3960 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3961 "type operation on either the single named libvirt domain, or on the disk "
3962 "image(s) listed on the command line (which must all belong to a single VM). "
3963 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3964 "guest>. If you want to run on multiple guests, then you have to invoke "
3965 "C<virt-df> multiple times."
3969 #: ../df/virt-df.pod:39
3971 "Use the I<--csv> option to get a format which can be easily parsed by other "
3972 "programs. Other options are similar to the standard L<df(1)> command."
3976 #: ../df/virt-df.pod:45
3978 "Show disk usage for a single libvirt guest called C<F14x64>. Make the "
3979 "output human-readable:"
3983 #: ../df/virt-df.pod:48
3986 " # virt-df -d F14x64 -h\n"
3987 " Filesystem Size Used Available Use%\n"
3988 " F14x64:/dev/sda1 484M 66M 393M 14%\n"
3989 " F14x64:/dev/vg_f13x64/lv_root 7.4G 3.4G 4.0G 46%\n"
3994 #: ../df/virt-df.pod:53
3995 msgid "Show disk usage for a disk image file called C<test.img>:"
3999 #: ../df/virt-df.pod:55
4002 " $ virt-df -a test1.img\n"
4003 " Filesystem 1K-blocks Used Available Use%\n"
4004 " test1.img:/dev/sda1 99099 1551 92432 2%\n"
4009 #: ../df/virt-df.pod:112
4012 " virt-df --format=raw -a disk.img\n"
4017 #: ../df/virt-df.pod:116
4020 " virt-df --format=raw -a disk.img --format -a another.img\n"
4025 #: ../df/virt-df.pod:129
4026 msgid "Print sizes in human-readable format."
4030 #: ../df/virt-df.pod:131
4031 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
4035 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
4040 #: ../df/virt-df.pod:135
4042 msgstr "B<--inodes>"
4045 #: ../df/virt-df.pod:137
4046 msgid "Print inodes instead of blocks."
4050 #: ../df/virt-df.pod:139
4051 msgid "B<--one-per-guest>"
4052 msgstr "B<--one-per-guest>"
4055 #: ../df/virt-df.pod:141
4057 "Run one libguestfs appliance per guest. Normally C<virt-df> will add the "
4058 "disks from several guests to a single libguestfs appliance."
4062 #: ../df/virt-df.pod:144
4063 msgid "You might use this option in the following circumstances:"
4067 #: ../df/virt-df.pod:150
4069 "If you think an untrusted guest might actively try to exploit the libguestfs "
4070 "appliance kernel, then this prevents one guest from interfering with the "
4071 "stats printed for another guest."
4075 #: ../df/virt-df.pod:156
4077 "If the kernel has a bug which stops it from accessing a filesystem in one "
4078 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
4079 "and report stats for further guests."
4083 #: ../df/virt-df.pod:165
4085 "Print UUIDs instead of names. This is useful for following a guest even "
4086 "when the guest is migrated or renamed, or when two guests happen to have the "
4091 #: ../df/virt-df.pod:169
4093 "Note that only domains that we fetch from libvirt come with UUIDs. For disk "
4094 "images, we still print the disk image name even when this option is "
4099 #: ../df/virt-df.pod:229
4101 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4106 #: ../edit/virt-edit.pod:5
4107 msgid "virt-edit - Edit a file in a virtual machine"
4111 #: ../edit/virt-edit.pod:9
4114 " virt-edit [--options] -d domname file [file ...]\n"
4119 #: ../edit/virt-edit.pod:11
4122 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4127 #: ../edit/virt-edit.pod:13
4130 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4135 #: ../edit/virt-edit.pod:17
4138 " virt-edit domname file\n"
4143 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4146 " virt-edit disk.img [disk.img ...] file\n"
4151 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4152 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4153 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
4154 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4156 msgstr "ПОПЕРЕДЖЕННЯ"
4159 #: ../edit/virt-edit.pod:23
4161 "You must I<not> use C<virt-edit> on live virtual machines. If you do this, "
4162 "you risk disk corruption in the VM. C<virt-edit> tries to stop you from "
4163 "doing this, but doesn't catch all cases."
4167 #: ../edit/virt-edit.pod:29
4169 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4170 "exists in the named virtual machine (or disk image)."
4174 #: ../edit/virt-edit.pod:32
4176 "Multiple filenames can be given, in which case they are each edited in "
4177 "turn. Each filename must be a full path, starting at the root directory "
4178 "(starting with '/')."
4182 #: ../edit/virt-edit.pod:36
4183 msgid "If you want to just view a file, use L<virt-cat(1)>."
4187 #: ../edit/virt-edit.pod:38
4189 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4190 "USING GUESTFISH> below)."
4194 #: ../edit/virt-edit.pod:41
4196 "C<virt-edit> cannot be used to create a new file. L<guestfish(1)> can do "
4197 "that and much more."
4201 #: ../edit/virt-edit.pod:46
4202 msgid "Edit the named files interactively:"
4206 #: ../edit/virt-edit.pod:48
4209 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4214 #: ../edit/virt-edit.pod:50
4217 " virt-edit -d mydomain /etc/passwd\n"
4222 #: ../edit/virt-edit.pod:52
4223 msgid "For Windows guests, some Windows paths are understood:"
4227 #: ../edit/virt-edit.pod:54
4230 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4235 #: ../edit/virt-edit.pod:56
4237 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4238 "INTERACTIVE EDITING> below). To change the init default level to 5:"
4242 #: ../edit/virt-edit.pod:60
4245 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4250 #: ../edit/virt-edit.pod:81
4251 msgid "B<-b> extension"
4255 #: ../edit/virt-edit.pod:83
4256 msgid "B<--backup> extension"
4260 #: ../edit/virt-edit.pod:85
4262 "Create a backup of the original file I<in the guest disk image>. The backup "
4263 "has the original filename with C<extension> added."
4267 #: ../edit/virt-edit.pod:88
4269 "Usually the first character of C<extension> would be a dot C<.> so you would "
4274 #: ../edit/virt-edit.pod:91
4277 " virt-edit -b .orig [etc]\n"
4282 #: ../edit/virt-edit.pod:93
4283 msgid "By default, no backup file is made."
4287 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4288 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4289 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4290 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4292 msgstr "B<-c адреса>"
4295 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4296 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4297 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4298 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4299 msgid "B<--connect URI>"
4300 msgstr "B<--connect адреса>"
4303 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4304 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4305 #: ../tools/virt-win-reg.pl:135
4307 "If you specify guest block devices directly, then libvirt is not used at all."
4311 #: ../edit/virt-edit.pod:114
4313 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4314 "off so you cannot see what you are typing. If you are not worried about "
4315 "Tempest attacks and there is no one else in the room you can specify this "
4316 "flag to see what you are typing."
4320 #: ../edit/virt-edit.pod:119
4322 msgstr "B<-e> вираз"
4325 #: ../edit/virt-edit.pod:121
4326 msgid "B<--expr> EXPR"
4327 msgstr "B<--expr> вираз"
4330 #: ../edit/virt-edit.pod:123
4332 "Instead of launching the external editor, non-interactively apply the Perl "
4333 "expression C<EXPR> to each line in the file. See L</NON-INTERACTIVE "
4338 #: ../edit/virt-edit.pod:127
4340 "Be careful to properly quote the expression to prevent it from being altered "
4345 #: ../edit/virt-edit.pod:130
4346 msgid "Note that this option is only available when Perl 5 is installed."
4350 #: ../edit/virt-edit.pod:132
4351 msgid "B<--format> raw|qcow2|..."
4352 msgstr "B<--format> raw|qcow2|..."
4355 #: ../edit/virt-edit.pod:143
4358 " virt-edit --format=raw -a disk.img file\n"
4363 #: ../edit/virt-edit.pod:147
4366 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4371 #: ../edit/virt-edit.pod:181
4372 msgid "Previous versions of virt-edit allowed you to write either:"
4376 #: ../edit/virt-edit.pod:187
4379 " virt-edit guestname file\n"
4384 #: ../edit/virt-edit.pod:195
4385 msgid "NON-INTERACTIVE EDITING"
4386 msgstr "НЕІНТЕРАКТИВНЕ РЕДАГУВАННЯ"
4389 #: ../edit/virt-edit.pod:197
4391 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4392 "administrator can interactively edit the file."
4396 #: ../edit/virt-edit.pod:200
4398 "There are two ways also to use C<virt-edit> from scripts in order to make "
4399 "automated edits to files. (Note that although you I<can> use C<virt-edit> "
4400 "like this, it's less error-prone to write scripts directly using the "
4401 "libguestfs API and Augeas for configuration file editing.)"
4405 #: ../edit/virt-edit.pod:206
4407 "The first method is to temporarily set C<$EDITOR> to any script or program "
4408 "you want to run. The script is invoked as C<$EDITOR tmpfile> and it should "
4409 "update C<tmpfile> in place however it likes."
4413 #: ../edit/virt-edit.pod:210
4415 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4416 "short Perl snippet in the style of L<sed(1)>. For example to replace all "
4417 "instances of C<foo> with C<bar> in a file:"
4421 #: ../edit/virt-edit.pod:214
4424 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4429 #: ../edit/virt-edit.pod:216
4431 "The full power of Perl regular expressions can be used (see L<perlre(1)>). "
4432 "For example to delete root's password you could do:"
4436 #: ../edit/virt-edit.pod:219
4439 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4442 " virt-edit -d назва_домену /etc/passwd -e 's/^root:.*?:/root::/'\n"
4446 #: ../edit/virt-edit.pod:221
4448 "What really happens is that the snippet is evaluated as a Perl expression "
4449 "for each line of the file. The line, including the final C<\\n>, is passed "
4450 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4454 #: ../edit/virt-edit.pod:226
4456 "To delete a line, set C<$_> to the empty string. For example, to delete the "
4457 "C<apache> user account from the password file you can do:"
4461 #: ../edit/virt-edit.pod:229
4464 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4467 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4471 #: ../edit/virt-edit.pod:231
4473 "To insert a line, prepend or append it to C<$_>. However appending lines to "
4474 "the end of the file is rather difficult this way since there is no concept "
4475 "of \"last line of the file\" - your expression just doesn't get called "
4476 "again. You might want to use the first method (setting C<$EDITOR>) if you "
4481 #: ../edit/virt-edit.pod:237
4483 "The variable C<$lineno> contains the current line number. As is "
4484 "traditional, the first line in the file is number C<1>."
4488 #: ../edit/virt-edit.pod:240
4490 "The return value from the expression is ignored, but the expression may call "
4491 "C<die> in order to abort the whole program, leaving the original file "
4496 #: ../edit/virt-edit.pod:244
4498 "Remember when matching the end of a line that C<$_> may contain the final C<"
4499 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4500 "newline then neither of these. Thus to match or substitute some text at the "
4501 "end of a line, use this regular expression:"
4505 #: ../edit/virt-edit.pod:249
4508 " /some text(\\r?\\n)?$/\n"
4511 " /якийсь текст(\\r?\\n)?$/\n"
4515 #: ../edit/virt-edit.pod:251
4517 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4518 "$_> itself (since that would remove all newlines from the file):"
4522 #: ../edit/virt-edit.pod:255
4525 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4528 " my $m = $_; chomp $m; $m =~ /якийсь текст$/\n"
4532 #: ../edit/virt-edit.pod:259
4534 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4535 "paths (eg. C<E:\\foo\\bar.txt>)."
4539 #: ../edit/virt-edit.pod:278
4541 "The path is resolved case insensitively to locate the file that should be "
4546 #: ../edit/virt-edit.pod:299
4548 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4549 "C<virt-edit> doesn't work."
4553 #: ../edit/virt-edit.pod:302
4554 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4558 #: ../edit/virt-edit.pod:304
4561 " guestfish --rw -i -d domname edit /file\n"
4566 #: ../edit/virt-edit.pod:306
4568 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4573 #: ../edit/virt-edit.pod:309
4575 "The command above uses libguestfs's guest inspection feature and so does not "
4576 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4577 "disk images that don't contain guests. To edit a file on a disk image "
4582 #: ../edit/virt-edit.pod:314
4585 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4590 #: ../edit/virt-edit.pod:316
4592 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4593 "the disk image to edit, and C</file> is the full path to the file."
4597 #: ../edit/virt-edit.pod:320
4599 "C<virt-edit> cannot create new files. Use the guestfish commands C<touch>, "
4600 "C<write> or C<upload> instead:"
4604 #: ../edit/virt-edit.pod:323
4607 " guestfish --rw -i -d domname touch /newfile\n"
4612 #: ../edit/virt-edit.pod:325
4615 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4620 #: ../edit/virt-edit.pod:327
4623 " guestfish --rw -i -d domname upload localfile /newfile\n"
4628 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4629 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
4630 #: ../src/guestfs.pod:3209 ../test-tool/libguestfs-test-tool.pod:95
4631 msgid "ENVIRONMENT VARIABLES"
4632 msgstr "ЗМІННІ СЕРЕДОВИЩА"
4635 #: ../edit/virt-edit.pod:333
4640 #: ../edit/virt-edit.pod:335
4642 "If set, this string is used as the editor. It may contain arguments, eg. C<"
4647 #: ../edit/virt-edit.pod:338
4648 msgid "If not set, C<vi> is used."
4652 #: ../edit/virt-edit.pod:356
4654 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4655 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4656 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4658 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4659 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4660 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4663 #: ../erlang/examples/guestfs-erlang.pod:5
4664 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4668 #: ../erlang/examples/guestfs-erlang.pod:9
4671 " {ok, G} = guestfs:create(),\n"
4672 " ok = guestfs:add_drive_opts(G, Disk,\n"
4673 " [{format, \"raw\"}, {readonly, true}]),\n"
4674 " ok = guestfs:launch(G),\n"
4675 " [Device] = guestfs:list_devices(G),\n"
4676 " ok = guestfs:close(G).\n"
4681 #: ../erlang/examples/guestfs-erlang.pod:18
4683 "This manual page documents how to call libguestfs from the Erlang "
4684 "programming language. This page just documents the differences from the C "
4685 "API and gives some examples. If you are not familiar with using libguestfs, "
4686 "you also need to read L<guestfs(3)>."
4690 #: ../erlang/examples/guestfs-erlang.pod:23
4691 msgid "OPENING AND CLOSING THE HANDLE"
4695 #: ../erlang/examples/guestfs-erlang.pod:25
4697 "The Erlang bindings are implemented using an external program called C<erl-"
4698 "guestfs>. This program must be on the current PATH, or else you should "
4699 "specify the full path to the program:"
4703 #: ../erlang/examples/guestfs-erlang.pod:29
4706 " {ok, G} = guestfs:create().\n"
4711 #: ../erlang/examples/guestfs-erlang.pod:31
4714 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4719 #: ../erlang/examples/guestfs-erlang.pod:33
4720 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4724 #: ../erlang/examples/guestfs-erlang.pod:36
4725 msgid "To close the handle:"
4729 #: ../erlang/examples/guestfs-erlang.pod:38
4732 " ok = guestfs:close(G).\n"
4737 #: ../erlang/examples/guestfs-erlang.pod:40
4738 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4742 #: ../erlang/examples/guestfs-erlang.pod:42
4744 "For functions that take optional arguments, the first arguments are the non-"
4745 "optional ones. The last argument is a list of tuples supplying the "
4746 "remaining optional arguments."
4750 #: ../erlang/examples/guestfs-erlang.pod:46
4753 " ok = guestfs:add_drive_opts(G, Disk,\n"
4754 " [{format, \"raw\"}, {readonly, true}]).\n"
4759 #: ../erlang/examples/guestfs-erlang.pod:49
4760 msgid "If the last argument would be an empty list, you can also omit it:"
4764 #: ../erlang/examples/guestfs-erlang.pod:51
4767 " ok = guestfs:add_drive_opts(G, Disk).\n"
4772 #: ../erlang/examples/guestfs-erlang.pod:53
4773 msgid "RETURN VALUES AND ERRORS"
4777 #: ../erlang/examples/guestfs-erlang.pod:55
4779 "On success, most functions return a C<Result> term (which could be a list, "
4780 "string, tuple etc.). If there is nothing for the function to return, then "
4781 "the atom C<ok> is returned."
4785 #: ../erlang/examples/guestfs-erlang.pod:59
4786 msgid "On error, you would see one of the following tuples:"
4790 #: ../erlang/examples/guestfs-erlang.pod:63
4791 msgid "C<{error, Msg, Errno}>"
4795 #: ../erlang/examples/guestfs-erlang.pod:65
4796 msgid "This indicates an ordinary error from the function."
4800 #: ../erlang/examples/guestfs-erlang.pod:67
4802 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4807 #: ../erlang/examples/guestfs-erlang.pod:70
4808 msgid "C<Errno> can be zero. See L<guestfs(3)/guestfs_last_errno>."
4812 #: ../erlang/examples/guestfs-erlang.pod:72
4813 msgid "C<{unknown, Function}>"
4817 #: ../erlang/examples/guestfs-erlang.pod:74
4819 "This indicates that the function you called is not known. Generally this "
4820 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4821 "which you should not do."
4825 #: ../erlang/examples/guestfs-erlang.pod:78
4826 msgid "C<Function> is the name of the unknown function."
4830 #: ../erlang/examples/guestfs-erlang.pod:80
4831 msgid "C<{unknownarg, Arg}>"
4835 #: ../erlang/examples/guestfs-erlang.pod:82
4837 "This indicates that you called a function with optional arguments, with an "
4838 "unknown argument name."
4842 #: ../erlang/examples/guestfs-erlang.pod:85
4843 msgid "C<Arg> is the name of the unknown argument."
4847 #: ../erlang/examples/guestfs-erlang.pod:89
4848 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4849 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4850 #: ../python/examples/guestfs-python.pod:34
4851 #: ../ruby/examples/guestfs-ruby.pod:28
4852 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4853 msgstr "ПРИКЛАД 1. СТВОРЕННЯ ОБРАЗУ ДИСКА"
4856 #: ../erlang/examples/guestfs-erlang.pod:91
4857 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4858 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4859 #: ../python/examples/guestfs-python.pod:36
4860 #: ../ruby/examples/guestfs-ruby.pod:30
4865 #: ../erlang/examples/guestfs-erlang.pod:93
4866 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4867 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4868 #: ../python/examples/guestfs-python.pod:38
4869 #: ../ruby/examples/guestfs-ruby.pod:32
4870 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4871 msgstr "ПРИКЛАД 2. ПЕРЕВІРКА ОБРАЗУ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
4874 #: ../erlang/examples/guestfs-erlang.pod:95
4875 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4876 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4877 #: ../python/examples/guestfs-python.pod:40
4878 #: ../ruby/examples/guestfs-ruby.pod:34
4883 #: ../erlang/examples/guestfs-erlang.pod:99
4885 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4886 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4887 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>."
4891 #: ../erlang/examples/guestfs-erlang.pod:110
4892 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4893 #: ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60
4894 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4895 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
4896 #: ../inspector/virt-inspector.pod:404 ../java/examples/guestfs-java.pod:58
4897 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4898 #: ../python/examples/guestfs-python.pod:54
4899 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3348
4900 #: ../test-tool/libguestfs-test-tool.pod:106
4905 #: ../erlang/examples/guestfs-erlang.pod:112
4906 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4907 #: ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62
4908 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4909 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
4910 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4911 #: ../perl/examples/guestfs-perl.pod:54
4912 #: ../python/examples/guestfs-python.pod:56
4913 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3350
4914 #: ../test-tool/libguestfs-test-tool.pod:108
4915 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4916 msgstr "Richard W.M. Jones (C<rjones at redhat dot com>)"
4919 #: ../erlang/examples/guestfs-erlang.pod:116
4920 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4921 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4925 #: ../erlang/examples/guestfs-erlang.pod:118
4926 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4927 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4928 #: ../perl/examples/guestfs-perl.pod:60
4929 #: ../python/examples/guestfs-python.pod:62
4930 #: ../ruby/examples/guestfs-ruby.pod:56
4932 "The examples in this manual page may be freely copied, modified and "
4933 "distributed without any restrictions."
4937 #: ../erlang/examples/guestfs-erlang.pod:121
4938 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4939 #: ../java/examples/guestfs-java.pod:69
4940 #: ../ocaml/examples/guestfs-ocaml.pod:102
4941 #: ../perl/examples/guestfs-perl.pod:63
4942 #: ../python/examples/guestfs-python.pod:65
4943 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3357
4945 "This library is free software; you can redistribute it and/or modify it "
4946 "under the terms of the GNU Lesser General Public License as published by the "
4947 "Free Software Foundation; either version 2 of the License, or (at your "
4948 "option) any later version."
4952 #: ../erlang/examples/guestfs-erlang.pod:126
4953 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4954 #: ../java/examples/guestfs-java.pod:74
4955 #: ../ocaml/examples/guestfs-ocaml.pod:107
4956 #: ../perl/examples/guestfs-perl.pod:68
4957 #: ../python/examples/guestfs-python.pod:70
4958 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3362
4960 "This library is distributed in the hope that it will be useful, but WITHOUT "
4961 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4962 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License "
4967 #: ../erlang/examples/guestfs-erlang.pod:131
4968 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4969 #: ../java/examples/guestfs-java.pod:79
4970 #: ../ocaml/examples/guestfs-ocaml.pod:112
4971 #: ../perl/examples/guestfs-perl.pod:73
4972 #: ../python/examples/guestfs-python.pod:75
4973 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3367
4975 "You should have received a copy of the GNU Lesser General Public License "
4976 "along with this library; if not, write to the Free Software Foundation, "
4977 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4981 #: ../examples/guestfs-examples.pod:5
4982 msgid "guestfs-examples - Examples of using libguestfs from C"
4986 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4989 " #include <guestfs.h>\n"
4992 " #include <guestfs.h>\n"
4996 #: ../examples/guestfs-examples.pod:11
4999 " guestfs_h *g = guestfs_create ();\n"
5000 " guestfs_add_drive_ro (g, \"disk.img\");\n"
5001 " guestfs_launch (g);\n"
5004 " guestfs_h *g = guestfs_create ();\n"
5005 " guestfs_add_drive_ro (g, \"disk.img\");\n"
5006 " guestfs_launch (g);\n"
5010 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
5013 " cc prog.c -o prog -lguestfs\n"
5015 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5018 " cc prog.c -o prog -lguestfs\n"
5020 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5024 #: ../examples/guestfs-examples.pod:21
5026 "This manual page contains examples of calling libguestfs from the C "
5027 "programming language. If you are not familiar with using libguestfs, you "
5028 "also need to read L<guestfs(3)>."
5032 #: ../examples/guestfs-examples.pod:35
5034 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
5035 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
5036 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5040 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
5041 #: ../python/examples/guestfs-python.pod:60
5042 #: ../ruby/examples/guestfs-ruby.pod:54
5043 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
5047 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
5052 #: ../examples/guestfs-recipes.pod:5
5054 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
5055 "here. The only way which works for both sorts of output is to just write "
5056 "the URL directly. Do NOT use L<...> for URLs."
5060 #: ../examples/guestfs-recipes.pod:9
5062 "We break with tradition here and don't use ALL CAPS for the section "
5063 "headings, as this makes them much easier to read."
5067 #: ../examples/guestfs-recipes.pod:16
5068 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
5072 #: ../examples/guestfs-recipes.pod:20
5074 "This page contains recipes for and links to things you can do using "
5075 "libguestfs, L<guestfish(1)> and the virt tools."
5079 #: ../examples/guestfs-recipes.pod:23
5080 msgid "Audit a virtual machine for setuid files"
5084 #: ../examples/guestfs-recipes.pod:25
5086 "The link below contains a small program which can be used to audit a Linux "
5087 "virtual machine to see what setuid and setgid files it contains."
5091 #: ../examples/guestfs-recipes.pod:28
5093 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
5098 #: ../examples/guestfs-recipes.pod:30
5099 msgid "Change the background image in a Windows XP VM"
5103 #: ../examples/guestfs-recipes.pod:32
5105 "The links below explain how to use L<guestfish(1)> to change the background "
5106 "image for a user of a Windows XP VM. Unfortunately the technique appears to "
5107 "be substantially different for each version of Windows."
5111 #: ../examples/guestfs-recipes.pod:37
5113 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
5114 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
5118 #: ../examples/guestfs-recipes.pod:40
5119 msgid "Cloning a virtual machine (Linux)"
5123 #: ../examples/guestfs-recipes.pod:42
5125 "The guestfish technique described in the link below works well for most "
5126 "Linux VMs. Depending on the Linux distro you may need to change the paths "
5131 #: ../examples/guestfs-recipes.pod:46
5133 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5138 #: ../examples/guestfs-recipes.pod:48
5140 "Avoid L<virt-clone(1)>. Currently what to do about virt-clone is under "
5145 #: ../examples/guestfs-recipes.pod:51
5146 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5150 #: ../examples/guestfs-recipes.pod:53
5151 msgid "Cloning a virtual machine (Windows)"
5155 #: ../examples/guestfs-recipes.pod:55
5157 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5158 "straightforward. Currently there is code in the Aeolus Oz project which "
5159 "does this (using libguestfs). As part of our review of the virt-clone tool, "
5160 "we may add sysprepping ability."
5164 #: ../examples/guestfs-recipes.pod:60
5166 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5167 "list/2011-May/msg00019.html"
5171 #: ../examples/guestfs-recipes.pod:63
5172 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5176 #: ../examples/guestfs-recipes.pod:65
5177 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5181 #: ../examples/guestfs-recipes.pod:67
5184 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5189 #: ../examples/guestfs-recipes.pod:69
5190 msgid "To export just a subdirectory, eg. C</files>, do:"
5194 #: ../examples/guestfs-recipes.pod:71
5197 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5202 #: ../examples/guestfs-recipes.pod:73
5203 msgid "Create empty disk images"
5207 #: ../examples/guestfs-recipes.pod:75
5209 "You can use the L<guestfish(1)> I<-N> option to create empty disk images. "
5210 "The useful guide below explains the options available."
5214 #: ../examples/guestfs-recipes.pod:78
5216 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5221 #: ../examples/guestfs-recipes.pod:80
5222 msgid "Dump raw filesystem content from inside a disk image or VM"
5226 #: ../examples/guestfs-recipes.pod:82
5228 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5229 "filesystem content from any filesystem in a disk image or a VM (even one "
5230 "which is encrypted or buried inside an LV):"
5234 #: ../examples/guestfs-recipes.pod:86
5237 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5242 #: ../examples/guestfs-recipes.pod:88
5245 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5250 #: ../examples/guestfs-recipes.pod:90
5251 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5255 #: ../examples/guestfs-recipes.pod:92
5256 msgid "Edit grub configuration in a VM"
5260 #: ../examples/guestfs-recipes.pod:94
5261 msgid "You can use this to:"
5265 #: ../examples/guestfs-recipes.pod:100
5266 msgid "Fix a virtual machine that does not boot."
5270 #: ../examples/guestfs-recipes.pod:104
5271 msgid "Change which kernel is used to boot the VM."
5275 #: ../examples/guestfs-recipes.pod:108
5276 msgid "Change kernel command line options."
5280 #: ../examples/guestfs-recipes.pod:112
5281 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5285 #: ../examples/guestfs-recipes.pod:114
5288 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5293 #: ../examples/guestfs-recipes.pod:116
5295 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5300 #: ../examples/guestfs-recipes.pod:119
5303 " virt-rescue -d BrokenGuest\n"
5308 #: ../examples/guestfs-recipes.pod:121
5309 msgid "Export any directory from a VM"
5313 #: ../examples/guestfs-recipes.pod:123
5315 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5319 #: ../examples/guestfs-recipes.pod:126
5322 " virt-copy-out -d Guest /home .\n"
5327 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5328 #: ../fish/guestfish-actions.pod:1450 ../fish/guestfish-actions.pod:1715
5329 #: ../fish/guestfish-actions.pod:2132 ../src/guestfs-actions.pod:18
5330 #: ../src/guestfs-actions.pod:2334 ../src/guestfs-actions.pod:2758
5331 #: ../src/guestfs-actions.pod:3317 ../src/guestfs.pod:1685
5332 #: ../tools/virt-win-reg.pl:717
5337 #: ../examples/guestfs-recipes.pod:134
5339 "The final dot of the command is not a printing error. It means we want to "
5340 "copy out to the current directory."
5344 #: ../examples/guestfs-recipes.pod:139
5345 msgid "This creates a directory called C<home> under the current directory."
5349 #: ../examples/guestfs-recipes.pod:143
5351 "If the guest is a Windows guest then you can use drive letters and "
5352 "backslashes, but you must prefix the path with C<win:> and quote it to "
5353 "protect it from the shell, like this:"
5357 #: ../examples/guestfs-recipes.pod:147
5360 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5365 #: ../examples/guestfs-recipes.pod:149
5366 msgid "To get the output as a compressed tarball, do:"
5370 #: ../examples/guestfs-recipes.pod:151
5373 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5378 #: ../examples/guestfs-recipes.pod:153
5380 "Although it sounds tempting, this is usually not a reliable way to get a "
5381 "backup from a running guest. See the entry in the FAQ: http://libguestfs."
5382 "org/FAQ.html#backup"
5386 #: ../examples/guestfs-recipes.pod:157
5387 msgid "Find out which user is using the most space"
5391 #: ../examples/guestfs-recipes.pod:159
5393 "This simple script examines a Linux guest to find out which user is using "
5394 "the most space in their home directory:"
5398 #: ../examples/guestfs-recipes.pod:162
5406 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5414 #: ../examples/guestfs-recipes.pod:166
5423 #: ../examples/guestfs-recipes.pod:169
5426 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5431 #: ../examples/guestfs-recipes.pod:171
5434 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5435 " echo -n \"$dir/$d\"\n"
5437 " guestfish --remote du \"$dir/$d\";\n"
5438 " done | sort -nr -k 2\n"
5443 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5446 " guestfish --remote exit\n"
5451 #: ../examples/guestfs-recipes.pod:179
5452 msgid "Get DHCP address from a VM"
5456 #: ../examples/guestfs-recipes.pod:181
5458 "The link below explains the many different possible techniques for getting "
5459 "the last assigned DHCP address of a virtual machine."
5463 #: ../examples/guestfs-recipes.pod:184
5465 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5466 "a-virtual-machine-disk-image/#content"
5470 #: ../examples/guestfs-recipes.pod:186
5472 "In the libguestfs source examples directory you will find the latest version "
5473 "of the C<virt-dhcp-address.c> program."
5477 #: ../examples/guestfs-recipes.pod:189
5478 msgid "Get the operating system product name string"
5482 #: ../examples/guestfs-recipes.pod:191
5483 msgid "Save the following script into a file called C<product-name.sh>:"
5487 #: ../examples/guestfs-recipes.pod:193
5492 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5493 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5494 " guestfish --remote inspect-get-product-name \"$root\"\n"
5495 " guestfish --remote exit\n"
5500 #: ../examples/guestfs-recipes.pod:200
5501 msgid "Make the script executable and run it on a named guest:"
5505 #: ../examples/guestfs-recipes.pod:202
5508 " # product-name.sh RHEL60x64\n"
5509 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5514 #: ../examples/guestfs-recipes.pod:205
5516 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5517 "C<xpath> command line tool or from your favourite programming language:"
5521 #: ../examples/guestfs-recipes.pod:209
5524 " # virt-inspector RHEL60x64 > xml\n"
5525 " # xpath '//product_name' < xml\n"
5528 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5533 #: ../examples/guestfs-recipes.pod:215
5534 msgid "Get the default boot kernel for a Linux VM"
5538 #: ../examples/guestfs-recipes.pod:217
5540 "The link below contains a program to print the default boot kernel for a "
5545 #: ../examples/guestfs-recipes.pod:220
5547 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5548 "kernel-for-a-vm/#content"
5552 #: ../examples/guestfs-recipes.pod:222
5554 "It uses Augeas, and the technique is generally applicable for many different "
5559 #: ../examples/guestfs-recipes.pod:229
5560 msgid "listing the user accounts in the guest"
5564 #: ../examples/guestfs-recipes.pod:233
5565 msgid "what repositories is it configured to use"
5569 #: ../examples/guestfs-recipes.pod:237
5570 msgid "what NTP servers does it connect to"
5574 #: ../examples/guestfs-recipes.pod:241
5575 msgid "what were the boot messages last time it booted"
5579 #: ../examples/guestfs-recipes.pod:245
5580 msgid "listing who was logged in recently"
5584 #: ../examples/guestfs-recipes.pod:249
5585 msgid "http://augeas.net/"
5589 #: ../examples/guestfs-recipes.pod:251
5590 msgid "Install RPMs in a guest"
5594 #: ../examples/guestfs-recipes.pod:253
5596 "The link below contains a method to install RPMs in a guest. In fact the "
5597 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5598 "installs them next time the guest is booted. You could use this technique "
5599 "to install vital security updates in an offline guest."
5603 #: ../examples/guestfs-recipes.pod:259
5605 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5609 #: ../examples/guestfs-recipes.pod:261
5610 msgid "List applications installed in a VM"
5614 #: ../examples/guestfs-recipes.pod:263
5615 msgid "Save the following to a file C<list-apps.sh>:"
5619 #: ../examples/guestfs-recipes.pod:265
5624 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5625 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5626 " guestfish --remote inspect-list-applications \"$root\"\n"
5627 " guestfish --remote exit\n"
5632 #: ../examples/guestfs-recipes.pod:272
5634 "Make the file executable and then you can run it on any named virtual "
5639 #: ../examples/guestfs-recipes.pod:275
5642 " # list-apps.sh WinGuest\n"
5644 " app_name: Mozilla Firefox (3.6.12)\n"
5645 " app_display_name: Mozilla Firefox (3.6.12)\n"
5647 " app_version: 3.6.12 (en-GB)\n"
5649 " app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5650 " app_trans_path:\n"
5651 " app_publisher: Mozilla\n"
5652 " app_url: http://www.mozilla.com/en-GB/\n"
5653 " app_source_package:\n"
5655 " app_description: Mozilla Firefox\n"
5658 " app_name: VLC media player\n"
5659 " app_display_name: VLC media player 1.1.5\n"
5661 " app_version: 1.1.5\n"
5663 " app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5664 " app_trans_path:\n"
5665 " app_publisher: VideoLAN\n"
5666 " app_url: http://www.videolan.org/\n"
5667 " app_source_package:\n"
5669 " app_description:\n"
5675 #: ../examples/guestfs-recipes.pod:305
5677 "If you want to run the script on disk images (instead of libvirt virtual "
5678 "machines), change C<-d \"$1\"> to C<-a \"$1\">. See also L<virt-inspector(1)"
5683 #: ../examples/guestfs-recipes.pod:309
5684 msgid "List files and directories in a VM"
5688 #: ../examples/guestfs-recipes.pod:311
5689 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5693 #: ../examples/guestfs-recipes.pod:313
5696 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5701 #: ../examples/guestfs-recipes.pod:315
5702 msgid "List services in a Windows VM"
5706 #: ../examples/guestfs-recipes.pod:317
5708 "The link below contains a script that can be used to list out the services "
5709 "from a Windows VM, and whether those services run at boot time or are loaded "
5714 #: ../examples/guestfs-recipes.pod:321
5716 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5721 #: ../examples/guestfs-recipes.pod:323
5722 msgid "Make a disk image sparse"
5726 #: ../examples/guestfs-recipes.pod:325
5728 "The link below contains some guides for making a disk image sparse (or "
5729 "reintroducing sparseness)."
5733 #: ../examples/guestfs-recipes.pod:328
5735 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5739 #: ../examples/guestfs-recipes.pod:330
5740 msgid "Monitor disk usage over time"
5744 #: ../examples/guestfs-recipes.pod:332
5746 "You can use L<virt-df(1)> to monitor disk usage of your guests over time. "
5747 "The link below contains a guide."
5751 #: ../examples/guestfs-recipes.pod:335
5752 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5756 #: ../examples/guestfs-recipes.pod:337
5757 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5761 #: ../examples/guestfs-recipes.pod:339
5763 "L<guestfish(1)> plus the tools described in the link below can be used to "
5764 "read out the Windows Event Log from any virtual machine running Windows "
5765 "Vista or a later version."
5769 #: ../examples/guestfs-recipes.pod:343
5771 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5772 "guestfish/#content"
5776 #: ../examples/guestfs-recipes.pod:345
5777 msgid "Remove root password (Linux)"
5781 #: ../examples/guestfs-recipes.pod:347
5783 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5784 "files. One use is to remove the root password from a Linux guest:"
5788 #: ../examples/guestfs-recipes.pod:350
5791 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5796 #: ../examples/guestfs-recipes.pod:352
5797 msgid "Remove Administrator password (Windows)"
5801 #: ../examples/guestfs-recipes.pod:354
5803 "The link below contains one technique for removing the Administrator "
5804 "password from a Windows VM, or to be more precise, it gives you a command "
5805 "prompt the next time you log in which you can use to bypass any security:"
5809 #: ../examples/guestfs-recipes.pod:359
5811 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5812 "administrator-password-with-guestfish/"
5816 #: ../examples/guestfs-recipes.pod:361
5817 msgid "Unpack a live CD"
5821 #: ../examples/guestfs-recipes.pod:363
5823 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5824 "Russian doll. You can use L<guestfish(1)> to look inside these multiple "
5825 "layers, as outlined in the guide below."
5829 #: ../examples/guestfs-recipes.pod:367
5831 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5836 #: ../examples/guestfs-recipes.pod:369
5837 msgid "Uploading and downloading files"
5841 #: ../examples/guestfs-recipes.pod:371
5843 "The link below contains general tips on uploading (copying in) and "
5844 "downloading (copying out) files from VMs."
5848 #: ../examples/guestfs-recipes.pod:374
5850 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5854 #: ../examples/guestfs-recipes.pod:376
5855 msgid "Use libguestfs tools on VMware ESX guests"
5859 #: ../examples/guestfs-recipes.pod:378
5861 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5862 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5866 #: ../examples/guestfs-recipes.pod:382
5868 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5873 #: ../examples/guestfs-recipes.pod:386
5875 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5876 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5877 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5881 #: ../examples/guestfs-recipes.pod:403
5882 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5886 #: ../fish/guestfish-actions.pod:1
5891 #: ../fish/guestfish-actions.pod:3
5894 " add-cdrom filename\n"
5899 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5900 msgid "This function adds a virtual CD-ROM disk image to the guest."
5904 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5905 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5909 #: ../fish/guestfish-actions.pod:15
5911 "This call checks for the existence of C<filename>. This stops you from "
5912 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5913 "and C<http:> URLs. To specify those, use the general L</config> call "
5918 #: ../fish/guestfish-actions.pod:22
5920 "If you just want to add an ISO file (often you use this as an efficient way "
5921 "to transfer large files into the guest), then you should probably use L</add-"
5922 "drive-ro> instead."
5926 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214
5927 #: ../fish/guestfish-actions.pod:228
5929 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5934 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217
5935 #: ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod:941
5936 #: ../fish/guestfish-actions.pod:976 ../fish/guestfish-actions.pod:1149
5937 #: ../fish/guestfish-actions.pod:1509 ../fish/guestfish-actions.pod:1523
5938 #: ../fish/guestfish-actions.pod:3284 ../fish/guestfish-actions.pod:3595
5939 #: ../fish/guestfish-actions.pod:3643 ../fish/guestfish-actions.pod:4561
5940 #: ../fish/guestfish-actions.pod:4581 ../fish/guestfish-actions.pod:4600
5941 #: ../fish/guestfish-actions.pod:4638 ../fish/guestfish-actions.pod:5287
5942 #: ../fish/guestfish-actions.pod:5390 ../src/guestfs-actions.pod:10
5943 #: ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326
5944 #: ../src/guestfs-actions.pod:1580 ../src/guestfs-actions.pod:1637
5945 #: ../src/guestfs-actions.pod:1920 ../src/guestfs-actions.pod:2419
5946 #: ../src/guestfs-actions.pod:2440 ../src/guestfs-actions.pod:5076
5947 #: ../src/guestfs-actions.pod:5598 ../src/guestfs-actions.pod:5698
5948 #: ../src/guestfs-actions.pod:6994 ../src/guestfs-actions.pod:7035
5949 #: ../src/guestfs-actions.pod:7066 ../src/guestfs-actions.pod:7126
5950 #: ../src/guestfs-actions.pod:8058 ../src/guestfs-actions.pod:8167
5951 #: ../src/guestfs-actions.pod:8347
5953 "Deprecated functions will not be removed from the API, but the fact that "
5954 "they are deprecated indicates that there are problems with correct use of "
5959 #: ../fish/guestfish-actions.pod:35
5964 #: ../fish/guestfish-actions.pod:37
5969 #: ../fish/guestfish-actions.pod:39
5972 " add-domain dom [libvirturi:..] [readonly:true|false] [iface:..] [live:true|false] [allowuuid:true|false] [readonlydisk:..]\n"
5977 #: ../fish/guestfish-actions.pod:41
5979 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
5980 "It works by connecting to libvirt, requesting the domain and domain XML from "
5981 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5985 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
5987 "The number of disks added is returned. This operation is atomic: if an "
5988 "error is returned, then no disks are added."
5992 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
5994 "This function does some minimal checks to make sure the libvirt domain is "
5995 "not running (unless C<readonly> is true). In a future version we will try "
5996 "to acquire the libvirt lock on each disk."
6000 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
6002 "Disks must be accessible locally. This often means that adding disks from a "
6003 "remote libvirt connection (see L<http://libvirt.org/remote.html>) will fail "
6004 "unless those disks are accessible via the same device path locally too."
6008 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
6010 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6011 "libvirt.org/uri.html>). If this is not set then we connect to the default "
6012 "libvirt URI (or one set through an environment variable, see the libvirt "
6013 "documentation for full details)."
6017 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
6019 "The optional C<live> flag controls whether this call will try to connect to "
6020 "a running virtual machine C<guestfsd> process if it sees a suitable "
6021 "E<lt>channelE<gt> element in the libvirt XML definition. The default (if "
6022 "the flag is omitted) is never to try. See L<guestfs(3)/ATTACHING TO RUNNING "
6023 "DAEMONS> for more information."
6027 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
6029 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6030 "passed instead of the domain name. The C<dom> string is treated as a UUID "
6031 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6036 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
6038 "The optional C<readonlydisk> parameter controls what we do for disks which "
6039 "are marked E<lt>readonly/E<gt> in the libvirt XML. Possible values are:"
6043 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
6044 msgid "readonlydisk = \"error\""
6048 #: ../fish/guestfish-actions.pod:84 ../fish/guestfish-actions.pod:95
6049 #: ../fish/guestfish-actions.pod:106 ../src/guestfs-actions.pod:103
6050 #: ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:125
6051 msgid "If C<readonly> is false:"
6055 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
6057 "The whole call is aborted with an error if any disk with the E<lt>readonly/"
6058 "E<gt> flag is found."
6062 #: ../fish/guestfish-actions.pod:89 ../fish/guestfish-actions.pod:100
6063 #: ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:108
6064 #: ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:129
6065 msgid "If C<readonly> is true:"
6069 #: ../fish/guestfish-actions.pod:91 ../fish/guestfish-actions.pod:102
6070 #: ../fish/guestfish-actions.pod:112 ../src/guestfs-actions.pod:110
6071 #: ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:131
6072 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
6076 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
6077 msgid "readonlydisk = \"read\""
6081 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
6083 "Disks with the E<lt>readonly/E<gt> flag are added read-only. Other disks "
6084 "are added read/write."
6088 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
6089 msgid "readonlydisk = \"write\" (default)"
6093 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
6094 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
6098 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
6099 msgid "readonlydisk = \"ignore\""
6103 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
6104 msgid "If C<readonly> is true or false:"
6108 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
6109 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
6113 #: ../fish/guestfish-actions.pod:122
6115 "The other optional parameters are passed directly through to L</add-drive-"
6120 #: ../fish/guestfish-actions.pod:125 ../fish/guestfish-actions.pod:194
6121 #: ../fish/guestfish-actions.pod:624 ../fish/guestfish-actions.pod:835
6122 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:894
6123 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:912
6124 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:2171
6125 #: ../fish/guestfish-actions.pod:3333 ../fish/guestfish-actions.pod:3496
6126 #: ../fish/guestfish-actions.pod:3631
6128 "This command has one or more optional arguments. See L</OPTIONAL ARGUMENTS>."
6132 #: ../fish/guestfish-actions.pod:127
6137 #: ../fish/guestfish-actions.pod:129
6140 " add-drive filename\n"
6143 " add-drive назва_файла\n"
6147 #: ../fish/guestfish-actions.pod:131
6149 "This function is the equivalent of calling L</add-drive-opts> with no "
6150 "optional parameters, so the disk is added writable, with the format being "
6151 "detected automatically."
6155 #: ../fish/guestfish-actions.pod:135
6157 "Automatic detection of the format opens you up to a potential security hole "
6158 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
6159 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
6160 "you should think about replacing calls to this function with calls to L</add-"
6161 "drive-opts>, and specifying the format."
6165 #: ../fish/guestfish-actions.pod:142
6166 msgid "add-drive-opts"
6167 msgstr "add-drive-opts"
6170 #: ../fish/guestfish-actions.pod:144
6175 #: ../fish/guestfish-actions.pod:146
6178 " add-drive-opts filename [readonly:true|false] [format:..] [iface:..] [name:..]\n"
6183 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
6185 "This function adds a virtual machine disk image C<filename> to libguestfs. "
6186 "The first time you call this function, the disk appears as C</dev/sda>, the "
6187 "second time as C</dev/sdb>, and so on."
6191 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
6193 "You don't necessarily need to be root when using libguestfs. However you "
6194 "obviously do need sufficient permissions to access the filename for whatever "
6195 "operations you want to perform (ie. read access if you just want to read the "
6196 "image or write access if you want to modify the image)."
6200 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
6201 msgid "This call checks that C<filename> exists."
6205 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3295
6206 #: ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5113
6207 msgid "The optional arguments are:"
6211 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
6213 msgstr "C<readonly>"
6216 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
6218 "If true then the image is treated as read-only. Writes are still allowed, "
6219 "but they are stored in a temporary snapshot overlay which is discarded at "
6220 "the end. The disk that you add is not modified."
6224 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
6229 #: ../fish/guestfish-actions.pod:173
6231 "This forces the image format. If you omit this (or use L</add-drive> or L</"
6232 "add-drive-ro>) then the format is automatically detected. Possible formats "
6233 "include C<raw> and C<qcow2>."
6237 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
6239 "Automatic detection of the format opens you up to a potential security hole "
6240 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
6241 "RHBZ#642934. Specifying the format closes this security hole."
6245 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
6250 #: ../fish/guestfish-actions.pod:184
6252 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6253 "add-drive-with-if> call (q.v.)"
6257 #: ../fish/guestfish-actions.pod:187 ../src/guestfs-actions.pod:247
6262 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
6264 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6265 "a hint to the guest inspection process if it is available."
6269 #: ../fish/guestfish-actions.pod:196
6270 msgid "add-drive-ro"
6271 msgstr "add-drive-ro"
6274 #: ../fish/guestfish-actions.pod:198
6279 #: ../fish/guestfish-actions.pod:200
6282 " add-drive-ro filename\n"
6287 #: ../fish/guestfish-actions.pod:202
6289 "This function is the equivalent of calling L</add-drive-opts> with the "
6290 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6291 "is added read-only, with the format being detected automatically."
6295 #: ../fish/guestfish-actions.pod:207
6296 msgid "add-drive-ro-with-if"
6300 #: ../fish/guestfish-actions.pod:209
6303 " add-drive-ro-with-if filename iface\n"
6308 #: ../fish/guestfish-actions.pod:211
6310 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6311 "interface emulation to use at run time."
6315 #: ../fish/guestfish-actions.pod:221
6316 msgid "add-drive-with-if"
6320 #: ../fish/guestfish-actions.pod:223
6323 " add-drive-with-if filename iface\n"
6328 #: ../fish/guestfish-actions.pod:225
6330 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6331 "interface emulation to use at run time."
6335 #: ../fish/guestfish-actions.pod:235
6340 #: ../fish/guestfish-actions.pod:237
6343 " aug-clear augpath\n"
6348 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
6350 "Set the value associated with C<path> to C<NULL>. This is the same as the "
6351 "L<augtool(1)> C<clear> command."
6355 #: ../fish/guestfish-actions.pod:242
6360 #: ../fish/guestfish-actions.pod:244
6368 #: ../fish/guestfish-actions.pod:246
6370 "Close the current Augeas handle and free up any resources used by it. After "
6371 "calling this, you have to call L</aug-init> again before you can use any "
6372 "other Augeas functions."
6376 #: ../fish/guestfish-actions.pod:251
6381 #: ../fish/guestfish-actions.pod:253
6384 " aug-defnode name expr val\n"
6389 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
6391 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6395 #: ../fish/guestfish-actions.pod:258
6397 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6398 "calling L</aug-set> C<expr>, C<value>. C<name> will be the nodeset "
6399 "containing that single node."
6403 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
6405 "On success this returns a pair containing the number of nodes in the "
6406 "nodeset, and a boolean flag if a node was created."
6410 #: ../fish/guestfish-actions.pod:266
6415 #: ../fish/guestfish-actions.pod:268
6418 " aug-defvar name expr\n"
6423 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
6425 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6426 "C<expr>. If C<expr> is NULL, then C<name> is undefined."
6430 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
6432 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6433 "evaluates to something which is not a nodeset."
6437 #: ../fish/guestfish-actions.pod:277
6442 #: ../fish/guestfish-actions.pod:279
6445 " aug-get augpath\n"
6450 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
6452 "Look up the value associated with C<path>. If C<path> matches exactly one "
6453 "node, the C<value> is returned."
6457 #: ../fish/guestfish-actions.pod:284
6462 #: ../fish/guestfish-actions.pod:286
6465 " aug-init root flags\n"
6470 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
6472 "Create a new Augeas handle for editing configuration files. If there was "
6473 "any previous Augeas handle associated with this guestfs session, then it is "
6478 #: ../fish/guestfish-actions.pod:292
6479 msgid "You must call this before using any other L</aug-*> commands."
6483 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
6485 "C<root> is the filesystem root. C<root> must not be NULL, use C</> instead."
6489 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
6491 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6492 "logical I<or> of the following integers:"
6496 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
6497 msgid "C<AUG_SAVE_BACKUP> = 1"
6498 msgstr "C<AUG_SAVE_BACKUP> = 1"
6501 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
6502 msgid "Keep the original file with a C<.augsave> extension."
6506 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
6507 msgid "C<AUG_SAVE_NEWFILE> = 2"
6508 msgstr "C<AUG_SAVE_NEWFILE> = 2"
6511 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
6513 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6514 "original. Overrides C<AUG_SAVE_BACKUP>."
6518 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
6519 msgid "C<AUG_TYPE_CHECK> = 4"
6520 msgstr "C<AUG_TYPE_CHECK> = 4"
6523 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
6524 msgid "Typecheck lenses."
6528 #: ../fish/guestfish-actions.pod:317
6530 "This option is only useful when debugging Augeas lenses. Use of this option "
6531 "may require additional memory for the libguestfs appliance. You may need to "
6532 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6536 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
6537 msgid "C<AUG_NO_STDINC> = 8"
6538 msgstr "C<AUG_NO_STDINC> = 8"
6541 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
6542 msgid "Do not use standard load path for modules."
6546 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
6547 msgid "C<AUG_SAVE_NOOP> = 16"
6548 msgstr "C<AUG_SAVE_NOOP> = 16"
6551 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
6552 msgid "Make save a no-op, just record what would have been changed."
6556 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
6557 msgid "C<AUG_NO_LOAD> = 32"
6558 msgstr "C<AUG_NO_LOAD> = 32"
6561 #: ../fish/guestfish-actions.pod:332
6562 msgid "Do not load the tree in L</aug-init>."
6566 #: ../fish/guestfish-actions.pod:336
6567 msgid "To close the handle, you can call L</aug-close>."
6571 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
6572 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6576 #: ../fish/guestfish-actions.pod:340
6581 #: ../fish/guestfish-actions.pod:342
6584 " aug-insert augpath label true|false\n"
6589 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
6591 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6592 "or after C<path> (depending on the boolean flag C<before>)."
6596 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
6598 "C<path> must match exactly one existing node in the tree, and C<label> must "
6599 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6603 #: ../fish/guestfish-actions.pod:352
6608 #: ../fish/guestfish-actions.pod:354
6616 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
6617 msgid "Load files into the tree."
6618 msgstr "Завантажити файли до ієрархії."
6621 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
6622 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6626 #: ../fish/guestfish-actions.pod:361
6631 #: ../fish/guestfish-actions.pod:363
6639 #: ../fish/guestfish-actions.pod:365
6641 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6642 "resulting nodes into alphabetical order."
6646 #: ../fish/guestfish-actions.pod:368
6651 #: ../fish/guestfish-actions.pod:370
6654 " aug-match augpath\n"
6659 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
6661 "Returns a list of paths which match the path expression C<path>. The "
6662 "returned paths are sufficiently qualified so that they match exactly one "
6663 "node in the current tree."
6667 #: ../fish/guestfish-actions.pod:376
6672 #: ../fish/guestfish-actions.pod:378
6675 " aug-mv src dest\n"
6680 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
6682 "Move the node C<src> to C<dest>. C<src> must match exactly one node. "
6683 "C<dest> is overwritten if it exists."
6687 #: ../fish/guestfish-actions.pod:383
6692 #: ../fish/guestfish-actions.pod:385
6700 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
6701 msgid "Remove C<path> and all of its children."
6705 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
6706 msgid "On success this returns the number of entries which were removed."
6710 #: ../fish/guestfish-actions.pod:391
6715 #: ../fish/guestfish-actions.pod:393
6723 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
6724 msgid "This writes all pending changes to disk."
6728 #: ../fish/guestfish-actions.pod:397
6730 "The flags which were passed to L</aug-init> affect exactly how files are "
6735 #: ../fish/guestfish-actions.pod:400
6740 #: ../fish/guestfish-actions.pod:402
6743 " aug-set augpath val\n"
6748 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
6749 msgid "Set the value associated with C<path> to C<val>."
6753 #: ../fish/guestfish-actions.pod:406
6755 "In the Augeas API, it is possible to clear a node by setting the value to "
6756 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
6757 "this call. Instead you must use the L</aug-clear> call."
6761 #: ../fish/guestfish-actions.pod:411
6766 #: ../fish/guestfish-actions.pod:413
6769 " available 'groups ...'\n"
6774 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
6776 "This command is used to check the availability of some groups of "
6777 "functionality in the appliance, which not all builds of the libguestfs "
6778 "appliance will be able to provide."
6782 #: ../fish/guestfish-actions.pod:419
6784 "The libguestfs groups, and the functions that those groups correspond to, "
6785 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
6786 "runtime by calling L</available-all-groups>."
6790 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
6792 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6793 "\"]> would check for the availability of the Linux inotify functions and "
6794 "Augeas (configuration file editing) functions."
6798 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
6799 msgid "The command returns no error if I<all> requested groups are available."
6803 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
6805 "It fails with an error if one or more of the requested groups is unavailable "
6810 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
6812 "If an unknown group name is included in the list of groups then an error is "
6817 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
6819 msgstr "I<Нотатки:>"
6822 #: ../fish/guestfish-actions.pod:443
6823 msgid "You must call L</launch> before calling this function."
6827 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
6829 "The reason is because we don't know what groups are supported by the "
6830 "appliance/daemon until it is running and can be queried."
6834 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
6836 "If a group of functions is available, this does not necessarily mean that "
6837 "they will work. You still have to check for errors when calling individual "
6838 "API functions even if they are available."
6842 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
6844 "It is usually the job of distro packagers to build complete functionality "
6845 "into the libguestfs appliance. Upstream libguestfs, if built from source "
6846 "with all requirements satisfied, will support everything."
6850 #: ../fish/guestfish-actions.pod:465
6852 "This call was added in version C<1.0.80>. In previous versions of "
6853 "libguestfs all you could do would be to speculatively execute a command to "
6854 "find out if the daemon implemented it. See also L</version>."
6858 #: ../fish/guestfish-actions.pod:472
6859 msgid "available-all-groups"
6863 #: ../fish/guestfish-actions.pod:474
6866 " available-all-groups\n"
6871 #: ../fish/guestfish-actions.pod:476
6873 "This command returns a list of all optional groups that this daemon knows "
6874 "about. Note this returns both supported and unsupported groups. To find "
6875 "out which ones the daemon can actually support you have to call L</"
6876 "available> on each member of the returned list."
6880 #: ../fish/guestfish-actions.pod:482
6881 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6885 #: ../fish/guestfish-actions.pod:484
6890 #: ../fish/guestfish-actions.pod:486
6893 " base64-in (base64file|-) filename\n"
6898 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
6900 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6904 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500
6905 #: ../fish/guestfish-actions.pod:749 ../fish/guestfish-actions.pod:833
6906 #: ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:1025
6907 #: ../fish/guestfish-actions.pod:1044 ../fish/guestfish-actions.pod:1418
6908 #: ../fish/guestfish-actions.pod:4858 ../fish/guestfish-actions.pod:4870
6909 #: ../fish/guestfish-actions.pod:4881 ../fish/guestfish-actions.pod:4892
6910 #: ../fish/guestfish-actions.pod:4944 ../fish/guestfish-actions.pod:4953
6911 #: ../fish/guestfish-actions.pod:5007 ../fish/guestfish-actions.pod:5030
6912 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6916 #: ../fish/guestfish-actions.pod:493
6921 #: ../fish/guestfish-actions.pod:495
6924 " base64-out filename (base64file|-)\n"
6929 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
6931 "This command downloads the contents of C<filename>, writing it out to local "
6932 "file C<base64file> encoded as base64."
6936 #: ../fish/guestfish-actions.pod:502
6937 msgid "blockdev-flushbufs"
6941 #: ../fish/guestfish-actions.pod:504
6944 " blockdev-flushbufs device\n"
6949 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
6951 "This tells the kernel to flush internal buffers associated with C<device>."
6955 #: ../fish/guestfish-actions.pod:509 ../fish/guestfish-actions.pod:520
6956 #: ../fish/guestfish-actions.pod:529 ../fish/guestfish-actions.pod:539
6957 #: ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:564
6958 #: ../fish/guestfish-actions.pod:572 ../fish/guestfish-actions.pod:583
6959 #: ../fish/guestfish-actions.pod:591 ../fish/guestfish-actions.pod:599
6960 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:749
6961 #: ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:780
6962 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:817
6963 #: ../src/guestfs-actions.pod:831 ../src/guestfs-actions.pod:849
6964 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:877
6965 msgid "This uses the L<blockdev(8)> command."
6969 #: ../fish/guestfish-actions.pod:511
6970 msgid "blockdev-getbsz"
6974 #: ../fish/guestfish-actions.pod:513
6977 " blockdev-getbsz device\n"
6982 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
6983 msgid "This returns the block size of a device."
6987 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580
6988 #: ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
6990 "(Note this is different from both I<size in blocks> and I<filesystem block "
6995 #: ../fish/guestfish-actions.pod:522
6996 msgid "blockdev-getro"
7000 #: ../fish/guestfish-actions.pod:524
7003 " blockdev-getro device\n"
7008 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
7010 "Returns a boolean indicating if the block device is read-only (true if read-"
7011 "only, false if not)."
7015 #: ../fish/guestfish-actions.pod:531
7016 msgid "blockdev-getsize64"
7020 #: ../fish/guestfish-actions.pod:533
7023 " blockdev-getsize64 device\n"
7028 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
7029 msgid "This returns the size of the device in bytes."
7033 #: ../fish/guestfish-actions.pod:537
7034 msgid "See also L</blockdev-getsz>."
7035 msgstr "Див. також L</blockdev-getsz>."
7038 #: ../fish/guestfish-actions.pod:541
7039 msgid "blockdev-getss"
7043 #: ../fish/guestfish-actions.pod:543
7046 " blockdev-getss device\n"
7051 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
7053 "This returns the size of sectors on a block device. Usually 512, but can be "
7054 "larger for modern devices."
7058 #: ../fish/guestfish-actions.pod:548
7060 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7064 #: ../fish/guestfish-actions.pod:553
7065 msgid "blockdev-getsz"
7069 #: ../fish/guestfish-actions.pod:555
7072 " blockdev-getsz device\n"
7077 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
7079 "This returns the size of the device in units of 512-byte sectors (even if "
7080 "the sectorsize isn't 512 bytes ... weird)."
7084 #: ../fish/guestfish-actions.pod:560
7086 "See also L</blockdev-getss> for the real sector size of the device, and L</"
7087 "blockdev-getsize64> for the more useful I<size in bytes>."
7091 #: ../fish/guestfish-actions.pod:566
7092 msgid "blockdev-rereadpt"
7096 #: ../fish/guestfish-actions.pod:568
7099 " blockdev-rereadpt device\n"
7104 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
7105 msgid "Reread the partition table on C<device>."
7109 #: ../fish/guestfish-actions.pod:574
7110 msgid "blockdev-setbsz"
7114 #: ../fish/guestfish-actions.pod:576
7117 " blockdev-setbsz device blocksize\n"
7122 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
7123 msgid "This sets the block size of a device."
7127 #: ../fish/guestfish-actions.pod:585
7128 msgid "blockdev-setro"
7132 #: ../fish/guestfish-actions.pod:587
7135 " blockdev-setro device\n"
7140 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
7141 msgid "Sets the block device named C<device> to read-only."
7145 #: ../fish/guestfish-actions.pod:593
7146 msgid "blockdev-setrw"
7150 #: ../fish/guestfish-actions.pod:595
7153 " blockdev-setrw device\n"
7158 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
7159 msgid "Sets the block device named C<device> to read-write."
7163 #: ../fish/guestfish-actions.pod:601
7164 msgid "btrfs-filesystem-resize"
7168 #: ../fish/guestfish-actions.pod:603
7171 " btrfs-filesystem-resize mountpoint [size:N]\n"
7176 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
7177 msgid "This command resizes a btrfs filesystem."
7181 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
7183 "Note that unlike other resize calls, the filesystem has to be mounted and "
7184 "the parameter is the mountpoint not the device (this is a requirement of "
7189 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3606
7190 #: ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:5637
7191 msgid "The optional parameters are:"
7195 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3610
7196 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5641
7201 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
7203 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
7204 "resized to the maximum size."
7208 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
7209 msgid "See also L<btrfs(8)>."
7210 msgstr "Див. також L<btrfs(8)>."
7213 #: ../fish/guestfish-actions.pod:626
7214 msgid "case-sensitive-path"
7218 #: ../fish/guestfish-actions.pod:628
7221 " case-sensitive-path path\n"
7226 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
7228 "This can be used to resolve case insensitive paths on a filesystem which is "
7229 "case sensitive. The use case is to resolve paths which you have read from "
7230 "Windows configuration files or the Windows Registry, to the true path."
7234 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
7236 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7237 "(and probably others), which is that although the underlying filesystem is "
7238 "case-insensitive, the driver exports the filesystem to Linux as case-"
7243 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
7245 "One consequence of this is that special directories such as C<c:\\windows> "
7246 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7247 "precise details of how they were created. In Windows itself this would not "
7252 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
7254 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7259 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
7261 "This function resolves the true case of each element in the path and returns "
7262 "the case-sensitive path."
7266 #: ../fish/guestfish-actions.pod:652
7268 "Thus L</case-sensitive-path> (\"/Windows/System32\") might return C<\"/"
7269 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7270 "the directories were originally created under Windows)."
7274 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
7275 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7279 #: ../fish/guestfish-actions.pod:660
7280 msgid "See also L</realpath>."
7281 msgstr "Див. також L</realpath>."
7284 #: ../fish/guestfish-actions.pod:662
7289 #: ../fish/guestfish-actions.pod:664
7299 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4037
7300 #: ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6297
7301 msgid "Return the contents of the file named C<path>."
7305 #: ../fish/guestfish-actions.pod:668
7307 "Note that this function cannot correctly handle binary files (specifically, "
7308 "files containing C<\\0> character which is treated as end of string). For "
7309 "those you need to use the L</read-file> or L</download> functions which have "
7310 "a more complex interface."
7314 #: ../fish/guestfish-actions.pod:673 ../fish/guestfish-actions.pod:808
7315 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:1103
7316 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1180
7317 #: ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1382
7318 #: ../fish/guestfish-actions.pod:1695 ../fish/guestfish-actions.pod:1705
7319 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1770
7320 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1799
7321 #: ../fish/guestfish-actions.pod:3907 ../fish/guestfish-actions.pod:3922
7322 #: ../fish/guestfish-actions.pod:3998 ../fish/guestfish-actions.pod:4015
7323 #: ../fish/guestfish-actions.pod:4030 ../fish/guestfish-actions.pod:4699
7324 #: ../fish/guestfish-actions.pod:4745 ../fish/guestfish-actions.pod:4830
7325 #: ../fish/guestfish-actions.pod:4845 ../fish/guestfish-actions.pod:5251
7326 #: ../fish/guestfish-actions.pod:5263 ../fish/guestfish-actions.pod:5281
7327 #: ../fish/guestfish-actions.pod:5298 ../fish/guestfish-actions.pod:5308
7328 #: ../fish/guestfish-actions.pod:5362 ../fish/guestfish-actions.pod:5372
7329 #: ../fish/guestfish-actions.pod:5401 ../fish/guestfish-actions.pod:5411
7330 #: ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1180
7331 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1855
7332 #: ../src/guestfs-actions.pod:1874 ../src/guestfs-actions.pod:1977
7333 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:2242
7334 #: ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:2743
7335 #: ../src/guestfs-actions.pod:2808 ../src/guestfs-actions.pod:2832
7336 #: ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2878
7337 #: ../src/guestfs-actions.pod:6079 ../src/guestfs-actions.pod:6105
7338 #: ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6262
7339 #: ../src/guestfs-actions.pod:6286 ../src/guestfs-actions.pod:7241
7340 #: ../src/guestfs-actions.pod:7296 ../src/guestfs-actions.pod:7442
7341 #: ../src/guestfs-actions.pod:7466 ../src/guestfs-actions.pod:8131
7342 #: ../src/guestfs-actions.pod:8151 ../src/guestfs-actions.pod:8184
7343 #: ../src/guestfs-actions.pod:8203 ../src/guestfs-actions.pod:8222
7344 #: ../src/guestfs-actions.pod:8313 ../src/guestfs-actions.pod:8332
7345 #: ../src/guestfs-actions.pod:8378 ../src/guestfs-actions.pod:8397
7347 "Because of the message protocol, there is a transfer limit of somewhere "
7348 "between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>."
7352 #: ../fish/guestfish-actions.pod:676
7357 #: ../fish/guestfish-actions.pod:678
7360 " checksum csumtype path\n"
7365 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
7367 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7371 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
7373 "The type of checksum to compute is given by the C<csumtype> parameter which "
7374 "must have one of the following values:"
7378 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
7383 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
7385 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7390 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
7395 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
7396 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7400 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
7405 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
7406 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7410 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
7415 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
7416 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7420 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
7425 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
7426 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7430 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
7435 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
7436 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7440 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
7445 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
7446 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7450 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
7451 msgid "The checksum is returned as a printable string."
7455 #: ../fish/guestfish-actions.pod:721
7456 msgid "To get the checksum for a device, use L</checksum-device>."
7460 #: ../fish/guestfish-actions.pod:723
7461 msgid "To get the checksums for many files, use L</checksums-out>."
7465 #: ../fish/guestfish-actions.pod:725
7466 msgid "checksum-device"
7467 msgstr "checksum-device"
7470 #: ../fish/guestfish-actions.pod:727
7473 " checksum-device csumtype device\n"
7478 #: ../fish/guestfish-actions.pod:729
7480 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7481 "device named C<device>. For the types of checksums supported see the L</"
7482 "checksum> command."
7486 #: ../fish/guestfish-actions.pod:733
7487 msgid "checksums-out"
7491 #: ../fish/guestfish-actions.pod:735
7494 " checksums-out csumtype directory (sumsfile|-)\n"
7499 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
7501 "This command computes the checksums of all regular files in C<directory> and "
7502 "then emits a list of those checksums to the local output file C<sumsfile>."
7506 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
7508 "This can be used for verifying the integrity of a virtual machine. However "
7509 "to be properly secure you should pay attention to the output of the checksum "
7510 "command (it uses the ones from GNU coreutils). In particular when the "
7511 "filename is not printable, coreutils uses a special backslash syntax. For "
7512 "more information, see the GNU coreutils info file."
7516 #: ../fish/guestfish-actions.pod:751
7521 #: ../fish/guestfish-actions.pod:753
7524 " chmod mode path\n"
7529 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
7531 "Change the mode (permissions) of C<path> to C<mode>. Only numeric modes are "
7536 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
7538 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7539 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7544 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3259
7545 #: ../fish/guestfish-actions.pod:3398 ../fish/guestfish-actions.pod:3408
7546 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:1117
7547 #: ../src/guestfs-actions.pod:5044 ../src/guestfs-actions.pod:5253
7548 #: ../src/guestfs-actions.pod:5272 ../src/guestfs-actions.pod:5291
7549 msgid "The mode actually set is affected by the umask."
7553 #: ../fish/guestfish-actions.pod:764
7558 #: ../fish/guestfish-actions.pod:766
7561 " chown owner group path\n"
7566 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
7567 msgid "Change the file owner to C<owner> and group to C<group>."
7571 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2703
7572 #: ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4124
7574 "Only numeric uid and gid are supported. If you want to use names, you will "
7575 "need to locate and parse the password file yourself (Augeas support makes "
7576 "this relatively easy)."
7580 #: ../fish/guestfish-actions.pod:774
7585 #: ../fish/guestfish-actions.pod:776
7588 " command 'arguments ...'\n"
7591 " command 'параметри...'\n"
7595 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
7597 "This call runs a command from the guest filesystem. The filesystem must be "
7598 "mounted, and must contain a compatible operating system (ie. something "
7599 "Linux, with the same or compatible processor architecture)."
7603 #: ../fish/guestfish-actions.pod:783
7605 "The single parameter is an argv-style list of arguments. The first element "
7606 "is the name of the program to run. Subsequent elements are parameters. The "
7607 "list must be non-empty (ie. must contain a program name). Note that the "
7608 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7612 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
7613 msgid "The return value is anything printed to I<stdout> by the command."
7617 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
7619 "If the command returns a non-zero exit status, then this function returns an "
7620 "error message. The error message string is the content of I<stderr> from "
7625 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
7627 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7628 "bin>. If you require a program from another location, you should provide "
7629 "the full path in the first parameter."
7633 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
7635 "Shared libraries and data files required by the program must be available on "
7636 "filesystems which are mounted in the correct places. It is the caller's "
7637 "responsibility to ensure all filesystems that are needed are mounted at the "
7642 #: ../fish/guestfish-actions.pod:811
7643 msgid "command-lines"
7647 #: ../fish/guestfish-actions.pod:813
7650 " command-lines 'arguments ...'\n"
7655 #: ../fish/guestfish-actions.pod:815
7657 "This is the same as L</command>, but splits the result into a list of lines."
7661 #: ../fish/guestfish-actions.pod:818
7662 msgid "See also: L</sh-lines>"
7663 msgstr "Див. також L</sh-lines>"
7666 #: ../fish/guestfish-actions.pod:823
7667 msgid "compress-device-out"
7671 #: ../fish/guestfish-actions.pod:825
7674 " compress-device-out ctype device (zdevice|-) [level:N]\n"
7679 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
7681 "This command compresses C<device> and writes it out to the local file "
7686 #: ../fish/guestfish-actions.pod:830
7688 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
7693 #: ../fish/guestfish-actions.pod:837
7694 msgid "compress-out"
7698 #: ../fish/guestfish-actions.pod:839
7701 " compress-out ctype file (zfile|-) [level:N]\n"
7706 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
7708 "This command compresses C<file> and writes it out to the local file C<zfile>."
7712 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
7714 "The compression program used is controlled by the C<ctype> parameter. "
7715 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>. "
7716 "Some compression types may not be supported by particular builds of "
7717 "libguestfs, in which case you will get an error containing the substring "
7718 "\"not supported\"."
7722 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
7724 "The optional C<level> parameter controls compression level. The meaning and "
7725 "default for this parameter depends on the compression program being used."
7729 #: ../fish/guestfish-actions.pod:858
7734 #: ../fish/guestfish-actions.pod:860
7737 " config qemuparam qemuvalue\n"
7742 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
7744 "This can be used to add arbitrary qemu command line parameters of the form "
7745 "I<-param value>. Actually it's not quite arbitrary - we prevent you from "
7746 "setting some parameters which would interfere with parameters that we use."
7750 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
7751 msgid "The first character of C<param> string must be a C<-> (dash)."
7755 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
7756 msgid "C<value> can be NULL."
7760 #: ../fish/guestfish-actions.pod:871
7761 msgid "copy-device-to-device"
7765 #: ../fish/guestfish-actions.pod:873
7768 " copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7773 #: ../fish/guestfish-actions.pod:875
7775 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
7776 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
7777 "(device|file) to a destination (device|file)."
7781 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
7783 "Partial copies can be made since you can specify optionally the source "
7784 "offset, destination offset and size to copy. These values are all specified "
7785 "in bytes. If not given, the offsets both default to zero, and the size "
7786 "defaults to copying as much as possible until we hit the end of the source."
7790 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
7792 "The source and destination may be the same object. However overlapping "
7793 "regions may not be copied correctly."
7797 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
7799 "If the destination is a file, it is created if required. If the destination "
7800 "file is not large enough, it is extended."
7804 #: ../fish/guestfish-actions.pod:896
7805 msgid "copy-device-to-file"
7809 #: ../fish/guestfish-actions.pod:898
7812 " copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7817 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909
7818 #: ../fish/guestfish-actions.pod:918
7819 msgid "See L</copy-device-to-device> for a general overview of this call."
7823 #: ../fish/guestfish-actions.pod:905
7824 msgid "copy-file-to-device"
7828 #: ../fish/guestfish-actions.pod:907
7831 " copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7836 #: ../fish/guestfish-actions.pod:914
7837 msgid "copy-file-to-file"
7841 #: ../fish/guestfish-actions.pod:916
7844 " copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7849 #: ../fish/guestfish-actions.pod:921
7851 "This is B<not> the function you want for copying files. This is for copying "
7852 "blocks within existing files. See L</cp>, L</cp-a> and L</mv> for general "
7853 "file copying and moving functions."
7857 #: ../fish/guestfish-actions.pod:928
7862 #: ../fish/guestfish-actions.pod:930
7865 " copy-size src dest size\n"
7870 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1584
7872 "This command copies exactly C<size> bytes from one source device or file "
7873 "C<src> to another destination device or file C<dest>."
7877 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1587
7879 "Note this will fail if the source is too short or if the destination is not "
7884 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
7886 "I<This function is deprecated.> In new code, use the L</"
7887 "copy_device_to_device> call instead."
7891 #: ../fish/guestfish-actions.pod:945
7896 #: ../fish/guestfish-actions.pod:947
7904 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1606
7906 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7907 "destination filename or destination directory."
7911 #: ../fish/guestfish-actions.pod:952
7916 #: ../fish/guestfish-actions.pod:954
7924 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1620
7926 "This copies a file or directory from C<src> to C<dest> recursively using the "
7931 #: ../fish/guestfish-actions.pod:959
7936 #: ../fish/guestfish-actions.pod:961
7944 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1641
7946 "This command copies from one source device or file C<src> to another "
7947 "destination device or file C<dest>. Normally you would use this to copy to "
7948 "or from a device or partition, for example to duplicate a filesystem."
7952 #: ../fish/guestfish-actions.pod:968
7954 "If the destination is a device, it must be as large or larger than the "
7955 "source file or device, otherwise the copy will fail. This command cannot do "
7956 "partial copies (see L</copy-device-to-device>)."
7960 #: ../fish/guestfish-actions.pod:980
7965 #: ../fish/guestfish-actions.pod:982
7975 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1660
7976 msgid "This command runs the C<df> command to report disk space used."
7980 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
7982 "This command is mostly useful for interactive sessions. It is I<not> "
7983 "intended that you try to parse the output string. Use L</statvfs> from "
7988 #: ../fish/guestfish-actions.pod:990
7993 #: ../fish/guestfish-actions.pod:992
8003 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1676
8005 "This command runs the C<df -h> command to report disk space used in human-"
8010 #: ../fish/guestfish-actions.pod:1001
8015 #: ../fish/guestfish-actions.pod:1003
8025 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1693
8027 "This returns the kernel messages (C<dmesg> output) from the guest kernel. "
8028 "This is sometimes useful for extended debugging of problems."
8032 #: ../fish/guestfish-actions.pod:1009
8034 "Another way to get the same information is to enable verbose messages with "
8035 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8036 "before running the program."
8040 #: ../fish/guestfish-actions.pod:1014
8045 #: ../fish/guestfish-actions.pod:1016
8048 " download remotefilename (filename|-)\n"
8053 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031
8054 #: ../src/guestfs-actions.pod:1714 ../src/guestfs-actions.pod:1739
8056 "Download file C<remotefilename> and save it as C<filename> on the local "
8061 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5003
8062 #: ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:7701
8063 msgid "C<filename> can also be a named pipe."
8067 #: ../fish/guestfish-actions.pod:1023
8068 msgid "See also L</upload>, L</cat>."
8072 #: ../fish/guestfish-actions.pod:1027
8073 msgid "download-offset"
8074 msgstr "download-offset"
8077 #: ../fish/guestfish-actions.pod:1029
8080 " download-offset remotefilename (filename|-) offset size\n"
8085 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1742
8087 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8088 "region must be within the file or device)."
8092 #: ../fish/guestfish-actions.pod:1037
8094 "Note that there is no limit on the amount of data that can be downloaded "
8095 "with this call, unlike with L</pread>, and this call always reads the full "
8096 "amount unless an error occurs."
8100 #: ../fish/guestfish-actions.pod:1042
8101 msgid "See also L</download>, L</pread>."
8105 #: ../fish/guestfish-actions.pod:1046
8110 #: ../fish/guestfish-actions.pod:1048
8113 " drop-caches whattodrop\n"
8118 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1767
8120 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8121 "inode caches. The parameter C<whattodrop> tells the kernel what precisely "
8122 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8126 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1772
8127 msgid "Setting C<whattodrop> to 3 should drop everything."
8131 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1774
8133 "This automatically calls L<sync(2)> before the operation, so that the "
8134 "maximum guest memory is freed."
8138 #: ../fish/guestfish-actions.pod:1060
8143 #: ../fish/guestfish-actions.pod:1062
8153 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1787
8155 "This command runs the C<du -s> command to estimate file space usage for "
8160 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1790
8162 "C<path> can be a file or a directory. If C<path> is a directory then the "
8163 "estimate includes the contents of the directory and all subdirectories "
8168 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1794
8170 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8174 #: ../fish/guestfish-actions.pod:1074
8179 #: ../fish/guestfish-actions.pod:1076
8182 " e2fsck-f device\n"
8187 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1812
8189 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8190 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8195 #: ../fish/guestfish-actions.pod:1082
8197 "This command is only needed because of L</resize2fs> (q.v.). Normally you "
8198 "should use L</fsck>."
8202 #: ../fish/guestfish-actions.pod:1085
8207 #: ../fish/guestfish-actions.pod:1087
8210 " echo-daemon 'words ...'\n"
8215 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1829
8217 "This command concatenates the list of C<words> passed with single spaces "
8218 "between them and returns the resulting string."
8222 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1832
8223 msgid "You can use this command to test the connection through to the daemon."
8227 #: ../fish/guestfish-actions.pod:1094
8228 msgid "See also L</ping-daemon>."
8229 msgstr "Див. також L</ping-daemon>."
8232 #: ../fish/guestfish-actions.pod:1096
8237 #: ../fish/guestfish-actions.pod:1098
8240 " egrep regex path\n"
8245 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1848
8247 "This calls the external C<egrep> program and returns the matching lines."
8251 #: ../fish/guestfish-actions.pod:1106
8256 #: ../fish/guestfish-actions.pod:1108
8259 " egrepi regex path\n"
8264 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1867
8266 "This calls the external C<egrep -i> program and returns the matching lines."
8270 #: ../fish/guestfish-actions.pod:1116
8275 #: ../fish/guestfish-actions.pod:1118
8278 " equal file1 file2\n"
8281 " equal файл1 файл2\n"
8285 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1886
8287 "This compares the two files C<file1> and C<file2> and returns true if their "
8288 "content is exactly equal, or false otherwise."
8292 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1889
8293 msgid "The external L<cmp(1)> program is used for the comparison."
8297 #: ../fish/guestfish-actions.pod:1125
8302 #: ../fish/guestfish-actions.pod:1127
8312 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1901
8314 "This returns C<true> if and only if there is a file, directory (or anything) "
8315 "with the given C<path> name."
8319 #: ../fish/guestfish-actions.pod:1132
8320 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8321 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
8324 #: ../fish/guestfish-actions.pod:1134
8329 #: ../fish/guestfish-actions.pod:1136
8332 " fallocate path len\n"
8335 " fallocate шлях довжина\n"
8339 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157
8340 #: ../src/guestfs-actions.pod:1924 ../src/guestfs-actions.pod:1943
8342 "This command preallocates a file (containing zero bytes) named C<path> of "
8343 "size C<len> bytes. If the file exists already, it is overwritten."
8347 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1928
8349 "Do not confuse this with the guestfish-specific C<alloc> command which "
8350 "allocates a file in the host and attaches it as a device."
8354 #: ../fish/guestfish-actions.pod:1146
8356 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8361 #: ../fish/guestfish-actions.pod:1153
8363 msgstr "fallocate64"
8366 #: ../fish/guestfish-actions.pod:1155
8369 " fallocate64 path len\n"
8372 " fallocate64 шлях довжина\n"
8376 #: ../fish/guestfish-actions.pod:1161
8378 "Note that this call allocates disk blocks for the file. To create a sparse "
8379 "file use L</truncate-size> instead."
8383 #: ../fish/guestfish-actions.pod:1164
8385 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8386 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8387 "maximum size of files created through that call to 1GB."
8391 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1955
8393 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8394 "commands which create a file in the host and attach it as a device."
8398 #: ../fish/guestfish-actions.pod:1173
8403 #: ../fish/guestfish-actions.pod:1175
8406 " fgrep pattern path\n"
8409 " fgrep шаблон шлях\n"
8413 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1970
8415 "This calls the external C<fgrep> program and returns the matching lines."
8419 #: ../fish/guestfish-actions.pod:1183
8424 #: ../fish/guestfish-actions.pod:1185
8427 " fgrepi pattern path\n"
8430 " fgrepi шаблон шлях\n"
8434 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1989
8436 "This calls the external C<fgrep -i> program and returns the matching lines."
8440 #: ../fish/guestfish-actions.pod:1193
8445 #: ../fish/guestfish-actions.pod:1195
8455 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:2007
8457 "This call uses the standard L<file(1)> command to determine the type or "
8458 "contents of the file."
8462 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2010
8464 "This call will also transparently look inside various types of compressed "
8469 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2013
8471 "The exact command which runs is C<file -zb path>. Note in particular that "
8472 "the filename is not prepended to the output (the I<-b> option)."
8476 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2017
8478 "The output depends on the output of the underlying L<file(1)> command and it "
8479 "can change in future in ways beyond our control. In other words, the output "
8480 "is not guaranteed by the ABI."
8484 #: ../fish/guestfish-actions.pod:1211
8486 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8487 "(etc), L</is-zero>."
8491 #: ../fish/guestfish-actions.pod:1214
8492 msgid "file-architecture"
8493 msgstr "file-architecture"
8496 #: ../fish/guestfish-actions.pod:1216
8499 " file-architecture filename\n"
8502 " file-architecture назва_файла\n"
8506 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2035
8508 "This detects the architecture of the binary C<filename>, and returns it if "
8513 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2038
8514 msgid "Currently defined architectures are:"
8518 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2042
8523 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2044
8525 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8526 "irrespective of the precise processor requirements of the binary."
8530 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2047
8535 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2049
8536 msgid "64 bit x86-64."
8540 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2051
8545 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2053
8546 msgid "32 bit SPARC."
8550 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2055
8555 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2057
8556 msgid "64 bit SPARC V9 and above."
8560 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2059
8565 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2061
8566 msgid "Intel Itanium."
8567 msgstr "Intel Itanium."
8570 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2063
8575 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2065
8576 msgid "32 bit Power PC."
8580 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2067
8585 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2069
8586 msgid "64 bit Power PC."
8590 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2073
8591 msgid "Libguestfs may return other architecture strings in future."
8595 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2075
8596 msgid "The function works on at least the following types of files:"
8600 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2081
8601 msgid "many types of Un*x and Linux binary"
8605 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2085
8606 msgid "many types of Un*x and Linux shared library"
8610 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2089
8611 msgid "Windows Win32 and Win64 binaries"
8615 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2093
8616 msgid "Windows Win32 and Win64 DLLs"
8620 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2095
8621 msgid "Win32 binaries and DLLs return C<i386>."
8625 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2097
8626 msgid "Win64 binaries and DLLs return C<x86_64>."
8630 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2101
8631 msgid "Linux kernel modules"
8635 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2105
8636 msgid "Linux new-style initrd images"
8640 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2109
8641 msgid "some non-x86 Linux vmlinuz kernels"
8645 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2113
8646 msgid "What it can't do currently:"
8650 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2119
8651 msgid "static libraries (libfoo.a)"
8655 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2123
8656 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8660 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2127
8661 msgid "x86 Linux vmlinuz kernels"
8665 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2129
8667 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8668 "compressed code, and are horribly hard to unpack. If you want to find the "
8669 "architecture of a kernel, use the architecture of the associated initrd or "
8670 "kernel module(s) instead."
8674 #: ../fish/guestfish-actions.pod:1319
8679 #: ../fish/guestfish-actions.pod:1321
8689 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2147
8690 msgid "This command returns the size of C<file> in bytes."
8694 #: ../fish/guestfish-actions.pod:1325
8696 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8697 "file> etc. To get the size of block devices, use L</blockdev-getsize64>."
8701 #: ../fish/guestfish-actions.pod:1329
8706 #: ../fish/guestfish-actions.pod:1331
8709 " fill c len path\n"
8714 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2165
8716 "This command creates a new file called C<path>. The initial content of the "
8717 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8722 #: ../fish/guestfish-actions.pod:1337
8724 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8725 "L</truncate-size>. To create a file with a pattern of repeating bytes use "
8730 #: ../fish/guestfish-actions.pod:1342
8731 msgid "fill-pattern"
8732 msgstr "fill-pattern"
8735 #: ../fish/guestfish-actions.pod:1344
8738 " fill-pattern pattern len path\n"
8743 #: ../fish/guestfish-actions.pod:1346
8745 "This function is like L</fill> except that it creates a new file of length "
8746 "C<len> containing the repeating pattern of bytes in C<pattern>. The pattern "
8747 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8752 #: ../fish/guestfish-actions.pod:1351
8757 #: ../fish/guestfish-actions.pod:1353
8767 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2211
8769 "This command lists out all files and directories, recursively, starting at "
8770 "C<directory>. It is essentially equivalent to running the shell command "
8771 "C<find directory -print> but some post-processing happens on the output, "
8776 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2216
8778 "This returns a list of strings I<without any prefix>. Thus if the directory "
8783 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2219
8793 #: ../fish/guestfish-actions.pod:1367
8794 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8798 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2226
8809 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2231
8810 msgid "If C<directory> is not a directory, then this command returns an error."
8814 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2234
8815 msgid "The returned list is sorted."
8819 #: ../fish/guestfish-actions.pod:1380
8820 msgid "See also L</find0>."
8821 msgstr "Див. також L</find0>."
8824 #: ../fish/guestfish-actions.pod:1385
8829 #: ../fish/guestfish-actions.pod:1387
8832 " find0 directory (files|-)\n"
8835 " find0 каталог (файли|-)\n"
8839 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2254
8841 "This command lists out all files and directories, recursively, starting at "
8842 "C<directory>, placing the resulting list in the external file called "
8847 #: ../fish/guestfish-actions.pod:1393
8849 "This command works the same way as L</find> with the following exceptions:"
8853 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2265
8854 msgid "The resulting list is written to an external file."
8858 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2269
8860 "Items (filenames) in the result are separated by C<\\0> characters. See "
8861 "L<find(1)> option I<-print0>."
8865 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2274
8866 msgid "This command is not limited in the number of names that it can return."
8870 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2279
8871 msgid "The result list is not sorted."
8875 #: ../fish/guestfish-actions.pod:1420
8876 msgid "findfs-label"
8877 msgstr "findfs-label"
8880 #: ../fish/guestfish-actions.pod:1422
8883 " findfs-label label\n"
8886 " findfs-label мітка\n"
8890 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2293
8892 "This command searches the filesystems and returns the one which has the "
8893 "given label. An error is returned if no such filesystem can be found."
8897 #: ../fish/guestfish-actions.pod:1428
8898 msgid "To find the label of a filesystem, use L</vfs-label>."
8899 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
8902 #: ../fish/guestfish-actions.pod:1430
8904 msgstr "findfs-uuid"
8907 #: ../fish/guestfish-actions.pod:1432
8910 " findfs-uuid uuid\n"
8913 " findfs-uuid uuid\n"
8917 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2310
8919 "This command searches the filesystems and returns the one which has the "
8920 "given UUID. An error is returned if no such filesystem can be found."
8924 #: ../fish/guestfish-actions.pod:1438
8925 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8926 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
8929 #: ../fish/guestfish-actions.pod:1440
8934 #: ../fish/guestfish-actions.pod:1442
8937 " fsck fstype device\n"
8940 " fsck тип_файлової_системи пристрій\n"
8944 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2328
8946 "This runs the filesystem checker (fsck) on C<device> which should have "
8947 "filesystem type C<fstype>."
8951 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2331
8953 "The returned integer is the status. See L<fsck(8)> for the list of status "
8954 "codes from C<fsck>."
8958 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2340
8959 msgid "Multiple status codes can be summed together."
8963 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2344
8965 "A non-zero return code can mean \"success\", for example if errors have been "
8966 "corrected on the filesystem."
8970 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
8971 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8975 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2354
8977 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8981 #: ../fish/guestfish-actions.pod:1472
8986 #: ../fish/guestfish-actions.pod:1474
8996 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2365
8998 "Return the additional kernel options which are added to the guest kernel "
9003 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2368
9004 msgid "If C<NULL> then no options are added."
9008 #: ../fish/guestfish-actions.pod:1481
9009 msgid "get-attach-method"
9010 msgstr "get-attach-method"
9013 #: ../fish/guestfish-actions.pod:1483
9016 " get-attach-method\n"
9019 " get-attach-method\n"
9023 #: ../fish/guestfish-actions.pod:1485
9024 msgid "Return the current attach method. See L</set-attach-method>."
9028 #: ../fish/guestfish-actions.pod:1487
9029 msgid "get-autosync"
9030 msgstr "get-autosync"
9033 #: ../fish/guestfish-actions.pod:1489
9043 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2393
9044 msgid "Get the autosync flag."
9048 #: ../fish/guestfish-actions.pod:1493
9053 #: ../fish/guestfish-actions.pod:1495
9063 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2404
9064 msgid "Return the direct appliance mode flag."
9068 #: ../fish/guestfish-actions.pod:1499
9070 msgstr "get-e2label"
9073 #: ../fish/guestfish-actions.pod:1501
9076 " get-e2label device\n"
9079 " get-e2label пристрій\n"
9083 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2423
9085 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9089 #: ../fish/guestfish-actions.pod:1506
9091 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9096 #: ../fish/guestfish-actions.pod:1513
9101 #: ../fish/guestfish-actions.pod:1515
9104 " get-e2uuid device\n"
9107 " get-e2uuid пристрій\n"
9111 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2444
9113 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9117 #: ../fish/guestfish-actions.pod:1520
9119 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9124 #: ../fish/guestfish-actions.pod:1527
9126 msgstr "get-memsize"
9129 #: ../fish/guestfish-actions.pod:1529
9139 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2457
9141 "This gets the memory size in megabytes allocated to the qemu subprocess."
9145 #: ../fish/guestfish-actions.pod:1534
9147 "If L</set-memsize> was not called on this handle, and if "
9148 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9149 "value for memsize."
9153 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595
9154 #: ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4462
9155 #: ../src/guestfs-actions.pod:2464 ../src/guestfs-actions.pod:2556
9156 #: ../src/guestfs-actions.pod:6755 ../src/guestfs-actions.pod:6881
9158 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9162 #: ../fish/guestfish-actions.pod:1541
9164 msgstr "get-network"
9167 #: ../fish/guestfish-actions.pod:1543
9177 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2476
9178 msgid "This returns the enable network flag."
9182 #: ../fish/guestfish-actions.pod:1547
9187 #: ../fish/guestfish-actions.pod:1549
9197 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2487
9198 msgid "Return the current search path."
9202 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2489
9204 "This is always non-NULL. If it wasn't set already, then this will return "
9209 #: ../fish/guestfish-actions.pod:1556
9214 #: ../fish/guestfish-actions.pod:1558
9222 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2502
9223 msgid "This returns the process group flag."
9227 #: ../fish/guestfish-actions.pod:1562
9232 #: ../fish/guestfish-actions.pod:1564
9237 #: ../fish/guestfish-actions.pod:1566
9247 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2513
9249 "Return the process ID of the qemu subprocess. If there is no qemu "
9250 "subprocess, then this will return an error."
9254 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2516
9255 msgid "This is an internal call used for debugging and testing."
9259 #: ../fish/guestfish-actions.pod:1573
9264 #: ../fish/guestfish-actions.pod:1575
9274 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2527
9275 msgid "Return the current qemu binary."
9279 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2529
9281 "This is always non-NULL. If it wasn't set already, then this will return "
9282 "the default qemu binary name."
9286 #: ../fish/guestfish-actions.pod:1582
9287 msgid "get-recovery-proc"
9288 msgstr "get-recovery-proc"
9291 #: ../fish/guestfish-actions.pod:1584
9294 " get-recovery-proc\n"
9297 " get-recovery-proc\n"
9301 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2542
9302 msgid "Return the recovery process enabled flag."
9306 #: ../fish/guestfish-actions.pod:1588
9308 msgstr "get-selinux"
9311 #: ../fish/guestfish-actions.pod:1590
9321 #: ../fish/guestfish-actions.pod:1592
9323 "This returns the current setting of the selinux flag which is passed to the "
9324 "appliance at boot time. See L</set-selinux>."
9328 #: ../fish/guestfish-actions.pod:1598
9333 #: ../fish/guestfish-actions.pod:1600
9341 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2568
9342 msgid "This returns the number of virtual CPUs assigned to the appliance."
9346 #: ../fish/guestfish-actions.pod:1604
9351 #: ../fish/guestfish-actions.pod:1606
9361 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2579
9363 "This returns the current state as an opaque integer. This is only useful "
9364 "for printing debug and internal error messages."
9368 #: ../fish/guestfish-actions.pod:1611 ../fish/guestfish-actions.pod:2570
9369 #: ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:2626
9370 #: ../fish/guestfish-actions.pod:2642 ../src/guestfs-actions.pod:2582
9371 #: ../src/guestfs-actions.pod:3901 ../src/guestfs-actions.pod:3930
9372 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:4018
9373 msgid "For more information on states, see L<guestfs(3)>."
9377 #: ../fish/guestfish-actions.pod:1613
9382 #: ../fish/guestfish-actions.pod:1615
9392 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2593
9393 msgid "Return the command trace flag."
9397 #: ../fish/guestfish-actions.pod:1619
9402 #: ../fish/guestfish-actions.pod:1621
9412 #: ../fish/guestfish-actions.pod:1623
9414 "Return the current umask. By default the umask is C<022> unless it has been "
9415 "set by calling L</umask>."
9419 #: ../fish/guestfish-actions.pod:1626
9421 msgstr "get-verbose"
9424 #: ../fish/guestfish-actions.pod:1628
9434 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2616
9435 msgid "This returns the verbose messages flag."
9439 #: ../fish/guestfish-actions.pod:1632
9444 #: ../fish/guestfish-actions.pod:1634
9454 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2627
9455 msgid "This gets the SELinux security context of the daemon."
9459 #: ../fish/guestfish-actions.pod:1638
9460 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9464 #: ../fish/guestfish-actions.pod:1641
9469 #: ../fish/guestfish-actions.pod:1643
9472 " getxattr path name\n"
9475 " getxattr шлях назва\n"
9479 #: ../fish/guestfish-actions.pod:1645
9481 "Get a single extended attribute from file C<path> named C<name>. This call "
9482 "follows symlinks. If you want to lookup an extended attribute for the "
9483 "symlink itself, use L</lgetxattr>."
9487 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2715
9489 "Normally it is better to get all extended attributes from a file in one go "
9490 "by calling L</getxattrs>. However some Linux filesystem implementations are "
9491 "buggy and do not provide a way to list out attributes. For these "
9492 "filesystems (notably ntfs-3g) you have to know the names of the extended "
9493 "attributes you want in advance and call this function."
9497 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2722
9498 #: ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:4151
9500 "Extended attribute values are blobs of binary data. If there is no extended "
9501 "attribute named C<name>, this returns an error."
9505 #: ../fish/guestfish-actions.pod:1659
9506 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9507 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9510 #: ../fish/guestfish-actions.pod:1661
9515 #: ../fish/guestfish-actions.pod:1663
9525 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2673
9527 "This call lists the extended attributes of the file or directory C<path>."
9531 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2676
9533 "At the system call level, this is a combination of the L<listxattr(2)> and "
9534 "L<getxattr(2)> calls."
9538 #: ../fish/guestfish-actions.pod:1671
9539 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9540 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
9543 #: ../fish/guestfish-actions.pod:1673
9545 msgstr "glob-expand"
9548 #: ../fish/guestfish-actions.pod:1675
9551 " glob-expand pattern\n"
9554 " glob-expand шаблон\n"
9558 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2693
9560 "This command searches for all the pathnames matching C<pattern> according to "
9561 "the wildcard expansion rules used by the shell."
9565 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2697
9567 "If no paths match, then this returns an empty list (note: not an error)."
9571 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2700
9573 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9574 "GLOB_BRACE>. See that manual page for more details."
9578 #: ../fish/guestfish-actions.pod:1688
9583 #: ../fish/guestfish-actions.pod:1690
9586 " grep regex path\n"
9589 " grepi формальний_вираз шлях\n"
9593 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2717
9594 msgid "This calls the external C<grep> program and returns the matching lines."
9598 #: ../fish/guestfish-actions.pod:1698
9603 #: ../fish/guestfish-actions.pod:1700
9606 " grepi regex path\n"
9609 " grepi формальний_вираз шлях\n"
9613 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2736
9615 "This calls the external C<grep -i> program and returns the matching lines."
9619 #: ../fish/guestfish-actions.pod:1708
9620 msgid "grub-install"
9621 msgstr "grub-install"
9624 #: ../fish/guestfish-actions.pod:1710
9627 " grub-install root device\n"
9630 " grub-install кореневий пристрій\n"
9634 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2755
9636 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9637 "with the root directory being C<root>."
9641 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2764
9643 "There is currently no way in the API to install grub2, which is used by most "
9644 "modern Linux guests. It is possible to run the grub2 command from the "
9645 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9649 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2771
9651 "This uses C<grub-install> from the host. Unfortunately grub is not always "
9652 "compatible with itself, so this only works in rather narrow circumstances. "
9653 "Careful testing with each guest version is advisable."
9657 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2778
9659 "If grub-install reports the error \"No suitable drive was found in the "
9660 "generated device map.\" it may be that you need to create a C</boot/grub/"
9661 "device.map> file first that contains the mapping between grub device names "
9662 "and Linux device names. It is usually sufficient to create a file "
9667 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2785
9675 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2787
9676 msgid "replacing C</dev/vda> with the name of the installation device."
9680 #: ../fish/guestfish-actions.pod:1748
9685 #: ../fish/guestfish-actions.pod:1750
9695 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2801
9697 "This command returns up to the first 10 lines of a file as a list of strings."
9701 #: ../fish/guestfish-actions.pod:1758
9706 #: ../fish/guestfish-actions.pod:1760
9709 " head-n nrlines path\n"
9714 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2820
9716 "If the parameter C<nrlines> is a positive number, this returns the first "
9717 "C<nrlines> lines of the file C<path>."
9721 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2823
9723 "If the parameter C<nrlines> is a negative number, this returns lines from "
9724 "the file C<path>, excluding the last C<nrlines> lines."
9728 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4843
9729 #: ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:7460
9730 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9734 #: ../fish/guestfish-actions.pod:1773
9739 #: ../fish/guestfish-actions.pod:1775
9749 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2843
9751 "This runs C<hexdump -C> on the given C<path>. The result is the human-"
9752 "readable, canonical hex dump of the file."
9756 #: ../fish/guestfish-actions.pod:1783
9761 #: ../fish/guestfish-actions.pod:1785
9764 " initrd-cat initrdpath filename\n"
9767 " initrd-cat шлях_initrd назва_файла\n"
9771 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2862
9773 "This command unpacks the file C<filename> from the initrd file called "
9774 "C<initrdpath>. The filename must be given I<without> the initial C</> "
9779 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2866
9781 "For example, in guestfish you could use the following command to examine the "
9782 "boot script (usually called C</init>) contained in a Linux initrd or "
9787 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2870
9790 " initrd-cat /boot/initrd-<version>.img init\n"
9795 #: ../fish/guestfish-actions.pod:1797
9796 msgid "See also L</initrd-list>."
9797 msgstr "Див. також L</initrd-list>."
9800 #: ../fish/guestfish-actions.pod:1802
9802 msgstr "initrd-list"
9805 #: ../fish/guestfish-actions.pod:1804
9808 " initrd-list path\n"
9811 " initrd-list шлях\n"
9815 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2889
9816 msgid "This command lists out files contained in an initrd."
9820 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2891
9822 "The files are listed without any initial C</> character. The files are "
9823 "listed in the order they appear (not necessarily alphabetical). Directory "
9824 "names are listed as separate items."
9828 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2895
9830 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9831 "initrd. We I<only> support the newer initramfs format (compressed cpio "
9836 #: ../fish/guestfish-actions.pod:1816
9837 msgid "inotify-add-watch"
9838 msgstr "inotify-add-watch"
9841 #: ../fish/guestfish-actions.pod:1818
9844 " inotify-add-watch path mask\n"
9847 " inotify-add-watch шлях маска\n"
9851 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2912
9852 msgid "Watch C<path> for the events listed in C<mask>."
9856 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2914
9858 "Note that if C<path> is a directory then events within that directory are "
9859 "watched, but this does I<not> happen recursively (in subdirectories)."
9863 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2918
9865 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9866 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9870 #: ../fish/guestfish-actions.pod:1830
9871 msgid "inotify-close"
9872 msgstr "inotify-close"
9875 #: ../fish/guestfish-actions.pod:1832
9885 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2931
9887 "This closes the inotify handle which was previously opened by inotify_init. "
9888 "It removes all watches, throws away any pending events, and deallocates all "
9893 #: ../fish/guestfish-actions.pod:1838
9894 msgid "inotify-files"
9895 msgstr "inotify-files"
9898 #: ../fish/guestfish-actions.pod:1840
9908 #: ../fish/guestfish-actions.pod:1842
9910 "This function is a helpful wrapper around L</inotify-read> which just "
9911 "returns a list of pathnames of objects that were touched. The returned "
9912 "pathnames are sorted and deduplicated."
9916 #: ../fish/guestfish-actions.pod:1846
9917 msgid "inotify-init"
9918 msgstr "inotify-init"
9921 #: ../fish/guestfish-actions.pod:1848
9924 " inotify-init maxevents\n"
9929 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2960
9931 "This command creates a new inotify handle. The inotify subsystem can be "
9932 "used to notify events which happen to objects in the guest filesystem."
9936 #: ../fish/guestfish-actions.pod:1854
9938 "C<maxevents> is the maximum number of events which will be queued up between "
9939 "calls to L</inotify-read> or L</inotify-files>. If this is passed as C<0>, "
9940 "then the kernel (or previously set) default is used. For Linux 2.6.29 the "
9941 "default was 16384 events. Beyond this limit, the kernel throws away events, "
9942 "but records the fact that it threw them away by setting a flag "
9943 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9947 #: ../fish/guestfish-actions.pod:1864
9949 "Before any events are generated, you have to add some watches to the "
9950 "internal watch list. See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9951 "L</inotify-watch-all>."
9955 #: ../fish/guestfish-actions.pod:1870
9957 "Queued up events should be read periodically by calling L</inotify-read> (or "
9958 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>). "
9959 "If you don't read the events out often enough then you risk the internal "
9960 "queue overflowing."
9964 #: ../fish/guestfish-actions.pod:1877
9966 "The handle should be closed after use by calling L</inotify-close>. This "
9967 "also removes any watches automatically."
9971 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2991
9973 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9974 "by the Linux kernel, which is roughly what we expose via libguestfs. Note "
9975 "that there is one global inotify handle per libguestfs instance."
9979 #: ../fish/guestfish-actions.pod:1886
9980 msgid "inotify-read"
9981 msgstr "inotify-read"
9984 #: ../fish/guestfish-actions.pod:1888
9994 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:3005
9996 "Return the complete queue of events that have happened since the previous "
10001 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3008
10002 msgid "If no events have happened, this returns an empty list."
10006 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3010
10008 "I<Note>: In order to make sure that all events have been read, you must call "
10009 "this function repeatedly until it returns an empty list. The reason is that "
10010 "the call will read events up to the maximum appliance-to-host message size "
10011 "and leave remaining events in the queue."
10015 #: ../fish/guestfish-actions.pod:1901
10016 msgid "inotify-rm-watch"
10017 msgstr "inotify-rm-watch"
10020 #: ../fish/guestfish-actions.pod:1903
10023 " inotify-rm-watch wd\n"
10028 #: ../fish/guestfish-actions.pod:1905
10029 msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
10033 #: ../fish/guestfish-actions.pod:1908
10034 msgid "inspect-get-arch"
10035 msgstr "inspect-get-arch"
10038 #: ../fish/guestfish-actions.pod:1910
10041 " inspect-get-arch root\n"
10044 " inspect-get-arch корінь\n"
10048 #: ../fish/guestfish-actions.pod:1912
10050 "This returns the architecture of the inspected operating system. The "
10051 "possible return values are listed under L</file-architecture>."
10055 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3045
10057 "If the architecture could not be determined, then the string C<unknown> is "
10062 #: ../fish/guestfish-actions.pod:1919 ../fish/guestfish-actions.pod:2014
10063 #: ../fish/guestfish-actions.pod:2093 ../fish/guestfish-actions.pod:2105
10064 #: ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2251
10065 #: ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2286
10066 #: ../fish/guestfish-actions.pod:2326 ../fish/guestfish-actions.pod:2362
10067 #: ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2388
10068 #: ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2408
10069 #: ../fish/guestfish-actions.pod:2420 ../fish/guestfish-actions.pod:2516
10070 #: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3048
10071 #: ../src/guestfs-actions.pod:3150 ../src/guestfs-actions.pod:3254
10072 #: ../src/guestfs-actions.pod:3273 ../src/guestfs-actions.pod:3404
10073 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3516
10074 #: ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3590
10075 #: ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3654
10076 #: ../src/guestfs-actions.pod:3674 ../src/guestfs-actions.pod:3691
10077 #: ../src/guestfs-actions.pod:3707 ../src/guestfs-actions.pod:3725
10078 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3868
10079 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10083 #: ../fish/guestfish-actions.pod:1921
10084 msgid "inspect-get-distro"
10085 msgstr "inspect-get-distro"
10088 #: ../fish/guestfish-actions.pod:1923
10091 " inspect-get-distro root\n"
10094 " inspect-get-distro корінь\n"
10098 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3061
10100 "This returns the distro (distribution) of the inspected operating system."
10104 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3064
10105 msgid "Currently defined distros are:"
10109 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3068
10110 msgid "\"archlinux\""
10111 msgstr "\"archlinux\""
10114 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3070
10115 msgid "Arch Linux."
10116 msgstr "Arch Linux."
10119 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3072
10124 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3074
10129 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3076
10131 msgstr "\"debian\""
10134 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3078
10139 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3080
10141 msgstr "\"fedora\""
10144 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3082
10149 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3084
10151 msgstr "\"gentoo\""
10154 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3086
10159 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3088
10160 msgid "\"linuxmint\""
10161 msgstr "\"linuxmint\""
10164 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3090
10165 msgid "Linux Mint."
10166 msgstr "Linux Mint."
10169 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3092
10174 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3094
10179 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3096
10180 msgid "\"mandriva\""
10181 msgstr "\"mandriva\""
10184 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3098
10189 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3100
10194 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3102
10199 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3104
10200 msgid "\"opensuse\""
10204 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3106
10209 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3108
10211 msgstr "\"pardus\""
10214 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3110
10219 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3112
10220 msgid "\"redhat-based\""
10221 msgstr "\"redhat-based\""
10224 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3114
10225 msgid "Some Red Hat-derived distro."
10226 msgstr "Дистрибутив, що походить від Red Hat."
10229 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3116
10234 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3118
10235 msgid "Red Hat Enterprise Linux."
10236 msgstr "Red Hat Enterprise Linux."
10239 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3120
10240 msgid "\"scientificlinux\""
10241 msgstr "\"scientificlinux\""
10244 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3122
10245 msgid "Scientific Linux."
10246 msgstr "Scientific Linux."
10249 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3124
10250 msgid "\"slackware\""
10251 msgstr "\"slackware\""
10254 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3126
10256 msgstr "Slackware."
10259 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3128
10260 msgid "\"ttylinux\""
10264 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3130
10269 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3132
10271 msgstr "\"ubuntu\""
10274 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3134
10279 #: ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2084
10280 #: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3136
10281 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3625
10282 msgid "\"unknown\""
10283 msgstr "\"unknown\""
10286 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3138
10287 msgid "The distro could not be determined."
10288 msgstr "Дистрибутив, тип якого не вдалося визначити."
10291 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341
10292 #: ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3613
10293 msgid "\"windows\""
10294 msgstr "\"windows\""
10297 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3142
10299 "Windows does not have distributions. This string is returned if the OS type "
10304 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2090
10305 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3147
10306 #: ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3631
10308 "Future versions of libguestfs may return other strings here. The caller "
10309 "should be prepared to handle any string."
10313 #: ../fish/guestfish-actions.pod:2016
10314 msgid "inspect-get-drive-mappings"
10318 #: ../fish/guestfish-actions.pod:2018
10321 " inspect-get-drive-mappings root\n"
10326 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3163
10328 "This call is useful for Windows which uses a primitive system of assigning "
10329 "drive letters (like \"C:\") to partitions. This inspection API examines the "
10330 "Windows Registry to find out how disks/partitions are mapped to drive "
10331 "letters, and returns a hash table as in the example below:"
10335 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3169
10338 " C => /dev/vda2\n"
10339 " E => /dev/vdb1\n"
10340 " F => /dev/vdc1\n"
10345 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3173
10347 "Note that keys are drive letters. For Windows, the key is case insensitive "
10348 "and just contains the drive letter, without the customary colon separator "
10353 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3177
10355 "In future we may support other operating systems that also used drive "
10356 "letters, but the keys for those might not be case insensitive and might be "
10357 "longer than 1 character. For example in OS-9, hard drives were named C<h0>, "
10362 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3182
10364 "For Windows guests, currently only hard drive mappings are returned. "
10365 "Removable disks (eg. DVD-ROMs) are ignored."
10369 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3185
10371 "For guests that do not use drive mappings, or if the drive mappings could "
10372 "not be determined, this returns an empty hash table."
10376 #: ../fish/guestfish-actions.pod:2045
10378 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10379 "get-mountpoints>, L</inspect-get-filesystems>."
10383 #: ../fish/guestfish-actions.pod:2049
10384 msgid "inspect-get-filesystems"
10385 msgstr "inspect-get-filesystems"
10388 #: ../fish/guestfish-actions.pod:2051
10391 " inspect-get-filesystems root\n"
10394 " inspect-get-filesystems корінь\n"
10398 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3206
10400 "This returns a list of all the filesystems that we think are associated with "
10401 "this operating system. This includes the root filesystem, other ordinary "
10402 "filesystems, and non-mounted devices like swap partitions."
10406 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3211
10408 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10409 "to be shared between operating systems."
10413 #: ../fish/guestfish-actions.pod:2061
10415 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10416 "get-mountpoints>."
10420 #: ../fish/guestfish-actions.pod:2064
10421 msgid "inspect-get-format"
10422 msgstr "inspect-get-format"
10425 #: ../fish/guestfish-actions.pod:2066
10428 " inspect-get-format root\n"
10431 " inspect-get-format корінь\n"
10435 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3229
10437 "This returns the format of the inspected operating system. You can use it "
10438 "to detect install images, live CDs and similar."
10442 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3232
10443 msgid "Currently defined formats are:"
10447 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3236
10448 msgid "\"installed\""
10449 msgstr "\"installed\""
10452 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3238
10453 msgid "This is an installed operating system."
10454 msgstr "Це встановлена операційна система."
10457 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3240
10458 msgid "\"installer\""
10462 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3242
10464 "The disk image being inspected is not an installed operating system, but a "
10465 "I<bootable> install disk, live CD, or similar."
10469 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3247
10470 msgid "The format of this disk image is not known."
10474 #: ../fish/guestfish-actions.pod:2095
10475 msgid "inspect-get-hostname"
10476 msgstr "inspect-get-hostname"
10479 #: ../fish/guestfish-actions.pod:2097
10482 " inspect-get-hostname root\n"
10485 " inspect-get-hostname корінь\n"
10489 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3267
10491 "This function returns the hostname of the operating system as found by "
10492 "inspection of the guest's configuration files."
10496 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3270
10498 "If the hostname could not be determined, then the string C<unknown> is "
10503 #: ../fish/guestfish-actions.pod:2107
10504 msgid "inspect-get-icon"
10508 #: ../fish/guestfish-actions.pod:2109
10511 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
10516 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3296
10518 "This function returns an icon corresponding to the inspected operating "
10519 "system. The icon is returned as a buffer containing a PNG image (re-encoded "
10520 "to PNG if necessary)."
10524 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3300
10526 "If it was not possible to get an icon this function returns a zero-length "
10527 "(non-NULL) buffer. I<Callers must check for this case>."
10531 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3303
10533 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10534 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10535 "this file will be returned. You can disable favicons by passing the "
10536 "optional C<favicon> boolean as false (default is true)."
10540 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3309
10542 "If finding the favicon fails, then we look in other places in the guest for "
10547 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3312
10549 "If the optional C<highquality> boolean is true then only high quality icons "
10550 "are returned, which means only icons of high resolution with an alpha "
10551 "channel. The default (false) is to return any icon we can, even if it is of "
10552 "substandard quality."
10556 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3323
10558 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10559 "before you call this, since it needs to read information from the guest "
10560 "filesystem during the call."
10564 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3329
10566 "B<Security:> The icon data comes from the untrusted guest, and should be "
10567 "treated with caution. PNG files have been known to contain exploits. "
10568 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10569 "trying to process or display the icon."
10573 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3337
10575 "The PNG image returned can be any size. It might not be square. Libguestfs "
10576 "tries to return the largest, highest quality icon available. The "
10577 "application must scale the icon to the required size."
10581 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3344
10583 "Extracting icons from Windows guests requires the external C<wrestool> "
10584 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10585 "C<pnmtopng>, C<pamcut>) from the C<netpbm> package. These must be "
10586 "installed separately."
10590 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3351
10592 "Operating system icons are usually trademarks. Seek legal advice before "
10593 "using trademarks in applications."
10597 #: ../fish/guestfish-actions.pod:2173
10598 msgid "inspect-get-major-version"
10599 msgstr "inspect-get-major-version"
10602 #: ../fish/guestfish-actions.pod:2175
10605 " inspect-get-major-version root\n"
10608 " inspect-get-major-version корінь\n"
10612 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3392
10614 "This returns the major version number of the inspected operating system."
10618 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3395
10620 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10621 "popular public names used by the operating system. Notably the operating "
10622 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10623 "1). You can find out the real versions corresponding to releases of Windows "
10624 "by consulting Wikipedia or MSDN."
10628 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198
10629 #: ../src/guestfs-actions.pod:3402 ../src/guestfs-actions.pod:3419
10630 msgid "If the version could not be determined, then C<0> is returned."
10634 #: ../fish/guestfish-actions.pod:2191
10635 msgid "inspect-get-minor-version"
10636 msgstr "inspect-get-minor-version"
10639 #: ../fish/guestfish-actions.pod:2193
10642 " inspect-get-minor-version root\n"
10645 " inspect-get-minor-version корінь\n"
10649 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3416
10651 "This returns the minor version number of the inspected operating system."
10655 #: ../fish/guestfish-actions.pod:2200
10657 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10658 "get-major-version>."
10662 #: ../fish/guestfish-actions.pod:2203
10663 msgid "inspect-get-mountpoints"
10664 msgstr "inspect-get-mountpoints"
10667 #: ../fish/guestfish-actions.pod:2205
10670 " inspect-get-mountpoints root\n"
10673 " inspect-get-mountpoints корінь\n"
10677 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3434
10679 "This returns a hash of where we think the filesystems associated with this "
10680 "operating system should be mounted. Callers should note that this is at "
10681 "best an educated guess made by reading configuration files such as C</etc/"
10682 "fstab>. I<In particular note> that this may return filesystems which are "
10683 "non-existent or not mountable and callers should be prepared to handle or "
10684 "ignore failures if they try to mount them."
10688 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3443
10690 "Each element in the returned hashtable has a key which is the path of the "
10691 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10692 "mounted there (eg. C</dev/sda1>)."
10696 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3448
10698 "Non-mounted devices such as swap devices are I<not> returned in this list."
10702 #: ../fish/guestfish-actions.pod:2224
10704 "For operating systems like Windows which still use drive letters, this call "
10705 "will only return an entry for the first drive \"mounted on\" C</>. For "
10706 "information about the mapping of drive letters to partitions, see L</inspect-"
10707 "get-drive-mappings>."
10711 #: ../fish/guestfish-actions.pod:2230
10713 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10714 "get-filesystems>."
10718 #: ../fish/guestfish-actions.pod:2233
10719 msgid "inspect-get-package-format"
10720 msgstr "inspect-get-package-format"
10723 #: ../fish/guestfish-actions.pod:2235
10726 " inspect-get-package-format root\n"
10729 " inspect-get-package-format корінь\n"
10733 #: ../fish/guestfish-actions.pod:2237
10735 "This function and L</inspect-get-package-management> return the package "
10736 "format and package management tool used by the inspected operating system. "
10737 "For example for Fedora these functions would return C<rpm> (package format) "
10738 "and C<yum> (package management)."
10742 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3480
10744 "This returns the string C<unknown> if we could not determine the package "
10745 "format I<or> if the operating system does not have a real packaging system "
10750 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3484
10752 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10753 "C<pkgsrc>. Future versions of libguestfs may return other strings."
10757 #: ../fish/guestfish-actions.pod:2253
10758 msgid "inspect-get-package-management"
10759 msgstr "inspect-get-package-management"
10762 #: ../fish/guestfish-actions.pod:2255
10765 " inspect-get-package-management root\n"
10768 " inspect-get-package-management корінь\n"
10772 #: ../fish/guestfish-actions.pod:2257
10774 "L</inspect-get-package-format> and this function return the package format "
10775 "and package management tool used by the inspected operating system. For "
10776 "example for Fedora these functions would return C<rpm> (package format) and "
10777 "C<yum> (package management)."
10781 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3507
10783 "This returns the string C<unknown> if we could not determine the package "
10784 "management tool I<or> if the operating system does not have a real packaging "
10785 "system (eg. Windows)."
10789 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3511
10791 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10792 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>. Future "
10793 "versions of libguestfs may return other strings."
10797 #: ../fish/guestfish-actions.pod:2274
10798 msgid "inspect-get-product-name"
10799 msgstr "inspect-get-product-name"
10802 #: ../fish/guestfish-actions.pod:2276
10805 " inspect-get-product-name root\n"
10808 " inspect-get-product-name корінь\n"
10812 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3529
10814 "This returns the product name of the inspected operating system. The "
10815 "product name is generally some freeform string which can be displayed to the "
10816 "user, but should not be parsed by programs."
10820 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3534
10822 "If the product name could not be determined, then the string C<unknown> is "
10827 #: ../fish/guestfish-actions.pod:2288
10828 msgid "inspect-get-product-variant"
10832 #: ../fish/guestfish-actions.pod:2290
10835 " inspect-get-product-variant root\n"
10840 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3550
10841 msgid "This returns the product variant of the inspected operating system."
10845 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3553
10847 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10848 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10849 "is usually a string such as C<Client> or C<Server> (other values are "
10850 "possible). This can be used to distinguish consumer and enterprise versions "
10851 "of Windows that have the same version number (for example, Windows 7 and "
10852 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10853 "the latter is C<Server>)."
10857 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3562
10859 "For enterprise Linux guests, in future we intend this to return the product "
10860 "variant such as C<Desktop>, C<Server> and so on. But this is not "
10861 "implemented at present."
10865 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3566
10867 "If the product variant could not be determined, then the string C<unknown> "
10872 #: ../fish/guestfish-actions.pod:2311
10874 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10875 "get-product-name>, L</inspect-get-major-version>."
10879 #: ../fish/guestfish-actions.pod:2315
10880 msgid "inspect-get-roots"
10881 msgstr "inspect-get-roots"
10884 #: ../fish/guestfish-actions.pod:2317
10887 " inspect-get-roots\n"
10890 " inspect-get-roots\n"
10894 #: ../fish/guestfish-actions.pod:2319
10896 "This function is a convenient way to get the list of root devices, as "
10897 "returned from a previous call to L</inspect-os>, but without redoing the "
10898 "whole inspection process."
10902 #: ../fish/guestfish-actions.pod:2323
10904 "This returns an empty list if either no root devices were found or the "
10905 "caller has not called L</inspect-os>."
10909 #: ../fish/guestfish-actions.pod:2328
10910 msgid "inspect-get-type"
10911 msgstr "inspect-get-type"
10914 #: ../fish/guestfish-actions.pod:2330
10917 " inspect-get-type root\n"
10920 " inspect-get-type корінь\n"
10924 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3604
10926 "This returns the type of the inspected operating system. Currently defined "
10931 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3609
10936 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3611
10937 msgid "Any Linux-based operating system."
10941 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3615
10942 msgid "Any Microsoft Windows operating system."
10946 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3617
10947 msgid "\"freebsd\""
10948 msgstr "\"freebsd\""
10951 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3619
10956 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3621
10961 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3623
10966 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3627
10967 msgid "The operating system type could not be determined."
10971 #: ../fish/guestfish-actions.pod:2364
10972 msgid "inspect-get-windows-current-control-set"
10976 #: ../fish/guestfish-actions.pod:2366
10979 " inspect-get-windows-current-control-set root\n"
10984 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3647
10986 "This returns the Windows CurrentControlSet of the inspected guest. The "
10987 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10991 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3650
10993 "This call assumes that the guest is Windows and that the Registry could be "
10994 "examined by inspection. If this is not the case then an error is returned."
10998 #: ../fish/guestfish-actions.pod:2377
10999 msgid "inspect-get-windows-systemroot"
11000 msgstr "inspect-get-windows-systemroot"
11003 #: ../fish/guestfish-actions.pod:2379
11006 " inspect-get-windows-systemroot root\n"
11009 " inspect-get-windows-systemroot корінь\n"
11013 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3667
11015 "This returns the Windows systemroot of the inspected guest. The systemroot "
11016 "is a directory path such as C</WINDOWS>."
11020 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3670
11022 "This call assumes that the guest is Windows and that the systemroot could be "
11023 "determined by inspection. If this is not the case then an error is returned."
11027 #: ../fish/guestfish-actions.pod:2390
11028 msgid "inspect-is-live"
11029 msgstr "inspect-is-live"
11032 #: ../fish/guestfish-actions.pod:2392
11035 " inspect-is-live root\n"
11038 " inspect-is-live корінь\n"
11042 #: ../fish/guestfish-actions.pod:2394
11044 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11045 "then this returns true if a live image was detected on the disk."
11049 #: ../fish/guestfish-actions.pod:2400
11050 msgid "inspect-is-multipart"
11051 msgstr "inspect-is-multipart"
11054 #: ../fish/guestfish-actions.pod:2402
11057 " inspect-is-multipart root\n"
11060 " inspect-is-multipart корінь\n"
11064 #: ../fish/guestfish-actions.pod:2404
11066 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11067 "then this returns true if the disk is part of a set."
11071 #: ../fish/guestfish-actions.pod:2410
11072 msgid "inspect-is-netinst"
11073 msgstr "inspect-is-netinst"
11076 #: ../fish/guestfish-actions.pod:2412
11079 " inspect-is-netinst root\n"
11082 " inspect-is-netinst корінь\n"
11086 #: ../fish/guestfish-actions.pod:2414
11088 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11089 "then this returns true if the disk is a network installer, ie. not a self-"
11090 "contained install CD but one which is likely to require network access to "
11091 "complete the install."
11095 #: ../fish/guestfish-actions.pod:2422
11096 msgid "inspect-list-applications"
11097 msgstr "inspect-list-applications"
11100 #: ../fish/guestfish-actions.pod:2424
11103 " inspect-list-applications root\n"
11106 " inspect-list-applications кореневий_каталог\n"
11110 #: ../fish/guestfish-actions.pod:2426 ../src/guestfs-actions.pod:3737
11111 msgid "Return the list of applications installed in the operating system."
11115 #: ../fish/guestfish-actions.pod:2428
11117 "I<Note:> This call works differently from other parts of the inspection "
11118 "API. You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
11119 "then mount up the disks, before calling this. Listing applications is a "
11120 "significantly more difficult operation which requires access to the full "
11121 "filesystem. Also note that unlike the other L</inspect-get-*> calls which "
11122 "are just returning data cached in the libguestfs handle, this call actually "
11123 "reads parts of the mounted filesystems during the call."
11127 #: ../fish/guestfish-actions.pod:2438 ../src/guestfs-actions.pod:3749
11129 "This returns an empty list if the inspection code was not able to determine "
11130 "the list of applications."
11134 #: ../fish/guestfish-actions.pod:2441 ../src/guestfs-actions.pod:3752
11135 msgid "The application structure contains the following fields:"
11139 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3756
11140 msgid "C<app_name>"
11141 msgstr "C<app_name>"
11144 #: ../fish/guestfish-actions.pod:2447 ../src/guestfs-actions.pod:3758
11146 "The name of the application. For Red Hat-derived and Debian-derived Linux "
11147 "guests, this is the package name."
11151 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3761
11152 msgid "C<app_display_name>"
11153 msgstr "C<app_display_name>"
11156 #: ../fish/guestfish-actions.pod:2452 ../src/guestfs-actions.pod:3763
11158 "The display name of the application, sometimes localized to the install "
11159 "language of the guest operating system."
11163 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3766
11165 "If unavailable this is returned as an empty string C<\"\">. Callers needing "
11166 "to display something can use C<app_name> instead."
11170 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3769
11171 msgid "C<app_epoch>"
11172 msgstr "C<app_epoch>"
11175 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3771
11177 "For package managers which use epochs, this contains the epoch of the "
11178 "package (an integer). If unavailable, this is returned as C<0>."
11182 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3774
11183 msgid "C<app_version>"
11184 msgstr "C<app_version>"
11187 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3776
11189 "The version string of the application or package. If unavailable this is "
11190 "returned as an empty string C<\"\">."
11194 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3779
11195 msgid "C<app_release>"
11196 msgstr "C<app_release>"
11199 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3781
11201 "The release string of the application or package, for package managers that "
11202 "use this. If unavailable this is returned as an empty string C<\"\">."
11206 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3785
11207 msgid "C<app_install_path>"
11208 msgstr "C<app_install_path>"
11211 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3787
11213 "The installation path of the application (on operating systems such as "
11214 "Windows which use installation paths). This path is in the format used by "
11215 "the guest operating system, it is not a libguestfs path."
11219 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3792
11220 msgid "If unavailable this is returned as an empty string C<\"\">."
11224 #: ../fish/guestfish-actions.pod:2483 ../src/guestfs-actions.pod:3794
11225 msgid "C<app_trans_path>"
11226 msgstr "C<app_trans_path>"
11229 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3796
11231 "The install path translated into a libguestfs path. If unavailable this is "
11232 "returned as an empty string C<\"\">."
11236 #: ../fish/guestfish-actions.pod:2488 ../src/guestfs-actions.pod:3799
11237 msgid "C<app_publisher>"
11238 msgstr "C<app_publisher>"
11241 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3801
11243 "The name of the publisher of the application, for package managers that use "
11244 "this. If unavailable this is returned as an empty string C<\"\">."
11248 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3805
11250 msgstr "C<app_url>"
11253 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3807
11255 "The URL (eg. upstream URL) of the application. If unavailable this is "
11256 "returned as an empty string C<\"\">."
11260 #: ../fish/guestfish-actions.pod:2499 ../src/guestfs-actions.pod:3810
11261 msgid "C<app_source_package>"
11262 msgstr "C<app_source_package>"
11265 #: ../fish/guestfish-actions.pod:2501 ../src/guestfs-actions.pod:3812
11267 "For packaging systems which support this, the name of the source package. "
11268 "If unavailable this is returned as an empty string C<\"\">."
11272 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3815
11273 msgid "C<app_summary>"
11274 msgstr "C<app_summary>"
11277 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:3817
11279 "A short (usually one line) description of the application or package. If "
11280 "unavailable this is returned as an empty string C<\"\">."
11284 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3820
11285 msgid "C<app_description>"
11286 msgstr "C<app_description>"
11289 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3822
11291 "A longer description of the application or package. If unavailable this is "
11292 "returned as an empty string C<\"\">."
11296 #: ../fish/guestfish-actions.pod:2518
11298 msgstr "inspect-os"
11301 #: ../fish/guestfish-actions.pod:2520
11311 #: ../fish/guestfish-actions.pod:2522 ../src/guestfs-actions.pod:3840
11313 "This function uses other libguestfs functions and certain heuristics to "
11314 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11315 "for operating systems."
11319 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3844
11320 msgid "The list returned is empty if no operating systems were found."
11324 #: ../fish/guestfish-actions.pod:2528 ../src/guestfs-actions.pod:3846
11326 "If one operating system was found, then this returns a list with a single "
11327 "element, which is the name of the root filesystem of this operating system. "
11328 "It is also possible for this function to return a list containing more than "
11329 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11330 "element being the root filesystem of one of the operating systems."
11334 #: ../fish/guestfish-actions.pod:2535
11336 "You can pass the root string(s) returned to other L</inspect-get-*> "
11337 "functions in order to query further information about each operating system, "
11338 "such as the name and version."
11342 #: ../fish/guestfish-actions.pod:2540
11344 "This function uses other libguestfs features such as L</mount-ro> and L</"
11345 "umount-all> in order to mount and unmount filesystems and look at the "
11346 "contents. This should be called with no disks currently mounted. The "
11347 "function may also use Augeas, so any existing Augeas handle will be closed."
11351 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3864
11353 "This function cannot decrypt encrypted disks. The caller must do that first "
11354 "(supplying the necessary keys) if the disk is encrypted."
11358 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2750
11359 #: ../fish/guestfish-actions.pod:2809
11360 msgid "See also L</list-filesystems>."
11361 msgstr "Див. також L</list-filesystems>."
11364 #: ../fish/guestfish-actions.pod:2554
11365 msgid "is-blockdev"
11366 msgstr "is-blockdev"
11369 #: ../fish/guestfish-actions.pod:2556
11372 " is-blockdev path\n"
11375 " is-blockdev шлях\n"
11379 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3884
11381 "This returns C<true> if and only if there is a block device with the given "
11386 #: ../fish/guestfish-actions.pod:2561 ../fish/guestfish-actions.pod:2579
11387 #: ../fish/guestfish-actions.pod:2598 ../fish/guestfish-actions.pod:2607
11388 #: ../fish/guestfish-actions.pod:2617 ../fish/guestfish-actions.pod:2651
11389 #: ../fish/guestfish-actions.pod:2660
11390 msgid "See also L</stat>."
11391 msgstr "Див. також L</stat>."
11394 #: ../fish/guestfish-actions.pod:2563
11399 #: ../fish/guestfish-actions.pod:2565
11409 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3898
11411 "This returns true iff this handle is busy processing a command (in the "
11416 #: ../fish/guestfish-actions.pod:2572
11418 msgstr "is-chardev"
11421 #: ../fish/guestfish-actions.pod:2574
11424 " is-chardev path\n"
11427 " is-chardev шлях\n"
11431 #: ../fish/guestfish-actions.pod:2576 ../src/guestfs-actions.pod:3913
11433 "This returns C<true> if and only if there is a character device with the "
11434 "given C<path> name."
11438 #: ../fish/guestfish-actions.pod:2581
11443 #: ../fish/guestfish-actions.pod:2583
11453 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3927
11455 "This returns true iff this handle is being configured (in the C<CONFIG> "
11460 #: ../fish/guestfish-actions.pod:2590
11465 #: ../fish/guestfish-actions.pod:2592
11475 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3942
11477 "This returns C<true> if and only if there is a directory with the given "
11478 "C<path> name. Note that it returns false for other objects like files."
11482 #: ../fish/guestfish-actions.pod:2600
11487 #: ../fish/guestfish-actions.pod:2602
11497 #: ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:3958
11499 "This returns C<true> if and only if there is a FIFO (named pipe) with the "
11500 "given C<path> name."
11504 #: ../fish/guestfish-actions.pod:2609
11509 #: ../fish/guestfish-actions.pod:2611
11519 #: ../fish/guestfish-actions.pod:2613 ../src/guestfs-actions.pod:3973
11521 "This returns C<true> if and only if there is a regular file with the given "
11522 "C<path> name. Note that it returns false for other objects like directories."
11526 #: ../fish/guestfish-actions.pod:2619
11527 msgid "is-launching"
11528 msgstr "is-launching"
11531 #: ../fish/guestfish-actions.pod:2621
11541 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3988
11543 "This returns true iff this handle is launching the subprocess (in the "
11544 "C<LAUNCHING> state)."
11548 #: ../fish/guestfish-actions.pod:2628
11553 #: ../fish/guestfish-actions.pod:2630
11559 " is-lv пристрій\n"
11563 #: ../fish/guestfish-actions.pod:2632 ../src/guestfs-actions.pod:4003
11565 "This command tests whether C<device> is a logical volume, and returns true "
11566 "iff this is the case."
11570 #: ../fish/guestfish-actions.pod:2635
11575 #: ../fish/guestfish-actions.pod:2637
11585 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4015
11587 "This returns true iff this handle is ready to accept commands (in the "
11592 #: ../fish/guestfish-actions.pod:2644
11597 #: ../fish/guestfish-actions.pod:2646
11600 " is-socket path\n"
11603 " is-socket шлях\n"
11607 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4030
11609 "This returns C<true> if and only if there is a Unix domain socket with the "
11610 "given C<path> name."
11614 #: ../fish/guestfish-actions.pod:2653
11616 msgstr "is-symlink"
11619 #: ../fish/guestfish-actions.pod:2655
11622 " is-symlink path\n"
11625 " is-symlink шлях\n"
11629 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:4045
11631 "This returns C<true> if and only if there is a symbolic link with the given "
11636 #: ../fish/guestfish-actions.pod:2662
11641 #: ../fish/guestfish-actions.pod:2664
11649 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:4060
11651 "This returns true iff the file exists and the file is empty or it contains "
11656 #: ../fish/guestfish-actions.pod:2669
11657 msgid "is-zero-device"
11661 #: ../fish/guestfish-actions.pod:2671
11664 " is-zero-device device\n"
11669 #: ../fish/guestfish-actions.pod:2673 ../src/guestfs-actions.pod:4073
11670 msgid "This returns true iff the device exists and contains all zero bytes."
11674 #: ../fish/guestfish-actions.pod:2675 ../src/guestfs-actions.pod:4075
11675 msgid "Note that for large devices this can take a long time to run."
11679 #: ../fish/guestfish-actions.pod:2677
11680 msgid "kill-subprocess"
11681 msgstr "kill-subprocess"
11684 #: ../fish/guestfish-actions.pod:2679
11687 " kill-subprocess\n"
11690 " kill-subprocess\n"
11694 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:4086
11695 msgid "This kills the qemu subprocess. You should never need to call this."
11699 #: ../fish/guestfish-actions.pod:2683
11704 #: ../fish/guestfish-actions.pod:2685
11709 #: ../fish/guestfish-actions.pod:2687
11719 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4097
11721 "Internally libguestfs is implemented by running a virtual machine using "
11726 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4100
11728 "You should call this after configuring the handle (eg. adding drives) but "
11729 "before performing any actions."
11733 #: ../fish/guestfish-actions.pod:2695
11738 #: ../fish/guestfish-actions.pod:2697
11741 " lchown owner group path\n"
11744 " lchown власник група шлях\n"
11748 #: ../fish/guestfish-actions.pod:2699
11750 "Change the file owner to C<owner> and group to C<group>. This is like L</"
11751 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11756 #: ../fish/guestfish-actions.pod:2707
11761 #: ../fish/guestfish-actions.pod:2709
11764 " lgetxattr path name\n"
11767 " lgetxattr шлях назва\n"
11771 #: ../fish/guestfish-actions.pod:2711 ../src/guestfs-actions.pod:4140
11773 "Get a single extended attribute from file C<path> named C<name>. If C<path> "
11774 "is a symlink, then this call returns an extended attribute from the symlink."
11778 #: ../fish/guestfish-actions.pod:2725
11779 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11780 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11783 #: ../fish/guestfish-actions.pod:2727
11785 msgstr "lgetxattrs"
11788 #: ../fish/guestfish-actions.pod:2729
11791 " lgetxattrs path\n"
11794 " lgetxattrs шлях\n"
11798 #: ../fish/guestfish-actions.pod:2731
11800 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11801 "it returns the extended attributes of the link itself."
11805 #: ../fish/guestfish-actions.pod:2735
11810 #: ../fish/guestfish-actions.pod:2737
11818 #: ../fish/guestfish-actions.pod:2739 ../src/guestfs-actions.pod:4183
11820 "List all 9p filesystems attached to the guest. A list of mount tags is "
11825 #: ../fish/guestfish-actions.pod:2742
11826 msgid "list-devices"
11827 msgstr "list-devices"
11830 #: ../fish/guestfish-actions.pod:2744
11840 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4197
11841 msgid "List all the block devices."
11845 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4199
11846 msgid "The full block device names are returned, eg. C</dev/sda>."
11850 #: ../fish/guestfish-actions.pod:2752
11851 msgid "list-dm-devices"
11855 #: ../fish/guestfish-actions.pod:2754
11858 " list-dm-devices\n"
11863 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4214
11864 msgid "List all device mapper devices."
11868 #: ../fish/guestfish-actions.pod:2758
11870 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11871 "previous call to L</luks-open>."
11875 #: ../fish/guestfish-actions.pod:2761
11877 "Device mapper devices which correspond to logical volumes are I<not> "
11878 "returned in this list. Call L</lvs> if you want to list logical volumes."
11882 #: ../fish/guestfish-actions.pod:2765
11883 msgid "list-filesystems"
11884 msgstr "list-filesystems"
11887 #: ../fish/guestfish-actions.pod:2767
11890 " list-filesystems\n"
11893 " list-filesystems\n"
11897 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4234
11899 "This inspection command looks for filesystems on partitions, block devices "
11900 "and logical volumes, returning a list of devices containing filesystems and "
11905 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4238
11907 "The return value is a hash, where the keys are the devices containing "
11908 "filesystems, and the values are the filesystem types. For example:"
11912 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4242
11915 " \"/dev/sda1\" => \"ntfs\"\n"
11916 " \"/dev/sda2\" => \"ext2\"\n"
11917 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11918 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11923 #: ../fish/guestfish-actions.pod:2782 ../src/guestfs-actions.pod:4247
11925 "The value can have the special value \"unknown\", meaning the content of the "
11926 "device is undetermined or empty. \"swap\" means a Linux swap partition."
11930 #: ../fish/guestfish-actions.pod:2786
11932 "This command runs other libguestfs commands, which might include L</mount> "
11933 "and L</umount>, and therefore you should use this soon after launch and only "
11934 "when nothing is mounted."
11938 #: ../fish/guestfish-actions.pod:2790
11940 "Not all of the filesystems returned will be mountable. In particular, swap "
11941 "partitions are returned in the list. Also this command does not check that "
11942 "each filesystem found is valid and mountable, and some filesystems might be "
11943 "mountable but require special options. Filesystems may not all belong to a "
11944 "single logical operating system (use L</inspect-os> to look for OSes)."
11948 #: ../fish/guestfish-actions.pod:2798
11949 msgid "list-partitions"
11950 msgstr "list-partitions"
11953 #: ../fish/guestfish-actions.pod:2800
11956 " list-partitions\n"
11959 " list-partitions\n"
11963 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4276
11964 msgid "List all the partitions detected on all block devices."
11968 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4278
11969 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11973 #: ../fish/guestfish-actions.pod:2806
11975 "This does not return logical volumes. For that you will need to call L</"
11980 #: ../fish/guestfish-actions.pod:2811
11985 #: ../fish/guestfish-actions.pod:2813
11995 #: ../fish/guestfish-actions.pod:2815 ../src/guestfs-actions.pod:4297
11997 "List the files in C<directory> (relative to the root directory, there is no "
11998 "cwd) in the format of 'ls -la'."
12002 #: ../fish/guestfish-actions.pod:2818 ../src/guestfs-actions.pod:4300
12004 "This command is mostly useful for interactive sessions. It is I<not> "
12005 "intended that you try to parse the output string."
12009 #: ../fish/guestfish-actions.pod:2821
12014 #: ../fish/guestfish-actions.pod:2823
12017 " ln target linkname\n"
12020 " ln призначення назва_посилання\n"
12024 #: ../fish/guestfish-actions.pod:2825 ../src/guestfs-actions.pod:4315
12025 msgid "This command creates a hard link using the C<ln> command."
12029 #: ../fish/guestfish-actions.pod:2827
12034 #: ../fish/guestfish-actions.pod:2829
12037 " ln-f target linkname\n"
12040 " ln-f призначення назва_посилання\n"
12044 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4328
12046 "This command creates a hard link using the C<ln -f> command. The I<-f> "
12047 "option removes the link (C<linkname>) if it exists already."
12051 #: ../fish/guestfish-actions.pod:2834
12056 #: ../fish/guestfish-actions.pod:2836
12059 " ln-s target linkname\n"
12062 " ln-s призначення назва_посилання\n"
12066 #: ../fish/guestfish-actions.pod:2838 ../src/guestfs-actions.pod:4342
12067 msgid "This command creates a symbolic link using the C<ln -s> command."
12071 #: ../fish/guestfish-actions.pod:2840
12076 #: ../fish/guestfish-actions.pod:2842
12079 " ln-sf target linkname\n"
12082 " ln-sf призначення назва_посилання\n"
12086 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4355
12088 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12089 "option removes the link (C<linkname>) if it exists already."
12093 #: ../fish/guestfish-actions.pod:2847
12094 msgid "lremovexattr"
12095 msgstr "lremovexattr"
12098 #: ../fish/guestfish-actions.pod:2849
12101 " lremovexattr xattr path\n"
12106 #: ../fish/guestfish-actions.pod:2851
12108 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
12109 "it removes an extended attribute of the link itself."
12113 #: ../fish/guestfish-actions.pod:2855
12118 #: ../fish/guestfish-actions.pod:2857
12128 #: ../fish/guestfish-actions.pod:2859 ../src/guestfs-actions.pod:4383
12130 "List the files in C<directory> (relative to the root directory, there is no "
12131 "cwd). The '.' and '..' entries are not returned, but hidden files are shown."
12135 #: ../fish/guestfish-actions.pod:2863
12137 "This command is mostly useful for interactive sessions. Programs should "
12138 "probably use L</readdir> instead."
12142 #: ../fish/guestfish-actions.pod:2866
12147 #: ../fish/guestfish-actions.pod:2868
12150 " lsetxattr xattr val vallen path\n"
12155 #: ../fish/guestfish-actions.pod:2870
12157 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
12158 "sets an extended attribute of the link itself."
12162 #: ../fish/guestfish-actions.pod:2874
12167 #: ../fish/guestfish-actions.pod:2876
12177 #: ../fish/guestfish-actions.pod:2878 ../fish/guestfish-actions.pod:4678
12178 #: ../src/guestfs-actions.pod:4419 ../src/guestfs-actions.pod:7200
12179 msgid "Returns file information for the given C<path>."
12183 #: ../fish/guestfish-actions.pod:2880
12185 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
12186 "the link is stat-ed, not the file it refers to."
12190 #: ../fish/guestfish-actions.pod:2884 ../src/guestfs-actions.pod:4425
12191 msgid "This is the same as the C<lstat(2)> system call."
12195 #: ../fish/guestfish-actions.pod:2886
12200 #: ../fish/guestfish-actions.pod:2888
12203 " lstatlist path 'names ...'\n"
12208 #: ../fish/guestfish-actions.pod:2890
12210 "This call allows you to perform the L</lstat> operation on multiple files, "
12211 "where all files are in the directory C<path>. C<names> is the list of files "
12212 "from this directory."
12216 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4444
12218 "On return you get a list of stat structs, with a one-to-one correspondence "
12219 "to the C<names> list. If any name did not exist or could not be lstat'd, "
12220 "then the C<ino> field of that structure is set to C<-1>."
12224 #: ../fish/guestfish-actions.pod:2899
12226 "This call is intended for programs that want to efficiently list a directory "
12227 "contents without making many round-trips. See also L</lxattrlist> for a "
12228 "similarly efficient call for getting extended attributes. Very long "
12229 "directory listings might cause the protocol message size to be exceeded, "
12230 "causing this call to fail. The caller must split up such requests into "
12231 "smaller groups of names."
12235 #: ../fish/guestfish-actions.pod:2907
12236 msgid "luks-add-key"
12237 msgstr "luks-add-key"
12240 #: ../fish/guestfish-actions.pod:2909
12243 " luks-add-key device keyslot\n"
12248 #: ../fish/guestfish-actions.pod:2911 ../src/guestfs-actions.pod:4472
12250 "This command adds a new key on LUKS device C<device>. C<key> is any "
12251 "existing key, and is used to access the device. C<newkey> is the new key to "
12252 "add. C<keyslot> is the key slot that will be replaced."
12256 #: ../fish/guestfish-actions.pod:2916
12258 "Note that if C<keyslot> already contains a key, then this command will "
12259 "fail. You have to use L</luks-kill-slot> first to remove that key."
12263 #: ../fish/guestfish-actions.pod:2920 ../fish/guestfish-actions.pod:2942
12264 #: ../fish/guestfish-actions.pod:2952 ../fish/guestfish-actions.pod:2963
12265 #: ../fish/guestfish-actions.pod:2989 ../fish/guestfish-actions.pod:2999
12267 "This command has one or more key or passphrase parameters. Guestfish will "
12268 "prompt for these separately."
12272 #: ../fish/guestfish-actions.pod:2923
12274 msgstr "luks-close"
12277 #: ../fish/guestfish-actions.pod:2925
12280 " luks-close device\n"
12283 " luks-close пристрій\n"
12287 #: ../fish/guestfish-actions.pod:2927
12289 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
12290 "luks-open-ro>. The C<device> parameter must be the name of the LUKS mapping "
12291 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
12296 #: ../fish/guestfish-actions.pod:2933
12297 msgid "luks-format"
12298 msgstr "luks-format"
12301 #: ../fish/guestfish-actions.pod:2935
12304 " luks-format device keyslot\n"
12309 #: ../fish/guestfish-actions.pod:2937 ../src/guestfs-actions.pod:4513
12311 "This command erases existing data on C<device> and formats the device as a "
12312 "LUKS encrypted device. C<key> is the initial key, which is added to key "
12313 "slot C<slot>. (LUKS supports 8 key slots, numbered 0-7)."
12317 #: ../fish/guestfish-actions.pod:2945
12318 msgid "luks-format-cipher"
12319 msgstr "luks-format-cipher"
12322 #: ../fish/guestfish-actions.pod:2947
12325 " luks-format-cipher device keyslot cipher\n"
12330 #: ../fish/guestfish-actions.pod:2949
12332 "This command is the same as L</luks-format> but it also allows you to set "
12333 "the C<cipher> used."
12337 #: ../fish/guestfish-actions.pod:2955
12338 msgid "luks-kill-slot"
12339 msgstr "luks-kill-slot"
12342 #: ../fish/guestfish-actions.pod:2957
12345 " luks-kill-slot device keyslot\n"
12350 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4554
12352 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12353 "device C<device>. C<key> must be one of the I<other> keys."
12357 #: ../fish/guestfish-actions.pod:2966
12362 #: ../fish/guestfish-actions.pod:2968
12365 " luks-open device mapname\n"
12370 #: ../fish/guestfish-actions.pod:2970 ../src/guestfs-actions.pod:4574
12372 "This command opens a block device which has been encrypted according to the "
12373 "Linux Unified Key Setup (LUKS) standard."
12377 #: ../fish/guestfish-actions.pod:2973 ../src/guestfs-actions.pod:4577
12378 msgid "C<device> is the encrypted block device or partition."
12382 #: ../fish/guestfish-actions.pod:2975 ../src/guestfs-actions.pod:4579
12384 "The caller must supply one of the keys associated with the LUKS block "
12385 "device, in the C<key> parameter."
12389 #: ../fish/guestfish-actions.pod:2978 ../src/guestfs-actions.pod:4582
12391 "This creates a new block device called C</dev/mapper/mapname>. Reads and "
12392 "writes to this block device are decrypted from and encrypted to the "
12393 "underlying C<device> respectively."
12397 #: ../fish/guestfish-actions.pod:2982
12399 "If this block device contains LVM volume groups, then calling L</vgscan> "
12400 "followed by L</vg-activate-all> will make them visible."
12404 #: ../fish/guestfish-actions.pod:2986
12405 msgid "Use L</list-dm-devices> to list all device mapper devices."
12409 #: ../fish/guestfish-actions.pod:2992
12410 msgid "luks-open-ro"
12411 msgstr "luks-open-ro"
12414 #: ../fish/guestfish-actions.pod:2994
12417 " luks-open-ro device mapname\n"
12422 #: ../fish/guestfish-actions.pod:2996
12424 "This is the same as L</luks-open> except that a read-only mapping is created."
12428 #: ../fish/guestfish-actions.pod:3002
12433 #: ../fish/guestfish-actions.pod:3004
12436 " lvcreate logvol volgroup mbytes\n"
12441 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4628
12443 "This creates an LVM logical volume called C<logvol> on the volume group "
12444 "C<volgroup>, with C<size> megabytes."
12448 #: ../fish/guestfish-actions.pod:3009
12449 msgid "lvm-canonical-lv-name"
12450 msgstr "lvm-canonical-lv-name"
12453 #: ../fish/guestfish-actions.pod:3011
12456 " lvm-canonical-lv-name lvname\n"
12461 #: ../fish/guestfish-actions.pod:3013 ../src/guestfs-actions.pod:4641
12463 "This converts alternative naming schemes for LVs that you might find to the "
12464 "canonical name. For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12469 #: ../fish/guestfish-actions.pod:3017 ../src/guestfs-actions.pod:4645
12471 "This command returns an error if the C<lvname> parameter does not refer to a "
12476 #: ../fish/guestfish-actions.pod:3020
12477 msgid "See also L</is-lv>."
12478 msgstr "Див. також L</is-lv>."
12481 #: ../fish/guestfish-actions.pod:3022
12482 msgid "lvm-clear-filter"
12483 msgstr "lvm-clear-filter"
12486 #: ../fish/guestfish-actions.pod:3024
12489 " lvm-clear-filter\n"
12492 " lvm-clear-filter\n"
12496 #: ../fish/guestfish-actions.pod:3026
12498 "This undoes the effect of L</lvm-set-filter>. LVM will be able to see every "
12503 #: ../fish/guestfish-actions.pod:3029 ../fish/guestfish-actions.pod:3057
12504 #: ../src/guestfs-actions.pod:4663 ../src/guestfs-actions.pod:4702
12506 "This command also clears the LVM cache and performs a volume group scan."
12510 #: ../fish/guestfish-actions.pod:3032
12511 msgid "lvm-remove-all"
12512 msgstr "lvm-remove-all"
12515 #: ../fish/guestfish-actions.pod:3034
12518 " lvm-remove-all\n"
12521 " lvm-remove-all\n"
12525 #: ../fish/guestfish-actions.pod:3036 ../src/guestfs-actions.pod:4675
12527 "This command removes all LVM logical volumes, volume groups and physical "
12532 #: ../fish/guestfish-actions.pod:3039
12533 msgid "lvm-set-filter"
12534 msgstr "lvm-set-filter"
12537 #: ../fish/guestfish-actions.pod:3041
12540 " lvm-set-filter 'devices ...'\n"
12543 " lvm-set-filter 'пристрої...'\n"
12547 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4688
12549 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12550 "block devices in the list C<devices>, and will ignore all other attached "
12555 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4692
12557 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12558 "get LVM to ignore the duplicates, otherwise LVM can get confused. Note also "
12559 "there are two types of duplication possible: either cloned PVs/VGs which "
12560 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12561 "same name. In normal operation you cannot create this situation, but you "
12562 "can do it outside LVM, eg. by cloning disk images or by bit twiddling "
12563 "inside the LVM metadata."
12567 #: ../fish/guestfish-actions.pod:3060 ../src/guestfs-actions.pod:4705
12568 msgid "You can filter whole block devices or individual partitions."
12572 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4707
12574 "You cannot use this if any VG is currently in use (eg. contains a mounted "
12575 "filesystem), even if you are not filtering out that VG."
12579 #: ../fish/guestfish-actions.pod:3066
12584 #: ../fish/guestfish-actions.pod:3068
12587 " lvremove device\n"
12590 " lvremove пристрій\n"
12594 #: ../fish/guestfish-actions.pod:3070 ../src/guestfs-actions.pod:4721
12596 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12597 "LV, such as C</dev/VG/LV>."
12601 #: ../fish/guestfish-actions.pod:3073 ../src/guestfs-actions.pod:4724
12603 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12608 #: ../fish/guestfish-actions.pod:3076
12613 #: ../fish/guestfish-actions.pod:3078
12616 " lvrename logvol newlogvol\n"
12621 #: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4738
12622 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12626 #: ../fish/guestfish-actions.pod:3082
12631 #: ../fish/guestfish-actions.pod:3084
12634 " lvresize device mbytes\n"
12639 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4751
12641 "This resizes (expands or shrinks) an existing LVM logical volume to "
12642 "C<mbytes>. When reducing, data in the reduced part is lost."
12646 #: ../fish/guestfish-actions.pod:3090
12647 msgid "lvresize-free"
12648 msgstr "lvresize-free"
12651 #: ../fish/guestfish-actions.pod:3092
12654 " lvresize-free lv percent\n"
12659 #: ../fish/guestfish-actions.pod:3094 ../src/guestfs-actions.pod:4766
12661 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12662 "remaining free space in the volume group. Commonly you would call this with "
12663 "pc = 100 which expands the logical volume as much as possible, using all "
12664 "remaining free space in the volume group."
12668 #: ../fish/guestfish-actions.pod:3100
12673 #: ../fish/guestfish-actions.pod:3102
12683 #: ../fish/guestfish-actions.pod:3104 ../src/guestfs-actions.pod:4781
12685 "List all the logical volumes detected. This is the equivalent of the L<lvs"
12690 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4784
12692 "This returns a list of the logical volume device names (eg. C</dev/"
12693 "VolGroup00/LogVol00>)."
12697 #: ../fish/guestfish-actions.pod:3110
12698 msgid "See also L</lvs-full>, L</list-filesystems>."
12699 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
12702 #: ../fish/guestfish-actions.pod:3112
12707 #: ../fish/guestfish-actions.pod:3114
12717 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4800
12719 "List all the logical volumes detected. This is the equivalent of the L<lvs"
12720 "(8)> command. The \"full\" version includes all fields."
12724 #: ../fish/guestfish-actions.pod:3119
12729 #: ../fish/guestfish-actions.pod:3121
12735 " lvuuid пристрій\n"
12739 #: ../fish/guestfish-actions.pod:3123 ../src/guestfs-actions.pod:4815
12740 msgid "This command returns the UUID of the LVM LV C<device>."
12744 #: ../fish/guestfish-actions.pod:3125
12746 msgstr "lxattrlist"
12749 #: ../fish/guestfish-actions.pod:3127
12752 " lxattrlist path 'names ...'\n"
12757 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4829
12759 "This call allows you to get the extended attributes of multiple files, where "
12760 "all files are in the directory C<path>. C<names> is the list of files from "
12765 #: ../fish/guestfish-actions.pod:3133 ../src/guestfs-actions.pod:4833
12767 "On return you get a flat list of xattr structs which must be interpreted "
12768 "sequentially. The first xattr struct always has a zero-length C<attrname>. "
12769 "C<attrval> in this struct is zero-length to indicate there was an error "
12770 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12771 "number (the number of following attributes for this file, which could be C<"
12772 "\"0\">). Then after the first xattr struct are the zero or more attributes "
12773 "for the first named file. This repeats for the second and subsequent files."
12777 #: ../fish/guestfish-actions.pod:3143
12779 "This call is intended for programs that want to efficiently list a directory "
12780 "contents without making many round-trips. See also L</lstatlist> for a "
12781 "similarly efficient call for getting standard stats. Very long directory "
12782 "listings might cause the protocol message size to be exceeded, causing this "
12783 "call to fail. The caller must split up such requests into smaller groups of "
12788 #: ../fish/guestfish-actions.pod:3151
12793 #: ../fish/guestfish-actions.pod:3153
12803 #: ../fish/guestfish-actions.pod:3155 ../src/guestfs-actions.pod:4863
12804 msgid "Create a directory named C<path>."
12808 #: ../fish/guestfish-actions.pod:3157
12810 msgstr "mkdir-mode"
12813 #: ../fish/guestfish-actions.pod:3159
12816 " mkdir-mode path mode\n"
12819 " mkdir-mode шлях режим\n"
12823 #: ../fish/guestfish-actions.pod:3161 ../src/guestfs-actions.pod:4876
12825 "This command creates a directory, setting the initial permissions of the "
12826 "directory to C<mode>."
12830 #: ../fish/guestfish-actions.pod:3164 ../src/guestfs-actions.pod:4879
12832 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12833 "~umask & 01777>. Non-native-Linux filesystems may interpret the mode in "
12838 #: ../fish/guestfish-actions.pod:3168
12839 msgid "See also L</mkdir>, L</umask>"
12840 msgstr "Див. також L</mkdir>, L</umask>"
12843 #: ../fish/guestfish-actions.pod:3170
12848 #: ../fish/guestfish-actions.pod:3172
12858 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4895
12860 "Create a directory named C<path>, creating any parent directories as "
12861 "necessary. This is like the C<mkdir -p> shell command."
12865 #: ../fish/guestfish-actions.pod:3177
12870 #: ../fish/guestfish-actions.pod:3179
12873 " mkdtemp template\n"
12876 " mkdtemp шаблон\n"
12880 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4908
12882 "This command creates a temporary directory. The C<template> parameter "
12883 "should be a full pathname for the temporary directory name with the final "
12884 "six characters being \"XXXXXX\"."
12888 #: ../fish/guestfish-actions.pod:3186 ../src/guestfs-actions.pod:4913
12890 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12891 "being suitable for Windows filesystems."
12895 #: ../fish/guestfish-actions.pod:3189 ../src/guestfs-actions.pod:4916
12896 msgid "The name of the temporary directory that was created is returned."
12900 #: ../fish/guestfish-actions.pod:3192 ../src/guestfs-actions.pod:4919
12901 msgid "The temporary directory is created with mode 0700 and is owned by root."
12905 #: ../fish/guestfish-actions.pod:3195 ../src/guestfs-actions.pod:4922
12907 "The caller is responsible for deleting the temporary directory and its "
12908 "contents after use."
12912 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4925
12913 msgid "See also: L<mkdtemp(3)>"
12914 msgstr "Див. також L<mkdtemp(3)>"
12917 #: ../fish/guestfish-actions.pod:3200
12922 #: ../fish/guestfish-actions.pod:3202
12925 " mke2fs-J fstype blocksize device journal\n"
12930 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4941
12932 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12933 "C<journal>. It is equivalent to the command:"
12937 #: ../fish/guestfish-actions.pod:3208 ../src/guestfs-actions.pod:4945
12940 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12943 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
12947 #: ../fish/guestfish-actions.pod:3210
12948 msgid "See also L</mke2journal>."
12949 msgstr "Див. також L</mke2journal>."
12952 #: ../fish/guestfish-actions.pod:3212
12957 #: ../fish/guestfish-actions.pod:3214
12960 " mke2fs-JL fstype blocksize device label\n"
12965 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4962
12967 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12968 "the journal labeled C<label>."
12972 #: ../fish/guestfish-actions.pod:3219
12973 msgid "See also L</mke2journal-L>."
12974 msgstr "Див. також L</mke2journal-L>."
12977 #: ../fish/guestfish-actions.pod:3221
12982 #: ../fish/guestfish-actions.pod:3223
12985 " mke2fs-JU fstype blocksize device uuid\n"
12990 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4980
12992 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12993 "the journal with UUID C<uuid>."
12997 #: ../fish/guestfish-actions.pod:3228
12998 msgid "See also L</mke2journal-U>."
12999 msgstr "Див. також L</mke2journal-U>."
13002 #: ../fish/guestfish-actions.pod:3230
13003 msgid "mke2journal"
13004 msgstr "mke2journal"
13007 #: ../fish/guestfish-actions.pod:3232
13010 " mke2journal blocksize device\n"
13015 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4996
13017 "This creates an ext2 external journal on C<device>. It is equivalent to the "
13022 #: ../fish/guestfish-actions.pod:3237 ../src/guestfs-actions.pod:4999
13025 " mke2fs -O journal_dev -b blocksize device\n"
13030 #: ../fish/guestfish-actions.pod:3239
13031 msgid "mke2journal-L"
13032 msgstr "mke2journal-L"
13035 #: ../fish/guestfish-actions.pod:3241
13038 " mke2journal-L blocksize label device\n"
13043 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:5013
13044 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13048 #: ../fish/guestfish-actions.pod:3245
13049 msgid "mke2journal-U"
13050 msgstr "mke2journal-U"
13053 #: ../fish/guestfish-actions.pod:3247
13056 " mke2journal-U blocksize uuid device\n"
13061 #: ../fish/guestfish-actions.pod:3249 ../src/guestfs-actions.pod:5027
13062 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13066 #: ../fish/guestfish-actions.pod:3251
13071 #: ../fish/guestfish-actions.pod:3253
13074 " mkfifo mode path\n"
13077 " mkfifo режим шлях\n"
13081 #: ../fish/guestfish-actions.pod:3255
13083 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
13084 "is just a convenient wrapper around L</mknod>."
13088 #: ../fish/guestfish-actions.pod:3261
13093 #: ../fish/guestfish-actions.pod:3263
13096 " mkfs fstype device\n"
13099 " mkfs тип_файлової_системи пристрій\n"
13103 #: ../fish/guestfish-actions.pod:3265 ../src/guestfs-actions.pod:5057
13105 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13106 "volume). The filesystem type is C<fstype>, for example C<ext3>."
13110 #: ../fish/guestfish-actions.pod:3269
13115 #: ../fish/guestfish-actions.pod:3271
13118 " mkfs-b fstype blocksize device\n"
13123 #: ../fish/guestfish-actions.pod:3273
13125 "This call is similar to L</mkfs>, but it allows you to control the block "
13126 "size of the resulting filesystem. Supported block sizes depend on the "
13127 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13131 #: ../fish/guestfish-actions.pod:3278 ../fish/guestfish-actions.pod:3305
13132 #: ../src/guestfs-actions.pod:5085 ../src/guestfs-actions.pod:5123
13134 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13139 #: ../fish/guestfish-actions.pod:3281
13141 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
13146 #: ../fish/guestfish-actions.pod:3288
13151 #: ../fish/guestfish-actions.pod:3290
13154 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] [sectorsize:N]\n"
13159 #: ../fish/guestfish-actions.pod:3292 ../src/guestfs-actions.pod:5110
13161 "This function creates a filesystem on C<device>. The filesystem type is "
13162 "C<fstype>, for example C<ext3>."
13166 #: ../fish/guestfish-actions.pod:3299 ../src/guestfs-actions.pod:5117
13167 msgid "C<blocksize>"
13168 msgstr "C<blocksize>"
13171 #: ../fish/guestfish-actions.pod:3301 ../src/guestfs-actions.pod:5119
13173 "The filesystem block size. Supported block sizes depend on the filesystem "
13174 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13179 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:5126
13180 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13184 #: ../fish/guestfish-actions.pod:3310 ../src/guestfs-actions.pod:5128
13185 msgid "C<features>"
13186 msgstr "C<features>"
13189 #: ../fish/guestfish-actions.pod:3312 ../src/guestfs-actions.pod:5130
13190 msgid "This passes the I<-O> parameter to the external mkfs program."
13194 #: ../fish/guestfish-actions.pod:3314 ../src/guestfs-actions.pod:5132
13196 "For certain filesystem types, this allows extra filesystem features to be "
13197 "selected. See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13201 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5136
13203 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13208 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5139
13213 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5141
13215 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13216 "sets the inode size (only for ext2/3/4 filesystems at present)."
13220 #: ../fish/guestfish-actions.pod:3326 ../src/guestfs-actions.pod:5144
13221 msgid "C<sectorsize>"
13222 msgstr "C<sectorsize>"
13225 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5146
13227 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13228 "sets sector size for ufs filesystem."
13232 #: ../fish/guestfish-actions.pod:3335
13233 msgid "mkmountpoint"
13234 msgstr "mkmountpoint"
13237 #: ../fish/guestfish-actions.pod:3337
13240 " mkmountpoint exemptpath\n"
13245 #: ../fish/guestfish-actions.pod:3339
13247 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13248 "to create extra mountpoints before mounting the first filesystem."
13252 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5189
13254 "These calls are I<only> necessary in some very limited circumstances, mainly "
13255 "the case where you want to mount a mix of unrelated and/or read-only "
13256 "filesystems together."
13260 #: ../fish/guestfish-actions.pod:3347 ../src/guestfs-actions.pod:5193
13262 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13263 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13264 "inside that. You can unpack this as follows in guestfish:"
13268 #: ../fish/guestfish-actions.pod:3352 ../src/guestfs-actions.pod:5198
13271 " add-ro Fedora-11-i686-Live.iso\n"
13273 " mkmountpoint /cd\n"
13274 " mkmountpoint /sqsh\n"
13275 " mkmountpoint /ext3fs\n"
13276 " mount /dev/sda /cd\n"
13277 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13278 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13281 " add-ro Fedora-11-i686-Live.iso\n"
13283 " mkmountpoint /cd\n"
13284 " mkmountpoint /sqsh\n"
13285 " mkmountpoint /ext3fs\n"
13286 " mount /dev/sda /cd\n"
13287 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13288 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13292 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5207
13293 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13297 #: ../fish/guestfish-actions.pod:3363
13299 "L</mkmountpoint> is not compatible with L</umount-all>. You may get "
13300 "unexpected errors if you try to mix these calls. It is safest to manually "
13301 "unmount filesystems and remove mountpoints after use."
13305 #: ../fish/guestfish-actions.pod:3367
13307 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13308 "for this to work for manual mountpoints, you must ensure that the innermost "
13309 "mountpoints have the longest pathnames, as in the example code above."
13313 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5218
13315 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13319 #: ../fish/guestfish-actions.pod:3374
13321 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13322 "L</umount-all> to be called when the handle is closed which can also trigger "
13327 #: ../fish/guestfish-actions.pod:3378
13332 #: ../fish/guestfish-actions.pod:3380
13335 " mknod mode devmajor devminor path\n"
13340 #: ../fish/guestfish-actions.pod:3382 ../src/guestfs-actions.pod:5237
13342 "This call creates block or character special devices, or named pipes (FIFOs)."
13346 #: ../fish/guestfish-actions.pod:3385 ../src/guestfs-actions.pod:5240
13348 "The C<mode> parameter should be the mode, using the standard constants. "
13349 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13350 "used when creating block and character special devices."
13354 #: ../fish/guestfish-actions.pod:3390
13356 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13357 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13358 "regular file). These constants are available in the standard Linux header "
13359 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13360 "wrappers around this command which bitwise OR in the appropriate constant "
13365 #: ../fish/guestfish-actions.pod:3400
13370 #: ../fish/guestfish-actions.pod:3402
13373 " mknod-b mode devmajor devminor path\n"
13378 #: ../fish/guestfish-actions.pod:3404
13380 "This call creates a block device node called C<path> with mode C<mode> and "
13381 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
13382 "wrapper around L</mknod>."
13386 #: ../fish/guestfish-actions.pod:3410
13391 #: ../fish/guestfish-actions.pod:3412
13394 " mknod-c mode devmajor devminor path\n"
13399 #: ../fish/guestfish-actions.pod:3414
13401 "This call creates a char device node called C<path> with mode C<mode> and "
13402 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
13403 "wrapper around L</mknod>."
13407 #: ../fish/guestfish-actions.pod:3420
13412 #: ../fish/guestfish-actions.pod:3422
13418 " mkswap пристрій\n"
13422 #: ../fish/guestfish-actions.pod:3424 ../src/guestfs-actions.pod:5303
13423 msgid "Create a swap partition on C<device>."
13427 #: ../fish/guestfish-actions.pod:3426
13432 #: ../fish/guestfish-actions.pod:3428
13435 " mkswap-L label device\n"
13438 " mkswap-L мітка пристрій\n"
13442 #: ../fish/guestfish-actions.pod:3430 ../src/guestfs-actions.pod:5316
13443 msgid "Create a swap partition on C<device> with label C<label>."
13447 #: ../fish/guestfish-actions.pod:3432 ../src/guestfs-actions.pod:5318
13449 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13450 "sda>), just to a partition. This appears to be a limitation of the kernel "
13455 #: ../fish/guestfish-actions.pod:3436
13460 #: ../fish/guestfish-actions.pod:3438
13463 " mkswap-U uuid device\n"
13466 " mkswap-U uuid пристрій\n"
13470 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5333
13471 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13475 #: ../fish/guestfish-actions.pod:3442
13476 msgid "mkswap-file"
13477 msgstr "mkswap-file"
13480 #: ../fish/guestfish-actions.pod:3444
13483 " mkswap-file path\n"
13486 " mkswap-file шлях\n"
13490 #: ../fish/guestfish-actions.pod:3446 ../src/guestfs-actions.pod:5345
13491 msgid "Create a swap file."
13492 msgstr "Створити файл резервної пам’яті."
13495 #: ../fish/guestfish-actions.pod:3448
13497 "This command just writes a swap file signature to an existing file. To "
13498 "create the file itself, use something like L</fallocate>."
13502 #: ../fish/guestfish-actions.pod:3451
13507 #: ../fish/guestfish-actions.pod:3453
13510 " modprobe modulename\n"
13513 " modprobe назва_модуля\n"
13517 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5360
13518 msgid "This loads a kernel module in the appliance."
13522 #: ../fish/guestfish-actions.pod:3457 ../src/guestfs-actions.pod:5362
13524 "The kernel module must have been whitelisted when libguestfs was built (see "
13525 "C<appliance/kmod.whitelist.in> in the source)."
13529 #: ../fish/guestfish-actions.pod:3460
13534 #: ../fish/guestfish-actions.pod:3462
13537 " mount device mountpoint\n"
13540 " mount пристрій точка_монтування\n"
13544 #: ../fish/guestfish-actions.pod:3464 ../src/guestfs-actions.pod:5376
13546 "Mount a guest disk at a position in the filesystem. Block devices are named "
13547 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
13548 "those block devices contain partitions, they will have the usual names (eg. "
13549 "C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used."
13553 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5382
13555 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13556 "mounted on C</> before others can be mounted. Other filesystems can only be "
13557 "mounted on directories which already exist."
13561 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5387
13563 "The mounted filesystem is writable, if we have sufficient permissions on the "
13564 "underlying device."
13568 #: ../fish/guestfish-actions.pod:3478
13570 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13571 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
13572 "problems for users. If your program might need to work with older versions "
13573 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13574 "first parameter if you don't want any options)."
13578 #: ../fish/guestfish-actions.pod:3485
13583 #: ../fish/guestfish-actions.pod:3487
13586 " mount-9p mounttag mountpoint [options:..]\n"
13591 #: ../fish/guestfish-actions.pod:3489 ../src/guestfs-actions.pod:5416
13593 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13598 #: ../fish/guestfish-actions.pod:3492 ../src/guestfs-actions.pod:5419
13600 "If required, C<trans=virtio> will be automatically added to the options. "
13601 "Any other options required can be passed in the optional C<options> "
13606 #: ../fish/guestfish-actions.pod:3498
13608 msgstr "mount-loop"
13611 #: ../fish/guestfish-actions.pod:3500
13614 " mount-loop file mountpoint\n"
13619 #: ../fish/guestfish-actions.pod:3502 ../src/guestfs-actions.pod:5458
13621 "This command lets you mount C<file> (a filesystem image in a file) on a "
13622 "mount point. It is entirely equivalent to the command C<mount -o loop file "
13627 #: ../fish/guestfish-actions.pod:3506
13628 msgid "mount-options"
13629 msgstr "mount-options"
13632 #: ../fish/guestfish-actions.pod:3508
13635 " mount-options options device mountpoint\n"
13640 #: ../fish/guestfish-actions.pod:3510
13642 "This is the same as the L</mount> command, but it allows you to set the "
13643 "mount options as for the L<mount(8)> I<-o> flag."
13647 #: ../fish/guestfish-actions.pod:3514 ../src/guestfs-actions.pod:5478
13649 "If the C<options> parameter is an empty string, then no options are passed "
13650 "(all options default to whatever the filesystem uses)."
13654 #: ../fish/guestfish-actions.pod:3518
13659 #: ../fish/guestfish-actions.pod:3520
13662 " mount-ro device mountpoint\n"
13665 " mount-ro пристрій точка_монтування\n"
13669 #: ../fish/guestfish-actions.pod:3522
13671 "This is the same as the L</mount> command, but it mounts the filesystem with "
13672 "the read-only (I<-o ro>) flag."
13676 #: ../fish/guestfish-actions.pod:3525
13681 #: ../fish/guestfish-actions.pod:3527
13684 " mount-vfs options vfstype device mountpoint\n"
13689 #: ../fish/guestfish-actions.pod:3529
13691 "This is the same as the L</mount> command, but it allows you to set both the "
13692 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13696 #: ../fish/guestfish-actions.pod:3533
13697 msgid "mountpoints"
13698 msgstr "mountpoints"
13701 #: ../fish/guestfish-actions.pod:3535
13711 #: ../fish/guestfish-actions.pod:3537
13713 "This call is similar to L</mounts>. That call returns a list of devices. "
13714 "This one returns a hash table (map) of device name to directory where the "
13715 "device is mounted."
13719 #: ../fish/guestfish-actions.pod:3541
13724 #: ../fish/guestfish-actions.pod:3543
13734 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5539
13736 "This returns the list of currently mounted filesystems. It returns the list "
13737 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13741 #: ../fish/guestfish-actions.pod:3548 ../src/guestfs-actions.pod:5542
13742 msgid "Some internal mounts are not shown."
13746 #: ../fish/guestfish-actions.pod:3550
13747 msgid "See also: L</mountpoints>"
13748 msgstr "Див. також L</mountpoints>"
13751 #: ../fish/guestfish-actions.pod:3552
13756 #: ../fish/guestfish-actions.pod:3554
13762 " mv джерело призначення\n"
13766 #: ../fish/guestfish-actions.pod:3556 ../src/guestfs-actions.pod:5559
13768 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13769 "destination filename or destination directory."
13773 #: ../fish/guestfish-actions.pod:3559
13774 msgid "ntfs-3g-probe"
13775 msgstr "ntfs-3g-probe"
13778 #: ../fish/guestfish-actions.pod:3561
13781 " ntfs-3g-probe true|false device\n"
13786 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5573
13788 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13789 "C<device> for mountability. (Not all NTFS volumes can be mounted read-"
13790 "write, and some cannot be mounted at all)."
13794 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5577
13796 "C<rw> is a boolean flag. Set it to true if you want to test if the volume "
13797 "can be mounted read-write. Set it to false if you want to test if the "
13798 "volume can be mounted read-only."
13802 #: ../fish/guestfish-actions.pod:3571 ../src/guestfs-actions.pod:5581
13804 "The return value is an integer which C<0> if the operation would succeed, or "
13805 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13809 #: ../fish/guestfish-actions.pod:3575
13811 msgstr "ntfsresize"
13814 #: ../fish/guestfish-actions.pod:3577
13817 " ntfsresize device\n"
13820 " ntfsresize пристрій\n"
13824 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3603
13825 #: ../src/guestfs-actions.pod:5602 ../src/guestfs-actions.pod:5634
13827 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13828 "size of the underlying device."
13832 #: ../fish/guestfish-actions.pod:3582 ../src/guestfs-actions.pod:5605
13834 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13835 "consistency check (for safety). You have to boot into Windows to perform "
13836 "this check and clear this condition. Furthermore, ntfsresize refuses to "
13837 "resize filesystems which have been marked in this way. So in effect it is "
13838 "not possible to call ntfsresize multiple times on a single filesystem "
13839 "without booting into Windows between each resize."
13843 #: ../fish/guestfish-actions.pod:3590 ../fish/guestfish-actions.pod:3629
13844 #: ../src/guestfs-actions.pod:5613 ../src/guestfs-actions.pod:5660
13845 msgid "See also L<ntfsresize(8)>."
13846 msgstr "Див. також L<ntfsresize(8)>."
13849 #: ../fish/guestfish-actions.pod:3592 ../fish/guestfish-actions.pod:3640
13851 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13856 #: ../fish/guestfish-actions.pod:3599
13857 msgid "ntfsresize-opts"
13861 #: ../fish/guestfish-actions.pod:3601
13864 " ntfsresize-opts device [size:N] [force:true|false]\n"
13869 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5643
13871 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
13872 "resized to fit the container (eg. partition)."
13876 #: ../fish/guestfish-actions.pod:3615 ../src/guestfs-actions.pod:5646
13881 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5648
13883 "If this option is true, then force the resize of the filesystem even if the "
13884 "filesystem is marked as requiring a consistency check."
13888 #: ../fish/guestfish-actions.pod:3620
13890 "After the resize operation, the filesystem is always marked as requiring a "
13891 "consistency check (for safety). You have to boot into Windows to perform "
13892 "this check and clear this condition. If you I<don't> set the C<force> "
13893 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13894 "a single filesystem without booting into Windows between each resize."
13898 #: ../fish/guestfish-actions.pod:3633
13899 msgid "ntfsresize-size"
13900 msgstr "ntfsresize-size"
13903 #: ../fish/guestfish-actions.pod:3635
13906 " ntfsresize-size device size\n"
13911 #: ../fish/guestfish-actions.pod:3637
13913 "This command is the same as L</ntfsresize> except that it allows you to "
13914 "specify the new size (in bytes) explicitly."
13918 #: ../fish/guestfish-actions.pod:3647
13923 #: ../fish/guestfish-actions.pod:3649
13926 " part-add device prlogex startsect endsect\n"
13931 #: ../fish/guestfish-actions.pod:3651
13933 "This command adds a partition to C<device>. If there is no partition table "
13934 "on the device, call L</part-init> first."
13938 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5721
13940 "The C<prlogex> parameter is the type of partition. Normally you should pass "
13941 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13942 "C<logical>) and C<e> (or C<extended>) partition types."
13946 #: ../fish/guestfish-actions.pod:3659 ../src/guestfs-actions.pod:5726
13948 "C<startsect> and C<endsect> are the start and end of the partition in "
13949 "I<sectors>. C<endsect> may be negative, which means it counts backwards "
13950 "from the end of the disk (C<-1> is the last sector)."
13954 #: ../fish/guestfish-actions.pod:3663
13956 "Creating a partition which covers the whole disk is not so easy. Use L</"
13957 "part-disk> to do that."
13961 #: ../fish/guestfish-actions.pod:3666
13966 #: ../fish/guestfish-actions.pod:3668
13969 " part-del device partnum\n"
13974 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5744
13975 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13979 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5746
13981 "Note that in the case of MBR partitioning, deleting an extended partition "
13982 "also deletes any logical partitions it contains."
13986 #: ../fish/guestfish-actions.pod:3676
13991 #: ../fish/guestfish-actions.pod:3678
13994 " part-disk device parttype\n"
13997 " part-disk пристрій тип_розділу\n"
14001 #: ../fish/guestfish-actions.pod:3680
14003 "This command is simply a combination of L</part-init> followed by L</part-"
14004 "add> to create a single primary partition covering the whole disk."
14008 #: ../fish/guestfish-actions.pod:3684
14010 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
14011 "possible values are described in L</part-init>."
14015 #: ../fish/guestfish-actions.pod:3687
14016 msgid "part-get-bootable"
14017 msgstr "part-get-bootable"
14020 #: ../fish/guestfish-actions.pod:3689
14023 " part-get-bootable device partnum\n"
14028 #: ../fish/guestfish-actions.pod:3691 ../src/guestfs-actions.pod:5779
14030 "This command returns true if the partition C<partnum> on C<device> has the "
14031 "bootable flag set."
14035 #: ../fish/guestfish-actions.pod:3694
14036 msgid "See also L</part-set-bootable>."
14037 msgstr "Див. також L</part-set-bootable>."
14040 #: ../fish/guestfish-actions.pod:3696
14041 msgid "part-get-mbr-id"
14042 msgstr "part-get-mbr-id"
14045 #: ../fish/guestfish-actions.pod:3698
14048 " part-get-mbr-id device partnum\n"
14053 #: ../fish/guestfish-actions.pod:3700 ../src/guestfs-actions.pod:5795
14055 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14056 "partition C<partnum>."
14060 #: ../fish/guestfish-actions.pod:3703 ../fish/guestfish-actions.pod:3847
14062 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
14063 "undefined results for other partition table types (see L</part-get-"
14068 #: ../fish/guestfish-actions.pod:3707
14069 msgid "part-get-parttype"
14070 msgstr "part-get-parttype"
14073 #: ../fish/guestfish-actions.pod:3709
14076 " part-get-parttype device\n"
14079 " part-get-parttype пристрій\n"
14083 #: ../fish/guestfish-actions.pod:3711 ../src/guestfs-actions.pod:5812
14085 "This command examines the partition table on C<device> and returns the "
14086 "partition table type (format) being used."
14090 #: ../fish/guestfish-actions.pod:3714
14092 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14093 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
14094 "possible, although unusual. See L</part-init> for a full list."
14098 #: ../fish/guestfish-actions.pod:3719
14103 #: ../fish/guestfish-actions.pod:3721
14106 " part-init device parttype\n"
14111 #: ../fish/guestfish-actions.pod:3723 ../src/guestfs-actions.pod:5832
14113 "This creates an empty partition table on C<device> of one of the partition "
14114 "types listed below. Usually C<parttype> should be either C<msdos> or C<gpt> "
14115 "(for large disks)."
14119 #: ../fish/guestfish-actions.pod:3727
14121 "Initially there are no partitions. Following this, you should call L</part-"
14122 "add> for each partition required."
14126 #: ../fish/guestfish-actions.pod:3730 ../src/guestfs-actions.pod:5839
14127 msgid "Possible values for C<parttype> are:"
14131 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5843
14136 #: ../fish/guestfish-actions.pod:3736 ../src/guestfs-actions.pod:5845
14141 #: ../fish/guestfish-actions.pod:3738 ../src/guestfs-actions.pod:5847
14142 msgid "Intel EFI / GPT partition table."
14146 #: ../fish/guestfish-actions.pod:3740 ../src/guestfs-actions.pod:5849
14148 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14149 "and Intel-based Mac OS X. It also has limited backwards compatibility with "
14150 "the C<mbr> format."
14154 #: ../fish/guestfish-actions.pod:3744 ../src/guestfs-actions.pod:5853
14159 #: ../fish/guestfish-actions.pod:3746 ../src/guestfs-actions.pod:5855
14164 #: ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5857
14166 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14167 "Windows. This partition type will B<only> work for device sizes up to 2 "
14168 "TB. For large disks we recommend using C<gpt>."
14172 #: ../fish/guestfish-actions.pod:3755 ../src/guestfs-actions.pod:5864
14174 "Other partition table types that may work but are not supported include:"
14178 #: ../fish/guestfish-actions.pod:3760 ../src/guestfs-actions.pod:5869
14183 #: ../fish/guestfish-actions.pod:3762 ../src/guestfs-actions.pod:5871
14184 msgid "AIX disk labels."
14185 msgstr "Мітки дисків AIX."
14188 #: ../fish/guestfish-actions.pod:3764 ../src/guestfs-actions.pod:5873
14193 #: ../fish/guestfish-actions.pod:3766 ../src/guestfs-actions.pod:5875
14198 #: ../fish/guestfish-actions.pod:3768 ../src/guestfs-actions.pod:5877
14199 msgid "Amiga \"Rigid Disk Block\" format."
14200 msgstr "Формат \"Rigid Disk Block\" Amiga."
14203 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5879
14208 #: ../fish/guestfish-actions.pod:3772 ../src/guestfs-actions.pod:5881
14209 msgid "BSD disk labels."
14210 msgstr "Мітки дисків BSD."
14213 #: ../fish/guestfish-actions.pod:3774 ../src/guestfs-actions.pod:5883
14218 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5885
14219 msgid "DASD, used on IBM mainframes."
14220 msgstr "DASD, використовувалися у мейнфреймах IBM."
14223 #: ../fish/guestfish-actions.pod:3778 ../src/guestfs-actions.pod:5887
14228 #: ../fish/guestfish-actions.pod:3780 ../src/guestfs-actions.pod:5889
14229 msgid "MIPS/SGI volumes."
14230 msgstr "Томи MIPS/SGI."
14233 #: ../fish/guestfish-actions.pod:3782 ../src/guestfs-actions.pod:5891
14238 #: ../fish/guestfish-actions.pod:3784 ../src/guestfs-actions.pod:5893
14239 msgid "Old Mac partition format. Modern Macs use C<gpt>."
14240 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
14243 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5895
14248 #: ../fish/guestfish-actions.pod:3788 ../src/guestfs-actions.pod:5897
14249 msgid "NEC PC-98 format, common in Japan apparently."
14250 msgstr "Формат NEC PC-98, поширений у Японії."
14253 #: ../fish/guestfish-actions.pod:3790 ../src/guestfs-actions.pod:5899
14258 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5901
14259 msgid "Sun disk labels."
14260 msgstr "Мітки дисків Sun."
14263 #: ../fish/guestfish-actions.pod:3796
14268 #: ../fish/guestfish-actions.pod:3798
14271 " part-list device\n"
14274 " part-list device\n"
14278 #: ../fish/guestfish-actions.pod:3800 ../src/guestfs-actions.pod:5915
14280 "This command parses the partition table on C<device> and returns the list of "
14281 "partitions found."
14285 #: ../fish/guestfish-actions.pod:3803 ../src/guestfs-actions.pod:5918
14286 msgid "The fields in the returned structure are:"
14290 #: ../fish/guestfish-actions.pod:3807 ../src/guestfs-actions.pod:5922
14291 msgid "B<part_num>"
14292 msgstr "B<part_num>"
14295 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5924
14296 msgid "Partition number, counting from 1."
14300 #: ../fish/guestfish-actions.pod:3811 ../src/guestfs-actions.pod:5926
14301 msgid "B<part_start>"
14302 msgstr "B<part_start>"
14305 #: ../fish/guestfish-actions.pod:3813
14307 "Start of the partition I<in bytes>. To get sectors you have to divide by "
14308 "the device's sector size, see L</blockdev-getss>."
14312 #: ../fish/guestfish-actions.pod:3816 ../src/guestfs-actions.pod:5931
14313 msgid "B<part_end>"
14314 msgstr "B<part_end>"
14317 #: ../fish/guestfish-actions.pod:3818 ../src/guestfs-actions.pod:5933
14318 msgid "End of the partition in bytes."
14322 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5935
14323 msgid "B<part_size>"
14324 msgstr "B<part_size>"
14327 #: ../fish/guestfish-actions.pod:3822 ../src/guestfs-actions.pod:5937
14328 msgid "Size of the partition in bytes."
14332 #: ../fish/guestfish-actions.pod:3826
14333 msgid "part-set-bootable"
14334 msgstr "part-set-bootable"
14337 #: ../fish/guestfish-actions.pod:3828
14340 " part-set-bootable device partnum true|false\n"
14345 #: ../fish/guestfish-actions.pod:3830 ../src/guestfs-actions.pod:5955
14347 "This sets the bootable flag on partition numbered C<partnum> on device "
14348 "C<device>. Note that partitions are numbered from 1."
14352 #: ../fish/guestfish-actions.pod:3833 ../src/guestfs-actions.pod:5958
14354 "The bootable flag is used by some operating systems (notably Windows) to "
14355 "determine which partition to boot from. It is by no means universally "
14360 #: ../fish/guestfish-actions.pod:3837
14361 msgid "part-set-mbr-id"
14362 msgstr "part-set-mbr-id"
14365 #: ../fish/guestfish-actions.pod:3839
14368 " part-set-mbr-id device partnum idbyte\n"
14373 #: ../fish/guestfish-actions.pod:3841 ../src/guestfs-actions.pod:5974
14375 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14376 "C<partnum> to C<idbyte>. Note that the type bytes quoted in most "
14377 "documentation are in fact hexadecimal numbers, but usually documented "
14378 "without any leading \"0x\" which might be confusing."
14382 #: ../fish/guestfish-actions.pod:3851
14383 msgid "part-set-name"
14384 msgstr "part-set-name"
14387 #: ../fish/guestfish-actions.pod:3853
14390 " part-set-name device partnum name\n"
14395 #: ../fish/guestfish-actions.pod:3855 ../src/guestfs-actions.pod:5996
14397 "This sets the partition name on partition numbered C<partnum> on device "
14398 "C<device>. Note that partitions are numbered from 1."
14402 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:5999
14404 "The partition name can only be set on certain types of partition table. "
14405 "This works on C<gpt> but not on C<mbr> partitions."
14409 #: ../fish/guestfish-actions.pod:3861
14410 msgid "part-to-dev"
14411 msgstr "part-to-dev"
14414 #: ../fish/guestfish-actions.pod:3863
14417 " part-to-dev partition\n"
14420 " part-to-dev розділ\n"
14424 #: ../fish/guestfish-actions.pod:3865 ../src/guestfs-actions.pod:6012
14426 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14427 "partition number, returning the device name (eg. \"/dev/sdb\")."
14431 #: ../fish/guestfish-actions.pod:3869 ../fish/guestfish-actions.pod:3881
14433 "The named partition must exist, for example as a string returned from L</"
14434 "list-partitions>."
14438 #: ../fish/guestfish-actions.pod:3872
14439 msgid "See also L</part-to-partnum>."
14443 #: ../fish/guestfish-actions.pod:3874
14444 msgid "part-to-partnum"
14448 #: ../fish/guestfish-actions.pod:3876
14451 " part-to-partnum partition\n"
14456 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:6032
14458 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
14459 "partition number (eg. C<1>)."
14463 #: ../fish/guestfish-actions.pod:3884
14464 msgid "See also L</part-to-dev>."
14468 #: ../fish/guestfish-actions.pod:3886
14469 msgid "ping-daemon"
14470 msgstr "ping-daemon"
14473 #: ../fish/guestfish-actions.pod:3888
14483 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:6049
14485 "This is a test probe into the guestfs daemon running inside the qemu "
14486 "subprocess. Calling this function checks that the daemon responds to the "
14487 "ping message, without affecting the daemon or attached block device(s) in "
14492 #: ../fish/guestfish-actions.pod:3895
14497 #: ../fish/guestfish-actions.pod:3897
14500 " pread path count offset\n"
14505 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:6067
14507 "This command lets you read part of a file. It reads C<count> bytes of the "
14508 "file, starting at C<offset>, from file C<path>."
14512 #: ../fish/guestfish-actions.pod:3902 ../fish/guestfish-actions.pod:3917
14513 #: ../src/guestfs-actions.pod:6070 ../src/guestfs-actions.pod:6096
14515 "This may read fewer bytes than requested. For further details see the "
14516 "L<pread(2)> system call."
14520 #: ../fish/guestfish-actions.pod:3905
14521 msgid "See also L</pwrite>, L</pread-device>."
14522 msgstr "Див. також L</pwrite>, L</pread-device>."
14525 #: ../fish/guestfish-actions.pod:3910
14526 msgid "pread-device"
14527 msgstr "pread-device"
14530 #: ../fish/guestfish-actions.pod:3912
14533 " pread-device device count offset\n"
14538 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:6093
14540 "This command lets you read part of a file. It reads C<count> bytes of "
14541 "C<device>, starting at C<offset>."
14545 #: ../fish/guestfish-actions.pod:3920
14546 msgid "See also L</pread>."
14547 msgstr "Див. також L</pread>."
14550 #: ../fish/guestfish-actions.pod:3925
14555 #: ../fish/guestfish-actions.pod:3927
14558 " pvcreate device\n"
14561 " pvcreate пристрій\n"
14565 #: ../fish/guestfish-actions.pod:3929 ../src/guestfs-actions.pod:6116
14567 "This creates an LVM physical volume on the named C<device>, where C<device> "
14568 "should usually be a partition name such as C</dev/sda1>."
14572 #: ../fish/guestfish-actions.pod:3933
14577 #: ../fish/guestfish-actions.pod:3935
14580 " pvremove device\n"
14583 " pvremove пристрій\n"
14587 #: ../fish/guestfish-actions.pod:3937 ../src/guestfs-actions.pod:6130
14589 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14594 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6133
14596 "The implementation uses the C<pvremove> command which refuses to wipe "
14597 "physical volumes that contain any volume groups, so you have to remove those "
14602 #: ../fish/guestfish-actions.pod:3944
14607 #: ../fish/guestfish-actions.pod:3946
14610 " pvresize device\n"
14613 " pvresize пристрій\n"
14617 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6147
14619 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14620 "the new size of the underlying device."
14624 #: ../fish/guestfish-actions.pod:3951
14625 msgid "pvresize-size"
14626 msgstr "pvresize-size"
14629 #: ../fish/guestfish-actions.pod:3953
14632 " pvresize-size device size\n"
14637 #: ../fish/guestfish-actions.pod:3955
14639 "This command is the same as L</pvresize> except that it allows you to "
14640 "specify the new size (in bytes) explicitly."
14644 #: ../fish/guestfish-actions.pod:3958
14649 #: ../fish/guestfish-actions.pod:3960
14659 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6173
14661 "List all the physical volumes detected. This is the equivalent of the L<pvs"
14666 #: ../fish/guestfish-actions.pod:3965 ../src/guestfs-actions.pod:6176
14668 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14673 #: ../fish/guestfish-actions.pod:3968
14674 msgid "See also L</pvs-full>."
14675 msgstr "Див. також L</pvs-full>."
14678 #: ../fish/guestfish-actions.pod:3970
14683 #: ../fish/guestfish-actions.pod:3972
14693 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6192
14695 "List all the physical volumes detected. This is the equivalent of the L<pvs"
14696 "(8)> command. The \"full\" version includes all fields."
14700 #: ../fish/guestfish-actions.pod:3977
14705 #: ../fish/guestfish-actions.pod:3979
14711 " pvuuid пристрій\n"
14715 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6207
14716 msgid "This command returns the UUID of the LVM PV C<device>."
14720 #: ../fish/guestfish-actions.pod:3983
14725 #: ../fish/guestfish-actions.pod:3985
14728 " pwrite path content offset\n"
14733 #: ../fish/guestfish-actions.pod:3987 ../src/guestfs-actions.pod:6223
14735 "This command writes to part of a file. It writes the data buffer C<content> "
14736 "to the file C<path> starting at offset C<offset>."
14740 #: ../fish/guestfish-actions.pod:3990 ../src/guestfs-actions.pod:6226
14742 "This command implements the L<pwrite(2)> system call, and like that system "
14743 "call it may not write the full data requested. The return value is the "
14744 "number of bytes that were actually written to the file. This could even be "
14745 "0, although short writes are unlikely for regular files in ordinary "
14750 #: ../fish/guestfish-actions.pod:3996
14751 msgid "See also L</pread>, L</pwrite-device>."
14752 msgstr "Див. також L</pread>, L</pwrite-device>."
14755 #: ../fish/guestfish-actions.pod:4001
14756 msgid "pwrite-device"
14757 msgstr "pwrite-device"
14760 #: ../fish/guestfish-actions.pod:4003
14763 " pwrite-device device content offset\n"
14768 #: ../fish/guestfish-actions.pod:4005 ../src/guestfs-actions.pod:6250
14770 "This command writes to part of a device. It writes the data buffer "
14771 "C<content> to C<device> starting at offset C<offset>."
14775 #: ../fish/guestfish-actions.pod:4008 ../src/guestfs-actions.pod:6253
14777 "This command implements the L<pwrite(2)> system call, and like that system "
14778 "call it may not write the full data requested (although short writes to disk "
14779 "devices and partitions are probably impossible with standard Linux kernels)."
14783 #: ../fish/guestfish-actions.pod:4013
14784 msgid "See also L</pwrite>."
14785 msgstr "Див. також L</pwrite>."
14788 #: ../fish/guestfish-actions.pod:4018
14793 #: ../fish/guestfish-actions.pod:4020
14796 " read-file path\n"
14799 " read-file шлях\n"
14803 #: ../fish/guestfish-actions.pod:4022 ../src/guestfs-actions.pod:6274
14804 msgid "This calls returns the contents of the file C<path> as a buffer."
14808 #: ../fish/guestfish-actions.pod:4025
14810 "Unlike L</cat>, this function can correctly handle files that contain "
14811 "embedded ASCII NUL characters. However unlike L</download>, this function "
14812 "is limited in the total size of file that can be handled."
14816 #: ../fish/guestfish-actions.pod:4033
14818 msgstr "read-lines"
14821 #: ../fish/guestfish-actions.pod:4035
14824 " read-lines path\n"
14827 " read-lines шлях\n"
14831 #: ../fish/guestfish-actions.pod:4039 ../src/guestfs-actions.pod:6299
14833 "The file contents are returned as a list of lines. Trailing C<LF> and "
14834 "C<CRLF> character sequences are I<not> returned."
14838 #: ../fish/guestfish-actions.pod:4042
14840 "Note that this function cannot correctly handle binary files (specifically, "
14841 "files containing C<\\0> character which is treated as end of line). For "
14842 "those you need to use the L</read-file> function which has a more complex "
14847 #: ../fish/guestfish-actions.pod:4047
14852 #: ../fish/guestfish-actions.pod:4049
14858 " readdir каталог\n"
14862 #: ../fish/guestfish-actions.pod:4051 ../src/guestfs-actions.pod:6319
14863 msgid "This returns the list of directory entries in directory C<dir>."
14867 #: ../fish/guestfish-actions.pod:4053 ../src/guestfs-actions.pod:6321
14869 "All entries in the directory are returned, including C<.> and C<..>. The "
14870 "entries are I<not> sorted, but returned in the same order as the underlying "
14875 #: ../fish/guestfish-actions.pod:4057 ../src/guestfs-actions.pod:6325
14877 "Also this call returns basic file type information about each file. The "
14878 "C<ftyp> field will contain one of the following characters:"
14882 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6330
14887 #: ../fish/guestfish-actions.pod:4064 ../src/guestfs-actions.pod:6332
14888 msgid "Block special"
14889 msgstr "Блоковий особливий"
14892 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6334
14897 #: ../fish/guestfish-actions.pod:4068 ../src/guestfs-actions.pod:6336
14898 msgid "Char special"
14899 msgstr "Символьний особливий"
14902 #: ../fish/guestfish-actions.pod:4070 ../src/guestfs-actions.pod:6338
14907 #: ../fish/guestfish-actions.pod:4072 ../src/guestfs-actions.pod:6340
14912 #: ../fish/guestfish-actions.pod:4074 ../src/guestfs-actions.pod:6342
14917 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6344
14918 msgid "FIFO (named pipe)"
14919 msgstr "FIFO (іменований канал)"
14922 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6346
14927 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6348
14928 msgid "Symbolic link"
14929 msgstr "Символічне посилання"
14932 #: ../fish/guestfish-actions.pod:4082 ../src/guestfs-actions.pod:6350
14937 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6352
14938 msgid "Regular file"
14939 msgstr "Звичайний файл"
14942 #: ../fish/guestfish-actions.pod:4086 ../src/guestfs-actions.pod:6354
14947 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6356
14952 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6358
14957 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6360
14958 msgid "Unknown file type"
14959 msgstr "Невідомий тип файла"
14962 #: ../fish/guestfish-actions.pod:4094 ../src/guestfs-actions.pod:6362
14967 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6364
14969 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14973 #: ../fish/guestfish-actions.pod:4101
14975 "This function is primarily intended for use by programs. To get a simple "
14976 "list of names, use L</ls>. To get a printable directory for human "
14977 "consumption, use L</ll>."
14981 #: ../fish/guestfish-actions.pod:4105
14986 #: ../fish/guestfish-actions.pod:4107
14996 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6385
14997 msgid "This command reads the target of a symbolic link."
15001 #: ../fish/guestfish-actions.pod:4111
15002 msgid "readlinklist"
15003 msgstr "readlinklist"
15006 #: ../fish/guestfish-actions.pod:4113
15009 " readlinklist path 'names ...'\n"
15014 #: ../fish/guestfish-actions.pod:4115 ../src/guestfs-actions.pod:6399
15016 "This call allows you to do a C<readlink> operation on multiple files, where "
15017 "all files are in the directory C<path>. C<names> is the list of files from "
15022 #: ../fish/guestfish-actions.pod:4119 ../src/guestfs-actions.pod:6403
15024 "On return you get a list of strings, with a one-to-one correspondence to the "
15025 "C<names> list. Each string is the value of the symbolic link."
15029 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6407
15031 "If the C<readlink(2)> operation fails on any name, then the corresponding "
15032 "result string is the empty string C<\"\">. However the whole operation is "
15033 "completed even if there were C<readlink(2)> errors, and so you can call this "
15034 "function with names where you don't know if they are symbolic links already "
15035 "(albeit slightly less efficient)."
15039 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6414
15041 "This call is intended for programs that want to efficiently list a directory "
15042 "contents without making many round-trips. Very long directory listings "
15043 "might cause the protocol message size to be exceeded, causing this call to "
15044 "fail. The caller must split up such requests into smaller groups of names."
15048 #: ../fish/guestfish-actions.pod:4137
15053 #: ../fish/guestfish-actions.pod:4139
15063 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6433
15065 "Return the canonicalized absolute pathname of C<path>. The returned path "
15066 "has no C<.>, C<..> or symbolic link path elements."
15070 #: ../fish/guestfish-actions.pod:4144
15071 msgid "removexattr"
15072 msgstr "removexattr"
15075 #: ../fish/guestfish-actions.pod:4146
15078 " removexattr xattr path\n"
15083 #: ../fish/guestfish-actions.pod:4148 ../src/guestfs-actions.pod:6448
15085 "This call removes the extended attribute named C<xattr> of the file C<path>."
15089 #: ../fish/guestfish-actions.pod:4151
15090 msgid "See also: L</lremovexattr>, L<attr(5)>."
15091 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
15094 #: ../fish/guestfish-actions.pod:4153
15099 #: ../fish/guestfish-actions.pod:4155
15102 " resize2fs device\n"
15105 " resize2fs пристрій\n"
15109 #: ../fish/guestfish-actions.pod:4157 ../src/guestfs-actions.pod:6463
15111 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15112 "underlying device."
15116 #: ../fish/guestfish-actions.pod:4160
15118 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
15119 "before calling this command. For unknown reasons C<resize2fs> sometimes "
15120 "gives an error about this and sometimes not. In any case, it is always safe "
15121 "to call L</e2fsck-f> before calling this function."
15125 #: ../fish/guestfish-actions.pod:4166
15126 msgid "resize2fs-M"
15127 msgstr "resize2fs-M"
15130 #: ../fish/guestfish-actions.pod:4168
15133 " resize2fs-M device\n"
15136 " resize2fs-M пристрій\n"
15140 #: ../fish/guestfish-actions.pod:4170
15142 "This command is the same as L</resize2fs>, but the filesystem is resized to "
15143 "its minimum size. This works like the I<-M> option to the C<resize2fs> "
15148 #: ../fish/guestfish-actions.pod:4174
15150 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
15151 "and read the C<Block size> and C<Block count> values. These two numbers, "
15152 "multiplied together, give the resulting size of the minimal filesystem in "
15157 #: ../fish/guestfish-actions.pod:4179
15158 msgid "resize2fs-size"
15159 msgstr "resize2fs-size"
15162 #: ../fish/guestfish-actions.pod:4181
15165 " resize2fs-size device size\n"
15170 #: ../fish/guestfish-actions.pod:4183
15172 "This command is the same as L</resize2fs> except that it allows you to "
15173 "specify the new size (in bytes) explicitly."
15177 #: ../fish/guestfish-actions.pod:4186
15182 #: ../fish/guestfish-actions.pod:4188
15192 #: ../fish/guestfish-actions.pod:4190 ../src/guestfs-actions.pod:6515
15193 msgid "Remove the single file C<path>."
15197 #: ../fish/guestfish-actions.pod:4192
15202 #: ../fish/guestfish-actions.pod:4194
15212 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6527
15214 "Remove the file or directory C<path>, recursively removing the contents if "
15215 "its a directory. This is like the C<rm -rf> shell command."
15219 #: ../fish/guestfish-actions.pod:4200
15224 #: ../fish/guestfish-actions.pod:4202
15234 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6541
15235 msgid "Remove the single directory C<path>."
15239 #: ../fish/guestfish-actions.pod:4206
15240 msgid "rmmountpoint"
15241 msgstr "rmmountpoint"
15244 #: ../fish/guestfish-actions.pod:4208
15247 " rmmountpoint exemptpath\n"
15252 #: ../fish/guestfish-actions.pod:4210
15254 "This calls removes a mountpoint that was previously created with L</"
15255 "mkmountpoint>. See L</mkmountpoint> for full details."
15259 #: ../fish/guestfish-actions.pod:4214
15260 msgid "scrub-device"
15261 msgstr "scrub-device"
15264 #: ../fish/guestfish-actions.pod:4216
15267 " scrub-device device\n"
15270 " scrub-device пристрій\n"
15274 #: ../fish/guestfish-actions.pod:4218 ../src/guestfs-actions.pod:6567
15276 "This command writes patterns over C<device> to make data retrieval more "
15281 #: ../fish/guestfish-actions.pod:4221 ../fish/guestfish-actions.pod:4233
15282 #: ../fish/guestfish-actions.pod:4246 ../src/guestfs-actions.pod:6570
15283 #: ../src/guestfs-actions.pod:6588 ../src/guestfs-actions.pod:6607
15285 "It is an interface to the L<scrub(1)> program. See that manual page for "
15290 #: ../fish/guestfish-actions.pod:4224
15292 msgstr "scrub-file"
15295 #: ../fish/guestfish-actions.pod:4226
15298 " scrub-file file\n"
15301 " scrub-file файл\n"
15305 #: ../fish/guestfish-actions.pod:4228 ../src/guestfs-actions.pod:6583
15307 "This command writes patterns over a file to make data retrieval more "
15312 #: ../fish/guestfish-actions.pod:4231 ../src/guestfs-actions.pod:6586
15313 msgid "The file is I<removed> after scrubbing."
15317 #: ../fish/guestfish-actions.pod:4236
15318 msgid "scrub-freespace"
15319 msgstr "scrub-freespace"
15322 #: ../fish/guestfish-actions.pod:4238
15325 " scrub-freespace dir\n"
15328 " scrub-freespace каталог\n"
15332 #: ../fish/guestfish-actions.pod:4240
15334 "This command creates the directory C<dir> and then fills it with files until "
15335 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15336 "deletes them. The intention is to scrub any free space on the partition "
15337 "containing C<dir>."
15341 #: ../fish/guestfish-actions.pod:4249
15343 msgstr "set-append"
15346 #: ../fish/guestfish-actions.pod:4251
15351 #: ../fish/guestfish-actions.pod:4253
15354 " set-append append\n"
15359 #: ../fish/guestfish-actions.pod:4255 ../src/guestfs-actions.pod:6620
15361 "This function is used to add additional options to the guest kernel command "
15366 #: ../fish/guestfish-actions.pod:4258 ../src/guestfs-actions.pod:6623
15368 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15369 "environment variable."
15373 #: ../fish/guestfish-actions.pod:4261 ../src/guestfs-actions.pod:6626
15375 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15376 "(libguestfs always adds a few of its own)."
15380 #: ../fish/guestfish-actions.pod:4264
15381 msgid "set-attach-method"
15382 msgstr "set-attach-method"
15385 #: ../fish/guestfish-actions.pod:4266
15386 msgid "attach-method"
15390 #: ../fish/guestfish-actions.pod:4268
15393 " set-attach-method attachmethod\n"
15398 #: ../fish/guestfish-actions.pod:4270 ../src/guestfs-actions.pod:6639
15400 "Set the method that libguestfs uses to connect to the back end guestfsd "
15401 "daemon. Possible methods are:"
15405 #: ../fish/guestfish-actions.pod:4275 ../src/guestfs-actions.pod:6644
15406 #: ../src/guestfs.pod:2916
15407 msgid "C<appliance>"
15408 msgstr "C<appliance>"
15411 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6646
15413 "Launch an appliance and connect to it. This is the ordinary method and the "
15418 #: ../fish/guestfish-actions.pod:4280 ../src/guestfs-actions.pod:6649
15419 msgid "C<unix:I<path>>"
15420 msgstr "C<unix:I<шлях>>"
15423 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6651
15424 msgid "Connect to the Unix domain socket I<path>."
15425 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
15428 #: ../fish/guestfish-actions.pod:4284 ../src/guestfs-actions.pod:6653
15430 "This method lets you connect to an existing daemon or (using virtio-serial) "
15431 "to a live guest. For more information, see L<guestfs(3)/ATTACHING TO "
15432 "RUNNING DAEMONS>."
15436 #: ../fish/guestfish-actions.pod:4290
15437 msgid "set-autosync"
15438 msgstr "set-autosync"
15441 #: ../fish/guestfish-actions.pod:4292
15446 #: ../fish/guestfish-actions.pod:4294
15449 " set-autosync true|false\n"
15452 " set-autosync true|false\n"
15456 #: ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:6669
15458 "If C<autosync> is true, this enables autosync. Libguestfs will make a best "
15459 "effort attempt to make filesystems consistent and synchronized when the "
15460 "handle is closed (also if the program exits without closing handles)."
15464 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6674
15466 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15467 "disabled by default)."
15471 #: ../fish/guestfish-actions.pod:4304
15473 msgstr "set-direct"
15476 #: ../fish/guestfish-actions.pod:4306
15481 #: ../fish/guestfish-actions.pod:4308
15484 " set-direct true|false\n"
15487 " set-direct true|false\n"
15491 #: ../fish/guestfish-actions.pod:4310 ../src/guestfs-actions.pod:6687
15493 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15494 "passed directly through to the appliance once it is launched."
15498 #: ../fish/guestfish-actions.pod:4314
15500 "One consequence of this is that log messages aren't caught by the library "
15501 "and handled by L</set-log-message-callback>, but go straight to stdout."
15505 #: ../fish/guestfish-actions.pod:4318 ../src/guestfs-actions.pod:6695
15506 msgid "You probably don't want to use this unless you know what you are doing."
15510 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6698
15511 msgid "The default is disabled."
15515 #: ../fish/guestfish-actions.pod:4323
15516 msgid "set-e2label"
15517 msgstr "set-e2label"
15520 #: ../fish/guestfish-actions.pod:4325
15523 " set-e2label device label\n"
15528 #: ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:6711
15530 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15531 "C<label>. Filesystem labels are limited to 16 characters."
15535 #: ../fish/guestfish-actions.pod:4331
15537 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15538 "label on a filesystem."
15542 #: ../fish/guestfish-actions.pod:4334
15544 msgstr "set-e2uuid"
15547 #: ../fish/guestfish-actions.pod:4336
15550 " set-e2uuid device uuid\n"
15555 #: ../fish/guestfish-actions.pod:4338 ../src/guestfs-actions.pod:6729
15557 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15558 "C<uuid>. The format of the UUID and alternatives such as C<clear>, "
15559 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15563 #: ../fish/guestfish-actions.pod:4343
15565 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15566 "UUID of a filesystem."
15570 #: ../fish/guestfish-actions.pod:4346
15571 msgid "set-memsize"
15572 msgstr "set-memsize"
15575 #: ../fish/guestfish-actions.pod:4348
15580 #: ../fish/guestfish-actions.pod:4350
15583 " set-memsize memsize\n"
15588 #: ../fish/guestfish-actions.pod:4352
15590 "This sets the memory size in megabytes allocated to the qemu subprocess. "
15591 "This only has any effect if called before L</launch>."
15595 #: ../fish/guestfish-actions.pod:4356 ../src/guestfs-actions.pod:6751
15597 "You can also change this by setting the environment variable "
15598 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15602 #: ../fish/guestfish-actions.pod:4363
15603 msgid "set-network"
15604 msgstr "set-network"
15607 #: ../fish/guestfish-actions.pod:4365
15612 #: ../fish/guestfish-actions.pod:4367
15615 " set-network true|false\n"
15618 " set-network true|false\n"
15622 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6768
15624 "If C<network> is true, then the network is enabled in the libguestfs "
15625 "appliance. The default is false."
15629 #: ../fish/guestfish-actions.pod:4372 ../src/guestfs-actions.pod:6771
15631 "This affects whether commands are able to access the network (see L<guestfs"
15632 "(3)/RUNNING COMMANDS>)."
15636 #: ../fish/guestfish-actions.pod:4375
15638 "You must call this before calling L</launch>, otherwise it has no effect."
15642 #: ../fish/guestfish-actions.pod:4378
15647 #: ../fish/guestfish-actions.pod:4382
15650 " set-path searchpath\n"
15655 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6787
15656 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15660 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6789
15662 "The default is C<$libdir/guestfs> unless overridden by setting "
15663 "C<LIBGUESTFS_PATH> environment variable."
15667 #: ../fish/guestfish-actions.pod:4389 ../src/guestfs-actions.pod:6792
15668 msgid "Setting C<path> to C<NULL> restores the default path."
15672 #: ../fish/guestfish-actions.pod:4391
15677 #: ../fish/guestfish-actions.pod:4393
15682 #: ../fish/guestfish-actions.pod:4395
15685 " set-pgroup true|false\n"
15690 #: ../fish/guestfish-actions.pod:4397 ../src/guestfs-actions.pod:6804
15692 "If C<pgroup> is true, child processes are placed into their own process "
15697 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6807
15699 "The practical upshot of this is that signals like C<SIGINT> (from users "
15700 "pressing C<^C>) won't be received by the child process."
15704 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6810
15706 "The default for this flag is false, because usually you want C<^C> to kill "
15711 #: ../fish/guestfish-actions.pod:4406
15716 #: ../fish/guestfish-actions.pod:4408
15721 #: ../fish/guestfish-actions.pod:4410
15731 #: ../fish/guestfish-actions.pod:4412 ../src/guestfs-actions.pod:6823
15732 msgid "Set the qemu binary that we will use."
15736 #: ../fish/guestfish-actions.pod:4414 ../src/guestfs-actions.pod:6825
15738 "The default is chosen when the library was compiled by the configure script."
15742 #: ../fish/guestfish-actions.pod:4417 ../src/guestfs-actions.pod:6828
15744 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15749 #: ../fish/guestfish-actions.pod:4420 ../src/guestfs-actions.pod:6831
15750 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15754 #: ../fish/guestfish-actions.pod:4422 ../src/guestfs-actions.pod:6833
15756 "Note that you should call this function as early as possible after creating "
15757 "the handle. This is because some pre-launch operations depend on testing "
15758 "qemu features (by running C<qemu -help>). If the qemu binary changes, we "
15759 "don't retest features, and so you might see inconsistent results. Using the "
15760 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15761 "the qemu binary at the same time as the handle is created."
15765 #: ../fish/guestfish-actions.pod:4430
15766 msgid "set-recovery-proc"
15767 msgstr "set-recovery-proc"
15770 #: ../fish/guestfish-actions.pod:4432
15771 msgid "recovery-proc"
15772 msgstr "recovery-proc"
15775 #: ../fish/guestfish-actions.pod:4434
15778 " set-recovery-proc true|false\n"
15781 " set-recovery-proc true|false\n"
15785 #: ../fish/guestfish-actions.pod:4436
15787 "If this is called with the parameter C<false> then L</launch> does not "
15788 "create a recovery process. The purpose of the recovery process is to stop "
15789 "runaway qemu processes in the case where the main program aborts abruptly."
15793 #: ../fish/guestfish-actions.pod:4441
15795 "This only has any effect if called before L</launch>, and the default is "
15800 #: ../fish/guestfish-actions.pod:4444 ../src/guestfs-actions.pod:6859
15802 "About the only time when you would want to disable this is if the main "
15803 "process will fork itself into the background (\"daemonize\" itself). In "
15804 "this case the recovery process thinks that the main program has disappeared "
15805 "and so kills qemu, which is not very helpful."
15809 #: ../fish/guestfish-actions.pod:4450
15810 msgid "set-selinux"
15811 msgstr "set-selinux"
15814 #: ../fish/guestfish-actions.pod:4452
15819 #: ../fish/guestfish-actions.pod:4454
15822 " set-selinux true|false\n"
15825 " set-selinux true|false\n"
15829 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6875
15831 "This sets the selinux flag that is passed to the appliance at boot time. "
15832 "The default is C<selinux=0> (disabled)."
15836 #: ../fish/guestfish-actions.pod:4459 ../src/guestfs-actions.pod:6878
15838 "Note that if SELinux is enabled, it is always in Permissive mode "
15839 "(C<enforcing=0>)."
15843 #: ../fish/guestfish-actions.pod:4465
15848 #: ../fish/guestfish-actions.pod:4467
15853 #: ../fish/guestfish-actions.pod:4469
15861 #: ../fish/guestfish-actions.pod:4471 ../src/guestfs-actions.pod:6894
15863 "Change the number of virtual CPUs assigned to the appliance. The default is "
15864 "C<1>. Increasing this may improve performance, though often it has no "
15869 #: ../fish/guestfish-actions.pod:4475
15870 msgid "This function must be called before L</launch>."
15874 #: ../fish/guestfish-actions.pod:4477
15879 #: ../fish/guestfish-actions.pod:4479
15884 #: ../fish/guestfish-actions.pod:4481
15887 " set-trace true|false\n"
15890 " set-trace true|false\n"
15894 #: ../fish/guestfish-actions.pod:4483 ../src/guestfs-actions.pod:6910
15896 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15897 "return values are traced."
15901 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6913
15903 "If you want to trace C API calls into libguestfs (and other libraries) then "
15904 "possibly a better way is to use the external ltrace(1) command."
15908 #: ../fish/guestfish-actions.pod:4490 ../src/guestfs-actions.pod:6917
15910 "Command traces are disabled unless the environment variable "
15911 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15915 #: ../fish/guestfish-actions.pod:4493
15917 "Trace messages are normally sent to C<stderr>, unless you register a "
15918 "callback to send them somewhere else (see L</set-event-callback>)."
15922 #: ../fish/guestfish-actions.pod:4497
15923 msgid "set-verbose"
15924 msgstr "set-verbose"
15927 #: ../fish/guestfish-actions.pod:4499
15932 #: ../fish/guestfish-actions.pod:4501
15935 " set-verbose true|false\n"
15938 " set-verbose true|false\n"
15942 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6934
15943 msgid "If C<verbose> is true, this turns on verbose messages."
15947 #: ../fish/guestfish-actions.pod:4505 ../src/guestfs-actions.pod:6936
15949 "Verbose messages are disabled unless the environment variable "
15950 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15954 #: ../fish/guestfish-actions.pod:4508
15956 "Verbose messages are normally sent to C<stderr>, unless you register a "
15957 "callback to send them somewhere else (see L</set-event-callback>)."
15961 #: ../fish/guestfish-actions.pod:4512
15966 #: ../fish/guestfish-actions.pod:4514
15969 " setcon context\n"
15972 " setcon контекст\n"
15976 #: ../fish/guestfish-actions.pod:4516 ../src/guestfs-actions.pod:6953
15978 "This sets the SELinux security context of the daemon to the string "
15983 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6956
15984 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15988 #: ../fish/guestfish-actions.pod:4521
15993 #: ../fish/guestfish-actions.pod:4523
15996 " setxattr xattr val vallen path\n"
16001 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6971
16003 "This call sets the extended attribute named C<xattr> of the file C<path> to "
16004 "the value C<val> (of length C<vallen>). The value is arbitrary 8 bit data."
16008 #: ../fish/guestfish-actions.pod:4529
16009 msgid "See also: L</lsetxattr>, L<attr(5)>."
16010 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
16013 #: ../fish/guestfish-actions.pod:4531
16018 #: ../fish/guestfish-actions.pod:4533
16021 " sfdisk device cyls heads sectors 'lines ...'\n"
16026 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6998
16028 "This is a direct interface to the L<sfdisk(8)> program for creating "
16029 "partitions on block devices."
16033 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:7001
16034 msgid "C<device> should be a block device, for example C</dev/sda>."
16038 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:7003
16040 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
16041 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
16042 "H> and I<-S> parameters. If you pass C<0> for any of these, then the "
16043 "corresponding parameter is omitted. Usually for 'large' disks, you can just "
16044 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
16045 "the kernel) cannot work out the right geometry and you will need to tell it."
16049 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:7011
16051 "C<lines> is a list of lines that we feed to C<sfdisk>. For more information "
16052 "refer to the L<sfdisk(8)> manpage."
16056 #: ../fish/guestfish-actions.pod:4551 ../src/guestfs-actions.pod:7014
16058 "To create a single partition occupying the whole disk, you would pass "
16059 "C<lines> as a single element list, when the single element being the string "
16064 #: ../fish/guestfish-actions.pod:4555
16065 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16066 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16069 #: ../fish/guestfish-actions.pod:4558 ../fish/guestfish-actions.pod:4578
16070 #: ../fish/guestfish-actions.pod:4597
16072 "I<This function is deprecated.> In new code, use the L</part_add> call "
16077 #: ../fish/guestfish-actions.pod:4565
16082 #: ../fish/guestfish-actions.pod:4567
16085 " sfdiskM device 'lines ...'\n"
16090 #: ../fish/guestfish-actions.pod:4569
16092 "This is a simplified interface to the L</sfdisk> command, where partition "
16093 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
16094 "you don't need to specify the cyls, heads and sectors parameters which were "
16095 "rarely if ever used anyway."
16099 #: ../fish/guestfish-actions.pod:4575
16100 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
16102 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
16105 #: ../fish/guestfish-actions.pod:4585
16110 #: ../fish/guestfish-actions.pod:4587
16113 " sfdisk-N device partnum cyls heads sectors line\n"
16118 #: ../fish/guestfish-actions.pod:4589 ../src/guestfs-actions.pod:7070
16120 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16121 "(note: C<n> counts from 1)."
16125 #: ../fish/guestfish-actions.pod:4592
16127 "For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
16128 "cyls/heads/sectors parameters."
16132 #: ../fish/guestfish-actions.pod:4595
16133 msgid "See also: L</part-add>"
16134 msgstr "Див. також L</part-add>"
16137 #: ../fish/guestfish-actions.pod:4604
16138 msgid "sfdisk-disk-geometry"
16139 msgstr "sfdisk-disk-geometry"
16142 #: ../fish/guestfish-actions.pod:4606
16145 " sfdisk-disk-geometry device\n"
16148 " sfdisk-disk-geometry пристрій\n"
16152 #: ../fish/guestfish-actions.pod:4608
16154 "This displays the disk geometry of C<device> read from the partition table. "
16155 "Especially in the case where the underlying block device has been resized, "
16156 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
16157 "kernel-geometry>)."
16161 #: ../fish/guestfish-actions.pod:4613 ../fish/guestfish-actions.pod:4622
16162 #: ../src/guestfs-actions.pod:7093 ../src/guestfs-actions.pod:7109
16163 msgid "The result is in human-readable format, and not designed to be parsed."
16167 #: ../fish/guestfish-actions.pod:4616
16168 msgid "sfdisk-kernel-geometry"
16169 msgstr "sfdisk-kernel-geometry"
16172 #: ../fish/guestfish-actions.pod:4618
16175 " sfdisk-kernel-geometry device\n"
16178 " sfdisk-kernel-geometry пристрій\n"
16182 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:7107
16183 msgid "This displays the kernel's idea of the geometry of C<device>."
16187 #: ../fish/guestfish-actions.pod:4625
16192 #: ../fish/guestfish-actions.pod:4627
16195 " sfdisk-l device\n"
16198 " sfdisk-l пристрій\n"
16202 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:7130
16204 "This displays the partition table on C<device>, in the human-readable output "
16205 "of the L<sfdisk(8)> command. It is not intended to be parsed."
16209 #: ../fish/guestfish-actions.pod:4633
16210 msgid "See also: L</part-list>"
16211 msgstr "Див. також L</part-list>"
16214 #: ../fish/guestfish-actions.pod:4635
16216 "I<This function is deprecated.> In new code, use the L</part_list> call "
16221 #: ../fish/guestfish-actions.pod:4642
16226 #: ../fish/guestfish-actions.pod:4644
16236 #: ../fish/guestfish-actions.pod:4646 ../src/guestfs-actions.pod:7147
16238 "This call runs a command from the guest filesystem via the guest's C</bin/"
16243 #: ../fish/guestfish-actions.pod:4649
16244 msgid "This is like L</command>, but passes the command to:"
16248 #: ../fish/guestfish-actions.pod:4651 ../src/guestfs-actions.pod:7152
16251 " /bin/sh -c \"command\"\n"
16256 #: ../fish/guestfish-actions.pod:4653 ../src/guestfs-actions.pod:7154
16258 "Depending on the guest's shell, this usually results in wildcards being "
16259 "expanded, shell expressions being interpolated and so on."
16263 #: ../fish/guestfish-actions.pod:4657
16264 msgid "All the provisos about L</command> apply to this call."
16268 #: ../fish/guestfish-actions.pod:4659
16273 #: ../fish/guestfish-actions.pod:4661
16276 " sh-lines command\n"
16279 " sh-lines команда\n"
16283 #: ../fish/guestfish-actions.pod:4663
16284 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16288 #: ../fish/guestfish-actions.pod:4666
16289 msgid "See also: L</command-lines>"
16290 msgstr "Див. також L</command-lines>"
16293 #: ../fish/guestfish-actions.pod:4668
16298 #: ../fish/guestfish-actions.pod:4670
16304 " sleep час_у_секундах\n"
16308 #: ../fish/guestfish-actions.pod:4672 ../src/guestfs-actions.pod:7188
16309 msgid "Sleep for C<secs> seconds."
16313 #: ../fish/guestfish-actions.pod:4674
16318 #: ../fish/guestfish-actions.pod:4676
16328 #: ../fish/guestfish-actions.pod:4680 ../src/guestfs-actions.pod:7202
16329 msgid "This is the same as the C<stat(2)> system call."
16333 #: ../fish/guestfish-actions.pod:4682
16338 #: ../fish/guestfish-actions.pod:4684
16348 #: ../fish/guestfish-actions.pod:4686 ../src/guestfs-actions.pod:7216
16350 "Returns file system statistics for any mounted file system. C<path> should "
16351 "be a file or directory in the mounted file system (typically it is the mount "
16352 "point itself, but it doesn't need to be)."
16356 #: ../fish/guestfish-actions.pod:4690 ../src/guestfs-actions.pod:7220
16357 msgid "This is the same as the C<statvfs(2)> system call."
16361 #: ../fish/guestfish-actions.pod:4692
16366 #: ../fish/guestfish-actions.pod:4694
16376 #: ../fish/guestfish-actions.pod:4696 ../src/guestfs-actions.pod:7234
16378 "This runs the L<strings(1)> command on a file and returns the list of "
16379 "printable strings found."
16383 #: ../fish/guestfish-actions.pod:4702
16388 #: ../fish/guestfish-actions.pod:4704
16391 " strings-e encoding path\n"
16394 " strings-e кодування шлях\n"
16398 #: ../fish/guestfish-actions.pod:4706
16400 "This is like the L</strings> command, but allows you to specify the encoding "
16401 "of strings that are looked for in the source file C<path>."
16405 #: ../fish/guestfish-actions.pod:4710 ../src/guestfs-actions.pod:7257
16406 msgid "Allowed encodings are:"
16407 msgstr "Можливими кодуваннями є:"
16410 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7261
16415 #: ../fish/guestfish-actions.pod:4716
16417 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16418 "ISO-8859-X (this is what L</strings> uses)."
16422 #: ../fish/guestfish-actions.pod:4719 ../src/guestfs-actions.pod:7266
16427 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7268
16428 msgid "Single 8-bit-byte characters."
16429 msgstr "Окремі 8-бітові-байтові символи."
16432 #: ../fish/guestfish-actions.pod:4723 ../src/guestfs-actions.pod:7270
16437 #: ../fish/guestfish-actions.pod:4725 ../src/guestfs-actions.pod:7272
16438 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16442 #: ../fish/guestfish-actions.pod:4728 ../src/guestfs-actions.pod:7275
16443 msgid "l (lower case letter L)"
16447 #: ../fish/guestfish-actions.pod:4730 ../src/guestfs-actions.pod:7277
16449 "16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
16450 "examining binaries in Windows guests."
16454 #: ../fish/guestfish-actions.pod:4733 ../src/guestfs-actions.pod:7280
16459 #: ../fish/guestfish-actions.pod:4735 ../src/guestfs-actions.pod:7282
16460 msgid "32-bit big endian such as UCS-4BE."
16464 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7284
16469 #: ../fish/guestfish-actions.pod:4739 ../src/guestfs-actions.pod:7286
16470 msgid "32-bit little endian such as UCS-4LE."
16474 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7290
16475 msgid "The returned strings are transcoded to UTF-8."
16479 #: ../fish/guestfish-actions.pod:4748
16480 msgid "swapoff-device"
16481 msgstr "swapoff-device"
16484 #: ../fish/guestfish-actions.pod:4750
16487 " swapoff-device device\n"
16490 " swapoff-device пристрій\n"
16494 #: ../fish/guestfish-actions.pod:4752
16496 "This command disables the libguestfs appliance swap device or partition "
16497 "named C<device>. See L</swapon-device>."
16501 #: ../fish/guestfish-actions.pod:4756
16502 msgid "swapoff-file"
16503 msgstr "swapoff-file"
16506 #: ../fish/guestfish-actions.pod:4758
16509 " swapoff-file file\n"
16512 " swapoff-file файл\n"
16516 #: ../fish/guestfish-actions.pod:4760 ../src/guestfs-actions.pod:7321
16517 msgid "This command disables the libguestfs appliance swap on file."
16521 #: ../fish/guestfish-actions.pod:4762
16522 msgid "swapoff-label"
16523 msgstr "swapoff-label"
16526 #: ../fish/guestfish-actions.pod:4764
16529 " swapoff-label label\n"
16532 " swapoff-label мітка\n"
16536 #: ../fish/guestfish-actions.pod:4766 ../src/guestfs-actions.pod:7333
16538 "This command disables the libguestfs appliance swap on labeled swap "
16543 #: ../fish/guestfish-actions.pod:4769
16544 msgid "swapoff-uuid"
16545 msgstr "swapoff-uuid"
16548 #: ../fish/guestfish-actions.pod:4771
16551 " swapoff-uuid uuid\n"
16554 " swapoff-uuid uuid\n"
16558 #: ../fish/guestfish-actions.pod:4773 ../src/guestfs-actions.pod:7346
16560 "This command disables the libguestfs appliance swap partition with the given "
16565 #: ../fish/guestfish-actions.pod:4776
16566 msgid "swapon-device"
16567 msgstr "swapon-device"
16570 #: ../fish/guestfish-actions.pod:4778
16573 " swapon-device device\n"
16576 " swapon-device пристрій\n"
16580 #: ../fish/guestfish-actions.pod:4780
16582 "This command enables the libguestfs appliance to use the swap device or "
16583 "partition named C<device>. The increased memory is made available for all "
16584 "commands, for example those run using L</command> or L</sh>."
16588 #: ../fish/guestfish-actions.pod:4785 ../src/guestfs-actions.pod:7364
16590 "Note that you should not swap to existing guest swap partitions unless you "
16591 "know what you are doing. They may contain hibernation information, or other "
16592 "information that the guest doesn't want you to trash. You also risk leaking "
16593 "information about the host to the guest this way. Instead, attach a new "
16594 "host device to the guest and swap on that."
16598 #: ../fish/guestfish-actions.pod:4792
16599 msgid "swapon-file"
16600 msgstr "swapon-file"
16603 #: ../fish/guestfish-actions.pod:4794
16606 " swapon-file file\n"
16609 " swapon-file файл\n"
16613 #: ../fish/guestfish-actions.pod:4796
16615 "This command enables swap to a file. See L</swapon-device> for other notes."
16619 #: ../fish/guestfish-actions.pod:4799
16620 msgid "swapon-label"
16621 msgstr "swapon-label"
16624 #: ../fish/guestfish-actions.pod:4801
16627 " swapon-label label\n"
16630 " swapon-label мітка\n"
16634 #: ../fish/guestfish-actions.pod:4803
16636 "This command enables swap to a labeled swap partition. See L</swapon-"
16637 "device> for other notes."
16641 #: ../fish/guestfish-actions.pod:4806
16642 msgid "swapon-uuid"
16643 msgstr "swapon-uuid"
16646 #: ../fish/guestfish-actions.pod:4808
16649 " swapon-uuid uuid\n"
16652 " swapon-uuid uuid\n"
16656 #: ../fish/guestfish-actions.pod:4810
16658 "This command enables swap to a swap partition with the given UUID. See L</"
16659 "swapon-device> for other notes."
16663 #: ../fish/guestfish-actions.pod:4813
16668 #: ../fish/guestfish-actions.pod:4815
16678 #: ../fish/guestfish-actions.pod:4817 ../src/guestfs-actions.pod:7419
16680 "This syncs the disk, so that any writes are flushed through to the "
16681 "underlying disk image."
16685 #: ../fish/guestfish-actions.pod:4820 ../src/guestfs-actions.pod:7422
16687 "You should always call this if you have modified a disk image, before "
16688 "closing the handle."
16692 #: ../fish/guestfish-actions.pod:4823
16697 #: ../fish/guestfish-actions.pod:4825
16707 #: ../fish/guestfish-actions.pod:4827 ../src/guestfs-actions.pod:7435
16709 "This command returns up to the last 10 lines of a file as a list of strings."
16713 #: ../fish/guestfish-actions.pod:4833
16718 #: ../fish/guestfish-actions.pod:4835
16721 " tail-n nrlines path\n"
16726 #: ../fish/guestfish-actions.pod:4837 ../src/guestfs-actions.pod:7454
16728 "If the parameter C<nrlines> is a positive number, this returns the last "
16729 "C<nrlines> lines of the file C<path>."
16733 #: ../fish/guestfish-actions.pod:4840 ../src/guestfs-actions.pod:7457
16735 "If the parameter C<nrlines> is a negative number, this returns lines from "
16736 "the file C<path>, starting with the C<-nrlines>th line."
16740 #: ../fish/guestfish-actions.pod:4848
16745 #: ../fish/guestfish-actions.pod:4850
16748 " tar-in (tarfile|-) directory\n"
16751 " tar-in (файл_tar|-) каталог\n"
16755 #: ../fish/guestfish-actions.pod:4852 ../src/guestfs-actions.pod:7478
16757 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16758 "tar file) into C<directory>."
16762 #: ../fish/guestfish-actions.pod:4855
16763 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16767 #: ../fish/guestfish-actions.pod:4860
16772 #: ../fish/guestfish-actions.pod:4862
16775 " tar-out directory (tarfile|-)\n"
16778 " tar-out каталог (файл tar|-)\n"
16782 #: ../fish/guestfish-actions.pod:4864 ../src/guestfs-actions.pod:7495
16784 "This command packs the contents of C<directory> and downloads it to local "
16789 #: ../fish/guestfish-actions.pod:4867
16790 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16794 #: ../fish/guestfish-actions.pod:4872
16799 #: ../fish/guestfish-actions.pod:4874
16802 " tgz-in (tarball|-) directory\n"
16805 " tgz-in (архів tar|-) каталог\n"
16809 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7512
16811 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16812 "tar file) into C<directory>."
16816 #: ../fish/guestfish-actions.pod:4879
16817 msgid "To upload an uncompressed tarball, use L</tar-in>."
16821 #: ../fish/guestfish-actions.pod:4883
16826 #: ../fish/guestfish-actions.pod:4885
16829 " tgz-out directory (tarball|-)\n"
16832 " tgz-out каталог (архів tar|-)\n"
16836 #: ../fish/guestfish-actions.pod:4887 ../src/guestfs-actions.pod:7528
16838 "This command packs the contents of C<directory> and downloads it to local "
16843 #: ../fish/guestfish-actions.pod:4890
16844 msgid "To download an uncompressed tarball, use L</tar-out>."
16848 #: ../fish/guestfish-actions.pod:4894
16853 #: ../fish/guestfish-actions.pod:4896
16863 #: ../fish/guestfish-actions.pod:4898 ../src/guestfs-actions.pod:7543
16865 "Touch acts like the L<touch(1)> command. It can be used to update the "
16866 "timestamps on a file, or, if the file does not exist, to create a new zero-"
16871 #: ../fish/guestfish-actions.pod:4902 ../src/guestfs-actions.pod:7547
16873 "This command only works on regular files, and will fail on other file types "
16874 "such as directories, symbolic links, block special etc."
16878 #: ../fish/guestfish-actions.pod:4905
16883 #: ../fish/guestfish-actions.pod:4907
16893 #: ../fish/guestfish-actions.pod:4909 ../src/guestfs-actions.pod:7560
16895 "This command truncates C<path> to a zero-length file. The file must exist "
16900 #: ../fish/guestfish-actions.pod:4912
16901 msgid "truncate-size"
16902 msgstr "truncate-size"
16905 #: ../fish/guestfish-actions.pod:4914
16908 " truncate-size path size\n"
16911 " truncate-size шлях розмір\n"
16915 #: ../fish/guestfish-actions.pod:4916 ../src/guestfs-actions.pod:7574
16917 "This command truncates C<path> to size C<size> bytes. The file must exist "
16922 #: ../fish/guestfish-actions.pod:4919
16924 "If the current file size is less than C<size> then the file is extended to "
16925 "the required size with zero bytes. This creates a sparse file (ie. disk "
16926 "blocks are not allocated for the file until you write to it). To create a "
16927 "non-sparse file of zeroes, use L</fallocate64> instead."
16931 #: ../fish/guestfish-actions.pod:4925
16936 #: ../fish/guestfish-actions.pod:4927
16939 " tune2fs-l device\n"
16942 " tune2fs-l пристрій\n"
16946 #: ../fish/guestfish-actions.pod:4929 ../src/guestfs-actions.pod:7593
16948 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16953 #: ../fish/guestfish-actions.pod:4932 ../src/guestfs-actions.pod:7596
16955 "It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage "
16956 "for more details. The list of fields returned isn't clearly defined, and "
16957 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16958 "and the filesystem itself."
16962 #: ../fish/guestfish-actions.pod:4937
16967 #: ../fish/guestfish-actions.pod:4939
16970 " txz-in (tarball|-) directory\n"
16973 " txz-in (архів tar|-) каталог\n"
16977 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7616
16979 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16980 "tar file) into C<directory>."
16984 #: ../fish/guestfish-actions.pod:4946
16989 #: ../fish/guestfish-actions.pod:4948
16992 " txz-out directory (tarball|-)\n"
16995 " txz-out каталог (архів tar|-)\n"
16999 #: ../fish/guestfish-actions.pod:4950 ../src/guestfs-actions.pod:7630
17001 "This command packs the contents of C<directory> and downloads it to local "
17002 "file C<tarball> (as an xz compressed tar archive)."
17006 #: ../fish/guestfish-actions.pod:4955
17011 #: ../fish/guestfish-actions.pod:4957
17021 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7643
17023 "This function sets the mask used for creating new files and device nodes to "
17028 #: ../fish/guestfish-actions.pod:4962 ../src/guestfs-actions.pod:7646
17030 "Typical umask values would be C<022> which creates new files with "
17031 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
17032 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
17036 #: ../fish/guestfish-actions.pod:4967 ../src/guestfs-actions.pod:7651
17038 "The default umask is C<022>. This is important because it means that "
17039 "directories and device nodes will be created with C<0644> or C<0755> mode "
17040 "even if you specify C<0777>."
17044 #: ../fish/guestfish-actions.pod:4971
17045 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17046 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17049 #: ../fish/guestfish-actions.pod:4974 ../src/guestfs-actions.pod:7658
17050 msgid "This call returns the previous umask."
17054 #: ../fish/guestfish-actions.pod:4976
17059 #: ../fish/guestfish-actions.pod:4978
17064 #: ../fish/guestfish-actions.pod:4980
17067 " umount pathordevice\n"
17070 " umount шлях_або_пристрій\n"
17074 #: ../fish/guestfish-actions.pod:4982 ../src/guestfs-actions.pod:7670
17076 "This unmounts the given filesystem. The filesystem may be specified either "
17077 "by its mountpoint (path) or the device which contains the filesystem."
17081 #: ../fish/guestfish-actions.pod:4986
17083 msgstr "umount-all"
17086 #: ../fish/guestfish-actions.pod:4988
17087 msgid "unmount-all"
17088 msgstr "unmount-all"
17091 #: ../fish/guestfish-actions.pod:4990
17101 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7683
17102 msgid "This unmounts all mounted filesystems."
17106 #: ../fish/guestfish-actions.pod:4994 ../src/guestfs-actions.pod:7685
17107 msgid "Some internal mounts are not unmounted by this call."
17111 #: ../fish/guestfish-actions.pod:4996
17116 #: ../fish/guestfish-actions.pod:4998
17119 " upload (filename|-) remotefilename\n"
17122 " upload (назва_файла|-) назва_віддаленого_файла\n"
17126 #: ../fish/guestfish-actions.pod:5000 ../fish/guestfish-actions.pod:5013
17127 #: ../src/guestfs-actions.pod:7698 ../src/guestfs-actions.pod:7722
17128 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17132 #: ../fish/guestfish-actions.pod:5005
17133 msgid "See also L</download>."
17134 msgstr "Див. також L</download>."
17137 #: ../fish/guestfish-actions.pod:5009
17138 msgid "upload-offset"
17139 msgstr "upload-offset"
17142 #: ../fish/guestfish-actions.pod:5011
17145 " upload-offset (filename|-) remotefilename offset\n"
17148 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
17152 #: ../fish/guestfish-actions.pod:5016 ../src/guestfs-actions.pod:7725
17154 "C<remotefilename> is overwritten starting at the byte C<offset> specified. "
17155 "The intention is to overwrite parts of existing files or devices, although "
17156 "if a non-existant file is specified then it is created with a \"hole\" "
17157 "before C<offset>. The size of the data written is implicit in the size of "
17158 "the source C<filename>."
17162 #: ../fish/guestfish-actions.pod:5023
17164 "Note that there is no limit on the amount of data that can be uploaded with "
17165 "this call, unlike with L</pwrite>, and this call always writes the full "
17166 "amount unless an error occurs."
17170 #: ../fish/guestfish-actions.pod:5028
17171 msgid "See also L</upload>, L</pwrite>."
17172 msgstr "Див. також L</upload>, L</pwrite>."
17175 #: ../fish/guestfish-actions.pod:5032
17180 #: ../fish/guestfish-actions.pod:5034
17183 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
17188 #: ../fish/guestfish-actions.pod:5036 ../src/guestfs-actions.pod:7758
17189 msgid "This command sets the timestamps of a file with nanosecond precision."
17193 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7761
17195 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17200 #: ../fish/guestfish-actions.pod:5042 ../src/guestfs-actions.pod:7764
17202 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17203 "nanoseconds from the epoch."
17207 #: ../fish/guestfish-actions.pod:5045 ../src/guestfs-actions.pod:7767
17209 "If the C<*nsecs> field contains the special value C<-1> then the "
17210 "corresponding timestamp is set to the current time. (The C<*secs> field is "
17211 "ignored in this case)."
17215 #: ../fish/guestfish-actions.pod:5049 ../src/guestfs-actions.pod:7771
17217 "If the C<*nsecs> field contains the special value C<-2> then the "
17218 "corresponding timestamp is left unchanged. (The C<*secs> field is ignored "
17223 #: ../fish/guestfish-actions.pod:5053
17228 #: ../fish/guestfish-actions.pod:5055
17238 #: ../fish/guestfish-actions.pod:5057 ../src/guestfs-actions.pod:7784
17240 "Return the libguestfs version number that the program is linked against."
17244 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7787
17246 "Note that because of dynamic linking this is not necessarily the version of "
17247 "libguestfs that you compiled against. You can compile the program, and then "
17248 "at runtime dynamically link against a completely different C<libguestfs.so> "
17253 #: ../fish/guestfish-actions.pod:5065 ../src/guestfs-actions.pod:7792
17255 "This call was added in version C<1.0.58>. In previous versions of "
17256 "libguestfs there was no way to get the version number. From C code you can "
17257 "use dynamic linker functions to find out if this symbol exists (if it "
17258 "doesn't, then it's an earlier version)."
17262 #: ../fish/guestfish-actions.pod:5071 ../src/guestfs-actions.pod:7798
17264 "The call returns a structure with four elements. The first three (C<major>, "
17265 "C<minor> and C<release>) are numbers and correspond to the usual version "
17266 "triplet. The fourth element (C<extra>) is a string and is normally empty, "
17267 "but may be used for distro-specific information."
17271 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7804
17273 "To construct the original version string: C<$major.$minor.$release$extra>"
17277 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7807
17278 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17279 msgstr "Див також: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17282 #: ../fish/guestfish-actions.pod:5082
17284 "I<Note:> Don't use this call to test for availability of features. In "
17285 "enterprise distributions we backport features from later versions into "
17286 "earlier versions, making this an unreliable way to test for features. Use "
17287 "L</available> instead."
17291 #: ../fish/guestfish-actions.pod:5088
17296 #: ../fish/guestfish-actions.pod:5090
17299 " vfs-label device\n"
17302 " vfs-label пристрій\n"
17306 #: ../fish/guestfish-actions.pod:5092 ../src/guestfs-actions.pod:7827
17307 msgid "This returns the filesystem label of the filesystem on C<device>."
17311 #: ../fish/guestfish-actions.pod:5095 ../src/guestfs-actions.pod:7830
17312 msgid "If the filesystem is unlabeled, this returns the empty string."
17316 #: ../fish/guestfish-actions.pod:5097
17317 msgid "To find a filesystem from the label, use L</findfs-label>."
17321 #: ../fish/guestfish-actions.pod:5099
17326 #: ../fish/guestfish-actions.pod:5101
17329 " vfs-type device\n"
17332 " vfs-type пристрій\n"
17336 #: ../fish/guestfish-actions.pod:5103 ../src/guestfs-actions.pod:7845
17338 "This command gets the filesystem type corresponding to the filesystem on "
17343 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7848
17345 "For most filesystems, the result is the name of the Linux VFS module which "
17346 "would be used to mount this filesystem if you mounted it without specifying "
17347 "the filesystem type. For example a string such as C<ext3> or C<ntfs>."
17351 #: ../fish/guestfish-actions.pod:5111
17356 #: ../fish/guestfish-actions.pod:5113
17359 " vfs-uuid device\n"
17362 " vfs-uuid пристрій\n"
17366 #: ../fish/guestfish-actions.pod:5115 ../src/guestfs-actions.pod:7864
17367 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17371 #: ../fish/guestfish-actions.pod:5118 ../src/guestfs-actions.pod:7867
17372 msgid "If the filesystem does not have a UUID, this returns the empty string."
17376 #: ../fish/guestfish-actions.pod:5120
17377 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17381 #: ../fish/guestfish-actions.pod:5122
17382 msgid "vg-activate"
17383 msgstr "vg-activate"
17386 #: ../fish/guestfish-actions.pod:5124
17389 " vg-activate true|false 'volgroups ...'\n"
17394 #: ../fish/guestfish-actions.pod:5126 ../src/guestfs-actions.pod:7883
17396 "This command activates or (if C<activate> is false) deactivates all logical "
17397 "volumes in the listed volume groups C<volgroups>."
17401 #: ../fish/guestfish-actions.pod:5129 ../src/guestfs-actions.pod:7886
17402 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17406 #: ../fish/guestfish-actions.pod:5131 ../src/guestfs-actions.pod:7888
17408 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17409 "activated or deactivated."
17413 #: ../fish/guestfish-actions.pod:5134
17414 msgid "vg-activate-all"
17415 msgstr "vg-activate-all"
17418 #: ../fish/guestfish-actions.pod:5136
17421 " vg-activate-all true|false\n"
17424 " vg-activate-all true|false\n"
17428 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7901
17430 "This command activates or (if C<activate> is false) deactivates all logical "
17431 "volumes in all volume groups."
17435 #: ../fish/guestfish-actions.pod:5141 ../src/guestfs-actions.pod:7904
17436 msgid "This command is the same as running C<vgchange -a y|n>"
17440 #: ../fish/guestfish-actions.pod:5143
17445 #: ../fish/guestfish-actions.pod:5145
17448 " vgcreate volgroup 'physvols ...'\n"
17453 #: ../fish/guestfish-actions.pod:5147 ../src/guestfs-actions.pod:7917
17455 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17456 "of physical volumes C<physvols>."
17460 #: ../fish/guestfish-actions.pod:5150
17465 #: ../fish/guestfish-actions.pod:5152
17468 " vglvuuids vgname\n"
17473 #: ../fish/guestfish-actions.pod:5154 ../src/guestfs-actions.pod:7930
17475 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17476 "volumes created in this volume group."
17480 #: ../fish/guestfish-actions.pod:5157
17482 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17483 "logical volumes and volume groups."
17487 #: ../fish/guestfish-actions.pod:5160
17488 msgid "See also L</vgpvuuids>."
17489 msgstr "Див. також L</vgpvuuids>."
17492 #: ../fish/guestfish-actions.pod:5162
17497 #: ../fish/guestfish-actions.pod:5164
17500 " vgpvuuids vgname\n"
17505 #: ../fish/guestfish-actions.pod:5166 ../src/guestfs-actions.pod:7950
17507 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17508 "volumes that this volume group resides on."
17512 #: ../fish/guestfish-actions.pod:5169
17514 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17515 "physical volumes and volume groups."
17519 #: ../fish/guestfish-actions.pod:5172
17520 msgid "See also L</vglvuuids>."
17521 msgstr "Див. також L</vglvuuids>."
17524 #: ../fish/guestfish-actions.pod:5174
17529 #: ../fish/guestfish-actions.pod:5176
17532 " vgremove vgname\n"
17537 #: ../fish/guestfish-actions.pod:5178 ../src/guestfs-actions.pod:7970
17538 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17542 #: ../fish/guestfish-actions.pod:5180 ../src/guestfs-actions.pod:7972
17544 "This also forcibly removes all logical volumes in the volume group (if any)."
17548 #: ../fish/guestfish-actions.pod:5183
17553 #: ../fish/guestfish-actions.pod:5185
17556 " vgrename volgroup newvolgroup\n"
17561 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7986
17562 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17566 #: ../fish/guestfish-actions.pod:5189
17571 #: ../fish/guestfish-actions.pod:5191
17581 #: ../fish/guestfish-actions.pod:5193 ../src/guestfs-actions.pod:7997
17583 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
17588 #: ../fish/guestfish-actions.pod:5196 ../src/guestfs-actions.pod:8000
17590 "This returns a list of just the volume group names that were detected (eg. "
17595 #: ../fish/guestfish-actions.pod:5199
17596 msgid "See also L</vgs-full>."
17597 msgstr "Див. також L</vgs-full>."
17600 #: ../fish/guestfish-actions.pod:5201
17605 #: ../fish/guestfish-actions.pod:5203
17615 #: ../fish/guestfish-actions.pod:5205 ../src/guestfs-actions.pod:8016
17617 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
17618 "> command. The \"full\" version includes all fields."
17622 #: ../fish/guestfish-actions.pod:5208
17627 #: ../fish/guestfish-actions.pod:5210
17637 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:8030
17639 "This rescans all block devices and rebuilds the list of LVM physical "
17640 "volumes, volume groups and logical volumes."
17644 #: ../fish/guestfish-actions.pod:5215
17649 #: ../fish/guestfish-actions.pod:5217
17657 #: ../fish/guestfish-actions.pod:5219 ../src/guestfs-actions.pod:8043
17658 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17662 #: ../fish/guestfish-actions.pod:5221
17667 #: ../fish/guestfish-actions.pod:5223
17677 #: ../fish/guestfish-actions.pod:5225 ../src/guestfs-actions.pod:8083
17679 "This command counts the characters in a file, using the C<wc -c> external "
17684 #: ../fish/guestfish-actions.pod:5228
17689 #: ../fish/guestfish-actions.pod:5230
17699 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:8096
17701 "This command counts the lines in a file, using the C<wc -l> external command."
17705 #: ../fish/guestfish-actions.pod:5235
17710 #: ../fish/guestfish-actions.pod:5237
17720 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:8109
17722 "This command counts the words in a file, using the C<wc -w> external command."
17726 #: ../fish/guestfish-actions.pod:5242
17731 #: ../fish/guestfish-actions.pod:5244
17734 " write path content\n"
17737 " write шлях дані\n"
17741 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8124
17743 "This call creates a file called C<path>. The content of the file is the "
17744 "string C<content> (which can contain any 8 bit data)."
17748 #: ../fish/guestfish-actions.pod:5249
17749 msgid "See also L</write-append>."
17750 msgstr "Див. також L</write-append>."
17753 #: ../fish/guestfish-actions.pod:5254
17754 msgid "write-append"
17758 #: ../fish/guestfish-actions.pod:5256
17761 " write-append path content\n"
17766 #: ../fish/guestfish-actions.pod:5258 ../src/guestfs-actions.pod:8144
17768 "This call appends C<content> to the end of file C<path>. If C<path> does "
17769 "not exist, then a new file is created."
17773 #: ../fish/guestfish-actions.pod:5261
17774 msgid "See also L</write>."
17775 msgstr "Див. також L</write>."
17778 #: ../fish/guestfish-actions.pod:5266
17780 msgstr "write-file"
17783 #: ../fish/guestfish-actions.pod:5268
17786 " write-file path content size\n"
17791 #: ../fish/guestfish-actions.pod:5270 ../src/guestfs-actions.pod:8171
17793 "This call creates a file called C<path>. The contents of the file is the "
17794 "string C<content> (which can contain any 8 bit data), with length C<size>."
17798 #: ../fish/guestfish-actions.pod:5274 ../src/guestfs-actions.pod:8175
17800 "As a special case, if C<size> is C<0> then the length is calculated using "
17801 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17805 #: ../fish/guestfish-actions.pod:5278 ../src/guestfs-actions.pod:8179
17807 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17808 "I<not> work, even if the length is specified."
17812 #: ../fish/guestfish-actions.pod:5284
17814 "I<This function is deprecated.> In new code, use the L</write> call instead."
17818 #: ../fish/guestfish-actions.pod:5291
17823 #: ../fish/guestfish-actions.pod:5293
17826 " zegrep regex path\n"
17829 " zegrep формальний_вираз шлях\n"
17833 #: ../fish/guestfish-actions.pod:5295 ../src/guestfs-actions.pod:8196
17835 "This calls the external C<zegrep> program and returns the matching lines."
17839 #: ../fish/guestfish-actions.pod:5301
17844 #: ../fish/guestfish-actions.pod:5303
17847 " zegrepi regex path\n"
17852 #: ../fish/guestfish-actions.pod:5305 ../src/guestfs-actions.pod:8215
17854 "This calls the external C<zegrep -i> program and returns the matching lines."
17858 #: ../fish/guestfish-actions.pod:5311
17863 #: ../fish/guestfish-actions.pod:5313
17873 #: ../fish/guestfish-actions.pod:5315 ../src/guestfs-actions.pod:8233
17874 msgid "This command writes zeroes over the first few blocks of C<device>."
17878 #: ../fish/guestfish-actions.pod:5317 ../src/guestfs-actions.pod:8235
17880 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17881 "securely wipe the device). It should be sufficient to remove any partition "
17882 "tables, filesystem superblocks and so on."
17886 #: ../fish/guestfish-actions.pod:5321 ../fish/guestfish-actions.pod:5336
17887 #: ../src/guestfs-actions.pod:8239 ../src/guestfs-actions.pod:8265
17889 "If blocks are already zero, then this command avoids writing zeroes. This "
17890 "prevents the underlying device from becoming non-sparse or growing "
17895 #: ../fish/guestfish-actions.pod:5325
17896 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17900 #: ../fish/guestfish-actions.pod:5328
17901 msgid "zero-device"
17902 msgstr "zero-device"
17905 #: ../fish/guestfish-actions.pod:5330
17908 " zero-device device\n"
17911 " zero-device пристрій\n"
17915 #: ../fish/guestfish-actions.pod:5332
17917 "This command writes zeroes over the entire C<device>. Compare with L</zero> "
17918 "which just zeroes the first few blocks of a device."
17922 #: ../fish/guestfish-actions.pod:5340
17927 #: ../fish/guestfish-actions.pod:5342
17930 " zerofree device\n"
17933 " zerofree пристрій\n"
17937 #: ../fish/guestfish-actions.pod:5344 ../src/guestfs-actions.pod:8284
17939 "This runs the I<zerofree> program on C<device>. This program claims to zero "
17940 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17941 "possible to compress the filesystem more effectively."
17945 #: ../fish/guestfish-actions.pod:5349 ../src/guestfs-actions.pod:8289
17946 msgid "You should B<not> run this program if the filesystem is mounted."
17950 #: ../fish/guestfish-actions.pod:5352 ../src/guestfs-actions.pod:8292
17952 "It is possible that using this program can damage the filesystem or data on "
17957 #: ../fish/guestfish-actions.pod:5355
17962 #: ../fish/guestfish-actions.pod:5357
17965 " zfgrep pattern path\n"
17968 " zfgrep шаблон шлях\n"
17972 #: ../fish/guestfish-actions.pod:5359 ../src/guestfs-actions.pod:8306
17974 "This calls the external C<zfgrep> program and returns the matching lines."
17978 #: ../fish/guestfish-actions.pod:5365
17983 #: ../fish/guestfish-actions.pod:5367
17986 " zfgrepi pattern path\n"
17989 " zfgrepi шаблон шлях\n"
17993 #: ../fish/guestfish-actions.pod:5369 ../src/guestfs-actions.pod:8325
17995 "This calls the external C<zfgrep -i> program and returns the matching lines."
17999 #: ../fish/guestfish-actions.pod:5375
18004 #: ../fish/guestfish-actions.pod:5377
18007 " zfile meth path\n"
18010 " zfile метод шлях\n"
18014 #: ../fish/guestfish-actions.pod:5379 ../src/guestfs-actions.pod:8351
18016 "This command runs C<file> after first decompressing C<path> using C<method>."
18020 #: ../fish/guestfish-actions.pod:5382 ../src/guestfs-actions.pod:8354
18021 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
18025 #: ../fish/guestfish-actions.pod:5384
18027 "Since 1.0.63, use L</file> instead which can now process compressed files."
18031 #: ../fish/guestfish-actions.pod:5387
18033 "I<This function is deprecated.> In new code, use the L</file> call instead."
18037 #: ../fish/guestfish-actions.pod:5394
18042 #: ../fish/guestfish-actions.pod:5396
18045 " zgrep regex path\n"
18048 " zgrep формальний_вираз шлях\n"
18052 #: ../fish/guestfish-actions.pod:5398 ../src/guestfs-actions.pod:8371
18054 "This calls the external C<zgrep> program and returns the matching lines."
18058 #: ../fish/guestfish-actions.pod:5404
18063 #: ../fish/guestfish-actions.pod:5406
18066 " zgrepi regex path\n"
18069 " zgrepi формальний_вираз шлях\n"
18073 #: ../fish/guestfish-actions.pod:5408 ../src/guestfs-actions.pod:8390
18075 "This calls the external C<zgrep -i> program and returns the matching lines."
18079 #: ../fish/guestfish-commands.pod:1
18084 #: ../fish/guestfish-commands.pod:3
18089 #: ../fish/guestfish-commands.pod:5
18092 " alloc filename size\n"
18097 #: ../fish/guestfish-commands.pod:7
18099 "This creates an empty (zeroed) file of the given size, and then adds so it "
18100 "can be further examined."
18104 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
18105 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
18109 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
18110 msgid "Size can be specified using standard suffixes, eg. C<1M>."
18114 #: ../fish/guestfish-commands.pod:14
18116 "To create a sparse file, use L</sparse> instead. To create a prepared disk "
18117 "image, see L</PREPARED DISK IMAGES>."
18121 #: ../fish/guestfish-commands.pod:17
18126 #: ../fish/guestfish-commands.pod:19
18129 " copy-in local [local ...] /remotedir\n"
18134 #: ../fish/guestfish-commands.pod:21
18136 "C<copy-in> copies local files or directories recursively into the disk "
18137 "image, placing them in the directory called C</remotedir> (which must "
18138 "exist). This guestfish meta-command turns into a sequence of L</tar-in> and "
18139 "other commands as necessary."
18143 #: ../fish/guestfish-commands.pod:26
18145 "Multiple local files and directories can be specified, but the last "
18146 "parameter must always be a remote directory. Wildcards cannot be used."
18150 #: ../fish/guestfish-commands.pod:30
18155 #: ../fish/guestfish-commands.pod:32
18158 " copy-out remote [remote ...] localdir\n"
18163 #: ../fish/guestfish-commands.pod:34
18165 "C<copy-out> copies remote files or directories recursively out of the disk "
18166 "image, placing them on the host disk in a local directory called C<localdir> "
18167 "(which must exist). This guestfish meta-command turns into a sequence of L</"
18168 "download>, L</tar-out> and other commands as necessary."
18172 #: ../fish/guestfish-commands.pod:40
18174 "Multiple remote files and directories can be specified, but the last "
18175 "parameter must always be a local directory. To download to the current "
18176 "directory, use C<.> as in:"
18180 #: ../fish/guestfish-commands.pod:44
18183 " copy-out /home .\n"
18186 " copy-out /home .\n"
18190 #: ../fish/guestfish-commands.pod:46
18192 "Wildcards cannot be used in the ordinary command, but you can use them with "
18193 "the help of L</glob> like this:"
18197 #: ../fish/guestfish-commands.pod:49
18200 " glob copy-out /home/* .\n"
18203 " glob copy-out /home/* .\n"
18207 #: ../fish/guestfish-commands.pod:51
18212 #: ../fish/guestfish-commands.pod:53
18215 " display filename\n"
18220 #: ../fish/guestfish-commands.pod:55
18222 "Use C<display> (a graphical display program) to display an image file. It "
18223 "downloads the file, and runs C<display> on it."
18227 #: ../fish/guestfish-commands.pod:58
18229 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18230 "environment variable. For example to use the GNOME display program:"
18234 #: ../fish/guestfish-commands.pod:61
18237 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18242 #: ../fish/guestfish-commands.pod:63
18243 msgid "See also L<display(1)>."
18244 msgstr "Див. також L<display(1)>."
18247 #: ../fish/guestfish-commands.pod:65
18252 #: ../fish/guestfish-commands.pod:67
18255 " echo [params ...]\n"
18258 " echo [параметри...]\n"
18262 #: ../fish/guestfish-commands.pod:69
18263 msgid "This echos the parameters to the terminal."
18267 #: ../fish/guestfish-commands.pod:71
18272 #: ../fish/guestfish-commands.pod:73
18277 #: ../fish/guestfish-commands.pod:75
18282 #: ../fish/guestfish-commands.pod:77
18288 " edit назва_файла\n"
18292 #: ../fish/guestfish-commands.pod:79
18294 "This is used to edit a file. It downloads the file, edits it locally using "
18295 "your editor, then uploads the result."
18299 #: ../fish/guestfish-commands.pod:82
18301 "The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
18302 "or C<emacs> you will get those corresponding editors."
18306 #: ../fish/guestfish-commands.pod:86
18311 #: ../fish/guestfish-commands.pod:88
18314 " glob command args...\n"
18317 " glob команда параметри...\n"
18321 #: ../fish/guestfish-commands.pod:90
18323 "Expand wildcards in any paths in the args list, and run C<command> "
18324 "repeatedly on each matching path."
18328 #: ../fish/guestfish-commands.pod:93
18329 msgid "See L</WILDCARDS AND GLOBBING>."
18330 msgstr "Див. L</WILDCARDS AND GLOBBING>."
18333 #: ../fish/guestfish-commands.pod:95
18338 #: ../fish/guestfish-commands.pod:97
18341 " hexedit <filename|device>\n"
18342 " hexedit <filename|device> <max>\n"
18343 " hexedit <filename|device> <start> <max>\n"
18348 #: ../fish/guestfish-commands.pod:101
18350 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18355 #: ../fish/guestfish-commands.pod:104
18357 "This command works by downloading potentially the whole file or device, "
18358 "editing it locally, then uploading it. If the file or device is large, you "
18359 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18360 "C<max> parameters. C<start> and C<max> are specified in bytes, with the "
18361 "usual modifiers allowed such as C<1M> (1 megabyte)."
18365 #: ../fish/guestfish-commands.pod:111
18366 msgid "For example to edit the first few sectors of a disk you might do:"
18370 #: ../fish/guestfish-commands.pod:114
18373 " hexedit /dev/sda 1M\n"
18376 " hexedit /dev/sda 1M\n"
18380 #: ../fish/guestfish-commands.pod:116
18382 "which would allow you to edit anywhere within the first megabyte of the disk."
18386 #: ../fish/guestfish-commands.pod:119
18387 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18391 #: ../fish/guestfish-commands.pod:121
18394 " hexedit /dev/sda1 0x400 0x400\n"
18397 " hexedit /dev/sda1 0x400 0x400\n"
18401 #: ../fish/guestfish-commands.pod:123
18402 msgid "(assuming the superblock is in the standard location)."
18406 #: ../fish/guestfish-commands.pod:125
18408 "This command requires the external L<hexedit(1)> program. You can specify "
18409 "another program to use by setting the C<HEXEDITOR> environment variable."
18413 #: ../fish/guestfish-commands.pod:129
18414 msgid "See also L</hexdump>."
18415 msgstr "Див. також L</hexdump>."
18418 #: ../fish/guestfish-commands.pod:131
18423 #: ../fish/guestfish-commands.pod:133
18431 #: ../fish/guestfish-commands.pod:135
18433 "Change the local directory, ie. the current directory of guestfish itself."
18437 #: ../fish/guestfish-commands.pod:138
18438 msgid "Note that C<!cd> won't do what you might expect."
18442 #: ../fish/guestfish-commands.pod:140
18447 #: ../fish/guestfish-commands.pod:142
18452 #: ../fish/guestfish-commands.pod:144
18462 #: ../fish/guestfish-commands.pod:146
18463 msgid "Opens the manual page for guestfish."
18467 #: ../fish/guestfish-commands.pod:148
18472 #: ../fish/guestfish-commands.pod:150
18477 #: ../fish/guestfish-commands.pod:152
18485 #: ../fish/guestfish-commands.pod:154
18493 #: ../fish/guestfish-commands.pod:156
18494 msgid "This is used to view a file."
18498 #: ../fish/guestfish-commands.pod:158
18500 "The default viewer is C<$PAGER>. However if you use the alternate command "
18501 "C<less> you will get the C<less> command specifically."
18505 #: ../fish/guestfish-commands.pod:161
18510 #: ../fish/guestfish-commands.pod:163
18518 #: ../fish/guestfish-commands.pod:165
18520 "Close and reopen the libguestfs handle. It is not necessary to use this "
18521 "normally, because the handle is closed properly when guestfish exits. "
18522 "However this is occasionally useful for testing."
18526 #: ../fish/guestfish-commands.pod:169
18531 #: ../fish/guestfish-commands.pod:171
18534 " setenv VAR value\n"
18539 #: ../fish/guestfish-commands.pod:173
18540 msgid "Set the environment variable C<VAR> to the string C<value>."
18544 #: ../fish/guestfish-commands.pod:175
18546 "To print the value of an environment variable use a shell command such as:"
18550 #: ../fish/guestfish-commands.pod:178
18558 #: ../fish/guestfish-commands.pod:180
18563 #: ../fish/guestfish-commands.pod:182
18566 " sparse filename size\n"
18571 #: ../fish/guestfish-commands.pod:184
18573 "This creates an empty sparse file of the given size, and then adds so it can "
18574 "be further examined."
18578 #: ../fish/guestfish-commands.pod:187
18580 "In all respects it works the same as the L</alloc> command, except that the "
18581 "image file is allocated sparsely, which means that disk blocks are not "
18582 "assigned to the file until they are needed. Sparse disk files only use "
18583 "space when written to, but they are slower and there is a danger you could "
18584 "run out of real disk space during a write operation."
18588 #: ../fish/guestfish-commands.pod:197
18593 #: ../fish/guestfish-commands.pod:199
18603 #: ../fish/guestfish-commands.pod:201
18605 "This command returns a list of the optional groups known to the daemon, and "
18606 "indicates which ones are supported by this build of the libguestfs appliance."
18610 #: ../fish/guestfish-commands.pod:205
18611 msgid "See also L<guestfs(3)/AVAILABILITY>."
18612 msgstr "Див. також L<guestfs(3)/AVAILABILITY>."
18615 #: ../fish/guestfish-commands.pod:207
18620 #: ../fish/guestfish-commands.pod:209
18623 " time command args...\n"
18628 #: ../fish/guestfish-commands.pod:211
18630 "Run the command as usual, but print the elapsed time afterwards. This can "
18631 "be useful for benchmarking operations."
18635 #: ../fish/guestfish-commands.pod:214
18640 #: ../fish/guestfish-commands.pod:216
18648 #: ../fish/guestfish-commands.pod:218
18649 msgid "Remove C<VAR> from the environment."
18653 #: ../fish/guestfish.pod:5
18654 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18658 #: ../fish/guestfish.pod:9
18661 " guestfish [--options] [commands]\n"
18666 #: ../fish/guestfish.pod:11
18674 #: ../fish/guestfish.pod:13
18677 " guestfish [--ro|--rw] -a disk.img\n"
18682 #: ../fish/guestfish.pod:15
18685 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18690 #: ../fish/guestfish.pod:17
18693 " guestfish -d libvirt-domain\n"
18698 #: ../fish/guestfish.pod:19
18701 " guestfish [--ro|--rw] -a disk.img -i\n"
18706 #: ../fish/guestfish.pod:21
18709 " guestfish -d libvirt-domain -i\n"
18714 #: ../fish/guestfish.pod:25
18716 "Using guestfish in read/write mode on live virtual machines can be "
18717 "dangerous, potentially causing disk corruption. Use the I<--ro> (read-only) "
18718 "option to use guestfish safely if the disk image or virtual machine might be "
18723 #: ../fish/guestfish.pod:32
18725 "Guestfish is a shell and command-line tool for examining and modifying "
18726 "virtual machine filesystems. It uses libguestfs and exposes all of the "
18727 "functionality of the guestfs API, see L<guestfs(3)>."
18731 #: ../fish/guestfish.pod:36
18733 "Guestfish gives you structured access to the libguestfs API, from shell "
18734 "scripts or the command line or interactively. If you want to rescue a "
18735 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18740 #: ../fish/guestfish.pod:43
18741 msgid "As an interactive shell"
18745 #: ../fish/guestfish.pod:45
18753 #: ../fish/guestfish.pod:47
18756 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18757 " editing virtual machine filesystems.\n"
18762 #: ../fish/guestfish.pod:50
18765 " Type: 'help' for a list of commands\n"
18766 " 'man' to read the manual\n"
18767 " 'quit' to quit the shell\n"
18772 #: ../fish/guestfish.pod:54
18775 " ><fs> add-ro disk.img\n"
18777 " ><fs> list-filesystems\n"
18778 " /dev/sda1: ext4\n"
18779 " /dev/vg_guest/lv_root: ext4\n"
18780 " /dev/vg_guest/lv_swap: swap\n"
18781 " ><fs> mount /dev/vg_guest/lv_root /\n"
18782 " ><fs> cat /etc/fstab\n"
18784 " # Created by anaconda\n"
18791 #: ../fish/guestfish.pod:67
18792 msgid "From shell scripts"
18796 #: ../fish/guestfish.pod:69
18797 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18801 #: ../fish/guestfish.pod:71
18804 " guestfish <<_EOF_\n"
18807 " mount /dev/vg_guest/lv_root /\n"
18808 " write /etc/motd \"Welcome, new users\"\n"
18814 #: ../fish/guestfish.pod:78
18815 msgid "List the LVM logical volumes in a disk image:"
18819 #: ../fish/guestfish.pod:80
18822 " guestfish -a disk.img --ro <<_EOF_\n"
18830 #: ../fish/guestfish.pod:85
18831 msgid "List all the filesystems in a disk image:"
18835 #: ../fish/guestfish.pod:87
18838 " guestfish -a disk.img --ro <<_EOF_\n"
18840 " list-filesystems\n"
18846 #: ../fish/guestfish.pod:92
18847 msgid "On one command line"
18851 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18852 msgid "Update C</etc/resolv.conf> in a guest:"
18856 #: ../fish/guestfish.pod:96
18860 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18861 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18866 #: ../fish/guestfish.pod:100
18867 msgid "Edit C</boot/grub/grub.conf> interactively:"
18871 #: ../fish/guestfish.pod:102
18874 " guestfish --rw --add disk.img \\\n"
18875 " --mount /dev/vg_guest/lv_root \\\n"
18876 " --mount /dev/sda1:/boot \\\n"
18877 " edit /boot/grub/grub.conf\n"
18882 #: ../fish/guestfish.pod:107
18883 msgid "Mount disks automatically"
18887 #: ../fish/guestfish.pod:109
18889 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
18893 #: ../fish/guestfish.pod:112
18896 " guestfish --ro -a disk.img -i cat /etc/group\n"
18901 #: ../fish/guestfish.pod:114
18904 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18909 #: ../fish/guestfish.pod:116
18910 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18914 #: ../fish/guestfish.pod:118
18917 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18922 #: ../fish/guestfish.pod:120
18923 msgid "As a script interpreter"
18927 #: ../fish/guestfish.pod:122
18928 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18932 #: ../fish/guestfish.pod:124
18935 " #!/usr/bin/guestfish -f\n"
18936 " sparse test1.img 100M\n"
18938 " part-disk /dev/sda mbr\n"
18939 " mkfs ext2 /dev/sda1\n"
18944 #: ../fish/guestfish.pod:130
18945 msgid "Start with a prepared disk"
18949 #: ../fish/guestfish.pod:132
18951 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18952 "single ext2-formatted partition:"
18956 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
18959 " guestfish -N fs\n"
18964 #: ../fish/guestfish.pod:137
18965 msgid "To list what is available do:"
18969 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18972 " guestfish -N help | less\n"
18977 #: ../fish/guestfish.pod:141
18978 msgid "Remote control"
18979 msgstr "Дистанційне керування"
18982 #: ../fish/guestfish.pod:143
18985 " eval \"`guestfish --listen`\"\n"
18986 " guestfish --remote add-ro disk.img\n"
18987 " guestfish --remote run\n"
18988 " guestfish --remote lvs\n"
18991 " eval \"`guestfish --listen`\"\n"
18992 " guestfish --remote add-ro disk.img\n"
18993 " guestfish --remote run\n"
18994 " guestfish --remote lvs\n"
18998 #: ../fish/guestfish.pod:154
18999 msgid "Displays general help on options."
19003 #: ../fish/guestfish.pod:158
19004 msgid "B<--cmd-help>"
19005 msgstr "B<--cmd-help>"
19008 #: ../fish/guestfish.pod:160
19009 msgid "Lists all available guestfish commands."
19013 #: ../fish/guestfish.pod:162
19015 msgstr "B<-h команда>"
19018 #: ../fish/guestfish.pod:164
19019 msgid "B<--cmd-help cmd>"
19020 msgstr "B<--cmd-help команда>"
19023 #: ../fish/guestfish.pod:166
19024 msgid "Displays detailed help on a single command C<cmd>."
19028 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
19029 msgid "B<-a image>"
19030 msgstr "B<-a образ>"
19033 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
19034 msgid "B<--add image>"
19035 msgstr "B<--add образ>"
19038 #: ../fish/guestfish.pod:172
19039 msgid "Add a block device or virtual machine image to the shell."
19043 #: ../fish/guestfish.pod:177
19045 "Using this flag is mostly equivalent to using the C<add> command, with "
19046 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
19047 "the I<--format=...> flag was given."
19051 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
19053 "When used in conjunction with the I<-d> option, this specifies the libvirt "
19054 "URI to use. The default is to use the default libvirt connection."
19058 #: ../fish/guestfish.pod:189
19063 #: ../fish/guestfish.pod:191
19065 "If using the I<--listen> option and a csh-like shell, use this option. See "
19066 "section L</REMOTE CONTROL AND CSH> below."
19070 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
19071 msgid "B<-d libvirt-domain>"
19072 msgstr "B<-d домен-libvirt>"
19075 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
19076 msgid "B<--domain libvirt-domain>"
19077 msgstr "B<--domain домен-libvirt>"
19080 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
19082 "Add disks from the named libvirt domain. If the I<--ro> option is also "
19083 "used, then any libvirt domain can be used. However in write mode, only "
19084 "libvirt domains which are shut down can be named here."
19088 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
19089 msgid "Domain UUIDs can be used instead of names."
19093 #: ../fish/guestfish.pod:204
19095 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19096 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19097 "if the I<--format:...> flag was given."
19101 #: ../fish/guestfish.pod:208
19106 #: ../fish/guestfish.pod:210
19107 msgid "B<--no-dest-paths>"
19108 msgstr "B<--no-dest-paths>"
19111 #: ../fish/guestfish.pod:212
19113 "Don't tab-complete paths on the guest filesystem. It is useful to be able "
19114 "to hit the tab key to complete paths on the guest filesystem, but this "
19115 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19116 "allow this feature to be disabled."
19120 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
19122 "When prompting for keys and passphrases, guestfish normally turns echoing "
19123 "off so you cannot see what you are typing. If you are not worried about "
19124 "Tempest attacks and there is no one else in the room you can specify this "
19125 "flag to see what you are typing."
19129 #: ../fish/guestfish.pod:224
19131 msgstr "B<-f файл>"
19134 #: ../fish/guestfish.pod:226
19135 msgid "B<--file file>"
19136 msgstr "B<--file файл>"
19139 #: ../fish/guestfish.pod:228
19140 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
19144 #: ../fish/guestfish.pod:231
19147 " #!/usr/bin/guestfish -f\n"
19150 " #!/usr/bin/guestfish -f\n"
19154 #: ../fish/guestfish.pod:244
19157 " guestfish --format=raw -a disk.img\n"
19160 " guestfish --format=raw -a disk.img\n"
19164 #: ../fish/guestfish.pod:248
19167 " guestfish --format=raw -a disk.img --format -a another.img\n"
19170 " guestfish --format=raw -a disk.img --format -a another.img\n"
19174 #: ../fish/guestfish.pod:253
19176 "If you have untrusted raw-format guest disk images, you should use this "
19177 "option to specify the disk format. This avoids a possible security problem "
19178 "with malicious guests (CVE-2010-3851). See also L</add-drive-opts>."
19182 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
19183 msgid "B<--inspector>"
19184 msgstr "B<--inspector>"
19187 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
19189 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19190 "system and mount filesystems as they would be mounted on the real virtual "
19195 #: ../fish/guestfish.pod:266
19196 msgid "Typical usage is either:"
19200 #: ../fish/guestfish.pod:268
19203 " guestfish -d myguest -i\n"
19206 " guestfish -d myguest -i\n"
19210 #: ../fish/guestfish.pod:270
19211 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19215 #: ../fish/guestfish.pod:272
19218 " guestfish --ro -d myguest -i\n"
19221 " guestfish --ro -d myguest -i\n"
19225 #: ../fish/guestfish.pod:274
19226 msgid "(for active domains, readonly), or specify the block device directly:"
19230 #: ../fish/guestfish.pod:276
19233 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19236 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19240 #: ../fish/guestfish.pod:278
19242 "Note that the command line syntax changed slightly over older versions of "
19243 "guestfish. You can still use the old syntax:"
19247 #: ../fish/guestfish.pod:281
19250 " guestfish [--ro] -i disk.img\n"
19253 " guestfish [--ro] -i disk.img\n"
19257 #: ../fish/guestfish.pod:283
19260 " guestfish [--ro] -i libvirt-domain\n"
19265 #: ../fish/guestfish.pod:285
19267 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19268 "then using other commands to mount the filesystems that were found."
19272 #: ../fish/guestfish.pod:294
19273 msgid "B<--listen>"
19274 msgstr "B<--listen>"
19277 #: ../fish/guestfish.pod:296
19279 "Fork into the background and listen for remote commands. See section L</"
19280 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19284 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19289 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19291 "Connect to a live virtual machine. (Experimental, see L<guestfs(3)/"
19292 "ATTACHING TO RUNNING DAEMONS>)."
19296 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19297 msgid "B<-m dev[:mountpoint[:options]]>"
19298 msgstr "B<-m пристрій[:точка_монтування[:параметри]]>"
19301 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19302 msgid "B<--mount dev[:mountpoint[:options]]>"
19303 msgstr "B<--mount пристрій[:точка_монтування[:параметри]]>"
19306 #: ../fish/guestfish.pod:308
19307 msgid "Mount the named partition or logical volume on the given mountpoint."
19311 #: ../fish/guestfish.pod:310
19312 msgid "If the mountpoint is omitted, it defaults to C</>."
19316 #: ../fish/guestfish.pod:312
19317 msgid "You have to mount something on C</> before most commands will work."
19321 #: ../fish/guestfish.pod:314
19323 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19328 #: ../fish/guestfish.pod:317
19330 "If you don't know what filesystems a disk image contains, you can either run "
19331 "guestfish without this option, then list the partitions, filesystems and LVs "
19332 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19333 "commands), or you can use the L<virt-filesystems(1)> program."
19337 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19339 "The third (and rarely used) part of the mount parameter is the list of mount "
19340 "options used to mount the underlying filesystem. If this is not given, then "
19341 "the mount options are either the empty string or C<ro> (the latter if the "
19342 "I<--ro> flag is used). By specifying the mount options, you override this "
19343 "default choice. Probably the only time you would use this is to enable ACLs "
19344 "and/or extended attributes if the filesystem can support them:"
19348 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19351 " -m /dev/sda1:/:acl,user_xattr\n"
19356 #: ../fish/guestfish.pod:333
19357 msgid "Using this flag is equivalent to using the C<mount-options> command."
19361 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
19362 #: ../resize/virt-resize.pod:435
19367 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19368 msgid "B<--no-sync>"
19369 msgstr "B<--no-sync>"
19372 #: ../fish/guestfish.pod:339
19374 "Disable autosync. This is enabled by default. See the discussion of "
19375 "autosync in the L<guestfs(3)> manpage."
19379 #: ../fish/guestfish.pod:342
19384 #: ../fish/guestfish.pod:344
19385 msgid "B<--new type>"
19386 msgstr "B<--new тип>"
19389 #: ../fish/guestfish.pod:346
19391 msgstr "B<-N help>"
19394 #: ../fish/guestfish.pod:348
19396 "Prepare a fresh disk image formatted as \"type\". This is an alternative to "
19397 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19398 "preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
19403 #: ../fish/guestfish.pod:353
19404 msgid "B<--progress-bars>"
19405 msgstr "B<--progress-bars>"
19408 #: ../fish/guestfish.pod:355
19409 msgid "Enable progress bars, even when guestfish is used non-interactively."
19413 #: ../fish/guestfish.pod:357
19415 "Progress bars are enabled by default when guestfish is used as an "
19416 "interactive shell."
19420 #: ../fish/guestfish.pod:360
19421 msgid "B<--no-progress-bars>"
19422 msgstr "B<--no-progress-bars>"
19425 #: ../fish/guestfish.pod:362
19426 msgid "Disable progress bars."
19430 #: ../fish/guestfish.pod:364
19431 msgid "B<--remote[=pid]>"
19432 msgstr "B<--remote[=pid]>"
19435 #: ../fish/guestfish.pod:366
19437 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
19438 "CONTROL GUESTFISH OVER A SOCKET> below."
19442 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
19443 #: ../rescue/virt-rescue.pod:161
19448 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
19449 #: ../rescue/virt-rescue.pod:163
19454 #: ../fish/guestfish.pod:373
19456 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19457 "mounts are done read-only."
19461 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
19463 "The option must always be used if the disk image or virtual machine might be "
19464 "running, and is generally recommended in cases where you don't need write "
19465 "access to the disk."
19469 #: ../fish/guestfish.pod:380
19471 "Note that prepared disk images created with I<-N> are not affected by this "
19472 "option. Also commands like C<add> are not affected - you have to specify "
19473 "the C<readonly:true> option explicitly if you need it."
19477 #: ../fish/guestfish.pod:384
19478 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19482 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
19483 #: ../rescue/virt-rescue.pod:173
19484 msgid "B<--selinux>"
19485 msgstr "B<--selinux>"
19488 #: ../fish/guestfish.pod:388
19489 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
19493 #: ../fish/guestfish.pod:394
19495 "Enable very verbose messages. This is particularly useful if you find a bug."
19499 #: ../fish/guestfish.pod:401
19500 msgid "Display the guestfish / libguestfs version number and exit."
19504 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
19505 #: ../rescue/virt-rescue.pod:194
19510 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
19511 #: ../rescue/virt-rescue.pod:196
19516 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19518 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19519 "mounts are done read-write."
19523 #: ../fish/guestfish.pod:410
19524 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19528 #: ../fish/guestfish.pod:414
19529 msgid "Echo each command before executing it."
19533 #: ../fish/guestfish.pod:418
19534 msgid "COMMANDS ON COMMAND LINE"
19538 #: ../fish/guestfish.pod:420
19540 "Any additional (non-option) arguments are treated as commands to execute."
19544 #: ../fish/guestfish.pod:423
19546 "Commands to execute should be separated by a colon (C<:>), where the colon "
19547 "is a separate parameter. Thus:"
19551 #: ../fish/guestfish.pod:426
19554 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19559 #: ../fish/guestfish.pod:428
19561 "If there are no additional arguments, then we enter a shell, either an "
19562 "interactive shell with a prompt (if the input is a terminal) or a non-"
19563 "interactive shell."
19567 #: ../fish/guestfish.pod:432
19569 "In either command line mode or non-interactive shell, the first command that "
19570 "gives an error causes the whole shell to exit. In interactive mode (with a "
19571 "prompt) if a command fails, you can continue to enter commands."
19575 #: ../fish/guestfish.pod:437
19576 msgid "USING launch (OR run)"
19580 #: ../fish/guestfish.pod:439
19582 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19583 "then launch it, then mount any disks you need, and finally issue actions/"
19584 "commands. So the general order of the day is:"
19588 #: ../fish/guestfish.pod:447
19589 msgid "add or -a/--add"
19593 #: ../fish/guestfish.pod:451
19594 msgid "launch (aka run)"
19598 #: ../fish/guestfish.pod:455
19599 msgid "mount or -m/--mount"
19603 #: ../fish/guestfish.pod:459
19604 msgid "any other commands"
19608 #: ../fish/guestfish.pod:463
19610 "C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
19611 "guest before mounting or performing any other commands."
19615 #: ../fish/guestfish.pod:466
19617 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19618 "I<--new> options were given then C<run> is done automatically, simply "
19619 "because guestfish can't perform the action you asked for without doing this."
19623 #: ../fish/guestfish.pod:471
19624 msgid "OPENING DISKS FOR READ AND WRITE"
19628 #: ../fish/guestfish.pod:473
19630 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19631 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19632 "I<-i> and I<-m> open disk images read-only or for writing."
19636 #: ../fish/guestfish.pod:478
19638 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19639 "opening disk images supplied on the command line for write. To open a disk "
19640 "image read-only you have to do I<-a image --ro>."
19644 #: ../fish/guestfish.pod:482
19646 "This matters: If you accidentally open a live VM disk image writable then "
19647 "you will cause irreversible disk corruption."
19651 #: ../fish/guestfish.pod:485
19653 "In a future libguestfs we intend to change the default the other way. Disk "
19654 "images will be opened read-only. You will have to either specify "
19655 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19656 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19657 "access for disk images specified by those other command line options."
19661 #: ../fish/guestfish.pod:492
19663 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19664 "which does nothing (it is already the default). However it is highly "
19665 "recommended that you use this option to indicate that you need write access, "
19666 "and prepare your scripts for the day when this option will be required for "
19671 #: ../fish/guestfish.pod:498
19673 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19674 "other libguestfs program apart from guestfish and guestmount."
19678 #: ../fish/guestfish.pod:501
19683 #: ../fish/guestfish.pod:503
19685 "You can quote ordinary parameters using either single or double quotes. For "
19690 #: ../fish/guestfish.pod:506
19693 " add \"file with a space.img\"\n"
19698 #: ../fish/guestfish.pod:508
19701 " rm '/file name'\n"
19706 #: ../fish/guestfish.pod:510
19714 #: ../fish/guestfish.pod:512
19716 "A few commands require a list of strings to be passed. For these, use a "
19717 "whitespace-separated list, enclosed in quotes. Strings containing "
19718 "whitespace to be passed through must be enclosed in single quotes. A "
19719 "literal single quote must be escaped with a backslash."
19723 #: ../fish/guestfish.pod:517
19726 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19727 " command \"/bin/echo 'foo bar'\"\n"
19728 " command \"/bin/echo \\'foo\\'\"\n"
19733 #: ../fish/guestfish.pod:521
19734 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19738 #: ../fish/guestfish.pod:523
19740 "In double-quoted arguments (only) use backslash to insert special characters:"
19744 #: ../fish/guestfish.pod:528
19749 #: ../fish/guestfish.pod:530
19750 msgid "Alert (bell) character."
19751 msgstr "Символ гудка (дзвінка)."
19754 #: ../fish/guestfish.pod:532
19759 #: ../fish/guestfish.pod:534
19760 msgid "Backspace character."
19764 #: ../fish/guestfish.pod:536
19769 #: ../fish/guestfish.pod:538
19770 msgid "Form feed character."
19774 #: ../fish/guestfish.pod:540
19779 #: ../fish/guestfish.pod:542
19780 msgid "Newline character."
19784 #: ../fish/guestfish.pod:544
19789 #: ../fish/guestfish.pod:546
19790 msgid "Carriage return character."
19791 msgstr "Символ повернення каретки."
19794 #: ../fish/guestfish.pod:548
19799 #: ../fish/guestfish.pod:550
19800 msgid "Horizontal tab character."
19801 msgstr "Символ горизонтальної табуляції"
19804 #: ../fish/guestfish.pod:552
19809 #: ../fish/guestfish.pod:554
19810 msgid "Vertical tab character."
19811 msgstr "Символ вертикальної табуляції."
19814 #: ../fish/guestfish.pod:556
19819 #: ../fish/guestfish.pod:558
19820 msgid "A literal double quote character."
19824 #: ../fish/guestfish.pod:560
19829 #: ../fish/guestfish.pod:562
19831 "A character with octal value I<ooo>. There must be precisely 3 octal digits "
19836 #: ../fish/guestfish.pod:565
19841 #: ../fish/guestfish.pod:567
19843 "A character with hex value I<hh>. There must be precisely 2 hex digits."
19847 #: ../fish/guestfish.pod:570
19849 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19854 #: ../fish/guestfish.pod:573
19859 #: ../fish/guestfish.pod:575
19860 msgid "A literal backslash character."
19864 #: ../fish/guestfish.pod:579
19865 msgid "OPTIONAL ARGUMENTS"
19869 #: ../fish/guestfish.pod:581
19871 "Some commands take optional arguments. These arguments appear in this "
19872 "documentation as C<[argname:..]>. You can use them as in these examples:"
19876 #: ../fish/guestfish.pod:585
19879 " add-drive-opts filename\n"
19884 #: ../fish/guestfish.pod:587
19887 " add-drive-opts filename readonly:true\n"
19892 #: ../fish/guestfish.pod:589
19895 " add-drive-opts filename format:qcow2 readonly:false\n"
19900 #: ../fish/guestfish.pod:591
19902 "Each optional argument can appear at most once. All optional arguments must "
19903 "appear after the required ones."
19907 #: ../fish/guestfish.pod:594
19912 #: ../fish/guestfish.pod:596
19914 "This section applies to all commands which can take integers as parameters."
19918 #: ../fish/guestfish.pod:599
19919 msgid "SIZE SUFFIX"
19923 #: ../fish/guestfish.pod:601
19925 "When the command takes a parameter measured in bytes, you can use one of the "
19926 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19930 #: ../fish/guestfish.pod:607
19931 msgid "B<k> or B<K> or B<KiB>"
19932 msgstr "B<k>, B<K> або B<KiB>"
19935 #: ../fish/guestfish.pod:609
19936 msgid "The size in kilobytes (multiplied by 1024)."
19937 msgstr "Розмір у кілобайтах (у одному кілобайті 1024 байтів)."
19940 #: ../fish/guestfish.pod:611
19945 #: ../fish/guestfish.pod:613
19946 msgid "The size in SI 1000 byte units."
19947 msgstr "Розмір у одиницях СІ: 1000 байтів."
19950 #: ../fish/guestfish.pod:615
19951 msgid "B<M> or B<MiB>"
19952 msgstr "B<M> або B<MiB>"
19955 #: ../fish/guestfish.pod:617
19956 msgid "The size in megabytes (multiplied by 1048576)."
19957 msgstr "Розмір у мегабайтах (у одному мегабайті 1048576 байтів)."
19960 #: ../fish/guestfish.pod:619
19965 #: ../fish/guestfish.pod:621
19966 msgid "The size in SI 1000000 byte units."
19967 msgstr "Розмір у одиницях СІ: 1000000 байтів."
19970 #: ../fish/guestfish.pod:623
19971 msgid "B<G> or B<GiB>"
19972 msgstr "B<G> або B<GiB>"
19975 #: ../fish/guestfish.pod:625
19976 msgid "The size in gigabytes (multiplied by 2**30)."
19977 msgstr "Розмір у гігабайтах (з множником 2**30)."
19980 #: ../fish/guestfish.pod:627
19985 #: ../fish/guestfish.pod:629
19986 msgid "The size in SI 10**9 byte units."
19987 msgstr "Розмір у одиницях СІ: 10**9 байтів."
19990 #: ../fish/guestfish.pod:631
19991 msgid "B<T> or B<TiB>"
19992 msgstr "B<T> або B<TiB>"
19995 #: ../fish/guestfish.pod:633
19996 msgid "The size in terabytes (multiplied by 2**40)."
19997 msgstr "Розмір у терабайтах (з множником 2**40)."
20000 #: ../fish/guestfish.pod:635
20005 #: ../fish/guestfish.pod:637
20006 msgid "The size in SI 10**12 byte units."
20007 msgstr "Розмір у одиницях СІ: 10**12 байтів."
20010 #: ../fish/guestfish.pod:639
20011 msgid "B<P> or B<PiB>"
20012 msgstr "B<P> або B<PiB>"
20015 #: ../fish/guestfish.pod:641
20016 msgid "The size in petabytes (multiplied by 2**50)."
20017 msgstr "Розмір у петабайтах (у одному петабайті 2**50 байтів)."
20020 #: ../fish/guestfish.pod:643
20025 #: ../fish/guestfish.pod:645
20026 msgid "The size in SI 10**15 byte units."
20027 msgstr "Розмір у одиницях СІ: 10**15 байтів."
20030 #: ../fish/guestfish.pod:647
20031 msgid "B<E> or B<EiB>"
20032 msgstr "B<E> або B<EiB>"
20035 #: ../fish/guestfish.pod:649
20036 msgid "The size in exabytes (multiplied by 2**60)."
20037 msgstr "Розмір у ексабайтах (у одному ексабайті 2**60 байтів)."
20040 #: ../fish/guestfish.pod:651
20045 #: ../fish/guestfish.pod:653
20046 msgid "The size in SI 10**18 byte units."
20047 msgstr "Розмір у одиницях СІ: 10**18 байтів."
20050 #: ../fish/guestfish.pod:655
20051 msgid "B<Z> or B<ZiB>"
20052 msgstr "B<Z> або B<ZiB>"
20055 #: ../fish/guestfish.pod:657
20056 msgid "The size in zettabytes (multiplied by 2**70)."
20057 msgstr "Розмір у зетабайтах (у одному зетабайті 2**70 байтів)."
20060 #: ../fish/guestfish.pod:659
20065 #: ../fish/guestfish.pod:661
20066 msgid "The size in SI 10**21 byte units."
20067 msgstr "Розмір у одиницях СІ: 10**21 байтів."
20070 #: ../fish/guestfish.pod:663
20071 msgid "B<Y> or B<YiB>"
20072 msgstr "B<Y> або B<YiB>"
20075 #: ../fish/guestfish.pod:665
20076 msgid "The size in yottabytes (multiplied by 2**80)."
20077 msgstr "Розмір у йотабайтах (у одному йотабайті 2**80 байтів)."
20080 #: ../fish/guestfish.pod:667
20085 #: ../fish/guestfish.pod:669
20086 msgid "The size in SI 10**24 byte units."
20087 msgstr "Розмір у одиницях СІ: 10**24 байтів."
20090 #: ../fish/guestfish.pod:675
20093 " truncate-size /file 1G\n"
20098 #: ../fish/guestfish.pod:677
20099 msgid "would truncate the file to 1 gigabyte."
20103 #: ../fish/guestfish.pod:679
20105 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
20106 "the parameter to L</memsize> is specified in megabytes already). Adding a "
20107 "suffix will probably not do what you expect."
20111 #: ../fish/guestfish.pod:683
20112 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20116 #: ../fish/guestfish.pod:685
20118 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20119 "octal number or C<0x> to prefix a hexadecimal number. For example:"
20123 #: ../fish/guestfish.pod:688
20126 " 1234 decimal number 1234\n"
20127 " 02322 octal number, equivalent to decimal 1234\n"
20128 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
20133 #: ../fish/guestfish.pod:692
20135 "When using the C<chmod> command, you almost always want to specify an octal "
20136 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20137 "L<chmod(1)> program):"
20141 #: ../fish/guestfish.pod:696
20144 " chmod 0777 /public # OK\n"
20145 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
20150 #: ../fish/guestfish.pod:699
20152 "Commands that return numbers usually print them in decimal, but some "
20153 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20154 "octal, preceeded by C<0>)."
20158 #: ../fish/guestfish.pod:703
20159 msgid "WILDCARDS AND GLOBBING"
20163 #: ../fish/guestfish.pod:705
20165 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20166 "(globbing) by default. So for example the following will not do what you "
20171 #: ../fish/guestfish.pod:709
20179 #: ../fish/guestfish.pod:711
20181 "Assuming you don't have a directory called literally C</home/*> then the "
20182 "above command will return an error."
20186 #: ../fish/guestfish.pod:714
20187 msgid "To perform wildcard expansion, use the C<glob> command."
20191 #: ../fish/guestfish.pod:716
20194 " glob rm-rf /home/*\n"
20199 #: ../fish/guestfish.pod:718
20201 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20202 "many times), equivalent to:"
20206 #: ../fish/guestfish.pod:721
20209 " rm-rf /home/jim\n"
20210 " rm-rf /home/joe\n"
20211 " rm-rf /home/mary\n"
20216 #: ../fish/guestfish.pod:725
20217 msgid "C<glob> only works on simple guest paths and not on device names."
20221 #: ../fish/guestfish.pod:727
20223 "If you have several parameters, each containing a wildcard, then glob will "
20224 "perform a Cartesian product."
20228 #: ../fish/guestfish.pod:730
20233 #: ../fish/guestfish.pod:732
20235 "Any line which starts with a I<#> character is treated as a comment and "
20236 "ignored. The I<#> can optionally be preceeded by whitespace, but B<not> by "
20237 "a command. For example:"
20241 #: ../fish/guestfish.pod:736
20244 " # this is a comment\n"
20245 " # this is a comment\n"
20246 " foo # NOT a comment\n"
20251 #: ../fish/guestfish.pod:740
20252 msgid "Blank lines are also ignored."
20256 #: ../fish/guestfish.pod:742
20257 msgid "RUNNING COMMANDS LOCALLY"
20261 #: ../fish/guestfish.pod:744
20263 "Any line which starts with a I<!> character is treated as a command sent to "
20264 "the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
20268 #: ../fish/guestfish.pod:748
20272 " tgz-out /remote local/remote-data.tar.gz\n"
20277 #: ../fish/guestfish.pod:751
20279 "will create a directory C<local> on the host, and then export the contents "
20280 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
20281 "(See C<tgz-out>)."
20285 #: ../fish/guestfish.pod:755
20287 "To change the local directory, use the C<lcd> command. C<!cd> will have no "
20288 "effect, due to the way that subprocesses work in Unix."
20292 #: ../fish/guestfish.pod:758
20293 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20297 #: ../fish/guestfish.pod:760
20299 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20300 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20301 "and executed as guestfish commands."
20305 #: ../fish/guestfish.pod:764
20307 "Thus you can use shell script to construct arbitrary guestfish commands "
20308 "which are then parsed by guestfish."
20312 #: ../fish/guestfish.pod:767
20314 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20315 "through C</foo.100>) using guestfish commands alone. However this is simple "
20316 "if we use a shell script to create the guestfish commands for us:"
20320 #: ../fish/guestfish.pod:772
20323 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20328 #: ../fish/guestfish.pod:774
20329 msgid "or with names like C</foo.001>:"
20333 #: ../fish/guestfish.pod:776
20336 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20341 #: ../fish/guestfish.pod:778
20343 "When using guestfish interactively it can be helpful to just run the shell "
20344 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20345 "ordinary I<!> local command), see what guestfish commands it would run, and "
20346 "when you are happy with those prepend the C<E<lt>> character to run the "
20347 "guestfish commands for real."
20351 #: ../fish/guestfish.pod:784
20356 #: ../fish/guestfish.pod:786
20358 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20359 "command (a guestfish command) to the second command (any host command). For "
20364 #: ../fish/guestfish.pod:790
20367 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20372 #: ../fish/guestfish.pod:792
20374 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20375 "program). The above command would list all accounts in the guest filesystem "
20376 "which have UID 0, ie. root accounts including backdoors. Other examples:"
20380 #: ../fish/guestfish.pod:797
20383 " hexdump /bin/ls | head\n"
20384 " list-devices | tail -1\n"
20385 " tgz-out / - | tar ztf -\n"
20390 #: ../fish/guestfish.pod:801
20392 "The space before the pipe symbol is required, any space after the pipe "
20393 "symbol is optional. Everything after the pipe symbol is just passed "
20394 "straight to the host shell, so it can contain redirections, globs and "
20395 "anything else that makes sense on the host side."
20399 #: ../fish/guestfish.pod:806
20401 "To use a literal argument which begins with a pipe symbol, you have to quote "
20406 #: ../fish/guestfish.pod:809
20414 #: ../fish/guestfish.pod:811
20415 msgid "HOME DIRECTORIES"
20419 #: ../fish/guestfish.pod:813
20421 "If a parameter starts with the character C<~> then the tilde may be expanded "
20422 "as a home directory path (either C<~> for the current user's home directory, "
20423 "or C<~user> for another user)."
20427 #: ../fish/guestfish.pod:817
20429 "Note that home directory expansion happens for users known I<on the host>, "
20430 "not in the guest filesystem."
20434 #: ../fish/guestfish.pod:820
20436 "To use a literal argument which begins with a tilde, you have to quote it, "
20441 #: ../fish/guestfish.pod:823
20449 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
20450 msgid "ENCRYPTED DISKS"
20451 msgstr "ЗАШИФРОВАНІ ДИСКИ"
20454 #: ../fish/guestfish.pod:827
20456 "Libguestfs has some support for Linux guests encrypted according to the "
20457 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20458 "disk encryption systems used by modern Linux guests. Currently only LVM-on-"
20459 "LUKS is supported."
20463 #: ../fish/guestfish.pod:832
20464 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20468 #: ../fish/guestfish.pod:834
20471 " ><fs> vfs-type /dev/sda2\n"
20477 #: ../fish/guestfish.pod:837
20479 "Then open those devices using L</luks-open>. This creates a device-mapper "
20480 "device called C</dev/mapper/luksdev>."
20484 #: ../fish/guestfish.pod:840
20487 " ><fs> luks-open /dev/sda2 luksdev\n"
20488 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20493 #: ../fish/guestfish.pod:843
20495 "Finally you have to tell LVM to scan for volume groups on the newly created "
20500 #: ../fish/guestfish.pod:846
20504 " vg-activate-all true\n"
20509 #: ../fish/guestfish.pod:849
20510 msgid "The logical volume(s) can now be mounted in the usual way."
20514 #: ../fish/guestfish.pod:851
20516 "Before closing a LUKS device you must unmount any logical volumes on it and "
20517 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20518 "one. Then you can close the mapper device:"
20522 #: ../fish/guestfish.pod:855
20525 " vg-activate false /dev/VG\n"
20526 " luks-close /dev/mapper/luksdev\n"
20531 #: ../fish/guestfish.pod:860
20533 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20534 "letters and paths (with some limitations). The following commands are "
20539 #: ../fish/guestfish.pod:864
20542 " file /WINDOWS/system32/config/system.LOG\n"
20547 #: ../fish/guestfish.pod:866
20550 " file win:\\windows\\system32\\config\\system.log\n"
20555 #: ../fish/guestfish.pod:868
20558 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20563 #: ../fish/guestfish.pod:870
20565 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20566 "where the drive is mounted, prepending that to the path, changing all "
20567 "backslash characters to forward slash, then resolving the result using L</"
20568 "case-sensitive-path>. For example if the E: drive was mounted on C</e> then "
20569 "the parameter might be rewritten like this:"
20573 #: ../fish/guestfish.pod:876
20576 " win:e:\\foo\\bar => /e/FOO/bar\n"
20581 #: ../fish/guestfish.pod:878
20582 msgid "This only works in argument positions that expect a path."
20586 #: ../fish/guestfish.pod:880
20587 msgid "UPLOADING AND DOWNLOADING FILES"
20591 #: ../fish/guestfish.pod:882
20593 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20594 "others which upload from or download to a local file, you can use the "
20595 "special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
20599 #: ../fish/guestfish.pod:886
20607 #: ../fish/guestfish.pod:888
20609 "reads stdin and creates from that a file C</foo> in the disk image, and:"
20613 #: ../fish/guestfish.pod:891
20616 " tar-out /etc - | tar tf -\n"
20621 #: ../fish/guestfish.pod:893
20623 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20624 "command (see L</PIPES>)."
20628 #: ../fish/guestfish.pod:896
20630 "When using C<-> to read from stdin, the input is read up to the end of "
20631 "stdin. You can also use a special \"heredoc\"-like syntax to read up to "
20632 "some arbitrary end marker:"
20636 #: ../fish/guestfish.pod:900
20639 " upload -<<END /foo\n"
20648 #: ../fish/guestfish.pod:906
20650 "Any string of characters can be used instead of C<END>. The end marker must "
20651 "appear on a line of its own, without any preceeding or following characters "
20652 "(not even spaces)."
20656 #: ../fish/guestfish.pod:910
20658 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20659 "upload local files (so-called \"FileIn\" parameters in the generator)."
20663 #: ../fish/guestfish.pod:913
20664 msgid "EXIT ON ERROR BEHAVIOUR"
20668 #: ../fish/guestfish.pod:915
20670 "By default, guestfish will ignore any errors when in interactive mode (ie. "
20671 "taking commands from a human over a tty), and will exit on the first error "
20672 "in non-interactive mode (scripts, commands given on the command line)."
20676 #: ../fish/guestfish.pod:920
20678 "If you prefix a command with a I<-> character, then that command will not "
20679 "cause guestfish to exit, even if that (one) command returns an error."
20683 #: ../fish/guestfish.pod:924
20684 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20688 #: ../fish/guestfish.pod:926
20690 "Guestfish can be remote-controlled over a socket. This is useful "
20691 "particularly in shell scripts where you want to make several different "
20692 "changes to a filesystem, but you don't want the overhead of starting up a "
20693 "guestfish process each time."
20697 #: ../fish/guestfish.pod:931
20698 msgid "Start a guestfish server process using:"
20702 #: ../fish/guestfish.pod:933
20705 " eval \"`guestfish --listen`\"\n"
20710 #: ../fish/guestfish.pod:935
20711 msgid "and then send it commands by doing:"
20715 #: ../fish/guestfish.pod:937
20718 " guestfish --remote cmd [...]\n"
20723 #: ../fish/guestfish.pod:939
20724 msgid "To cause the server to exit, send it the exit command:"
20728 #: ../fish/guestfish.pod:943
20730 "Note that the server will normally exit if there is an error in a command. "
20731 "You can change this in the usual way. See section L</EXIT ON ERROR "
20736 #: ../fish/guestfish.pod:947
20737 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20741 #: ../fish/guestfish.pod:949
20743 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20744 "is how the I<--remote> option knows where to send the commands. You can "
20745 "have several guestfish listener processes running using:"
20749 #: ../fish/guestfish.pod:953
20752 " eval \"`guestfish --listen`\"\n"
20753 " pid1=$GUESTFISH_PID\n"
20754 " eval \"`guestfish --listen`\"\n"
20755 " pid2=$GUESTFISH_PID\n"
20757 " guestfish --remote=$pid1 cmd\n"
20758 " guestfish --remote=$pid2 cmd\n"
20763 #: ../fish/guestfish.pod:961
20764 msgid "REMOTE CONTROL AND CSH"
20768 #: ../fish/guestfish.pod:963
20770 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20775 #: ../fish/guestfish.pod:966
20778 " eval \"`guestfish --listen --csh`\"\n"
20783 #: ../fish/guestfish.pod:968
20784 msgid "REMOTE CONTROL DETAILS"
20788 #: ../fish/guestfish.pod:970
20790 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
20791 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
20792 "and C<$PID> is the process ID of the server."
20796 #: ../fish/guestfish.pod:974
20797 msgid "Guestfish client and server versions must match exactly."
20801 #: ../fish/guestfish.pod:976
20802 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20806 #: ../fish/guestfish.pod:978
20808 "From Bash, you can use the following code which creates a guestfish "
20809 "instance, correctly quotes the command line, handles failure to start, and "
20810 "cleans up guestfish when the script exits:"
20814 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
20822 #: ../fish/guestfish.pod:986
20825 " guestfish[0]=\"guestfish\"\n"
20826 " guestfish[1]=\"--listen\"\n"
20827 " guestfish[2]=\"--ro\"\n"
20828 " guestfish[3]=\"-a\"\n"
20829 " guestfish[4]=\"disk.img\"\n"
20834 #: ../fish/guestfish.pod:992
20837 " GUESTFISH_PID=\n"
20838 " eval $(\"${guestfish[@]}\")\n"
20839 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20840 " echo \"error: guestfish didn't start up, see error messages above\"\n"
20847 #: ../fish/guestfish.pod:999
20850 " cleanup_guestfish ()\n"
20852 " guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20854 " trap cleanup_guestfish EXIT ERR\n"
20859 #: ../fish/guestfish.pod:1005
20862 " guestfish --remote -- run\n"
20867 #: ../fish/guestfish.pod:1007
20875 #: ../fish/guestfish.pod:1009
20876 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20880 #: ../fish/guestfish.pod:1011
20882 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20883 "context hangs, ie. don't do (note the backquotes):"
20887 #: ../fish/guestfish.pod:1014
20890 " a=`guestfish --remote run`\n"
20895 #: ../fish/guestfish.pod:1016
20897 "Since the C<run> command produces no output on stdout, this is not useful "
20898 "anyway. For further information see L<https://bugzilla.redhat.com/show_bug."
20903 #: ../fish/guestfish.pod:1020
20904 msgid "PREPARED DISK IMAGES"
20908 #: ../fish/guestfish.pod:1022
20910 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20911 "preformatted disk images that guestfish can make for you to save typing. "
20912 "This is particularly useful for testing purposes. This option is used "
20913 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20914 "can be mixed with I<-a>)."
20918 #: ../fish/guestfish.pod:1028
20920 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20921 "the second and so on. Existing files in the current directory are "
20926 #: ../fish/guestfish.pod:1032
20928 "The type briefly describes how the disk should be sized, partitioned, how "
20929 "filesystem(s) should be created, and how content should be added. "
20930 "Optionally the type can be followed by extra parameters, separated by C<:> "
20931 "(colon) characters. For example, I<-N fs> creates a default 100MB, sparsely-"
20932 "allocated disk, containing a single partition, with the partition formatted "
20933 "as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
20938 #: ../fish/guestfish.pod:1040
20939 msgid "To list the available types and any extra parameters they take, run:"
20943 #: ../fish/guestfish.pod:1044
20945 "Note that the prepared filesystem is not mounted. You would usually have to "
20946 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20950 #: ../fish/guestfish.pod:1048
20952 "If any I<-N> or I<--new> options are given, the guest is automatically "
20957 #: ../fish/guestfish.pod:1053
20958 msgid "Create a 100MB disk with an ext4-formatted partition:"
20962 #: ../fish/guestfish.pod:1055
20965 " guestfish -N fs:ext4\n"
20970 #: ../fish/guestfish.pod:1057
20971 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20975 #: ../fish/guestfish.pod:1059
20978 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20983 #: ../fish/guestfish.pod:1061
20984 msgid "Create a blank 200MB disk:"
20988 #: ../fish/guestfish.pod:1063
20991 " guestfish -N disk:200M\n"
20996 #: ../fish/guestfish.pod:1065
20997 msgid "PROGRESS BARS"
21001 #: ../fish/guestfish.pod:1067
21003 "Some (not all) long-running commands send progress notification messages as "
21004 "they are running. Guestfish turns these messages into progress bars."
21008 #: ../fish/guestfish.pod:1071
21010 "When a command that supports progress bars takes longer than two seconds to "
21011 "run, and if progress bars are enabled, then you will see one appearing below "
21016 #: ../fish/guestfish.pod:1075
21019 " ><fs> copy-size /large-file /another-file 2048M\n"
21020 " / 10% [#####-----------------------------------------] 00:30\n"
21025 #: ../fish/guestfish.pod:1078
21027 "The spinner on the left hand side moves round once for every progress "
21028 "notification received from the backend. This is a (reasonably) golden "
21029 "assurance that the command is \"doing something\" even if the progress bar "
21030 "is not moving, because the command is able to send the progress "
21031 "notifications. When the bar reaches 100% and the command finishes, the "
21032 "spinner disappears."
21036 #: ../fish/guestfish.pod:1085
21038 "Progress bars are enabled by default when guestfish is used interactively. "
21039 "You can enable them even for non-interactive modes using I<--progress-bars>, "
21040 "and you can disable them completely using I<--no-progress-bars>."
21044 #: ../fish/guestfish.pod:1090
21045 msgid "GUESTFISH COMMANDS"
21049 #: ../fish/guestfish.pod:1092
21051 "The commands in this section are guestfish convenience commands, in other "
21052 "words, they are not part of the L<guestfs(3)> API."
21056 #: ../fish/guestfish.pod:1095
21061 #: ../fish/guestfish.pod:1097
21073 #: ../fish/guestfish.pod:1100
21074 msgid "Without any parameter, this provides general help."
21075 msgstr "Без параметра показує загальну довідкову інформацію."
21078 #: ../fish/guestfish.pod:1102
21079 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21083 #: ../fish/guestfish.pod:1104
21084 msgid "quit | exit"
21088 #: ../fish/guestfish.pod:1106
21089 msgid "This exits guestfish. You can also use C<^D> key."
21093 #: ../fish/guestfish.pod:1108
21094 msgid "@FISH_COMMANDS@"
21098 #: ../fish/guestfish.pod:1110
21103 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
21108 #: ../fish/guestfish.pod:1116
21110 "guestfish returns 0 if the commands completed without error, or 1 if there "
21115 #: ../fish/guestfish.pod:1123
21120 #: ../fish/guestfish.pod:1125
21122 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
21127 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3213
21128 msgid "FEBOOTSTRAP_KERNEL"
21132 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3215
21133 msgid "FEBOOTSTRAP_MODULES"
21137 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3217
21139 "These two environment variables allow the kernel that libguestfs uses in the "
21140 "appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
21141 "most recent host kernel is chosen. For more information about kernel "
21142 "selection, see L<febootstrap-supermin-helper(8)>. This feature is only "
21143 "available in febootstrap E<ge> 3.8."
21147 #: ../fish/guestfish.pod:1138
21148 msgid "GUESTFISH_DISPLAY_IMAGE"
21152 #: ../fish/guestfish.pod:1140
21154 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
21155 "If not set, it uses L<display(1)>."
21159 #: ../fish/guestfish.pod:1143
21160 msgid "GUESTFISH_PID"
21164 #: ../fish/guestfish.pod:1145
21166 "Used with the I<--remote> option to specify the remote guestfish process to "
21167 "control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21171 #: ../fish/guestfish.pod:1149
21176 #: ../fish/guestfish.pod:1151
21178 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
21179 "not specified, the external L<hexedit(1)> program is used."
21183 #: ../fish/guestfish.pod:1155
21188 #: ../fish/guestfish.pod:1157
21190 "If compiled with GNU readline support, various files in the home directory "
21191 "can be used. See L</FILES>."
21195 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3223
21196 msgid "LIBGUESTFS_APPEND"
21200 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3225
21201 msgid "Pass additional options to the guest kernel."
21205 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3227
21206 msgid "LIBGUESTFS_DEBUG"
21207 msgstr "LIBGUESTFS_DEBUG"
21210 #: ../fish/guestfish.pod:1166
21212 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
21213 "effect as using the B<-v> option."
21217 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3232
21218 msgid "LIBGUESTFS_MEMSIZE"
21219 msgstr "LIBGUESTFS_MEMSIZE"
21222 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3234
21224 "Set the memory allocated to the qemu process, in megabytes. For example:"
21228 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3237
21231 " LIBGUESTFS_MEMSIZE=700\n"
21234 " LIBGUESTFS_MEMSIZE=700\n"
21238 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3239
21239 msgid "LIBGUESTFS_PATH"
21243 #: ../fish/guestfish.pod:1178
21245 "Set the path that guestfish uses to search for kernel and initrd.img. See "
21246 "the discussion of paths in L<guestfs(3)>."
21250 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3244
21251 msgid "LIBGUESTFS_QEMU"
21255 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3246
21257 "Set the default qemu binary that libguestfs uses. If not set, then the qemu "
21258 "which was found at compile time by the configure script is used."
21262 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3252
21263 msgid "LIBGUESTFS_TRACE"
21267 #: ../fish/guestfish.pod:1189
21268 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21272 #: ../fish/guestfish.pod:1191
21274 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
21277 #: ../fish/guestfish.pod:1193
21279 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
21284 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
21285 #: ../src/guestfs.pod:3257
21290 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3259
21292 "Location of temporary directory, defaults to C</tmp> except for the cached "
21293 "supermin appliance which defaults to C</var/tmp>."
21297 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3262
21299 "If libguestfs was compiled to use the supermin appliance then the real "
21300 "appliance is cached in this directory, shared between all handles belonging "
21301 "to the same EUID. You can use C<$TMPDIR> to configure another directory to "
21302 "use in case C</var/tmp> is not large enough."
21306 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
21307 #: ../rescue/virt-rescue.pod:273
21312 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
21313 #: ../rescue/virt-rescue.pod:277
21314 msgid "$HOME/.libguestfs-tools.rc"
21318 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
21319 #: ../rescue/virt-rescue.pod:279
21320 msgid "/etc/libguestfs-tools.conf"
21324 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
21325 #: ../rescue/virt-rescue.pod:281
21327 "This configuration file controls the default read-only or read-write mode "
21328 "(I<--ro> or I<--rw>)."
21332 #: ../fish/guestfish.pod:1220
21333 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21334 msgstr "Див. L</OPENING DISKS FOR READ AND WRITE>."
21337 #: ../fish/guestfish.pod:1222
21338 msgid "$HOME/.guestfish"
21342 #: ../fish/guestfish.pod:1224
21344 "If compiled with GNU readline support, then the command history is saved in "
21349 #: ../fish/guestfish.pod:1227
21350 msgid "$HOME/.inputrc"
21354 #: ../fish/guestfish.pod:1229
21355 msgid "/etc/inputrc"
21359 #: ../fish/guestfish.pod:1231
21361 "If compiled with GNU readline support, then these files can be used to "
21362 "configure readline. For further information, please see L<readline(3)/"
21363 "INITIALIZATION FILE>."
21367 #: ../fish/guestfish.pod:1235
21368 msgid "To write rules which only apply to guestfish, use:"
21372 #: ../fish/guestfish.pod:1237
21382 #: ../fish/guestfish.pod:1241
21384 "Variables that you can set in inputrc that change the behaviour of guestfish "
21385 "in useful ways include:"
21389 #: ../fish/guestfish.pod:1246
21390 msgid "completion-ignore-case (default: on)"
21394 #: ../fish/guestfish.pod:1248
21396 "By default, guestfish will ignore case when tab-completing paths on the "
21401 #: ../fish/guestfish.pod:1251
21404 " set completion-ignore-case off\n"
21409 #: ../fish/guestfish.pod:1253
21410 msgid "to make guestfish case sensitive."
21414 #: ../fish/guestfish.pod:1257
21419 #: ../fish/guestfish.pod:1259
21420 msgid "test2.img (etc)"
21424 #: ../fish/guestfish.pod:1261
21426 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21427 "will be created in the file C<test1.img> in the current directory. The "
21428 "second use of I<-N> will use C<test2.img> and so on. Any existing file with "
21429 "the same name will be overwritten."
21433 #: ../fish/guestfish.pod:1270
21435 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
21436 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
21437 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
21438 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
21439 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
21440 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
21441 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
21445 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3354
21446 #: ../test-tool/libguestfs-test-tool.pod:112
21447 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
21451 #: ../fish/virt-copy-in.pod:5
21453 "virt-copy-in - Copy files and directories into a virtual machine disk image."
21457 #: ../fish/virt-copy-in.pod:9
21460 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21465 #: ../fish/virt-copy-in.pod:11
21468 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21473 #: ../fish/virt-copy-in.pod:15
21475 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21476 "causing disk corruption. The virtual machine must be shut down before you "
21477 "use this command."
21481 #: ../fish/virt-copy-in.pod:21
21483 "C<virt-copy-in> copies files and directories from the local disk into a "
21484 "virtual machine disk image or named libvirt domain."
21488 #: ../fish/virt-copy-in.pod:24
21490 "You can give one of more filenames and directories on the command line. "
21491 "Directories are copied in recursively. The final parameter must be the "
21492 "destination directory in the disk image which must be an absolute path "
21493 "starting with a C</> character."
21497 #: ../fish/virt-copy-in.pod:33
21500 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21505 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21506 msgid "Upload a home directory to a guest:"
21510 #: ../fish/virt-copy-in.pod:37
21513 " virt-copy-in -d MyGuest skel /home\n"
21518 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
21519 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21520 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21524 #: ../fish/virt-copy-in.pod:41
21526 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21527 "> C<copy-in> command. For anything more complex than a trivial copy, you "
21528 "are probably better off using guestfish directly."
21532 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
21533 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21535 "Since the shell script just passes options straight to guestfish, read "
21536 "L<guestfish(1)> to see the full list of options."
21540 #: ../fish/virt-copy-in.pod:52
21542 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21543 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21547 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
21548 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21549 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
21553 #: ../fish/virt-copy-out.pod:5
21555 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21560 #: ../fish/virt-copy-out.pod:9
21563 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21568 #: ../fish/virt-copy-out.pod:11
21571 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21576 #: ../fish/virt-copy-out.pod:15
21578 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21579 "image or named libvirt domain."
21583 #: ../fish/virt-copy-out.pod:18
21585 "You can give one of more filenames and directories on the command line. "
21586 "Directories are copied out recursively."
21590 #: ../fish/virt-copy-out.pod:23
21591 msgid "Download the home directories from a virtual machine:"
21595 #: ../fish/virt-copy-out.pod:25
21599 " virt-copy-out -d MyGuest /home homes\n"
21604 #: ../fish/virt-copy-out.pod:30
21606 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21607 "> C<copy-out> command. For anything more complex than a trivial copy, you "
21608 "are probably better off using guestfish directly."
21612 #: ../fish/virt-copy-out.pod:41
21614 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
21615 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21619 #: ../fish/virt-tar-in.pod:5
21620 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21624 #: ../fish/virt-tar-in.pod:9
21627 " virt-tar-in -a disk.img data.tar /destination\n"
21632 #: ../fish/virt-tar-in.pod:11
21635 " virt-tar-in -d domain data.tar /destination\n"
21640 #: ../fish/virt-tar-in.pod:13
21643 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21648 #: ../fish/virt-tar-in.pod:17
21650 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21651 "causing disk corruption. The virtual machine must be shut down before you "
21652 "use this command."
21656 #: ../fish/virt-tar-in.pod:23
21658 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21659 "image or named libvirt domain."
21663 #: ../fish/virt-tar-in.pod:26
21665 "The first parameter is the tar file. Use C<-> to read the tar file from "
21666 "standard input. The second parameter is the absolute target directory to "
21671 #: ../fish/virt-tar-in.pod:34
21674 " virt-tar-in -d MyGuest homes.tar /home\n"
21679 #: ../fish/virt-tar-in.pod:38
21681 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21682 "> C<tar-in> command. For anything more complex than a trivial copy, you are "
21683 "probably better off using guestfish directly."
21687 #: ../fish/virt-tar-in.pod:49
21689 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21690 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
21695 #: ../fish/virt-tar-out.pod:5
21697 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21701 #: ../fish/virt-tar-out.pod:9
21704 " virt-tar-out -a disk.img /dir files.tar\n"
21709 #: ../fish/virt-tar-out.pod:11
21712 " virt-tar-out -d domain /dir files.tar\n"
21717 #: ../fish/virt-tar-out.pod:13
21720 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21725 #: ../fish/virt-tar-out.pod:17
21727 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21731 #: ../fish/virt-tar-out.pod:20
21733 "The first parameter is the absolute path of the virtual machine directory. "
21734 "The second parameter is the tar file to write. Use C<-> to write to "
21739 #: ../fish/virt-tar-out.pod:26
21740 msgid "Download the home directories from a guest:"
21744 #: ../fish/virt-tar-out.pod:28
21747 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21752 #: ../fish/virt-tar-out.pod:32
21754 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21755 "> C<tar-out> command. For anything more complex than a trivial copy, you "
21756 "are probably better off using guestfish directly."
21760 #: ../fish/virt-tar-out.pod:43
21762 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21763 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21767 #: ../fuse/guestmount.pod:5
21769 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21773 #: ../fuse/guestmount.pod:9
21776 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21781 #: ../fuse/guestmount.pod:11
21784 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21789 #: ../fuse/guestmount.pod:13
21792 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21797 #: ../fuse/guestmount.pod:17
21799 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21800 "machines. If you do this, you risk disk corruption in the VM."
21804 #: ../fuse/guestmount.pod:22
21806 "The guestmount program can be used to mount virtual machine filesystems and "
21807 "other disk images on the host. It uses libguestfs for access to the guest "
21808 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21809 "a mountable device."
21813 #: ../fuse/guestmount.pod:27
21815 "Along with other options, you have to give at least one device (I<-a> "
21816 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21817 "option) or use the I<-i> inspection option or the I<--live> option. How "
21818 "this works is better explained in the L<guestfish(1)> manual page, or by "
21819 "looking at the examples below."
21823 #: ../fuse/guestmount.pod:33
21825 "FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
21826 "by you, and the filesystem will not be visible to any other users unless you "
21827 "make certain global configuration changes to C</etc/fuse.conf>. To unmount "
21828 "the filesystem, use the C<fusermount -u> command."
21832 #: ../fuse/guestmount.pod:41
21834 "For a typical Windows guest which has its main filesystem on the first "
21839 #: ../fuse/guestmount.pod:44
21842 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21847 #: ../fuse/guestmount.pod:46
21849 "For a typical Linux guest which has a /boot filesystem on the first "
21850 "partition, and the root filesystem on a logical volume:"
21854 #: ../fuse/guestmount.pod:49
21857 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21862 #: ../fuse/guestmount.pod:51
21863 msgid "To get libguestfs to detect guest mountpoints for you:"
21867 #: ../fuse/guestmount.pod:53
21870 " guestmount -a guest.img -i --ro /mnt\n"
21875 #: ../fuse/guestmount.pod:55
21876 msgid "For a libvirt guest called \"Guest\" you could do:"
21880 #: ../fuse/guestmount.pod:57
21883 " guestmount -d Guest -i --ro /mnt\n"
21888 #: ../fuse/guestmount.pod:59
21890 "If you don't know what filesystems are contained in a guest or disk image, "
21891 "use L<virt-filesystems(1)> first:"
21895 #: ../fuse/guestmount.pod:62
21898 " virt-filesystems MyGuest\n"
21903 #: ../fuse/guestmount.pod:64
21905 "If you want to trace the libguestfs calls but without excessive debugging "
21906 "information, we recommend:"
21910 #: ../fuse/guestmount.pod:67
21913 " guestmount [...] --trace /mnt\n"
21918 #: ../fuse/guestmount.pod:69
21919 msgid "If you want to debug the program, we recommend:"
21923 #: ../fuse/guestmount.pod:71
21926 " guestmount [...] --trace --verbose /mnt\n"
21931 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
21932 #: ../resize/virt-resize.pod:621
21937 #: ../fuse/guestmount.pod:75
21938 msgid "Other users cannot see the filesystem by default"
21942 #: ../fuse/guestmount.pod:77
21944 "If you mount a filesystem as one user (eg. root), then other users will not "
21945 "be able to see it by default. The fix is to add the FUSE C<allow_other> "
21946 "option when mounting:"
21950 #: ../fuse/guestmount.pod:81
21953 " sudo guestmount [...] -o allow_other /mnt\n"
21958 #: ../fuse/guestmount.pod:83
21959 msgid "Enabling FUSE"
21963 #: ../fuse/guestmount.pod:85
21965 "On some distros, you may need to add yourself to a special group (eg. "
21966 "C<fuse>) before you can use any FUSE filesystem. This is necessary on "
21967 "Debian and derivatives."
21971 #: ../fuse/guestmount.pod:89
21973 "On other distros, no special group is required. It is not necessary on "
21974 "Fedora or Red Hat Enterprise Linux."
21978 #: ../fuse/guestmount.pod:100
21979 msgid "Add a block device or virtual machine image."
21983 #: ../fuse/guestmount.pod:123
21984 msgid "B<--dir-cache-timeout N>"
21985 msgstr "B<--dir-cache-timeout N>"
21988 #: ../fuse/guestmount.pod:125
21990 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21991 "seconds. The readdir cache [actually, there are several semi-independent "
21992 "caches] is populated after a readdir(2) call with the stat and extended "
21993 "attributes of the files in the directory, in anticipation that they will be "
21994 "requested soon after."
21998 #: ../fuse/guestmount.pod:131
22000 "There is also a different attribute cache implemented by FUSE (see the FUSE "
22001 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
22002 "requests, only cache existing ones."
22006 #: ../fuse/guestmount.pod:151
22008 "If you have untrusted raw-format guest disk images, you should use this "
22009 "option to specify the disk format. This avoids a possible security problem "
22010 "with malicious guests (CVE-2010-3851). See also L<guestfs(3)/"
22011 "guestfs_add_drive_opts>."
22015 #: ../fuse/guestmount.pod:156
22016 msgid "B<--fuse-help>"
22017 msgstr "B<--fuse-help>"
22020 #: ../fuse/guestmount.pod:158
22021 msgid "Display help on special FUSE options (see I<-o> below)."
22025 #: ../fuse/guestmount.pod:162
22026 msgid "Display brief help and exit."
22030 #: ../fuse/guestmount.pod:186
22032 "Mount the named partition or logical volume on the given mountpoint B<in the "
22033 "guest> (this has nothing to do with mountpoints in the host)."
22037 #: ../fuse/guestmount.pod:189
22039 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
22040 "something on C</>."
22044 #: ../fuse/guestmount.pod:206
22046 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
22047 "unmounted. If you specify this option, then we don't attempt to sync the "
22048 "disk. See the discussion of autosync in the L<guestfs(3)> manpage."
22052 #: ../fuse/guestmount.pod:211
22053 msgid "B<-o option>"
22054 msgstr "B<-o параметр>"
22057 #: ../fuse/guestmount.pod:213
22058 msgid "B<--option option>"
22059 msgstr "B<--option параметр>"
22062 #: ../fuse/guestmount.pod:215
22063 msgid "Pass extra options to FUSE."
22067 #: ../fuse/guestmount.pod:217
22069 "To get a list of all the extra options supported by FUSE, use the command "
22070 "below. Note that only the FUSE I<-o> options can be passed, and only some "
22071 "of them are a good idea."
22075 #: ../fuse/guestmount.pod:221
22078 " guestmount --fuse-help\n"
22083 #: ../fuse/guestmount.pod:223
22084 msgid "Some potentially useful FUSE options:"
22088 #: ../fuse/guestmount.pod:227
22089 msgid "B<-o allow_other>"
22093 #: ../fuse/guestmount.pod:229
22094 msgid "Allow other users to see the filesystem."
22098 #: ../fuse/guestmount.pod:231
22099 msgid "B<-o attr_timeout=N>"
22100 msgstr "B<-o attr_timeout=N>"
22103 #: ../fuse/guestmount.pod:233
22104 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22108 #: ../fuse/guestmount.pod:235
22109 msgid "B<-o kernel_cache>"
22113 #: ../fuse/guestmount.pod:237
22115 "Allow the kernel to cache files (reduces the number of reads that have to go "
22116 "through the L<guestfs(3)> API). This is generally a good idea if you can "
22117 "afford the extra memory usage."
22121 #: ../fuse/guestmount.pod:241
22122 msgid "B<-o uid=N> B<-o gid=N>"
22123 msgstr "B<-o uid=N> B<-o gid=N>"
22126 #: ../fuse/guestmount.pod:243
22128 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22129 "the chosen values."
22133 #: ../fuse/guestmount.pod:252
22135 "Add devices and mount everything read-only. Also disallow writes and make "
22136 "the disk appear read-only to FUSE."
22140 #: ../fuse/guestmount.pod:255
22142 "This is highly recommended if you are not going to edit the guest disk. If "
22143 "the guest is running and this option is I<not> supplied, then there is a "
22144 "strong risk of disk corruption in the guest. We try to prevent this from "
22145 "happening, but it is not always possible."
22149 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
22150 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22151 msgstr "Див. також L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22154 #: ../fuse/guestmount.pod:264
22155 msgid "Enable SELinux support for the guest."
22159 #: ../fuse/guestmount.pod:270
22160 msgid "Enable verbose messages from underlying libguestfs."
22164 #: ../fuse/guestmount.pod:276
22165 msgid "Display the program version and exit."
22169 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
22170 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
22171 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22172 msgstr "Див. L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22175 #: ../fuse/guestmount.pod:289
22177 msgstr "B<--trace>"
22180 #: ../fuse/guestmount.pod:291
22181 msgid "Trace libguestfs calls and entry into each FUSE function."
22185 #: ../fuse/guestmount.pod:293
22186 msgid "This also stops the daemon from forking into the background."
22190 #: ../fuse/guestmount.pod:319
22192 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22193 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22196 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22197 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22201 #: ../fuse/guestmount.pod:334
22202 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
22206 #: ../inspector/virt-inspector.pod:5
22208 "virt-inspector - Display operating system version and other information "
22209 "about a virtual machine"
22213 #: ../inspector/virt-inspector.pod:9
22216 " virt-inspector [--options] -d domname\n"
22221 #: ../inspector/virt-inspector.pod:11
22224 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
22229 #: ../inspector/virt-inspector.pod:15
22232 " virt-inspector domname\n"
22237 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
22240 " virt-inspector disk.img [disk.img ...]\n"
22245 #: ../inspector/virt-inspector.pod:21
22247 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22248 "determine the version of the operating system and other information about "
22249 "the virtual machine."
22253 #: ../inspector/virt-inspector.pod:25
22254 msgid "Virt-inspector produces XML output for feeding into other programs."
22258 #: ../inspector/virt-inspector.pod:27
22260 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22261 "the libvirt domain (see: C<virsh list --all>)."
22265 #: ../inspector/virt-inspector.pod:30
22267 "You can also run virt-inspector directly on disk images from a single "
22268 "virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain "
22269 "has several block devices, in which case you should list several I<-a> "
22270 "options one after another, with the first corresponding to the guest's C</"
22271 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
22275 #: ../inspector/virt-inspector.pod:37
22277 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22278 "keys and similar."
22282 #: ../inspector/virt-inspector.pod:40
22284 "Virt-inspector can only inspect and report upon I<one domain at a time>. To "
22285 "inspect several virtual machines, you have to run virt-inspector several "
22286 "times (for example, from a shell script for-loop)."
22290 #: ../inspector/virt-inspector.pod:45
22292 "Because virt-inspector needs direct access to guest images, it won't "
22293 "normally work over remote libvirt connections."
22297 #: ../inspector/virt-inspector.pod:48
22299 "All of the information available from virt-inspector is also available "
22300 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
22301 "The same information can also be fetched using guestfish or via libguestfs "
22302 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22303 "WITH OTHER PROGRAMMING LANGUAGES>)."
22307 #: ../inspector/virt-inspector.pod:81
22309 "Libvirt is only used if you specify a C<domname> on the command line. If "
22310 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22315 #: ../inspector/virt-inspector.pod:94
22317 "When prompting for keys and passphrases, virt-inspector normally turns "
22318 "echoing off so you cannot see what you are typing. If you are not worried "
22319 "about Tempest attacks and there is no one else in the room you can specify "
22320 "this flag to see what you are typing."
22324 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
22325 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
22326 #: ../tools/virt-win-reg.pl:144
22328 "Specify the format of disk images given on the command line. If this is "
22329 "omitted then the format is autodetected from the content of the disk image."
22333 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
22334 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
22335 #: ../tools/virt-win-reg.pl:148
22337 "If disk images are requested from libvirt, then this program asks libvirt "
22338 "for this information. In this case, the value of the format parameter is "
22343 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:391
22344 #: ../resize/virt-resize.pod:483 ../sparsify/virt-sparsify.pod:132
22345 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
22346 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22348 "If working with untrusted raw-format guest disk images, you should ensure "
22349 "the format is always specified."
22353 #: ../inspector/virt-inspector.pod:135
22355 #| msgid "B<--parts>"
22356 msgid "B<--xpath> query"
22357 msgstr "B<--parts>"
22360 #: ../inspector/virt-inspector.pod:137
22362 "Perform an XPath query on the XML on stdin, and print the result on stdout. "
22363 "In this mode virt-inspector simply runs an XPath query; all other inspection "
22364 "functions are disabled. See L</XPATH QUERIES> below for some examples."
22368 #: ../inspector/virt-inspector.pod:146
22369 msgid "Previous versions of virt-inspector allowed you to write either:"
22373 #: ../inspector/virt-inspector.pod:152
22376 " virt-inspector guestname\n"
22381 #: ../inspector/virt-inspector.pod:160
22386 #: ../inspector/virt-inspector.pod:162
22388 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22389 "C<virt-inspector.rng> which is supplied with libguestfs. This section is "
22390 "just an overview."
22394 #: ../inspector/virt-inspector.pod:166
22396 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22397 "more E<lt>operatingsystemE<gt> elements. You would only see more than one "
22398 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22399 "which is vanishingly rare in real world VMs."
22403 #: ../inspector/virt-inspector.pod:171
22404 msgid "E<lt>operatingsystemE<gt>"
22408 #: ../inspector/virt-inspector.pod:173
22410 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22411 "describe the operating system, its architecture, the descriptive \"product "
22412 "name\" string, the type of OS and so on, as in this example:"
22416 #: ../inspector/virt-inspector.pod:177
22419 " <operatingsystems>\n"
22420 " <operatingsystem>\n"
22421 " <root>/dev/sda2</root>\n"
22422 " <name>windows</name>\n"
22423 " <arch>i386</arch>\n"
22424 " <distro>windows</distro>\n"
22425 " <product_name>Windows 7 Enterprise</product_name>\n"
22426 " <product_variant>Client</product_variant>\n"
22427 " <major_version>6</major_version>\n"
22428 " <minor_version>1</minor_version>\n"
22429 " <windows_systemroot>/Windows</windows_systemroot>\n"
22430 " <format>installed</format>\n"
22435 #: ../inspector/virt-inspector.pod:190
22437 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22438 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22439 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22440 "architecture. The other fields are fairly self-explanatory, but because "
22441 "these fields are taken directly from the libguestfs inspection API you can "
22442 "find precise information from L<guestfs(3)/INSPECTION>."
22446 #: ../inspector/virt-inspector.pod:198
22448 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22449 "of view of libguestfs (block devices may have completely different names "
22450 "inside the VM itself)."
22454 #: ../inspector/virt-inspector.pod:202
22455 msgid "E<lt>mountpointsE<gt>"
22459 #: ../inspector/virt-inspector.pod:204
22461 "Un*x-like guests typically have multiple filesystems which are mounted at "
22462 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22463 "element which looks like this:"
22467 #: ../inspector/virt-inspector.pod:208
22470 " <operatingsystems>\n"
22471 " <operatingsystem>\n"
22474 " <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22475 " <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22476 " </mountpoints>\n"
22481 #: ../inspector/virt-inspector.pod:216
22483 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22484 "and may have completely different names inside the guest. Only mountable "
22485 "filesystems appear in this list, not things like swap devices."
22489 #: ../inspector/virt-inspector.pod:221
22490 msgid "E<lt>filesystemsE<gt>"
22494 #: ../inspector/virt-inspector.pod:223
22496 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22497 "filesystems belonging to the guest, including swap and empty partitions. "
22498 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22499 "this OS or shared with this OS and other OSes)."
22503 #: ../inspector/virt-inspector.pod:229
22504 msgid "You might see something like this:"
22508 #: ../inspector/virt-inspector.pod:231
22511 " <operatingsystems>\n"
22512 " <operatingsystem>\n"
22515 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22516 " <type>ext4</type>\n"
22517 " <label>Fedora-13-x86_64</label>\n"
22518 " <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22524 #: ../inspector/virt-inspector.pod:241
22526 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22527 "the label, and the UUID."
22531 #: ../inspector/virt-inspector.pod:244
22532 msgid "E<lt>applicationsE<gt>"
22536 #: ../inspector/virt-inspector.pod:246
22538 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22539 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22544 #: ../inspector/virt-inspector.pod:250
22546 "E<lt>package_formatE<gt>, if present, describes the packaging system used. "
22547 "Typical values would be C<rpm> and C<deb>."
22551 #: ../inspector/virt-inspector.pod:253
22553 "E<lt>package_managementE<gt>, if present, describes the package manager. "
22554 "Typical values include C<yum>, C<up2date> and C<apt>"
22558 #: ../inspector/virt-inspector.pod:256
22559 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22563 #: ../inspector/virt-inspector.pod:259
22566 " <operatingsystems>\n"
22567 " <operatingsystem>\n"
22569 " <applications>\n"
22571 " <name>coreutils</name>\n"
22572 " <version>8.5</version>\n"
22573 " <release>1</release>\n"
22574 " </application>\n"
22579 #: ../inspector/virt-inspector.pod:269
22581 "The version and release fields may not be available for some types guests. "
22582 "Other fields are possible, see L<guestfs(3)/"
22583 "guestfs_inspect_list_applications>."
22587 #: ../inspector/virt-inspector.pod:273
22588 msgid "E<lt>drive_mappingsE<gt>"
22592 #: ../inspector/virt-inspector.pod:275
22594 "For operating systems like Windows which use drive letters, virt-inspector "
22595 "is able to find out how drive letters map to filesystems."
22599 #: ../inspector/virt-inspector.pod:279
22602 " <operatingsystems>\n"
22603 " <operatingsystem>\n"
22605 " <drive_mappings>\n"
22606 " <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22607 " <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22608 " </drive_mappings>\n"
22613 #: ../inspector/virt-inspector.pod:287
22615 "In the example above, drive C maps to the filesystem on the second partition "
22616 "on the first disk, and drive E maps to the filesystem on the first partition "
22617 "on the second disk."
22621 #: ../inspector/virt-inspector.pod:291
22623 "Note that this only covers permanent local filesystem mappings, not things "
22624 "like network shares. Furthermore NTFS volume mount points may not be listed "
22629 #: ../inspector/virt-inspector.pod:295
22630 msgid "E<lt>iconE<gt>"
22634 #: ../inspector/virt-inspector.pod:297
22636 "Virt-inspector is sometimes able to extract an icon or logo for the guest. "
22637 "The icon is returned as base64-encoded PNG data. Note that the icon can be "
22638 "very large and high quality."
22642 #: ../inspector/virt-inspector.pod:301
22645 " <operatingsystems>\n"
22646 " <operatingsystem>\n"
22649 " iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22650 " [... many lines of base64 data ...]\n"
22656 #: ../inspector/virt-inspector.pod:309
22658 "To display the icon, you have to extract it and convert the base64 data back "
22659 "to a binary file. Use an XPath query or simply an editor to extract the "
22660 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22665 #: ../inspector/virt-inspector.pod:314
22668 " base64 -i -d < icon.data > icon.png\n"
22673 #: ../inspector/virt-inspector.pod:316
22674 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22678 #: ../inspector/virt-inspector.pod:318
22680 "Virt-inspector can detect some operating system installers on install disks, "
22681 "live CDs, bootable USB keys and more."
22685 #: ../inspector/virt-inspector.pod:321
22687 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22688 "fields may be present to indicate a live CD, network installer, or one part "
22689 "of a multipart CD. For example:"
22693 #: ../inspector/virt-inspector.pod:325
22696 " <operatingsystems>\n"
22697 " <operatingsystem>\n"
22698 " <root>/dev/sda</root>\n"
22699 " <name>linux</name>\n"
22700 " <arch>i386</arch>\n"
22701 " <distro>ubuntu</distro>\n"
22702 " <product_name>Ubuntu 10.10 "Maverick Meerkat"</product_name>\n"
22703 " <major_version>10</major_version>\n"
22704 " <minor_version>10</minor_version>\n"
22705 " <format>installer</format>\n"
22711 #: ../inspector/virt-inspector.pod:337
22712 msgid "XPATH QUERIES"
22716 #: ../inspector/virt-inspector.pod:339
22718 "Virt-inspector includes built in support for running XPath queries. The "
22719 "reason for including XPath support directly in virt-inspector is simply that "
22720 "there are no good and widely available command line programs that can do "
22721 "XPath queries. The only good one is L<xmlstarlet(1)> and that is not "
22722 "available on Red Hat Enterprise Linux."
22726 #: ../inspector/virt-inspector.pod:346
22728 "To perform an XPath query, use the I<--xpath> option. Note that in this "
22729 "mode, virt-inspector simply reads XML from stdin and outputs the query "
22730 "result on stdout. All other inspection features are disabled in this mode."
22734 #: ../inspector/virt-inspector.pod:353
22737 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
22739 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22740 " <type>ext4</type>\n"
22746 #: ../inspector/virt-inspector.pod:359
22749 " $ virt-inspector -d Guest | \\\n"
22750 " virt-inspector --xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22756 #: ../inspector/virt-inspector.pod:363
22759 " $ virt-inspector -d Guest | \\\n"
22760 " virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
22761 " [displays the guest icon, if there is one]\n"
22766 #: ../inspector/virt-inspector.pod:374
22767 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22771 #: ../inspector/virt-inspector.pod:376
22773 "Early versions of libguestfs shipped with a different virt-inspector program "
22774 "written in Perl (the current version is written in C). The XML output of "
22775 "the Perl virt-inspector was different and it could also output in other "
22776 "formats like text."
22780 #: ../inspector/virt-inspector.pod:381
22782 "The old virt-inspector is no longer supported or shipped with libguestfs."
22786 #: ../inspector/virt-inspector.pod:384
22788 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22789 "versions of virt-inspector with different names:"
22793 #: ../inspector/virt-inspector.pod:387
22796 " virt-inspector Old Perl version.\n"
22797 " virt-inspector2 New C version.\n"
22802 #: ../inspector/virt-inspector.pod:397
22804 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
22805 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22809 #: ../inspector/virt-inspector.pod:414
22810 msgid "Matthew Booth L<mbooth@redhat.com>"
22814 #: ../java/examples/guestfs-java.pod:5
22815 msgid "guestfs-java - How to use libguestfs from Java"
22819 #: ../java/examples/guestfs-java.pod:9
22822 " import com.redhat.et.libguestfs.*;\n"
22827 #: ../java/examples/guestfs-java.pod:11
22830 " GuestFS g = new GuestFS ();\n"
22831 " g.add_drive_opts (\"disk.img\", null);\n"
22837 #: ../java/examples/guestfs-java.pod:17
22839 "This manual page documents how to call libguestfs from the Java programming "
22840 "language. This page just documents the differences from the C API and gives "
22841 "some examples. If you are not familiar with using libguestfs, you also need "
22842 "to read L<guestfs(3)>."
22846 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22847 msgid "CLOSING THE HANDLE"
22851 #: ../java/examples/guestfs-java.pod:24
22853 "The handle is closed when it is reaped by the garbage collector. Because "
22854 "libguestfs handles include a lot of state, it is also possible to close (and "
22855 "hence free) them explicitly by calling the C<close> method."
22859 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
22860 #: ../python/examples/guestfs-python.pod:21
22861 #: ../ruby/examples/guestfs-ruby.pod:22
22866 #: ../java/examples/guestfs-java.pod:31
22868 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22869 "exception. This has a single parameter which is the error message (a "
22874 #: ../java/examples/guestfs-java.pod:35
22875 msgid "Calling any method on a closed handle raises the same exception."
22879 #: ../java/examples/guestfs-java.pod:47
22881 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
22882 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22883 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22887 #: ../ocaml/examples/guestfs-ocaml.pod:5
22888 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22892 #: ../ocaml/examples/guestfs-ocaml.pod:9
22893 msgid "Module style:"
22897 #: ../ocaml/examples/guestfs-ocaml.pod:11
22900 " let g = Guestfs.create () in\n"
22901 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22902 " Guestfs.launch g;\n"
22907 #: ../ocaml/examples/guestfs-ocaml.pod:15
22908 msgid "Object-oriented style:"
22912 #: ../ocaml/examples/guestfs-ocaml.pod:17
22915 " let g = new Guestfs.guestfs () in\n"
22916 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22922 #: ../ocaml/examples/guestfs-ocaml.pod:21
22925 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22927 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22932 #: ../ocaml/examples/guestfs-ocaml.pod:27
22934 "This manual page documents how to call libguestfs from the OCaml programming "
22935 "language. This page just documents the differences from the C API and gives "
22936 "some examples. If you are not familiar with using libguestfs, you also need "
22937 "to read L<guestfs(3)>."
22941 #: ../ocaml/examples/guestfs-ocaml.pod:32
22942 msgid "PROGRAMMING STYLES"
22946 #: ../ocaml/examples/guestfs-ocaml.pod:34
22948 "There are two different programming styles supported by the OCaml bindings. "
22949 "You can use a module style, with each C function mapped to an OCaml function:"
22953 #: ../ocaml/examples/guestfs-ocaml.pod:38
22956 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22961 #: ../ocaml/examples/guestfs-ocaml.pod:40
22966 #: ../ocaml/examples/guestfs-ocaml.pod:42
22969 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22974 #: ../ocaml/examples/guestfs-ocaml.pod:44
22976 "Alternately you can use an object-oriented style, calling methods on the "
22977 "class C<Guestfs.guestfs>:"
22981 #: ../ocaml/examples/guestfs-ocaml.pod:47
22984 " method set_verbose : bool -> unit\n"
22989 #: ../ocaml/examples/guestfs-ocaml.pod:49
22991 "The object-oriented style is usually briefer, and the minor performance "
22992 "penalty isn't noticable in the general overhead of performing libguestfs "
22997 #: ../ocaml/examples/guestfs-ocaml.pod:55
22999 "The handle is closed when it is reaped by the garbage collector. Because "
23000 "libguestfs handles include a lot of state, it is also possible to close (and "
23001 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
23006 #: ../ocaml/examples/guestfs-ocaml.pod:62
23008 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
23009 "exception. This has a single parameter which is the error message (a "
23014 #: ../ocaml/examples/guestfs-ocaml.pod:66
23016 "Calling any function/method on a closed handle raises C<Guestfs."
23017 "Handle_closed>. The single parameter is the name of the function that you "
23022 #: ../ocaml/examples/guestfs-ocaml.pod:80
23024 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23025 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23026 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23030 #: ../perl/examples/guestfs-perl.pod:5
23031 msgid "guestfs-perl - How to use libguestfs from Perl"
23035 #: ../perl/examples/guestfs-perl.pod:9
23038 " use Sys::Guestfs;\n"
23043 #: ../perl/examples/guestfs-perl.pod:11
23046 " my $h = Sys::Guestfs->new ();\n"
23047 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
23048 " $h->launch ();\n"
23049 " $h->mount_options ('', '/dev/sda1', '/');\n"
23050 " $h->touch ('/hello');\n"
23056 #: ../perl/examples/guestfs-perl.pod:20
23058 "This manual page documents how to call libguestfs from the Perl programming "
23059 "language. This page just documents the differences from the C API and gives "
23060 "some examples. If you are not familiar with using libguestfs, you also need "
23061 "to read L<guestfs(3)>. To read the full Perl API, see L<Sys::Guestfs(3)>."
23065 #: ../perl/examples/guestfs-perl.pod:26
23070 #: ../perl/examples/guestfs-perl.pod:28
23072 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
23077 #: ../perl/examples/guestfs-perl.pod:41
23079 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
23080 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
23081 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23085 #: ../python/examples/guestfs-python.pod:5
23086 msgid "guestfs-python - How to use libguestfs from Python"
23090 #: ../python/examples/guestfs-python.pod:9
23093 " import guestfs\n"
23094 " g = guestfs.GuestFS ()\n"
23095 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
23101 #: ../python/examples/guestfs-python.pod:16
23103 "This manual page documents how to call libguestfs from the Python "
23104 "programming language. This page just documents the differences from the C "
23105 "API and gives some examples. If you are not familiar with using libguestfs, "
23106 "you also need to read L<guestfs(3)>."
23110 #: ../python/examples/guestfs-python.pod:23
23112 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
23113 "single string argument which is the error message."
23117 #: ../python/examples/guestfs-python.pod:26
23118 msgid "MORE DOCUMENTATION"
23122 #: ../python/examples/guestfs-python.pod:28
23127 #: ../python/examples/guestfs-python.pod:30
23131 " >>> import guestfs\n"
23132 " >>> help (guestfs)\n"
23137 #: ../python/examples/guestfs-python.pod:44
23139 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23140 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
23141 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23145 #: ../rescue/virt-rescue.pod:5
23146 msgid "virt-rescue - Run a rescue shell on a virtual machine"
23150 #: ../rescue/virt-rescue.pod:9
23153 " virt-rescue [--options] -d domname\n"
23158 #: ../rescue/virt-rescue.pod:11
23161 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
23166 #: ../rescue/virt-rescue.pod:15
23169 " virt-rescue [--options] domname\n"
23174 #: ../rescue/virt-rescue.pod:17
23177 " virt-rescue [--options] disk.img [disk.img ...]\n"
23182 #: ../rescue/virt-rescue.pod:21
23184 "You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
23185 "probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
23186 "you from doing this, but doesn't catch all cases."
23190 #: ../rescue/virt-rescue.pod:25
23192 "However if you use the I<--ro> (read only) option, then you can attach a "
23193 "shell to a live virtual machine. The results might be strange or "
23194 "inconsistent at times but you won't get disk corruption."
23198 #: ../rescue/virt-rescue.pod:31
23200 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
23201 "need for a CD. virt-rescue gives you a rescue shell and some simple "
23202 "recovery tools which you can use to examine or rescue a virtual machine or "
23207 #: ../rescue/virt-rescue.pod:36
23209 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
23210 "on disk image(s):"
23214 #: ../rescue/virt-rescue.pod:39
23217 " virt-rescue -d GuestName\n"
23222 #: ../rescue/virt-rescue.pod:41
23225 " virt-rescue --ro -a /path/to/disk.img\n"
23230 #: ../rescue/virt-rescue.pod:43
23233 " virt-rescue -a /dev/sdc\n"
23238 #: ../rescue/virt-rescue.pod:45
23239 msgid "For live VMs you I<must> use the --ro option."
23243 #: ../rescue/virt-rescue.pod:47
23245 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23246 "in an interactive bash shell where you can use many ordinary Linux "
23247 "commands. What you see in C</> (C</bin>, C</lib> etc) is the rescue "
23248 "appliance. You must mount the virtual machine's filesystems by hand. There "
23249 "is an empty directory called C</sysroot> where you can mount filesystems."
23253 #: ../rescue/virt-rescue.pod:54
23255 "In the example below, we list logical volumes, then choose one to mount "
23256 "under C</sysroot>:"
23260 #: ../rescue/virt-rescue.pod:57
23264 " LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
23265 " lv_root vg_f11x64 -wi-a- 8.83G\n"
23266 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
23267 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
23268 " ><rescue> ls /sysroot\n"
23273 #: ../rescue/virt-rescue.pod:64
23275 "If you don't know what filesystems are available on the virtual machine then "
23276 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
23280 #: ../rescue/virt-rescue.pod:70
23282 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23283 "virtual machine. For example you can use it on a blank file if you want to "
23284 "partition that file (although we would recommend using L<guestfish(1)> "
23285 "instead as it is more suitable for this purpose). You can even use virt-"
23286 "rescue on things like SD cards."
23290 #: ../rescue/virt-rescue.pod:76
23292 "Virt-rescue does not require root. You only need to run it as root if you "
23293 "need root to open the disk image."
23297 #: ../rescue/virt-rescue.pod:79
23299 "This tool is just designed for quick interactive hacking on a virtual "
23300 "machine. For more structured access to a virtual machine disk image, you "
23301 "should use L<guestfs(3)>. To get a structured shell that you can use to "
23302 "make scripted changes to guests, use L<guestfish(1)>."
23306 #: ../rescue/virt-rescue.pod:103
23307 msgid "B<--append kernelopts>"
23308 msgstr "B<--append параметри_ядра>"
23311 #: ../rescue/virt-rescue.pod:105
23312 msgid "Pass additional options to the rescue kernel."
23316 #: ../rescue/virt-rescue.pod:135
23319 " virt-rescue --format=raw -a disk.img\n"
23324 #: ../rescue/virt-rescue.pod:139
23327 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23332 #: ../rescue/virt-rescue.pod:148
23337 #: ../rescue/virt-rescue.pod:150
23338 msgid "B<--memsize MB>"
23339 msgstr "B<--memsize МБ>"
23342 #: ../rescue/virt-rescue.pod:152
23344 "Change the amount of memory allocated to the rescue system. The default is "
23345 "set by libguestfs and is small but adequate for running system tools. The "
23346 "occasional program might need more memory. The parameter is specified in "
23351 #: ../rescue/virt-rescue.pod:157
23352 msgid "B<--network>"
23353 msgstr "B<--network>"
23356 #: ../rescue/virt-rescue.pod:159
23357 msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
23361 #: ../rescue/virt-rescue.pod:165
23362 msgid "Open the image read-only."
23366 #: ../rescue/virt-rescue.pod:175
23368 "Enable SELinux in the rescue appliance. You should read L<guestfs(3)/"
23369 "SELINUX> before using this option."
23373 #: ../rescue/virt-rescue.pod:178
23378 #: ../rescue/virt-rescue.pod:180
23379 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23383 #: ../rescue/virt-rescue.pod:198
23385 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23386 "are done read-write."
23390 #: ../rescue/virt-rescue.pod:211
23391 msgid "Previous versions of virt-rescue allowed you to write either:"
23395 #: ../rescue/virt-rescue.pod:213
23398 " virt-rescue disk.img [disk.img ...]\n"
23403 #: ../rescue/virt-rescue.pod:217
23406 " virt-rescue guestname\n"
23411 #: ../rescue/virt-rescue.pod:225
23416 #: ../rescue/virt-rescue.pod:227
23418 "Adding the I<--network> option enables QEMU user networking in the rescue "
23419 "appliance. There are some differences between user networking and ordinary "
23424 #: ../rescue/virt-rescue.pod:233
23425 msgid "ping does not work"
23429 #: ../rescue/virt-rescue.pod:235
23431 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23432 "send the ping packets, and because virt-rescue must be able to run as non-"
23433 "root, QEMU user networking is not able to emulate the L<ping(8)> command. "
23434 "The ping command will appear to resolve addresses but will not be able to "
23435 "send or receive any packets. This does not mean that the network is not "
23440 #: ../rescue/virt-rescue.pod:242
23441 msgid "cannot receive connections"
23445 #: ../rescue/virt-rescue.pod:244
23446 msgid "QEMU user networking cannot receive incoming connections."
23450 #: ../rescue/virt-rescue.pod:246
23451 msgid "making TCP connections"
23455 #: ../rescue/virt-rescue.pod:248
23457 "The virt-rescue appliance needs to be small and so does not include many "
23458 "network tools. In particular there is no L<telnet(1)> command. You can "
23459 "make TCP connections from the shell using the magical C</dev/tcp/"
23460 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23464 #: ../rescue/virt-rescue.pod:253
23467 " exec 3<>/dev/tcp/redhat.com/80\n"
23468 " echo \"GET /\" >&3\n"
23474 #: ../rescue/virt-rescue.pod:257
23475 msgid "See L<bash(1)> for more details."
23479 #: ../rescue/virt-rescue.pod:263
23481 "Several environment variables affect virt-rescue. See L<guestfs(3)/"
23482 "ENVIRONMENT VARIABLES> for the complete list."
23486 #: ../rescue/virt-rescue.pod:290
23488 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
23489 "libguestfs.org/>."
23493 #: ../resize/virt-resize.pod:5
23494 msgid "virt-resize - Resize a virtual machine disk"
23498 #: ../resize/virt-resize.pod:9
23501 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23502 " [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23503 " [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23508 #: ../resize/virt-resize.pod:15
23510 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23511 "larger or smaller overall, and resizing or deleting any partitions contained "
23516 #: ../resize/virt-resize.pod:19
23518 "Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
23519 "not> be used on live virtual machines - for consistent results, shut the "
23520 "virtual machine down before resizing it."
23524 #: ../resize/virt-resize.pod:23
23526 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23527 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23531 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597
23532 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:484
23533 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
23538 #: ../resize/virt-resize.pod:33
23540 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23541 "fill the extra 5GB of space."
23545 #: ../resize/virt-resize.pod:36
23548 " virt-filesystems --long -h --all -a olddisk\n"
23553 #: ../resize/virt-resize.pod:38
23556 " truncate -r olddisk newdisk\n"
23557 " truncate -s +5G newdisk\n"
23562 #: ../resize/virt-resize.pod:41
23565 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23566 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23571 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604
23572 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:490
23573 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
23578 #: ../resize/virt-resize.pod:46
23580 "As above, but make the /boot partition 200MB bigger, while giving the "
23581 "remaining space to /dev/sda2:"
23585 #: ../resize/virt-resize.pod:49
23588 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23589 " olddisk newdisk\n"
23594 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610
23595 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:501
23596 #: ../src/guestfs.pod:1451
23601 #: ../resize/virt-resize.pod:54
23603 "As in the first example, but expand a logical volume as the final step. "
23604 "This is what you would typically use for Linux guests that use LVM:"
23608 #: ../resize/virt-resize.pod:58
23611 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23612 " olddisk newdisk\n"
23617 #: ../resize/virt-resize.pod:61
23622 #: ../resize/virt-resize.pod:63
23624 "As in the first example, but the output format will be qcow2 instead of a "
23629 #: ../resize/virt-resize.pod:66
23632 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23633 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23638 #: ../resize/virt-resize.pod:71
23639 msgid "DETAILED USAGE"
23640 msgstr "ДОКЛАДНІШЕ ЩОДО ВИКОРИСТАННЯ"
23643 #: ../resize/virt-resize.pod:73
23644 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23645 msgstr "РОЗШИРЕННЯ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
23648 #: ../resize/virt-resize.pod:77
23649 msgid "1. Shut down the virtual machine"
23653 #: ../resize/virt-resize.pod:79
23654 msgid "2. Locate input disk image"
23658 #: ../resize/virt-resize.pod:81
23660 "Locate the input disk image (ie. the file or device on the host containing "
23661 "the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
23662 "dumpxml> like this to find the disk image name:"
23666 #: ../resize/virt-resize.pod:85
23669 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23670 " Found 1 nodes:\n"
23672 " <source dev=\"/dev/vg/lv_guest\" />\n"
23677 #: ../resize/virt-resize.pod:90
23678 msgid "3. Look at current sizing"
23682 #: ../resize/virt-resize.pod:92
23683 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23687 #: ../resize/virt-resize.pod:95
23690 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23691 " Name Type Size Parent\n"
23692 " /dev/sda1 partition 101M /dev/sda\n"
23693 " /dev/sda2 partition 7.9G /dev/sda\n"
23694 " /dev/sda device 8.0G -\n"
23699 #: ../resize/virt-resize.pod:101
23701 "(This example is a virtual machine with an 8 GB disk which we would like to "
23702 "expand up to 10 GB)."
23706 #: ../resize/virt-resize.pod:104
23707 msgid "4. Create output disk"
23711 #: ../resize/virt-resize.pod:106
23713 "Virt-resize cannot do in-place disk modifications. You have to have space "
23714 "to store the resized output disk."
23718 #: ../resize/virt-resize.pod:109
23720 "To store the resized disk image in a file, create a file of a suitable size:"
23724 #: ../resize/virt-resize.pod:112
23727 " # rm -f outdisk\n"
23728 " # truncate -s 10G outdisk\n"
23733 #: ../resize/virt-resize.pod:115
23734 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23738 #: ../resize/virt-resize.pod:117
23741 " # lvcreate -L 10G -n lv_name vg_name\n"
23746 #: ../resize/virt-resize.pod:119
23747 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23751 #: ../resize/virt-resize.pod:121
23754 " # virsh pool-list\n"
23755 " # virsh vol-create-as poolname newvol 10G\n"
23760 #: ../resize/virt-resize.pod:124
23762 msgstr "5. Зміна розміру"
23765 #: ../resize/virt-resize.pod:126
23767 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23768 "file) and the output disk. The output disk is the one created in the "
23773 #: ../resize/virt-resize.pod:130
23776 " # virt-resize indisk outdisk\n"
23781 #: ../resize/virt-resize.pod:132
23783 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23784 "I<without> resizing or changing any existing partitions. If C<outdisk> is "
23785 "larger, then an extra, empty partition is created at the end of the disk "
23786 "covering the extra space. If C<outdisk> is smaller, then it will give an "
23791 #: ../resize/virt-resize.pod:138
23793 "More realistically you'd want to expand existing partitions in the disk "
23794 "image by passing extra options (for the full list see the L</OPTIONS> "
23799 #: ../resize/virt-resize.pod:142
23801 "L</--expand> is the most useful option. It expands the named partition "
23802 "within the disk to fill any extra space:"
23806 #: ../resize/virt-resize.pod:145
23809 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23814 #: ../resize/virt-resize.pod:147
23816 "(In this case, an extra partition is I<not> created at the end of the disk, "
23817 "because there will be no unused space)."
23821 #: ../resize/virt-resize.pod:150
23823 "L</--resize> is the other commonly used option. The following would "
23824 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23825 "rest of the available space:"
23829 #: ../resize/virt-resize.pod:154
23832 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23833 " indisk outdisk\n"
23838 #: ../resize/virt-resize.pod:157
23840 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23841 "if virt-resize knows how, it will resize the contents, the equivalent of "
23842 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23843 "or L<btrfs(8)>. However virt-resize does not know how to resize some "
23844 "filesystems, so you would have to online resize them after booting the guest."
23848 #: ../resize/virt-resize.pod:164
23849 msgid "Other options are covered below."
23853 #: ../resize/virt-resize.pod:166
23855 msgstr "6. Перевірка"
23858 #: ../resize/virt-resize.pod:168
23859 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23863 #: ../resize/virt-resize.pod:170
23864 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23868 #: ../resize/virt-resize.pod:172
23871 " # virsh edit guestname\n"
23876 #: ../resize/virt-resize.pod:174
23878 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
23879 "html#elementsDisks>"
23883 #: ../resize/virt-resize.pod:177
23884 msgid "Then start up the domain with the new, resized disk:"
23888 #: ../resize/virt-resize.pod:179
23891 " # virsh start guestname\n"
23896 #: ../resize/virt-resize.pod:181
23898 "and check that it still works. See also the L</NOTES> section below for "
23899 "additional information."
23903 #: ../resize/virt-resize.pod:184
23904 msgid "7. Resize LVs etc inside the guest"
23908 #: ../resize/virt-resize.pod:186
23909 msgid "(This can also be done offline using L<guestfish(1)>)"
23913 #: ../resize/virt-resize.pod:188
23915 "Once the guest has booted you should see the new space available, at least "
23916 "for filesystems that virt-resize knows how to resize, and for PVs. The user "
23917 "may need to resize LVs inside PVs, and also resize filesystem types that "
23918 "virt-resize does not know how to expand."
23922 #: ../resize/virt-resize.pod:195
23923 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23927 #: ../resize/virt-resize.pod:197
23929 "Shrinking is somewhat more complex than expanding, and only an overview is "
23934 #: ../resize/virt-resize.pod:200
23936 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23937 "filesystems). The user has to shrink content before passing the disk image "
23938 "to virt-resize, and virt-resize will check that the content has been shrunk "
23943 #: ../resize/virt-resize.pod:205
23944 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23948 #: ../resize/virt-resize.pod:207
23950 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23951 "steps 3 and 4 above to allocate a new disk image."
23955 #: ../resize/virt-resize.pod:210
23957 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23961 #: ../resize/virt-resize.pod:213
23962 msgid "IGNORING OR DELETING PARTITIONS"
23966 #: ../resize/virt-resize.pod:215
23968 "virt-resize also gives a convenient way to ignore or delete partitions when "
23969 "copying from the input disk to the output disk. Ignoring a partition speeds "
23970 "up the copy where you don't care about the existing contents of a "
23971 "partition. Deleting a partition removes it completely, but note that it "
23972 "also renumbers any partitions after the one which is deleted, which can "
23973 "leave some guests unbootable."
23977 #: ../resize/virt-resize.pod:222
23978 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23982 #: ../resize/virt-resize.pod:224
23984 "If the input disk is in qcow2 format, then you may prefer that the output is "
23985 "in qcow2 format as well. Alternately, virt-resize can convert the format on "
23986 "the fly. The output format is simply determined by the format of the empty "
23987 "output container that you provide. Thus to create qcow2 output, use:"
23991 #: ../resize/virt-resize.pod:230
23994 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23999 #: ../resize/virt-resize.pod:232
24000 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
24004 #: ../resize/virt-resize.pod:234
24005 msgid "Similarly, to get non-sparse raw output use:"
24009 #: ../resize/virt-resize.pod:236
24012 " fallocate -l size outdisk\n"
24017 #: ../resize/virt-resize.pod:238
24019 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
24020 "dev/zero of=outdisk bs=1M count=..>)"
24024 #: ../resize/virt-resize.pod:241
24025 msgid "LOGICAL PARTITIONS"
24029 #: ../resize/virt-resize.pod:243
24031 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
24032 "tables) cannot be resized."
24036 #: ../resize/virt-resize.pod:246
24038 "To understand what is going on, firstly one of the four partitions C</dev/"
24039 "sda1-4> will have MBR partition type C<05> or C<0f>. This is called the "
24040 "B<extended partition>. Use L<virt-filesystems(1)> to see the MBR partition "
24045 #: ../resize/virt-resize.pod:251
24046 msgid "Logical partitions live inside the extended partition."
24050 #: ../resize/virt-resize.pod:253
24052 "The extended partition can be expanded, but not shrunk (unless you force it, "
24053 "which is not advisable). When the extended partition is copied across, all "
24054 "the logical partitions contained inside are copied over implicitly. Virt-"
24055 "resize does not look inside the extended partition, so it copies the logical "
24056 "partitions blindly."
24060 #: ../resize/virt-resize.pod:259
24062 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
24063 "line. Doing so will give an error."
24067 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
24068 msgid "Display help."
24072 #: ../resize/virt-resize.pod:270
24073 msgid "B<--align-first auto>"
24077 #: ../resize/virt-resize.pod:272
24078 msgid "B<--align-first never>"
24082 #: ../resize/virt-resize.pod:274
24083 msgid "B<--align-first always>"
24087 #: ../resize/virt-resize.pod:276
24089 "Align the first partition for improved performance (see also the I<--"
24090 "alignment> option)."
24094 #: ../resize/virt-resize.pod:279
24096 "The default is I<--align-first auto> which only aligns the first partition "
24097 "if it is safe to do so. That is, only when we know how to fix the "
24098 "bootloader automatically, and at the moment that can only be done for "
24103 #: ../resize/virt-resize.pod:284
24105 "I<--align-first never> means we never move the first partition. This is the "
24106 "safest option. Try this if the guest does not boot after resizing."
24110 #: ../resize/virt-resize.pod:288
24112 "I<--align-first always> means we always align the first partition (if it "
24113 "needs to be aligned). For some guests this will break the bootloader, "
24114 "making the guest unbootable."
24118 #: ../resize/virt-resize.pod:292
24119 msgid "B<--alignment N>"
24123 #: ../resize/virt-resize.pod:294
24125 "Set the alignment of partitions to C<N> sectors. The default in virt-resize "
24126 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
24130 #: ../resize/virt-resize.pod:298
24132 "Assuming 512 byte sector size inside the guest, here are some suitable "
24137 #: ../resize/virt-resize.pod:303
24138 msgid "I<--alignment 1> (512 bytes)"
24142 #: ../resize/virt-resize.pod:305
24144 "The partitions would be packed together as closely as possible, but would be "
24145 "completely unaligned. In some cases this can cause very poor performance. "
24146 "See L<virt-alignment-scan(1)> for further details."
24150 #: ../resize/virt-resize.pod:309
24151 msgid "I<--alignment 8> (4K)"
24155 #: ../resize/virt-resize.pod:311
24157 "This would be the minimum acceptable alignment for reasonable performance on "
24162 #: ../resize/virt-resize.pod:314
24163 msgid "I<--alignment 128> (64K)"
24167 #: ../resize/virt-resize.pod:316
24169 "This alignment provides good performance when the host is using high end "
24174 #: ../resize/virt-resize.pod:319
24175 msgid "I<--alignment 2048> (1M)"
24179 #: ../resize/virt-resize.pod:321
24181 "This is the standard alignment used by all newly installed guests since "
24186 #: ../resize/virt-resize.pod:326
24191 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
24192 #: ../tools/virt-win-reg.pl:120
24194 msgstr "B<--debug>"
24197 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
24198 msgid "Enable debugging messages."
24202 #: ../resize/virt-resize.pod:332
24203 msgid "B<--delete part>"
24204 msgstr "B<--delete розділ>"
24207 #: ../resize/virt-resize.pod:334
24209 "Delete the named partition. It would be more accurate to describe this as "
24210 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24211 "the original disk image is left intact."
24215 #: ../resize/virt-resize.pod:338
24217 "Note that when you delete a partition, then anything contained in the "
24218 "partition is also deleted. Furthermore, this causes any partitions that "
24219 "come after to be I<renumbered>, which can easily make your guest unbootable."
24223 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404
24224 #: ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:145
24225 msgid "You can give this option multiple times."
24229 #: ../resize/virt-resize.pod:345
24230 msgid "B<--expand part>"
24231 msgstr "B<--expand розділ>"
24234 #: ../resize/virt-resize.pod:347
24236 "Expand the named partition so it uses up all extra space (space left over "
24237 "after any other resize changes that you request have been done)."
24241 #: ../resize/virt-resize.pod:350
24243 "If virt-resize knows how, it will expand the direct content of the "
24244 "partition. For example, if the partition is an LVM PV, it will expand the "
24245 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
24246 "content it doesn't know about alone."
24250 #: ../resize/virt-resize.pod:355
24251 msgid "Currently virt-resize can resize:"
24255 #: ../resize/virt-resize.pod:361
24256 msgid "ext2, ext3 and ext4 filesystems."
24260 #: ../resize/virt-resize.pod:365
24261 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24265 #: ../resize/virt-resize.pod:367
24267 "The filesystem must have been shut down consistently last time it was used. "
24268 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
24269 "consistency check, so at the first boot after resizing Windows will check "
24274 #: ../resize/virt-resize.pod:374
24276 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
24277 "inside the PV, but see the I<--LV-expand> option. The user could also "
24278 "resize LVs as desired after boot."
24282 #: ../resize/virt-resize.pod:380
24283 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
24287 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
24288 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
24292 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:125
24293 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
24294 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
24295 msgid "B<--format> raw"
24296 msgstr "B<--format> raw"
24299 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:129
24301 "Specify the format of the input disk image. If this flag is not given then "
24302 "it is auto-detected from the image itself."
24306 #: ../resize/virt-resize.pod:394
24308 "Note that this option I<does not> affect the output format. See L</QCOW2 "
24309 "AND NON-SPARSE RAW FORMATS>."
24313 #: ../resize/virt-resize.pod:397
24314 msgid "B<--ignore part>"
24315 msgstr "B<--ignore розділ>"
24318 #: ../resize/virt-resize.pod:399
24320 "Ignore the named partition. Effectively this means the partition is "
24321 "allocated on the destination disk, but the content is not copied across from "
24322 "the source disk. The content of the partition will be blank (all zero "
24327 #: ../resize/virt-resize.pod:406
24328 msgid "B<--LV-expand logvol>"
24329 msgstr "B<--LV-expand логічний_том>"
24332 #: ../resize/virt-resize.pod:408
24334 "This takes the logical volume and, as a final step, expands it to fill all "
24335 "the space available in its volume group. A typical usage, assuming a Linux "
24336 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
24337 "lv_root> would be:"
24341 #: ../resize/virt-resize.pod:413
24344 " virt-resize indisk outdisk \\\n"
24345 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24350 #: ../resize/virt-resize.pod:416
24352 "This would first expand the partition (and PV), and then expand the root "
24353 "device to fill the extra space in the PV."
24357 #: ../resize/virt-resize.pod:419
24359 "The contents of the LV are also resized if virt-resize knows how to do "
24360 "that. You can stop virt-resize from trying to expand the content by using "
24361 "the option I<--no-expand-content>."
24365 #: ../resize/virt-resize.pod:423
24366 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24370 #: ../resize/virt-resize.pod:425
24372 "You can give this option multiple times, I<but> it doesn't make sense to do "
24373 "this unless the logical volumes you specify are all in different volume "
24378 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:147
24379 msgid "B<--machine-readable>"
24383 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:149
24385 "This option is used to make the output more machine friendly when being "
24386 "parsed by other programs. See L</MACHINE READABLE OUTPUT> below."
24390 #: ../resize/virt-resize.pod:437
24391 msgid "B<--dryrun>"
24392 msgstr "B<--dryrun>"
24395 #: ../resize/virt-resize.pod:439
24396 msgid "Print a summary of what would be done, but don't do anything."
24400 #: ../resize/virt-resize.pod:441
24401 msgid "B<--no-copy-boot-loader>"
24402 msgstr "B<--no-copy-boot-loader>"
24405 #: ../resize/virt-resize.pod:443
24407 "By default, virt-resize copies over some sectors at the start of the disk "
24408 "(up to the beginning of the first partition). Commonly these sectors "
24409 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24410 "in order for the guest to boot correctly."
24414 #: ../resize/virt-resize.pod:448
24416 "If you specify this flag, then this initial copy is not done. You may need "
24417 "to reinstall the boot loader in this case."
24421 #: ../resize/virt-resize.pod:451
24422 msgid "B<--no-extra-partition>"
24423 msgstr "B<--no-extra-partition>"
24426 #: ../resize/virt-resize.pod:453
24428 "By default, virt-resize creates an extra partition if there is any extra, "
24429 "unused space after all resizing has happened. Use this option to prevent "
24430 "the extra partition from being created. If you do this then the extra space "
24431 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24432 "tool in the guest."
24436 #: ../resize/virt-resize.pod:459
24438 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24443 #: ../resize/virt-resize.pod:462
24444 msgid "B<--no-expand-content>"
24445 msgstr "B<--no-expand-content>"
24448 #: ../resize/virt-resize.pod:464
24450 "By default, virt-resize will try to expand the direct contents of "
24451 "partitions, if it knows how (see I<--expand> option above)."
24455 #: ../resize/virt-resize.pod:467
24457 "If you give the I<--no-expand-content> option then virt-resize will not "
24462 #: ../resize/virt-resize.pod:470
24463 msgid "B<--ntfsresize-force>"
24464 msgstr "B<--ntfsresize-force>"
24467 #: ../resize/virt-resize.pod:472
24469 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24470 "the NTFS disk is marked as needing a consistency check. You have to use "
24471 "this option if you want to resize a Windows guest multiple times without "
24472 "booting into Windows between each resize."
24476 #: ../resize/virt-resize.pod:478
24477 msgid "B<--output-format> raw"
24478 msgstr "B<--output-format> raw"
24481 #: ../resize/virt-resize.pod:480
24483 "Specify the format of the output disk image. If this flag is not given then "
24484 "it is auto-detected from the image itself."
24488 #: ../resize/virt-resize.pod:486
24490 "Note that this option I<does not create> the output format. This option "
24491 "just tells libguestfs what it is so it doesn't try to guess it. You still "
24492 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
24493 "SPARSE RAW FORMATS>."
24497 #: ../resize/virt-resize.pod:495
24498 msgid "Don't print the summary."
24502 #: ../resize/virt-resize.pod:497
24503 msgid "B<--resize part=size>"
24504 msgstr "B<--resize розділ=розмір>"
24507 #: ../resize/virt-resize.pod:499
24509 "Resize the named partition (expanding or shrinking it) so that it has the "
24514 #: ../resize/virt-resize.pod:502
24516 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24517 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24518 "size; or as a relative number or percentage. For example:"
24522 #: ../resize/virt-resize.pod:508
24525 " --resize /dev/sda2=10G\n"
24530 #: ../resize/virt-resize.pod:510
24533 " --resize /dev/sda4=90%\n"
24538 #: ../resize/virt-resize.pod:512
24541 " --resize /dev/sda2=+1G\n"
24546 #: ../resize/virt-resize.pod:514
24549 " --resize /dev/sda2=-200M\n"
24554 #: ../resize/virt-resize.pod:516
24557 " --resize /dev/sda1=+128K\n"
24562 #: ../resize/virt-resize.pod:518
24565 " --resize /dev/sda1=+10%\n"
24570 #: ../resize/virt-resize.pod:520
24573 " --resize /dev/sda1=-10%\n"
24578 #: ../resize/virt-resize.pod:522
24580 "You can increase the size of any partition. Virt-resize will expand the "
24581 "direct content of the partition if it knows how (see I<--expand> below)."
24585 #: ../resize/virt-resize.pod:526
24587 "You can only I<decrease> the size of partitions that contain filesystems or "
24588 "PVs which have already been shrunk. Virt-resize will check this has been "
24589 "done before proceeding, or else will print an error (see also I<--resize-"
24594 #: ../resize/virt-resize.pod:533
24595 msgid "B<--resize-force part=size>"
24596 msgstr "B<--resize-force розділ=розмір>"
24599 #: ../resize/virt-resize.pod:535
24601 "This is the same as I<--resize> except that it will let you decrease the "
24602 "size of any partition. Generally this means you will lose any data which "
24603 "was at the end of the partition you shrink, but you may not care about that "
24604 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24605 "as a swap partition)."
24609 #: ../resize/virt-resize.pod:541
24610 msgid "See also the I<--ignore> option."
24614 #: ../resize/virt-resize.pod:543
24615 msgid "B<--shrink part>"
24616 msgstr "B<--shrink розділ>"
24619 #: ../resize/virt-resize.pod:545
24621 "Shrink the named partition until the overall disk image fits in the "
24622 "destination. The named partition B<must> contain a filesystem or PV which "
24623 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24624 "online tools). Virt-resize will check this and give an error if it has not "
24629 #: ../resize/virt-resize.pod:551
24631 "The amount by which the overall disk must be shrunk (after carrying out all "
24632 "other operations requested by the user) is called the \"deficit\". For "
24633 "example, a straight copy (assume no other operations) from a 5GB disk image "
24634 "to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
24635 "would give an error unless the user specified a partition to shrink and that "
24636 "partition had more than a gigabyte of free space."
24640 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:177
24641 msgid "MACHINE READABLE OUTPUT"
24645 #: ../resize/virt-resize.pod:571
24647 "The I<--machine-readable> option can be used to make the output more machine "
24648 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24653 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:183
24654 msgid "There are two ways to use this option."
24658 #: ../resize/virt-resize.pod:577
24660 "Firstly use the option on its own to query the capabilities of the virt-"
24661 "resize binary. Typical output looks like this:"
24665 #: ../resize/virt-resize.pod:580
24668 " $ virt-resize --machine-readable\n"
24670 " ntfsresize-force\n"
24678 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:193
24680 "A list of features is printed, one per line, and the program exits with "
24685 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:196
24687 "Secondly use the option in conjunction with other options to make the "
24688 "regular program output more machine friendly."
24692 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:199
24693 msgid "At the moment this means:"
24697 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:205
24699 "Progress bar messages can be parsed from stdout by looking for this regular "
24704 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:208
24707 " ^[0-9]+/[0-9]+$\n"
24712 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:212
24714 "The calling program should treat messages sent to stdout (except for "
24715 "progress bar messages) as status messages. They can be logged and/or "
24716 "displayed to the user."
24720 #: ../resize/virt-resize.pod:612
24722 "The calling program should treat messages sent to stderr as error messages. "
24723 "In addition, virt-resize exits with a non-zero status code if there was a "
24728 #: ../resize/virt-resize.pod:618
24730 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
24731 "readable> option and will return an error."
24735 #: ../resize/virt-resize.pod:623
24736 msgid "\"Partition 1 does not end on cylinder boundary.\""
24740 #: ../resize/virt-resize.pod:625
24742 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
24743 "alignment> parameter). Usually this means the partitions will not be "
24744 "aligned to the ancient CHS geometry. However CHS geometry is meaningless "
24745 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24746 "drives. Alignment of partitions to cylinders is not required by any modern "
24747 "operating system."
24751 #: ../resize/virt-resize.pod:632
24752 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24756 #: ../resize/virt-resize.pod:634
24758 "In Windows Vista and later versions, Microsoft switched to using a separate "
24759 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
24760 "and C</dev/sda2> is the main (C:) drive. Resizing the first (boot) "
24761 "partition causes the bootloader to fail with C<0xC0000225> error. Resizing "
24762 "the second partition (ie. C: drive) should work."
24766 #: ../resize/virt-resize.pod:641
24768 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24769 "NTFS partitions have been expanded. This is just a safety check and (unless "
24770 "it find errors) is nothing to worry about."
24774 #: ../resize/virt-resize.pod:645
24775 msgid "GUEST BOOT STUCK AT \"GRUB\""
24779 #: ../resize/virt-resize.pod:647
24781 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24782 "printing C<GRUB> on the console, try reinstalling grub."
24786 #: ../resize/virt-resize.pod:650
24789 " guestfish -i -a newdisk\n"
24790 " ><fs> cat /boot/grub/device.map\n"
24791 " # check the contents of this file are sensible or\n"
24792 " # edit the file if necessary\n"
24793 " ><fs> grub-install / /dev/vda\n"
24799 #: ../resize/virt-resize.pod:657
24801 "For more flexible guest reconfiguration, including if you need to specify "
24802 "other parameters to grub-install, use L<virt-rescue(1)>."
24806 #: ../resize/virt-resize.pod:660
24807 msgid "ALTERNATIVE TOOLS"
24811 #: ../resize/virt-resize.pod:662
24813 "There are several proprietary tools for resizing partitions. We won't "
24814 "mention any here."
24818 #: ../resize/virt-resize.pod:665
24820 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24821 "operations on disk images. They can resize and move partitions, but I don't "
24822 "think they can do anything with the contents, and they certainly don't "
24827 #: ../resize/virt-resize.pod:670
24829 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24830 "but at a much lower level. You will probably end up hand-calculating sector "
24831 "offsets, which is something that virt-resize was designed to avoid. If you "
24832 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24837 #: ../resize/virt-resize.pod:690
24839 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
24840 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
24841 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
24842 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
24843 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24847 #: ../ruby/examples/guestfs-ruby.pod:5
24848 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24852 #: ../ruby/examples/guestfs-ruby.pod:9
24855 " require 'guestfs'\n"
24856 " g = Guestfs::Guestfs.new()\n"
24857 " g.add_drive_opts(\"disk.img\",\n"
24858 " :readonly => 1, :format => \"raw\")\n"
24864 #: ../ruby/examples/guestfs-ruby.pod:17
24866 "This manual page documents how to call libguestfs from the Ruby programming "
24867 "language. This page just documents the differences from the C API and gives "
24868 "some examples. If you are not familiar with using libguestfs, you also need "
24869 "to read L<guestfs(3)>."
24873 #: ../ruby/examples/guestfs-ruby.pod:24
24875 "Errors from libguestfs functions are mapped into the C<Error> exception. "
24876 "This has a single parameter which is the error message (a string)."
24880 #: ../ruby/examples/guestfs-ruby.pod:38
24882 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24883 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
24884 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24888 #: ../sparsify/virt-sparsify.pod:5
24889 msgid "virt-sparsify - Make a virtual machine disk sparse"
24893 #: ../sparsify/virt-sparsify.pod:9
24896 " virt-sparsify [--options] indisk outdisk\n"
24901 #: ../sparsify/virt-sparsify.pod:13
24903 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24904 "image) sparse a.k.a. thin-provisioned. This means that free space within "
24905 "the disk image can be converted back to free space on the host."
24909 #: ../sparsify/virt-sparsify.pod:18
24911 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
24912 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24916 #: ../sparsify/virt-sparsify.pod:21
24918 "Virt-sparsify can also convert between some disk formats, for example "
24919 "converting a raw disk image to a thin-provisioned qcow2 image."
24923 #: ../sparsify/virt-sparsify.pod:24
24925 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24926 "machines. If a virtual machine has more than one attached disk, you must "
24927 "sparsify each one separately."
24931 #: ../sparsify/virt-sparsify.pod:28
24932 msgid "IMPORTANT LIMITATIONS"
24936 #: ../sparsify/virt-sparsify.pod:34
24938 "Virt-sparsify does not do in-place modifications. It copies from a source "
24939 "image to a destination image, leaving the source unchanged. I<Check that "
24940 "the sparsification was successful before deleting the source image>."
24944 #: ../sparsify/virt-sparsify.pod:41
24945 msgid "The virtual machine I<must be shut down> before using this tool."
24949 #: ../sparsify/virt-sparsify.pod:45
24951 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24952 "(1 temporary copy + 1 destination image). This is in the worst case and "
24953 "usually much less space is required."
24957 #: ../sparsify/virt-sparsify.pod:51
24959 "Virt-sparsify cannot resize disk images. To do that, use L<virt-resize(1)>."
24963 #: ../sparsify/virt-sparsify.pod:56
24964 msgid "Virt-sparsify cannot handle encrypted disks."
24968 #: ../sparsify/virt-sparsify.pod:60
24970 "Virt-sparsify cannot yet sparsify the space between partitions. Note that "
24971 "this space is often used for critical items like bootloaders so it's not "
24976 #: ../sparsify/virt-sparsify.pod:66
24978 "Virt-sparsify does not yet know how to sparsify swapspace. It is not safe "
24979 "to do this unless we can be sure there is no hibernation data, so at the "
24980 "moment swap partitions are ignored."
24984 #: ../sparsify/virt-sparsify.pod:72
24986 "You may also want to read the manual pages for the associated tools L<virt-"
24987 "filesystems(1)> and L<virt-df(1)> before starting."
24991 #: ../sparsify/virt-sparsify.pod:77
24992 msgid "Typical usage is:"
24996 #: ../sparsify/virt-sparsify.pod:79
24999 " virt-sparsify indisk outdisk\n"
25004 #: ../sparsify/virt-sparsify.pod:81
25006 "which copies C<indisk> to C<outdisk>, making the output sparse. C<outdisk> "
25007 "is created, or overwritten if it already exists. The format of the input "
25008 "disk is detected (eg. qcow2) and the same format is used for the output disk."
25012 #: ../sparsify/virt-sparsify.pod:86
25013 msgid "To convert between formats, use the I<--convert> option:"
25017 #: ../sparsify/virt-sparsify.pod:88
25020 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
25025 #: ../sparsify/virt-sparsify.pod:90
25027 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
25028 "can find within the source disk image. You can get it to ignore (don't zero "
25029 "free space on) certain filesystems by doing:"
25033 #: ../sparsify/virt-sparsify.pod:94
25036 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
25041 #: ../sparsify/virt-sparsify.pod:96
25043 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
25047 #: ../sparsify/virt-sparsify.pod:107
25048 msgid "B<--convert> raw"
25052 #: ../sparsify/virt-sparsify.pod:109
25053 msgid "B<--convert> qcow2"
25057 #: ../sparsify/virt-sparsify.pod:111
25058 msgid "B<--convert> [other formats]"
25062 #: ../sparsify/virt-sparsify.pod:113
25064 "Use C<output-format> as the format for the destination image. If this is "
25065 "not specified, then the input format is used."
25069 #: ../sparsify/virt-sparsify.pod:116
25070 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
25074 #: ../sparsify/virt-sparsify.pod:118
25076 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
25077 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
25081 #: ../sparsify/virt-sparsify.pod:122
25083 "Specifying the I<--convert> option is usually a good idea, because then virt-"
25084 "sparsify doesn't need to try to guess the input format."
25088 #: ../sparsify/virt-sparsify.pod:127
25089 msgid "B<--format> qcow2"
25093 #: ../sparsify/virt-sparsify.pod:135
25094 msgid "B<--ignore> filesystem"
25098 #: ../sparsify/virt-sparsify.pod:137
25099 msgid "B<--ignore> volgroup"
25103 #: ../sparsify/virt-sparsify.pod:139
25105 "Ignore the named filesystem. Free space on the filesystem will not be "
25106 "zeroed, but existing blocks of zeroes will still be sparsified."
25110 #: ../sparsify/virt-sparsify.pod:142
25112 "In the second form, this ignores the named volume group. Use the volume "
25113 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25117 #: ../sparsify/virt-sparsify.pod:157
25118 msgid "This disables progress bars and other unnecessary output."
25122 #: ../sparsify/virt-sparsify.pod:179
25124 "The I<--machine-readable> option can be used to make the output more machine "
25125 "friendly, which is useful when calling virt-sparsify from other programs, "
25130 #: ../sparsify/virt-sparsify.pod:185
25132 "Firstly use the option on its own to query the capabilities of the virt-"
25133 "sparsify binary. Typical output looks like this:"
25137 #: ../sparsify/virt-sparsify.pod:188
25140 " $ virt-sparsify --machine-readable\n"
25148 #: ../sparsify/virt-sparsify.pod:218
25150 "The calling program should treat messages sent to stderr as error messages. "
25151 "In addition, virt-sparsify exits with a non-zero status code if there was a "
25156 #: ../sparsify/virt-sparsify.pod:224
25158 "All versions of virt-sparsify have supported the I<--machine-readable> "
25163 #: ../sparsify/virt-sparsify.pod:238
25165 "Location of the temporary directory used for the potentially large temporary "
25170 #: ../sparsify/virt-sparsify.pod:241
25172 "You should ensure there is enough free space in the worst case for a full "
25173 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
25174 "to another directory that has enough space."
25178 #: ../sparsify/virt-sparsify.pod:245
25179 msgid "This defaults to C</tmp>."
25183 #: ../sparsify/virt-sparsify.pod:249
25185 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
25189 #: ../sparsify/virt-sparsify.pod:253
25191 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
25192 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
25193 "(1)>, L<http://libguestfs.org/>."
25197 #: ../src/guestfs-actions.pod:1
25198 msgid "guestfs_add_cdrom"
25202 #: ../src/guestfs-actions.pod:3
25206 " guestfs_add_cdrom (guestfs_h *g,\n"
25207 " const char *filename);\n"
25212 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
25213 #: ../src/guestfs-actions.pod:323
25215 "I<This function is deprecated.> In new code, use the L</"
25216 "guestfs_add_drive_opts> call instead."
25220 #: ../src/guestfs-actions.pod:24
25222 "This call checks for the existence of C<filename>. This stops you from "
25223 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25224 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call "
25229 #: ../src/guestfs-actions.pod:31
25231 "If you just want to add an ISO file (often you use this as an efficient way "
25232 "to transfer large files into the guest), then you should probably use "
25233 "C<guestfs_add_drive_ro> instead."
25237 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
25238 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
25239 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
25240 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
25241 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
25242 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
25243 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
25244 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
25245 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734
25246 #: ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851
25247 #: ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879
25248 #: ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099
25249 #: ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137
25250 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286
25251 #: ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372
25252 #: ../src/guestfs-actions.pod:1425 ../src/guestfs-actions.pod:1478
25253 #: ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1590
25254 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1623
25255 #: ../src/guestfs-actions.pod:1651 ../src/guestfs-actions.pod:1721
25256 #: ../src/guestfs-actions.pod:1752 ../src/guestfs-actions.pod:1777
25257 #: ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1932
25258 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2174
25259 #: ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2283
25260 #: ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2935
25261 #: ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3031
25262 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4103
25263 #: ../src/guestfs-actions.pod:4128 ../src/guestfs-actions.pod:4317
25264 #: ../src/guestfs-actions.pod:4331 ../src/guestfs-actions.pod:4344
25265 #: ../src/guestfs-actions.pod:4358 ../src/guestfs-actions.pod:4373
25266 #: ../src/guestfs-actions.pod:4409 ../src/guestfs-actions.pod:4481
25267 #: ../src/guestfs-actions.pod:4501 ../src/guestfs-actions.pod:4518
25268 #: ../src/guestfs-actions.pod:4538 ../src/guestfs-actions.pod:4558
25269 #: ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4612
25270 #: ../src/guestfs-actions.pod:4631 ../src/guestfs-actions.pod:4666
25271 #: ../src/guestfs-actions.pod:4678 ../src/guestfs-actions.pod:4711
25272 #: ../src/guestfs-actions.pod:4727 ../src/guestfs-actions.pod:4740
25273 #: ../src/guestfs-actions.pod:4755 ../src/guestfs-actions.pod:4772
25274 #: ../src/guestfs-actions.pod:4865 ../src/guestfs-actions.pod:4885
25275 #: ../src/guestfs-actions.pod:4898 ../src/guestfs-actions.pod:4949
25276 #: ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4985
25277 #: ../src/guestfs-actions.pod:5001 ../src/guestfs-actions.pod:5015
25278 #: ../src/guestfs-actions.pod:5029 ../src/guestfs-actions.pod:5046
25279 #: ../src/guestfs-actions.pod:5061 ../src/guestfs-actions.pod:5088
25280 #: ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5224
25281 #: ../src/guestfs-actions.pod:5255 ../src/guestfs-actions.pod:5274
25282 #: ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5305
25283 #: ../src/guestfs-actions.pod:5322 ../src/guestfs-actions.pod:5335
25284 #: ../src/guestfs-actions.pod:5350 ../src/guestfs-actions.pod:5365
25285 #: ../src/guestfs-actions.pod:5397 ../src/guestfs-actions.pod:5423
25286 #: ../src/guestfs-actions.pod:5462 ../src/guestfs-actions.pod:5482
25287 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5513
25288 #: ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5615
25289 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5705
25290 #: ../src/guestfs-actions.pod:5733 ../src/guestfs-actions.pod:5750
25291 #: ../src/guestfs-actions.pod:5768 ../src/guestfs-actions.pod:5905
25292 #: ../src/guestfs-actions.pod:5962 ../src/guestfs-actions.pod:5984
25293 #: ../src/guestfs-actions.pod:6002 ../src/guestfs-actions.pod:6054
25294 #: ../src/guestfs-actions.pod:6120 ../src/guestfs-actions.pod:6137
25295 #: ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6164
25296 #: ../src/guestfs-actions.pod:6453 ../src/guestfs-actions.pod:6472
25297 #: ../src/guestfs-actions.pod:6491 ../src/guestfs-actions.pod:6505
25298 #: ../src/guestfs-actions.pod:6517 ../src/guestfs-actions.pod:6531
25299 #: ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6557
25300 #: ../src/guestfs-actions.pod:6573 ../src/guestfs-actions.pod:6591
25301 #: ../src/guestfs-actions.pod:6610 ../src/guestfs-actions.pod:6629
25302 #: ../src/guestfs-actions.pod:6659 ../src/guestfs-actions.pod:6677
25303 #: ../src/guestfs-actions.pod:6700 ../src/guestfs-actions.pod:6718
25304 #: ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:6758
25305 #: ../src/guestfs-actions.pod:6777 ../src/guestfs-actions.pod:6794
25306 #: ../src/guestfs-actions.pod:6813 ../src/guestfs-actions.pod:6841
25307 #: ../src/guestfs-actions.pod:6865 ../src/guestfs-actions.pod:6884
25308 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-actions.pod:6924
25309 #: ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6958
25310 #: ../src/guestfs-actions.pod:6977 ../src/guestfs-actions.pod:7021
25311 #: ../src/guestfs-actions.pod:7048 ../src/guestfs-actions.pod:7078
25312 #: ../src/guestfs-actions.pod:7190 ../src/guestfs-actions.pod:7311
25313 #: ../src/guestfs-actions.pod:7323 ../src/guestfs-actions.pod:7336
25314 #: ../src/guestfs-actions.pod:7349 ../src/guestfs-actions.pod:7371
25315 #: ../src/guestfs-actions.pod:7384 ../src/guestfs-actions.pod:7397
25316 #: ../src/guestfs-actions.pod:7410 ../src/guestfs-actions.pod:7425
25317 #: ../src/guestfs-actions.pod:7484 ../src/guestfs-actions.pod:7501
25318 #: ../src/guestfs-actions.pod:7517 ../src/guestfs-actions.pod:7533
25319 #: ../src/guestfs-actions.pod:7550 ../src/guestfs-actions.pod:7563
25320 #: ../src/guestfs-actions.pod:7583 ../src/guestfs-actions.pod:7619
25321 #: ../src/guestfs-actions.pod:7633 ../src/guestfs-actions.pod:7674
25322 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7705
25323 #: ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7775
25324 #: ../src/guestfs-actions.pod:7891 ../src/guestfs-actions.pod:7906
25325 #: ../src/guestfs-actions.pod:7920 ../src/guestfs-actions.pod:7975
25326 #: ../src/guestfs-actions.pod:7988 ../src/guestfs-actions.pod:8033
25327 #: ../src/guestfs-actions.pod:8073 ../src/guestfs-actions.pod:8129
25328 #: ../src/guestfs-actions.pod:8149 ../src/guestfs-actions.pod:8182
25329 #: ../src/guestfs-actions.pod:8246 ../src/guestfs-actions.pod:8269
25330 #: ../src/guestfs-actions.pod:8295
25331 msgid "This function returns 0 on success or -1 on error."
25335 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
25336 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2397
25337 #: ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2620
25338 #: ../src/guestfs-actions.pod:4090 ../src/guestfs-actions.pod:4110
25339 #: ../src/guestfs-actions.pod:5399 ../src/guestfs-actions.pod:6679
25340 #: ../src/guestfs-actions.pod:6796 ../src/guestfs-actions.pod:6945
25341 #: ../src/guestfs-actions.pod:7427 ../src/guestfs-actions.pod:7552
25342 #: ../src/guestfs-actions.pod:8075
25343 msgid "(Added in 0.3)"
25344 msgstr "(Додано у 0.3)"
25347 #: ../src/guestfs-actions.pod:41
25348 msgid "guestfs_add_domain"
25352 #: ../src/guestfs-actions.pod:43
25356 " guestfs_add_domain (guestfs_h *g,\n"
25357 " const char *dom,\n"
25363 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
25364 #: ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214
25365 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344
25366 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466
25367 #: ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:3288
25368 #: ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5409
25369 #: ../src/guestfs-actions.pod:5626
25371 "You may supply a list of optional arguments to this call. Use zero or more "
25372 "of the following pairs of parameters, and terminate the list with C<-1> on "
25373 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
25377 #: ../src/guestfs-actions.pod:53
25380 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25381 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25382 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25383 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25384 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25385 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
25390 #: ../src/guestfs-actions.pod:60
25392 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
25393 "It works by connecting to libvirt, requesting the domain and domain XML from "
25394 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25399 #: ../src/guestfs-actions.pod:141
25401 "The other optional parameters are passed directly through to "
25402 "C<guestfs_add_drive_opts>."
25406 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
25407 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751
25408 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
25409 #: ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1797
25410 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2356
25411 #: ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2518
25412 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2584
25413 #: ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2922
25414 #: ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424
25415 #: ../src/guestfs-actions.pod:5585 ../src/guestfs-actions.pod:5802
25416 #: ../src/guestfs-actions.pod:6040 ../src/guestfs-actions.pod:6234
25417 #: ../src/guestfs-actions.pod:6260 ../src/guestfs-actions.pod:7660
25418 #: ../src/guestfs-actions.pod:8086 ../src/guestfs-actions.pod:8099
25419 #: ../src/guestfs-actions.pod:8112
25420 msgid "On error this function returns -1."
25424 #: ../src/guestfs-actions.pod:146
25425 msgid "(Added in 1.7.4)"
25426 msgstr "(Додано у 1.7.4)"
25429 #: ../src/guestfs-actions.pod:148
25430 msgid "guestfs_add_domain_va"
25434 #: ../src/guestfs-actions.pod:150
25438 " guestfs_add_domain_va (guestfs_h *g,\n"
25439 " const char *dom,\n"
25440 " va_list args);\n"
25445 #: ../src/guestfs-actions.pod:155
25446 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25450 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
25451 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
25452 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940
25453 #: ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255
25454 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314
25455 #: ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1403
25456 #: ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456
25457 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1509
25458 #: ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1567
25459 #: ../src/guestfs-actions.pod:3372 ../src/guestfs-actions.pod:3384
25460 #: ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5177
25461 #: ../src/guestfs-actions.pod:5437 ../src/guestfs-actions.pod:5449
25462 #: ../src/guestfs-actions.pod:5675 ../src/guestfs-actions.pod:5686
25463 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25464 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
25467 #: ../src/guestfs-actions.pod:159
25468 msgid "guestfs_add_domain_argv"
25469 msgstr "guestfs_add_domain_argv"
25472 #: ../src/guestfs-actions.pod:161
25476 " guestfs_add_domain_argv (guestfs_h *g,\n"
25477 " const char *dom,\n"
25478 " const struct guestfs_add_domain_argv *optargs);\n"
25483 #: ../src/guestfs-actions.pod:166
25484 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25488 #: ../src/guestfs-actions.pod:170
25489 msgid "guestfs_add_drive"
25493 #: ../src/guestfs-actions.pod:172
25497 " guestfs_add_drive (guestfs_h *g,\n"
25498 " const char *filename);\n"
25503 #: ../src/guestfs-actions.pod:176
25505 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
25506 "optional parameters, so the disk is added writable, with the format being "
25507 "detected automatically."
25511 #: ../src/guestfs-actions.pod:180
25513 "Automatic detection of the format opens you up to a potential security hole "
25514 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
25515 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
25516 "you should think about replacing calls to this function with calls to "
25517 "C<guestfs_add_drive_opts>, and specifying the format."
25521 #: ../src/guestfs-actions.pod:191
25522 msgid "guestfs_add_drive_opts"
25526 #: ../src/guestfs-actions.pod:193
25530 " guestfs_add_drive_opts (guestfs_h *g,\n"
25531 " const char *filename,\n"
25537 #: ../src/guestfs-actions.pod:203
25540 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25541 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25542 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25543 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
25548 #: ../src/guestfs-actions.pod:233
25550 "This forces the image format. If you omit this (or use C<guestfs_add_drive> "
25551 "or C<guestfs_add_drive_ro>) then the format is automatically detected. "
25552 "Possible formats include C<raw> and C<qcow2>."
25556 #: ../src/guestfs-actions.pod:244
25558 "This rarely-used option lets you emulate the behaviour of the deprecated "
25559 "C<guestfs_add_drive_with_if> call (q.v.)"
25563 #: ../src/guestfs-actions.pod:256
25564 msgid "(Added in 1.5.23)"
25565 msgstr "(Додано у 1.5.23)"
25568 #: ../src/guestfs-actions.pod:258
25569 msgid "guestfs_add_drive_opts_va"
25573 #: ../src/guestfs-actions.pod:260
25577 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25578 " const char *filename,\n"
25579 " va_list args);\n"
25584 #: ../src/guestfs-actions.pod:265
25585 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25589 #: ../src/guestfs-actions.pod:269
25590 msgid "guestfs_add_drive_opts_argv"
25594 #: ../src/guestfs-actions.pod:271
25598 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25599 " const char *filename,\n"
25600 " const struct guestfs_add_drive_opts_argv *optargs);\n"
25605 #: ../src/guestfs-actions.pod:276
25606 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25610 #: ../src/guestfs-actions.pod:280
25611 msgid "guestfs_add_drive_ro"
25615 #: ../src/guestfs-actions.pod:282
25619 " guestfs_add_drive_ro (guestfs_h *g,\n"
25620 " const char *filename);\n"
25625 #: ../src/guestfs-actions.pod:286
25627 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25628 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25629 "disk is added read-only, with the format being detected automatically."
25633 #: ../src/guestfs-actions.pod:293
25634 msgid "(Added in 1.0.38)"
25635 msgstr "(Додано у 1.0.38)"
25638 #: ../src/guestfs-actions.pod:295
25639 msgid "guestfs_add_drive_ro_with_if"
25643 #: ../src/guestfs-actions.pod:297
25647 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25648 " const char *filename,\n"
25649 " const char *iface);\n"
25654 #: ../src/guestfs-actions.pod:309
25656 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25657 "QEMU interface emulation to use at run time."
25661 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
25662 #: ../src/guestfs-actions.pod:2881
25663 msgid "(Added in 1.0.84)"
25664 msgstr "(Додано у 1.0.84)"
25667 #: ../src/guestfs-actions.pod:316
25668 msgid "guestfs_add_drive_with_if"
25672 #: ../src/guestfs-actions.pod:318
25676 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25677 " const char *filename,\n"
25678 " const char *iface);\n"
25683 #: ../src/guestfs-actions.pod:330
25685 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25686 "QEMU interface emulation to use at run time."
25690 #: ../src/guestfs-actions.pod:337
25691 msgid "guestfs_aug_clear"
25695 #: ../src/guestfs-actions.pod:339
25699 " guestfs_aug_clear (guestfs_h *g,\n"
25700 " const char *augpath);\n"
25705 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
25706 msgid "(Added in 1.3.4)"
25707 msgstr "(Додано у 1.3.4)"
25710 #: ../src/guestfs-actions.pod:350
25711 msgid "guestfs_aug_close"
25715 #: ../src/guestfs-actions.pod:352
25719 " guestfs_aug_close (guestfs_h *g);\n"
25724 #: ../src/guestfs-actions.pod:355
25726 "Close the current Augeas handle and free up any resources used by it. After "
25727 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25728 "any other Augeas functions."
25732 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
25733 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
25734 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
25735 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
25736 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
25737 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
25738 #: ../src/guestfs-actions.pod:6311
25739 msgid "(Added in 0.7)"
25740 msgstr "(Додано у 0.7)"
25743 #: ../src/guestfs-actions.pod:364
25744 msgid "guestfs_aug_defnode"
25748 #: ../src/guestfs-actions.pod:366
25751 " struct guestfs_int_bool *\n"
25752 " guestfs_aug_defnode (guestfs_h *g,\n"
25753 " const char *name,\n"
25754 " const char *expr,\n"
25755 " const char *val);\n"
25760 #: ../src/guestfs-actions.pod:375
25762 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25763 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
25764 "containing that single node."
25768 #: ../src/guestfs-actions.pod:383
25770 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25771 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
25775 #: ../src/guestfs-actions.pod:389
25776 msgid "guestfs_aug_defvar"
25780 #: ../src/guestfs-actions.pod:391
25784 " guestfs_aug_defvar (guestfs_h *g,\n"
25785 " const char *name,\n"
25786 " const char *expr);\n"
25791 #: ../src/guestfs-actions.pod:407
25792 msgid "guestfs_aug_get"
25793 msgstr "guestfs_aug_get"
25796 #: ../src/guestfs-actions.pod:409
25800 " guestfs_aug_get (guestfs_h *g,\n"
25801 " const char *augpath);\n"
25805 " guestfs_aug_get (guestfs_h *g,\n"
25806 " const char *augpath);\n"
25810 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980
25811 #: ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058
25812 #: ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177
25813 #: ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1683
25814 #: ../src/guestfs-actions.pod:1702 ../src/guestfs-actions.pod:1836
25815 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2136
25816 #: ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2316
25817 #: ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2426
25818 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2632
25819 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3050
25820 #: ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3256
25821 #: ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3490
25822 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3539
25823 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3636
25824 #: ../src/guestfs-actions.pod:3656 ../src/guestfs-actions.pod:3676
25825 #: ../src/guestfs-actions.pod:4303 ../src/guestfs-actions.pod:4650
25826 #: ../src/guestfs-actions.pod:4817 ../src/guestfs-actions.pod:4927
25827 #: ../src/guestfs-actions.pod:5820 ../src/guestfs-actions.pod:6021
25828 #: ../src/guestfs-actions.pod:6209 ../src/guestfs-actions.pod:6387
25829 #: ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:7096
25830 #: ../src/guestfs-actions.pod:7112 ../src/guestfs-actions.pod:7136
25831 #: ../src/guestfs-actions.pod:7160 ../src/guestfs-actions.pod:7834
25832 #: ../src/guestfs-actions.pod:7853 ../src/guestfs-actions.pod:7871
25833 #: ../src/guestfs-actions.pod:8045 ../src/guestfs-actions.pod:8359
25835 "This function returns a string, or NULL on error. I<The caller must free "
25836 "the returned string after use>."
25840 #: ../src/guestfs-actions.pod:421
25841 msgid "guestfs_aug_init"
25842 msgstr "guestfs_aug_init"
25845 #: ../src/guestfs-actions.pod:423
25849 " guestfs_aug_init (guestfs_h *g,\n"
25850 " const char *root,\n"
25855 " guestfs_aug_init (guestfs_h *g,\n"
25856 " const char *root,\n"
25861 #: ../src/guestfs-actions.pod:432
25862 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25866 #: ../src/guestfs-actions.pod:457
25868 "This option is only useful when debugging Augeas lenses. Use of this option "
25869 "may require additional memory for the libguestfs appliance. You may need to "
25870 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25871 "C<guestfs_set_memsize>."
25875 #: ../src/guestfs-actions.pod:472
25876 msgid "Do not load the tree in C<guestfs_aug_init>."
25880 #: ../src/guestfs-actions.pod:476
25881 msgid "To close the handle, you can call C<guestfs_aug_close>."
25885 #: ../src/guestfs-actions.pod:484
25886 msgid "guestfs_aug_insert"
25887 msgstr "guestfs_aug_insert"
25890 #: ../src/guestfs-actions.pod:486
25894 " guestfs_aug_insert (guestfs_h *g,\n"
25895 " const char *augpath,\n"
25896 " const char *label,\n"
25901 " guestfs_aug_insert (guestfs_h *g,\n"
25902 " const char *augpath,\n"
25903 " const char *label,\n"
25908 #: ../src/guestfs-actions.pod:504
25909 msgid "guestfs_aug_load"
25910 msgstr "guestfs_aug_load"
25913 #: ../src/guestfs-actions.pod:506
25917 " guestfs_aug_load (guestfs_h *g);\n"
25921 " guestfs_aug_load (guestfs_h *g);\n"
25925 #: ../src/guestfs-actions.pod:518
25926 msgid "guestfs_aug_ls"
25927 msgstr "guestfs_aug_ls"
25930 #: ../src/guestfs-actions.pod:520
25934 " guestfs_aug_ls (guestfs_h *g,\n"
25935 " const char *augpath);\n"
25939 " guestfs_aug_ls (guestfs_h *g,\n"
25940 " const char *augpath);\n"
25944 #: ../src/guestfs-actions.pod:524
25946 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25947 "sorting the resulting nodes into alphabetical order."
25951 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
25952 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196
25953 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870
25954 #: ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:1992
25955 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2704
25956 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2739
25957 #: ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:2828
25958 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:2948
25959 #: ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3592
25960 #: ../src/guestfs-actions.pod:3872 ../src/guestfs-actions.pod:4186
25961 #: ../src/guestfs-actions.pod:4203 ../src/guestfs-actions.pod:4223
25962 #: ../src/guestfs-actions.pod:4285 ../src/guestfs-actions.pod:4390
25963 #: ../src/guestfs-actions.pod:4789 ../src/guestfs-actions.pod:5546
25964 #: ../src/guestfs-actions.pod:6181 ../src/guestfs-actions.pod:6307
25965 #: ../src/guestfs-actions.pod:6421 ../src/guestfs-actions.pod:7176
25966 #: ../src/guestfs-actions.pod:7237 ../src/guestfs-actions.pod:7292
25967 #: ../src/guestfs-actions.pod:7438 ../src/guestfs-actions.pod:7462
25968 #: ../src/guestfs-actions.pod:7938 ../src/guestfs-actions.pod:7958
25969 #: ../src/guestfs-actions.pod:8005 ../src/guestfs-actions.pod:8199
25970 #: ../src/guestfs-actions.pod:8218 ../src/guestfs-actions.pod:8309
25971 #: ../src/guestfs-actions.pod:8328 ../src/guestfs-actions.pod:8374
25972 #: ../src/guestfs-actions.pod:8393
25974 "This function returns a NULL-terminated array of strings (like L<environ(3)"
25975 ">), or NULL if there was an error. I<The caller must free the strings and "
25976 "the array after use>."
25980 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121
25981 #: ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1908
25982 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3981
25983 #: ../src/guestfs-actions.pod:4633 ../src/guestfs-actions.pod:4680
25984 #: ../src/guestfs-actions.pod:4867 ../src/guestfs-actions.pod:4900
25985 #: ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5550
25986 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6519
25987 #: ../src/guestfs-actions.pod:6533 ../src/guestfs-actions.pod:6545
25988 #: ../src/guestfs-actions.pod:7023 ../src/guestfs-actions.pod:7676
25989 #: ../src/guestfs-actions.pod:7689 ../src/guestfs-actions.pod:7922
25990 #: ../src/guestfs-actions.pod:8187
25991 msgid "(Added in 0.8)"
25992 msgstr "(Додано у 0.8)"
25995 #: ../src/guestfs-actions.pod:533
25996 msgid "guestfs_aug_match"
25997 msgstr "guestfs_aug_match"
26000 #: ../src/guestfs-actions.pod:535
26004 " guestfs_aug_match (guestfs_h *g,\n"
26005 " const char *augpath);\n"
26009 " guestfs_aug_match (guestfs_h *g,\n"
26010 " const char *augpath);\n"
26014 #: ../src/guestfs-actions.pod:549
26015 msgid "guestfs_aug_mv"
26016 msgstr "guestfs_aug_mv"
26019 #: ../src/guestfs-actions.pod:551
26023 " guestfs_aug_mv (guestfs_h *g,\n"
26024 " const char *src,\n"
26025 " const char *dest);\n"
26029 " guestfs_aug_mv (guestfs_h *g,\n"
26030 " const char *src,\n"
26031 " const char *dest);\n"
26035 #: ../src/guestfs-actions.pod:563
26036 msgid "guestfs_aug_rm"
26037 msgstr "guestfs_aug_rm"
26040 #: ../src/guestfs-actions.pod:565
26044 " guestfs_aug_rm (guestfs_h *g,\n"
26045 " const char *augpath);\n"
26049 " guestfs_aug_rm (guestfs_h *g,\n"
26050 " const char *augpath);\n"
26054 #: ../src/guestfs-actions.pod:577
26055 msgid "guestfs_aug_save"
26056 msgstr "guestfs_aug_save"
26059 #: ../src/guestfs-actions.pod:579
26063 " guestfs_aug_save (guestfs_h *g);\n"
26067 " guestfs_aug_save (guestfs_h *g);\n"
26071 #: ../src/guestfs-actions.pod:584
26073 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
26078 #: ../src/guestfs-actions.pod:591
26079 msgid "guestfs_aug_set"
26080 msgstr "guestfs_aug_set"
26083 #: ../src/guestfs-actions.pod:593
26087 " guestfs_aug_set (guestfs_h *g,\n"
26088 " const char *augpath,\n"
26089 " const char *val);\n"
26093 " guestfs_aug_set (guestfs_h *g,\n"
26094 " const char *augpath,\n"
26095 " const char *val);\n"
26099 #: ../src/guestfs-actions.pod:600
26101 "In the Augeas API, it is possible to clear a node by setting the value to "
26102 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
26103 "this call. Instead you must use the C<guestfs_aug_clear> call."
26107 #: ../src/guestfs-actions.pod:609
26108 msgid "guestfs_available"
26109 msgstr "guestfs_available"
26112 #: ../src/guestfs-actions.pod:611
26116 " guestfs_available (guestfs_h *g,\n"
26117 " char *const *groups);\n"
26121 " guestfs_available (guestfs_h *g,\n"
26122 " char *const *groups);\n"
26126 #: ../src/guestfs-actions.pod:619
26128 "The libguestfs groups, and the functions that those groups correspond to, "
26129 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
26130 "runtime by calling C<guestfs_available_all_groups>."
26134 #: ../src/guestfs-actions.pod:643
26135 msgid "You must call C<guestfs_launch> before calling this function."
26139 #: ../src/guestfs-actions.pod:665
26141 "This call was added in version C<1.0.80>. In previous versions of "
26142 "libguestfs all you could do would be to speculatively execute a command to "
26143 "find out if the daemon implemented it. See also C<guestfs_version>."
26147 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
26148 msgid "(Added in 1.0.80)"
26149 msgstr "(Додано у 1.0.80)"
26152 #: ../src/guestfs-actions.pod:676
26153 msgid "guestfs_available_all_groups"
26154 msgstr "guestfs_available_all_groups"
26157 #: ../src/guestfs-actions.pod:678
26161 " guestfs_available_all_groups (guestfs_h *g);\n"
26165 " guestfs_available_all_groups (guestfs_h *g);\n"
26169 #: ../src/guestfs-actions.pod:681
26171 "This command returns a list of all optional groups that this daemon knows "
26172 "about. Note this returns both supported and unsupported groups. To find "
26173 "out which ones the daemon can actually support you have to call "
26174 "C<guestfs_available> on each member of the returned list."
26178 #: ../src/guestfs-actions.pod:687
26179 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
26183 #: ../src/guestfs-actions.pod:693
26184 msgid "(Added in 1.3.15)"
26185 msgstr "(Додано у 1.3.15)"
26188 #: ../src/guestfs-actions.pod:695
26189 msgid "guestfs_base64_in"
26190 msgstr "guestfs_base64_in"
26193 #: ../src/guestfs-actions.pod:697
26197 " guestfs_base64_in (guestfs_h *g,\n"
26198 " const char *base64file,\n"
26199 " const char *filename);\n"
26203 " guestfs_base64_in (guestfs_h *g,\n"
26204 " const char *base64file,\n"
26205 " const char *filename);\n"
26209 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
26210 msgid "(Added in 1.3.5)"
26211 msgstr "(Додано у 1.3.5)"
26214 #: ../src/guestfs-actions.pod:709
26215 msgid "guestfs_base64_out"
26216 msgstr "guestfs_base64_out"
26219 #: ../src/guestfs-actions.pod:711
26223 " guestfs_base64_out (guestfs_h *g,\n"
26224 " const char *filename,\n"
26225 " const char *base64file);\n"
26229 " guestfs_base64_out (guestfs_h *g,\n"
26230 " const char *filename,\n"
26231 " const char *base64file);\n"
26235 #: ../src/guestfs-actions.pod:723
26236 msgid "guestfs_blockdev_flushbufs"
26237 msgstr "guestfs_blockdev_flushbufs"
26240 #: ../src/guestfs-actions.pod:725
26244 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26245 " const char *device);\n"
26249 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26250 " const char *device);\n"
26254 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753
26255 #: ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784
26256 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821
26257 #: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853
26258 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
26259 msgid "(Added in 0.9.3)"
26260 msgstr "(Додано у 0.9.3)"
26263 #: ../src/guestfs-actions.pod:738
26264 msgid "guestfs_blockdev_getbsz"
26265 msgstr "guestfs_blockdev_getbsz"
26268 #: ../src/guestfs-actions.pod:740
26272 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26273 " const char *device);\n"
26277 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26278 " const char *device);\n"
26282 #: ../src/guestfs-actions.pod:755
26283 msgid "guestfs_blockdev_getro"
26284 msgstr "guestfs_blockdev_getro"
26287 #: ../src/guestfs-actions.pod:757
26291 " guestfs_blockdev_getro (guestfs_h *g,\n"
26292 " const char *device);\n"
26296 " guestfs_blockdev_getro (guestfs_h *g,\n"
26297 " const char *device);\n"
26301 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1891
26302 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:2395
26303 #: ../src/guestfs-actions.pod:2406 ../src/guestfs-actions.pod:2478
26304 #: ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2544
26305 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2595
26306 #: ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:3693
26307 #: ../src/guestfs-actions.pod:3709 ../src/guestfs-actions.pod:3727
26308 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3903
26309 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:3932
26310 #: ../src/guestfs-actions.pod:3948 ../src/guestfs-actions.pod:3963
26311 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:3993
26312 #: ../src/guestfs-actions.pod:4006 ../src/guestfs-actions.pod:4020
26313 #: ../src/guestfs-actions.pod:4035 ../src/guestfs-actions.pod:4050
26314 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4077
26315 #: ../src/guestfs-actions.pod:5784
26316 msgid "This function returns a C truth value on success or -1 on error."
26320 #: ../src/guestfs-actions.pod:770
26321 msgid "guestfs_blockdev_getsize64"
26322 msgstr "guestfs_blockdev_getsize64"
26325 #: ../src/guestfs-actions.pod:772
26329 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26330 " const char *device);\n"
26334 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26335 " const char *device);\n"
26339 #: ../src/guestfs-actions.pod:778
26340 msgid "See also C<guestfs_blockdev_getsz>."
26344 #: ../src/guestfs-actions.pod:786
26345 msgid "guestfs_blockdev_getss"
26346 msgstr "guestfs_blockdev_getss"
26349 #: ../src/guestfs-actions.pod:788
26353 " guestfs_blockdev_getss (guestfs_h *g,\n"
26354 " const char *device);\n"
26358 " guestfs_blockdev_getss (guestfs_h *g,\n"
26359 " const char *device);\n"
26363 #: ../src/guestfs-actions.pod:795
26365 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26370 #: ../src/guestfs-actions.pod:804
26371 msgid "guestfs_blockdev_getsz"
26372 msgstr "guestfs_blockdev_getsz"
26375 #: ../src/guestfs-actions.pod:806
26379 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26380 " const char *device);\n"
26384 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26385 " const char *device);\n"
26389 #: ../src/guestfs-actions.pod:813
26391 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26392 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26396 #: ../src/guestfs-actions.pod:823
26397 msgid "guestfs_blockdev_rereadpt"
26398 msgstr "guestfs_blockdev_rereadpt"
26401 #: ../src/guestfs-actions.pod:825
26405 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26406 " const char *device);\n"
26410 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26411 " const char *device);\n"
26415 #: ../src/guestfs-actions.pod:837
26416 msgid "guestfs_blockdev_setbsz"
26417 msgstr "guestfs_blockdev_setbsz"
26420 #: ../src/guestfs-actions.pod:839
26424 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26425 " const char *device,\n"
26426 " int blocksize);\n"
26430 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26431 " const char *device,\n"
26432 " int blocksize);\n"
26436 #: ../src/guestfs-actions.pod:855
26437 msgid "guestfs_blockdev_setro"
26438 msgstr "guestfs_blockdev_setro"
26441 #: ../src/guestfs-actions.pod:857
26445 " guestfs_blockdev_setro (guestfs_h *g,\n"
26446 " const char *device);\n"
26450 " guestfs_blockdev_setro (guestfs_h *g,\n"
26451 " const char *device);\n"
26455 #: ../src/guestfs-actions.pod:869
26456 msgid "guestfs_blockdev_setrw"
26457 msgstr "guestfs_blockdev_setrw"
26460 #: ../src/guestfs-actions.pod:871
26464 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26465 " const char *device);\n"
26469 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26470 " const char *device);\n"
26474 #: ../src/guestfs-actions.pod:883
26475 msgid "guestfs_btrfs_filesystem_resize"
26476 msgstr "guestfs_btrfs_filesystem_resize"
26479 #: ../src/guestfs-actions.pod:885
26483 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26484 " const char *mountpoint,\n"
26489 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26490 " const char *mountpoint,\n"
26495 #: ../src/guestfs-actions.pod:895
26498 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26501 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26505 #: ../src/guestfs-actions.pod:918
26506 msgid "(Added in 1.11.17)"
26507 msgstr "(Додано у 1.11.17)"
26510 #: ../src/guestfs-actions.pod:920
26511 msgid "guestfs_btrfs_filesystem_resize_va"
26512 msgstr "guestfs_btrfs_filesystem_resize_va"
26515 #: ../src/guestfs-actions.pod:922
26519 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26520 " const char *mountpoint,\n"
26521 " va_list args);\n"
26525 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26526 " const char *mountpoint,\n"
26527 " va_list args);\n"
26531 #: ../src/guestfs-actions.pod:927
26532 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26536 #: ../src/guestfs-actions.pod:931
26537 msgid "guestfs_btrfs_filesystem_resize_argv"
26538 msgstr "guestfs_btrfs_filesystem_resize_argv"
26541 #: ../src/guestfs-actions.pod:933
26545 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26546 " const char *mountpoint,\n"
26547 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26551 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26552 " const char *mountpoint,\n"
26553 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26557 #: ../src/guestfs-actions.pod:938
26558 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26562 #: ../src/guestfs-actions.pod:942
26563 msgid "guestfs_case_sensitive_path"
26567 #: ../src/guestfs-actions.pod:944
26571 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26572 " const char *path);\n"
26577 #: ../src/guestfs-actions.pod:970
26579 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return C<"
26580 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26581 "how the directories were originally created under Windows)."
26585 #: ../src/guestfs-actions.pod:978
26586 msgid "See also C<guestfs_realpath>."
26590 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:7856
26591 msgid "(Added in 1.0.75)"
26592 msgstr "(Додано у 1.0.75)"
26595 #: ../src/guestfs-actions.pod:985
26596 msgid "guestfs_cat"
26600 #: ../src/guestfs-actions.pod:987
26604 " guestfs_cat (guestfs_h *g,\n"
26605 " const char *path);\n"
26610 #: ../src/guestfs-actions.pod:993
26612 "Note that this function cannot correctly handle binary files (specifically, "
26613 "files containing C<\\0> character which is treated as end of string). For "
26614 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26615 "functions which have a more complex interface."
26619 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4207
26620 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:4306
26621 #: ../src/guestfs-actions.pod:4394 ../src/guestfs-actions.pod:4793
26622 #: ../src/guestfs-actions.pod:4807 ../src/guestfs-actions.pod:6185
26623 #: ../src/guestfs-actions.pod:6199 ../src/guestfs-actions.pod:8009
26624 #: ../src/guestfs-actions.pod:8023
26625 msgid "(Added in 0.4)"
26626 msgstr "(Додано у 0.4)"
26629 #: ../src/guestfs-actions.pod:1006
26630 msgid "guestfs_checksum"
26634 #: ../src/guestfs-actions.pod:1008
26638 " guestfs_checksum (guestfs_h *g,\n"
26639 " const char *csumtype,\n"
26640 " const char *path);\n"
26645 #: ../src/guestfs-actions.pod:1054
26646 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26650 #: ../src/guestfs-actions.pod:1056
26651 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26655 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1728
26656 #: ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3905
26657 #: ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3995
26658 #: ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:7712
26659 msgid "(Added in 1.0.2)"
26660 msgstr "(Додано у 1.0.2)"
26663 #: ../src/guestfs-actions.pod:1063
26664 msgid "guestfs_checksum_device"
26668 #: ../src/guestfs-actions.pod:1065
26672 " guestfs_checksum_device (guestfs_h *g,\n"
26673 " const char *csumtype,\n"
26674 " const char *device);\n"
26679 #: ../src/guestfs-actions.pod:1070
26681 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26682 "device named C<device>. For the types of checksums supported see the "
26683 "C<guestfs_checksum> command."
26687 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5617
26688 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:5786
26689 #: ../src/guestfs-actions.pod:5804 ../src/guestfs-actions.pod:5986
26690 #: ../src/guestfs-actions.pod:7621 ../src/guestfs-actions.pod:7635
26691 #: ../src/guestfs-actions.pod:8035
26692 msgid "(Added in 1.3.2)"
26693 msgstr "(Додано у 1.3.2)"
26696 #: ../src/guestfs-actions.pod:1079
26697 msgid "guestfs_checksums_out"
26701 #: ../src/guestfs-actions.pod:1081
26705 " guestfs_checksums_out (guestfs_h *g,\n"
26706 " const char *csumtype,\n"
26707 " const char *directory,\n"
26708 " const char *sumsfile);\n"
26713 #: ../src/guestfs-actions.pod:1101
26714 msgid "(Added in 1.3.7)"
26715 msgstr "(Додано у 1.3.7)"
26718 #: ../src/guestfs-actions.pod:1103
26719 msgid "guestfs_chmod"
26723 #: ../src/guestfs-actions.pod:1105
26727 " guestfs_chmod (guestfs_h *g,\n"
26729 " const char *path);\n"
26734 #: ../src/guestfs-actions.pod:1123
26735 msgid "guestfs_chown"
26739 #: ../src/guestfs-actions.pod:1125
26743 " guestfs_chown (guestfs_h *g,\n"
26746 " const char *path);\n"
26751 #: ../src/guestfs-actions.pod:1141
26752 msgid "guestfs_command"
26756 #: ../src/guestfs-actions.pod:1143
26760 " guestfs_command (guestfs_h *g,\n"
26761 " char *const *arguments);\n"
26766 #: ../src/guestfs-actions.pod:1152
26768 "The single parameter is an argv-style list of arguments. The first element "
26769 "is the name of the program to run. Subsequent elements are parameters. The "
26770 "list must be non-empty (ie. must contain a program name). Note that the "
26771 "command runs directly, and is I<not> invoked via the shell (see "
26776 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203
26777 #: ../src/guestfs-actions.pod:2027
26778 msgid "(Added in 0.9.1)"
26779 msgstr "(Додано у 0.9.1)"
26782 #: ../src/guestfs-actions.pod:1185
26783 msgid "guestfs_command_lines"
26787 #: ../src/guestfs-actions.pod:1187
26791 " guestfs_command_lines (guestfs_h *g,\n"
26792 " char *const *arguments);\n"
26797 #: ../src/guestfs-actions.pod:1191
26799 "This is the same as C<guestfs_command>, but splits the result into a list of "
26804 #: ../src/guestfs-actions.pod:1194
26805 msgid "See also: C<guestfs_sh_lines>"
26809 #: ../src/guestfs-actions.pod:1205
26810 msgid "guestfs_compress_device_out"
26814 #: ../src/guestfs-actions.pod:1207
26818 " guestfs_compress_device_out (guestfs_h *g,\n"
26819 " const char *ctype,\n"
26820 " const char *device,\n"
26821 " const char *zdevice,\n"
26827 #: ../src/guestfs-actions.pod:1219
26830 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26835 #: ../src/guestfs-actions.pod:1224
26837 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26838 "C<guestfs_compress_out>."
26842 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288
26843 #: ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:6902
26844 msgid "(Added in 1.13.15)"
26848 #: ../src/guestfs-actions.pod:1231
26849 msgid "guestfs_compress_device_out_va"
26853 #: ../src/guestfs-actions.pod:1233
26857 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26858 " const char *ctype,\n"
26859 " const char *device,\n"
26860 " const char *zdevice,\n"
26861 " va_list args);\n"
26866 #: ../src/guestfs-actions.pod:1240
26867 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26871 #: ../src/guestfs-actions.pod:1244
26872 msgid "guestfs_compress_device_out_argv"
26876 #: ../src/guestfs-actions.pod:1246
26880 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26881 " const char *ctype,\n"
26882 " const char *device,\n"
26883 " const char *zdevice,\n"
26884 " const struct guestfs_compress_device_out_argv *optargs);\n"
26889 #: ../src/guestfs-actions.pod:1253
26890 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26894 #: ../src/guestfs-actions.pod:1257
26895 msgid "guestfs_compress_out"
26899 #: ../src/guestfs-actions.pod:1259
26903 " guestfs_compress_out (guestfs_h *g,\n"
26904 " const char *ctype,\n"
26905 " const char *file,\n"
26906 " const char *zfile,\n"
26912 #: ../src/guestfs-actions.pod:1271
26915 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26920 #: ../src/guestfs-actions.pod:1290
26921 msgid "guestfs_compress_out_va"
26925 #: ../src/guestfs-actions.pod:1292
26929 " guestfs_compress_out_va (guestfs_h *g,\n"
26930 " const char *ctype,\n"
26931 " const char *file,\n"
26932 " const char *zfile,\n"
26933 " va_list args);\n"
26938 #: ../src/guestfs-actions.pod:1299
26939 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26943 #: ../src/guestfs-actions.pod:1303
26944 msgid "guestfs_compress_out_argv"
26948 #: ../src/guestfs-actions.pod:1305
26952 " guestfs_compress_out_argv (guestfs_h *g,\n"
26953 " const char *ctype,\n"
26954 " const char *file,\n"
26955 " const char *zfile,\n"
26956 " const struct guestfs_compress_out_argv *optargs);\n"
26961 #: ../src/guestfs-actions.pod:1312
26962 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26966 #: ../src/guestfs-actions.pod:1316
26967 msgid "guestfs_config"
26971 #: ../src/guestfs-actions.pod:1318
26975 " guestfs_config (guestfs_h *g,\n"
26976 " const char *qemuparam,\n"
26977 " const char *qemuvalue);\n"
26982 #: ../src/guestfs-actions.pod:1336
26983 msgid "guestfs_copy_device_to_device"
26987 #: ../src/guestfs-actions.pod:1338
26991 " guestfs_copy_device_to_device (guestfs_h *g,\n"
26992 " const char *src,\n"
26993 " const char *dest,\n"
26999 #: ../src/guestfs-actions.pod:1349
27002 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27003 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27004 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
27009 #: ../src/guestfs-actions.pod:1353
27011 "The four calls C<guestfs_copy_device_to_device>, "
27012 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
27013 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
27014 "destination (device|file)."
27018 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1427
27019 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1538
27020 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:1723
27021 #: ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:1799
27022 #: ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2198
27023 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:7707
27024 #: ../src/guestfs-actions.pod:7741 ../src/guestfs-actions.pod:8248
27025 #: ../src/guestfs-actions.pod:8271
27027 "This long-running command can generate progress notification messages so "
27028 "that the caller can display a progress bar or indicator. To receive these "
27029 "messages, the caller must register a progress event callback. See L<guestfs"
27030 "(3)/GUESTFS_EVENT_PROGRESS>."
27034 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432
27035 #: ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543
27036 #: ../src/guestfs-actions.pod:6042
27038 #| msgid "(Added in 1.3.5)"
27039 msgid "(Added in 1.13.25)"
27040 msgstr "(Додано у 1.3.5)"
27043 #: ../src/guestfs-actions.pod:1381
27044 msgid "guestfs_copy_device_to_device_va"
27048 #: ../src/guestfs-actions.pod:1383
27052 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
27053 " const char *src,\n"
27054 " const char *dest,\n"
27055 " va_list args);\n"
27060 #: ../src/guestfs-actions.pod:1389
27061 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
27065 #: ../src/guestfs-actions.pod:1393
27066 msgid "guestfs_copy_device_to_device_argv"
27070 #: ../src/guestfs-actions.pod:1395
27074 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
27075 " const char *src,\n"
27076 " const char *dest,\n"
27077 " const struct guestfs_copy_device_to_device_argv *optargs);\n"
27082 #: ../src/guestfs-actions.pod:1401
27083 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
27087 #: ../src/guestfs-actions.pod:1405
27088 msgid "guestfs_copy_device_to_file"
27092 #: ../src/guestfs-actions.pod:1407
27096 " guestfs_copy_device_to_file (guestfs_h *g,\n"
27097 " const char *src,\n"
27098 " const char *dest,\n"
27104 #: ../src/guestfs-actions.pod:1418
27107 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27108 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27109 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
27114 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475
27115 #: ../src/guestfs-actions.pod:1528
27117 "See C<guestfs_copy_device_to_device> for a general overview of this call."
27121 #: ../src/guestfs-actions.pod:1434
27122 msgid "guestfs_copy_device_to_file_va"
27126 #: ../src/guestfs-actions.pod:1436
27130 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
27131 " const char *src,\n"
27132 " const char *dest,\n"
27133 " va_list args);\n"
27138 #: ../src/guestfs-actions.pod:1442
27139 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
27143 #: ../src/guestfs-actions.pod:1446
27144 msgid "guestfs_copy_device_to_file_argv"
27148 #: ../src/guestfs-actions.pod:1448
27152 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
27153 " const char *src,\n"
27154 " const char *dest,\n"
27155 " const struct guestfs_copy_device_to_file_argv *optargs);\n"
27160 #: ../src/guestfs-actions.pod:1454
27161 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
27165 #: ../src/guestfs-actions.pod:1458
27166 msgid "guestfs_copy_file_to_device"
27170 #: ../src/guestfs-actions.pod:1460
27174 " guestfs_copy_file_to_device (guestfs_h *g,\n"
27175 " const char *src,\n"
27176 " const char *dest,\n"
27182 #: ../src/guestfs-actions.pod:1471
27185 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27186 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27187 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
27192 #: ../src/guestfs-actions.pod:1487
27193 msgid "guestfs_copy_file_to_device_va"
27197 #: ../src/guestfs-actions.pod:1489
27201 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
27202 " const char *src,\n"
27203 " const char *dest,\n"
27204 " va_list args);\n"
27209 #: ../src/guestfs-actions.pod:1495
27210 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
27214 #: ../src/guestfs-actions.pod:1499
27215 msgid "guestfs_copy_file_to_device_argv"
27219 #: ../src/guestfs-actions.pod:1501
27223 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
27224 " const char *src,\n"
27225 " const char *dest,\n"
27226 " const struct guestfs_copy_file_to_device_argv *optargs);\n"
27231 #: ../src/guestfs-actions.pod:1507
27232 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
27236 #: ../src/guestfs-actions.pod:1511
27237 msgid "guestfs_copy_file_to_file"
27241 #: ../src/guestfs-actions.pod:1513
27245 " guestfs_copy_file_to_file (guestfs_h *g,\n"
27246 " const char *src,\n"
27247 " const char *dest,\n"
27253 #: ../src/guestfs-actions.pod:1524
27256 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27257 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27258 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
27263 #: ../src/guestfs-actions.pod:1531
27265 "This is B<not> the function you want for copying files. This is for copying "
27266 "blocks within existing files. See C<guestfs_cp>, C<guestfs_cp_a> and "
27267 "C<guestfs_mv> for general file copying and moving functions."
27271 #: ../src/guestfs-actions.pod:1545
27272 msgid "guestfs_copy_file_to_file_va"
27276 #: ../src/guestfs-actions.pod:1547
27280 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
27281 " const char *src,\n"
27282 " const char *dest,\n"
27283 " va_list args);\n"
27288 #: ../src/guestfs-actions.pod:1553
27289 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
27293 #: ../src/guestfs-actions.pod:1557
27294 msgid "guestfs_copy_file_to_file_argv"
27298 #: ../src/guestfs-actions.pod:1559
27302 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
27303 " const char *src,\n"
27304 " const char *dest,\n"
27305 " const struct guestfs_copy_file_to_file_argv *optargs);\n"
27310 #: ../src/guestfs-actions.pod:1565
27311 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
27315 #: ../src/guestfs-actions.pod:1569
27316 msgid "guestfs_copy_size"
27320 #: ../src/guestfs-actions.pod:1571
27324 " guestfs_copy_size (guestfs_h *g,\n"
27325 " const char *src,\n"
27326 " const char *dest,\n"
27327 " int64_t size);\n"
27332 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
27334 "I<This function is deprecated.> In new code, use the L</"
27335 "guestfs_copy_device_to_device> call instead."
27339 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4820
27340 #: ../src/guestfs-actions.pod:6212 ../src/guestfs-actions.pod:7942
27341 #: ../src/guestfs-actions.pod:7962 ../src/guestfs-actions.pod:8048
27342 msgid "(Added in 1.0.87)"
27343 msgstr "(Додано у 1.0.87)"
27346 #: ../src/guestfs-actions.pod:1599
27351 #: ../src/guestfs-actions.pod:1601
27355 " guestfs_cp (guestfs_h *g,\n"
27356 " const char *src,\n"
27357 " const char *dest);\n"
27362 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1625
27363 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1779
27364 #: ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:5564
27365 #: ../src/guestfs-actions.pod:6056
27366 msgid "(Added in 1.0.18)"
27367 msgstr "(Додано у 1.0.18)"
27370 #: ../src/guestfs-actions.pod:1613
27371 msgid "guestfs_cp_a"
27375 #: ../src/guestfs-actions.pod:1615
27379 " guestfs_cp_a (guestfs_h *g,\n"
27380 " const char *src,\n"
27381 " const char *dest);\n"
27386 #: ../src/guestfs-actions.pod:1627
27391 #: ../src/guestfs-actions.pod:1629
27395 " guestfs_dd (guestfs_h *g,\n"
27396 " const char *src,\n"
27397 " const char *dest);\n"
27402 #: ../src/guestfs-actions.pod:1646
27404 "If the destination is a device, it must be as large or larger than the "
27405 "source file or device, otherwise the copy will fail. This command cannot do "
27406 "partial copies (see C<guestfs_copy_device_to_device>)."
27410 #: ../src/guestfs-actions.pod:1655
27415 #: ../src/guestfs-actions.pod:1657
27419 " guestfs_df (guestfs_h *g);\n"
27424 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
27426 "This command is mostly useful for interactive sessions. It is I<not> "
27427 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
27432 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1686
27433 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2811
27434 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2903
27435 #: ../src/guestfs-actions.pod:4930 ../src/guestfs-actions.pod:5464
27436 #: ../src/guestfs-actions.pod:7445 ../src/guestfs-actions.pod:7469
27437 #: ../src/guestfs-actions.pod:8088 ../src/guestfs-actions.pod:8101
27438 #: ../src/guestfs-actions.pod:8114
27439 msgid "(Added in 1.0.54)"
27440 msgstr "(Додано у 1.0.54)"
27443 #: ../src/guestfs-actions.pod:1671
27444 msgid "guestfs_df_h"
27448 #: ../src/guestfs-actions.pod:1673
27452 " guestfs_df_h (guestfs_h *g);\n"
27457 #: ../src/guestfs-actions.pod:1688
27458 msgid "guestfs_dmesg"
27462 #: ../src/guestfs-actions.pod:1690
27466 " guestfs_dmesg (guestfs_h *g);\n"
27471 #: ../src/guestfs-actions.pod:1697
27473 "Another way to get the same information is to enable verbose messages with "
27474 "C<guestfs_set_verbose> or by setting the environment variable "
27475 "C<LIBGUESTFS_DEBUG=1> before running the program."
27479 #: ../src/guestfs-actions.pod:1707
27480 msgid "guestfs_download"
27484 #: ../src/guestfs-actions.pod:1709
27488 " guestfs_download (guestfs_h *g,\n"
27489 " const char *remotefilename,\n"
27490 " const char *filename);\n"
27495 #: ../src/guestfs-actions.pod:1719
27496 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
27500 #: ../src/guestfs-actions.pod:1730
27501 msgid "guestfs_download_offset"
27505 #: ../src/guestfs-actions.pod:1732
27509 " guestfs_download_offset (guestfs_h *g,\n"
27510 " const char *remotefilename,\n"
27511 " const char *filename,\n"
27512 " int64_t offset,\n"
27513 " int64_t size);\n"
27518 #: ../src/guestfs-actions.pod:1745
27520 "Note that there is no limit on the amount of data that can be downloaded "
27521 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
27522 "full amount unless an error occurs."
27526 #: ../src/guestfs-actions.pod:1750
27527 msgid "See also C<guestfs_download>, C<guestfs_pread>."
27531 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:7746
27532 msgid "(Added in 1.5.17)"
27533 msgstr "(Додано у 1.5.17)"
27536 #: ../src/guestfs-actions.pod:1761
27537 msgid "guestfs_drop_caches"
27541 #: ../src/guestfs-actions.pod:1763
27545 " guestfs_drop_caches (guestfs_h *g,\n"
27546 " int whattodrop);\n"
27551 #: ../src/guestfs-actions.pod:1781
27556 #: ../src/guestfs-actions.pod:1783
27560 " guestfs_du (guestfs_h *g,\n"
27561 " const char *path);\n"
27566 #: ../src/guestfs-actions.pod:1806
27567 msgid "guestfs_e2fsck_f"
27571 #: ../src/guestfs-actions.pod:1808
27575 " guestfs_e2fsck_f (guestfs_h *g,\n"
27576 " const char *device);\n"
27581 #: ../src/guestfs-actions.pod:1816
27583 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
27584 "Normally you should use C<guestfs_fsck>."
27588 #: ../src/guestfs-actions.pod:1821
27589 msgid "(Added in 1.0.29)"
27590 msgstr "(Додано у 1.0.29)"
27593 #: ../src/guestfs-actions.pod:1823
27594 msgid "guestfs_echo_daemon"
27595 msgstr "guestfs_echo_daemon"
27598 #: ../src/guestfs-actions.pod:1825
27602 " guestfs_echo_daemon (guestfs_h *g,\n"
27603 " char *const *words);\n"
27607 " guestfs_echo_daemon (guestfs_h *g,\n"
27608 " char *const *words);\n"
27612 #: ../src/guestfs-actions.pod:1834
27613 msgid "See also C<guestfs_ping_daemon>."
27617 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597
27618 #: ../src/guestfs-actions.pod:6926
27619 msgid "(Added in 1.0.69)"
27620 msgstr "(Додано у 1.0.69)"
27623 #: ../src/guestfs-actions.pod:1841
27624 msgid "guestfs_egrep"
27625 msgstr "guestfs_egrep"
27628 #: ../src/guestfs-actions.pod:1843
27632 " guestfs_egrep (guestfs_h *g,\n"
27633 " const char *regex,\n"
27634 " const char *path);\n"
27638 " guestfs_egrep (guestfs_h *g,\n"
27639 " const char *regex,\n"
27640 " const char *path);\n"
27644 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1877
27645 #: ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1980
27646 #: ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:2727
27647 #: ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2924
27648 #: ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2952
27649 #: ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3020
27650 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:4319
27651 #: ../src/guestfs-actions.pod:4333 ../src/guestfs-actions.pod:4346
27652 #: ../src/guestfs-actions.pod:4360 ../src/guestfs-actions.pod:5352
27653 #: ../src/guestfs-actions.pod:6390 ../src/guestfs-actions.pod:6439
27654 #: ../src/guestfs-actions.pod:7313 ../src/guestfs-actions.pod:7325
27655 #: ../src/guestfs-actions.pod:7338 ../src/guestfs-actions.pod:7351
27656 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7386
27657 #: ../src/guestfs-actions.pod:7399 ../src/guestfs-actions.pod:7412
27658 #: ../src/guestfs-actions.pod:8206 ../src/guestfs-actions.pod:8225
27659 #: ../src/guestfs-actions.pod:8316 ../src/guestfs-actions.pod:8335
27660 #: ../src/guestfs-actions.pod:8381 ../src/guestfs-actions.pod:8400
27661 msgid "(Added in 1.0.66)"
27662 msgstr "(Додано у 1.0.66)"
27665 #: ../src/guestfs-actions.pod:1860
27666 msgid "guestfs_egrepi"
27667 msgstr "guestfs_egrepi"
27670 #: ../src/guestfs-actions.pod:1862
27674 " guestfs_egrepi (guestfs_h *g,\n"
27675 " const char *regex,\n"
27676 " const char *path);\n"
27681 #: ../src/guestfs-actions.pod:1879
27682 msgid "guestfs_equal"
27686 #: ../src/guestfs-actions.pod:1881
27690 " guestfs_equal (guestfs_h *g,\n"
27691 " const char *file1,\n"
27692 " const char *file2);\n"
27697 #: ../src/guestfs-actions.pod:1895
27698 msgid "guestfs_exists"
27702 #: ../src/guestfs-actions.pod:1897
27706 " guestfs_exists (guestfs_h *g,\n"
27707 " const char *path);\n"
27712 #: ../src/guestfs-actions.pod:1904
27713 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
27717 #: ../src/guestfs-actions.pod:1910
27718 msgid "guestfs_fallocate"
27722 #: ../src/guestfs-actions.pod:1912
27726 " guestfs_fallocate (guestfs_h *g,\n"
27727 " const char *path,\n"
27733 #: ../src/guestfs-actions.pod:1917
27735 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
27740 #: ../src/guestfs-actions.pod:1936
27741 msgid "guestfs_fallocate64"
27745 #: ../src/guestfs-actions.pod:1938
27749 " guestfs_fallocate64 (guestfs_h *g,\n"
27750 " const char *path,\n"
27756 #: ../src/guestfs-actions.pod:1947
27758 "Note that this call allocates disk blocks for the file. To create a sparse "
27759 "file use C<guestfs_truncate_size> instead."
27763 #: ../src/guestfs-actions.pod:1950
27765 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27766 "oversight it only allowed 30 bit lengths to be specified, effectively "
27767 "limiting the maximum size of files created through that call to 1GB."
27771 #: ../src/guestfs-actions.pod:1961
27772 msgid "(Added in 1.3.17)"
27773 msgstr "(Додано у 1.3.17)"
27776 #: ../src/guestfs-actions.pod:1963
27777 msgid "guestfs_fgrep"
27781 #: ../src/guestfs-actions.pod:1965
27785 " guestfs_fgrep (guestfs_h *g,\n"
27786 " const char *pattern,\n"
27787 " const char *path);\n"
27792 #: ../src/guestfs-actions.pod:1982
27793 msgid "guestfs_fgrepi"
27797 #: ../src/guestfs-actions.pod:1984
27801 " guestfs_fgrepi (guestfs_h *g,\n"
27802 " const char *pattern,\n"
27803 " const char *path);\n"
27808 #: ../src/guestfs-actions.pod:2001
27809 msgid "guestfs_file"
27813 #: ../src/guestfs-actions.pod:2003
27817 " guestfs_file (guestfs_h *g,\n"
27818 " const char *path);\n"
27823 #: ../src/guestfs-actions.pod:2021
27825 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27826 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27830 #: ../src/guestfs-actions.pod:2029
27831 msgid "guestfs_file_architecture"
27835 #: ../src/guestfs-actions.pod:2031
27839 " guestfs_file_architecture (guestfs_h *g,\n"
27840 " const char *filename);\n"
27845 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:2302
27846 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3053
27847 #: ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3221
27848 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426
27849 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3542
27850 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3876
27851 #: ../src/guestfs-actions.pod:4008
27852 msgid "(Added in 1.5.3)"
27853 msgstr "(Додано у 1.5.3)"
27856 #: ../src/guestfs-actions.pod:2141
27857 msgid "guestfs_filesize"
27861 #: ../src/guestfs-actions.pod:2143
27865 " guestfs_filesize (guestfs_h *g,\n"
27866 " const char *file);\n"
27871 #: ../src/guestfs-actions.pod:2149
27873 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27874 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
27875 "devices, use C<guestfs_blockdev_getsize64>."
27879 #: ../src/guestfs-actions.pod:2155
27880 msgid "(Added in 1.0.82)"
27881 msgstr "(Додано у 1.0.82)"
27884 #: ../src/guestfs-actions.pod:2157
27885 msgid "guestfs_fill"
27889 #: ../src/guestfs-actions.pod:2159
27893 " guestfs_fill (guestfs_h *g,\n"
27896 " const char *path);\n"
27901 #: ../src/guestfs-actions.pod:2169
27903 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27904 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
27905 "bytes use C<guestfs_fill_pattern>."
27909 #: ../src/guestfs-actions.pod:2181
27910 msgid "(Added in 1.0.79)"
27911 msgstr "(Додано у 1.0.79)"
27914 #: ../src/guestfs-actions.pod:2183
27915 msgid "guestfs_fill_pattern"
27919 #: ../src/guestfs-actions.pod:2185
27923 " guestfs_fill_pattern (guestfs_h *g,\n"
27924 " const char *pattern,\n"
27926 " const char *path);\n"
27931 #: ../src/guestfs-actions.pod:2191
27933 "This function is like C<guestfs_fill> except that it creates a new file of "
27934 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
27935 "pattern is truncated if necessary to ensure the length of the file is "
27936 "exactly C<len> bytes."
27940 #: ../src/guestfs-actions.pod:2203
27941 msgid "(Added in 1.3.12)"
27942 msgstr "(Додано у 1.3.12)"
27945 #: ../src/guestfs-actions.pod:2205
27946 msgid "guestfs_find"
27950 #: ../src/guestfs-actions.pod:2207
27954 " guestfs_find (guestfs_h *g,\n"
27955 " const char *directory);\n"
27960 #: ../src/guestfs-actions.pod:2223
27962 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27966 #: ../src/guestfs-actions.pod:2236
27967 msgid "See also C<guestfs_find0>."
27971 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4757
27972 #: ../src/guestfs-actions.pod:6474
27973 msgid "(Added in 1.0.27)"
27974 msgstr "(Додано у 1.0.27)"
27977 #: ../src/guestfs-actions.pod:2247
27978 msgid "guestfs_find0"
27982 #: ../src/guestfs-actions.pod:2249
27986 " guestfs_find0 (guestfs_h *g,\n"
27987 " const char *directory,\n"
27988 " const char *files);\n"
27993 #: ../src/guestfs-actions.pod:2258
27995 "This command works the same way as C<guestfs_find> with the following "
28000 #: ../src/guestfs-actions.pod:2285
28001 msgid "(Added in 1.0.74)"
28002 msgstr "(Додано у 1.0.74)"
28005 #: ../src/guestfs-actions.pod:2287
28006 msgid "guestfs_findfs_label"
28010 #: ../src/guestfs-actions.pod:2289
28014 " guestfs_findfs_label (guestfs_h *g,\n"
28015 " const char *label);\n"
28020 #: ../src/guestfs-actions.pod:2297
28021 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
28025 #: ../src/guestfs-actions.pod:2304
28026 msgid "guestfs_findfs_uuid"
28030 #: ../src/guestfs-actions.pod:2306
28034 " guestfs_findfs_uuid (guestfs_h *g,\n"
28035 " const char *uuid);\n"
28040 #: ../src/guestfs-actions.pod:2314
28041 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
28045 #: ../src/guestfs-actions.pod:2321
28046 msgid "guestfs_fsck"
28050 #: ../src/guestfs-actions.pod:2323
28054 " guestfs_fsck (guestfs_h *g,\n"
28055 " const char *fstype,\n"
28056 " const char *device);\n"
28061 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8253
28062 msgid "(Added in 1.0.16)"
28063 msgstr "(Додано у 1.0.16)"
28066 #: ../src/guestfs-actions.pod:2360
28067 msgid "guestfs_get_append"
28071 #: ../src/guestfs-actions.pod:2362
28075 " guestfs_get_append (guestfs_h *g);\n"
28080 #: ../src/guestfs-actions.pod:2370
28082 "This function returns a string which may be NULL. There is no way to return "
28083 "an error from this function. The string is owned by the guest handle and "
28084 "must I<not> be freed."
28088 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6152
28089 #: ../src/guestfs-actions.pod:6631 ../src/guestfs-actions.pod:7080
28090 #: ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7115
28091 #: ../src/guestfs-actions.pod:7139 ../src/guestfs-actions.pod:7893
28092 #: ../src/guestfs-actions.pod:7908 ../src/guestfs-actions.pod:8297
28093 msgid "(Added in 1.0.26)"
28094 msgstr "(Додано у 1.0.26)"
28097 #: ../src/guestfs-actions.pod:2376
28098 msgid "guestfs_get_attach_method"
28102 #: ../src/guestfs-actions.pod:2378
28106 " guestfs_get_attach_method (guestfs_h *g);\n"
28111 #: ../src/guestfs-actions.pod:2381
28112 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
28116 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6661
28117 msgid "(Added in 1.9.8)"
28118 msgstr "(Додано у 1.9.8)"
28121 #: ../src/guestfs-actions.pod:2388
28122 msgid "guestfs_get_autosync"
28126 #: ../src/guestfs-actions.pod:2390
28130 " guestfs_get_autosync (guestfs_h *g);\n"
28135 #: ../src/guestfs-actions.pod:2399
28136 msgid "guestfs_get_direct"
28140 #: ../src/guestfs-actions.pod:2401
28144 " guestfs_get_direct (guestfs_h *g);\n"
28149 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6702
28150 msgid "(Added in 1.0.72)"
28151 msgstr "(Додано у 1.0.72)"
28154 #: ../src/guestfs-actions.pod:2410
28155 msgid "guestfs_get_e2label"
28159 #: ../src/guestfs-actions.pod:2412
28163 " guestfs_get_e2label (guestfs_h *g,\n"
28164 " const char *device);\n"
28169 #: ../src/guestfs-actions.pod:2416
28171 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
28176 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450
28177 #: ../src/guestfs-actions.pod:6720 ../src/guestfs-actions.pod:6739
28178 msgid "(Added in 1.0.15)"
28179 msgstr "(Додано у 1.0.15)"
28182 #: ../src/guestfs-actions.pod:2431
28183 msgid "guestfs_get_e2uuid"
28187 #: ../src/guestfs-actions.pod:2433
28191 " guestfs_get_e2uuid (guestfs_h *g,\n"
28192 " const char *device);\n"
28197 #: ../src/guestfs-actions.pod:2437
28199 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
28204 #: ../src/guestfs-actions.pod:2452
28205 msgid "guestfs_get_memsize"
28209 #: ../src/guestfs-actions.pod:2454
28213 " guestfs_get_memsize (guestfs_h *g);\n"
28218 #: ../src/guestfs-actions.pod:2460
28220 "If C<guestfs_set_memsize> was not called on this handle, and if "
28221 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
28222 "value for memsize."
28226 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5048
28227 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5276
28228 #: ../src/guestfs-actions.pod:5295 ../src/guestfs-actions.pod:5307
28229 #: ../src/guestfs-actions.pod:5324 ../src/guestfs-actions.pod:5337
28230 #: ../src/guestfs-actions.pod:6377 ../src/guestfs-actions.pod:6760
28231 #: ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7662
28232 msgid "(Added in 1.0.55)"
28233 msgstr "(Додано у 1.0.55)"
28236 #: ../src/guestfs-actions.pod:2471
28237 msgid "guestfs_get_network"
28241 #: ../src/guestfs-actions.pod:2473
28245 " guestfs_get_network (guestfs_h *g);\n"
28250 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6779
28251 msgid "(Added in 1.5.4)"
28252 msgstr "(Додано у 1.5.4)"
28255 #: ../src/guestfs-actions.pod:2482
28256 msgid "guestfs_get_path"
28260 #: ../src/guestfs-actions.pod:2484
28264 " guestfs_get_path (guestfs_h *g);\n"
28269 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
28271 "This function returns a string, or NULL on error. The string is owned by "
28272 "the guest handle and must I<not> be freed."
28276 #: ../src/guestfs-actions.pod:2497
28277 msgid "guestfs_get_pgroup"
28281 #: ../src/guestfs-actions.pod:2499
28285 " guestfs_get_pgroup (guestfs_h *g);\n"
28290 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6815
28291 #: ../src/guestfs-actions.pod:8154
28292 msgid "(Added in 1.11.18)"
28293 msgstr "(Додано у 1.11.18)"
28296 #: ../src/guestfs-actions.pod:2508
28297 msgid "guestfs_get_pid"
28301 #: ../src/guestfs-actions.pod:2510
28305 " guestfs_get_pid (guestfs_h *g);\n"
28310 #: ../src/guestfs-actions.pod:2520
28311 msgid "(Added in 1.0.56)"
28312 msgstr "(Додано у 1.0.56)"
28315 #: ../src/guestfs-actions.pod:2522
28316 msgid "guestfs_get_qemu"
28320 #: ../src/guestfs-actions.pod:2524
28324 " guestfs_get_qemu (guestfs_h *g);\n"
28329 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:6843
28330 msgid "(Added in 1.0.6)"
28331 msgstr "(Додано у 1.0.6)"
28334 #: ../src/guestfs-actions.pod:2537
28335 msgid "guestfs_get_recovery_proc"
28339 #: ../src/guestfs-actions.pod:2539
28343 " guestfs_get_recovery_proc (guestfs_h *g);\n"
28348 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4130
28349 #: ../src/guestfs-actions.pod:4461 ../src/guestfs-actions.pod:4855
28350 #: ../src/guestfs-actions.pod:4887 ../src/guestfs-actions.pod:6082
28351 #: ../src/guestfs-actions.pod:6425 ../src/guestfs-actions.pod:6867
28352 #: ../src/guestfs-actions.pod:7565 ../src/guestfs-actions.pod:7585
28353 #: ../src/guestfs-actions.pod:7777
28354 msgid "(Added in 1.0.77)"
28355 msgstr "(Додано у 1.0.77)"
28358 #: ../src/guestfs-actions.pod:2548
28359 msgid "guestfs_get_selinux"
28363 #: ../src/guestfs-actions.pod:2550
28367 " guestfs_get_selinux (guestfs_h *g);\n"
28372 #: ../src/guestfs-actions.pod:2553
28374 "This returns the current setting of the selinux flag which is passed to the "
28375 "appliance at boot time. See C<guestfs_set_selinux>."
28379 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635
28380 #: ../src/guestfs-actions.pod:6886 ../src/guestfs-actions.pod:6960
28381 msgid "(Added in 1.0.67)"
28382 msgstr "(Додано у 1.0.67)"
28385 #: ../src/guestfs-actions.pod:2563
28386 msgid "guestfs_get_smp"
28390 #: ../src/guestfs-actions.pod:2565
28394 " guestfs_get_smp (guestfs_h *g);\n"
28399 #: ../src/guestfs-actions.pod:2574
28400 msgid "guestfs_get_state"
28404 #: ../src/guestfs-actions.pod:2576
28408 " guestfs_get_state (guestfs_h *g);\n"
28413 #: ../src/guestfs-actions.pod:2588
28414 msgid "guestfs_get_trace"
28418 #: ../src/guestfs-actions.pod:2590
28422 " guestfs_get_trace (guestfs_h *g);\n"
28427 #: ../src/guestfs-actions.pod:2599
28428 msgid "guestfs_get_umask"
28432 #: ../src/guestfs-actions.pod:2601
28436 " guestfs_get_umask (guestfs_h *g);\n"
28441 #: ../src/guestfs-actions.pod:2604
28443 "Return the current umask. By default the umask is C<022> unless it has been "
28444 "set by calling C<guestfs_umask>."
28448 #: ../src/guestfs-actions.pod:2611
28449 msgid "guestfs_get_verbose"
28453 #: ../src/guestfs-actions.pod:2613
28457 " guestfs_get_verbose (guestfs_h *g);\n"
28462 #: ../src/guestfs-actions.pod:2622
28463 msgid "guestfs_getcon"
28467 #: ../src/guestfs-actions.pod:2624
28471 " guestfs_getcon (guestfs_h *g);\n"
28476 #: ../src/guestfs-actions.pod:2629
28478 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
28482 #: ../src/guestfs-actions.pod:2637
28483 msgid "guestfs_getxattr"
28487 #: ../src/guestfs-actions.pod:2639
28491 " guestfs_getxattr (guestfs_h *g,\n"
28492 " const char *path,\n"
28493 " const char *name,\n"
28494 " size_t *size_r);\n"
28499 #: ../src/guestfs-actions.pod:2645
28501 "Get a single extended attribute from file C<path> named C<name>. This call "
28502 "follows symlinks. If you want to lookup an extended attribute for the "
28503 "symlink itself, use C<guestfs_lgetxattr>."
28507 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4144
28509 "Normally it is better to get all extended attributes from a file in one go "
28510 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
28511 "implementations are buggy and do not provide a way to list out attributes. "
28512 "For these filesystems (notably ntfs-3g) you have to know the names of the "
28513 "extended attributes you want in advance and call this function."
28517 #: ../src/guestfs-actions.pod:2659
28518 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
28522 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874
28523 #: ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4156
28524 #: ../src/guestfs-actions.pod:6075 ../src/guestfs-actions.pod:6101
28525 #: ../src/guestfs-actions.pod:6282
28527 "This function returns a buffer, or NULL on error. The size of the returned "
28528 "buffer is written to C<*size_r>. I<The caller must free the returned buffer "
28533 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4160
28534 msgid "(Added in 1.7.24)"
28535 msgstr "(Додано у 1.7.24)"
28538 #: ../src/guestfs-actions.pod:2667
28539 msgid "guestfs_getxattrs"
28543 #: ../src/guestfs-actions.pod:2669
28546 " struct guestfs_xattr_list *\n"
28547 " guestfs_getxattrs (guestfs_h *g,\n"
28548 " const char *path);\n"
28553 #: ../src/guestfs-actions.pod:2679
28554 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
28558 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4172
28559 #: ../src/guestfs-actions.pod:4851
28561 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
28562 "an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
28566 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4176
28567 #: ../src/guestfs-actions.pod:4375 ../src/guestfs-actions.pod:4411
28568 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6979
28569 #: ../src/guestfs-actions.pod:8362
28570 msgid "(Added in 1.0.59)"
28571 msgstr "(Додано у 1.0.59)"
28574 #: ../src/guestfs-actions.pod:2687
28575 msgid "guestfs_glob_expand"
28579 #: ../src/guestfs-actions.pod:2689
28583 " guestfs_glob_expand (guestfs_h *g,\n"
28584 " const char *pattern);\n"
28589 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7163
28590 #: ../src/guestfs-actions.pod:7180
28591 msgid "(Added in 1.0.50)"
28592 msgstr "(Додано у 1.0.50)"
28595 #: ../src/guestfs-actions.pod:2710
28596 msgid "guestfs_grep"
28600 #: ../src/guestfs-actions.pod:2712
28604 " guestfs_grep (guestfs_h *g,\n"
28605 " const char *regex,\n"
28606 " const char *path);\n"
28611 #: ../src/guestfs-actions.pod:2729
28612 msgid "guestfs_grepi"
28616 #: ../src/guestfs-actions.pod:2731
28620 " guestfs_grepi (guestfs_h *g,\n"
28621 " const char *regex,\n"
28622 " const char *path);\n"
28627 #: ../src/guestfs-actions.pod:2748
28628 msgid "guestfs_grub_install"
28632 #: ../src/guestfs-actions.pod:2750
28636 " guestfs_grub_install (guestfs_h *g,\n"
28637 " const char *root,\n"
28638 " const char *device);\n"
28643 #: ../src/guestfs-actions.pod:2793
28644 msgid "(Added in 1.0.17)"
28645 msgstr "(Додано у 1.0.17)"
28648 #: ../src/guestfs-actions.pod:2795
28649 msgid "guestfs_head"
28653 #: ../src/guestfs-actions.pod:2797
28657 " guestfs_head (guestfs_h *g,\n"
28658 " const char *path);\n"
28663 #: ../src/guestfs-actions.pod:2813
28664 msgid "guestfs_head_n"
28668 #: ../src/guestfs-actions.pod:2815
28672 " guestfs_head_n (guestfs_h *g,\n"
28674 " const char *path);\n"
28679 #: ../src/guestfs-actions.pod:2837
28680 msgid "guestfs_hexdump"
28684 #: ../src/guestfs-actions.pod:2839
28688 " guestfs_hexdump (guestfs_h *g,\n"
28689 " const char *path);\n"
28694 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7244
28695 #: ../src/guestfs-actions.pod:7299
28696 msgid "(Added in 1.0.22)"
28697 msgstr "(Додано у 1.0.22)"
28700 #: ../src/guestfs-actions.pod:2854
28701 msgid "guestfs_initrd_cat"
28705 #: ../src/guestfs-actions.pod:2856
28709 " guestfs_initrd_cat (guestfs_h *g,\n"
28710 " const char *initrdpath,\n"
28711 " const char *filename,\n"
28712 " size_t *size_r);\n"
28717 #: ../src/guestfs-actions.pod:2872
28718 msgid "See also C<guestfs_initrd_list>."
28722 #: ../src/guestfs-actions.pod:2883
28723 msgid "guestfs_initrd_list"
28727 #: ../src/guestfs-actions.pod:2885
28731 " guestfs_initrd_list (guestfs_h *g,\n"
28732 " const char *path);\n"
28737 #: ../src/guestfs-actions.pod:2905
28738 msgid "guestfs_inotify_add_watch"
28742 #: ../src/guestfs-actions.pod:2907
28746 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28747 " const char *path,\n"
28753 #: ../src/guestfs-actions.pod:2926
28754 msgid "guestfs_inotify_close"
28758 #: ../src/guestfs-actions.pod:2928
28762 " guestfs_inotify_close (guestfs_h *g);\n"
28767 #: ../src/guestfs-actions.pod:2939
28768 msgid "guestfs_inotify_files"
28772 #: ../src/guestfs-actions.pod:2941
28776 " guestfs_inotify_files (guestfs_h *g);\n"
28781 #: ../src/guestfs-actions.pod:2944
28783 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28784 "returns a list of pathnames of objects that were touched. The returned "
28785 "pathnames are sorted and deduplicated."
28789 #: ../src/guestfs-actions.pod:2954
28790 msgid "guestfs_inotify_init"
28794 #: ../src/guestfs-actions.pod:2956
28798 " guestfs_inotify_init (guestfs_h *g,\n"
28799 " int maxevents);\n"
28804 #: ../src/guestfs-actions.pod:2964
28806 "C<maxevents> is the maximum number of events which will be queued up between "
28807 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
28808 "passed as C<0>, then the kernel (or previously set) default is used. For "
28809 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
28810 "throws away events, but records the fact that it threw them away by setting "
28811 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28812 "C<guestfs_inotify_read>)."
28816 #: ../src/guestfs-actions.pod:2974
28818 "Before any events are generated, you have to add some watches to the "
28819 "internal watch list. See: C<guestfs_inotify_add_watch>, "
28820 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28824 #: ../src/guestfs-actions.pod:2980
28826 "Queued up events should be read periodically by calling "
28827 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28828 "wrapper around C<guestfs_inotify_read>). If you don't read the events out "
28829 "often enough then you risk the internal queue overflowing."
28833 #: ../src/guestfs-actions.pod:2987
28835 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
28836 "This also removes any watches automatically."
28840 #: ../src/guestfs-actions.pod:3000
28841 msgid "guestfs_inotify_read"
28845 #: ../src/guestfs-actions.pod:3002
28848 " struct guestfs_inotify_event_list *\n"
28849 " guestfs_inotify_read (guestfs_h *g);\n"
28854 #: ../src/guestfs-actions.pod:3016
28856 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28857 "there was an error. I<The caller must call "
28858 "C<guestfs_free_inotify_event_list> after use>."
28862 #: ../src/guestfs-actions.pod:3022
28863 msgid "guestfs_inotify_rm_watch"
28867 #: ../src/guestfs-actions.pod:3024
28871 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28877 #: ../src/guestfs-actions.pod:3028
28879 "Remove a previously defined inotify watch. See C<guestfs_inotify_add_watch>."
28883 #: ../src/guestfs-actions.pod:3035
28884 msgid "guestfs_inspect_get_arch"
28888 #: ../src/guestfs-actions.pod:3037
28892 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28893 " const char *root);\n"
28898 #: ../src/guestfs-actions.pod:3041
28900 "This returns the architecture of the inspected operating system. The "
28901 "possible return values are listed under C<guestfs_file_architecture>."
28905 #: ../src/guestfs-actions.pod:3055
28906 msgid "guestfs_inspect_get_distro"
28910 #: ../src/guestfs-actions.pod:3057
28914 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28915 " const char *root);\n"
28920 #: ../src/guestfs-actions.pod:3157
28921 msgid "guestfs_inspect_get_drive_mappings"
28925 #: ../src/guestfs-actions.pod:3159
28929 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28930 " const char *root);\n"
28935 #: ../src/guestfs-actions.pod:3188
28937 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28938 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28942 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460
28943 #: ../src/guestfs-actions.pod:4263 ../src/guestfs-actions.pod:5526
28944 #: ../src/guestfs-actions.pod:7601
28946 "This function returns a NULL-terminated array of strings, or NULL if there "
28947 "was an error. The array of strings will always have length C<2n+1>, where "
28948 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
28949 "caller must free the strings and the array after use>."
28953 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3659
28954 msgid "(Added in 1.9.17)"
28955 msgstr "(Додано у 1.9.17)"
28958 #: ../src/guestfs-actions.pod:3200
28959 msgid "guestfs_inspect_get_filesystems"
28963 #: ../src/guestfs-actions.pod:3202
28967 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
28968 " const char *root);\n"
28973 #: ../src/guestfs-actions.pod:3214
28975 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28976 "C<guestfs_inspect_get_mountpoints>."
28980 #: ../src/guestfs-actions.pod:3223
28981 msgid "guestfs_inspect_get_format"
28985 #: ../src/guestfs-actions.pod:3225
28989 " guestfs_inspect_get_format (guestfs_h *g,\n"
28990 " const char *root);\n"
28995 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3695
28996 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3729
28997 #: ../src/guestfs-actions.pod:6493
28998 msgid "(Added in 1.9.4)"
28999 msgstr "(Додано у 1.9.4)"
29002 #: ../src/guestfs-actions.pod:3261
29003 msgid "guestfs_inspect_get_hostname"
29007 #: ../src/guestfs-actions.pod:3263
29011 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
29012 " const char *root);\n"
29017 #: ../src/guestfs-actions.pod:3278
29018 msgid "(Added in 1.7.9)"
29019 msgstr "(Додано у 1.7.9)"
29022 #: ../src/guestfs-actions.pod:3280
29023 msgid "guestfs_inspect_get_icon"
29027 #: ../src/guestfs-actions.pod:3282
29031 " guestfs_inspect_get_icon (guestfs_h *g,\n"
29032 " const char *root,\n"
29033 " size_t *size_r,\n"
29039 #: ../src/guestfs-actions.pod:3293
29042 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
29043 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
29048 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4190
29049 #: ../src/guestfs-actions.pod:5425
29050 msgid "(Added in 1.11.12)"
29051 msgstr "(Додано у 1.11.12)"
29054 #: ../src/guestfs-actions.pod:3362
29055 msgid "guestfs_inspect_get_icon_va"
29059 #: ../src/guestfs-actions.pod:3364
29063 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
29064 " const char *root,\n"
29065 " size_t *size_r,\n"
29066 " va_list args);\n"
29071 #: ../src/guestfs-actions.pod:3370
29072 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
29076 #: ../src/guestfs-actions.pod:3374
29077 msgid "guestfs_inspect_get_icon_argv"
29081 #: ../src/guestfs-actions.pod:3376
29085 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
29086 " const char *root,\n"
29087 " size_t *size_r,\n"
29088 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
29093 #: ../src/guestfs-actions.pod:3382
29094 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
29098 #: ../src/guestfs-actions.pod:3386
29099 msgid "guestfs_inspect_get_major_version"
29103 #: ../src/guestfs-actions.pod:3388
29107 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
29108 " const char *root);\n"
29113 #: ../src/guestfs-actions.pod:3410
29114 msgid "guestfs_inspect_get_minor_version"
29118 #: ../src/guestfs-actions.pod:3412
29122 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
29123 " const char *root);\n"
29128 #: ../src/guestfs-actions.pod:3421
29130 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29131 "C<guestfs_inspect_get_major_version>."
29135 #: ../src/guestfs-actions.pod:3428
29136 msgid "guestfs_inspect_get_mountpoints"
29140 #: ../src/guestfs-actions.pod:3430
29144 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
29145 " const char *root);\n"
29150 #: ../src/guestfs-actions.pod:3451
29152 "For operating systems like Windows which still use drive letters, this call "
29153 "will only return an entry for the first drive \"mounted on\" C</>. For "
29154 "information about the mapping of drive letters to partitions, see "
29155 "C<guestfs_inspect_get_drive_mappings>."
29159 #: ../src/guestfs-actions.pod:3457
29161 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29162 "C<guestfs_inspect_get_filesystems>."
29166 #: ../src/guestfs-actions.pod:3468
29167 msgid "guestfs_inspect_get_package_format"
29171 #: ../src/guestfs-actions.pod:3470
29175 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
29176 " const char *root);\n"
29181 #: ../src/guestfs-actions.pod:3474
29183 "This function and C<guestfs_inspect_get_package_management> return the "
29184 "package format and package management tool used by the inspected operating "
29185 "system. For example for Fedora these functions would return C<rpm> (package "
29186 "format) and C<yum> (package management)."
29190 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
29191 msgid "(Added in 1.7.5)"
29192 msgstr "(Додано у 1.7.5)"
29195 #: ../src/guestfs-actions.pod:3495
29196 msgid "guestfs_inspect_get_package_management"
29200 #: ../src/guestfs-actions.pod:3497
29204 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
29205 " const char *root);\n"
29210 #: ../src/guestfs-actions.pod:3501
29212 "C<guestfs_inspect_get_package_format> and this function return the package "
29213 "format and package management tool used by the inspected operating system. "
29214 "For example for Fedora these functions would return C<rpm> (package format) "
29215 "and C<yum> (package management)."
29219 #: ../src/guestfs-actions.pod:3523
29220 msgid "guestfs_inspect_get_product_name"
29224 #: ../src/guestfs-actions.pod:3525
29228 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
29229 " const char *root);\n"
29234 #: ../src/guestfs-actions.pod:3544
29235 msgid "guestfs_inspect_get_product_variant"
29239 #: ../src/guestfs-actions.pod:3546
29243 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
29244 " const char *root);\n"
29249 #: ../src/guestfs-actions.pod:3569
29251 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
29252 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
29256 #: ../src/guestfs-actions.pod:3576
29257 msgid "(Added in 1.9.13)"
29258 msgstr "(Додано у 1.9.13)"
29261 #: ../src/guestfs-actions.pod:3578
29262 msgid "guestfs_inspect_get_roots"
29266 #: ../src/guestfs-actions.pod:3580
29270 " guestfs_inspect_get_roots (guestfs_h *g);\n"
29275 #: ../src/guestfs-actions.pod:3583
29277 "This function is a convenient way to get the list of root devices, as "
29278 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
29279 "the whole inspection process."
29283 #: ../src/guestfs-actions.pod:3587
29285 "This returns an empty list if either no root devices were found or the "
29286 "caller has not called C<guestfs_inspect_os>."
29290 #: ../src/guestfs-actions.pod:3596
29291 msgid "(Added in 1.7.3)"
29292 msgstr "(Додано у 1.7.3)"
29295 #: ../src/guestfs-actions.pod:3598
29296 msgid "guestfs_inspect_get_type"
29300 #: ../src/guestfs-actions.pod:3600
29304 " guestfs_inspect_get_type (guestfs_h *g,\n"
29305 " const char *root);\n"
29310 #: ../src/guestfs-actions.pod:3641
29311 msgid "guestfs_inspect_get_windows_current_control_set"
29315 #: ../src/guestfs-actions.pod:3643
29319 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
29320 " const char *root);\n"
29325 #: ../src/guestfs-actions.pod:3661
29326 msgid "guestfs_inspect_get_windows_systemroot"
29330 #: ../src/guestfs-actions.pod:3663
29334 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
29335 " const char *root);\n"
29340 #: ../src/guestfs-actions.pod:3679
29341 msgid "(Added in 1.5.25)"
29342 msgstr "(Додано у 1.5.25)"
29345 #: ../src/guestfs-actions.pod:3681
29346 msgid "guestfs_inspect_is_live"
29350 #: ../src/guestfs-actions.pod:3683
29354 " guestfs_inspect_is_live (guestfs_h *g,\n"
29355 " const char *root);\n"
29360 #: ../src/guestfs-actions.pod:3687
29362 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29363 "disk), then this returns true if a live image was detected on the disk."
29367 #: ../src/guestfs-actions.pod:3697
29368 msgid "guestfs_inspect_is_multipart"
29372 #: ../src/guestfs-actions.pod:3699
29376 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
29377 " const char *root);\n"
29382 #: ../src/guestfs-actions.pod:3703
29384 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29385 "disk), then this returns true if the disk is part of a set."
29389 #: ../src/guestfs-actions.pod:3713
29390 msgid "guestfs_inspect_is_netinst"
29394 #: ../src/guestfs-actions.pod:3715
29398 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
29399 " const char *root);\n"
29404 #: ../src/guestfs-actions.pod:3719
29406 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29407 "disk), then this returns true if the disk is a network installer, ie. not a "
29408 "self-contained install CD but one which is likely to require network access "
29409 "to complete the install."
29413 #: ../src/guestfs-actions.pod:3731
29414 msgid "guestfs_inspect_list_applications"
29418 #: ../src/guestfs-actions.pod:3733
29421 " struct guestfs_application_list *\n"
29422 " guestfs_inspect_list_applications (guestfs_h *g,\n"
29423 " const char *root);\n"
29428 #: ../src/guestfs-actions.pod:3739
29430 "I<Note:> This call works differently from other parts of the inspection "
29431 "API. You have to call C<guestfs_inspect_os>, then "
29432 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
29433 "this. Listing applications is a significantly more difficult operation "
29434 "which requires access to the full filesystem. Also note that unlike the "
29435 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
29436 "the libguestfs handle, this call actually reads parts of the mounted "
29437 "filesystems during the call."
29441 #: ../src/guestfs-actions.pod:3829
29443 "This function returns a C<struct guestfs_application_list *>, or NULL if "
29444 "there was an error. I<The caller must call C<guestfs_free_application_list> "
29449 #: ../src/guestfs-actions.pod:3833
29450 msgid "(Added in 1.7.8)"
29451 msgstr "(Додано у 1.7.8)"
29454 #: ../src/guestfs-actions.pod:3835
29455 msgid "guestfs_inspect_os"
29459 #: ../src/guestfs-actions.pod:3837
29463 " guestfs_inspect_os (guestfs_h *g);\n"
29468 #: ../src/guestfs-actions.pod:3853
29470 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
29471 "functions in order to query further information about each operating system, "
29472 "such as the name and version."
29476 #: ../src/guestfs-actions.pod:3858
29478 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
29479 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
29480 "the contents. This should be called with no disks currently mounted. The "
29481 "function may also use Augeas, so any existing Augeas handle will be closed."
29485 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:4201
29486 #: ../src/guestfs-actions.pod:4283
29487 msgid "See also C<guestfs_list_filesystems>."
29491 #: ../src/guestfs-actions.pod:3878
29492 msgid "guestfs_is_blockdev"
29496 #: ../src/guestfs-actions.pod:3880
29500 " guestfs_is_blockdev (guestfs_h *g,\n"
29501 " const char *path);\n"
29506 #: ../src/guestfs-actions.pod:3887 ../src/guestfs-actions.pod:3916
29507 #: ../src/guestfs-actions.pod:3946 ../src/guestfs-actions.pod:3961
29508 #: ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4033
29509 #: ../src/guestfs-actions.pod:4048
29510 msgid "See also C<guestfs_stat>."
29514 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3920
29515 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4037
29516 #: ../src/guestfs-actions.pod:4052
29517 msgid "(Added in 1.5.10)"
29518 msgstr "(Додано у 1.5.10)"
29521 #: ../src/guestfs-actions.pod:3893
29522 msgid "guestfs_is_busy"
29526 #: ../src/guestfs-actions.pod:3895
29530 " guestfs_is_busy (guestfs_h *g);\n"
29535 #: ../src/guestfs-actions.pod:3907
29536 msgid "guestfs_is_chardev"
29540 #: ../src/guestfs-actions.pod:3909
29544 " guestfs_is_chardev (guestfs_h *g,\n"
29545 " const char *path);\n"
29550 #: ../src/guestfs-actions.pod:3922
29551 msgid "guestfs_is_config"
29555 #: ../src/guestfs-actions.pod:3924
29559 " guestfs_is_config (guestfs_h *g);\n"
29564 #: ../src/guestfs-actions.pod:3936
29565 msgid "guestfs_is_dir"
29569 #: ../src/guestfs-actions.pod:3938
29573 " guestfs_is_dir (guestfs_h *g,\n"
29574 " const char *path);\n"
29579 #: ../src/guestfs-actions.pod:3952
29580 msgid "guestfs_is_fifo"
29584 #: ../src/guestfs-actions.pod:3954
29588 " guestfs_is_fifo (guestfs_h *g,\n"
29589 " const char *path);\n"
29594 #: ../src/guestfs-actions.pod:3967
29595 msgid "guestfs_is_file"
29599 #: ../src/guestfs-actions.pod:3969
29603 " guestfs_is_file (guestfs_h *g,\n"
29604 " const char *path);\n"
29609 #: ../src/guestfs-actions.pod:3983
29610 msgid "guestfs_is_launching"
29614 #: ../src/guestfs-actions.pod:3985
29618 " guestfs_is_launching (guestfs_h *g);\n"
29623 #: ../src/guestfs-actions.pod:3997
29624 msgid "guestfs_is_lv"
29628 #: ../src/guestfs-actions.pod:3999
29632 " guestfs_is_lv (guestfs_h *g,\n"
29633 " const char *device);\n"
29638 #: ../src/guestfs-actions.pod:4010
29639 msgid "guestfs_is_ready"
29643 #: ../src/guestfs-actions.pod:4012
29647 " guestfs_is_ready (guestfs_h *g);\n"
29652 #: ../src/guestfs-actions.pod:4024
29653 msgid "guestfs_is_socket"
29657 #: ../src/guestfs-actions.pod:4026
29661 " guestfs_is_socket (guestfs_h *g,\n"
29662 " const char *path);\n"
29667 #: ../src/guestfs-actions.pod:4039
29668 msgid "guestfs_is_symlink"
29672 #: ../src/guestfs-actions.pod:4041
29676 " guestfs_is_symlink (guestfs_h *g,\n"
29677 " const char *path);\n"
29682 #: ../src/guestfs-actions.pod:4054
29683 msgid "guestfs_is_zero"
29687 #: ../src/guestfs-actions.pod:4056
29691 " guestfs_is_zero (guestfs_h *g,\n"
29692 " const char *path);\n"
29697 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4079
29698 msgid "(Added in 1.11.8)"
29699 msgstr "(Додано у 1.11.8)"
29702 #: ../src/guestfs-actions.pod:4067
29703 msgid "guestfs_is_zero_device"
29707 #: ../src/guestfs-actions.pod:4069
29711 " guestfs_is_zero_device (guestfs_h *g,\n"
29712 " const char *device);\n"
29717 #: ../src/guestfs-actions.pod:4081
29718 msgid "guestfs_kill_subprocess"
29722 #: ../src/guestfs-actions.pod:4083
29726 " guestfs_kill_subprocess (guestfs_h *g);\n"
29731 #: ../src/guestfs-actions.pod:4092
29732 msgid "guestfs_launch"
29736 #: ../src/guestfs-actions.pod:4094
29740 " guestfs_launch (guestfs_h *g);\n"
29745 #: ../src/guestfs-actions.pod:4112
29746 msgid "guestfs_lchown"
29750 #: ../src/guestfs-actions.pod:4114
29754 " guestfs_lchown (guestfs_h *g,\n"
29757 " const char *path);\n"
29762 #: ../src/guestfs-actions.pod:4120
29764 "Change the file owner to C<owner> and group to C<group>. This is like "
29765 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29766 "changed, not the target."
29770 #: ../src/guestfs-actions.pod:4132
29771 msgid "guestfs_lgetxattr"
29775 #: ../src/guestfs-actions.pod:4134
29779 " guestfs_lgetxattr (guestfs_h *g,\n"
29780 " const char *path,\n"
29781 " const char *name,\n"
29782 " size_t *size_r);\n"
29787 #: ../src/guestfs-actions.pod:4154
29788 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29792 #: ../src/guestfs-actions.pod:4162
29793 msgid "guestfs_lgetxattrs"
29797 #: ../src/guestfs-actions.pod:4164
29800 " struct guestfs_xattr_list *\n"
29801 " guestfs_lgetxattrs (guestfs_h *g,\n"
29802 " const char *path);\n"
29807 #: ../src/guestfs-actions.pod:4168
29809 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29810 "then it returns the extended attributes of the link itself."
29814 #: ../src/guestfs-actions.pod:4178
29815 msgid "guestfs_list_9p"
29819 #: ../src/guestfs-actions.pod:4180
29823 " guestfs_list_9p (guestfs_h *g);\n"
29828 #: ../src/guestfs-actions.pod:4192
29829 msgid "guestfs_list_devices"
29833 #: ../src/guestfs-actions.pod:4194
29837 " guestfs_list_devices (guestfs_h *g);\n"
29842 #: ../src/guestfs-actions.pod:4209
29843 msgid "guestfs_list_dm_devices"
29847 #: ../src/guestfs-actions.pod:4211
29851 " guestfs_list_dm_devices (guestfs_h *g);\n"
29856 #: ../src/guestfs-actions.pod:4216
29858 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29859 "previous call to C<guestfs_luks_open>."
29863 #: ../src/guestfs-actions.pod:4219
29865 "Device mapper devices which correspond to logical volumes are I<not> "
29866 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
29871 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:5664
29872 msgid "(Added in 1.11.15)"
29873 msgstr "(Додано у 1.11.15)"
29876 #: ../src/guestfs-actions.pod:4229
29877 msgid "guestfs_list_filesystems"
29881 #: ../src/guestfs-actions.pod:4231
29885 " guestfs_list_filesystems (guestfs_h *g);\n"
29890 #: ../src/guestfs-actions.pod:4251
29892 "This command runs other libguestfs commands, which might include "
29893 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29894 "soon after launch and only when nothing is mounted."
29898 #: ../src/guestfs-actions.pod:4255
29900 "Not all of the filesystems returned will be mountable. In particular, swap "
29901 "partitions are returned in the list. Also this command does not check that "
29902 "each filesystem found is valid and mountable, and some filesystems might be "
29903 "mountable but require special options. Filesystems may not all belong to a "
29904 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
29908 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:6024
29909 msgid "(Added in 1.5.15)"
29910 msgstr "(Додано у 1.5.15)"
29913 #: ../src/guestfs-actions.pod:4271
29914 msgid "guestfs_list_partitions"
29915 msgstr "guestfs_list_partitions"
29918 #: ../src/guestfs-actions.pod:4273
29922 " guestfs_list_partitions (guestfs_h *g);\n"
29926 " guestfs_list_partitions (guestfs_h *g);\n"
29930 #: ../src/guestfs-actions.pod:4280
29932 "This does not return logical volumes. For that you will need to call "
29937 #: ../src/guestfs-actions.pod:4291
29939 msgstr "guestfs_ll"
29942 #: ../src/guestfs-actions.pod:4293
29946 " guestfs_ll (guestfs_h *g,\n"
29947 " const char *directory);\n"
29951 " guestfs_ll (guestfs_h *g,\n"
29952 " const char *directory);\n"
29956 #: ../src/guestfs-actions.pod:4308
29958 msgstr "guestfs_ln"
29961 #: ../src/guestfs-actions.pod:4310
29965 " guestfs_ln (guestfs_h *g,\n"
29966 " const char *target,\n"
29967 " const char *linkname);\n"
29971 " guestfs_ln (guestfs_h *g,\n"
29972 " const char *target,\n"
29973 " const char *linkname);\n"
29977 #: ../src/guestfs-actions.pod:4321
29978 msgid "guestfs_ln_f"
29979 msgstr "guestfs_ln_f"
29982 #: ../src/guestfs-actions.pod:4323
29986 " guestfs_ln_f (guestfs_h *g,\n"
29987 " const char *target,\n"
29988 " const char *linkname);\n"
29992 " guestfs_ln_f (guestfs_h *g,\n"
29993 " const char *target,\n"
29994 " const char *linkname);\n"
29998 #: ../src/guestfs-actions.pod:4335
29999 msgid "guestfs_ln_s"
30000 msgstr "guestfs_ln_s"
30003 #: ../src/guestfs-actions.pod:4337
30007 " guestfs_ln_s (guestfs_h *g,\n"
30008 " const char *target,\n"
30009 " const char *linkname);\n"
30013 " guestfs_ln_s (guestfs_h *g,\n"
30014 " const char *target,\n"
30015 " const char *linkname);\n"
30019 #: ../src/guestfs-actions.pod:4348
30020 msgid "guestfs_ln_sf"
30021 msgstr "guestfs_ln_sf"
30024 #: ../src/guestfs-actions.pod:4350
30028 " guestfs_ln_sf (guestfs_h *g,\n"
30029 " const char *target,\n"
30030 " const char *linkname);\n"
30034 " guestfs_ln_sf (guestfs_h *g,\n"
30035 " const char *target,\n"
30036 " const char *linkname);\n"
30040 #: ../src/guestfs-actions.pod:4362
30041 msgid "guestfs_lremovexattr"
30042 msgstr "guestfs_lremovexattr"
30045 #: ../src/guestfs-actions.pod:4364
30049 " guestfs_lremovexattr (guestfs_h *g,\n"
30050 " const char *xattr,\n"
30051 " const char *path);\n"
30055 " guestfs_lremovexattr (guestfs_h *g,\n"
30056 " const char *xattr,\n"
30057 " const char *path);\n"
30061 #: ../src/guestfs-actions.pod:4369
30063 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
30064 "link, then it removes an extended attribute of the link itself."
30068 #: ../src/guestfs-actions.pod:4377
30070 msgstr "guestfs_ls"
30073 #: ../src/guestfs-actions.pod:4379
30077 " guestfs_ls (guestfs_h *g,\n"
30078 " const char *directory);\n"
30082 " guestfs_ls (guestfs_h *g,\n"
30083 " const char *directory);\n"
30087 #: ../src/guestfs-actions.pod:4387
30089 "This command is mostly useful for interactive sessions. Programs should "
30090 "probably use C<guestfs_readdir> instead."
30094 #: ../src/guestfs-actions.pod:4396
30095 msgid "guestfs_lsetxattr"
30096 msgstr "guestfs_lsetxattr"
30099 #: ../src/guestfs-actions.pod:4398
30103 " guestfs_lsetxattr (guestfs_h *g,\n"
30104 " const char *xattr,\n"
30105 " const char *val,\n"
30107 " const char *path);\n"
30111 " guestfs_lsetxattr (guestfs_h *g,\n"
30112 " const char *xattr,\n"
30113 " const char *val,\n"
30115 " const char *path);\n"
30119 #: ../src/guestfs-actions.pod:4405
30121 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
30122 "then it sets an extended attribute of the link itself."
30126 #: ../src/guestfs-actions.pod:4413
30127 msgid "guestfs_lstat"
30128 msgstr "guestfs_lstat"
30131 #: ../src/guestfs-actions.pod:4415
30134 " struct guestfs_stat *\n"
30135 " guestfs_lstat (guestfs_h *g,\n"
30136 " const char *path);\n"
30139 " struct guestfs_stat *\n"
30140 " guestfs_lstat (guestfs_h *g,\n"
30141 " const char *path);\n"
30145 #: ../src/guestfs-actions.pod:4421
30147 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
30148 "link, then the link is stat-ed, not the file it refers to."
30152 #: ../src/guestfs-actions.pod:4427 ../src/guestfs-actions.pod:7204
30154 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
30155 "error. I<The caller must call C<guestfs_free_stat> after use>."
30159 #: ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:7208
30160 #: ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7607
30161 msgid "(Added in 0.9.2)"
30162 msgstr "(Додано у 0.9.2)"
30165 #: ../src/guestfs-actions.pod:4433
30166 msgid "guestfs_lstatlist"
30167 msgstr "guestfs_lstatlist"
30170 #: ../src/guestfs-actions.pod:4435
30173 " struct guestfs_stat_list *\n"
30174 " guestfs_lstatlist (guestfs_h *g,\n"
30175 " const char *path,\n"
30176 " char *const *names);\n"
30179 " struct guestfs_stat_list *\n"
30180 " guestfs_lstatlist (guestfs_h *g,\n"
30181 " const char *path,\n"
30182 " char *const *names);\n"
30186 #: ../src/guestfs-actions.pod:4440
30188 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
30189 "files, where all files are in the directory C<path>. C<names> is the list "
30190 "of files from this directory."
30194 #: ../src/guestfs-actions.pod:4449
30196 "This call is intended for programs that want to efficiently list a directory "
30197 "contents without making many round-trips. See also C<guestfs_lxattrlist> "
30198 "for a similarly efficient call for getting extended attributes. Very long "
30199 "directory listings might cause the protocol message size to be exceeded, "
30200 "causing this call to fail. The caller must split up such requests into "
30201 "smaller groups of names."
30205 #: ../src/guestfs-actions.pod:4457
30207 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
30208 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
30212 #: ../src/guestfs-actions.pod:4463
30213 msgid "guestfs_luks_add_key"
30214 msgstr "guestfs_luks_add_key"
30217 #: ../src/guestfs-actions.pod:4465
30221 " guestfs_luks_add_key (guestfs_h *g,\n"
30222 " const char *device,\n"
30223 " const char *key,\n"
30224 " const char *newkey,\n"
30229 " guestfs_luks_add_key (guestfs_h *g,\n"
30230 " const char *device,\n"
30231 " const char *key,\n"
30232 " const char *newkey,\n"
30237 #: ../src/guestfs-actions.pod:4477
30239 "Note that if C<keyslot> already contains a key, then this command will "
30240 "fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
30244 #: ../src/guestfs-actions.pod:4483 ../src/guestfs-actions.pod:4520
30245 #: ../src/guestfs-actions.pod:4540 ../src/guestfs-actions.pod:4560
30246 #: ../src/guestfs-actions.pod:4595 ../src/guestfs-actions.pod:4614
30248 "This function takes a key or passphrase parameter which could contain "
30249 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
30254 #: ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:4524
30255 #: ../src/guestfs-actions.pod:4544 ../src/guestfs-actions.pod:4564
30256 msgid "(Added in 1.5.2)"
30257 msgstr "(Додано у 1.5.2)"
30260 #: ../src/guestfs-actions.pod:4489
30261 msgid "guestfs_luks_close"
30262 msgstr "guestfs_luks_close"
30265 #: ../src/guestfs-actions.pod:4491
30269 " guestfs_luks_close (guestfs_h *g,\n"
30270 " const char *device);\n"
30274 " guestfs_luks_close (guestfs_h *g,\n"
30275 " const char *device);\n"
30279 #: ../src/guestfs-actions.pod:4495
30281 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
30282 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
30283 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
30284 "underlying block device."
30288 #: ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:4599
30289 #: ../src/guestfs-actions.pod:4618 ../src/guestfs-actions.pod:4668
30290 #: ../src/guestfs-actions.pod:4713
30291 msgid "(Added in 1.5.1)"
30292 msgstr "(Додано у 1.5.1)"
30295 #: ../src/guestfs-actions.pod:4505
30296 msgid "guestfs_luks_format"
30297 msgstr "guestfs_luks_format"
30300 #: ../src/guestfs-actions.pod:4507
30304 " guestfs_luks_format (guestfs_h *g,\n"
30305 " const char *device,\n"
30306 " const char *key,\n"
30311 " guestfs_luks_format (guestfs_h *g,\n"
30312 " const char *device,\n"
30313 " const char *key,\n"
30318 #: ../src/guestfs-actions.pod:4526
30319 msgid "guestfs_luks_format_cipher"
30320 msgstr "guestfs_luks_format_cipher"
30323 #: ../src/guestfs-actions.pod:4528
30327 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30328 " const char *device,\n"
30329 " const char *key,\n"
30331 " const char *cipher);\n"
30335 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30336 " const char *device,\n"
30337 " const char *key,\n"
30339 " const char *cipher);\n"
30343 #: ../src/guestfs-actions.pod:4535
30345 "This command is the same as C<guestfs_luks_format> but it also allows you to "
30346 "set the C<cipher> used."
30350 #: ../src/guestfs-actions.pod:4546
30351 msgid "guestfs_luks_kill_slot"
30352 msgstr "guestfs_luks_kill_slot"
30355 #: ../src/guestfs-actions.pod:4548
30359 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30360 " const char *device,\n"
30361 " const char *key,\n"
30366 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30367 " const char *device,\n"
30368 " const char *key,\n"
30373 #: ../src/guestfs-actions.pod:4566
30374 msgid "guestfs_luks_open"
30375 msgstr "guestfs_luks_open"
30378 #: ../src/guestfs-actions.pod:4568
30382 " guestfs_luks_open (guestfs_h *g,\n"
30383 " const char *device,\n"
30384 " const char *key,\n"
30385 " const char *mapname);\n"
30389 " guestfs_luks_open (guestfs_h *g,\n"
30390 " const char *device,\n"
30391 " const char *key,\n"
30392 " const char *mapname);\n"
30396 #: ../src/guestfs-actions.pod:4586
30398 "If this block device contains LVM volume groups, then calling "
30399 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
30404 #: ../src/guestfs-actions.pod:4590
30405 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
30409 #: ../src/guestfs-actions.pod:4601
30410 msgid "guestfs_luks_open_ro"
30411 msgstr "guestfs_luks_open_ro"
30414 #: ../src/guestfs-actions.pod:4603
30418 " guestfs_luks_open_ro (guestfs_h *g,\n"
30419 " const char *device,\n"
30420 " const char *key,\n"
30421 " const char *mapname);\n"
30425 " guestfs_luks_open_ro (guestfs_h *g,\n"
30426 " const char *device,\n"
30427 " const char *key,\n"
30428 " const char *mapname);\n"
30432 #: ../src/guestfs-actions.pod:4609
30434 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
30439 #: ../src/guestfs-actions.pod:4620
30440 msgid "guestfs_lvcreate"
30441 msgstr "guestfs_lvcreate"
30444 #: ../src/guestfs-actions.pod:4622
30448 " guestfs_lvcreate (guestfs_h *g,\n"
30449 " const char *logvol,\n"
30450 " const char *volgroup,\n"
30455 " guestfs_lvcreate (guestfs_h *g,\n"
30456 " const char *logvol,\n"
30457 " const char *volgroup,\n"
30462 #: ../src/guestfs-actions.pod:4635
30463 msgid "guestfs_lvm_canonical_lv_name"
30464 msgstr "guestfs_lvm_canonical_lv_name"
30467 #: ../src/guestfs-actions.pod:4637
30471 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30472 " const char *lvname);\n"
30476 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30477 " const char *lvname);\n"
30481 #: ../src/guestfs-actions.pod:4648
30482 msgid "See also C<guestfs_is_lv>."
30486 #: ../src/guestfs-actions.pod:4653
30487 msgid "(Added in 1.5.24)"
30488 msgstr "(Додано у 1.5.24)"
30491 #: ../src/guestfs-actions.pod:4655
30492 msgid "guestfs_lvm_clear_filter"
30493 msgstr "guestfs_lvm_clear_filter"
30496 #: ../src/guestfs-actions.pod:4657
30500 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30504 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30508 #: ../src/guestfs-actions.pod:4660
30510 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
30511 "see every block device."
30515 #: ../src/guestfs-actions.pod:4670
30516 msgid "guestfs_lvm_remove_all"
30517 msgstr "guestfs_lvm_remove_all"
30520 #: ../src/guestfs-actions.pod:4672
30524 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30528 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30532 #: ../src/guestfs-actions.pod:4682
30533 msgid "guestfs_lvm_set_filter"
30534 msgstr "guestfs_lvm_set_filter"
30537 #: ../src/guestfs-actions.pod:4684
30541 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30542 " char *const *devices);\n"
30546 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30547 " char *const *devices);\n"
30551 #: ../src/guestfs-actions.pod:4715
30552 msgid "guestfs_lvremove"
30553 msgstr "guestfs_lvremove"
30556 #: ../src/guestfs-actions.pod:4717
30560 " guestfs_lvremove (guestfs_h *g,\n"
30561 " const char *device);\n"
30565 " guestfs_lvremove (guestfs_h *g,\n"
30566 " const char *device);\n"
30570 #: ../src/guestfs-actions.pod:4729 ../src/guestfs-actions.pod:6139
30571 #: ../src/guestfs-actions.pod:7977
30572 msgid "(Added in 1.0.13)"
30573 msgstr "(Додано у 1.0.13)"
30576 #: ../src/guestfs-actions.pod:4731
30577 msgid "guestfs_lvrename"
30578 msgstr "guestfs_lvrename"
30581 #: ../src/guestfs-actions.pod:4733
30585 " guestfs_lvrename (guestfs_h *g,\n"
30586 " const char *logvol,\n"
30587 " const char *newlogvol);\n"
30591 " guestfs_lvrename (guestfs_h *g,\n"
30592 " const char *logvol,\n"
30593 " const char *newlogvol);\n"
30597 #: ../src/guestfs-actions.pod:4742 ../src/guestfs-actions.pod:7990
30598 msgid "(Added in 1.0.83)"
30599 msgstr "(Додано у 1.0.83)"
30602 #: ../src/guestfs-actions.pod:4744
30603 msgid "guestfs_lvresize"
30604 msgstr "guestfs_lvresize"
30607 #: ../src/guestfs-actions.pod:4746
30611 " guestfs_lvresize (guestfs_h *g,\n"
30612 " const char *device,\n"
30617 " guestfs_lvresize (guestfs_h *g,\n"
30618 " const char *device,\n"
30623 #: ../src/guestfs-actions.pod:4759
30624 msgid "guestfs_lvresize_free"
30625 msgstr "guestfs_lvresize_free"
30628 #: ../src/guestfs-actions.pod:4761
30632 " guestfs_lvresize_free (guestfs_h *g,\n"
30633 " const char *lv,\n"
30638 " guestfs_lvresize_free (guestfs_h *g,\n"
30639 " const char *lv,\n"
30644 #: ../src/guestfs-actions.pod:4774
30645 msgid "(Added in 1.3.3)"
30646 msgstr "(Додано у 1.3.3)"
30649 #: ../src/guestfs-actions.pod:4776
30650 msgid "guestfs_lvs"
30651 msgstr "guestfs_lvs"
30654 #: ../src/guestfs-actions.pod:4778
30658 " guestfs_lvs (guestfs_h *g);\n"
30662 " guestfs_lvs (guestfs_h *g);\n"
30666 #: ../src/guestfs-actions.pod:4787
30667 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
30671 #: ../src/guestfs-actions.pod:4795
30672 msgid "guestfs_lvs_full"
30673 msgstr "guestfs_lvs_full"
30676 #: ../src/guestfs-actions.pod:4797
30679 " struct guestfs_lvm_lv_list *\n"
30680 " guestfs_lvs_full (guestfs_h *g);\n"
30683 " struct guestfs_lvm_lv_list *\n"
30684 " guestfs_lvs_full (guestfs_h *g);\n"
30688 #: ../src/guestfs-actions.pod:4803
30690 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
30691 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
30695 #: ../src/guestfs-actions.pod:4809
30696 msgid "guestfs_lvuuid"
30697 msgstr "guestfs_lvuuid"
30700 #: ../src/guestfs-actions.pod:4811
30704 " guestfs_lvuuid (guestfs_h *g,\n"
30705 " const char *device);\n"
30709 " guestfs_lvuuid (guestfs_h *g,\n"
30710 " const char *device);\n"
30714 #: ../src/guestfs-actions.pod:4822
30715 msgid "guestfs_lxattrlist"
30716 msgstr "guestfs_lxattrlist"
30719 #: ../src/guestfs-actions.pod:4824
30722 " struct guestfs_xattr_list *\n"
30723 " guestfs_lxattrlist (guestfs_h *g,\n"
30724 " const char *path,\n"
30725 " char *const *names);\n"
30728 " struct guestfs_xattr_list *\n"
30729 " guestfs_lxattrlist (guestfs_h *g,\n"
30730 " const char *path,\n"
30731 " char *const *names);\n"
30735 #: ../src/guestfs-actions.pod:4843
30737 "This call is intended for programs that want to efficiently list a directory "
30738 "contents without making many round-trips. See also C<guestfs_lstatlist> for "
30739 "a similarly efficient call for getting standard stats. Very long directory "
30740 "listings might cause the protocol message size to be exceeded, causing this "
30741 "call to fail. The caller must split up such requests into smaller groups of "
30746 #: ../src/guestfs-actions.pod:4857
30747 msgid "guestfs_mkdir"
30748 msgstr "guestfs_mkdir"
30751 #: ../src/guestfs-actions.pod:4859
30755 " guestfs_mkdir (guestfs_h *g,\n"
30756 " const char *path);\n"
30760 " guestfs_mkdir (guestfs_h *g,\n"
30761 " const char *path);\n"
30765 #: ../src/guestfs-actions.pod:4869
30766 msgid "guestfs_mkdir_mode"
30767 msgstr "guestfs_mkdir_mode"
30770 #: ../src/guestfs-actions.pod:4871
30774 " guestfs_mkdir_mode (guestfs_h *g,\n"
30775 " const char *path,\n"
30780 " guestfs_mkdir_mode (guestfs_h *g,\n"
30781 " const char *path,\n"
30786 #: ../src/guestfs-actions.pod:4883
30787 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30791 #: ../src/guestfs-actions.pod:4889
30792 msgid "guestfs_mkdir_p"
30793 msgstr "guestfs_mkdir_p"
30796 #: ../src/guestfs-actions.pod:4891
30800 " guestfs_mkdir_p (guestfs_h *g,\n"
30801 " const char *path);\n"
30805 " guestfs_mkdir_p (guestfs_h *g,\n"
30806 " const char *path);\n"
30810 #: ../src/guestfs-actions.pod:4902
30811 msgid "guestfs_mkdtemp"
30812 msgstr "guestfs_mkdtemp"
30815 #: ../src/guestfs-actions.pod:4904
30819 " guestfs_mkdtemp (guestfs_h *g,\n"
30820 " const char *template);\n"
30824 " guestfs_mkdtemp (guestfs_h *g,\n"
30825 " const char *template);\n"
30829 #: ../src/guestfs-actions.pod:4932
30830 msgid "guestfs_mke2fs_J"
30831 msgstr "guestfs_mke2fs_J"
30834 #: ../src/guestfs-actions.pod:4934
30838 " guestfs_mke2fs_J (guestfs_h *g,\n"
30839 " const char *fstype,\n"
30840 " int blocksize,\n"
30841 " const char *device,\n"
30842 " const char *journal);\n"
30846 " guestfs_mke2fs_J (guestfs_h *g,\n"
30847 " const char *fstype,\n"
30848 " int blocksize,\n"
30849 " const char *device,\n"
30850 " const char *journal);\n"
30854 #: ../src/guestfs-actions.pod:4947
30855 msgid "See also C<guestfs_mke2journal>."
30859 #: ../src/guestfs-actions.pod:4951 ../src/guestfs-actions.pod:4969
30860 #: ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:5003
30861 #: ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5031
30862 #: ../src/guestfs-actions.pod:5090 ../src/guestfs-actions.pod:5367
30863 msgid "(Added in 1.0.68)"
30864 msgstr "(Додано у 1.0.68)"
30867 #: ../src/guestfs-actions.pod:4953
30868 msgid "guestfs_mke2fs_JL"
30869 msgstr "guestfs_mke2fs_JL"
30872 #: ../src/guestfs-actions.pod:4955
30876 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30877 " const char *fstype,\n"
30878 " int blocksize,\n"
30879 " const char *device,\n"
30880 " const char *label);\n"
30884 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30885 " const char *fstype,\n"
30886 " int blocksize,\n"
30887 " const char *device,\n"
30888 " const char *label);\n"
30892 #: ../src/guestfs-actions.pod:4965
30893 msgid "See also C<guestfs_mke2journal_L>."
30897 #: ../src/guestfs-actions.pod:4971
30898 msgid "guestfs_mke2fs_JU"
30899 msgstr "guestfs_mke2fs_JU"
30902 #: ../src/guestfs-actions.pod:4973
30906 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30907 " const char *fstype,\n"
30908 " int blocksize,\n"
30909 " const char *device,\n"
30910 " const char *uuid);\n"
30914 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30915 " const char *fstype,\n"
30916 " int blocksize,\n"
30917 " const char *device,\n"
30918 " const char *uuid);\n"
30922 #: ../src/guestfs-actions.pod:4983
30923 msgid "See also C<guestfs_mke2journal_U>."
30927 #: ../src/guestfs-actions.pod:4989
30928 msgid "guestfs_mke2journal"
30929 msgstr "guestfs_mke2journal"
30932 #: ../src/guestfs-actions.pod:4991
30936 " guestfs_mke2journal (guestfs_h *g,\n"
30937 " int blocksize,\n"
30938 " const char *device);\n"
30942 " guestfs_mke2journal (guestfs_h *g,\n"
30943 " int blocksize,\n"
30944 " const char *device);\n"
30948 #: ../src/guestfs-actions.pod:5005
30949 msgid "guestfs_mke2journal_L"
30950 msgstr "guestfs_mke2journal_L"
30953 #: ../src/guestfs-actions.pod:5007
30957 " guestfs_mke2journal_L (guestfs_h *g,\n"
30958 " int blocksize,\n"
30959 " const char *label,\n"
30960 " const char *device);\n"
30964 " guestfs_mke2journal_L (guestfs_h *g,\n"
30965 " int blocksize,\n"
30966 " const char *label,\n"
30967 " const char *device);\n"
30971 #: ../src/guestfs-actions.pod:5019
30972 msgid "guestfs_mke2journal_U"
30973 msgstr "guestfs_mke2journal_U"
30976 #: ../src/guestfs-actions.pod:5021
30980 " guestfs_mke2journal_U (guestfs_h *g,\n"
30981 " int blocksize,\n"
30982 " const char *uuid,\n"
30983 " const char *device);\n"
30987 " guestfs_mke2journal_U (guestfs_h *g,\n"
30988 " int blocksize,\n"
30989 " const char *uuid,\n"
30990 " const char *device);\n"
30994 #: ../src/guestfs-actions.pod:5033
30995 msgid "guestfs_mkfifo"
30996 msgstr "guestfs_mkfifo"
30999 #: ../src/guestfs-actions.pod:5035
31003 " guestfs_mkfifo (guestfs_h *g,\n"
31005 " const char *path);\n"
31009 " guestfs_mkfifo (guestfs_h *g,\n"
31011 " const char *path);\n"
31015 #: ../src/guestfs-actions.pod:5040
31017 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
31018 "is just a convenient wrapper around C<guestfs_mknod>."
31022 #: ../src/guestfs-actions.pod:5050
31023 msgid "guestfs_mkfs"
31024 msgstr "guestfs_mkfs"
31027 #: ../src/guestfs-actions.pod:5052
31031 " guestfs_mkfs (guestfs_h *g,\n"
31032 " const char *fstype,\n"
31033 " const char *device);\n"
31037 " guestfs_mkfs (guestfs_h *g,\n"
31038 " const char *fstype,\n"
31039 " const char *device);\n"
31043 #: ../src/guestfs-actions.pod:5065
31044 msgid "guestfs_mkfs_b"
31045 msgstr "guestfs_mkfs_b"
31048 #: ../src/guestfs-actions.pod:5067
31052 " guestfs_mkfs_b (guestfs_h *g,\n"
31053 " const char *fstype,\n"
31054 " int blocksize,\n"
31055 " const char *device);\n"
31059 " guestfs_mkfs_b (guestfs_h *g,\n"
31060 " const char *fstype,\n"
31061 " int blocksize,\n"
31062 " const char *device);\n"
31066 #: ../src/guestfs-actions.pod:5073
31068 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
31073 #: ../src/guestfs-actions.pod:5080
31075 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
31076 "block size of the resulting filesystem. Supported block sizes depend on the "
31077 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
31081 #: ../src/guestfs-actions.pod:5092
31082 msgid "guestfs_mkfs_opts"
31083 msgstr "guestfs_mkfs_opts"
31086 #: ../src/guestfs-actions.pod:5094
31090 " guestfs_mkfs_opts (guestfs_h *g,\n"
31091 " const char *fstype,\n"
31092 " const char *device,\n"
31097 " guestfs_mkfs_opts (guestfs_h *g,\n"
31098 " const char *fstype,\n"
31099 " const char *device,\n"
31104 #: ../src/guestfs-actions.pod:5105
31107 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
31108 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
31109 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
31110 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
31115 #: ../src/guestfs-actions.pod:5153
31116 msgid "(Added in 1.7.19)"
31117 msgstr "(Додано у 1.7.19)"
31120 #: ../src/guestfs-actions.pod:5155
31121 msgid "guestfs_mkfs_opts_va"
31122 msgstr "guestfs_mkfs_opts_va"
31125 #: ../src/guestfs-actions.pod:5157
31129 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31130 " const char *fstype,\n"
31131 " const char *device,\n"
31132 " va_list args);\n"
31136 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31137 " const char *fstype,\n"
31138 " const char *device,\n"
31139 " va_list args);\n"
31143 #: ../src/guestfs-actions.pod:5163
31144 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
31148 #: ../src/guestfs-actions.pod:5167
31149 msgid "guestfs_mkfs_opts_argv"
31150 msgstr "guestfs_mkfs_opts_argv"
31153 #: ../src/guestfs-actions.pod:5169
31157 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31158 " const char *fstype,\n"
31159 " const char *device,\n"
31160 " const struct guestfs_mkfs_opts_argv *optargs);\n"
31164 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31165 " const char *fstype,\n"
31166 " const char *device,\n"
31167 " const struct guestfs_mkfs_opts_argv *optargs);\n"
31171 #: ../src/guestfs-actions.pod:5175
31172 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
31176 #: ../src/guestfs-actions.pod:5179
31177 msgid "guestfs_mkmountpoint"
31178 msgstr "guestfs_mkmountpoint"
31181 #: ../src/guestfs-actions.pod:5181
31185 " guestfs_mkmountpoint (guestfs_h *g,\n"
31186 " const char *exemptpath);\n"
31190 " guestfs_mkmountpoint (guestfs_h *g,\n"
31191 " const char *exemptpath);\n"
31195 #: ../src/guestfs-actions.pod:5185
31197 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
31198 "that can be used to create extra mountpoints before mounting the first "
31203 #: ../src/guestfs-actions.pod:5209
31205 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
31206 "may get unexpected errors if you try to mix these calls. It is safest to "
31207 "manually unmount filesystems and remove mountpoints after use."
31211 #: ../src/guestfs-actions.pod:5213
31213 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
31214 "first, so for this to work for manual mountpoints, you must ensure that the "
31215 "innermost mountpoints have the longest pathnames, as in the example code "
31220 #: ../src/guestfs-actions.pod:5220
31222 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
31223 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
31224 "can also trigger these issues."
31228 #: ../src/guestfs-actions.pod:5226 ../src/guestfs-actions.pod:5532
31229 #: ../src/guestfs-actions.pod:6559
31230 msgid "(Added in 1.0.62)"
31231 msgstr "(Додано у 1.0.62)"
31234 #: ../src/guestfs-actions.pod:5228
31235 msgid "guestfs_mknod"
31239 #: ../src/guestfs-actions.pod:5230
31243 " guestfs_mknod (guestfs_h *g,\n"
31247 " const char *path);\n"
31252 #: ../src/guestfs-actions.pod:5245
31254 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
31255 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
31256 "regular file). These constants are available in the standard Linux header "
31257 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
31258 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
31259 "the appropriate constant for you."
31263 #: ../src/guestfs-actions.pod:5259
31264 msgid "guestfs_mknod_b"
31268 #: ../src/guestfs-actions.pod:5261
31272 " guestfs_mknod_b (guestfs_h *g,\n"
31276 " const char *path);\n"
31281 #: ../src/guestfs-actions.pod:5268
31283 "This call creates a block device node called C<path> with mode C<mode> and "
31284 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
31285 "wrapper around C<guestfs_mknod>."
31289 #: ../src/guestfs-actions.pod:5278
31290 msgid "guestfs_mknod_c"
31294 #: ../src/guestfs-actions.pod:5280
31298 " guestfs_mknod_c (guestfs_h *g,\n"
31302 " const char *path);\n"
31307 #: ../src/guestfs-actions.pod:5287
31309 "This call creates a char device node called C<path> with mode C<mode> and "
31310 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
31311 "wrapper around C<guestfs_mknod>."
31315 #: ../src/guestfs-actions.pod:5297
31316 msgid "guestfs_mkswap"
31320 #: ../src/guestfs-actions.pod:5299
31324 " guestfs_mkswap (guestfs_h *g,\n"
31325 " const char *device);\n"
31330 #: ../src/guestfs-actions.pod:5309
31331 msgid "guestfs_mkswap_L"
31335 #: ../src/guestfs-actions.pod:5311
31339 " guestfs_mkswap_L (guestfs_h *g,\n"
31340 " const char *label,\n"
31341 " const char *device);\n"
31346 #: ../src/guestfs-actions.pod:5326
31347 msgid "guestfs_mkswap_U"
31351 #: ../src/guestfs-actions.pod:5328
31355 " guestfs_mkswap_U (guestfs_h *g,\n"
31356 " const char *uuid,\n"
31357 " const char *device);\n"
31362 #: ../src/guestfs-actions.pod:5339
31363 msgid "guestfs_mkswap_file"
31367 #: ../src/guestfs-actions.pod:5341
31371 " guestfs_mkswap_file (guestfs_h *g,\n"
31372 " const char *path);\n"
31377 #: ../src/guestfs-actions.pod:5347
31379 "This command just writes a swap file signature to an existing file. To "
31380 "create the file itself, use something like C<guestfs_fallocate>."
31384 #: ../src/guestfs-actions.pod:5354
31385 msgid "guestfs_modprobe"
31389 #: ../src/guestfs-actions.pod:5356
31393 " guestfs_modprobe (guestfs_h *g,\n"
31394 " const char *modulename);\n"
31399 #: ../src/guestfs-actions.pod:5369
31400 msgid "guestfs_mount"
31404 #: ../src/guestfs-actions.pod:5371
31408 " guestfs_mount (guestfs_h *g,\n"
31409 " const char *device,\n"
31410 " const char *mountpoint);\n"
31415 #: ../src/guestfs-actions.pod:5390
31417 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
31418 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
31419 "problems for users. If your program might need to work with older versions "
31420 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
31421 "for the first parameter if you don't want any options)."
31425 #: ../src/guestfs-actions.pod:5401
31426 msgid "guestfs_mount_9p"
31430 #: ../src/guestfs-actions.pod:5403
31434 " guestfs_mount_9p (guestfs_h *g,\n"
31435 " const char *mounttag,\n"
31436 " const char *mountpoint,\n"
31442 #: ../src/guestfs-actions.pod:5414
31445 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
31450 #: ../src/guestfs-actions.pod:5427
31451 msgid "guestfs_mount_9p_va"
31455 #: ../src/guestfs-actions.pod:5429
31459 " guestfs_mount_9p_va (guestfs_h *g,\n"
31460 " const char *mounttag,\n"
31461 " const char *mountpoint,\n"
31462 " va_list args);\n"
31467 #: ../src/guestfs-actions.pod:5435
31468 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
31472 #: ../src/guestfs-actions.pod:5439
31473 msgid "guestfs_mount_9p_argv"
31477 #: ../src/guestfs-actions.pod:5441
31481 " guestfs_mount_9p_argv (guestfs_h *g,\n"
31482 " const char *mounttag,\n"
31483 " const char *mountpoint,\n"
31484 " const struct guestfs_mount_9p_argv *optargs);\n"
31489 #: ../src/guestfs-actions.pod:5447
31490 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
31494 #: ../src/guestfs-actions.pod:5451
31495 msgid "guestfs_mount_loop"
31499 #: ../src/guestfs-actions.pod:5453
31503 " guestfs_mount_loop (guestfs_h *g,\n"
31504 " const char *file,\n"
31505 " const char *mountpoint);\n"
31510 #: ../src/guestfs-actions.pod:5466
31511 msgid "guestfs_mount_options"
31515 #: ../src/guestfs-actions.pod:5468
31519 " guestfs_mount_options (guestfs_h *g,\n"
31520 " const char *options,\n"
31521 " const char *device,\n"
31522 " const char *mountpoint);\n"
31527 #: ../src/guestfs-actions.pod:5474
31529 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31530 "the mount options as for the L<mount(8)> I<-o> flag."
31534 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5498
31535 #: ../src/guestfs-actions.pod:5515
31536 msgid "(Added in 1.0.10)"
31537 msgstr "(Додано у 1.0.10)"
31540 #: ../src/guestfs-actions.pod:5486
31541 msgid "guestfs_mount_ro"
31545 #: ../src/guestfs-actions.pod:5488
31549 " guestfs_mount_ro (guestfs_h *g,\n"
31550 " const char *device,\n"
31551 " const char *mountpoint);\n"
31556 #: ../src/guestfs-actions.pod:5493
31558 "This is the same as the C<guestfs_mount> command, but it mounts the "
31559 "filesystem with the read-only (I<-o ro>) flag."
31563 #: ../src/guestfs-actions.pod:5500
31564 msgid "guestfs_mount_vfs"
31568 #: ../src/guestfs-actions.pod:5502
31572 " guestfs_mount_vfs (guestfs_h *g,\n"
31573 " const char *options,\n"
31574 " const char *vfstype,\n"
31575 " const char *device,\n"
31576 " const char *mountpoint);\n"
31581 #: ../src/guestfs-actions.pod:5509
31583 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31584 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
31589 #: ../src/guestfs-actions.pod:5517
31590 msgid "guestfs_mountpoints"
31594 #: ../src/guestfs-actions.pod:5519
31598 " guestfs_mountpoints (guestfs_h *g);\n"
31603 #: ../src/guestfs-actions.pod:5522
31605 "This call is similar to C<guestfs_mounts>. That call returns a list of "
31606 "devices. This one returns a hash table (map) of device name to directory "
31607 "where the device is mounted."
31611 #: ../src/guestfs-actions.pod:5534
31612 msgid "guestfs_mounts"
31616 #: ../src/guestfs-actions.pod:5536
31620 " guestfs_mounts (guestfs_h *g);\n"
31625 #: ../src/guestfs-actions.pod:5544
31626 msgid "See also: C<guestfs_mountpoints>"
31630 #: ../src/guestfs-actions.pod:5552
31635 #: ../src/guestfs-actions.pod:5554
31639 " guestfs_mv (guestfs_h *g,\n"
31640 " const char *src,\n"
31641 " const char *dest);\n"
31646 #: ../src/guestfs-actions.pod:5566
31647 msgid "guestfs_ntfs_3g_probe"
31651 #: ../src/guestfs-actions.pod:5568
31655 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
31657 " const char *device);\n"
31662 #: ../src/guestfs-actions.pod:5587
31663 msgid "(Added in 1.0.43)"
31664 msgstr "(Додано у 1.0.43)"
31667 #: ../src/guestfs-actions.pod:5589
31668 msgid "guestfs_ntfsresize"
31672 #: ../src/guestfs-actions.pod:5591
31676 " guestfs_ntfsresize (guestfs_h *g,\n"
31677 " const char *device);\n"
31682 #: ../src/guestfs-actions.pod:5595 ../src/guestfs-actions.pod:5695
31684 "I<This function is deprecated.> In new code, use the L</"
31685 "guestfs_ntfsresize_opts> call instead."
31689 #: ../src/guestfs-actions.pod:5619
31690 msgid "guestfs_ntfsresize_opts"
31694 #: ../src/guestfs-actions.pod:5621
31698 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
31699 " const char *device,\n"
31705 #: ../src/guestfs-actions.pod:5631
31708 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
31709 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
31714 #: ../src/guestfs-actions.pod:5651
31716 "After the resize operation, the filesystem is always marked as requiring a "
31717 "consistency check (for safety). You have to boot into Windows to perform "
31718 "this check and clear this condition. If you I<don't> set the C<force> "
31719 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
31720 "times on a single filesystem without booting into Windows between each "
31725 #: ../src/guestfs-actions.pod:5666
31726 msgid "guestfs_ntfsresize_opts_va"
31730 #: ../src/guestfs-actions.pod:5668
31734 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
31735 " const char *device,\n"
31736 " va_list args);\n"
31741 #: ../src/guestfs-actions.pod:5673
31742 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
31746 #: ../src/guestfs-actions.pod:5677
31747 msgid "guestfs_ntfsresize_opts_argv"
31751 #: ../src/guestfs-actions.pod:5679
31755 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
31756 " const char *device,\n"
31757 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
31762 #: ../src/guestfs-actions.pod:5684
31763 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
31767 #: ../src/guestfs-actions.pod:5688
31768 msgid "guestfs_ntfsresize_size"
31772 #: ../src/guestfs-actions.pod:5690
31776 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31777 " const char *device,\n"
31778 " int64_t size);\n"
31783 #: ../src/guestfs-actions.pod:5702
31785 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31786 "to specify the new size (in bytes) explicitly."
31790 #: ../src/guestfs-actions.pod:5707 ../src/guestfs-actions.pod:6166
31791 #: ../src/guestfs-actions.pod:6239 ../src/guestfs-actions.pod:6507
31792 #: ../src/guestfs-actions.pod:8134
31793 msgid "(Added in 1.3.14)"
31794 msgstr "(Додано у 1.3.14)"
31797 #: ../src/guestfs-actions.pod:5709
31798 msgid "guestfs_part_add"
31802 #: ../src/guestfs-actions.pod:5711
31806 " guestfs_part_add (guestfs_h *g,\n"
31807 " const char *device,\n"
31808 " const char *prlogex,\n"
31809 " int64_t startsect,\n"
31810 " int64_t endsect);\n"
31815 #: ../src/guestfs-actions.pod:5718
31817 "This command adds a partition to C<device>. If there is no partition table "
31818 "on the device, call C<guestfs_part_init> first."
31822 #: ../src/guestfs-actions.pod:5730
31824 "Creating a partition which covers the whole disk is not so easy. Use "
31825 "C<guestfs_part_disk> to do that."
31829 #: ../src/guestfs-actions.pod:5735 ../src/guestfs-actions.pod:5770
31830 #: ../src/guestfs-actions.pod:5823 ../src/guestfs-actions.pod:5907
31831 #: ../src/guestfs-actions.pod:5945 ../src/guestfs-actions.pod:5964
31832 #: ../src/guestfs-actions.pod:6004
31833 msgid "(Added in 1.0.78)"
31834 msgstr "(Додано у 1.0.78)"
31837 #: ../src/guestfs-actions.pod:5737
31838 msgid "guestfs_part_del"
31842 #: ../src/guestfs-actions.pod:5739
31846 " guestfs_part_del (guestfs_h *g,\n"
31847 " const char *device,\n"
31853 #: ../src/guestfs-actions.pod:5754
31854 msgid "guestfs_part_disk"
31858 #: ../src/guestfs-actions.pod:5756
31862 " guestfs_part_disk (guestfs_h *g,\n"
31863 " const char *device,\n"
31864 " const char *parttype);\n"
31869 #: ../src/guestfs-actions.pod:5761
31871 "This command is simply a combination of C<guestfs_part_init> followed by "
31872 "C<guestfs_part_add> to create a single primary partition covering the whole "
31877 #: ../src/guestfs-actions.pod:5765
31879 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
31880 "possible values are described in C<guestfs_part_init>."
31884 #: ../src/guestfs-actions.pod:5772
31885 msgid "guestfs_part_get_bootable"
31889 #: ../src/guestfs-actions.pod:5774
31893 " guestfs_part_get_bootable (guestfs_h *g,\n"
31894 " const char *device,\n"
31900 #: ../src/guestfs-actions.pod:5782
31901 msgid "See also C<guestfs_part_set_bootable>."
31905 #: ../src/guestfs-actions.pod:5788
31906 msgid "guestfs_part_get_mbr_id"
31910 #: ../src/guestfs-actions.pod:5790
31914 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
31915 " const char *device,\n"
31921 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5980
31923 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
31924 "undefined results for other partition table types (see "
31925 "C<guestfs_part_get_parttype>)."
31929 #: ../src/guestfs-actions.pod:5806
31930 msgid "guestfs_part_get_parttype"
31934 #: ../src/guestfs-actions.pod:5808
31938 " guestfs_part_get_parttype (guestfs_h *g,\n"
31939 " const char *device);\n"
31944 #: ../src/guestfs-actions.pod:5815
31946 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
31947 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
31948 "possible, although unusual. See C<guestfs_part_init> for a full list."
31952 #: ../src/guestfs-actions.pod:5825
31953 msgid "guestfs_part_init"
31957 #: ../src/guestfs-actions.pod:5827
31961 " guestfs_part_init (guestfs_h *g,\n"
31962 " const char *device,\n"
31963 " const char *parttype);\n"
31968 #: ../src/guestfs-actions.pod:5836
31970 "Initially there are no partitions. Following this, you should call "
31971 "C<guestfs_part_add> for each partition required."
31975 #: ../src/guestfs-actions.pod:5909
31976 msgid "guestfs_part_list"
31977 msgstr "guestfs_part_list"
31980 #: ../src/guestfs-actions.pod:5911
31983 " struct guestfs_partition_list *\n"
31984 " guestfs_part_list (guestfs_h *g,\n"
31985 " const char *device);\n"
31988 " struct guestfs_partition_list *\n"
31989 " guestfs_part_list (guestfs_h *g,\n"
31990 " const char *device);\n"
31994 #: ../src/guestfs-actions.pod:5928
31996 "Start of the partition I<in bytes>. To get sectors you have to divide by "
31997 "the device's sector size, see C<guestfs_blockdev_getss>."
32001 #: ../src/guestfs-actions.pod:5941
32003 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
32004 "was an error. I<The caller must call C<guestfs_free_partition_list> after "
32009 #: ../src/guestfs-actions.pod:5947
32010 msgid "guestfs_part_set_bootable"
32014 #: ../src/guestfs-actions.pod:5949
32018 " guestfs_part_set_bootable (guestfs_h *g,\n"
32019 " const char *device,\n"
32021 " int bootable);\n"
32026 #: ../src/guestfs-actions.pod:5966
32027 msgid "guestfs_part_set_mbr_id"
32031 #: ../src/guestfs-actions.pod:5968
32035 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
32036 " const char *device,\n"
32043 #: ../src/guestfs-actions.pod:5988
32044 msgid "guestfs_part_set_name"
32048 #: ../src/guestfs-actions.pod:5990
32052 " guestfs_part_set_name (guestfs_h *g,\n"
32053 " const char *device,\n"
32055 " const char *name);\n"
32060 #: ../src/guestfs-actions.pod:6006
32061 msgid "guestfs_part_to_dev"
32065 #: ../src/guestfs-actions.pod:6008
32069 " guestfs_part_to_dev (guestfs_h *g,\n"
32070 " const char *partition);\n"
32075 #: ../src/guestfs-actions.pod:6016 ../src/guestfs-actions.pod:6035
32077 "The named partition must exist, for example as a string returned from "
32078 "C<guestfs_list_partitions>."
32082 #: ../src/guestfs-actions.pod:6019
32083 msgid "See also C<guestfs_part_to_partnum>."
32087 #: ../src/guestfs-actions.pod:6026
32088 msgid "guestfs_part_to_partnum"
32092 #: ../src/guestfs-actions.pod:6028
32096 " guestfs_part_to_partnum (guestfs_h *g,\n"
32097 " const char *partition);\n"
32102 #: ../src/guestfs-actions.pod:6038
32103 msgid "See also C<guestfs_part_to_dev>."
32107 #: ../src/guestfs-actions.pod:6044
32108 msgid "guestfs_ping_daemon"
32112 #: ../src/guestfs-actions.pod:6046
32116 " guestfs_ping_daemon (guestfs_h *g);\n"
32121 #: ../src/guestfs-actions.pod:6058
32122 msgid "guestfs_pread"
32126 #: ../src/guestfs-actions.pod:6060
32130 " guestfs_pread (guestfs_h *g,\n"
32131 " const char *path,\n"
32133 " int64_t offset,\n"
32134 " size_t *size_r);\n"
32139 #: ../src/guestfs-actions.pod:6073
32140 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
32144 #: ../src/guestfs-actions.pod:6084
32145 msgid "guestfs_pread_device"
32149 #: ../src/guestfs-actions.pod:6086
32153 " guestfs_pread_device (guestfs_h *g,\n"
32154 " const char *device,\n"
32156 " int64_t offset,\n"
32157 " size_t *size_r);\n"
32162 #: ../src/guestfs-actions.pod:6099
32163 msgid "See also C<guestfs_pread>."
32167 #: ../src/guestfs-actions.pod:6108
32168 msgid "(Added in 1.5.21)"
32169 msgstr "(Додано у 1.5.21)"
32172 #: ../src/guestfs-actions.pod:6110
32173 msgid "guestfs_pvcreate"
32177 #: ../src/guestfs-actions.pod:6112
32181 " guestfs_pvcreate (guestfs_h *g,\n"
32182 " const char *device);\n"
32187 #: ../src/guestfs-actions.pod:6124
32188 msgid "guestfs_pvremove"
32192 #: ../src/guestfs-actions.pod:6126
32196 " guestfs_pvremove (guestfs_h *g,\n"
32197 " const char *device);\n"
32202 #: ../src/guestfs-actions.pod:6141
32203 msgid "guestfs_pvresize"
32207 #: ../src/guestfs-actions.pod:6143
32211 " guestfs_pvresize (guestfs_h *g,\n"
32212 " const char *device);\n"
32217 #: ../src/guestfs-actions.pod:6154
32218 msgid "guestfs_pvresize_size"
32222 #: ../src/guestfs-actions.pod:6156
32226 " guestfs_pvresize_size (guestfs_h *g,\n"
32227 " const char *device,\n"
32228 " int64_t size);\n"
32233 #: ../src/guestfs-actions.pod:6161
32235 "This command is the same as C<guestfs_pvresize> except that it allows you to "
32236 "specify the new size (in bytes) explicitly."
32240 #: ../src/guestfs-actions.pod:6168
32241 msgid "guestfs_pvs"
32245 #: ../src/guestfs-actions.pod:6170
32249 " guestfs_pvs (guestfs_h *g);\n"
32254 #: ../src/guestfs-actions.pod:6179
32255 msgid "See also C<guestfs_pvs_full>."
32259 #: ../src/guestfs-actions.pod:6187
32260 msgid "guestfs_pvs_full"
32264 #: ../src/guestfs-actions.pod:6189
32267 " struct guestfs_lvm_pv_list *\n"
32268 " guestfs_pvs_full (guestfs_h *g);\n"
32273 #: ../src/guestfs-actions.pod:6195
32275 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
32276 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
32280 #: ../src/guestfs-actions.pod:6201
32281 msgid "guestfs_pvuuid"
32285 #: ../src/guestfs-actions.pod:6203
32289 " guestfs_pvuuid (guestfs_h *g,\n"
32290 " const char *device);\n"
32295 #: ../src/guestfs-actions.pod:6214
32296 msgid "guestfs_pwrite"
32300 #: ../src/guestfs-actions.pod:6216
32304 " guestfs_pwrite (guestfs_h *g,\n"
32305 " const char *path,\n"
32306 " const char *content,\n"
32307 " size_t content_size,\n"
32308 " int64_t offset);\n"
32313 #: ../src/guestfs-actions.pod:6232
32314 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
32318 #: ../src/guestfs-actions.pod:6241
32319 msgid "guestfs_pwrite_device"
32323 #: ../src/guestfs-actions.pod:6243
32327 " guestfs_pwrite_device (guestfs_h *g,\n"
32328 " const char *device,\n"
32329 " const char *content,\n"
32330 " size_t content_size,\n"
32331 " int64_t offset);\n"
32336 #: ../src/guestfs-actions.pod:6258
32337 msgid "See also C<guestfs_pwrite>."
32341 #: ../src/guestfs-actions.pod:6265
32342 msgid "(Added in 1.5.20)"
32343 msgstr "(Додано у 1.5.20)"
32346 #: ../src/guestfs-actions.pod:6267
32347 msgid "guestfs_read_file"
32351 #: ../src/guestfs-actions.pod:6269
32355 " guestfs_read_file (guestfs_h *g,\n"
32356 " const char *path,\n"
32357 " size_t *size_r);\n"
32362 #: ../src/guestfs-actions.pod:6277
32364 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
32365 "embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
32366 "function is limited in the total size of file that can be handled."
32370 #: ../src/guestfs-actions.pod:6289
32371 msgid "(Added in 1.0.63)"
32372 msgstr "(Додано у 1.0.63)"
32375 #: ../src/guestfs-actions.pod:6291
32376 msgid "guestfs_read_lines"
32380 #: ../src/guestfs-actions.pod:6293
32384 " guestfs_read_lines (guestfs_h *g,\n"
32385 " const char *path);\n"
32390 #: ../src/guestfs-actions.pod:6302
32392 "Note that this function cannot correctly handle binary files (specifically, "
32393 "files containing C<\\0> character which is treated as end of line). For "
32394 "those you need to use the C<guestfs_read_file> function which has a more "
32395 "complex interface."
32399 #: ../src/guestfs-actions.pod:6313
32400 msgid "guestfs_readdir"
32404 #: ../src/guestfs-actions.pod:6315
32407 " struct guestfs_dirent_list *\n"
32408 " guestfs_readdir (guestfs_h *g,\n"
32409 " const char *dir);\n"
32414 #: ../src/guestfs-actions.pod:6369
32416 "This function is primarily intended for use by programs. To get a simple "
32417 "list of names, use C<guestfs_ls>. To get a printable directory for human "
32418 "consumption, use C<guestfs_ll>."
32422 #: ../src/guestfs-actions.pod:6373
32424 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
32425 "was an error. I<The caller must call C<guestfs_free_dirent_list> after use>."
32429 #: ../src/guestfs-actions.pod:6379
32430 msgid "guestfs_readlink"
32434 #: ../src/guestfs-actions.pod:6381
32438 " guestfs_readlink (guestfs_h *g,\n"
32439 " const char *path);\n"
32444 #: ../src/guestfs-actions.pod:6392
32445 msgid "guestfs_readlinklist"
32449 #: ../src/guestfs-actions.pod:6394
32453 " guestfs_readlinklist (guestfs_h *g,\n"
32454 " const char *path,\n"
32455 " char *const *names);\n"
32460 #: ../src/guestfs-actions.pod:6427
32461 msgid "guestfs_realpath"
32465 #: ../src/guestfs-actions.pod:6429
32469 " guestfs_realpath (guestfs_h *g,\n"
32470 " const char *path);\n"
32475 #: ../src/guestfs-actions.pod:6441
32476 msgid "guestfs_removexattr"
32480 #: ../src/guestfs-actions.pod:6443
32484 " guestfs_removexattr (guestfs_h *g,\n"
32485 " const char *xattr,\n"
32486 " const char *path);\n"
32491 #: ../src/guestfs-actions.pod:6451
32492 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
32496 #: ../src/guestfs-actions.pod:6457
32497 msgid "guestfs_resize2fs"
32501 #: ../src/guestfs-actions.pod:6459
32505 " guestfs_resize2fs (guestfs_h *g,\n"
32506 " const char *device);\n"
32511 #: ../src/guestfs-actions.pod:6466
32513 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
32514 "C<device> before calling this command. For unknown reasons C<resize2fs> "
32515 "sometimes gives an error about this and sometimes not. In any case, it is "
32516 "always safe to call C<guestfs_e2fsck_f> before calling this function."
32520 #: ../src/guestfs-actions.pod:6476
32521 msgid "guestfs_resize2fs_M"
32525 #: ../src/guestfs-actions.pod:6478
32529 " guestfs_resize2fs_M (guestfs_h *g,\n"
32530 " const char *device);\n"
32535 #: ../src/guestfs-actions.pod:6482
32537 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
32538 "resized to its minimum size. This works like the I<-M> option to the "
32539 "C<resize2fs> command."
32543 #: ../src/guestfs-actions.pod:6486
32545 "To get the resulting size of the filesystem you should call "
32546 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
32547 "These two numbers, multiplied together, give the resulting size of the "
32548 "minimal filesystem in bytes."
32552 #: ../src/guestfs-actions.pod:6495
32553 msgid "guestfs_resize2fs_size"
32557 #: ../src/guestfs-actions.pod:6497
32561 " guestfs_resize2fs_size (guestfs_h *g,\n"
32562 " const char *device,\n"
32563 " int64_t size);\n"
32568 #: ../src/guestfs-actions.pod:6502
32570 "This command is the same as C<guestfs_resize2fs> except that it allows you "
32571 "to specify the new size (in bytes) explicitly."
32575 #: ../src/guestfs-actions.pod:6509
32580 #: ../src/guestfs-actions.pod:6511
32584 " guestfs_rm (guestfs_h *g,\n"
32585 " const char *path);\n"
32590 #: ../src/guestfs-actions.pod:6521
32591 msgid "guestfs_rm_rf"
32595 #: ../src/guestfs-actions.pod:6523
32599 " guestfs_rm_rf (guestfs_h *g,\n"
32600 " const char *path);\n"
32605 #: ../src/guestfs-actions.pod:6535
32606 msgid "guestfs_rmdir"
32610 #: ../src/guestfs-actions.pod:6537
32614 " guestfs_rmdir (guestfs_h *g,\n"
32615 " const char *path);\n"
32620 #: ../src/guestfs-actions.pod:6547
32621 msgid "guestfs_rmmountpoint"
32625 #: ../src/guestfs-actions.pod:6549
32629 " guestfs_rmmountpoint (guestfs_h *g,\n"
32630 " const char *exemptpath);\n"
32635 #: ../src/guestfs-actions.pod:6553
32637 "This calls removes a mountpoint that was previously created with "
32638 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
32642 #: ../src/guestfs-actions.pod:6561
32643 msgid "guestfs_scrub_device"
32647 #: ../src/guestfs-actions.pod:6563
32651 " guestfs_scrub_device (guestfs_h *g,\n"
32652 " const char *device);\n"
32657 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6593
32658 #: ../src/guestfs-actions.pod:6612
32659 msgid "(Added in 1.0.52)"
32660 msgstr "(Додано у 1.0.52)"
32663 #: ../src/guestfs-actions.pod:6577
32664 msgid "guestfs_scrub_file"
32668 #: ../src/guestfs-actions.pod:6579
32672 " guestfs_scrub_file (guestfs_h *g,\n"
32673 " const char *file);\n"
32678 #: ../src/guestfs-actions.pod:6595
32679 msgid "guestfs_scrub_freespace"
32683 #: ../src/guestfs-actions.pod:6597
32687 " guestfs_scrub_freespace (guestfs_h *g,\n"
32688 " const char *dir);\n"
32693 #: ../src/guestfs-actions.pod:6601
32695 "This command creates the directory C<dir> and then fills it with files until "
32696 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
32697 "and deletes them. The intention is to scrub any free space on the partition "
32698 "containing C<dir>."
32702 #: ../src/guestfs-actions.pod:6614
32703 msgid "guestfs_set_append"
32707 #: ../src/guestfs-actions.pod:6616
32711 " guestfs_set_append (guestfs_h *g,\n"
32712 " const char *append);\n"
32717 #: ../src/guestfs-actions.pod:6633
32718 msgid "guestfs_set_attach_method"
32722 #: ../src/guestfs-actions.pod:6635
32726 " guestfs_set_attach_method (guestfs_h *g,\n"
32727 " const char *attachmethod);\n"
32732 #: ../src/guestfs-actions.pod:6663
32733 msgid "guestfs_set_autosync"
32737 #: ../src/guestfs-actions.pod:6665
32741 " guestfs_set_autosync (guestfs_h *g,\n"
32742 " int autosync);\n"
32747 #: ../src/guestfs-actions.pod:6681
32748 msgid "guestfs_set_direct"
32752 #: ../src/guestfs-actions.pod:6683
32756 " guestfs_set_direct (guestfs_h *g,\n"
32762 #: ../src/guestfs-actions.pod:6691
32764 "One consequence of this is that log messages aren't caught by the library "
32765 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
32770 #: ../src/guestfs-actions.pod:6704
32771 msgid "guestfs_set_e2label"
32775 #: ../src/guestfs-actions.pod:6706
32779 " guestfs_set_e2label (guestfs_h *g,\n"
32780 " const char *device,\n"
32781 " const char *label);\n"
32786 #: ../src/guestfs-actions.pod:6715
32788 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32789 "the existing label on a filesystem."
32793 #: ../src/guestfs-actions.pod:6722
32794 msgid "guestfs_set_e2uuid"
32798 #: ../src/guestfs-actions.pod:6724
32802 " guestfs_set_e2uuid (guestfs_h *g,\n"
32803 " const char *device,\n"
32804 " const char *uuid);\n"
32809 #: ../src/guestfs-actions.pod:6734
32811 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32812 "the existing UUID of a filesystem."
32816 #: ../src/guestfs-actions.pod:6741
32817 msgid "guestfs_set_memsize"
32821 #: ../src/guestfs-actions.pod:6743
32825 " guestfs_set_memsize (guestfs_h *g,\n"
32831 #: ../src/guestfs-actions.pod:6747
32833 "This sets the memory size in megabytes allocated to the qemu subprocess. "
32834 "This only has any effect if called before C<guestfs_launch>."
32838 #: ../src/guestfs-actions.pod:6762
32839 msgid "guestfs_set_network"
32843 #: ../src/guestfs-actions.pod:6764
32847 " guestfs_set_network (guestfs_h *g,\n"
32853 #: ../src/guestfs-actions.pod:6774
32855 "You must call this before calling C<guestfs_launch>, otherwise it has no "
32860 #: ../src/guestfs-actions.pod:6781
32861 msgid "guestfs_set_path"
32865 #: ../src/guestfs-actions.pod:6783
32869 " guestfs_set_path (guestfs_h *g,\n"
32870 " const char *searchpath);\n"
32875 #: ../src/guestfs-actions.pod:6798
32876 msgid "guestfs_set_pgroup"
32880 #: ../src/guestfs-actions.pod:6800
32884 " guestfs_set_pgroup (guestfs_h *g,\n"
32890 #: ../src/guestfs-actions.pod:6817
32891 msgid "guestfs_set_qemu"
32895 #: ../src/guestfs-actions.pod:6819
32899 " guestfs_set_qemu (guestfs_h *g,\n"
32900 " const char *qemu);\n"
32905 #: ../src/guestfs-actions.pod:6845
32906 msgid "guestfs_set_recovery_proc"
32910 #: ../src/guestfs-actions.pod:6847
32914 " guestfs_set_recovery_proc (guestfs_h *g,\n"
32915 " int recoveryproc);\n"
32920 #: ../src/guestfs-actions.pod:6851
32922 "If this is called with the parameter C<false> then C<guestfs_launch> does "
32923 "not create a recovery process. The purpose of the recovery process is to "
32924 "stop runaway qemu processes in the case where the main program aborts "
32929 #: ../src/guestfs-actions.pod:6856
32931 "This only has any effect if called before C<guestfs_launch>, and the default "
32936 #: ../src/guestfs-actions.pod:6869
32937 msgid "guestfs_set_selinux"
32941 #: ../src/guestfs-actions.pod:6871
32945 " guestfs_set_selinux (guestfs_h *g,\n"
32951 #: ../src/guestfs-actions.pod:6888
32952 msgid "guestfs_set_smp"
32956 #: ../src/guestfs-actions.pod:6890
32960 " guestfs_set_smp (guestfs_h *g,\n"
32966 #: ../src/guestfs-actions.pod:6898
32967 msgid "This function must be called before C<guestfs_launch>."
32971 #: ../src/guestfs-actions.pod:6904
32972 msgid "guestfs_set_trace"
32976 #: ../src/guestfs-actions.pod:6906
32980 " guestfs_set_trace (guestfs_h *g,\n"
32986 #: ../src/guestfs-actions.pod:6920
32988 "Trace messages are normally sent to C<stderr>, unless you register a "
32989 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32993 #: ../src/guestfs-actions.pod:6928
32994 msgid "guestfs_set_verbose"
32998 #: ../src/guestfs-actions.pod:6930
33002 " guestfs_set_verbose (guestfs_h *g,\n"
33008 #: ../src/guestfs-actions.pod:6939
33010 "Verbose messages are normally sent to C<stderr>, unless you register a "
33011 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33015 #: ../src/guestfs-actions.pod:6947
33016 msgid "guestfs_setcon"
33020 #: ../src/guestfs-actions.pod:6949
33024 " guestfs_setcon (guestfs_h *g,\n"
33025 " const char *context);\n"
33030 #: ../src/guestfs-actions.pod:6962
33031 msgid "guestfs_setxattr"
33035 #: ../src/guestfs-actions.pod:6964
33039 " guestfs_setxattr (guestfs_h *g,\n"
33040 " const char *xattr,\n"
33041 " const char *val,\n"
33043 " const char *path);\n"
33048 #: ../src/guestfs-actions.pod:6975
33049 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
33053 #: ../src/guestfs-actions.pod:6981
33054 msgid "guestfs_sfdisk"
33058 #: ../src/guestfs-actions.pod:6983
33062 " guestfs_sfdisk (guestfs_h *g,\n"
33063 " const char *device,\n"
33067 " char *const *lines);\n"
33072 #: ../src/guestfs-actions.pod:6991 ../src/guestfs-actions.pod:7032
33073 #: ../src/guestfs-actions.pod:7063
33075 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
33080 #: ../src/guestfs-actions.pod:7018
33082 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
33086 #: ../src/guestfs-actions.pod:7025
33087 msgid "guestfs_sfdiskM"
33091 #: ../src/guestfs-actions.pod:7027
33095 " guestfs_sfdiskM (guestfs_h *g,\n"
33096 " const char *device,\n"
33097 " char *const *lines);\n"
33102 #: ../src/guestfs-actions.pod:7039
33104 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
33105 "partition sizes are specified in megabytes only (rounded to the nearest "
33106 "cylinder) and you don't need to specify the cyls, heads and sectors "
33107 "parameters which were rarely if ever used anyway."
33111 #: ../src/guestfs-actions.pod:7045
33113 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
33114 "C<guestfs_part_disk>"
33118 #: ../src/guestfs-actions.pod:7052
33119 msgid "guestfs_sfdisk_N"
33123 #: ../src/guestfs-actions.pod:7054
33127 " guestfs_sfdisk_N (guestfs_h *g,\n"
33128 " const char *device,\n"
33133 " const char *line);\n"
33138 #: ../src/guestfs-actions.pod:7073
33140 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
33141 "for the cyls/heads/sectors parameters."
33145 #: ../src/guestfs-actions.pod:7076
33146 msgid "See also: C<guestfs_part_add>"
33150 #: ../src/guestfs-actions.pod:7082
33151 msgid "guestfs_sfdisk_disk_geometry"
33155 #: ../src/guestfs-actions.pod:7084
33159 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
33160 " const char *device);\n"
33165 #: ../src/guestfs-actions.pod:7088
33167 "This displays the disk geometry of C<device> read from the partition table. "
33168 "Especially in the case where the underlying block device has been resized, "
33169 "this can be different from the kernel's idea of the geometry (see "
33170 "C<guestfs_sfdisk_kernel_geometry>)."
33174 #: ../src/guestfs-actions.pod:7101
33175 msgid "guestfs_sfdisk_kernel_geometry"
33179 #: ../src/guestfs-actions.pod:7103
33183 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
33184 " const char *device);\n"
33189 #: ../src/guestfs-actions.pod:7117
33190 msgid "guestfs_sfdisk_l"
33194 #: ../src/guestfs-actions.pod:7119
33198 " guestfs_sfdisk_l (guestfs_h *g,\n"
33199 " const char *device);\n"
33204 #: ../src/guestfs-actions.pod:7123
33206 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
33211 #: ../src/guestfs-actions.pod:7134
33212 msgid "See also: C<guestfs_part_list>"
33216 #: ../src/guestfs-actions.pod:7141
33221 #: ../src/guestfs-actions.pod:7143
33225 " guestfs_sh (guestfs_h *g,\n"
33226 " const char *command);\n"
33231 #: ../src/guestfs-actions.pod:7150
33232 msgid "This is like C<guestfs_command>, but passes the command to:"
33236 #: ../src/guestfs-actions.pod:7158
33237 msgid "All the provisos about C<guestfs_command> apply to this call."
33241 #: ../src/guestfs-actions.pod:7165
33242 msgid "guestfs_sh_lines"
33246 #: ../src/guestfs-actions.pod:7167
33250 " guestfs_sh_lines (guestfs_h *g,\n"
33251 " const char *command);\n"
33256 #: ../src/guestfs-actions.pod:7171
33258 "This is the same as C<guestfs_sh>, but splits the result into a list of "
33263 #: ../src/guestfs-actions.pod:7174
33264 msgid "See also: C<guestfs_command_lines>"
33268 #: ../src/guestfs-actions.pod:7182
33269 msgid "guestfs_sleep"
33273 #: ../src/guestfs-actions.pod:7184
33277 " guestfs_sleep (guestfs_h *g,\n"
33283 #: ../src/guestfs-actions.pod:7192
33284 msgid "(Added in 1.0.41)"
33285 msgstr "(Додано у 1.0.41)"
33288 #: ../src/guestfs-actions.pod:7194 ../src/guestfs-structs.pod:109
33289 msgid "guestfs_stat"
33293 #: ../src/guestfs-actions.pod:7196
33296 " struct guestfs_stat *\n"
33297 " guestfs_stat (guestfs_h *g,\n"
33298 " const char *path);\n"
33303 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-structs.pod:135
33304 msgid "guestfs_statvfs"
33308 #: ../src/guestfs-actions.pod:7212
33311 " struct guestfs_statvfs *\n"
33312 " guestfs_statvfs (guestfs_h *g,\n"
33313 " const char *path);\n"
33318 #: ../src/guestfs-actions.pod:7222
33320 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
33321 "error. I<The caller must call C<guestfs_free_statvfs> after use>."
33325 #: ../src/guestfs-actions.pod:7228
33326 msgid "guestfs_strings"
33330 #: ../src/guestfs-actions.pod:7230
33334 " guestfs_strings (guestfs_h *g,\n"
33335 " const char *path);\n"
33340 #: ../src/guestfs-actions.pod:7246
33341 msgid "guestfs_strings_e"
33345 #: ../src/guestfs-actions.pod:7248
33349 " guestfs_strings_e (guestfs_h *g,\n"
33350 " const char *encoding,\n"
33351 " const char *path);\n"
33356 #: ../src/guestfs-actions.pod:7253
33358 "This is like the C<guestfs_strings> command, but allows you to specify the "
33359 "encoding of strings that are looked for in the source file C<path>."
33363 #: ../src/guestfs-actions.pod:7263
33365 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
33366 "ISO-8859-X (this is what C<guestfs_strings> uses)."
33370 #: ../src/guestfs-actions.pod:7301
33371 msgid "guestfs_swapoff_device"
33375 #: ../src/guestfs-actions.pod:7303
33379 " guestfs_swapoff_device (guestfs_h *g,\n"
33380 " const char *device);\n"
33385 #: ../src/guestfs-actions.pod:7307
33387 "This command disables the libguestfs appliance swap device or partition "
33388 "named C<device>. See C<guestfs_swapon_device>."
33392 #: ../src/guestfs-actions.pod:7315
33393 msgid "guestfs_swapoff_file"
33397 #: ../src/guestfs-actions.pod:7317
33401 " guestfs_swapoff_file (guestfs_h *g,\n"
33402 " const char *file);\n"
33407 #: ../src/guestfs-actions.pod:7327
33408 msgid "guestfs_swapoff_label"
33412 #: ../src/guestfs-actions.pod:7329
33416 " guestfs_swapoff_label (guestfs_h *g,\n"
33417 " const char *label);\n"
33422 #: ../src/guestfs-actions.pod:7340
33423 msgid "guestfs_swapoff_uuid"
33427 #: ../src/guestfs-actions.pod:7342
33431 " guestfs_swapoff_uuid (guestfs_h *g,\n"
33432 " const char *uuid);\n"
33437 #: ../src/guestfs-actions.pod:7353
33438 msgid "guestfs_swapon_device"
33442 #: ../src/guestfs-actions.pod:7355
33446 " guestfs_swapon_device (guestfs_h *g,\n"
33447 " const char *device);\n"
33452 #: ../src/guestfs-actions.pod:7359
33454 "This command enables the libguestfs appliance to use the swap device or "
33455 "partition named C<device>. The increased memory is made available for all "
33456 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
33460 #: ../src/guestfs-actions.pod:7375
33461 msgid "guestfs_swapon_file"
33465 #: ../src/guestfs-actions.pod:7377
33469 " guestfs_swapon_file (guestfs_h *g,\n"
33470 " const char *file);\n"
33475 #: ../src/guestfs-actions.pod:7381
33477 "This command enables swap to a file. See C<guestfs_swapon_device> for other "
33482 #: ../src/guestfs-actions.pod:7388
33483 msgid "guestfs_swapon_label"
33487 #: ../src/guestfs-actions.pod:7390
33491 " guestfs_swapon_label (guestfs_h *g,\n"
33492 " const char *label);\n"
33497 #: ../src/guestfs-actions.pod:7394
33499 "This command enables swap to a labeled swap partition. See "
33500 "C<guestfs_swapon_device> for other notes."
33504 #: ../src/guestfs-actions.pod:7401
33505 msgid "guestfs_swapon_uuid"
33509 #: ../src/guestfs-actions.pod:7403
33513 " guestfs_swapon_uuid (guestfs_h *g,\n"
33514 " const char *uuid);\n"
33519 #: ../src/guestfs-actions.pod:7407
33521 "This command enables swap to a swap partition with the given UUID. See "
33522 "C<guestfs_swapon_device> for other notes."
33526 #: ../src/guestfs-actions.pod:7414
33527 msgid "guestfs_sync"
33531 #: ../src/guestfs-actions.pod:7416
33535 " guestfs_sync (guestfs_h *g);\n"
33540 #: ../src/guestfs-actions.pod:7429
33541 msgid "guestfs_tail"
33545 #: ../src/guestfs-actions.pod:7431
33549 " guestfs_tail (guestfs_h *g,\n"
33550 " const char *path);\n"
33555 #: ../src/guestfs-actions.pod:7447
33556 msgid "guestfs_tail_n"
33560 #: ../src/guestfs-actions.pod:7449
33564 " guestfs_tail_n (guestfs_h *g,\n"
33566 " const char *path);\n"
33571 #: ../src/guestfs-actions.pod:7471
33572 msgid "guestfs_tar_in"
33576 #: ../src/guestfs-actions.pod:7473
33580 " guestfs_tar_in (guestfs_h *g,\n"
33581 " const char *tarfile,\n"
33582 " const char *directory);\n"
33587 #: ../src/guestfs-actions.pod:7481
33589 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
33593 #: ../src/guestfs-actions.pod:7486 ../src/guestfs-actions.pod:7503
33594 #: ../src/guestfs-actions.pod:7519 ../src/guestfs-actions.pod:7535
33595 msgid "(Added in 1.0.3)"
33596 msgstr "(Додано у 1.0.3)"
33599 #: ../src/guestfs-actions.pod:7488
33600 msgid "guestfs_tar_out"
33604 #: ../src/guestfs-actions.pod:7490
33608 " guestfs_tar_out (guestfs_h *g,\n"
33609 " const char *directory,\n"
33610 " const char *tarfile);\n"
33615 #: ../src/guestfs-actions.pod:7498
33617 "To download a compressed tarball, use C<guestfs_tgz_out> or "
33618 "C<guestfs_txz_out>."
33622 #: ../src/guestfs-actions.pod:7505
33623 msgid "guestfs_tgz_in"
33627 #: ../src/guestfs-actions.pod:7507
33631 " guestfs_tgz_in (guestfs_h *g,\n"
33632 " const char *tarball,\n"
33633 " const char *directory);\n"
33638 #: ../src/guestfs-actions.pod:7515
33639 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
33643 #: ../src/guestfs-actions.pod:7521
33644 msgid "guestfs_tgz_out"
33648 #: ../src/guestfs-actions.pod:7523
33652 " guestfs_tgz_out (guestfs_h *g,\n"
33653 " const char *directory,\n"
33654 " const char *tarball);\n"
33659 #: ../src/guestfs-actions.pod:7531
33660 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
33664 #: ../src/guestfs-actions.pod:7537
33665 msgid "guestfs_touch"
33669 #: ../src/guestfs-actions.pod:7539
33673 " guestfs_touch (guestfs_h *g,\n"
33674 " const char *path);\n"
33679 #: ../src/guestfs-actions.pod:7554
33680 msgid "guestfs_truncate"
33684 #: ../src/guestfs-actions.pod:7556
33688 " guestfs_truncate (guestfs_h *g,\n"
33689 " const char *path);\n"
33694 #: ../src/guestfs-actions.pod:7567
33695 msgid "guestfs_truncate_size"
33699 #: ../src/guestfs-actions.pod:7569
33703 " guestfs_truncate_size (guestfs_h *g,\n"
33704 " const char *path,\n"
33705 " int64_t size);\n"
33710 #: ../src/guestfs-actions.pod:7577
33712 "If the current file size is less than C<size> then the file is extended to "
33713 "the required size with zero bytes. This creates a sparse file (ie. disk "
33714 "blocks are not allocated for the file until you write to it). To create a "
33715 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
33719 #: ../src/guestfs-actions.pod:7587
33720 msgid "guestfs_tune2fs_l"
33724 #: ../src/guestfs-actions.pod:7589
33728 " guestfs_tune2fs_l (guestfs_h *g,\n"
33729 " const char *device);\n"
33734 #: ../src/guestfs-actions.pod:7609
33735 msgid "guestfs_txz_in"
33739 #: ../src/guestfs-actions.pod:7611
33743 " guestfs_txz_in (guestfs_h *g,\n"
33744 " const char *tarball,\n"
33745 " const char *directory);\n"
33750 #: ../src/guestfs-actions.pod:7623
33751 msgid "guestfs_txz_out"
33755 #: ../src/guestfs-actions.pod:7625
33759 " guestfs_txz_out (guestfs_h *g,\n"
33760 " const char *directory,\n"
33761 " const char *tarball);\n"
33766 #: ../src/guestfs-actions.pod:7637
33767 msgid "guestfs_umask"
33771 #: ../src/guestfs-actions.pod:7639
33775 " guestfs_umask (guestfs_h *g,\n"
33781 #: ../src/guestfs-actions.pod:7655
33783 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
33784 "C<guestfs_mkdir>."
33788 #: ../src/guestfs-actions.pod:7664
33789 msgid "guestfs_umount"
33793 #: ../src/guestfs-actions.pod:7666
33797 " guestfs_umount (guestfs_h *g,\n"
33798 " const char *pathordevice);\n"
33803 #: ../src/guestfs-actions.pod:7678
33804 msgid "guestfs_umount_all"
33808 #: ../src/guestfs-actions.pod:7680
33812 " guestfs_umount_all (guestfs_h *g);\n"
33817 #: ../src/guestfs-actions.pod:7691
33818 msgid "guestfs_upload"
33822 #: ../src/guestfs-actions.pod:7693
33826 " guestfs_upload (guestfs_h *g,\n"
33827 " const char *filename,\n"
33828 " const char *remotefilename);\n"
33833 #: ../src/guestfs-actions.pod:7703
33834 msgid "See also C<guestfs_download>."
33838 #: ../src/guestfs-actions.pod:7714
33839 msgid "guestfs_upload_offset"
33843 #: ../src/guestfs-actions.pod:7716
33847 " guestfs_upload_offset (guestfs_h *g,\n"
33848 " const char *filename,\n"
33849 " const char *remotefilename,\n"
33850 " int64_t offset);\n"
33855 #: ../src/guestfs-actions.pod:7732
33857 "Note that there is no limit on the amount of data that can be uploaded with "
33858 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
33859 "full amount unless an error occurs."
33863 #: ../src/guestfs-actions.pod:7737
33864 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
33868 #: ../src/guestfs-actions.pod:7748
33869 msgid "guestfs_utimens"
33873 #: ../src/guestfs-actions.pod:7750
33877 " guestfs_utimens (guestfs_h *g,\n"
33878 " const char *path,\n"
33879 " int64_t atsecs,\n"
33880 " int64_t atnsecs,\n"
33881 " int64_t mtsecs,\n"
33882 " int64_t mtnsecs);\n"
33887 #: ../src/guestfs-actions.pod:7779 ../src/guestfs-structs.pod:175
33888 msgid "guestfs_version"
33892 #: ../src/guestfs-actions.pod:7781
33895 " struct guestfs_version *\n"
33896 " guestfs_version (guestfs_h *g);\n"
33901 #: ../src/guestfs-actions.pod:7809
33903 "I<Note:> Don't use this call to test for availability of features. In "
33904 "enterprise distributions we backport features from later versions into "
33905 "earlier versions, making this an unreliable way to test for features. Use "
33906 "C<guestfs_available> instead."
33910 #: ../src/guestfs-actions.pod:7815
33912 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
33913 "error. I<The caller must call C<guestfs_free_version> after use>."
33917 #: ../src/guestfs-actions.pod:7819
33918 msgid "(Added in 1.0.58)"
33919 msgstr "(Додано у 1.0.58)"
33922 #: ../src/guestfs-actions.pod:7821
33923 msgid "guestfs_vfs_label"
33927 #: ../src/guestfs-actions.pod:7823
33931 " guestfs_vfs_label (guestfs_h *g,\n"
33932 " const char *device);\n"
33937 #: ../src/guestfs-actions.pod:7832
33938 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
33942 #: ../src/guestfs-actions.pod:7837 ../src/guestfs-actions.pod:7874
33943 msgid "(Added in 1.3.18)"
33944 msgstr "(Додано у 1.3.18)"
33947 #: ../src/guestfs-actions.pod:7839
33948 msgid "guestfs_vfs_type"
33952 #: ../src/guestfs-actions.pod:7841
33956 " guestfs_vfs_type (guestfs_h *g,\n"
33957 " const char *device);\n"
33962 #: ../src/guestfs-actions.pod:7858
33963 msgid "guestfs_vfs_uuid"
33967 #: ../src/guestfs-actions.pod:7860
33971 " guestfs_vfs_uuid (guestfs_h *g,\n"
33972 " const char *device);\n"
33977 #: ../src/guestfs-actions.pod:7869
33978 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
33982 #: ../src/guestfs-actions.pod:7876
33983 msgid "guestfs_vg_activate"
33987 #: ../src/guestfs-actions.pod:7878
33991 " guestfs_vg_activate (guestfs_h *g,\n"
33993 " char *const *volgroups);\n"
33998 #: ../src/guestfs-actions.pod:7895
33999 msgid "guestfs_vg_activate_all"
34003 #: ../src/guestfs-actions.pod:7897
34007 " guestfs_vg_activate_all (guestfs_h *g,\n"
34008 " int activate);\n"
34013 #: ../src/guestfs-actions.pod:7910
34014 msgid "guestfs_vgcreate"
34018 #: ../src/guestfs-actions.pod:7912
34022 " guestfs_vgcreate (guestfs_h *g,\n"
34023 " const char *volgroup,\n"
34024 " char *const *physvols);\n"
34029 #: ../src/guestfs-actions.pod:7924
34030 msgid "guestfs_vglvuuids"
34034 #: ../src/guestfs-actions.pod:7926
34038 " guestfs_vglvuuids (guestfs_h *g,\n"
34039 " const char *vgname);\n"
34044 #: ../src/guestfs-actions.pod:7933
34046 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
34047 "associate logical volumes and volume groups."
34051 #: ../src/guestfs-actions.pod:7936
34052 msgid "See also C<guestfs_vgpvuuids>."
34056 #: ../src/guestfs-actions.pod:7944
34057 msgid "guestfs_vgpvuuids"
34061 #: ../src/guestfs-actions.pod:7946
34065 " guestfs_vgpvuuids (guestfs_h *g,\n"
34066 " const char *vgname);\n"
34071 #: ../src/guestfs-actions.pod:7953
34073 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
34074 "associate physical volumes and volume groups."
34078 #: ../src/guestfs-actions.pod:7956
34079 msgid "See also C<guestfs_vglvuuids>."
34083 #: ../src/guestfs-actions.pod:7964
34084 msgid "guestfs_vgremove"
34088 #: ../src/guestfs-actions.pod:7966
34092 " guestfs_vgremove (guestfs_h *g,\n"
34093 " const char *vgname);\n"
34098 #: ../src/guestfs-actions.pod:7979
34099 msgid "guestfs_vgrename"
34103 #: ../src/guestfs-actions.pod:7981
34107 " guestfs_vgrename (guestfs_h *g,\n"
34108 " const char *volgroup,\n"
34109 " const char *newvolgroup);\n"
34114 #: ../src/guestfs-actions.pod:7992
34115 msgid "guestfs_vgs"
34119 #: ../src/guestfs-actions.pod:7994
34123 " guestfs_vgs (guestfs_h *g);\n"
34128 #: ../src/guestfs-actions.pod:8003
34129 msgid "See also C<guestfs_vgs_full>."
34133 #: ../src/guestfs-actions.pod:8011
34134 msgid "guestfs_vgs_full"
34138 #: ../src/guestfs-actions.pod:8013
34141 " struct guestfs_lvm_vg_list *\n"
34142 " guestfs_vgs_full (guestfs_h *g);\n"
34147 #: ../src/guestfs-actions.pod:8019
34149 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
34150 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
34154 #: ../src/guestfs-actions.pod:8025
34155 msgid "guestfs_vgscan"
34159 #: ../src/guestfs-actions.pod:8027
34163 " guestfs_vgscan (guestfs_h *g);\n"
34168 #: ../src/guestfs-actions.pod:8037
34169 msgid "guestfs_vguuid"
34173 #: ../src/guestfs-actions.pod:8039
34177 " guestfs_vguuid (guestfs_h *g,\n"
34178 " const char *vgname);\n"
34183 #: ../src/guestfs-actions.pod:8050
34184 msgid "guestfs_wait_ready"
34188 #: ../src/guestfs-actions.pod:8052
34192 " guestfs_wait_ready (guestfs_h *g);\n"
34197 #: ../src/guestfs-actions.pod:8055
34199 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
34204 #: ../src/guestfs-actions.pod:8062
34205 msgid "This function is a no op."
34209 #: ../src/guestfs-actions.pod:8064
34211 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
34212 "calling C<guestfs_launch> to wait for the launch to complete. However this "
34213 "is no longer necessary because C<guestfs_launch> now does the waiting."
34217 #: ../src/guestfs-actions.pod:8069
34219 "If you see any calls to this function in code then you can just remove them, "
34220 "unless you want to retain compatibility with older versions of the API."
34224 #: ../src/guestfs-actions.pod:8077
34225 msgid "guestfs_wc_c"
34229 #: ../src/guestfs-actions.pod:8079
34233 " guestfs_wc_c (guestfs_h *g,\n"
34234 " const char *path);\n"
34239 #: ../src/guestfs-actions.pod:8090
34240 msgid "guestfs_wc_l"
34244 #: ../src/guestfs-actions.pod:8092
34248 " guestfs_wc_l (guestfs_h *g,\n"
34249 " const char *path);\n"
34254 #: ../src/guestfs-actions.pod:8103
34255 msgid "guestfs_wc_w"
34259 #: ../src/guestfs-actions.pod:8105
34263 " guestfs_wc_w (guestfs_h *g,\n"
34264 " const char *path);\n"
34269 #: ../src/guestfs-actions.pod:8116
34270 msgid "guestfs_write"
34274 #: ../src/guestfs-actions.pod:8118
34278 " guestfs_write (guestfs_h *g,\n"
34279 " const char *path,\n"
34280 " const char *content,\n"
34281 " size_t content_size);\n"
34286 #: ../src/guestfs-actions.pod:8127
34287 msgid "See also C<guestfs_write_append>."
34291 #: ../src/guestfs-actions.pod:8136
34292 msgid "guestfs_write_append"
34296 #: ../src/guestfs-actions.pod:8138
34300 " guestfs_write_append (guestfs_h *g,\n"
34301 " const char *path,\n"
34302 " const char *content,\n"
34303 " size_t content_size);\n"
34308 #: ../src/guestfs-actions.pod:8147
34309 msgid "See also C<guestfs_write>."
34313 #: ../src/guestfs-actions.pod:8156
34314 msgid "guestfs_write_file"
34315 msgstr "guestfs_write_file"
34318 #: ../src/guestfs-actions.pod:8158
34322 " guestfs_write_file (guestfs_h *g,\n"
34323 " const char *path,\n"
34324 " const char *content,\n"
34329 " guestfs_write_file (guestfs_h *g,\n"
34330 " const char *path,\n"
34331 " const char *content,\n"
34336 #: ../src/guestfs-actions.pod:8164
34338 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
34343 #: ../src/guestfs-actions.pod:8189
34344 msgid "guestfs_zegrep"
34345 msgstr "guestfs_zegrep"
34348 #: ../src/guestfs-actions.pod:8191
34352 " guestfs_zegrep (guestfs_h *g,\n"
34353 " const char *regex,\n"
34354 " const char *path);\n"
34358 " guestfs_zegrep (guestfs_h *g,\n"
34359 " const char *regex,\n"
34360 " const char *path);\n"
34364 #: ../src/guestfs-actions.pod:8208
34365 msgid "guestfs_zegrepi"
34366 msgstr "guestfs_zegrepi"
34369 #: ../src/guestfs-actions.pod:8210
34373 " guestfs_zegrepi (guestfs_h *g,\n"
34374 " const char *regex,\n"
34375 " const char *path);\n"
34379 " guestfs_zegrepi (guestfs_h *g,\n"
34380 " const char *regex,\n"
34381 " const char *path);\n"
34385 #: ../src/guestfs-actions.pod:8227
34386 msgid "guestfs_zero"
34387 msgstr "guestfs_zero"
34390 #: ../src/guestfs-actions.pod:8229
34394 " guestfs_zero (guestfs_h *g,\n"
34395 " const char *device);\n"
34399 " guestfs_zero (guestfs_h *g,\n"
34400 " const char *device);\n"
34404 #: ../src/guestfs-actions.pod:8243
34406 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
34407 "C<guestfs_is_zero_device>"
34411 #: ../src/guestfs-actions.pod:8255
34412 msgid "guestfs_zero_device"
34413 msgstr "guestfs_zero_device"
34416 #: ../src/guestfs-actions.pod:8257
34420 " guestfs_zero_device (guestfs_h *g,\n"
34421 " const char *device);\n"
34425 " guestfs_zero_device (guestfs_h *g,\n"
34426 " const char *device);\n"
34430 #: ../src/guestfs-actions.pod:8261
34432 "This command writes zeroes over the entire C<device>. Compare with "
34433 "C<guestfs_zero> which just zeroes the first few blocks of a device."
34437 #: ../src/guestfs-actions.pod:8276
34438 msgid "(Added in 1.3.1)"
34439 msgstr "(Додано у 1.3.1)"
34442 #: ../src/guestfs-actions.pod:8278
34443 msgid "guestfs_zerofree"
34444 msgstr "guestfs_zerofree"
34447 #: ../src/guestfs-actions.pod:8280
34451 " guestfs_zerofree (guestfs_h *g,\n"
34452 " const char *device);\n"
34456 " guestfs_zerofree (guestfs_h *g,\n"
34457 " const char *device);\n"
34461 #: ../src/guestfs-actions.pod:8299
34462 msgid "guestfs_zfgrep"
34463 msgstr "guestfs_zfgrep"
34466 #: ../src/guestfs-actions.pod:8301
34470 " guestfs_zfgrep (guestfs_h *g,\n"
34471 " const char *pattern,\n"
34472 " const char *path);\n"
34476 " guestfs_zfgrep (guestfs_h *g,\n"
34477 " const char *pattern,\n"
34478 " const char *path);\n"
34482 #: ../src/guestfs-actions.pod:8318
34483 msgid "guestfs_zfgrepi"
34484 msgstr "guestfs_zfgrepi"
34487 #: ../src/guestfs-actions.pod:8320
34491 " guestfs_zfgrepi (guestfs_h *g,\n"
34492 " const char *pattern,\n"
34493 " const char *path);\n"
34497 " guestfs_zfgrepi (guestfs_h *g,\n"
34498 " const char *pattern,\n"
34499 " const char *path);\n"
34503 #: ../src/guestfs-actions.pod:8337
34504 msgid "guestfs_zfile"
34505 msgstr "guestfs_zfile"
34508 #: ../src/guestfs-actions.pod:8339
34512 " guestfs_zfile (guestfs_h *g,\n"
34513 " const char *meth,\n"
34514 " const char *path);\n"
34518 " guestfs_zfile (guestfs_h *g,\n"
34519 " const char *meth,\n"
34520 " const char *path);\n"
34524 #: ../src/guestfs-actions.pod:8344
34526 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
34531 #: ../src/guestfs-actions.pod:8356
34533 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
34538 #: ../src/guestfs-actions.pod:8364
34539 msgid "guestfs_zgrep"
34540 msgstr "guestfs_zgrep"
34543 #: ../src/guestfs-actions.pod:8366
34547 " guestfs_zgrep (guestfs_h *g,\n"
34548 " const char *regex,\n"
34549 " const char *path);\n"
34553 " guestfs_zgrep (guestfs_h *g,\n"
34554 " const char *regex,\n"
34555 " const char *path);\n"
34559 #: ../src/guestfs-actions.pod:8383
34560 msgid "guestfs_zgrepi"
34561 msgstr "guestfs_zgrepi"
34564 #: ../src/guestfs-actions.pod:8385
34568 " guestfs_zgrepi (guestfs_h *g,\n"
34569 " const char *regex,\n"
34570 " const char *path);\n"
34574 " guestfs_zgrepi (guestfs_h *g,\n"
34575 " const char *regex,\n"
34576 " const char *path);\n"
34580 #: ../src/guestfs-availability.pod:3
34585 #: ../src/guestfs-availability.pod:5
34587 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
34588 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
34589 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
34590 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
34591 "L</guestfs_aug_save> L</guestfs_aug_set>"
34595 #: ../src/guestfs-availability.pod:21
34600 #: ../src/guestfs-availability.pod:23
34601 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
34605 #: ../src/guestfs-availability.pod:26
34610 #: ../src/guestfs-availability.pod:28
34611 msgid "The following functions: L</guestfs_grub_install>"
34615 #: ../src/guestfs-availability.pod:31
34617 msgstr "B<inotify>"
34620 #: ../src/guestfs-availability.pod:33
34622 "The following functions: L</guestfs_inotify_add_watch> L</"
34623 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
34624 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
34628 #: ../src/guestfs-availability.pod:41
34629 msgid "B<linuxfsuuid>"
34630 msgstr "B<linuxfsuuid>"
34633 #: ../src/guestfs-availability.pod:43
34635 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
34636 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
34640 #: ../src/guestfs-availability.pod:50
34641 msgid "B<linuxmodules>"
34642 msgstr "B<linuxmodules>"
34645 #: ../src/guestfs-availability.pod:52
34646 msgid "The following functions: L</guestfs_modprobe>"
34650 #: ../src/guestfs-availability.pod:55
34651 msgid "B<linuxxattrs>"
34652 msgstr "B<linuxxattrs>"
34655 #: ../src/guestfs-availability.pod:57
34657 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
34658 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
34659 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
34660 "guestfs_setxattr>"
34664 #: ../src/guestfs-availability.pod:68
34669 #: ../src/guestfs-availability.pod:70
34671 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
34672 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
34673 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
34677 #: ../src/guestfs-availability.pod:79
34682 #: ../src/guestfs-availability.pod:81
34684 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
34685 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
34686 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
34687 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
34688 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
34689 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
34690 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
34694 #: ../src/guestfs-availability.pod:104
34699 #: ../src/guestfs-availability.pod:106
34701 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
34702 "guestfs_mknod_b> L</guestfs_mknod_c>"
34706 #: ../src/guestfs-availability.pod:112
34711 #: ../src/guestfs-availability.pod:114
34712 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
34716 #: ../src/guestfs-availability.pod:117
34717 msgid "B<ntfsprogs>"
34718 msgstr "B<ntfsprogs>"
34721 #: ../src/guestfs-availability.pod:119
34723 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
34724 "L</guestfs_ntfsresize_size>"
34728 #: ../src/guestfs-availability.pod:124
34729 msgid "B<realpath>"
34730 msgstr "B<realpath>"
34733 #: ../src/guestfs-availability.pod:126
34734 msgid "The following functions: L</guestfs_realpath>"
34738 #: ../src/guestfs-availability.pod:129
34743 #: ../src/guestfs-availability.pod:131
34745 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
34746 "guestfs_scrub_freespace>"
34750 #: ../src/guestfs-availability.pod:136
34752 msgstr "B<selinux>"
34755 #: ../src/guestfs-availability.pod:138
34756 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
34760 #: ../src/guestfs-availability.pod:142
34765 #: ../src/guestfs-availability.pod:144
34766 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
34770 #: ../src/guestfs-availability.pod:148
34771 msgid "B<zerofree>"
34772 msgstr "B<zerofree>"
34775 #: ../src/guestfs-availability.pod:150
34776 msgid "The following functions: L</guestfs_zerofree>"
34780 #: ../src/guestfs-structs.pod:1
34781 msgid "guestfs_int_bool"
34785 #: ../src/guestfs-structs.pod:3
34788 " struct guestfs_int_bool {\n"
34796 #: ../src/guestfs-structs.pod:8
34799 " struct guestfs_int_bool_list {\n"
34800 " uint32_t len; /* Number of elements in list. */\n"
34801 " struct guestfs_int_bool *val; /* Elements. */\n"
34807 #: ../src/guestfs-structs.pod:13
34810 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34811 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
34816 #: ../src/guestfs-structs.pod:16
34817 msgid "guestfs_lvm_pv"
34821 #: ../src/guestfs-structs.pod:18
34824 " struct guestfs_lvm_pv {\n"
34825 " char *pv_name;\n"
34826 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34827 " char pv_uuid[32];\n"
34829 " uint64_t pv_size;\n"
34830 " uint64_t dev_size;\n"
34831 " uint64_t pv_free;\n"
34832 " uint64_t pv_used;\n"
34833 " char *pv_attr;\n"
34834 " int64_t pv_pe_count;\n"
34835 " int64_t pv_pe_alloc_count;\n"
34836 " char *pv_tags;\n"
34837 " uint64_t pe_start;\n"
34838 " int64_t pv_mda_count;\n"
34839 " uint64_t pv_mda_free;\n"
34845 #: ../src/guestfs-structs.pod:36
34848 " struct guestfs_lvm_pv_list {\n"
34849 " uint32_t len; /* Number of elements in list. */\n"
34850 " struct guestfs_lvm_pv *val; /* Elements. */\n"
34856 #: ../src/guestfs-structs.pod:41
34859 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
34860 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
34865 #: ../src/guestfs-structs.pod:44
34866 msgid "guestfs_lvm_vg"
34870 #: ../src/guestfs-structs.pod:46
34873 " struct guestfs_lvm_vg {\n"
34874 " char *vg_name;\n"
34875 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34876 " char vg_uuid[32];\n"
34878 " char *vg_attr;\n"
34879 " uint64_t vg_size;\n"
34880 " uint64_t vg_free;\n"
34881 " char *vg_sysid;\n"
34882 " uint64_t vg_extent_size;\n"
34883 " int64_t vg_extent_count;\n"
34884 " int64_t vg_free_count;\n"
34885 " int64_t max_lv;\n"
34886 " int64_t max_pv;\n"
34887 " int64_t pv_count;\n"
34888 " int64_t lv_count;\n"
34889 " int64_t snap_count;\n"
34890 " int64_t vg_seqno;\n"
34891 " char *vg_tags;\n"
34892 " int64_t vg_mda_count;\n"
34893 " uint64_t vg_mda_free;\n"
34899 #: ../src/guestfs-structs.pod:69
34902 " struct guestfs_lvm_vg_list {\n"
34903 " uint32_t len; /* Number of elements in list. */\n"
34904 " struct guestfs_lvm_vg *val; /* Elements. */\n"
34910 #: ../src/guestfs-structs.pod:74
34913 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
34914 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
34919 #: ../src/guestfs-structs.pod:77
34920 msgid "guestfs_lvm_lv"
34924 #: ../src/guestfs-structs.pod:79
34927 " struct guestfs_lvm_lv {\n"
34928 " char *lv_name;\n"
34929 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34930 " char lv_uuid[32];\n"
34931 " char *lv_attr;\n"
34932 " int64_t lv_major;\n"
34933 " int64_t lv_minor;\n"
34934 " int64_t lv_kernel_major;\n"
34935 " int64_t lv_kernel_minor;\n"
34936 " uint64_t lv_size;\n"
34937 " int64_t seg_count;\n"
34939 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
34940 " float snap_percent;\n"
34941 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
34942 " float copy_percent;\n"
34943 " char *move_pv;\n"
34944 " char *lv_tags;\n"
34945 " char *mirror_log;\n"
34946 " char *modules;\n"
34952 #: ../src/guestfs-structs.pod:101
34955 " struct guestfs_lvm_lv_list {\n"
34956 " uint32_t len; /* Number of elements in list. */\n"
34957 " struct guestfs_lvm_lv *val; /* Elements. */\n"
34963 #: ../src/guestfs-structs.pod:106
34966 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
34967 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
34972 #: ../src/guestfs-structs.pod:111
34975 " struct guestfs_stat {\n"
34979 " int64_t nlink;\n"
34984 " int64_t blksize;\n"
34985 " int64_t blocks;\n"
34986 " int64_t atime;\n"
34987 " int64_t mtime;\n"
34988 " int64_t ctime;\n"
34994 #: ../src/guestfs-structs.pod:127
34997 " struct guestfs_stat_list {\n"
34998 " uint32_t len; /* Number of elements in list. */\n"
34999 " struct guestfs_stat *val; /* Elements. */\n"
35005 #: ../src/guestfs-structs.pod:132
35008 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
35009 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
35014 #: ../src/guestfs-structs.pod:137
35017 " struct guestfs_statvfs {\n"
35018 " int64_t bsize;\n"
35019 " int64_t frsize;\n"
35020 " int64_t blocks;\n"
35021 " int64_t bfree;\n"
35022 " int64_t bavail;\n"
35023 " int64_t files;\n"
35024 " int64_t ffree;\n"
35025 " int64_t favail;\n"
35028 " int64_t namemax;\n"
35034 #: ../src/guestfs-structs.pod:151
35037 " struct guestfs_statvfs_list {\n"
35038 " uint32_t len; /* Number of elements in list. */\n"
35039 " struct guestfs_statvfs *val; /* Elements. */\n"
35045 #: ../src/guestfs-structs.pod:156
35048 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
35049 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
35054 #: ../src/guestfs-structs.pod:159
35055 msgid "guestfs_dirent"
35059 #: ../src/guestfs-structs.pod:161
35062 " struct guestfs_dirent {\n"
35071 #: ../src/guestfs-structs.pod:167
35074 " struct guestfs_dirent_list {\n"
35075 " uint32_t len; /* Number of elements in list. */\n"
35076 " struct guestfs_dirent *val; /* Elements. */\n"
35082 #: ../src/guestfs-structs.pod:172
35085 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
35086 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
35091 #: ../src/guestfs-structs.pod:177
35094 " struct guestfs_version {\n"
35095 " int64_t major;\n"
35096 " int64_t minor;\n"
35097 " int64_t release;\n"
35104 #: ../src/guestfs-structs.pod:184
35107 " struct guestfs_version_list {\n"
35108 " uint32_t len; /* Number of elements in list. */\n"
35109 " struct guestfs_version *val; /* Elements. */\n"
35115 #: ../src/guestfs-structs.pod:189
35118 " void guestfs_free_version (struct guestfs_free_version *);\n"
35119 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
35124 #: ../src/guestfs-structs.pod:192
35125 msgid "guestfs_xattr"
35129 #: ../src/guestfs-structs.pod:194
35132 " struct guestfs_xattr {\n"
35133 " char *attrname;\n"
35134 " /* The next two fields describe a byte array. */\n"
35135 " uint32_t attrval_len;\n"
35136 " char *attrval;\n"
35142 #: ../src/guestfs-structs.pod:201
35145 " struct guestfs_xattr_list {\n"
35146 " uint32_t len; /* Number of elements in list. */\n"
35147 " struct guestfs_xattr *val; /* Elements. */\n"
35153 #: ../src/guestfs-structs.pod:206
35156 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
35157 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
35162 #: ../src/guestfs-structs.pod:209
35163 msgid "guestfs_inotify_event"
35167 #: ../src/guestfs-structs.pod:211
35170 " struct guestfs_inotify_event {\n"
35171 " int64_t in_wd;\n"
35172 " uint32_t in_mask;\n"
35173 " uint32_t in_cookie;\n"
35174 " char *in_name;\n"
35180 #: ../src/guestfs-structs.pod:218
35183 " struct guestfs_inotify_event_list {\n"
35184 " uint32_t len; /* Number of elements in list. */\n"
35185 " struct guestfs_inotify_event *val; /* Elements. */\n"
35191 #: ../src/guestfs-structs.pod:223
35194 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
35195 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
35200 #: ../src/guestfs-structs.pod:226
35201 msgid "guestfs_partition"
35205 #: ../src/guestfs-structs.pod:228
35208 " struct guestfs_partition {\n"
35209 " int32_t part_num;\n"
35210 " uint64_t part_start;\n"
35211 " uint64_t part_end;\n"
35212 " uint64_t part_size;\n"
35218 #: ../src/guestfs-structs.pod:235
35221 " struct guestfs_partition_list {\n"
35222 " uint32_t len; /* Number of elements in list. */\n"
35223 " struct guestfs_partition *val; /* Elements. */\n"
35229 #: ../src/guestfs-structs.pod:240
35232 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
35233 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
35238 #: ../src/guestfs-structs.pod:243
35239 msgid "guestfs_application"
35243 #: ../src/guestfs-structs.pod:245
35246 " struct guestfs_application {\n"
35247 " char *app_name;\n"
35248 " char *app_display_name;\n"
35249 " int32_t app_epoch;\n"
35250 " char *app_version;\n"
35251 " char *app_release;\n"
35252 " char *app_install_path;\n"
35253 " char *app_trans_path;\n"
35254 " char *app_publisher;\n"
35255 " char *app_url;\n"
35256 " char *app_source_package;\n"
35257 " char *app_summary;\n"
35258 " char *app_description;\n"
35264 #: ../src/guestfs-structs.pod:260
35267 " struct guestfs_application_list {\n"
35268 " uint32_t len; /* Number of elements in list. */\n"
35269 " struct guestfs_application *val; /* Elements. */\n"
35275 #: ../src/guestfs-structs.pod:265
35278 " void guestfs_free_application (struct guestfs_free_application *);\n"
35279 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
35284 #: ../src/guestfs.pod:5
35285 msgid "guestfs - Library for accessing and modifying virtual machine images"
35287 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
35291 #: ../src/guestfs.pod:11
35294 " guestfs_h *g = guestfs_create ();\n"
35295 " guestfs_add_drive (g, \"guest.img\");\n"
35296 " guestfs_launch (g);\n"
35297 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35298 " guestfs_touch (g, \"/hello\");\n"
35299 " guestfs_umount (g, \"/\");\n"
35300 " guestfs_close (g);\n"
35303 " guestfs_h *g = guestfs_create ();\n"
35304 " guestfs_add_drive (g, \"guest.img\");\n"
35305 " guestfs_launch (g);\n"
35306 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35307 " guestfs_touch (g, \"/hello\");\n"
35308 " guestfs_umount (g, \"/\");\n"
35309 " guestfs_close (g);\n"
35313 #: ../src/guestfs.pod:25
35315 "Libguestfs is a library for accessing and modifying guest disk images. "
35316 "Amongst the things this is good for: making batch configuration changes to "
35317 "guests, getting disk used/free statistics (see also: virt-df), migrating "
35318 "between virtualization systems (see also: virt-p2v), performing partial "
35319 "backups, performing partial guest clones, cloning guests and changing "
35320 "registry/UUID/hostname info, and much else besides."
35324 #: ../src/guestfs.pod:33
35326 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
35327 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
35328 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
35333 #: ../src/guestfs.pod:38
35335 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
35336 "what filesystem is in each LV, etc.). It can also run commands in the "
35337 "context of the guest. Also you can access filesystems over FUSE."
35341 #: ../src/guestfs.pod:43
35343 "Libguestfs is a library that can be linked with C and C++ management "
35344 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
35345 "PHP, Erlang, Haskell or C#). You can also use it from shell scripts or the "
35350 #: ../src/guestfs.pod:48
35352 "You don't need to be root to use libguestfs, although obviously you do need "
35353 "enough permissions to access the disk images."
35357 #: ../src/guestfs.pod:51
35359 "Libguestfs is a large API because it can do many things. For a gentle "
35360 "introduction, please read the L</API OVERVIEW> section next."
35364 #: ../src/guestfs.pod:54
35366 "There are also some example programs in the L<guestfs-examples(3)> manual "
35371 #: ../src/guestfs.pod:57
35372 msgid "API OVERVIEW"
35376 #: ../src/guestfs.pod:59
35378 "This section provides a gentler overview of the libguestfs API. We also try "
35379 "to group API calls together, where that may not be obvious from reading "
35380 "about the individual calls in the main section of this manual."
35384 #: ../src/guestfs.pod:64
35389 #: ../src/guestfs.pod:66
35391 "Before you can use libguestfs calls, you have to create a handle. Then you "
35392 "must add at least one disk image to the handle, followed by launching the "
35393 "handle, then performing whatever operations you want, and finally closing "
35394 "the handle. By convention we use the single letter C<g> for the name of the "
35395 "handle variable, although of course you can use any name you want."
35399 #: ../src/guestfs.pod:73
35400 msgid "The general structure of all libguestfs-using programs looks like this:"
35404 #: ../src/guestfs.pod:76
35407 " guestfs_h *g = guestfs_create ();\n"
35410 " guestfs_h *g = guestfs_create ();\n"
35414 #: ../src/guestfs.pod:78
35417 " /* Call guestfs_add_drive additional times if there are\n"
35418 " * multiple disk images.\n"
35420 " guestfs_add_drive (g, \"guest.img\");\n"
35425 #: ../src/guestfs.pod:83
35428 " /* Most manipulation calls won't work until you've launched\n"
35429 " * the handle 'g'. You have to do this _after_ adding drives\n"
35430 " * and _before_ other commands.\n"
35432 " guestfs_launch (g);\n"
35437 #: ../src/guestfs.pod:89
35440 " /* Now you can examine what partitions, LVs etc are available.\n"
35442 " char **partitions = guestfs_list_partitions (g);\n"
35443 " char **logvols = guestfs_lvs (g);\n"
35446 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
35448 " char **partitions = guestfs_list_partitions (g);\n"
35449 " char **logvols = guestfs_lvs (g);\n"
35453 #: ../src/guestfs.pod:94
35456 " /* To access a filesystem in the image, you must mount it.\n"
35458 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35461 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
35463 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35467 #: ../src/guestfs.pod:98
35470 " /* Now you can perform filesystem actions on the guest\n"
35473 " guestfs_touch (g, \"/hello\");\n"
35476 " /* Тепер ви можете виконувати дії з файловою системою на\n"
35477 " * образі диска операційної системи.\n"
35479 " guestfs_touch (g, \"/hello\");\n"
35483 #: ../src/guestfs.pod:103
35486 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
35487 " * it is done automatically when you close the handle. See\n"
35488 " * discussion of autosync in this page.\n"
35490 " guestfs_sync (g);\n"
35495 #: ../src/guestfs.pod:109
35498 " /* Close the handle 'g'. */\n"
35499 " guestfs_close (g);\n"
35502 " /* Закрити дескриптор 'g'. */\n"
35503 " guestfs_close (g);\n"
35507 #: ../src/guestfs.pod:112
35509 "The code above doesn't include any error checking. In real code you should "
35510 "check return values carefully for errors. In general all functions that "
35511 "return integers return C<-1> on error, and all functions that return "
35512 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
35513 "how to handle errors, and consult the documentation for each function call "
35514 "below to see precisely how they return error indications. See L<guestfs-"
35515 "examples(3)> for fully worked examples."
35519 #: ../src/guestfs.pod:121
35520 msgid "DISK IMAGES"
35521 msgstr "ОБРАЗИ ДИСКІВ"
35524 #: ../src/guestfs.pod:123
35526 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
35527 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
35528 "actual block device, or simply an empty file of zeroes that you have created "
35529 "through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
35534 #: ../src/guestfs.pod:129
35536 "The call you should use in modern code for adding drives is L</"
35537 "guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
35538 "specifying that the format is raw, do:"
35542 #: ../src/guestfs.pod:133
35545 " guestfs_add_drive_opts (g, filename,\n"
35546 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35550 " guestfs_add_drive_opts (g, filename,\n"
35551 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35556 #: ../src/guestfs.pod:137
35557 msgid "You can add a disk read-only using:"
35558 msgstr "Ви можете додати диск у режимі лише читання:"
35561 #: ../src/guestfs.pod:139
35564 " guestfs_add_drive_opts (g, filename,\n"
35565 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35566 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35570 " guestfs_add_drive_opts (g, filename,\n"
35571 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35572 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35577 #: ../src/guestfs.pod:144
35579 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
35580 "libguestfs won't modify the file."
35584 #: ../src/guestfs.pod:147
35586 "Be extremely cautious if the disk image is in use, eg. if it is being used "
35587 "by a virtual machine. Adding it read-write will almost certainly cause disk "
35588 "corruption, but adding it read-only is safe."
35592 #: ../src/guestfs.pod:151
35594 "You must add at least one disk image, and you may add multiple disk images. "
35595 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
35596 "first one you added), C</dev/sdb> (for the second one you added), etc."
35600 #: ../src/guestfs.pod:156
35602 "Once L</guestfs_launch> has been called you cannot add any more images. You "
35603 "can call L</guestfs_list_devices> to get a list of the device names, in the "
35604 "order that you added them. See also L</BLOCK DEVICE NAMING> below."
35608 #: ../src/guestfs.pod:161
35610 msgstr "МОНТУВАННЯ"
35613 #: ../src/guestfs.pod:163
35615 "Before you can read or write files, create directories and so on in a disk "
35616 "image that contains filesystems, you have to mount those filesystems using "
35617 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that "
35618 "a disk image contains (for example) one partition with a filesystem on that "
35619 "partition, then you can mount it directly:"
35623 #: ../src/guestfs.pod:170
35626 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35629 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35633 #: ../src/guestfs.pod:172
35635 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
35636 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
35637 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
35638 "that these are libguestfs virtual devices, and are nothing to do with host "
35643 #: ../src/guestfs.pod:178
35645 "If you are given a disk image and you don't know what it contains then you "
35646 "have to find out. Libguestfs can do that too: use L</"
35647 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
35648 "LVs, and either try mounting each to see what is mountable, or else examine "
35649 "them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
35650 "filesystems, use L</guestfs_list_filesystems>."
35654 #: ../src/guestfs.pod:186
35656 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
35657 "L</INSPECTION> below). But you might find it easier to look at higher level "
35658 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
35662 #: ../src/guestfs.pod:191
35664 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
35665 "several other variations of the C<guestfs_mount_*> call."
35669 #: ../src/guestfs.pod:194
35670 msgid "FILESYSTEM ACCESS AND MODIFICATION"
35671 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
35674 #: ../src/guestfs.pod:196
35676 "The majority of the libguestfs API consists of fairly low-level calls for "
35677 "accessing and modifying the files, directories, symlinks etc on mounted "
35678 "filesystems. There are over a hundred such calls which you can find listed "
35679 "in detail below in this man page, and we don't even pretend to cover them "
35680 "all in this overview."
35684 #: ../src/guestfs.pod:202
35686 "Specify filenames as full paths, starting with C<\"/\"> and including the "
35689 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
35690 "точкою монтування."
35693 #: ../src/guestfs.pod:205
35695 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
35696 "the file called C<\"etc/passwd\"> then you could do:"
35698 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
35699 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
35703 #: ../src/guestfs.pod:208
35706 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35709 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35713 #: ../src/guestfs.pod:210
35715 "This would return C<data> as a newly allocated buffer containing the full "
35716 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
35717 "or C<NULL> if there was an error."
35721 #: ../src/guestfs.pod:214
35723 "As another example, to create a top-level directory on that filesystem "
35724 "called C<\"var\"> you would do:"
35728 #: ../src/guestfs.pod:217
35731 " guestfs_mkdir (g, \"/var\");\n"
35734 " guestfs_mkdir (g, \"/var\");\n"
35738 #: ../src/guestfs.pod:219
35739 msgid "To create a symlink you could do:"
35740 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
35743 #: ../src/guestfs.pod:221
35746 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35747 " \"/etc/rc3.d/S30portmap\");\n"
35750 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35751 " \"/etc/rc3.d/S30portmap\");\n"
35755 #: ../src/guestfs.pod:224
35757 "Libguestfs will reject attempts to use relative paths and there is no "
35758 "concept of a current working directory."
35762 #: ../src/guestfs.pod:227
35764 "Libguestfs can return errors in many situations: for example if the "
35765 "filesystem isn't writable, or if a file or directory that you requested "
35766 "doesn't exist. If you are using the C API (documented here) you have to "
35767 "check for those error conditions after each call. (Other language bindings "
35768 "turn these errors into exceptions)."
35772 #: ../src/guestfs.pod:233
35774 "File writes are affected by the per-handle umask, set by calling L</"
35775 "guestfs_umask> and defaulting to 022. See L</UMASK>."
35779 #: ../src/guestfs.pod:236
35780 msgid "PARTITIONING"
35781 msgstr "ПОДІЛ НА РОЗДІЛИ"
35784 #: ../src/guestfs.pod:238
35786 "Libguestfs contains API calls to read, create and modify partition tables on "
35791 #: ../src/guestfs.pod:241
35793 "In the common case where you want to create a single partition covering the "
35794 "whole disk, you should use the L</guestfs_part_disk> call:"
35798 #: ../src/guestfs.pod:245
35801 " const char *parttype = \"mbr\";\n"
35802 " if (disk_is_larger_than_2TB)\n"
35803 " parttype = \"gpt\";\n"
35804 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35807 " const char *parttype = \"mbr\";\n"
35808 " if (disk_is_larger_than_2TB)\n"
35809 " parttype = \"gpt\";\n"
35810 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35814 #: ../src/guestfs.pod:250
35816 "Obviously this effectively wipes anything that was on that disk image before."
35820 #: ../src/guestfs.pod:253
35825 #: ../src/guestfs.pod:255
35827 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
35828 "guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense unless "
35829 "you familiarize yourself with the concepts of physical volumes, volume "
35830 "groups and logical volumes."
35834 #: ../src/guestfs.pod:260
35836 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
35837 "tldp.org/HOWTO/LVM-HOWTO/>."
35841 #: ../src/guestfs.pod:263
35842 msgid "DOWNLOADING"
35843 msgstr "ОТРИМАННЯ ДАНИХ"
35846 #: ../src/guestfs.pod:265
35848 "Use L</guestfs_cat> to download small, text only files. This call is "
35849 "limited to files which are less than 2 MB and which cannot contain any ASCII "
35850 "NUL (C<\\0>) characters. However the API is very simple to use."
35854 #: ../src/guestfs.pod:269
35856 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
35857 "bit data, since it returns a (pointer, size) pair. However it is still "
35858 "limited to \"small\" files, less than 2 MB."
35862 #: ../src/guestfs.pod:273
35864 "L</guestfs_download> can be used to download any file, with no limits on "
35865 "content or size (even files larger than 4 GB)."
35869 #: ../src/guestfs.pod:276
35871 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
35875 #: ../src/guestfs.pod:279
35877 msgstr "ВИВАНТАЖЕННЯ"
35880 #: ../src/guestfs.pod:281
35882 "It's often the case that you want to write a file or files to the disk image."
35886 #: ../src/guestfs.pod:284
35888 "To write a small file with fixed content, use L</guestfs_write>. To create "
35889 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
35890 "guestfs_fallocate64> (with all disk blocks allocated). There are a variety "
35891 "of other functions for creating test files, for example L</guestfs_fill> and "
35892 "L</guestfs_fill_pattern>."
35896 #: ../src/guestfs.pod:290
35898 "To upload a single file, use L</guestfs_upload>. This call has no limits on "
35899 "file content or size (even files larger than 4 GB)."
35903 #: ../src/guestfs.pod:293
35905 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
35909 #: ../src/guestfs.pod:295
35911 "However the fastest way to upload I<large numbers of arbitrary files> is to "
35912 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
35913 ">), then attach this using L</guestfs_add_drive_ro>. If you add the drive "
35914 "in a predictable way (eg. adding it last after all other drives) then you "
35915 "can get the device name from L</guestfs_list_devices> and mount it directly "
35916 "using L</guestfs_mount_ro>. Note that squashfs images are sometimes non-"
35917 "portable between kernel versions, and they don't support labels or UUIDs. "
35918 "If you want to pre-build an image or you need to mount it using a label or "
35919 "UUID, use an ISO image instead."
35923 #: ../src/guestfs.pod:306
35925 msgstr "КОПІЮВАННЯ"
35928 #: ../src/guestfs.pod:308
35930 "There are various different commands for copying between files and devices "
35931 "and in and out of the guest filesystem. These are summarised in the table "
35936 #: ../src/guestfs.pod:314
35937 msgid "B<file> to B<file>"
35938 msgstr "B<файл> у B<файл>"
35941 #: ../src/guestfs.pod:316
35943 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
35944 "directories recursively."
35948 #: ../src/guestfs.pod:319
35950 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
35954 #: ../src/guestfs.pod:322
35955 msgid "B<file> to B<device>"
35959 #: ../src/guestfs.pod:324
35960 msgid "B<device> to B<file>"
35964 #: ../src/guestfs.pod:326
35965 msgid "B<device> to B<device>"
35969 #: ../src/guestfs.pod:328
35971 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
35972 "guestfs_copy_device_to_device>."
35976 #: ../src/guestfs.pod:331
35977 msgid "Example: duplicate the contents of an LV:"
35981 #: ../src/guestfs.pod:333
35984 " guestfs_copy_device_to_device (g,\n"
35985 " \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
35986 " /* -1 marks the end of the list of optional parameters */\n"
35992 #: ../src/guestfs.pod:338
35994 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
35995 "(C</dev/VG/Original>). To copy less than the whole source device, use the "
35996 "optional C<size> parameter:"
36000 #: ../src/guestfs.pod:342
36003 " guestfs_copy_device_to_device (g,\n"
36004 " \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36005 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
36011 #: ../src/guestfs.pod:347
36012 msgid "B<file on the host> to B<file or device>"
36016 #: ../src/guestfs.pod:349
36017 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
36021 #: ../src/guestfs.pod:351
36022 msgid "B<file or device> to B<file on the host>"
36026 #: ../src/guestfs.pod:353
36027 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
36031 #: ../src/guestfs.pod:357
36032 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
36036 #: ../src/guestfs.pod:359
36038 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
36039 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
36040 "appears you can only upload and download to files. However many Un*x-like "
36041 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
36042 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
36043 "and arbitrary file descriptor N."
36047 #: ../src/guestfs.pod:367
36048 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
36052 #: ../src/guestfs.pod:370
36055 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36058 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36062 #: ../src/guestfs.pod:372
36063 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
36067 #: ../src/guestfs.pod:374
36070 " char devfd[64];\n"
36071 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36072 " guestfs_tar_out (g, \"/\", devfd);\n"
36075 " char devfd[64];\n"
36076 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36077 " guestfs_tar_out (g, \"/\", devfd);\n"
36081 #: ../src/guestfs.pod:378
36082 msgid "LISTING FILES"
36083 msgstr "СПИСКИ ФАЙЛІВ"
36086 #: ../src/guestfs.pod:380
36088 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
36089 "L<guestfish(1)>-equivalent command C<ll>)."
36093 #: ../src/guestfs.pod:383
36095 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
36096 "programs, as a flat list of strings."
36100 #: ../src/guestfs.pod:386
36102 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
36103 "directory, plus additional information about each one. It is more "
36104 "equivalent to using the L<readdir(3)> call on a local filesystem."
36108 #: ../src/guestfs.pod:390
36110 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
36114 #: ../src/guestfs.pod:393
36115 msgid "RUNNING COMMANDS"
36116 msgstr "ВИКОНАННЯ КОМАНД"
36119 #: ../src/guestfs.pod:395
36121 "Although libguestfs is primarily an API for manipulating files inside guest "
36122 "images, we also provide some limited facilities for running commands inside "
36127 #: ../src/guestfs.pod:399
36128 msgid "There are many limitations to this:"
36132 #: ../src/guestfs.pod:405
36134 "The kernel version that the command runs under will be different from what "
36139 #: ../src/guestfs.pod:410
36141 "If the command needs to communicate with daemons, then most likely they "
36142 "won't be running."
36146 #: ../src/guestfs.pod:415
36147 msgid "The command will be running in limited memory."
36151 #: ../src/guestfs.pod:419
36153 "The network may not be available unless you enable it (see L</"
36154 "guestfs_set_network>)."
36158 #: ../src/guestfs.pod:424
36159 msgid "Only supports Linux guests (not Windows, BSD, etc)."
36163 #: ../src/guestfs.pod:428
36165 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
36169 #: ../src/guestfs.pod:433
36171 "For SELinux guests, you may need to enable SELinux and load policy first. "
36172 "See L</SELINUX> in this manpage."
36176 #: ../src/guestfs.pod:438
36178 "I<Security:> It is not safe to run commands from untrusted, possibly "
36179 "malicious guests. These commands may attempt to exploit your program by "
36180 "sending unexpected output. They could also try to exploit the Linux kernel "
36181 "or qemu provided by the libguestfs appliance. They could use the network "
36182 "provided by the libguestfs appliance to bypass ordinary network partitions "
36183 "and firewalls. They could use the elevated privileges or different SELinux "
36184 "context of your program to their advantage."
36188 #: ../src/guestfs.pod:447
36190 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
36191 "(a script which runs when the guest next boots normally), and to have this "
36192 "script run the commands you want in the normal context of the running guest, "
36193 "network security and so on. For information about other security issues, "
36194 "see L</SECURITY>."
36198 #: ../src/guestfs.pod:455
36200 "The two main API calls to run commands are L</guestfs_command> and L</"
36201 "guestfs_sh> (there are also variations)."
36205 #: ../src/guestfs.pod:458
36207 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
36208 "shell globs, redirections, etc will work."
36212 #: ../src/guestfs.pod:461
36213 msgid "CONFIGURATION FILES"
36214 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
36217 #: ../src/guestfs.pod:463
36219 "To read and write configuration files in Linux guest filesystems, we "
36220 "strongly recommend using Augeas. For example, Augeas understands how to "
36221 "read and write, say, a Linux shadow password file or X.org configuration "
36222 "file, and so avoids you having to write that code."
36226 #: ../src/guestfs.pod:468
36228 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
36229 "document Augeas itself here because there is excellent documentation on the "
36230 "L<http://augeas.net/> website."
36234 #: ../src/guestfs.pod:472
36236 "If you don't want to use Augeas (you fool!) then try calling L</"
36237 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
36242 #: ../src/guestfs.pod:476
36247 #: ../src/guestfs.pod:478
36249 "We support SELinux guests. To ensure that labeling happens correctly in "
36250 "SELinux guests, you need to enable SELinux and load the guest's policy:"
36254 #: ../src/guestfs.pod:486
36255 msgid "Before launching, do:"
36259 #: ../src/guestfs.pod:488
36262 " guestfs_set_selinux (g, 1);\n"
36265 " guestfs_set_selinux (g, 1);\n"
36269 #: ../src/guestfs.pod:492
36271 "After mounting the guest's filesystem(s), load the policy. This is best "
36272 "done by running the L<load_policy(8)> command in the guest itself:"
36276 #: ../src/guestfs.pod:496
36279 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
36282 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
36286 #: ../src/guestfs.pod:498
36288 "(Older versions of C<load_policy> require you to specify the name of the "
36293 #: ../src/guestfs.pod:503
36295 "Optionally, set the security context for the API. The correct security "
36296 "context to use can only be known by inspecting the guest. As an example:"
36300 #: ../src/guestfs.pod:507
36303 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
36306 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
36310 #: ../src/guestfs.pod:511
36311 msgid "This will work for running commands and editing existing files."
36315 #: ../src/guestfs.pod:513
36317 "When new files are created, you may need to label them explicitly, for "
36318 "example by running the external command C<restorecon pathname>."
36322 #: ../src/guestfs.pod:517
36327 #: ../src/guestfs.pod:519
36329 "Certain calls are affected by the current file mode creation mask (the "
36330 "\"umask\"). In particular ones which create files or directories, such as "
36331 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
36332 "either the default mode that the file is created with or modifies the mode "
36337 #: ../src/guestfs.pod:525
36339 "The default umask is C<022>, so files are created with modes such as C<0644> "
36340 "and directories with C<0755>."
36344 #: ../src/guestfs.pod:528
36346 "There are two ways to avoid being affected by umask. Either set umask to 0 "
36347 "(call C<guestfs_umask (g, 0)> early after launching). Or call L</"
36348 "guestfs_chmod> after creating each file or directory."
36352 #: ../src/guestfs.pod:532
36353 msgid "For more information about umask, see L<umask(2)>."
36357 #: ../src/guestfs.pod:536
36359 "Libguestfs allows you to access Linux guests which have been encrypted using "
36360 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
36361 "standard. This includes nearly all whole disk encryption systems used by "
36362 "modern Linux guests."
36366 #: ../src/guestfs.pod:542
36368 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
36369 "returns the string C<crypto_LUKS>)."
36373 #: ../src/guestfs.pod:545
36375 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
36376 "will require the passphrase!"
36380 #: ../src/guestfs.pod:548
36382 "Opening a LUKS device creates a new device mapper device called C</dev/"
36383 "mapper/mapname> (where C<mapname> is the string you supply to L</"
36384 "guestfs_luks_open>). Reads and writes to this mapper device are decrypted "
36385 "from and encrypted to the underlying block device respectively."
36389 #: ../src/guestfs.pod:554
36391 "LVM volume groups on the device can be made visible by calling L</"
36392 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical volume"
36393 "(s) can now be mounted in the usual way."
36397 #: ../src/guestfs.pod:558
36399 "Use the reverse process to close a LUKS device. Unmount any logical volumes "
36400 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
36401 "[\"/dev/VG\"])>. Then close the mapper device by calling L</"
36402 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
36403 "underlying encrypted block device)."
36407 #: ../src/guestfs.pod:565
36412 #: ../src/guestfs.pod:567
36414 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
36415 "contains operating systems, an install CD or a live CD. (These APIs used to "
36416 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
36417 "version 1.5.3 the most frequently used part of this library has been "
36418 "rewritten in C and moved into the core code)."
36422 #: ../src/guestfs.pod:574
36424 "Add all disks belonging to the unknown virtual machine and call L</"
36425 "guestfs_launch> in the usual way."
36429 #: ../src/guestfs.pod:577
36431 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
36432 "and certain heuristics, and returns a list of operating systems that were "
36433 "found. An empty list means none were found. A single element is the root "
36434 "filesystem of the operating system. For dual- or multi-boot guests, "
36435 "multiple roots can be returned, each one corresponding to a separate "
36436 "operating system. (Multi-boot virtual machines are extremely rare in the "
36437 "world of virtualization, but since this scenario can happen, we have built "
36438 "libguestfs to deal with it.)"
36442 #: ../src/guestfs.pod:586
36444 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
36445 "to get additional details about that operating system. For example, call L</"
36446 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
36447 "Windows and Linux-based operating systems respectively."
36451 #: ../src/guestfs.pod:592
36453 "Un*x-like and Linux-based operating systems usually consist of several "
36454 "filesystems which are mounted at boot time (for example, a separate boot "
36455 "partition mounted on C</boot>). The inspection rules are able to detect how "
36456 "filesystems correspond to mount points. Call "
36457 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
36458 "hash table like this example:"
36462 #: ../src/guestfs.pod:599
36465 " /boot => /dev/sda1\n"
36466 " / => /dev/vg_guest/lv_root\n"
36467 " /usr => /dev/vg_guest/lv_usr\n"
36470 " /boot => /dev/sda1\n"
36471 " / => /dev/vg_guest/lv_root\n"
36472 " /usr => /dev/vg_guest/lv_usr\n"
36476 #: ../src/guestfs.pod:603
36478 "The caller can then make calls to L</guestfs_mount_options> to mount the "
36479 "filesystems as suggested."
36483 #: ../src/guestfs.pod:606
36485 "Be careful to mount filesystems in the right order (eg. C</> before C</"
36486 "usr>). Sorting the keys of the hash by length, shortest first, should work."
36490 #: ../src/guestfs.pod:610
36492 "Inspection currently only works for some common operating systems. "
36493 "Contributors are welcome to send patches for other operating systems that we "
36494 "currently cannot detect."
36498 #: ../src/guestfs.pod:614
36500 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
36501 "for more details. The L</guestfs_inspect_os> function just ignores any "
36502 "encrypted devices."
36506 #: ../src/guestfs.pod:618
36508 "A note on the implementation: The call L</guestfs_inspect_os> performs "
36509 "inspection and caches the results in the guest handle. Subsequent calls to "
36510 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
36511 "read the disks. If you change the content of the guest disks, you can redo "
36512 "inspection by calling L</guestfs_inspect_os> again. (L</"
36513 "guestfs_inspect_list_applications> works a little differently from the other "
36514 "calls and does read the disks. See documentation for that function for "
36519 #: ../src/guestfs.pod:627
36520 msgid "INSPECTING INSTALL DISKS"
36524 #: ../src/guestfs.pod:629
36526 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
36531 #: ../src/guestfs.pod:632
36533 "Call L</guestfs_inspect_get_format> to return the format of the operating "
36534 "system, which currently can be C<installed> (a regular operating system) or "
36535 "C<installer> (some sort of install disk)."
36539 #: ../src/guestfs.pod:636
36541 "Further information is available about the operating system that can be "
36542 "installed using the regular inspection APIs like L</"
36543 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
36547 #: ../src/guestfs.pod:641
36549 "Some additional information specific to installer disks is also available "
36550 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
36551 "guestfs_inspect_is_multipart> calls."
36555 #: ../src/guestfs.pod:646
36556 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
36560 #: ../src/guestfs.pod:648
36562 "Libguestfs can mount NTFS partitions. It does this using the L<http://www."
36563 "ntfs-3g.org/> driver."
36567 #: ../src/guestfs.pod:651
36568 msgid "DRIVE LETTERS AND PATHS"
36569 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
36572 #: ../src/guestfs.pod:653
36574 "DOS and Windows still use drive letters, and the filesystems are always "
36575 "treated as case insensitive by Windows itself, and therefore you might find "
36576 "a Windows configuration file referring to a path like C<c:\\windows"
36577 "\\system32>. When the filesystem is mounted in libguestfs, that directory "
36578 "might be referred to as C</WINDOWS/System32>."
36582 #: ../src/guestfs.pod:659
36584 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
36585 "L</guestfs_inspect_get_drive_mappings>)"
36589 #: ../src/guestfs.pod:662
36591 "Dealing with separator characters (backslash vs forward slash) is outside "
36592 "the scope of libguestfs, but usually a simple character replacement will "
36597 #: ../src/guestfs.pod:666
36599 "To resolve the case insensitivity of paths, call L</"
36600 "guestfs_case_sensitive_path>."
36604 #: ../src/guestfs.pod:669
36605 msgid "ACCESSING THE WINDOWS REGISTRY"
36606 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
36609 #: ../src/guestfs.pod:671
36611 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
36612 "files, through the library C<hivex> which is part of the libguestfs project "
36613 "although ships as a separate tarball. You have to locate and download the "
36614 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
36615 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
36616 "reg(1)> for more help on this issue."
36620 #: ../src/guestfs.pod:679
36621 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
36622 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
36625 #: ../src/guestfs.pod:681
36627 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
36628 "provide something which looks like a Linux symlink. The way it tries to do "
36629 "the rewriting is described here:"
36633 #: ../src/guestfs.pod:685
36635 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36638 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36642 #: ../src/guestfs.pod:687
36644 "The essential problem is that ntfs-3g simply does not have enough "
36645 "information to do a correct job. NTFS links can contain drive letters and "
36646 "references to external device GUIDs that ntfs-3g has no way of resolving. "
36647 "It is almost certainly the case that libguestfs callers should ignore what "
36648 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
36652 #: ../src/guestfs.pod:694
36654 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
36655 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
36656 "attribute, and read the raw reparse data from that (you can find the format "
36657 "documented in various places around the web)."
36661 #: ../src/guestfs.pod:699
36662 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
36666 #: ../src/guestfs.pod:701
36668 "There are other useful extended attributes that can be read from ntfs-3g "
36669 "filesystems (using L</guestfs_getxattr>). See:"
36673 #: ../src/guestfs.pod:704
36675 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36677 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36680 #: ../src/guestfs.pod:706
36681 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
36682 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
36685 #: ../src/guestfs.pod:708
36687 "Although we don't want to discourage you from using the C API, we will "
36688 "mention here that the same API is also available in other languages."
36692 #: ../src/guestfs.pod:711
36694 "The API is broadly identical in all supported languages. This means that "
36695 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
36696 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
36697 "OCaml. In other words, a straightforward, predictable isomorphism between "
36702 #: ../src/guestfs.pod:717
36704 "Error messages are automatically transformed into exceptions if the language "
36709 #: ../src/guestfs.pod:720
36711 "We don't try to \"object orientify\" parts of the API in OO languages, "
36712 "although contributors are welcome to write higher level APIs above what we "
36713 "provide in their favourite languages if they wish."
36717 #: ../src/guestfs.pod:726
36722 #: ../src/guestfs.pod:728
36724 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
36725 "identical to the C API. C++ classes and exceptions are not used."
36729 #: ../src/guestfs.pod:732
36734 #: ../src/guestfs.pod:734
36736 "The C# bindings are highly experimental. Please read the warnings at the "
36737 "top of C<csharp/Libguestfs.cs>."
36741 #: ../src/guestfs.pod:737
36746 #: ../src/guestfs.pod:739
36747 msgid "See L<guestfs-erlang(3)>."
36751 #: ../src/guestfs.pod:741
36753 msgstr "B<Haskell>"
36756 #: ../src/guestfs.pod:743
36758 "This is the only language binding that is working but incomplete. Only "
36759 "calls which return simple integers have been bound in Haskell, and we are "
36760 "looking for help to complete this binding."
36764 #: ../src/guestfs.pod:747
36769 #: ../src/guestfs.pod:749
36771 "Full documentation is contained in the Javadoc which is distributed with "
36772 "libguestfs. For examples, see L<guestfs-java(3)>."
36776 #: ../src/guestfs.pod:752
36781 #: ../src/guestfs.pod:754
36782 msgid "See L<guestfs-ocaml(3)>."
36783 msgstr "Див. L<guestfs-ocaml(3)>."
36786 #: ../src/guestfs.pod:756
36791 #: ../src/guestfs.pod:758
36792 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
36793 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
36796 #: ../src/guestfs.pod:760
36801 #: ../src/guestfs.pod:762
36803 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
36804 "the php-libguestfs package for your distribution."
36808 #: ../src/guestfs.pod:765
36809 msgid "The PHP binding only works correctly on 64 bit machines."
36813 #: ../src/guestfs.pod:767
36818 #: ../src/guestfs.pod:769
36819 msgid "See L<guestfs-python(3)>."
36820 msgstr "Див. L<guestfs-python(3)>."
36823 #: ../src/guestfs.pod:771
36828 #: ../src/guestfs.pod:773
36829 msgid "See L<guestfs-ruby(3)>."
36830 msgstr "Див. L<guestfs-ruby(3)>."
36833 #: ../src/guestfs.pod:775
36834 msgid "B<shell scripts>"
36835 msgstr "B<скрипти оболонки>"
36838 #: ../src/guestfs.pod:777
36839 msgid "See L<guestfish(1)>."
36840 msgstr "Див. L<guestfish(1)>."
36843 #: ../src/guestfs.pod:781
36844 msgid "LIBGUESTFS GOTCHAS"
36848 #: ../src/guestfs.pod:783
36850 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
36851 "system [...] that works in the way it is documented but is counterintuitive "
36852 "and almost invites mistakes.\""
36856 #: ../src/guestfs.pod:787
36858 "Since we developed libguestfs and the associated tools, there are several "
36859 "things we would have designed differently, but are now stuck with for "
36860 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
36861 "release, you can expect these to change. Beware of them."
36865 #: ../src/guestfs.pod:795
36866 msgid "Autosync / forgetting to sync."
36870 #: ../src/guestfs.pod:797
36872 "I<Update:> Autosync is enabled by default for all API users starting from "
36873 "libguestfs 1.5.24. This section only applies to older versions."
36877 #: ../src/guestfs.pod:800
36879 "When modifying a filesystem from C or another language, you B<must> unmount "
36880 "all filesystems and call L</guestfs_sync> explicitly before you close the "
36881 "libguestfs handle. You can also call:"
36885 #: ../src/guestfs.pod:804
36888 " guestfs_set_autosync (g, 1);\n"
36891 " guestfs_set_autosync (g, 1);\n"
36895 #: ../src/guestfs.pod:806
36897 "to have the unmount/sync done automatically for you when the handle 'g' is "
36898 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
36902 #: ../src/guestfs.pod:810
36904 "If you forget to do this, then it is entirely possible that your changes "
36905 "won't be written out, or will be partially written, or (very rarely) that "
36906 "you'll get disk corruption."
36910 #: ../src/guestfs.pod:814
36912 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
36913 "guestfish scripts that forget to sync will work just fine, which can make "
36914 "this very puzzling if you are trying to debug a problem."
36918 #: ../src/guestfs.pod:818
36919 msgid "Mount option C<-o sync> should not be the default."
36923 #: ../src/guestfs.pod:820
36925 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
36926 "libguestfs 1.13.16. This section only applies to older versions."
36930 #: ../src/guestfs.pod:823
36932 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
36933 "However C<-o sync> does not add any reliability benefit, but does have a "
36934 "very large performance impact."
36938 #: ../src/guestfs.pod:827
36940 "The work around is to use L</guestfs_mount_options> and set the mount "
36941 "options that you actually want to use."
36945 #: ../src/guestfs.pod:830
36946 msgid "Read-only should be the default."
36950 #: ../src/guestfs.pod:832
36952 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
36953 "specify I<--rw> if you want to make changes to the image."
36957 #: ../src/guestfs.pod:835
36958 msgid "This would reduce the potential to corrupt live VM images."
36962 #: ../src/guestfs.pod:837
36964 "Note that many filesystems change the disk when you just mount and unmount, "
36965 "even if you didn't perform any writes. You need to use L</"
36966 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
36970 #: ../src/guestfs.pod:841
36971 msgid "guestfish command line is hard to use."
36975 #: ../src/guestfs.pod:843
36977 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
36978 "examination). It tries to run a guestfish command C<disk.img> which doesn't "
36979 "exist, so it fails. In earlier versions of guestfish the error message was "
36980 "also unintuitive, but we have corrected this since. Like the Bourne shell, "
36981 "we should have used C<guestfish -c command> to run commands."
36985 #: ../src/guestfs.pod:850
36986 msgid "guestfish megabyte modifiers don't work right on all commands"
36990 #: ../src/guestfs.pod:852
36992 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
36993 "other modifiers). What guestfish actually does is to multiply the number "
36994 "part by the modifier part and pass the result to the C API. However this "
36995 "doesn't work for a few APIs which aren't expecting bytes, but are already "
36996 "expecting some other unit (eg. megabytes)."
37000 #: ../src/guestfs.pod:859
37001 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
37005 #: ../src/guestfs.pod:861
37008 " lvcreate LV VG 100M\n"
37011 " lvcreate LV VG 100M\n"
37015 #: ../src/guestfs.pod:863
37017 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
37018 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
37019 "megabytes * megabytes) logical volume. The error message you get from this "
37020 "is also a little obscure."
37024 #: ../src/guestfs.pod:868
37026 "This could be fixed in the generator by specially marking parameters and "
37027 "return values which take bytes or other units."
37031 #: ../src/guestfs.pod:871
37032 msgid "Ambiguity between devices and paths"
37036 #: ../src/guestfs.pod:873
37038 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
37039 "sdb2>) and a similar pathname. A file might just happen to be called "
37040 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
37044 #: ../src/guestfs.pod:878
37046 "In the current API we usually resolve this ambiguity by having two separate "
37047 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
37048 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
37049 "detecting if the path supplied begins with C</dev/>."
37053 #: ../src/guestfs.pod:884
37055 "To avoid both the ambiguity and the need to duplicate some calls, we could "
37056 "make paths/devices into structured names. One way to do this would be to "
37057 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
37058 "aspect of grub. Another way would be to use a structured type, equivalent "
37059 "to this OCaml type:"
37063 #: ../src/guestfs.pod:890
37066 " type path = Path of string | Device of int | Partition of int * int\n"
37071 #: ../src/guestfs.pod:892
37072 msgid "which would allow you to pass arguments like:"
37076 #: ../src/guestfs.pod:894
37079 " Path \"/foo/bar\"\n"
37080 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
37081 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
37082 " Path \"/dev/sdb2\" (* not a device *)\n"
37087 #: ../src/guestfs.pod:899
37089 "As you can see there are still problems to resolve even with this "
37090 "representation. Also consider how it might work in guestfish."
37094 #: ../src/guestfs.pod:904
37095 msgid "KEYS AND PASSPHRASES"
37096 msgstr "КЛЮЧІ І ПАРОЛІ"
37099 #: ../src/guestfs.pod:906
37101 "Certain libguestfs calls take a parameter that contains sensitive key "
37102 "material, passed in as a C string."
37106 #: ../src/guestfs.pod:909
37108 "In the future we would hope to change the libguestfs implementation so that "
37109 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
37110 "swap. However this is I<not> done at the moment, because of the complexity "
37111 "of such an implementation."
37115 #: ../src/guestfs.pod:914
37117 "Therefore you should be aware that any key parameter you pass to libguestfs "
37118 "might end up being written out to the swap partition. If this is a concern, "
37119 "scrub the swap partition or don't use libguestfs on encrypted devices."
37123 #: ../src/guestfs.pod:919
37124 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
37128 #: ../src/guestfs.pod:921
37130 "All high-level libguestfs actions are synchronous. If you want to use "
37131 "libguestfs asynchronously then you must create a thread."
37135 #: ../src/guestfs.pod:924
37137 "Only use the handle from a single thread. Either use the handle exclusively "
37138 "from one thread, or provide your own mutex so that two threads cannot issue "
37139 "calls on the same handle at the same time."
37143 #: ../src/guestfs.pod:928
37145 "See the graphical program guestfs-browser for one possible architecture for "
37146 "multithreaded programs using libvirt and libguestfs."
37150 #: ../src/guestfs.pod:931
37155 #: ../src/guestfs.pod:933
37157 "Libguestfs needs a supermin appliance, which it finds by looking along an "
37162 #: ../src/guestfs.pod:936
37164 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
37165 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
37169 #: ../src/guestfs.pod:939
37171 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
37172 "to change the directories that libguestfs will search in. The value is a "
37173 "colon-separated list of paths. The current directory is I<not> searched "
37174 "unless the path contains an empty element or C<.>. For example "
37175 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
37176 "then C</usr/lib/guestfs>."
37180 #: ../src/guestfs.pod:946
37181 msgid "QEMU WRAPPERS"
37185 #: ../src/guestfs.pod:948
37187 "If you want to compile your own qemu, run qemu from a non-standard location, "
37188 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
37193 #: ../src/guestfs.pod:952
37195 "There is one important rule to remember: you I<must C<exec qemu>> as the "
37196 "last command in the shell script (so that qemu replaces the shell and "
37197 "becomes the direct child of the libguestfs-using program). If you don't do "
37198 "this, then the qemu process won't be cleaned up correctly."
37202 #: ../src/guestfs.pod:957
37204 "Here is an example of a wrapper, where I have built my own copy of qemu from "
37209 #: ../src/guestfs.pod:960
37213 " qemudir=/home/rjones/d/qemu\n"
37214 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
37218 " qemudir=/home/rjones/d/qemu\n"
37219 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
37223 #: ../src/guestfs.pod:964
37225 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
37226 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
37231 #: ../src/guestfs.pod:968
37234 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
37237 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
37241 #: ../src/guestfs.pod:970
37243 "Note that libguestfs also calls qemu with the -help and -version options in "
37244 "order to determine features."
37248 #: ../src/guestfs.pod:973
37250 "Wrappers can also be used to edit the options passed to qemu. In the "
37251 "following example, the C<-machine ...> option (C<-machine> and the following "
37252 "argument) are removed from the command line and replaced with C<-machine pc,"
37253 "accel=tcg>. The while loop iterates over the options until it finds the "
37254 "right one to remove, putting the remaining options into the C<args> array."
37258 #: ../src/guestfs.pod:982
37262 " while [ $# -gt 0 ]; do\n"
37263 " case \"$1\" in\n"
37267 " args[i]=\"$1\"\n"
37276 #: ../src/guestfs.pod:994
37279 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
37284 #: ../src/guestfs.pod:996
37285 msgid "ATTACHING TO RUNNING DAEMONS"
37286 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
37289 #: ../src/guestfs.pod:998
37291 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
37292 "babies. Use with caution."
37296 #: ../src/guestfs.pod:1001
37298 "I<Note (2):> This section explains how to attach to a running daemon from a "
37299 "low level perspective. For most users, simply using virt tools such as "
37300 "L<guestfish(1)> with the I<--live> option will \"just work\"."
37304 #: ../src/guestfs.pod:1005
37305 msgid "Using guestfs_set_attach_method"
37306 msgstr "За допомогою guestfs_set_attach_method"
37309 #: ../src/guestfs.pod:1007
37311 "By calling L</guestfs_set_attach_method> you can change how the library "
37312 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
37313 "ARCHITECTURE> for some background)."
37317 #: ../src/guestfs.pod:1011
37319 "The normal attach method is C<appliance>, where a small appliance is created "
37320 "containing the daemon, and then the library connects to this."
37324 #: ../src/guestfs.pod:1014
37326 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
37327 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
37328 "daemon over the Unix domain socket."
37332 #: ../src/guestfs.pod:1018
37334 "The normal use for this is to connect to a running virtual machine that "
37335 "contains a C<guestfsd> daemon, and send commands so you can read and write "
37336 "files inside the live virtual machine."
37340 #: ../src/guestfs.pod:1022
37341 msgid "Using guestfs_add_domain with live flag"
37342 msgstr "За допомогою guestfs_add_domain з прапорцем live"
37345 #: ../src/guestfs.pod:1024
37347 "L</guestfs_add_domain> provides some help for getting the correct attach "
37348 "method. If you pass the C<live> option to this function, then (if the "
37349 "virtual machine is running) it will examine the libvirt XML looking for a "
37350 "virtio-serial channel to connect to:"
37354 #: ../src/guestfs.pod:1030
37361 " <channel type='unix'>\n"
37362 " <source mode='bind' path='/path/to/socket'/>\n"
37363 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37374 " <channel type='unix'>\n"
37375 " <source mode='bind' path='/path/to/socket'/>\n"
37376 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37384 #: ../src/guestfs.pod:1042
37386 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
37387 "method to C<unix:/path/to/socket>."
37391 #: ../src/guestfs.pod:1045
37393 "Some of the libguestfs tools (including guestfish) support a I<--live> "
37394 "option which is passed through to L</guestfs_add_domain> thus allowing you "
37395 "to attach to and modify live virtual machines."
37399 #: ../src/guestfs.pod:1049
37401 "The virtual machine needs to have been set up beforehand so that it has the "
37402 "virtio-serial channel and so that guestfsd is running inside it."
37406 #: ../src/guestfs.pod:1053
37407 msgid "ABI GUARANTEE"
37408 msgstr "ГАРАНТІЯ ЩОДО ABI"
37411 #: ../src/guestfs.pod:1055
37413 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
37414 "actions as outlined in this section. Although we will deprecate some "
37415 "actions, for example if they get replaced by newer calls, we will keep the "
37416 "old actions forever. This allows you the developer to program in confidence "
37417 "against the libguestfs API."
37421 #: ../src/guestfs.pod:1061
37422 msgid "BLOCK DEVICE NAMING"
37423 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
37426 #: ../src/guestfs.pod:1063
37428 "In the kernel there is now quite a profusion of schemata for naming block "
37429 "devices (in this context, by I<block device> I mean a physical or virtual "
37430 "hard drive). The original Linux IDE driver used names starting with C</dev/"
37431 "hd*>. SCSI devices have historically used a different naming scheme, C</dev/"
37432 "sd*>. When the Linux kernel I<libata> driver became a popular replacement "
37433 "for the old IDE driver (particularly for SATA devices) those devices also "
37434 "used the C</dev/sd*> scheme. Additionally we now have virtual machines with "
37435 "paravirtualized drivers. This has created several different naming systems, "
37436 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
37440 #: ../src/guestfs.pod:1075
37442 "As discussed above, libguestfs uses a qemu appliance running an embedded "
37443 "Linux kernel to access block devices. We can run a variety of appliances "
37444 "based on a variety of Linux kernels."
37448 #: ../src/guestfs.pod:1079
37450 "This causes a problem for libguestfs because many API calls use device or "
37451 "partition names. Working scripts and the recipe (example) scripts that we "
37452 "make available over the internet could fail if the naming scheme changes."
37456 #: ../src/guestfs.pod:1084
37458 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
37459 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
37460 "required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
37461 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
37465 #: ../src/guestfs.pod:1090
37467 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
37468 "L</guestfs_list_partitions> and similar calls return the true names of the "
37469 "devices and partitions as known to the appliance."
37473 #: ../src/guestfs.pod:1095
37474 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
37478 #: ../src/guestfs.pod:1097
37480 "Usually this translation is transparent. However in some (very rare) cases "
37481 "you may need to know the exact algorithm. Such cases include where you use "
37482 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
37483 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
37487 #: ../src/guestfs.pod:1103
37489 "The algorithm is applied only to I<parameters> which are known to be either "
37490 "device or partition names. Return values from functions such as L</"
37491 "guestfs_list_devices> are never changed."
37495 #: ../src/guestfs.pod:1111
37496 msgid "Is the string a parameter which is a device or partition name?"
37500 #: ../src/guestfs.pod:1115
37501 msgid "Does the string begin with C</dev/sd>?"
37502 msgstr "Чи починається рядок з C</dev/sd>?"
37505 #: ../src/guestfs.pod:1119
37507 "Does the named device exist? If so, we use that device. However if I<not> "
37508 "then we continue with this algorithm."
37512 #: ../src/guestfs.pod:1124
37513 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
37517 #: ../src/guestfs.pod:1126
37518 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
37522 #: ../src/guestfs.pod:1128
37523 msgid "If that named device exists, use it. If not, continue."
37527 #: ../src/guestfs.pod:1132
37528 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
37532 #: ../src/guestfs.pod:1134
37533 msgid "If that named device exists, use it. If not, return an error."
37537 #: ../src/guestfs.pod:1138
37538 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
37542 #: ../src/guestfs.pod:1140
37544 "Although the standard naming scheme and automatic translation is useful for "
37545 "simple programs and guestfish scripts, for larger programs it is best not to "
37546 "rely on this mechanism."
37550 #: ../src/guestfs.pod:1144
37552 "Where possible for maximum future portability programs using libguestfs "
37553 "should use these future-proof techniques:"
37557 #: ../src/guestfs.pod:1151
37559 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
37560 "device names, and then use those names directly."
37564 #: ../src/guestfs.pod:1154
37566 "Since those device names exist by definition, they will never be translated."
37570 #: ../src/guestfs.pod:1159
37572 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
37573 "filesystem labels."
37577 #: ../src/guestfs.pod:1166
37579 "This section discusses security implications of using libguestfs, "
37580 "particularly with untrusted or malicious guests or disk images."
37584 #: ../src/guestfs.pod:1169
37585 msgid "GENERAL SECURITY CONSIDERATIONS"
37586 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
37589 #: ../src/guestfs.pod:1171
37591 "Be careful with any files or data that you download from a guest (by "
37592 "\"download\" we mean not just the L</guestfs_download> command but any "
37593 "command that reads files, filenames, directories or anything else from a "
37594 "disk image). An attacker could manipulate the data to fool your program "
37595 "into doing the wrong thing. Consider cases such as:"
37599 #: ../src/guestfs.pod:1181
37600 msgid "the data (file etc) not being present"
37604 #: ../src/guestfs.pod:1185
37605 msgid "being present but empty"
37609 #: ../src/guestfs.pod:1189
37610 msgid "being much larger than normal"
37614 #: ../src/guestfs.pod:1193
37615 msgid "containing arbitrary 8 bit data"
37619 #: ../src/guestfs.pod:1197
37620 msgid "being in an unexpected character encoding"
37624 #: ../src/guestfs.pod:1201
37625 msgid "containing homoglyphs."
37629 #: ../src/guestfs.pod:1205
37630 msgid "SECURITY OF MOUNTING FILESYSTEMS"
37631 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
37634 #: ../src/guestfs.pod:1207
37636 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
37637 "(VFS) module can sometimes be escalated into exploits by deliberately "
37638 "creating a malicious, malformed filesystem. These exploits are very severe "
37639 "for two reasons. Firstly there are very many filesystem drivers in the "
37640 "kernel, and many of them are infrequently used and not much developer "
37641 "attention has been paid to the code. Linux userspace helps potential "
37642 "crackers by detecting the filesystem type and automatically choosing the "
37643 "right VFS driver, even if that filesystem type is obscure or unexpected for "
37644 "the administrator. Secondly, a kernel-level exploit is like a local root "
37645 "exploit (worse in some ways), giving immediate and total access to the "
37646 "system right down to the hardware level."
37650 #: ../src/guestfs.pod:1220
37652 "That explains why you should never mount a filesystem from an untrusted "
37653 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
37654 "inside a qemu virtual machine, usually running as a non-root user. The "
37655 "attacker would need to write a filesystem which first exploited the kernel, "
37656 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
37657 "the libguestfs protocol, and finally to be as serious as the host kernel "
37658 "exploit it would need to escalate its privileges to root. This multi-step "
37659 "escalation, performed by a static piece of data, is thought to be extremely "
37660 "hard to do, although we never say 'never' about security issues."
37664 #: ../src/guestfs.pod:1231
37666 "In any case callers can reduce the attack surface by forcing the filesystem "
37667 "type when mounting (use L</guestfs_mount_vfs>)."
37671 #: ../src/guestfs.pod:1234
37672 msgid "PROTOCOL SECURITY"
37673 msgstr "ЗАХИСТ ПРОТОКОЛУ"
37676 #: ../src/guestfs.pod:1236
37678 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
37679 "defined upper message size. However a program that uses libguestfs must "
37680 "also take care - for example you can write a program that downloads a binary "
37681 "from a disk image and executes it locally, and no amount of protocol "
37682 "security will save you from the consequences."
37686 #: ../src/guestfs.pod:1242
37687 msgid "INSPECTION SECURITY"
37691 #: ../src/guestfs.pod:1244
37693 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
37694 "directly from the guest, and these could contain any 8 bit data. Callers "
37695 "should be careful to escape these before printing them to a structured file "
37696 "(for example, use HTML escaping if creating a web page)."
37700 #: ../src/guestfs.pod:1250
37702 "Guest configuration may be altered in unusual ways by the administrator of "
37703 "the virtual machine, and may not reflect reality (particularly for untrusted "
37704 "or actively malicious guests). For example we parse the hostname from "
37705 "configuration files like C</etc/sysconfig/network> that we find in the "
37706 "guest, but the guest administrator can easily manipulate these files to "
37707 "provide the wrong hostname."
37711 #: ../src/guestfs.pod:1258
37713 "The inspection API parses guest configuration using two external libraries: "
37714 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
37715 "designed to be robust in the face of malicious data, although denial of "
37716 "service attacks are still possible, for example with oversized configuration "
37721 #: ../src/guestfs.pod:1264
37722 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
37723 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
37726 #: ../src/guestfs.pod:1266
37728 "Be very cautious about running commands from the guest. By running a "
37729 "command in the guest, you are giving CPU time to a binary that you do not "
37730 "control, under the same user account as the library, albeit wrapped in qemu "
37731 "virtualization. More information and alternatives can be found in the "
37732 "section L</RUNNING COMMANDS>."
37736 #: ../src/guestfs.pod:1272
37737 msgid "CVE-2010-3851"
37738 msgstr "CVE-2010-3851"
37741 #: ../src/guestfs.pod:1274
37742 msgid "https://bugzilla.redhat.com/642934"
37743 msgstr "https://bugzilla.redhat.com/642934"
37746 #: ../src/guestfs.pod:1276
37748 "This security bug concerns the automatic disk format detection that qemu "
37749 "does on disk images."
37753 #: ../src/guestfs.pod:1279
37755 "A raw disk image is just the raw bytes, there is no header. Other disk "
37756 "images like qcow2 contain a special header. Qemu deals with this by looking "
37757 "for one of the known headers, and if none is found then assuming the disk "
37758 "image must be raw."
37762 #: ../src/guestfs.pod:1284
37764 "This allows a guest which has been given a raw disk image to write some "
37765 "other header. At next boot (or when the disk image is accessed by "
37766 "libguestfs) qemu would do autodetection and think the disk image format was, "
37767 "say, qcow2 based on the header written by the guest."
37771 #: ../src/guestfs.pod:1289
37773 "This in itself would not be a problem, but qcow2 offers many features, one "
37774 "of which is to allow a disk image to refer to another image (called the "
37775 "\"backing disk\"). It does this by placing the path to the backing disk "
37776 "into the qcow2 header. This path is not validated and could point to any "
37777 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
37778 "\"holes\" in the qcow2 disk image, which of course is completely under the "
37779 "control of the attacker."
37783 #: ../src/guestfs.pod:1297
37785 "In libguestfs this is rather hard to exploit except under two circumstances:"
37789 #: ../src/guestfs.pod:1304
37790 msgid "You have enabled the network or have opened the disk in write mode."
37794 #: ../src/guestfs.pod:1308
37796 "You are also running untrusted code from the guest (see L</RUNNING "
37801 #: ../src/guestfs.pod:1313
37803 "The way to avoid this is to specify the expected disk format when adding "
37804 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
37805 "should always do this if the disk is raw format, and it's a good idea for "
37810 #: ../src/guestfs.pod:1318
37812 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
37813 "format is fetched from libvirt and passed through."
37817 #: ../src/guestfs.pod:1321
37819 "For libguestfs tools, use the I<--format> command line parameter as "
37824 #: ../src/guestfs.pod:1324
37825 msgid "CONNECTION MANAGEMENT"
37826 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
37829 #: ../src/guestfs.pod:1326
37830 msgid "guestfs_h *"
37831 msgstr "guestfs_h *"
37834 #: ../src/guestfs.pod:1328
37836 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
37837 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
37838 "handle and release all resources used."
37842 #: ../src/guestfs.pod:1332
37844 "For information on using multiple handles and threads, see the section L</"
37845 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
37849 #: ../src/guestfs.pod:1335
37850 msgid "guestfs_create"
37851 msgstr "guestfs_create"
37854 #: ../src/guestfs.pod:1337
37857 " guestfs_h *guestfs_create (void);\n"
37860 " guestfs_h *guestfs_create (void);\n"
37864 #: ../src/guestfs.pod:1339
37865 msgid "Create a connection handle."
37866 msgstr "Створити дескриптор з’єднання."
37869 #: ../src/guestfs.pod:1341
37871 "On success this returns a non-NULL pointer to a handle. On error it returns "
37876 #: ../src/guestfs.pod:1344
37878 "You have to \"configure\" the handle after creating it. This includes "
37879 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
37880 "handle at least once."
37884 #: ../src/guestfs.pod:1348
37885 msgid "After configuring the handle, you have to call L</guestfs_launch>."
37889 #: ../src/guestfs.pod:1350
37891 "You may also want to configure error handling for the handle. See the L</"
37892 "ERROR HANDLING> section below."
37896 #: ../src/guestfs.pod:1353
37897 msgid "guestfs_close"
37898 msgstr "guestfs_close"
37901 #: ../src/guestfs.pod:1355
37904 " void guestfs_close (guestfs_h *g);\n"
37907 " void guestfs_close (guestfs_h *g);\n"
37911 #: ../src/guestfs.pod:1357
37912 msgid "This closes the connection handle and frees up all resources used."
37916 #: ../src/guestfs.pod:1359
37918 "If autosync was set on the handle and the handle was launched, then this "
37919 "implicitly calls various functions to unmount filesystems and sync the "
37920 "disk. See L</guestfs_set_autosync> for more details."
37924 #: ../src/guestfs.pod:1363
37925 msgid "If a close callback was set on the handle, then it is called."
37929 #: ../src/guestfs.pod:1365
37930 msgid "ERROR HANDLING"
37931 msgstr "ОБРОБКА ПОМИЛОК"
37934 #: ../src/guestfs.pod:1367
37936 "API functions can return errors. For example, almost all functions that "
37937 "return C<int> will return C<-1> to indicate an error."
37941 #: ../src/guestfs.pod:1370
37943 "Additional information is available for errors: an error message string and "
37944 "optionally an error number (errno) if the thing that failed was a system "
37949 #: ../src/guestfs.pod:1374
37951 "You can get at the additional information about the last error on the handle "
37952 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
37953 "up an error handler with L</guestfs_set_error_handler>."
37957 #: ../src/guestfs.pod:1379
37959 "When the handle is created, a default error handler is installed which "
37960 "prints the error message string to C<stderr>. For small short-running "
37961 "command line programs it is sufficient to do:"
37965 #: ../src/guestfs.pod:1383
37968 " if (guestfs_launch (g) == -1)\n"
37969 " exit (EXIT_FAILURE);\n"
37972 " if (guestfs_launch (g) == -1)\n"
37973 " exit (EXIT_FAILURE);\n"
37977 #: ../src/guestfs.pod:1386
37979 "since the default error handler will ensure that an error message has been "
37980 "printed to C<stderr> before the program exits."
37984 #: ../src/guestfs.pod:1389
37986 "For other programs the caller will almost certainly want to install an "
37987 "alternate error handler or do error handling in-line like this:"
37991 #: ../src/guestfs.pod:1392
37994 " /* This disables the default behaviour of printing errors\n"
37996 " guestfs_set_error_handler (g, NULL, NULL);\n"
38001 #: ../src/guestfs.pod:1396
38004 " if (guestfs_launch (g) == -1) {\n"
38005 " /* Examine the error message and print it etc. */\n"
38006 " char *msg = guestfs_last_error (g);\n"
38007 " int errnum = guestfs_last_errno (g);\n"
38008 " fprintf (stderr, \"%s\", msg);\n"
38009 " if (errnum != 0)\n"
38010 " fprintf (stderr, \": %s\", strerror (errnum));\n"
38011 " fprintf (stderr, \"\\n\");\n"
38018 #: ../src/guestfs.pod:1407
38020 "Out of memory errors are handled differently. The default action is to call "
38021 "L<abort(3)>. If this is undesirable, then you can set a handler using L</"
38022 "guestfs_set_out_of_memory_handler>."
38026 #: ../src/guestfs.pod:1411
38028 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
38029 "because there is no handle if this happens there is no way to get additional "
38030 "error information. However L</guestfs_create> is supposed to be a "
38031 "lightweight operation which can only fail because of insufficient memory (it "
38032 "returns NULL in this case)."
38036 #: ../src/guestfs.pod:1417
38037 msgid "guestfs_last_error"
38038 msgstr "guestfs_last_error"
38041 #: ../src/guestfs.pod:1419
38044 " const char *guestfs_last_error (guestfs_h *g);\n"
38047 " const char *guestfs_last_error (guestfs_h *g);\n"
38051 #: ../src/guestfs.pod:1421
38053 "This returns the last error message that happened on C<g>. If there has not "
38054 "been an error since the handle was created, then this returns C<NULL>."
38058 #: ../src/guestfs.pod:1425
38060 "The lifetime of the returned string is until the next error occurs, or L</"
38061 "guestfs_close> is called."
38065 #: ../src/guestfs.pod:1428
38066 msgid "guestfs_last_errno"
38067 msgstr "guestfs_last_errno"
38070 #: ../src/guestfs.pod:1430
38073 " int guestfs_last_errno (guestfs_h *g);\n"
38076 " int guestfs_last_errno (guestfs_h *g);\n"
38080 #: ../src/guestfs.pod:1432
38081 msgid "This returns the last error number (errno) that happened on C<g>."
38085 #: ../src/guestfs.pod:1434
38086 msgid "If successful, an errno integer not equal to zero is returned."
38090 #: ../src/guestfs.pod:1436
38092 "If no error, this returns 0. This call can return 0 in three situations:"
38096 #: ../src/guestfs.pod:1443
38097 msgid "There has not been any error on the handle."
38101 #: ../src/guestfs.pod:1447
38103 "There has been an error but the errno was meaningless. This corresponds to "
38104 "the case where the error did not come from a failed system call, but for "
38105 "some other reason."
38109 #: ../src/guestfs.pod:1453
38111 "There was an error from a failed system call, but for some reason the errno "
38112 "was not captured and returned. This usually indicates a bug in libguestfs."
38116 #: ../src/guestfs.pod:1459
38118 "Libguestfs tries to convert the errno from inside the applicance into a "
38119 "corresponding errno for the caller (not entirely trivial: the appliance "
38120 "might be running a completely different operating system from the library "
38121 "and error numbers are not standardized across Un*xen). If this could not be "
38122 "done, then the error is translated to C<EINVAL>. In practice this should "
38123 "only happen in very rare circumstances."
38127 #: ../src/guestfs.pod:1467
38128 msgid "guestfs_set_error_handler"
38129 msgstr "guestfs_set_error_handler"
38132 #: ../src/guestfs.pod:1469
38135 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38137 " const char *msg);\n"
38138 " void guestfs_set_error_handler (guestfs_h *g,\n"
38139 " guestfs_error_handler_cb cb,\n"
38140 " void *opaque);\n"
38143 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38145 " const char *msg);\n"
38146 " void guestfs_set_error_handler (guestfs_h *g,\n"
38147 " guestfs_error_handler_cb cb,\n"
38148 " void *opaque);\n"
38152 #: ../src/guestfs.pod:1476
38154 "The callback C<cb> will be called if there is an error. The parameters "
38155 "passed to the callback are an opaque data pointer and the error message "
38160 #: ../src/guestfs.pod:1480
38162 "C<errno> is not passed to the callback. To get that the callback must call "
38163 "L</guestfs_last_errno>."
38167 #: ../src/guestfs.pod:1483
38169 "Note that the message string C<msg> is freed as soon as the callback "
38170 "function returns, so if you want to stash it somewhere you must make your "
38175 #: ../src/guestfs.pod:1487
38176 msgid "The default handler prints messages on C<stderr>."
38180 #: ../src/guestfs.pod:1489
38181 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
38185 #: ../src/guestfs.pod:1491
38186 msgid "guestfs_get_error_handler"
38187 msgstr "guestfs_get_error_handler"
38190 #: ../src/guestfs.pod:1493
38193 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38194 " void **opaque_rtn);\n"
38197 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38198 " void **opaque_rtn);\n"
38202 #: ../src/guestfs.pod:1496
38203 msgid "Returns the current error handler callback."
38207 #: ../src/guestfs.pod:1498
38208 msgid "guestfs_set_out_of_memory_handler"
38209 msgstr "guestfs_set_out_of_memory_handler"
38212 #: ../src/guestfs.pod:1500
38215 " typedef void (*guestfs_abort_cb) (void);\n"
38216 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
38217 " guestfs_abort_cb);\n"
38222 #: ../src/guestfs.pod:1504
38224 "The callback C<cb> will be called if there is an out of memory situation. "
38225 "I<Note this callback must not return>."
38229 #: ../src/guestfs.pod:1507
38230 msgid "The default is to call L<abort(3)>."
38234 #: ../src/guestfs.pod:1509
38236 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
38240 #: ../src/guestfs.pod:1512
38241 msgid "guestfs_get_out_of_memory_handler"
38242 msgstr "guestfs_get_out_of_memory_handler"
38245 #: ../src/guestfs.pod:1514
38248 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
38251 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
38255 #: ../src/guestfs.pod:1516
38256 msgid "This returns the current out of memory handler."
38260 #: ../src/guestfs.pod:1518
38262 msgstr "ВИКЛИКИ API"
38265 #: ../src/guestfs.pod:1522
38270 #: ../src/guestfs.pod:1524
38275 #: ../src/guestfs.pod:1526
38276 msgid "AVAILABILITY"
38277 msgstr "ДОСТУПНІСТЬ"
38280 #: ../src/guestfs.pod:1528
38281 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
38282 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
38285 #: ../src/guestfs.pod:1530
38287 "Using L</guestfs_available> you can test availability of the following "
38288 "groups of functions. This test queries the appliance to see if the "
38289 "appliance you are currently using supports the functionality."
38293 #: ../src/guestfs.pod:1535
38294 msgid "@AVAILABILITY@"
38295 msgstr "@AVAILABILITY@"
38298 #: ../src/guestfs.pod:1537
38299 msgid "GUESTFISH supported COMMAND"
38303 #: ../src/guestfs.pod:1539
38305 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
38306 "prints out the available groups and whether they are supported by this build "
38307 "of libguestfs. Note however that you have to do C<run> first."
38311 #: ../src/guestfs.pod:1544
38312 msgid "SINGLE CALLS AT COMPILE TIME"
38316 #: ../src/guestfs.pod:1546
38318 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
38319 "function, such as:"
38323 #: ../src/guestfs.pod:1549
38326 " #define LIBGUESTFS_HAVE_DD 1\n"
38329 " #define LIBGUESTFS_HAVE_DD 1\n"
38333 #: ../src/guestfs.pod:1551
38334 msgid "if L</guestfs_dd> is available."
38338 #: ../src/guestfs.pod:1553
38340 "Before version 1.5.8, if you needed to test whether a single libguestfs "
38341 "function is available at compile time, we recommended using build tools such "
38342 "as autoconf or cmake. For example in autotools you could use:"
38346 #: ../src/guestfs.pod:1558
38349 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
38350 " AC_CHECK_FUNCS([guestfs_dd])\n"
38353 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
38354 " AC_CHECK_FUNCS([guestfs_dd])\n"
38358 #: ../src/guestfs.pod:1561
38360 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
38365 #: ../src/guestfs.pod:1564
38366 msgid "SINGLE CALLS AT RUN TIME"
38370 #: ../src/guestfs.pod:1566
38372 "Testing at compile time doesn't guarantee that a function really exists in "
38373 "the library. The reason is that you might be dynamically linked against a "
38374 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
38375 "This situation unfortunately results in a segmentation fault, which is a "
38376 "shortcoming of the C dynamic linking system itself."
38380 #: ../src/guestfs.pod:1573
38382 "You can use L<dlopen(3)> to test if a function is available at run time, as "
38383 "in this example program (note that you still need the compile time check as "
38388 #: ../src/guestfs.pod:1577
38391 " #include <stdio.h>\n"
38392 " #include <stdlib.h>\n"
38393 " #include <unistd.h>\n"
38394 " #include <dlfcn.h>\n"
38395 " #include <guestfs.h>\n"
38398 " #include <stdio.h>\n"
38399 " #include <stdlib.h>\n"
38400 " #include <unistd.h>\n"
38401 " #include <dlfcn.h>\n"
38402 " #include <guestfs.h>\n"
38406 #: ../src/guestfs.pod:1583
38411 " #ifdef LIBGUESTFS_HAVE_DD\n"
38413 " int has_function;\n"
38418 " #ifdef LIBGUESTFS_HAVE_DD\n"
38420 " int has_function;\n"
38424 #: ../src/guestfs.pod:1589
38427 " /* Test if the function guestfs_dd is really available. */\n"
38428 " dl = dlopen (NULL, RTLD_LAZY);\n"
38430 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
38431 " exit (EXIT_FAILURE);\n"
38433 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
38439 #: ../src/guestfs.pod:1598
38442 " if (!has_function)\n"
38443 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
38445 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
38446 " /* Now it's safe to call\n"
38447 " guestfs_dd (g, \"foo\", \"bar\");\n"
38451 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
38458 #: ../src/guestfs.pod:1611
38460 "You may think the above is an awful lot of hassle, and it is. There are "
38461 "other ways outside of the C linking system to ensure that this kind of "
38462 "incompatibility never arises, such as using package versioning:"
38466 #: ../src/guestfs.pod:1616
38469 " Requires: libguestfs >= 1.0.80\n"
38474 #: ../src/guestfs.pod:1618
38475 msgid "CALLS WITH OPTIONAL ARGUMENTS"
38479 #: ../src/guestfs.pod:1620
38481 "A recent feature of the API is the introduction of calls which take optional "
38482 "arguments. In C these are declared 3 ways. The main way is as a call which "
38483 "takes variable arguments (ie. C<...>), as in this example:"
38487 #: ../src/guestfs.pod:1625
38490 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38493 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38497 #: ../src/guestfs.pod:1627
38499 "Call this with a list of optional arguments, terminated by C<-1>. So to "
38500 "call with no optional arguments specified:"
38504 #: ../src/guestfs.pod:1630
38507 " guestfs_add_drive_opts (g, filename, -1);\n"
38510 " guestfs_add_drive_opts (g, filename, -1);\n"
38514 #: ../src/guestfs.pod:1632
38515 msgid "With a single optional argument:"
38519 #: ../src/guestfs.pod:1634
38522 " guestfs_add_drive_opts (g, filename,\n"
38523 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38527 " guestfs_add_drive_opts (g, filename,\n"
38528 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38533 #: ../src/guestfs.pod:1638
38538 #: ../src/guestfs.pod:1640
38541 " guestfs_add_drive_opts (g, filename,\n"
38542 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38543 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38547 " guestfs_add_drive_opts (g, filename,\n"
38548 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38549 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38554 #: ../src/guestfs.pod:1645
38556 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
38561 #: ../src/guestfs.pod:1648
38562 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
38566 #: ../src/guestfs.pod:1650
38568 "The second variant has the same name with the suffix C<_va>, which works the "
38569 "same way but takes a C<va_list>. See the C manual for details. For the "
38570 "example function, this is declared:"
38574 #: ../src/guestfs.pod:1654
38577 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38578 " va_list args);\n"
38581 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38582 " va_list args);\n"
38586 #: ../src/guestfs.pod:1657
38587 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
38591 #: ../src/guestfs.pod:1659
38593 "The third variant is useful where you need to construct these calls. You "
38594 "pass in a structure where you fill in the optional fields. The structure "
38595 "has a bitmask as the first element which you must set to indicate which "
38596 "fields you have filled in. For our example function the structure and call "
38601 #: ../src/guestfs.pod:1665
38604 " struct guestfs_add_drive_opts_argv {\n"
38605 " uint64_t bitmask;\n"
38607 " const char *format;\n"
38610 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38611 " const struct guestfs_add_drive_opts_argv *optargs);\n"
38614 " struct guestfs_add_drive_opts_argv {\n"
38615 " uint64_t bitmask;\n"
38617 " const char *format;\n"
38620 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38621 " const struct guestfs_add_drive_opts_argv *optargs);\n"
38625 #: ../src/guestfs.pod:1674
38626 msgid "You could call it like this:"
38630 #: ../src/guestfs.pod:1676
38633 " struct guestfs_add_drive_opts_argv optargs = {\n"
38634 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38635 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38636 " .readonly = 1,\n"
38637 " .format = \"qcow2\"\n"
38641 " struct guestfs_add_drive_opts_argv optargs = {\n"
38642 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38643 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38644 " .readonly = 1,\n"
38645 " .format = \"qcow2\"\n"
38650 #: ../src/guestfs.pod:1683
38653 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38656 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38660 #: ../src/guestfs.pod:1691
38661 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
38665 #: ../src/guestfs.pod:1696
38666 msgid "You do not need to fill in all fields of the structure."
38670 #: ../src/guestfs.pod:1700
38672 "There must be a one-to-one correspondence between fields of the structure "
38673 "that are filled in, and bits set in the bitmask."
38677 #: ../src/guestfs.pod:1705
38678 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
38682 #: ../src/guestfs.pod:1707
38684 "In other languages, optional arguments are expressed in the way that is "
38685 "natural for that language. We refer you to the language-specific "
38686 "documentation for more details on that."
38690 #: ../src/guestfs.pod:1711
38691 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
38695 #: ../src/guestfs.pod:1713
38696 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
38700 #: ../src/guestfs.pod:1715
38702 "B<Note:> This section documents the generic event mechanism introduced in "
38703 "libguestfs 1.10, which you should use in new code if possible. The old "
38704 "functions C<guestfs_set_log_message_callback>, "
38705 "C<guestfs_set_subprocess_quit_callback>, "
38706 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
38707 "C<guestfs_set_progress_callback> are no longer documented in this manual "
38708 "page. Because of the ABI guarantee, the old functions continue to work."
38712 #: ../src/guestfs.pod:1724
38714 "Handles generate events when certain things happen, such as log messages "
38715 "being generated, progress messages during long-running operations, or the "
38716 "handle being closed. The API calls described below let you register a "
38717 "callback to be called when events happen. You can register multiple "
38718 "callbacks (for the same, different or overlapping sets of events), and "
38719 "individually remove callbacks. If callbacks are not removed, then they "
38720 "remain in force until the handle is closed."
38724 #: ../src/guestfs.pod:1732
38726 "In the current implementation, events are only generated synchronously: that "
38727 "means that events (and hence callbacks) can only happen while you are in the "
38728 "middle of making another libguestfs call. The callback is called in the "
38733 #: ../src/guestfs.pod:1737
38735 "Events may contain a payload, usually nothing (void), an array of 64 bit "
38736 "unsigned integers, or a message buffer. Payloads are discussed later on."
38740 #: ../src/guestfs.pod:1741
38741 msgid "CLASSES OF EVENTS"
38745 #: ../src/guestfs.pod:1745
38746 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
38750 #: ../src/guestfs.pod:1748
38752 "The callback function will be called while the handle is being closed "
38753 "(synchronously from L</guestfs_close>)."
38757 #: ../src/guestfs.pod:1751
38759 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
38760 "handles that are open when the program exits. This means that this callback "
38761 "might be called indirectly from L<exit(3)>, which can cause unexpected "
38762 "problems in higher-level languages (eg. if your HLL interpreter has already "
38763 "been cleaned up by the time this is called, and if your callback then jumps "
38764 "into some HLL function)."
38768 #: ../src/guestfs.pod:1758
38770 "If no callback is registered: the handle is closed without any callback "
38775 #: ../src/guestfs.pod:1761
38776 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
38780 #: ../src/guestfs.pod:1764
38782 "The callback function will be called when the child process quits, either "
38783 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
38784 "corresponds to a transition from any state to the CONFIG state)."
38788 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
38789 msgid "If no callback is registered: the event is ignored."
38793 #: ../src/guestfs.pod:1770
38794 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
38798 #: ../src/guestfs.pod:1773
38800 "The callback function will be called when the child process becomes ready "
38801 "first time after it has been launched. (This corresponds to a transition "
38802 "from LAUNCHING to the READY state)."
38806 #: ../src/guestfs.pod:1779
38807 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
38811 #: ../src/guestfs.pod:1782
38813 "Some long-running operations can generate progress messages. If this "
38814 "callback is registered, then it will be called each time a progress message "
38815 "is generated (usually two seconds after the operation started, and three "
38816 "times per second thereafter until it completes, although the frequency may "
38817 "change in future versions)."
38821 #: ../src/guestfs.pod:1788
38823 "The callback receives in the payload four unsigned 64 bit numbers which are "
38824 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
38828 #: ../src/guestfs.pod:1791
38830 "The units of C<total> are not defined, although for some operations C<total> "
38831 "may relate in some way to the amount of data to be transferred (eg. in bytes "
38832 "or megabytes), and C<position> may be the portion which has been transferred."
38836 #: ../src/guestfs.pod:1796
38837 msgid "The only defined and stable parts of the API are:"
38841 #: ../src/guestfs.pod:1802
38843 "The callback can display to the user some type of progress bar or indicator "
38844 "which shows the ratio of C<position>:C<total>."
38848 #: ../src/guestfs.pod:1807
38849 msgid "0 E<lt>= C<position> E<lt>= C<total>"
38853 #: ../src/guestfs.pod:1811
38855 "If any progress notification is sent during a call, then a final progress "
38856 "notification is always sent when C<position> = C<total> (I<unless> the call "
38857 "fails with an error)."
38861 #: ../src/guestfs.pod:1815
38863 "This is to simplify caller code, so callers can easily set the progress "
38864 "indicator to \"100%\" at the end of the operation, without requiring special "
38865 "code to detect this case."
38869 #: ../src/guestfs.pod:1821
38871 "For some calls we are unable to estimate the progress of the call, but we "
38872 "can still generate progress messages to indicate activity. This is known as "
38873 "\"pulse mode\", and is directly supported by certain progress bar "
38874 "implementations (eg. GtkProgressBar)."
38878 #: ../src/guestfs.pod:1826
38880 "For these calls, zero or more progress messages are generated with "
38881 "C<position = 0> and C<total = 1>, followed by a final message with "
38882 "C<position = total = 1>."
38886 #: ../src/guestfs.pod:1830
38888 "As noted above, if the call fails with an error then the final message may "
38889 "not be generated."
38893 #: ../src/guestfs.pod:1835
38895 "The callback also receives the procedure number (C<proc_nr>) and serial "
38896 "number (C<serial>) of the call. These are only useful for debugging "
38897 "protocol issues, and the callback can normally ignore them. The callback "
38898 "may want to print these numbers in error messages or debugging messages."
38902 #: ../src/guestfs.pod:1841
38903 msgid "If no callback is registered: progress messages are discarded."
38907 #: ../src/guestfs.pod:1843
38908 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
38912 #: ../src/guestfs.pod:1846
38914 "The callback function is called whenever a log message is generated by qemu, "
38915 "the appliance kernel, guestfsd (daemon), or utility programs."
38919 #: ../src/guestfs.pod:1849
38921 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
38922 "guestfs_launch>) then additional debug messages are generated."
38926 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
38928 "If no callback is registered: the messages are discarded unless the verbose "
38929 "flag is set in which case they are sent to stderr. You can override the "
38930 "printing of verbose messages to stderr by setting up a callback."
38934 #: ../src/guestfs.pod:1857
38935 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
38939 #: ../src/guestfs.pod:1860
38941 "The callback function is called whenever a log message is generated by the "
38942 "library part of libguestfs."
38946 #: ../src/guestfs.pod:1863
38948 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
38949 "messages are generated."
38953 #: ../src/guestfs.pod:1871
38954 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
38958 #: ../src/guestfs.pod:1874
38960 "The callback function is called whenever a trace message is generated. This "
38961 "only applies if the trace flag (L</guestfs_set_trace>) is set."
38965 #: ../src/guestfs.pod:1877
38967 "If no callback is registered: the messages are sent to stderr. You can "
38968 "override the printing of trace messages to stderr by setting up a callback."
38972 #: ../src/guestfs.pod:1881
38973 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
38977 #: ../src/guestfs.pod:1884
38979 "The callback function is called whenever a libguestfs function is entered."
38983 #: ../src/guestfs.pod:1887
38985 "The payload is a string which contains the name of the function that we are "
38986 "entering (not including C<guestfs_> prefix)."
38990 #: ../src/guestfs.pod:1890
38992 "Note that libguestfs functions can call themselves, so you may see many "
38993 "events from a single call. A few libguestfs functions do not generate this "
38998 #: ../src/guestfs.pod:1898
38999 msgid "guestfs_set_event_callback"
39003 #: ../src/guestfs.pod:1900
39006 " int guestfs_set_event_callback (guestfs_h *g,\n"
39007 " guestfs_event_callback cb,\n"
39008 " uint64_t event_bitmask,\n"
39010 " void *opaque);\n"
39015 #: ../src/guestfs.pod:1906
39017 "This function registers a callback (C<cb>) for all event classes in the "
39018 "C<event_bitmask>."
39022 #: ../src/guestfs.pod:1909
39024 "For example, to register for all log message events, you could call this "
39025 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. "
39026 "To register a single callback for all possible classes of events, use "
39027 "C<GUESTFS_EVENT_ALL>."
39031 #: ../src/guestfs.pod:1915
39032 msgid "C<flags> should always be passed as 0."
39036 #: ../src/guestfs.pod:1917
39038 "C<opaque> is an opaque pointer which is passed to the callback. You can use "
39039 "it for any purpose."
39043 #: ../src/guestfs.pod:1920
39045 "The return value is the event handle (an integer) which you can use to "
39046 "delete the callback (see below)."
39050 #: ../src/guestfs.pod:1923
39052 "If there is an error, this function returns C<-1>, and sets the error in the "
39053 "handle in the usual way (see L</guestfs_last_error> etc.)"
39057 #: ../src/guestfs.pod:1926
39059 "Callbacks remain in effect until they are deleted, or until the handle is "
39064 #: ../src/guestfs.pod:1929
39066 "In the case where multiple callbacks are registered for a particular event "
39067 "class, all of the callbacks are called. The order in which multiple "
39068 "callbacks are called is not defined."
39072 #: ../src/guestfs.pod:1933
39073 msgid "guestfs_delete_event_callback"
39077 #: ../src/guestfs.pod:1935
39080 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
39085 #: ../src/guestfs.pod:1937
39087 "Delete a callback that was previously registered. C<event_handle> should be "
39088 "the integer that was returned by a previous call to "
39089 "C<guestfs_set_event_callback> on the same handle."
39093 #: ../src/guestfs.pod:1941
39094 msgid "guestfs_event_callback"
39098 #: ../src/guestfs.pod:1943
39101 " typedef void (*guestfs_event_callback) (\n"
39104 " uint64_t event,\n"
39105 " int event_handle,\n"
39107 " const char *buf, size_t buf_len,\n"
39108 " const uint64_t *array, size_t array_len);\n"
39113 #: ../src/guestfs.pod:1952
39115 "This is the type of the event callback function that you have to provide."
39119 #: ../src/guestfs.pod:1955
39121 "The basic parameters are: the handle (C<g>), the opaque user pointer "
39122 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
39123 "handle, and C<flags> which in the current API you should ignore."
39127 #: ../src/guestfs.pod:1959
39129 "The remaining parameters contain the event payload (if any). Each event may "
39130 "contain a payload, which usually relates to the event class, but for future "
39131 "proofing your code should be written to handle any payload for any event "
39136 #: ../src/guestfs.pod:1964
39138 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
39139 "there is no message buffer). Note that this message buffer can contain "
39140 "arbitrary 8 bit data, including NUL bytes."
39144 #: ../src/guestfs.pod:1968
39146 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
39147 "moment this is only used for progress messages."
39151 #: ../src/guestfs.pod:1971
39152 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
39156 #: ../src/guestfs.pod:1973
39158 "One motivation for the generic event API was to allow GUI programs to "
39159 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
39160 "unconditionally to C<stderr>."
39164 #: ../src/guestfs.pod:1977
39166 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
39167 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
39168 "messages are not events; you must capture error messages separately)."
39172 #: ../src/guestfs.pod:1982
39174 "Programs have to set up a callback to capture the classes of events of "
39179 #: ../src/guestfs.pod:1985
39183 " guestfs_set_event_callback\n"
39184 " (g, message_callback,\n"
39185 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
39186 " GUESTFS_EVENT_TRACE,\n"
39187 " 0, NULL) == -1)\n"
39188 " if (eh == -1) {\n"
39189 " // handle error in the usual way\n"
39195 #: ../src/guestfs.pod:1995
39197 "The callback can then direct messages to the appropriate place. In this "
39198 "example, messages are directed to syslog:"
39202 #: ../src/guestfs.pod:1998
39206 " message_callback (\n"
39209 " uint64_t event,\n"
39210 " int event_handle,\n"
39212 " const char *buf, size_t buf_len,\n"
39213 " const uint64_t *array, size_t array_len)\n"
39215 " const int priority = LOG_USER|LOG_INFO;\n"
39216 " if (buf_len > 0)\n"
39217 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
39223 #: ../src/guestfs.pod:2013
39224 msgid "CANCELLING LONG TRANSFERS"
39228 #: ../src/guestfs.pod:2015
39230 "Some operations can be cancelled by the caller while they are in progress. "
39231 "Currently only operations that involve uploading or downloading data can be "
39232 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
39233 "parameters in the generator)."
39237 #: ../src/guestfs.pod:2020
39238 msgid "guestfs_user_cancel"
39242 #: ../src/guestfs.pod:2022
39245 " void guestfs_user_cancel (guestfs_h *g);\n"
39250 #: ../src/guestfs.pod:2024
39252 "C<guestfs_user_cancel> cancels the current upload or download operation."
39256 #: ../src/guestfs.pod:2027
39258 "Unlike most other libguestfs calls, this function is signal safe and thread "
39259 "safe. You can call it from a signal handler or from another thread, without "
39260 "needing to do any locking."
39264 #: ../src/guestfs.pod:2031
39266 "The transfer that was in progress (if there is one) will stop shortly "
39267 "afterwards, and will return an error. The errno (see L</"
39268 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
39269 "out if the operation was cancelled or failed because of another error."
39273 #: ../src/guestfs.pod:2037
39275 "No cleanup is performed: for example, if a file was being uploaded then "
39276 "after cancellation there may be a partially uploaded file. It is the "
39277 "caller's responsibility to clean up if necessary."
39281 #: ../src/guestfs.pod:2041
39282 msgid "There are two common places that you might call C<guestfs_user_cancel>."
39286 #: ../src/guestfs.pod:2043
39288 "In an interactive text-based program, you might call it from a C<SIGINT> "
39289 "signal handler so that pressing C<^C> cancels the current operation. (You "
39290 "also need to call L</guestfs_set_pgroup> so that child processes don't "
39291 "receive the C<^C> signal)."
39295 #: ../src/guestfs.pod:2048
39297 "In a graphical program, when the main thread is displaying a progress bar "
39298 "with a cancel button, wire up the cancel button to call this function."
39302 #: ../src/guestfs.pod:2052
39303 msgid "PRIVATE DATA AREA"
39307 #: ../src/guestfs.pod:2054
39309 "You can attach named pieces of private data to the libguestfs handle, fetch "
39310 "them by name, and walk over them, for the lifetime of the handle. This is "
39311 "called the private data area and is only available from the C API."
39315 #: ../src/guestfs.pod:2059
39316 msgid "To attach a named piece of data, use the following call:"
39320 #: ../src/guestfs.pod:2061
39323 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
39326 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
39330 #: ../src/guestfs.pod:2063
39332 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
39333 "pointer (which can be C<NULL>). Any previous item with the same key is "
39338 #: ../src/guestfs.pod:2067
39340 "You can use any C<key> you want, but your key should I<not> start with an "
39341 "underscore character. Keys beginning with an underscore character are "
39342 "reserved for internal libguestfs purposes (eg. for implementing language "
39343 "bindings). It is recommended that you prefix the key with some unique "
39344 "string to avoid collisions with other users."
39348 #: ../src/guestfs.pod:2073
39349 msgid "To retrieve the pointer, use:"
39353 #: ../src/guestfs.pod:2075
39356 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39359 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39363 #: ../src/guestfs.pod:2077
39365 "This function returns C<NULL> if either no data is found associated with "
39366 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
39371 #: ../src/guestfs.pod:2081
39373 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
39374 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
39375 "all. In particular, libguestfs does I<not> try to free the data when the "
39376 "handle is closed. If the data must be freed, then the caller must either "
39377 "free it before calling L</guestfs_close> or must set up a close callback to "
39378 "do it (see L</GUESTFS_EVENT_CLOSE>)."
39382 #: ../src/guestfs.pod:2088
39383 msgid "To walk over all entries, use these two functions:"
39387 #: ../src/guestfs.pod:2090
39390 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
39395 #: ../src/guestfs.pod:2092
39398 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
39403 #: ../src/guestfs.pod:2094
39405 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
39406 "not have any particular meaning -- keys are not returned in any defined "
39407 "order). A pointer to the key is returned in C<*key_rtn> and the "
39408 "corresponding data pointer is returned from the function. C<NULL> is "
39409 "returned if there are no keys stored in the handle."
39413 #: ../src/guestfs.pod:2100
39415 "C<guestfs_next_private> returns the next key, pointer pair. The return "
39416 "value of this function is also C<NULL> is there are no further entries to "
39421 #: ../src/guestfs.pod:2104
39422 msgid "Notes about walking over entries:"
39426 #: ../src/guestfs.pod:2110
39428 "You must not call C<guestfs_set_private> while walking over the entries."
39432 #: ../src/guestfs.pod:2115
39434 "The handle maintains an internal iterator which is reset when you call "
39435 "C<guestfs_first_private>. This internal iterator is invalidated when you "
39436 "call C<guestfs_set_private>."
39440 #: ../src/guestfs.pod:2121
39441 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
39445 #: ../src/guestfs.pod:2123
39448 " guestfs_set_private (g, key, NULL);\n"
39453 #: ../src/guestfs.pod:2125
39454 msgid "then that C<key> is not returned when walking."
39458 #: ../src/guestfs.pod:2129
39460 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
39461 "C<guestfs_next_private> or C<guestfs_set_private>."
39465 #: ../src/guestfs.pod:2135
39467 "The following example code shows how to print all keys and data pointers "
39468 "that are associated with the handle C<g>:"
39472 #: ../src/guestfs.pod:2138
39475 " const char *key;\n"
39476 " void *data = guestfs_first_private (g, &key);\n"
39477 " while (data != NULL)\n"
39479 " printf (\"key = %s, data = %p\\n\", key, data);\n"
39480 " data = guestfs_next_private (g, &key);\n"
39486 #: ../src/guestfs.pod:2146
39488 "More commonly you are only interested in keys that begin with an application-"
39489 "specific prefix C<foo_>. Modify the loop like so:"
39493 #: ../src/guestfs.pod:2149
39496 " const char *key;\n"
39497 " void *data = guestfs_first_private (g, &key);\n"
39498 " while (data != NULL)\n"
39500 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39501 " printf (\"key = %s, data = %p\\n\", key, data);\n"
39502 " data = guestfs_next_private (g, &key);\n"
39508 #: ../src/guestfs.pod:2158
39510 "If you need to modify keys while walking, then you have to jump back to the "
39511 "beginning of the loop. For example, to delete all keys prefixed with "
39516 #: ../src/guestfs.pod:2162
39519 " const char *key;\n"
39522 " data = guestfs_first_private (g, &key);\n"
39523 " while (data != NULL)\n"
39525 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39527 " guestfs_set_private (g, key, NULL);\n"
39528 " /* note that 'key' pointer is now invalid, and so is\n"
39529 " the internal iterator */\n"
39532 " data = guestfs_next_private (g, &key);\n"
39538 #: ../src/guestfs.pod:2178
39540 "Note that the above loop is guaranteed to terminate because the keys are "
39541 "being deleted, but other manipulations of keys within the loop might not "
39542 "terminate unless you also maintain an indication of which keys have been "
39547 #: ../src/guestfs.pod:2183
39552 #: ../src/guestfs.pod:2185
39554 "The libguestfs C library can be probed using systemtap or DTrace. This is "
39555 "true of any library, not just libguestfs. However libguestfs also contains "
39556 "static markers to help in probing internal operations."
39560 #: ../src/guestfs.pod:2189
39561 msgid "You can list all the static markers by doing:"
39565 #: ../src/guestfs.pod:2191
39568 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
39569 " .provider(\"guestfs\").mark(\"*\")'\n"
39574 #: ../src/guestfs.pod:2194
39576 "B<Note:> These static markers are I<not> part of the stable API and may "
39577 "change in future versions."
39581 #: ../src/guestfs.pod:2197
39582 msgid "SYSTEMTAP SCRIPT EXAMPLE"
39586 #: ../src/guestfs.pod:2199
39588 "This script contains examples of displaying both the static markers and some "
39589 "ordinary C entry points:"
39593 #: ../src/guestfs.pod:2202
39601 #: ../src/guestfs.pod:2204
39604 " function display_time () {\n"
39605 " now = gettimeofday_us ();\n"
39608 " delta = now - last;\n"
39614 #: ../src/guestfs.pod:2211
39617 " printf (\"%d (+%d):\", now, delta);\n"
39623 #: ../src/guestfs.pod:2214
39628 " printf (\"ready\\n\");\n"
39634 #: ../src/guestfs.pod:2219
39637 " /* Display all calls to static markers. */\n"
39638 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39639 " .provider(\"guestfs\").mark(\"*\") ? {\n"
39640 " display_time();\n"
39641 " printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
39647 #: ../src/guestfs.pod:2226
39650 " /* Display all calls to guestfs_mkfs* functions. */\n"
39651 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39652 " .function(\"guestfs_mkfs*\") ? {\n"
39653 " display_time();\n"
39654 " printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
39660 #: ../src/guestfs.pod:2233
39662 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
39663 "program. Note that you either have to be root, or you have to add yourself "
39664 "to several special stap groups. Consult the systemtap documentation for "
39665 "more information."
39669 #: ../src/guestfs.pod:2238
39672 " # stap /tmp/test.stap\n"
39678 #: ../src/guestfs.pod:2241
39679 msgid "In another terminal, run a guestfish command such as this:"
39683 #: ../src/guestfs.pod:2245
39684 msgid "In the first terminal, stap trace output similar to this is shown:"
39688 #: ../src/guestfs.pod:2247
39691 " 1318248056692655 (+0):\tlaunch_start\n"
39692 " 1318248056692850 (+195): launch_build_appliance_start\n"
39693 " 1318248056818285 (+125435): launch_build_appliance_end\n"
39694 " 1318248056838059 (+19774): launch_run_qemu\n"
39695 " 1318248061071167 (+4233108): launch_end\n"
39696 " 1318248061280324 (+209157): guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
39701 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
39706 #: ../src/guestfs.pod:2256
39708 "<!-- old anchor for the next section --> <a name="
39709 "\"state_machine_and_low_level_event_api\"/>"
39711 "<!-- old anchor for the next section --> <a name="
39712 "\"state_machine_and_low_level_event_api\"/>"
39715 #: ../src/guestfs.pod:2261
39716 msgid "ARCHITECTURE"
39717 msgstr "АРХІТЕКТУРА"
39720 #: ../src/guestfs.pod:2263
39722 "Internally, libguestfs is implemented by running an appliance (a special "
39723 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
39724 "process of the main program."
39728 #: ../src/guestfs.pod:2267
39731 " ___________________\n"
39733 " | main program |\n"
39735 " | | child process / appliance\n"
39736 " | | __________________________\n"
39738 " +-------------------+ RPC | +-----------------+ |\n"
39739 " | libguestfs <--------------------> guestfsd | |\n"
39740 " | | | +-----------------+ |\n"
39741 " \\___________________/ | | Linux kernel | |\n"
39742 " | +--^--------------+ |\n"
39743 " \\_________|________________/\n"
39745 " _______v______\n"
39748 " | disk image |\n"
39749 " \\______________/\n"
39754 #: ../src/guestfs.pod:2287
39756 "The library, linked to the main program, creates the child process and hence "
39757 "the appliance in the L</guestfs_launch> function."
39761 #: ../src/guestfs.pod:2290
39763 "Inside the appliance is a Linux kernel and a complete stack of userspace "
39764 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
39765 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
39766 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
39767 "API calls and RPC calls to the daemon. Lastly the disk image(s) are "
39768 "attached to the qemu process which translates device access by the "
39769 "appliance's Linux kernel into accesses to the image."
39773 #: ../src/guestfs.pod:2299
39775 "A common misunderstanding is that the appliance \"is\" the virtual machine. "
39776 "Although the disk image you are attached to might also be used by some "
39777 "virtual machine, libguestfs doesn't know or care about this. (But you will "
39778 "care if both libguestfs's qemu process and your virtual machine are trying "
39779 "to update the disk image at the same time, since these usually results in "
39780 "massive disk corruption)."
39784 #: ../src/guestfs.pod:2306
39785 msgid "STATE MACHINE"
39786 msgstr "СКІНЧЕННИЙ АВТОМАТ"
39789 #: ../src/guestfs.pod:2308
39790 msgid "libguestfs uses a state machine to model the child process:"
39794 #: ../src/guestfs.pod:2310
39798 " guestfs_create\n"
39806 " / | \\ \\ guestfs_launch\n"
39807 " / | _\\__V______\n"
39809 " / | | LAUNCHING |\n"
39810 " / | \\___________/\n"
39812 " / | guestfs_launch\n"
39814 " ______ / __|____V\n"
39815 " / \\ ------> / \\\n"
39816 " | BUSY | | READY |\n"
39817 " \\______/ <------ \\________/\n"
39822 #: ../src/guestfs.pod:2332
39824 "The normal transitions are (1) CONFIG (when the handle is created, but there "
39825 "is no child process), (2) LAUNCHING (when the child process is booting up), "
39826 "(3) alternating between READY and BUSY as commands are issued to, and "
39827 "carried out by, the child process."
39831 #: ../src/guestfs.pod:2337
39833 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
39834 "asynchronously at any time (eg. due to some internal error), and that causes "
39835 "the state to transition back to CONFIG."
39839 #: ../src/guestfs.pod:2341
39841 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
39842 "issued when in the CONFIG state."
39846 #: ../src/guestfs.pod:2344
39848 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
39849 "L</guestfs_launch> blocks until the child process is READY to accept "
39850 "commands (or until some failure or timeout). L</guestfs_launch> internally "
39851 "moves the state from CONFIG to LAUNCHING while it is running."
39855 #: ../src/guestfs.pod:2350
39857 "API actions such as L</guestfs_mount> can only be issued when in the READY "
39858 "state. These API calls block waiting for the command to be carried out (ie. "
39859 "the state to transition to BUSY and then back to READY). There are no non-"
39860 "blocking versions, and no way to issue more than one command per handle at "
39865 #: ../src/guestfs.pod:2356
39867 "Finally, the child process sends asynchronous messages back to the main "
39868 "program, such as kernel log messages. You can register a callback to "
39869 "receive these messages."
39873 #: ../src/guestfs.pod:2360
39878 #: ../src/guestfs.pod:2362
39879 msgid "APPLIANCE BOOT PROCESS"
39883 #: ../src/guestfs.pod:2364
39885 "This process has evolved and continues to evolve. The description here "
39886 "corresponds only to the current version of libguestfs and is provided for "
39887 "information only."
39891 #: ../src/guestfs.pod:2368
39893 "In order to follow the stages involved below, enable libguestfs debugging "
39894 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
39898 #: ../src/guestfs.pod:2373
39899 msgid "Create the appliance"
39903 #: ../src/guestfs.pod:2375
39905 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
39906 "initrd and the appliance."
39910 #: ../src/guestfs.pod:2378
39912 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
39913 "directory if C<TMPDIR> is set)."
39917 #: ../src/guestfs.pod:2381
39919 "For a complete description of how the appliance is created and cached, read "
39920 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
39924 #: ../src/guestfs.pod:2385
39925 msgid "Start qemu and boot the kernel"
39929 #: ../src/guestfs.pod:2387
39930 msgid "qemu is invoked to boot the kernel."
39934 #: ../src/guestfs.pod:2389
39935 msgid "Run the initrd"
39939 #: ../src/guestfs.pod:2391
39941 "C<febootstrap-supermin-helper> builds a small initrd. The initrd is not the "
39942 "appliance. The purpose of the initrd is to load enough kernel modules in "
39943 "order that the appliance itself can be mounted and started."
39947 #: ../src/guestfs.pod:2395
39949 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
39954 #: ../src/guestfs.pod:2398
39956 "When the initrd has started you will see messages showing that kernel "
39957 "modules are being loaded, similar to this:"
39961 #: ../src/guestfs.pod:2401
39964 " febootstrap: ext2 mini initrd starting up\n"
39965 " febootstrap: mounting /sys\n"
39966 " febootstrap: internal insmod libcrc32c.ko\n"
39967 " febootstrap: internal insmod crc32c-intel.ko\n"
39972 #: ../src/guestfs.pod:2406
39973 msgid "Find and mount the appliance device"
39977 #: ../src/guestfs.pod:2408
39979 "The appliance is a sparse file containing an ext2 filesystem which contains "
39980 "a familiar (although reduced in size) Linux operating system. It would "
39981 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
39985 #: ../src/guestfs.pod:2412
39987 "The regular disks being inspected by libguestfs are the first devices "
39988 "exposed by qemu (eg. as C</dev/vda>)."
39992 #: ../src/guestfs.pod:2415
39994 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
39995 "there was only one regular disk)."
39999 #: ../src/guestfs.pod:2418
40001 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
40002 "and switch root into the appliance, and run C</init> from the appliance."
40006 #: ../src/guestfs.pod:2422
40007 msgid "If this works successfully you will see messages such as:"
40011 #: ../src/guestfs.pod:2424
40014 " febootstrap: picked /sys/block/vdb/dev as root device\n"
40015 " febootstrap: creating /dev/root as block special 252:16\n"
40016 " febootstrap: mounting new root on /root\n"
40017 " febootstrap: chroot\n"
40018 " Starting /init script ...\n"
40023 #: ../src/guestfs.pod:2430
40025 "Note that C<Starting /init script ...> indicates that the appliance's init "
40026 "script is now running."
40030 #: ../src/guestfs.pod:2433
40031 msgid "Initialize the appliance"
40035 #: ../src/guestfs.pod:2435
40037 "The appliance itself now initializes itself. This involves starting certain "
40038 "processes like C<udev>, possibly printing some debug information, and "
40039 "finally running the daemon (C<guestfsd>)."
40043 #: ../src/guestfs.pod:2439
40048 #: ../src/guestfs.pod:2441
40050 "Finally the daemon (C<guestfsd>) runs inside the appliance. If it runs you "
40055 #: ../src/guestfs.pod:2444
40058 " verbose daemon enabled\n"
40063 #: ../src/guestfs.pod:2446
40065 "The daemon expects to see a named virtio-serial port exposed by qemu and "
40066 "connected on the other end to the library."
40070 #: ../src/guestfs.pod:2449
40072 "The daemon connects to this port (and hence to the library) and sends a four "
40073 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
40074 "protocol (see below)."
40078 #: ../src/guestfs.pod:2455
40079 msgid "COMMUNICATION PROTOCOL"
40083 #: ../src/guestfs.pod:2457
40085 "Don't rely on using this protocol directly. This section documents how it "
40086 "currently works, but it may change at any time."
40090 #: ../src/guestfs.pod:2460
40092 "The protocol used to talk between the library and the daemon running inside "
40093 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
40094 "1014, RFC 1832, RFC 4506)."
40098 #: ../src/guestfs.pod:2464
40100 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
40101 "this file is automatically generated)."
40105 #: ../src/guestfs.pod:2467
40107 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
40108 "and C<FileOut> parameters, which are handled with very simple request/reply "
40109 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
40110 "parameters, which use the same request and reply messages, but they may also "
40111 "be followed by files sent using a chunked encoding."
40115 #: ../src/guestfs.pod:2474
40116 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
40120 #: ../src/guestfs.pod:2476
40121 msgid "For ordinary functions, the request message is:"
40125 #: ../src/guestfs.pod:2478
40128 " total length (header + arguments,\n"
40129 " but not including the length word itself)\n"
40130 " struct guestfs_message_header (encoded as XDR)\n"
40131 " struct guestfs_<foo>_args (encoded as XDR)\n"
40136 #: ../src/guestfs.pod:2483
40138 "The total length field allows the daemon to allocate a fixed size buffer "
40139 "into which it slurps the rest of the message. As a result, the total length "
40140 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
40141 "effective size of any request is limited to somewhere under this size."
40145 #: ../src/guestfs.pod:2489
40147 "Note also that many functions don't take any arguments, in which case the "
40148 "C<guestfs_I<foo>_args> is completely omitted."
40152 #: ../src/guestfs.pod:2492
40154 "The header contains the procedure number (C<guestfs_proc>) which is how the "
40155 "receiver knows what type of args structure to expect, or none at all."
40159 #: ../src/guestfs.pod:2496
40161 "For functions that take optional arguments, the optional arguments are "
40162 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
40163 "arguments. A bitmask in the header indicates which optional arguments are "
40164 "meaningful. The bitmask is also checked to see if it contains bits set "
40165 "which the daemon does not know about (eg. if more optional arguments were "
40166 "added in a later version of the library), and this causes the call to be "
40171 #: ../src/guestfs.pod:2504
40172 msgid "The reply message for ordinary functions is:"
40176 #: ../src/guestfs.pod:2506
40179 " total length (header + ret,\n"
40180 " but not including the length word itself)\n"
40181 " struct guestfs_message_header (encoded as XDR)\n"
40182 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40187 #: ../src/guestfs.pod:2511
40189 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
40190 "functions that return no formal return values."
40194 #: ../src/guestfs.pod:2514
40196 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
40200 #: ../src/guestfs.pod:2517
40202 "In the case of an error, a flag is set in the header, and the reply message "
40203 "is slightly changed:"
40207 #: ../src/guestfs.pod:2520
40210 " total length (header + error,\n"
40211 " but not including the length word itself)\n"
40212 " struct guestfs_message_header (encoded as XDR)\n"
40213 " struct guestfs_message_error (encoded as XDR)\n"
40218 #: ../src/guestfs.pod:2525
40220 "The C<guestfs_message_error> structure contains the error message as a "
40225 #: ../src/guestfs.pod:2528
40226 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
40230 #: ../src/guestfs.pod:2530
40232 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
40233 "The normal request message is sent (see above). However this is followed by "
40234 "a sequence of file chunks."
40238 #: ../src/guestfs.pod:2534
40241 " total length (header + arguments,\n"
40242 " but not including the length word itself,\n"
40243 " and not including the chunks)\n"
40244 " struct guestfs_message_header (encoded as XDR)\n"
40245 " struct guestfs_<foo>_args (encoded as XDR)\n"
40246 " sequence of chunks for FileIn param #0\n"
40247 " sequence of chunks for FileIn param #1 etc.\n"
40252 #: ../src/guestfs.pod:2542
40253 msgid "The \"sequence of chunks\" is:"
40257 #: ../src/guestfs.pod:2544
40260 " length of chunk (not including length word itself)\n"
40261 " struct guestfs_chunk (encoded as XDR)\n"
40262 " length of chunk\n"
40263 " struct guestfs_chunk (encoded as XDR)\n"
40265 " length of chunk\n"
40266 " struct guestfs_chunk (with data.data_len == 0)\n"
40271 #: ../src/guestfs.pod:2552
40273 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
40274 "is set in the final chunk to indicate either successful completion or early "
40279 #: ../src/guestfs.pod:2556
40281 "At time of writing there are no functions that have more than one FileIn "
40282 "parameter. However this is (theoretically) supported, by sending the "
40283 "sequence of chunks for each FileIn parameter one after another (from left to "
40288 #: ../src/guestfs.pod:2561
40290 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
40291 "transfer. The library does this by sending a chunk with a special flag set "
40292 "to indicate cancellation. When the daemon sees this, it cancels the whole "
40293 "RPC, does I<not> send any reply, and goes back to reading the next request."
40297 #: ../src/guestfs.pod:2567
40299 "The daemon may also cancel. It does this by writing a special word "
40300 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
40301 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
40302 "cancel chunk). The special word is chosen so that even if cancellation "
40303 "happens right at the end of the transfer (after the library has finished "
40304 "writing and has started listening for the reply), the \"spurious\" cancel "
40305 "flag will not be confused with the reply message."
40309 #: ../src/guestfs.pod:2576
40311 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
40312 "limit), and also files where the size is not known in advance (eg. from "
40313 "pipes or sockets). However the chunks are rather small "
40314 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
40315 "to keep much in memory."
40319 #: ../src/guestfs.pod:2582
40320 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
40324 #: ../src/guestfs.pod:2584
40326 "The protocol for FileOut parameters is exactly the same as for FileIn "
40327 "parameters, but with the roles of daemon and library reversed."
40331 #: ../src/guestfs.pod:2587
40334 " total length (header + ret,\n"
40335 " but not including the length word itself,\n"
40336 " and not including the chunks)\n"
40337 " struct guestfs_message_header (encoded as XDR)\n"
40338 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40339 " sequence of chunks for FileOut param #0\n"
40340 " sequence of chunks for FileOut param #1 etc.\n"
40345 #: ../src/guestfs.pod:2595
40346 msgid "INITIAL MESSAGE"
40350 #: ../src/guestfs.pod:2597
40352 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
40353 "which indicates that the guest and daemon is alive. This is what L</"
40354 "guestfs_launch> waits for."
40358 #: ../src/guestfs.pod:2601
40359 msgid "PROGRESS NOTIFICATION MESSAGES"
40363 #: ../src/guestfs.pod:2603
40365 "The daemon may send progress notification messages at any time. These are "
40366 "distinguished by the normal length word being replaced by "
40367 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
40371 #: ../src/guestfs.pod:2607
40373 "The library turns them into progress callbacks (see L</"
40374 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
40379 #: ../src/guestfs.pod:2611
40381 "The daemon self-limits the frequency of progress messages it sends (see "
40382 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
40387 #: ../src/guestfs.pod:2615
40388 msgid "LIBGUESTFS VERSION NUMBERS"
40392 #: ../src/guestfs.pod:2617
40394 "Since April 2010, libguestfs has started to make separate development and "
40395 "stable releases, along with corresponding branches in our git repository. "
40396 "These separate releases can be identified by version number:"
40400 #: ../src/guestfs.pod:2622
40403 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
40404 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
40410 " | `-------- sub-version\n"
40412 " `------ always '1' because we don't change the ABI\n"
40417 #: ../src/guestfs.pod:2633
40418 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
40422 #: ../src/guestfs.pod:2635
40424 "As time passes we cherry pick fixes from the development branch and backport "
40425 "those into the stable branch, the effect being that the stable branch should "
40426 "get more stable and less buggy over time. So the stable releases are ideal "
40427 "for people who don't need new features but would just like the software to "
40432 #: ../src/guestfs.pod:2641
40433 msgid "Our criteria for backporting changes are:"
40437 #: ../src/guestfs.pod:2647
40439 "Documentation changes which don't affect any code are backported unless the "
40440 "documentation refers to a future feature which is not in stable."
40444 #: ../src/guestfs.pod:2653
40446 "Bug fixes which are not controversial, fix obvious problems, and have been "
40447 "well tested are backported."
40451 #: ../src/guestfs.pod:2658
40453 "Simple rearrangements of code which shouldn't affect how it works get "
40454 "backported. This is so that the code in the two branches doesn't get too "
40455 "far out of step, allowing us to backport future fixes more easily."
40459 #: ../src/guestfs.pod:2664
40461 "We I<don't> backport new features, new APIs, new tools etc, except in one "
40462 "exceptional case: the new feature is required in order to implement an "
40463 "important bug fix."
40467 #: ../src/guestfs.pod:2670
40469 "A new stable branch starts when we think the new features in development are "
40470 "substantial and compelling enough over the current stable branch to warrant "
40471 "it. When that happens we create new stable and development versions 1.N.0 "
40472 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
40473 "stable at this point, but by backporting fixes from development, that branch "
40474 "will stabilize over time."
40478 #: ../src/guestfs.pod:2678
40479 msgid "EXTENDING LIBGUESTFS"
40483 #: ../src/guestfs.pod:2680
40484 msgid "ADDING A NEW API ACTION"
40488 #: ../src/guestfs.pod:2682
40490 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
40491 "documentation) are generated, and this makes it easy to extend the "
40496 #: ../src/guestfs.pod:2686
40497 msgid "To add a new API action there are two changes:"
40501 #: ../src/guestfs.pod:2692
40503 "You need to add a description of the call (name, parameters, return type, "
40504 "tests, documentation) to C<generator/generator_actions.ml>."
40508 #: ../src/guestfs.pod:2695
40510 "There are two sorts of API action, depending on whether the call goes "
40511 "through to the daemon in the appliance, or is serviced entirely by the "
40512 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
40513 "former, since the sync is done in the appliance. L</guestfs_set_trace> is "
40514 "an example of the latter, since a trace flag is maintained in the handle and "
40515 "all tracing is done on the library side."
40519 #: ../src/guestfs.pod:2703
40521 "Most new actions are of the first type, and get added to the "
40522 "C<daemon_functions> list. Each function has a unique procedure number used "
40523 "in the RPC protocol which is assigned to that action when we publish "
40524 "libguestfs and cannot be reused. Take the latest procedure number and "
40529 #: ../src/guestfs.pod:2709
40531 "For library-only actions of the second type, add to the "
40532 "C<non_daemon_functions> list. Since these functions are serviced by the "
40533 "library and do not travel over the RPC mechanism to the daemon, these "
40534 "functions do not need a procedure number, and so the procedure number is set "
40539 #: ../src/guestfs.pod:2717
40540 msgid "Implement the action (in C):"
40544 #: ../src/guestfs.pod:2719
40546 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
40547 "C<daemon/> directory."
40551 #: ../src/guestfs.pod:2722
40553 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
40554 "(note: double underscore) in the C<src/> directory."
40558 #: ../src/guestfs.pod:2725
40559 msgid "In either case, use another function as an example of what to do."
40563 #: ../src/guestfs.pod:2729
40564 msgid "After making these changes, use C<make> to compile."
40568 #: ../src/guestfs.pod:2731
40570 "Note that you don't need to implement the RPC, language bindings, manual "
40571 "pages or anything else. It's all automatically generated from the OCaml "
40576 #: ../src/guestfs.pod:2735
40577 msgid "ADDING TESTS FOR AN API ACTION"
40581 #: ../src/guestfs.pod:2737
40583 "You can supply zero or as many tests as you want per API call. The tests "
40584 "can either be added as part of the API description (C<generator/"
40585 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
40586 "into C<regressions/>. Note that adding a script to C<regressions/> is "
40587 "slower, so if possible use the first method."
40591 #: ../src/guestfs.pod:2743
40593 "The following describes the test environment used when you add an API test "
40594 "in C<generator_actions.ml>."
40598 #: ../src/guestfs.pod:2746
40599 msgid "The test environment has 4 block devices:"
40603 #: ../src/guestfs.pod:2750
40604 msgid "C</dev/sda> 500MB"
40605 msgstr "C</dev/sda> 500 МБ"
40608 #: ../src/guestfs.pod:2752
40609 msgid "General block device for testing."
40613 #: ../src/guestfs.pod:2754
40614 msgid "C</dev/sdb> 50MB"
40615 msgstr "C</dev/sdb> 50 МБ"
40618 #: ../src/guestfs.pod:2756
40620 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
40625 #: ../src/guestfs.pod:2759
40626 msgid "C</dev/sdc> 10MB"
40627 msgstr "C</dev/sdc> 10 МБ"
40630 #: ../src/guestfs.pod:2761
40631 msgid "Used in a few tests where two block devices are needed."
40635 #: ../src/guestfs.pod:2763
40636 msgid "C</dev/sdd>"
40637 msgstr "C</dev/sdd>"
40640 #: ../src/guestfs.pod:2765
40641 msgid "ISO with fixed content (see C<images/test.iso>)."
40645 #: ../src/guestfs.pod:2769
40647 "To be able to run the tests in a reasonable amount of time, the libguestfs "
40648 "appliance and block devices are reused between tests. So don't try testing "
40649 "L</guestfs_kill_subprocess> :-x"
40653 #: ../src/guestfs.pod:2773
40655 "Each test starts with an initial scenario, selected using one of the "
40656 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
40657 "initialize the disks mentioned above in a particular way as documented in "
40658 "C<generator_types.ml>. You should not assume anything about the previous "
40659 "contents of other disks that are not initialized."
40663 #: ../src/guestfs.pod:2779
40665 "You can add a prerequisite clause to any individual test. This is a run-"
40666 "time check, which, if it fails, causes the test to be skipped. Useful if "
40667 "testing a command which might not work on all variations of libguestfs "
40668 "builds. A test that has prerequisite of C<Always> means to run "
40673 #: ../src/guestfs.pod:2785
40675 "In addition, packagers can skip individual tests by setting environment "
40676 "variables before running C<make check>."
40680 #: ../src/guestfs.pod:2788
40683 " SKIP_TEST_<CMD>_<NUM>=1\n"
40688 #: ../src/guestfs.pod:2790
40689 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
40693 #: ../src/guestfs.pod:2792
40698 #: ../src/guestfs.pod:2794
40701 " SKIP_TEST_<CMD>=1\n"
40706 #: ../src/guestfs.pod:2796
40707 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
40711 #: ../src/guestfs.pod:2798
40712 msgid "Packagers can run only certain tests by setting for example:"
40716 #: ../src/guestfs.pod:2800
40719 " TEST_ONLY=\"vfs_type zerofree\"\n"
40724 #: ../src/guestfs.pod:2802
40726 "See C<capitests/tests.c> for more details of how these environment variables "
40731 #: ../src/guestfs.pod:2805
40732 msgid "DEBUGGING NEW API ACTIONS"
40736 #: ../src/guestfs.pod:2807
40737 msgid "Test new actions work before submitting them."
40741 #: ../src/guestfs.pod:2809
40742 msgid "You can use guestfish to try out new commands."
40746 #: ../src/guestfs.pod:2811
40748 "Debugging the daemon is a problem because it runs inside a minimal "
40749 "environment. However you can fprintf messages in the daemon to stderr, and "
40750 "they will show up if you use C<guestfish -v>."
40754 #: ../src/guestfs.pod:2815
40755 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
40759 #: ../src/guestfs.pod:2817
40761 "Our C source code generally adheres to some basic code-formatting "
40762 "conventions. The existing code base is not totally consistent on this "
40763 "front, but we do prefer that contributed code be formatted similarly. In "
40764 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
40765 "indentation level, and other than that, follow the K&R style."
40769 #: ../src/guestfs.pod:2823
40771 "If you use Emacs, add the following to one of one of your start-up files (e."
40772 "g., ~/.emacs), to help ensure that you get indentation right:"
40776 #: ../src/guestfs.pod:2826
40779 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
40780 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
40781 " (add-hook 'find-file-hook\n"
40782 " '(lambda () (if (and buffer-file-name\n"
40783 " (string-match \"/libguestfs\\\\>\"\n"
40784 " (buffer-file-name))\n"
40785 " (not (string-equal mode-name \"Change Log\"))\n"
40786 " (not (string-equal mode-name \"Makefile\")))\n"
40787 " (setq indent-tabs-mode nil))))\n"
40792 #: ../src/guestfs.pod:2836
40795 " ;;; When editing C sources in libguestfs, use this style.\n"
40796 " (defun libguestfs-c-mode ()\n"
40797 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
40799 " (c-set-style \"K&R\")\n"
40800 " (setq c-indent-level 2)\n"
40801 " (setq c-basic-offset 2))\n"
40802 " (add-hook 'c-mode-hook\n"
40803 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
40804 " (buffer-file-name))\n"
40805 " (libguestfs-c-mode))))\n"
40810 #: ../src/guestfs.pod:2848
40811 msgid "Enable warnings when compiling (and fix any problems this finds):"
40815 #: ../src/guestfs.pod:2851
40818 " ./configure --enable-gcc-warnings\n"
40821 " ./configure --enable-gcc-warnings\n"
40825 #: ../src/guestfs.pod:2853
40826 msgid "Useful targets are:"
40830 #: ../src/guestfs.pod:2855
40833 " make syntax-check # checks the syntax of the C code\n"
40834 " make check # runs the test suite\n"
40839 #: ../src/guestfs.pod:2858
40840 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
40844 #: ../src/guestfs.pod:2860
40846 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
40847 "which are used to do shell quoting."
40851 #: ../src/guestfs.pod:2865
40856 #: ../src/guestfs.pod:2867
40858 "Simple shell quoted string. Any spaces or other shell characters are "
40863 #: ../src/guestfs.pod:2870
40868 #: ../src/guestfs.pod:2872
40870 "Same as C<%Q> except the string is treated as a path which is prefixed by "
40875 #: ../src/guestfs.pod:2879
40878 " asprintf (&cmd, \"cat %R\", path);\n"
40881 " asprintf (&cmd, \"cat %R\", path);\n"
40885 #: ../src/guestfs.pod:2881
40886 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
40890 #: ../src/guestfs.pod:2883
40892 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
40893 "{,r,v,rv}()> functions. These parameters do NOT need to be quoted because "
40894 "they are not passed via the shell (instead, straight to exec). You probably "
40895 "want to use the C<sysroot_path()> function however."
40899 #: ../src/guestfs.pod:2889
40900 msgid "SUBMITTING YOUR NEW API ACTIONS"
40904 #: ../src/guestfs.pod:2891
40906 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
40907 "libguestfs> and CC to L<rjones@redhat.com>."
40911 #: ../src/guestfs.pod:2895
40912 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
40916 #: ../src/guestfs.pod:2897
40917 msgid "We support i18n (gettext anyhow) in the library."
40921 #: ../src/guestfs.pod:2899
40923 "However many messages come from the daemon, and we don't translate those at "
40924 "the moment. One reason is that the appliance generally has all locale files "
40925 "removed from it, because they take up a lot of space. So we'd have to readd "
40926 "some of those, as well as copying our PO files into the appliance."
40930 #: ../src/guestfs.pod:2905
40932 "Debugging messages are never translated, since they are intended for the "
40937 #: ../src/guestfs.pod:2908
40938 msgid "SOURCE CODE SUBDIRECTORIES"
40942 #: ../src/guestfs.pod:2912
40947 #: ../src/guestfs.pod:2914
40948 msgid "L<virt-alignment-scan(1)> command and documentation."
40952 #: ../src/guestfs.pod:2918
40953 msgid "The libguestfs appliance, build scripts and so on."
40957 #: ../src/guestfs.pod:2920
40958 msgid "C<capitests>"
40959 msgstr "C<capitests>"
40962 #: ../src/guestfs.pod:2922
40963 msgid "Automated tests of the C API."
40967 #: ../src/guestfs.pod:2924
40972 #: ../src/guestfs.pod:2926
40974 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
40979 #: ../src/guestfs.pod:2929
40981 msgstr "C<caution>"
40984 #: ../src/guestfs.pod:2931
40986 "Safety and liveness tests of components that libguestfs depends upon (not of "
40987 "libguestfs itself). Mainly this is for qemu and the kernel."
40991 #: ../src/guestfs.pod:2934
40996 #: ../src/guestfs.pod:2936
40998 "Tools for cloning virtual machines. Currently contains L<virt-sysprep(1)> "
40999 "command and documentation."
41003 #: ../src/guestfs.pod:2939
41005 msgstr "C<contrib>"
41008 #: ../src/guestfs.pod:2941
41009 msgid "Outside contributions, experimental parts."
41013 #: ../src/guestfs.pod:2943
41018 #: ../src/guestfs.pod:2945
41020 "The daemon that runs inside the libguestfs appliance and carries out actions."
41024 #: ../src/guestfs.pod:2948
41029 #: ../src/guestfs.pod:2950
41030 msgid "L<virt-df(1)> command and documentation."
41034 #: ../src/guestfs.pod:2952
41039 #: ../src/guestfs.pod:2954
41040 msgid "L<virt-edit(1)> command and documentation."
41044 #: ../src/guestfs.pod:2956
41045 msgid "C<examples>"
41046 msgstr "C<examples>"
41049 #: ../src/guestfs.pod:2958
41050 msgid "C API example code."
41051 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
41054 #: ../src/guestfs.pod:2960
41059 #: ../src/guestfs.pod:2962
41061 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
41062 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41063 "L<virt-tar-out(1)>."
41067 #: ../src/guestfs.pod:2966
41072 #: ../src/guestfs.pod:2968
41074 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
41078 #: ../src/guestfs.pod:2970
41079 msgid "C<generator>"
41080 msgstr "C<generator>"
41083 #: ../src/guestfs.pod:2972
41085 "The crucially important generator, used to automatically generate large "
41086 "amounts of boilerplate C code for things like RPC and bindings."
41090 #: ../src/guestfs.pod:2975
41095 #: ../src/guestfs.pod:2977
41096 msgid "Files used by the test suite."
41100 #: ../src/guestfs.pod:2979
41101 msgid "Some \"phony\" guest images which we test against."
41105 #: ../src/guestfs.pod:2981
41106 msgid "C<inspector>"
41107 msgstr "C<inspector>"
41110 #: ../src/guestfs.pod:2983
41111 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
41115 #: ../src/guestfs.pod:2985
41120 #: ../src/guestfs.pod:2987
41121 msgid "Logo used on the website. The fish is called Arthur by the way."
41125 #: ../src/guestfs.pod:2989
41130 #: ../src/guestfs.pod:2991
41131 msgid "M4 macros used by autoconf."
41135 #: ../src/guestfs.pod:2993
41140 #: ../src/guestfs.pod:2995
41141 msgid "Translations of simple gettext strings."
41142 msgstr "Переклади простих рядків gettext."
41145 #: ../src/guestfs.pod:2997
41147 msgstr "C<po-docs>"
41150 #: ../src/guestfs.pod:2999
41152 "The build infrastructure and PO files for translations of manpages and POD "
41153 "files. Eventually this will be combined with the C<po> directory, but that "
41154 "is rather complicated."
41158 #: ../src/guestfs.pod:3003
41159 msgid "C<regressions>"
41160 msgstr "C<regressions>"
41163 #: ../src/guestfs.pod:3005
41164 msgid "Regression tests."
41165 msgstr "Тести на регресії."
41168 #: ../src/guestfs.pod:3007
41173 #: ../src/guestfs.pod:3009
41174 msgid "L<virt-rescue(1)> command and documentation."
41178 #: ../src/guestfs.pod:3011
41183 #: ../src/guestfs.pod:3013
41184 msgid "L<virt-resize(1)> command and documentation."
41188 #: ../src/guestfs.pod:3015
41189 msgid "C<sparsify>"
41193 #: ../src/guestfs.pod:3017
41194 msgid "L<virt-sparsify(1)> command and documentation."
41198 #: ../src/guestfs.pod:3019
41203 #: ../src/guestfs.pod:3021
41204 msgid "Source code to the C library."
41208 #: ../src/guestfs.pod:3023
41213 #: ../src/guestfs.pod:3025
41215 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
41219 #: ../src/guestfs.pod:3027
41220 msgid "C<test-tool>"
41221 msgstr "C<test-tool>"
41224 #: ../src/guestfs.pod:3029
41226 "Test tool for end users to test if their qemu/kernel combination will work "
41231 #: ../src/guestfs.pod:3032
41236 #: ../src/guestfs.pod:3034
41241 #: ../src/guestfs.pod:3036
41243 msgstr "C<haskell>"
41246 #: ../src/guestfs.pod:3038
41251 #: ../src/guestfs.pod:3040
41256 #: ../src/guestfs.pod:3042
41261 #: ../src/guestfs.pod:3044
41266 #: ../src/guestfs.pod:3046
41271 #: ../src/guestfs.pod:3048
41276 #: ../src/guestfs.pod:3050
41277 msgid "Language bindings."
41278 msgstr "Прив’язки до мов програмування."
41281 #: ../src/guestfs.pod:3054
41282 msgid "MAKING A STABLE RELEASE"
41286 #: ../src/guestfs.pod:3056
41288 "When we make a stable release, there are several steps documented here. See "
41289 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
41294 #: ../src/guestfs.pod:3064
41296 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
41300 #: ../src/guestfs.pod:3069
41301 msgid "Finalize RELEASE-NOTES."
41305 #: ../src/guestfs.pod:3073
41306 msgid "Update ROADMAP."
41310 #: ../src/guestfs.pod:3077
41311 msgid "Run C<src/api-support/update-from-tarballs.sh>."
41315 #: ../src/guestfs.pod:3081
41316 msgid "Push and pull from Transifex."
41320 #: ../src/guestfs.pod:3083
41325 #: ../src/guestfs.pod:3085
41333 #: ../src/guestfs.pod:3087
41334 msgid "to push the latest POT files to Transifex. Then run:"
41338 #: ../src/guestfs.pod:3089
41346 #: ../src/guestfs.pod:3091
41347 msgid "which is a wrapper to pull the latest translated C<*.po> files."
41351 #: ../src/guestfs.pod:3095
41353 "Create new stable and development directories under L<http://libguestfs.org/"
41358 #: ../src/guestfs.pod:3100
41359 msgid "Create the branch in git:"
41363 #: ../src/guestfs.pod:3102
41366 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
41367 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
41368 " git branch stable-1.XX\n"
41369 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
41374 #: ../src/guestfs.pod:3109
41379 #: ../src/guestfs.pod:3111
41380 msgid "PROTOCOL LIMITS"
41381 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
41384 #: ../src/guestfs.pod:3113
41386 "Internally libguestfs uses a message-based protocol to pass API calls and "
41387 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
41388 "plenty more detail about this). The maximum message size used by the "
41389 "protocol is slightly less than 4 MB. For some API calls you may need to be "
41390 "aware of this limit. The API calls which may be affected are individually "
41391 "documented, with a link back to this section of the documentation."
41395 #: ../src/guestfs.pod:3121
41397 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
41398 "a simple string. Because this string is at some point internally encoded as "
41399 "a message, the maximum size that it can return is slightly under 4 MB. If "
41400 "the requested file is larger than this then you will get an error."
41404 #: ../src/guestfs.pod:3127
41406 "In order to transfer large files into and out of the guest filesystem, you "
41407 "need to use particular calls that support this. The sections L</UPLOADING> "
41408 "and L</DOWNLOADING> document how to do this."
41412 #: ../src/guestfs.pod:3131
41414 "You might also consider mounting the disk image using our FUSE filesystem "
41415 "support (L<guestmount(1)>)."
41419 #: ../src/guestfs.pod:3134
41420 msgid "MAXIMUM NUMBER OF DISKS"
41424 #: ../src/guestfs.pod:3136
41425 msgid "When using virtio disks (the default) the current limit is B<25> disks."
41429 #: ../src/guestfs.pod:3139
41431 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
41432 "slots. However febootstrap only understands disks with names C</dev/vda> "
41433 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
41438 #: ../src/guestfs.pod:3144
41440 "We are working to substantially raise this limit in future versions but it "
41441 "requires complex changes to qemu."
41445 #: ../src/guestfs.pod:3147
41447 "In future versions of libguestfs it should also be possible to \"hot plug\" "
41448 "disks (add and remove disks after calling L</guestfs_launch>). This also "
41449 "requires changes to qemu."
41453 #: ../src/guestfs.pod:3151
41454 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
41458 #: ../src/guestfs.pod:3153
41459 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
41463 #: ../src/guestfs.pod:3155
41465 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
41466 "vda>, and C</dev/vda1> through C</dev/vda15>)."
41470 #: ../src/guestfs.pod:3158
41472 "If you attach a disk with more than 15 partitions, the extra partitions are "
41473 "ignored by libguestfs."
41477 #: ../src/guestfs.pod:3161
41478 msgid "MAXIMUM SIZE OF A DISK"
41482 #: ../src/guestfs.pod:3163
41483 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
41487 #: ../src/guestfs.pod:3165
41489 "We have tested block devices up to 1 exabyte (2**60 or "
41490 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
41495 #: ../src/guestfs.pod:3169
41497 "Although libguestfs probably does not impose any limit, the underlying host "
41498 "storage will. If you store disk images on a host ext4 filesystem, then the "
41499 "maximum size will be limited by the maximum ext4 file size (currently 16 "
41500 "TB). If you store disk images as host logical volumes then you are limited "
41501 "by the maximum size of an LV."
41505 #: ../src/guestfs.pod:3175
41507 "For the hugest disk image files, we recommend using XFS on the host for "
41512 #: ../src/guestfs.pod:3178
41513 msgid "MAXIMUM SIZE OF A PARTITION"
41517 #: ../src/guestfs.pod:3180
41519 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
41520 "numbers. Assuming a 512 byte sector size, this means that MBR cannot "
41521 "address a partition located beyond 2 TB on the disk."
41525 #: ../src/guestfs.pod:3184
41527 "It is recommended that you use GPT partitions on disks which are larger than "
41528 "this size. GPT uses 64 bit sector numbers and so can address partitions "
41529 "which are theoretically larger than the largest disk we could support."
41533 #: ../src/guestfs.pod:3189
41534 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
41538 #: ../src/guestfs.pod:3191
41540 "This depends on the filesystem type. libguestfs itself does not impose any "
41541 "known limit. Consult Wikipedia or the filesystem documentation to find out "
41542 "what these limits are."
41546 #: ../src/guestfs.pod:3195
41547 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
41551 #: ../src/guestfs.pod:3197
41553 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
41554 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
41555 "uploads and downloads."
41559 #: ../src/guestfs.pod:3201
41560 msgid "INSPECTION LIMITS"
41564 #: ../src/guestfs.pod:3203
41566 "The inspection code has several arbitrary limits on things like the size of "
41567 "Windows Registry hive it will read, and the length of product name. These "
41568 "are intended to stop a malicious guest from consuming arbitrary amounts of "
41569 "memory and disk space on the host, and should not be reached in practice. "
41570 "See the source code for more information."
41574 #: ../src/guestfs.pod:3229
41576 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
41577 "effect as calling C<guestfs_set_verbose (g, 1)>."
41581 #: ../src/guestfs.pod:3241
41583 "Set the path that libguestfs uses to search for a supermin appliance. See "
41584 "the discussion of paths in section L</PATH> above."
41588 #: ../src/guestfs.pod:3250
41589 msgid "See also L</QEMU WRAPPERS> above."
41593 #: ../src/guestfs.pod:3254
41595 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
41596 "effect as calling C<guestfs_set_trace (g, 1)>."
41600 #: ../src/guestfs.pod:3272
41602 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
41603 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
41604 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
41605 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
41606 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
41607 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
41608 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
41609 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
41610 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
41611 ">, L<http://libguestfs.org/>."
41615 #: ../src/guestfs.pod:3308
41617 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
41618 "(8)>, L<disktype(1)>."
41622 #: ../src/guestfs.pod:3315 ../tools/virt-make-fs.pl:571
41623 #: ../tools/virt-win-reg.pl:772
41628 #: ../src/guestfs.pod:3317
41629 msgid "To get a list of bugs against libguestfs use this link:"
41631 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
41635 #: ../src/guestfs.pod:3319
41637 "L<https://bugzilla.redhat.com/buglist.cgi?"
41638 "component=libguestfs&product=Virtualization+Tools>"
41640 "L<https://bugzilla.redhat.com/buglist.cgi?"
41641 "component=libguestfs&product=Virtualization+Tools>"
41644 #: ../src/guestfs.pod:3321
41645 msgid "To report a new bug against libguestfs use this link:"
41646 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
41649 #: ../src/guestfs.pod:3323
41651 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41652 "component=libguestfs&product=Virtualization+Tools>"
41654 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41655 "component=libguestfs&product=Virtualization+Tools>"
41658 #: ../src/guestfs.pod:3325
41659 msgid "When reporting a bug, please check:"
41663 #: ../src/guestfs.pod:3331
41664 msgid "That the bug hasn't been reported already."
41668 #: ../src/guestfs.pod:3335
41669 msgid "That you are testing a recent version."
41673 #: ../src/guestfs.pod:3339
41674 msgid "Describe the bug accurately, and give a way to reproduce it."
41678 #: ../src/guestfs.pod:3343
41680 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
41685 #: ../test-tool/libguestfs-test-tool.pod:5
41686 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
41690 #: ../test-tool/libguestfs-test-tool.pod:9
41693 " libguestfs-test-tool [--options]\n"
41698 #: ../test-tool/libguestfs-test-tool.pod:13
41700 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
41701 "to check basic libguestfs functionality is working. This is needed because "
41702 "libguestfs occasionally breaks for reasons beyond our control: usually "
41703 "because of changes in the underlying qemu or kernel packages, or the host "
41708 #: ../test-tool/libguestfs-test-tool.pod:19
41709 msgid "If you suspect a problem in libguestfs, then just run:"
41713 #: ../test-tool/libguestfs-test-tool.pod:21
41716 " libguestfs-test-tool\n"
41721 #: ../test-tool/libguestfs-test-tool.pod:23
41722 msgid "It will print lots of diagnostic messages."
41726 #: ../test-tool/libguestfs-test-tool.pod:25
41727 msgid "If it runs to completion successfully, you will see this near the end:"
41731 #: ../test-tool/libguestfs-test-tool.pod:27
41734 " ===== TEST FINISHED OK =====\n"
41739 #: ../test-tool/libguestfs-test-tool.pod:29
41740 msgid "and the test tool will exit with code 0."
41744 #: ../test-tool/libguestfs-test-tool.pod:31
41746 "If it fails (and/or exits with non-zero error code), please paste the "
41747 "I<complete, unedited> output of the test tool into a bug report. More "
41748 "information about reporting bugs can be found on the L<http://libguestfs.org/"
41753 #: ../test-tool/libguestfs-test-tool.pod:42
41754 msgid "Display short usage information and exit."
41758 #: ../test-tool/libguestfs-test-tool.pod:44
41759 msgid "B<--qemu qemu_binary>"
41763 #: ../test-tool/libguestfs-test-tool.pod:46
41765 "If you have downloaded another qemu binary, point this option at the full "
41766 "path of the binary to try it."
41770 #: ../test-tool/libguestfs-test-tool.pod:49
41771 msgid "B<--qemudir qemu_source_dir>"
41775 #: ../test-tool/libguestfs-test-tool.pod:51
41777 "If you have compiled qemu from source, point this option at the source "
41778 "directory to try it."
41782 #: ../test-tool/libguestfs-test-tool.pod:54
41787 #: ../test-tool/libguestfs-test-tool.pod:56
41788 msgid "B<--timeout N>"
41792 #: ../test-tool/libguestfs-test-tool.pod:58
41794 "Set the launch timeout to C<N> seconds. The default is 600 seconds (10 "
41795 "minutes) which does not usually need to be adjusted."
41799 #: ../test-tool/libguestfs-test-tool.pod:63
41800 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
41804 #: ../test-tool/libguestfs-test-tool.pod:65
41806 "If you have compiled another version of qemu from source and would like to "
41807 "try that, then you can use the I<--qemudir> option to point to the qemu "
41808 "source directory."
41812 #: ../test-tool/libguestfs-test-tool.pod:69
41814 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
41815 "option to point to the binary."
41819 #: ../test-tool/libguestfs-test-tool.pod:72
41821 "Note when using these options, you can ignore the business of qemu wrapper "
41822 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
41823 "wrapper script for you if one is needed."
41827 #: ../test-tool/libguestfs-test-tool.pod:76
41828 msgid "TRYING OUT A DIFFERENT KERNEL"
41832 #: ../test-tool/libguestfs-test-tool.pod:78
41834 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
41835 "libguestfs tries. You do this by setting the environment variables "
41836 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
41840 #: ../test-tool/libguestfs-test-tool.pod:82
41842 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
41847 #: ../test-tool/libguestfs-test-tool.pod:85
41848 msgid "SELF-DIAGNOSIS"
41852 #: ../test-tool/libguestfs-test-tool.pod:87
41854 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
41855 "produced by libguestfs-test-tool and/or possible errors."
41859 #: ../test-tool/libguestfs-test-tool.pod:92
41861 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
41862 "I<1> if there was an error."
41866 #: ../test-tool/libguestfs-test-tool.pod:97
41868 "For the full list of environment variables which may affect libguestfs, "
41869 "please see the L<guestfs(3)> manual page."
41873 #: ../test-tool/libguestfs-test-tool.pod:102
41874 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
41878 #: ../tools/virt-list-filesystems.pl:32
41880 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
41884 #: ../tools/virt-list-filesystems.pl:36
41887 " virt-list-filesystems [--options] domname\n"
41892 #: ../tools/virt-list-filesystems.pl:38
41895 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
41900 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
41902 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
41907 #: ../tools/virt-list-filesystems.pl:45
41909 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
41910 "are contained in a virtual machine or disk image."
41914 #: ../tools/virt-list-filesystems.pl:49
41916 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
41917 "functionality. For more complex cases you should look at the L<guestfish(1)"
41922 #: ../tools/virt-list-filesystems.pl:112
41924 "With this option, C<virt-list-filesystems> displays the type of each "
41925 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
41929 #: ../tools/virt-list-filesystems.pl:119
41934 #: ../tools/virt-list-filesystems.pl:123
41936 "Normally we only show mountable filesystems. If this option is given then "
41937 "swap devices are shown too."
41941 #: ../tools/virt-list-filesystems.pl:197
41943 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41944 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
41945 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41947 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41948 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
41949 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41952 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
41953 msgid "Copyright (C) 2009 Red Hat Inc."
41954 msgstr "© Red Hat Inc., 2009"
41957 #: ../tools/virt-list-partitions.pl:32
41959 "virt-list-partitions - List partitions in a virtual machine or disk image"
41963 #: ../tools/virt-list-partitions.pl:36
41966 " virt-list-partitions [--options] domname\n"
41969 " virt-list-partitions [--параметри] назва_домену\n"
41973 #: ../tools/virt-list-partitions.pl:38
41976 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
41979 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
41983 #: ../tools/virt-list-partitions.pl:45
41985 "C<virt-list-partitions> is a command line tool to list the partitions that "
41986 "are contained in a virtual machine or disk image. It is mainly useful as a "
41987 "first step to using L<virt-resize(1)>."
41991 #: ../tools/virt-list-partitions.pl:50
41993 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
41994 "functionality. For more complex cases you should look at the L<guestfish(1)"
41999 #: ../tools/virt-list-partitions.pl:113
42000 msgid "Show sizes in human-readable form (eg. \"1G\")."
42004 #: ../tools/virt-list-partitions.pl:123
42006 "With this option, C<virt-list-partitions> displays the type and size of each "
42007 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
42011 #: ../tools/virt-list-partitions.pl:130
42016 #: ../tools/virt-list-partitions.pl:132
42018 msgstr "B<--total>"
42021 #: ../tools/virt-list-partitions.pl:134
42023 "Display the total size of each block device (as a separate row or rows)."
42027 #: ../tools/virt-list-partitions.pl:267
42029 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42030 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42031 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42033 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42034 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42035 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42038 #: ../tools/virt-list-partitions.pl:283
42039 msgid "Copyright (C) 2009-2010 Red Hat Inc."
42040 msgstr "© Red Hat Inc., 2009–2010"
42043 #: ../tools/virt-make-fs.pl:37
42044 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
42048 #: ../tools/virt-make-fs.pl:41
42051 " virt-make-fs [--options] input.tar output.img\n"
42056 #: ../tools/virt-make-fs.pl:43
42059 " virt-make-fs [--options] input.tar.gz output.img\n"
42064 #: ../tools/virt-make-fs.pl:45
42067 " virt-make-fs [--options] directory output.img\n"
42072 #: ../tools/virt-make-fs.pl:49
42074 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
42075 "archive or some files in a directory. It is similar to tools like L<mkisofs"
42076 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, it can "
42077 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
42078 "you want to attach these filesystems to existing virtual machines (eg. to "
42079 "import large amounts of read-only data to a VM)."
42083 #: ../tools/virt-make-fs.pl:57
42084 msgid "Basic usage is:"
42088 #: ../tools/virt-make-fs.pl:59
42091 " virt-make-fs input output.img\n"
42096 #: ../tools/virt-make-fs.pl:61
42098 "where C<input> is either a directory containing files that you want to add, "
42099 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
42100 "C<output.img> is a disk image. The input type is detected automatically. "
42101 "The output disk image defaults to a raw ext2 sparse image unless you specify "
42102 "extra flags (see L</OPTIONS> below)."
42106 #: ../tools/virt-make-fs.pl:67
42107 msgid "FILESYSTEM TYPE"
42108 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
42111 #: ../tools/virt-make-fs.pl:69
42113 "The default filesystem type is C<ext2>. Just about any filesystem type that "
42114 "libguestfs supports can be used (but I<not> read-only formats like "
42115 "ISO9660). Here are some of the more common choices:"
42119 #: ../tools/virt-make-fs.pl:75
42124 #: ../tools/virt-make-fs.pl:77
42126 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
42127 "you are not going to use the filesystem in a way that requires the journal, "
42128 "then this is just wasted overhead."
42132 #: ../tools/virt-make-fs.pl:81
42133 msgid "I<ntfs> or I<vfat>"
42134 msgstr "I<ntfs> або I<vfat>"
42137 #: ../tools/virt-make-fs.pl:83
42138 msgid "Useful if exporting data to a Windows guest."
42142 #: ../tools/virt-make-fs.pl:85
42144 "I<Note for vfat>: The tar archive or local directory must only contain files "
42145 "which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
42146 "program running within libguestfs is unable to change the ownership of non-"
42147 "root files, since vfat itself does not support this."
42151 #: ../tools/virt-make-fs.pl:90
42156 #: ../tools/virt-make-fs.pl:92
42158 "Lower overhead than C<ext2>, but certain limitations on filename length and "
42159 "total filesystem size."
42163 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
42164 #: ../tools/virt-make-fs.pl:149
42169 #: ../tools/virt-make-fs.pl:99
42172 " virt-make-fs --type=minix input minixfs.img\n"
42177 #: ../tools/virt-make-fs.pl:101
42178 msgid "TO PARTITION OR NOT TO PARTITION"
42182 #: ../tools/virt-make-fs.pl:103
42183 msgid "Optionally virt-make-fs can add a partition table to the output disk."
42187 #: ../tools/virt-make-fs.pl:105
42189 "Adding a partition can make the disk image more compatible with certain "
42190 "virtualized operating systems which don't expect to see a filesystem "
42191 "directly located on a block device (Linux doesn't care and will happily "
42192 "handle both types)."
42196 #: ../tools/virt-make-fs.pl:110
42198 "On the other hand, if you have a partition table then the output image is no "
42199 "longer a straight filesystem. For example you cannot run L<fsck(8)> "
42200 "directly on a partitioned disk image. (However libguestfs tools such as "
42201 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
42205 #: ../tools/virt-make-fs.pl:118
42206 msgid "Add an MBR partition:"
42210 #: ../tools/virt-make-fs.pl:120
42213 " virt-make-fs --partition -- input disk.img\n"
42218 #: ../tools/virt-make-fs.pl:122
42220 "If the output disk image could be terabyte-sized or larger, it's better to "
42221 "use an EFI/GPT-compatible partition table:"
42225 #: ../tools/virt-make-fs.pl:125
42228 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
42233 #: ../tools/virt-make-fs.pl:127
42234 msgid "EXTRA SPACE"
42238 #: ../tools/virt-make-fs.pl:129
42240 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
42241 "the files that it contains, but might have extra space. Depending on how "
42242 "you are going to use the output, you might think this extra space is wasted "
42243 "and want to minimize it, or you might want to leave space so that more files "
42244 "can be added later. Virt-make-fs defaults to minimizing the extra space, "
42245 "but you can use the I<--size> flag to leave space in the filesystem if you "
42250 #: ../tools/virt-make-fs.pl:137
42252 "An alternative way to leave extra space but not make the output image any "
42253 "bigger is to use an alternative disk image format (instead of the default "
42254 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
42255 "image format (check your hypervisor supports this before using it). This "
42256 "allows you to choose a large I<--size> but the extra space won't actually be "
42257 "allocated in the image until you try to store something in it."
42261 #: ../tools/virt-make-fs.pl:145
42263 "Don't forget that you can also use local commands including L<resize2fs(8)> "
42264 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
42265 "to build another image from scratch."
42269 #: ../tools/virt-make-fs.pl:151
42272 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42275 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42279 #: ../tools/virt-make-fs.pl:179
42280 msgid "Enable debugging information."
42281 msgstr "Увімкнути виведення діагностичних даних."
42284 #: ../tools/virt-make-fs.pl:185
42285 msgid "B<--size=E<lt>NE<gt>>"
42286 msgstr "B<--size=E<lt>NE<gt>>"
42289 #: ../tools/virt-make-fs.pl:187
42290 msgid "B<--size=+E<lt>NE<gt>>"
42291 msgstr "B<--size=+E<lt>NE<gt>>"
42294 #: ../tools/virt-make-fs.pl:189
42295 msgid "B<-s E<lt>NE<gt>>"
42296 msgstr "B<-s E<lt>NE<gt>>"
42299 #: ../tools/virt-make-fs.pl:191
42300 msgid "B<-s +E<lt>NE<gt>>"
42301 msgstr "B<-s +E<lt>NE<gt>>"
42304 #: ../tools/virt-make-fs.pl:193
42306 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
42310 #: ../tools/virt-make-fs.pl:196
42312 "If this option is I<not> given, then the output image will be just large "
42313 "enough to contain all the files, with not much wasted space."
42317 #: ../tools/virt-make-fs.pl:199
42319 "To choose a fixed size output disk, specify an absolute number followed by b/"
42320 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42321 "Petabytes or Exabytes. This must be large enough to contain all the input "
42322 "files, else you will get an error."
42326 #: ../tools/virt-make-fs.pl:204
42328 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
42329 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42330 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
42331 "the input files, and (approximately) an extra 200 MB free space."
42335 #: ../tools/virt-make-fs.pl:210
42337 "Note that virt-make-fs estimates free space, and therefore will not produce "
42338 "filesystems containing precisely the free space requested. (It is much more "
42339 "expensive and time-consuming to produce a filesystem which has precisely the "
42340 "desired free space)."
42344 #: ../tools/virt-make-fs.pl:219
42345 msgid "B<--format=E<lt>fmtE<gt>>"
42349 #: ../tools/virt-make-fs.pl:221
42350 msgid "B<-F E<lt>fmtE<gt>>"
42354 #: ../tools/virt-make-fs.pl:223
42355 msgid "Choose the output disk image format."
42359 #: ../tools/virt-make-fs.pl:225
42360 msgid "The default is C<raw> (raw sparse disk image)."
42364 #: ../tools/virt-make-fs.pl:227
42366 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
42367 "that would really make sense here is C<qcow2>."
42371 #: ../tools/virt-make-fs.pl:234
42372 msgid "B<--type=E<lt>fsE<gt>>"
42376 #: ../tools/virt-make-fs.pl:236
42377 msgid "B<-t E<lt>fsE<gt>>"
42381 #: ../tools/virt-make-fs.pl:238
42382 msgid "Choose the output filesystem type."
42386 #: ../tools/virt-make-fs.pl:240
42387 msgid "The default is C<ext2>."
42388 msgstr "Типовим значенням є C<ext2>."
42391 #: ../tools/virt-make-fs.pl:242
42393 "Any filesystem which is supported read-write by libguestfs can be used here."
42397 #: ../tools/virt-make-fs.pl:249
42398 msgid "B<--partition>"
42399 msgstr "B<--partition>"
42402 #: ../tools/virt-make-fs.pl:251
42403 msgid "B<--partition=E<lt>parttypeE<gt>>"
42407 #: ../tools/virt-make-fs.pl:253
42409 "If specified, this flag adds an MBR partition table to the output disk image."
42413 #: ../tools/virt-make-fs.pl:256
42415 "You can change the partition table type, eg. I<--partition=gpt> for large "
42420 #: ../tools/virt-make-fs.pl:259
42422 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
42423 "might consider the next parameter to be the partition type. For example:"
42427 #: ../tools/virt-make-fs.pl:263
42430 " virt-make-fs --partition input.tar output.img\n"
42435 #: ../tools/virt-make-fs.pl:265
42437 "would cause virt-make-fs to think you wanted to use a partition type of "
42438 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
42439 "dash) between options and the input and output arguments:"
42443 #: ../tools/virt-make-fs.pl:269
42446 " virt-make-fs --partition -- input.tar output.img\n"
42451 #: ../tools/virt-make-fs.pl:271
42452 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
42456 #: ../tools/virt-make-fs.pl:559
42458 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42459 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42460 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42462 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42463 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42464 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42467 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
42469 "When reporting bugs, please enable debugging and capture the I<complete> "
42474 #: ../tools/virt-make-fs.pl:576
42477 " export LIBGUESTFS_DEBUG=1\n"
42478 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42481 " export LIBGUESTFS_DEBUG=1\n"
42482 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42486 #: ../tools/virt-make-fs.pl:579
42488 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
42493 #: ../tools/virt-tar.pl:33
42494 msgid "virt-tar - Extract or upload files to a virtual machine"
42498 #: ../tools/virt-tar.pl:37
42501 " virt-tar [--options] -x domname directory tarball\n"
42506 #: ../tools/virt-tar.pl:39
42509 " virt-tar [--options] -u domname tarball directory\n"
42514 #: ../tools/virt-tar.pl:41
42517 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
42522 #: ../tools/virt-tar.pl:43
42525 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
42530 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
42535 #: ../tools/virt-tar.pl:47
42537 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
42538 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
42542 #: ../tools/virt-tar.pl:52
42543 msgid "Download C</home> from the VM into a local tarball:"
42547 #: ../tools/virt-tar.pl:54
42550 " virt-tar -x domname /home home.tar\n"
42555 #: ../tools/virt-tar.pl:56
42558 " virt-tar -zx domname /home home.tar.gz\n"
42563 #: ../tools/virt-tar.pl:58
42564 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
42568 #: ../tools/virt-tar.pl:60
42571 " virt-tar -u domname uploadstuff.tar /tmp\n"
42576 #: ../tools/virt-tar.pl:62
42579 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
42584 #: ../tools/virt-tar.pl:66
42586 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
42587 "virtual machines. If you do this, you risk disk corruption in the VM. "
42588 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
42592 #: ../tools/virt-tar.pl:71
42594 "You can use I<-x> (extract) on live virtual machines, but you might get "
42595 "inconsistent results or errors if there is filesystem activity inside the "
42596 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
42597 "work, but the only way to guarantee consistent results is if the virtual "
42598 "machine is shut down."
42602 #: ../tools/virt-tar.pl:79
42604 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
42605 "parts of a guest filesystem. There are many possibilities: making backups, "
42606 "uploading data files, snooping on guest activity, fixing or customizing "
42611 #: ../tools/virt-tar.pl:84
42613 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
42614 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
42615 "should look at the L<guestfish(1)> tool."
42619 #: ../tools/virt-tar.pl:88
42621 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
42622 "its contents (recursively) from the virtual machine into a local tarball. "
42623 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
42624 "virtual machine. You cannot use these two options together."
42628 #: ../tools/virt-tar.pl:94
42630 "In addition, you may need to use the I<-z> (gZip) option to enable "
42631 "compression. When uploading, you have to specify I<-z> if the upload file "
42632 "is compressed because virt-tar won't detect this on its own."
42636 #: ../tools/virt-tar.pl:98
42638 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
42639 "example it cannot do PKZip files or bzip2 compression. If you want that "
42640 "then you'll have to rebuild the tarballs yourself. (This is a limitation of "
42641 "the L<libguestfs(3)> API)."
42645 #: ../tools/virt-tar.pl:160
42646 msgid "B<--extract>"
42647 msgstr "B<--extract>"
42650 #: ../tools/virt-tar.pl:162
42651 msgid "B<--download>"
42652 msgstr "B<--download>"
42655 #: ../tools/virt-tar.pl:164
42660 #: ../tools/virt-tar.pl:166
42661 msgid "B<--upload>"
42662 msgstr "B<--upload>"
42665 #: ../tools/virt-tar.pl:168
42667 "Use I<-x> to extract (download) a directory from a virtual machine to a "
42672 #: ../tools/virt-tar.pl:171
42674 "Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
42675 "Please read the L</WARNING> section above before using this option."
42679 #: ../tools/virt-tar.pl:175
42680 msgid "You must specify exactly one of these options."
42684 #: ../tools/virt-tar.pl:181
42689 #: ../tools/virt-tar.pl:183
42694 #: ../tools/virt-tar.pl:185
42695 msgid "Specify that the input or output tarball is gzip-compressed."
42699 #: ../tools/virt-tar.pl:298
42701 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42702 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42703 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42706 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42707 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42708 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42712 #: ../tools/virt-win-reg.pl:37
42714 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
42718 #: ../tools/virt-win-reg.pl:41
42721 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
42726 #: ../tools/virt-win-reg.pl:43
42729 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
42734 #: ../tools/virt-win-reg.pl:45
42737 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
42742 #: ../tools/virt-win-reg.pl:47
42745 " virt-win-reg --merge domname [input.reg ...]\n"
42750 #: ../tools/virt-win-reg.pl:49
42753 " virt-win-reg [--options] disk.img ... # instead of domname\n"
42758 #: ../tools/virt-win-reg.pl:53
42760 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
42761 "virtual machines. If you do this, you I<will> get irreversible disk "
42762 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
42763 "but doesn't catch all cases."
42767 #: ../tools/virt-win-reg.pl:58
42769 "Modifying the Windows Registry is an inherently risky operation. The format "
42770 "is deliberately obscure and undocumented, and Registry changes can leave the "
42771 "system unbootable. Therefore when using the I<--merge> option, make sure "
42772 "you have a reliable backup first."
42776 #: ../tools/virt-win-reg.pl:65
42778 "This program can export and merge Windows Registry entries from a Windows "
42783 #: ../tools/virt-win-reg.pl:68
42785 "The first parameter is the libvirt guest name or the raw disk image of a "
42790 #: ../tools/virt-win-reg.pl:71
42792 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
42793 "exported (recursively). For example:"
42797 #: ../tools/virt-win-reg.pl:74
42800 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42803 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42807 #: ../tools/virt-win-reg.pl:76
42809 "You can also display single values from within registry keys, for example:"
42813 #: ../tools/virt-win-reg.pl:79
42816 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42817 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42818 " Windows 7 Enterprise\n"
42821 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42822 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42823 " Windows 7 Enterprise\n"
42827 #: ../tools/virt-win-reg.pl:83
42829 "With I<--merge>, you can merge a textual regedit file into the Windows "
42834 #: ../tools/virt-win-reg.pl:86
42837 " $ virt-win-reg --merge Windows7 changes.reg\n"
42840 " $ virt-win-reg --merge Windows7 changes.reg\n"
42844 #: ../tools/virt-win-reg.pl:90
42846 "This program is only meant for simple access to the registry. If you want "
42847 "to do complicated things with the registry, we suggest you download the "
42848 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
42849 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
42850 "L<hivexregedit(1)>."
42854 #: ../tools/virt-win-reg.pl:159
42856 msgstr "B<--merge>"
42859 #: ../tools/virt-win-reg.pl:161
42861 "In merge mode, this merges a textual regedit file into the Windows Registry "
42862 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
42863 "displays or exports Registry entries instead."
42867 #: ../tools/virt-win-reg.pl:165
42869 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
42870 "result in disk corruption. However exporting (without this flag) is always "
42875 #: ../tools/virt-win-reg.pl:173
42876 msgid "B<--encoding> UTF-16LE|ASCII"
42877 msgstr "B<--encoding> UTF-16LE|ASCII"
42880 #: ../tools/virt-win-reg.pl:175
42882 "When merging (only), you may need to specify the encoding for strings to be "
42883 "used in the hive file. This is explained in detail in L<Win::Hivex::Regedit"
42884 "(3)/ENCODING STRINGS>."
42888 #: ../tools/virt-win-reg.pl:179
42890 "The default is to use UTF-16LE, which should work with recent versions of "
42895 #: ../tools/virt-win-reg.pl:186
42896 msgid "B<--unsafe-printable-strings>"
42897 msgstr "B<--unsafe-printable-strings>"
42900 #: ../tools/virt-win-reg.pl:188
42902 "When exporting (only), assume strings are UTF-16LE and print them as strings "
42903 "instead of hex sequences. Remove the final zero codepoint from strings if "
42908 #: ../tools/virt-win-reg.pl:192
42910 "This is unsafe and does not preserve the fidelity of strings in the original "
42911 "Registry for various reasons:"
42915 #: ../tools/virt-win-reg.pl:199
42917 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
42918 "other encodings will be corrupted by this transformation."
42922 #: ../tools/virt-win-reg.pl:204
42924 "Assumes that everything which has type 1 or 2 is really a string and that "
42925 "everything else is not a string, but the type field in real Registries is "
42930 #: ../tools/virt-win-reg.pl:210
42932 "Loses information about whether a zero codepoint followed the string in the "
42937 #: ../tools/virt-win-reg.pl:215
42939 "This all happens because the Registry itself contains no information about "
42940 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
42944 #: ../tools/virt-win-reg.pl:219
42946 "You should only use this option for quick hacking and debugging of the "
42947 "Registry contents, and I<never> use it if the output is going to be passed "
42948 "into another program or stored in another Registry."
42952 #: ../tools/virt-win-reg.pl:556
42953 msgid "SUPPORTED SYSTEMS"
42954 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
42957 #: ../tools/virt-win-reg.pl:558
42959 "The program currently supports Windows NT-derived guests starting with "
42960 "Windows XP through to at least Windows 7."
42964 #: ../tools/virt-win-reg.pl:561
42965 msgid "The following Registry keys are supported:"
42969 #: ../tools/virt-win-reg.pl:565
42970 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
42971 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
42974 #: ../tools/virt-win-reg.pl:567
42975 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42976 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42979 #: ../tools/virt-win-reg.pl:569
42980 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
42981 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
42984 #: ../tools/virt-win-reg.pl:571
42985 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42986 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42989 #: ../tools/virt-win-reg.pl:573
42990 msgid "C<HKEY_USERS\\.DEFAULT>"
42991 msgstr "C<HKEY_USERS\\.DEFAULT>"
42994 #: ../tools/virt-win-reg.pl:575
42995 msgid "C<HKEY_USERS\\I<SID>>"
42996 msgstr "C<HKEY_USERS\\I<SID>>"
42999 #: ../tools/virt-win-reg.pl:577
43000 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
43004 #: ../tools/virt-win-reg.pl:579
43005 msgid "C<HKEY_USERS\\I<username>>"
43006 msgstr "C<HKEY_USERS\\I<користувач>>"
43009 #: ../tools/virt-win-reg.pl:581
43011 "where I<username> is a local user name (this is a libguestfs extension)."
43015 #: ../tools/virt-win-reg.pl:585
43017 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
43022 #: ../tools/virt-win-reg.pl:588
43024 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
43025 "supported (there is no \"current user\")."
43029 #: ../tools/virt-win-reg.pl:591
43034 #: ../tools/virt-win-reg.pl:593
43036 "C<virt-win-reg> expects that regedit files have already been reencoded in "
43037 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
43038 "style line endings. Since Windows regedit files are often in UTF-16LE with "
43039 "Windows-style line endings, you may need to reencode the whole file before "
43040 "or after processing."
43044 #: ../tools/virt-win-reg.pl:599
43046 "To reencode a file from Windows format to Linux (before processing it with "
43047 "the I<--merge> option), you would do something like this:"
43051 #: ../tools/virt-win-reg.pl:602
43054 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43057 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43061 #: ../tools/virt-win-reg.pl:604
43063 "To go in the opposite direction, after exporting and before sending the file "
43064 "to a Windows user, do something like this:"
43068 #: ../tools/virt-win-reg.pl:607
43071 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43074 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43078 #: ../tools/virt-win-reg.pl:609
43079 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
43083 #: ../tools/virt-win-reg.pl:611
43085 "If you are unsure about the current encoding, use the L<file(1)> command. "
43086 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
43087 "style (CRLF) line endings, like this:"
43091 #: ../tools/virt-win-reg.pl:615
43094 " $ file software.reg\n"
43095 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
43096 " with CRLF line terminators\n"
43101 #: ../tools/virt-win-reg.pl:619
43102 msgid "This file would need conversion before you could I<--merge> it."
43106 #: ../tools/virt-win-reg.pl:621
43107 msgid "CurrentControlSet etc."
43111 #: ../tools/virt-win-reg.pl:623
43113 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
43114 "Registry at the level of the hive file, and therefore you cannot modify "
43119 #: ../tools/virt-win-reg.pl:627
43121 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
43122 "circumstances it might refer to another control set. The way to find out is "
43123 "to look at the C<HKLM\\SYSTEM\\Select> key:"
43127 #: ../tools/virt-win-reg.pl:631
43130 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43131 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43132 " \"Current\"=dword:00000001\n"
43133 " \"Default\"=dword:00000001\n"
43134 " \"Failed\"=dword:00000000\n"
43135 " \"LastKnownGood\"=dword:00000002\n"
43138 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43139 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43140 " \"Current\"=dword:00000001\n"
43141 " \"Default\"=dword:00000001\n"
43142 " \"Failed\"=dword:00000000\n"
43143 " \"LastKnownGood\"=dword:00000002\n"
43147 #: ../tools/virt-win-reg.pl:638
43148 msgid "\"Current\" is the one which Windows will choose when it boots."
43152 #: ../tools/virt-win-reg.pl:640
43154 "Similarly, other C<Current...> keys in the path may need to be replaced."
43158 #: ../tools/virt-win-reg.pl:643
43159 msgid "DELETING REGISTRY KEYS AND VALUES"
43163 #: ../tools/virt-win-reg.pl:645
43164 msgid "To delete a whole registry key, use the syntax:"
43168 #: ../tools/virt-win-reg.pl:647
43171 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
43176 #: ../tools/virt-win-reg.pl:649
43177 msgid "To delete a single value within a key, use the syntax:"
43181 #: ../tools/virt-win-reg.pl:651
43184 " [HKEY_LOCAL_MACHINE\\Foo]\n"
43190 #: ../tools/virt-win-reg.pl:654
43191 msgid "WINDOWS TIPS"
43195 #: ../tools/virt-win-reg.pl:656
43197 "Note that some of these tips modify the guest disk image. The guest I<must> "
43198 "be shut off, else you will get disk corruption."
43202 #: ../tools/virt-win-reg.pl:659
43203 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
43207 #: ../tools/virt-win-reg.pl:661
43209 "Prepare a DOS batch script, VBScript or executable. Upload this using "
43210 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
43211 "is uploaded into C<C:\\>:"
43215 #: ../tools/virt-win-reg.pl:665
43218 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
43221 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
43225 #: ../tools/virt-win-reg.pl:667
43226 msgid "Prepare a regedit file containing the registry change:"
43230 #: ../tools/virt-win-reg.pl:669
43233 " cat > test.reg <<'EOF'\n"
43234 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
43235 " \"Test\"=\"c:\\\\test.bat\"\n"
43239 " cat > test.reg <<'EOF'\n"
43240 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
43241 " \"Test\"=\"c:\\\\test.bat\"\n"
43246 #: ../tools/virt-win-reg.pl:674
43248 "In this example we use the key C<RunOnce> which means that the script will "
43249 "run precisely once when the first user logs in. If you want it to run every "
43250 "time a user logs in, replace C<RunOnce> with C<Run>."
43254 #: ../tools/virt-win-reg.pl:678
43255 msgid "Now update the registry:"
43256 msgstr "Оновіть регістр:"
43259 #: ../tools/virt-win-reg.pl:680
43262 " virt-win-reg --merge WindowsGuest test.reg\n"
43267 #: ../tools/virt-win-reg.pl:682
43268 msgid "INSTALLING A SERVICE"
43272 #: ../tools/virt-win-reg.pl:684
43274 "This section assumes you are familiar with Windows services, and you either "
43275 "have a program which handles the Windows Service Control Protocol directly "
43276 "or you want to run any program using a service wrapper like SrvAny or the "
43281 #: ../tools/virt-win-reg.pl:689
43283 "First upload the program and optionally the service wrapper. In this case "
43284 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
43288 #: ../tools/virt-win-reg.pl:693
43291 " guestfish -i -d WindowsGuest <<EOF\n"
43292 " upload rhsrvany.exe /rhsrvany.exe\n"
43293 " upload test.exe /test.exe\n"
43297 " guestfish -i -d WindowsGuest <<EOF\n"
43298 " upload rhsrvany.exe /rhsrvany.exe\n"
43299 " upload test.exe /test.exe\n"
43304 #: ../tools/virt-win-reg.pl:698
43306 "Prepare a regedit file containing the registry changes. In this example, "
43307 "the first registry change is needed for the service itself or the service "
43308 "wrapper (if used). The second registry change is only needed because I am "
43309 "using the RHSrvAny service wrapper."
43313 #: ../tools/virt-win-reg.pl:703
43316 " cat > service.reg <<'EOF'\n"
43317 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
43318 " \"Type\"=dword:00000010\n"
43319 " \"Start\"=dword:00000002\n"
43320 " \"ErrorControl\"=dword:00000001\n"
43321 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
43322 " \"DisplayName\"=\"RHSrvAny\"\n"
43323 " \"ObjectName\"=\"NetworkService\"\n"
43326 " cat > service.reg <<'EOF'\n"
43327 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
43328 " \"Type\"=dword:00000010\n"
43329 " \"Start\"=dword:00000002\n"
43330 " \"ErrorControl\"=dword:00000001\n"
43331 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
43332 " \"DisplayName\"=\"RHSrvAny\"\n"
43333 " \"ObjectName\"=\"NetworkService\"\n"
43337 #: ../tools/virt-win-reg.pl:712
43340 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
43341 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
43342 " \"PWD\"=\"c:\\\\Temp\"\n"
43346 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
43347 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
43348 " \"PWD\"=\"c:\\\\Temp\"\n"
43353 #: ../tools/virt-win-reg.pl:723
43355 "For use of C<ControlSet001> see the section above in this manual page. You "
43356 "may need to adjust this according to the control set that is in use by the "
43361 #: ../tools/virt-win-reg.pl:729
43363 "C<\"ObjectName\"> controls the privileges that the service will have. An "
43364 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
43365 "privileged account."
43369 #: ../tools/virt-win-reg.pl:735
43371 "For the meaning of the magic numbers, see this Microsoft KB article: "
43372 "L<http://support.microsoft.com/kb/103000>."
43376 #: ../tools/virt-win-reg.pl:740
43377 msgid "Update the registry:"
43378 msgstr "Оновіть регістр:"
43381 #: ../tools/virt-win-reg.pl:742
43384 " virt-win-reg --merge WindowsGuest service.reg\n"
43389 #: ../tools/virt-win-reg.pl:746
43391 "Be careful when passing parameters containing C<\\> (backslash) in the "
43392 "shell. Usually you will have to use 'single quotes' or double backslashes "
43393 "(but not both) to protect them from the shell."
43397 #: ../tools/virt-win-reg.pl:750
43398 msgid "Paths and value names are case-insensitive."
43402 #: ../tools/virt-win-reg.pl:759
43404 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
43405 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
43406 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43408 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
43409 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
43410 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43413 #: ../tools/virt-win-reg.pl:777
43416 " export LIBGUESTFS_DEBUG=1\n"
43417 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
43422 #: ../tools/virt-win-reg.pl:780
43424 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."