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-11 20:58+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
24 #: ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
25 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
26 #: ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3
27 #: ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3
28 #: ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3
29 #: ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3
30 #: ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3
31 #: ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3
32 #: ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3
33 #: ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3
34 #: ../src/guestfs.pod:3 ../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
49 #: ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
50 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
51 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
52 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
53 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
54 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
55 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
56 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
57 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
58 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
59 #: ../test-tool/libguestfs-test-tool.pod:7
60 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
61 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
62 #: ../tools/virt-win-reg.pl:39
64 msgstr "КОРОТКИЙ ОПИС"
67 #: ../align/virt-alignment-scan.pod:9
70 #| " virt-list-partitions [--options] domname\n"
73 " virt-alignment-scan [--options] -d domname\n"
76 " virt-list-partitions [--параметри] назва_домену\n"
80 #: ../align/virt-alignment-scan.pod:11
83 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
86 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
89 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
93 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19
94 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
95 #: ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
96 #: ../erlang/examples/guestfs-erlang.pod:16
97 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
98 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
99 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
100 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
101 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
102 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
103 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
104 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
105 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
106 #: ../test-tool/libguestfs-test-tool.pod:11
107 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
108 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
109 #: ../tools/virt-win-reg.pl:63
114 #: ../align/virt-alignment-scan.pod:15
116 "When older operating systems install themselves, the partitioning tools "
117 "place partitions at a sector misaligned with the underlying storage "
118 "(commonly the first partition starts on sector C<63>). Misaligned "
119 "partitions can result in an operating system issuing more I/O than should be "
124 #: ../align/virt-alignment-scan.pod:21
126 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
127 "machines and disk images and warns you if there are alignment problems."
131 #: ../align/virt-alignment-scan.pod:25
133 "Currently there is no virt tool for fixing alignment problems. You can only "
134 "reinstall the guest operating system. The following NetApp document "
135 "summarises the problem and possible solutions: L<http://media.netapp.com/"
136 "documents/tr-3747.pdf>"
140 #: ../align/virt-alignment-scan.pod:30
145 #: ../align/virt-alignment-scan.pod:32
146 msgid "To run this tool on a disk image directly, use the I<-a> option:"
150 #: ../align/virt-alignment-scan.pod:34
153 " $ virt-alignment-scan -a winxp.img\n"
154 " /dev/sda1 32256 512 bad (alignment < 4K)\n"
159 #: ../align/virt-alignment-scan.pod:37
162 " $ virt-alignment-scan -a fedora16.img\n"
163 " /dev/sda1 1048576 1024K ok\n"
164 " /dev/sda2 2097152 2048K ok\n"
165 " /dev/sda3 526385152 2048K ok\n"
170 #: ../align/virt-alignment-scan.pod:42
172 "To run the tool on a guest known to libvirt, use the I<-d> option and "
173 "possibly the I<-c> option:"
177 #: ../align/virt-alignment-scan.pod:45
180 " # virt-alignment-scan -d RHEL5\n"
181 " /dev/sda1 32256 512 bad (alignment < 4K)\n"
182 " /dev/sda2 106928640 512 bad (alignment < 4K)\n"
187 #: ../align/virt-alignment-scan.pod:49
190 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
191 " /dev/sda1 1048576 1024K ok\n"
192 " /dev/sda2 105906176 1024K ok\n"
193 " /dev/sdb1 65536 64K ok\n"
198 #: ../align/virt-alignment-scan.pod:54
200 "The output consists of 4 or more whitespace-separated columns. Only the "
201 "first 4 columns are signficant if you want to parse this from a program. "
206 #: ../align/virt-alignment-scan.pod:60
211 #: ../align/virt-alignment-scan.pod:62
213 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
214 "on the first block device)"
218 #: ../align/virt-alignment-scan.pod:65
223 #: ../align/virt-alignment-scan.pod:67
224 msgid "the start of the partition in bytes"
228 #: ../align/virt-alignment-scan.pod:69
233 #: ../align/virt-alignment-scan.pod:71
234 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
238 #: ../align/virt-alignment-scan.pod:73
243 #: ../align/virt-alignment-scan.pod:75
245 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
246 "can cause performance problems"
250 #: ../align/virt-alignment-scan.pod:78
255 #: ../align/virt-alignment-scan.pod:80
256 msgid "optional free-text explanation."
260 #: ../align/virt-alignment-scan.pod:84
262 "The exit code from the program changes depending on whether poorly aligned "
263 "partitions were found. See L</EXIT STATUS> below."
267 #: ../align/virt-alignment-scan.pod:87
268 msgid "If you just want the exit code with no output, use the I<-q> option."
272 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62
273 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261
274 #: ../clone/virt-sysprep.pod:36 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
275 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
276 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
277 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:83
278 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
279 #: ../resize/virt-resize.pod:241 ../sparsify/virt-sparsify.pod:99
280 #: ../test-tool/libguestfs-test-tool.pod:36
281 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
282 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
283 #: ../tools/virt-win-reg.pl:96
288 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
289 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
290 #: ../clone/virt-sysprep.pod:40 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
291 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151
292 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
293 #: ../resize/virt-resize.pod:245 ../sparsify/virt-sparsify.pod:103
294 #: ../test-tool/libguestfs-test-tool.pod:40
295 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
296 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
297 #: ../tools/virt-win-reg.pl:104
302 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
303 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
304 #: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
305 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
306 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
307 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
308 #: ../tools/virt-win-reg.pl:106
309 msgid "Display brief help."
313 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70
314 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269
315 #: ../clone/virt-sysprep.pod:44 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
316 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
318 #| msgid "B<-f file>"
323 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72
324 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271
325 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
326 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
328 #| msgid "B<--add image>"
329 msgid "B<--add> file"
330 msgstr "B<--add образ>"
333 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:48
334 msgid "Add I<file> which should be a disk image from a virtual machine."
338 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78
339 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277
340 #: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
341 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93
342 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
344 "The format of the disk image is auto-detected. To override this and force a "
345 "particular format use the I<--format=..> option."
349 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81
350 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291
351 #: ../clone/virt-sysprep.pod:53 ../df/virt-df.pod:78
352 #: ../rescue/virt-rescue.pod:107
356 msgstr "B<-c адреса>"
359 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83
360 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293
361 #: ../clone/virt-sysprep.pod:55 ../df/virt-df.pod:80
362 #: ../rescue/virt-rescue.pod:109
364 #| msgid "B<--connect URI>"
365 msgid "B<--connect> URI"
366 msgstr "B<--connect адреса>"
369 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85
370 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295
371 #: ../clone/virt-sysprep.pod:57 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
372 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
373 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
374 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
376 "If using libvirt, connect to the given I<URI>. If omitted, then we connect "
377 "to the default libvirt hypervisor."
381 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88
382 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298
383 #: ../clone/virt-sysprep.pod:60 ../df/virt-df.pod:85
384 #: ../rescue/virt-rescue.pod:114
386 "If you specify guest block devices directly (I<-a>), then libvirt is not "
391 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91
392 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307
393 #: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
394 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
399 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93
400 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309
401 #: ../clone/virt-sysprep.pod:65 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
402 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
403 msgid "B<--domain> guest"
407 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95
408 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311
409 #: ../clone/virt-sysprep.pod:67 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
410 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
412 "Add all the disks from the named libvirt guest. Domain UUIDs can be used "
417 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105
418 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
419 #: ../clone/virt-sysprep.pod:89 ../df/virt-df.pod:101
420 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:133
421 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
422 msgid "B<--format=raw|qcow2|..>"
423 msgstr "B<--format=raw|qcow2|..>"
426 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107
427 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
428 #: ../clone/virt-sysprep.pod:91 ../df/virt-df.pod:103
429 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
430 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:101
431 #: ../rescue/virt-rescue.pod:126
436 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109
437 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
438 #: ../clone/virt-sysprep.pod:93 ../df/virt-df.pod:105
439 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
440 #: ../fuse/guestmount.pod:137 ../rescue/virt-rescue.pod:128
442 "The default for the I<-a> option is to auto-detect the format of the disk "
443 "image. Using this forces the disk format for I<-a> options which follow on "
444 "the command line. Using I<--format> with no argument switches back to auto-"
445 "detection for subsequent I<-a> options."
449 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114
450 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
451 #: ../clone/virt-sysprep.pod:98 ../df/virt-df.pod:110
452 #: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
453 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:336
454 #: ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2862
459 #: ../align/virt-alignment-scan.pod:134
462 #| " guestfish --format=raw -a disk.img\n"
465 " virt-alignment-scan --format=raw -a disk.img\n"
468 " guestfish --format=raw -a disk.img\n"
472 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
473 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
474 #: ../clone/virt-sysprep.pod:102 ../df/virt-df.pod:114
475 #: ../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:138
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:140 ../cat/virt-cat.pod:122
495 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
496 #: ../clone/virt-sysprep.pod:106 ../df/virt-df.pod:118
497 #: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
498 #: ../rescue/virt-rescue.pod:141
500 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
501 "detection for C<another.img>."
505 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125
506 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
507 #: ../clone/virt-sysprep.pod:109 ../df/virt-df.pod:121
508 #: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
510 "If you have untrusted raw-format guest disk images, you should use this "
511 "option to specify the disk format. This avoids a possible security problem "
512 "with malicious guests (CVE-2010-3851)."
516 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:414
517 #: ../sparsify/virt-sparsify.pod:153
522 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:416
523 #: ../sparsify/virt-sparsify.pod:155
530 #: ../align/virt-alignment-scan.pod:151
532 "Don't produce any output. Just set the exit code (see L</EXIT STATUS> "
537 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
538 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
539 #: ../clone/virt-sysprep.pod:122 ../df/virt-df.pod:173
540 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
541 #: ../fuse/guestmount.pod:257 ../inspector/virt-inspector.pod:119
542 #: ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:159
547 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136
548 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
549 #: ../clone/virt-sysprep.pod:124 ../df/virt-df.pod:175
550 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
551 #: ../fuse/guestmount.pod:259 ../inspector/virt-inspector.pod:121
552 #: ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:161
554 msgstr "B<--verbose>"
557 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138
558 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
559 #: ../clone/virt-sysprep.pod:126 ../df/virt-df.pod:177
560 #: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123
561 #: ../rescue/virt-rescue.pod:186 ../sparsify/virt-sparsify.pod:163
562 msgid "Enable verbose messages for debugging."
566 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140
567 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
568 #: ../clone/virt-sysprep.pod:128 ../df/virt-df.pod:179
569 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
570 #: ../fuse/guestmount.pod:263 ../inspector/virt-inspector.pod:125
571 #: ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:484
572 #: ../sparsify/virt-sparsify.pod:165
577 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
578 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
579 #: ../clone/virt-sysprep.pod:130 ../df/virt-df.pod:181
580 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
581 #: ../fuse/guestmount.pod:265 ../inspector/virt-inspector.pod:127
582 #: ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:486
583 #: ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69
584 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
585 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
587 msgstr "B<--version>"
590 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
591 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
592 #: ../clone/virt-sysprep.pod:132 ../df/virt-df.pod:183
593 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
594 #: ../rescue/virt-rescue.pod:192 ../resize/virt-resize.pod:488
595 #: ../sparsify/virt-sparsify.pod:169 ../tools/virt-list-filesystems.pl:71
596 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
597 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
598 msgid "Display version number and exit."
599 msgstr "Показати дані щодо версії і завершити роботу."
602 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
603 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
604 #: ../clone/virt-sysprep.pod:134 ../df/virt-df.pod:185
605 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
606 #: ../fuse/guestmount.pod:278 ../inspector/virt-inspector.pod:131
607 #: ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:171
608 #: ../tools/virt-tar.pl:158
613 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
614 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
615 #: ../clone/virt-sysprep.pod:136 ../df/virt-df.pod:187
616 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
617 #: ../rescue/virt-rescue.pod:205 ../sparsify/virt-sparsify.pod:173
618 msgid "Enable tracing of libguestfs API calls."
622 #: ../align/virt-alignment-scan.pod:172
623 msgid "RECOMMENDED ALIGNMENT"
627 #: ../align/virt-alignment-scan.pod:174
629 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
630 "first sector of the first partition at sector 63, with a 512 byte sector "
631 "size. This happens because of a historical accident. Drives have to report "
632 "a cylinder / head / sector (CHS) geometry to the BIOS. The geometry is "
633 "completely meaningless on modern drives, but it happens that the geometry "
634 "reported always has 63 sectors per track. The operating system therefore "
635 "places the first partition at the start of the second \"track\", at sector "
640 #: ../align/virt-alignment-scan.pod:183
642 "When the guest OS is virtualized, the host operating system and hypervisor "
643 "may prefer accesses aligned to one of:"
647 #: ../align/virt-alignment-scan.pod:188
652 #: ../align/virt-alignment-scan.pod:190
654 "if the host OS uses local storage directly on hard drive partitions, and the "
655 "hard drive has 512 byte physical sectors."
659 #: ../align/virt-alignment-scan.pod:193
664 #: ../align/virt-alignment-scan.pod:195
666 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
667 "backed storage on filesystems with 4Kbyte block size; or for some types of "
668 "network-attached storage."
672 #: ../align/virt-alignment-scan.pod:199
677 #: ../align/virt-alignment-scan.pod:201
679 "for high-end network-attached storage. This is the optimal block size for "
680 "some NetApp hardware."
684 #: ../align/virt-alignment-scan.pod:204
689 #: ../align/virt-alignment-scan.pod:206
690 msgid "see L</1 MB PARTITION ALIGNMENT> below."
694 #: ../align/virt-alignment-scan.pod:210
696 "Partitions which are not aligned correctly to the underlying storage cause "
697 "extra I/O. For example:"
701 #: ../align/virt-alignment-scan.pod:213
705 " +--------------------------+------\n"
707 " | filesystem block |\n"
708 " ---+------------------+------+-------------------+-----+---\n"
709 " | host block | host block |\n"
711 " ---+-------------------------+-------------------------+---\n"
716 #: ../align/virt-alignment-scan.pod:222
718 "In this example, each time a 4K guest block is read, two blocks on the host "
719 "must be accessed (so twice as much I/O is done). When a 4K guest block is "
720 "written, two host blocks must first be read, the old and new data combined, "
721 "and the two blocks written back (4x I/O)."
725 #: ../align/virt-alignment-scan.pod:227
726 msgid "LINUX HOST BLOCK AND I/O SIZE"
730 #: ../align/virt-alignment-scan.pod:229
732 "New versions of the Linux kernel expose the physical and logical block size, "
733 "and minimum and recommended I/O size."
737 #: ../align/virt-alignment-scan.pod:232
738 msgid "For a typical hard drive with 512 byte sectors:"
742 #: ../align/virt-alignment-scan.pod:234
745 " $ cat /sys/block/sda/queue/physical_block_size\n"
747 " $ cat /sys/block/sda/queue/logical_block_size\n"
749 " $ cat /sys/block/sda/queue/minimum_io_size\n"
751 " $ cat /sys/block/sda/queue/optimal_io_size\n"
757 #: ../align/virt-alignment-scan.pod:243
758 msgid "For a NetApp LUN:"
762 #: ../align/virt-alignment-scan.pod:245
765 " $ cat /sys/block/sdc/queue/logical_block_size\n"
767 " $ cat /sys/block/sdc/queue/physical_block_size\n"
769 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
771 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
777 #: ../align/virt-alignment-scan.pod:254
779 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
780 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
784 #: ../align/virt-alignment-scan.pod:258
786 "For detailed information about what these numbers mean, see L<http://docs."
787 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
788 "Storage_Administration_Guide/newstorage-iolimits.html>"
792 #: ../align/virt-alignment-scan.pod:261
794 "[Thanks to Mike Snitzer for providing NetApp data and additional "
799 #: ../align/virt-alignment-scan.pod:264
801 #| msgid "PARTITIONING"
802 msgid "1 MB PARTITION ALIGNMENT"
803 msgstr "ПОДІЛ НА РОЗДІЛИ"
806 #: ../align/virt-alignment-scan.pod:266
808 "Microsoft picked 1 MB as the default alignment for all partitions starting "
809 "with Windows 2008 Server, and Linux has followed this."
813 #: ../align/virt-alignment-scan.pod:269
815 "Assuming 512 byte sectors in the guest, you will now see the first partition "
816 "starting at sector 2048, and subsequent partitions (if any) will start at a "
817 "multiple of 2048 sectors."
821 #: ../align/virt-alignment-scan.pod:273
823 "1 MB alignment is compatible with all current alignment requirements (4K, "
824 "64K) and provides room for future growth in physical block sizes."
828 #: ../align/virt-alignment-scan.pod:276
829 msgid "SETTING ALIGNMENT"
833 #: ../align/virt-alignment-scan.pod:278
835 "Currently there is no virt tool for fixing alignment problems in guests. "
836 "This is a difficult problem to fix because simply moving partitions around "
837 "breaks the bootloader, necessitating either manual reinstallation of the "
838 "bootloader using a rescue disk, or complex and error-prone hacks."
842 #: ../align/virt-alignment-scan.pod:284
844 "L<virt-resize(1)> does not change the alignment of the first partition, but "
845 "it does align the second and subsequent partitions to a multiple of 64 or "
846 "128 sectors (depending on the version of virt-resize, 128 in virt-resize "
847 "E<ge> 1.13.19). For operating systems that have a separate boot partition, "
848 "virt-resize could be used to align the main OS partition, so that the "
849 "majority of OS accesses except at boot will be aligned."
853 #: ../align/virt-alignment-scan.pod:292
855 "The easiest way to correct partition alignment problems is to reinstall your "
856 "guest operating systems. If you install operating systems from templates, "
857 "ensure these have correct partition alignment too."
861 #: ../align/virt-alignment-scan.pod:297
863 "For older versions of Windows, the following NetApp document contains useful "
864 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
868 #: ../align/virt-alignment-scan.pod:300
870 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
871 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
872 ">. Do not use the Kickstart C<part> command. The NetApp document above "
873 "contains an example."
877 #: ../align/virt-alignment-scan.pod:305 ../cat/virt-cat.pod:191
878 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:483
879 #: ../clone/virt-sysprep.pod:359 ../df/virt-df.pod:215
880 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:352
881 #: ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:601
882 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
883 #: ../tools/virt-make-fs.pl:532 ../tools/virt-tar.pl:289
884 #: ../tools/virt-win-reg.pl:733
885 msgid "SHELL QUOTING"
889 #: ../align/virt-alignment-scan.pod:307 ../cat/virt-cat.pod:193
890 #: ../cat/virt-filesystems.pod:367 ../cat/virt-ls.pod:485
891 #: ../clone/virt-sysprep.pod:361 ../df/virt-df.pod:217
892 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:354
893 #: ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:603
894 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
895 #: ../tools/virt-make-fs.pl:534 ../tools/virt-tar.pl:291
896 #: ../tools/virt-win-reg.pl:741
898 "Libvirt guest names can contain arbitrary characters, some of which have "
899 "meaning to the shell such as C<#> and space. You may need to quote or "
900 "escape these characters on the command line. See the shell manual page L<sh"
905 #: ../align/virt-alignment-scan.pod:312 ../cat/virt-cat.pod:198
906 #: ../cat/virt-filesystems.pod:372 ../cat/virt-ls.pod:490
907 #: ../clone/virt-sysprep.pod:366 ../df/virt-df.pod:222
908 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1113
909 #: ../fuse/guestmount.pod:303 ../inspector/virt-inspector.pod:375
910 #: ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:227
911 #: ../test-tool/libguestfs-test-tool.pod:90
916 #: ../align/virt-alignment-scan.pod:314
917 msgid "This program returns:"
921 #: ../align/virt-alignment-scan.pod:318 ../align/virt-alignment-scan.pod:324
922 #: ../align/virt-alignment-scan.pod:330 ../align/virt-alignment-scan.pod:337
923 #: ../clone/virt-sysprep.pod:213 ../clone/virt-sysprep.pod:217
924 #: ../clone/virt-sysprep.pod:221 ../clone/virt-sysprep.pod:225
925 #: ../clone/virt-sysprep.pod:240 ../clone/virt-sysprep.pod:244
926 #: ../clone/virt-sysprep.pod:248 ../clone/virt-sysprep.pod:252
927 #: ../clone/virt-sysprep.pod:256 ../clone/virt-sysprep.pod:292
928 #: ../clone/virt-sysprep.pod:314 ../clone/virt-sysprep.pod:318
929 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
930 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
931 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
932 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
933 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
934 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
935 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
936 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
937 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
938 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
939 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
940 #: ../fish/guestfish-actions.pod:1139 ../fish/guestfish-actions.pod:1143
941 #: ../fish/guestfish-actions.pod:1147 ../fish/guestfish-actions.pod:1151
942 #: ../fish/guestfish-actions.pod:1159 ../fish/guestfish-actions.pod:1163
943 #: ../fish/guestfish-actions.pod:1167 ../fish/guestfish-actions.pod:1177
944 #: ../fish/guestfish-actions.pod:1181 ../fish/guestfish-actions.pod:1185
945 #: ../fish/guestfish-actions.pod:1275 ../fish/guestfish-actions.pod:1279
946 #: ../fish/guestfish-actions.pod:1284 ../fish/guestfish-actions.pod:1289
947 #: ../fish/guestfish-actions.pod:1331 ../fish/guestfish-actions.pod:1335
948 #: ../fish/guestfish-actions.pod:1340 ../fish/guestfish-actions.pod:1596
949 #: ../fish/guestfish-actions.pod:1603 ../fish/guestfish-actions.pod:1610
950 #: ../fish/guestfish-actions.pod:2005 ../fish/guestfish-actions.pod:2011
951 #: ../fish/guestfish-actions.pod:2019 ../fish/guestfish-actions.pod:2026
952 #: ../fish/guestfish-actions.pod:2033 ../fish/guestfish.pod:445
953 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
954 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
955 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282
956 #: ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295
957 #: ../resize/virt-resize.pod:301 ../sparsify/virt-sparsify.pod:32
958 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
959 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
960 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
961 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
962 #: ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596
963 #: ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610
964 #: ../src/guestfs-actions.pod:1778 ../src/guestfs-actions.pod:1782
965 #: ../src/guestfs-actions.pod:1786 ../src/guestfs-actions.pod:1790
966 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:1802
967 #: ../src/guestfs-actions.pod:1806 ../src/guestfs-actions.pod:1816
968 #: ../src/guestfs-actions.pod:1820 ../src/guestfs-actions.pod:1824
969 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:1966
970 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:1976
971 #: ../src/guestfs-actions.pod:2037 ../src/guestfs-actions.pod:2041
972 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2461
973 #: ../src/guestfs-actions.pod:2468 ../src/guestfs-actions.pod:2475
974 #: ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3018
975 #: ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3033
976 #: ../src/guestfs-actions.pod:3040 ../src/guestfs.pod:388
977 #: ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402
978 #: ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416
979 #: ../src/guestfs.pod:421 ../src/guestfs.pod:1094 ../src/guestfs.pod:1098
980 #: ../src/guestfs.pod:1102 ../src/guestfs.pod:1107 ../src/guestfs.pod:1115
981 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1142 ../src/guestfs.pod:1164
982 #: ../src/guestfs.pod:1168 ../src/guestfs.pod:1172 ../src/guestfs.pod:1176
983 #: ../src/guestfs.pod:1180 ../src/guestfs.pod:1184 ../src/guestfs.pod:1674
984 #: ../src/guestfs.pod:1679 ../src/guestfs.pod:1683 ../src/guestfs.pod:1785
985 #: ../src/guestfs.pod:1790 ../src/guestfs.pod:1794 ../src/guestfs.pod:1804
986 #: ../src/guestfs.pod:2093 ../src/guestfs.pod:2098 ../src/guestfs.pod:2104
987 #: ../src/guestfs.pod:2112 ../src/guestfs.pod:2630 ../src/guestfs.pod:2636
988 #: ../src/guestfs.pod:2641 ../src/guestfs.pod:2647 ../src/guestfs.pod:3047
989 #: ../src/guestfs.pod:3052 ../src/guestfs.pod:3056 ../src/guestfs.pod:3060
990 #: ../src/guestfs.pod:3064 ../src/guestfs.pod:3078 ../src/guestfs.pod:3083
991 #: ../src/guestfs.pod:3314 ../src/guestfs.pod:3318 ../src/guestfs.pod:3322
992 #: ../src/guestfs.pod:3326 ../tools/virt-win-reg.pl:197
993 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
994 #: ../tools/virt-win-reg.pl:710 ../tools/virt-win-reg.pl:716
995 #: ../tools/virt-win-reg.pl:722
1000 #: ../align/virt-alignment-scan.pod:320
1005 #: ../align/virt-alignment-scan.pod:322
1007 "successful exit, all partitions are aligned E<ge> 64K for best performance"
1011 #: ../align/virt-alignment-scan.pod:326
1018 #: ../align/virt-alignment-scan.pod:328
1019 msgid "an error scanning the disk image or guest"
1023 #: ../align/virt-alignment-scan.pod:332
1030 #: ../align/virt-alignment-scan.pod:334
1032 "successful exit, some partitions have alignment E<lt> 64K which can result "
1033 "in poor performance on high end network storage"
1037 #: ../align/virt-alignment-scan.pod:339
1044 #: ../align/virt-alignment-scan.pod:341
1046 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1047 "poor performance on most hypervisors"
1051 #: ../align/virt-alignment-scan.pod:346 ../cat/virt-cat.pod:203
1052 #: ../cat/virt-filesystems.pod:377 ../cat/virt-ls.pod:495
1053 #: ../clone/virt-sysprep.pod:370 ../df/virt-df.pod:227
1054 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1055 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1056 #: ../fish/guestfish.pod:1267 ../fish/virt-copy-in.pod:50
1057 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
1058 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:308
1059 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
1060 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
1061 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
1062 #: ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36
1063 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3255
1064 #: ../test-tool/libguestfs-test-tool.pod:100
1065 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1066 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
1067 #: ../tools/virt-win-reg.pl:746
1069 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
1072 #: ../align/virt-alignment-scan.pod:348
1075 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
1076 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
1077 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1079 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1080 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1082 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
1083 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
1084 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1087 #: ../align/virt-alignment-scan.pod:355 ../cat/virt-cat.pod:212
1088 #: ../cat/virt-filesystems.pod:388 ../cat/virt-ls.pod:507
1089 #: ../clone/virt-sysprep.pod:384 ../df/virt-df.pod:235
1090 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296
1091 #: ../resize/virt-resize.pod:635 ../sparsify/virt-sparsify.pod:264
1092 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1093 #: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311
1094 #: ../tools/virt-win-reg.pl:772
1099 #: ../align/virt-alignment-scan.pod:357 ../cat/virt-cat.pod:214
1100 #: ../cat/virt-filesystems.pod:390 ../cat/virt-ls.pod:509
1101 #: ../clone/virt-sysprep.pod:386 ../df/virt-df.pod:237
1102 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:395
1103 #: ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:637
1104 #: ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210
1105 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566
1106 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
1107 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1108 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1111 #: ../align/virt-alignment-scan.pod:359 ../cat/virt-cat.pod:216
1112 #: ../cat/virt-filesystems.pod:392 ../cat/virt-ls.pod:511
1113 #: ../clone/virt-sysprep.pod:388 ../df/virt-df.pod:239
1114 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1115 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1116 #: ../fish/guestfish.pod:1299 ../fish/virt-copy-in.pod:64
1117 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
1118 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:323
1119 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
1120 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
1121 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
1122 #: ../resize/virt-resize.pod:639 ../ruby/examples/guestfs-ruby.pod:52
1123 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3337
1124 #: ../test-tool/libguestfs-test-tool.pod:110
1125 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1126 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
1127 #: ../tools/virt-win-reg.pl:776
1129 msgstr "АВТОРСЬКІ ПРАВА"
1132 #: ../align/virt-alignment-scan.pod:361 ../clone/virt-sysprep.pod:390
1133 #: ../sparsify/virt-sparsify.pod:270
1135 #| msgid "Copyright (C) 2009 Red Hat Inc."
1136 msgid "Copyright (C) 2011 Red Hat Inc."
1137 msgstr "© Red Hat Inc., 2009"
1140 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:220
1141 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:515
1142 #: ../clone/virt-sysprep.pod:392 ../df/virt-df.pod:243
1143 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1304
1144 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1145 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1146 #: ../fuse/guestmount.pod:328 ../inspector/virt-inspector.pod:407
1147 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:643
1148 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
1149 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1150 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
1151 #: ../tools/virt-win-reg.pl:780
1153 "This program is free software; you can redistribute it and/or modify it "
1154 "under the terms of the GNU General Public License as published by the Free "
1155 "Software Foundation; either version 2 of the License, or (at your option) "
1156 "any later version."
1160 #: ../align/virt-alignment-scan.pod:368 ../cat/virt-cat.pod:225
1161 #: ../cat/virt-filesystems.pod:401 ../cat/virt-ls.pod:520
1162 #: ../clone/virt-sysprep.pod:397 ../df/virt-df.pod:248
1163 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1309
1164 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1165 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1166 #: ../fuse/guestmount.pod:333 ../inspector/virt-inspector.pod:412
1167 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:648
1168 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
1169 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1170 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
1171 #: ../tools/virt-win-reg.pl:785
1173 "This program is distributed in the hope that it will be useful, but WITHOUT "
1174 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1175 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for "
1178 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
1179 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
1180 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
1181 "дізнатися з GNU General Public License."
1184 #: ../align/virt-alignment-scan.pod:373 ../cat/virt-cat.pod:230
1185 #: ../cat/virt-filesystems.pod:406 ../cat/virt-ls.pod:525
1186 #: ../clone/virt-sysprep.pod:402 ../df/virt-df.pod:253
1187 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1314
1188 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1189 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1190 #: ../fuse/guestmount.pod:338 ../inspector/virt-inspector.pod:417
1191 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:653
1192 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
1193 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1194 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
1195 #: ../tools/virt-win-reg.pl:790
1197 "You should have received a copy of the GNU General Public License along with "
1198 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
1199 "Ave, Cambridge, MA 02139, USA."
1203 #: ../cat/virt-cat.pod:5
1204 msgid "virt-cat - Display files in a virtual machine"
1208 #: ../cat/virt-cat.pod:9
1211 #| " virt-list-partitions [--options] domname\n"
1214 " virt-cat [--options] -d domname file [file ...]\n"
1217 " virt-list-partitions [--параметри] назва_домену\n"
1221 #: ../cat/virt-cat.pod:11
1224 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1227 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1230 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1234 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1235 #: ../inspector/virt-inspector.pod:13
1240 #: ../cat/virt-cat.pod:15
1243 " virt-cat domname file\n"
1248 #: ../cat/virt-cat.pod:17
1251 " virt-cat disk.img file\n"
1256 #: ../cat/virt-cat.pod:21
1258 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1259 "C<file> exists in the named virtual machine (or disk image)."
1263 #: ../cat/virt-cat.pod:24
1265 "Multiple filenames can be given, in which case they are concatenated "
1266 "together. Each filename must be a full path, starting at the root directory "
1267 "(starting with '/')."
1271 #: ../cat/virt-cat.pod:28
1273 "C<virt-cat> can be used to quickly view a file. To edit a file, use C<virt-"
1274 "edit>. For more complex cases you should look at the L<guestfish(1)> tool "
1275 "(see L</USING GUESTFISH> below)."
1279 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1280 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1281 #: ../fish/guestfish.pod:1050 ../fish/virt-copy-in.pod:29
1282 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1283 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1284 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1285 #: ../tools/virt-tar.pl:50
1290 #: ../cat/virt-cat.pod:34
1292 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1296 #: ../cat/virt-cat.pod:37
1299 " virt-cat -d mydomain /etc/fstab\n"
1304 #: ../cat/virt-cat.pod:39
1305 msgid "List syslog messages from a VM disk image file:"
1309 #: ../cat/virt-cat.pod:41
1312 " virt-cat -a disk.img /var/log/messages | tail\n"
1317 #: ../cat/virt-cat.pod:43
1318 msgid "Find out what DHCP IP address a VM acquired:"
1322 #: ../cat/virt-cat.pod:45
1325 " virt-cat -d mydomain /var/log/messages | \\\n"
1326 " grep 'dhclient: bound to' | tail\n"
1331 #: ../cat/virt-cat.pod:48
1332 msgid "Find out what packages were recently installed:"
1336 #: ../cat/virt-cat.pod:50
1339 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1344 #: ../cat/virt-cat.pod:52
1345 msgid "Find out who is logged on inside a virtual machine:"
1349 #: ../cat/virt-cat.pod:54
1352 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1358 #: ../cat/virt-cat.pod:57
1359 msgid "or who was logged on:"
1363 #: ../cat/virt-cat.pod:59
1366 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1367 " last -f /tmp/wtmp\n"
1372 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1373 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1374 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
1376 "Add I<file> which should be a disk image from a virtual machine. If the "
1377 "virtual machine has multiple block devices, you must supply all of them with "
1378 "separate I<-a> options."
1382 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1383 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1384 #: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
1385 msgid "B<--echo-keys>"
1386 msgstr "B<--echo-keys>"
1389 #: ../cat/virt-cat.pod:100
1391 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1392 "so you cannot see what you are typing. If you are not worried about Tempest "
1393 "attacks and there is no one else in the room you can specify this flag to "
1394 "see what you are typing."
1398 #: ../cat/virt-cat.pod:116
1401 #| " guestfish --format=raw -a disk.img\n"
1404 " virt-cat --format=raw -a disk.img file\n"
1407 " guestfish --format=raw -a disk.img\n"
1411 #: ../cat/virt-cat.pod:120
1414 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
1417 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1420 " guestfish --format=raw -a disk.img --format -a another.img\n"
1424 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1425 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1426 #: ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
1427 msgid "B<--keys-from-stdin>"
1428 msgstr "B<--keys-from-stdin>"
1431 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1432 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1433 #: ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
1435 "Read key or passphrase parameters from stdin. The default is to try to read "
1436 "passphrases from the user by opening C</dev/tty>."
1440 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1441 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
1442 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1446 #: ../cat/virt-cat.pod:154
1447 msgid "Previous versions of virt-cat allowed you to write either:"
1451 #: ../cat/virt-cat.pod:156
1454 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1457 " virt-cat disk.img [disk.img ...] file\n"
1460 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1464 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1465 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
1472 #: ../cat/virt-cat.pod:160
1475 " virt-cat guestname file\n"
1480 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1481 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
1483 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1484 "the confusing case where a disk image might have the same name as a guest."
1488 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1489 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
1490 msgid "For compatibility the old style is still supported."
1494 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
1495 msgid "USING GUESTFISH"
1499 #: ../cat/virt-cat.pod:170
1501 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1502 "C<virt-cat> doesn't work."
1506 #: ../cat/virt-cat.pod:173
1507 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1511 #: ../cat/virt-cat.pod:175
1514 #| " guestfish --ro -d myguest -i\n"
1517 " guestfish --ro -i -d domname download file -\n"
1520 " guestfish --ro -d myguest -i\n"
1524 #: ../cat/virt-cat.pod:177
1526 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1527 "path to the file. Note the final C<-> (meaning \"output to stdout\")."
1531 #: ../cat/virt-cat.pod:181
1533 "The command above uses libguestfs's guest inspection feature and so does not "
1534 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1535 "disk images that don't contain guests. To display a file from a disk image "
1540 #: ../cat/virt-cat.pod:186
1543 #| " guestfish [--ro] -i disk.img\n"
1546 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1549 " guestfish [--ro] -i disk.img\n"
1553 #: ../cat/virt-cat.pod:188
1555 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1556 "the disk image, and C<file> is the full path to the file."
1560 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
1561 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1562 #: ../fuse/guestmount.pod:305 ../inspector/virt-inspector.pod:377
1563 #: ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:229
1565 "This program returns 0 if successful, or non-zero if there was an error."
1569 #: ../cat/virt-cat.pod:205
1572 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
1573 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
1574 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1576 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1577 "tar-out(1)>, L<http://libguestfs.org/>."
1579 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
1580 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
1581 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1584 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
1585 #: ../resize/virt-resize.pod:641
1587 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
1588 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1589 msgstr "© Red Hat Inc., 2009–2010"
1592 #: ../cat/virt-filesystems.pod:5
1594 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1595 "virtual machine or disk image"
1599 #: ../cat/virt-filesystems.pod:9
1602 #| " virt-list-partitions [--options] domname\n"
1605 " virt-filesystems [--options] -d domname\n"
1608 " virt-list-partitions [--параметри] назва_домену\n"
1612 #: ../cat/virt-filesystems.pod:11
1615 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1618 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1621 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1625 #: ../cat/virt-filesystems.pod:15
1627 "This tool allows you to discover filesystems, partitions, logical volumes, "
1628 "and their sizes in a disk image or virtual machine. It is a replacement for "
1629 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1633 #: ../cat/virt-filesystems.pod:20
1635 "One use for this tool is from shell scripts to iterate over all filesystems "
1636 "from a disk image:"
1640 #: ../cat/virt-filesystems.pod:23
1643 " for fs in $(virt-filesystems -a disk.img); do\n"
1650 #: ../cat/virt-filesystems.pod:27
1652 "Another use is to list partitions before using another tool to modify those "
1653 "partitions (such as L<virt-resize(1)>). If you are curious about what an "
1654 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1658 #: ../cat/virt-filesystems.pod:32
1660 "Various command line options control what this program displays. You need "
1661 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1662 "guest respectively. If you just specify that then the program shows "
1663 "filesystems found, one per line, like this:"
1667 #: ../cat/virt-filesystems.pod:37
1670 " $ virt-filesystems -a disk.img\n"
1672 " /dev/vg_guest/lv_root\n"
1677 #: ../cat/virt-filesystems.pod:41
1679 "If you add I<-l> or I<--long> then the output includes extra information:"
1683 #: ../cat/virt-filesystems.pod:44
1686 " $ virt-filesystems -a disk.img -l\n"
1687 " Name Type VFS Label Size\n"
1688 " /dev/sda1 filesystem ext4 boot 524288000\n"
1689 " /dev/vg_guest/lv_root filesystem ext4 root 10212081664\n"
1694 #: ../cat/virt-filesystems.pod:49
1696 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1701 #: ../cat/virt-filesystems.pod:52
1704 " $ virt-filesystems -a disk.img --extra\n"
1706 " /dev/vg_guest/lv_root\n"
1707 " /dev/vg_guest/lv_swap\n"
1708 " /dev/vg_guest/lv_data\n"
1713 #: ../cat/virt-filesystems.pod:58
1715 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1719 #: ../cat/virt-filesystems.pod:60
1722 " $ virt-filesystems -a disk.img --partitions\n"
1729 #: ../cat/virt-filesystems.pod:64
1731 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1732 "volumes>, I<--block-devices> to list those items."
1736 #: ../cat/virt-filesystems.pod:67
1738 "You can use these options in combination as well (if you want a combination "
1739 "including filesystems, you have to add I<--filesystems>). Notice that some "
1740 "items fall into several categories (eg. C</dev/sda1> might be both a "
1741 "partition and a filesystem). These items are listed several times. To get "
1742 "a list which includes absolutely everything that virt-filesystems knows "
1743 "about, use the I<--all> option."
1747 #: ../cat/virt-filesystems.pod:74
1749 "UUIDs (because they are quite long) are not shown by default. Add the I<--"
1750 "uuid> option to display device and filesystem UUIDs in the long output."
1754 #: ../cat/virt-filesystems.pod:78
1756 "I<--all --long --uuid> is a useful combination to display all possible "
1757 "information about everything."
1761 #: ../cat/virt-filesystems.pod:81
1764 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1765 " Name Type VFS Label Size Parent UUID\n"
1766 " /dev/sda1 filesystem ntfs System Reserved 100M - F81C92571C92112C\n"
1767 " /dev/sda2 filesystem ntfs - 20G - F2E8996AE8992E3B\n"
1768 " /dev/sda1 partition - - 100M /dev/sda -\n"
1769 " /dev/sda2 partition - - 20G /dev/sda -\n"
1770 " /dev/sda device - - 20G - -\n"
1775 #: ../cat/virt-filesystems.pod:89
1777 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1781 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1783 #| msgid "B<--help>"
1788 #: ../cat/virt-filesystems.pod:112
1790 "Display everything. This is currently the same as specifying these options: "
1791 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1792 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>. (More may be "
1793 "added to this list in future)."
1797 #: ../cat/virt-filesystems.pod:117
1799 #| msgid "See also L</is-lv>."
1800 msgid "See also I<--long>."
1801 msgstr "Див. також L</is-lv>."
1804 #: ../cat/virt-filesystems.pod:119
1806 #| msgid "B<--live>"
1807 msgid "B<--blkdevs>"
1811 #: ../cat/virt-filesystems.pod:121
1813 #| msgid "is-blockdev"
1814 msgid "B<--block-devices>"
1815 msgstr "is-blockdev"
1818 #: ../cat/virt-filesystems.pod:123
1820 #| msgid "is-blockdev"
1821 msgid "Display block devices."
1822 msgstr "is-blockdev"
1825 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1832 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1834 "Write out the results in CSV format (comma-separated values). This format "
1835 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1836 "ABOUT CSV FORMAT> below."
1840 #: ../cat/virt-filesystems.pod:150
1842 "When prompting for keys and passphrases, virt-filesystems normally turns "
1843 "echoing off so you cannot see what you are typing. If you are not worried "
1844 "about Tempest attacks and there is no one else in the room you can specify "
1845 "this flag to see what you are typing."
1849 #: ../cat/virt-filesystems.pod:155
1856 #: ../cat/virt-filesystems.pod:157
1858 "This causes filesystems that are not ordinary, mountable filesystems to be "
1859 "displayed. This category includes swapspace, and filesystems that are empty "
1860 "or contain unknown data."
1864 #: ../cat/virt-filesystems.pod:161
1865 msgid "This option implies I<--filesystems>."
1869 #: ../cat/virt-filesystems.pod:163
1871 #| msgid "list-filesystems"
1872 msgid "B<--filesystems>"
1873 msgstr "list-filesystems"
1876 #: ../cat/virt-filesystems.pod:165
1878 "Display mountable filesystems. If no display option was selected then this "
1879 "option is implied."
1883 #: ../cat/virt-filesystems.pod:168
1884 msgid "With I<--extra>, non-mountable filesystems are shown too."
1888 #: ../cat/virt-filesystems.pod:181
1891 #| " guestfish --format=raw -a disk.img\n"
1894 " virt-filesystems --format=raw -a disk.img\n"
1897 " guestfish --format=raw -a disk.img\n"
1901 #: ../cat/virt-filesystems.pod:185
1904 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
1907 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1910 " guestfish --format=raw -a disk.img --format -a another.img\n"
1914 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1915 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1916 #: ../tools/virt-list-partitions.pl:109
1921 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1922 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1924 #| msgid "B<-h> | B<--human-readable>"
1925 msgid "B<--human-readable>"
1926 msgstr "B<-h> | B<--human-readable>"
1929 #: ../cat/virt-filesystems.pod:198
1930 msgid "In I<--long> mode, display sizes in human-readable format."
1934 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1935 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1940 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1941 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1948 #: ../cat/virt-filesystems.pod:209
1949 msgid "Display extra columns of data (\"long format\")."
1953 #: ../cat/virt-filesystems.pod:211
1954 msgid "A title row is added unless you also specify I<--no-title>."
1958 #: ../cat/virt-filesystems.pod:213
1960 "The extra columns displayed depend on what output you select, and the "
1961 "ordering of columns may change in future versions. Use the title row, I<--"
1962 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1967 #: ../cat/virt-filesystems.pod:218
1969 "Use I<-h> if you want sizes to be displayed in human-readable format. The "
1970 "default is to show raw numbers of I<bytes>."
1974 #: ../cat/virt-filesystems.pod:221
1975 msgid "Use I<--uuid> to display UUIDs too."
1979 #: ../cat/virt-filesystems.pod:223
1981 #| msgid "B<--live>"
1986 #: ../cat/virt-filesystems.pod:225
1988 #| msgid "B<--live>"
1989 msgid "B<--logvols>"
1993 #: ../cat/virt-filesystems.pod:227
1995 #| msgid "B<--live>"
1996 msgid "B<--logical-volumes>"
2000 #: ../cat/virt-filesystems.pod:229
2002 "Display LVM logical volumes. In this mode, these are displayed irrespective "
2003 "of whether the LVs contain filesystems."
2007 #: ../cat/virt-filesystems.pod:232
2009 #| msgid "B<--listen>"
2010 msgid "B<--no-title>"
2011 msgstr "B<--listen>"
2014 #: ../cat/virt-filesystems.pod:234
2015 msgid "In I<--long> mode, don't add a title row."
2019 #: ../cat/virt-filesystems.pod:236
2021 "Note that the order of the columns is not fixed, and may change in future "
2022 "versions of virt-filesystems, so using this option may give you unexpected "
2027 #: ../cat/virt-filesystems.pod:240
2029 #| msgid "B<--partition>"
2031 msgstr "B<--partition>"
2034 #: ../cat/virt-filesystems.pod:242
2036 #| msgid "B<--partition>"
2037 msgid "B<--partitions>"
2038 msgstr "B<--partition>"
2041 #: ../cat/virt-filesystems.pod:244
2043 "Display partitions. In this mode, these are displayed irrespective of "
2044 "whether the partitions contain filesystems."
2048 #: ../cat/virt-filesystems.pod:247
2055 #: ../cat/virt-filesystems.pod:249
2057 #| msgid "B<--verbose>"
2058 msgid "B<--physvols>"
2059 msgstr "B<--verbose>"
2062 #: ../cat/virt-filesystems.pod:251
2063 msgid "B<--physical-volumes>"
2067 #: ../cat/virt-filesystems.pod:253
2068 msgid "Display LVM physical volumes."
2072 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
2074 #| msgid "B<--live>"
2079 #: ../cat/virt-filesystems.pod:257
2086 #: ../cat/virt-filesystems.pod:259
2087 msgid "In I<--long> mode, display UUIDs as well."
2091 #: ../cat/virt-filesystems.pod:273
2098 #: ../cat/virt-filesystems.pod:275
2100 #| msgid "B<--verbose>"
2101 msgid "B<--volgroups>"
2102 msgstr "B<--verbose>"
2105 #: ../cat/virt-filesystems.pod:277
2107 #| msgid "B<--verbose>"
2108 msgid "B<--volume-groups>"
2109 msgstr "B<--verbose>"
2112 #: ../cat/virt-filesystems.pod:279
2113 msgid "Display LVM volume groups."
2117 #: ../cat/virt-filesystems.pod:287
2122 #: ../cat/virt-filesystems.pod:289
2124 "Note that columns in the output are subject to reordering and change in "
2125 "future versions of this tool."
2129 #: ../cat/virt-filesystems.pod:294
2134 #: ../cat/virt-filesystems.pod:296
2135 msgid "The filesystem, partition, block device or LVM name."
2139 #: ../cat/virt-filesystems.pod:298
2141 "For device and partition names these are displayed as canonical libguestfs "
2142 "names, so that for example C</dev/sda2> is the second partition on the first "
2147 #: ../cat/virt-filesystems.pod:302
2149 "If the I<--long> option is B<not> specified, then only the name column is "
2150 "shown in the output."
2154 #: ../cat/virt-filesystems.pod:305
2156 #| msgid "B<-N type>"
2161 #: ../cat/virt-filesystems.pod:307
2162 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2166 #: ../cat/virt-filesystems.pod:309
2171 #: ../cat/virt-filesystems.pod:311
2173 "If there is a filesystem, then this column displays the filesystem type if "
2174 "one could be detected, eg. C<ext4>."
2178 #: ../cat/virt-filesystems.pod:314
2183 #: ../cat/virt-filesystems.pod:316
2185 "If the object has a label (used for identifying and mounting filesystems) "
2186 "then this column contains the label."
2190 #: ../cat/virt-filesystems.pod:319
2192 #| msgid "B<part_size>"
2194 msgstr "B<part_size>"
2197 #: ../cat/virt-filesystems.pod:321
2199 "The size of the object in bytes. If the I<--human> option is used then the "
2200 "size is displayed in a human-readable form."
2204 #: ../cat/virt-filesystems.pod:324
2209 #: ../cat/virt-filesystems.pod:326
2211 "The parent column records the parent relationship between objects. For "
2212 "example, if the object is a partition, then this column contains the name of "
2213 "the containing device. If the object is a logical volume, then this column "
2214 "is the name of the volume group."
2218 #: ../cat/virt-filesystems.pod:331
2223 #: ../cat/virt-filesystems.pod:333
2225 "If the object has a UUID (used for identifying and mounting filesystems and "
2226 "block devices) then this column contains the UUID as a string."
2230 #: ../cat/virt-filesystems.pod:337
2231 msgid "The UUID is only displayed if the I<--uuid> option is given."
2235 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
2236 #: ../df/virt-df.pod:191
2237 msgid "NOTE ABOUT CSV FORMAT"
2241 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
2242 #: ../df/virt-df.pod:193
2244 "Comma-separated values (CSV) is a deceptive format. It I<seems> like it "
2245 "should be easy to parse, but it is definitely not easy to parse."
2249 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
2250 #: ../df/virt-df.pod:196
2252 "Myth: Just split fields at commas. Reality: This does I<not> work "
2253 "reliably. This example has two columns:"
2257 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
2258 #: ../df/virt-df.pod:199
2261 " \"foo,bar\",baz\n"
2266 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
2267 #: ../df/virt-df.pod:201
2269 "Myth: Read the file one line at a time. Reality: This does I<not> work "
2270 "reliably. This example has one row:"
2274 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
2275 #: ../df/virt-df.pod:204
2284 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
2285 #: ../df/virt-df.pod:207
2287 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2288 "packaged in major Linux distributions)."
2292 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
2293 #: ../df/virt-df.pod:210
2295 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2296 "or Python's built-in csv library)."
2300 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
2301 #: ../df/virt-df.pod:213
2302 msgid "Most spreadsheets and databases can import CSV directly."
2306 #: ../cat/virt-filesystems.pod:379
2309 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
2310 #| "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
2311 #| "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2313 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2314 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2317 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
2318 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
2319 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2322 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
2323 #: ../tools/virt-win-reg.pl:778
2324 msgid "Copyright (C) 2010 Red Hat Inc."
2328 #: ../cat/virt-ls.pod:5
2329 msgid "virt-ls - List files in a virtual machine"
2333 #: ../cat/virt-ls.pod:9
2336 " virt-ls [--options] -d domname directory [directory ...]\n"
2341 #: ../cat/virt-ls.pod:11
2344 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2347 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2350 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2354 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2359 #: ../cat/virt-ls.pod:15
2362 #| " virt-list-partitions [--options] domname\n"
2365 " virt-ls [--options] domname directory\n"
2368 " virt-list-partitions [--параметри] назва_домену\n"
2372 #: ../cat/virt-ls.pod:17
2375 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2378 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2381 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2385 #: ../cat/virt-ls.pod:21
2387 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2388 "more from a virtual machine or disk image."
2392 #: ../cat/virt-ls.pod:24
2394 "Multiple directory names can be given, in which case the output from each is "
2399 #: ../cat/virt-ls.pod:27
2401 "To list directories from a libvirt guest use the I<-d> option to specify the "
2402 "name of the guest. For a disk image, use the I<-a> option."
2406 #: ../cat/virt-ls.pod:31
2408 "C<virt-ls> can do many simple file listings. For more complicated cases you "
2409 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2414 #: ../cat/virt-ls.pod:37
2415 msgid "Get a list of all files and directories in a virtual machine:"
2419 #: ../cat/virt-ls.pod:39
2422 #| " guestfish --ro -d myguest -i\n"
2425 " virt-ls -R -d guest /\n"
2428 " guestfish --ro -d myguest -i\n"
2432 #: ../cat/virt-ls.pod:41
2433 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2437 #: ../cat/virt-ls.pod:43
2440 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2445 #: ../cat/virt-ls.pod:45
2446 msgid "List all public-writable directories in a Linux virtual machine:"
2450 #: ../cat/virt-ls.pod:47
2453 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2458 #: ../cat/virt-ls.pod:49
2459 msgid "List all Unix domain sockets in a Linux virtual machine:"
2463 #: ../cat/virt-ls.pod:51
2466 " virt-ls -lR -d guest / | grep '^s'\n"
2471 #: ../cat/virt-ls.pod:53
2472 msgid "List all regular files with filenames ending in '.png':"
2476 #: ../cat/virt-ls.pod:55
2479 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2484 #: ../cat/virt-ls.pod:57
2485 msgid "To display files larger than 10MB in home directories:"
2489 #: ../cat/virt-ls.pod:59
2492 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2497 #: ../cat/virt-ls.pod:61
2498 msgid "Find everything modified in the last 7 days:"
2502 #: ../cat/virt-ls.pod:63
2505 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2510 #: ../cat/virt-ls.pod:65
2511 msgid "Find regular files modified in the last 24 hours:"
2515 #: ../cat/virt-ls.pod:67
2518 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2523 #: ../cat/virt-ls.pod:69
2524 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2528 #: ../cat/virt-ls.pod:71
2530 "Find the differences between files in a guest and an earlier snapshot of the "
2535 #: ../cat/virt-ls.pod:74
2538 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2539 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2540 " diff -u old new | less\n"
2545 #: ../cat/virt-ls.pod:78
2547 "The commands above won't find files where the content has changed but the "
2548 "metadata (eg. file size and modification date) is the same. To do that, you "
2549 "need to add the I<--checksum> parameter to both C<virt-ls> commands. I<--"
2550 "checksum> can be quite slow since it has to read and compute a checksum of "
2551 "every regular file in the virtual machine."
2555 #: ../cat/virt-ls.pod:84
2556 msgid "OUTPUT MODES"
2560 #: ../cat/virt-ls.pod:86
2562 "C<virt-ls> has four output modes, controlled by different combinations of "
2563 "the I<-l> and I<-R> options."
2567 #: ../cat/virt-ls.pod:89
2568 msgid "SIMPLE LISTING"
2572 #: ../cat/virt-ls.pod:91
2573 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2577 #: ../cat/virt-ls.pod:93
2580 " $ virt-ls -d guest /\n"
2588 #: ../cat/virt-ls.pod:98
2591 msgid "LONG LISTING"
2595 #: ../cat/virt-ls.pod:100
2597 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2598 "(more specifically, like the C<guestfs_ll> function)."
2602 #: ../cat/virt-ls.pod:103
2605 " $ virt-ls -l -d guest /\n"
2607 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
2608 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
2614 #: ../cat/virt-ls.pod:109
2616 "Note that while this is useful for displaying a directory, do not try "
2617 "parsing this output in another program. Use L</RECURSIVE LONG LISTING> "
2622 #: ../cat/virt-ls.pod:113
2623 msgid "RECURSIVE LISTING"
2627 #: ../cat/virt-ls.pod:115
2629 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2630 "and directories recursively:"
2634 #: ../cat/virt-ls.pod:118
2637 " $ virt-ls -R -d guest /tmp\n"
2645 #: ../cat/virt-ls.pod:123
2647 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2648 "converts C<\\0> characters to C<\\n>."
2652 #: ../cat/virt-ls.pod:126
2653 msgid "RECURSIVE LONG LISTING"
2657 #: ../cat/virt-ls.pod:128
2659 "Using I<-lR> options together changes the output to display directories "
2660 "recursively, with file stats, and optionally other features such as "
2661 "checksums and extended attributes."
2665 #: ../cat/virt-ls.pod:132
2667 "Most of the interesting features of C<virt-ls> are only available when using "
2672 #: ../cat/virt-ls.pod:135
2674 "The fields are normally space-separated. Filenames are B<not> quoted, so "
2675 "you cannot use the output in another program (because filenames can contain "
2676 "spaces and other unsafe characters). If the guest was untrusted and someone "
2677 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2678 "on you by creating filenames with embedded newline characters. To B<safely> "
2679 "parse the output in another program, use the I<--csv> (Comma-Separated "
2684 #: ../cat/virt-ls.pod:143
2686 "Note that this output format is completely unrelated to the C<ls -lR> "
2691 #: ../cat/virt-ls.pod:146
2694 " $ virt-ls -lR -d guest /bin\n"
2695 " d 0555 4096 /bin\n"
2696 " - 0755 123 /bin/alsaunmute\n"
2697 " - 0755 28328 /bin/arch\n"
2698 " l 0777 4 /bin/awk -> gawk\n"
2699 " - 0755 27216 /bin/basename\n"
2700 " - 0755 943360 /bin/bash\n"
2706 #: ../cat/virt-ls.pod:155
2707 msgid "These basic fields are always shown:"
2711 #: ../cat/virt-ls.pod:159
2718 #: ../cat/virt-ls.pod:161
2720 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2721 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2722 "link), C<s> (socket) or C<u> (unknown)."
2726 #: ../cat/virt-ls.pod:171
2733 #: ../cat/virt-ls.pod:173
2734 msgid "The Unix permissions, displayed as a 4 digit octal number."
2738 #: ../cat/virt-ls.pod:175
2745 #: ../cat/virt-ls.pod:177
2747 "The size of the file. This is shown in bytes unless I<-h> or I<--human-"
2748 "readable> option is given, in which case this is shown as a human-readable "
2753 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4245
2758 #: ../cat/virt-ls.pod:183
2759 msgid "The full path of the file or directory."
2763 #: ../cat/virt-ls.pod:185
2770 #: ../cat/virt-ls.pod:187
2771 msgid "For symbolic links only, the link target."
2775 #: ../cat/virt-ls.pod:191
2777 "In I<-lR> mode, additional command line options enable the display of more "
2782 #: ../cat/virt-ls.pod:194
2784 "With the I<--uids> flag, these additional fields are displayed before the "
2789 #: ../cat/virt-ls.pod:199
2796 #: ../cat/virt-ls.pod:201
2803 #: ../cat/virt-ls.pod:203
2805 "The UID and GID of the owner of the file (displayed numerically). Note "
2806 "these only make sense in the context of a Unix-like guest."
2810 #: ../cat/virt-ls.pod:208
2811 msgid "With the I<--times> flag, these additional fields are displayed:"
2815 #: ../cat/virt-ls.pod:212
2822 #: ../cat/virt-ls.pod:214
2823 msgid "The time of last access."
2827 #: ../cat/virt-ls.pod:216
2834 #: ../cat/virt-ls.pod:218
2835 msgid "The time of last modification."
2839 #: ../cat/virt-ls.pod:220
2846 #: ../cat/virt-ls.pod:222
2847 msgid "The time of last status change."
2851 #: ../cat/virt-ls.pod:226
2853 "The time fields are displayed as string dates and times, unless one of the "
2854 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2858 #: ../cat/virt-ls.pod:229
2859 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2863 #: ../cat/virt-ls.pod:233
2865 #| msgid "zero-device"
2867 msgstr "zero-device"
2870 #: ../cat/virt-ls.pod:235
2872 "The device containing the file (displayed as major:minor). This may not "
2873 "match devices as known to the guest."
2877 #: ../cat/virt-ls.pod:238
2882 #: ../cat/virt-ls.pod:240
2883 msgid "The inode number."
2887 #: ../cat/virt-ls.pod:242
2894 #: ../cat/virt-ls.pod:244
2895 msgid "The number of hard links."
2899 #: ../cat/virt-ls.pod:246
2904 #: ../cat/virt-ls.pod:248
2906 "For block and char special files, the device (displayed as major:minor)."
2910 #: ../cat/virt-ls.pod:251
2912 #| msgid "C<blocksize>"
2914 msgstr "C<blocksize>"
2917 #: ../cat/virt-ls.pod:253
2918 msgid "The number of 512 byte blocks allocated to the file."
2922 #: ../cat/virt-ls.pod:257
2924 "With the I<--checksum> flag, the checksum of the file contents is shown "
2925 "(only for regular files). Computing file checksums can take a considerable "
2930 #: ../cat/virt-ls.pod:280
2933 msgid "B<--checksum>"
2937 #: ../cat/virt-ls.pod:282
2938 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2942 #: ../cat/virt-ls.pod:284
2944 "Display checksum over file contents for regular files. With no argument, "
2945 "this defaults to using I<md5>. Using an argument, you can select the "
2946 "checksum type to use."
2950 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2951 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2952 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2954 "This option only has effect in I<-lR> output mode. See L</RECURSIVE LONG "
2959 #: ../cat/virt-ls.pod:316
2961 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2962 "so you cannot see what you are typing. If you are not worried about Tempest "
2963 "attacks and there is no one else in the room you can specify this flag to "
2964 "see what you are typing."
2968 #: ../cat/virt-ls.pod:321
2970 #| msgid "B<--no-dest-paths>"
2971 msgid "B<--extra-stats>"
2972 msgstr "B<--no-dest-paths>"
2975 #: ../cat/virt-ls.pod:323
2976 msgid "Display extra stats."
2980 #: ../cat/virt-ls.pod:339
2983 #| " guestfish --format=raw -a disk.img\n"
2986 " virt-ls --format=raw -a disk.img /dir\n"
2989 " guestfish --format=raw -a disk.img\n"
2993 #: ../cat/virt-ls.pod:343
2996 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2999 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
3002 " guestfish --format=raw -a disk.img --format -a another.img\n"
3006 #: ../cat/virt-ls.pod:356
3007 msgid "Display file sizes in human-readable format."
3011 #: ../cat/virt-ls.pod:370
3016 #: ../cat/virt-ls.pod:372
3018 #| msgid "B<--live>"
3019 msgid "B<--recursive>"
3023 #: ../cat/virt-ls.pod:374
3025 "Select the mode. With neither of these options, C<virt-ls> produces a "
3026 "simple, flat list of the files in the named directory. See L</SIMPLE "
3031 #: ../cat/virt-ls.pod:378
3033 "C<virt-ls -l> produces a \"long listing\", which shows more detail. See L</"
3038 #: ../cat/virt-ls.pod:381
3040 "C<virt-ls -R> produces a recursive list of files starting at the named "
3041 "directory. See L</RECURSIVE LISTING>."
3045 #: ../cat/virt-ls.pod:384
3047 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
3048 "parsed. See L</RECURSIVE LONG LISTING>."
3052 #: ../cat/virt-ls.pod:387
3054 #| msgid "B<--live>"
3059 #: ../cat/virt-ls.pod:389
3060 msgid "Display time fields."
3064 #: ../cat/virt-ls.pod:394
3066 #| msgid "B<--echo-keys>"
3067 msgid "B<--time-days>"
3068 msgstr "B<--echo-keys>"
3071 #: ../cat/virt-ls.pod:396
3072 msgid "Display time fields as days before now (negative if in the future)."
3076 #: ../cat/virt-ls.pod:398
3078 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
3079 "of the file is between 0 and 86399 seconds."
3083 #: ../cat/virt-ls.pod:404
3085 #| msgid "B<--live>"
3086 msgid "B<--time-relative>"
3090 #: ../cat/virt-ls.pod:406
3091 msgid "Display time fields as seconds before now (negative if in the future)."
3095 #: ../cat/virt-ls.pod:411
3097 #| msgid "I<--timeout N>"
3099 msgstr "I<--timeout N>"
3102 #: ../cat/virt-ls.pod:413
3103 msgid "Display time fields as seconds since the Unix epoch."
3107 #: ../cat/virt-ls.pod:418
3114 #: ../cat/virt-ls.pod:420
3115 msgid "Display UID and GID fields."
3119 #: ../cat/virt-ls.pod:445
3120 msgid "Previous versions of virt-ls allowed you to write either:"
3124 #: ../cat/virt-ls.pod:447
3127 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
3130 " virt-ls disk.img [disk.img ...] /dir\n"
3133 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
3137 #: ../cat/virt-ls.pod:451
3140 #| " inspect-get-hostname root\n"
3143 " virt-ls guestname /dir\n"
3146 " inspect-get-hostname корінь\n"
3150 #: ../cat/virt-ls.pod:497
3153 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3154 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3155 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3157 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
3158 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3159 "L<http://libguestfs.org/>."
3161 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3162 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3163 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3166 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
3167 #: ../rescue/virt-rescue.pod:302
3169 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
3170 msgid "Copyright (C) 2009-2011 Red Hat Inc."
3171 msgstr "© Red Hat Inc., 2009–2010"
3174 #: ../clone/virt-sysprep.pod:5
3176 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
3180 #: ../clone/virt-sysprep.pod:9
3183 #| " virt-list-partitions [--options] domname\n"
3186 " virt-sysprep [--options] -d domname\n"
3189 " virt-list-partitions [--параметри] назва_домену\n"
3193 #: ../clone/virt-sysprep.pod:11
3196 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
3199 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
3202 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
3206 #: ../clone/virt-sysprep.pod:15
3208 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
3209 "can be made from it. Steps in this process include removing SSH host keys, "
3210 "removing persistent network MAC configuration, and removing user accounts. "
3211 "Each step can be enabled or disabled as required."
3215 #: ../clone/virt-sysprep.pod:21
3217 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3218 "customization by the system administrator."
3222 #: ../clone/virt-sysprep.pod:24
3224 "Virt-sysprep modifies the guest or disk image I<in place>. The guest must "
3225 "be shut down. If you want to preserve the existing contents of the guest, "
3226 "you I<must copy or clone the disk first>. See L</COPYING AND CLONING> below."
3230 #: ../clone/virt-sysprep.pod:29
3232 "\"Sysprep\" stands for \"system preparation\" tool. The name comes from the "
3233 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3234 "machines in preparation for cloning them. Having said that, virt-sysprep "
3235 "does I<not> currently work on Microsoft Windows guests. We plan to support "
3236 "Windows sysprepping in a future version, and we already have code to do it."
3240 #: ../clone/virt-sysprep.pod:70
3242 #| msgid "B<--help>"
3243 msgid "B<--enable=...>"
3247 #: ../clone/virt-sysprep.pod:72
3249 "Choose which sysprep operations to perform. Give a comma-separated list of "
3250 "operations, for example:"
3254 #: ../clone/virt-sysprep.pod:75
3257 " --enable=ssh-hostkeys,udev-persistent-net\n"
3262 #: ../clone/virt-sysprep.pod:77
3264 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3268 #: ../clone/virt-sysprep.pod:79
3270 "If the I<--enable> option is not given, then we default to trying all "
3271 "possible sysprep operations. But some sysprep operations are skipped for "
3276 #: ../clone/virt-sysprep.pod:83
3278 "Use I<--list-operations> to list operations supported by a particular "
3279 "version of virt-sysprep."
3283 #: ../clone/virt-sysprep.pod:86
3285 "See L</OPERATIONS> below for a list and an explanation of each operation."
3289 #: ../clone/virt-sysprep.pod:100
3292 #| " guestfish --format=raw -a disk.img\n"
3295 " virt-sysprep --format=raw -a disk.img\n"
3298 " guestfish --format=raw -a disk.img\n"
3302 #: ../clone/virt-sysprep.pod:104
3305 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3308 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3311 " guestfish --format=raw -a disk.img --format -a another.img\n"
3315 #: ../clone/virt-sysprep.pod:113
3316 msgid "B<--hostname> newhostname"
3320 #: ../clone/virt-sysprep.pod:115
3322 "Change the hostname. See the L</hostname> operation below. If not given, "
3323 "defaults to C<localhost.localdomain>."
3327 #: ../clone/virt-sysprep.pod:118
3329 #| msgid "B<--listen>"
3330 msgid "B<--list-operations>"
3331 msgstr "B<--listen>"
3334 #: ../clone/virt-sysprep.pod:120
3335 msgid "List the operations supported by the virt-sysprep program."
3339 #: ../clone/virt-sysprep.pod:140
3346 #: ../clone/virt-sysprep.pod:142
3348 "If the I<--enable> option is I<not> given, then all sysprep operations in "
3349 "the list below are enabled, although some are skipped depending on the type "
3354 #: ../clone/virt-sysprep.pod:146
3356 "Operations can be individually enabled using the I<--enable> option. Use a "
3357 "comma-separated list, for example:"
3361 #: ../clone/virt-sysprep.pod:149
3364 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3369 #: ../clone/virt-sysprep.pod:151
3371 "To list the operations supported by the current version of virt-sysprep, use "
3372 "I<--list-operations>."
3376 #: ../clone/virt-sysprep.pod:154
3381 #: ../clone/virt-sysprep.pod:156
3383 "This changes the hostname of the guest to the value given in the I<--"
3384 "hostname> parameter."
3388 #: ../clone/virt-sysprep.pod:159
3390 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3391 "C<localhost.localdomain>."
3395 #: ../clone/virt-sysprep.pod:162
3400 #: ../clone/virt-sysprep.pod:164
3402 "Remove HWADDR (hard-coded MAC address) configuration. For Fedora and Red "
3403 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3407 #: ../clone/virt-sysprep.pod:167
3408 msgid "ssh-hostkeys"
3412 #: ../clone/virt-sysprep.pod:169
3413 msgid "This erases the SSH host keys in the guest."
3417 #: ../clone/virt-sysprep.pod:171
3419 "The SSH host keys are regenerated (differently) next time the guest is "
3424 #: ../clone/virt-sysprep.pod:174
3426 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3427 "stark warning about the host key changing:"
3431 #: ../clone/virt-sysprep.pod:177
3434 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3435 " @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @\n"
3436 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3437 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3442 #: ../clone/virt-sysprep.pod:182
3443 msgid "udev-persistent-net"
3447 #: ../clone/virt-sysprep.pod:184
3449 "This erases udev persistent net rules which map the guest's existing MAC "
3450 "address to a fixed ethernet device (eg. eth0)."
3454 #: ../clone/virt-sysprep.pod:187
3456 "After a guest is cloned, the MAC address usually changes. Since the old MAC "
3457 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3458 "is assigned to a new name (eg. eth1) and this is usually undesirable. "
3459 "Erasing the udev persistent net rules avoids this."
3463 #: ../clone/virt-sysprep.pod:192
3464 msgid "COPYING AND CLONING"
3468 #: ../clone/virt-sysprep.pod:194
3470 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3471 "prepare a template from which guests can be cloned. There are many "
3472 "different ways to achieve this using the virt tools, and this section is "
3473 "just an introduction."
3477 #: ../clone/virt-sysprep.pod:199
3478 msgid "A virtual machine (when switched off) consists of two parts:"
3482 #: ../clone/virt-sysprep.pod:203
3483 msgid "I<configuration>"
3487 #: ../clone/virt-sysprep.pod:205
3489 "The configuration or description of the guest. eg. The libvirt XML (see "
3490 "C<virsh dumpxml>), the running configuration of the guest, or another "
3491 "external format like OVF."
3495 #: ../clone/virt-sysprep.pod:209
3496 msgid "Some configuration items that might need to be changed:"
3500 #: ../clone/virt-sysprep.pod:215
3507 #: ../clone/virt-sysprep.pod:219 ../clone/virt-sysprep.pod:246
3512 #: ../clone/virt-sysprep.pod:223
3514 #| msgid "is-blockdev"
3515 msgid "path to block device(s)"
3516 msgstr "is-blockdev"
3519 #: ../clone/virt-sysprep.pod:227
3520 msgid "network card MAC address"
3524 #: ../clone/virt-sysprep.pod:231
3526 #| msgid "is-blockdev"
3527 msgid "I<block device(s)>"
3528 msgstr "is-blockdev"
3531 #: ../clone/virt-sysprep.pod:233
3533 "One or more hard disk images, themselves containing files, directories, "
3534 "applications, kernels, configuration, etc."
3538 #: ../clone/virt-sysprep.pod:236
3539 msgid "Some things inside the block devices that might need to be changed:"
3543 #: ../clone/virt-sysprep.pod:242
3544 msgid "hostname and other net configuration"
3548 #: ../clone/virt-sysprep.pod:250
3549 msgid "SSH host keys"
3553 #: ../clone/virt-sysprep.pod:254
3554 msgid "Windows unique security ID (SID)"
3558 #: ../clone/virt-sysprep.pod:258
3559 msgid "Puppet registration"
3563 #: ../clone/virt-sysprep.pod:264
3564 msgid "COPYING THE BLOCK DEVICE"
3568 #: ../clone/virt-sysprep.pod:266
3570 "Starting with an original guest, you probably wish to copy the guest block "
3571 "device and its configuration to make a template. Then once you are happy "
3572 "with the template, you will want to make many clones from it."
3576 #: ../clone/virt-sysprep.pod:271
3582 " original guest --------> template ---------->\n"
3583 " \\------> cloned\n"
3584 " \\-----> guests\n"
3590 #: ../clone/virt-sysprep.pod:279
3592 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3597 #: ../clone/virt-sysprep.pod:282
3601 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
3602 #| " const char *device,\n"
3603 #| " const char *key,\n"
3604 #| " int keyslot,\n"
3605 #| " const char *cipher);\n"
3609 " original guest --------> template ---------->\n"
3610 " \\------> cloned\n"
3611 " \\-----> guests\n"
3616 " guestfs_luks_format_cipher (guestfs_h *g,\n"
3617 " const char *device,\n"
3618 " const char *key,\n"
3620 " const char *cipher);\n"
3624 #: ../clone/virt-sysprep.pod:288
3625 msgid "There are some smarter (and faster) ways too:"
3629 #: ../clone/virt-sysprep.pod:294
3633 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
3634 #| " const char *device,\n"
3635 #| " const char *key,\n"
3636 #| " int keyslot,\n"
3637 #| " const char *cipher);\n"
3641 " template ---------->\n"
3642 " \\------> cloned\n"
3643 " \\-----> guests\n"
3648 " guestfs_luks_format_cipher (guestfs_h *g,\n"
3649 " const char *device,\n"
3650 " const char *key,\n"
3652 " const char *cipher);\n"
3656 #: ../clone/virt-sysprep.pod:300
3658 "Use the block device as a backing file and create a snapshot on top for each "
3659 "guest. The advantage is that you don't need to copy the block device (very "
3660 "fast) and only changes are stored (less storage required)."
3664 #: ../clone/virt-sysprep.pod:305
3666 "Note that writing to the backing file once you have created guests on top of "
3667 "it is not possible: you will corrupt the guests."
3671 #: ../clone/virt-sysprep.pod:308
3673 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3674 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option). Some "
3675 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3676 "also create cheap snapshots from files or LUNs."
3680 #: ../clone/virt-sysprep.pod:316
3681 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3685 #: ../clone/virt-sysprep.pod:320
3686 msgid "Prepare your template using L<virt-sparsify(1)>. See below."
3690 #: ../clone/virt-sysprep.pod:324
3695 #: ../clone/virt-sysprep.pod:326
3697 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3698 "and/or modify the external libvirt configuration of a guest. It will reset "
3699 "the name, UUID and MAC address of the guest in the libvirt XML."
3703 #: ../clone/virt-sysprep.pod:331
3705 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3706 "image. This was the original motivation to write virt-sysprep."
3710 #: ../clone/virt-sysprep.pod:334
3715 #: ../clone/virt-sysprep.pod:336
3719 " original guest --------> template\n"
3724 #: ../clone/virt-sysprep.pod:339
3726 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3727 "it easier to compress and/or faster to copy."
3731 #: ../clone/virt-sysprep.pod:342
3733 "Notice that since virt-sparsify also copies the image, you can use it to "
3734 "make the initial copy (instead of C<dd>)."
3738 #: ../clone/virt-sysprep.pod:345
3743 #: ../clone/virt-sysprep.pod:347
3747 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
3748 #| " const char *device,\n"
3749 #| " const char *key,\n"
3750 #| " int keyslot,\n"
3751 #| " const char *cipher);\n"
3755 " template ---------->\n"
3756 " \\------> cloned\n"
3757 " \\-----> guests\n"
3762 " guestfs_luks_format_cipher (guestfs_h *g,\n"
3763 " const char *device,\n"
3764 " const char *key,\n"
3766 " const char *cipher);\n"
3770 #: ../clone/virt-sysprep.pod:353
3772 "If you want to give people cloned guests, but let them pick the size of the "
3773 "guest themselves (eg. depending on how much they are prepared to pay for "
3774 "disk space), then instead of copying the template, you can run L<virt-resize"
3775 "(1)>. Virt-resize performs a copy and resize, and thus is ideal for cloning "
3776 "guests from a template."
3780 #: ../clone/virt-sysprep.pod:368
3781 msgid "This program returns 0 on success, or 1 if there was an error."
3785 #: ../clone/virt-sysprep.pod:372
3788 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
3789 #| "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
3790 #| "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3792 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3793 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<qemu-img(1)>, L<lvcreate(8)"
3794 ">, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3796 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
3797 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
3798 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3801 #: ../df/virt-df.pod:5
3802 msgid "virt-df - Display free space on virtual filesystems"
3806 #: ../df/virt-df.pod:9
3809 #| " virt-list-partitions [--options] domname\n"
3812 " virt-df [--options]\n"
3815 " virt-list-partitions [--параметри] назва_домену\n"
3819 #: ../df/virt-df.pod:11
3822 #| " virt-list-partitions [--options] domname\n"
3825 " virt-df [--options] -d domname\n"
3828 " virt-list-partitions [--параметри] назва_домену\n"
3832 #: ../df/virt-df.pod:13
3835 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
3838 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3841 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
3845 #: ../df/virt-df.pod:17
3848 #| " virt-list-partitions [--options] domname\n"
3851 " virt-df [--options] domname\n"
3854 " virt-list-partitions [--параметри] назва_домену\n"
3858 #: ../df/virt-df.pod:19
3861 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
3864 " virt-df [--options] disk.img [disk.img ...]\n"
3867 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
3871 #: ../df/virt-df.pod:23
3873 "C<virt-df> is a command line tool to display free space on virtual machine "
3874 "filesystems. Unlike other tools, it doesn't just display the size of disk "
3875 "allocated to a virtual machine, but can look inside disk images to see how "
3876 "much space is really being used."
3880 #: ../df/virt-df.pod:28
3882 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3883 "to get a list of all active and inactive guests, and performs a C<df>-type "
3884 "operation on each one in turn, printing out the results."
3888 #: ../df/virt-df.pod:32
3890 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3891 "type operation on either the single named libvirt domain, or on the disk "
3892 "image(s) listed on the command line (which must all belong to a single VM). "
3893 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3894 "guest>. If you want to run on multiple guests, then you have to invoke "
3895 "C<virt-df> multiple times."
3899 #: ../df/virt-df.pod:39
3901 "Use the I<--csv> option to get a format which can be easily parsed by other "
3902 "programs. Other options are similar to the standard L<df(1)> command."
3906 #: ../df/virt-df.pod:45
3908 "Show disk usage for a single libvirt guest called C<F14x64>. Make the "
3909 "output human-readable:"
3913 #: ../df/virt-df.pod:48
3916 " # virt-df -d F14x64 -h\n"
3917 " Filesystem Size Used Available Use%\n"
3918 " F14x64:/dev/sda1 484M 66M 393M 14%\n"
3919 " F14x64:/dev/vg_f13x64/lv_root 7.4G 3.4G 4.0G 46%\n"
3924 #: ../df/virt-df.pod:53
3925 msgid "Show disk usage for a disk image file called C<test.img>:"
3929 #: ../df/virt-df.pod:55
3932 " $ virt-df -a test1.img\n"
3933 " Filesystem 1K-blocks Used Available Use%\n"
3934 " test1.img:/dev/sda1 99099 1551 92432 2%\n"
3939 #: ../df/virt-df.pod:112
3942 #| " guestfish --format=raw -a disk.img\n"
3945 " virt-df --format=raw -a disk.img\n"
3948 " guestfish --format=raw -a disk.img\n"
3952 #: ../df/virt-df.pod:116
3955 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3958 " virt-df --format=raw -a disk.img --format -a another.img\n"
3961 " guestfish --format=raw -a disk.img --format -a another.img\n"
3965 #: ../df/virt-df.pod:129
3966 msgid "Print sizes in human-readable format."
3970 #: ../df/virt-df.pod:131
3971 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3975 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
3980 #: ../df/virt-df.pod:135
3982 #| msgid "B<--live>"
3987 #: ../df/virt-df.pod:137
3988 msgid "Print inodes instead of blocks."
3992 #: ../df/virt-df.pod:139
3994 #| msgid "B<--merge>"
3995 msgid "B<--one-per-guest>"
3999 #: ../df/virt-df.pod:141
4001 "Run one libguestfs appliance per guest. Normally C<virt-df> will add the "
4002 "disks from several guests to a single libguestfs appliance."
4006 #: ../df/virt-df.pod:144
4007 msgid "You might use this option in the following circumstances:"
4011 #: ../df/virt-df.pod:150
4013 "If you think an untrusted guest might actively try to exploit the libguestfs "
4014 "appliance kernel, then this prevents one guest from interfering with the "
4015 "stats printed for another guest."
4019 #: ../df/virt-df.pod:156
4021 "If the kernel has a bug which stops it from accessing a filesystem in one "
4022 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
4023 "and report stats for further guests."
4027 #: ../df/virt-df.pod:165
4029 "Print UUIDs instead of names. This is useful for following a guest even "
4030 "when the guest is migrated or renamed, or when two guests happen to have the "
4035 #: ../df/virt-df.pod:169
4037 "Note that only domains that we fetch from libvirt come with UUIDs. For disk "
4038 "images, we still print the disk image name even when this option is "
4043 #: ../df/virt-df.pod:229
4045 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4050 #: ../edit/virt-edit.pod:5
4051 msgid "virt-edit - Edit a file in a virtual machine"
4055 #: ../edit/virt-edit.pod:9
4058 #| " virt-list-partitions [--options] domname\n"
4061 " virt-edit [--options] -d domname file [file ...]\n"
4064 " virt-list-partitions [--параметри] назва_домену\n"
4068 #: ../edit/virt-edit.pod:11
4071 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
4074 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4077 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
4081 #: ../edit/virt-edit.pod:13
4084 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4089 #: ../edit/virt-edit.pod:17
4092 " virt-edit domname file\n"
4097 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4100 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
4103 " virt-edit disk.img [disk.img ...] file\n"
4106 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
4110 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4111 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4112 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
4113 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4115 msgstr "ПОПЕРЕДЖЕННЯ"
4118 #: ../edit/virt-edit.pod:23
4120 "You must I<not> use C<virt-edit> on live virtual machines. If you do this, "
4121 "you risk disk corruption in the VM. C<virt-edit> tries to stop you from "
4122 "doing this, but doesn't catch all cases."
4126 #: ../edit/virt-edit.pod:29
4128 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4129 "exists in the named virtual machine (or disk image)."
4133 #: ../edit/virt-edit.pod:32
4135 "Multiple filenames can be given, in which case they are each edited in "
4136 "turn. Each filename must be a full path, starting at the root directory "
4137 "(starting with '/')."
4141 #: ../edit/virt-edit.pod:36
4142 msgid "If you want to just view a file, use L<virt-cat(1)>."
4146 #: ../edit/virt-edit.pod:38
4148 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4149 "USING GUESTFISH> below)."
4153 #: ../edit/virt-edit.pod:41
4155 "C<virt-edit> cannot be used to create a new file. L<guestfish(1)> can do "
4156 "that and much more."
4160 #: ../edit/virt-edit.pod:46
4161 msgid "Edit the named files interactively:"
4165 #: ../edit/virt-edit.pod:48
4168 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4173 #: ../edit/virt-edit.pod:50
4176 " virt-edit -d mydomain /etc/passwd\n"
4181 #: ../edit/virt-edit.pod:52
4182 msgid "For Windows guests, some Windows paths are understood:"
4186 #: ../edit/virt-edit.pod:54
4189 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4194 #: ../edit/virt-edit.pod:56
4196 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4197 "INTERACTIVE EDITING> below). To change the init default level to 5:"
4201 #: ../edit/virt-edit.pod:60
4204 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4209 #: ../edit/virt-edit.pod:81
4210 msgid "B<-b> extension"
4214 #: ../edit/virt-edit.pod:83
4215 msgid "B<--backup> extension"
4219 #: ../edit/virt-edit.pod:85
4221 "Create a backup of the original file I<in the guest disk image>. The backup "
4222 "has the original filename with C<extension> added."
4226 #: ../edit/virt-edit.pod:88
4228 "Usually the first character of C<extension> would be a dot C<.> so you would "
4233 #: ../edit/virt-edit.pod:91
4236 " virt-edit -b .orig [etc]\n"
4241 #: ../edit/virt-edit.pod:93
4242 msgid "By default, no backup file is made."
4246 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4247 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
4248 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4249 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4251 msgstr "B<-c адреса>"
4254 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4255 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
4256 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4257 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4258 msgid "B<--connect URI>"
4259 msgstr "B<--connect адреса>"
4262 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4263 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4264 #: ../tools/virt-win-reg.pl:135
4266 "If you specify guest block devices directly, then libvirt is not used at all."
4270 #: ../edit/virt-edit.pod:114
4272 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4273 "off so you cannot see what you are typing. If you are not worried about "
4274 "Tempest attacks and there is no one else in the room you can specify this "
4275 "flag to see what you are typing."
4279 #: ../edit/virt-edit.pod:119
4284 #: ../edit/virt-edit.pod:121
4286 #| msgid "B<--help>"
4287 msgid "B<--expr> EXPR"
4291 #: ../edit/virt-edit.pod:123
4293 "Instead of launching the external editor, non-interactively apply the Perl "
4294 "expression C<EXPR> to each line in the file. See L</NON-INTERACTIVE "
4299 #: ../edit/virt-edit.pod:127
4301 "Be careful to properly quote the expression to prevent it from being altered "
4306 #: ../edit/virt-edit.pod:130
4307 msgid "Note that this option is only available when Perl 5 is installed."
4311 #: ../edit/virt-edit.pod:132
4313 #| msgid "B<--format=raw|qcow2|..>"
4314 msgid "B<--format> raw|qcow2|..."
4315 msgstr "B<--format=raw|qcow2|..>"
4318 #: ../edit/virt-edit.pod:143
4321 #| " guestfish --format=raw -a disk.img\n"
4324 " virt-edit --format=raw -a disk.img file\n"
4327 " guestfish --format=raw -a disk.img\n"
4331 #: ../edit/virt-edit.pod:147
4334 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
4337 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4340 " guestfish --format=raw -a disk.img --format -a another.img\n"
4344 #: ../edit/virt-edit.pod:181
4345 msgid "Previous versions of virt-edit allowed you to write either:"
4349 #: ../edit/virt-edit.pod:187
4352 #| " edit filename\n"
4355 " virt-edit guestname file\n"
4358 " edit назва_файла\n"
4362 #: ../edit/virt-edit.pod:195
4363 msgid "NON-INTERACTIVE EDITING"
4367 #: ../edit/virt-edit.pod:197
4369 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4370 "administrator can interactively edit the file."
4374 #: ../edit/virt-edit.pod:200
4376 "There are two ways also to use C<virt-edit> from scripts in order to make "
4377 "automated edits to files. (Note that although you I<can> use C<virt-edit> "
4378 "like this, it's less error-prone to write scripts directly using the "
4379 "libguestfs API and Augeas for configuration file editing.)"
4383 #: ../edit/virt-edit.pod:206
4385 "The first method is to temporarily set C<$EDITOR> to any script or program "
4386 "you want to run. The script is invoked as C<$EDITOR tmpfile> and it should "
4387 "update C<tmpfile> in place however it likes."
4391 #: ../edit/virt-edit.pod:210
4393 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4394 "short Perl snippet in the style of L<sed(1)>. For example to replace all "
4395 "instances of C<foo> with C<bar> in a file:"
4399 #: ../edit/virt-edit.pod:214
4402 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4407 #: ../edit/virt-edit.pod:216
4409 "The full power of Perl regular expressions can be used (see L<perlre(1)>). "
4410 "For example to delete root's password you could do:"
4414 #: ../edit/virt-edit.pod:219
4417 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4422 #: ../edit/virt-edit.pod:221
4424 "What really happens is that the snippet is evaluated as a Perl expression "
4425 "for each line of the file. The line, including the final C<\\n>, is passed "
4426 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4430 #: ../edit/virt-edit.pod:226
4432 "To delete a line, set C<$_> to the empty string. For example, to delete the "
4433 "C<apache> user account from the password file you can do:"
4437 #: ../edit/virt-edit.pod:229
4440 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4445 #: ../edit/virt-edit.pod:231
4447 "To insert a line, prepend or append it to C<$_>. However appending lines to "
4448 "the end of the file is rather difficult this way since there is no concept "
4449 "of \"last line of the file\" - your expression just doesn't get called "
4450 "again. You might want to use the first method (setting C<$EDITOR>) if you "
4455 #: ../edit/virt-edit.pod:237
4457 "The variable C<$lineno> contains the current line number. As is "
4458 "traditional, the first line in the file is number C<1>."
4462 #: ../edit/virt-edit.pod:240
4464 "The return value from the expression is ignored, but the expression may call "
4465 "C<die> in order to abort the whole program, leaving the original file "
4470 #: ../edit/virt-edit.pod:244
4472 "Remember when matching the end of a line that C<$_> may contain the final C<"
4473 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4474 "newline then neither of these. Thus to match or substitute some text at the "
4475 "end of a line, use this regular expression:"
4479 #: ../edit/virt-edit.pod:249
4482 " /some text(\\r?\\n)?$/\n"
4487 #: ../edit/virt-edit.pod:251
4489 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4490 "$_> itself (since that would remove all newlines from the file):"
4494 #: ../edit/virt-edit.pod:255
4497 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4502 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
4503 msgid "WINDOWS PATHS"
4507 #: ../edit/virt-edit.pod:259
4509 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4510 "paths (eg. C<E:\\foo\\bar.txt>)."
4514 #: ../edit/virt-edit.pod:262
4515 msgid "If and only if the guest is running Windows then:"
4519 #: ../edit/virt-edit.pod:268
4521 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
4522 "to the correct filesystem."
4526 #: ../edit/virt-edit.pod:273
4528 "Any backslash (C<\\>) characters in the path are replaced with forward "
4529 "slashes so that libguestfs can process it."
4533 #: ../edit/virt-edit.pod:278
4535 "The path is resolved case insensitively to locate the file that should be "
4540 #: ../edit/virt-edit.pod:283
4541 msgid "There are some known shortcomings:"
4545 #: ../edit/virt-edit.pod:289
4546 msgid "Some NTFS symbolic links may not be followed correctly."
4550 #: ../edit/virt-edit.pod:293
4551 msgid "NTFS junction points that cross filesystems are not followed."
4555 #: ../edit/virt-edit.pod:299
4557 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4558 "C<virt-edit> doesn't work."
4562 #: ../edit/virt-edit.pod:302
4563 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4567 #: ../edit/virt-edit.pod:304
4570 #| " guestfish --ro -d myguest -i\n"
4573 " guestfish --rw -i -d domname edit /file\n"
4576 " guestfish --ro -d myguest -i\n"
4580 #: ../edit/virt-edit.pod:306
4582 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4587 #: ../edit/virt-edit.pod:309
4589 "The command above uses libguestfs's guest inspection feature and so does not "
4590 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4591 "disk images that don't contain guests. To edit a file on a disk image "
4596 #: ../edit/virt-edit.pod:314
4599 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
4602 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4605 " guestfish --format=raw -a disk.img --format -a another.img\n"
4609 #: ../edit/virt-edit.pod:316
4611 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4612 "the disk image to edit, and C</file> is the full path to the file."
4616 #: ../edit/virt-edit.pod:320
4618 "C<virt-edit> cannot create new files. Use the guestfish commands C<touch>, "
4619 "C<write> or C<upload> instead:"
4623 #: ../edit/virt-edit.pod:323
4626 #| " guestfish --ro -d myguest -i\n"
4629 " guestfish --rw -i -d domname touch /newfile\n"
4632 " guestfish --ro -d myguest -i\n"
4636 #: ../edit/virt-edit.pod:325
4639 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4644 #: ../edit/virt-edit.pod:327
4647 " guestfish --rw -i -d domname upload localfile /newfile\n"
4652 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1118
4653 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
4654 #: ../src/guestfs.pod:3194 ../test-tool/libguestfs-test-tool.pod:95
4655 msgid "ENVIRONMENT VARIABLES"
4656 msgstr "ЗМІННІ СЕРЕДОВИЩА"
4659 #: ../edit/virt-edit.pod:333
4666 #: ../edit/virt-edit.pod:335
4668 "If set, this string is used as the editor. It may contain arguments, eg. C<"
4673 #: ../edit/virt-edit.pod:338
4674 msgid "If not set, C<vi> is used."
4678 #: ../edit/virt-edit.pod:356
4681 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4682 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
4683 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4685 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4686 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4687 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4689 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4690 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
4691 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4694 #: ../erlang/examples/guestfs-erlang.pod:5
4695 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4699 #: ../erlang/examples/guestfs-erlang.pod:9
4702 " {ok, G} = guestfs:create(),\n"
4703 " ok = guestfs:add_drive_opts(G, Disk,\n"
4704 " [{format, \"raw\"}, {readonly, true}]),\n"
4705 " ok = guestfs:launch(G),\n"
4706 " [Device] = guestfs:list_devices(G),\n"
4707 " ok = guestfs:close(G).\n"
4712 #: ../erlang/examples/guestfs-erlang.pod:18
4714 "This manual page documents how to call libguestfs from the Erlang "
4715 "programming language. This page just documents the differences from the C "
4716 "API and gives some examples. If you are not familiar with using libguestfs, "
4717 "you also need to read L<guestfs(3)>."
4721 #: ../erlang/examples/guestfs-erlang.pod:23
4722 msgid "OPENING AND CLOSING THE HANDLE"
4726 #: ../erlang/examples/guestfs-erlang.pod:25
4728 "The Erlang bindings are implemented using an external program called C<erl-"
4729 "guestfs>. This program must be on the current PATH, or else you should "
4730 "specify the full path to the program:"
4734 #: ../erlang/examples/guestfs-erlang.pod:29
4737 #| " g = guestfs_create ();\n"
4740 " {ok, G} = guestfs:create().\n"
4743 " g = guestfs_create ();\n"
4747 #: ../erlang/examples/guestfs-erlang.pod:31
4750 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4755 #: ../erlang/examples/guestfs-erlang.pod:33
4756 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4760 #: ../erlang/examples/guestfs-erlang.pod:36
4761 msgid "To close the handle:"
4765 #: ../erlang/examples/guestfs-erlang.pod:38
4768 #| " g = guestfs_create ();\n"
4771 " ok = guestfs:close(G).\n"
4774 " g = guestfs_create ();\n"
4778 #: ../erlang/examples/guestfs-erlang.pod:40
4780 #| msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4781 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4782 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
4785 #: ../erlang/examples/guestfs-erlang.pod:42
4787 "For functions that take optional arguments, the first arguments are the non-"
4788 "optional ones. The last argument is a list of tuples supplying the "
4789 "remaining optional arguments."
4793 #: ../erlang/examples/guestfs-erlang.pod:46
4796 #| " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
4797 #| " va_list args);\n"
4800 " ok = guestfs:add_drive_opts(G, Disk,\n"
4801 " [{format, \"raw\"}, {readonly, true}]).\n"
4804 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
4809 #: ../erlang/examples/guestfs-erlang.pod:49
4810 msgid "If the last argument would be an empty list, you can also omit it:"
4814 #: ../erlang/examples/guestfs-erlang.pod:51
4817 #| " guestfs_add_drive_opts (g, filename, -1);\n"
4820 " ok = guestfs:add_drive_opts(G, Disk).\n"
4823 " guestfs_add_drive_opts (g, filename, -1);\n"
4827 #: ../erlang/examples/guestfs-erlang.pod:53
4828 msgid "RETURN VALUES AND ERRORS"
4832 #: ../erlang/examples/guestfs-erlang.pod:55
4834 "On success, most functions return a C<Result> term (which could be a list, "
4835 "string, tuple etc.). If there is nothing for the function to return, then "
4836 "the atom C<ok> is returned."
4840 #: ../erlang/examples/guestfs-erlang.pod:59
4841 msgid "On error, you would see one of the following tuples:"
4845 #: ../erlang/examples/guestfs-erlang.pod:63
4846 msgid "C<{error, Msg, Errno}>"
4850 #: ../erlang/examples/guestfs-erlang.pod:65
4851 msgid "This indicates an ordinary error from the function."
4855 #: ../erlang/examples/guestfs-erlang.pod:67
4857 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4862 #: ../erlang/examples/guestfs-erlang.pod:70
4863 msgid "C<Errno> can be zero. See L<guestfs(3)/guestfs_last_errno>."
4867 #: ../erlang/examples/guestfs-erlang.pod:72
4868 msgid "C<{unknown, Function}>"
4872 #: ../erlang/examples/guestfs-erlang.pod:74
4874 "This indicates that the function you called is not known. Generally this "
4875 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4876 "which you should not do."
4880 #: ../erlang/examples/guestfs-erlang.pod:78
4881 msgid "C<Function> is the name of the unknown function."
4885 #: ../erlang/examples/guestfs-erlang.pod:80
4886 msgid "C<{unknownarg, Arg}>"
4890 #: ../erlang/examples/guestfs-erlang.pod:82
4892 "This indicates that you called a function with optional arguments, with an "
4893 "unknown argument name."
4897 #: ../erlang/examples/guestfs-erlang.pod:85
4898 msgid "C<Arg> is the name of the unknown argument."
4902 #: ../erlang/examples/guestfs-erlang.pod:89
4903 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4904 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4905 #: ../python/examples/guestfs-python.pod:34
4906 #: ../ruby/examples/guestfs-ruby.pod:28
4907 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4911 #: ../erlang/examples/guestfs-erlang.pod:91
4912 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4913 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4914 #: ../python/examples/guestfs-python.pod:36
4915 #: ../ruby/examples/guestfs-ruby.pod:30
4922 #: ../erlang/examples/guestfs-erlang.pod:93
4923 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4924 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4925 #: ../python/examples/guestfs-python.pod:38
4926 #: ../ruby/examples/guestfs-ruby.pod:32
4927 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4931 #: ../erlang/examples/guestfs-erlang.pod:95
4932 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4933 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4934 #: ../python/examples/guestfs-python.pod:40
4935 #: ../ruby/examples/guestfs-ruby.pod:34
4942 #: ../erlang/examples/guestfs-erlang.pod:99
4945 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4946 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
4947 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4949 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4950 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4951 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>."
4953 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4954 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
4955 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4958 #: ../erlang/examples/guestfs-erlang.pod:110
4959 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4960 #: ../fish/guestfish.pod:1295 ../fish/virt-copy-in.pod:60
4961 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4962 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:319
4963 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
4964 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4965 #: ../python/examples/guestfs-python.pod:54
4966 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3333
4967 #: ../test-tool/libguestfs-test-tool.pod:106
4972 #: ../erlang/examples/guestfs-erlang.pod:112
4973 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4974 #: ../fish/guestfish.pod:1297 ../fish/virt-copy-in.pod:62
4975 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4976 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:321
4977 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4978 #: ../perl/examples/guestfs-perl.pod:54
4979 #: ../python/examples/guestfs-python.pod:56
4980 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3335
4981 #: ../test-tool/libguestfs-test-tool.pod:108
4982 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4986 #: ../erlang/examples/guestfs-erlang.pod:116
4987 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4989 #| msgid "Copyright (C) 2009 Red Hat Inc."
4990 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4991 msgstr "© Red Hat Inc., 2009"
4994 #: ../erlang/examples/guestfs-erlang.pod:118
4995 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4996 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4997 #: ../perl/examples/guestfs-perl.pod:60
4998 #: ../python/examples/guestfs-python.pod:62
4999 #: ../ruby/examples/guestfs-ruby.pod:56
5001 "The examples in this manual page may be freely copied, modified and "
5002 "distributed without any restrictions."
5006 #: ../erlang/examples/guestfs-erlang.pod:121
5007 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
5008 #: ../java/examples/guestfs-java.pod:69
5009 #: ../ocaml/examples/guestfs-ocaml.pod:102
5010 #: ../perl/examples/guestfs-perl.pod:63
5011 #: ../python/examples/guestfs-python.pod:65
5012 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3342
5014 "This library is free software; you can redistribute it and/or modify it "
5015 "under the terms of the GNU Lesser General Public License as published by the "
5016 "Free Software Foundation; either version 2 of the License, or (at your "
5017 "option) any later version."
5021 #: ../erlang/examples/guestfs-erlang.pod:126
5022 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
5023 #: ../java/examples/guestfs-java.pod:74
5024 #: ../ocaml/examples/guestfs-ocaml.pod:107
5025 #: ../perl/examples/guestfs-perl.pod:68
5026 #: ../python/examples/guestfs-python.pod:70
5027 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3347
5029 "This library is distributed in the hope that it will be useful, but WITHOUT "
5030 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
5031 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License "
5036 #: ../erlang/examples/guestfs-erlang.pod:131
5037 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
5038 #: ../java/examples/guestfs-java.pod:79
5039 #: ../ocaml/examples/guestfs-ocaml.pod:112
5040 #: ../perl/examples/guestfs-perl.pod:73
5041 #: ../python/examples/guestfs-python.pod:75
5042 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3352
5044 "You should have received a copy of the GNU Lesser General Public License "
5045 "along with this library; if not, write to the Free Software Foundation, "
5046 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
5050 #: ../examples/guestfs-examples.pod:5
5051 msgid "guestfs-examples - Examples of using libguestfs from C"
5055 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
5058 " #include <guestfs.h>\n"
5061 " #include <guestfs.h>\n"
5065 #: ../examples/guestfs-examples.pod:11
5068 " guestfs_h *g = guestfs_create ();\n"
5069 " guestfs_add_drive_ro (g, \"disk.img\");\n"
5070 " guestfs_launch (g);\n"
5075 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
5078 " cc prog.c -o prog -lguestfs\n"
5080 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5083 " cc prog.c -o prog -lguestfs\n"
5085 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5089 #: ../examples/guestfs-examples.pod:21
5091 "This manual page contains examples of calling libguestfs from the C "
5092 "programming language. If you are not familiar with using libguestfs, you "
5093 "also need to read L<guestfs(3)>."
5097 #: ../examples/guestfs-examples.pod:35
5100 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
5101 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
5102 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
5104 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
5105 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
5106 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5108 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
5109 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
5110 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
5113 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
5114 #: ../python/examples/guestfs-python.pod:60
5115 #: ../ruby/examples/guestfs-ruby.pod:54
5117 #| msgid "Copyright (C) 2009 Red Hat Inc."
5118 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
5119 msgstr "© Red Hat Inc., 2009"
5122 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
5127 #: ../examples/guestfs-recipes.pod:5
5129 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
5130 "here. The only way which works for both sorts of output is to just write "
5131 "the URL directly. Do NOT use L<...> for URLs."
5135 #: ../examples/guestfs-recipes.pod:9
5137 "We break with tradition here and don't use ALL CAPS for the section "
5138 "headings, as this makes them much easier to read."
5142 #: ../examples/guestfs-recipes.pod:16
5143 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
5147 #: ../examples/guestfs-recipes.pod:20
5149 "This page contains recipes for and links to things you can do using "
5150 "libguestfs, L<guestfish(1)> and the virt tools."
5154 #: ../examples/guestfs-recipes.pod:23
5155 msgid "Audit a virtual machine for setuid files"
5159 #: ../examples/guestfs-recipes.pod:25
5161 "The link below contains a small program which can be used to audit a Linux "
5162 "virtual machine to see what setuid and setgid files it contains."
5166 #: ../examples/guestfs-recipes.pod:28
5168 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
5173 #: ../examples/guestfs-recipes.pod:30
5174 msgid "Change the background image in a Windows XP VM"
5178 #: ../examples/guestfs-recipes.pod:32
5180 "The links below explain how to use L<guestfish(1)> to change the background "
5181 "image for a user of a Windows XP VM. Unfortunately the technique appears to "
5182 "be substantially different for each version of Windows."
5186 #: ../examples/guestfs-recipes.pod:37
5188 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
5189 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
5193 #: ../examples/guestfs-recipes.pod:40
5194 msgid "Cloning a virtual machine (Linux)"
5198 #: ../examples/guestfs-recipes.pod:42
5200 "The guestfish technique described in the link below works well for most "
5201 "Linux VMs. Depending on the Linux distro you may need to change the paths "
5206 #: ../examples/guestfs-recipes.pod:46
5208 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5213 #: ../examples/guestfs-recipes.pod:48
5215 "Avoid L<virt-clone(1)>. Currently what to do about virt-clone is under "
5220 #: ../examples/guestfs-recipes.pod:51
5221 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5225 #: ../examples/guestfs-recipes.pod:53
5226 msgid "Cloning a virtual machine (Windows)"
5230 #: ../examples/guestfs-recipes.pod:55
5232 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5233 "straightforward. Currently there is code in the Aeolus Oz project which "
5234 "does this (using libguestfs). As part of our review of the virt-clone tool, "
5235 "we may add sysprepping ability."
5239 #: ../examples/guestfs-recipes.pod:60
5241 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5242 "list/2011-May/msg00019.html"
5246 #: ../examples/guestfs-recipes.pod:63
5247 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5251 #: ../examples/guestfs-recipes.pod:65
5252 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5256 #: ../examples/guestfs-recipes.pod:67
5259 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5264 #: ../examples/guestfs-recipes.pod:69
5265 msgid "To export just a subdirectory, eg. C</files>, do:"
5269 #: ../examples/guestfs-recipes.pod:71
5272 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5277 #: ../examples/guestfs-recipes.pod:73
5278 msgid "Create empty disk images"
5282 #: ../examples/guestfs-recipes.pod:75
5284 "You can use the L<guestfish(1)> I<-N> option to create empty disk images. "
5285 "The useful guide below explains the options available."
5289 #: ../examples/guestfs-recipes.pod:78
5291 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5296 #: ../examples/guestfs-recipes.pod:80
5297 msgid "Dump raw filesystem content from inside a disk image or VM"
5301 #: ../examples/guestfs-recipes.pod:82
5303 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5304 "filesystem content from any filesystem in a disk image or a VM (even one "
5305 "which is encrypted or buried inside an LV):"
5309 #: ../examples/guestfs-recipes.pod:86
5312 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
5315 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5318 " guestfish --format=raw -a disk.img --format -a another.img\n"
5322 #: ../examples/guestfs-recipes.pod:88
5325 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5330 #: ../examples/guestfs-recipes.pod:90
5331 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5335 #: ../examples/guestfs-recipes.pod:92
5336 msgid "Edit grub configuration in a VM"
5340 #: ../examples/guestfs-recipes.pod:94
5341 msgid "You can use this to:"
5345 #: ../examples/guestfs-recipes.pod:100
5346 msgid "Fix a virtual machine that does not boot."
5350 #: ../examples/guestfs-recipes.pod:104
5351 msgid "Change which kernel is used to boot the VM."
5355 #: ../examples/guestfs-recipes.pod:108
5356 msgid "Change kernel command line options."
5360 #: ../examples/guestfs-recipes.pod:112
5361 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5365 #: ../examples/guestfs-recipes.pod:114
5368 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5373 #: ../examples/guestfs-recipes.pod:116
5375 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5380 #: ../examples/guestfs-recipes.pod:119
5383 " virt-rescue -d BrokenGuest\n"
5388 #: ../examples/guestfs-recipes.pod:121
5389 msgid "Export any directory from a VM"
5393 #: ../examples/guestfs-recipes.pod:123
5395 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5399 #: ../examples/guestfs-recipes.pod:126
5402 #| " copy-out /home .\n"
5405 " virt-copy-out -d Guest /home .\n"
5408 " copy-out /home .\n"
5412 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5413 #: ../fish/guestfish-actions.pod:1327 ../fish/guestfish-actions.pod:1592
5414 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:18
5415 #: ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:2457
5416 #: ../src/guestfs-actions.pod:3008 ../src/guestfs.pod:1670
5417 #: ../tools/virt-win-reg.pl:706
5422 #: ../examples/guestfs-recipes.pod:134
5424 "The final dot of the command is not a printing error. It means we want to "
5425 "copy out to the current directory."
5429 #: ../examples/guestfs-recipes.pod:139
5430 msgid "This creates a directory called C<home> under the current directory."
5434 #: ../examples/guestfs-recipes.pod:143
5436 "If the guest is a Windows guest then you can use drive letters and "
5437 "backslashes, but you must prefix the path with C<win:> and quote it to "
5438 "protect it from the shell, like this:"
5442 #: ../examples/guestfs-recipes.pod:147
5445 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5450 #: ../examples/guestfs-recipes.pod:149
5451 msgid "To get the output as a compressed tarball, do:"
5455 #: ../examples/guestfs-recipes.pod:151
5458 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5463 #: ../examples/guestfs-recipes.pod:153
5465 "Although it sounds tempting, this is usually not a reliable way to get a "
5466 "backup from a running guest. See the entry in the FAQ: http://libguestfs."
5467 "org/FAQ.html#backup"
5471 #: ../examples/guestfs-recipes.pod:157
5472 msgid "Find out which user is using the most space"
5476 #: ../examples/guestfs-recipes.pod:159
5478 "This simple script examines a Linux guest to find out which user is using "
5479 "the most space in their home directory:"
5483 #: ../examples/guestfs-recipes.pod:162
5486 #| " #!/usr/bin/guestfish -f\n"
5492 " #!/usr/bin/guestfish -f\n"
5496 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5499 #| " set-qemu qemu\n"
5509 #: ../examples/guestfs-recipes.pod:166
5518 #: ../examples/guestfs-recipes.pod:169
5521 #| " guestfish --ro -d myguest -i\n"
5524 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5527 " guestfish --ro -d myguest -i\n"
5531 #: ../examples/guestfs-recipes.pod:171
5534 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5535 " echo -n \"$dir/$d\"\n"
5537 " guestfish --remote du \"$dir/$d\";\n"
5538 " done | sort -nr -k 2\n"
5543 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5546 " guestfish --remote exit\n"
5551 #: ../examples/guestfs-recipes.pod:179
5552 msgid "Get DHCP address from a VM"
5556 #: ../examples/guestfs-recipes.pod:181
5558 "The link below explains the many different possible techniques for getting "
5559 "the last assigned DHCP address of a virtual machine."
5563 #: ../examples/guestfs-recipes.pod:184
5565 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5566 "a-virtual-machine-disk-image/#content"
5570 #: ../examples/guestfs-recipes.pod:186
5572 "In the libguestfs source examples directory you will find the latest version "
5573 "of the C<virt-dhcp-address.c> program."
5577 #: ../examples/guestfs-recipes.pod:189
5578 msgid "Get the operating system product name string"
5582 #: ../examples/guestfs-recipes.pod:191
5583 msgid "Save the following script into a file called C<product-name.sh>:"
5587 #: ../examples/guestfs-recipes.pod:193
5590 #| " eval \"`guestfish --listen`\"\n"
5591 #| " guestfish --remote add-ro disk.img\n"
5592 #| " guestfish --remote run\n"
5593 #| " guestfish --remote lvs\n"
5598 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5599 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5600 " guestfish --remote inspect-get-product-name \"$root\"\n"
5601 " guestfish --remote exit\n"
5604 " eval \"`guestfish --listen`\"\n"
5605 " guestfish --remote add-ro disk.img\n"
5606 " guestfish --remote run\n"
5607 " guestfish --remote lvs\n"
5611 #: ../examples/guestfs-recipes.pod:200
5612 msgid "Make the script executable and run it on a named guest:"
5616 #: ../examples/guestfs-recipes.pod:202
5619 " # product-name.sh RHEL60x64\n"
5620 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5625 #: ../examples/guestfs-recipes.pod:205
5627 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5628 "C<xpath> command line tool or from your favourite programming language:"
5632 #: ../examples/guestfs-recipes.pod:209
5635 " # virt-inspector RHEL60x64 > xml\n"
5636 " # xpath '//product_name' < xml\n"
5639 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5644 #: ../examples/guestfs-recipes.pod:215
5645 msgid "Get the default boot kernel for a Linux VM"
5649 #: ../examples/guestfs-recipes.pod:217
5651 "The link below contains a program to print the default boot kernel for a "
5656 #: ../examples/guestfs-recipes.pod:220
5658 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5659 "kernel-for-a-vm/#content"
5663 #: ../examples/guestfs-recipes.pod:222
5665 "It uses Augeas, and the technique is generally applicable for many different "
5670 #: ../examples/guestfs-recipes.pod:229
5671 msgid "listing the user accounts in the guest"
5675 #: ../examples/guestfs-recipes.pod:233
5676 msgid "what repositories is it configured to use"
5680 #: ../examples/guestfs-recipes.pod:237
5681 msgid "what NTP servers does it connect to"
5685 #: ../examples/guestfs-recipes.pod:241
5686 msgid "what were the boot messages last time it booted"
5690 #: ../examples/guestfs-recipes.pod:245
5691 msgid "listing who was logged in recently"
5695 #: ../examples/guestfs-recipes.pod:249
5696 msgid "http://augeas.net/"
5700 #: ../examples/guestfs-recipes.pod:251
5701 msgid "Install RPMs in a guest"
5705 #: ../examples/guestfs-recipes.pod:253
5707 "The link below contains a method to install RPMs in a guest. In fact the "
5708 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5709 "installs them next time the guest is booted. You could use this technique "
5710 "to install vital security updates in an offline guest."
5714 #: ../examples/guestfs-recipes.pod:259
5716 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5720 #: ../examples/guestfs-recipes.pod:261
5721 msgid "List applications installed in a VM"
5725 #: ../examples/guestfs-recipes.pod:263
5726 msgid "Save the following to a file C<list-apps.sh>:"
5730 #: ../examples/guestfs-recipes.pod:265
5733 #| " eval \"`guestfish --listen`\"\n"
5734 #| " guestfish --remote add-ro disk.img\n"
5735 #| " guestfish --remote run\n"
5736 #| " guestfish --remote lvs\n"
5741 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5742 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5743 " guestfish --remote inspect-list-applications \"$root\"\n"
5744 " guestfish --remote exit\n"
5747 " eval \"`guestfish --listen`\"\n"
5748 " guestfish --remote add-ro disk.img\n"
5749 " guestfish --remote run\n"
5750 " guestfish --remote lvs\n"
5754 #: ../examples/guestfs-recipes.pod:272
5756 "Make the file executable and then you can run it on any named virtual "
5761 #: ../examples/guestfs-recipes.pod:275
5764 " # list-apps.sh WinGuest\n"
5766 " app_name: Mozilla Firefox (3.6.12)\n"
5767 " app_display_name: Mozilla Firefox (3.6.12)\n"
5769 " app_version: 3.6.12 (en-GB)\n"
5771 " app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5772 " app_trans_path:\n"
5773 " app_publisher: Mozilla\n"
5774 " app_url: http://www.mozilla.com/en-GB/\n"
5775 " app_source_package:\n"
5777 " app_description: Mozilla Firefox\n"
5780 " app_name: VLC media player\n"
5781 " app_display_name: VLC media player 1.1.5\n"
5783 " app_version: 1.1.5\n"
5785 " app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5786 " app_trans_path:\n"
5787 " app_publisher: VideoLAN\n"
5788 " app_url: http://www.videolan.org/\n"
5789 " app_source_package:\n"
5791 " app_description:\n"
5797 #: ../examples/guestfs-recipes.pod:305
5799 "If you want to run the script on disk images (instead of libvirt virtual "
5800 "machines), change C<-d \"$1\"> to C<-a \"$1\">. See also L<virt-inspector(1)"
5805 #: ../examples/guestfs-recipes.pod:309
5806 msgid "List files and directories in a VM"
5810 #: ../examples/guestfs-recipes.pod:311
5811 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5815 #: ../examples/guestfs-recipes.pod:313
5818 #| " guestfish --ro -d myguest -i\n"
5821 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5824 " guestfish --ro -d myguest -i\n"
5828 #: ../examples/guestfs-recipes.pod:315
5829 msgid "List services in a Windows VM"
5833 #: ../examples/guestfs-recipes.pod:317
5835 "The link below contains a script that can be used to list out the services "
5836 "from a Windows VM, and whether those services run at boot time or are loaded "
5841 #: ../examples/guestfs-recipes.pod:321
5843 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5848 #: ../examples/guestfs-recipes.pod:323
5849 msgid "Make a disk image sparse"
5853 #: ../examples/guestfs-recipes.pod:325
5855 "The link below contains some guides for making a disk image sparse (or "
5856 "reintroducing sparseness)."
5860 #: ../examples/guestfs-recipes.pod:328
5862 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5866 #: ../examples/guestfs-recipes.pod:330
5867 msgid "Monitor disk usage over time"
5871 #: ../examples/guestfs-recipes.pod:332
5873 "You can use L<virt-df(1)> to monitor disk usage of your guests over time. "
5874 "The link below contains a guide."
5878 #: ../examples/guestfs-recipes.pod:335
5879 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5883 #: ../examples/guestfs-recipes.pod:337
5884 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5888 #: ../examples/guestfs-recipes.pod:339
5890 "L<guestfish(1)> plus the tools described in the link below can be used to "
5891 "read out the Windows Event Log from any virtual machine running Windows "
5892 "Vista or a later version."
5896 #: ../examples/guestfs-recipes.pod:343
5898 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5899 "guestfish/#content"
5903 #: ../examples/guestfs-recipes.pod:345
5904 msgid "Remove root password (Linux)"
5908 #: ../examples/guestfs-recipes.pod:347
5910 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5911 "files. One use is to remove the root password from a Linux guest:"
5915 #: ../examples/guestfs-recipes.pod:350
5918 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5923 #: ../examples/guestfs-recipes.pod:352
5924 msgid "Remove Administrator password (Windows)"
5928 #: ../examples/guestfs-recipes.pod:354
5930 "The link below contains one technique for removing the Administrator "
5931 "password from a Windows VM, or to be more precise, it gives you a command "
5932 "prompt the next time you log in which you can use to bypass any security:"
5936 #: ../examples/guestfs-recipes.pod:359
5938 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5939 "administrator-password-with-guestfish/"
5943 #: ../examples/guestfs-recipes.pod:361
5944 msgid "Unpack a live CD"
5948 #: ../examples/guestfs-recipes.pod:363
5950 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5951 "Russian doll. You can use L<guestfish(1)> to look inside these multiple "
5952 "layers, as outlined in the guide below."
5956 #: ../examples/guestfs-recipes.pod:367
5958 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5963 #: ../examples/guestfs-recipes.pod:369
5964 msgid "Uploading and downloading files"
5968 #: ../examples/guestfs-recipes.pod:371
5970 "The link below contains general tips on uploading (copying in) and "
5971 "downloading (copying out) files from VMs."
5975 #: ../examples/guestfs-recipes.pod:374
5977 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5981 #: ../examples/guestfs-recipes.pod:376
5982 msgid "Use libguestfs tools on VMware ESX guests"
5986 #: ../examples/guestfs-recipes.pod:378
5988 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5989 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5993 #: ../examples/guestfs-recipes.pod:382
5995 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
6000 #: ../examples/guestfs-recipes.pod:386
6003 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
6004 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
6005 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
6007 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
6008 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
6009 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
6011 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
6012 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
6013 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
6016 #: ../examples/guestfs-recipes.pod:403
6018 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
6019 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
6020 msgstr "© Red Hat Inc., 2009–2010"
6023 #: ../fish/guestfish-actions.pod:1
6028 #: ../fish/guestfish-actions.pod:3
6031 " add-cdrom filename\n"
6036 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
6037 msgid "This function adds a virtual CD-ROM disk image to the guest."
6041 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
6042 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
6046 #: ../fish/guestfish-actions.pod:15
6048 "This call checks for the existence of C<filename>. This stops you from "
6049 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6050 "and C<http:> URLs. To specify those, use the general L</config> call "
6055 #: ../fish/guestfish-actions.pod:22
6057 "If you just want to add an ISO file (often you use this as an efficient way "
6058 "to transfer large files into the guest), then you should probably use L</add-"
6059 "drive-ro> instead."
6063 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
6064 #: ../fish/guestfish-actions.pod:177
6066 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
6071 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
6072 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:1026
6073 #: ../fish/guestfish-actions.pod:1386 ../fish/guestfish-actions.pod:1400
6074 #: ../fish/guestfish-actions.pod:3157 ../fish/guestfish-actions.pod:3468
6075 #: ../fish/guestfish-actions.pod:3516 ../fish/guestfish-actions.pod:4429
6076 #: ../fish/guestfish-actions.pod:4452 ../fish/guestfish-actions.pod:4474
6077 #: ../fish/guestfish-actions.pod:4512 ../fish/guestfish-actions.pod:5161
6078 #: ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:10
6079 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
6080 #: ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:2118
6081 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:4771
6082 #: ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5393
6083 #: ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:6719
6084 #: ../src/guestfs-actions.pod:6753 ../src/guestfs-actions.pod:6816
6085 #: ../src/guestfs-actions.pod:7748 ../src/guestfs-actions.pod:7857
6086 #: ../src/guestfs-actions.pod:8040
6088 "Deprecated functions will not be removed from the API, but the fact that "
6089 "they are deprecated indicates that there are problems with correct use of "
6094 #: ../fish/guestfish-actions.pod:35
6099 #: ../fish/guestfish-actions.pod:37
6104 #: ../fish/guestfish-actions.pod:39
6107 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
6112 #: ../fish/guestfish-actions.pod:41
6114 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
6115 "It works by connecting to libvirt, requesting the domain and domain XML from "
6116 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
6120 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
6122 "The number of disks added is returned. This operation is atomic: if an "
6123 "error is returned, then no disks are added."
6127 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
6129 "This function does some minimal checks to make sure the libvirt domain is "
6130 "not running (unless C<readonly> is true). In a future version we will try "
6131 "to acquire the libvirt lock on each disk."
6135 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
6137 "Disks must be accessible locally. This often means that adding disks from a "
6138 "remote libvirt connection (see L<http://libvirt.org/remote.html>) will fail "
6139 "unless those disks are accessible via the same device path locally too."
6143 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
6145 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6146 "libvirt.org/uri.html>). If this is not set then we connect to the default "
6147 "libvirt URI (or one set through an environment variable, see the libvirt "
6148 "documentation for full details)."
6152 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
6154 "The optional C<live> flag controls whether this call will try to connect to "
6155 "a running virtual machine C<guestfsd> process if it sees a suitable "
6156 "E<lt>channelE<gt> element in the libvirt XML definition. The default (if "
6157 "the flag is omitted) is never to try. See L<guestfs(3)/ATTACHING TO RUNNING "
6158 "DAEMONS> for more information."
6162 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
6164 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6165 "passed instead of the domain name. The C<dom> string is treated as a UUID "
6166 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6171 #: ../fish/guestfish-actions.pod:76
6173 "The other optional parameters are passed directly through to L</add-drive-"
6178 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
6179 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:784
6180 #: ../fish/guestfish-actions.pod:805 ../fish/guestfish-actions.pod:2040
6181 #: ../fish/guestfish-actions.pod:3206 ../fish/guestfish-actions.pod:3369
6182 #: ../fish/guestfish-actions.pod:3504
6184 "This command has one or more optional arguments. See L</OPTIONAL ARGUMENTS>."
6188 #: ../fish/guestfish-actions.pod:81
6193 #: ../fish/guestfish-actions.pod:83
6196 " add-drive filename\n"
6199 " add-drive назва_файла\n"
6203 #: ../fish/guestfish-actions.pod:85
6205 "This function is the equivalent of calling L</add-drive-opts> with no "
6206 "optional parameters, so the disk is added writable, with the format being "
6207 "detected automatically."
6211 #: ../fish/guestfish-actions.pod:89
6213 "Automatic detection of the format opens you up to a potential security hole "
6214 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
6215 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
6216 "you should think about replacing calls to this function with calls to L</add-"
6217 "drive-opts>, and specifying the format."
6221 #: ../fish/guestfish-actions.pod:96
6222 msgid "add-drive-opts"
6223 msgstr "add-drive-opts"
6226 #: ../fish/guestfish-actions.pod:98
6231 #: ../fish/guestfish-actions.pod:100
6234 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
6239 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
6241 "This function adds a virtual machine disk image C<filename> to libguestfs. "
6242 "The first time you call this function, the disk appears as C</dev/sda>, the "
6243 "second time as C</dev/sdb>, and so on."
6247 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
6249 "You don't necessarily need to be root when using libguestfs. However you "
6250 "obviously do need sufficient permissions to access the filename for whatever "
6251 "operations you want to perform (ie. read access if you just want to read the "
6252 "image or write access if you want to modify the image)."
6256 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
6257 msgid "This call checks that C<filename> exists."
6261 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3168
6262 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4808
6263 msgid "The optional arguments are:"
6267 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
6269 msgstr "C<readonly>"
6272 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
6274 "If true then the image is treated as read-only. Writes are still allowed, "
6275 "but they are stored in a temporary snapshot overlay which is discarded at "
6276 "the end. The disk that you add is not modified."
6280 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
6285 #: ../fish/guestfish-actions.pod:127
6287 "This forces the image format. If you omit this (or use L</add-drive> or L</"
6288 "add-drive-ro>) then the format is automatically detected. Possible formats "
6289 "include C<raw> and C<qcow2>."
6293 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
6295 "Automatic detection of the format opens you up to a potential security hole "
6296 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
6297 "RHBZ#642934. Specifying the format closes this security hole."
6301 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
6306 #: ../fish/guestfish-actions.pod:138
6308 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6309 "add-drive-with-if> call (q.v.)"
6313 #: ../fish/guestfish-actions.pod:145
6314 msgid "add-drive-ro"
6315 msgstr "add-drive-ro"
6318 #: ../fish/guestfish-actions.pod:147
6323 #: ../fish/guestfish-actions.pod:149
6326 " add-drive-ro filename\n"
6331 #: ../fish/guestfish-actions.pod:151
6333 "This function is the equivalent of calling L</add-drive-opts> with the "
6334 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6335 "is added read-only, with the format being detected automatically."
6339 #: ../fish/guestfish-actions.pod:156
6340 msgid "add-drive-ro-with-if"
6344 #: ../fish/guestfish-actions.pod:158
6347 " add-drive-ro-with-if filename iface\n"
6352 #: ../fish/guestfish-actions.pod:160
6354 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6355 "interface emulation to use at run time."
6359 #: ../fish/guestfish-actions.pod:170
6360 msgid "add-drive-with-if"
6364 #: ../fish/guestfish-actions.pod:172
6367 " add-drive-with-if filename iface\n"
6372 #: ../fish/guestfish-actions.pod:174
6374 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6375 "interface emulation to use at run time."
6379 #: ../fish/guestfish-actions.pod:184
6384 #: ../fish/guestfish-actions.pod:186
6387 " aug-clear augpath\n"
6392 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
6394 "Set the value associated with C<path> to C<NULL>. This is the same as the "
6395 "L<augtool(1)> C<clear> command."
6399 #: ../fish/guestfish-actions.pod:191
6404 #: ../fish/guestfish-actions.pod:193
6412 #: ../fish/guestfish-actions.pod:195
6414 "Close the current Augeas handle and free up any resources used by it. After "
6415 "calling this, you have to call L</aug-init> again before you can use any "
6416 "other Augeas functions."
6420 #: ../fish/guestfish-actions.pod:200
6425 #: ../fish/guestfish-actions.pod:202
6428 " aug-defnode name expr val\n"
6433 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
6435 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6439 #: ../fish/guestfish-actions.pod:207
6441 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6442 "calling L</aug-set> C<expr>, C<value>. C<name> will be the nodeset "
6443 "containing that single node."
6447 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
6449 "On success this returns a pair containing the number of nodes in the "
6450 "nodeset, and a boolean flag if a node was created."
6454 #: ../fish/guestfish-actions.pod:215
6459 #: ../fish/guestfish-actions.pod:217
6462 " aug-defvar name expr\n"
6467 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
6469 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6470 "C<expr>. If C<expr> is NULL, then C<name> is undefined."
6474 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
6476 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6477 "evaluates to something which is not a nodeset."
6481 #: ../fish/guestfish-actions.pod:226
6486 #: ../fish/guestfish-actions.pod:228
6489 " aug-get augpath\n"
6494 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
6496 "Look up the value associated with C<path>. If C<path> matches exactly one "
6497 "node, the C<value> is returned."
6501 #: ../fish/guestfish-actions.pod:233
6506 #: ../fish/guestfish-actions.pod:235
6509 " aug-init root flags\n"
6514 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
6516 "Create a new Augeas handle for editing configuration files. If there was "
6517 "any previous Augeas handle associated with this guestfs session, then it is "
6522 #: ../fish/guestfish-actions.pod:241
6523 msgid "You must call this before using any other L</aug-*> commands."
6527 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
6529 "C<root> is the filesystem root. C<root> must not be NULL, use C</> instead."
6533 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
6535 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6536 "logical I<or> of the following integers:"
6540 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
6541 msgid "C<AUG_SAVE_BACKUP> = 1"
6542 msgstr "C<AUG_SAVE_BACKUP> = 1"
6545 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
6546 msgid "Keep the original file with a C<.augsave> extension."
6550 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
6551 msgid "C<AUG_SAVE_NEWFILE> = 2"
6552 msgstr "C<AUG_SAVE_NEWFILE> = 2"
6555 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
6557 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6558 "original. Overrides C<AUG_SAVE_BACKUP>."
6562 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
6563 msgid "C<AUG_TYPE_CHECK> = 4"
6564 msgstr "C<AUG_TYPE_CHECK> = 4"
6567 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
6568 msgid "Typecheck lenses."
6572 #: ../fish/guestfish-actions.pod:266
6574 "This option is only useful when debugging Augeas lenses. Use of this option "
6575 "may require additional memory for the libguestfs appliance. You may need to "
6576 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6580 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
6581 msgid "C<AUG_NO_STDINC> = 8"
6582 msgstr "C<AUG_NO_STDINC> = 8"
6585 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
6586 msgid "Do not use standard load path for modules."
6590 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
6591 msgid "C<AUG_SAVE_NOOP> = 16"
6592 msgstr "C<AUG_SAVE_NOOP> = 16"
6595 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
6596 msgid "Make save a no-op, just record what would have been changed."
6600 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
6601 msgid "C<AUG_NO_LOAD> = 32"
6602 msgstr "C<AUG_NO_LOAD> = 32"
6605 #: ../fish/guestfish-actions.pod:281
6606 msgid "Do not load the tree in L</aug-init>."
6610 #: ../fish/guestfish-actions.pod:285
6611 msgid "To close the handle, you can call L</aug-close>."
6615 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
6616 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6620 #: ../fish/guestfish-actions.pod:289
6625 #: ../fish/guestfish-actions.pod:291
6628 " aug-insert augpath label true|false\n"
6633 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
6635 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6636 "or after C<path> (depending on the boolean flag C<before>)."
6640 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
6642 "C<path> must match exactly one existing node in the tree, and C<label> must "
6643 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6647 #: ../fish/guestfish-actions.pod:301
6652 #: ../fish/guestfish-actions.pod:303
6660 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
6661 msgid "Load files into the tree."
6662 msgstr "Завантажити файли до ієрархії."
6665 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
6666 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6670 #: ../fish/guestfish-actions.pod:310
6675 #: ../fish/guestfish-actions.pod:312
6683 #: ../fish/guestfish-actions.pod:314
6685 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6686 "resulting nodes into alphabetical order."
6690 #: ../fish/guestfish-actions.pod:317
6695 #: ../fish/guestfish-actions.pod:319
6698 " aug-match augpath\n"
6703 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
6705 "Returns a list of paths which match the path expression C<path>. The "
6706 "returned paths are sufficiently qualified so that they match exactly one "
6707 "node in the current tree."
6711 #: ../fish/guestfish-actions.pod:325
6716 #: ../fish/guestfish-actions.pod:327
6719 " aug-mv src dest\n"
6724 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
6726 "Move the node C<src> to C<dest>. C<src> must match exactly one node. "
6727 "C<dest> is overwritten if it exists."
6731 #: ../fish/guestfish-actions.pod:332
6736 #: ../fish/guestfish-actions.pod:334
6744 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
6745 msgid "Remove C<path> and all of its children."
6749 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
6750 msgid "On success this returns the number of entries which were removed."
6754 #: ../fish/guestfish-actions.pod:340
6759 #: ../fish/guestfish-actions.pod:342
6767 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
6768 msgid "This writes all pending changes to disk."
6772 #: ../fish/guestfish-actions.pod:346
6774 "The flags which were passed to L</aug-init> affect exactly how files are "
6779 #: ../fish/guestfish-actions.pod:349
6784 #: ../fish/guestfish-actions.pod:351
6787 " aug-set augpath val\n"
6792 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
6793 msgid "Set the value associated with C<path> to C<val>."
6797 #: ../fish/guestfish-actions.pod:355
6799 "In the Augeas API, it is possible to clear a node by setting the value to "
6800 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
6801 "this call. Instead you must use the L</aug-clear> call."
6805 #: ../fish/guestfish-actions.pod:360
6810 #: ../fish/guestfish-actions.pod:362
6813 " available 'groups ...'\n"
6818 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
6820 "This command is used to check the availability of some groups of "
6821 "functionality in the appliance, which not all builds of the libguestfs "
6822 "appliance will be able to provide."
6826 #: ../fish/guestfish-actions.pod:368
6828 "The libguestfs groups, and the functions that those groups correspond to, "
6829 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
6830 "runtime by calling L</available-all-groups>."
6834 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
6836 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6837 "\"]> would check for the availability of the Linux inotify functions and "
6838 "Augeas (configuration file editing) functions."
6842 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
6843 msgid "The command returns no error if I<all> requested groups are available."
6847 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
6849 "It fails with an error if one or more of the requested groups is unavailable "
6854 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
6856 "If an unknown group name is included in the list of groups then an error is "
6861 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
6863 msgstr "I<Нотатки:>"
6866 #: ../fish/guestfish-actions.pod:392
6867 msgid "You must call L</launch> before calling this function."
6871 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
6873 "The reason is because we don't know what groups are supported by the "
6874 "appliance/daemon until it is running and can be queried."
6878 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
6880 "If a group of functions is available, this does not necessarily mean that "
6881 "they will work. You still have to check for errors when calling individual "
6882 "API functions even if they are available."
6886 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
6888 "It is usually the job of distro packagers to build complete functionality "
6889 "into the libguestfs appliance. Upstream libguestfs, if built from source "
6890 "with all requirements satisfied, will support everything."
6894 #: ../fish/guestfish-actions.pod:414
6896 "This call was added in version C<1.0.80>. In previous versions of "
6897 "libguestfs all you could do would be to speculatively execute a command to "
6898 "find out if the daemon implemented it. See also L</version>."
6902 #: ../fish/guestfish-actions.pod:421
6903 msgid "available-all-groups"
6907 #: ../fish/guestfish-actions.pod:423
6910 " available-all-groups\n"
6915 #: ../fish/guestfish-actions.pod:425
6917 "This command returns a list of all optional groups that this daemon knows "
6918 "about. Note this returns both supported and unsupported groups. To find "
6919 "out which ones the daemon can actually support you have to call L</"
6920 "available> on each member of the returned list."
6924 #: ../fish/guestfish-actions.pod:431
6925 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6929 #: ../fish/guestfish-actions.pod:433
6934 #: ../fish/guestfish-actions.pod:435
6937 " base64-in (base64file|-) filename\n"
6942 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
6944 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6948 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
6949 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:782
6950 #: ../fish/guestfish-actions.pod:803 ../fish/guestfish-actions.pod:902
6951 #: ../fish/guestfish-actions.pod:921 ../fish/guestfish-actions.pod:1295
6952 #: ../fish/guestfish-actions.pod:4732 ../fish/guestfish-actions.pod:4744
6953 #: ../fish/guestfish-actions.pod:4755 ../fish/guestfish-actions.pod:4766
6954 #: ../fish/guestfish-actions.pod:4818 ../fish/guestfish-actions.pod:4827
6955 #: ../fish/guestfish-actions.pod:4881 ../fish/guestfish-actions.pod:4904
6956 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6960 #: ../fish/guestfish-actions.pod:442
6965 #: ../fish/guestfish-actions.pod:444
6968 " base64-out filename (base64file|-)\n"
6973 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
6975 "This command downloads the contents of C<filename>, writing it out to local "
6976 "file C<base64file> encoded as base64."
6980 #: ../fish/guestfish-actions.pod:451
6981 msgid "blockdev-flushbufs"
6985 #: ../fish/guestfish-actions.pod:453
6988 " blockdev-flushbufs device\n"
6993 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
6995 "This tells the kernel to flush internal buffers associated with C<device>."
6999 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
7000 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
7001 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
7002 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
7003 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
7004 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
7005 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
7006 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
7007 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
7008 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
7009 msgid "This uses the L<blockdev(8)> command."
7013 #: ../fish/guestfish-actions.pod:460
7014 msgid "blockdev-getbsz"
7018 #: ../fish/guestfish-actions.pod:462
7021 " blockdev-getbsz device\n"
7026 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
7027 msgid "This returns the block size of a device."
7031 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
7032 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
7034 "(Note this is different from both I<size in blocks> and I<filesystem block "
7039 #: ../fish/guestfish-actions.pod:471
7040 msgid "blockdev-getro"
7044 #: ../fish/guestfish-actions.pod:473
7047 " blockdev-getro device\n"
7052 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
7054 "Returns a boolean indicating if the block device is read-only (true if read-"
7055 "only, false if not)."
7059 #: ../fish/guestfish-actions.pod:480
7060 msgid "blockdev-getsize64"
7064 #: ../fish/guestfish-actions.pod:482
7067 " blockdev-getsize64 device\n"
7072 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
7073 msgid "This returns the size of the device in bytes."
7077 #: ../fish/guestfish-actions.pod:486
7078 msgid "See also L</blockdev-getsz>."
7082 #: ../fish/guestfish-actions.pod:490
7083 msgid "blockdev-getss"
7087 #: ../fish/guestfish-actions.pod:492
7090 " blockdev-getss device\n"
7095 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
7097 "This returns the size of sectors on a block device. Usually 512, but can be "
7098 "larger for modern devices."
7102 #: ../fish/guestfish-actions.pod:497
7104 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7108 #: ../fish/guestfish-actions.pod:502
7109 msgid "blockdev-getsz"
7113 #: ../fish/guestfish-actions.pod:504
7116 " blockdev-getsz device\n"
7121 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
7123 "This returns the size of the device in units of 512-byte sectors (even if "
7124 "the sectorsize isn't 512 bytes ... weird)."
7128 #: ../fish/guestfish-actions.pod:509
7130 "See also L</blockdev-getss> for the real sector size of the device, and L</"
7131 "blockdev-getsize64> for the more useful I<size in bytes>."
7135 #: ../fish/guestfish-actions.pod:515
7136 msgid "blockdev-rereadpt"
7140 #: ../fish/guestfish-actions.pod:517
7143 " blockdev-rereadpt device\n"
7148 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
7149 msgid "Reread the partition table on C<device>."
7153 #: ../fish/guestfish-actions.pod:523
7154 msgid "blockdev-setbsz"
7158 #: ../fish/guestfish-actions.pod:525
7161 " blockdev-setbsz device blocksize\n"
7166 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
7167 msgid "This sets the block size of a device."
7171 #: ../fish/guestfish-actions.pod:534
7172 msgid "blockdev-setro"
7176 #: ../fish/guestfish-actions.pod:536
7179 " blockdev-setro device\n"
7184 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
7185 msgid "Sets the block device named C<device> to read-only."
7189 #: ../fish/guestfish-actions.pod:542
7190 msgid "blockdev-setrw"
7194 #: ../fish/guestfish-actions.pod:544
7197 " blockdev-setrw device\n"
7202 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
7203 msgid "Sets the block device named C<device> to read-write."
7207 #: ../fish/guestfish-actions.pod:550
7208 msgid "btrfs-filesystem-resize"
7212 #: ../fish/guestfish-actions.pod:552
7215 " btrfs-filesystem-resize mountpoint [size:..]\n"
7220 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
7221 msgid "This command resizes a btrfs filesystem."
7225 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
7227 "Note that unlike other resize calls, the filesystem has to be mounted and "
7228 "the parameter is the mountpoint not the device (this is a requirement of "
7233 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3479
7234 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5332
7235 msgid "The optional parameters are:"
7239 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3483
7240 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5336
7245 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
7247 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
7248 "resized to the maximum size."
7252 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
7253 msgid "See also L<btrfs(8)>."
7257 #: ../fish/guestfish-actions.pod:575
7258 msgid "case-sensitive-path"
7262 #: ../fish/guestfish-actions.pod:577
7265 " case-sensitive-path path\n"
7270 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
7272 "This can be used to resolve case insensitive paths on a filesystem which is "
7273 "case sensitive. The use case is to resolve paths which you have read from "
7274 "Windows configuration files or the Windows Registry, to the true path."
7278 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
7280 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7281 "(and probably others), which is that although the underlying filesystem is "
7282 "case-insensitive, the driver exports the filesystem to Linux as case-"
7287 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
7289 "One consequence of this is that special directories such as C<c:\\windows> "
7290 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7291 "precise details of how they were created. In Windows itself this would not "
7296 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
7298 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7303 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
7305 "This function resolves the true case of each element in the path and returns "
7306 "the case-sensitive path."
7310 #: ../fish/guestfish-actions.pod:601
7312 "Thus L</case-sensitive-path> (\"/Windows/System32\") might return C<\"/"
7313 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7314 "the directories were originally created under Windows)."
7318 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
7319 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7323 #: ../fish/guestfish-actions.pod:609
7324 msgid "See also L</realpath>."
7328 #: ../fish/guestfish-actions.pod:611
7333 #: ../fish/guestfish-actions.pod:613
7343 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3899
7344 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5975
7345 msgid "Return the contents of the file named C<path>."
7349 #: ../fish/guestfish-actions.pod:617
7351 "Note that this function cannot correctly handle binary files (specifically, "
7352 "files containing C<\\0> character which is treated as end of string). For "
7353 "those you need to use the L</read-file> or L</download> functions which have "
7354 "a more complex interface."
7358 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
7359 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:980
7360 #: ../fish/guestfish-actions.pod:990 ../fish/guestfish-actions.pod:1057
7361 #: ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1259
7362 #: ../fish/guestfish-actions.pod:1572 ../fish/guestfish-actions.pod:1582
7363 #: ../fish/guestfish-actions.pod:1632 ../fish/guestfish-actions.pod:1647
7364 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1676
7365 #: ../fish/guestfish-actions.pod:3769 ../fish/guestfish-actions.pod:3784
7366 #: ../fish/guestfish-actions.pod:3860 ../fish/guestfish-actions.pod:3877
7367 #: ../fish/guestfish-actions.pod:3892 ../fish/guestfish-actions.pod:4573
7368 #: ../fish/guestfish-actions.pod:4619 ../fish/guestfish-actions.pod:4704
7369 #: ../fish/guestfish-actions.pod:4719 ../fish/guestfish-actions.pod:5125
7370 #: ../fish/guestfish-actions.pod:5137 ../fish/guestfish-actions.pod:5155
7371 #: ../fish/guestfish-actions.pod:5172 ../fish/guestfish-actions.pod:5182
7372 #: ../fish/guestfish-actions.pod:5239 ../fish/guestfish-actions.pod:5249
7373 #: ../fish/guestfish-actions.pod:5278 ../fish/guestfish-actions.pod:5288
7374 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
7375 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1554
7376 #: ../src/guestfs-actions.pod:1573 ../src/guestfs-actions.pod:1676
7377 #: ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1941
7378 #: ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2442
7379 #: ../src/guestfs-actions.pod:2507 ../src/guestfs-actions.pod:2531
7380 #: ../src/guestfs-actions.pod:2548 ../src/guestfs-actions.pod:2577
7381 #: ../src/guestfs-actions.pod:5757 ../src/guestfs-actions.pod:5783
7382 #: ../src/guestfs-actions.pod:5914 ../src/guestfs-actions.pod:5940
7383 #: ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:6931
7384 #: ../src/guestfs-actions.pod:6986 ../src/guestfs-actions.pod:7132
7385 #: ../src/guestfs-actions.pod:7156 ../src/guestfs-actions.pod:7821
7386 #: ../src/guestfs-actions.pod:7841 ../src/guestfs-actions.pod:7874
7387 #: ../src/guestfs-actions.pod:7893 ../src/guestfs-actions.pod:7912
7388 #: ../src/guestfs-actions.pod:8006 ../src/guestfs-actions.pod:8025
7389 #: ../src/guestfs-actions.pod:8071 ../src/guestfs-actions.pod:8090
7391 "Because of the message protocol, there is a transfer limit of somewhere "
7392 "between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>."
7396 #: ../fish/guestfish-actions.pod:625
7401 #: ../fish/guestfish-actions.pod:627
7404 " checksum csumtype path\n"
7409 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
7411 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7415 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
7417 "The type of checksum to compute is given by the C<csumtype> parameter which "
7418 "must have one of the following values:"
7422 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
7427 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
7429 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7434 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
7439 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
7440 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7444 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
7449 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
7450 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7454 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
7459 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
7460 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7464 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
7469 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
7470 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7474 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
7479 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
7480 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7484 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
7489 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
7490 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7494 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
7495 msgid "The checksum is returned as a printable string."
7499 #: ../fish/guestfish-actions.pod:670
7500 msgid "To get the checksum for a device, use L</checksum-device>."
7504 #: ../fish/guestfish-actions.pod:672
7505 msgid "To get the checksums for many files, use L</checksums-out>."
7509 #: ../fish/guestfish-actions.pod:674
7510 msgid "checksum-device"
7511 msgstr "checksum-device"
7514 #: ../fish/guestfish-actions.pod:676
7517 " checksum-device csumtype device\n"
7522 #: ../fish/guestfish-actions.pod:678
7524 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7525 "device named C<device>. For the types of checksums supported see the L</"
7526 "checksum> command."
7530 #: ../fish/guestfish-actions.pod:682
7531 msgid "checksums-out"
7535 #: ../fish/guestfish-actions.pod:684
7538 " checksums-out csumtype directory (sumsfile|-)\n"
7543 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
7545 "This command computes the checksums of all regular files in C<directory> and "
7546 "then emits a list of those checksums to the local output file C<sumsfile>."
7550 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
7552 "This can be used for verifying the integrity of a virtual machine. However "
7553 "to be properly secure you should pay attention to the output of the checksum "
7554 "command (it uses the ones from GNU coreutils). In particular when the "
7555 "filename is not printable, coreutils uses a special backslash syntax. For "
7556 "more information, see the GNU coreutils info file."
7560 #: ../fish/guestfish-actions.pod:700
7565 #: ../fish/guestfish-actions.pod:702
7568 " chmod mode path\n"
7573 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
7575 "Change the mode (permissions) of C<path> to C<mode>. Only numeric modes are "
7580 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
7582 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7583 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7588 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3132
7589 #: ../fish/guestfish-actions.pod:3271 ../fish/guestfish-actions.pod:3281
7590 #: ../fish/guestfish-actions.pod:3291 ../src/guestfs-actions.pod:1064
7591 #: ../src/guestfs-actions.pod:4739 ../src/guestfs-actions.pod:4948
7592 #: ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4986
7593 msgid "The mode actually set is affected by the umask."
7597 #: ../fish/guestfish-actions.pod:713
7602 #: ../fish/guestfish-actions.pod:715
7605 " chown owner group path\n"
7610 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
7611 msgid "Change the file owner to C<owner> and group to C<group>."
7615 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2567
7616 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3810
7618 "Only numeric uid and gid are supported. If you want to use names, you will "
7619 "need to locate and parse the password file yourself (Augeas support makes "
7620 "this relatively easy)."
7624 #: ../fish/guestfish-actions.pod:723
7629 #: ../fish/guestfish-actions.pod:725
7632 " command 'arguments ...'\n"
7637 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
7639 "This call runs a command from the guest filesystem. The filesystem must be "
7640 "mounted, and must contain a compatible operating system (ie. something "
7641 "Linux, with the same or compatible processor architecture)."
7645 #: ../fish/guestfish-actions.pod:732
7647 "The single parameter is an argv-style list of arguments. The first element "
7648 "is the name of the program to run. Subsequent elements are parameters. The "
7649 "list must be non-empty (ie. must contain a program name). Note that the "
7650 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7654 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
7655 msgid "The return value is anything printed to I<stdout> by the command."
7659 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
7661 "If the command returns a non-zero exit status, then this function returns an "
7662 "error message. The error message string is the content of I<stderr> from "
7667 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
7669 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7670 "bin>. If you require a program from another location, you should provide "
7671 "the full path in the first parameter."
7675 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
7677 "Shared libraries and data files required by the program must be available on "
7678 "filesystems which are mounted in the correct places. It is the caller's "
7679 "responsibility to ensure all filesystems that are needed are mounted at the "
7684 #: ../fish/guestfish-actions.pod:760
7685 msgid "command-lines"
7689 #: ../fish/guestfish-actions.pod:762
7692 " command-lines 'arguments ...'\n"
7697 #: ../fish/guestfish-actions.pod:764
7699 "This is the same as L</command>, but splits the result into a list of lines."
7703 #: ../fish/guestfish-actions.pod:767
7704 msgid "See also: L</sh-lines>"
7708 #: ../fish/guestfish-actions.pod:772
7710 #| msgid "pread-device"
7711 msgid "compress-device-out"
7712 msgstr "pread-device"
7715 #: ../fish/guestfish-actions.pod:774
7718 " compress-device-out ctype device (zdevice|-) [level:..]\n"
7723 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1168
7725 "This command compresses C<device> and writes it out to the local file "
7730 #: ../fish/guestfish-actions.pod:779
7732 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
7737 #: ../fish/guestfish-actions.pod:786
7740 msgid "compress-out"
7744 #: ../fish/guestfish-actions.pod:788
7747 " compress-out ctype file (zfile|-) [level:..]\n"
7752 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1220
7754 "This command compresses C<file> and writes it out to the local file C<zfile>."
7758 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1223
7760 "The compression program used is controlled by the C<ctype> parameter. "
7761 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>. "
7762 "Some compression types may not be supported by particular builds of "
7763 "libguestfs, in which case you will get an error containing the substring "
7764 "\"not supported\"."
7768 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1229
7770 "The optional C<level> parameter controls compression level. The meaning and "
7771 "default for this parameter depends on the compression program being used."
7775 #: ../fish/guestfish-actions.pod:807
7780 #: ../fish/guestfish-actions.pod:809
7783 " config qemuparam qemuvalue\n"
7788 #: ../fish/guestfish-actions.pod:811 ../src/guestfs-actions.pod:1270
7790 "This can be used to add arbitrary qemu command line parameters of the form "
7791 "I<-param value>. Actually it's not quite arbitrary - we prevent you from "
7792 "setting some parameters which would interfere with parameters that we use."
7796 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1275
7797 msgid "The first character of C<param> string must be a C<-> (dash)."
7801 #: ../fish/guestfish-actions.pod:818 ../src/guestfs-actions.pod:1277
7802 msgid "C<value> can be NULL."
7806 #: ../fish/guestfish-actions.pod:820
7811 #: ../fish/guestfish-actions.pod:822
7814 " copy-size src dest size\n"
7819 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1291
7821 "This command copies exactly C<size> bytes from one source device or file "
7822 "C<src> to another destination device or file C<dest>."
7826 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1294
7828 "Note this will fail if the source is too short or if the destination is not "
7833 #: ../fish/guestfish-actions.pod:830
7838 #: ../fish/guestfish-actions.pod:832
7846 #: ../fish/guestfish-actions.pod:834 ../src/guestfs-actions.pod:1313
7848 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7849 "destination filename or destination directory."
7853 #: ../fish/guestfish-actions.pod:837
7858 #: ../fish/guestfish-actions.pod:839
7866 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1327
7868 "This copies a file or directory from C<src> to C<dest> recursively using the "
7873 #: ../fish/guestfish-actions.pod:844
7878 #: ../fish/guestfish-actions.pod:846
7886 #: ../fish/guestfish-actions.pod:848 ../src/guestfs-actions.pod:1341
7888 "This command copies from one source device or file C<src> to another "
7889 "destination device or file C<dest>. Normally you would use this to copy to "
7890 "or from a device or partition, for example to duplicate a filesystem."
7894 #: ../fish/guestfish-actions.pod:853
7896 "If the destination is a device, it must be as large or larger than the "
7897 "source file or device, otherwise the copy will fail. This command cannot do "
7898 "partial copies (see L</copy-size>)."
7902 #: ../fish/guestfish-actions.pod:857
7907 #: ../fish/guestfish-actions.pod:859
7917 #: ../fish/guestfish-actions.pod:861 ../src/guestfs-actions.pod:1359
7918 msgid "This command runs the C<df> command to report disk space used."
7922 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:874
7924 "This command is mostly useful for interactive sessions. It is I<not> "
7925 "intended that you try to parse the output string. Use L</statvfs> from "
7930 #: ../fish/guestfish-actions.pod:867
7935 #: ../fish/guestfish-actions.pod:869
7945 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1375
7947 "This command runs the C<df -h> command to report disk space used in human-"
7952 #: ../fish/guestfish-actions.pod:878
7957 #: ../fish/guestfish-actions.pod:880
7967 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1392
7969 "This returns the kernel messages (C<dmesg> output) from the guest kernel. "
7970 "This is sometimes useful for extended debugging of problems."
7974 #: ../fish/guestfish-actions.pod:886
7976 "Another way to get the same information is to enable verbose messages with "
7977 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7978 "before running the program."
7982 #: ../fish/guestfish-actions.pod:891
7987 #: ../fish/guestfish-actions.pod:893
7990 " download remotefilename (filename|-)\n"
7995 #: ../fish/guestfish-actions.pod:895 ../fish/guestfish-actions.pod:908
7996 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1438
7998 "Download file C<remotefilename> and save it as C<filename> on the local "
8003 #: ../fish/guestfish-actions.pod:898 ../fish/guestfish-actions.pod:4877
8004 #: ../src/guestfs-actions.pod:1416 ../src/guestfs-actions.pod:7391
8005 msgid "C<filename> can also be a named pipe."
8009 #: ../fish/guestfish-actions.pod:900
8010 msgid "See also L</upload>, L</cat>."
8014 #: ../fish/guestfish-actions.pod:904
8015 msgid "download-offset"
8016 msgstr "download-offset"
8019 #: ../fish/guestfish-actions.pod:906
8022 " download-offset remotefilename (filename|-) offset size\n"
8027 #: ../fish/guestfish-actions.pod:911 ../src/guestfs-actions.pod:1441
8029 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8030 "region must be within the file or device)."
8034 #: ../fish/guestfish-actions.pod:914
8036 "Note that there is no limit on the amount of data that can be downloaded "
8037 "with this call, unlike with L</pread>, and this call always reads the full "
8038 "amount unless an error occurs."
8042 #: ../fish/guestfish-actions.pod:919
8043 msgid "See also L</download>, L</pread>."
8047 #: ../fish/guestfish-actions.pod:923
8052 #: ../fish/guestfish-actions.pod:925
8055 " drop-caches whattodrop\n"
8060 #: ../fish/guestfish-actions.pod:927 ../src/guestfs-actions.pod:1466
8062 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8063 "inode caches. The parameter C<whattodrop> tells the kernel what precisely "
8064 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8068 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1471
8069 msgid "Setting C<whattodrop> to 3 should drop everything."
8073 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1473
8075 "This automatically calls L<sync(2)> before the operation, so that the "
8076 "maximum guest memory is freed."
8080 #: ../fish/guestfish-actions.pod:937
8085 #: ../fish/guestfish-actions.pod:939
8095 #: ../fish/guestfish-actions.pod:941 ../src/guestfs-actions.pod:1486
8097 "This command runs the C<du -s> command to estimate file space usage for "
8102 #: ../fish/guestfish-actions.pod:944 ../src/guestfs-actions.pod:1489
8104 "C<path> can be a file or a directory. If C<path> is a directory then the "
8105 "estimate includes the contents of the directory and all subdirectories "
8110 #: ../fish/guestfish-actions.pod:948 ../src/guestfs-actions.pod:1493
8112 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8116 #: ../fish/guestfish-actions.pod:951
8121 #: ../fish/guestfish-actions.pod:953
8124 " e2fsck-f device\n"
8129 #: ../fish/guestfish-actions.pod:955 ../src/guestfs-actions.pod:1511
8131 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8132 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8137 #: ../fish/guestfish-actions.pod:959
8139 "This command is only needed because of L</resize2fs> (q.v.). Normally you "
8140 "should use L</fsck>."
8144 #: ../fish/guestfish-actions.pod:962
8149 #: ../fish/guestfish-actions.pod:964
8152 " echo-daemon 'words ...'\n"
8157 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1528
8159 "This command concatenates the list of C<words> passed with single spaces "
8160 "between them and returns the resulting string."
8164 #: ../fish/guestfish-actions.pod:969 ../src/guestfs-actions.pod:1531
8165 msgid "You can use this command to test the connection through to the daemon."
8169 #: ../fish/guestfish-actions.pod:971
8170 msgid "See also L</ping-daemon>."
8174 #: ../fish/guestfish-actions.pod:973
8179 #: ../fish/guestfish-actions.pod:975
8182 " egrep regex path\n"
8187 #: ../fish/guestfish-actions.pod:977 ../src/guestfs-actions.pod:1547
8189 "This calls the external C<egrep> program and returns the matching lines."
8193 #: ../fish/guestfish-actions.pod:983
8198 #: ../fish/guestfish-actions.pod:985
8201 " egrepi regex path\n"
8206 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1566
8208 "This calls the external C<egrep -i> program and returns the matching lines."
8212 #: ../fish/guestfish-actions.pod:993
8217 #: ../fish/guestfish-actions.pod:995
8220 " equal file1 file2\n"
8223 " equal файл1 файл2\n"
8227 #: ../fish/guestfish-actions.pod:997 ../src/guestfs-actions.pod:1585
8229 "This compares the two files C<file1> and C<file2> and returns true if their "
8230 "content is exactly equal, or false otherwise."
8234 #: ../fish/guestfish-actions.pod:1000 ../src/guestfs-actions.pod:1588
8235 msgid "The external L<cmp(1)> program is used for the comparison."
8239 #: ../fish/guestfish-actions.pod:1002
8244 #: ../fish/guestfish-actions.pod:1004
8254 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1600
8256 "This returns C<true> if and only if there is a file, directory (or anything) "
8257 "with the given C<path> name."
8261 #: ../fish/guestfish-actions.pod:1009
8262 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8263 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
8266 #: ../fish/guestfish-actions.pod:1011
8271 #: ../fish/guestfish-actions.pod:1013
8274 " fallocate path len\n"
8277 " fallocate шлях довжина\n"
8281 #: ../fish/guestfish-actions.pod:1015 ../fish/guestfish-actions.pod:1034
8282 #: ../src/guestfs-actions.pod:1623 ../src/guestfs-actions.pod:1642
8284 "This command preallocates a file (containing zero bytes) named C<path> of "
8285 "size C<len> bytes. If the file exists already, it is overwritten."
8289 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1627
8291 "Do not confuse this with the guestfish-specific C<alloc> command which "
8292 "allocates a file in the host and attaches it as a device."
8296 #: ../fish/guestfish-actions.pod:1023
8298 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8303 #: ../fish/guestfish-actions.pod:1030
8305 msgstr "fallocate64"
8308 #: ../fish/guestfish-actions.pod:1032
8311 " fallocate64 path len\n"
8314 " fallocate64 шлях довжина\n"
8318 #: ../fish/guestfish-actions.pod:1038
8320 "Note that this call allocates disk blocks for the file. To create a sparse "
8321 "file use L</truncate-size> instead."
8325 #: ../fish/guestfish-actions.pod:1041
8327 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8328 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8329 "maximum size of files created through that call to 1GB."
8333 #: ../fish/guestfish-actions.pod:1046 ../src/guestfs-actions.pod:1654
8335 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8336 "commands which create a file in the host and attach it as a device."
8340 #: ../fish/guestfish-actions.pod:1050
8345 #: ../fish/guestfish-actions.pod:1052
8348 " fgrep pattern path\n"
8351 " fgrep шаблон шлях\n"
8355 #: ../fish/guestfish-actions.pod:1054 ../src/guestfs-actions.pod:1669
8357 "This calls the external C<fgrep> program and returns the matching lines."
8361 #: ../fish/guestfish-actions.pod:1060
8366 #: ../fish/guestfish-actions.pod:1062
8369 " fgrepi pattern path\n"
8372 " fgrepi шаблон шлях\n"
8376 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1688
8378 "This calls the external C<fgrep -i> program and returns the matching lines."
8382 #: ../fish/guestfish-actions.pod:1070
8387 #: ../fish/guestfish-actions.pod:1072
8397 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1706
8399 "This call uses the standard L<file(1)> command to determine the type or "
8400 "contents of the file."
8404 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1709
8406 "This call will also transparently look inside various types of compressed "
8411 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1712
8413 "The exact command which runs is C<file -zb path>. Note in particular that "
8414 "the filename is not prepended to the output (the I<-b> option)."
8418 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1716
8420 "The output depends on the output of the underlying L<file(1)> command and it "
8421 "can change in future in ways beyond our control. In other words, the output "
8422 "is not guaranteed by the ABI."
8426 #: ../fish/guestfish-actions.pod:1088
8428 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8429 "(etc), L</is-zero>."
8433 #: ../fish/guestfish-actions.pod:1091
8434 msgid "file-architecture"
8435 msgstr "file-architecture"
8438 #: ../fish/guestfish-actions.pod:1093
8441 " file-architecture filename\n"
8444 " file-architecture назва_файла\n"
8448 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1734
8450 "This detects the architecture of the binary C<filename>, and returns it if "
8455 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1737
8456 msgid "Currently defined architectures are:"
8460 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1741
8465 #: ../fish/guestfish-actions.pod:1104 ../src/guestfs-actions.pod:1743
8467 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8468 "irrespective of the precise processor requirements of the binary."
8472 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1746
8477 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1748
8478 msgid "64 bit x86-64."
8482 #: ../fish/guestfish-actions.pod:1111 ../src/guestfs-actions.pod:1750
8487 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1752
8488 msgid "32 bit SPARC."
8492 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1754
8497 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1756
8498 msgid "64 bit SPARC V9 and above."
8502 #: ../fish/guestfish-actions.pod:1119 ../src/guestfs-actions.pod:1758
8507 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1760
8508 msgid "Intel Itanium."
8509 msgstr "Intel Itanium."
8512 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1762
8517 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1764
8518 msgid "32 bit Power PC."
8522 #: ../fish/guestfish-actions.pod:1127 ../src/guestfs-actions.pod:1766
8527 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1768
8528 msgid "64 bit Power PC."
8532 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1772
8533 msgid "Libguestfs may return other architecture strings in future."
8537 #: ../fish/guestfish-actions.pod:1135 ../src/guestfs-actions.pod:1774
8538 msgid "The function works on at least the following types of files:"
8542 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1780
8543 msgid "many types of Un*x and Linux binary"
8547 #: ../fish/guestfish-actions.pod:1145 ../src/guestfs-actions.pod:1784
8548 msgid "many types of Un*x and Linux shared library"
8552 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1788
8553 msgid "Windows Win32 and Win64 binaries"
8557 #: ../fish/guestfish-actions.pod:1153 ../src/guestfs-actions.pod:1792
8558 msgid "Windows Win32 and Win64 DLLs"
8562 #: ../fish/guestfish-actions.pod:1155 ../src/guestfs-actions.pod:1794
8563 msgid "Win32 binaries and DLLs return C<i386>."
8567 #: ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1796
8568 msgid "Win64 binaries and DLLs return C<x86_64>."
8572 #: ../fish/guestfish-actions.pod:1161 ../src/guestfs-actions.pod:1800
8573 msgid "Linux kernel modules"
8577 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1804
8578 msgid "Linux new-style initrd images"
8582 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1808
8583 msgid "some non-x86 Linux vmlinuz kernels"
8587 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1812
8588 msgid "What it can't do currently:"
8592 #: ../fish/guestfish-actions.pod:1179 ../src/guestfs-actions.pod:1818
8593 msgid "static libraries (libfoo.a)"
8597 #: ../fish/guestfish-actions.pod:1183 ../src/guestfs-actions.pod:1822
8598 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8602 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1826
8603 msgid "x86 Linux vmlinuz kernels"
8607 #: ../fish/guestfish-actions.pod:1189 ../src/guestfs-actions.pod:1828
8609 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8610 "compressed code, and are horribly hard to unpack. If you want to find the "
8611 "architecture of a kernel, use the architecture of the associated initrd or "
8612 "kernel module(s) instead."
8616 #: ../fish/guestfish-actions.pod:1196
8621 #: ../fish/guestfish-actions.pod:1198
8631 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1846
8632 msgid "This command returns the size of C<file> in bytes."
8636 #: ../fish/guestfish-actions.pod:1202
8638 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8639 "file> etc. To get the size of block devices, use L</blockdev-getsize64>."
8643 #: ../fish/guestfish-actions.pod:1206
8648 #: ../fish/guestfish-actions.pod:1208
8651 " fill c len path\n"
8656 #: ../fish/guestfish-actions.pod:1210 ../src/guestfs-actions.pod:1864
8658 "This command creates a new file called C<path>. The initial content of the "
8659 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8664 #: ../fish/guestfish-actions.pod:1214
8666 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8667 "L</truncate-size>. To create a file with a pattern of repeating bytes use "
8672 #: ../fish/guestfish-actions.pod:1219
8673 msgid "fill-pattern"
8674 msgstr "fill-pattern"
8677 #: ../fish/guestfish-actions.pod:1221
8680 " fill-pattern pattern len path\n"
8685 #: ../fish/guestfish-actions.pod:1223
8687 "This function is like L</fill> except that it creates a new file of length "
8688 "C<len> containing the repeating pattern of bytes in C<pattern>. The pattern "
8689 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8694 #: ../fish/guestfish-actions.pod:1228
8699 #: ../fish/guestfish-actions.pod:1230
8709 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:1910
8711 "This command lists out all files and directories, recursively, starting at "
8712 "C<directory>. It is essentially equivalent to running the shell command "
8713 "C<find directory -print> but some post-processing happens on the output, "
8718 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1915
8720 "This returns a list of strings I<without any prefix>. Thus if the directory "
8725 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:1918
8735 #: ../fish/guestfish-actions.pod:1244
8736 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8740 #: ../fish/guestfish-actions.pod:1247 ../src/guestfs-actions.pod:1925
8751 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1930
8752 msgid "If C<directory> is not a directory, then this command returns an error."
8756 #: ../fish/guestfish-actions.pod:1255 ../src/guestfs-actions.pod:1933
8757 msgid "The returned list is sorted."
8761 #: ../fish/guestfish-actions.pod:1257
8762 msgid "See also L</find0>."
8763 msgstr "Див. також L</find0>."
8766 #: ../fish/guestfish-actions.pod:1262
8771 #: ../fish/guestfish-actions.pod:1264
8774 " find0 directory (files|-)\n"
8777 " find0 каталог (файли|-)\n"
8781 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1953
8783 "This command lists out all files and directories, recursively, starting at "
8784 "C<directory>, placing the resulting list in the external file called "
8789 #: ../fish/guestfish-actions.pod:1270
8791 "This command works the same way as L</find> with the following exceptions:"
8795 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:1964
8796 msgid "The resulting list is written to an external file."
8800 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1968
8802 "Items (filenames) in the result are separated by C<\\0> characters. See "
8803 "L<find(1)> option I<-print0>."
8807 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1973
8808 msgid "This command is not limited in the number of names that it can return."
8812 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1978
8813 msgid "The result list is not sorted."
8817 #: ../fish/guestfish-actions.pod:1297
8818 msgid "findfs-label"
8819 msgstr "findfs-label"
8822 #: ../fish/guestfish-actions.pod:1299
8825 " findfs-label label\n"
8828 " findfs-label мітка\n"
8832 #: ../fish/guestfish-actions.pod:1301 ../src/guestfs-actions.pod:1992
8834 "This command searches the filesystems and returns the one which has the "
8835 "given label. An error is returned if no such filesystem can be found."
8839 #: ../fish/guestfish-actions.pod:1305
8840 msgid "To find the label of a filesystem, use L</vfs-label>."
8841 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
8844 #: ../fish/guestfish-actions.pod:1307
8846 msgstr "findfs-uuid"
8849 #: ../fish/guestfish-actions.pod:1309
8852 " findfs-uuid uuid\n"
8855 " findfs-uuid uuid\n"
8859 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2009
8861 "This command searches the filesystems and returns the one which has the "
8862 "given UUID. An error is returned if no such filesystem can be found."
8866 #: ../fish/guestfish-actions.pod:1315
8867 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8868 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
8871 #: ../fish/guestfish-actions.pod:1317
8876 #: ../fish/guestfish-actions.pod:1319
8879 " fsck fstype device\n"
8882 " fsck тип_файлової_системи пристрій\n"
8886 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:2027
8888 "This runs the filesystem checker (fsck) on C<device> which should have "
8889 "filesystem type C<fstype>."
8893 #: ../fish/guestfish-actions.pod:1324 ../src/guestfs-actions.pod:2030
8895 "The returned integer is the status. See L<fsck(8)> for the list of status "
8896 "codes from C<fsck>."
8900 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2039
8901 msgid "Multiple status codes can be summed together."
8905 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2043
8907 "A non-zero return code can mean \"success\", for example if errors have been "
8908 "corrected on the filesystem."
8912 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2048
8913 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8917 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2053
8919 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8923 #: ../fish/guestfish-actions.pod:1349
8928 #: ../fish/guestfish-actions.pod:1351
8938 #: ../fish/guestfish-actions.pod:1353 ../src/guestfs-actions.pod:2064
8940 "Return the additional kernel options which are added to the guest kernel "
8945 #: ../fish/guestfish-actions.pod:1356 ../src/guestfs-actions.pod:2067
8946 msgid "If C<NULL> then no options are added."
8950 #: ../fish/guestfish-actions.pod:1358
8951 msgid "get-attach-method"
8952 msgstr "get-attach-method"
8955 #: ../fish/guestfish-actions.pod:1360
8958 " get-attach-method\n"
8961 " get-attach-method\n"
8965 #: ../fish/guestfish-actions.pod:1362
8966 msgid "Return the current attach method. See L</set-attach-method>."
8970 #: ../fish/guestfish-actions.pod:1364
8971 msgid "get-autosync"
8972 msgstr "get-autosync"
8975 #: ../fish/guestfish-actions.pod:1366
8985 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2092
8986 msgid "Get the autosync flag."
8990 #: ../fish/guestfish-actions.pod:1370
8995 #: ../fish/guestfish-actions.pod:1372
9005 #: ../fish/guestfish-actions.pod:1374 ../src/guestfs-actions.pod:2103
9006 msgid "Return the direct appliance mode flag."
9010 #: ../fish/guestfish-actions.pod:1376
9012 msgstr "get-e2label"
9015 #: ../fish/guestfish-actions.pod:1378
9018 " get-e2label device\n"
9021 " get-e2label пристрій\n"
9025 #: ../fish/guestfish-actions.pod:1380 ../src/guestfs-actions.pod:2122
9027 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9031 #: ../fish/guestfish-actions.pod:1383
9033 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9038 #: ../fish/guestfish-actions.pod:1390
9043 #: ../fish/guestfish-actions.pod:1392
9046 " get-e2uuid device\n"
9049 " get-e2uuid пристрій\n"
9053 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2143
9055 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9059 #: ../fish/guestfish-actions.pod:1397
9061 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9066 #: ../fish/guestfish-actions.pod:1404
9068 msgstr "get-memsize"
9071 #: ../fish/guestfish-actions.pod:1406
9081 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2156
9083 "This gets the memory size in megabytes allocated to the qemu subprocess."
9087 #: ../fish/guestfish-actions.pod:1411
9089 "If L</set-memsize> was not called on this handle, and if "
9090 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9091 "value for memsize."
9095 #: ../fish/guestfish-actions.pod:1415 ../fish/guestfish-actions.pod:1472
9096 #: ../fish/guestfish-actions.pod:4225 ../fish/guestfish-actions.pod:4327
9097 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:2255
9098 #: ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:6562
9100 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9104 #: ../fish/guestfish-actions.pod:1418
9106 msgstr "get-network"
9109 #: ../fish/guestfish-actions.pod:1420
9119 #: ../fish/guestfish-actions.pod:1422 ../src/guestfs-actions.pod:2175
9120 msgid "This returns the enable network flag."
9124 #: ../fish/guestfish-actions.pod:1424
9129 #: ../fish/guestfish-actions.pod:1426
9139 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2186
9140 msgid "Return the current search path."
9144 #: ../fish/guestfish-actions.pod:1430 ../src/guestfs-actions.pod:2188
9146 "This is always non-NULL. If it wasn't set already, then this will return "
9151 #: ../fish/guestfish-actions.pod:1433
9156 #: ../fish/guestfish-actions.pod:1435
9164 #: ../fish/guestfish-actions.pod:1437 ../src/guestfs-actions.pod:2201
9165 msgid "This returns the process group flag."
9169 #: ../fish/guestfish-actions.pod:1439
9174 #: ../fish/guestfish-actions.pod:1441
9179 #: ../fish/guestfish-actions.pod:1443
9189 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2212
9191 "Return the process ID of the qemu subprocess. If there is no qemu "
9192 "subprocess, then this will return an error."
9196 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2215
9197 msgid "This is an internal call used for debugging and testing."
9201 #: ../fish/guestfish-actions.pod:1450
9206 #: ../fish/guestfish-actions.pod:1452
9216 #: ../fish/guestfish-actions.pod:1454 ../src/guestfs-actions.pod:2226
9217 msgid "Return the current qemu binary."
9221 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2228
9223 "This is always non-NULL. If it wasn't set already, then this will return "
9224 "the default qemu binary name."
9228 #: ../fish/guestfish-actions.pod:1459
9229 msgid "get-recovery-proc"
9230 msgstr "get-recovery-proc"
9233 #: ../fish/guestfish-actions.pod:1461
9236 " get-recovery-proc\n"
9239 " get-recovery-proc\n"
9243 #: ../fish/guestfish-actions.pod:1463 ../src/guestfs-actions.pod:2241
9244 msgid "Return the recovery process enabled flag."
9248 #: ../fish/guestfish-actions.pod:1465
9250 msgstr "get-selinux"
9253 #: ../fish/guestfish-actions.pod:1467
9263 #: ../fish/guestfish-actions.pod:1469
9265 "This returns the current setting of the selinux flag which is passed to the "
9266 "appliance at boot time. See L</set-selinux>."
9270 #: ../fish/guestfish-actions.pod:1475
9277 #: ../fish/guestfish-actions.pod:1477
9290 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2267
9291 msgid "This returns the number of virtual CPUs assigned to the appliance."
9295 #: ../fish/guestfish-actions.pod:1481
9300 #: ../fish/guestfish-actions.pod:1483
9310 #: ../fish/guestfish-actions.pod:1485 ../src/guestfs-actions.pod:2278
9312 "This returns the current state as an opaque integer. This is only useful "
9313 "for printing debug and internal error messages."
9317 #: ../fish/guestfish-actions.pod:1488 ../fish/guestfish-actions.pod:2434
9318 #: ../fish/guestfish-actions.pod:2452 ../fish/guestfish-actions.pod:2490
9319 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:2281
9320 #: ../src/guestfs-actions.pod:3587 ../src/guestfs-actions.pod:3616
9321 #: ../src/guestfs-actions.pod:3677 ../src/guestfs-actions.pod:3704
9322 msgid "For more information on states, see L<guestfs(3)>."
9326 #: ../fish/guestfish-actions.pod:1490
9331 #: ../fish/guestfish-actions.pod:1492
9341 #: ../fish/guestfish-actions.pod:1494 ../src/guestfs-actions.pod:2292
9342 msgid "Return the command trace flag."
9346 #: ../fish/guestfish-actions.pod:1496
9351 #: ../fish/guestfish-actions.pod:1498
9361 #: ../fish/guestfish-actions.pod:1500
9363 "Return the current umask. By default the umask is C<022> unless it has been "
9364 "set by calling L</umask>."
9368 #: ../fish/guestfish-actions.pod:1503
9370 msgstr "get-verbose"
9373 #: ../fish/guestfish-actions.pod:1505
9383 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2315
9384 msgid "This returns the verbose messages flag."
9388 #: ../fish/guestfish-actions.pod:1509
9393 #: ../fish/guestfish-actions.pod:1511
9403 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2326
9404 msgid "This gets the SELinux security context of the daemon."
9408 #: ../fish/guestfish-actions.pod:1515
9409 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9413 #: ../fish/guestfish-actions.pod:1518
9418 #: ../fish/guestfish-actions.pod:1520
9421 " getxattr path name\n"
9424 " getxattr шлях назва\n"
9428 #: ../fish/guestfish-actions.pod:1522
9430 "Get a single extended attribute from file C<path> named C<name>. This call "
9431 "follows symlinks. If you want to lookup an extended attribute for the "
9432 "symlink itself, use L</lgetxattr>."
9436 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:2579
9438 "Normally it is better to get all extended attributes from a file in one go "
9439 "by calling L</getxattrs>. However some Linux filesystem implementations are "
9440 "buggy and do not provide a way to list out attributes. For these "
9441 "filesystems (notably ntfs-3g) you have to know the names of the extended "
9442 "attributes you want in advance and call this function."
9446 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:2586
9447 #: ../src/guestfs-actions.pod:2355 ../src/guestfs-actions.pod:3837
9449 "Extended attribute values are blobs of binary data. If there is no extended "
9450 "attribute named C<name>, this returns an error."
9454 #: ../fish/guestfish-actions.pod:1536
9455 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9456 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9459 #: ../fish/guestfish-actions.pod:1538
9464 #: ../fish/guestfish-actions.pod:1540
9474 #: ../fish/guestfish-actions.pod:1542 ../src/guestfs-actions.pod:2372
9476 "This call lists the extended attributes of the file or directory C<path>."
9480 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2375
9482 "At the system call level, this is a combination of the L<listxattr(2)> and "
9483 "L<getxattr(2)> calls."
9487 #: ../fish/guestfish-actions.pod:1548
9488 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9489 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
9492 #: ../fish/guestfish-actions.pod:1550
9494 msgstr "glob-expand"
9497 #: ../fish/guestfish-actions.pod:1552
9500 " glob-expand pattern\n"
9503 " glob-expand шаблон\n"
9507 #: ../fish/guestfish-actions.pod:1554 ../src/guestfs-actions.pod:2392
9509 "This command searches for all the pathnames matching C<pattern> according to "
9510 "the wildcard expansion rules used by the shell."
9514 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2396
9516 "If no paths match, then this returns an empty list (note: not an error)."
9520 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2399
9522 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9523 "GLOB_BRACE>. See that manual page for more details."
9527 #: ../fish/guestfish-actions.pod:1565
9532 #: ../fish/guestfish-actions.pod:1567
9535 " grep regex path\n"
9538 " grepi формальний_вираз шлях\n"
9542 #: ../fish/guestfish-actions.pod:1569 ../src/guestfs-actions.pod:2416
9543 msgid "This calls the external C<grep> program and returns the matching lines."
9547 #: ../fish/guestfish-actions.pod:1575
9552 #: ../fish/guestfish-actions.pod:1577
9555 " grepi regex path\n"
9558 " grepi формальний_вираз шлях\n"
9562 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2435
9564 "This calls the external C<grep -i> program and returns the matching lines."
9568 #: ../fish/guestfish-actions.pod:1585
9569 msgid "grub-install"
9570 msgstr "grub-install"
9573 #: ../fish/guestfish-actions.pod:1587
9576 " grub-install root device\n"
9579 " grub-install кореневий пристрій\n"
9583 #: ../fish/guestfish-actions.pod:1589 ../src/guestfs-actions.pod:2454
9585 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9586 "with the root directory being C<root>."
9590 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2463
9592 "There is currently no way in the API to install grub2, which is used by most "
9593 "modern Linux guests. It is possible to run the grub2 command from the "
9594 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9598 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2470
9600 "This uses C<grub-install> from the host. Unfortunately grub is not always "
9601 "compatible with itself, so this only works in rather narrow circumstances. "
9602 "Careful testing with each guest version is advisable."
9606 #: ../fish/guestfish-actions.pod:1612 ../src/guestfs-actions.pod:2477
9608 "If grub-install reports the error \"No suitable drive was found in the "
9609 "generated device map.\" it may be that you need to create a C</boot/grub/"
9610 "device.map> file first that contains the mapping between grub device names "
9611 "and Linux device names. It is usually sufficient to create a file "
9616 #: ../fish/guestfish-actions.pod:1619 ../src/guestfs-actions.pod:2484
9624 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2486
9625 msgid "replacing C</dev/vda> with the name of the installation device."
9629 #: ../fish/guestfish-actions.pod:1625
9634 #: ../fish/guestfish-actions.pod:1627
9644 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2500
9646 "This command returns up to the first 10 lines of a file as a list of strings."
9650 #: ../fish/guestfish-actions.pod:1635
9655 #: ../fish/guestfish-actions.pod:1637
9658 " head-n nrlines path\n"
9663 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2519
9665 "If the parameter C<nrlines> is a positive number, this returns the first "
9666 "C<nrlines> lines of the file C<path>."
9670 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2522
9672 "If the parameter C<nrlines> is a negative number, this returns lines from "
9673 "the file C<path>, excluding the last C<nrlines> lines."
9677 #: ../fish/guestfish-actions.pod:1645 ../fish/guestfish-actions.pod:4717
9678 #: ../src/guestfs-actions.pod:2525 ../src/guestfs-actions.pod:7150
9679 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9683 #: ../fish/guestfish-actions.pod:1650
9688 #: ../fish/guestfish-actions.pod:1652
9698 #: ../fish/guestfish-actions.pod:1654 ../src/guestfs-actions.pod:2542
9700 "This runs C<hexdump -C> on the given C<path>. The result is the human-"
9701 "readable, canonical hex dump of the file."
9705 #: ../fish/guestfish-actions.pod:1660
9710 #: ../fish/guestfish-actions.pod:1662
9713 " initrd-cat initrdpath filename\n"
9716 " initrd-cat шлях_initrd назва_файла\n"
9720 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2561
9722 "This command unpacks the file C<filename> from the initrd file called "
9723 "C<initrdpath>. The filename must be given I<without> the initial C</> "
9728 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2565
9730 "For example, in guestfish you could use the following command to examine the "
9731 "boot script (usually called C</init>) contained in a Linux initrd or "
9736 #: ../fish/guestfish-actions.pod:1672 ../src/guestfs-actions.pod:2569
9739 " initrd-cat /boot/initrd-<version>.img init\n"
9744 #: ../fish/guestfish-actions.pod:1674
9745 msgid "See also L</initrd-list>."
9746 msgstr "Див. також L</initrd-list>."
9749 #: ../fish/guestfish-actions.pod:1679
9751 msgstr "initrd-list"
9754 #: ../fish/guestfish-actions.pod:1681
9757 " initrd-list path\n"
9760 " initrd-list шлях\n"
9764 #: ../fish/guestfish-actions.pod:1683 ../src/guestfs-actions.pod:2588
9765 msgid "This command lists out files contained in an initrd."
9769 #: ../fish/guestfish-actions.pod:1685 ../src/guestfs-actions.pod:2590
9771 "The files are listed without any initial C</> character. The files are "
9772 "listed in the order they appear (not necessarily alphabetical). Directory "
9773 "names are listed as separate items."
9777 #: ../fish/guestfish-actions.pod:1689 ../src/guestfs-actions.pod:2594
9779 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9780 "initrd. We I<only> support the newer initramfs format (compressed cpio "
9785 #: ../fish/guestfish-actions.pod:1693
9786 msgid "inotify-add-watch"
9787 msgstr "inotify-add-watch"
9790 #: ../fish/guestfish-actions.pod:1695
9793 " inotify-add-watch path mask\n"
9796 " inotify-add-watch шлях маска\n"
9800 #: ../fish/guestfish-actions.pod:1697 ../src/guestfs-actions.pod:2611
9801 msgid "Watch C<path> for the events listed in C<mask>."
9805 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2613
9807 "Note that if C<path> is a directory then events within that directory are "
9808 "watched, but this does I<not> happen recursively (in subdirectories)."
9812 #: ../fish/guestfish-actions.pod:1703 ../src/guestfs-actions.pod:2617
9814 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9815 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9819 #: ../fish/guestfish-actions.pod:1707
9820 msgid "inotify-close"
9821 msgstr "inotify-close"
9824 #: ../fish/guestfish-actions.pod:1709
9834 #: ../fish/guestfish-actions.pod:1711 ../src/guestfs-actions.pod:2630
9836 "This closes the inotify handle which was previously opened by inotify_init. "
9837 "It removes all watches, throws away any pending events, and deallocates all "
9842 #: ../fish/guestfish-actions.pod:1715
9843 msgid "inotify-files"
9844 msgstr "inotify-files"
9847 #: ../fish/guestfish-actions.pod:1717
9857 #: ../fish/guestfish-actions.pod:1719
9859 "This function is a helpful wrapper around L</inotify-read> which just "
9860 "returns a list of pathnames of objects that were touched. The returned "
9861 "pathnames are sorted and deduplicated."
9865 #: ../fish/guestfish-actions.pod:1723
9866 msgid "inotify-init"
9867 msgstr "inotify-init"
9870 #: ../fish/guestfish-actions.pod:1725
9873 " inotify-init maxevents\n"
9878 #: ../fish/guestfish-actions.pod:1727 ../src/guestfs-actions.pod:2659
9880 "This command creates a new inotify handle. The inotify subsystem can be "
9881 "used to notify events which happen to objects in the guest filesystem."
9885 #: ../fish/guestfish-actions.pod:1731
9887 "C<maxevents> is the maximum number of events which will be queued up between "
9888 "calls to L</inotify-read> or L</inotify-files>. If this is passed as C<0>, "
9889 "then the kernel (or previously set) default is used. For Linux 2.6.29 the "
9890 "default was 16384 events. Beyond this limit, the kernel throws away events, "
9891 "but records the fact that it threw them away by setting a flag "
9892 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9896 #: ../fish/guestfish-actions.pod:1741
9898 "Before any events are generated, you have to add some watches to the "
9899 "internal watch list. See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9900 "L</inotify-watch-all>."
9904 #: ../fish/guestfish-actions.pod:1747
9906 "Queued up events should be read periodically by calling L</inotify-read> (or "
9907 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>). "
9908 "If you don't read the events out often enough then you risk the internal "
9909 "queue overflowing."
9913 #: ../fish/guestfish-actions.pod:1754
9915 "The handle should be closed after use by calling L</inotify-close>. This "
9916 "also removes any watches automatically."
9920 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2690
9922 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9923 "by the Linux kernel, which is roughly what we expose via libguestfs. Note "
9924 "that there is one global inotify handle per libguestfs instance."
9928 #: ../fish/guestfish-actions.pod:1763
9929 msgid "inotify-read"
9930 msgstr "inotify-read"
9933 #: ../fish/guestfish-actions.pod:1765
9943 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2704
9945 "Return the complete queue of events that have happened since the previous "
9950 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2707
9951 msgid "If no events have happened, this returns an empty list."
9955 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2709
9957 "I<Note>: In order to make sure that all events have been read, you must call "
9958 "this function repeatedly until it returns an empty list. The reason is that "
9959 "the call will read events up to the maximum appliance-to-host message size "
9960 "and leave remaining events in the queue."
9964 #: ../fish/guestfish-actions.pod:1778
9965 msgid "inotify-rm-watch"
9966 msgstr "inotify-rm-watch"
9969 #: ../fish/guestfish-actions.pod:1780
9972 " inotify-rm-watch wd\n"
9977 #: ../fish/guestfish-actions.pod:1782
9978 msgid "Remove a previously defined inotify watch. See L</inotify-add-watch>."
9982 #: ../fish/guestfish-actions.pod:1785
9983 msgid "inspect-get-arch"
9984 msgstr "inspect-get-arch"
9987 #: ../fish/guestfish-actions.pod:1787
9990 " inspect-get-arch root\n"
9993 " inspect-get-arch корінь\n"
9997 #: ../fish/guestfish-actions.pod:1789
9999 "This returns the architecture of the inspected operating system. The "
10000 "possible return values are listed under L</file-architecture>."
10004 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2744
10006 "If the architecture could not be determined, then the string C<unknown> is "
10011 #: ../fish/guestfish-actions.pod:1796 ../fish/guestfish-actions.pod:1883
10012 #: ../fish/guestfish-actions.pod:1962 ../fish/guestfish-actions.pod:1974
10013 #: ../fish/guestfish-actions.pod:2058 ../fish/guestfish-actions.pod:2119
10014 #: ../fish/guestfish-actions.pod:2140 ../fish/guestfish-actions.pod:2154
10015 #: ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2226
10016 #: ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2252
10017 #: ../fish/guestfish-actions.pod:2262 ../fish/guestfish-actions.pod:2272
10018 #: ../fish/guestfish-actions.pod:2284 ../fish/guestfish-actions.pod:2380
10019 #: ../fish/guestfish-actions.pod:2414 ../src/guestfs-actions.pod:2747
10020 #: ../src/guestfs-actions.pod:2841 ../src/guestfs-actions.pod:2945
10021 #: ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3095
10022 #: ../src/guestfs-actions.pod:3178 ../src/guestfs-actions.pod:3206
10023 #: ../src/guestfs-actions.pod:3227 ../src/guestfs-actions.pod:3280
10024 #: ../src/guestfs-actions.pod:3320 ../src/guestfs-actions.pod:3340
10025 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:3377
10026 #: ../src/guestfs-actions.pod:3393 ../src/guestfs-actions.pod:3411
10027 #: ../src/guestfs-actions.pod:3513 ../src/guestfs-actions.pod:3554
10028 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10032 #: ../fish/guestfish-actions.pod:1798
10033 msgid "inspect-get-distro"
10034 msgstr "inspect-get-distro"
10037 #: ../fish/guestfish-actions.pod:1800
10040 " inspect-get-distro root\n"
10043 " inspect-get-distro корінь\n"
10047 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2760
10049 "This returns the distro (distribution) of the inspected operating system."
10053 #: ../fish/guestfish-actions.pod:1805 ../src/guestfs-actions.pod:2763
10054 msgid "Currently defined distros are:"
10058 #: ../fish/guestfish-actions.pod:1809 ../src/guestfs-actions.pod:2767
10059 msgid "\"archlinux\""
10060 msgstr "\"archlinux\""
10063 #: ../fish/guestfish-actions.pod:1811 ../src/guestfs-actions.pod:2769
10064 msgid "Arch Linux."
10065 msgstr "Arch Linux."
10068 #: ../fish/guestfish-actions.pod:1813 ../src/guestfs-actions.pod:2771
10073 #: ../fish/guestfish-actions.pod:1815 ../src/guestfs-actions.pod:2773
10078 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2775
10080 msgstr "\"debian\""
10083 #: ../fish/guestfish-actions.pod:1819 ../src/guestfs-actions.pod:2777
10088 #: ../fish/guestfish-actions.pod:1821 ../src/guestfs-actions.pod:2779
10090 msgstr "\"fedora\""
10093 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2781
10098 #: ../fish/guestfish-actions.pod:1825 ../src/guestfs-actions.pod:2783
10100 msgstr "\"gentoo\""
10103 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2785
10108 #: ../fish/guestfish-actions.pod:1829 ../src/guestfs-actions.pod:2787
10109 msgid "\"linuxmint\""
10110 msgstr "\"linuxmint\""
10113 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2789
10114 msgid "Linux Mint."
10115 msgstr "Linux Mint."
10118 #: ../fish/guestfish-actions.pod:1833 ../src/guestfs-actions.pod:2791
10119 msgid "\"mandriva\""
10120 msgstr "\"mandriva\""
10123 #: ../fish/guestfish-actions.pod:1835 ../src/guestfs-actions.pod:2793
10128 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2795
10133 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2797
10138 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2799
10140 msgstr "\"pardus\""
10143 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2801
10148 #: ../fish/guestfish-actions.pod:1845 ../src/guestfs-actions.pod:2803
10149 msgid "\"redhat-based\""
10150 msgstr "\"redhat-based\""
10153 #: ../fish/guestfish-actions.pod:1847 ../src/guestfs-actions.pod:2805
10154 msgid "Some Red Hat-derived distro."
10155 msgstr "Дистрибутив, що походить від Red Hat."
10158 #: ../fish/guestfish-actions.pod:1849 ../src/guestfs-actions.pod:2807
10163 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2809
10164 msgid "Red Hat Enterprise Linux."
10168 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2811
10169 msgid "\"scientificlinux\""
10173 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2813
10174 msgid "Scientific Linux."
10178 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2815
10179 msgid "\"slackware\""
10183 #: ../fish/guestfish-actions.pod:1859 ../src/guestfs-actions.pod:2817
10188 #: ../fish/guestfish-actions.pod:1861 ../src/guestfs-actions.pod:2819
10190 #| msgid "\"linux\""
10191 msgid "\"ttylinux\""
10195 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2821
10197 #| msgid "\"linux\""
10202 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2823
10204 msgstr "\"ubuntu\""
10207 #: ../fish/guestfish-actions.pod:1867 ../src/guestfs-actions.pod:2825
10212 #: ../fish/guestfish-actions.pod:1869 ../fish/guestfish-actions.pod:1953
10213 #: ../fish/guestfish-actions.pod:2217 ../src/guestfs-actions.pod:2827
10214 #: ../src/guestfs-actions.pod:2936 ../src/guestfs-actions.pod:3311
10215 msgid "\"unknown\""
10216 msgstr "\"unknown\""
10219 #: ../fish/guestfish-actions.pod:1871 ../src/guestfs-actions.pod:2829
10220 msgid "The distro could not be determined."
10221 msgstr "Дистрибутив, тип якого не вдалося визначити."
10224 #: ../fish/guestfish-actions.pod:1873 ../fish/guestfish-actions.pod:2209
10225 #: ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:3303
10226 msgid "\"windows\""
10227 msgstr "\"windows\""
10230 #: ../fish/guestfish-actions.pod:1875 ../src/guestfs-actions.pod:2833
10232 "Windows does not have distributions. This string is returned if the OS type "
10237 #: ../fish/guestfish-actions.pod:1880 ../fish/guestfish-actions.pod:1959
10238 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:2838
10239 #: ../src/guestfs-actions.pod:2942 ../src/guestfs-actions.pod:3317
10241 "Future versions of libguestfs may return other strings here. The caller "
10242 "should be prepared to handle any string."
10246 #: ../fish/guestfish-actions.pod:1885
10247 msgid "inspect-get-drive-mappings"
10251 #: ../fish/guestfish-actions.pod:1887
10254 " inspect-get-drive-mappings root\n"
10259 #: ../fish/guestfish-actions.pod:1889 ../src/guestfs-actions.pod:2854
10261 "This call is useful for Windows which uses a primitive system of assigning "
10262 "drive letters (like \"C:\") to partitions. This inspection API examines the "
10263 "Windows Registry to find out how disks/partitions are mapped to drive "
10264 "letters, and returns a hash table as in the example below:"
10268 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:2860
10271 " C => /dev/vda2\n"
10272 " E => /dev/vdb1\n"
10273 " F => /dev/vdc1\n"
10278 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2864
10280 "Note that keys are drive letters. For Windows, the key is case insensitive "
10281 "and just contains the drive letter, without the customary colon separator "
10286 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2868
10288 "In future we may support other operating systems that also used drive "
10289 "letters, but the keys for those might not be case insensitive and might be "
10290 "longer than 1 character. For example in OS-9, hard drives were named C<h0>, "
10295 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2873
10297 "For Windows guests, currently only hard drive mappings are returned. "
10298 "Removable disks (eg. DVD-ROMs) are ignored."
10302 #: ../fish/guestfish-actions.pod:1911 ../src/guestfs-actions.pod:2876
10304 "For guests that do not use drive mappings, or if the drive mappings could "
10305 "not be determined, this returns an empty hash table."
10309 #: ../fish/guestfish-actions.pod:1914
10311 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10312 "get-mountpoints>, L</inspect-get-filesystems>."
10316 #: ../fish/guestfish-actions.pod:1918
10317 msgid "inspect-get-filesystems"
10318 msgstr "inspect-get-filesystems"
10321 #: ../fish/guestfish-actions.pod:1920
10324 " inspect-get-filesystems root\n"
10327 " inspect-get-filesystems корінь\n"
10331 #: ../fish/guestfish-actions.pod:1922 ../src/guestfs-actions.pod:2897
10333 "This returns a list of all the filesystems that we think are associated with "
10334 "this operating system. This includes the root filesystem, other ordinary "
10335 "filesystems, and non-mounted devices like swap partitions."
10339 #: ../fish/guestfish-actions.pod:1927 ../src/guestfs-actions.pod:2902
10341 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10342 "to be shared between operating systems."
10346 #: ../fish/guestfish-actions.pod:1930
10348 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10349 "get-mountpoints>."
10353 #: ../fish/guestfish-actions.pod:1933
10354 msgid "inspect-get-format"
10355 msgstr "inspect-get-format"
10358 #: ../fish/guestfish-actions.pod:1935
10361 " inspect-get-format root\n"
10364 " inspect-get-format корінь\n"
10368 #: ../fish/guestfish-actions.pod:1937 ../src/guestfs-actions.pod:2920
10370 "This returns the format of the inspected operating system. You can use it "
10371 "to detect install images, live CDs and similar."
10375 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2923
10376 msgid "Currently defined formats are:"
10380 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:2927
10381 msgid "\"installed\""
10382 msgstr "\"installed\""
10385 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2929
10386 msgid "This is an installed operating system."
10387 msgstr "Це встановлена операційна система."
10390 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2931
10391 msgid "\"installer\""
10395 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2933
10397 "The disk image being inspected is not an installed operating system, but a "
10398 "I<bootable> install disk, live CD, or similar."
10402 #: ../fish/guestfish-actions.pod:1955 ../src/guestfs-actions.pod:2938
10403 msgid "The format of this disk image is not known."
10407 #: ../fish/guestfish-actions.pod:1964
10408 msgid "inspect-get-hostname"
10409 msgstr "inspect-get-hostname"
10412 #: ../fish/guestfish-actions.pod:1966
10415 " inspect-get-hostname root\n"
10418 " inspect-get-hostname корінь\n"
10422 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2958
10424 "This function returns the hostname of the operating system as found by "
10425 "inspection of the guest's configuration files."
10429 #: ../fish/guestfish-actions.pod:1971 ../src/guestfs-actions.pod:2961
10431 "If the hostname could not be determined, then the string C<unknown> is "
10436 #: ../fish/guestfish-actions.pod:1976
10437 msgid "inspect-get-icon"
10441 #: ../fish/guestfish-actions.pod:1978
10444 " inspect-get-icon root [favicon:..] [highquality:..]\n"
10449 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:2987
10451 "This function returns an icon corresponding to the inspected operating "
10452 "system. The icon is returned as a buffer containing a PNG image (re-encoded "
10453 "to PNG if necessary)."
10457 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2991
10459 "If it was not possible to get an icon this function returns a zero-length "
10460 "(non-NULL) buffer. I<Callers must check for this case>."
10464 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:2994
10466 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10467 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10468 "this file will be returned. You can disable favicons by passing the "
10469 "optional C<favicon> boolean as false (default is true)."
10473 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3000
10475 "If finding the favicon fails, then we look in other places in the guest for "
10480 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3003
10482 "If the optional C<highquality> boolean is true then only high quality icons "
10483 "are returned, which means only icons of high resolution with an alpha "
10484 "channel. The default (false) is to return any icon we can, even if it is of "
10485 "substandard quality."
10489 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3014
10491 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10492 "before you call this, since it needs to read information from the guest "
10493 "filesystem during the call."
10497 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:3020
10499 "B<Security:> The icon data comes from the untrusted guest, and should be "
10500 "treated with caution. PNG files have been known to contain exploits. "
10501 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10502 "trying to process or display the icon."
10506 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3028
10508 "The PNG image returned can be any size. It might not be square. Libguestfs "
10509 "tries to return the largest, highest quality icon available. The "
10510 "application must scale the icon to the required size."
10514 #: ../fish/guestfish-actions.pod:2028 ../src/guestfs-actions.pod:3035
10516 "Extracting icons from Windows guests requires the external C<wrestool> "
10517 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10518 "C<pnmtopng>, C<pamcut>) from the C<netpbm> package. These must be "
10519 "installed separately."
10523 #: ../fish/guestfish-actions.pod:2035 ../src/guestfs-actions.pod:3042
10525 "Operating system icons are usually trademarks. Seek legal advice before "
10526 "using trademarks in applications."
10530 #: ../fish/guestfish-actions.pod:2042
10531 msgid "inspect-get-major-version"
10532 msgstr "inspect-get-major-version"
10535 #: ../fish/guestfish-actions.pod:2044
10538 " inspect-get-major-version root\n"
10541 " inspect-get-major-version корінь\n"
10545 #: ../fish/guestfish-actions.pod:2046 ../src/guestfs-actions.pod:3083
10547 "This returns the major version number of the inspected operating system."
10551 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3086
10553 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10554 "popular public names used by the operating system. Notably the operating "
10555 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10556 "1). You can find out the real versions corresponding to releases of Windows "
10557 "by consulting Wikipedia or MSDN."
10561 #: ../fish/guestfish-actions.pod:2056 ../fish/guestfish-actions.pod:2067
10562 #: ../src/guestfs-actions.pod:3093 ../src/guestfs-actions.pod:3110
10563 msgid "If the version could not be determined, then C<0> is returned."
10567 #: ../fish/guestfish-actions.pod:2060
10568 msgid "inspect-get-minor-version"
10569 msgstr "inspect-get-minor-version"
10572 #: ../fish/guestfish-actions.pod:2062
10575 " inspect-get-minor-version root\n"
10578 " inspect-get-minor-version корінь\n"
10582 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3107
10584 "This returns the minor version number of the inspected operating system."
10588 #: ../fish/guestfish-actions.pod:2069
10590 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10591 "get-major-version>."
10595 #: ../fish/guestfish-actions.pod:2072
10596 msgid "inspect-get-mountpoints"
10597 msgstr "inspect-get-mountpoints"
10600 #: ../fish/guestfish-actions.pod:2074
10603 " inspect-get-mountpoints root\n"
10606 " inspect-get-mountpoints корінь\n"
10610 #: ../fish/guestfish-actions.pod:2076 ../src/guestfs-actions.pod:3125
10612 "This returns a hash of where we think the filesystems associated with this "
10613 "operating system should be mounted. Callers should note that this is at "
10614 "best an educated guess made by reading configuration files such as C</etc/"
10615 "fstab>. I<In particular note> that this may return filesystems which are "
10616 "non-existent or not mountable and callers should be prepared to handle or "
10617 "ignore failures if they try to mount them."
10621 #: ../fish/guestfish-actions.pod:2085 ../src/guestfs-actions.pod:3134
10623 "Each element in the returned hashtable has a key which is the path of the "
10624 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10625 "mounted there (eg. C</dev/sda1>)."
10629 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3139
10631 "Non-mounted devices such as swap devices are I<not> returned in this list."
10635 #: ../fish/guestfish-actions.pod:2093
10637 "For operating systems like Windows which still use drive letters, this call "
10638 "will only return an entry for the first drive \"mounted on\" C</>. For "
10639 "information about the mapping of drive letters to partitions, see L</inspect-"
10640 "get-drive-mappings>."
10644 #: ../fish/guestfish-actions.pod:2099
10646 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10647 "get-filesystems>."
10651 #: ../fish/guestfish-actions.pod:2102
10652 msgid "inspect-get-package-format"
10653 msgstr "inspect-get-package-format"
10656 #: ../fish/guestfish-actions.pod:2104
10659 " inspect-get-package-format root\n"
10662 " inspect-get-package-format корінь\n"
10666 #: ../fish/guestfish-actions.pod:2106
10668 "This function and L</inspect-get-package-management> return the package "
10669 "format and package management tool used by the inspected operating system. "
10670 "For example for Fedora these functions would return C<rpm> (package format) "
10671 "and C<yum> (package management)."
10675 #: ../fish/guestfish-actions.pod:2112 ../src/guestfs-actions.pod:3171
10677 "This returns the string C<unknown> if we could not determine the package "
10678 "format I<or> if the operating system does not have a real packaging system "
10683 #: ../fish/guestfish-actions.pod:2116 ../src/guestfs-actions.pod:3175
10685 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>. "
10686 "Future versions of libguestfs may return other strings."
10690 #: ../fish/guestfish-actions.pod:2121
10691 msgid "inspect-get-package-management"
10692 msgstr "inspect-get-package-management"
10695 #: ../fish/guestfish-actions.pod:2123
10698 " inspect-get-package-management root\n"
10701 " inspect-get-package-management корінь\n"
10705 #: ../fish/guestfish-actions.pod:2125
10707 "L</inspect-get-package-format> and this function return the package format "
10708 "and package management tool used by the inspected operating system. For "
10709 "example for Fedora these functions would return C<rpm> (package format) and "
10710 "C<yum> (package management)."
10714 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3197
10716 "This returns the string C<unknown> if we could not determine the package "
10717 "management tool I<or> if the operating system does not have a real packaging "
10718 "system (eg. Windows)."
10722 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3201
10724 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10725 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>. Future versions of "
10726 "libguestfs may return other strings."
10730 #: ../fish/guestfish-actions.pod:2142
10731 msgid "inspect-get-product-name"
10732 msgstr "inspect-get-product-name"
10735 #: ../fish/guestfish-actions.pod:2144
10738 " inspect-get-product-name root\n"
10741 " inspect-get-product-name корінь\n"
10745 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3219
10747 "This returns the product name of the inspected operating system. The "
10748 "product name is generally some freeform string which can be displayed to the "
10749 "user, but should not be parsed by programs."
10753 #: ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:3224
10755 "If the product name could not be determined, then the string C<unknown> is "
10760 #: ../fish/guestfish-actions.pod:2156
10761 msgid "inspect-get-product-variant"
10765 #: ../fish/guestfish-actions.pod:2158
10768 " inspect-get-product-variant root\n"
10773 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3240
10774 msgid "This returns the product variant of the inspected operating system."
10778 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3243
10780 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10781 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10782 "is usually a string such as C<Client> or C<Server> (other values are "
10783 "possible). This can be used to distinguish consumer and enterprise versions "
10784 "of Windows that have the same version number (for example, Windows 7 and "
10785 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10786 "the latter is C<Server>)."
10790 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:3252
10792 "For enterprise Linux guests, in future we intend this to return the product "
10793 "variant such as C<Desktop>, C<Server> and so on. But this is not "
10794 "implemented at present."
10798 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3256
10800 "If the product variant could not be determined, then the string C<unknown> "
10805 #: ../fish/guestfish-actions.pod:2179
10807 "Please read L<guestfs(3)/INSPECTION> for more details. See also L</inspect-"
10808 "get-product-name>, L</inspect-get-major-version>."
10812 #: ../fish/guestfish-actions.pod:2183
10813 msgid "inspect-get-roots"
10814 msgstr "inspect-get-roots"
10817 #: ../fish/guestfish-actions.pod:2185
10820 " inspect-get-roots\n"
10823 " inspect-get-roots\n"
10827 #: ../fish/guestfish-actions.pod:2187
10829 "This function is a convenient way to get the list of root devices, as "
10830 "returned from a previous call to L</inspect-os>, but without redoing the "
10831 "whole inspection process."
10835 #: ../fish/guestfish-actions.pod:2191
10837 "This returns an empty list if either no root devices were found or the "
10838 "caller has not called L</inspect-os>."
10842 #: ../fish/guestfish-actions.pod:2196
10843 msgid "inspect-get-type"
10844 msgstr "inspect-get-type"
10847 #: ../fish/guestfish-actions.pod:2198
10850 " inspect-get-type root\n"
10853 " inspect-get-type корінь\n"
10857 #: ../fish/guestfish-actions.pod:2200 ../src/guestfs-actions.pod:3294
10859 "This returns the type of the inspected operating system. Currently defined "
10864 #: ../fish/guestfish-actions.pod:2205 ../src/guestfs-actions.pod:3299
10869 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3301
10870 msgid "Any Linux-based operating system."
10874 #: ../fish/guestfish-actions.pod:2211 ../src/guestfs-actions.pod:3305
10875 msgid "Any Microsoft Windows operating system."
10879 #: ../fish/guestfish-actions.pod:2213 ../src/guestfs-actions.pod:3307
10880 msgid "\"freebsd\""
10881 msgstr "\"freebsd\""
10884 #: ../fish/guestfish-actions.pod:2215 ../src/guestfs-actions.pod:3309
10889 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3313
10890 msgid "The operating system type could not be determined."
10894 #: ../fish/guestfish-actions.pod:2228
10895 msgid "inspect-get-windows-current-control-set"
10899 #: ../fish/guestfish-actions.pod:2230
10902 " inspect-get-windows-current-control-set root\n"
10907 #: ../fish/guestfish-actions.pod:2232 ../src/guestfs-actions.pod:3333
10909 "This returns the Windows CurrentControlSet of the inspected guest. The "
10910 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10914 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3336
10916 "This call assumes that the guest is Windows and that the Registry could be "
10917 "examined by inspection. If this is not the case then an error is returned."
10921 #: ../fish/guestfish-actions.pod:2241
10922 msgid "inspect-get-windows-systemroot"
10923 msgstr "inspect-get-windows-systemroot"
10926 #: ../fish/guestfish-actions.pod:2243
10929 " inspect-get-windows-systemroot root\n"
10932 " inspect-get-windows-systemroot корінь\n"
10936 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3353
10938 "This returns the Windows systemroot of the inspected guest. The systemroot "
10939 "is a directory path such as C</WINDOWS>."
10943 #: ../fish/guestfish-actions.pod:2248 ../src/guestfs-actions.pod:3356
10945 "This call assumes that the guest is Windows and that the systemroot could be "
10946 "determined by inspection. If this is not the case then an error is returned."
10950 #: ../fish/guestfish-actions.pod:2254
10951 msgid "inspect-is-live"
10952 msgstr "inspect-is-live"
10955 #: ../fish/guestfish-actions.pod:2256
10958 " inspect-is-live root\n"
10961 " inspect-is-live корінь\n"
10965 #: ../fish/guestfish-actions.pod:2258
10967 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10968 "then this returns true if a live image was detected on the disk."
10972 #: ../fish/guestfish-actions.pod:2264
10973 msgid "inspect-is-multipart"
10974 msgstr "inspect-is-multipart"
10977 #: ../fish/guestfish-actions.pod:2266
10980 " inspect-is-multipart root\n"
10983 " inspect-is-multipart корінь\n"
10987 #: ../fish/guestfish-actions.pod:2268
10989 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10990 "then this returns true if the disk is part of a set."
10994 #: ../fish/guestfish-actions.pod:2274
10995 msgid "inspect-is-netinst"
10996 msgstr "inspect-is-netinst"
10999 #: ../fish/guestfish-actions.pod:2276
11002 " inspect-is-netinst root\n"
11005 " inspect-is-netinst корінь\n"
11009 #: ../fish/guestfish-actions.pod:2278
11011 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11012 "then this returns true if the disk is a network installer, ie. not a self-"
11013 "contained install CD but one which is likely to require network access to "
11014 "complete the install."
11018 #: ../fish/guestfish-actions.pod:2286
11019 msgid "inspect-list-applications"
11020 msgstr "inspect-list-applications"
11023 #: ../fish/guestfish-actions.pod:2288
11026 " inspect-list-applications root\n"
11029 " inspect-list-applications кореневий_каталог\n"
11033 #: ../fish/guestfish-actions.pod:2290 ../src/guestfs-actions.pod:3423
11034 msgid "Return the list of applications installed in the operating system."
11038 #: ../fish/guestfish-actions.pod:2292
11040 "I<Note:> This call works differently from other parts of the inspection "
11041 "API. You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
11042 "then mount up the disks, before calling this. Listing applications is a "
11043 "significantly more difficult operation which requires access to the full "
11044 "filesystem. Also note that unlike the other L</inspect-get-*> calls which "
11045 "are just returning data cached in the libguestfs handle, this call actually "
11046 "reads parts of the mounted filesystems during the call."
11050 #: ../fish/guestfish-actions.pod:2302 ../src/guestfs-actions.pod:3435
11052 "This returns an empty list if the inspection code was not able to determine "
11053 "the list of applications."
11057 #: ../fish/guestfish-actions.pod:2305 ../src/guestfs-actions.pod:3438
11058 msgid "The application structure contains the following fields:"
11062 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3442
11063 msgid "C<app_name>"
11064 msgstr "C<app_name>"
11067 #: ../fish/guestfish-actions.pod:2311 ../src/guestfs-actions.pod:3444
11069 "The name of the application. For Red Hat-derived and Debian-derived Linux "
11070 "guests, this is the package name."
11074 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3447
11075 msgid "C<app_display_name>"
11076 msgstr "C<app_display_name>"
11079 #: ../fish/guestfish-actions.pod:2316 ../src/guestfs-actions.pod:3449
11081 "The display name of the application, sometimes localized to the install "
11082 "language of the guest operating system."
11086 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3452
11088 "If unavailable this is returned as an empty string C<\"\">. Callers needing "
11089 "to display something can use C<app_name> instead."
11093 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3455
11094 msgid "C<app_epoch>"
11095 msgstr "C<app_epoch>"
11098 #: ../fish/guestfish-actions.pod:2324 ../src/guestfs-actions.pod:3457
11100 "For package managers which use epochs, this contains the epoch of the "
11101 "package (an integer). If unavailable, this is returned as C<0>."
11105 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3460
11106 msgid "C<app_version>"
11107 msgstr "C<app_version>"
11110 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3462
11112 "The version string of the application or package. If unavailable this is "
11113 "returned as an empty string C<\"\">."
11117 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3465
11118 msgid "C<app_release>"
11119 msgstr "C<app_release>"
11122 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3467
11124 "The release string of the application or package, for package managers that "
11125 "use this. If unavailable this is returned as an empty string C<\"\">."
11129 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3471
11130 msgid "C<app_install_path>"
11131 msgstr "C<app_install_path>"
11134 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3473
11136 "The installation path of the application (on operating systems such as "
11137 "Windows which use installation paths). This path is in the format used by "
11138 "the guest operating system, it is not a libguestfs path."
11142 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3478
11143 msgid "If unavailable this is returned as an empty string C<\"\">."
11147 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3480
11148 msgid "C<app_trans_path>"
11149 msgstr "C<app_trans_path>"
11152 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3482
11154 "The install path translated into a libguestfs path. If unavailable this is "
11155 "returned as an empty string C<\"\">."
11159 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3485
11160 msgid "C<app_publisher>"
11161 msgstr "C<app_publisher>"
11164 #: ../fish/guestfish-actions.pod:2354 ../src/guestfs-actions.pod:3487
11166 "The name of the publisher of the application, for package managers that use "
11167 "this. If unavailable this is returned as an empty string C<\"\">."
11171 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3491
11173 msgstr "C<app_url>"
11176 #: ../fish/guestfish-actions.pod:2360 ../src/guestfs-actions.pod:3493
11178 "The URL (eg. upstream URL) of the application. If unavailable this is "
11179 "returned as an empty string C<\"\">."
11183 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3496
11184 msgid "C<app_source_package>"
11185 msgstr "C<app_source_package>"
11188 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3498
11190 "For packaging systems which support this, the name of the source package. "
11191 "If unavailable this is returned as an empty string C<\"\">."
11195 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3501
11196 msgid "C<app_summary>"
11197 msgstr "C<app_summary>"
11200 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3503
11202 "A short (usually one line) description of the application or package. If "
11203 "unavailable this is returned as an empty string C<\"\">."
11207 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3506
11208 msgid "C<app_description>"
11209 msgstr "C<app_description>"
11212 #: ../fish/guestfish-actions.pod:2375 ../src/guestfs-actions.pod:3508
11214 "A longer description of the application or package. If unavailable this is "
11215 "returned as an empty string C<\"\">."
11219 #: ../fish/guestfish-actions.pod:2382
11221 msgstr "inspect-os"
11224 #: ../fish/guestfish-actions.pod:2384
11234 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3526
11236 "This function uses other libguestfs functions and certain heuristics to "
11237 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11238 "for operating systems."
11242 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3530
11243 msgid "The list returned is empty if no operating systems were found."
11247 #: ../fish/guestfish-actions.pod:2392 ../src/guestfs-actions.pod:3532
11249 "If one operating system was found, then this returns a list with a single "
11250 "element, which is the name of the root filesystem of this operating system. "
11251 "It is also possible for this function to return a list containing more than "
11252 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11253 "element being the root filesystem of one of the operating systems."
11257 #: ../fish/guestfish-actions.pod:2399
11259 "You can pass the root string(s) returned to other L</inspect-get-*> "
11260 "functions in order to query further information about each operating system, "
11261 "such as the name and version."
11265 #: ../fish/guestfish-actions.pod:2404
11267 "This function uses other libguestfs features such as L</mount-ro> and L</"
11268 "umount-all> in order to mount and unmount filesystems and look at the "
11269 "contents. This should be called with no disks currently mounted. The "
11270 "function may also use Augeas, so any existing Augeas handle will be closed."
11274 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3550
11276 "This function cannot decrypt encrypted disks. The caller must do that first "
11277 "(supplying the necessary keys) if the disk is encrypted."
11281 #: ../fish/guestfish-actions.pod:2416 ../fish/guestfish-actions.pod:2614
11282 #: ../fish/guestfish-actions.pod:2673
11283 msgid "See also L</list-filesystems>."
11284 msgstr "Див. також L</list-filesystems>."
11287 #: ../fish/guestfish-actions.pod:2418
11288 msgid "is-blockdev"
11289 msgstr "is-blockdev"
11292 #: ../fish/guestfish-actions.pod:2420
11295 " is-blockdev path\n"
11298 " is-blockdev шлях\n"
11302 #: ../fish/guestfish-actions.pod:2422 ../src/guestfs-actions.pod:3570
11304 "This returns C<true> if and only if there is a block device with the given "
11309 #: ../fish/guestfish-actions.pod:2425 ../fish/guestfish-actions.pod:2443
11310 #: ../fish/guestfish-actions.pod:2462 ../fish/guestfish-actions.pod:2471
11311 #: ../fish/guestfish-actions.pod:2481 ../fish/guestfish-actions.pod:2515
11312 #: ../fish/guestfish-actions.pod:2524
11313 msgid "See also L</stat>."
11314 msgstr "Див. також L</stat>."
11317 #: ../fish/guestfish-actions.pod:2427
11322 #: ../fish/guestfish-actions.pod:2429
11332 #: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3584
11334 "This returns true iff this handle is busy processing a command (in the "
11339 #: ../fish/guestfish-actions.pod:2436
11341 msgstr "is-chardev"
11344 #: ../fish/guestfish-actions.pod:2438
11347 " is-chardev path\n"
11350 " is-chardev шлях\n"
11354 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3599
11356 "This returns C<true> if and only if there is a character device with the "
11357 "given C<path> name."
11361 #: ../fish/guestfish-actions.pod:2445
11366 #: ../fish/guestfish-actions.pod:2447
11376 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3613
11378 "This returns true iff this handle is being configured (in the C<CONFIG> "
11383 #: ../fish/guestfish-actions.pod:2454
11388 #: ../fish/guestfish-actions.pod:2456
11398 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3628
11400 "This returns C<true> if and only if there is a directory with the given "
11401 "C<path> name. Note that it returns false for other objects like files."
11405 #: ../fish/guestfish-actions.pod:2464
11410 #: ../fish/guestfish-actions.pod:2466
11420 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3644
11422 "This returns C<true> if and only if there is a FIFO (named pipe) with the "
11423 "given C<path> name."
11427 #: ../fish/guestfish-actions.pod:2473
11432 #: ../fish/guestfish-actions.pod:2475
11442 #: ../fish/guestfish-actions.pod:2477 ../src/guestfs-actions.pod:3659
11444 "This returns C<true> if and only if there is a regular file with the given "
11445 "C<path> name. Note that it returns false for other objects like directories."
11449 #: ../fish/guestfish-actions.pod:2483
11450 msgid "is-launching"
11451 msgstr "is-launching"
11454 #: ../fish/guestfish-actions.pod:2485
11464 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3674
11466 "This returns true iff this handle is launching the subprocess (in the "
11467 "C<LAUNCHING> state)."
11471 #: ../fish/guestfish-actions.pod:2492
11476 #: ../fish/guestfish-actions.pod:2494
11482 " is-lv пристрій\n"
11486 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3689
11488 "This command tests whether C<device> is a logical volume, and returns true "
11489 "iff this is the case."
11493 #: ../fish/guestfish-actions.pod:2499
11498 #: ../fish/guestfish-actions.pod:2501
11508 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3701
11510 "This returns true iff this handle is ready to accept commands (in the "
11515 #: ../fish/guestfish-actions.pod:2508
11520 #: ../fish/guestfish-actions.pod:2510
11523 " is-socket path\n"
11526 " is-socket шлях\n"
11530 #: ../fish/guestfish-actions.pod:2512 ../src/guestfs-actions.pod:3716
11532 "This returns C<true> if and only if there is a Unix domain socket with the "
11533 "given C<path> name."
11537 #: ../fish/guestfish-actions.pod:2517
11539 msgstr "is-symlink"
11542 #: ../fish/guestfish-actions.pod:2519
11545 " is-symlink path\n"
11548 " is-symlink шлях\n"
11552 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3731
11554 "This returns C<true> if and only if there is a symbolic link with the given "
11559 #: ../fish/guestfish-actions.pod:2526
11564 #: ../fish/guestfish-actions.pod:2528
11572 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3746
11574 "This returns true iff the file exists and the file is empty or it contains "
11579 #: ../fish/guestfish-actions.pod:2533
11580 msgid "is-zero-device"
11584 #: ../fish/guestfish-actions.pod:2535
11587 " is-zero-device device\n"
11592 #: ../fish/guestfish-actions.pod:2537 ../src/guestfs-actions.pod:3759
11593 msgid "This returns true iff the device exists and contains all zero bytes."
11597 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3761
11598 msgid "Note that for large devices this can take a long time to run."
11602 #: ../fish/guestfish-actions.pod:2541
11603 msgid "kill-subprocess"
11604 msgstr "kill-subprocess"
11607 #: ../fish/guestfish-actions.pod:2543
11610 " kill-subprocess\n"
11613 " kill-subprocess\n"
11617 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3772
11618 msgid "This kills the qemu subprocess. You should never need to call this."
11622 #: ../fish/guestfish-actions.pod:2547
11627 #: ../fish/guestfish-actions.pod:2549
11632 #: ../fish/guestfish-actions.pod:2551
11642 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3783
11644 "Internally libguestfs is implemented by running a virtual machine using "
11649 #: ../fish/guestfish-actions.pod:2556 ../src/guestfs-actions.pod:3786
11651 "You should call this after configuring the handle (eg. adding drives) but "
11652 "before performing any actions."
11656 #: ../fish/guestfish-actions.pod:2559
11661 #: ../fish/guestfish-actions.pod:2561
11664 " lchown owner group path\n"
11667 " lchown власник група шлях\n"
11671 #: ../fish/guestfish-actions.pod:2563
11673 "Change the file owner to C<owner> and group to C<group>. This is like L</"
11674 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11679 #: ../fish/guestfish-actions.pod:2571
11684 #: ../fish/guestfish-actions.pod:2573
11687 " lgetxattr path name\n"
11690 " lgetxattr шлях назва\n"
11694 #: ../fish/guestfish-actions.pod:2575 ../src/guestfs-actions.pod:3826
11696 "Get a single extended attribute from file C<path> named C<name>. If C<path> "
11697 "is a symlink, then this call returns an extended attribute from the symlink."
11701 #: ../fish/guestfish-actions.pod:2589
11702 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11703 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11706 #: ../fish/guestfish-actions.pod:2591
11708 msgstr "lgetxattrs"
11711 #: ../fish/guestfish-actions.pod:2593
11714 " lgetxattrs path\n"
11717 " lgetxattrs шлях\n"
11721 #: ../fish/guestfish-actions.pod:2595
11723 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11724 "it returns the extended attributes of the link itself."
11728 #: ../fish/guestfish-actions.pod:2599
11733 #: ../fish/guestfish-actions.pod:2601
11741 #: ../fish/guestfish-actions.pod:2603 ../src/guestfs-actions.pod:3869
11743 "List all 9p filesystems attached to the guest. A list of mount tags is "
11748 #: ../fish/guestfish-actions.pod:2606
11749 msgid "list-devices"
11750 msgstr "list-devices"
11753 #: ../fish/guestfish-actions.pod:2608
11763 #: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3883
11764 msgid "List all the block devices."
11768 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3885
11769 msgid "The full block device names are returned, eg. C</dev/sda>."
11773 #: ../fish/guestfish-actions.pod:2616
11774 msgid "list-dm-devices"
11778 #: ../fish/guestfish-actions.pod:2618
11781 " list-dm-devices\n"
11786 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:3900
11787 msgid "List all device mapper devices."
11791 #: ../fish/guestfish-actions.pod:2622
11793 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11794 "previous call to L</luks-open>."
11798 #: ../fish/guestfish-actions.pod:2625
11800 "Device mapper devices which correspond to logical volumes are I<not> "
11801 "returned in this list. Call L</lvs> if you want to list logical volumes."
11805 #: ../fish/guestfish-actions.pod:2629
11806 msgid "list-filesystems"
11807 msgstr "list-filesystems"
11810 #: ../fish/guestfish-actions.pod:2631
11813 " list-filesystems\n"
11816 " list-filesystems\n"
11820 #: ../fish/guestfish-actions.pod:2633 ../src/guestfs-actions.pod:3920
11822 "This inspection command looks for filesystems on partitions, block devices "
11823 "and logical volumes, returning a list of devices containing filesystems and "
11828 #: ../fish/guestfish-actions.pod:2637 ../src/guestfs-actions.pod:3924
11830 "The return value is a hash, where the keys are the devices containing "
11831 "filesystems, and the values are the filesystem types. For example:"
11835 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3928
11838 " \"/dev/sda1\" => \"ntfs\"\n"
11839 " \"/dev/sda2\" => \"ext2\"\n"
11840 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11841 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11846 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:3933
11848 "The value can have the special value \"unknown\", meaning the content of the "
11849 "device is undetermined or empty. \"swap\" means a Linux swap partition."
11853 #: ../fish/guestfish-actions.pod:2650
11855 "This command runs other libguestfs commands, which might include L</mount> "
11856 "and L</umount>, and therefore you should use this soon after launch and only "
11857 "when nothing is mounted."
11861 #: ../fish/guestfish-actions.pod:2654
11863 "Not all of the filesystems returned will be mountable. In particular, swap "
11864 "partitions are returned in the list. Also this command does not check that "
11865 "each filesystem found is valid and mountable, and some filesystems might be "
11866 "mountable but require special options. Filesystems may not all belong to a "
11867 "single logical operating system (use L</inspect-os> to look for OSes)."
11871 #: ../fish/guestfish-actions.pod:2662
11872 msgid "list-partitions"
11873 msgstr "list-partitions"
11876 #: ../fish/guestfish-actions.pod:2664
11879 " list-partitions\n"
11882 " list-partitions\n"
11886 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:3962
11887 msgid "List all the partitions detected on all block devices."
11891 #: ../fish/guestfish-actions.pod:2668 ../src/guestfs-actions.pod:3964
11892 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11896 #: ../fish/guestfish-actions.pod:2670
11898 "This does not return logical volumes. For that you will need to call L</"
11903 #: ../fish/guestfish-actions.pod:2675
11908 #: ../fish/guestfish-actions.pod:2677
11918 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:3983
11920 "List the files in C<directory> (relative to the root directory, there is no "
11921 "cwd) in the format of 'ls -la'."
11925 #: ../fish/guestfish-actions.pod:2682 ../src/guestfs-actions.pod:3986
11927 "This command is mostly useful for interactive sessions. It is I<not> "
11928 "intended that you try to parse the output string."
11932 #: ../fish/guestfish-actions.pod:2685
11937 #: ../fish/guestfish-actions.pod:2687
11940 " ln target linkname\n"
11943 " ln призначення назва_посилання\n"
11947 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4001
11948 msgid "This command creates a hard link using the C<ln> command."
11952 #: ../fish/guestfish-actions.pod:2691
11957 #: ../fish/guestfish-actions.pod:2693
11960 " ln-f target linkname\n"
11963 " ln-f призначення назва_посилання\n"
11967 #: ../fish/guestfish-actions.pod:2695 ../src/guestfs-actions.pod:4014
11969 "This command creates a hard link using the C<ln -f> command. The I<-f> "
11970 "option removes the link (C<linkname>) if it exists already."
11974 #: ../fish/guestfish-actions.pod:2698
11979 #: ../fish/guestfish-actions.pod:2700
11982 " ln-s target linkname\n"
11985 " ln-s призначення назва_посилання\n"
11989 #: ../fish/guestfish-actions.pod:2702 ../src/guestfs-actions.pod:4028
11990 msgid "This command creates a symbolic link using the C<ln -s> command."
11994 #: ../fish/guestfish-actions.pod:2704
11999 #: ../fish/guestfish-actions.pod:2706
12002 " ln-sf target linkname\n"
12005 " ln-sf призначення назва_посилання\n"
12009 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4041
12011 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12012 "option removes the link (C<linkname>) if it exists already."
12016 #: ../fish/guestfish-actions.pod:2711
12017 msgid "lremovexattr"
12018 msgstr "lremovexattr"
12021 #: ../fish/guestfish-actions.pod:2713
12024 " lremovexattr xattr path\n"
12029 #: ../fish/guestfish-actions.pod:2715
12031 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
12032 "it removes an extended attribute of the link itself."
12036 #: ../fish/guestfish-actions.pod:2719
12041 #: ../fish/guestfish-actions.pod:2721
12051 #: ../fish/guestfish-actions.pod:2723 ../src/guestfs-actions.pod:4069
12053 "List the files in C<directory> (relative to the root directory, there is no "
12054 "cwd). The '.' and '..' entries are not returned, but hidden files are shown."
12058 #: ../fish/guestfish-actions.pod:2727
12060 "This command is mostly useful for interactive sessions. Programs should "
12061 "probably use L</readdir> instead."
12065 #: ../fish/guestfish-actions.pod:2730
12070 #: ../fish/guestfish-actions.pod:2732
12073 " lsetxattr xattr val vallen path\n"
12078 #: ../fish/guestfish-actions.pod:2734
12080 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
12081 "sets an extended attribute of the link itself."
12085 #: ../fish/guestfish-actions.pod:2738
12090 #: ../fish/guestfish-actions.pod:2740
12100 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:4552
12101 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:6890
12102 msgid "Returns file information for the given C<path>."
12106 #: ../fish/guestfish-actions.pod:2744
12108 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
12109 "the link is stat-ed, not the file it refers to."
12113 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4111
12114 msgid "This is the same as the C<lstat(2)> system call."
12118 #: ../fish/guestfish-actions.pod:2750
12123 #: ../fish/guestfish-actions.pod:2752
12126 " lstatlist path 'names ...'\n"
12131 #: ../fish/guestfish-actions.pod:2754
12133 "This call allows you to perform the L</lstat> operation on multiple files, "
12134 "where all files are in the directory C<path>. C<names> is the list of files "
12135 "from this directory."
12139 #: ../fish/guestfish-actions.pod:2758 ../src/guestfs-actions.pod:4130
12141 "On return you get a list of stat structs, with a one-to-one correspondence "
12142 "to the C<names> list. If any name did not exist or could not be lstat'd, "
12143 "then the C<ino> field of that structure is set to C<-1>."
12147 #: ../fish/guestfish-actions.pod:2763
12149 "This call is intended for programs that want to efficiently list a directory "
12150 "contents without making many round-trips. See also L</lxattrlist> for a "
12151 "similarly efficient call for getting extended attributes. Very long "
12152 "directory listings might cause the protocol message size to be exceeded, "
12153 "causing this call to fail. The caller must split up such requests into "
12154 "smaller groups of names."
12158 #: ../fish/guestfish-actions.pod:2771
12159 msgid "luks-add-key"
12160 msgstr "luks-add-key"
12163 #: ../fish/guestfish-actions.pod:2773
12166 " luks-add-key device keyslot\n"
12171 #: ../fish/guestfish-actions.pod:2775 ../src/guestfs-actions.pod:4158
12173 "This command adds a new key on LUKS device C<device>. C<key> is any "
12174 "existing key, and is used to access the device. C<newkey> is the new key to "
12175 "add. C<keyslot> is the key slot that will be replaced."
12179 #: ../fish/guestfish-actions.pod:2780
12181 "Note that if C<keyslot> already contains a key, then this command will "
12182 "fail. You have to use L</luks-kill-slot> first to remove that key."
12186 #: ../fish/guestfish-actions.pod:2784 ../fish/guestfish-actions.pod:2806
12187 #: ../fish/guestfish-actions.pod:2819 ../fish/guestfish-actions.pod:2833
12188 #: ../fish/guestfish-actions.pod:2859 ../fish/guestfish-actions.pod:2869
12190 "This command has one or more key or passphrase parameters. Guestfish will "
12191 "prompt for these separately."
12195 #: ../fish/guestfish-actions.pod:2787
12197 msgstr "luks-close"
12200 #: ../fish/guestfish-actions.pod:2789
12203 " luks-close device\n"
12206 " luks-close пристрій\n"
12210 #: ../fish/guestfish-actions.pod:2791
12212 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
12213 "luks-open-ro>. The C<device> parameter must be the name of the LUKS mapping "
12214 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
12219 #: ../fish/guestfish-actions.pod:2797
12220 msgid "luks-format"
12221 msgstr "luks-format"
12224 #: ../fish/guestfish-actions.pod:2799
12227 " luks-format device keyslot\n"
12232 #: ../fish/guestfish-actions.pod:2801 ../src/guestfs-actions.pod:4199
12234 "This command erases existing data on C<device> and formats the device as a "
12235 "LUKS encrypted device. C<key> is the initial key, which is added to key "
12236 "slot C<slot>. (LUKS supports 8 key slots, numbered 0-7)."
12240 #: ../fish/guestfish-actions.pod:2809 ../fish/guestfish-actions.pod:2822
12241 #: ../fish/guestfish-actions.pod:2909 ../fish/guestfish-actions.pod:3560
12242 #: ../fish/guestfish-actions.pod:4086 ../fish/guestfish-actions.pod:4423
12243 #: ../fish/guestfish-actions.pod:4446 ../fish/guestfish-actions.pod:4468
12244 #: ../fish/guestfish-actions.pod:5214 ../src/guestfs-actions.pod:4206
12245 #: ../src/guestfs-actions.pod:4229 ../src/guestfs-actions.pod:4372
12246 #: ../src/guestfs-actions.pod:5465 ../src/guestfs-actions.pod:6253
12247 #: ../src/guestfs-actions.pod:6704 ../src/guestfs-actions.pod:6734
12248 #: ../src/guestfs-actions.pod:6767 ../src/guestfs-actions.pod:7966
12250 "B<This command is dangerous. Without careful use you can easily destroy all "
12255 #: ../fish/guestfish-actions.pod:2812
12256 msgid "luks-format-cipher"
12257 msgstr "luks-format-cipher"
12260 #: ../fish/guestfish-actions.pod:2814
12263 " luks-format-cipher device keyslot cipher\n"
12268 #: ../fish/guestfish-actions.pod:2816
12270 "This command is the same as L</luks-format> but it also allows you to set "
12271 "the C<cipher> used."
12275 #: ../fish/guestfish-actions.pod:2825
12276 msgid "luks-kill-slot"
12277 msgstr "luks-kill-slot"
12280 #: ../fish/guestfish-actions.pod:2827
12283 " luks-kill-slot device keyslot\n"
12288 #: ../fish/guestfish-actions.pod:2829 ../src/guestfs-actions.pod:4246
12290 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12291 "device C<device>. C<key> must be one of the I<other> keys."
12295 #: ../fish/guestfish-actions.pod:2836
12300 #: ../fish/guestfish-actions.pod:2838
12303 " luks-open device mapname\n"
12308 #: ../fish/guestfish-actions.pod:2840 ../src/guestfs-actions.pod:4266
12310 "This command opens a block device which has been encrypted according to the "
12311 "Linux Unified Key Setup (LUKS) standard."
12315 #: ../fish/guestfish-actions.pod:2843 ../src/guestfs-actions.pod:4269
12316 msgid "C<device> is the encrypted block device or partition."
12320 #: ../fish/guestfish-actions.pod:2845 ../src/guestfs-actions.pod:4271
12322 "The caller must supply one of the keys associated with the LUKS block "
12323 "device, in the C<key> parameter."
12327 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4274
12329 "This creates a new block device called C</dev/mapper/mapname>. Reads and "
12330 "writes to this block device are decrypted from and encrypted to the "
12331 "underlying C<device> respectively."
12335 #: ../fish/guestfish-actions.pod:2852
12337 "If this block device contains LVM volume groups, then calling L</vgscan> "
12338 "followed by L</vg-activate-all> will make them visible."
12342 #: ../fish/guestfish-actions.pod:2856
12343 msgid "Use L</list-dm-devices> to list all device mapper devices."
12347 #: ../fish/guestfish-actions.pod:2862
12348 msgid "luks-open-ro"
12349 msgstr "luks-open-ro"
12352 #: ../fish/guestfish-actions.pod:2864
12355 " luks-open-ro device mapname\n"
12360 #: ../fish/guestfish-actions.pod:2866
12362 "This is the same as L</luks-open> except that a read-only mapping is created."
12366 #: ../fish/guestfish-actions.pod:2872
12371 #: ../fish/guestfish-actions.pod:2874
12374 " lvcreate logvol volgroup mbytes\n"
12379 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4320
12381 "This creates an LVM logical volume called C<logvol> on the volume group "
12382 "C<volgroup>, with C<size> megabytes."
12386 #: ../fish/guestfish-actions.pod:2879
12387 msgid "lvm-canonical-lv-name"
12388 msgstr "lvm-canonical-lv-name"
12391 #: ../fish/guestfish-actions.pod:2881
12394 " lvm-canonical-lv-name lvname\n"
12399 #: ../fish/guestfish-actions.pod:2883 ../src/guestfs-actions.pod:4333
12401 "This converts alternative naming schemes for LVs that you might find to the "
12402 "canonical name. For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12407 #: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4337
12409 "This command returns an error if the C<lvname> parameter does not refer to a "
12414 #: ../fish/guestfish-actions.pod:2890
12415 msgid "See also L</is-lv>."
12416 msgstr "Див. також L</is-lv>."
12419 #: ../fish/guestfish-actions.pod:2892
12420 msgid "lvm-clear-filter"
12421 msgstr "lvm-clear-filter"
12424 #: ../fish/guestfish-actions.pod:2894
12427 " lvm-clear-filter\n"
12430 " lvm-clear-filter\n"
12434 #: ../fish/guestfish-actions.pod:2896
12436 "This undoes the effect of L</lvm-set-filter>. LVM will be able to see every "
12441 #: ../fish/guestfish-actions.pod:2899 ../fish/guestfish-actions.pod:2930
12442 #: ../src/guestfs-actions.pod:4355 ../src/guestfs-actions.pod:4397
12444 "This command also clears the LVM cache and performs a volume group scan."
12448 #: ../fish/guestfish-actions.pod:2902
12449 msgid "lvm-remove-all"
12450 msgstr "lvm-remove-all"
12453 #: ../fish/guestfish-actions.pod:2904
12456 " lvm-remove-all\n"
12459 " lvm-remove-all\n"
12463 #: ../fish/guestfish-actions.pod:2906 ../src/guestfs-actions.pod:4367
12465 "This command removes all LVM logical volumes, volume groups and physical "
12470 #: ../fish/guestfish-actions.pod:2912
12471 msgid "lvm-set-filter"
12472 msgstr "lvm-set-filter"
12475 #: ../fish/guestfish-actions.pod:2914
12478 " lvm-set-filter 'devices ...'\n"
12481 " lvm-set-filter 'пристрої...'\n"
12485 #: ../fish/guestfish-actions.pod:2916 ../src/guestfs-actions.pod:4383
12487 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12488 "block devices in the list C<devices>, and will ignore all other attached "
12493 #: ../fish/guestfish-actions.pod:2920 ../src/guestfs-actions.pod:4387
12495 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12496 "get LVM to ignore the duplicates, otherwise LVM can get confused. Note also "
12497 "there are two types of duplication possible: either cloned PVs/VGs which "
12498 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12499 "same name. In normal operation you cannot create this situation, but you "
12500 "can do it outside LVM, eg. by cloning disk images or by bit twiddling "
12501 "inside the LVM metadata."
12505 #: ../fish/guestfish-actions.pod:2933 ../src/guestfs-actions.pod:4400
12506 msgid "You can filter whole block devices or individual partitions."
12510 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4402
12512 "You cannot use this if any VG is currently in use (eg. contains a mounted "
12513 "filesystem), even if you are not filtering out that VG."
12517 #: ../fish/guestfish-actions.pod:2939
12522 #: ../fish/guestfish-actions.pod:2941
12525 " lvremove device\n"
12528 " lvremove пристрій\n"
12532 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4416
12534 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12535 "LV, such as C</dev/VG/LV>."
12539 #: ../fish/guestfish-actions.pod:2946 ../src/guestfs-actions.pod:4419
12541 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12546 #: ../fish/guestfish-actions.pod:2949
12551 #: ../fish/guestfish-actions.pod:2951
12554 " lvrename logvol newlogvol\n"
12559 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4433
12560 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12564 #: ../fish/guestfish-actions.pod:2955
12569 #: ../fish/guestfish-actions.pod:2957
12572 " lvresize device mbytes\n"
12577 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4446
12579 "This resizes (expands or shrinks) an existing LVM logical volume to "
12580 "C<mbytes>. When reducing, data in the reduced part is lost."
12584 #: ../fish/guestfish-actions.pod:2963
12585 msgid "lvresize-free"
12586 msgstr "lvresize-free"
12589 #: ../fish/guestfish-actions.pod:2965
12592 " lvresize-free lv percent\n"
12597 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4461
12599 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12600 "remaining free space in the volume group. Commonly you would call this with "
12601 "pc = 100 which expands the logical volume as much as possible, using all "
12602 "remaining free space in the volume group."
12606 #: ../fish/guestfish-actions.pod:2973
12611 #: ../fish/guestfish-actions.pod:2975
12621 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4476
12623 "List all the logical volumes detected. This is the equivalent of the L<lvs"
12628 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4479
12630 "This returns a list of the logical volume device names (eg. C</dev/"
12631 "VolGroup00/LogVol00>)."
12635 #: ../fish/guestfish-actions.pod:2983
12636 msgid "See also L</lvs-full>, L</list-filesystems>."
12637 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
12640 #: ../fish/guestfish-actions.pod:2985
12645 #: ../fish/guestfish-actions.pod:2987
12655 #: ../fish/guestfish-actions.pod:2989 ../src/guestfs-actions.pod:4495
12657 "List all the logical volumes detected. This is the equivalent of the L<lvs"
12658 "(8)> command. The \"full\" version includes all fields."
12662 #: ../fish/guestfish-actions.pod:2992
12667 #: ../fish/guestfish-actions.pod:2994
12673 " lvuuid пристрій\n"
12677 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4510
12678 msgid "This command returns the UUID of the LVM LV C<device>."
12682 #: ../fish/guestfish-actions.pod:2998
12684 msgstr "lxattrlist"
12687 #: ../fish/guestfish-actions.pod:3000
12690 " lxattrlist path 'names ...'\n"
12695 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4524
12697 "This call allows you to get the extended attributes of multiple files, where "
12698 "all files are in the directory C<path>. C<names> is the list of files from "
12703 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4528
12705 "On return you get a flat list of xattr structs which must be interpreted "
12706 "sequentially. The first xattr struct always has a zero-length C<attrname>. "
12707 "C<attrval> in this struct is zero-length to indicate there was an error "
12708 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12709 "number (the number of following attributes for this file, which could be C<"
12710 "\"0\">). Then after the first xattr struct are the zero or more attributes "
12711 "for the first named file. This repeats for the second and subsequent files."
12715 #: ../fish/guestfish-actions.pod:3016
12717 "This call is intended for programs that want to efficiently list a directory "
12718 "contents without making many round-trips. See also L</lstatlist> for a "
12719 "similarly efficient call for getting standard stats. Very long directory "
12720 "listings might cause the protocol message size to be exceeded, causing this "
12721 "call to fail. The caller must split up such requests into smaller groups of "
12726 #: ../fish/guestfish-actions.pod:3024
12731 #: ../fish/guestfish-actions.pod:3026
12741 #: ../fish/guestfish-actions.pod:3028 ../src/guestfs-actions.pod:4558
12742 msgid "Create a directory named C<path>."
12746 #: ../fish/guestfish-actions.pod:3030
12748 msgstr "mkdir-mode"
12751 #: ../fish/guestfish-actions.pod:3032
12754 " mkdir-mode path mode\n"
12757 " mkdir-mode шлях режим\n"
12761 #: ../fish/guestfish-actions.pod:3034 ../src/guestfs-actions.pod:4571
12763 "This command creates a directory, setting the initial permissions of the "
12764 "directory to C<mode>."
12768 #: ../fish/guestfish-actions.pod:3037 ../src/guestfs-actions.pod:4574
12770 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12771 "~umask & 01777>. Non-native-Linux filesystems may interpret the mode in "
12776 #: ../fish/guestfish-actions.pod:3041
12777 msgid "See also L</mkdir>, L</umask>"
12778 msgstr "Див. також L</mkdir>, L</umask>"
12781 #: ../fish/guestfish-actions.pod:3043
12786 #: ../fish/guestfish-actions.pod:3045
12796 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4590
12798 "Create a directory named C<path>, creating any parent directories as "
12799 "necessary. This is like the C<mkdir -p> shell command."
12803 #: ../fish/guestfish-actions.pod:3050
12808 #: ../fish/guestfish-actions.pod:3052
12811 " mkdtemp template\n"
12814 " mkdtemp шаблон\n"
12818 #: ../fish/guestfish-actions.pod:3054 ../src/guestfs-actions.pod:4603
12820 "This command creates a temporary directory. The C<template> parameter "
12821 "should be a full pathname for the temporary directory name with the final "
12822 "six characters being \"XXXXXX\"."
12826 #: ../fish/guestfish-actions.pod:3059 ../src/guestfs-actions.pod:4608
12828 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12829 "being suitable for Windows filesystems."
12833 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4611
12834 msgid "The name of the temporary directory that was created is returned."
12838 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4614
12839 msgid "The temporary directory is created with mode 0700 and is owned by root."
12843 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4617
12845 "The caller is responsible for deleting the temporary directory and its "
12846 "contents after use."
12850 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4620
12851 msgid "See also: L<mkdtemp(3)>"
12855 #: ../fish/guestfish-actions.pod:3073
12860 #: ../fish/guestfish-actions.pod:3075
12863 " mke2fs-J fstype blocksize device journal\n"
12868 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4636
12870 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12871 "C<journal>. It is equivalent to the command:"
12875 #: ../fish/guestfish-actions.pod:3081 ../src/guestfs-actions.pod:4640
12878 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12881 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
12885 #: ../fish/guestfish-actions.pod:3083
12886 msgid "See also L</mke2journal>."
12887 msgstr "Див. також L</mke2journal>."
12890 #: ../fish/guestfish-actions.pod:3085
12895 #: ../fish/guestfish-actions.pod:3087
12898 " mke2fs-JL fstype blocksize device label\n"
12903 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4657
12905 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12906 "the journal labeled C<label>."
12910 #: ../fish/guestfish-actions.pod:3092
12911 msgid "See also L</mke2journal-L>."
12912 msgstr "Див. також L</mke2journal-L>."
12915 #: ../fish/guestfish-actions.pod:3094
12920 #: ../fish/guestfish-actions.pod:3096
12923 " mke2fs-JU fstype blocksize device uuid\n"
12928 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4675
12930 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12931 "the journal with UUID C<uuid>."
12935 #: ../fish/guestfish-actions.pod:3101
12936 msgid "See also L</mke2journal-U>."
12937 msgstr "Див. також L</mke2journal-U>."
12940 #: ../fish/guestfish-actions.pod:3103
12941 msgid "mke2journal"
12942 msgstr "mke2journal"
12945 #: ../fish/guestfish-actions.pod:3105
12948 " mke2journal blocksize device\n"
12953 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4691
12955 "This creates an ext2 external journal on C<device>. It is equivalent to the "
12960 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4694
12963 " mke2fs -O journal_dev -b blocksize device\n"
12968 #: ../fish/guestfish-actions.pod:3112
12969 msgid "mke2journal-L"
12970 msgstr "mke2journal-L"
12973 #: ../fish/guestfish-actions.pod:3114
12976 " mke2journal-L blocksize label device\n"
12981 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4708
12982 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12986 #: ../fish/guestfish-actions.pod:3118
12987 msgid "mke2journal-U"
12988 msgstr "mke2journal-U"
12991 #: ../fish/guestfish-actions.pod:3120
12994 " mke2journal-U blocksize uuid device\n"
12999 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4722
13000 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13004 #: ../fish/guestfish-actions.pod:3124
13009 #: ../fish/guestfish-actions.pod:3126
13012 " mkfifo mode path\n"
13015 " mkfifo режим шлях\n"
13019 #: ../fish/guestfish-actions.pod:3128
13021 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
13022 "is just a convenient wrapper around L</mknod>."
13026 #: ../fish/guestfish-actions.pod:3134
13031 #: ../fish/guestfish-actions.pod:3136
13034 " mkfs fstype device\n"
13037 " mkfs тип_файлової_системи пристрій\n"
13041 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4752
13043 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13044 "volume). The filesystem type is C<fstype>, for example C<ext3>."
13048 #: ../fish/guestfish-actions.pod:3142
13053 #: ../fish/guestfish-actions.pod:3144
13056 " mkfs-b fstype blocksize device\n"
13061 #: ../fish/guestfish-actions.pod:3146
13063 "This call is similar to L</mkfs>, but it allows you to control the block "
13064 "size of the resulting filesystem. Supported block sizes depend on the "
13065 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13069 #: ../fish/guestfish-actions.pod:3151 ../fish/guestfish-actions.pod:3178
13070 #: ../src/guestfs-actions.pod:4780 ../src/guestfs-actions.pod:4818
13072 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13077 #: ../fish/guestfish-actions.pod:3154
13079 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
13084 #: ../fish/guestfish-actions.pod:3161
13089 #: ../fish/guestfish-actions.pod:3163
13092 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
13097 #: ../fish/guestfish-actions.pod:3165 ../src/guestfs-actions.pod:4805
13099 "This function creates a filesystem on C<device>. The filesystem type is "
13100 "C<fstype>, for example C<ext3>."
13104 #: ../fish/guestfish-actions.pod:3172 ../src/guestfs-actions.pod:4812
13105 msgid "C<blocksize>"
13106 msgstr "C<blocksize>"
13109 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4814
13111 "The filesystem block size. Supported block sizes depend on the filesystem "
13112 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13117 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4821
13118 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13122 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4823
13123 msgid "C<features>"
13124 msgstr "C<features>"
13127 #: ../fish/guestfish-actions.pod:3185 ../src/guestfs-actions.pod:4825
13128 msgid "This passes the I<-O> parameter to the external mkfs program."
13132 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4827
13134 "For certain filesystem types, this allows extra filesystem features to be "
13135 "selected. See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13139 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4831
13141 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13146 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4834
13151 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4836
13153 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13154 "sets the inode size (only for ext2/3/4 filesystems at present)."
13158 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4839
13159 msgid "C<sectorsize>"
13163 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4841
13165 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13166 "sets sector size for ufs filesystem."
13170 #: ../fish/guestfish-actions.pod:3208
13171 msgid "mkmountpoint"
13172 msgstr "mkmountpoint"
13175 #: ../fish/guestfish-actions.pod:3210
13178 " mkmountpoint exemptpath\n"
13183 #: ../fish/guestfish-actions.pod:3212
13185 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13186 "to create extra mountpoints before mounting the first filesystem."
13190 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4884
13192 "These calls are I<only> necessary in some very limited circumstances, mainly "
13193 "the case where you want to mount a mix of unrelated and/or read-only "
13194 "filesystems together."
13198 #: ../fish/guestfish-actions.pod:3220 ../src/guestfs-actions.pod:4888
13200 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13201 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13202 "inside that. You can unpack this as follows in guestfish:"
13206 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4893
13209 " add-ro Fedora-11-i686-Live.iso\n"
13211 " mkmountpoint /cd\n"
13212 " mkmountpoint /sqsh\n"
13213 " mkmountpoint /ext3fs\n"
13214 " mount /dev/sda /cd\n"
13215 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13216 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13219 " add-ro Fedora-11-i686-Live.iso\n"
13221 " mkmountpoint /cd\n"
13222 " mkmountpoint /sqsh\n"
13223 " mkmountpoint /ext3fs\n"
13224 " mount /dev/sda /cd\n"
13225 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13226 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13230 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4902
13231 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13235 #: ../fish/guestfish-actions.pod:3236
13237 "L</mkmountpoint> is not compatible with L</umount-all>. You may get "
13238 "unexpected errors if you try to mix these calls. It is safest to manually "
13239 "unmount filesystems and remove mountpoints after use."
13243 #: ../fish/guestfish-actions.pod:3240
13245 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13246 "for this to work for manual mountpoints, you must ensure that the innermost "
13247 "mountpoints have the longest pathnames, as in the example code above."
13251 #: ../fish/guestfish-actions.pod:3245 ../src/guestfs-actions.pod:4913
13253 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13257 #: ../fish/guestfish-actions.pod:3247
13259 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13260 "L</umount-all> to be called when the handle is closed which can also trigger "
13265 #: ../fish/guestfish-actions.pod:3251
13270 #: ../fish/guestfish-actions.pod:3253
13273 " mknod mode devmajor devminor path\n"
13278 #: ../fish/guestfish-actions.pod:3255 ../src/guestfs-actions.pod:4932
13280 "This call creates block or character special devices, or named pipes (FIFOs)."
13284 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4935
13286 "The C<mode> parameter should be the mode, using the standard constants. "
13287 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13288 "used when creating block and character special devices."
13292 #: ../fish/guestfish-actions.pod:3263
13294 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13295 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13296 "regular file). These constants are available in the standard Linux header "
13297 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13298 "wrappers around this command which bitwise OR in the appropriate constant "
13303 #: ../fish/guestfish-actions.pod:3273
13308 #: ../fish/guestfish-actions.pod:3275
13311 " mknod-b mode devmajor devminor path\n"
13316 #: ../fish/guestfish-actions.pod:3277
13318 "This call creates a block device node called C<path> with mode C<mode> and "
13319 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
13320 "wrapper around L</mknod>."
13324 #: ../fish/guestfish-actions.pod:3283
13329 #: ../fish/guestfish-actions.pod:3285
13332 " mknod-c mode devmajor devminor path\n"
13337 #: ../fish/guestfish-actions.pod:3287
13339 "This call creates a char device node called C<path> with mode C<mode> and "
13340 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
13341 "wrapper around L</mknod>."
13345 #: ../fish/guestfish-actions.pod:3293
13350 #: ../fish/guestfish-actions.pod:3295
13356 " mkswap пристрій\n"
13360 #: ../fish/guestfish-actions.pod:3297 ../src/guestfs-actions.pod:4998
13361 msgid "Create a swap partition on C<device>."
13365 #: ../fish/guestfish-actions.pod:3299
13370 #: ../fish/guestfish-actions.pod:3301
13373 " mkswap-L label device\n"
13376 " mkswap-L мітка пристрій\n"
13380 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5011
13381 msgid "Create a swap partition on C<device> with label C<label>."
13385 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5013
13387 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13388 "sda>), just to a partition. This appears to be a limitation of the kernel "
13393 #: ../fish/guestfish-actions.pod:3309
13398 #: ../fish/guestfish-actions.pod:3311
13401 " mkswap-U uuid device\n"
13404 " mkswap-U uuid пристрій\n"
13408 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5028
13409 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13413 #: ../fish/guestfish-actions.pod:3315
13414 msgid "mkswap-file"
13415 msgstr "mkswap-file"
13418 #: ../fish/guestfish-actions.pod:3317
13421 " mkswap-file path\n"
13424 " mkswap-file шлях\n"
13428 #: ../fish/guestfish-actions.pod:3319 ../src/guestfs-actions.pod:5040
13429 msgid "Create a swap file."
13430 msgstr "Створити файл резервної пам’яті."
13433 #: ../fish/guestfish-actions.pod:3321
13435 "This command just writes a swap file signature to an existing file. To "
13436 "create the file itself, use something like L</fallocate>."
13440 #: ../fish/guestfish-actions.pod:3324
13445 #: ../fish/guestfish-actions.pod:3326
13448 " modprobe modulename\n"
13451 " modprobe назва_модуля\n"
13455 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5055
13456 msgid "This loads a kernel module in the appliance."
13460 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5057
13462 "The kernel module must have been whitelisted when libguestfs was built (see "
13463 "C<appliance/kmod.whitelist.in> in the source)."
13467 #: ../fish/guestfish-actions.pod:3333
13472 #: ../fish/guestfish-actions.pod:3335
13475 " mount device mountpoint\n"
13478 " mount пристрій точка_монтування\n"
13482 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5071
13484 "Mount a guest disk at a position in the filesystem. Block devices are named "
13485 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest. If "
13486 "those block devices contain partitions, they will have the usual names (eg. "
13487 "C</dev/sda1>). Also LVM C</dev/VG/LV>-style names can be used."
13491 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5077
13493 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13494 "mounted on C</> before others can be mounted. Other filesystems can only be "
13495 "mounted on directories which already exist."
13499 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5082
13501 "The mounted filesystem is writable, if we have sufficient permissions on the "
13502 "underlying device."
13506 #: ../fish/guestfish-actions.pod:3351
13508 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13509 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
13510 "problems for users. If your program might need to work with older versions "
13511 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13512 "first parameter if you don't want any options)."
13516 #: ../fish/guestfish-actions.pod:3358
13521 #: ../fish/guestfish-actions.pod:3360
13524 " mount-9p mounttag mountpoint [options:..]\n"
13529 #: ../fish/guestfish-actions.pod:3362 ../src/guestfs-actions.pod:5111
13531 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13536 #: ../fish/guestfish-actions.pod:3365 ../src/guestfs-actions.pod:5114
13538 "If required, C<trans=virtio> will be automatically added to the options. "
13539 "Any other options required can be passed in the optional C<options> "
13544 #: ../fish/guestfish-actions.pod:3371
13546 msgstr "mount-loop"
13549 #: ../fish/guestfish-actions.pod:3373
13552 " mount-loop file mountpoint\n"
13557 #: ../fish/guestfish-actions.pod:3375 ../src/guestfs-actions.pod:5153
13559 "This command lets you mount C<file> (a filesystem image in a file) on a "
13560 "mount point. It is entirely equivalent to the command C<mount -o loop file "
13565 #: ../fish/guestfish-actions.pod:3379
13566 msgid "mount-options"
13567 msgstr "mount-options"
13570 #: ../fish/guestfish-actions.pod:3381
13573 " mount-options options device mountpoint\n"
13578 #: ../fish/guestfish-actions.pod:3383
13580 "This is the same as the L</mount> command, but it allows you to set the "
13581 "mount options as for the L<mount(8)> I<-o> flag."
13585 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5173
13587 "If the C<options> parameter is an empty string, then no options are passed "
13588 "(all options default to whatever the filesystem uses)."
13592 #: ../fish/guestfish-actions.pod:3391
13597 #: ../fish/guestfish-actions.pod:3393
13600 " mount-ro device mountpoint\n"
13603 " mount-ro пристрій точка_монтування\n"
13607 #: ../fish/guestfish-actions.pod:3395
13609 "This is the same as the L</mount> command, but it mounts the filesystem with "
13610 "the read-only (I<-o ro>) flag."
13614 #: ../fish/guestfish-actions.pod:3398
13619 #: ../fish/guestfish-actions.pod:3400
13622 " mount-vfs options vfstype device mountpoint\n"
13627 #: ../fish/guestfish-actions.pod:3402
13629 "This is the same as the L</mount> command, but it allows you to set both the "
13630 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13634 #: ../fish/guestfish-actions.pod:3406
13635 msgid "mountpoints"
13636 msgstr "mountpoints"
13639 #: ../fish/guestfish-actions.pod:3408
13649 #: ../fish/guestfish-actions.pod:3410
13651 "This call is similar to L</mounts>. That call returns a list of devices. "
13652 "This one returns a hash table (map) of device name to directory where the "
13653 "device is mounted."
13657 #: ../fish/guestfish-actions.pod:3414
13662 #: ../fish/guestfish-actions.pod:3416
13672 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5234
13674 "This returns the list of currently mounted filesystems. It returns the list "
13675 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13679 #: ../fish/guestfish-actions.pod:3421 ../src/guestfs-actions.pod:5237
13680 msgid "Some internal mounts are not shown."
13684 #: ../fish/guestfish-actions.pod:3423
13685 msgid "See also: L</mountpoints>"
13686 msgstr "Див. також L</mountpoints>"
13689 #: ../fish/guestfish-actions.pod:3425
13694 #: ../fish/guestfish-actions.pod:3427
13700 " mv джерело призначення\n"
13704 #: ../fish/guestfish-actions.pod:3429 ../src/guestfs-actions.pod:5254
13706 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13707 "destination filename or destination directory."
13711 #: ../fish/guestfish-actions.pod:3432
13712 msgid "ntfs-3g-probe"
13713 msgstr "ntfs-3g-probe"
13716 #: ../fish/guestfish-actions.pod:3434
13719 " ntfs-3g-probe true|false device\n"
13724 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5268
13726 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13727 "C<device> for mountability. (Not all NTFS volumes can be mounted read-"
13728 "write, and some cannot be mounted at all)."
13732 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5272
13734 "C<rw> is a boolean flag. Set it to true if you want to test if the volume "
13735 "can be mounted read-write. Set it to false if you want to test if the "
13736 "volume can be mounted read-only."
13740 #: ../fish/guestfish-actions.pod:3444 ../src/guestfs-actions.pod:5276
13742 "The return value is an integer which C<0> if the operation would succeed, or "
13743 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13747 #: ../fish/guestfish-actions.pod:3448
13749 msgstr "ntfsresize"
13752 #: ../fish/guestfish-actions.pod:3450
13755 " ntfsresize device\n"
13758 " ntfsresize пристрій\n"
13762 #: ../fish/guestfish-actions.pod:3452 ../fish/guestfish-actions.pod:3476
13763 #: ../src/guestfs-actions.pod:5297 ../src/guestfs-actions.pod:5329
13765 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13766 "size of the underlying device."
13770 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5300
13772 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13773 "consistency check (for safety). You have to boot into Windows to perform "
13774 "this check and clear this condition. Furthermore, ntfsresize refuses to "
13775 "resize filesystems which have been marked in this way. So in effect it is "
13776 "not possible to call ntfsresize multiple times on a single filesystem "
13777 "without booting into Windows between each resize."
13781 #: ../fish/guestfish-actions.pod:3463 ../fish/guestfish-actions.pod:3502
13782 #: ../src/guestfs-actions.pod:5308 ../src/guestfs-actions.pod:5355
13783 msgid "See also L<ntfsresize(8)>."
13787 #: ../fish/guestfish-actions.pod:3465 ../fish/guestfish-actions.pod:3513
13789 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13794 #: ../fish/guestfish-actions.pod:3472
13795 msgid "ntfsresize-opts"
13799 #: ../fish/guestfish-actions.pod:3474
13802 " ntfsresize-opts device [size:..] [force:..]\n"
13807 #: ../fish/guestfish-actions.pod:3485 ../src/guestfs-actions.pod:5338
13809 "The new size (in bytes) of the filesystem. If omitted, the filesystem is "
13810 "resized to fit the container (eg. partition)."
13814 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5341
13819 #: ../fish/guestfish-actions.pod:3490 ../src/guestfs-actions.pod:5343
13821 "If this option is true, then force the resize of the filesystem even if the "
13822 "filesystem is marked as requiring a consistency check."
13826 #: ../fish/guestfish-actions.pod:3493
13828 "After the resize operation, the filesystem is always marked as requiring a "
13829 "consistency check (for safety). You have to boot into Windows to perform "
13830 "this check and clear this condition. If you I<don't> set the C<force> "
13831 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13832 "a single filesystem without booting into Windows between each resize."
13836 #: ../fish/guestfish-actions.pod:3506
13837 msgid "ntfsresize-size"
13838 msgstr "ntfsresize-size"
13841 #: ../fish/guestfish-actions.pod:3508
13844 " ntfsresize-size device size\n"
13849 #: ../fish/guestfish-actions.pod:3510
13851 "This command is the same as L</ntfsresize> except that it allows you to "
13852 "specify the new size (in bytes) explicitly."
13856 #: ../fish/guestfish-actions.pod:3520
13861 #: ../fish/guestfish-actions.pod:3522
13864 " part-add device prlogex startsect endsect\n"
13869 #: ../fish/guestfish-actions.pod:3524
13871 "This command adds a partition to C<device>. If there is no partition table "
13872 "on the device, call L</part-init> first."
13876 #: ../fish/guestfish-actions.pod:3527 ../src/guestfs-actions.pod:5416
13878 "The C<prlogex> parameter is the type of partition. Normally you should pass "
13879 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13880 "C<logical>) and C<e> (or C<extended>) partition types."
13884 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5421
13886 "C<startsect> and C<endsect> are the start and end of the partition in "
13887 "I<sectors>. C<endsect> may be negative, which means it counts backwards "
13888 "from the end of the disk (C<-1> is the last sector)."
13892 #: ../fish/guestfish-actions.pod:3536
13894 "Creating a partition which covers the whole disk is not so easy. Use L</"
13895 "part-disk> to do that."
13899 #: ../fish/guestfish-actions.pod:3539
13904 #: ../fish/guestfish-actions.pod:3541
13907 " part-del device partnum\n"
13912 #: ../fish/guestfish-actions.pod:3543 ../src/guestfs-actions.pod:5439
13913 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13917 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5441
13919 "Note that in the case of MBR partitioning, deleting an extended partition "
13920 "also deletes any logical partitions it contains."
13924 #: ../fish/guestfish-actions.pod:3549
13929 #: ../fish/guestfish-actions.pod:3551
13932 " part-disk device parttype\n"
13935 " part-disk пристрій тип_розділу\n"
13939 #: ../fish/guestfish-actions.pod:3553
13941 "This command is simply a combination of L</part-init> followed by L</part-"
13942 "add> to create a single primary partition covering the whole disk."
13946 #: ../fish/guestfish-actions.pod:3557
13948 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13949 "possible values are described in L</part-init>."
13953 #: ../fish/guestfish-actions.pod:3563
13954 msgid "part-get-bootable"
13955 msgstr "part-get-bootable"
13958 #: ../fish/guestfish-actions.pod:3565
13961 " part-get-bootable device partnum\n"
13966 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5477
13968 "This command returns true if the partition C<partnum> on C<device> has the "
13969 "bootable flag set."
13973 #: ../fish/guestfish-actions.pod:3570
13974 msgid "See also L</part-set-bootable>."
13975 msgstr "Див. також L</part-set-bootable>."
13978 #: ../fish/guestfish-actions.pod:3572
13979 msgid "part-get-mbr-id"
13980 msgstr "part-get-mbr-id"
13983 #: ../fish/guestfish-actions.pod:3574
13986 " part-get-mbr-id device partnum\n"
13991 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5493
13993 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13994 "partition C<partnum>."
13998 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3723
14000 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
14001 "undefined results for other partition table types (see L</part-get-"
14006 #: ../fish/guestfish-actions.pod:3583
14007 msgid "part-get-parttype"
14008 msgstr "part-get-parttype"
14011 #: ../fish/guestfish-actions.pod:3585
14014 " part-get-parttype device\n"
14017 " part-get-parttype пристрій\n"
14021 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5510
14023 "This command examines the partition table on C<device> and returns the "
14024 "partition table type (format) being used."
14028 #: ../fish/guestfish-actions.pod:3590
14030 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14031 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
14032 "possible, although unusual. See L</part-init> for a full list."
14036 #: ../fish/guestfish-actions.pod:3595
14041 #: ../fish/guestfish-actions.pod:3597
14044 " part-init device parttype\n"
14049 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5530
14051 "This creates an empty partition table on C<device> of one of the partition "
14052 "types listed below. Usually C<parttype> should be either C<msdos> or C<gpt> "
14053 "(for large disks)."
14057 #: ../fish/guestfish-actions.pod:3603
14059 "Initially there are no partitions. Following this, you should call L</part-"
14060 "add> for each partition required."
14064 #: ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:5537
14065 msgid "Possible values for C<parttype> are:"
14069 #: ../fish/guestfish-actions.pod:3610 ../src/guestfs-actions.pod:5541
14074 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5543
14079 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5545
14080 msgid "Intel EFI / GPT partition table."
14084 #: ../fish/guestfish-actions.pod:3616 ../src/guestfs-actions.pod:5547
14086 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14087 "and Intel-based Mac OS X. It also has limited backwards compatibility with "
14088 "the C<mbr> format."
14092 #: ../fish/guestfish-actions.pod:3620 ../src/guestfs-actions.pod:5551
14097 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5553
14102 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5555
14104 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14105 "Windows. This partition type will B<only> work for device sizes up to 2 "
14106 "TB. For large disks we recommend using C<gpt>."
14110 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5562
14112 "Other partition table types that may work but are not supported include:"
14116 #: ../fish/guestfish-actions.pod:3636 ../src/guestfs-actions.pod:5567
14121 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5569
14122 msgid "AIX disk labels."
14123 msgstr "Мітки дисків AIX."
14126 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5571
14128 #| msgid "B<amiga> | B<rdb>"
14130 msgstr "B<amiga> | B<rdb>"
14133 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5573
14138 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5575
14139 msgid "Amiga \"Rigid Disk Block\" format."
14140 msgstr "Формат \"Rigid Disk Block\" Amiga."
14143 #: ../fish/guestfish-actions.pod:3646 ../src/guestfs-actions.pod:5577
14148 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5579
14149 msgid "BSD disk labels."
14150 msgstr "Мітки дисків BSD."
14153 #: ../fish/guestfish-actions.pod:3650 ../src/guestfs-actions.pod:5581
14158 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5583
14159 msgid "DASD, used on IBM mainframes."
14160 msgstr "DASD, використовувалися у мейнфреймах IBM."
14163 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5585
14168 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5587
14169 msgid "MIPS/SGI volumes."
14170 msgstr "Томи MIPS/SGI."
14173 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5589
14178 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5591
14179 msgid "Old Mac partition format. Modern Macs use C<gpt>."
14180 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
14183 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5593
14188 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5595
14189 msgid "NEC PC-98 format, common in Japan apparently."
14190 msgstr "Формат NEC PC-98, поширений у Японії."
14193 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5597
14198 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5599
14199 msgid "Sun disk labels."
14200 msgstr "Мітки дисків Sun."
14203 #: ../fish/guestfish-actions.pod:3672
14208 #: ../fish/guestfish-actions.pod:3674
14211 " part-list device\n"
14214 " part-list device\n"
14218 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5613
14220 "This command parses the partition table on C<device> and returns the list of "
14221 "partitions found."
14225 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5616
14226 msgid "The fields in the returned structure are:"
14230 #: ../fish/guestfish-actions.pod:3683 ../src/guestfs-actions.pod:5620
14231 msgid "B<part_num>"
14232 msgstr "B<part_num>"
14235 #: ../fish/guestfish-actions.pod:3685 ../src/guestfs-actions.pod:5622
14236 msgid "Partition number, counting from 1."
14240 #: ../fish/guestfish-actions.pod:3687 ../src/guestfs-actions.pod:5624
14241 msgid "B<part_start>"
14242 msgstr "B<part_start>"
14245 #: ../fish/guestfish-actions.pod:3689
14247 "Start of the partition I<in bytes>. To get sectors you have to divide by "
14248 "the device's sector size, see L</blockdev-getss>."
14252 #: ../fish/guestfish-actions.pod:3692 ../src/guestfs-actions.pod:5629
14253 msgid "B<part_end>"
14254 msgstr "B<part_end>"
14257 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5631
14258 msgid "End of the partition in bytes."
14262 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5633
14263 msgid "B<part_size>"
14264 msgstr "B<part_size>"
14267 #: ../fish/guestfish-actions.pod:3698 ../src/guestfs-actions.pod:5635
14268 msgid "Size of the partition in bytes."
14272 #: ../fish/guestfish-actions.pod:3702
14273 msgid "part-set-bootable"
14274 msgstr "part-set-bootable"
14277 #: ../fish/guestfish-actions.pod:3704
14280 " part-set-bootable device partnum true|false\n"
14285 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5653
14287 "This sets the bootable flag on partition numbered C<partnum> on device "
14288 "C<device>. Note that partitions are numbered from 1."
14292 #: ../fish/guestfish-actions.pod:3709 ../src/guestfs-actions.pod:5656
14294 "The bootable flag is used by some operating systems (notably Windows) to "
14295 "determine which partition to boot from. It is by no means universally "
14300 #: ../fish/guestfish-actions.pod:3713
14301 msgid "part-set-mbr-id"
14302 msgstr "part-set-mbr-id"
14305 #: ../fish/guestfish-actions.pod:3715
14308 " part-set-mbr-id device partnum idbyte\n"
14313 #: ../fish/guestfish-actions.pod:3717 ../src/guestfs-actions.pod:5672
14315 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14316 "C<partnum> to C<idbyte>. Note that the type bytes quoted in most "
14317 "documentation are in fact hexadecimal numbers, but usually documented "
14318 "without any leading \"0x\" which might be confusing."
14322 #: ../fish/guestfish-actions.pod:3727
14323 msgid "part-set-name"
14324 msgstr "part-set-name"
14327 #: ../fish/guestfish-actions.pod:3729
14330 " part-set-name device partnum name\n"
14335 #: ../fish/guestfish-actions.pod:3731 ../src/guestfs-actions.pod:5694
14337 "This sets the partition name on partition numbered C<partnum> on device "
14338 "C<device>. Note that partitions are numbered from 1."
14342 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5697
14344 "The partition name can only be set on certain types of partition table. "
14345 "This works on C<gpt> but not on C<mbr> partitions."
14349 #: ../fish/guestfish-actions.pod:3737
14350 msgid "part-to-dev"
14351 msgstr "part-to-dev"
14354 #: ../fish/guestfish-actions.pod:3739
14357 " part-to-dev partition\n"
14360 " part-to-dev розділ\n"
14364 #: ../fish/guestfish-actions.pod:3741 ../src/guestfs-actions.pod:5710
14366 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14367 "partition number, returning the device name (eg. \"/dev/sdb\")."
14371 #: ../fish/guestfish-actions.pod:3745
14373 "The named partition must exist, for example as a string returned from L</"
14374 "list-partitions>."
14378 #: ../fish/guestfish-actions.pod:3748
14379 msgid "ping-daemon"
14380 msgstr "ping-daemon"
14383 #: ../fish/guestfish-actions.pod:3750
14393 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5727
14395 "This is a test probe into the guestfs daemon running inside the qemu "
14396 "subprocess. Calling this function checks that the daemon responds to the "
14397 "ping message, without affecting the daemon or attached block device(s) in "
14402 #: ../fish/guestfish-actions.pod:3757
14407 #: ../fish/guestfish-actions.pod:3759
14410 " pread path count offset\n"
14415 #: ../fish/guestfish-actions.pod:3761 ../src/guestfs-actions.pod:5745
14417 "This command lets you read part of a file. It reads C<count> bytes of the "
14418 "file, starting at C<offset>, from file C<path>."
14422 #: ../fish/guestfish-actions.pod:3764 ../fish/guestfish-actions.pod:3779
14423 #: ../src/guestfs-actions.pod:5748 ../src/guestfs-actions.pod:5774
14425 "This may read fewer bytes than requested. For further details see the "
14426 "L<pread(2)> system call."
14430 #: ../fish/guestfish-actions.pod:3767
14431 msgid "See also L</pwrite>, L</pread-device>."
14432 msgstr "Див. також L</pwrite>, L</pread-device>."
14435 #: ../fish/guestfish-actions.pod:3772
14436 msgid "pread-device"
14437 msgstr "pread-device"
14440 #: ../fish/guestfish-actions.pod:3774
14443 " pread-device device count offset\n"
14448 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5771
14450 "This command lets you read part of a file. It reads C<count> bytes of "
14451 "C<device>, starting at C<offset>."
14455 #: ../fish/guestfish-actions.pod:3782
14456 msgid "See also L</pread>."
14457 msgstr "Див. також L</pread>."
14460 #: ../fish/guestfish-actions.pod:3787
14465 #: ../fish/guestfish-actions.pod:3789
14468 " pvcreate device\n"
14471 " pvcreate пристрій\n"
14475 #: ../fish/guestfish-actions.pod:3791 ../src/guestfs-actions.pod:5794
14477 "This creates an LVM physical volume on the named C<device>, where C<device> "
14478 "should usually be a partition name such as C</dev/sda1>."
14482 #: ../fish/guestfish-actions.pod:3795
14487 #: ../fish/guestfish-actions.pod:3797
14490 " pvremove device\n"
14493 " pvremove пристрій\n"
14497 #: ../fish/guestfish-actions.pod:3799 ../src/guestfs-actions.pod:5808
14499 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14504 #: ../fish/guestfish-actions.pod:3802 ../src/guestfs-actions.pod:5811
14506 "The implementation uses the C<pvremove> command which refuses to wipe "
14507 "physical volumes that contain any volume groups, so you have to remove those "
14512 #: ../fish/guestfish-actions.pod:3806
14517 #: ../fish/guestfish-actions.pod:3808
14520 " pvresize device\n"
14523 " pvresize пристрій\n"
14527 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5825
14529 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14530 "the new size of the underlying device."
14534 #: ../fish/guestfish-actions.pod:3813
14535 msgid "pvresize-size"
14536 msgstr "pvresize-size"
14539 #: ../fish/guestfish-actions.pod:3815
14542 " pvresize-size device size\n"
14547 #: ../fish/guestfish-actions.pod:3817
14549 "This command is the same as L</pvresize> except that it allows you to "
14550 "specify the new size (in bytes) explicitly."
14554 #: ../fish/guestfish-actions.pod:3820
14559 #: ../fish/guestfish-actions.pod:3822
14569 #: ../fish/guestfish-actions.pod:3824 ../src/guestfs-actions.pod:5851
14571 "List all the physical volumes detected. This is the equivalent of the L<pvs"
14576 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5854
14578 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14583 #: ../fish/guestfish-actions.pod:3830
14584 msgid "See also L</pvs-full>."
14585 msgstr "Див. також L</pvs-full>."
14588 #: ../fish/guestfish-actions.pod:3832
14593 #: ../fish/guestfish-actions.pod:3834
14603 #: ../fish/guestfish-actions.pod:3836 ../src/guestfs-actions.pod:5870
14605 "List all the physical volumes detected. This is the equivalent of the L<pvs"
14606 "(8)> command. The \"full\" version includes all fields."
14610 #: ../fish/guestfish-actions.pod:3839
14615 #: ../fish/guestfish-actions.pod:3841
14621 " pvuuid пристрій\n"
14625 #: ../fish/guestfish-actions.pod:3843 ../src/guestfs-actions.pod:5885
14626 msgid "This command returns the UUID of the LVM PV C<device>."
14630 #: ../fish/guestfish-actions.pod:3845
14635 #: ../fish/guestfish-actions.pod:3847
14638 " pwrite path content offset\n"
14643 #: ../fish/guestfish-actions.pod:3849 ../src/guestfs-actions.pod:5901
14645 "This command writes to part of a file. It writes the data buffer C<content> "
14646 "to the file C<path> starting at offset C<offset>."
14650 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:5904
14652 "This command implements the L<pwrite(2)> system call, and like that system "
14653 "call it may not write the full data requested. The return value is the "
14654 "number of bytes that were actually written to the file. This could even be "
14655 "0, although short writes are unlikely for regular files in ordinary "
14660 #: ../fish/guestfish-actions.pod:3858
14661 msgid "See also L</pread>, L</pwrite-device>."
14662 msgstr "Див. також L</pread>, L</pwrite-device>."
14665 #: ../fish/guestfish-actions.pod:3863
14666 msgid "pwrite-device"
14667 msgstr "pwrite-device"
14670 #: ../fish/guestfish-actions.pod:3865
14673 " pwrite-device device content offset\n"
14678 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5928
14680 "This command writes to part of a device. It writes the data buffer "
14681 "C<content> to C<device> starting at offset C<offset>."
14685 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5931
14687 "This command implements the L<pwrite(2)> system call, and like that system "
14688 "call it may not write the full data requested (although short writes to disk "
14689 "devices and partitions are probably impossible with standard Linux kernels)."
14693 #: ../fish/guestfish-actions.pod:3875
14694 msgid "See also L</pwrite>."
14695 msgstr "Див. також L</pwrite>."
14698 #: ../fish/guestfish-actions.pod:3880
14703 #: ../fish/guestfish-actions.pod:3882
14706 " read-file path\n"
14709 " read-file шлях\n"
14713 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5952
14714 msgid "This calls returns the contents of the file C<path> as a buffer."
14718 #: ../fish/guestfish-actions.pod:3887
14720 "Unlike L</cat>, this function can correctly handle files that contain "
14721 "embedded ASCII NUL characters. However unlike L</download>, this function "
14722 "is limited in the total size of file that can be handled."
14726 #: ../fish/guestfish-actions.pod:3895
14728 msgstr "read-lines"
14731 #: ../fish/guestfish-actions.pod:3897
14734 " read-lines path\n"
14737 " read-lines шлях\n"
14741 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5977
14743 "The file contents are returned as a list of lines. Trailing C<LF> and "
14744 "C<CRLF> character sequences are I<not> returned."
14748 #: ../fish/guestfish-actions.pod:3904
14750 "Note that this function cannot correctly handle binary files (specifically, "
14751 "files containing C<\\0> character which is treated as end of line). For "
14752 "those you need to use the L</read-file> function which has a more complex "
14757 #: ../fish/guestfish-actions.pod:3909
14762 #: ../fish/guestfish-actions.pod:3911
14768 " readdir каталог\n"
14772 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:5997
14773 msgid "This returns the list of directory entries in directory C<dir>."
14777 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5999
14779 "All entries in the directory are returned, including C<.> and C<..>. The "
14780 "entries are I<not> sorted, but returned in the same order as the underlying "
14785 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6003
14787 "Also this call returns basic file type information about each file. The "
14788 "C<ftyp> field will contain one of the following characters:"
14792 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:6008
14797 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6010
14798 msgid "Block special"
14799 msgstr "Блоковий особливий"
14802 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6012
14807 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6014
14808 msgid "Char special"
14809 msgstr "Символьний особливий"
14812 #: ../fish/guestfish-actions.pod:3932 ../src/guestfs-actions.pod:6016
14817 #: ../fish/guestfish-actions.pod:3934 ../src/guestfs-actions.pod:6018
14822 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:6020
14827 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6022
14828 msgid "FIFO (named pipe)"
14829 msgstr "FIFO (іменований канал)"
14832 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6024
14837 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6026
14838 msgid "Symbolic link"
14839 msgstr "Символічне посилання"
14842 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6028
14847 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6030
14848 msgid "Regular file"
14849 msgstr "Звичайний файл"
14852 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6032
14857 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6034
14862 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6036
14867 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6038
14868 msgid "Unknown file type"
14869 msgstr "Невідомий тип файла"
14872 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6040
14877 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6042
14879 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14883 #: ../fish/guestfish-actions.pod:3963
14885 "This function is primarily intended for use by programs. To get a simple "
14886 "list of names, use L</ls>. To get a printable directory for human "
14887 "consumption, use L</ll>."
14891 #: ../fish/guestfish-actions.pod:3967
14896 #: ../fish/guestfish-actions.pod:3969
14906 #: ../fish/guestfish-actions.pod:3971 ../src/guestfs-actions.pod:6063
14907 msgid "This command reads the target of a symbolic link."
14911 #: ../fish/guestfish-actions.pod:3973
14912 msgid "readlinklist"
14913 msgstr "readlinklist"
14916 #: ../fish/guestfish-actions.pod:3975
14919 " readlinklist path 'names ...'\n"
14924 #: ../fish/guestfish-actions.pod:3977 ../src/guestfs-actions.pod:6077
14926 "This call allows you to do a C<readlink> operation on multiple files, where "
14927 "all files are in the directory C<path>. C<names> is the list of files from "
14932 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6081
14934 "On return you get a list of strings, with a one-to-one correspondence to the "
14935 "C<names> list. Each string is the value of the symbolic link."
14939 #: ../fish/guestfish-actions.pod:3985 ../src/guestfs-actions.pod:6085
14941 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14942 "result string is the empty string C<\"\">. However the whole operation is "
14943 "completed even if there were C<readlink(2)> errors, and so you can call this "
14944 "function with names where you don't know if they are symbolic links already "
14945 "(albeit slightly less efficient)."
14949 #: ../fish/guestfish-actions.pod:3992 ../src/guestfs-actions.pod:6092
14951 "This call is intended for programs that want to efficiently list a directory "
14952 "contents without making many round-trips. Very long directory listings "
14953 "might cause the protocol message size to be exceeded, causing this call to "
14954 "fail. The caller must split up such requests into smaller groups of names."
14958 #: ../fish/guestfish-actions.pod:3999
14963 #: ../fish/guestfish-actions.pod:4001
14973 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6111
14975 "Return the canonicalized absolute pathname of C<path>. The returned path "
14976 "has no C<.>, C<..> or symbolic link path elements."
14980 #: ../fish/guestfish-actions.pod:4006
14981 msgid "removexattr"
14982 msgstr "removexattr"
14985 #: ../fish/guestfish-actions.pod:4008
14988 " removexattr xattr path\n"
14993 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6126
14995 "This call removes the extended attribute named C<xattr> of the file C<path>."
14999 #: ../fish/guestfish-actions.pod:4013
15000 msgid "See also: L</lremovexattr>, L<attr(5)>."
15001 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
15004 #: ../fish/guestfish-actions.pod:4015
15009 #: ../fish/guestfish-actions.pod:4017
15012 " resize2fs device\n"
15015 " resize2fs пристрій\n"
15019 #: ../fish/guestfish-actions.pod:4019 ../src/guestfs-actions.pod:6141
15021 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15022 "underlying device."
15026 #: ../fish/guestfish-actions.pod:4022
15028 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
15029 "before calling this command. For unknown reasons C<resize2fs> sometimes "
15030 "gives an error about this and sometimes not. In any case, it is always safe "
15031 "to call L</e2fsck-f> before calling this function."
15035 #: ../fish/guestfish-actions.pod:4028
15036 msgid "resize2fs-M"
15037 msgstr "resize2fs-M"
15040 #: ../fish/guestfish-actions.pod:4030
15043 " resize2fs-M device\n"
15046 " resize2fs-M пристрій\n"
15050 #: ../fish/guestfish-actions.pod:4032
15052 "This command is the same as L</resize2fs>, but the filesystem is resized to "
15053 "its minimum size. This works like the I<-M> option to the C<resize2fs> "
15058 #: ../fish/guestfish-actions.pod:4036
15060 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
15061 "and read the C<Block size> and C<Block count> values. These two numbers, "
15062 "multiplied together, give the resulting size of the minimal filesystem in "
15067 #: ../fish/guestfish-actions.pod:4041
15068 msgid "resize2fs-size"
15069 msgstr "resize2fs-size"
15072 #: ../fish/guestfish-actions.pod:4043
15075 " resize2fs-size device size\n"
15080 #: ../fish/guestfish-actions.pod:4045
15082 "This command is the same as L</resize2fs> except that it allows you to "
15083 "specify the new size (in bytes) explicitly."
15087 #: ../fish/guestfish-actions.pod:4048
15092 #: ../fish/guestfish-actions.pod:4050
15102 #: ../fish/guestfish-actions.pod:4052 ../src/guestfs-actions.pod:6193
15103 msgid "Remove the single file C<path>."
15107 #: ../fish/guestfish-actions.pod:4054
15112 #: ../fish/guestfish-actions.pod:4056
15122 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6205
15124 "Remove the file or directory C<path>, recursively removing the contents if "
15125 "its a directory. This is like the C<rm -rf> shell command."
15129 #: ../fish/guestfish-actions.pod:4062
15134 #: ../fish/guestfish-actions.pod:4064
15144 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6219
15145 msgid "Remove the single directory C<path>."
15149 #: ../fish/guestfish-actions.pod:4068
15150 msgid "rmmountpoint"
15151 msgstr "rmmountpoint"
15154 #: ../fish/guestfish-actions.pod:4070
15157 " rmmountpoint exemptpath\n"
15162 #: ../fish/guestfish-actions.pod:4072
15164 "This calls removes a mountpoint that was previously created with L</"
15165 "mkmountpoint>. See L</mkmountpoint> for full details."
15169 #: ../fish/guestfish-actions.pod:4076
15170 msgid "scrub-device"
15171 msgstr "scrub-device"
15174 #: ../fish/guestfish-actions.pod:4078
15177 " scrub-device device\n"
15180 " scrub-device пристрій\n"
15184 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6245
15186 "This command writes patterns over C<device> to make data retrieval more "
15191 #: ../fish/guestfish-actions.pod:4083 ../fish/guestfish-actions.pod:4098
15192 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6248
15193 #: ../src/guestfs-actions.pod:6269 ../src/guestfs-actions.pod:6288
15195 "It is an interface to the L<scrub(1)> program. See that manual page for "
15200 #: ../fish/guestfish-actions.pod:4089
15202 msgstr "scrub-file"
15205 #: ../fish/guestfish-actions.pod:4091
15208 " scrub-file file\n"
15211 " scrub-file файл\n"
15215 #: ../fish/guestfish-actions.pod:4093 ../src/guestfs-actions.pod:6264
15217 "This command writes patterns over a file to make data retrieval more "
15222 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6267
15223 msgid "The file is I<removed> after scrubbing."
15227 #: ../fish/guestfish-actions.pod:4101
15228 msgid "scrub-freespace"
15229 msgstr "scrub-freespace"
15232 #: ../fish/guestfish-actions.pod:4103
15235 " scrub-freespace dir\n"
15238 " scrub-freespace каталог\n"
15242 #: ../fish/guestfish-actions.pod:4105
15244 "This command creates the directory C<dir> and then fills it with files until "
15245 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15246 "deletes them. The intention is to scrub any free space on the partition "
15247 "containing C<dir>."
15251 #: ../fish/guestfish-actions.pod:4114
15253 msgstr "set-append"
15256 #: ../fish/guestfish-actions.pod:4116
15261 #: ../fish/guestfish-actions.pod:4118
15264 " set-append append\n"
15269 #: ../fish/guestfish-actions.pod:4120 ../src/guestfs-actions.pod:6301
15271 "This function is used to add additional options to the guest kernel command "
15276 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6304
15278 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15279 "environment variable."
15283 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6307
15285 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15286 "(libguestfs always adds a few of its own)."
15290 #: ../fish/guestfish-actions.pod:4129
15291 msgid "set-attach-method"
15292 msgstr "set-attach-method"
15295 #: ../fish/guestfish-actions.pod:4131
15296 msgid "attach-method"
15300 #: ../fish/guestfish-actions.pod:4133
15303 " set-attach-method attachmethod\n"
15308 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6320
15310 "Set the method that libguestfs uses to connect to the back end guestfsd "
15311 "daemon. Possible methods are:"
15315 #: ../fish/guestfish-actions.pod:4140 ../src/guestfs-actions.pod:6325
15316 #: ../src/guestfs.pod:2901
15317 msgid "C<appliance>"
15318 msgstr "C<appliance>"
15321 #: ../fish/guestfish-actions.pod:4142 ../src/guestfs-actions.pod:6327
15323 "Launch an appliance and connect to it. This is the ordinary method and the "
15328 #: ../fish/guestfish-actions.pod:4145 ../src/guestfs-actions.pod:6330
15329 msgid "C<unix:I<path>>"
15330 msgstr "C<unix:I<шлях>>"
15333 #: ../fish/guestfish-actions.pod:4147 ../src/guestfs-actions.pod:6332
15334 msgid "Connect to the Unix domain socket I<path>."
15335 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
15338 #: ../fish/guestfish-actions.pod:4149 ../src/guestfs-actions.pod:6334
15340 "This method lets you connect to an existing daemon or (using virtio-serial) "
15341 "to a live guest. For more information, see L<guestfs(3)/ATTACHING TO "
15342 "RUNNING DAEMONS>."
15346 #: ../fish/guestfish-actions.pod:4155
15347 msgid "set-autosync"
15348 msgstr "set-autosync"
15351 #: ../fish/guestfish-actions.pod:4157
15356 #: ../fish/guestfish-actions.pod:4159
15359 " set-autosync true|false\n"
15362 " set-autosync true|false\n"
15366 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6350
15368 "If C<autosync> is true, this enables autosync. Libguestfs will make a best "
15369 "effort attempt to make filesystems consistent and synchronized when the "
15370 "handle is closed (also if the program exits without closing handles)."
15374 #: ../fish/guestfish-actions.pod:4166 ../src/guestfs-actions.pod:6355
15376 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15377 "disabled by default)."
15381 #: ../fish/guestfish-actions.pod:4169
15383 msgstr "set-direct"
15386 #: ../fish/guestfish-actions.pod:4171
15391 #: ../fish/guestfish-actions.pod:4173
15394 " set-direct true|false\n"
15397 " set-direct true|false\n"
15401 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6368
15403 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15404 "passed directly through to the appliance once it is launched."
15408 #: ../fish/guestfish-actions.pod:4179
15410 "One consequence of this is that log messages aren't caught by the library "
15411 "and handled by L</set-log-message-callback>, but go straight to stdout."
15415 #: ../fish/guestfish-actions.pod:4183 ../src/guestfs-actions.pod:6376
15416 msgid "You probably don't want to use this unless you know what you are doing."
15420 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6379
15421 msgid "The default is disabled."
15425 #: ../fish/guestfish-actions.pod:4188
15426 msgid "set-e2label"
15427 msgstr "set-e2label"
15430 #: ../fish/guestfish-actions.pod:4190
15433 " set-e2label device label\n"
15438 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6392
15440 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15441 "C<label>. Filesystem labels are limited to 16 characters."
15445 #: ../fish/guestfish-actions.pod:4196
15447 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15448 "label on a filesystem."
15452 #: ../fish/guestfish-actions.pod:4199
15454 msgstr "set-e2uuid"
15457 #: ../fish/guestfish-actions.pod:4201
15460 " set-e2uuid device uuid\n"
15465 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6410
15467 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15468 "C<uuid>. The format of the UUID and alternatives such as C<clear>, "
15469 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15473 #: ../fish/guestfish-actions.pod:4208
15475 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15476 "UUID of a filesystem."
15480 #: ../fish/guestfish-actions.pod:4211
15481 msgid "set-memsize"
15482 msgstr "set-memsize"
15485 #: ../fish/guestfish-actions.pod:4213
15490 #: ../fish/guestfish-actions.pod:4215
15493 " set-memsize memsize\n"
15498 #: ../fish/guestfish-actions.pod:4217
15500 "This sets the memory size in megabytes allocated to the qemu subprocess. "
15501 "This only has any effect if called before L</launch>."
15505 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6432
15507 "You can also change this by setting the environment variable "
15508 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15512 #: ../fish/guestfish-actions.pod:4228
15513 msgid "set-network"
15514 msgstr "set-network"
15517 #: ../fish/guestfish-actions.pod:4230
15522 #: ../fish/guestfish-actions.pod:4232
15525 " set-network true|false\n"
15528 " set-network true|false\n"
15532 #: ../fish/guestfish-actions.pod:4234 ../src/guestfs-actions.pod:6449
15534 "If C<network> is true, then the network is enabled in the libguestfs "
15535 "appliance. The default is false."
15539 #: ../fish/guestfish-actions.pod:4237 ../src/guestfs-actions.pod:6452
15541 "This affects whether commands are able to access the network (see L<guestfs"
15542 "(3)/RUNNING COMMANDS>)."
15546 #: ../fish/guestfish-actions.pod:4240
15548 "You must call this before calling L</launch>, otherwise it has no effect."
15552 #: ../fish/guestfish-actions.pod:4243
15557 #: ../fish/guestfish-actions.pod:4247
15560 " set-path searchpath\n"
15565 #: ../fish/guestfish-actions.pod:4249 ../src/guestfs-actions.pod:6468
15566 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15570 #: ../fish/guestfish-actions.pod:4251 ../src/guestfs-actions.pod:6470
15572 "The default is C<$libdir/guestfs> unless overridden by setting "
15573 "C<LIBGUESTFS_PATH> environment variable."
15577 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6473
15578 msgid "Setting C<path> to C<NULL> restores the default path."
15582 #: ../fish/guestfish-actions.pod:4256
15587 #: ../fish/guestfish-actions.pod:4258
15592 #: ../fish/guestfish-actions.pod:4260
15595 " set-pgroup true|false\n"
15600 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6485
15602 "If C<pgroup> is true, child processes are placed into their own process "
15607 #: ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:6488
15609 "The practical upshot of this is that signals like C<SIGINT> (from users "
15610 "pressing C<^C>) won't be received by the child process."
15614 #: ../fish/guestfish-actions.pod:4268 ../src/guestfs-actions.pod:6491
15616 "The default for this flag is false, because usually you want C<^C> to kill "
15621 #: ../fish/guestfish-actions.pod:4271
15626 #: ../fish/guestfish-actions.pod:4273
15631 #: ../fish/guestfish-actions.pod:4275
15641 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6504
15642 msgid "Set the qemu binary that we will use."
15646 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6506
15648 "The default is chosen when the library was compiled by the configure script."
15652 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6509
15654 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15659 #: ../fish/guestfish-actions.pod:4285 ../src/guestfs-actions.pod:6512
15660 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15664 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6514
15666 "Note that you should call this function as early as possible after creating "
15667 "the handle. This is because some pre-launch operations depend on testing "
15668 "qemu features (by running C<qemu -help>). If the qemu binary changes, we "
15669 "don't retest features, and so you might see inconsistent results. Using the "
15670 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15671 "the qemu binary at the same time as the handle is created."
15675 #: ../fish/guestfish-actions.pod:4295
15676 msgid "set-recovery-proc"
15677 msgstr "set-recovery-proc"
15680 #: ../fish/guestfish-actions.pod:4297
15681 msgid "recovery-proc"
15682 msgstr "recovery-proc"
15685 #: ../fish/guestfish-actions.pod:4299
15688 " set-recovery-proc true|false\n"
15691 " set-recovery-proc true|false\n"
15695 #: ../fish/guestfish-actions.pod:4301
15697 "If this is called with the parameter C<false> then L</launch> does not "
15698 "create a recovery process. The purpose of the recovery process is to stop "
15699 "runaway qemu processes in the case where the main program aborts abruptly."
15703 #: ../fish/guestfish-actions.pod:4306
15705 "This only has any effect if called before L</launch>, and the default is "
15710 #: ../fish/guestfish-actions.pod:4309 ../src/guestfs-actions.pod:6540
15712 "About the only time when you would want to disable this is if the main "
15713 "process will fork itself into the background (\"daemonize\" itself). In "
15714 "this case the recovery process thinks that the main program has disappeared "
15715 "and so kills qemu, which is not very helpful."
15719 #: ../fish/guestfish-actions.pod:4315
15720 msgid "set-selinux"
15721 msgstr "set-selinux"
15724 #: ../fish/guestfish-actions.pod:4317
15729 #: ../fish/guestfish-actions.pod:4319
15732 " set-selinux true|false\n"
15735 " set-selinux true|false\n"
15739 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6556
15741 "This sets the selinux flag that is passed to the appliance at boot time. "
15742 "The default is C<selinux=0> (disabled)."
15746 #: ../fish/guestfish-actions.pod:4324 ../src/guestfs-actions.pod:6559
15748 "Note that if SELinux is enabled, it is always in Permissive mode "
15749 "(C<enforcing=0>)."
15753 #: ../fish/guestfish-actions.pod:4330
15755 #| msgid "set-path"
15760 #: ../fish/guestfish-actions.pod:4332
15765 #: ../fish/guestfish-actions.pod:4334
15768 #| " set-qemu qemu\n"
15778 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6575
15780 "Change the number of virtual CPUs assigned to the appliance. The default is "
15781 "C<1>. Increasing this may improve performance, though often it has no "
15786 #: ../fish/guestfish-actions.pod:4340
15787 msgid "This function must be called before L</launch>."
15791 #: ../fish/guestfish-actions.pod:4342
15796 #: ../fish/guestfish-actions.pod:4344
15801 #: ../fish/guestfish-actions.pod:4346
15804 " set-trace true|false\n"
15807 " set-trace true|false\n"
15811 #: ../fish/guestfish-actions.pod:4348 ../src/guestfs-actions.pod:6591
15813 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15814 "return values are traced."
15818 #: ../fish/guestfish-actions.pod:4351 ../src/guestfs-actions.pod:6594
15820 "If you want to trace C API calls into libguestfs (and other libraries) then "
15821 "possibly a better way is to use the external ltrace(1) command."
15825 #: ../fish/guestfish-actions.pod:4355 ../src/guestfs-actions.pod:6598
15827 "Command traces are disabled unless the environment variable "
15828 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15832 #: ../fish/guestfish-actions.pod:4358
15834 "Trace messages are normally sent to C<stderr>, unless you register a "
15835 "callback to send them somewhere else (see L</set-event-callback>)."
15839 #: ../fish/guestfish-actions.pod:4362
15840 msgid "set-verbose"
15841 msgstr "set-verbose"
15844 #: ../fish/guestfish-actions.pod:4364
15849 #: ../fish/guestfish-actions.pod:4366
15852 " set-verbose true|false\n"
15855 " set-verbose true|false\n"
15859 #: ../fish/guestfish-actions.pod:4368 ../src/guestfs-actions.pod:6615
15860 msgid "If C<verbose> is true, this turns on verbose messages."
15864 #: ../fish/guestfish-actions.pod:4370 ../src/guestfs-actions.pod:6617
15866 "Verbose messages are disabled unless the environment variable "
15867 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15871 #: ../fish/guestfish-actions.pod:4373
15873 "Verbose messages are normally sent to C<stderr>, unless you register a "
15874 "callback to send them somewhere else (see L</set-event-callback>)."
15878 #: ../fish/guestfish-actions.pod:4377
15883 #: ../fish/guestfish-actions.pod:4379
15886 " setcon context\n"
15889 " setcon контекст\n"
15893 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6634
15895 "This sets the SELinux security context of the daemon to the string "
15900 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6637
15901 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15905 #: ../fish/guestfish-actions.pod:4386
15910 #: ../fish/guestfish-actions.pod:4388
15913 " setxattr xattr val vallen path\n"
15918 #: ../fish/guestfish-actions.pod:4390 ../src/guestfs-actions.pod:6652
15920 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15921 "the value C<val> (of length C<vallen>). The value is arbitrary 8 bit data."
15925 #: ../fish/guestfish-actions.pod:4394
15926 msgid "See also: L</lsetxattr>, L<attr(5)>."
15927 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
15930 #: ../fish/guestfish-actions.pod:4396
15935 #: ../fish/guestfish-actions.pod:4398
15938 " sfdisk device cyls heads sectors 'lines ...'\n"
15943 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6679
15945 "This is a direct interface to the L<sfdisk(8)> program for creating "
15946 "partitions on block devices."
15950 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6682
15951 msgid "C<device> should be a block device, for example C</dev/sda>."
15955 #: ../fish/guestfish-actions.pod:4405 ../src/guestfs-actions.pod:6684
15957 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15958 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
15959 "H> and I<-S> parameters. If you pass C<0> for any of these, then the "
15960 "corresponding parameter is omitted. Usually for 'large' disks, you can just "
15961 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15962 "the kernel) cannot work out the right geometry and you will need to tell it."
15966 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6692
15968 "C<lines> is a list of lines that we feed to C<sfdisk>. For more information "
15969 "refer to the L<sfdisk(8)> manpage."
15973 #: ../fish/guestfish-actions.pod:4416 ../src/guestfs-actions.pod:6695
15975 "To create a single partition occupying the whole disk, you would pass "
15976 "C<lines> as a single element list, when the single element being the string "
15981 #: ../fish/guestfish-actions.pod:4420
15982 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15983 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15986 #: ../fish/guestfish-actions.pod:4426 ../fish/guestfish-actions.pod:4449
15987 #: ../fish/guestfish-actions.pod:4471
15989 "I<This function is deprecated.> In new code, use the L</part_add> call "
15994 #: ../fish/guestfish-actions.pod:4433
15999 #: ../fish/guestfish-actions.pod:4435
16002 " sfdiskM device 'lines ...'\n"
16007 #: ../fish/guestfish-actions.pod:4437
16009 "This is a simplified interface to the L</sfdisk> command, where partition "
16010 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
16011 "you don't need to specify the cyls, heads and sectors parameters which were "
16012 "rarely if ever used anyway."
16016 #: ../fish/guestfish-actions.pod:4443
16017 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
16019 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
16022 #: ../fish/guestfish-actions.pod:4456
16027 #: ../fish/guestfish-actions.pod:4458
16030 " sfdisk-N device partnum cyls heads sectors line\n"
16035 #: ../fish/guestfish-actions.pod:4460 ../src/guestfs-actions.pod:6757
16037 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16038 "(note: C<n> counts from 1)."
16042 #: ../fish/guestfish-actions.pod:4463
16044 "For other parameters, see L</sfdisk>. You should usually pass C<0> for the "
16045 "cyls/heads/sectors parameters."
16049 #: ../fish/guestfish-actions.pod:4466
16050 msgid "See also: L</part-add>"
16051 msgstr "Див. також L</part-add>"
16054 #: ../fish/guestfish-actions.pod:4478
16055 msgid "sfdisk-disk-geometry"
16056 msgstr "sfdisk-disk-geometry"
16059 #: ../fish/guestfish-actions.pod:4480
16062 " sfdisk-disk-geometry device\n"
16065 " sfdisk-disk-geometry пристрій\n"
16069 #: ../fish/guestfish-actions.pod:4482
16071 "This displays the disk geometry of C<device> read from the partition table. "
16072 "Especially in the case where the underlying block device has been resized, "
16073 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
16074 "kernel-geometry>)."
16078 #: ../fish/guestfish-actions.pod:4487 ../fish/guestfish-actions.pod:4496
16079 #: ../src/guestfs-actions.pod:6783 ../src/guestfs-actions.pod:6799
16080 msgid "The result is in human-readable format, and not designed to be parsed."
16084 #: ../fish/guestfish-actions.pod:4490
16085 msgid "sfdisk-kernel-geometry"
16086 msgstr "sfdisk-kernel-geometry"
16089 #: ../fish/guestfish-actions.pod:4492
16092 " sfdisk-kernel-geometry device\n"
16095 " sfdisk-kernel-geometry пристрій\n"
16099 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6797
16100 msgid "This displays the kernel's idea of the geometry of C<device>."
16104 #: ../fish/guestfish-actions.pod:4499
16109 #: ../fish/guestfish-actions.pod:4501
16112 " sfdisk-l device\n"
16115 " sfdisk-l пристрій\n"
16119 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6820
16121 "This displays the partition table on C<device>, in the human-readable output "
16122 "of the L<sfdisk(8)> command. It is not intended to be parsed."
16126 #: ../fish/guestfish-actions.pod:4507
16127 msgid "See also: L</part-list>"
16128 msgstr "Див. також L</part-list>"
16131 #: ../fish/guestfish-actions.pod:4509
16133 "I<This function is deprecated.> In new code, use the L</part_list> call "
16138 #: ../fish/guestfish-actions.pod:4516
16143 #: ../fish/guestfish-actions.pod:4518
16153 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6837
16155 "This call runs a command from the guest filesystem via the guest's C</bin/"
16160 #: ../fish/guestfish-actions.pod:4523
16161 msgid "This is like L</command>, but passes the command to:"
16165 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6842
16168 " /bin/sh -c \"command\"\n"
16173 #: ../fish/guestfish-actions.pod:4527 ../src/guestfs-actions.pod:6844
16175 "Depending on the guest's shell, this usually results in wildcards being "
16176 "expanded, shell expressions being interpolated and so on."
16180 #: ../fish/guestfish-actions.pod:4531
16181 msgid "All the provisos about L</command> apply to this call."
16185 #: ../fish/guestfish-actions.pod:4533
16190 #: ../fish/guestfish-actions.pod:4535
16193 " sh-lines command\n"
16196 " sh-lines команда\n"
16200 #: ../fish/guestfish-actions.pod:4537
16201 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16205 #: ../fish/guestfish-actions.pod:4540
16206 msgid "See also: L</command-lines>"
16207 msgstr "Див. також L</command-lines>"
16210 #: ../fish/guestfish-actions.pod:4542
16215 #: ../fish/guestfish-actions.pod:4544
16221 " sleep час_у_секундах\n"
16225 #: ../fish/guestfish-actions.pod:4546 ../src/guestfs-actions.pod:6878
16226 msgid "Sleep for C<secs> seconds."
16230 #: ../fish/guestfish-actions.pod:4548
16235 #: ../fish/guestfish-actions.pod:4550
16245 #: ../fish/guestfish-actions.pod:4554 ../src/guestfs-actions.pod:6892
16246 msgid "This is the same as the C<stat(2)> system call."
16250 #: ../fish/guestfish-actions.pod:4556
16255 #: ../fish/guestfish-actions.pod:4558
16265 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6906
16267 "Returns file system statistics for any mounted file system. C<path> should "
16268 "be a file or directory in the mounted file system (typically it is the mount "
16269 "point itself, but it doesn't need to be)."
16273 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6910
16274 msgid "This is the same as the C<statvfs(2)> system call."
16278 #: ../fish/guestfish-actions.pod:4566
16283 #: ../fish/guestfish-actions.pod:4568
16293 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6924
16295 "This runs the L<strings(1)> command on a file and returns the list of "
16296 "printable strings found."
16300 #: ../fish/guestfish-actions.pod:4576
16305 #: ../fish/guestfish-actions.pod:4578
16308 " strings-e encoding path\n"
16311 " strings-e кодування шлях\n"
16315 #: ../fish/guestfish-actions.pod:4580
16317 "This is like the L</strings> command, but allows you to specify the encoding "
16318 "of strings that are looked for in the source file C<path>."
16322 #: ../fish/guestfish-actions.pod:4584 ../src/guestfs-actions.pod:6947
16323 msgid "Allowed encodings are:"
16324 msgstr "Можливими кодуваннями є:"
16327 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6951
16332 #: ../fish/guestfish-actions.pod:4590
16334 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16335 "ISO-8859-X (this is what L</strings> uses)."
16339 #: ../fish/guestfish-actions.pod:4593 ../src/guestfs-actions.pod:6956
16344 #: ../fish/guestfish-actions.pod:4595 ../src/guestfs-actions.pod:6958
16345 msgid "Single 8-bit-byte characters."
16346 msgstr "Окремі 8-бітові-байтові символи."
16349 #: ../fish/guestfish-actions.pod:4597 ../src/guestfs-actions.pod:6960
16354 #: ../fish/guestfish-actions.pod:4599 ../src/guestfs-actions.pod:6962
16355 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16359 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6965
16360 msgid "l (lower case letter L)"
16364 #: ../fish/guestfish-actions.pod:4604 ../src/guestfs-actions.pod:6967
16366 "16-bit little endian such as UTF-16LE and UCS-2LE. This is useful for "
16367 "examining binaries in Windows guests."
16371 #: ../fish/guestfish-actions.pod:4607 ../src/guestfs-actions.pod:6970
16376 #: ../fish/guestfish-actions.pod:4609 ../src/guestfs-actions.pod:6972
16377 msgid "32-bit big endian such as UCS-4BE."
16381 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6974
16386 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6976
16387 msgid "32-bit little endian such as UCS-4LE."
16391 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6980
16392 msgid "The returned strings are transcoded to UTF-8."
16396 #: ../fish/guestfish-actions.pod:4622
16397 msgid "swapoff-device"
16398 msgstr "swapoff-device"
16401 #: ../fish/guestfish-actions.pod:4624
16404 " swapoff-device device\n"
16407 " swapoff-device пристрій\n"
16411 #: ../fish/guestfish-actions.pod:4626
16413 "This command disables the libguestfs appliance swap device or partition "
16414 "named C<device>. See L</swapon-device>."
16418 #: ../fish/guestfish-actions.pod:4630
16419 msgid "swapoff-file"
16420 msgstr "swapoff-file"
16423 #: ../fish/guestfish-actions.pod:4632
16426 " swapoff-file file\n"
16429 " swapoff-file файл\n"
16433 #: ../fish/guestfish-actions.pod:4634 ../src/guestfs-actions.pod:7011
16434 msgid "This command disables the libguestfs appliance swap on file."
16438 #: ../fish/guestfish-actions.pod:4636
16439 msgid "swapoff-label"
16440 msgstr "swapoff-label"
16443 #: ../fish/guestfish-actions.pod:4638
16446 " swapoff-label label\n"
16449 " swapoff-label мітка\n"
16453 #: ../fish/guestfish-actions.pod:4640 ../src/guestfs-actions.pod:7023
16455 "This command disables the libguestfs appliance swap on labeled swap "
16460 #: ../fish/guestfish-actions.pod:4643
16461 msgid "swapoff-uuid"
16462 msgstr "swapoff-uuid"
16465 #: ../fish/guestfish-actions.pod:4645
16468 " swapoff-uuid uuid\n"
16471 " swapoff-uuid uuid\n"
16475 #: ../fish/guestfish-actions.pod:4647 ../src/guestfs-actions.pod:7036
16477 "This command disables the libguestfs appliance swap partition with the given "
16482 #: ../fish/guestfish-actions.pod:4650
16483 msgid "swapon-device"
16484 msgstr "swapon-device"
16487 #: ../fish/guestfish-actions.pod:4652
16490 " swapon-device device\n"
16493 " swapon-device пристрій\n"
16497 #: ../fish/guestfish-actions.pod:4654
16499 "This command enables the libguestfs appliance to use the swap device or "
16500 "partition named C<device>. The increased memory is made available for all "
16501 "commands, for example those run using L</command> or L</sh>."
16505 #: ../fish/guestfish-actions.pod:4659 ../src/guestfs-actions.pod:7054
16507 "Note that you should not swap to existing guest swap partitions unless you "
16508 "know what you are doing. They may contain hibernation information, or other "
16509 "information that the guest doesn't want you to trash. You also risk leaking "
16510 "information about the host to the guest this way. Instead, attach a new "
16511 "host device to the guest and swap on that."
16515 #: ../fish/guestfish-actions.pod:4666
16516 msgid "swapon-file"
16517 msgstr "swapon-file"
16520 #: ../fish/guestfish-actions.pod:4668
16523 " swapon-file file\n"
16526 " swapon-file файл\n"
16530 #: ../fish/guestfish-actions.pod:4670
16532 "This command enables swap to a file. See L</swapon-device> for other notes."
16536 #: ../fish/guestfish-actions.pod:4673
16537 msgid "swapon-label"
16538 msgstr "swapon-label"
16541 #: ../fish/guestfish-actions.pod:4675
16544 " swapon-label label\n"
16547 " swapon-label мітка\n"
16551 #: ../fish/guestfish-actions.pod:4677
16553 "This command enables swap to a labeled swap partition. See L</swapon-"
16554 "device> for other notes."
16558 #: ../fish/guestfish-actions.pod:4680
16559 msgid "swapon-uuid"
16560 msgstr "swapon-uuid"
16563 #: ../fish/guestfish-actions.pod:4682
16566 " swapon-uuid uuid\n"
16569 " swapon-uuid uuid\n"
16573 #: ../fish/guestfish-actions.pod:4684
16575 "This command enables swap to a swap partition with the given UUID. See L</"
16576 "swapon-device> for other notes."
16580 #: ../fish/guestfish-actions.pod:4687
16585 #: ../fish/guestfish-actions.pod:4689
16595 #: ../fish/guestfish-actions.pod:4691 ../src/guestfs-actions.pod:7109
16597 "This syncs the disk, so that any writes are flushed through to the "
16598 "underlying disk image."
16602 #: ../fish/guestfish-actions.pod:4694 ../src/guestfs-actions.pod:7112
16604 "You should always call this if you have modified a disk image, before "
16605 "closing the handle."
16609 #: ../fish/guestfish-actions.pod:4697
16614 #: ../fish/guestfish-actions.pod:4699
16624 #: ../fish/guestfish-actions.pod:4701 ../src/guestfs-actions.pod:7125
16626 "This command returns up to the last 10 lines of a file as a list of strings."
16630 #: ../fish/guestfish-actions.pod:4707
16635 #: ../fish/guestfish-actions.pod:4709
16638 " tail-n nrlines path\n"
16643 #: ../fish/guestfish-actions.pod:4711 ../src/guestfs-actions.pod:7144
16645 "If the parameter C<nrlines> is a positive number, this returns the last "
16646 "C<nrlines> lines of the file C<path>."
16650 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7147
16652 "If the parameter C<nrlines> is a negative number, this returns lines from "
16653 "the file C<path>, starting with the C<-nrlines>th line."
16657 #: ../fish/guestfish-actions.pod:4722
16662 #: ../fish/guestfish-actions.pod:4724
16665 " tar-in (tarfile|-) directory\n"
16668 " tar-in (файл_tar|-) каталог\n"
16672 #: ../fish/guestfish-actions.pod:4726 ../src/guestfs-actions.pod:7168
16674 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16675 "tar file) into C<directory>."
16679 #: ../fish/guestfish-actions.pod:4729
16680 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16684 #: ../fish/guestfish-actions.pod:4734
16689 #: ../fish/guestfish-actions.pod:4736
16692 " tar-out directory (tarfile|-)\n"
16695 " tar-out каталог (файл tar|-)\n"
16699 #: ../fish/guestfish-actions.pod:4738 ../src/guestfs-actions.pod:7185
16701 "This command packs the contents of C<directory> and downloads it to local "
16706 #: ../fish/guestfish-actions.pod:4741
16707 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16711 #: ../fish/guestfish-actions.pod:4746
16716 #: ../fish/guestfish-actions.pod:4748
16719 " tgz-in (tarball|-) directory\n"
16722 " tgz-in (архів tar|-) каталог\n"
16726 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7202
16728 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16729 "tar file) into C<directory>."
16733 #: ../fish/guestfish-actions.pod:4753
16734 msgid "To upload an uncompressed tarball, use L</tar-in>."
16738 #: ../fish/guestfish-actions.pod:4757
16743 #: ../fish/guestfish-actions.pod:4759
16746 " tgz-out directory (tarball|-)\n"
16749 " tgz-out каталог (архів tar|-)\n"
16753 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7218
16755 "This command packs the contents of C<directory> and downloads it to local "
16760 #: ../fish/guestfish-actions.pod:4764
16761 msgid "To download an uncompressed tarball, use L</tar-out>."
16765 #: ../fish/guestfish-actions.pod:4768
16770 #: ../fish/guestfish-actions.pod:4770
16780 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7233
16782 "Touch acts like the L<touch(1)> command. It can be used to update the "
16783 "timestamps on a file, or, if the file does not exist, to create a new zero-"
16788 #: ../fish/guestfish-actions.pod:4776 ../src/guestfs-actions.pod:7237
16790 "This command only works on regular files, and will fail on other file types "
16791 "such as directories, symbolic links, block special etc."
16795 #: ../fish/guestfish-actions.pod:4779
16800 #: ../fish/guestfish-actions.pod:4781
16810 #: ../fish/guestfish-actions.pod:4783 ../src/guestfs-actions.pod:7250
16812 "This command truncates C<path> to a zero-length file. The file must exist "
16817 #: ../fish/guestfish-actions.pod:4786
16818 msgid "truncate-size"
16819 msgstr "truncate-size"
16822 #: ../fish/guestfish-actions.pod:4788
16825 " truncate-size path size\n"
16828 " truncate-size шлях розмір\n"
16832 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7264
16834 "This command truncates C<path> to size C<size> bytes. The file must exist "
16839 #: ../fish/guestfish-actions.pod:4793
16841 "If the current file size is less than C<size> then the file is extended to "
16842 "the required size with zero bytes. This creates a sparse file (ie. disk "
16843 "blocks are not allocated for the file until you write to it). To create a "
16844 "non-sparse file of zeroes, use L</fallocate64> instead."
16848 #: ../fish/guestfish-actions.pod:4799
16853 #: ../fish/guestfish-actions.pod:4801
16856 " tune2fs-l device\n"
16859 " tune2fs-l пристрій\n"
16863 #: ../fish/guestfish-actions.pod:4803 ../src/guestfs-actions.pod:7283
16865 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16870 #: ../fish/guestfish-actions.pod:4806 ../src/guestfs-actions.pod:7286
16872 "It is the same as running C<tune2fs -l device>. See L<tune2fs(8)> manpage "
16873 "for more details. The list of fields returned isn't clearly defined, and "
16874 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16875 "and the filesystem itself."
16879 #: ../fish/guestfish-actions.pod:4811
16884 #: ../fish/guestfish-actions.pod:4813
16887 " txz-in (tarball|-) directory\n"
16890 " txz-in (архів tar|-) каталог\n"
16894 #: ../fish/guestfish-actions.pod:4815 ../src/guestfs-actions.pod:7306
16896 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16897 "tar file) into C<directory>."
16901 #: ../fish/guestfish-actions.pod:4820
16906 #: ../fish/guestfish-actions.pod:4822
16909 " txz-out directory (tarball|-)\n"
16912 " txz-out каталог (архів tar|-)\n"
16916 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7320
16918 "This command packs the contents of C<directory> and downloads it to local "
16919 "file C<tarball> (as an xz compressed tar archive)."
16923 #: ../fish/guestfish-actions.pod:4829
16928 #: ../fish/guestfish-actions.pod:4831
16938 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7333
16940 "This function sets the mask used for creating new files and device nodes to "
16945 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7336
16947 "Typical umask values would be C<022> which creates new files with "
16948 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16949 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16953 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7341
16955 "The default umask is C<022>. This is important because it means that "
16956 "directories and device nodes will be created with C<0644> or C<0755> mode "
16957 "even if you specify C<0777>."
16961 #: ../fish/guestfish-actions.pod:4845
16962 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16963 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16966 #: ../fish/guestfish-actions.pod:4848 ../src/guestfs-actions.pod:7348
16967 msgid "This call returns the previous umask."
16971 #: ../fish/guestfish-actions.pod:4850
16976 #: ../fish/guestfish-actions.pod:4852
16981 #: ../fish/guestfish-actions.pod:4854
16984 " umount pathordevice\n"
16987 " umount шлях_або_пристрій\n"
16991 #: ../fish/guestfish-actions.pod:4856 ../src/guestfs-actions.pod:7360
16993 "This unmounts the given filesystem. The filesystem may be specified either "
16994 "by its mountpoint (path) or the device which contains the filesystem."
16998 #: ../fish/guestfish-actions.pod:4860
17000 msgstr "umount-all"
17003 #: ../fish/guestfish-actions.pod:4862
17004 msgid "unmount-all"
17005 msgstr "unmount-all"
17008 #: ../fish/guestfish-actions.pod:4864
17018 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7373
17019 msgid "This unmounts all mounted filesystems."
17023 #: ../fish/guestfish-actions.pod:4868 ../src/guestfs-actions.pod:7375
17024 msgid "Some internal mounts are not unmounted by this call."
17028 #: ../fish/guestfish-actions.pod:4870
17033 #: ../fish/guestfish-actions.pod:4872
17036 " upload (filename|-) remotefilename\n"
17039 " upload (назва_файла|-) назва_віддаленого_файла\n"
17043 #: ../fish/guestfish-actions.pod:4874 ../fish/guestfish-actions.pod:4887
17044 #: ../src/guestfs-actions.pod:7388 ../src/guestfs-actions.pod:7412
17045 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17049 #: ../fish/guestfish-actions.pod:4879
17050 msgid "See also L</download>."
17051 msgstr "Див. також L</download>."
17054 #: ../fish/guestfish-actions.pod:4883
17055 msgid "upload-offset"
17056 msgstr "upload-offset"
17059 #: ../fish/guestfish-actions.pod:4885
17062 " upload-offset (filename|-) remotefilename offset\n"
17065 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
17069 #: ../fish/guestfish-actions.pod:4890 ../src/guestfs-actions.pod:7415
17071 "C<remotefilename> is overwritten starting at the byte C<offset> specified. "
17072 "The intention is to overwrite parts of existing files or devices, although "
17073 "if a non-existant file is specified then it is created with a \"hole\" "
17074 "before C<offset>. The size of the data written is implicit in the size of "
17075 "the source C<filename>."
17079 #: ../fish/guestfish-actions.pod:4897
17081 "Note that there is no limit on the amount of data that can be uploaded with "
17082 "this call, unlike with L</pwrite>, and this call always writes the full "
17083 "amount unless an error occurs."
17087 #: ../fish/guestfish-actions.pod:4902
17088 msgid "See also L</upload>, L</pwrite>."
17089 msgstr "Див. також L</upload>, L</pwrite>."
17092 #: ../fish/guestfish-actions.pod:4906
17097 #: ../fish/guestfish-actions.pod:4908
17100 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
17105 #: ../fish/guestfish-actions.pod:4910 ../src/guestfs-actions.pod:7448
17106 msgid "This command sets the timestamps of a file with nanosecond precision."
17110 #: ../fish/guestfish-actions.pod:4913 ../src/guestfs-actions.pod:7451
17112 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17117 #: ../fish/guestfish-actions.pod:4916 ../src/guestfs-actions.pod:7454
17119 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17120 "nanoseconds from the epoch."
17124 #: ../fish/guestfish-actions.pod:4919 ../src/guestfs-actions.pod:7457
17126 "If the C<*nsecs> field contains the special value C<-1> then the "
17127 "corresponding timestamp is set to the current time. (The C<*secs> field is "
17128 "ignored in this case)."
17132 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7461
17134 "If the C<*nsecs> field contains the special value C<-2> then the "
17135 "corresponding timestamp is left unchanged. (The C<*secs> field is ignored "
17140 #: ../fish/guestfish-actions.pod:4927
17145 #: ../fish/guestfish-actions.pod:4929
17155 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7474
17157 "Return the libguestfs version number that the program is linked against."
17161 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7477
17163 "Note that because of dynamic linking this is not necessarily the version of "
17164 "libguestfs that you compiled against. You can compile the program, and then "
17165 "at runtime dynamically link against a completely different C<libguestfs.so> "
17170 #: ../fish/guestfish-actions.pod:4939 ../src/guestfs-actions.pod:7482
17172 "This call was added in version C<1.0.58>. In previous versions of "
17173 "libguestfs there was no way to get the version number. From C code you can "
17174 "use dynamic linker functions to find out if this symbol exists (if it "
17175 "doesn't, then it's an earlier version)."
17179 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7488
17181 "The call returns a structure with four elements. The first three (C<major>, "
17182 "C<minor> and C<release>) are numbers and correspond to the usual version "
17183 "triplet. The fourth element (C<extra>) is a string and is normally empty, "
17184 "but may be used for distro-specific information."
17188 #: ../fish/guestfish-actions.pod:4951 ../src/guestfs-actions.pod:7494
17190 "To construct the original version string: C<$major.$minor.$release$extra>"
17194 #: ../fish/guestfish-actions.pod:4954 ../src/guestfs-actions.pod:7497
17195 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17199 #: ../fish/guestfish-actions.pod:4956
17201 "I<Note:> Don't use this call to test for availability of features. In "
17202 "enterprise distributions we backport features from later versions into "
17203 "earlier versions, making this an unreliable way to test for features. Use "
17204 "L</available> instead."
17208 #: ../fish/guestfish-actions.pod:4962
17213 #: ../fish/guestfish-actions.pod:4964
17216 " vfs-label device\n"
17219 " vfs-label пристрій\n"
17223 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7517
17224 msgid "This returns the filesystem label of the filesystem on C<device>."
17228 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7520
17229 msgid "If the filesystem is unlabeled, this returns the empty string."
17233 #: ../fish/guestfish-actions.pod:4971
17234 msgid "To find a filesystem from the label, use L</findfs-label>."
17238 #: ../fish/guestfish-actions.pod:4973
17243 #: ../fish/guestfish-actions.pod:4975
17246 " vfs-type device\n"
17249 " vfs-type пристрій\n"
17253 #: ../fish/guestfish-actions.pod:4977 ../src/guestfs-actions.pod:7535
17255 "This command gets the filesystem type corresponding to the filesystem on "
17260 #: ../fish/guestfish-actions.pod:4980 ../src/guestfs-actions.pod:7538
17262 "For most filesystems, the result is the name of the Linux VFS module which "
17263 "would be used to mount this filesystem if you mounted it without specifying "
17264 "the filesystem type. For example a string such as C<ext3> or C<ntfs>."
17268 #: ../fish/guestfish-actions.pod:4985
17273 #: ../fish/guestfish-actions.pod:4987
17276 " vfs-uuid device\n"
17279 " vfs-uuid пристрій\n"
17283 #: ../fish/guestfish-actions.pod:4989 ../src/guestfs-actions.pod:7554
17284 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17288 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7557
17289 msgid "If the filesystem does not have a UUID, this returns the empty string."
17293 #: ../fish/guestfish-actions.pod:4994
17294 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17298 #: ../fish/guestfish-actions.pod:4996
17299 msgid "vg-activate"
17300 msgstr "vg-activate"
17303 #: ../fish/guestfish-actions.pod:4998
17306 " vg-activate true|false 'volgroups ...'\n"
17311 #: ../fish/guestfish-actions.pod:5000 ../src/guestfs-actions.pod:7573
17313 "This command activates or (if C<activate> is false) deactivates all logical "
17314 "volumes in the listed volume groups C<volgroups>."
17318 #: ../fish/guestfish-actions.pod:5003 ../src/guestfs-actions.pod:7576
17319 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17323 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7578
17325 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17326 "activated or deactivated."
17330 #: ../fish/guestfish-actions.pod:5008
17331 msgid "vg-activate-all"
17332 msgstr "vg-activate-all"
17335 #: ../fish/guestfish-actions.pod:5010
17338 " vg-activate-all true|false\n"
17341 " vg-activate-all true|false\n"
17345 #: ../fish/guestfish-actions.pod:5012 ../src/guestfs-actions.pod:7591
17347 "This command activates or (if C<activate> is false) deactivates all logical "
17348 "volumes in all volume groups."
17352 #: ../fish/guestfish-actions.pod:5015 ../src/guestfs-actions.pod:7594
17353 msgid "This command is the same as running C<vgchange -a y|n>"
17357 #: ../fish/guestfish-actions.pod:5017
17362 #: ../fish/guestfish-actions.pod:5019
17365 " vgcreate volgroup 'physvols ...'\n"
17370 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7607
17372 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17373 "of physical volumes C<physvols>."
17377 #: ../fish/guestfish-actions.pod:5024
17382 #: ../fish/guestfish-actions.pod:5026
17385 " vglvuuids vgname\n"
17390 #: ../fish/guestfish-actions.pod:5028 ../src/guestfs-actions.pod:7620
17392 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17393 "volumes created in this volume group."
17397 #: ../fish/guestfish-actions.pod:5031
17399 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17400 "logical volumes and volume groups."
17404 #: ../fish/guestfish-actions.pod:5034
17405 msgid "See also L</vgpvuuids>."
17406 msgstr "Див. також L</vgpvuuids>."
17409 #: ../fish/guestfish-actions.pod:5036
17414 #: ../fish/guestfish-actions.pod:5038
17417 " vgpvuuids vgname\n"
17422 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7640
17424 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17425 "volumes that this volume group resides on."
17429 #: ../fish/guestfish-actions.pod:5043
17431 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17432 "physical volumes and volume groups."
17436 #: ../fish/guestfish-actions.pod:5046
17437 msgid "See also L</vglvuuids>."
17438 msgstr "Див. також L</vglvuuids>."
17441 #: ../fish/guestfish-actions.pod:5048
17446 #: ../fish/guestfish-actions.pod:5050
17449 " vgremove vgname\n"
17454 #: ../fish/guestfish-actions.pod:5052 ../src/guestfs-actions.pod:7660
17455 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17459 #: ../fish/guestfish-actions.pod:5054 ../src/guestfs-actions.pod:7662
17461 "This also forcibly removes all logical volumes in the volume group (if any)."
17465 #: ../fish/guestfish-actions.pod:5057
17470 #: ../fish/guestfish-actions.pod:5059
17473 " vgrename volgroup newvolgroup\n"
17478 #: ../fish/guestfish-actions.pod:5061 ../src/guestfs-actions.pod:7676
17479 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17483 #: ../fish/guestfish-actions.pod:5063
17488 #: ../fish/guestfish-actions.pod:5065
17498 #: ../fish/guestfish-actions.pod:5067 ../src/guestfs-actions.pod:7687
17500 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
17505 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7690
17507 "This returns a list of just the volume group names that were detected (eg. "
17512 #: ../fish/guestfish-actions.pod:5073
17513 msgid "See also L</vgs-full>."
17514 msgstr "Див. також L</vgs-full>."
17517 #: ../fish/guestfish-actions.pod:5075
17522 #: ../fish/guestfish-actions.pod:5077
17532 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7706
17534 "List all the volumes groups detected. This is the equivalent of the L<vgs(8)"
17535 "> command. The \"full\" version includes all fields."
17539 #: ../fish/guestfish-actions.pod:5082
17544 #: ../fish/guestfish-actions.pod:5084
17554 #: ../fish/guestfish-actions.pod:5086 ../src/guestfs-actions.pod:7720
17556 "This rescans all block devices and rebuilds the list of LVM physical "
17557 "volumes, volume groups and logical volumes."
17561 #: ../fish/guestfish-actions.pod:5089
17566 #: ../fish/guestfish-actions.pod:5091
17574 #: ../fish/guestfish-actions.pod:5093 ../src/guestfs-actions.pod:7733
17575 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17579 #: ../fish/guestfish-actions.pod:5095
17584 #: ../fish/guestfish-actions.pod:5097
17594 #: ../fish/guestfish-actions.pod:5099 ../src/guestfs-actions.pod:7773
17596 "This command counts the characters in a file, using the C<wc -c> external "
17601 #: ../fish/guestfish-actions.pod:5102
17606 #: ../fish/guestfish-actions.pod:5104
17616 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7786
17618 "This command counts the lines in a file, using the C<wc -l> external command."
17622 #: ../fish/guestfish-actions.pod:5109
17627 #: ../fish/guestfish-actions.pod:5111
17637 #: ../fish/guestfish-actions.pod:5113 ../src/guestfs-actions.pod:7799
17639 "This command counts the words in a file, using the C<wc -w> external command."
17643 #: ../fish/guestfish-actions.pod:5116
17648 #: ../fish/guestfish-actions.pod:5118
17651 " write path content\n"
17654 " write шлях дані\n"
17658 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7814
17660 "This call creates a file called C<path>. The content of the file is the "
17661 "string C<content> (which can contain any 8 bit data)."
17665 #: ../fish/guestfish-actions.pod:5123
17666 msgid "See also L</write-append>."
17670 #: ../fish/guestfish-actions.pod:5128
17671 msgid "write-append"
17675 #: ../fish/guestfish-actions.pod:5130
17678 " write-append path content\n"
17683 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:7834
17685 "This call appends C<content> to the end of file C<path>. If C<path> does "
17686 "not exist, then a new file is created."
17690 #: ../fish/guestfish-actions.pod:5135
17691 msgid "See also L</write>."
17695 #: ../fish/guestfish-actions.pod:5140
17697 msgstr "write-file"
17700 #: ../fish/guestfish-actions.pod:5142
17703 " write-file path content size\n"
17708 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7861
17710 "This call creates a file called C<path>. The contents of the file is the "
17711 "string C<content> (which can contain any 8 bit data), with length C<size>."
17715 #: ../fish/guestfish-actions.pod:5148 ../src/guestfs-actions.pod:7865
17717 "As a special case, if C<size> is C<0> then the length is calculated using "
17718 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17722 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7869
17724 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17725 "I<not> work, even if the length is specified."
17729 #: ../fish/guestfish-actions.pod:5158
17731 "I<This function is deprecated.> In new code, use the L</write> call instead."
17735 #: ../fish/guestfish-actions.pod:5165
17740 #: ../fish/guestfish-actions.pod:5167
17743 " zegrep regex path\n"
17746 " zegrep формальний_вираз шлях\n"
17750 #: ../fish/guestfish-actions.pod:5169 ../src/guestfs-actions.pod:7886
17752 "This calls the external C<zegrep> program and returns the matching lines."
17756 #: ../fish/guestfish-actions.pod:5175
17761 #: ../fish/guestfish-actions.pod:5177
17764 " zegrepi regex path\n"
17769 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7905
17771 "This calls the external C<zegrep -i> program and returns the matching lines."
17775 #: ../fish/guestfish-actions.pod:5185
17780 #: ../fish/guestfish-actions.pod:5187
17790 #: ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7923
17791 msgid "This command writes zeroes over the first few blocks of C<device>."
17795 #: ../fish/guestfish-actions.pod:5191 ../src/guestfs-actions.pod:7925
17797 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17798 "securely wipe the device). It should be sufficient to remove any partition "
17799 "tables, filesystem superblocks and so on."
17803 #: ../fish/guestfish-actions.pod:5195 ../fish/guestfish-actions.pod:5210
17804 #: ../src/guestfs-actions.pod:7929 ../src/guestfs-actions.pod:7955
17806 "If blocks are already zero, then this command avoids writing zeroes. This "
17807 "prevents the underlying device from becoming non-sparse or growing "
17812 #: ../fish/guestfish-actions.pod:5199
17813 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17817 #: ../fish/guestfish-actions.pod:5202
17818 msgid "zero-device"
17819 msgstr "zero-device"
17822 #: ../fish/guestfish-actions.pod:5204
17825 " zero-device device\n"
17828 " zero-device пристрій\n"
17832 #: ../fish/guestfish-actions.pod:5206
17834 "This command writes zeroes over the entire C<device>. Compare with L</zero> "
17835 "which just zeroes the first few blocks of a device."
17839 #: ../fish/guestfish-actions.pod:5217
17844 #: ../fish/guestfish-actions.pod:5219
17847 " zerofree device\n"
17850 " zerofree пристрій\n"
17854 #: ../fish/guestfish-actions.pod:5221 ../src/guestfs-actions.pod:7977
17856 "This runs the I<zerofree> program on C<device>. This program claims to zero "
17857 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17858 "possible to compress the filesystem more effectively."
17862 #: ../fish/guestfish-actions.pod:5226 ../src/guestfs-actions.pod:7982
17863 msgid "You should B<not> run this program if the filesystem is mounted."
17867 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:7985
17869 "It is possible that using this program can damage the filesystem or data on "
17874 #: ../fish/guestfish-actions.pod:5232
17879 #: ../fish/guestfish-actions.pod:5234
17882 " zfgrep pattern path\n"
17885 " zfgrep шаблон шлях\n"
17889 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:7999
17891 "This calls the external C<zfgrep> program and returns the matching lines."
17895 #: ../fish/guestfish-actions.pod:5242
17900 #: ../fish/guestfish-actions.pod:5244
17903 " zfgrepi pattern path\n"
17906 " zfgrepi шаблон шлях\n"
17910 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8018
17912 "This calls the external C<zfgrep -i> program and returns the matching lines."
17916 #: ../fish/guestfish-actions.pod:5252
17921 #: ../fish/guestfish-actions.pod:5254
17924 " zfile meth path\n"
17927 " zfile метод шлях\n"
17931 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8044
17933 "This command runs C<file> after first decompressing C<path> using C<method>."
17937 #: ../fish/guestfish-actions.pod:5259 ../src/guestfs-actions.pod:8047
17938 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17942 #: ../fish/guestfish-actions.pod:5261
17944 "Since 1.0.63, use L</file> instead which can now process compressed files."
17948 #: ../fish/guestfish-actions.pod:5264
17950 "I<This function is deprecated.> In new code, use the L</file> call instead."
17954 #: ../fish/guestfish-actions.pod:5271
17959 #: ../fish/guestfish-actions.pod:5273
17962 " zgrep regex path\n"
17965 " zgrep формальний_вираз шлях\n"
17969 #: ../fish/guestfish-actions.pod:5275 ../src/guestfs-actions.pod:8064
17971 "This calls the external C<zgrep> program and returns the matching lines."
17975 #: ../fish/guestfish-actions.pod:5281
17980 #: ../fish/guestfish-actions.pod:5283
17983 " zgrepi regex path\n"
17986 " zgrepi формальний_вираз шлях\n"
17990 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:8083
17992 "This calls the external C<zgrep -i> program and returns the matching lines."
17996 #: ../fish/guestfish-commands.pod:1
18001 #: ../fish/guestfish-commands.pod:3
18006 #: ../fish/guestfish-commands.pod:5
18009 " alloc filename size\n"
18014 #: ../fish/guestfish-commands.pod:7
18016 "This creates an empty (zeroed) file of the given size, and then adds so it "
18017 "can be further examined."
18021 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
18022 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
18026 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
18027 msgid "Size can be specified using standard suffixes, eg. C<1M>."
18031 #: ../fish/guestfish-commands.pod:14
18033 "To create a sparse file, use L</sparse> instead. To create a prepared disk "
18034 "image, see L</PREPARED DISK IMAGES>."
18038 #: ../fish/guestfish-commands.pod:17
18043 #: ../fish/guestfish-commands.pod:19
18046 " copy-in local [local ...] /remotedir\n"
18051 #: ../fish/guestfish-commands.pod:21
18053 "C<copy-in> copies local files or directories recursively into the disk "
18054 "image, placing them in the directory called C</remotedir> (which must "
18055 "exist). This guestfish meta-command turns into a sequence of L</tar-in> and "
18056 "other commands as necessary."
18060 #: ../fish/guestfish-commands.pod:26
18062 "Multiple local files and directories can be specified, but the last "
18063 "parameter must always be a remote directory. Wildcards cannot be used."
18067 #: ../fish/guestfish-commands.pod:30
18072 #: ../fish/guestfish-commands.pod:32
18075 " copy-out remote [remote ...] localdir\n"
18080 #: ../fish/guestfish-commands.pod:34
18082 "C<copy-out> copies remote files or directories recursively out of the disk "
18083 "image, placing them on the host disk in a local directory called C<localdir> "
18084 "(which must exist). This guestfish meta-command turns into a sequence of L</"
18085 "download>, L</tar-out> and other commands as necessary."
18089 #: ../fish/guestfish-commands.pod:40
18091 "Multiple remote files and directories can be specified, but the last "
18092 "parameter must always be a local directory. To download to the current "
18093 "directory, use C<.> as in:"
18097 #: ../fish/guestfish-commands.pod:44
18100 " copy-out /home .\n"
18103 " copy-out /home .\n"
18107 #: ../fish/guestfish-commands.pod:46
18109 "Wildcards cannot be used in the ordinary command, but you can use them with "
18110 "the help of L</glob> like this:"
18114 #: ../fish/guestfish-commands.pod:49
18117 " glob copy-out /home/* .\n"
18120 " glob copy-out /home/* .\n"
18124 #: ../fish/guestfish-commands.pod:51
18129 #: ../fish/guestfish-commands.pod:53
18132 " display filename\n"
18137 #: ../fish/guestfish-commands.pod:55
18139 "Use C<display> (a graphical display program) to display an image file. It "
18140 "downloads the file, and runs C<display> on it."
18144 #: ../fish/guestfish-commands.pod:58
18146 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18147 "environment variable. For example to use the GNOME display program:"
18151 #: ../fish/guestfish-commands.pod:61
18154 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18159 #: ../fish/guestfish-commands.pod:63
18160 msgid "See also L<display(1)>."
18164 #: ../fish/guestfish-commands.pod:65
18169 #: ../fish/guestfish-commands.pod:67
18172 " echo [params ...]\n"
18175 " echo [параметри...]\n"
18179 #: ../fish/guestfish-commands.pod:69
18180 msgid "This echos the parameters to the terminal."
18184 #: ../fish/guestfish-commands.pod:71
18189 #: ../fish/guestfish-commands.pod:73
18194 #: ../fish/guestfish-commands.pod:75
18199 #: ../fish/guestfish-commands.pod:77
18205 " edit назва_файла\n"
18209 #: ../fish/guestfish-commands.pod:79
18211 "This is used to edit a file. It downloads the file, edits it locally using "
18212 "your editor, then uploads the result."
18216 #: ../fish/guestfish-commands.pod:82
18218 "The editor is C<$EDITOR>. However if you use the alternate commands C<vi> "
18219 "or C<emacs> you will get those corresponding editors."
18223 #: ../fish/guestfish-commands.pod:86
18228 #: ../fish/guestfish-commands.pod:88
18231 " glob command args...\n"
18234 " glob команда параметри...\n"
18238 #: ../fish/guestfish-commands.pod:90
18240 "Expand wildcards in any paths in the args list, and run C<command> "
18241 "repeatedly on each matching path."
18245 #: ../fish/guestfish-commands.pod:93
18246 msgid "See L</WILDCARDS AND GLOBBING>."
18247 msgstr "Див. L</WILDCARDS AND GLOBBING>."
18250 #: ../fish/guestfish-commands.pod:95
18255 #: ../fish/guestfish-commands.pod:97
18258 " hexedit <filename|device>\n"
18259 " hexedit <filename|device> <max>\n"
18260 " hexedit <filename|device> <start> <max>\n"
18265 #: ../fish/guestfish-commands.pod:101
18267 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18272 #: ../fish/guestfish-commands.pod:104
18274 "This command works by downloading potentially the whole file or device, "
18275 "editing it locally, then uploading it. If the file or device is large, you "
18276 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18277 "C<max> parameters. C<start> and C<max> are specified in bytes, with the "
18278 "usual modifiers allowed such as C<1M> (1 megabyte)."
18282 #: ../fish/guestfish-commands.pod:111
18283 msgid "For example to edit the first few sectors of a disk you might do:"
18287 #: ../fish/guestfish-commands.pod:114
18290 " hexedit /dev/sda 1M\n"
18293 " hexedit /dev/sda 1M\n"
18297 #: ../fish/guestfish-commands.pod:116
18299 "which would allow you to edit anywhere within the first megabyte of the disk."
18303 #: ../fish/guestfish-commands.pod:119
18304 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18308 #: ../fish/guestfish-commands.pod:121
18311 " hexedit /dev/sda1 0x400 0x400\n"
18314 " hexedit /dev/sda1 0x400 0x400\n"
18318 #: ../fish/guestfish-commands.pod:123
18319 msgid "(assuming the superblock is in the standard location)."
18323 #: ../fish/guestfish-commands.pod:125
18325 "This command requires the external L<hexedit(1)> program. You can specify "
18326 "another program to use by setting the C<HEXEDITOR> environment variable."
18330 #: ../fish/guestfish-commands.pod:129
18331 msgid "See also L</hexdump>."
18332 msgstr "Див. також L</hexdump>."
18335 #: ../fish/guestfish-commands.pod:131
18340 #: ../fish/guestfish-commands.pod:133
18348 #: ../fish/guestfish-commands.pod:135
18350 "Change the local directory, ie. the current directory of guestfish itself."
18354 #: ../fish/guestfish-commands.pod:138
18355 msgid "Note that C<!cd> won't do what you might expect."
18359 #: ../fish/guestfish-commands.pod:140
18364 #: ../fish/guestfish-commands.pod:142
18369 #: ../fish/guestfish-commands.pod:144
18379 #: ../fish/guestfish-commands.pod:146
18380 msgid "Opens the manual page for guestfish."
18384 #: ../fish/guestfish-commands.pod:148
18389 #: ../fish/guestfish-commands.pod:150
18394 #: ../fish/guestfish-commands.pod:152
18402 #: ../fish/guestfish-commands.pod:154
18410 #: ../fish/guestfish-commands.pod:156
18411 msgid "This is used to view a file."
18415 #: ../fish/guestfish-commands.pod:158
18417 "The default viewer is C<$PAGER>. However if you use the alternate command "
18418 "C<less> you will get the C<less> command specifically."
18422 #: ../fish/guestfish-commands.pod:161
18427 #: ../fish/guestfish-commands.pod:163
18435 #: ../fish/guestfish-commands.pod:165
18437 "Close and reopen the libguestfs handle. It is not necessary to use this "
18438 "normally, because the handle is closed properly when guestfish exits. "
18439 "However this is occasionally useful for testing."
18443 #: ../fish/guestfish-commands.pod:169
18448 #: ../fish/guestfish-commands.pod:171
18451 " setenv VAR value\n"
18456 #: ../fish/guestfish-commands.pod:173
18457 msgid "Set the environment variable C<VAR> to the string C<value>."
18461 #: ../fish/guestfish-commands.pod:175
18463 "To print the value of an environment variable use a shell command such as:"
18467 #: ../fish/guestfish-commands.pod:178
18475 #: ../fish/guestfish-commands.pod:180
18480 #: ../fish/guestfish-commands.pod:182
18483 " sparse filename size\n"
18488 #: ../fish/guestfish-commands.pod:184
18490 "This creates an empty sparse file of the given size, and then adds so it can "
18491 "be further examined."
18495 #: ../fish/guestfish-commands.pod:187
18497 "In all respects it works the same as the L</alloc> command, except that the "
18498 "image file is allocated sparsely, which means that disk blocks are not "
18499 "assigned to the file until they are needed. Sparse disk files only use "
18500 "space when written to, but they are slower and there is a danger you could "
18501 "run out of real disk space during a write operation."
18505 #: ../fish/guestfish-commands.pod:197
18510 #: ../fish/guestfish-commands.pod:199
18520 #: ../fish/guestfish-commands.pod:201
18522 "This command returns a list of the optional groups known to the daemon, and "
18523 "indicates which ones are supported by this build of the libguestfs appliance."
18527 #: ../fish/guestfish-commands.pod:205
18528 msgid "See also L<guestfs(3)/AVAILABILITY>."
18532 #: ../fish/guestfish-commands.pod:207
18537 #: ../fish/guestfish-commands.pod:209
18540 " time command args...\n"
18545 #: ../fish/guestfish-commands.pod:211
18547 "Run the command as usual, but print the elapsed time afterwards. This can "
18548 "be useful for benchmarking operations."
18552 #: ../fish/guestfish-commands.pod:214
18557 #: ../fish/guestfish-commands.pod:216
18565 #: ../fish/guestfish-commands.pod:218
18566 msgid "Remove C<VAR> from the environment."
18570 #: ../fish/guestfish.pod:5
18571 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18575 #: ../fish/guestfish.pod:9
18578 " guestfish [--options] [commands]\n"
18583 #: ../fish/guestfish.pod:11
18591 #: ../fish/guestfish.pod:13
18594 " guestfish [--ro|--rw] -a disk.img\n"
18599 #: ../fish/guestfish.pod:15
18602 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18607 #: ../fish/guestfish.pod:17
18610 " guestfish -d libvirt-domain\n"
18615 #: ../fish/guestfish.pod:19
18618 " guestfish [--ro|--rw] -a disk.img -i\n"
18623 #: ../fish/guestfish.pod:21
18626 " guestfish -d libvirt-domain -i\n"
18631 #: ../fish/guestfish.pod:25
18633 "Using guestfish in read/write mode on live virtual machines can be "
18634 "dangerous, potentially causing disk corruption. Use the I<--ro> (read-only) "
18635 "option to use guestfish safely if the disk image or virtual machine might be "
18640 #: ../fish/guestfish.pod:32
18642 "Guestfish is a shell and command-line tool for examining and modifying "
18643 "virtual machine filesystems. It uses libguestfs and exposes all of the "
18644 "functionality of the guestfs API, see L<guestfs(3)>."
18648 #: ../fish/guestfish.pod:36
18650 "Guestfish gives you structured access to the libguestfs API, from shell "
18651 "scripts or the command line or interactively. If you want to rescue a "
18652 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18657 #: ../fish/guestfish.pod:43
18658 msgid "As an interactive shell"
18662 #: ../fish/guestfish.pod:45
18670 #: ../fish/guestfish.pod:47
18673 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18674 " editing virtual machine filesystems.\n"
18679 #: ../fish/guestfish.pod:50
18682 " Type: 'help' for a list of commands\n"
18683 " 'man' to read the manual\n"
18684 " 'quit' to quit the shell\n"
18689 #: ../fish/guestfish.pod:54
18692 " ><fs> add-ro disk.img\n"
18694 " ><fs> list-filesystems\n"
18695 " /dev/sda1: ext4\n"
18696 " /dev/vg_guest/lv_root: ext4\n"
18697 " /dev/vg_guest/lv_swap: swap\n"
18698 " ><fs> mount /dev/vg_guest/lv_root /\n"
18699 " ><fs> cat /etc/fstab\n"
18701 " # Created by anaconda\n"
18708 #: ../fish/guestfish.pod:67
18709 msgid "From shell scripts"
18713 #: ../fish/guestfish.pod:69
18714 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18718 #: ../fish/guestfish.pod:71
18721 " guestfish <<_EOF_\n"
18724 " mount /dev/vg_guest/lv_root /\n"
18725 " write /etc/motd \"Welcome, new users\"\n"
18731 #: ../fish/guestfish.pod:78
18732 msgid "List the LVM logical volumes in a disk image:"
18736 #: ../fish/guestfish.pod:80
18739 " guestfish -a disk.img --ro <<_EOF_\n"
18747 #: ../fish/guestfish.pod:85
18748 msgid "List all the filesystems in a disk image:"
18752 #: ../fish/guestfish.pod:87
18755 " guestfish -a disk.img --ro <<_EOF_\n"
18757 " list-filesystems\n"
18763 #: ../fish/guestfish.pod:92
18764 msgid "On one command line"
18768 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18769 msgid "Update C</etc/resolv.conf> in a guest:"
18773 #: ../fish/guestfish.pod:96
18777 " add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18778 " write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18783 #: ../fish/guestfish.pod:100
18784 msgid "Edit C</boot/grub/grub.conf> interactively:"
18788 #: ../fish/guestfish.pod:102
18791 " guestfish --rw --add disk.img \\\n"
18792 " --mount /dev/vg_guest/lv_root \\\n"
18793 " --mount /dev/sda1:/boot \\\n"
18794 " edit /boot/grub/grub.conf\n"
18799 #: ../fish/guestfish.pod:107
18800 msgid "Mount disks automatically"
18804 #: ../fish/guestfish.pod:109
18806 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
18810 #: ../fish/guestfish.pod:112
18813 " guestfish --ro -a disk.img -i cat /etc/group\n"
18818 #: ../fish/guestfish.pod:114
18821 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18826 #: ../fish/guestfish.pod:116
18827 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18831 #: ../fish/guestfish.pod:118
18834 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18839 #: ../fish/guestfish.pod:120
18840 msgid "As a script interpreter"
18844 #: ../fish/guestfish.pod:122
18845 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18849 #: ../fish/guestfish.pod:124
18852 " #!/usr/bin/guestfish -f\n"
18853 " sparse test1.img 100M\n"
18855 " part-disk /dev/sda mbr\n"
18856 " mkfs ext2 /dev/sda1\n"
18861 #: ../fish/guestfish.pod:130
18862 msgid "Start with a prepared disk"
18866 #: ../fish/guestfish.pod:132
18868 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18869 "single ext2-formatted partition:"
18873 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2228
18876 " guestfish -N fs\n"
18881 #: ../fish/guestfish.pod:137
18882 msgid "To list what is available do:"
18886 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1041
18889 " guestfish -N help | less\n"
18894 #: ../fish/guestfish.pod:141
18895 msgid "Remote control"
18896 msgstr "Дистанційне керування"
18899 #: ../fish/guestfish.pod:143
18902 " eval \"`guestfish --listen`\"\n"
18903 " guestfish --remote add-ro disk.img\n"
18904 " guestfish --remote run\n"
18905 " guestfish --remote lvs\n"
18908 " eval \"`guestfish --listen`\"\n"
18909 " guestfish --remote add-ro disk.img\n"
18910 " guestfish --remote run\n"
18911 " guestfish --remote lvs\n"
18915 #: ../fish/guestfish.pod:154
18916 msgid "Displays general help on options."
18920 #: ../fish/guestfish.pod:158
18921 msgid "B<--cmd-help>"
18922 msgstr "B<--cmd-help>"
18925 #: ../fish/guestfish.pod:160
18926 msgid "Lists all available guestfish commands."
18930 #: ../fish/guestfish.pod:162
18932 msgstr "B<-h команда>"
18935 #: ../fish/guestfish.pod:164
18936 msgid "B<--cmd-help cmd>"
18937 msgstr "B<--cmd-help команда>"
18940 #: ../fish/guestfish.pod:166
18941 msgid "Displays detailed help on a single command C<cmd>."
18945 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
18946 msgid "B<-a image>"
18947 msgstr "B<-a образ>"
18950 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
18951 msgid "B<--add image>"
18952 msgstr "B<--add образ>"
18955 #: ../fish/guestfish.pod:172
18956 msgid "Add a block device or virtual machine image to the shell."
18960 #: ../fish/guestfish.pod:177
18962 "Using this flag is mostly equivalent to using the C<add> command, with "
18963 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18964 "the I<--format=...> flag was given."
18968 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
18970 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18971 "URI to use. The default is to use the default libvirt connection."
18975 #: ../fish/guestfish.pod:189
18980 #: ../fish/guestfish.pod:191
18982 "If using the I<--listen> option and a csh-like shell, use this option. See "
18983 "section L</REMOTE CONTROL AND CSH> below."
18987 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
18988 msgid "B<-d libvirt-domain>"
18989 msgstr "B<-d домен-libvirt>"
18992 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
18993 msgid "B<--domain libvirt-domain>"
18994 msgstr "B<--domain домен-libvirt>"
18997 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
18999 "Add disks from the named libvirt domain. If the I<--ro> option is also "
19000 "used, then any libvirt domain can be used. However in write mode, only "
19001 "libvirt domains which are shut down can be named here."
19005 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
19006 msgid "Domain UUIDs can be used instead of names."
19010 #: ../fish/guestfish.pod:204
19012 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19013 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19014 "if the I<--format:...> flag was given."
19018 #: ../fish/guestfish.pod:208
19023 #: ../fish/guestfish.pod:210
19024 msgid "B<--no-dest-paths>"
19025 msgstr "B<--no-dest-paths>"
19028 #: ../fish/guestfish.pod:212
19030 "Don't tab-complete paths on the guest filesystem. It is useful to be able "
19031 "to hit the tab key to complete paths on the guest filesystem, but this "
19032 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19033 "allow this feature to be disabled."
19037 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
19039 "When prompting for keys and passphrases, guestfish normally turns echoing "
19040 "off so you cannot see what you are typing. If you are not worried about "
19041 "Tempest attacks and there is no one else in the room you can specify this "
19042 "flag to see what you are typing."
19046 #: ../fish/guestfish.pod:224
19048 msgstr "B<-f файл>"
19051 #: ../fish/guestfish.pod:226
19052 msgid "B<--file file>"
19053 msgstr "B<--file файл>"
19056 #: ../fish/guestfish.pod:228
19057 msgid "Read commands from C<file>. To write pure guestfish scripts, use:"
19061 #: ../fish/guestfish.pod:231
19064 " #!/usr/bin/guestfish -f\n"
19067 " #!/usr/bin/guestfish -f\n"
19071 #: ../fish/guestfish.pod:244
19074 " guestfish --format=raw -a disk.img\n"
19077 " guestfish --format=raw -a disk.img\n"
19081 #: ../fish/guestfish.pod:248
19084 " guestfish --format=raw -a disk.img --format -a another.img\n"
19087 " guestfish --format=raw -a disk.img --format -a another.img\n"
19091 #: ../fish/guestfish.pod:253
19093 "If you have untrusted raw-format guest disk images, you should use this "
19094 "option to specify the disk format. This avoids a possible security problem "
19095 "with malicious guests (CVE-2010-3851). See also L</add-drive-opts>."
19099 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
19100 msgid "B<--inspector>"
19101 msgstr "B<--inspector>"
19104 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
19106 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19107 "system and mount filesystems as they would be mounted on the real virtual "
19112 #: ../fish/guestfish.pod:266
19113 msgid "Typical usage is either:"
19117 #: ../fish/guestfish.pod:268
19120 " guestfish -d myguest -i\n"
19123 " guestfish -d myguest -i\n"
19127 #: ../fish/guestfish.pod:270
19128 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19132 #: ../fish/guestfish.pod:272
19135 " guestfish --ro -d myguest -i\n"
19138 " guestfish --ro -d myguest -i\n"
19142 #: ../fish/guestfish.pod:274
19143 msgid "(for active domains, readonly), or specify the block device directly:"
19147 #: ../fish/guestfish.pod:276
19150 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19153 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19157 #: ../fish/guestfish.pod:278
19159 "Note that the command line syntax changed slightly over older versions of "
19160 "guestfish. You can still use the old syntax:"
19164 #: ../fish/guestfish.pod:281
19167 " guestfish [--ro] -i disk.img\n"
19170 " guestfish [--ro] -i disk.img\n"
19174 #: ../fish/guestfish.pod:283
19177 " guestfish [--ro] -i libvirt-domain\n"
19182 #: ../fish/guestfish.pod:285
19184 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19185 "then using other commands to mount the filesystems that were found."
19189 #: ../fish/guestfish.pod:294
19190 msgid "B<--listen>"
19191 msgstr "B<--listen>"
19194 #: ../fish/guestfish.pod:296
19196 "Fork into the background and listen for remote commands. See section L</"
19197 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19201 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
19206 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
19208 "Connect to a live virtual machine. (Experimental, see L<guestfs(3)/"
19209 "ATTACHING TO RUNNING DAEMONS>)."
19213 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
19214 msgid "B<-m dev[:mountpoint[:options]]>"
19218 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
19219 msgid "B<--mount dev[:mountpoint[:options]]>"
19223 #: ../fish/guestfish.pod:308
19224 msgid "Mount the named partition or logical volume on the given mountpoint."
19228 #: ../fish/guestfish.pod:310
19229 msgid "If the mountpoint is omitted, it defaults to C</>."
19233 #: ../fish/guestfish.pod:312
19234 msgid "You have to mount something on C</> before most commands will work."
19238 #: ../fish/guestfish.pod:314
19240 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19245 #: ../fish/guestfish.pod:317
19247 "If you don't know what filesystems a disk image contains, you can either run "
19248 "guestfish without this option, then list the partitions, filesystems and LVs "
19249 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19250 "commands), or you can use the L<virt-filesystems(1)> program."
19254 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
19256 "The third (and rarely used) part of the mount parameter is the list of mount "
19257 "options used to mount the underlying filesystem. If this is not given, then "
19258 "the mount options are either the empty string or C<ro> (the latter if the "
19259 "I<--ro> flag is used). By specifying the mount options, you override this "
19260 "default choice. Probably the only time you would use this is to enable ACLs "
19261 "and/or extended attributes if the filesystem can support them:"
19265 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
19268 " -m /dev/sda1:/:acl,user_xattr\n"
19273 #: ../fish/guestfish.pod:333
19274 msgid "Using this flag is equivalent to using the C<mount-options> command."
19278 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
19279 #: ../resize/virt-resize.pod:358
19284 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
19285 msgid "B<--no-sync>"
19286 msgstr "B<--no-sync>"
19289 #: ../fish/guestfish.pod:339
19291 "Disable autosync. This is enabled by default. See the discussion of "
19292 "autosync in the L<guestfs(3)> manpage."
19296 #: ../fish/guestfish.pod:342
19301 #: ../fish/guestfish.pod:344
19302 msgid "B<--new type>"
19303 msgstr "B<--new тип>"
19306 #: ../fish/guestfish.pod:346
19308 msgstr "B<-N help>"
19311 #: ../fish/guestfish.pod:348
19313 "Prepare a fresh disk image formatted as \"type\". This is an alternative to "
19314 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19315 "preformatted disk with a filesystem and adds it. See L</PREPARED DISK "
19320 #: ../fish/guestfish.pod:353
19321 msgid "B<--progress-bars>"
19322 msgstr "B<--progress-bars>"
19325 #: ../fish/guestfish.pod:355
19326 msgid "Enable progress bars, even when guestfish is used non-interactively."
19330 #: ../fish/guestfish.pod:357
19332 "Progress bars are enabled by default when guestfish is used as an "
19333 "interactive shell."
19337 #: ../fish/guestfish.pod:360
19338 msgid "B<--no-progress-bars>"
19339 msgstr "B<--no-progress-bars>"
19342 #: ../fish/guestfish.pod:362
19343 msgid "Disable progress bars."
19347 #: ../fish/guestfish.pod:364
19348 msgid "B<--remote[=pid]>"
19349 msgstr "B<--remote[=pid]>"
19352 #: ../fish/guestfish.pod:366
19354 "Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE "
19355 "CONTROL GUESTFISH OVER A SOCKET> below."
19359 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
19360 #: ../rescue/virt-rescue.pod:161
19365 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
19366 #: ../rescue/virt-rescue.pod:163
19371 #: ../fish/guestfish.pod:373
19373 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19374 "mounts are done read-only."
19378 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
19380 "The option must always be used if the disk image or virtual machine might be "
19381 "running, and is generally recommended in cases where you don't need write "
19382 "access to the disk."
19386 #: ../fish/guestfish.pod:380
19388 "Note that prepared disk images created with I<-N> are not affected by this "
19389 "option. Also commands like C<add> are not affected - you have to specify "
19390 "the C<readonly:true> option explicitly if you need it."
19394 #: ../fish/guestfish.pod:384
19395 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19399 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
19400 #: ../rescue/virt-rescue.pod:173
19401 msgid "B<--selinux>"
19402 msgstr "B<--selinux>"
19405 #: ../fish/guestfish.pod:388
19406 msgid "Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>."
19410 #: ../fish/guestfish.pod:394
19412 "Enable very verbose messages. This is particularly useful if you find a bug."
19416 #: ../fish/guestfish.pod:401
19417 msgid "Display the guestfish / libguestfs version number and exit."
19421 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
19422 #: ../rescue/virt-rescue.pod:194
19427 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
19428 #: ../rescue/virt-rescue.pod:196
19433 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
19435 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19436 "mounts are done read-write."
19440 #: ../fish/guestfish.pod:410
19441 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19445 #: ../fish/guestfish.pod:414
19446 msgid "Echo each command before executing it."
19450 #: ../fish/guestfish.pod:418
19451 msgid "COMMANDS ON COMMAND LINE"
19455 #: ../fish/guestfish.pod:420
19457 "Any additional (non-option) arguments are treated as commands to execute."
19461 #: ../fish/guestfish.pod:423
19463 "Commands to execute should be separated by a colon (C<:>), where the colon "
19464 "is a separate parameter. Thus:"
19468 #: ../fish/guestfish.pod:426
19471 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19476 #: ../fish/guestfish.pod:428
19478 "If there are no additional arguments, then we enter a shell, either an "
19479 "interactive shell with a prompt (if the input is a terminal) or a non-"
19480 "interactive shell."
19484 #: ../fish/guestfish.pod:432
19486 "In either command line mode or non-interactive shell, the first command that "
19487 "gives an error causes the whole shell to exit. In interactive mode (with a "
19488 "prompt) if a command fails, you can continue to enter commands."
19492 #: ../fish/guestfish.pod:437
19493 msgid "USING launch (OR run)"
19497 #: ../fish/guestfish.pod:439
19499 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19500 "then launch it, then mount any disks you need, and finally issue actions/"
19501 "commands. So the general order of the day is:"
19505 #: ../fish/guestfish.pod:447
19506 msgid "add or -a/--add"
19510 #: ../fish/guestfish.pod:451
19511 msgid "launch (aka run)"
19515 #: ../fish/guestfish.pod:455
19516 msgid "mount or -m/--mount"
19520 #: ../fish/guestfish.pod:459
19521 msgid "any other commands"
19525 #: ../fish/guestfish.pod:463
19527 "C<run> is a synonym for C<launch>. You must C<launch> (or C<run>) your "
19528 "guest before mounting or performing any other commands."
19532 #: ../fish/guestfish.pod:466
19534 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19535 "I<--new> options were given then C<run> is done automatically, simply "
19536 "because guestfish can't perform the action you asked for without doing this."
19540 #: ../fish/guestfish.pod:471
19541 msgid "OPENING DISKS FOR READ AND WRITE"
19545 #: ../fish/guestfish.pod:473
19547 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19548 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19549 "I<-i> and I<-m> open disk images read-only or for writing."
19553 #: ../fish/guestfish.pod:478
19555 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19556 "opening disk images supplied on the command line for write. To open a disk "
19557 "image read-only you have to do I<-a image --ro>."
19561 #: ../fish/guestfish.pod:482
19563 "This matters: If you accidentally open a live VM disk image writable then "
19564 "you will cause irreversible disk corruption."
19568 #: ../fish/guestfish.pod:485
19570 "In a future libguestfs we intend to change the default the other way. Disk "
19571 "images will be opened read-only. You will have to either specify "
19572 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19573 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19574 "access for disk images specified by those other command line options."
19578 #: ../fish/guestfish.pod:492
19580 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19581 "which does nothing (it is already the default). However it is highly "
19582 "recommended that you use this option to indicate that you need write access, "
19583 "and prepare your scripts for the day when this option will be required for "
19588 #: ../fish/guestfish.pod:498
19590 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19591 "other libguestfs program apart from guestfish and guestmount."
19595 #: ../fish/guestfish.pod:501
19600 #: ../fish/guestfish.pod:503
19602 "You can quote ordinary parameters using either single or double quotes. For "
19607 #: ../fish/guestfish.pod:506
19610 " add \"file with a space.img\"\n"
19615 #: ../fish/guestfish.pod:508
19618 " rm '/file name'\n"
19623 #: ../fish/guestfish.pod:510
19631 #: ../fish/guestfish.pod:512
19633 "A few commands require a list of strings to be passed. For these, use a "
19634 "whitespace-separated list, enclosed in quotes. Strings containing "
19635 "whitespace to be passed through must be enclosed in single quotes. A "
19636 "literal single quote must be escaped with a backslash."
19640 #: ../fish/guestfish.pod:517
19643 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19644 " command \"/bin/echo 'foo bar'\"\n"
19645 " command \"/bin/echo \\'foo\\'\"\n"
19650 #: ../fish/guestfish.pod:521
19651 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19655 #: ../fish/guestfish.pod:523
19657 "In double-quoted arguments (only) use backslash to insert special characters:"
19661 #: ../fish/guestfish.pod:528
19666 #: ../fish/guestfish.pod:530
19667 msgid "Alert (bell) character."
19671 #: ../fish/guestfish.pod:532
19676 #: ../fish/guestfish.pod:534
19677 msgid "Backspace character."
19681 #: ../fish/guestfish.pod:536
19686 #: ../fish/guestfish.pod:538
19687 msgid "Form feed character."
19691 #: ../fish/guestfish.pod:540
19696 #: ../fish/guestfish.pod:542
19697 msgid "Newline character."
19701 #: ../fish/guestfish.pod:544
19706 #: ../fish/guestfish.pod:546
19707 msgid "Carriage return character."
19711 #: ../fish/guestfish.pod:548
19716 #: ../fish/guestfish.pod:550
19717 msgid "Horizontal tab character."
19721 #: ../fish/guestfish.pod:552
19726 #: ../fish/guestfish.pod:554
19727 msgid "Vertical tab character."
19731 #: ../fish/guestfish.pod:556
19736 #: ../fish/guestfish.pod:558
19737 msgid "A literal double quote character."
19741 #: ../fish/guestfish.pod:560
19746 #: ../fish/guestfish.pod:562
19748 "A character with octal value I<ooo>. There must be precisely 3 octal digits "
19753 #: ../fish/guestfish.pod:565
19758 #: ../fish/guestfish.pod:567
19760 "A character with hex value I<hh>. There must be precisely 2 hex digits."
19764 #: ../fish/guestfish.pod:570
19766 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19771 #: ../fish/guestfish.pod:573
19776 #: ../fish/guestfish.pod:575
19777 msgid "A literal backslash character."
19781 #: ../fish/guestfish.pod:579
19782 msgid "OPTIONAL ARGUMENTS"
19786 #: ../fish/guestfish.pod:581
19788 "Some commands take optional arguments. These arguments appear in this "
19789 "documentation as C<[argname:..]>. You can use them as in these examples:"
19793 #: ../fish/guestfish.pod:585
19796 " add-drive-opts filename\n"
19801 #: ../fish/guestfish.pod:587
19804 " add-drive-opts filename readonly:true\n"
19809 #: ../fish/guestfish.pod:589
19812 " add-drive-opts filename format:qcow2 readonly:false\n"
19817 #: ../fish/guestfish.pod:591
19819 "Each optional argument can appear at most once. All optional arguments must "
19820 "appear after the required ones."
19824 #: ../fish/guestfish.pod:594
19829 #: ../fish/guestfish.pod:596
19831 "This section applies to all commands which can take integers as parameters."
19835 #: ../fish/guestfish.pod:599
19836 msgid "SIZE SUFFIX"
19840 #: ../fish/guestfish.pod:601
19842 "When the command takes a parameter measured in bytes, you can use one of the "
19843 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19847 #: ../fish/guestfish.pod:607
19848 msgid "B<k> or B<K> or B<KiB>"
19849 msgstr "B<k>, B<K> або B<KiB>"
19852 #: ../fish/guestfish.pod:609
19853 msgid "The size in kilobytes (multiplied by 1024)."
19857 #: ../fish/guestfish.pod:611
19862 #: ../fish/guestfish.pod:613
19863 msgid "The size in SI 1000 byte units."
19867 #: ../fish/guestfish.pod:615
19868 msgid "B<M> or B<MiB>"
19869 msgstr "B<M> або B<MiB>"
19872 #: ../fish/guestfish.pod:617
19873 msgid "The size in megabytes (multiplied by 1048576)."
19877 #: ../fish/guestfish.pod:619
19882 #: ../fish/guestfish.pod:621
19883 msgid "The size in SI 1000000 byte units."
19887 #: ../fish/guestfish.pod:623
19888 msgid "B<G> or B<GiB>"
19889 msgstr "B<G> або B<GiB>"
19892 #: ../fish/guestfish.pod:625
19893 msgid "The size in gigabytes (multiplied by 2**30)."
19894 msgstr "Розмір у гігабайтах (з множником 2**30)."
19897 #: ../fish/guestfish.pod:627
19902 #: ../fish/guestfish.pod:629
19903 msgid "The size in SI 10**9 byte units."
19904 msgstr "Розмір у одиницях СІ: 10**9 байтів."
19907 #: ../fish/guestfish.pod:631
19908 msgid "B<T> or B<TiB>"
19909 msgstr "B<T> або B<TiB>"
19912 #: ../fish/guestfish.pod:633
19913 msgid "The size in terabytes (multiplied by 2**40)."
19914 msgstr "Розмір у терабайтах (з множником 2**40)."
19917 #: ../fish/guestfish.pod:635
19922 #: ../fish/guestfish.pod:637
19923 msgid "The size in SI 10**12 byte units."
19927 #: ../fish/guestfish.pod:639
19928 msgid "B<P> or B<PiB>"
19929 msgstr "B<P> або B<PiB>"
19932 #: ../fish/guestfish.pod:641
19933 msgid "The size in petabytes (multiplied by 2**50)."
19937 #: ../fish/guestfish.pod:643
19942 #: ../fish/guestfish.pod:645
19943 msgid "The size in SI 10**15 byte units."
19947 #: ../fish/guestfish.pod:647
19948 msgid "B<E> or B<EiB>"
19949 msgstr "B<E> або B<EiB>"
19952 #: ../fish/guestfish.pod:649
19953 msgid "The size in exabytes (multiplied by 2**60)."
19957 #: ../fish/guestfish.pod:651
19962 #: ../fish/guestfish.pod:653
19963 msgid "The size in SI 10**18 byte units."
19967 #: ../fish/guestfish.pod:655
19968 msgid "B<Z> or B<ZiB>"
19969 msgstr "B<Z> або B<ZiB>"
19972 #: ../fish/guestfish.pod:657
19973 msgid "The size in zettabytes (multiplied by 2**70)."
19977 #: ../fish/guestfish.pod:659
19982 #: ../fish/guestfish.pod:661
19983 msgid "The size in SI 10**21 byte units."
19987 #: ../fish/guestfish.pod:663
19988 msgid "B<Y> or B<YiB>"
19989 msgstr "B<Y> або B<YiB>"
19992 #: ../fish/guestfish.pod:665
19993 msgid "The size in yottabytes (multiplied by 2**80)."
19997 #: ../fish/guestfish.pod:667
20002 #: ../fish/guestfish.pod:669
20003 msgid "The size in SI 10**24 byte units."
20007 #: ../fish/guestfish.pod:675
20010 " truncate-size /file 1G\n"
20015 #: ../fish/guestfish.pod:677
20016 msgid "would truncate the file to 1 gigabyte."
20020 #: ../fish/guestfish.pod:679
20022 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
20023 "the parameter to L</memsize> is specified in megabytes already). Adding a "
20024 "suffix will probably not do what you expect."
20028 #: ../fish/guestfish.pod:683
20029 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20033 #: ../fish/guestfish.pod:685
20035 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20036 "octal number or C<0x> to prefix a hexadecimal number. For example:"
20040 #: ../fish/guestfish.pod:688
20043 " 1234 decimal number 1234\n"
20044 " 02322 octal number, equivalent to decimal 1234\n"
20045 " 0x4d2 hexadecimal number, equivalent to decimal 1234\n"
20050 #: ../fish/guestfish.pod:692
20052 "When using the C<chmod> command, you almost always want to specify an octal "
20053 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20054 "L<chmod(1)> program):"
20058 #: ../fish/guestfish.pod:696
20061 " chmod 0777 /public # OK\n"
20062 " chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.\n"
20067 #: ../fish/guestfish.pod:699
20069 "Commands that return numbers usually print them in decimal, but some "
20070 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20071 "octal, preceeded by C<0>)."
20075 #: ../fish/guestfish.pod:703
20076 msgid "WILDCARDS AND GLOBBING"
20080 #: ../fish/guestfish.pod:705
20082 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20083 "(globbing) by default. So for example the following will not do what you "
20088 #: ../fish/guestfish.pod:709
20096 #: ../fish/guestfish.pod:711
20098 "Assuming you don't have a directory called literally C</home/*> then the "
20099 "above command will return an error."
20103 #: ../fish/guestfish.pod:714
20104 msgid "To perform wildcard expansion, use the C<glob> command."
20108 #: ../fish/guestfish.pod:716
20111 " glob rm-rf /home/*\n"
20116 #: ../fish/guestfish.pod:718
20118 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20119 "many times), equivalent to:"
20123 #: ../fish/guestfish.pod:721
20126 " rm-rf /home/jim\n"
20127 " rm-rf /home/joe\n"
20128 " rm-rf /home/mary\n"
20133 #: ../fish/guestfish.pod:725
20134 msgid "C<glob> only works on simple guest paths and not on device names."
20138 #: ../fish/guestfish.pod:727
20140 "If you have several parameters, each containing a wildcard, then glob will "
20141 "perform a Cartesian product."
20145 #: ../fish/guestfish.pod:730
20150 #: ../fish/guestfish.pod:732
20152 "Any line which starts with a I<#> character is treated as a comment and "
20153 "ignored. The I<#> can optionally be preceeded by whitespace, but B<not> by "
20154 "a command. For example:"
20158 #: ../fish/guestfish.pod:736
20161 " # this is a comment\n"
20162 " # this is a comment\n"
20163 " foo # NOT a comment\n"
20168 #: ../fish/guestfish.pod:740
20169 msgid "Blank lines are also ignored."
20173 #: ../fish/guestfish.pod:742
20174 msgid "RUNNING COMMANDS LOCALLY"
20178 #: ../fish/guestfish.pod:744
20180 "Any line which starts with a I<!> character is treated as a command sent to "
20181 "the local shell (C</bin/sh> or whatever L<system(3)> uses). For example:"
20185 #: ../fish/guestfish.pod:748
20189 " tgz-out /remote local/remote-data.tar.gz\n"
20194 #: ../fish/guestfish.pod:751
20196 "will create a directory C<local> on the host, and then export the contents "
20197 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>. "
20198 "(See C<tgz-out>)."
20202 #: ../fish/guestfish.pod:755
20204 "To change the local directory, use the C<lcd> command. C<!cd> will have no "
20205 "effect, due to the way that subprocesses work in Unix."
20209 #: ../fish/guestfish.pod:758
20210 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20214 #: ../fish/guestfish.pod:760
20216 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20217 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20218 "and executed as guestfish commands."
20222 #: ../fish/guestfish.pod:764
20224 "Thus you can use shell script to construct arbitrary guestfish commands "
20225 "which are then parsed by guestfish."
20229 #: ../fish/guestfish.pod:767
20231 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20232 "through C</foo.100>) using guestfish commands alone. However this is simple "
20233 "if we use a shell script to create the guestfish commands for us:"
20237 #: ../fish/guestfish.pod:772
20240 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20245 #: ../fish/guestfish.pod:774
20246 msgid "or with names like C</foo.001>:"
20250 #: ../fish/guestfish.pod:776
20253 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20258 #: ../fish/guestfish.pod:778
20260 "When using guestfish interactively it can be helpful to just run the shell "
20261 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20262 "ordinary I<!> local command), see what guestfish commands it would run, and "
20263 "when you are happy with those prepend the C<E<lt>> character to run the "
20264 "guestfish commands for real."
20268 #: ../fish/guestfish.pod:784
20273 #: ../fish/guestfish.pod:786
20275 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20276 "command (a guestfish command) to the second command (any host command). For "
20281 #: ../fish/guestfish.pod:790
20284 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20289 #: ../fish/guestfish.pod:792
20291 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20292 "program). The above command would list all accounts in the guest filesystem "
20293 "which have UID 0, ie. root accounts including backdoors. Other examples:"
20297 #: ../fish/guestfish.pod:797
20300 " hexdump /bin/ls | head\n"
20301 " list-devices | tail -1\n"
20302 " tgz-out / - | tar ztf -\n"
20307 #: ../fish/guestfish.pod:801
20309 "The space before the pipe symbol is required, any space after the pipe "
20310 "symbol is optional. Everything after the pipe symbol is just passed "
20311 "straight to the host shell, so it can contain redirections, globs and "
20312 "anything else that makes sense on the host side."
20316 #: ../fish/guestfish.pod:806
20318 "To use a literal argument which begins with a pipe symbol, you have to quote "
20323 #: ../fish/guestfish.pod:809
20331 #: ../fish/guestfish.pod:811
20332 msgid "HOME DIRECTORIES"
20336 #: ../fish/guestfish.pod:813
20338 "If a parameter starts with the character C<~> then the tilde may be expanded "
20339 "as a home directory path (either C<~> for the current user's home directory, "
20340 "or C<~user> for another user)."
20344 #: ../fish/guestfish.pod:817
20346 "Note that home directory expansion happens for users known I<on the host>, "
20347 "not in the guest filesystem."
20351 #: ../fish/guestfish.pod:820
20353 "To use a literal argument which begins with a tilde, you have to quote it, "
20358 #: ../fish/guestfish.pod:823
20366 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
20367 msgid "ENCRYPTED DISKS"
20368 msgstr "ЗАШИФРОВАНІ ДИСКИ"
20371 #: ../fish/guestfish.pod:827
20373 "Libguestfs has some support for Linux guests encrypted according to the "
20374 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20375 "disk encryption systems used by modern Linux guests. Currently only LVM-on-"
20376 "LUKS is supported."
20380 #: ../fish/guestfish.pod:832
20381 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20385 #: ../fish/guestfish.pod:834
20388 " ><fs> vfs-type /dev/sda2\n"
20394 #: ../fish/guestfish.pod:837
20396 "Then open those devices using L</luks-open>. This creates a device-mapper "
20397 "device called C</dev/mapper/luksdev>."
20401 #: ../fish/guestfish.pod:840
20404 " ><fs> luks-open /dev/sda2 luksdev\n"
20405 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20410 #: ../fish/guestfish.pod:843
20412 "Finally you have to tell LVM to scan for volume groups on the newly created "
20417 #: ../fish/guestfish.pod:846
20421 " vg-activate-all true\n"
20426 #: ../fish/guestfish.pod:849
20427 msgid "The logical volume(s) can now be mounted in the usual way."
20431 #: ../fish/guestfish.pod:851
20433 "Before closing a LUKS device you must unmount any logical volumes on it and "
20434 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20435 "one. Then you can close the mapper device:"
20439 #: ../fish/guestfish.pod:855
20442 " vg-activate false /dev/VG\n"
20443 " luks-close /dev/mapper/luksdev\n"
20448 #: ../fish/guestfish.pod:860
20450 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20451 "letters and paths (with some limitations). The following commands are "
20456 #: ../fish/guestfish.pod:864
20459 " file /WINDOWS/system32/config/system.LOG\n"
20464 #: ../fish/guestfish.pod:866
20467 " file win:\\windows\\system32\\config\\system.log\n"
20472 #: ../fish/guestfish.pod:868
20475 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20480 #: ../fish/guestfish.pod:870
20482 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20483 "where the drive is mounted, prepending that to the path, changing all "
20484 "backslash characters to forward slash, then resolving the result using L</"
20485 "case-sensitive-path>. For example if the E: drive was mounted on C</e> then "
20486 "the parameter might be rewritten like this:"
20490 #: ../fish/guestfish.pod:876
20493 " win:e:\\foo\\bar => /e/FOO/bar\n"
20498 #: ../fish/guestfish.pod:878
20499 msgid "This only works in argument positions that expect a path."
20503 #: ../fish/guestfish.pod:880
20504 msgid "UPLOADING AND DOWNLOADING FILES"
20508 #: ../fish/guestfish.pod:882
20510 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20511 "others which upload from or download to a local file, you can use the "
20512 "special filename C<-> to mean \"from stdin\" or \"to stdout\". For example:"
20516 #: ../fish/guestfish.pod:886
20524 #: ../fish/guestfish.pod:888
20526 "reads stdin and creates from that a file C</foo> in the disk image, and:"
20530 #: ../fish/guestfish.pod:891
20533 " tar-out /etc - | tar tf -\n"
20538 #: ../fish/guestfish.pod:893
20540 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20541 "command (see L</PIPES>)."
20545 #: ../fish/guestfish.pod:896
20547 "When using C<-> to read from stdin, the input is read up to the end of "
20548 "stdin. You can also use a special \"heredoc\"-like syntax to read up to "
20549 "some arbitrary end marker:"
20553 #: ../fish/guestfish.pod:900
20556 " upload -<<END /foo\n"
20565 #: ../fish/guestfish.pod:906
20567 "Any string of characters can be used instead of C<END>. The end marker must "
20568 "appear on a line of its own, without any preceeding or following characters "
20569 "(not even spaces)."
20573 #: ../fish/guestfish.pod:910
20575 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20576 "upload local files (so-called \"FileIn\" parameters in the generator)."
20580 #: ../fish/guestfish.pod:913
20581 msgid "EXIT ON ERROR BEHAVIOUR"
20585 #: ../fish/guestfish.pod:915
20587 "By default, guestfish will ignore any errors when in interactive mode (ie. "
20588 "taking commands from a human over a tty), and will exit on the first error "
20589 "in non-interactive mode (scripts, commands given on the command line)."
20593 #: ../fish/guestfish.pod:920
20595 "If you prefix a command with a I<-> character, then that command will not "
20596 "cause guestfish to exit, even if that (one) command returns an error."
20600 #: ../fish/guestfish.pod:924
20601 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20605 #: ../fish/guestfish.pod:926
20607 "Guestfish can be remote-controlled over a socket. This is useful "
20608 "particularly in shell scripts where you want to make several different "
20609 "changes to a filesystem, but you don't want the overhead of starting up a "
20610 "guestfish process each time."
20614 #: ../fish/guestfish.pod:931
20615 msgid "Start a guestfish server process using:"
20619 #: ../fish/guestfish.pod:933
20622 " eval \"`guestfish --listen`\"\n"
20627 #: ../fish/guestfish.pod:935
20628 msgid "and then send it commands by doing:"
20632 #: ../fish/guestfish.pod:937
20635 " guestfish --remote cmd [...]\n"
20640 #: ../fish/guestfish.pod:939
20641 msgid "To cause the server to exit, send it the exit command:"
20645 #: ../fish/guestfish.pod:943
20647 "Note that the server will normally exit if there is an error in a command. "
20648 "You can change this in the usual way. See section L</EXIT ON ERROR "
20653 #: ../fish/guestfish.pod:947
20654 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20658 #: ../fish/guestfish.pod:949
20660 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20661 "is how the I<--remote> option knows where to send the commands. You can "
20662 "have several guestfish listener processes running using:"
20666 #: ../fish/guestfish.pod:953
20669 " eval \"`guestfish --listen`\"\n"
20670 " pid1=$GUESTFISH_PID\n"
20671 " eval \"`guestfish --listen`\"\n"
20672 " pid2=$GUESTFISH_PID\n"
20674 " guestfish --remote=$pid1 cmd\n"
20675 " guestfish --remote=$pid2 cmd\n"
20680 #: ../fish/guestfish.pod:961
20681 msgid "REMOTE CONTROL AND CSH"
20685 #: ../fish/guestfish.pod:963
20687 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20692 #: ../fish/guestfish.pod:966
20695 " eval \"`guestfish --listen --csh`\"\n"
20700 #: ../fish/guestfish.pod:968
20701 msgid "REMOTE CONTROL DETAILS"
20705 #: ../fish/guestfish.pod:970
20707 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
20708 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
20709 "and C<$PID> is the process ID of the server."
20713 #: ../fish/guestfish.pod:974
20714 msgid "Guestfish client and server versions must match exactly."
20718 #: ../fish/guestfish.pod:976
20719 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20723 #: ../fish/guestfish.pod:978
20725 "From Bash, you can use the following code which creates a guestfish "
20726 "instance, correctly quotes the command line, handles failure to start, and "
20727 "cleans up guestfish when the script exits:"
20731 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:965
20734 #| " #!/usr/bin/guestfish -f\n"
20740 " #!/usr/bin/guestfish -f\n"
20744 #: ../fish/guestfish.pod:986
20747 " guestfish[0]=\"guestfish\"\n"
20748 " guestfish[1]=\"--listen\"\n"
20749 " guestfish[2]=\"--ro\"\n"
20750 " guestfish[3]=\"-a\"\n"
20751 " guestfish[4]=\"disk.img\"\n"
20756 #: ../fish/guestfish.pod:992
20759 " GUESTFISH_PID=\n"
20760 " eval $(\"${guestfish[@]}\")\n"
20761 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20762 " echo \"error: guestfish didn't start up, see error messages above\"\n"
20769 #: ../fish/guestfish.pod:999
20772 " kill_guestfish ()\n"
20774 " kill $GUESTFISH_PID >/dev/null 2>&1 ||:\n"
20776 " trap kill_guestfish EXIT\n"
20781 #: ../fish/guestfish.pod:1005
20784 #| " guestfish --ro -d myguest -i\n"
20787 " guestfish --remote run\n"
20791 " guestfish --ro -d myguest -i\n"
20795 #: ../fish/guestfish.pod:1008
20796 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20800 #: ../fish/guestfish.pod:1010
20802 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20803 "context hangs, ie. don't do (note the backquotes):"
20807 #: ../fish/guestfish.pod:1013
20810 #| " guestfish --ro -d myguest -i\n"
20813 " a=`guestfish --remote run`\n"
20816 " guestfish --ro -d myguest -i\n"
20820 #: ../fish/guestfish.pod:1015
20822 "Since the C<run> command produces no output on stdout, this is not useful "
20823 "anyway. For further information see L<https://bugzilla.redhat.com/show_bug."
20828 #: ../fish/guestfish.pod:1019
20829 msgid "PREPARED DISK IMAGES"
20833 #: ../fish/guestfish.pod:1021
20835 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20836 "preformatted disk images that guestfish can make for you to save typing. "
20837 "This is particularly useful for testing purposes. This option is used "
20838 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20839 "can be mixed with I<-a>)."
20843 #: ../fish/guestfish.pod:1027
20845 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20846 "the second and so on. Existing files in the current directory are "
20851 #: ../fish/guestfish.pod:1031
20853 "The type briefly describes how the disk should be sized, partitioned, how "
20854 "filesystem(s) should be created, and how content should be added. "
20855 "Optionally the type can be followed by extra parameters, separated by C<:> "
20856 "(colon) characters. For example, I<-N fs> creates a default 100MB, sparsely-"
20857 "allocated disk, containing a single partition, with the partition formatted "
20858 "as ext2. I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
20863 #: ../fish/guestfish.pod:1039
20864 msgid "To list the available types and any extra parameters they take, run:"
20868 #: ../fish/guestfish.pod:1043
20870 "Note that the prepared filesystem is not mounted. You would usually have to "
20871 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20875 #: ../fish/guestfish.pod:1047
20877 "If any I<-N> or I<--new> options are given, the guest is automatically "
20882 #: ../fish/guestfish.pod:1052
20883 msgid "Create a 100MB disk with an ext4-formatted partition:"
20887 #: ../fish/guestfish.pod:1054
20890 " guestfish -N fs:ext4\n"
20895 #: ../fish/guestfish.pod:1056
20896 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20900 #: ../fish/guestfish.pod:1058
20903 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20908 #: ../fish/guestfish.pod:1060
20909 msgid "Create a blank 200MB disk:"
20913 #: ../fish/guestfish.pod:1062
20916 " guestfish -N disk:200M\n"
20921 #: ../fish/guestfish.pod:1064
20922 msgid "PROGRESS BARS"
20926 #: ../fish/guestfish.pod:1066
20928 "Some (not all) long-running commands send progress notification messages as "
20929 "they are running. Guestfish turns these messages into progress bars."
20933 #: ../fish/guestfish.pod:1070
20935 "When a command that supports progress bars takes longer than two seconds to "
20936 "run, and if progress bars are enabled, then you will see one appearing below "
20941 #: ../fish/guestfish.pod:1074
20944 " ><fs> copy-size /large-file /another-file 2048M\n"
20945 " / 10% [#####-----------------------------------------] 00:30\n"
20950 #: ../fish/guestfish.pod:1077
20952 "The spinner on the left hand side moves round once for every progress "
20953 "notification received from the backend. This is a (reasonably) golden "
20954 "assurance that the command is \"doing something\" even if the progress bar "
20955 "is not moving, because the command is able to send the progress "
20956 "notifications. When the bar reaches 100% and the command finishes, the "
20957 "spinner disappears."
20961 #: ../fish/guestfish.pod:1084
20963 "Progress bars are enabled by default when guestfish is used interactively. "
20964 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20965 "and you can disable them completely using I<--no-progress-bars>."
20969 #: ../fish/guestfish.pod:1089
20970 msgid "GUESTFISH COMMANDS"
20974 #: ../fish/guestfish.pod:1091
20976 "The commands in this section are guestfish convenience commands, in other "
20977 "words, they are not part of the L<guestfs(3)> API."
20981 #: ../fish/guestfish.pod:1094
20986 #: ../fish/guestfish.pod:1096
20998 #: ../fish/guestfish.pod:1099
20999 msgid "Without any parameter, this provides general help."
21000 msgstr "Без параметра показує загальну довідкову інформацію."
21003 #: ../fish/guestfish.pod:1101
21004 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21008 #: ../fish/guestfish.pod:1103
21009 msgid "quit | exit"
21013 #: ../fish/guestfish.pod:1105
21014 msgid "This exits guestfish. You can also use C<^D> key."
21018 #: ../fish/guestfish.pod:1107
21019 msgid "@FISH_COMMANDS@"
21023 #: ../fish/guestfish.pod:1109
21028 #: ../fish/guestfish.pod:1111 ../src/guestfs.pod:1505
21033 #: ../fish/guestfish.pod:1115
21035 "guestfish returns 0 if the commands completed without error, or 1 if there "
21040 #: ../fish/guestfish.pod:1122
21045 #: ../fish/guestfish.pod:1124
21047 "The C<edit> command uses C<$EDITOR> as the editor. If not set, it uses "
21052 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:3198
21053 msgid "FEBOOTSTRAP_KERNEL"
21057 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:3200
21058 msgid "FEBOOTSTRAP_MODULES"
21062 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:3202
21064 "These two environment variables allow the kernel that libguestfs uses in the "
21065 "appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
21066 "most recent host kernel is chosen. For more information about kernel "
21067 "selection, see L<febootstrap-supermin-helper(8)>. This feature is only "
21068 "available in febootstrap E<ge> 3.8."
21072 #: ../fish/guestfish.pod:1137
21073 msgid "GUESTFISH_DISPLAY_IMAGE"
21077 #: ../fish/guestfish.pod:1139
21079 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images. "
21080 "If not set, it uses L<display(1)>."
21084 #: ../fish/guestfish.pod:1142
21085 msgid "GUESTFISH_PID"
21089 #: ../fish/guestfish.pod:1144
21091 "Used with the I<--remote> option to specify the remote guestfish process to "
21092 "control. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21096 #: ../fish/guestfish.pod:1148
21101 #: ../fish/guestfish.pod:1150
21103 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor. If "
21104 "not specified, the external L<hexedit(1)> program is used."
21108 #: ../fish/guestfish.pod:1154
21113 #: ../fish/guestfish.pod:1156
21115 "If compiled with GNU readline support, various files in the home directory "
21116 "can be used. See L</FILES>."
21120 #: ../fish/guestfish.pod:1159 ../src/guestfs.pod:3208
21121 msgid "LIBGUESTFS_APPEND"
21125 #: ../fish/guestfish.pod:1161 ../src/guestfs.pod:3210
21126 msgid "Pass additional options to the guest kernel."
21130 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3212
21131 msgid "LIBGUESTFS_DEBUG"
21132 msgstr "LIBGUESTFS_DEBUG"
21135 #: ../fish/guestfish.pod:1165
21137 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
21138 "effect as using the B<-v> option."
21142 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3217
21143 msgid "LIBGUESTFS_MEMSIZE"
21144 msgstr "LIBGUESTFS_MEMSIZE"
21147 #: ../fish/guestfish.pod:1170 ../src/guestfs.pod:3219
21149 "Set the memory allocated to the qemu process, in megabytes. For example:"
21153 #: ../fish/guestfish.pod:1173 ../src/guestfs.pod:3222
21156 " LIBGUESTFS_MEMSIZE=700\n"
21159 " LIBGUESTFS_MEMSIZE=700\n"
21163 #: ../fish/guestfish.pod:1175 ../src/guestfs.pod:3224
21164 msgid "LIBGUESTFS_PATH"
21168 #: ../fish/guestfish.pod:1177
21170 "Set the path that guestfish uses to search for kernel and initrd.img. See "
21171 "the discussion of paths in L<guestfs(3)>."
21175 #: ../fish/guestfish.pod:1180 ../src/guestfs.pod:3229
21176 msgid "LIBGUESTFS_QEMU"
21180 #: ../fish/guestfish.pod:1182 ../src/guestfs.pod:3231
21182 "Set the default qemu binary that libguestfs uses. If not set, then the qemu "
21183 "which was found at compile time by the configure script is used."
21187 #: ../fish/guestfish.pod:1186 ../src/guestfs.pod:3237
21188 msgid "LIBGUESTFS_TRACE"
21192 #: ../fish/guestfish.pod:1188
21193 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21197 #: ../fish/guestfish.pod:1190
21199 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
21202 #: ../fish/guestfish.pod:1192
21204 "The C<more> command uses C<$PAGER> as the pager. If not set, it uses "
21209 #: ../fish/guestfish.pod:1195 ../sparsify/virt-sparsify.pod:236
21210 #: ../src/guestfs.pod:3242
21215 #: ../fish/guestfish.pod:1197 ../src/guestfs.pod:3244
21217 "Location of temporary directory, defaults to C</tmp> except for the cached "
21218 "supermin appliance which defaults to C</var/tmp>."
21222 #: ../fish/guestfish.pod:1200 ../src/guestfs.pod:3247
21224 "If libguestfs was compiled to use the supermin appliance then the real "
21225 "appliance is cached in this directory, shared between all handles belonging "
21226 "to the same EUID. You can use C<$TMPDIR> to configure another directory to "
21227 "use in case C</var/tmp> is not large enough."
21231 #: ../fish/guestfish.pod:1208 ../fuse/guestmount.pod:288
21232 #: ../rescue/virt-rescue.pod:273
21237 #: ../fish/guestfish.pod:1212 ../fuse/guestmount.pod:292
21238 #: ../rescue/virt-rescue.pod:277
21239 msgid "$HOME/.libguestfs-tools.rc"
21243 #: ../fish/guestfish.pod:1214 ../fuse/guestmount.pod:294
21244 #: ../rescue/virt-rescue.pod:279
21245 msgid "/etc/libguestfs-tools.conf"
21249 #: ../fish/guestfish.pod:1216 ../fuse/guestmount.pod:296
21250 #: ../rescue/virt-rescue.pod:281
21252 "This configuration file controls the default read-only or read-write mode "
21253 "(I<--ro> or I<--rw>)."
21257 #: ../fish/guestfish.pod:1219
21258 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21262 #: ../fish/guestfish.pod:1221
21263 msgid "$HOME/.guestfish"
21267 #: ../fish/guestfish.pod:1223
21269 "If compiled with GNU readline support, then the command history is saved in "
21274 #: ../fish/guestfish.pod:1226
21275 msgid "$HOME/.inputrc"
21279 #: ../fish/guestfish.pod:1228
21280 msgid "/etc/inputrc"
21284 #: ../fish/guestfish.pod:1230
21286 "If compiled with GNU readline support, then these files can be used to "
21287 "configure readline. For further information, please see L<readline(3)/"
21288 "INITIALIZATION FILE>."
21292 #: ../fish/guestfish.pod:1234
21293 msgid "To write rules which only apply to guestfish, use:"
21297 #: ../fish/guestfish.pod:1236
21307 #: ../fish/guestfish.pod:1240
21309 "Variables that you can set in inputrc that change the behaviour of guestfish "
21310 "in useful ways include:"
21314 #: ../fish/guestfish.pod:1245
21315 msgid "completion-ignore-case (default: on)"
21319 #: ../fish/guestfish.pod:1247
21321 "By default, guestfish will ignore case when tab-completing paths on the "
21326 #: ../fish/guestfish.pod:1250
21329 " set completion-ignore-case off\n"
21334 #: ../fish/guestfish.pod:1252
21335 msgid "to make guestfish case sensitive."
21339 #: ../fish/guestfish.pod:1256
21344 #: ../fish/guestfish.pod:1258
21345 msgid "test2.img (etc)"
21349 #: ../fish/guestfish.pod:1260
21351 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21352 "will be created in the file C<test1.img> in the current directory. The "
21353 "second use of I<-N> will use C<test2.img> and so on. Any existing file with "
21354 "the same name will be overwritten."
21358 #: ../fish/guestfish.pod:1269
21360 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
21361 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
21362 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
21363 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
21364 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
21365 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
21366 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
21370 #: ../fish/guestfish.pod:1301 ../src/guestfs.pod:3339
21371 #: ../test-tool/libguestfs-test-tool.pod:112
21372 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
21376 #: ../fish/virt-copy-in.pod:5
21378 "virt-copy-in - Copy files and directories into a virtual machine disk image."
21382 #: ../fish/virt-copy-in.pod:9
21385 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21390 #: ../fish/virt-copy-in.pod:11
21393 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21398 #: ../fish/virt-copy-in.pod:15
21400 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21401 "causing disk corruption. The virtual machine must be shut down before you "
21402 "use this command."
21406 #: ../fish/virt-copy-in.pod:21
21408 "C<virt-copy-in> copies files and directories from the local disk into a "
21409 "virtual machine disk image or named libvirt domain."
21413 #: ../fish/virt-copy-in.pod:24
21415 "You can give one of more filenames and directories on the command line. "
21416 "Directories are copied in recursively. The final parameter must be the "
21417 "destination directory in the disk image which must be an absolute path "
21418 "starting with a C</> character."
21422 #: ../fish/virt-copy-in.pod:33
21425 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21430 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21431 msgid "Upload a home directory to a guest:"
21435 #: ../fish/virt-copy-in.pod:37
21438 " virt-copy-in -d MyGuest skel /home\n"
21443 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
21444 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21445 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21449 #: ../fish/virt-copy-in.pod:41
21451 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21452 "> C<copy-in> command. For anything more complex than a trivial copy, you "
21453 "are probably better off using guestfish directly."
21457 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
21458 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21460 "Since the shell script just passes options straight to guestfish, read "
21461 "L<guestfish(1)> to see the full list of options."
21465 #: ../fish/virt-copy-in.pod:52
21468 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
21469 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
21470 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
21471 #| "libguestfs.org/>."
21473 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21474 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21476 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
21477 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
21478 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
21482 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
21483 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21485 #| msgid "Copyright (C) 2009 Red Hat Inc."
21486 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
21487 msgstr "© Red Hat Inc., 2009"
21490 #: ../fish/virt-copy-out.pod:5
21492 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21497 #: ../fish/virt-copy-out.pod:9
21500 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21505 #: ../fish/virt-copy-out.pod:11
21508 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21513 #: ../fish/virt-copy-out.pod:15
21515 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21516 "image or named libvirt domain."
21520 #: ../fish/virt-copy-out.pod:18
21522 "You can give one of more filenames and directories on the command line. "
21523 "Directories are copied out recursively."
21527 #: ../fish/virt-copy-out.pod:23
21528 msgid "Download the home directories from a virtual machine:"
21532 #: ../fish/virt-copy-out.pod:25
21536 " virt-copy-out -d MyGuest /home homes\n"
21541 #: ../fish/virt-copy-out.pod:30
21543 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21544 "> C<copy-out> command. For anything more complex than a trivial copy, you "
21545 "are probably better off using guestfish directly."
21549 #: ../fish/virt-copy-out.pod:41
21552 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
21553 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
21554 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
21555 #| "libguestfs.org/>."
21557 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
21558 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21560 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
21561 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
21562 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
21566 #: ../fish/virt-tar-in.pod:5
21567 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21571 #: ../fish/virt-tar-in.pod:9
21574 " virt-tar-in -a disk.img data.tar /destination\n"
21579 #: ../fish/virt-tar-in.pod:11
21582 " virt-tar-in -d domain data.tar /destination\n"
21587 #: ../fish/virt-tar-in.pod:13
21590 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21595 #: ../fish/virt-tar-in.pod:17
21597 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21598 "causing disk corruption. The virtual machine must be shut down before you "
21599 "use this command."
21603 #: ../fish/virt-tar-in.pod:23
21605 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21606 "image or named libvirt domain."
21610 #: ../fish/virt-tar-in.pod:26
21612 "The first parameter is the tar file. Use C<-> to read the tar file from "
21613 "standard input. The second parameter is the absolute target directory to "
21618 #: ../fish/virt-tar-in.pod:34
21621 " virt-tar-in -d MyGuest homes.tar /home\n"
21626 #: ../fish/virt-tar-in.pod:38
21628 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21629 "> C<tar-in> command. For anything more complex than a trivial copy, you are "
21630 "probably better off using guestfish directly."
21634 #: ../fish/virt-tar-in.pod:49
21637 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
21638 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
21639 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
21640 #| "libguestfs.org/>."
21642 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21643 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
21646 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
21647 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
21648 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
21652 #: ../fish/virt-tar-out.pod:5
21654 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21658 #: ../fish/virt-tar-out.pod:9
21661 " virt-tar-out -a disk.img /dir files.tar\n"
21666 #: ../fish/virt-tar-out.pod:11
21669 " virt-tar-out -d domain /dir files.tar\n"
21674 #: ../fish/virt-tar-out.pod:13
21677 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21682 #: ../fish/virt-tar-out.pod:17
21684 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21688 #: ../fish/virt-tar-out.pod:20
21690 "The first parameter is the absolute path of the virtual machine directory. "
21691 "The second parameter is the tar file to write. Use C<-> to write to "
21696 #: ../fish/virt-tar-out.pod:26
21697 msgid "Download the home directories from a guest:"
21701 #: ../fish/virt-tar-out.pod:28
21704 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21709 #: ../fish/virt-tar-out.pod:32
21711 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21712 "> C<tar-out> command. For anything more complex than a trivial copy, you "
21713 "are probably better off using guestfish directly."
21717 #: ../fish/virt-tar-out.pod:43
21720 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
21721 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
21722 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
21723 #| "libguestfs.org/>."
21725 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21726 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21728 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
21729 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
21730 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
21734 #: ../fuse/guestmount.pod:5
21736 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21740 #: ../fuse/guestmount.pod:9
21743 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21748 #: ../fuse/guestmount.pod:11
21751 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21756 #: ../fuse/guestmount.pod:13
21759 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21764 #: ../fuse/guestmount.pod:17
21766 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21767 "machines. If you do this, you risk disk corruption in the VM."
21771 #: ../fuse/guestmount.pod:22
21773 "The guestmount program can be used to mount virtual machine filesystems and "
21774 "other disk images on the host. It uses libguestfs for access to the guest "
21775 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21776 "a mountable device."
21780 #: ../fuse/guestmount.pod:27
21782 "Along with other options, you have to give at least one device (I<-a> "
21783 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21784 "option) or use the I<-i> inspection option. How this works is better "
21785 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
21790 #: ../fuse/guestmount.pod:33
21792 "FUSE lets you mount filesystems as non-root. The mountpoint must be owned "
21793 "by you, and the filesystem will not be visible to any other users unless you "
21794 "make certain global configuration changes to C</etc/fuse.conf>. To unmount "
21795 "the filesystem, use the C<fusermount -u> command."
21799 #: ../fuse/guestmount.pod:41
21801 "For a typical Windows guest which has its main filesystem on the first "
21806 #: ../fuse/guestmount.pod:44
21809 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21814 #: ../fuse/guestmount.pod:46
21816 "For a typical Linux guest which has a /boot filesystem on the first "
21817 "partition, and the root filesystem on a logical volume:"
21821 #: ../fuse/guestmount.pod:49
21824 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21829 #: ../fuse/guestmount.pod:51
21830 msgid "To get libguestfs to detect guest mountpoints for you:"
21834 #: ../fuse/guestmount.pod:53
21837 " guestmount -a guest.img -i --ro /mnt\n"
21842 #: ../fuse/guestmount.pod:55
21843 msgid "For a libvirt guest called \"Guest\" you could do:"
21847 #: ../fuse/guestmount.pod:57
21850 " guestmount -d Guest -i --ro /mnt\n"
21855 #: ../fuse/guestmount.pod:59
21857 "If you don't know what filesystems are contained in a guest or disk image, "
21858 "use L<virt-filesystems(1)> first:"
21862 #: ../fuse/guestmount.pod:62
21865 " virt-filesystems MyGuest\n"
21870 #: ../fuse/guestmount.pod:64
21872 "If you want to trace the libguestfs calls but without excessive debugging "
21873 "information, we recommend:"
21877 #: ../fuse/guestmount.pod:67
21880 " guestmount [...] --trace /mnt\n"
21885 #: ../fuse/guestmount.pod:69
21886 msgid "If you want to debug the program, we recommend:"
21890 #: ../fuse/guestmount.pod:71
21893 " guestmount [...] --trace --verbose /mnt\n"
21898 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
21899 #: ../resize/virt-resize.pod:544
21904 #: ../fuse/guestmount.pod:75
21905 msgid "Other users cannot see the filesystem by default"
21909 #: ../fuse/guestmount.pod:77
21911 "If you mount a filesystem as one user (eg. root), then other users will not "
21912 "be able to see it by default. The fix is to add the FUSE C<allow_other> "
21913 "option when mounting:"
21917 #: ../fuse/guestmount.pod:81
21920 " sudo guestmount [...] -o allow_other /mnt\n"
21925 #: ../fuse/guestmount.pod:91
21926 msgid "Add a block device or virtual machine image."
21930 #: ../fuse/guestmount.pod:114
21931 msgid "B<--dir-cache-timeout N>"
21932 msgstr "B<--dir-cache-timeout N>"
21935 #: ../fuse/guestmount.pod:116
21937 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21938 "seconds. The readdir cache [actually, there are several semi-independent "
21939 "caches] is populated after a readdir(2) call with the stat and extended "
21940 "attributes of the files in the directory, in anticipation that they will be "
21941 "requested soon after."
21945 #: ../fuse/guestmount.pod:122
21947 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21948 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21949 "requests, only cache existing ones."
21953 #: ../fuse/guestmount.pod:142
21955 "If you have untrusted raw-format guest disk images, you should use this "
21956 "option to specify the disk format. This avoids a possible security problem "
21957 "with malicious guests (CVE-2010-3851). See also L<guestfs(3)/"
21958 "guestfs_add_drive_opts>."
21962 #: ../fuse/guestmount.pod:147
21963 msgid "B<--fuse-help>"
21964 msgstr "B<--fuse-help>"
21967 #: ../fuse/guestmount.pod:149
21968 msgid "Display help on special FUSE options (see I<-o> below)."
21972 #: ../fuse/guestmount.pod:153
21973 msgid "Display brief help and exit."
21977 #: ../fuse/guestmount.pod:177
21979 "Mount the named partition or logical volume on the given mountpoint B<in the "
21980 "guest> (this has nothing to do with mountpoints in the host)."
21984 #: ../fuse/guestmount.pod:180
21986 "If the mountpoint is omitted, it defaults to C</>. You have to mount "
21987 "something on C</>."
21991 #: ../fuse/guestmount.pod:197
21993 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21994 "unmounted. If you specify this option, then we don't attempt to sync the "
21995 "disk. See the discussion of autosync in the L<guestfs(3)> manpage."
21999 #: ../fuse/guestmount.pod:202
22001 #| msgid "B<--partition>"
22002 msgid "B<-o option>"
22003 msgstr "B<--partition>"
22006 #: ../fuse/guestmount.pod:204
22008 #| msgid "B<--partition>"
22009 msgid "B<--option option>"
22010 msgstr "B<--partition>"
22013 #: ../fuse/guestmount.pod:206
22014 msgid "Pass extra options to FUSE."
22018 #: ../fuse/guestmount.pod:208
22020 "To get a list of all the extra options supported by FUSE, use the command "
22021 "below. Note that only the FUSE I<-o> options can be passed, and only some "
22022 "of them are a good idea."
22026 #: ../fuse/guestmount.pod:212
22029 " guestmount --fuse-help\n"
22034 #: ../fuse/guestmount.pod:214
22035 msgid "Some potentially useful FUSE options:"
22039 #: ../fuse/guestmount.pod:218
22040 msgid "B<-o allow_other>"
22044 #: ../fuse/guestmount.pod:220
22045 msgid "Allow other users to see the filesystem."
22049 #: ../fuse/guestmount.pod:222
22050 msgid "B<-o attr_timeout=N>"
22051 msgstr "B<-o attr_timeout=N>"
22054 #: ../fuse/guestmount.pod:224
22055 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22059 #: ../fuse/guestmount.pod:226
22060 msgid "B<-o kernel_cache>"
22064 #: ../fuse/guestmount.pod:228
22066 "Allow the kernel to cache files (reduces the number of reads that have to go "
22067 "through the L<guestfs(3)> API). This is generally a good idea if you can "
22068 "afford the extra memory usage."
22072 #: ../fuse/guestmount.pod:232
22073 msgid "B<-o uid=N> B<-o gid=N>"
22077 #: ../fuse/guestmount.pod:234
22079 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22080 "the chosen values."
22084 #: ../fuse/guestmount.pod:243
22086 "Add devices and mount everything read-only. Also disallow writes and make "
22087 "the disk appear read-only to FUSE."
22091 #: ../fuse/guestmount.pod:246
22093 "This is highly recommended if you are not going to edit the guest disk. If "
22094 "the guest is running and this option is I<not> supplied, then there is a "
22095 "strong risk of disk corruption in the guest. We try to prevent this from "
22096 "happening, but it is not always possible."
22100 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
22101 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22105 #: ../fuse/guestmount.pod:255
22106 msgid "Enable SELinux support for the guest."
22110 #: ../fuse/guestmount.pod:261
22111 msgid "Enable verbose messages from underlying libguestfs."
22115 #: ../fuse/guestmount.pod:267
22116 msgid "Display the program version and exit."
22120 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
22121 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
22122 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22126 #: ../fuse/guestmount.pod:280
22133 #: ../fuse/guestmount.pod:282
22134 msgid "Trace libguestfs calls and entry into each FUSE function."
22138 #: ../fuse/guestmount.pod:284
22139 msgid "This also stops the daemon from forking into the background."
22143 #: ../fuse/guestmount.pod:310
22145 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22146 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22151 #: ../fuse/guestmount.pod:325
22152 msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
22156 #: ../inspector/virt-inspector.pod:5
22158 "virt-inspector - Display operating system version and other information "
22159 "about a virtual machine"
22163 #: ../inspector/virt-inspector.pod:9
22166 #| " virt-list-partitions [--options] domname\n"
22169 " virt-inspector [--options] -d domname\n"
22172 " virt-list-partitions [--параметри] назва_домену\n"
22176 #: ../inspector/virt-inspector.pod:11
22179 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
22182 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
22185 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
22189 #: ../inspector/virt-inspector.pod:15
22192 #| " virt-list-partitions [--options] domname\n"
22195 " virt-inspector domname\n"
22198 " virt-list-partitions [--параметри] назва_домену\n"
22202 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
22205 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
22208 " virt-inspector disk.img [disk.img ...]\n"
22211 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
22215 #: ../inspector/virt-inspector.pod:21
22217 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22218 "determine the version of the operating system and other information about "
22219 "the virtual machine."
22223 #: ../inspector/virt-inspector.pod:25
22224 msgid "Virt-inspector produces XML output for feeding into other programs."
22228 #: ../inspector/virt-inspector.pod:27
22230 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22231 "the libvirt domain (see: C<virsh list --all>)."
22235 #: ../inspector/virt-inspector.pod:30
22237 "You can also run virt-inspector directly on disk images from a single "
22238 "virtual machine. Use C<virt-inspector -a disk.img>. In rare cases a domain "
22239 "has several block devices, in which case you should list several I<-a> "
22240 "options one after another, with the first corresponding to the guest's C</"
22241 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
22245 #: ../inspector/virt-inspector.pod:37
22247 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22248 "keys and similar."
22252 #: ../inspector/virt-inspector.pod:40
22254 "Virt-inspector can only inspect and report upon I<one domain at a time>. To "
22255 "inspect several virtual machines, you have to run virt-inspector several "
22256 "times (for example, from a shell script for-loop)."
22260 #: ../inspector/virt-inspector.pod:45
22262 "Because virt-inspector needs direct access to guest images, it won't "
22263 "normally work over remote libvirt connections."
22267 #: ../inspector/virt-inspector.pod:48
22269 "All of the information available from virt-inspector is also available "
22270 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>). "
22271 "The same information can also be fetched using guestfish or via libguestfs "
22272 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22273 "WITH OTHER PROGRAMMING LANGUAGES>)."
22277 #: ../inspector/virt-inspector.pod:81
22279 "Libvirt is only used if you specify a C<domname> on the command line. If "
22280 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22285 #: ../inspector/virt-inspector.pod:94
22287 "When prompting for keys and passphrases, virt-inspector normally turns "
22288 "echoing off so you cannot see what you are typing. If you are not worried "
22289 "about Tempest attacks and there is no one else in the room you can specify "
22290 "this flag to see what you are typing."
22294 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
22295 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
22296 #: ../tools/virt-win-reg.pl:144
22298 "Specify the format of disk images given on the command line. If this is "
22299 "omitted then the format is autodetected from the content of the disk image."
22303 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
22304 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
22305 #: ../tools/virt-win-reg.pl:148
22307 "If disk images are requested from libvirt, then this program asks libvirt "
22308 "for this information. In this case, the value of the format parameter is "
22313 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
22314 #: ../resize/virt-resize.pod:406 ../sparsify/virt-sparsify.pod:132
22315 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
22316 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22318 "If working with untrusted raw-format guest disk images, you should ensure "
22319 "the format is always specified."
22323 #: ../inspector/virt-inspector.pod:139
22324 msgid "Previous versions of virt-inspector allowed you to write either:"
22328 #: ../inspector/virt-inspector.pod:145
22331 #| " inspect-get-hostname root\n"
22334 " virt-inspector guestname\n"
22337 " inspect-get-hostname корінь\n"
22341 #: ../inspector/virt-inspector.pod:153
22346 #: ../inspector/virt-inspector.pod:155
22348 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22349 "C<virt-inspector.rng> which is supplied with libguestfs. This section is "
22350 "just an overview."
22354 #: ../inspector/virt-inspector.pod:159
22356 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22357 "more E<lt>operatingsystemE<gt> elements. You would only see more than one "
22358 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22359 "which is vanishingly rare in real world VMs."
22363 #: ../inspector/virt-inspector.pod:164
22364 msgid "E<lt>operatingsystemE<gt>"
22368 #: ../inspector/virt-inspector.pod:166
22370 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22371 "describe the operating system, its architecture, the descriptive \"product "
22372 "name\" string, the type of OS and so on, as in this example:"
22376 #: ../inspector/virt-inspector.pod:170
22379 " <operatingsystems>\n"
22380 " <operatingsystem>\n"
22381 " <root>/dev/sda2</root>\n"
22382 " <name>windows</name>\n"
22383 " <arch>i386</arch>\n"
22384 " <distro>windows</distro>\n"
22385 " <product_name>Windows 7 Enterprise</product_name>\n"
22386 " <product_variant>Client</product_variant>\n"
22387 " <major_version>6</major_version>\n"
22388 " <minor_version>1</minor_version>\n"
22389 " <windows_systemroot>/Windows</windows_systemroot>\n"
22390 " <format>installed</format>\n"
22395 #: ../inspector/virt-inspector.pod:183
22397 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22398 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22399 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22400 "architecture. The other fields are fairly self-explanatory, but because "
22401 "these fields are taken directly from the libguestfs inspection API you can "
22402 "find precise information from L<guestfs(3)/INSPECTION>."
22406 #: ../inspector/virt-inspector.pod:191
22408 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22409 "of view of libguestfs (block devices may have completely different names "
22410 "inside the VM itself)."
22414 #: ../inspector/virt-inspector.pod:195
22416 #| msgid "mountpoints"
22417 msgid "E<lt>mountpointsE<gt>"
22418 msgstr "mountpoints"
22421 #: ../inspector/virt-inspector.pod:197
22423 "Un*x-like guests typically have multiple filesystems which are mounted at "
22424 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22425 "element which looks like this:"
22429 #: ../inspector/virt-inspector.pod:201
22432 " <operatingsystems>\n"
22433 " <operatingsystem>\n"
22436 " <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22437 " <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22438 " </mountpoints>\n"
22443 #: ../inspector/virt-inspector.pod:209
22445 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22446 "and may have completely different names inside the guest. Only mountable "
22447 "filesystems appear in this list, not things like swap devices."
22451 #: ../inspector/virt-inspector.pod:214
22453 #| msgid "list-filesystems"
22454 msgid "E<lt>filesystemsE<gt>"
22455 msgstr "list-filesystems"
22458 #: ../inspector/virt-inspector.pod:216
22460 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22461 "filesystems belonging to the guest, including swap and empty partitions. "
22462 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22463 "this OS or shared with this OS and other OSes)."
22467 #: ../inspector/virt-inspector.pod:222
22468 msgid "You might see something like this:"
22472 #: ../inspector/virt-inspector.pod:224
22475 " <operatingsystems>\n"
22476 " <operatingsystem>\n"
22479 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22480 " <type>ext4</type>\n"
22481 " <label>Fedora-13-x86_64</label>\n"
22482 " <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22488 #: ../inspector/virt-inspector.pod:234
22490 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22491 "the label, and the UUID."
22495 #: ../inspector/virt-inspector.pod:237
22496 msgid "E<lt>applicationsE<gt>"
22500 #: ../inspector/virt-inspector.pod:239
22502 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22503 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22508 #: ../inspector/virt-inspector.pod:243
22510 "E<lt>package_formatE<gt>, if present, describes the packaging system used. "
22511 "Typical values would be C<rpm> and C<deb>."
22515 #: ../inspector/virt-inspector.pod:246
22517 "E<lt>package_managementE<gt>, if present, describes the package manager. "
22518 "Typical values include C<yum>, C<up2date> and C<apt>"
22522 #: ../inspector/virt-inspector.pod:249
22523 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22527 #: ../inspector/virt-inspector.pod:252
22530 " <operatingsystems>\n"
22531 " <operatingsystem>\n"
22533 " <applications>\n"
22535 " <name>coreutils</name>\n"
22536 " <version>8.5</version>\n"
22537 " <release>1</release>\n"
22538 " </application>\n"
22543 #: ../inspector/virt-inspector.pod:262
22545 "The version and release fields may not be available for some types guests. "
22546 "Other fields are possible, see L<guestfs(3)/"
22547 "guestfs_inspect_list_applications>."
22551 #: ../inspector/virt-inspector.pod:266
22552 msgid "E<lt>drive_mappingsE<gt>"
22556 #: ../inspector/virt-inspector.pod:268
22558 "For operating systems like Windows which use drive letters, virt-inspector "
22559 "is able to find out how drive letters map to filesystems."
22563 #: ../inspector/virt-inspector.pod:272
22566 " <operatingsystems>\n"
22567 " <operatingsystem>\n"
22569 " <drive_mappings>\n"
22570 " <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22571 " <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22572 " </drive_mappings>\n"
22577 #: ../inspector/virt-inspector.pod:280
22579 "In the example above, drive C maps to the filesystem on the second partition "
22580 "on the first disk, and drive E maps to the filesystem on the first partition "
22581 "on the second disk."
22585 #: ../inspector/virt-inspector.pod:284
22587 "Note that this only covers permanent local filesystem mappings, not things "
22588 "like network shares. Furthermore NTFS volume mount points may not be listed "
22593 #: ../inspector/virt-inspector.pod:288
22595 #| msgid "B<-s E<lt>NE<gt>>"
22596 msgid "E<lt>iconE<gt>"
22597 msgstr "B<-s E<lt>NE<gt>>"
22600 #: ../inspector/virt-inspector.pod:290
22602 "Virt-inspector is sometimes able to extract an icon or logo for the guest. "
22603 "The icon is returned as base64-encoded PNG data. Note that the icon can be "
22604 "very large and high quality."
22608 #: ../inspector/virt-inspector.pod:294
22611 " <operatingsystems>\n"
22612 " <operatingsystem>\n"
22615 " iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22616 " [... many lines of base64 data ...]\n"
22622 #: ../inspector/virt-inspector.pod:302
22624 "To display the icon, you have to extract it and convert the base64 data back "
22625 "to a binary file. Use an XPath query or simply an editor to extract the "
22626 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22631 #: ../inspector/virt-inspector.pod:307
22634 " base64 -i -d < icon.data > icon.png\n"
22639 #: ../inspector/virt-inspector.pod:309
22640 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22644 #: ../inspector/virt-inspector.pod:311
22646 "Virt-inspector can detect some operating system installers on install disks, "
22647 "live CDs, bootable USB keys and more."
22651 #: ../inspector/virt-inspector.pod:314
22653 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22654 "fields may be present to indicate a live CD, network installer, or one part "
22655 "of a multipart CD. For example:"
22659 #: ../inspector/virt-inspector.pod:318
22662 " <operatingsystems>\n"
22663 " <operatingsystem>\n"
22664 " <root>/dev/sda</root>\n"
22665 " <name>linux</name>\n"
22666 " <arch>i386</arch>\n"
22667 " <distro>ubuntu</distro>\n"
22668 " <product_name>Ubuntu 10.10 "Maverick Meerkat"</product_name>\n"
22669 " <major_version>10</major_version>\n"
22670 " <minor_version>10</minor_version>\n"
22671 " <format>installer</format>\n"
22677 #: ../inspector/virt-inspector.pod:330
22678 msgid "USING XPATH"
22682 #: ../inspector/virt-inspector.pod:332
22684 "You can use the XPath query language to select parts of the XML. We "
22685 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
22689 #: ../inspector/virt-inspector.pod:338
22692 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
22694 " <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22695 " <type>ext4</type>\n"
22701 #: ../inspector/virt-inspector.pod:344
22704 " $ virt-inspector -d Guest | \\\n"
22705 " xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22711 #: ../inspector/virt-inspector.pod:348
22714 " $ virt-inspector -d Guest | \\\n"
22715 " xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
22716 " [displays the guest icon, if there is one]\n"
22721 #: ../inspector/virt-inspector.pod:359
22722 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22726 #: ../inspector/virt-inspector.pod:361
22728 "Early versions of libguestfs shipped with a different virt-inspector program "
22729 "written in Perl (the current version is written in C). The XML output of "
22730 "the Perl virt-inspector was different and it could also output in other "
22731 "formats like text."
22735 #: ../inspector/virt-inspector.pod:366
22737 "The old virt-inspector is no longer supported or shipped with libguestfs."
22741 #: ../inspector/virt-inspector.pod:369
22743 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22744 "versions of virt-inspector with different names:"
22748 #: ../inspector/virt-inspector.pod:372
22751 " virt-inspector Old Perl version.\n"
22752 " virt-inspector2 New C version.\n"
22757 #: ../inspector/virt-inspector.pod:382
22760 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22761 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22762 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22764 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
22765 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22767 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22768 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22769 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22772 #: ../inspector/virt-inspector.pod:399
22773 msgid "Matthew Booth L<mbooth@redhat.com>"
22777 #: ../java/examples/guestfs-java.pod:5
22778 msgid "guestfs-java - How to use libguestfs from Java"
22782 #: ../java/examples/guestfs-java.pod:9
22785 " import com.redhat.et.libguestfs.*;\n"
22790 #: ../java/examples/guestfs-java.pod:11
22793 " GuestFS g = new GuestFS ();\n"
22794 " g.add_drive_opts (\"disk.img\", null);\n"
22800 #: ../java/examples/guestfs-java.pod:17
22802 "This manual page documents how to call libguestfs from the Java programming "
22803 "language. This page just documents the differences from the C API and gives "
22804 "some examples. If you are not familiar with using libguestfs, you also need "
22805 "to read L<guestfs(3)>."
22809 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22810 msgid "CLOSING THE HANDLE"
22814 #: ../java/examples/guestfs-java.pod:24
22816 "The handle is closed when it is reaped by the garbage collector. Because "
22817 "libguestfs handles include a lot of state, it is also possible to close (and "
22818 "hence free) them explicitly by calling the C<close> method."
22822 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
22823 #: ../python/examples/guestfs-python.pod:21
22824 #: ../ruby/examples/guestfs-ruby.pod:22
22831 #: ../java/examples/guestfs-java.pod:31
22833 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22834 "exception. This has a single parameter which is the error message (a "
22839 #: ../java/examples/guestfs-java.pod:35
22840 msgid "Calling any method on a closed handle raises the same exception."
22844 #: ../java/examples/guestfs-java.pod:47
22847 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22848 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22849 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22851 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
22852 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22853 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22855 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22856 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22857 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22860 #: ../ocaml/examples/guestfs-ocaml.pod:5
22861 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22865 #: ../ocaml/examples/guestfs-ocaml.pod:9
22866 msgid "Module style:"
22870 #: ../ocaml/examples/guestfs-ocaml.pod:11
22873 " let g = Guestfs.create () in\n"
22874 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22875 " Guestfs.launch g;\n"
22880 #: ../ocaml/examples/guestfs-ocaml.pod:15
22881 msgid "Object-oriented style:"
22885 #: ../ocaml/examples/guestfs-ocaml.pod:17
22888 " let g = new Guestfs.guestfs () in\n"
22889 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22895 #: ../ocaml/examples/guestfs-ocaml.pod:21
22898 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22900 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22905 #: ../ocaml/examples/guestfs-ocaml.pod:27
22907 "This manual page documents how to call libguestfs from the OCaml programming "
22908 "language. This page just documents the differences from the C API and gives "
22909 "some examples. If you are not familiar with using libguestfs, you also need "
22910 "to read L<guestfs(3)>."
22914 #: ../ocaml/examples/guestfs-ocaml.pod:32
22915 msgid "PROGRAMMING STYLES"
22919 #: ../ocaml/examples/guestfs-ocaml.pod:34
22921 "There are two different programming styles supported by the OCaml bindings. "
22922 "You can use a module style, with each C function mapped to an OCaml function:"
22926 #: ../ocaml/examples/guestfs-ocaml.pod:38
22929 #| " int guestfs_last_errno (guestfs_h *g);\n"
22932 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22935 " int guestfs_last_errno (guestfs_h *g);\n"
22939 #: ../ocaml/examples/guestfs-ocaml.pod:40
22944 #: ../ocaml/examples/guestfs-ocaml.pod:42
22947 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22952 #: ../ocaml/examples/guestfs-ocaml.pod:44
22954 "Alternately you can use an object-oriented style, calling methods on the "
22955 "class C<Guestfs.guestfs>:"
22959 #: ../ocaml/examples/guestfs-ocaml.pod:47
22962 " method set_verbose : bool -> unit\n"
22967 #: ../ocaml/examples/guestfs-ocaml.pod:49
22969 "The object-oriented style is usually briefer, and the minor performance "
22970 "penalty isn't noticable in the general overhead of performing libguestfs "
22975 #: ../ocaml/examples/guestfs-ocaml.pod:55
22977 "The handle is closed when it is reaped by the garbage collector. Because "
22978 "libguestfs handles include a lot of state, it is also possible to close (and "
22979 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22984 #: ../ocaml/examples/guestfs-ocaml.pod:62
22986 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22987 "exception. This has a single parameter which is the error message (a "
22992 #: ../ocaml/examples/guestfs-ocaml.pod:66
22994 "Calling any function/method on a closed handle raises C<Guestfs."
22995 "Handle_closed>. The single parameter is the name of the function that you "
23000 #: ../ocaml/examples/guestfs-ocaml.pod:80
23003 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23004 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23005 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23007 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23008 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23009 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23011 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23012 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23013 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23016 #: ../perl/examples/guestfs-perl.pod:5
23017 msgid "guestfs-perl - How to use libguestfs from Perl"
23021 #: ../perl/examples/guestfs-perl.pod:9
23024 " use Sys::Guestfs;\n"
23029 #: ../perl/examples/guestfs-perl.pod:11
23032 " my $h = Sys::Guestfs->new ();\n"
23033 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
23034 " $h->launch ();\n"
23035 " $h->mount_options ('', '/dev/sda1', '/');\n"
23036 " $h->touch ('/hello');\n"
23042 #: ../perl/examples/guestfs-perl.pod:20
23044 "This manual page documents how to call libguestfs from the Perl programming "
23045 "language. This page just documents the differences from the C API and gives "
23046 "some examples. If you are not familiar with using libguestfs, you also need "
23047 "to read L<guestfs(3)>. To read the full Perl API, see L<Sys::Guestfs(3)>."
23051 #: ../perl/examples/guestfs-perl.pod:26
23056 #: ../perl/examples/guestfs-perl.pod:28
23058 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
23063 #: ../perl/examples/guestfs-perl.pod:41
23066 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23067 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23068 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23070 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
23071 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
23072 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23074 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23075 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23076 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23079 #: ../python/examples/guestfs-python.pod:5
23080 msgid "guestfs-python - How to use libguestfs from Python"
23084 #: ../python/examples/guestfs-python.pod:9
23087 " import guestfs\n"
23088 " g = guestfs.GuestFS ()\n"
23089 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
23095 #: ../python/examples/guestfs-python.pod:16
23097 "This manual page documents how to call libguestfs from the Python "
23098 "programming language. This page just documents the differences from the C "
23099 "API and gives some examples. If you are not familiar with using libguestfs, "
23100 "you also need to read L<guestfs(3)>."
23104 #: ../python/examples/guestfs-python.pod:23
23106 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
23107 "single string argument which is the error message."
23111 #: ../python/examples/guestfs-python.pod:26
23112 msgid "MORE DOCUMENTATION"
23116 #: ../python/examples/guestfs-python.pod:28
23121 #: ../python/examples/guestfs-python.pod:30
23125 " >>> import guestfs\n"
23126 " >>> help (guestfs)\n"
23131 #: ../python/examples/guestfs-python.pod:44
23134 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23135 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23136 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23138 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23139 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
23140 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23142 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23143 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23144 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23147 #: ../rescue/virt-rescue.pod:5
23148 msgid "virt-rescue - Run a rescue shell on a virtual machine"
23152 #: ../rescue/virt-rescue.pod:9
23155 #| " virt-list-partitions [--options] domname\n"
23158 " virt-rescue [--options] -d domname\n"
23161 " virt-list-partitions [--параметри] назва_домену\n"
23165 #: ../rescue/virt-rescue.pod:11
23168 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
23171 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
23174 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
23178 #: ../rescue/virt-rescue.pod:15
23181 #| " virt-list-partitions [--options] domname\n"
23184 " virt-rescue [--options] domname\n"
23187 " virt-list-partitions [--параметри] назва_домену\n"
23191 #: ../rescue/virt-rescue.pod:17
23194 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
23197 " virt-rescue [--options] disk.img [disk.img ...]\n"
23200 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
23204 #: ../rescue/virt-rescue.pod:21
23206 "You must I<not> use C<virt-rescue> on live virtual machines. Doing so will "
23207 "probably result in disk corruption in the VM. C<virt-rescue> tries to stop "
23208 "you from doing this, but doesn't catch all cases."
23212 #: ../rescue/virt-rescue.pod:25
23214 "However if you use the I<--ro> (read only) option, then you can attach a "
23215 "shell to a live virtual machine. The results might be strange or "
23216 "inconsistent at times but you won't get disk corruption."
23220 #: ../rescue/virt-rescue.pod:31
23222 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
23223 "need for a CD. virt-rescue gives you a rescue shell and some simple "
23224 "recovery tools which you can use to examine or rescue a virtual machine or "
23229 #: ../rescue/virt-rescue.pod:36
23231 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
23232 "on disk image(s):"
23236 #: ../rescue/virt-rescue.pod:39
23239 " virt-rescue -d GuestName\n"
23244 #: ../rescue/virt-rescue.pod:41
23247 " virt-rescue --ro -a /path/to/disk.img\n"
23252 #: ../rescue/virt-rescue.pod:43
23255 " virt-rescue -a /dev/sdc\n"
23260 #: ../rescue/virt-rescue.pod:45
23261 msgid "For live VMs you I<must> use the --ro option."
23265 #: ../rescue/virt-rescue.pod:47
23267 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23268 "in an interactive bash shell where you can use many ordinary Linux "
23269 "commands. What you see in C</> (C</bin>, C</lib> etc) is the rescue "
23270 "appliance. You must mount the virtual machine's filesystems by hand. There "
23271 "is an empty directory called C</sysroot> where you can mount filesystems."
23275 #: ../rescue/virt-rescue.pod:54
23277 "In the example below, we list logical volumes, then choose one to mount "
23278 "under C</sysroot>:"
23282 #: ../rescue/virt-rescue.pod:57
23286 " LV VG Attr LSize Origin Snap% Move Log Copy% Convert\n"
23287 " lv_root vg_f11x64 -wi-a- 8.83G\n"
23288 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
23289 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
23290 " ><rescue> ls /sysroot\n"
23295 #: ../rescue/virt-rescue.pod:64
23297 "If you don't know what filesystems are available on the virtual machine then "
23298 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
23302 #: ../rescue/virt-rescue.pod:70
23304 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23305 "virtual machine. For example you can use it on a blank file if you want to "
23306 "partition that file (although we would recommend using L<guestfish(1)> "
23307 "instead as it is more suitable for this purpose). You can even use virt-"
23308 "rescue on things like SD cards."
23312 #: ../rescue/virt-rescue.pod:76
23314 "Virt-rescue does not require root. You only need to run it as root if you "
23315 "need root to open the disk image."
23319 #: ../rescue/virt-rescue.pod:79
23321 "This tool is just designed for quick interactive hacking on a virtual "
23322 "machine. For more structured access to a virtual machine disk image, you "
23323 "should use L<guestfs(3)>. To get a structured shell that you can use to "
23324 "make scripted changes to guests, use L<guestfish(1)>."
23328 #: ../rescue/virt-rescue.pod:103
23329 msgid "B<--append kernelopts>"
23333 #: ../rescue/virt-rescue.pod:105
23334 msgid "Pass additional options to the rescue kernel."
23338 #: ../rescue/virt-rescue.pod:135
23341 #| " guestfish --format=raw -a disk.img\n"
23344 " virt-rescue --format=raw -a disk.img\n"
23347 " guestfish --format=raw -a disk.img\n"
23351 #: ../rescue/virt-rescue.pod:139
23354 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
23357 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23360 " guestfish --format=raw -a disk.img --format -a another.img\n"
23364 #: ../rescue/virt-rescue.pod:148
23369 #: ../rescue/virt-rescue.pod:150
23371 #| msgid "B<--merge>"
23372 msgid "B<--memsize MB>"
23373 msgstr "B<--merge>"
23376 #: ../rescue/virt-rescue.pod:152
23378 "Change the amount of memory allocated to the rescue system. The default is "
23379 "set by libguestfs and is small but adequate for running system tools. The "
23380 "occasional program might need more memory. The parameter is specified in "
23385 #: ../rescue/virt-rescue.pod:157
23387 #| msgid "B<--inspector>"
23388 msgid "B<--network>"
23389 msgstr "B<--inspector>"
23392 #: ../rescue/virt-rescue.pod:159
23393 msgid "Enable QEMU user networking in the guest. See L</NETWORK>."
23397 #: ../rescue/virt-rescue.pod:165
23398 msgid "Open the image read-only."
23402 #: ../rescue/virt-rescue.pod:175
23404 "Enable SELinux in the rescue appliance. You should read L<guestfs(3)/"
23405 "SELINUX> before using this option."
23409 #: ../rescue/virt-rescue.pod:178
23411 #| msgid "B<--csh>"
23416 #: ../rescue/virt-rescue.pod:180
23417 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23421 #: ../rescue/virt-rescue.pod:198
23423 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23424 "are done read-write."
23428 #: ../rescue/virt-rescue.pod:211
23429 msgid "Previous versions of virt-rescue allowed you to write either:"
23433 #: ../rescue/virt-rescue.pod:213
23436 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
23439 " virt-rescue disk.img [disk.img ...]\n"
23442 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
23446 #: ../rescue/virt-rescue.pod:217
23449 #| " file-architecture filename\n"
23452 " virt-rescue guestname\n"
23455 " file-architecture назва_файла\n"
23459 #: ../rescue/virt-rescue.pod:225
23464 #: ../rescue/virt-rescue.pod:227
23466 "Adding the I<--network> option enables QEMU user networking in the rescue "
23467 "appliance. There are some differences between user networking and ordinary "
23472 #: ../rescue/virt-rescue.pod:233
23473 msgid "ping does not work"
23477 #: ../rescue/virt-rescue.pod:235
23479 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23480 "send the ping packets, and because virt-rescue must be able to run as non-"
23481 "root, QEMU user networking is not able to emulate the L<ping(8)> command. "
23482 "The ping command will appear to resolve addresses but will not be able to "
23483 "send or receive any packets. This does not mean that the network is not "
23488 #: ../rescue/virt-rescue.pod:242
23489 msgid "cannot receive connections"
23493 #: ../rescue/virt-rescue.pod:244
23494 msgid "QEMU user networking cannot receive incoming connections."
23498 #: ../rescue/virt-rescue.pod:246
23499 msgid "making TCP connections"
23503 #: ../rescue/virt-rescue.pod:248
23505 "The virt-rescue appliance needs to be small and so does not include many "
23506 "network tools. In particular there is no L<telnet(1)> command. You can "
23507 "make TCP connections from the shell using the magical C</dev/tcp/"
23508 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23512 #: ../rescue/virt-rescue.pod:253
23515 " exec 3<>/dev/tcp/redhat.com/80\n"
23516 " echo \"GET /\" >&3\n"
23522 #: ../rescue/virt-rescue.pod:257
23523 msgid "See L<bash(1)> for more details."
23527 #: ../rescue/virt-rescue.pod:263
23529 "Several environment variables affect virt-rescue. See L<guestfs(3)/"
23530 "ENVIRONMENT VARIABLES> for the complete list."
23534 #: ../rescue/virt-rescue.pod:290
23537 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23538 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23539 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23541 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
23542 "libguestfs.org/>."
23544 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23545 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23546 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23549 #: ../resize/virt-resize.pod:5
23550 msgid "virt-resize - Resize a virtual machine disk"
23554 #: ../resize/virt-resize.pod:9
23557 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23558 " [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23559 " [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23564 #: ../resize/virt-resize.pod:15
23566 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23567 "larger or smaller overall, and resizing or deleting any partitions contained "
23572 #: ../resize/virt-resize.pod:19
23574 "Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
23575 "not> be used on live virtual machines - for consistent results, shut the "
23576 "virtual machine down before resizing it."
23580 #: ../resize/virt-resize.pod:23
23582 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23583 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23587 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
23588 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:469
23589 #: ../src/guestfs.pod:1287 ../src/guestfs.pod:1426 ../src/guestfs.pod:2675
23594 #: ../resize/virt-resize.pod:33
23596 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23597 "fill the extra 5GB of space."
23601 #: ../resize/virt-resize.pod:36
23604 " virt-filesystems --long -h --all -a olddisk\n"
23609 #: ../resize/virt-resize.pod:38
23612 " truncate -r olddisk newdisk\n"
23613 " truncate -s +5G newdisk\n"
23618 #: ../resize/virt-resize.pod:41
23621 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23622 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23627 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
23628 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:475
23629 #: ../src/guestfs.pod:1291 ../src/guestfs.pod:1430 ../src/guestfs.pod:2700
23634 #: ../resize/virt-resize.pod:46
23636 "As above, but make the /boot partition 200MB bigger, while giving the "
23637 "remaining space to /dev/sda2:"
23641 #: ../resize/virt-resize.pod:49
23644 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23645 " olddisk newdisk\n"
23650 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
23651 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:486
23652 #: ../src/guestfs.pod:1436
23657 #: ../resize/virt-resize.pod:54
23659 "As in the first example, but expand a logical volume as the final step. "
23660 "This is what you would typically use for Linux guests that use LVM:"
23664 #: ../resize/virt-resize.pod:58
23667 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23668 " olddisk newdisk\n"
23673 #: ../resize/virt-resize.pod:61
23678 #: ../resize/virt-resize.pod:63
23680 "As in the first example, but the output format will be qcow2 instead of a "
23685 #: ../resize/virt-resize.pod:66
23688 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23689 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23694 #: ../resize/virt-resize.pod:71
23695 msgid "DETAILED USAGE"
23699 #: ../resize/virt-resize.pod:73
23700 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23704 #: ../resize/virt-resize.pod:77
23705 msgid "1. Shut down the virtual machine"
23709 #: ../resize/virt-resize.pod:79
23710 msgid "2. Locate input disk image"
23714 #: ../resize/virt-resize.pod:81
23716 "Locate the input disk image (ie. the file or device on the host containing "
23717 "the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
23718 "dumpxml> like this to find the disk image name:"
23722 #: ../resize/virt-resize.pod:85
23725 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23726 " Found 1 nodes:\n"
23728 " <source dev=\"/dev/vg/lv_guest\" />\n"
23733 #: ../resize/virt-resize.pod:90
23734 msgid "3. Look at current sizing"
23738 #: ../resize/virt-resize.pod:92
23739 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23743 #: ../resize/virt-resize.pod:95
23746 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23747 " Name Type Size Parent\n"
23748 " /dev/sda1 partition 101M /dev/sda\n"
23749 " /dev/sda2 partition 7.9G /dev/sda\n"
23750 " /dev/sda device 8.0G -\n"
23755 #: ../resize/virt-resize.pod:101
23757 "(This example is a virtual machine with an 8 GB disk which we would like to "
23758 "expand up to 10 GB)."
23762 #: ../resize/virt-resize.pod:104
23763 msgid "4. Create output disk"
23767 #: ../resize/virt-resize.pod:106
23769 "Virt-resize cannot do in-place disk modifications. You have to have space "
23770 "to store the resized output disk."
23774 #: ../resize/virt-resize.pod:109
23776 "To store the resized disk image in a file, create a file of a suitable size:"
23780 #: ../resize/virt-resize.pod:112
23783 " # rm -f outdisk\n"
23784 " # truncate -s 10G outdisk\n"
23789 #: ../resize/virt-resize.pod:115
23790 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23794 #: ../resize/virt-resize.pod:117
23797 " # lvcreate -L 10G -n lv_name vg_name\n"
23802 #: ../resize/virt-resize.pod:119
23803 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23807 #: ../resize/virt-resize.pod:121
23810 " # virsh pool-list\n"
23811 " # virsh vol-create-as poolname newvol 10G\n"
23816 #: ../resize/virt-resize.pod:124
23821 #: ../resize/virt-resize.pod:126
23823 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23824 "file) and the output disk. The output disk is the one created in the "
23829 #: ../resize/virt-resize.pod:130
23832 " # virt-resize indisk outdisk\n"
23837 #: ../resize/virt-resize.pod:132
23839 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23840 "I<without> resizing or changing any existing partitions. If C<outdisk> is "
23841 "larger, then an extra, empty partition is created at the end of the disk "
23842 "covering the extra space. If C<outdisk> is smaller, then it will give an "
23847 #: ../resize/virt-resize.pod:138
23849 "More realistically you'd want to expand existing partitions in the disk "
23850 "image by passing extra options (for the full list see the L</OPTIONS> "
23855 #: ../resize/virt-resize.pod:142
23857 "L</--expand> is the most useful option. It expands the named partition "
23858 "within the disk to fill any extra space:"
23862 #: ../resize/virt-resize.pod:145
23865 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23870 #: ../resize/virt-resize.pod:147
23872 "(In this case, an extra partition is I<not> created at the end of the disk, "
23873 "because there will be no unused space)."
23877 #: ../resize/virt-resize.pod:150
23879 "L</--resize> is the other commonly used option. The following would "
23880 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23881 "rest of the available space:"
23885 #: ../resize/virt-resize.pod:154
23888 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23889 " indisk outdisk\n"
23894 #: ../resize/virt-resize.pod:157
23896 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23897 "if virt-resize knows how, it will resize the contents, the equivalent of "
23898 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23899 "or L<btrfs(8)>. However virt-resize does not know how to resize some "
23900 "filesystems, so you would have to online resize them after booting the guest."
23904 #: ../resize/virt-resize.pod:164
23905 msgid "Other options are covered below."
23909 #: ../resize/virt-resize.pod:166
23914 #: ../resize/virt-resize.pod:168
23915 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23919 #: ../resize/virt-resize.pod:170
23920 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23924 #: ../resize/virt-resize.pod:172
23927 #| " edit filename\n"
23930 " # virsh edit guestname\n"
23933 " edit назва_файла\n"
23937 #: ../resize/virt-resize.pod:174
23939 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
23940 "html#elementsDisks>"
23944 #: ../resize/virt-resize.pod:177
23945 msgid "Then start up the domain with the new, resized disk:"
23949 #: ../resize/virt-resize.pod:179
23952 #| " ln-s target linkname\n"
23955 " # virsh start guestname\n"
23958 " ln-s призначення назва_посилання\n"
23962 #: ../resize/virt-resize.pod:181
23964 "and check that it still works. See also the L</NOTES> section below for "
23965 "additional information."
23969 #: ../resize/virt-resize.pod:184
23970 msgid "7. Resize LVs etc inside the guest"
23974 #: ../resize/virt-resize.pod:186
23975 msgid "(This can also be done offline using L<guestfish(1)>)"
23979 #: ../resize/virt-resize.pod:188
23981 "Once the guest has booted you should see the new space available, at least "
23982 "for filesystems that virt-resize knows how to resize, and for PVs. The user "
23983 "may need to resize LVs inside PVs, and also resize filesystem types that "
23984 "virt-resize does not know how to expand."
23988 #: ../resize/virt-resize.pod:195
23989 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23993 #: ../resize/virt-resize.pod:197
23995 "Shrinking is somewhat more complex than expanding, and only an overview is "
24000 #: ../resize/virt-resize.pod:200
24002 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
24003 "filesystems). The user has to shrink content before passing the disk image "
24004 "to virt-resize, and virt-resize will check that the content has been shrunk "
24009 #: ../resize/virt-resize.pod:205
24010 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
24014 #: ../resize/virt-resize.pod:207
24016 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
24017 "steps 3 and 4 above to allocate a new disk image."
24021 #: ../resize/virt-resize.pod:210
24023 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
24027 #: ../resize/virt-resize.pod:213
24028 msgid "IGNORING OR DELETING PARTITIONS"
24032 #: ../resize/virt-resize.pod:215
24034 "virt-resize also gives a convenient way to ignore or delete partitions when "
24035 "copying from the input disk to the output disk. Ignoring a partition speeds "
24036 "up the copy where you don't care about the existing contents of a "
24037 "partition. Deleting a partition removes it completely, but note that it "
24038 "also renumbers any partitions after the one which is deleted, which can "
24039 "leave some guests unbootable."
24043 #: ../resize/virt-resize.pod:222
24044 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
24048 #: ../resize/virt-resize.pod:224
24050 "If the input disk is in qcow2 format, then you may prefer that the output is "
24051 "in qcow2 format as well. Alternately, virt-resize can convert the format on "
24052 "the fly. The output format is simply determined by the format of the empty "
24053 "output container that you provide. Thus to create qcow2 output, use:"
24057 #: ../resize/virt-resize.pod:230
24060 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
24065 #: ../resize/virt-resize.pod:232
24066 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
24070 #: ../resize/virt-resize.pod:234
24071 msgid "Similarly, to get non-sparse raw output use:"
24075 #: ../resize/virt-resize.pod:236
24078 #| " fallocate path len\n"
24081 " fallocate -l size outdisk\n"
24084 " fallocate шлях довжина\n"
24088 #: ../resize/virt-resize.pod:238
24090 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
24091 "dev/zero of=outdisk bs=1M count=..>)"
24095 #: ../resize/virt-resize.pod:247 ../sparsify/virt-sparsify.pod:105
24096 msgid "Display help."
24100 #: ../resize/virt-resize.pod:249
24105 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
24106 #: ../tools/virt-win-reg.pl:120
24108 msgstr "B<--debug>"
24111 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
24112 msgid "Enable debugging messages."
24116 #: ../resize/virt-resize.pod:255
24118 #| msgid "B<--no-dest-paths>"
24119 msgid "B<--delete part>"
24120 msgstr "B<--no-dest-paths>"
24123 #: ../resize/virt-resize.pod:257
24125 "Delete the named partition. It would be more accurate to describe this as "
24126 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24127 "the original disk image is left intact."
24131 #: ../resize/virt-resize.pod:261
24133 "Note that when you delete a partition, then anything contained in the "
24134 "partition is also deleted. Furthermore, this causes any partitions that "
24135 "come after to be I<renumbered>, which can easily make your guest unbootable."
24139 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
24140 #: ../resize/virt-resize.pod:454 ../sparsify/virt-sparsify.pod:145
24141 msgid "You can give this option multiple times."
24145 #: ../resize/virt-resize.pod:268
24147 #| msgid "B<--partition>"
24148 msgid "B<--expand part>"
24149 msgstr "B<--partition>"
24152 #: ../resize/virt-resize.pod:270
24154 "Expand the named partition so it uses up all extra space (space left over "
24155 "after any other resize changes that you request have been done)."
24159 #: ../resize/virt-resize.pod:273
24161 "If virt-resize knows how, it will expand the direct content of the "
24162 "partition. For example, if the partition is an LVM PV, it will expand the "
24163 "PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
24164 "content it doesn't know about alone."
24168 #: ../resize/virt-resize.pod:278
24169 msgid "Currently virt-resize can resize:"
24173 #: ../resize/virt-resize.pod:284
24174 msgid "ext2, ext3 and ext4 filesystems."
24178 #: ../resize/virt-resize.pod:288
24179 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24183 #: ../resize/virt-resize.pod:290
24185 "The filesystem must have been shut down consistently last time it was used. "
24186 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
24187 "consistency check, so at the first boot after resizing Windows will check "
24192 #: ../resize/virt-resize.pod:297
24194 "LVM PVs (physical volumes). virt-resize does not usually resize anything "
24195 "inside the PV, but see the I<--LV-expand> option. The user could also "
24196 "resize LVs as desired after boot."
24200 #: ../resize/virt-resize.pod:303
24201 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
24205 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
24206 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
24210 #: ../resize/virt-resize.pod:309 ../sparsify/virt-sparsify.pod:125
24211 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
24212 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
24213 msgid "B<--format> raw"
24217 #: ../resize/virt-resize.pod:311 ../sparsify/virt-sparsify.pod:129
24219 "Specify the format of the input disk image. If this flag is not given then "
24220 "it is auto-detected from the image itself."
24224 #: ../resize/virt-resize.pod:317
24226 "Note that this option I<does not> affect the output format. See L</QCOW2 "
24227 "AND NON-SPARSE RAW FORMATS>."
24231 #: ../resize/virt-resize.pod:320
24233 #| msgid "B<--format>"
24234 msgid "B<--ignore part>"
24235 msgstr "B<--format>"
24238 #: ../resize/virt-resize.pod:322
24240 "Ignore the named partition. Effectively this means the partition is "
24241 "allocated on the destination disk, but the content is not copied across from "
24242 "the source disk. The content of the partition will be blank (all zero "
24247 #: ../resize/virt-resize.pod:329
24248 msgid "B<--LV-expand logvol>"
24252 #: ../resize/virt-resize.pod:331
24254 "This takes the logical volume and, as a final step, expands it to fill all "
24255 "the space available in its volume group. A typical usage, assuming a Linux "
24256 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
24257 "lv_root> would be:"
24261 #: ../resize/virt-resize.pod:336
24264 " virt-resize indisk outdisk \\\n"
24265 " --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24270 #: ../resize/virt-resize.pod:339
24272 "This would first expand the partition (and PV), and then expand the root "
24273 "device to fill the extra space in the PV."
24277 #: ../resize/virt-resize.pod:342
24279 "The contents of the LV are also resized if virt-resize knows how to do "
24280 "that. You can stop virt-resize from trying to expand the content by using "
24281 "the option I<--no-expand-content>."
24285 #: ../resize/virt-resize.pod:346
24286 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24290 #: ../resize/virt-resize.pod:348
24292 "You can give this option multiple times, I<but> it doesn't make sense to do "
24293 "this unless the logical volumes you specify are all in different volume "
24298 #: ../resize/virt-resize.pod:352 ../sparsify/virt-sparsify.pod:147
24300 #| msgid "B<-h> | B<--human-readable>"
24301 msgid "B<--machine-readable>"
24302 msgstr "B<-h> | B<--human-readable>"
24305 #: ../resize/virt-resize.pod:354 ../sparsify/virt-sparsify.pod:149
24307 "This option is used to make the output more machine friendly when being "
24308 "parsed by other programs. See L</MACHINE READABLE OUTPUT> below."
24312 #: ../resize/virt-resize.pod:360
24314 #| msgid "B<--debug>"
24315 msgid "B<--dryrun>"
24316 msgstr "B<--debug>"
24319 #: ../resize/virt-resize.pod:362
24320 msgid "Print a summary of what would be done, but don't do anything."
24324 #: ../resize/virt-resize.pod:364
24325 msgid "B<--no-copy-boot-loader>"
24329 #: ../resize/virt-resize.pod:366
24331 "By default, virt-resize copies over some sectors at the start of the disk "
24332 "(up to the beginning of the first partition). Commonly these sectors "
24333 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24334 "in order for the guest to boot correctly."
24338 #: ../resize/virt-resize.pod:371
24340 "If you specify this flag, then this initial copy is not done. You may need "
24341 "to reinstall the boot loader in this case."
24345 #: ../resize/virt-resize.pod:374
24347 #| msgid "B<--partition>"
24348 msgid "B<--no-extra-partition>"
24349 msgstr "B<--partition>"
24352 #: ../resize/virt-resize.pod:376
24354 "By default, virt-resize creates an extra partition if there is any extra, "
24355 "unused space after all resizing has happened. Use this option to prevent "
24356 "the extra partition from being created. If you do this then the extra space "
24357 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24358 "tool in the guest."
24362 #: ../resize/virt-resize.pod:382
24364 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24369 #: ../resize/virt-resize.pod:385
24371 #| msgid "B<--no-dest-paths>"
24372 msgid "B<--no-expand-content>"
24373 msgstr "B<--no-dest-paths>"
24376 #: ../resize/virt-resize.pod:387
24378 "By default, virt-resize will try to expand the direct contents of "
24379 "partitions, if it knows how (see I<--expand> option above)."
24383 #: ../resize/virt-resize.pod:390
24385 "If you give the I<--no-expand-content> option then virt-resize will not "
24390 #: ../resize/virt-resize.pod:393
24392 #| msgid "ntfsresize-size"
24393 msgid "B<--ntfsresize-force>"
24394 msgstr "ntfsresize-size"
24397 #: ../resize/virt-resize.pod:395
24399 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24400 "the NTFS disk is marked as needing a consistency check. You have to use "
24401 "this option if you want to resize a Windows guest multiple times without "
24402 "booting into Windows between each resize."
24406 #: ../resize/virt-resize.pod:401
24408 #| msgid "B<--format>"
24409 msgid "B<--output-format> raw"
24410 msgstr "B<--format>"
24413 #: ../resize/virt-resize.pod:403
24415 "Specify the format of the output disk image. If this flag is not given then "
24416 "it is auto-detected from the image itself."
24420 #: ../resize/virt-resize.pod:409
24422 "Note that this option I<does not create> the output format. This option "
24423 "just tells libguestfs what it is so it doesn't try to guess it. You still "
24424 "need to create the output disk with the right format. See L</QCOW2 AND NON-"
24425 "SPARSE RAW FORMATS>."
24429 #: ../resize/virt-resize.pod:418
24430 msgid "Don't print the summary."
24434 #: ../resize/virt-resize.pod:420
24436 #| msgid "B<part_size>"
24437 msgid "B<--resize part=size>"
24438 msgstr "B<part_size>"
24441 #: ../resize/virt-resize.pod:422
24443 "Resize the named partition (expanding or shrinking it) so that it has the "
24448 #: ../resize/virt-resize.pod:425
24450 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24451 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24452 "size; or as a relative number or percentage. For example:"
24456 #: ../resize/virt-resize.pod:431
24459 #| " hexedit /dev/sda 1M\n"
24462 " --resize /dev/sda2=10G\n"
24465 " hexedit /dev/sda 1M\n"
24469 #: ../resize/virt-resize.pod:433
24472 #| " pvresize device\n"
24475 " --resize /dev/sda4=90%\n"
24478 " pvresize пристрій\n"
24482 #: ../resize/virt-resize.pod:435
24485 #| " hexedit /dev/sda 1M\n"
24488 " --resize /dev/sda2=+1G\n"
24491 " hexedit /dev/sda 1M\n"
24495 #: ../resize/virt-resize.pod:437
24498 #| " hexedit /dev/sda 1M\n"
24501 " --resize /dev/sda2=-200M\n"
24504 " hexedit /dev/sda 1M\n"
24508 #: ../resize/virt-resize.pod:439
24511 #| " hexedit /dev/sda 1M\n"
24514 " --resize /dev/sda1=+128K\n"
24517 " hexedit /dev/sda 1M\n"
24521 #: ../resize/virt-resize.pod:441
24524 #| " hexedit /dev/sda 1M\n"
24527 " --resize /dev/sda1=+10%\n"
24530 " hexedit /dev/sda 1M\n"
24534 #: ../resize/virt-resize.pod:443
24537 #| " hexedit /dev/sda 1M\n"
24540 " --resize /dev/sda1=-10%\n"
24543 " hexedit /dev/sda 1M\n"
24547 #: ../resize/virt-resize.pod:445
24549 "You can increase the size of any partition. Virt-resize will expand the "
24550 "direct content of the partition if it knows how (see I<--expand> below)."
24554 #: ../resize/virt-resize.pod:449
24556 "You can only I<decrease> the size of partitions that contain filesystems or "
24557 "PVs which have already been shrunk. Virt-resize will check this has been "
24558 "done before proceeding, or else will print an error (see also I<--resize-"
24563 #: ../resize/virt-resize.pod:456
24564 msgid "B<--resize-force part=size>"
24568 #: ../resize/virt-resize.pod:458
24570 "This is the same as I<--resize> except that it will let you decrease the "
24571 "size of any partition. Generally this means you will lose any data which "
24572 "was at the end of the partition you shrink, but you may not care about that "
24573 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24574 "as a swap partition)."
24578 #: ../resize/virt-resize.pod:464
24579 msgid "See also the I<--ignore> option."
24583 #: ../resize/virt-resize.pod:466
24585 #| msgid "B<--partition>"
24586 msgid "B<--shrink part>"
24587 msgstr "B<--partition>"
24590 #: ../resize/virt-resize.pod:468
24592 "Shrink the named partition until the overall disk image fits in the "
24593 "destination. The named partition B<must> contain a filesystem or PV which "
24594 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24595 "online tools). Virt-resize will check this and give an error if it has not "
24600 #: ../resize/virt-resize.pod:474
24602 "The amount by which the overall disk must be shrunk (after carrying out all "
24603 "other operations requested by the user) is called the \"deficit\". For "
24604 "example, a straight copy (assume no other operations) from a 5GB disk image "
24605 "to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
24606 "would give an error unless the user specified a partition to shrink and that "
24607 "partition had more than a gigabyte of free space."
24611 #: ../resize/virt-resize.pod:492 ../sparsify/virt-sparsify.pod:177
24612 msgid "MACHINE READABLE OUTPUT"
24616 #: ../resize/virt-resize.pod:494
24618 "The I<--machine-readable> option can be used to make the output more machine "
24619 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24624 #: ../resize/virt-resize.pod:498 ../sparsify/virt-sparsify.pod:183
24625 msgid "There are two ways to use this option."
24629 #: ../resize/virt-resize.pod:500
24631 "Firstly use the option on its own to query the capabilities of the virt-"
24632 "resize binary. Typical output looks like this:"
24636 #: ../resize/virt-resize.pod:503
24639 " $ virt-resize --machine-readable\n"
24641 " ntfsresize-force\n"
24649 #: ../resize/virt-resize.pod:510 ../sparsify/virt-sparsify.pod:193
24651 "A list of features is printed, one per line, and the program exits with "
24656 #: ../resize/virt-resize.pod:513 ../sparsify/virt-sparsify.pod:196
24658 "Secondly use the option in conjunction with other options to make the "
24659 "regular program output more machine friendly."
24663 #: ../resize/virt-resize.pod:516 ../sparsify/virt-sparsify.pod:199
24664 msgid "At the moment this means:"
24668 #: ../resize/virt-resize.pod:522 ../sparsify/virt-sparsify.pod:205
24670 "Progress bar messages can be parsed from stdout by looking for this regular "
24675 #: ../resize/virt-resize.pod:525 ../sparsify/virt-sparsify.pod:208
24678 " ^[0-9]+/[0-9]+$\n"
24683 #: ../resize/virt-resize.pod:529 ../sparsify/virt-sparsify.pod:212
24685 "The calling program should treat messages sent to stdout (except for "
24686 "progress bar messages) as status messages. They can be logged and/or "
24687 "displayed to the user."
24691 #: ../resize/virt-resize.pod:535
24693 "The calling program should treat messages sent to stderr as error messages. "
24694 "In addition, virt-resize exits with a non-zero status code if there was a "
24699 #: ../resize/virt-resize.pod:541
24701 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
24702 "readable> option and will return an error."
24706 #: ../resize/virt-resize.pod:546
24707 msgid "\"Partition 1 does not end on cylinder boundary.\""
24711 #: ../resize/virt-resize.pod:548
24713 "Virt-resize aligns partitions to multiples of 64 sectors. Usually this "
24714 "means the partitions will not be aligned to the ancient CHS geometry. "
24715 "However CHS geometry is meaningless for disks manufactured since the early "
24716 "1990s, and doubly so for virtual hard drives. Alignment of partitions to "
24717 "cylinders is not required by any modern operating system."
24721 #: ../resize/virt-resize.pod:555
24722 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24726 #: ../resize/virt-resize.pod:557
24728 "In Windows Vista and later versions, Microsoft switched to using a separate "
24729 "boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
24730 "and C</dev/sda2> is the main (C:) drive. We have not had any luck resizing "
24731 "the boot partition. Doing so seems to break the guest completely. However "
24732 "expanding the second partition (ie. C: drive) should work."
24736 #: ../resize/virt-resize.pod:564
24738 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24739 "NTFS partitions have been expanded. This is just a safety check and (unless "
24740 "it find errors) is nothing to worry about."
24744 #: ../resize/virt-resize.pod:568
24745 msgid "GUEST BOOT STUCK AT \"GRUB\""
24749 #: ../resize/virt-resize.pod:570
24751 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24752 "printing C<GRUB> on the console, try reinstalling grub. This sometimes "
24753 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
24754 "although we think is to do with partition alignment."
24758 #: ../resize/virt-resize.pod:575
24761 " guestfish -i -a newdisk\n"
24762 " ><fs> cat /boot/grub/device.map\n"
24763 " # check the contents of this file are sensible or\n"
24764 " # edit the file if necessary\n"
24765 " ><fs> grub-install / /dev/vda\n"
24771 #: ../resize/virt-resize.pod:582
24773 "For more flexible guest reconfiguration, including if you need to specify "
24774 "other parameters to grub-install, use L<virt-rescue(1)>."
24778 #: ../resize/virt-resize.pod:585
24779 msgid "ALTERNATIVE TOOLS"
24783 #: ../resize/virt-resize.pod:587
24785 "There are several proprietary tools for resizing partitions. We won't "
24786 "mention any here."
24790 #: ../resize/virt-resize.pod:590
24792 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24793 "operations on disk images. They can resize and move partitions, but I don't "
24794 "think they can do anything with the contents, and they certainly don't "
24799 #: ../resize/virt-resize.pod:595
24801 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24802 "but at a much lower level. You will probably end up hand-calculating sector "
24803 "offsets, which is something that virt-resize was designed to avoid. If you "
24804 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24809 #: ../resize/virt-resize.pod:615
24811 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
24812 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
24813 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
24814 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
24815 "L<http://libguestfs.org/>."
24819 #: ../ruby/examples/guestfs-ruby.pod:5
24820 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24824 #: ../ruby/examples/guestfs-ruby.pod:9
24827 " require 'guestfs'\n"
24828 " g = Guestfs::Guestfs.new()\n"
24829 " g.add_drive_opts(\"disk.img\",\n"
24830 " :readonly => 1, :format => \"raw\")\n"
24836 #: ../ruby/examples/guestfs-ruby.pod:17
24838 "This manual page documents how to call libguestfs from the Ruby programming "
24839 "language. This page just documents the differences from the C API and gives "
24840 "some examples. If you are not familiar with using libguestfs, you also need "
24841 "to read L<guestfs(3)>."
24845 #: ../ruby/examples/guestfs-ruby.pod:24
24847 "Errors from libguestfs functions are mapped into the C<Error> exception. "
24848 "This has a single parameter which is the error message (a string)."
24852 #: ../ruby/examples/guestfs-ruby.pod:38
24855 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
24856 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
24857 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
24859 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24860 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
24861 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24863 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
24864 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
24865 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
24868 #: ../sparsify/virt-sparsify.pod:5
24869 msgid "virt-sparsify - Make a virtual machine disk sparse"
24873 #: ../sparsify/virt-sparsify.pod:9
24876 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
24879 " virt-sparsify [--options] indisk outdisk\n"
24882 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
24886 #: ../sparsify/virt-sparsify.pod:13
24888 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24889 "image) sparse a.k.a. thin-provisioned. This means that free space within "
24890 "the disk image can be converted back to free space on the host."
24894 #: ../sparsify/virt-sparsify.pod:18
24896 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
24897 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24901 #: ../sparsify/virt-sparsify.pod:21
24903 "Virt-sparsify can also convert between some disk formats, for example "
24904 "converting a raw disk image to a thin-provisioned qcow2 image."
24908 #: ../sparsify/virt-sparsify.pod:24
24910 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24911 "machines. If a virtual machine has more than one attached disk, you must "
24912 "sparsify each one separately."
24916 #: ../sparsify/virt-sparsify.pod:28
24917 msgid "IMPORTANT LIMITATIONS"
24921 #: ../sparsify/virt-sparsify.pod:34
24923 "Virt-sparsify does not do in-place modifications. It copies from a source "
24924 "image to a destination image, leaving the source unchanged. I<Check that "
24925 "the sparsification was successful before deleting the source image>."
24929 #: ../sparsify/virt-sparsify.pod:41
24930 msgid "The virtual machine I<must be shut down> before using this tool."
24934 #: ../sparsify/virt-sparsify.pod:45
24936 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24937 "(1 temporary copy + 1 destination image). This is in the worst case and "
24938 "usually much less space is required."
24942 #: ../sparsify/virt-sparsify.pod:51
24944 "Virt-sparsify cannot resize disk images. To do that, use L<virt-resize(1)>."
24948 #: ../sparsify/virt-sparsify.pod:56
24949 msgid "Virt-sparsify cannot handle encrypted disks."
24953 #: ../sparsify/virt-sparsify.pod:60
24955 "Virt-sparsify cannot yet sparsify the space between partitions. Note that "
24956 "this space is often used for critical items like bootloaders so it's not "
24961 #: ../sparsify/virt-sparsify.pod:66
24963 "Virt-sparsify does not yet know how to sparsify swapspace. It is not safe "
24964 "to do this unless we can be sure there is no hibernation data, so at the "
24965 "moment swap partitions are ignored."
24969 #: ../sparsify/virt-sparsify.pod:72
24971 "You may also want to read the manual pages for the associated tools L<virt-"
24972 "filesystems(1)> and L<virt-df(1)> before starting."
24976 #: ../sparsify/virt-sparsify.pod:77
24977 msgid "Typical usage is:"
24981 #: ../sparsify/virt-sparsify.pod:79
24984 " virt-sparsify indisk outdisk\n"
24989 #: ../sparsify/virt-sparsify.pod:81
24991 "which copies C<indisk> to C<outdisk>, making the output sparse. C<outdisk> "
24992 "is created, or overwritten if it already exists. The format of the input "
24993 "disk is detected (eg. qcow2) and the same format is used for the output disk."
24997 #: ../sparsify/virt-sparsify.pod:86
24998 msgid "To convert between formats, use the I<--convert> option:"
25002 #: ../sparsify/virt-sparsify.pod:88
25005 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
25010 #: ../sparsify/virt-sparsify.pod:90
25012 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
25013 "can find within the source disk image. You can get it to ignore (don't zero "
25014 "free space on) certain filesystems by doing:"
25018 #: ../sparsify/virt-sparsify.pod:94
25021 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
25026 #: ../sparsify/virt-sparsify.pod:96
25028 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
25032 #: ../sparsify/virt-sparsify.pod:107
25034 #| msgid "B<--connect URI>"
25035 msgid "B<--convert> raw"
25036 msgstr "B<--connect адреса>"
25039 #: ../sparsify/virt-sparsify.pod:109
25041 #| msgid "B<--format=raw|qcow2|..>"
25042 msgid "B<--convert> qcow2"
25043 msgstr "B<--format=raw|qcow2|..>"
25046 #: ../sparsify/virt-sparsify.pod:111
25047 msgid "B<--convert> [other formats]"
25051 #: ../sparsify/virt-sparsify.pod:113
25053 "Use C<output-format> as the format for the destination image. If this is "
25054 "not specified, then the input format is used."
25058 #: ../sparsify/virt-sparsify.pod:116
25059 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
25063 #: ../sparsify/virt-sparsify.pod:118
25065 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
25066 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
25070 #: ../sparsify/virt-sparsify.pod:122
25072 "Specifying the I<--convert> option is usually a good idea, because then virt-"
25073 "sparsify doesn't need to try to guess the input format."
25077 #: ../sparsify/virt-sparsify.pod:127
25079 #| msgid "B<--format=raw|qcow2|..>"
25080 msgid "B<--format> qcow2"
25081 msgstr "B<--format=raw|qcow2|..>"
25084 #: ../sparsify/virt-sparsify.pod:135
25086 #| msgid "list-filesystems"
25087 msgid "B<--ignore> filesystem"
25088 msgstr "list-filesystems"
25091 #: ../sparsify/virt-sparsify.pod:137
25093 #| msgid "B<--verbose>"
25094 msgid "B<--ignore> volgroup"
25095 msgstr "B<--verbose>"
25098 #: ../sparsify/virt-sparsify.pod:139
25100 "Ignore the named filesystem. Free space on the filesystem will not be "
25101 "zeroed, but existing blocks of zeroes will still be sparsified."
25105 #: ../sparsify/virt-sparsify.pod:142
25107 "In the second form, this ignores the named volume group. Use the volume "
25108 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25112 #: ../sparsify/virt-sparsify.pod:157
25113 msgid "This disables progress bars and other unnecessary output."
25117 #: ../sparsify/virt-sparsify.pod:179
25119 "The I<--machine-readable> option can be used to make the output more machine "
25120 "friendly, which is useful when calling virt-sparsify from other programs, "
25125 #: ../sparsify/virt-sparsify.pod:185
25127 "Firstly use the option on its own to query the capabilities of the virt-"
25128 "sparsify binary. Typical output looks like this:"
25132 #: ../sparsify/virt-sparsify.pod:188
25135 " $ virt-sparsify --machine-readable\n"
25143 #: ../sparsify/virt-sparsify.pod:218
25145 "The calling program should treat messages sent to stderr as error messages. "
25146 "In addition, virt-sparsify exits with a non-zero status code if there was a "
25151 #: ../sparsify/virt-sparsify.pod:224
25153 "All versions of virt-sparsify have supported the I<--machine-readable> "
25158 #: ../sparsify/virt-sparsify.pod:238
25160 "Location of the temporary directory used for the potentially large temporary "
25165 #: ../sparsify/virt-sparsify.pod:241
25167 "You should ensure there is enough free space in the worst case for a full "
25168 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
25169 "to another directory that has enough space."
25173 #: ../sparsify/virt-sparsify.pod:245
25175 #| msgid "The default is C<ext2>."
25176 msgid "This defaults to C</tmp>."
25177 msgstr "Типовим значенням є C<ext2>."
25180 #: ../sparsify/virt-sparsify.pod:249
25182 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
25186 #: ../sparsify/virt-sparsify.pod:253
25189 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
25190 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
25191 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
25192 #| "libguestfs.org/>."
25194 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
25195 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
25196 "(1)>, L<http://libguestfs.org/>."
25198 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
25199 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
25200 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
25204 #: ../src/guestfs-actions.pod:1
25205 msgid "guestfs_add_cdrom"
25209 #: ../src/guestfs-actions.pod:3
25213 " guestfs_add_cdrom (guestfs_h *g,\n"
25214 " const char *filename);\n"
25219 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
25220 #: ../src/guestfs-actions.pod:270
25222 "I<This function is deprecated.> In new code, use the L</"
25223 "guestfs_add_drive_opts> call instead."
25227 #: ../src/guestfs-actions.pod:24
25229 "This call checks for the existence of C<filename>. This stops you from "
25230 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25231 "and C<http:> URLs. To specify those, use the general C<guestfs_config> call "
25236 #: ../src/guestfs-actions.pod:31
25238 "If you just want to add an ISO file (often you use this as an efficient way "
25239 "to transfer large files into the guest), then you should probably use "
25240 "C<guestfs_add_drive_ro> instead."
25244 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
25245 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
25246 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
25247 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
25248 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
25249 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
25250 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
25251 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
25252 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
25253 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
25254 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
25255 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
25256 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
25257 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1233
25258 #: ../src/guestfs-actions.pod:1279 ../src/guestfs-actions.pod:1297
25259 #: ../src/guestfs-actions.pod:1316 ../src/guestfs-actions.pod:1330
25260 #: ../src/guestfs-actions.pod:1350 ../src/guestfs-actions.pod:1420
25261 #: ../src/guestfs-actions.pod:1451 ../src/guestfs-actions.pod:1476
25262 #: ../src/guestfs-actions.pod:1518 ../src/guestfs-actions.pod:1631
25263 #: ../src/guestfs-actions.pod:1658 ../src/guestfs-actions.pod:1873
25264 #: ../src/guestfs-actions.pod:1895 ../src/guestfs-actions.pod:1982
25265 #: ../src/guestfs-actions.pod:2490 ../src/guestfs-actions.pod:2634
25266 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2730
25267 #: ../src/guestfs-actions.pod:3774 ../src/guestfs-actions.pod:3789
25268 #: ../src/guestfs-actions.pod:3814 ../src/guestfs-actions.pod:4003
25269 #: ../src/guestfs-actions.pod:4017 ../src/guestfs-actions.pod:4030
25270 #: ../src/guestfs-actions.pod:4044 ../src/guestfs-actions.pod:4059
25271 #: ../src/guestfs-actions.pod:4095 ../src/guestfs-actions.pod:4167
25272 #: ../src/guestfs-actions.pod:4187 ../src/guestfs-actions.pod:4204
25273 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:4250
25274 #: ../src/guestfs-actions.pod:4285 ../src/guestfs-actions.pod:4304
25275 #: ../src/guestfs-actions.pod:4323 ../src/guestfs-actions.pod:4358
25276 #: ../src/guestfs-actions.pod:4370 ../src/guestfs-actions.pod:4406
25277 #: ../src/guestfs-actions.pod:4422 ../src/guestfs-actions.pod:4435
25278 #: ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:4467
25279 #: ../src/guestfs-actions.pod:4560 ../src/guestfs-actions.pod:4580
25280 #: ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4644
25281 #: ../src/guestfs-actions.pod:4662 ../src/guestfs-actions.pod:4680
25282 #: ../src/guestfs-actions.pod:4696 ../src/guestfs-actions.pod:4710
25283 #: ../src/guestfs-actions.pod:4724 ../src/guestfs-actions.pod:4741
25284 #: ../src/guestfs-actions.pod:4756 ../src/guestfs-actions.pod:4783
25285 #: ../src/guestfs-actions.pod:4846 ../src/guestfs-actions.pod:4919
25286 #: ../src/guestfs-actions.pod:4950 ../src/guestfs-actions.pod:4969
25287 #: ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5000
25288 #: ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5030
25289 #: ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5060
25290 #: ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:5118
25291 #: ../src/guestfs-actions.pod:5157 ../src/guestfs-actions.pod:5177
25292 #: ../src/guestfs-actions.pod:5191 ../src/guestfs-actions.pod:5208
25293 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5310
25294 #: ../src/guestfs-actions.pod:5357 ../src/guestfs-actions.pod:5400
25295 #: ../src/guestfs-actions.pod:5428 ../src/guestfs-actions.pod:5445
25296 #: ../src/guestfs-actions.pod:5463 ../src/guestfs-actions.pod:5603
25297 #: ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5682
25298 #: ../src/guestfs-actions.pod:5700 ../src/guestfs-actions.pod:5732
25299 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5815
25300 #: ../src/guestfs-actions.pod:5828 ../src/guestfs-actions.pod:5842
25301 #: ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150
25302 #: ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6183
25303 #: ../src/guestfs-actions.pod:6195 ../src/guestfs-actions.pod:6209
25304 #: ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6235
25305 #: ../src/guestfs-actions.pod:6251 ../src/guestfs-actions.pod:6272
25306 #: ../src/guestfs-actions.pod:6291 ../src/guestfs-actions.pod:6310
25307 #: ../src/guestfs-actions.pod:6340 ../src/guestfs-actions.pod:6358
25308 #: ../src/guestfs-actions.pod:6381 ../src/guestfs-actions.pod:6399
25309 #: ../src/guestfs-actions.pod:6418 ../src/guestfs-actions.pod:6439
25310 #: ../src/guestfs-actions.pod:6458 ../src/guestfs-actions.pod:6475
25311 #: ../src/guestfs-actions.pod:6494 ../src/guestfs-actions.pod:6522
25312 #: ../src/guestfs-actions.pod:6546 ../src/guestfs-actions.pod:6565
25313 #: ../src/guestfs-actions.pod:6581 ../src/guestfs-actions.pod:6605
25314 #: ../src/guestfs-actions.pod:6624 ../src/guestfs-actions.pod:6639
25315 #: ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6702
25316 #: ../src/guestfs-actions.pod:6732 ../src/guestfs-actions.pod:6765
25317 #: ../src/guestfs-actions.pod:6880 ../src/guestfs-actions.pod:7001
25318 #: ../src/guestfs-actions.pod:7013 ../src/guestfs-actions.pod:7026
25319 #: ../src/guestfs-actions.pod:7039 ../src/guestfs-actions.pod:7061
25320 #: ../src/guestfs-actions.pod:7074 ../src/guestfs-actions.pod:7087
25321 #: ../src/guestfs-actions.pod:7100 ../src/guestfs-actions.pod:7115
25322 #: ../src/guestfs-actions.pod:7174 ../src/guestfs-actions.pod:7191
25323 #: ../src/guestfs-actions.pod:7207 ../src/guestfs-actions.pod:7223
25324 #: ../src/guestfs-actions.pod:7240 ../src/guestfs-actions.pod:7253
25325 #: ../src/guestfs-actions.pod:7273 ../src/guestfs-actions.pod:7309
25326 #: ../src/guestfs-actions.pod:7323 ../src/guestfs-actions.pod:7364
25327 #: ../src/guestfs-actions.pod:7377 ../src/guestfs-actions.pod:7395
25328 #: ../src/guestfs-actions.pod:7429 ../src/guestfs-actions.pod:7465
25329 #: ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7596
25330 #: ../src/guestfs-actions.pod:7610 ../src/guestfs-actions.pod:7665
25331 #: ../src/guestfs-actions.pod:7678 ../src/guestfs-actions.pod:7723
25332 #: ../src/guestfs-actions.pod:7763 ../src/guestfs-actions.pod:7819
25333 #: ../src/guestfs-actions.pod:7839 ../src/guestfs-actions.pod:7872
25334 #: ../src/guestfs-actions.pod:7936 ../src/guestfs-actions.pod:7959
25335 #: ../src/guestfs-actions.pod:7988
25336 msgid "This function returns 0 on success or -1 on error."
25340 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
25341 #: ../src/guestfs-actions.pod:1281 ../src/guestfs-actions.pod:2096
25342 #: ../src/guestfs-actions.pod:2194 ../src/guestfs-actions.pod:2319
25343 #: ../src/guestfs-actions.pod:3776 ../src/guestfs-actions.pod:3796
25344 #: ../src/guestfs-actions.pod:5094 ../src/guestfs-actions.pod:6360
25345 #: ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6626
25346 #: ../src/guestfs-actions.pod:7117 ../src/guestfs-actions.pod:7242
25347 #: ../src/guestfs-actions.pod:7765
25348 msgid "(Added in 0.3)"
25352 #: ../src/guestfs-actions.pod:41
25353 msgid "guestfs_add_domain"
25357 #: ../src/guestfs-actions.pod:43
25361 " guestfs_add_domain (guestfs_h *g,\n"
25362 " const char *dom,\n"
25368 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
25369 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:1161
25370 #: ../src/guestfs-actions.pod:1213 ../src/guestfs-actions.pod:2979
25371 #: ../src/guestfs-actions.pod:4795 ../src/guestfs-actions.pod:5104
25372 #: ../src/guestfs-actions.pod:5321
25374 "You may supply a list of optional arguments to this call. Use zero or more "
25375 "of the following pairs of parameters, and terminate the list with C<-1> on "
25376 "its own. See L</CALLS WITH OPTIONAL ARGUMENTS>."
25380 #: ../src/guestfs-actions.pod:53
25383 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25384 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25385 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25386 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25387 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25392 #: ../src/guestfs-actions.pod:59
25394 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
25395 "It works by connecting to libvirt, requesting the domain and domain XML from "
25396 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25401 #: ../src/guestfs-actions.pod:94
25403 "The other optional parameters are passed directly through to "
25404 "C<guestfs_add_drive_opts>."
25408 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
25409 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
25410 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
25411 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1496
25412 #: ../src/guestfs-actions.pod:1852 ../src/guestfs-actions.pod:2055
25413 #: ../src/guestfs-actions.pod:2166 ../src/guestfs-actions.pod:2217
25414 #: ../src/guestfs-actions.pod:2269 ../src/guestfs-actions.pod:2283
25415 #: ../src/guestfs-actions.pod:2306 ../src/guestfs-actions.pod:2621
25416 #: ../src/guestfs-actions.pod:3097 ../src/guestfs-actions.pod:3115
25417 #: ../src/guestfs-actions.pod:5280 ../src/guestfs-actions.pod:5500
25418 #: ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:5938
25419 #: ../src/guestfs-actions.pod:7350 ../src/guestfs-actions.pod:7776
25420 #: ../src/guestfs-actions.pod:7789 ../src/guestfs-actions.pod:7802
25421 msgid "On error this function returns -1."
25425 #: ../src/guestfs-actions.pod:99
25426 msgid "(Added in 1.7.4)"
25430 #: ../src/guestfs-actions.pod:101
25431 msgid "guestfs_add_domain_va"
25435 #: ../src/guestfs-actions.pod:103
25439 " guestfs_add_domain_va (guestfs_h *g,\n"
25440 " const char *dom,\n"
25441 " va_list args);\n"
25446 #: ../src/guestfs-actions.pod:108
25447 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25451 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
25452 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
25453 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
25454 #: ../src/guestfs-actions.pod:1189 ../src/guestfs-actions.pod:1202
25455 #: ../src/guestfs-actions.pod:1248 ../src/guestfs-actions.pod:1261
25456 #: ../src/guestfs-actions.pod:3063 ../src/guestfs-actions.pod:3075
25457 #: ../src/guestfs-actions.pod:4860 ../src/guestfs-actions.pod:4872
25458 #: ../src/guestfs-actions.pod:5132 ../src/guestfs-actions.pod:5144
25459 #: ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5381
25460 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25461 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
25464 #: ../src/guestfs-actions.pod:112
25465 msgid "guestfs_add_domain_argv"
25466 msgstr "guestfs_add_domain_argv"
25469 #: ../src/guestfs-actions.pod:114
25473 " guestfs_add_domain_argv (guestfs_h *g,\n"
25474 " const char *dom,\n"
25475 " const struct guestfs_add_domain_argv *optargs);\n"
25480 #: ../src/guestfs-actions.pod:119
25481 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25485 #: ../src/guestfs-actions.pod:123
25486 msgid "guestfs_add_drive"
25490 #: ../src/guestfs-actions.pod:125
25494 " guestfs_add_drive (guestfs_h *g,\n"
25495 " const char *filename);\n"
25500 #: ../src/guestfs-actions.pod:129
25502 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
25503 "optional parameters, so the disk is added writable, with the format being "
25504 "detected automatically."
25508 #: ../src/guestfs-actions.pod:133
25510 "Automatic detection of the format opens you up to a potential security hole "
25511 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
25512 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
25513 "you should think about replacing calls to this function with calls to "
25514 "C<guestfs_add_drive_opts>, and specifying the format."
25518 #: ../src/guestfs-actions.pod:144
25519 msgid "guestfs_add_drive_opts"
25523 #: ../src/guestfs-actions.pod:146
25527 " guestfs_add_drive_opts (guestfs_h *g,\n"
25528 " const char *filename,\n"
25534 #: ../src/guestfs-actions.pod:156
25537 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25538 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25539 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25544 #: ../src/guestfs-actions.pod:185
25546 "This forces the image format. If you omit this (or use C<guestfs_add_drive> "
25547 "or C<guestfs_add_drive_ro>) then the format is automatically detected. "
25548 "Possible formats include C<raw> and C<qcow2>."
25552 #: ../src/guestfs-actions.pod:196
25554 "This rarely-used option lets you emulate the behaviour of the deprecated "
25555 "C<guestfs_add_drive_with_if> call (q.v.)"
25559 #: ../src/guestfs-actions.pod:203
25560 msgid "(Added in 1.5.23)"
25564 #: ../src/guestfs-actions.pod:205
25565 msgid "guestfs_add_drive_opts_va"
25569 #: ../src/guestfs-actions.pod:207
25573 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25574 " const char *filename,\n"
25575 " va_list args);\n"
25580 #: ../src/guestfs-actions.pod:212
25581 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25585 #: ../src/guestfs-actions.pod:216
25586 msgid "guestfs_add_drive_opts_argv"
25590 #: ../src/guestfs-actions.pod:218
25594 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25595 " const char *filename,\n"
25596 " const struct guestfs_add_drive_opts_argv *optargs);\n"
25601 #: ../src/guestfs-actions.pod:223
25602 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25606 #: ../src/guestfs-actions.pod:227
25607 msgid "guestfs_add_drive_ro"
25611 #: ../src/guestfs-actions.pod:229
25615 " guestfs_add_drive_ro (guestfs_h *g,\n"
25616 " const char *filename);\n"
25621 #: ../src/guestfs-actions.pod:233
25623 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25624 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25625 "disk is added read-only, with the format being detected automatically."
25629 #: ../src/guestfs-actions.pod:240
25630 msgid "(Added in 1.0.38)"
25634 #: ../src/guestfs-actions.pod:242
25635 msgid "guestfs_add_drive_ro_with_if"
25639 #: ../src/guestfs-actions.pod:244
25643 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25644 " const char *filename,\n"
25645 " const char *iface);\n"
25650 #: ../src/guestfs-actions.pod:256
25652 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25653 "QEMU interface emulation to use at run time."
25657 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
25658 #: ../src/guestfs-actions.pod:2580
25659 msgid "(Added in 1.0.84)"
25663 #: ../src/guestfs-actions.pod:263
25664 msgid "guestfs_add_drive_with_if"
25668 #: ../src/guestfs-actions.pod:265
25672 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25673 " const char *filename,\n"
25674 " const char *iface);\n"
25679 #: ../src/guestfs-actions.pod:277
25681 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25682 "QEMU interface emulation to use at run time."
25686 #: ../src/guestfs-actions.pod:284
25687 msgid "guestfs_aug_clear"
25691 #: ../src/guestfs-actions.pod:286
25695 " guestfs_aug_clear (guestfs_h *g,\n"
25696 " const char *augpath);\n"
25701 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2308
25702 msgid "(Added in 1.3.4)"
25706 #: ../src/guestfs-actions.pod:297
25707 msgid "guestfs_aug_close"
25711 #: ../src/guestfs-actions.pod:299
25715 " guestfs_aug_close (guestfs_h *g);\n"
25720 #: ../src/guestfs-actions.pod:302
25722 "Close the current Augeas handle and free up any resources used by it. After "
25723 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25724 "any other Augeas functions."
25728 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
25729 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
25730 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
25731 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
25732 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
25733 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
25734 #: ../src/guestfs-actions.pod:5989
25735 msgid "(Added in 0.7)"
25739 #: ../src/guestfs-actions.pod:311
25740 msgid "guestfs_aug_defnode"
25744 #: ../src/guestfs-actions.pod:313
25747 " struct guestfs_int_bool *\n"
25748 " guestfs_aug_defnode (guestfs_h *g,\n"
25749 " const char *name,\n"
25750 " const char *expr,\n"
25751 " const char *val);\n"
25756 #: ../src/guestfs-actions.pod:322
25758 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25759 "calling C<guestfs_aug_set> C<expr>, C<value>. C<name> will be the nodeset "
25760 "containing that single node."
25764 #: ../src/guestfs-actions.pod:330
25766 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25767 "an error. I<The caller must call C<guestfs_free_int_bool> after use>."
25771 #: ../src/guestfs-actions.pod:336
25772 msgid "guestfs_aug_defvar"
25776 #: ../src/guestfs-actions.pod:338
25780 " guestfs_aug_defvar (guestfs_h *g,\n"
25781 " const char *name,\n"
25782 " const char *expr);\n"
25787 #: ../src/guestfs-actions.pod:354
25788 msgid "guestfs_aug_get"
25792 #: ../src/guestfs-actions.pod:356
25796 " guestfs_aug_get (guestfs_h *g,\n"
25797 " const char *augpath);\n"
25802 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
25803 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
25804 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
25805 #: ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1382
25806 #: ../src/guestfs-actions.pod:1401 ../src/guestfs-actions.pod:1535
25807 #: ../src/guestfs-actions.pod:1723 ../src/guestfs-actions.pod:1835
25808 #: ../src/guestfs-actions.pod:1998 ../src/guestfs-actions.pod:2015
25809 #: ../src/guestfs-actions.pod:2082 ../src/guestfs-actions.pod:2125
25810 #: ../src/guestfs-actions.pod:2146 ../src/guestfs-actions.pod:2331
25811 #: ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:2749
25812 #: ../src/guestfs-actions.pod:2843 ../src/guestfs-actions.pod:2947
25813 #: ../src/guestfs-actions.pod:2966 ../src/guestfs-actions.pod:3180
25814 #: ../src/guestfs-actions.pod:3208 ../src/guestfs-actions.pod:3229
25815 #: ../src/guestfs-actions.pod:3263 ../src/guestfs-actions.pod:3322
25816 #: ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3362
25817 #: ../src/guestfs-actions.pod:3989 ../src/guestfs-actions.pod:4342
25818 #: ../src/guestfs-actions.pod:4512 ../src/guestfs-actions.pod:4622
25819 #: ../src/guestfs-actions.pod:5518 ../src/guestfs-actions.pod:5717
25820 #: ../src/guestfs-actions.pod:5887 ../src/guestfs-actions.pod:6065
25821 #: ../src/guestfs-actions.pod:6114 ../src/guestfs-actions.pod:6786
25822 #: ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6826
25823 #: ../src/guestfs-actions.pod:6850 ../src/guestfs-actions.pod:7524
25824 #: ../src/guestfs-actions.pod:7543 ../src/guestfs-actions.pod:7561
25825 #: ../src/guestfs-actions.pod:7735 ../src/guestfs-actions.pod:8052
25827 "This function returns a string, or NULL on error. I<The caller must free "
25828 "the returned string after use>."
25832 #: ../src/guestfs-actions.pod:368
25833 msgid "guestfs_aug_init"
25837 #: ../src/guestfs-actions.pod:370
25841 " guestfs_aug_init (guestfs_h *g,\n"
25842 " const char *root,\n"
25848 #: ../src/guestfs-actions.pod:379
25849 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25853 #: ../src/guestfs-actions.pod:404
25855 "This option is only useful when debugging Augeas lenses. Use of this option "
25856 "may require additional memory for the libguestfs appliance. You may need to "
25857 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25858 "C<guestfs_set_memsize>."
25862 #: ../src/guestfs-actions.pod:419
25863 msgid "Do not load the tree in C<guestfs_aug_init>."
25867 #: ../src/guestfs-actions.pod:423
25868 msgid "To close the handle, you can call C<guestfs_aug_close>."
25872 #: ../src/guestfs-actions.pod:431
25873 msgid "guestfs_aug_insert"
25877 #: ../src/guestfs-actions.pod:433
25881 " guestfs_aug_insert (guestfs_h *g,\n"
25882 " const char *augpath,\n"
25883 " const char *label,\n"
25889 #: ../src/guestfs-actions.pod:451
25890 msgid "guestfs_aug_load"
25894 #: ../src/guestfs-actions.pod:453
25898 " guestfs_aug_load (guestfs_h *g);\n"
25903 #: ../src/guestfs-actions.pod:465
25904 msgid "guestfs_aug_ls"
25908 #: ../src/guestfs-actions.pod:467
25912 " guestfs_aug_ls (guestfs_h *g,\n"
25913 " const char *augpath);\n"
25918 #: ../src/guestfs-actions.pod:471
25920 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25921 "sorting the resulting nodes into alphabetical order."
25925 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
25926 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
25927 #: ../src/guestfs-actions.pod:1550 ../src/guestfs-actions.pod:1569
25928 #: ../src/guestfs-actions.pod:1672 ../src/guestfs-actions.pod:1691
25929 #: ../src/guestfs-actions.pod:1937 ../src/guestfs-actions.pod:2403
25930 #: ../src/guestfs-actions.pod:2419 ../src/guestfs-actions.pod:2438
25931 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2527
25932 #: ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2647
25933 #: ../src/guestfs-actions.pod:2908 ../src/guestfs-actions.pod:3282
25934 #: ../src/guestfs-actions.pod:3558 ../src/guestfs-actions.pod:3872
25935 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3909
25936 #: ../src/guestfs-actions.pod:3971 ../src/guestfs-actions.pod:4076
25937 #: ../src/guestfs-actions.pod:4484 ../src/guestfs-actions.pod:5241
25938 #: ../src/guestfs-actions.pod:5859 ../src/guestfs-actions.pod:5985
25939 #: ../src/guestfs-actions.pod:6099 ../src/guestfs-actions.pod:6866
25940 #: ../src/guestfs-actions.pod:6927 ../src/guestfs-actions.pod:6982
25941 #: ../src/guestfs-actions.pod:7128 ../src/guestfs-actions.pod:7152
25942 #: ../src/guestfs-actions.pod:7628 ../src/guestfs-actions.pod:7648
25943 #: ../src/guestfs-actions.pod:7695 ../src/guestfs-actions.pod:7889
25944 #: ../src/guestfs-actions.pod:7908 ../src/guestfs-actions.pod:8002
25945 #: ../src/guestfs-actions.pod:8021 ../src/guestfs-actions.pod:8067
25946 #: ../src/guestfs-actions.pod:8086
25948 "This function returns a NULL-terminated array of strings (like L<environ(3)"
25949 ">), or NULL if there was an error. I<The caller must free the strings and "
25950 "the array after use>."
25954 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
25955 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1607
25956 #: ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:3667
25957 #: ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:4375
25958 #: ../src/guestfs-actions.pod:4562 ../src/guestfs-actions.pod:4595
25959 #: ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:5245
25960 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:6197
25961 #: ../src/guestfs-actions.pod:6211 ../src/guestfs-actions.pod:6223
25962 #: ../src/guestfs-actions.pod:6707 ../src/guestfs-actions.pod:7366
25963 #: ../src/guestfs-actions.pod:7379 ../src/guestfs-actions.pod:7612
25964 #: ../src/guestfs-actions.pod:7877
25965 msgid "(Added in 0.8)"
25969 #: ../src/guestfs-actions.pod:480
25970 msgid "guestfs_aug_match"
25974 #: ../src/guestfs-actions.pod:482
25978 " guestfs_aug_match (guestfs_h *g,\n"
25979 " const char *augpath);\n"
25984 #: ../src/guestfs-actions.pod:496
25985 msgid "guestfs_aug_mv"
25989 #: ../src/guestfs-actions.pod:498
25993 " guestfs_aug_mv (guestfs_h *g,\n"
25994 " const char *src,\n"
25995 " const char *dest);\n"
26000 #: ../src/guestfs-actions.pod:510
26001 msgid "guestfs_aug_rm"
26005 #: ../src/guestfs-actions.pod:512
26009 " guestfs_aug_rm (guestfs_h *g,\n"
26010 " const char *augpath);\n"
26015 #: ../src/guestfs-actions.pod:524
26016 msgid "guestfs_aug_save"
26020 #: ../src/guestfs-actions.pod:526
26024 " guestfs_aug_save (guestfs_h *g);\n"
26029 #: ../src/guestfs-actions.pod:531
26031 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
26036 #: ../src/guestfs-actions.pod:538
26037 msgid "guestfs_aug_set"
26041 #: ../src/guestfs-actions.pod:540
26045 " guestfs_aug_set (guestfs_h *g,\n"
26046 " const char *augpath,\n"
26047 " const char *val);\n"
26052 #: ../src/guestfs-actions.pod:547
26054 "In the Augeas API, it is possible to clear a node by setting the value to "
26055 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
26056 "this call. Instead you must use the C<guestfs_aug_clear> call."
26060 #: ../src/guestfs-actions.pod:556
26061 msgid "guestfs_available"
26065 #: ../src/guestfs-actions.pod:558
26069 " guestfs_available (guestfs_h *g,\n"
26070 " char *const *groups);\n"
26075 #: ../src/guestfs-actions.pod:566
26077 "The libguestfs groups, and the functions that those groups correspond to, "
26078 "are listed in L<guestfs(3)/AVAILABILITY>. You can also fetch this list at "
26079 "runtime by calling C<guestfs_available_all_groups>."
26083 #: ../src/guestfs-actions.pod:590
26084 msgid "You must call C<guestfs_launch> before calling this function."
26088 #: ../src/guestfs-actions.pod:612
26090 "This call was added in version C<1.0.80>. In previous versions of "
26091 "libguestfs all you could do would be to speculatively execute a command to "
26092 "find out if the daemon implemented it. See also C<guestfs_version>."
26096 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1352
26097 msgid "(Added in 1.0.80)"
26101 #: ../src/guestfs-actions.pod:623
26102 msgid "guestfs_available_all_groups"
26106 #: ../src/guestfs-actions.pod:625
26110 " guestfs_available_all_groups (guestfs_h *g);\n"
26115 #: ../src/guestfs-actions.pod:628
26117 "This command returns a list of all optional groups that this daemon knows "
26118 "about. Note this returns both supported and unsupported groups. To find "
26119 "out which ones the daemon can actually support you have to call "
26120 "C<guestfs_available> on each member of the returned list."
26124 #: ../src/guestfs-actions.pod:634
26125 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
26129 #: ../src/guestfs-actions.pod:640
26130 msgid "(Added in 1.3.15)"
26134 #: ../src/guestfs-actions.pod:642
26135 msgid "guestfs_base64_in"
26139 #: ../src/guestfs-actions.pod:644
26143 " guestfs_base64_in (guestfs_h *g,\n"
26144 " const char *base64file,\n"
26145 " const char *filename);\n"
26150 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
26151 msgid "(Added in 1.3.5)"
26155 #: ../src/guestfs-actions.pod:656
26156 msgid "guestfs_base64_out"
26160 #: ../src/guestfs-actions.pod:658
26164 " guestfs_base64_out (guestfs_h *g,\n"
26165 " const char *filename,\n"
26166 " const char *base64file);\n"
26171 #: ../src/guestfs-actions.pod:670
26172 msgid "guestfs_blockdev_flushbufs"
26176 #: ../src/guestfs-actions.pod:672
26180 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26181 " const char *device);\n"
26186 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
26187 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
26188 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
26189 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
26190 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
26191 msgid "(Added in 0.9.3)"
26195 #: ../src/guestfs-actions.pod:685
26196 msgid "guestfs_blockdev_getbsz"
26200 #: ../src/guestfs-actions.pod:687
26204 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26205 " const char *device);\n"
26210 #: ../src/guestfs-actions.pod:702
26211 msgid "guestfs_blockdev_getro"
26215 #: ../src/guestfs-actions.pod:704
26219 " guestfs_blockdev_getro (guestfs_h *g,\n"
26220 " const char *device);\n"
26225 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1590
26226 #: ../src/guestfs-actions.pod:1605 ../src/guestfs-actions.pod:2094
26227 #: ../src/guestfs-actions.pod:2105 ../src/guestfs-actions.pod:2177
26228 #: ../src/guestfs-actions.pod:2203 ../src/guestfs-actions.pod:2243
26229 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:2294
26230 #: ../src/guestfs-actions.pod:2317 ../src/guestfs-actions.pod:3379
26231 #: ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:3413
26232 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3589
26233 #: ../src/guestfs-actions.pod:3604 ../src/guestfs-actions.pod:3618
26234 #: ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3649
26235 #: ../src/guestfs-actions.pod:3665 ../src/guestfs-actions.pod:3679
26236 #: ../src/guestfs-actions.pod:3692 ../src/guestfs-actions.pod:3706
26237 #: ../src/guestfs-actions.pod:3721 ../src/guestfs-actions.pod:3736
26238 #: ../src/guestfs-actions.pod:3749 ../src/guestfs-actions.pod:3763
26239 #: ../src/guestfs-actions.pod:5482
26240 msgid "This function returns a C truth value on success or -1 on error."
26244 #: ../src/guestfs-actions.pod:717
26245 msgid "guestfs_blockdev_getsize64"
26249 #: ../src/guestfs-actions.pod:719
26253 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26254 " const char *device);\n"
26259 #: ../src/guestfs-actions.pod:725
26260 msgid "See also C<guestfs_blockdev_getsz>."
26264 #: ../src/guestfs-actions.pod:733
26265 msgid "guestfs_blockdev_getss"
26269 #: ../src/guestfs-actions.pod:735
26273 " guestfs_blockdev_getss (guestfs_h *g,\n"
26274 " const char *device);\n"
26279 #: ../src/guestfs-actions.pod:742
26281 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26286 #: ../src/guestfs-actions.pod:751
26287 msgid "guestfs_blockdev_getsz"
26291 #: ../src/guestfs-actions.pod:753
26295 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26296 " const char *device);\n"
26301 #: ../src/guestfs-actions.pod:760
26303 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26304 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26308 #: ../src/guestfs-actions.pod:770
26309 msgid "guestfs_blockdev_rereadpt"
26313 #: ../src/guestfs-actions.pod:772
26317 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26318 " const char *device);\n"
26323 #: ../src/guestfs-actions.pod:784
26324 msgid "guestfs_blockdev_setbsz"
26328 #: ../src/guestfs-actions.pod:786
26332 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26333 " const char *device,\n"
26334 " int blocksize);\n"
26339 #: ../src/guestfs-actions.pod:802
26340 msgid "guestfs_blockdev_setro"
26344 #: ../src/guestfs-actions.pod:804
26348 " guestfs_blockdev_setro (guestfs_h *g,\n"
26349 " const char *device);\n"
26354 #: ../src/guestfs-actions.pod:816
26355 msgid "guestfs_blockdev_setrw"
26359 #: ../src/guestfs-actions.pod:818
26363 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26364 " const char *device);\n"
26369 #: ../src/guestfs-actions.pod:830
26370 msgid "guestfs_btrfs_filesystem_resize"
26374 #: ../src/guestfs-actions.pod:832
26378 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26379 " const char *mountpoint,\n"
26385 #: ../src/guestfs-actions.pod:842
26388 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26393 #: ../src/guestfs-actions.pod:865
26394 msgid "(Added in 1.11.17)"
26398 #: ../src/guestfs-actions.pod:867
26399 msgid "guestfs_btrfs_filesystem_resize_va"
26403 #: ../src/guestfs-actions.pod:869
26407 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26408 " const char *mountpoint,\n"
26409 " va_list args);\n"
26414 #: ../src/guestfs-actions.pod:874
26415 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26419 #: ../src/guestfs-actions.pod:878
26420 msgid "guestfs_btrfs_filesystem_resize_argv"
26424 #: ../src/guestfs-actions.pod:880
26428 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26429 " const char *mountpoint,\n"
26430 " const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26435 #: ../src/guestfs-actions.pod:885
26436 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26440 #: ../src/guestfs-actions.pod:889
26441 msgid "guestfs_case_sensitive_path"
26445 #: ../src/guestfs-actions.pod:891
26449 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26450 " const char *path);\n"
26455 #: ../src/guestfs-actions.pod:917
26457 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\") might return C<"
26458 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26459 "how the directories were originally created under Windows)."
26463 #: ../src/guestfs-actions.pod:925
26464 msgid "See also C<guestfs_realpath>."
26468 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7546
26469 msgid "(Added in 1.0.75)"
26473 #: ../src/guestfs-actions.pod:932
26474 msgid "guestfs_cat"
26478 #: ../src/guestfs-actions.pod:934
26482 " guestfs_cat (guestfs_h *g,\n"
26483 " const char *path);\n"
26488 #: ../src/guestfs-actions.pod:940
26490 "Note that this function cannot correctly handle binary files (specifically, "
26491 "files containing C<\\0> character which is treated as end of string). For "
26492 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26493 "functions which have a more complex interface."
26497 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3893
26498 #: ../src/guestfs-actions.pod:3975 ../src/guestfs-actions.pod:3992
26499 #: ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4488
26500 #: ../src/guestfs-actions.pod:4502 ../src/guestfs-actions.pod:5863
26501 #: ../src/guestfs-actions.pod:5877 ../src/guestfs-actions.pod:7699
26502 #: ../src/guestfs-actions.pod:7713
26503 msgid "(Added in 0.4)"
26507 #: ../src/guestfs-actions.pod:953
26508 msgid "guestfs_checksum"
26512 #: ../src/guestfs-actions.pod:955
26516 " guestfs_checksum (guestfs_h *g,\n"
26517 " const char *csumtype,\n"
26518 " const char *path);\n"
26523 #: ../src/guestfs-actions.pod:1001
26524 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26528 #: ../src/guestfs-actions.pod:1003
26529 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26533 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1427
26534 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:3591
26535 #: ../src/guestfs-actions.pod:3620 ../src/guestfs-actions.pod:3681
26536 #: ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:7402
26537 msgid "(Added in 1.0.2)"
26541 #: ../src/guestfs-actions.pod:1010
26542 msgid "guestfs_checksum_device"
26546 #: ../src/guestfs-actions.pod:1012
26550 " guestfs_checksum_device (guestfs_h *g,\n"
26551 " const char *csumtype,\n"
26552 " const char *device);\n"
26557 #: ../src/guestfs-actions.pod:1017
26559 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26560 "device named C<device>. For the types of checksums supported see the "
26561 "C<guestfs_checksum> command."
26565 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5312
26566 #: ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5484
26567 #: ../src/guestfs-actions.pod:5502 ../src/guestfs-actions.pod:5684
26568 #: ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7325
26569 #: ../src/guestfs-actions.pod:7725
26570 msgid "(Added in 1.3.2)"
26574 #: ../src/guestfs-actions.pod:1026
26575 msgid "guestfs_checksums_out"
26579 #: ../src/guestfs-actions.pod:1028
26583 " guestfs_checksums_out (guestfs_h *g,\n"
26584 " const char *csumtype,\n"
26585 " const char *directory,\n"
26586 " const char *sumsfile);\n"
26591 #: ../src/guestfs-actions.pod:1048
26592 msgid "(Added in 1.3.7)"
26596 #: ../src/guestfs-actions.pod:1050
26597 msgid "guestfs_chmod"
26601 #: ../src/guestfs-actions.pod:1052
26605 " guestfs_chmod (guestfs_h *g,\n"
26607 " const char *path);\n"
26612 #: ../src/guestfs-actions.pod:1070
26613 msgid "guestfs_chown"
26617 #: ../src/guestfs-actions.pod:1072
26621 " guestfs_chown (guestfs_h *g,\n"
26624 " const char *path);\n"
26629 #: ../src/guestfs-actions.pod:1088
26630 msgid "guestfs_command"
26634 #: ../src/guestfs-actions.pod:1090
26638 " guestfs_command (guestfs_h *g,\n"
26639 " char *const *arguments);\n"
26644 #: ../src/guestfs-actions.pod:1099
26646 "The single parameter is an argv-style list of arguments. The first element "
26647 "is the name of the program to run. Subsequent elements are parameters. The "
26648 "list must be non-empty (ie. must contain a program name). Note that the "
26649 "command runs directly, and is I<not> invoked via the shell (see "
26654 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
26655 #: ../src/guestfs-actions.pod:1726
26656 msgid "(Added in 0.9.1)"
26660 #: ../src/guestfs-actions.pod:1132
26661 msgid "guestfs_command_lines"
26665 #: ../src/guestfs-actions.pod:1134
26669 " guestfs_command_lines (guestfs_h *g,\n"
26670 " char *const *arguments);\n"
26675 #: ../src/guestfs-actions.pod:1138
26677 "This is the same as C<guestfs_command>, but splits the result into a list of "
26682 #: ../src/guestfs-actions.pod:1141
26683 msgid "See also: C<guestfs_sh_lines>"
26687 #: ../src/guestfs-actions.pod:1152
26689 #| msgid "guestfs_zero_device"
26690 msgid "guestfs_compress_device_out"
26691 msgstr "guestfs_zero_device"
26694 #: ../src/guestfs-actions.pod:1154
26698 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
26699 #| " const char *device,\n"
26700 #| " const char *key,\n"
26701 #| " int keyslot,\n"
26702 #| " const char *cipher);\n"
26706 " guestfs_compress_device_out (guestfs_h *g,\n"
26707 " const char *ctype,\n"
26708 " const char *device,\n"
26709 " const char *zdevice,\n"
26714 " guestfs_luks_format_cipher (guestfs_h *g,\n"
26715 " const char *device,\n"
26716 " const char *key,\n"
26718 " const char *cipher);\n"
26722 #: ../src/guestfs-actions.pod:1166
26725 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26730 #: ../src/guestfs-actions.pod:1171
26732 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26733 "C<guestfs_compress_out>."
26737 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1235
26738 #: ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:6583
26740 #| msgid "(Added in 1.3.1)"
26741 msgid "(Added in 1.13.15)"
26742 msgstr "(Додано у 1.3.1)"
26745 #: ../src/guestfs-actions.pod:1178
26747 #| msgid "guestfs_zero_device"
26748 msgid "guestfs_compress_device_out_va"
26749 msgstr "guestfs_zero_device"
26752 #: ../src/guestfs-actions.pod:1180
26756 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
26757 #| " const char *device,\n"
26758 #| " const char *key,\n"
26759 #| " int keyslot,\n"
26760 #| " const char *cipher);\n"
26764 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26765 " const char *ctype,\n"
26766 " const char *device,\n"
26767 " const char *zdevice,\n"
26768 " va_list args);\n"
26772 " guestfs_luks_format_cipher (guestfs_h *g,\n"
26773 " const char *device,\n"
26774 " const char *key,\n"
26776 " const char *cipher);\n"
26780 #: ../src/guestfs-actions.pod:1187
26781 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26785 #: ../src/guestfs-actions.pod:1191
26787 #| msgid "guestfs_mkfs_opts_argv"
26788 msgid "guestfs_compress_device_out_argv"
26789 msgstr "guestfs_mkfs_opts_argv"
26792 #: ../src/guestfs-actions.pod:1193
26796 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
26797 #| " const char *fstype,\n"
26798 #| " const char *device,\n"
26799 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
26803 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26804 " const char *ctype,\n"
26805 " const char *device,\n"
26806 " const char *zdevice,\n"
26807 " const struct guestfs_compress_device_out_argv *optargs);\n"
26811 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
26812 " const char *fstype,\n"
26813 " const char *device,\n"
26814 " const struct guestfs_mkfs_opts_argv *optargs);\n"
26818 #: ../src/guestfs-actions.pod:1200
26819 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26823 #: ../src/guestfs-actions.pod:1204
26825 #| msgid "guestfs_create"
26826 msgid "guestfs_compress_out"
26827 msgstr "guestfs_create"
26830 #: ../src/guestfs-actions.pod:1206
26834 #| " guestfs_luks_add_key (guestfs_h *g,\n"
26835 #| " const char *device,\n"
26836 #| " const char *key,\n"
26837 #| " const char *newkey,\n"
26838 #| " int keyslot);\n"
26842 " guestfs_compress_out (guestfs_h *g,\n"
26843 " const char *ctype,\n"
26844 " const char *file,\n"
26845 " const char *zfile,\n"
26850 " guestfs_luks_add_key (guestfs_h *g,\n"
26851 " const char *device,\n"
26852 " const char *key,\n"
26853 " const char *newkey,\n"
26858 #: ../src/guestfs-actions.pod:1218
26861 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26866 #: ../src/guestfs-actions.pod:1237
26868 #| msgid "guestfs_mkfs_opts_va"
26869 msgid "guestfs_compress_out_va"
26870 msgstr "guestfs_mkfs_opts_va"
26873 #: ../src/guestfs-actions.pod:1239
26877 #| " guestfs_luks_add_key (guestfs_h *g,\n"
26878 #| " const char *device,\n"
26879 #| " const char *key,\n"
26880 #| " const char *newkey,\n"
26881 #| " int keyslot);\n"
26885 " guestfs_compress_out_va (guestfs_h *g,\n"
26886 " const char *ctype,\n"
26887 " const char *file,\n"
26888 " const char *zfile,\n"
26889 " va_list args);\n"
26893 " guestfs_luks_add_key (guestfs_h *g,\n"
26894 " const char *device,\n"
26895 " const char *key,\n"
26896 " const char *newkey,\n"
26901 #: ../src/guestfs-actions.pod:1246
26902 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26906 #: ../src/guestfs-actions.pod:1250
26908 #| msgid "guestfs_mkfs_opts_argv"
26909 msgid "guestfs_compress_out_argv"
26910 msgstr "guestfs_mkfs_opts_argv"
26913 #: ../src/guestfs-actions.pod:1252
26917 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
26918 #| " const char *fstype,\n"
26919 #| " const char *device,\n"
26920 #| " const struct guestfs_mkfs_opts_argv *optargs);\n"
26924 " guestfs_compress_out_argv (guestfs_h *g,\n"
26925 " const char *ctype,\n"
26926 " const char *file,\n"
26927 " const char *zfile,\n"
26928 " const struct guestfs_compress_out_argv *optargs);\n"
26932 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
26933 " const char *fstype,\n"
26934 " const char *device,\n"
26935 " const struct guestfs_mkfs_opts_argv *optargs);\n"
26939 #: ../src/guestfs-actions.pod:1259
26940 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26944 #: ../src/guestfs-actions.pod:1263
26945 msgid "guestfs_config"
26949 #: ../src/guestfs-actions.pod:1265
26953 " guestfs_config (guestfs_h *g,\n"
26954 " const char *qemuparam,\n"
26955 " const char *qemuvalue);\n"
26960 #: ../src/guestfs-actions.pod:1283
26961 msgid "guestfs_copy_size"
26965 #: ../src/guestfs-actions.pod:1285
26969 " guestfs_copy_size (guestfs_h *g,\n"
26970 " const char *src,\n"
26971 " const char *dest,\n"
26972 " int64_t size);\n"
26977 #: ../src/guestfs-actions.pod:1299 ../src/guestfs-actions.pod:1422
26978 #: ../src/guestfs-actions.pod:1453 ../src/guestfs-actions.pod:1498
26979 #: ../src/guestfs-actions.pod:1875 ../src/guestfs-actions.pod:1897
26980 #: ../src/guestfs-actions.pod:3791 ../src/guestfs-actions.pod:7397
26981 #: ../src/guestfs-actions.pod:7431 ../src/guestfs-actions.pod:7938
26982 #: ../src/guestfs-actions.pod:7961
26984 "This long-running command can generate progress notification messages so "
26985 "that the caller can display a progress bar or indicator. To receive these "
26986 "messages, the caller must register a progress event callback. See L<guestfs"
26987 "(3)/GUESTFS_EVENT_PROGRESS>."
26991 #: ../src/guestfs-actions.pod:1304 ../src/guestfs-actions.pod:4515
26992 #: ../src/guestfs-actions.pod:5890 ../src/guestfs-actions.pod:7632
26993 #: ../src/guestfs-actions.pod:7652 ../src/guestfs-actions.pod:7738
26994 msgid "(Added in 1.0.87)"
26998 #: ../src/guestfs-actions.pod:1306
27003 #: ../src/guestfs-actions.pod:1308
27007 " guestfs_cp (guestfs_h *g,\n"
27008 " const char *src,\n"
27009 " const char *dest);\n"
27014 #: ../src/guestfs-actions.pod:1318 ../src/guestfs-actions.pod:1332
27015 #: ../src/guestfs-actions.pod:1404 ../src/guestfs-actions.pod:1478
27016 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:5259
27017 #: ../src/guestfs-actions.pod:5734
27018 msgid "(Added in 1.0.18)"
27022 #: ../src/guestfs-actions.pod:1320
27023 msgid "guestfs_cp_a"
27027 #: ../src/guestfs-actions.pod:1322
27031 " guestfs_cp_a (guestfs_h *g,\n"
27032 " const char *src,\n"
27033 " const char *dest);\n"
27038 #: ../src/guestfs-actions.pod:1334
27043 #: ../src/guestfs-actions.pod:1336
27047 " guestfs_dd (guestfs_h *g,\n"
27048 " const char *src,\n"
27049 " const char *dest);\n"
27054 #: ../src/guestfs-actions.pod:1346
27056 "If the destination is a device, it must be as large or larger than the "
27057 "source file or device, otherwise the copy will fail. This command cannot do "
27058 "partial copies (see C<guestfs_copy_size>)."
27062 #: ../src/guestfs-actions.pod:1354
27067 #: ../src/guestfs-actions.pod:1356
27071 " guestfs_df (guestfs_h *g);\n"
27076 #: ../src/guestfs-actions.pod:1361 ../src/guestfs-actions.pod:1378
27078 "This command is mostly useful for interactive sessions. It is I<not> "
27079 "intended that you try to parse the output string. Use C<guestfs_statvfs> "
27084 #: ../src/guestfs-actions.pod:1368 ../src/guestfs-actions.pod:1385
27085 #: ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:2510
27086 #: ../src/guestfs-actions.pod:2534 ../src/guestfs-actions.pod:2602
27087 #: ../src/guestfs-actions.pod:4625 ../src/guestfs-actions.pod:5159
27088 #: ../src/guestfs-actions.pod:7135 ../src/guestfs-actions.pod:7159
27089 #: ../src/guestfs-actions.pod:7778 ../src/guestfs-actions.pod:7791
27090 #: ../src/guestfs-actions.pod:7804
27091 msgid "(Added in 1.0.54)"
27095 #: ../src/guestfs-actions.pod:1370
27096 msgid "guestfs_df_h"
27100 #: ../src/guestfs-actions.pod:1372
27104 " guestfs_df_h (guestfs_h *g);\n"
27109 #: ../src/guestfs-actions.pod:1387
27110 msgid "guestfs_dmesg"
27114 #: ../src/guestfs-actions.pod:1389
27118 " guestfs_dmesg (guestfs_h *g);\n"
27123 #: ../src/guestfs-actions.pod:1396
27125 "Another way to get the same information is to enable verbose messages with "
27126 "C<guestfs_set_verbose> or by setting the environment variable "
27127 "C<LIBGUESTFS_DEBUG=1> before running the program."
27131 #: ../src/guestfs-actions.pod:1406
27132 msgid "guestfs_download"
27136 #: ../src/guestfs-actions.pod:1408
27140 " guestfs_download (guestfs_h *g,\n"
27141 " const char *remotefilename,\n"
27142 " const char *filename);\n"
27147 #: ../src/guestfs-actions.pod:1418
27148 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
27152 #: ../src/guestfs-actions.pod:1429
27153 msgid "guestfs_download_offset"
27157 #: ../src/guestfs-actions.pod:1431
27161 " guestfs_download_offset (guestfs_h *g,\n"
27162 " const char *remotefilename,\n"
27163 " const char *filename,\n"
27164 " int64_t offset,\n"
27165 " int64_t size);\n"
27170 #: ../src/guestfs-actions.pod:1444
27172 "Note that there is no limit on the amount of data that can be downloaded "
27173 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
27174 "full amount unless an error occurs."
27178 #: ../src/guestfs-actions.pod:1449
27179 msgid "See also C<guestfs_download>, C<guestfs_pread>."
27183 #: ../src/guestfs-actions.pod:1458 ../src/guestfs-actions.pod:7436
27184 msgid "(Added in 1.5.17)"
27188 #: ../src/guestfs-actions.pod:1460
27189 msgid "guestfs_drop_caches"
27193 #: ../src/guestfs-actions.pod:1462
27197 " guestfs_drop_caches (guestfs_h *g,\n"
27198 " int whattodrop);\n"
27203 #: ../src/guestfs-actions.pod:1480
27208 #: ../src/guestfs-actions.pod:1482
27212 " guestfs_du (guestfs_h *g,\n"
27213 " const char *path);\n"
27218 #: ../src/guestfs-actions.pod:1505
27219 msgid "guestfs_e2fsck_f"
27223 #: ../src/guestfs-actions.pod:1507
27227 " guestfs_e2fsck_f (guestfs_h *g,\n"
27228 " const char *device);\n"
27233 #: ../src/guestfs-actions.pod:1515
27235 "This command is only needed because of C<guestfs_resize2fs> (q.v.). "
27236 "Normally you should use C<guestfs_fsck>."
27240 #: ../src/guestfs-actions.pod:1520
27241 msgid "(Added in 1.0.29)"
27245 #: ../src/guestfs-actions.pod:1522
27246 msgid "guestfs_echo_daemon"
27250 #: ../src/guestfs-actions.pod:1524
27254 " guestfs_echo_daemon (guestfs_h *g,\n"
27255 " char *const *words);\n"
27260 #: ../src/guestfs-actions.pod:1533
27261 msgid "See also C<guestfs_ping_daemon>."
27265 #: ../src/guestfs-actions.pod:1538 ../src/guestfs-actions.pod:2296
27266 #: ../src/guestfs-actions.pod:6607
27267 msgid "(Added in 1.0.69)"
27271 #: ../src/guestfs-actions.pod:1540
27272 msgid "guestfs_egrep"
27276 #: ../src/guestfs-actions.pod:1542
27280 " guestfs_egrep (guestfs_h *g,\n"
27281 " const char *regex,\n"
27282 " const char *path);\n"
27287 #: ../src/guestfs-actions.pod:1557 ../src/guestfs-actions.pod:1576
27288 #: ../src/guestfs-actions.pod:1633 ../src/guestfs-actions.pod:1679
27289 #: ../src/guestfs-actions.pod:1698 ../src/guestfs-actions.pod:2426
27290 #: ../src/guestfs-actions.pod:2445 ../src/guestfs-actions.pod:2623
27291 #: ../src/guestfs-actions.pod:2636 ../src/guestfs-actions.pod:2651
27292 #: ../src/guestfs-actions.pod:2697 ../src/guestfs-actions.pod:2719
27293 #: ../src/guestfs-actions.pod:2732 ../src/guestfs-actions.pod:4005
27294 #: ../src/guestfs-actions.pod:4019 ../src/guestfs-actions.pod:4032
27295 #: ../src/guestfs-actions.pod:4046 ../src/guestfs-actions.pod:5047
27296 #: ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6117
27297 #: ../src/guestfs-actions.pod:7003 ../src/guestfs-actions.pod:7015
27298 #: ../src/guestfs-actions.pod:7028 ../src/guestfs-actions.pod:7041
27299 #: ../src/guestfs-actions.pod:7063 ../src/guestfs-actions.pod:7076
27300 #: ../src/guestfs-actions.pod:7089 ../src/guestfs-actions.pod:7102
27301 #: ../src/guestfs-actions.pod:7896 ../src/guestfs-actions.pod:7915
27302 #: ../src/guestfs-actions.pod:8009 ../src/guestfs-actions.pod:8028
27303 #: ../src/guestfs-actions.pod:8074 ../src/guestfs-actions.pod:8093
27304 msgid "(Added in 1.0.66)"
27308 #: ../src/guestfs-actions.pod:1559
27309 msgid "guestfs_egrepi"
27313 #: ../src/guestfs-actions.pod:1561
27317 " guestfs_egrepi (guestfs_h *g,\n"
27318 " const char *regex,\n"
27319 " const char *path);\n"
27324 #: ../src/guestfs-actions.pod:1578
27325 msgid "guestfs_equal"
27329 #: ../src/guestfs-actions.pod:1580
27333 " guestfs_equal (guestfs_h *g,\n"
27334 " const char *file1,\n"
27335 " const char *file2);\n"
27340 #: ../src/guestfs-actions.pod:1594
27341 msgid "guestfs_exists"
27345 #: ../src/guestfs-actions.pod:1596
27349 " guestfs_exists (guestfs_h *g,\n"
27350 " const char *path);\n"
27355 #: ../src/guestfs-actions.pod:1603
27356 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
27360 #: ../src/guestfs-actions.pod:1609
27361 msgid "guestfs_fallocate"
27365 #: ../src/guestfs-actions.pod:1611
27369 " guestfs_fallocate (guestfs_h *g,\n"
27370 " const char *path,\n"
27376 #: ../src/guestfs-actions.pod:1616
27378 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
27383 #: ../src/guestfs-actions.pod:1635
27384 msgid "guestfs_fallocate64"
27388 #: ../src/guestfs-actions.pod:1637
27392 " guestfs_fallocate64 (guestfs_h *g,\n"
27393 " const char *path,\n"
27399 #: ../src/guestfs-actions.pod:1646
27401 "Note that this call allocates disk blocks for the file. To create a sparse "
27402 "file use C<guestfs_truncate_size> instead."
27406 #: ../src/guestfs-actions.pod:1649
27408 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27409 "oversight it only allowed 30 bit lengths to be specified, effectively "
27410 "limiting the maximum size of files created through that call to 1GB."
27414 #: ../src/guestfs-actions.pod:1660
27415 msgid "(Added in 1.3.17)"
27419 #: ../src/guestfs-actions.pod:1662
27420 msgid "guestfs_fgrep"
27424 #: ../src/guestfs-actions.pod:1664
27428 " guestfs_fgrep (guestfs_h *g,\n"
27429 " const char *pattern,\n"
27430 " const char *path);\n"
27435 #: ../src/guestfs-actions.pod:1681
27436 msgid "guestfs_fgrepi"
27440 #: ../src/guestfs-actions.pod:1683
27444 " guestfs_fgrepi (guestfs_h *g,\n"
27445 " const char *pattern,\n"
27446 " const char *path);\n"
27451 #: ../src/guestfs-actions.pod:1700
27452 msgid "guestfs_file"
27456 #: ../src/guestfs-actions.pod:1702
27460 " guestfs_file (guestfs_h *g,\n"
27461 " const char *path);\n"
27466 #: ../src/guestfs-actions.pod:1720
27468 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27469 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27473 #: ../src/guestfs-actions.pod:1728
27474 msgid "guestfs_file_architecture"
27478 #: ../src/guestfs-actions.pod:1730
27482 " guestfs_file_architecture (guestfs_h *g,\n"
27483 " const char *filename);\n"
27488 #: ../src/guestfs-actions.pod:1838 ../src/guestfs-actions.pod:2001
27489 #: ../src/guestfs-actions.pod:2018 ../src/guestfs-actions.pod:2752
27490 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:2912
27491 #: ../src/guestfs-actions.pod:3099 ../src/guestfs-actions.pod:3117
27492 #: ../src/guestfs-actions.pod:3157 ../src/guestfs-actions.pod:3232
27493 #: ../src/guestfs-actions.pod:3325 ../src/guestfs-actions.pod:3562
27494 #: ../src/guestfs-actions.pod:3694
27495 msgid "(Added in 1.5.3)"
27499 #: ../src/guestfs-actions.pod:1840
27500 msgid "guestfs_filesize"
27504 #: ../src/guestfs-actions.pod:1842
27508 " guestfs_filesize (guestfs_h *g,\n"
27509 " const char *file);\n"
27514 #: ../src/guestfs-actions.pod:1848
27516 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27517 "C<guestfs_is_dir>, C<guestfs_is_file> etc. To get the size of block "
27518 "devices, use C<guestfs_blockdev_getsize64>."
27522 #: ../src/guestfs-actions.pod:1854
27523 msgid "(Added in 1.0.82)"
27527 #: ../src/guestfs-actions.pod:1856
27528 msgid "guestfs_fill"
27532 #: ../src/guestfs-actions.pod:1858
27536 " guestfs_fill (guestfs_h *g,\n"
27539 " const char *path);\n"
27544 #: ../src/guestfs-actions.pod:1868
27546 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27547 "C<guestfs_truncate_size>. To create a file with a pattern of repeating "
27548 "bytes use C<guestfs_fill_pattern>."
27552 #: ../src/guestfs-actions.pod:1880
27553 msgid "(Added in 1.0.79)"
27557 #: ../src/guestfs-actions.pod:1882
27558 msgid "guestfs_fill_pattern"
27562 #: ../src/guestfs-actions.pod:1884
27566 " guestfs_fill_pattern (guestfs_h *g,\n"
27567 " const char *pattern,\n"
27569 " const char *path);\n"
27574 #: ../src/guestfs-actions.pod:1890
27576 "This function is like C<guestfs_fill> except that it creates a new file of "
27577 "length C<len> containing the repeating pattern of bytes in C<pattern>. The "
27578 "pattern is truncated if necessary to ensure the length of the file is "
27579 "exactly C<len> bytes."
27583 #: ../src/guestfs-actions.pod:1902
27584 msgid "(Added in 1.3.12)"
27588 #: ../src/guestfs-actions.pod:1904
27589 msgid "guestfs_find"
27593 #: ../src/guestfs-actions.pod:1906
27597 " guestfs_find (guestfs_h *g,\n"
27598 " const char *directory);\n"
27603 #: ../src/guestfs-actions.pod:1922
27605 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27609 #: ../src/guestfs-actions.pod:1935
27610 msgid "See also C<guestfs_find0>."
27614 #: ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:4452
27615 #: ../src/guestfs-actions.pod:6152
27616 msgid "(Added in 1.0.27)"
27620 #: ../src/guestfs-actions.pod:1946
27621 msgid "guestfs_find0"
27625 #: ../src/guestfs-actions.pod:1948
27629 " guestfs_find0 (guestfs_h *g,\n"
27630 " const char *directory,\n"
27631 " const char *files);\n"
27636 #: ../src/guestfs-actions.pod:1957
27638 "This command works the same way as C<guestfs_find> with the following "
27643 #: ../src/guestfs-actions.pod:1984
27644 msgid "(Added in 1.0.74)"
27648 #: ../src/guestfs-actions.pod:1986
27649 msgid "guestfs_findfs_label"
27653 #: ../src/guestfs-actions.pod:1988
27657 " guestfs_findfs_label (guestfs_h *g,\n"
27658 " const char *label);\n"
27663 #: ../src/guestfs-actions.pod:1996
27664 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
27668 #: ../src/guestfs-actions.pod:2003
27669 msgid "guestfs_findfs_uuid"
27673 #: ../src/guestfs-actions.pod:2005
27677 " guestfs_findfs_uuid (guestfs_h *g,\n"
27678 " const char *uuid);\n"
27683 #: ../src/guestfs-actions.pod:2013
27684 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
27688 #: ../src/guestfs-actions.pod:2020
27689 msgid "guestfs_fsck"
27693 #: ../src/guestfs-actions.pod:2022
27697 " guestfs_fsck (guestfs_h *g,\n"
27698 " const char *fstype,\n"
27699 " const char *device);\n"
27704 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:7943
27705 msgid "(Added in 1.0.16)"
27709 #: ../src/guestfs-actions.pod:2059
27710 msgid "guestfs_get_append"
27714 #: ../src/guestfs-actions.pod:2061
27718 " guestfs_get_append (guestfs_h *g);\n"
27723 #: ../src/guestfs-actions.pod:2069
27725 "This function returns a string which may be NULL. There is no way to return "
27726 "an error from this function. The string is owned by the guest handle and "
27727 "must I<not> be freed."
27731 #: ../src/guestfs-actions.pod:2073 ../src/guestfs-actions.pod:5830
27732 #: ../src/guestfs-actions.pod:6312 ../src/guestfs-actions.pod:6770
27733 #: ../src/guestfs-actions.pod:6789 ../src/guestfs-actions.pod:6805
27734 #: ../src/guestfs-actions.pod:6829 ../src/guestfs-actions.pod:7583
27735 #: ../src/guestfs-actions.pod:7598 ../src/guestfs-actions.pod:7990
27736 msgid "(Added in 1.0.26)"
27740 #: ../src/guestfs-actions.pod:2075
27741 msgid "guestfs_get_attach_method"
27745 #: ../src/guestfs-actions.pod:2077
27749 " guestfs_get_attach_method (guestfs_h *g);\n"
27754 #: ../src/guestfs-actions.pod:2080
27755 msgid "Return the current attach method. See C<guestfs_set_attach_method>."
27759 #: ../src/guestfs-actions.pod:2085 ../src/guestfs-actions.pod:6342
27760 msgid "(Added in 1.9.8)"
27764 #: ../src/guestfs-actions.pod:2087
27765 msgid "guestfs_get_autosync"
27769 #: ../src/guestfs-actions.pod:2089
27773 " guestfs_get_autosync (guestfs_h *g);\n"
27778 #: ../src/guestfs-actions.pod:2098
27779 msgid "guestfs_get_direct"
27783 #: ../src/guestfs-actions.pod:2100
27787 " guestfs_get_direct (guestfs_h *g);\n"
27792 #: ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:6383
27793 msgid "(Added in 1.0.72)"
27797 #: ../src/guestfs-actions.pod:2109
27798 msgid "guestfs_get_e2label"
27802 #: ../src/guestfs-actions.pod:2111
27806 " guestfs_get_e2label (guestfs_h *g,\n"
27807 " const char *device);\n"
27812 #: ../src/guestfs-actions.pod:2115
27814 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
27819 #: ../src/guestfs-actions.pod:2128 ../src/guestfs-actions.pod:2149
27820 #: ../src/guestfs-actions.pod:6401 ../src/guestfs-actions.pod:6420
27821 msgid "(Added in 1.0.15)"
27825 #: ../src/guestfs-actions.pod:2130
27826 msgid "guestfs_get_e2uuid"
27830 #: ../src/guestfs-actions.pod:2132
27834 " guestfs_get_e2uuid (guestfs_h *g,\n"
27835 " const char *device);\n"
27840 #: ../src/guestfs-actions.pod:2136
27842 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
27847 #: ../src/guestfs-actions.pod:2151
27848 msgid "guestfs_get_memsize"
27852 #: ../src/guestfs-actions.pod:2153
27856 " guestfs_get_memsize (guestfs_h *g);\n"
27861 #: ../src/guestfs-actions.pod:2159
27863 "If C<guestfs_set_memsize> was not called on this handle, and if "
27864 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
27865 "value for memsize."
27869 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:4743
27870 #: ../src/guestfs-actions.pod:4952 ../src/guestfs-actions.pod:4971
27871 #: ../src/guestfs-actions.pod:4990 ../src/guestfs-actions.pod:5002
27872 #: ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5032
27873 #: ../src/guestfs-actions.pod:6055 ../src/guestfs-actions.pod:6441
27874 #: ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:7352
27875 msgid "(Added in 1.0.55)"
27879 #: ../src/guestfs-actions.pod:2170
27880 msgid "guestfs_get_network"
27884 #: ../src/guestfs-actions.pod:2172
27888 " guestfs_get_network (guestfs_h *g);\n"
27893 #: ../src/guestfs-actions.pod:2179 ../src/guestfs-actions.pod:6460
27894 msgid "(Added in 1.5.4)"
27898 #: ../src/guestfs-actions.pod:2181
27899 msgid "guestfs_get_path"
27903 #: ../src/guestfs-actions.pod:2183
27907 " guestfs_get_path (guestfs_h *g);\n"
27912 #: ../src/guestfs-actions.pod:2191 ../src/guestfs-actions.pod:2231
27914 "This function returns a string, or NULL on error. The string is owned by "
27915 "the guest handle and must I<not> be freed."
27919 #: ../src/guestfs-actions.pod:2196
27920 msgid "guestfs_get_pgroup"
27924 #: ../src/guestfs-actions.pod:2198
27928 " guestfs_get_pgroup (guestfs_h *g);\n"
27933 #: ../src/guestfs-actions.pod:2205 ../src/guestfs-actions.pod:6496
27934 #: ../src/guestfs-actions.pod:7844
27936 #| msgid "(Added in 1.5.1)"
27937 msgid "(Added in 1.11.18)"
27938 msgstr "(Додано у 1.5.1)"
27941 #: ../src/guestfs-actions.pod:2207
27942 msgid "guestfs_get_pid"
27946 #: ../src/guestfs-actions.pod:2209
27950 " guestfs_get_pid (guestfs_h *g);\n"
27955 #: ../src/guestfs-actions.pod:2219
27956 msgid "(Added in 1.0.56)"
27960 #: ../src/guestfs-actions.pod:2221
27961 msgid "guestfs_get_qemu"
27965 #: ../src/guestfs-actions.pod:2223
27969 " guestfs_get_qemu (guestfs_h *g);\n"
27974 #: ../src/guestfs-actions.pod:2234 ../src/guestfs-actions.pod:6524
27975 msgid "(Added in 1.0.6)"
27979 #: ../src/guestfs-actions.pod:2236
27980 msgid "guestfs_get_recovery_proc"
27984 #: ../src/guestfs-actions.pod:2238
27988 " guestfs_get_recovery_proc (guestfs_h *g);\n"
27993 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:3816
27994 #: ../src/guestfs-actions.pod:4147 ../src/guestfs-actions.pod:4550
27995 #: ../src/guestfs-actions.pod:4582 ../src/guestfs-actions.pod:5760
27996 #: ../src/guestfs-actions.pod:6103 ../src/guestfs-actions.pod:6548
27997 #: ../src/guestfs-actions.pod:7255 ../src/guestfs-actions.pod:7275
27998 #: ../src/guestfs-actions.pod:7467
27999 msgid "(Added in 1.0.77)"
28003 #: ../src/guestfs-actions.pod:2247
28004 msgid "guestfs_get_selinux"
28008 #: ../src/guestfs-actions.pod:2249
28012 " guestfs_get_selinux (guestfs_h *g);\n"
28017 #: ../src/guestfs-actions.pod:2252
28019 "This returns the current setting of the selinux flag which is passed to the "
28020 "appliance at boot time. See C<guestfs_set_selinux>."
28024 #: ../src/guestfs-actions.pod:2260 ../src/guestfs-actions.pod:2334
28025 #: ../src/guestfs-actions.pod:6567 ../src/guestfs-actions.pod:6641
28026 msgid "(Added in 1.0.67)"
28030 #: ../src/guestfs-actions.pod:2262
28032 #| msgid "guestfs_zgrep"
28033 msgid "guestfs_get_smp"
28034 msgstr "guestfs_zgrep"
28037 #: ../src/guestfs-actions.pod:2264
28040 #| " int guestfs_last_errno (guestfs_h *g);\n"
28044 " guestfs_get_smp (guestfs_h *g);\n"
28047 " int guestfs_last_errno (guestfs_h *g);\n"
28051 #: ../src/guestfs-actions.pod:2273
28052 msgid "guestfs_get_state"
28056 #: ../src/guestfs-actions.pod:2275
28060 " guestfs_get_state (guestfs_h *g);\n"
28065 #: ../src/guestfs-actions.pod:2287
28066 msgid "guestfs_get_trace"
28070 #: ../src/guestfs-actions.pod:2289
28074 " guestfs_get_trace (guestfs_h *g);\n"
28079 #: ../src/guestfs-actions.pod:2298
28080 msgid "guestfs_get_umask"
28084 #: ../src/guestfs-actions.pod:2300
28088 " guestfs_get_umask (guestfs_h *g);\n"
28093 #: ../src/guestfs-actions.pod:2303
28095 "Return the current umask. By default the umask is C<022> unless it has been "
28096 "set by calling C<guestfs_umask>."
28100 #: ../src/guestfs-actions.pod:2310
28101 msgid "guestfs_get_verbose"
28105 #: ../src/guestfs-actions.pod:2312
28109 " guestfs_get_verbose (guestfs_h *g);\n"
28114 #: ../src/guestfs-actions.pod:2321
28115 msgid "guestfs_getcon"
28119 #: ../src/guestfs-actions.pod:2323
28123 " guestfs_getcon (guestfs_h *g);\n"
28128 #: ../src/guestfs-actions.pod:2328
28130 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
28134 #: ../src/guestfs-actions.pod:2336
28135 msgid "guestfs_getxattr"
28139 #: ../src/guestfs-actions.pod:2338
28143 " guestfs_getxattr (guestfs_h *g,\n"
28144 " const char *path,\n"
28145 " const char *name,\n"
28146 " size_t *size_r);\n"
28151 #: ../src/guestfs-actions.pod:2344
28153 "Get a single extended attribute from file C<path> named C<name>. This call "
28154 "follows symlinks. If you want to lookup an extended attribute for the "
28155 "symlink itself, use C<guestfs_lgetxattr>."
28159 #: ../src/guestfs-actions.pod:2348 ../src/guestfs-actions.pod:3830
28161 "Normally it is better to get all extended attributes from a file in one go "
28162 "by calling C<guestfs_getxattrs>. However some Linux filesystem "
28163 "implementations are buggy and do not provide a way to list out attributes. "
28164 "For these filesystems (notably ntfs-3g) you have to know the names of the "
28165 "extended attributes you want in advance and call this function."
28169 #: ../src/guestfs-actions.pod:2358
28170 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
28174 #: ../src/guestfs-actions.pod:2360 ../src/guestfs-actions.pod:2573
28175 #: ../src/guestfs-actions.pod:3047 ../src/guestfs-actions.pod:3842
28176 #: ../src/guestfs-actions.pod:5753 ../src/guestfs-actions.pod:5779
28177 #: ../src/guestfs-actions.pod:5960
28179 "This function returns a buffer, or NULL on error. The size of the returned "
28180 "buffer is written to C<*size_r>. I<The caller must free the returned buffer "
28185 #: ../src/guestfs-actions.pod:2364 ../src/guestfs-actions.pod:3846
28186 msgid "(Added in 1.7.24)"
28190 #: ../src/guestfs-actions.pod:2366
28191 msgid "guestfs_getxattrs"
28195 #: ../src/guestfs-actions.pod:2368
28198 " struct guestfs_xattr_list *\n"
28199 " guestfs_getxattrs (guestfs_h *g,\n"
28200 " const char *path);\n"
28205 #: ../src/guestfs-actions.pod:2378
28206 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
28210 #: ../src/guestfs-actions.pod:2380 ../src/guestfs-actions.pod:3858
28211 #: ../src/guestfs-actions.pod:4546
28213 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
28214 "an error. I<The caller must call C<guestfs_free_xattr_list> after use>."
28218 #: ../src/guestfs-actions.pod:2384 ../src/guestfs-actions.pod:3862
28219 #: ../src/guestfs-actions.pod:4061 ../src/guestfs-actions.pod:4097
28220 #: ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6660
28221 #: ../src/guestfs-actions.pod:8055
28222 msgid "(Added in 1.0.59)"
28226 #: ../src/guestfs-actions.pod:2386
28227 msgid "guestfs_glob_expand"
28231 #: ../src/guestfs-actions.pod:2388
28235 " guestfs_glob_expand (guestfs_h *g,\n"
28236 " const char *pattern);\n"
28241 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6853
28242 #: ../src/guestfs-actions.pod:6870
28243 msgid "(Added in 1.0.50)"
28247 #: ../src/guestfs-actions.pod:2409
28248 msgid "guestfs_grep"
28252 #: ../src/guestfs-actions.pod:2411
28256 " guestfs_grep (guestfs_h *g,\n"
28257 " const char *regex,\n"
28258 " const char *path);\n"
28263 #: ../src/guestfs-actions.pod:2428
28264 msgid "guestfs_grepi"
28268 #: ../src/guestfs-actions.pod:2430
28272 " guestfs_grepi (guestfs_h *g,\n"
28273 " const char *regex,\n"
28274 " const char *path);\n"
28279 #: ../src/guestfs-actions.pod:2447
28280 msgid "guestfs_grub_install"
28284 #: ../src/guestfs-actions.pod:2449
28288 " guestfs_grub_install (guestfs_h *g,\n"
28289 " const char *root,\n"
28290 " const char *device);\n"
28295 #: ../src/guestfs-actions.pod:2492
28296 msgid "(Added in 1.0.17)"
28300 #: ../src/guestfs-actions.pod:2494
28301 msgid "guestfs_head"
28305 #: ../src/guestfs-actions.pod:2496
28309 " guestfs_head (guestfs_h *g,\n"
28310 " const char *path);\n"
28315 #: ../src/guestfs-actions.pod:2512
28316 msgid "guestfs_head_n"
28320 #: ../src/guestfs-actions.pod:2514
28324 " guestfs_head_n (guestfs_h *g,\n"
28326 " const char *path);\n"
28331 #: ../src/guestfs-actions.pod:2536
28332 msgid "guestfs_hexdump"
28336 #: ../src/guestfs-actions.pod:2538
28340 " guestfs_hexdump (guestfs_h *g,\n"
28341 " const char *path);\n"
28346 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:6934
28347 #: ../src/guestfs-actions.pod:6989
28348 msgid "(Added in 1.0.22)"
28352 #: ../src/guestfs-actions.pod:2553
28353 msgid "guestfs_initrd_cat"
28357 #: ../src/guestfs-actions.pod:2555
28361 " guestfs_initrd_cat (guestfs_h *g,\n"
28362 " const char *initrdpath,\n"
28363 " const char *filename,\n"
28364 " size_t *size_r);\n"
28369 #: ../src/guestfs-actions.pod:2571
28370 msgid "See also C<guestfs_initrd_list>."
28374 #: ../src/guestfs-actions.pod:2582
28375 msgid "guestfs_initrd_list"
28379 #: ../src/guestfs-actions.pod:2584
28383 " guestfs_initrd_list (guestfs_h *g,\n"
28384 " const char *path);\n"
28389 #: ../src/guestfs-actions.pod:2604
28390 msgid "guestfs_inotify_add_watch"
28394 #: ../src/guestfs-actions.pod:2606
28398 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28399 " const char *path,\n"
28405 #: ../src/guestfs-actions.pod:2625
28406 msgid "guestfs_inotify_close"
28410 #: ../src/guestfs-actions.pod:2627
28414 " guestfs_inotify_close (guestfs_h *g);\n"
28419 #: ../src/guestfs-actions.pod:2638
28420 msgid "guestfs_inotify_files"
28424 #: ../src/guestfs-actions.pod:2640
28428 " guestfs_inotify_files (guestfs_h *g);\n"
28433 #: ../src/guestfs-actions.pod:2643
28435 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28436 "returns a list of pathnames of objects that were touched. The returned "
28437 "pathnames are sorted and deduplicated."
28441 #: ../src/guestfs-actions.pod:2653
28442 msgid "guestfs_inotify_init"
28446 #: ../src/guestfs-actions.pod:2655
28450 " guestfs_inotify_init (guestfs_h *g,\n"
28451 " int maxevents);\n"
28456 #: ../src/guestfs-actions.pod:2663
28458 "C<maxevents> is the maximum number of events which will be queued up between "
28459 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>. If this is "
28460 "passed as C<0>, then the kernel (or previously set) default is used. For "
28461 "Linux 2.6.29 the default was 16384 events. Beyond this limit, the kernel "
28462 "throws away events, but records the fact that it threw them away by setting "
28463 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28464 "C<guestfs_inotify_read>)."
28468 #: ../src/guestfs-actions.pod:2673
28470 "Before any events are generated, you have to add some watches to the "
28471 "internal watch list. See: C<guestfs_inotify_add_watch>, "
28472 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28476 #: ../src/guestfs-actions.pod:2679
28478 "Queued up events should be read periodically by calling "
28479 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28480 "wrapper around C<guestfs_inotify_read>). If you don't read the events out "
28481 "often enough then you risk the internal queue overflowing."
28485 #: ../src/guestfs-actions.pod:2686
28487 "The handle should be closed after use by calling C<guestfs_inotify_close>. "
28488 "This also removes any watches automatically."
28492 #: ../src/guestfs-actions.pod:2699
28493 msgid "guestfs_inotify_read"
28497 #: ../src/guestfs-actions.pod:2701
28500 " struct guestfs_inotify_event_list *\n"
28501 " guestfs_inotify_read (guestfs_h *g);\n"
28506 #: ../src/guestfs-actions.pod:2715
28508 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28509 "there was an error. I<The caller must call "
28510 "C<guestfs_free_inotify_event_list> after use>."
28514 #: ../src/guestfs-actions.pod:2721
28515 msgid "guestfs_inotify_rm_watch"
28519 #: ../src/guestfs-actions.pod:2723
28523 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28529 #: ../src/guestfs-actions.pod:2727
28531 "Remove a previously defined inotify watch. See C<guestfs_inotify_add_watch>."
28535 #: ../src/guestfs-actions.pod:2734
28536 msgid "guestfs_inspect_get_arch"
28540 #: ../src/guestfs-actions.pod:2736
28544 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28545 " const char *root);\n"
28550 #: ../src/guestfs-actions.pod:2740
28552 "This returns the architecture of the inspected operating system. The "
28553 "possible return values are listed under C<guestfs_file_architecture>."
28557 #: ../src/guestfs-actions.pod:2754
28558 msgid "guestfs_inspect_get_distro"
28562 #: ../src/guestfs-actions.pod:2756
28566 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28567 " const char *root);\n"
28572 #: ../src/guestfs-actions.pod:2848
28573 msgid "guestfs_inspect_get_drive_mappings"
28577 #: ../src/guestfs-actions.pod:2850
28581 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28582 " const char *root);\n"
28587 #: ../src/guestfs-actions.pod:2879
28589 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28590 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28594 #: ../src/guestfs-actions.pod:2883 ../src/guestfs-actions.pod:3151
28595 #: ../src/guestfs-actions.pod:3949 ../src/guestfs-actions.pod:5221
28596 #: ../src/guestfs-actions.pod:7291
28598 "This function returns a NULL-terminated array of strings, or NULL if there "
28599 "was an error. The array of strings will always have length C<2n+1>, where "
28600 "C<n> keys and values alternate, followed by the trailing NULL entry. I<The "
28601 "caller must free the strings and the array after use>."
28605 #: ../src/guestfs-actions.pod:2889 ../src/guestfs-actions.pod:3345
28606 msgid "(Added in 1.9.17)"
28610 #: ../src/guestfs-actions.pod:2891
28611 msgid "guestfs_inspect_get_filesystems"
28615 #: ../src/guestfs-actions.pod:2893
28619 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
28620 " const char *root);\n"
28625 #: ../src/guestfs-actions.pod:2905
28627 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28628 "C<guestfs_inspect_get_mountpoints>."
28632 #: ../src/guestfs-actions.pod:2914
28633 msgid "guestfs_inspect_get_format"
28637 #: ../src/guestfs-actions.pod:2916
28641 " guestfs_inspect_get_format (guestfs_h *g,\n"
28642 " const char *root);\n"
28647 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:3381
28648 #: ../src/guestfs-actions.pod:3397 ../src/guestfs-actions.pod:3415
28649 #: ../src/guestfs-actions.pod:6171
28650 msgid "(Added in 1.9.4)"
28654 #: ../src/guestfs-actions.pod:2952
28655 msgid "guestfs_inspect_get_hostname"
28659 #: ../src/guestfs-actions.pod:2954
28663 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
28664 " const char *root);\n"
28669 #: ../src/guestfs-actions.pod:2969
28670 msgid "(Added in 1.7.9)"
28674 #: ../src/guestfs-actions.pod:2971
28675 msgid "guestfs_inspect_get_icon"
28679 #: ../src/guestfs-actions.pod:2973
28683 " guestfs_inspect_get_icon (guestfs_h *g,\n"
28684 " const char *root,\n"
28685 " size_t *size_r,\n"
28691 #: ../src/guestfs-actions.pod:2984
28694 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
28695 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
28700 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3876
28701 #: ../src/guestfs-actions.pod:5120
28702 msgid "(Added in 1.11.12)"
28706 #: ../src/guestfs-actions.pod:3053
28707 msgid "guestfs_inspect_get_icon_va"
28711 #: ../src/guestfs-actions.pod:3055
28715 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
28716 " const char *root,\n"
28717 " size_t *size_r,\n"
28718 " va_list args);\n"
28723 #: ../src/guestfs-actions.pod:3061
28724 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
28728 #: ../src/guestfs-actions.pod:3065
28729 msgid "guestfs_inspect_get_icon_argv"
28733 #: ../src/guestfs-actions.pod:3067
28737 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
28738 " const char *root,\n"
28739 " size_t *size_r,\n"
28740 " const struct guestfs_inspect_get_icon_argv *optargs);\n"
28745 #: ../src/guestfs-actions.pod:3073
28746 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
28750 #: ../src/guestfs-actions.pod:3077
28751 msgid "guestfs_inspect_get_major_version"
28755 #: ../src/guestfs-actions.pod:3079
28759 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
28760 " const char *root);\n"
28765 #: ../src/guestfs-actions.pod:3101
28766 msgid "guestfs_inspect_get_minor_version"
28770 #: ../src/guestfs-actions.pod:3103
28774 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
28775 " const char *root);\n"
28780 #: ../src/guestfs-actions.pod:3112
28782 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28783 "C<guestfs_inspect_get_major_version>."
28787 #: ../src/guestfs-actions.pod:3119
28788 msgid "guestfs_inspect_get_mountpoints"
28792 #: ../src/guestfs-actions.pod:3121
28796 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
28797 " const char *root);\n"
28802 #: ../src/guestfs-actions.pod:3142
28804 "For operating systems like Windows which still use drive letters, this call "
28805 "will only return an entry for the first drive \"mounted on\" C</>. For "
28806 "information about the mapping of drive letters to partitions, see "
28807 "C<guestfs_inspect_get_drive_mappings>."
28811 #: ../src/guestfs-actions.pod:3148
28813 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28814 "C<guestfs_inspect_get_filesystems>."
28818 #: ../src/guestfs-actions.pod:3159
28819 msgid "guestfs_inspect_get_package_format"
28823 #: ../src/guestfs-actions.pod:3161
28827 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
28828 " const char *root);\n"
28833 #: ../src/guestfs-actions.pod:3165
28835 "This function and C<guestfs_inspect_get_package_management> return the "
28836 "package format and package management tool used by the inspected operating "
28837 "system. For example for Fedora these functions would return C<rpm> (package "
28838 "format) and C<yum> (package management)."
28842 #: ../src/guestfs-actions.pod:3183 ../src/guestfs-actions.pod:3211
28843 msgid "(Added in 1.7.5)"
28847 #: ../src/guestfs-actions.pod:3185
28848 msgid "guestfs_inspect_get_package_management"
28852 #: ../src/guestfs-actions.pod:3187
28856 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
28857 " const char *root);\n"
28862 #: ../src/guestfs-actions.pod:3191
28864 "C<guestfs_inspect_get_package_format> and this function return the package "
28865 "format and package management tool used by the inspected operating system. "
28866 "For example for Fedora these functions would return C<rpm> (package format) "
28867 "and C<yum> (package management)."
28871 #: ../src/guestfs-actions.pod:3213
28872 msgid "guestfs_inspect_get_product_name"
28876 #: ../src/guestfs-actions.pod:3215
28880 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
28881 " const char *root);\n"
28886 #: ../src/guestfs-actions.pod:3234
28887 msgid "guestfs_inspect_get_product_variant"
28891 #: ../src/guestfs-actions.pod:3236
28895 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
28896 " const char *root);\n"
28901 #: ../src/guestfs-actions.pod:3259
28903 "Please read L<guestfs(3)/INSPECTION> for more details. See also "
28904 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
28908 #: ../src/guestfs-actions.pod:3266
28909 msgid "(Added in 1.9.13)"
28913 #: ../src/guestfs-actions.pod:3268
28914 msgid "guestfs_inspect_get_roots"
28918 #: ../src/guestfs-actions.pod:3270
28922 " guestfs_inspect_get_roots (guestfs_h *g);\n"
28927 #: ../src/guestfs-actions.pod:3273
28929 "This function is a convenient way to get the list of root devices, as "
28930 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
28931 "the whole inspection process."
28935 #: ../src/guestfs-actions.pod:3277
28937 "This returns an empty list if either no root devices were found or the "
28938 "caller has not called C<guestfs_inspect_os>."
28942 #: ../src/guestfs-actions.pod:3286
28943 msgid "(Added in 1.7.3)"
28947 #: ../src/guestfs-actions.pod:3288
28948 msgid "guestfs_inspect_get_type"
28952 #: ../src/guestfs-actions.pod:3290
28956 " guestfs_inspect_get_type (guestfs_h *g,\n"
28957 " const char *root);\n"
28962 #: ../src/guestfs-actions.pod:3327
28963 msgid "guestfs_inspect_get_windows_current_control_set"
28967 #: ../src/guestfs-actions.pod:3329
28971 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
28972 " const char *root);\n"
28977 #: ../src/guestfs-actions.pod:3347
28978 msgid "guestfs_inspect_get_windows_systemroot"
28982 #: ../src/guestfs-actions.pod:3349
28986 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
28987 " const char *root);\n"
28992 #: ../src/guestfs-actions.pod:3365
28993 msgid "(Added in 1.5.25)"
28997 #: ../src/guestfs-actions.pod:3367
28998 msgid "guestfs_inspect_is_live"
29002 #: ../src/guestfs-actions.pod:3369
29006 " guestfs_inspect_is_live (guestfs_h *g,\n"
29007 " const char *root);\n"
29012 #: ../src/guestfs-actions.pod:3373
29014 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29015 "disk), then this returns true if a live image was detected on the disk."
29019 #: ../src/guestfs-actions.pod:3383
29020 msgid "guestfs_inspect_is_multipart"
29024 #: ../src/guestfs-actions.pod:3385
29028 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
29029 " const char *root);\n"
29034 #: ../src/guestfs-actions.pod:3389
29036 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29037 "disk), then this returns true if the disk is part of a set."
29041 #: ../src/guestfs-actions.pod:3399
29042 msgid "guestfs_inspect_is_netinst"
29046 #: ../src/guestfs-actions.pod:3401
29050 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
29051 " const char *root);\n"
29056 #: ../src/guestfs-actions.pod:3405
29058 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29059 "disk), then this returns true if the disk is a network installer, ie. not a "
29060 "self-contained install CD but one which is likely to require network access "
29061 "to complete the install."
29065 #: ../src/guestfs-actions.pod:3417
29066 msgid "guestfs_inspect_list_applications"
29070 #: ../src/guestfs-actions.pod:3419
29073 " struct guestfs_application_list *\n"
29074 " guestfs_inspect_list_applications (guestfs_h *g,\n"
29075 " const char *root);\n"
29080 #: ../src/guestfs-actions.pod:3425
29082 "I<Note:> This call works differently from other parts of the inspection "
29083 "API. You have to call C<guestfs_inspect_os>, then "
29084 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
29085 "this. Listing applications is a significantly more difficult operation "
29086 "which requires access to the full filesystem. Also note that unlike the "
29087 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
29088 "the libguestfs handle, this call actually reads parts of the mounted "
29089 "filesystems during the call."
29093 #: ../src/guestfs-actions.pod:3515
29095 "This function returns a C<struct guestfs_application_list *>, or NULL if "
29096 "there was an error. I<The caller must call C<guestfs_free_application_list> "
29101 #: ../src/guestfs-actions.pod:3519
29102 msgid "(Added in 1.7.8)"
29106 #: ../src/guestfs-actions.pod:3521
29107 msgid "guestfs_inspect_os"
29111 #: ../src/guestfs-actions.pod:3523
29115 " guestfs_inspect_os (guestfs_h *g);\n"
29120 #: ../src/guestfs-actions.pod:3539
29122 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
29123 "functions in order to query further information about each operating system, "
29124 "such as the name and version."
29128 #: ../src/guestfs-actions.pod:3544
29130 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
29131 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
29132 "the contents. This should be called with no disks currently mounted. The "
29133 "function may also use Augeas, so any existing Augeas handle will be closed."
29137 #: ../src/guestfs-actions.pod:3556 ../src/guestfs-actions.pod:3887
29138 #: ../src/guestfs-actions.pod:3969
29139 msgid "See also C<guestfs_list_filesystems>."
29143 #: ../src/guestfs-actions.pod:3564
29144 msgid "guestfs_is_blockdev"
29148 #: ../src/guestfs-actions.pod:3566
29152 " guestfs_is_blockdev (guestfs_h *g,\n"
29153 " const char *path);\n"
29158 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3602
29159 #: ../src/guestfs-actions.pod:3632 ../src/guestfs-actions.pod:3647
29160 #: ../src/guestfs-actions.pod:3663 ../src/guestfs-actions.pod:3719
29161 #: ../src/guestfs-actions.pod:3734
29162 msgid "See also C<guestfs_stat>."
29166 #: ../src/guestfs-actions.pod:3577 ../src/guestfs-actions.pod:3606
29167 #: ../src/guestfs-actions.pod:3651 ../src/guestfs-actions.pod:3723
29168 #: ../src/guestfs-actions.pod:3738
29169 msgid "(Added in 1.5.10)"
29173 #: ../src/guestfs-actions.pod:3579
29174 msgid "guestfs_is_busy"
29178 #: ../src/guestfs-actions.pod:3581
29182 " guestfs_is_busy (guestfs_h *g);\n"
29187 #: ../src/guestfs-actions.pod:3593
29188 msgid "guestfs_is_chardev"
29192 #: ../src/guestfs-actions.pod:3595
29196 " guestfs_is_chardev (guestfs_h *g,\n"
29197 " const char *path);\n"
29202 #: ../src/guestfs-actions.pod:3608
29203 msgid "guestfs_is_config"
29207 #: ../src/guestfs-actions.pod:3610
29211 " guestfs_is_config (guestfs_h *g);\n"
29216 #: ../src/guestfs-actions.pod:3622
29217 msgid "guestfs_is_dir"
29221 #: ../src/guestfs-actions.pod:3624
29225 " guestfs_is_dir (guestfs_h *g,\n"
29226 " const char *path);\n"
29231 #: ../src/guestfs-actions.pod:3638
29232 msgid "guestfs_is_fifo"
29236 #: ../src/guestfs-actions.pod:3640
29240 " guestfs_is_fifo (guestfs_h *g,\n"
29241 " const char *path);\n"
29246 #: ../src/guestfs-actions.pod:3653
29247 msgid "guestfs_is_file"
29251 #: ../src/guestfs-actions.pod:3655
29255 " guestfs_is_file (guestfs_h *g,\n"
29256 " const char *path);\n"
29261 #: ../src/guestfs-actions.pod:3669
29262 msgid "guestfs_is_launching"
29266 #: ../src/guestfs-actions.pod:3671
29270 " guestfs_is_launching (guestfs_h *g);\n"
29275 #: ../src/guestfs-actions.pod:3683
29276 msgid "guestfs_is_lv"
29280 #: ../src/guestfs-actions.pod:3685
29284 " guestfs_is_lv (guestfs_h *g,\n"
29285 " const char *device);\n"
29290 #: ../src/guestfs-actions.pod:3696
29291 msgid "guestfs_is_ready"
29295 #: ../src/guestfs-actions.pod:3698
29299 " guestfs_is_ready (guestfs_h *g);\n"
29304 #: ../src/guestfs-actions.pod:3710
29305 msgid "guestfs_is_socket"
29309 #: ../src/guestfs-actions.pod:3712
29313 " guestfs_is_socket (guestfs_h *g,\n"
29314 " const char *path);\n"
29319 #: ../src/guestfs-actions.pod:3725
29320 msgid "guestfs_is_symlink"
29324 #: ../src/guestfs-actions.pod:3727
29328 " guestfs_is_symlink (guestfs_h *g,\n"
29329 " const char *path);\n"
29334 #: ../src/guestfs-actions.pod:3740
29335 msgid "guestfs_is_zero"
29339 #: ../src/guestfs-actions.pod:3742
29343 " guestfs_is_zero (guestfs_h *g,\n"
29344 " const char *path);\n"
29349 #: ../src/guestfs-actions.pod:3751 ../src/guestfs-actions.pod:3765
29350 msgid "(Added in 1.11.8)"
29354 #: ../src/guestfs-actions.pod:3753
29355 msgid "guestfs_is_zero_device"
29359 #: ../src/guestfs-actions.pod:3755
29363 " guestfs_is_zero_device (guestfs_h *g,\n"
29364 " const char *device);\n"
29369 #: ../src/guestfs-actions.pod:3767
29370 msgid "guestfs_kill_subprocess"
29374 #: ../src/guestfs-actions.pod:3769
29378 " guestfs_kill_subprocess (guestfs_h *g);\n"
29383 #: ../src/guestfs-actions.pod:3778
29384 msgid "guestfs_launch"
29388 #: ../src/guestfs-actions.pod:3780
29392 " guestfs_launch (guestfs_h *g);\n"
29397 #: ../src/guestfs-actions.pod:3798
29398 msgid "guestfs_lchown"
29402 #: ../src/guestfs-actions.pod:3800
29406 " guestfs_lchown (guestfs_h *g,\n"
29409 " const char *path);\n"
29414 #: ../src/guestfs-actions.pod:3806
29416 "Change the file owner to C<owner> and group to C<group>. This is like "
29417 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29418 "changed, not the target."
29422 #: ../src/guestfs-actions.pod:3818
29423 msgid "guestfs_lgetxattr"
29427 #: ../src/guestfs-actions.pod:3820
29431 " guestfs_lgetxattr (guestfs_h *g,\n"
29432 " const char *path,\n"
29433 " const char *name,\n"
29434 " size_t *size_r);\n"
29439 #: ../src/guestfs-actions.pod:3840
29440 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29444 #: ../src/guestfs-actions.pod:3848
29445 msgid "guestfs_lgetxattrs"
29449 #: ../src/guestfs-actions.pod:3850
29452 " struct guestfs_xattr_list *\n"
29453 " guestfs_lgetxattrs (guestfs_h *g,\n"
29454 " const char *path);\n"
29459 #: ../src/guestfs-actions.pod:3854
29461 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29462 "then it returns the extended attributes of the link itself."
29466 #: ../src/guestfs-actions.pod:3864
29467 msgid "guestfs_list_9p"
29471 #: ../src/guestfs-actions.pod:3866
29475 " guestfs_list_9p (guestfs_h *g);\n"
29480 #: ../src/guestfs-actions.pod:3878
29481 msgid "guestfs_list_devices"
29485 #: ../src/guestfs-actions.pod:3880
29489 " guestfs_list_devices (guestfs_h *g);\n"
29494 #: ../src/guestfs-actions.pod:3895
29495 msgid "guestfs_list_dm_devices"
29499 #: ../src/guestfs-actions.pod:3897
29503 " guestfs_list_dm_devices (guestfs_h *g);\n"
29508 #: ../src/guestfs-actions.pod:3902
29510 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29511 "previous call to C<guestfs_luks_open>."
29515 #: ../src/guestfs-actions.pod:3905
29517 "Device mapper devices which correspond to logical volumes are I<not> "
29518 "returned in this list. Call C<guestfs_lvs> if you want to list logical "
29523 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:5359
29524 msgid "(Added in 1.11.15)"
29528 #: ../src/guestfs-actions.pod:3915
29529 msgid "guestfs_list_filesystems"
29533 #: ../src/guestfs-actions.pod:3917
29537 " guestfs_list_filesystems (guestfs_h *g);\n"
29542 #: ../src/guestfs-actions.pod:3937
29544 "This command runs other libguestfs commands, which might include "
29545 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29546 "soon after launch and only when nothing is mounted."
29550 #: ../src/guestfs-actions.pod:3941
29552 "Not all of the filesystems returned will be mountable. In particular, swap "
29553 "partitions are returned in the list. Also this command does not check that "
29554 "each filesystem found is valid and mountable, and some filesystems might be "
29555 "mountable but require special options. Filesystems may not all belong to a "
29556 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
29560 #: ../src/guestfs-actions.pod:3955 ../src/guestfs-actions.pod:5720
29561 msgid "(Added in 1.5.15)"
29565 #: ../src/guestfs-actions.pod:3957
29566 msgid "guestfs_list_partitions"
29567 msgstr "guestfs_list_partitions"
29570 #: ../src/guestfs-actions.pod:3959
29574 " guestfs_list_partitions (guestfs_h *g);\n"
29578 " guestfs_list_partitions (guestfs_h *g);\n"
29582 #: ../src/guestfs-actions.pod:3966
29584 "This does not return logical volumes. For that you will need to call "
29589 #: ../src/guestfs-actions.pod:3977
29591 msgstr "guestfs_ll"
29594 #: ../src/guestfs-actions.pod:3979
29598 " guestfs_ll (guestfs_h *g,\n"
29599 " const char *directory);\n"
29603 " guestfs_ll (guestfs_h *g,\n"
29604 " const char *directory);\n"
29608 #: ../src/guestfs-actions.pod:3994
29610 msgstr "guestfs_ln"
29613 #: ../src/guestfs-actions.pod:3996
29617 " guestfs_ln (guestfs_h *g,\n"
29618 " const char *target,\n"
29619 " const char *linkname);\n"
29623 " guestfs_ln (guestfs_h *g,\n"
29624 " const char *target,\n"
29625 " const char *linkname);\n"
29629 #: ../src/guestfs-actions.pod:4007
29630 msgid "guestfs_ln_f"
29631 msgstr "guestfs_ln_f"
29634 #: ../src/guestfs-actions.pod:4009
29638 " guestfs_ln_f (guestfs_h *g,\n"
29639 " const char *target,\n"
29640 " const char *linkname);\n"
29644 " guestfs_ln_f (guestfs_h *g,\n"
29645 " const char *target,\n"
29646 " const char *linkname);\n"
29650 #: ../src/guestfs-actions.pod:4021
29651 msgid "guestfs_ln_s"
29652 msgstr "guestfs_ln_s"
29655 #: ../src/guestfs-actions.pod:4023
29659 " guestfs_ln_s (guestfs_h *g,\n"
29660 " const char *target,\n"
29661 " const char *linkname);\n"
29665 " guestfs_ln_s (guestfs_h *g,\n"
29666 " const char *target,\n"
29667 " const char *linkname);\n"
29671 #: ../src/guestfs-actions.pod:4034
29672 msgid "guestfs_ln_sf"
29673 msgstr "guestfs_ln_sf"
29676 #: ../src/guestfs-actions.pod:4036
29680 " guestfs_ln_sf (guestfs_h *g,\n"
29681 " const char *target,\n"
29682 " const char *linkname);\n"
29686 " guestfs_ln_sf (guestfs_h *g,\n"
29687 " const char *target,\n"
29688 " const char *linkname);\n"
29692 #: ../src/guestfs-actions.pod:4048
29693 msgid "guestfs_lremovexattr"
29694 msgstr "guestfs_lremovexattr"
29697 #: ../src/guestfs-actions.pod:4050
29701 " guestfs_lremovexattr (guestfs_h *g,\n"
29702 " const char *xattr,\n"
29703 " const char *path);\n"
29707 " guestfs_lremovexattr (guestfs_h *g,\n"
29708 " const char *xattr,\n"
29709 " const char *path);\n"
29713 #: ../src/guestfs-actions.pod:4055
29715 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
29716 "link, then it removes an extended attribute of the link itself."
29720 #: ../src/guestfs-actions.pod:4063
29722 msgstr "guestfs_ls"
29725 #: ../src/guestfs-actions.pod:4065
29729 " guestfs_ls (guestfs_h *g,\n"
29730 " const char *directory);\n"
29734 " guestfs_ls (guestfs_h *g,\n"
29735 " const char *directory);\n"
29739 #: ../src/guestfs-actions.pod:4073
29741 "This command is mostly useful for interactive sessions. Programs should "
29742 "probably use C<guestfs_readdir> instead."
29746 #: ../src/guestfs-actions.pod:4082
29747 msgid "guestfs_lsetxattr"
29748 msgstr "guestfs_lsetxattr"
29751 #: ../src/guestfs-actions.pod:4084
29755 " guestfs_lsetxattr (guestfs_h *g,\n"
29756 " const char *xattr,\n"
29757 " const char *val,\n"
29759 " const char *path);\n"
29763 " guestfs_lsetxattr (guestfs_h *g,\n"
29764 " const char *xattr,\n"
29765 " const char *val,\n"
29767 " const char *path);\n"
29771 #: ../src/guestfs-actions.pod:4091
29773 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
29774 "then it sets an extended attribute of the link itself."
29778 #: ../src/guestfs-actions.pod:4099
29779 msgid "guestfs_lstat"
29780 msgstr "guestfs_lstat"
29783 #: ../src/guestfs-actions.pod:4101
29786 " struct guestfs_stat *\n"
29787 " guestfs_lstat (guestfs_h *g,\n"
29788 " const char *path);\n"
29791 " struct guestfs_stat *\n"
29792 " guestfs_lstat (guestfs_h *g,\n"
29793 " const char *path);\n"
29797 #: ../src/guestfs-actions.pod:4107
29799 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
29800 "link, then the link is stat-ed, not the file it refers to."
29804 #: ../src/guestfs-actions.pod:4113 ../src/guestfs-actions.pod:6894
29806 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
29807 "error. I<The caller must call C<guestfs_free_stat> after use>."
29811 #: ../src/guestfs-actions.pod:4117 ../src/guestfs-actions.pod:6898
29812 #: ../src/guestfs-actions.pod:6916 ../src/guestfs-actions.pod:7297
29813 msgid "(Added in 0.9.2)"
29814 msgstr "(Додано у 0.9.2)"
29817 #: ../src/guestfs-actions.pod:4119
29818 msgid "guestfs_lstatlist"
29819 msgstr "guestfs_lstatlist"
29822 #: ../src/guestfs-actions.pod:4121
29825 " struct guestfs_stat_list *\n"
29826 " guestfs_lstatlist (guestfs_h *g,\n"
29827 " const char *path,\n"
29828 " char *const *names);\n"
29831 " struct guestfs_stat_list *\n"
29832 " guestfs_lstatlist (guestfs_h *g,\n"
29833 " const char *path,\n"
29834 " char *const *names);\n"
29838 #: ../src/guestfs-actions.pod:4126
29840 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
29841 "files, where all files are in the directory C<path>. C<names> is the list "
29842 "of files from this directory."
29846 #: ../src/guestfs-actions.pod:4135
29848 "This call is intended for programs that want to efficiently list a directory "
29849 "contents without making many round-trips. See also C<guestfs_lxattrlist> "
29850 "for a similarly efficient call for getting extended attributes. Very long "
29851 "directory listings might cause the protocol message size to be exceeded, "
29852 "causing this call to fail. The caller must split up such requests into "
29853 "smaller groups of names."
29857 #: ../src/guestfs-actions.pod:4143
29859 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
29860 "an error. I<The caller must call C<guestfs_free_stat_list> after use>."
29864 #: ../src/guestfs-actions.pod:4149
29865 msgid "guestfs_luks_add_key"
29866 msgstr "guestfs_luks_add_key"
29869 #: ../src/guestfs-actions.pod:4151
29873 " guestfs_luks_add_key (guestfs_h *g,\n"
29874 " const char *device,\n"
29875 " const char *key,\n"
29876 " const char *newkey,\n"
29881 " guestfs_luks_add_key (guestfs_h *g,\n"
29882 " const char *device,\n"
29883 " const char *key,\n"
29884 " const char *newkey,\n"
29889 #: ../src/guestfs-actions.pod:4163
29891 "Note that if C<keyslot> already contains a key, then this command will "
29892 "fail. You have to use C<guestfs_luks_kill_slot> first to remove that key."
29896 #: ../src/guestfs-actions.pod:4169 ../src/guestfs-actions.pod:4209
29897 #: ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:4252
29898 #: ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4306
29900 "This function takes a key or passphrase parameter which could contain "
29901 "sensitive material. Read the section L</KEYS AND PASSPHRASES> for more "
29906 #: ../src/guestfs-actions.pod:4173 ../src/guestfs-actions.pod:4213
29907 #: ../src/guestfs-actions.pod:4236 ../src/guestfs-actions.pod:4256
29908 msgid "(Added in 1.5.2)"
29909 msgstr "(Додано у 1.5.2)"
29912 #: ../src/guestfs-actions.pod:4175
29913 msgid "guestfs_luks_close"
29914 msgstr "guestfs_luks_close"
29917 #: ../src/guestfs-actions.pod:4177
29921 " guestfs_luks_close (guestfs_h *g,\n"
29922 " const char *device);\n"
29926 " guestfs_luks_close (guestfs_h *g,\n"
29927 " const char *device);\n"
29931 #: ../src/guestfs-actions.pod:4181
29933 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
29934 "or C<guestfs_luks_open_ro>. The C<device> parameter must be the name of the "
29935 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
29936 "underlying block device."
29940 #: ../src/guestfs-actions.pod:4189 ../src/guestfs-actions.pod:4291
29941 #: ../src/guestfs-actions.pod:4310 ../src/guestfs-actions.pod:4360
29942 #: ../src/guestfs-actions.pod:4408
29943 msgid "(Added in 1.5.1)"
29944 msgstr "(Додано у 1.5.1)"
29947 #: ../src/guestfs-actions.pod:4191
29948 msgid "guestfs_luks_format"
29949 msgstr "guestfs_luks_format"
29952 #: ../src/guestfs-actions.pod:4193
29956 " guestfs_luks_format (guestfs_h *g,\n"
29957 " const char *device,\n"
29958 " const char *key,\n"
29963 " guestfs_luks_format (guestfs_h *g,\n"
29964 " const char *device,\n"
29965 " const char *key,\n"
29970 #: ../src/guestfs-actions.pod:4215
29971 msgid "guestfs_luks_format_cipher"
29972 msgstr "guestfs_luks_format_cipher"
29975 #: ../src/guestfs-actions.pod:4217
29979 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29980 " const char *device,\n"
29981 " const char *key,\n"
29983 " const char *cipher);\n"
29987 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29988 " const char *device,\n"
29989 " const char *key,\n"
29991 " const char *cipher);\n"
29995 #: ../src/guestfs-actions.pod:4224
29997 "This command is the same as C<guestfs_luks_format> but it also allows you to "
29998 "set the C<cipher> used."
30002 #: ../src/guestfs-actions.pod:4238
30003 msgid "guestfs_luks_kill_slot"
30004 msgstr "guestfs_luks_kill_slot"
30007 #: ../src/guestfs-actions.pod:4240
30011 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30012 " const char *device,\n"
30013 " const char *key,\n"
30018 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30019 " const char *device,\n"
30020 " const char *key,\n"
30025 #: ../src/guestfs-actions.pod:4258
30026 msgid "guestfs_luks_open"
30027 msgstr "guestfs_luks_open"
30030 #: ../src/guestfs-actions.pod:4260
30034 " guestfs_luks_open (guestfs_h *g,\n"
30035 " const char *device,\n"
30036 " const char *key,\n"
30037 " const char *mapname);\n"
30041 " guestfs_luks_open (guestfs_h *g,\n"
30042 " const char *device,\n"
30043 " const char *key,\n"
30044 " const char *mapname);\n"
30048 #: ../src/guestfs-actions.pod:4278
30050 "If this block device contains LVM volume groups, then calling "
30051 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
30056 #: ../src/guestfs-actions.pod:4282
30057 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
30061 #: ../src/guestfs-actions.pod:4293
30062 msgid "guestfs_luks_open_ro"
30063 msgstr "guestfs_luks_open_ro"
30066 #: ../src/guestfs-actions.pod:4295
30070 " guestfs_luks_open_ro (guestfs_h *g,\n"
30071 " const char *device,\n"
30072 " const char *key,\n"
30073 " const char *mapname);\n"
30077 " guestfs_luks_open_ro (guestfs_h *g,\n"
30078 " const char *device,\n"
30079 " const char *key,\n"
30080 " const char *mapname);\n"
30084 #: ../src/guestfs-actions.pod:4301
30086 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
30091 #: ../src/guestfs-actions.pod:4312
30092 msgid "guestfs_lvcreate"
30093 msgstr "guestfs_lvcreate"
30096 #: ../src/guestfs-actions.pod:4314
30100 " guestfs_lvcreate (guestfs_h *g,\n"
30101 " const char *logvol,\n"
30102 " const char *volgroup,\n"
30107 " guestfs_lvcreate (guestfs_h *g,\n"
30108 " const char *logvol,\n"
30109 " const char *volgroup,\n"
30114 #: ../src/guestfs-actions.pod:4327
30115 msgid "guestfs_lvm_canonical_lv_name"
30116 msgstr "guestfs_lvm_canonical_lv_name"
30119 #: ../src/guestfs-actions.pod:4329
30123 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30124 " const char *lvname);\n"
30128 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30129 " const char *lvname);\n"
30133 #: ../src/guestfs-actions.pod:4340
30134 msgid "See also C<guestfs_is_lv>."
30138 #: ../src/guestfs-actions.pod:4345
30139 msgid "(Added in 1.5.24)"
30140 msgstr "(Додано у 1.5.24)"
30143 #: ../src/guestfs-actions.pod:4347
30144 msgid "guestfs_lvm_clear_filter"
30145 msgstr "guestfs_lvm_clear_filter"
30148 #: ../src/guestfs-actions.pod:4349
30152 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30156 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30160 #: ../src/guestfs-actions.pod:4352
30162 "This undoes the effect of C<guestfs_lvm_set_filter>. LVM will be able to "
30163 "see every block device."
30167 #: ../src/guestfs-actions.pod:4362
30168 msgid "guestfs_lvm_remove_all"
30169 msgstr "guestfs_lvm_remove_all"
30172 #: ../src/guestfs-actions.pod:4364
30176 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30180 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30184 #: ../src/guestfs-actions.pod:4377
30185 msgid "guestfs_lvm_set_filter"
30186 msgstr "guestfs_lvm_set_filter"
30189 #: ../src/guestfs-actions.pod:4379
30193 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30194 " char *const *devices);\n"
30198 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30199 " char *const *devices);\n"
30203 #: ../src/guestfs-actions.pod:4410
30204 msgid "guestfs_lvremove"
30205 msgstr "guestfs_lvremove"
30208 #: ../src/guestfs-actions.pod:4412
30212 " guestfs_lvremove (guestfs_h *g,\n"
30213 " const char *device);\n"
30217 " guestfs_lvremove (guestfs_h *g,\n"
30218 " const char *device);\n"
30222 #: ../src/guestfs-actions.pod:4424 ../src/guestfs-actions.pod:5817
30223 #: ../src/guestfs-actions.pod:7667
30224 msgid "(Added in 1.0.13)"
30225 msgstr "(Додано у 1.0.13)"
30228 #: ../src/guestfs-actions.pod:4426
30229 msgid "guestfs_lvrename"
30230 msgstr "guestfs_lvrename"
30233 #: ../src/guestfs-actions.pod:4428
30237 " guestfs_lvrename (guestfs_h *g,\n"
30238 " const char *logvol,\n"
30239 " const char *newlogvol);\n"
30243 " guestfs_lvrename (guestfs_h *g,\n"
30244 " const char *logvol,\n"
30245 " const char *newlogvol);\n"
30249 #: ../src/guestfs-actions.pod:4437 ../src/guestfs-actions.pod:7680
30250 msgid "(Added in 1.0.83)"
30251 msgstr "(Додано у 1.0.83)"
30254 #: ../src/guestfs-actions.pod:4439
30255 msgid "guestfs_lvresize"
30256 msgstr "guestfs_lvresize"
30259 #: ../src/guestfs-actions.pod:4441
30263 " guestfs_lvresize (guestfs_h *g,\n"
30264 " const char *device,\n"
30269 " guestfs_lvresize (guestfs_h *g,\n"
30270 " const char *device,\n"
30275 #: ../src/guestfs-actions.pod:4454
30276 msgid "guestfs_lvresize_free"
30277 msgstr "guestfs_lvresize_free"
30280 #: ../src/guestfs-actions.pod:4456
30284 " guestfs_lvresize_free (guestfs_h *g,\n"
30285 " const char *lv,\n"
30290 " guestfs_lvresize_free (guestfs_h *g,\n"
30291 " const char *lv,\n"
30296 #: ../src/guestfs-actions.pod:4469
30297 msgid "(Added in 1.3.3)"
30298 msgstr "(Додано у 1.3.3)"
30301 #: ../src/guestfs-actions.pod:4471
30302 msgid "guestfs_lvs"
30303 msgstr "guestfs_lvs"
30306 #: ../src/guestfs-actions.pod:4473
30310 " guestfs_lvs (guestfs_h *g);\n"
30314 " guestfs_lvs (guestfs_h *g);\n"
30318 #: ../src/guestfs-actions.pod:4482
30319 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
30323 #: ../src/guestfs-actions.pod:4490
30324 msgid "guestfs_lvs_full"
30325 msgstr "guestfs_lvs_full"
30328 #: ../src/guestfs-actions.pod:4492
30331 " struct guestfs_lvm_lv_list *\n"
30332 " guestfs_lvs_full (guestfs_h *g);\n"
30335 " struct guestfs_lvm_lv_list *\n"
30336 " guestfs_lvs_full (guestfs_h *g);\n"
30340 #: ../src/guestfs-actions.pod:4498
30342 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
30343 "was an error. I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
30347 #: ../src/guestfs-actions.pod:4504
30348 msgid "guestfs_lvuuid"
30349 msgstr "guestfs_lvuuid"
30352 #: ../src/guestfs-actions.pod:4506
30356 " guestfs_lvuuid (guestfs_h *g,\n"
30357 " const char *device);\n"
30361 " guestfs_lvuuid (guestfs_h *g,\n"
30362 " const char *device);\n"
30366 #: ../src/guestfs-actions.pod:4517
30367 msgid "guestfs_lxattrlist"
30368 msgstr "guestfs_lxattrlist"
30371 #: ../src/guestfs-actions.pod:4519
30374 " struct guestfs_xattr_list *\n"
30375 " guestfs_lxattrlist (guestfs_h *g,\n"
30376 " const char *path,\n"
30377 " char *const *names);\n"
30380 " struct guestfs_xattr_list *\n"
30381 " guestfs_lxattrlist (guestfs_h *g,\n"
30382 " const char *path,\n"
30383 " char *const *names);\n"
30387 #: ../src/guestfs-actions.pod:4538
30389 "This call is intended for programs that want to efficiently list a directory "
30390 "contents without making many round-trips. See also C<guestfs_lstatlist> for "
30391 "a similarly efficient call for getting standard stats. Very long directory "
30392 "listings might cause the protocol message size to be exceeded, causing this "
30393 "call to fail. The caller must split up such requests into smaller groups of "
30398 #: ../src/guestfs-actions.pod:4552
30399 msgid "guestfs_mkdir"
30400 msgstr "guestfs_mkdir"
30403 #: ../src/guestfs-actions.pod:4554
30407 " guestfs_mkdir (guestfs_h *g,\n"
30408 " const char *path);\n"
30412 " guestfs_mkdir (guestfs_h *g,\n"
30413 " const char *path);\n"
30417 #: ../src/guestfs-actions.pod:4564
30418 msgid "guestfs_mkdir_mode"
30419 msgstr "guestfs_mkdir_mode"
30422 #: ../src/guestfs-actions.pod:4566
30426 " guestfs_mkdir_mode (guestfs_h *g,\n"
30427 " const char *path,\n"
30432 " guestfs_mkdir_mode (guestfs_h *g,\n"
30433 " const char *path,\n"
30438 #: ../src/guestfs-actions.pod:4578
30439 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30443 #: ../src/guestfs-actions.pod:4584
30444 msgid "guestfs_mkdir_p"
30445 msgstr "guestfs_mkdir_p"
30448 #: ../src/guestfs-actions.pod:4586
30452 " guestfs_mkdir_p (guestfs_h *g,\n"
30453 " const char *path);\n"
30457 " guestfs_mkdir_p (guestfs_h *g,\n"
30458 " const char *path);\n"
30462 #: ../src/guestfs-actions.pod:4597
30463 msgid "guestfs_mkdtemp"
30464 msgstr "guestfs_mkdtemp"
30467 #: ../src/guestfs-actions.pod:4599
30471 " guestfs_mkdtemp (guestfs_h *g,\n"
30472 " const char *template);\n"
30476 " guestfs_mkdtemp (guestfs_h *g,\n"
30477 " const char *template);\n"
30481 #: ../src/guestfs-actions.pod:4627
30482 msgid "guestfs_mke2fs_J"
30483 msgstr "guestfs_mke2fs_J"
30486 #: ../src/guestfs-actions.pod:4629
30490 " guestfs_mke2fs_J (guestfs_h *g,\n"
30491 " const char *fstype,\n"
30492 " int blocksize,\n"
30493 " const char *device,\n"
30494 " const char *journal);\n"
30498 " guestfs_mke2fs_J (guestfs_h *g,\n"
30499 " const char *fstype,\n"
30500 " int blocksize,\n"
30501 " const char *device,\n"
30502 " const char *journal);\n"
30506 #: ../src/guestfs-actions.pod:4642
30507 msgid "See also C<guestfs_mke2journal>."
30511 #: ../src/guestfs-actions.pod:4646 ../src/guestfs-actions.pod:4664
30512 #: ../src/guestfs-actions.pod:4682 ../src/guestfs-actions.pod:4698
30513 #: ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4726
30514 #: ../src/guestfs-actions.pod:4785 ../src/guestfs-actions.pod:5062
30515 msgid "(Added in 1.0.68)"
30516 msgstr "(Додано у 1.0.68)"
30519 #: ../src/guestfs-actions.pod:4648
30520 msgid "guestfs_mke2fs_JL"
30521 msgstr "guestfs_mke2fs_JL"
30524 #: ../src/guestfs-actions.pod:4650
30528 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30529 " const char *fstype,\n"
30530 " int blocksize,\n"
30531 " const char *device,\n"
30532 " const char *label);\n"
30536 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30537 " const char *fstype,\n"
30538 " int blocksize,\n"
30539 " const char *device,\n"
30540 " const char *label);\n"
30544 #: ../src/guestfs-actions.pod:4660
30545 msgid "See also C<guestfs_mke2journal_L>."
30549 #: ../src/guestfs-actions.pod:4666
30550 msgid "guestfs_mke2fs_JU"
30551 msgstr "guestfs_mke2fs_JU"
30554 #: ../src/guestfs-actions.pod:4668
30558 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30559 " const char *fstype,\n"
30560 " int blocksize,\n"
30561 " const char *device,\n"
30562 " const char *uuid);\n"
30566 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30567 " const char *fstype,\n"
30568 " int blocksize,\n"
30569 " const char *device,\n"
30570 " const char *uuid);\n"
30574 #: ../src/guestfs-actions.pod:4678
30575 msgid "See also C<guestfs_mke2journal_U>."
30579 #: ../src/guestfs-actions.pod:4684
30580 msgid "guestfs_mke2journal"
30581 msgstr "guestfs_mke2journal"
30584 #: ../src/guestfs-actions.pod:4686
30588 " guestfs_mke2journal (guestfs_h *g,\n"
30589 " int blocksize,\n"
30590 " const char *device);\n"
30594 " guestfs_mke2journal (guestfs_h *g,\n"
30595 " int blocksize,\n"
30596 " const char *device);\n"
30600 #: ../src/guestfs-actions.pod:4700
30601 msgid "guestfs_mke2journal_L"
30602 msgstr "guestfs_mke2journal_L"
30605 #: ../src/guestfs-actions.pod:4702
30609 " guestfs_mke2journal_L (guestfs_h *g,\n"
30610 " int blocksize,\n"
30611 " const char *label,\n"
30612 " const char *device);\n"
30616 " guestfs_mke2journal_L (guestfs_h *g,\n"
30617 " int blocksize,\n"
30618 " const char *label,\n"
30619 " const char *device);\n"
30623 #: ../src/guestfs-actions.pod:4714
30624 msgid "guestfs_mke2journal_U"
30625 msgstr "guestfs_mke2journal_U"
30628 #: ../src/guestfs-actions.pod:4716
30632 " guestfs_mke2journal_U (guestfs_h *g,\n"
30633 " int blocksize,\n"
30634 " const char *uuid,\n"
30635 " const char *device);\n"
30639 " guestfs_mke2journal_U (guestfs_h *g,\n"
30640 " int blocksize,\n"
30641 " const char *uuid,\n"
30642 " const char *device);\n"
30646 #: ../src/guestfs-actions.pod:4728
30647 msgid "guestfs_mkfifo"
30648 msgstr "guestfs_mkfifo"
30651 #: ../src/guestfs-actions.pod:4730
30655 " guestfs_mkfifo (guestfs_h *g,\n"
30657 " const char *path);\n"
30661 " guestfs_mkfifo (guestfs_h *g,\n"
30663 " const char *path);\n"
30667 #: ../src/guestfs-actions.pod:4735
30669 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>. It "
30670 "is just a convenient wrapper around C<guestfs_mknod>."
30674 #: ../src/guestfs-actions.pod:4745
30675 msgid "guestfs_mkfs"
30676 msgstr "guestfs_mkfs"
30679 #: ../src/guestfs-actions.pod:4747
30683 " guestfs_mkfs (guestfs_h *g,\n"
30684 " const char *fstype,\n"
30685 " const char *device);\n"
30689 " guestfs_mkfs (guestfs_h *g,\n"
30690 " const char *fstype,\n"
30691 " const char *device);\n"
30695 #: ../src/guestfs-actions.pod:4760
30696 msgid "guestfs_mkfs_b"
30697 msgstr "guestfs_mkfs_b"
30700 #: ../src/guestfs-actions.pod:4762
30704 " guestfs_mkfs_b (guestfs_h *g,\n"
30705 " const char *fstype,\n"
30706 " int blocksize,\n"
30707 " const char *device);\n"
30711 " guestfs_mkfs_b (guestfs_h *g,\n"
30712 " const char *fstype,\n"
30713 " int blocksize,\n"
30714 " const char *device);\n"
30718 #: ../src/guestfs-actions.pod:4768
30720 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
30725 #: ../src/guestfs-actions.pod:4775
30727 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
30728 "block size of the resulting filesystem. Supported block sizes depend on the "
30729 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
30733 #: ../src/guestfs-actions.pod:4787
30734 msgid "guestfs_mkfs_opts"
30735 msgstr "guestfs_mkfs_opts"
30738 #: ../src/guestfs-actions.pod:4789
30742 " guestfs_mkfs_opts (guestfs_h *g,\n"
30743 " const char *fstype,\n"
30744 " const char *device,\n"
30749 " guestfs_mkfs_opts (guestfs_h *g,\n"
30750 " const char *fstype,\n"
30751 " const char *device,\n"
30756 #: ../src/guestfs-actions.pod:4800
30759 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
30760 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
30761 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
30762 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
30767 #: ../src/guestfs-actions.pod:4848
30768 msgid "(Added in 1.7.19)"
30769 msgstr "(Додано у 1.7.19)"
30772 #: ../src/guestfs-actions.pod:4850
30773 msgid "guestfs_mkfs_opts_va"
30774 msgstr "guestfs_mkfs_opts_va"
30777 #: ../src/guestfs-actions.pod:4852
30781 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30782 " const char *fstype,\n"
30783 " const char *device,\n"
30784 " va_list args);\n"
30788 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30789 " const char *fstype,\n"
30790 " const char *device,\n"
30791 " va_list args);\n"
30795 #: ../src/guestfs-actions.pod:4858
30796 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
30800 #: ../src/guestfs-actions.pod:4862
30801 msgid "guestfs_mkfs_opts_argv"
30802 msgstr "guestfs_mkfs_opts_argv"
30805 #: ../src/guestfs-actions.pod:4864
30809 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30810 " const char *fstype,\n"
30811 " const char *device,\n"
30812 " const struct guestfs_mkfs_opts_argv *optargs);\n"
30816 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30817 " const char *fstype,\n"
30818 " const char *device,\n"
30819 " const struct guestfs_mkfs_opts_argv *optargs);\n"
30823 #: ../src/guestfs-actions.pod:4870
30824 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
30828 #: ../src/guestfs-actions.pod:4874
30829 msgid "guestfs_mkmountpoint"
30830 msgstr "guestfs_mkmountpoint"
30833 #: ../src/guestfs-actions.pod:4876
30837 " guestfs_mkmountpoint (guestfs_h *g,\n"
30838 " const char *exemptpath);\n"
30842 " guestfs_mkmountpoint (guestfs_h *g,\n"
30843 " const char *exemptpath);\n"
30847 #: ../src/guestfs-actions.pod:4880
30849 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
30850 "that can be used to create extra mountpoints before mounting the first "
30855 #: ../src/guestfs-actions.pod:4904
30857 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>. You "
30858 "may get unexpected errors if you try to mix these calls. It is safest to "
30859 "manually unmount filesystems and remove mountpoints after use."
30863 #: ../src/guestfs-actions.pod:4908
30865 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
30866 "first, so for this to work for manual mountpoints, you must ensure that the "
30867 "innermost mountpoints have the longest pathnames, as in the example code "
30872 #: ../src/guestfs-actions.pod:4915
30874 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
30875 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
30876 "can also trigger these issues."
30880 #: ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:5227
30881 #: ../src/guestfs-actions.pod:6237
30882 msgid "(Added in 1.0.62)"
30883 msgstr "(Додано у 1.0.62)"
30886 #: ../src/guestfs-actions.pod:4923
30887 msgid "guestfs_mknod"
30891 #: ../src/guestfs-actions.pod:4925
30895 " guestfs_mknod (guestfs_h *g,\n"
30899 " const char *path);\n"
30904 #: ../src/guestfs-actions.pod:4940
30906 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
30907 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
30908 "regular file). These constants are available in the standard Linux header "
30909 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
30910 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
30911 "the appropriate constant for you."
30915 #: ../src/guestfs-actions.pod:4954
30916 msgid "guestfs_mknod_b"
30920 #: ../src/guestfs-actions.pod:4956
30924 " guestfs_mknod_b (guestfs_h *g,\n"
30928 " const char *path);\n"
30933 #: ../src/guestfs-actions.pod:4963
30935 "This call creates a block device node called C<path> with mode C<mode> and "
30936 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
30937 "wrapper around C<guestfs_mknod>."
30941 #: ../src/guestfs-actions.pod:4973
30942 msgid "guestfs_mknod_c"
30946 #: ../src/guestfs-actions.pod:4975
30950 " guestfs_mknod_c (guestfs_h *g,\n"
30954 " const char *path);\n"
30959 #: ../src/guestfs-actions.pod:4982
30961 "This call creates a char device node called C<path> with mode C<mode> and "
30962 "device major/minor C<devmajor> and C<devminor>. It is just a convenient "
30963 "wrapper around C<guestfs_mknod>."
30967 #: ../src/guestfs-actions.pod:4992
30968 msgid "guestfs_mkswap"
30972 #: ../src/guestfs-actions.pod:4994
30976 " guestfs_mkswap (guestfs_h *g,\n"
30977 " const char *device);\n"
30982 #: ../src/guestfs-actions.pod:5004
30983 msgid "guestfs_mkswap_L"
30987 #: ../src/guestfs-actions.pod:5006
30991 " guestfs_mkswap_L (guestfs_h *g,\n"
30992 " const char *label,\n"
30993 " const char *device);\n"
30998 #: ../src/guestfs-actions.pod:5021
30999 msgid "guestfs_mkswap_U"
31003 #: ../src/guestfs-actions.pod:5023
31007 " guestfs_mkswap_U (guestfs_h *g,\n"
31008 " const char *uuid,\n"
31009 " const char *device);\n"
31014 #: ../src/guestfs-actions.pod:5034
31015 msgid "guestfs_mkswap_file"
31019 #: ../src/guestfs-actions.pod:5036
31023 " guestfs_mkswap_file (guestfs_h *g,\n"
31024 " const char *path);\n"
31029 #: ../src/guestfs-actions.pod:5042
31031 "This command just writes a swap file signature to an existing file. To "
31032 "create the file itself, use something like C<guestfs_fallocate>."
31036 #: ../src/guestfs-actions.pod:5049
31037 msgid "guestfs_modprobe"
31041 #: ../src/guestfs-actions.pod:5051
31045 " guestfs_modprobe (guestfs_h *g,\n"
31046 " const char *modulename);\n"
31051 #: ../src/guestfs-actions.pod:5064
31052 msgid "guestfs_mount"
31056 #: ../src/guestfs-actions.pod:5066
31060 " guestfs_mount (guestfs_h *g,\n"
31061 " const char *device,\n"
31062 " const char *mountpoint);\n"
31067 #: ../src/guestfs-actions.pod:5085
31069 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
31070 "and C<noatime>. The C<sync> option greatly slowed writes and caused many "
31071 "problems for users. If your program might need to work with older versions "
31072 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
31073 "for the first parameter if you don't want any options)."
31077 #: ../src/guestfs-actions.pod:5096
31078 msgid "guestfs_mount_9p"
31082 #: ../src/guestfs-actions.pod:5098
31086 " guestfs_mount_9p (guestfs_h *g,\n"
31087 " const char *mounttag,\n"
31088 " const char *mountpoint,\n"
31094 #: ../src/guestfs-actions.pod:5109
31097 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
31102 #: ../src/guestfs-actions.pod:5122
31103 msgid "guestfs_mount_9p_va"
31107 #: ../src/guestfs-actions.pod:5124
31111 " guestfs_mount_9p_va (guestfs_h *g,\n"
31112 " const char *mounttag,\n"
31113 " const char *mountpoint,\n"
31114 " va_list args);\n"
31119 #: ../src/guestfs-actions.pod:5130
31120 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
31124 #: ../src/guestfs-actions.pod:5134
31125 msgid "guestfs_mount_9p_argv"
31129 #: ../src/guestfs-actions.pod:5136
31133 " guestfs_mount_9p_argv (guestfs_h *g,\n"
31134 " const char *mounttag,\n"
31135 " const char *mountpoint,\n"
31136 " const struct guestfs_mount_9p_argv *optargs);\n"
31141 #: ../src/guestfs-actions.pod:5142
31142 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
31146 #: ../src/guestfs-actions.pod:5146
31147 msgid "guestfs_mount_loop"
31151 #: ../src/guestfs-actions.pod:5148
31155 " guestfs_mount_loop (guestfs_h *g,\n"
31156 " const char *file,\n"
31157 " const char *mountpoint);\n"
31162 #: ../src/guestfs-actions.pod:5161
31163 msgid "guestfs_mount_options"
31167 #: ../src/guestfs-actions.pod:5163
31171 " guestfs_mount_options (guestfs_h *g,\n"
31172 " const char *options,\n"
31173 " const char *device,\n"
31174 " const char *mountpoint);\n"
31179 #: ../src/guestfs-actions.pod:5169
31181 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31182 "the mount options as for the L<mount(8)> I<-o> flag."
31186 #: ../src/guestfs-actions.pod:5179 ../src/guestfs-actions.pod:5193
31187 #: ../src/guestfs-actions.pod:5210
31188 msgid "(Added in 1.0.10)"
31192 #: ../src/guestfs-actions.pod:5181
31193 msgid "guestfs_mount_ro"
31197 #: ../src/guestfs-actions.pod:5183
31201 " guestfs_mount_ro (guestfs_h *g,\n"
31202 " const char *device,\n"
31203 " const char *mountpoint);\n"
31208 #: ../src/guestfs-actions.pod:5188
31210 "This is the same as the C<guestfs_mount> command, but it mounts the "
31211 "filesystem with the read-only (I<-o ro>) flag."
31215 #: ../src/guestfs-actions.pod:5195
31216 msgid "guestfs_mount_vfs"
31220 #: ../src/guestfs-actions.pod:5197
31224 " guestfs_mount_vfs (guestfs_h *g,\n"
31225 " const char *options,\n"
31226 " const char *vfstype,\n"
31227 " const char *device,\n"
31228 " const char *mountpoint);\n"
31233 #: ../src/guestfs-actions.pod:5204
31235 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31236 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
31241 #: ../src/guestfs-actions.pod:5212
31242 msgid "guestfs_mountpoints"
31246 #: ../src/guestfs-actions.pod:5214
31250 " guestfs_mountpoints (guestfs_h *g);\n"
31255 #: ../src/guestfs-actions.pod:5217
31257 "This call is similar to C<guestfs_mounts>. That call returns a list of "
31258 "devices. This one returns a hash table (map) of device name to directory "
31259 "where the device is mounted."
31263 #: ../src/guestfs-actions.pod:5229
31264 msgid "guestfs_mounts"
31268 #: ../src/guestfs-actions.pod:5231
31272 " guestfs_mounts (guestfs_h *g);\n"
31277 #: ../src/guestfs-actions.pod:5239
31278 msgid "See also: C<guestfs_mountpoints>"
31282 #: ../src/guestfs-actions.pod:5247
31287 #: ../src/guestfs-actions.pod:5249
31291 " guestfs_mv (guestfs_h *g,\n"
31292 " const char *src,\n"
31293 " const char *dest);\n"
31298 #: ../src/guestfs-actions.pod:5261
31299 msgid "guestfs_ntfs_3g_probe"
31303 #: ../src/guestfs-actions.pod:5263
31307 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
31309 " const char *device);\n"
31314 #: ../src/guestfs-actions.pod:5282
31315 msgid "(Added in 1.0.43)"
31319 #: ../src/guestfs-actions.pod:5284
31320 msgid "guestfs_ntfsresize"
31324 #: ../src/guestfs-actions.pod:5286
31328 " guestfs_ntfsresize (guestfs_h *g,\n"
31329 " const char *device);\n"
31334 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5390
31336 "I<This function is deprecated.> In new code, use the L</"
31337 "guestfs_ntfsresize_opts> call instead."
31341 #: ../src/guestfs-actions.pod:5314
31342 msgid "guestfs_ntfsresize_opts"
31346 #: ../src/guestfs-actions.pod:5316
31350 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
31351 " const char *device,\n"
31357 #: ../src/guestfs-actions.pod:5326
31360 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
31361 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
31366 #: ../src/guestfs-actions.pod:5346
31368 "After the resize operation, the filesystem is always marked as requiring a "
31369 "consistency check (for safety). You have to boot into Windows to perform "
31370 "this check and clear this condition. If you I<don't> set the C<force> "
31371 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
31372 "times on a single filesystem without booting into Windows between each "
31377 #: ../src/guestfs-actions.pod:5361
31378 msgid "guestfs_ntfsresize_opts_va"
31382 #: ../src/guestfs-actions.pod:5363
31386 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
31387 " const char *device,\n"
31388 " va_list args);\n"
31393 #: ../src/guestfs-actions.pod:5368
31394 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
31398 #: ../src/guestfs-actions.pod:5372
31399 msgid "guestfs_ntfsresize_opts_argv"
31403 #: ../src/guestfs-actions.pod:5374
31407 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
31408 " const char *device,\n"
31409 " const struct guestfs_ntfsresize_opts_argv *optargs);\n"
31414 #: ../src/guestfs-actions.pod:5379
31415 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
31419 #: ../src/guestfs-actions.pod:5383
31420 msgid "guestfs_ntfsresize_size"
31424 #: ../src/guestfs-actions.pod:5385
31428 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31429 " const char *device,\n"
31430 " int64_t size);\n"
31435 #: ../src/guestfs-actions.pod:5397
31437 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31438 "to specify the new size (in bytes) explicitly."
31442 #: ../src/guestfs-actions.pod:5402 ../src/guestfs-actions.pod:5844
31443 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6185
31444 #: ../src/guestfs-actions.pod:7824
31445 msgid "(Added in 1.3.14)"
31449 #: ../src/guestfs-actions.pod:5404
31450 msgid "guestfs_part_add"
31454 #: ../src/guestfs-actions.pod:5406
31458 " guestfs_part_add (guestfs_h *g,\n"
31459 " const char *device,\n"
31460 " const char *prlogex,\n"
31461 " int64_t startsect,\n"
31462 " int64_t endsect);\n"
31467 #: ../src/guestfs-actions.pod:5413
31469 "This command adds a partition to C<device>. If there is no partition table "
31470 "on the device, call C<guestfs_part_init> first."
31474 #: ../src/guestfs-actions.pod:5425
31476 "Creating a partition which covers the whole disk is not so easy. Use "
31477 "C<guestfs_part_disk> to do that."
31481 #: ../src/guestfs-actions.pod:5430 ../src/guestfs-actions.pod:5468
31482 #: ../src/guestfs-actions.pod:5521 ../src/guestfs-actions.pod:5605
31483 #: ../src/guestfs-actions.pod:5643 ../src/guestfs-actions.pod:5662
31484 #: ../src/guestfs-actions.pod:5702
31485 msgid "(Added in 1.0.78)"
31489 #: ../src/guestfs-actions.pod:5432
31490 msgid "guestfs_part_del"
31494 #: ../src/guestfs-actions.pod:5434
31498 " guestfs_part_del (guestfs_h *g,\n"
31499 " const char *device,\n"
31505 #: ../src/guestfs-actions.pod:5449
31506 msgid "guestfs_part_disk"
31510 #: ../src/guestfs-actions.pod:5451
31514 " guestfs_part_disk (guestfs_h *g,\n"
31515 " const char *device,\n"
31516 " const char *parttype);\n"
31521 #: ../src/guestfs-actions.pod:5456
31523 "This command is simply a combination of C<guestfs_part_init> followed by "
31524 "C<guestfs_part_add> to create a single primary partition covering the whole "
31529 #: ../src/guestfs-actions.pod:5460
31531 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
31532 "possible values are described in C<guestfs_part_init>."
31536 #: ../src/guestfs-actions.pod:5470
31537 msgid "guestfs_part_get_bootable"
31541 #: ../src/guestfs-actions.pod:5472
31545 " guestfs_part_get_bootable (guestfs_h *g,\n"
31546 " const char *device,\n"
31552 #: ../src/guestfs-actions.pod:5480
31553 msgid "See also C<guestfs_part_set_bootable>."
31557 #: ../src/guestfs-actions.pod:5486
31558 msgid "guestfs_part_get_mbr_id"
31562 #: ../src/guestfs-actions.pod:5488
31566 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
31567 " const char *device,\n"
31573 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5678
31575 "Note that only MBR (old DOS-style) partitions have type bytes. You will get "
31576 "undefined results for other partition table types (see "
31577 "C<guestfs_part_get_parttype>)."
31581 #: ../src/guestfs-actions.pod:5504
31582 msgid "guestfs_part_get_parttype"
31586 #: ../src/guestfs-actions.pod:5506
31590 " guestfs_part_get_parttype (guestfs_h *g,\n"
31591 " const char *device);\n"
31596 #: ../src/guestfs-actions.pod:5513
31598 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
31599 "table), C<gpt> (a GPT/EFI-style partition table). Other values are "
31600 "possible, although unusual. See C<guestfs_part_init> for a full list."
31604 #: ../src/guestfs-actions.pod:5523
31605 msgid "guestfs_part_init"
31609 #: ../src/guestfs-actions.pod:5525
31613 " guestfs_part_init (guestfs_h *g,\n"
31614 " const char *device,\n"
31615 " const char *parttype);\n"
31620 #: ../src/guestfs-actions.pod:5534
31622 "Initially there are no partitions. Following this, you should call "
31623 "C<guestfs_part_add> for each partition required."
31627 #: ../src/guestfs-actions.pod:5607
31628 msgid "guestfs_part_list"
31629 msgstr "guestfs_part_list"
31632 #: ../src/guestfs-actions.pod:5609
31635 " struct guestfs_partition_list *\n"
31636 " guestfs_part_list (guestfs_h *g,\n"
31637 " const char *device);\n"
31640 " struct guestfs_partition_list *\n"
31641 " guestfs_part_list (guestfs_h *g,\n"
31642 " const char *device);\n"
31646 #: ../src/guestfs-actions.pod:5626
31648 "Start of the partition I<in bytes>. To get sectors you have to divide by "
31649 "the device's sector size, see C<guestfs_blockdev_getss>."
31653 #: ../src/guestfs-actions.pod:5639
31655 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
31656 "was an error. I<The caller must call C<guestfs_free_partition_list> after "
31661 #: ../src/guestfs-actions.pod:5645
31662 msgid "guestfs_part_set_bootable"
31666 #: ../src/guestfs-actions.pod:5647
31670 " guestfs_part_set_bootable (guestfs_h *g,\n"
31671 " const char *device,\n"
31673 " int bootable);\n"
31678 #: ../src/guestfs-actions.pod:5664
31679 msgid "guestfs_part_set_mbr_id"
31683 #: ../src/guestfs-actions.pod:5666
31687 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
31688 " const char *device,\n"
31695 #: ../src/guestfs-actions.pod:5686
31696 msgid "guestfs_part_set_name"
31700 #: ../src/guestfs-actions.pod:5688
31704 " guestfs_part_set_name (guestfs_h *g,\n"
31705 " const char *device,\n"
31707 " const char *name);\n"
31712 #: ../src/guestfs-actions.pod:5704
31713 msgid "guestfs_part_to_dev"
31717 #: ../src/guestfs-actions.pod:5706
31721 " guestfs_part_to_dev (guestfs_h *g,\n"
31722 " const char *partition);\n"
31727 #: ../src/guestfs-actions.pod:5714
31729 "The named partition must exist, for example as a string returned from "
31730 "C<guestfs_list_partitions>."
31734 #: ../src/guestfs-actions.pod:5722
31735 msgid "guestfs_ping_daemon"
31739 #: ../src/guestfs-actions.pod:5724
31743 " guestfs_ping_daemon (guestfs_h *g);\n"
31748 #: ../src/guestfs-actions.pod:5736
31749 msgid "guestfs_pread"
31753 #: ../src/guestfs-actions.pod:5738
31757 " guestfs_pread (guestfs_h *g,\n"
31758 " const char *path,\n"
31760 " int64_t offset,\n"
31761 " size_t *size_r);\n"
31766 #: ../src/guestfs-actions.pod:5751
31767 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
31771 #: ../src/guestfs-actions.pod:5762
31772 msgid "guestfs_pread_device"
31776 #: ../src/guestfs-actions.pod:5764
31780 " guestfs_pread_device (guestfs_h *g,\n"
31781 " const char *device,\n"
31783 " int64_t offset,\n"
31784 " size_t *size_r);\n"
31789 #: ../src/guestfs-actions.pod:5777
31790 msgid "See also C<guestfs_pread>."
31794 #: ../src/guestfs-actions.pod:5786
31795 msgid "(Added in 1.5.21)"
31799 #: ../src/guestfs-actions.pod:5788
31800 msgid "guestfs_pvcreate"
31804 #: ../src/guestfs-actions.pod:5790
31808 " guestfs_pvcreate (guestfs_h *g,\n"
31809 " const char *device);\n"
31814 #: ../src/guestfs-actions.pod:5802
31815 msgid "guestfs_pvremove"
31819 #: ../src/guestfs-actions.pod:5804
31823 " guestfs_pvremove (guestfs_h *g,\n"
31824 " const char *device);\n"
31829 #: ../src/guestfs-actions.pod:5819
31830 msgid "guestfs_pvresize"
31834 #: ../src/guestfs-actions.pod:5821
31838 " guestfs_pvresize (guestfs_h *g,\n"
31839 " const char *device);\n"
31844 #: ../src/guestfs-actions.pod:5832
31845 msgid "guestfs_pvresize_size"
31849 #: ../src/guestfs-actions.pod:5834
31853 " guestfs_pvresize_size (guestfs_h *g,\n"
31854 " const char *device,\n"
31855 " int64_t size);\n"
31860 #: ../src/guestfs-actions.pod:5839
31862 "This command is the same as C<guestfs_pvresize> except that it allows you to "
31863 "specify the new size (in bytes) explicitly."
31867 #: ../src/guestfs-actions.pod:5846
31868 msgid "guestfs_pvs"
31872 #: ../src/guestfs-actions.pod:5848
31876 " guestfs_pvs (guestfs_h *g);\n"
31881 #: ../src/guestfs-actions.pod:5857
31882 msgid "See also C<guestfs_pvs_full>."
31886 #: ../src/guestfs-actions.pod:5865
31887 msgid "guestfs_pvs_full"
31891 #: ../src/guestfs-actions.pod:5867
31894 " struct guestfs_lvm_pv_list *\n"
31895 " guestfs_pvs_full (guestfs_h *g);\n"
31900 #: ../src/guestfs-actions.pod:5873
31902 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
31903 "was an error. I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
31907 #: ../src/guestfs-actions.pod:5879
31908 msgid "guestfs_pvuuid"
31912 #: ../src/guestfs-actions.pod:5881
31916 " guestfs_pvuuid (guestfs_h *g,\n"
31917 " const char *device);\n"
31922 #: ../src/guestfs-actions.pod:5892
31923 msgid "guestfs_pwrite"
31927 #: ../src/guestfs-actions.pod:5894
31931 " guestfs_pwrite (guestfs_h *g,\n"
31932 " const char *path,\n"
31933 " const char *content,\n"
31934 " size_t content_size,\n"
31935 " int64_t offset);\n"
31940 #: ../src/guestfs-actions.pod:5910
31941 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
31945 #: ../src/guestfs-actions.pod:5919
31946 msgid "guestfs_pwrite_device"
31950 #: ../src/guestfs-actions.pod:5921
31954 " guestfs_pwrite_device (guestfs_h *g,\n"
31955 " const char *device,\n"
31956 " const char *content,\n"
31957 " size_t content_size,\n"
31958 " int64_t offset);\n"
31963 #: ../src/guestfs-actions.pod:5936
31964 msgid "See also C<guestfs_pwrite>."
31968 #: ../src/guestfs-actions.pod:5943
31969 msgid "(Added in 1.5.20)"
31973 #: ../src/guestfs-actions.pod:5945
31974 msgid "guestfs_read_file"
31978 #: ../src/guestfs-actions.pod:5947
31982 " guestfs_read_file (guestfs_h *g,\n"
31983 " const char *path,\n"
31984 " size_t *size_r);\n"
31989 #: ../src/guestfs-actions.pod:5955
31991 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
31992 "embedded ASCII NUL characters. However unlike C<guestfs_download>, this "
31993 "function is limited in the total size of file that can be handled."
31997 #: ../src/guestfs-actions.pod:5967
31998 msgid "(Added in 1.0.63)"
32002 #: ../src/guestfs-actions.pod:5969
32003 msgid "guestfs_read_lines"
32007 #: ../src/guestfs-actions.pod:5971
32011 " guestfs_read_lines (guestfs_h *g,\n"
32012 " const char *path);\n"
32017 #: ../src/guestfs-actions.pod:5980
32019 "Note that this function cannot correctly handle binary files (specifically, "
32020 "files containing C<\\0> character which is treated as end of line). For "
32021 "those you need to use the C<guestfs_read_file> function which has a more "
32022 "complex interface."
32026 #: ../src/guestfs-actions.pod:5991
32027 msgid "guestfs_readdir"
32031 #: ../src/guestfs-actions.pod:5993
32034 " struct guestfs_dirent_list *\n"
32035 " guestfs_readdir (guestfs_h *g,\n"
32036 " const char *dir);\n"
32041 #: ../src/guestfs-actions.pod:6047
32043 "This function is primarily intended for use by programs. To get a simple "
32044 "list of names, use C<guestfs_ls>. To get a printable directory for human "
32045 "consumption, use C<guestfs_ll>."
32049 #: ../src/guestfs-actions.pod:6051
32051 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
32052 "was an error. I<The caller must call C<guestfs_free_dirent_list> after use>."
32056 #: ../src/guestfs-actions.pod:6057
32057 msgid "guestfs_readlink"
32061 #: ../src/guestfs-actions.pod:6059
32065 " guestfs_readlink (guestfs_h *g,\n"
32066 " const char *path);\n"
32071 #: ../src/guestfs-actions.pod:6070
32072 msgid "guestfs_readlinklist"
32076 #: ../src/guestfs-actions.pod:6072
32080 " guestfs_readlinklist (guestfs_h *g,\n"
32081 " const char *path,\n"
32082 " char *const *names);\n"
32087 #: ../src/guestfs-actions.pod:6105
32088 msgid "guestfs_realpath"
32092 #: ../src/guestfs-actions.pod:6107
32096 " guestfs_realpath (guestfs_h *g,\n"
32097 " const char *path);\n"
32102 #: ../src/guestfs-actions.pod:6119
32103 msgid "guestfs_removexattr"
32107 #: ../src/guestfs-actions.pod:6121
32111 " guestfs_removexattr (guestfs_h *g,\n"
32112 " const char *xattr,\n"
32113 " const char *path);\n"
32118 #: ../src/guestfs-actions.pod:6129
32119 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
32123 #: ../src/guestfs-actions.pod:6135
32124 msgid "guestfs_resize2fs"
32128 #: ../src/guestfs-actions.pod:6137
32132 " guestfs_resize2fs (guestfs_h *g,\n"
32133 " const char *device);\n"
32138 #: ../src/guestfs-actions.pod:6144
32140 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
32141 "C<device> before calling this command. For unknown reasons C<resize2fs> "
32142 "sometimes gives an error about this and sometimes not. In any case, it is "
32143 "always safe to call C<guestfs_e2fsck_f> before calling this function."
32147 #: ../src/guestfs-actions.pod:6154
32148 msgid "guestfs_resize2fs_M"
32152 #: ../src/guestfs-actions.pod:6156
32156 " guestfs_resize2fs_M (guestfs_h *g,\n"
32157 " const char *device);\n"
32162 #: ../src/guestfs-actions.pod:6160
32164 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
32165 "resized to its minimum size. This works like the I<-M> option to the "
32166 "C<resize2fs> command."
32170 #: ../src/guestfs-actions.pod:6164
32172 "To get the resulting size of the filesystem you should call "
32173 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values. "
32174 "These two numbers, multiplied together, give the resulting size of the "
32175 "minimal filesystem in bytes."
32179 #: ../src/guestfs-actions.pod:6173
32180 msgid "guestfs_resize2fs_size"
32184 #: ../src/guestfs-actions.pod:6175
32188 " guestfs_resize2fs_size (guestfs_h *g,\n"
32189 " const char *device,\n"
32190 " int64_t size);\n"
32195 #: ../src/guestfs-actions.pod:6180
32197 "This command is the same as C<guestfs_resize2fs> except that it allows you "
32198 "to specify the new size (in bytes) explicitly."
32202 #: ../src/guestfs-actions.pod:6187
32207 #: ../src/guestfs-actions.pod:6189
32211 " guestfs_rm (guestfs_h *g,\n"
32212 " const char *path);\n"
32217 #: ../src/guestfs-actions.pod:6199
32218 msgid "guestfs_rm_rf"
32222 #: ../src/guestfs-actions.pod:6201
32226 " guestfs_rm_rf (guestfs_h *g,\n"
32227 " const char *path);\n"
32232 #: ../src/guestfs-actions.pod:6213
32233 msgid "guestfs_rmdir"
32237 #: ../src/guestfs-actions.pod:6215
32241 " guestfs_rmdir (guestfs_h *g,\n"
32242 " const char *path);\n"
32247 #: ../src/guestfs-actions.pod:6225
32248 msgid "guestfs_rmmountpoint"
32252 #: ../src/guestfs-actions.pod:6227
32256 " guestfs_rmmountpoint (guestfs_h *g,\n"
32257 " const char *exemptpath);\n"
32262 #: ../src/guestfs-actions.pod:6231
32264 "This calls removes a mountpoint that was previously created with "
32265 "C<guestfs_mkmountpoint>. See C<guestfs_mkmountpoint> for full details."
32269 #: ../src/guestfs-actions.pod:6239
32270 msgid "guestfs_scrub_device"
32274 #: ../src/guestfs-actions.pod:6241
32278 " guestfs_scrub_device (guestfs_h *g,\n"
32279 " const char *device);\n"
32284 #: ../src/guestfs-actions.pod:6256 ../src/guestfs-actions.pod:6274
32285 #: ../src/guestfs-actions.pod:6293
32286 msgid "(Added in 1.0.52)"
32290 #: ../src/guestfs-actions.pod:6258
32291 msgid "guestfs_scrub_file"
32295 #: ../src/guestfs-actions.pod:6260
32299 " guestfs_scrub_file (guestfs_h *g,\n"
32300 " const char *file);\n"
32305 #: ../src/guestfs-actions.pod:6276
32306 msgid "guestfs_scrub_freespace"
32310 #: ../src/guestfs-actions.pod:6278
32314 " guestfs_scrub_freespace (guestfs_h *g,\n"
32315 " const char *dir);\n"
32320 #: ../src/guestfs-actions.pod:6282
32322 "This command creates the directory C<dir> and then fills it with files until "
32323 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
32324 "and deletes them. The intention is to scrub any free space on the partition "
32325 "containing C<dir>."
32329 #: ../src/guestfs-actions.pod:6295
32330 msgid "guestfs_set_append"
32334 #: ../src/guestfs-actions.pod:6297
32338 " guestfs_set_append (guestfs_h *g,\n"
32339 " const char *append);\n"
32344 #: ../src/guestfs-actions.pod:6314
32345 msgid "guestfs_set_attach_method"
32349 #: ../src/guestfs-actions.pod:6316
32353 " guestfs_set_attach_method (guestfs_h *g,\n"
32354 " const char *attachmethod);\n"
32359 #: ../src/guestfs-actions.pod:6344
32360 msgid "guestfs_set_autosync"
32364 #: ../src/guestfs-actions.pod:6346
32368 " guestfs_set_autosync (guestfs_h *g,\n"
32369 " int autosync);\n"
32374 #: ../src/guestfs-actions.pod:6362
32375 msgid "guestfs_set_direct"
32379 #: ../src/guestfs-actions.pod:6364
32383 " guestfs_set_direct (guestfs_h *g,\n"
32389 #: ../src/guestfs-actions.pod:6372
32391 "One consequence of this is that log messages aren't caught by the library "
32392 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
32397 #: ../src/guestfs-actions.pod:6385
32398 msgid "guestfs_set_e2label"
32402 #: ../src/guestfs-actions.pod:6387
32406 " guestfs_set_e2label (guestfs_h *g,\n"
32407 " const char *device,\n"
32408 " const char *label);\n"
32413 #: ../src/guestfs-actions.pod:6396
32415 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32416 "the existing label on a filesystem."
32420 #: ../src/guestfs-actions.pod:6403
32421 msgid "guestfs_set_e2uuid"
32425 #: ../src/guestfs-actions.pod:6405
32429 " guestfs_set_e2uuid (guestfs_h *g,\n"
32430 " const char *device,\n"
32431 " const char *uuid);\n"
32436 #: ../src/guestfs-actions.pod:6415
32438 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32439 "the existing UUID of a filesystem."
32443 #: ../src/guestfs-actions.pod:6422
32444 msgid "guestfs_set_memsize"
32448 #: ../src/guestfs-actions.pod:6424
32452 " guestfs_set_memsize (guestfs_h *g,\n"
32458 #: ../src/guestfs-actions.pod:6428
32460 "This sets the memory size in megabytes allocated to the qemu subprocess. "
32461 "This only has any effect if called before C<guestfs_launch>."
32465 #: ../src/guestfs-actions.pod:6443
32466 msgid "guestfs_set_network"
32470 #: ../src/guestfs-actions.pod:6445
32474 " guestfs_set_network (guestfs_h *g,\n"
32480 #: ../src/guestfs-actions.pod:6455
32482 "You must call this before calling C<guestfs_launch>, otherwise it has no "
32487 #: ../src/guestfs-actions.pod:6462
32488 msgid "guestfs_set_path"
32492 #: ../src/guestfs-actions.pod:6464
32496 " guestfs_set_path (guestfs_h *g,\n"
32497 " const char *searchpath);\n"
32502 #: ../src/guestfs-actions.pod:6479
32503 msgid "guestfs_set_pgroup"
32507 #: ../src/guestfs-actions.pod:6481
32511 " guestfs_set_pgroup (guestfs_h *g,\n"
32517 #: ../src/guestfs-actions.pod:6498
32518 msgid "guestfs_set_qemu"
32522 #: ../src/guestfs-actions.pod:6500
32526 " guestfs_set_qemu (guestfs_h *g,\n"
32527 " const char *qemu);\n"
32532 #: ../src/guestfs-actions.pod:6526
32533 msgid "guestfs_set_recovery_proc"
32537 #: ../src/guestfs-actions.pod:6528
32541 " guestfs_set_recovery_proc (guestfs_h *g,\n"
32542 " int recoveryproc);\n"
32547 #: ../src/guestfs-actions.pod:6532
32549 "If this is called with the parameter C<false> then C<guestfs_launch> does "
32550 "not create a recovery process. The purpose of the recovery process is to "
32551 "stop runaway qemu processes in the case where the main program aborts "
32556 #: ../src/guestfs-actions.pod:6537
32558 "This only has any effect if called before C<guestfs_launch>, and the default "
32563 #: ../src/guestfs-actions.pod:6550
32564 msgid "guestfs_set_selinux"
32568 #: ../src/guestfs-actions.pod:6552
32572 " guestfs_set_selinux (guestfs_h *g,\n"
32578 #: ../src/guestfs-actions.pod:6569
32580 #| msgid "guestfs_ln_s"
32581 msgid "guestfs_set_smp"
32582 msgstr "guestfs_ln_s"
32585 #: ../src/guestfs-actions.pod:6571
32589 #| " guestfs_mkdir_p (guestfs_h *g,\n"
32590 #| " const char *path);\n"
32594 " guestfs_set_smp (guestfs_h *g,\n"
32599 " guestfs_mkdir_p (guestfs_h *g,\n"
32600 " const char *path);\n"
32604 #: ../src/guestfs-actions.pod:6579
32605 msgid "This function must be called before C<guestfs_launch>."
32609 #: ../src/guestfs-actions.pod:6585
32610 msgid "guestfs_set_trace"
32614 #: ../src/guestfs-actions.pod:6587
32618 " guestfs_set_trace (guestfs_h *g,\n"
32624 #: ../src/guestfs-actions.pod:6601
32626 "Trace messages are normally sent to C<stderr>, unless you register a "
32627 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32631 #: ../src/guestfs-actions.pod:6609
32632 msgid "guestfs_set_verbose"
32636 #: ../src/guestfs-actions.pod:6611
32640 " guestfs_set_verbose (guestfs_h *g,\n"
32646 #: ../src/guestfs-actions.pod:6620
32648 "Verbose messages are normally sent to C<stderr>, unless you register a "
32649 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32653 #: ../src/guestfs-actions.pod:6628
32654 msgid "guestfs_setcon"
32658 #: ../src/guestfs-actions.pod:6630
32662 " guestfs_setcon (guestfs_h *g,\n"
32663 " const char *context);\n"
32668 #: ../src/guestfs-actions.pod:6643
32669 msgid "guestfs_setxattr"
32673 #: ../src/guestfs-actions.pod:6645
32677 " guestfs_setxattr (guestfs_h *g,\n"
32678 " const char *xattr,\n"
32679 " const char *val,\n"
32681 " const char *path);\n"
32686 #: ../src/guestfs-actions.pod:6656
32687 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
32691 #: ../src/guestfs-actions.pod:6662
32692 msgid "guestfs_sfdisk"
32696 #: ../src/guestfs-actions.pod:6664
32700 " guestfs_sfdisk (guestfs_h *g,\n"
32701 " const char *device,\n"
32705 " char *const *lines);\n"
32710 #: ../src/guestfs-actions.pod:6672 ../src/guestfs-actions.pod:6716
32711 #: ../src/guestfs-actions.pod:6750
32713 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
32718 #: ../src/guestfs-actions.pod:6699
32720 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
32724 #: ../src/guestfs-actions.pod:6709
32725 msgid "guestfs_sfdiskM"
32729 #: ../src/guestfs-actions.pod:6711
32733 " guestfs_sfdiskM (guestfs_h *g,\n"
32734 " const char *device,\n"
32735 " char *const *lines);\n"
32740 #: ../src/guestfs-actions.pod:6723
32742 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
32743 "partition sizes are specified in megabytes only (rounded to the nearest "
32744 "cylinder) and you don't need to specify the cyls, heads and sectors "
32745 "parameters which were rarely if ever used anyway."
32749 #: ../src/guestfs-actions.pod:6729
32751 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
32752 "C<guestfs_part_disk>"
32756 #: ../src/guestfs-actions.pod:6739
32757 msgid "guestfs_sfdisk_N"
32761 #: ../src/guestfs-actions.pod:6741
32765 " guestfs_sfdisk_N (guestfs_h *g,\n"
32766 " const char *device,\n"
32771 " const char *line);\n"
32776 #: ../src/guestfs-actions.pod:6760
32778 "For other parameters, see C<guestfs_sfdisk>. You should usually pass C<0> "
32779 "for the cyls/heads/sectors parameters."
32783 #: ../src/guestfs-actions.pod:6763
32784 msgid "See also: C<guestfs_part_add>"
32788 #: ../src/guestfs-actions.pod:6772
32789 msgid "guestfs_sfdisk_disk_geometry"
32793 #: ../src/guestfs-actions.pod:6774
32797 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
32798 " const char *device);\n"
32803 #: ../src/guestfs-actions.pod:6778
32805 "This displays the disk geometry of C<device> read from the partition table. "
32806 "Especially in the case where the underlying block device has been resized, "
32807 "this can be different from the kernel's idea of the geometry (see "
32808 "C<guestfs_sfdisk_kernel_geometry>)."
32812 #: ../src/guestfs-actions.pod:6791
32813 msgid "guestfs_sfdisk_kernel_geometry"
32817 #: ../src/guestfs-actions.pod:6793
32821 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
32822 " const char *device);\n"
32827 #: ../src/guestfs-actions.pod:6807
32828 msgid "guestfs_sfdisk_l"
32832 #: ../src/guestfs-actions.pod:6809
32836 " guestfs_sfdisk_l (guestfs_h *g,\n"
32837 " const char *device);\n"
32842 #: ../src/guestfs-actions.pod:6813
32844 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
32849 #: ../src/guestfs-actions.pod:6824
32850 msgid "See also: C<guestfs_part_list>"
32854 #: ../src/guestfs-actions.pod:6831
32859 #: ../src/guestfs-actions.pod:6833
32863 " guestfs_sh (guestfs_h *g,\n"
32864 " const char *command);\n"
32869 #: ../src/guestfs-actions.pod:6840
32870 msgid "This is like C<guestfs_command>, but passes the command to:"
32874 #: ../src/guestfs-actions.pod:6848
32875 msgid "All the provisos about C<guestfs_command> apply to this call."
32879 #: ../src/guestfs-actions.pod:6855
32880 msgid "guestfs_sh_lines"
32884 #: ../src/guestfs-actions.pod:6857
32888 " guestfs_sh_lines (guestfs_h *g,\n"
32889 " const char *command);\n"
32894 #: ../src/guestfs-actions.pod:6861
32896 "This is the same as C<guestfs_sh>, but splits the result into a list of "
32901 #: ../src/guestfs-actions.pod:6864
32902 msgid "See also: C<guestfs_command_lines>"
32906 #: ../src/guestfs-actions.pod:6872
32907 msgid "guestfs_sleep"
32911 #: ../src/guestfs-actions.pod:6874
32915 " guestfs_sleep (guestfs_h *g,\n"
32921 #: ../src/guestfs-actions.pod:6882
32922 msgid "(Added in 1.0.41)"
32926 #: ../src/guestfs-actions.pod:6884 ../src/guestfs-structs.pod:109
32927 msgid "guestfs_stat"
32931 #: ../src/guestfs-actions.pod:6886
32934 " struct guestfs_stat *\n"
32935 " guestfs_stat (guestfs_h *g,\n"
32936 " const char *path);\n"
32941 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-structs.pod:135
32942 msgid "guestfs_statvfs"
32946 #: ../src/guestfs-actions.pod:6902
32949 " struct guestfs_statvfs *\n"
32950 " guestfs_statvfs (guestfs_h *g,\n"
32951 " const char *path);\n"
32956 #: ../src/guestfs-actions.pod:6912
32958 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
32959 "error. I<The caller must call C<guestfs_free_statvfs> after use>."
32963 #: ../src/guestfs-actions.pod:6918
32964 msgid "guestfs_strings"
32968 #: ../src/guestfs-actions.pod:6920
32972 " guestfs_strings (guestfs_h *g,\n"
32973 " const char *path);\n"
32978 #: ../src/guestfs-actions.pod:6936
32979 msgid "guestfs_strings_e"
32983 #: ../src/guestfs-actions.pod:6938
32987 " guestfs_strings_e (guestfs_h *g,\n"
32988 " const char *encoding,\n"
32989 " const char *path);\n"
32994 #: ../src/guestfs-actions.pod:6943
32996 "This is like the C<guestfs_strings> command, but allows you to specify the "
32997 "encoding of strings that are looked for in the source file C<path>."
33001 #: ../src/guestfs-actions.pod:6953
33003 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
33004 "ISO-8859-X (this is what C<guestfs_strings> uses)."
33008 #: ../src/guestfs-actions.pod:6991
33009 msgid "guestfs_swapoff_device"
33013 #: ../src/guestfs-actions.pod:6993
33017 " guestfs_swapoff_device (guestfs_h *g,\n"
33018 " const char *device);\n"
33023 #: ../src/guestfs-actions.pod:6997
33025 "This command disables the libguestfs appliance swap device or partition "
33026 "named C<device>. See C<guestfs_swapon_device>."
33030 #: ../src/guestfs-actions.pod:7005
33031 msgid "guestfs_swapoff_file"
33035 #: ../src/guestfs-actions.pod:7007
33039 " guestfs_swapoff_file (guestfs_h *g,\n"
33040 " const char *file);\n"
33045 #: ../src/guestfs-actions.pod:7017
33046 msgid "guestfs_swapoff_label"
33050 #: ../src/guestfs-actions.pod:7019
33054 " guestfs_swapoff_label (guestfs_h *g,\n"
33055 " const char *label);\n"
33060 #: ../src/guestfs-actions.pod:7030
33061 msgid "guestfs_swapoff_uuid"
33065 #: ../src/guestfs-actions.pod:7032
33069 " guestfs_swapoff_uuid (guestfs_h *g,\n"
33070 " const char *uuid);\n"
33075 #: ../src/guestfs-actions.pod:7043
33076 msgid "guestfs_swapon_device"
33080 #: ../src/guestfs-actions.pod:7045
33084 " guestfs_swapon_device (guestfs_h *g,\n"
33085 " const char *device);\n"
33090 #: ../src/guestfs-actions.pod:7049
33092 "This command enables the libguestfs appliance to use the swap device or "
33093 "partition named C<device>. The increased memory is made available for all "
33094 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
33098 #: ../src/guestfs-actions.pod:7065
33099 msgid "guestfs_swapon_file"
33103 #: ../src/guestfs-actions.pod:7067
33107 " guestfs_swapon_file (guestfs_h *g,\n"
33108 " const char *file);\n"
33113 #: ../src/guestfs-actions.pod:7071
33115 "This command enables swap to a file. See C<guestfs_swapon_device> for other "
33120 #: ../src/guestfs-actions.pod:7078
33121 msgid "guestfs_swapon_label"
33125 #: ../src/guestfs-actions.pod:7080
33129 " guestfs_swapon_label (guestfs_h *g,\n"
33130 " const char *label);\n"
33135 #: ../src/guestfs-actions.pod:7084
33137 "This command enables swap to a labeled swap partition. See "
33138 "C<guestfs_swapon_device> for other notes."
33142 #: ../src/guestfs-actions.pod:7091
33143 msgid "guestfs_swapon_uuid"
33147 #: ../src/guestfs-actions.pod:7093
33151 " guestfs_swapon_uuid (guestfs_h *g,\n"
33152 " const char *uuid);\n"
33157 #: ../src/guestfs-actions.pod:7097
33159 "This command enables swap to a swap partition with the given UUID. See "
33160 "C<guestfs_swapon_device> for other notes."
33164 #: ../src/guestfs-actions.pod:7104
33165 msgid "guestfs_sync"
33169 #: ../src/guestfs-actions.pod:7106
33173 " guestfs_sync (guestfs_h *g);\n"
33178 #: ../src/guestfs-actions.pod:7119
33179 msgid "guestfs_tail"
33183 #: ../src/guestfs-actions.pod:7121
33187 " guestfs_tail (guestfs_h *g,\n"
33188 " const char *path);\n"
33193 #: ../src/guestfs-actions.pod:7137
33194 msgid "guestfs_tail_n"
33198 #: ../src/guestfs-actions.pod:7139
33202 " guestfs_tail_n (guestfs_h *g,\n"
33204 " const char *path);\n"
33209 #: ../src/guestfs-actions.pod:7161
33210 msgid "guestfs_tar_in"
33214 #: ../src/guestfs-actions.pod:7163
33218 " guestfs_tar_in (guestfs_h *g,\n"
33219 " const char *tarfile,\n"
33220 " const char *directory);\n"
33225 #: ../src/guestfs-actions.pod:7171
33227 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
33231 #: ../src/guestfs-actions.pod:7176 ../src/guestfs-actions.pod:7193
33232 #: ../src/guestfs-actions.pod:7209 ../src/guestfs-actions.pod:7225
33233 msgid "(Added in 1.0.3)"
33237 #: ../src/guestfs-actions.pod:7178
33238 msgid "guestfs_tar_out"
33242 #: ../src/guestfs-actions.pod:7180
33246 " guestfs_tar_out (guestfs_h *g,\n"
33247 " const char *directory,\n"
33248 " const char *tarfile);\n"
33253 #: ../src/guestfs-actions.pod:7188
33255 "To download a compressed tarball, use C<guestfs_tgz_out> or "
33256 "C<guestfs_txz_out>."
33260 #: ../src/guestfs-actions.pod:7195
33261 msgid "guestfs_tgz_in"
33265 #: ../src/guestfs-actions.pod:7197
33269 " guestfs_tgz_in (guestfs_h *g,\n"
33270 " const char *tarball,\n"
33271 " const char *directory);\n"
33276 #: ../src/guestfs-actions.pod:7205
33277 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
33281 #: ../src/guestfs-actions.pod:7211
33282 msgid "guestfs_tgz_out"
33286 #: ../src/guestfs-actions.pod:7213
33290 " guestfs_tgz_out (guestfs_h *g,\n"
33291 " const char *directory,\n"
33292 " const char *tarball);\n"
33297 #: ../src/guestfs-actions.pod:7221
33298 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
33302 #: ../src/guestfs-actions.pod:7227
33303 msgid "guestfs_touch"
33307 #: ../src/guestfs-actions.pod:7229
33311 " guestfs_touch (guestfs_h *g,\n"
33312 " const char *path);\n"
33317 #: ../src/guestfs-actions.pod:7244
33318 msgid "guestfs_truncate"
33322 #: ../src/guestfs-actions.pod:7246
33326 " guestfs_truncate (guestfs_h *g,\n"
33327 " const char *path);\n"
33332 #: ../src/guestfs-actions.pod:7257
33333 msgid "guestfs_truncate_size"
33337 #: ../src/guestfs-actions.pod:7259
33341 " guestfs_truncate_size (guestfs_h *g,\n"
33342 " const char *path,\n"
33343 " int64_t size);\n"
33348 #: ../src/guestfs-actions.pod:7267
33350 "If the current file size is less than C<size> then the file is extended to "
33351 "the required size with zero bytes. This creates a sparse file (ie. disk "
33352 "blocks are not allocated for the file until you write to it). To create a "
33353 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
33357 #: ../src/guestfs-actions.pod:7277
33358 msgid "guestfs_tune2fs_l"
33362 #: ../src/guestfs-actions.pod:7279
33366 " guestfs_tune2fs_l (guestfs_h *g,\n"
33367 " const char *device);\n"
33372 #: ../src/guestfs-actions.pod:7299
33373 msgid "guestfs_txz_in"
33377 #: ../src/guestfs-actions.pod:7301
33381 " guestfs_txz_in (guestfs_h *g,\n"
33382 " const char *tarball,\n"
33383 " const char *directory);\n"
33388 #: ../src/guestfs-actions.pod:7313
33389 msgid "guestfs_txz_out"
33393 #: ../src/guestfs-actions.pod:7315
33397 " guestfs_txz_out (guestfs_h *g,\n"
33398 " const char *directory,\n"
33399 " const char *tarball);\n"
33404 #: ../src/guestfs-actions.pod:7327
33405 msgid "guestfs_umask"
33409 #: ../src/guestfs-actions.pod:7329
33413 " guestfs_umask (guestfs_h *g,\n"
33419 #: ../src/guestfs-actions.pod:7345
33421 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
33422 "C<guestfs_mkdir>."
33426 #: ../src/guestfs-actions.pod:7354
33427 msgid "guestfs_umount"
33431 #: ../src/guestfs-actions.pod:7356
33435 " guestfs_umount (guestfs_h *g,\n"
33436 " const char *pathordevice);\n"
33441 #: ../src/guestfs-actions.pod:7368
33442 msgid "guestfs_umount_all"
33446 #: ../src/guestfs-actions.pod:7370
33450 " guestfs_umount_all (guestfs_h *g);\n"
33455 #: ../src/guestfs-actions.pod:7381
33456 msgid "guestfs_upload"
33460 #: ../src/guestfs-actions.pod:7383
33464 " guestfs_upload (guestfs_h *g,\n"
33465 " const char *filename,\n"
33466 " const char *remotefilename);\n"
33471 #: ../src/guestfs-actions.pod:7393
33472 msgid "See also C<guestfs_download>."
33476 #: ../src/guestfs-actions.pod:7404
33477 msgid "guestfs_upload_offset"
33481 #: ../src/guestfs-actions.pod:7406
33485 " guestfs_upload_offset (guestfs_h *g,\n"
33486 " const char *filename,\n"
33487 " const char *remotefilename,\n"
33488 " int64_t offset);\n"
33493 #: ../src/guestfs-actions.pod:7422
33495 "Note that there is no limit on the amount of data that can be uploaded with "
33496 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
33497 "full amount unless an error occurs."
33501 #: ../src/guestfs-actions.pod:7427
33502 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
33506 #: ../src/guestfs-actions.pod:7438
33507 msgid "guestfs_utimens"
33511 #: ../src/guestfs-actions.pod:7440
33515 " guestfs_utimens (guestfs_h *g,\n"
33516 " const char *path,\n"
33517 " int64_t atsecs,\n"
33518 " int64_t atnsecs,\n"
33519 " int64_t mtsecs,\n"
33520 " int64_t mtnsecs);\n"
33525 #: ../src/guestfs-actions.pod:7469 ../src/guestfs-structs.pod:175
33526 msgid "guestfs_version"
33530 #: ../src/guestfs-actions.pod:7471
33533 " struct guestfs_version *\n"
33534 " guestfs_version (guestfs_h *g);\n"
33539 #: ../src/guestfs-actions.pod:7499
33541 "I<Note:> Don't use this call to test for availability of features. In "
33542 "enterprise distributions we backport features from later versions into "
33543 "earlier versions, making this an unreliable way to test for features. Use "
33544 "C<guestfs_available> instead."
33548 #: ../src/guestfs-actions.pod:7505
33550 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
33551 "error. I<The caller must call C<guestfs_free_version> after use>."
33555 #: ../src/guestfs-actions.pod:7509
33556 msgid "(Added in 1.0.58)"
33560 #: ../src/guestfs-actions.pod:7511
33561 msgid "guestfs_vfs_label"
33565 #: ../src/guestfs-actions.pod:7513
33569 " guestfs_vfs_label (guestfs_h *g,\n"
33570 " const char *device);\n"
33575 #: ../src/guestfs-actions.pod:7522
33576 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
33580 #: ../src/guestfs-actions.pod:7527 ../src/guestfs-actions.pod:7564
33581 msgid "(Added in 1.3.18)"
33585 #: ../src/guestfs-actions.pod:7529
33586 msgid "guestfs_vfs_type"
33590 #: ../src/guestfs-actions.pod:7531
33594 " guestfs_vfs_type (guestfs_h *g,\n"
33595 " const char *device);\n"
33600 #: ../src/guestfs-actions.pod:7548
33601 msgid "guestfs_vfs_uuid"
33605 #: ../src/guestfs-actions.pod:7550
33609 " guestfs_vfs_uuid (guestfs_h *g,\n"
33610 " const char *device);\n"
33615 #: ../src/guestfs-actions.pod:7559
33616 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
33620 #: ../src/guestfs-actions.pod:7566
33621 msgid "guestfs_vg_activate"
33625 #: ../src/guestfs-actions.pod:7568
33629 " guestfs_vg_activate (guestfs_h *g,\n"
33631 " char *const *volgroups);\n"
33636 #: ../src/guestfs-actions.pod:7585
33637 msgid "guestfs_vg_activate_all"
33641 #: ../src/guestfs-actions.pod:7587
33645 " guestfs_vg_activate_all (guestfs_h *g,\n"
33646 " int activate);\n"
33651 #: ../src/guestfs-actions.pod:7600
33652 msgid "guestfs_vgcreate"
33656 #: ../src/guestfs-actions.pod:7602
33660 " guestfs_vgcreate (guestfs_h *g,\n"
33661 " const char *volgroup,\n"
33662 " char *const *physvols);\n"
33667 #: ../src/guestfs-actions.pod:7614
33668 msgid "guestfs_vglvuuids"
33672 #: ../src/guestfs-actions.pod:7616
33676 " guestfs_vglvuuids (guestfs_h *g,\n"
33677 " const char *vgname);\n"
33682 #: ../src/guestfs-actions.pod:7623
33684 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
33685 "associate logical volumes and volume groups."
33689 #: ../src/guestfs-actions.pod:7626
33690 msgid "See also C<guestfs_vgpvuuids>."
33694 #: ../src/guestfs-actions.pod:7634
33695 msgid "guestfs_vgpvuuids"
33699 #: ../src/guestfs-actions.pod:7636
33703 " guestfs_vgpvuuids (guestfs_h *g,\n"
33704 " const char *vgname);\n"
33709 #: ../src/guestfs-actions.pod:7643
33711 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
33712 "associate physical volumes and volume groups."
33716 #: ../src/guestfs-actions.pod:7646
33717 msgid "See also C<guestfs_vglvuuids>."
33721 #: ../src/guestfs-actions.pod:7654
33722 msgid "guestfs_vgremove"
33726 #: ../src/guestfs-actions.pod:7656
33730 " guestfs_vgremove (guestfs_h *g,\n"
33731 " const char *vgname);\n"
33736 #: ../src/guestfs-actions.pod:7669
33737 msgid "guestfs_vgrename"
33741 #: ../src/guestfs-actions.pod:7671
33745 " guestfs_vgrename (guestfs_h *g,\n"
33746 " const char *volgroup,\n"
33747 " const char *newvolgroup);\n"
33752 #: ../src/guestfs-actions.pod:7682
33753 msgid "guestfs_vgs"
33757 #: ../src/guestfs-actions.pod:7684
33761 " guestfs_vgs (guestfs_h *g);\n"
33766 #: ../src/guestfs-actions.pod:7693
33767 msgid "See also C<guestfs_vgs_full>."
33771 #: ../src/guestfs-actions.pod:7701
33772 msgid "guestfs_vgs_full"
33776 #: ../src/guestfs-actions.pod:7703
33779 " struct guestfs_lvm_vg_list *\n"
33780 " guestfs_vgs_full (guestfs_h *g);\n"
33785 #: ../src/guestfs-actions.pod:7709
33787 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
33788 "was an error. I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
33792 #: ../src/guestfs-actions.pod:7715
33793 msgid "guestfs_vgscan"
33797 #: ../src/guestfs-actions.pod:7717
33801 " guestfs_vgscan (guestfs_h *g);\n"
33806 #: ../src/guestfs-actions.pod:7727
33807 msgid "guestfs_vguuid"
33811 #: ../src/guestfs-actions.pod:7729
33815 " guestfs_vguuid (guestfs_h *g,\n"
33816 " const char *vgname);\n"
33821 #: ../src/guestfs-actions.pod:7740
33822 msgid "guestfs_wait_ready"
33826 #: ../src/guestfs-actions.pod:7742
33830 " guestfs_wait_ready (guestfs_h *g);\n"
33835 #: ../src/guestfs-actions.pod:7745
33837 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
33842 #: ../src/guestfs-actions.pod:7752
33843 msgid "This function is a no op."
33847 #: ../src/guestfs-actions.pod:7754
33849 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
33850 "calling C<guestfs_launch> to wait for the launch to complete. However this "
33851 "is no longer necessary because C<guestfs_launch> now does the waiting."
33855 #: ../src/guestfs-actions.pod:7759
33857 "If you see any calls to this function in code then you can just remove them, "
33858 "unless you want to retain compatibility with older versions of the API."
33862 #: ../src/guestfs-actions.pod:7767
33863 msgid "guestfs_wc_c"
33867 #: ../src/guestfs-actions.pod:7769
33871 " guestfs_wc_c (guestfs_h *g,\n"
33872 " const char *path);\n"
33877 #: ../src/guestfs-actions.pod:7780
33878 msgid "guestfs_wc_l"
33882 #: ../src/guestfs-actions.pod:7782
33886 " guestfs_wc_l (guestfs_h *g,\n"
33887 " const char *path);\n"
33892 #: ../src/guestfs-actions.pod:7793
33893 msgid "guestfs_wc_w"
33897 #: ../src/guestfs-actions.pod:7795
33901 " guestfs_wc_w (guestfs_h *g,\n"
33902 " const char *path);\n"
33907 #: ../src/guestfs-actions.pod:7806
33908 msgid "guestfs_write"
33912 #: ../src/guestfs-actions.pod:7808
33916 " guestfs_write (guestfs_h *g,\n"
33917 " const char *path,\n"
33918 " const char *content,\n"
33919 " size_t content_size);\n"
33924 #: ../src/guestfs-actions.pod:7817
33925 msgid "See also C<guestfs_write_append>."
33929 #: ../src/guestfs-actions.pod:7826
33930 msgid "guestfs_write_append"
33934 #: ../src/guestfs-actions.pod:7828
33938 " guestfs_write_append (guestfs_h *g,\n"
33939 " const char *path,\n"
33940 " const char *content,\n"
33941 " size_t content_size);\n"
33946 #: ../src/guestfs-actions.pod:7837
33947 msgid "See also C<guestfs_write>."
33951 #: ../src/guestfs-actions.pod:7846
33952 msgid "guestfs_write_file"
33953 msgstr "guestfs_write_file"
33956 #: ../src/guestfs-actions.pod:7848
33960 " guestfs_write_file (guestfs_h *g,\n"
33961 " const char *path,\n"
33962 " const char *content,\n"
33967 " guestfs_write_file (guestfs_h *g,\n"
33968 " const char *path,\n"
33969 " const char *content,\n"
33974 #: ../src/guestfs-actions.pod:7854
33976 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
33981 #: ../src/guestfs-actions.pod:7879
33982 msgid "guestfs_zegrep"
33983 msgstr "guestfs_zegrep"
33986 #: ../src/guestfs-actions.pod:7881
33990 " guestfs_zegrep (guestfs_h *g,\n"
33991 " const char *regex,\n"
33992 " const char *path);\n"
33996 " guestfs_zegrep (guestfs_h *g,\n"
33997 " const char *regex,\n"
33998 " const char *path);\n"
34002 #: ../src/guestfs-actions.pod:7898
34003 msgid "guestfs_zegrepi"
34004 msgstr "guestfs_zegrepi"
34007 #: ../src/guestfs-actions.pod:7900
34011 " guestfs_zegrepi (guestfs_h *g,\n"
34012 " const char *regex,\n"
34013 " const char *path);\n"
34017 " guestfs_zegrepi (guestfs_h *g,\n"
34018 " const char *regex,\n"
34019 " const char *path);\n"
34023 #: ../src/guestfs-actions.pod:7917
34024 msgid "guestfs_zero"
34025 msgstr "guestfs_zero"
34028 #: ../src/guestfs-actions.pod:7919
34032 " guestfs_zero (guestfs_h *g,\n"
34033 " const char *device);\n"
34037 " guestfs_zero (guestfs_h *g,\n"
34038 " const char *device);\n"
34042 #: ../src/guestfs-actions.pod:7933
34044 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
34045 "C<guestfs_is_zero_device>"
34049 #: ../src/guestfs-actions.pod:7945
34050 msgid "guestfs_zero_device"
34051 msgstr "guestfs_zero_device"
34054 #: ../src/guestfs-actions.pod:7947
34058 " guestfs_zero_device (guestfs_h *g,\n"
34059 " const char *device);\n"
34063 " guestfs_zero_device (guestfs_h *g,\n"
34064 " const char *device);\n"
34068 #: ../src/guestfs-actions.pod:7951
34070 "This command writes zeroes over the entire C<device>. Compare with "
34071 "C<guestfs_zero> which just zeroes the first few blocks of a device."
34075 #: ../src/guestfs-actions.pod:7969
34076 msgid "(Added in 1.3.1)"
34077 msgstr "(Додано у 1.3.1)"
34080 #: ../src/guestfs-actions.pod:7971
34081 msgid "guestfs_zerofree"
34082 msgstr "guestfs_zerofree"
34085 #: ../src/guestfs-actions.pod:7973
34089 " guestfs_zerofree (guestfs_h *g,\n"
34090 " const char *device);\n"
34094 " guestfs_zerofree (guestfs_h *g,\n"
34095 " const char *device);\n"
34099 #: ../src/guestfs-actions.pod:7992
34100 msgid "guestfs_zfgrep"
34101 msgstr "guestfs_zfgrep"
34104 #: ../src/guestfs-actions.pod:7994
34108 " guestfs_zfgrep (guestfs_h *g,\n"
34109 " const char *pattern,\n"
34110 " const char *path);\n"
34114 " guestfs_zfgrep (guestfs_h *g,\n"
34115 " const char *pattern,\n"
34116 " const char *path);\n"
34120 #: ../src/guestfs-actions.pod:8011
34121 msgid "guestfs_zfgrepi"
34122 msgstr "guestfs_zfgrepi"
34125 #: ../src/guestfs-actions.pod:8013
34129 " guestfs_zfgrepi (guestfs_h *g,\n"
34130 " const char *pattern,\n"
34131 " const char *path);\n"
34135 " guestfs_zfgrepi (guestfs_h *g,\n"
34136 " const char *pattern,\n"
34137 " const char *path);\n"
34141 #: ../src/guestfs-actions.pod:8030
34142 msgid "guestfs_zfile"
34143 msgstr "guestfs_zfile"
34146 #: ../src/guestfs-actions.pod:8032
34150 " guestfs_zfile (guestfs_h *g,\n"
34151 " const char *meth,\n"
34152 " const char *path);\n"
34156 " guestfs_zfile (guestfs_h *g,\n"
34157 " const char *meth,\n"
34158 " const char *path);\n"
34162 #: ../src/guestfs-actions.pod:8037
34164 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
34169 #: ../src/guestfs-actions.pod:8049
34171 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
34176 #: ../src/guestfs-actions.pod:8057
34177 msgid "guestfs_zgrep"
34178 msgstr "guestfs_zgrep"
34181 #: ../src/guestfs-actions.pod:8059
34185 " guestfs_zgrep (guestfs_h *g,\n"
34186 " const char *regex,\n"
34187 " const char *path);\n"
34191 " guestfs_zgrep (guestfs_h *g,\n"
34192 " const char *regex,\n"
34193 " const char *path);\n"
34197 #: ../src/guestfs-actions.pod:8076
34198 msgid "guestfs_zgrepi"
34199 msgstr "guestfs_zgrepi"
34202 #: ../src/guestfs-actions.pod:8078
34206 " guestfs_zgrepi (guestfs_h *g,\n"
34207 " const char *regex,\n"
34208 " const char *path);\n"
34212 " guestfs_zgrepi (guestfs_h *g,\n"
34213 " const char *regex,\n"
34214 " const char *path);\n"
34218 #: ../src/guestfs-availability.pod:3
34223 #: ../src/guestfs-availability.pod:5
34225 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
34226 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
34227 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
34228 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
34229 "L</guestfs_aug_save> L</guestfs_aug_set>"
34233 #: ../src/guestfs-availability.pod:21
34238 #: ../src/guestfs-availability.pod:23
34239 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
34243 #: ../src/guestfs-availability.pod:26
34245 #| msgid "B<scrub>"
34250 #: ../src/guestfs-availability.pod:28
34251 msgid "The following functions: L</guestfs_grub_install>"
34255 #: ../src/guestfs-availability.pod:31
34257 msgstr "B<inotify>"
34260 #: ../src/guestfs-availability.pod:33
34262 "The following functions: L</guestfs_inotify_add_watch> L</"
34263 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
34264 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
34268 #: ../src/guestfs-availability.pod:41
34269 msgid "B<linuxfsuuid>"
34270 msgstr "B<linuxfsuuid>"
34273 #: ../src/guestfs-availability.pod:43
34275 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
34276 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
34280 #: ../src/guestfs-availability.pod:50
34281 msgid "B<linuxmodules>"
34282 msgstr "B<linuxmodules>"
34285 #: ../src/guestfs-availability.pod:52
34286 msgid "The following functions: L</guestfs_modprobe>"
34290 #: ../src/guestfs-availability.pod:55
34291 msgid "B<linuxxattrs>"
34292 msgstr "B<linuxxattrs>"
34295 #: ../src/guestfs-availability.pod:57
34297 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
34298 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
34299 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
34300 "guestfs_setxattr>"
34304 #: ../src/guestfs-availability.pod:68
34309 #: ../src/guestfs-availability.pod:70
34311 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
34312 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
34313 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
34317 #: ../src/guestfs-availability.pod:79
34322 #: ../src/guestfs-availability.pod:81
34324 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
34325 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
34326 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
34327 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
34328 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
34329 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
34330 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
34334 #: ../src/guestfs-availability.pod:104
34339 #: ../src/guestfs-availability.pod:106
34341 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
34342 "guestfs_mknod_b> L</guestfs_mknod_c>"
34346 #: ../src/guestfs-availability.pod:112
34351 #: ../src/guestfs-availability.pod:114
34352 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
34356 #: ../src/guestfs-availability.pod:117
34357 msgid "B<ntfsprogs>"
34358 msgstr "B<ntfsprogs>"
34361 #: ../src/guestfs-availability.pod:119
34363 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
34364 "L</guestfs_ntfsresize_size>"
34368 #: ../src/guestfs-availability.pod:124
34369 msgid "B<realpath>"
34370 msgstr "B<realpath>"
34373 #: ../src/guestfs-availability.pod:126
34374 msgid "The following functions: L</guestfs_realpath>"
34378 #: ../src/guestfs-availability.pod:129
34383 #: ../src/guestfs-availability.pod:131
34385 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
34386 "guestfs_scrub_freespace>"
34390 #: ../src/guestfs-availability.pod:136
34392 msgstr "B<selinux>"
34395 #: ../src/guestfs-availability.pod:138
34396 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
34400 #: ../src/guestfs-availability.pod:142
34405 #: ../src/guestfs-availability.pod:144
34406 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
34410 #: ../src/guestfs-availability.pod:148
34411 msgid "B<zerofree>"
34412 msgstr "B<zerofree>"
34415 #: ../src/guestfs-availability.pod:150
34416 msgid "The following functions: L</guestfs_zerofree>"
34420 #: ../src/guestfs-structs.pod:1
34421 msgid "guestfs_int_bool"
34425 #: ../src/guestfs-structs.pod:3
34428 " struct guestfs_int_bool {\n"
34436 #: ../src/guestfs-structs.pod:8
34439 " struct guestfs_int_bool_list {\n"
34440 " uint32_t len; /* Number of elements in list. */\n"
34441 " struct guestfs_int_bool *val; /* Elements. */\n"
34447 #: ../src/guestfs-structs.pod:13
34450 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34451 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
34456 #: ../src/guestfs-structs.pod:16
34457 msgid "guestfs_lvm_pv"
34461 #: ../src/guestfs-structs.pod:18
34464 " struct guestfs_lvm_pv {\n"
34465 " char *pv_name;\n"
34466 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34467 " char pv_uuid[32];\n"
34469 " uint64_t pv_size;\n"
34470 " uint64_t dev_size;\n"
34471 " uint64_t pv_free;\n"
34472 " uint64_t pv_used;\n"
34473 " char *pv_attr;\n"
34474 " int64_t pv_pe_count;\n"
34475 " int64_t pv_pe_alloc_count;\n"
34476 " char *pv_tags;\n"
34477 " uint64_t pe_start;\n"
34478 " int64_t pv_mda_count;\n"
34479 " uint64_t pv_mda_free;\n"
34485 #: ../src/guestfs-structs.pod:36
34488 " struct guestfs_lvm_pv_list {\n"
34489 " uint32_t len; /* Number of elements in list. */\n"
34490 " struct guestfs_lvm_pv *val; /* Elements. */\n"
34496 #: ../src/guestfs-structs.pod:41
34499 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
34500 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
34505 #: ../src/guestfs-structs.pod:44
34506 msgid "guestfs_lvm_vg"
34510 #: ../src/guestfs-structs.pod:46
34513 " struct guestfs_lvm_vg {\n"
34514 " char *vg_name;\n"
34515 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34516 " char vg_uuid[32];\n"
34518 " char *vg_attr;\n"
34519 " uint64_t vg_size;\n"
34520 " uint64_t vg_free;\n"
34521 " char *vg_sysid;\n"
34522 " uint64_t vg_extent_size;\n"
34523 " int64_t vg_extent_count;\n"
34524 " int64_t vg_free_count;\n"
34525 " int64_t max_lv;\n"
34526 " int64_t max_pv;\n"
34527 " int64_t pv_count;\n"
34528 " int64_t lv_count;\n"
34529 " int64_t snap_count;\n"
34530 " int64_t vg_seqno;\n"
34531 " char *vg_tags;\n"
34532 " int64_t vg_mda_count;\n"
34533 " uint64_t vg_mda_free;\n"
34539 #: ../src/guestfs-structs.pod:69
34542 " struct guestfs_lvm_vg_list {\n"
34543 " uint32_t len; /* Number of elements in list. */\n"
34544 " struct guestfs_lvm_vg *val; /* Elements. */\n"
34550 #: ../src/guestfs-structs.pod:74
34553 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
34554 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
34559 #: ../src/guestfs-structs.pod:77
34560 msgid "guestfs_lvm_lv"
34564 #: ../src/guestfs-structs.pod:79
34567 " struct guestfs_lvm_lv {\n"
34568 " char *lv_name;\n"
34569 " /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34570 " char lv_uuid[32];\n"
34571 " char *lv_attr;\n"
34572 " int64_t lv_major;\n"
34573 " int64_t lv_minor;\n"
34574 " int64_t lv_kernel_major;\n"
34575 " int64_t lv_kernel_minor;\n"
34576 " uint64_t lv_size;\n"
34577 " int64_t seg_count;\n"
34579 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
34580 " float snap_percent;\n"
34581 " /* The next field is [0..100] or -1 meaning 'not present': */\n"
34582 " float copy_percent;\n"
34583 " char *move_pv;\n"
34584 " char *lv_tags;\n"
34585 " char *mirror_log;\n"
34586 " char *modules;\n"
34592 #: ../src/guestfs-structs.pod:101
34595 " struct guestfs_lvm_lv_list {\n"
34596 " uint32_t len; /* Number of elements in list. */\n"
34597 " struct guestfs_lvm_lv *val; /* Elements. */\n"
34603 #: ../src/guestfs-structs.pod:106
34606 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
34607 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
34612 #: ../src/guestfs-structs.pod:111
34615 " struct guestfs_stat {\n"
34619 " int64_t nlink;\n"
34624 " int64_t blksize;\n"
34625 " int64_t blocks;\n"
34626 " int64_t atime;\n"
34627 " int64_t mtime;\n"
34628 " int64_t ctime;\n"
34634 #: ../src/guestfs-structs.pod:127
34637 " struct guestfs_stat_list {\n"
34638 " uint32_t len; /* Number of elements in list. */\n"
34639 " struct guestfs_stat *val; /* Elements. */\n"
34645 #: ../src/guestfs-structs.pod:132
34648 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
34649 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
34654 #: ../src/guestfs-structs.pod:137
34657 " struct guestfs_statvfs {\n"
34658 " int64_t bsize;\n"
34659 " int64_t frsize;\n"
34660 " int64_t blocks;\n"
34661 " int64_t bfree;\n"
34662 " int64_t bavail;\n"
34663 " int64_t files;\n"
34664 " int64_t ffree;\n"
34665 " int64_t favail;\n"
34668 " int64_t namemax;\n"
34674 #: ../src/guestfs-structs.pod:151
34677 " struct guestfs_statvfs_list {\n"
34678 " uint32_t len; /* Number of elements in list. */\n"
34679 " struct guestfs_statvfs *val; /* Elements. */\n"
34685 #: ../src/guestfs-structs.pod:156
34688 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
34689 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
34694 #: ../src/guestfs-structs.pod:159
34695 msgid "guestfs_dirent"
34699 #: ../src/guestfs-structs.pod:161
34702 " struct guestfs_dirent {\n"
34711 #: ../src/guestfs-structs.pod:167
34714 " struct guestfs_dirent_list {\n"
34715 " uint32_t len; /* Number of elements in list. */\n"
34716 " struct guestfs_dirent *val; /* Elements. */\n"
34722 #: ../src/guestfs-structs.pod:172
34725 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
34726 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
34731 #: ../src/guestfs-structs.pod:177
34734 " struct guestfs_version {\n"
34735 " int64_t major;\n"
34736 " int64_t minor;\n"
34737 " int64_t release;\n"
34744 #: ../src/guestfs-structs.pod:184
34747 " struct guestfs_version_list {\n"
34748 " uint32_t len; /* Number of elements in list. */\n"
34749 " struct guestfs_version *val; /* Elements. */\n"
34755 #: ../src/guestfs-structs.pod:189
34758 " void guestfs_free_version (struct guestfs_free_version *);\n"
34759 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
34764 #: ../src/guestfs-structs.pod:192
34765 msgid "guestfs_xattr"
34769 #: ../src/guestfs-structs.pod:194
34772 " struct guestfs_xattr {\n"
34773 " char *attrname;\n"
34774 " /* The next two fields describe a byte array. */\n"
34775 " uint32_t attrval_len;\n"
34776 " char *attrval;\n"
34782 #: ../src/guestfs-structs.pod:201
34785 " struct guestfs_xattr_list {\n"
34786 " uint32_t len; /* Number of elements in list. */\n"
34787 " struct guestfs_xattr *val; /* Elements. */\n"
34793 #: ../src/guestfs-structs.pod:206
34796 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
34797 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
34802 #: ../src/guestfs-structs.pod:209
34803 msgid "guestfs_inotify_event"
34807 #: ../src/guestfs-structs.pod:211
34810 " struct guestfs_inotify_event {\n"
34811 " int64_t in_wd;\n"
34812 " uint32_t in_mask;\n"
34813 " uint32_t in_cookie;\n"
34814 " char *in_name;\n"
34820 #: ../src/guestfs-structs.pod:218
34823 " struct guestfs_inotify_event_list {\n"
34824 " uint32_t len; /* Number of elements in list. */\n"
34825 " struct guestfs_inotify_event *val; /* Elements. */\n"
34831 #: ../src/guestfs-structs.pod:223
34834 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
34835 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
34840 #: ../src/guestfs-structs.pod:226
34841 msgid "guestfs_partition"
34845 #: ../src/guestfs-structs.pod:228
34848 " struct guestfs_partition {\n"
34849 " int32_t part_num;\n"
34850 " uint64_t part_start;\n"
34851 " uint64_t part_end;\n"
34852 " uint64_t part_size;\n"
34858 #: ../src/guestfs-structs.pod:235
34861 " struct guestfs_partition_list {\n"
34862 " uint32_t len; /* Number of elements in list. */\n"
34863 " struct guestfs_partition *val; /* Elements. */\n"
34869 #: ../src/guestfs-structs.pod:240
34872 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
34873 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
34878 #: ../src/guestfs-structs.pod:243
34879 msgid "guestfs_application"
34883 #: ../src/guestfs-structs.pod:245
34886 " struct guestfs_application {\n"
34887 " char *app_name;\n"
34888 " char *app_display_name;\n"
34889 " int32_t app_epoch;\n"
34890 " char *app_version;\n"
34891 " char *app_release;\n"
34892 " char *app_install_path;\n"
34893 " char *app_trans_path;\n"
34894 " char *app_publisher;\n"
34895 " char *app_url;\n"
34896 " char *app_source_package;\n"
34897 " char *app_summary;\n"
34898 " char *app_description;\n"
34904 #: ../src/guestfs-structs.pod:260
34907 " struct guestfs_application_list {\n"
34908 " uint32_t len; /* Number of elements in list. */\n"
34909 " struct guestfs_application *val; /* Elements. */\n"
34915 #: ../src/guestfs-structs.pod:265
34918 " void guestfs_free_application (struct guestfs_free_application *);\n"
34919 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
34924 #: ../src/guestfs.pod:5
34925 msgid "guestfs - Library for accessing and modifying virtual machine images"
34927 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
34931 #: ../src/guestfs.pod:11
34934 " guestfs_h *g = guestfs_create ();\n"
34935 " guestfs_add_drive (g, \"guest.img\");\n"
34936 " guestfs_launch (g);\n"
34937 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34938 " guestfs_touch (g, \"/hello\");\n"
34939 " guestfs_umount (g, \"/\");\n"
34940 " guestfs_close (g);\n"
34943 " guestfs_h *g = guestfs_create ();\n"
34944 " guestfs_add_drive (g, \"guest.img\");\n"
34945 " guestfs_launch (g);\n"
34946 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34947 " guestfs_touch (g, \"/hello\");\n"
34948 " guestfs_umount (g, \"/\");\n"
34949 " guestfs_close (g);\n"
34953 #: ../src/guestfs.pod:25
34955 "Libguestfs is a library for accessing and modifying guest disk images. "
34956 "Amongst the things this is good for: making batch configuration changes to "
34957 "guests, getting disk used/free statistics (see also: virt-df), migrating "
34958 "between virtualization systems (see also: virt-p2v), performing partial "
34959 "backups, performing partial guest clones, cloning guests and changing "
34960 "registry/UUID/hostname info, and much else besides."
34964 #: ../src/guestfs.pod:33
34966 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
34967 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
34968 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
34973 #: ../src/guestfs.pod:38
34975 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
34976 "what filesystem is in each LV, etc.). It can also run commands in the "
34977 "context of the guest. Also you can access filesystems over FUSE."
34981 #: ../src/guestfs.pod:43
34983 "Libguestfs is a library that can be linked with C and C++ management "
34984 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
34985 "PHP, Erlang, Haskell or C#). You can also use it from shell scripts or the "
34990 #: ../src/guestfs.pod:48
34992 "You don't need to be root to use libguestfs, although obviously you do need "
34993 "enough permissions to access the disk images."
34997 #: ../src/guestfs.pod:51
34999 "Libguestfs is a large API because it can do many things. For a gentle "
35000 "introduction, please read the L</API OVERVIEW> section next."
35004 #: ../src/guestfs.pod:54
35006 "There are also some example programs in the L<guestfs-examples(3)> manual "
35011 #: ../src/guestfs.pod:57
35012 msgid "API OVERVIEW"
35016 #: ../src/guestfs.pod:59
35018 "This section provides a gentler overview of the libguestfs API. We also try "
35019 "to group API calls together, where that may not be obvious from reading "
35020 "about the individual calls in the main section of this manual."
35024 #: ../src/guestfs.pod:64
35029 #: ../src/guestfs.pod:66
35031 "Before you can use libguestfs calls, you have to create a handle. Then you "
35032 "must add at least one disk image to the handle, followed by launching the "
35033 "handle, then performing whatever operations you want, and finally closing "
35034 "the handle. By convention we use the single letter C<g> for the name of the "
35035 "handle variable, although of course you can use any name you want."
35039 #: ../src/guestfs.pod:73
35040 msgid "The general structure of all libguestfs-using programs looks like this:"
35044 #: ../src/guestfs.pod:76
35047 " guestfs_h *g = guestfs_create ();\n"
35050 " guestfs_h *g = guestfs_create ();\n"
35054 #: ../src/guestfs.pod:78
35057 " /* Call guestfs_add_drive additional times if there are\n"
35058 " * multiple disk images.\n"
35060 " guestfs_add_drive (g, \"guest.img\");\n"
35065 #: ../src/guestfs.pod:83
35068 " /* Most manipulation calls won't work until you've launched\n"
35069 " * the handle 'g'. You have to do this _after_ adding drives\n"
35070 " * and _before_ other commands.\n"
35072 " guestfs_launch (g);\n"
35077 #: ../src/guestfs.pod:89
35080 " /* Now you can examine what partitions, LVs etc are available.\n"
35082 " char **partitions = guestfs_list_partitions (g);\n"
35083 " char **logvols = guestfs_lvs (g);\n"
35086 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
35088 " char **partitions = guestfs_list_partitions (g);\n"
35089 " char **logvols = guestfs_lvs (g);\n"
35093 #: ../src/guestfs.pod:94
35096 " /* To access a filesystem in the image, you must mount it.\n"
35098 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35101 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
35103 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35107 #: ../src/guestfs.pod:98
35110 " /* Now you can perform filesystem actions on the guest\n"
35113 " guestfs_touch (g, \"/hello\");\n"
35118 #: ../src/guestfs.pod:103
35121 " /* This is only needed for libguestfs < 1.5.24. Since then\n"
35122 " * it is done automatically when you close the handle. See\n"
35123 " * discussion of autosync in this page.\n"
35125 " guestfs_sync (g);\n"
35130 #: ../src/guestfs.pod:109
35133 " /* Close the handle 'g'. */\n"
35134 " guestfs_close (g);\n"
35137 " /* Закрити дескриптор 'g'. */\n"
35138 " guestfs_close (g);\n"
35142 #: ../src/guestfs.pod:112
35144 "The code above doesn't include any error checking. In real code you should "
35145 "check return values carefully for errors. In general all functions that "
35146 "return integers return C<-1> on error, and all functions that return "
35147 "pointers return C<NULL> on error. See section L</ERROR HANDLING> below for "
35148 "how to handle errors, and consult the documentation for each function call "
35149 "below to see precisely how they return error indications. See L<guestfs-"
35150 "examples(3)> for fully worked examples."
35154 #: ../src/guestfs.pod:121
35155 msgid "DISK IMAGES"
35156 msgstr "ОБРАЗИ ДИСКІВ"
35159 #: ../src/guestfs.pod:123
35161 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
35162 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
35163 "actual block device, or simply an empty file of zeroes that you have created "
35164 "through L<posix_fallocate(3)>. Libguestfs lets you do useful things to all "
35169 #: ../src/guestfs.pod:129
35171 "The call you should use in modern code for adding drives is L</"
35172 "guestfs_add_drive_opts>. To add a disk image, allowing writes, and "
35173 "specifying that the format is raw, do:"
35177 #: ../src/guestfs.pod:133
35180 " guestfs_add_drive_opts (g, filename,\n"
35181 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35185 " guestfs_add_drive_opts (g, filename,\n"
35186 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35191 #: ../src/guestfs.pod:137
35192 msgid "You can add a disk read-only using:"
35193 msgstr "Ви можете додати диск у режимі лише читання:"
35196 #: ../src/guestfs.pod:139
35199 " guestfs_add_drive_opts (g, filename,\n"
35200 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35201 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35205 " guestfs_add_drive_opts (g, filename,\n"
35206 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35207 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35212 #: ../src/guestfs.pod:144
35214 "or by calling the older function L</guestfs_add_drive_ro>. In either case "
35215 "libguestfs won't modify the file."
35219 #: ../src/guestfs.pod:147
35221 "Be extremely cautious if the disk image is in use, eg. if it is being used "
35222 "by a virtual machine. Adding it read-write will almost certainly cause disk "
35223 "corruption, but adding it read-only is safe."
35227 #: ../src/guestfs.pod:151
35229 "You must add at least one disk image, and you may add multiple disk images. "
35230 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
35231 "first one you added), C</dev/sdb> (for the second one you added), etc."
35235 #: ../src/guestfs.pod:156
35237 "Once L</guestfs_launch> has been called you cannot add any more images. You "
35238 "can call L</guestfs_list_devices> to get a list of the device names, in the "
35239 "order that you added them. See also L</BLOCK DEVICE NAMING> below."
35243 #: ../src/guestfs.pod:161
35245 msgstr "МОНТУВАННЯ"
35248 #: ../src/guestfs.pod:163
35250 "Before you can read or write files, create directories and so on in a disk "
35251 "image that contains filesystems, you have to mount those filesystems using "
35252 "L</guestfs_mount_options> or L</guestfs_mount_ro>. If you already know that "
35253 "a disk image contains (for example) one partition with a filesystem on that "
35254 "partition, then you can mount it directly:"
35258 #: ../src/guestfs.pod:170
35261 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35264 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35268 #: ../src/guestfs.pod:172
35270 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
35271 "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 "
35272 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>). Note "
35273 "that these are libguestfs virtual devices, and are nothing to do with host "
35278 #: ../src/guestfs.pod:178
35280 "If you are given a disk image and you don't know what it contains then you "
35281 "have to find out. Libguestfs can do that too: use L</"
35282 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
35283 "LVs, and either try mounting each to see what is mountable, or else examine "
35284 "them with L</guestfs_vfs_type> or L</guestfs_file>. To list just "
35285 "filesystems, use L</guestfs_list_filesystems>."
35289 #: ../src/guestfs.pod:186
35291 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
35292 "L</INSPECTION> below). But you might find it easier to look at higher level "
35293 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
35297 #: ../src/guestfs.pod:191
35299 "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are "
35300 "several other variations of the C<guestfs_mount_*> call."
35304 #: ../src/guestfs.pod:194
35305 msgid "FILESYSTEM ACCESS AND MODIFICATION"
35306 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
35309 #: ../src/guestfs.pod:196
35311 "The majority of the libguestfs API consists of fairly low-level calls for "
35312 "accessing and modifying the files, directories, symlinks etc on mounted "
35313 "filesystems. There are over a hundred such calls which you can find listed "
35314 "in detail below in this man page, and we don't even pretend to cover them "
35315 "all in this overview."
35319 #: ../src/guestfs.pod:202
35321 "Specify filenames as full paths, starting with C<\"/\"> and including the "
35324 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
35325 "точкою монтування."
35328 #: ../src/guestfs.pod:205
35330 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
35331 "the file called C<\"etc/passwd\"> then you could do:"
35333 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
35334 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
35338 #: ../src/guestfs.pod:208
35341 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35344 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35348 #: ../src/guestfs.pod:210
35350 "This would return C<data> as a newly allocated buffer containing the full "
35351 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
35352 "or C<NULL> if there was an error."
35356 #: ../src/guestfs.pod:214
35358 "As another example, to create a top-level directory on that filesystem "
35359 "called C<\"var\"> you would do:"
35363 #: ../src/guestfs.pod:217
35366 " guestfs_mkdir (g, \"/var\");\n"
35369 " guestfs_mkdir (g, \"/var\");\n"
35373 #: ../src/guestfs.pod:219
35374 msgid "To create a symlink you could do:"
35375 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
35378 #: ../src/guestfs.pod:221
35381 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35382 " \"/etc/rc3.d/S30portmap\");\n"
35385 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35386 " \"/etc/rc3.d/S30portmap\");\n"
35390 #: ../src/guestfs.pod:224
35392 "Libguestfs will reject attempts to use relative paths and there is no "
35393 "concept of a current working directory."
35397 #: ../src/guestfs.pod:227
35399 "Libguestfs can return errors in many situations: for example if the "
35400 "filesystem isn't writable, or if a file or directory that you requested "
35401 "doesn't exist. If you are using the C API (documented here) you have to "
35402 "check for those error conditions after each call. (Other language bindings "
35403 "turn these errors into exceptions)."
35407 #: ../src/guestfs.pod:233
35409 "File writes are affected by the per-handle umask, set by calling L</"
35410 "guestfs_umask> and defaulting to 022. See L</UMASK>."
35414 #: ../src/guestfs.pod:236
35415 msgid "PARTITIONING"
35416 msgstr "ПОДІЛ НА РОЗДІЛИ"
35419 #: ../src/guestfs.pod:238
35421 "Libguestfs contains API calls to read, create and modify partition tables on "
35426 #: ../src/guestfs.pod:241
35428 "In the common case where you want to create a single partition covering the "
35429 "whole disk, you should use the L</guestfs_part_disk> call:"
35433 #: ../src/guestfs.pod:245
35436 " const char *parttype = \"mbr\";\n"
35437 " if (disk_is_larger_than_2TB)\n"
35438 " parttype = \"gpt\";\n"
35439 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35442 " const char *parttype = \"mbr\";\n"
35443 " if (disk_is_larger_than_2TB)\n"
35444 " parttype = \"gpt\";\n"
35445 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35449 #: ../src/guestfs.pod:250
35451 "Obviously this effectively wipes anything that was on that disk image before."
35455 #: ../src/guestfs.pod:253
35460 #: ../src/guestfs.pod:255
35462 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
35463 "guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense unless "
35464 "you familiarize yourself with the concepts of physical volumes, volume "
35465 "groups and logical volumes."
35469 #: ../src/guestfs.pod:260
35471 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
35472 "tldp.org/HOWTO/LVM-HOWTO/>."
35476 #: ../src/guestfs.pod:263
35477 msgid "DOWNLOADING"
35478 msgstr "ОТРИМАННЯ ДАНИХ"
35481 #: ../src/guestfs.pod:265
35483 "Use L</guestfs_cat> to download small, text only files. This call is "
35484 "limited to files which are less than 2 MB and which cannot contain any ASCII "
35485 "NUL (C<\\0>) characters. However the API is very simple to use."
35489 #: ../src/guestfs.pod:269
35491 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
35492 "bit data, since it returns a (pointer, size) pair. However it is still "
35493 "limited to \"small\" files, less than 2 MB."
35497 #: ../src/guestfs.pod:273
35499 "L</guestfs_download> can be used to download any file, with no limits on "
35500 "content or size (even files larger than 4 GB)."
35504 #: ../src/guestfs.pod:276
35506 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
35510 #: ../src/guestfs.pod:279
35512 msgstr "ВИВАНТАЖЕННЯ"
35515 #: ../src/guestfs.pod:281
35517 "It's often the case that you want to write a file or files to the disk image."
35521 #: ../src/guestfs.pod:284
35523 "To write a small file with fixed content, use L</guestfs_write>. To create "
35524 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
35525 "guestfs_fallocate64> (with all disk blocks allocated). There are a variety "
35526 "of other functions for creating test files, for example L</guestfs_fill> and "
35527 "L</guestfs_fill_pattern>."
35531 #: ../src/guestfs.pod:290
35533 "To upload a single file, use L</guestfs_upload>. This call has no limits on "
35534 "file content or size (even files larger than 4 GB)."
35538 #: ../src/guestfs.pod:293
35540 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
35544 #: ../src/guestfs.pod:295
35546 "However the fastest way to upload I<large numbers of arbitrary files> is to "
35547 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
35548 ">), then attach this using L</guestfs_add_drive_ro>. If you add the drive "
35549 "in a predictable way (eg. adding it last after all other drives) then you "
35550 "can get the device name from L</guestfs_list_devices> and mount it directly "
35551 "using L</guestfs_mount_ro>. Note that squashfs images are sometimes non-"
35552 "portable between kernel versions, and they don't support labels or UUIDs. "
35553 "If you want to pre-build an image or you need to mount it using a label or "
35554 "UUID, use an ISO image instead."
35558 #: ../src/guestfs.pod:306
35560 msgstr "КОПІЮВАННЯ"
35563 #: ../src/guestfs.pod:308
35565 "There are various different commands for copying between files and devices "
35566 "and in and out of the guest filesystem. These are summarised in the table "
35571 #: ../src/guestfs.pod:314
35572 msgid "B<file> to B<file>"
35573 msgstr "B<файл> у B<файл>"
35576 #: ../src/guestfs.pod:316
35578 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
35579 "directories recursively."
35583 #: ../src/guestfs.pod:319
35584 msgid "B<file or device> to B<file or device>"
35585 msgstr "B<файл або пристрій> у B<файл або пристрій>"
35588 #: ../src/guestfs.pod:321
35590 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
35591 "devices in the guest."
35595 #: ../src/guestfs.pod:324
35596 msgid "Example: duplicate the contents of an LV:"
35600 #: ../src/guestfs.pod:326
35603 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
35606 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
35610 #: ../src/guestfs.pod:328
35612 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
35613 "(C</dev/VG/Original>). To copy less than the whole source device, use L</"
35614 "guestfs_copy_size>."
35618 #: ../src/guestfs.pod:332
35619 msgid "B<file on the host> to B<file or device>"
35623 #: ../src/guestfs.pod:334
35624 msgid "Use L</guestfs_upload>. See L</UPLOADING> above."
35628 #: ../src/guestfs.pod:336
35629 msgid "B<file or device> to B<file on the host>"
35633 #: ../src/guestfs.pod:338
35634 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above."
35638 #: ../src/guestfs.pod:342
35639 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
35643 #: ../src/guestfs.pod:344
35645 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
35646 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
35647 "appears you can only upload and download to files. However many Un*x-like "
35648 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
35649 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
35650 "and arbitrary file descriptor N."
35654 #: ../src/guestfs.pod:352
35655 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
35659 #: ../src/guestfs.pod:355
35662 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35665 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35669 #: ../src/guestfs.pod:357
35670 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
35674 #: ../src/guestfs.pod:359
35677 " char devfd[64];\n"
35678 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35679 " guestfs_tar_out (g, \"/\", devfd);\n"
35682 " char devfd[64];\n"
35683 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35684 " guestfs_tar_out (g, \"/\", devfd);\n"
35688 #: ../src/guestfs.pod:363
35689 msgid "LISTING FILES"
35690 msgstr "СПИСКИ ФАЙЛІВ"
35693 #: ../src/guestfs.pod:365
35695 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
35696 "L<guestfish(1)>-equivalent command C<ll>)."
35700 #: ../src/guestfs.pod:368
35702 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
35703 "programs, as a flat list of strings."
35707 #: ../src/guestfs.pod:371
35709 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
35710 "directory, plus additional information about each one. It is more "
35711 "equivalent to using the L<readdir(3)> call on a local filesystem."
35715 #: ../src/guestfs.pod:375
35717 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
35721 #: ../src/guestfs.pod:378
35722 msgid "RUNNING COMMANDS"
35723 msgstr "ВИКОНАННЯ КОМАНД"
35726 #: ../src/guestfs.pod:380
35728 "Although libguestfs is primarily an API for manipulating files inside guest "
35729 "images, we also provide some limited facilities for running commands inside "
35734 #: ../src/guestfs.pod:384
35735 msgid "There are many limitations to this:"
35739 #: ../src/guestfs.pod:390
35741 "The kernel version that the command runs under will be different from what "
35746 #: ../src/guestfs.pod:395
35748 "If the command needs to communicate with daemons, then most likely they "
35749 "won't be running."
35753 #: ../src/guestfs.pod:400
35754 msgid "The command will be running in limited memory."
35758 #: ../src/guestfs.pod:404
35760 "The network may not be available unless you enable it (see L</"
35761 "guestfs_set_network>)."
35765 #: ../src/guestfs.pod:409
35766 msgid "Only supports Linux guests (not Windows, BSD, etc)."
35770 #: ../src/guestfs.pod:413
35772 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
35776 #: ../src/guestfs.pod:418
35778 "For SELinux guests, you may need to enable SELinux and load policy first. "
35779 "See L</SELINUX> in this manpage."
35783 #: ../src/guestfs.pod:423
35785 "I<Security:> It is not safe to run commands from untrusted, possibly "
35786 "malicious guests. These commands may attempt to exploit your program by "
35787 "sending unexpected output. They could also try to exploit the Linux kernel "
35788 "or qemu provided by the libguestfs appliance. They could use the network "
35789 "provided by the libguestfs appliance to bypass ordinary network partitions "
35790 "and firewalls. They could use the elevated privileges or different SELinux "
35791 "context of your program to their advantage."
35795 #: ../src/guestfs.pod:432
35797 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
35798 "(a script which runs when the guest next boots normally), and to have this "
35799 "script run the commands you want in the normal context of the running guest, "
35800 "network security and so on. For information about other security issues, "
35801 "see L</SECURITY>."
35805 #: ../src/guestfs.pod:440
35807 "The two main API calls to run commands are L</guestfs_command> and L</"
35808 "guestfs_sh> (there are also variations)."
35812 #: ../src/guestfs.pod:443
35814 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
35815 "shell globs, redirections, etc will work."
35819 #: ../src/guestfs.pod:446
35820 msgid "CONFIGURATION FILES"
35821 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
35824 #: ../src/guestfs.pod:448
35826 "To read and write configuration files in Linux guest filesystems, we "
35827 "strongly recommend using Augeas. For example, Augeas understands how to "
35828 "read and write, say, a Linux shadow password file or X.org configuration "
35829 "file, and so avoids you having to write that code."
35833 #: ../src/guestfs.pod:453
35835 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't "
35836 "document Augeas itself here because there is excellent documentation on the "
35837 "L<http://augeas.net/> website."
35841 #: ../src/guestfs.pod:457
35843 "If you don't want to use Augeas (you fool!) then try calling L</"
35844 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
35849 #: ../src/guestfs.pod:461
35854 #: ../src/guestfs.pod:463
35856 "We support SELinux guests. To ensure that labeling happens correctly in "
35857 "SELinux guests, you need to enable SELinux and load the guest's policy:"
35861 #: ../src/guestfs.pod:471
35862 msgid "Before launching, do:"
35866 #: ../src/guestfs.pod:473
35869 " guestfs_set_selinux (g, 1);\n"
35872 " guestfs_set_selinux (g, 1);\n"
35876 #: ../src/guestfs.pod:477
35878 "After mounting the guest's filesystem(s), load the policy. This is best "
35879 "done by running the L<load_policy(8)> command in the guest itself:"
35883 #: ../src/guestfs.pod:481
35886 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35889 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35893 #: ../src/guestfs.pod:483
35895 "(Older versions of C<load_policy> require you to specify the name of the "
35900 #: ../src/guestfs.pod:488
35902 "Optionally, set the security context for the API. The correct security "
35903 "context to use can only be known by inspecting the guest. As an example:"
35907 #: ../src/guestfs.pod:492
35910 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35913 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35917 #: ../src/guestfs.pod:496
35918 msgid "This will work for running commands and editing existing files."
35922 #: ../src/guestfs.pod:498
35924 "When new files are created, you may need to label them explicitly, for "
35925 "example by running the external command C<restorecon pathname>."
35929 #: ../src/guestfs.pod:502
35934 #: ../src/guestfs.pod:504
35936 "Certain calls are affected by the current file mode creation mask (the "
35937 "\"umask\"). In particular ones which create files or directories, such as "
35938 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>. This affects "
35939 "either the default mode that the file is created with or modifies the mode "
35944 #: ../src/guestfs.pod:510
35946 "The default umask is C<022>, so files are created with modes such as C<0644> "
35947 "and directories with C<0755>."
35951 #: ../src/guestfs.pod:513
35953 "There are two ways to avoid being affected by umask. Either set umask to 0 "
35954 "(call C<guestfs_umask (g, 0)> early after launching). Or call L</"
35955 "guestfs_chmod> after creating each file or directory."
35959 #: ../src/guestfs.pod:517
35960 msgid "For more information about umask, see L<umask(2)>."
35964 #: ../src/guestfs.pod:521
35966 "Libguestfs allows you to access Linux guests which have been encrypted using "
35967 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
35968 "standard. This includes nearly all whole disk encryption systems used by "
35969 "modern Linux guests."
35973 #: ../src/guestfs.pod:527
35975 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
35976 "returns the string C<crypto_LUKS>)."
35980 #: ../src/guestfs.pod:530
35982 "Then open these devices by calling L</guestfs_luks_open>. Obviously you "
35983 "will require the passphrase!"
35987 #: ../src/guestfs.pod:533
35989 "Opening a LUKS device creates a new device mapper device called C</dev/"
35990 "mapper/mapname> (where C<mapname> is the string you supply to L</"
35991 "guestfs_luks_open>). Reads and writes to this mapper device are decrypted "
35992 "from and encrypted to the underlying block device respectively."
35996 #: ../src/guestfs.pod:539
35998 "LVM volume groups on the device can be made visible by calling L</"
35999 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical volume"
36000 "(s) can now be mounted in the usual way."
36004 #: ../src/guestfs.pod:543
36006 "Use the reverse process to close a LUKS device. Unmount any logical volumes "
36007 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
36008 "[\"/dev/VG\"])>. Then close the mapper device by calling L</"
36009 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
36010 "underlying encrypted block device)."
36014 #: ../src/guestfs.pod:550
36019 #: ../src/guestfs.pod:552
36021 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
36022 "contains operating systems, an install CD or a live CD. (These APIs used to "
36023 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
36024 "version 1.5.3 the most frequently used part of this library has been "
36025 "rewritten in C and moved into the core code)."
36029 #: ../src/guestfs.pod:559
36031 "Add all disks belonging to the unknown virtual machine and call L</"
36032 "guestfs_launch> in the usual way."
36036 #: ../src/guestfs.pod:562
36038 "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls "
36039 "and certain heuristics, and returns a list of operating systems that were "
36040 "found. An empty list means none were found. A single element is the root "
36041 "filesystem of the operating system. For dual- or multi-boot guests, "
36042 "multiple roots can be returned, each one corresponding to a separate "
36043 "operating system. (Multi-boot virtual machines are extremely rare in the "
36044 "world of virtualization, but since this scenario can happen, we have built "
36045 "libguestfs to deal with it.)"
36049 #: ../src/guestfs.pod:571
36051 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
36052 "to get additional details about that operating system. For example, call L</"
36053 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
36054 "Windows and Linux-based operating systems respectively."
36058 #: ../src/guestfs.pod:577
36060 "Un*x-like and Linux-based operating systems usually consist of several "
36061 "filesystems which are mounted at boot time (for example, a separate boot "
36062 "partition mounted on C</boot>). The inspection rules are able to detect how "
36063 "filesystems correspond to mount points. Call "
36064 "C<guestfs_inspect_get_mountpoints> to get this mapping. It might return a "
36065 "hash table like this example:"
36069 #: ../src/guestfs.pod:584
36072 " /boot => /dev/sda1\n"
36073 " / => /dev/vg_guest/lv_root\n"
36074 " /usr => /dev/vg_guest/lv_usr\n"
36077 " /boot => /dev/sda1\n"
36078 " / => /dev/vg_guest/lv_root\n"
36079 " /usr => /dev/vg_guest/lv_usr\n"
36083 #: ../src/guestfs.pod:588
36085 "The caller can then make calls to L</guestfs_mount_options> to mount the "
36086 "filesystems as suggested."
36090 #: ../src/guestfs.pod:591
36092 "Be careful to mount filesystems in the right order (eg. C</> before C</"
36093 "usr>). Sorting the keys of the hash by length, shortest first, should work."
36097 #: ../src/guestfs.pod:595
36099 "Inspection currently only works for some common operating systems. "
36100 "Contributors are welcome to send patches for other operating systems that we "
36101 "currently cannot detect."
36105 #: ../src/guestfs.pod:599
36107 "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
36108 "for more details. The L</guestfs_inspect_os> function just ignores any "
36109 "encrypted devices."
36113 #: ../src/guestfs.pod:603
36115 "A note on the implementation: The call L</guestfs_inspect_os> performs "
36116 "inspection and caches the results in the guest handle. Subsequent calls to "
36117 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
36118 "read the disks. If you change the content of the guest disks, you can redo "
36119 "inspection by calling L</guestfs_inspect_os> again. (L</"
36120 "guestfs_inspect_list_applications> works a little differently from the other "
36121 "calls and does read the disks. See documentation for that function for "
36126 #: ../src/guestfs.pod:612
36127 msgid "INSPECTING INSTALL DISKS"
36131 #: ../src/guestfs.pod:614
36133 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
36138 #: ../src/guestfs.pod:617
36140 "Call L</guestfs_inspect_get_format> to return the format of the operating "
36141 "system, which currently can be C<installed> (a regular operating system) or "
36142 "C<installer> (some sort of install disk)."
36146 #: ../src/guestfs.pod:621
36148 "Further information is available about the operating system that can be "
36149 "installed using the regular inspection APIs like L</"
36150 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
36154 #: ../src/guestfs.pod:626
36156 "Some additional information specific to installer disks is also available "
36157 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
36158 "guestfs_inspect_is_multipart> calls."
36162 #: ../src/guestfs.pod:631
36163 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
36167 #: ../src/guestfs.pod:633
36169 "Libguestfs can mount NTFS partitions. It does this using the L<http://www."
36170 "ntfs-3g.org/> driver."
36174 #: ../src/guestfs.pod:636
36175 msgid "DRIVE LETTERS AND PATHS"
36176 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
36179 #: ../src/guestfs.pod:638
36181 "DOS and Windows still use drive letters, and the filesystems are always "
36182 "treated as case insensitive by Windows itself, and therefore you might find "
36183 "a Windows configuration file referring to a path like C<c:\\windows"
36184 "\\system32>. When the filesystem is mounted in libguestfs, that directory "
36185 "might be referred to as C</WINDOWS/System32>."
36189 #: ../src/guestfs.pod:644
36191 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
36192 "L</guestfs_inspect_get_drive_mappings>)"
36196 #: ../src/guestfs.pod:647
36198 "Dealing with separator characters (backslash vs forward slash) is outside "
36199 "the scope of libguestfs, but usually a simple character replacement will "
36204 #: ../src/guestfs.pod:651
36206 "To resolve the case insensitivity of paths, call L</"
36207 "guestfs_case_sensitive_path>."
36211 #: ../src/guestfs.pod:654
36212 msgid "ACCESSING THE WINDOWS REGISTRY"
36213 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
36216 #: ../src/guestfs.pod:656
36218 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
36219 "files, through the library C<hivex> which is part of the libguestfs project "
36220 "although ships as a separate tarball. You have to locate and download the "
36221 "hive file(s) yourself, and then pass them to C<hivex> functions. See also "
36222 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
36223 "reg(1)> for more help on this issue."
36227 #: ../src/guestfs.pod:664
36228 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
36229 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
36232 #: ../src/guestfs.pod:666
36234 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
36235 "provide something which looks like a Linux symlink. The way it tries to do "
36236 "the rewriting is described here:"
36240 #: ../src/guestfs.pod:670
36242 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36245 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36249 #: ../src/guestfs.pod:672
36251 "The essential problem is that ntfs-3g simply does not have enough "
36252 "information to do a correct job. NTFS links can contain drive letters and "
36253 "references to external device GUIDs that ntfs-3g has no way of resolving. "
36254 "It is almost certainly the case that libguestfs callers should ignore what "
36255 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
36259 #: ../src/guestfs.pod:679
36261 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
36262 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
36263 "attribute, and read the raw reparse data from that (you can find the format "
36264 "documented in various places around the web)."
36268 #: ../src/guestfs.pod:684
36269 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
36273 #: ../src/guestfs.pod:686
36275 "There are other useful extended attributes that can be read from ntfs-3g "
36276 "filesystems (using L</guestfs_getxattr>). See:"
36280 #: ../src/guestfs.pod:689
36282 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36284 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36287 #: ../src/guestfs.pod:691
36288 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
36289 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
36292 #: ../src/guestfs.pod:693
36294 "Although we don't want to discourage you from using the C API, we will "
36295 "mention here that the same API is also available in other languages."
36299 #: ../src/guestfs.pod:696
36301 "The API is broadly identical in all supported languages. This means that "
36302 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
36303 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
36304 "OCaml. In other words, a straightforward, predictable isomorphism between "
36309 #: ../src/guestfs.pod:702
36311 "Error messages are automatically transformed into exceptions if the language "
36316 #: ../src/guestfs.pod:705
36318 "We don't try to \"object orientify\" parts of the API in OO languages, "
36319 "although contributors are welcome to write higher level APIs above what we "
36320 "provide in their favourite languages if they wish."
36324 #: ../src/guestfs.pod:711
36329 #: ../src/guestfs.pod:713
36331 "You can use the I<guestfs.h> header file from C++ programs. The C++ API is "
36332 "identical to the C API. C++ classes and exceptions are not used."
36336 #: ../src/guestfs.pod:717
36341 #: ../src/guestfs.pod:719
36343 "The C# bindings are highly experimental. Please read the warnings at the "
36344 "top of C<csharp/Libguestfs.cs>."
36348 #: ../src/guestfs.pod:722
36353 #: ../src/guestfs.pod:724
36355 #| msgid "See L<guestfs-ruby(3)>."
36356 msgid "See L<guestfs-erlang(3)>."
36357 msgstr "Див. L<guestfs-ruby(3)>."
36360 #: ../src/guestfs.pod:726
36362 msgstr "B<Haskell>"
36365 #: ../src/guestfs.pod:728
36367 "This is the only language binding that is working but incomplete. Only "
36368 "calls which return simple integers have been bound in Haskell, and we are "
36369 "looking for help to complete this binding."
36373 #: ../src/guestfs.pod:732
36378 #: ../src/guestfs.pod:734
36380 "Full documentation is contained in the Javadoc which is distributed with "
36381 "libguestfs. For examples, see L<guestfs-java(3)>."
36385 #: ../src/guestfs.pod:737
36390 #: ../src/guestfs.pod:739
36391 msgid "See L<guestfs-ocaml(3)>."
36392 msgstr "Див. L<guestfs-ocaml(3)>."
36395 #: ../src/guestfs.pod:741
36400 #: ../src/guestfs.pod:743
36401 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
36402 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
36405 #: ../src/guestfs.pod:745
36410 #: ../src/guestfs.pod:747
36412 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
36413 "the php-libguestfs package for your distribution."
36417 #: ../src/guestfs.pod:750
36418 msgid "The PHP binding only works correctly on 64 bit machines."
36422 #: ../src/guestfs.pod:752
36427 #: ../src/guestfs.pod:754
36428 msgid "See L<guestfs-python(3)>."
36429 msgstr "Див. L<guestfs-python(3)>."
36432 #: ../src/guestfs.pod:756
36437 #: ../src/guestfs.pod:758
36438 msgid "See L<guestfs-ruby(3)>."
36439 msgstr "Див. L<guestfs-ruby(3)>."
36442 #: ../src/guestfs.pod:760
36443 msgid "B<shell scripts>"
36444 msgstr "B<скрипти оболонки>"
36447 #: ../src/guestfs.pod:762
36448 msgid "See L<guestfish(1)>."
36449 msgstr "Див. L<guestfish(1)>."
36452 #: ../src/guestfs.pod:766
36453 msgid "LIBGUESTFS GOTCHAS"
36457 #: ../src/guestfs.pod:768
36459 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
36460 "system [...] that works in the way it is documented but is counterintuitive "
36461 "and almost invites mistakes.\""
36465 #: ../src/guestfs.pod:772
36467 "Since we developed libguestfs and the associated tools, there are several "
36468 "things we would have designed differently, but are now stuck with for "
36469 "backwards compatibility or other reasons. If there is ever a libguestfs 2.0 "
36470 "release, you can expect these to change. Beware of them."
36474 #: ../src/guestfs.pod:780
36475 msgid "Autosync / forgetting to sync."
36479 #: ../src/guestfs.pod:782
36481 "I<Update:> Autosync is enabled by default for all API users starting from "
36482 "libguestfs 1.5.24. This section only applies to older versions."
36486 #: ../src/guestfs.pod:785
36488 "When modifying a filesystem from C or another language, you B<must> unmount "
36489 "all filesystems and call L</guestfs_sync> explicitly before you close the "
36490 "libguestfs handle. You can also call:"
36494 #: ../src/guestfs.pod:789
36497 " guestfs_set_autosync (g, 1);\n"
36500 " guestfs_set_autosync (g, 1);\n"
36504 #: ../src/guestfs.pod:791
36506 "to have the unmount/sync done automatically for you when the handle 'g' is "
36507 "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
36511 #: ../src/guestfs.pod:795
36513 "If you forget to do this, then it is entirely possible that your changes "
36514 "won't be written out, or will be partially written, or (very rarely) that "
36515 "you'll get disk corruption."
36519 #: ../src/guestfs.pod:799
36521 "Note that in L<guestfish(3)> autosync is the default. So quick and dirty "
36522 "guestfish scripts that forget to sync will work just fine, which can make "
36523 "this very puzzling if you are trying to debug a problem."
36527 #: ../src/guestfs.pod:803
36528 msgid "Mount option C<-o sync> should not be the default."
36532 #: ../src/guestfs.pod:805
36534 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
36535 "libguestfs 1.13.16. This section only applies to older versions."
36539 #: ../src/guestfs.pod:808
36541 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. "
36542 "However C<-o sync> does not add any reliability benefit, but does have a "
36543 "very large performance impact."
36547 #: ../src/guestfs.pod:812
36549 "The work around is to use L</guestfs_mount_options> and set the mount "
36550 "options that you actually want to use."
36554 #: ../src/guestfs.pod:815
36555 msgid "Read-only should be the default."
36559 #: ../src/guestfs.pod:817
36561 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
36562 "specify I<--rw> if you want to make changes to the image."
36566 #: ../src/guestfs.pod:820
36567 msgid "This would reduce the potential to corrupt live VM images."
36571 #: ../src/guestfs.pod:822
36573 "Note that many filesystems change the disk when you just mount and unmount, "
36574 "even if you didn't perform any writes. You need to use L</"
36575 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
36579 #: ../src/guestfs.pod:826
36580 msgid "guestfish command line is hard to use."
36584 #: ../src/guestfs.pod:828
36586 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
36587 "examination). It tries to run a guestfish command C<disk.img> which doesn't "
36588 "exist, so it fails. In earlier versions of guestfish the error message was "
36589 "also unintuitive, but we have corrected this since. Like the Bourne shell, "
36590 "we should have used C<guestfish -c command> to run commands."
36594 #: ../src/guestfs.pod:835
36595 msgid "guestfish megabyte modifiers don't work right on all commands"
36599 #: ../src/guestfs.pod:837
36601 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
36602 "other modifiers). What guestfish actually does is to multiply the number "
36603 "part by the modifier part and pass the result to the C API. However this "
36604 "doesn't work for a few APIs which aren't expecting bytes, but are already "
36605 "expecting some other unit (eg. megabytes)."
36609 #: ../src/guestfs.pod:844
36610 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
36614 #: ../src/guestfs.pod:846
36617 " lvcreate LV VG 100M\n"
36620 " lvcreate LV VG 100M\n"
36624 #: ../src/guestfs.pod:848
36626 "does not do what you might expect. Instead because L</guestfs_lvcreate> is "
36627 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
36628 "megabytes * megabytes) logical volume. The error message you get from this "
36629 "is also a little obscure."
36633 #: ../src/guestfs.pod:853
36635 "This could be fixed in the generator by specially marking parameters and "
36636 "return values which take bytes or other units."
36640 #: ../src/guestfs.pod:856
36641 msgid "Ambiguity between devices and paths"
36645 #: ../src/guestfs.pod:858
36647 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
36648 "sdb2>) and a similar pathname. A file might just happen to be called "
36649 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
36653 #: ../src/guestfs.pod:863
36655 "In the current API we usually resolve this ambiguity by having two separate "
36656 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. "
36657 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
36658 "detecting if the path supplied begins with C</dev/>."
36662 #: ../src/guestfs.pod:869
36664 "To avoid both the ambiguity and the need to duplicate some calls, we could "
36665 "make paths/devices into structured names. One way to do this would be to "
36666 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
36667 "aspect of grub. Another way would be to use a structured type, equivalent "
36668 "to this OCaml type:"
36672 #: ../src/guestfs.pod:875
36675 " type path = Path of string | Device of int | Partition of int * int\n"
36680 #: ../src/guestfs.pod:877
36681 msgid "which would allow you to pass arguments like:"
36685 #: ../src/guestfs.pod:879
36688 " Path \"/foo/bar\"\n"
36689 " Device 1 (* /dev/sdb, or perhaps /dev/sda *)\n"
36690 " Partition (1, 2) (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
36691 " Path \"/dev/sdb2\" (* not a device *)\n"
36696 #: ../src/guestfs.pod:884
36698 "As you can see there are still problems to resolve even with this "
36699 "representation. Also consider how it might work in guestfish."
36703 #: ../src/guestfs.pod:889
36704 msgid "KEYS AND PASSPHRASES"
36705 msgstr "КЛЮЧІ І ПАРОЛІ"
36708 #: ../src/guestfs.pod:891
36710 "Certain libguestfs calls take a parameter that contains sensitive key "
36711 "material, passed in as a C string."
36715 #: ../src/guestfs.pod:894
36717 "In the future we would hope to change the libguestfs implementation so that "
36718 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
36719 "swap. However this is I<not> done at the moment, because of the complexity "
36720 "of such an implementation."
36724 #: ../src/guestfs.pod:899
36726 "Therefore you should be aware that any key parameter you pass to libguestfs "
36727 "might end up being written out to the swap partition. If this is a concern, "
36728 "scrub the swap partition or don't use libguestfs on encrypted devices."
36732 #: ../src/guestfs.pod:904
36733 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
36737 #: ../src/guestfs.pod:906
36739 "All high-level libguestfs actions are synchronous. If you want to use "
36740 "libguestfs asynchronously then you must create a thread."
36744 #: ../src/guestfs.pod:909
36746 "Only use the handle from a single thread. Either use the handle exclusively "
36747 "from one thread, or provide your own mutex so that two threads cannot issue "
36748 "calls on the same handle at the same time."
36752 #: ../src/guestfs.pod:913
36754 "See the graphical program guestfs-browser for one possible architecture for "
36755 "multithreaded programs using libvirt and libguestfs."
36759 #: ../src/guestfs.pod:916
36764 #: ../src/guestfs.pod:918
36766 "Libguestfs needs a supermin appliance, which it finds by looking along an "
36771 #: ../src/guestfs.pod:921
36773 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
36774 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
36778 #: ../src/guestfs.pod:924
36780 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
36781 "to change the directories that libguestfs will search in. The value is a "
36782 "colon-separated list of paths. The current directory is I<not> searched "
36783 "unless the path contains an empty element or C<.>. For example "
36784 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
36785 "then C</usr/lib/guestfs>."
36789 #: ../src/guestfs.pod:931
36790 msgid "QEMU WRAPPERS"
36794 #: ../src/guestfs.pod:933
36796 "If you want to compile your own qemu, run qemu from a non-standard location, "
36797 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
36802 #: ../src/guestfs.pod:937
36804 "There is one important rule to remember: you I<must C<exec qemu>> as the "
36805 "last command in the shell script (so that qemu replaces the shell and "
36806 "becomes the direct child of the libguestfs-using program). If you don't do "
36807 "this, then the qemu process won't be cleaned up correctly."
36811 #: ../src/guestfs.pod:942
36813 "Here is an example of a wrapper, where I have built my own copy of qemu from "
36818 #: ../src/guestfs.pod:945
36822 " qemudir=/home/rjones/d/qemu\n"
36823 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
36827 " qemudir=/home/rjones/d/qemu\n"
36828 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
36832 #: ../src/guestfs.pod:949
36834 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
36835 "then use it by setting the LIBGUESTFS_QEMU environment variable. For "
36840 #: ../src/guestfs.pod:953
36843 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36846 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36850 #: ../src/guestfs.pod:955
36852 "Note that libguestfs also calls qemu with the -help and -version options in "
36853 "order to determine features."
36857 #: ../src/guestfs.pod:958
36859 "Wrappers can also be used to edit the options passed to qemu. In the "
36860 "following example, the C<-machine ...> option (C<-machine> and the following "
36861 "argument) are removed from the command line and replaced with C<-machine pc,"
36862 "accel=tcg>. The while loop iterates over the options until it finds the "
36863 "right one to remove, putting the remaining options into the C<args> array."
36867 #: ../src/guestfs.pod:967
36871 " while [ $# -gt 0 ]; do\n"
36872 " case \"$1\" in\n"
36876 " args[i]=\"$1\"\n"
36885 #: ../src/guestfs.pod:979
36888 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
36893 #: ../src/guestfs.pod:981
36894 msgid "ATTACHING TO RUNNING DAEMONS"
36895 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
36898 #: ../src/guestfs.pod:983
36900 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
36901 "babies. Use with caution."
36905 #: ../src/guestfs.pod:986
36907 "I<Note (2):> This section explains how to attach to a running daemon from a "
36908 "low level perspective. For most users, simply using virt tools such as "
36909 "L<guestfish(1)> with the I<--live> option will \"just work\"."
36913 #: ../src/guestfs.pod:990
36914 msgid "Using guestfs_set_attach_method"
36915 msgstr "За допомогою guestfs_set_attach_method"
36918 #: ../src/guestfs.pod:992
36920 "By calling L</guestfs_set_attach_method> you can change how the library "
36921 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
36922 "ARCHITECTURE> for some background)."
36926 #: ../src/guestfs.pod:996
36928 "The normal attach method is C<appliance>, where a small appliance is created "
36929 "containing the daemon, and then the library connects to this."
36933 #: ../src/guestfs.pod:999
36935 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
36936 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
36937 "daemon over the Unix domain socket."
36941 #: ../src/guestfs.pod:1003
36943 "The normal use for this is to connect to a running virtual machine that "
36944 "contains a C<guestfsd> daemon, and send commands so you can read and write "
36945 "files inside the live virtual machine."
36949 #: ../src/guestfs.pod:1007
36950 msgid "Using guestfs_add_domain with live flag"
36951 msgstr "За допомогою guestfs_add_domain з прапорцем live"
36954 #: ../src/guestfs.pod:1009
36956 "L</guestfs_add_domain> provides some help for getting the correct attach "
36957 "method. If you pass the C<live> option to this function, then (if the "
36958 "virtual machine is running) it will examine the libvirt XML looking for a "
36959 "virtio-serial channel to connect to:"
36963 #: ../src/guestfs.pod:1015
36970 " <channel type='unix'>\n"
36971 " <source mode='bind' path='/path/to/socket'/>\n"
36972 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36983 " <channel type='unix'>\n"
36984 " <source mode='bind' path='/path/to/socket'/>\n"
36985 " <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36993 #: ../src/guestfs.pod:1027
36995 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
36996 "method to C<unix:/path/to/socket>."
37000 #: ../src/guestfs.pod:1030
37002 "Some of the libguestfs tools (including guestfish) support a I<--live> "
37003 "option which is passed through to L</guestfs_add_domain> thus allowing you "
37004 "to attach to and modify live virtual machines."
37008 #: ../src/guestfs.pod:1034
37010 "The virtual machine needs to have been set up beforehand so that it has the "
37011 "virtio-serial channel and so that guestfsd is running inside it."
37015 #: ../src/guestfs.pod:1038
37016 msgid "ABI GUARANTEE"
37017 msgstr "ГАРАНТІЯ ЩОДО ABI"
37020 #: ../src/guestfs.pod:1040
37022 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
37023 "actions as outlined in this section. Although we will deprecate some "
37024 "actions, for example if they get replaced by newer calls, we will keep the "
37025 "old actions forever. This allows you the developer to program in confidence "
37026 "against the libguestfs API."
37030 #: ../src/guestfs.pod:1046
37031 msgid "BLOCK DEVICE NAMING"
37032 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
37035 #: ../src/guestfs.pod:1048
37037 "In the kernel there is now quite a profusion of schemata for naming block "
37038 "devices (in this context, by I<block device> I mean a physical or virtual "
37039 "hard drive). The original Linux IDE driver used names starting with C</dev/"
37040 "hd*>. SCSI devices have historically used a different naming scheme, C</dev/"
37041 "sd*>. When the Linux kernel I<libata> driver became a popular replacement "
37042 "for the old IDE driver (particularly for SATA devices) those devices also "
37043 "used the C</dev/sd*> scheme. Additionally we now have virtual machines with "
37044 "paravirtualized drivers. This has created several different naming systems, "
37045 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
37049 #: ../src/guestfs.pod:1060
37051 "As discussed above, libguestfs uses a qemu appliance running an embedded "
37052 "Linux kernel to access block devices. We can run a variety of appliances "
37053 "based on a variety of Linux kernels."
37057 #: ../src/guestfs.pod:1064
37059 "This causes a problem for libguestfs because many API calls use device or "
37060 "partition names. Working scripts and the recipe (example) scripts that we "
37061 "make available over the internet could fail if the naming scheme changes."
37065 #: ../src/guestfs.pod:1069
37067 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. "
37068 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
37069 "required. For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
37070 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
37074 #: ../src/guestfs.pod:1075
37076 "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, "
37077 "L</guestfs_list_partitions> and similar calls return the true names of the "
37078 "devices and partitions as known to the appliance."
37082 #: ../src/guestfs.pod:1080
37083 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
37087 #: ../src/guestfs.pod:1082
37089 "Usually this translation is transparent. However in some (very rare) cases "
37090 "you may need to know the exact algorithm. Such cases include where you use "
37091 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
37092 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
37096 #: ../src/guestfs.pod:1088
37098 "The algorithm is applied only to I<parameters> which are known to be either "
37099 "device or partition names. Return values from functions such as L</"
37100 "guestfs_list_devices> are never changed."
37104 #: ../src/guestfs.pod:1096
37105 msgid "Is the string a parameter which is a device or partition name?"
37109 #: ../src/guestfs.pod:1100
37110 msgid "Does the string begin with C</dev/sd>?"
37111 msgstr "Чи починається рядок з C</dev/sd>?"
37114 #: ../src/guestfs.pod:1104
37116 "Does the named device exist? If so, we use that device. However if I<not> "
37117 "then we continue with this algorithm."
37121 #: ../src/guestfs.pod:1109
37122 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
37126 #: ../src/guestfs.pod:1111
37127 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
37131 #: ../src/guestfs.pod:1113
37132 msgid "If that named device exists, use it. If not, continue."
37136 #: ../src/guestfs.pod:1117
37137 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
37141 #: ../src/guestfs.pod:1119
37142 msgid "If that named device exists, use it. If not, return an error."
37146 #: ../src/guestfs.pod:1123
37147 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
37151 #: ../src/guestfs.pod:1125
37153 "Although the standard naming scheme and automatic translation is useful for "
37154 "simple programs and guestfish scripts, for larger programs it is best not to "
37155 "rely on this mechanism."
37159 #: ../src/guestfs.pod:1129
37161 "Where possible for maximum future portability programs using libguestfs "
37162 "should use these future-proof techniques:"
37166 #: ../src/guestfs.pod:1136
37168 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
37169 "device names, and then use those names directly."
37173 #: ../src/guestfs.pod:1139
37175 "Since those device names exist by definition, they will never be translated."
37179 #: ../src/guestfs.pod:1144
37181 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
37182 "filesystem labels."
37186 #: ../src/guestfs.pod:1149
37191 #: ../src/guestfs.pod:1151
37193 "This section discusses security implications of using libguestfs, "
37194 "particularly with untrusted or malicious guests or disk images."
37198 #: ../src/guestfs.pod:1154
37199 msgid "GENERAL SECURITY CONSIDERATIONS"
37200 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
37203 #: ../src/guestfs.pod:1156
37205 "Be careful with any files or data that you download from a guest (by "
37206 "\"download\" we mean not just the L</guestfs_download> command but any "
37207 "command that reads files, filenames, directories or anything else from a "
37208 "disk image). An attacker could manipulate the data to fool your program "
37209 "into doing the wrong thing. Consider cases such as:"
37213 #: ../src/guestfs.pod:1166
37214 msgid "the data (file etc) not being present"
37218 #: ../src/guestfs.pod:1170
37219 msgid "being present but empty"
37223 #: ../src/guestfs.pod:1174
37224 msgid "being much larger than normal"
37228 #: ../src/guestfs.pod:1178
37229 msgid "containing arbitrary 8 bit data"
37233 #: ../src/guestfs.pod:1182
37234 msgid "being in an unexpected character encoding"
37238 #: ../src/guestfs.pod:1186
37239 msgid "containing homoglyphs."
37243 #: ../src/guestfs.pod:1190
37244 msgid "SECURITY OF MOUNTING FILESYSTEMS"
37245 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
37248 #: ../src/guestfs.pod:1192
37250 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
37251 "(VFS) module can sometimes be escalated into exploits by deliberately "
37252 "creating a malicious, malformed filesystem. These exploits are very severe "
37253 "for two reasons. Firstly there are very many filesystem drivers in the "
37254 "kernel, and many of them are infrequently used and not much developer "
37255 "attention has been paid to the code. Linux userspace helps potential "
37256 "crackers by detecting the filesystem type and automatically choosing the "
37257 "right VFS driver, even if that filesystem type is obscure or unexpected for "
37258 "the administrator. Secondly, a kernel-level exploit is like a local root "
37259 "exploit (worse in some ways), giving immediate and total access to the "
37260 "system right down to the hardware level."
37264 #: ../src/guestfs.pod:1205
37266 "That explains why you should never mount a filesystem from an untrusted "
37267 "guest on your host kernel. How about libguestfs? We run a Linux kernel "
37268 "inside a qemu virtual machine, usually running as a non-root user. The "
37269 "attacker would need to write a filesystem which first exploited the kernel, "
37270 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
37271 "the libguestfs protocol, and finally to be as serious as the host kernel "
37272 "exploit it would need to escalate its privileges to root. This multi-step "
37273 "escalation, performed by a static piece of data, is thought to be extremely "
37274 "hard to do, although we never say 'never' about security issues."
37278 #: ../src/guestfs.pod:1216
37280 "In any case callers can reduce the attack surface by forcing the filesystem "
37281 "type when mounting (use L</guestfs_mount_vfs>)."
37285 #: ../src/guestfs.pod:1219
37286 msgid "PROTOCOL SECURITY"
37287 msgstr "ЗАХИСТ ПРОТОКОЛУ"
37290 #: ../src/guestfs.pod:1221
37292 "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a "
37293 "defined upper message size. However a program that uses libguestfs must "
37294 "also take care - for example you can write a program that downloads a binary "
37295 "from a disk image and executes it locally, and no amount of protocol "
37296 "security will save you from the consequences."
37300 #: ../src/guestfs.pod:1227
37301 msgid "INSPECTION SECURITY"
37305 #: ../src/guestfs.pod:1229
37307 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
37308 "directly from the guest, and these could contain any 8 bit data. Callers "
37309 "should be careful to escape these before printing them to a structured file "
37310 "(for example, use HTML escaping if creating a web page)."
37314 #: ../src/guestfs.pod:1235
37316 "Guest configuration may be altered in unusual ways by the administrator of "
37317 "the virtual machine, and may not reflect reality (particularly for untrusted "
37318 "or actively malicious guests). For example we parse the hostname from "
37319 "configuration files like C</etc/sysconfig/network> that we find in the "
37320 "guest, but the guest administrator can easily manipulate these files to "
37321 "provide the wrong hostname."
37325 #: ../src/guestfs.pod:1243
37327 "The inspection API parses guest configuration using two external libraries: "
37328 "Augeas (Linux configuration) and hivex (Windows Registry). Both are "
37329 "designed to be robust in the face of malicious data, although denial of "
37330 "service attacks are still possible, for example with oversized configuration "
37335 #: ../src/guestfs.pod:1249
37336 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
37337 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
37340 #: ../src/guestfs.pod:1251
37342 "Be very cautious about running commands from the guest. By running a "
37343 "command in the guest, you are giving CPU time to a binary that you do not "
37344 "control, under the same user account as the library, albeit wrapped in qemu "
37345 "virtualization. More information and alternatives can be found in the "
37346 "section L</RUNNING COMMANDS>."
37350 #: ../src/guestfs.pod:1257
37351 msgid "CVE-2010-3851"
37352 msgstr "CVE-2010-3851"
37355 #: ../src/guestfs.pod:1259
37356 msgid "https://bugzilla.redhat.com/642934"
37357 msgstr "https://bugzilla.redhat.com/642934"
37360 #: ../src/guestfs.pod:1261
37362 "This security bug concerns the automatic disk format detection that qemu "
37363 "does on disk images."
37367 #: ../src/guestfs.pod:1264
37369 "A raw disk image is just the raw bytes, there is no header. Other disk "
37370 "images like qcow2 contain a special header. Qemu deals with this by looking "
37371 "for one of the known headers, and if none is found then assuming the disk "
37372 "image must be raw."
37376 #: ../src/guestfs.pod:1269
37378 "This allows a guest which has been given a raw disk image to write some "
37379 "other header. At next boot (or when the disk image is accessed by "
37380 "libguestfs) qemu would do autodetection and think the disk image format was, "
37381 "say, qcow2 based on the header written by the guest."
37385 #: ../src/guestfs.pod:1274
37387 "This in itself would not be a problem, but qcow2 offers many features, one "
37388 "of which is to allow a disk image to refer to another image (called the "
37389 "\"backing disk\"). It does this by placing the path to the backing disk "
37390 "into the qcow2 header. This path is not validated and could point to any "
37391 "host file (eg. \"/etc/passwd\"). The backing disk is then exposed through "
37392 "\"holes\" in the qcow2 disk image, which of course is completely under the "
37393 "control of the attacker."
37397 #: ../src/guestfs.pod:1282
37399 "In libguestfs this is rather hard to exploit except under two circumstances:"
37403 #: ../src/guestfs.pod:1289
37404 msgid "You have enabled the network or have opened the disk in write mode."
37408 #: ../src/guestfs.pod:1293
37410 "You are also running untrusted code from the guest (see L</RUNNING "
37415 #: ../src/guestfs.pod:1298
37417 "The way to avoid this is to specify the expected disk format when adding "
37418 "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You "
37419 "should always do this if the disk is raw format, and it's a good idea for "
37424 #: ../src/guestfs.pod:1303
37426 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
37427 "format is fetched from libvirt and passed through."
37431 #: ../src/guestfs.pod:1306
37433 "For libguestfs tools, use the I<--format> command line parameter as "
37438 #: ../src/guestfs.pod:1309
37439 msgid "CONNECTION MANAGEMENT"
37440 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
37443 #: ../src/guestfs.pod:1311
37444 msgid "guestfs_h *"
37445 msgstr "guestfs_h *"
37448 #: ../src/guestfs.pod:1313
37450 "C<guestfs_h> is the opaque type representing a connection handle. Create a "
37451 "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the "
37452 "handle and release all resources used."
37456 #: ../src/guestfs.pod:1317
37458 "For information on using multiple handles and threads, see the section L</"
37459 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
37463 #: ../src/guestfs.pod:1320
37464 msgid "guestfs_create"
37465 msgstr "guestfs_create"
37468 #: ../src/guestfs.pod:1322
37471 " guestfs_h *guestfs_create (void);\n"
37474 " guestfs_h *guestfs_create (void);\n"
37478 #: ../src/guestfs.pod:1324
37479 msgid "Create a connection handle."
37480 msgstr "Створити дескриптор з’єднання."
37483 #: ../src/guestfs.pod:1326
37485 "On success this returns a non-NULL pointer to a handle. On error it returns "
37490 #: ../src/guestfs.pod:1329
37492 "You have to \"configure\" the handle after creating it. This includes "
37493 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
37494 "handle at least once."
37498 #: ../src/guestfs.pod:1333
37499 msgid "After configuring the handle, you have to call L</guestfs_launch>."
37503 #: ../src/guestfs.pod:1335
37505 "You may also want to configure error handling for the handle. See the L</"
37506 "ERROR HANDLING> section below."
37510 #: ../src/guestfs.pod:1338
37511 msgid "guestfs_close"
37512 msgstr "guestfs_close"
37515 #: ../src/guestfs.pod:1340
37518 " void guestfs_close (guestfs_h *g);\n"
37521 " void guestfs_close (guestfs_h *g);\n"
37525 #: ../src/guestfs.pod:1342
37526 msgid "This closes the connection handle and frees up all resources used."
37530 #: ../src/guestfs.pod:1344
37532 "If autosync was set on the handle and the handle was launched, then this "
37533 "implicitly calls various functions to unmount filesystems and sync the "
37534 "disk. See L</guestfs_set_autosync> for more details."
37538 #: ../src/guestfs.pod:1348
37539 msgid "If a close callback was set on the handle, then it is called."
37543 #: ../src/guestfs.pod:1350
37544 msgid "ERROR HANDLING"
37545 msgstr "ОБРОБКА ПОМИЛОК"
37548 #: ../src/guestfs.pod:1352
37550 "API functions can return errors. For example, almost all functions that "
37551 "return C<int> will return C<-1> to indicate an error."
37555 #: ../src/guestfs.pod:1355
37557 "Additional information is available for errors: an error message string and "
37558 "optionally an error number (errno) if the thing that failed was a system "
37563 #: ../src/guestfs.pod:1359
37565 "You can get at the additional information about the last error on the handle "
37566 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
37567 "up an error handler with L</guestfs_set_error_handler>."
37571 #: ../src/guestfs.pod:1364
37573 "When the handle is created, a default error handler is installed which "
37574 "prints the error message string to C<stderr>. For small short-running "
37575 "command line programs it is sufficient to do:"
37579 #: ../src/guestfs.pod:1368
37582 " if (guestfs_launch (g) == -1)\n"
37583 " exit (EXIT_FAILURE);\n"
37586 " if (guestfs_launch (g) == -1)\n"
37587 " exit (EXIT_FAILURE);\n"
37591 #: ../src/guestfs.pod:1371
37593 "since the default error handler will ensure that an error message has been "
37594 "printed to C<stderr> before the program exits."
37598 #: ../src/guestfs.pod:1374
37600 "For other programs the caller will almost certainly want to install an "
37601 "alternate error handler or do error handling in-line like this:"
37605 #: ../src/guestfs.pod:1377
37608 " /* This disables the default behaviour of printing errors\n"
37610 " guestfs_set_error_handler (g, NULL, NULL);\n"
37615 #: ../src/guestfs.pod:1381
37618 #| " if (guestfs_launch (g) == -1) {\n"
37619 #| " /* Examine the error message and print it etc. */\n"
37620 #| " char *msg = guestfs_last_error (g);\n"
37621 #| " int errnum = guestfs_last_errno (g);\n"
37622 #| " fprintf (stderr, \"%s\\n\", msg);\n"
37627 " if (guestfs_launch (g) == -1) {\n"
37628 " /* Examine the error message and print it etc. */\n"
37629 " char *msg = guestfs_last_error (g);\n"
37630 " int errnum = guestfs_last_errno (g);\n"
37631 " fprintf (stderr, \"%s\", msg);\n"
37632 " if (errnum != 0)\n"
37633 " fprintf (stderr, \": %s\", strerror (errnum));\n"
37634 " fprintf (stderr, \"\\n\");\n"
37639 " if (guestfs_launch (g) == -1) {\n"
37640 " /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
37641 " char *msg = guestfs_last_error (g);\n"
37642 " int errnum = guestfs_last_errno (g);\n"
37643 " fprintf (stderr, \"%s\\n\", msg);\n"
37649 #: ../src/guestfs.pod:1392
37651 "Out of memory errors are handled differently. The default action is to call "
37652 "L<abort(3)>. If this is undesirable, then you can set a handler using L</"
37653 "guestfs_set_out_of_memory_handler>."
37657 #: ../src/guestfs.pod:1396
37659 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
37660 "because there is no handle if this happens there is no way to get additional "
37661 "error information. However L</guestfs_create> is supposed to be a "
37662 "lightweight operation which can only fail because of insufficient memory (it "
37663 "returns NULL in this case)."
37667 #: ../src/guestfs.pod:1402
37668 msgid "guestfs_last_error"
37669 msgstr "guestfs_last_error"
37672 #: ../src/guestfs.pod:1404
37675 " const char *guestfs_last_error (guestfs_h *g);\n"
37678 " const char *guestfs_last_error (guestfs_h *g);\n"
37682 #: ../src/guestfs.pod:1406
37684 "This returns the last error message that happened on C<g>. If there has not "
37685 "been an error since the handle was created, then this returns C<NULL>."
37689 #: ../src/guestfs.pod:1410
37691 "The lifetime of the returned string is until the next error occurs, or L</"
37692 "guestfs_close> is called."
37696 #: ../src/guestfs.pod:1413
37697 msgid "guestfs_last_errno"
37698 msgstr "guestfs_last_errno"
37701 #: ../src/guestfs.pod:1415
37704 " int guestfs_last_errno (guestfs_h *g);\n"
37707 " int guestfs_last_errno (guestfs_h *g);\n"
37711 #: ../src/guestfs.pod:1417
37712 msgid "This returns the last error number (errno) that happened on C<g>."
37716 #: ../src/guestfs.pod:1419
37717 msgid "If successful, an errno integer not equal to zero is returned."
37721 #: ../src/guestfs.pod:1421
37723 "If no error, this returns 0. This call can return 0 in three situations:"
37727 #: ../src/guestfs.pod:1428
37728 msgid "There has not been any error on the handle."
37732 #: ../src/guestfs.pod:1432
37734 "There has been an error but the errno was meaningless. This corresponds to "
37735 "the case where the error did not come from a failed system call, but for "
37736 "some other reason."
37740 #: ../src/guestfs.pod:1438
37742 "There was an error from a failed system call, but for some reason the errno "
37743 "was not captured and returned. This usually indicates a bug in libguestfs."
37747 #: ../src/guestfs.pod:1444
37749 "Libguestfs tries to convert the errno from inside the applicance into a "
37750 "corresponding errno for the caller (not entirely trivial: the appliance "
37751 "might be running a completely different operating system from the library "
37752 "and error numbers are not standardized across Un*xen). If this could not be "
37753 "done, then the error is translated to C<EINVAL>. In practice this should "
37754 "only happen in very rare circumstances."
37758 #: ../src/guestfs.pod:1452
37759 msgid "guestfs_set_error_handler"
37760 msgstr "guestfs_set_error_handler"
37763 #: ../src/guestfs.pod:1454
37766 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37768 " const char *msg);\n"
37769 " void guestfs_set_error_handler (guestfs_h *g,\n"
37770 " guestfs_error_handler_cb cb,\n"
37771 " void *opaque);\n"
37774 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37776 " const char *msg);\n"
37777 " void guestfs_set_error_handler (guestfs_h *g,\n"
37778 " guestfs_error_handler_cb cb,\n"
37779 " void *opaque);\n"
37783 #: ../src/guestfs.pod:1461
37785 "The callback C<cb> will be called if there is an error. The parameters "
37786 "passed to the callback are an opaque data pointer and the error message "
37791 #: ../src/guestfs.pod:1465
37793 "C<errno> is not passed to the callback. To get that the callback must call "
37794 "L</guestfs_last_errno>."
37798 #: ../src/guestfs.pod:1468
37800 "Note that the message string C<msg> is freed as soon as the callback "
37801 "function returns, so if you want to stash it somewhere you must make your "
37806 #: ../src/guestfs.pod:1472
37807 msgid "The default handler prints messages on C<stderr>."
37811 #: ../src/guestfs.pod:1474
37812 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
37816 #: ../src/guestfs.pod:1476
37817 msgid "guestfs_get_error_handler"
37818 msgstr "guestfs_get_error_handler"
37821 #: ../src/guestfs.pod:1478
37824 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37825 " void **opaque_rtn);\n"
37828 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37829 " void **opaque_rtn);\n"
37833 #: ../src/guestfs.pod:1481
37834 msgid "Returns the current error handler callback."
37838 #: ../src/guestfs.pod:1483
37839 msgid "guestfs_set_out_of_memory_handler"
37840 msgstr "guestfs_set_out_of_memory_handler"
37843 #: ../src/guestfs.pod:1485
37846 #| " typedef void (*guestfs_abort_cb) (void);\n"
37847 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
37848 #| " guestfs_abort_cb);\n"
37851 " typedef void (*guestfs_abort_cb) (void);\n"
37852 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
37853 " guestfs_abort_cb);\n"
37856 " typedef void (*guestfs_abort_cb) (void);\n"
37857 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
37858 " guestfs_abort_cb);\n"
37862 #: ../src/guestfs.pod:1489
37864 "The callback C<cb> will be called if there is an out of memory situation. "
37865 "I<Note this callback must not return>."
37869 #: ../src/guestfs.pod:1492
37870 msgid "The default is to call L<abort(3)>."
37874 #: ../src/guestfs.pod:1494
37876 "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
37880 #: ../src/guestfs.pod:1497
37881 msgid "guestfs_get_out_of_memory_handler"
37882 msgstr "guestfs_get_out_of_memory_handler"
37885 #: ../src/guestfs.pod:1499
37888 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37891 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37895 #: ../src/guestfs.pod:1501
37896 msgid "This returns the current out of memory handler."
37900 #: ../src/guestfs.pod:1503
37902 msgstr "ВИКЛИКИ API"
37905 #: ../src/guestfs.pod:1507
37910 #: ../src/guestfs.pod:1509
37915 #: ../src/guestfs.pod:1511
37916 msgid "AVAILABILITY"
37917 msgstr "ДОСТУПНІСТЬ"
37920 #: ../src/guestfs.pod:1513
37921 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
37922 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
37925 #: ../src/guestfs.pod:1515
37927 "Using L</guestfs_available> you can test availability of the following "
37928 "groups of functions. This test queries the appliance to see if the "
37929 "appliance you are currently using supports the functionality."
37933 #: ../src/guestfs.pod:1520
37934 msgid "@AVAILABILITY@"
37935 msgstr "@AVAILABILITY@"
37938 #: ../src/guestfs.pod:1522
37939 msgid "GUESTFISH supported COMMAND"
37943 #: ../src/guestfs.pod:1524
37945 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
37946 "prints out the available groups and whether they are supported by this build "
37947 "of libguestfs. Note however that you have to do C<run> first."
37951 #: ../src/guestfs.pod:1529
37952 msgid "SINGLE CALLS AT COMPILE TIME"
37956 #: ../src/guestfs.pod:1531
37958 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
37959 "function, such as:"
37963 #: ../src/guestfs.pod:1534
37966 " #define LIBGUESTFS_HAVE_DD 1\n"
37969 " #define LIBGUESTFS_HAVE_DD 1\n"
37973 #: ../src/guestfs.pod:1536
37974 msgid "if L</guestfs_dd> is available."
37978 #: ../src/guestfs.pod:1538
37980 "Before version 1.5.8, if you needed to test whether a single libguestfs "
37981 "function is available at compile time, we recommended using build tools such "
37982 "as autoconf or cmake. For example in autotools you could use:"
37986 #: ../src/guestfs.pod:1543
37989 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37990 " AC_CHECK_FUNCS([guestfs_dd])\n"
37993 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37994 " AC_CHECK_FUNCS([guestfs_dd])\n"
37998 #: ../src/guestfs.pod:1546
38000 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
38005 #: ../src/guestfs.pod:1549
38006 msgid "SINGLE CALLS AT RUN TIME"
38010 #: ../src/guestfs.pod:1551
38012 "Testing at compile time doesn't guarantee that a function really exists in "
38013 "the library. The reason is that you might be dynamically linked against a "
38014 "previous I<libguestfs.so> (dynamic library) which doesn't have the call. "
38015 "This situation unfortunately results in a segmentation fault, which is a "
38016 "shortcoming of the C dynamic linking system itself."
38020 #: ../src/guestfs.pod:1558
38022 "You can use L<dlopen(3)> to test if a function is available at run time, as "
38023 "in this example program (note that you still need the compile time check as "
38028 #: ../src/guestfs.pod:1562
38031 " #include <stdio.h>\n"
38032 " #include <stdlib.h>\n"
38033 " #include <unistd.h>\n"
38034 " #include <dlfcn.h>\n"
38035 " #include <guestfs.h>\n"
38038 " #include <stdio.h>\n"
38039 " #include <stdlib.h>\n"
38040 " #include <unistd.h>\n"
38041 " #include <dlfcn.h>\n"
38042 " #include <guestfs.h>\n"
38046 #: ../src/guestfs.pod:1568
38051 " #ifdef LIBGUESTFS_HAVE_DD\n"
38053 " int has_function;\n"
38058 " #ifdef LIBGUESTFS_HAVE_DD\n"
38060 " int has_function;\n"
38064 #: ../src/guestfs.pod:1574
38067 " /* Test if the function guestfs_dd is really available. */\n"
38068 " dl = dlopen (NULL, RTLD_LAZY);\n"
38070 " fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
38071 " exit (EXIT_FAILURE);\n"
38073 " has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
38079 #: ../src/guestfs.pod:1583
38082 " if (!has_function)\n"
38083 " printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
38085 " printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
38086 " /* Now it's safe to call\n"
38087 " guestfs_dd (g, \"foo\", \"bar\");\n"
38091 " printf (\"guestfs_dd function was not found at compile time\\n\");\n"
38098 #: ../src/guestfs.pod:1596
38100 "You may think the above is an awful lot of hassle, and it is. There are "
38101 "other ways outside of the C linking system to ensure that this kind of "
38102 "incompatibility never arises, such as using package versioning:"
38106 #: ../src/guestfs.pod:1601
38109 " Requires: libguestfs >= 1.0.80\n"
38114 #: ../src/guestfs.pod:1603
38115 msgid "CALLS WITH OPTIONAL ARGUMENTS"
38119 #: ../src/guestfs.pod:1605
38121 "A recent feature of the API is the introduction of calls which take optional "
38122 "arguments. In C these are declared 3 ways. The main way is as a call which "
38123 "takes variable arguments (ie. C<...>), as in this example:"
38127 #: ../src/guestfs.pod:1610
38130 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38133 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38137 #: ../src/guestfs.pod:1612
38139 "Call this with a list of optional arguments, terminated by C<-1>. So to "
38140 "call with no optional arguments specified:"
38144 #: ../src/guestfs.pod:1615
38147 " guestfs_add_drive_opts (g, filename, -1);\n"
38150 " guestfs_add_drive_opts (g, filename, -1);\n"
38154 #: ../src/guestfs.pod:1617
38155 msgid "With a single optional argument:"
38159 #: ../src/guestfs.pod:1619
38162 " guestfs_add_drive_opts (g, filename,\n"
38163 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38167 " guestfs_add_drive_opts (g, filename,\n"
38168 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38173 #: ../src/guestfs.pod:1623
38178 #: ../src/guestfs.pod:1625
38181 " guestfs_add_drive_opts (g, filename,\n"
38182 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38183 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38187 " guestfs_add_drive_opts (g, filename,\n"
38188 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38189 " GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38194 #: ../src/guestfs.pod:1630
38196 "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
38201 #: ../src/guestfs.pod:1633
38202 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
38206 #: ../src/guestfs.pod:1635
38208 "The second variant has the same name with the suffix C<_va>, which works the "
38209 "same way but takes a C<va_list>. See the C manual for details. For the "
38210 "example function, this is declared:"
38214 #: ../src/guestfs.pod:1639
38217 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38218 " va_list args);\n"
38221 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38222 " va_list args);\n"
38226 #: ../src/guestfs.pod:1642
38227 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
38231 #: ../src/guestfs.pod:1644
38233 "The third variant is useful where you need to construct these calls. You "
38234 "pass in a structure where you fill in the optional fields. The structure "
38235 "has a bitmask as the first element which you must set to indicate which "
38236 "fields you have filled in. For our example function the structure and call "
38241 #: ../src/guestfs.pod:1650
38244 " struct guestfs_add_drive_opts_argv {\n"
38245 " uint64_t bitmask;\n"
38247 " const char *format;\n"
38250 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38251 " const struct guestfs_add_drive_opts_argv *optargs);\n"
38254 " struct guestfs_add_drive_opts_argv {\n"
38255 " uint64_t bitmask;\n"
38257 " const char *format;\n"
38260 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38261 " const struct guestfs_add_drive_opts_argv *optargs);\n"
38265 #: ../src/guestfs.pod:1659
38266 msgid "You could call it like this:"
38270 #: ../src/guestfs.pod:1661
38273 " struct guestfs_add_drive_opts_argv optargs = {\n"
38274 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38275 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38276 " .readonly = 1,\n"
38277 " .format = \"qcow2\"\n"
38281 " struct guestfs_add_drive_opts_argv optargs = {\n"
38282 " .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38283 " GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38284 " .readonly = 1,\n"
38285 " .format = \"qcow2\"\n"
38290 #: ../src/guestfs.pod:1668
38293 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38296 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38300 #: ../src/guestfs.pod:1676
38301 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
38305 #: ../src/guestfs.pod:1681
38306 msgid "You do not need to fill in all fields of the structure."
38310 #: ../src/guestfs.pod:1685
38312 "There must be a one-to-one correspondence between fields of the structure "
38313 "that are filled in, and bits set in the bitmask."
38317 #: ../src/guestfs.pod:1690
38318 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
38322 #: ../src/guestfs.pod:1692
38324 "In other languages, optional arguments are expressed in the way that is "
38325 "natural for that language. We refer you to the language-specific "
38326 "documentation for more details on that."
38330 #: ../src/guestfs.pod:1696
38331 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
38335 #: ../src/guestfs.pod:1698
38336 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
38340 #: ../src/guestfs.pod:1700
38342 "B<Note:> This section documents the generic event mechanism introduced in "
38343 "libguestfs 1.10, which you should use in new code if possible. The old "
38344 "functions C<guestfs_set_log_message_callback>, "
38345 "C<guestfs_set_subprocess_quit_callback>, "
38346 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
38347 "C<guestfs_set_progress_callback> are no longer documented in this manual "
38348 "page. Because of the ABI guarantee, the old functions continue to work."
38352 #: ../src/guestfs.pod:1709
38354 "Handles generate events when certain things happen, such as log messages "
38355 "being generated, progress messages during long-running operations, or the "
38356 "handle being closed. The API calls described below let you register a "
38357 "callback to be called when events happen. You can register multiple "
38358 "callbacks (for the same, different or overlapping sets of events), and "
38359 "individually remove callbacks. If callbacks are not removed, then they "
38360 "remain in force until the handle is closed."
38364 #: ../src/guestfs.pod:1717
38366 "In the current implementation, events are only generated synchronously: that "
38367 "means that events (and hence callbacks) can only happen while you are in the "
38368 "middle of making another libguestfs call. The callback is called in the "
38373 #: ../src/guestfs.pod:1722
38375 "Events may contain a payload, usually nothing (void), an array of 64 bit "
38376 "unsigned integers, or a message buffer. Payloads are discussed later on."
38380 #: ../src/guestfs.pod:1726
38381 msgid "CLASSES OF EVENTS"
38385 #: ../src/guestfs.pod:1730
38386 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
38390 #: ../src/guestfs.pod:1733
38392 "The callback function will be called while the handle is being closed "
38393 "(synchronously from L</guestfs_close>)."
38397 #: ../src/guestfs.pod:1736
38399 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
38400 "handles that are open when the program exits. This means that this callback "
38401 "might be called indirectly from L<exit(3)>, which can cause unexpected "
38402 "problems in higher-level languages (eg. if your HLL interpreter has already "
38403 "been cleaned up by the time this is called, and if your callback then jumps "
38404 "into some HLL function)."
38408 #: ../src/guestfs.pod:1743
38410 "If no callback is registered: the handle is closed without any callback "
38415 #: ../src/guestfs.pod:1746
38416 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
38420 #: ../src/guestfs.pod:1749
38422 "The callback function will be called when the child process quits, either "
38423 "asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
38424 "corresponds to a transition from any state to the CONFIG state)."
38428 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
38429 msgid "If no callback is registered: the event is ignored."
38433 #: ../src/guestfs.pod:1755
38434 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
38438 #: ../src/guestfs.pod:1758
38440 "The callback function will be called when the child process becomes ready "
38441 "first time after it has been launched. (This corresponds to a transition "
38442 "from LAUNCHING to the READY state)."
38446 #: ../src/guestfs.pod:1764
38447 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
38451 #: ../src/guestfs.pod:1767
38453 "Some long-running operations can generate progress messages. If this "
38454 "callback is registered, then it will be called each time a progress message "
38455 "is generated (usually two seconds after the operation started, and three "
38456 "times per second thereafter until it completes, although the frequency may "
38457 "change in future versions)."
38461 #: ../src/guestfs.pod:1773
38463 "The callback receives in the payload four unsigned 64 bit numbers which are "
38464 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
38468 #: ../src/guestfs.pod:1776
38470 "The units of C<total> are not defined, although for some operations C<total> "
38471 "may relate in some way to the amount of data to be transferred (eg. in bytes "
38472 "or megabytes), and C<position> may be the portion which has been transferred."
38476 #: ../src/guestfs.pod:1781
38477 msgid "The only defined and stable parts of the API are:"
38481 #: ../src/guestfs.pod:1787
38483 "The callback can display to the user some type of progress bar or indicator "
38484 "which shows the ratio of C<position>:C<total>."
38488 #: ../src/guestfs.pod:1792
38489 msgid "0 E<lt>= C<position> E<lt>= C<total>"
38493 #: ../src/guestfs.pod:1796
38495 "If any progress notification is sent during a call, then a final progress "
38496 "notification is always sent when C<position> = C<total> (I<unless> the call "
38497 "fails with an error)."
38501 #: ../src/guestfs.pod:1800
38503 "This is to simplify caller code, so callers can easily set the progress "
38504 "indicator to \"100%\" at the end of the operation, without requiring special "
38505 "code to detect this case."
38509 #: ../src/guestfs.pod:1806
38511 "For some calls we are unable to estimate the progress of the call, but we "
38512 "can still generate progress messages to indicate activity. This is known as "
38513 "\"pulse mode\", and is directly supported by certain progress bar "
38514 "implementations (eg. GtkProgressBar)."
38518 #: ../src/guestfs.pod:1811
38520 "For these calls, zero or more progress messages are generated with "
38521 "C<position = 0> and C<total = 1>, followed by a final message with "
38522 "C<position = total = 1>."
38526 #: ../src/guestfs.pod:1815
38528 "As noted above, if the call fails with an error then the final message may "
38529 "not be generated."
38533 #: ../src/guestfs.pod:1820
38535 "The callback also receives the procedure number (C<proc_nr>) and serial "
38536 "number (C<serial>) of the call. These are only useful for debugging "
38537 "protocol issues, and the callback can normally ignore them. The callback "
38538 "may want to print these numbers in error messages or debugging messages."
38542 #: ../src/guestfs.pod:1826
38543 msgid "If no callback is registered: progress messages are discarded."
38547 #: ../src/guestfs.pod:1828
38548 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
38552 #: ../src/guestfs.pod:1831
38554 "The callback function is called whenever a log message is generated by qemu, "
38555 "the appliance kernel, guestfsd (daemon), or utility programs."
38559 #: ../src/guestfs.pod:1834
38561 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
38562 "guestfs_launch>) then additional debug messages are generated."
38566 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
38568 "If no callback is registered: the messages are discarded unless the verbose "
38569 "flag is set in which case they are sent to stderr. You can override the "
38570 "printing of verbose messages to stderr by setting up a callback."
38574 #: ../src/guestfs.pod:1842
38575 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
38579 #: ../src/guestfs.pod:1845
38581 "The callback function is called whenever a log message is generated by the "
38582 "library part of libguestfs."
38586 #: ../src/guestfs.pod:1848
38588 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
38589 "messages are generated."
38593 #: ../src/guestfs.pod:1856
38594 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
38598 #: ../src/guestfs.pod:1859
38600 "The callback function is called whenever a trace message is generated. This "
38601 "only applies if the trace flag (L</guestfs_set_trace>) is set."
38605 #: ../src/guestfs.pod:1862
38607 "If no callback is registered: the messages are sent to stderr. You can "
38608 "override the printing of trace messages to stderr by setting up a callback."
38612 #: ../src/guestfs.pod:1866
38613 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
38617 #: ../src/guestfs.pod:1869
38619 "The callback function is called whenever a libguestfs function is entered."
38623 #: ../src/guestfs.pod:1872
38625 "The payload is a string which contains the name of the function that we are "
38626 "entering (not including C<guestfs_> prefix)."
38630 #: ../src/guestfs.pod:1875
38632 "Note that libguestfs functions can call themselves, so you may see many "
38633 "events from a single call. A few libguestfs functions do not generate this "
38638 #: ../src/guestfs.pod:1883
38639 msgid "guestfs_set_event_callback"
38643 #: ../src/guestfs.pod:1885
38646 " int guestfs_set_event_callback (guestfs_h *g,\n"
38647 " guestfs_event_callback cb,\n"
38648 " uint64_t event_bitmask,\n"
38650 " void *opaque);\n"
38655 #: ../src/guestfs.pod:1891
38657 "This function registers a callback (C<cb>) for all event classes in the "
38658 "C<event_bitmask>."
38662 #: ../src/guestfs.pod:1894
38664 "For example, to register for all log message events, you could call this "
38665 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. "
38666 "To register a single callback for all possible classes of events, use "
38667 "C<GUESTFS_EVENT_ALL>."
38671 #: ../src/guestfs.pod:1900
38672 msgid "C<flags> should always be passed as 0."
38676 #: ../src/guestfs.pod:1902
38678 "C<opaque> is an opaque pointer which is passed to the callback. You can use "
38679 "it for any purpose."
38683 #: ../src/guestfs.pod:1905
38685 "The return value is the event handle (an integer) which you can use to "
38686 "delete the callback (see below)."
38690 #: ../src/guestfs.pod:1908
38692 "If there is an error, this function returns C<-1>, and sets the error in the "
38693 "handle in the usual way (see L</guestfs_last_error> etc.)"
38697 #: ../src/guestfs.pod:1911
38699 "Callbacks remain in effect until they are deleted, or until the handle is "
38704 #: ../src/guestfs.pod:1914
38706 "In the case where multiple callbacks are registered for a particular event "
38707 "class, all of the callbacks are called. The order in which multiple "
38708 "callbacks are called is not defined."
38712 #: ../src/guestfs.pod:1918
38713 msgid "guestfs_delete_event_callback"
38717 #: ../src/guestfs.pod:1920
38720 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
38725 #: ../src/guestfs.pod:1922
38727 "Delete a callback that was previously registered. C<event_handle> should be "
38728 "the integer that was returned by a previous call to "
38729 "C<guestfs_set_event_callback> on the same handle."
38733 #: ../src/guestfs.pod:1926
38734 msgid "guestfs_event_callback"
38738 #: ../src/guestfs.pod:1928
38741 " typedef void (*guestfs_event_callback) (\n"
38744 " uint64_t event,\n"
38745 " int event_handle,\n"
38747 " const char *buf, size_t buf_len,\n"
38748 " const uint64_t *array, size_t array_len);\n"
38753 #: ../src/guestfs.pod:1937
38755 "This is the type of the event callback function that you have to provide."
38759 #: ../src/guestfs.pod:1940
38761 "The basic parameters are: the handle (C<g>), the opaque user pointer "
38762 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
38763 "handle, and C<flags> which in the current API you should ignore."
38767 #: ../src/guestfs.pod:1944
38769 "The remaining parameters contain the event payload (if any). Each event may "
38770 "contain a payload, which usually relates to the event class, but for future "
38771 "proofing your code should be written to handle any payload for any event "
38776 #: ../src/guestfs.pod:1949
38778 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
38779 "there is no message buffer). Note that this message buffer can contain "
38780 "arbitrary 8 bit data, including NUL bytes."
38784 #: ../src/guestfs.pod:1953
38786 "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the "
38787 "moment this is only used for progress messages."
38791 #: ../src/guestfs.pod:1956
38792 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
38796 #: ../src/guestfs.pod:1958
38798 "One motivation for the generic event API was to allow GUI programs to "
38799 "capture debug and other messages. In libguestfs E<le> 1.8 these were sent "
38800 "unconditionally to C<stderr>."
38804 #: ../src/guestfs.pod:1962
38806 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
38807 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error "
38808 "messages are not events; you must capture error messages separately)."
38812 #: ../src/guestfs.pod:1967
38814 "Programs have to set up a callback to capture the classes of events of "
38819 #: ../src/guestfs.pod:1970
38823 " guestfs_set_event_callback\n"
38824 " (g, message_callback,\n"
38825 " GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
38826 " GUESTFS_EVENT_TRACE,\n"
38827 " 0, NULL) == -1)\n"
38828 " if (eh == -1) {\n"
38829 " // handle error in the usual way\n"
38835 #: ../src/guestfs.pod:1980
38837 "The callback can then direct messages to the appropriate place. In this "
38838 "example, messages are directed to syslog:"
38842 #: ../src/guestfs.pod:1983
38846 " message_callback (\n"
38849 " uint64_t event,\n"
38850 " int event_handle,\n"
38852 " const char *buf, size_t buf_len,\n"
38853 " const uint64_t *array, size_t array_len)\n"
38855 " const int priority = LOG_USER|LOG_INFO;\n"
38856 " if (buf_len > 0)\n"
38857 " syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
38863 #: ../src/guestfs.pod:1998
38864 msgid "CANCELLING LONG TRANSFERS"
38868 #: ../src/guestfs.pod:2000
38870 "Some operations can be cancelled by the caller while they are in progress. "
38871 "Currently only operations that involve uploading or downloading data can be "
38872 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
38873 "parameters in the generator)."
38877 #: ../src/guestfs.pod:2005
38878 msgid "guestfs_user_cancel"
38882 #: ../src/guestfs.pod:2007
38885 " void guestfs_user_cancel (guestfs_h *g);\n"
38890 #: ../src/guestfs.pod:2009
38892 "C<guestfs_user_cancel> cancels the current upload or download operation."
38896 #: ../src/guestfs.pod:2012
38898 "Unlike most other libguestfs calls, this function is signal safe and thread "
38899 "safe. You can call it from a signal handler or from another thread, without "
38900 "needing to do any locking."
38904 #: ../src/guestfs.pod:2016
38906 "The transfer that was in progress (if there is one) will stop shortly "
38907 "afterwards, and will return an error. The errno (see L</"
38908 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
38909 "out if the operation was cancelled or failed because of another error."
38913 #: ../src/guestfs.pod:2022
38915 "No cleanup is performed: for example, if a file was being uploaded then "
38916 "after cancellation there may be a partially uploaded file. It is the "
38917 "caller's responsibility to clean up if necessary."
38921 #: ../src/guestfs.pod:2026
38922 msgid "There are two common places that you might call C<guestfs_user_cancel>."
38926 #: ../src/guestfs.pod:2028
38928 "In an interactive text-based program, you might call it from a C<SIGINT> "
38929 "signal handler so that pressing C<^C> cancels the current operation. (You "
38930 "also need to call L</guestfs_set_pgroup> so that child processes don't "
38931 "receive the C<^C> signal)."
38935 #: ../src/guestfs.pod:2033
38937 "In a graphical program, when the main thread is displaying a progress bar "
38938 "with a cancel button, wire up the cancel button to call this function."
38942 #: ../src/guestfs.pod:2037
38943 msgid "PRIVATE DATA AREA"
38947 #: ../src/guestfs.pod:2039
38949 "You can attach named pieces of private data to the libguestfs handle, fetch "
38950 "them by name, and walk over them, for the lifetime of the handle. This is "
38951 "called the private data area and is only available from the C API."
38955 #: ../src/guestfs.pod:2044
38956 msgid "To attach a named piece of data, use the following call:"
38960 #: ../src/guestfs.pod:2046
38963 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38966 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38970 #: ../src/guestfs.pod:2048
38972 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
38973 "pointer (which can be C<NULL>). Any previous item with the same key is "
38978 #: ../src/guestfs.pod:2052
38980 "You can use any C<key> you want, but your key should I<not> start with an "
38981 "underscore character. Keys beginning with an underscore character are "
38982 "reserved for internal libguestfs purposes (eg. for implementing language "
38983 "bindings). It is recommended that you prefix the key with some unique "
38984 "string to avoid collisions with other users."
38988 #: ../src/guestfs.pod:2058
38989 msgid "To retrieve the pointer, use:"
38993 #: ../src/guestfs.pod:2060
38996 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38999 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39003 #: ../src/guestfs.pod:2062
39005 "This function returns C<NULL> if either no data is found associated with "
39006 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
39011 #: ../src/guestfs.pod:2066
39013 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
39014 "way. As far as libguestfs is concerned, it need not be a valid pointer at "
39015 "all. In particular, libguestfs does I<not> try to free the data when the "
39016 "handle is closed. If the data must be freed, then the caller must either "
39017 "free it before calling L</guestfs_close> or must set up a close callback to "
39018 "do it (see L</GUESTFS_EVENT_CLOSE>)."
39022 #: ../src/guestfs.pod:2073
39023 msgid "To walk over all entries, use these two functions:"
39027 #: ../src/guestfs.pod:2075
39030 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
39035 #: ../src/guestfs.pod:2077
39038 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
39043 #: ../src/guestfs.pod:2079
39045 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
39046 "not have any particular meaning -- keys are not returned in any defined "
39047 "order). A pointer to the key is returned in C<*key_rtn> and the "
39048 "corresponding data pointer is returned from the function. C<NULL> is "
39049 "returned if there are no keys stored in the handle."
39053 #: ../src/guestfs.pod:2085
39055 "C<guestfs_next_private> returns the next key, pointer pair. The return "
39056 "value of this function is also C<NULL> is there are no further entries to "
39061 #: ../src/guestfs.pod:2089
39062 msgid "Notes about walking over entries:"
39066 #: ../src/guestfs.pod:2095
39068 "You must not call C<guestfs_set_private> while walking over the entries."
39072 #: ../src/guestfs.pod:2100
39074 "The handle maintains an internal iterator which is reset when you call "
39075 "C<guestfs_first_private>. This internal iterator is invalidated when you "
39076 "call C<guestfs_set_private>."
39080 #: ../src/guestfs.pod:2106
39081 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
39085 #: ../src/guestfs.pod:2108
39088 " guestfs_set_private (g, key, NULL);\n"
39093 #: ../src/guestfs.pod:2110
39094 msgid "then that C<key> is not returned when walking."
39098 #: ../src/guestfs.pod:2114
39100 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
39101 "C<guestfs_next_private> or C<guestfs_set_private>."
39105 #: ../src/guestfs.pod:2120
39107 "The following example code shows how to print all keys and data pointers "
39108 "that are associated with the handle C<g>:"
39112 #: ../src/guestfs.pod:2123
39115 " const char *key;\n"
39116 " void *data = guestfs_first_private (g, &key);\n"
39117 " while (data != NULL)\n"
39119 " printf (\"key = %s, data = %p\\n\", key, data);\n"
39120 " data = guestfs_next_private (g, &key);\n"
39126 #: ../src/guestfs.pod:2131
39128 "More commonly you are only interested in keys that begin with an application-"
39129 "specific prefix C<foo_>. Modify the loop like so:"
39133 #: ../src/guestfs.pod:2134
39136 " const char *key;\n"
39137 " void *data = guestfs_first_private (g, &key);\n"
39138 " while (data != NULL)\n"
39140 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39141 " printf (\"key = %s, data = %p\\n\", key, data);\n"
39142 " data = guestfs_next_private (g, &key);\n"
39148 #: ../src/guestfs.pod:2143
39150 "If you need to modify keys while walking, then you have to jump back to the "
39151 "beginning of the loop. For example, to delete all keys prefixed with "
39156 #: ../src/guestfs.pod:2147
39159 " const char *key;\n"
39162 " data = guestfs_first_private (g, &key);\n"
39163 " while (data != NULL)\n"
39165 " if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39167 " guestfs_set_private (g, key, NULL);\n"
39168 " /* note that 'key' pointer is now invalid, and so is\n"
39169 " the internal iterator */\n"
39172 " data = guestfs_next_private (g, &key);\n"
39178 #: ../src/guestfs.pod:2163
39180 "Note that the above loop is guaranteed to terminate because the keys are "
39181 "being deleted, but other manipulations of keys within the loop might not "
39182 "terminate unless you also maintain an indication of which keys have been "
39187 #: ../src/guestfs.pod:2168
39189 #| msgid "FILESYSTEM TYPE"
39191 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
39194 #: ../src/guestfs.pod:2170
39196 "The libguestfs C library can be probed using systemtap or DTrace. This is "
39197 "true of any library, not just libguestfs. However libguestfs also contains "
39198 "static markers to help in probing internal operations."
39202 #: ../src/guestfs.pod:2174
39203 msgid "You can list all the static markers by doing:"
39207 #: ../src/guestfs.pod:2176
39210 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
39211 " .provider(\"guestfs\").mark(\"*\")'\n"
39216 #: ../src/guestfs.pod:2179
39218 "B<Note:> These static markers are I<not> part of the stable API and may "
39219 "change in future versions."
39223 #: ../src/guestfs.pod:2182
39224 msgid "SYSTEMTAP SCRIPT EXAMPLE"
39228 #: ../src/guestfs.pod:2184
39230 "This script contains examples of displaying both the static markers and some "
39231 "ordinary C entry points:"
39235 #: ../src/guestfs.pod:2187
39243 #: ../src/guestfs.pod:2189
39246 " function display_time () {\n"
39247 " now = gettimeofday_us ();\n"
39250 " delta = now - last;\n"
39256 #: ../src/guestfs.pod:2196
39259 " printf (\"%d (+%d):\", now, delta);\n"
39265 #: ../src/guestfs.pod:2199
39270 " printf (\"ready\\n\");\n"
39276 #: ../src/guestfs.pod:2204
39279 " /* Display all calls to static markers. */\n"
39280 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39281 " .provider(\"guestfs\").mark(\"*\") ? {\n"
39282 " display_time();\n"
39283 " printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
39289 #: ../src/guestfs.pod:2211
39292 " /* Display all calls to guestfs_mkfs* functions. */\n"
39293 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39294 " .function(\"guestfs_mkfs*\") ? {\n"
39295 " display_time();\n"
39296 " printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
39302 #: ../src/guestfs.pod:2218
39304 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
39305 "program. Note that you either have to be root, or you have to add yourself "
39306 "to several special stap groups. Consult the systemtap documentation for "
39307 "more information."
39311 #: ../src/guestfs.pod:2223
39314 " # stap /tmp/test.stap\n"
39320 #: ../src/guestfs.pod:2226
39321 msgid "In another terminal, run a guestfish command such as this:"
39325 #: ../src/guestfs.pod:2230
39326 msgid "In the first terminal, stap trace output similar to this is shown:"
39330 #: ../src/guestfs.pod:2232
39333 " 1318248056692655 (+0):\tlaunch_start\n"
39334 " 1318248056692850 (+195): launch_build_appliance_start\n"
39335 " 1318248056818285 (+125435): launch_build_appliance_end\n"
39336 " 1318248056838059 (+19774): launch_run_qemu\n"
39337 " 1318248061071167 (+4233108): launch_end\n"
39338 " 1318248061280324 (+209157): guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
39343 #: ../src/guestfs.pod:2239 ../src/guestfs.pod:2244
39348 #: ../src/guestfs.pod:2241
39350 "<!-- old anchor for the next section --> <a name="
39351 "\"state_machine_and_low_level_event_api\"/>"
39353 "<!-- old anchor for the next section --> <a name="
39354 "\"state_machine_and_low_level_event_api\"/>"
39357 #: ../src/guestfs.pod:2246
39358 msgid "ARCHITECTURE"
39359 msgstr "АРХІТЕКТУРА"
39362 #: ../src/guestfs.pod:2248
39364 "Internally, libguestfs is implemented by running an appliance (a special "
39365 "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child "
39366 "process of the main program."
39370 #: ../src/guestfs.pod:2252
39373 " ___________________\n"
39375 " | main program |\n"
39377 " | | child process / appliance\n"
39378 " | | __________________________\n"
39380 " +-------------------+ RPC | +-----------------+ |\n"
39381 " | libguestfs <--------------------> guestfsd | |\n"
39382 " | | | +-----------------+ |\n"
39383 " \\___________________/ | | Linux kernel | |\n"
39384 " | +--^--------------+ |\n"
39385 " \\_________|________________/\n"
39387 " _______v______\n"
39390 " | disk image |\n"
39391 " \\______________/\n"
39396 #: ../src/guestfs.pod:2272
39398 "The library, linked to the main program, creates the child process and hence "
39399 "the appliance in the L</guestfs_launch> function."
39403 #: ../src/guestfs.pod:2275
39405 "Inside the appliance is a Linux kernel and a complete stack of userspace "
39406 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
39407 "L</guestfsd>. The library talks to L</guestfsd> using remote procedure "
39408 "calls (RPC). There is a mostly one-to-one correspondence between libguestfs "
39409 "API calls and RPC calls to the daemon. Lastly the disk image(s) are "
39410 "attached to the qemu process which translates device access by the "
39411 "appliance's Linux kernel into accesses to the image."
39415 #: ../src/guestfs.pod:2284
39417 "A common misunderstanding is that the appliance \"is\" the virtual machine. "
39418 "Although the disk image you are attached to might also be used by some "
39419 "virtual machine, libguestfs doesn't know or care about this. (But you will "
39420 "care if both libguestfs's qemu process and your virtual machine are trying "
39421 "to update the disk image at the same time, since these usually results in "
39422 "massive disk corruption)."
39426 #: ../src/guestfs.pod:2291
39427 msgid "STATE MACHINE"
39428 msgstr "СКІНЧЕННИЙ АВТОМАТ"
39431 #: ../src/guestfs.pod:2293
39432 msgid "libguestfs uses a state machine to model the child process:"
39436 #: ../src/guestfs.pod:2295
39440 " guestfs_create\n"
39448 " / | \\ \\ guestfs_launch\n"
39449 " / | _\\__V______\n"
39451 " / | | LAUNCHING |\n"
39452 " / | \\___________/\n"
39454 " / | guestfs_launch\n"
39456 " ______ / __|____V\n"
39457 " / \\ ------> / \\\n"
39458 " | BUSY | | READY |\n"
39459 " \\______/ <------ \\________/\n"
39464 #: ../src/guestfs.pod:2317
39466 "The normal transitions are (1) CONFIG (when the handle is created, but there "
39467 "is no child process), (2) LAUNCHING (when the child process is booting up), "
39468 "(3) alternating between READY and BUSY as commands are issued to, and "
39469 "carried out by, the child process."
39473 #: ../src/guestfs.pod:2322
39475 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
39476 "asynchronously at any time (eg. due to some internal error), and that causes "
39477 "the state to transition back to CONFIG."
39481 #: ../src/guestfs.pod:2326
39483 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
39484 "issued when in the CONFIG state."
39488 #: ../src/guestfs.pod:2329
39490 "The API offers one call that goes from CONFIG through LAUNCHING to READY. "
39491 "L</guestfs_launch> blocks until the child process is READY to accept "
39492 "commands (or until some failure or timeout). L</guestfs_launch> internally "
39493 "moves the state from CONFIG to LAUNCHING while it is running."
39497 #: ../src/guestfs.pod:2335
39499 "API actions such as L</guestfs_mount> can only be issued when in the READY "
39500 "state. These API calls block waiting for the command to be carried out (ie. "
39501 "the state to transition to BUSY and then back to READY). There are no non-"
39502 "blocking versions, and no way to issue more than one command per handle at "
39507 #: ../src/guestfs.pod:2341
39509 "Finally, the child process sends asynchronous messages back to the main "
39510 "program, such as kernel log messages. You can register a callback to "
39511 "receive these messages."
39515 #: ../src/guestfs.pod:2345
39520 #: ../src/guestfs.pod:2347
39521 msgid "APPLIANCE BOOT PROCESS"
39525 #: ../src/guestfs.pod:2349
39527 "This process has evolved and continues to evolve. The description here "
39528 "corresponds only to the current version of libguestfs and is provided for "
39529 "information only."
39533 #: ../src/guestfs.pod:2353
39535 "In order to follow the stages involved below, enable libguestfs debugging "
39536 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
39540 #: ../src/guestfs.pod:2358
39542 #| msgid "C<appliance>"
39543 msgid "Create the appliance"
39544 msgstr "C<appliance>"
39547 #: ../src/guestfs.pod:2360
39549 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
39550 "initrd and the appliance."
39554 #: ../src/guestfs.pod:2363
39556 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
39557 "directory if C<TMPDIR> is set)."
39561 #: ../src/guestfs.pod:2366
39563 "For a complete description of how the appliance is created and cached, read "
39564 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
39568 #: ../src/guestfs.pod:2370
39569 msgid "Start qemu and boot the kernel"
39573 #: ../src/guestfs.pod:2372
39574 msgid "qemu is invoked to boot the kernel."
39578 #: ../src/guestfs.pod:2374
39579 msgid "Run the initrd"
39583 #: ../src/guestfs.pod:2376
39585 "C<febootstrap-supermin-helper> builds a small initrd. The initrd is not the "
39586 "appliance. The purpose of the initrd is to load enough kernel modules in "
39587 "order that the appliance itself can be mounted and started."
39591 #: ../src/guestfs.pod:2380
39593 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
39598 #: ../src/guestfs.pod:2383
39600 "When the initrd has started you will see messages showing that kernel "
39601 "modules are being loaded, similar to this:"
39605 #: ../src/guestfs.pod:2386
39608 " febootstrap: ext2 mini initrd starting up\n"
39609 " febootstrap: mounting /sys\n"
39610 " febootstrap: internal insmod libcrc32c.ko\n"
39611 " febootstrap: internal insmod crc32c-intel.ko\n"
39616 #: ../src/guestfs.pod:2391
39617 msgid "Find and mount the appliance device"
39621 #: ../src/guestfs.pod:2393
39623 "The appliance is a sparse file containing an ext2 filesystem which contains "
39624 "a familiar (although reduced in size) Linux operating system. It would "
39625 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
39629 #: ../src/guestfs.pod:2397
39631 "The regular disks being inspected by libguestfs are the first devices "
39632 "exposed by qemu (eg. as C</dev/vda>)."
39636 #: ../src/guestfs.pod:2400
39638 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
39639 "there was only one regular disk)."
39643 #: ../src/guestfs.pod:2403
39645 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
39646 "and switch root into the appliance, and run C</init> from the appliance."
39650 #: ../src/guestfs.pod:2407
39651 msgid "If this works successfully you will see messages such as:"
39655 #: ../src/guestfs.pod:2409
39658 " febootstrap: picked /sys/block/vdb/dev as root device\n"
39659 " febootstrap: creating /dev/root as block special 252:16\n"
39660 " febootstrap: mounting new root on /root\n"
39661 " febootstrap: chroot\n"
39662 " Starting /init script ...\n"
39667 #: ../src/guestfs.pod:2415
39669 "Note that C<Starting /init script ...> indicates that the appliance's init "
39670 "script is now running."
39674 #: ../src/guestfs.pod:2418
39675 msgid "Initialize the appliance"
39679 #: ../src/guestfs.pod:2420
39681 "The appliance itself now initializes itself. This involves starting certain "
39682 "processes like C<udev>, possibly printing some debug information, and "
39683 "finally running the daemon (C<guestfsd>)."
39687 #: ../src/guestfs.pod:2424
39689 #| msgid "C<daemon>"
39694 #: ../src/guestfs.pod:2426
39696 "Finally the daemon (C<guestfsd>) runs inside the appliance. If it runs you "
39701 #: ../src/guestfs.pod:2429
39704 #| " set-verbose true|false\n"
39707 " verbose daemon enabled\n"
39710 " set-verbose true|false\n"
39714 #: ../src/guestfs.pod:2431
39716 "The daemon expects to see a named virtio-serial port exposed by qemu and "
39717 "connected on the other end to the library."
39721 #: ../src/guestfs.pod:2434
39723 "The daemon connects to this port (and hence to the library) and sends a four "
39724 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
39725 "protocol (see below)."
39729 #: ../src/guestfs.pod:2440
39730 msgid "COMMUNICATION PROTOCOL"
39734 #: ../src/guestfs.pod:2442
39736 "Don't rely on using this protocol directly. This section documents how it "
39737 "currently works, but it may change at any time."
39741 #: ../src/guestfs.pod:2445
39743 "The protocol used to talk between the library and the daemon running inside "
39744 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
39745 "1014, RFC 1832, RFC 4506)."
39749 #: ../src/guestfs.pod:2449
39751 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
39752 "this file is automatically generated)."
39756 #: ../src/guestfs.pod:2452
39758 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
39759 "and C<FileOut> parameters, which are handled with very simple request/reply "
39760 "messages. Then there are functions that have any C<FileIn> or C<FileOut> "
39761 "parameters, which use the same request and reply messages, but they may also "
39762 "be followed by files sent using a chunked encoding."
39766 #: ../src/guestfs.pod:2459
39767 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
39771 #: ../src/guestfs.pod:2461
39772 msgid "For ordinary functions, the request message is:"
39776 #: ../src/guestfs.pod:2463
39779 " total length (header + arguments,\n"
39780 " but not including the length word itself)\n"
39781 " struct guestfs_message_header (encoded as XDR)\n"
39782 " struct guestfs_<foo>_args (encoded as XDR)\n"
39787 #: ../src/guestfs.pod:2468
39789 "The total length field allows the daemon to allocate a fixed size buffer "
39790 "into which it slurps the rest of the message. As a result, the total length "
39791 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
39792 "effective size of any request is limited to somewhere under this size."
39796 #: ../src/guestfs.pod:2474
39798 "Note also that many functions don't take any arguments, in which case the "
39799 "C<guestfs_I<foo>_args> is completely omitted."
39803 #: ../src/guestfs.pod:2477
39805 "The header contains the procedure number (C<guestfs_proc>) which is how the "
39806 "receiver knows what type of args structure to expect, or none at all."
39810 #: ../src/guestfs.pod:2481
39812 "For functions that take optional arguments, the optional arguments are "
39813 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
39814 "arguments. A bitmask in the header indicates which optional arguments are "
39815 "meaningful. The bitmask is also checked to see if it contains bits set "
39816 "which the daemon does not know about (eg. if more optional arguments were "
39817 "added in a later version of the library), and this causes the call to be "
39822 #: ../src/guestfs.pod:2489
39823 msgid "The reply message for ordinary functions is:"
39827 #: ../src/guestfs.pod:2491
39830 " total length (header + ret,\n"
39831 " but not including the length word itself)\n"
39832 " struct guestfs_message_header (encoded as XDR)\n"
39833 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39838 #: ../src/guestfs.pod:2496
39840 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
39841 "functions that return no formal return values."
39845 #: ../src/guestfs.pod:2499
39847 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
39851 #: ../src/guestfs.pod:2502
39853 "In the case of an error, a flag is set in the header, and the reply message "
39854 "is slightly changed:"
39858 #: ../src/guestfs.pod:2505
39861 " total length (header + error,\n"
39862 " but not including the length word itself)\n"
39863 " struct guestfs_message_header (encoded as XDR)\n"
39864 " struct guestfs_message_error (encoded as XDR)\n"
39869 #: ../src/guestfs.pod:2510
39871 "The C<guestfs_message_error> structure contains the error message as a "
39876 #: ../src/guestfs.pod:2513
39877 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
39881 #: ../src/guestfs.pod:2515
39883 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. "
39884 "The normal request message is sent (see above). However this is followed by "
39885 "a sequence of file chunks."
39889 #: ../src/guestfs.pod:2519
39892 " total length (header + arguments,\n"
39893 " but not including the length word itself,\n"
39894 " and not including the chunks)\n"
39895 " struct guestfs_message_header (encoded as XDR)\n"
39896 " struct guestfs_<foo>_args (encoded as XDR)\n"
39897 " sequence of chunks for FileIn param #0\n"
39898 " sequence of chunks for FileIn param #1 etc.\n"
39903 #: ../src/guestfs.pod:2527
39904 msgid "The \"sequence of chunks\" is:"
39908 #: ../src/guestfs.pod:2529
39911 " length of chunk (not including length word itself)\n"
39912 " struct guestfs_chunk (encoded as XDR)\n"
39913 " length of chunk\n"
39914 " struct guestfs_chunk (encoded as XDR)\n"
39916 " length of chunk\n"
39917 " struct guestfs_chunk (with data.data_len == 0)\n"
39922 #: ../src/guestfs.pod:2537
39924 "The final chunk has the C<data_len> field set to zero. Additionally a flag "
39925 "is set in the final chunk to indicate either successful completion or early "
39930 #: ../src/guestfs.pod:2541
39932 "At time of writing there are no functions that have more than one FileIn "
39933 "parameter. However this is (theoretically) supported, by sending the "
39934 "sequence of chunks for each FileIn parameter one after another (from left to "
39939 #: ../src/guestfs.pod:2546
39941 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
39942 "transfer. The library does this by sending a chunk with a special flag set "
39943 "to indicate cancellation. When the daemon sees this, it cancels the whole "
39944 "RPC, does I<not> send any reply, and goes back to reading the next request."
39948 #: ../src/guestfs.pod:2552
39950 "The daemon may also cancel. It does this by writing a special word "
39951 "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during "
39952 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
39953 "cancel chunk). The special word is chosen so that even if cancellation "
39954 "happens right at the end of the transfer (after the library has finished "
39955 "writing and has started listening for the reply), the \"spurious\" cancel "
39956 "flag will not be confused with the reply message."
39960 #: ../src/guestfs.pod:2561
39962 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
39963 "limit), and also files where the size is not known in advance (eg. from "
39964 "pipes or sockets). However the chunks are rather small "
39965 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
39966 "to keep much in memory."
39970 #: ../src/guestfs.pod:2567
39971 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
39975 #: ../src/guestfs.pod:2569
39977 "The protocol for FileOut parameters is exactly the same as for FileIn "
39978 "parameters, but with the roles of daemon and library reversed."
39982 #: ../src/guestfs.pod:2572
39985 " total length (header + ret,\n"
39986 " but not including the length word itself,\n"
39987 " and not including the chunks)\n"
39988 " struct guestfs_message_header (encoded as XDR)\n"
39989 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39990 " sequence of chunks for FileOut param #0\n"
39991 " sequence of chunks for FileOut param #1 etc.\n"
39996 #: ../src/guestfs.pod:2580
39997 msgid "INITIAL MESSAGE"
40001 #: ../src/guestfs.pod:2582
40003 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
40004 "which indicates that the guest and daemon is alive. This is what L</"
40005 "guestfs_launch> waits for."
40009 #: ../src/guestfs.pod:2586
40010 msgid "PROGRESS NOTIFICATION MESSAGES"
40014 #: ../src/guestfs.pod:2588
40016 "The daemon may send progress notification messages at any time. These are "
40017 "distinguished by the normal length word being replaced by "
40018 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
40022 #: ../src/guestfs.pod:2592
40024 "The library turns them into progress callbacks (see L</"
40025 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
40030 #: ../src/guestfs.pod:2596
40032 "The daemon self-limits the frequency of progress messages it sends (see "
40033 "C<daemon/proto.c:notify_progress>). Not all calls generate progress "
40038 #: ../src/guestfs.pod:2600
40039 msgid "LIBGUESTFS VERSION NUMBERS"
40043 #: ../src/guestfs.pod:2602
40045 "Since April 2010, libguestfs has started to make separate development and "
40046 "stable releases, along with corresponding branches in our git repository. "
40047 "These separate releases can be identified by version number:"
40051 #: ../src/guestfs.pod:2607
40054 " even numbers for stable: 1.2.x, 1.4.x, ...\n"
40055 " .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
40061 " | `-------- sub-version\n"
40063 " `------ always '1' because we don't change the ABI\n"
40068 #: ../src/guestfs.pod:2618
40069 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
40073 #: ../src/guestfs.pod:2620
40075 "As time passes we cherry pick fixes from the development branch and backport "
40076 "those into the stable branch, the effect being that the stable branch should "
40077 "get more stable and less buggy over time. So the stable releases are ideal "
40078 "for people who don't need new features but would just like the software to "
40083 #: ../src/guestfs.pod:2626
40084 msgid "Our criteria for backporting changes are:"
40088 #: ../src/guestfs.pod:2632
40090 "Documentation changes which don't affect any code are backported unless the "
40091 "documentation refers to a future feature which is not in stable."
40095 #: ../src/guestfs.pod:2638
40097 "Bug fixes which are not controversial, fix obvious problems, and have been "
40098 "well tested are backported."
40102 #: ../src/guestfs.pod:2643
40104 "Simple rearrangements of code which shouldn't affect how it works get "
40105 "backported. This is so that the code in the two branches doesn't get too "
40106 "far out of step, allowing us to backport future fixes more easily."
40110 #: ../src/guestfs.pod:2649
40112 "We I<don't> backport new features, new APIs, new tools etc, except in one "
40113 "exceptional case: the new feature is required in order to implement an "
40114 "important bug fix."
40118 #: ../src/guestfs.pod:2655
40120 "A new stable branch starts when we think the new features in development are "
40121 "substantial and compelling enough over the current stable branch to warrant "
40122 "it. When that happens we create new stable and development versions 1.N.0 "
40123 "and 1.(N+1).0 [N is even]. The new dot-oh release won't necessarily be so "
40124 "stable at this point, but by backporting fixes from development, that branch "
40125 "will stabilize over time."
40129 #: ../src/guestfs.pod:2663
40130 msgid "EXTENDING LIBGUESTFS"
40134 #: ../src/guestfs.pod:2665
40135 msgid "ADDING A NEW API ACTION"
40139 #: ../src/guestfs.pod:2667
40141 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
40142 "documentation) are generated, and this makes it easy to extend the "
40147 #: ../src/guestfs.pod:2671
40148 msgid "To add a new API action there are two changes:"
40152 #: ../src/guestfs.pod:2677
40154 "You need to add a description of the call (name, parameters, return type, "
40155 "tests, documentation) to C<generator/generator_actions.ml>."
40159 #: ../src/guestfs.pod:2680
40161 "There are two sorts of API action, depending on whether the call goes "
40162 "through to the daemon in the appliance, or is serviced entirely by the "
40163 "library (see L</ARCHITECTURE> above). L</guestfs_sync> is an example of the "
40164 "former, since the sync is done in the appliance. L</guestfs_set_trace> is "
40165 "an example of the latter, since a trace flag is maintained in the handle and "
40166 "all tracing is done on the library side."
40170 #: ../src/guestfs.pod:2688
40172 "Most new actions are of the first type, and get added to the "
40173 "C<daemon_functions> list. Each function has a unique procedure number used "
40174 "in the RPC protocol which is assigned to that action when we publish "
40175 "libguestfs and cannot be reused. Take the latest procedure number and "
40180 #: ../src/guestfs.pod:2694
40182 "For library-only actions of the second type, add to the "
40183 "C<non_daemon_functions> list. Since these functions are serviced by the "
40184 "library and do not travel over the RPC mechanism to the daemon, these "
40185 "functions do not need a procedure number, and so the procedure number is set "
40190 #: ../src/guestfs.pod:2702
40191 msgid "Implement the action (in C):"
40195 #: ../src/guestfs.pod:2704
40197 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
40198 "C<daemon/> directory."
40202 #: ../src/guestfs.pod:2707
40204 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
40205 "(note: double underscore) in the C<src/> directory."
40209 #: ../src/guestfs.pod:2710
40210 msgid "In either case, use another function as an example of what to do."
40214 #: ../src/guestfs.pod:2714
40215 msgid "After making these changes, use C<make> to compile."
40219 #: ../src/guestfs.pod:2716
40221 "Note that you don't need to implement the RPC, language bindings, manual "
40222 "pages or anything else. It's all automatically generated from the OCaml "
40227 #: ../src/guestfs.pod:2720
40228 msgid "ADDING TESTS FOR AN API ACTION"
40232 #: ../src/guestfs.pod:2722
40234 "You can supply zero or as many tests as you want per API call. The tests "
40235 "can either be added as part of the API description (C<generator/"
40236 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
40237 "into C<regressions/>. Note that adding a script to C<regressions/> is "
40238 "slower, so if possible use the first method."
40242 #: ../src/guestfs.pod:2728
40244 "The following describes the test environment used when you add an API test "
40245 "in C<generator_actions.ml>."
40249 #: ../src/guestfs.pod:2731
40250 msgid "The test environment has 4 block devices:"
40254 #: ../src/guestfs.pod:2735
40255 msgid "C</dev/sda> 500MB"
40256 msgstr "C</dev/sda> 500 МБ"
40259 #: ../src/guestfs.pod:2737
40260 msgid "General block device for testing."
40264 #: ../src/guestfs.pod:2739
40265 msgid "C</dev/sdb> 50MB"
40266 msgstr "C</dev/sdb> 50 МБ"
40269 #: ../src/guestfs.pod:2741
40271 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
40276 #: ../src/guestfs.pod:2744
40277 msgid "C</dev/sdc> 10MB"
40278 msgstr "C</dev/sdc> 10 МБ"
40281 #: ../src/guestfs.pod:2746
40282 msgid "Used in a few tests where two block devices are needed."
40286 #: ../src/guestfs.pod:2748
40287 msgid "C</dev/sdd>"
40288 msgstr "C</dev/sdd>"
40291 #: ../src/guestfs.pod:2750
40292 msgid "ISO with fixed content (see C<images/test.iso>)."
40296 #: ../src/guestfs.pod:2754
40298 "To be able to run the tests in a reasonable amount of time, the libguestfs "
40299 "appliance and block devices are reused between tests. So don't try testing "
40300 "L</guestfs_kill_subprocess> :-x"
40304 #: ../src/guestfs.pod:2758
40306 "Each test starts with an initial scenario, selected using one of the "
40307 "C<Init*> expressions, described in C<generator/generator_types.ml>. These "
40308 "initialize the disks mentioned above in a particular way as documented in "
40309 "C<generator_types.ml>. You should not assume anything about the previous "
40310 "contents of other disks that are not initialized."
40314 #: ../src/guestfs.pod:2764
40316 "You can add a prerequisite clause to any individual test. This is a run-"
40317 "time check, which, if it fails, causes the test to be skipped. Useful if "
40318 "testing a command which might not work on all variations of libguestfs "
40319 "builds. A test that has prerequisite of C<Always> means to run "
40324 #: ../src/guestfs.pod:2770
40326 "In addition, packagers can skip individual tests by setting environment "
40327 "variables before running C<make check>."
40331 #: ../src/guestfs.pod:2773
40334 " SKIP_TEST_<CMD>_<NUM>=1\n"
40339 #: ../src/guestfs.pod:2775
40340 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
40344 #: ../src/guestfs.pod:2777
40349 #: ../src/guestfs.pod:2779
40352 " SKIP_TEST_<CMD>=1\n"
40357 #: ../src/guestfs.pod:2781
40358 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
40362 #: ../src/guestfs.pod:2783
40363 msgid "Packagers can run only certain tests by setting for example:"
40367 #: ../src/guestfs.pod:2785
40370 " TEST_ONLY=\"vfs_type zerofree\"\n"
40375 #: ../src/guestfs.pod:2787
40377 "See C<capitests/tests.c> for more details of how these environment variables "
40382 #: ../src/guestfs.pod:2790
40383 msgid "DEBUGGING NEW API ACTIONS"
40387 #: ../src/guestfs.pod:2792
40388 msgid "Test new actions work before submitting them."
40392 #: ../src/guestfs.pod:2794
40393 msgid "You can use guestfish to try out new commands."
40397 #: ../src/guestfs.pod:2796
40399 "Debugging the daemon is a problem because it runs inside a minimal "
40400 "environment. However you can fprintf messages in the daemon to stderr, and "
40401 "they will show up if you use C<guestfish -v>."
40405 #: ../src/guestfs.pod:2800
40406 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
40410 #: ../src/guestfs.pod:2802
40412 "Our C source code generally adheres to some basic code-formatting "
40413 "conventions. The existing code base is not totally consistent on this "
40414 "front, but we do prefer that contributed code be formatted similarly. In "
40415 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
40416 "indentation level, and other than that, follow the K&R style."
40420 #: ../src/guestfs.pod:2808
40422 "If you use Emacs, add the following to one of one of your start-up files (e."
40423 "g., ~/.emacs), to help ensure that you get indentation right:"
40427 #: ../src/guestfs.pod:2811
40430 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
40431 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
40432 " (add-hook 'find-file-hook\n"
40433 " '(lambda () (if (and buffer-file-name\n"
40434 " (string-match \"/libguestfs\\\\>\"\n"
40435 " (buffer-file-name))\n"
40436 " (not (string-equal mode-name \"Change Log\"))\n"
40437 " (not (string-equal mode-name \"Makefile\")))\n"
40438 " (setq indent-tabs-mode nil))))\n"
40443 #: ../src/guestfs.pod:2821
40446 " ;;; When editing C sources in libguestfs, use this style.\n"
40447 " (defun libguestfs-c-mode ()\n"
40448 " \"C mode with adjusted defaults for use with libguestfs.\"\n"
40450 " (c-set-style \"K&R\")\n"
40451 " (setq c-indent-level 2)\n"
40452 " (setq c-basic-offset 2))\n"
40453 " (add-hook 'c-mode-hook\n"
40454 " '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
40455 " (buffer-file-name))\n"
40456 " (libguestfs-c-mode))))\n"
40461 #: ../src/guestfs.pod:2833
40462 msgid "Enable warnings when compiling (and fix any problems this finds):"
40466 #: ../src/guestfs.pod:2836
40469 " ./configure --enable-gcc-warnings\n"
40472 " ./configure --enable-gcc-warnings\n"
40476 #: ../src/guestfs.pod:2838
40477 msgid "Useful targets are:"
40481 #: ../src/guestfs.pod:2840
40484 " make syntax-check # checks the syntax of the C code\n"
40485 " make check # runs the test suite\n"
40490 #: ../src/guestfs.pod:2843
40491 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
40495 #: ../src/guestfs.pod:2845
40497 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
40498 "which are used to do shell quoting."
40502 #: ../src/guestfs.pod:2850
40507 #: ../src/guestfs.pod:2852
40509 "Simple shell quoted string. Any spaces or other shell characters are "
40514 #: ../src/guestfs.pod:2855
40519 #: ../src/guestfs.pod:2857
40521 "Same as C<%Q> except the string is treated as a path which is prefixed by "
40526 #: ../src/guestfs.pod:2864
40529 " asprintf (&cmd, \"cat %R\", path);\n"
40534 #: ../src/guestfs.pod:2866
40535 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
40539 #: ../src/guestfs.pod:2868
40541 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
40542 "{,r,v,rv}()> functions. These parameters do NOT need to be quoted because "
40543 "they are not passed via the shell (instead, straight to exec). You probably "
40544 "want to use the C<sysroot_path()> function however."
40548 #: ../src/guestfs.pod:2874
40549 msgid "SUBMITTING YOUR NEW API ACTIONS"
40553 #: ../src/guestfs.pod:2876
40555 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
40556 "libguestfs> and CC to L<rjones@redhat.com>."
40560 #: ../src/guestfs.pod:2880
40561 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
40565 #: ../src/guestfs.pod:2882
40566 msgid "We support i18n (gettext anyhow) in the library."
40570 #: ../src/guestfs.pod:2884
40572 "However many messages come from the daemon, and we don't translate those at "
40573 "the moment. One reason is that the appliance generally has all locale files "
40574 "removed from it, because they take up a lot of space. So we'd have to readd "
40575 "some of those, as well as copying our PO files into the appliance."
40579 #: ../src/guestfs.pod:2890
40581 "Debugging messages are never translated, since they are intended for the "
40586 #: ../src/guestfs.pod:2893
40587 msgid "SOURCE CODE SUBDIRECTORIES"
40591 #: ../src/guestfs.pod:2897
40596 #: ../src/guestfs.pod:2899
40597 msgid "L<virt-alignment-scan(1)> command and documentation."
40601 #: ../src/guestfs.pod:2903
40602 msgid "The libguestfs appliance, build scripts and so on."
40606 #: ../src/guestfs.pod:2905
40607 msgid "C<capitests>"
40608 msgstr "C<capitests>"
40611 #: ../src/guestfs.pod:2907
40612 msgid "Automated tests of the C API."
40616 #: ../src/guestfs.pod:2909
40621 #: ../src/guestfs.pod:2911
40623 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
40628 #: ../src/guestfs.pod:2914
40633 #: ../src/guestfs.pod:2916
40635 "Safety and liveness tests of components that libguestfs depends upon (not of "
40636 "libguestfs itself). Mainly this is for qemu and the kernel."
40640 #: ../src/guestfs.pod:2919
40645 #: ../src/guestfs.pod:2921
40647 "Tools for cloning virtual machines. Currently contains L<virt-sysprep(1)> "
40648 "command and documentation."
40652 #: ../src/guestfs.pod:2924
40654 msgstr "C<contrib>"
40657 #: ../src/guestfs.pod:2926
40658 msgid "Outside contributions, experimental parts."
40662 #: ../src/guestfs.pod:2928
40667 #: ../src/guestfs.pod:2930
40669 "The daemon that runs inside the libguestfs appliance and carries out actions."
40673 #: ../src/guestfs.pod:2933
40678 #: ../src/guestfs.pod:2935
40679 msgid "L<virt-df(1)> command and documentation."
40683 #: ../src/guestfs.pod:2937
40688 #: ../src/guestfs.pod:2939
40689 msgid "L<virt-edit(1)> command and documentation."
40693 #: ../src/guestfs.pod:2941
40694 msgid "C<examples>"
40695 msgstr "C<examples>"
40698 #: ../src/guestfs.pod:2943
40699 msgid "C API example code."
40700 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
40703 #: ../src/guestfs.pod:2945
40708 #: ../src/guestfs.pod:2947
40710 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
40711 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
40712 "L<virt-tar-out(1)>."
40716 #: ../src/guestfs.pod:2951
40721 #: ../src/guestfs.pod:2953
40723 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
40727 #: ../src/guestfs.pod:2955
40728 msgid "C<generator>"
40729 msgstr "C<generator>"
40732 #: ../src/guestfs.pod:2957
40734 "The crucially important generator, used to automatically generate large "
40735 "amounts of boilerplate C code for things like RPC and bindings."
40739 #: ../src/guestfs.pod:2960
40744 #: ../src/guestfs.pod:2962
40745 msgid "Files used by the test suite."
40749 #: ../src/guestfs.pod:2964
40750 msgid "Some \"phony\" guest images which we test against."
40754 #: ../src/guestfs.pod:2966
40755 msgid "C<inspector>"
40756 msgstr "C<inspector>"
40759 #: ../src/guestfs.pod:2968
40760 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
40764 #: ../src/guestfs.pod:2970
40769 #: ../src/guestfs.pod:2972
40770 msgid "Logo used on the website. The fish is called Arthur by the way."
40774 #: ../src/guestfs.pod:2974
40779 #: ../src/guestfs.pod:2976
40780 msgid "M4 macros used by autoconf."
40784 #: ../src/guestfs.pod:2978
40789 #: ../src/guestfs.pod:2980
40790 msgid "Translations of simple gettext strings."
40791 msgstr "Переклади простих рядків gettext."
40794 #: ../src/guestfs.pod:2982
40796 msgstr "C<po-docs>"
40799 #: ../src/guestfs.pod:2984
40801 "The build infrastructure and PO files for translations of manpages and POD "
40802 "files. Eventually this will be combined with the C<po> directory, but that "
40803 "is rather complicated."
40807 #: ../src/guestfs.pod:2988
40808 msgid "C<regressions>"
40809 msgstr "C<regressions>"
40812 #: ../src/guestfs.pod:2990
40813 msgid "Regression tests."
40814 msgstr "Тести на регресії."
40817 #: ../src/guestfs.pod:2992
40822 #: ../src/guestfs.pod:2994
40823 msgid "L<virt-rescue(1)> command and documentation."
40827 #: ../src/guestfs.pod:2996
40829 #| msgid "C<rescue>"
40834 #: ../src/guestfs.pod:2998
40835 msgid "L<virt-resize(1)> command and documentation."
40839 #: ../src/guestfs.pod:3000
40840 msgid "C<sparsify>"
40844 #: ../src/guestfs.pod:3002
40845 msgid "L<virt-sparsify(1)> command and documentation."
40849 #: ../src/guestfs.pod:3004
40854 #: ../src/guestfs.pod:3006
40855 msgid "Source code to the C library."
40859 #: ../src/guestfs.pod:3008
40864 #: ../src/guestfs.pod:3010
40866 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
40870 #: ../src/guestfs.pod:3012
40871 msgid "C<test-tool>"
40872 msgstr "C<test-tool>"
40875 #: ../src/guestfs.pod:3014
40877 "Test tool for end users to test if their qemu/kernel combination will work "
40882 #: ../src/guestfs.pod:3017
40887 #: ../src/guestfs.pod:3019
40892 #: ../src/guestfs.pod:3021
40894 msgstr "C<haskell>"
40897 #: ../src/guestfs.pod:3023
40902 #: ../src/guestfs.pod:3025
40907 #: ../src/guestfs.pod:3027
40912 #: ../src/guestfs.pod:3029
40917 #: ../src/guestfs.pod:3031
40922 #: ../src/guestfs.pod:3033
40927 #: ../src/guestfs.pod:3035
40928 msgid "Language bindings."
40929 msgstr "Прив’язки до мов програмування."
40932 #: ../src/guestfs.pod:3039
40933 msgid "MAKING A STABLE RELEASE"
40937 #: ../src/guestfs.pod:3041
40939 "When we make a stable release, there are several steps documented here. See "
40940 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
40945 #: ../src/guestfs.pod:3049
40947 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
40951 #: ../src/guestfs.pod:3054
40952 msgid "Finalize RELEASE-NOTES."
40956 #: ../src/guestfs.pod:3058
40957 msgid "Update ROADMAP."
40961 #: ../src/guestfs.pod:3062
40962 msgid "Run C<src/api-support/update-from-tarballs.sh>."
40966 #: ../src/guestfs.pod:3066
40967 msgid "Push and pull from Transifex."
40971 #: ../src/guestfs.pod:3068
40976 #: ../src/guestfs.pod:3070
40984 #: ../src/guestfs.pod:3072
40985 msgid "to push the latest POT files to Transifex. Then run:"
40989 #: ../src/guestfs.pod:3074
40997 #: ../src/guestfs.pod:3076
40998 msgid "which is a wrapper to pull the latest translated C<*.po> files."
41002 #: ../src/guestfs.pod:3080
41004 "Create new stable and development directories under L<http://libguestfs.org/"
41009 #: ../src/guestfs.pod:3085
41010 msgid "Create the branch in git:"
41014 #: ../src/guestfs.pod:3087
41017 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
41018 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
41019 " git branch stable-1.XX\n"
41020 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
41025 #: ../src/guestfs.pod:3094
41030 #: ../src/guestfs.pod:3096
41031 msgid "PROTOCOL LIMITS"
41032 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
41035 #: ../src/guestfs.pod:3098
41037 "Internally libguestfs uses a message-based protocol to pass API calls and "
41038 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
41039 "plenty more detail about this). The maximum message size used by the "
41040 "protocol is slightly less than 4 MB. For some API calls you may need to be "
41041 "aware of this limit. The API calls which may be affected are individually "
41042 "documented, with a link back to this section of the documentation."
41046 #: ../src/guestfs.pod:3106
41048 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
41049 "a simple string. Because this string is at some point internally encoded as "
41050 "a message, the maximum size that it can return is slightly under 4 MB. If "
41051 "the requested file is larger than this then you will get an error."
41055 #: ../src/guestfs.pod:3112
41057 "In order to transfer large files into and out of the guest filesystem, you "
41058 "need to use particular calls that support this. The sections L</UPLOADING> "
41059 "and L</DOWNLOADING> document how to do this."
41063 #: ../src/guestfs.pod:3116
41065 "You might also consider mounting the disk image using our FUSE filesystem "
41066 "support (L<guestmount(1)>)."
41070 #: ../src/guestfs.pod:3119
41071 msgid "MAXIMUM NUMBER OF DISKS"
41075 #: ../src/guestfs.pod:3121
41076 msgid "When using virtio disks (the default) the current limit is B<25> disks."
41080 #: ../src/guestfs.pod:3124
41082 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
41083 "slots. However febootstrap only understands disks with names C</dev/vda> "
41084 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
41089 #: ../src/guestfs.pod:3129
41091 "We are working to substantially raise this limit in future versions but it "
41092 "requires complex changes to qemu."
41096 #: ../src/guestfs.pod:3132
41098 "In future versions of libguestfs it should also be possible to \"hot plug\" "
41099 "disks (add and remove disks after calling L</guestfs_launch>). This also "
41100 "requires changes to qemu."
41104 #: ../src/guestfs.pod:3136
41105 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
41109 #: ../src/guestfs.pod:3138
41110 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
41114 #: ../src/guestfs.pod:3140
41116 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
41117 "vda>, and C</dev/vda1> through C</dev/vda15>)."
41121 #: ../src/guestfs.pod:3143
41123 "If you attach a disk with more than 15 partitions, the extra partitions are "
41124 "ignored by libguestfs."
41128 #: ../src/guestfs.pod:3146
41129 msgid "MAXIMUM SIZE OF A DISK"
41133 #: ../src/guestfs.pod:3148
41134 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
41138 #: ../src/guestfs.pod:3150
41140 "We have tested block devices up to 1 exabyte (2**60 or "
41141 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
41146 #: ../src/guestfs.pod:3154
41148 "Although libguestfs probably does not impose any limit, the underlying host "
41149 "storage will. If you store disk images on a host ext4 filesystem, then the "
41150 "maximum size will be limited by the maximum ext4 file size (currently 16 "
41151 "TB). If you store disk images as host logical volumes then you are limited "
41152 "by the maximum size of an LV."
41156 #: ../src/guestfs.pod:3160
41158 "For the hugest disk image files, we recommend using XFS on the host for "
41163 #: ../src/guestfs.pod:3163
41164 msgid "MAXIMUM SIZE OF A PARTITION"
41168 #: ../src/guestfs.pod:3165
41170 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
41171 "numbers. Assuming a 512 byte sector size, this means that MBR cannot "
41172 "address a partition located beyond 2 TB on the disk."
41176 #: ../src/guestfs.pod:3169
41178 "It is recommended that you use GPT partitions on disks which are larger than "
41179 "this size. GPT uses 64 bit sector numbers and so can address partitions "
41180 "which are theoretically larger than the largest disk we could support."
41184 #: ../src/guestfs.pod:3174
41185 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
41189 #: ../src/guestfs.pod:3176
41191 "This depends on the filesystem type. libguestfs itself does not impose any "
41192 "known limit. Consult Wikipedia or the filesystem documentation to find out "
41193 "what these limits are."
41197 #: ../src/guestfs.pod:3180
41198 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
41202 #: ../src/guestfs.pod:3182
41204 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
41205 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
41206 "uploads and downloads."
41210 #: ../src/guestfs.pod:3186
41211 msgid "INSPECTION LIMITS"
41215 #: ../src/guestfs.pod:3188
41217 "The inspection code has several arbitrary limits on things like the size of "
41218 "Windows Registry hive it will read, and the length of product name. These "
41219 "are intended to stop a malicious guest from consuming arbitrary amounts of "
41220 "memory and disk space on the host, and should not be reached in practice. "
41221 "See the source code for more information."
41225 #: ../src/guestfs.pod:3214
41227 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same "
41228 "effect as calling C<guestfs_set_verbose (g, 1)>."
41232 #: ../src/guestfs.pod:3226
41234 "Set the path that libguestfs uses to search for a supermin appliance. See "
41235 "the discussion of paths in section L</PATH> above."
41239 #: ../src/guestfs.pod:3235
41240 msgid "See also L</QEMU WRAPPERS> above."
41244 #: ../src/guestfs.pod:3239
41246 "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same "
41247 "effect as calling C<guestfs_set_trace (g, 1)>."
41251 #: ../src/guestfs.pod:3257
41253 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
41254 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
41255 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
41256 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
41257 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
41258 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
41259 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
41260 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
41261 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
41262 ">, L<http://libguestfs.org/>."
41266 #: ../src/guestfs.pod:3293
41268 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
41269 "(8)>, L<disktype(1)>."
41273 #: ../src/guestfs.pod:3300 ../tools/virt-make-fs.pl:553
41274 #: ../tools/virt-win-reg.pl:761
41279 #: ../src/guestfs.pod:3302
41280 msgid "To get a list of bugs against libguestfs use this link:"
41282 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
41286 #: ../src/guestfs.pod:3304
41288 "L<https://bugzilla.redhat.com/buglist.cgi?"
41289 "component=libguestfs&product=Virtualization+Tools>"
41291 "L<https://bugzilla.redhat.com/buglist.cgi?"
41292 "component=libguestfs&product=Virtualization+Tools>"
41295 #: ../src/guestfs.pod:3306
41296 msgid "To report a new bug against libguestfs use this link:"
41297 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
41300 #: ../src/guestfs.pod:3308
41302 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41303 "component=libguestfs&product=Virtualization+Tools>"
41305 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41306 "component=libguestfs&product=Virtualization+Tools>"
41309 #: ../src/guestfs.pod:3310
41310 msgid "When reporting a bug, please check:"
41314 #: ../src/guestfs.pod:3316
41315 msgid "That the bug hasn't been reported already."
41319 #: ../src/guestfs.pod:3320
41320 msgid "That you are testing a recent version."
41324 #: ../src/guestfs.pod:3324
41325 msgid "Describe the bug accurately, and give a way to reproduce it."
41329 #: ../src/guestfs.pod:3328
41331 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
41336 #: ../test-tool/libguestfs-test-tool.pod:5
41337 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
41341 #: ../test-tool/libguestfs-test-tool.pod:9
41344 " libguestfs-test-tool [--options]\n"
41349 #: ../test-tool/libguestfs-test-tool.pod:13
41351 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
41352 "to check basic libguestfs functionality is working. This is needed because "
41353 "libguestfs occasionally breaks for reasons beyond our control: usually "
41354 "because of changes in the underlying qemu or kernel packages, or the host "
41359 #: ../test-tool/libguestfs-test-tool.pod:19
41360 msgid "If you suspect a problem in libguestfs, then just run:"
41364 #: ../test-tool/libguestfs-test-tool.pod:21
41367 " libguestfs-test-tool\n"
41372 #: ../test-tool/libguestfs-test-tool.pod:23
41373 msgid "It will print lots of diagnostic messages."
41377 #: ../test-tool/libguestfs-test-tool.pod:25
41378 msgid "If it runs to completion successfully, you will see this near the end:"
41382 #: ../test-tool/libguestfs-test-tool.pod:27
41385 " ===== TEST FINISHED OK =====\n"
41390 #: ../test-tool/libguestfs-test-tool.pod:29
41391 msgid "and the test tool will exit with code 0."
41395 #: ../test-tool/libguestfs-test-tool.pod:31
41397 "If it fails (and/or exits with non-zero error code), please paste the "
41398 "I<complete, unedited> output of the test tool into a bug report. More "
41399 "information about reporting bugs can be found on the L<http://libguestfs.org/"
41404 #: ../test-tool/libguestfs-test-tool.pod:42
41405 msgid "Display short usage information and exit."
41409 #: ../test-tool/libguestfs-test-tool.pod:44
41411 #| msgid "I<--qemu qemu_binary>"
41412 msgid "B<--qemu qemu_binary>"
41413 msgstr "I<--qemu виконуваний_файл_qemu>"
41416 #: ../test-tool/libguestfs-test-tool.pod:46
41418 "If you have downloaded another qemu binary, point this option at the full "
41419 "path of the binary to try it."
41423 #: ../test-tool/libguestfs-test-tool.pod:49
41425 #| msgid "I<--qemu qemu_binary>"
41426 msgid "B<--qemudir qemu_source_dir>"
41427 msgstr "I<--qemu виконуваний_файл_qemu>"
41430 #: ../test-tool/libguestfs-test-tool.pod:51
41432 "If you have compiled qemu from source, point this option at the source "
41433 "directory to try it."
41437 #: ../test-tool/libguestfs-test-tool.pod:54
41442 #: ../test-tool/libguestfs-test-tool.pod:56
41444 #| msgid "I<--timeout N>"
41445 msgid "B<--timeout N>"
41446 msgstr "I<--timeout N>"
41449 #: ../test-tool/libguestfs-test-tool.pod:58
41451 "Set the launch timeout to C<N> seconds. The default is 600 seconds (10 "
41452 "minutes) which does not usually need to be adjusted."
41456 #: ../test-tool/libguestfs-test-tool.pod:63
41457 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
41461 #: ../test-tool/libguestfs-test-tool.pod:65
41463 "If you have compiled another version of qemu from source and would like to "
41464 "try that, then you can use the I<--qemudir> option to point to the qemu "
41465 "source directory."
41469 #: ../test-tool/libguestfs-test-tool.pod:69
41471 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
41472 "option to point to the binary."
41476 #: ../test-tool/libguestfs-test-tool.pod:72
41478 "Note when using these options, you can ignore the business of qemu wrapper "
41479 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
41480 "wrapper script for you if one is needed."
41484 #: ../test-tool/libguestfs-test-tool.pod:76
41485 msgid "TRYING OUT A DIFFERENT KERNEL"
41489 #: ../test-tool/libguestfs-test-tool.pod:78
41491 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
41492 "libguestfs tries. You do this by setting the environment variables "
41493 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
41497 #: ../test-tool/libguestfs-test-tool.pod:82
41499 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
41504 #: ../test-tool/libguestfs-test-tool.pod:85
41505 msgid "SELF-DIAGNOSIS"
41509 #: ../test-tool/libguestfs-test-tool.pod:87
41511 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
41512 "produced by libguestfs-test-tool and/or possible errors."
41516 #: ../test-tool/libguestfs-test-tool.pod:92
41518 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
41519 "I<1> if there was an error."
41523 #: ../test-tool/libguestfs-test-tool.pod:97
41525 "For the full list of environment variables which may affect libguestfs, "
41526 "please see the L<guestfs(3)> manual page."
41530 #: ../test-tool/libguestfs-test-tool.pod:102
41531 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
41535 #: ../tools/virt-list-filesystems.pl:32
41537 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
41541 #: ../tools/virt-list-filesystems.pl:36
41544 " virt-list-filesystems [--options] domname\n"
41549 #: ../tools/virt-list-filesystems.pl:38
41552 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
41557 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
41559 "This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
41564 #: ../tools/virt-list-filesystems.pl:45
41566 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
41567 "are contained in a virtual machine or disk image."
41571 #: ../tools/virt-list-filesystems.pl:49
41573 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
41574 "functionality. For more complex cases you should look at the L<guestfish(1)"
41579 #: ../tools/virt-list-filesystems.pl:112
41581 "With this option, C<virt-list-filesystems> displays the type of each "
41582 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
41586 #: ../tools/virt-list-filesystems.pl:119
41588 #| msgid "B<-a image>"
41590 msgstr "B<-a образ>"
41593 #: ../tools/virt-list-filesystems.pl:123
41595 "Normally we only show mountable filesystems. If this option is given then "
41596 "swap devices are shown too."
41600 #: ../tools/virt-list-filesystems.pl:197
41602 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41603 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
41604 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41606 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41607 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
41608 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41611 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
41612 msgid "Copyright (C) 2009 Red Hat Inc."
41613 msgstr "© Red Hat Inc., 2009"
41616 #: ../tools/virt-list-partitions.pl:32
41618 "virt-list-partitions - List partitions in a virtual machine or disk image"
41622 #: ../tools/virt-list-partitions.pl:36
41625 " virt-list-partitions [--options] domname\n"
41628 " virt-list-partitions [--параметри] назва_домену\n"
41632 #: ../tools/virt-list-partitions.pl:38
41635 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
41638 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
41642 #: ../tools/virt-list-partitions.pl:45
41644 "C<virt-list-partitions> is a command line tool to list the partitions that "
41645 "are contained in a virtual machine or disk image. It is mainly useful as a "
41646 "first step to using L<virt-resize(1)>."
41650 #: ../tools/virt-list-partitions.pl:50
41652 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
41653 "functionality. For more complex cases you should look at the L<guestfish(1)"
41658 #: ../tools/virt-list-partitions.pl:113
41659 msgid "Show sizes in human-readable form (eg. \"1G\")."
41663 #: ../tools/virt-list-partitions.pl:123
41665 "With this option, C<virt-list-partitions> displays the type and size of each "
41666 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
41670 #: ../tools/virt-list-partitions.pl:130
41675 #: ../tools/virt-list-partitions.pl:132
41677 #| msgid "B<-t> | B<--total>"
41679 msgstr "B<-t> | B<--total>"
41682 #: ../tools/virt-list-partitions.pl:134
41684 "Display the total size of each block device (as a separate row or rows)."
41688 #: ../tools/virt-list-partitions.pl:267
41690 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
41691 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
41692 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41694 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
41695 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
41696 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41699 #: ../tools/virt-list-partitions.pl:283
41700 msgid "Copyright (C) 2009-2010 Red Hat Inc."
41701 msgstr "© Red Hat Inc., 2009–2010"
41704 #: ../tools/virt-make-fs.pl:37
41705 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
41709 #: ../tools/virt-make-fs.pl:41
41712 " virt-make-fs [--options] input.tar output.img\n"
41717 #: ../tools/virt-make-fs.pl:43
41720 " virt-make-fs [--options] input.tar.gz output.img\n"
41725 #: ../tools/virt-make-fs.pl:45
41728 " virt-make-fs [--options] directory output.img\n"
41733 #: ../tools/virt-make-fs.pl:49
41735 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
41736 "archive or some files in a directory. It is similar to tools like L<mkisofs"
41737 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, it can "
41738 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
41739 "you want to attach these filesystems to existing virtual machines (eg. to "
41740 "import large amounts of read-only data to a VM)."
41744 #: ../tools/virt-make-fs.pl:57
41745 msgid "Basic usage is:"
41749 #: ../tools/virt-make-fs.pl:59
41752 " virt-make-fs input output\n"
41757 #: ../tools/virt-make-fs.pl:61
41759 "where C<input> is either a directory containing files that you want to add, "
41760 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
41761 "C<output> is a disk image. The input type is detected automatically. The "
41762 "output disk image defaults to a raw ext2 image unless you specify extra "
41763 "flags (see L</OPTIONS> below)."
41767 #: ../tools/virt-make-fs.pl:67
41768 msgid "EXTRA SPACE"
41772 #: ../tools/virt-make-fs.pl:69
41774 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
41775 "the files that it contains, but might have extra space. Depending on how "
41776 "you are going to use the output, you might think this extra space is wasted "
41777 "and want to minimize it, or you might want to leave space so that more files "
41778 "can be added later. Virt-make-fs defaults to minimizing the extra space, "
41779 "but you can use the I<--size> flag to leave space in the filesystem if you "
41784 #: ../tools/virt-make-fs.pl:77
41786 "An alternative way to leave extra space but not make the output image any "
41787 "bigger is to use an alternative disk image format (instead of the default "
41788 "\"raw\" format). Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
41789 "image format (check your hypervisor supports this before using it). This "
41790 "allows you to choose a large I<--size> but the extra space won't actually be "
41791 "allocated in the image until you try to store something in it."
41795 #: ../tools/virt-make-fs.pl:85
41797 "Don't forget that you can also use local commands including L<resize2fs(8)> "
41798 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
41799 "to build another image from scratch."
41803 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
41804 #: ../tools/virt-make-fs.pl:142
41809 #: ../tools/virt-make-fs.pl:91
41812 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41815 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41819 #: ../tools/virt-make-fs.pl:93
41820 msgid "FILESYSTEM TYPE"
41821 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
41824 #: ../tools/virt-make-fs.pl:95
41826 "The default filesystem type is C<ext2>. Just about any filesystem type that "
41827 "libguestfs supports can be used (but I<not> read-only formats like "
41828 "ISO9660). Here are some of the more common choices:"
41832 #: ../tools/virt-make-fs.pl:101
41837 #: ../tools/virt-make-fs.pl:103
41839 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
41840 "you are not going to use the filesystem in a way that requires the journal, "
41841 "then this is just wasted overhead."
41845 #: ../tools/virt-make-fs.pl:107
41846 msgid "I<ntfs> or I<vfat>"
41847 msgstr "I<ntfs> або I<vfat>"
41850 #: ../tools/virt-make-fs.pl:109
41851 msgid "Useful if exporting data to a Windows guest."
41855 #: ../tools/virt-make-fs.pl:111
41857 "I<Note for vfat>: The tar archive or local directory must only contain files "
41858 "which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
41859 "program running within libguestfs is unable to change the ownership of non-"
41860 "root files, since vfat itself does not support this."
41864 #: ../tools/virt-make-fs.pl:116
41869 #: ../tools/virt-make-fs.pl:118
41871 "Lower overhead than C<ext2>, but certain limitations on filename length and "
41872 "total filesystem size."
41876 #: ../tools/virt-make-fs.pl:125
41879 " virt-make-fs --type=minix input minixfs.img\n"
41884 #: ../tools/virt-make-fs.pl:127
41885 msgid "TO PARTITION OR NOT TO PARTITION"
41889 #: ../tools/virt-make-fs.pl:129
41890 msgid "Optionally virt-make-fs can add a partition table to the output disk."
41894 #: ../tools/virt-make-fs.pl:131
41896 "Adding a partition can make the disk image more compatible with certain "
41897 "virtualized operating systems which don't expect to see a filesystem "
41898 "directly located on a block device (Linux doesn't care and will happily "
41899 "handle both types)."
41903 #: ../tools/virt-make-fs.pl:136
41905 "On the other hand, if you have a partition table then the output image is no "
41906 "longer a straight filesystem. For example you cannot run L<fsck(8)> "
41907 "directly on a partitioned disk image. (However libguestfs tools such as "
41908 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
41912 #: ../tools/virt-make-fs.pl:144
41913 msgid "Add an MBR partition:"
41917 #: ../tools/virt-make-fs.pl:146
41920 " virt-make-fs --partition -- input disk.img\n"
41925 #: ../tools/virt-make-fs.pl:148
41927 "If the output disk image could be terabyte-sized or larger, it's better to "
41928 "use an EFI/GPT-compatible partition table:"
41932 #: ../tools/virt-make-fs.pl:151
41935 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
41940 #: ../tools/virt-make-fs.pl:179
41941 msgid "Enable debugging information."
41942 msgstr "Увімкнути виведення діагностичних даних."
41945 #: ../tools/virt-make-fs.pl:185
41946 msgid "B<--size=E<lt>NE<gt>>"
41947 msgstr "B<--size=E<lt>NE<gt>>"
41950 #: ../tools/virt-make-fs.pl:187
41951 msgid "B<--size=+E<lt>NE<gt>>"
41952 msgstr "B<--size=+E<lt>NE<gt>>"
41955 #: ../tools/virt-make-fs.pl:189
41956 msgid "B<-s E<lt>NE<gt>>"
41957 msgstr "B<-s E<lt>NE<gt>>"
41960 #: ../tools/virt-make-fs.pl:191
41961 msgid "B<-s +E<lt>NE<gt>>"
41962 msgstr "B<-s +E<lt>NE<gt>>"
41965 #: ../tools/virt-make-fs.pl:193
41967 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
41971 #: ../tools/virt-make-fs.pl:196
41973 "If this option is I<not> given, then the output image will be just large "
41974 "enough to contain all the files, with not much wasted space."
41978 #: ../tools/virt-make-fs.pl:199
41980 "To choose a fixed size output disk, specify an absolute number followed by b/"
41981 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41982 "Petabytes or Exabytes. This must be large enough to contain all the input "
41983 "files, else you will get an error."
41987 #: ../tools/virt-make-fs.pl:204
41989 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
41990 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41991 "Petabytes or Exabytes. For example: I<--size=+200M> means enough space for "
41992 "the input files, and (approximately) an extra 200 MB free space."
41996 #: ../tools/virt-make-fs.pl:210
41998 "Note that virt-make-fs estimates free space, and therefore will not produce "
41999 "filesystems containing precisely the free space requested. (It is much more "
42000 "expensive and time-consuming to produce a filesystem which has precisely the "
42001 "desired free space)."
42005 #: ../tools/virt-make-fs.pl:219
42006 msgid "B<--format=E<lt>fmtE<gt>>"
42010 #: ../tools/virt-make-fs.pl:221
42011 msgid "B<-F E<lt>fmtE<gt>>"
42015 #: ../tools/virt-make-fs.pl:223
42016 msgid "Choose the output disk image format."
42020 #: ../tools/virt-make-fs.pl:225
42021 msgid "The default is C<raw> (raw disk image)."
42025 #: ../tools/virt-make-fs.pl:227
42027 "For other choices, see the L<qemu-img(1)> manpage. The only other choice "
42028 "that would really make sense here is C<qcow2>."
42032 #: ../tools/virt-make-fs.pl:234
42033 msgid "B<--type=E<lt>fsE<gt>>"
42037 #: ../tools/virt-make-fs.pl:236
42038 msgid "B<-t E<lt>fsE<gt>>"
42042 #: ../tools/virt-make-fs.pl:238
42043 msgid "Choose the output filesystem type."
42047 #: ../tools/virt-make-fs.pl:240
42048 msgid "The default is C<ext2>."
42049 msgstr "Типовим значенням є C<ext2>."
42052 #: ../tools/virt-make-fs.pl:242
42054 "Any filesystem which is supported read-write by libguestfs can be used here."
42058 #: ../tools/virt-make-fs.pl:249
42059 msgid "B<--partition>"
42060 msgstr "B<--partition>"
42063 #: ../tools/virt-make-fs.pl:251
42064 msgid "B<--partition=E<lt>parttypeE<gt>>"
42068 #: ../tools/virt-make-fs.pl:253
42070 "If specified, this flag adds an MBR partition table to the output disk image."
42074 #: ../tools/virt-make-fs.pl:256
42076 "You can change the partition table type, eg. I<--partition=gpt> for large "
42081 #: ../tools/virt-make-fs.pl:259
42083 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
42084 "might consider the next parameter to be the partition type. For example:"
42088 #: ../tools/virt-make-fs.pl:263
42091 " virt-make-fs --partition input.tar ...\n"
42096 #: ../tools/virt-make-fs.pl:265
42098 "would cause virt-make-fs to think you wanted to use a partition type of "
42099 "C<input.tar> which is completely wrong. To avoid this, use I<--> (a double "
42100 "dash) between options and the input file argument:"
42104 #: ../tools/virt-make-fs.pl:269
42107 " virt-make-fs --partition -- input.tar ...\n"
42110 " virt-make-fs --partition -- input.tar ...\n"
42114 #: ../tools/virt-make-fs.pl:541
42116 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42117 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42118 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42120 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42121 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42122 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42125 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
42127 "When reporting bugs, please enable debugging and capture the I<complete> "
42132 #: ../tools/virt-make-fs.pl:558
42135 " export LIBGUESTFS_DEBUG=1\n"
42136 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42139 " export LIBGUESTFS_DEBUG=1\n"
42140 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42144 #: ../tools/virt-make-fs.pl:561
42146 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
42151 #: ../tools/virt-tar.pl:33
42152 msgid "virt-tar - Extract or upload files to a virtual machine"
42156 #: ../tools/virt-tar.pl:37
42159 " virt-tar [--options] -x domname directory tarball\n"
42164 #: ../tools/virt-tar.pl:39
42167 " virt-tar [--options] -u domname tarball directory\n"
42172 #: ../tools/virt-tar.pl:41
42175 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
42180 #: ../tools/virt-tar.pl:43
42183 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
42188 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
42193 #: ../tools/virt-tar.pl:47
42195 "This tool is obsolete. Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
42196 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
42200 #: ../tools/virt-tar.pl:52
42201 msgid "Download C</home> from the VM into a local tarball:"
42205 #: ../tools/virt-tar.pl:54
42208 " virt-tar -x domname /home home.tar\n"
42213 #: ../tools/virt-tar.pl:56
42216 " virt-tar -zx domname /home home.tar.gz\n"
42221 #: ../tools/virt-tar.pl:58
42222 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
42226 #: ../tools/virt-tar.pl:60
42229 " virt-tar -u domname uploadstuff.tar /tmp\n"
42234 #: ../tools/virt-tar.pl:62
42237 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
42242 #: ../tools/virt-tar.pl:66
42244 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
42245 "virtual machines. If you do this, you risk disk corruption in the VM. "
42246 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
42250 #: ../tools/virt-tar.pl:71
42252 "You can use I<-x> (extract) on live virtual machines, but you might get "
42253 "inconsistent results or errors if there is filesystem activity inside the "
42254 "VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
42255 "work, but the only way to guarantee consistent results is if the virtual "
42256 "machine is shut down."
42260 #: ../tools/virt-tar.pl:79
42262 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
42263 "parts of a guest filesystem. There are many possibilities: making backups, "
42264 "uploading data files, snooping on guest activity, fixing or customizing "
42269 #: ../tools/virt-tar.pl:84
42271 "If you want to just view a single file, use L<virt-cat(1)>. If you just "
42272 "want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
42273 "should look at the L<guestfish(1)> tool."
42277 #: ../tools/virt-tar.pl:88
42279 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
42280 "its contents (recursively) from the virtual machine into a local tarball. "
42281 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
42282 "virtual machine. You cannot use these two options together."
42286 #: ../tools/virt-tar.pl:94
42288 "In addition, you may need to use the I<-z> (gZip) option to enable "
42289 "compression. When uploading, you have to specify I<-z> if the upload file "
42290 "is compressed because virt-tar won't detect this on its own."
42294 #: ../tools/virt-tar.pl:98
42296 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
42297 "example it cannot do PKZip files or bzip2 compression. If you want that "
42298 "then you'll have to rebuild the tarballs yourself. (This is a limitation of "
42299 "the L<libguestfs(3)> API)."
42303 #: ../tools/virt-tar.pl:160
42305 #| msgid "B<--format>"
42306 msgid "B<--extract>"
42307 msgstr "B<--format>"
42310 #: ../tools/virt-tar.pl:162
42312 #| msgid "download"
42313 msgid "B<--download>"
42317 #: ../tools/virt-tar.pl:164
42322 #: ../tools/virt-tar.pl:166
42324 #| msgid "B<-u> | B<--upload>"
42325 msgid "B<--upload>"
42326 msgstr "B<-u> | B<--upload>"
42329 #: ../tools/virt-tar.pl:168
42331 "Use I<-x> to extract (download) a directory from a virtual machine to a "
42336 #: ../tools/virt-tar.pl:171
42338 "Use I<-u> to upload and unpack from a local tarball into a virtual machine. "
42339 "Please read the L</WARNING> section above before using this option."
42343 #: ../tools/virt-tar.pl:175
42344 msgid "You must specify exactly one of these options."
42348 #: ../tools/virt-tar.pl:181
42353 #: ../tools/virt-tar.pl:183
42355 #| msgid "B<-z> | B<--gzip>"
42357 msgstr "B<-z> | B<--gzip>"
42360 #: ../tools/virt-tar.pl:185
42361 msgid "Specify that the input or output tarball is gzip-compressed."
42365 #: ../tools/virt-tar.pl:298
42367 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42368 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42369 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42372 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42373 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42374 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42378 #: ../tools/virt-win-reg.pl:37
42380 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
42384 #: ../tools/virt-win-reg.pl:41
42387 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
42392 #: ../tools/virt-win-reg.pl:43
42395 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
42400 #: ../tools/virt-win-reg.pl:45
42403 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
42408 #: ../tools/virt-win-reg.pl:47
42411 " virt-win-reg --merge domname [input.reg ...]\n"
42416 #: ../tools/virt-win-reg.pl:49
42419 " virt-win-reg [--options] disk.img ... # instead of domname\n"
42424 #: ../tools/virt-win-reg.pl:53
42426 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
42427 "virtual machines. If you do this, you I<will> get irreversible disk "
42428 "corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
42429 "but doesn't catch all cases."
42433 #: ../tools/virt-win-reg.pl:58
42435 "Modifying the Windows Registry is an inherently risky operation. The format "
42436 "is deliberately obscure and undocumented, and Registry changes can leave the "
42437 "system unbootable. Therefore when using the I<--merge> option, make sure "
42438 "you have a reliable backup first."
42442 #: ../tools/virt-win-reg.pl:65
42444 "This program can export and merge Windows Registry entries from a Windows "
42449 #: ../tools/virt-win-reg.pl:68
42451 "The first parameter is the libvirt guest name or the raw disk image of a "
42456 #: ../tools/virt-win-reg.pl:71
42458 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
42459 "exported (recursively). For example:"
42463 #: ../tools/virt-win-reg.pl:74
42466 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42471 #: ../tools/virt-win-reg.pl:76
42473 "You can also display single values from within registry keys, for example:"
42477 #: ../tools/virt-win-reg.pl:79
42480 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42481 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42482 " Windows 7 Enterprise\n"
42487 #: ../tools/virt-win-reg.pl:83
42489 "With I<--merge>, you can merge a textual regedit file into the Windows "
42494 #: ../tools/virt-win-reg.pl:86
42497 " $ virt-win-reg --merge Windows7 changes.reg\n"
42502 #: ../tools/virt-win-reg.pl:90
42504 "This program is only meant for simple access to the registry. If you want "
42505 "to do complicated things with the registry, we suggest you download the "
42506 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
42507 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
42508 "L<hivexregedit(1)>."
42512 #: ../tools/virt-win-reg.pl:159
42514 msgstr "B<--merge>"
42517 #: ../tools/virt-win-reg.pl:161
42519 "In merge mode, this merges a textual regedit file into the Windows Registry "
42520 "of the virtual machine. If this flag is I<not> given then virt-win-reg "
42521 "displays or exports Registry entries instead."
42525 #: ../tools/virt-win-reg.pl:165
42527 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
42528 "result in disk corruption. However exporting (without this flag) is always "
42533 #: ../tools/virt-win-reg.pl:173
42534 msgid "B<--encoding> UTF-16LE|ASCII"
42538 #: ../tools/virt-win-reg.pl:175
42540 "When merging (only), you may need to specify the encoding for strings to be "
42541 "used in the hive file. This is explained in detail in L<Win::Hivex::Regedit"
42542 "(3)/ENCODING STRINGS>."
42546 #: ../tools/virt-win-reg.pl:179
42548 "The default is to use UTF-16LE, which should work with recent versions of "
42553 #: ../tools/virt-win-reg.pl:186
42554 msgid "B<--unsafe-printable-strings>"
42558 #: ../tools/virt-win-reg.pl:188
42560 "When exporting (only), assume strings are UTF-16LE and print them as strings "
42561 "instead of hex sequences. Remove the final zero codepoint from strings if "
42566 #: ../tools/virt-win-reg.pl:192
42568 "This is unsafe and does not preserve the fidelity of strings in the original "
42569 "Registry for various reasons:"
42573 #: ../tools/virt-win-reg.pl:199
42575 "Assumes the original encoding is UTF-16LE. ASCII strings and strings in "
42576 "other encodings will be corrupted by this transformation."
42580 #: ../tools/virt-win-reg.pl:204
42582 "Assumes that everything which has type 1 or 2 is really a string and that "
42583 "everything else is not a string, but the type field in real Registries is "
42588 #: ../tools/virt-win-reg.pl:210
42590 "Loses information about whether a zero codepoint followed the string in the "
42595 #: ../tools/virt-win-reg.pl:215
42597 "This all happens because the Registry itself contains no information about "
42598 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
42602 #: ../tools/virt-win-reg.pl:219
42604 "You should only use this option for quick hacking and debugging of the "
42605 "Registry contents, and I<never> use it if the output is going to be passed "
42606 "into another program or stored in another Registry."
42610 #: ../tools/virt-win-reg.pl:556
42611 msgid "SUPPORTED SYSTEMS"
42615 #: ../tools/virt-win-reg.pl:558
42617 "The program currently supports Windows NT-derived guests starting with "
42618 "Windows XP through to at least Windows 7."
42622 #: ../tools/virt-win-reg.pl:561
42623 msgid "The following Registry keys are supported:"
42627 #: ../tools/virt-win-reg.pl:565
42628 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
42632 #: ../tools/virt-win-reg.pl:567
42633 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42637 #: ../tools/virt-win-reg.pl:569
42638 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
42642 #: ../tools/virt-win-reg.pl:571
42643 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42647 #: ../tools/virt-win-reg.pl:573
42648 msgid "C<HKEY_USERS\\.DEFAULT>"
42652 #: ../tools/virt-win-reg.pl:575
42653 msgid "C<HKEY_USERS\\I<SID>>"
42657 #: ../tools/virt-win-reg.pl:577
42658 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
42662 #: ../tools/virt-win-reg.pl:579
42663 msgid "C<HKEY_USERS\\I<username>>"
42667 #: ../tools/virt-win-reg.pl:581
42669 "where I<username> is a local user name (this is a libguestfs extension)."
42673 #: ../tools/virt-win-reg.pl:585
42675 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
42680 #: ../tools/virt-win-reg.pl:588
42682 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
42683 "supported (there is no \"current user\")."
42687 #: ../tools/virt-win-reg.pl:591
42692 #: ../tools/virt-win-reg.pl:593
42694 "C<virt-win-reg> expects that regedit files have already been reencoded in "
42695 "the local encoding. Usually on Linux hosts, this means UTF-8 with Unix-"
42696 "style line endings. Since Windows regedit files are often in UTF-16LE with "
42697 "Windows-style line endings, you may need to reencode the whole file before "
42698 "or after processing."
42702 #: ../tools/virt-win-reg.pl:599
42704 "To reencode a file from Windows format to Linux (before processing it with "
42705 "the I<--merge> option), you would do something like this:"
42709 #: ../tools/virt-win-reg.pl:602
42712 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
42717 #: ../tools/virt-win-reg.pl:604
42719 "To go in the opposite direction, after exporting and before sending the file "
42720 "to a Windows user, do something like this:"
42724 #: ../tools/virt-win-reg.pl:607
42727 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
42732 #: ../tools/virt-win-reg.pl:609
42733 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
42737 #: ../tools/virt-win-reg.pl:611
42739 "If you are unsure about the current encoding, use the L<file(1)> command. "
42740 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
42741 "style (CRLF) line endings, like this:"
42745 #: ../tools/virt-win-reg.pl:615
42748 " $ file software.reg\n"
42749 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
42750 " with CRLF line terminators\n"
42755 #: ../tools/virt-win-reg.pl:619
42756 msgid "This file would need conversion before you could I<--merge> it."
42760 #: ../tools/virt-win-reg.pl:621
42761 msgid "CurrentControlSet etc."
42765 #: ../tools/virt-win-reg.pl:623
42767 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
42768 "Registry at the level of the hive file, and therefore you cannot modify "
42773 #: ../tools/virt-win-reg.pl:627
42775 "C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
42776 "circumstances it might refer to another control set. The way to find out is "
42777 "to look at the C<HKLM\\SYSTEM\\Select> key:"
42781 #: ../tools/virt-win-reg.pl:631
42784 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
42785 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
42786 " \"Current\"=dword:00000001\n"
42787 " \"Default\"=dword:00000001\n"
42788 " \"Failed\"=dword:00000000\n"
42789 " \"LastKnownGood\"=dword:00000002\n"
42794 #: ../tools/virt-win-reg.pl:638
42795 msgid "\"Current\" is the one which Windows will choose when it boots."
42799 #: ../tools/virt-win-reg.pl:640
42801 "Similarly, other C<Current...> keys in the path may need to be replaced."
42805 #: ../tools/virt-win-reg.pl:643
42806 msgid "WINDOWS TIPS"
42810 #: ../tools/virt-win-reg.pl:645
42812 "Note that some of these tips modify the guest disk image. The guest I<must> "
42813 "be shut off, else you will get disk corruption."
42817 #: ../tools/virt-win-reg.pl:648
42818 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
42822 #: ../tools/virt-win-reg.pl:650
42824 "Prepare a DOS batch script, VBScript or executable. Upload this using "
42825 "L<guestfish(1)>. For this example the script is called C<test.bat> and it "
42826 "is uploaded into C<C:\\>:"
42830 #: ../tools/virt-win-reg.pl:654
42833 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
42838 #: ../tools/virt-win-reg.pl:656
42839 msgid "Prepare a regedit file containing the registry change:"
42843 #: ../tools/virt-win-reg.pl:658
42846 " cat > test.reg <<'EOF'\n"
42847 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
42848 " \"Test\"=\"c:\\\\test.bat\"\n"
42854 #: ../tools/virt-win-reg.pl:663
42856 "In this example we use the key C<RunOnce> which means that the script will "
42857 "run precisely once when the first user logs in. If you want it to run every "
42858 "time a user logs in, replace C<RunOnce> with C<Run>."
42862 #: ../tools/virt-win-reg.pl:667
42863 msgid "Now update the registry:"
42867 #: ../tools/virt-win-reg.pl:669
42870 " virt-win-reg --merge WindowsGuest test.reg\n"
42875 #: ../tools/virt-win-reg.pl:671
42876 msgid "INSTALLING A SERVICE"
42880 #: ../tools/virt-win-reg.pl:673
42882 "This section assumes you are familiar with Windows services, and you either "
42883 "have a program which handles the Windows Service Control Protocol directly "
42884 "or you want to run any program using a service wrapper like SrvAny or the "
42889 #: ../tools/virt-win-reg.pl:678
42891 "First upload the program and optionally the service wrapper. In this case "
42892 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
42896 #: ../tools/virt-win-reg.pl:682
42899 " guestfish -i -d WindowsGuest <<EOF\n"
42900 " upload rhsrvany.exe /rhsrvany.exe\n"
42901 " upload test.exe /test.exe\n"
42907 #: ../tools/virt-win-reg.pl:687
42909 "Prepare a regedit file containing the registry changes. In this example, "
42910 "the first registry change is needed for the service itself or the service "
42911 "wrapper (if used). The second registry change is only needed because I am "
42912 "using the RHSrvAny service wrapper."
42916 #: ../tools/virt-win-reg.pl:692
42919 " cat > service.reg <<'EOF'\n"
42920 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42921 " \"Type\"=dword:00000010\n"
42922 " \"Start\"=dword:00000002\n"
42923 " \"ErrorControl\"=dword:00000001\n"
42924 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42925 " \"DisplayName\"=\"RHSrvAny\"\n"
42926 " \"ObjectName\"=\"NetworkService\"\n"
42931 #: ../tools/virt-win-reg.pl:701
42934 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42935 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42936 " \"PWD\"=\"c:\\\\Temp\"\n"
42942 #: ../tools/virt-win-reg.pl:712
42944 "For use of C<ControlSet001> see the section above in this manual page. You "
42945 "may need to adjust this according to the control set that is in use by the "
42950 #: ../tools/virt-win-reg.pl:718
42952 "C<\"ObjectName\"> controls the privileges that the service will have. An "
42953 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
42954 "privileged account."
42958 #: ../tools/virt-win-reg.pl:724
42960 "For the meaning of the magic numbers, see this Microsoft KB article: "
42961 "L<http://support.microsoft.com/kb/103000>."
42965 #: ../tools/virt-win-reg.pl:729
42966 msgid "Update the registry:"
42970 #: ../tools/virt-win-reg.pl:731
42973 " virt-win-reg --merge WindowsGuest service.reg\n"
42978 #: ../tools/virt-win-reg.pl:735
42980 "Be careful when passing parameters containing C<\\> (backslash) in the "
42981 "shell. Usually you will have to use 'single quotes' or double backslashes "
42982 "(but not both) to protect them from the shell."
42986 #: ../tools/virt-win-reg.pl:739
42987 msgid "Paths and value names are case-insensitive."
42991 #: ../tools/virt-win-reg.pl:748
42993 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
42994 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
42995 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42999 #: ../tools/virt-win-reg.pl:766
43002 " export LIBGUESTFS_DEBUG=1\n"
43003 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
43008 #: ../tools/virt-win-reg.pl:769
43010 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
43016 #~| " virt-list-partitions [--options] domname\n"
43019 #~ " virt-alignment-scan [--options]\n"
43022 #~ " virt-list-partitions [--параметри] назва_домену\n"
43027 #~| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
43028 #~| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
43029 #~| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43031 #~ "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
43032 #~ "libguestfs.org/>."
43034 #~ "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
43035 #~ "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
43036 #~ "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43038 #~ msgid "I<--help>"
43039 #~ msgstr "I<--help>"
43041 #~ msgid "EXIT CODE"
43042 #~ msgstr "КОД ВИХОДУ"
43044 #~ msgid "B<-a> | B<--all>"
43045 #~ msgstr "B<-a> | B<--all>"
43047 #~ msgid "B<-x> | B<--extract> | B<--download>"
43048 #~ msgstr "B<-x> | B<--extract> | B<--download>"