1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
5 # Yuri Chornoivan <yurchor@ukr.net>, 2011.
8 "Project-Id-Version: libguestfs\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2011-10-05 18:11+0200\n"
11 "PO-Revision-Date: 2011-07-17 20:50+0000\n"
12 "Last-Translator: rjones <rjones@redhat.com>\n"
13 "Language-Team: Ukrainian <trans-uk@lists.fedoraproject.org>\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
19 "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
22 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3
23 #: ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3 ../df/virt-df.pod:3
24 #: ../edit/virt-edit.pod:3 ../erlang/examples/guestfs-erlang.pod:3
25 #: ../examples/guestfs-examples.pod:3 ../examples/guestfs-recipes.pod:14
26 #: ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3
27 #: ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3
28 #: ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3
29 #: ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3
30 #: ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3
31 #: ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3
32 #: ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3
33 #: ../sparsify/virt-sparsify.pod:3 ../src/guestfs.pod:3
34 #: ../test-tool/libguestfs-test-tool.pod:3
35 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
36 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
37 #: ../tools/virt-win-reg.pl:35
42 #: ../align/virt-alignment-scan.pod:5
43 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
47 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7
48 #: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7 ../df/virt-df.pod:7
49 #: ../edit/virt-edit.pod:7 ../erlang/examples/guestfs-erlang.pod:7
50 #: ../examples/guestfs-examples.pod:7 ../fish/guestfish.pod:7
51 #: ../fish/virt-copy-in.pod:7 ../fish/virt-copy-out.pod:7
52 #: ../fish/virt-tar-in.pod:7 ../fish/virt-tar-out.pod:7
53 #: ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pod:7
54 #: ../java/examples/guestfs-java.pod:7 ../ocaml/examples/guestfs-ocaml.pod:7
55 #: ../perl/examples/guestfs-perl.pod:7 ../python/examples/guestfs-python.pod:7
56 #: ../rescue/virt-rescue.pod:7 ../resize/virt-resize.pod:7
57 #: ../ruby/examples/guestfs-ruby.pod:7 ../sparsify/virt-sparsify.pod:7
58 #: ../src/guestfs.pod:7 ../test-tool/libguestfs-test-tool.pod:7
59 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
60 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
61 #: ../tools/virt-win-reg.pl:39
63 msgstr "КОРОТКИЙ ОПИС"
66 #: ../align/virt-alignment-scan.pod:9
69 #| " virt-list-partitions [--options] domname\n"
72 " virt-alignment-scan [--options]\n"
75 " virt-list-partitions [--параметри] назва_домену\n"
79 #: ../align/virt-alignment-scan.pod:11
82 #| " virt-list-partitions [--options] domname\n"
85 " virt-alignment-scan [--options] -d domname\n"
88 " virt-list-partitions [--параметри] назва_домену\n"
92 #: ../align/virt-alignment-scan.pod:13
95 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
98 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
101 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
105 #: ../align/virt-alignment-scan.pod:15 ../cat/virt-cat.pod:19
106 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19 ../df/virt-df.pod:21
107 #: ../edit/virt-edit.pod:27 ../erlang/examples/guestfs-erlang.pod:16
108 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
109 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
110 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
111 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
112 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
113 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
114 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
115 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
116 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
117 #: ../test-tool/libguestfs-test-tool.pod:11
118 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
119 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
120 #: ../tools/virt-win-reg.pl:63
125 #: ../align/virt-alignment-scan.pod:17
127 "When older operating systems install themselves, the partitioning tools "
128 "place partitions at a sector misaligned with the underlying storage "
129 "(commonly the first partition starts on sector C<63>). Misaligned "
130 "partitions can result in an operating system issuing more I/O than should be "
135 #: ../align/virt-alignment-scan.pod:23
137 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
138 "machines and disk images and warns you if there are alignment problems."
142 #: ../align/virt-alignment-scan.pod:27
144 "Currently there is no virt tool for fixing alignment problems, except to "
145 "reinstall the operating system. The following NetApp document summarises "
146 "the problem and possible solutions: L<http://media.netapp.com/documents/"
151 #: ../align/virt-alignment-scan.pod:32
156 #: ../align/virt-alignment-scan.pod:34
157 msgid "To run this tool on a disk image directly, use the I<-a> option:"
161 #: ../align/virt-alignment-scan.pod:36
164 " $ virt-alignment-scan -a winxp.img\n"
165 " /dev/sda1 32256 512 bad (alignment < 4K)\n"
170 #: ../align/virt-alignment-scan.pod:39
173 " $ virt-alignment-scan -a fedora16.img\n"
174 " /dev/sda1 1048576 1024K ok\n"
175 " /dev/sda2 2097152 2048K ok\n"
176 " /dev/sda3 526385152 2048K ok\n"
181 #: ../align/virt-alignment-scan.pod:44
183 "To run the tool on a guest known to libvirt, use the I<-d> option and "
184 "possibly the I<-c> option:"
188 #: ../align/virt-alignment-scan.pod:47
191 " # virt-alignment-scan -d RHEL5\n"
192 " /dev/sda1 32256 512 bad (alignment < 4K)\n"
193 " /dev/sda2 106928640 512 bad (alignment < 4K)\n"
198 #: ../align/virt-alignment-scan.pod:51
201 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
202 " /dev/sda1 1048576 1024K ok\n"
203 " /dev/sda2 105906176 1024K ok\n"
204 " /dev/sdb1 65536 64K ok\n"
209 #: ../align/virt-alignment-scan.pod:56
211 "The output consists of 4 or more whitespace-separated columns. Only the "
212 "first 4 columns are signficant if you want to parse this from a program. "
217 #: ../align/virt-alignment-scan.pod:62
222 #: ../align/virt-alignment-scan.pod:64
224 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
225 "on the first block device)"
229 #: ../align/virt-alignment-scan.pod:67
234 #: ../align/virt-alignment-scan.pod:69
235 msgid "the start of the partition in bytes"
239 #: ../align/virt-alignment-scan.pod:71
244 #: ../align/virt-alignment-scan.pod:73
245 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
249 #: ../align/virt-alignment-scan.pod:75
254 #: ../align/virt-alignment-scan.pod:77
256 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
257 "can cause performance problems"
261 #: ../align/virt-alignment-scan.pod:80
266 #: ../align/virt-alignment-scan.pod:82
267 msgid "optional free-text explanation."
271 #: ../align/virt-alignment-scan.pod:86
273 "The exit code from the program changes depending on whether poorly aligned "
274 "partitions were found. See L</EXIT STATUS> below."
278 #: ../align/virt-alignment-scan.pod:89
279 msgid "If you just want the exit code with no output, use the I<-q> option."
283 #: ../align/virt-alignment-scan.pod:91 ../cat/virt-cat.pod:62
284 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261 ../df/virt-df.pod:59
285 #: ../edit/virt-edit.pod:62 ../fish/guestfish.pod:148
286 #: ../fish/virt-copy-in.pod:45 ../fish/virt-copy-out.pod:34
287 #: ../fish/virt-tar-in.pod:42 ../fish/virt-tar-out.pod:36
288 #: ../fuse/guestmount.pod:83 ../inspector/virt-inspector.pod:55
289 #: ../rescue/virt-rescue.pod:84 ../resize/virt-resize.pod:241
290 #: ../sparsify/virt-sparsify.pod:99 ../test-tool/libguestfs-test-tool.pod:36
291 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
292 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
293 #: ../tools/virt-win-reg.pl:96
298 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:66
299 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265 ../df/virt-df.pod:63
300 #: ../edit/virt-edit.pod:66 ../fish/guestfish.pod:152
301 #: ../fuse/guestmount.pod:151 ../inspector/virt-inspector.pod:59
302 #: ../rescue/virt-rescue.pod:88 ../resize/virt-resize.pod:245
303 #: ../sparsify/virt-sparsify.pod:103 ../test-tool/libguestfs-test-tool.pod:40
304 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
305 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
306 #: ../tools/virt-win-reg.pl:104
311 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:68
312 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267 ../df/virt-df.pod:65
313 #: ../edit/virt-edit.pod:68 ../inspector/virt-inspector.pod:61
314 #: ../rescue/virt-rescue.pod:90 ../tools/virt-list-filesystems.pl:63
315 #: ../tools/virt-list-partitions.pl:64 ../tools/virt-make-fs.pl:163
316 #: ../tools/virt-tar.pl:113 ../tools/virt-win-reg.pl:106
317 msgid "Display brief help."
321 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:70
322 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269 ../df/virt-df.pod:67
323 #: ../edit/virt-edit.pod:70 ../inspector/virt-inspector.pod:63
324 #: ../rescue/virt-rescue.pod:92
326 #| msgid "B<-f file>"
331 #: ../align/virt-alignment-scan.pod:101 ../cat/virt-cat.pod:72
332 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271 ../df/virt-df.pod:69
333 #: ../edit/virt-edit.pod:72 ../inspector/virt-inspector.pod:65
334 #: ../rescue/virt-rescue.pod:94
336 #| msgid "B<--add image>"
337 msgid "B<--add> file"
338 msgstr "B<--add образ>"
341 #: ../align/virt-alignment-scan.pod:103
342 msgid "Add I<file> which should be a disk image from a virtual machine."
346 #: ../align/virt-alignment-scan.pod:105 ../cat/virt-cat.pod:78
347 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277 ../df/virt-df.pod:75
348 #: ../edit/virt-edit.pod:78 ../fish/guestfish.pod:174
349 #: ../fuse/guestmount.pod:93 ../inspector/virt-inspector.pod:71
350 #: ../rescue/virt-rescue.pod:100
352 "The format of the disk image is auto-detected. To override this and force a "
353 "particular format use the I<--format=..> option."
357 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:81
358 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291 ../df/virt-df.pod:78
359 #: ../rescue/virt-rescue.pod:107
363 msgstr "B<-c адреса>"
366 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:83
367 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293 ../df/virt-df.pod:80
368 #: ../rescue/virt-rescue.pod:109
370 #| msgid "B<--connect URI>"
371 msgid "B<--connect> URI"
372 msgstr "B<--connect адреса>"
375 #: ../align/virt-alignment-scan.pod:112 ../cat/virt-cat.pod:85
376 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295 ../df/virt-df.pod:82
377 #: ../edit/virt-edit.pod:99 ../inspector/virt-inspector.pod:78
378 #: ../rescue/virt-rescue.pod:111 ../tools/virt-list-filesystems.pl:81
379 #: ../tools/virt-list-partitions.pl:82 ../tools/virt-tar.pl:131
380 #: ../tools/virt-win-reg.pl:132
382 "If using libvirt, connect to the given I<URI>. If omitted, then we connect "
383 "to the default libvirt hypervisor."
387 #: ../align/virt-alignment-scan.pod:115 ../cat/virt-cat.pod:88
388 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298 ../df/virt-df.pod:85
389 #: ../rescue/virt-rescue.pod:114
391 "If you specify guest block devices directly (I<-a>), then libvirt is not "
396 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:91
397 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307 ../df/virt-df.pod:94
398 #: ../edit/virt-edit.pod:105 ../inspector/virt-inspector.pod:85
399 #: ../rescue/virt-rescue.pod:117
404 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:93
405 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309 ../df/virt-df.pod:96
406 #: ../edit/virt-edit.pod:107 ../inspector/virt-inspector.pod:87
407 #: ../rescue/virt-rescue.pod:119
408 msgid "B<--domain> guest"
412 #: ../align/virt-alignment-scan.pod:122 ../cat/virt-cat.pod:95
413 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311 ../df/virt-df.pod:98
414 #: ../edit/virt-edit.pod:109 ../inspector/virt-inspector.pod:89
415 #: ../rescue/virt-rescue.pod:121
417 "Add all the disks from the named libvirt guest. Domain UUIDs can be used "
422 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:105
423 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
424 #: ../df/virt-df.pod:101 ../fish/guestfish.pod:233 ../fuse/guestmount.pod:133
425 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
426 msgid "B<--format=raw|qcow2|..>"
427 msgstr "B<--format=raw|qcow2|..>"
430 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:107
431 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
432 #: ../df/virt-df.pod:103 ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
433 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:101
434 #: ../rescue/virt-rescue.pod:126
439 #: ../align/virt-alignment-scan.pod:129 ../cat/virt-cat.pod:109
440 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
441 #: ../df/virt-df.pod:105 ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
442 #: ../fuse/guestmount.pod:137 ../rescue/virt-rescue.pod:128
444 "The default for the I<-a> option is to auto-detect the format of the disk "
445 "image. Using this forces the disk format for I<-a> options which follow on "
446 "the command line. Using I<--format> with no argument switches back to auto-"
447 "detection for subsequent I<-a> options."
451 #: ../align/virt-alignment-scan.pod:134 ../cat/virt-cat.pod:114
452 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
453 #: ../df/virt-df.pod:110 ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
454 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:336
455 #: ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2791
460 #: ../align/virt-alignment-scan.pod:136
463 #| " guestfish --format=raw -a disk.img\n"
466 " virt-alignment-scan --format=raw -a disk.img\n"
469 " guestfish --format=raw -a disk.img\n"
473 #: ../align/virt-alignment-scan.pod:138 ../cat/virt-cat.pod:118
474 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
475 #: ../df/virt-df.pod:114 ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
476 #: ../rescue/virt-rescue.pod:137
477 msgid "forces raw format (no auto-detection) for C<disk.img>."
481 #: ../align/virt-alignment-scan.pod:140
484 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
487 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
490 " guestfish --format=raw -a disk.img --format -a another.img\n"
494 #: ../align/virt-alignment-scan.pod:142 ../cat/virt-cat.pod:122
495 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
496 #: ../df/virt-df.pod:118 ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
497 #: ../rescue/virt-rescue.pod:141
499 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
500 "detection for C<another.img>."
504 #: ../align/virt-alignment-scan.pod:145 ../cat/virt-cat.pod:125
505 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
506 #: ../df/virt-df.pod:121 ../edit/virt-edit.pod:152
507 #: ../rescue/virt-rescue.pod:144
509 "If you have untrusted raw-format guest disk images, you should use this "
510 "option to specify the disk format. This avoids a possible security problem "
511 "with malicious guests (CVE-2010-3851)."
515 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:414
516 #: ../sparsify/virt-sparsify.pod:153
521 #: ../align/virt-alignment-scan.pod:151 ../resize/virt-resize.pod:416
522 #: ../sparsify/virt-sparsify.pod:155
529 #: ../align/virt-alignment-scan.pod:153
531 "Don't produce any output. Just set the exit code (see L</EXIT STATUS> "
536 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:134
537 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
538 #: ../df/virt-df.pod:173 ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
539 #: ../fuse/guestmount.pod:257 ../inspector/virt-inspector.pod:119
540 #: ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:159
545 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:136
546 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
547 #: ../df/virt-df.pod:175 ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
548 #: ../fuse/guestmount.pod:259 ../inspector/virt-inspector.pod:121
549 #: ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:161
551 msgstr "B<--verbose>"
554 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:138
555 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
556 #: ../df/virt-df.pod:177 ../edit/virt-edit.pod:165
557 #: ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:186
558 #: ../sparsify/virt-sparsify.pod:163
559 msgid "Enable verbose messages for debugging."
563 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:140
564 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
565 #: ../df/virt-df.pod:179 ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
566 #: ../fuse/guestmount.pod:263 ../inspector/virt-inspector.pod:125
567 #: ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:484
568 #: ../sparsify/virt-sparsify.pod:165
573 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:142
574 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
575 #: ../df/virt-df.pod:181 ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
576 #: ../fuse/guestmount.pod:265 ../inspector/virt-inspector.pod:127
577 #: ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:486
578 #: ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69
579 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
580 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
582 msgstr "B<--version>"
585 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:144
586 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
587 #: ../df/virt-df.pod:183 ../edit/virt-edit.pod:171
588 #: ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:192
589 #: ../resize/virt-resize.pod:488 ../sparsify/virt-sparsify.pod:169
590 #: ../tools/virt-list-filesystems.pl:71 ../tools/virt-list-partitions.pl:72
591 #: ../tools/virt-make-fs.pl:171 ../tools/virt-tar.pl:121
592 #: ../tools/virt-win-reg.pl:114
593 msgid "Display version number and exit."
594 msgstr "Показати дані щодо версії і завершити роботу."
597 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:146
598 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
599 #: ../df/virt-df.pod:185 ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
600 #: ../fuse/guestmount.pod:278 ../inspector/virt-inspector.pod:131
601 #: ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:171
602 #: ../tools/virt-tar.pl:158
607 #: ../align/virt-alignment-scan.pod:170 ../cat/virt-cat.pod:148
608 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
609 #: ../df/virt-df.pod:187 ../edit/virt-edit.pod:175
610 #: ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:205
611 #: ../sparsify/virt-sparsify.pod:173
612 msgid "Enable tracing of libguestfs API calls."
616 #: ../align/virt-alignment-scan.pod:174 ../cat/virt-cat.pod:191
617 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:483
618 #: ../df/virt-df.pod:215 ../edit/virt-edit.pod:342
619 #: ../inspector/virt-inspector.pod:352 ../rescue/virt-rescue.pod:266
620 #: ../resize/virt-resize.pod:601 ../tools/virt-list-filesystems.pl:188
621 #: ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532
622 #: ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
623 msgid "SHELL QUOTING"
627 #: ../align/virt-alignment-scan.pod:176 ../cat/virt-cat.pod:193
628 #: ../cat/virt-filesystems.pod:367 ../cat/virt-ls.pod:485
629 #: ../df/virt-df.pod:217 ../edit/virt-edit.pod:344
630 #: ../inspector/virt-inspector.pod:354 ../rescue/virt-rescue.pod:268
631 #: ../resize/virt-resize.pod:603 ../tools/virt-list-filesystems.pl:190
632 #: ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534
633 #: ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
635 "Libvirt guest names can contain arbitrary characters, some of which have "
636 "meaning to the shell such as C<#> and space. You may need to quote or "
637 "escape these characters on the command line. See the shell manual page L<sh"
642 #: ../align/virt-alignment-scan.pod:181 ../cat/virt-cat.pod:198
643 #: ../cat/virt-filesystems.pod:372 ../cat/virt-ls.pod:490
644 #: ../df/virt-df.pod:222 ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1081
645 #: ../fuse/guestmount.pod:303 ../inspector/virt-inspector.pod:375
646 #: ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:227
647 #: ../test-tool/libguestfs-test-tool.pod:90
652 #: ../align/virt-alignment-scan.pod:183
653 msgid "This program returns:"
657 #: ../align/virt-alignment-scan.pod:187
662 #: ../align/virt-alignment-scan.pod:189
664 "successful exit, all partitions are aligned E<ge> 64K for best performance"
668 #: ../align/virt-alignment-scan.pod:191
673 #: ../align/virt-alignment-scan.pod:193
674 msgid "an error scanning the disk image or guest"
678 #: ../align/virt-alignment-scan.pod:195
683 #: ../align/virt-alignment-scan.pod:197
685 "successful exit, some partitions have alignment E<lt> 64K which can result "
686 "in poor performance on high end network storage"
690 #: ../align/virt-alignment-scan.pod:200
695 #: ../align/virt-alignment-scan.pod:202
697 "successful exit, some partitions have alignment E<lt> 4K which can result in "
698 "poor performance on most hypervisors"
702 #: ../align/virt-alignment-scan.pod:207 ../cat/virt-cat.pod:203
703 #: ../cat/virt-filesystems.pod:377 ../cat/virt-ls.pod:495
704 #: ../df/virt-df.pod:227 ../edit/virt-edit.pod:354
705 #: ../erlang/examples/guestfs-erlang.pod:97
706 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
707 #: ../fish/guestfish.pod:1235 ../fish/virt-copy-in.pod:50
708 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
709 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:308
710 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
711 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
712 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
713 #: ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36
714 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3179
715 #: ../test-tool/libguestfs-test-tool.pod:100
716 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
717 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
718 #: ../tools/virt-win-reg.pl:746
720 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
723 #: ../align/virt-alignment-scan.pod:209
726 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
727 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
728 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
730 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://libguestfs."
733 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
734 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
735 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
738 #: ../align/virt-alignment-scan.pod:214 ../cat/virt-cat.pod:212
739 #: ../cat/virt-filesystems.pod:388 ../cat/virt-ls.pod:507
740 #: ../df/virt-df.pod:235 ../edit/virt-edit.pod:368
741 #: ../rescue/virt-rescue.pod:296 ../resize/virt-resize.pod:635
742 #: ../sparsify/virt-sparsify.pod:264 ../tools/virt-list-filesystems.pl:208
743 #: ../tools/virt-list-partitions.pl:277 ../tools/virt-make-fs.pl:564
744 #: ../tools/virt-tar.pl:311 ../tools/virt-win-reg.pl:772
749 #: ../align/virt-alignment-scan.pod:216 ../cat/virt-cat.pod:214
750 #: ../cat/virt-filesystems.pod:390 ../cat/virt-ls.pod:509
751 #: ../df/virt-df.pod:237 ../edit/virt-edit.pod:370
752 #: ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:298
753 #: ../resize/virt-resize.pod:637 ../sparsify/virt-sparsify.pod:266
754 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-list-partitions.pl:279
755 #: ../tools/virt-make-fs.pl:566 ../tools/virt-tar.pl:313
756 #: ../tools/virt-win-reg.pl:774
757 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
758 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
761 #: ../align/virt-alignment-scan.pod:218 ../cat/virt-cat.pod:216
762 #: ../cat/virt-filesystems.pod:392 ../cat/virt-ls.pod:511
763 #: ../df/virt-df.pod:239 ../edit/virt-edit.pod:372
764 #: ../erlang/examples/guestfs-erlang.pod:114
765 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
766 #: ../fish/guestfish.pod:1266 ../fish/virt-copy-in.pod:64
767 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
768 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:323
769 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
770 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
771 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
772 #: ../resize/virt-resize.pod:639 ../ruby/examples/guestfs-ruby.pod:52
773 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3259
774 #: ../test-tool/libguestfs-test-tool.pod:110
775 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
776 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
777 #: ../tools/virt-win-reg.pl:776
779 msgstr "АВТОРСЬКІ ПРАВА"
782 #: ../align/virt-alignment-scan.pod:220 ../sparsify/virt-sparsify.pod:270
784 #| msgid "Copyright (C) 2009 Red Hat Inc."
785 msgid "Copyright (C) 2011 Red Hat Inc."
786 msgstr "© Red Hat Inc., 2009"
789 #: ../align/virt-alignment-scan.pod:222 ../cat/virt-cat.pod:220
790 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:515
791 #: ../df/virt-df.pod:243 ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1271
792 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
793 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
794 #: ../fuse/guestmount.pod:328 ../inspector/virt-inspector.pod:407
795 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:643
796 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
797 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
798 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
799 #: ../tools/virt-win-reg.pl:780
801 "This program is free software; you can redistribute it and/or modify it "
802 "under the terms of the GNU General Public License as published by the Free "
803 "Software Foundation; either version 2 of the License, or (at your option) "
808 #: ../align/virt-alignment-scan.pod:227 ../cat/virt-cat.pod:225
809 #: ../cat/virt-filesystems.pod:401 ../cat/virt-ls.pod:520
810 #: ../df/virt-df.pod:248 ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1276
811 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
812 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
813 #: ../fuse/guestmount.pod:333 ../inspector/virt-inspector.pod:412
814 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:648
815 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
816 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
817 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
818 #: ../tools/virt-win-reg.pl:785
820 "This program is distributed in the hope that it will be useful, but WITHOUT "
821 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
822 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for "
825 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
826 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
827 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
828 "дізнатися з GNU General Public License."
831 #: ../align/virt-alignment-scan.pod:232 ../cat/virt-cat.pod:230
832 #: ../cat/virt-filesystems.pod:406 ../cat/virt-ls.pod:525
833 #: ../df/virt-df.pod:253 ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1281
834 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
835 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
836 #: ../fuse/guestmount.pod:338 ../inspector/virt-inspector.pod:417
837 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:653
838 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
839 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
840 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
841 #: ../tools/virt-win-reg.pl:790
843 "You should have received a copy of the GNU General Public License along with "
844 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
845 "Ave, Cambridge, MA 02139, USA."
849 #: ../cat/virt-cat.pod:5
850 msgid "virt-cat - Display files in a virtual machine"
854 #: ../cat/virt-cat.pod:9
857 #| " virt-list-partitions [--options] domname\n"
860 " virt-cat [--options] -d domname file [file ...]\n"
863 " virt-list-partitions [--параметри] назва_домену\n"
867 #: ../cat/virt-cat.pod:11
870 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
873 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
876 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
880 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
881 #: ../inspector/virt-inspector.pod:13
886 #: ../cat/virt-cat.pod:15
889 " virt-cat domname file\n"
894 #: ../cat/virt-cat.pod:17
897 " virt-cat disk.img file\n"
902 #: ../cat/virt-cat.pod:21
904 "C<virt-cat> is a command line tool to display the contents of C<file> where "
905 "C<file> exists in the named virtual machine (or disk image)."
909 #: ../cat/virt-cat.pod:24
911 "Multiple filenames can be given, in which case they are concatenated "
912 "together. Each filename must be a full path, starting at the root directory "
913 "(starting with '/')."
917 #: ../cat/virt-cat.pod:28
919 "C<virt-cat> can be used to quickly view a file. To edit a file, use C<virt-"
920 "edit>. For more complex cases you should look at the L<guestfish(1)> tool "
921 "(see L</USING GUESTFISH> below)."
925 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
926 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
927 #: ../fish/guestfish.pod:1018 ../fish/virt-copy-in.pod:29
928 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
929 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
930 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
931 #: ../tools/virt-tar.pl:50
936 #: ../cat/virt-cat.pod:34
938 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
942 #: ../cat/virt-cat.pod:37
945 " virt-cat -d mydomain /etc/fstab\n"
950 #: ../cat/virt-cat.pod:39
951 msgid "List syslog messages from a VM disk image file:"
955 #: ../cat/virt-cat.pod:41
958 " virt-cat -a disk.img /var/log/messages | tail\n"
963 #: ../cat/virt-cat.pod:43
964 msgid "Find out what DHCP IP address a VM acquired:"
968 #: ../cat/virt-cat.pod:45
971 " virt-cat -d mydomain /var/log/messages | \\\n"
972 " grep 'dhclient: bound to' | tail\n"
977 #: ../cat/virt-cat.pod:48
978 msgid "Find out what packages were recently installed:"
982 #: ../cat/virt-cat.pod:50
985 " virt-cat -d mydomain /var/log/yum.log | tail\n"
990 #: ../cat/virt-cat.pod:52
991 msgid "Find out who is logged on inside a virtual machine:"
995 #: ../cat/virt-cat.pod:54
998 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1004 #: ../cat/virt-cat.pod:57
1005 msgid "or who was logged on:"
1009 #: ../cat/virt-cat.pod:59
1012 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1013 " last -f /tmp/wtmp\n"
1018 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1019 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1020 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
1022 "Add I<file> which should be a disk image from a virtual machine. If the "
1023 "virtual machine has multiple block devices, you must supply all of them with "
1024 "separate I<-a> options."
1028 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1029 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1030 #: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
1031 msgid "B<--echo-keys>"
1032 msgstr "B<--echo-keys>"
1035 #: ../cat/virt-cat.pod:100
1037 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1038 "so you cannot see what you are typing. If you are not worried about Tempest "
1039 "attacks and there is no one else in the room you can specify this flag to "
1040 "see what you are typing."
1044 #: ../cat/virt-cat.pod:116
1047 #| " guestfish --format=raw -a disk.img\n"
1050 " virt-cat --format=raw -a disk.img file\n"
1053 " guestfish --format=raw -a disk.img\n"
1057 #: ../cat/virt-cat.pod:120
1060 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
1063 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1066 " guestfish --format=raw -a disk.img --format -a another.img\n"
1070 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1071 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1072 #: ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
1073 msgid "B<--keys-from-stdin>"
1074 msgstr "B<--keys-from-stdin>"
1077 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1078 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1079 #: ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
1081 "Read key or passphrase parameters from stdin. The default is to try to read "
1082 "passphrases from the user by opening C</dev/tty>."
1086 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1087 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
1088 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1092 #: ../cat/virt-cat.pod:154
1093 msgid "Previous versions of virt-cat allowed you to write either:"
1097 #: ../cat/virt-cat.pod:156
1100 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1103 " virt-cat disk.img [disk.img ...] file\n"
1106 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1110 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1111 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
1118 #: ../cat/virt-cat.pod:160
1121 " virt-cat guestname file\n"
1126 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1127 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
1129 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1130 "the confusing case where a disk image might have the same name as a guest."
1134 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1135 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
1136 msgid "For compatibility the old style is still supported."
1140 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
1141 msgid "USING GUESTFISH"
1145 #: ../cat/virt-cat.pod:170
1147 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1148 "C<virt-cat> doesn't work."
1152 #: ../cat/virt-cat.pod:173
1153 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1157 #: ../cat/virt-cat.pod:175
1160 #| " guestfish --ro -d myguest -i\n"
1163 " guestfish --ro -i -d domname download file -\n"
1166 " guestfish --ro -d myguest -i\n"
1170 #: ../cat/virt-cat.pod:177
1172 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1173 "path to the file. Note the final C<-> (meaning \"output to stdout\")."
1177 #: ../cat/virt-cat.pod:181
1179 "The command above uses libguestfs's guest inspection feature and so does not "
1180 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1181 "disk images that don't contain guests. To display a file from a disk image "
1186 #: ../cat/virt-cat.pod:186
1189 #| " guestfish [--ro] -i disk.img\n"
1192 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1195 " guestfish [--ro] -i disk.img\n"
1199 #: ../cat/virt-cat.pod:188
1201 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1202 "the disk image, and C<file> is the full path to the file."
1206 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
1207 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1208 #: ../fuse/guestmount.pod:305 ../inspector/virt-inspector.pod:377
1209 #: ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:229
1211 "This program returns 0 if successful, or non-zero if there was an error."
1215 #: ../cat/virt-cat.pod:205
1218 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
1219 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
1220 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1222 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1223 "tar-out(1)>, L<http://libguestfs.org/>."
1225 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
1226 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
1227 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1230 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
1231 #: ../resize/virt-resize.pod:641
1233 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
1234 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1235 msgstr "© Red Hat Inc., 2009–2010"
1238 #: ../cat/virt-filesystems.pod:5
1240 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1241 "virtual machine or disk image"
1245 #: ../cat/virt-filesystems.pod:9
1248 #| " virt-list-partitions [--options] domname\n"
1251 " virt-filesystems [--options] -d domname\n"
1254 " virt-list-partitions [--параметри] назва_домену\n"
1258 #: ../cat/virt-filesystems.pod:11
1261 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1264 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1267 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1271 #: ../cat/virt-filesystems.pod:15
1273 "This tool allows you to discover filesystems, partitions, logical volumes, "
1274 "and their sizes in a disk image or virtual machine. It is a replacement for "
1275 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1279 #: ../cat/virt-filesystems.pod:20
1281 "One use for this tool is from shell scripts to iterate over all filesystems "
1282 "from a disk image:"
1286 #: ../cat/virt-filesystems.pod:23
1289 " for fs in $(virt-filesystems -a disk.img); do\n"
1296 #: ../cat/virt-filesystems.pod:27
1298 "Another use is to list partitions before using another tool to modify those "
1299 "partitions (such as L<virt-resize(1)>). If you are curious about what an "
1300 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1304 #: ../cat/virt-filesystems.pod:32
1306 "Various command line options control what this program displays. You need "
1307 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1308 "guest respectively. If you just specify that then the program shows "
1309 "filesystems found, one per line, like this:"
1313 #: ../cat/virt-filesystems.pod:37
1316 " $ virt-filesystems -a disk.img\n"
1318 " /dev/vg_guest/lv_root\n"
1323 #: ../cat/virt-filesystems.pod:41
1325 "If you add I<-l> or I<--long> then the output includes extra information:"
1329 #: ../cat/virt-filesystems.pod:44
1332 " $ virt-filesystems -a disk.img -l\n"
1333 " Name Type VFS Label Size\n"
1334 " /dev/sda1 filesystem ext4 boot 524288000\n"
1335 " /dev/vg_guest/lv_root filesystem ext4 root 10212081664\n"
1340 #: ../cat/virt-filesystems.pod:49
1342 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1347 #: ../cat/virt-filesystems.pod:52
1350 " $ virt-filesystems -a disk.img --extra\n"
1352 " /dev/vg_guest/lv_root\n"
1353 " /dev/vg_guest/lv_swap\n"
1354 " /dev/vg_guest/lv_data\n"
1359 #: ../cat/virt-filesystems.pod:58
1361 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1365 #: ../cat/virt-filesystems.pod:60
1368 " $ virt-filesystems -a disk.img --partitions\n"
1375 #: ../cat/virt-filesystems.pod:64
1377 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1378 "volumes>, I<--block-devices> to list those items."
1382 #: ../cat/virt-filesystems.pod:67
1384 "You can use these options in combination as well (if you want a combination "
1385 "including filesystems, you have to add I<--filesystems>). Notice that some "
1386 "items fall into several categories (eg. C</dev/sda1> might be both a "
1387 "partition and a filesystem). These items are listed several times. To get "
1388 "a list which includes absolutely everything that virt-filesystems knows "
1389 "about, use the I<--all> option."
1393 #: ../cat/virt-filesystems.pod:74
1395 "UUIDs (because they are quite long) are not shown by default. Add the I<--"
1396 "uuid> option to display device and filesystem UUIDs in the long output."
1400 #: ../cat/virt-filesystems.pod:78
1402 "I<--all --long --uuid> is a useful combination to display all possible "
1403 "information about everything."
1407 #: ../cat/virt-filesystems.pod:81
1410 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1411 " Name Type VFS Label Size Parent UUID\n"
1412 " /dev/sda1 filesystem ntfs System Reserved 100M - F81C92571C92112C\n"
1413 " /dev/sda2 filesystem ntfs - 20G - F2E8996AE8992E3B\n"
1414 " /dev/sda1 partition - - 100M /dev/sda -\n"
1415 " /dev/sda2 partition - - 20G /dev/sda -\n"
1416 " /dev/sda device - - 20G - -\n"
1421 #: ../cat/virt-filesystems.pod:89
1423 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1427 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1429 #| msgid "B<--help>"
1434 #: ../cat/virt-filesystems.pod:112
1436 "Display everything. This is currently the same as specifying these options: "
1437 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1438 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>. (More may be "
1439 "added to this list in future)."
1443 #: ../cat/virt-filesystems.pod:117
1445 #| msgid "See also L</is-lv>."
1446 msgid "See also I<--long>."
1447 msgstr "Див. також L</is-lv>."
1450 #: ../cat/virt-filesystems.pod:119
1452 #| msgid "B<--live>"
1453 msgid "B<--blkdevs>"
1457 #: ../cat/virt-filesystems.pod:121
1459 #| msgid "is-blockdev"
1460 msgid "B<--block-devices>"
1461 msgstr "is-blockdev"
1464 #: ../cat/virt-filesystems.pod:123
1466 #| msgid "is-blockdev"
1467 msgid "Display block devices."
1468 msgstr "is-blockdev"
1471 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1478 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1480 "Write out the results in CSV format (comma-separated values). This format "
1481 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1482 "ABOUT CSV FORMAT> below."
1486 #: ../cat/virt-filesystems.pod:150
1488 "When prompting for keys and passphrases, virt-filesystems normally turns "
1489 "echoing off so you cannot see what you are typing. If you are not worried "
1490 "about Tempest attacks and there is no one else in the room you can specify "
1491 "this flag to see what you are typing."
1495 #: ../cat/virt-filesystems.pod:155
1502 #: ../cat/virt-filesystems.pod:157
1504 "This causes filesystems that are not ordinary, mountable filesystems to be "
1505 "displayed. This category includes swapspace, and filesystems that are empty "
1506 "or contain unknown data."
1510 #: ../cat/virt-filesystems.pod:161
1511 msgid "This option implies I<--filesystems>."
1515 #: ../cat/virt-filesystems.pod:163
1517 #| msgid "list-filesystems"
1518 msgid "B<--filesystems>"
1519 msgstr "list-filesystems"
1522 #: ../cat/virt-filesystems.pod:165
1524 "Display mountable filesystems. If no display option was selected then this "
1525 "option is implied."
1529 #: ../cat/virt-filesystems.pod:168
1530 msgid "With I<--extra>, non-mountable filesystems are shown too."
1534 #: ../cat/virt-filesystems.pod:181
1537 #| " guestfish --format=raw -a disk.img\n"
1540 " virt-filesystems --format=raw -a disk.img\n"
1543 " guestfish --format=raw -a disk.img\n"
1547 #: ../cat/virt-filesystems.pod:185
1550 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
1553 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1556 " guestfish --format=raw -a disk.img --format -a another.img\n"
1560 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1561 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1562 #: ../tools/virt-list-partitions.pl:109
1567 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1568 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1570 #| msgid "B<-h> | B<--human-readable>"
1571 msgid "B<--human-readable>"
1572 msgstr "B<-h> | B<--human-readable>"
1575 #: ../cat/virt-filesystems.pod:198
1576 msgid "In I<--long> mode, display sizes in human-readable format."
1580 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1581 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1586 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1587 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1594 #: ../cat/virt-filesystems.pod:209
1595 msgid "Display extra columns of data (\"long format\")."
1599 #: ../cat/virt-filesystems.pod:211
1600 msgid "A title row is added unless you also specify I<--no-title>."
1604 #: ../cat/virt-filesystems.pod:213
1606 "The extra columns displayed depend on what output you select, and the "
1607 "ordering of columns may change in future versions. Use the title row, I<--"
1608 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1613 #: ../cat/virt-filesystems.pod:218
1615 "Use I<-h> if you want sizes to be displayed in human-readable format. The "
1616 "default is to show raw numbers of I<bytes>."
1620 #: ../cat/virt-filesystems.pod:221
1621 msgid "Use I<--uuid> to display UUIDs too."
1625 #: ../cat/virt-filesystems.pod:223
1627 #| msgid "B<--live>"
1632 #: ../cat/virt-filesystems.pod:225
1634 #| msgid "B<--live>"
1635 msgid "B<--logvols>"
1639 #: ../cat/virt-filesystems.pod:227
1641 #| msgid "B<--live>"
1642 msgid "B<--logical-volumes>"
1646 #: ../cat/virt-filesystems.pod:229
1648 "Display LVM logical volumes. In this mode, these are displayed irrespective "
1649 "of whether the LVs contain filesystems."
1653 #: ../cat/virt-filesystems.pod:232
1655 #| msgid "B<--listen>"
1656 msgid "B<--no-title>"
1657 msgstr "B<--listen>"
1660 #: ../cat/virt-filesystems.pod:234
1661 msgid "In I<--long> mode, don't add a title row."
1665 #: ../cat/virt-filesystems.pod:236
1667 "Note that the order of the columns is not fixed, and may change in future "
1668 "versions of virt-filesystems, so using this option may give you unexpected "
1673 #: ../cat/virt-filesystems.pod:240
1675 #| msgid "B<--partition>"
1677 msgstr "B<--partition>"
1680 #: ../cat/virt-filesystems.pod:242
1682 #| msgid "B<--partition>"
1683 msgid "B<--partitions>"
1684 msgstr "B<--partition>"
1687 #: ../cat/virt-filesystems.pod:244
1689 "Display partitions. In this mode, these are displayed irrespective of "
1690 "whether the partitions contain filesystems."
1694 #: ../cat/virt-filesystems.pod:247
1701 #: ../cat/virt-filesystems.pod:249
1703 #| msgid "B<--verbose>"
1704 msgid "B<--physvols>"
1705 msgstr "B<--verbose>"
1708 #: ../cat/virt-filesystems.pod:251
1709 msgid "B<--physical-volumes>"
1713 #: ../cat/virt-filesystems.pod:253
1714 msgid "Display LVM physical volumes."
1718 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1720 #| msgid "B<--live>"
1725 #: ../cat/virt-filesystems.pod:257
1732 #: ../cat/virt-filesystems.pod:259
1733 msgid "In I<--long> mode, display UUIDs as well."
1737 #: ../cat/virt-filesystems.pod:273
1744 #: ../cat/virt-filesystems.pod:275
1746 #| msgid "B<--verbose>"
1747 msgid "B<--volgroups>"
1748 msgstr "B<--verbose>"
1751 #: ../cat/virt-filesystems.pod:277
1753 #| msgid "B<--verbose>"
1754 msgid "B<--volume-groups>"
1755 msgstr "B<--verbose>"
1758 #: ../cat/virt-filesystems.pod:279
1759 msgid "Display LVM volume groups."
1763 #: ../cat/virt-filesystems.pod:287
1768 #: ../cat/virt-filesystems.pod:289
1770 "Note that columns in the output are subject to reordering and change in "
1771 "future versions of this tool."
1775 #: ../cat/virt-filesystems.pod:294
1780 #: ../cat/virt-filesystems.pod:296
1781 msgid "The filesystem, partition, block device or LVM name."
1785 #: ../cat/virt-filesystems.pod:298
1787 "For device and partition names these are displayed as canonical libguestfs "
1788 "names, so that for example C</dev/sda2> is the second partition on the first "
1793 #: ../cat/virt-filesystems.pod:302
1795 "If the I<--long> option is B<not> specified, then only the name column is "
1796 "shown in the output."
1800 #: ../cat/virt-filesystems.pod:305
1802 #| msgid "B<-N type>"
1807 #: ../cat/virt-filesystems.pod:307
1808 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1812 #: ../cat/virt-filesystems.pod:309
1817 #: ../cat/virt-filesystems.pod:311
1819 "If there is a filesystem, then this column displays the filesystem type if "
1820 "one could be detected, eg. C<ext4>."
1824 #: ../cat/virt-filesystems.pod:314
1829 #: ../cat/virt-filesystems.pod:316
1831 "If the object has a label (used for identifying and mounting filesystems) "
1832 "then this column contains the label."
1836 #: ../cat/virt-filesystems.pod:319
1838 #| msgid "B<part_size>"
1840 msgstr "B<part_size>"
1843 #: ../cat/virt-filesystems.pod:321
1845 "The size of the object in bytes. If the I<--human> option is used then the "
1846 "size is displayed in a human-readable form."
1850 #: ../cat/virt-filesystems.pod:324
1855 #: ../cat/virt-filesystems.pod:326
1857 "The parent column records the parent relationship between objects. For "
1858 "example, if the object is a partition, then this column contains the name of "
1859 "the containing device. If the object is a logical volume, then this column "
1860 "is the name of the volume group."
1864 #: ../cat/virt-filesystems.pod:331
1869 #: ../cat/virt-filesystems.pod:333
1871 "If the object has a UUID (used for identifying and mounting filesystems and "
1872 "block devices) then this column contains the UUID as a string."
1876 #: ../cat/virt-filesystems.pod:337
1877 msgid "The UUID is only displayed if the I<--uuid> option is given."
1881 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1882 #: ../df/virt-df.pod:191
1883 msgid "NOTE ABOUT CSV FORMAT"
1887 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1888 #: ../df/virt-df.pod:193
1890 "Comma-separated values (CSV) is a deceptive format. It I<seems> like it "
1891 "should be easy to parse, but it is definitely not easy to parse."
1895 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1896 #: ../df/virt-df.pod:196
1898 "Myth: Just split fields at commas. Reality: This does I<not> work "
1899 "reliably. This example has two columns:"
1903 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1904 #: ../df/virt-df.pod:199
1907 " \"foo,bar\",baz\n"
1912 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1913 #: ../df/virt-df.pod:201
1915 "Myth: Read the file one line at a time. Reality: This does I<not> work "
1916 "reliably. This example has one row:"
1920 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1921 #: ../df/virt-df.pod:204
1930 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1931 #: ../df/virt-df.pod:207
1933 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1934 "packaged in major Linux distributions)."
1938 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1939 #: ../df/virt-df.pod:210
1941 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1942 "or Python's built-in csv library)."
1946 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1947 #: ../df/virt-df.pod:213
1948 msgid "Most spreadsheets and databases can import CSV directly."
1952 #: ../cat/virt-filesystems.pod:379
1955 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1956 #| "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1957 #| "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1959 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1960 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1963 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1964 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1965 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1968 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
1969 #: ../tools/virt-win-reg.pl:778
1970 msgid "Copyright (C) 2010 Red Hat Inc."
1974 #: ../cat/virt-ls.pod:5
1975 msgid "virt-ls - List files in a virtual machine"
1979 #: ../cat/virt-ls.pod:9
1982 " virt-ls [--options] -d domname directory [directory ...]\n"
1987 #: ../cat/virt-ls.pod:11
1990 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1993 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1996 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2000 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2005 #: ../cat/virt-ls.pod:15
2008 #| " virt-list-partitions [--options] domname\n"
2011 " virt-ls [--options] domname directory\n"
2014 " virt-list-partitions [--параметри] назва_домену\n"
2018 #: ../cat/virt-ls.pod:17
2021 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2024 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2027 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2031 #: ../cat/virt-ls.pod:21
2033 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2034 "more from a virtual machine or disk image."
2038 #: ../cat/virt-ls.pod:24
2040 "Multiple directory names can be given, in which case the output from each is "
2045 #: ../cat/virt-ls.pod:27
2047 "To list directories from a libvirt guest use the I<-d> option to specify the "
2048 "name of the guest. For a disk image, use the I<-a> option."
2052 #: ../cat/virt-ls.pod:31
2054 "C<virt-ls> can do many simple file listings. For more complicated cases you "
2055 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2060 #: ../cat/virt-ls.pod:37
2061 msgid "Get a list of all files and directories in a virtual machine:"
2065 #: ../cat/virt-ls.pod:39
2068 #| " guestfish --ro -d myguest -i\n"
2071 " virt-ls -R -d guest /\n"
2074 " guestfish --ro -d myguest -i\n"
2078 #: ../cat/virt-ls.pod:41
2079 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2083 #: ../cat/virt-ls.pod:43
2086 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2091 #: ../cat/virt-ls.pod:45
2092 msgid "List all public-writable directories in a Linux virtual machine:"
2096 #: ../cat/virt-ls.pod:47
2099 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2104 #: ../cat/virt-ls.pod:49
2105 msgid "List all Unix domain sockets in a Linux virtual machine:"
2109 #: ../cat/virt-ls.pod:51
2112 " virt-ls -lR -d guest / | grep '^s'\n"
2117 #: ../cat/virt-ls.pod:53
2118 msgid "List all regular files with filenames ending in '.png':"
2122 #: ../cat/virt-ls.pod:55
2125 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2130 #: ../cat/virt-ls.pod:57
2131 msgid "To display files larger than 10MB in home directories:"
2135 #: ../cat/virt-ls.pod:59
2138 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2143 #: ../cat/virt-ls.pod:61
2144 msgid "Find everything modified in the last 7 days:"
2148 #: ../cat/virt-ls.pod:63
2151 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2156 #: ../cat/virt-ls.pod:65
2157 msgid "Find regular files modified in the last 24 hours:"
2161 #: ../cat/virt-ls.pod:67
2164 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2169 #: ../cat/virt-ls.pod:69
2170 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2174 #: ../cat/virt-ls.pod:71
2176 "Find the differences between files in a guest and an earlier snapshot of the "
2181 #: ../cat/virt-ls.pod:74
2184 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2185 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2186 " diff -u old new | less\n"
2191 #: ../cat/virt-ls.pod:78
2193 "The commands above won't find files where the content has changed but the "
2194 "metadata (eg. file size and modification date) is the same. To do that, you "
2195 "need to add the I<--checksum> parameter to both C<virt-ls> commands. I<--"
2196 "checksum> can be quite slow since it has to read and compute a checksum of "
2197 "every regular file in the virtual machine."
2201 #: ../cat/virt-ls.pod:84
2202 msgid "OUTPUT MODES"
2206 #: ../cat/virt-ls.pod:86
2208 "C<virt-ls> has four output modes, controlled by different combinations of "
2209 "the I<-l> and I<-R> options."
2213 #: ../cat/virt-ls.pod:89
2214 msgid "SIMPLE LISTING"
2218 #: ../cat/virt-ls.pod:91
2219 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2223 #: ../cat/virt-ls.pod:93
2226 " $ virt-ls -d guest /\n"
2234 #: ../cat/virt-ls.pod:98
2237 msgid "LONG LISTING"
2241 #: ../cat/virt-ls.pod:100
2243 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2244 "(more specifically, like the C<guestfs_ll> function)."
2248 #: ../cat/virt-ls.pod:103
2251 " $ virt-ls -l -d guest /\n"
2253 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
2254 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
2260 #: ../cat/virt-ls.pod:109
2262 "Note that while this is useful for displaying a directory, do not try "
2263 "parsing this output in another program. Use L</RECURSIVE LONG LISTING> "
2268 #: ../cat/virt-ls.pod:113
2269 msgid "RECURSIVE LISTING"
2273 #: ../cat/virt-ls.pod:115
2275 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2276 "and directories recursively:"
2280 #: ../cat/virt-ls.pod:118
2283 " $ virt-ls -R -d guest /tmp\n"
2291 #: ../cat/virt-ls.pod:123
2293 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2294 "converts C<\\0> characters to C<\\n>."
2298 #: ../cat/virt-ls.pod:126
2299 msgid "RECURSIVE LONG LISTING"
2303 #: ../cat/virt-ls.pod:128
2305 "Using I<-lR> options together changes the output to display directories "
2306 "recursively, with file stats, and optionally other features such as "
2307 "checksums and extended attributes."
2311 #: ../cat/virt-ls.pod:132
2313 "Most of the interesting features of C<virt-ls> are only available when using "
2318 #: ../cat/virt-ls.pod:135
2320 "The fields are normally space-separated. Filenames are B<not> quoted, so "
2321 "you cannot use the output in another program (because filenames can contain "
2322 "spaces and other unsafe characters). If the guest was untrusted and someone "
2323 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2324 "on you by creating filenames with embedded newline characters. To B<safely> "
2325 "parse the output in another program, use the I<--csv> (Comma-Separated "
2330 #: ../cat/virt-ls.pod:143
2332 "Note that this output format is completely unrelated to the C<ls -lR> "
2337 #: ../cat/virt-ls.pod:146
2340 " $ virt-ls -lR -d guest /bin\n"
2341 " d 0555 4096 /bin\n"
2342 " - 0755 123 /bin/alsaunmute\n"
2343 " - 0755 28328 /bin/arch\n"
2344 " l 0777 4 /bin/awk -> gawk\n"
2345 " - 0755 27216 /bin/basename\n"
2346 " - 0755 943360 /bin/bash\n"
2352 #: ../cat/virt-ls.pod:155
2353 msgid "These basic fields are always shown:"
2357 #: ../cat/virt-ls.pod:159
2364 #: ../cat/virt-ls.pod:161
2366 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2367 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2368 "link), C<s> (socket) or C<u> (unknown)."
2372 #: ../cat/virt-ls.pod:171
2379 #: ../cat/virt-ls.pod:173
2380 msgid "The Unix permissions, displayed as a 4 digit octal number."
2384 #: ../cat/virt-ls.pod:175
2391 #: ../cat/virt-ls.pod:177
2393 "The size of the file. This is shown in bytes unless I<-h> or I<--human-"
2394 "readable> option is given, in which case this is shown as a human-readable "
2399 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4245
2404 #: ../cat/virt-ls.pod:183
2405 msgid "The full path of the file or directory."
2409 #: ../cat/virt-ls.pod:185
2416 #: ../cat/virt-ls.pod:187
2417 msgid "For symbolic links only, the link target."
2421 #: ../cat/virt-ls.pod:191
2423 "In I<-lR> mode, additional command line options enable the display of more "
2428 #: ../cat/virt-ls.pod:194
2430 "With the I<--uids> flag, these additional fields are displayed before the "
2435 #: ../cat/virt-ls.pod:199
2442 #: ../cat/virt-ls.pod:201
2449 #: ../cat/virt-ls.pod:203
2451 "The UID and GID of the owner of the file (displayed numerically). Note "
2452 "these only make sense in the context of a Unix-like guest."
2456 #: ../cat/virt-ls.pod:208
2457 msgid "With the I<--times> flag, these additional fields are displayed:"
2461 #: ../cat/virt-ls.pod:212
2468 #: ../cat/virt-ls.pod:214
2469 msgid "The time of last access."
2473 #: ../cat/virt-ls.pod:216
2480 #: ../cat/virt-ls.pod:218
2481 msgid "The time of last modification."
2485 #: ../cat/virt-ls.pod:220
2492 #: ../cat/virt-ls.pod:222
2493 msgid "The time of last status change."
2497 #: ../cat/virt-ls.pod:226
2499 "The time fields are displayed as string dates and times, unless one of the "
2500 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2504 #: ../cat/virt-ls.pod:229
2505 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2509 #: ../cat/virt-ls.pod:233
2511 #| msgid "zero-device"
2513 msgstr "zero-device"
2516 #: ../cat/virt-ls.pod:235
2518 "The device containing the file (displayed as major:minor). This may not "
2519 "match devices as known to the guest."
2523 #: ../cat/virt-ls.pod:238
2528 #: ../cat/virt-ls.pod:240
2529 msgid "The inode number."
2533 #: ../cat/virt-ls.pod:242
2540 #: ../cat/virt-ls.pod:244
2541 msgid "The number of hard links."
2545 #: ../cat/virt-ls.pod:246
2550 #: ../cat/virt-ls.pod:248
2552 "For block and char special files, the device (displayed as major:minor)."
2556 #: ../cat/virt-ls.pod:251
2558 #| msgid "C<blocksize>"
2560 msgstr "C<blocksize>"
2563 #: ../cat/virt-ls.pod:253
2564 msgid "The number of 512 byte blocks allocated to the file."
2568 #: ../cat/virt-ls.pod:257
2570 "With the I<--checksum> flag, the checksum of the file contents is shown "
2571 "(only for regular files). Computing file checksums can take a considerable "
2576 #: ../cat/virt-ls.pod:280
2579 msgid "B<--checksum>"
2583 #: ../cat/virt-ls.pod:282
2584 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2588 #: ../cat/virt-ls.pod:284
2590 "Display checksum over file contents for regular files. With no argument, "
2591 "this defaults to using I<md5>. Using an argument, you can select the "
2592 "checksum type to use."
2596 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2597 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2598 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2600 "This option only has effect in I<-lR> output mode. See L</RECURSIVE LONG "
2605 #: ../cat/virt-ls.pod:316
2607 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2608 "so you cannot see what you are typing. If you are not worried about Tempest "
2609 "attacks and there is no one else in the room you can specify this flag to "
2610 "see what you are typing."
2614 #: ../cat/virt-ls.pod:321
2616 #| msgid "B<--no-dest-paths>"
2617 msgid "B<--extra-stats>"
2618 msgstr "B<--no-dest-paths>"
2621 #: ../cat/virt-ls.pod:323
2622 msgid "Display extra stats."
2626 #: ../cat/virt-ls.pod:339
2629 #| " guestfish --format=raw -a disk.img\n"
2632 " virt-ls --format=raw -a disk.img /dir\n"
2635 " guestfish --format=raw -a disk.img\n"
2639 #: ../cat/virt-ls.pod:343
2642 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2645 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2648 " guestfish --format=raw -a disk.img --format -a another.img\n"
2652 #: ../cat/virt-ls.pod:356
2653 msgid "Display file sizes in human-readable format."
2657 #: ../cat/virt-ls.pod:370
2662 #: ../cat/virt-ls.pod:372
2664 #| msgid "B<--live>"
2665 msgid "B<--recursive>"
2669 #: ../cat/virt-ls.pod:374
2671 "Select the mode. With neither of these options, C<virt-ls> produces a "
2672 "simple, flat list of the files in the named directory. See L</SIMPLE "
2677 #: ../cat/virt-ls.pod:378
2679 "C<virt-ls -l> produces a \"long listing\", which shows more detail. See L</"
2684 #: ../cat/virt-ls.pod:381
2686 "C<virt-ls -R> produces a recursive list of files starting at the named "
2687 "directory. See L</RECURSIVE LISTING>."
2691 #: ../cat/virt-ls.pod:384
2693 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2694 "parsed. See L</RECURSIVE LONG LISTING>."
2698 #: ../cat/virt-ls.pod:387
2700 #| msgid "B<--live>"
2705 #: ../cat/virt-ls.pod:389
2706 msgid "Display time fields."
2710 #: ../cat/virt-ls.pod:394
2712 #| msgid "B<--echo-keys>"
2713 msgid "B<--time-days>"
2714 msgstr "B<--echo-keys>"
2717 #: ../cat/virt-ls.pod:396
2718 msgid "Display time fields as days before now (negative if in the future)."
2722 #: ../cat/virt-ls.pod:398
2724 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2725 "of the file is between 0 and 86399 seconds."
2729 #: ../cat/virt-ls.pod:404
2731 #| msgid "B<--live>"
2732 msgid "B<--time-relative>"
2736 #: ../cat/virt-ls.pod:406
2737 msgid "Display time fields as seconds before now (negative if in the future)."
2741 #: ../cat/virt-ls.pod:411
2743 #| msgid "I<--timeout N>"
2745 msgstr "I<--timeout N>"
2748 #: ../cat/virt-ls.pod:413
2749 msgid "Display time fields as seconds since the Unix epoch."
2753 #: ../cat/virt-ls.pod:418
2760 #: ../cat/virt-ls.pod:420
2761 msgid "Display UID and GID fields."
2765 #: ../cat/virt-ls.pod:445
2766 msgid "Previous versions of virt-ls allowed you to write either:"
2770 #: ../cat/virt-ls.pod:447
2773 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2776 " virt-ls disk.img [disk.img ...] /dir\n"
2779 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2783 #: ../cat/virt-ls.pod:451
2786 #| " inspect-get-hostname root\n"
2789 " virt-ls guestname /dir\n"
2792 " inspect-get-hostname корінь\n"
2796 #: ../cat/virt-ls.pod:497
2799 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2800 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
2801 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2803 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2804 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2805 "L<http://libguestfs.org/>."
2807 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2808 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
2809 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2812 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2813 #: ../rescue/virt-rescue.pod:302
2815 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
2816 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2817 msgstr "© Red Hat Inc., 2009–2010"
2820 #: ../df/virt-df.pod:5
2821 msgid "virt-df - Display free space on virtual filesystems"
2825 #: ../df/virt-df.pod:9
2828 #| " virt-list-partitions [--options] domname\n"
2831 " virt-df [--options]\n"
2834 " virt-list-partitions [--параметри] назва_домену\n"
2838 #: ../df/virt-df.pod:11
2841 #| " virt-list-partitions [--options] domname\n"
2844 " virt-df [--options] -d domname\n"
2847 " virt-list-partitions [--параметри] назва_домену\n"
2851 #: ../df/virt-df.pod:13
2854 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2857 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2860 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2864 #: ../df/virt-df.pod:17
2867 #| " virt-list-partitions [--options] domname\n"
2870 " virt-df [--options] domname\n"
2873 " virt-list-partitions [--параметри] назва_домену\n"
2877 #: ../df/virt-df.pod:19
2880 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2883 " virt-df [--options] disk.img [disk.img ...]\n"
2886 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2890 #: ../df/virt-df.pod:23
2892 "C<virt-df> is a command line tool to display free space on virtual machine "
2893 "filesystems. Unlike other tools, it doesn't just display the size of disk "
2894 "allocated to a virtual machine, but can look inside disk images to see how "
2895 "much space is really being used."
2899 #: ../df/virt-df.pod:28
2901 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2902 "to get a list of all active and inactive guests, and performs a C<df>-type "
2903 "operation on each one in turn, printing out the results."
2907 #: ../df/virt-df.pod:32
2909 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2910 "type operation on either the single named libvirt domain, or on the disk "
2911 "image(s) listed on the command line (which must all belong to a single VM). "
2912 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2913 "guest>. If you want to run on multiple guests, then you have to invoke "
2914 "C<virt-df> multiple times."
2918 #: ../df/virt-df.pod:39
2920 "Use the I<--csv> option to get a format which can be easily parsed by other "
2921 "programs. Other options are similar to the standard L<df(1)> command."
2925 #: ../df/virt-df.pod:45
2927 "Show disk usage for a single libvirt guest called C<F14x64>. Make the "
2928 "output human-readable:"
2932 #: ../df/virt-df.pod:48
2935 " # virt-df -d F14x64 -h\n"
2936 " Filesystem Size Used Available Use%\n"
2937 " F14x64:/dev/sda1 484M 66M 393M 14%\n"
2938 " F14x64:/dev/vg_f13x64/lv_root 7.4G 3.4G 4.0G 46%\n"
2943 #: ../df/virt-df.pod:53
2944 msgid "Show disk usage for a disk image file called C<test.img>:"
2948 #: ../df/virt-df.pod:55
2951 " $ virt-df -a test1.img\n"
2952 " Filesystem 1K-blocks Used Available Use%\n"
2953 " test1.img:/dev/sda1 99099 1551 92432 2%\n"
2958 #: ../df/virt-df.pod:112
2961 #| " guestfish --format=raw -a disk.img\n"
2964 " virt-df --format=raw -a disk.img\n"
2967 " guestfish --format=raw -a disk.img\n"
2971 #: ../df/virt-df.pod:116
2974 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2977 " virt-df --format=raw -a disk.img --format -a another.img\n"
2980 " guestfish --format=raw -a disk.img --format -a another.img\n"
2984 #: ../df/virt-df.pod:129
2985 msgid "Print sizes in human-readable format."
2989 #: ../df/virt-df.pod:131
2990 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2994 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2999 #: ../df/virt-df.pod:135
3001 #| msgid "B<--live>"
3006 #: ../df/virt-df.pod:137
3007 msgid "Print inodes instead of blocks."
3011 #: ../df/virt-df.pod:139
3013 #| msgid "B<--merge>"
3014 msgid "B<--one-per-guest>"
3018 #: ../df/virt-df.pod:141
3020 "Run one libguestfs appliance per guest. Normally C<virt-df> will add the "
3021 "disks from several guests to a single libguestfs appliance."
3025 #: ../df/virt-df.pod:144
3026 msgid "You might use this option in the following circumstances:"
3030 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
3031 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
3032 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
3033 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
3034 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
3035 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
3036 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
3037 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
3038 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
3039 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
3040 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
3041 #: ../fish/guestfish-actions.pod:1139 ../fish/guestfish-actions.pod:1143
3042 #: ../fish/guestfish-actions.pod:1147 ../fish/guestfish-actions.pod:1151
3043 #: ../fish/guestfish-actions.pod:1159 ../fish/guestfish-actions.pod:1163
3044 #: ../fish/guestfish-actions.pod:1167 ../fish/guestfish-actions.pod:1177
3045 #: ../fish/guestfish-actions.pod:1181 ../fish/guestfish-actions.pod:1185
3046 #: ../fish/guestfish-actions.pod:1275 ../fish/guestfish-actions.pod:1279
3047 #: ../fish/guestfish-actions.pod:1284 ../fish/guestfish-actions.pod:1289
3048 #: ../fish/guestfish-actions.pod:1331 ../fish/guestfish-actions.pod:1335
3049 #: ../fish/guestfish-actions.pod:1340 ../fish/guestfish-actions.pod:1596
3050 #: ../fish/guestfish-actions.pod:1603 ../fish/guestfish-actions.pod:1610
3051 #: ../fish/guestfish-actions.pod:2005 ../fish/guestfish-actions.pod:2011
3052 #: ../fish/guestfish-actions.pod:2019 ../fish/guestfish-actions.pod:2026
3053 #: ../fish/guestfish-actions.pod:2033 ../fish/guestfish.pod:445
3054 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
3055 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
3056 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282
3057 #: ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295
3058 #: ../resize/virt-resize.pod:301 ../sparsify/virt-sparsify.pod:32
3059 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
3060 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
3061 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
3062 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
3063 #: ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596
3064 #: ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610
3065 #: ../src/guestfs-actions.pod:1778 ../src/guestfs-actions.pod:1782
3066 #: ../src/guestfs-actions.pod:1786 ../src/guestfs-actions.pod:1790
3067 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:1802
3068 #: ../src/guestfs-actions.pod:1806 ../src/guestfs-actions.pod:1816
3069 #: ../src/guestfs-actions.pod:1820 ../src/guestfs-actions.pod:1824
3070 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:1966
3071 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:1976
3072 #: ../src/guestfs-actions.pod:2037 ../src/guestfs-actions.pod:2041
3073 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2461
3074 #: ../src/guestfs-actions.pod:2468 ../src/guestfs-actions.pod:2475
3075 #: ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3018
3076 #: ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3033
3077 #: ../src/guestfs-actions.pod:3040 ../src/guestfs.pod:388
3078 #: ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402
3079 #: ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416
3080 #: ../src/guestfs.pod:421 ../src/guestfs.pod:1094 ../src/guestfs.pod:1098
3081 #: ../src/guestfs.pod:1102 ../src/guestfs.pod:1107 ../src/guestfs.pod:1115
3082 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1142 ../src/guestfs.pod:1164
3083 #: ../src/guestfs.pod:1168 ../src/guestfs.pod:1172 ../src/guestfs.pod:1176
3084 #: ../src/guestfs.pod:1180 ../src/guestfs.pod:1184 ../src/guestfs.pod:1674
3085 #: ../src/guestfs.pod:1679 ../src/guestfs.pod:1683 ../src/guestfs.pod:1785
3086 #: ../src/guestfs.pod:1790 ../src/guestfs.pod:1794 ../src/guestfs.pod:1804
3087 #: ../src/guestfs.pod:2093 ../src/guestfs.pod:2098 ../src/guestfs.pod:2104
3088 #: ../src/guestfs.pod:2112 ../src/guestfs.pod:2559 ../src/guestfs.pod:2565
3089 #: ../src/guestfs.pod:2570 ../src/guestfs.pod:2576 ../src/guestfs.pod:2971
3090 #: ../src/guestfs.pod:2976 ../src/guestfs.pod:2980 ../src/guestfs.pod:2984
3091 #: ../src/guestfs.pod:2988 ../src/guestfs.pod:3002 ../src/guestfs.pod:3007
3092 #: ../src/guestfs.pod:3236 ../src/guestfs.pod:3240 ../src/guestfs.pod:3244
3093 #: ../src/guestfs.pod:3248 ../tools/virt-win-reg.pl:197
3094 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
3095 #: ../tools/virt-win-reg.pl:710 ../tools/virt-win-reg.pl:716
3096 #: ../tools/virt-win-reg.pl:722
3101 #: ../df/virt-df.pod:150
3103 "If you think an untrusted guest might actively try to exploit the libguestfs "
3104 "appliance kernel, then this prevents one guest from interfering with the "
3105 "stats printed for another guest."
3109 #: ../df/virt-df.pod:156
3111 "If the kernel has a bug which stops it from accessing a filesystem in one "
3112 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3113 "and report stats for further guests."
3117 #: ../df/virt-df.pod:165
3119 "Print UUIDs instead of names. This is useful for following a guest even "
3120 "when the guest is migrated or renamed, or when two guests happen to have the "
3125 #: ../df/virt-df.pod:169
3127 "Note that only domains that we fetch from libvirt come with UUIDs. For disk "
3128 "images, we still print the disk image name even when this option is "
3133 #: ../df/virt-df.pod:229
3135 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
3140 #: ../edit/virt-edit.pod:5
3141 msgid "virt-edit - Edit a file in a virtual machine"
3145 #: ../edit/virt-edit.pod:9
3148 #| " virt-list-partitions [--options] domname\n"
3151 " virt-edit [--options] -d domname file [file ...]\n"
3154 " virt-list-partitions [--параметри] назва_домену\n"
3158 #: ../edit/virt-edit.pod:11
3161 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
3164 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
3167 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
3171 #: ../edit/virt-edit.pod:13
3174 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
3179 #: ../edit/virt-edit.pod:17
3182 " virt-edit domname file\n"
3187 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
3190 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
3193 " virt-edit disk.img [disk.img ...] file\n"
3196 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
3200 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
3201 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
3202 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
3203 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
3205 msgstr "ПОПЕРЕДЖЕННЯ"
3208 #: ../edit/virt-edit.pod:23
3210 "You must I<not> use C<virt-edit> on live virtual machines. If you do this, "
3211 "you risk disk corruption in the VM. C<virt-edit> tries to stop you from "
3212 "doing this, but doesn't catch all cases."
3216 #: ../edit/virt-edit.pod:29
3218 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
3219 "exists in the named virtual machine (or disk image)."
3223 #: ../edit/virt-edit.pod:32
3225 "Multiple filenames can be given, in which case they are each edited in "
3226 "turn. Each filename must be a full path, starting at the root directory "
3227 "(starting with '/')."
3231 #: ../edit/virt-edit.pod:36
3232 msgid "If you want to just view a file, use L<virt-cat(1)>."
3236 #: ../edit/virt-edit.pod:38
3238 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
3239 "USING GUESTFISH> below)."
3243 #: ../edit/virt-edit.pod:41
3245 "C<virt-edit> cannot be used to create a new file. L<guestfish(1)> can do "
3246 "that and much more."
3250 #: ../edit/virt-edit.pod:46
3251 msgid "Edit the named files interactively:"
3255 #: ../edit/virt-edit.pod:48
3258 " virt-edit -d mydomain /boot/grub/grub.conf\n"
3263 #: ../edit/virt-edit.pod:50
3266 " virt-edit -d mydomain /etc/passwd\n"
3271 #: ../edit/virt-edit.pod:52
3272 msgid "For Windows guests, some Windows paths are understood:"
3276 #: ../edit/virt-edit.pod:54
3279 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
3284 #: ../edit/virt-edit.pod:56
3286 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
3287 "INTERACTIVE EDITING> below). To change the init default level to 5:"
3291 #: ../edit/virt-edit.pod:60
3294 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
3299 #: ../edit/virt-edit.pod:81
3300 msgid "B<-b> extension"
3304 #: ../edit/virt-edit.pod:83
3305 msgid "B<--backup> extension"
3309 #: ../edit/virt-edit.pod:85
3311 "Create a backup of the original file I<in the guest disk image>. The backup "
3312 "has the original filename with C<extension> added."
3316 #: ../edit/virt-edit.pod:88
3318 "Usually the first character of C<extension> would be a dot C<.> so you would "
3323 #: ../edit/virt-edit.pod:91
3326 " virt-edit -b .orig [etc]\n"
3331 #: ../edit/virt-edit.pod:93
3332 msgid "By default, no backup file is made."
3336 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
3337 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
3338 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
3339 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
3341 msgstr "B<-c адреса>"
3344 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
3345 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
3346 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
3347 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
3348 msgid "B<--connect URI>"
3349 msgstr "B<--connect адреса>"
3352 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
3353 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
3354 #: ../tools/virt-win-reg.pl:135
3356 "If you specify guest block devices directly, then libvirt is not used at all."
3360 #: ../edit/virt-edit.pod:114
3362 "When prompting for keys and passphrases, virt-edit normally turns echoing "
3363 "off so you cannot see what you are typing. If you are not worried about "
3364 "Tempest attacks and there is no one else in the room you can specify this "
3365 "flag to see what you are typing."
3369 #: ../edit/virt-edit.pod:119
3374 #: ../edit/virt-edit.pod:121
3376 #| msgid "B<--help>"
3377 msgid "B<--expr> EXPR"
3381 #: ../edit/virt-edit.pod:123
3383 "Instead of launching the external editor, non-interactively apply the Perl "
3384 "expression C<EXPR> to each line in the file. See L</NON-INTERACTIVE "
3389 #: ../edit/virt-edit.pod:127
3391 "Be careful to properly quote the expression to prevent it from being altered "
3396 #: ../edit/virt-edit.pod:130
3397 msgid "Note that this option is only available when Perl 5 is installed."
3401 #: ../edit/virt-edit.pod:132
3403 #| msgid "B<--format=raw|qcow2|..>"
3404 msgid "B<--format> raw|qcow2|..."
3405 msgstr "B<--format=raw|qcow2|..>"
3408 #: ../edit/virt-edit.pod:143
3411 #| " guestfish --format=raw -a disk.img\n"
3414 " virt-edit --format=raw -a disk.img file\n"
3417 " guestfish --format=raw -a disk.img\n"
3421 #: ../edit/virt-edit.pod:147
3424 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3427 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3430 " guestfish --format=raw -a disk.img --format -a another.img\n"
3434 #: ../edit/virt-edit.pod:181
3435 msgid "Previous versions of virt-edit allowed you to write either:"
3439 #: ../edit/virt-edit.pod:187
3442 #| " edit filename\n"
3445 " virt-edit guestname file\n"
3448 " edit назва_файла\n"
3452 #: ../edit/virt-edit.pod:195
3453 msgid "NON-INTERACTIVE EDITING"
3457 #: ../edit/virt-edit.pod:197
3459 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3460 "administrator can interactively edit the file."
3464 #: ../edit/virt-edit.pod:200
3466 "There are two ways also to use C<virt-edit> from scripts in order to make "
3467 "automated edits to files. (Note that although you I<can> use C<virt-edit> "
3468 "like this, it's less error-prone to write scripts directly using the "
3469 "libguestfs API and Augeas for configuration file editing.)"
3473 #: ../edit/virt-edit.pod:206
3475 "The first method is to temporarily set C<$EDITOR> to any script or program "
3476 "you want to run. The script is invoked as C<$EDITOR tmpfile> and it should "
3477 "update C<tmpfile> in place however it likes."
3481 #: ../edit/virt-edit.pod:210
3483 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3484 "short Perl snippet in the style of L<sed(1)>. For example to replace all "
3485 "instances of C<foo> with C<bar> in a file:"
3489 #: ../edit/virt-edit.pod:214
3492 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3497 #: ../edit/virt-edit.pod:216
3499 "The full power of Perl regular expressions can be used (see L<perlre(1)>). "
3500 "For example to delete root's password you could do:"
3504 #: ../edit/virt-edit.pod:219
3507 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3512 #: ../edit/virt-edit.pod:221
3514 "What really happens is that the snippet is evaluated as a Perl expression "
3515 "for each line of the file. The line, including the final C<\\n>, is passed "
3516 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3520 #: ../edit/virt-edit.pod:226
3522 "To delete a line, set C<$_> to the empty string. For example, to delete the "
3523 "C<apache> user account from the password file you can do:"
3527 #: ../edit/virt-edit.pod:229
3530 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3535 #: ../edit/virt-edit.pod:231
3537 "To insert a line, prepend or append it to C<$_>. However appending lines to "
3538 "the end of the file is rather difficult this way since there is no concept "
3539 "of \"last line of the file\" - your expression just doesn't get called "
3540 "again. You might want to use the first method (setting C<$EDITOR>) if you "
3545 #: ../edit/virt-edit.pod:237
3547 "The variable C<$lineno> contains the current line number. As is "
3548 "traditional, the first line in the file is number C<1>."
3552 #: ../edit/virt-edit.pod:240
3554 "The return value from the expression is ignored, but the expression may call "
3555 "C<die> in order to abort the whole program, leaving the original file "
3560 #: ../edit/virt-edit.pod:244
3562 "Remember when matching the end of a line that C<$_> may contain the final C<"
3563 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
3564 "newline then neither of these. Thus to match or substitute some text at the "
3565 "end of a line, use this regular expression:"
3569 #: ../edit/virt-edit.pod:249
3572 " /some text(\\r?\\n)?$/\n"
3577 #: ../edit/virt-edit.pod:251
3579 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
3580 "$_> itself (since that would remove all newlines from the file):"
3584 #: ../edit/virt-edit.pod:255
3587 " my $m = $_; chomp $m; $m =~ /some text$/\n"
3592 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
3593 msgid "WINDOWS PATHS"
3597 #: ../edit/virt-edit.pod:259
3599 "C<virt-edit> has a limited ability to understand Windows drive letters and "
3600 "paths (eg. C<E:\\foo\\bar.txt>)."
3604 #: ../edit/virt-edit.pod:262
3605 msgid "If and only if the guest is running Windows then:"
3609 #: ../edit/virt-edit.pod:268
3611 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
3612 "to the correct filesystem."
3616 #: ../edit/virt-edit.pod:273
3618 "Any backslash (C<\\>) characters in the path are replaced with forward "
3619 "slashes so that libguestfs can process it."
3623 #: ../edit/virt-edit.pod:278
3625 "The path is resolved case insensitively to locate the file that should be "
3630 #: ../edit/virt-edit.pod:283
3631 msgid "There are some known shortcomings:"
3635 #: ../edit/virt-edit.pod:289
3636 msgid "Some NTFS symbolic links may not be followed correctly."
3640 #: ../edit/virt-edit.pod:293
3641 msgid "NTFS junction points that cross filesystems are not followed."
3645 #: ../edit/virt-edit.pod:299
3647 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
3648 "C<virt-edit> doesn't work."
3652 #: ../edit/virt-edit.pod:302
3653 msgid "Using C<virt-edit> is approximately equivalent to doing:"
3657 #: ../edit/virt-edit.pod:304
3660 #| " guestfish --ro -d myguest -i\n"
3663 " guestfish --rw -i -d domname edit /file\n"
3666 " guestfish --ro -d myguest -i\n"
3670 #: ../edit/virt-edit.pod:306
3672 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
3677 #: ../edit/virt-edit.pod:309
3679 "The command above uses libguestfs's guest inspection feature and so does not "
3680 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
3681 "disk images that don't contain guests. To edit a file on a disk image "
3686 #: ../edit/virt-edit.pod:314
3689 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3692 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3695 " guestfish --format=raw -a disk.img --format -a another.img\n"
3699 #: ../edit/virt-edit.pod:316
3701 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3702 "the disk image to edit, and C</file> is the full path to the file."
3706 #: ../edit/virt-edit.pod:320
3708 "C<virt-edit> cannot create new files. Use the guestfish commands C<touch>, "
3709 "C<write> or C<upload> instead:"
3713 #: ../edit/virt-edit.pod:323
3716 #| " guestfish --ro -d myguest -i\n"
3719 " guestfish --rw -i -d domname touch /newfile\n"
3722 " guestfish --ro -d myguest -i\n"
3726 #: ../edit/virt-edit.pod:325
3729 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3734 #: ../edit/virt-edit.pod:327
3737 " guestfish --rw -i -d domname upload localfile /newfile\n"
3742 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086
3743 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
3744 #: ../src/guestfs.pod:3118 ../test-tool/libguestfs-test-tool.pod:95
3745 msgid "ENVIRONMENT VARIABLES"
3746 msgstr "ЗМІННІ СЕРЕДОВИЩА"
3749 #: ../edit/virt-edit.pod:333
3756 #: ../edit/virt-edit.pod:335
3758 "If set, this string is used as the editor. It may contain arguments, eg. C<"
3763 #: ../edit/virt-edit.pod:338
3764 msgid "If not set, C<vi> is used."
3768 #: ../edit/virt-edit.pod:356
3771 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3772 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3773 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3775 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3776 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3777 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3779 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3780 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3781 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3784 #: ../erlang/examples/guestfs-erlang.pod:5
3785 msgid "guestfs-erlang - How to use libguestfs from Erlang"
3789 #: ../erlang/examples/guestfs-erlang.pod:9
3792 " {ok, G} = guestfs:create(),\n"
3793 " ok = guestfs:add_drive_opts(G, Disk,\n"
3794 " [{format, \"raw\"}, {readonly, true}]),\n"
3795 " ok = guestfs:launch(G),\n"
3796 " [Device] = guestfs:list_devices(G),\n"
3797 " ok = guestfs:close(G).\n"
3802 #: ../erlang/examples/guestfs-erlang.pod:18
3804 "This manual page documents how to call libguestfs from the Erlang "
3805 "programming language. This page just documents the differences from the C "
3806 "API and gives some examples. If you are not familiar with using libguestfs, "
3807 "you also need to read L<guestfs(3)>."
3811 #: ../erlang/examples/guestfs-erlang.pod:23
3812 msgid "OPENING AND CLOSING THE HANDLE"
3816 #: ../erlang/examples/guestfs-erlang.pod:25
3818 "The Erlang bindings are implemented using an external program called C<erl-"
3819 "guestfs>. This program must be on the current PATH, or else you should "
3820 "specify the full path to the program:"
3824 #: ../erlang/examples/guestfs-erlang.pod:29
3827 #| " g = guestfs_create ();\n"
3830 " {ok, G} = guestfs:create().\n"
3833 " g = guestfs_create ();\n"
3837 #: ../erlang/examples/guestfs-erlang.pod:31
3840 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
3845 #: ../erlang/examples/guestfs-erlang.pod:33
3846 msgid "C<G> is the libguestfs handle which you should pass to other functions."
3850 #: ../erlang/examples/guestfs-erlang.pod:36
3851 msgid "To close the handle:"
3855 #: ../erlang/examples/guestfs-erlang.pod:38
3858 #| " g = guestfs_create ();\n"
3861 " ok = guestfs:close(G).\n"
3864 " g = guestfs_create ();\n"
3868 #: ../erlang/examples/guestfs-erlang.pod:40
3870 #| msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
3871 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
3872 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
3875 #: ../erlang/examples/guestfs-erlang.pod:42
3877 "For functions that take optional arguments, the first arguments are the non-"
3878 "optional ones. The last argument is a list of tuples supplying the "
3879 "remaining optional arguments."
3883 #: ../erlang/examples/guestfs-erlang.pod:46
3886 #| " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3887 #| " va_list args);\n"
3890 " ok = guestfs:add_drive_opts(G, Disk,\n"
3891 " [{format, \"raw\"}, {readonly, true}]).\n"
3894 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3899 #: ../erlang/examples/guestfs-erlang.pod:49
3900 msgid "If the last argument would be an empty list, you can also omit it:"
3904 #: ../erlang/examples/guestfs-erlang.pod:51
3907 #| " guestfs_add_drive_opts (g, filename, -1);\n"
3910 " ok = guestfs:add_drive_opts(G, Disk).\n"
3913 " guestfs_add_drive_opts (g, filename, -1);\n"
3917 #: ../erlang/examples/guestfs-erlang.pod:53
3918 msgid "RETURN VALUES AND ERRORS"
3922 #: ../erlang/examples/guestfs-erlang.pod:55
3924 "On success, most functions return a C<Result> term (which could be a list, "
3925 "string, tuple etc.). If there is nothing for the function to return, then "
3926 "the atom C<ok> is returned."
3930 #: ../erlang/examples/guestfs-erlang.pod:59
3931 msgid "On error, you would see one of the following tuples:"
3935 #: ../erlang/examples/guestfs-erlang.pod:63
3936 msgid "C<{error, Msg, Errno}>"
3940 #: ../erlang/examples/guestfs-erlang.pod:65
3941 msgid "This indicates an ordinary error from the function."
3945 #: ../erlang/examples/guestfs-erlang.pod:67
3947 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
3952 #: ../erlang/examples/guestfs-erlang.pod:70
3953 msgid "C<Errno> can be zero. See L<guestfs(3)/guestfs_last_errno>."
3957 #: ../erlang/examples/guestfs-erlang.pod:72
3958 msgid "C<{unknown, Function}>"
3962 #: ../erlang/examples/guestfs-erlang.pod:74
3964 "This indicates that the function you called is not known. Generally this "
3965 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
3966 "which you should not do."
3970 #: ../erlang/examples/guestfs-erlang.pod:78
3971 msgid "C<Function> is the name of the unknown function."
3975 #: ../erlang/examples/guestfs-erlang.pod:80
3976 msgid "C<{unknownarg, Arg}>"
3980 #: ../erlang/examples/guestfs-erlang.pod:82
3982 "This indicates that you called a function with optional arguments, with an "
3983 "unknown argument name."
3987 #: ../erlang/examples/guestfs-erlang.pod:85
3988 msgid "C<Arg> is the name of the unknown argument."
3992 #: ../erlang/examples/guestfs-erlang.pod:89
3993 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3994 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3995 #: ../python/examples/guestfs-python.pod:34
3996 #: ../ruby/examples/guestfs-ruby.pod:28
3997 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4001 #: ../erlang/examples/guestfs-erlang.pod:91
4002 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4003 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4004 #: ../python/examples/guestfs-python.pod:36
4005 #: ../ruby/examples/guestfs-ruby.pod:30
4012 #: ../erlang/examples/guestfs-erlang.pod:93
4013 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4014 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4015 #: ../python/examples/guestfs-python.pod:38
4016 #: ../ruby/examples/guestfs-ruby.pod:32
4017 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4021 #: ../erlang/examples/guestfs-erlang.pod:95
4022 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4023 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4024 #: ../python/examples/guestfs-python.pod:40
4025 #: ../ruby/examples/guestfs-ruby.pod:34
4032 #: ../erlang/examples/guestfs-erlang.pod:99
4035 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4036 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
4037 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4039 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4040 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4041 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>."
4043 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4044 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
4045 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4048 #: ../erlang/examples/guestfs-erlang.pod:110
4049 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4050 #: ../fish/guestfish.pod:1262 ../fish/virt-copy-in.pod:60
4051 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4052 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:319
4053 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
4054 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4055 #: ../python/examples/guestfs-python.pod:54
4056 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3255
4057 #: ../test-tool/libguestfs-test-tool.pod:106
4062 #: ../erlang/examples/guestfs-erlang.pod:112
4063 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4064 #: ../fish/guestfish.pod:1264 ../fish/virt-copy-in.pod:62
4065 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4066 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:321
4067 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4068 #: ../perl/examples/guestfs-perl.pod:54
4069 #: ../python/examples/guestfs-python.pod:56
4070 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3257
4071 #: ../test-tool/libguestfs-test-tool.pod:108
4072 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4076 #: ../erlang/examples/guestfs-erlang.pod:116
4077 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4079 #| msgid "Copyright (C) 2009 Red Hat Inc."
4080 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4081 msgstr "© Red Hat Inc., 2009"
4084 #: ../erlang/examples/guestfs-erlang.pod:118
4085 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4086 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4087 #: ../perl/examples/guestfs-perl.pod:60
4088 #: ../python/examples/guestfs-python.pod:62
4089 #: ../ruby/examples/guestfs-ruby.pod:56
4091 "The examples in this manual page may be freely copied, modified and "
4092 "distributed without any restrictions."
4096 #: ../erlang/examples/guestfs-erlang.pod:121
4097 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4098 #: ../java/examples/guestfs-java.pod:69
4099 #: ../ocaml/examples/guestfs-ocaml.pod:102
4100 #: ../perl/examples/guestfs-perl.pod:63
4101 #: ../python/examples/guestfs-python.pod:65
4102 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3264
4104 "This library is free software; you can redistribute it and/or modify it "
4105 "under the terms of the GNU Lesser General Public License as published by the "
4106 "Free Software Foundation; either version 2 of the License, or (at your "
4107 "option) any later version."
4111 #: ../erlang/examples/guestfs-erlang.pod:126
4112 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4113 #: ../java/examples/guestfs-java.pod:74
4114 #: ../ocaml/examples/guestfs-ocaml.pod:107
4115 #: ../perl/examples/guestfs-perl.pod:68
4116 #: ../python/examples/guestfs-python.pod:70
4117 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3269
4119 "This library is distributed in the hope that it will be useful, but WITHOUT "
4120 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4121 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License "
4126 #: ../erlang/examples/guestfs-erlang.pod:131
4127 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4128 #: ../java/examples/guestfs-java.pod:79
4129 #: ../ocaml/examples/guestfs-ocaml.pod:112
4130 #: ../perl/examples/guestfs-perl.pod:73
4131 #: ../python/examples/guestfs-python.pod:75
4132 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3274
4134 "You should have received a copy of the GNU Lesser General Public License "
4135 "along with this library; if not, write to the Free Software Foundation, "
4136 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4140 #: ../examples/guestfs-examples.pod:5
4141 msgid "guestfs-examples - Examples of using libguestfs from C"
4145 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4148 " #include <guestfs.h>\n"
4151 " #include <guestfs.h>\n"
4155 #: ../examples/guestfs-examples.pod:11
4158 " guestfs_h *g = guestfs_create ();\n"
4159 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4160 " guestfs_launch (g);\n"
4165 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4168 " cc prog.c -o prog -lguestfs\n"
4170 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4173 " cc prog.c -o prog -lguestfs\n"
4175 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4179 #: ../examples/guestfs-examples.pod:21
4181 "This manual page contains examples of calling libguestfs from the C "
4182 "programming language. If you are not familiar with using libguestfs, you "
4183 "also need to read L<guestfs(3)>."
4187 #: ../examples/guestfs-examples.pod:35
4190 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4191 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
4192 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4194 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4195 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4196 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4198 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4199 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
4200 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4203 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
4204 #: ../python/examples/guestfs-python.pod:60
4205 #: ../ruby/examples/guestfs-ruby.pod:54
4207 #| msgid "Copyright (C) 2009 Red Hat Inc."
4208 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4209 msgstr "© Red Hat Inc., 2009"
4212 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4217 #: ../examples/guestfs-recipes.pod:5
4219 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4220 "here. The only way which works for both sorts of output is to just write "
4221 "the URL directly. Do NOT use L<...> for URLs."
4225 #: ../examples/guestfs-recipes.pod:9
4227 "We break with tradition here and don't use ALL CAPS for the section "
4228 "headings, as this makes them much easier to read."
4232 #: ../examples/guestfs-recipes.pod:16
4233 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
4237 #: ../examples/guestfs-recipes.pod:20
4239 "This page contains recipes for and links to things you can do using "
4240 "libguestfs, L<guestfish(1)> and the virt tools."
4244 #: ../examples/guestfs-recipes.pod:23
4245 msgid "Audit a virtual machine for setuid files"
4249 #: ../examples/guestfs-recipes.pod:25
4251 "The link below contains a small program which can be used to audit a Linux "
4252 "virtual machine to see what setuid and setgid files it contains."
4256 #: ../examples/guestfs-recipes.pod:28
4258 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
4263 #: ../examples/guestfs-recipes.pod:30
4264 msgid "Change the background image in a Windows XP VM"
4268 #: ../examples/guestfs-recipes.pod:32
4270 "The links below explain how to use L<guestfish(1)> to change the background "
4271 "image for a user of a Windows XP VM. Unfortunately the technique appears to "
4272 "be substantially different for each version of Windows."
4276 #: ../examples/guestfs-recipes.pod:37
4278 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
4279 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
4283 #: ../examples/guestfs-recipes.pod:40
4284 msgid "Cloning a virtual machine (Linux)"
4288 #: ../examples/guestfs-recipes.pod:42
4290 "The guestfish technique described in the link below works well for most "
4291 "Linux VMs. Depending on the Linux distro you may need to change the paths "
4296 #: ../examples/guestfs-recipes.pod:46
4298 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
4303 #: ../examples/guestfs-recipes.pod:48
4305 "Avoid L<virt-clone(1)>. Currently what to do about virt-clone is under "
4310 #: ../examples/guestfs-recipes.pod:51
4311 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
4315 #: ../examples/guestfs-recipes.pod:53
4316 msgid "Cloning a virtual machine (Windows)"
4320 #: ../examples/guestfs-recipes.pod:55
4322 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
4323 "straightforward. Currently there is code in the Aeolus Oz project which "
4324 "does this (using libguestfs). As part of our review of the virt-clone tool, "
4325 "we may add sysprepping ability."
4329 #: ../examples/guestfs-recipes.pod:60
4331 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
4332 "list/2011-May/msg00019.html"
4336 #: ../examples/guestfs-recipes.pod:63
4337 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
4341 #: ../examples/guestfs-recipes.pod:65
4342 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
4346 #: ../examples/guestfs-recipes.pod:67
4349 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
4354 #: ../examples/guestfs-recipes.pod:69
4355 msgid "To export just a subdirectory, eg. C</files>, do:"
4359 #: ../examples/guestfs-recipes.pod:71
4362 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
4367 #: ../examples/guestfs-recipes.pod:73
4368 msgid "Create empty disk images"
4372 #: ../examples/guestfs-recipes.pod:75
4374 "You can use the L<guestfish(1)> I<-N> option to create empty disk images. "
4375 "The useful guide below explains the options available."
4379 #: ../examples/guestfs-recipes.pod:78
4381 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
4386 #: ../examples/guestfs-recipes.pod:80
4387 msgid "Dump raw filesystem content from inside a disk image or VM"
4391 #: ../examples/guestfs-recipes.pod:82
4393 "You can use the L<guestfish(1)> C<download> command to extract the raw "
4394 "filesystem content from any filesystem in a disk image or a VM (even one "
4395 "which is encrypted or buried inside an LV):"
4399 #: ../examples/guestfs-recipes.pod:86
4402 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
4405 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
4408 " guestfish --format=raw -a disk.img --format -a another.img\n"
4412 #: ../examples/guestfs-recipes.pod:88
4415 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
4420 #: ../examples/guestfs-recipes.pod:90
4421 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
4425 #: ../examples/guestfs-recipes.pod:92
4426 msgid "Edit grub configuration in a VM"
4430 #: ../examples/guestfs-recipes.pod:94
4431 msgid "You can use this to:"
4435 #: ../examples/guestfs-recipes.pod:100
4436 msgid "Fix a virtual machine that does not boot."
4440 #: ../examples/guestfs-recipes.pod:104
4441 msgid "Change which kernel is used to boot the VM."
4445 #: ../examples/guestfs-recipes.pod:108
4446 msgid "Change kernel command line options."
4450 #: ../examples/guestfs-recipes.pod:112
4451 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
4455 #: ../examples/guestfs-recipes.pod:114
4458 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
4463 #: ../examples/guestfs-recipes.pod:116
4465 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
4470 #: ../examples/guestfs-recipes.pod:119
4473 " virt-rescue -d BrokenGuest\n"
4478 #: ../examples/guestfs-recipes.pod:121
4479 msgid "Export any directory from a VM"
4483 #: ../examples/guestfs-recipes.pod:123
4485 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
4489 #: ../examples/guestfs-recipes.pod:126
4492 #| " copy-out /home .\n"
4495 " virt-copy-out -d Guest /home .\n"
4498 " copy-out /home .\n"
4502 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
4503 #: ../fish/guestfish-actions.pod:1327 ../fish/guestfish-actions.pod:1592
4504 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:18
4505 #: ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:2457
4506 #: ../src/guestfs-actions.pod:3008 ../src/guestfs.pod:1670
4507 #: ../tools/virt-win-reg.pl:706
4512 #: ../examples/guestfs-recipes.pod:134
4514 "The final dot of the command is not a printing error. It means we want to "
4515 "copy out to the current directory."
4519 #: ../examples/guestfs-recipes.pod:139
4520 msgid "This creates a directory called C<home> under the current directory."
4524 #: ../examples/guestfs-recipes.pod:143
4526 "If the guest is a Windows guest then you can use drive letters and "
4527 "backslashes, but you must prefix the path with C<win:> and quote it to "
4528 "protect it from the shell, like this:"
4532 #: ../examples/guestfs-recipes.pod:147
4535 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
4540 #: ../examples/guestfs-recipes.pod:149
4541 msgid "To get the output as a compressed tarball, do:"
4545 #: ../examples/guestfs-recipes.pod:151
4548 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
4553 #: ../examples/guestfs-recipes.pod:153
4555 "Although it sounds tempting, this is usually not a reliable way to get a "
4556 "backup from a running guest. See the entry in the FAQ: http://libguestfs."
4557 "org/FAQ.html#backup"
4561 #: ../examples/guestfs-recipes.pod:157
4562 msgid "Find out which user is using the most space"
4566 #: ../examples/guestfs-recipes.pod:159
4568 "This simple script examines a Linux guest to find out which user is using "
4569 "the most space in their home directory:"
4573 #: ../examples/guestfs-recipes.pod:162
4576 #| " #!/usr/bin/guestfish -f\n"
4582 " #!/usr/bin/guestfish -f\n"
4586 #: ../examples/guestfs-recipes.pod:164
4589 #| " set-qemu qemu\n"
4599 #: ../examples/guestfs-recipes.pod:166
4608 #: ../examples/guestfs-recipes.pod:169
4611 #| " guestfish --ro -d myguest -i\n"
4614 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
4617 " guestfish --ro -d myguest -i\n"
4621 #: ../examples/guestfs-recipes.pod:171
4624 " for d in $(guestfish --remote ls \"$dir\"); do\n"
4625 " echo -n \"$dir/$d\"\n"
4627 " guestfish --remote du \"$dir/$d\";\n"
4628 " done | sort -nr -k 2\n"
4633 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
4636 " guestfish --remote exit\n"
4641 #: ../examples/guestfs-recipes.pod:179
4642 msgid "Get DHCP address from a VM"
4646 #: ../examples/guestfs-recipes.pod:181
4648 "The link below explains the many different possible techniques for getting "
4649 "the last assigned DHCP address of a virtual machine."
4653 #: ../examples/guestfs-recipes.pod:184
4655 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
4656 "a-virtual-machine-disk-image/#content"
4660 #: ../examples/guestfs-recipes.pod:186
4662 "In the libguestfs source examples directory you will find the latest version "
4663 "of the C<virt-dhcp-address.c> program."
4667 #: ../examples/guestfs-recipes.pod:189
4668 msgid "Get the operating system product name string"
4672 #: ../examples/guestfs-recipes.pod:191
4673 msgid "Save the following script into a file called C<product-name.sh>:"
4677 #: ../examples/guestfs-recipes.pod:193
4680 #| " eval \"`guestfish --listen`\"\n"
4681 #| " guestfish --remote add-ro disk.img\n"
4682 #| " guestfish --remote run\n"
4683 #| " guestfish --remote lvs\n"
4688 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4689 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4690 " guestfish --remote inspect-get-product-name \"$root\"\n"
4691 " guestfish --remote exit\n"
4694 " eval \"`guestfish --listen`\"\n"
4695 " guestfish --remote add-ro disk.img\n"
4696 " guestfish --remote run\n"
4697 " guestfish --remote lvs\n"
4701 #: ../examples/guestfs-recipes.pod:200
4702 msgid "Make the script executable and run it on a named guest:"
4706 #: ../examples/guestfs-recipes.pod:202
4709 " # product-name.sh RHEL60x64\n"
4710 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4715 #: ../examples/guestfs-recipes.pod:205
4717 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4718 "C<xpath> command line tool or from your favourite programming language:"
4722 #: ../examples/guestfs-recipes.pod:209
4725 " # virt-inspector RHEL60x64 > xml\n"
4726 " # xpath '//product_name' < xml\n"
4729 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
4734 #: ../examples/guestfs-recipes.pod:215
4735 msgid "Get the default boot kernel for a Linux VM"
4739 #: ../examples/guestfs-recipes.pod:217
4741 "The link below contains a program to print the default boot kernel for a "
4746 #: ../examples/guestfs-recipes.pod:220
4748 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
4749 "kernel-for-a-vm/#content"
4753 #: ../examples/guestfs-recipes.pod:222
4755 "It uses Augeas, and the technique is generally applicable for many different "
4760 #: ../examples/guestfs-recipes.pod:229
4761 msgid "listing the user accounts in the guest"
4765 #: ../examples/guestfs-recipes.pod:233
4766 msgid "what repositories is it configured to use"
4770 #: ../examples/guestfs-recipes.pod:237
4771 msgid "what NTP servers does it connect to"
4775 #: ../examples/guestfs-recipes.pod:241
4776 msgid "what were the boot messages last time it booted"
4780 #: ../examples/guestfs-recipes.pod:245
4781 msgid "listing who was logged in recently"
4785 #: ../examples/guestfs-recipes.pod:249
4786 msgid "http://augeas.net/"
4790 #: ../examples/guestfs-recipes.pod:251
4791 msgid "Install RPMs in a guest"
4795 #: ../examples/guestfs-recipes.pod:253
4797 "The link below contains a method to install RPMs in a guest. In fact the "
4798 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4799 "installs them next time the guest is booted. You could use this technique "
4800 "to install vital security updates in an offline guest."
4804 #: ../examples/guestfs-recipes.pod:259
4806 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4810 #: ../examples/guestfs-recipes.pod:261
4811 msgid "List applications installed in a VM"
4815 #: ../examples/guestfs-recipes.pod:263
4816 msgid "Save the following to a file C<list-apps.sh>:"
4820 #: ../examples/guestfs-recipes.pod:265
4823 #| " eval \"`guestfish --listen`\"\n"
4824 #| " guestfish --remote add-ro disk.img\n"
4825 #| " guestfish --remote run\n"
4826 #| " guestfish --remote lvs\n"
4831 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4832 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4833 " guestfish --remote inspect-list-applications \"$root\"\n"
4834 " guestfish --remote exit\n"
4837 " eval \"`guestfish --listen`\"\n"
4838 " guestfish --remote add-ro disk.img\n"
4839 " guestfish --remote run\n"
4840 " guestfish --remote lvs\n"
4844 #: ../examples/guestfs-recipes.pod:272
4846 "Make the file executable and then you can run it on any named virtual "
4851 #: ../examples/guestfs-recipes.pod:275
4854 " # list-apps.sh WinGuest\n"
4856 " app_name: Mozilla Firefox (3.6.12)\n"
4857 " app_display_name: Mozilla Firefox (3.6.12)\n"
4859 " app_version: 3.6.12 (en-GB)\n"
4861 " app_install_path: C:\\Program Files\\Mozilla Firefox\n"
4862 " app_trans_path:\n"
4863 " app_publisher: Mozilla\n"
4864 " app_url: http://www.mozilla.com/en-GB/\n"
4865 " app_source_package:\n"
4867 " app_description: Mozilla Firefox\n"
4870 " app_name: VLC media player\n"
4871 " app_display_name: VLC media player 1.1.5\n"
4873 " app_version: 1.1.5\n"
4875 " app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
4876 " app_trans_path:\n"
4877 " app_publisher: VideoLAN\n"
4878 " app_url: http://www.videolan.org/\n"
4879 " app_source_package:\n"
4881 " app_description:\n"
4887 #: ../examples/guestfs-recipes.pod:305
4889 "If you want to run the script on disk images (instead of libvirt virtual "
4890 "machines), change C<-d \"$1\"> to C<-a \"$1\">. See also L<virt-inspector(1)"
4895 #: ../examples/guestfs-recipes.pod:309
4896 msgid "List files and directories in a VM"
4900 #: ../examples/guestfs-recipes.pod:311
4901 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
4905 #: ../examples/guestfs-recipes.pod:313
4908 #| " guestfish --ro -d myguest -i\n"
4911 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
4914 " guestfish --ro -d myguest -i\n"
4918 #: ../examples/guestfs-recipes.pod:315
4919 msgid "List services in a Windows VM"
4923 #: ../examples/guestfs-recipes.pod:317
4925 "The link below contains a script that can be used to list out the services "
4926 "from a Windows VM, and whether those services run at boot time or are loaded "
4931 #: ../examples/guestfs-recipes.pod:321
4933 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
4938 #: ../examples/guestfs-recipes.pod:323
4939 msgid "Make a disk image sparse"
4943 #: ../examples/guestfs-recipes.pod:325
4945 "The link below contains some guides for making a disk image sparse (or "
4946 "reintroducing sparseness)."
4950 #: ../examples/guestfs-recipes.pod:328
4952 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
4956 #: ../examples/guestfs-recipes.pod:330
4957 msgid "Monitor disk usage over time"
4961 #: ../examples/guestfs-recipes.pod:332
4963 "You can use L<virt-df(1)> to monitor disk usage of your guests over time. "
4964 "The link below contains a guide."
4968 #: ../examples/guestfs-recipes.pod:335
4969 msgid "http://virt-tools.org/learning/advanced-virt-df/"
4973 #: ../examples/guestfs-recipes.pod:337
4974 msgid "Reading the Windows Event Log from Windows Vista (or later)"
4978 #: ../examples/guestfs-recipes.pod:339
4980 "L<guestfish(1)> plus the tools described in the link below can be used to "
4981 "read out the Windows Event Log from any virtual machine running Windows "
4982 "Vista or a later version."
4986 #: ../examples/guestfs-recipes.pod:343
4988 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
4989 "guestfish/#content"
4993 #: ../examples/guestfs-recipes.pod:345
4994 msgid "Remove root password (Linux)"
4998 #: ../examples/guestfs-recipes.pod:347
5000 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5001 "files. One use is to remove the root password from a Linux guest:"
5005 #: ../examples/guestfs-recipes.pod:350
5008 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5013 #: ../examples/guestfs-recipes.pod:352
5014 msgid "Remove Administrator password (Windows)"
5018 #: ../examples/guestfs-recipes.pod:354
5020 "The link below contains one technique for removing the Administrator "
5021 "password from a Windows VM, or to be more precise, it gives you a command "
5022 "prompt the next time you log in which you can use to bypass any security:"
5026 #: ../examples/guestfs-recipes.pod:359
5028 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5029 "administrator-password-with-guestfish/"
5033 #: ../examples/guestfs-recipes.pod:361
5034 msgid "Unpack a live CD"
5038 #: ../examples/guestfs-recipes.pod:363
5040 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5041 "Russian doll. You can use L<guestfish(1)> to look inside these multiple "
5042 "layers, as outlined in the guide below."
5046 #: ../examples/guestfs-recipes.pod:367
5048 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5053 #: ../examples/guestfs-recipes.pod:369
5054 msgid "Uploading and downloading files"
5058 #: ../examples/guestfs-recipes.pod:371
5060 "The link below contains general tips on uploading (copying in) and "
5061 "downloading (copying out) files from VMs."
5065 #: ../examples/guestfs-recipes.pod:374
5067 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5071 #: ../examples/guestfs-recipes.pod:376
5072 msgid "Use libguestfs tools on VMware ESX guests"
5076 #: ../examples/guestfs-recipes.pod:378
5078 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5079 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5083 #: ../examples/guestfs-recipes.pod:382
5085 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5090 #: ../examples/guestfs-recipes.pod:386
5093 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
5094 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
5095 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
5097 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5098 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5099 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5101 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
5102 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
5103 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
5106 #: ../examples/guestfs-recipes.pod:403
5108 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
5109 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5110 msgstr "© Red Hat Inc., 2009–2010"
5113 #: ../fish/guestfish-actions.pod:1
5118 #: ../fish/guestfish-actions.pod:3
5121 " add-cdrom filename\n"
5126 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5127 msgid "This function adds a virtual CD-ROM disk image to the guest."
5131 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5132 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5136 #: ../fish/guestfish-actions.pod:15
5138 "This call checks for the existence of C<filename>. This stops you from "
5139 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5140 "and C<http:> URLs. To specify those, use the general L</config> call "
5145 #: ../fish/guestfish-actions.pod:22
5147 "If you just want to add an ISO file (often you use this as an efficient way "
5148 "to transfer large files into the guest), then you should probably use L</add-"
5149 "drive-ro> instead."
5153 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
5154 #: ../fish/guestfish-actions.pod:177
5156 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5161 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
5162 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:1026
5163 #: ../fish/guestfish-actions.pod:1386 ../fish/guestfish-actions.pod:1400
5164 #: ../fish/guestfish-actions.pod:3157 ../fish/guestfish-actions.pod:3468
5165 #: ../fish/guestfish-actions.pod:3516 ../fish/guestfish-actions.pod:4429
5166 #: ../fish/guestfish-actions.pod:4452 ../fish/guestfish-actions.pod:4474
5167 #: ../fish/guestfish-actions.pod:4512 ../fish/guestfish-actions.pod:5161
5168 #: ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:10
5169 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
5170 #: ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:2118
5171 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:4771
5172 #: ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5393
5173 #: ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:6719
5174 #: ../src/guestfs-actions.pod:6753 ../src/guestfs-actions.pod:6816
5175 #: ../src/guestfs-actions.pod:7748 ../src/guestfs-actions.pod:7857
5176 #: ../src/guestfs-actions.pod:8040
5178 "Deprecated functions will not be removed from the API, but the fact that "
5179 "they are deprecated indicates that there are problems with correct use of "
5184 #: ../fish/guestfish-actions.pod:35
5189 #: ../fish/guestfish-actions.pod:37
5194 #: ../fish/guestfish-actions.pod:39
5197 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
5202 #: ../fish/guestfish-actions.pod:41
5204 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
5205 "It works by connecting to libvirt, requesting the domain and domain XML from "
5206 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5210 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
5212 "The number of disks added is returned. This operation is atomic: if an "
5213 "error is returned, then no disks are added."
5217 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
5219 "This function does some minimal checks to make sure the libvirt domain is "
5220 "not running (unless C<readonly> is true). In a future version we will try "
5221 "to acquire the libvirt lock on each disk."
5225 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
5227 "Disks must be accessible locally. This often means that adding disks from a "
5228 "remote libvirt connection (see L<http://libvirt.org/remote.html>) will fail "
5229 "unless those disks are accessible via the same device path locally too."
5233 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
5235 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
5236 "libvirt.org/uri.html>). If this is not set then we connect to the default "
5237 "libvirt URI (or one set through an environment variable, see the libvirt "
5238 "documentation for full details)."
5242 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
5244 "The optional C<live> flag controls whether this call will try to connect to "
5245 "a running virtual machine C<guestfsd> process if it sees a suitable "
5246 "E<lt>channelE<gt> element in the libvirt XML definition. The default (if "
5247 "the flag is omitted) is never to try. See L<guestfs(3)/ATTACHING TO RUNNING "
5248 "DAEMONS> for more information."
5252 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
5254 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
5255 "passed instead of the domain name. The C<dom> string is treated as a UUID "
5256 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
5261 #: ../fish/guestfish-actions.pod:76
5263 "The other optional parameters are passed directly through to L</add-drive-"
5268 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
5269 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:784
5270 #: ../fish/guestfish-actions.pod:805 ../fish/guestfish-actions.pod:2040
5271 #: ../fish/guestfish-actions.pod:3206 ../fish/guestfish-actions.pod:3369
5272 #: ../fish/guestfish-actions.pod:3504
5274 "This command has one or more optional arguments. See L</OPTIONAL ARGUMENTS>."
5278 #: ../fish/guestfish-actions.pod:81
5283 #: ../fish/guestfish-actions.pod:83
5286 " add-drive filename\n"
5289 " add-drive назва_файла\n"
5293 #: ../fish/guestfish-actions.pod:85
5295 "This function is the equivalent of calling L</add-drive-opts> with no "
5296 "optional parameters, so the disk is added writable, with the format being "
5297 "detected automatically."
5301 #: ../fish/guestfish-actions.pod:89
5303 "Automatic detection of the format opens you up to a potential security hole "
5304 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
5305 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
5306 "you should think about replacing calls to this function with calls to L</add-"
5307 "drive-opts>, and specifying the format."
5311 #: ../fish/guestfish-actions.pod:96
5312 msgid "add-drive-opts"
5313 msgstr "add-drive-opts"
5316 #: ../fish/guestfish-actions.pod:98
5321 #: ../fish/guestfish-actions.pod:100
5324 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
5329 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
5331 "This function adds a virtual machine disk image C<filename> to libguestfs. "
5332 "The first time you call this function, the disk appears as C</dev/sda>, the "
5333 "second time as C</dev/sdb>, and so on."
5337 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
5339 "You don't necessarily need to be root when using libguestfs. However you "
5340 "obviously do need sufficient permissions to access the filename for whatever "
5341 "operations you want to perform (ie. read access if you just want to read the "
5342 "image or write access if you want to modify the image)."
5346 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
5347 msgid "This call checks that C<filename> exists."
5351 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3168
5352 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4808
5353 msgid "The optional arguments are:"
5357 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
5359 msgstr "C<readonly>"
5362 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
5364 "If true then the image is treated as read-only. Writes are still allowed, "
5365 "but they are stored in a temporary snapshot overlay which is discarded at "
5366 "the end. The disk that you add is not modified."
5370 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
5375 #: ../fish/guestfish-actions.pod:127
5377 "This forces the image format. If you omit this (or use L</add-drive> or L</"
5378 "add-drive-ro>) then the format is automatically detected. Possible formats "
5379 "include C<raw> and C<qcow2>."
5383 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
5385 "Automatic detection of the format opens you up to a potential security hole "
5386 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
5387 "RHBZ#642934. Specifying the format closes this security hole."
5391 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
5396 #: ../fish/guestfish-actions.pod:138
5398 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
5399 "add-drive-with-if> call (q.v.)"
5403 #: ../fish/guestfish-actions.pod:145
5404 msgid "add-drive-ro"
5405 msgstr "add-drive-ro"
5408 #: ../fish/guestfish-actions.pod:147
5413 #: ../fish/guestfish-actions.pod:149
5416 " add-drive-ro filename\n"
5421 #: ../fish/guestfish-actions.pod:151
5423 "This function is the equivalent of calling L</add-drive-opts> with the "
5424 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
5425 "is added read-only, with the format being detected automatically."
5429 #: ../fish/guestfish-actions.pod:156
5430 msgid "add-drive-ro-with-if"
5434 #: ../fish/guestfish-actions.pod:158
5437 " add-drive-ro-with-if filename iface\n"
5442 #: ../fish/guestfish-actions.pod:160
5444 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
5445 "interface emulation to use at run time."
5449 #: ../fish/guestfish-actions.pod:170
5450 msgid "add-drive-with-if"
5454 #: ../fish/guestfish-actions.pod:172
5457 " add-drive-with-if filename iface\n"
5462 #: ../fish/guestfish-actions.pod:174
5464 "This is the same as L</add-drive> but it allows you to specify the QEMU "
5465 "interface emulation to use at run time."
5469 #: ../fish/guestfish-actions.pod:184
5474 #: ../fish/guestfish-actions.pod:186
5477 " aug-clear augpath\n"
5482 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
5484 "Set the value associated with C<path> to C<NULL>. This is the same as the "
5485 "L<augtool(1)> C<clear> command."
5489 #: ../fish/guestfish-actions.pod:191
5494 #: ../fish/guestfish-actions.pod:193
5502 #: ../fish/guestfish-actions.pod:195
5504 "Close the current Augeas handle and free up any resources used by it. After "
5505 "calling this, you have to call L</aug-init> again before you can use any "
5506 "other Augeas functions."
5510 #: ../fish/guestfish-actions.pod:200
5515 #: ../fish/guestfish-actions.pod:202
5518 " aug-defnode name expr val\n"
5523 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
5525 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
5529 #: ../fish/guestfish-actions.pod:207
5531 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
5532 "calling L</aug-set> C<expr>, C<value>. C<name> will be the nodeset "
5533 "containing that single node."
5537 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
5539 "On success this returns a pair containing the number of nodes in the "
5540 "nodeset, and a boolean flag if a node was created."
5544 #: ../fish/guestfish-actions.pod:215
5549 #: ../fish/guestfish-actions.pod:217
5552 " aug-defvar name expr\n"
5557 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
5559 "Defines an Augeas variable C<name> whose value is the result of evaluating "
5560 "C<expr>. If C<expr> is NULL, then C<name> is undefined."
5564 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
5566 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
5567 "evaluates to something which is not a nodeset."
5571 #: ../fish/guestfish-actions.pod:226
5576 #: ../fish/guestfish-actions.pod:228
5579 " aug-get augpath\n"
5584 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
5586 "Look up the value associated with C<path>. If C<path> matches exactly one "
5587 "node, the C<value> is returned."
5591 #: ../fish/guestfish-actions.pod:233
5596 #: ../fish/guestfish-actions.pod:235
5599 " aug-init root flags\n"
5604 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
5606 "Create a new Augeas handle for editing configuration files. If there was "
5607 "any previous Augeas handle associated with this guestfs session, then it is "
5612 #: ../fish/guestfish-actions.pod:241
5613 msgid "You must call this before using any other L</aug-*> commands."
5617 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
5619 "C<root> is the filesystem root. C<root> must not be NULL, use C</> instead."
5623 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
5625 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5626 "logical I<or> of the following integers:"
5630 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
5631 msgid "C<AUG_SAVE_BACKUP> = 1"
5632 msgstr "C<AUG_SAVE_BACKUP> = 1"
5635 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
5636 msgid "Keep the original file with a C<.augsave> extension."
5640 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
5641 msgid "C<AUG_SAVE_NEWFILE> = 2"
5642 msgstr "C<AUG_SAVE_NEWFILE> = 2"
5645 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
5647 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5648 "original. Overrides C<AUG_SAVE_BACKUP>."
5652 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
5653 msgid "C<AUG_TYPE_CHECK> = 4"
5654 msgstr "C<AUG_TYPE_CHECK> = 4"
5657 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
5658 msgid "Typecheck lenses."
5662 #: ../fish/guestfish-actions.pod:266
5664 "This option is only useful when debugging Augeas lenses. Use of this option "
5665 "may require additional memory for the libguestfs appliance. You may need to "
5666 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
5670 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
5671 msgid "C<AUG_NO_STDINC> = 8"
5672 msgstr "C<AUG_NO_STDINC> = 8"
5675 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
5676 msgid "Do not use standard load path for modules."
5680 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
5681 msgid "C<AUG_SAVE_NOOP> = 16"
5682 msgstr "C<AUG_SAVE_NOOP> = 16"
5685 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
5686 msgid "Make save a no-op, just record what would have been changed."
5690 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
5691 msgid "C<AUG_NO_LOAD> = 32"
5692 msgstr "C<AUG_NO_LOAD> = 32"
5695 #: ../fish/guestfish-actions.pod:281
5696 msgid "Do not load the tree in L</aug-init>."
5700 #: ../fish/guestfish-actions.pod:285
5701 msgid "To close the handle, you can call L</aug-close>."
5705 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
5706 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5710 #: ../fish/guestfish-actions.pod:289
5715 #: ../fish/guestfish-actions.pod:291
5718 " aug-insert augpath label true|false\n"
5723 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
5725 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5726 "or after C<path> (depending on the boolean flag C<before>)."
5730 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
5732 "C<path> must match exactly one existing node in the tree, and C<label> must "
5733 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5737 #: ../fish/guestfish-actions.pod:301
5742 #: ../fish/guestfish-actions.pod:303
5750 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
5751 msgid "Load files into the tree."
5752 msgstr "Завантажити файли до ієрархії."
5755 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
5756 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5760 #: ../fish/guestfish-actions.pod:310
5765 #: ../fish/guestfish-actions.pod:312
5773 #: ../fish/guestfish-actions.pod:314
5775 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5776 "resulting nodes into alphabetical order."
5780 #: ../fish/guestfish-actions.pod:317
5785 #: ../fish/guestfish-actions.pod:319
5788 " aug-match augpath\n"
5793 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
5795 "Returns a list of paths which match the path expression C<path>. The "
5796 "returned paths are sufficiently qualified so that they match exactly one "
5797 "node in the current tree."
5801 #: ../fish/guestfish-actions.pod:325
5806 #: ../fish/guestfish-actions.pod:327
5809 " aug-mv src dest\n"
5814 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
5816 "Move the node C<src> to C<dest>. C<src> must match exactly one node. "
5817 "C<dest> is overwritten if it exists."
5821 #: ../fish/guestfish-actions.pod:332
5826 #: ../fish/guestfish-actions.pod:334
5834 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
5835 msgid "Remove C<path> and all of its children."
5839 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
5840 msgid "On success this returns the number of entries which were removed."
5844 #: ../fish/guestfish-actions.pod:340
5849 #: ../fish/guestfish-actions.pod:342
5857 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
5858 msgid "This writes all pending changes to disk."
5862 #: ../fish/guestfish-actions.pod:346
5864 "The flags which were passed to L</aug-init> affect exactly how files are "
5869 #: ../fish/guestfish-actions.pod:349
5874 #: ../fish/guestfish-actions.pod:351
5877 " aug-set augpath val\n"
5882 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
5883 msgid "Set the value associated with C<path> to C<val>."
5887 #: ../fish/guestfish-actions.pod:355
5889 "In the Augeas API, it is possible to clear a node by setting the value to "
5890 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
5891 "this call. Instead you must use the L</aug-clear> call."
5895 #: ../fish/guestfish-actions.pod:360
5900 #: ../fish/guestfish-actions.pod:362
5903 " available 'groups ...'\n"
5908 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
5910 "This command is used to check the availability of some groups of "
5911 "functionality in the appliance, which not all builds of the libguestfs "
5912 "appliance will be able to provide."
5916 #: ../fish/guestfish-actions.pod:368
5918 "The libguestfs groups, and the functions that those groups correspond to, "
5919 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
5920 "runtime by calling L</available-all-groups>."
5924 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5926 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5927 "\"]> would check for the availability of the Linux inotify functions and "
5928 "Augeas (configuration file editing) functions."
5932 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5933 msgid "The command returns no error if I<all> requested groups are available."
5937 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
5939 "It fails with an error if one or more of the requested groups is unavailable "
5944 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
5946 "If an unknown group name is included in the list of groups then an error is "
5951 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
5953 msgstr "I<Нотатки:>"
5956 #: ../fish/guestfish-actions.pod:392
5957 msgid "You must call L</launch> before calling this function."
5961 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
5963 "The reason is because we don't know what groups are supported by the "
5964 "appliance/daemon until it is running and can be queried."
5968 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
5970 "If a group of functions is available, this does not necessarily mean that "
5971 "they will work. You still have to check for errors when calling individual "
5972 "API functions even if they are available."
5976 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
5978 "It is usually the job of distro packagers to build complete functionality "
5979 "into the libguestfs appliance. Upstream libguestfs, if built from source "
5980 "with all requirements satisfied, will support everything."
5984 #: ../fish/guestfish-actions.pod:414
5986 "This call was added in version C<1.0.80>. In previous versions of "
5987 "libguestfs all you could do would be to speculatively execute a command to "
5988 "find out if the daemon implemented it. See also L</version>."
5992 #: ../fish/guestfish-actions.pod:421
5993 msgid "available-all-groups"
5997 #: ../fish/guestfish-actions.pod:423
6000 " available-all-groups\n"
6005 #: ../fish/guestfish-actions.pod:425
6007 "This command returns a list of all optional groups that this daemon knows "
6008 "about. Note this returns both supported and unsupported groups. To find "
6009 "out which ones the daemon can actually support you have to call L</"
6010 "available> on each member of the returned list."
6014 #: ../fish/guestfish-actions.pod:431
6015 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6019 #: ../fish/guestfish-actions.pod:433
6024 #: ../fish/guestfish-actions.pod:435
6027 " base64-in (base64file|-) filename\n"
6032 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
6034 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6038 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
6039 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:782
6040 #: ../fish/guestfish-actions.pod:803 ../fish/guestfish-actions.pod:902
6041 #: ../fish/guestfish-actions.pod:921 ../fish/guestfish-actions.pod:1295
6042 #: ../fish/guestfish-actions.pod:4732 ../fish/guestfish-actions.pod:4744
6043 #: ../fish/guestfish-actions.pod:4755 ../fish/guestfish-actions.pod:4766
6044 #: ../fish/guestfish-actions.pod:4818 ../fish/guestfish-actions.pod:4827
6045 #: ../fish/guestfish-actions.pod:4881 ../fish/guestfish-actions.pod:4904
6046 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6050 #: ../fish/guestfish-actions.pod:442
6055 #: ../fish/guestfish-actions.pod:444
6058 " base64-out filename (base64file|-)\n"
6063 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
6065 "This command downloads the contents of C<filename>, writing it out to local "
6066 "file C<base64file> encoded as base64."
6070 #: ../fish/guestfish-actions.pod:451
6071 msgid "blockdev-flushbufs"
6075 #: ../fish/guestfish-actions.pod:453
6078 " blockdev-flushbufs device\n"
6083 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
6085 "This tells the kernel to flush internal buffers associated with C<device>."
6089 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
6090 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
6091 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
6092 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
6093 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
6094 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
6095 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
6096 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
6097 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
6098 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
6099 msgid "This uses the L<blockdev(8)> command."
6103 #: ../fish/guestfish-actions.pod:460
6104 msgid "blockdev-getbsz"
6108 #: ../fish/guestfish-actions.pod:462
6111 " blockdev-getbsz device\n"
6116 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
6117 msgid "This returns the block size of a device."
6121 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
6122 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
6124 "(Note this is different from both I<size in blocks> and I<filesystem block "
6129 #: ../fish/guestfish-actions.pod:471
6130 msgid "blockdev-getro"
6134 #: ../fish/guestfish-actions.pod:473
6137 " blockdev-getro device\n"
6142 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
6144 "Returns a boolean indicating if the block device is read-only (true if read-"
6145 "only, false if not)."
6149 #: ../fish/guestfish-actions.pod:480
6150 msgid "blockdev-getsize64"
6154 #: ../fish/guestfish-actions.pod:482
6157 " blockdev-getsize64 device\n"
6162 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
6163 msgid "This returns the size of the device in bytes."
6167 #: ../fish/guestfish-actions.pod:486
6168 msgid "See also L</blockdev-getsz>."
6172 #: ../fish/guestfish-actions.pod:490
6173 msgid "blockdev-getss"
6177 #: ../fish/guestfish-actions.pod:492
6180 " blockdev-getss device\n"
6185 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
6187 "This returns the size of sectors on a block device. Usually 512, but can be "
6188 "larger for modern devices."
6192 #: ../fish/guestfish-actions.pod:497
6194 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
6198 #: ../fish/guestfish-actions.pod:502
6199 msgid "blockdev-getsz"
6203 #: ../fish/guestfish-actions.pod:504
6206 " blockdev-getsz device\n"
6211 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
6213 "This returns the size of the device in units of 512-byte sectors (even if "
6214 "the sectorsize isn't 512 bytes ... weird)."
6218 #: ../fish/guestfish-actions.pod:509
6220 "See also L</blockdev-getss> for the real sector size of the device, and L</"
6221 "blockdev-getsize64> for the more useful I<size in bytes>."
6225 #: ../fish/guestfish-actions.pod:515
6226 msgid "blockdev-rereadpt"
6230 #: ../fish/guestfish-actions.pod:517
6233 " blockdev-rereadpt device\n"
6238 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
6239 msgid "Reread the partition table on C<device>."
6243 #: ../fish/guestfish-actions.pod:523
6244 msgid "blockdev-setbsz"
6248 #: ../fish/guestfish-actions.pod:525
6251 " blockdev-setbsz device blocksize\n"
6256 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
6257 msgid "This sets the block size of a device."
6261 #: ../fish/guestfish-actions.pod:534
6262 msgid "blockdev-setro"
6266 #: ../fish/guestfish-actions.pod:536
6269 " blockdev-setro device\n"
6274 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
6275 msgid "Sets the block device named C<device> to read-only."
6279 #: ../fish/guestfish-actions.pod:542
6280 msgid "blockdev-setrw"
6284 #: ../fish/guestfish-actions.pod:544
6287 " blockdev-setrw device\n"
6292 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
6293 msgid "Sets the block device named C<device> to read-write."
6297 #: ../fish/guestfish-actions.pod:550
6298 msgid "btrfs-filesystem-resize"
6302 #: ../fish/guestfish-actions.pod:552
6305 " btrfs-filesystem-resize mountpoint [size:..]\n"
6310 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
6311 msgid "This command resizes a btrfs filesystem."
6315 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
6317 "Note that unlike other resize calls, the filesystem has to be mounted and "
6318 "the parameter is the mountpoint not the device (this is a requirement of "
6323 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3479
6324 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5332
6325 msgid "The optional parameters are:"
6329 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3483
6330 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5336
6335 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
6337 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
6338 "resized to the maximum size."
6342 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
6343 msgid "See also L<btrfs(8)>."
6347 #: ../fish/guestfish-actions.pod:575
6348 msgid "case-sensitive-path"
6352 #: ../fish/guestfish-actions.pod:577
6355 " case-sensitive-path path\n"
6360 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
6362 "This can be used to resolve case insensitive paths on a filesystem which is "
6363 "case sensitive. The use case is to resolve paths which you have read from "
6364 "Windows configuration files or the Windows Registry, to the true path."
6368 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
6370 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
6371 "(and probably others), which is that although the underlying filesystem is "
6372 "case-insensitive, the driver exports the filesystem to Linux as case-"
6377 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
6379 "One consequence of this is that special directories such as C<c:\\windows> "
6380 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
6381 "precise details of how they were created. In Windows itself this would not "
6386 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
6388 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
6393 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
6395 "This function resolves the true case of each element in the path and returns "
6396 "the case-sensitive path."
6400 #: ../fish/guestfish-actions.pod:601
6402 "Thus L</case-sensitive-path> (\"/Windows/System32\") might return C<\"/"
6403 "WINDOWS/system32\"> (the exact return value would depend on details of how "
6404 "the directories were originally created under Windows)."
6408 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
6409 msgid "I<Note>: This function does not handle drive names, backslashes etc."
6413 #: ../fish/guestfish-actions.pod:609
6414 msgid "See also L</realpath>."
6418 #: ../fish/guestfish-actions.pod:611
6423 #: ../fish/guestfish-actions.pod:613
6433 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3899
6434 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5975
6435 msgid "Return the contents of the file named C<path>."
6439 #: ../fish/guestfish-actions.pod:617
6441 "Note that this function cannot correctly handle binary files (specifically, "
6442 "files containing C<\\0> character which is treated as end of string). For "
6443 "those you need to use the L</read-file> or L</download> functions which have "
6444 "a more complex interface."
6448 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
6449 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:980
6450 #: ../fish/guestfish-actions.pod:990 ../fish/guestfish-actions.pod:1057
6451 #: ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1259
6452 #: ../fish/guestfish-actions.pod:1572 ../fish/guestfish-actions.pod:1582
6453 #: ../fish/guestfish-actions.pod:1632 ../fish/guestfish-actions.pod:1647
6454 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1676
6455 #: ../fish/guestfish-actions.pod:3769 ../fish/guestfish-actions.pod:3784
6456 #: ../fish/guestfish-actions.pod:3860 ../fish/guestfish-actions.pod:3877
6457 #: ../fish/guestfish-actions.pod:3892 ../fish/guestfish-actions.pod:4573
6458 #: ../fish/guestfish-actions.pod:4619 ../fish/guestfish-actions.pod:4704
6459 #: ../fish/guestfish-actions.pod:4719 ../fish/guestfish-actions.pod:5125
6460 #: ../fish/guestfish-actions.pod:5137 ../fish/guestfish-actions.pod:5155
6461 #: ../fish/guestfish-actions.pod:5172 ../fish/guestfish-actions.pod:5182
6462 #: ../fish/guestfish-actions.pod:5239 ../fish/guestfish-actions.pod:5249
6463 #: ../fish/guestfish-actions.pod:5278 ../fish/guestfish-actions.pod:5288
6464 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
6465 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1554
6466 #: ../src/guestfs-actions.pod:1573 ../src/guestfs-actions.pod:1676
6467 #: ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1941
6468 #: ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2442
6469 #: ../src/guestfs-actions.pod:2507 ../src/guestfs-actions.pod:2531
6470 #: ../src/guestfs-actions.pod:2548 ../src/guestfs-actions.pod:2577
6471 #: ../src/guestfs-actions.pod:5757 ../src/guestfs-actions.pod:5783
6472 #: ../src/guestfs-actions.pod:5914 ../src/guestfs-actions.pod:5940
6473 #: ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:6931
6474 #: ../src/guestfs-actions.pod:6986 ../src/guestfs-actions.pod:7132
6475 #: ../src/guestfs-actions.pod:7156 ../src/guestfs-actions.pod:7821
6476 #: ../src/guestfs-actions.pod:7841 ../src/guestfs-actions.pod:7874
6477 #: ../src/guestfs-actions.pod:7893 ../src/guestfs-actions.pod:7912
6478 #: ../src/guestfs-actions.pod:8006 ../src/guestfs-actions.pod:8025
6479 #: ../src/guestfs-actions.pod:8071 ../src/guestfs-actions.pod:8090
6481 "Because of the message protocol, there is a transfer limit of somewhere "
6482 "between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>."
6486 #: ../fish/guestfish-actions.pod:625
6491 #: ../fish/guestfish-actions.pod:627
6494 " checksum csumtype path\n"
6499 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
6501 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
6505 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
6507 "The type of checksum to compute is given by the C<csumtype> parameter which "
6508 "must have one of the following values:"
6512 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
6517 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
6519 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
6524 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
6529 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
6530 msgid "Compute the MD5 hash (using the C<md5sum> program)."
6534 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
6539 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
6540 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6544 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
6549 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
6550 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6554 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
6559 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
6560 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6564 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
6569 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
6570 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6574 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
6579 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
6580 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6584 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
6585 msgid "The checksum is returned as a printable string."
6589 #: ../fish/guestfish-actions.pod:670
6590 msgid "To get the checksum for a device, use L</checksum-device>."
6594 #: ../fish/guestfish-actions.pod:672
6595 msgid "To get the checksums for many files, use L</checksums-out>."
6599 #: ../fish/guestfish-actions.pod:674
6600 msgid "checksum-device"
6601 msgstr "checksum-device"
6604 #: ../fish/guestfish-actions.pod:676
6607 " checksum-device csumtype device\n"
6612 #: ../fish/guestfish-actions.pod:678
6614 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6615 "device named C<device>. For the types of checksums supported see the L</"
6616 "checksum> command."
6620 #: ../fish/guestfish-actions.pod:682
6621 msgid "checksums-out"
6625 #: ../fish/guestfish-actions.pod:684
6628 " checksums-out csumtype directory (sumsfile|-)\n"
6633 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
6635 "This command computes the checksums of all regular files in C<directory> and "
6636 "then emits a list of those checksums to the local output file C<sumsfile>."
6640 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
6642 "This can be used for verifying the integrity of a virtual machine. However "
6643 "to be properly secure you should pay attention to the output of the checksum "
6644 "command (it uses the ones from GNU coreutils). In particular when the "
6645 "filename is not printable, coreutils uses a special backslash syntax. For "
6646 "more information, see the GNU coreutils info file."
6650 #: ../fish/guestfish-actions.pod:700
6655 #: ../fish/guestfish-actions.pod:702
6658 " chmod mode path\n"
6663 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
6665 "Change the mode (permissions) of C<path> to C<mode>. Only numeric modes are "
6670 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
6672 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6673 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6678 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3132
6679 #: ../fish/guestfish-actions.pod:3271 ../fish/guestfish-actions.pod:3281
6680 #: ../fish/guestfish-actions.pod:3291 ../src/guestfs-actions.pod:1064
6681 #: ../src/guestfs-actions.pod:4739 ../src/guestfs-actions.pod:4948
6682 #: ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4986
6683 msgid "The mode actually set is affected by the umask."
6687 #: ../fish/guestfish-actions.pod:713
6692 #: ../fish/guestfish-actions.pod:715
6695 " chown owner group path\n"
6700 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
6701 msgid "Change the file owner to C<owner> and group to C<group>."
6705 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2567
6706 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3810
6708 "Only numeric uid and gid are supported. If you want to use names, you will "
6709 "need to locate and parse the password file yourself (Augeas support makes "
6710 "this relatively easy)."
6714 #: ../fish/guestfish-actions.pod:723
6719 #: ../fish/guestfish-actions.pod:725
6722 " command 'arguments ...'\n"
6727 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
6729 "This call runs a command from the guest filesystem. The filesystem must be "
6730 "mounted, and must contain a compatible operating system (ie. something "
6731 "Linux, with the same or compatible processor architecture)."
6735 #: ../fish/guestfish-actions.pod:732
6737 "The single parameter is an argv-style list of arguments. The first element "
6738 "is the name of the program to run. Subsequent elements are parameters. The "
6739 "list must be non-empty (ie. must contain a program name). Note that the "
6740 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6744 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
6745 msgid "The return value is anything printed to I<stdout> by the command."
6749 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
6751 "If the command returns a non-zero exit status, then this function returns an "
6752 "error message. The error message string is the content of I<stderr> from "
6757 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6759 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6760 "bin>. If you require a program from another location, you should provide "
6761 "the full path in the first parameter."
6765 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
6767 "Shared libraries and data files required by the program must be available on "
6768 "filesystems which are mounted in the correct places. It is the caller's "
6769 "responsibility to ensure all filesystems that are needed are mounted at the "
6774 #: ../fish/guestfish-actions.pod:760
6775 msgid "command-lines"
6779 #: ../fish/guestfish-actions.pod:762
6782 " command-lines 'arguments ...'\n"
6787 #: ../fish/guestfish-actions.pod:764
6789 "This is the same as L</command>, but splits the result into a list of lines."
6793 #: ../fish/guestfish-actions.pod:767
6794 msgid "See also: L</sh-lines>"
6798 #: ../fish/guestfish-actions.pod:772
6800 #| msgid "pread-device"
6801 msgid "compress-device-out"
6802 msgstr "pread-device"
6805 #: ../fish/guestfish-actions.pod:774
6808 " compress-device-out ctype device (zdevice|-) [level:..]\n"
6813 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1168
6815 "This command compresses C<device> and writes it out to the local file "
6820 #: ../fish/guestfish-actions.pod:779
6822 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
6827 #: ../fish/guestfish-actions.pod:786
6830 msgid "compress-out"
6834 #: ../fish/guestfish-actions.pod:788
6837 " compress-out ctype file (zfile|-) [level:..]\n"
6842 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1220
6844 "This command compresses C<file> and writes it out to the local file C<zfile>."
6848 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1223
6850 "The compression program used is controlled by the C<ctype> parameter. "
6851 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>. "
6852 "Some compression types may not be supported by particular builds of "
6853 "libguestfs, in which case you will get an error containing the substring "
6854 "\"not supported\"."
6858 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1229
6860 "The optional C<level> parameter controls compression level. The meaning and "
6861 "default for this parameter depends on the compression program being used."
6865 #: ../fish/guestfish-actions.pod:807
6870 #: ../fish/guestfish-actions.pod:809
6873 " config qemuparam qemuvalue\n"
6878 #: ../fish/guestfish-actions.pod:811 ../src/guestfs-actions.pod:1270
6880 "This can be used to add arbitrary qemu command line parameters of the form "
6881 "I<-param value>. Actually it's not quite arbitrary - we prevent you from "
6882 "setting some parameters which would interfere with parameters that we use."
6886 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1275
6887 msgid "The first character of C<param> string must be a C<-> (dash)."
6891 #: ../fish/guestfish-actions.pod:818 ../src/guestfs-actions.pod:1277
6892 msgid "C<value> can be NULL."
6896 #: ../fish/guestfish-actions.pod:820
6901 #: ../fish/guestfish-actions.pod:822
6904 " copy-size src dest size\n"
6909 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1291
6911 "This command copies exactly C<size> bytes from one source device or file "
6912 "C<src> to another destination device or file C<dest>."
6916 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1294
6918 "Note this will fail if the source is too short or if the destination is not "
6923 #: ../fish/guestfish-actions.pod:830
6928 #: ../fish/guestfish-actions.pod:832
6936 #: ../fish/guestfish-actions.pod:834 ../src/guestfs-actions.pod:1313
6938 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6939 "destination filename or destination directory."
6943 #: ../fish/guestfish-actions.pod:837
6948 #: ../fish/guestfish-actions.pod:839
6956 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1327
6958 "This copies a file or directory from C<src> to C<dest> recursively using the "
6963 #: ../fish/guestfish-actions.pod:844
6968 #: ../fish/guestfish-actions.pod:846
6976 #: ../fish/guestfish-actions.pod:848 ../src/guestfs-actions.pod:1341
6978 "This command copies from one source device or file C<src> to another "
6979 "destination device or file C<dest>. Normally you would use this to copy to "
6980 "or from a device or partition, for example to duplicate a filesystem."
6984 #: ../fish/guestfish-actions.pod:853
6986 "If the destination is a device, it must be as large or larger than the "
6987 "source file or device, otherwise the copy will fail. This command cannot do "
6988 "partial copies (see L</copy-size>)."
6992 #: ../fish/guestfish-actions.pod:857
6997 #: ../fish/guestfish-actions.pod:859
7007 #: ../fish/guestfish-actions.pod:861 ../src/guestfs-actions.pod:1359
7008 msgid "This command runs the C<df> command to report disk space used."
7012 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:874
7014 "This command is mostly useful for interactive sessions. It is I<not> "
7015 "intended that you try to parse the output string. Use L</statvfs> from "
7020 #: ../fish/guestfish-actions.pod:867
7025 #: ../fish/guestfish-actions.pod:869
7035 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1375
7037 "This command runs the C<df -h> command to report disk space used in human-"
7042 #: ../fish/guestfish-actions.pod:878
7047 #: ../fish/guestfish-actions.pod:880
7057 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1392
7059 "This returns the kernel messages (C<dmesg> output) from the guest kernel. "
7060 "This is sometimes useful for extended debugging of problems."
7064 #: ../fish/guestfish-actions.pod:886
7066 "Another way to get the same information is to enable verbose messages with "
7067 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7068 "before running the program."
7072 #: ../fish/guestfish-actions.pod:891
7077 #: ../fish/guestfish-actions.pod:893
7080 " download remotefilename (filename|-)\n"
7085 #: ../fish/guestfish-actions.pod:895 ../fish/guestfish-actions.pod:908
7086 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1438
7088 "Download file C<remotefilename> and save it as C<filename> on the local "
7093 #: ../fish/guestfish-actions.pod:898 ../fish/guestfish-actions.pod:4877
7094 #: ../src/guestfs-actions.pod:1416 ../src/guestfs-actions.pod:7391
7095 msgid "C<filename> can also be a named pipe."
7099 #: ../fish/guestfish-actions.pod:900
7100 msgid "See also L</upload>, L</cat>."
7104 #: ../fish/guestfish-actions.pod:904
7105 msgid "download-offset"
7106 msgstr "download-offset"
7109 #: ../fish/guestfish-actions.pod:906
7112 " download-offset remotefilename (filename|-) offset size\n"
7117 #: ../fish/guestfish-actions.pod:911 ../src/guestfs-actions.pod:1441
7119 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7120 "region must be within the file or device)."
7124 #: ../fish/guestfish-actions.pod:914
7126 "Note that there is no limit on the amount of data that can be downloaded "
7127 "with this call, unlike with L</pread>, and this call always reads the full "
7128 "amount unless an error occurs."
7132 #: ../fish/guestfish-actions.pod:919
7133 msgid "See also L</download>, L</pread>."
7137 #: ../fish/guestfish-actions.pod:923
7142 #: ../fish/guestfish-actions.pod:925
7145 " drop-caches whattodrop\n"
7150 #: ../fish/guestfish-actions.pod:927 ../src/guestfs-actions.pod:1466
7152 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7153 "inode caches. The parameter C<whattodrop> tells the kernel what precisely "
7154 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7158 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1471
7159 msgid "Setting C<whattodrop> to 3 should drop everything."
7163 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1473
7165 "This automatically calls L<sync(2)> before the operation, so that the "
7166 "maximum guest memory is freed."
7170 #: ../fish/guestfish-actions.pod:937
7175 #: ../fish/guestfish-actions.pod:939
7185 #: ../fish/guestfish-actions.pod:941 ../src/guestfs-actions.pod:1486
7187 "This command runs the C<du -s> command to estimate file space usage for "
7192 #: ../fish/guestfish-actions.pod:944 ../src/guestfs-actions.pod:1489
7194 "C<path> can be a file or a directory. If C<path> is a directory then the "
7195 "estimate includes the contents of the directory and all subdirectories "
7200 #: ../fish/guestfish-actions.pod:948 ../src/guestfs-actions.pod:1493
7202 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
7206 #: ../fish/guestfish-actions.pod:951
7211 #: ../fish/guestfish-actions.pod:953
7214 " e2fsck-f device\n"
7219 #: ../fish/guestfish-actions.pod:955 ../src/guestfs-actions.pod:1511
7221 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
7222 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
7227 #: ../fish/guestfish-actions.pod:959
7229 "This command is only needed because of L</resize2fs> (q.v.). Normally you "
7230 "should use L</fsck>."
7234 #: ../fish/guestfish-actions.pod:962
7239 #: ../fish/guestfish-actions.pod:964
7242 " echo-daemon 'words ...'\n"
7247 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1528
7249 "This command concatenates the list of C<words> passed with single spaces "
7250 "between them and returns the resulting string."
7254 #: ../fish/guestfish-actions.pod:969 ../src/guestfs-actions.pod:1531
7255 msgid "You can use this command to test the connection through to the daemon."
7259 #: ../fish/guestfish-actions.pod:971
7260 msgid "See also L</ping-daemon>."
7264 #: ../fish/guestfish-actions.pod:973
7269 #: ../fish/guestfish-actions.pod:975
7272 " egrep regex path\n"
7277 #: ../fish/guestfish-actions.pod:977 ../src/guestfs-actions.pod:1547
7279 "This calls the external C<egrep> program and returns the matching lines."
7283 #: ../fish/guestfish-actions.pod:983
7288 #: ../fish/guestfish-actions.pod:985
7291 " egrepi regex path\n"
7296 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1566
7298 "This calls the external C<egrep -i> program and returns the matching lines."
7302 #: ../fish/guestfish-actions.pod:993
7307 #: ../fish/guestfish-actions.pod:995
7310 " equal file1 file2\n"
7313 " equal файл1 файл2\n"
7317 #: ../fish/guestfish-actions.pod:997 ../src/guestfs-actions.pod:1585
7319 "This compares the two files C<file1> and C<file2> and returns true if their "
7320 "content is exactly equal, or false otherwise."
7324 #: ../fish/guestfish-actions.pod:1000 ../src/guestfs-actions.pod:1588
7325 msgid "The external L<cmp(1)> program is used for the comparison."
7329 #: ../fish/guestfish-actions.pod:1002
7334 #: ../fish/guestfish-actions.pod:1004
7344 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1600
7346 "This returns C<true> if and only if there is a file, directory (or anything) "
7347 "with the given C<path> name."
7351 #: ../fish/guestfish-actions.pod:1009
7352 msgid "See also L</is-file>, L</is-dir>, L</stat>."
7353 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
7356 #: ../fish/guestfish-actions.pod:1011
7361 #: ../fish/guestfish-actions.pod:1013
7364 " fallocate path len\n"
7367 " fallocate шлях довжина\n"
7371 #: ../fish/guestfish-actions.pod:1015 ../fish/guestfish-actions.pod:1034
7372 #: ../src/guestfs-actions.pod:1623 ../src/guestfs-actions.pod:1642
7374 "This command preallocates a file (containing zero bytes) named C<path> of "
7375 "size C<len> bytes. If the file exists already, it is overwritten."
7379 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1627
7381 "Do not confuse this with the guestfish-specific C<alloc> command which "
7382 "allocates a file in the host and attaches it as a device."
7386 #: ../fish/guestfish-actions.pod:1023
7388 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
7393 #: ../fish/guestfish-actions.pod:1030
7395 msgstr "fallocate64"
7398 #: ../fish/guestfish-actions.pod:1032
7401 " fallocate64 path len\n"
7404 " fallocate64 шлях довжина\n"
7408 #: ../fish/guestfish-actions.pod:1038
7410 "Note that this call allocates disk blocks for the file. To create a sparse "
7411 "file use L</truncate-size> instead."
7415 #: ../fish/guestfish-actions.pod:1041
7417 "The deprecated call L</fallocate> does the same, but owing to an oversight "
7418 "it only allowed 30 bit lengths to be specified, effectively limiting the "
7419 "maximum size of files created through that call to 1GB."
7423 #: ../fish/guestfish-actions.pod:1046 ../src/guestfs-actions.pod:1654
7425 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
7426 "commands which create a file in the host and attach it as a device."
7430 #: ../fish/guestfish-actions.pod:1050
7435 #: ../fish/guestfish-actions.pod:1052
7438 " fgrep pattern path\n"
7441 " fgrep шаблон шлях\n"
7445 #: ../fish/guestfish-actions.pod:1054 ../src/guestfs-actions.pod:1669
7447 "This calls the external C<fgrep> program and returns the matching lines."
7451 #: ../fish/guestfish-actions.pod:1060
7456 #: ../fish/guestfish-actions.pod:1062
7459 " fgrepi pattern path\n"
7462 " fgrepi шаблон шлях\n"
7466 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1688
7468 "This calls the external C<fgrep -i> program and returns the matching lines."
7472 #: ../fish/guestfish-actions.pod:1070
7477 #: ../fish/guestfish-actions.pod:1072
7487 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1706
7489 "This call uses the standard L<file(1)> command to determine the type or "
7490 "contents of the file."
7494 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1709
7496 "This call will also transparently look inside various types of compressed "
7501 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1712
7503 "The exact command which runs is C<file -zb path>. Note in particular that "
7504 "the filename is not prepended to the output (the I<-b> option)."
7508 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1716
7510 "The output depends on the output of the underlying L<file(1)> command and it "
7511 "can change in future in ways beyond our control. In other words, the output "
7512 "is not guaranteed by the ABI."
7516 #: ../fish/guestfish-actions.pod:1088
7518 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
7519 "(etc), L</is-zero>."
7523 #: ../fish/guestfish-actions.pod:1091
7524 msgid "file-architecture"
7525 msgstr "file-architecture"
7528 #: ../fish/guestfish-actions.pod:1093
7531 " file-architecture filename\n"
7534 " file-architecture назва_файла\n"
7538 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1734
7540 "This detects the architecture of the binary C<filename>, and returns it if "
7545 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1737
7546 msgid "Currently defined architectures are:"
7550 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1741
7555 #: ../fish/guestfish-actions.pod:1104 ../src/guestfs-actions.pod:1743
7557 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7558 "irrespective of the precise processor requirements of the binary."
7562 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1746
7567 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1748
7568 msgid "64 bit x86-64."
7572 #: ../fish/guestfish-actions.pod:1111 ../src/guestfs-actions.pod:1750
7577 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1752
7578 msgid "32 bit SPARC."
7582 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1754
7587 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1756
7588 msgid "64 bit SPARC V9 and above."
7592 #: ../fish/guestfish-actions.pod:1119 ../src/guestfs-actions.pod:1758
7597 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1760
7598 msgid "Intel Itanium."
7599 msgstr "Intel Itanium."
7602 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1762
7607 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1764
7608 msgid "32 bit Power PC."
7612 #: ../fish/guestfish-actions.pod:1127 ../src/guestfs-actions.pod:1766
7617 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1768
7618 msgid "64 bit Power PC."
7622 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1772
7623 msgid "Libguestfs may return other architecture strings in future."
7627 #: ../fish/guestfish-actions.pod:1135 ../src/guestfs-actions.pod:1774
7628 msgid "The function works on at least the following types of files:"
7632 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1780
7633 msgid "many types of Un*x and Linux binary"
7637 #: ../fish/guestfish-actions.pod:1145 ../src/guestfs-actions.pod:1784
7638 msgid "many types of Un*x and Linux shared library"
7642 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1788
7643 msgid "Windows Win32 and Win64 binaries"
7647 #: ../fish/guestfish-actions.pod:1153 ../src/guestfs-actions.pod:1792
7648 msgid "Windows Win32 and Win64 DLLs"
7652 #: ../fish/guestfish-actions.pod:1155 ../src/guestfs-actions.pod:1794
7653 msgid "Win32 binaries and DLLs return C<i386>."
7657 #: ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1796
7658 msgid "Win64 binaries and DLLs return C<x86_64>."
7662 #: ../fish/guestfish-actions.pod:1161 ../src/guestfs-actions.pod:1800
7663 msgid "Linux kernel modules"
7667 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1804
7668 msgid "Linux new-style initrd images"
7672 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1808
7673 msgid "some non-x86 Linux vmlinuz kernels"
7677 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1812
7678 msgid "What it can't do currently:"
7682 #: ../fish/guestfish-actions.pod:1179 ../src/guestfs-actions.pod:1818
7683 msgid "static libraries (libfoo.a)"
7687 #: ../fish/guestfish-actions.pod:1183 ../src/guestfs-actions.pod:1822
7688 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7692 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1826
7693 msgid "x86 Linux vmlinuz kernels"
7697 #: ../fish/guestfish-actions.pod:1189 ../src/guestfs-actions.pod:1828
7699 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7700 "compressed code, and are horribly hard to unpack. If you want to find the "
7701 "architecture of a kernel, use the architecture of the associated initrd or "
7702 "kernel module(s) instead."
7706 #: ../fish/guestfish-actions.pod:1196
7711 #: ../fish/guestfish-actions.pod:1198
7721 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1846
7722 msgid "This command returns the size of C<file> in bytes."
7726 #: ../fish/guestfish-actions.pod:1202
7728 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
7729 "file> etc. To get the size of block devices, use L</blockdev-getsize64>."
7733 #: ../fish/guestfish-actions.pod:1206
7738 #: ../fish/guestfish-actions.pod:1208
7741 " fill c len path\n"
7746 #: ../fish/guestfish-actions.pod:1210 ../src/guestfs-actions.pod:1864
7748 "This command creates a new file called C<path>. The initial content of the "
7749 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7754 #: ../fish/guestfish-actions.pod:1214
7756 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7757 "L</truncate-size>. To create a file with a pattern of repeating bytes use "
7762 #: ../fish/guestfish-actions.pod:1219
7763 msgid "fill-pattern"
7764 msgstr "fill-pattern"
7767 #: ../fish/guestfish-actions.pod:1221
7770 " fill-pattern pattern len path\n"
7775 #: ../fish/guestfish-actions.pod:1223
7777 "This function is like L</fill> except that it creates a new file of length "
7778 "C<len> containing the repeating pattern of bytes in C<pattern>. The pattern "
7779 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7784 #: ../fish/guestfish-actions.pod:1228
7789 #: ../fish/guestfish-actions.pod:1230
7799 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:1910
7801 "This command lists out all files and directories, recursively, starting at "
7802 "C<directory>. It is essentially equivalent to running the shell command "
7803 "C<find directory -print> but some post-processing happens on the output, "
7808 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1915
7810 "This returns a list of strings I<without any prefix>. Thus if the directory "
7815 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:1918
7825 #: ../fish/guestfish-actions.pod:1244
7826 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7830 #: ../fish/guestfish-actions.pod:1247 ../src/guestfs-actions.pod:1925
7841 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1930
7842 msgid "If C<directory> is not a directory, then this command returns an error."
7846 #: ../fish/guestfish-actions.pod:1255 ../src/guestfs-actions.pod:1933
7847 msgid "The returned list is sorted."
7851 #: ../fish/guestfish-actions.pod:1257
7852 msgid "See also L</find0>."
7853 msgstr "Див. також L</find0>."
7856 #: ../fish/guestfish-actions.pod:1262
7861 #: ../fish/guestfish-actions.pod:1264
7864 " find0 directory (files|-)\n"
7867 " find0 каталог (файли|-)\n"
7871 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1953
7873 "This command lists out all files and directories, recursively, starting at "
7874 "C<directory>, placing the resulting list in the external file called "
7879 #: ../fish/guestfish-actions.pod:1270
7881 "This command works the same way as L</find> with the following exceptions:"
7885 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:1964
7886 msgid "The resulting list is written to an external file."
7890 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1968
7892 "Items (filenames) in the result are separated by C<\\0> characters. See "
7893 "L<find(1)> option I<-print0>."
7897 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1973
7898 msgid "This command is not limited in the number of names that it can return."
7902 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1978
7903 msgid "The result list is not sorted."
7907 #: ../fish/guestfish-actions.pod:1297
7908 msgid "findfs-label"
7909 msgstr "findfs-label"
7912 #: ../fish/guestfish-actions.pod:1299
7915 " findfs-label label\n"
7918 " findfs-label мітка\n"
7922 #: ../fish/guestfish-actions.pod:1301 ../src/guestfs-actions.pod:1992
7924 "This command searches the filesystems and returns the one which has the "
7925 "given label. An error is returned if no such filesystem can be found."
7929 #: ../fish/guestfish-actions.pod:1305
7930 msgid "To find the label of a filesystem, use L</vfs-label>."
7931 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
7934 #: ../fish/guestfish-actions.pod:1307
7936 msgstr "findfs-uuid"
7939 #: ../fish/guestfish-actions.pod:1309
7942 " findfs-uuid uuid\n"
7945 " findfs-uuid uuid\n"
7949 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2009
7951 "This command searches the filesystems and returns the one which has the "
7952 "given UUID. An error is returned if no such filesystem can be found."
7956 #: ../fish/guestfish-actions.pod:1315
7957 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7958 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
7961 #: ../fish/guestfish-actions.pod:1317
7966 #: ../fish/guestfish-actions.pod:1319
7969 " fsck fstype device\n"
7972 " fsck тип_файлової_системи пристрій\n"
7976 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:2027
7978 "This runs the filesystem checker (fsck) on C<device> which should have "
7979 "filesystem type C<fstype>."
7983 #: ../fish/guestfish-actions.pod:1324 ../src/guestfs-actions.pod:2030
7985 "The returned integer is the status. See L<fsck(8)> for the list of status "
7986 "codes from C<fsck>."
7990 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2039
7991 msgid "Multiple status codes can be summed together."
7995 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2043
7997 "A non-zero return code can mean \"success\", for example if errors have been "
7998 "corrected on the filesystem."
8002 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2048
8003 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8007 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2053
8009 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8013 #: ../fish/guestfish-actions.pod:1349
8018 #: ../fish/guestfish-actions.pod:1351
8028 #: ../fish/guestfish-actions.pod:1353 ../src/guestfs-actions.pod:2064
8030 "Return the additional kernel options which are added to the guest kernel "
8035 #: ../fish/guestfish-actions.pod:1356 ../src/guestfs-actions.pod:2067
8036 msgid "If C<NULL> then no options are added."
8040 #: ../fish/guestfish-actions.pod:1358
8041 msgid "get-attach-method"
8042 msgstr "get-attach-method"
8045 #: ../fish/guestfish-actions.pod:1360
8048 " get-attach-method\n"
8051 " get-attach-method\n"
8055 #: ../fish/guestfish-actions.pod:1362
8056 msgid "Return the current attach method. See L</set-attach-method>."
8060 #: ../fish/guestfish-actions.pod:1364
8061 msgid "get-autosync"
8062 msgstr "get-autosync"
8065 #: ../fish/guestfish-actions.pod:1366
8075 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2092
8076 msgid "Get the autosync flag."
8080 #: ../fish/guestfish-actions.pod:1370
8085 #: ../fish/guestfish-actions.pod:1372
8095 #: ../fish/guestfish-actions.pod:1374 ../src/guestfs-actions.pod:2103
8096 msgid "Return the direct appliance mode flag."
8100 #: ../fish/guestfish-actions.pod:1376
8102 msgstr "get-e2label"
8105 #: ../fish/guestfish-actions.pod:1378
8108 " get-e2label device\n"
8111 " get-e2label пристрій\n"
8115 #: ../fish/guestfish-actions.pod:1380 ../src/guestfs-actions.pod:2122
8117 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8121 #: ../fish/guestfish-actions.pod:1383
8123 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
8128 #: ../fish/guestfish-actions.pod:1390
8133 #: ../fish/guestfish-actions.pod:1392
8136 " get-e2uuid device\n"
8139 " get-e2uuid пристрій\n"
8143 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2143
8145 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
8149 #: ../fish/guestfish-actions.pod:1397
8151 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
8156 #: ../fish/guestfish-actions.pod:1404
8158 msgstr "get-memsize"
8161 #: ../fish/guestfish-actions.pod:1406
8171 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2156
8173 "This gets the memory size in megabytes allocated to the qemu subprocess."
8177 #: ../fish/guestfish-actions.pod:1411
8179 "If L</set-memsize> was not called on this handle, and if "
8180 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
8181 "value for memsize."
8185 #: ../fish/guestfish-actions.pod:1415 ../fish/guestfish-actions.pod:1472
8186 #: ../fish/guestfish-actions.pod:4225 ../fish/guestfish-actions.pod:4327
8187 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:2255
8188 #: ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:6562
8190 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
8194 #: ../fish/guestfish-actions.pod:1418
8196 msgstr "get-network"
8199 #: ../fish/guestfish-actions.pod:1420
8209 #: ../fish/guestfish-actions.pod:1422 ../src/guestfs-actions.pod:2175
8210 msgid "This returns the enable network flag."
8214 #: ../fish/guestfish-actions.pod:1424
8219 #: ../fish/guestfish-actions.pod:1426
8229 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2186
8230 msgid "Return the current search path."
8234 #: ../fish/guestfish-actions.pod:1430 ../src/guestfs-actions.pod:2188
8236 "This is always non-NULL. If it wasn't set already, then this will return "
8241 #: ../fish/guestfish-actions.pod:1433
8246 #: ../fish/guestfish-actions.pod:1435
8254 #: ../fish/guestfish-actions.pod:1437 ../src/guestfs-actions.pod:2201
8255 msgid "This returns the process group flag."
8259 #: ../fish/guestfish-actions.pod:1439
8264 #: ../fish/guestfish-actions.pod:1441
8269 #: ../fish/guestfish-actions.pod:1443
8279 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2212
8281 "Return the process ID of the qemu subprocess. If there is no qemu "
8282 "subprocess, then this will return an error."
8286 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2215
8287 msgid "This is an internal call used for debugging and testing."
8291 #: ../fish/guestfish-actions.pod:1450
8296 #: ../fish/guestfish-actions.pod:1452
8306 #: ../fish/guestfish-actions.pod:1454 ../src/guestfs-actions.pod:2226
8307 msgid "Return the current qemu binary."
8311 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2228
8313 "This is always non-NULL. If it wasn't set already, then this will return "
8314 "the default qemu binary name."
8318 #: ../fish/guestfish-actions.pod:1459
8319 msgid "get-recovery-proc"
8320 msgstr "get-recovery-proc"
8323 #: ../fish/guestfish-actions.pod:1461
8326 " get-recovery-proc\n"
8329 " get-recovery-proc\n"
8333 #: ../fish/guestfish-actions.pod:1463 ../src/guestfs-actions.pod:2241
8334 msgid "Return the recovery process enabled flag."
8338 #: ../fish/guestfish-actions.pod:1465
8340 msgstr "get-selinux"
8343 #: ../fish/guestfish-actions.pod:1467
8353 #: ../fish/guestfish-actions.pod:1469
8355 "This returns the current setting of the selinux flag which is passed to the "
8356 "appliance at boot time. See L</set-selinux>."
8360 #: ../fish/guestfish-actions.pod:1475
8367 #: ../fish/guestfish-actions.pod:1477
8380 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2267
8381 msgid "This returns the number of virtual CPUs assigned to the appliance."
8385 #: ../fish/guestfish-actions.pod:1481
8390 #: ../fish/guestfish-actions.pod:1483
8400 #: ../fish/guestfish-actions.pod:1485 ../src/guestfs-actions.pod:2278
8402 "This returns the current state as an opaque integer. This is only useful "
8403 "for printing debug and internal error messages."
8407 #: ../fish/guestfish-actions.pod:1488 ../fish/guestfish-actions.pod:2434
8408 #: ../fish/guestfish-actions.pod:2452 ../fish/guestfish-actions.pod:2490
8409 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:2281
8410 #: ../src/guestfs-actions.pod:3587 ../src/guestfs-actions.pod:3616
8411 #: ../src/guestfs-actions.pod:3677 ../src/guestfs-actions.pod:3704
8412 msgid "For more information on states, see L<guestfs(3)>."
8416 #: ../fish/guestfish-actions.pod:1490
8421 #: ../fish/guestfish-actions.pod:1492
8431 #: ../fish/guestfish-actions.pod:1494 ../src/guestfs-actions.pod:2292
8432 msgid "Return the command trace flag."
8436 #: ../fish/guestfish-actions.pod:1496
8441 #: ../fish/guestfish-actions.pod:1498
8451 #: ../fish/guestfish-actions.pod:1500
8453 "Return the current umask. By default the umask is C<022> unless it has been "
8454 "set by calling L</umask>."
8458 #: ../fish/guestfish-actions.pod:1503
8460 msgstr "get-verbose"
8463 #: ../fish/guestfish-actions.pod:1505
8473 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2315
8474 msgid "This returns the verbose messages flag."
8478 #: ../fish/guestfish-actions.pod:1509
8483 #: ../fish/guestfish-actions.pod:1511
8493 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2326
8494 msgid "This gets the SELinux security context of the daemon."
8498 #: ../fish/guestfish-actions.pod:1515
8499 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
8503 #: ../fish/guestfish-actions.pod:1518
8508 #: ../fish/guestfish-actions.pod:1520
8511 " getxattr path name\n"
8514 " getxattr шлях назва\n"
8518 #: ../fish/guestfish-actions.pod:1522
8520 "Get a single extended attribute from file C<path> named C<name>. This call "
8521 "follows symlinks. If you want to lookup an extended attribute for the "
8522 "symlink itself, use L</lgetxattr>."
8526 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:2579
8528 "Normally it is better to get all extended attributes from a file in one go "
8529 "by calling L</getxattrs>. However some Linux filesystem implementations are "
8530 "buggy and do not provide a way to list out attributes. For these "
8531 "filesystems (notably ntfs-3g) you have to know the names of the extended "
8532 "attributes you want in advance and call this function."
8536 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:2586
8537 #: ../src/guestfs-actions.pod:2355 ../src/guestfs-actions.pod:3837
8539 "Extended attribute values are blobs of binary data. If there is no extended "
8540 "attribute named C<name>, this returns an error."
8544 #: ../fish/guestfish-actions.pod:1536
8545 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8546 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8549 #: ../fish/guestfish-actions.pod:1538
8554 #: ../fish/guestfish-actions.pod:1540
8564 #: ../fish/guestfish-actions.pod:1542 ../src/guestfs-actions.pod:2372
8566 "This call lists the extended attributes of the file or directory C<path>."
8570 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2375
8572 "At the system call level, this is a combination of the L<listxattr(2)> and "
8573 "L<getxattr(2)> calls."
8577 #: ../fish/guestfish-actions.pod:1548
8578 msgid "See also: L</lgetxattrs>, L<attr(5)>."
8579 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
8582 #: ../fish/guestfish-actions.pod:1550
8584 msgstr "glob-expand"
8587 #: ../fish/guestfish-actions.pod:1552
8590 " glob-expand pattern\n"
8593 " glob-expand шаблон\n"
8597 #: ../fish/guestfish-actions.pod:1554 ../src/guestfs-actions.pod:2392
8599 "This command searches for all the pathnames matching C<pattern> according to "
8600 "the wildcard expansion rules used by the shell."
8604 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2396
8606 "If no paths match, then this returns an empty list (note: not an error)."
8610 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2399
8612 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8613 "GLOB_BRACE>. See that manual page for more details."
8617 #: ../fish/guestfish-actions.pod:1565
8622 #: ../fish/guestfish-actions.pod:1567
8625 " grep regex path\n"
8628 " grepi формальний_вираз шлях\n"
8632 #: ../fish/guestfish-actions.pod:1569 ../src/guestfs-actions.pod:2416
8633 msgid "This calls the external C<grep> program and returns the matching lines."
8637 #: ../fish/guestfish-actions.pod:1575
8642 #: ../fish/guestfish-actions.pod:1577
8645 " grepi regex path\n"
8648 " grepi формальний_вираз шлях\n"
8652 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2435
8654 "This calls the external C<grep -i> program and returns the matching lines."
8658 #: ../fish/guestfish-actions.pod:1585
8659 msgid "grub-install"
8660 msgstr "grub-install"
8663 #: ../fish/guestfish-actions.pod:1587
8666 " grub-install root device\n"
8669 " grub-install кореневий пристрій\n"
8673 #: ../fish/guestfish-actions.pod:1589 ../src/guestfs-actions.pod:2454
8675 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
8676 "with the root directory being C<root>."
8680 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2463
8682 "There is currently no way in the API to install grub2, which is used by most "
8683 "modern Linux guests. It is possible to run the grub2 command from the "
8684 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
8688 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2470
8690 "This uses C<grub-install> from the host. Unfortunately grub is not always "
8691 "compatible with itself, so this only works in rather narrow circumstances. "
8692 "Careful testing with each guest version is advisable."
8696 #: ../fish/guestfish-actions.pod:1612 ../src/guestfs-actions.pod:2477
8698 "If grub-install reports the error \"No suitable drive was found in the "
8699 "generated device map.\" it may be that you need to create a C</boot/grub/"
8700 "device.map> file first that contains the mapping between grub device names "
8701 "and Linux device names. It is usually sufficient to create a file "
8706 #: ../fish/guestfish-actions.pod:1619 ../src/guestfs-actions.pod:2484
8714 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2486
8715 msgid "replacing C</dev/vda> with the name of the installation device."
8719 #: ../fish/guestfish-actions.pod:1625
8724 #: ../fish/guestfish-actions.pod:1627
8734 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2500
8736 "This command returns up to the first 10 lines of a file as a list of strings."
8740 #: ../fish/guestfish-actions.pod:1635
8745 #: ../fish/guestfish-actions.pod:1637
8748 " head-n nrlines path\n"
8753 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2519
8755 "If the parameter C<nrlines> is a positive number, this returns the first "
8756 "C<nrlines> lines of the file C<path>."
8760 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2522
8762 "If the parameter C<nrlines> is a negative number, this returns lines from "
8763 "the file C<path>, excluding the last C<nrlines> lines."
8767 #: ../fish/guestfish-actions.pod:1645 ../fish/guestfish-actions.pod:4717
8768 #: ../src/guestfs-actions.pod:2525 ../src/guestfs-actions.pod:7150
8769 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8773 #: ../fish/guestfish-actions.pod:1650
8778 #: ../fish/guestfish-actions.pod:1652
8788 #: ../fish/guestfish-actions.pod:1654 ../src/guestfs-actions.pod:2542
8790 "This runs C<hexdump -C> on the given C<path>. The result is the human-"
8791 "readable, canonical hex dump of the file."
8795 #: ../fish/guestfish-actions.pod:1660
8800 #: ../fish/guestfish-actions.pod:1662
8803 " initrd-cat initrdpath filename\n"
8806 " initrd-cat шлях_initrd назва_файла\n"
8810 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2561
8812 "This command unpacks the file C<filename> from the initrd file called "
8813 "C<initrdpath>. The filename must be given I<without> the initial C</> "
8818 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2565
8820 "For example, in guestfish you could use the following command to examine the "
8821 "boot script (usually called C</init>) contained in a Linux initrd or "
8826 #: ../fish/guestfish-actions.pod:1672 ../src/guestfs-actions.pod:2569
8829 " initrd-cat /boot/initrd-<version>.img init\n"
8834 #: ../fish/guestfish-actions.pod:1674
8835 msgid "See also L</initrd-list>."
8836 msgstr "Див. також L</initrd-list>."
8839 #: ../fish/guestfish-actions.pod:1679
8841 msgstr "initrd-list"
8844 #: ../fish/guestfish-actions.pod:1681
8847 " initrd-list path\n"
8850 " initrd-list шлях\n"
8854 #: ../fish/guestfish-actions.pod:1683 ../src/guestfs-actions.pod:2588
8855 msgid "This command lists out files contained in an initrd."
8859 #: ../fish/guestfish-actions.pod:1685 ../src/guestfs-actions.pod:2590
8861 "The files are listed without any initial C</> character. The files are "
8862 "listed in the order they appear (not necessarily alphabetical). Directory "
8863 "names are listed as separate items."
8867 #: ../fish/guestfish-actions.pod:1689 ../src/guestfs-actions.pod:2594
8869 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8870 "initrd. We I<only> support the newer initramfs format (compressed cpio "
8875 #: ../fish/guestfish-actions.pod:1693
8876 msgid "inotify-add-watch"
8877 msgstr "inotify-add-watch"
8880 #: ../fish/guestfish-actions.pod:1695
8883 " inotify-add-watch path mask\n"
8886 " inotify-add-watch шлях маска\n"
8890 #: ../fish/guestfish-actions.pod:1697 ../src/guestfs-actions.pod:2611
8891 msgid "Watch C<path> for the events listed in C<mask>."
8895 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2613
8897 "Note that if C<path> is a directory then events within that directory are "
8898 "watched, but this does I<not> happen recursively (in subdirectories)."
8902 #: ../fish/guestfish-actions.pod:1703 ../src/guestfs-actions.pod:2617
8904 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8905 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8909 #: ../fish/guestfish-actions.pod:1707
8910 msgid "inotify-close"
8911 msgstr "inotify-close"
8914 #: ../fish/guestfish-actions.pod:1709
8924 #: ../fish/guestfish-actions.pod:1711 ../src/guestfs-actions.pod:2630
8926 "This closes the inotify handle which was previously opened by inotify_init. "
8927 "It removes all watches, throws away any pending events, and deallocates all "
8932 #: ../fish/guestfish-actions.pod:1715
8933 msgid "inotify-files"
8934 msgstr "inotify-files"
8937 #: ../fish/guestfish-actions.pod:1717
8947 #: ../fish/guestfish-actions.pod:1719
8949 "This function is a helpful wrapper around L</inotify-read> which just "
8950 "returns a list of pathnames of objects that were touched. The returned "
8951 "pathnames are sorted and deduplicated."
8955 #: ../fish/guestfish-actions.pod:1723
8956 msgid "inotify-init"
8957 msgstr "inotify-init"
8960 #: ../fish/guestfish-actions.pod:1725
8963 " inotify-init maxevents\n"
8968 #: ../fish/guestfish-actions.pod:1727 ../src/guestfs-actions.pod:2659
8970 "This command creates a new inotify handle. The inotify subsystem can be "
8971 "used to notify events which happen to objects in the guest filesystem."
8975 #: ../fish/guestfish-actions.pod:1731
8977 "C<maxevents> is the maximum number of events which will be queued up between "
8978 "calls to L</inotify-read> or L</inotify-files>. If this is passed as C<0>, "
8979 "then the kernel (or previously set) default is used. For Linux 2.6.29 the "
8980 "default was 16384 events. Beyond this limit, the kernel throws away events, "
8981 "but records the fact that it threw them away by setting a flag "
8982 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8986 #: ../fish/guestfish-actions.pod:1741
8988 "Before any events are generated, you have to add some watches to the "
8989 "internal watch list. See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8990 "L</inotify-watch-all>."
8994 #: ../fish/guestfish-actions.pod:1747
8996 "Queued up events should be read periodically by calling L</inotify-read> (or "
8997 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>). "
8998 "If you don't read the events out often enough then you risk the internal "
8999 "queue overflowing."
9003 #: ../fish/guestfish-actions.pod:1754
9005 "The handle should be closed after use by calling L</inotify-close>. This "
9006 "also removes any watches automatically."
9010 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2690
9012 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9013 "by the Linux kernel, which is roughly what we expose via libguestfs. Note "
9014 "that there is one global inotify handle per libguestfs instance."
9018 #: ../fish/guestfish-actions.pod:1763
9019 msgid "inotify-read"
9020 msgstr "inotify-read"
9023 #: ../fish/guestfish-actions.pod:1765
9033 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2704
9035 "Return the complete queue of events that have happened since the previous "
9040 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2707
9041 msgid "If no events have happened, this returns an empty list."
9045 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2709
9047 "I<Note>: In order to make sure that all events have been read, you must call "
9048 "this function repeatedly until it returns an empty list. The reason is that "
9049 "the call will read events up to the maximum appliance-to-host message size "
9050 "and leave remaining events in the queue."
9054 #: ../fish/guestfish-actions.pod:1778
9055 msgid "inotify-rm-watch"
9056 msgstr "inotify-rm-watch"
9059 #: ../fish/guestfish-actions.pod:1780
9062 " inotify-rm-watch wd\n"
9067 #: ../fish/guestfish-actions.pod:1782
9068 msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
9072 #: ../fish/guestfish-actions.pod:1785
9073 msgid "inspect-get-arch"
9074 msgstr "inspect-get-arch"
9077 #: ../fish/guestfish-actions.pod:1787
9080 " inspect-get-arch root\n"
9083 " inspect-get-arch корінь\n"
9087 #: ../fish/guestfish-actions.pod:1789
9089 "This returns the architecture of the inspected operating system. The "
9090 "possible return values are listed under L</file-architecture>."
9094 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2744
9096 "If the architecture could not be determined, then the string C<unknown> is "
9101 #: ../fish/guestfish-actions.pod:1796 ../fish/guestfish-actions.pod:1883
9102 #: ../fish/guestfish-actions.pod:1962 ../fish/guestfish-actions.pod:1974
9103 #: ../fish/guestfish-actions.pod:2058 ../fish/guestfish-actions.pod:2119
9104 #: ../fish/guestfish-actions.pod:2140 ../fish/guestfish-actions.pod:2154
9105 #: ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2226
9106 #: ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2252
9107 #: ../fish/guestfish-actions.pod:2262 ../fish/guestfish-actions.pod:2272
9108 #: ../fish/guestfish-actions.pod:2284 ../fish/guestfish-actions.pod:2380
9109 #: ../fish/guestfish-actions.pod:2414 ../src/guestfs-actions.pod:2747
9110 #: ../src/guestfs-actions.pod:2841 ../src/guestfs-actions.pod:2945
9111 #: ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3095
9112 #: ../src/guestfs-actions.pod:3178 ../src/guestfs-actions.pod:3206
9113 #: ../src/guestfs-actions.pod:3227 ../src/guestfs-actions.pod:3280
9114 #: ../src/guestfs-actions.pod:3320 ../src/guestfs-actions.pod:3340
9115 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:3377
9116 #: ../src/guestfs-actions.pod:3393 ../src/guestfs-actions.pod:3411
9117 #: ../src/guestfs-actions.pod:3513 ../src/guestfs-actions.pod:3554
9118 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9122 #: ../fish/guestfish-actions.pod:1798
9123 msgid "inspect-get-distro"
9124 msgstr "inspect-get-distro"
9127 #: ../fish/guestfish-actions.pod:1800
9130 " inspect-get-distro root\n"
9133 " inspect-get-distro корінь\n"
9137 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2760
9139 "This returns the distro (distribution) of the inspected operating system."
9143 #: ../fish/guestfish-actions.pod:1805 ../src/guestfs-actions.pod:2763
9144 msgid "Currently defined distros are:"
9148 #: ../fish/guestfish-actions.pod:1809 ../src/guestfs-actions.pod:2767
9149 msgid "\"archlinux\""
9150 msgstr "\"archlinux\""
9153 #: ../fish/guestfish-actions.pod:1811 ../src/guestfs-actions.pod:2769
9155 msgstr "Arch Linux."
9158 #: ../fish/guestfish-actions.pod:1813 ../src/guestfs-actions.pod:2771
9163 #: ../fish/guestfish-actions.pod:1815 ../src/guestfs-actions.pod:2773
9168 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2775
9173 #: ../fish/guestfish-actions.pod:1819 ../src/guestfs-actions.pod:2777
9178 #: ../fish/guestfish-actions.pod:1821 ../src/guestfs-actions.pod:2779
9183 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2781
9188 #: ../fish/guestfish-actions.pod:1825 ../src/guestfs-actions.pod:2783
9193 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2785
9198 #: ../fish/guestfish-actions.pod:1829 ../src/guestfs-actions.pod:2787
9199 msgid "\"linuxmint\""
9200 msgstr "\"linuxmint\""
9203 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2789
9205 msgstr "Linux Mint."
9208 #: ../fish/guestfish-actions.pod:1833 ../src/guestfs-actions.pod:2791
9209 msgid "\"mandriva\""
9210 msgstr "\"mandriva\""
9213 #: ../fish/guestfish-actions.pod:1835 ../src/guestfs-actions.pod:2793
9218 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2795
9223 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2797
9228 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2799
9233 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2801
9238 #: ../fish/guestfish-actions.pod:1845 ../src/guestfs-actions.pod:2803
9239 msgid "\"redhat-based\""
9240 msgstr "\"redhat-based\""
9243 #: ../fish/guestfish-actions.pod:1847 ../src/guestfs-actions.pod:2805
9244 msgid "Some Red Hat-derived distro."
9245 msgstr "Дистрибутив, що походить від Red Hat."
9248 #: ../fish/guestfish-actions.pod:1849 ../src/guestfs-actions.pod:2807
9253 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2809
9254 msgid "Red Hat Enterprise Linux."
9258 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2811
9259 msgid "\"scientificlinux\""
9263 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2813
9264 msgid "Scientific Linux."
9268 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2815
9269 msgid "\"slackware\""
9273 #: ../fish/guestfish-actions.pod:1859 ../src/guestfs-actions.pod:2817
9278 #: ../fish/guestfish-actions.pod:1861 ../src/guestfs-actions.pod:2819
9280 #| msgid "\"linux\""
9281 msgid "\"ttylinux\""
9285 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2821
9287 #| msgid "\"linux\""
9292 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2823
9297 #: ../fish/guestfish-actions.pod:1867 ../src/guestfs-actions.pod:2825
9302 #: ../fish/guestfish-actions.pod:1869 ../fish/guestfish-actions.pod:1953
9303 #: ../fish/guestfish-actions.pod:2217 ../src/guestfs-actions.pod:2827
9304 #: ../src/guestfs-actions.pod:2936 ../src/guestfs-actions.pod:3311
9306 msgstr "\"unknown\""
9309 #: ../fish/guestfish-actions.pod:1871 ../src/guestfs-actions.pod:2829
9310 msgid "The distro could not be determined."
9311 msgstr "Дистрибутив, тип якого не вдалося визначити."
9314 #: ../fish/guestfish-actions.pod:1873 ../fish/guestfish-actions.pod:2209
9315 #: ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:3303
9317 msgstr "\"windows\""
9320 #: ../fish/guestfish-actions.pod:1875 ../src/guestfs-actions.pod:2833
9322 "Windows does not have distributions. This string is returned if the OS type "
9327 #: ../fish/guestfish-actions.pod:1880 ../fish/guestfish-actions.pod:1959
9328 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:2838
9329 #: ../src/guestfs-actions.pod:2942 ../src/guestfs-actions.pod:3317
9331 "Future versions of libguestfs may return other strings here. The caller "
9332 "should be prepared to handle any string."
9336 #: ../fish/guestfish-actions.pod:1885
9337 msgid "inspect-get-drive-mappings"
9341 #: ../fish/guestfish-actions.pod:1887
9344 " inspect-get-drive-mappings root\n"
9349 #: ../fish/guestfish-actions.pod:1889 ../src/guestfs-actions.pod:2854
9351 "This call is useful for Windows which uses a primitive system of assigning "
9352 "drive letters (like \"C:\") to partitions. This inspection API examines the "
9353 "Windows Registry to find out how disks/partitions are mapped to drive "
9354 "letters, and returns a hash table as in the example below:"
9358 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:2860
9368 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2864
9370 "Note that keys are drive letters. For Windows, the key is case insensitive "
9371 "and just contains the drive letter, without the customary colon separator "
9376 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2868
9378 "In future we may support other operating systems that also used drive "
9379 "letters, but the keys for those might not be case insensitive and might be "
9380 "longer than 1 character. For example in OS-9, hard drives were named C<h0>, "
9385 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2873
9387 "For Windows guests, currently only hard drive mappings are returned. "
9388 "Removable disks (eg. DVD-ROMs) are ignored."
9392 #: ../fish/guestfish-actions.pod:1911 ../src/guestfs-actions.pod:2876
9394 "For guests that do not use drive mappings, or if the drive mappings could "
9395 "not be determined, this returns an empty hash table."
9399 #: ../fish/guestfish-actions.pod:1914
9401 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9402 "get-mountpoints>, L</inspect-get-filesystems>."
9406 #: ../fish/guestfish-actions.pod:1918
9407 msgid "inspect-get-filesystems"
9408 msgstr "inspect-get-filesystems"
9411 #: ../fish/guestfish-actions.pod:1920
9414 " inspect-get-filesystems root\n"
9417 " inspect-get-filesystems корінь\n"
9421 #: ../fish/guestfish-actions.pod:1922 ../src/guestfs-actions.pod:2897
9423 "This returns a list of all the filesystems that we think are associated with "
9424 "this operating system. This includes the root filesystem, other ordinary "
9425 "filesystems, and non-mounted devices like swap partitions."
9429 #: ../fish/guestfish-actions.pod:1927 ../src/guestfs-actions.pod:2902
9431 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
9432 "to be shared between operating systems."
9436 #: ../fish/guestfish-actions.pod:1930
9438 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9443 #: ../fish/guestfish-actions.pod:1933
9444 msgid "inspect-get-format"
9445 msgstr "inspect-get-format"
9448 #: ../fish/guestfish-actions.pod:1935
9451 " inspect-get-format root\n"
9454 " inspect-get-format корінь\n"
9458 #: ../fish/guestfish-actions.pod:1937 ../src/guestfs-actions.pod:2920
9460 "This returns the format of the inspected operating system. You can use it "
9461 "to detect install images, live CDs and similar."
9465 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2923
9466 msgid "Currently defined formats are:"
9470 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:2927
9471 msgid "\"installed\""
9472 msgstr "\"installed\""
9475 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2929
9476 msgid "This is an installed operating system."
9477 msgstr "Це встановлена операційна система."
9480 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2931
9481 msgid "\"installer\""
9485 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2933
9487 "The disk image being inspected is not an installed operating system, but a "
9488 "I<bootable> install disk, live CD, or similar."
9492 #: ../fish/guestfish-actions.pod:1955 ../src/guestfs-actions.pod:2938
9493 msgid "The format of this disk image is not known."
9497 #: ../fish/guestfish-actions.pod:1964
9498 msgid "inspect-get-hostname"
9499 msgstr "inspect-get-hostname"
9502 #: ../fish/guestfish-actions.pod:1966
9505 " inspect-get-hostname root\n"
9508 " inspect-get-hostname корінь\n"
9512 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2958
9514 "This function returns the hostname of the operating system as found by "
9515 "inspection of the guest's configuration files."
9519 #: ../fish/guestfish-actions.pod:1971 ../src/guestfs-actions.pod:2961
9521 "If the hostname could not be determined, then the string C<unknown> is "
9526 #: ../fish/guestfish-actions.pod:1976
9527 msgid "inspect-get-icon"
9531 #: ../fish/guestfish-actions.pod:1978
9534 " inspect-get-icon root [favicon:..] [highquality:..]\n"
9539 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:2987
9541 "This function returns an icon corresponding to the inspected operating "
9542 "system. The icon is returned as a buffer containing a PNG image (re-encoded "
9543 "to PNG if necessary)."
9547 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2991
9549 "If it was not possible to get an icon this function returns a zero-length "
9550 "(non-NULL) buffer. I<Callers must check for this case>."
9554 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:2994
9556 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
9557 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
9558 "this file will be returned. You can disable favicons by passing the "
9559 "optional C<favicon> boolean as false (default is true)."
9563 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3000
9565 "If finding the favicon fails, then we look in other places in the guest for "
9570 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3003
9572 "If the optional C<highquality> boolean is true then only high quality icons "
9573 "are returned, which means only icons of high resolution with an alpha "
9574 "channel. The default (false) is to return any icon we can, even if it is of "
9575 "substandard quality."
9579 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3014
9581 "Unlike most other inspection API calls, the guest's disks must be mounted up "
9582 "before you call this, since it needs to read information from the guest "
9583 "filesystem during the call."
9587 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:3020
9589 "B<Security:> The icon data comes from the untrusted guest, and should be "
9590 "treated with caution. PNG files have been known to contain exploits. "
9591 "Ensure that libpng (or other relevant libraries) are fully up to date before "
9592 "trying to process or display the icon."
9596 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3028
9598 "The PNG image returned can be any size. It might not be square. Libguestfs "
9599 "tries to return the largest, highest quality icon available. The "
9600 "application must scale the icon to the required size."
9604 #: ../fish/guestfish-actions.pod:2028 ../src/guestfs-actions.pod:3035
9606 "Extracting icons from Windows guests requires the external C<wrestool> "
9607 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
9608 "C<pnmtopng>, C<pamcut>) from the C<netpbm> package. These must be "
9609 "installed separately."
9613 #: ../fish/guestfish-actions.pod:2035 ../src/guestfs-actions.pod:3042
9615 "Operating system icons are usually trademarks. Seek legal advice before "
9616 "using trademarks in applications."
9620 #: ../fish/guestfish-actions.pod:2042
9621 msgid "inspect-get-major-version"
9622 msgstr "inspect-get-major-version"
9625 #: ../fish/guestfish-actions.pod:2044
9628 " inspect-get-major-version root\n"
9631 " inspect-get-major-version корінь\n"
9635 #: ../fish/guestfish-actions.pod:2046 ../src/guestfs-actions.pod:3083
9637 "This returns the major version number of the inspected operating system."
9641 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3086
9643 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9644 "popular public names used by the operating system. Notably the operating "
9645 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9646 "1). You can find out the real versions corresponding to releases of Windows "
9647 "by consulting Wikipedia or MSDN."
9651 #: ../fish/guestfish-actions.pod:2056 ../fish/guestfish-actions.pod:2067
9652 #: ../src/guestfs-actions.pod:3093 ../src/guestfs-actions.pod:3110
9653 msgid "If the version could not be determined, then C<0> is returned."
9657 #: ../fish/guestfish-actions.pod:2060
9658 msgid "inspect-get-minor-version"
9659 msgstr "inspect-get-minor-version"
9662 #: ../fish/guestfish-actions.pod:2062
9665 " inspect-get-minor-version root\n"
9668 " inspect-get-minor-version корінь\n"
9672 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3107
9674 "This returns the minor version number of the inspected operating system."
9678 #: ../fish/guestfish-actions.pod:2069
9680 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9681 "get-major-version>."
9685 #: ../fish/guestfish-actions.pod:2072
9686 msgid "inspect-get-mountpoints"
9687 msgstr "inspect-get-mountpoints"
9690 #: ../fish/guestfish-actions.pod:2074
9693 " inspect-get-mountpoints root\n"
9696 " inspect-get-mountpoints корінь\n"
9700 #: ../fish/guestfish-actions.pod:2076 ../src/guestfs-actions.pod:3125
9702 "This returns a hash of where we think the filesystems associated with this "
9703 "operating system should be mounted. Callers should note that this is at "
9704 "best an educated guess made by reading configuration files such as C</etc/"
9705 "fstab>. I<In particular note> that this may return filesystems which are "
9706 "non-existent or not mountable and callers should be prepared to handle or "
9707 "ignore failures if they try to mount them."
9711 #: ../fish/guestfish-actions.pod:2085 ../src/guestfs-actions.pod:3134
9713 "Each element in the returned hashtable has a key which is the path of the "
9714 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9715 "mounted there (eg. C</dev/sda1>)."
9719 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3139
9721 "Non-mounted devices such as swap devices are I<not> returned in this list."
9725 #: ../fish/guestfish-actions.pod:2093
9727 "For operating systems like Windows which still use drive letters, this call "
9728 "will only return an entry for the first drive \"mounted on\" C</>. For "
9729 "information about the mapping of drive letters to partitions, see L</inspect-"
9730 "get-drive-mappings>."
9734 #: ../fish/guestfish-actions.pod:2099
9736 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9741 #: ../fish/guestfish-actions.pod:2102
9742 msgid "inspect-get-package-format"
9743 msgstr "inspect-get-package-format"
9746 #: ../fish/guestfish-actions.pod:2104
9749 " inspect-get-package-format root\n"
9752 " inspect-get-package-format корінь\n"
9756 #: ../fish/guestfish-actions.pod:2106
9758 "This function and L</inspect-get-package-management> return the package "
9759 "format and package management tool used by the inspected operating system. "
9760 "For example for Fedora these functions would return C<rpm> (package format) "
9761 "and C<yum> (package management)."
9765 #: ../fish/guestfish-actions.pod:2112 ../src/guestfs-actions.pod:3171
9767 "This returns the string C<unknown> if we could not determine the package "
9768 "format I<or> if the operating system does not have a real packaging system "
9773 #: ../fish/guestfish-actions.pod:2116 ../src/guestfs-actions.pod:3175
9775 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>. "
9776 "Future versions of libguestfs may return other strings."
9780 #: ../fish/guestfish-actions.pod:2121
9781 msgid "inspect-get-package-management"
9782 msgstr "inspect-get-package-management"
9785 #: ../fish/guestfish-actions.pod:2123
9788 " inspect-get-package-management root\n"
9791 " inspect-get-package-management корінь\n"
9795 #: ../fish/guestfish-actions.pod:2125
9797 "L</inspect-get-package-format> and this function return the package format "
9798 "and package management tool used by the inspected operating system. For "
9799 "example for Fedora these functions would return C<rpm> (package format) and "
9800 "C<yum> (package management)."
9804 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3197
9806 "This returns the string C<unknown> if we could not determine the package "
9807 "management tool I<or> if the operating system does not have a real packaging "
9808 "system (eg. Windows)."
9812 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3201
9814 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9815 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>. Future versions of "
9816 "libguestfs may return other strings."
9820 #: ../fish/guestfish-actions.pod:2142
9821 msgid "inspect-get-product-name"
9822 msgstr "inspect-get-product-name"
9825 #: ../fish/guestfish-actions.pod:2144
9828 " inspect-get-product-name root\n"
9831 " inspect-get-product-name корінь\n"
9835 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3219
9837 "This returns the product name of the inspected operating system. The "
9838 "product name is generally some freeform string which can be displayed to the "
9839 "user, but should not be parsed by programs."
9843 #: ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:3224
9845 "If the product name could not be determined, then the string C<unknown> is "
9850 #: ../fish/guestfish-actions.pod:2156
9851 msgid "inspect-get-product-variant"
9855 #: ../fish/guestfish-actions.pod:2158
9858 " inspect-get-product-variant root\n"
9863 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3240
9864 msgid "This returns the product variant of the inspected operating system."
9868 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3243
9870 "For Windows guests, this returns the contents of the Registry key C<HKLM"
9871 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
9872 "is usually a string such as C<Client> or C<Server> (other values are "
9873 "possible). This can be used to distinguish consumer and enterprise versions "
9874 "of Windows that have the same version number (for example, Windows 7 and "
9875 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9876 "the latter is C<Server>)."
9880 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:3252
9882 "For enterprise Linux guests, in future we intend this to return the product "
9883 "variant such as C<Desktop>, C<Server> and so on. But this is not "
9884 "implemented at present."
9888 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3256
9890 "If the product variant could not be determined, then the string C<unknown> "
9895 #: ../fish/guestfish-actions.pod:2179
9897 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
9898 "get-product-name>, L</inspect-get-major-version>."
9902 #: ../fish/guestfish-actions.pod:2183
9903 msgid "inspect-get-roots"
9904 msgstr "inspect-get-roots"
9907 #: ../fish/guestfish-actions.pod:2185
9910 " inspect-get-roots\n"
9913 " inspect-get-roots\n"
9917 #: ../fish/guestfish-actions.pod:2187
9919 "This function is a convenient way to get the list of root devices, as "
9920 "returned from a previous call to L</inspect-os>, but without redoing the "
9921 "whole inspection process."
9925 #: ../fish/guestfish-actions.pod:2191
9927 "This returns an empty list if either no root devices were found or the "
9928 "caller has not called L</inspect-os>."
9932 #: ../fish/guestfish-actions.pod:2196
9933 msgid "inspect-get-type"
9934 msgstr "inspect-get-type"
9937 #: ../fish/guestfish-actions.pod:2198
9940 " inspect-get-type root\n"
9943 " inspect-get-type корінь\n"
9947 #: ../fish/guestfish-actions.pod:2200 ../src/guestfs-actions.pod:3294
9949 "This returns the type of the inspected operating system. Currently defined "
9954 #: ../fish/guestfish-actions.pod:2205 ../src/guestfs-actions.pod:3299
9959 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3301
9960 msgid "Any Linux-based operating system."
9964 #: ../fish/guestfish-actions.pod:2211 ../src/guestfs-actions.pod:3305
9965 msgid "Any Microsoft Windows operating system."
9969 #: ../fish/guestfish-actions.pod:2213 ../src/guestfs-actions.pod:3307
9971 msgstr "\"freebsd\""
9974 #: ../fish/guestfish-actions.pod:2215 ../src/guestfs-actions.pod:3309
9979 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3313
9980 msgid "The operating system type could not be determined."
9984 #: ../fish/guestfish-actions.pod:2228
9985 msgid "inspect-get-windows-current-control-set"
9989 #: ../fish/guestfish-actions.pod:2230
9992 " inspect-get-windows-current-control-set root\n"
9997 #: ../fish/guestfish-actions.pod:2232 ../src/guestfs-actions.pod:3333
9999 "This returns the Windows CurrentControlSet of the inspected guest. The "
10000 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10004 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3336
10006 "This call assumes that the guest is Windows and that the Registry could be "
10007 "examined by inspection. If this is not the case then an error is returned."
10011 #: ../fish/guestfish-actions.pod:2241
10012 msgid "inspect-get-windows-systemroot"
10013 msgstr "inspect-get-windows-systemroot"
10016 #: ../fish/guestfish-actions.pod:2243
10019 " inspect-get-windows-systemroot root\n"
10022 " inspect-get-windows-systemroot корінь\n"
10026 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3353
10028 "This returns the Windows systemroot of the inspected guest. The systemroot "
10029 "is a directory path such as C</WINDOWS>."
10033 #: ../fish/guestfish-actions.pod:2248 ../src/guestfs-actions.pod:3356
10035 "This call assumes that the guest is Windows and that the systemroot could be "
10036 "determined by inspection. If this is not the case then an error is returned."
10040 #: ../fish/guestfish-actions.pod:2254
10041 msgid "inspect-is-live"
10042 msgstr "inspect-is-live"
10045 #: ../fish/guestfish-actions.pod:2256
10048 " inspect-is-live root\n"
10051 " inspect-is-live корінь\n"
10055 #: ../fish/guestfish-actions.pod:2258
10057 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10058 "then this returns true if a live image was detected on the disk."
10062 #: ../fish/guestfish-actions.pod:2264
10063 msgid "inspect-is-multipart"
10064 msgstr "inspect-is-multipart"
10067 #: ../fish/guestfish-actions.pod:2266
10070 " inspect-is-multipart root\n"
10073 " inspect-is-multipart корінь\n"
10077 #: ../fish/guestfish-actions.pod:2268
10079 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10080 "then this returns true if the disk is part of a set."
10084 #: ../fish/guestfish-actions.pod:2274
10085 msgid "inspect-is-netinst"
10086 msgstr "inspect-is-netinst"
10089 #: ../fish/guestfish-actions.pod:2276
10092 " inspect-is-netinst root\n"
10095 " inspect-is-netinst корінь\n"
10099 #: ../fish/guestfish-actions.pod:2278
10101 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10102 "then this returns true if the disk is a network installer, ie. not a self-"
10103 "contained install CD but one which is likely to require network access to "
10104 "complete the install."
10108 #: ../fish/guestfish-actions.pod:2286
10109 msgid "inspect-list-applications"
10110 msgstr "inspect-list-applications"
10113 #: ../fish/guestfish-actions.pod:2288
10116 " inspect-list-applications root\n"
10119 " inspect-list-applications кореневий_каталог\n"
10123 #: ../fish/guestfish-actions.pod:2290 ../src/guestfs-actions.pod:3423
10124 msgid "Return the list of applications installed in the operating system."
10128 #: ../fish/guestfish-actions.pod:2292
10130 "I<Note:> This call works differently from other parts of the inspection "
10131 "API. You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
10132 "then mount up the disks, before calling this. Listing applications is a "
10133 "significantly more difficult operation which requires access to the full "
10134 "filesystem. Also note that unlike the other L</inspect-get-*> calls which "
10135 "are just returning data cached in the libguestfs handle, this call actually "
10136 "reads parts of the mounted filesystems during the call."
10140 #: ../fish/guestfish-actions.pod:2302 ../src/guestfs-actions.pod:3435
10142 "This returns an empty list if the inspection code was not able to determine "
10143 "the list of applications."
10147 #: ../fish/guestfish-actions.pod:2305 ../src/guestfs-actions.pod:3438
10148 msgid "The application structure contains the following fields:"
10152 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3442
10153 msgid "C<app_name>"
10154 msgstr "C<app_name>"
10157 #: ../fish/guestfish-actions.pod:2311 ../src/guestfs-actions.pod:3444
10159 "The name of the application. For Red Hat-derived and Debian-derived Linux "
10160 "guests, this is the package name."
10164 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3447
10165 msgid "C<app_display_name>"
10166 msgstr "C<app_display_name>"
10169 #: ../fish/guestfish-actions.pod:2316 ../src/guestfs-actions.pod:3449
10171 "The display name of the application, sometimes localized to the install "
10172 "language of the guest operating system."
10176 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3452
10178 "If unavailable this is returned as an empty string C<\"\">. Callers needing "
10179 "to display something can use C<app_name> instead."
10183 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3455
10184 msgid "C<app_epoch>"
10185 msgstr "C<app_epoch>"
10188 #: ../fish/guestfish-actions.pod:2324 ../src/guestfs-actions.pod:3457
10190 "For package managers which use epochs, this contains the epoch of the "
10191 "package (an integer). If unavailable, this is returned as C<0>."
10195 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3460
10196 msgid "C<app_version>"
10197 msgstr "C<app_version>"
10200 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3462
10202 "The version string of the application or package. If unavailable this is "
10203 "returned as an empty string C<\"\">."
10207 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3465
10208 msgid "C<app_release>"
10209 msgstr "C<app_release>"
10212 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3467
10214 "The release string of the application or package, for package managers that "
10215 "use this. If unavailable this is returned as an empty string C<\"\">."
10219 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3471
10220 msgid "C<app_install_path>"
10221 msgstr "C<app_install_path>"
10224 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3473
10226 "The installation path of the application (on operating systems such as "
10227 "Windows which use installation paths). This path is in the format used by "
10228 "the guest operating system, it is not a libguestfs path."
10232 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3478
10233 msgid "If unavailable this is returned as an empty string C<\"\">."
10237 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3480
10238 msgid "C<app_trans_path>"
10239 msgstr "C<app_trans_path>"
10242 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3482
10244 "The install path translated into a libguestfs path. If unavailable this is "
10245 "returned as an empty string C<\"\">."
10249 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3485
10250 msgid "C<app_publisher>"
10251 msgstr "C<app_publisher>"
10254 #: ../fish/guestfish-actions.pod:2354 ../src/guestfs-actions.pod:3487
10256 "The name of the publisher of the application, for package managers that use "
10257 "this. If unavailable this is returned as an empty string C<\"\">."
10261 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3491
10263 msgstr "C<app_url>"
10266 #: ../fish/guestfish-actions.pod:2360 ../src/guestfs-actions.pod:3493
10268 "The URL (eg. upstream URL) of the application. If unavailable this is "
10269 "returned as an empty string C<\"\">."
10273 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3496
10274 msgid "C<app_source_package>"
10275 msgstr "C<app_source_package>"
10278 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3498
10280 "For packaging systems which support this, the name of the source package. "
10281 "If unavailable this is returned as an empty string C<\"\">."
10285 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3501
10286 msgid "C<app_summary>"
10287 msgstr "C<app_summary>"
10290 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3503
10292 "A short (usually one line) description of the application or package. If "
10293 "unavailable this is returned as an empty string C<\"\">."
10297 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3506
10298 msgid "C<app_description>"
10299 msgstr "C<app_description>"
10302 #: ../fish/guestfish-actions.pod:2375 ../src/guestfs-actions.pod:3508
10304 "A longer description of the application or package. If unavailable this is "
10305 "returned as an empty string C<\"\">."
10309 #: ../fish/guestfish-actions.pod:2382
10311 msgstr "inspect-os"
10314 #: ../fish/guestfish-actions.pod:2384
10324 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3526
10326 "This function uses other libguestfs functions and certain heuristics to "
10327 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
10328 "for operating systems."
10332 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3530
10333 msgid "The list returned is empty if no operating systems were found."
10337 #: ../fish/guestfish-actions.pod:2392 ../src/guestfs-actions.pod:3532
10339 "If one operating system was found, then this returns a list with a single "
10340 "element, which is the name of the root filesystem of this operating system. "
10341 "It is also possible for this function to return a list containing more than "
10342 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
10343 "element being the root filesystem of one of the operating systems."
10347 #: ../fish/guestfish-actions.pod:2399
10349 "You can pass the root string(s) returned to other L</inspect-get-*> "
10350 "functions in order to query further information about each operating system, "
10351 "such as the name and version."
10355 #: ../fish/guestfish-actions.pod:2404
10357 "This function uses other libguestfs features such as L</mount-ro> and L</"
10358 "umount-all> in order to mount and unmount filesystems and look at the "
10359 "contents. This should be called with no disks currently mounted. The "
10360 "function may also use Augeas, so any existing Augeas handle will be closed."
10364 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3550
10366 "This function cannot decrypt encrypted disks. The caller must do that first "
10367 "(supplying the necessary keys) if the disk is encrypted."
10371 #: ../fish/guestfish-actions.pod:2416 ../fish/guestfish-actions.pod:2614
10372 #: ../fish/guestfish-actions.pod:2673
10373 msgid "See also L</list-filesystems>."
10374 msgstr "Див. також L</list-filesystems>."
10377 #: ../fish/guestfish-actions.pod:2418
10378 msgid "is-blockdev"
10379 msgstr "is-blockdev"
10382 #: ../fish/guestfish-actions.pod:2420
10385 " is-blockdev path\n"
10388 " is-blockdev шлях\n"
10392 #: ../fish/guestfish-actions.pod:2422 ../src/guestfs-actions.pod:3570
10394 "This returns C<true> if and only if there is a block device with the given "
10399 #: ../fish/guestfish-actions.pod:2425 ../fish/guestfish-actions.pod:2443
10400 #: ../fish/guestfish-actions.pod:2462 ../fish/guestfish-actions.pod:2471
10401 #: ../fish/guestfish-actions.pod:2481 ../fish/guestfish-actions.pod:2515
10402 #: ../fish/guestfish-actions.pod:2524
10403 msgid "See also L</stat>."
10404 msgstr "Див. також L</stat>."
10407 #: ../fish/guestfish-actions.pod:2427
10412 #: ../fish/guestfish-actions.pod:2429
10422 #: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3584
10424 "This returns true iff this handle is busy processing a command (in the "
10429 #: ../fish/guestfish-actions.pod:2436
10431 msgstr "is-chardev"
10434 #: ../fish/guestfish-actions.pod:2438
10437 " is-chardev path\n"
10440 " is-chardev шлях\n"
10444 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3599
10446 "This returns C<true> if and only if there is a character device with the "
10447 "given C<path> name."
10451 #: ../fish/guestfish-actions.pod:2445
10456 #: ../fish/guestfish-actions.pod:2447
10466 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3613
10468 "This returns true iff this handle is being configured (in the C<CONFIG> "
10473 #: ../fish/guestfish-actions.pod:2454
10478 #: ../fish/guestfish-actions.pod:2456
10488 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3628
10490 "This returns C<true> if and only if there is a directory with the given "
10491 "C<path> name. Note that it returns false for other objects like files."
10495 #: ../fish/guestfish-actions.pod:2464
10500 #: ../fish/guestfish-actions.pod:2466
10510 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3644
10512 "This returns C<true> if and only if there is a FIFO (named pipe) with the "
10513 "given C<path> name."
10517 #: ../fish/guestfish-actions.pod:2473
10522 #: ../fish/guestfish-actions.pod:2475
10532 #: ../fish/guestfish-actions.pod:2477 ../src/guestfs-actions.pod:3659
10534 "This returns C<true> if and only if there is a regular file with the given "
10535 "C<path> name. Note that it returns false for other objects like directories."
10539 #: ../fish/guestfish-actions.pod:2483
10540 msgid "is-launching"
10541 msgstr "is-launching"
10544 #: ../fish/guestfish-actions.pod:2485
10554 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3674
10556 "This returns true iff this handle is launching the subprocess (in the "
10557 "C<LAUNCHING> state)."
10561 #: ../fish/guestfish-actions.pod:2492
10566 #: ../fish/guestfish-actions.pod:2494
10572 " is-lv пристрій\n"
10576 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3689
10578 "This command tests whether C<device> is a logical volume, and returns true "
10579 "iff this is the case."
10583 #: ../fish/guestfish-actions.pod:2499
10588 #: ../fish/guestfish-actions.pod:2501
10598 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3701
10600 "This returns true iff this handle is ready to accept commands (in the "
10605 #: ../fish/guestfish-actions.pod:2508
10610 #: ../fish/guestfish-actions.pod:2510
10613 " is-socket path\n"
10616 " is-socket шлях\n"
10620 #: ../fish/guestfish-actions.pod:2512 ../src/guestfs-actions.pod:3716
10622 "This returns C<true> if and only if there is a Unix domain socket with the "
10623 "given C<path> name."
10627 #: ../fish/guestfish-actions.pod:2517
10629 msgstr "is-symlink"
10632 #: ../fish/guestfish-actions.pod:2519
10635 " is-symlink path\n"
10638 " is-symlink шлях\n"
10642 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3731
10644 "This returns C<true> if and only if there is a symbolic link with the given "
10649 #: ../fish/guestfish-actions.pod:2526
10654 #: ../fish/guestfish-actions.pod:2528
10662 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3746
10664 "This returns true iff the file exists and the file is empty or it contains "
10669 #: ../fish/guestfish-actions.pod:2533
10670 msgid "is-zero-device"
10674 #: ../fish/guestfish-actions.pod:2535
10677 " is-zero-device device\n"
10682 #: ../fish/guestfish-actions.pod:2537 ../src/guestfs-actions.pod:3759
10683 msgid "This returns true iff the device exists and contains all zero bytes."
10687 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3761
10688 msgid "Note that for large devices this can take a long time to run."
10692 #: ../fish/guestfish-actions.pod:2541
10693 msgid "kill-subprocess"
10694 msgstr "kill-subprocess"
10697 #: ../fish/guestfish-actions.pod:2543
10700 " kill-subprocess\n"
10703 " kill-subprocess\n"
10707 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3772
10708 msgid "This kills the qemu subprocess. You should never need to call this."
10712 #: ../fish/guestfish-actions.pod:2547
10717 #: ../fish/guestfish-actions.pod:2549
10722 #: ../fish/guestfish-actions.pod:2551
10732 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3783
10734 "Internally libguestfs is implemented by running a virtual machine using "
10739 #: ../fish/guestfish-actions.pod:2556 ../src/guestfs-actions.pod:3786
10741 "You should call this after configuring the handle (eg. adding drives) but "
10742 "before performing any actions."
10746 #: ../fish/guestfish-actions.pod:2559
10751 #: ../fish/guestfish-actions.pod:2561
10754 " lchown owner group path\n"
10757 " lchown власник група шлях\n"
10761 #: ../fish/guestfish-actions.pod:2563
10763 "Change the file owner to C<owner> and group to C<group>. This is like L</"
10764 "chown> but if C<path> is a symlink then the link itself is changed, not the "
10769 #: ../fish/guestfish-actions.pod:2571
10774 #: ../fish/guestfish-actions.pod:2573
10777 " lgetxattr path name\n"
10780 " lgetxattr шлях назва\n"
10784 #: ../fish/guestfish-actions.pod:2575 ../src/guestfs-actions.pod:3826
10786 "Get a single extended attribute from file C<path> named C<name>. If C<path> "
10787 "is a symlink, then this call returns an extended attribute from the symlink."
10791 #: ../fish/guestfish-actions.pod:2589
10792 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10793 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10796 #: ../fish/guestfish-actions.pod:2591
10798 msgstr "lgetxattrs"
10801 #: ../fish/guestfish-actions.pod:2593
10804 " lgetxattrs path\n"
10807 " lgetxattrs шлях\n"
10811 #: ../fish/guestfish-actions.pod:2595
10813 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10814 "it returns the extended attributes of the link itself."
10818 #: ../fish/guestfish-actions.pod:2599
10823 #: ../fish/guestfish-actions.pod:2601
10831 #: ../fish/guestfish-actions.pod:2603 ../src/guestfs-actions.pod:3869
10833 "List all 9p filesystems attached to the guest. A list of mount tags is "
10838 #: ../fish/guestfish-actions.pod:2606
10839 msgid "list-devices"
10840 msgstr "list-devices"
10843 #: ../fish/guestfish-actions.pod:2608
10853 #: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3883
10854 msgid "List all the block devices."
10858 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3885
10859 msgid "The full block device names are returned, eg. C</dev/sda>."
10863 #: ../fish/guestfish-actions.pod:2616
10864 msgid "list-dm-devices"
10868 #: ../fish/guestfish-actions.pod:2618
10871 " list-dm-devices\n"
10876 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:3900
10877 msgid "List all device mapper devices."
10881 #: ../fish/guestfish-actions.pod:2622
10883 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10884 "previous call to L</luks-open>."
10888 #: ../fish/guestfish-actions.pod:2625
10890 "Device mapper devices which correspond to logical volumes are I<not> "
10891 "returned in this list. Call L</lvs> if you want to list logical volumes."
10895 #: ../fish/guestfish-actions.pod:2629
10896 msgid "list-filesystems"
10897 msgstr "list-filesystems"
10900 #: ../fish/guestfish-actions.pod:2631
10903 " list-filesystems\n"
10906 " list-filesystems\n"
10910 #: ../fish/guestfish-actions.pod:2633 ../src/guestfs-actions.pod:3920
10912 "This inspection command looks for filesystems on partitions, block devices "
10913 "and logical volumes, returning a list of devices containing filesystems and "
10918 #: ../fish/guestfish-actions.pod:2637 ../src/guestfs-actions.pod:3924
10920 "The return value is a hash, where the keys are the devices containing "
10921 "filesystems, and the values are the filesystem types. For example:"
10925 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3928
10928 " \"/dev/sda1\" => \"ntfs\"\n"
10929 " \"/dev/sda2\" => \"ext2\"\n"
10930 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10931 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10936 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:3933
10938 "The value can have the special value \"unknown\", meaning the content of the "
10939 "device is undetermined or empty. \"swap\" means a Linux swap partition."
10943 #: ../fish/guestfish-actions.pod:2650
10945 "This command runs other libguestfs commands, which might include L</mount> "
10946 "and L</umount>, and therefore you should use this soon after launch and only "
10947 "when nothing is mounted."
10951 #: ../fish/guestfish-actions.pod:2654
10953 "Not all of the filesystems returned will be mountable. In particular, swap "
10954 "partitions are returned in the list. Also this command does not check that "
10955 "each filesystem found is valid and mountable, and some filesystems might be "
10956 "mountable but require special options. Filesystems may not all belong to a "
10957 "single logical operating system (use L</inspect-os> to look for OSes)."
10961 #: ../fish/guestfish-actions.pod:2662
10962 msgid "list-partitions"
10963 msgstr "list-partitions"
10966 #: ../fish/guestfish-actions.pod:2664
10969 " list-partitions\n"
10972 " list-partitions\n"
10976 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:3962
10977 msgid "List all the partitions detected on all block devices."
10981 #: ../fish/guestfish-actions.pod:2668 ../src/guestfs-actions.pod:3964
10982 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10986 #: ../fish/guestfish-actions.pod:2670
10988 "This does not return logical volumes. For that you will need to call L</"
10993 #: ../fish/guestfish-actions.pod:2675
10998 #: ../fish/guestfish-actions.pod:2677
11008 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:3983
11010 "List the files in C<directory> (relative to the root directory, there is no "
11011 "cwd) in the format of 'ls -la'."
11015 #: ../fish/guestfish-actions.pod:2682 ../src/guestfs-actions.pod:3986
11017 "This command is mostly useful for interactive sessions. It is I<not> "
11018 "intended that you try to parse the output string."
11022 #: ../fish/guestfish-actions.pod:2685
11027 #: ../fish/guestfish-actions.pod:2687
11030 " ln target linkname\n"
11033 " ln призначення назва_посилання\n"
11037 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4001
11038 msgid "This command creates a hard link using the C<ln> command."
11042 #: ../fish/guestfish-actions.pod:2691
11047 #: ../fish/guestfish-actions.pod:2693
11050 " ln-f target linkname\n"
11053 " ln-f призначення назва_посилання\n"
11057 #: ../fish/guestfish-actions.pod:2695 ../src/guestfs-actions.pod:4014
11059 "This command creates a hard link using the C<ln -f> command. The I<-f> "
11060 "option removes the link (C<linkname>) if it exists already."
11064 #: ../fish/guestfish-actions.pod:2698
11069 #: ../fish/guestfish-actions.pod:2700
11072 " ln-s target linkname\n"
11075 " ln-s призначення назва_посилання\n"
11079 #: ../fish/guestfish-actions.pod:2702 ../src/guestfs-actions.pod:4028
11080 msgid "This command creates a symbolic link using the C<ln -s> command."
11084 #: ../fish/guestfish-actions.pod:2704
11089 #: ../fish/guestfish-actions.pod:2706
11092 " ln-sf target linkname\n"
11095 " ln-sf призначення назва_посилання\n"
11099 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4041
11101 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11102 "option removes the link (C<linkname>) if it exists already."
11106 #: ../fish/guestfish-actions.pod:2711
11107 msgid "lremovexattr"
11108 msgstr "lremovexattr"
11111 #: ../fish/guestfish-actions.pod:2713
11114 " lremovexattr xattr path\n"
11119 #: ../fish/guestfish-actions.pod:2715
11121 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11122 "it removes an extended attribute of the link itself."
11126 #: ../fish/guestfish-actions.pod:2719
11131 #: ../fish/guestfish-actions.pod:2721
11141 #: ../fish/guestfish-actions.pod:2723 ../src/guestfs-actions.pod:4069
11143 "List the files in C<directory> (relative to the root directory, there is no "
11144 "cwd). The '.' and '..' entries are not returned, but hidden files are shown."
11148 #: ../fish/guestfish-actions.pod:2727
11150 "This command is mostly useful for interactive sessions. Programs should "
11151 "probably use L</readdir> instead."
11155 #: ../fish/guestfish-actions.pod:2730
11160 #: ../fish/guestfish-actions.pod:2732
11163 " lsetxattr xattr val vallen path\n"
11168 #: ../fish/guestfish-actions.pod:2734
11170 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
11171 "sets an extended attribute of the link itself."
11175 #: ../fish/guestfish-actions.pod:2738
11180 #: ../fish/guestfish-actions.pod:2740
11190 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:4552
11191 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:6890
11192 msgid "Returns file information for the given C<path>."
11196 #: ../fish/guestfish-actions.pod:2744
11198 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
11199 "the link is stat-ed, not the file it refers to."
11203 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4111
11204 msgid "This is the same as the C<lstat(2)> system call."
11208 #: ../fish/guestfish-actions.pod:2750
11213 #: ../fish/guestfish-actions.pod:2752
11216 " lstatlist path 'names ...'\n"
11221 #: ../fish/guestfish-actions.pod:2754
11223 "This call allows you to perform the L</lstat> operation on multiple files, "
11224 "where all files are in the directory C<path>. C<names> is the list of files "
11225 "from this directory."
11229 #: ../fish/guestfish-actions.pod:2758 ../src/guestfs-actions.pod:4130
11231 "On return you get a list of stat structs, with a one-to-one correspondence "
11232 "to the C<names> list. If any name did not exist or could not be lstat'd, "
11233 "then the C<ino> field of that structure is set to C<-1>."
11237 #: ../fish/guestfish-actions.pod:2763
11239 "This call is intended for programs that want to efficiently list a directory "
11240 "contents without making many round-trips. See also L</lxattrlist> for a "
11241 "similarly efficient call for getting extended attributes. Very long "
11242 "directory listings might cause the protocol message size to be exceeded, "
11243 "causing this call to fail. The caller must split up such requests into "
11244 "smaller groups of names."
11248 #: ../fish/guestfish-actions.pod:2771
11249 msgid "luks-add-key"
11250 msgstr "luks-add-key"
11253 #: ../fish/guestfish-actions.pod:2773
11256 " luks-add-key device keyslot\n"
11261 #: ../fish/guestfish-actions.pod:2775 ../src/guestfs-actions.pod:4158
11263 "This command adds a new key on LUKS device C<device>. C<key> is any "
11264 "existing key, and is used to access the device. C<newkey> is the new key to "
11265 "add. C<keyslot> is the key slot that will be replaced."
11269 #: ../fish/guestfish-actions.pod:2780
11271 "Note that if C<keyslot> already contains a key, then this command will "
11272 "fail. You have to use L</luks-kill-slot> first to remove that key."
11276 #: ../fish/guestfish-actions.pod:2784 ../fish/guestfish-actions.pod:2806
11277 #: ../fish/guestfish-actions.pod:2819 ../fish/guestfish-actions.pod:2833
11278 #: ../fish/guestfish-actions.pod:2859 ../fish/guestfish-actions.pod:2869
11280 "This command has one or more key or passphrase parameters. Guestfish will "
11281 "prompt for these separately."
11285 #: ../fish/guestfish-actions.pod:2787
11287 msgstr "luks-close"
11290 #: ../fish/guestfish-actions.pod:2789
11293 " luks-close device\n"
11296 " luks-close пристрій\n"
11300 #: ../fish/guestfish-actions.pod:2791
11302 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
11303 "luks-open-ro>. The C<device> parameter must be the name of the LUKS mapping "
11304 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
11309 #: ../fish/guestfish-actions.pod:2797
11310 msgid "luks-format"
11311 msgstr "luks-format"
11314 #: ../fish/guestfish-actions.pod:2799
11317 " luks-format device keyslot\n"
11322 #: ../fish/guestfish-actions.pod:2801 ../src/guestfs-actions.pod:4199
11324 "This command erases existing data on C<device> and formats the device as a "
11325 "LUKS encrypted device. C<key> is the initial key, which is added to key "
11326 "slot C<slot>. (LUKS supports 8 key slots, numbered 0-7)."
11330 #: ../fish/guestfish-actions.pod:2809 ../fish/guestfish-actions.pod:2822
11331 #: ../fish/guestfish-actions.pod:2909 ../fish/guestfish-actions.pod:3560
11332 #: ../fish/guestfish-actions.pod:4086 ../fish/guestfish-actions.pod:4423
11333 #: ../fish/guestfish-actions.pod:4446 ../fish/guestfish-actions.pod:4468
11334 #: ../fish/guestfish-actions.pod:5214 ../src/guestfs-actions.pod:4206
11335 #: ../src/guestfs-actions.pod:4229 ../src/guestfs-actions.pod:4372
11336 #: ../src/guestfs-actions.pod:5465 ../src/guestfs-actions.pod:6253
11337 #: ../src/guestfs-actions.pod:6704 ../src/guestfs-actions.pod:6734
11338 #: ../src/guestfs-actions.pod:6767 ../src/guestfs-actions.pod:7966
11340 "B<This command is dangerous. Without careful use you can easily destroy all "
11345 #: ../fish/guestfish-actions.pod:2812
11346 msgid "luks-format-cipher"
11347 msgstr "luks-format-cipher"
11350 #: ../fish/guestfish-actions.pod:2814
11353 " luks-format-cipher device keyslot cipher\n"
11358 #: ../fish/guestfish-actions.pod:2816
11360 "This command is the same as L</luks-format> but it also allows you to set "
11361 "the C<cipher> used."
11365 #: ../fish/guestfish-actions.pod:2825
11366 msgid "luks-kill-slot"
11367 msgstr "luks-kill-slot"
11370 #: ../fish/guestfish-actions.pod:2827
11373 " luks-kill-slot device keyslot\n"
11378 #: ../fish/guestfish-actions.pod:2829 ../src/guestfs-actions.pod:4246
11380 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
11381 "device C<device>. C<key> must be one of the I<other> keys."
11385 #: ../fish/guestfish-actions.pod:2836
11390 #: ../fish/guestfish-actions.pod:2838
11393 " luks-open device mapname\n"
11398 #: ../fish/guestfish-actions.pod:2840 ../src/guestfs-actions.pod:4266
11400 "This command opens a block device which has been encrypted according to the "
11401 "Linux Unified Key Setup (LUKS) standard."
11405 #: ../fish/guestfish-actions.pod:2843 ../src/guestfs-actions.pod:4269
11406 msgid "C<device> is the encrypted block device or partition."
11410 #: ../fish/guestfish-actions.pod:2845 ../src/guestfs-actions.pod:4271
11412 "The caller must supply one of the keys associated with the LUKS block "
11413 "device, in the C<key> parameter."
11417 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4274
11419 "This creates a new block device called C</dev/mapper/mapname>. Reads and "
11420 "writes to this block device are decrypted from and encrypted to the "
11421 "underlying C<device> respectively."
11425 #: ../fish/guestfish-actions.pod:2852
11427 "If this block device contains LVM volume groups, then calling L</vgscan> "
11428 "followed by L</vg-activate-all> will make them visible."
11432 #: ../fish/guestfish-actions.pod:2856
11433 msgid "Use L</list-dm-devices> to list all device mapper devices."
11437 #: ../fish/guestfish-actions.pod:2862
11438 msgid "luks-open-ro"
11439 msgstr "luks-open-ro"
11442 #: ../fish/guestfish-actions.pod:2864
11445 " luks-open-ro device mapname\n"
11450 #: ../fish/guestfish-actions.pod:2866
11452 "This is the same as L</luks-open> except that a read-only mapping is created."
11456 #: ../fish/guestfish-actions.pod:2872
11461 #: ../fish/guestfish-actions.pod:2874
11464 " lvcreate logvol volgroup mbytes\n"
11469 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4320
11471 "This creates an LVM logical volume called C<logvol> on the volume group "
11472 "C<volgroup>, with C<size> megabytes."
11476 #: ../fish/guestfish-actions.pod:2879
11477 msgid "lvm-canonical-lv-name"
11478 msgstr "lvm-canonical-lv-name"
11481 #: ../fish/guestfish-actions.pod:2881
11484 " lvm-canonical-lv-name lvname\n"
11489 #: ../fish/guestfish-actions.pod:2883 ../src/guestfs-actions.pod:4333
11491 "This converts alternative naming schemes for LVs that you might find to the "
11492 "canonical name. For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
11497 #: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4337
11499 "This command returns an error if the C<lvname> parameter does not refer to a "
11504 #: ../fish/guestfish-actions.pod:2890
11505 msgid "See also L</is-lv>."
11506 msgstr "Див. також L</is-lv>."
11509 #: ../fish/guestfish-actions.pod:2892
11510 msgid "lvm-clear-filter"
11511 msgstr "lvm-clear-filter"
11514 #: ../fish/guestfish-actions.pod:2894
11517 " lvm-clear-filter\n"
11520 " lvm-clear-filter\n"
11524 #: ../fish/guestfish-actions.pod:2896
11526 "This undoes the effect of L</lvm-set-filter>. LVM will be able to see every "
11531 #: ../fish/guestfish-actions.pod:2899 ../fish/guestfish-actions.pod:2930
11532 #: ../src/guestfs-actions.pod:4355 ../src/guestfs-actions.pod:4397
11534 "This command also clears the LVM cache and performs a volume group scan."
11538 #: ../fish/guestfish-actions.pod:2902
11539 msgid "lvm-remove-all"
11540 msgstr "lvm-remove-all"
11543 #: ../fish/guestfish-actions.pod:2904
11546 " lvm-remove-all\n"
11549 " lvm-remove-all\n"
11553 #: ../fish/guestfish-actions.pod:2906 ../src/guestfs-actions.pod:4367
11555 "This command removes all LVM logical volumes, volume groups and physical "
11560 #: ../fish/guestfish-actions.pod:2912
11561 msgid "lvm-set-filter"
11562 msgstr "lvm-set-filter"
11565 #: ../fish/guestfish-actions.pod:2914
11568 " lvm-set-filter 'devices ...'\n"
11571 " lvm-set-filter 'пристрої...'\n"
11575 #: ../fish/guestfish-actions.pod:2916 ../src/guestfs-actions.pod:4383
11577 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
11578 "block devices in the list C<devices>, and will ignore all other attached "
11583 #: ../fish/guestfish-actions.pod:2920 ../src/guestfs-actions.pod:4387
11585 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
11586 "get LVM to ignore the duplicates, otherwise LVM can get confused. Note also "
11587 "there are two types of duplication possible: either cloned PVs/VGs which "
11588 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
11589 "same name. In normal operation you cannot create this situation, but you "
11590 "can do it outside LVM, eg. by cloning disk images or by bit twiddling "
11591 "inside the LVM metadata."
11595 #: ../fish/guestfish-actions.pod:2933 ../src/guestfs-actions.pod:4400
11596 msgid "You can filter whole block devices or individual partitions."
11600 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4402
11602 "You cannot use this if any VG is currently in use (eg. contains a mounted "
11603 "filesystem), even if you are not filtering out that VG."
11607 #: ../fish/guestfish-actions.pod:2939
11612 #: ../fish/guestfish-actions.pod:2941
11615 " lvremove device\n"
11618 " lvremove пристрій\n"
11622 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4416
11624 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
11625 "LV, such as C</dev/VG/LV>."
11629 #: ../fish/guestfish-actions.pod:2946 ../src/guestfs-actions.pod:4419
11631 "You can also remove all LVs in a volume group by specifying the VG name, C</"
11636 #: ../fish/guestfish-actions.pod:2949
11641 #: ../fish/guestfish-actions.pod:2951
11644 " lvrename logvol newlogvol\n"
11649 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4433
11650 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
11654 #: ../fish/guestfish-actions.pod:2955
11659 #: ../fish/guestfish-actions.pod:2957
11662 " lvresize device mbytes\n"
11667 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4446
11669 "This resizes (expands or shrinks) an existing LVM logical volume to "
11670 "C<mbytes>. When reducing, data in the reduced part is lost."
11674 #: ../fish/guestfish-actions.pod:2963
11675 msgid "lvresize-free"
11676 msgstr "lvresize-free"
11679 #: ../fish/guestfish-actions.pod:2965
11682 " lvresize-free lv percent\n"
11687 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4461
11689 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
11690 "remaining free space in the volume group. Commonly you would call this with "
11691 "pc = 100 which expands the logical volume as much as possible, using all "
11692 "remaining free space in the volume group."
11696 #: ../fish/guestfish-actions.pod:2973
11701 #: ../fish/guestfish-actions.pod:2975
11711 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4476
11713 "List all the logical volumes detected. This is the equivalent of the L<lvs"
11718 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4479
11720 "This returns a list of the logical volume device names (eg. C</dev/"
11721 "VolGroup00/LogVol00>)."
11725 #: ../fish/guestfish-actions.pod:2983
11726 msgid "See also L</lvs-full>, L</list-filesystems>."
11727 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
11730 #: ../fish/guestfish-actions.pod:2985
11735 #: ../fish/guestfish-actions.pod:2987
11745 #: ../fish/guestfish-actions.pod:2989 ../src/guestfs-actions.pod:4495
11747 "List all the logical volumes detected. This is the equivalent of the L<lvs"
11748 "(8)> command. The \"full\" version includes all fields."
11752 #: ../fish/guestfish-actions.pod:2992
11757 #: ../fish/guestfish-actions.pod:2994
11763 " lvuuid пристрій\n"
11767 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4510
11768 msgid "This command returns the UUID of the LVM LV C<device>."
11772 #: ../fish/guestfish-actions.pod:2998
11774 msgstr "lxattrlist"
11777 #: ../fish/guestfish-actions.pod:3000
11780 " lxattrlist path 'names ...'\n"
11785 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4524
11787 "This call allows you to get the extended attributes of multiple files, where "
11788 "all files are in the directory C<path>. C<names> is the list of files from "
11793 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4528
11795 "On return you get a flat list of xattr structs which must be interpreted "
11796 "sequentially. The first xattr struct always has a zero-length C<attrname>. "
11797 "C<attrval> in this struct is zero-length to indicate there was an error "
11798 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11799 "number (the number of following attributes for this file, which could be C<"
11800 "\"0\">). Then after the first xattr struct are the zero or more attributes "
11801 "for the first named file. This repeats for the second and subsequent files."
11805 #: ../fish/guestfish-actions.pod:3016
11807 "This call is intended for programs that want to efficiently list a directory "
11808 "contents without making many round-trips. See also L</lstatlist> for a "
11809 "similarly efficient call for getting standard stats. Very long directory "
11810 "listings might cause the protocol message size to be exceeded, causing this "
11811 "call to fail. The caller must split up such requests into smaller groups of "
11816 #: ../fish/guestfish-actions.pod:3024
11821 #: ../fish/guestfish-actions.pod:3026
11831 #: ../fish/guestfish-actions.pod:3028 ../src/guestfs-actions.pod:4558
11832 msgid "Create a directory named C<path>."
11836 #: ../fish/guestfish-actions.pod:3030
11838 msgstr "mkdir-mode"
11841 #: ../fish/guestfish-actions.pod:3032
11844 " mkdir-mode path mode\n"
11847 " mkdir-mode шлях режим\n"
11851 #: ../fish/guestfish-actions.pod:3034 ../src/guestfs-actions.pod:4571
11853 "This command creates a directory, setting the initial permissions of the "
11854 "directory to C<mode>."
11858 #: ../fish/guestfish-actions.pod:3037 ../src/guestfs-actions.pod:4574
11860 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11861 "~umask & 01777>. Non-native-Linux filesystems may interpret the mode in "
11866 #: ../fish/guestfish-actions.pod:3041
11867 msgid "See also L</mkdir>, L</umask>"
11868 msgstr "Див. також L</mkdir>, L</umask>"
11871 #: ../fish/guestfish-actions.pod:3043
11876 #: ../fish/guestfish-actions.pod:3045
11886 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4590
11888 "Create a directory named C<path>, creating any parent directories as "
11889 "necessary. This is like the C<mkdir -p> shell command."
11893 #: ../fish/guestfish-actions.pod:3050
11898 #: ../fish/guestfish-actions.pod:3052
11901 " mkdtemp template\n"
11904 " mkdtemp шаблон\n"
11908 #: ../fish/guestfish-actions.pod:3054 ../src/guestfs-actions.pod:4603
11910 "This command creates a temporary directory. The C<template> parameter "
11911 "should be a full pathname for the temporary directory name with the final "
11912 "six characters being \"XXXXXX\"."
11916 #: ../fish/guestfish-actions.pod:3059 ../src/guestfs-actions.pod:4608
11918 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11919 "being suitable for Windows filesystems."
11923 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4611
11924 msgid "The name of the temporary directory that was created is returned."
11928 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4614
11929 msgid "The temporary directory is created with mode 0700 and is owned by root."
11933 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4617
11935 "The caller is responsible for deleting the temporary directory and its "
11936 "contents after use."
11940 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4620
11941 msgid "See also: L<mkdtemp(3)>"
11945 #: ../fish/guestfish-actions.pod:3073
11950 #: ../fish/guestfish-actions.pod:3075
11953 " mke2fs-J fstype blocksize device journal\n"
11958 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4636
11960 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11961 "C<journal>. It is equivalent to the command:"
11965 #: ../fish/guestfish-actions.pod:3081 ../src/guestfs-actions.pod:4640
11968 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11971 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
11975 #: ../fish/guestfish-actions.pod:3083
11976 msgid "See also L</mke2journal>."
11977 msgstr "Див. також L</mke2journal>."
11980 #: ../fish/guestfish-actions.pod:3085
11985 #: ../fish/guestfish-actions.pod:3087
11988 " mke2fs-JL fstype blocksize device label\n"
11993 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4657
11995 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11996 "the journal labeled C<label>."
12000 #: ../fish/guestfish-actions.pod:3092
12001 msgid "See also L</mke2journal-L>."
12002 msgstr "Див. також L</mke2journal-L>."
12005 #: ../fish/guestfish-actions.pod:3094
12010 #: ../fish/guestfish-actions.pod:3096
12013 " mke2fs-JU fstype blocksize device uuid\n"
12018 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4675
12020 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12021 "the journal with UUID C<uuid>."
12025 #: ../fish/guestfish-actions.pod:3101
12026 msgid "See also L</mke2journal-U>."
12027 msgstr "Див. також L</mke2journal-U>."
12030 #: ../fish/guestfish-actions.pod:3103
12031 msgid "mke2journal"
12032 msgstr "mke2journal"
12035 #: ../fish/guestfish-actions.pod:3105
12038 " mke2journal blocksize device\n"
12043 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4691
12045 "This creates an ext2 external journal on C<device>. It is equivalent to the "
12050 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4694
12053 " mke2fs -O journal_dev -b blocksize device\n"
12058 #: ../fish/guestfish-actions.pod:3112
12059 msgid "mke2journal-L"
12060 msgstr "mke2journal-L"
12063 #: ../fish/guestfish-actions.pod:3114
12066 " mke2journal-L blocksize label device\n"
12071 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4708
12072 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12076 #: ../fish/guestfish-actions.pod:3118
12077 msgid "mke2journal-U"
12078 msgstr "mke2journal-U"
12081 #: ../fish/guestfish-actions.pod:3120
12084 " mke2journal-U blocksize uuid device\n"
12089 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4722
12090 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12094 #: ../fish/guestfish-actions.pod:3124
12099 #: ../fish/guestfish-actions.pod:3126
12102 " mkfifo mode path\n"
12105 " mkfifo режим шлях\n"
12109 #: ../fish/guestfish-actions.pod:3128
12111 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
12112 "is just a convenient wrapper around L</mknod>."
12116 #: ../fish/guestfish-actions.pod:3134
12121 #: ../fish/guestfish-actions.pod:3136
12124 " mkfs fstype device\n"
12127 " mkfs тип_файлової_системи пристрій\n"
12131 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4752
12133 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12134 "volume). The filesystem type is C<fstype>, for example C<ext3>."
12138 #: ../fish/guestfish-actions.pod:3142
12143 #: ../fish/guestfish-actions.pod:3144
12146 " mkfs-b fstype blocksize device\n"
12151 #: ../fish/guestfish-actions.pod:3146
12153 "This call is similar to L</mkfs>, but it allows you to control the block "
12154 "size of the resulting filesystem. Supported block sizes depend on the "
12155 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
12159 #: ../fish/guestfish-actions.pod:3151 ../fish/guestfish-actions.pod:3178
12160 #: ../src/guestfs-actions.pod:4780 ../src/guestfs-actions.pod:4818
12162 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
12167 #: ../fish/guestfish-actions.pod:3154
12169 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
12174 #: ../fish/guestfish-actions.pod:3161
12179 #: ../fish/guestfish-actions.pod:3163
12182 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
12187 #: ../fish/guestfish-actions.pod:3165 ../src/guestfs-actions.pod:4805
12189 "This function creates a filesystem on C<device>. The filesystem type is "
12190 "C<fstype>, for example C<ext3>."
12194 #: ../fish/guestfish-actions.pod:3172 ../src/guestfs-actions.pod:4812
12195 msgid "C<blocksize>"
12196 msgstr "C<blocksize>"
12199 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4814
12201 "The filesystem block size. Supported block sizes depend on the filesystem "
12202 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
12207 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4821
12208 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
12212 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4823
12213 msgid "C<features>"
12214 msgstr "C<features>"
12217 #: ../fish/guestfish-actions.pod:3185 ../src/guestfs-actions.pod:4825
12218 msgid "This passes the I<-O> parameter to the external mkfs program."
12222 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4827
12224 "For certain filesystem types, this allows extra filesystem features to be "
12225 "selected. See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
12229 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4831
12231 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
12236 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4834
12241 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4836
12243 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
12244 "sets the inode size (only for ext2/3/4 filesystems at present)."
12248 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4839
12249 msgid "C<sectorsize>"
12253 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4841
12255 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
12256 "sets sector size for ufs filesystem."
12260 #: ../fish/guestfish-actions.pod:3208
12261 msgid "mkmountpoint"
12262 msgstr "mkmountpoint"
12265 #: ../fish/guestfish-actions.pod:3210
12268 " mkmountpoint exemptpath\n"
12273 #: ../fish/guestfish-actions.pod:3212
12275 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
12276 "to create extra mountpoints before mounting the first filesystem."
12280 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4884
12282 "These calls are I<only> necessary in some very limited circumstances, mainly "
12283 "the case where you want to mount a mix of unrelated and/or read-only "
12284 "filesystems together."
12288 #: ../fish/guestfish-actions.pod:3220 ../src/guestfs-actions.pod:4888
12290 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
12291 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
12292 "inside that. You can unpack this as follows in guestfish:"
12296 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4893
12299 " add-ro Fedora-11-i686-Live.iso\n"
12301 " mkmountpoint /cd\n"
12302 " mkmountpoint /sqsh\n"
12303 " mkmountpoint /ext3fs\n"
12304 " mount /dev/sda /cd\n"
12305 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
12306 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
12309 " add-ro Fedora-11-i686-Live.iso\n"
12311 " mkmountpoint /cd\n"
12312 " mkmountpoint /sqsh\n"
12313 " mkmountpoint /ext3fs\n"
12314 " mount /dev/sda /cd\n"
12315 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
12316 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
12320 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4902
12321 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
12325 #: ../fish/guestfish-actions.pod:3236
12327 "L</mkmountpoint> is not compatible with L</umount-all>. You may get "
12328 "unexpected errors if you try to mix these calls. It is safest to manually "
12329 "unmount filesystems and remove mountpoints after use."
12333 #: ../fish/guestfish-actions.pod:3240
12335 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
12336 "for this to work for manual mountpoints, you must ensure that the innermost "
12337 "mountpoints have the longest pathnames, as in the example code above."
12341 #: ../fish/guestfish-actions.pod:3245 ../src/guestfs-actions.pod:4913
12343 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
12347 #: ../fish/guestfish-actions.pod:3247
12349 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
12350 "L</umount-all> to be called when the handle is closed which can also trigger "
12355 #: ../fish/guestfish-actions.pod:3251
12360 #: ../fish/guestfish-actions.pod:3253
12363 " mknod mode devmajor devminor path\n"
12368 #: ../fish/guestfish-actions.pod:3255 ../src/guestfs-actions.pod:4932
12370 "This call creates block or character special devices, or named pipes (FIFOs)."
12374 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4935
12376 "The C<mode> parameter should be the mode, using the standard constants. "
12377 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
12378 "used when creating block and character special devices."
12382 #: ../fish/guestfish-actions.pod:3263
12384 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
12385 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
12386 "regular file). These constants are available in the standard Linux header "
12387 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
12388 "wrappers around this command which bitwise OR in the appropriate constant "
12393 #: ../fish/guestfish-actions.pod:3273
12398 #: ../fish/guestfish-actions.pod:3275
12401 " mknod-b mode devmajor devminor path\n"
12406 #: ../fish/guestfish-actions.pod:3277
12408 "This call creates a block device node called C<path> with mode C<mode> and "
12409 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
12410 "wrapper around L</mknod>."
12414 #: ../fish/guestfish-actions.pod:3283
12419 #: ../fish/guestfish-actions.pod:3285
12422 " mknod-c mode devmajor devminor path\n"
12427 #: ../fish/guestfish-actions.pod:3287
12429 "This call creates a char device node called C<path> with mode C<mode> and "
12430 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
12431 "wrapper around L</mknod>."
12435 #: ../fish/guestfish-actions.pod:3293
12440 #: ../fish/guestfish-actions.pod:3295
12446 " mkswap пристрій\n"
12450 #: ../fish/guestfish-actions.pod:3297 ../src/guestfs-actions.pod:4998
12451 msgid "Create a swap partition on C<device>."
12455 #: ../fish/guestfish-actions.pod:3299
12460 #: ../fish/guestfish-actions.pod:3301
12463 " mkswap-L label device\n"
12466 " mkswap-L мітка пристрій\n"
12470 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5011
12471 msgid "Create a swap partition on C<device> with label C<label>."
12475 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5013
12477 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
12478 "sda>), just to a partition. This appears to be a limitation of the kernel "
12483 #: ../fish/guestfish-actions.pod:3309
12488 #: ../fish/guestfish-actions.pod:3311
12491 " mkswap-U uuid device\n"
12494 " mkswap-U uuid пристрій\n"
12498 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5028
12499 msgid "Create a swap partition on C<device> with UUID C<uuid>."
12503 #: ../fish/guestfish-actions.pod:3315
12504 msgid "mkswap-file"
12505 msgstr "mkswap-file"
12508 #: ../fish/guestfish-actions.pod:3317
12511 " mkswap-file path\n"
12514 " mkswap-file шлях\n"
12518 #: ../fish/guestfish-actions.pod:3319 ../src/guestfs-actions.pod:5040
12519 msgid "Create a swap file."
12520 msgstr "Створити файл резервної пам’яті."
12523 #: ../fish/guestfish-actions.pod:3321
12525 "This command just writes a swap file signature to an existing file. To "
12526 "create the file itself, use something like L</fallocate>."
12530 #: ../fish/guestfish-actions.pod:3324
12535 #: ../fish/guestfish-actions.pod:3326
12538 " modprobe modulename\n"
12541 " modprobe назва_модуля\n"
12545 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5055
12546 msgid "This loads a kernel module in the appliance."
12550 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5057
12552 "The kernel module must have been whitelisted when libguestfs was built (see "
12553 "C<appliance/kmod.whitelist.in> in the source)."
12557 #: ../fish/guestfish-actions.pod:3333
12562 #: ../fish/guestfish-actions.pod:3335
12565 " mount device mountpoint\n"
12568 " mount пристрій точка_монтування\n"
12572 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5071
12574 "Mount a guest disk at a position in the filesystem. Block devices are named "
12575 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
12576 "those block devices contain partitions, they will have the usual names (eg. "
12577 "C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used."
12581 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5077
12583 "The rules are the same as for L<mount(2)>: A filesystem must first be "
12584 "mounted on C</> before others can be mounted. Other filesystems can only be "
12585 "mounted on directories which already exist."
12589 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5082
12591 "The mounted filesystem is writable, if we have sufficient permissions on the "
12592 "underlying device."
12596 #: ../fish/guestfish-actions.pod:3351
12598 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
12599 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
12600 "problems for users. If your program might need to work with older versions "
12601 "of libguestfs, use L</mount-options> instead (using an empty string for the "
12602 "first parameter if you don't want any options)."
12606 #: ../fish/guestfish-actions.pod:3358
12611 #: ../fish/guestfish-actions.pod:3360
12614 " mount-9p mounttag mountpoint [options:..]\n"
12619 #: ../fish/guestfish-actions.pod:3362 ../src/guestfs-actions.pod:5111
12621 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
12626 #: ../fish/guestfish-actions.pod:3365 ../src/guestfs-actions.pod:5114
12628 "If required, C<trans=virtio> will be automatically added to the options. "
12629 "Any other options required can be passed in the optional C<options> "
12634 #: ../fish/guestfish-actions.pod:3371
12636 msgstr "mount-loop"
12639 #: ../fish/guestfish-actions.pod:3373
12642 " mount-loop file mountpoint\n"
12647 #: ../fish/guestfish-actions.pod:3375 ../src/guestfs-actions.pod:5153
12649 "This command lets you mount C<file> (a filesystem image in a file) on a "
12650 "mount point. It is entirely equivalent to the command C<mount -o loop file "
12655 #: ../fish/guestfish-actions.pod:3379
12656 msgid "mount-options"
12657 msgstr "mount-options"
12660 #: ../fish/guestfish-actions.pod:3381
12663 " mount-options options device mountpoint\n"
12668 #: ../fish/guestfish-actions.pod:3383
12670 "This is the same as the L</mount> command, but it allows you to set the "
12671 "mount options as for the L<mount(8)> I<-o> flag."
12675 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5173
12677 "If the C<options> parameter is an empty string, then no options are passed "
12678 "(all options default to whatever the filesystem uses)."
12682 #: ../fish/guestfish-actions.pod:3391
12687 #: ../fish/guestfish-actions.pod:3393
12690 " mount-ro device mountpoint\n"
12693 " mount-ro пристрій точка_монтування\n"
12697 #: ../fish/guestfish-actions.pod:3395
12699 "This is the same as the L</mount> command, but it mounts the filesystem with "
12700 "the read-only (I<-o ro>) flag."
12704 #: ../fish/guestfish-actions.pod:3398
12709 #: ../fish/guestfish-actions.pod:3400
12712 " mount-vfs options vfstype device mountpoint\n"
12717 #: ../fish/guestfish-actions.pod:3402
12719 "This is the same as the L</mount> command, but it allows you to set both the "
12720 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
12724 #: ../fish/guestfish-actions.pod:3406
12725 msgid "mountpoints"
12726 msgstr "mountpoints"
12729 #: ../fish/guestfish-actions.pod:3408
12739 #: ../fish/guestfish-actions.pod:3410
12741 "This call is similar to L</mounts>. That call returns a list of devices. "
12742 "This one returns a hash table (map) of device name to directory where the "
12743 "device is mounted."
12747 #: ../fish/guestfish-actions.pod:3414
12752 #: ../fish/guestfish-actions.pod:3416
12762 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5234
12764 "This returns the list of currently mounted filesystems. It returns the list "
12765 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12769 #: ../fish/guestfish-actions.pod:3421 ../src/guestfs-actions.pod:5237
12770 msgid "Some internal mounts are not shown."
12774 #: ../fish/guestfish-actions.pod:3423
12775 msgid "See also: L</mountpoints>"
12776 msgstr "Див. також L</mountpoints>"
12779 #: ../fish/guestfish-actions.pod:3425
12784 #: ../fish/guestfish-actions.pod:3427
12790 " mv джерело призначення\n"
12794 #: ../fish/guestfish-actions.pod:3429 ../src/guestfs-actions.pod:5254
12796 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12797 "destination filename or destination directory."
12801 #: ../fish/guestfish-actions.pod:3432
12802 msgid "ntfs-3g-probe"
12803 msgstr "ntfs-3g-probe"
12806 #: ../fish/guestfish-actions.pod:3434
12809 " ntfs-3g-probe true|false device\n"
12814 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5268
12816 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12817 "C<device> for mountability. (Not all NTFS volumes can be mounted read-"
12818 "write, and some cannot be mounted at all)."
12822 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5272
12824 "C<rw> is a boolean flag. Set it to true if you want to test if the volume "
12825 "can be mounted read-write. Set it to false if you want to test if the "
12826 "volume can be mounted read-only."
12830 #: ../fish/guestfish-actions.pod:3444 ../src/guestfs-actions.pod:5276
12832 "The return value is an integer which C<0> if the operation would succeed, or "
12833 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12837 #: ../fish/guestfish-actions.pod:3448
12839 msgstr "ntfsresize"
12842 #: ../fish/guestfish-actions.pod:3450
12845 " ntfsresize device\n"
12848 " ntfsresize пристрій\n"
12852 #: ../fish/guestfish-actions.pod:3452 ../fish/guestfish-actions.pod:3476
12853 #: ../src/guestfs-actions.pod:5297 ../src/guestfs-actions.pod:5329
12855 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12856 "size of the underlying device."
12860 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5300
12862 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12863 "consistency check (for safety). You have to boot into Windows to perform "
12864 "this check and clear this condition. Furthermore, ntfsresize refuses to "
12865 "resize filesystems which have been marked in this way. So in effect it is "
12866 "not possible to call ntfsresize multiple times on a single filesystem "
12867 "without booting into Windows between each resize."
12871 #: ../fish/guestfish-actions.pod:3463 ../fish/guestfish-actions.pod:3502
12872 #: ../src/guestfs-actions.pod:5308 ../src/guestfs-actions.pod:5355
12873 msgid "See also L<ntfsresize(8)>."
12877 #: ../fish/guestfish-actions.pod:3465 ../fish/guestfish-actions.pod:3513
12879 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
12884 #: ../fish/guestfish-actions.pod:3472
12885 msgid "ntfsresize-opts"
12889 #: ../fish/guestfish-actions.pod:3474
12892 " ntfsresize-opts device [size:..] [force:..]\n"
12897 #: ../fish/guestfish-actions.pod:3485 ../src/guestfs-actions.pod:5338
12899 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
12900 "resized to fit the container (eg. partition)."
12904 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5341
12909 #: ../fish/guestfish-actions.pod:3490 ../src/guestfs-actions.pod:5343
12911 "If this option is true, then force the resize of the filesystem even if the "
12912 "filesystem is marked as requiring a consistency check."
12916 #: ../fish/guestfish-actions.pod:3493
12918 "After the resize operation, the filesystem is always marked as requiring a "
12919 "consistency check (for safety). You have to boot into Windows to perform "
12920 "this check and clear this condition. If you I<don't> set the C<force> "
12921 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12922 "a single filesystem without booting into Windows between each resize."
12926 #: ../fish/guestfish-actions.pod:3506
12927 msgid "ntfsresize-size"
12928 msgstr "ntfsresize-size"
12931 #: ../fish/guestfish-actions.pod:3508
12934 " ntfsresize-size device size\n"
12939 #: ../fish/guestfish-actions.pod:3510
12941 "This command is the same as L</ntfsresize> except that it allows you to "
12942 "specify the new size (in bytes) explicitly."
12946 #: ../fish/guestfish-actions.pod:3520
12951 #: ../fish/guestfish-actions.pod:3522
12954 " part-add device prlogex startsect endsect\n"
12959 #: ../fish/guestfish-actions.pod:3524
12961 "This command adds a partition to C<device>. If there is no partition table "
12962 "on the device, call L</part-init> first."
12966 #: ../fish/guestfish-actions.pod:3527 ../src/guestfs-actions.pod:5416
12968 "The C<prlogex> parameter is the type of partition. Normally you should pass "
12969 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12970 "C<logical>) and C<e> (or C<extended>) partition types."
12974 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5421
12976 "C<startsect> and C<endsect> are the start and end of the partition in "
12977 "I<sectors>. C<endsect> may be negative, which means it counts backwards "
12978 "from the end of the disk (C<-1> is the last sector)."
12982 #: ../fish/guestfish-actions.pod:3536
12984 "Creating a partition which covers the whole disk is not so easy. Use L</"
12985 "part-disk> to do that."
12989 #: ../fish/guestfish-actions.pod:3539
12994 #: ../fish/guestfish-actions.pod:3541
12997 " part-del device partnum\n"
13002 #: ../fish/guestfish-actions.pod:3543 ../src/guestfs-actions.pod:5439
13003 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13007 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5441
13009 "Note that in the case of MBR partitioning, deleting an extended partition "
13010 "also deletes any logical partitions it contains."
13014 #: ../fish/guestfish-actions.pod:3549
13019 #: ../fish/guestfish-actions.pod:3551
13022 " part-disk device parttype\n"
13025 " part-disk пристрій тип_розділу\n"
13029 #: ../fish/guestfish-actions.pod:3553
13031 "This command is simply a combination of L</part-init> followed by L</part-"
13032 "add> to create a single primary partition covering the whole disk."
13036 #: ../fish/guestfish-actions.pod:3557
13038 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13039 "possible values are described in L</part-init>."
13043 #: ../fish/guestfish-actions.pod:3563
13044 msgid "part-get-bootable"
13045 msgstr "part-get-bootable"
13048 #: ../fish/guestfish-actions.pod:3565
13051 " part-get-bootable device partnum\n"
13056 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5477
13058 "This command returns true if the partition C<partnum> on C<device> has the "
13059 "bootable flag set."
13063 #: ../fish/guestfish-actions.pod:3570
13064 msgid "See also L</part-set-bootable>."
13065 msgstr "Див. також L</part-set-bootable>."
13068 #: ../fish/guestfish-actions.pod:3572
13069 msgid "part-get-mbr-id"
13070 msgstr "part-get-mbr-id"
13073 #: ../fish/guestfish-actions.pod:3574
13076 " part-get-mbr-id device partnum\n"
13081 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5493
13083 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13084 "partition C<partnum>."
13088 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3723
13090 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
13091 "undefined results for other partition table types (see L</part-get-"
13096 #: ../fish/guestfish-actions.pod:3583
13097 msgid "part-get-parttype"
13098 msgstr "part-get-parttype"
13101 #: ../fish/guestfish-actions.pod:3585
13104 " part-get-parttype device\n"
13107 " part-get-parttype пристрій\n"
13111 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5510
13113 "This command examines the partition table on C<device> and returns the "
13114 "partition table type (format) being used."
13118 #: ../fish/guestfish-actions.pod:3590
13120 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13121 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
13122 "possible, although unusual. See L</part-init> for a full list."
13126 #: ../fish/guestfish-actions.pod:3595
13131 #: ../fish/guestfish-actions.pod:3597
13134 " part-init device parttype\n"
13139 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5530
13141 "This creates an empty partition table on C<device> of one of the partition "
13142 "types listed below. Usually C<parttype> should be either C<msdos> or C<gpt> "
13143 "(for large disks)."
13147 #: ../fish/guestfish-actions.pod:3603
13149 "Initially there are no partitions. Following this, you should call L</part-"
13150 "add> for each partition required."
13154 #: ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:5537
13155 msgid "Possible values for C<parttype> are:"
13159 #: ../fish/guestfish-actions.pod:3610 ../src/guestfs-actions.pod:5541
13164 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5543
13169 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5545
13170 msgid "Intel EFI / GPT partition table."
13174 #: ../fish/guestfish-actions.pod:3616 ../src/guestfs-actions.pod:5547
13176 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
13177 "and Intel-based Mac OS X. It also has limited backwards compatibility with "
13178 "the C<mbr> format."
13182 #: ../fish/guestfish-actions.pod:3620 ../src/guestfs-actions.pod:5551
13187 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5553
13192 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5555
13194 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
13195 "Windows. This partition type will B<only> work for device sizes up to 2 "
13196 "TB. For large disks we recommend using C<gpt>."
13200 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5562
13202 "Other partition table types that may work but are not supported include:"
13206 #: ../fish/guestfish-actions.pod:3636 ../src/guestfs-actions.pod:5567
13211 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5569
13212 msgid "AIX disk labels."
13213 msgstr "Мітки дисків AIX."
13216 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5571
13218 #| msgid "B<amiga> | B<rdb>"
13220 msgstr "B<amiga> | B<rdb>"
13223 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5573
13228 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5575
13229 msgid "Amiga \"Rigid Disk Block\" format."
13230 msgstr "Формат \"Rigid Disk Block\" Amiga."
13233 #: ../fish/guestfish-actions.pod:3646 ../src/guestfs-actions.pod:5577
13238 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5579
13239 msgid "BSD disk labels."
13240 msgstr "Мітки дисків BSD."
13243 #: ../fish/guestfish-actions.pod:3650 ../src/guestfs-actions.pod:5581
13248 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5583
13249 msgid "DASD, used on IBM mainframes."
13250 msgstr "DASD, використовувалися у мейнфреймах IBM."
13253 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5585
13258 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5587
13259 msgid "MIPS/SGI volumes."
13260 msgstr "Томи MIPS/SGI."
13263 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5589
13268 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5591
13269 msgid "Old Mac partition format. Modern Macs use C<gpt>."
13270 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
13273 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5593
13278 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5595
13279 msgid "NEC PC-98 format, common in Japan apparently."
13280 msgstr "Формат NEC PC-98, поширений у Японії."
13283 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5597
13288 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5599
13289 msgid "Sun disk labels."
13290 msgstr "Мітки дисків Sun."
13293 #: ../fish/guestfish-actions.pod:3672
13298 #: ../fish/guestfish-actions.pod:3674
13301 " part-list device\n"
13304 " part-list device\n"
13308 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5613
13310 "This command parses the partition table on C<device> and returns the list of "
13311 "partitions found."
13315 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5616
13316 msgid "The fields in the returned structure are:"
13320 #: ../fish/guestfish-actions.pod:3683 ../src/guestfs-actions.pod:5620
13321 msgid "B<part_num>"
13322 msgstr "B<part_num>"
13325 #: ../fish/guestfish-actions.pod:3685 ../src/guestfs-actions.pod:5622
13326 msgid "Partition number, counting from 1."
13330 #: ../fish/guestfish-actions.pod:3687 ../src/guestfs-actions.pod:5624
13331 msgid "B<part_start>"
13332 msgstr "B<part_start>"
13335 #: ../fish/guestfish-actions.pod:3689
13337 "Start of the partition I<in bytes>. To get sectors you have to divide by "
13338 "the device's sector size, see L</blockdev-getss>."
13342 #: ../fish/guestfish-actions.pod:3692 ../src/guestfs-actions.pod:5629
13343 msgid "B<part_end>"
13344 msgstr "B<part_end>"
13347 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5631
13348 msgid "End of the partition in bytes."
13352 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5633
13353 msgid "B<part_size>"
13354 msgstr "B<part_size>"
13357 #: ../fish/guestfish-actions.pod:3698 ../src/guestfs-actions.pod:5635
13358 msgid "Size of the partition in bytes."
13362 #: ../fish/guestfish-actions.pod:3702
13363 msgid "part-set-bootable"
13364 msgstr "part-set-bootable"
13367 #: ../fish/guestfish-actions.pod:3704
13370 " part-set-bootable device partnum true|false\n"
13375 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5653
13377 "This sets the bootable flag on partition numbered C<partnum> on device "
13378 "C<device>. Note that partitions are numbered from 1."
13382 #: ../fish/guestfish-actions.pod:3709 ../src/guestfs-actions.pod:5656
13384 "The bootable flag is used by some operating systems (notably Windows) to "
13385 "determine which partition to boot from. It is by no means universally "
13390 #: ../fish/guestfish-actions.pod:3713
13391 msgid "part-set-mbr-id"
13392 msgstr "part-set-mbr-id"
13395 #: ../fish/guestfish-actions.pod:3715
13398 " part-set-mbr-id device partnum idbyte\n"
13403 #: ../fish/guestfish-actions.pod:3717 ../src/guestfs-actions.pod:5672
13405 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
13406 "C<partnum> to C<idbyte>. Note that the type bytes quoted in most "
13407 "documentation are in fact hexadecimal numbers, but usually documented "
13408 "without any leading \"0x\" which might be confusing."
13412 #: ../fish/guestfish-actions.pod:3727
13413 msgid "part-set-name"
13414 msgstr "part-set-name"
13417 #: ../fish/guestfish-actions.pod:3729
13420 " part-set-name device partnum name\n"
13425 #: ../fish/guestfish-actions.pod:3731 ../src/guestfs-actions.pod:5694
13427 "This sets the partition name on partition numbered C<partnum> on device "
13428 "C<device>. Note that partitions are numbered from 1."
13432 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5697
13434 "The partition name can only be set on certain types of partition table. "
13435 "This works on C<gpt> but not on C<mbr> partitions."
13439 #: ../fish/guestfish-actions.pod:3737
13440 msgid "part-to-dev"
13441 msgstr "part-to-dev"
13444 #: ../fish/guestfish-actions.pod:3739
13447 " part-to-dev partition\n"
13450 " part-to-dev розділ\n"
13454 #: ../fish/guestfish-actions.pod:3741 ../src/guestfs-actions.pod:5710
13456 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
13457 "partition number, returning the device name (eg. \"/dev/sdb\")."
13461 #: ../fish/guestfish-actions.pod:3745
13463 "The named partition must exist, for example as a string returned from L</"
13464 "list-partitions>."
13468 #: ../fish/guestfish-actions.pod:3748
13469 msgid "ping-daemon"
13470 msgstr "ping-daemon"
13473 #: ../fish/guestfish-actions.pod:3750
13483 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5727
13485 "This is a test probe into the guestfs daemon running inside the qemu "
13486 "subprocess. Calling this function checks that the daemon responds to the "
13487 "ping message, without affecting the daemon or attached block device(s) in "
13492 #: ../fish/guestfish-actions.pod:3757
13497 #: ../fish/guestfish-actions.pod:3759
13500 " pread path count offset\n"
13505 #: ../fish/guestfish-actions.pod:3761 ../src/guestfs-actions.pod:5745
13507 "This command lets you read part of a file. It reads C<count> bytes of the "
13508 "file, starting at C<offset>, from file C<path>."
13512 #: ../fish/guestfish-actions.pod:3764 ../fish/guestfish-actions.pod:3779
13513 #: ../src/guestfs-actions.pod:5748 ../src/guestfs-actions.pod:5774
13515 "This may read fewer bytes than requested. For further details see the "
13516 "L<pread(2)> system call."
13520 #: ../fish/guestfish-actions.pod:3767
13521 msgid "See also L</pwrite>, L</pread-device>."
13522 msgstr "Див. також L</pwrite>, L</pread-device>."
13525 #: ../fish/guestfish-actions.pod:3772
13526 msgid "pread-device"
13527 msgstr "pread-device"
13530 #: ../fish/guestfish-actions.pod:3774
13533 " pread-device device count offset\n"
13538 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5771
13540 "This command lets you read part of a file. It reads C<count> bytes of "
13541 "C<device>, starting at C<offset>."
13545 #: ../fish/guestfish-actions.pod:3782
13546 msgid "See also L</pread>."
13547 msgstr "Див. також L</pread>."
13550 #: ../fish/guestfish-actions.pod:3787
13555 #: ../fish/guestfish-actions.pod:3789
13558 " pvcreate device\n"
13561 " pvcreate пристрій\n"
13565 #: ../fish/guestfish-actions.pod:3791 ../src/guestfs-actions.pod:5794
13567 "This creates an LVM physical volume on the named C<device>, where C<device> "
13568 "should usually be a partition name such as C</dev/sda1>."
13572 #: ../fish/guestfish-actions.pod:3795
13577 #: ../fish/guestfish-actions.pod:3797
13580 " pvremove device\n"
13583 " pvremove пристрій\n"
13587 #: ../fish/guestfish-actions.pod:3799 ../src/guestfs-actions.pod:5808
13589 "This wipes a physical volume C<device> so that LVM will no longer recognise "
13594 #: ../fish/guestfish-actions.pod:3802 ../src/guestfs-actions.pod:5811
13596 "The implementation uses the C<pvremove> command which refuses to wipe "
13597 "physical volumes that contain any volume groups, so you have to remove those "
13602 #: ../fish/guestfish-actions.pod:3806
13607 #: ../fish/guestfish-actions.pod:3808
13610 " pvresize device\n"
13613 " pvresize пристрій\n"
13617 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5825
13619 "This resizes (expands or shrinks) an existing LVM physical volume to match "
13620 "the new size of the underlying device."
13624 #: ../fish/guestfish-actions.pod:3813
13625 msgid "pvresize-size"
13626 msgstr "pvresize-size"
13629 #: ../fish/guestfish-actions.pod:3815
13632 " pvresize-size device size\n"
13637 #: ../fish/guestfish-actions.pod:3817
13639 "This command is the same as L</pvresize> except that it allows you to "
13640 "specify the new size (in bytes) explicitly."
13644 #: ../fish/guestfish-actions.pod:3820
13649 #: ../fish/guestfish-actions.pod:3822
13659 #: ../fish/guestfish-actions.pod:3824 ../src/guestfs-actions.pod:5851
13661 "List all the physical volumes detected. This is the equivalent of the L<pvs"
13666 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5854
13668 "This returns a list of just the device names that contain PVs (eg. C</dev/"
13673 #: ../fish/guestfish-actions.pod:3830
13674 msgid "See also L</pvs-full>."
13675 msgstr "Див. також L</pvs-full>."
13678 #: ../fish/guestfish-actions.pod:3832
13683 #: ../fish/guestfish-actions.pod:3834
13693 #: ../fish/guestfish-actions.pod:3836 ../src/guestfs-actions.pod:5870
13695 "List all the physical volumes detected. This is the equivalent of the L<pvs"
13696 "(8)> command. The \"full\" version includes all fields."
13700 #: ../fish/guestfish-actions.pod:3839
13705 #: ../fish/guestfish-actions.pod:3841
13711 " pvuuid пристрій\n"
13715 #: ../fish/guestfish-actions.pod:3843 ../src/guestfs-actions.pod:5885
13716 msgid "This command returns the UUID of the LVM PV C<device>."
13720 #: ../fish/guestfish-actions.pod:3845
13725 #: ../fish/guestfish-actions.pod:3847
13728 " pwrite path content offset\n"
13733 #: ../fish/guestfish-actions.pod:3849 ../src/guestfs-actions.pod:5901
13735 "This command writes to part of a file. It writes the data buffer C<content> "
13736 "to the file C<path> starting at offset C<offset>."
13740 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:5904
13742 "This command implements the L<pwrite(2)> system call, and like that system "
13743 "call it may not write the full data requested. The return value is the "
13744 "number of bytes that were actually written to the file. This could even be "
13745 "0, although short writes are unlikely for regular files in ordinary "
13750 #: ../fish/guestfish-actions.pod:3858
13751 msgid "See also L</pread>, L</pwrite-device>."
13752 msgstr "Див. також L</pread>, L</pwrite-device>."
13755 #: ../fish/guestfish-actions.pod:3863
13756 msgid "pwrite-device"
13757 msgstr "pwrite-device"
13760 #: ../fish/guestfish-actions.pod:3865
13763 " pwrite-device device content offset\n"
13768 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5928
13770 "This command writes to part of a device. It writes the data buffer "
13771 "C<content> to C<device> starting at offset C<offset>."
13775 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5931
13777 "This command implements the L<pwrite(2)> system call, and like that system "
13778 "call it may not write the full data requested (although short writes to disk "
13779 "devices and partitions are probably impossible with standard Linux kernels)."
13783 #: ../fish/guestfish-actions.pod:3875
13784 msgid "See also L</pwrite>."
13785 msgstr "Див. також L</pwrite>."
13788 #: ../fish/guestfish-actions.pod:3880
13793 #: ../fish/guestfish-actions.pod:3882
13796 " read-file path\n"
13799 " read-file шлях\n"
13803 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5952
13804 msgid "This calls returns the contents of the file C<path> as a buffer."
13808 #: ../fish/guestfish-actions.pod:3887
13810 "Unlike L</cat>, this function can correctly handle files that contain "
13811 "embedded ASCII NUL characters. However unlike L</download>, this function "
13812 "is limited in the total size of file that can be handled."
13816 #: ../fish/guestfish-actions.pod:3895
13818 msgstr "read-lines"
13821 #: ../fish/guestfish-actions.pod:3897
13824 " read-lines path\n"
13827 " read-lines шлях\n"
13831 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5977
13833 "The file contents are returned as a list of lines. Trailing C<LF> and "
13834 "C<CRLF> character sequences are I<not> returned."
13838 #: ../fish/guestfish-actions.pod:3904
13840 "Note that this function cannot correctly handle binary files (specifically, "
13841 "files containing C<\\0> character which is treated as end of line). For "
13842 "those you need to use the L</read-file> function which has a more complex "
13847 #: ../fish/guestfish-actions.pod:3909
13852 #: ../fish/guestfish-actions.pod:3911
13858 " readdir каталог\n"
13862 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:5997
13863 msgid "This returns the list of directory entries in directory C<dir>."
13867 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5999
13869 "All entries in the directory are returned, including C<.> and C<..>. The "
13870 "entries are I<not> sorted, but returned in the same order as the underlying "
13875 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6003
13877 "Also this call returns basic file type information about each file. The "
13878 "C<ftyp> field will contain one of the following characters:"
13882 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:6008
13887 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6010
13888 msgid "Block special"
13889 msgstr "Блоковий особливий"
13892 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6012
13897 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6014
13898 msgid "Char special"
13899 msgstr "Символьний особливий"
13902 #: ../fish/guestfish-actions.pod:3932 ../src/guestfs-actions.pod:6016
13907 #: ../fish/guestfish-actions.pod:3934 ../src/guestfs-actions.pod:6018
13912 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:6020
13917 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6022
13918 msgid "FIFO (named pipe)"
13919 msgstr "FIFO (іменований канал)"
13922 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6024
13927 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6026
13928 msgid "Symbolic link"
13929 msgstr "Символічне посилання"
13932 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6028
13937 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6030
13938 msgid "Regular file"
13939 msgstr "Звичайний файл"
13942 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6032
13947 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6034
13952 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6036
13957 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6038
13958 msgid "Unknown file type"
13959 msgstr "Невідомий тип файла"
13962 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6040
13967 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6042
13969 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13973 #: ../fish/guestfish-actions.pod:3963
13975 "This function is primarily intended for use by programs. To get a simple "
13976 "list of names, use L</ls>. To get a printable directory for human "
13977 "consumption, use L</ll>."
13981 #: ../fish/guestfish-actions.pod:3967
13986 #: ../fish/guestfish-actions.pod:3969
13996 #: ../fish/guestfish-actions.pod:3971 ../src/guestfs-actions.pod:6063
13997 msgid "This command reads the target of a symbolic link."
14001 #: ../fish/guestfish-actions.pod:3973
14002 msgid "readlinklist"
14003 msgstr "readlinklist"
14006 #: ../fish/guestfish-actions.pod:3975
14009 " readlinklist path 'names ...'\n"
14014 #: ../fish/guestfish-actions.pod:3977 ../src/guestfs-actions.pod:6077
14016 "This call allows you to do a C<readlink> operation on multiple files, where "
14017 "all files are in the directory C<path>. C<names> is the list of files from "
14022 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6081
14024 "On return you get a list of strings, with a one-to-one correspondence to the "
14025 "C<names> list. Each string is the value of the symbolic link."
14029 #: ../fish/guestfish-actions.pod:3985 ../src/guestfs-actions.pod:6085
14031 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14032 "result string is the empty string C<\"\">. However the whole operation is "
14033 "completed even if there were C<readlink(2)> errors, and so you can call this "
14034 "function with names where you don't know if they are symbolic links already "
14035 "(albeit slightly less efficient)."
14039 #: ../fish/guestfish-actions.pod:3992 ../src/guestfs-actions.pod:6092
14041 "This call is intended for programs that want to efficiently list a directory "
14042 "contents without making many round-trips. Very long directory listings "
14043 "might cause the protocol message size to be exceeded, causing this call to "
14044 "fail. The caller must split up such requests into smaller groups of names."
14048 #: ../fish/guestfish-actions.pod:3999
14053 #: ../fish/guestfish-actions.pod:4001
14063 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6111
14065 "Return the canonicalized absolute pathname of C<path>. The returned path "
14066 "has no C<.>, C<..> or symbolic link path elements."
14070 #: ../fish/guestfish-actions.pod:4006
14071 msgid "removexattr"
14072 msgstr "removexattr"
14075 #: ../fish/guestfish-actions.pod:4008
14078 " removexattr xattr path\n"
14083 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6126
14085 "This call removes the extended attribute named C<xattr> of the file C<path>."
14089 #: ../fish/guestfish-actions.pod:4013
14090 msgid "See also: L</lremovexattr>, L<attr(5)>."
14091 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
14094 #: ../fish/guestfish-actions.pod:4015
14099 #: ../fish/guestfish-actions.pod:4017
14102 " resize2fs device\n"
14105 " resize2fs пристрій\n"
14109 #: ../fish/guestfish-actions.pod:4019 ../src/guestfs-actions.pod:6141
14111 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
14112 "underlying device."
14116 #: ../fish/guestfish-actions.pod:4022
14118 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
14119 "before calling this command. For unknown reasons C<resize2fs> sometimes "
14120 "gives an error about this and sometimes not. In any case, it is always safe "
14121 "to call L</e2fsck-f> before calling this function."
14125 #: ../fish/guestfish-actions.pod:4028
14126 msgid "resize2fs-M"
14127 msgstr "resize2fs-M"
14130 #: ../fish/guestfish-actions.pod:4030
14133 " resize2fs-M device\n"
14136 " resize2fs-M пристрій\n"
14140 #: ../fish/guestfish-actions.pod:4032
14142 "This command is the same as L</resize2fs>, but the filesystem is resized to "
14143 "its minimum size. This works like the I<-M> option to the C<resize2fs> "
14148 #: ../fish/guestfish-actions.pod:4036
14150 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
14151 "and read the C<Block size> and C<Block count> values. These two numbers, "
14152 "multiplied together, give the resulting size of the minimal filesystem in "
14157 #: ../fish/guestfish-actions.pod:4041
14158 msgid "resize2fs-size"
14159 msgstr "resize2fs-size"
14162 #: ../fish/guestfish-actions.pod:4043
14165 " resize2fs-size device size\n"
14170 #: ../fish/guestfish-actions.pod:4045
14172 "This command is the same as L</resize2fs> except that it allows you to "
14173 "specify the new size (in bytes) explicitly."
14177 #: ../fish/guestfish-actions.pod:4048
14182 #: ../fish/guestfish-actions.pod:4050
14192 #: ../fish/guestfish-actions.pod:4052 ../src/guestfs-actions.pod:6193
14193 msgid "Remove the single file C<path>."
14197 #: ../fish/guestfish-actions.pod:4054
14202 #: ../fish/guestfish-actions.pod:4056
14212 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6205
14214 "Remove the file or directory C<path>, recursively removing the contents if "
14215 "its a directory. This is like the C<rm -rf> shell command."
14219 #: ../fish/guestfish-actions.pod:4062
14224 #: ../fish/guestfish-actions.pod:4064
14234 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6219
14235 msgid "Remove the single directory C<path>."
14239 #: ../fish/guestfish-actions.pod:4068
14240 msgid "rmmountpoint"
14241 msgstr "rmmountpoint"
14244 #: ../fish/guestfish-actions.pod:4070
14247 " rmmountpoint exemptpath\n"
14252 #: ../fish/guestfish-actions.pod:4072
14254 "This calls removes a mountpoint that was previously created with L</"
14255 "mkmountpoint>. See L</mkmountpoint> for full details."
14259 #: ../fish/guestfish-actions.pod:4076
14260 msgid "scrub-device"
14261 msgstr "scrub-device"
14264 #: ../fish/guestfish-actions.pod:4078
14267 " scrub-device device\n"
14270 " scrub-device пристрій\n"
14274 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6245
14276 "This command writes patterns over C<device> to make data retrieval more "
14281 #: ../fish/guestfish-actions.pod:4083 ../fish/guestfish-actions.pod:4098
14282 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6248
14283 #: ../src/guestfs-actions.pod:6269 ../src/guestfs-actions.pod:6288
14285 "It is an interface to the L<scrub(1)> program. See that manual page for "
14290 #: ../fish/guestfish-actions.pod:4089
14292 msgstr "scrub-file"
14295 #: ../fish/guestfish-actions.pod:4091
14298 " scrub-file file\n"
14301 " scrub-file файл\n"
14305 #: ../fish/guestfish-actions.pod:4093 ../src/guestfs-actions.pod:6264
14307 "This command writes patterns over a file to make data retrieval more "
14312 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6267
14313 msgid "The file is I<removed> after scrubbing."
14317 #: ../fish/guestfish-actions.pod:4101
14318 msgid "scrub-freespace"
14319 msgstr "scrub-freespace"
14322 #: ../fish/guestfish-actions.pod:4103
14325 " scrub-freespace dir\n"
14328 " scrub-freespace каталог\n"
14332 #: ../fish/guestfish-actions.pod:4105
14334 "This command creates the directory C<dir> and then fills it with files until "
14335 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
14336 "deletes them. The intention is to scrub any free space on the partition "
14337 "containing C<dir>."
14341 #: ../fish/guestfish-actions.pod:4114
14343 msgstr "set-append"
14346 #: ../fish/guestfish-actions.pod:4116
14351 #: ../fish/guestfish-actions.pod:4118
14354 " set-append append\n"
14359 #: ../fish/guestfish-actions.pod:4120 ../src/guestfs-actions.pod:6301
14361 "This function is used to add additional options to the guest kernel command "
14366 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6304
14368 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
14369 "environment variable."
14373 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6307
14375 "Setting C<append> to C<NULL> means I<no> additional options are passed "
14376 "(libguestfs always adds a few of its own)."
14380 #: ../fish/guestfish-actions.pod:4129
14381 msgid "set-attach-method"
14382 msgstr "set-attach-method"
14385 #: ../fish/guestfish-actions.pod:4131
14386 msgid "attach-method"
14390 #: ../fish/guestfish-actions.pod:4133
14393 " set-attach-method attachmethod\n"
14398 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6320
14400 "Set the method that libguestfs uses to connect to the back end guestfsd "
14401 "daemon. Possible methods are:"
14405 #: ../fish/guestfish-actions.pod:4140 ../src/guestfs-actions.pod:6325
14406 #: ../src/guestfs.pod:2830
14407 msgid "C<appliance>"
14408 msgstr "C<appliance>"
14411 #: ../fish/guestfish-actions.pod:4142 ../src/guestfs-actions.pod:6327
14413 "Launch an appliance and connect to it. This is the ordinary method and the "
14418 #: ../fish/guestfish-actions.pod:4145 ../src/guestfs-actions.pod:6330
14419 msgid "C<unix:I<path>>"
14420 msgstr "C<unix:I<шлях>>"
14423 #: ../fish/guestfish-actions.pod:4147 ../src/guestfs-actions.pod:6332
14424 msgid "Connect to the Unix domain socket I<path>."
14425 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
14428 #: ../fish/guestfish-actions.pod:4149 ../src/guestfs-actions.pod:6334
14430 "This method lets you connect to an existing daemon or (using virtio-serial) "
14431 "to a live guest. For more information, see L<guestfs(3)/ATTACHING TO "
14432 "RUNNING DAEMONS>."
14436 #: ../fish/guestfish-actions.pod:4155
14437 msgid "set-autosync"
14438 msgstr "set-autosync"
14441 #: ../fish/guestfish-actions.pod:4157
14446 #: ../fish/guestfish-actions.pod:4159
14449 " set-autosync true|false\n"
14452 " set-autosync true|false\n"
14456 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6350
14458 "If C<autosync> is true, this enables autosync. Libguestfs will make a best "
14459 "effort attempt to make filesystems consistent and synchronized when the "
14460 "handle is closed (also if the program exits without closing handles)."
14464 #: ../fish/guestfish-actions.pod:4166 ../src/guestfs-actions.pod:6355
14466 "This is enabled by default (since libguestfs 1.5.24, previously it was "
14467 "disabled by default)."
14471 #: ../fish/guestfish-actions.pod:4169
14473 msgstr "set-direct"
14476 #: ../fish/guestfish-actions.pod:4171
14481 #: ../fish/guestfish-actions.pod:4173
14484 " set-direct true|false\n"
14487 " set-direct true|false\n"
14491 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6368
14493 "If the direct appliance mode flag is enabled, then stdin and stdout are "
14494 "passed directly through to the appliance once it is launched."
14498 #: ../fish/guestfish-actions.pod:4179
14500 "One consequence of this is that log messages aren't caught by the library "
14501 "and handled by L</set-log-message-callback>, but go straight to stdout."
14505 #: ../fish/guestfish-actions.pod:4183 ../src/guestfs-actions.pod:6376
14506 msgid "You probably don't want to use this unless you know what you are doing."
14510 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6379
14511 msgid "The default is disabled."
14515 #: ../fish/guestfish-actions.pod:4188
14516 msgid "set-e2label"
14517 msgstr "set-e2label"
14520 #: ../fish/guestfish-actions.pod:4190
14523 " set-e2label device label\n"
14528 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6392
14530 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
14531 "C<label>. Filesystem labels are limited to 16 characters."
14535 #: ../fish/guestfish-actions.pod:4196
14537 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
14538 "label on a filesystem."
14542 #: ../fish/guestfish-actions.pod:4199
14544 msgstr "set-e2uuid"
14547 #: ../fish/guestfish-actions.pod:4201
14550 " set-e2uuid device uuid\n"
14555 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6410
14557 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
14558 "C<uuid>. The format of the UUID and alternatives such as C<clear>, "
14559 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
14563 #: ../fish/guestfish-actions.pod:4208
14565 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
14566 "UUID of a filesystem."
14570 #: ../fish/guestfish-actions.pod:4211
14571 msgid "set-memsize"
14572 msgstr "set-memsize"
14575 #: ../fish/guestfish-actions.pod:4213
14580 #: ../fish/guestfish-actions.pod:4215
14583 " set-memsize memsize\n"
14588 #: ../fish/guestfish-actions.pod:4217
14590 "This sets the memory size in megabytes allocated to the qemu subprocess. "
14591 "This only has any effect if called before L</launch>."
14595 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6432
14597 "You can also change this by setting the environment variable "
14598 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
14602 #: ../fish/guestfish-actions.pod:4228
14603 msgid "set-network"
14604 msgstr "set-network"
14607 #: ../fish/guestfish-actions.pod:4230
14612 #: ../fish/guestfish-actions.pod:4232
14615 " set-network true|false\n"
14618 " set-network true|false\n"
14622 #: ../fish/guestfish-actions.pod:4234 ../src/guestfs-actions.pod:6449
14624 "If C<network> is true, then the network is enabled in the libguestfs "
14625 "appliance. The default is false."
14629 #: ../fish/guestfish-actions.pod:4237 ../src/guestfs-actions.pod:6452
14631 "This affects whether commands are able to access the network (see L<guestfs"
14632 "(3)/RUNNING COMMANDS>)."
14636 #: ../fish/guestfish-actions.pod:4240
14638 "You must call this before calling L</launch>, otherwise it has no effect."
14642 #: ../fish/guestfish-actions.pod:4243
14647 #: ../fish/guestfish-actions.pod:4247
14650 " set-path searchpath\n"
14655 #: ../fish/guestfish-actions.pod:4249 ../src/guestfs-actions.pod:6468
14656 msgid "Set the path that libguestfs searches for kernel and initrd.img."
14660 #: ../fish/guestfish-actions.pod:4251 ../src/guestfs-actions.pod:6470
14662 "The default is C<$libdir/guestfs> unless overridden by setting "
14663 "C<LIBGUESTFS_PATH> environment variable."
14667 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6473
14668 msgid "Setting C<path> to C<NULL> restores the default path."
14672 #: ../fish/guestfish-actions.pod:4256
14677 #: ../fish/guestfish-actions.pod:4258
14682 #: ../fish/guestfish-actions.pod:4260
14685 " set-pgroup true|false\n"
14690 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6485
14692 "If C<pgroup> is true, child processes are placed into their own process "
14697 #: ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:6488
14699 "The practical upshot of this is that signals like C<SIGINT> (from users "
14700 "pressing C<^C>) won't be received by the child process."
14704 #: ../fish/guestfish-actions.pod:4268 ../src/guestfs-actions.pod:6491
14706 "The default for this flag is false, because usually you want C<^C> to kill "
14711 #: ../fish/guestfish-actions.pod:4271
14716 #: ../fish/guestfish-actions.pod:4273
14721 #: ../fish/guestfish-actions.pod:4275
14731 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6504
14732 msgid "Set the qemu binary that we will use."
14736 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6506
14738 "The default is chosen when the library was compiled by the configure script."
14742 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6509
14744 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14749 #: ../fish/guestfish-actions.pod:4285 ../src/guestfs-actions.pod:6512
14750 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14754 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6514
14756 "Note that you should call this function as early as possible after creating "
14757 "the handle. This is because some pre-launch operations depend on testing "
14758 "qemu features (by running C<qemu -help>). If the qemu binary changes, we "
14759 "don't retest features, and so you might see inconsistent results. Using the "
14760 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14761 "the qemu binary at the same time as the handle is created."
14765 #: ../fish/guestfish-actions.pod:4295
14766 msgid "set-recovery-proc"
14767 msgstr "set-recovery-proc"
14770 #: ../fish/guestfish-actions.pod:4297
14771 msgid "recovery-proc"
14772 msgstr "recovery-proc"
14775 #: ../fish/guestfish-actions.pod:4299
14778 " set-recovery-proc true|false\n"
14781 " set-recovery-proc true|false\n"
14785 #: ../fish/guestfish-actions.pod:4301
14787 "If this is called with the parameter C<false> then L</launch> does not "
14788 "create a recovery process. The purpose of the recovery process is to stop "
14789 "runaway qemu processes in the case where the main program aborts abruptly."
14793 #: ../fish/guestfish-actions.pod:4306
14795 "This only has any effect if called before L</launch>, and the default is "
14800 #: ../fish/guestfish-actions.pod:4309 ../src/guestfs-actions.pod:6540
14802 "About the only time when you would want to disable this is if the main "
14803 "process will fork itself into the background (\"daemonize\" itself). In "
14804 "this case the recovery process thinks that the main program has disappeared "
14805 "and so kills qemu, which is not very helpful."
14809 #: ../fish/guestfish-actions.pod:4315
14810 msgid "set-selinux"
14811 msgstr "set-selinux"
14814 #: ../fish/guestfish-actions.pod:4317
14819 #: ../fish/guestfish-actions.pod:4319
14822 " set-selinux true|false\n"
14825 " set-selinux true|false\n"
14829 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6556
14831 "This sets the selinux flag that is passed to the appliance at boot time. "
14832 "The default is C<selinux=0> (disabled)."
14836 #: ../fish/guestfish-actions.pod:4324 ../src/guestfs-actions.pod:6559
14838 "Note that if SELinux is enabled, it is always in Permissive mode "
14839 "(C<enforcing=0>)."
14843 #: ../fish/guestfish-actions.pod:4330
14845 #| msgid "set-path"
14850 #: ../fish/guestfish-actions.pod:4332
14855 #: ../fish/guestfish-actions.pod:4334
14858 #| " set-qemu qemu\n"
14868 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6575
14870 "Change the number of virtual CPUs assigned to the appliance. The default is "
14871 "C<1>. Increasing this may improve performance, though often it has no "
14876 #: ../fish/guestfish-actions.pod:4340
14877 msgid "This function must be called before L</launch>."
14881 #: ../fish/guestfish-actions.pod:4342
14886 #: ../fish/guestfish-actions.pod:4344
14891 #: ../fish/guestfish-actions.pod:4346
14894 " set-trace true|false\n"
14897 " set-trace true|false\n"
14901 #: ../fish/guestfish-actions.pod:4348 ../src/guestfs-actions.pod:6591
14903 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14904 "return values are traced."
14908 #: ../fish/guestfish-actions.pod:4351 ../src/guestfs-actions.pod:6594
14910 "If you want to trace C API calls into libguestfs (and other libraries) then "
14911 "possibly a better way is to use the external ltrace(1) command."
14915 #: ../fish/guestfish-actions.pod:4355 ../src/guestfs-actions.pod:6598
14917 "Command traces are disabled unless the environment variable "
14918 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14922 #: ../fish/guestfish-actions.pod:4358
14924 "Trace messages are normally sent to C<stderr>, unless you register a "
14925 "callback to send them somewhere else (see L</set-event-callback>)."
14929 #: ../fish/guestfish-actions.pod:4362
14930 msgid "set-verbose"
14931 msgstr "set-verbose"
14934 #: ../fish/guestfish-actions.pod:4364
14939 #: ../fish/guestfish-actions.pod:4366
14942 " set-verbose true|false\n"
14945 " set-verbose true|false\n"
14949 #: ../fish/guestfish-actions.pod:4368 ../src/guestfs-actions.pod:6615
14950 msgid "If C<verbose> is true, this turns on verbose messages."
14954 #: ../fish/guestfish-actions.pod:4370 ../src/guestfs-actions.pod:6617
14956 "Verbose messages are disabled unless the environment variable "
14957 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14961 #: ../fish/guestfish-actions.pod:4373
14963 "Verbose messages are normally sent to C<stderr>, unless you register a "
14964 "callback to send them somewhere else (see L</set-event-callback>)."
14968 #: ../fish/guestfish-actions.pod:4377
14973 #: ../fish/guestfish-actions.pod:4379
14976 " setcon context\n"
14979 " setcon контекст\n"
14983 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6634
14985 "This sets the SELinux security context of the daemon to the string "
14990 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6637
14991 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14995 #: ../fish/guestfish-actions.pod:4386
15000 #: ../fish/guestfish-actions.pod:4388
15003 " setxattr xattr val vallen path\n"
15008 #: ../fish/guestfish-actions.pod:4390 ../src/guestfs-actions.pod:6652
15010 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15011 "the value C<val> (of length C<vallen>). The value is arbitrary 8 bit data."
15015 #: ../fish/guestfish-actions.pod:4394
15016 msgid "See also: L</lsetxattr>, L<attr(5)>."
15017 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
15020 #: ../fish/guestfish-actions.pod:4396
15025 #: ../fish/guestfish-actions.pod:4398
15028 " sfdisk device cyls heads sectors 'lines ...'\n"
15033 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6679
15035 "This is a direct interface to the L<sfdisk(8)> program for creating "
15036 "partitions on block devices."
15040 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6682
15041 msgid "C<device> should be a block device, for example C</dev/sda>."
15045 #: ../fish/guestfish-actions.pod:4405 ../src/guestfs-actions.pod:6684
15047 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15048 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
15049 "H> and I<-S> parameters. If you pass C<0> for any of these, then the "
15050 "corresponding parameter is omitted. Usually for 'large' disks, you can just "
15051 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15052 "the kernel) cannot work out the right geometry and you will need to tell it."
15056 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6692
15058 "C<lines> is a list of lines that we feed to C<sfdisk>. For more information "
15059 "refer to the L<sfdisk(8)> manpage."
15063 #: ../fish/guestfish-actions.pod:4416 ../src/guestfs-actions.pod:6695
15065 "To create a single partition occupying the whole disk, you would pass "
15066 "C<lines> as a single element list, when the single element being the string "
15071 #: ../fish/guestfish-actions.pod:4420
15072 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15073 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15076 #: ../fish/guestfish-actions.pod:4426 ../fish/guestfish-actions.pod:4449
15077 #: ../fish/guestfish-actions.pod:4471
15079 "I<This function is deprecated.> In new code, use the L</part_add> call "
15084 #: ../fish/guestfish-actions.pod:4433
15089 #: ../fish/guestfish-actions.pod:4435
15092 " sfdiskM device 'lines ...'\n"
15097 #: ../fish/guestfish-actions.pod:4437
15099 "This is a simplified interface to the L</sfdisk> command, where partition "
15100 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
15101 "you don't need to specify the cyls, heads and sectors parameters which were "
15102 "rarely if ever used anyway."
15106 #: ../fish/guestfish-actions.pod:4443
15107 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
15109 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
15112 #: ../fish/guestfish-actions.pod:4456
15117 #: ../fish/guestfish-actions.pod:4458
15120 " sfdisk-N device partnum cyls heads sectors line\n"
15125 #: ../fish/guestfish-actions.pod:4460 ../src/guestfs-actions.pod:6757
15127 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15128 "(note: C<n> counts from 1)."
15132 #: ../fish/guestfish-actions.pod:4463
15134 "For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
15135 "cyls/heads/sectors parameters."
15139 #: ../fish/guestfish-actions.pod:4466
15140 msgid "See also: L</part-add>"
15141 msgstr "Див. також L</part-add>"
15144 #: ../fish/guestfish-actions.pod:4478
15145 msgid "sfdisk-disk-geometry"
15146 msgstr "sfdisk-disk-geometry"
15149 #: ../fish/guestfish-actions.pod:4480
15152 " sfdisk-disk-geometry device\n"
15155 " sfdisk-disk-geometry пристрій\n"
15159 #: ../fish/guestfish-actions.pod:4482
15161 "This displays the disk geometry of C<device> read from the partition table. "
15162 "Especially in the case where the underlying block device has been resized, "
15163 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
15164 "kernel-geometry>)."
15168 #: ../fish/guestfish-actions.pod:4487 ../fish/guestfish-actions.pod:4496
15169 #: ../src/guestfs-actions.pod:6783 ../src/guestfs-actions.pod:6799
15170 msgid "The result is in human-readable format, and not designed to be parsed."
15174 #: ../fish/guestfish-actions.pod:4490
15175 msgid "sfdisk-kernel-geometry"
15176 msgstr "sfdisk-kernel-geometry"
15179 #: ../fish/guestfish-actions.pod:4492
15182 " sfdisk-kernel-geometry device\n"
15185 " sfdisk-kernel-geometry пристрій\n"
15189 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6797
15190 msgid "This displays the kernel's idea of the geometry of C<device>."
15194 #: ../fish/guestfish-actions.pod:4499
15199 #: ../fish/guestfish-actions.pod:4501
15202 " sfdisk-l device\n"
15205 " sfdisk-l пристрій\n"
15209 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6820
15211 "This displays the partition table on C<device>, in the human-readable output "
15212 "of the L<sfdisk(8)> command. It is not intended to be parsed."
15216 #: ../fish/guestfish-actions.pod:4507
15217 msgid "See also: L</part-list>"
15218 msgstr "Див. також L</part-list>"
15221 #: ../fish/guestfish-actions.pod:4509
15223 "I<This function is deprecated.> In new code, use the L</part_list> call "
15228 #: ../fish/guestfish-actions.pod:4516
15233 #: ../fish/guestfish-actions.pod:4518
15243 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6837
15245 "This call runs a command from the guest filesystem via the guest's C</bin/"
15250 #: ../fish/guestfish-actions.pod:4523
15251 msgid "This is like L</command>, but passes the command to:"
15255 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6842
15258 " /bin/sh -c \"command\"\n"
15263 #: ../fish/guestfish-actions.pod:4527 ../src/guestfs-actions.pod:6844
15265 "Depending on the guest's shell, this usually results in wildcards being "
15266 "expanded, shell expressions being interpolated and so on."
15270 #: ../fish/guestfish-actions.pod:4531
15271 msgid "All the provisos about L</command> apply to this call."
15275 #: ../fish/guestfish-actions.pod:4533
15280 #: ../fish/guestfish-actions.pod:4535
15283 " sh-lines command\n"
15286 " sh-lines команда\n"
15290 #: ../fish/guestfish-actions.pod:4537
15291 msgid "This is the same as L</sh>, but splits the result into a list of lines."
15295 #: ../fish/guestfish-actions.pod:4540
15296 msgid "See also: L</command-lines>"
15297 msgstr "Див. також L</command-lines>"
15300 #: ../fish/guestfish-actions.pod:4542
15305 #: ../fish/guestfish-actions.pod:4544
15311 " sleep час_у_секундах\n"
15315 #: ../fish/guestfish-actions.pod:4546 ../src/guestfs-actions.pod:6878
15316 msgid "Sleep for C<secs> seconds."
15320 #: ../fish/guestfish-actions.pod:4548
15325 #: ../fish/guestfish-actions.pod:4550
15335 #: ../fish/guestfish-actions.pod:4554 ../src/guestfs-actions.pod:6892
15336 msgid "This is the same as the C<stat(2)> system call."
15340 #: ../fish/guestfish-actions.pod:4556
15345 #: ../fish/guestfish-actions.pod:4558
15355 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6906
15357 "Returns file system statistics for any mounted file system. C<path> should "
15358 "be a file or directory in the mounted file system (typically it is the mount "
15359 "point itself, but it doesn't need to be)."
15363 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6910
15364 msgid "This is the same as the C<statvfs(2)> system call."
15368 #: ../fish/guestfish-actions.pod:4566
15373 #: ../fish/guestfish-actions.pod:4568
15383 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6924
15385 "This runs the L<strings(1)> command on a file and returns the list of "
15386 "printable strings found."
15390 #: ../fish/guestfish-actions.pod:4576
15395 #: ../fish/guestfish-actions.pod:4578
15398 " strings-e encoding path\n"
15401 " strings-e кодування шлях\n"
15405 #: ../fish/guestfish-actions.pod:4580
15407 "This is like the L</strings> command, but allows you to specify the encoding "
15408 "of strings that are looked for in the source file C<path>."
15412 #: ../fish/guestfish-actions.pod:4584 ../src/guestfs-actions.pod:6947
15413 msgid "Allowed encodings are:"
15414 msgstr "Можливими кодуваннями є:"
15417 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6951
15422 #: ../fish/guestfish-actions.pod:4590
15424 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
15425 "ISO-8859-X (this is what L</strings> uses)."
15429 #: ../fish/guestfish-actions.pod:4593 ../src/guestfs-actions.pod:6956
15434 #: ../fish/guestfish-actions.pod:4595 ../src/guestfs-actions.pod:6958
15435 msgid "Single 8-bit-byte characters."
15436 msgstr "Окремі 8-бітові-байтові символи."
15439 #: ../fish/guestfish-actions.pod:4597 ../src/guestfs-actions.pod:6960
15444 #: ../fish/guestfish-actions.pod:4599 ../src/guestfs-actions.pod:6962
15445 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
15449 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6965
15450 msgid "l (lower case letter L)"
15454 #: ../fish/guestfish-actions.pod:4604 ../src/guestfs-actions.pod:6967
15456 "16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
15457 "examining binaries in Windows guests."
15461 #: ../fish/guestfish-actions.pod:4607 ../src/guestfs-actions.pod:6970
15466 #: ../fish/guestfish-actions.pod:4609 ../src/guestfs-actions.pod:6972
15467 msgid "32-bit big endian such as UCS-4BE."
15471 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6974
15476 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6976
15477 msgid "32-bit little endian such as UCS-4LE."
15481 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6980
15482 msgid "The returned strings are transcoded to UTF-8."
15486 #: ../fish/guestfish-actions.pod:4622
15487 msgid "swapoff-device"
15488 msgstr "swapoff-device"
15491 #: ../fish/guestfish-actions.pod:4624
15494 " swapoff-device device\n"
15497 " swapoff-device пристрій\n"
15501 #: ../fish/guestfish-actions.pod:4626
15503 "This command disables the libguestfs appliance swap device or partition "
15504 "named C<device>. See L</swapon-device>."
15508 #: ../fish/guestfish-actions.pod:4630
15509 msgid "swapoff-file"
15510 msgstr "swapoff-file"
15513 #: ../fish/guestfish-actions.pod:4632
15516 " swapoff-file file\n"
15519 " swapoff-file файл\n"
15523 #: ../fish/guestfish-actions.pod:4634 ../src/guestfs-actions.pod:7011
15524 msgid "This command disables the libguestfs appliance swap on file."
15528 #: ../fish/guestfish-actions.pod:4636
15529 msgid "swapoff-label"
15530 msgstr "swapoff-label"
15533 #: ../fish/guestfish-actions.pod:4638
15536 " swapoff-label label\n"
15539 " swapoff-label мітка\n"
15543 #: ../fish/guestfish-actions.pod:4640 ../src/guestfs-actions.pod:7023
15545 "This command disables the libguestfs appliance swap on labeled swap "
15550 #: ../fish/guestfish-actions.pod:4643
15551 msgid "swapoff-uuid"
15552 msgstr "swapoff-uuid"
15555 #: ../fish/guestfish-actions.pod:4645
15558 " swapoff-uuid uuid\n"
15561 " swapoff-uuid uuid\n"
15565 #: ../fish/guestfish-actions.pod:4647 ../src/guestfs-actions.pod:7036
15567 "This command disables the libguestfs appliance swap partition with the given "
15572 #: ../fish/guestfish-actions.pod:4650
15573 msgid "swapon-device"
15574 msgstr "swapon-device"
15577 #: ../fish/guestfish-actions.pod:4652
15580 " swapon-device device\n"
15583 " swapon-device пристрій\n"
15587 #: ../fish/guestfish-actions.pod:4654
15589 "This command enables the libguestfs appliance to use the swap device or "
15590 "partition named C<device>. The increased memory is made available for all "
15591 "commands, for example those run using L</command> or L</sh>."
15595 #: ../fish/guestfish-actions.pod:4659 ../src/guestfs-actions.pod:7054
15597 "Note that you should not swap to existing guest swap partitions unless you "
15598 "know what you are doing. They may contain hibernation information, or other "
15599 "information that the guest doesn't want you to trash. You also risk leaking "
15600 "information about the host to the guest this way. Instead, attach a new "
15601 "host device to the guest and swap on that."
15605 #: ../fish/guestfish-actions.pod:4666
15606 msgid "swapon-file"
15607 msgstr "swapon-file"
15610 #: ../fish/guestfish-actions.pod:4668
15613 " swapon-file file\n"
15616 " swapon-file файл\n"
15620 #: ../fish/guestfish-actions.pod:4670
15622 "This command enables swap to a file. See L</swapon-device> for other notes."
15626 #: ../fish/guestfish-actions.pod:4673
15627 msgid "swapon-label"
15628 msgstr "swapon-label"
15631 #: ../fish/guestfish-actions.pod:4675
15634 " swapon-label label\n"
15637 " swapon-label мітка\n"
15641 #: ../fish/guestfish-actions.pod:4677
15643 "This command enables swap to a labeled swap partition. See L</swapon-"
15644 "device> for other notes."
15648 #: ../fish/guestfish-actions.pod:4680
15649 msgid "swapon-uuid"
15650 msgstr "swapon-uuid"
15653 #: ../fish/guestfish-actions.pod:4682
15656 " swapon-uuid uuid\n"
15659 " swapon-uuid uuid\n"
15663 #: ../fish/guestfish-actions.pod:4684
15665 "This command enables swap to a swap partition with the given UUID. See L</"
15666 "swapon-device> for other notes."
15670 #: ../fish/guestfish-actions.pod:4687
15675 #: ../fish/guestfish-actions.pod:4689
15685 #: ../fish/guestfish-actions.pod:4691 ../src/guestfs-actions.pod:7109
15687 "This syncs the disk, so that any writes are flushed through to the "
15688 "underlying disk image."
15692 #: ../fish/guestfish-actions.pod:4694 ../src/guestfs-actions.pod:7112
15694 "You should always call this if you have modified a disk image, before "
15695 "closing the handle."
15699 #: ../fish/guestfish-actions.pod:4697
15704 #: ../fish/guestfish-actions.pod:4699
15714 #: ../fish/guestfish-actions.pod:4701 ../src/guestfs-actions.pod:7125
15716 "This command returns up to the last 10 lines of a file as a list of strings."
15720 #: ../fish/guestfish-actions.pod:4707
15725 #: ../fish/guestfish-actions.pod:4709
15728 " tail-n nrlines path\n"
15733 #: ../fish/guestfish-actions.pod:4711 ../src/guestfs-actions.pod:7144
15735 "If the parameter C<nrlines> is a positive number, this returns the last "
15736 "C<nrlines> lines of the file C<path>."
15740 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7147
15742 "If the parameter C<nrlines> is a negative number, this returns lines from "
15743 "the file C<path>, starting with the C<-nrlines>th line."
15747 #: ../fish/guestfish-actions.pod:4722
15752 #: ../fish/guestfish-actions.pod:4724
15755 " tar-in (tarfile|-) directory\n"
15758 " tar-in (файл_tar|-) каталог\n"
15762 #: ../fish/guestfish-actions.pod:4726 ../src/guestfs-actions.pod:7168
15764 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
15765 "tar file) into C<directory>."
15769 #: ../fish/guestfish-actions.pod:4729
15770 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
15774 #: ../fish/guestfish-actions.pod:4734
15779 #: ../fish/guestfish-actions.pod:4736
15782 " tar-out directory (tarfile|-)\n"
15785 " tar-out каталог (файл tar|-)\n"
15789 #: ../fish/guestfish-actions.pod:4738 ../src/guestfs-actions.pod:7185
15791 "This command packs the contents of C<directory> and downloads it to local "
15796 #: ../fish/guestfish-actions.pod:4741
15797 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15801 #: ../fish/guestfish-actions.pod:4746
15806 #: ../fish/guestfish-actions.pod:4748
15809 " tgz-in (tarball|-) directory\n"
15812 " tgz-in (архів tar|-) каталог\n"
15816 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7202
15818 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15819 "tar file) into C<directory>."
15823 #: ../fish/guestfish-actions.pod:4753
15824 msgid "To upload an uncompressed tarball, use L</tar-in>."
15828 #: ../fish/guestfish-actions.pod:4757
15833 #: ../fish/guestfish-actions.pod:4759
15836 " tgz-out directory (tarball|-)\n"
15839 " tgz-out каталог (архів tar|-)\n"
15843 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7218
15845 "This command packs the contents of C<directory> and downloads it to local "
15850 #: ../fish/guestfish-actions.pod:4764
15851 msgid "To download an uncompressed tarball, use L</tar-out>."
15855 #: ../fish/guestfish-actions.pod:4768
15860 #: ../fish/guestfish-actions.pod:4770
15870 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7233
15872 "Touch acts like the L<touch(1)> command. It can be used to update the "
15873 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15878 #: ../fish/guestfish-actions.pod:4776 ../src/guestfs-actions.pod:7237
15880 "This command only works on regular files, and will fail on other file types "
15881 "such as directories, symbolic links, block special etc."
15885 #: ../fish/guestfish-actions.pod:4779
15890 #: ../fish/guestfish-actions.pod:4781
15900 #: ../fish/guestfish-actions.pod:4783 ../src/guestfs-actions.pod:7250
15902 "This command truncates C<path> to a zero-length file. The file must exist "
15907 #: ../fish/guestfish-actions.pod:4786
15908 msgid "truncate-size"
15909 msgstr "truncate-size"
15912 #: ../fish/guestfish-actions.pod:4788
15915 " truncate-size path size\n"
15918 " truncate-size шлях розмір\n"
15922 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7264
15924 "This command truncates C<path> to size C<size> bytes. The file must exist "
15929 #: ../fish/guestfish-actions.pod:4793
15931 "If the current file size is less than C<size> then the file is extended to "
15932 "the required size with zero bytes. This creates a sparse file (ie. disk "
15933 "blocks are not allocated for the file until you write to it). To create a "
15934 "non-sparse file of zeroes, use L</fallocate64> instead."
15938 #: ../fish/guestfish-actions.pod:4799
15943 #: ../fish/guestfish-actions.pod:4801
15946 " tune2fs-l device\n"
15949 " tune2fs-l пристрій\n"
15953 #: ../fish/guestfish-actions.pod:4803 ../src/guestfs-actions.pod:7283
15955 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15960 #: ../fish/guestfish-actions.pod:4806 ../src/guestfs-actions.pod:7286
15962 "It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage "
15963 "for more details. The list of fields returned isn't clearly defined, and "
15964 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15965 "and the filesystem itself."
15969 #: ../fish/guestfish-actions.pod:4811
15974 #: ../fish/guestfish-actions.pod:4813
15977 " txz-in (tarball|-) directory\n"
15980 " txz-in (архів tar|-) каталог\n"
15984 #: ../fish/guestfish-actions.pod:4815 ../src/guestfs-actions.pod:7306
15986 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15987 "tar file) into C<directory>."
15991 #: ../fish/guestfish-actions.pod:4820
15996 #: ../fish/guestfish-actions.pod:4822
15999 " txz-out directory (tarball|-)\n"
16002 " txz-out каталог (архів tar|-)\n"
16006 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7320
16008 "This command packs the contents of C<directory> and downloads it to local "
16009 "file C<tarball> (as an xz compressed tar archive)."
16013 #: ../fish/guestfish-actions.pod:4829
16018 #: ../fish/guestfish-actions.pod:4831
16028 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7333
16030 "This function sets the mask used for creating new files and device nodes to "
16035 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7336
16037 "Typical umask values would be C<022> which creates new files with "
16038 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16039 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16043 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7341
16045 "The default umask is C<022>. This is important because it means that "
16046 "directories and device nodes will be created with C<0644> or C<0755> mode "
16047 "even if you specify C<0777>."
16051 #: ../fish/guestfish-actions.pod:4845
16052 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16053 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16056 #: ../fish/guestfish-actions.pod:4848 ../src/guestfs-actions.pod:7348
16057 msgid "This call returns the previous umask."
16061 #: ../fish/guestfish-actions.pod:4850
16066 #: ../fish/guestfish-actions.pod:4852
16071 #: ../fish/guestfish-actions.pod:4854
16074 " umount pathordevice\n"
16077 " umount шлях_або_пристрій\n"
16081 #: ../fish/guestfish-actions.pod:4856 ../src/guestfs-actions.pod:7360
16083 "This unmounts the given filesystem. The filesystem may be specified either "
16084 "by its mountpoint (path) or the device which contains the filesystem."
16088 #: ../fish/guestfish-actions.pod:4860
16090 msgstr "umount-all"
16093 #: ../fish/guestfish-actions.pod:4862
16094 msgid "unmount-all"
16095 msgstr "unmount-all"
16098 #: ../fish/guestfish-actions.pod:4864
16108 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7373
16109 msgid "This unmounts all mounted filesystems."
16113 #: ../fish/guestfish-actions.pod:4868 ../src/guestfs-actions.pod:7375
16114 msgid "Some internal mounts are not unmounted by this call."
16118 #: ../fish/guestfish-actions.pod:4870
16123 #: ../fish/guestfish-actions.pod:4872
16126 " upload (filename|-) remotefilename\n"
16129 " upload (назва_файла|-) назва_віддаленого_файла\n"
16133 #: ../fish/guestfish-actions.pod:4874 ../fish/guestfish-actions.pod:4887
16134 #: ../src/guestfs-actions.pod:7388 ../src/guestfs-actions.pod:7412
16135 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
16139 #: ../fish/guestfish-actions.pod:4879
16140 msgid "See also L</download>."
16141 msgstr "Див. також L</download>."
16144 #: ../fish/guestfish-actions.pod:4883
16145 msgid "upload-offset"
16146 msgstr "upload-offset"
16149 #: ../fish/guestfish-actions.pod:4885
16152 " upload-offset (filename|-) remotefilename offset\n"
16155 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
16159 #: ../fish/guestfish-actions.pod:4890 ../src/guestfs-actions.pod:7415
16161 "C<remotefilename> is overwritten starting at the byte C<offset> specified. "
16162 "The intention is to overwrite parts of existing files or devices, although "
16163 "if a non-existant file is specified then it is created with a \"hole\" "
16164 "before C<offset>. The size of the data written is implicit in the size of "
16165 "the source C<filename>."
16169 #: ../fish/guestfish-actions.pod:4897
16171 "Note that there is no limit on the amount of data that can be uploaded with "
16172 "this call, unlike with L</pwrite>, and this call always writes the full "
16173 "amount unless an error occurs."
16177 #: ../fish/guestfish-actions.pod:4902
16178 msgid "See also L</upload>, L</pwrite>."
16179 msgstr "Див. також L</upload>, L</pwrite>."
16182 #: ../fish/guestfish-actions.pod:4906
16187 #: ../fish/guestfish-actions.pod:4908
16190 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
16195 #: ../fish/guestfish-actions.pod:4910 ../src/guestfs-actions.pod:7448
16196 msgid "This command sets the timestamps of a file with nanosecond precision."
16200 #: ../fish/guestfish-actions.pod:4913 ../src/guestfs-actions.pod:7451
16202 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
16207 #: ../fish/guestfish-actions.pod:4916 ../src/guestfs-actions.pod:7454
16209 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
16210 "nanoseconds from the epoch."
16214 #: ../fish/guestfish-actions.pod:4919 ../src/guestfs-actions.pod:7457
16216 "If the C<*nsecs> field contains the special value C<-1> then the "
16217 "corresponding timestamp is set to the current time. (The C<*secs> field is "
16218 "ignored in this case)."
16222 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7461
16224 "If the C<*nsecs> field contains the special value C<-2> then the "
16225 "corresponding timestamp is left unchanged. (The C<*secs> field is ignored "
16230 #: ../fish/guestfish-actions.pod:4927
16235 #: ../fish/guestfish-actions.pod:4929
16245 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7474
16247 "Return the libguestfs version number that the program is linked against."
16251 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7477
16253 "Note that because of dynamic linking this is not necessarily the version of "
16254 "libguestfs that you compiled against. You can compile the program, and then "
16255 "at runtime dynamically link against a completely different C<libguestfs.so> "
16260 #: ../fish/guestfish-actions.pod:4939 ../src/guestfs-actions.pod:7482
16262 "This call was added in version C<1.0.58>. In previous versions of "
16263 "libguestfs there was no way to get the version number. From C code you can "
16264 "use dynamic linker functions to find out if this symbol exists (if it "
16265 "doesn't, then it's an earlier version)."
16269 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7488
16271 "The call returns a structure with four elements. The first three (C<major>, "
16272 "C<minor> and C<release>) are numbers and correspond to the usual version "
16273 "triplet. The fourth element (C<extra>) is a string and is normally empty, "
16274 "but may be used for distro-specific information."
16278 #: ../fish/guestfish-actions.pod:4951 ../src/guestfs-actions.pod:7494
16280 "To construct the original version string: C<$major.$minor.$release$extra>"
16284 #: ../fish/guestfish-actions.pod:4954 ../src/guestfs-actions.pod:7497
16285 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
16289 #: ../fish/guestfish-actions.pod:4956
16291 "I<Note:> Don't use this call to test for availability of features. In "
16292 "enterprise distributions we backport features from later versions into "
16293 "earlier versions, making this an unreliable way to test for features. Use "
16294 "L</available> instead."
16298 #: ../fish/guestfish-actions.pod:4962
16303 #: ../fish/guestfish-actions.pod:4964
16306 " vfs-label device\n"
16309 " vfs-label пристрій\n"
16313 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7517
16314 msgid "This returns the filesystem label of the filesystem on C<device>."
16318 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7520
16319 msgid "If the filesystem is unlabeled, this returns the empty string."
16323 #: ../fish/guestfish-actions.pod:4971
16324 msgid "To find a filesystem from the label, use L</findfs-label>."
16328 #: ../fish/guestfish-actions.pod:4973
16333 #: ../fish/guestfish-actions.pod:4975
16336 " vfs-type device\n"
16339 " vfs-type пристрій\n"
16343 #: ../fish/guestfish-actions.pod:4977 ../src/guestfs-actions.pod:7535
16345 "This command gets the filesystem type corresponding to the filesystem on "
16350 #: ../fish/guestfish-actions.pod:4980 ../src/guestfs-actions.pod:7538
16352 "For most filesystems, the result is the name of the Linux VFS module which "
16353 "would be used to mount this filesystem if you mounted it without specifying "
16354 "the filesystem type. For example a string such as C<ext3> or C<ntfs>."
16358 #: ../fish/guestfish-actions.pod:4985
16363 #: ../fish/guestfish-actions.pod:4987
16366 " vfs-uuid device\n"
16369 " vfs-uuid пристрій\n"
16373 #: ../fish/guestfish-actions.pod:4989 ../src/guestfs-actions.pod:7554
16374 msgid "This returns the filesystem UUID of the filesystem on C<device>."
16378 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7557
16379 msgid "If the filesystem does not have a UUID, this returns the empty string."
16383 #: ../fish/guestfish-actions.pod:4994
16384 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
16388 #: ../fish/guestfish-actions.pod:4996
16389 msgid "vg-activate"
16390 msgstr "vg-activate"
16393 #: ../fish/guestfish-actions.pod:4998
16396 " vg-activate true|false 'volgroups ...'\n"
16401 #: ../fish/guestfish-actions.pod:5000 ../src/guestfs-actions.pod:7573
16403 "This command activates or (if C<activate> is false) deactivates all logical "
16404 "volumes in the listed volume groups C<volgroups>."
16408 #: ../fish/guestfish-actions.pod:5003 ../src/guestfs-actions.pod:7576
16409 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
16413 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7578
16415 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
16416 "activated or deactivated."
16420 #: ../fish/guestfish-actions.pod:5008
16421 msgid "vg-activate-all"
16422 msgstr "vg-activate-all"
16425 #: ../fish/guestfish-actions.pod:5010
16428 " vg-activate-all true|false\n"
16431 " vg-activate-all true|false\n"
16435 #: ../fish/guestfish-actions.pod:5012 ../src/guestfs-actions.pod:7591
16437 "This command activates or (if C<activate> is false) deactivates all logical "
16438 "volumes in all volume groups."
16442 #: ../fish/guestfish-actions.pod:5015 ../src/guestfs-actions.pod:7594
16443 msgid "This command is the same as running C<vgchange -a y|n>"
16447 #: ../fish/guestfish-actions.pod:5017
16452 #: ../fish/guestfish-actions.pod:5019
16455 " vgcreate volgroup 'physvols ...'\n"
16460 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7607
16462 "This creates an LVM volume group called C<volgroup> from the non-empty list "
16463 "of physical volumes C<physvols>."
16467 #: ../fish/guestfish-actions.pod:5024
16472 #: ../fish/guestfish-actions.pod:5026
16475 " vglvuuids vgname\n"
16480 #: ../fish/guestfish-actions.pod:5028 ../src/guestfs-actions.pod:7620
16482 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
16483 "volumes created in this volume group."
16487 #: ../fish/guestfish-actions.pod:5031
16489 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
16490 "logical volumes and volume groups."
16494 #: ../fish/guestfish-actions.pod:5034
16495 msgid "See also L</vgpvuuids>."
16496 msgstr "Див. також L</vgpvuuids>."
16499 #: ../fish/guestfish-actions.pod:5036
16504 #: ../fish/guestfish-actions.pod:5038
16507 " vgpvuuids vgname\n"
16512 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7640
16514 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
16515 "volumes that this volume group resides on."
16519 #: ../fish/guestfish-actions.pod:5043
16521 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
16522 "physical volumes and volume groups."
16526 #: ../fish/guestfish-actions.pod:5046
16527 msgid "See also L</vglvuuids>."
16528 msgstr "Див. також L</vglvuuids>."
16531 #: ../fish/guestfish-actions.pod:5048
16536 #: ../fish/guestfish-actions.pod:5050
16539 " vgremove vgname\n"
16544 #: ../fish/guestfish-actions.pod:5052 ../src/guestfs-actions.pod:7660
16545 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
16549 #: ../fish/guestfish-actions.pod:5054 ../src/guestfs-actions.pod:7662
16551 "This also forcibly removes all logical volumes in the volume group (if any)."
16555 #: ../fish/guestfish-actions.pod:5057
16560 #: ../fish/guestfish-actions.pod:5059
16563 " vgrename volgroup newvolgroup\n"
16568 #: ../fish/guestfish-actions.pod:5061 ../src/guestfs-actions.pod:7676
16569 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
16573 #: ../fish/guestfish-actions.pod:5063
16578 #: ../fish/guestfish-actions.pod:5065
16588 #: ../fish/guestfish-actions.pod:5067 ../src/guestfs-actions.pod:7687
16590 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
16595 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7690
16597 "This returns a list of just the volume group names that were detected (eg. "
16602 #: ../fish/guestfish-actions.pod:5073
16603 msgid "See also L</vgs-full>."
16604 msgstr "Див. також L</vgs-full>."
16607 #: ../fish/guestfish-actions.pod:5075
16612 #: ../fish/guestfish-actions.pod:5077
16622 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7706
16624 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
16625 "> command. The \"full\" version includes all fields."
16629 #: ../fish/guestfish-actions.pod:5082
16634 #: ../fish/guestfish-actions.pod:5084
16644 #: ../fish/guestfish-actions.pod:5086 ../src/guestfs-actions.pod:7720
16646 "This rescans all block devices and rebuilds the list of LVM physical "
16647 "volumes, volume groups and logical volumes."
16651 #: ../fish/guestfish-actions.pod:5089
16656 #: ../fish/guestfish-actions.pod:5091
16664 #: ../fish/guestfish-actions.pod:5093 ../src/guestfs-actions.pod:7733
16665 msgid "This command returns the UUID of the LVM VG named C<vgname>."
16669 #: ../fish/guestfish-actions.pod:5095
16674 #: ../fish/guestfish-actions.pod:5097
16684 #: ../fish/guestfish-actions.pod:5099 ../src/guestfs-actions.pod:7773
16686 "This command counts the characters in a file, using the C<wc -c> external "
16691 #: ../fish/guestfish-actions.pod:5102
16696 #: ../fish/guestfish-actions.pod:5104
16706 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7786
16708 "This command counts the lines in a file, using the C<wc -l> external command."
16712 #: ../fish/guestfish-actions.pod:5109
16717 #: ../fish/guestfish-actions.pod:5111
16727 #: ../fish/guestfish-actions.pod:5113 ../src/guestfs-actions.pod:7799
16729 "This command counts the words in a file, using the C<wc -w> external command."
16733 #: ../fish/guestfish-actions.pod:5116
16738 #: ../fish/guestfish-actions.pod:5118
16741 " write path content\n"
16744 " write шлях дані\n"
16748 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7814
16750 "This call creates a file called C<path>. The content of the file is the "
16751 "string C<content> (which can contain any 8 bit data)."
16755 #: ../fish/guestfish-actions.pod:5123
16756 msgid "See also L</write-append>."
16760 #: ../fish/guestfish-actions.pod:5128
16761 msgid "write-append"
16765 #: ../fish/guestfish-actions.pod:5130
16768 " write-append path content\n"
16773 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:7834
16775 "This call appends C<content> to the end of file C<path>. If C<path> does "
16776 "not exist, then a new file is created."
16780 #: ../fish/guestfish-actions.pod:5135
16781 msgid "See also L</write>."
16785 #: ../fish/guestfish-actions.pod:5140
16787 msgstr "write-file"
16790 #: ../fish/guestfish-actions.pod:5142
16793 " write-file path content size\n"
16798 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7861
16800 "This call creates a file called C<path>. The contents of the file is the "
16801 "string C<content> (which can contain any 8 bit data), with length C<size>."
16805 #: ../fish/guestfish-actions.pod:5148 ../src/guestfs-actions.pod:7865
16807 "As a special case, if C<size> is C<0> then the length is calculated using "
16808 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16812 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7869
16814 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16815 "I<not> work, even if the length is specified."
16819 #: ../fish/guestfish-actions.pod:5158
16821 "I<This function is deprecated.> In new code, use the L</write> call instead."
16825 #: ../fish/guestfish-actions.pod:5165
16830 #: ../fish/guestfish-actions.pod:5167
16833 " zegrep regex path\n"
16836 " zegrep формальний_вираз шлях\n"
16840 #: ../fish/guestfish-actions.pod:5169 ../src/guestfs-actions.pod:7886
16842 "This calls the external C<zegrep> program and returns the matching lines."
16846 #: ../fish/guestfish-actions.pod:5175
16851 #: ../fish/guestfish-actions.pod:5177
16854 " zegrepi regex path\n"
16859 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7905
16861 "This calls the external C<zegrep -i> program and returns the matching lines."
16865 #: ../fish/guestfish-actions.pod:5185
16870 #: ../fish/guestfish-actions.pod:5187
16880 #: ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7923
16881 msgid "This command writes zeroes over the first few blocks of C<device>."
16885 #: ../fish/guestfish-actions.pod:5191 ../src/guestfs-actions.pod:7925
16887 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16888 "securely wipe the device). It should be sufficient to remove any partition "
16889 "tables, filesystem superblocks and so on."
16893 #: ../fish/guestfish-actions.pod:5195 ../fish/guestfish-actions.pod:5210
16894 #: ../src/guestfs-actions.pod:7929 ../src/guestfs-actions.pod:7955
16896 "If blocks are already zero, then this command avoids writing zeroes. This "
16897 "prevents the underlying device from becoming non-sparse or growing "
16902 #: ../fish/guestfish-actions.pod:5199
16903 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16907 #: ../fish/guestfish-actions.pod:5202
16908 msgid "zero-device"
16909 msgstr "zero-device"
16912 #: ../fish/guestfish-actions.pod:5204
16915 " zero-device device\n"
16918 " zero-device пристрій\n"
16922 #: ../fish/guestfish-actions.pod:5206
16924 "This command writes zeroes over the entire C<device>. Compare with L</zero> "
16925 "which just zeroes the first few blocks of a device."
16929 #: ../fish/guestfish-actions.pod:5217
16934 #: ../fish/guestfish-actions.pod:5219
16937 " zerofree device\n"
16940 " zerofree пристрій\n"
16944 #: ../fish/guestfish-actions.pod:5221 ../src/guestfs-actions.pod:7977
16946 "This runs the I<zerofree> program on C<device>. This program claims to zero "
16947 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16948 "possible to compress the filesystem more effectively."
16952 #: ../fish/guestfish-actions.pod:5226 ../src/guestfs-actions.pod:7982
16953 msgid "You should B<not> run this program if the filesystem is mounted."
16957 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:7985
16959 "It is possible that using this program can damage the filesystem or data on "
16964 #: ../fish/guestfish-actions.pod:5232
16969 #: ../fish/guestfish-actions.pod:5234
16972 " zfgrep pattern path\n"
16975 " zfgrep шаблон шлях\n"
16979 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:7999
16981 "This calls the external C<zfgrep> program and returns the matching lines."
16985 #: ../fish/guestfish-actions.pod:5242
16990 #: ../fish/guestfish-actions.pod:5244
16993 " zfgrepi pattern path\n"
16996 " zfgrepi шаблон шлях\n"
17000 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8018
17002 "This calls the external C<zfgrep -i> program and returns the matching lines."
17006 #: ../fish/guestfish-actions.pod:5252
17011 #: ../fish/guestfish-actions.pod:5254
17014 " zfile meth path\n"
17017 " zfile метод шлях\n"
17021 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8044
17023 "This command runs C<file> after first decompressing C<path> using C<method>."
17027 #: ../fish/guestfish-actions.pod:5259 ../src/guestfs-actions.pod:8047
17028 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17032 #: ../fish/guestfish-actions.pod:5261
17034 "Since 1.0.63, use L</file> instead which can now process compressed files."
17038 #: ../fish/guestfish-actions.pod:5264
17040 "I<This function is deprecated.> In new code, use the L</file> call instead."
17044 #: ../fish/guestfish-actions.pod:5271
17049 #: ../fish/guestfish-actions.pod:5273
17052 " zgrep regex path\n"
17055 " zgrep формальний_вираз шлях\n"
17059 #: ../fish/guestfish-actions.pod:5275 ../src/guestfs-actions.pod:8064
17061 "This calls the external C<zgrep> program and returns the matching lines."
17065 #: ../fish/guestfish-actions.pod:5281
17070 #: ../fish/guestfish-actions.pod:5283
17073 " zgrepi regex path\n"
17076 " zgrepi формальний_вираз шлях\n"
17080 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:8083
17082 "This calls the external C<zgrep -i> program and returns the matching lines."
17086 #: ../fish/guestfish-commands.pod:1
17091 #: ../fish/guestfish-commands.pod:3
17096 #: ../fish/guestfish-commands.pod:5
17099 " alloc filename size\n"
17104 #: ../fish/guestfish-commands.pod:7
17106 "This creates an empty (zeroed) file of the given size, and then adds so it "
17107 "can be further examined."
17111 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
17112 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
17116 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
17117 msgid "Size can be specified using standard suffixes, eg. C<1M>."
17121 #: ../fish/guestfish-commands.pod:14
17123 "To create a sparse file, use L</sparse> instead. To create a prepared disk "
17124 "image, see L</PREPARED DISK IMAGES>."
17128 #: ../fish/guestfish-commands.pod:17
17133 #: ../fish/guestfish-commands.pod:19
17136 " copy-in local [local ...] /remotedir\n"
17141 #: ../fish/guestfish-commands.pod:21
17143 "C<copy-in> copies local files or directories recursively into the disk "
17144 "image, placing them in the directory called C</remotedir> (which must "
17145 "exist). This guestfish meta-command turns into a sequence of L</tar-in> and "
17146 "other commands as necessary."
17150 #: ../fish/guestfish-commands.pod:26
17152 "Multiple local files and directories can be specified, but the last "
17153 "parameter must always be a remote directory. Wildcards cannot be used."
17157 #: ../fish/guestfish-commands.pod:30
17162 #: ../fish/guestfish-commands.pod:32
17165 " copy-out remote [remote ...] localdir\n"
17170 #: ../fish/guestfish-commands.pod:34
17172 "C<copy-out> copies remote files or directories recursively out of the disk "
17173 "image, placing them on the host disk in a local directory called C<localdir> "
17174 "(which must exist). This guestfish meta-command turns into a sequence of L</"
17175 "download>, L</tar-out> and other commands as necessary."
17179 #: ../fish/guestfish-commands.pod:40
17181 "Multiple remote files and directories can be specified, but the last "
17182 "parameter must always be a local directory. To download to the current "
17183 "directory, use C<.> as in:"
17187 #: ../fish/guestfish-commands.pod:44
17190 " copy-out /home .\n"
17193 " copy-out /home .\n"
17197 #: ../fish/guestfish-commands.pod:46
17199 "Wildcards cannot be used in the ordinary command, but you can use them with "
17200 "the help of L</glob> like this:"
17204 #: ../fish/guestfish-commands.pod:49
17207 " glob copy-out /home/* .\n"
17210 " glob copy-out /home/* .\n"
17214 #: ../fish/guestfish-commands.pod:51
17219 #: ../fish/guestfish-commands.pod:53
17222 " display filename\n"
17227 #: ../fish/guestfish-commands.pod:55
17229 "Use C<display> (a graphical display program) to display an image file. It "
17230 "downloads the file, and runs C<display> on it."
17234 #: ../fish/guestfish-commands.pod:58
17236 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
17237 "environment variable. For example to use the GNOME display program:"
17241 #: ../fish/guestfish-commands.pod:61
17244 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
17249 #: ../fish/guestfish-commands.pod:63
17250 msgid "See also L<display(1)>."
17254 #: ../fish/guestfish-commands.pod:65
17259 #: ../fish/guestfish-commands.pod:67
17262 " echo [params ...]\n"
17265 " echo [параметри...]\n"
17269 #: ../fish/guestfish-commands.pod:69
17270 msgid "This echos the parameters to the terminal."
17274 #: ../fish/guestfish-commands.pod:71
17279 #: ../fish/guestfish-commands.pod:73
17284 #: ../fish/guestfish-commands.pod:75
17289 #: ../fish/guestfish-commands.pod:77
17295 " edit назва_файла\n"
17299 #: ../fish/guestfish-commands.pod:79
17301 "This is used to edit a file. It downloads the file, edits it locally using "
17302 "your editor, then uploads the result."
17306 #: ../fish/guestfish-commands.pod:82
17308 "The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
17309 "or C<emacs> you will get those corresponding editors."
17313 #: ../fish/guestfish-commands.pod:86
17318 #: ../fish/guestfish-commands.pod:88
17321 " glob command args...\n"
17324 " glob команда параметри...\n"
17328 #: ../fish/guestfish-commands.pod:90
17330 "Expand wildcards in any paths in the args list, and run C<command> "
17331 "repeatedly on each matching path."
17335 #: ../fish/guestfish-commands.pod:93
17336 msgid "See L</WILDCARDS AND GLOBBING>."
17337 msgstr "Див. L</WILDCARDS AND GLOBBING>."
17340 #: ../fish/guestfish-commands.pod:95
17345 #: ../fish/guestfish-commands.pod:97
17348 " hexedit <filename|device>\n"
17349 " hexedit <filename|device> <max>\n"
17350 " hexedit <filename|device> <start> <max>\n"
17355 #: ../fish/guestfish-commands.pod:101
17357 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
17362 #: ../fish/guestfish-commands.pod:104
17364 "This command works by downloading potentially the whole file or device, "
17365 "editing it locally, then uploading it. If the file or device is large, you "
17366 "have to specify which part you wish to edit by using C<max> and/or C<start> "
17367 "C<max> parameters. C<start> and C<max> are specified in bytes, with the "
17368 "usual modifiers allowed such as C<1M> (1 megabyte)."
17372 #: ../fish/guestfish-commands.pod:111
17373 msgid "For example to edit the first few sectors of a disk you might do:"
17377 #: ../fish/guestfish-commands.pod:114
17380 " hexedit /dev/sda 1M\n"
17383 " hexedit /dev/sda 1M\n"
17387 #: ../fish/guestfish-commands.pod:116
17389 "which would allow you to edit anywhere within the first megabyte of the disk."
17393 #: ../fish/guestfish-commands.pod:119
17394 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
17398 #: ../fish/guestfish-commands.pod:121
17401 " hexedit /dev/sda1 0x400 0x400\n"
17404 " hexedit /dev/sda1 0x400 0x400\n"
17408 #: ../fish/guestfish-commands.pod:123
17409 msgid "(assuming the superblock is in the standard location)."
17413 #: ../fish/guestfish-commands.pod:125
17415 "This command requires the external L<hexedit(1)> program. You can specify "
17416 "another program to use by setting the C<HEXEDITOR> environment variable."
17420 #: ../fish/guestfish-commands.pod:129
17421 msgid "See also L</hexdump>."
17422 msgstr "Див. також L</hexdump>."
17425 #: ../fish/guestfish-commands.pod:131
17430 #: ../fish/guestfish-commands.pod:133
17438 #: ../fish/guestfish-commands.pod:135
17440 "Change the local directory, ie. the current directory of guestfish itself."
17444 #: ../fish/guestfish-commands.pod:138
17445 msgid "Note that C<!cd> won't do what you might expect."
17449 #: ../fish/guestfish-commands.pod:140
17454 #: ../fish/guestfish-commands.pod:142
17459 #: ../fish/guestfish-commands.pod:144
17469 #: ../fish/guestfish-commands.pod:146
17470 msgid "Opens the manual page for guestfish."
17474 #: ../fish/guestfish-commands.pod:148
17479 #: ../fish/guestfish-commands.pod:150
17484 #: ../fish/guestfish-commands.pod:152
17492 #: ../fish/guestfish-commands.pod:154
17500 #: ../fish/guestfish-commands.pod:156
17501 msgid "This is used to view a file."
17505 #: ../fish/guestfish-commands.pod:158
17507 "The default viewer is C<$PAGER>. However if you use the alternate command "
17508 "C<less> you will get the C<less> command specifically."
17512 #: ../fish/guestfish-commands.pod:161
17517 #: ../fish/guestfish-commands.pod:163
17525 #: ../fish/guestfish-commands.pod:165
17527 "Close and reopen the libguestfs handle. It is not necessary to use this "
17528 "normally, because the handle is closed properly when guestfish exits. "
17529 "However this is occasionally useful for testing."
17533 #: ../fish/guestfish-commands.pod:169
17538 #: ../fish/guestfish-commands.pod:171
17541 " setenv VAR value\n"
17546 #: ../fish/guestfish-commands.pod:173
17547 msgid "Set the environment variable C<VAR> to the string C<value>."
17551 #: ../fish/guestfish-commands.pod:175
17553 "To print the value of an environment variable use a shell command such as:"
17557 #: ../fish/guestfish-commands.pod:178
17565 #: ../fish/guestfish-commands.pod:180
17570 #: ../fish/guestfish-commands.pod:182
17573 " sparse filename size\n"
17578 #: ../fish/guestfish-commands.pod:184
17580 "This creates an empty sparse file of the given size, and then adds so it can "
17581 "be further examined."
17585 #: ../fish/guestfish-commands.pod:187
17587 "In all respects it works the same as the L</alloc> command, except that the "
17588 "image file is allocated sparsely, which means that disk blocks are not "
17589 "assigned to the file until they are needed. Sparse disk files only use "
17590 "space when written to, but they are slower and there is a danger you could "
17591 "run out of real disk space during a write operation."
17595 #: ../fish/guestfish-commands.pod:197
17600 #: ../fish/guestfish-commands.pod:199
17610 #: ../fish/guestfish-commands.pod:201
17612 "This command returns a list of the optional groups known to the daemon, and "
17613 "indicates which ones are supported by this build of the libguestfs appliance."
17617 #: ../fish/guestfish-commands.pod:205
17618 msgid "See also L<guestfs(3)/AVAILABILITY>."
17622 #: ../fish/guestfish-commands.pod:207
17627 #: ../fish/guestfish-commands.pod:209
17630 " time command args...\n"
17635 #: ../fish/guestfish-commands.pod:211
17637 "Run the command as usual, but print the elapsed time afterwards. This can "
17638 "be useful for benchmarking operations."
17642 #: ../fish/guestfish-commands.pod:214
17647 #: ../fish/guestfish-commands.pod:216
17655 #: ../fish/guestfish-commands.pod:218
17656 msgid "Remove C<VAR> from the environment."
17660 #: ../fish/guestfish.pod:5
17661 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
17665 #: ../fish/guestfish.pod:9
17668 " guestfish [--options] [commands]\n"
17673 #: ../fish/guestfish.pod:11
17681 #: ../fish/guestfish.pod:13
17684 " guestfish [--ro|--rw] -a disk.img\n"
17689 #: ../fish/guestfish.pod:15
17692 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
17697 #: ../fish/guestfish.pod:17
17700 " guestfish -d libvirt-domain\n"
17705 #: ../fish/guestfish.pod:19
17708 " guestfish [--ro|--rw] -a disk.img -i\n"
17713 #: ../fish/guestfish.pod:21
17716 " guestfish -d libvirt-domain -i\n"
17721 #: ../fish/guestfish.pod:25
17723 "Using guestfish in read/write mode on live virtual machines can be "
17724 "dangerous, potentially causing disk corruption. Use the I<--ro> (read-only) "
17725 "option to use guestfish safely if the disk image or virtual machine might be "
17730 #: ../fish/guestfish.pod:32
17732 "Guestfish is a shell and command-line tool for examining and modifying "
17733 "virtual machine filesystems. It uses libguestfs and exposes all of the "
17734 "functionality of the guestfs API, see L<guestfs(3)>."
17738 #: ../fish/guestfish.pod:36
17740 "Guestfish gives you structured access to the libguestfs API, from shell "
17741 "scripts or the command line or interactively. If you want to rescue a "
17742 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
17747 #: ../fish/guestfish.pod:43
17748 msgid "As an interactive shell"
17752 #: ../fish/guestfish.pod:45
17760 #: ../fish/guestfish.pod:47
17763 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17764 " editing virtual machine filesystems.\n"
17769 #: ../fish/guestfish.pod:50
17772 " Type: 'help' for a list of commands\n"
17773 " 'man' to read the manual\n"
17774 " 'quit' to quit the shell\n"
17779 #: ../fish/guestfish.pod:54
17782 " ><fs> add-ro disk.img\n"
17784 " ><fs> list-filesystems\n"
17785 " /dev/sda1: ext4\n"
17786 " /dev/vg_guest/lv_root: ext4\n"
17787 " /dev/vg_guest/lv_swap: swap\n"
17788 " ><fs> mount /dev/vg_guest/lv_root /\n"
17789 " ><fs> cat /etc/fstab\n"
17791 " # Created by anaconda\n"
17798 #: ../fish/guestfish.pod:67
17799 msgid "From shell scripts"
17803 #: ../fish/guestfish.pod:69
17804 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17808 #: ../fish/guestfish.pod:71
17811 " guestfish <<_EOF_\n"
17814 " mount /dev/vg_guest/lv_root /\n"
17815 " write /etc/motd \"Welcome, new users\"\n"
17821 #: ../fish/guestfish.pod:78
17822 msgid "List the LVM logical volumes in a disk image:"
17826 #: ../fish/guestfish.pod:80
17829 " guestfish -a disk.img --ro <<_EOF_\n"
17837 #: ../fish/guestfish.pod:85
17838 msgid "List all the filesystems in a disk image:"
17842 #: ../fish/guestfish.pod:87
17845 " guestfish -a disk.img --ro <<_EOF_\n"
17847 " list-filesystems\n"
17853 #: ../fish/guestfish.pod:92
17854 msgid "On one command line"
17858 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17859 msgid "Update C</etc/resolv.conf> in a guest:"
17863 #: ../fish/guestfish.pod:96
17867 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17868 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17873 #: ../fish/guestfish.pod:100
17874 msgid "Edit C</boot/grub/grub.conf> interactively:"
17878 #: ../fish/guestfish.pod:102
17881 " guestfish --rw --add disk.img \\\n"
17882 " --mount /dev/vg_guest/lv_root \\\n"
17883 " --mount /dev/sda1:/boot \\\n"
17884 " edit /boot/grub/grub.conf\n"
17889 #: ../fish/guestfish.pod:107
17890 msgid "Mount disks automatically"
17894 #: ../fish/guestfish.pod:109
17896 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17900 #: ../fish/guestfish.pod:112
17903 " guestfish --ro -a disk.img -i cat /etc/group\n"
17908 #: ../fish/guestfish.pod:114
17911 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17916 #: ../fish/guestfish.pod:116
17917 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17921 #: ../fish/guestfish.pod:118
17924 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17929 #: ../fish/guestfish.pod:120
17930 msgid "As a script interpreter"
17934 #: ../fish/guestfish.pod:122
17935 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17939 #: ../fish/guestfish.pod:124
17942 " #!/usr/bin/guestfish -f\n"
17943 " sparse test1.img 100M\n"
17945 " part-disk /dev/sda mbr\n"
17946 " mkfs ext2 /dev/sda1\n"
17951 #: ../fish/guestfish.pod:130
17952 msgid "Start with a prepared disk"
17956 #: ../fish/guestfish.pod:132
17958 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17959 "single ext2-formatted partition:"
17963 #: ../fish/guestfish.pod:135
17966 " guestfish -N fs\n"
17971 #: ../fish/guestfish.pod:137
17972 msgid "To list what is available do:"
17976 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
17979 " guestfish -N help | less\n"
17984 #: ../fish/guestfish.pod:141
17985 msgid "Remote control"
17986 msgstr "Дистанційне керування"
17989 #: ../fish/guestfish.pod:143
17992 " eval \"`guestfish --listen`\"\n"
17993 " guestfish --remote add-ro disk.img\n"
17994 " guestfish --remote run\n"
17995 " guestfish --remote lvs\n"
17998 " eval \"`guestfish --listen`\"\n"
17999 " guestfish --remote add-ro disk.img\n"
18000 " guestfish --remote run\n"
18001 " guestfish --remote lvs\n"
18005 #: ../fish/guestfish.pod:154
18006 msgid "Displays general help on options."
18010 #: ../fish/guestfish.pod:158
18011 msgid "B<--cmd-help>"
18012 msgstr "B<--cmd-help>"
18015 #: ../fish/guestfish.pod:160
18016 msgid "Lists all available guestfish commands."
18020 #: ../fish/guestfish.pod:162
18022 msgstr "B<-h команда>"
18025 #: ../fish/guestfish.pod:164
18026 msgid "B<--cmd-help cmd>"
18027 msgstr "B<--cmd-help команда>"
18030 #: ../fish/guestfish.pod:166
18031 msgid "Displays detailed help on a single command C<cmd>."
18035 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
18036 msgid "B<-a image>"
18037 msgstr "B<-a образ>"
18040 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
18041 msgid "B<--add image>"
18042 msgstr "B<--add образ>"
18045 #: ../fish/guestfish.pod:172
18046 msgid "Add a block device or virtual machine image to the shell."
18050 #: ../fish/guestfish.pod:177
18052 "Using this flag is mostly equivalent to using the C<add> command, with "
18053 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18054 "the I<--format=...> flag was given."
18058 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
18060 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18061 "URI to use. The default is to use the default libvirt connection."
18065 #: ../fish/guestfish.pod:189
18070 #: ../fish/guestfish.pod:191
18072 "If using the I<--listen> option and a csh-like shell, use this option. See "
18073 "section L</REMOTE CONTROL AND CSH> below."
18077 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
18078 msgid "B<-d libvirt-domain>"
18079 msgstr "B<-d домен-libvirt>"
18082 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
18083 msgid "B<--domain libvirt-domain>"
18084 msgstr "B<--domain домен-libvirt>"
18087 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
18089 "Add disks from the named libvirt domain. If the I<--ro> option is also "
18090 "used, then any libvirt domain can be used. However in write mode, only "
18091 "libvirt domains which are shut down can be named here."
18095 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
18096 msgid "Domain UUIDs can be used instead of names."
18100 #: ../fish/guestfish.pod:204
18102 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18103 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18104 "if the I<--format:...> flag was given."
18108 #: ../fish/guestfish.pod:208
18113 #: ../fish/guestfish.pod:210
18114 msgid "B<--no-dest-paths>"
18115 msgstr "B<--no-dest-paths>"
18118 #: ../fish/guestfish.pod:212
18120 "Don't tab-complete paths on the guest filesystem. It is useful to be able "
18121 "to hit the tab key to complete paths on the guest filesystem, but this "
18122 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18123 "allow this feature to be disabled."
18127 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
18129 "When prompting for keys and passphrases, guestfish normally turns echoing "
18130 "off so you cannot see what you are typing. If you are not worried about "
18131 "Tempest attacks and there is no one else in the room you can specify this "
18132 "flag to see what you are typing."
18136 #: ../fish/guestfish.pod:224
18138 msgstr "B<-f файл>"
18141 #: ../fish/guestfish.pod:226
18142 msgid "B<--file file>"
18143 msgstr "B<--file файл>"
18146 #: ../fish/guestfish.pod:228
18147 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
18151 #: ../fish/guestfish.pod:231
18154 " #!/usr/bin/guestfish -f\n"
18157 " #!/usr/bin/guestfish -f\n"
18161 #: ../fish/guestfish.pod:244
18164 " guestfish --format=raw -a disk.img\n"
18167 " guestfish --format=raw -a disk.img\n"
18171 #: ../fish/guestfish.pod:248
18174 " guestfish --format=raw -a disk.img --format -a another.img\n"
18177 " guestfish --format=raw -a disk.img --format -a another.img\n"
18181 #: ../fish/guestfish.pod:253
18183 "If you have untrusted raw-format guest disk images, you should use this "
18184 "option to specify the disk format. This avoids a possible security problem "
18185 "with malicious guests (CVE-2010-3851). See also L</add-drive-opts>."
18189 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
18190 msgid "B<--inspector>"
18191 msgstr "B<--inspector>"
18194 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
18196 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
18197 "system and mount filesystems as they would be mounted on the real virtual "
18202 #: ../fish/guestfish.pod:266
18203 msgid "Typical usage is either:"
18207 #: ../fish/guestfish.pod:268
18210 " guestfish -d myguest -i\n"
18213 " guestfish -d myguest -i\n"
18217 #: ../fish/guestfish.pod:270
18218 msgid "(for an inactive libvirt domain called I<myguest>), or:"
18222 #: ../fish/guestfish.pod:272
18225 " guestfish --ro -d myguest -i\n"
18228 " guestfish --ro -d myguest -i\n"
18232 #: ../fish/guestfish.pod:274
18233 msgid "(for active domains, readonly), or specify the block device directly:"
18237 #: ../fish/guestfish.pod:276
18240 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18243 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18247 #: ../fish/guestfish.pod:278
18249 "Note that the command line syntax changed slightly over older versions of "
18250 "guestfish. You can still use the old syntax:"
18254 #: ../fish/guestfish.pod:281
18257 " guestfish [--ro] -i disk.img\n"
18260 " guestfish [--ro] -i disk.img\n"
18264 #: ../fish/guestfish.pod:283
18267 " guestfish [--ro] -i libvirt-domain\n"
18272 #: ../fish/guestfish.pod:285
18274 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
18275 "then using other commands to mount the filesystems that were found."
18279 #: ../fish/guestfish.pod:294
18280 msgid "B<--listen>"
18281 msgstr "B<--listen>"
18284 #: ../fish/guestfish.pod:296
18286 "Fork into the background and listen for remote commands. See section L</"
18287 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
18291 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
18296 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
18298 "Connect to a live virtual machine. (Experimental, see L<guestfs(3)/"
18299 "ATTACHING TO RUNNING DAEMONS>)."
18303 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
18304 msgid "B<-m dev[:mountpoint[:options]]>"
18308 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
18309 msgid "B<--mount dev[:mountpoint[:options]]>"
18313 #: ../fish/guestfish.pod:308
18314 msgid "Mount the named partition or logical volume on the given mountpoint."
18318 #: ../fish/guestfish.pod:310
18319 msgid "If the mountpoint is omitted, it defaults to C</>."
18323 #: ../fish/guestfish.pod:312
18324 msgid "You have to mount something on C</> before most commands will work."
18328 #: ../fish/guestfish.pod:314
18330 "If any I<-m> or I<--mount> options are given, the guest is automatically "
18335 #: ../fish/guestfish.pod:317
18337 "If you don't know what filesystems a disk image contains, you can either run "
18338 "guestfish without this option, then list the partitions, filesystems and LVs "
18339 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
18340 "commands), or you can use the L<virt-filesystems(1)> program."
18344 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
18346 "The third (and rarely used) part of the mount parameter is the list of mount "
18347 "options used to mount the underlying filesystem. If this is not given, then "
18348 "the mount options are either the empty string or C<ro> (the latter if the "
18349 "I<--ro> flag is used). By specifying the mount options, you override this "
18350 "default choice. Probably the only time you would use this is to enable ACLs "
18351 "and/or extended attributes if the filesystem can support them:"
18355 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
18358 " -m /dev/sda1:/:acl,user_xattr\n"
18363 #: ../fish/guestfish.pod:333
18364 msgid "Using this flag is equivalent to using the C<mount-options> command."
18368 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
18369 #: ../resize/virt-resize.pod:358
18374 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
18375 msgid "B<--no-sync>"
18376 msgstr "B<--no-sync>"
18379 #: ../fish/guestfish.pod:339
18381 "Disable autosync. This is enabled by default. See the discussion of "
18382 "autosync in the L<guestfs(3)> manpage."
18386 #: ../fish/guestfish.pod:342
18391 #: ../fish/guestfish.pod:344
18392 msgid "B<--new type>"
18393 msgstr "B<--new тип>"
18396 #: ../fish/guestfish.pod:346
18398 msgstr "B<-N help>"
18401 #: ../fish/guestfish.pod:348
18403 "Prepare a fresh disk image formatted as \"type\". This is an alternative to "
18404 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
18405 "preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
18410 #: ../fish/guestfish.pod:353
18411 msgid "B<--progress-bars>"
18412 msgstr "B<--progress-bars>"
18415 #: ../fish/guestfish.pod:355
18416 msgid "Enable progress bars, even when guestfish is used non-interactively."
18420 #: ../fish/guestfish.pod:357
18422 "Progress bars are enabled by default when guestfish is used as an "
18423 "interactive shell."
18427 #: ../fish/guestfish.pod:360
18428 msgid "B<--no-progress-bars>"
18429 msgstr "B<--no-progress-bars>"
18432 #: ../fish/guestfish.pod:362
18433 msgid "Disable progress bars."
18437 #: ../fish/guestfish.pod:364
18438 msgid "B<--remote[=pid]>"
18439 msgstr "B<--remote[=pid]>"
18442 #: ../fish/guestfish.pod:366
18444 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
18445 "CONTROL GUESTFISH OVER A SOCKET> below."
18449 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
18450 #: ../rescue/virt-rescue.pod:161
18455 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
18456 #: ../rescue/virt-rescue.pod:163
18461 #: ../fish/guestfish.pod:373
18463 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18464 "mounts are done read-only."
18468 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
18470 "The option must always be used if the disk image or virtual machine might be "
18471 "running, and is generally recommended in cases where you don't need write "
18472 "access to the disk."
18476 #: ../fish/guestfish.pod:380
18478 "Note that prepared disk images created with I<-N> are not affected by this "
18479 "option. Also commands like C<add> are not affected - you have to specify "
18480 "the C<readonly:true> option explicitly if you need it."
18484 #: ../fish/guestfish.pod:384
18485 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
18489 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
18490 #: ../rescue/virt-rescue.pod:173
18491 msgid "B<--selinux>"
18492 msgstr "B<--selinux>"
18495 #: ../fish/guestfish.pod:388
18496 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
18500 #: ../fish/guestfish.pod:394
18502 "Enable very verbose messages. This is particularly useful if you find a bug."
18506 #: ../fish/guestfish.pod:401
18507 msgid "Display the guestfish / libguestfs version number and exit."
18511 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
18512 #: ../rescue/virt-rescue.pod:194
18517 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
18518 #: ../rescue/virt-rescue.pod:196
18523 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
18525 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18526 "mounts are done read-write."
18530 #: ../fish/guestfish.pod:410
18531 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
18535 #: ../fish/guestfish.pod:414
18536 msgid "Echo each command before executing it."
18540 #: ../fish/guestfish.pod:418
18541 msgid "COMMANDS ON COMMAND LINE"
18545 #: ../fish/guestfish.pod:420
18547 "Any additional (non-option) arguments are treated as commands to execute."
18551 #: ../fish/guestfish.pod:423
18553 "Commands to execute should be separated by a colon (C<:>), where the colon "
18554 "is a separate parameter. Thus:"
18558 #: ../fish/guestfish.pod:426
18561 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18566 #: ../fish/guestfish.pod:428
18568 "If there are no additional arguments, then we enter a shell, either an "
18569 "interactive shell with a prompt (if the input is a terminal) or a non-"
18570 "interactive shell."
18574 #: ../fish/guestfish.pod:432
18576 "In either command line mode or non-interactive shell, the first command that "
18577 "gives an error causes the whole shell to exit. In interactive mode (with a "
18578 "prompt) if a command fails, you can continue to enter commands."
18582 #: ../fish/guestfish.pod:437
18583 msgid "USING launch (OR run)"
18587 #: ../fish/guestfish.pod:439
18589 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18590 "then launch it, then mount any disks you need, and finally issue actions/"
18591 "commands. So the general order of the day is:"
18595 #: ../fish/guestfish.pod:447
18596 msgid "add or -a/--add"
18600 #: ../fish/guestfish.pod:451
18601 msgid "launch (aka run)"
18605 #: ../fish/guestfish.pod:455
18606 msgid "mount or -m/--mount"
18610 #: ../fish/guestfish.pod:459
18611 msgid "any other commands"
18615 #: ../fish/guestfish.pod:463
18617 "C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
18618 "guest before mounting or performing any other commands."
18622 #: ../fish/guestfish.pod:466
18624 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
18625 "I<--new> options were given then C<run> is done automatically, simply "
18626 "because guestfish can't perform the action you asked for without doing this."
18630 #: ../fish/guestfish.pod:471
18631 msgid "OPENING DISKS FOR READ AND WRITE"
18635 #: ../fish/guestfish.pod:473
18637 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
18638 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
18639 "I<-i> and I<-m> open disk images read-only or for writing."
18643 #: ../fish/guestfish.pod:478
18645 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
18646 "opening disk images supplied on the command line for write. To open a disk "
18647 "image read-only you have to do I<-a image --ro>."
18651 #: ../fish/guestfish.pod:482
18653 "This matters: If you accidentally open a live VM disk image writable then "
18654 "you will cause irreversible disk corruption."
18658 #: ../fish/guestfish.pod:485
18660 "In a future libguestfs we intend to change the default the other way. Disk "
18661 "images will be opened read-only. You will have to either specify "
18662 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
18663 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
18664 "access for disk images specified by those other command line options."
18668 #: ../fish/guestfish.pod:492
18670 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
18671 "which does nothing (it is already the default). However it is highly "
18672 "recommended that you use this option to indicate that you need write access, "
18673 "and prepare your scripts for the day when this option will be required for "
18678 #: ../fish/guestfish.pod:498
18680 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
18681 "other libguestfs program apart from guestfish and guestmount."
18685 #: ../fish/guestfish.pod:501
18690 #: ../fish/guestfish.pod:503
18692 "You can quote ordinary parameters using either single or double quotes. For "
18697 #: ../fish/guestfish.pod:506
18700 " add \"file with a space.img\"\n"
18705 #: ../fish/guestfish.pod:508
18708 " rm '/file name'\n"
18713 #: ../fish/guestfish.pod:510
18721 #: ../fish/guestfish.pod:512
18723 "A few commands require a list of strings to be passed. For these, use a "
18724 "whitespace-separated list, enclosed in quotes. Strings containing "
18725 "whitespace to be passed through must be enclosed in single quotes. A "
18726 "literal single quote must be escaped with a backslash."
18730 #: ../fish/guestfish.pod:517
18733 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
18734 " command \"/bin/echo 'foo bar'\"\n"
18735 " command \"/bin/echo \\'foo\\'\"\n"
18740 #: ../fish/guestfish.pod:521
18741 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
18745 #: ../fish/guestfish.pod:523
18747 "In double-quoted arguments (only) use backslash to insert special characters:"
18751 #: ../fish/guestfish.pod:528
18756 #: ../fish/guestfish.pod:530
18757 msgid "Alert (bell) character."
18761 #: ../fish/guestfish.pod:532
18766 #: ../fish/guestfish.pod:534
18767 msgid "Backspace character."
18771 #: ../fish/guestfish.pod:536
18776 #: ../fish/guestfish.pod:538
18777 msgid "Form feed character."
18781 #: ../fish/guestfish.pod:540
18786 #: ../fish/guestfish.pod:542
18787 msgid "Newline character."
18791 #: ../fish/guestfish.pod:544
18796 #: ../fish/guestfish.pod:546
18797 msgid "Carriage return character."
18801 #: ../fish/guestfish.pod:548
18806 #: ../fish/guestfish.pod:550
18807 msgid "Horizontal tab character."
18811 #: ../fish/guestfish.pod:552
18816 #: ../fish/guestfish.pod:554
18817 msgid "Vertical tab character."
18821 #: ../fish/guestfish.pod:556
18826 #: ../fish/guestfish.pod:558
18827 msgid "A literal double quote character."
18831 #: ../fish/guestfish.pod:560
18836 #: ../fish/guestfish.pod:562
18838 "A character with octal value I<ooo>. There must be precisely 3 octal digits "
18843 #: ../fish/guestfish.pod:565
18848 #: ../fish/guestfish.pod:567
18850 "A character with hex value I<hh>. There must be precisely 2 hex digits."
18854 #: ../fish/guestfish.pod:570
18856 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18861 #: ../fish/guestfish.pod:573
18866 #: ../fish/guestfish.pod:575
18867 msgid "A literal backslash character."
18871 #: ../fish/guestfish.pod:579
18872 msgid "OPTIONAL ARGUMENTS"
18876 #: ../fish/guestfish.pod:581
18878 "Some commands take optional arguments. These arguments appear in this "
18879 "documentation as C<[argname:..]>. You can use them as in these examples:"
18883 #: ../fish/guestfish.pod:585
18886 " add-drive-opts filename\n"
18891 #: ../fish/guestfish.pod:587
18894 " add-drive-opts filename readonly:true\n"
18899 #: ../fish/guestfish.pod:589
18902 " add-drive-opts filename format:qcow2 readonly:false\n"
18907 #: ../fish/guestfish.pod:591
18909 "Each optional argument can appear at most once. All optional arguments must "
18910 "appear after the required ones."
18914 #: ../fish/guestfish.pod:594
18919 #: ../fish/guestfish.pod:596
18921 "This section applies to all commands which can take integers as parameters."
18925 #: ../fish/guestfish.pod:599
18926 msgid "SIZE SUFFIX"
18930 #: ../fish/guestfish.pod:601
18932 "When the command takes a parameter measured in bytes, you can use one of the "
18933 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18937 #: ../fish/guestfish.pod:607
18938 msgid "B<k> or B<K> or B<KiB>"
18939 msgstr "B<k>, B<K> або B<KiB>"
18942 #: ../fish/guestfish.pod:609
18943 msgid "The size in kilobytes (multiplied by 1024)."
18947 #: ../fish/guestfish.pod:611
18952 #: ../fish/guestfish.pod:613
18953 msgid "The size in SI 1000 byte units."
18957 #: ../fish/guestfish.pod:615
18958 msgid "B<M> or B<MiB>"
18959 msgstr "B<M> або B<MiB>"
18962 #: ../fish/guestfish.pod:617
18963 msgid "The size in megabytes (multiplied by 1048576)."
18967 #: ../fish/guestfish.pod:619
18972 #: ../fish/guestfish.pod:621
18973 msgid "The size in SI 1000000 byte units."
18977 #: ../fish/guestfish.pod:623
18978 msgid "B<G> or B<GiB>"
18979 msgstr "B<G> або B<GiB>"
18982 #: ../fish/guestfish.pod:625
18983 msgid "The size in gigabytes (multiplied by 2**30)."
18984 msgstr "Розмір у гігабайтах (з множником 2**30)."
18987 #: ../fish/guestfish.pod:627
18992 #: ../fish/guestfish.pod:629
18993 msgid "The size in SI 10**9 byte units."
18994 msgstr "Розмір у одиницях СІ: 10**9 байтів."
18997 #: ../fish/guestfish.pod:631
18998 msgid "B<T> or B<TiB>"
18999 msgstr "B<T> або B<TiB>"
19002 #: ../fish/guestfish.pod:633
19003 msgid "The size in terabytes (multiplied by 2**40)."
19004 msgstr "Розмір у терабайтах (з множником 2**40)."
19007 #: ../fish/guestfish.pod:635
19012 #: ../fish/guestfish.pod:637
19013 msgid "The size in SI 10**12 byte units."
19017 #: ../fish/guestfish.pod:639
19018 msgid "B<P> or B<PiB>"
19019 msgstr "B<P> або B<PiB>"
19022 #: ../fish/guestfish.pod:641
19023 msgid "The size in petabytes (multiplied by 2**50)."
19027 #: ../fish/guestfish.pod:643
19032 #: ../fish/guestfish.pod:645
19033 msgid "The size in SI 10**15 byte units."
19037 #: ../fish/guestfish.pod:647
19038 msgid "B<E> or B<EiB>"
19039 msgstr "B<E> або B<EiB>"
19042 #: ../fish/guestfish.pod:649
19043 msgid "The size in exabytes (multiplied by 2**60)."
19047 #: ../fish/guestfish.pod:651
19052 #: ../fish/guestfish.pod:653
19053 msgid "The size in SI 10**18 byte units."
19057 #: ../fish/guestfish.pod:655
19058 msgid "B<Z> or B<ZiB>"
19059 msgstr "B<Z> або B<ZiB>"
19062 #: ../fish/guestfish.pod:657
19063 msgid "The size in zettabytes (multiplied by 2**70)."
19067 #: ../fish/guestfish.pod:659
19072 #: ../fish/guestfish.pod:661
19073 msgid "The size in SI 10**21 byte units."
19077 #: ../fish/guestfish.pod:663
19078 msgid "B<Y> or B<YiB>"
19079 msgstr "B<Y> або B<YiB>"
19082 #: ../fish/guestfish.pod:665
19083 msgid "The size in yottabytes (multiplied by 2**80)."
19087 #: ../fish/guestfish.pod:667
19092 #: ../fish/guestfish.pod:669
19093 msgid "The size in SI 10**24 byte units."
19097 #: ../fish/guestfish.pod:675
19100 " truncate-size /file 1G\n"
19105 #: ../fish/guestfish.pod:677
19106 msgid "would truncate the file to 1 gigabyte."
19110 #: ../fish/guestfish.pod:679
19112 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
19113 "the parameter to L</memsize> is specified in megabytes already). Adding a "
19114 "suffix will probably not do what you expect."
19118 #: ../fish/guestfish.pod:683
19119 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19123 #: ../fish/guestfish.pod:685
19125 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19126 "octal number or C<0x> to prefix a hexadecimal number. For example:"
19130 #: ../fish/guestfish.pod:688
19133 " 1234 decimal number 1234\n"
19134 " 02322 octal number, equivalent to decimal 1234\n"
19135 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
19140 #: ../fish/guestfish.pod:692
19142 "When using the C<chmod> command, you almost always want to specify an octal "
19143 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19144 "L<chmod(1)> program):"
19148 #: ../fish/guestfish.pod:696
19151 " chmod 0777 /public # OK\n"
19152 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
19157 #: ../fish/guestfish.pod:699
19159 "Commands that return numbers usually print them in decimal, but some "
19160 "commands print numbers in other radices (eg. C<umask> prints the mode in "
19161 "octal, preceeded by C<0>)."
19165 #: ../fish/guestfish.pod:703
19166 msgid "WILDCARDS AND GLOBBING"
19170 #: ../fish/guestfish.pod:705
19172 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
19173 "(globbing) by default. So for example the following will not do what you "
19178 #: ../fish/guestfish.pod:709
19186 #: ../fish/guestfish.pod:711
19188 "Assuming you don't have a directory called literally C</home/*> then the "
19189 "above command will return an error."
19193 #: ../fish/guestfish.pod:714
19194 msgid "To perform wildcard expansion, use the C<glob> command."
19198 #: ../fish/guestfish.pod:716
19201 " glob rm-rf /home/*\n"
19206 #: ../fish/guestfish.pod:718
19208 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
19209 "many times), equivalent to:"
19213 #: ../fish/guestfish.pod:721
19216 " rm-rf /home/jim\n"
19217 " rm-rf /home/joe\n"
19218 " rm-rf /home/mary\n"
19223 #: ../fish/guestfish.pod:725
19224 msgid "C<glob> only works on simple guest paths and not on device names."
19228 #: ../fish/guestfish.pod:727
19230 "If you have several parameters, each containing a wildcard, then glob will "
19231 "perform a Cartesian product."
19235 #: ../fish/guestfish.pod:730
19240 #: ../fish/guestfish.pod:732
19242 "Any line which starts with a I<#> character is treated as a comment and "
19243 "ignored. The I<#> can optionally be preceeded by whitespace, but B<not> by "
19244 "a command. For example:"
19248 #: ../fish/guestfish.pod:736
19251 " # this is a comment\n"
19252 " # this is a comment\n"
19253 " foo # NOT a comment\n"
19258 #: ../fish/guestfish.pod:740
19259 msgid "Blank lines are also ignored."
19263 #: ../fish/guestfish.pod:742
19264 msgid "RUNNING COMMANDS LOCALLY"
19268 #: ../fish/guestfish.pod:744
19270 "Any line which starts with a I<!> character is treated as a command sent to "
19271 "the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
19275 #: ../fish/guestfish.pod:748
19279 " tgz-out /remote local/remote-data.tar.gz\n"
19284 #: ../fish/guestfish.pod:751
19286 "will create a directory C<local> on the host, and then export the contents "
19287 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
19288 "(See C<tgz-out>)."
19292 #: ../fish/guestfish.pod:755
19294 "To change the local directory, use the C<lcd> command. C<!cd> will have no "
19295 "effect, due to the way that subprocesses work in Unix."
19299 #: ../fish/guestfish.pod:758
19300 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
19304 #: ../fish/guestfish.pod:760
19306 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
19307 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
19308 "and executed as guestfish commands."
19312 #: ../fish/guestfish.pod:764
19314 "Thus you can use shell script to construct arbitrary guestfish commands "
19315 "which are then parsed by guestfish."
19319 #: ../fish/guestfish.pod:767
19321 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
19322 "through C</foo.100>) using guestfish commands alone. However this is simple "
19323 "if we use a shell script to create the guestfish commands for us:"
19327 #: ../fish/guestfish.pod:772
19330 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
19335 #: ../fish/guestfish.pod:774
19336 msgid "or with names like C</foo.001>:"
19340 #: ../fish/guestfish.pod:776
19343 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
19348 #: ../fish/guestfish.pod:778
19350 "When using guestfish interactively it can be helpful to just run the shell "
19351 "script first (ie. remove the initial C<E<lt>> character so it is just an "
19352 "ordinary I<!> local command), see what guestfish commands it would run, and "
19353 "when you are happy with those prepend the C<E<lt>> character to run the "
19354 "guestfish commands for real."
19358 #: ../fish/guestfish.pod:784
19363 #: ../fish/guestfish.pod:786
19365 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
19366 "command (a guestfish command) to the second command (any host command). For "
19371 #: ../fish/guestfish.pod:790
19374 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
19379 #: ../fish/guestfish.pod:792
19381 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
19382 "program). The above command would list all accounts in the guest filesystem "
19383 "which have UID 0, ie. root accounts including backdoors. Other examples:"
19387 #: ../fish/guestfish.pod:797
19390 " hexdump /bin/ls | head\n"
19391 " list-devices | tail -1\n"
19392 " tgz-out / - | tar ztf -\n"
19397 #: ../fish/guestfish.pod:801
19399 "The space before the pipe symbol is required, any space after the pipe "
19400 "symbol is optional. Everything after the pipe symbol is just passed "
19401 "straight to the host shell, so it can contain redirections, globs and "
19402 "anything else that makes sense on the host side."
19406 #: ../fish/guestfish.pod:806
19408 "To use a literal argument which begins with a pipe symbol, you have to quote "
19413 #: ../fish/guestfish.pod:809
19421 #: ../fish/guestfish.pod:811
19422 msgid "HOME DIRECTORIES"
19426 #: ../fish/guestfish.pod:813
19428 "If a parameter starts with the character C<~> then the tilde may be expanded "
19429 "as a home directory path (either C<~> for the current user's home directory, "
19430 "or C<~user> for another user)."
19434 #: ../fish/guestfish.pod:817
19436 "Note that home directory expansion happens for users known I<on the host>, "
19437 "not in the guest filesystem."
19441 #: ../fish/guestfish.pod:820
19443 "To use a literal argument which begins with a tilde, you have to quote it, "
19448 #: ../fish/guestfish.pod:823
19456 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
19457 msgid "ENCRYPTED DISKS"
19458 msgstr "ЗАШИФРОВАНІ ДИСКИ"
19461 #: ../fish/guestfish.pod:827
19463 "Libguestfs has some support for Linux guests encrypted according to the "
19464 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
19465 "disk encryption systems used by modern Linux guests. Currently only LVM-on-"
19466 "LUKS is supported."
19470 #: ../fish/guestfish.pod:832
19471 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
19475 #: ../fish/guestfish.pod:834
19478 " ><fs> vfs-type /dev/sda2\n"
19484 #: ../fish/guestfish.pod:837
19486 "Then open those devices using L</luks-open>. This creates a device-mapper "
19487 "device called C</dev/mapper/luksdev>."
19491 #: ../fish/guestfish.pod:840
19494 " ><fs> luks-open /dev/sda2 luksdev\n"
19495 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
19500 #: ../fish/guestfish.pod:843
19502 "Finally you have to tell LVM to scan for volume groups on the newly created "
19507 #: ../fish/guestfish.pod:846
19511 " vg-activate-all true\n"
19516 #: ../fish/guestfish.pod:849
19517 msgid "The logical volume(s) can now be mounted in the usual way."
19521 #: ../fish/guestfish.pod:851
19523 "Before closing a LUKS device you must unmount any logical volumes on it and "
19524 "deactivate the volume groups by calling C<vg-activate false VG> on each "
19525 "one. Then you can close the mapper device:"
19529 #: ../fish/guestfish.pod:855
19532 " vg-activate false /dev/VG\n"
19533 " luks-close /dev/mapper/luksdev\n"
19538 #: ../fish/guestfish.pod:860
19540 "If a path is prefixed with C<win:> then you can use Windows-style drive "
19541 "letters and paths (with some limitations). The following commands are "
19546 #: ../fish/guestfish.pod:864
19549 " file /WINDOWS/system32/config/system.LOG\n"
19554 #: ../fish/guestfish.pod:866
19557 " file win:\\windows\\system32\\config\\system.log\n"
19562 #: ../fish/guestfish.pod:868
19565 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
19570 #: ../fish/guestfish.pod:870
19572 "The parameter is rewritten \"behind the scenes\" by looking up the position "
19573 "where the drive is mounted, prepending that to the path, changing all "
19574 "backslash characters to forward slash, then resolving the result using L</"
19575 "case-sensitive-path>. For example if the E: drive was mounted on C</e> then "
19576 "the parameter might be rewritten like this:"
19580 #: ../fish/guestfish.pod:876
19583 " win:e:\\foo\\bar => /e/FOO/bar\n"
19588 #: ../fish/guestfish.pod:878
19589 msgid "This only works in argument positions that expect a path."
19593 #: ../fish/guestfish.pod:880
19594 msgid "UPLOADING AND DOWNLOADING FILES"
19598 #: ../fish/guestfish.pod:882
19600 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
19601 "others which upload from or download to a local file, you can use the "
19602 "special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
19606 #: ../fish/guestfish.pod:886
19614 #: ../fish/guestfish.pod:888
19616 "reads stdin and creates from that a file C</foo> in the disk image, and:"
19620 #: ../fish/guestfish.pod:891
19623 " tar-out /etc - | tar tf -\n"
19628 #: ../fish/guestfish.pod:893
19630 "writes the tarball to stdout and then pipes that into the external \"tar\" "
19631 "command (see L</PIPES>)."
19635 #: ../fish/guestfish.pod:896
19637 "When using C<-> to read from stdin, the input is read up to the end of "
19638 "stdin. You can also use a special \"heredoc\"-like syntax to read up to "
19639 "some arbitrary end marker:"
19643 #: ../fish/guestfish.pod:900
19646 " upload -<<END /foo\n"
19655 #: ../fish/guestfish.pod:906
19657 "Any string of characters can be used instead of C<END>. The end marker must "
19658 "appear on a line of its own, without any preceeding or following characters "
19659 "(not even spaces)."
19663 #: ../fish/guestfish.pod:910
19665 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
19666 "upload local files (so-called \"FileIn\" parameters in the generator)."
19670 #: ../fish/guestfish.pod:913
19671 msgid "EXIT ON ERROR BEHAVIOUR"
19675 #: ../fish/guestfish.pod:915
19677 "By default, guestfish will ignore any errors when in interactive mode (ie. "
19678 "taking commands from a human over a tty), and will exit on the first error "
19679 "in non-interactive mode (scripts, commands given on the command line)."
19683 #: ../fish/guestfish.pod:920
19685 "If you prefix a command with a I<-> character, then that command will not "
19686 "cause guestfish to exit, even if that (one) command returns an error."
19690 #: ../fish/guestfish.pod:924
19691 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
19695 #: ../fish/guestfish.pod:926
19697 "Guestfish can be remote-controlled over a socket. This is useful "
19698 "particularly in shell scripts where you want to make several different "
19699 "changes to a filesystem, but you don't want the overhead of starting up a "
19700 "guestfish process each time."
19704 #: ../fish/guestfish.pod:931
19705 msgid "Start a guestfish server process using:"
19709 #: ../fish/guestfish.pod:933
19712 " eval \"`guestfish --listen`\"\n"
19717 #: ../fish/guestfish.pod:935
19718 msgid "and then send it commands by doing:"
19722 #: ../fish/guestfish.pod:937
19725 " guestfish --remote cmd [...]\n"
19730 #: ../fish/guestfish.pod:939
19731 msgid "To cause the server to exit, send it the exit command:"
19735 #: ../fish/guestfish.pod:943
19737 "Note that the server will normally exit if there is an error in a command. "
19738 "You can change this in the usual way. See section L</EXIT ON ERROR "
19743 #: ../fish/guestfish.pod:947
19744 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
19748 #: ../fish/guestfish.pod:949
19750 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
19751 "is how the I<--remote> option knows where to send the commands. You can "
19752 "have several guestfish listener processes running using:"
19756 #: ../fish/guestfish.pod:953
19759 " eval \"`guestfish --listen`\"\n"
19760 " pid1=$GUESTFISH_PID\n"
19761 " eval \"`guestfish --listen`\"\n"
19762 " pid2=$GUESTFISH_PID\n"
19764 " guestfish --remote=$pid1 cmd\n"
19765 " guestfish --remote=$pid2 cmd\n"
19770 #: ../fish/guestfish.pod:961
19771 msgid "REMOTE CONTROL AND CSH"
19775 #: ../fish/guestfish.pod:963
19777 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19782 #: ../fish/guestfish.pod:966
19785 " eval \"`guestfish --listen --csh`\"\n"
19790 #: ../fish/guestfish.pod:968
19791 msgid "REMOTE CONTROL DETAILS"
19795 #: ../fish/guestfish.pod:970
19797 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
19798 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
19799 "and C<$PID> is the process ID of the server."
19803 #: ../fish/guestfish.pod:974
19804 msgid "Guestfish client and server versions must match exactly."
19808 #: ../fish/guestfish.pod:976
19809 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19813 #: ../fish/guestfish.pod:978
19815 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19816 "context hangs, ie. don't do (note the backquotes):"
19820 #: ../fish/guestfish.pod:981
19823 #| " guestfish --ro -d myguest -i\n"
19826 " a=`guestfish --remote run`\n"
19829 " guestfish --ro -d myguest -i\n"
19833 #: ../fish/guestfish.pod:983
19835 "Since the C<run> command produces no output on stdout, this is not useful "
19836 "anyway. For further information see L<https://bugzilla.redhat.com/show_bug."
19841 #: ../fish/guestfish.pod:987
19842 msgid "PREPARED DISK IMAGES"
19846 #: ../fish/guestfish.pod:989
19848 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19849 "preformatted disk images that guestfish can make for you to save typing. "
19850 "This is particularly useful for testing purposes. This option is used "
19851 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19852 "can be mixed with I<-a>)."
19856 #: ../fish/guestfish.pod:995
19858 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19859 "the second and so on. Existing files in the current directory are "
19864 #: ../fish/guestfish.pod:999
19866 "The type briefly describes how the disk should be sized, partitioned, how "
19867 "filesystem(s) should be created, and how content should be added. "
19868 "Optionally the type can be followed by extra parameters, separated by C<:> "
19869 "(colon) characters. For example, I<-N fs> creates a default 100MB, sparsely-"
19870 "allocated disk, containing a single partition, with the partition formatted "
19871 "as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19876 #: ../fish/guestfish.pod:1007
19877 msgid "To list the available types and any extra parameters they take, run:"
19881 #: ../fish/guestfish.pod:1011
19883 "Note that the prepared filesystem is not mounted. You would usually have to "
19884 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19888 #: ../fish/guestfish.pod:1015
19890 "If any I<-N> or I<--new> options are given, the guest is automatically "
19895 #: ../fish/guestfish.pod:1020
19896 msgid "Create a 100MB disk with an ext4-formatted partition:"
19900 #: ../fish/guestfish.pod:1022
19903 " guestfish -N fs:ext4\n"
19908 #: ../fish/guestfish.pod:1024
19909 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19913 #: ../fish/guestfish.pod:1026
19916 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19921 #: ../fish/guestfish.pod:1028
19922 msgid "Create a blank 200MB disk:"
19926 #: ../fish/guestfish.pod:1030
19929 " guestfish -N disk:200M\n"
19934 #: ../fish/guestfish.pod:1032
19935 msgid "PROGRESS BARS"
19939 #: ../fish/guestfish.pod:1034
19941 "Some (not all) long-running commands send progress notification messages as "
19942 "they are running. Guestfish turns these messages into progress bars."
19946 #: ../fish/guestfish.pod:1038
19948 "When a command that supports progress bars takes longer than two seconds to "
19949 "run, and if progress bars are enabled, then you will see one appearing below "
19954 #: ../fish/guestfish.pod:1042
19957 " ><fs> copy-size /large-file /another-file 2048M\n"
19958 " / 10% [#####-----------------------------------------] 00:30\n"
19963 #: ../fish/guestfish.pod:1045
19965 "The spinner on the left hand side moves round once for every progress "
19966 "notification received from the backend. This is a (reasonably) golden "
19967 "assurance that the command is \"doing something\" even if the progress bar "
19968 "is not moving, because the command is able to send the progress "
19969 "notifications. When the bar reaches 100% and the command finishes, the "
19970 "spinner disappears."
19974 #: ../fish/guestfish.pod:1052
19976 "Progress bars are enabled by default when guestfish is used interactively. "
19977 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19978 "and you can disable them completely using I<--no-progress-bars>."
19982 #: ../fish/guestfish.pod:1057
19983 msgid "GUESTFISH COMMANDS"
19987 #: ../fish/guestfish.pod:1059
19989 "The commands in this section are guestfish convenience commands, in other "
19990 "words, they are not part of the L<guestfs(3)> API."
19994 #: ../fish/guestfish.pod:1062
19999 #: ../fish/guestfish.pod:1064
20011 #: ../fish/guestfish.pod:1067
20012 msgid "Without any parameter, this provides general help."
20013 msgstr "Без параметра показує загальну довідкову інформацію."
20016 #: ../fish/guestfish.pod:1069
20017 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20021 #: ../fish/guestfish.pod:1071
20022 msgid "quit | exit"
20026 #: ../fish/guestfish.pod:1073
20027 msgid "This exits guestfish. You can also use C<^D> key."
20031 #: ../fish/guestfish.pod:1075
20032 msgid "@FISH_COMMANDS@"
20036 #: ../fish/guestfish.pod:1077
20041 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1505
20046 #: ../fish/guestfish.pod:1083
20048 "guestfish returns 0 if the commands completed without error, or 1 if there "
20053 #: ../fish/guestfish.pod:1090
20058 #: ../fish/guestfish.pod:1092
20060 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
20065 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:3122
20066 msgid "FEBOOTSTRAP_KERNEL"
20070 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:3124
20071 msgid "FEBOOTSTRAP_MODULES"
20075 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:3126
20077 "These two environment variables allow the kernel that libguestfs uses in the "
20078 "appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
20079 "most recent host kernel is chosen. For more information about kernel "
20080 "selection, see L<febootstrap-supermin-helper(8)>. This feature is only "
20081 "available in febootstrap E<ge> 3.8."
20085 #: ../fish/guestfish.pod:1105
20086 msgid "GUESTFISH_DISPLAY_IMAGE"
20090 #: ../fish/guestfish.pod:1107
20092 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
20093 "If not set, it uses L<display(1)>."
20097 #: ../fish/guestfish.pod:1110
20098 msgid "GUESTFISH_PID"
20102 #: ../fish/guestfish.pod:1112
20104 "Used with the I<--remote> option to specify the remote guestfish process to "
20105 "control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
20109 #: ../fish/guestfish.pod:1116
20114 #: ../fish/guestfish.pod:1118
20116 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
20117 "not specified, the external L<hexedit(1)> program is used."
20121 #: ../fish/guestfish.pod:1122
20126 #: ../fish/guestfish.pod:1124
20128 "If compiled with GNU readline support, various files in the home directory "
20129 "can be used. See L</FILES>."
20133 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:3132
20134 msgid "LIBGUESTFS_APPEND"
20138 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:3134
20139 msgid "Pass additional options to the guest kernel."
20143 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:3136
20144 msgid "LIBGUESTFS_DEBUG"
20145 msgstr "LIBGUESTFS_DEBUG"
20148 #: ../fish/guestfish.pod:1133
20150 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
20151 "effect as using the B<-v> option."
20155 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:3141
20156 msgid "LIBGUESTFS_MEMSIZE"
20157 msgstr "LIBGUESTFS_MEMSIZE"
20160 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:3143
20162 "Set the memory allocated to the qemu process, in megabytes. For example:"
20166 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:3146
20169 " LIBGUESTFS_MEMSIZE=700\n"
20172 " LIBGUESTFS_MEMSIZE=700\n"
20176 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3148
20177 msgid "LIBGUESTFS_PATH"
20181 #: ../fish/guestfish.pod:1145
20183 "Set the path that guestfish uses to search for kernel and initrd.img. See "
20184 "the discussion of paths in L<guestfs(3)>."
20188 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3153
20189 msgid "LIBGUESTFS_QEMU"
20193 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3155
20195 "Set the default qemu binary that libguestfs uses. If not set, then the qemu "
20196 "which was found at compile time by the configure script is used."
20200 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3161
20201 msgid "LIBGUESTFS_TRACE"
20205 #: ../fish/guestfish.pod:1156
20206 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
20210 #: ../fish/guestfish.pod:1158
20212 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
20215 #: ../fish/guestfish.pod:1160
20217 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
20222 #: ../fish/guestfish.pod:1163 ../sparsify/virt-sparsify.pod:236
20223 #: ../src/guestfs.pod:3166
20228 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3168
20230 "Location of temporary directory, defaults to C</tmp> except for the cached "
20231 "supermin appliance which defaults to C</var/tmp>."
20235 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3171
20237 "If libguestfs was compiled to use the supermin appliance then the real "
20238 "appliance is cached in this directory, shared between all handles belonging "
20239 "to the same EUID. You can use C<$TMPDIR> to configure another directory to "
20240 "use in case C</var/tmp> is not large enough."
20244 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
20245 #: ../rescue/virt-rescue.pod:273
20250 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
20251 #: ../rescue/virt-rescue.pod:277
20252 msgid "$HOME/.libguestfs-tools.rc"
20256 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
20257 #: ../rescue/virt-rescue.pod:279
20258 msgid "/etc/libguestfs-tools.conf"
20262 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
20263 #: ../rescue/virt-rescue.pod:281
20265 "This configuration file controls the default read-only or read-write mode "
20266 "(I<--ro> or I<--rw>)."
20270 #: ../fish/guestfish.pod:1187
20271 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
20275 #: ../fish/guestfish.pod:1189
20276 msgid "$HOME/.guestfish"
20280 #: ../fish/guestfish.pod:1191
20282 "If compiled with GNU readline support, then the command history is saved in "
20287 #: ../fish/guestfish.pod:1194
20288 msgid "$HOME/.inputrc"
20292 #: ../fish/guestfish.pod:1196
20293 msgid "/etc/inputrc"
20297 #: ../fish/guestfish.pod:1198
20299 "If compiled with GNU readline support, then these files can be used to "
20300 "configure readline. For further information, please see L<readline(3)/"
20301 "INITIALIZATION FILE>."
20305 #: ../fish/guestfish.pod:1202
20306 msgid "To write rules which only apply to guestfish, use:"
20310 #: ../fish/guestfish.pod:1204
20320 #: ../fish/guestfish.pod:1208
20322 "Variables that you can set in inputrc that change the behaviour of guestfish "
20323 "in useful ways include:"
20327 #: ../fish/guestfish.pod:1213
20328 msgid "completion-ignore-case (default: on)"
20332 #: ../fish/guestfish.pod:1215
20334 "By default, guestfish will ignore case when tab-completing paths on the "
20339 #: ../fish/guestfish.pod:1218
20342 " set completion-ignore-case off\n"
20347 #: ../fish/guestfish.pod:1220
20348 msgid "to make guestfish case sensitive."
20352 #: ../fish/guestfish.pod:1224
20357 #: ../fish/guestfish.pod:1226
20358 msgid "test2.img (etc)"
20362 #: ../fish/guestfish.pod:1228
20364 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
20365 "will be created in the file C<test1.img> in the current directory. The "
20366 "second use of I<-N> will use C<test2.img> and so on. Any existing file with "
20367 "the same name will be overwritten."
20371 #: ../fish/guestfish.pod:1237
20373 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
20374 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
20375 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
20376 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
20377 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-tar(1)>, L<virt-"
20378 "tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<display(1)>, L<hexedit"
20379 "(1)>, L<febootstrap-supermin-helper(8)>."
20383 #: ../fish/guestfish.pod:1268 ../src/guestfs.pod:3261
20384 #: ../test-tool/libguestfs-test-tool.pod:112
20385 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
20389 #: ../fish/virt-copy-in.pod:5
20391 "virt-copy-in - Copy files and directories into a virtual machine disk image."
20395 #: ../fish/virt-copy-in.pod:9
20398 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
20403 #: ../fish/virt-copy-in.pod:11
20406 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
20411 #: ../fish/virt-copy-in.pod:15
20413 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
20414 "causing disk corruption. The virtual machine must be shut down before you "
20415 "use this command."
20419 #: ../fish/virt-copy-in.pod:21
20421 "C<virt-copy-in> copies files and directories from the local disk into a "
20422 "virtual machine disk image or named libvirt domain."
20426 #: ../fish/virt-copy-in.pod:24
20428 "You can give one of more filenames and directories on the command line. "
20429 "Directories are copied in recursively. The final parameter must be the "
20430 "destination directory in the disk image which must be an absolute path "
20431 "starting with a C</> character."
20435 #: ../fish/virt-copy-in.pod:33
20438 " virt-copy-in -d MyGuest resolv.conf /etc\n"
20443 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
20444 msgid "Upload a home directory to a guest:"
20448 #: ../fish/virt-copy-in.pod:37
20451 " virt-copy-in -d MyGuest skel /home\n"
20456 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
20457 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
20458 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
20462 #: ../fish/virt-copy-in.pod:41
20464 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20465 "> C<copy-in> command. For anything more complex than a trivial copy, you "
20466 "are probably better off using guestfish directly."
20470 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
20471 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
20473 "Since the shell script just passes options straight to guestfish, read "
20474 "L<guestfish(1)> to see the full list of options."
20478 #: ../fish/virt-copy-in.pod:52
20481 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20482 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20483 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20484 #| "libguestfs.org/>."
20486 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
20487 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20489 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20490 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20491 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20495 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
20496 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
20498 #| msgid "Copyright (C) 2009 Red Hat Inc."
20499 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
20500 msgstr "© Red Hat Inc., 2009"
20503 #: ../fish/virt-copy-out.pod:5
20505 "virt-copy-out - Copy files and directories out of a virtual machine disk "
20510 #: ../fish/virt-copy-out.pod:9
20513 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
20518 #: ../fish/virt-copy-out.pod:11
20521 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
20526 #: ../fish/virt-copy-out.pod:15
20528 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
20529 "image or named libvirt domain."
20533 #: ../fish/virt-copy-out.pod:18
20535 "You can give one of more filenames and directories on the command line. "
20536 "Directories are copied out recursively."
20540 #: ../fish/virt-copy-out.pod:23
20541 msgid "Download the home directories from a virtual machine:"
20545 #: ../fish/virt-copy-out.pod:25
20549 " virt-copy-out -d MyGuest /home homes\n"
20554 #: ../fish/virt-copy-out.pod:30
20556 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20557 "> C<copy-out> command. For anything more complex than a trivial copy, you "
20558 "are probably better off using guestfish directly."
20562 #: ../fish/virt-copy-out.pod:41
20565 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20566 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20567 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20568 #| "libguestfs.org/>."
20570 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
20571 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20573 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20574 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20575 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20579 #: ../fish/virt-tar-in.pod:5
20580 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
20584 #: ../fish/virt-tar-in.pod:9
20587 " virt-tar-in -a disk.img data.tar /destination\n"
20592 #: ../fish/virt-tar-in.pod:11
20595 " virt-tar-in -d domain data.tar /destination\n"
20600 #: ../fish/virt-tar-in.pod:13
20603 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
20608 #: ../fish/virt-tar-in.pod:17
20610 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
20611 "causing disk corruption. The virtual machine must be shut down before you "
20612 "use this command."
20616 #: ../fish/virt-tar-in.pod:23
20618 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
20619 "image or named libvirt domain."
20623 #: ../fish/virt-tar-in.pod:26
20625 "The first parameter is the tar file. Use C<-> to read the tar file from "
20626 "standard input. The second parameter is the absolute target directory to "
20631 #: ../fish/virt-tar-in.pod:34
20634 " virt-tar-in -d MyGuest homes.tar /home\n"
20639 #: ../fish/virt-tar-in.pod:38
20641 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20642 "> C<tar-in> command. For anything more complex than a trivial copy, you are "
20643 "probably better off using guestfish directly."
20647 #: ../fish/virt-tar-in.pod:49
20650 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20651 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20652 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20653 #| "libguestfs.org/>."
20655 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20656 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
20659 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20660 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20661 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20665 #: ../fish/virt-tar-out.pod:5
20667 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
20671 #: ../fish/virt-tar-out.pod:9
20674 " virt-tar-out -a disk.img /dir files.tar\n"
20679 #: ../fish/virt-tar-out.pod:11
20682 " virt-tar-out -d domain /dir files.tar\n"
20687 #: ../fish/virt-tar-out.pod:13
20690 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
20695 #: ../fish/virt-tar-out.pod:17
20697 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
20701 #: ../fish/virt-tar-out.pod:20
20703 "The first parameter is the absolute path of the virtual machine directory. "
20704 "The second parameter is the tar file to write. Use C<-> to write to "
20709 #: ../fish/virt-tar-out.pod:26
20710 msgid "Download the home directories from a guest:"
20714 #: ../fish/virt-tar-out.pod:28
20717 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
20722 #: ../fish/virt-tar-out.pod:32
20724 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20725 "> C<tar-out> command. For anything more complex than a trivial copy, you "
20726 "are probably better off using guestfish directly."
20730 #: ../fish/virt-tar-out.pod:43
20733 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20734 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20735 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20736 #| "libguestfs.org/>."
20738 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20739 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
20741 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20742 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20743 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20747 #: ../fuse/guestmount.pod:5
20749 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
20753 #: ../fuse/guestmount.pod:9
20756 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
20761 #: ../fuse/guestmount.pod:11
20764 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
20769 #: ../fuse/guestmount.pod:13
20772 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
20777 #: ../fuse/guestmount.pod:17
20779 "You must I<not> use C<guestmount> in read-write mode on live virtual "
20780 "machines. If you do this, you risk disk corruption in the VM."
20784 #: ../fuse/guestmount.pod:22
20786 "The guestmount program can be used to mount virtual machine filesystems and "
20787 "other disk images on the host. It uses libguestfs for access to the guest "
20788 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
20789 "a mountable device."
20793 #: ../fuse/guestmount.pod:27
20795 "Along with other options, you have to give at least one device (I<-a> "
20796 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20797 "option) or use the I<-i> inspection option. How this works is better "
20798 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
20803 #: ../fuse/guestmount.pod:33
20805 "FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
20806 "by you, and the filesystem will not be visible to any other users unless you "
20807 "make certain global configuration changes to C</etc/fuse.conf>. To unmount "
20808 "the filesystem, use the C<fusermount -u> command."
20812 #: ../fuse/guestmount.pod:41
20814 "For a typical Windows guest which has its main filesystem on the first "
20819 #: ../fuse/guestmount.pod:44
20822 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20827 #: ../fuse/guestmount.pod:46
20829 "For a typical Linux guest which has a /boot filesystem on the first "
20830 "partition, and the root filesystem on a logical volume:"
20834 #: ../fuse/guestmount.pod:49
20837 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20842 #: ../fuse/guestmount.pod:51
20843 msgid "To get libguestfs to detect guest mountpoints for you:"
20847 #: ../fuse/guestmount.pod:53
20850 " guestmount -a guest.img -i --ro /mnt\n"
20855 #: ../fuse/guestmount.pod:55
20856 msgid "For a libvirt guest called \"Guest\" you could do:"
20860 #: ../fuse/guestmount.pod:57
20863 " guestmount -d Guest -i --ro /mnt\n"
20868 #: ../fuse/guestmount.pod:59
20870 "If you don't know what filesystems are contained in a guest or disk image, "
20871 "use L<virt-filesystems(1)> first:"
20875 #: ../fuse/guestmount.pod:62
20878 " virt-filesystems MyGuest\n"
20883 #: ../fuse/guestmount.pod:64
20885 "If you want to trace the libguestfs calls but without excessive debugging "
20886 "information, we recommend:"
20890 #: ../fuse/guestmount.pod:67
20893 " guestmount [...] --trace /mnt\n"
20898 #: ../fuse/guestmount.pod:69
20899 msgid "If you want to debug the program, we recommend:"
20903 #: ../fuse/guestmount.pod:71
20906 " guestmount [...] --trace --verbose /mnt\n"
20911 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
20912 #: ../resize/virt-resize.pod:544
20917 #: ../fuse/guestmount.pod:75
20918 msgid "Other users cannot see the filesystem by default"
20922 #: ../fuse/guestmount.pod:77
20924 "If you mount a filesystem as one user (eg. root), then other users will not "
20925 "be able to see it by default. The fix is to add the FUSE C<allow_other> "
20926 "option when mounting:"
20930 #: ../fuse/guestmount.pod:81
20933 " sudo guestmount [...] -o allow_other /mnt\n"
20938 #: ../fuse/guestmount.pod:91
20939 msgid "Add a block device or virtual machine image."
20943 #: ../fuse/guestmount.pod:114
20944 msgid "B<--dir-cache-timeout N>"
20945 msgstr "B<--dir-cache-timeout N>"
20948 #: ../fuse/guestmount.pod:116
20950 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20951 "seconds. The readdir cache [actually, there are several semi-independent "
20952 "caches] is populated after a readdir(2) call with the stat and extended "
20953 "attributes of the files in the directory, in anticipation that they will be "
20954 "requested soon after."
20958 #: ../fuse/guestmount.pod:122
20960 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20961 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20962 "requests, only cache existing ones."
20966 #: ../fuse/guestmount.pod:142
20968 "If you have untrusted raw-format guest disk images, you should use this "
20969 "option to specify the disk format. This avoids a possible security problem "
20970 "with malicious guests (CVE-2010-3851). See also L<guestfs(3)/"
20971 "guestfs_add_drive_opts>."
20975 #: ../fuse/guestmount.pod:147
20976 msgid "B<--fuse-help>"
20977 msgstr "B<--fuse-help>"
20980 #: ../fuse/guestmount.pod:149
20981 msgid "Display help on special FUSE options (see I<-o> below)."
20985 #: ../fuse/guestmount.pod:153
20986 msgid "Display brief help and exit."
20990 #: ../fuse/guestmount.pod:177
20992 "Mount the named partition or logical volume on the given mountpoint B<in the "
20993 "guest> (this has nothing to do with mountpoints in the host)."
20997 #: ../fuse/guestmount.pod:180
20999 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
21000 "something on C</>."
21004 #: ../fuse/guestmount.pod:197
21006 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21007 "unmounted. If you specify this option, then we don't attempt to sync the "
21008 "disk. See the discussion of autosync in the L<guestfs(3)> manpage."
21012 #: ../fuse/guestmount.pod:202
21014 #| msgid "B<--partition>"
21015 msgid "B<-o option>"
21016 msgstr "B<--partition>"
21019 #: ../fuse/guestmount.pod:204
21021 #| msgid "B<--partition>"
21022 msgid "B<--option option>"
21023 msgstr "B<--partition>"
21026 #: ../fuse/guestmount.pod:206
21027 msgid "Pass extra options to FUSE."
21031 #: ../fuse/guestmount.pod:208
21033 "To get a list of all the extra options supported by FUSE, use the command "
21034 "below. Note that only the FUSE I<-o> options can be passed, and only some "
21035 "of them are a good idea."
21039 #: ../fuse/guestmount.pod:212
21042 " guestmount --fuse-help\n"
21047 #: ../fuse/guestmount.pod:214
21048 msgid "Some potentially useful FUSE options:"
21052 #: ../fuse/guestmount.pod:218
21053 msgid "B<-o allow_other>"
21057 #: ../fuse/guestmount.pod:220
21058 msgid "Allow other users to see the filesystem."
21062 #: ../fuse/guestmount.pod:222
21063 msgid "B<-o attr_timeout=N>"
21064 msgstr "B<-o attr_timeout=N>"
21067 #: ../fuse/guestmount.pod:224
21068 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
21072 #: ../fuse/guestmount.pod:226
21073 msgid "B<-o kernel_cache>"
21077 #: ../fuse/guestmount.pod:228
21079 "Allow the kernel to cache files (reduces the number of reads that have to go "
21080 "through the L<guestfs(3)> API). This is generally a good idea if you can "
21081 "afford the extra memory usage."
21085 #: ../fuse/guestmount.pod:232
21086 msgid "B<-o uid=N> B<-o gid=N>"
21090 #: ../fuse/guestmount.pod:234
21092 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
21093 "the chosen values."
21097 #: ../fuse/guestmount.pod:243
21099 "Add devices and mount everything read-only. Also disallow writes and make "
21100 "the disk appear read-only to FUSE."
21104 #: ../fuse/guestmount.pod:246
21106 "This is highly recommended if you are not going to edit the guest disk. If "
21107 "the guest is running and this option is I<not> supplied, then there is a "
21108 "strong risk of disk corruption in the guest. We try to prevent this from "
21109 "happening, but it is not always possible."
21113 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
21114 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21118 #: ../fuse/guestmount.pod:255
21119 msgid "Enable SELinux support for the guest."
21123 #: ../fuse/guestmount.pod:261
21124 msgid "Enable verbose messages from underlying libguestfs."
21128 #: ../fuse/guestmount.pod:267
21129 msgid "Display the program version and exit."
21133 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
21134 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
21135 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21139 #: ../fuse/guestmount.pod:280
21146 #: ../fuse/guestmount.pod:282
21147 msgid "Trace libguestfs calls and entry into each FUSE function."
21151 #: ../fuse/guestmount.pod:284
21152 msgid "This also stops the daemon from forking into the background."
21156 #: ../fuse/guestmount.pod:310
21158 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21159 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
21164 #: ../fuse/guestmount.pod:325
21165 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
21169 #: ../inspector/virt-inspector.pod:5
21171 "virt-inspector - Display operating system version and other information "
21172 "about a virtual machine"
21176 #: ../inspector/virt-inspector.pod:9
21179 #| " virt-list-partitions [--options] domname\n"
21182 " virt-inspector [--options] -d domname\n"
21185 " virt-list-partitions [--параметри] назва_домену\n"
21189 #: ../inspector/virt-inspector.pod:11
21192 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21195 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
21198 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21202 #: ../inspector/virt-inspector.pod:15
21205 #| " virt-list-partitions [--options] domname\n"
21208 " virt-inspector domname\n"
21211 " virt-list-partitions [--параметри] назва_домену\n"
21215 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
21218 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21221 " virt-inspector disk.img [disk.img ...]\n"
21224 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21228 #: ../inspector/virt-inspector.pod:21
21230 "B<virt-inspector> examines a virtual machine or disk image and tries to "
21231 "determine the version of the operating system and other information about "
21232 "the virtual machine."
21236 #: ../inspector/virt-inspector.pod:25
21237 msgid "Virt-inspector produces XML output for feeding into other programs."
21241 #: ../inspector/virt-inspector.pod:27
21243 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
21244 "the libvirt domain (see: C<virsh list --all>)."
21248 #: ../inspector/virt-inspector.pod:30
21250 "You can also run virt-inspector directly on disk images from a single "
21251 "virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain "
21252 "has several block devices, in which case you should list several I<-a> "
21253 "options one after another, with the first corresponding to the guest's C</"
21254 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
21258 #: ../inspector/virt-inspector.pod:37
21260 "You can also run virt-inspector on install disks, live CDs, bootable USB "
21261 "keys and similar."
21265 #: ../inspector/virt-inspector.pod:40
21267 "Virt-inspector can only inspect and report upon I<one domain at a time>. To "
21268 "inspect several virtual machines, you have to run virt-inspector several "
21269 "times (for example, from a shell script for-loop)."
21273 #: ../inspector/virt-inspector.pod:45
21275 "Because virt-inspector needs direct access to guest images, it won't "
21276 "normally work over remote libvirt connections."
21280 #: ../inspector/virt-inspector.pod:48
21282 "All of the information available from virt-inspector is also available "
21283 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
21284 "The same information can also be fetched using guestfish or via libguestfs "
21285 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
21286 "WITH OTHER PROGRAMMING LANGUAGES>)."
21290 #: ../inspector/virt-inspector.pod:81
21292 "Libvirt is only used if you specify a C<domname> on the command line. If "
21293 "you specify guest block devices directly (I<-a>), then libvirt is not used "
21298 #: ../inspector/virt-inspector.pod:94
21300 "When prompting for keys and passphrases, virt-inspector normally turns "
21301 "echoing off so you cannot see what you are typing. If you are not worried "
21302 "about Tempest attacks and there is no one else in the room you can specify "
21303 "this flag to see what you are typing."
21307 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
21308 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
21309 #: ../tools/virt-win-reg.pl:144
21311 "Specify the format of disk images given on the command line. If this is "
21312 "omitted then the format is autodetected from the content of the disk image."
21316 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
21317 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
21318 #: ../tools/virt-win-reg.pl:148
21320 "If disk images are requested from libvirt, then this program asks libvirt "
21321 "for this information. In this case, the value of the format parameter is "
21326 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
21327 #: ../resize/virt-resize.pod:406 ../sparsify/virt-sparsify.pod:132
21328 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
21329 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
21331 "If working with untrusted raw-format guest disk images, you should ensure "
21332 "the format is always specified."
21336 #: ../inspector/virt-inspector.pod:139
21337 msgid "Previous versions of virt-inspector allowed you to write either:"
21341 #: ../inspector/virt-inspector.pod:145
21344 #| " inspect-get-hostname root\n"
21347 " virt-inspector guestname\n"
21350 " inspect-get-hostname корінь\n"
21354 #: ../inspector/virt-inspector.pod:153
21359 #: ../inspector/virt-inspector.pod:155
21361 "The virt-inspector XML is described precisely in a RELAX NG schema file "
21362 "C<virt-inspector.rng> which is supplied with libguestfs. This section is "
21363 "just an overview."
21367 #: ../inspector/virt-inspector.pod:159
21369 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
21370 "more E<lt>operatingsystemE<gt> elements. You would only see more than one "
21371 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
21372 "which is vanishingly rare in real world VMs."
21376 #: ../inspector/virt-inspector.pod:164
21377 msgid "E<lt>operatingsystemE<gt>"
21381 #: ../inspector/virt-inspector.pod:166
21383 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
21384 "describe the operating system, its architecture, the descriptive \"product "
21385 "name\" string, the type of OS and so on, as in this example:"
21389 #: ../inspector/virt-inspector.pod:170
21392 " <operatingsystems>\n"
21393 " <operatingsystem>\n"
21394 " <root>/dev/sda2</root>\n"
21395 " <name>windows</name>\n"
21396 " <arch>i386</arch>\n"
21397 " <distro>windows</distro>\n"
21398 " <product_name>Windows 7 Enterprise</product_name>\n"
21399 " <product_variant>Client</product_variant>\n"
21400 " <major_version>6</major_version>\n"
21401 " <minor_version>1</minor_version>\n"
21402 " <windows_systemroot>/Windows</windows_systemroot>\n"
21403 " <format>installed</format>\n"
21408 #: ../inspector/virt-inspector.pod:183
21410 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
21411 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
21412 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
21413 "architecture. The other fields are fairly self-explanatory, but because "
21414 "these fields are taken directly from the libguestfs inspection API you can "
21415 "find precise information from L<guestfs(3)/INSPECTION>."
21419 #: ../inspector/virt-inspector.pod:191
21421 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
21422 "of view of libguestfs (block devices may have completely different names "
21423 "inside the VM itself)."
21427 #: ../inspector/virt-inspector.pod:195
21429 #| msgid "mountpoints"
21430 msgid "E<lt>mountpointsE<gt>"
21431 msgstr "mountpoints"
21434 #: ../inspector/virt-inspector.pod:197
21436 "Un*x-like guests typically have multiple filesystems which are mounted at "
21437 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
21438 "element which looks like this:"
21442 #: ../inspector/virt-inspector.pod:201
21445 " <operatingsystems>\n"
21446 " <operatingsystem>\n"
21449 " <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
21450 " <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
21451 " </mountpoints>\n"
21456 #: ../inspector/virt-inspector.pod:209
21458 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
21459 "and may have completely different names inside the guest. Only mountable "
21460 "filesystems appear in this list, not things like swap devices."
21464 #: ../inspector/virt-inspector.pod:214
21466 #| msgid "list-filesystems"
21467 msgid "E<lt>filesystemsE<gt>"
21468 msgstr "list-filesystems"
21471 #: ../inspector/virt-inspector.pod:216
21473 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
21474 "filesystems belonging to the guest, including swap and empty partitions. "
21475 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
21476 "this OS or shared with this OS and other OSes)."
21480 #: ../inspector/virt-inspector.pod:222
21481 msgid "You might see something like this:"
21485 #: ../inspector/virt-inspector.pod:224
21488 " <operatingsystems>\n"
21489 " <operatingsystem>\n"
21492 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21493 " <type>ext4</type>\n"
21494 " <label>Fedora-13-x86_64</label>\n"
21495 " <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
21501 #: ../inspector/virt-inspector.pod:234
21503 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
21504 "the label, and the UUID."
21508 #: ../inspector/virt-inspector.pod:237
21509 msgid "E<lt>applicationsE<gt>"
21513 #: ../inspector/virt-inspector.pod:239
21515 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
21516 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
21521 #: ../inspector/virt-inspector.pod:243
21523 "E<lt>package_formatE<gt>, if present, describes the packaging system used. "
21524 "Typical values would be C<rpm> and C<deb>."
21528 #: ../inspector/virt-inspector.pod:246
21530 "E<lt>package_managementE<gt>, if present, describes the package manager. "
21531 "Typical values include C<yum>, C<up2date> and C<apt>"
21535 #: ../inspector/virt-inspector.pod:249
21536 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
21540 #: ../inspector/virt-inspector.pod:252
21543 " <operatingsystems>\n"
21544 " <operatingsystem>\n"
21546 " <applications>\n"
21548 " <name>coreutils</name>\n"
21549 " <version>8.5</version>\n"
21550 " <release>1</release>\n"
21551 " </application>\n"
21556 #: ../inspector/virt-inspector.pod:262
21558 "The version and release fields may not be available for some types guests. "
21559 "Other fields are possible, see L<guestfs(3)/"
21560 "guestfs_inspect_list_applications>."
21564 #: ../inspector/virt-inspector.pod:266
21565 msgid "E<lt>drive_mappingsE<gt>"
21569 #: ../inspector/virt-inspector.pod:268
21571 "For operating systems like Windows which use drive letters, virt-inspector "
21572 "is able to find out how drive letters map to filesystems."
21576 #: ../inspector/virt-inspector.pod:272
21579 " <operatingsystems>\n"
21580 " <operatingsystem>\n"
21582 " <drive_mappings>\n"
21583 " <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
21584 " <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
21585 " </drive_mappings>\n"
21590 #: ../inspector/virt-inspector.pod:280
21592 "In the example above, drive C maps to the filesystem on the second partition "
21593 "on the first disk, and drive E maps to the filesystem on the first partition "
21594 "on the second disk."
21598 #: ../inspector/virt-inspector.pod:284
21600 "Note that this only covers permanent local filesystem mappings, not things "
21601 "like network shares. Furthermore NTFS volume mount points may not be listed "
21606 #: ../inspector/virt-inspector.pod:288
21608 #| msgid "B<-s E<lt>NE<gt>>"
21609 msgid "E<lt>iconE<gt>"
21610 msgstr "B<-s E<lt>NE<gt>>"
21613 #: ../inspector/virt-inspector.pod:290
21615 "Virt-inspector is sometimes able to extract an icon or logo for the guest. "
21616 "The icon is returned as base64-encoded PNG data. Note that the icon can be "
21617 "very large and high quality."
21621 #: ../inspector/virt-inspector.pod:294
21624 " <operatingsystems>\n"
21625 " <operatingsystem>\n"
21628 " iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
21629 " [... many lines of base64 data ...]\n"
21635 #: ../inspector/virt-inspector.pod:302
21637 "To display the icon, you have to extract it and convert the base64 data back "
21638 "to a binary file. Use an XPath query or simply an editor to extract the "
21639 "data, then use the coreutils L<base64(1)> program to do the conversion back "
21644 #: ../inspector/virt-inspector.pod:307
21647 " base64 -i -d < icon.data > icon.png\n"
21652 #: ../inspector/virt-inspector.pod:309
21653 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
21657 #: ../inspector/virt-inspector.pod:311
21659 "Virt-inspector can detect some operating system installers on install disks, "
21660 "live CDs, bootable USB keys and more."
21664 #: ../inspector/virt-inspector.pod:314
21666 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
21667 "fields may be present to indicate a live CD, network installer, or one part "
21668 "of a multipart CD. For example:"
21672 #: ../inspector/virt-inspector.pod:318
21675 " <operatingsystems>\n"
21676 " <operatingsystem>\n"
21677 " <root>/dev/sda</root>\n"
21678 " <name>linux</name>\n"
21679 " <arch>i386</arch>\n"
21680 " <distro>ubuntu</distro>\n"
21681 " <product_name>Ubuntu 10.10 "Maverick Meerkat"</product_name>\n"
21682 " <major_version>10</major_version>\n"
21683 " <minor_version>10</minor_version>\n"
21684 " <format>installer</format>\n"
21690 #: ../inspector/virt-inspector.pod:330
21691 msgid "USING XPATH"
21695 #: ../inspector/virt-inspector.pod:332
21697 "You can use the XPath query language to select parts of the XML. We "
21698 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
21702 #: ../inspector/virt-inspector.pod:338
21705 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
21707 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21708 " <type>ext4</type>\n"
21714 #: ../inspector/virt-inspector.pod:344
21717 " $ virt-inspector -d Guest | \\\n"
21718 " xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
21724 #: ../inspector/virt-inspector.pod:348
21727 " $ virt-inspector -d Guest | \\\n"
21728 " xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
21729 " [displays the guest icon, if there is one]\n"
21734 #: ../inspector/virt-inspector.pod:359
21735 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
21739 #: ../inspector/virt-inspector.pod:361
21741 "Early versions of libguestfs shipped with a different virt-inspector program "
21742 "written in Perl (the current version is written in C). The XML output of "
21743 "the Perl virt-inspector was different and it could also output in other "
21744 "formats like text."
21748 #: ../inspector/virt-inspector.pod:366
21750 "The old virt-inspector is no longer supported or shipped with libguestfs."
21754 #: ../inspector/virt-inspector.pod:369
21756 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
21757 "versions of virt-inspector with different names:"
21761 #: ../inspector/virt-inspector.pod:372
21764 " virt-inspector Old Perl version.\n"
21765 " virt-inspector2 New C version.\n"
21770 #: ../inspector/virt-inspector.pod:382
21773 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21774 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21775 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21777 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
21778 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
21780 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21781 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21782 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21785 #: ../inspector/virt-inspector.pod:399
21786 msgid "Matthew Booth L<mbooth@redhat.com>"
21790 #: ../java/examples/guestfs-java.pod:5
21791 msgid "guestfs-java - How to use libguestfs from Java"
21795 #: ../java/examples/guestfs-java.pod:9
21798 " import com.redhat.et.libguestfs.*;\n"
21803 #: ../java/examples/guestfs-java.pod:11
21806 " GuestFS g = new GuestFS ();\n"
21807 " g.add_drive_opts (\"disk.img\", null);\n"
21813 #: ../java/examples/guestfs-java.pod:17
21815 "This manual page documents how to call libguestfs from the Java programming "
21816 "language. This page just documents the differences from the C API and gives "
21817 "some examples. If you are not familiar with using libguestfs, you also need "
21818 "to read L<guestfs(3)>."
21822 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21823 msgid "CLOSING THE HANDLE"
21827 #: ../java/examples/guestfs-java.pod:24
21829 "The handle is closed when it is reaped by the garbage collector. Because "
21830 "libguestfs handles include a lot of state, it is also possible to close (and "
21831 "hence free) them explicitly by calling the C<close> method."
21835 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
21836 #: ../python/examples/guestfs-python.pod:21
21837 #: ../ruby/examples/guestfs-ruby.pod:22
21844 #: ../java/examples/guestfs-java.pod:31
21846 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21847 "exception. This has a single parameter which is the error message (a "
21852 #: ../java/examples/guestfs-java.pod:35
21853 msgid "Calling any method on a closed handle raises the same exception."
21857 #: ../java/examples/guestfs-java.pod:47
21860 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21861 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21862 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21864 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
21865 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21866 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
21868 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21869 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21870 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21873 #: ../ocaml/examples/guestfs-ocaml.pod:5
21874 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21878 #: ../ocaml/examples/guestfs-ocaml.pod:9
21879 msgid "Module style:"
21883 #: ../ocaml/examples/guestfs-ocaml.pod:11
21886 " let g = Guestfs.create () in\n"
21887 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21888 " Guestfs.launch g;\n"
21893 #: ../ocaml/examples/guestfs-ocaml.pod:15
21894 msgid "Object-oriented style:"
21898 #: ../ocaml/examples/guestfs-ocaml.pod:17
21901 " let g = new Guestfs.guestfs () in\n"
21902 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21908 #: ../ocaml/examples/guestfs-ocaml.pod:21
21911 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21913 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21918 #: ../ocaml/examples/guestfs-ocaml.pod:27
21920 "This manual page documents how to call libguestfs from the OCaml programming "
21921 "language. This page just documents the differences from the C API and gives "
21922 "some examples. If you are not familiar with using libguestfs, you also need "
21923 "to read L<guestfs(3)>."
21927 #: ../ocaml/examples/guestfs-ocaml.pod:32
21928 msgid "PROGRAMMING STYLES"
21932 #: ../ocaml/examples/guestfs-ocaml.pod:34
21934 "There are two different programming styles supported by the OCaml bindings. "
21935 "You can use a module style, with each C function mapped to an OCaml function:"
21939 #: ../ocaml/examples/guestfs-ocaml.pod:38
21942 #| " int guestfs_last_errno (guestfs_h *g);\n"
21945 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21948 " int guestfs_last_errno (guestfs_h *g);\n"
21952 #: ../ocaml/examples/guestfs-ocaml.pod:40
21957 #: ../ocaml/examples/guestfs-ocaml.pod:42
21960 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21965 #: ../ocaml/examples/guestfs-ocaml.pod:44
21967 "Alternately you can use an object-oriented style, calling methods on the "
21968 "class C<Guestfs.guestfs>:"
21972 #: ../ocaml/examples/guestfs-ocaml.pod:47
21975 " method set_verbose : bool -> unit\n"
21980 #: ../ocaml/examples/guestfs-ocaml.pod:49
21982 "The object-oriented style is usually briefer, and the minor performance "
21983 "penalty isn't noticable in the general overhead of performing libguestfs "
21988 #: ../ocaml/examples/guestfs-ocaml.pod:55
21990 "The handle is closed when it is reaped by the garbage collector. Because "
21991 "libguestfs handles include a lot of state, it is also possible to close (and "
21992 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21997 #: ../ocaml/examples/guestfs-ocaml.pod:62
21999 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22000 "exception. This has a single parameter which is the error message (a "
22005 #: ../ocaml/examples/guestfs-ocaml.pod:66
22007 "Calling any function/method on a closed handle raises C<Guestfs."
22008 "Handle_closed>. The single parameter is the name of the function that you "
22013 #: ../ocaml/examples/guestfs-ocaml.pod:80
22016 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22017 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22018 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22020 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22021 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22022 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22024 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22025 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22026 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22029 #: ../perl/examples/guestfs-perl.pod:5
22030 msgid "guestfs-perl - How to use libguestfs from Perl"
22034 #: ../perl/examples/guestfs-perl.pod:9
22037 " use Sys::Guestfs;\n"
22042 #: ../perl/examples/guestfs-perl.pod:11
22045 " my $h = Sys::Guestfs->new ();\n"
22046 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22047 " $h->launch ();\n"
22048 " $h->mount_options ('', '/dev/sda1', '/');\n"
22049 " $h->touch ('/hello');\n"
22055 #: ../perl/examples/guestfs-perl.pod:20
22057 "This manual page documents how to call libguestfs from the Perl programming "
22058 "language. This page just documents the differences from the C API and gives "
22059 "some examples. If you are not familiar with using libguestfs, you also need "
22060 "to read L<guestfs(3)>. To read the full Perl API, see L<Sys::Guestfs(3)>."
22064 #: ../perl/examples/guestfs-perl.pod:26
22069 #: ../perl/examples/guestfs-perl.pod:28
22071 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
22076 #: ../perl/examples/guestfs-perl.pod:41
22079 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22080 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22081 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22083 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
22084 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
22085 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22087 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22088 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22089 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22092 #: ../python/examples/guestfs-python.pod:5
22093 msgid "guestfs-python - How to use libguestfs from Python"
22097 #: ../python/examples/guestfs-python.pod:9
22100 " import guestfs\n"
22101 " g = guestfs.GuestFS ()\n"
22102 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
22108 #: ../python/examples/guestfs-python.pod:16
22110 "This manual page documents how to call libguestfs from the Python "
22111 "programming language. This page just documents the differences from the C "
22112 "API and gives some examples. If you are not familiar with using libguestfs, "
22113 "you also need to read L<guestfs(3)>."
22117 #: ../python/examples/guestfs-python.pod:23
22119 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
22120 "single string argument which is the error message."
22124 #: ../python/examples/guestfs-python.pod:26
22125 msgid "MORE DOCUMENTATION"
22129 #: ../python/examples/guestfs-python.pod:28
22134 #: ../python/examples/guestfs-python.pod:30
22138 " >>> import guestfs\n"
22139 " >>> help (guestfs)\n"
22144 #: ../python/examples/guestfs-python.pod:44
22147 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22148 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22149 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22151 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22152 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
22153 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22155 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22156 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22157 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22160 #: ../rescue/virt-rescue.pod:5
22161 msgid "virt-rescue - Run a rescue shell on a virtual machine"
22165 #: ../rescue/virt-rescue.pod:9
22168 #| " virt-list-partitions [--options] domname\n"
22171 " virt-rescue [--options] -d domname\n"
22174 " virt-list-partitions [--параметри] назва_домену\n"
22178 #: ../rescue/virt-rescue.pod:11
22181 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
22184 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
22187 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
22191 #: ../rescue/virt-rescue.pod:15
22194 #| " virt-list-partitions [--options] domname\n"
22197 " virt-rescue [--options] domname\n"
22200 " virt-list-partitions [--параметри] назва_домену\n"
22204 #: ../rescue/virt-rescue.pod:17
22207 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
22210 " virt-rescue [--options] disk.img [disk.img ...]\n"
22213 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
22217 #: ../rescue/virt-rescue.pod:21
22219 "You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
22220 "probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
22221 "you from doing this, but doesn't catch all cases."
22225 #: ../rescue/virt-rescue.pod:25
22227 "However if you use the I<--ro> (read only) option, then you can attach a "
22228 "shell to a live virtual machine. The results might be strange or "
22229 "inconsistent at times but you won't get disk corruption."
22233 #: ../rescue/virt-rescue.pod:31
22235 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
22236 "need for a CD. virt-rescue gives you a rescue shell and some simple "
22237 "recovery tools which you can use to examine or rescue a virtual machine or "
22242 #: ../rescue/virt-rescue.pod:36
22244 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
22245 "on disk image(s):"
22249 #: ../rescue/virt-rescue.pod:39
22252 " virt-rescue -d GuestName\n"
22257 #: ../rescue/virt-rescue.pod:41
22260 " virt-rescue --ro -a /path/to/disk.img\n"
22265 #: ../rescue/virt-rescue.pod:43
22268 " virt-rescue -a /dev/sdc\n"
22273 #: ../rescue/virt-rescue.pod:45
22274 msgid "For live VMs you I<must> use the --ro option."
22278 #: ../rescue/virt-rescue.pod:47
22280 "When you run virt-rescue on a virtual machine or disk image, you are placed "
22281 "in an interactive bash shell where you can use many ordinary Linux "
22282 "commands. What you see in C</> (C</bin>, C</lib> etc) is the rescue "
22283 "appliance. You must mount the virtual machine's filesystems by hand. There "
22284 "is an empty directory called C</sysroot> where you can mount filesystems."
22288 #: ../rescue/virt-rescue.pod:54
22290 "In the example below, we list logical volumes, then choose one to mount "
22291 "under C</sysroot>:"
22295 #: ../rescue/virt-rescue.pod:57
22299 " LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
22300 " lv_root vg_f11x64 -wi-a- 8.83G\n"
22301 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
22302 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
22303 " ><rescue> ls /sysroot\n"
22308 #: ../rescue/virt-rescue.pod:64
22310 "If you don't know what filesystems are available on the virtual machine then "
22311 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
22315 #: ../rescue/virt-rescue.pod:70
22317 "Virt-rescue can be used on I<any> disk image file or device, not just a "
22318 "virtual machine. For example you can use it on a blank file if you want to "
22319 "partition that file (although we would recommend using L<guestfish(1)> "
22320 "instead as it is more suitable for this purpose). You can even use virt-"
22321 "rescue on things like SD cards."
22325 #: ../rescue/virt-rescue.pod:76
22327 "Virt-rescue does not require root. You only need to run it as root if you "
22328 "need root to open the disk image."
22332 #: ../rescue/virt-rescue.pod:79
22334 "This tool is just designed for quick interactive hacking on a virtual "
22335 "machine. For more structured access to a virtual machine disk image, you "
22336 "should use L<guestfs(3)>. To get a structured shell that you can use to "
22337 "make scripted changes to guests, use L<guestfish(1)>."
22341 #: ../rescue/virt-rescue.pod:103
22342 msgid "B<--append kernelopts>"
22346 #: ../rescue/virt-rescue.pod:105
22347 msgid "Pass additional options to the rescue kernel."
22351 #: ../rescue/virt-rescue.pod:135
22354 #| " guestfish --format=raw -a disk.img\n"
22357 " virt-rescue --format=raw -a disk.img\n"
22360 " guestfish --format=raw -a disk.img\n"
22364 #: ../rescue/virt-rescue.pod:139
22367 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
22370 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
22373 " guestfish --format=raw -a disk.img --format -a another.img\n"
22377 #: ../rescue/virt-rescue.pod:148
22382 #: ../rescue/virt-rescue.pod:150
22384 #| msgid "B<--merge>"
22385 msgid "B<--memsize MB>"
22386 msgstr "B<--merge>"
22389 #: ../rescue/virt-rescue.pod:152
22391 "Change the amount of memory allocated to the rescue system. The default is "
22392 "set by libguestfs and is small but adequate for running system tools. The "
22393 "occasional program might need more memory. The parameter is specified in "
22398 #: ../rescue/virt-rescue.pod:157
22400 #| msgid "B<--inspector>"
22401 msgid "B<--network>"
22402 msgstr "B<--inspector>"
22405 #: ../rescue/virt-rescue.pod:159
22406 msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
22410 #: ../rescue/virt-rescue.pod:165
22411 msgid "Open the image read-only."
22415 #: ../rescue/virt-rescue.pod:175
22417 "Enable SELinux in the rescue appliance. You should read L<guestfs(3)/"
22418 "SELINUX> before using this option."
22422 #: ../rescue/virt-rescue.pod:178
22424 #| msgid "B<--csh>"
22429 #: ../rescue/virt-rescue.pod:180
22430 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
22434 #: ../rescue/virt-rescue.pod:198
22436 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
22437 "are done read-write."
22441 #: ../rescue/virt-rescue.pod:211
22442 msgid "Previous versions of virt-rescue allowed you to write either:"
22446 #: ../rescue/virt-rescue.pod:213
22449 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
22452 " virt-rescue disk.img [disk.img ...]\n"
22455 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
22459 #: ../rescue/virt-rescue.pod:217
22462 #| " file-architecture filename\n"
22465 " virt-rescue guestname\n"
22468 " file-architecture назва_файла\n"
22472 #: ../rescue/virt-rescue.pod:225
22477 #: ../rescue/virt-rescue.pod:227
22479 "Adding the I<--network> option enables QEMU user networking in the rescue "
22480 "appliance. There are some differences between user networking and ordinary "
22485 #: ../rescue/virt-rescue.pod:233
22486 msgid "ping does not work"
22490 #: ../rescue/virt-rescue.pod:235
22492 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
22493 "send the ping packets, and because virt-rescue must be able to run as non-"
22494 "root, QEMU user networking is not able to emulate the L<ping(8)> command. "
22495 "The ping command will appear to resolve addresses but will not be able to "
22496 "send or receive any packets. This does not mean that the network is not "
22501 #: ../rescue/virt-rescue.pod:242
22502 msgid "cannot receive connections"
22506 #: ../rescue/virt-rescue.pod:244
22507 msgid "QEMU user networking cannot receive incoming connections."
22511 #: ../rescue/virt-rescue.pod:246
22512 msgid "making TCP connections"
22516 #: ../rescue/virt-rescue.pod:248
22518 "The virt-rescue appliance needs to be small and so does not include many "
22519 "network tools. In particular there is no L<telnet(1)> command. You can "
22520 "make TCP connections from the shell using the magical C</dev/tcp/"
22521 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
22525 #: ../rescue/virt-rescue.pod:253
22528 " exec 3<>/dev/tcp/redhat.com/80\n"
22529 " echo \"GET /\" >&3\n"
22535 #: ../rescue/virt-rescue.pod:257
22536 msgid "See L<bash(1)> for more details."
22540 #: ../rescue/virt-rescue.pod:263
22542 "Several environment variables affect virt-rescue. See L<guestfs(3)/"
22543 "ENVIRONMENT VARIABLES> for the complete list."
22547 #: ../rescue/virt-rescue.pod:290
22550 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22551 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22552 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22554 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
22555 "libguestfs.org/>."
22557 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22558 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22559 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22562 #: ../resize/virt-resize.pod:5
22563 msgid "virt-resize - Resize a virtual machine disk"
22567 #: ../resize/virt-resize.pod:9
22570 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
22571 " [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
22572 " [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
22577 #: ../resize/virt-resize.pod:15
22579 "Virt-resize is a tool which can resize a virtual machine disk, making it "
22580 "larger or smaller overall, and resizing or deleting any partitions contained "
22585 #: ../resize/virt-resize.pod:19
22587 "Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
22588 "not> be used on live virtual machines - for consistent results, shut the "
22589 "virtual machine down before resizing it."
22593 #: ../resize/virt-resize.pod:23
22595 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
22596 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
22600 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
22601 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:469
22602 #: ../src/guestfs.pod:1287 ../src/guestfs.pod:1426 ../src/guestfs.pod:2604
22607 #: ../resize/virt-resize.pod:33
22609 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
22610 "fill the extra 5GB of space."
22614 #: ../resize/virt-resize.pod:36
22617 " virt-filesystems --long -h --all -a olddisk\n"
22622 #: ../resize/virt-resize.pod:38
22625 " truncate -r olddisk newdisk\n"
22626 " truncate -s +5G newdisk\n"
22631 #: ../resize/virt-resize.pod:41
22634 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
22635 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
22640 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
22641 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:475
22642 #: ../src/guestfs.pod:1291 ../src/guestfs.pod:1430 ../src/guestfs.pod:2629
22647 #: ../resize/virt-resize.pod:46
22649 "As above, but make the /boot partition 200MB bigger, while giving the "
22650 "remaining space to /dev/sda2:"
22654 #: ../resize/virt-resize.pod:49
22657 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22658 " olddisk newdisk\n"
22663 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
22664 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:486
22665 #: ../src/guestfs.pod:1436
22670 #: ../resize/virt-resize.pod:54
22672 "As in the first example, but expand a logical volume as the final step. "
22673 "This is what you would typically use for Linux guests that use LVM:"
22677 #: ../resize/virt-resize.pod:58
22680 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
22681 " olddisk newdisk\n"
22686 #: ../resize/virt-resize.pod:61
22691 #: ../resize/virt-resize.pod:63
22693 "As in the first example, but the output format will be qcow2 instead of a "
22698 #: ../resize/virt-resize.pod:66
22701 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
22702 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
22707 #: ../resize/virt-resize.pod:71
22708 msgid "DETAILED USAGE"
22712 #: ../resize/virt-resize.pod:73
22713 msgid "EXPANDING A VIRTUAL MACHINE DISK"
22717 #: ../resize/virt-resize.pod:77
22718 msgid "1. Shut down the virtual machine"
22722 #: ../resize/virt-resize.pod:79
22723 msgid "2. Locate input disk image"
22727 #: ../resize/virt-resize.pod:81
22729 "Locate the input disk image (ie. the file or device on the host containing "
22730 "the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
22731 "dumpxml> like this to find the disk image name:"
22735 #: ../resize/virt-resize.pod:85
22738 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
22739 " Found 1 nodes:\n"
22741 " <source dev=\"/dev/vg/lv_guest\" />\n"
22746 #: ../resize/virt-resize.pod:90
22747 msgid "3. Look at current sizing"
22751 #: ../resize/virt-resize.pod:92
22752 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
22756 #: ../resize/virt-resize.pod:95
22759 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
22760 " Name Type Size Parent\n"
22761 " /dev/sda1 partition 101M /dev/sda\n"
22762 " /dev/sda2 partition 7.9G /dev/sda\n"
22763 " /dev/sda device 8.0G -\n"
22768 #: ../resize/virt-resize.pod:101
22770 "(This example is a virtual machine with an 8 GB disk which we would like to "
22771 "expand up to 10 GB)."
22775 #: ../resize/virt-resize.pod:104
22776 msgid "4. Create output disk"
22780 #: ../resize/virt-resize.pod:106
22782 "Virt-resize cannot do in-place disk modifications. You have to have space "
22783 "to store the resized output disk."
22787 #: ../resize/virt-resize.pod:109
22789 "To store the resized disk image in a file, create a file of a suitable size:"
22793 #: ../resize/virt-resize.pod:112
22796 " # rm -f outdisk\n"
22797 " # truncate -s 10G outdisk\n"
22802 #: ../resize/virt-resize.pod:115
22803 msgid "Or use L<lvcreate(1)> to create a logical volume:"
22807 #: ../resize/virt-resize.pod:117
22810 " # lvcreate -L 10G -n lv_name vg_name\n"
22815 #: ../resize/virt-resize.pod:119
22816 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22820 #: ../resize/virt-resize.pod:121
22823 " # virsh pool-list\n"
22824 " # virsh vol-create-as poolname newvol 10G\n"
22829 #: ../resize/virt-resize.pod:124
22834 #: ../resize/virt-resize.pod:126
22836 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22837 "file) and the output disk. The output disk is the one created in the "
22842 #: ../resize/virt-resize.pod:130
22845 " # virt-resize indisk outdisk\n"
22850 #: ../resize/virt-resize.pod:132
22852 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22853 "I<without> resizing or changing any existing partitions. If C<outdisk> is "
22854 "larger, then an extra, empty partition is created at the end of the disk "
22855 "covering the extra space. If C<outdisk> is smaller, then it will give an "
22860 #: ../resize/virt-resize.pod:138
22862 "More realistically you'd want to expand existing partitions in the disk "
22863 "image by passing extra options (for the full list see the L</OPTIONS> "
22868 #: ../resize/virt-resize.pod:142
22870 "L</--expand> is the most useful option. It expands the named partition "
22871 "within the disk to fill any extra space:"
22875 #: ../resize/virt-resize.pod:145
22878 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22883 #: ../resize/virt-resize.pod:147
22885 "(In this case, an extra partition is I<not> created at the end of the disk, "
22886 "because there will be no unused space)."
22890 #: ../resize/virt-resize.pod:150
22892 "L</--resize> is the other commonly used option. The following would "
22893 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22894 "rest of the available space:"
22898 #: ../resize/virt-resize.pod:154
22901 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22902 " indisk outdisk\n"
22907 #: ../resize/virt-resize.pod:157
22909 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22910 "if virt-resize knows how, it will resize the contents, the equivalent of "
22911 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22912 "or L<btrfs(8)>. However virt-resize does not know how to resize some "
22913 "filesystems, so you would have to online resize them after booting the guest."
22917 #: ../resize/virt-resize.pod:164
22918 msgid "Other options are covered below."
22922 #: ../resize/virt-resize.pod:166
22927 #: ../resize/virt-resize.pod:168
22928 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22932 #: ../resize/virt-resize.pod:170
22933 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22937 #: ../resize/virt-resize.pod:172
22940 #| " edit filename\n"
22943 " # virsh edit guestname\n"
22946 " edit назва_файла\n"
22950 #: ../resize/virt-resize.pod:174
22952 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22953 "html#elementsDisks>"
22957 #: ../resize/virt-resize.pod:177
22958 msgid "Then start up the domain with the new, resized disk:"
22962 #: ../resize/virt-resize.pod:179
22965 #| " ln-s target linkname\n"
22968 " # virsh start guestname\n"
22971 " ln-s призначення назва_посилання\n"
22975 #: ../resize/virt-resize.pod:181
22977 "and check that it still works. See also the L</NOTES> section below for "
22978 "additional information."
22982 #: ../resize/virt-resize.pod:184
22983 msgid "7. Resize LVs etc inside the guest"
22987 #: ../resize/virt-resize.pod:186
22988 msgid "(This can also be done offline using L<guestfish(1)>)"
22992 #: ../resize/virt-resize.pod:188
22994 "Once the guest has booted you should see the new space available, at least "
22995 "for filesystems that virt-resize knows how to resize, and for PVs. The user "
22996 "may need to resize LVs inside PVs, and also resize filesystem types that "
22997 "virt-resize does not know how to expand."
23001 #: ../resize/virt-resize.pod:195
23002 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23006 #: ../resize/virt-resize.pod:197
23008 "Shrinking is somewhat more complex than expanding, and only an overview is "
23013 #: ../resize/virt-resize.pod:200
23015 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23016 "filesystems). The user has to shrink content before passing the disk image "
23017 "to virt-resize, and virt-resize will check that the content has been shrunk "
23022 #: ../resize/virt-resize.pod:205
23023 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23027 #: ../resize/virt-resize.pod:207
23029 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23030 "steps 3 and 4 above to allocate a new disk image."
23034 #: ../resize/virt-resize.pod:210
23036 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23040 #: ../resize/virt-resize.pod:213
23041 msgid "IGNORING OR DELETING PARTITIONS"
23045 #: ../resize/virt-resize.pod:215
23047 "virt-resize also gives a convenient way to ignore or delete partitions when "
23048 "copying from the input disk to the output disk. Ignoring a partition speeds "
23049 "up the copy where you don't care about the existing contents of a "
23050 "partition. Deleting a partition removes it completely, but note that it "
23051 "also renumbers any partitions after the one which is deleted, which can "
23052 "leave some guests unbootable."
23056 #: ../resize/virt-resize.pod:222
23057 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23061 #: ../resize/virt-resize.pod:224
23063 "If the input disk is in qcow2 format, then you may prefer that the output is "
23064 "in qcow2 format as well. Alternately, virt-resize can convert the format on "
23065 "the fly. The output format is simply determined by the format of the empty "
23066 "output container that you provide. Thus to create qcow2 output, use:"
23070 #: ../resize/virt-resize.pod:230
23073 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23078 #: ../resize/virt-resize.pod:232
23079 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23083 #: ../resize/virt-resize.pod:234
23084 msgid "Similarly, to get non-sparse raw output use:"
23088 #: ../resize/virt-resize.pod:236
23091 #| " fallocate path len\n"
23094 " fallocate -l size outdisk\n"
23097 " fallocate шлях довжина\n"
23101 #: ../resize/virt-resize.pod:238
23103 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
23104 "dev/zero of=outdisk bs=1M count=..>)"
23108 #: ../resize/virt-resize.pod:247 ../sparsify/virt-sparsify.pod:105
23109 msgid "Display help."
23113 #: ../resize/virt-resize.pod:249
23118 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
23119 #: ../tools/virt-win-reg.pl:120
23121 msgstr "B<--debug>"
23124 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
23125 msgid "Enable debugging messages."
23129 #: ../resize/virt-resize.pod:255
23131 #| msgid "B<--no-dest-paths>"
23132 msgid "B<--delete part>"
23133 msgstr "B<--no-dest-paths>"
23136 #: ../resize/virt-resize.pod:257
23138 "Delete the named partition. It would be more accurate to describe this as "
23139 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
23140 "the original disk image is left intact."
23144 #: ../resize/virt-resize.pod:261
23146 "Note that when you delete a partition, then anything contained in the "
23147 "partition is also deleted. Furthermore, this causes any partitions that "
23148 "come after to be I<renumbered>, which can easily make your guest unbootable."
23152 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
23153 #: ../resize/virt-resize.pod:454 ../sparsify/virt-sparsify.pod:145
23154 msgid "You can give this option multiple times."
23158 #: ../resize/virt-resize.pod:268
23160 #| msgid "B<--partition>"
23161 msgid "B<--expand part>"
23162 msgstr "B<--partition>"
23165 #: ../resize/virt-resize.pod:270
23167 "Expand the named partition so it uses up all extra space (space left over "
23168 "after any other resize changes that you request have been done)."
23172 #: ../resize/virt-resize.pod:273
23174 "If virt-resize knows how, it will expand the direct content of the "
23175 "partition. For example, if the partition is an LVM PV, it will expand the "
23176 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
23177 "content it doesn't know about alone."
23181 #: ../resize/virt-resize.pod:278
23182 msgid "Currently virt-resize can resize:"
23186 #: ../resize/virt-resize.pod:284
23187 msgid "ext2, ext3 and ext4 filesystems."
23191 #: ../resize/virt-resize.pod:288
23192 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
23196 #: ../resize/virt-resize.pod:290
23198 "The filesystem must have been shut down consistently last time it was used. "
23199 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
23200 "consistency check, so at the first boot after resizing Windows will check "
23205 #: ../resize/virt-resize.pod:297
23207 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
23208 "inside the PV, but see the I<--LV-expand> option. The user could also "
23209 "resize LVs as desired after boot."
23213 #: ../resize/virt-resize.pod:303
23214 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
23218 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
23219 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
23223 #: ../resize/virt-resize.pod:309 ../sparsify/virt-sparsify.pod:125
23224 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
23225 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
23226 msgid "B<--format> raw"
23230 #: ../resize/virt-resize.pod:311 ../sparsify/virt-sparsify.pod:129
23232 "Specify the format of the input disk image. If this flag is not given then "
23233 "it is auto-detected from the image itself."
23237 #: ../resize/virt-resize.pod:317
23239 "Note that this option I<does not> affect the output format. See L</QCOW2 "
23240 "AND NON-SPARSE RAW FORMATS>."
23244 #: ../resize/virt-resize.pod:320
23246 #| msgid "B<--format>"
23247 msgid "B<--ignore part>"
23248 msgstr "B<--format>"
23251 #: ../resize/virt-resize.pod:322
23253 "Ignore the named partition. Effectively this means the partition is "
23254 "allocated on the destination disk, but the content is not copied across from "
23255 "the source disk. The content of the partition will be blank (all zero "
23260 #: ../resize/virt-resize.pod:329
23261 msgid "B<--LV-expand logvol>"
23265 #: ../resize/virt-resize.pod:331
23267 "This takes the logical volume and, as a final step, expands it to fill all "
23268 "the space available in its volume group. A typical usage, assuming a Linux "
23269 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
23270 "lv_root> would be:"
23274 #: ../resize/virt-resize.pod:336
23277 " virt-resize indisk outdisk \\\n"
23278 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
23283 #: ../resize/virt-resize.pod:339
23285 "This would first expand the partition (and PV), and then expand the root "
23286 "device to fill the extra space in the PV."
23290 #: ../resize/virt-resize.pod:342
23292 "The contents of the LV are also resized if virt-resize knows how to do "
23293 "that. You can stop virt-resize from trying to expand the content by using "
23294 "the option I<--no-expand-content>."
23298 #: ../resize/virt-resize.pod:346
23299 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
23303 #: ../resize/virt-resize.pod:348
23305 "You can give this option multiple times, I<but> it doesn't make sense to do "
23306 "this unless the logical volumes you specify are all in different volume "
23311 #: ../resize/virt-resize.pod:352 ../sparsify/virt-sparsify.pod:147
23313 #| msgid "B<-h> | B<--human-readable>"
23314 msgid "B<--machine-readable>"
23315 msgstr "B<-h> | B<--human-readable>"
23318 #: ../resize/virt-resize.pod:354 ../sparsify/virt-sparsify.pod:149
23320 "This option is used to make the output more machine friendly when being "
23321 "parsed by other programs. See L</MACHINE READABLE OUTPUT> below."
23325 #: ../resize/virt-resize.pod:360
23327 #| msgid "B<--debug>"
23328 msgid "B<--dryrun>"
23329 msgstr "B<--debug>"
23332 #: ../resize/virt-resize.pod:362
23333 msgid "Print a summary of what would be done, but don't do anything."
23337 #: ../resize/virt-resize.pod:364
23338 msgid "B<--no-copy-boot-loader>"
23342 #: ../resize/virt-resize.pod:366
23344 "By default, virt-resize copies over some sectors at the start of the disk "
23345 "(up to the beginning of the first partition). Commonly these sectors "
23346 "contain the Master Boot Record (MBR) and the boot loader, and are required "
23347 "in order for the guest to boot correctly."
23351 #: ../resize/virt-resize.pod:371
23353 "If you specify this flag, then this initial copy is not done. You may need "
23354 "to reinstall the boot loader in this case."
23358 #: ../resize/virt-resize.pod:374
23360 #| msgid "B<--partition>"
23361 msgid "B<--no-extra-partition>"
23362 msgstr "B<--partition>"
23365 #: ../resize/virt-resize.pod:376
23367 "By default, virt-resize creates an extra partition if there is any extra, "
23368 "unused space after all resizing has happened. Use this option to prevent "
23369 "the extra partition from being created. If you do this then the extra space "
23370 "will be inaccessible until you run fdisk, parted, or some other partitioning "
23371 "tool in the guest."
23375 #: ../resize/virt-resize.pod:382
23377 "Note that if the surplus space is smaller than 10 MB, no extra partition "
23382 #: ../resize/virt-resize.pod:385
23384 #| msgid "B<--no-dest-paths>"
23385 msgid "B<--no-expand-content>"
23386 msgstr "B<--no-dest-paths>"
23389 #: ../resize/virt-resize.pod:387
23391 "By default, virt-resize will try to expand the direct contents of "
23392 "partitions, if it knows how (see I<--expand> option above)."
23396 #: ../resize/virt-resize.pod:390
23398 "If you give the I<--no-expand-content> option then virt-resize will not "
23403 #: ../resize/virt-resize.pod:393
23405 #| msgid "ntfsresize-size"
23406 msgid "B<--ntfsresize-force>"
23407 msgstr "ntfsresize-size"
23410 #: ../resize/virt-resize.pod:395
23412 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
23413 "the NTFS disk is marked as needing a consistency check. You have to use "
23414 "this option if you want to resize a Windows guest multiple times without "
23415 "booting into Windows between each resize."
23419 #: ../resize/virt-resize.pod:401
23421 #| msgid "B<--format>"
23422 msgid "B<--output-format> raw"
23423 msgstr "B<--format>"
23426 #: ../resize/virt-resize.pod:403
23428 "Specify the format of the output disk image. If this flag is not given then "
23429 "it is auto-detected from the image itself."
23433 #: ../resize/virt-resize.pod:409
23435 "Note that this option I<does not create> the output format. This option "
23436 "just tells libguestfs what it is so it doesn't try to guess it. You still "
23437 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
23438 "SPARSE RAW FORMATS>."
23442 #: ../resize/virt-resize.pod:418
23443 msgid "Don't print the summary."
23447 #: ../resize/virt-resize.pod:420
23449 #| msgid "B<part_size>"
23450 msgid "B<--resize part=size>"
23451 msgstr "B<part_size>"
23454 #: ../resize/virt-resize.pod:422
23456 "Resize the named partition (expanding or shrinking it) so that it has the "
23461 #: ../resize/virt-resize.pod:425
23463 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
23464 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
23465 "size; or as a relative number or percentage. For example:"
23469 #: ../resize/virt-resize.pod:431
23472 #| " hexedit /dev/sda 1M\n"
23475 " --resize /dev/sda2=10G\n"
23478 " hexedit /dev/sda 1M\n"
23482 #: ../resize/virt-resize.pod:433
23485 #| " pvresize device\n"
23488 " --resize /dev/sda4=90%\n"
23491 " pvresize пристрій\n"
23495 #: ../resize/virt-resize.pod:435
23498 #| " hexedit /dev/sda 1M\n"
23501 " --resize /dev/sda2=+1G\n"
23504 " hexedit /dev/sda 1M\n"
23508 #: ../resize/virt-resize.pod:437
23511 #| " hexedit /dev/sda 1M\n"
23514 " --resize /dev/sda2=-200M\n"
23517 " hexedit /dev/sda 1M\n"
23521 #: ../resize/virt-resize.pod:439
23524 #| " hexedit /dev/sda 1M\n"
23527 " --resize /dev/sda1=+128K\n"
23530 " hexedit /dev/sda 1M\n"
23534 #: ../resize/virt-resize.pod:441
23537 #| " hexedit /dev/sda 1M\n"
23540 " --resize /dev/sda1=+10%\n"
23543 " hexedit /dev/sda 1M\n"
23547 #: ../resize/virt-resize.pod:443
23550 #| " hexedit /dev/sda 1M\n"
23553 " --resize /dev/sda1=-10%\n"
23556 " hexedit /dev/sda 1M\n"
23560 #: ../resize/virt-resize.pod:445
23562 "You can increase the size of any partition. Virt-resize will expand the "
23563 "direct content of the partition if it knows how (see I<--expand> below)."
23567 #: ../resize/virt-resize.pod:449
23569 "You can only I<decrease> the size of partitions that contain filesystems or "
23570 "PVs which have already been shrunk. Virt-resize will check this has been "
23571 "done before proceeding, or else will print an error (see also I<--resize-"
23576 #: ../resize/virt-resize.pod:456
23577 msgid "B<--resize-force part=size>"
23581 #: ../resize/virt-resize.pod:458
23583 "This is the same as I<--resize> except that it will let you decrease the "
23584 "size of any partition. Generally this means you will lose any data which "
23585 "was at the end of the partition you shrink, but you may not care about that "
23586 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
23587 "as a swap partition)."
23591 #: ../resize/virt-resize.pod:464
23592 msgid "See also the I<--ignore> option."
23596 #: ../resize/virt-resize.pod:466
23598 #| msgid "B<--partition>"
23599 msgid "B<--shrink part>"
23600 msgstr "B<--partition>"
23603 #: ../resize/virt-resize.pod:468
23605 "Shrink the named partition until the overall disk image fits in the "
23606 "destination. The named partition B<must> contain a filesystem or PV which "
23607 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
23608 "online tools). Virt-resize will check this and give an error if it has not "
23613 #: ../resize/virt-resize.pod:474
23615 "The amount by which the overall disk must be shrunk (after carrying out all "
23616 "other operations requested by the user) is called the \"deficit\". For "
23617 "example, a straight copy (assume no other operations) from a 5GB disk image "
23618 "to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
23619 "would give an error unless the user specified a partition to shrink and that "
23620 "partition had more than a gigabyte of free space."
23624 #: ../resize/virt-resize.pod:492 ../sparsify/virt-sparsify.pod:177
23625 msgid "MACHINE READABLE OUTPUT"
23629 #: ../resize/virt-resize.pod:494
23631 "The I<--machine-readable> option can be used to make the output more machine "
23632 "friendly, which is useful when calling virt-resize from other programs, GUIs "
23637 #: ../resize/virt-resize.pod:498 ../sparsify/virt-sparsify.pod:183
23638 msgid "There are two ways to use this option."
23642 #: ../resize/virt-resize.pod:500
23644 "Firstly use the option on its own to query the capabilities of the virt-"
23645 "resize binary. Typical output looks like this:"
23649 #: ../resize/virt-resize.pod:503
23652 " $ virt-resize --machine-readable\n"
23654 " ntfsresize-force\n"
23662 #: ../resize/virt-resize.pod:510 ../sparsify/virt-sparsify.pod:193
23664 "A list of features is printed, one per line, and the program exits with "
23669 #: ../resize/virt-resize.pod:513 ../sparsify/virt-sparsify.pod:196
23671 "Secondly use the option in conjunction with other options to make the "
23672 "regular program output more machine friendly."
23676 #: ../resize/virt-resize.pod:516 ../sparsify/virt-sparsify.pod:199
23677 msgid "At the moment this means:"
23681 #: ../resize/virt-resize.pod:522 ../sparsify/virt-sparsify.pod:205
23683 "Progress bar messages can be parsed from stdout by looking for this regular "
23688 #: ../resize/virt-resize.pod:525 ../sparsify/virt-sparsify.pod:208
23691 " ^[0-9]+/[0-9]+$\n"
23696 #: ../resize/virt-resize.pod:529 ../sparsify/virt-sparsify.pod:212
23698 "The calling program should treat messages sent to stdout (except for "
23699 "progress bar messages) as status messages. They can be logged and/or "
23700 "displayed to the user."
23704 #: ../resize/virt-resize.pod:535
23706 "The calling program should treat messages sent to stderr as error messages. "
23707 "In addition, virt-resize exits with a non-zero status code if there was a "
23712 #: ../resize/virt-resize.pod:541
23714 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
23715 "readable> option and will return an error."
23719 #: ../resize/virt-resize.pod:546
23720 msgid "\"Partition 1 does not end on cylinder boundary.\""
23724 #: ../resize/virt-resize.pod:548
23726 "Virt-resize aligns partitions to multiples of 64 sectors. Usually this "
23727 "means the partitions will not be aligned to the ancient CHS geometry. "
23728 "However CHS geometry is meaningless for disks manufactured since the early "
23729 "1990s, and doubly so for virtual hard drives. Alignment of partitions to "
23730 "cylinders is not required by any modern operating system."
23734 #: ../resize/virt-resize.pod:555
23735 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
23739 #: ../resize/virt-resize.pod:557
23741 "In Windows Vista and later versions, Microsoft switched to using a separate "
23742 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
23743 "and C</dev/sda2> is the main (C:) drive. We have not had any luck resizing "
23744 "the boot partition. Doing so seems to break the guest completely. However "
23745 "expanding the second partition (ie. C: drive) should work."
23749 #: ../resize/virt-resize.pod:564
23751 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
23752 "NTFS partitions have been expanded. This is just a safety check and (unless "
23753 "it find errors) is nothing to worry about."
23757 #: ../resize/virt-resize.pod:568
23758 msgid "GUEST BOOT STUCK AT \"GRUB\""
23762 #: ../resize/virt-resize.pod:570
23764 "If a Linux guest does not boot after resizing, and the boot is stuck after "
23765 "printing C<GRUB> on the console, try reinstalling grub. This sometimes "
23766 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
23767 "although we think is to do with partition alignment."
23771 #: ../resize/virt-resize.pod:575
23774 " guestfish -i -a newdisk\n"
23775 " ><fs> cat /boot/grub/device.map\n"
23776 " # check the contents of this file are sensible or\n"
23777 " # edit the file if necessary\n"
23778 " ><fs> grub-install / /dev/vda\n"
23784 #: ../resize/virt-resize.pod:582
23786 "For more flexible guest reconfiguration, including if you need to specify "
23787 "other parameters to grub-install, use L<virt-rescue(1)>."
23791 #: ../resize/virt-resize.pod:585
23792 msgid "ALTERNATIVE TOOLS"
23796 #: ../resize/virt-resize.pod:587
23798 "There are several proprietary tools for resizing partitions. We won't "
23799 "mention any here."
23803 #: ../resize/virt-resize.pod:590
23805 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
23806 "operations on disk images. They can resize and move partitions, but I don't "
23807 "think they can do anything with the contents, and they certainly don't "
23812 #: ../resize/virt-resize.pod:595
23814 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
23815 "but at a much lower level. You will probably end up hand-calculating sector "
23816 "offsets, which is something that virt-resize was designed to avoid. If you "
23817 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
23822 #: ../resize/virt-resize.pod:615
23824 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
23825 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
23826 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
23827 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
23828 "L<http://libguestfs.org/>."
23832 #: ../ruby/examples/guestfs-ruby.pod:5
23833 msgid "guestfs-ruby - How to use libguestfs from Ruby"
23837 #: ../ruby/examples/guestfs-ruby.pod:9
23840 " require 'guestfs'\n"
23841 " g = Guestfs::Guestfs.new()\n"
23842 " g.add_drive_opts(\"disk.img\",\n"
23843 " :readonly => 1, :format => \"raw\")\n"
23849 #: ../ruby/examples/guestfs-ruby.pod:17
23851 "This manual page documents how to call libguestfs from the Ruby programming "
23852 "language. This page just documents the differences from the C API and gives "
23853 "some examples. If you are not familiar with using libguestfs, you also need "
23854 "to read L<guestfs(3)>."
23858 #: ../ruby/examples/guestfs-ruby.pod:24
23860 "Errors from libguestfs functions are mapped into the C<Error> exception. "
23861 "This has a single parameter which is the error message (a string)."
23865 #: ../ruby/examples/guestfs-ruby.pod:38
23868 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23869 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23870 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23872 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23873 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
23874 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
23876 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23877 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23878 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23881 #: ../sparsify/virt-sparsify.pod:5
23882 msgid "virt-sparsify - Make a virtual machine disk sparse"
23886 #: ../sparsify/virt-sparsify.pod:9
23889 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
23892 " virt-sparsify [--options] indisk outdisk\n"
23895 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
23899 #: ../sparsify/virt-sparsify.pod:13
23901 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
23902 "image) sparse a.k.a. thin-provisioned. This means that free space within "
23903 "the disk image can be converted back to free space on the host."
23907 #: ../sparsify/virt-sparsify.pod:18
23909 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
23910 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
23914 #: ../sparsify/virt-sparsify.pod:21
23916 "Virt-sparsify can also convert between some disk formats, for example "
23917 "converting a raw disk image to a thin-provisioned qcow2 image."
23921 #: ../sparsify/virt-sparsify.pod:24
23923 "Virt-sparsify can operate on any disk image, not just ones from virtual "
23924 "machines. If a virtual machine has more than one attached disk, you must "
23925 "sparsify each one separately."
23929 #: ../sparsify/virt-sparsify.pod:28
23930 msgid "IMPORTANT LIMITATIONS"
23934 #: ../sparsify/virt-sparsify.pod:34
23936 "Virt-sparsify does not do in-place modifications. It copies from a source "
23937 "image to a destination image, leaving the source unchanged. I<Check that "
23938 "the sparsification was successful before deleting the source image>."
23942 #: ../sparsify/virt-sparsify.pod:41
23943 msgid "The virtual machine I<must be shut down> before using this tool."
23947 #: ../sparsify/virt-sparsify.pod:45
23949 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
23950 "(1 temporary copy + 1 destination image). This is in the worst case and "
23951 "usually much less space is required."
23955 #: ../sparsify/virt-sparsify.pod:51
23957 "Virt-sparsify cannot resize disk images. To do that, use L<virt-resize(1)>."
23961 #: ../sparsify/virt-sparsify.pod:56
23962 msgid "Virt-sparsify cannot handle encrypted disks."
23966 #: ../sparsify/virt-sparsify.pod:60
23968 "Virt-sparsify cannot yet sparsify the space between partitions. Note that "
23969 "this space is often used for critical items like bootloaders so it's not "
23974 #: ../sparsify/virt-sparsify.pod:66
23976 "Virt-sparsify does not yet know how to sparsify swapspace. It is not safe "
23977 "to do this unless we can be sure there is no hibernation data, so at the "
23978 "moment swap partitions are ignored."
23982 #: ../sparsify/virt-sparsify.pod:72
23984 "You may also want to read the manual pages for the associated tools L<virt-"
23985 "filesystems(1)> and L<virt-df(1)> before starting."
23989 #: ../sparsify/virt-sparsify.pod:77
23990 msgid "Typical usage is:"
23994 #: ../sparsify/virt-sparsify.pod:79
23997 " virt-sparsify indisk outdisk\n"
24002 #: ../sparsify/virt-sparsify.pod:81
24004 "which copies C<indisk> to C<outdisk>, making the output sparse. C<outdisk> "
24005 "is created, or overwritten if it already exists. The format of the input "
24006 "disk is detected (eg. qcow2) and the same format is used for the output disk."
24010 #: ../sparsify/virt-sparsify.pod:86
24011 msgid "To convert between formats, use the I<--convert> option:"
24015 #: ../sparsify/virt-sparsify.pod:88
24018 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24023 #: ../sparsify/virt-sparsify.pod:90
24025 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24026 "can find within the source disk image. You can get it to ignore (don't zero "
24027 "free space on) certain filesystems by doing:"
24031 #: ../sparsify/virt-sparsify.pod:94
24034 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24039 #: ../sparsify/virt-sparsify.pod:96
24041 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24045 #: ../sparsify/virt-sparsify.pod:107
24047 #| msgid "B<--connect URI>"
24048 msgid "B<--convert> raw"
24049 msgstr "B<--connect адреса>"
24052 #: ../sparsify/virt-sparsify.pod:109
24054 #| msgid "B<--format=raw|qcow2|..>"
24055 msgid "B<--convert> qcow2"
24056 msgstr "B<--format=raw|qcow2|..>"
24059 #: ../sparsify/virt-sparsify.pod:111
24060 msgid "B<--convert> [other formats]"
24064 #: ../sparsify/virt-sparsify.pod:113
24066 "Use C<output-format> as the format for the destination image. If this is "
24067 "not specified, then the input format is used."
24071 #: ../sparsify/virt-sparsify.pod:116
24072 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
24076 #: ../sparsify/virt-sparsify.pod:118
24078 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
24079 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
24083 #: ../sparsify/virt-sparsify.pod:122
24085 "Specifying the I<--convert> option is usually a good idea, because then virt-"
24086 "sparsify doesn't need to try to guess the input format."
24090 #: ../sparsify/virt-sparsify.pod:127
24092 #| msgid "B<--format=raw|qcow2|..>"
24093 msgid "B<--format> qcow2"
24094 msgstr "B<--format=raw|qcow2|..>"
24097 #: ../sparsify/virt-sparsify.pod:135
24099 #| msgid "list-filesystems"
24100 msgid "B<--ignore> filesystem"
24101 msgstr "list-filesystems"
24104 #: ../sparsify/virt-sparsify.pod:137
24106 #| msgid "B<--verbose>"
24107 msgid "B<--ignore> volgroup"
24108 msgstr "B<--verbose>"
24111 #: ../sparsify/virt-sparsify.pod:139
24113 "Ignore the named filesystem. Free space on the filesystem will not be "
24114 "zeroed, but existing blocks of zeroes will still be sparsified."
24118 #: ../sparsify/virt-sparsify.pod:142
24120 "In the second form, this ignores the named volume group. Use the volume "
24121 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
24125 #: ../sparsify/virt-sparsify.pod:157
24126 msgid "This disables progress bars and other unnecessary output."
24130 #: ../sparsify/virt-sparsify.pod:179
24132 "The I<--machine-readable> option can be used to make the output more machine "
24133 "friendly, which is useful when calling virt-sparsify from other programs, "
24138 #: ../sparsify/virt-sparsify.pod:185
24140 "Firstly use the option on its own to query the capabilities of the virt-"
24141 "sparsify binary. Typical output looks like this:"
24145 #: ../sparsify/virt-sparsify.pod:188
24148 " $ virt-sparsify --machine-readable\n"
24156 #: ../sparsify/virt-sparsify.pod:218
24158 "The calling program should treat messages sent to stderr as error messages. "
24159 "In addition, virt-sparsify exits with a non-zero status code if there was a "
24164 #: ../sparsify/virt-sparsify.pod:224
24166 "All versions of virt-sparsify have supported the I<--machine-readable> "
24171 #: ../sparsify/virt-sparsify.pod:238
24173 "Location of the temporary directory used for the potentially large temporary "
24178 #: ../sparsify/virt-sparsify.pod:241
24180 "You should ensure there is enough free space in the worst case for a full "
24181 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
24182 "to another directory that has enough space."
24186 #: ../sparsify/virt-sparsify.pod:245
24188 #| msgid "The default is C<ext2>."
24189 msgid "This defaults to C</tmp>."
24190 msgstr "Типовим значенням є C<ext2>."
24193 #: ../sparsify/virt-sparsify.pod:249
24195 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
24199 #: ../sparsify/virt-sparsify.pod:253
24202 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
24203 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
24204 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
24205 #| "libguestfs.org/>."
24207 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
24208 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
24209 "(1)>, L<http://libguestfs.org/>."
24211 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
24212 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
24213 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
24217 #: ../src/guestfs-actions.pod:1
24218 msgid "guestfs_add_cdrom"
24222 #: ../src/guestfs-actions.pod:3
24226 " guestfs_add_cdrom (guestfs_h *g,\n"
24227 " const char *filename);\n"
24232 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
24233 #: ../src/guestfs-actions.pod:270
24235 "I<This function is deprecated.> In new code, use the L</"
24236 "guestfs_add_drive_opts> call instead."
24240 #: ../src/guestfs-actions.pod:24
24242 "This call checks for the existence of C<filename>. This stops you from "
24243 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24244 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call "
24249 #: ../src/guestfs-actions.pod:31
24251 "If you just want to add an ISO file (often you use this as an efficient way "
24252 "to transfer large files into the guest), then you should probably use "
24253 "C<guestfs_add_drive_ro> instead."
24257 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
24258 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
24259 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
24260 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
24261 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
24262 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
24263 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
24264 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
24265 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
24266 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
24267 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
24268 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
24269 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
24270 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1233
24271 #: ../src/guestfs-actions.pod:1279 ../src/guestfs-actions.pod:1297
24272 #: ../src/guestfs-actions.pod:1316 ../src/guestfs-actions.pod:1330
24273 #: ../src/guestfs-actions.pod:1350 ../src/guestfs-actions.pod:1420
24274 #: ../src/guestfs-actions.pod:1451 ../src/guestfs-actions.pod:1476
24275 #: ../src/guestfs-actions.pod:1518 ../src/guestfs-actions.pod:1631
24276 #: ../src/guestfs-actions.pod:1658 ../src/guestfs-actions.pod:1873
24277 #: ../src/guestfs-actions.pod:1895 ../src/guestfs-actions.pod:1982
24278 #: ../src/guestfs-actions.pod:2490 ../src/guestfs-actions.pod:2634
24279 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2730
24280 #: ../src/guestfs-actions.pod:3774 ../src/guestfs-actions.pod:3789
24281 #: ../src/guestfs-actions.pod:3814 ../src/guestfs-actions.pod:4003
24282 #: ../src/guestfs-actions.pod:4017 ../src/guestfs-actions.pod:4030
24283 #: ../src/guestfs-actions.pod:4044 ../src/guestfs-actions.pod:4059
24284 #: ../src/guestfs-actions.pod:4095 ../src/guestfs-actions.pod:4167
24285 #: ../src/guestfs-actions.pod:4187 ../src/guestfs-actions.pod:4204
24286 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:4250
24287 #: ../src/guestfs-actions.pod:4285 ../src/guestfs-actions.pod:4304
24288 #: ../src/guestfs-actions.pod:4323 ../src/guestfs-actions.pod:4358
24289 #: ../src/guestfs-actions.pod:4370 ../src/guestfs-actions.pod:4406
24290 #: ../src/guestfs-actions.pod:4422 ../src/guestfs-actions.pod:4435
24291 #: ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:4467
24292 #: ../src/guestfs-actions.pod:4560 ../src/guestfs-actions.pod:4580
24293 #: ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4644
24294 #: ../src/guestfs-actions.pod:4662 ../src/guestfs-actions.pod:4680
24295 #: ../src/guestfs-actions.pod:4696 ../src/guestfs-actions.pod:4710
24296 #: ../src/guestfs-actions.pod:4724 ../src/guestfs-actions.pod:4741
24297 #: ../src/guestfs-actions.pod:4756 ../src/guestfs-actions.pod:4783
24298 #: ../src/guestfs-actions.pod:4846 ../src/guestfs-actions.pod:4919
24299 #: ../src/guestfs-actions.pod:4950 ../src/guestfs-actions.pod:4969
24300 #: ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5000
24301 #: ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5030
24302 #: ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5060
24303 #: ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:5118
24304 #: ../src/guestfs-actions.pod:5157 ../src/guestfs-actions.pod:5177
24305 #: ../src/guestfs-actions.pod:5191 ../src/guestfs-actions.pod:5208
24306 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5310
24307 #: ../src/guestfs-actions.pod:5357 ../src/guestfs-actions.pod:5400
24308 #: ../src/guestfs-actions.pod:5428 ../src/guestfs-actions.pod:5445
24309 #: ../src/guestfs-actions.pod:5463 ../src/guestfs-actions.pod:5603
24310 #: ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5682
24311 #: ../src/guestfs-actions.pod:5700 ../src/guestfs-actions.pod:5732
24312 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5815
24313 #: ../src/guestfs-actions.pod:5828 ../src/guestfs-actions.pod:5842
24314 #: ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150
24315 #: ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6183
24316 #: ../src/guestfs-actions.pod:6195 ../src/guestfs-actions.pod:6209
24317 #: ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6235
24318 #: ../src/guestfs-actions.pod:6251 ../src/guestfs-actions.pod:6272
24319 #: ../src/guestfs-actions.pod:6291 ../src/guestfs-actions.pod:6310
24320 #: ../src/guestfs-actions.pod:6340 ../src/guestfs-actions.pod:6358
24321 #: ../src/guestfs-actions.pod:6381 ../src/guestfs-actions.pod:6399
24322 #: ../src/guestfs-actions.pod:6418 ../src/guestfs-actions.pod:6439
24323 #: ../src/guestfs-actions.pod:6458 ../src/guestfs-actions.pod:6475
24324 #: ../src/guestfs-actions.pod:6494 ../src/guestfs-actions.pod:6522
24325 #: ../src/guestfs-actions.pod:6546 ../src/guestfs-actions.pod:6565
24326 #: ../src/guestfs-actions.pod:6581 ../src/guestfs-actions.pod:6605
24327 #: ../src/guestfs-actions.pod:6624 ../src/guestfs-actions.pod:6639
24328 #: ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6702
24329 #: ../src/guestfs-actions.pod:6732 ../src/guestfs-actions.pod:6765
24330 #: ../src/guestfs-actions.pod:6880 ../src/guestfs-actions.pod:7001
24331 #: ../src/guestfs-actions.pod:7013 ../src/guestfs-actions.pod:7026
24332 #: ../src/guestfs-actions.pod:7039 ../src/guestfs-actions.pod:7061
24333 #: ../src/guestfs-actions.pod:7074 ../src/guestfs-actions.pod:7087
24334 #: ../src/guestfs-actions.pod:7100 ../src/guestfs-actions.pod:7115
24335 #: ../src/guestfs-actions.pod:7174 ../src/guestfs-actions.pod:7191
24336 #: ../src/guestfs-actions.pod:7207 ../src/guestfs-actions.pod:7223
24337 #: ../src/guestfs-actions.pod:7240 ../src/guestfs-actions.pod:7253
24338 #: ../src/guestfs-actions.pod:7273 ../src/guestfs-actions.pod:7309
24339 #: ../src/guestfs-actions.pod:7323 ../src/guestfs-actions.pod:7364
24340 #: ../src/guestfs-actions.pod:7377 ../src/guestfs-actions.pod:7395
24341 #: ../src/guestfs-actions.pod:7429 ../src/guestfs-actions.pod:7465
24342 #: ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7596
24343 #: ../src/guestfs-actions.pod:7610 ../src/guestfs-actions.pod:7665
24344 #: ../src/guestfs-actions.pod:7678 ../src/guestfs-actions.pod:7723
24345 #: ../src/guestfs-actions.pod:7763 ../src/guestfs-actions.pod:7819
24346 #: ../src/guestfs-actions.pod:7839 ../src/guestfs-actions.pod:7872
24347 #: ../src/guestfs-actions.pod:7936 ../src/guestfs-actions.pod:7959
24348 #: ../src/guestfs-actions.pod:7988
24349 msgid "This function returns 0 on success or -1 on error."
24353 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
24354 #: ../src/guestfs-actions.pod:1281 ../src/guestfs-actions.pod:2096
24355 #: ../src/guestfs-actions.pod:2194 ../src/guestfs-actions.pod:2319
24356 #: ../src/guestfs-actions.pod:3776 ../src/guestfs-actions.pod:3796
24357 #: ../src/guestfs-actions.pod:5094 ../src/guestfs-actions.pod:6360
24358 #: ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6626
24359 #: ../src/guestfs-actions.pod:7117 ../src/guestfs-actions.pod:7242
24360 #: ../src/guestfs-actions.pod:7765
24361 msgid "(Added in 0.3)"
24365 #: ../src/guestfs-actions.pod:41
24366 msgid "guestfs_add_domain"
24370 #: ../src/guestfs-actions.pod:43
24374 " guestfs_add_domain (guestfs_h *g,\n"
24375 " const char *dom,\n"
24381 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
24382 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:1161
24383 #: ../src/guestfs-actions.pod:1213 ../src/guestfs-actions.pod:2979
24384 #: ../src/guestfs-actions.pod:4795 ../src/guestfs-actions.pod:5104
24385 #: ../src/guestfs-actions.pod:5321
24387 "You may supply a list of optional arguments to this call. Use zero or more "
24388 "of the following pairs of parameters, and terminate the list with C<-1> on "
24389 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
24393 #: ../src/guestfs-actions.pod:53
24396 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
24397 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
24398 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
24399 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
24400 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
24405 #: ../src/guestfs-actions.pod:59
24407 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
24408 "It works by connecting to libvirt, requesting the domain and domain XML from "
24409 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
24414 #: ../src/guestfs-actions.pod:94
24416 "The other optional parameters are passed directly through to "
24417 "C<guestfs_add_drive_opts>."
24421 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
24422 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
24423 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
24424 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1496
24425 #: ../src/guestfs-actions.pod:1852 ../src/guestfs-actions.pod:2055
24426 #: ../src/guestfs-actions.pod:2166 ../src/guestfs-actions.pod:2217
24427 #: ../src/guestfs-actions.pod:2269 ../src/guestfs-actions.pod:2283
24428 #: ../src/guestfs-actions.pod:2306 ../src/guestfs-actions.pod:2621
24429 #: ../src/guestfs-actions.pod:3097 ../src/guestfs-actions.pod:3115
24430 #: ../src/guestfs-actions.pod:5280 ../src/guestfs-actions.pod:5500
24431 #: ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:5938
24432 #: ../src/guestfs-actions.pod:7350 ../src/guestfs-actions.pod:7776
24433 #: ../src/guestfs-actions.pod:7789 ../src/guestfs-actions.pod:7802
24434 msgid "On error this function returns -1."
24438 #: ../src/guestfs-actions.pod:99
24439 msgid "(Added in 1.7.4)"
24443 #: ../src/guestfs-actions.pod:101
24444 msgid "guestfs_add_domain_va"
24448 #: ../src/guestfs-actions.pod:103
24452 " guestfs_add_domain_va (guestfs_h *g,\n"
24453 " const char *dom,\n"
24454 " va_list args);\n"
24459 #: ../src/guestfs-actions.pod:108
24460 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
24464 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
24465 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
24466 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
24467 #: ../src/guestfs-actions.pod:1189 ../src/guestfs-actions.pod:1202
24468 #: ../src/guestfs-actions.pod:1248 ../src/guestfs-actions.pod:1261
24469 #: ../src/guestfs-actions.pod:3063 ../src/guestfs-actions.pod:3075
24470 #: ../src/guestfs-actions.pod:4860 ../src/guestfs-actions.pod:4872
24471 #: ../src/guestfs-actions.pod:5132 ../src/guestfs-actions.pod:5144
24472 #: ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5381
24473 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
24474 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
24477 #: ../src/guestfs-actions.pod:112
24478 msgid "guestfs_add_domain_argv"
24479 msgstr "guestfs_add_domain_argv"
24482 #: ../src/guestfs-actions.pod:114
24486 " guestfs_add_domain_argv (guestfs_h *g,\n"
24487 " const char *dom,\n"
24488 " const struct guestfs_add_domain_argv *optargs);\n"
24493 #: ../src/guestfs-actions.pod:119
24494 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
24498 #: ../src/guestfs-actions.pod:123
24499 msgid "guestfs_add_drive"
24503 #: ../src/guestfs-actions.pod:125
24507 " guestfs_add_drive (guestfs_h *g,\n"
24508 " const char *filename);\n"
24513 #: ../src/guestfs-actions.pod:129
24515 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
24516 "optional parameters, so the disk is added writable, with the format being "
24517 "detected automatically."
24521 #: ../src/guestfs-actions.pod:133
24523 "Automatic detection of the format opens you up to a potential security hole "
24524 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
24525 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
24526 "you should think about replacing calls to this function with calls to "
24527 "C<guestfs_add_drive_opts>, and specifying the format."
24531 #: ../src/guestfs-actions.pod:144
24532 msgid "guestfs_add_drive_opts"
24536 #: ../src/guestfs-actions.pod:146
24540 " guestfs_add_drive_opts (guestfs_h *g,\n"
24541 " const char *filename,\n"
24547 #: ../src/guestfs-actions.pod:156
24550 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
24551 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
24552 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
24557 #: ../src/guestfs-actions.pod:185
24559 "This forces the image format. If you omit this (or use C<guestfs_add_drive> "
24560 "or C<guestfs_add_drive_ro>) then the format is automatically detected. "
24561 "Possible formats include C<raw> and C<qcow2>."
24565 #: ../src/guestfs-actions.pod:196
24567 "This rarely-used option lets you emulate the behaviour of the deprecated "
24568 "C<guestfs_add_drive_with_if> call (q.v.)"
24572 #: ../src/guestfs-actions.pod:203
24573 msgid "(Added in 1.5.23)"
24577 #: ../src/guestfs-actions.pod:205
24578 msgid "guestfs_add_drive_opts_va"
24582 #: ../src/guestfs-actions.pod:207
24586 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
24587 " const char *filename,\n"
24588 " va_list args);\n"
24593 #: ../src/guestfs-actions.pod:212
24594 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
24598 #: ../src/guestfs-actions.pod:216
24599 msgid "guestfs_add_drive_opts_argv"
24603 #: ../src/guestfs-actions.pod:218
24607 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
24608 " const char *filename,\n"
24609 " const struct guestfs_add_drive_opts_argv *optargs);\n"
24614 #: ../src/guestfs-actions.pod:223
24615 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
24619 #: ../src/guestfs-actions.pod:227
24620 msgid "guestfs_add_drive_ro"
24624 #: ../src/guestfs-actions.pod:229
24628 " guestfs_add_drive_ro (guestfs_h *g,\n"
24629 " const char *filename);\n"
24634 #: ../src/guestfs-actions.pod:233
24636 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
24637 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
24638 "disk is added read-only, with the format being detected automatically."
24642 #: ../src/guestfs-actions.pod:240
24643 msgid "(Added in 1.0.38)"
24647 #: ../src/guestfs-actions.pod:242
24648 msgid "guestfs_add_drive_ro_with_if"
24652 #: ../src/guestfs-actions.pod:244
24656 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
24657 " const char *filename,\n"
24658 " const char *iface);\n"
24663 #: ../src/guestfs-actions.pod:256
24665 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
24666 "QEMU interface emulation to use at run time."
24670 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
24671 #: ../src/guestfs-actions.pod:2580
24672 msgid "(Added in 1.0.84)"
24676 #: ../src/guestfs-actions.pod:263
24677 msgid "guestfs_add_drive_with_if"
24681 #: ../src/guestfs-actions.pod:265
24685 " guestfs_add_drive_with_if (guestfs_h *g,\n"
24686 " const char *filename,\n"
24687 " const char *iface);\n"
24692 #: ../src/guestfs-actions.pod:277
24694 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
24695 "QEMU interface emulation to use at run time."
24699 #: ../src/guestfs-actions.pod:284
24700 msgid "guestfs_aug_clear"
24704 #: ../src/guestfs-actions.pod:286
24708 " guestfs_aug_clear (guestfs_h *g,\n"
24709 " const char *augpath);\n"
24714 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2308
24715 msgid "(Added in 1.3.4)"
24719 #: ../src/guestfs-actions.pod:297
24720 msgid "guestfs_aug_close"
24724 #: ../src/guestfs-actions.pod:299
24728 " guestfs_aug_close (guestfs_h *g);\n"
24733 #: ../src/guestfs-actions.pod:302
24735 "Close the current Augeas handle and free up any resources used by it. After "
24736 "calling this, you have to call C<guestfs_aug_init> again before you can use "
24737 "any other Augeas functions."
24741 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
24742 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
24743 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
24744 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
24745 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
24746 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
24747 #: ../src/guestfs-actions.pod:5989
24748 msgid "(Added in 0.7)"
24752 #: ../src/guestfs-actions.pod:311
24753 msgid "guestfs_aug_defnode"
24757 #: ../src/guestfs-actions.pod:313
24760 " struct guestfs_int_bool *\n"
24761 " guestfs_aug_defnode (guestfs_h *g,\n"
24762 " const char *name,\n"
24763 " const char *expr,\n"
24764 " const char *val);\n"
24769 #: ../src/guestfs-actions.pod:322
24771 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
24772 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
24773 "containing that single node."
24777 #: ../src/guestfs-actions.pod:330
24779 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
24780 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
24784 #: ../src/guestfs-actions.pod:336
24785 msgid "guestfs_aug_defvar"
24789 #: ../src/guestfs-actions.pod:338
24793 " guestfs_aug_defvar (guestfs_h *g,\n"
24794 " const char *name,\n"
24795 " const char *expr);\n"
24800 #: ../src/guestfs-actions.pod:354
24801 msgid "guestfs_aug_get"
24805 #: ../src/guestfs-actions.pod:356
24809 " guestfs_aug_get (guestfs_h *g,\n"
24810 " const char *augpath);\n"
24815 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
24816 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
24817 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
24818 #: ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1382
24819 #: ../src/guestfs-actions.pod:1401 ../src/guestfs-actions.pod:1535
24820 #: ../src/guestfs-actions.pod:1723 ../src/guestfs-actions.pod:1835
24821 #: ../src/guestfs-actions.pod:1998 ../src/guestfs-actions.pod:2015
24822 #: ../src/guestfs-actions.pod:2082 ../src/guestfs-actions.pod:2125
24823 #: ../src/guestfs-actions.pod:2146 ../src/guestfs-actions.pod:2331
24824 #: ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:2749
24825 #: ../src/guestfs-actions.pod:2843 ../src/guestfs-actions.pod:2947
24826 #: ../src/guestfs-actions.pod:2966 ../src/guestfs-actions.pod:3180
24827 #: ../src/guestfs-actions.pod:3208 ../src/guestfs-actions.pod:3229
24828 #: ../src/guestfs-actions.pod:3263 ../src/guestfs-actions.pod:3322
24829 #: ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3362
24830 #: ../src/guestfs-actions.pod:3989 ../src/guestfs-actions.pod:4342
24831 #: ../src/guestfs-actions.pod:4512 ../src/guestfs-actions.pod:4622
24832 #: ../src/guestfs-actions.pod:5518 ../src/guestfs-actions.pod:5717
24833 #: ../src/guestfs-actions.pod:5887 ../src/guestfs-actions.pod:6065
24834 #: ../src/guestfs-actions.pod:6114 ../src/guestfs-actions.pod:6786
24835 #: ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6826
24836 #: ../src/guestfs-actions.pod:6850 ../src/guestfs-actions.pod:7524
24837 #: ../src/guestfs-actions.pod:7543 ../src/guestfs-actions.pod:7561
24838 #: ../src/guestfs-actions.pod:7735 ../src/guestfs-actions.pod:8052
24840 "This function returns a string, or NULL on error. I<The caller must free "
24841 "the returned string after use>."
24845 #: ../src/guestfs-actions.pod:368
24846 msgid "guestfs_aug_init"
24850 #: ../src/guestfs-actions.pod:370
24854 " guestfs_aug_init (guestfs_h *g,\n"
24855 " const char *root,\n"
24861 #: ../src/guestfs-actions.pod:379
24862 msgid "You must call this before using any other C<guestfs_aug_*> commands."
24866 #: ../src/guestfs-actions.pod:404
24868 "This option is only useful when debugging Augeas lenses. Use of this option "
24869 "may require additional memory for the libguestfs appliance. You may need to "
24870 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
24871 "C<guestfs_set_memsize>."
24875 #: ../src/guestfs-actions.pod:419
24876 msgid "Do not load the tree in C<guestfs_aug_init>."
24880 #: ../src/guestfs-actions.pod:423
24881 msgid "To close the handle, you can call C<guestfs_aug_close>."
24885 #: ../src/guestfs-actions.pod:431
24886 msgid "guestfs_aug_insert"
24890 #: ../src/guestfs-actions.pod:433
24894 " guestfs_aug_insert (guestfs_h *g,\n"
24895 " const char *augpath,\n"
24896 " const char *label,\n"
24902 #: ../src/guestfs-actions.pod:451
24903 msgid "guestfs_aug_load"
24907 #: ../src/guestfs-actions.pod:453
24911 " guestfs_aug_load (guestfs_h *g);\n"
24916 #: ../src/guestfs-actions.pod:465
24917 msgid "guestfs_aug_ls"
24921 #: ../src/guestfs-actions.pod:467
24925 " guestfs_aug_ls (guestfs_h *g,\n"
24926 " const char *augpath);\n"
24931 #: ../src/guestfs-actions.pod:471
24933 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
24934 "sorting the resulting nodes into alphabetical order."
24938 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
24939 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
24940 #: ../src/guestfs-actions.pod:1550 ../src/guestfs-actions.pod:1569
24941 #: ../src/guestfs-actions.pod:1672 ../src/guestfs-actions.pod:1691
24942 #: ../src/guestfs-actions.pod:1937 ../src/guestfs-actions.pod:2403
24943 #: ../src/guestfs-actions.pod:2419 ../src/guestfs-actions.pod:2438
24944 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2527
24945 #: ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2647
24946 #: ../src/guestfs-actions.pod:2908 ../src/guestfs-actions.pod:3282
24947 #: ../src/guestfs-actions.pod:3558 ../src/guestfs-actions.pod:3872
24948 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3909
24949 #: ../src/guestfs-actions.pod:3971 ../src/guestfs-actions.pod:4076
24950 #: ../src/guestfs-actions.pod:4484 ../src/guestfs-actions.pod:5241
24951 #: ../src/guestfs-actions.pod:5859 ../src/guestfs-actions.pod:5985
24952 #: ../src/guestfs-actions.pod:6099 ../src/guestfs-actions.pod:6866
24953 #: ../src/guestfs-actions.pod:6927 ../src/guestfs-actions.pod:6982
24954 #: ../src/guestfs-actions.pod:7128 ../src/guestfs-actions.pod:7152
24955 #: ../src/guestfs-actions.pod:7628 ../src/guestfs-actions.pod:7648
24956 #: ../src/guestfs-actions.pod:7695 ../src/guestfs-actions.pod:7889
24957 #: ../src/guestfs-actions.pod:7908 ../src/guestfs-actions.pod:8002
24958 #: ../src/guestfs-actions.pod:8021 ../src/guestfs-actions.pod:8067
24959 #: ../src/guestfs-actions.pod:8086
24961 "This function returns a NULL-terminated array of strings (like L<environ(3)"
24962 ">), or NULL if there was an error. I<The caller must free the strings and "
24963 "the array after use>."
24967 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
24968 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1607
24969 #: ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:3667
24970 #: ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:4375
24971 #: ../src/guestfs-actions.pod:4562 ../src/guestfs-actions.pod:4595
24972 #: ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:5245
24973 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:6197
24974 #: ../src/guestfs-actions.pod:6211 ../src/guestfs-actions.pod:6223
24975 #: ../src/guestfs-actions.pod:6707 ../src/guestfs-actions.pod:7366
24976 #: ../src/guestfs-actions.pod:7379 ../src/guestfs-actions.pod:7612
24977 #: ../src/guestfs-actions.pod:7877
24978 msgid "(Added in 0.8)"
24982 #: ../src/guestfs-actions.pod:480
24983 msgid "guestfs_aug_match"
24987 #: ../src/guestfs-actions.pod:482
24991 " guestfs_aug_match (guestfs_h *g,\n"
24992 " const char *augpath);\n"
24997 #: ../src/guestfs-actions.pod:496
24998 msgid "guestfs_aug_mv"
25002 #: ../src/guestfs-actions.pod:498
25006 " guestfs_aug_mv (guestfs_h *g,\n"
25007 " const char *src,\n"
25008 " const char *dest);\n"
25013 #: ../src/guestfs-actions.pod:510
25014 msgid "guestfs_aug_rm"
25018 #: ../src/guestfs-actions.pod:512
25022 " guestfs_aug_rm (guestfs_h *g,\n"
25023 " const char *augpath);\n"
25028 #: ../src/guestfs-actions.pod:524
25029 msgid "guestfs_aug_save"
25033 #: ../src/guestfs-actions.pod:526
25037 " guestfs_aug_save (guestfs_h *g);\n"
25042 #: ../src/guestfs-actions.pod:531
25044 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25049 #: ../src/guestfs-actions.pod:538
25050 msgid "guestfs_aug_set"
25054 #: ../src/guestfs-actions.pod:540
25058 " guestfs_aug_set (guestfs_h *g,\n"
25059 " const char *augpath,\n"
25060 " const char *val);\n"
25065 #: ../src/guestfs-actions.pod:547
25067 "In the Augeas API, it is possible to clear a node by setting the value to "
25068 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
25069 "this call. Instead you must use the C<guestfs_aug_clear> call."
25073 #: ../src/guestfs-actions.pod:556
25074 msgid "guestfs_available"
25078 #: ../src/guestfs-actions.pod:558
25082 " guestfs_available (guestfs_h *g,\n"
25083 " char *const *groups);\n"
25088 #: ../src/guestfs-actions.pod:566
25090 "The libguestfs groups, and the functions that those groups correspond to, "
25091 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
25092 "runtime by calling C<guestfs_available_all_groups>."
25096 #: ../src/guestfs-actions.pod:590
25097 msgid "You must call C<guestfs_launch> before calling this function."
25101 #: ../src/guestfs-actions.pod:612
25103 "This call was added in version C<1.0.80>. In previous versions of "
25104 "libguestfs all you could do would be to speculatively execute a command to "
25105 "find out if the daemon implemented it. See also C<guestfs_version>."
25109 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1352
25110 msgid "(Added in 1.0.80)"
25114 #: ../src/guestfs-actions.pod:623
25115 msgid "guestfs_available_all_groups"
25119 #: ../src/guestfs-actions.pod:625
25123 " guestfs_available_all_groups (guestfs_h *g);\n"
25128 #: ../src/guestfs-actions.pod:628
25130 "This command returns a list of all optional groups that this daemon knows "
25131 "about. Note this returns both supported and unsupported groups. To find "
25132 "out which ones the daemon can actually support you have to call "
25133 "C<guestfs_available> on each member of the returned list."
25137 #: ../src/guestfs-actions.pod:634
25138 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25142 #: ../src/guestfs-actions.pod:640
25143 msgid "(Added in 1.3.15)"
25147 #: ../src/guestfs-actions.pod:642
25148 msgid "guestfs_base64_in"
25152 #: ../src/guestfs-actions.pod:644
25156 " guestfs_base64_in (guestfs_h *g,\n"
25157 " const char *base64file,\n"
25158 " const char *filename);\n"
25163 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
25164 msgid "(Added in 1.3.5)"
25168 #: ../src/guestfs-actions.pod:656
25169 msgid "guestfs_base64_out"
25173 #: ../src/guestfs-actions.pod:658
25177 " guestfs_base64_out (guestfs_h *g,\n"
25178 " const char *filename,\n"
25179 " const char *base64file);\n"
25184 #: ../src/guestfs-actions.pod:670
25185 msgid "guestfs_blockdev_flushbufs"
25189 #: ../src/guestfs-actions.pod:672
25193 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25194 " const char *device);\n"
25199 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
25200 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
25201 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
25202 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
25203 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
25204 msgid "(Added in 0.9.3)"
25208 #: ../src/guestfs-actions.pod:685
25209 msgid "guestfs_blockdev_getbsz"
25213 #: ../src/guestfs-actions.pod:687
25217 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25218 " const char *device);\n"
25223 #: ../src/guestfs-actions.pod:702
25224 msgid "guestfs_blockdev_getro"
25228 #: ../src/guestfs-actions.pod:704
25232 " guestfs_blockdev_getro (guestfs_h *g,\n"
25233 " const char *device);\n"
25238 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1590
25239 #: ../src/guestfs-actions.pod:1605 ../src/guestfs-actions.pod:2094
25240 #: ../src/guestfs-actions.pod:2105 ../src/guestfs-actions.pod:2177
25241 #: ../src/guestfs-actions.pod:2203 ../src/guestfs-actions.pod:2243
25242 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:2294
25243 #: ../src/guestfs-actions.pod:2317 ../src/guestfs-actions.pod:3379
25244 #: ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:3413
25245 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3589
25246 #: ../src/guestfs-actions.pod:3604 ../src/guestfs-actions.pod:3618
25247 #: ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3649
25248 #: ../src/guestfs-actions.pod:3665 ../src/guestfs-actions.pod:3679
25249 #: ../src/guestfs-actions.pod:3692 ../src/guestfs-actions.pod:3706
25250 #: ../src/guestfs-actions.pod:3721 ../src/guestfs-actions.pod:3736
25251 #: ../src/guestfs-actions.pod:3749 ../src/guestfs-actions.pod:3763
25252 #: ../src/guestfs-actions.pod:5482
25253 msgid "This function returns a C truth value on success or -1 on error."
25257 #: ../src/guestfs-actions.pod:717
25258 msgid "guestfs_blockdev_getsize64"
25262 #: ../src/guestfs-actions.pod:719
25266 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
25267 " const char *device);\n"
25272 #: ../src/guestfs-actions.pod:725
25273 msgid "See also C<guestfs_blockdev_getsz>."
25277 #: ../src/guestfs-actions.pod:733
25278 msgid "guestfs_blockdev_getss"
25282 #: ../src/guestfs-actions.pod:735
25286 " guestfs_blockdev_getss (guestfs_h *g,\n"
25287 " const char *device);\n"
25292 #: ../src/guestfs-actions.pod:742
25294 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
25299 #: ../src/guestfs-actions.pod:751
25300 msgid "guestfs_blockdev_getsz"
25304 #: ../src/guestfs-actions.pod:753
25308 " guestfs_blockdev_getsz (guestfs_h *g,\n"
25309 " const char *device);\n"
25314 #: ../src/guestfs-actions.pod:760
25316 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
25317 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
25321 #: ../src/guestfs-actions.pod:770
25322 msgid "guestfs_blockdev_rereadpt"
25326 #: ../src/guestfs-actions.pod:772
25330 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
25331 " const char *device);\n"
25336 #: ../src/guestfs-actions.pod:784
25337 msgid "guestfs_blockdev_setbsz"
25341 #: ../src/guestfs-actions.pod:786
25345 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
25346 " const char *device,\n"
25347 " int blocksize);\n"
25352 #: ../src/guestfs-actions.pod:802
25353 msgid "guestfs_blockdev_setro"
25357 #: ../src/guestfs-actions.pod:804
25361 " guestfs_blockdev_setro (guestfs_h *g,\n"
25362 " const char *device);\n"
25367 #: ../src/guestfs-actions.pod:816
25368 msgid "guestfs_blockdev_setrw"
25372 #: ../src/guestfs-actions.pod:818
25376 " guestfs_blockdev_setrw (guestfs_h *g,\n"
25377 " const char *device);\n"
25382 #: ../src/guestfs-actions.pod:830
25383 msgid "guestfs_btrfs_filesystem_resize"
25387 #: ../src/guestfs-actions.pod:832
25391 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
25392 " const char *mountpoint,\n"
25398 #: ../src/guestfs-actions.pod:842
25401 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
25406 #: ../src/guestfs-actions.pod:865
25407 msgid "(Added in 1.11.17)"
25411 #: ../src/guestfs-actions.pod:867
25412 msgid "guestfs_btrfs_filesystem_resize_va"
25416 #: ../src/guestfs-actions.pod:869
25420 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
25421 " const char *mountpoint,\n"
25422 " va_list args);\n"
25427 #: ../src/guestfs-actions.pod:874
25428 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
25432 #: ../src/guestfs-actions.pod:878
25433 msgid "guestfs_btrfs_filesystem_resize_argv"
25437 #: ../src/guestfs-actions.pod:880
25441 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
25442 " const char *mountpoint,\n"
25443 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
25448 #: ../src/guestfs-actions.pod:885
25449 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
25453 #: ../src/guestfs-actions.pod:889
25454 msgid "guestfs_case_sensitive_path"
25458 #: ../src/guestfs-actions.pod:891
25462 " guestfs_case_sensitive_path (guestfs_h *g,\n"
25463 " const char *path);\n"
25468 #: ../src/guestfs-actions.pod:917
25470 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return C<"
25471 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
25472 "how the directories were originally created under Windows)."
25476 #: ../src/guestfs-actions.pod:925
25477 msgid "See also C<guestfs_realpath>."
25481 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7546
25482 msgid "(Added in 1.0.75)"
25486 #: ../src/guestfs-actions.pod:932
25487 msgid "guestfs_cat"
25491 #: ../src/guestfs-actions.pod:934
25495 " guestfs_cat (guestfs_h *g,\n"
25496 " const char *path);\n"
25501 #: ../src/guestfs-actions.pod:940
25503 "Note that this function cannot correctly handle binary files (specifically, "
25504 "files containing C<\\0> character which is treated as end of string). For "
25505 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
25506 "functions which have a more complex interface."
25510 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3893
25511 #: ../src/guestfs-actions.pod:3975 ../src/guestfs-actions.pod:3992
25512 #: ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4488
25513 #: ../src/guestfs-actions.pod:4502 ../src/guestfs-actions.pod:5863
25514 #: ../src/guestfs-actions.pod:5877 ../src/guestfs-actions.pod:7699
25515 #: ../src/guestfs-actions.pod:7713
25516 msgid "(Added in 0.4)"
25520 #: ../src/guestfs-actions.pod:953
25521 msgid "guestfs_checksum"
25525 #: ../src/guestfs-actions.pod:955
25529 " guestfs_checksum (guestfs_h *g,\n"
25530 " const char *csumtype,\n"
25531 " const char *path);\n"
25536 #: ../src/guestfs-actions.pod:1001
25537 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
25541 #: ../src/guestfs-actions.pod:1003
25542 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
25546 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1427
25547 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:3591
25548 #: ../src/guestfs-actions.pod:3620 ../src/guestfs-actions.pod:3681
25549 #: ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:7402
25550 msgid "(Added in 1.0.2)"
25554 #: ../src/guestfs-actions.pod:1010
25555 msgid "guestfs_checksum_device"
25559 #: ../src/guestfs-actions.pod:1012
25563 " guestfs_checksum_device (guestfs_h *g,\n"
25564 " const char *csumtype,\n"
25565 " const char *device);\n"
25570 #: ../src/guestfs-actions.pod:1017
25572 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
25573 "device named C<device>. For the types of checksums supported see the "
25574 "C<guestfs_checksum> command."
25578 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5312
25579 #: ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5484
25580 #: ../src/guestfs-actions.pod:5502 ../src/guestfs-actions.pod:5684
25581 #: ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7325
25582 #: ../src/guestfs-actions.pod:7725
25583 msgid "(Added in 1.3.2)"
25587 #: ../src/guestfs-actions.pod:1026
25588 msgid "guestfs_checksums_out"
25592 #: ../src/guestfs-actions.pod:1028
25596 " guestfs_checksums_out (guestfs_h *g,\n"
25597 " const char *csumtype,\n"
25598 " const char *directory,\n"
25599 " const char *sumsfile);\n"
25604 #: ../src/guestfs-actions.pod:1048
25605 msgid "(Added in 1.3.7)"
25609 #: ../src/guestfs-actions.pod:1050
25610 msgid "guestfs_chmod"
25614 #: ../src/guestfs-actions.pod:1052
25618 " guestfs_chmod (guestfs_h *g,\n"
25620 " const char *path);\n"
25625 #: ../src/guestfs-actions.pod:1070
25626 msgid "guestfs_chown"
25630 #: ../src/guestfs-actions.pod:1072
25634 " guestfs_chown (guestfs_h *g,\n"
25637 " const char *path);\n"
25642 #: ../src/guestfs-actions.pod:1088
25643 msgid "guestfs_command"
25647 #: ../src/guestfs-actions.pod:1090
25651 " guestfs_command (guestfs_h *g,\n"
25652 " char *const *arguments);\n"
25657 #: ../src/guestfs-actions.pod:1099
25659 "The single parameter is an argv-style list of arguments. The first element "
25660 "is the name of the program to run. Subsequent elements are parameters. The "
25661 "list must be non-empty (ie. must contain a program name). Note that the "
25662 "command runs directly, and is I<not> invoked via the shell (see "
25667 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
25668 #: ../src/guestfs-actions.pod:1726
25669 msgid "(Added in 0.9.1)"
25673 #: ../src/guestfs-actions.pod:1132
25674 msgid "guestfs_command_lines"
25678 #: ../src/guestfs-actions.pod:1134
25682 " guestfs_command_lines (guestfs_h *g,\n"
25683 " char *const *arguments);\n"
25688 #: ../src/guestfs-actions.pod:1138
25690 "This is the same as C<guestfs_command>, but splits the result into a list of "
25695 #: ../src/guestfs-actions.pod:1141
25696 msgid "See also: C<guestfs_sh_lines>"
25700 #: ../src/guestfs-actions.pod:1152
25702 #| msgid "guestfs_zero_device"
25703 msgid "guestfs_compress_device_out"
25704 msgstr "guestfs_zero_device"
25707 #: ../src/guestfs-actions.pod:1154
25711 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
25712 #| " const char *device,\n"
25713 #| " const char *key,\n"
25714 #| " int keyslot,\n"
25715 #| " const char *cipher);\n"
25719 " guestfs_compress_device_out (guestfs_h *g,\n"
25720 " const char *ctype,\n"
25721 " const char *device,\n"
25722 " const char *zdevice,\n"
25727 " guestfs_luks_format_cipher (guestfs_h *g,\n"
25728 " const char *device,\n"
25729 " const char *key,\n"
25731 " const char *cipher);\n"
25735 #: ../src/guestfs-actions.pod:1166
25738 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
25743 #: ../src/guestfs-actions.pod:1171
25745 "The C<ctype> and optional C<level> parameters have the same meaning as in "
25746 "C<guestfs_compress_out>."
25750 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1235
25751 #: ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:6583
25753 #| msgid "(Added in 1.3.1)"
25754 msgid "(Added in 1.13.15)"
25755 msgstr "(Додано у 1.3.1)"
25758 #: ../src/guestfs-actions.pod:1178
25760 #| msgid "guestfs_zero_device"
25761 msgid "guestfs_compress_device_out_va"
25762 msgstr "guestfs_zero_device"
25765 #: ../src/guestfs-actions.pod:1180
25769 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
25770 #| " const char *device,\n"
25771 #| " const char *key,\n"
25772 #| " int keyslot,\n"
25773 #| " const char *cipher);\n"
25777 " guestfs_compress_device_out_va (guestfs_h *g,\n"
25778 " const char *ctype,\n"
25779 " const char *device,\n"
25780 " const char *zdevice,\n"
25781 " va_list args);\n"
25785 " guestfs_luks_format_cipher (guestfs_h *g,\n"
25786 " const char *device,\n"
25787 " const char *key,\n"
25789 " const char *cipher);\n"
25793 #: ../src/guestfs-actions.pod:1187
25794 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
25798 #: ../src/guestfs-actions.pod:1191
25800 #| msgid "guestfs_mkfs_opts_argv"
25801 msgid "guestfs_compress_device_out_argv"
25802 msgstr "guestfs_mkfs_opts_argv"
25805 #: ../src/guestfs-actions.pod:1193
25809 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25810 #| " const char *fstype,\n"
25811 #| " const char *device,\n"
25812 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
25816 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
25817 " const char *ctype,\n"
25818 " const char *device,\n"
25819 " const char *zdevice,\n"
25820 " const struct guestfs_compress_device_out_argv *optargs);\n"
25824 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25825 " const char *fstype,\n"
25826 " const char *device,\n"
25827 " const struct guestfs_mkfs_opts_argv *optargs);\n"
25831 #: ../src/guestfs-actions.pod:1200
25832 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
25836 #: ../src/guestfs-actions.pod:1204
25838 #| msgid "guestfs_create"
25839 msgid "guestfs_compress_out"
25840 msgstr "guestfs_create"
25843 #: ../src/guestfs-actions.pod:1206
25847 #| " guestfs_luks_add_key (guestfs_h *g,\n"
25848 #| " const char *device,\n"
25849 #| " const char *key,\n"
25850 #| " const char *newkey,\n"
25851 #| " int keyslot);\n"
25855 " guestfs_compress_out (guestfs_h *g,\n"
25856 " const char *ctype,\n"
25857 " const char *file,\n"
25858 " const char *zfile,\n"
25863 " guestfs_luks_add_key (guestfs_h *g,\n"
25864 " const char *device,\n"
25865 " const char *key,\n"
25866 " const char *newkey,\n"
25871 #: ../src/guestfs-actions.pod:1218
25874 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
25879 #: ../src/guestfs-actions.pod:1237
25881 #| msgid "guestfs_mkfs_opts_va"
25882 msgid "guestfs_compress_out_va"
25883 msgstr "guestfs_mkfs_opts_va"
25886 #: ../src/guestfs-actions.pod:1239
25890 #| " guestfs_luks_add_key (guestfs_h *g,\n"
25891 #| " const char *device,\n"
25892 #| " const char *key,\n"
25893 #| " const char *newkey,\n"
25894 #| " int keyslot);\n"
25898 " guestfs_compress_out_va (guestfs_h *g,\n"
25899 " const char *ctype,\n"
25900 " const char *file,\n"
25901 " const char *zfile,\n"
25902 " va_list args);\n"
25906 " guestfs_luks_add_key (guestfs_h *g,\n"
25907 " const char *device,\n"
25908 " const char *key,\n"
25909 " const char *newkey,\n"
25914 #: ../src/guestfs-actions.pod:1246
25915 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
25919 #: ../src/guestfs-actions.pod:1250
25921 #| msgid "guestfs_mkfs_opts_argv"
25922 msgid "guestfs_compress_out_argv"
25923 msgstr "guestfs_mkfs_opts_argv"
25926 #: ../src/guestfs-actions.pod:1252
25930 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25931 #| " const char *fstype,\n"
25932 #| " const char *device,\n"
25933 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
25937 " guestfs_compress_out_argv (guestfs_h *g,\n"
25938 " const char *ctype,\n"
25939 " const char *file,\n"
25940 " const char *zfile,\n"
25941 " const struct guestfs_compress_out_argv *optargs);\n"
25945 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25946 " const char *fstype,\n"
25947 " const char *device,\n"
25948 " const struct guestfs_mkfs_opts_argv *optargs);\n"
25952 #: ../src/guestfs-actions.pod:1259
25953 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
25957 #: ../src/guestfs-actions.pod:1263
25958 msgid "guestfs_config"
25962 #: ../src/guestfs-actions.pod:1265
25966 " guestfs_config (guestfs_h *g,\n"
25967 " const char *qemuparam,\n"
25968 " const char *qemuvalue);\n"
25973 #: ../src/guestfs-actions.pod:1283
25974 msgid "guestfs_copy_size"
25978 #: ../src/guestfs-actions.pod:1285
25982 " guestfs_copy_size (guestfs_h *g,\n"
25983 " const char *src,\n"
25984 " const char *dest,\n"
25985 " int64_t size);\n"
25990 #: ../src/guestfs-actions.pod:1299 ../src/guestfs-actions.pod:1422
25991 #: ../src/guestfs-actions.pod:1453 ../src/guestfs-actions.pod:1498
25992 #: ../src/guestfs-actions.pod:1875 ../src/guestfs-actions.pod:1897
25993 #: ../src/guestfs-actions.pod:3791 ../src/guestfs-actions.pod:7397
25994 #: ../src/guestfs-actions.pod:7431 ../src/guestfs-actions.pod:7938
25995 #: ../src/guestfs-actions.pod:7961
25997 "This long-running command can generate progress notification messages so "
25998 "that the caller can display a progress bar or indicator. To receive these "
25999 "messages, the caller must register a progress event callback. See L<guestfs"
26000 "(3)/GUESTFS_EVENT_PROGRESS>."
26004 #: ../src/guestfs-actions.pod:1304 ../src/guestfs-actions.pod:4515
26005 #: ../src/guestfs-actions.pod:5890 ../src/guestfs-actions.pod:7632
26006 #: ../src/guestfs-actions.pod:7652 ../src/guestfs-actions.pod:7738
26007 msgid "(Added in 1.0.87)"
26011 #: ../src/guestfs-actions.pod:1306
26016 #: ../src/guestfs-actions.pod:1308
26020 " guestfs_cp (guestfs_h *g,\n"
26021 " const char *src,\n"
26022 " const char *dest);\n"
26027 #: ../src/guestfs-actions.pod:1318 ../src/guestfs-actions.pod:1332
26028 #: ../src/guestfs-actions.pod:1404 ../src/guestfs-actions.pod:1478
26029 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:5259
26030 #: ../src/guestfs-actions.pod:5734
26031 msgid "(Added in 1.0.18)"
26035 #: ../src/guestfs-actions.pod:1320
26036 msgid "guestfs_cp_a"
26040 #: ../src/guestfs-actions.pod:1322
26044 " guestfs_cp_a (guestfs_h *g,\n"
26045 " const char *src,\n"
26046 " const char *dest);\n"
26051 #: ../src/guestfs-actions.pod:1334
26056 #: ../src/guestfs-actions.pod:1336
26060 " guestfs_dd (guestfs_h *g,\n"
26061 " const char *src,\n"
26062 " const char *dest);\n"
26067 #: ../src/guestfs-actions.pod:1346
26069 "If the destination is a device, it must be as large or larger than the "
26070 "source file or device, otherwise the copy will fail. This command cannot do "
26071 "partial copies (see C<guestfs_copy_size>)."
26075 #: ../src/guestfs-actions.pod:1354
26080 #: ../src/guestfs-actions.pod:1356
26084 " guestfs_df (guestfs_h *g);\n"
26089 #: ../src/guestfs-actions.pod:1361 ../src/guestfs-actions.pod:1378
26091 "This command is mostly useful for interactive sessions. It is I<not> "
26092 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
26097 #: ../src/guestfs-actions.pod:1368 ../src/guestfs-actions.pod:1385
26098 #: ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:2510
26099 #: ../src/guestfs-actions.pod:2534 ../src/guestfs-actions.pod:2602
26100 #: ../src/guestfs-actions.pod:4625 ../src/guestfs-actions.pod:5159
26101 #: ../src/guestfs-actions.pod:7135 ../src/guestfs-actions.pod:7159
26102 #: ../src/guestfs-actions.pod:7778 ../src/guestfs-actions.pod:7791
26103 #: ../src/guestfs-actions.pod:7804
26104 msgid "(Added in 1.0.54)"
26108 #: ../src/guestfs-actions.pod:1370
26109 msgid "guestfs_df_h"
26113 #: ../src/guestfs-actions.pod:1372
26117 " guestfs_df_h (guestfs_h *g);\n"
26122 #: ../src/guestfs-actions.pod:1387
26123 msgid "guestfs_dmesg"
26127 #: ../src/guestfs-actions.pod:1389
26131 " guestfs_dmesg (guestfs_h *g);\n"
26136 #: ../src/guestfs-actions.pod:1396
26138 "Another way to get the same information is to enable verbose messages with "
26139 "C<guestfs_set_verbose> or by setting the environment variable "
26140 "C<LIBGUESTFS_DEBUG=1> before running the program."
26144 #: ../src/guestfs-actions.pod:1406
26145 msgid "guestfs_download"
26149 #: ../src/guestfs-actions.pod:1408
26153 " guestfs_download (guestfs_h *g,\n"
26154 " const char *remotefilename,\n"
26155 " const char *filename);\n"
26160 #: ../src/guestfs-actions.pod:1418
26161 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
26165 #: ../src/guestfs-actions.pod:1429
26166 msgid "guestfs_download_offset"
26170 #: ../src/guestfs-actions.pod:1431
26174 " guestfs_download_offset (guestfs_h *g,\n"
26175 " const char *remotefilename,\n"
26176 " const char *filename,\n"
26177 " int64_t offset,\n"
26178 " int64_t size);\n"
26183 #: ../src/guestfs-actions.pod:1444
26185 "Note that there is no limit on the amount of data that can be downloaded "
26186 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
26187 "full amount unless an error occurs."
26191 #: ../src/guestfs-actions.pod:1449
26192 msgid "See also C<guestfs_download>, C<guestfs_pread>."
26196 #: ../src/guestfs-actions.pod:1458 ../src/guestfs-actions.pod:7436
26197 msgid "(Added in 1.5.17)"
26201 #: ../src/guestfs-actions.pod:1460
26202 msgid "guestfs_drop_caches"
26206 #: ../src/guestfs-actions.pod:1462
26210 " guestfs_drop_caches (guestfs_h *g,\n"
26211 " int whattodrop);\n"
26216 #: ../src/guestfs-actions.pod:1480
26221 #: ../src/guestfs-actions.pod:1482
26225 " guestfs_du (guestfs_h *g,\n"
26226 " const char *path);\n"
26231 #: ../src/guestfs-actions.pod:1505
26232 msgid "guestfs_e2fsck_f"
26236 #: ../src/guestfs-actions.pod:1507
26240 " guestfs_e2fsck_f (guestfs_h *g,\n"
26241 " const char *device);\n"
26246 #: ../src/guestfs-actions.pod:1515
26248 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
26249 "Normally you should use C<guestfs_fsck>."
26253 #: ../src/guestfs-actions.pod:1520
26254 msgid "(Added in 1.0.29)"
26258 #: ../src/guestfs-actions.pod:1522
26259 msgid "guestfs_echo_daemon"
26263 #: ../src/guestfs-actions.pod:1524
26267 " guestfs_echo_daemon (guestfs_h *g,\n"
26268 " char *const *words);\n"
26273 #: ../src/guestfs-actions.pod:1533
26274 msgid "See also C<guestfs_ping_daemon>."
26278 #: ../src/guestfs-actions.pod:1538 ../src/guestfs-actions.pod:2296
26279 #: ../src/guestfs-actions.pod:6607
26280 msgid "(Added in 1.0.69)"
26284 #: ../src/guestfs-actions.pod:1540
26285 msgid "guestfs_egrep"
26289 #: ../src/guestfs-actions.pod:1542
26293 " guestfs_egrep (guestfs_h *g,\n"
26294 " const char *regex,\n"
26295 " const char *path);\n"
26300 #: ../src/guestfs-actions.pod:1557 ../src/guestfs-actions.pod:1576
26301 #: ../src/guestfs-actions.pod:1633 ../src/guestfs-actions.pod:1679
26302 #: ../src/guestfs-actions.pod:1698 ../src/guestfs-actions.pod:2426
26303 #: ../src/guestfs-actions.pod:2445 ../src/guestfs-actions.pod:2623
26304 #: ../src/guestfs-actions.pod:2636 ../src/guestfs-actions.pod:2651
26305 #: ../src/guestfs-actions.pod:2697 ../src/guestfs-actions.pod:2719
26306 #: ../src/guestfs-actions.pod:2732 ../src/guestfs-actions.pod:4005
26307 #: ../src/guestfs-actions.pod:4019 ../src/guestfs-actions.pod:4032
26308 #: ../src/guestfs-actions.pod:4046 ../src/guestfs-actions.pod:5047
26309 #: ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6117
26310 #: ../src/guestfs-actions.pod:7003 ../src/guestfs-actions.pod:7015
26311 #: ../src/guestfs-actions.pod:7028 ../src/guestfs-actions.pod:7041
26312 #: ../src/guestfs-actions.pod:7063 ../src/guestfs-actions.pod:7076
26313 #: ../src/guestfs-actions.pod:7089 ../src/guestfs-actions.pod:7102
26314 #: ../src/guestfs-actions.pod:7896 ../src/guestfs-actions.pod:7915
26315 #: ../src/guestfs-actions.pod:8009 ../src/guestfs-actions.pod:8028
26316 #: ../src/guestfs-actions.pod:8074 ../src/guestfs-actions.pod:8093
26317 msgid "(Added in 1.0.66)"
26321 #: ../src/guestfs-actions.pod:1559
26322 msgid "guestfs_egrepi"
26326 #: ../src/guestfs-actions.pod:1561
26330 " guestfs_egrepi (guestfs_h *g,\n"
26331 " const char *regex,\n"
26332 " const char *path);\n"
26337 #: ../src/guestfs-actions.pod:1578
26338 msgid "guestfs_equal"
26342 #: ../src/guestfs-actions.pod:1580
26346 " guestfs_equal (guestfs_h *g,\n"
26347 " const char *file1,\n"
26348 " const char *file2);\n"
26353 #: ../src/guestfs-actions.pod:1594
26354 msgid "guestfs_exists"
26358 #: ../src/guestfs-actions.pod:1596
26362 " guestfs_exists (guestfs_h *g,\n"
26363 " const char *path);\n"
26368 #: ../src/guestfs-actions.pod:1603
26369 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
26373 #: ../src/guestfs-actions.pod:1609
26374 msgid "guestfs_fallocate"
26378 #: ../src/guestfs-actions.pod:1611
26382 " guestfs_fallocate (guestfs_h *g,\n"
26383 " const char *path,\n"
26389 #: ../src/guestfs-actions.pod:1616
26391 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
26396 #: ../src/guestfs-actions.pod:1635
26397 msgid "guestfs_fallocate64"
26401 #: ../src/guestfs-actions.pod:1637
26405 " guestfs_fallocate64 (guestfs_h *g,\n"
26406 " const char *path,\n"
26412 #: ../src/guestfs-actions.pod:1646
26414 "Note that this call allocates disk blocks for the file. To create a sparse "
26415 "file use C<guestfs_truncate_size> instead."
26419 #: ../src/guestfs-actions.pod:1649
26421 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
26422 "oversight it only allowed 30 bit lengths to be specified, effectively "
26423 "limiting the maximum size of files created through that call to 1GB."
26427 #: ../src/guestfs-actions.pod:1660
26428 msgid "(Added in 1.3.17)"
26432 #: ../src/guestfs-actions.pod:1662
26433 msgid "guestfs_fgrep"
26437 #: ../src/guestfs-actions.pod:1664
26441 " guestfs_fgrep (guestfs_h *g,\n"
26442 " const char *pattern,\n"
26443 " const char *path);\n"
26448 #: ../src/guestfs-actions.pod:1681
26449 msgid "guestfs_fgrepi"
26453 #: ../src/guestfs-actions.pod:1683
26457 " guestfs_fgrepi (guestfs_h *g,\n"
26458 " const char *pattern,\n"
26459 " const char *path);\n"
26464 #: ../src/guestfs-actions.pod:1700
26465 msgid "guestfs_file"
26469 #: ../src/guestfs-actions.pod:1702
26473 " guestfs_file (guestfs_h *g,\n"
26474 " const char *path);\n"
26479 #: ../src/guestfs-actions.pod:1720
26481 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
26482 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
26486 #: ../src/guestfs-actions.pod:1728
26487 msgid "guestfs_file_architecture"
26491 #: ../src/guestfs-actions.pod:1730
26495 " guestfs_file_architecture (guestfs_h *g,\n"
26496 " const char *filename);\n"
26501 #: ../src/guestfs-actions.pod:1838 ../src/guestfs-actions.pod:2001
26502 #: ../src/guestfs-actions.pod:2018 ../src/guestfs-actions.pod:2752
26503 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:2912
26504 #: ../src/guestfs-actions.pod:3099 ../src/guestfs-actions.pod:3117
26505 #: ../src/guestfs-actions.pod:3157 ../src/guestfs-actions.pod:3232
26506 #: ../src/guestfs-actions.pod:3325 ../src/guestfs-actions.pod:3562
26507 #: ../src/guestfs-actions.pod:3694
26508 msgid "(Added in 1.5.3)"
26512 #: ../src/guestfs-actions.pod:1840
26513 msgid "guestfs_filesize"
26517 #: ../src/guestfs-actions.pod:1842
26521 " guestfs_filesize (guestfs_h *g,\n"
26522 " const char *file);\n"
26527 #: ../src/guestfs-actions.pod:1848
26529 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
26530 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
26531 "devices, use C<guestfs_blockdev_getsize64>."
26535 #: ../src/guestfs-actions.pod:1854
26536 msgid "(Added in 1.0.82)"
26540 #: ../src/guestfs-actions.pod:1856
26541 msgid "guestfs_fill"
26545 #: ../src/guestfs-actions.pod:1858
26549 " guestfs_fill (guestfs_h *g,\n"
26552 " const char *path);\n"
26557 #: ../src/guestfs-actions.pod:1868
26559 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
26560 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
26561 "bytes use C<guestfs_fill_pattern>."
26565 #: ../src/guestfs-actions.pod:1880
26566 msgid "(Added in 1.0.79)"
26570 #: ../src/guestfs-actions.pod:1882
26571 msgid "guestfs_fill_pattern"
26575 #: ../src/guestfs-actions.pod:1884
26579 " guestfs_fill_pattern (guestfs_h *g,\n"
26580 " const char *pattern,\n"
26582 " const char *path);\n"
26587 #: ../src/guestfs-actions.pod:1890
26589 "This function is like C<guestfs_fill> except that it creates a new file of "
26590 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
26591 "pattern is truncated if necessary to ensure the length of the file is "
26592 "exactly C<len> bytes."
26596 #: ../src/guestfs-actions.pod:1902
26597 msgid "(Added in 1.3.12)"
26601 #: ../src/guestfs-actions.pod:1904
26602 msgid "guestfs_find"
26606 #: ../src/guestfs-actions.pod:1906
26610 " guestfs_find (guestfs_h *g,\n"
26611 " const char *directory);\n"
26616 #: ../src/guestfs-actions.pod:1922
26618 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
26622 #: ../src/guestfs-actions.pod:1935
26623 msgid "See also C<guestfs_find0>."
26627 #: ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:4452
26628 #: ../src/guestfs-actions.pod:6152
26629 msgid "(Added in 1.0.27)"
26633 #: ../src/guestfs-actions.pod:1946
26634 msgid "guestfs_find0"
26638 #: ../src/guestfs-actions.pod:1948
26642 " guestfs_find0 (guestfs_h *g,\n"
26643 " const char *directory,\n"
26644 " const char *files);\n"
26649 #: ../src/guestfs-actions.pod:1957
26651 "This command works the same way as C<guestfs_find> with the following "
26656 #: ../src/guestfs-actions.pod:1984
26657 msgid "(Added in 1.0.74)"
26661 #: ../src/guestfs-actions.pod:1986
26662 msgid "guestfs_findfs_label"
26666 #: ../src/guestfs-actions.pod:1988
26670 " guestfs_findfs_label (guestfs_h *g,\n"
26671 " const char *label);\n"
26676 #: ../src/guestfs-actions.pod:1996
26677 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
26681 #: ../src/guestfs-actions.pod:2003
26682 msgid "guestfs_findfs_uuid"
26686 #: ../src/guestfs-actions.pod:2005
26690 " guestfs_findfs_uuid (guestfs_h *g,\n"
26691 " const char *uuid);\n"
26696 #: ../src/guestfs-actions.pod:2013
26697 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
26701 #: ../src/guestfs-actions.pod:2020
26702 msgid "guestfs_fsck"
26706 #: ../src/guestfs-actions.pod:2022
26710 " guestfs_fsck (guestfs_h *g,\n"
26711 " const char *fstype,\n"
26712 " const char *device);\n"
26717 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:7943
26718 msgid "(Added in 1.0.16)"
26722 #: ../src/guestfs-actions.pod:2059
26723 msgid "guestfs_get_append"
26727 #: ../src/guestfs-actions.pod:2061
26731 " guestfs_get_append (guestfs_h *g);\n"
26736 #: ../src/guestfs-actions.pod:2069
26738 "This function returns a string which may be NULL. There is no way to return "
26739 "an error from this function. The string is owned by the guest handle and "
26740 "must I<not> be freed."
26744 #: ../src/guestfs-actions.pod:2073 ../src/guestfs-actions.pod:5830
26745 #: ../src/guestfs-actions.pod:6312 ../src/guestfs-actions.pod:6770
26746 #: ../src/guestfs-actions.pod:6789 ../src/guestfs-actions.pod:6805
26747 #: ../src/guestfs-actions.pod:6829 ../src/guestfs-actions.pod:7583
26748 #: ../src/guestfs-actions.pod:7598 ../src/guestfs-actions.pod:7990
26749 msgid "(Added in 1.0.26)"
26753 #: ../src/guestfs-actions.pod:2075
26754 msgid "guestfs_get_attach_method"
26758 #: ../src/guestfs-actions.pod:2077
26762 " guestfs_get_attach_method (guestfs_h *g);\n"
26767 #: ../src/guestfs-actions.pod:2080
26768 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
26772 #: ../src/guestfs-actions.pod:2085 ../src/guestfs-actions.pod:6342
26773 msgid "(Added in 1.9.8)"
26777 #: ../src/guestfs-actions.pod:2087
26778 msgid "guestfs_get_autosync"
26782 #: ../src/guestfs-actions.pod:2089
26786 " guestfs_get_autosync (guestfs_h *g);\n"
26791 #: ../src/guestfs-actions.pod:2098
26792 msgid "guestfs_get_direct"
26796 #: ../src/guestfs-actions.pod:2100
26800 " guestfs_get_direct (guestfs_h *g);\n"
26805 #: ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:6383
26806 msgid "(Added in 1.0.72)"
26810 #: ../src/guestfs-actions.pod:2109
26811 msgid "guestfs_get_e2label"
26815 #: ../src/guestfs-actions.pod:2111
26819 " guestfs_get_e2label (guestfs_h *g,\n"
26820 " const char *device);\n"
26825 #: ../src/guestfs-actions.pod:2115
26827 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
26832 #: ../src/guestfs-actions.pod:2128 ../src/guestfs-actions.pod:2149
26833 #: ../src/guestfs-actions.pod:6401 ../src/guestfs-actions.pod:6420
26834 msgid "(Added in 1.0.15)"
26838 #: ../src/guestfs-actions.pod:2130
26839 msgid "guestfs_get_e2uuid"
26843 #: ../src/guestfs-actions.pod:2132
26847 " guestfs_get_e2uuid (guestfs_h *g,\n"
26848 " const char *device);\n"
26853 #: ../src/guestfs-actions.pod:2136
26855 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
26860 #: ../src/guestfs-actions.pod:2151
26861 msgid "guestfs_get_memsize"
26865 #: ../src/guestfs-actions.pod:2153
26869 " guestfs_get_memsize (guestfs_h *g);\n"
26874 #: ../src/guestfs-actions.pod:2159
26876 "If C<guestfs_set_memsize> was not called on this handle, and if "
26877 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
26878 "value for memsize."
26882 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:4743
26883 #: ../src/guestfs-actions.pod:4952 ../src/guestfs-actions.pod:4971
26884 #: ../src/guestfs-actions.pod:4990 ../src/guestfs-actions.pod:5002
26885 #: ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5032
26886 #: ../src/guestfs-actions.pod:6055 ../src/guestfs-actions.pod:6441
26887 #: ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:7352
26888 msgid "(Added in 1.0.55)"
26892 #: ../src/guestfs-actions.pod:2170
26893 msgid "guestfs_get_network"
26897 #: ../src/guestfs-actions.pod:2172
26901 " guestfs_get_network (guestfs_h *g);\n"
26906 #: ../src/guestfs-actions.pod:2179 ../src/guestfs-actions.pod:6460
26907 msgid "(Added in 1.5.4)"
26911 #: ../src/guestfs-actions.pod:2181
26912 msgid "guestfs_get_path"
26916 #: ../src/guestfs-actions.pod:2183
26920 " guestfs_get_path (guestfs_h *g);\n"
26925 #: ../src/guestfs-actions.pod:2191 ../src/guestfs-actions.pod:2231
26927 "This function returns a string, or NULL on error. The string is owned by "
26928 "the guest handle and must I<not> be freed."
26932 #: ../src/guestfs-actions.pod:2196
26933 msgid "guestfs_get_pgroup"
26937 #: ../src/guestfs-actions.pod:2198
26941 " guestfs_get_pgroup (guestfs_h *g);\n"
26946 #: ../src/guestfs-actions.pod:2205 ../src/guestfs-actions.pod:6496
26947 #: ../src/guestfs-actions.pod:7844
26949 #| msgid "(Added in 1.5.1)"
26950 msgid "(Added in 1.11.18)"
26951 msgstr "(Додано у 1.5.1)"
26954 #: ../src/guestfs-actions.pod:2207
26955 msgid "guestfs_get_pid"
26959 #: ../src/guestfs-actions.pod:2209
26963 " guestfs_get_pid (guestfs_h *g);\n"
26968 #: ../src/guestfs-actions.pod:2219
26969 msgid "(Added in 1.0.56)"
26973 #: ../src/guestfs-actions.pod:2221
26974 msgid "guestfs_get_qemu"
26978 #: ../src/guestfs-actions.pod:2223
26982 " guestfs_get_qemu (guestfs_h *g);\n"
26987 #: ../src/guestfs-actions.pod:2234 ../src/guestfs-actions.pod:6524
26988 msgid "(Added in 1.0.6)"
26992 #: ../src/guestfs-actions.pod:2236
26993 msgid "guestfs_get_recovery_proc"
26997 #: ../src/guestfs-actions.pod:2238
27001 " guestfs_get_recovery_proc (guestfs_h *g);\n"
27006 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:3816
27007 #: ../src/guestfs-actions.pod:4147 ../src/guestfs-actions.pod:4550
27008 #: ../src/guestfs-actions.pod:4582 ../src/guestfs-actions.pod:5760
27009 #: ../src/guestfs-actions.pod:6103 ../src/guestfs-actions.pod:6548
27010 #: ../src/guestfs-actions.pod:7255 ../src/guestfs-actions.pod:7275
27011 #: ../src/guestfs-actions.pod:7467
27012 msgid "(Added in 1.0.77)"
27016 #: ../src/guestfs-actions.pod:2247
27017 msgid "guestfs_get_selinux"
27021 #: ../src/guestfs-actions.pod:2249
27025 " guestfs_get_selinux (guestfs_h *g);\n"
27030 #: ../src/guestfs-actions.pod:2252
27032 "This returns the current setting of the selinux flag which is passed to the "
27033 "appliance at boot time. See C<guestfs_set_selinux>."
27037 #: ../src/guestfs-actions.pod:2260 ../src/guestfs-actions.pod:2334
27038 #: ../src/guestfs-actions.pod:6567 ../src/guestfs-actions.pod:6641
27039 msgid "(Added in 1.0.67)"
27043 #: ../src/guestfs-actions.pod:2262
27045 #| msgid "guestfs_zgrep"
27046 msgid "guestfs_get_smp"
27047 msgstr "guestfs_zgrep"
27050 #: ../src/guestfs-actions.pod:2264
27053 #| " int guestfs_last_errno (guestfs_h *g);\n"
27057 " guestfs_get_smp (guestfs_h *g);\n"
27060 " int guestfs_last_errno (guestfs_h *g);\n"
27064 #: ../src/guestfs-actions.pod:2273
27065 msgid "guestfs_get_state"
27069 #: ../src/guestfs-actions.pod:2275
27073 " guestfs_get_state (guestfs_h *g);\n"
27078 #: ../src/guestfs-actions.pod:2287
27079 msgid "guestfs_get_trace"
27083 #: ../src/guestfs-actions.pod:2289
27087 " guestfs_get_trace (guestfs_h *g);\n"
27092 #: ../src/guestfs-actions.pod:2298
27093 msgid "guestfs_get_umask"
27097 #: ../src/guestfs-actions.pod:2300
27101 " guestfs_get_umask (guestfs_h *g);\n"
27106 #: ../src/guestfs-actions.pod:2303
27108 "Return the current umask. By default the umask is C<022> unless it has been "
27109 "set by calling C<guestfs_umask>."
27113 #: ../src/guestfs-actions.pod:2310
27114 msgid "guestfs_get_verbose"
27118 #: ../src/guestfs-actions.pod:2312
27122 " guestfs_get_verbose (guestfs_h *g);\n"
27127 #: ../src/guestfs-actions.pod:2321
27128 msgid "guestfs_getcon"
27132 #: ../src/guestfs-actions.pod:2323
27136 " guestfs_getcon (guestfs_h *g);\n"
27141 #: ../src/guestfs-actions.pod:2328
27143 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
27147 #: ../src/guestfs-actions.pod:2336
27148 msgid "guestfs_getxattr"
27152 #: ../src/guestfs-actions.pod:2338
27156 " guestfs_getxattr (guestfs_h *g,\n"
27157 " const char *path,\n"
27158 " const char *name,\n"
27159 " size_t *size_r);\n"
27164 #: ../src/guestfs-actions.pod:2344
27166 "Get a single extended attribute from file C<path> named C<name>. This call "
27167 "follows symlinks. If you want to lookup an extended attribute for the "
27168 "symlink itself, use C<guestfs_lgetxattr>."
27172 #: ../src/guestfs-actions.pod:2348 ../src/guestfs-actions.pod:3830
27174 "Normally it is better to get all extended attributes from a file in one go "
27175 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
27176 "implementations are buggy and do not provide a way to list out attributes. "
27177 "For these filesystems (notably ntfs-3g) you have to know the names of the "
27178 "extended attributes you want in advance and call this function."
27182 #: ../src/guestfs-actions.pod:2358
27183 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
27187 #: ../src/guestfs-actions.pod:2360 ../src/guestfs-actions.pod:2573
27188 #: ../src/guestfs-actions.pod:3047 ../src/guestfs-actions.pod:3842
27189 #: ../src/guestfs-actions.pod:5753 ../src/guestfs-actions.pod:5779
27190 #: ../src/guestfs-actions.pod:5960
27192 "This function returns a buffer, or NULL on error. The size of the returned "
27193 "buffer is written to C<*size_r>. I<The caller must free the returned buffer "
27198 #: ../src/guestfs-actions.pod:2364 ../src/guestfs-actions.pod:3846
27199 msgid "(Added in 1.7.24)"
27203 #: ../src/guestfs-actions.pod:2366
27204 msgid "guestfs_getxattrs"
27208 #: ../src/guestfs-actions.pod:2368
27211 " struct guestfs_xattr_list *\n"
27212 " guestfs_getxattrs (guestfs_h *g,\n"
27213 " const char *path);\n"
27218 #: ../src/guestfs-actions.pod:2378
27219 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
27223 #: ../src/guestfs-actions.pod:2380 ../src/guestfs-actions.pod:3858
27224 #: ../src/guestfs-actions.pod:4546
27226 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
27227 "an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
27231 #: ../src/guestfs-actions.pod:2384 ../src/guestfs-actions.pod:3862
27232 #: ../src/guestfs-actions.pod:4061 ../src/guestfs-actions.pod:4097
27233 #: ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6660
27234 #: ../src/guestfs-actions.pod:8055
27235 msgid "(Added in 1.0.59)"
27239 #: ../src/guestfs-actions.pod:2386
27240 msgid "guestfs_glob_expand"
27244 #: ../src/guestfs-actions.pod:2388
27248 " guestfs_glob_expand (guestfs_h *g,\n"
27249 " const char *pattern);\n"
27254 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6853
27255 #: ../src/guestfs-actions.pod:6870
27256 msgid "(Added in 1.0.50)"
27260 #: ../src/guestfs-actions.pod:2409
27261 msgid "guestfs_grep"
27265 #: ../src/guestfs-actions.pod:2411
27269 " guestfs_grep (guestfs_h *g,\n"
27270 " const char *regex,\n"
27271 " const char *path);\n"
27276 #: ../src/guestfs-actions.pod:2428
27277 msgid "guestfs_grepi"
27281 #: ../src/guestfs-actions.pod:2430
27285 " guestfs_grepi (guestfs_h *g,\n"
27286 " const char *regex,\n"
27287 " const char *path);\n"
27292 #: ../src/guestfs-actions.pod:2447
27293 msgid "guestfs_grub_install"
27297 #: ../src/guestfs-actions.pod:2449
27301 " guestfs_grub_install (guestfs_h *g,\n"
27302 " const char *root,\n"
27303 " const char *device);\n"
27308 #: ../src/guestfs-actions.pod:2492
27309 msgid "(Added in 1.0.17)"
27313 #: ../src/guestfs-actions.pod:2494
27314 msgid "guestfs_head"
27318 #: ../src/guestfs-actions.pod:2496
27322 " guestfs_head (guestfs_h *g,\n"
27323 " const char *path);\n"
27328 #: ../src/guestfs-actions.pod:2512
27329 msgid "guestfs_head_n"
27333 #: ../src/guestfs-actions.pod:2514
27337 " guestfs_head_n (guestfs_h *g,\n"
27339 " const char *path);\n"
27344 #: ../src/guestfs-actions.pod:2536
27345 msgid "guestfs_hexdump"
27349 #: ../src/guestfs-actions.pod:2538
27353 " guestfs_hexdump (guestfs_h *g,\n"
27354 " const char *path);\n"
27359 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:6934
27360 #: ../src/guestfs-actions.pod:6989
27361 msgid "(Added in 1.0.22)"
27365 #: ../src/guestfs-actions.pod:2553
27366 msgid "guestfs_initrd_cat"
27370 #: ../src/guestfs-actions.pod:2555
27374 " guestfs_initrd_cat (guestfs_h *g,\n"
27375 " const char *initrdpath,\n"
27376 " const char *filename,\n"
27377 " size_t *size_r);\n"
27382 #: ../src/guestfs-actions.pod:2571
27383 msgid "See also C<guestfs_initrd_list>."
27387 #: ../src/guestfs-actions.pod:2582
27388 msgid "guestfs_initrd_list"
27392 #: ../src/guestfs-actions.pod:2584
27396 " guestfs_initrd_list (guestfs_h *g,\n"
27397 " const char *path);\n"
27402 #: ../src/guestfs-actions.pod:2604
27403 msgid "guestfs_inotify_add_watch"
27407 #: ../src/guestfs-actions.pod:2606
27411 " guestfs_inotify_add_watch (guestfs_h *g,\n"
27412 " const char *path,\n"
27418 #: ../src/guestfs-actions.pod:2625
27419 msgid "guestfs_inotify_close"
27423 #: ../src/guestfs-actions.pod:2627
27427 " guestfs_inotify_close (guestfs_h *g);\n"
27432 #: ../src/guestfs-actions.pod:2638
27433 msgid "guestfs_inotify_files"
27437 #: ../src/guestfs-actions.pod:2640
27441 " guestfs_inotify_files (guestfs_h *g);\n"
27446 #: ../src/guestfs-actions.pod:2643
27448 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
27449 "returns a list of pathnames of objects that were touched. The returned "
27450 "pathnames are sorted and deduplicated."
27454 #: ../src/guestfs-actions.pod:2653
27455 msgid "guestfs_inotify_init"
27459 #: ../src/guestfs-actions.pod:2655
27463 " guestfs_inotify_init (guestfs_h *g,\n"
27464 " int maxevents);\n"
27469 #: ../src/guestfs-actions.pod:2663
27471 "C<maxevents> is the maximum number of events which will be queued up between "
27472 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
27473 "passed as C<0>, then the kernel (or previously set) default is used. For "
27474 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
27475 "throws away events, but records the fact that it threw them away by setting "
27476 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
27477 "C<guestfs_inotify_read>)."
27481 #: ../src/guestfs-actions.pod:2673
27483 "Before any events are generated, you have to add some watches to the "
27484 "internal watch list. See: C<guestfs_inotify_add_watch>, "
27485 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
27489 #: ../src/guestfs-actions.pod:2679
27491 "Queued up events should be read periodically by calling "
27492 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
27493 "wrapper around C<guestfs_inotify_read>). If you don't read the events out "
27494 "often enough then you risk the internal queue overflowing."
27498 #: ../src/guestfs-actions.pod:2686
27500 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
27501 "This also removes any watches automatically."
27505 #: ../src/guestfs-actions.pod:2699
27506 msgid "guestfs_inotify_read"
27510 #: ../src/guestfs-actions.pod:2701
27513 " struct guestfs_inotify_event_list *\n"
27514 " guestfs_inotify_read (guestfs_h *g);\n"
27519 #: ../src/guestfs-actions.pod:2715
27521 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
27522 "there was an error. I<The caller must call "
27523 "C<guestfs_free_inotify_event_list> after use>."
27527 #: ../src/guestfs-actions.pod:2721
27528 msgid "guestfs_inotify_rm_watch"
27532 #: ../src/guestfs-actions.pod:2723
27536 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
27542 #: ../src/guestfs-actions.pod:2727
27544 "Remove a previously defined inotify watch. See C<guestfs_inotify_add_watch>."
27548 #: ../src/guestfs-actions.pod:2734
27549 msgid "guestfs_inspect_get_arch"
27553 #: ../src/guestfs-actions.pod:2736
27557 " guestfs_inspect_get_arch (guestfs_h *g,\n"
27558 " const char *root);\n"
27563 #: ../src/guestfs-actions.pod:2740
27565 "This returns the architecture of the inspected operating system. The "
27566 "possible return values are listed under C<guestfs_file_architecture>."
27570 #: ../src/guestfs-actions.pod:2754
27571 msgid "guestfs_inspect_get_distro"
27575 #: ../src/guestfs-actions.pod:2756
27579 " guestfs_inspect_get_distro (guestfs_h *g,\n"
27580 " const char *root);\n"
27585 #: ../src/guestfs-actions.pod:2848
27586 msgid "guestfs_inspect_get_drive_mappings"
27590 #: ../src/guestfs-actions.pod:2850
27594 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
27595 " const char *root);\n"
27600 #: ../src/guestfs-actions.pod:2879
27602 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
27603 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
27607 #: ../src/guestfs-actions.pod:2883 ../src/guestfs-actions.pod:3151
27608 #: ../src/guestfs-actions.pod:3949 ../src/guestfs-actions.pod:5221
27609 #: ../src/guestfs-actions.pod:7291
27611 "This function returns a NULL-terminated array of strings, or NULL if there "
27612 "was an error. The array of strings will always have length C<2n+1>, where "
27613 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
27614 "caller must free the strings and the array after use>."
27618 #: ../src/guestfs-actions.pod:2889 ../src/guestfs-actions.pod:3345
27619 msgid "(Added in 1.9.17)"
27623 #: ../src/guestfs-actions.pod:2891
27624 msgid "guestfs_inspect_get_filesystems"
27628 #: ../src/guestfs-actions.pod:2893
27632 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
27633 " const char *root);\n"
27638 #: ../src/guestfs-actions.pod:2905
27640 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
27641 "C<guestfs_inspect_get_mountpoints>."
27645 #: ../src/guestfs-actions.pod:2914
27646 msgid "guestfs_inspect_get_format"
27650 #: ../src/guestfs-actions.pod:2916
27654 " guestfs_inspect_get_format (guestfs_h *g,\n"
27655 " const char *root);\n"
27660 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:3381
27661 #: ../src/guestfs-actions.pod:3397 ../src/guestfs-actions.pod:3415
27662 #: ../src/guestfs-actions.pod:6171
27663 msgid "(Added in 1.9.4)"
27667 #: ../src/guestfs-actions.pod:2952
27668 msgid "guestfs_inspect_get_hostname"
27672 #: ../src/guestfs-actions.pod:2954
27676 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
27677 " const char *root);\n"
27682 #: ../src/guestfs-actions.pod:2969
27683 msgid "(Added in 1.7.9)"
27687 #: ../src/guestfs-actions.pod:2971
27688 msgid "guestfs_inspect_get_icon"
27692 #: ../src/guestfs-actions.pod:2973
27696 " guestfs_inspect_get_icon (guestfs_h *g,\n"
27697 " const char *root,\n"
27698 " size_t *size_r,\n"
27704 #: ../src/guestfs-actions.pod:2984
27707 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
27708 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
27713 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3876
27714 #: ../src/guestfs-actions.pod:5120
27715 msgid "(Added in 1.11.12)"
27719 #: ../src/guestfs-actions.pod:3053
27720 msgid "guestfs_inspect_get_icon_va"
27724 #: ../src/guestfs-actions.pod:3055
27728 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
27729 " const char *root,\n"
27730 " size_t *size_r,\n"
27731 " va_list args);\n"
27736 #: ../src/guestfs-actions.pod:3061
27737 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
27741 #: ../src/guestfs-actions.pod:3065
27742 msgid "guestfs_inspect_get_icon_argv"
27746 #: ../src/guestfs-actions.pod:3067
27750 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
27751 " const char *root,\n"
27752 " size_t *size_r,\n"
27753 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
27758 #: ../src/guestfs-actions.pod:3073
27759 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
27763 #: ../src/guestfs-actions.pod:3077
27764 msgid "guestfs_inspect_get_major_version"
27768 #: ../src/guestfs-actions.pod:3079
27772 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
27773 " const char *root);\n"
27778 #: ../src/guestfs-actions.pod:3101
27779 msgid "guestfs_inspect_get_minor_version"
27783 #: ../src/guestfs-actions.pod:3103
27787 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
27788 " const char *root);\n"
27793 #: ../src/guestfs-actions.pod:3112
27795 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
27796 "C<guestfs_inspect_get_major_version>."
27800 #: ../src/guestfs-actions.pod:3119
27801 msgid "guestfs_inspect_get_mountpoints"
27805 #: ../src/guestfs-actions.pod:3121
27809 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
27810 " const char *root);\n"
27815 #: ../src/guestfs-actions.pod:3142
27817 "For operating systems like Windows which still use drive letters, this call "
27818 "will only return an entry for the first drive \"mounted on\" C</>. For "
27819 "information about the mapping of drive letters to partitions, see "
27820 "C<guestfs_inspect_get_drive_mappings>."
27824 #: ../src/guestfs-actions.pod:3148
27826 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
27827 "C<guestfs_inspect_get_filesystems>."
27831 #: ../src/guestfs-actions.pod:3159
27832 msgid "guestfs_inspect_get_package_format"
27836 #: ../src/guestfs-actions.pod:3161
27840 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
27841 " const char *root);\n"
27846 #: ../src/guestfs-actions.pod:3165
27848 "This function and C<guestfs_inspect_get_package_management> return the "
27849 "package format and package management tool used by the inspected operating "
27850 "system. For example for Fedora these functions would return C<rpm> (package "
27851 "format) and C<yum> (package management)."
27855 #: ../src/guestfs-actions.pod:3183 ../src/guestfs-actions.pod:3211
27856 msgid "(Added in 1.7.5)"
27860 #: ../src/guestfs-actions.pod:3185
27861 msgid "guestfs_inspect_get_package_management"
27865 #: ../src/guestfs-actions.pod:3187
27869 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
27870 " const char *root);\n"
27875 #: ../src/guestfs-actions.pod:3191
27877 "C<guestfs_inspect_get_package_format> and this function return the package "
27878 "format and package management tool used by the inspected operating system. "
27879 "For example for Fedora these functions would return C<rpm> (package format) "
27880 "and C<yum> (package management)."
27884 #: ../src/guestfs-actions.pod:3213
27885 msgid "guestfs_inspect_get_product_name"
27889 #: ../src/guestfs-actions.pod:3215
27893 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
27894 " const char *root);\n"
27899 #: ../src/guestfs-actions.pod:3234
27900 msgid "guestfs_inspect_get_product_variant"
27904 #: ../src/guestfs-actions.pod:3236
27908 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
27909 " const char *root);\n"
27914 #: ../src/guestfs-actions.pod:3259
27916 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
27917 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
27921 #: ../src/guestfs-actions.pod:3266
27922 msgid "(Added in 1.9.13)"
27926 #: ../src/guestfs-actions.pod:3268
27927 msgid "guestfs_inspect_get_roots"
27931 #: ../src/guestfs-actions.pod:3270
27935 " guestfs_inspect_get_roots (guestfs_h *g);\n"
27940 #: ../src/guestfs-actions.pod:3273
27942 "This function is a convenient way to get the list of root devices, as "
27943 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
27944 "the whole inspection process."
27948 #: ../src/guestfs-actions.pod:3277
27950 "This returns an empty list if either no root devices were found or the "
27951 "caller has not called C<guestfs_inspect_os>."
27955 #: ../src/guestfs-actions.pod:3286
27956 msgid "(Added in 1.7.3)"
27960 #: ../src/guestfs-actions.pod:3288
27961 msgid "guestfs_inspect_get_type"
27965 #: ../src/guestfs-actions.pod:3290
27969 " guestfs_inspect_get_type (guestfs_h *g,\n"
27970 " const char *root);\n"
27975 #: ../src/guestfs-actions.pod:3327
27976 msgid "guestfs_inspect_get_windows_current_control_set"
27980 #: ../src/guestfs-actions.pod:3329
27984 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
27985 " const char *root);\n"
27990 #: ../src/guestfs-actions.pod:3347
27991 msgid "guestfs_inspect_get_windows_systemroot"
27995 #: ../src/guestfs-actions.pod:3349
27999 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
28000 " const char *root);\n"
28005 #: ../src/guestfs-actions.pod:3365
28006 msgid "(Added in 1.5.25)"
28010 #: ../src/guestfs-actions.pod:3367
28011 msgid "guestfs_inspect_is_live"
28015 #: ../src/guestfs-actions.pod:3369
28019 " guestfs_inspect_is_live (guestfs_h *g,\n"
28020 " const char *root);\n"
28025 #: ../src/guestfs-actions.pod:3373
28027 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28028 "disk), then this returns true if a live image was detected on the disk."
28032 #: ../src/guestfs-actions.pod:3383
28033 msgid "guestfs_inspect_is_multipart"
28037 #: ../src/guestfs-actions.pod:3385
28041 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
28042 " const char *root);\n"
28047 #: ../src/guestfs-actions.pod:3389
28049 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28050 "disk), then this returns true if the disk is part of a set."
28054 #: ../src/guestfs-actions.pod:3399
28055 msgid "guestfs_inspect_is_netinst"
28059 #: ../src/guestfs-actions.pod:3401
28063 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
28064 " const char *root);\n"
28069 #: ../src/guestfs-actions.pod:3405
28071 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28072 "disk), then this returns true if the disk is a network installer, ie. not a "
28073 "self-contained install CD but one which is likely to require network access "
28074 "to complete the install."
28078 #: ../src/guestfs-actions.pod:3417
28079 msgid "guestfs_inspect_list_applications"
28083 #: ../src/guestfs-actions.pod:3419
28086 " struct guestfs_application_list *\n"
28087 " guestfs_inspect_list_applications (guestfs_h *g,\n"
28088 " const char *root);\n"
28093 #: ../src/guestfs-actions.pod:3425
28095 "I<Note:> This call works differently from other parts of the inspection "
28096 "API. You have to call C<guestfs_inspect_os>, then "
28097 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
28098 "this. Listing applications is a significantly more difficult operation "
28099 "which requires access to the full filesystem. Also note that unlike the "
28100 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
28101 "the libguestfs handle, this call actually reads parts of the mounted "
28102 "filesystems during the call."
28106 #: ../src/guestfs-actions.pod:3515
28108 "This function returns a C<struct guestfs_application_list *>, or NULL if "
28109 "there was an error. I<The caller must call C<guestfs_free_application_list> "
28114 #: ../src/guestfs-actions.pod:3519
28115 msgid "(Added in 1.7.8)"
28119 #: ../src/guestfs-actions.pod:3521
28120 msgid "guestfs_inspect_os"
28124 #: ../src/guestfs-actions.pod:3523
28128 " guestfs_inspect_os (guestfs_h *g);\n"
28133 #: ../src/guestfs-actions.pod:3539
28135 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
28136 "functions in order to query further information about each operating system, "
28137 "such as the name and version."
28141 #: ../src/guestfs-actions.pod:3544
28143 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
28144 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
28145 "the contents. This should be called with no disks currently mounted. The "
28146 "function may also use Augeas, so any existing Augeas handle will be closed."
28150 #: ../src/guestfs-actions.pod:3556 ../src/guestfs-actions.pod:3887
28151 #: ../src/guestfs-actions.pod:3969
28152 msgid "See also C<guestfs_list_filesystems>."
28156 #: ../src/guestfs-actions.pod:3564
28157 msgid "guestfs_is_blockdev"
28161 #: ../src/guestfs-actions.pod:3566
28165 " guestfs_is_blockdev (guestfs_h *g,\n"
28166 " const char *path);\n"
28171 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3602
28172 #: ../src/guestfs-actions.pod:3632 ../src/guestfs-actions.pod:3647
28173 #: ../src/guestfs-actions.pod:3663 ../src/guestfs-actions.pod:3719
28174 #: ../src/guestfs-actions.pod:3734
28175 msgid "See also C<guestfs_stat>."
28179 #: ../src/guestfs-actions.pod:3577 ../src/guestfs-actions.pod:3606
28180 #: ../src/guestfs-actions.pod:3651 ../src/guestfs-actions.pod:3723
28181 #: ../src/guestfs-actions.pod:3738
28182 msgid "(Added in 1.5.10)"
28186 #: ../src/guestfs-actions.pod:3579
28187 msgid "guestfs_is_busy"
28191 #: ../src/guestfs-actions.pod:3581
28195 " guestfs_is_busy (guestfs_h *g);\n"
28200 #: ../src/guestfs-actions.pod:3593
28201 msgid "guestfs_is_chardev"
28205 #: ../src/guestfs-actions.pod:3595
28209 " guestfs_is_chardev (guestfs_h *g,\n"
28210 " const char *path);\n"
28215 #: ../src/guestfs-actions.pod:3608
28216 msgid "guestfs_is_config"
28220 #: ../src/guestfs-actions.pod:3610
28224 " guestfs_is_config (guestfs_h *g);\n"
28229 #: ../src/guestfs-actions.pod:3622
28230 msgid "guestfs_is_dir"
28234 #: ../src/guestfs-actions.pod:3624
28238 " guestfs_is_dir (guestfs_h *g,\n"
28239 " const char *path);\n"
28244 #: ../src/guestfs-actions.pod:3638
28245 msgid "guestfs_is_fifo"
28249 #: ../src/guestfs-actions.pod:3640
28253 " guestfs_is_fifo (guestfs_h *g,\n"
28254 " const char *path);\n"
28259 #: ../src/guestfs-actions.pod:3653
28260 msgid "guestfs_is_file"
28264 #: ../src/guestfs-actions.pod:3655
28268 " guestfs_is_file (guestfs_h *g,\n"
28269 " const char *path);\n"
28274 #: ../src/guestfs-actions.pod:3669
28275 msgid "guestfs_is_launching"
28279 #: ../src/guestfs-actions.pod:3671
28283 " guestfs_is_launching (guestfs_h *g);\n"
28288 #: ../src/guestfs-actions.pod:3683
28289 msgid "guestfs_is_lv"
28293 #: ../src/guestfs-actions.pod:3685
28297 " guestfs_is_lv (guestfs_h *g,\n"
28298 " const char *device);\n"
28303 #: ../src/guestfs-actions.pod:3696
28304 msgid "guestfs_is_ready"
28308 #: ../src/guestfs-actions.pod:3698
28312 " guestfs_is_ready (guestfs_h *g);\n"
28317 #: ../src/guestfs-actions.pod:3710
28318 msgid "guestfs_is_socket"
28322 #: ../src/guestfs-actions.pod:3712
28326 " guestfs_is_socket (guestfs_h *g,\n"
28327 " const char *path);\n"
28332 #: ../src/guestfs-actions.pod:3725
28333 msgid "guestfs_is_symlink"
28337 #: ../src/guestfs-actions.pod:3727
28341 " guestfs_is_symlink (guestfs_h *g,\n"
28342 " const char *path);\n"
28347 #: ../src/guestfs-actions.pod:3740
28348 msgid "guestfs_is_zero"
28352 #: ../src/guestfs-actions.pod:3742
28356 " guestfs_is_zero (guestfs_h *g,\n"
28357 " const char *path);\n"
28362 #: ../src/guestfs-actions.pod:3751 ../src/guestfs-actions.pod:3765
28363 msgid "(Added in 1.11.8)"
28367 #: ../src/guestfs-actions.pod:3753
28368 msgid "guestfs_is_zero_device"
28372 #: ../src/guestfs-actions.pod:3755
28376 " guestfs_is_zero_device (guestfs_h *g,\n"
28377 " const char *device);\n"
28382 #: ../src/guestfs-actions.pod:3767
28383 msgid "guestfs_kill_subprocess"
28387 #: ../src/guestfs-actions.pod:3769
28391 " guestfs_kill_subprocess (guestfs_h *g);\n"
28396 #: ../src/guestfs-actions.pod:3778
28397 msgid "guestfs_launch"
28401 #: ../src/guestfs-actions.pod:3780
28405 " guestfs_launch (guestfs_h *g);\n"
28410 #: ../src/guestfs-actions.pod:3798
28411 msgid "guestfs_lchown"
28415 #: ../src/guestfs-actions.pod:3800
28419 " guestfs_lchown (guestfs_h *g,\n"
28422 " const char *path);\n"
28427 #: ../src/guestfs-actions.pod:3806
28429 "Change the file owner to C<owner> and group to C<group>. This is like "
28430 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
28431 "changed, not the target."
28435 #: ../src/guestfs-actions.pod:3818
28436 msgid "guestfs_lgetxattr"
28440 #: ../src/guestfs-actions.pod:3820
28444 " guestfs_lgetxattr (guestfs_h *g,\n"
28445 " const char *path,\n"
28446 " const char *name,\n"
28447 " size_t *size_r);\n"
28452 #: ../src/guestfs-actions.pod:3840
28453 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
28457 #: ../src/guestfs-actions.pod:3848
28458 msgid "guestfs_lgetxattrs"
28462 #: ../src/guestfs-actions.pod:3850
28465 " struct guestfs_xattr_list *\n"
28466 " guestfs_lgetxattrs (guestfs_h *g,\n"
28467 " const char *path);\n"
28472 #: ../src/guestfs-actions.pod:3854
28474 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
28475 "then it returns the extended attributes of the link itself."
28479 #: ../src/guestfs-actions.pod:3864
28480 msgid "guestfs_list_9p"
28484 #: ../src/guestfs-actions.pod:3866
28488 " guestfs_list_9p (guestfs_h *g);\n"
28493 #: ../src/guestfs-actions.pod:3878
28494 msgid "guestfs_list_devices"
28498 #: ../src/guestfs-actions.pod:3880
28502 " guestfs_list_devices (guestfs_h *g);\n"
28507 #: ../src/guestfs-actions.pod:3895
28508 msgid "guestfs_list_dm_devices"
28512 #: ../src/guestfs-actions.pod:3897
28516 " guestfs_list_dm_devices (guestfs_h *g);\n"
28521 #: ../src/guestfs-actions.pod:3902
28523 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
28524 "previous call to C<guestfs_luks_open>."
28528 #: ../src/guestfs-actions.pod:3905
28530 "Device mapper devices which correspond to logical volumes are I<not> "
28531 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
28536 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:5359
28537 msgid "(Added in 1.11.15)"
28541 #: ../src/guestfs-actions.pod:3915
28542 msgid "guestfs_list_filesystems"
28546 #: ../src/guestfs-actions.pod:3917
28550 " guestfs_list_filesystems (guestfs_h *g);\n"
28555 #: ../src/guestfs-actions.pod:3937
28557 "This command runs other libguestfs commands, which might include "
28558 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
28559 "soon after launch and only when nothing is mounted."
28563 #: ../src/guestfs-actions.pod:3941
28565 "Not all of the filesystems returned will be mountable. In particular, swap "
28566 "partitions are returned in the list. Also this command does not check that "
28567 "each filesystem found is valid and mountable, and some filesystems might be "
28568 "mountable but require special options. Filesystems may not all belong to a "
28569 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
28573 #: ../src/guestfs-actions.pod:3955 ../src/guestfs-actions.pod:5720
28574 msgid "(Added in 1.5.15)"
28578 #: ../src/guestfs-actions.pod:3957
28579 msgid "guestfs_list_partitions"
28580 msgstr "guestfs_list_partitions"
28583 #: ../src/guestfs-actions.pod:3959
28587 " guestfs_list_partitions (guestfs_h *g);\n"
28591 " guestfs_list_partitions (guestfs_h *g);\n"
28595 #: ../src/guestfs-actions.pod:3966
28597 "This does not return logical volumes. For that you will need to call "
28602 #: ../src/guestfs-actions.pod:3977
28604 msgstr "guestfs_ll"
28607 #: ../src/guestfs-actions.pod:3979
28611 " guestfs_ll (guestfs_h *g,\n"
28612 " const char *directory);\n"
28616 " guestfs_ll (guestfs_h *g,\n"
28617 " const char *directory);\n"
28621 #: ../src/guestfs-actions.pod:3994
28623 msgstr "guestfs_ln"
28626 #: ../src/guestfs-actions.pod:3996
28630 " guestfs_ln (guestfs_h *g,\n"
28631 " const char *target,\n"
28632 " const char *linkname);\n"
28636 " guestfs_ln (guestfs_h *g,\n"
28637 " const char *target,\n"
28638 " const char *linkname);\n"
28642 #: ../src/guestfs-actions.pod:4007
28643 msgid "guestfs_ln_f"
28644 msgstr "guestfs_ln_f"
28647 #: ../src/guestfs-actions.pod:4009
28651 " guestfs_ln_f (guestfs_h *g,\n"
28652 " const char *target,\n"
28653 " const char *linkname);\n"
28657 " guestfs_ln_f (guestfs_h *g,\n"
28658 " const char *target,\n"
28659 " const char *linkname);\n"
28663 #: ../src/guestfs-actions.pod:4021
28664 msgid "guestfs_ln_s"
28665 msgstr "guestfs_ln_s"
28668 #: ../src/guestfs-actions.pod:4023
28672 " guestfs_ln_s (guestfs_h *g,\n"
28673 " const char *target,\n"
28674 " const char *linkname);\n"
28678 " guestfs_ln_s (guestfs_h *g,\n"
28679 " const char *target,\n"
28680 " const char *linkname);\n"
28684 #: ../src/guestfs-actions.pod:4034
28685 msgid "guestfs_ln_sf"
28686 msgstr "guestfs_ln_sf"
28689 #: ../src/guestfs-actions.pod:4036
28693 " guestfs_ln_sf (guestfs_h *g,\n"
28694 " const char *target,\n"
28695 " const char *linkname);\n"
28699 " guestfs_ln_sf (guestfs_h *g,\n"
28700 " const char *target,\n"
28701 " const char *linkname);\n"
28705 #: ../src/guestfs-actions.pod:4048
28706 msgid "guestfs_lremovexattr"
28707 msgstr "guestfs_lremovexattr"
28710 #: ../src/guestfs-actions.pod:4050
28714 " guestfs_lremovexattr (guestfs_h *g,\n"
28715 " const char *xattr,\n"
28716 " const char *path);\n"
28720 " guestfs_lremovexattr (guestfs_h *g,\n"
28721 " const char *xattr,\n"
28722 " const char *path);\n"
28726 #: ../src/guestfs-actions.pod:4055
28728 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
28729 "link, then it removes an extended attribute of the link itself."
28733 #: ../src/guestfs-actions.pod:4063
28735 msgstr "guestfs_ls"
28738 #: ../src/guestfs-actions.pod:4065
28742 " guestfs_ls (guestfs_h *g,\n"
28743 " const char *directory);\n"
28747 " guestfs_ls (guestfs_h *g,\n"
28748 " const char *directory);\n"
28752 #: ../src/guestfs-actions.pod:4073
28754 "This command is mostly useful for interactive sessions. Programs should "
28755 "probably use C<guestfs_readdir> instead."
28759 #: ../src/guestfs-actions.pod:4082
28760 msgid "guestfs_lsetxattr"
28761 msgstr "guestfs_lsetxattr"
28764 #: ../src/guestfs-actions.pod:4084
28768 " guestfs_lsetxattr (guestfs_h *g,\n"
28769 " const char *xattr,\n"
28770 " const char *val,\n"
28772 " const char *path);\n"
28776 " guestfs_lsetxattr (guestfs_h *g,\n"
28777 " const char *xattr,\n"
28778 " const char *val,\n"
28780 " const char *path);\n"
28784 #: ../src/guestfs-actions.pod:4091
28786 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
28787 "then it sets an extended attribute of the link itself."
28791 #: ../src/guestfs-actions.pod:4099
28792 msgid "guestfs_lstat"
28793 msgstr "guestfs_lstat"
28796 #: ../src/guestfs-actions.pod:4101
28799 " struct guestfs_stat *\n"
28800 " guestfs_lstat (guestfs_h *g,\n"
28801 " const char *path);\n"
28804 " struct guestfs_stat *\n"
28805 " guestfs_lstat (guestfs_h *g,\n"
28806 " const char *path);\n"
28810 #: ../src/guestfs-actions.pod:4107
28812 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
28813 "link, then the link is stat-ed, not the file it refers to."
28817 #: ../src/guestfs-actions.pod:4113 ../src/guestfs-actions.pod:6894
28819 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
28820 "error. I<The caller must call C<guestfs_free_stat> after use>."
28824 #: ../src/guestfs-actions.pod:4117 ../src/guestfs-actions.pod:6898
28825 #: ../src/guestfs-actions.pod:6916 ../src/guestfs-actions.pod:7297
28826 msgid "(Added in 0.9.2)"
28827 msgstr "(Додано у 0.9.2)"
28830 #: ../src/guestfs-actions.pod:4119
28831 msgid "guestfs_lstatlist"
28832 msgstr "guestfs_lstatlist"
28835 #: ../src/guestfs-actions.pod:4121
28838 " struct guestfs_stat_list *\n"
28839 " guestfs_lstatlist (guestfs_h *g,\n"
28840 " const char *path,\n"
28841 " char *const *names);\n"
28844 " struct guestfs_stat_list *\n"
28845 " guestfs_lstatlist (guestfs_h *g,\n"
28846 " const char *path,\n"
28847 " char *const *names);\n"
28851 #: ../src/guestfs-actions.pod:4126
28853 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
28854 "files, where all files are in the directory C<path>. C<names> is the list "
28855 "of files from this directory."
28859 #: ../src/guestfs-actions.pod:4135
28861 "This call is intended for programs that want to efficiently list a directory "
28862 "contents without making many round-trips. See also C<guestfs_lxattrlist> "
28863 "for a similarly efficient call for getting extended attributes. Very long "
28864 "directory listings might cause the protocol message size to be exceeded, "
28865 "causing this call to fail. The caller must split up such requests into "
28866 "smaller groups of names."
28870 #: ../src/guestfs-actions.pod:4143
28872 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
28873 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
28877 #: ../src/guestfs-actions.pod:4149
28878 msgid "guestfs_luks_add_key"
28879 msgstr "guestfs_luks_add_key"
28882 #: ../src/guestfs-actions.pod:4151
28886 " guestfs_luks_add_key (guestfs_h *g,\n"
28887 " const char *device,\n"
28888 " const char *key,\n"
28889 " const char *newkey,\n"
28894 " guestfs_luks_add_key (guestfs_h *g,\n"
28895 " const char *device,\n"
28896 " const char *key,\n"
28897 " const char *newkey,\n"
28902 #: ../src/guestfs-actions.pod:4163
28904 "Note that if C<keyslot> already contains a key, then this command will "
28905 "fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
28909 #: ../src/guestfs-actions.pod:4169 ../src/guestfs-actions.pod:4209
28910 #: ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:4252
28911 #: ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4306
28913 "This function takes a key or passphrase parameter which could contain "
28914 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
28919 #: ../src/guestfs-actions.pod:4173 ../src/guestfs-actions.pod:4213
28920 #: ../src/guestfs-actions.pod:4236 ../src/guestfs-actions.pod:4256
28921 msgid "(Added in 1.5.2)"
28922 msgstr "(Додано у 1.5.2)"
28925 #: ../src/guestfs-actions.pod:4175
28926 msgid "guestfs_luks_close"
28927 msgstr "guestfs_luks_close"
28930 #: ../src/guestfs-actions.pod:4177
28934 " guestfs_luks_close (guestfs_h *g,\n"
28935 " const char *device);\n"
28939 " guestfs_luks_close (guestfs_h *g,\n"
28940 " const char *device);\n"
28944 #: ../src/guestfs-actions.pod:4181
28946 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
28947 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
28948 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
28949 "underlying block device."
28953 #: ../src/guestfs-actions.pod:4189 ../src/guestfs-actions.pod:4291
28954 #: ../src/guestfs-actions.pod:4310 ../src/guestfs-actions.pod:4360
28955 #: ../src/guestfs-actions.pod:4408
28956 msgid "(Added in 1.5.1)"
28957 msgstr "(Додано у 1.5.1)"
28960 #: ../src/guestfs-actions.pod:4191
28961 msgid "guestfs_luks_format"
28962 msgstr "guestfs_luks_format"
28965 #: ../src/guestfs-actions.pod:4193
28969 " guestfs_luks_format (guestfs_h *g,\n"
28970 " const char *device,\n"
28971 " const char *key,\n"
28976 " guestfs_luks_format (guestfs_h *g,\n"
28977 " const char *device,\n"
28978 " const char *key,\n"
28983 #: ../src/guestfs-actions.pod:4215
28984 msgid "guestfs_luks_format_cipher"
28985 msgstr "guestfs_luks_format_cipher"
28988 #: ../src/guestfs-actions.pod:4217
28992 " guestfs_luks_format_cipher (guestfs_h *g,\n"
28993 " const char *device,\n"
28994 " const char *key,\n"
28996 " const char *cipher);\n"
29000 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29001 " const char *device,\n"
29002 " const char *key,\n"
29004 " const char *cipher);\n"
29008 #: ../src/guestfs-actions.pod:4224
29010 "This command is the same as C<guestfs_luks_format> but it also allows you to "
29011 "set the C<cipher> used."
29015 #: ../src/guestfs-actions.pod:4238
29016 msgid "guestfs_luks_kill_slot"
29017 msgstr "guestfs_luks_kill_slot"
29020 #: ../src/guestfs-actions.pod:4240
29024 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29025 " const char *device,\n"
29026 " const char *key,\n"
29031 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29032 " const char *device,\n"
29033 " const char *key,\n"
29038 #: ../src/guestfs-actions.pod:4258
29039 msgid "guestfs_luks_open"
29040 msgstr "guestfs_luks_open"
29043 #: ../src/guestfs-actions.pod:4260
29047 " guestfs_luks_open (guestfs_h *g,\n"
29048 " const char *device,\n"
29049 " const char *key,\n"
29050 " const char *mapname);\n"
29054 " guestfs_luks_open (guestfs_h *g,\n"
29055 " const char *device,\n"
29056 " const char *key,\n"
29057 " const char *mapname);\n"
29061 #: ../src/guestfs-actions.pod:4278
29063 "If this block device contains LVM volume groups, then calling "
29064 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
29069 #: ../src/guestfs-actions.pod:4282
29070 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
29074 #: ../src/guestfs-actions.pod:4293
29075 msgid "guestfs_luks_open_ro"
29076 msgstr "guestfs_luks_open_ro"
29079 #: ../src/guestfs-actions.pod:4295
29083 " guestfs_luks_open_ro (guestfs_h *g,\n"
29084 " const char *device,\n"
29085 " const char *key,\n"
29086 " const char *mapname);\n"
29090 " guestfs_luks_open_ro (guestfs_h *g,\n"
29091 " const char *device,\n"
29092 " const char *key,\n"
29093 " const char *mapname);\n"
29097 #: ../src/guestfs-actions.pod:4301
29099 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
29104 #: ../src/guestfs-actions.pod:4312
29105 msgid "guestfs_lvcreate"
29106 msgstr "guestfs_lvcreate"
29109 #: ../src/guestfs-actions.pod:4314
29113 " guestfs_lvcreate (guestfs_h *g,\n"
29114 " const char *logvol,\n"
29115 " const char *volgroup,\n"
29120 " guestfs_lvcreate (guestfs_h *g,\n"
29121 " const char *logvol,\n"
29122 " const char *volgroup,\n"
29127 #: ../src/guestfs-actions.pod:4327
29128 msgid "guestfs_lvm_canonical_lv_name"
29129 msgstr "guestfs_lvm_canonical_lv_name"
29132 #: ../src/guestfs-actions.pod:4329
29136 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29137 " const char *lvname);\n"
29141 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29142 " const char *lvname);\n"
29146 #: ../src/guestfs-actions.pod:4340
29147 msgid "See also C<guestfs_is_lv>."
29151 #: ../src/guestfs-actions.pod:4345
29152 msgid "(Added in 1.5.24)"
29153 msgstr "(Додано у 1.5.24)"
29156 #: ../src/guestfs-actions.pod:4347
29157 msgid "guestfs_lvm_clear_filter"
29158 msgstr "guestfs_lvm_clear_filter"
29161 #: ../src/guestfs-actions.pod:4349
29165 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29169 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29173 #: ../src/guestfs-actions.pod:4352
29175 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
29176 "see every block device."
29180 #: ../src/guestfs-actions.pod:4362
29181 msgid "guestfs_lvm_remove_all"
29182 msgstr "guestfs_lvm_remove_all"
29185 #: ../src/guestfs-actions.pod:4364
29189 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29193 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29197 #: ../src/guestfs-actions.pod:4377
29198 msgid "guestfs_lvm_set_filter"
29199 msgstr "guestfs_lvm_set_filter"
29202 #: ../src/guestfs-actions.pod:4379
29206 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29207 " char *const *devices);\n"
29211 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29212 " char *const *devices);\n"
29216 #: ../src/guestfs-actions.pod:4410
29217 msgid "guestfs_lvremove"
29218 msgstr "guestfs_lvremove"
29221 #: ../src/guestfs-actions.pod:4412
29225 " guestfs_lvremove (guestfs_h *g,\n"
29226 " const char *device);\n"
29230 " guestfs_lvremove (guestfs_h *g,\n"
29231 " const char *device);\n"
29235 #: ../src/guestfs-actions.pod:4424 ../src/guestfs-actions.pod:5817
29236 #: ../src/guestfs-actions.pod:7667
29237 msgid "(Added in 1.0.13)"
29238 msgstr "(Додано у 1.0.13)"
29241 #: ../src/guestfs-actions.pod:4426
29242 msgid "guestfs_lvrename"
29243 msgstr "guestfs_lvrename"
29246 #: ../src/guestfs-actions.pod:4428
29250 " guestfs_lvrename (guestfs_h *g,\n"
29251 " const char *logvol,\n"
29252 " const char *newlogvol);\n"
29256 " guestfs_lvrename (guestfs_h *g,\n"
29257 " const char *logvol,\n"
29258 " const char *newlogvol);\n"
29262 #: ../src/guestfs-actions.pod:4437 ../src/guestfs-actions.pod:7680
29263 msgid "(Added in 1.0.83)"
29264 msgstr "(Додано у 1.0.83)"
29267 #: ../src/guestfs-actions.pod:4439
29268 msgid "guestfs_lvresize"
29269 msgstr "guestfs_lvresize"
29272 #: ../src/guestfs-actions.pod:4441
29276 " guestfs_lvresize (guestfs_h *g,\n"
29277 " const char *device,\n"
29282 " guestfs_lvresize (guestfs_h *g,\n"
29283 " const char *device,\n"
29288 #: ../src/guestfs-actions.pod:4454
29289 msgid "guestfs_lvresize_free"
29290 msgstr "guestfs_lvresize_free"
29293 #: ../src/guestfs-actions.pod:4456
29297 " guestfs_lvresize_free (guestfs_h *g,\n"
29298 " const char *lv,\n"
29303 " guestfs_lvresize_free (guestfs_h *g,\n"
29304 " const char *lv,\n"
29309 #: ../src/guestfs-actions.pod:4469
29310 msgid "(Added in 1.3.3)"
29311 msgstr "(Додано у 1.3.3)"
29314 #: ../src/guestfs-actions.pod:4471
29315 msgid "guestfs_lvs"
29316 msgstr "guestfs_lvs"
29319 #: ../src/guestfs-actions.pod:4473
29323 " guestfs_lvs (guestfs_h *g);\n"
29327 " guestfs_lvs (guestfs_h *g);\n"
29331 #: ../src/guestfs-actions.pod:4482
29332 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
29336 #: ../src/guestfs-actions.pod:4490
29337 msgid "guestfs_lvs_full"
29338 msgstr "guestfs_lvs_full"
29341 #: ../src/guestfs-actions.pod:4492
29344 " struct guestfs_lvm_lv_list *\n"
29345 " guestfs_lvs_full (guestfs_h *g);\n"
29348 " struct guestfs_lvm_lv_list *\n"
29349 " guestfs_lvs_full (guestfs_h *g);\n"
29353 #: ../src/guestfs-actions.pod:4498
29355 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
29356 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
29360 #: ../src/guestfs-actions.pod:4504
29361 msgid "guestfs_lvuuid"
29362 msgstr "guestfs_lvuuid"
29365 #: ../src/guestfs-actions.pod:4506
29369 " guestfs_lvuuid (guestfs_h *g,\n"
29370 " const char *device);\n"
29374 " guestfs_lvuuid (guestfs_h *g,\n"
29375 " const char *device);\n"
29379 #: ../src/guestfs-actions.pod:4517
29380 msgid "guestfs_lxattrlist"
29381 msgstr "guestfs_lxattrlist"
29384 #: ../src/guestfs-actions.pod:4519
29387 " struct guestfs_xattr_list *\n"
29388 " guestfs_lxattrlist (guestfs_h *g,\n"
29389 " const char *path,\n"
29390 " char *const *names);\n"
29393 " struct guestfs_xattr_list *\n"
29394 " guestfs_lxattrlist (guestfs_h *g,\n"
29395 " const char *path,\n"
29396 " char *const *names);\n"
29400 #: ../src/guestfs-actions.pod:4538
29402 "This call is intended for programs that want to efficiently list a directory "
29403 "contents without making many round-trips. See also C<guestfs_lstatlist> for "
29404 "a similarly efficient call for getting standard stats. Very long directory "
29405 "listings might cause the protocol message size to be exceeded, causing this "
29406 "call to fail. The caller must split up such requests into smaller groups of "
29411 #: ../src/guestfs-actions.pod:4552
29412 msgid "guestfs_mkdir"
29413 msgstr "guestfs_mkdir"
29416 #: ../src/guestfs-actions.pod:4554
29420 " guestfs_mkdir (guestfs_h *g,\n"
29421 " const char *path);\n"
29425 " guestfs_mkdir (guestfs_h *g,\n"
29426 " const char *path);\n"
29430 #: ../src/guestfs-actions.pod:4564
29431 msgid "guestfs_mkdir_mode"
29432 msgstr "guestfs_mkdir_mode"
29435 #: ../src/guestfs-actions.pod:4566
29439 " guestfs_mkdir_mode (guestfs_h *g,\n"
29440 " const char *path,\n"
29445 " guestfs_mkdir_mode (guestfs_h *g,\n"
29446 " const char *path,\n"
29451 #: ../src/guestfs-actions.pod:4578
29452 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
29456 #: ../src/guestfs-actions.pod:4584
29457 msgid "guestfs_mkdir_p"
29458 msgstr "guestfs_mkdir_p"
29461 #: ../src/guestfs-actions.pod:4586
29465 " guestfs_mkdir_p (guestfs_h *g,\n"
29466 " const char *path);\n"
29470 " guestfs_mkdir_p (guestfs_h *g,\n"
29471 " const char *path);\n"
29475 #: ../src/guestfs-actions.pod:4597
29476 msgid "guestfs_mkdtemp"
29477 msgstr "guestfs_mkdtemp"
29480 #: ../src/guestfs-actions.pod:4599
29484 " guestfs_mkdtemp (guestfs_h *g,\n"
29485 " const char *template);\n"
29489 " guestfs_mkdtemp (guestfs_h *g,\n"
29490 " const char *template);\n"
29494 #: ../src/guestfs-actions.pod:4627
29495 msgid "guestfs_mke2fs_J"
29496 msgstr "guestfs_mke2fs_J"
29499 #: ../src/guestfs-actions.pod:4629
29503 " guestfs_mke2fs_J (guestfs_h *g,\n"
29504 " const char *fstype,\n"
29505 " int blocksize,\n"
29506 " const char *device,\n"
29507 " const char *journal);\n"
29511 " guestfs_mke2fs_J (guestfs_h *g,\n"
29512 " const char *fstype,\n"
29513 " int blocksize,\n"
29514 " const char *device,\n"
29515 " const char *journal);\n"
29519 #: ../src/guestfs-actions.pod:4642
29520 msgid "See also C<guestfs_mke2journal>."
29524 #: ../src/guestfs-actions.pod:4646 ../src/guestfs-actions.pod:4664
29525 #: ../src/guestfs-actions.pod:4682 ../src/guestfs-actions.pod:4698
29526 #: ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4726
29527 #: ../src/guestfs-actions.pod:4785 ../src/guestfs-actions.pod:5062
29528 msgid "(Added in 1.0.68)"
29529 msgstr "(Додано у 1.0.68)"
29532 #: ../src/guestfs-actions.pod:4648
29533 msgid "guestfs_mke2fs_JL"
29534 msgstr "guestfs_mke2fs_JL"
29537 #: ../src/guestfs-actions.pod:4650
29541 " guestfs_mke2fs_JL (guestfs_h *g,\n"
29542 " const char *fstype,\n"
29543 " int blocksize,\n"
29544 " const char *device,\n"
29545 " const char *label);\n"
29549 " guestfs_mke2fs_JL (guestfs_h *g,\n"
29550 " const char *fstype,\n"
29551 " int blocksize,\n"
29552 " const char *device,\n"
29553 " const char *label);\n"
29557 #: ../src/guestfs-actions.pod:4660
29558 msgid "See also C<guestfs_mke2journal_L>."
29562 #: ../src/guestfs-actions.pod:4666
29563 msgid "guestfs_mke2fs_JU"
29564 msgstr "guestfs_mke2fs_JU"
29567 #: ../src/guestfs-actions.pod:4668
29571 " guestfs_mke2fs_JU (guestfs_h *g,\n"
29572 " const char *fstype,\n"
29573 " int blocksize,\n"
29574 " const char *device,\n"
29575 " const char *uuid);\n"
29579 " guestfs_mke2fs_JU (guestfs_h *g,\n"
29580 " const char *fstype,\n"
29581 " int blocksize,\n"
29582 " const char *device,\n"
29583 " const char *uuid);\n"
29587 #: ../src/guestfs-actions.pod:4678
29588 msgid "See also C<guestfs_mke2journal_U>."
29592 #: ../src/guestfs-actions.pod:4684
29593 msgid "guestfs_mke2journal"
29594 msgstr "guestfs_mke2journal"
29597 #: ../src/guestfs-actions.pod:4686
29601 " guestfs_mke2journal (guestfs_h *g,\n"
29602 " int blocksize,\n"
29603 " const char *device);\n"
29607 " guestfs_mke2journal (guestfs_h *g,\n"
29608 " int blocksize,\n"
29609 " const char *device);\n"
29613 #: ../src/guestfs-actions.pod:4700
29614 msgid "guestfs_mke2journal_L"
29615 msgstr "guestfs_mke2journal_L"
29618 #: ../src/guestfs-actions.pod:4702
29622 " guestfs_mke2journal_L (guestfs_h *g,\n"
29623 " int blocksize,\n"
29624 " const char *label,\n"
29625 " const char *device);\n"
29629 " guestfs_mke2journal_L (guestfs_h *g,\n"
29630 " int blocksize,\n"
29631 " const char *label,\n"
29632 " const char *device);\n"
29636 #: ../src/guestfs-actions.pod:4714
29637 msgid "guestfs_mke2journal_U"
29638 msgstr "guestfs_mke2journal_U"
29641 #: ../src/guestfs-actions.pod:4716
29645 " guestfs_mke2journal_U (guestfs_h *g,\n"
29646 " int blocksize,\n"
29647 " const char *uuid,\n"
29648 " const char *device);\n"
29652 " guestfs_mke2journal_U (guestfs_h *g,\n"
29653 " int blocksize,\n"
29654 " const char *uuid,\n"
29655 " const char *device);\n"
29659 #: ../src/guestfs-actions.pod:4728
29660 msgid "guestfs_mkfifo"
29661 msgstr "guestfs_mkfifo"
29664 #: ../src/guestfs-actions.pod:4730
29668 " guestfs_mkfifo (guestfs_h *g,\n"
29670 " const char *path);\n"
29674 " guestfs_mkfifo (guestfs_h *g,\n"
29676 " const char *path);\n"
29680 #: ../src/guestfs-actions.pod:4735
29682 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
29683 "is just a convenient wrapper around C<guestfs_mknod>."
29687 #: ../src/guestfs-actions.pod:4745
29688 msgid "guestfs_mkfs"
29689 msgstr "guestfs_mkfs"
29692 #: ../src/guestfs-actions.pod:4747
29696 " guestfs_mkfs (guestfs_h *g,\n"
29697 " const char *fstype,\n"
29698 " const char *device);\n"
29702 " guestfs_mkfs (guestfs_h *g,\n"
29703 " const char *fstype,\n"
29704 " const char *device);\n"
29708 #: ../src/guestfs-actions.pod:4760
29709 msgid "guestfs_mkfs_b"
29710 msgstr "guestfs_mkfs_b"
29713 #: ../src/guestfs-actions.pod:4762
29717 " guestfs_mkfs_b (guestfs_h *g,\n"
29718 " const char *fstype,\n"
29719 " int blocksize,\n"
29720 " const char *device);\n"
29724 " guestfs_mkfs_b (guestfs_h *g,\n"
29725 " const char *fstype,\n"
29726 " int blocksize,\n"
29727 " const char *device);\n"
29731 #: ../src/guestfs-actions.pod:4768
29733 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
29738 #: ../src/guestfs-actions.pod:4775
29740 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
29741 "block size of the resulting filesystem. Supported block sizes depend on the "
29742 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
29746 #: ../src/guestfs-actions.pod:4787
29747 msgid "guestfs_mkfs_opts"
29748 msgstr "guestfs_mkfs_opts"
29751 #: ../src/guestfs-actions.pod:4789
29755 " guestfs_mkfs_opts (guestfs_h *g,\n"
29756 " const char *fstype,\n"
29757 " const char *device,\n"
29762 " guestfs_mkfs_opts (guestfs_h *g,\n"
29763 " const char *fstype,\n"
29764 " const char *device,\n"
29769 #: ../src/guestfs-actions.pod:4800
29772 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
29773 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
29774 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
29775 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
29780 #: ../src/guestfs-actions.pod:4848
29781 msgid "(Added in 1.7.19)"
29782 msgstr "(Додано у 1.7.19)"
29785 #: ../src/guestfs-actions.pod:4850
29786 msgid "guestfs_mkfs_opts_va"
29787 msgstr "guestfs_mkfs_opts_va"
29790 #: ../src/guestfs-actions.pod:4852
29794 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
29795 " const char *fstype,\n"
29796 " const char *device,\n"
29797 " va_list args);\n"
29801 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
29802 " const char *fstype,\n"
29803 " const char *device,\n"
29804 " va_list args);\n"
29808 #: ../src/guestfs-actions.pod:4858
29809 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
29813 #: ../src/guestfs-actions.pod:4862
29814 msgid "guestfs_mkfs_opts_argv"
29815 msgstr "guestfs_mkfs_opts_argv"
29818 #: ../src/guestfs-actions.pod:4864
29822 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
29823 " const char *fstype,\n"
29824 " const char *device,\n"
29825 " const struct guestfs_mkfs_opts_argv *optargs);\n"
29829 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
29830 " const char *fstype,\n"
29831 " const char *device,\n"
29832 " const struct guestfs_mkfs_opts_argv *optargs);\n"
29836 #: ../src/guestfs-actions.pod:4870
29837 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
29841 #: ../src/guestfs-actions.pod:4874
29842 msgid "guestfs_mkmountpoint"
29843 msgstr "guestfs_mkmountpoint"
29846 #: ../src/guestfs-actions.pod:4876
29850 " guestfs_mkmountpoint (guestfs_h *g,\n"
29851 " const char *exemptpath);\n"
29855 " guestfs_mkmountpoint (guestfs_h *g,\n"
29856 " const char *exemptpath);\n"
29860 #: ../src/guestfs-actions.pod:4880
29862 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
29863 "that can be used to create extra mountpoints before mounting the first "
29868 #: ../src/guestfs-actions.pod:4904
29870 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
29871 "may get unexpected errors if you try to mix these calls. It is safest to "
29872 "manually unmount filesystems and remove mountpoints after use."
29876 #: ../src/guestfs-actions.pod:4908
29878 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
29879 "first, so for this to work for manual mountpoints, you must ensure that the "
29880 "innermost mountpoints have the longest pathnames, as in the example code "
29885 #: ../src/guestfs-actions.pod:4915
29887 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
29888 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
29889 "can also trigger these issues."
29893 #: ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:5227
29894 #: ../src/guestfs-actions.pod:6237
29895 msgid "(Added in 1.0.62)"
29896 msgstr "(Додано у 1.0.62)"
29899 #: ../src/guestfs-actions.pod:4923
29900 msgid "guestfs_mknod"
29904 #: ../src/guestfs-actions.pod:4925
29908 " guestfs_mknod (guestfs_h *g,\n"
29912 " const char *path);\n"
29917 #: ../src/guestfs-actions.pod:4940
29919 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
29920 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
29921 "regular file). These constants are available in the standard Linux header "
29922 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
29923 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
29924 "the appropriate constant for you."
29928 #: ../src/guestfs-actions.pod:4954
29929 msgid "guestfs_mknod_b"
29933 #: ../src/guestfs-actions.pod:4956
29937 " guestfs_mknod_b (guestfs_h *g,\n"
29941 " const char *path);\n"
29946 #: ../src/guestfs-actions.pod:4963
29948 "This call creates a block device node called C<path> with mode C<mode> and "
29949 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
29950 "wrapper around C<guestfs_mknod>."
29954 #: ../src/guestfs-actions.pod:4973
29955 msgid "guestfs_mknod_c"
29959 #: ../src/guestfs-actions.pod:4975
29963 " guestfs_mknod_c (guestfs_h *g,\n"
29967 " const char *path);\n"
29972 #: ../src/guestfs-actions.pod:4982
29974 "This call creates a char device node called C<path> with mode C<mode> and "
29975 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
29976 "wrapper around C<guestfs_mknod>."
29980 #: ../src/guestfs-actions.pod:4992
29981 msgid "guestfs_mkswap"
29985 #: ../src/guestfs-actions.pod:4994
29989 " guestfs_mkswap (guestfs_h *g,\n"
29990 " const char *device);\n"
29995 #: ../src/guestfs-actions.pod:5004
29996 msgid "guestfs_mkswap_L"
30000 #: ../src/guestfs-actions.pod:5006
30004 " guestfs_mkswap_L (guestfs_h *g,\n"
30005 " const char *label,\n"
30006 " const char *device);\n"
30011 #: ../src/guestfs-actions.pod:5021
30012 msgid "guestfs_mkswap_U"
30016 #: ../src/guestfs-actions.pod:5023
30020 " guestfs_mkswap_U (guestfs_h *g,\n"
30021 " const char *uuid,\n"
30022 " const char *device);\n"
30027 #: ../src/guestfs-actions.pod:5034
30028 msgid "guestfs_mkswap_file"
30032 #: ../src/guestfs-actions.pod:5036
30036 " guestfs_mkswap_file (guestfs_h *g,\n"
30037 " const char *path);\n"
30042 #: ../src/guestfs-actions.pod:5042
30044 "This command just writes a swap file signature to an existing file. To "
30045 "create the file itself, use something like C<guestfs_fallocate>."
30049 #: ../src/guestfs-actions.pod:5049
30050 msgid "guestfs_modprobe"
30054 #: ../src/guestfs-actions.pod:5051
30058 " guestfs_modprobe (guestfs_h *g,\n"
30059 " const char *modulename);\n"
30064 #: ../src/guestfs-actions.pod:5064
30065 msgid "guestfs_mount"
30069 #: ../src/guestfs-actions.pod:5066
30073 " guestfs_mount (guestfs_h *g,\n"
30074 " const char *device,\n"
30075 " const char *mountpoint);\n"
30080 #: ../src/guestfs-actions.pod:5085
30082 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
30083 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
30084 "problems for users. If your program might need to work with older versions "
30085 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
30086 "for the first parameter if you don't want any options)."
30090 #: ../src/guestfs-actions.pod:5096
30091 msgid "guestfs_mount_9p"
30095 #: ../src/guestfs-actions.pod:5098
30099 " guestfs_mount_9p (guestfs_h *g,\n"
30100 " const char *mounttag,\n"
30101 " const char *mountpoint,\n"
30107 #: ../src/guestfs-actions.pod:5109
30110 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
30115 #: ../src/guestfs-actions.pod:5122
30116 msgid "guestfs_mount_9p_va"
30120 #: ../src/guestfs-actions.pod:5124
30124 " guestfs_mount_9p_va (guestfs_h *g,\n"
30125 " const char *mounttag,\n"
30126 " const char *mountpoint,\n"
30127 " va_list args);\n"
30132 #: ../src/guestfs-actions.pod:5130
30133 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
30137 #: ../src/guestfs-actions.pod:5134
30138 msgid "guestfs_mount_9p_argv"
30142 #: ../src/guestfs-actions.pod:5136
30146 " guestfs_mount_9p_argv (guestfs_h *g,\n"
30147 " const char *mounttag,\n"
30148 " const char *mountpoint,\n"
30149 " const struct guestfs_mount_9p_argv *optargs);\n"
30154 #: ../src/guestfs-actions.pod:5142
30155 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
30159 #: ../src/guestfs-actions.pod:5146
30160 msgid "guestfs_mount_loop"
30164 #: ../src/guestfs-actions.pod:5148
30168 " guestfs_mount_loop (guestfs_h *g,\n"
30169 " const char *file,\n"
30170 " const char *mountpoint);\n"
30175 #: ../src/guestfs-actions.pod:5161
30176 msgid "guestfs_mount_options"
30180 #: ../src/guestfs-actions.pod:5163
30184 " guestfs_mount_options (guestfs_h *g,\n"
30185 " const char *options,\n"
30186 " const char *device,\n"
30187 " const char *mountpoint);\n"
30192 #: ../src/guestfs-actions.pod:5169
30194 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30195 "the mount options as for the L<mount(8)> I<-o> flag."
30199 #: ../src/guestfs-actions.pod:5179 ../src/guestfs-actions.pod:5193
30200 #: ../src/guestfs-actions.pod:5210
30201 msgid "(Added in 1.0.10)"
30205 #: ../src/guestfs-actions.pod:5181
30206 msgid "guestfs_mount_ro"
30210 #: ../src/guestfs-actions.pod:5183
30214 " guestfs_mount_ro (guestfs_h *g,\n"
30215 " const char *device,\n"
30216 " const char *mountpoint);\n"
30221 #: ../src/guestfs-actions.pod:5188
30223 "This is the same as the C<guestfs_mount> command, but it mounts the "
30224 "filesystem with the read-only (I<-o ro>) flag."
30228 #: ../src/guestfs-actions.pod:5195
30229 msgid "guestfs_mount_vfs"
30233 #: ../src/guestfs-actions.pod:5197
30237 " guestfs_mount_vfs (guestfs_h *g,\n"
30238 " const char *options,\n"
30239 " const char *vfstype,\n"
30240 " const char *device,\n"
30241 " const char *mountpoint);\n"
30246 #: ../src/guestfs-actions.pod:5204
30248 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30249 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
30254 #: ../src/guestfs-actions.pod:5212
30255 msgid "guestfs_mountpoints"
30259 #: ../src/guestfs-actions.pod:5214
30263 " guestfs_mountpoints (guestfs_h *g);\n"
30268 #: ../src/guestfs-actions.pod:5217
30270 "This call is similar to C<guestfs_mounts>. That call returns a list of "
30271 "devices. This one returns a hash table (map) of device name to directory "
30272 "where the device is mounted."
30276 #: ../src/guestfs-actions.pod:5229
30277 msgid "guestfs_mounts"
30281 #: ../src/guestfs-actions.pod:5231
30285 " guestfs_mounts (guestfs_h *g);\n"
30290 #: ../src/guestfs-actions.pod:5239
30291 msgid "See also: C<guestfs_mountpoints>"
30295 #: ../src/guestfs-actions.pod:5247
30300 #: ../src/guestfs-actions.pod:5249
30304 " guestfs_mv (guestfs_h *g,\n"
30305 " const char *src,\n"
30306 " const char *dest);\n"
30311 #: ../src/guestfs-actions.pod:5261
30312 msgid "guestfs_ntfs_3g_probe"
30316 #: ../src/guestfs-actions.pod:5263
30320 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
30322 " const char *device);\n"
30327 #: ../src/guestfs-actions.pod:5282
30328 msgid "(Added in 1.0.43)"
30332 #: ../src/guestfs-actions.pod:5284
30333 msgid "guestfs_ntfsresize"
30337 #: ../src/guestfs-actions.pod:5286
30341 " guestfs_ntfsresize (guestfs_h *g,\n"
30342 " const char *device);\n"
30347 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5390
30349 "I<This function is deprecated.> In new code, use the L</"
30350 "guestfs_ntfsresize_opts> call instead."
30354 #: ../src/guestfs-actions.pod:5314
30355 msgid "guestfs_ntfsresize_opts"
30359 #: ../src/guestfs-actions.pod:5316
30363 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
30364 " const char *device,\n"
30370 #: ../src/guestfs-actions.pod:5326
30373 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
30374 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
30379 #: ../src/guestfs-actions.pod:5346
30381 "After the resize operation, the filesystem is always marked as requiring a "
30382 "consistency check (for safety). You have to boot into Windows to perform "
30383 "this check and clear this condition. If you I<don't> set the C<force> "
30384 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
30385 "times on a single filesystem without booting into Windows between each "
30390 #: ../src/guestfs-actions.pod:5361
30391 msgid "guestfs_ntfsresize_opts_va"
30395 #: ../src/guestfs-actions.pod:5363
30399 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
30400 " const char *device,\n"
30401 " va_list args);\n"
30406 #: ../src/guestfs-actions.pod:5368
30407 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
30411 #: ../src/guestfs-actions.pod:5372
30412 msgid "guestfs_ntfsresize_opts_argv"
30416 #: ../src/guestfs-actions.pod:5374
30420 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
30421 " const char *device,\n"
30422 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
30427 #: ../src/guestfs-actions.pod:5379
30428 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
30432 #: ../src/guestfs-actions.pod:5383
30433 msgid "guestfs_ntfsresize_size"
30437 #: ../src/guestfs-actions.pod:5385
30441 " guestfs_ntfsresize_size (guestfs_h *g,\n"
30442 " const char *device,\n"
30443 " int64_t size);\n"
30448 #: ../src/guestfs-actions.pod:5397
30450 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
30451 "to specify the new size (in bytes) explicitly."
30455 #: ../src/guestfs-actions.pod:5402 ../src/guestfs-actions.pod:5844
30456 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6185
30457 #: ../src/guestfs-actions.pod:7824
30458 msgid "(Added in 1.3.14)"
30462 #: ../src/guestfs-actions.pod:5404
30463 msgid "guestfs_part_add"
30467 #: ../src/guestfs-actions.pod:5406
30471 " guestfs_part_add (guestfs_h *g,\n"
30472 " const char *device,\n"
30473 " const char *prlogex,\n"
30474 " int64_t startsect,\n"
30475 " int64_t endsect);\n"
30480 #: ../src/guestfs-actions.pod:5413
30482 "This command adds a partition to C<device>. If there is no partition table "
30483 "on the device, call C<guestfs_part_init> first."
30487 #: ../src/guestfs-actions.pod:5425
30489 "Creating a partition which covers the whole disk is not so easy. Use "
30490 "C<guestfs_part_disk> to do that."
30494 #: ../src/guestfs-actions.pod:5430 ../src/guestfs-actions.pod:5468
30495 #: ../src/guestfs-actions.pod:5521 ../src/guestfs-actions.pod:5605
30496 #: ../src/guestfs-actions.pod:5643 ../src/guestfs-actions.pod:5662
30497 #: ../src/guestfs-actions.pod:5702
30498 msgid "(Added in 1.0.78)"
30502 #: ../src/guestfs-actions.pod:5432
30503 msgid "guestfs_part_del"
30507 #: ../src/guestfs-actions.pod:5434
30511 " guestfs_part_del (guestfs_h *g,\n"
30512 " const char *device,\n"
30518 #: ../src/guestfs-actions.pod:5449
30519 msgid "guestfs_part_disk"
30523 #: ../src/guestfs-actions.pod:5451
30527 " guestfs_part_disk (guestfs_h *g,\n"
30528 " const char *device,\n"
30529 " const char *parttype);\n"
30534 #: ../src/guestfs-actions.pod:5456
30536 "This command is simply a combination of C<guestfs_part_init> followed by "
30537 "C<guestfs_part_add> to create a single primary partition covering the whole "
30542 #: ../src/guestfs-actions.pod:5460
30544 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
30545 "possible values are described in C<guestfs_part_init>."
30549 #: ../src/guestfs-actions.pod:5470
30550 msgid "guestfs_part_get_bootable"
30554 #: ../src/guestfs-actions.pod:5472
30558 " guestfs_part_get_bootable (guestfs_h *g,\n"
30559 " const char *device,\n"
30565 #: ../src/guestfs-actions.pod:5480
30566 msgid "See also C<guestfs_part_set_bootable>."
30570 #: ../src/guestfs-actions.pod:5486
30571 msgid "guestfs_part_get_mbr_id"
30575 #: ../src/guestfs-actions.pod:5488
30579 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
30580 " const char *device,\n"
30586 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5678
30588 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
30589 "undefined results for other partition table types (see "
30590 "C<guestfs_part_get_parttype>)."
30594 #: ../src/guestfs-actions.pod:5504
30595 msgid "guestfs_part_get_parttype"
30599 #: ../src/guestfs-actions.pod:5506
30603 " guestfs_part_get_parttype (guestfs_h *g,\n"
30604 " const char *device);\n"
30609 #: ../src/guestfs-actions.pod:5513
30611 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
30612 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
30613 "possible, although unusual. See C<guestfs_part_init> for a full list."
30617 #: ../src/guestfs-actions.pod:5523
30618 msgid "guestfs_part_init"
30622 #: ../src/guestfs-actions.pod:5525
30626 " guestfs_part_init (guestfs_h *g,\n"
30627 " const char *device,\n"
30628 " const char *parttype);\n"
30633 #: ../src/guestfs-actions.pod:5534
30635 "Initially there are no partitions. Following this, you should call "
30636 "C<guestfs_part_add> for each partition required."
30640 #: ../src/guestfs-actions.pod:5607
30641 msgid "guestfs_part_list"
30642 msgstr "guestfs_part_list"
30645 #: ../src/guestfs-actions.pod:5609
30648 " struct guestfs_partition_list *\n"
30649 " guestfs_part_list (guestfs_h *g,\n"
30650 " const char *device);\n"
30653 " struct guestfs_partition_list *\n"
30654 " guestfs_part_list (guestfs_h *g,\n"
30655 " const char *device);\n"
30659 #: ../src/guestfs-actions.pod:5626
30661 "Start of the partition I<in bytes>. To get sectors you have to divide by "
30662 "the device's sector size, see C<guestfs_blockdev_getss>."
30666 #: ../src/guestfs-actions.pod:5639
30668 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
30669 "was an error. I<The caller must call C<guestfs_free_partition_list> after "
30674 #: ../src/guestfs-actions.pod:5645
30675 msgid "guestfs_part_set_bootable"
30679 #: ../src/guestfs-actions.pod:5647
30683 " guestfs_part_set_bootable (guestfs_h *g,\n"
30684 " const char *device,\n"
30686 " int bootable);\n"
30691 #: ../src/guestfs-actions.pod:5664
30692 msgid "guestfs_part_set_mbr_id"
30696 #: ../src/guestfs-actions.pod:5666
30700 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
30701 " const char *device,\n"
30708 #: ../src/guestfs-actions.pod:5686
30709 msgid "guestfs_part_set_name"
30713 #: ../src/guestfs-actions.pod:5688
30717 " guestfs_part_set_name (guestfs_h *g,\n"
30718 " const char *device,\n"
30720 " const char *name);\n"
30725 #: ../src/guestfs-actions.pod:5704
30726 msgid "guestfs_part_to_dev"
30730 #: ../src/guestfs-actions.pod:5706
30734 " guestfs_part_to_dev (guestfs_h *g,\n"
30735 " const char *partition);\n"
30740 #: ../src/guestfs-actions.pod:5714
30742 "The named partition must exist, for example as a string returned from "
30743 "C<guestfs_list_partitions>."
30747 #: ../src/guestfs-actions.pod:5722
30748 msgid "guestfs_ping_daemon"
30752 #: ../src/guestfs-actions.pod:5724
30756 " guestfs_ping_daemon (guestfs_h *g);\n"
30761 #: ../src/guestfs-actions.pod:5736
30762 msgid "guestfs_pread"
30766 #: ../src/guestfs-actions.pod:5738
30770 " guestfs_pread (guestfs_h *g,\n"
30771 " const char *path,\n"
30773 " int64_t offset,\n"
30774 " size_t *size_r);\n"
30779 #: ../src/guestfs-actions.pod:5751
30780 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
30784 #: ../src/guestfs-actions.pod:5762
30785 msgid "guestfs_pread_device"
30789 #: ../src/guestfs-actions.pod:5764
30793 " guestfs_pread_device (guestfs_h *g,\n"
30794 " const char *device,\n"
30796 " int64_t offset,\n"
30797 " size_t *size_r);\n"
30802 #: ../src/guestfs-actions.pod:5777
30803 msgid "See also C<guestfs_pread>."
30807 #: ../src/guestfs-actions.pod:5786
30808 msgid "(Added in 1.5.21)"
30812 #: ../src/guestfs-actions.pod:5788
30813 msgid "guestfs_pvcreate"
30817 #: ../src/guestfs-actions.pod:5790
30821 " guestfs_pvcreate (guestfs_h *g,\n"
30822 " const char *device);\n"
30827 #: ../src/guestfs-actions.pod:5802
30828 msgid "guestfs_pvremove"
30832 #: ../src/guestfs-actions.pod:5804
30836 " guestfs_pvremove (guestfs_h *g,\n"
30837 " const char *device);\n"
30842 #: ../src/guestfs-actions.pod:5819
30843 msgid "guestfs_pvresize"
30847 #: ../src/guestfs-actions.pod:5821
30851 " guestfs_pvresize (guestfs_h *g,\n"
30852 " const char *device);\n"
30857 #: ../src/guestfs-actions.pod:5832
30858 msgid "guestfs_pvresize_size"
30862 #: ../src/guestfs-actions.pod:5834
30866 " guestfs_pvresize_size (guestfs_h *g,\n"
30867 " const char *device,\n"
30868 " int64_t size);\n"
30873 #: ../src/guestfs-actions.pod:5839
30875 "This command is the same as C<guestfs_pvresize> except that it allows you to "
30876 "specify the new size (in bytes) explicitly."
30880 #: ../src/guestfs-actions.pod:5846
30881 msgid "guestfs_pvs"
30885 #: ../src/guestfs-actions.pod:5848
30889 " guestfs_pvs (guestfs_h *g);\n"
30894 #: ../src/guestfs-actions.pod:5857
30895 msgid "See also C<guestfs_pvs_full>."
30899 #: ../src/guestfs-actions.pod:5865
30900 msgid "guestfs_pvs_full"
30904 #: ../src/guestfs-actions.pod:5867
30907 " struct guestfs_lvm_pv_list *\n"
30908 " guestfs_pvs_full (guestfs_h *g);\n"
30913 #: ../src/guestfs-actions.pod:5873
30915 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
30916 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
30920 #: ../src/guestfs-actions.pod:5879
30921 msgid "guestfs_pvuuid"
30925 #: ../src/guestfs-actions.pod:5881
30929 " guestfs_pvuuid (guestfs_h *g,\n"
30930 " const char *device);\n"
30935 #: ../src/guestfs-actions.pod:5892
30936 msgid "guestfs_pwrite"
30940 #: ../src/guestfs-actions.pod:5894
30944 " guestfs_pwrite (guestfs_h *g,\n"
30945 " const char *path,\n"
30946 " const char *content,\n"
30947 " size_t content_size,\n"
30948 " int64_t offset);\n"
30953 #: ../src/guestfs-actions.pod:5910
30954 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
30958 #: ../src/guestfs-actions.pod:5919
30959 msgid "guestfs_pwrite_device"
30963 #: ../src/guestfs-actions.pod:5921
30967 " guestfs_pwrite_device (guestfs_h *g,\n"
30968 " const char *device,\n"
30969 " const char *content,\n"
30970 " size_t content_size,\n"
30971 " int64_t offset);\n"
30976 #: ../src/guestfs-actions.pod:5936
30977 msgid "See also C<guestfs_pwrite>."
30981 #: ../src/guestfs-actions.pod:5943
30982 msgid "(Added in 1.5.20)"
30986 #: ../src/guestfs-actions.pod:5945
30987 msgid "guestfs_read_file"
30991 #: ../src/guestfs-actions.pod:5947
30995 " guestfs_read_file (guestfs_h *g,\n"
30996 " const char *path,\n"
30997 " size_t *size_r);\n"
31002 #: ../src/guestfs-actions.pod:5955
31004 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
31005 "embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
31006 "function is limited in the total size of file that can be handled."
31010 #: ../src/guestfs-actions.pod:5967
31011 msgid "(Added in 1.0.63)"
31015 #: ../src/guestfs-actions.pod:5969
31016 msgid "guestfs_read_lines"
31020 #: ../src/guestfs-actions.pod:5971
31024 " guestfs_read_lines (guestfs_h *g,\n"
31025 " const char *path);\n"
31030 #: ../src/guestfs-actions.pod:5980
31032 "Note that this function cannot correctly handle binary files (specifically, "
31033 "files containing C<\\0> character which is treated as end of line). For "
31034 "those you need to use the C<guestfs_read_file> function which has a more "
31035 "complex interface."
31039 #: ../src/guestfs-actions.pod:5991
31040 msgid "guestfs_readdir"
31044 #: ../src/guestfs-actions.pod:5993
31047 " struct guestfs_dirent_list *\n"
31048 " guestfs_readdir (guestfs_h *g,\n"
31049 " const char *dir);\n"
31054 #: ../src/guestfs-actions.pod:6047
31056 "This function is primarily intended for use by programs. To get a simple "
31057 "list of names, use C<guestfs_ls>. To get a printable directory for human "
31058 "consumption, use C<guestfs_ll>."
31062 #: ../src/guestfs-actions.pod:6051
31064 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
31065 "was an error. I<The caller must call C<guestfs_free_dirent_list> after use>."
31069 #: ../src/guestfs-actions.pod:6057
31070 msgid "guestfs_readlink"
31074 #: ../src/guestfs-actions.pod:6059
31078 " guestfs_readlink (guestfs_h *g,\n"
31079 " const char *path);\n"
31084 #: ../src/guestfs-actions.pod:6070
31085 msgid "guestfs_readlinklist"
31089 #: ../src/guestfs-actions.pod:6072
31093 " guestfs_readlinklist (guestfs_h *g,\n"
31094 " const char *path,\n"
31095 " char *const *names);\n"
31100 #: ../src/guestfs-actions.pod:6105
31101 msgid "guestfs_realpath"
31105 #: ../src/guestfs-actions.pod:6107
31109 " guestfs_realpath (guestfs_h *g,\n"
31110 " const char *path);\n"
31115 #: ../src/guestfs-actions.pod:6119
31116 msgid "guestfs_removexattr"
31120 #: ../src/guestfs-actions.pod:6121
31124 " guestfs_removexattr (guestfs_h *g,\n"
31125 " const char *xattr,\n"
31126 " const char *path);\n"
31131 #: ../src/guestfs-actions.pod:6129
31132 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
31136 #: ../src/guestfs-actions.pod:6135
31137 msgid "guestfs_resize2fs"
31141 #: ../src/guestfs-actions.pod:6137
31145 " guestfs_resize2fs (guestfs_h *g,\n"
31146 " const char *device);\n"
31151 #: ../src/guestfs-actions.pod:6144
31153 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
31154 "C<device> before calling this command. For unknown reasons C<resize2fs> "
31155 "sometimes gives an error about this and sometimes not. In any case, it is "
31156 "always safe to call C<guestfs_e2fsck_f> before calling this function."
31160 #: ../src/guestfs-actions.pod:6154
31161 msgid "guestfs_resize2fs_M"
31165 #: ../src/guestfs-actions.pod:6156
31169 " guestfs_resize2fs_M (guestfs_h *g,\n"
31170 " const char *device);\n"
31175 #: ../src/guestfs-actions.pod:6160
31177 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
31178 "resized to its minimum size. This works like the I<-M> option to the "
31179 "C<resize2fs> command."
31183 #: ../src/guestfs-actions.pod:6164
31185 "To get the resulting size of the filesystem you should call "
31186 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
31187 "These two numbers, multiplied together, give the resulting size of the "
31188 "minimal filesystem in bytes."
31192 #: ../src/guestfs-actions.pod:6173
31193 msgid "guestfs_resize2fs_size"
31197 #: ../src/guestfs-actions.pod:6175
31201 " guestfs_resize2fs_size (guestfs_h *g,\n"
31202 " const char *device,\n"
31203 " int64_t size);\n"
31208 #: ../src/guestfs-actions.pod:6180
31210 "This command is the same as C<guestfs_resize2fs> except that it allows you "
31211 "to specify the new size (in bytes) explicitly."
31215 #: ../src/guestfs-actions.pod:6187
31220 #: ../src/guestfs-actions.pod:6189
31224 " guestfs_rm (guestfs_h *g,\n"
31225 " const char *path);\n"
31230 #: ../src/guestfs-actions.pod:6199
31231 msgid "guestfs_rm_rf"
31235 #: ../src/guestfs-actions.pod:6201
31239 " guestfs_rm_rf (guestfs_h *g,\n"
31240 " const char *path);\n"
31245 #: ../src/guestfs-actions.pod:6213
31246 msgid "guestfs_rmdir"
31250 #: ../src/guestfs-actions.pod:6215
31254 " guestfs_rmdir (guestfs_h *g,\n"
31255 " const char *path);\n"
31260 #: ../src/guestfs-actions.pod:6225
31261 msgid "guestfs_rmmountpoint"
31265 #: ../src/guestfs-actions.pod:6227
31269 " guestfs_rmmountpoint (guestfs_h *g,\n"
31270 " const char *exemptpath);\n"
31275 #: ../src/guestfs-actions.pod:6231
31277 "This calls removes a mountpoint that was previously created with "
31278 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
31282 #: ../src/guestfs-actions.pod:6239
31283 msgid "guestfs_scrub_device"
31287 #: ../src/guestfs-actions.pod:6241
31291 " guestfs_scrub_device (guestfs_h *g,\n"
31292 " const char *device);\n"
31297 #: ../src/guestfs-actions.pod:6256 ../src/guestfs-actions.pod:6274
31298 #: ../src/guestfs-actions.pod:6293
31299 msgid "(Added in 1.0.52)"
31303 #: ../src/guestfs-actions.pod:6258
31304 msgid "guestfs_scrub_file"
31308 #: ../src/guestfs-actions.pod:6260
31312 " guestfs_scrub_file (guestfs_h *g,\n"
31313 " const char *file);\n"
31318 #: ../src/guestfs-actions.pod:6276
31319 msgid "guestfs_scrub_freespace"
31323 #: ../src/guestfs-actions.pod:6278
31327 " guestfs_scrub_freespace (guestfs_h *g,\n"
31328 " const char *dir);\n"
31333 #: ../src/guestfs-actions.pod:6282
31335 "This command creates the directory C<dir> and then fills it with files until "
31336 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
31337 "and deletes them. The intention is to scrub any free space on the partition "
31338 "containing C<dir>."
31342 #: ../src/guestfs-actions.pod:6295
31343 msgid "guestfs_set_append"
31347 #: ../src/guestfs-actions.pod:6297
31351 " guestfs_set_append (guestfs_h *g,\n"
31352 " const char *append);\n"
31357 #: ../src/guestfs-actions.pod:6314
31358 msgid "guestfs_set_attach_method"
31362 #: ../src/guestfs-actions.pod:6316
31366 " guestfs_set_attach_method (guestfs_h *g,\n"
31367 " const char *attachmethod);\n"
31372 #: ../src/guestfs-actions.pod:6344
31373 msgid "guestfs_set_autosync"
31377 #: ../src/guestfs-actions.pod:6346
31381 " guestfs_set_autosync (guestfs_h *g,\n"
31382 " int autosync);\n"
31387 #: ../src/guestfs-actions.pod:6362
31388 msgid "guestfs_set_direct"
31392 #: ../src/guestfs-actions.pod:6364
31396 " guestfs_set_direct (guestfs_h *g,\n"
31402 #: ../src/guestfs-actions.pod:6372
31404 "One consequence of this is that log messages aren't caught by the library "
31405 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
31410 #: ../src/guestfs-actions.pod:6385
31411 msgid "guestfs_set_e2label"
31415 #: ../src/guestfs-actions.pod:6387
31419 " guestfs_set_e2label (guestfs_h *g,\n"
31420 " const char *device,\n"
31421 " const char *label);\n"
31426 #: ../src/guestfs-actions.pod:6396
31428 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
31429 "the existing label on a filesystem."
31433 #: ../src/guestfs-actions.pod:6403
31434 msgid "guestfs_set_e2uuid"
31438 #: ../src/guestfs-actions.pod:6405
31442 " guestfs_set_e2uuid (guestfs_h *g,\n"
31443 " const char *device,\n"
31444 " const char *uuid);\n"
31449 #: ../src/guestfs-actions.pod:6415
31451 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
31452 "the existing UUID of a filesystem."
31456 #: ../src/guestfs-actions.pod:6422
31457 msgid "guestfs_set_memsize"
31461 #: ../src/guestfs-actions.pod:6424
31465 " guestfs_set_memsize (guestfs_h *g,\n"
31471 #: ../src/guestfs-actions.pod:6428
31473 "This sets the memory size in megabytes allocated to the qemu subprocess. "
31474 "This only has any effect if called before C<guestfs_launch>."
31478 #: ../src/guestfs-actions.pod:6443
31479 msgid "guestfs_set_network"
31483 #: ../src/guestfs-actions.pod:6445
31487 " guestfs_set_network (guestfs_h *g,\n"
31493 #: ../src/guestfs-actions.pod:6455
31495 "You must call this before calling C<guestfs_launch>, otherwise it has no "
31500 #: ../src/guestfs-actions.pod:6462
31501 msgid "guestfs_set_path"
31505 #: ../src/guestfs-actions.pod:6464
31509 " guestfs_set_path (guestfs_h *g,\n"
31510 " const char *searchpath);\n"
31515 #: ../src/guestfs-actions.pod:6479
31516 msgid "guestfs_set_pgroup"
31520 #: ../src/guestfs-actions.pod:6481
31524 " guestfs_set_pgroup (guestfs_h *g,\n"
31530 #: ../src/guestfs-actions.pod:6498
31531 msgid "guestfs_set_qemu"
31535 #: ../src/guestfs-actions.pod:6500
31539 " guestfs_set_qemu (guestfs_h *g,\n"
31540 " const char *qemu);\n"
31545 #: ../src/guestfs-actions.pod:6526
31546 msgid "guestfs_set_recovery_proc"
31550 #: ../src/guestfs-actions.pod:6528
31554 " guestfs_set_recovery_proc (guestfs_h *g,\n"
31555 " int recoveryproc);\n"
31560 #: ../src/guestfs-actions.pod:6532
31562 "If this is called with the parameter C<false> then C<guestfs_launch> does "
31563 "not create a recovery process. The purpose of the recovery process is to "
31564 "stop runaway qemu processes in the case where the main program aborts "
31569 #: ../src/guestfs-actions.pod:6537
31571 "This only has any effect if called before C<guestfs_launch>, and the default "
31576 #: ../src/guestfs-actions.pod:6550
31577 msgid "guestfs_set_selinux"
31581 #: ../src/guestfs-actions.pod:6552
31585 " guestfs_set_selinux (guestfs_h *g,\n"
31591 #: ../src/guestfs-actions.pod:6569
31593 #| msgid "guestfs_ln_s"
31594 msgid "guestfs_set_smp"
31595 msgstr "guestfs_ln_s"
31598 #: ../src/guestfs-actions.pod:6571
31602 #| " guestfs_mkdir_p (guestfs_h *g,\n"
31603 #| " const char *path);\n"
31607 " guestfs_set_smp (guestfs_h *g,\n"
31612 " guestfs_mkdir_p (guestfs_h *g,\n"
31613 " const char *path);\n"
31617 #: ../src/guestfs-actions.pod:6579
31618 msgid "This function must be called before C<guestfs_launch>."
31622 #: ../src/guestfs-actions.pod:6585
31623 msgid "guestfs_set_trace"
31627 #: ../src/guestfs-actions.pod:6587
31631 " guestfs_set_trace (guestfs_h *g,\n"
31637 #: ../src/guestfs-actions.pod:6601
31639 "Trace messages are normally sent to C<stderr>, unless you register a "
31640 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
31644 #: ../src/guestfs-actions.pod:6609
31645 msgid "guestfs_set_verbose"
31649 #: ../src/guestfs-actions.pod:6611
31653 " guestfs_set_verbose (guestfs_h *g,\n"
31659 #: ../src/guestfs-actions.pod:6620
31661 "Verbose messages are normally sent to C<stderr>, unless you register a "
31662 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
31666 #: ../src/guestfs-actions.pod:6628
31667 msgid "guestfs_setcon"
31671 #: ../src/guestfs-actions.pod:6630
31675 " guestfs_setcon (guestfs_h *g,\n"
31676 " const char *context);\n"
31681 #: ../src/guestfs-actions.pod:6643
31682 msgid "guestfs_setxattr"
31686 #: ../src/guestfs-actions.pod:6645
31690 " guestfs_setxattr (guestfs_h *g,\n"
31691 " const char *xattr,\n"
31692 " const char *val,\n"
31694 " const char *path);\n"
31699 #: ../src/guestfs-actions.pod:6656
31700 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
31704 #: ../src/guestfs-actions.pod:6662
31705 msgid "guestfs_sfdisk"
31709 #: ../src/guestfs-actions.pod:6664
31713 " guestfs_sfdisk (guestfs_h *g,\n"
31714 " const char *device,\n"
31718 " char *const *lines);\n"
31723 #: ../src/guestfs-actions.pod:6672 ../src/guestfs-actions.pod:6716
31724 #: ../src/guestfs-actions.pod:6750
31726 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
31731 #: ../src/guestfs-actions.pod:6699
31733 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
31737 #: ../src/guestfs-actions.pod:6709
31738 msgid "guestfs_sfdiskM"
31742 #: ../src/guestfs-actions.pod:6711
31746 " guestfs_sfdiskM (guestfs_h *g,\n"
31747 " const char *device,\n"
31748 " char *const *lines);\n"
31753 #: ../src/guestfs-actions.pod:6723
31755 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
31756 "partition sizes are specified in megabytes only (rounded to the nearest "
31757 "cylinder) and you don't need to specify the cyls, heads and sectors "
31758 "parameters which were rarely if ever used anyway."
31762 #: ../src/guestfs-actions.pod:6729
31764 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
31765 "C<guestfs_part_disk>"
31769 #: ../src/guestfs-actions.pod:6739
31770 msgid "guestfs_sfdisk_N"
31774 #: ../src/guestfs-actions.pod:6741
31778 " guestfs_sfdisk_N (guestfs_h *g,\n"
31779 " const char *device,\n"
31784 " const char *line);\n"
31789 #: ../src/guestfs-actions.pod:6760
31791 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
31792 "for the cyls/heads/sectors parameters."
31796 #: ../src/guestfs-actions.pod:6763
31797 msgid "See also: C<guestfs_part_add>"
31801 #: ../src/guestfs-actions.pod:6772
31802 msgid "guestfs_sfdisk_disk_geometry"
31806 #: ../src/guestfs-actions.pod:6774
31810 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
31811 " const char *device);\n"
31816 #: ../src/guestfs-actions.pod:6778
31818 "This displays the disk geometry of C<device> read from the partition table. "
31819 "Especially in the case where the underlying block device has been resized, "
31820 "this can be different from the kernel's idea of the geometry (see "
31821 "C<guestfs_sfdisk_kernel_geometry>)."
31825 #: ../src/guestfs-actions.pod:6791
31826 msgid "guestfs_sfdisk_kernel_geometry"
31830 #: ../src/guestfs-actions.pod:6793
31834 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
31835 " const char *device);\n"
31840 #: ../src/guestfs-actions.pod:6807
31841 msgid "guestfs_sfdisk_l"
31845 #: ../src/guestfs-actions.pod:6809
31849 " guestfs_sfdisk_l (guestfs_h *g,\n"
31850 " const char *device);\n"
31855 #: ../src/guestfs-actions.pod:6813
31857 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
31862 #: ../src/guestfs-actions.pod:6824
31863 msgid "See also: C<guestfs_part_list>"
31867 #: ../src/guestfs-actions.pod:6831
31872 #: ../src/guestfs-actions.pod:6833
31876 " guestfs_sh (guestfs_h *g,\n"
31877 " const char *command);\n"
31882 #: ../src/guestfs-actions.pod:6840
31883 msgid "This is like C<guestfs_command>, but passes the command to:"
31887 #: ../src/guestfs-actions.pod:6848
31888 msgid "All the provisos about C<guestfs_command> apply to this call."
31892 #: ../src/guestfs-actions.pod:6855
31893 msgid "guestfs_sh_lines"
31897 #: ../src/guestfs-actions.pod:6857
31901 " guestfs_sh_lines (guestfs_h *g,\n"
31902 " const char *command);\n"
31907 #: ../src/guestfs-actions.pod:6861
31909 "This is the same as C<guestfs_sh>, but splits the result into a list of "
31914 #: ../src/guestfs-actions.pod:6864
31915 msgid "See also: C<guestfs_command_lines>"
31919 #: ../src/guestfs-actions.pod:6872
31920 msgid "guestfs_sleep"
31924 #: ../src/guestfs-actions.pod:6874
31928 " guestfs_sleep (guestfs_h *g,\n"
31934 #: ../src/guestfs-actions.pod:6882
31935 msgid "(Added in 1.0.41)"
31939 #: ../src/guestfs-actions.pod:6884 ../src/guestfs-structs.pod:109
31940 msgid "guestfs_stat"
31944 #: ../src/guestfs-actions.pod:6886
31947 " struct guestfs_stat *\n"
31948 " guestfs_stat (guestfs_h *g,\n"
31949 " const char *path);\n"
31954 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-structs.pod:135
31955 msgid "guestfs_statvfs"
31959 #: ../src/guestfs-actions.pod:6902
31962 " struct guestfs_statvfs *\n"
31963 " guestfs_statvfs (guestfs_h *g,\n"
31964 " const char *path);\n"
31969 #: ../src/guestfs-actions.pod:6912
31971 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
31972 "error. I<The caller must call C<guestfs_free_statvfs> after use>."
31976 #: ../src/guestfs-actions.pod:6918
31977 msgid "guestfs_strings"
31981 #: ../src/guestfs-actions.pod:6920
31985 " guestfs_strings (guestfs_h *g,\n"
31986 " const char *path);\n"
31991 #: ../src/guestfs-actions.pod:6936
31992 msgid "guestfs_strings_e"
31996 #: ../src/guestfs-actions.pod:6938
32000 " guestfs_strings_e (guestfs_h *g,\n"
32001 " const char *encoding,\n"
32002 " const char *path);\n"
32007 #: ../src/guestfs-actions.pod:6943
32009 "This is like the C<guestfs_strings> command, but allows you to specify the "
32010 "encoding of strings that are looked for in the source file C<path>."
32014 #: ../src/guestfs-actions.pod:6953
32016 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
32017 "ISO-8859-X (this is what C<guestfs_strings> uses)."
32021 #: ../src/guestfs-actions.pod:6991
32022 msgid "guestfs_swapoff_device"
32026 #: ../src/guestfs-actions.pod:6993
32030 " guestfs_swapoff_device (guestfs_h *g,\n"
32031 " const char *device);\n"
32036 #: ../src/guestfs-actions.pod:6997
32038 "This command disables the libguestfs appliance swap device or partition "
32039 "named C<device>. See C<guestfs_swapon_device>."
32043 #: ../src/guestfs-actions.pod:7005
32044 msgid "guestfs_swapoff_file"
32048 #: ../src/guestfs-actions.pod:7007
32052 " guestfs_swapoff_file (guestfs_h *g,\n"
32053 " const char *file);\n"
32058 #: ../src/guestfs-actions.pod:7017
32059 msgid "guestfs_swapoff_label"
32063 #: ../src/guestfs-actions.pod:7019
32067 " guestfs_swapoff_label (guestfs_h *g,\n"
32068 " const char *label);\n"
32073 #: ../src/guestfs-actions.pod:7030
32074 msgid "guestfs_swapoff_uuid"
32078 #: ../src/guestfs-actions.pod:7032
32082 " guestfs_swapoff_uuid (guestfs_h *g,\n"
32083 " const char *uuid);\n"
32088 #: ../src/guestfs-actions.pod:7043
32089 msgid "guestfs_swapon_device"
32093 #: ../src/guestfs-actions.pod:7045
32097 " guestfs_swapon_device (guestfs_h *g,\n"
32098 " const char *device);\n"
32103 #: ../src/guestfs-actions.pod:7049
32105 "This command enables the libguestfs appliance to use the swap device or "
32106 "partition named C<device>. The increased memory is made available for all "
32107 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
32111 #: ../src/guestfs-actions.pod:7065
32112 msgid "guestfs_swapon_file"
32116 #: ../src/guestfs-actions.pod:7067
32120 " guestfs_swapon_file (guestfs_h *g,\n"
32121 " const char *file);\n"
32126 #: ../src/guestfs-actions.pod:7071
32128 "This command enables swap to a file. See C<guestfs_swapon_device> for other "
32133 #: ../src/guestfs-actions.pod:7078
32134 msgid "guestfs_swapon_label"
32138 #: ../src/guestfs-actions.pod:7080
32142 " guestfs_swapon_label (guestfs_h *g,\n"
32143 " const char *label);\n"
32148 #: ../src/guestfs-actions.pod:7084
32150 "This command enables swap to a labeled swap partition. See "
32151 "C<guestfs_swapon_device> for other notes."
32155 #: ../src/guestfs-actions.pod:7091
32156 msgid "guestfs_swapon_uuid"
32160 #: ../src/guestfs-actions.pod:7093
32164 " guestfs_swapon_uuid (guestfs_h *g,\n"
32165 " const char *uuid);\n"
32170 #: ../src/guestfs-actions.pod:7097
32172 "This command enables swap to a swap partition with the given UUID. See "
32173 "C<guestfs_swapon_device> for other notes."
32177 #: ../src/guestfs-actions.pod:7104
32178 msgid "guestfs_sync"
32182 #: ../src/guestfs-actions.pod:7106
32186 " guestfs_sync (guestfs_h *g);\n"
32191 #: ../src/guestfs-actions.pod:7119
32192 msgid "guestfs_tail"
32196 #: ../src/guestfs-actions.pod:7121
32200 " guestfs_tail (guestfs_h *g,\n"
32201 " const char *path);\n"
32206 #: ../src/guestfs-actions.pod:7137
32207 msgid "guestfs_tail_n"
32211 #: ../src/guestfs-actions.pod:7139
32215 " guestfs_tail_n (guestfs_h *g,\n"
32217 " const char *path);\n"
32222 #: ../src/guestfs-actions.pod:7161
32223 msgid "guestfs_tar_in"
32227 #: ../src/guestfs-actions.pod:7163
32231 " guestfs_tar_in (guestfs_h *g,\n"
32232 " const char *tarfile,\n"
32233 " const char *directory);\n"
32238 #: ../src/guestfs-actions.pod:7171
32240 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
32244 #: ../src/guestfs-actions.pod:7176 ../src/guestfs-actions.pod:7193
32245 #: ../src/guestfs-actions.pod:7209 ../src/guestfs-actions.pod:7225
32246 msgid "(Added in 1.0.3)"
32250 #: ../src/guestfs-actions.pod:7178
32251 msgid "guestfs_tar_out"
32255 #: ../src/guestfs-actions.pod:7180
32259 " guestfs_tar_out (guestfs_h *g,\n"
32260 " const char *directory,\n"
32261 " const char *tarfile);\n"
32266 #: ../src/guestfs-actions.pod:7188
32268 "To download a compressed tarball, use C<guestfs_tgz_out> or "
32269 "C<guestfs_txz_out>."
32273 #: ../src/guestfs-actions.pod:7195
32274 msgid "guestfs_tgz_in"
32278 #: ../src/guestfs-actions.pod:7197
32282 " guestfs_tgz_in (guestfs_h *g,\n"
32283 " const char *tarball,\n"
32284 " const char *directory);\n"
32289 #: ../src/guestfs-actions.pod:7205
32290 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
32294 #: ../src/guestfs-actions.pod:7211
32295 msgid "guestfs_tgz_out"
32299 #: ../src/guestfs-actions.pod:7213
32303 " guestfs_tgz_out (guestfs_h *g,\n"
32304 " const char *directory,\n"
32305 " const char *tarball);\n"
32310 #: ../src/guestfs-actions.pod:7221
32311 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
32315 #: ../src/guestfs-actions.pod:7227
32316 msgid "guestfs_touch"
32320 #: ../src/guestfs-actions.pod:7229
32324 " guestfs_touch (guestfs_h *g,\n"
32325 " const char *path);\n"
32330 #: ../src/guestfs-actions.pod:7244
32331 msgid "guestfs_truncate"
32335 #: ../src/guestfs-actions.pod:7246
32339 " guestfs_truncate (guestfs_h *g,\n"
32340 " const char *path);\n"
32345 #: ../src/guestfs-actions.pod:7257
32346 msgid "guestfs_truncate_size"
32350 #: ../src/guestfs-actions.pod:7259
32354 " guestfs_truncate_size (guestfs_h *g,\n"
32355 " const char *path,\n"
32356 " int64_t size);\n"
32361 #: ../src/guestfs-actions.pod:7267
32363 "If the current file size is less than C<size> then the file is extended to "
32364 "the required size with zero bytes. This creates a sparse file (ie. disk "
32365 "blocks are not allocated for the file until you write to it). To create a "
32366 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
32370 #: ../src/guestfs-actions.pod:7277
32371 msgid "guestfs_tune2fs_l"
32375 #: ../src/guestfs-actions.pod:7279
32379 " guestfs_tune2fs_l (guestfs_h *g,\n"
32380 " const char *device);\n"
32385 #: ../src/guestfs-actions.pod:7299
32386 msgid "guestfs_txz_in"
32390 #: ../src/guestfs-actions.pod:7301
32394 " guestfs_txz_in (guestfs_h *g,\n"
32395 " const char *tarball,\n"
32396 " const char *directory);\n"
32401 #: ../src/guestfs-actions.pod:7313
32402 msgid "guestfs_txz_out"
32406 #: ../src/guestfs-actions.pod:7315
32410 " guestfs_txz_out (guestfs_h *g,\n"
32411 " const char *directory,\n"
32412 " const char *tarball);\n"
32417 #: ../src/guestfs-actions.pod:7327
32418 msgid "guestfs_umask"
32422 #: ../src/guestfs-actions.pod:7329
32426 " guestfs_umask (guestfs_h *g,\n"
32432 #: ../src/guestfs-actions.pod:7345
32434 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
32435 "C<guestfs_mkdir>."
32439 #: ../src/guestfs-actions.pod:7354
32440 msgid "guestfs_umount"
32444 #: ../src/guestfs-actions.pod:7356
32448 " guestfs_umount (guestfs_h *g,\n"
32449 " const char *pathordevice);\n"
32454 #: ../src/guestfs-actions.pod:7368
32455 msgid "guestfs_umount_all"
32459 #: ../src/guestfs-actions.pod:7370
32463 " guestfs_umount_all (guestfs_h *g);\n"
32468 #: ../src/guestfs-actions.pod:7381
32469 msgid "guestfs_upload"
32473 #: ../src/guestfs-actions.pod:7383
32477 " guestfs_upload (guestfs_h *g,\n"
32478 " const char *filename,\n"
32479 " const char *remotefilename);\n"
32484 #: ../src/guestfs-actions.pod:7393
32485 msgid "See also C<guestfs_download>."
32489 #: ../src/guestfs-actions.pod:7404
32490 msgid "guestfs_upload_offset"
32494 #: ../src/guestfs-actions.pod:7406
32498 " guestfs_upload_offset (guestfs_h *g,\n"
32499 " const char *filename,\n"
32500 " const char *remotefilename,\n"
32501 " int64_t offset);\n"
32506 #: ../src/guestfs-actions.pod:7422
32508 "Note that there is no limit on the amount of data that can be uploaded with "
32509 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
32510 "full amount unless an error occurs."
32514 #: ../src/guestfs-actions.pod:7427
32515 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
32519 #: ../src/guestfs-actions.pod:7438
32520 msgid "guestfs_utimens"
32524 #: ../src/guestfs-actions.pod:7440
32528 " guestfs_utimens (guestfs_h *g,\n"
32529 " const char *path,\n"
32530 " int64_t atsecs,\n"
32531 " int64_t atnsecs,\n"
32532 " int64_t mtsecs,\n"
32533 " int64_t mtnsecs);\n"
32538 #: ../src/guestfs-actions.pod:7469 ../src/guestfs-structs.pod:175
32539 msgid "guestfs_version"
32543 #: ../src/guestfs-actions.pod:7471
32546 " struct guestfs_version *\n"
32547 " guestfs_version (guestfs_h *g);\n"
32552 #: ../src/guestfs-actions.pod:7499
32554 "I<Note:> Don't use this call to test for availability of features. In "
32555 "enterprise distributions we backport features from later versions into "
32556 "earlier versions, making this an unreliable way to test for features. Use "
32557 "C<guestfs_available> instead."
32561 #: ../src/guestfs-actions.pod:7505
32563 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
32564 "error. I<The caller must call C<guestfs_free_version> after use>."
32568 #: ../src/guestfs-actions.pod:7509
32569 msgid "(Added in 1.0.58)"
32573 #: ../src/guestfs-actions.pod:7511
32574 msgid "guestfs_vfs_label"
32578 #: ../src/guestfs-actions.pod:7513
32582 " guestfs_vfs_label (guestfs_h *g,\n"
32583 " const char *device);\n"
32588 #: ../src/guestfs-actions.pod:7522
32589 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
32593 #: ../src/guestfs-actions.pod:7527 ../src/guestfs-actions.pod:7564
32594 msgid "(Added in 1.3.18)"
32598 #: ../src/guestfs-actions.pod:7529
32599 msgid "guestfs_vfs_type"
32603 #: ../src/guestfs-actions.pod:7531
32607 " guestfs_vfs_type (guestfs_h *g,\n"
32608 " const char *device);\n"
32613 #: ../src/guestfs-actions.pod:7548
32614 msgid "guestfs_vfs_uuid"
32618 #: ../src/guestfs-actions.pod:7550
32622 " guestfs_vfs_uuid (guestfs_h *g,\n"
32623 " const char *device);\n"
32628 #: ../src/guestfs-actions.pod:7559
32629 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
32633 #: ../src/guestfs-actions.pod:7566
32634 msgid "guestfs_vg_activate"
32638 #: ../src/guestfs-actions.pod:7568
32642 " guestfs_vg_activate (guestfs_h *g,\n"
32644 " char *const *volgroups);\n"
32649 #: ../src/guestfs-actions.pod:7585
32650 msgid "guestfs_vg_activate_all"
32654 #: ../src/guestfs-actions.pod:7587
32658 " guestfs_vg_activate_all (guestfs_h *g,\n"
32659 " int activate);\n"
32664 #: ../src/guestfs-actions.pod:7600
32665 msgid "guestfs_vgcreate"
32669 #: ../src/guestfs-actions.pod:7602
32673 " guestfs_vgcreate (guestfs_h *g,\n"
32674 " const char *volgroup,\n"
32675 " char *const *physvols);\n"
32680 #: ../src/guestfs-actions.pod:7614
32681 msgid "guestfs_vglvuuids"
32685 #: ../src/guestfs-actions.pod:7616
32689 " guestfs_vglvuuids (guestfs_h *g,\n"
32690 " const char *vgname);\n"
32695 #: ../src/guestfs-actions.pod:7623
32697 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
32698 "associate logical volumes and volume groups."
32702 #: ../src/guestfs-actions.pod:7626
32703 msgid "See also C<guestfs_vgpvuuids>."
32707 #: ../src/guestfs-actions.pod:7634
32708 msgid "guestfs_vgpvuuids"
32712 #: ../src/guestfs-actions.pod:7636
32716 " guestfs_vgpvuuids (guestfs_h *g,\n"
32717 " const char *vgname);\n"
32722 #: ../src/guestfs-actions.pod:7643
32724 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
32725 "associate physical volumes and volume groups."
32729 #: ../src/guestfs-actions.pod:7646
32730 msgid "See also C<guestfs_vglvuuids>."
32734 #: ../src/guestfs-actions.pod:7654
32735 msgid "guestfs_vgremove"
32739 #: ../src/guestfs-actions.pod:7656
32743 " guestfs_vgremove (guestfs_h *g,\n"
32744 " const char *vgname);\n"
32749 #: ../src/guestfs-actions.pod:7669
32750 msgid "guestfs_vgrename"
32754 #: ../src/guestfs-actions.pod:7671
32758 " guestfs_vgrename (guestfs_h *g,\n"
32759 " const char *volgroup,\n"
32760 " const char *newvolgroup);\n"
32765 #: ../src/guestfs-actions.pod:7682
32766 msgid "guestfs_vgs"
32770 #: ../src/guestfs-actions.pod:7684
32774 " guestfs_vgs (guestfs_h *g);\n"
32779 #: ../src/guestfs-actions.pod:7693
32780 msgid "See also C<guestfs_vgs_full>."
32784 #: ../src/guestfs-actions.pod:7701
32785 msgid "guestfs_vgs_full"
32789 #: ../src/guestfs-actions.pod:7703
32792 " struct guestfs_lvm_vg_list *\n"
32793 " guestfs_vgs_full (guestfs_h *g);\n"
32798 #: ../src/guestfs-actions.pod:7709
32800 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
32801 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
32805 #: ../src/guestfs-actions.pod:7715
32806 msgid "guestfs_vgscan"
32810 #: ../src/guestfs-actions.pod:7717
32814 " guestfs_vgscan (guestfs_h *g);\n"
32819 #: ../src/guestfs-actions.pod:7727
32820 msgid "guestfs_vguuid"
32824 #: ../src/guestfs-actions.pod:7729
32828 " guestfs_vguuid (guestfs_h *g,\n"
32829 " const char *vgname);\n"
32834 #: ../src/guestfs-actions.pod:7740
32835 msgid "guestfs_wait_ready"
32839 #: ../src/guestfs-actions.pod:7742
32843 " guestfs_wait_ready (guestfs_h *g);\n"
32848 #: ../src/guestfs-actions.pod:7745
32850 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
32855 #: ../src/guestfs-actions.pod:7752
32856 msgid "This function is a no op."
32860 #: ../src/guestfs-actions.pod:7754
32862 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
32863 "calling C<guestfs_launch> to wait for the launch to complete. However this "
32864 "is no longer necessary because C<guestfs_launch> now does the waiting."
32868 #: ../src/guestfs-actions.pod:7759
32870 "If you see any calls to this function in code then you can just remove them, "
32871 "unless you want to retain compatibility with older versions of the API."
32875 #: ../src/guestfs-actions.pod:7767
32876 msgid "guestfs_wc_c"
32880 #: ../src/guestfs-actions.pod:7769
32884 " guestfs_wc_c (guestfs_h *g,\n"
32885 " const char *path);\n"
32890 #: ../src/guestfs-actions.pod:7780
32891 msgid "guestfs_wc_l"
32895 #: ../src/guestfs-actions.pod:7782
32899 " guestfs_wc_l (guestfs_h *g,\n"
32900 " const char *path);\n"
32905 #: ../src/guestfs-actions.pod:7793
32906 msgid "guestfs_wc_w"
32910 #: ../src/guestfs-actions.pod:7795
32914 " guestfs_wc_w (guestfs_h *g,\n"
32915 " const char *path);\n"
32920 #: ../src/guestfs-actions.pod:7806
32921 msgid "guestfs_write"
32925 #: ../src/guestfs-actions.pod:7808
32929 " guestfs_write (guestfs_h *g,\n"
32930 " const char *path,\n"
32931 " const char *content,\n"
32932 " size_t content_size);\n"
32937 #: ../src/guestfs-actions.pod:7817
32938 msgid "See also C<guestfs_write_append>."
32942 #: ../src/guestfs-actions.pod:7826
32943 msgid "guestfs_write_append"
32947 #: ../src/guestfs-actions.pod:7828
32951 " guestfs_write_append (guestfs_h *g,\n"
32952 " const char *path,\n"
32953 " const char *content,\n"
32954 " size_t content_size);\n"
32959 #: ../src/guestfs-actions.pod:7837
32960 msgid "See also C<guestfs_write>."
32964 #: ../src/guestfs-actions.pod:7846
32965 msgid "guestfs_write_file"
32966 msgstr "guestfs_write_file"
32969 #: ../src/guestfs-actions.pod:7848
32973 " guestfs_write_file (guestfs_h *g,\n"
32974 " const char *path,\n"
32975 " const char *content,\n"
32980 " guestfs_write_file (guestfs_h *g,\n"
32981 " const char *path,\n"
32982 " const char *content,\n"
32987 #: ../src/guestfs-actions.pod:7854
32989 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
32994 #: ../src/guestfs-actions.pod:7879
32995 msgid "guestfs_zegrep"
32996 msgstr "guestfs_zegrep"
32999 #: ../src/guestfs-actions.pod:7881
33003 " guestfs_zegrep (guestfs_h *g,\n"
33004 " const char *regex,\n"
33005 " const char *path);\n"
33009 " guestfs_zegrep (guestfs_h *g,\n"
33010 " const char *regex,\n"
33011 " const char *path);\n"
33015 #: ../src/guestfs-actions.pod:7898
33016 msgid "guestfs_zegrepi"
33017 msgstr "guestfs_zegrepi"
33020 #: ../src/guestfs-actions.pod:7900
33024 " guestfs_zegrepi (guestfs_h *g,\n"
33025 " const char *regex,\n"
33026 " const char *path);\n"
33030 " guestfs_zegrepi (guestfs_h *g,\n"
33031 " const char *regex,\n"
33032 " const char *path);\n"
33036 #: ../src/guestfs-actions.pod:7917
33037 msgid "guestfs_zero"
33038 msgstr "guestfs_zero"
33041 #: ../src/guestfs-actions.pod:7919
33045 " guestfs_zero (guestfs_h *g,\n"
33046 " const char *device);\n"
33050 " guestfs_zero (guestfs_h *g,\n"
33051 " const char *device);\n"
33055 #: ../src/guestfs-actions.pod:7933
33057 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
33058 "C<guestfs_is_zero_device>"
33062 #: ../src/guestfs-actions.pod:7945
33063 msgid "guestfs_zero_device"
33064 msgstr "guestfs_zero_device"
33067 #: ../src/guestfs-actions.pod:7947
33071 " guestfs_zero_device (guestfs_h *g,\n"
33072 " const char *device);\n"
33076 " guestfs_zero_device (guestfs_h *g,\n"
33077 " const char *device);\n"
33081 #: ../src/guestfs-actions.pod:7951
33083 "This command writes zeroes over the entire C<device>. Compare with "
33084 "C<guestfs_zero> which just zeroes the first few blocks of a device."
33088 #: ../src/guestfs-actions.pod:7969
33089 msgid "(Added in 1.3.1)"
33090 msgstr "(Додано у 1.3.1)"
33093 #: ../src/guestfs-actions.pod:7971
33094 msgid "guestfs_zerofree"
33095 msgstr "guestfs_zerofree"
33098 #: ../src/guestfs-actions.pod:7973
33102 " guestfs_zerofree (guestfs_h *g,\n"
33103 " const char *device);\n"
33107 " guestfs_zerofree (guestfs_h *g,\n"
33108 " const char *device);\n"
33112 #: ../src/guestfs-actions.pod:7992
33113 msgid "guestfs_zfgrep"
33114 msgstr "guestfs_zfgrep"
33117 #: ../src/guestfs-actions.pod:7994
33121 " guestfs_zfgrep (guestfs_h *g,\n"
33122 " const char *pattern,\n"
33123 " const char *path);\n"
33127 " guestfs_zfgrep (guestfs_h *g,\n"
33128 " const char *pattern,\n"
33129 " const char *path);\n"
33133 #: ../src/guestfs-actions.pod:8011
33134 msgid "guestfs_zfgrepi"
33135 msgstr "guestfs_zfgrepi"
33138 #: ../src/guestfs-actions.pod:8013
33142 " guestfs_zfgrepi (guestfs_h *g,\n"
33143 " const char *pattern,\n"
33144 " const char *path);\n"
33148 " guestfs_zfgrepi (guestfs_h *g,\n"
33149 " const char *pattern,\n"
33150 " const char *path);\n"
33154 #: ../src/guestfs-actions.pod:8030
33155 msgid "guestfs_zfile"
33156 msgstr "guestfs_zfile"
33159 #: ../src/guestfs-actions.pod:8032
33163 " guestfs_zfile (guestfs_h *g,\n"
33164 " const char *meth,\n"
33165 " const char *path);\n"
33169 " guestfs_zfile (guestfs_h *g,\n"
33170 " const char *meth,\n"
33171 " const char *path);\n"
33175 #: ../src/guestfs-actions.pod:8037
33177 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
33182 #: ../src/guestfs-actions.pod:8049
33184 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
33189 #: ../src/guestfs-actions.pod:8057
33190 msgid "guestfs_zgrep"
33191 msgstr "guestfs_zgrep"
33194 #: ../src/guestfs-actions.pod:8059
33198 " guestfs_zgrep (guestfs_h *g,\n"
33199 " const char *regex,\n"
33200 " const char *path);\n"
33204 " guestfs_zgrep (guestfs_h *g,\n"
33205 " const char *regex,\n"
33206 " const char *path);\n"
33210 #: ../src/guestfs-actions.pod:8076
33211 msgid "guestfs_zgrepi"
33212 msgstr "guestfs_zgrepi"
33215 #: ../src/guestfs-actions.pod:8078
33219 " guestfs_zgrepi (guestfs_h *g,\n"
33220 " const char *regex,\n"
33221 " const char *path);\n"
33225 " guestfs_zgrepi (guestfs_h *g,\n"
33226 " const char *regex,\n"
33227 " const char *path);\n"
33231 #: ../src/guestfs-availability.pod:3
33236 #: ../src/guestfs-availability.pod:5
33238 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
33239 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
33240 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
33241 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
33242 "L</guestfs_aug_save> L</guestfs_aug_set>"
33246 #: ../src/guestfs-availability.pod:21
33251 #: ../src/guestfs-availability.pod:23
33252 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
33256 #: ../src/guestfs-availability.pod:26
33258 #| msgid "B<scrub>"
33263 #: ../src/guestfs-availability.pod:28
33264 msgid "The following functions: L</guestfs_grub_install>"
33268 #: ../src/guestfs-availability.pod:31
33270 msgstr "B<inotify>"
33273 #: ../src/guestfs-availability.pod:33
33275 "The following functions: L</guestfs_inotify_add_watch> L</"
33276 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
33277 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
33281 #: ../src/guestfs-availability.pod:41
33282 msgid "B<linuxfsuuid>"
33283 msgstr "B<linuxfsuuid>"
33286 #: ../src/guestfs-availability.pod:43
33288 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
33289 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
33293 #: ../src/guestfs-availability.pod:50
33294 msgid "B<linuxmodules>"
33295 msgstr "B<linuxmodules>"
33298 #: ../src/guestfs-availability.pod:52
33299 msgid "The following functions: L</guestfs_modprobe>"
33303 #: ../src/guestfs-availability.pod:55
33304 msgid "B<linuxxattrs>"
33305 msgstr "B<linuxxattrs>"
33308 #: ../src/guestfs-availability.pod:57
33310 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
33311 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
33312 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
33313 "guestfs_setxattr>"
33317 #: ../src/guestfs-availability.pod:68
33322 #: ../src/guestfs-availability.pod:70
33324 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
33325 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
33326 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
33330 #: ../src/guestfs-availability.pod:79
33335 #: ../src/guestfs-availability.pod:81
33337 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
33338 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
33339 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
33340 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
33341 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
33342 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
33343 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
33347 #: ../src/guestfs-availability.pod:104
33352 #: ../src/guestfs-availability.pod:106
33354 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
33355 "guestfs_mknod_b> L</guestfs_mknod_c>"
33359 #: ../src/guestfs-availability.pod:112
33364 #: ../src/guestfs-availability.pod:114
33365 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
33369 #: ../src/guestfs-availability.pod:117
33370 msgid "B<ntfsprogs>"
33371 msgstr "B<ntfsprogs>"
33374 #: ../src/guestfs-availability.pod:119
33376 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
33377 "L</guestfs_ntfsresize_size>"
33381 #: ../src/guestfs-availability.pod:124
33382 msgid "B<realpath>"
33383 msgstr "B<realpath>"
33386 #: ../src/guestfs-availability.pod:126
33387 msgid "The following functions: L</guestfs_realpath>"
33391 #: ../src/guestfs-availability.pod:129
33396 #: ../src/guestfs-availability.pod:131
33398 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
33399 "guestfs_scrub_freespace>"
33403 #: ../src/guestfs-availability.pod:136
33405 msgstr "B<selinux>"
33408 #: ../src/guestfs-availability.pod:138
33409 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
33413 #: ../src/guestfs-availability.pod:142
33418 #: ../src/guestfs-availability.pod:144
33419 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
33423 #: ../src/guestfs-availability.pod:148
33424 msgid "B<zerofree>"
33425 msgstr "B<zerofree>"
33428 #: ../src/guestfs-availability.pod:150
33429 msgid "The following functions: L</guestfs_zerofree>"
33433 #: ../src/guestfs-structs.pod:1
33434 msgid "guestfs_int_bool"
33438 #: ../src/guestfs-structs.pod:3
33441 " struct guestfs_int_bool {\n"
33449 #: ../src/guestfs-structs.pod:8
33452 " struct guestfs_int_bool_list {\n"
33453 " uint32_t len; /* Number of elements in list. */\n"
33454 " struct guestfs_int_bool *val; /* Elements. */\n"
33460 #: ../src/guestfs-structs.pod:13
33463 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
33464 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
33469 #: ../src/guestfs-structs.pod:16
33470 msgid "guestfs_lvm_pv"
33474 #: ../src/guestfs-structs.pod:18
33477 " struct guestfs_lvm_pv {\n"
33478 " char *pv_name;\n"
33479 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33480 " char pv_uuid[32];\n"
33482 " uint64_t pv_size;\n"
33483 " uint64_t dev_size;\n"
33484 " uint64_t pv_free;\n"
33485 " uint64_t pv_used;\n"
33486 " char *pv_attr;\n"
33487 " int64_t pv_pe_count;\n"
33488 " int64_t pv_pe_alloc_count;\n"
33489 " char *pv_tags;\n"
33490 " uint64_t pe_start;\n"
33491 " int64_t pv_mda_count;\n"
33492 " uint64_t pv_mda_free;\n"
33498 #: ../src/guestfs-structs.pod:36
33501 " struct guestfs_lvm_pv_list {\n"
33502 " uint32_t len; /* Number of elements in list. */\n"
33503 " struct guestfs_lvm_pv *val; /* Elements. */\n"
33509 #: ../src/guestfs-structs.pod:41
33512 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
33513 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
33518 #: ../src/guestfs-structs.pod:44
33519 msgid "guestfs_lvm_vg"
33523 #: ../src/guestfs-structs.pod:46
33526 " struct guestfs_lvm_vg {\n"
33527 " char *vg_name;\n"
33528 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33529 " char vg_uuid[32];\n"
33531 " char *vg_attr;\n"
33532 " uint64_t vg_size;\n"
33533 " uint64_t vg_free;\n"
33534 " char *vg_sysid;\n"
33535 " uint64_t vg_extent_size;\n"
33536 " int64_t vg_extent_count;\n"
33537 " int64_t vg_free_count;\n"
33538 " int64_t max_lv;\n"
33539 " int64_t max_pv;\n"
33540 " int64_t pv_count;\n"
33541 " int64_t lv_count;\n"
33542 " int64_t snap_count;\n"
33543 " int64_t vg_seqno;\n"
33544 " char *vg_tags;\n"
33545 " int64_t vg_mda_count;\n"
33546 " uint64_t vg_mda_free;\n"
33552 #: ../src/guestfs-structs.pod:69
33555 " struct guestfs_lvm_vg_list {\n"
33556 " uint32_t len; /* Number of elements in list. */\n"
33557 " struct guestfs_lvm_vg *val; /* Elements. */\n"
33563 #: ../src/guestfs-structs.pod:74
33566 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
33567 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
33572 #: ../src/guestfs-structs.pod:77
33573 msgid "guestfs_lvm_lv"
33577 #: ../src/guestfs-structs.pod:79
33580 " struct guestfs_lvm_lv {\n"
33581 " char *lv_name;\n"
33582 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33583 " char lv_uuid[32];\n"
33584 " char *lv_attr;\n"
33585 " int64_t lv_major;\n"
33586 " int64_t lv_minor;\n"
33587 " int64_t lv_kernel_major;\n"
33588 " int64_t lv_kernel_minor;\n"
33589 " uint64_t lv_size;\n"
33590 " int64_t seg_count;\n"
33592 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
33593 " float snap_percent;\n"
33594 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
33595 " float copy_percent;\n"
33596 " char *move_pv;\n"
33597 " char *lv_tags;\n"
33598 " char *mirror_log;\n"
33599 " char *modules;\n"
33605 #: ../src/guestfs-structs.pod:101
33608 " struct guestfs_lvm_lv_list {\n"
33609 " uint32_t len; /* Number of elements in list. */\n"
33610 " struct guestfs_lvm_lv *val; /* Elements. */\n"
33616 #: ../src/guestfs-structs.pod:106
33619 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
33620 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
33625 #: ../src/guestfs-structs.pod:111
33628 " struct guestfs_stat {\n"
33632 " int64_t nlink;\n"
33637 " int64_t blksize;\n"
33638 " int64_t blocks;\n"
33639 " int64_t atime;\n"
33640 " int64_t mtime;\n"
33641 " int64_t ctime;\n"
33647 #: ../src/guestfs-structs.pod:127
33650 " struct guestfs_stat_list {\n"
33651 " uint32_t len; /* Number of elements in list. */\n"
33652 " struct guestfs_stat *val; /* Elements. */\n"
33658 #: ../src/guestfs-structs.pod:132
33661 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
33662 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
33667 #: ../src/guestfs-structs.pod:137
33670 " struct guestfs_statvfs {\n"
33671 " int64_t bsize;\n"
33672 " int64_t frsize;\n"
33673 " int64_t blocks;\n"
33674 " int64_t bfree;\n"
33675 " int64_t bavail;\n"
33676 " int64_t files;\n"
33677 " int64_t ffree;\n"
33678 " int64_t favail;\n"
33681 " int64_t namemax;\n"
33687 #: ../src/guestfs-structs.pod:151
33690 " struct guestfs_statvfs_list {\n"
33691 " uint32_t len; /* Number of elements in list. */\n"
33692 " struct guestfs_statvfs *val; /* Elements. */\n"
33698 #: ../src/guestfs-structs.pod:156
33701 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
33702 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
33707 #: ../src/guestfs-structs.pod:159
33708 msgid "guestfs_dirent"
33712 #: ../src/guestfs-structs.pod:161
33715 " struct guestfs_dirent {\n"
33724 #: ../src/guestfs-structs.pod:167
33727 " struct guestfs_dirent_list {\n"
33728 " uint32_t len; /* Number of elements in list. */\n"
33729 " struct guestfs_dirent *val; /* Elements. */\n"
33735 #: ../src/guestfs-structs.pod:172
33738 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
33739 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
33744 #: ../src/guestfs-structs.pod:177
33747 " struct guestfs_version {\n"
33748 " int64_t major;\n"
33749 " int64_t minor;\n"
33750 " int64_t release;\n"
33757 #: ../src/guestfs-structs.pod:184
33760 " struct guestfs_version_list {\n"
33761 " uint32_t len; /* Number of elements in list. */\n"
33762 " struct guestfs_version *val; /* Elements. */\n"
33768 #: ../src/guestfs-structs.pod:189
33771 " void guestfs_free_version (struct guestfs_free_version *);\n"
33772 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
33777 #: ../src/guestfs-structs.pod:192
33778 msgid "guestfs_xattr"
33782 #: ../src/guestfs-structs.pod:194
33785 " struct guestfs_xattr {\n"
33786 " char *attrname;\n"
33787 " /* The next two fields describe a byte array. */\n"
33788 " uint32_t attrval_len;\n"
33789 " char *attrval;\n"
33795 #: ../src/guestfs-structs.pod:201
33798 " struct guestfs_xattr_list {\n"
33799 " uint32_t len; /* Number of elements in list. */\n"
33800 " struct guestfs_xattr *val; /* Elements. */\n"
33806 #: ../src/guestfs-structs.pod:206
33809 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
33810 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
33815 #: ../src/guestfs-structs.pod:209
33816 msgid "guestfs_inotify_event"
33820 #: ../src/guestfs-structs.pod:211
33823 " struct guestfs_inotify_event {\n"
33824 " int64_t in_wd;\n"
33825 " uint32_t in_mask;\n"
33826 " uint32_t in_cookie;\n"
33827 " char *in_name;\n"
33833 #: ../src/guestfs-structs.pod:218
33836 " struct guestfs_inotify_event_list {\n"
33837 " uint32_t len; /* Number of elements in list. */\n"
33838 " struct guestfs_inotify_event *val; /* Elements. */\n"
33844 #: ../src/guestfs-structs.pod:223
33847 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
33848 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
33853 #: ../src/guestfs-structs.pod:226
33854 msgid "guestfs_partition"
33858 #: ../src/guestfs-structs.pod:228
33861 " struct guestfs_partition {\n"
33862 " int32_t part_num;\n"
33863 " uint64_t part_start;\n"
33864 " uint64_t part_end;\n"
33865 " uint64_t part_size;\n"
33871 #: ../src/guestfs-structs.pod:235
33874 " struct guestfs_partition_list {\n"
33875 " uint32_t len; /* Number of elements in list. */\n"
33876 " struct guestfs_partition *val; /* Elements. */\n"
33882 #: ../src/guestfs-structs.pod:240
33885 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
33886 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
33891 #: ../src/guestfs-structs.pod:243
33892 msgid "guestfs_application"
33896 #: ../src/guestfs-structs.pod:245
33899 " struct guestfs_application {\n"
33900 " char *app_name;\n"
33901 " char *app_display_name;\n"
33902 " int32_t app_epoch;\n"
33903 " char *app_version;\n"
33904 " char *app_release;\n"
33905 " char *app_install_path;\n"
33906 " char *app_trans_path;\n"
33907 " char *app_publisher;\n"
33908 " char *app_url;\n"
33909 " char *app_source_package;\n"
33910 " char *app_summary;\n"
33911 " char *app_description;\n"
33917 #: ../src/guestfs-structs.pod:260
33920 " struct guestfs_application_list {\n"
33921 " uint32_t len; /* Number of elements in list. */\n"
33922 " struct guestfs_application *val; /* Elements. */\n"
33928 #: ../src/guestfs-structs.pod:265
33931 " void guestfs_free_application (struct guestfs_free_application *);\n"
33932 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
33937 #: ../src/guestfs.pod:5
33938 msgid "guestfs - Library for accessing and modifying virtual machine images"
33940 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
33944 #: ../src/guestfs.pod:11
33947 " guestfs_h *g = guestfs_create ();\n"
33948 " guestfs_add_drive (g, \"guest.img\");\n"
33949 " guestfs_launch (g);\n"
33950 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33951 " guestfs_touch (g, \"/hello\");\n"
33952 " guestfs_umount (g, \"/\");\n"
33953 " guestfs_close (g);\n"
33956 " guestfs_h *g = guestfs_create ();\n"
33957 " guestfs_add_drive (g, \"guest.img\");\n"
33958 " guestfs_launch (g);\n"
33959 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33960 " guestfs_touch (g, \"/hello\");\n"
33961 " guestfs_umount (g, \"/\");\n"
33962 " guestfs_close (g);\n"
33966 #: ../src/guestfs.pod:25
33968 "Libguestfs is a library for accessing and modifying guest disk images. "
33969 "Amongst the things this is good for: making batch configuration changes to "
33970 "guests, getting disk used/free statistics (see also: virt-df), migrating "
33971 "between virtualization systems (see also: virt-p2v), performing partial "
33972 "backups, performing partial guest clones, cloning guests and changing "
33973 "registry/UUID/hostname info, and much else besides."
33977 #: ../src/guestfs.pod:33
33979 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
33980 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
33981 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
33986 #: ../src/guestfs.pod:38
33988 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
33989 "what filesystem is in each LV, etc.). It can also run commands in the "
33990 "context of the guest. Also you can access filesystems over FUSE."
33994 #: ../src/guestfs.pod:43
33996 "Libguestfs is a library that can be linked with C and C++ management "
33997 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
33998 "PHP, Erlang, Haskell or C#). You can also use it from shell scripts or the "
34003 #: ../src/guestfs.pod:48
34005 "You don't need to be root to use libguestfs, although obviously you do need "
34006 "enough permissions to access the disk images."
34010 #: ../src/guestfs.pod:51
34012 "Libguestfs is a large API because it can do many things. For a gentle "
34013 "introduction, please read the L</API OVERVIEW> section next."
34017 #: ../src/guestfs.pod:54
34019 "There are also some example programs in the L<guestfs-examples(3)> manual "
34024 #: ../src/guestfs.pod:57
34025 msgid "API OVERVIEW"
34029 #: ../src/guestfs.pod:59
34031 "This section provides a gentler overview of the libguestfs API. We also try "
34032 "to group API calls together, where that may not be obvious from reading "
34033 "about the individual calls in the main section of this manual."
34037 #: ../src/guestfs.pod:64
34042 #: ../src/guestfs.pod:66
34044 "Before you can use libguestfs calls, you have to create a handle. Then you "
34045 "must add at least one disk image to the handle, followed by launching the "
34046 "handle, then performing whatever operations you want, and finally closing "
34047 "the handle. By convention we use the single letter C<g> for the name of the "
34048 "handle variable, although of course you can use any name you want."
34052 #: ../src/guestfs.pod:73
34053 msgid "The general structure of all libguestfs-using programs looks like this:"
34057 #: ../src/guestfs.pod:76
34060 " guestfs_h *g = guestfs_create ();\n"
34063 " guestfs_h *g = guestfs_create ();\n"
34067 #: ../src/guestfs.pod:78
34070 " /* Call guestfs_add_drive additional times if there are\n"
34071 " * multiple disk images.\n"
34073 " guestfs_add_drive (g, \"guest.img\");\n"
34078 #: ../src/guestfs.pod:83
34081 " /* Most manipulation calls won't work until you've launched\n"
34082 " * the handle 'g'. You have to do this _after_ adding drives\n"
34083 " * and _before_ other commands.\n"
34085 " guestfs_launch (g);\n"
34090 #: ../src/guestfs.pod:89
34093 " /* Now you can examine what partitions, LVs etc are available.\n"
34095 " char **partitions = guestfs_list_partitions (g);\n"
34096 " char **logvols = guestfs_lvs (g);\n"
34099 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
34101 " char **partitions = guestfs_list_partitions (g);\n"
34102 " char **logvols = guestfs_lvs (g);\n"
34106 #: ../src/guestfs.pod:94
34109 " /* To access a filesystem in the image, you must mount it.\n"
34111 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34114 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
34116 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34120 #: ../src/guestfs.pod:98
34123 " /* Now you can perform filesystem actions on the guest\n"
34126 " guestfs_touch (g, \"/hello\");\n"
34131 #: ../src/guestfs.pod:103
34134 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
34135 " * it is done automatically when you close the handle. See\n"
34136 " * discussion of autosync in this page.\n"
34138 " guestfs_sync (g);\n"
34143 #: ../src/guestfs.pod:109
34146 " /* Close the handle 'g'. */\n"
34147 " guestfs_close (g);\n"
34150 " /* Закрити дескриптор 'g'. */\n"
34151 " guestfs_close (g);\n"
34155 #: ../src/guestfs.pod:112
34157 "The code above doesn't include any error checking. In real code you should "
34158 "check return values carefully for errors. In general all functions that "
34159 "return integers return C<-1> on error, and all functions that return "
34160 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
34161 "how to handle errors, and consult the documentation for each function call "
34162 "below to see precisely how they return error indications. See L<guestfs-"
34163 "examples(3)> for fully worked examples."
34167 #: ../src/guestfs.pod:121
34168 msgid "DISK IMAGES"
34169 msgstr "ОБРАЗИ ДИСКІВ"
34172 #: ../src/guestfs.pod:123
34174 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
34175 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
34176 "actual block device, or simply an empty file of zeroes that you have created "
34177 "through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
34182 #: ../src/guestfs.pod:129
34184 "The call you should use in modern code for adding drives is L</"
34185 "guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
34186 "specifying that the format is raw, do:"
34190 #: ../src/guestfs.pod:133
34193 " guestfs_add_drive_opts (g, filename,\n"
34194 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34198 " guestfs_add_drive_opts (g, filename,\n"
34199 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34204 #: ../src/guestfs.pod:137
34205 msgid "You can add a disk read-only using:"
34206 msgstr "Ви можете додати диск у режимі лише читання:"
34209 #: ../src/guestfs.pod:139
34212 " guestfs_add_drive_opts (g, filename,\n"
34213 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34214 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34218 " guestfs_add_drive_opts (g, filename,\n"
34219 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34220 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34225 #: ../src/guestfs.pod:144
34227 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
34228 "libguestfs won't modify the file."
34232 #: ../src/guestfs.pod:147
34234 "Be extremely cautious if the disk image is in use, eg. if it is being used "
34235 "by a virtual machine. Adding it read-write will almost certainly cause disk "
34236 "corruption, but adding it read-only is safe."
34240 #: ../src/guestfs.pod:151
34242 "You must add at least one disk image, and you may add multiple disk images. "
34243 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
34244 "first one you added), C</dev/sdb> (for the second one you added), etc."
34248 #: ../src/guestfs.pod:156
34250 "Once L</guestfs_launch> has been called you cannot add any more images. You "
34251 "can call L</guestfs_list_devices> to get a list of the device names, in the "
34252 "order that you added them. See also L</BLOCK DEVICE NAMING> below."
34256 #: ../src/guestfs.pod:161
34258 msgstr "МОНТУВАННЯ"
34261 #: ../src/guestfs.pod:163
34263 "Before you can read or write files, create directories and so on in a disk "
34264 "image that contains filesystems, you have to mount those filesystems using "
34265 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that "
34266 "a disk image contains (for example) one partition with a filesystem on that "
34267 "partition, then you can mount it directly:"
34271 #: ../src/guestfs.pod:170
34274 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34277 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34281 #: ../src/guestfs.pod:172
34283 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
34284 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
34285 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
34286 "that these are libguestfs virtual devices, and are nothing to do with host "
34291 #: ../src/guestfs.pod:178
34293 "If you are given a disk image and you don't know what it contains then you "
34294 "have to find out. Libguestfs can do that too: use L</"
34295 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
34296 "LVs, and either try mounting each to see what is mountable, or else examine "
34297 "them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
34298 "filesystems, use L</guestfs_list_filesystems>."
34302 #: ../src/guestfs.pod:186
34304 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
34305 "L</INSPECTION> below). But you might find it easier to look at higher level "
34306 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
34310 #: ../src/guestfs.pod:191
34312 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
34313 "several other variations of the C<guestfs_mount_*> call."
34317 #: ../src/guestfs.pod:194
34318 msgid "FILESYSTEM ACCESS AND MODIFICATION"
34319 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
34322 #: ../src/guestfs.pod:196
34324 "The majority of the libguestfs API consists of fairly low-level calls for "
34325 "accessing and modifying the files, directories, symlinks etc on mounted "
34326 "filesystems. There are over a hundred such calls which you can find listed "
34327 "in detail below in this man page, and we don't even pretend to cover them "
34328 "all in this overview."
34332 #: ../src/guestfs.pod:202
34334 "Specify filenames as full paths, starting with C<\"/\"> and including the "
34337 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
34338 "точкою монтування."
34341 #: ../src/guestfs.pod:205
34343 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
34344 "the file called C<\"etc/passwd\"> then you could do:"
34346 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
34347 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
34351 #: ../src/guestfs.pod:208
34354 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
34357 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
34361 #: ../src/guestfs.pod:210
34363 "This would return C<data> as a newly allocated buffer containing the full "
34364 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
34365 "or C<NULL> if there was an error."
34369 #: ../src/guestfs.pod:214
34371 "As another example, to create a top-level directory on that filesystem "
34372 "called C<\"var\"> you would do:"
34376 #: ../src/guestfs.pod:217
34379 " guestfs_mkdir (g, \"/var\");\n"
34382 " guestfs_mkdir (g, \"/var\");\n"
34386 #: ../src/guestfs.pod:219
34387 msgid "To create a symlink you could do:"
34388 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
34391 #: ../src/guestfs.pod:221
34394 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
34395 " \"/etc/rc3.d/S30portmap\");\n"
34398 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
34399 " \"/etc/rc3.d/S30portmap\");\n"
34403 #: ../src/guestfs.pod:224
34405 "Libguestfs will reject attempts to use relative paths and there is no "
34406 "concept of a current working directory."
34410 #: ../src/guestfs.pod:227
34412 "Libguestfs can return errors in many situations: for example if the "
34413 "filesystem isn't writable, or if a file or directory that you requested "
34414 "doesn't exist. If you are using the C API (documented here) you have to "
34415 "check for those error conditions after each call. (Other language bindings "
34416 "turn these errors into exceptions)."
34420 #: ../src/guestfs.pod:233
34422 "File writes are affected by the per-handle umask, set by calling L</"
34423 "guestfs_umask> and defaulting to 022. See L</UMASK>."
34427 #: ../src/guestfs.pod:236
34428 msgid "PARTITIONING"
34429 msgstr "ПОДІЛ НА РОЗДІЛИ"
34432 #: ../src/guestfs.pod:238
34434 "Libguestfs contains API calls to read, create and modify partition tables on "
34439 #: ../src/guestfs.pod:241
34441 "In the common case where you want to create a single partition covering the "
34442 "whole disk, you should use the L</guestfs_part_disk> call:"
34446 #: ../src/guestfs.pod:245
34449 " const char *parttype = \"mbr\";\n"
34450 " if (disk_is_larger_than_2TB)\n"
34451 " parttype = \"gpt\";\n"
34452 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
34455 " const char *parttype = \"mbr\";\n"
34456 " if (disk_is_larger_than_2TB)\n"
34457 " parttype = \"gpt\";\n"
34458 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
34462 #: ../src/guestfs.pod:250
34464 "Obviously this effectively wipes anything that was on that disk image before."
34468 #: ../src/guestfs.pod:253
34473 #: ../src/guestfs.pod:255
34475 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
34476 "guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense unless "
34477 "you familiarize yourself with the concepts of physical volumes, volume "
34478 "groups and logical volumes."
34482 #: ../src/guestfs.pod:260
34484 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
34485 "tldp.org/HOWTO/LVM-HOWTO/>."
34489 #: ../src/guestfs.pod:263
34490 msgid "DOWNLOADING"
34491 msgstr "ОТРИМАННЯ ДАНИХ"
34494 #: ../src/guestfs.pod:265
34496 "Use L</guestfs_cat> to download small, text only files. This call is "
34497 "limited to files which are less than 2 MB and which cannot contain any ASCII "
34498 "NUL (C<\\0>) characters. However the API is very simple to use."
34502 #: ../src/guestfs.pod:269
34504 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
34505 "bit data, since it returns a (pointer, size) pair. However it is still "
34506 "limited to \"small\" files, less than 2 MB."
34510 #: ../src/guestfs.pod:273
34512 "L</guestfs_download> can be used to download any file, with no limits on "
34513 "content or size (even files larger than 4 GB)."
34517 #: ../src/guestfs.pod:276
34519 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
34523 #: ../src/guestfs.pod:279
34525 msgstr "ВИВАНТАЖЕННЯ"
34528 #: ../src/guestfs.pod:281
34530 "It's often the case that you want to write a file or files to the disk image."
34534 #: ../src/guestfs.pod:284
34536 "To write a small file with fixed content, use L</guestfs_write>. To create "
34537 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
34538 "guestfs_fallocate64> (with all disk blocks allocated). There are a variety "
34539 "of other functions for creating test files, for example L</guestfs_fill> and "
34540 "L</guestfs_fill_pattern>."
34544 #: ../src/guestfs.pod:290
34546 "To upload a single file, use L</guestfs_upload>. This call has no limits on "
34547 "file content or size (even files larger than 4 GB)."
34551 #: ../src/guestfs.pod:293
34553 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
34557 #: ../src/guestfs.pod:295
34559 "However the fastest way to upload I<large numbers of arbitrary files> is to "
34560 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
34561 ">), then attach this using L</guestfs_add_drive_ro>. If you add the drive "
34562 "in a predictable way (eg. adding it last after all other drives) then you "
34563 "can get the device name from L</guestfs_list_devices> and mount it directly "
34564 "using L</guestfs_mount_ro>. Note that squashfs images are sometimes non-"
34565 "portable between kernel versions, and they don't support labels or UUIDs. "
34566 "If you want to pre-build an image or you need to mount it using a label or "
34567 "UUID, use an ISO image instead."
34571 #: ../src/guestfs.pod:306
34573 msgstr "КОПІЮВАННЯ"
34576 #: ../src/guestfs.pod:308
34578 "There are various different commands for copying between files and devices "
34579 "and in and out of the guest filesystem. These are summarised in the table "
34584 #: ../src/guestfs.pod:314
34585 msgid "B<file> to B<file>"
34586 msgstr "B<файл> у B<файл>"
34589 #: ../src/guestfs.pod:316
34591 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
34592 "directories recursively."
34596 #: ../src/guestfs.pod:319
34597 msgid "B<file or device> to B<file or device>"
34598 msgstr "B<файл або пристрій> у B<файл або пристрій>"
34601 #: ../src/guestfs.pod:321
34603 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
34604 "devices in the guest."
34608 #: ../src/guestfs.pod:324
34609 msgid "Example: duplicate the contents of an LV:"
34613 #: ../src/guestfs.pod:326
34616 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
34619 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
34623 #: ../src/guestfs.pod:328
34625 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
34626 "(C</dev/VG/Original>). To copy less than the whole source device, use L</"
34627 "guestfs_copy_size>."
34631 #: ../src/guestfs.pod:332
34632 msgid "B<file on the host> to B<file or device>"
34636 #: ../src/guestfs.pod:334
34637 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
34641 #: ../src/guestfs.pod:336
34642 msgid "B<file or device> to B<file on the host>"
34646 #: ../src/guestfs.pod:338
34647 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
34651 #: ../src/guestfs.pod:342
34652 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
34656 #: ../src/guestfs.pod:344
34658 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
34659 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
34660 "appears you can only upload and download to files. However many Un*x-like "
34661 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
34662 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
34663 "and arbitrary file descriptor N."
34667 #: ../src/guestfs.pod:352
34668 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
34672 #: ../src/guestfs.pod:355
34675 " guestfs_download (g, filename, \"/dev/stdout\");\n"
34678 " guestfs_download (g, filename, \"/dev/stdout\");\n"
34682 #: ../src/guestfs.pod:357
34683 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
34687 #: ../src/guestfs.pod:359
34690 " char devfd[64];\n"
34691 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
34692 " guestfs_tar_out (g, \"/\", devfd);\n"
34695 " char devfd[64];\n"
34696 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
34697 " guestfs_tar_out (g, \"/\", devfd);\n"
34701 #: ../src/guestfs.pod:363
34702 msgid "LISTING FILES"
34703 msgstr "СПИСКИ ФАЙЛІВ"
34706 #: ../src/guestfs.pod:365
34708 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
34709 "L<guestfish(1)>-equivalent command C<ll>)."
34713 #: ../src/guestfs.pod:368
34715 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
34716 "programs, as a flat list of strings."
34720 #: ../src/guestfs.pod:371
34722 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
34723 "directory, plus additional information about each one. It is more "
34724 "equivalent to using the L<readdir(3)> call on a local filesystem."
34728 #: ../src/guestfs.pod:375
34730 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
34734 #: ../src/guestfs.pod:378
34735 msgid "RUNNING COMMANDS"
34736 msgstr "ВИКОНАННЯ КОМАНД"
34739 #: ../src/guestfs.pod:380
34741 "Although libguestfs is primarily an API for manipulating files inside guest "
34742 "images, we also provide some limited facilities for running commands inside "
34747 #: ../src/guestfs.pod:384
34748 msgid "There are many limitations to this:"
34752 #: ../src/guestfs.pod:390
34754 "The kernel version that the command runs under will be different from what "
34759 #: ../src/guestfs.pod:395
34761 "If the command needs to communicate with daemons, then most likely they "
34762 "won't be running."
34766 #: ../src/guestfs.pod:400
34767 msgid "The command will be running in limited memory."
34771 #: ../src/guestfs.pod:404
34773 "The network may not be available unless you enable it (see L</"
34774 "guestfs_set_network>)."
34778 #: ../src/guestfs.pod:409
34779 msgid "Only supports Linux guests (not Windows, BSD, etc)."
34783 #: ../src/guestfs.pod:413
34785 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
34789 #: ../src/guestfs.pod:418
34791 "For SELinux guests, you may need to enable SELinux and load policy first. "
34792 "See L</SELINUX> in this manpage."
34796 #: ../src/guestfs.pod:423
34798 "I<Security:> It is not safe to run commands from untrusted, possibly "
34799 "malicious guests. These commands may attempt to exploit your program by "
34800 "sending unexpected output. They could also try to exploit the Linux kernel "
34801 "or qemu provided by the libguestfs appliance. They could use the network "
34802 "provided by the libguestfs appliance to bypass ordinary network partitions "
34803 "and firewalls. They could use the elevated privileges or different SELinux "
34804 "context of your program to their advantage."
34808 #: ../src/guestfs.pod:432
34810 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
34811 "(a script which runs when the guest next boots normally), and to have this "
34812 "script run the commands you want in the normal context of the running guest, "
34813 "network security and so on. For information about other security issues, "
34814 "see L</SECURITY>."
34818 #: ../src/guestfs.pod:440
34820 "The two main API calls to run commands are L</guestfs_command> and L</"
34821 "guestfs_sh> (there are also variations)."
34825 #: ../src/guestfs.pod:443
34827 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
34828 "shell globs, redirections, etc will work."
34832 #: ../src/guestfs.pod:446
34833 msgid "CONFIGURATION FILES"
34834 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
34837 #: ../src/guestfs.pod:448
34839 "To read and write configuration files in Linux guest filesystems, we "
34840 "strongly recommend using Augeas. For example, Augeas understands how to "
34841 "read and write, say, a Linux shadow password file or X.org configuration "
34842 "file, and so avoids you having to write that code."
34846 #: ../src/guestfs.pod:453
34848 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
34849 "document Augeas itself here because there is excellent documentation on the "
34850 "L<http://augeas.net/> website."
34854 #: ../src/guestfs.pod:457
34856 "If you don't want to use Augeas (you fool!) then try calling L</"
34857 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
34862 #: ../src/guestfs.pod:461
34867 #: ../src/guestfs.pod:463
34869 "We support SELinux guests. To ensure that labeling happens correctly in "
34870 "SELinux guests, you need to enable SELinux and load the guest's policy:"
34874 #: ../src/guestfs.pod:471
34875 msgid "Before launching, do:"
34879 #: ../src/guestfs.pod:473
34882 " guestfs_set_selinux (g, 1);\n"
34885 " guestfs_set_selinux (g, 1);\n"
34889 #: ../src/guestfs.pod:477
34891 "After mounting the guest's filesystem(s), load the policy. This is best "
34892 "done by running the L<load_policy(8)> command in the guest itself:"
34896 #: ../src/guestfs.pod:481
34899 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
34902 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
34906 #: ../src/guestfs.pod:483
34908 "(Older versions of C<load_policy> require you to specify the name of the "
34913 #: ../src/guestfs.pod:488
34915 "Optionally, set the security context for the API. The correct security "
34916 "context to use can only be known by inspecting the guest. As an example:"
34920 #: ../src/guestfs.pod:492
34923 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
34926 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
34930 #: ../src/guestfs.pod:496
34931 msgid "This will work for running commands and editing existing files."
34935 #: ../src/guestfs.pod:498
34937 "When new files are created, you may need to label them explicitly, for "
34938 "example by running the external command C<restorecon pathname>."
34942 #: ../src/guestfs.pod:502
34947 #: ../src/guestfs.pod:504
34949 "Certain calls are affected by the current file mode creation mask (the "
34950 "\"umask\"). In particular ones which create files or directories, such as "
34951 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
34952 "either the default mode that the file is created with or modifies the mode "
34957 #: ../src/guestfs.pod:510
34959 "The default umask is C<022>, so files are created with modes such as C<0644> "
34960 "and directories with C<0755>."
34964 #: ../src/guestfs.pod:513
34966 "There are two ways to avoid being affected by umask. Either set umask to 0 "
34967 "(call C<guestfs_umask (g, 0)> early after launching). Or call L</"
34968 "guestfs_chmod> after creating each file or directory."
34972 #: ../src/guestfs.pod:517
34973 msgid "For more information about umask, see L<umask(2)>."
34977 #: ../src/guestfs.pod:521
34979 "Libguestfs allows you to access Linux guests which have been encrypted using "
34980 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
34981 "standard. This includes nearly all whole disk encryption systems used by "
34982 "modern Linux guests."
34986 #: ../src/guestfs.pod:527
34988 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
34989 "returns the string C<crypto_LUKS>)."
34993 #: ../src/guestfs.pod:530
34995 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
34996 "will require the passphrase!"
35000 #: ../src/guestfs.pod:533
35002 "Opening a LUKS device creates a new device mapper device called C</dev/"
35003 "mapper/mapname> (where C<mapname> is the string you supply to L</"
35004 "guestfs_luks_open>). Reads and writes to this mapper device are decrypted "
35005 "from and encrypted to the underlying block device respectively."
35009 #: ../src/guestfs.pod:539
35011 "LVM volume groups on the device can be made visible by calling L</"
35012 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical volume"
35013 "(s) can now be mounted in the usual way."
35017 #: ../src/guestfs.pod:543
35019 "Use the reverse process to close a LUKS device. Unmount any logical volumes "
35020 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
35021 "[\"/dev/VG\"])>. Then close the mapper device by calling L</"
35022 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
35023 "underlying encrypted block device)."
35027 #: ../src/guestfs.pod:550
35032 #: ../src/guestfs.pod:552
35034 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
35035 "contains operating systems, an install CD or a live CD. (These APIs used to "
35036 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
35037 "version 1.5.3 the most frequently used part of this library has been "
35038 "rewritten in C and moved into the core code)."
35042 #: ../src/guestfs.pod:559
35044 "Add all disks belonging to the unknown virtual machine and call L</"
35045 "guestfs_launch> in the usual way."
35049 #: ../src/guestfs.pod:562
35051 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
35052 "and certain heuristics, and returns a list of operating systems that were "
35053 "found. An empty list means none were found. A single element is the root "
35054 "filesystem of the operating system. For dual- or multi-boot guests, "
35055 "multiple roots can be returned, each one corresponding to a separate "
35056 "operating system. (Multi-boot virtual machines are extremely rare in the "
35057 "world of virtualization, but since this scenario can happen, we have built "
35058 "libguestfs to deal with it.)"
35062 #: ../src/guestfs.pod:571
35064 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
35065 "to get additional details about that operating system. For example, call L</"
35066 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
35067 "Windows and Linux-based operating systems respectively."
35071 #: ../src/guestfs.pod:577
35073 "Un*x-like and Linux-based operating systems usually consist of several "
35074 "filesystems which are mounted at boot time (for example, a separate boot "
35075 "partition mounted on C</boot>). The inspection rules are able to detect how "
35076 "filesystems correspond to mount points. Call "
35077 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
35078 "hash table like this example:"
35082 #: ../src/guestfs.pod:584
35085 " /boot => /dev/sda1\n"
35086 " / => /dev/vg_guest/lv_root\n"
35087 " /usr => /dev/vg_guest/lv_usr\n"
35090 " /boot => /dev/sda1\n"
35091 " / => /dev/vg_guest/lv_root\n"
35092 " /usr => /dev/vg_guest/lv_usr\n"
35096 #: ../src/guestfs.pod:588
35098 "The caller can then make calls to L</guestfs_mount_options> to mount the "
35099 "filesystems as suggested."
35103 #: ../src/guestfs.pod:591
35105 "Be careful to mount filesystems in the right order (eg. C</> before C</"
35106 "usr>). Sorting the keys of the hash by length, shortest first, should work."
35110 #: ../src/guestfs.pod:595
35112 "Inspection currently only works for some common operating systems. "
35113 "Contributors are welcome to send patches for other operating systems that we "
35114 "currently cannot detect."
35118 #: ../src/guestfs.pod:599
35120 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
35121 "for more details. The L</guestfs_inspect_os> function just ignores any "
35122 "encrypted devices."
35126 #: ../src/guestfs.pod:603
35128 "A note on the implementation: The call L</guestfs_inspect_os> performs "
35129 "inspection and caches the results in the guest handle. Subsequent calls to "
35130 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
35131 "read the disks. If you change the content of the guest disks, you can redo "
35132 "inspection by calling L</guestfs_inspect_os> again. (L</"
35133 "guestfs_inspect_list_applications> works a little differently from the other "
35134 "calls and does read the disks. See documentation for that function for "
35139 #: ../src/guestfs.pod:612
35140 msgid "INSPECTING INSTALL DISKS"
35144 #: ../src/guestfs.pod:614
35146 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
35151 #: ../src/guestfs.pod:617
35153 "Call L</guestfs_inspect_get_format> to return the format of the operating "
35154 "system, which currently can be C<installed> (a regular operating system) or "
35155 "C<installer> (some sort of install disk)."
35159 #: ../src/guestfs.pod:621
35161 "Further information is available about the operating system that can be "
35162 "installed using the regular inspection APIs like L</"
35163 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
35167 #: ../src/guestfs.pod:626
35169 "Some additional information specific to installer disks is also available "
35170 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
35171 "guestfs_inspect_is_multipart> calls."
35175 #: ../src/guestfs.pod:631
35176 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
35180 #: ../src/guestfs.pod:633
35182 "Libguestfs can mount NTFS partitions. It does this using the L<http://www."
35183 "ntfs-3g.org/> driver."
35187 #: ../src/guestfs.pod:636
35188 msgid "DRIVE LETTERS AND PATHS"
35189 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
35192 #: ../src/guestfs.pod:638
35194 "DOS and Windows still use drive letters, and the filesystems are always "
35195 "treated as case insensitive by Windows itself, and therefore you might find "
35196 "a Windows configuration file referring to a path like C<c:\\windows"
35197 "\\system32>. When the filesystem is mounted in libguestfs, that directory "
35198 "might be referred to as C</WINDOWS/System32>."
35202 #: ../src/guestfs.pod:644
35204 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
35205 "L</guestfs_inspect_get_drive_mappings>)"
35209 #: ../src/guestfs.pod:647
35211 "Dealing with separator characters (backslash vs forward slash) is outside "
35212 "the scope of libguestfs, but usually a simple character replacement will "
35217 #: ../src/guestfs.pod:651
35219 "To resolve the case insensitivity of paths, call L</"
35220 "guestfs_case_sensitive_path>."
35224 #: ../src/guestfs.pod:654
35225 msgid "ACCESSING THE WINDOWS REGISTRY"
35226 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
35229 #: ../src/guestfs.pod:656
35231 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
35232 "files, through the library C<hivex> which is part of the libguestfs project "
35233 "although ships as a separate tarball. You have to locate and download the "
35234 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
35235 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
35236 "reg(1)> for more help on this issue."
35240 #: ../src/guestfs.pod:664
35241 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
35242 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
35245 #: ../src/guestfs.pod:666
35247 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
35248 "provide something which looks like a Linux symlink. The way it tries to do "
35249 "the rewriting is described here:"
35253 #: ../src/guestfs.pod:670
35255 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
35258 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
35262 #: ../src/guestfs.pod:672
35264 "The essential problem is that ntfs-3g simply does not have enough "
35265 "information to do a correct job. NTFS links can contain drive letters and "
35266 "references to external device GUIDs that ntfs-3g has no way of resolving. "
35267 "It is almost certainly the case that libguestfs callers should ignore what "
35268 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
35272 #: ../src/guestfs.pod:679
35274 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
35275 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
35276 "attribute, and read the raw reparse data from that (you can find the format "
35277 "documented in various places around the web)."
35281 #: ../src/guestfs.pod:684
35282 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
35286 #: ../src/guestfs.pod:686
35288 "There are other useful extended attributes that can be read from ntfs-3g "
35289 "filesystems (using L</guestfs_getxattr>). See:"
35293 #: ../src/guestfs.pod:689
35295 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35297 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35300 #: ../src/guestfs.pod:691
35301 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
35302 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
35305 #: ../src/guestfs.pod:693
35307 "Although we don't want to discourage you from using the C API, we will "
35308 "mention here that the same API is also available in other languages."
35312 #: ../src/guestfs.pod:696
35314 "The API is broadly identical in all supported languages. This means that "
35315 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
35316 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
35317 "OCaml. In other words, a straightforward, predictable isomorphism between "
35322 #: ../src/guestfs.pod:702
35324 "Error messages are automatically transformed into exceptions if the language "
35329 #: ../src/guestfs.pod:705
35331 "We don't try to \"object orientify\" parts of the API in OO languages, "
35332 "although contributors are welcome to write higher level APIs above what we "
35333 "provide in their favourite languages if they wish."
35337 #: ../src/guestfs.pod:711
35342 #: ../src/guestfs.pod:713
35344 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
35345 "identical to the C API. C++ classes and exceptions are not used."
35349 #: ../src/guestfs.pod:717
35354 #: ../src/guestfs.pod:719
35356 "The C# bindings are highly experimental. Please read the warnings at the "
35357 "top of C<csharp/Libguestfs.cs>."
35361 #: ../src/guestfs.pod:722
35366 #: ../src/guestfs.pod:724
35368 #| msgid "See L<guestfs-ruby(3)>."
35369 msgid "See L<guestfs-erlang(3)>."
35370 msgstr "Див. L<guestfs-ruby(3)>."
35373 #: ../src/guestfs.pod:726
35375 msgstr "B<Haskell>"
35378 #: ../src/guestfs.pod:728
35380 "This is the only language binding that is working but incomplete. Only "
35381 "calls which return simple integers have been bound in Haskell, and we are "
35382 "looking for help to complete this binding."
35386 #: ../src/guestfs.pod:732
35391 #: ../src/guestfs.pod:734
35393 "Full documentation is contained in the Javadoc which is distributed with "
35394 "libguestfs. For examples, see L<guestfs-java(3)>."
35398 #: ../src/guestfs.pod:737
35403 #: ../src/guestfs.pod:739
35404 msgid "See L<guestfs-ocaml(3)>."
35405 msgstr "Див. L<guestfs-ocaml(3)>."
35408 #: ../src/guestfs.pod:741
35413 #: ../src/guestfs.pod:743
35414 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
35415 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
35418 #: ../src/guestfs.pod:745
35423 #: ../src/guestfs.pod:747
35425 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
35426 "the php-libguestfs package for your distribution."
35430 #: ../src/guestfs.pod:750
35431 msgid "The PHP binding only works correctly on 64 bit machines."
35435 #: ../src/guestfs.pod:752
35440 #: ../src/guestfs.pod:754
35441 msgid "See L<guestfs-python(3)>."
35442 msgstr "Див. L<guestfs-python(3)>."
35445 #: ../src/guestfs.pod:756
35450 #: ../src/guestfs.pod:758
35451 msgid "See L<guestfs-ruby(3)>."
35452 msgstr "Див. L<guestfs-ruby(3)>."
35455 #: ../src/guestfs.pod:760
35456 msgid "B<shell scripts>"
35457 msgstr "B<скрипти оболонки>"
35460 #: ../src/guestfs.pod:762
35461 msgid "See L<guestfish(1)>."
35462 msgstr "Див. L<guestfish(1)>."
35465 #: ../src/guestfs.pod:766
35466 msgid "LIBGUESTFS GOTCHAS"
35470 #: ../src/guestfs.pod:768
35472 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
35473 "system [...] that works in the way it is documented but is counterintuitive "
35474 "and almost invites mistakes.\""
35478 #: ../src/guestfs.pod:772
35480 "Since we developed libguestfs and the associated tools, there are several "
35481 "things we would have designed differently, but are now stuck with for "
35482 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
35483 "release, you can expect these to change. Beware of them."
35487 #: ../src/guestfs.pod:780
35488 msgid "Autosync / forgetting to sync."
35492 #: ../src/guestfs.pod:782
35494 "I<Update:> Autosync is enabled by default for all API users starting from "
35495 "libguestfs 1.5.24. This section only applies to older versions."
35499 #: ../src/guestfs.pod:785
35501 "When modifying a filesystem from C or another language, you B<must> unmount "
35502 "all filesystems and call L</guestfs_sync> explicitly before you close the "
35503 "libguestfs handle. You can also call:"
35507 #: ../src/guestfs.pod:789
35510 " guestfs_set_autosync (g, 1);\n"
35513 " guestfs_set_autosync (g, 1);\n"
35517 #: ../src/guestfs.pod:791
35519 "to have the unmount/sync done automatically for you when the handle 'g' is "
35520 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
35524 #: ../src/guestfs.pod:795
35526 "If you forget to do this, then it is entirely possible that your changes "
35527 "won't be written out, or will be partially written, or (very rarely) that "
35528 "you'll get disk corruption."
35532 #: ../src/guestfs.pod:799
35534 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
35535 "guestfish scripts that forget to sync will work just fine, which can make "
35536 "this very puzzling if you are trying to debug a problem."
35540 #: ../src/guestfs.pod:803
35541 msgid "Mount option C<-o sync> should not be the default."
35545 #: ../src/guestfs.pod:805
35547 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
35548 "libguestfs 1.13.16. This section only applies to older versions."
35552 #: ../src/guestfs.pod:808
35554 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
35555 "However C<-o sync> does not add any reliability benefit, but does have a "
35556 "very large performance impact."
35560 #: ../src/guestfs.pod:812
35562 "The work around is to use L</guestfs_mount_options> and set the mount "
35563 "options that you actually want to use."
35567 #: ../src/guestfs.pod:815
35568 msgid "Read-only should be the default."
35572 #: ../src/guestfs.pod:817
35574 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
35575 "specify I<--rw> if you want to make changes to the image."
35579 #: ../src/guestfs.pod:820
35580 msgid "This would reduce the potential to corrupt live VM images."
35584 #: ../src/guestfs.pod:822
35586 "Note that many filesystems change the disk when you just mount and unmount, "
35587 "even if you didn't perform any writes. You need to use L</"
35588 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
35592 #: ../src/guestfs.pod:826
35593 msgid "guestfish command line is hard to use."
35597 #: ../src/guestfs.pod:828
35599 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
35600 "examination). It tries to run a guestfish command C<disk.img> which doesn't "
35601 "exist, so it fails. In earlier versions of guestfish the error message was "
35602 "also unintuitive, but we have corrected this since. Like the Bourne shell, "
35603 "we should have used C<guestfish -c command> to run commands."
35607 #: ../src/guestfs.pod:835
35608 msgid "guestfish megabyte modifiers don't work right on all commands"
35612 #: ../src/guestfs.pod:837
35614 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
35615 "other modifiers). What guestfish actually does is to multiply the number "
35616 "part by the modifier part and pass the result to the C API. However this "
35617 "doesn't work for a few APIs which aren't expecting bytes, but are already "
35618 "expecting some other unit (eg. megabytes)."
35622 #: ../src/guestfs.pod:844
35623 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
35627 #: ../src/guestfs.pod:846
35630 " lvcreate LV VG 100M\n"
35633 " lvcreate LV VG 100M\n"
35637 #: ../src/guestfs.pod:848
35639 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
35640 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
35641 "megabytes * megabytes) logical volume. The error message you get from this "
35642 "is also a little obscure."
35646 #: ../src/guestfs.pod:853
35648 "This could be fixed in the generator by specially marking parameters and "
35649 "return values which take bytes or other units."
35653 #: ../src/guestfs.pod:856
35654 msgid "Ambiguity between devices and paths"
35658 #: ../src/guestfs.pod:858
35660 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
35661 "sdb2>) and a similar pathname. A file might just happen to be called "
35662 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
35666 #: ../src/guestfs.pod:863
35668 "In the current API we usually resolve this ambiguity by having two separate "
35669 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
35670 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
35671 "detecting if the path supplied begins with C</dev/>."
35675 #: ../src/guestfs.pod:869
35677 "To avoid both the ambiguity and the need to duplicate some calls, we could "
35678 "make paths/devices into structured names. One way to do this would be to "
35679 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
35680 "aspect of grub. Another way would be to use a structured type, equivalent "
35681 "to this OCaml type:"
35685 #: ../src/guestfs.pod:875
35688 " type path = Path of string | Device of int | Partition of int * int\n"
35693 #: ../src/guestfs.pod:877
35694 msgid "which would allow you to pass arguments like:"
35698 #: ../src/guestfs.pod:879
35701 " Path \"/foo/bar\"\n"
35702 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
35703 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
35704 " Path \"/dev/sdb2\" (* not a device *)\n"
35709 #: ../src/guestfs.pod:884
35711 "As you can see there are still problems to resolve even with this "
35712 "representation. Also consider how it might work in guestfish."
35716 #: ../src/guestfs.pod:889
35717 msgid "KEYS AND PASSPHRASES"
35718 msgstr "КЛЮЧІ І ПАРОЛІ"
35721 #: ../src/guestfs.pod:891
35723 "Certain libguestfs calls take a parameter that contains sensitive key "
35724 "material, passed in as a C string."
35728 #: ../src/guestfs.pod:894
35730 "In the future we would hope to change the libguestfs implementation so that "
35731 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
35732 "swap. However this is I<not> done at the moment, because of the complexity "
35733 "of such an implementation."
35737 #: ../src/guestfs.pod:899
35739 "Therefore you should be aware that any key parameter you pass to libguestfs "
35740 "might end up being written out to the swap partition. If this is a concern, "
35741 "scrub the swap partition or don't use libguestfs on encrypted devices."
35745 #: ../src/guestfs.pod:904
35746 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
35750 #: ../src/guestfs.pod:906
35752 "All high-level libguestfs actions are synchronous. If you want to use "
35753 "libguestfs asynchronously then you must create a thread."
35757 #: ../src/guestfs.pod:909
35759 "Only use the handle from a single thread. Either use the handle exclusively "
35760 "from one thread, or provide your own mutex so that two threads cannot issue "
35761 "calls on the same handle at the same time."
35765 #: ../src/guestfs.pod:913
35767 "See the graphical program guestfs-browser for one possible architecture for "
35768 "multithreaded programs using libvirt and libguestfs."
35772 #: ../src/guestfs.pod:916
35777 #: ../src/guestfs.pod:918
35779 "Libguestfs needs a supermin appliance, which it finds by looking along an "
35784 #: ../src/guestfs.pod:921
35786 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
35787 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
35791 #: ../src/guestfs.pod:924
35793 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
35794 "to change the directories that libguestfs will search in. The value is a "
35795 "colon-separated list of paths. The current directory is I<not> searched "
35796 "unless the path contains an empty element or C<.>. For example "
35797 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
35798 "then C</usr/lib/guestfs>."
35802 #: ../src/guestfs.pod:931
35803 msgid "QEMU WRAPPERS"
35807 #: ../src/guestfs.pod:933
35809 "If you want to compile your own qemu, run qemu from a non-standard location, "
35810 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
35815 #: ../src/guestfs.pod:937
35817 "There is one important rule to remember: you I<must C<exec qemu>> as the "
35818 "last command in the shell script (so that qemu replaces the shell and "
35819 "becomes the direct child of the libguestfs-using program). If you don't do "
35820 "this, then the qemu process won't be cleaned up correctly."
35824 #: ../src/guestfs.pod:942
35826 "Here is an example of a wrapper, where I have built my own copy of qemu from "
35831 #: ../src/guestfs.pod:945
35835 " qemudir=/home/rjones/d/qemu\n"
35836 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
35840 " qemudir=/home/rjones/d/qemu\n"
35841 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
35845 #: ../src/guestfs.pod:949
35847 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
35848 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
35853 #: ../src/guestfs.pod:953
35856 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
35859 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
35863 #: ../src/guestfs.pod:955
35865 "Note that libguestfs also calls qemu with the -help and -version options in "
35866 "order to determine features."
35870 #: ../src/guestfs.pod:958
35872 "Wrappers can also be used to edit the options passed to qemu. In the "
35873 "following example, the C<-machine ...> option (C<-machine> and the following "
35874 "argument) are removed from the command line and replaced with C<-machine pc,"
35875 "accel=tcg>. The while loop iterates over the options until it finds the "
35876 "right one to remove, putting the remaining options into the C<args> array."
35880 #: ../src/guestfs.pod:965
35883 #| " #!/usr/bin/guestfish -f\n"
35889 " #!/usr/bin/guestfish -f\n"
35893 #: ../src/guestfs.pod:967
35897 " while [ $# -gt 0 ]; do\n"
35898 " case \"$1\" in\n"
35902 " args[i]=\"$1\"\n"
35911 #: ../src/guestfs.pod:979
35914 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
35919 #: ../src/guestfs.pod:981
35920 msgid "ATTACHING TO RUNNING DAEMONS"
35921 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
35924 #: ../src/guestfs.pod:983
35926 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
35927 "babies. Use with caution."
35931 #: ../src/guestfs.pod:986
35933 "I<Note (2):> This section explains how to attach to a running daemon from a "
35934 "low level perspective. For most users, simply using virt tools such as "
35935 "L<guestfish(1)> with the I<--live> option will \"just work\"."
35939 #: ../src/guestfs.pod:990
35940 msgid "Using guestfs_set_attach_method"
35941 msgstr "За допомогою guestfs_set_attach_method"
35944 #: ../src/guestfs.pod:992
35946 "By calling L</guestfs_set_attach_method> you can change how the library "
35947 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
35948 "ARCHITECTURE> for some background)."
35952 #: ../src/guestfs.pod:996
35954 "The normal attach method is C<appliance>, where a small appliance is created "
35955 "containing the daemon, and then the library connects to this."
35959 #: ../src/guestfs.pod:999
35961 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
35962 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
35963 "daemon over the Unix domain socket."
35967 #: ../src/guestfs.pod:1003
35969 "The normal use for this is to connect to a running virtual machine that "
35970 "contains a C<guestfsd> daemon, and send commands so you can read and write "
35971 "files inside the live virtual machine."
35975 #: ../src/guestfs.pod:1007
35976 msgid "Using guestfs_add_domain with live flag"
35977 msgstr "За допомогою guestfs_add_domain з прапорцем live"
35980 #: ../src/guestfs.pod:1009
35982 "L</guestfs_add_domain> provides some help for getting the correct attach "
35983 "method. If you pass the C<live> option to this function, then (if the "
35984 "virtual machine is running) it will examine the libvirt XML looking for a "
35985 "virtio-serial channel to connect to:"
35989 #: ../src/guestfs.pod:1015
35996 " <channel type='unix'>\n"
35997 " <source mode='bind' path='/path/to/socket'/>\n"
35998 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36009 " <channel type='unix'>\n"
36010 " <source mode='bind' path='/path/to/socket'/>\n"
36011 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36019 #: ../src/guestfs.pod:1027
36021 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
36022 "method to C<unix:/path/to/socket>."
36026 #: ../src/guestfs.pod:1030
36028 "Some of the libguestfs tools (including guestfish) support a I<--live> "
36029 "option which is passed through to L</guestfs_add_domain> thus allowing you "
36030 "to attach to and modify live virtual machines."
36034 #: ../src/guestfs.pod:1034
36036 "The virtual machine needs to have been set up beforehand so that it has the "
36037 "virtio-serial channel and so that guestfsd is running inside it."
36041 #: ../src/guestfs.pod:1038
36042 msgid "ABI GUARANTEE"
36043 msgstr "ГАРАНТІЯ ЩОДО ABI"
36046 #: ../src/guestfs.pod:1040
36048 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
36049 "actions as outlined in this section. Although we will deprecate some "
36050 "actions, for example if they get replaced by newer calls, we will keep the "
36051 "old actions forever. This allows you the developer to program in confidence "
36052 "against the libguestfs API."
36056 #: ../src/guestfs.pod:1046
36057 msgid "BLOCK DEVICE NAMING"
36058 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
36061 #: ../src/guestfs.pod:1048
36063 "In the kernel there is now quite a profusion of schemata for naming block "
36064 "devices (in this context, by I<block device> I mean a physical or virtual "
36065 "hard drive). The original Linux IDE driver used names starting with C</dev/"
36066 "hd*>. SCSI devices have historically used a different naming scheme, C</dev/"
36067 "sd*>. When the Linux kernel I<libata> driver became a popular replacement "
36068 "for the old IDE driver (particularly for SATA devices) those devices also "
36069 "used the C</dev/sd*> scheme. Additionally we now have virtual machines with "
36070 "paravirtualized drivers. This has created several different naming systems, "
36071 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
36075 #: ../src/guestfs.pod:1060
36077 "As discussed above, libguestfs uses a qemu appliance running an embedded "
36078 "Linux kernel to access block devices. We can run a variety of appliances "
36079 "based on a variety of Linux kernels."
36083 #: ../src/guestfs.pod:1064
36085 "This causes a problem for libguestfs because many API calls use device or "
36086 "partition names. Working scripts and the recipe (example) scripts that we "
36087 "make available over the internet could fail if the naming scheme changes."
36091 #: ../src/guestfs.pod:1069
36093 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
36094 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
36095 "required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
36096 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
36100 #: ../src/guestfs.pod:1075
36102 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
36103 "L</guestfs_list_partitions> and similar calls return the true names of the "
36104 "devices and partitions as known to the appliance."
36108 #: ../src/guestfs.pod:1080
36109 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
36113 #: ../src/guestfs.pod:1082
36115 "Usually this translation is transparent. However in some (very rare) cases "
36116 "you may need to know the exact algorithm. Such cases include where you use "
36117 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
36118 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
36122 #: ../src/guestfs.pod:1088
36124 "The algorithm is applied only to I<parameters> which are known to be either "
36125 "device or partition names. Return values from functions such as L</"
36126 "guestfs_list_devices> are never changed."
36130 #: ../src/guestfs.pod:1096
36131 msgid "Is the string a parameter which is a device or partition name?"
36135 #: ../src/guestfs.pod:1100
36136 msgid "Does the string begin with C</dev/sd>?"
36137 msgstr "Чи починається рядок з C</dev/sd>?"
36140 #: ../src/guestfs.pod:1104
36142 "Does the named device exist? If so, we use that device. However if I<not> "
36143 "then we continue with this algorithm."
36147 #: ../src/guestfs.pod:1109
36148 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
36152 #: ../src/guestfs.pod:1111
36153 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
36157 #: ../src/guestfs.pod:1113
36158 msgid "If that named device exists, use it. If not, continue."
36162 #: ../src/guestfs.pod:1117
36163 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
36167 #: ../src/guestfs.pod:1119
36168 msgid "If that named device exists, use it. If not, return an error."
36172 #: ../src/guestfs.pod:1123
36173 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
36177 #: ../src/guestfs.pod:1125
36179 "Although the standard naming scheme and automatic translation is useful for "
36180 "simple programs and guestfish scripts, for larger programs it is best not to "
36181 "rely on this mechanism."
36185 #: ../src/guestfs.pod:1129
36187 "Where possible for maximum future portability programs using libguestfs "
36188 "should use these future-proof techniques:"
36192 #: ../src/guestfs.pod:1136
36194 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
36195 "device names, and then use those names directly."
36199 #: ../src/guestfs.pod:1139
36201 "Since those device names exist by definition, they will never be translated."
36205 #: ../src/guestfs.pod:1144
36207 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
36208 "filesystem labels."
36212 #: ../src/guestfs.pod:1149
36217 #: ../src/guestfs.pod:1151
36219 "This section discusses security implications of using libguestfs, "
36220 "particularly with untrusted or malicious guests or disk images."
36224 #: ../src/guestfs.pod:1154
36225 msgid "GENERAL SECURITY CONSIDERATIONS"
36226 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
36229 #: ../src/guestfs.pod:1156
36231 "Be careful with any files or data that you download from a guest (by "
36232 "\"download\" we mean not just the L</guestfs_download> command but any "
36233 "command that reads files, filenames, directories or anything else from a "
36234 "disk image). An attacker could manipulate the data to fool your program "
36235 "into doing the wrong thing. Consider cases such as:"
36239 #: ../src/guestfs.pod:1166
36240 msgid "the data (file etc) not being present"
36244 #: ../src/guestfs.pod:1170
36245 msgid "being present but empty"
36249 #: ../src/guestfs.pod:1174
36250 msgid "being much larger than normal"
36254 #: ../src/guestfs.pod:1178
36255 msgid "containing arbitrary 8 bit data"
36259 #: ../src/guestfs.pod:1182
36260 msgid "being in an unexpected character encoding"
36264 #: ../src/guestfs.pod:1186
36265 msgid "containing homoglyphs."
36269 #: ../src/guestfs.pod:1190
36270 msgid "SECURITY OF MOUNTING FILESYSTEMS"
36271 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
36274 #: ../src/guestfs.pod:1192
36276 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
36277 "(VFS) module can sometimes be escalated into exploits by deliberately "
36278 "creating a malicious, malformed filesystem. These exploits are very severe "
36279 "for two reasons. Firstly there are very many filesystem drivers in the "
36280 "kernel, and many of them are infrequently used and not much developer "
36281 "attention has been paid to the code. Linux userspace helps potential "
36282 "crackers by detecting the filesystem type and automatically choosing the "
36283 "right VFS driver, even if that filesystem type is obscure or unexpected for "
36284 "the administrator. Secondly, a kernel-level exploit is like a local root "
36285 "exploit (worse in some ways), giving immediate and total access to the "
36286 "system right down to the hardware level."
36290 #: ../src/guestfs.pod:1205
36292 "That explains why you should never mount a filesystem from an untrusted "
36293 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
36294 "inside a qemu virtual machine, usually running as a non-root user. The "
36295 "attacker would need to write a filesystem which first exploited the kernel, "
36296 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
36297 "the libguestfs protocol, and finally to be as serious as the host kernel "
36298 "exploit it would need to escalate its privileges to root. This multi-step "
36299 "escalation, performed by a static piece of data, is thought to be extremely "
36300 "hard to do, although we never say 'never' about security issues."
36304 #: ../src/guestfs.pod:1216
36306 "In any case callers can reduce the attack surface by forcing the filesystem "
36307 "type when mounting (use L</guestfs_mount_vfs>)."
36311 #: ../src/guestfs.pod:1219
36312 msgid "PROTOCOL SECURITY"
36313 msgstr "ЗАХИСТ ПРОТОКОЛУ"
36316 #: ../src/guestfs.pod:1221
36318 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
36319 "defined upper message size. However a program that uses libguestfs must "
36320 "also take care - for example you can write a program that downloads a binary "
36321 "from a disk image and executes it locally, and no amount of protocol "
36322 "security will save you from the consequences."
36326 #: ../src/guestfs.pod:1227
36327 msgid "INSPECTION SECURITY"
36331 #: ../src/guestfs.pod:1229
36333 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
36334 "directly from the guest, and these could contain any 8 bit data. Callers "
36335 "should be careful to escape these before printing them to a structured file "
36336 "(for example, use HTML escaping if creating a web page)."
36340 #: ../src/guestfs.pod:1235
36342 "Guest configuration may be altered in unusual ways by the administrator of "
36343 "the virtual machine, and may not reflect reality (particularly for untrusted "
36344 "or actively malicious guests). For example we parse the hostname from "
36345 "configuration files like C</etc/sysconfig/network> that we find in the "
36346 "guest, but the guest administrator can easily manipulate these files to "
36347 "provide the wrong hostname."
36351 #: ../src/guestfs.pod:1243
36353 "The inspection API parses guest configuration using two external libraries: "
36354 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
36355 "designed to be robust in the face of malicious data, although denial of "
36356 "service attacks are still possible, for example with oversized configuration "
36361 #: ../src/guestfs.pod:1249
36362 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
36363 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
36366 #: ../src/guestfs.pod:1251
36368 "Be very cautious about running commands from the guest. By running a "
36369 "command in the guest, you are giving CPU time to a binary that you do not "
36370 "control, under the same user account as the library, albeit wrapped in qemu "
36371 "virtualization. More information and alternatives can be found in the "
36372 "section L</RUNNING COMMANDS>."
36376 #: ../src/guestfs.pod:1257
36377 msgid "CVE-2010-3851"
36378 msgstr "CVE-2010-3851"
36381 #: ../src/guestfs.pod:1259
36382 msgid "https://bugzilla.redhat.com/642934"
36383 msgstr "https://bugzilla.redhat.com/642934"
36386 #: ../src/guestfs.pod:1261
36388 "This security bug concerns the automatic disk format detection that qemu "
36389 "does on disk images."
36393 #: ../src/guestfs.pod:1264
36395 "A raw disk image is just the raw bytes, there is no header. Other disk "
36396 "images like qcow2 contain a special header. Qemu deals with this by looking "
36397 "for one of the known headers, and if none is found then assuming the disk "
36398 "image must be raw."
36402 #: ../src/guestfs.pod:1269
36404 "This allows a guest which has been given a raw disk image to write some "
36405 "other header. At next boot (or when the disk image is accessed by "
36406 "libguestfs) qemu would do autodetection and think the disk image format was, "
36407 "say, qcow2 based on the header written by the guest."
36411 #: ../src/guestfs.pod:1274
36413 "This in itself would not be a problem, but qcow2 offers many features, one "
36414 "of which is to allow a disk image to refer to another image (called the "
36415 "\"backing disk\"). It does this by placing the path to the backing disk "
36416 "into the qcow2 header. This path is not validated and could point to any "
36417 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
36418 "\"holes\" in the qcow2 disk image, which of course is completely under the "
36419 "control of the attacker."
36423 #: ../src/guestfs.pod:1282
36425 "In libguestfs this is rather hard to exploit except under two circumstances:"
36429 #: ../src/guestfs.pod:1289
36430 msgid "You have enabled the network or have opened the disk in write mode."
36434 #: ../src/guestfs.pod:1293
36436 "You are also running untrusted code from the guest (see L</RUNNING "
36441 #: ../src/guestfs.pod:1298
36443 "The way to avoid this is to specify the expected disk format when adding "
36444 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
36445 "should always do this if the disk is raw format, and it's a good idea for "
36450 #: ../src/guestfs.pod:1303
36452 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
36453 "format is fetched from libvirt and passed through."
36457 #: ../src/guestfs.pod:1306
36459 "For libguestfs tools, use the I<--format> command line parameter as "
36464 #: ../src/guestfs.pod:1309
36465 msgid "CONNECTION MANAGEMENT"
36466 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
36469 #: ../src/guestfs.pod:1311
36470 msgid "guestfs_h *"
36471 msgstr "guestfs_h *"
36474 #: ../src/guestfs.pod:1313
36476 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
36477 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
36478 "handle and release all resources used."
36482 #: ../src/guestfs.pod:1317
36484 "For information on using multiple handles and threads, see the section L</"
36485 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
36489 #: ../src/guestfs.pod:1320
36490 msgid "guestfs_create"
36491 msgstr "guestfs_create"
36494 #: ../src/guestfs.pod:1322
36497 " guestfs_h *guestfs_create (void);\n"
36500 " guestfs_h *guestfs_create (void);\n"
36504 #: ../src/guestfs.pod:1324
36505 msgid "Create a connection handle."
36506 msgstr "Створити дескриптор з’єднання."
36509 #: ../src/guestfs.pod:1326
36511 "On success this returns a non-NULL pointer to a handle. On error it returns "
36516 #: ../src/guestfs.pod:1329
36518 "You have to \"configure\" the handle after creating it. This includes "
36519 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
36520 "handle at least once."
36524 #: ../src/guestfs.pod:1333
36525 msgid "After configuring the handle, you have to call L</guestfs_launch>."
36529 #: ../src/guestfs.pod:1335
36531 "You may also want to configure error handling for the handle. See the L</"
36532 "ERROR HANDLING> section below."
36536 #: ../src/guestfs.pod:1338
36537 msgid "guestfs_close"
36538 msgstr "guestfs_close"
36541 #: ../src/guestfs.pod:1340
36544 " void guestfs_close (guestfs_h *g);\n"
36547 " void guestfs_close (guestfs_h *g);\n"
36551 #: ../src/guestfs.pod:1342
36552 msgid "This closes the connection handle and frees up all resources used."
36556 #: ../src/guestfs.pod:1344
36558 "If autosync was set on the handle and the handle was launched, then this "
36559 "implicitly calls various functions to unmount filesystems and sync the "
36560 "disk. See L</guestfs_set_autosync> for more details."
36564 #: ../src/guestfs.pod:1348
36565 msgid "If a close callback was set on the handle, then it is called."
36569 #: ../src/guestfs.pod:1350
36570 msgid "ERROR HANDLING"
36571 msgstr "ОБРОБКА ПОМИЛОК"
36574 #: ../src/guestfs.pod:1352
36576 "API functions can return errors. For example, almost all functions that "
36577 "return C<int> will return C<-1> to indicate an error."
36581 #: ../src/guestfs.pod:1355
36583 "Additional information is available for errors: an error message string and "
36584 "optionally an error number (errno) if the thing that failed was a system "
36589 #: ../src/guestfs.pod:1359
36591 "You can get at the additional information about the last error on the handle "
36592 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
36593 "up an error handler with L</guestfs_set_error_handler>."
36597 #: ../src/guestfs.pod:1364
36599 "When the handle is created, a default error handler is installed which "
36600 "prints the error message string to C<stderr>. For small short-running "
36601 "command line programs it is sufficient to do:"
36605 #: ../src/guestfs.pod:1368
36608 " if (guestfs_launch (g) == -1)\n"
36609 " exit (EXIT_FAILURE);\n"
36612 " if (guestfs_launch (g) == -1)\n"
36613 " exit (EXIT_FAILURE);\n"
36617 #: ../src/guestfs.pod:1371
36619 "since the default error handler will ensure that an error message has been "
36620 "printed to C<stderr> before the program exits."
36624 #: ../src/guestfs.pod:1374
36626 "For other programs the caller will almost certainly want to install an "
36627 "alternate error handler or do error handling in-line like this:"
36631 #: ../src/guestfs.pod:1377
36634 " /* This disables the default behaviour of printing errors\n"
36636 " guestfs_set_error_handler (g, NULL, NULL);\n"
36641 #: ../src/guestfs.pod:1381
36644 #| " if (guestfs_launch (g) == -1) {\n"
36645 #| " /* Examine the error message and print it etc. */\n"
36646 #| " char *msg = guestfs_last_error (g);\n"
36647 #| " int errnum = guestfs_last_errno (g);\n"
36648 #| " fprintf (stderr, \"%s\\n\", msg);\n"
36653 " if (guestfs_launch (g) == -1) {\n"
36654 " /* Examine the error message and print it etc. */\n"
36655 " char *msg = guestfs_last_error (g);\n"
36656 " int errnum = guestfs_last_errno (g);\n"
36657 " fprintf (stderr, \"%s\", msg);\n"
36658 " if (errnum != 0)\n"
36659 " fprintf (stderr, \": %s\", strerror (errnum));\n"
36660 " fprintf (stderr, \"\\n\");\n"
36665 " if (guestfs_launch (g) == -1) {\n"
36666 " /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
36667 " char *msg = guestfs_last_error (g);\n"
36668 " int errnum = guestfs_last_errno (g);\n"
36669 " fprintf (stderr, \"%s\\n\", msg);\n"
36675 #: ../src/guestfs.pod:1392
36677 "Out of memory errors are handled differently. The default action is to call "
36678 "L<abort(3)>. If this is undesirable, then you can set a handler using L</"
36679 "guestfs_set_out_of_memory_handler>."
36683 #: ../src/guestfs.pod:1396
36685 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
36686 "because there is no handle if this happens there is no way to get additional "
36687 "error information. However L</guestfs_create> is supposed to be a "
36688 "lightweight operation which can only fail because of insufficient memory (it "
36689 "returns NULL in this case)."
36693 #: ../src/guestfs.pod:1402
36694 msgid "guestfs_last_error"
36695 msgstr "guestfs_last_error"
36698 #: ../src/guestfs.pod:1404
36701 " const char *guestfs_last_error (guestfs_h *g);\n"
36704 " const char *guestfs_last_error (guestfs_h *g);\n"
36708 #: ../src/guestfs.pod:1406
36710 "This returns the last error message that happened on C<g>. If there has not "
36711 "been an error since the handle was created, then this returns C<NULL>."
36715 #: ../src/guestfs.pod:1410
36717 "The lifetime of the returned string is until the next error occurs, or L</"
36718 "guestfs_close> is called."
36722 #: ../src/guestfs.pod:1413
36723 msgid "guestfs_last_errno"
36724 msgstr "guestfs_last_errno"
36727 #: ../src/guestfs.pod:1415
36730 " int guestfs_last_errno (guestfs_h *g);\n"
36733 " int guestfs_last_errno (guestfs_h *g);\n"
36737 #: ../src/guestfs.pod:1417
36738 msgid "This returns the last error number (errno) that happened on C<g>."
36742 #: ../src/guestfs.pod:1419
36743 msgid "If successful, an errno integer not equal to zero is returned."
36747 #: ../src/guestfs.pod:1421
36749 "If no error, this returns 0. This call can return 0 in three situations:"
36753 #: ../src/guestfs.pod:1428
36754 msgid "There has not been any error on the handle."
36758 #: ../src/guestfs.pod:1432
36760 "There has been an error but the errno was meaningless. This corresponds to "
36761 "the case where the error did not come from a failed system call, but for "
36762 "some other reason."
36766 #: ../src/guestfs.pod:1438
36768 "There was an error from a failed system call, but for some reason the errno "
36769 "was not captured and returned. This usually indicates a bug in libguestfs."
36773 #: ../src/guestfs.pod:1444
36775 "Libguestfs tries to convert the errno from inside the applicance into a "
36776 "corresponding errno for the caller (not entirely trivial: the appliance "
36777 "might be running a completely different operating system from the library "
36778 "and error numbers are not standardized across Un*xen). If this could not be "
36779 "done, then the error is translated to C<EINVAL>. In practice this should "
36780 "only happen in very rare circumstances."
36784 #: ../src/guestfs.pod:1452
36785 msgid "guestfs_set_error_handler"
36786 msgstr "guestfs_set_error_handler"
36789 #: ../src/guestfs.pod:1454
36792 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
36794 " const char *msg);\n"
36795 " void guestfs_set_error_handler (guestfs_h *g,\n"
36796 " guestfs_error_handler_cb cb,\n"
36797 " void *opaque);\n"
36800 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
36802 " const char *msg);\n"
36803 " void guestfs_set_error_handler (guestfs_h *g,\n"
36804 " guestfs_error_handler_cb cb,\n"
36805 " void *opaque);\n"
36809 #: ../src/guestfs.pod:1461
36811 "The callback C<cb> will be called if there is an error. The parameters "
36812 "passed to the callback are an opaque data pointer and the error message "
36817 #: ../src/guestfs.pod:1465
36819 "C<errno> is not passed to the callback. To get that the callback must call "
36820 "L</guestfs_last_errno>."
36824 #: ../src/guestfs.pod:1468
36826 "Note that the message string C<msg> is freed as soon as the callback "
36827 "function returns, so if you want to stash it somewhere you must make your "
36832 #: ../src/guestfs.pod:1472
36833 msgid "The default handler prints messages on C<stderr>."
36837 #: ../src/guestfs.pod:1474
36838 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
36842 #: ../src/guestfs.pod:1476
36843 msgid "guestfs_get_error_handler"
36844 msgstr "guestfs_get_error_handler"
36847 #: ../src/guestfs.pod:1478
36850 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
36851 " void **opaque_rtn);\n"
36854 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
36855 " void **opaque_rtn);\n"
36859 #: ../src/guestfs.pod:1481
36860 msgid "Returns the current error handler callback."
36864 #: ../src/guestfs.pod:1483
36865 msgid "guestfs_set_out_of_memory_handler"
36866 msgstr "guestfs_set_out_of_memory_handler"
36869 #: ../src/guestfs.pod:1485
36872 #| " typedef void (*guestfs_abort_cb) (void);\n"
36873 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36874 #| " guestfs_abort_cb);\n"
36877 " typedef void (*guestfs_abort_cb) (void);\n"
36878 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36879 " guestfs_abort_cb);\n"
36882 " typedef void (*guestfs_abort_cb) (void);\n"
36883 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36884 " guestfs_abort_cb);\n"
36888 #: ../src/guestfs.pod:1489
36890 "The callback C<cb> will be called if there is an out of memory situation. "
36891 "I<Note this callback must not return>."
36895 #: ../src/guestfs.pod:1492
36896 msgid "The default is to call L<abort(3)>."
36900 #: ../src/guestfs.pod:1494
36902 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
36906 #: ../src/guestfs.pod:1497
36907 msgid "guestfs_get_out_of_memory_handler"
36908 msgstr "guestfs_get_out_of_memory_handler"
36911 #: ../src/guestfs.pod:1499
36914 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
36917 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
36921 #: ../src/guestfs.pod:1501
36922 msgid "This returns the current out of memory handler."
36926 #: ../src/guestfs.pod:1503
36928 msgstr "ВИКЛИКИ API"
36931 #: ../src/guestfs.pod:1507
36936 #: ../src/guestfs.pod:1509
36941 #: ../src/guestfs.pod:1511
36942 msgid "AVAILABILITY"
36943 msgstr "ДОСТУПНІСТЬ"
36946 #: ../src/guestfs.pod:1513
36947 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
36948 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
36951 #: ../src/guestfs.pod:1515
36953 "Using L</guestfs_available> you can test availability of the following "
36954 "groups of functions. This test queries the appliance to see if the "
36955 "appliance you are currently using supports the functionality."
36959 #: ../src/guestfs.pod:1520
36960 msgid "@AVAILABILITY@"
36961 msgstr "@AVAILABILITY@"
36964 #: ../src/guestfs.pod:1522
36965 msgid "GUESTFISH supported COMMAND"
36969 #: ../src/guestfs.pod:1524
36971 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
36972 "prints out the available groups and whether they are supported by this build "
36973 "of libguestfs. Note however that you have to do C<run> first."
36977 #: ../src/guestfs.pod:1529
36978 msgid "SINGLE CALLS AT COMPILE TIME"
36982 #: ../src/guestfs.pod:1531
36984 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
36985 "function, such as:"
36989 #: ../src/guestfs.pod:1534
36992 " #define LIBGUESTFS_HAVE_DD 1\n"
36995 " #define LIBGUESTFS_HAVE_DD 1\n"
36999 #: ../src/guestfs.pod:1536
37000 msgid "if L</guestfs_dd> is available."
37004 #: ../src/guestfs.pod:1538
37006 "Before version 1.5.8, if you needed to test whether a single libguestfs "
37007 "function is available at compile time, we recommended using build tools such "
37008 "as autoconf or cmake. For example in autotools you could use:"
37012 #: ../src/guestfs.pod:1543
37015 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37016 " AC_CHECK_FUNCS([guestfs_dd])\n"
37019 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37020 " AC_CHECK_FUNCS([guestfs_dd])\n"
37024 #: ../src/guestfs.pod:1546
37026 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
37031 #: ../src/guestfs.pod:1549
37032 msgid "SINGLE CALLS AT RUN TIME"
37036 #: ../src/guestfs.pod:1551
37038 "Testing at compile time doesn't guarantee that a function really exists in "
37039 "the library. The reason is that you might be dynamically linked against a "
37040 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
37041 "This situation unfortunately results in a segmentation fault, which is a "
37042 "shortcoming of the C dynamic linking system itself."
37046 #: ../src/guestfs.pod:1558
37048 "You can use L<dlopen(3)> to test if a function is available at run time, as "
37049 "in this example program (note that you still need the compile time check as "
37054 #: ../src/guestfs.pod:1562
37057 " #include <stdio.h>\n"
37058 " #include <stdlib.h>\n"
37059 " #include <unistd.h>\n"
37060 " #include <dlfcn.h>\n"
37061 " #include <guestfs.h>\n"
37064 " #include <stdio.h>\n"
37065 " #include <stdlib.h>\n"
37066 " #include <unistd.h>\n"
37067 " #include <dlfcn.h>\n"
37068 " #include <guestfs.h>\n"
37072 #: ../src/guestfs.pod:1568
37077 " #ifdef LIBGUESTFS_HAVE_DD\n"
37079 " int has_function;\n"
37084 " #ifdef LIBGUESTFS_HAVE_DD\n"
37086 " int has_function;\n"
37090 #: ../src/guestfs.pod:1574
37093 " /* Test if the function guestfs_dd is really available. */\n"
37094 " dl = dlopen (NULL, RTLD_LAZY);\n"
37096 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
37097 " exit (EXIT_FAILURE);\n"
37099 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
37105 #: ../src/guestfs.pod:1583
37108 " if (!has_function)\n"
37109 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
37111 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
37112 " /* Now it's safe to call\n"
37113 " guestfs_dd (g, \"foo\", \"bar\");\n"
37117 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
37124 #: ../src/guestfs.pod:1596
37126 "You may think the above is an awful lot of hassle, and it is. There are "
37127 "other ways outside of the C linking system to ensure that this kind of "
37128 "incompatibility never arises, such as using package versioning:"
37132 #: ../src/guestfs.pod:1601
37135 " Requires: libguestfs >= 1.0.80\n"
37140 #: ../src/guestfs.pod:1603
37141 msgid "CALLS WITH OPTIONAL ARGUMENTS"
37145 #: ../src/guestfs.pod:1605
37147 "A recent feature of the API is the introduction of calls which take optional "
37148 "arguments. In C these are declared 3 ways. The main way is as a call which "
37149 "takes variable arguments (ie. C<...>), as in this example:"
37153 #: ../src/guestfs.pod:1610
37156 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37159 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37163 #: ../src/guestfs.pod:1612
37165 "Call this with a list of optional arguments, terminated by C<-1>. So to "
37166 "call with no optional arguments specified:"
37170 #: ../src/guestfs.pod:1615
37173 " guestfs_add_drive_opts (g, filename, -1);\n"
37176 " guestfs_add_drive_opts (g, filename, -1);\n"
37180 #: ../src/guestfs.pod:1617
37181 msgid "With a single optional argument:"
37185 #: ../src/guestfs.pod:1619
37188 " guestfs_add_drive_opts (g, filename,\n"
37189 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37193 " guestfs_add_drive_opts (g, filename,\n"
37194 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37199 #: ../src/guestfs.pod:1623
37204 #: ../src/guestfs.pod:1625
37207 " guestfs_add_drive_opts (g, filename,\n"
37208 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37209 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37213 " guestfs_add_drive_opts (g, filename,\n"
37214 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37215 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37220 #: ../src/guestfs.pod:1630
37222 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
37227 #: ../src/guestfs.pod:1633
37228 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
37232 #: ../src/guestfs.pod:1635
37234 "The second variant has the same name with the suffix C<_va>, which works the "
37235 "same way but takes a C<va_list>. See the C manual for details. For the "
37236 "example function, this is declared:"
37240 #: ../src/guestfs.pod:1639
37243 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37244 " va_list args);\n"
37247 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37248 " va_list args);\n"
37252 #: ../src/guestfs.pod:1642
37253 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
37257 #: ../src/guestfs.pod:1644
37259 "The third variant is useful where you need to construct these calls. You "
37260 "pass in a structure where you fill in the optional fields. The structure "
37261 "has a bitmask as the first element which you must set to indicate which "
37262 "fields you have filled in. For our example function the structure and call "
37267 #: ../src/guestfs.pod:1650
37270 " struct guestfs_add_drive_opts_argv {\n"
37271 " uint64_t bitmask;\n"
37273 " const char *format;\n"
37276 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37277 " const struct guestfs_add_drive_opts_argv *optargs);\n"
37280 " struct guestfs_add_drive_opts_argv {\n"
37281 " uint64_t bitmask;\n"
37283 " const char *format;\n"
37286 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37287 " const struct guestfs_add_drive_opts_argv *optargs);\n"
37291 #: ../src/guestfs.pod:1659
37292 msgid "You could call it like this:"
37296 #: ../src/guestfs.pod:1661
37299 " struct guestfs_add_drive_opts_argv optargs = {\n"
37300 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37301 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37302 " .readonly = 1,\n"
37303 " .format = \"qcow2\"\n"
37307 " struct guestfs_add_drive_opts_argv optargs = {\n"
37308 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37309 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37310 " .readonly = 1,\n"
37311 " .format = \"qcow2\"\n"
37316 #: ../src/guestfs.pod:1668
37319 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37322 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37326 #: ../src/guestfs.pod:1676
37327 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
37331 #: ../src/guestfs.pod:1681
37332 msgid "You do not need to fill in all fields of the structure."
37336 #: ../src/guestfs.pod:1685
37338 "There must be a one-to-one correspondence between fields of the structure "
37339 "that are filled in, and bits set in the bitmask."
37343 #: ../src/guestfs.pod:1690
37344 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
37348 #: ../src/guestfs.pod:1692
37350 "In other languages, optional arguments are expressed in the way that is "
37351 "natural for that language. We refer you to the language-specific "
37352 "documentation for more details on that."
37356 #: ../src/guestfs.pod:1696
37357 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
37361 #: ../src/guestfs.pod:1698
37362 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
37366 #: ../src/guestfs.pod:1700
37368 "B<Note:> This section documents the generic event mechanism introduced in "
37369 "libguestfs 1.10, which you should use in new code if possible. The old "
37370 "functions C<guestfs_set_log_message_callback>, "
37371 "C<guestfs_set_subprocess_quit_callback>, "
37372 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
37373 "C<guestfs_set_progress_callback> are no longer documented in this manual "
37374 "page. Because of the ABI guarantee, the old functions continue to work."
37378 #: ../src/guestfs.pod:1709
37380 "Handles generate events when certain things happen, such as log messages "
37381 "being generated, progress messages during long-running operations, or the "
37382 "handle being closed. The API calls described below let you register a "
37383 "callback to be called when events happen. You can register multiple "
37384 "callbacks (for the same, different or overlapping sets of events), and "
37385 "individually remove callbacks. If callbacks are not removed, then they "
37386 "remain in force until the handle is closed."
37390 #: ../src/guestfs.pod:1717
37392 "In the current implementation, events are only generated synchronously: that "
37393 "means that events (and hence callbacks) can only happen while you are in the "
37394 "middle of making another libguestfs call. The callback is called in the "
37399 #: ../src/guestfs.pod:1722
37401 "Events may contain a payload, usually nothing (void), an array of 64 bit "
37402 "unsigned integers, or a message buffer. Payloads are discussed later on."
37406 #: ../src/guestfs.pod:1726
37407 msgid "CLASSES OF EVENTS"
37411 #: ../src/guestfs.pod:1730
37412 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
37416 #: ../src/guestfs.pod:1733
37418 "The callback function will be called while the handle is being closed "
37419 "(synchronously from L</guestfs_close>)."
37423 #: ../src/guestfs.pod:1736
37425 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
37426 "handles that are open when the program exits. This means that this callback "
37427 "might be called indirectly from L<exit(3)>, which can cause unexpected "
37428 "problems in higher-level languages (eg. if your HLL interpreter has already "
37429 "been cleaned up by the time this is called, and if your callback then jumps "
37430 "into some HLL function)."
37434 #: ../src/guestfs.pod:1743
37436 "If no callback is registered: the handle is closed without any callback "
37441 #: ../src/guestfs.pod:1746
37442 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
37446 #: ../src/guestfs.pod:1749
37448 "The callback function will be called when the child process quits, either "
37449 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
37450 "corresponds to a transition from any state to the CONFIG state)."
37454 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
37455 msgid "If no callback is registered: the event is ignored."
37459 #: ../src/guestfs.pod:1755
37460 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
37464 #: ../src/guestfs.pod:1758
37466 "The callback function will be called when the child process becomes ready "
37467 "first time after it has been launched. (This corresponds to a transition "
37468 "from LAUNCHING to the READY state)."
37472 #: ../src/guestfs.pod:1764
37473 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
37477 #: ../src/guestfs.pod:1767
37479 "Some long-running operations can generate progress messages. If this "
37480 "callback is registered, then it will be called each time a progress message "
37481 "is generated (usually two seconds after the operation started, and three "
37482 "times per second thereafter until it completes, although the frequency may "
37483 "change in future versions)."
37487 #: ../src/guestfs.pod:1773
37489 "The callback receives in the payload four unsigned 64 bit numbers which are "
37490 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
37494 #: ../src/guestfs.pod:1776
37496 "The units of C<total> are not defined, although for some operations C<total> "
37497 "may relate in some way to the amount of data to be transferred (eg. in bytes "
37498 "or megabytes), and C<position> may be the portion which has been transferred."
37502 #: ../src/guestfs.pod:1781
37503 msgid "The only defined and stable parts of the API are:"
37507 #: ../src/guestfs.pod:1787
37509 "The callback can display to the user some type of progress bar or indicator "
37510 "which shows the ratio of C<position>:C<total>."
37514 #: ../src/guestfs.pod:1792
37515 msgid "0 E<lt>= C<position> E<lt>= C<total>"
37519 #: ../src/guestfs.pod:1796
37521 "If any progress notification is sent during a call, then a final progress "
37522 "notification is always sent when C<position> = C<total> (I<unless> the call "
37523 "fails with an error)."
37527 #: ../src/guestfs.pod:1800
37529 "This is to simplify caller code, so callers can easily set the progress "
37530 "indicator to \"100%\" at the end of the operation, without requiring special "
37531 "code to detect this case."
37535 #: ../src/guestfs.pod:1806
37537 "For some calls we are unable to estimate the progress of the call, but we "
37538 "can still generate progress messages to indicate activity. This is known as "
37539 "\"pulse mode\", and is directly supported by certain progress bar "
37540 "implementations (eg. GtkProgressBar)."
37544 #: ../src/guestfs.pod:1811
37546 "For these calls, zero or more progress messages are generated with "
37547 "C<position = 0> and C<total = 1>, followed by a final message with "
37548 "C<position = total = 1>."
37552 #: ../src/guestfs.pod:1815
37554 "As noted above, if the call fails with an error then the final message may "
37555 "not be generated."
37559 #: ../src/guestfs.pod:1820
37561 "The callback also receives the procedure number (C<proc_nr>) and serial "
37562 "number (C<serial>) of the call. These are only useful for debugging "
37563 "protocol issues, and the callback can normally ignore them. The callback "
37564 "may want to print these numbers in error messages or debugging messages."
37568 #: ../src/guestfs.pod:1826
37569 msgid "If no callback is registered: progress messages are discarded."
37573 #: ../src/guestfs.pod:1828
37574 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
37578 #: ../src/guestfs.pod:1831
37580 "The callback function is called whenever a log message is generated by qemu, "
37581 "the appliance kernel, guestfsd (daemon), or utility programs."
37585 #: ../src/guestfs.pod:1834
37587 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
37588 "guestfs_launch>) then additional debug messages are generated."
37592 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
37594 "If no callback is registered: the messages are discarded unless the verbose "
37595 "flag is set in which case they are sent to stderr. You can override the "
37596 "printing of verbose messages to stderr by setting up a callback."
37600 #: ../src/guestfs.pod:1842
37601 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
37605 #: ../src/guestfs.pod:1845
37607 "The callback function is called whenever a log message is generated by the "
37608 "library part of libguestfs."
37612 #: ../src/guestfs.pod:1848
37614 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
37615 "messages are generated."
37619 #: ../src/guestfs.pod:1856
37620 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
37624 #: ../src/guestfs.pod:1859
37626 "The callback function is called whenever a trace message is generated. This "
37627 "only applies if the trace flag (L</guestfs_set_trace>) is set."
37631 #: ../src/guestfs.pod:1862
37633 "If no callback is registered: the messages are sent to stderr. You can "
37634 "override the printing of trace messages to stderr by setting up a callback."
37638 #: ../src/guestfs.pod:1866
37639 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
37643 #: ../src/guestfs.pod:1869
37645 "The callback function is called whenever a libguestfs function is entered."
37649 #: ../src/guestfs.pod:1872
37651 "The payload is a string which contains the name of the function that we are "
37652 "entering (not including C<guestfs_> prefix)."
37656 #: ../src/guestfs.pod:1875
37658 "Note that libguestfs functions can call themselves, so you may see many "
37659 "events from a single call. A few libguestfs functions do not generate this "
37664 #: ../src/guestfs.pod:1883
37665 msgid "guestfs_set_event_callback"
37669 #: ../src/guestfs.pod:1885
37672 " int guestfs_set_event_callback (guestfs_h *g,\n"
37673 " guestfs_event_callback cb,\n"
37674 " uint64_t event_bitmask,\n"
37676 " void *opaque);\n"
37681 #: ../src/guestfs.pod:1891
37683 "This function registers a callback (C<cb>) for all event classes in the "
37684 "C<event_bitmask>."
37688 #: ../src/guestfs.pod:1894
37690 "For example, to register for all log message events, you could call this "
37691 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. "
37692 "To register a single callback for all possible classes of events, use "
37693 "C<GUESTFS_EVENT_ALL>."
37697 #: ../src/guestfs.pod:1900
37698 msgid "C<flags> should always be passed as 0."
37702 #: ../src/guestfs.pod:1902
37704 "C<opaque> is an opaque pointer which is passed to the callback. You can use "
37705 "it for any purpose."
37709 #: ../src/guestfs.pod:1905
37711 "The return value is the event handle (an integer) which you can use to "
37712 "delete the callback (see below)."
37716 #: ../src/guestfs.pod:1908
37718 "If there is an error, this function returns C<-1>, and sets the error in the "
37719 "handle in the usual way (see L</guestfs_last_error> etc.)"
37723 #: ../src/guestfs.pod:1911
37725 "Callbacks remain in effect until they are deleted, or until the handle is "
37730 #: ../src/guestfs.pod:1914
37732 "In the case where multiple callbacks are registered for a particular event "
37733 "class, all of the callbacks are called. The order in which multiple "
37734 "callbacks are called is not defined."
37738 #: ../src/guestfs.pod:1918
37739 msgid "guestfs_delete_event_callback"
37743 #: ../src/guestfs.pod:1920
37746 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
37751 #: ../src/guestfs.pod:1922
37753 "Delete a callback that was previously registered. C<event_handle> should be "
37754 "the integer that was returned by a previous call to "
37755 "C<guestfs_set_event_callback> on the same handle."
37759 #: ../src/guestfs.pod:1926
37760 msgid "guestfs_event_callback"
37764 #: ../src/guestfs.pod:1928
37767 " typedef void (*guestfs_event_callback) (\n"
37770 " uint64_t event,\n"
37771 " int event_handle,\n"
37773 " const char *buf, size_t buf_len,\n"
37774 " const uint64_t *array, size_t array_len);\n"
37779 #: ../src/guestfs.pod:1937
37781 "This is the type of the event callback function that you have to provide."
37785 #: ../src/guestfs.pod:1940
37787 "The basic parameters are: the handle (C<g>), the opaque user pointer "
37788 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
37789 "handle, and C<flags> which in the current API you should ignore."
37793 #: ../src/guestfs.pod:1944
37795 "The remaining parameters contain the event payload (if any). Each event may "
37796 "contain a payload, which usually relates to the event class, but for future "
37797 "proofing your code should be written to handle any payload for any event "
37802 #: ../src/guestfs.pod:1949
37804 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
37805 "there is no message buffer). Note that this message buffer can contain "
37806 "arbitrary 8 bit data, including NUL bytes."
37810 #: ../src/guestfs.pod:1953
37812 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
37813 "moment this is only used for progress messages."
37817 #: ../src/guestfs.pod:1956
37818 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
37822 #: ../src/guestfs.pod:1958
37824 "One motivation for the generic event API was to allow GUI programs to "
37825 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
37826 "unconditionally to C<stderr>."
37830 #: ../src/guestfs.pod:1962
37832 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
37833 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
37834 "messages are not events; you must capture error messages separately)."
37838 #: ../src/guestfs.pod:1967
37840 "Programs have to set up a callback to capture the classes of events of "
37845 #: ../src/guestfs.pod:1970
37849 " guestfs_set_event_callback\n"
37850 " (g, message_callback,\n"
37851 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
37852 " GUESTFS_EVENT_TRACE,\n"
37853 " 0, NULL) == -1)\n"
37854 " if (eh == -1) {\n"
37855 " // handle error in the usual way\n"
37861 #: ../src/guestfs.pod:1980
37863 "The callback can then direct messages to the appropriate place. In this "
37864 "example, messages are directed to syslog:"
37868 #: ../src/guestfs.pod:1983
37872 " message_callback (\n"
37875 " uint64_t event,\n"
37876 " int event_handle,\n"
37878 " const char *buf, size_t buf_len,\n"
37879 " const uint64_t *array, size_t array_len)\n"
37881 " const int priority = LOG_USER|LOG_INFO;\n"
37882 " if (buf_len > 0)\n"
37883 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
37889 #: ../src/guestfs.pod:1998
37890 msgid "CANCELLING LONG TRANSFERS"
37894 #: ../src/guestfs.pod:2000
37896 "Some operations can be cancelled by the caller while they are in progress. "
37897 "Currently only operations that involve uploading or downloading data can be "
37898 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
37899 "parameters in the generator)."
37903 #: ../src/guestfs.pod:2005
37904 msgid "guestfs_user_cancel"
37908 #: ../src/guestfs.pod:2007
37911 " void guestfs_user_cancel (guestfs_h *g);\n"
37916 #: ../src/guestfs.pod:2009
37918 "C<guestfs_user_cancel> cancels the current upload or download operation."
37922 #: ../src/guestfs.pod:2012
37924 "Unlike most other libguestfs calls, this function is signal safe and thread "
37925 "safe. You can call it from a signal handler or from another thread, without "
37926 "needing to do any locking."
37930 #: ../src/guestfs.pod:2016
37932 "The transfer that was in progress (if there is one) will stop shortly "
37933 "afterwards, and will return an error. The errno (see L</"
37934 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
37935 "out if the operation was cancelled or failed because of another error."
37939 #: ../src/guestfs.pod:2022
37941 "No cleanup is performed: for example, if a file was being uploaded then "
37942 "after cancellation there may be a partially uploaded file. It is the "
37943 "caller's responsibility to clean up if necessary."
37947 #: ../src/guestfs.pod:2026
37948 msgid "There are two common places that you might call C<guestfs_user_cancel>."
37952 #: ../src/guestfs.pod:2028
37954 "In an interactive text-based program, you might call it from a C<SIGINT> "
37955 "signal handler so that pressing C<^C> cancels the current operation. (You "
37956 "also need to call L</guestfs_set_pgroup> so that child processes don't "
37957 "receive the C<^C> signal)."
37961 #: ../src/guestfs.pod:2033
37963 "In a graphical program, when the main thread is displaying a progress bar "
37964 "with a cancel button, wire up the cancel button to call this function."
37968 #: ../src/guestfs.pod:2037
37969 msgid "PRIVATE DATA AREA"
37973 #: ../src/guestfs.pod:2039
37975 "You can attach named pieces of private data to the libguestfs handle, fetch "
37976 "them by name, and walk over them, for the lifetime of the handle. This is "
37977 "called the private data area and is only available from the C API."
37981 #: ../src/guestfs.pod:2044
37982 msgid "To attach a named piece of data, use the following call:"
37986 #: ../src/guestfs.pod:2046
37989 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
37992 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
37996 #: ../src/guestfs.pod:2048
37998 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
37999 "pointer (which can be C<NULL>). Any previous item with the same key is "
38004 #: ../src/guestfs.pod:2052
38006 "You can use any C<key> you want, but your key should I<not> start with an "
38007 "underscore character. Keys beginning with an underscore character are "
38008 "reserved for internal libguestfs purposes (eg. for implementing language "
38009 "bindings). It is recommended that you prefix the key with some unique "
38010 "string to avoid collisions with other users."
38014 #: ../src/guestfs.pod:2058
38015 msgid "To retrieve the pointer, use:"
38019 #: ../src/guestfs.pod:2060
38022 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38025 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38029 #: ../src/guestfs.pod:2062
38031 "This function returns C<NULL> if either no data is found associated with "
38032 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
38037 #: ../src/guestfs.pod:2066
38039 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
38040 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
38041 "all. In particular, libguestfs does I<not> try to free the data when the "
38042 "handle is closed. If the data must be freed, then the caller must either "
38043 "free it before calling L</guestfs_close> or must set up a close callback to "
38044 "do it (see L</GUESTFS_EVENT_CLOSE>)."
38048 #: ../src/guestfs.pod:2073
38049 msgid "To walk over all entries, use these two functions:"
38053 #: ../src/guestfs.pod:2075
38056 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
38061 #: ../src/guestfs.pod:2077
38064 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
38069 #: ../src/guestfs.pod:2079
38071 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
38072 "not have any particular meaning -- keys are not returned in any defined "
38073 "order). A pointer to the key is returned in C<*key_rtn> and the "
38074 "corresponding data pointer is returned from the function. C<NULL> is "
38075 "returned if there are no keys stored in the handle."
38079 #: ../src/guestfs.pod:2085
38081 "C<guestfs_next_private> returns the next key, pointer pair. The return "
38082 "value of this function is also C<NULL> is there are no further entries to "
38087 #: ../src/guestfs.pod:2089
38088 msgid "Notes about walking over entries:"
38092 #: ../src/guestfs.pod:2095
38094 "You must not call C<guestfs_set_private> while walking over the entries."
38098 #: ../src/guestfs.pod:2100
38100 "The handle maintains an internal iterator which is reset when you call "
38101 "C<guestfs_first_private>. This internal iterator is invalidated when you "
38102 "call C<guestfs_set_private>."
38106 #: ../src/guestfs.pod:2106
38107 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
38111 #: ../src/guestfs.pod:2108
38114 " guestfs_set_private (g, key, NULL);\n"
38119 #: ../src/guestfs.pod:2110
38120 msgid "then that C<key> is not returned when walking."
38124 #: ../src/guestfs.pod:2114
38126 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
38127 "C<guestfs_next_private> or C<guestfs_set_private>."
38131 #: ../src/guestfs.pod:2120
38133 "The following example code shows how to print all keys and data pointers "
38134 "that are associated with the handle C<g>:"
38138 #: ../src/guestfs.pod:2123
38141 " const char *key;\n"
38142 " void *data = guestfs_first_private (g, &key);\n"
38143 " while (data != NULL)\n"
38145 " printf (\"key = %s, data = %p\\n\", key, data);\n"
38146 " data = guestfs_next_private (g, &key);\n"
38152 #: ../src/guestfs.pod:2131
38154 "More commonly you are only interested in keys that begin with an application-"
38155 "specific prefix C<foo_>. Modify the loop like so:"
38159 #: ../src/guestfs.pod:2134
38162 " const char *key;\n"
38163 " void *data = guestfs_first_private (g, &key);\n"
38164 " while (data != NULL)\n"
38166 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38167 " printf (\"key = %s, data = %p\\n\", key, data);\n"
38168 " data = guestfs_next_private (g, &key);\n"
38174 #: ../src/guestfs.pod:2143
38176 "If you need to modify keys while walking, then you have to jump back to the "
38177 "beginning of the loop. For example, to delete all keys prefixed with "
38182 #: ../src/guestfs.pod:2147
38185 " const char *key;\n"
38188 " data = guestfs_first_private (g, &key);\n"
38189 " while (data != NULL)\n"
38191 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38193 " guestfs_set_private (g, key, NULL);\n"
38194 " /* note that 'key' pointer is now invalid, and so is\n"
38195 " the internal iterator */\n"
38198 " data = guestfs_next_private (g, &key);\n"
38204 #: ../src/guestfs.pod:2163
38206 "Note that the above loop is guaranteed to terminate because the keys are "
38207 "being deleted, but other manipulations of keys within the loop might not "
38208 "terminate unless you also maintain an indication of which keys have been "
38213 #: ../src/guestfs.pod:2168 ../src/guestfs.pod:2173
38218 #: ../src/guestfs.pod:2170
38220 "<!-- old anchor for the next section --> <a name="
38221 "\"state_machine_and_low_level_event_api\"/>"
38223 "<!-- old anchor for the next section --> <a name="
38224 "\"state_machine_and_low_level_event_api\"/>"
38227 #: ../src/guestfs.pod:2175
38228 msgid "ARCHITECTURE"
38229 msgstr "АРХІТЕКТУРА"
38232 #: ../src/guestfs.pod:2177
38234 "Internally, libguestfs is implemented by running an appliance (a special "
38235 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
38236 "process of the main program."
38240 #: ../src/guestfs.pod:2181
38243 " ___________________\n"
38245 " | main program |\n"
38247 " | | child process / appliance\n"
38248 " | | __________________________\n"
38250 " +-------------------+ RPC | +-----------------+ |\n"
38251 " | libguestfs <--------------------> guestfsd | |\n"
38252 " | | | +-----------------+ |\n"
38253 " \\___________________/ | | Linux kernel | |\n"
38254 " | +--^--------------+ |\n"
38255 " \\_________|________________/\n"
38257 " _______v______\n"
38260 " | disk image |\n"
38261 " \\______________/\n"
38266 #: ../src/guestfs.pod:2201
38268 "The library, linked to the main program, creates the child process and hence "
38269 "the appliance in the L</guestfs_launch> function."
38273 #: ../src/guestfs.pod:2204
38275 "Inside the appliance is a Linux kernel and a complete stack of userspace "
38276 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
38277 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
38278 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
38279 "API calls and RPC calls to the daemon. Lastly the disk image(s) are "
38280 "attached to the qemu process which translates device access by the "
38281 "appliance's Linux kernel into accesses to the image."
38285 #: ../src/guestfs.pod:2213
38287 "A common misunderstanding is that the appliance \"is\" the virtual machine. "
38288 "Although the disk image you are attached to might also be used by some "
38289 "virtual machine, libguestfs doesn't know or care about this. (But you will "
38290 "care if both libguestfs's qemu process and your virtual machine are trying "
38291 "to update the disk image at the same time, since these usually results in "
38292 "massive disk corruption)."
38296 #: ../src/guestfs.pod:2220
38297 msgid "STATE MACHINE"
38298 msgstr "СКІНЧЕННИЙ АВТОМАТ"
38301 #: ../src/guestfs.pod:2222
38302 msgid "libguestfs uses a state machine to model the child process:"
38306 #: ../src/guestfs.pod:2224
38310 " guestfs_create\n"
38318 " / | \\ \\ guestfs_launch\n"
38319 " / | _\\__V______\n"
38321 " / | | LAUNCHING |\n"
38322 " / | \\___________/\n"
38324 " / | guestfs_launch\n"
38326 " ______ / __|____V\n"
38327 " / \\ ------> / \\\n"
38328 " | BUSY | | READY |\n"
38329 " \\______/ <------ \\________/\n"
38334 #: ../src/guestfs.pod:2246
38336 "The normal transitions are (1) CONFIG (when the handle is created, but there "
38337 "is no child process), (2) LAUNCHING (when the child process is booting up), "
38338 "(3) alternating between READY and BUSY as commands are issued to, and "
38339 "carried out by, the child process."
38343 #: ../src/guestfs.pod:2251
38345 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
38346 "asynchronously at any time (eg. due to some internal error), and that causes "
38347 "the state to transition back to CONFIG."
38351 #: ../src/guestfs.pod:2255
38353 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
38354 "issued when in the CONFIG state."
38358 #: ../src/guestfs.pod:2258
38360 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
38361 "L</guestfs_launch> blocks until the child process is READY to accept "
38362 "commands (or until some failure or timeout). L</guestfs_launch> internally "
38363 "moves the state from CONFIG to LAUNCHING while it is running."
38367 #: ../src/guestfs.pod:2264
38369 "API actions such as L</guestfs_mount> can only be issued when in the READY "
38370 "state. These API calls block waiting for the command to be carried out (ie. "
38371 "the state to transition to BUSY and then back to READY). There are no non-"
38372 "blocking versions, and no way to issue more than one command per handle at "
38377 #: ../src/guestfs.pod:2270
38379 "Finally, the child process sends asynchronous messages back to the main "
38380 "program, such as kernel log messages. You can register a callback to "
38381 "receive these messages."
38385 #: ../src/guestfs.pod:2274
38390 #: ../src/guestfs.pod:2276
38391 msgid "APPLIANCE BOOT PROCESS"
38395 #: ../src/guestfs.pod:2278
38397 "This process has evolved and continues to evolve. The description here "
38398 "corresponds only to the current version of libguestfs and is provided for "
38399 "information only."
38403 #: ../src/guestfs.pod:2282
38405 "In order to follow the stages involved below, enable libguestfs debugging "
38406 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
38410 #: ../src/guestfs.pod:2287
38412 #| msgid "C<appliance>"
38413 msgid "Create the appliance"
38414 msgstr "C<appliance>"
38417 #: ../src/guestfs.pod:2289
38419 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
38420 "initrd and the appliance."
38424 #: ../src/guestfs.pod:2292
38426 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
38427 "directory if C<TMPDIR> is set)."
38431 #: ../src/guestfs.pod:2295
38433 "For a complete description of how the appliance is created and cached, read "
38434 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
38438 #: ../src/guestfs.pod:2299
38439 msgid "Start qemu and boot the kernel"
38443 #: ../src/guestfs.pod:2301
38444 msgid "qemu is invoked to boot the kernel."
38448 #: ../src/guestfs.pod:2303
38449 msgid "Run the initrd"
38453 #: ../src/guestfs.pod:2305
38455 "C<febootstrap-supermin-helper> builds a small initrd. The initrd is not the "
38456 "appliance. The purpose of the initrd is to load enough kernel modules in "
38457 "order that the appliance itself can be mounted and started."
38461 #: ../src/guestfs.pod:2309
38463 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
38468 #: ../src/guestfs.pod:2312
38470 "When the initrd has started you will see messages showing that kernel "
38471 "modules are being loaded, similar to this:"
38475 #: ../src/guestfs.pod:2315
38478 " febootstrap: ext2 mini initrd starting up\n"
38479 " febootstrap: mounting /sys\n"
38480 " febootstrap: internal insmod libcrc32c.ko\n"
38481 " febootstrap: internal insmod crc32c-intel.ko\n"
38486 #: ../src/guestfs.pod:2320
38487 msgid "Find and mount the appliance device"
38491 #: ../src/guestfs.pod:2322
38493 "The appliance is a sparse file containing an ext2 filesystem which contains "
38494 "a familiar (although reduced in size) Linux operating system. It would "
38495 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
38499 #: ../src/guestfs.pod:2326
38501 "The regular disks being inspected by libguestfs are the first devices "
38502 "exposed by qemu (eg. as C</dev/vda>)."
38506 #: ../src/guestfs.pod:2329
38508 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
38509 "there was only one regular disk)."
38513 #: ../src/guestfs.pod:2332
38515 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
38516 "and switch root into the appliance, and run C</init> from the appliance."
38520 #: ../src/guestfs.pod:2336
38521 msgid "If this works successfully you will see messages such as:"
38525 #: ../src/guestfs.pod:2338
38528 " febootstrap: picked /sys/block/vdb/dev as root device\n"
38529 " febootstrap: creating /dev/root as block special 252:16\n"
38530 " febootstrap: mounting new root on /root\n"
38531 " febootstrap: chroot\n"
38532 " Starting /init script ...\n"
38537 #: ../src/guestfs.pod:2344
38539 "Note that C<Starting /init script ...> indicates that the appliance's init "
38540 "script is now running."
38544 #: ../src/guestfs.pod:2347
38545 msgid "Initialize the appliance"
38549 #: ../src/guestfs.pod:2349
38551 "The appliance itself now initializes itself. This involves starting certain "
38552 "processes like C<udev>, possibly printing some debug information, and "
38553 "finally running the daemon (C<guestfsd>)."
38557 #: ../src/guestfs.pod:2353
38559 #| msgid "C<daemon>"
38564 #: ../src/guestfs.pod:2355
38566 "Finally the daemon (C<guestfsd>) runs inside the appliance. If it runs you "
38571 #: ../src/guestfs.pod:2358
38574 #| " set-verbose true|false\n"
38577 " verbose daemon enabled\n"
38580 " set-verbose true|false\n"
38584 #: ../src/guestfs.pod:2360
38586 "The daemon expects to see a named virtio-serial port exposed by qemu and "
38587 "connected on the other end to the library."
38591 #: ../src/guestfs.pod:2363
38593 "The daemon connects to this port (and hence to the library) and sends a four "
38594 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
38595 "protocol (see below)."
38599 #: ../src/guestfs.pod:2369
38600 msgid "COMMUNICATION PROTOCOL"
38604 #: ../src/guestfs.pod:2371
38606 "Don't rely on using this protocol directly. This section documents how it "
38607 "currently works, but it may change at any time."
38611 #: ../src/guestfs.pod:2374
38613 "The protocol used to talk between the library and the daemon running inside "
38614 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
38615 "1014, RFC 1832, RFC 4506)."
38619 #: ../src/guestfs.pod:2378
38621 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
38622 "this file is automatically generated)."
38626 #: ../src/guestfs.pod:2381
38628 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
38629 "and C<FileOut> parameters, which are handled with very simple request/reply "
38630 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
38631 "parameters, which use the same request and reply messages, but they may also "
38632 "be followed by files sent using a chunked encoding."
38636 #: ../src/guestfs.pod:2388
38637 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
38641 #: ../src/guestfs.pod:2390
38642 msgid "For ordinary functions, the request message is:"
38646 #: ../src/guestfs.pod:2392
38649 " total length (header + arguments,\n"
38650 " but not including the length word itself)\n"
38651 " struct guestfs_message_header (encoded as XDR)\n"
38652 " struct guestfs_<foo>_args (encoded as XDR)\n"
38657 #: ../src/guestfs.pod:2397
38659 "The total length field allows the daemon to allocate a fixed size buffer "
38660 "into which it slurps the rest of the message. As a result, the total length "
38661 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
38662 "effective size of any request is limited to somewhere under this size."
38666 #: ../src/guestfs.pod:2403
38668 "Note also that many functions don't take any arguments, in which case the "
38669 "C<guestfs_I<foo>_args> is completely omitted."
38673 #: ../src/guestfs.pod:2406
38675 "The header contains the procedure number (C<guestfs_proc>) which is how the "
38676 "receiver knows what type of args structure to expect, or none at all."
38680 #: ../src/guestfs.pod:2410
38682 "For functions that take optional arguments, the optional arguments are "
38683 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
38684 "arguments. A bitmask in the header indicates which optional arguments are "
38685 "meaningful. The bitmask is also checked to see if it contains bits set "
38686 "which the daemon does not know about (eg. if more optional arguments were "
38687 "added in a later version of the library), and this causes the call to be "
38692 #: ../src/guestfs.pod:2418
38693 msgid "The reply message for ordinary functions is:"
38697 #: ../src/guestfs.pod:2420
38700 " total length (header + ret,\n"
38701 " but not including the length word itself)\n"
38702 " struct guestfs_message_header (encoded as XDR)\n"
38703 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38708 #: ../src/guestfs.pod:2425
38710 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
38711 "functions that return no formal return values."
38715 #: ../src/guestfs.pod:2428
38717 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
38721 #: ../src/guestfs.pod:2431
38723 "In the case of an error, a flag is set in the header, and the reply message "
38724 "is slightly changed:"
38728 #: ../src/guestfs.pod:2434
38731 " total length (header + error,\n"
38732 " but not including the length word itself)\n"
38733 " struct guestfs_message_header (encoded as XDR)\n"
38734 " struct guestfs_message_error (encoded as XDR)\n"
38739 #: ../src/guestfs.pod:2439
38741 "The C<guestfs_message_error> structure contains the error message as a "
38746 #: ../src/guestfs.pod:2442
38747 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
38751 #: ../src/guestfs.pod:2444
38753 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
38754 "The normal request message is sent (see above). However this is followed by "
38755 "a sequence of file chunks."
38759 #: ../src/guestfs.pod:2448
38762 " total length (header + arguments,\n"
38763 " but not including the length word itself,\n"
38764 " and not including the chunks)\n"
38765 " struct guestfs_message_header (encoded as XDR)\n"
38766 " struct guestfs_<foo>_args (encoded as XDR)\n"
38767 " sequence of chunks for FileIn param #0\n"
38768 " sequence of chunks for FileIn param #1 etc.\n"
38773 #: ../src/guestfs.pod:2456
38774 msgid "The \"sequence of chunks\" is:"
38778 #: ../src/guestfs.pod:2458
38781 " length of chunk (not including length word itself)\n"
38782 " struct guestfs_chunk (encoded as XDR)\n"
38783 " length of chunk\n"
38784 " struct guestfs_chunk (encoded as XDR)\n"
38786 " length of chunk\n"
38787 " struct guestfs_chunk (with data.data_len == 0)\n"
38792 #: ../src/guestfs.pod:2466
38794 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
38795 "is set in the final chunk to indicate either successful completion or early "
38800 #: ../src/guestfs.pod:2470
38802 "At time of writing there are no functions that have more than one FileIn "
38803 "parameter. However this is (theoretically) supported, by sending the "
38804 "sequence of chunks for each FileIn parameter one after another (from left to "
38809 #: ../src/guestfs.pod:2475
38811 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
38812 "transfer. The library does this by sending a chunk with a special flag set "
38813 "to indicate cancellation. When the daemon sees this, it cancels the whole "
38814 "RPC, does I<not> send any reply, and goes back to reading the next request."
38818 #: ../src/guestfs.pod:2481
38820 "The daemon may also cancel. It does this by writing a special word "
38821 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
38822 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
38823 "cancel chunk). The special word is chosen so that even if cancellation "
38824 "happens right at the end of the transfer (after the library has finished "
38825 "writing and has started listening for the reply), the \"spurious\" cancel "
38826 "flag will not be confused with the reply message."
38830 #: ../src/guestfs.pod:2490
38832 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
38833 "limit), and also files where the size is not known in advance (eg. from "
38834 "pipes or sockets). However the chunks are rather small "
38835 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
38836 "to keep much in memory."
38840 #: ../src/guestfs.pod:2496
38841 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
38845 #: ../src/guestfs.pod:2498
38847 "The protocol for FileOut parameters is exactly the same as for FileIn "
38848 "parameters, but with the roles of daemon and library reversed."
38852 #: ../src/guestfs.pod:2501
38855 " total length (header + ret,\n"
38856 " but not including the length word itself,\n"
38857 " and not including the chunks)\n"
38858 " struct guestfs_message_header (encoded as XDR)\n"
38859 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38860 " sequence of chunks for FileOut param #0\n"
38861 " sequence of chunks for FileOut param #1 etc.\n"
38866 #: ../src/guestfs.pod:2509
38867 msgid "INITIAL MESSAGE"
38871 #: ../src/guestfs.pod:2511
38873 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
38874 "which indicates that the guest and daemon is alive. This is what L</"
38875 "guestfs_launch> waits for."
38879 #: ../src/guestfs.pod:2515
38880 msgid "PROGRESS NOTIFICATION MESSAGES"
38884 #: ../src/guestfs.pod:2517
38886 "The daemon may send progress notification messages at any time. These are "
38887 "distinguished by the normal length word being replaced by "
38888 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
38892 #: ../src/guestfs.pod:2521
38894 "The library turns them into progress callbacks (see L</"
38895 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
38900 #: ../src/guestfs.pod:2525
38902 "The daemon self-limits the frequency of progress messages it sends (see "
38903 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
38908 #: ../src/guestfs.pod:2529
38909 msgid "LIBGUESTFS VERSION NUMBERS"
38913 #: ../src/guestfs.pod:2531
38915 "Since April 2010, libguestfs has started to make separate development and "
38916 "stable releases, along with corresponding branches in our git repository. "
38917 "These separate releases can be identified by version number:"
38921 #: ../src/guestfs.pod:2536
38924 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
38925 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
38931 " | `-------- sub-version\n"
38933 " `------ always '1' because we don't change the ABI\n"
38938 #: ../src/guestfs.pod:2547
38939 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
38943 #: ../src/guestfs.pod:2549
38945 "As time passes we cherry pick fixes from the development branch and backport "
38946 "those into the stable branch, the effect being that the stable branch should "
38947 "get more stable and less buggy over time. So the stable releases are ideal "
38948 "for people who don't need new features but would just like the software to "
38953 #: ../src/guestfs.pod:2555
38954 msgid "Our criteria for backporting changes are:"
38958 #: ../src/guestfs.pod:2561
38960 "Documentation changes which don't affect any code are backported unless the "
38961 "documentation refers to a future feature which is not in stable."
38965 #: ../src/guestfs.pod:2567
38967 "Bug fixes which are not controversial, fix obvious problems, and have been "
38968 "well tested are backported."
38972 #: ../src/guestfs.pod:2572
38974 "Simple rearrangements of code which shouldn't affect how it works get "
38975 "backported. This is so that the code in the two branches doesn't get too "
38976 "far out of step, allowing us to backport future fixes more easily."
38980 #: ../src/guestfs.pod:2578
38982 "We I<don't> backport new features, new APIs, new tools etc, except in one "
38983 "exceptional case: the new feature is required in order to implement an "
38984 "important bug fix."
38988 #: ../src/guestfs.pod:2584
38990 "A new stable branch starts when we think the new features in development are "
38991 "substantial and compelling enough over the current stable branch to warrant "
38992 "it. When that happens we create new stable and development versions 1.N.0 "
38993 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
38994 "stable at this point, but by backporting fixes from development, that branch "
38995 "will stabilize over time."
38999 #: ../src/guestfs.pod:2592
39000 msgid "EXTENDING LIBGUESTFS"
39004 #: ../src/guestfs.pod:2594
39005 msgid "ADDING A NEW API ACTION"
39009 #: ../src/guestfs.pod:2596
39011 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
39012 "documentation) are generated, and this makes it easy to extend the "
39017 #: ../src/guestfs.pod:2600
39018 msgid "To add a new API action there are two changes:"
39022 #: ../src/guestfs.pod:2606
39024 "You need to add a description of the call (name, parameters, return type, "
39025 "tests, documentation) to C<generator/generator_actions.ml>."
39029 #: ../src/guestfs.pod:2609
39031 "There are two sorts of API action, depending on whether the call goes "
39032 "through to the daemon in the appliance, or is serviced entirely by the "
39033 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
39034 "former, since the sync is done in the appliance. L</guestfs_set_trace> is "
39035 "an example of the latter, since a trace flag is maintained in the handle and "
39036 "all tracing is done on the library side."
39040 #: ../src/guestfs.pod:2617
39042 "Most new actions are of the first type, and get added to the "
39043 "C<daemon_functions> list. Each function has a unique procedure number used "
39044 "in the RPC protocol which is assigned to that action when we publish "
39045 "libguestfs and cannot be reused. Take the latest procedure number and "
39050 #: ../src/guestfs.pod:2623
39052 "For library-only actions of the second type, add to the "
39053 "C<non_daemon_functions> list. Since these functions are serviced by the "
39054 "library and do not travel over the RPC mechanism to the daemon, these "
39055 "functions do not need a procedure number, and so the procedure number is set "
39060 #: ../src/guestfs.pod:2631
39061 msgid "Implement the action (in C):"
39065 #: ../src/guestfs.pod:2633
39067 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
39068 "C<daemon/> directory."
39072 #: ../src/guestfs.pod:2636
39074 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
39075 "(note: double underscore) in the C<src/> directory."
39079 #: ../src/guestfs.pod:2639
39080 msgid "In either case, use another function as an example of what to do."
39084 #: ../src/guestfs.pod:2643
39085 msgid "After making these changes, use C<make> to compile."
39089 #: ../src/guestfs.pod:2645
39091 "Note that you don't need to implement the RPC, language bindings, manual "
39092 "pages or anything else. It's all automatically generated from the OCaml "
39097 #: ../src/guestfs.pod:2649
39098 msgid "ADDING TESTS FOR AN API ACTION"
39102 #: ../src/guestfs.pod:2651
39104 "You can supply zero or as many tests as you want per API call. The tests "
39105 "can either be added as part of the API description (C<generator/"
39106 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
39107 "into C<regressions/>. Note that adding a script to C<regressions/> is "
39108 "slower, so if possible use the first method."
39112 #: ../src/guestfs.pod:2657
39114 "The following describes the test environment used when you add an API test "
39115 "in C<generator_actions.ml>."
39119 #: ../src/guestfs.pod:2660
39120 msgid "The test environment has 4 block devices:"
39124 #: ../src/guestfs.pod:2664
39125 msgid "C</dev/sda> 500MB"
39126 msgstr "C</dev/sda> 500 МБ"
39129 #: ../src/guestfs.pod:2666
39130 msgid "General block device for testing."
39134 #: ../src/guestfs.pod:2668
39135 msgid "C</dev/sdb> 50MB"
39136 msgstr "C</dev/sdb> 50 МБ"
39139 #: ../src/guestfs.pod:2670
39141 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
39146 #: ../src/guestfs.pod:2673
39147 msgid "C</dev/sdc> 10MB"
39148 msgstr "C</dev/sdc> 10 МБ"
39151 #: ../src/guestfs.pod:2675
39152 msgid "Used in a few tests where two block devices are needed."
39156 #: ../src/guestfs.pod:2677
39157 msgid "C</dev/sdd>"
39158 msgstr "C</dev/sdd>"
39161 #: ../src/guestfs.pod:2679
39162 msgid "ISO with fixed content (see C<images/test.iso>)."
39166 #: ../src/guestfs.pod:2683
39168 "To be able to run the tests in a reasonable amount of time, the libguestfs "
39169 "appliance and block devices are reused between tests. So don't try testing "
39170 "L</guestfs_kill_subprocess> :-x"
39174 #: ../src/guestfs.pod:2687
39176 "Each test starts with an initial scenario, selected using one of the "
39177 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
39178 "initialize the disks mentioned above in a particular way as documented in "
39179 "C<generator_types.ml>. You should not assume anything about the previous "
39180 "contents of other disks that are not initialized."
39184 #: ../src/guestfs.pod:2693
39186 "You can add a prerequisite clause to any individual test. This is a run-"
39187 "time check, which, if it fails, causes the test to be skipped. Useful if "
39188 "testing a command which might not work on all variations of libguestfs "
39189 "builds. A test that has prerequisite of C<Always> means to run "
39194 #: ../src/guestfs.pod:2699
39196 "In addition, packagers can skip individual tests by setting environment "
39197 "variables before running C<make check>."
39201 #: ../src/guestfs.pod:2702
39204 " SKIP_TEST_<CMD>_<NUM>=1\n"
39209 #: ../src/guestfs.pod:2704
39210 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
39214 #: ../src/guestfs.pod:2706
39219 #: ../src/guestfs.pod:2708
39222 " SKIP_TEST_<CMD>=1\n"
39227 #: ../src/guestfs.pod:2710
39228 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
39232 #: ../src/guestfs.pod:2712
39233 msgid "Packagers can run only certain tests by setting for example:"
39237 #: ../src/guestfs.pod:2714
39240 " TEST_ONLY=\"vfs_type zerofree\"\n"
39245 #: ../src/guestfs.pod:2716
39247 "See C<capitests/tests.c> for more details of how these environment variables "
39252 #: ../src/guestfs.pod:2719
39253 msgid "DEBUGGING NEW API ACTIONS"
39257 #: ../src/guestfs.pod:2721
39258 msgid "Test new actions work before submitting them."
39262 #: ../src/guestfs.pod:2723
39263 msgid "You can use guestfish to try out new commands."
39267 #: ../src/guestfs.pod:2725
39269 "Debugging the daemon is a problem because it runs inside a minimal "
39270 "environment. However you can fprintf messages in the daemon to stderr, and "
39271 "they will show up if you use C<guestfish -v>."
39275 #: ../src/guestfs.pod:2729
39276 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
39280 #: ../src/guestfs.pod:2731
39282 "Our C source code generally adheres to some basic code-formatting "
39283 "conventions. The existing code base is not totally consistent on this "
39284 "front, but we do prefer that contributed code be formatted similarly. In "
39285 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
39286 "indentation level, and other than that, follow the K&R style."
39290 #: ../src/guestfs.pod:2737
39292 "If you use Emacs, add the following to one of one of your start-up files (e."
39293 "g., ~/.emacs), to help ensure that you get indentation right:"
39297 #: ../src/guestfs.pod:2740
39300 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
39301 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
39302 " (add-hook 'find-file-hook\n"
39303 " '(lambda () (if (and buffer-file-name\n"
39304 " (string-match \"/libguestfs\\\\>\"\n"
39305 " (buffer-file-name))\n"
39306 " (not (string-equal mode-name \"Change Log\"))\n"
39307 " (not (string-equal mode-name \"Makefile\")))\n"
39308 " (setq indent-tabs-mode nil))))\n"
39313 #: ../src/guestfs.pod:2750
39316 " ;;; When editing C sources in libguestfs, use this style.\n"
39317 " (defun libguestfs-c-mode ()\n"
39318 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
39320 " (c-set-style \"K&R\")\n"
39321 " (setq c-indent-level 2)\n"
39322 " (setq c-basic-offset 2))\n"
39323 " (add-hook 'c-mode-hook\n"
39324 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
39325 " (buffer-file-name))\n"
39326 " (libguestfs-c-mode))))\n"
39331 #: ../src/guestfs.pod:2762
39332 msgid "Enable warnings when compiling (and fix any problems this finds):"
39336 #: ../src/guestfs.pod:2765
39339 " ./configure --enable-gcc-warnings\n"
39342 " ./configure --enable-gcc-warnings\n"
39346 #: ../src/guestfs.pod:2767
39347 msgid "Useful targets are:"
39351 #: ../src/guestfs.pod:2769
39354 " make syntax-check # checks the syntax of the C code\n"
39355 " make check # runs the test suite\n"
39360 #: ../src/guestfs.pod:2772
39361 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
39365 #: ../src/guestfs.pod:2774
39367 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
39368 "which are used to do shell quoting."
39372 #: ../src/guestfs.pod:2779
39377 #: ../src/guestfs.pod:2781
39379 "Simple shell quoted string. Any spaces or other shell characters are "
39384 #: ../src/guestfs.pod:2784
39389 #: ../src/guestfs.pod:2786
39391 "Same as C<%Q> except the string is treated as a path which is prefixed by "
39396 #: ../src/guestfs.pod:2793
39399 " asprintf (&cmd, \"cat %R\", path);\n"
39404 #: ../src/guestfs.pod:2795
39405 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
39409 #: ../src/guestfs.pod:2797
39411 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
39412 "{,r,v,rv}()> functions. These parameters do NOT need to be quoted because "
39413 "they are not passed via the shell (instead, straight to exec). You probably "
39414 "want to use the C<sysroot_path()> function however."
39418 #: ../src/guestfs.pod:2803
39419 msgid "SUBMITTING YOUR NEW API ACTIONS"
39423 #: ../src/guestfs.pod:2805
39425 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
39426 "libguestfs> and CC to L<rjones@redhat.com>."
39430 #: ../src/guestfs.pod:2809
39431 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
39435 #: ../src/guestfs.pod:2811
39436 msgid "We support i18n (gettext anyhow) in the library."
39440 #: ../src/guestfs.pod:2813
39442 "However many messages come from the daemon, and we don't translate those at "
39443 "the moment. One reason is that the appliance generally has all locale files "
39444 "removed from it, because they take up a lot of space. So we'd have to readd "
39445 "some of those, as well as copying our PO files into the appliance."
39449 #: ../src/guestfs.pod:2819
39451 "Debugging messages are never translated, since they are intended for the "
39456 #: ../src/guestfs.pod:2822
39457 msgid "SOURCE CODE SUBDIRECTORIES"
39461 #: ../src/guestfs.pod:2826
39466 #: ../src/guestfs.pod:2828
39467 msgid "L<virt-alignment-scan(1)> command and documentation."
39471 #: ../src/guestfs.pod:2832
39472 msgid "The libguestfs appliance, build scripts and so on."
39476 #: ../src/guestfs.pod:2834
39477 msgid "C<capitests>"
39478 msgstr "C<capitests>"
39481 #: ../src/guestfs.pod:2836
39482 msgid "Automated tests of the C API."
39486 #: ../src/guestfs.pod:2838
39491 #: ../src/guestfs.pod:2840
39493 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
39498 #: ../src/guestfs.pod:2843
39503 #: ../src/guestfs.pod:2845
39505 "Safety and liveness tests of components that libguestfs depends upon (not of "
39506 "libguestfs itself). Mainly this is for qemu and the kernel."
39510 #: ../src/guestfs.pod:2848
39512 msgstr "C<contrib>"
39515 #: ../src/guestfs.pod:2850
39516 msgid "Outside contributions, experimental parts."
39520 #: ../src/guestfs.pod:2852
39525 #: ../src/guestfs.pod:2854
39527 "The daemon that runs inside the libguestfs appliance and carries out actions."
39531 #: ../src/guestfs.pod:2857
39536 #: ../src/guestfs.pod:2859
39537 msgid "L<virt-df(1)> command and documentation."
39541 #: ../src/guestfs.pod:2861
39546 #: ../src/guestfs.pod:2863
39547 msgid "L<virt-edit(1)> command and documentation."
39551 #: ../src/guestfs.pod:2865
39552 msgid "C<examples>"
39553 msgstr "C<examples>"
39556 #: ../src/guestfs.pod:2867
39557 msgid "C API example code."
39558 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
39561 #: ../src/guestfs.pod:2869
39566 #: ../src/guestfs.pod:2871
39568 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
39569 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
39570 "L<virt-tar-out(1)>."
39574 #: ../src/guestfs.pod:2875
39579 #: ../src/guestfs.pod:2877
39581 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
39585 #: ../src/guestfs.pod:2879
39586 msgid "C<generator>"
39587 msgstr "C<generator>"
39590 #: ../src/guestfs.pod:2881
39592 "The crucially important generator, used to automatically generate large "
39593 "amounts of boilerplate C code for things like RPC and bindings."
39597 #: ../src/guestfs.pod:2884
39602 #: ../src/guestfs.pod:2886
39603 msgid "Files used by the test suite."
39607 #: ../src/guestfs.pod:2888
39608 msgid "Some \"phony\" guest images which we test against."
39612 #: ../src/guestfs.pod:2890
39613 msgid "C<inspector>"
39614 msgstr "C<inspector>"
39617 #: ../src/guestfs.pod:2892
39618 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
39622 #: ../src/guestfs.pod:2894
39627 #: ../src/guestfs.pod:2896
39628 msgid "Logo used on the website. The fish is called Arthur by the way."
39632 #: ../src/guestfs.pod:2898
39637 #: ../src/guestfs.pod:2900
39638 msgid "M4 macros used by autoconf."
39642 #: ../src/guestfs.pod:2902
39647 #: ../src/guestfs.pod:2904
39648 msgid "Translations of simple gettext strings."
39649 msgstr "Переклади простих рядків gettext."
39652 #: ../src/guestfs.pod:2906
39654 msgstr "C<po-docs>"
39657 #: ../src/guestfs.pod:2908
39659 "The build infrastructure and PO files for translations of manpages and POD "
39660 "files. Eventually this will be combined with the C<po> directory, but that "
39661 "is rather complicated."
39665 #: ../src/guestfs.pod:2912
39666 msgid "C<regressions>"
39667 msgstr "C<regressions>"
39670 #: ../src/guestfs.pod:2914
39671 msgid "Regression tests."
39672 msgstr "Тести на регресії."
39675 #: ../src/guestfs.pod:2916
39680 #: ../src/guestfs.pod:2918
39681 msgid "L<virt-rescue(1)> command and documentation."
39685 #: ../src/guestfs.pod:2920
39687 #| msgid "C<rescue>"
39692 #: ../src/guestfs.pod:2922
39693 msgid "L<virt-resize(1)> command and documentation."
39697 #: ../src/guestfs.pod:2924
39698 msgid "C<sparsify>"
39702 #: ../src/guestfs.pod:2926
39703 msgid "L<virt-sparsify(1)> command and documentation."
39707 #: ../src/guestfs.pod:2928
39712 #: ../src/guestfs.pod:2930
39713 msgid "Source code to the C library."
39717 #: ../src/guestfs.pod:2932
39722 #: ../src/guestfs.pod:2934
39724 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
39728 #: ../src/guestfs.pod:2936
39729 msgid "C<test-tool>"
39730 msgstr "C<test-tool>"
39733 #: ../src/guestfs.pod:2938
39735 "Test tool for end users to test if their qemu/kernel combination will work "
39740 #: ../src/guestfs.pod:2941
39745 #: ../src/guestfs.pod:2943
39750 #: ../src/guestfs.pod:2945
39752 msgstr "C<haskell>"
39755 #: ../src/guestfs.pod:2947
39760 #: ../src/guestfs.pod:2949
39765 #: ../src/guestfs.pod:2951
39770 #: ../src/guestfs.pod:2953
39775 #: ../src/guestfs.pod:2955
39780 #: ../src/guestfs.pod:2957
39785 #: ../src/guestfs.pod:2959
39786 msgid "Language bindings."
39787 msgstr "Прив’язки до мов програмування."
39790 #: ../src/guestfs.pod:2963
39791 msgid "MAKING A STABLE RELEASE"
39795 #: ../src/guestfs.pod:2965
39797 "When we make a stable release, there are several steps documented here. See "
39798 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
39803 #: ../src/guestfs.pod:2973
39805 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
39809 #: ../src/guestfs.pod:2978
39810 msgid "Finalize RELEASE-NOTES."
39814 #: ../src/guestfs.pod:2982
39815 msgid "Update ROADMAP."
39819 #: ../src/guestfs.pod:2986
39820 msgid "Run C<src/api-support/update-from-tarballs.sh>."
39824 #: ../src/guestfs.pod:2990
39825 msgid "Push and pull from Transifex."
39829 #: ../src/guestfs.pod:2992
39834 #: ../src/guestfs.pod:2994
39842 #: ../src/guestfs.pod:2996
39843 msgid "to push the latest POT files to Transifex. Then run:"
39847 #: ../src/guestfs.pod:2998
39855 #: ../src/guestfs.pod:3000
39856 msgid "which is a wrapper to pull the latest translated C<*.po> files."
39860 #: ../src/guestfs.pod:3004
39862 "Create new stable and development directories under L<http://libguestfs.org/"
39867 #: ../src/guestfs.pod:3009
39868 msgid "Create the branch in git:"
39872 #: ../src/guestfs.pod:3011
39875 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
39876 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
39877 " git branch stable-1.XX\n"
39878 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
39883 #: ../src/guestfs.pod:3018
39888 #: ../src/guestfs.pod:3020
39889 msgid "PROTOCOL LIMITS"
39890 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
39893 #: ../src/guestfs.pod:3022
39895 "Internally libguestfs uses a message-based protocol to pass API calls and "
39896 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
39897 "plenty more detail about this). The maximum message size used by the "
39898 "protocol is slightly less than 4 MB. For some API calls you may need to be "
39899 "aware of this limit. The API calls which may be affected are individually "
39900 "documented, with a link back to this section of the documentation."
39904 #: ../src/guestfs.pod:3030
39906 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
39907 "a simple string. Because this string is at some point internally encoded as "
39908 "a message, the maximum size that it can return is slightly under 4 MB. If "
39909 "the requested file is larger than this then you will get an error."
39913 #: ../src/guestfs.pod:3036
39915 "In order to transfer large files into and out of the guest filesystem, you "
39916 "need to use particular calls that support this. The sections L</UPLOADING> "
39917 "and L</DOWNLOADING> document how to do this."
39921 #: ../src/guestfs.pod:3040
39923 "You might also consider mounting the disk image using our FUSE filesystem "
39924 "support (L<guestmount(1)>)."
39928 #: ../src/guestfs.pod:3043
39929 msgid "MAXIMUM NUMBER OF DISKS"
39933 #: ../src/guestfs.pod:3045
39934 msgid "When using virtio disks (the default) the current limit is B<25> disks."
39938 #: ../src/guestfs.pod:3048
39940 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
39941 "slots. However febootstrap only understands disks with names C</dev/vda> "
39942 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
39947 #: ../src/guestfs.pod:3053
39949 "We are working to substantially raise this limit in future versions but it "
39950 "requires complex changes to qemu."
39954 #: ../src/guestfs.pod:3056
39956 "In future versions of libguestfs it should also be possible to \"hot plug\" "
39957 "disks (add and remove disks after calling L</guestfs_launch>). This also "
39958 "requires changes to qemu."
39962 #: ../src/guestfs.pod:3060
39963 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
39967 #: ../src/guestfs.pod:3062
39968 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
39972 #: ../src/guestfs.pod:3064
39974 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
39975 "vda>, and C</dev/vda1> through C</dev/vda15>)."
39979 #: ../src/guestfs.pod:3067
39981 "If you attach a disk with more than 15 partitions, the extra partitions are "
39982 "ignored by libguestfs."
39986 #: ../src/guestfs.pod:3070
39987 msgid "MAXIMUM SIZE OF A DISK"
39991 #: ../src/guestfs.pod:3072
39992 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
39996 #: ../src/guestfs.pod:3074
39998 "We have tested block devices up to 1 exabyte (2**60 or "
39999 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
40004 #: ../src/guestfs.pod:3078
40006 "Although libguestfs probably does not impose any limit, the underlying host "
40007 "storage will. If you store disk images on a host ext4 filesystem, then the "
40008 "maximum size will be limited by the maximum ext4 file size (currently 16 "
40009 "TB). If you store disk images as host logical volumes then you are limited "
40010 "by the maximum size of an LV."
40014 #: ../src/guestfs.pod:3084
40016 "For the hugest disk image files, we recommend using XFS on the host for "
40021 #: ../src/guestfs.pod:3087
40022 msgid "MAXIMUM SIZE OF A PARTITION"
40026 #: ../src/guestfs.pod:3089
40028 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
40029 "numbers. Assuming a 512 byte sector size, this means that MBR cannot "
40030 "address a partition located beyond 2 TB on the disk."
40034 #: ../src/guestfs.pod:3093
40036 "It is recommended that you use GPT partitions on disks which are larger than "
40037 "this size. GPT uses 64 bit sector numbers and so can address partitions "
40038 "which are theoretically larger than the largest disk we could support."
40042 #: ../src/guestfs.pod:3098
40043 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
40047 #: ../src/guestfs.pod:3100
40049 "This depends on the filesystem type. libguestfs itself does not impose any "
40050 "known limit. Consult Wikipedia or the filesystem documentation to find out "
40051 "what these limits are."
40055 #: ../src/guestfs.pod:3104
40056 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
40060 #: ../src/guestfs.pod:3106
40062 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
40063 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
40064 "uploads and downloads."
40068 #: ../src/guestfs.pod:3110
40069 msgid "INSPECTION LIMITS"
40073 #: ../src/guestfs.pod:3112
40075 "The inspection code has several arbitrary limits on things like the size of "
40076 "Windows Registry hive it will read, and the length of product name. These "
40077 "are intended to stop a malicious guest from consuming arbitrary amounts of "
40078 "memory and disk space on the host, and should not be reached in practice. "
40079 "See the source code for more information."
40083 #: ../src/guestfs.pod:3138
40085 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
40086 "effect as calling C<guestfs_set_verbose (g, 1)>."
40090 #: ../src/guestfs.pod:3150
40092 "Set the path that libguestfs uses to search for a supermin appliance. See "
40093 "the discussion of paths in section L</PATH> above."
40097 #: ../src/guestfs.pod:3159
40098 msgid "See also L</QEMU WRAPPERS> above."
40102 #: ../src/guestfs.pod:3163
40104 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
40105 "effect as calling C<guestfs_set_trace (g, 1)>."
40109 #: ../src/guestfs.pod:3181
40111 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
40112 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
40113 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
40114 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
40115 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
40116 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
40117 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-tar(1)>, L<virt-tar-in"
40118 "(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
40119 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
40123 #: ../src/guestfs.pod:3215
40125 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
40126 "(8)>, L<disktype(1)>."
40130 #: ../src/guestfs.pod:3222 ../tools/virt-make-fs.pl:553
40131 #: ../tools/virt-win-reg.pl:761
40136 #: ../src/guestfs.pod:3224
40137 msgid "To get a list of bugs against libguestfs use this link:"
40139 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
40143 #: ../src/guestfs.pod:3226
40145 "L<https://bugzilla.redhat.com/buglist.cgi?"
40146 "component=libguestfs&product=Virtualization+Tools>"
40148 "L<https://bugzilla.redhat.com/buglist.cgi?"
40149 "component=libguestfs&product=Virtualization+Tools>"
40152 #: ../src/guestfs.pod:3228
40153 msgid "To report a new bug against libguestfs use this link:"
40154 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
40157 #: ../src/guestfs.pod:3230
40159 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
40160 "component=libguestfs&product=Virtualization+Tools>"
40162 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
40163 "component=libguestfs&product=Virtualization+Tools>"
40166 #: ../src/guestfs.pod:3232
40167 msgid "When reporting a bug, please check:"
40171 #: ../src/guestfs.pod:3238
40172 msgid "That the bug hasn't been reported already."
40176 #: ../src/guestfs.pod:3242
40177 msgid "That you are testing a recent version."
40181 #: ../src/guestfs.pod:3246
40182 msgid "Describe the bug accurately, and give a way to reproduce it."
40186 #: ../src/guestfs.pod:3250
40188 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
40193 #: ../test-tool/libguestfs-test-tool.pod:5
40194 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
40198 #: ../test-tool/libguestfs-test-tool.pod:9
40201 " libguestfs-test-tool [--options]\n"
40206 #: ../test-tool/libguestfs-test-tool.pod:13
40208 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
40209 "to check basic libguestfs functionality is working. This is needed because "
40210 "libguestfs occasionally breaks for reasons beyond our control: usually "
40211 "because of changes in the underlying qemu or kernel packages, or the host "
40216 #: ../test-tool/libguestfs-test-tool.pod:19
40217 msgid "If you suspect a problem in libguestfs, then just run:"
40221 #: ../test-tool/libguestfs-test-tool.pod:21
40224 " libguestfs-test-tool\n"
40229 #: ../test-tool/libguestfs-test-tool.pod:23
40230 msgid "It will print lots of diagnostic messages."
40234 #: ../test-tool/libguestfs-test-tool.pod:25
40235 msgid "If it runs to completion successfully, you will see this near the end:"
40239 #: ../test-tool/libguestfs-test-tool.pod:27
40242 " ===== TEST FINISHED OK =====\n"
40247 #: ../test-tool/libguestfs-test-tool.pod:29
40248 msgid "and the test tool will exit with code 0."
40252 #: ../test-tool/libguestfs-test-tool.pod:31
40254 "If it fails (and/or exits with non-zero error code), please paste the "
40255 "I<complete, unedited> output of the test tool into a bug report. More "
40256 "information about reporting bugs can be found on the L<http://libguestfs.org/"
40261 #: ../test-tool/libguestfs-test-tool.pod:42
40262 msgid "Display short usage information and exit."
40266 #: ../test-tool/libguestfs-test-tool.pod:44
40268 #| msgid "I<--qemu qemu_binary>"
40269 msgid "B<--qemu qemu_binary>"
40270 msgstr "I<--qemu виконуваний_файл_qemu>"
40273 #: ../test-tool/libguestfs-test-tool.pod:46
40275 "If you have downloaded another qemu binary, point this option at the full "
40276 "path of the binary to try it."
40280 #: ../test-tool/libguestfs-test-tool.pod:49
40282 #| msgid "I<--qemu qemu_binary>"
40283 msgid "B<--qemudir qemu_source_dir>"
40284 msgstr "I<--qemu виконуваний_файл_qemu>"
40287 #: ../test-tool/libguestfs-test-tool.pod:51
40289 "If you have compiled qemu from source, point this option at the source "
40290 "directory to try it."
40294 #: ../test-tool/libguestfs-test-tool.pod:54
40299 #: ../test-tool/libguestfs-test-tool.pod:56
40301 #| msgid "I<--timeout N>"
40302 msgid "B<--timeout N>"
40303 msgstr "I<--timeout N>"
40306 #: ../test-tool/libguestfs-test-tool.pod:58
40308 "Set the launch timeout to C<N> seconds. The default is 600 seconds (10 "
40309 "minutes) which does not usually need to be adjusted."
40313 #: ../test-tool/libguestfs-test-tool.pod:63
40314 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
40318 #: ../test-tool/libguestfs-test-tool.pod:65
40320 "If you have compiled another version of qemu from source and would like to "
40321 "try that, then you can use the I<--qemudir> option to point to the qemu "
40322 "source directory."
40326 #: ../test-tool/libguestfs-test-tool.pod:69
40328 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
40329 "option to point to the binary."
40333 #: ../test-tool/libguestfs-test-tool.pod:72
40335 "Note when using these options, you can ignore the business of qemu wrapper "
40336 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
40337 "wrapper script for you if one is needed."
40341 #: ../test-tool/libguestfs-test-tool.pod:76
40342 msgid "TRYING OUT A DIFFERENT KERNEL"
40346 #: ../test-tool/libguestfs-test-tool.pod:78
40348 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
40349 "libguestfs tries. You do this by setting the environment variables "
40350 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
40354 #: ../test-tool/libguestfs-test-tool.pod:82
40356 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
40361 #: ../test-tool/libguestfs-test-tool.pod:85
40362 msgid "SELF-DIAGNOSIS"
40366 #: ../test-tool/libguestfs-test-tool.pod:87
40368 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
40369 "produced by libguestfs-test-tool and/or possible errors."
40373 #: ../test-tool/libguestfs-test-tool.pod:92
40375 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
40376 "I<1> if there was an error."
40380 #: ../test-tool/libguestfs-test-tool.pod:97
40382 "For the full list of environment variables which may affect libguestfs, "
40383 "please see the L<guestfs(3)> manual page."
40387 #: ../test-tool/libguestfs-test-tool.pod:102
40388 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
40392 #: ../tools/virt-list-filesystems.pl:32
40394 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
40398 #: ../tools/virt-list-filesystems.pl:36
40401 " virt-list-filesystems [--options] domname\n"
40406 #: ../tools/virt-list-filesystems.pl:38
40409 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
40414 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
40416 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
40421 #: ../tools/virt-list-filesystems.pl:45
40423 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
40424 "are contained in a virtual machine or disk image."
40428 #: ../tools/virt-list-filesystems.pl:49
40430 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
40431 "functionality. For more complex cases you should look at the L<guestfish(1)"
40436 #: ../tools/virt-list-filesystems.pl:112
40438 "With this option, C<virt-list-filesystems> displays the type of each "
40439 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
40443 #: ../tools/virt-list-filesystems.pl:119
40445 #| msgid "B<-a image>"
40447 msgstr "B<-a образ>"
40450 #: ../tools/virt-list-filesystems.pl:123
40452 "Normally we only show mountable filesystems. If this option is given then "
40453 "swap devices are shown too."
40457 #: ../tools/virt-list-filesystems.pl:197
40459 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
40460 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
40461 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40463 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
40464 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
40465 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40468 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
40469 msgid "Copyright (C) 2009 Red Hat Inc."
40470 msgstr "© Red Hat Inc., 2009"
40473 #: ../tools/virt-list-partitions.pl:32
40475 "virt-list-partitions - List partitions in a virtual machine or disk image"
40479 #: ../tools/virt-list-partitions.pl:36
40482 " virt-list-partitions [--options] domname\n"
40485 " virt-list-partitions [--параметри] назва_домену\n"
40489 #: ../tools/virt-list-partitions.pl:38
40492 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
40495 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
40499 #: ../tools/virt-list-partitions.pl:45
40501 "C<virt-list-partitions> is a command line tool to list the partitions that "
40502 "are contained in a virtual machine or disk image. It is mainly useful as a "
40503 "first step to using L<virt-resize(1)>."
40507 #: ../tools/virt-list-partitions.pl:50
40509 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
40510 "functionality. For more complex cases you should look at the L<guestfish(1)"
40515 #: ../tools/virt-list-partitions.pl:113
40516 msgid "Show sizes in human-readable form (eg. \"1G\")."
40520 #: ../tools/virt-list-partitions.pl:123
40522 "With this option, C<virt-list-partitions> displays the type and size of each "
40523 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
40527 #: ../tools/virt-list-partitions.pl:130
40532 #: ../tools/virt-list-partitions.pl:132
40534 #| msgid "B<-t> | B<--total>"
40536 msgstr "B<-t> | B<--total>"
40539 #: ../tools/virt-list-partitions.pl:134
40541 "Display the total size of each block device (as a separate row or rows)."
40545 #: ../tools/virt-list-partitions.pl:267
40547 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
40548 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
40549 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40551 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
40552 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
40553 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40556 #: ../tools/virt-list-partitions.pl:283
40557 msgid "Copyright (C) 2009-2010 Red Hat Inc."
40558 msgstr "© Red Hat Inc., 2009–2010"
40561 #: ../tools/virt-make-fs.pl:37
40562 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
40566 #: ../tools/virt-make-fs.pl:41
40569 " virt-make-fs [--options] input.tar output.img\n"
40574 #: ../tools/virt-make-fs.pl:43
40577 " virt-make-fs [--options] input.tar.gz output.img\n"
40582 #: ../tools/virt-make-fs.pl:45
40585 " virt-make-fs [--options] directory output.img\n"
40590 #: ../tools/virt-make-fs.pl:49
40592 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
40593 "archive or some files in a directory. It is similar to tools like L<mkisofs"
40594 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, it can "
40595 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
40596 "you want to attach these filesystems to existing virtual machines (eg. to "
40597 "import large amounts of read-only data to a VM)."
40601 #: ../tools/virt-make-fs.pl:57
40602 msgid "Basic usage is:"
40606 #: ../tools/virt-make-fs.pl:59
40609 " virt-make-fs input output\n"
40614 #: ../tools/virt-make-fs.pl:61
40616 "where C<input> is either a directory containing files that you want to add, "
40617 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
40618 "C<output> is a disk image. The input type is detected automatically. The "
40619 "output disk image defaults to a raw ext2 image unless you specify extra "
40620 "flags (see L</OPTIONS> below)."
40624 #: ../tools/virt-make-fs.pl:67
40625 msgid "EXTRA SPACE"
40629 #: ../tools/virt-make-fs.pl:69
40631 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
40632 "the files that it contains, but might have extra space. Depending on how "
40633 "you are going to use the output, you might think this extra space is wasted "
40634 "and want to minimize it, or you might want to leave space so that more files "
40635 "can be added later. Virt-make-fs defaults to minimizing the extra space, "
40636 "but you can use the I<--size> flag to leave space in the filesystem if you "
40641 #: ../tools/virt-make-fs.pl:77
40643 "An alternative way to leave extra space but not make the output image any "
40644 "bigger is to use an alternative disk image format (instead of the default "
40645 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
40646 "image format (check your hypervisor supports this before using it). This "
40647 "allows you to choose a large I<--size> but the extra space won't actually be "
40648 "allocated in the image until you try to store something in it."
40652 #: ../tools/virt-make-fs.pl:85
40654 "Don't forget that you can also use local commands including L<resize2fs(8)> "
40655 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
40656 "to build another image from scratch."
40660 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
40661 #: ../tools/virt-make-fs.pl:142
40666 #: ../tools/virt-make-fs.pl:91
40669 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
40672 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
40676 #: ../tools/virt-make-fs.pl:93
40677 msgid "FILESYSTEM TYPE"
40678 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
40681 #: ../tools/virt-make-fs.pl:95
40683 "The default filesystem type is C<ext2>. Just about any filesystem type that "
40684 "libguestfs supports can be used (but I<not> read-only formats like "
40685 "ISO9660). Here are some of the more common choices:"
40689 #: ../tools/virt-make-fs.pl:101
40694 #: ../tools/virt-make-fs.pl:103
40696 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
40697 "you are not going to use the filesystem in a way that requires the journal, "
40698 "then this is just wasted overhead."
40702 #: ../tools/virt-make-fs.pl:107
40703 msgid "I<ntfs> or I<vfat>"
40704 msgstr "I<ntfs> або I<vfat>"
40707 #: ../tools/virt-make-fs.pl:109
40708 msgid "Useful if exporting data to a Windows guest."
40712 #: ../tools/virt-make-fs.pl:111
40714 "I<Note for vfat>: The tar archive or local directory must only contain files "
40715 "which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
40716 "program running within libguestfs is unable to change the ownership of non-"
40717 "root files, since vfat itself does not support this."
40721 #: ../tools/virt-make-fs.pl:116
40726 #: ../tools/virt-make-fs.pl:118
40728 "Lower overhead than C<ext2>, but certain limitations on filename length and "
40729 "total filesystem size."
40733 #: ../tools/virt-make-fs.pl:125
40736 " virt-make-fs --type=minix input minixfs.img\n"
40741 #: ../tools/virt-make-fs.pl:127
40742 msgid "TO PARTITION OR NOT TO PARTITION"
40746 #: ../tools/virt-make-fs.pl:129
40747 msgid "Optionally virt-make-fs can add a partition table to the output disk."
40751 #: ../tools/virt-make-fs.pl:131
40753 "Adding a partition can make the disk image more compatible with certain "
40754 "virtualized operating systems which don't expect to see a filesystem "
40755 "directly located on a block device (Linux doesn't care and will happily "
40756 "handle both types)."
40760 #: ../tools/virt-make-fs.pl:136
40762 "On the other hand, if you have a partition table then the output image is no "
40763 "longer a straight filesystem. For example you cannot run L<fsck(8)> "
40764 "directly on a partitioned disk image. (However libguestfs tools such as "
40765 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
40769 #: ../tools/virt-make-fs.pl:144
40770 msgid "Add an MBR partition:"
40774 #: ../tools/virt-make-fs.pl:146
40777 " virt-make-fs --partition -- input disk.img\n"
40782 #: ../tools/virt-make-fs.pl:148
40784 "If the output disk image could be terabyte-sized or larger, it's better to "
40785 "use an EFI/GPT-compatible partition table:"
40789 #: ../tools/virt-make-fs.pl:151
40792 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
40797 #: ../tools/virt-make-fs.pl:179
40798 msgid "Enable debugging information."
40799 msgstr "Увімкнути виведення діагностичних даних."
40802 #: ../tools/virt-make-fs.pl:185
40803 msgid "B<--size=E<lt>NE<gt>>"
40804 msgstr "B<--size=E<lt>NE<gt>>"
40807 #: ../tools/virt-make-fs.pl:187
40808 msgid "B<--size=+E<lt>NE<gt>>"
40809 msgstr "B<--size=+E<lt>NE<gt>>"
40812 #: ../tools/virt-make-fs.pl:189
40813 msgid "B<-s E<lt>NE<gt>>"
40814 msgstr "B<-s E<lt>NE<gt>>"
40817 #: ../tools/virt-make-fs.pl:191
40818 msgid "B<-s +E<lt>NE<gt>>"
40819 msgstr "B<-s +E<lt>NE<gt>>"
40822 #: ../tools/virt-make-fs.pl:193
40824 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
40828 #: ../tools/virt-make-fs.pl:196
40830 "If this option is I<not> given, then the output image will be just large "
40831 "enough to contain all the files, with not much wasted space."
40835 #: ../tools/virt-make-fs.pl:199
40837 "To choose a fixed size output disk, specify an absolute number followed by b/"
40838 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40839 "Petabytes or Exabytes. This must be large enough to contain all the input "
40840 "files, else you will get an error."
40844 #: ../tools/virt-make-fs.pl:204
40846 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
40847 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40848 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
40849 "the input files, and (approximately) an extra 200 MB free space."
40853 #: ../tools/virt-make-fs.pl:210
40855 "Note that virt-make-fs estimates free space, and therefore will not produce "
40856 "filesystems containing precisely the free space requested. (It is much more "
40857 "expensive and time-consuming to produce a filesystem which has precisely the "
40858 "desired free space)."
40862 #: ../tools/virt-make-fs.pl:219
40863 msgid "B<--format=E<lt>fmtE<gt>>"
40867 #: ../tools/virt-make-fs.pl:221
40868 msgid "B<-F E<lt>fmtE<gt>>"
40872 #: ../tools/virt-make-fs.pl:223
40873 msgid "Choose the output disk image format."
40877 #: ../tools/virt-make-fs.pl:225
40878 msgid "The default is C<raw> (raw disk image)."
40882 #: ../tools/virt-make-fs.pl:227
40884 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
40885 "that would really make sense here is C<qcow2>."
40889 #: ../tools/virt-make-fs.pl:234
40890 msgid "B<--type=E<lt>fsE<gt>>"
40894 #: ../tools/virt-make-fs.pl:236
40895 msgid "B<-t E<lt>fsE<gt>>"
40899 #: ../tools/virt-make-fs.pl:238
40900 msgid "Choose the output filesystem type."
40904 #: ../tools/virt-make-fs.pl:240
40905 msgid "The default is C<ext2>."
40906 msgstr "Типовим значенням є C<ext2>."
40909 #: ../tools/virt-make-fs.pl:242
40911 "Any filesystem which is supported read-write by libguestfs can be used here."
40915 #: ../tools/virt-make-fs.pl:249
40916 msgid "B<--partition>"
40917 msgstr "B<--partition>"
40920 #: ../tools/virt-make-fs.pl:251
40921 msgid "B<--partition=E<lt>parttypeE<gt>>"
40925 #: ../tools/virt-make-fs.pl:253
40927 "If specified, this flag adds an MBR partition table to the output disk image."
40931 #: ../tools/virt-make-fs.pl:256
40933 "You can change the partition table type, eg. I<--partition=gpt> for large "
40938 #: ../tools/virt-make-fs.pl:259
40940 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
40941 "might consider the next parameter to be the partition type. For example:"
40945 #: ../tools/virt-make-fs.pl:263
40948 " virt-make-fs --partition input.tar ...\n"
40953 #: ../tools/virt-make-fs.pl:265
40955 "would cause virt-make-fs to think you wanted to use a partition type of "
40956 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
40957 "dash) between options and the input file argument:"
40961 #: ../tools/virt-make-fs.pl:269
40964 " virt-make-fs --partition -- input.tar ...\n"
40967 " virt-make-fs --partition -- input.tar ...\n"
40971 #: ../tools/virt-make-fs.pl:541
40973 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
40974 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
40975 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
40977 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
40978 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
40979 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
40982 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
40984 "When reporting bugs, please enable debugging and capture the I<complete> "
40989 #: ../tools/virt-make-fs.pl:558
40992 " export LIBGUESTFS_DEBUG=1\n"
40993 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
40996 " export LIBGUESTFS_DEBUG=1\n"
40997 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41001 #: ../tools/virt-make-fs.pl:561
41003 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
41008 #: ../tools/virt-tar.pl:33
41009 msgid "virt-tar - Extract or upload files to a virtual machine"
41013 #: ../tools/virt-tar.pl:37
41016 " virt-tar [--options] -x domname directory tarball\n"
41021 #: ../tools/virt-tar.pl:39
41024 " virt-tar [--options] -u domname tarball directory\n"
41029 #: ../tools/virt-tar.pl:41
41032 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
41037 #: ../tools/virt-tar.pl:43
41040 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
41045 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
41050 #: ../tools/virt-tar.pl:47
41052 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
41053 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
41057 #: ../tools/virt-tar.pl:52
41058 msgid "Download C</home> from the VM into a local tarball:"
41062 #: ../tools/virt-tar.pl:54
41065 " virt-tar -x domname /home home.tar\n"
41070 #: ../tools/virt-tar.pl:56
41073 " virt-tar -zx domname /home home.tar.gz\n"
41078 #: ../tools/virt-tar.pl:58
41079 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
41083 #: ../tools/virt-tar.pl:60
41086 " virt-tar -u domname uploadstuff.tar /tmp\n"
41091 #: ../tools/virt-tar.pl:62
41094 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
41099 #: ../tools/virt-tar.pl:66
41101 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
41102 "virtual machines. If you do this, you risk disk corruption in the VM. "
41103 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
41107 #: ../tools/virt-tar.pl:71
41109 "You can use I<-x> (extract) on live virtual machines, but you might get "
41110 "inconsistent results or errors if there is filesystem activity inside the "
41111 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
41112 "work, but the only way to guarantee consistent results is if the virtual "
41113 "machine is shut down."
41117 #: ../tools/virt-tar.pl:79
41119 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
41120 "parts of a guest filesystem. There are many possibilities: making backups, "
41121 "uploading data files, snooping on guest activity, fixing or customizing "
41126 #: ../tools/virt-tar.pl:84
41128 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
41129 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
41130 "should look at the L<guestfish(1)> tool."
41134 #: ../tools/virt-tar.pl:88
41136 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
41137 "its contents (recursively) from the virtual machine into a local tarball. "
41138 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
41139 "virtual machine. You cannot use these two options together."
41143 #: ../tools/virt-tar.pl:94
41145 "In addition, you may need to use the I<-z> (gZip) option to enable "
41146 "compression. When uploading, you have to specify I<-z> if the upload file "
41147 "is compressed because virt-tar won't detect this on its own."
41151 #: ../tools/virt-tar.pl:98
41153 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
41154 "example it cannot do PKZip files or bzip2 compression. If you want that "
41155 "then you'll have to rebuild the tarballs yourself. (This is a limitation of "
41156 "the L<libguestfs(3)> API)."
41160 #: ../tools/virt-tar.pl:160
41162 #| msgid "B<--format>"
41163 msgid "B<--extract>"
41164 msgstr "B<--format>"
41167 #: ../tools/virt-tar.pl:162
41169 #| msgid "download"
41170 msgid "B<--download>"
41174 #: ../tools/virt-tar.pl:164
41179 #: ../tools/virt-tar.pl:166
41181 #| msgid "B<-u> | B<--upload>"
41182 msgid "B<--upload>"
41183 msgstr "B<-u> | B<--upload>"
41186 #: ../tools/virt-tar.pl:168
41188 "Use I<-x> to extract (download) a directory from a virtual machine to a "
41193 #: ../tools/virt-tar.pl:171
41195 "Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
41196 "Please read the L</WARNING> section above before using this option."
41200 #: ../tools/virt-tar.pl:175
41201 msgid "You must specify exactly one of these options."
41205 #: ../tools/virt-tar.pl:181
41210 #: ../tools/virt-tar.pl:183
41212 #| msgid "B<-z> | B<--gzip>"
41214 msgstr "B<-z> | B<--gzip>"
41217 #: ../tools/virt-tar.pl:185
41218 msgid "Specify that the input or output tarball is gzip-compressed."
41222 #: ../tools/virt-tar.pl:298
41224 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
41225 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
41226 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
41229 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
41230 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
41231 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
41235 #: ../tools/virt-win-reg.pl:37
41237 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
41241 #: ../tools/virt-win-reg.pl:41
41244 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
41249 #: ../tools/virt-win-reg.pl:43
41252 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
41257 #: ../tools/virt-win-reg.pl:45
41260 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
41265 #: ../tools/virt-win-reg.pl:47
41268 " virt-win-reg --merge domname [input.reg ...]\n"
41273 #: ../tools/virt-win-reg.pl:49
41276 " virt-win-reg [--options] disk.img ... # instead of domname\n"
41281 #: ../tools/virt-win-reg.pl:53
41283 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
41284 "virtual machines. If you do this, you I<will> get irreversible disk "
41285 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
41286 "but doesn't catch all cases."
41290 #: ../tools/virt-win-reg.pl:58
41292 "Modifying the Windows Registry is an inherently risky operation. The format "
41293 "is deliberately obscure and undocumented, and Registry changes can leave the "
41294 "system unbootable. Therefore when using the I<--merge> option, make sure "
41295 "you have a reliable backup first."
41299 #: ../tools/virt-win-reg.pl:65
41301 "This program can export and merge Windows Registry entries from a Windows "
41306 #: ../tools/virt-win-reg.pl:68
41308 "The first parameter is the libvirt guest name or the raw disk image of a "
41313 #: ../tools/virt-win-reg.pl:71
41315 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
41316 "exported (recursively). For example:"
41320 #: ../tools/virt-win-reg.pl:74
41323 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
41328 #: ../tools/virt-win-reg.pl:76
41330 "You can also display single values from within registry keys, for example:"
41334 #: ../tools/virt-win-reg.pl:79
41337 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
41338 " $ virt-win-reg Windows7 $cvkey ProductName\n"
41339 " Windows 7 Enterprise\n"
41344 #: ../tools/virt-win-reg.pl:83
41346 "With I<--merge>, you can merge a textual regedit file into the Windows "
41351 #: ../tools/virt-win-reg.pl:86
41354 " $ virt-win-reg --merge Windows7 changes.reg\n"
41359 #: ../tools/virt-win-reg.pl:90
41361 "This program is only meant for simple access to the registry. If you want "
41362 "to do complicated things with the registry, we suggest you download the "
41363 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
41364 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
41365 "L<hivexregedit(1)>."
41369 #: ../tools/virt-win-reg.pl:159
41371 msgstr "B<--merge>"
41374 #: ../tools/virt-win-reg.pl:161
41376 "In merge mode, this merges a textual regedit file into the Windows Registry "
41377 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
41378 "displays or exports Registry entries instead."
41382 #: ../tools/virt-win-reg.pl:165
41384 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
41385 "result in disk corruption. However exporting (without this flag) is always "
41390 #: ../tools/virt-win-reg.pl:173
41391 msgid "B<--encoding> UTF-16LE|ASCII"
41395 #: ../tools/virt-win-reg.pl:175
41397 "When merging (only), you may need to specify the encoding for strings to be "
41398 "used in the hive file. This is explained in detail in L<Win::Hivex::Regedit"
41399 "(3)/ENCODING STRINGS>."
41403 #: ../tools/virt-win-reg.pl:179
41405 "The default is to use UTF-16LE, which should work with recent versions of "
41410 #: ../tools/virt-win-reg.pl:186
41411 msgid "B<--unsafe-printable-strings>"
41415 #: ../tools/virt-win-reg.pl:188
41417 "When exporting (only), assume strings are UTF-16LE and print them as strings "
41418 "instead of hex sequences. Remove the final zero codepoint from strings if "
41423 #: ../tools/virt-win-reg.pl:192
41425 "This is unsafe and does not preserve the fidelity of strings in the original "
41426 "Registry for various reasons:"
41430 #: ../tools/virt-win-reg.pl:199
41432 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
41433 "other encodings will be corrupted by this transformation."
41437 #: ../tools/virt-win-reg.pl:204
41439 "Assumes that everything which has type 1 or 2 is really a string and that "
41440 "everything else is not a string, but the type field in real Registries is "
41445 #: ../tools/virt-win-reg.pl:210
41447 "Loses information about whether a zero codepoint followed the string in the "
41452 #: ../tools/virt-win-reg.pl:215
41454 "This all happens because the Registry itself contains no information about "
41455 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
41459 #: ../tools/virt-win-reg.pl:219
41461 "You should only use this option for quick hacking and debugging of the "
41462 "Registry contents, and I<never> use it if the output is going to be passed "
41463 "into another program or stored in another Registry."
41467 #: ../tools/virt-win-reg.pl:556
41468 msgid "SUPPORTED SYSTEMS"
41472 #: ../tools/virt-win-reg.pl:558
41474 "The program currently supports Windows NT-derived guests starting with "
41475 "Windows XP through to at least Windows 7."
41479 #: ../tools/virt-win-reg.pl:561
41480 msgid "The following Registry keys are supported:"
41484 #: ../tools/virt-win-reg.pl:565
41485 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
41489 #: ../tools/virt-win-reg.pl:567
41490 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
41494 #: ../tools/virt-win-reg.pl:569
41495 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
41499 #: ../tools/virt-win-reg.pl:571
41500 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
41504 #: ../tools/virt-win-reg.pl:573
41505 msgid "C<HKEY_USERS\\.DEFAULT>"
41509 #: ../tools/virt-win-reg.pl:575
41510 msgid "C<HKEY_USERS\\I<SID>>"
41514 #: ../tools/virt-win-reg.pl:577
41515 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
41519 #: ../tools/virt-win-reg.pl:579
41520 msgid "C<HKEY_USERS\\I<username>>"
41524 #: ../tools/virt-win-reg.pl:581
41526 "where I<username> is a local user name (this is a libguestfs extension)."
41530 #: ../tools/virt-win-reg.pl:585
41532 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
41537 #: ../tools/virt-win-reg.pl:588
41539 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
41540 "supported (there is no \"current user\")."
41544 #: ../tools/virt-win-reg.pl:591
41549 #: ../tools/virt-win-reg.pl:593
41551 "C<virt-win-reg> expects that regedit files have already been reencoded in "
41552 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
41553 "style line endings. Since Windows regedit files are often in UTF-16LE with "
41554 "Windows-style line endings, you may need to reencode the whole file before "
41555 "or after processing."
41559 #: ../tools/virt-win-reg.pl:599
41561 "To reencode a file from Windows format to Linux (before processing it with "
41562 "the I<--merge> option), you would do something like this:"
41566 #: ../tools/virt-win-reg.pl:602
41569 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
41574 #: ../tools/virt-win-reg.pl:604
41576 "To go in the opposite direction, after exporting and before sending the file "
41577 "to a Windows user, do something like this:"
41581 #: ../tools/virt-win-reg.pl:607
41584 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
41589 #: ../tools/virt-win-reg.pl:609
41590 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
41594 #: ../tools/virt-win-reg.pl:611
41596 "If you are unsure about the current encoding, use the L<file(1)> command. "
41597 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
41598 "style (CRLF) line endings, like this:"
41602 #: ../tools/virt-win-reg.pl:615
41605 " $ file software.reg\n"
41606 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
41607 " with CRLF line terminators\n"
41612 #: ../tools/virt-win-reg.pl:619
41613 msgid "This file would need conversion before you could I<--merge> it."
41617 #: ../tools/virt-win-reg.pl:621
41618 msgid "CurrentControlSet etc."
41622 #: ../tools/virt-win-reg.pl:623
41624 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
41625 "Registry at the level of the hive file, and therefore you cannot modify "
41630 #: ../tools/virt-win-reg.pl:627
41632 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
41633 "circumstances it might refer to another control set. The way to find out is "
41634 "to look at the C<HKLM\\SYSTEM\\Select> key:"
41638 #: ../tools/virt-win-reg.pl:631
41641 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
41642 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
41643 " \"Current\"=dword:00000001\n"
41644 " \"Default\"=dword:00000001\n"
41645 " \"Failed\"=dword:00000000\n"
41646 " \"LastKnownGood\"=dword:00000002\n"
41651 #: ../tools/virt-win-reg.pl:638
41652 msgid "\"Current\" is the one which Windows will choose when it boots."
41656 #: ../tools/virt-win-reg.pl:640
41658 "Similarly, other C<Current...> keys in the path may need to be replaced."
41662 #: ../tools/virt-win-reg.pl:643
41663 msgid "WINDOWS TIPS"
41667 #: ../tools/virt-win-reg.pl:645
41669 "Note that some of these tips modify the guest disk image. The guest I<must> "
41670 "be shut off, else you will get disk corruption."
41674 #: ../tools/virt-win-reg.pl:648
41675 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
41679 #: ../tools/virt-win-reg.pl:650
41681 "Prepare a DOS batch script, VBScript or executable. Upload this using "
41682 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
41683 "is uploaded into C<C:\\>:"
41687 #: ../tools/virt-win-reg.pl:654
41690 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
41695 #: ../tools/virt-win-reg.pl:656
41696 msgid "Prepare a regedit file containing the registry change:"
41700 #: ../tools/virt-win-reg.pl:658
41703 " cat > test.reg <<'EOF'\n"
41704 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
41705 " \"Test\"=\"c:\\\\test.bat\"\n"
41711 #: ../tools/virt-win-reg.pl:663
41713 "In this example we use the key C<RunOnce> which means that the script will "
41714 "run precisely once when the first user logs in. If you want it to run every "
41715 "time a user logs in, replace C<RunOnce> with C<Run>."
41719 #: ../tools/virt-win-reg.pl:667
41720 msgid "Now update the registry:"
41724 #: ../tools/virt-win-reg.pl:669
41727 " virt-win-reg --merge WindowsGuest test.reg\n"
41732 #: ../tools/virt-win-reg.pl:671
41733 msgid "INSTALLING A SERVICE"
41737 #: ../tools/virt-win-reg.pl:673
41739 "This section assumes you are familiar with Windows services, and you either "
41740 "have a program which handles the Windows Service Control Protocol directly "
41741 "or you want to run any program using a service wrapper like SrvAny or the "
41746 #: ../tools/virt-win-reg.pl:678
41748 "First upload the program and optionally the service wrapper. In this case "
41749 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
41753 #: ../tools/virt-win-reg.pl:682
41756 " guestfish -i -d WindowsGuest <<EOF\n"
41757 " upload rhsrvany.exe /rhsrvany.exe\n"
41758 " upload test.exe /test.exe\n"
41764 #: ../tools/virt-win-reg.pl:687
41766 "Prepare a regedit file containing the registry changes. In this example, "
41767 "the first registry change is needed for the service itself or the service "
41768 "wrapper (if used). The second registry change is only needed because I am "
41769 "using the RHSrvAny service wrapper."
41773 #: ../tools/virt-win-reg.pl:692
41776 " cat > service.reg <<'EOF'\n"
41777 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
41778 " \"Type\"=dword:00000010\n"
41779 " \"Start\"=dword:00000002\n"
41780 " \"ErrorControl\"=dword:00000001\n"
41781 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
41782 " \"DisplayName\"=\"RHSrvAny\"\n"
41783 " \"ObjectName\"=\"NetworkService\"\n"
41788 #: ../tools/virt-win-reg.pl:701
41791 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
41792 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
41793 " \"PWD\"=\"c:\\\\Temp\"\n"
41799 #: ../tools/virt-win-reg.pl:712
41801 "For use of C<ControlSet001> see the section above in this manual page. You "
41802 "may need to adjust this according to the control set that is in use by the "
41807 #: ../tools/virt-win-reg.pl:718
41809 "C<\"ObjectName\"> controls the privileges that the service will have. An "
41810 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
41811 "privileged account."
41815 #: ../tools/virt-win-reg.pl:724
41817 "For the meaning of the magic numbers, see this Microsoft KB article: "
41818 "L<http://support.microsoft.com/kb/103000>."
41822 #: ../tools/virt-win-reg.pl:729
41823 msgid "Update the registry:"
41827 #: ../tools/virt-win-reg.pl:731
41830 " virt-win-reg --merge WindowsGuest service.reg\n"
41835 #: ../tools/virt-win-reg.pl:735
41837 "Be careful when passing parameters containing C<\\> (backslash) in the "
41838 "shell. Usually you will have to use 'single quotes' or double backslashes "
41839 "(but not both) to protect them from the shell."
41843 #: ../tools/virt-win-reg.pl:739
41844 msgid "Paths and value names are case-insensitive."
41848 #: ../tools/virt-win-reg.pl:748
41850 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
41851 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
41852 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41856 #: ../tools/virt-win-reg.pl:766
41859 " export LIBGUESTFS_DEBUG=1\n"
41860 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
41865 #: ../tools/virt-win-reg.pl:769
41867 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
41871 #~ msgid "I<--help>"
41872 #~ msgstr "I<--help>"
41874 #~ msgid "EXIT CODE"
41875 #~ msgstr "КОД ВИХОДУ"
41877 #~ msgid "B<-a> | B<--all>"
41878 #~ msgstr "B<-a> | B<--all>"
41880 #~ msgid "B<-x> | B<--extract> | B<--download>"
41881 #~ msgstr "B<-x> | B<--extract> | B<--download>"